diff --git a/assets/___vite-browser-external_commonjs-proxy.832ddc27.js b/assets/___vite-browser-external_commonjs-proxy.8e88a877.js similarity index 84% rename from assets/___vite-browser-external_commonjs-proxy.832ddc27.js rename to assets/___vite-browser-external_commonjs-proxy.8e88a877.js index bc3cc9980..fbf6cab3b 100644 --- a/assets/___vite-browser-external_commonjs-proxy.832ddc27.js +++ b/assets/___vite-browser-external_commonjs-proxy.8e88a877.js @@ -1 +1 @@ -import{a as r}from"./index.96709b2a.js";function a(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const o={},t=Object.freeze(Object.defineProperty({__proto__:null,default:o},Symbol.toStringTag,{value:"Module"})),i=r(t);export{a as c,i as r}; +import{a as r}from"./index.01cc2733.js";function a(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const o={},t=Object.freeze(Object.defineProperty({__proto__:null,default:o},Symbol.toStringTag,{value:"Module"})),i=r(t);export{a as c,i as r}; diff --git a/assets/editor.main.59d86089.js b/assets/editor.main.7aae6d3b.js similarity index 99% rename from assets/editor.main.59d86089.js rename to assets/editor.main.7aae6d3b.js index c0f13427d..8243971d4 100644 --- a/assets/editor.main.59d86089.js +++ b/assets/editor.main.7aae6d3b.js @@ -1,4 +1,4 @@ -var Kb=Object.defineProperty;var qb=(r,e,t)=>e in r?Kb(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var ye=(r,e,t)=>(qb(r,typeof e!="symbol"?e+"":e,t),t);import{m as Lr,R as ce,I as _e,r as de,a as R,S as X,M as ft,l as g,b as kt,E as N,c as C,K as Ne,d as z,f as ge,t as Oe,O as Oi,g as je,h as qn,i as J,D as K,j as ze,k as y,P as Q,n as Gb,o as Lf,p as $d,q as Er,s as qo,u as Zb,v as uu,w as Ke,x as Go,y as Ef,z as Yb,C as Rg,A as Ie,U as he,B as Ki,F as ee,G as pi,H as pe,J as Zo,T as Xb,L as Tr,N as Qe,Q as Ml,V as Ol,W as _t,X as W,Y as St,Z as $,_ as ht,$ as Yo,a0 as nt,a1 as Xo,a2 as Qo,a3 as At,a4 as Be,a5 as gu,a6 as lt,a7 as we,a8 as Tf,a9 as Ac,aa as Qb,ab as Li,ac as Pi,ad as nl,ae as Us,af as dt,ag as ne,ah as q,ai as pu,aj as Jb,ak as fu,al as Ls,am as eC,an as tC,ao as ve,ap as me,aq as Ue,ar as kf,as as mu,at as kr,au as Pl,av as Nt,aw as gt,ax as Fl,ay as M,az as js,aA as fi,aB as _u,aC as Rf,aD as Le,aE as Gn,aF as Fi,aG as Rr,aH as iC,aI as Af,aJ as Nf,aK as Zn,aL as Mf,aM as V,aN as ol,aO as Bi,aP as vu,aQ as nC,aR as oC,aS as Of,aT as sl,aU as Te,aV as Ks,aW as Yn,aX as Pf,aY as Ri,aZ as qs,a_ as sC,a$ as Jo,b0 as rC,b1 as H,b2 as ue,b3 as Gs,b4 as Wa,b5 as Ff,b6 as Zt,b7 as $t,b8 as Bf,b9 as ot,ba as aC,bb as bu,bc as lC,bd as Co,be as Ag,bf as dC,bg as cC,bh as Nc,bi as Mc,bj as To,bk as Zs,bl as Wf,bm as Ar,bn as Oc,bo as Hf,bp as Ys,bq as Pc,br as hC,bs as uC,bt as xe,bu as rl,bv as al,bw as Cu,bx as Nr,by as gC,bz as Fc,bA as Vf,bB as mt,bC as Xs,bD as Vi,bE as ei,bF as Tn,bG as Xn,bH as ll,bI as Qt,bJ as Pt,bK as It,bL as $f,bM as gi,bN as pC,bO as Ng,bP as Bl,bQ as ii,bR as Qs,bS as zf,bT as fC,bU as mC,bV as Wl,bW as Hl,bX as _C,bY as Js,bZ as vC,b_ as zt,b$ as Ae,c0 as bC,c1 as Mg,c2 as Su,c3 as ct,c4 as Og,c5 as tt,c6 as CC,c7 as SC,c8 as ni,c9 as Uf,ca as jf,cb as Kf,cc as wu,cd as mi,ce as qf,cf as Gf,cg as er,ch as yu,ci as wC,cj as yC,ck as Qi,cl as Zf,cm as Du,cn as xu,co as DC,cp as xC,cq as Yf,cr as IC,cs as Xf,ct as Qf,cu as Vl,cv as LC,cw as EC,cx as sa,cy as zd,cz as TC,cA as Ms,cB as kC,cC as RC,cD as Pg,cE as AC,cF as NC,cG as MC,cH as OC,cI as PC,cJ as Jf,cK as FC,cL as Ut,cM as BC,cN as Iu,cO as WC,cP as tr,cQ as em,cR as tm,cS as im,cT as it,cU as Fg,cV as So,cW as HC,cX as VC,cY as $C,cZ as Lu,c_ as zC,c$ as UC,d0 as jC,d1 as KC,d2 as qC,d3 as GC,d4 as dl,d5 as st,d6 as ZC,d7 as Bg,d8 as $l,d9 as zl,da as YC,db as Eu,dc as Tu,dd as XC,de as nm,df as ku,dg as QC,dh as JC,di as wn,dj as eS,dk as $e,dl as Os,dm as tS,dn as iS,dp as nS,dq as Wg,dr as Hg,ds as cl,dt as De,du as Vg,dv as Ul,dw as Bc,dx as oS,dy as Wc,dz as sS,dA as rS,dB as es,dC as Ru,dD as om,dE as aS,dF as sm,dG as lS,dH as rm,dI as Hc,dJ as Vc,dK as $c,dL as dS,dM as cS,dN as hS,dO as $i,dP as Au,dQ as jl,dR as ko,dS as _i,dT as xi,dU as uS,dV as am,dW as lm,dX as dm,dY as gS,dZ as pS,d_ as fS,d$ as mS,e0 as _S,e1 as vS,e2 as bS,e3 as CS,e4 as SS,e5 as wS,e6 as cm,e7 as yS,e8 as DS,e9 as xS,ea as IS,eb as LS,ec as Ei,ed as ES,ee as TS,ef as kS,eg as RS,eh as Es,ei as AS,ej as NS,ek as hm,el as um,em as MS,en as $g,eo as ra,ep as Kl,eq as aa,er as gm,es as zg,et as pm,eu as OS,ev as ir,ew as Mr,ex as wo,ey as ti,ez as PS,eA as FS,eB as BS,eC as fm,eD as WS,eE as Ps,eF as mm,eG as HS,eH as VS,eI as $S,eJ as zS,eK as ms,eL as Ug,eM as US,eN as jS,eO as Ha,eP as Gt,eQ as KS,eR as qS,eS as Nu,eT as GS,eU as ZS,eV as YS,eW as _m,eX as XS,eY as QS,eZ as JS,e_ as e0,e$ as t0,f0 as i0,f1 as O,f2 as jg,f3 as n0,f4 as vm,f5 as hl,f6 as o0,f7 as la,f8 as da,f9 as ca,fa as zi,fb as ha,fc as s0,fd as r0,fe as Va,ff as Kg,fg as a0,fh as l0,fi as d0,fj as c0,fk as Ts,fl as bm,fm as h0,fn as u0,fo as g0,fp as Cm,fq as Sm,fr as p0,fs as f0,ft as m0,fu as _0,fv as zc,fw as v0,fx as Fs,fy as wm,fz as Ro,fA as qg,fB as b0,fC as C0,fD as ym,fE as S0,fF as Dm,fG as Gg,fH as w0,fI as y0,fJ as D0,fK as x0,fL as I0,fM as L0,fN as Mu,fO as Ou,fP as $a,fQ as ua,fR as Ud,fS as E0,fT as Pu,fU as xm,fV as T0,fW as k0,fX as ql,fY as Im,fZ as R0,f_ as qi,f$ as ga,g0 as A0,g1 as Zg,g2 as Yg,g3 as N0,g4 as M0,g5 as Xg,g6 as O0,g7 as P0,g8 as jd,g9 as Lm,ga as Em,gb as Tm,gc as km,gd as Rm,ge as Ai,gf as Fu,gg as F0,gh as B0,gi as W0,gj as H0,gk as V0,gl as $0,gm as z0,gn as Uc,go as Gl,gp as Zl,gq as Qn,gr as Yl,gs as Or,gt as U0,gu as Xl,gv as Qg,gw as Re,gx as j0,gy as Am,gz as K0,gA as q0,gB as G0,gC as Z0,gD as _s,gE as Pr,gF as Y0,gG as Nm,gH as X0,gI as Q0,gJ as Mm,gK as jc,gL as J0,gM as ew,gN as tw,gO as iw,gP as nw,gQ as Kc,gR as ow,gS as sw,gT as rw,gU as aw,gV as lw,gW as Om,gX as dw,gY as cw,gZ as hw,g_ as uw,g$ as gw,h0 as pw,h1 as fw,h2 as mw,h3 as _w,h4 as vw,h5 as bw,h6 as Cw,h7 as Sw,h8 as ww,h9 as yw,ha as Dw,hb as xw,e as Iw,hc as Lw}from"./editor.api.d8951072.js";import{_ as F}from"./index.96709b2a.js";/*!----------------------------------------------------------------------------- +var Kb=Object.defineProperty;var qb=(r,e,t)=>e in r?Kb(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var ye=(r,e,t)=>(qb(r,typeof e!="symbol"?e+"":e,t),t);import{m as Lr,R as ce,I as _e,r as de,a as R,S as X,M as ft,l as g,b as kt,E as N,c as C,K as Ne,d as z,f as ge,t as Oe,O as Oi,g as je,h as qn,i as J,D as K,j as ze,k as y,P as Q,n as Gb,o as Lf,p as $d,q as Er,s as qo,u as Zb,v as uu,w as Ke,x as Go,y as Ef,z as Yb,C as Rg,A as Ie,U as he,B as Ki,F as ee,G as pi,H as pe,J as Zo,T as Xb,L as Tr,N as Qe,Q as Ml,V as Ol,W as _t,X as W,Y as St,Z as $,_ as ht,$ as Yo,a0 as nt,a1 as Xo,a2 as Qo,a3 as At,a4 as Be,a5 as gu,a6 as lt,a7 as we,a8 as Tf,a9 as Ac,aa as Qb,ab as Li,ac as Pi,ad as nl,ae as Us,af as dt,ag as ne,ah as q,ai as pu,aj as Jb,ak as fu,al as Ls,am as eC,an as tC,ao as ve,ap as me,aq as Ue,ar as kf,as as mu,at as kr,au as Pl,av as Nt,aw as gt,ax as Fl,ay as M,az as js,aA as fi,aB as _u,aC as Rf,aD as Le,aE as Gn,aF as Fi,aG as Rr,aH as iC,aI as Af,aJ as Nf,aK as Zn,aL as Mf,aM as V,aN as ol,aO as Bi,aP as vu,aQ as nC,aR as oC,aS as Of,aT as sl,aU as Te,aV as Ks,aW as Yn,aX as Pf,aY as Ri,aZ as qs,a_ as sC,a$ as Jo,b0 as rC,b1 as H,b2 as ue,b3 as Gs,b4 as Wa,b5 as Ff,b6 as Zt,b7 as $t,b8 as Bf,b9 as ot,ba as aC,bb as bu,bc as lC,bd as Co,be as Ag,bf as dC,bg as cC,bh as Nc,bi as Mc,bj as To,bk as Zs,bl as Wf,bm as Ar,bn as Oc,bo as Hf,bp as Ys,bq as Pc,br as hC,bs as uC,bt as xe,bu as rl,bv as al,bw as Cu,bx as Nr,by as gC,bz as Fc,bA as Vf,bB as mt,bC as Xs,bD as Vi,bE as ei,bF as Tn,bG as Xn,bH as ll,bI as Qt,bJ as Pt,bK as It,bL as $f,bM as gi,bN as pC,bO as Ng,bP as Bl,bQ as ii,bR as Qs,bS as zf,bT as fC,bU as mC,bV as Wl,bW as Hl,bX as _C,bY as Js,bZ as vC,b_ as zt,b$ as Ae,c0 as bC,c1 as Mg,c2 as Su,c3 as ct,c4 as Og,c5 as tt,c6 as CC,c7 as SC,c8 as ni,c9 as Uf,ca as jf,cb as Kf,cc as wu,cd as mi,ce as qf,cf as Gf,cg as er,ch as yu,ci as wC,cj as yC,ck as Qi,cl as Zf,cm as Du,cn as xu,co as DC,cp as xC,cq as Yf,cr as IC,cs as Xf,ct as Qf,cu as Vl,cv as LC,cw as EC,cx as sa,cy as zd,cz as TC,cA as Ms,cB as kC,cC as RC,cD as Pg,cE as AC,cF as NC,cG as MC,cH as OC,cI as PC,cJ as Jf,cK as FC,cL as Ut,cM as BC,cN as Iu,cO as WC,cP as tr,cQ as em,cR as tm,cS as im,cT as it,cU as Fg,cV as So,cW as HC,cX as VC,cY as $C,cZ as Lu,c_ as zC,c$ as UC,d0 as jC,d1 as KC,d2 as qC,d3 as GC,d4 as dl,d5 as st,d6 as ZC,d7 as Bg,d8 as $l,d9 as zl,da as YC,db as Eu,dc as Tu,dd as XC,de as nm,df as ku,dg as QC,dh as JC,di as wn,dj as eS,dk as $e,dl as Os,dm as tS,dn as iS,dp as nS,dq as Wg,dr as Hg,ds as cl,dt as De,du as Vg,dv as Ul,dw as Bc,dx as oS,dy as Wc,dz as sS,dA as rS,dB as es,dC as Ru,dD as om,dE as aS,dF as sm,dG as lS,dH as rm,dI as Hc,dJ as Vc,dK as $c,dL as dS,dM as cS,dN as hS,dO as $i,dP as Au,dQ as jl,dR as ko,dS as _i,dT as xi,dU as uS,dV as am,dW as lm,dX as dm,dY as gS,dZ as pS,d_ as fS,d$ as mS,e0 as _S,e1 as vS,e2 as bS,e3 as CS,e4 as SS,e5 as wS,e6 as cm,e7 as yS,e8 as DS,e9 as xS,ea as IS,eb as LS,ec as Ei,ed as ES,ee as TS,ef as kS,eg as RS,eh as Es,ei as AS,ej as NS,ek as hm,el as um,em as MS,en as $g,eo as ra,ep as Kl,eq as aa,er as gm,es as zg,et as pm,eu as OS,ev as ir,ew as Mr,ex as wo,ey as ti,ez as PS,eA as FS,eB as BS,eC as fm,eD as WS,eE as Ps,eF as mm,eG as HS,eH as VS,eI as $S,eJ as zS,eK as ms,eL as Ug,eM as US,eN as jS,eO as Ha,eP as Gt,eQ as KS,eR as qS,eS as Nu,eT as GS,eU as ZS,eV as YS,eW as _m,eX as XS,eY as QS,eZ as JS,e_ as e0,e$ as t0,f0 as i0,f1 as O,f2 as jg,f3 as n0,f4 as vm,f5 as hl,f6 as o0,f7 as la,f8 as da,f9 as ca,fa as zi,fb as ha,fc as s0,fd as r0,fe as Va,ff as Kg,fg as a0,fh as l0,fi as d0,fj as c0,fk as Ts,fl as bm,fm as h0,fn as u0,fo as g0,fp as Cm,fq as Sm,fr as p0,fs as f0,ft as m0,fu as _0,fv as zc,fw as v0,fx as Fs,fy as wm,fz as Ro,fA as qg,fB as b0,fC as C0,fD as ym,fE as S0,fF as Dm,fG as Gg,fH as w0,fI as y0,fJ as D0,fK as x0,fL as I0,fM as L0,fN as Mu,fO as Ou,fP as $a,fQ as ua,fR as Ud,fS as E0,fT as Pu,fU as xm,fV as T0,fW as k0,fX as ql,fY as Im,fZ as R0,f_ as qi,f$ as ga,g0 as A0,g1 as Zg,g2 as Yg,g3 as N0,g4 as M0,g5 as Xg,g6 as O0,g7 as P0,g8 as jd,g9 as Lm,ga as Em,gb as Tm,gc as km,gd as Rm,ge as Ai,gf as Fu,gg as F0,gh as B0,gi as W0,gj as H0,gk as V0,gl as $0,gm as z0,gn as Uc,go as Gl,gp as Zl,gq as Qn,gr as Yl,gs as Or,gt as U0,gu as Xl,gv as Qg,gw as Re,gx as j0,gy as Am,gz as K0,gA as q0,gB as G0,gC as Z0,gD as _s,gE as Pr,gF as Y0,gG as Nm,gH as X0,gI as Q0,gJ as Mm,gK as jc,gL as J0,gM as ew,gN as tw,gO as iw,gP as nw,gQ as Kc,gR as ow,gS as sw,gT as rw,gU as aw,gV as lw,gW as Om,gX as dw,gY as cw,gZ as hw,g_ as uw,g$ as gw,h0 as pw,h1 as fw,h2 as mw,h3 as _w,h4 as vw,h5 as bw,h6 as Cw,h7 as Sw,h8 as ww,h9 as yw,ha as Dw,hb as xw,e as Iw,hc as Lw}from"./editor.api.d8951072.js";import{_ as F}from"./index.01cc2733.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -23,7 +23,7 @@ var Kb=Object.defineProperty;var qb=(r,e,t)=>e in r?Kb(r,e,{enumerable:!0,config * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var oy=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,ry=Object.getOwnPropertyNames,ay=Object.prototype.hasOwnProperty,sp=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ry(e))!ay.call(r,n)&&n!==t&&oy(r,n,{get:()=>e[n],enumerable:!(i=sy(e,n))||i.enumerable});return r},ly=(r,e,t)=>(sp(r,e,"default"),t&&sp(t,e,"default")),dy="4.5.5",Ao={};ly(Ao,Lr);var jm=(r=>(r[r.None=0]="None",r[r.CommonJS=1]="CommonJS",r[r.AMD=2]="AMD",r[r.UMD=3]="UMD",r[r.System=4]="System",r[r.ES2015=5]="ES2015",r[r.ESNext=99]="ESNext",r))(jm||{}),Km=(r=>(r[r.None=0]="None",r[r.Preserve=1]="Preserve",r[r.React=2]="React",r[r.ReactNative=3]="ReactNative",r[r.ReactJSX=4]="ReactJSX",r[r.ReactJSXDev=5]="ReactJSXDev",r))(Km||{}),qm=(r=>(r[r.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",r[r.LineFeed=1]="LineFeed",r))(qm||{}),Gm=(r=>(r[r.ES3=0]="ES3",r[r.ES5=1]="ES5",r[r.ES2015=2]="ES2015",r[r.ES2016=3]="ES2016",r[r.ES2017=4]="ES2017",r[r.ES2018=5]="ES2018",r[r.ES2019=6]="ES2019",r[r.ES2020=7]="ES2020",r[r.ESNext=99]="ESNext",r[r.JSON=100]="JSON",r[r.Latest=99]="Latest",r))(Gm||{}),Zm=(r=>(r[r.Classic=1]="Classic",r[r.NodeJs=2]="NodeJs",r))(Zm||{}),Ym=class{constructor(r,e,t,i){ye(this,"_onDidChange",new Ao.Emitter);ye(this,"_onDidExtraLibsChange",new Ao.Emitter);ye(this,"_extraLibs");ye(this,"_removedExtraLibs");ye(this,"_eagerModelSync");ye(this,"_compilerOptions");ye(this,"_diagnosticsOptions");ye(this,"_workerOptions");ye(this,"_onDidExtraLibsChangeTimeout");ye(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(r),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(r,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===r)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:r,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(r){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),r&&r.length>0)for(const e of r){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(r){this._compilerOptions=r||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(r){this._diagnosticsOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(r){this._workerOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(r){this._inlayHintsOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(r){}setEagerModelSync(r){this._eagerModelSync=r}getEagerModelSync(){return this._eagerModelSync}},cy=dy,Xm=new Ym({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Qm=new Ym({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),hy=()=>id().then(r=>r.getTypeScriptWorker()),uy=()=>id().then(r=>r.getJavaScriptWorker());Ao.languages.typescript={ModuleKind:jm,JsxEmit:Km,NewLineKind:qm,ScriptTarget:Gm,ModuleResolutionKind:Zm,typescriptVersion:cy,typescriptDefaults:Xm,javascriptDefaults:Qm,getTypeScriptWorker:hy,getJavaScriptWorker:uy};function id(){return F(()=>import("./tsMode.b15804ca.js"),["assets/tsMode.b15804ca.js","assets/editor.api.d8951072.js","assets/editor.941fe252.css","assets/index.96709b2a.js","assets/index.64faed0f.css"])}Ao.languages.onLanguage("typescript",()=>id().then(r=>r.setupTypeScript(Xm)));Ao.languages.onLanguage("javascript",()=>id().then(r=>r.setupJavaScript(Qm)));var gy=globalThis&&globalThis.__decorate||function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},py=globalThis&&globalThis.__param||function(r,e){return function(t,i){e(t,i,r)}},nd=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(h){s(h)}}function l(d){try{c(i.throw(d))}catch(h){s(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(r,e||[])).next())})};const od=new ce("selectionAnchorSet",!1);let Ni=class Jm{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=od.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(Jm.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(X.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ft().appendText(g("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),kt(g("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(X.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Ni.ID="editor.contrib.selectionAnchorController";Ni=gy([py(1,_e)],Ni);class fy extends N{constructor(){super({id:"editor.action.setSelectionAnchor",label:g("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:C.editorTextFocus,primary:Ne(2089,2080),weight:100}})}run(e,t){var i;return nd(this,void 0,void 0,function*(){(i=Ni.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class my extends N{constructor(){super({id:"editor.action.goToSelectionAnchor",label:g("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:od})}run(e,t){var i;return nd(this,void 0,void 0,function*(){(i=Ni.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class _y extends N{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:g("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:od,kbOpts:{kbExpr:C.editorTextFocus,primary:Ne(2089,2089),weight:100}})}run(e,t){var i;return nd(this,void 0,void 0,function*(){(i=Ni.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class vy extends N{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:g("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:od,kbOpts:{kbExpr:C.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return nd(this,void 0,void 0,function*(){(i=Ni.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}de(Ni.ID,Ni);R(fy);R(my);R(_y);R(vy);const by=z("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},g("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Cy extends N{constructor(){super({id:"editor.action.jumpToBracket",label:g("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:C.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=Jt.get(t))===null||i===void 0||i.jumpToBracket()}}class Sy extends N{constructor(){super({id:"editor.action.selectToBracket",label:g("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let o=!0;i&&i.selectBrackets===!1&&(o=!1),(n=Jt.get(t))===null||n===void 0||n.selectToBracket(o)}}class wy{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Jt extends K{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ze(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(Jt.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let s=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?s=o[1].getStartPosition():o[1].containsPosition(n)&&(s=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)s=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(s=l.range.getStartPosition())}}return s?new X(s.lineNumber,s.column,s.lineNumber,s.column):new X(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){const c=t.bracketPairs.findNextBracket(o);c&&c.range&&(s=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(s){s.sort(y.compareRangesUsingStarts);const[c,d]=s;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new X(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let s=0;for(let h=0,u=e.length;h1&&o.sort(Q.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=o.length;h{const t=r.getColor(Gb);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=r.getColor(Lf);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});qn.appendMenuItem(J.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:g({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class yy{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const s=new y(i,n-1,i,n),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new y(i,o,i,o),a)}else{const s=new y(i,o,i,o+1),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new y(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new X(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new X(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class e_ extends N{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const o of n)i.push(new yy(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Dy extends e_{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:g("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:C.writable})}}class xy extends e_{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:g("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:C.writable})}}R(Dy);R(xy);class Iy extends N{constructor(){super({id:"editor.action.transposeLetters",label:g("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:C.writable,kbOpts:{kbExpr:C.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],o=t.getSelections();for(const s of o){if(!s.isEmpty())continue;const a=s.startLineNumber,l=s.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?s.getPosition():$d.rightPosition(i,s.getPosition().lineNumber,s.getPosition().column),h=$d.leftPosition(i,d),u=$d.leftPosition(i,h),p=i.getValueInRange(y.fromPositions(u,h)),f=i.getValueInRange(y.fromPositions(h,d)),m=y.fromPositions(u,d);n.push(new Er(m,f+p))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}R(Iy);var Ly=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(h){s(h)}}function l(d){try{c(i.throw(d))}catch(h){s(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(r,e||[])).next())})};const kn="9_cutcopypaste",Ey=qo||document.queryCommandSupported("cut"),t_=qo||document.queryCommandSupported("copy"),Ty=typeof navigator.clipboard>"u"||Zb?document.queryCommandSupported("paste"):!0;function $u(r){return r.register(),r}const ky=Ey?$u(new uu({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:qo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:J.MenubarEditMenu,group:"2_ccp",title:g({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:J.EditorContext,group:kn,title:g("actions.clipboard.cutLabel","Cut"),when:C.writable,order:1},{menuId:J.CommandPalette,group:"",title:g("actions.clipboard.cutLabel","Cut"),order:1},{menuId:J.SimpleEditorContext,group:kn,title:g("actions.clipboard.cutLabel","Cut"),when:C.writable,order:1}]})):void 0,Ry=t_?$u(new uu({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:qo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:J.MenubarEditMenu,group:"2_ccp",title:g({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:J.EditorContext,group:kn,title:g("actions.clipboard.copyLabel","Copy"),order:2},{menuId:J.CommandPalette,group:"",title:g("actions.clipboard.copyLabel","Copy"),order:1},{menuId:J.SimpleEditorContext,group:kn,title:g("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;qn.appendMenuItem(J.MenubarEditMenu,{submenu:J.MenubarCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});qn.appendMenuItem(J.EditorContext,{submenu:J.EditorContextCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:kn,order:3});qn.appendMenuItem(J.EditorContext,{submenu:J.EditorContextShare,title:{value:g("share","Share"),original:"Share"},group:"11_share",order:-1});const qd=Ty?$u(new uu({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:qo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:J.MenubarEditMenu,group:"2_ccp",title:g({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:J.EditorContext,group:kn,title:g("actions.clipboard.pasteLabel","Paste"),when:C.writable,order:4},{menuId:J.CommandPalette,group:"",title:g("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:J.SimpleEditorContext,group:kn,title:g("actions.clipboard.pasteLabel","Paste"),when:C.writable,order:4}]})):void 0;class Ay extends N{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:g("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:C.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(Rg.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),Rg.forceCopyWithSyntaxHighlighting=!1)}}function i_(r,e){!r||(r.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(Ke).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(33),s=n.getSelection();return s&&s.isEmpty()&&!o||document.execCommand(e),!0}return!1}),r.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}i_(ky,"cut");i_(Ry,"copy");qd&&(qd.addImplementation(1e4,"code-editor",(r,e)=>{const t=r.get(Ke),i=r.get(Go),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Ef?(()=>Ly(void 0,void 0,void 0,function*(){const s=yield i.readText();if(s!==""){const a=Yb.INSTANCE.get(s);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:s,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),qd.addImplementation(0,"generic-dom",(r,e)=>(document.execCommand("paste"),!0)));t_&&R(Ay);class re{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+re.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new re(this.value+re.sep+e)}}re.sep=".";re.None=new re("@@none@@");re.Empty=new re("");re.QuickFix=new re("quickfix");re.Refactor=new re("refactor");re.Source=new re("source");re.SourceOrganizeImports=re.Source.append("organizeImports");re.SourceFixAll=re.Source.append("fixAll");var Xe;(function(r){r.Refactor="refactor",r.RefactorPreview="refactor preview",r.Lightbulb="lightbulb",r.Default="other (default)",r.SourceAction="source action",r.QuickFix="quick fix action",r.FixAll="fix all",r.OrganizeImports="organize imports",r.AutoFix="auto fix",r.QuickFixHover="quick fix hover window",r.OnSave="save participants",r.ProblemsView="problems view"})(Xe||(Xe={}));function Ny(r,e){return!(r.include&&!r.include.intersects(e)||r.excludes&&r.excludes.some(t=>n_(e,t,r.include))||!r.includeSourceActions&&re.Source.contains(e))}function My(r,e){const t=e.kind?new re(e.kind):void 0;return!(r.include&&(!t||!r.include.contains(t))||r.excludes&&t&&r.excludes.some(i=>n_(t,i,r.include))||!r.includeSourceActions&&t&&re.Source.contains(t)||r.onlyIncludePreferredActions&&!e.isPreferred)}function n_(r,e,t){return!(!e.contains(r)||t&&e.contains(t))}class hi{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new hi(t.kind,t.apply,!1):new hi(hi.getKindFromUser(e,t.kind),hi.getApplyFromUser(e,t.apply),hi.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new re(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var zu=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(h){s(h)}}function l(d){try{c(i.throw(d))}catch(h){s(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(r,e||[])).next())})};const o_="editor.action.codeAction",s_="editor.action.refactor",Oy="editor.action.refactor.preview",r_="editor.action.sourceAction",Uu="editor.action.organizeImports",ju="editor.action.fixAll";class a_{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return zu(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Qe(n)}i&&(this.action.edit=i.edit)}return this})}}class Ku extends K{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(Ku.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:_t(e.diagnostics)?_t(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:_t(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&re.QuickFix.contains(new re(e.kind))&&!!e.isPreferred)}}const rp={actions:[],documentation:void 0};function qu(r,e,t,i,n,o){var s;const a=i.filter||{},l={only:(s=a.include)===null||s===void 0?void 0:s.value,trigger:i.type},c=new Xb(e,o),d=Py(r,e,a),h=new W,u=d.map(f=>zu(this,void 0,void 0,function*(){try{n.report(f);const m=yield f.provideCodeActions(e,t,l,c.token);if(m&&h.add(m),c.token.isCancellationRequested)return rp;const b=((m==null?void 0:m.actions)||[]).filter(E=>E&&My(a,E)),D=Fy(f,b,a.include);return{actions:b.map(E=>new a_(E,f)),documentation:D}}catch(m){if(Tr(m))throw m;return Qe(m),rp}})),p=r.onDidChange(()=>{const f=r.all(e);Ml(f,d)||c.cancel()});return Promise.all(u).then(f=>{const m=f.map(D=>D.actions).flat(),b=Ol(f.map(D=>D.documentation));return new Ku(m,b,h)}).finally(()=>{p.dispose(),c.dispose()})}function Py(r,e,t){return r.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Ny(t,new re(n))):!0)}function Fy(r,e,t){if(!r.documentation)return;const i=r.documentation.map(n=>({kind:new re(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const o of i)if(o.kind.contains(new re(n.kind)))return o.command}}Ie.registerCommand("_executeCodeActionProvider",function(r,e,t,i,n){return zu(this,void 0,void 0,function*(){if(!(e instanceof he))throw Ki();const{codeActionProvider:o}=r.get(ee),s=r.get(pi).getModel(e);if(!s)throw Ki();const a=X.isISelection(t)?X.liftSelection(t):y.isIRange(t)?s.validateRange(t):void 0;if(!a)throw Ki();const l=typeof i=="string"?new re(i):void 0,c=yield qu(o,s,a,{type:1,triggerAction:Xe.Default,filter:{includeSourceActions:!0,include:l}},Zo.None,pe.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var By=globalThis&&globalThis.__decorate||function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Wy=globalThis&&globalThis.__param||function(r,e){return function(t,i){e(t,i,r)}};let bt=class qc{constructor(e,t){this._messageWidget=new ht,this._messageListeners=new W,this._editor=e,this._visible=qc.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(qc.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){kt(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new ap(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new Yo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(ap.fadeOut(this._messageWidget.value))}};bt.ID="editor.contrib.messageController";bt.MESSAGE_VISIBLE=new ce("messageVisible",!1,g("messageVisible","Whether the editor is currently showing an inline message"));bt=By([Wy(1,_e)],bt);const Hy=St.bindToContribution(bt.get);$(new Hy({id:"leaveEditorMessage",precondition:bt.MESSAGE_VISIBLE,handler:r=>r.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class ap{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const s=document.createElement("div");s.classList.add("message"),s.textContent=n,this._domNode.appendChild(s);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}de(bt.ID,bt);var l_=globalThis&&globalThis.__decorate||function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ci=globalThis&&globalThis.__param||function(r,e){return function(t,i){e(t,i,r)}},Vy=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(h){s(h)}}function l(d){try{c(i.throw(d))}catch(h){s(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(r,e||[])).next())})};const is={Visible:new ce("CodeActionMenuVisible",!1,g("CodeActionMenuVisible","Whether the code action list widget is visible"))};class Gd extends Us{constructor(e,t){super(e.command?e.command.id:e.title,$y(e.title),void 0,!e.disabled,t),this.action=e}}function $y(r){return r.replace(/\r\n|\r|\n/g," ")}const zy="codeActionWidget",Zd=26;let Gc=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return zy}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,o=e.title,s=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=o,s?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,p]=this.acceptKeybindings;n.root.title=g({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(p))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=lt(e.disposables)}};Gc=l_([Ci(1,nt)],Gc);let ul=class Zc extends K{constructor(e,t,i,n,o,s,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=o,this._telemetryService=s,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new ht),this.codeActionList=this._register(new ht),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new sd({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=is.Visible.bindTo(this._contextKeyService),this.listRenderer=new Gc(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,o;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(o=this.codeActionList.value)===null||o===void 0||o.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new W,o=document.createElement("div"),s=document.createElement("div");this.block=e.appendChild(s),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",n.add(we(this.block,dt.MOUSE_DOWN,u=>u.stopPropagation())),o.id="codeActionMenuWidget",o.classList.add("codeActionMenuWidget"),e.appendChild(o),this.codeActionList.value=new Tf("codeActionWidget",o,{getHeight(u){return u.isSeparator?10:Zd},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var p;return(p=this.codeActionList.value)===null||p===void 0?void 0:p.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,p)=>{const f=u.class==="separator";let m=!1;u instanceof Gd&&(m=u.action.kind===Zc.documentationID),f&&(this.hasSeperator=!0);const b={title:u.label,detail:u.tooltip,action:t[p],isEnabled:u.enabled,isSeparator:f,index:p,isDocumentation:m};u.enabled&&this.viewItems.push(b),this.options.push(b)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*Zd+10:t.length*Zd;o.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,p)=>{var f,m;if(!this.codeActionList.value)return;const b=(m=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(p)))===null||m===void 0?void 0:m.getElementsByTagName("span")[0].offsetWidth;l.push(Number(b))});const c=Math.max(...l);o.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Ac(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===Li.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===Li.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return Vy(this,void 0,void 0,function*(){const o=this._editor.getModel();if(!o)return;const s=n.includeDisabledActions?t.allActions:t.validActions;if(!s.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,Qb();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,s,t.documentation),l=Q.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(o)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?Xe.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?Xe.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof Gd?c(h.action):void 0})})}getMenuActions(e,t,i){var n,o;const s=d=>new Gd(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(s),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(h=>h.action)));return l.length&&a.push(new Li,...l.map(d=>s(new a_({title:d.title,command:d,kind:Zc.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Pi(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};ul.documentationID="_documentation";ul=l_([Ci(2,Xo),Ci(3,nt),Ci(4,ee),Ci(5,Qo),Ci(6,At),Ci(7,Be),Ci(8,gu),Ci(9,_e)],ul);class sd{constructor(e){this._keybindingProvider=e}getResolver(){const e=new nl(()=>this._keybindingProvider.getKeybindings().filter(t=>sd.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===Uu?i={kind:re.SourceOrganizeImports.value}:t.command===ju&&(i={kind:re.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},hi.fromUser(i,{kind:re.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new re(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}sd.codeActionCommands=[s_,o_,r_,Uu,ju];var Uy=globalThis&&globalThis.__decorate||function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jy=globalThis&&globalThis.__param||function(r,e){return function(t,i){e(t,i,r)}},Ws;(function(r){r.Hidden={type:0};class e{constructor(i,n,o,s){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=s,this.type=1}}r.Showing=e})(Ws||(Ws={}));let gl=class d_ extends K{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new ne),this.onClick=this._onClick.event,this._state=Ws.Hidden,this._domNode=document.createElement("div"),this._domNode.className=q.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const s=this._editor.getModel();(this.state.type!==1||!s||this.state.editorPosition.lineNumber>=s.getLineCount())&&this.hide()})),pu.ignoreTarget(this._domNode),this._register(Jb(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:s,height:a}=Pi(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(o.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:s,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,c=n.get(46),d=o.getLineContent(s),h=fu(d,l),u=c.spaceWidth*h>22,p=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let f=s;if(!u){if(s>1&&!p(s-1))f-=1;else if(!p(s+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Ws.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:d_._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ws.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...q.lightBulb.classNamesArray),this._domNode.classList.add(...q.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=g("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...q.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...q.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=g("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=g("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};gl._posPref=[0];gl=Uy([jy(3,nt)],gl);je((r,e)=>{var t;const i=(t=r.getColor(Ls))===null||t===void 0?void 0:t.transparent(.7),n=r.getColor(eC);n&&e.addRule(` + *-----------------------------------------------------------------------------*/var oy=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,ry=Object.getOwnPropertyNames,ay=Object.prototype.hasOwnProperty,sp=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ry(e))!ay.call(r,n)&&n!==t&&oy(r,n,{get:()=>e[n],enumerable:!(i=sy(e,n))||i.enumerable});return r},ly=(r,e,t)=>(sp(r,e,"default"),t&&sp(t,e,"default")),dy="4.5.5",Ao={};ly(Ao,Lr);var jm=(r=>(r[r.None=0]="None",r[r.CommonJS=1]="CommonJS",r[r.AMD=2]="AMD",r[r.UMD=3]="UMD",r[r.System=4]="System",r[r.ES2015=5]="ES2015",r[r.ESNext=99]="ESNext",r))(jm||{}),Km=(r=>(r[r.None=0]="None",r[r.Preserve=1]="Preserve",r[r.React=2]="React",r[r.ReactNative=3]="ReactNative",r[r.ReactJSX=4]="ReactJSX",r[r.ReactJSXDev=5]="ReactJSXDev",r))(Km||{}),qm=(r=>(r[r.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",r[r.LineFeed=1]="LineFeed",r))(qm||{}),Gm=(r=>(r[r.ES3=0]="ES3",r[r.ES5=1]="ES5",r[r.ES2015=2]="ES2015",r[r.ES2016=3]="ES2016",r[r.ES2017=4]="ES2017",r[r.ES2018=5]="ES2018",r[r.ES2019=6]="ES2019",r[r.ES2020=7]="ES2020",r[r.ESNext=99]="ESNext",r[r.JSON=100]="JSON",r[r.Latest=99]="Latest",r))(Gm||{}),Zm=(r=>(r[r.Classic=1]="Classic",r[r.NodeJs=2]="NodeJs",r))(Zm||{}),Ym=class{constructor(r,e,t,i){ye(this,"_onDidChange",new Ao.Emitter);ye(this,"_onDidExtraLibsChange",new Ao.Emitter);ye(this,"_extraLibs");ye(this,"_removedExtraLibs");ye(this,"_eagerModelSync");ye(this,"_compilerOptions");ye(this,"_diagnosticsOptions");ye(this,"_workerOptions");ye(this,"_onDidExtraLibsChangeTimeout");ye(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(r),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(r,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===r)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:r,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(r){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),r&&r.length>0)for(const e of r){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(r){this._compilerOptions=r||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(r){this._diagnosticsOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(r){this._workerOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(r){this._inlayHintsOptions=r||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(r){}setEagerModelSync(r){this._eagerModelSync=r}getEagerModelSync(){return this._eagerModelSync}},cy=dy,Xm=new Ym({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Qm=new Ym({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),hy=()=>id().then(r=>r.getTypeScriptWorker()),uy=()=>id().then(r=>r.getJavaScriptWorker());Ao.languages.typescript={ModuleKind:jm,JsxEmit:Km,NewLineKind:qm,ScriptTarget:Gm,ModuleResolutionKind:Zm,typescriptVersion:cy,typescriptDefaults:Xm,javascriptDefaults:Qm,getTypeScriptWorker:hy,getJavaScriptWorker:uy};function id(){return F(()=>import("./tsMode.983d8a72.js"),["assets/tsMode.983d8a72.js","assets/editor.api.d8951072.js","assets/editor.941fe252.css","assets/index.01cc2733.js","assets/index.64faed0f.css"])}Ao.languages.onLanguage("typescript",()=>id().then(r=>r.setupTypeScript(Xm)));Ao.languages.onLanguage("javascript",()=>id().then(r=>r.setupJavaScript(Qm)));var gy=globalThis&&globalThis.__decorate||function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},py=globalThis&&globalThis.__param||function(r,e){return function(t,i){e(t,i,r)}},nd=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(h){s(h)}}function l(d){try{c(i.throw(d))}catch(h){s(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(r,e||[])).next())})};const od=new ce("selectionAnchorSet",!1);let Ni=class Jm{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=od.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(Jm.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(X.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ft().appendText(g("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),kt(g("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(X.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Ni.ID="editor.contrib.selectionAnchorController";Ni=gy([py(1,_e)],Ni);class fy extends N{constructor(){super({id:"editor.action.setSelectionAnchor",label:g("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:C.editorTextFocus,primary:Ne(2089,2080),weight:100}})}run(e,t){var i;return nd(this,void 0,void 0,function*(){(i=Ni.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class my extends N{constructor(){super({id:"editor.action.goToSelectionAnchor",label:g("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:od})}run(e,t){var i;return nd(this,void 0,void 0,function*(){(i=Ni.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class _y extends N{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:g("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:od,kbOpts:{kbExpr:C.editorTextFocus,primary:Ne(2089,2089),weight:100}})}run(e,t){var i;return nd(this,void 0,void 0,function*(){(i=Ni.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class vy extends N{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:g("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:od,kbOpts:{kbExpr:C.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return nd(this,void 0,void 0,function*(){(i=Ni.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}de(Ni.ID,Ni);R(fy);R(my);R(_y);R(vy);const by=z("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},g("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Cy extends N{constructor(){super({id:"editor.action.jumpToBracket",label:g("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:C.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=Jt.get(t))===null||i===void 0||i.jumpToBracket()}}class Sy extends N{constructor(){super({id:"editor.action.selectToBracket",label:g("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let o=!0;i&&i.selectBrackets===!1&&(o=!1),(n=Jt.get(t))===null||n===void 0||n.selectToBracket(o)}}class wy{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Jt extends K{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ze(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(Jt.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let s=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?s=o[1].getStartPosition():o[1].containsPosition(n)&&(s=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)s=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(s=l.range.getStartPosition())}}return s?new X(s.lineNumber,s.column,s.lineNumber,s.column):new X(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){const c=t.bracketPairs.findNextBracket(o);c&&c.range&&(s=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(s){s.sort(y.compareRangesUsingStarts);const[c,d]=s;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new X(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let s=0;for(let h=0,u=e.length;h1&&o.sort(Q.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=o.length;h{const t=r.getColor(Gb);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=r.getColor(Lf);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});qn.appendMenuItem(J.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:g({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class yy{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const s=new y(i,n-1,i,n),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new y(i,o,i,o),a)}else{const s=new y(i,o,i,o+1),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new y(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new X(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new X(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class e_ extends N{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const o of n)i.push(new yy(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Dy extends e_{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:g("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:C.writable})}}class xy extends e_{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:g("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:C.writable})}}R(Dy);R(xy);class Iy extends N{constructor(){super({id:"editor.action.transposeLetters",label:g("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:C.writable,kbOpts:{kbExpr:C.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],o=t.getSelections();for(const s of o){if(!s.isEmpty())continue;const a=s.startLineNumber,l=s.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?s.getPosition():$d.rightPosition(i,s.getPosition().lineNumber,s.getPosition().column),h=$d.leftPosition(i,d),u=$d.leftPosition(i,h),p=i.getValueInRange(y.fromPositions(u,h)),f=i.getValueInRange(y.fromPositions(h,d)),m=y.fromPositions(u,d);n.push(new Er(m,f+p))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}R(Iy);var Ly=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(h){s(h)}}function l(d){try{c(i.throw(d))}catch(h){s(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(r,e||[])).next())})};const kn="9_cutcopypaste",Ey=qo||document.queryCommandSupported("cut"),t_=qo||document.queryCommandSupported("copy"),Ty=typeof navigator.clipboard>"u"||Zb?document.queryCommandSupported("paste"):!0;function $u(r){return r.register(),r}const ky=Ey?$u(new uu({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:qo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:J.MenubarEditMenu,group:"2_ccp",title:g({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:J.EditorContext,group:kn,title:g("actions.clipboard.cutLabel","Cut"),when:C.writable,order:1},{menuId:J.CommandPalette,group:"",title:g("actions.clipboard.cutLabel","Cut"),order:1},{menuId:J.SimpleEditorContext,group:kn,title:g("actions.clipboard.cutLabel","Cut"),when:C.writable,order:1}]})):void 0,Ry=t_?$u(new uu({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:qo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:J.MenubarEditMenu,group:"2_ccp",title:g({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:J.EditorContext,group:kn,title:g("actions.clipboard.copyLabel","Copy"),order:2},{menuId:J.CommandPalette,group:"",title:g("actions.clipboard.copyLabel","Copy"),order:1},{menuId:J.SimpleEditorContext,group:kn,title:g("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;qn.appendMenuItem(J.MenubarEditMenu,{submenu:J.MenubarCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});qn.appendMenuItem(J.EditorContext,{submenu:J.EditorContextCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:kn,order:3});qn.appendMenuItem(J.EditorContext,{submenu:J.EditorContextShare,title:{value:g("share","Share"),original:"Share"},group:"11_share",order:-1});const qd=Ty?$u(new uu({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:qo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:J.MenubarEditMenu,group:"2_ccp",title:g({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:J.EditorContext,group:kn,title:g("actions.clipboard.pasteLabel","Paste"),when:C.writable,order:4},{menuId:J.CommandPalette,group:"",title:g("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:J.SimpleEditorContext,group:kn,title:g("actions.clipboard.pasteLabel","Paste"),when:C.writable,order:4}]})):void 0;class Ay extends N{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:g("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:C.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(Rg.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),Rg.forceCopyWithSyntaxHighlighting=!1)}}function i_(r,e){!r||(r.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(Ke).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(33),s=n.getSelection();return s&&s.isEmpty()&&!o||document.execCommand(e),!0}return!1}),r.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}i_(ky,"cut");i_(Ry,"copy");qd&&(qd.addImplementation(1e4,"code-editor",(r,e)=>{const t=r.get(Ke),i=r.get(Go),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Ef?(()=>Ly(void 0,void 0,void 0,function*(){const s=yield i.readText();if(s!==""){const a=Yb.INSTANCE.get(s);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:s,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),qd.addImplementation(0,"generic-dom",(r,e)=>(document.execCommand("paste"),!0)));t_&&R(Ay);class re{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+re.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new re(this.value+re.sep+e)}}re.sep=".";re.None=new re("@@none@@");re.Empty=new re("");re.QuickFix=new re("quickfix");re.Refactor=new re("refactor");re.Source=new re("source");re.SourceOrganizeImports=re.Source.append("organizeImports");re.SourceFixAll=re.Source.append("fixAll");var Xe;(function(r){r.Refactor="refactor",r.RefactorPreview="refactor preview",r.Lightbulb="lightbulb",r.Default="other (default)",r.SourceAction="source action",r.QuickFix="quick fix action",r.FixAll="fix all",r.OrganizeImports="organize imports",r.AutoFix="auto fix",r.QuickFixHover="quick fix hover window",r.OnSave="save participants",r.ProblemsView="problems view"})(Xe||(Xe={}));function Ny(r,e){return!(r.include&&!r.include.intersects(e)||r.excludes&&r.excludes.some(t=>n_(e,t,r.include))||!r.includeSourceActions&&re.Source.contains(e))}function My(r,e){const t=e.kind?new re(e.kind):void 0;return!(r.include&&(!t||!r.include.contains(t))||r.excludes&&t&&r.excludes.some(i=>n_(t,i,r.include))||!r.includeSourceActions&&t&&re.Source.contains(t)||r.onlyIncludePreferredActions&&!e.isPreferred)}function n_(r,e,t){return!(!e.contains(r)||t&&e.contains(t))}class hi{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new hi(t.kind,t.apply,!1):new hi(hi.getKindFromUser(e,t.kind),hi.getApplyFromUser(e,t.apply),hi.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new re(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var zu=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(h){s(h)}}function l(d){try{c(i.throw(d))}catch(h){s(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(r,e||[])).next())})};const o_="editor.action.codeAction",s_="editor.action.refactor",Oy="editor.action.refactor.preview",r_="editor.action.sourceAction",Uu="editor.action.organizeImports",ju="editor.action.fixAll";class a_{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return zu(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Qe(n)}i&&(this.action.edit=i.edit)}return this})}}class Ku extends K{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(Ku.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:_t(e.diagnostics)?_t(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:_t(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&re.QuickFix.contains(new re(e.kind))&&!!e.isPreferred)}}const rp={actions:[],documentation:void 0};function qu(r,e,t,i,n,o){var s;const a=i.filter||{},l={only:(s=a.include)===null||s===void 0?void 0:s.value,trigger:i.type},c=new Xb(e,o),d=Py(r,e,a),h=new W,u=d.map(f=>zu(this,void 0,void 0,function*(){try{n.report(f);const m=yield f.provideCodeActions(e,t,l,c.token);if(m&&h.add(m),c.token.isCancellationRequested)return rp;const b=((m==null?void 0:m.actions)||[]).filter(E=>E&&My(a,E)),D=Fy(f,b,a.include);return{actions:b.map(E=>new a_(E,f)),documentation:D}}catch(m){if(Tr(m))throw m;return Qe(m),rp}})),p=r.onDidChange(()=>{const f=r.all(e);Ml(f,d)||c.cancel()});return Promise.all(u).then(f=>{const m=f.map(D=>D.actions).flat(),b=Ol(f.map(D=>D.documentation));return new Ku(m,b,h)}).finally(()=>{p.dispose(),c.dispose()})}function Py(r,e,t){return r.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Ny(t,new re(n))):!0)}function Fy(r,e,t){if(!r.documentation)return;const i=r.documentation.map(n=>({kind:new re(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const o of i)if(o.kind.contains(new re(n.kind)))return o.command}}Ie.registerCommand("_executeCodeActionProvider",function(r,e,t,i,n){return zu(this,void 0,void 0,function*(){if(!(e instanceof he))throw Ki();const{codeActionProvider:o}=r.get(ee),s=r.get(pi).getModel(e);if(!s)throw Ki();const a=X.isISelection(t)?X.liftSelection(t):y.isIRange(t)?s.validateRange(t):void 0;if(!a)throw Ki();const l=typeof i=="string"?new re(i):void 0,c=yield qu(o,s,a,{type:1,triggerAction:Xe.Default,filter:{includeSourceActions:!0,include:l}},Zo.None,pe.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var By=globalThis&&globalThis.__decorate||function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Wy=globalThis&&globalThis.__param||function(r,e){return function(t,i){e(t,i,r)}};let bt=class qc{constructor(e,t){this._messageWidget=new ht,this._messageListeners=new W,this._editor=e,this._visible=qc.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(qc.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){kt(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new ap(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new Yo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(ap.fadeOut(this._messageWidget.value))}};bt.ID="editor.contrib.messageController";bt.MESSAGE_VISIBLE=new ce("messageVisible",!1,g("messageVisible","Whether the editor is currently showing an inline message"));bt=By([Wy(1,_e)],bt);const Hy=St.bindToContribution(bt.get);$(new Hy({id:"leaveEditorMessage",precondition:bt.MESSAGE_VISIBLE,handler:r=>r.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class ap{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const s=document.createElement("div");s.classList.add("message"),s.textContent=n,this._domNode.appendChild(s);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}de(bt.ID,bt);var l_=globalThis&&globalThis.__decorate||function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ci=globalThis&&globalThis.__param||function(r,e){return function(t,i){e(t,i,r)}},Vy=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(h){s(h)}}function l(d){try{c(i.throw(d))}catch(h){s(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(r,e||[])).next())})};const is={Visible:new ce("CodeActionMenuVisible",!1,g("CodeActionMenuVisible","Whether the code action list widget is visible"))};class Gd extends Us{constructor(e,t){super(e.command?e.command.id:e.title,$y(e.title),void 0,!e.disabled,t),this.action=e}}function $y(r){return r.replace(/\r\n|\r|\n/g," ")}const zy="codeActionWidget",Zd=26;let Gc=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return zy}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,o=e.title,s=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=o,s?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,p]=this.acceptKeybindings;n.root.title=g({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(p))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=lt(e.disposables)}};Gc=l_([Ci(1,nt)],Gc);let ul=class Zc extends K{constructor(e,t,i,n,o,s,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=o,this._telemetryService=s,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new ht),this.codeActionList=this._register(new ht),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new sd({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=is.Visible.bindTo(this._contextKeyService),this.listRenderer=new Gc(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,o;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(o=this.codeActionList.value)===null||o===void 0||o.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new W,o=document.createElement("div"),s=document.createElement("div");this.block=e.appendChild(s),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",n.add(we(this.block,dt.MOUSE_DOWN,u=>u.stopPropagation())),o.id="codeActionMenuWidget",o.classList.add("codeActionMenuWidget"),e.appendChild(o),this.codeActionList.value=new Tf("codeActionWidget",o,{getHeight(u){return u.isSeparator?10:Zd},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var p;return(p=this.codeActionList.value)===null||p===void 0?void 0:p.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,p)=>{const f=u.class==="separator";let m=!1;u instanceof Gd&&(m=u.action.kind===Zc.documentationID),f&&(this.hasSeperator=!0);const b={title:u.label,detail:u.tooltip,action:t[p],isEnabled:u.enabled,isSeparator:f,index:p,isDocumentation:m};u.enabled&&this.viewItems.push(b),this.options.push(b)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*Zd+10:t.length*Zd;o.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,p)=>{var f,m;if(!this.codeActionList.value)return;const b=(m=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(p)))===null||m===void 0?void 0:m.getElementsByTagName("span")[0].offsetWidth;l.push(Number(b))});const c=Math.max(...l);o.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Ac(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===Li.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===Li.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return Vy(this,void 0,void 0,function*(){const o=this._editor.getModel();if(!o)return;const s=n.includeDisabledActions?t.allActions:t.validActions;if(!s.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,Qb();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,s,t.documentation),l=Q.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(o)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?Xe.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?Xe.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof Gd?c(h.action):void 0})})}getMenuActions(e,t,i){var n,o;const s=d=>new Gd(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(s),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(h=>h.action)));return l.length&&a.push(new Li,...l.map(d=>s(new a_({title:d.title,command:d,kind:Zc.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Pi(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};ul.documentationID="_documentation";ul=l_([Ci(2,Xo),Ci(3,nt),Ci(4,ee),Ci(5,Qo),Ci(6,At),Ci(7,Be),Ci(8,gu),Ci(9,_e)],ul);class sd{constructor(e){this._keybindingProvider=e}getResolver(){const e=new nl(()=>this._keybindingProvider.getKeybindings().filter(t=>sd.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===Uu?i={kind:re.SourceOrganizeImports.value}:t.command===ju&&(i={kind:re.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},hi.fromUser(i,{kind:re.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new re(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}sd.codeActionCommands=[s_,o_,r_,Uu,ju];var Uy=globalThis&&globalThis.__decorate||function(r,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jy=globalThis&&globalThis.__param||function(r,e){return function(t,i){e(t,i,r)}},Ws;(function(r){r.Hidden={type:0};class e{constructor(i,n,o,s){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=s,this.type=1}}r.Showing=e})(Ws||(Ws={}));let gl=class d_ extends K{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new ne),this.onClick=this._onClick.event,this._state=Ws.Hidden,this._domNode=document.createElement("div"),this._domNode.className=q.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const s=this._editor.getModel();(this.state.type!==1||!s||this.state.editorPosition.lineNumber>=s.getLineCount())&&this.hide()})),pu.ignoreTarget(this._domNode),this._register(Jb(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:s,height:a}=Pi(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(o.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:s,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,c=n.get(46),d=o.getLineContent(s),h=fu(d,l),u=c.spaceWidth*h>22,p=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let f=s;if(!u){if(s>1&&!p(s-1))f-=1;else if(!p(s+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Ws.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:d_._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ws.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...q.lightBulb.classNamesArray),this._domNode.classList.add(...q.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=g("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...q.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...q.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=g("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=g("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};gl._posPref=[0];gl=Uy([jy(3,nt)],gl);je((r,e)=>{var t;const i=(t=r.getColor(Ls))===null||t===void 0?void 0:t.transparent(.7),n=r.getColor(eC);n&&e.addRule(` .monaco-editor .contentWidgets ${q.lightBulb.cssSelector} { color: ${n}; background-color: ${i}; diff --git a/assets/index.96709b2a.js b/assets/index.01cc2733.js similarity index 99% rename from assets/index.96709b2a.js rename to assets/index.01cc2733.js index f00638753..4f596053a 100644 --- a/assets/index.96709b2a.js +++ b/assets/index.01cc2733.js @@ -29,7 +29,7 @@ var Bd=Object.defineProperty;var Wd=(e,t,n)=>t in e?Bd(e,t,{enumerable:!0,config `+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=u);break}}}finally{io=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bn(e):""}function Zd(e){switch(e.tag){case 5:return bn(e.type);case 16:return bn("Lazy");case 13:return bn("Suspense");case 19:return bn("SuspenseList");case 0:case 2:case 15:return e=oo(e.type,!1),e;case 11:return e=oo(e.type.render,!1),e;case 1:return e=oo(e.type,!0),e;default:return""}}function Do(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case nn:return"Fragment";case tn:return"Portal";case No:return"Profiler";case Dl:return"StrictMode";case Fo:return"Suspense";case Lo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fs:return(e.displayName||"Context")+".Consumer";case ds:return(e._context.displayName||"Context")+".Provider";case Al:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vl:return t=e.displayName||null,t!==null?t:Do(e.type)||"Memo";case dt:t=e._payload,e=e._init;try{return Do(e(t))}catch{}}return null}function Jd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Do(t);case 8:return t===Dl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qd(e){var t=hs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Br(e){e._valueTracker||(e._valueTracker=qd(e))}function ms(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hs(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ao(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gs(e,t){t=t.checked,t!=null&&Ll(e,"checked",t,!1)}function Vo(e,t){gs(e,t);var n=zt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jo(e,t.type,n):t.hasOwnProperty("defaultValue")&&jo(e,t.type,zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jo(e,t,n){(t!=="number"||oi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $n=Array.isArray;function hn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Wr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ef=["Webkit","ms","Moz","O"];Object.keys(Kn).forEach(function(e){ef.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kn[t]=Kn[e]})});function ks(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kn.hasOwnProperty(e)&&Kn[e]?(""+t).trim():t+"px"}function Ms(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ks(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tf=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $o(e,t){if(t){if(tf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ho(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Go=null;function jl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ko=null,mn=null,gn=null;function Gu(e){if(e=Cr(e)){if(typeof Ko!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Di(t),Ko(e.stateNode,e.type,t))}}function ws(e){mn?gn?gn.push(e):gn=[e]:mn=e}function Cs(){if(mn){var e=mn,t=gn;if(gn=mn=null,Gu(e),t)for(e=0;e>>=0,e===0?32:31-(pf(e)/hf|0)|0}var Pr=64,Rr=4194304;function Hn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function si(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~i;u!==0?r=Hn(u):(o&=l,o!==0&&(r=Hn(o)))}else l=n&~i,l!==0?r=Hn(l):o!==0&&(r=Hn(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Mr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ae(t),e[t]=n}function vf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Yn),ta=String.fromCharCode(32),na=!1;function bs(e,t){switch(e){case"keyup":return Gf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $s(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rn=!1;function Qf(e,t){switch(e){case"compositionend":return $s(t);case"keypress":return t.which!==32?null:(na=!0,ta);case"textInput":return e=t.data,e===ta&&na?null:e;default:return null}}function Yf(e,t){if(rn)return e==="compositionend"||!Yl&&bs(e,t)?(e=js(),Yr=Gl=mt=null,rn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=la(n)}}function Qs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ys(){for(var e=window,t=oi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oi(e.document)}return t}function Xl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ip(e){var t=Ys(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qs(n.ownerDocument.documentElement,n)){if(r!==null&&Xl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ua(n,o);var l=ua(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,on=null,qo=null,Zn=null,el=!1;function aa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;el||on==null||on!==oi(r)||(r=on,"selectionStart"in r&&Xl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zn&&sr(Zn,r)||(Zn=r,r=fi(qo,"onSelect"),0an||(e.current=ll[an],ll[an]=null,an--)}function A(e,t){an++,ll[an]=e.current,e.current=t}var _t={},ce=xt(_t),Se=xt(!1),Ut=_t;function wn(e,t){var n=e.type.contextTypes;if(!n)return _t;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ke(e){return e=e.childContextTypes,e!=null}function hi(){j(Se),j(ce)}function ma(e,t,n){if(ce.current!==_t)throw Error(E(168));A(ce,t),A(Se,n)}function ic(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,Jd(e)||"Unknown",i));return H({},n,r)}function mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_t,Ut=ce.current,A(ce,e),A(Se,Se.current),!0}function ga(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=ic(e,t,Ut),r.__reactInternalMemoizedMergedChildContext=e,j(Se),j(ce),A(ce,e)):j(Se),A(Se,n)}var Ze=null,Ai=!1,ko=!1;function oc(e){Ze===null?Ze=[e]:Ze.push(e)}function gp(e){Ai=!0,oc(e)}function Bt(){if(!ko&&Ze!==null){ko=!0;var e=0,t=D;try{var n=Ze;for(D=1;e>=l,i-=l,Je=1<<32-Ae(t)+i|n<w?(L=M,M=null):L=M.sibling;var B=d(f,M,m[w],S);if(B===null){M===null&&(M=L);break}e&&M&&B.alternate===null&&t(f,M),c=o(B,c,w),v===null?C=B:v.sibling=B,v=B,M=L}if(w===m.length)return n(f,M),U&&It(f,w),C;if(M===null){for(;ww?(L=M,M=null):L=M.sibling;var Z=d(f,M,B.value,S);if(Z===null){M===null&&(M=L);break}e&&M&&Z.alternate===null&&t(f,M),c=o(Z,c,w),v===null?C=Z:v.sibling=Z,v=Z,M=L}if(B.done)return n(f,M),U&&It(f,w),C;if(M===null){for(;!B.done;w++,B=m.next())B=h(f,B.value,S),B!==null&&(c=o(B,c,w),v===null?C=B:v.sibling=B,v=B);return U&&It(f,w),C}for(M=r(f,M);!B.done;w++,B=m.next())B=y(M,f,w,B.value,S),B!==null&&(e&&B.alternate!==null&&M.delete(B.key===null?w:B.key),c=o(B,c,w),v===null?C=B:v.sibling=B,v=B);return e&&M.forEach(function(ge){return t(f,ge)}),U&&It(f,w),C}function z(f,c,m,S){if(typeof m=="object"&&m!==null&&m.type===nn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case xr:e:{for(var C=m.key,v=c;v!==null;){if(v.key===C){if(C=m.type,C===nn){if(v.tag===7){n(f,v.sibling),c=i(v,m.props.children),c.return=f,f=c;break e}}else if(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===dt&&Ca(C)===v.type){n(f,v.sibling),c=i(v,m.props),c.ref=Dn(f,v,m),c.return=f,f=c;break e}n(f,v);break}else t(f,v);v=v.sibling}m.type===nn?(c=jt(m.props.children,f.mode,S,m.key),c.return=f,f=c):(S=ri(m.type,m.key,m.props,null,f.mode,S),S.ref=Dn(f,c,m),S.return=f,f=S)}return l(f);case tn:e:{for(v=m.key;c!==null;){if(c.key===v)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(f,c.sibling),c=i(c,m.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=To(m,f.mode,S),c.return=f,f=c}return l(f);case dt:return v=m._init,z(f,c,v(m._payload),S)}if($n(m))return g(f,c,m,S);if(Rn(m))return k(f,c,m,S);Vr(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(f,c.sibling),c=i(c,m),c.return=f,f=c):(n(f,c),c=_o(m,f.mode,S),c.return=f,f=c),l(f)):n(f,c)}return z}var On=pc(!0),hc=pc(!1),Or={},Qe=xt(Or),pr=xt(Or),hr=xt(Or);function At(e){if(e===Or)throw Error(E(174));return e}function ou(e,t){switch(A(hr,t),A(pr,e),A(Qe,Or),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bo(t,e)}j(Qe),A(Qe,t)}function En(){j(Qe),j(pr),j(hr)}function mc(e){At(hr.current);var t=At(Qe.current),n=bo(t,e.type);t!==n&&(A(pr,e),A(Qe,n))}function lu(e){pr.current===e&&(j(Qe),j(pr))}var b=xt(0);function Mi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mo=[];function uu(){for(var e=0;en?n:4,e(!0);var r=wo.transition;wo.transition={};try{e(!1),t()}finally{D=n,wo.transition=r}}function Wc(){return Ie().memoizedState}function kp(e,t,n){var r=Ot(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pc(e))Rc(t,n);else if(n=sc(e,t,n,r),n!==null){var i=pe();Ve(n,e,r,i),Ic(n,t,r)}}function Mp(e,t,n){var r=Ot(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pc(e))Rc(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,u=o(l,n);if(i.hasEagerState=!0,i.eagerState=u,Ue(u,l)){var a=t.interleaved;a===null?(i.next=i,ru(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=sc(e,t,i,r),n!==null&&(i=pe(),Ve(n,e,r,i),Ic(n,t,r))}}function Pc(e){var t=e.alternate;return e===$||t!==null&&t===$}function Rc(e,t){Jn=wi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ic(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bl(e,n)}}var Ci={readContext:Re,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useInsertionEffect:ue,useLayoutEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useMutableSource:ue,useSyncExternalStore:ue,useId:ue,unstable_isNewReconciler:!1},wp={readContext:Re,useCallback:function(e,t){return He().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:Ea,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qr(4194308,4,zc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qr(4194308,4,e,t)},useInsertionEffect:function(e,t){return qr(4,2,e,t)},useMemo:function(e,t){var n=He();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=He();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kp.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var t=He();return e={current:e},t.memoizedState=e},useState:Oa,useDebugValue:fu,useDeferredValue:function(e){return He().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Sp.bind(null,e[1]),He().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$,i=He();if(U){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),re===null)throw Error(E(349));($t&30)!==0||vc(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ea(kc.bind(null,r,o,e),[e]),r.flags|=2048,yr(9,Sc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=He(),t=re.identifierPrefix;if(U){var n=qe,r=Je;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ge]=t,e[fr]=r,bc(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ho(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;i_n&&(t.flags|=128,r=!0,An(o,!1),t.lanes=4194304)}else{if(!r)if(e=Mi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),An(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!U)return ae(t),null}else 2*Q()-o.renderingStartTime>_n&&n!==1073741824&&(t.flags|=128,r=!0,An(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Q(),t.sibling=null,n=b.current,A(b,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(we&1073741824)!==0&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Bp(e,t){switch(Jl(t),t.tag){case 1:return ke(t.type)&&hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(),j(Se),j(ce),uu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return lu(t),null;case 13:if(j(b),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(b),null;case 4:return En(),null;case 10:return nu(t.type._context),null;case 22:case 23:return vu(),null;case 24:return null;default:return null}}var Ur=!1,se=!1,Wp=typeof WeakSet=="function"?WeakSet:Set,T=null;function fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){G(e,t,r)}else n.current=null}function vl(e,t,n){try{n()}catch(r){G(e,t,r)}}var Ia=!1;function Pp(e,t){if(tl=ci,e=Ys(),Xl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,u=-1,a=-1,s=0,p=0,h=e,d=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(u=l+i),h!==o||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(y=h.firstChild)!==null;)d=h,h=y;for(;;){if(h===e)break t;if(d===n&&++s===i&&(u=l),d===o&&++p===r&&(a=l),(y=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=y}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(nl={focusedElem:e,selectionRange:n},ci=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var g=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var k=g.memoizedProps,z=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Fe(t.type,k),z);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){G(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return g=Ia,Ia=!1,g}function qn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&vl(t,n,o)}i=i.next}while(i!==r)}}function Ui(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Sl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Gc(e){var t=e.alternate;t!==null&&(e.alternate=null,Gc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ge],delete t[fr],delete t[ol],delete t[hp],delete t[mp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Kc(e){return e.tag===5||e.tag===3||e.tag===4}function Na(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pi));else if(r!==4&&(e=e.child,e!==null))for(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}function Ml(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ml(e,t,n),e=e.sibling;e!==null;)Ml(e,t,n),e=e.sibling}var ie=null,Le=!1;function ct(e,t,n){for(n=n.child;n!==null;)Qc(e,t,n),n=n.sibling}function Qc(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(Ii,n)}catch{}switch(n.tag){case 5:se||fn(n,t);case 6:var r=ie,i=Le;ie=null,ct(e,t,n),ie=r,Le=i,ie!==null&&(Le?(e=ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ie.removeChild(n.stateNode));break;case 18:ie!==null&&(Le?(e=ie,n=n.stateNode,e.nodeType===8?So(e.parentNode,n):e.nodeType===1&&So(e,n),ur(e)):So(ie,n.stateNode));break;case 4:r=ie,i=Le,ie=n.stateNode.containerInfo,Le=!0,ct(e,t,n),ie=r,Le=i;break;case 0:case 11:case 14:case 15:if(!se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&((o&2)!==0||(o&4)!==0)&&vl(n,t,l),i=i.next}while(i!==r)}ct(e,t,n);break;case 1:if(!se&&(fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){G(n,t,u)}ct(e,t,n);break;case 21:ct(e,t,n);break;case 22:n.mode&1?(se=(r=se)||n.memoizedState!==null,ct(e,t,n),se=r):ct(e,t,n);break;default:ct(e,t,n)}}function Fa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wp),t.forEach(function(r){var i=jp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ne(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ip(r/1960))-r,10e?16:e,gt===null)var r=!1;else{if(e=gt,gt=null,zi=0,(F&6)!==0)throw Error(E(331));var i=F;for(F|=4,T=e.current;T!==null;){var o=T,l=o.child;if((T.flags&16)!==0){var u=o.deletions;if(u!==null){for(var a=0;aQ()-gu?Vt(e,0):mu|=n),Me(e,t)}function nd(e,t){t===0&&((e.mode&1)===0?t=1:(t=Rr,Rr<<=1,(Rr&130023424)===0&&(Rr=4194304)));var n=pe();e=lt(e,t),e!==null&&(Mr(e,t,n),Me(e,n))}function Vp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nd(e,n)}function jp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),nd(e,n)}var rd;rd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)ve=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ve=!1,Tp(e,t,n);ve=(e.flags&131072)!==0}else ve=!1,U&&(t.flags&1048576)!==0&&lc(t,yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ei(e,t),e=t.pendingProps;var i=wn(t,ce.current);vn(t,n),i=su(null,t,r,e,i,n);var o=cu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ke(r)?(o=!0,mi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,iu(t),i.updater=Vi,t.stateNode=i,i._reactInternals=t,dl(t,r,e,n),t=hl(null,t,r,!0,o,n)):(t.tag=0,U&&o&&Zl(t),fe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ei(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=bp(r),e=Fe(r,e),i){case 0:t=pl(null,t,r,e,n);break e;case 1:t=Wa(null,t,r,e,n);break e;case 11:t=xa(null,t,r,e,n);break e;case 14:t=Ba(null,t,r,Fe(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),pl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),Wa(e,t,r,i,n);case 3:e:{if(Vc(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,i=o.element,cc(e,t),ki(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zn(Error(E(423)),t),t=Pa(e,t,r,n,i);break e}else if(r!==i){i=zn(Error(E(424)),t),t=Pa(e,t,r,n,i);break e}else for(Ce=Mt(t.stateNode.containerInfo.firstChild),Oe=t,U=!0,De=null,n=hc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cn(),r===i){t=ut(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return mc(t),e===null&&al(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,rl(r,i)?l=null:o!==null&&rl(r,o)&&(t.flags|=32),Ac(e,t),fe(e,t,l,n),t.child;case 6:return e===null&&al(t),null;case 13:return jc(e,t,n);case 4:return ou(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),xa(e,t,r,i,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,A(vi,r._currentValue),r._currentValue=l,o!==null)if(Ue(o.value,l)){if(o.children===i.children&&!Se.current){t=ut(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){l=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=tt(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var p=s.pending;p===null?a.next=a:(a.next=p.next,p.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),sl(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(E(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),sl(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}fe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,vn(t,n),i=Re(i),r=r(i),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,i=Fe(r,t.pendingProps),i=Fe(r.type,i),Ba(e,t,r,i,n);case 15:return Lc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),ei(e,t),t.tag=1,ke(r)?(e=!0,mi(t)):e=!1,vn(t,n),fc(t,r,i),dl(t,r,i,n),hl(null,t,r,!0,e,n);case 19:return Uc(e,t,n);case 22:return Dc(e,t,n)}throw Error(E(156,t.tag))};function id(e,t){return Bs(e,t)}function Up(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(e,t,n,r){return new Up(e,t,n,r)}function ku(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bp(e){if(typeof e=="function")return ku(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Al)return 11;if(e===Vl)return 14}return 2}function Et(e,t){var n=e.alternate;return n===null?(n=We(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ri(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")ku(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case nn:return jt(n.children,i,o,t);case Dl:l=8,i|=8;break;case No:return e=We(12,n,t,i|2),e.elementType=No,e.lanes=o,e;case Fo:return e=We(13,n,t,i),e.elementType=Fo,e.lanes=o,e;case Lo:return e=We(19,n,t,i),e.elementType=Lo,e.lanes=o,e;case ps:return $i(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ds:l=10;break e;case fs:l=9;break e;case Al:l=11;break e;case Vl:l=14;break e;case dt:l=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=We(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function jt(e,t,n,r){return e=We(7,e,r,t),e.lanes=n,e}function $i(e,t,n,r){return e=We(22,e,r,t),e.elementType=ps,e.lanes=n,e.stateNode={isHidden:!1},e}function _o(e,t,n){return e=We(6,e,null,t),e.lanes=n,e}function To(e,t,n){return t=We(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $p(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uo(0),this.expirationTimes=uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,i,o,l,u,a){return e=new $p(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=We(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iu(o),e}function Hp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ze})(qa);const Xp=Bl(qa.exports),ad=[{version:"5.1.6",packageName:"typescript-5.1.6"},{version:"5.0.4",packageName:"typescript-5.0.4"},{version:"4.9.5",packageName:"typescript-4.9.5"},{version:"4.8.4",packageName:"typescript-4.8.4"},{version:"4.7.4",packageName:"typescript-4.7.4"},{version:"4.6.4",packageName:"typescript-4.6.4"},{version:"4.5.5",packageName:"typescript-4.5.5"},{version:"4.4.4",packageName:"typescript-4.4.4"},{version:"4.3.5",packageName:"typescript-4.3.5"},{version:"@next (5.2.0-dev.20230807)",packageName:"typescript-next"}],ne={options:{id:"options",buttonId:"optionsButton",compilerVersionSelectionId:"compilerVersionSelection",treeModeId:"treeMode",bindingEnabledId:"bindingEnabled",showFactoryCodeId:"showFactoryCode",showInternalsId:"showInternals"},mainCodeEditor:{id:"codeEditor"},factoryCodeEditor:{id:"factoryCodeEditor"},treeViewer:{id:"treeViewer",selectedNodeClass:"selected"},properties:{node:{id:"node"},type:{id:"type"},symbol:{id:"symbol"},signature:{id:"signature"}}},Zp={sourceFileRefreshDelay:150};var nt;(function(e){e[e.forEachChild=0]="forEachChild",e[e.getChildren=1]="getChildren"})(nt||(nt={}));var x={exports:{}},Jp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qp=Jp,eh=qp;function sd(){}function cd(){}cd.resetWarningCache=sd;var th=function(){function e(r,i,o,l,u,a){if(a!==eh){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:cd,resetWarningCache:sd};return n.PropTypes=n,n};x.exports=th();var dd={exports:{}},nh=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"];(function(e){var t=nh,n=x.exports;e.exports=function(r,i,o){var l=r[i];if(!!l){var u=[];if(Object.keys(l).forEach(function(a){t.indexOf(a)===-1&&u.push(a)}),u.length)throw new Error("Prop "+i+" passed to "+o+". Has invalid keys "+u.join(", "))}},e.exports.isRequired=function(r,i,o){if(!r[i])throw new Error("Prop "+i+" passed to "+o+" is required");return e.exports(r,i,o)},e.exports.supportingArrays=n.oneOfType([n.arrayOf(e.exports),e.exports])})(dd);const Ft=dd.exports;function fd(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function pd(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function hd(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}fd.__suppressDeprecationWarning=!0;pd.__suppressDeprecationWarning=!0;hd.__suppressDeprecationWarning=!0;function rh(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,i=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||r!==null||i!==null){var o=e.displayName||e.name,l=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Eo(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ep=typeof WeakMap=="function"?WeakMap:Map;function Nc(e,t,n){n=tt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ei||(Ei=!0,wl=r),fl(e,t)},n}function Fc(e,t,n){n=tt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){fl(e,t),typeof r!="function"&&(Ct===null?Ct=new Set([this]):Ct.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function za(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ep;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ap.bind(null,e,t,n),t.then(e,e))}function _a(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ta(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=tt(-1,1),t.tag=2,wt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var zp=at.ReactCurrentOwner,ve=!1;function fe(e,t,n,r){t.child=e===null?hc(t,null,n,r):On(t,e.child,n,r)}function xa(e,t,n,r,i){n=n.render;var o=t.ref;return vn(t,i),r=su(e,t,n,r,o,i),n=cu(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ut(e,t,i)):(U&&n&&Zl(t),t.flags|=1,fe(e,t,r,i),t.child)}function Ba(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!ku(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Lc(e,t,o,r,i)):(e=ri(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:sr,n(l,r)&&e.ref===t.ref)return ut(e,t,i)}return t.flags|=1,e=Et(o,r),e.ref=t.ref,e.return=t,t.child=e}function Lc(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(sr(o,r)&&e.ref===t.ref)if(ve=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(ve=!0);else return t.lanes=e.lanes,ut(e,t,i)}return pl(e,t,n,r,i)}function Dc(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},A(pn,we),we|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,A(pn,we),we|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,A(pn,we),we|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,A(pn,we),we|=r;return fe(e,t,i,n),t.child}function Ac(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function pl(e,t,n,r,i){var o=ke(n)?Ut:ce.current;return o=wn(t,o),vn(t,i),n=su(e,t,n,r,o,i),r=cu(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ut(e,t,i)):(U&&r&&Zl(t),t.flags|=1,fe(e,t,n,i),t.child)}function Wa(e,t,n,r,i){if(ke(n)){var o=!0;mi(t)}else o=!1;if(vn(t,i),t.stateNode===null)ei(e,t),fc(t,n,r),dl(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,u=t.memoizedProps;l.props=u;var a=l.context,s=n.contextType;typeof s=="object"&&s!==null?s=Re(s):(s=ke(n)?Ut:ce.current,s=wn(t,s));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==r||a!==s)&&wa(t,l,r,s),ft=!1;var d=t.memoizedState;l.state=d,ki(t,r,l,i),a=t.memoizedState,u!==r||d!==a||Se.current||ft?(typeof p=="function"&&(cl(t,n,p,r),a=t.memoizedState),(u=ft||Ma(t,n,u,r,d,a,s))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=s,r=u):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,cc(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:Fe(t.type,u),l.props=s,h=t.pendingProps,d=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Re(a):(a=ke(n)?Ut:ce.current,a=wn(t,a));var y=n.getDerivedStateFromProps;(p=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==h||d!==a)&&wa(t,l,r,a),ft=!1,d=t.memoizedState,l.state=d,ki(t,r,l,i);var g=t.memoizedState;u!==h||d!==g||Se.current||ft?(typeof y=="function"&&(cl(t,n,y,r),g=t.memoizedState),(s=ft||Ma(t,n,s,r,d,g,a)||!1)?(p||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,g,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,g,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),l.props=r,l.state=g,l.context=a,r=s):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return hl(e,t,n,r,o,i)}function hl(e,t,n,r,i,o){Ac(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&ga(t,n,!1),ut(e,t,o);r=t.stateNode,zp.current=t;var u=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=On(t,e.child,null,o),t.child=On(t,null,u,o)):fe(e,t,u,o),t.memoizedState=r.state,i&&ga(t,n,!0),t.child}function Vc(e){var t=e.stateNode;t.pendingContext?ma(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ma(e,t.context,!1),ou(e,t.containerInfo)}function Pa(e,t,n,r,i){return Cn(),ql(i),t.flags|=256,fe(e,t,n,r),t.child}var ml={dehydrated:null,treeContext:null,retryLane:0};function gl(e){return{baseLanes:e,cachePool:null,transitions:null}}function jc(e,t,n){var r=t.pendingProps,i=b.current,o=!1,l=(t.flags&128)!==0,u;if((u=l)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),A(b,i&1),e===null)return al(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=l):o=$i(l,r,0,null),e=jt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=gl(n),t.memoizedState=ml,e):pu(t,l));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return _p(e,t,l,r,u,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,u=i.sibling;var a={mode:"hidden",children:r.children};return(l&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Et(i,a),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?o=Et(u,o):(o=jt(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?gl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=ml,r}return o=e.child,e=o.sibling,r=Et(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function pu(e,t){return t=$i({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jr(e,t,n,r){return r!==null&&ql(r),On(t,e.child,null,n),e=pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _p(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=Eo(Error(E(422))),jr(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=$i({mode:"visible",children:r.children},i,0,null),o=jt(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&On(t,e.child,null,l),t.child.memoizedState=gl(l),t.memoizedState=ml,o);if((t.mode&1)===0)return jr(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(E(419)),r=Eo(o,r,void 0),jr(e,t,l,r)}if(u=(l&e.childLanes)!==0,ve||u){if(r=re,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|l))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,lt(e,i),Ve(r,e,i,-1))}return Su(),r=Eo(Error(E(421))),jr(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Vp.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ce=Mt(i.nextSibling),Oe=t,U=!0,De=null,e!==null&&(xe[Be++]=Je,xe[Be++]=qe,xe[Be++]=bt,Je=e.id,qe=e.overflow,bt=t),t=pu(t,r.children),t.flags|=4096,t)}function Ra(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sl(e.return,t,n)}function zo(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Uc(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(fe(e,t,r.children,n),r=b.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ra(e,n,t);else if(e.tag===19)Ra(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(A(b,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Mi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zo(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Mi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zo(t,!0,n,null,o);break;case"together":zo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ei(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ht|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Et(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Et(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tp(e,t,n){switch(t.tag){case 3:Vc(t),Cn();break;case 5:mc(t);break;case 1:ke(t.type)&&mi(t);break;case 4:ou(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;A(vi,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(A(b,b.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?jc(e,t,n):(A(b,b.current&1),e=ut(e,t,n),e!==null?e.sibling:null);A(b,b.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Uc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),A(b,b.current),r)break;return null;case 22:case 23:return t.lanes=0,Dc(e,t,n)}return ut(e,t,n)}var bc,yl,$c,Hc;bc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};yl=function(){};$c=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,At(Qe.current);var o=null;switch(n){case"input":i=Ao(e,i),r=Ao(e,r),o=[];break;case"select":i=H({},i,{value:void 0}),r=H({},r,{value:void 0}),o=[];break;case"textarea":i=Uo(e,i),r=Uo(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pi)}$o(n,r);var l;n=null;for(s in i)if(!r.hasOwnProperty(s)&&i.hasOwnProperty(s)&&i[s]!=null)if(s==="style"){var u=i[s];for(l in u)u.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(nr.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in r){var a=r[s];if(u=i!=null?i[s]:void 0,r.hasOwnProperty(s)&&a!==u&&(a!=null||u!=null))if(s==="style")if(u){for(l in u)!u.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&u[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(o||(o=[]),o.push(s,n)),n=a;else s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,u=u?u.__html:void 0,a!=null&&u!==a&&(o=o||[]).push(s,a)):s==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(s,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(nr.hasOwnProperty(s)?(a!=null&&s==="onScroll"&&V("scroll",e),o||u===a||(o=[])):(o=o||[]).push(s,a))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};Hc=function(e,t,n,r){n!==r&&(t.flags|=4)};function An(e,t){if(!U)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xp(e,t,n){var r=t.pendingProps;switch(Jl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ae(t),null;case 1:return ke(t.type)&&hi(),ae(t),null;case 3:return r=t.stateNode,En(),j(Se),j(ce),uu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ar(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,De!==null&&(El(De),De=null))),yl(e,t),ae(t),null;case 5:lu(t);var i=At(hr.current);if(n=t.type,e!==null&&t.stateNode!=null)$c(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return ae(t),null}if(e=At(Qe.current),Ar(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ge]=t,r[fr]=o,e=(t.mode&1)!==0,n){case"dialog":V("cancel",r),V("close",r);break;case"iframe":case"object":case"embed":V("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ge]=t,e[fr]=r,bc(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ho(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;i_n&&(t.flags|=128,r=!0,An(o,!1),t.lanes=4194304)}else{if(!r)if(e=Mi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),An(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!U)return ae(t),null}else 2*Q()-o.renderingStartTime>_n&&n!==1073741824&&(t.flags|=128,r=!0,An(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Q(),t.sibling=null,n=b.current,A(b,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(we&1073741824)!==0&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Bp(e,t){switch(Jl(t),t.tag){case 1:return ke(t.type)&&hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(),j(Se),j(ce),uu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return lu(t),null;case 13:if(j(b),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(b),null;case 4:return En(),null;case 10:return nu(t.type._context),null;case 22:case 23:return vu(),null;case 24:return null;default:return null}}var Ur=!1,se=!1,Wp=typeof WeakSet=="function"?WeakSet:Set,T=null;function fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){G(e,t,r)}else n.current=null}function vl(e,t,n){try{n()}catch(r){G(e,t,r)}}var Ia=!1;function Pp(e,t){if(tl=ci,e=Ys(),Xl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,u=-1,a=-1,s=0,p=0,h=e,d=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(u=l+i),h!==o||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(y=h.firstChild)!==null;)d=h,h=y;for(;;){if(h===e)break t;if(d===n&&++s===i&&(u=l),d===o&&++p===r&&(a=l),(y=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=y}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(nl={focusedElem:e,selectionRange:n},ci=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var g=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var k=g.memoizedProps,z=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Fe(t.type,k),z);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){G(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return g=Ia,Ia=!1,g}function qn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&vl(t,n,o)}i=i.next}while(i!==r)}}function Ui(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Sl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Gc(e){var t=e.alternate;t!==null&&(e.alternate=null,Gc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ge],delete t[fr],delete t[ol],delete t[hp],delete t[mp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Kc(e){return e.tag===5||e.tag===3||e.tag===4}function Na(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pi));else if(r!==4&&(e=e.child,e!==null))for(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}function Ml(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ml(e,t,n),e=e.sibling;e!==null;)Ml(e,t,n),e=e.sibling}var ie=null,Le=!1;function ct(e,t,n){for(n=n.child;n!==null;)Qc(e,t,n),n=n.sibling}function Qc(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(Ii,n)}catch{}switch(n.tag){case 5:se||fn(n,t);case 6:var r=ie,i=Le;ie=null,ct(e,t,n),ie=r,Le=i,ie!==null&&(Le?(e=ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ie.removeChild(n.stateNode));break;case 18:ie!==null&&(Le?(e=ie,n=n.stateNode,e.nodeType===8?So(e.parentNode,n):e.nodeType===1&&So(e,n),ur(e)):So(ie,n.stateNode));break;case 4:r=ie,i=Le,ie=n.stateNode.containerInfo,Le=!0,ct(e,t,n),ie=r,Le=i;break;case 0:case 11:case 14:case 15:if(!se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&((o&2)!==0||(o&4)!==0)&&vl(n,t,l),i=i.next}while(i!==r)}ct(e,t,n);break;case 1:if(!se&&(fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){G(n,t,u)}ct(e,t,n);break;case 21:ct(e,t,n);break;case 22:n.mode&1?(se=(r=se)||n.memoizedState!==null,ct(e,t,n),se=r):ct(e,t,n);break;default:ct(e,t,n)}}function Fa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wp),t.forEach(function(r){var i=jp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ne(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ip(r/1960))-r,10e?16:e,gt===null)var r=!1;else{if(e=gt,gt=null,zi=0,(F&6)!==0)throw Error(E(331));var i=F;for(F|=4,T=e.current;T!==null;){var o=T,l=o.child;if((T.flags&16)!==0){var u=o.deletions;if(u!==null){for(var a=0;aQ()-gu?Vt(e,0):mu|=n),Me(e,t)}function nd(e,t){t===0&&((e.mode&1)===0?t=1:(t=Rr,Rr<<=1,(Rr&130023424)===0&&(Rr=4194304)));var n=pe();e=lt(e,t),e!==null&&(Mr(e,t,n),Me(e,n))}function Vp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nd(e,n)}function jp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),nd(e,n)}var rd;rd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)ve=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ve=!1,Tp(e,t,n);ve=(e.flags&131072)!==0}else ve=!1,U&&(t.flags&1048576)!==0&&lc(t,yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ei(e,t),e=t.pendingProps;var i=wn(t,ce.current);vn(t,n),i=su(null,t,r,e,i,n);var o=cu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ke(r)?(o=!0,mi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,iu(t),i.updater=Vi,t.stateNode=i,i._reactInternals=t,dl(t,r,e,n),t=hl(null,t,r,!0,o,n)):(t.tag=0,U&&o&&Zl(t),fe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ei(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=bp(r),e=Fe(r,e),i){case 0:t=pl(null,t,r,e,n);break e;case 1:t=Wa(null,t,r,e,n);break e;case 11:t=xa(null,t,r,e,n);break e;case 14:t=Ba(null,t,r,Fe(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),pl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),Wa(e,t,r,i,n);case 3:e:{if(Vc(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,i=o.element,cc(e,t),ki(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zn(Error(E(423)),t),t=Pa(e,t,r,n,i);break e}else if(r!==i){i=zn(Error(E(424)),t),t=Pa(e,t,r,n,i);break e}else for(Ce=Mt(t.stateNode.containerInfo.firstChild),Oe=t,U=!0,De=null,n=hc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cn(),r===i){t=ut(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return mc(t),e===null&&al(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,rl(r,i)?l=null:o!==null&&rl(r,o)&&(t.flags|=32),Ac(e,t),fe(e,t,l,n),t.child;case 6:return e===null&&al(t),null;case 13:return jc(e,t,n);case 4:return ou(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),xa(e,t,r,i,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,A(vi,r._currentValue),r._currentValue=l,o!==null)if(Ue(o.value,l)){if(o.children===i.children&&!Se.current){t=ut(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){l=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=tt(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var p=s.pending;p===null?a.next=a:(a.next=p.next,p.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),sl(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(E(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),sl(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}fe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,vn(t,n),i=Re(i),r=r(i),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,i=Fe(r,t.pendingProps),i=Fe(r.type,i),Ba(e,t,r,i,n);case 15:return Lc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),ei(e,t),t.tag=1,ke(r)?(e=!0,mi(t)):e=!1,vn(t,n),fc(t,r,i),dl(t,r,i,n),hl(null,t,r,!0,e,n);case 19:return Uc(e,t,n);case 22:return Dc(e,t,n)}throw Error(E(156,t.tag))};function id(e,t){return Bs(e,t)}function Up(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(e,t,n,r){return new Up(e,t,n,r)}function ku(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bp(e){if(typeof e=="function")return ku(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Al)return 11;if(e===Vl)return 14}return 2}function Et(e,t){var n=e.alternate;return n===null?(n=We(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ri(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")ku(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case nn:return jt(n.children,i,o,t);case Dl:l=8,i|=8;break;case No:return e=We(12,n,t,i|2),e.elementType=No,e.lanes=o,e;case Fo:return e=We(13,n,t,i),e.elementType=Fo,e.lanes=o,e;case Lo:return e=We(19,n,t,i),e.elementType=Lo,e.lanes=o,e;case ps:return $i(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ds:l=10;break e;case fs:l=9;break e;case Al:l=11;break e;case Vl:l=14;break e;case dt:l=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=We(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function jt(e,t,n,r){return e=We(7,e,r,t),e.lanes=n,e}function $i(e,t,n,r){return e=We(22,e,r,t),e.elementType=ps,e.lanes=n,e.stateNode={isHidden:!1},e}function _o(e,t,n){return e=We(6,e,null,t),e.lanes=n,e}function To(e,t,n){return t=We(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $p(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uo(0),this.expirationTimes=uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,i,o,l,u,a){return e=new $p(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=We(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iu(o),e}function Hp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ze})(qa);const Xp=Bl(qa.exports),ad=[{version:"5.1.6",packageName:"typescript-5.1.6"},{version:"5.0.4",packageName:"typescript-5.0.4"},{version:"4.9.5",packageName:"typescript-4.9.5"},{version:"4.8.4",packageName:"typescript-4.8.4"},{version:"4.7.4",packageName:"typescript-4.7.4"},{version:"4.6.4",packageName:"typescript-4.6.4"},{version:"4.5.5",packageName:"typescript-4.5.5"},{version:"4.4.4",packageName:"typescript-4.4.4"},{version:"4.3.5",packageName:"typescript-4.3.5"},{version:"@next (5.3.0-dev.20230808)",packageName:"typescript-next"}],ne={options:{id:"options",buttonId:"optionsButton",compilerVersionSelectionId:"compilerVersionSelection",treeModeId:"treeMode",bindingEnabledId:"bindingEnabled",showFactoryCodeId:"showFactoryCode",showInternalsId:"showInternals"},mainCodeEditor:{id:"codeEditor"},factoryCodeEditor:{id:"factoryCodeEditor"},treeViewer:{id:"treeViewer",selectedNodeClass:"selected"},properties:{node:{id:"node"},type:{id:"type"},symbol:{id:"symbol"},signature:{id:"signature"}}},Zp={sourceFileRefreshDelay:150};var nt;(function(e){e[e.forEachChild=0]="forEachChild",e[e.getChildren=1]="getChildren"})(nt||(nt={}));var x={exports:{}},Jp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qp=Jp,eh=qp;function sd(){}function cd(){}cd.resetWarningCache=sd;var th=function(){function e(r,i,o,l,u,a){if(a!==eh){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:cd,resetWarningCache:sd};return n.PropTypes=n,n};x.exports=th();var dd={exports:{}},nh=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"];(function(e){var t=nh,n=x.exports;e.exports=function(r,i,o){var l=r[i];if(!!l){var u=[];if(Object.keys(l).forEach(function(a){t.indexOf(a)===-1&&u.push(a)}),u.length)throw new Error("Prop "+i+" passed to "+o+". Has invalid keys "+u.join(", "))}},e.exports.isRequired=function(r,i,o){if(!r[i])throw new Error("Prop "+i+" passed to "+o+" is required");return e.exports(r,i,o)},e.exports.supportingArrays=n.oneOfType([n.arrayOf(e.exports),e.exports])})(dd);const Ft=dd.exports;function fd(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function pd(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function hd(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}fd.__suppressDeprecationWarning=!0;pd.__suppressDeprecationWarning=!0;hd.__suppressDeprecationWarning=!0;function rh(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,i=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||r!==null||i!==null){var o=e.displayName||e.name,l=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+o+" uses "+l+" but also contains the following legacy lifecycles:"+(n!==null?` `+n:"")+(r!==null?` @@ -46,12 +46,12 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ih=X.exports,oh=Symbol.for("react.element"),lh=Symbol.for("react.fragment"),uh=Object.prototype.hasOwnProperty,ah=ih.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sh={key:!0,ref:!0,__self:!0,__source:!0};function md(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)uh.call(t,r)&&!sh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:oh,type:e,key:o,ref:l,props:i,_owner:ah.current}}Xi.Fragment=lh;Xi.jsx=md;Xi.jsxs=md;(function(e){e.exports=Xi})(Yi);const je=Yi.exports.Fragment,O=Yi.exports.jsx,I=Yi.exports.jsxs;function Eu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $a(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function en(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dh(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:en(e)}function Tu(e){return function(){var t=xi(e),n;if(ch()){var r=xi(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return dh(this,n)}}var Bi=function(e){_u(n,e);var t=Tu(n);function n(){return Eu(this,n),t.apply(this,arguments)}return zu(n,[{key:"render",value:function(){var i=this.props,o=i.children,l=i.className,u=i.split,a=i.style,s=i.size,p=i.eleRef,h=["Pane",u,l],d={flex:1,position:"relative",outline:"none"};return s!==void 0&&(u==="vertical"?d.width=s:(d.height=s,d.display="flex"),d.flex="none"),d=Object.assign({},d,a||{}),O("div",{ref:p,className:h.join(" "),style:d,children:o})}}]),n}(rt.PureComponent);Bi.propTypes={className:x.exports.string.isRequired,children:x.exports.node.isRequired,size:x.exports.oneOfType([x.exports.string,x.exports.number]),split:x.exports.oneOf(["vertical","horizontal"]),style:Ft,eleRef:x.exports.func};Bi.defaultProps={};var yd="Resizer",xu=function(e){_u(n,e);var t=Tu(n);function n(){return Eu(this,n),t.apply(this,arguments)}return zu(n,[{key:"render",value:function(){var i=this.props,o=i.className,l=i.onClick,u=i.onDoubleClick,a=i.onMouseDown,s=i.onTouchEnd,p=i.onTouchStart,h=i.resizerClassName,d=i.split,y=i.style,g=[h,d,o];return O("span",{role:"presentation",className:g.join(" "),style:y,onMouseDown:function(z){return a(z)},onTouchStart:function(z){z.preventDefault(),p(z)},onTouchEnd:function(z){z.preventDefault(),s(z)},onClick:function(z){l&&(z.preventDefault(),l(z))},onDoubleClick:function(z){u&&(z.preventDefault(),u(z))}})}}]),n}(rt.Component);xu.propTypes={className:x.exports.string.isRequired,onClick:x.exports.func,onDoubleClick:x.exports.func,onMouseDown:x.exports.func.isRequired,onTouchStart:x.exports.func.isRequired,onTouchEnd:x.exports.func.isRequired,split:x.exports.oneOf(["vertical","horizontal"]),style:Ft,resizerClassName:x.exports.string.isRequired};xu.defaultProps={resizerClassName:yd};function Ga(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch{}}function Ka(e,t,n,r){if(typeof r=="number"){var i=typeof t=="number"?t:0,o=typeof n=="number"&&n>=0?n:1/0;return Math.max(i,Math.min(o,r))}return e!==void 0?e:t}function fh(e){return rt.Children.toArray(e).filter(function(t){return t})}var Zi=function(e){_u(n,e);var t=Tu(n);function n(r){var i;Eu(this,n),i=t.call(this,r),i.onMouseDown=i.onMouseDown.bind(en(i)),i.onTouchStart=i.onTouchStart.bind(en(i)),i.onMouseMove=i.onMouseMove.bind(en(i)),i.onTouchMove=i.onTouchMove.bind(en(i)),i.onMouseUp=i.onMouseUp.bind(en(i));var o=r.size,l=r.defaultSize,u=r.minSize,a=r.maxSize,s=r.primary,p=o!==void 0?o:Ka(l,u,a,null);return i.state={active:!1,resized:!1,pane1Size:s==="first"?p:void 0,pane2Size:s==="second"?p:void 0,instanceProps:{size:o}},i}return zu(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(n.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(i){var o=Object.assign({},i,{touches:[{clientX:i.clientX,clientY:i.clientY}]});this.onTouchStart(o)}},{key:"onTouchStart",value:function(i){var o=this.props,l=o.allowResize,u=o.onDragStarted,a=o.split;if(l){Ga(document,window);var s=a==="vertical"?i.touches[0].clientX:i.touches[0].clientY;typeof u=="function"&&u(),this.setState({active:!0,position:s})}}},{key:"onMouseMove",value:function(i){var o=Object.assign({},i,{touches:[{clientX:i.clientX,clientY:i.clientY}]});this.onTouchMove(o)}},{key:"onTouchMove",value:function(i){var o=this.props,l=o.allowResize,u=o.maxSize,a=o.minSize,s=o.onChange,p=o.split,h=o.step,d=this.state,y=d.active,g=d.position;if(l&&y){Ga(document,window);var k=this.props.primary==="first",z=k?this.pane1:this.pane2,f=k?this.pane2:this.pane1;if(z){var c=z,m=f;if(c.getBoundingClientRect){var S=c.getBoundingClientRect().width,C=c.getBoundingClientRect().height,v=p==="vertical"?i.touches[0].clientX:i.touches[0].clientY,M=p==="vertical"?S:C,w=g-v;if(h){if(Math.abs(w)Z&&(L=-L);var ge=u;if(u!==void 0&&u<=0){var Te=this.splitPane;p==="vertical"?ge=Te.getBoundingClientRect().width+u:ge=Te.getBoundingClientRect().height+u}var de=M-L,st=g-w;dege?de=ge:this.setState({position:st,resized:!0}),s&&s(de),this.setState(gd({draggedSize:de},k?"pane1Size":"pane2Size",de))}}}}},{key:"onMouseUp",value:function(){var i=this.props,o=i.allowResize,l=i.onDragFinished,u=this.state,a=u.active,s=u.draggedSize;o&&a&&(typeof l=="function"&&l(s),this.setState({active:!1}))}},{key:"render",value:function(){var i=this,o=this.props,l=o.allowResize,u=o.children,a=o.className,s=o.onResizerClick,p=o.onResizerDoubleClick,h=o.paneClassName,d=o.pane1ClassName,y=o.pane2ClassName,g=o.paneStyle,k=o.pane1Style,z=o.pane2Style,f=o.resizerClassName,c=o.resizerStyle,m=o.split,S=o.style,C=this.state,v=C.pane1Size,M=C.pane2Size,w=l?"":"disabled",L=f&&"".concat(f," ").concat(yd),B=fh(u),Z=xo({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},S);m==="vertical"?Object.assign(Z,{flexDirection:"row",left:0,right:0}):Object.assign(Z,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var ge=["SplitPane",a,m,w],Te=xo({},g,{},k),de=xo({},g,{},z),st=["Pane1",h,d].join(" "),Wt=["Pane2",h,y].join(" ");return I("div",{className:ge.join(" "),ref:function(_){i.splitPane=_},style:Z,children:[O(Bi,{className:st,eleRef:function(_){i.pane1=_},size:v,split:m,style:Te,children:B[0]},"pane1"),O(xu,{className:w,onClick:s,onDoubleClick:p,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,resizerClassName:L,split:m,style:c||{}},"resizer"),O(Bi,{className:Wt,eleRef:function(_){i.pane2=_},size:M,split:m,style:de,children:B[1]},"pane2")]})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return n.getSizeUpdate(i,o)}},{key:"getSizeUpdate",value:function(i,o){var l={},u=o.instanceProps;if(u.size===i.size&&i.size!==void 0)return{};var a=i.size!==void 0?i.size:Ka(i.defaultSize,i.minSize,i.maxSize,o.draggedSize);i.size!==void 0&&(l.draggedSize=a);var s=i.primary==="first";return l[s?"pane1Size":"pane2Size"]=a,l[s?"pane2Size":"pane1Size"]=void 0,l.instanceProps={size:i.size},l}}]),n}(rt.Component);Zi.propTypes={allowResize:x.exports.bool,children:x.exports.arrayOf(x.exports.node).isRequired,className:x.exports.string,primary:x.exports.oneOf(["first","second"]),minSize:x.exports.oneOfType([x.exports.string,x.exports.number]),maxSize:x.exports.oneOfType([x.exports.string,x.exports.number]),defaultSize:x.exports.oneOfType([x.exports.string,x.exports.number]),size:x.exports.oneOfType([x.exports.string,x.exports.number]),split:x.exports.oneOf(["vertical","horizontal"]),onDragStarted:x.exports.func,onDragFinished:x.exports.func,onChange:x.exports.func,onResizerClick:x.exports.func,onResizerDoubleClick:x.exports.func,style:Ft,resizerStyle:Ft,paneClassName:x.exports.string,pane1ClassName:x.exports.string,pane2ClassName:x.exports.string,paneStyle:Ft,pane1Style:Ft,pane2Style:Ft,resizerClassName:x.exports.string,step:x.exports.number};Zi.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""};rh(Zi);const ph="SET_CODE",vd="SET_API_LOADING_STATE",Sd="REFRESH_SOURCEFILE",hh="SET_SELECTED_NODE",mh="SET_OPTIONS";function Bo(e){return{type:vd,loadingState:e}}function gh(e){return{type:Sd,api:e}}const yh="modulepreload",vh=function(e){return"/"+e},Qa={},W=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=vh(o),o in Qa)return;Qa[o]=!0;const l=o.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const h=i[p];if(h.href===o&&(!l||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${u}`))return;const s=document.createElement("link");if(s.rel=l?"stylesheet":yh,l||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),l)return new Promise((p,h)=>{s.addEventListener("load",p),s.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};class Sh{static binarySearch(t,n){let r=t.length-1,i=0;for(;i<=r;){const o=Math.floor((r+i)/2),l=n(t[o]);if(l===0)return o;l<0?r=o-1:i=o+1}return-1}constructor(){}}function Pn(e,t){throw new Error(t)}class kh{constructor(t){this.value=t}}class Mh{constructor(){}static getNames(t){return Object.keys(t).filter(n=>typeof t[n]=="number")}static getValues(t){return Object.keys(t).map(n=>t[n]).filter(n=>typeof n=="number")}static getNamesForValues(t){const n={};for(const r of this.getNames(t)){const i=t[r];n[i]==null&&(n[i]=[]),n[i].push(r)}return Object.keys(n).map(r=>({value:parseInt(r,10),names:n[r]}))}}function wh(e,t){const r=Object.keys(e).map(i=>e[i]).filter(i=>typeof i=="number").filter(i=>(i&t)!==0);return r.filter((i,o)=>r.indexOf(i)===o).map(i=>{const o=Math.log2(i);return Number.isInteger(o)?`${e[i]} (2 ^ ${o})`:e[i]})}function Er(e,t){return Ch(e)[t]}const Wo={};function Ch(e){return Wo[e.tsAstViewer.packageName]==null&&(Wo[e.tsAstViewer.packageName]=Oh(e)),Wo[e.tsAstViewer.packageName]}function Oh(e){const t={};for(const n of Object.keys(e.SyntaxKind).filter(r=>isNaN(parseInt(r,10)))){const r=e.SyntaxKind[n];t[r]==null&&(t[r]=n)}return t}function Eh(e){const t=[];let n=0;for(let i=0;it=i.pos&&t=0?this.lineInfos[n]:this.lineInfos[this.lineInfos.length-1];return r==null?{lineNumber:1,column:1}:{lineNumber:r.number,column:Math.min(t-r.pos+1,r.length+1)}}getPosFromLineAndColumn(t,n){if(this.lineInfos.length===0||t<1)return 0;const r=this.lineInfos[t-1];if(r==null){const i=this.lineInfos[this.lineInfos.length-1];return i.pos+i.length}return r.pos+Math.min(r.length,n-1)}}function zh(e){return new Promise(t=>setTimeout(t,e))}const Ri=class{constructor(t=window.localStorage){be(this,"_cachedState");this.localStorage=t}get defaultState(){return{version:3,treeMode:nt.forEachChild,showFactoryCode:!0,showInternals:!1}}get(){if(this._cachedState!=null)return this._cachedState;try{const t=this.localStorage.getItem(Ri._stateKey);if(t!=null){const n=_h(JSON.parse(t)||this.defaultState);if(this.verifyData(n))return n}}catch(t){console.error("Problem getting state: "+t)}return this.defaultState}set(t){try{if(!this.verifyData(t))return;this.localStorage.setItem(Ri._stateKey,JSON.stringify(t)),this._cachedState=t}catch(n){console.error("Problem saving state: "+n)}}verifyData(t){return!(t.version!==3||t.treeMode!==nt.forEachChild&&t.treeMode!==nt.getChildren||typeof t.showFactoryCode!="boolean"||typeof t.showInternals!="boolean")}};let ii=Ri;be(ii,"_stateKey","tsSimpleAst_savedState");function _h(e){return Th(e),xh(e),e}function Th(e){e.version===1&&(e.showFactoryCode=!0,e.version=2)}function xh(e){e.version===2&&(e.showInternals=!1,e.version=3)}var _l={exports:{}};(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function l(a,s){if(!o[a]){o[a]={};for(var p=0;p>>8,p[h*2+1]=y%256}return p},decompressFromUint8Array:function(a){if(a==null)return u.decompress(a);for(var s=new Array(a.length/2),p=0,h=s.length;p>1}else{for(d=1,h=0;h>1}c--,c==0&&(c=Math.pow(2,S),S++),delete g[f]}else for(d=y[f],h=0;h>1;c--,c==0&&(c=Math.pow(2,S),S++),y[z]=m++,f=String(k)}if(f!==""){if(Object.prototype.hasOwnProperty.call(g,f)){if(f.charCodeAt(0)<256){for(h=0;h>1}else{for(d=1,h=0;h>1}c--,c==0&&(c=Math.pow(2,S),S++),delete g[f]}else for(d=y[f],h=0;h>1;c--,c==0&&(c=Math.pow(2,S),S++)}for(d=2,h=0;h>1;for(;;)if(v=v<<1,M==s-1){C.push(p(v));break}else M++;return C.join("")},decompress:function(a){return a==null?"":a==""?null:u._decompress(a.length,32768,function(s){return a.charCodeAt(s)})},_decompress:function(a,s,p){var h=[],d=4,y=4,g=3,k="",z=[],f,c,m,S,C,v,M,w={val:p(0),position:s,index:1};for(f=0;f<3;f+=1)h[f]=f;for(m=0,C=Math.pow(2,2),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;switch(m){case 0:for(m=0,C=Math.pow(2,8),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;M=n(m);break;case 1:for(m=0,C=Math.pow(2,16),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;M=n(m);break;case 2:return""}for(h[3]=M,c=M,z.push(M);;){if(w.index>a)return"";for(m=0,C=Math.pow(2,g),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;switch(M=m){case 0:for(m=0,C=Math.pow(2,8),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;h[y++]=n(m),M=y-1,d--;break;case 1:for(m=0,C=Math.pow(2,16),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;h[y++]=n(m),M=y-1,d--;break;case 2:return z.join("")}if(d==0&&(d=Math.pow(2,g),g++),h[M])k=h[M];else if(M===y)k=c+c.charAt(0);else return null;z.push(k),h[y++]=c+k.charAt(0),d--,c=k,d==0&&(d=Math.pow(2,g),g++)}}};return u}();e!=null&&(e.exports=t)})(_l);class kd{getUrlCode(){if(document.location.hash&&document.location.hash.startsWith("#code"))try{const t=document.location.hash.replace("#code/","").trim();return _l.exports.decompressFromEncodedURIComponent(t)||""}catch(t){console.error(t)}return""}updateUrl(t){t.length===0?n(""):n(`code/${_l.exports.compressToEncodedURIComponent(t)}`);function n(r){window.history.replaceState(void 0,"",`#${r}`)}}}async function Bh(e){switch(e){case"typescript-5.1.6":return await W(()=>import("./typescript.1da25d1f.js").then(t=>t.t),["assets/typescript.1da25d1f.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);case"typescript-5.0.4":return await W(()=>import("./typescript.7decd24f.js").then(t=>t.t),["assets/typescript.7decd24f.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);case"typescript-4.9.5":return await W(()=>import("./typescript.df277397.js").then(t=>t.t),["assets/typescript.df277397.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);case"typescript-4.8.4":return await W(()=>import("./typescript.08b0037e.js").then(t=>t.t),["assets/typescript.08b0037e.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);case"typescript-4.7.4":return await W(()=>import("./typescript.d0c1d37a.js").then(t=>t.t),["assets/typescript.d0c1d37a.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);case"typescript-4.6.4":return await W(()=>import("./typescript.62ec5a29.js").then(t=>t.t),["assets/typescript.62ec5a29.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);case"typescript-4.5.5":return await W(()=>import("./typescript.3ceb0618.js").then(t=>t.t),["assets/typescript.3ceb0618.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);case"typescript-4.4.4":return await W(()=>import("./typescript.0eb66ece.js").then(t=>t.t),["assets/typescript.0eb66ece.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);case"typescript-4.3.5":return await W(()=>import("./typescript.f4da1101.js").then(t=>t.t),["assets/typescript.f4da1101.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);case"typescript-next":return await W(()=>import("./typescript.1d75add0.js").then(t=>t.t),["assets/typescript.1d75add0.js","assets/___vite-browser-external_commonjs-proxy.832ddc27.js"]);default:return Pn(e,`Not implemented version: ${e}`)}}async function Wh(e){switch(e){case"typescript-5.1.6":return await W(()=>import("./index.8be0ba30.js"),[]);case"typescript-5.0.4":return await W(()=>import("./index.216166b2.js"),[]);case"typescript-4.9.5":return await W(()=>import("./index.124f3179.js"),[]);case"typescript-4.8.4":return await W(()=>import("./index.c21d7bd0.js"),[]);case"typescript-4.7.4":return await W(()=>import("./index.5f4ec967.js"),[]);case"typescript-4.6.4":return await W(()=>import("./index.ee0104a5.js"),[]);case"typescript-4.5.5":return await W(()=>import("./index.57891411.js"),[]);case"typescript-4.4.4":return await W(()=>import("./index.2eb72f1b.js"),[]);case"typescript-4.3.5":return await W(()=>import("./index.fccffa44.js"),[]);case"typescript-next":return await W(()=>import("./index.e7dfa5d0.js"),[]);default:return Pn(e,`Not implemented version: ${e}`)}}async function Ph(e){switch(e){case"typescript-5.1.6":return(await W(()=>import("./typescript-5.1.6.9a83aca3.js"),["assets/typescript-5.1.6.9a83aca3.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-5.0.4":return(await W(()=>import("./typescript-5.0.4.b886cda5.js"),["assets/typescript-5.0.4.b886cda5.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.9.5":return(await W(()=>import("./typescript-4.9.5.f89a60e5.js"),["assets/typescript-4.9.5.f89a60e5.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.8.4":return(await W(()=>import("./typescript-4.8.4.792985a1.js"),["assets/typescript-4.8.4.792985a1.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.7.4":return(await W(()=>import("./typescript-4.7.4.e653d873.js"),["assets/typescript-4.7.4.e653d873.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.6.4":return(await W(()=>import("./typescript-4.6.4.7969024e.js"),["assets/typescript-4.6.4.7969024e.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.5.5":return(await W(()=>import("./typescript-4.5.5.ea45778c.js"),["assets/typescript-4.5.5.ea45778c.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.4.4":return(await W(()=>import("./typescript-4.4.4.f1527c46.js"),["assets/typescript-4.4.4.f1527c46.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.3.5":return(await W(()=>import("./typescript-4.3.5.92d9d3ac.js"),["assets/typescript-4.3.5.92d9d3ac.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-next":return(await W(()=>import("./typescript-next.e835d17d.js"),["assets/typescript-next.e835d17d.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;default:return Pn(e,`Not implemented version: ${e}`)}}async function Rh(e){switch(e){case"typescript-5.1.6":return await W(()=>import("./typescript-5.1.6.c9c8ef3d.js"),[]);case"typescript-5.0.4":return await W(()=>import("./typescript-5.0.4.183a9004.js"),[]);case"typescript-4.9.5":return await W(()=>import("./typescript-4.9.5.68743cec.js"),[]);case"typescript-4.8.4":return await W(()=>import("./typescript-4.8.4.ac0a6dc0.js"),[]);case"typescript-4.7.4":return await W(()=>import("./typescript-4.7.4.ca93f46d.js"),[]);case"typescript-4.6.4":return await W(()=>import("./typescript-4.6.4.e1ec9b4f.js"),[]);case"typescript-4.5.5":return await W(()=>import("./typescript-4.5.5.e5c4243f.js"),[]);case"typescript-4.4.4":return await W(()=>import("./typescript-4.4.4.85df7e1c.js"),[]);case"typescript-4.3.5":return await W(()=>import("./typescript-4.3.5.0dbd9f09.js"),[]);case"typescript-next":return await W(()=>import("./typescript-next.a97a7e73.js"),[]);default:return Pn(e,`Not implemented version: ${e}`)}}function Ih(e,t,n){if(e==null||e===t)return n;const r=t.ScriptTarget[e.ScriptTarget[n.scriptTarget]],i=t.ScriptKind[e.ScriptKind[n.scriptKind]];return{...n,scriptTarget:r==null?t.ScriptTarget.Latest:r,scriptKind:i==null?t.ScriptKind.TSX:i}}function Nh(e,t,n,r){const i=`/ts-ast-viewer${Fh(e,r)}`,o=e.createSourceFile(i,t,n,!1,r);let l;return{sourceFile:o,bindingTools:u};function u(){return l==null&&(l=a()),l}function a(){const s={strict:!0,target:n,allowJs:!0,module:e.ModuleKind.ES2015},p={[i]:o,...e.tsAstViewer.cachedSourceFiles},h={getSourceFile:(g,k,z)=>p[g],getDefaultLibFileName:g=>"/"+e.getDefaultLibFileName(g),writeFile:()=>{},getCurrentDirectory:()=>"/",getDirectories:g=>[],fileExists:g=>p[g]!=null,readFile:g=>p[g]!=null?p[g].getFullText():void 0,getCanonicalFileName:g=>g,useCaseSensitiveFileNames:()=>!0,getNewLine:()=>` +`&&r(i);return r(e.length),t;function r(i){t.push({pos:n,length:i-n,number:t.length+1}),n=i+1}}class Ya{constructor(t){be(this,"lineInfos");this.text=t,this.lineInfos=Eh(t)}getNumberAndColumnFromPos(t){if(t<0)return{lineNumber:1,column:1};const n=Sh.binarySearch(this.lineInfos,i=>t=i.pos&&t=0?this.lineInfos[n]:this.lineInfos[this.lineInfos.length-1];return r==null?{lineNumber:1,column:1}:{lineNumber:r.number,column:Math.min(t-r.pos+1,r.length+1)}}getPosFromLineAndColumn(t,n){if(this.lineInfos.length===0||t<1)return 0;const r=this.lineInfos[t-1];if(r==null){const i=this.lineInfos[this.lineInfos.length-1];return i.pos+i.length}return r.pos+Math.min(r.length,n-1)}}function zh(e){return new Promise(t=>setTimeout(t,e))}const Ri=class{constructor(t=window.localStorage){be(this,"_cachedState");this.localStorage=t}get defaultState(){return{version:3,treeMode:nt.forEachChild,showFactoryCode:!0,showInternals:!1}}get(){if(this._cachedState!=null)return this._cachedState;try{const t=this.localStorage.getItem(Ri._stateKey);if(t!=null){const n=_h(JSON.parse(t)||this.defaultState);if(this.verifyData(n))return n}}catch(t){console.error("Problem getting state: "+t)}return this.defaultState}set(t){try{if(!this.verifyData(t))return;this.localStorage.setItem(Ri._stateKey,JSON.stringify(t)),this._cachedState=t}catch(n){console.error("Problem saving state: "+n)}}verifyData(t){return!(t.version!==3||t.treeMode!==nt.forEachChild&&t.treeMode!==nt.getChildren||typeof t.showFactoryCode!="boolean"||typeof t.showInternals!="boolean")}};let ii=Ri;be(ii,"_stateKey","tsSimpleAst_savedState");function _h(e){return Th(e),xh(e),e}function Th(e){e.version===1&&(e.showFactoryCode=!0,e.version=2)}function xh(e){e.version===2&&(e.showInternals=!1,e.version=3)}var _l={exports:{}};(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function l(a,s){if(!o[a]){o[a]={};for(var p=0;p>>8,p[h*2+1]=y%256}return p},decompressFromUint8Array:function(a){if(a==null)return u.decompress(a);for(var s=new Array(a.length/2),p=0,h=s.length;p>1}else{for(d=1,h=0;h>1}c--,c==0&&(c=Math.pow(2,S),S++),delete g[f]}else for(d=y[f],h=0;h>1;c--,c==0&&(c=Math.pow(2,S),S++),y[z]=m++,f=String(k)}if(f!==""){if(Object.prototype.hasOwnProperty.call(g,f)){if(f.charCodeAt(0)<256){for(h=0;h>1}else{for(d=1,h=0;h>1}c--,c==0&&(c=Math.pow(2,S),S++),delete g[f]}else for(d=y[f],h=0;h>1;c--,c==0&&(c=Math.pow(2,S),S++)}for(d=2,h=0;h>1;for(;;)if(v=v<<1,M==s-1){C.push(p(v));break}else M++;return C.join("")},decompress:function(a){return a==null?"":a==""?null:u._decompress(a.length,32768,function(s){return a.charCodeAt(s)})},_decompress:function(a,s,p){var h=[],d=4,y=4,g=3,k="",z=[],f,c,m,S,C,v,M,w={val:p(0),position:s,index:1};for(f=0;f<3;f+=1)h[f]=f;for(m=0,C=Math.pow(2,2),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;switch(m){case 0:for(m=0,C=Math.pow(2,8),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;M=n(m);break;case 1:for(m=0,C=Math.pow(2,16),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;M=n(m);break;case 2:return""}for(h[3]=M,c=M,z.push(M);;){if(w.index>a)return"";for(m=0,C=Math.pow(2,g),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;switch(M=m){case 0:for(m=0,C=Math.pow(2,8),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;h[y++]=n(m),M=y-1,d--;break;case 1:for(m=0,C=Math.pow(2,16),v=1;v!=C;)S=w.val&w.position,w.position>>=1,w.position==0&&(w.position=s,w.val=p(w.index++)),m|=(S>0?1:0)*v,v<<=1;h[y++]=n(m),M=y-1,d--;break;case 2:return z.join("")}if(d==0&&(d=Math.pow(2,g),g++),h[M])k=h[M];else if(M===y)k=c+c.charAt(0);else return null;z.push(k),h[y++]=c+k.charAt(0),d--,c=k,d==0&&(d=Math.pow(2,g),g++)}}};return u}();e!=null&&(e.exports=t)})(_l);class kd{getUrlCode(){if(document.location.hash&&document.location.hash.startsWith("#code"))try{const t=document.location.hash.replace("#code/","").trim();return _l.exports.decompressFromEncodedURIComponent(t)||""}catch(t){console.error(t)}return""}updateUrl(t){t.length===0?n(""):n(`code/${_l.exports.compressToEncodedURIComponent(t)}`);function n(r){window.history.replaceState(void 0,"",`#${r}`)}}}async function Bh(e){switch(e){case"typescript-5.1.6":return await W(()=>import("./typescript.4d29f48d.js").then(t=>t.t),["assets/typescript.4d29f48d.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);case"typescript-5.0.4":return await W(()=>import("./typescript.53d864e6.js").then(t=>t.t),["assets/typescript.53d864e6.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);case"typescript-4.9.5":return await W(()=>import("./typescript.aa417aa0.js").then(t=>t.t),["assets/typescript.aa417aa0.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);case"typescript-4.8.4":return await W(()=>import("./typescript.bbf6e997.js").then(t=>t.t),["assets/typescript.bbf6e997.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);case"typescript-4.7.4":return await W(()=>import("./typescript.326ce523.js").then(t=>t.t),["assets/typescript.326ce523.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);case"typescript-4.6.4":return await W(()=>import("./typescript.5bbad206.js").then(t=>t.t),["assets/typescript.5bbad206.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);case"typescript-4.5.5":return await W(()=>import("./typescript.fac4ef32.js").then(t=>t.t),["assets/typescript.fac4ef32.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);case"typescript-4.4.4":return await W(()=>import("./typescript.684259df.js").then(t=>t.t),["assets/typescript.684259df.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);case"typescript-4.3.5":return await W(()=>import("./typescript.bfdd8171.js").then(t=>t.t),["assets/typescript.bfdd8171.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);case"typescript-next":return await W(()=>import("./typescript.2a4d8a04.js").then(t=>t.t),["assets/typescript.2a4d8a04.js","assets/___vite-browser-external_commonjs-proxy.8e88a877.js"]);default:return Pn(e,`Not implemented version: ${e}`)}}async function Wh(e){switch(e){case"typescript-5.1.6":return await W(()=>import("./index.8be0ba30.js"),[]);case"typescript-5.0.4":return await W(()=>import("./index.216166b2.js"),[]);case"typescript-4.9.5":return await W(()=>import("./index.124f3179.js"),[]);case"typescript-4.8.4":return await W(()=>import("./index.c21d7bd0.js"),[]);case"typescript-4.7.4":return await W(()=>import("./index.5f4ec967.js"),[]);case"typescript-4.6.4":return await W(()=>import("./index.ee0104a5.js"),[]);case"typescript-4.5.5":return await W(()=>import("./index.57891411.js"),[]);case"typescript-4.4.4":return await W(()=>import("./index.2eb72f1b.js"),[]);case"typescript-4.3.5":return await W(()=>import("./index.fccffa44.js"),[]);case"typescript-next":return await W(()=>import("./index.e7dfa5d0.js"),[]);default:return Pn(e,`Not implemented version: ${e}`)}}async function Ph(e){switch(e){case"typescript-5.1.6":return(await W(()=>import("./typescript-5.1.6.9a83aca3.js"),["assets/typescript-5.1.6.9a83aca3.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-5.0.4":return(await W(()=>import("./typescript-5.0.4.b886cda5.js"),["assets/typescript-5.0.4.b886cda5.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.9.5":return(await W(()=>import("./typescript-4.9.5.f89a60e5.js"),["assets/typescript-4.9.5.f89a60e5.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.8.4":return(await W(()=>import("./typescript-4.8.4.792985a1.js"),["assets/typescript-4.8.4.792985a1.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.7.4":return(await W(()=>import("./typescript-4.7.4.e653d873.js"),["assets/typescript-4.7.4.e653d873.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.6.4":return(await W(()=>import("./typescript-4.6.4.7969024e.js"),["assets/typescript-4.6.4.7969024e.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.5.5":return(await W(()=>import("./typescript-4.5.5.ea45778c.js"),["assets/typescript-4.5.5.ea45778c.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.4.4":return(await W(()=>import("./typescript-4.4.4.f1527c46.js"),["assets/typescript-4.4.4.f1527c46.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-4.3.5":return(await W(()=>import("./typescript-4.3.5.92d9d3ac.js"),["assets/typescript-4.3.5.92d9d3ac.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;case"typescript-next":return(await W(()=>import("./typescript-next.e835d17d.js"),["assets/typescript-next.e835d17d.js","assets/mod.c7fea3ef.js"])).generateFactoryCode;default:return Pn(e,`Not implemented version: ${e}`)}}async function Rh(e){switch(e){case"typescript-5.1.6":return await W(()=>import("./typescript-5.1.6.c9c8ef3d.js"),[]);case"typescript-5.0.4":return await W(()=>import("./typescript-5.0.4.183a9004.js"),[]);case"typescript-4.9.5":return await W(()=>import("./typescript-4.9.5.68743cec.js"),[]);case"typescript-4.8.4":return await W(()=>import("./typescript-4.8.4.ac0a6dc0.js"),[]);case"typescript-4.7.4":return await W(()=>import("./typescript-4.7.4.ca93f46d.js"),[]);case"typescript-4.6.4":return await W(()=>import("./typescript-4.6.4.e1ec9b4f.js"),[]);case"typescript-4.5.5":return await W(()=>import("./typescript-4.5.5.e5c4243f.js"),[]);case"typescript-4.4.4":return await W(()=>import("./typescript-4.4.4.85df7e1c.js"),[]);case"typescript-4.3.5":return await W(()=>import("./typescript-4.3.5.0dbd9f09.js"),[]);case"typescript-next":return await W(()=>import("./typescript-next.a97a7e73.js"),[]);default:return Pn(e,`Not implemented version: ${e}`)}}function Ih(e,t,n){if(e==null||e===t)return n;const r=t.ScriptTarget[e.ScriptTarget[n.scriptTarget]],i=t.ScriptKind[e.ScriptKind[n.scriptKind]];return{...n,scriptTarget:r==null?t.ScriptTarget.Latest:r,scriptKind:i==null?t.ScriptKind.TSX:i}}function Nh(e,t,n,r){const i=`/ts-ast-viewer${Fh(e,r)}`,o=e.createSourceFile(i,t,n,!1,r);let l;return{sourceFile:o,bindingTools:u};function u(){return l==null&&(l=a()),l}function a(){const s={strict:!0,target:n,allowJs:!0,module:e.ModuleKind.ES2015},p={[i]:o,...e.tsAstViewer.cachedSourceFiles},h={getSourceFile:(g,k,z)=>p[g],getDefaultLibFileName:g=>"/"+e.getDefaultLibFileName(g),writeFile:()=>{},getCurrentDirectory:()=>"/",getDirectories:g=>[],fileExists:g=>p[g]!=null,readFile:g=>p[g]!=null?p[g].getFullText():void 0,getCanonicalFileName:g=>g,useCaseSensitiveFileNames:()=>!0,getNewLine:()=>` `,getEnvironmentVariable:()=>""},d=e.createProgram([...Object.keys(p)],s,h);return{typeChecker:d.getTypeChecker(),program:d}}}function Fh(e,t){switch(t){case e.ScriptKind.TS:return".ts";case e.ScriptKind.TSX:return".tsx";case e.ScriptKind.JS:return".js";case e.ScriptKind.JSX:return".jsx";case e.ScriptKind.JSON:return".json";case e.ScriptKind.External:case e.ScriptKind.Deferred:case e.ScriptKind.Unknown:return"";default:return Pn(t,`Not implemented ScriptKind: ${e.ScriptKind[t]}`)}}function Md(e,t){switch(e){case nt.getChildren:return n;case nt.forEachChild:return r;default:return Pn(e,`Unhandled mode: ${e}`)}function n(i){return i.getChildren(t)}function r(i){const o=[];return i.forEachChild(l=>{o.push(l)}),o}}const jn={},wd={};function Lh(e){return jn[e]==null&&(jn[e]=Ah(e),jn[e].catch(()=>delete jn[e])),jn[e]}function Dh(e){return wd[e]===!0}async function Ah(e){const t=Wh(e),r={...await Bh(e)};r.tsAstViewer={packageName:e,cachedSourceFiles:{}};const i=await t;for(const l of o())r.tsAstViewer.cachedSourceFiles[l.fileName]=l;return wd[e]=!0,r;function o(){return Object.keys(i).map(l=>i[l]).map(l=>r.createSourceFile(l.fileName,l.text,r.ScriptTarget.Latest,!1,r.ScriptKind.TS))}}function Bu(e,t){const n=e.jsDoc;return n&&n.length>0?n[0].getStart(t):e.getStart(t)}function Vh(e,t,n,r){const i=Md(e,t),o=r.SyntaxKind;let l={node:t,start:t.getStart(t)};return u(t),l.node;function u(p){const h=i(p);for(const d of h){if(d.kind!==o.SyntaxList){if(a(d.end))continue;const y=Bu(d,t);if(s(y))return;const g=d.kind===o.EndOfFileToken,k=l.start===y&&n[0]===y;!g&&!k&&(l={node:d,start:y})}u(d)}}function a(p){return p=n[0]&&p>n[1]}}const Zt={};function jh(e){return Zt[e]==null&&(Zt[e]=Ph(e),Zt[e].catch(()=>delete Zt[e]),Zt[e].then(()=>!0)),Zt[e]}const Uh=new kd;function bh(e,t){switch(t.type){case hh:return e.compiler==null?e:{...e,compiler:{...e.compiler,selectedNode:t.node}};case vd:return{...e,apiLoadingState:t.loadingState};case Sd:{const n={...e,options:Ih(e.compiler==null?void 0:e.compiler.api,t.api,e.options)};return $h(n.options.compilerPackageName,t.api,n,e.code,e.options),Uh.updateUrl(e.code),n}case ph:return{...e,code:t.code};case mh:return{...e,options:{...e.options,...t.options}};default:return e}}function $h(e,t,n,r,i){const{sourceFile:o,bindingTools:l}=Nh(t,r,i.scriptTarget,i.scriptKind);n.compiler={packageName:e,api:t,sourceFile:o,bindingTools:l,selectedNode:o}}var yt=(e=>(e[e.Loading=0]="Loading",e[e.Loaded=1]="Loaded",e[e.Error=2]="Error",e))(yt||{});const Hh=99,Gh=4,Un=new ii;console.log("[ts-ast-viewer]: Inspect the ts, sourceFile, node, symbol, type, signature, program, and checker/typeChecker global variables here in the console.");const Cd=rt.createContext(void 0);function Kh({children:e}){const[t,n]=X.exports.useReducer(bh,{apiLoadingState:yt.Loading,code:new kd().getUrlCode(),options:{compilerPackageName:ad[0].packageName,treeMode:Un.get().treeMode,scriptTarget:Hh,scriptKind:Gh,bindingEnabled:!0,showFactoryCode:Un.get().showFactoryCode,showInternals:Un.get().showInternals},compiler:void 0}),r={state:t,dispatch:n};return X.exports.useEffect(()=>{const i=new AbortController;return o(i.signal),()=>{i.abort()};async function o(l){const u=t.options.compilerPackageName,a=!Dh(u);try{if(a?n(Bo(yt.Loading)):await zh(Zp.sourceFileRefreshDelay),l.aborted)return;const s=await Lh(u);if(l.aborted)return;n(gh(s)),n(Bo(yt.Loaded))}catch(s){console.error(s),a&&n(Bo(yt.Error))}}},[t.code,t.options.scriptKind,t.options.scriptTarget,t.options.compilerPackageName,t.options.bindingEnabled]),X.exports.useEffect(()=>{const i=Un.get();i.treeMode=t.options.treeMode,i.showFactoryCode=t.options.showFactoryCode,i.showInternals=t.options.showInternals,Un.set(i)},[t.options.treeMode,t.options.showFactoryCode,t.options.showInternals]),X.exports.useEffect(()=>{if(t.compiler==null||t.compiler.selectedNode==null)return;const i=window,o=t.compiler.selectedNode;if(i.ts=t.compiler.api,i.node=o,i.selectedNode=o,i.sourceFile=t.compiler.sourceFile,t.options.bindingEnabled){const u=t.compiler.bindingTools();i.checker=u.typeChecker,i.typeChecker=u.typeChecker,i.program=u.program,i.type=l(()=>u.typeChecker.getTypeAtLocation(o)),i.symbol=l(()=>o.symbol||u.typeChecker.getSymbolAtLocation(o)),i.signature=l(()=>u.typeChecker.getSignatureFromDeclaration(o))}else i.checker=void 0,i.typeChecker=void 0,i.program=void 0,i.type=void 0,i.symbol=void 0,i.signature=void 0;function l(u){try{return u()}catch{return}}}),O(Cd.Provider,{value:r,children:e})}function Qh(){const e=rt.useContext(Cd);if(e==null)throw new Error("Context was undefined.");return e}var Yh={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function Xh(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return Yh[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function Po(e){var t=Xh(e);return"".concat(t.value).concat(t.unit)}var Zh=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,l=` @keyframes `.concat(r,` { `).concat(t,` } - `);return o&&o.insertRule(l,0),r},Wi=globalThis&&globalThis.__assign||function(){return Wi=Object.assign||function(e){for(var t,n=1,r=arguments.length;nimport("./index.7cb16617.js"),["assets/index.7cb16617.js","assets/editor.api.d8951072.js","assets/editor.941fe252.css"]);W(()=>import("./editor.main.59d86089.js").then(i=>i.e),["assets/editor.main.59d86089.js","assets/editor.api.d8951072.js","assets/editor.941fe252.css","assets/editor.793ce1e8.css"]).then(i=>{i.languages.typescript.typescriptDefaults.setCompilerOptions({target:i.languages.typescript.ScriptTarget.ESNext,allowNonTsExtensions:!0}),r.then(o=>{this.setState({editorComponent:o.default})}).catch(o=>{console.error(o),this.setState({editorComponent:!1})})}).catch(i=>{console.error(i),this.setState({editorComponent:!1})})}render(){return this.updateHighlight(),I("div",{id:this.props.id,ref:this.outerContainerRef,className:n(this.props.showInfo),children:[O("div",{className:"editorContainer",children:this.getEditor()}),this.props.showInfo&&this.getInfo()]});function n(r){const i=["codeEditor"];return r&&i.push("hasInfo"),i.join(" ")}}componentWillUnmount(){for(const n of this.disposables)n.dispose();this.disposables.length=0}getInfo(){return I("div",{className:"editorInfo",children:["Pos ",this.state.position,", Ln ",this.state.lineNumber,", Col ",this.state.column]})}updateHighlight(){if(this.editor==null)return;this.lineAndColumnComputer.text!==this.props.text&&(this.lineAndColumnComputer=new Ya(this.props.text));const{highlight:n}=this.props,r=this.lineAndColumnComputer,i=o();if(this.deltaDecorations=this.editor.deltaDecorations(this.deltaDecorations,i==null?[]:[{range:i,options:{className:"editorRangeHighlight"}}]),i)try{this.editor.revealRangeInCenterIfOutsideViewport(i)}catch{}function o(){if(n==null)return;const l=r.getNumberAndColumnFromPos(n.start),u=r.getNumberAndColumnFromPos(n.end);return{startLineNumber:l.lineNumber,startColumn:l.column,endLineNumber:u.lineNumber,endColumn:u.column}}}getEditor(){return this.state.editorComponent==null?O(Sr,{backgroundColor:"#1e1e1e"}):this.state.editorComponent===!1?O("div",{className:"errorMessage",children:"Error loading code editor. Please refresh the page to try again."}):O(this.state.editorComponent,{width:"100%",height:"100%",value:this.props.text,theme:"vs-dark",language:"typescript",onChange:n=>this.props.onChange&&this.props.onChange(n),editorDidMount:this.editorDidMount,options:{automaticLayout:!1,renderWhitespace:this.props.renderWhiteSpace?"all":"none",minimap:{enabled:!1},readOnly:this.props.readOnly,quickSuggestions:!1,occurrencesHighlight:!1,selectionHighlight:!1,codeLens:!1,suggestOnTriggerCharacters:!1}})}editorDidMount(n,r){var u;this.editor=n,(u=n.getModel())==null||u.setEOL(r.editor.EndOfLineSequence.LF),this.disposables.push(n.onDidChangeCursorPosition(a=>{const s=n.getModel();s!=null&&this.setState({position:s.getOffsetAt(a.position),lineNumber:a.position.lineNumber,column:a.position.column})})),this.disposables.push(n.onMouseDown(a=>{if(a.target==null||a.target.range==null||this.props.onClick==null)return;const s=n.getPosition();if(s!=null){const p=this.lineAndColumnComputer.getPosFromLineAndColumn(s.lineNumber,s.column);this.props.onClick([p,p])}}));let i=0,o=0;const l=setInterval(()=>{const a=this.outerContainerRef.current;if(a==null)return;const s=a.offsetWidth,p=a.offsetHeight;i===p&&o===s||(n.layout(),i=p,o=s)},500);this.disposables.push({dispose:()=>clearInterval(l)}),this.updateHighlight(),this.props.editorDidMount&&this.props.editorDidMount(n,r)}}class Xa extends rt.Component{constructor(n){super(n);be(this,"lastResetHash");this.state={hasError:!1}}componentDidCatch(n,r){this.setState({hasError:!0,error:n,errorInfo:r}),console.error(n),this.props.getResetHash!=null&&(this.lastResetHash=this.props.getResetHash())}render(){return this.getHasError()?I("div",{children:[O("h2",{children:"Something went wrong"}),I("div",{style:{whiteSpace:"pre-wrap"},children:[O("div",{children:this.state.error&&this.state.error.toString()}),O("div",{children:this.state.errorInfo.componentStack})]})]}):this.props.children}getHasError(){return this.state.hasError?this.hasHashChanged()?(this.lastResetHash=void 0,this.setState({hasError:!1,error:void 0}),!1):!0:!1}hasHashChanged(){return this.props.getResetHash==null?!1:this.props.getResetHash()!==this.lastResetHash}}function tm(e){const[t,n]=X.exports.useState();if(X.exports.useEffect(()=>{n(void 0),jh(e.compiler.packageName).then(i=>{n(new kh(i))}).catch(i=>{console.error(i),n(!1)})},[e.compiler.packageName]),t==null)return O(Sr,{backgroundColor:"#1e1e1e"});if(t===!1)return O("div",{className:"errorMessage",children:"Error loading factory code. Please refresh the page to try again."});return O(Od,{id:ne.factoryCodeEditor.id,editorDidMount:nm,text:r(),readOnly:!0});function r(){return t==null||t===!1?"":t.value(e.compiler.api,e.compiler.selectedNode)}}function nm(e){window.getFactoryCodeEditorText=()=>e.getValue()}function rm(e,t){const n=X.exports.useCallback(t,[t]);X.exports.useEffect(()=>{const r=i=>{!e.current||e.current.contains(i.target)||n(i)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r,!1),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r,!1)}},[n,e])}function Za(e){return O("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:e.text})}function im(e){const t=X.exports.useRef(null),[n,r]=X.exports.useState(!1);return rm(t,()=>r(!1)),I("div",{id:ne.options.id,ref:t,children:[O("div",{id:ne.options.buttonId,onClick:()=>r(!n),role:"button",children:"Options"}),O("div",{className:"menuLine",hidden:!n}),I("div",{className:"menu",hidden:!n,children:[i(),o(),l(),u(),a(),s(),p(),I("div",{className:"bottomLinks",children:[O(Za,{text:"About",url:"https://github.com/dsherret/ts-ast-viewer/tree/main/docs/about.md"}),O("span",{children:"\xA0|\xA0"}),O(Za,{text:"View on GitHub",url:"https://github.com/dsherret/ts-ast-viewer"})]})]})]});function i(){const y=O("select",{id:ne.options.compilerVersionSelectionId,value:e.options.compilerPackageName,onChange:g=>d({compilerPackageName:g.target.value}),children:ad.map(g=>O("option",{value:g.packageName,children:g.version},g.packageName))});return O(Jt,{name:"Version",value:y})}function o(){const y=I("select",{id:ne.options.treeModeId,value:e.options.treeMode,onChange:g=>d({treeMode:parseInt(g.target.value,10)}),children:[I("option",{value:nt.forEachChild,children:["node.forEachChild(child =",">"," ...)"]}),O("option",{value:nt.getChildren,children:"node.getChildren()"})]});return O(Jt,{name:"Tree mode",value:y})}function l(){const{api:y}=e;if(y!=null)return h("Script kind","ts.ScriptKind",y.ScriptKind,e.options.scriptKind,g=>d({scriptKind:g}))}function u(){const{api:y}=e;if(y!=null)return h("Script target","ts.ScriptTarget",y.ScriptTarget,e.options.scriptTarget,g=>d({scriptTarget:g}))}function a(){const y=O("div",{children:O("input",{id:ne.options.bindingEnabledId,type:"checkbox",checked:e.options.bindingEnabled,onChange:g=>d({bindingEnabled:!!g.target.checked})})});return O(Jt,{name:"Binding",value:y})}function s(){const y=O("div",{children:O("input",{id:ne.options.showFactoryCodeId,type:"checkbox",checked:e.options.showFactoryCode,onChange:g=>d({showFactoryCode:!!g.target.checked})})});return O(Jt,{name:"Factory code",value:y})}function p(){const y=O("div",{children:O("input",{id:ne.options.showInternalsId,type:"checkbox",checked:e.options.showInternals,onChange:g=>d({showInternals:!!g.target.checked})})});return O(Jt,{name:"Show internals",value:y})}function h(y,g,k,z,f){const c=O("select",{value:z,onChange:S=>f(parseInt(S.target.value,10)),children:Mh.getNamesForValues(k).map(S=>m(S.value,S.names))});return O(Jt,{name:y,value:c});function m(S,C){return I("option",{value:S,children:[g,".",C.join(" / ")]},S)}}function d(y){e.onChange({...y})}}function Jt(e){return I("div",{className:"option",children:[I("div",{className:"optionName",children:[e.name,":"]}),O("div",{className:"optionValue",children:e.value})]})}/*! + `);return o&&o.insertRule(l,0),r},Wi=globalThis&&globalThis.__assign||function(){return Wi=Object.assign||function(e){for(var t,n=1,r=arguments.length;nimport("./index.3456401a.js"),["assets/index.3456401a.js","assets/editor.api.d8951072.js","assets/editor.941fe252.css"]);W(()=>import("./editor.main.7aae6d3b.js").then(i=>i.e),["assets/editor.main.7aae6d3b.js","assets/editor.api.d8951072.js","assets/editor.941fe252.css","assets/editor.793ce1e8.css"]).then(i=>{i.languages.typescript.typescriptDefaults.setCompilerOptions({target:i.languages.typescript.ScriptTarget.ESNext,allowNonTsExtensions:!0}),r.then(o=>{this.setState({editorComponent:o.default})}).catch(o=>{console.error(o),this.setState({editorComponent:!1})})}).catch(i=>{console.error(i),this.setState({editorComponent:!1})})}render(){return this.updateHighlight(),I("div",{id:this.props.id,ref:this.outerContainerRef,className:n(this.props.showInfo),children:[O("div",{className:"editorContainer",children:this.getEditor()}),this.props.showInfo&&this.getInfo()]});function n(r){const i=["codeEditor"];return r&&i.push("hasInfo"),i.join(" ")}}componentWillUnmount(){for(const n of this.disposables)n.dispose();this.disposables.length=0}getInfo(){return I("div",{className:"editorInfo",children:["Pos ",this.state.position,", Ln ",this.state.lineNumber,", Col ",this.state.column]})}updateHighlight(){if(this.editor==null)return;this.lineAndColumnComputer.text!==this.props.text&&(this.lineAndColumnComputer=new Ya(this.props.text));const{highlight:n}=this.props,r=this.lineAndColumnComputer,i=o();if(this.deltaDecorations=this.editor.deltaDecorations(this.deltaDecorations,i==null?[]:[{range:i,options:{className:"editorRangeHighlight"}}]),i)try{this.editor.revealRangeInCenterIfOutsideViewport(i)}catch{}function o(){if(n==null)return;const l=r.getNumberAndColumnFromPos(n.start),u=r.getNumberAndColumnFromPos(n.end);return{startLineNumber:l.lineNumber,startColumn:l.column,endLineNumber:u.lineNumber,endColumn:u.column}}}getEditor(){return this.state.editorComponent==null?O(Sr,{backgroundColor:"#1e1e1e"}):this.state.editorComponent===!1?O("div",{className:"errorMessage",children:"Error loading code editor. Please refresh the page to try again."}):O(this.state.editorComponent,{width:"100%",height:"100%",value:this.props.text,theme:"vs-dark",language:"typescript",onChange:n=>this.props.onChange&&this.props.onChange(n),editorDidMount:this.editorDidMount,options:{automaticLayout:!1,renderWhitespace:this.props.renderWhiteSpace?"all":"none",minimap:{enabled:!1},readOnly:this.props.readOnly,quickSuggestions:!1,occurrencesHighlight:!1,selectionHighlight:!1,codeLens:!1,suggestOnTriggerCharacters:!1}})}editorDidMount(n,r){var u;this.editor=n,(u=n.getModel())==null||u.setEOL(r.editor.EndOfLineSequence.LF),this.disposables.push(n.onDidChangeCursorPosition(a=>{const s=n.getModel();s!=null&&this.setState({position:s.getOffsetAt(a.position),lineNumber:a.position.lineNumber,column:a.position.column})})),this.disposables.push(n.onMouseDown(a=>{if(a.target==null||a.target.range==null||this.props.onClick==null)return;const s=n.getPosition();if(s!=null){const p=this.lineAndColumnComputer.getPosFromLineAndColumn(s.lineNumber,s.column);this.props.onClick([p,p])}}));let i=0,o=0;const l=setInterval(()=>{const a=this.outerContainerRef.current;if(a==null)return;const s=a.offsetWidth,p=a.offsetHeight;i===p&&o===s||(n.layout(),i=p,o=s)},500);this.disposables.push({dispose:()=>clearInterval(l)}),this.updateHighlight(),this.props.editorDidMount&&this.props.editorDidMount(n,r)}}class Xa extends rt.Component{constructor(n){super(n);be(this,"lastResetHash");this.state={hasError:!1}}componentDidCatch(n,r){this.setState({hasError:!0,error:n,errorInfo:r}),console.error(n),this.props.getResetHash!=null&&(this.lastResetHash=this.props.getResetHash())}render(){return this.getHasError()?I("div",{children:[O("h2",{children:"Something went wrong"}),I("div",{style:{whiteSpace:"pre-wrap"},children:[O("div",{children:this.state.error&&this.state.error.toString()}),O("div",{children:this.state.errorInfo.componentStack})]})]}):this.props.children}getHasError(){return this.state.hasError?this.hasHashChanged()?(this.lastResetHash=void 0,this.setState({hasError:!1,error:void 0}),!1):!0:!1}hasHashChanged(){return this.props.getResetHash==null?!1:this.props.getResetHash()!==this.lastResetHash}}function tm(e){const[t,n]=X.exports.useState();if(X.exports.useEffect(()=>{n(void 0),jh(e.compiler.packageName).then(i=>{n(new kh(i))}).catch(i=>{console.error(i),n(!1)})},[e.compiler.packageName]),t==null)return O(Sr,{backgroundColor:"#1e1e1e"});if(t===!1)return O("div",{className:"errorMessage",children:"Error loading factory code. Please refresh the page to try again."});return O(Od,{id:ne.factoryCodeEditor.id,editorDidMount:nm,text:r(),readOnly:!0});function r(){return t==null||t===!1?"":t.value(e.compiler.api,e.compiler.selectedNode)}}function nm(e){window.getFactoryCodeEditorText=()=>e.getValue()}function rm(e,t){const n=X.exports.useCallback(t,[t]);X.exports.useEffect(()=>{const r=i=>{!e.current||e.current.contains(i.target)||n(i)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r,!1),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r,!1)}},[n,e])}function Za(e){return O("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:e.text})}function im(e){const t=X.exports.useRef(null),[n,r]=X.exports.useState(!1);return rm(t,()=>r(!1)),I("div",{id:ne.options.id,ref:t,children:[O("div",{id:ne.options.buttonId,onClick:()=>r(!n),role:"button",children:"Options"}),O("div",{className:"menuLine",hidden:!n}),I("div",{className:"menu",hidden:!n,children:[i(),o(),l(),u(),a(),s(),p(),I("div",{className:"bottomLinks",children:[O(Za,{text:"About",url:"https://github.com/dsherret/ts-ast-viewer/tree/main/docs/about.md"}),O("span",{children:"\xA0|\xA0"}),O(Za,{text:"View on GitHub",url:"https://github.com/dsherret/ts-ast-viewer"})]})]})]});function i(){const y=O("select",{id:ne.options.compilerVersionSelectionId,value:e.options.compilerPackageName,onChange:g=>d({compilerPackageName:g.target.value}),children:ad.map(g=>O("option",{value:g.packageName,children:g.version},g.packageName))});return O(Jt,{name:"Version",value:y})}function o(){const y=I("select",{id:ne.options.treeModeId,value:e.options.treeMode,onChange:g=>d({treeMode:parseInt(g.target.value,10)}),children:[I("option",{value:nt.forEachChild,children:["node.forEachChild(child =",">"," ...)"]}),O("option",{value:nt.getChildren,children:"node.getChildren()"})]});return O(Jt,{name:"Tree mode",value:y})}function l(){const{api:y}=e;if(y!=null)return h("Script kind","ts.ScriptKind",y.ScriptKind,e.options.scriptKind,g=>d({scriptKind:g}))}function u(){const{api:y}=e;if(y!=null)return h("Script target","ts.ScriptTarget",y.ScriptTarget,e.options.scriptTarget,g=>d({scriptTarget:g}))}function a(){const y=O("div",{children:O("input",{id:ne.options.bindingEnabledId,type:"checkbox",checked:e.options.bindingEnabled,onChange:g=>d({bindingEnabled:!!g.target.checked})})});return O(Jt,{name:"Binding",value:y})}function s(){const y=O("div",{children:O("input",{id:ne.options.showFactoryCodeId,type:"checkbox",checked:e.options.showFactoryCode,onChange:g=>d({showFactoryCode:!!g.target.checked})})});return O(Jt,{name:"Factory code",value:y})}function p(){const y=O("div",{children:O("input",{id:ne.options.showInternalsId,type:"checkbox",checked:e.options.showInternals,onChange:g=>d({showInternals:!!g.target.checked})})});return O(Jt,{name:"Show internals",value:y})}function h(y,g,k,z,f){const c=O("select",{value:z,onChange:S=>f(parseInt(S.target.value,10)),children:Mh.getNamesForValues(k).map(S=>m(S.value,S.names))});return O(Jt,{name:y,value:c});function m(S,C){return I("option",{value:S,children:[g,".",C.join(" / ")]},S)}}function d(y){e.onChange({...y})}}function Jt(e){return I("div",{className:"option",children:[I("div",{className:"optionName",children:[e.name,":"]}),O("div",{className:"optionValue",children:e.value})]})}/*! Copyright (C) 2013-2017 by Andrea Giammarchi - @WebReflection Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/assets/index.7cb16617.js b/assets/index.3456401a.js similarity index 98% rename from assets/index.7cb16617.js rename to assets/index.3456401a.js index 94e4d3dc6..ad819862c 100644 --- a/assets/index.7cb16617.js +++ b/assets/index.3456401a.js @@ -1 +1 @@ -import{e as p,m as b}from"./editor.api.d8951072.js";import{m as B}from"./editor.api.d8951072.js";import{r as t,j as $}from"./index.96709b2a.js";function w(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function M(){}var E=globalThis&&globalThis.__assign||function(){return E=Object.assign||function(e){for(var u,l=1,r=arguments.length;lt in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{m as R}from"./editor.api.d8951072.js";import{t as E}from"./editor.main.59d86089.js";import"./index.96709b2a.js";/*!----------------------------------------------------------------------------- +var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{m as R}from"./editor.api.d8951072.js";import{t as E}from"./editor.main.7aae6d3b.js";import"./index.01cc2733.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/assets/typescript.1d75add0.js b/assets/typescript.2a4d8a04.js similarity index 50% rename from assets/typescript.1d75add0.js rename to assets/typescript.2a4d8a04.js index ad3e61d0f..4bfd05b94 100644 --- a/assets/typescript.1d75add0.js +++ b/assets/typescript.2a4d8a04.js @@ -1,4 +1,4 @@ -import{g as got,c as W7e}from"./index.96709b2a.js";import{c as q7e,r as mx}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function hot(kC,oI){for(var w7=0;w7gx[Bt]})}}}return Object.freeze(Object.defineProperty(kC,Symbol.toStringTag,{value:"Module"}))}var Qae={exports:{}};/*! ***************************************************************************** +import{g as hot,c as q7e}from"./index.01cc2733.js";import{c as H7e,r as gx}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function yot(EC,oI){for(var D7=0;D7hx[Rt]})}}}return Object.freeze(Object.defineProperty(EC,Symbol.toStringTag,{value:"Module"}))}var Qae={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -11,31 +11,31 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */(function(kC){var oI=(()=>{var w7=Object.defineProperty,gx=Object.getOwnPropertyNames,Bt=(e,t)=>function(){return e&&(t=(0,e[gx(e)[0]])(e=0)),t},D7=(e,t)=>function(){return t||(0,e[gx(e)[0]])((t={exports:{}}).exports,t),t.exports},C_=(e,t)=>{for(var r in t)w7(e,r,{get:t[r],enumerable:!0})},CC,F0,Yz,$7e=Bt({"src/compiler/corePublic.ts"(){CC="5.2",F0=`${CC}.0-dev.20230807`,Yz=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Yz||{})}});function Pn(e){return e?e.length:0}function mn(e,t){if(e)for(let r=0;r=0;r--){const i=t(e[r],r);if(i)return i}}function _c(e,t){if(e!==void 0)for(let r=0;r=0;i--){const a=e[i];if(t(a,i))return a}}function qc(e,t,r){if(e===void 0)return-1;for(let i=r!=null?r:0;i=0;i--)if(t(e[i],i))return i;return-1}function Q7e(e,t){for(let r=0;rr(i,t[a]))}function Zae(e,t,r){for(let i=r||0;i{const o=t(a,i);if(o!==void 0){const[l,u]=o;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function O7(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function Lv(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Z7e(e){yield e}function iV(e,t,r){let i;if(e){i=[];const a=e.length;let o,l,u=0,f=0;for(;u{const[o,l]=t(a,i);r.set(o,l)}),r}function dt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function sV(e,t,r){let i;for(let a=0;ae[l])}function twe(e,t){const r=[];for(const i of e)Gf(r,i,t);return r}function zk(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?ewe(e,t,r):twe(e,t)}function nwe(e,t){if(e.length===0)return Ve;let r=e[0];const i=[r];for(let a=1;a0&&(a&=-2),a&2&&i(o,f)>0&&(a&=-3),o=f}return a}function kd(e,t,r=oy){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&E.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);t:for(const l=a;al&&E.assertGreaterThanOrEqual(r(e[a],e[a-1]),0),r(t[o],e[a])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function gn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Vk(e,t){return e===void 0?t:t===void 0?e:Ds(e)?Ds(t)?Ki(e,t):gn(e,t):Ds(t)?gn(t,e):[e,t]}function oV(e,t){return t<0?e.length+t:t}function Lr(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:oV(t,r),i=i===void 0?t.length:oV(t,i);for(let a=r;ar(e[i],e[a])||Co(i,a))}function EC(e,t){return e.length===0?e:e.slice().sort(t)}function*rwe(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function M0(e,t){const r=F7(e);return roe(e,r,t),r.map(i=>e[i])}function cV(e,t,r,i){for(;r>1),f=r(e[u],u);switch(i(f,t)){case-1:o=u+1;break;case 0:return u;case 1:l=u-1;break}}return~o}function E_(e,t,r,i,a){if(e&&e.length>0){const o=e.length;if(o>0){let l=i===void 0||i<0?0:i;const u=a===void 0||l+a>o-1?o-1:l+a;let f;for(arguments.length<=2?(f=e[l],l++):f=r;l<=u;)f=t(f,e[l],l),l++;return f}}return r}function lo(e,t){return J0.call(e,t)}function R7(e,t){return J0.call(e,t)?e[t]:void 0}function Bg(e){const t=[];for(const r in e)J0.call(e,r)&&t.push(r);return t}function iwe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)Gf(t,i)}while(e=Object.getPrototypeOf(e));return t}function vx(e){const t=[];for(const r in e)J0.call(e,r)&&t.push(e[r]);return t}function soe(e,t){const r=new Array(e);for(let i=0;i100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:a,dequeue:o,isEmpty:i}}function owe(e,t){const r=new Map;let i=0;function*a(){for(const l of r.values())Ds(l)?yield*l:yield l}const o={has(l){const u=e(l);if(!r.has(u))return!1;const f=r.get(u);if(!Ds(f))return t(f,l);for(const g of f)if(t(g,l))return!0;return!1},add(l){const u=e(l);if(r.has(u)){const f=r.get(u);if(Ds(f))gs(f,l,t)||(f.push(l),i++);else{const g=f;t(g,l)||(r.set(u,[g,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const f=r.get(u);if(Ds(f)){for(let g=0;ga(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return o}function Ds(e){return Array.isArray(e)}function J7(e){return Ds(e)?e:[e]}function $s(e){return typeof e=="string"}function R0(e){return typeof e=="number"}function Hr(e,t){return e!==void 0&&t(e)?e:void 0}function Ms(e,t){return e!==void 0&&t(e)?e:E.fail(`Invalid cast. The supplied value ${e} did not pass the test '${E.getFunctionName(t)}'.`)}function _o(e){}function B0(){return!1}function sy(){return!0}function ay(){}function Zo(e){return e}function loe(e){return e.toLowerCase()}function Qp(e){return bV.test(e)?e.replace(bV,loe):e}function Ss(){throw new Error("Not implemented")}function wu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function lm(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let a=t.get(i);return a===void 0&&!t.has(i)&&(a=e(r),t.set(i,a)),a}}function cwe(e){const t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function _oe(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function lwe(e,t,r,i,a){if(a){const o=[];for(let l=0;lE_(o,(u,f)=>f(u),l)}else return i?o=>i(r(t(e(o)))):r?o=>r(t(e(o))):t?o=>t(e(o)):e?o=>e(o):o=>o}function oy(e,t){return e===t}function bx(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Tx(e,t){return oy(e,t)}function uoe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function pI(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function foe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function w_(e,t){return uoe(e,t)}function dI(e){return e?pI:w_}function poe(){return TI}function doe(e){TI!==e&&(TI=e,xV=void 0)}function z7(e,t){return(xV||(xV=Coe(TI)))(e,t)}function moe(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Rv(e,t){return Co(e?1:0,t?1:0)}function DC(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let a=Math.floor(e.length*.4)+1,o;for(const l of t){const u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const f=_we(e,u,a-.1);if(f===void 0)continue;E.assert(fr?u-r:1),m=Math.floor(t.length>r+u?r+u:t.length);a[0]=u;let y=u;for(let k=1;kr)return;const x=i;i=a,a=x}const l=i[t.length];return l>r?void 0:l}function Tc(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function Uk(e,t){return Tc(e,t)?e.slice(0,e.length-t.length):e}function goe(e,t){return Tc(e,t)?e.slice(0,e.length-t.length):void 0}function Xl(e,t){return e.indexOf(t)!==-1}function hoe(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function mI(e,t){for(let r=0;rr===t)}function uwe(e,t){for(let r=0;ra&&(a=l.prefix.length,i=o)}return i}function ts(e,t){return e.lastIndexOf(t,0)===0}function NC(e,t){return ts(e,t)?e.substr(t.length):e}function hV(e,t,r=Zo){return ts(r(e),r(t))?e.substring(t.length):void 0}function gI({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&ts(r,e)&&Tc(r,t)}function hI(e,t){return r=>e(r)&&t(r)}function Yp(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function yI(e){return(...t)=>!e(...t)}function fwe(e){}function xb(e){return e===void 0?void 0:[e]}function boe(e,t,r,i,a,o){o=o||_o;let l=0,u=0;const f=e.length,g=t.length;let m=!1;for(;l=0&&qm(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function yV(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&!0}var Ve,bI,koe,vV,j0,J0,bV,TV,Coe,xV,TI,Bv,xx,PC,mwe=Bt({"src/compiler/core.ts"(){Os(),Ve=[],bI=new Map,koe=new Set,vV=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(vV||{}),j0=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=oV(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(TV||{}),Coe=(()=>{let e,t;const r=u();return f;function i(g,m,y){if(g===m)return 0;if(g===void 0)return-1;if(m===void 0)return 1;const x=y(g,m);return x<0?-1:x>0?1:0}function a(g){const m=new Intl.Collator(g,{usage:"sort",sensitivity:"variant"}).compare;return(y,x)=>i(y,x,m)}function o(g){if(g!==void 0)return l();return(y,x)=>i(y,x,m);function m(y,x){return y.localeCompare(x)}}function l(){return(y,x)=>i(y,x,g);function g(y,x){return m(y.toUpperCase(),x.toUpperCase())||m(y,x)}function m(y,x){return yx?1:0}}function u(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?a:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?o:l}function f(g){return g===void 0?e||(e=r(g)):g==="en-US"?t||(t=r(g)):r(g)}})(),Bv=String.prototype.trim?e=>e.trim():e=>xx(PC(e)),xx=String.prototype.trimEnd?e=>e.trimEnd():dwe,PC=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),SV,E,gwe=Bt({"src/compiler/debug.ts"(){Os(),Os(),SV=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(SV||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Ct){return e.currentLogLevel<=Ct}e.shouldLog=r;function i(Ct,cn){e.loggingHost&&r(Ct)&&e.loggingHost.log(Ct,cn)}function a(Ct){i(3,Ct)}e.log=a,(Ct=>{function cn(Zt){i(1,Zt)}Ct.error=cn;function In(Zt){i(2,Zt)}Ct.warn=In;function xr(Zt){i(3,Zt)}Ct.log=xr;function wi(Zt){i(4,Zt)}Ct.trace=wi})(a=e.log||(e.log={}));const o={};function l(){return t}e.getAssertionLevel=l;function u(Ct){const cn=t;if(t=Ct,Ct>cn)for(const In of Bg(o)){const xr=o[In];xr!==void 0&&e[In]!==xr.assertion&&Ct>=xr.level&&(e[In]=xr,o[In]=void 0)}}e.setAssertionLevel=u;function f(Ct){return t>=Ct}e.shouldAssert=f;function g(Ct,cn){return f(Ct)?!0:(o[cn]={level:Ct,assertion:e[cn]},e[cn]=_o,!1)}function m(Ct,cn){debugger;const In=new Error(Ct?`Debug Failure. ${Ct}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(In,cn||m),In}e.fail=m;function y(Ct,cn,In){return m(`${cn||"Unexpected node."}\r -Node ${Ne(Ct.kind)} was unexpected.`,In||y)}e.failBadSyntaxKind=y;function x(Ct,cn,In,xr){Ct||(cn=cn?`False expression: ${cn}`:"False expression.",In&&(cn+=`\r -Verbose Debug Information: `+(typeof In=="string"?In:In())),m(cn,xr||x))}e.assert=x;function k(Ct,cn,In,xr,wi){if(Ct!==cn){const Zt=In?xr?`${In} ${xr}`:In:"";m(`Expected ${Ct} === ${cn}. ${Zt}`,wi||k)}}e.assertEqual=k;function C(Ct,cn,In,xr){Ct>=cn&&m(`Expected ${Ct} < ${cn}. ${In||""}`,xr||C)}e.assertLessThan=C;function N(Ct,cn,In){Ct>cn&&m(`Expected ${Ct} <= ${cn}`,In||N)}e.assertLessThanOrEqual=N;function D(Ct,cn,In){Ct= ${cn}`,In||D)}e.assertGreaterThanOrEqual=D;function M(Ct,cn,In){Ct==null&&m(cn,In||M)}e.assertIsDefined=M;function V(Ct,cn,In){return M(Ct,cn,In||V),Ct}e.checkDefined=V;function U(Ct,cn,In){for(const xr of Ct)M(xr,cn,In||U)}e.assertEachIsDefined=U;function Y(Ct,cn,In){return U(Ct,cn,In||Y),Ct}e.checkEachDefined=Y;function j(Ct,cn="Illegal value:",In){const xr=typeof Ct=="object"&&lo(Ct,"kind")&&lo(Ct,"pos")?"SyntaxKind: "+Ne(Ct.kind):JSON.stringify(Ct);return m(`${cn} ${xr}`,In||j)}e.assertNever=j;function ee(Ct,cn,In,xr){g(1,"assertEachNode")&&x(cn===void 0||$i(Ct,cn),In||"Unexpected node.",()=>`Node array did not pass test '${Q(cn)}'.`,xr||ee)}e.assertEachNode=ee;function R(Ct,cn,In,xr){g(1,"assertNode")&&x(Ct!==void 0&&(cn===void 0||cn(Ct)),In||"Unexpected node.",()=>`Node ${Ne(Ct==null?void 0:Ct.kind)} did not pass test '${Q(cn)}'.`,xr||R)}e.assertNode=R;function Z(Ct,cn,In,xr){g(1,"assertNotNode")&&x(Ct===void 0||cn===void 0||!cn(Ct),In||"Unexpected node.",()=>`Node ${Ne(Ct.kind)} should not have passed test '${Q(cn)}'.`,xr||Z)}e.assertNotNode=Z;function oe(Ct,cn,In,xr){g(1,"assertOptionalNode")&&x(cn===void 0||Ct===void 0||cn(Ct),In||"Unexpected node.",()=>`Node ${Ne(Ct==null?void 0:Ct.kind)} did not pass test '${Q(cn)}'.`,xr||oe)}e.assertOptionalNode=oe;function _e(Ct,cn,In,xr){g(1,"assertOptionalToken")&&x(cn===void 0||Ct===void 0||Ct.kind===cn,In||"Unexpected node.",()=>`Node ${Ne(Ct==null?void 0:Ct.kind)} was not a '${Ne(cn)}' token.`,xr||_e)}e.assertOptionalToken=_e;function X(Ct,cn,In){g(1,"assertMissingNode")&&x(Ct===void 0,cn||"Unexpected node.",()=>`Node ${Ne(Ct.kind)} was unexpected'.`,In||X)}e.assertMissingNode=X;function H(Ct){}e.type=H;function Q(Ct){if(typeof Ct!="function")return"";if(lo(Ct,"name"))return Ct.name;{const cn=Function.prototype.toString.call(Ct),In=/^function\s+([\w$]+)\s*\(/.exec(cn);return In?In[1]:""}}e.getFunctionName=Q;function re(Ct){return`{ name: ${Li(Ct.escapedName)}; flags: ${ct(Ct.flags)}; declarations: ${an(Ct.declarations,cn=>Ne(cn.kind))} }`}e.formatSymbol=re;function ue(Ct=0,cn,In){const xr=G(cn);if(Ct===0)return xr.length>0&&xr[0][0]===0?xr[0][1]:"0";if(In){const wi=[];let Zt=Ct;for(const[Gt,xn]of xr){if(Gt>Ct)break;Gt!==0&&Gt&Ct&&(wi.push(xn),Zt&=~Gt)}if(Zt===0)return wi.join("|")}else for(const[wi,Zt]of xr)if(wi===Ct)return Zt;return Ct.toString()}e.formatEnum=ue;const fe=new Map;function G(Ct){const cn=fe.get(Ct);if(cn)return cn;const In=[];for(const wi in Ct){const Zt=Ct[wi];typeof Zt=="number"&&In.push([Zt,wi])}const xr=M0(In,(wi,Zt)=>Co(wi[0],Zt[0]));return fe.set(Ct,xr),xr}function Ne(Ct){return ue(Ct,wI,!1)}e.formatSyntaxKind=Ne;function De(Ct){return ue(Ct,jI,!1)}e.formatSnippetKind=De;function Xe(Ct){return ue(Ct,RI,!1)}e.formatScriptKind=Xe;function ve(Ct){return ue(Ct,DI,!0)}e.formatNodeFlags=ve;function be(Ct){return ue(Ct,AI,!0)}e.formatModifierFlags=be;function xe(Ct){return ue(Ct,BI,!0)}e.formatTransformFlags=xe;function rt(Ct){return ue(Ct,JI,!0)}e.formatEmitFlags=rt;function ct(Ct){return ue(Ct,OI,!0)}e.formatSymbolFlags=ct;function pe(Ct){return ue(Ct,FI,!0)}e.formatTypeFlags=pe;function Pe(Ct){return ue(Ct,MI,!0)}e.formatSignatureFlags=Pe;function Ge(Ct){return ue(Ct,LI,!0)}e.formatObjectFlags=Ge;function tt(Ct){return ue(Ct,q7,!0)}e.formatFlowFlags=tt;function mt(Ct){return ue(Ct,NI,!0)}e.formatRelationComparisonResult=mt;function Je(Ct){return ue(Ct,bL,!0)}e.formatCheckMode=Je;function at(Ct){return ue(Ct,TL,!0)}e.formatSignatureCheckMode=at;function zt(Ct){return ue(Ct,yL,!0)}e.formatTypeFacts=zt;let It=!1,bt;function _r(Ct){"__debugFlowFlags"in Ct||Object.defineProperties(Ct,{__tsDebuggerDisplay:{value(){const cn=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",In=this.flags&~(2048-1);return`${cn}${In?` (${tt(In)})`:""}`}},__debugFlowFlags:{get(){return ue(this.flags,q7,!0)}},__debugToString:{value(){return yn(this)}}})}function Tn(Ct){It&&(typeof Object.setPrototypeOf=="function"?(bt||(bt=Object.create(Object.prototype),_r(bt)),Object.setPrototypeOf(Ct,bt)):_r(Ct))}e.attachFlowNodeDebugInfo=Tn;let jt;function Kn(Ct){"__tsDebuggerDisplay"in Ct||Object.defineProperties(Ct,{__tsDebuggerDisplay:{value(cn){return cn=String(cn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${cn}`}}})}function br(Ct){It&&(typeof Object.setPrototypeOf=="function"?(jt||(jt=Object.create(Array.prototype),Kn(jt)),Object.setPrototypeOf(Ct,jt)):Kn(Ct))}e.attachNodeArrayDebugInfo=br;function fi(){if(It)return;const Ct=new WeakMap,cn=new WeakMap;Object.defineProperties(Ol.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const xr=this.flags&33554432?"TransientSymbol":"Symbol",wi=this.flags&-33554433;return`${xr} '${xc(this)}'${wi?` (${ct(wi)})`:""}`}},__debugFlags:{get(){return ct(this.flags)}}}),Object.defineProperties(Ol.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const xr=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${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",wi=this.flags&524288?this.objectFlags&-1344:0;return`${xr}${this.symbol?` '${xc(this.symbol)}'`:""}${wi?` (${Ge(wi)})`:""}`}},__debugFlags:{get(){return pe(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ge(this.objectFlags):""}},__debugTypeToString:{value(){let xr=Ct.get(this);return xr===void 0&&(xr=this.checker.typeToString(this),Ct.set(this,xr)),xr}}}),Object.defineProperties(Ol.getSignatureConstructor().prototype,{__debugFlags:{get(){return Pe(this.flags)}},__debugSignatureToString:{value(){var xr;return(xr=this.checker)==null?void 0:xr.signatureToString(this)}}});const In=[Ol.getNodeConstructor(),Ol.getIdentifierConstructor(),Ol.getTokenConstructor(),Ol.getSourceFileConstructor()];for(const xr of In)lo(xr.prototype,"__debugKind")||Object.defineProperties(xr.prototype,{__tsDebuggerDisplay:{value(){return`${jo(this)?"GeneratedIdentifier":we(this)?`Identifier '${lr(this)}'`:Ei(this)?`PrivateIdentifier '${lr(this)}'`:pa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ou(this)?`NumericLiteral ${this.text}`:uF(this)?`BigIntLiteral ${this.text}n`:Ho(this)?"TypeParameterDeclaration":ns(this)?"ParameterDeclaration":wc(this)?"ConstructorDeclaration":gf(this)?"GetAccessorDeclaration":Fu(this)?"SetAccessorDeclaration":$6(this)?"CallSignatureDeclaration":rA(this)?"ConstructSignatureDeclaration":Xb(this)?"IndexSignatureDeclaration":mF(this)?"TypePredicateNode":sp(this)?"TypeReferenceNode":sg(this)?"FunctionTypeNode":e8(this)?"ConstructorTypeNode":X6(this)?"TypeQueryNode":ef(this)?"TypeLiteralNode":XH(this)?"ArrayTypeNode":Q6(this)?"TupleTypeNode":QH(this)?"OptionalTypeNode":YH(this)?"RestTypeNode":aS(this)?"UnionTypeNode":iA(this)?"IntersectionTypeNode":Y6(this)?"ConditionalTypeNode":oS(this)?"InferTypeNode":cS(this)?"ParenthesizedTypeNode":gF(this)?"ThisTypeNode":lS(this)?"TypeOperatorNode":_S(this)?"IndexedAccessTypeNode":n8(this)?"MappedTypeNode":wy(this)?"LiteralTypeNode":t8(this)?"NamedTupleMember":ag(this)?"ImportTypeNode":Ne(this.kind)}${this.flags?` (${ve(this.flags)})`:""}`}},__debugKind:{get(){return Ne(this.kind)}},__debugNodeFlags:{get(){return ve(this.flags)}},__debugModifierFlags:{get(){return be(R_e(this))}},__debugTransformFlags:{get(){return xe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return VC(this)}},__debugEmitFlags:{get(){return rt(ma(this))}},__debugGetText:{value(wi){if(Do(this))return"";let Zt=cn.get(this);if(Zt===void 0){const Gt=es(this),xn=Gt&&Bn(Gt);Zt=xn?Xv(xn,Gt,wi):"",cn.set(this,Zt)}return Zt}}});It=!0}e.enableDebugInfo=fi;function Si(Ct){const cn=Ct&7;let In=cn===0?"in out":cn===3?"[bivariant]":cn===2?"in":cn===1?"out":cn===4?"[independent]":"";return Ct&8?In+=" (unmeasurable)":Ct&16&&(In+=" (unreliable)"),In}e.formatVariance=Si;class Nr{__debugToString(){var cn;switch(this.kind){case 3:return((cn=this.debugInfo)==null?void 0:cn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Zz(this.sources,this.targets||an(this.sources,()=>"any"),(In,xr)=>`${In.__debugTypeToString()} -> ${typeof xr=="string"?xr:xr.__debugTypeToString()}`).join(", ");case 2:return Zz(this.sources,this.targets,(In,xr)=>`${In.__debugTypeToString()} -> ${xr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +***************************************************************************** */(function(EC){var oI=(()=>{var D7=Object.defineProperty,hx=Object.getOwnPropertyNames,Rt=(e,t)=>function(){return e&&(t=(0,e[hx(e)[0]])(e=0)),t},A7=(e,t)=>function(){return t||(0,e[hx(e)[0]])((t={exports:{}}).exports,t),t.exports},C_=(e,t)=>{for(var r in t)D7(e,r,{get:t[r],enumerable:!0})},wC,L0,Zz,X7e=Rt({"src/compiler/corePublic.ts"(){wC="5.3",L0=`${wC}.0-dev.20230808`,Zz=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Zz||{})}});function Nn(e){return e?e.length:0}function pn(e,t){if(e)for(let r=0;r=0;r--){const i=t(e[r],r);if(i)return i}}function cc(e,t){if(e!==void 0)for(let r=0;r=0;i--){const a=e[i];if(t(a,i))return a}}function qc(e,t,r){if(e===void 0)return-1;for(let i=r!=null?r:0;i=0;i--)if(t(e[i],i))return i;return-1}function Y7e(e,t){for(let r=0;rr(i,t[a]))}function Zae(e,t,r){for(let i=r||0;i{const o=t(a,i);if(o!==void 0){const[l,u]=o;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function F7(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function Rv(e,t){return e.has(t)?!1:(e.add(t),!0)}function*K7e(e){yield e}function sV(e,t,r){let i;if(e){i=[];const a=e.length;let o,l,u=0,f=0;for(;u{const[o,l]=t(a,i);r.set(o,l)}),r}function dt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function aV(e,t,r){let i;for(let a=0;ae[l])}function nwe(e,t){const r=[];for(const i of e)$f(r,i,t);return r}function Uk(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?twe(e,t,r):nwe(e,t)}function rwe(e,t){if(e.length===0)return Ve;let r=e[0];const i=[r];for(let a=1;a0&&(a&=-2),a&2&&i(o,f)>0&&(a&=-3),o=f}return a}function Cd(e,t,r=ly){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&E.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);t:for(const l=a;al&&E.assertGreaterThanOrEqual(r(e[a],e[a-1]),0),r(t[o],e[a])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function dn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Wk(e,t){return e===void 0?t:t===void 0?e:Ds(e)?Ds(t)?es(e,t):dn(e,t):Ds(t)?dn(t,e):[e,t]}function cV(e,t){return t<0?e.length+t:t}function Fr(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:cV(t,r),i=i===void 0?t.length:cV(t,i);for(let a=r;ar(e[i],e[a])||Co(i,a))}function DC(e,t){return e.length===0?e:e.slice().sort(t)}function*iwe(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function R0(e,t){const r=L7(e);return roe(e,r,t),r.map(i=>e[i])}function lV(e,t,r,i){for(;r>1),f=r(e[u],u);switch(i(f,t)){case-1:o=u+1;break;case 0:return u;case 1:l=u-1;break}}return~o}function E_(e,t,r,i,a){if(e&&e.length>0){const o=e.length;if(o>0){let l=i===void 0||i<0?0:i;const u=a===void 0||l+a>o-1?o-1:l+a;let f;for(arguments.length<=2?(f=e[l],l++):f=r;l<=u;)f=t(f,e[l],l),l++;return f}}return r}function oo(e,t){return z0.call(e,t)}function B7(e,t){return z0.call(e,t)?e[t]:void 0}function Jg(e){const t=[];for(const r in e)z0.call(e,r)&&t.push(r);return t}function swe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)$f(t,i)}while(e=Object.getPrototypeOf(e));return t}function bx(e){const t=[];for(const r in e)z0.call(e,r)&&t.push(e[r]);return t}function soe(e,t){const r=new Array(e);for(let i=0;i100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:a,dequeue:o,isEmpty:i}}function cwe(e,t){const r=new Map;let i=0;function*a(){for(const l of r.values())Ds(l)?yield*l:yield l}const o={has(l){const u=e(l);if(!r.has(u))return!1;const f=r.get(u);if(!Ds(f))return t(f,l);for(const g of f)if(t(g,l))return!0;return!1},add(l){const u=e(l);if(r.has(u)){const f=r.get(u);if(Ds(f))ys(f,l,t)||(f.push(l),i++);else{const g=f;t(g,l)||(r.set(u,[g,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const f=r.get(u);if(Ds(f)){for(let g=0;ga(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return o}function Ds(e){return Array.isArray(e)}function z7(e){return Ds(e)?e:[e]}function Gs(e){return typeof e=="string"}function B0(e){return typeof e=="number"}function Hr(e,t){return e!==void 0&&t(e)?e:void 0}function Bs(e,t){return e!==void 0&&t(e)?e:E.fail(`Invalid cast. The supplied value ${e} did not pass the test '${E.getFunctionName(t)}'.`)}function co(e){}function j0(){return!1}function oy(){return!0}function cy(){}function Zo(e){return e}function loe(e){return e.toLowerCase()}function Zp(e){return TV.test(e)?e.replace(TV,loe):e}function ks(){throw new Error("Not implemented")}function wu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function lm(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let a=t.get(i);return a===void 0&&!t.has(i)&&(a=e(r),t.set(i,a)),a}}function lwe(e){const t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function _oe(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function _we(e,t,r,i,a){if(a){const o=[];for(let l=0;lE_(o,(u,f)=>f(u),l)}else return i?o=>i(r(t(e(o)))):r?o=>r(t(e(o))):t?o=>t(e(o)):e?o=>e(o):o=>o}function ly(e,t){return e===t}function Tx(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function xx(e,t){return ly(e,t)}function uoe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function pI(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function foe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function w_(e,t){return uoe(e,t)}function dI(e){return e?pI:w_}function poe(){return TI}function doe(e){TI!==e&&(TI=e,SV=void 0)}function V7(e,t){return(SV||(SV=Coe(TI)))(e,t)}function moe(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function jv(e,t){return Co(e?1:0,t?1:0)}function NC(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let a=Math.floor(e.length*.4)+1,o;for(const l of t){const u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const f=uwe(e,u,a-.1);if(f===void 0)continue;E.assert(fr?u-r:1),m=Math.floor(t.length>r+u?r+u:t.length);a[0]=u;let y=u;for(let k=1;kr)return;const x=i;i=a,a=x}const l=i[t.length];return l>r?void 0:l}function vc(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function qk(e,t){return vc(e,t)?e.slice(0,e.length-t.length):e}function goe(e,t){return vc(e,t)?e.slice(0,e.length-t.length):void 0}function Xl(e,t){return e.indexOf(t)!==-1}function hoe(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function mI(e,t){for(let r=0;rr===t)}function fwe(e,t){for(let r=0;ra&&(a=l.prefix.length,i=o)}return i}function ns(e,t){return e.lastIndexOf(t,0)===0}function IC(e,t){return ns(e,t)?e.substr(t.length):e}function yV(e,t,r=Zo){return ns(r(e),r(t))?e.substring(t.length):void 0}function gI({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&ns(r,e)&&vc(r,t)}function hI(e,t){return r=>e(r)&&t(r)}function Kp(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function yI(e){return(...t)=>!e(...t)}function pwe(e){}function Cb(e){return e===void 0?void 0:[e]}function boe(e,t,r,i,a,o){o=o||co;let l=0,u=0;const f=e.length,g=t.length;let m=!1;for(;l=0&&Gm(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function vV(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&!0}var Ve,bI,koe,bV,J0,z0,TV,xV,Coe,SV,TI,Jv,Sx,OC,gwe=Rt({"src/compiler/core.ts"(){Ls(),Ve=[],bI=new Map,koe=new Set,bV=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(bV||{}),J0=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=cV(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(xV||{}),Coe=(()=>{let e,t;const r=u();return f;function i(g,m,y){if(g===m)return 0;if(g===void 0)return-1;if(m===void 0)return 1;const x=y(g,m);return x<0?-1:x>0?1:0}function a(g){const m=new Intl.Collator(g,{usage:"sort",sensitivity:"variant"}).compare;return(y,x)=>i(y,x,m)}function o(g){if(g!==void 0)return l();return(y,x)=>i(y,x,m);function m(y,x){return y.localeCompare(x)}}function l(){return(y,x)=>i(y,x,g);function g(y,x){return m(y.toUpperCase(),x.toUpperCase())||m(y,x)}function m(y,x){return yx?1:0}}function u(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?a:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?o:l}function f(g){return g===void 0?e||(e=r(g)):g==="en-US"?t||(t=r(g)):r(g)}})(),Jv=String.prototype.trim?e=>e.trim():e=>Sx(OC(e)),Sx=String.prototype.trimEnd?e=>e.trimEnd():mwe,OC=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),kV,E,hwe=Rt({"src/compiler/debug.ts"(){Ls(),Ls(),kV=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(kV||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Ct){return e.currentLogLevel<=Ct}e.shouldLog=r;function i(Ct,cn){e.loggingHost&&r(Ct)&&e.loggingHost.log(Ct,cn)}function a(Ct){i(3,Ct)}e.log=a,(Ct=>{function cn(Yt){i(1,Yt)}Ct.error=cn;function Pn(Yt){i(2,Yt)}Ct.warn=Pn;function Sr(Yt){i(3,Yt)}Ct.log=Sr;function wi(Yt){i(4,Yt)}Ct.trace=wi})(a=e.log||(e.log={}));const o={};function l(){return t}e.getAssertionLevel=l;function u(Ct){const cn=t;if(t=Ct,Ct>cn)for(const Pn of Jg(o)){const Sr=o[Pn];Sr!==void 0&&e[Pn]!==Sr.assertion&&Ct>=Sr.level&&(e[Pn]=Sr,o[Pn]=void 0)}}e.setAssertionLevel=u;function f(Ct){return t>=Ct}e.shouldAssert=f;function g(Ct,cn){return f(Ct)?!0:(o[cn]={level:Ct,assertion:e[cn]},e[cn]=co,!1)}function m(Ct,cn){debugger;const Pn=new Error(Ct?`Debug Failure. ${Ct}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Pn,cn||m),Pn}e.fail=m;function y(Ct,cn,Pn){return m(`${cn||"Unexpected node."}\r +Node ${Ne(Ct.kind)} was unexpected.`,Pn||y)}e.failBadSyntaxKind=y;function x(Ct,cn,Pn,Sr){Ct||(cn=cn?`False expression: ${cn}`:"False expression.",Pn&&(cn+=`\r +Verbose Debug Information: `+(typeof Pn=="string"?Pn:Pn())),m(cn,Sr||x))}e.assert=x;function k(Ct,cn,Pn,Sr,wi){if(Ct!==cn){const Yt=Pn?Sr?`${Pn} ${Sr}`:Pn:"";m(`Expected ${Ct} === ${cn}. ${Yt}`,wi||k)}}e.assertEqual=k;function C(Ct,cn,Pn,Sr){Ct>=cn&&m(`Expected ${Ct} < ${cn}. ${Pn||""}`,Sr||C)}e.assertLessThan=C;function N(Ct,cn,Pn){Ct>cn&&m(`Expected ${Ct} <= ${cn}`,Pn||N)}e.assertLessThanOrEqual=N;function D(Ct,cn,Pn){Ct= ${cn}`,Pn||D)}e.assertGreaterThanOrEqual=D;function M(Ct,cn,Pn){Ct==null&&m(cn,Pn||M)}e.assertIsDefined=M;function V(Ct,cn,Pn){return M(Ct,cn,Pn||V),Ct}e.checkDefined=V;function U(Ct,cn,Pn){for(const Sr of Ct)M(Sr,cn,Pn||U)}e.assertEachIsDefined=U;function Y(Ct,cn,Pn){return U(Ct,cn,Pn||Y),Ct}e.checkEachDefined=Y;function j(Ct,cn="Illegal value:",Pn){const Sr=typeof Ct=="object"&&oo(Ct,"kind")&&oo(Ct,"pos")?"SyntaxKind: "+Ne(Ct.kind):JSON.stringify(Ct);return m(`${cn} ${Sr}`,Pn||j)}e.assertNever=j;function ee(Ct,cn,Pn,Sr){g(1,"assertEachNode")&&x(cn===void 0||Xi(Ct,cn),Pn||"Unexpected node.",()=>`Node array did not pass test '${Q(cn)}'.`,Sr||ee)}e.assertEachNode=ee;function R(Ct,cn,Pn,Sr){g(1,"assertNode")&&x(Ct!==void 0&&(cn===void 0||cn(Ct)),Pn||"Unexpected node.",()=>`Node ${Ne(Ct==null?void 0:Ct.kind)} did not pass test '${Q(cn)}'.`,Sr||R)}e.assertNode=R;function Z(Ct,cn,Pn,Sr){g(1,"assertNotNode")&&x(Ct===void 0||cn===void 0||!cn(Ct),Pn||"Unexpected node.",()=>`Node ${Ne(Ct.kind)} should not have passed test '${Q(cn)}'.`,Sr||Z)}e.assertNotNode=Z;function oe(Ct,cn,Pn,Sr){g(1,"assertOptionalNode")&&x(cn===void 0||Ct===void 0||cn(Ct),Pn||"Unexpected node.",()=>`Node ${Ne(Ct==null?void 0:Ct.kind)} did not pass test '${Q(cn)}'.`,Sr||oe)}e.assertOptionalNode=oe;function _e(Ct,cn,Pn,Sr){g(1,"assertOptionalToken")&&x(cn===void 0||Ct===void 0||Ct.kind===cn,Pn||"Unexpected node.",()=>`Node ${Ne(Ct==null?void 0:Ct.kind)} was not a '${Ne(cn)}' token.`,Sr||_e)}e.assertOptionalToken=_e;function X(Ct,cn,Pn){g(1,"assertMissingNode")&&x(Ct===void 0,cn||"Unexpected node.",()=>`Node ${Ne(Ct.kind)} was unexpected'.`,Pn||X)}e.assertMissingNode=X;function H(Ct){}e.type=H;function Q(Ct){if(typeof Ct!="function")return"";if(oo(Ct,"name"))return Ct.name;{const cn=Function.prototype.toString.call(Ct),Pn=/^function\s+([\w$]+)\s*\(/.exec(cn);return Pn?Pn[1]:""}}e.getFunctionName=Q;function ne(Ct){return`{ name: ${Oi(Ct.escapedName)}; flags: ${ct(Ct.flags)}; declarations: ${an(Ct.declarations,cn=>Ne(cn.kind))} }`}e.formatSymbol=ne;function ue(Ct=0,cn,Pn){const Sr=G(cn);if(Ct===0)return Sr.length>0&&Sr[0][0]===0?Sr[0][1]:"0";if(Pn){const wi=[];let Yt=Ct;for(const[Gt,Sn]of Sr){if(Gt>Ct)break;Gt!==0&&Gt&Ct&&(wi.push(Sn),Yt&=~Gt)}if(Yt===0)return wi.join("|")}else for(const[wi,Yt]of Sr)if(wi===Ct)return Yt;return Ct.toString()}e.formatEnum=ue;const fe=new Map;function G(Ct){const cn=fe.get(Ct);if(cn)return cn;const Pn=[];for(const wi in Ct){const Yt=Ct[wi];typeof Yt=="number"&&Pn.push([Yt,wi])}const Sr=R0(Pn,(wi,Yt)=>Co(wi[0],Yt[0]));return fe.set(Ct,Sr),Sr}function Ne(Ct){return ue(Ct,wI,!1)}e.formatSyntaxKind=Ne;function De(Ct){return ue(Ct,jI,!1)}e.formatSnippetKind=De;function Xe(Ct){return ue(Ct,RI,!1)}e.formatScriptKind=Xe;function ve(Ct){return ue(Ct,DI,!0)}e.formatNodeFlags=ve;function be(Ct){return ue(Ct,AI,!0)}e.formatModifierFlags=be;function xe(Ct){return ue(Ct,BI,!0)}e.formatTransformFlags=xe;function rt(Ct){return ue(Ct,JI,!0)}e.formatEmitFlags=rt;function ct(Ct){return ue(Ct,OI,!0)}e.formatSymbolFlags=ct;function pe(Ct){return ue(Ct,FI,!0)}e.formatTypeFlags=pe;function Pe(Ct){return ue(Ct,MI,!0)}e.formatSignatureFlags=Pe;function Ge(Ct){return ue(Ct,LI,!0)}e.formatObjectFlags=Ge;function tt(Ct){return ue(Ct,H7,!0)}e.formatFlowFlags=tt;function mt(Ct){return ue(Ct,NI,!0)}e.formatRelationComparisonResult=mt;function Je(Ct){return ue(Ct,bL,!0)}e.formatCheckMode=Je;function ot(Ct){return ue(Ct,TL,!0)}e.formatSignatureCheckMode=ot;function Jt(Ct){return ue(Ct,yL,!0)}e.formatTypeFacts=Jt;let Pt=!1,bt;function _r(Ct){"__debugFlowFlags"in Ct||Object.defineProperties(Ct,{__tsDebuggerDisplay:{value(){const cn=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",Pn=this.flags&~(2048-1);return`${cn}${Pn?` (${tt(Pn)})`:""}`}},__debugFlowFlags:{get(){return ue(this.flags,H7,!0)}},__debugToString:{value(){return hn(this)}}})}function xn(Ct){Pt&&(typeof Object.setPrototypeOf=="function"?(bt||(bt=Object.create(Object.prototype),_r(bt)),Object.setPrototypeOf(Ct,bt)):_r(Ct))}e.attachFlowNodeDebugInfo=xn;let Bt;function er(Ct){"__tsDebuggerDisplay"in Ct||Object.defineProperties(Ct,{__tsDebuggerDisplay:{value(cn){return cn=String(cn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${cn}`}}})}function xr(Ct){Pt&&(typeof Object.setPrototypeOf=="function"?(Bt||(Bt=Object.create(Array.prototype),er(Bt)),Object.setPrototypeOf(Ct,Bt)):er(Ct))}e.attachNodeArrayDebugInfo=xr;function pi(){if(Pt)return;const Ct=new WeakMap,cn=new WeakMap;Object.defineProperties(Ol.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const Sr=this.flags&33554432?"TransientSymbol":"Symbol",wi=this.flags&-33554433;return`${Sr} '${bc(this)}'${wi?` (${ct(wi)})`:""}`}},__debugFlags:{get(){return ct(this.flags)}}}),Object.defineProperties(Ol.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const Sr=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${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",wi=this.flags&524288?this.objectFlags&-1344:0;return`${Sr}${this.symbol?` '${bc(this.symbol)}'`:""}${wi?` (${Ge(wi)})`:""}`}},__debugFlags:{get(){return pe(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ge(this.objectFlags):""}},__debugTypeToString:{value(){let Sr=Ct.get(this);return Sr===void 0&&(Sr=this.checker.typeToString(this),Ct.set(this,Sr)),Sr}}}),Object.defineProperties(Ol.getSignatureConstructor().prototype,{__debugFlags:{get(){return Pe(this.flags)}},__debugSignatureToString:{value(){var Sr;return(Sr=this.checker)==null?void 0:Sr.signatureToString(this)}}});const Pn=[Ol.getNodeConstructor(),Ol.getIdentifierConstructor(),Ol.getTokenConstructor(),Ol.getSourceFileConstructor()];for(const Sr of Pn)oo(Sr.prototype,"__debugKind")||Object.defineProperties(Sr.prototype,{__tsDebuggerDisplay:{value(){return`${Jo(this)?"GeneratedIdentifier":we(this)?`Identifier '${lr(this)}'`:Ei(this)?`PrivateIdentifier '${lr(this)}'`:fa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ou(this)?`NumericLiteral ${this.text}`:uF(this)?`BigIntLiteral ${this.text}n`:Go(this)?"TypeParameterDeclaration":rs(this)?"ParameterDeclaration":Cc(this)?"ConstructorDeclaration":gf(this)?"GetAccessorDeclaration":Fu(this)?"SetAccessorDeclaration":X6(this)?"CallSignatureDeclaration":iA(this)?"ConstructSignatureDeclaration":Zb(this)?"IndexSignatureDeclaration":mF(this)?"TypePredicateNode":ap(this)?"TypeReferenceNode":og(this)?"FunctionTypeNode":n8(this)?"ConstructorTypeNode":Q6(this)?"TypeQueryNode":ef(this)?"TypeLiteralNode":QH(this)?"ArrayTypeNode":Y6(this)?"TupleTypeNode":YH(this)?"OptionalTypeNode":ZH(this)?"RestTypeNode":cS(this)?"UnionTypeNode":sA(this)?"IntersectionTypeNode":Z6(this)?"ConditionalTypeNode":lS(this)?"InferTypeNode":_S(this)?"ParenthesizedTypeNode":gF(this)?"ThisTypeNode":uS(this)?"TypeOperatorNode":fS(this)?"IndexedAccessTypeNode":i8(this)?"MappedTypeNode":Ay(this)?"LiteralTypeNode":r8(this)?"NamedTupleMember":cg(this)?"ImportTypeNode":Ne(this.kind)}${this.flags?` (${ve(this.flags)})`:""}`}},__debugKind:{get(){return Ne(this.kind)}},__debugNodeFlags:{get(){return ve(this.flags)}},__debugModifierFlags:{get(){return be(R_e(this))}},__debugTransformFlags:{get(){return xe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return WC(this)}},__debugEmitFlags:{get(){return rt(ma(this))}},__debugGetText:{value(wi){if(Do(this))return"";let Yt=cn.get(this);if(Yt===void 0){const Gt=ts(this),Sn=Gt&&Rn(Gt);Yt=Sn?Yv(Sn,Gt,wi):"",cn.set(this,Yt)}return Yt}}});Pt=!0}e.enableDebugInfo=pi;function ki(Ct){const cn=Ct&7;let Pn=cn===0?"in out":cn===3?"[bivariant]":cn===2?"in":cn===1?"out":cn===4?"[independent]":"";return Ct&8?Pn+=" (unmeasurable)":Ct&16&&(Pn+=" (unreliable)"),Pn}e.formatVariance=ki;class Nr{__debugToString(){var cn;switch(this.kind){case 3:return((cn=this.debugInfo)==null?void 0:cn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Kz(this.sources,this.targets||an(this.sources,()=>"any"),(Pn,Sr)=>`${Pn.__debugTypeToString()} -> ${typeof Sr=="string"?Sr:Sr.__debugTypeToString()}`).join(", ");case 2:return Kz(this.sources,this.targets,(Pn,Sr)=>`${Pn.__debugTypeToString()} -> ${Sr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return j(this)}}}e.DebugTypeMapper=Nr;function pt(Ct){return e.isDebugging?Object.setPrototypeOf(Ct,Nr.prototype):Ct}e.attachDebugPrototypeIfDebug=pt;function ur(Ct){return console.log(yn(Ct))}e.printControlFlowGraph=ur;function yn(Ct){let cn=-1;function In(W){return W.id||(W.id=cn,cn--),W.id}let xr;(W=>{W.lr="\u2500",W.ud="\u2502",W.dr="\u256D",W.dl="\u256E",W.ul="\u256F",W.ur="\u2570",W.udr="\u251C",W.udl="\u2524",W.dlr="\u252C",W.ulr="\u2534",W.udlr="\u256B"})(xr||(xr={}));let wi;(W=>{W[W.None=0]="None",W[W.Up=1]="Up",W[W.Down=2]="Down",W[W.Left=4]="Left",W[W.Right=8]="Right",W[W.UpDown=3]="UpDown",W[W.LeftRight=12]="LeftRight",W[W.UpLeft=5]="UpLeft",W[W.UpRight=9]="UpRight",W[W.DownLeft=6]="DownLeft",W[W.DownRight=10]="DownRight",W[W.UpDownLeft=7]="UpDownLeft",W[W.UpDownRight=11]="UpDownRight",W[W.UpLeftRight=13]="UpLeftRight",W[W.DownLeftRight=14]="DownLeftRight",W[W.UpDownLeftRight=15]="UpDownLeftRight",W[W.NoChildren=16]="NoChildren"})(wi||(wi={}));const Zt=2032,Gt=882,xn=Object.create(null),Gr=[],Er=ft(Ct,new Set);for(const W of Gr)W.text=Pt(W.flowNode,W.circular),$e(W);const ze=Ae(Er),ut=yt(ze);return _t(Er,0),hi();function kt(W){return!!(W.flags&128)}function st(W){return!!(W.flags&12)&&!!W.antecedents}function Ut(W){return!!(W.flags&Zt)}function ae(W){return!!(W.flags&Gt)}function Me(W){const ge=[];for(const F of W.edges)F.source===W&&ge.push(F.target);return ge}function ke(W){const ge=[];for(const F of W.edges)F.target===W&&ge.push(F.source);return ge}function ft(W,ge){const F=In(W);let ye=xn[F];if(ye&&ge.has(W))return ye.circular=!0,ye={id:-1,flowNode:W,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Gr.push(ye),ye;if(ge.add(W),!ye)if(xn[F]=ye={id:F,flowNode:W,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Gr.push(ye),st(W))for(const Oe of W.antecedents)K(ye,Oe,ge);else Ut(W)&&K(ye,W.antecedent,ge);return ge.delete(W),ye}function K(W,ge,F){const ye=ft(ge,F),Oe={source:W,target:ye};W.edges.push(Oe),ye.edges.push(Oe)}function $e(W){if(W.level!==-1)return W.level;let ge=0;for(const F of ke(W))ge=Math.max(ge,$e(F)+1);return W.level=ge}function Ae(W){let ge=0;for(const F of Me(W))ge=Math.max(ge,Ae(F));return ge+1}function yt(W){const ge=B(Array(W),0);for(const F of Gr)ge[F.level]=Math.max(ge[F.level],F.text.length);return ge}function _t(W,ge){if(W.lane===-1){W.lane=ge,W.endLane=ge;const F=Me(W);for(let ye=0;ye0&&ge++;const Oe=F[ye];_t(Oe,ge),Oe.endLane>W.endLane&&(ge=Oe.endLane)}W.endLane=ge}}function Jt(W){if(W&2)return"Start";if(W&4)return"Branch";if(W&8)return"Loop";if(W&16)return"Assignment";if(W&32)return"True";if(W&64)return"False";if(W&128)return"SwitchClause";if(W&256)return"ArrayMutation";if(W&512)return"Call";if(W&1024)return"ReduceLabel";if(W&1)return"Unreachable";throw new Error}function Ln(W){const ge=Bn(W);return Xv(ge,W,!1)}function Pt(W,ge){let F=Jt(W.flags);if(ge&&(F=`${F}#${In(W)}`),ae(W))W.node&&(F+=` (${Ln(W.node)})`);else if(kt(W)){const ye=[];for(let Oe=W.clauseStart;OeMath.max(Tt,Ot.lane),0)+1,F=B(Array(ge),""),ye=ut.map(()=>Array(ge)),Oe=ut.map(()=>B(Array(ge),0));for(const Tt of Gr){ye[Tt.level][Tt.lane]=Tt;const Ot=Me(Tt);for(let Sn=0;Sn0&&(ar|=1),Sn0&&(ar|=1),Sn0?Oe[Tt-1][Ot]:0,Sn=Ot>0?Oe[Tt][Ot-1]:0;let ir=Oe[Tt][Ot];ir||(on&8&&(ir|=12),Sn&2&&(ir|=3),Oe[Tt][Ot]=ir)}for(let Tt=0;Tt{W.lr="\u2500",W.ud="\u2502",W.dr="\u256D",W.dl="\u256E",W.ul="\u256F",W.ur="\u2570",W.udr="\u251C",W.udl="\u2524",W.dlr="\u252C",W.ulr="\u2534",W.udlr="\u256B"})(Sr||(Sr={}));let wi;(W=>{W[W.None=0]="None",W[W.Up=1]="Up",W[W.Down=2]="Down",W[W.Left=4]="Left",W[W.Right=8]="Right",W[W.UpDown=3]="UpDown",W[W.LeftRight=12]="LeftRight",W[W.UpLeft=5]="UpLeft",W[W.UpRight=9]="UpRight",W[W.DownLeft=6]="DownLeft",W[W.DownRight=10]="DownRight",W[W.UpDownLeft=7]="UpDownLeft",W[W.UpDownRight=11]="UpDownRight",W[W.UpLeftRight=13]="UpLeftRight",W[W.DownLeftRight=14]="DownLeftRight",W[W.UpDownLeftRight=15]="UpDownLeftRight",W[W.NoChildren=16]="NoChildren"})(wi||(wi={}));const Yt=2032,Gt=882,Sn=Object.create(null),Gr=[],Er=ft(Ct,new Set);for(const W of Gr)W.text=Nt(W.flowNode,W.circular),$e(W);const ze=Ae(Er),ut=ht(ze);return _t(Er,0),hi();function kt(W){return!!(W.flags&128)}function it(W){return!!(W.flags&12)&&!!W.antecedents}function Vt(W){return!!(W.flags&Yt)}function ae(W){return!!(W.flags&Gt)}function Me(W){const ge=[];for(const F of W.edges)F.source===W&&ge.push(F.target);return ge}function ke(W){const ge=[];for(const F of W.edges)F.target===W&&ge.push(F.source);return ge}function ft(W,ge){const F=Pn(W);let ye=Sn[F];if(ye&&ge.has(W))return ye.circular=!0,ye={id:-1,flowNode:W,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Gr.push(ye),ye;if(ge.add(W),!ye)if(Sn[F]=ye={id:F,flowNode:W,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Gr.push(ye),it(W))for(const Oe of W.antecedents)K(ye,Oe,ge);else Vt(W)&&K(ye,W.antecedent,ge);return ge.delete(W),ye}function K(W,ge,F){const ye=ft(ge,F),Oe={source:W,target:ye};W.edges.push(Oe),ye.edges.push(Oe)}function $e(W){if(W.level!==-1)return W.level;let ge=0;for(const F of ke(W))ge=Math.max(ge,$e(F)+1);return W.level=ge}function Ae(W){let ge=0;for(const F of Me(W))ge=Math.max(ge,Ae(F));return ge+1}function ht(W){const ge=B(Array(W),0);for(const F of Gr)ge[F.level]=Math.max(ge[F.level],F.text.length);return ge}function _t(W,ge){if(W.lane===-1){W.lane=ge,W.endLane=ge;const F=Me(W);for(let ye=0;ye0&&ge++;const Oe=F[ye];_t(Oe,ge),Oe.endLane>W.endLane&&(ge=Oe.endLane)}W.endLane=ge}}function jt(W){if(W&2)return"Start";if(W&4)return"Branch";if(W&8)return"Loop";if(W&16)return"Assignment";if(W&32)return"True";if(W&64)return"False";if(W&128)return"SwitchClause";if(W&256)return"ArrayMutation";if(W&512)return"Call";if(W&1024)return"ReduceLabel";if(W&1)return"Unreachable";throw new Error}function Fn(W){const ge=Rn(W);return Yv(ge,W,!1)}function Nt(W,ge){let F=jt(W.flags);if(ge&&(F=`${F}#${Pn(W)}`),ae(W))W.node&&(F+=` (${Fn(W.node)})`);else if(kt(W)){const ye=[];for(let Oe=W.clauseStart;OeMath.max(Tt,It.lane),0)+1,F=B(Array(ge),""),ye=ut.map(()=>Array(ge)),Oe=ut.map(()=>B(Array(ge),0));for(const Tt of Gr){ye[Tt.level][Tt.lane]=Tt;const It=Me(Tt);for(let kn=0;kn0&&(ar|=1),kn0&&(ar|=1),kn0?Oe[Tt-1][It]:0,kn=It>0?Oe[Tt][It-1]:0;let ir=Oe[Tt][It];ir||(on&8&&(ir|=12),kn&2&&(ir|=3),Oe[Tt][It]=ir)}for(let Tt=0;Tt0?W.repeat(ge):"";let F="";for(;F.length=",i.version)),Af(a.major)||r.push(Af(a.minor)?Cd("<",a.version.increment("major")):Af(a.patch)?Cd("<",a.version.increment("minor")):Cd("<=",a.version)),!0):!1}function vwe(e,t,r){const i=kV(t);if(!i)return!1;const{version:a,major:o,minor:l,patch:u}=i;if(Af(o))(e==="<"||e===">")&&r.push(Cd("<",Ed.zero));else switch(e){case"~":r.push(Cd(">=",a)),r.push(Cd("<",a.increment(Af(l)?"major":"minor")));break;case"^":r.push(Cd(">=",a)),r.push(Cd("<",a.increment(a.major>0||Af(l)?"major":a.minor>0||Af(u)?"minor":"patch")));break;case"<":case">=":r.push(Af(l)||Af(u)?Cd(e,a.with({prerelease:"0"})):Cd(e,a));break;case"<=":case">":r.push(Af(l)?Cd(e==="<="?"<":">=",a.increment("major").with({prerelease:"0"})):Af(u)?Cd(e==="<="?"<":">=",a.increment("minor").with({prerelease:"0"})):Cd(e,a));break;case"=":case void 0:Af(l)||Af(u)?(r.push(Cd(">=",a.with({prerelease:"0"}))),r.push(Cd("<",a.increment(Af(l)?"major":"minor").with({prerelease:"0"})))):r.push(Cd("=",a));break;default:return!1}return!0}function Af(e){return e==="*"||e==="x"||e==="X"}function Cd(e,t){return{operator:e,operand:t}}function bwe(e,t){if(t.length===0)return!0;for(const r of t)if(Twe(e,r))return!0;return!1}function Twe(e,t){for(const r of t)if(!xwe(e,r.operator,r.operand))return!1;return!0}function xwe(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return E.assertNever(t)}}function Swe(e){return an(e,kwe).join(" || ")||"*"}function kwe(e){return an(e,Cwe).join(" ")}function Cwe(e){return`${e.operator}${e.operand}`}var Doe,Aoe,Noe,Poe,Ioe,CV,xI,Ed,V7,Ooe,Foe,Loe,Moe,Roe,Ewe=Bt({"src/compiler/semver.ts"(){Os(),Doe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Aoe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Noe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Poe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Ioe=/^[a-z0-9-]+$/i,CV=/^(0|[1-9]\d*)$/,xI=class E7{constructor(t,r=0,i=0,a="",o=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:a,build:o}=E.checkDefined(Eoe(t),"Invalid version")),E.assert(t>=0,"Invalid argument: major"),E.assert(r>=0,"Invalid argument: minor"),E.assert(i>=0,"Invalid argument: patch");const l=a?Ds(a)?a:a.split("."):Ve,u=o?Ds(o)?o:o.split("."):Ve;E.assert($i(l,f=>Noe.test(f)),"Invalid argument: prerelease"),E.assert($i(u,f=>Ioe.test(f)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=Eoe(t);if(!r)return;const{major:i,minor:a,patch:o,prerelease:l,build:u}=r;return new E7(i,a,o,l,u)}compareTo(t){return this===t?0:t===void 0?1:Co(this.major,t.major)||Co(this.minor,t.minor)||Co(this.patch,t.patch)||hwe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new E7(this.major+1,0,0);case"minor":return new E7(this.major,this.minor+1,0);case"patch":return new E7(this.major,this.minor,this.patch+1);default:return E.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:a=this.patch,prerelease:o=this.prerelease,build:l=this.build}=t;return new E7(r,i,a,o,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return dt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),dt(this.build)&&(t+=`+${this.build.join(".")}`),t}},xI.zero=new xI(0,0,0,["0"]),Ed=xI,V7=class H7e{constructor(t){this._alternatives=t?E.checkDefined(woe(t),"Invalid range spec."):Ve}static tryParse(t){const r=woe(t);if(r){const i=new H7e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new Ed(t)),bwe(t,this._alternatives)}toString(){return Swe(this._alternatives)}},Ooe=/\|\|/g,Foe=/\s+/g,Loe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Moe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Roe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Boe(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function wwe(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Boe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Dwe(){if(yV())try{const{performance:e,PerformanceObserver:t}=mx;if(Boe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function joe(){return SI}var SI,EV,Uo,Awe=Bt({"src/compiler/performanceCore.ts"(){Os(),SI=wwe()||Dwe(),EV=SI==null?void 0:SI.performance,Uo=EV?()=>EV.now():Date.now?Date.now:()=>+new Date}}),U7,wd,Nwe=Bt({"src/compiler/perfLogger.ts"(){var e;try{const t=(e={}.TS_ETW_MODULE_PATH)!=null?e:"./node_modules/@microsoft/typescript-etw";U7=q7e(t)}catch{U7=void 0}wd=U7!=null&&U7.logEvent?U7:void 0}});function Joe(e,t,r,i){return e?kI(t,r,i):CI}function kI(e,t,r){let i=0;return{enter:a,exit:o};function a(){++i===1&&ho(t)}function o(){--i===0?(ho(r),Gu(e,t,r)):i<0&&E.fail("enter/exit count does not match.")}}function ho(e){var t;if(Sx){const r=(t=Wk.get(e))!=null?t:0;Wk.set(e,r+1),kx.set(e,Uo()),jv==null||jv.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Gu(e,t,r){var i,a;if(Sx){const o=(i=r!==void 0?kx.get(r):void 0)!=null?i:Uo(),l=(a=t!==void 0?kx.get(t):void 0)!=null?a:wV,u=Cx.get(e)||0;Cx.set(e,u+(o-l)),jv==null||jv.measure(e,t,r)}}function Pwe(e){return Wk.get(e)||0}function Iwe(e){return Cx.get(e)||0}function Owe(e){Cx.forEach((t,r)=>e(r,t))}function Fwe(e){kx.forEach((t,r)=>e(r))}function Lwe(e){e!==void 0?Cx.delete(e):Cx.clear(),jv==null||jv.clearMeasures(e)}function Mwe(e){e!==void 0?(Wk.delete(e),kx.delete(e)):(Wk.clear(),kx.clear()),jv==null||jv.clearMarks(e)}function Rwe(){return Sx}function Bwe(e=jl){var t;return Sx||(Sx=!0,IC||(IC=joe()),IC&&(wV=IC.performance.timeOrigin,(IC.shouldWriteNativeEvents||((t=e==null?void 0:e.cpuProfilingEnabled)==null?void 0:t.call(e))||(e==null?void 0:e.debugMode))&&(jv=IC.performance))),!0}function jwe(){Sx&&(kx.clear(),Wk.clear(),Cx.clear(),jv=void 0,Sx=!1)}var IC,jv,CI,Sx,wV,kx,Wk,Cx,Jwe=Bt({"src/compiler/performance.ts"(){Os(),CI={enter:_o,exit:_o},Sx=!1,wV=Uo(),kx=new Map,Wk=new Map,Cx=new Map}}),zoe={};C_(zoe,{clearMarks:()=>Mwe,clearMeasures:()=>Lwe,createTimer:()=>kI,createTimerIf:()=>Joe,disable:()=>jwe,enable:()=>Bwe,forEachMark:()=>Fwe,forEachMeasure:()=>Owe,getCount:()=>Pwe,getDuration:()=>Iwe,isEnabled:()=>Rwe,mark:()=>ho,measure:()=>Gu,nullTimer:()=>CI});var Jv=Bt({"src/compiler/_namespaces/ts.performance.ts"(){Jwe()}}),ci,W7,Voe,Uoe,zwe=Bt({"src/compiler/tracing.ts"(){Os(),Jv(),(e=>{let t,r=0,i=0,a;const o=[];let l;const u=[];function f(ee,R,Z){if(E.assert(!ci,"Tracing already started"),t===void 0)try{t=mx}catch(Q){throw new Error(`tracing requires having fs -(original error: ${Q.message||Q})`)}a=ee,o.length=0,l===void 0&&(l=Pi(R,"legend.json")),t.existsSync(R)||t.mkdirSync(R,{recursive:!0});const oe=a==="build"?`.${process.pid}-${++r}`:a==="server"?`.${process.pid}`:"",_e=Pi(R,`trace${oe}.json`),X=Pi(R,`types${oe}.json`);u.push({configFilePath:Z,tracePath:_e,typesPath:X}),i=t.openSync(_e,"w"),ci=e;const H={cat:"__metadata",ph:"M",ts:1e3*Uo(),pid:1,tid:1};t.writeSync(i,`[ +`;function We(Tt,It){F[Tt]+=It}}function z(W){switch(W){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function B(W,ge){if(W.fill)W.fill(ge);else for(let F=0;F0?W.repeat(ge):"";let F="";for(;F.length=",i.version)),Nf(a.major)||r.push(Nf(a.minor)?Ed("<",a.version.increment("major")):Nf(a.patch)?Ed("<",a.version.increment("minor")):Ed("<=",a.version)),!0):!1}function bwe(e,t,r){const i=CV(t);if(!i)return!1;const{version:a,major:o,minor:l,patch:u}=i;if(Nf(o))(e==="<"||e===">")&&r.push(Ed("<",wd.zero));else switch(e){case"~":r.push(Ed(">=",a)),r.push(Ed("<",a.increment(Nf(l)?"major":"minor")));break;case"^":r.push(Ed(">=",a)),r.push(Ed("<",a.increment(a.major>0||Nf(l)?"major":a.minor>0||Nf(u)?"minor":"patch")));break;case"<":case">=":r.push(Nf(l)||Nf(u)?Ed(e,a.with({prerelease:"0"})):Ed(e,a));break;case"<=":case">":r.push(Nf(l)?Ed(e==="<="?"<":">=",a.increment("major").with({prerelease:"0"})):Nf(u)?Ed(e==="<="?"<":">=",a.increment("minor").with({prerelease:"0"})):Ed(e,a));break;case"=":case void 0:Nf(l)||Nf(u)?(r.push(Ed(">=",a.with({prerelease:"0"}))),r.push(Ed("<",a.increment(Nf(l)?"major":"minor").with({prerelease:"0"})))):r.push(Ed("=",a));break;default:return!1}return!0}function Nf(e){return e==="*"||e==="x"||e==="X"}function Ed(e,t){return{operator:e,operand:t}}function Twe(e,t){if(t.length===0)return!0;for(const r of t)if(xwe(e,r))return!0;return!1}function xwe(e,t){for(const r of t)if(!Swe(e,r.operator,r.operand))return!1;return!0}function Swe(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return E.assertNever(t)}}function kwe(e){return an(e,Cwe).join(" || ")||"*"}function Cwe(e){return an(e,Ewe).join(" ")}function Ewe(e){return`${e.operator}${e.operand}`}var Doe,Aoe,Noe,Poe,Ioe,EV,xI,wd,U7,Ooe,Foe,Loe,Moe,Roe,wwe=Rt({"src/compiler/semver.ts"(){Ls(),Doe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Aoe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Noe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Poe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Ioe=/^[a-z0-9-]+$/i,EV=/^(0|[1-9]\d*)$/,xI=class w7{constructor(t,r=0,i=0,a="",o=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:a,build:o}=E.checkDefined(Eoe(t),"Invalid version")),E.assert(t>=0,"Invalid argument: major"),E.assert(r>=0,"Invalid argument: minor"),E.assert(i>=0,"Invalid argument: patch");const l=a?Ds(a)?a:a.split("."):Ve,u=o?Ds(o)?o:o.split("."):Ve;E.assert(Xi(l,f=>Noe.test(f)),"Invalid argument: prerelease"),E.assert(Xi(u,f=>Ioe.test(f)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=Eoe(t);if(!r)return;const{major:i,minor:a,patch:o,prerelease:l,build:u}=r;return new w7(i,a,o,l,u)}compareTo(t){return this===t?0:t===void 0?1:Co(this.major,t.major)||Co(this.minor,t.minor)||Co(this.patch,t.patch)||ywe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new w7(this.major+1,0,0);case"minor":return new w7(this.major,this.minor+1,0);case"patch":return new w7(this.major,this.minor,this.patch+1);default:return E.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:a=this.patch,prerelease:o=this.prerelease,build:l=this.build}=t;return new w7(r,i,a,o,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return dt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),dt(this.build)&&(t+=`+${this.build.join(".")}`),t}},xI.zero=new xI(0,0,0,["0"]),wd=xI,U7=class G7e{constructor(t){this._alternatives=t?E.checkDefined(woe(t),"Invalid range spec."):Ve}static tryParse(t){const r=woe(t);if(r){const i=new G7e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new wd(t)),Twe(t,this._alternatives)}toString(){return kwe(this._alternatives)}},Ooe=/\|\|/g,Foe=/\s+/g,Loe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Moe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Roe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Boe(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function Dwe(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Boe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Awe(){if(vV())try{const{performance:e,PerformanceObserver:t}=gx;if(Boe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function joe(){return SI}var SI,wV,Wo,Nwe=Rt({"src/compiler/performanceCore.ts"(){Ls(),SI=Dwe()||Awe(),wV=SI==null?void 0:SI.performance,Wo=wV?()=>wV.now():Date.now?Date.now:()=>+new Date}}),W7,Dd,Pwe=Rt({"src/compiler/perfLogger.ts"(){var e;try{const t=(e={}.TS_ETW_MODULE_PATH)!=null?e:"./node_modules/@microsoft/typescript-etw";W7=H7e(t)}catch{W7=void 0}Dd=W7!=null&&W7.logEvent?W7:void 0}});function Joe(e,t,r,i){return e?kI(t,r,i):CI}function kI(e,t,r){let i=0;return{enter:a,exit:o};function a(){++i===1&&go(t)}function o(){--i===0?(go(r),Gu(e,t,r)):i<0&&E.fail("enter/exit count does not match.")}}function go(e){var t;if(kx){const r=(t=Hk.get(e))!=null?t:0;Hk.set(e,r+1),Cx.set(e,Wo()),zv==null||zv.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Gu(e,t,r){var i,a;if(kx){const o=(i=r!==void 0?Cx.get(r):void 0)!=null?i:Wo(),l=(a=t!==void 0?Cx.get(t):void 0)!=null?a:DV,u=Ex.get(e)||0;Ex.set(e,u+(o-l)),zv==null||zv.measure(e,t,r)}}function Iwe(e){return Hk.get(e)||0}function Owe(e){return Ex.get(e)||0}function Fwe(e){Ex.forEach((t,r)=>e(r,t))}function Lwe(e){Cx.forEach((t,r)=>e(r))}function Mwe(e){e!==void 0?Ex.delete(e):Ex.clear(),zv==null||zv.clearMeasures(e)}function Rwe(e){e!==void 0?(Hk.delete(e),Cx.delete(e)):(Hk.clear(),Cx.clear()),zv==null||zv.clearMarks(e)}function Bwe(){return kx}function jwe(e=jl){var t;return kx||(kx=!0,FC||(FC=joe()),FC&&(DV=FC.performance.timeOrigin,(FC.shouldWriteNativeEvents||((t=e==null?void 0:e.cpuProfilingEnabled)==null?void 0:t.call(e))||(e==null?void 0:e.debugMode))&&(zv=FC.performance))),!0}function Jwe(){kx&&(Cx.clear(),Hk.clear(),Ex.clear(),zv=void 0,kx=!1)}var FC,zv,CI,kx,DV,Cx,Hk,Ex,zwe=Rt({"src/compiler/performance.ts"(){Ls(),CI={enter:co,exit:co},kx=!1,DV=Wo(),Cx=new Map,Hk=new Map,Ex=new Map}}),zoe={};C_(zoe,{clearMarks:()=>Rwe,clearMeasures:()=>Mwe,createTimer:()=>kI,createTimerIf:()=>Joe,disable:()=>Jwe,enable:()=>jwe,forEachMark:()=>Lwe,forEachMeasure:()=>Fwe,getCount:()=>Iwe,getDuration:()=>Owe,isEnabled:()=>Bwe,mark:()=>go,measure:()=>Gu,nullTimer:()=>CI});var Vv=Rt({"src/compiler/_namespaces/ts.performance.ts"(){zwe()}}),li,q7,Voe,Uoe,Vwe=Rt({"src/compiler/tracing.ts"(){Ls(),Vv(),(e=>{let t,r=0,i=0,a;const o=[];let l;const u=[];function f(ee,R,Z){if(E.assert(!li,"Tracing already started"),t===void 0)try{t=gx}catch(Q){throw new Error(`tracing requires having fs +(original error: ${Q.message||Q})`)}a=ee,o.length=0,l===void 0&&(l=Ii(R,"legend.json")),t.existsSync(R)||t.mkdirSync(R,{recursive:!0});const oe=a==="build"?`.${process.pid}-${++r}`:a==="server"?`.${process.pid}`:"",_e=Ii(R,`trace${oe}.json`),X=Ii(R,`types${oe}.json`);u.push({configFilePath:Z,tracePath:_e,typesPath:X}),i=t.openSync(_e,"w"),li=e;const H={cat:"__metadata",ph:"M",ts:1e3*Wo(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...H},{name:"thread_name",args:{name:"Main"},...H},{name:"TracingStartedInBrowser",...H,cat:"disabled-by-default-devtools.timeline"}].map(Q=>JSON.stringify(Q)).join(`, -`))}e.startTracing=f;function g(){E.assert(ci,"Tracing is not in progress"),E.assert(!!o.length==(a!=="server")),t.writeSync(i,` +`))}e.startTracing=f;function g(){E.assert(li,"Tracing is not in progress"),E.assert(!!o.length==(a!=="server")),t.writeSync(i,` ] -`),t.closeSync(i),ci=void 0,o.length?Y(o):u[u.length-1].typesPath=void 0}e.stopTracing=g;function m(ee){a!=="server"&&o.push(ee)}e.recordType=m,(ee=>{ee.Parse="parse",ee.Program="program",ee.Bind="bind",ee.Check="check",ee.CheckTypes="checkTypes",ee.Emit="emit",ee.Session="session"})(e.Phase||(e.Phase={}));function y(ee,R,Z){V("I",ee,R,Z,'"s":"g"')}e.instant=y;const x=[];function k(ee,R,Z,oe=!1){oe&&V("B",ee,R,Z),x.push({phase:ee,name:R,args:Z,time:1e3*Uo(),separateBeginAndEnd:oe})}e.push=k;function C(ee){E.assert(x.length>0),M(x.length-1,1e3*Uo(),ee),x.length--}e.pop=C;function N(){const ee=1e3*Uo();for(let R=x.length-1;R>=0;R--)M(R,ee);x.length=0}e.popAll=N;const D=1e3*10;function M(ee,R,Z){const{phase:oe,name:_e,args:X,time:H,separateBeginAndEnd:Q}=x[ee];Q?(E.assert(!Z,"`results` are not supported for events with `separateBeginAndEnd`"),V("E",oe,_e,X,void 0,R)):D-H%D<=R-H&&V("X",oe,_e,{...X,results:Z},`"dur":${R-H}`,H)}function V(ee,R,Z,oe,_e,X=1e3*Uo()){a==="server"&&R==="checkTypes"||(ho("beginTracing"),t.writeSync(i,`, -{"pid":1,"tid":1,"ph":"${ee}","cat":"${R}","ts":${X},"name":"${Z}"`),_e&&t.writeSync(i,`,${_e}`),oe&&t.writeSync(i,`,"args":${JSON.stringify(oe)}`),t.writeSync(i,"}"),ho("endTracing"),Gu("Tracing","beginTracing","endTracing"))}function U(ee){const R=Bn(ee);return R?{path:R.path,start:Z(vo(R,ee.pos)),end:Z(vo(R,ee.end))}:void 0;function Z(oe){return{line:oe.line+1,character:oe.character+1}}}function Y(ee){var mt,Je,at;var R,Z,oe,_e,X,H,Q,re,ue,fe,G,Ne,De,Xe,ve,be,xe,rt,ct;ho("beginDumpTypes");const pe=u[u.length-1].typesPath,Pe=t.openSync(pe,"w"),Ge=new Map;t.writeSync(Pe,"[");const tt=ee.length;for(let zt=0;ztcn.id),referenceLocation:U(Ct.node)}}let br={};if(It.flags&16777216){const Ct=It;br={conditionalCheckType:(H=Ct.checkType)==null?void 0:H.id,conditionalExtendsType:(Q=Ct.extendsType)==null?void 0:Q.id,conditionalTrueType:(Je=(re=Ct.resolvedTrueType)==null?void 0:re.id)!=null?Je:-1,conditionalFalseType:(at=(ue=Ct.resolvedFalseType)==null?void 0:ue.id)!=null?at:-1}}let fi={};if(It.flags&33554432){const Ct=It;fi={substitutionBaseType:(fe=Ct.baseType)==null?void 0:fe.id,constraintType:(G=Ct.constraint)==null?void 0:G.id}}let Si={};if(bt&1024){const Ct=It;Si={reverseMappedSourceType:(Ne=Ct.source)==null?void 0:Ne.id,reverseMappedMappedType:(De=Ct.mappedType)==null?void 0:De.id,reverseMappedConstraintType:(Xe=Ct.constraintType)==null?void 0:Xe.id}}let Nr={};if(bt&256){const Ct=It;Nr={evolvingArrayElementType:Ct.elementType.id,evolvingArrayFinalType:(ve=Ct.finalArrayType)==null?void 0:ve.id}}let pt;const ur=It.checker.getRecursionIdentity(It);ur&&(pt=Ge.get(ur),pt||(pt=Ge.size,Ge.set(ur,pt)));const yn={id:It.id,intrinsicName:It.intrinsicName,symbolName:(_r==null?void 0:_r.escapedName)&&Li(_r.escapedName),recursionId:pt,isTuple:bt&8?!0:void 0,unionTypes:It.flags&1048576?(be=It.types)==null?void 0:be.map(Ct=>Ct.id):void 0,intersectionTypes:It.flags&2097152?It.types.map(Ct=>Ct.id):void 0,aliasTypeArguments:(xe=It.aliasTypeArguments)==null?void 0:xe.map(Ct=>Ct.id),keyofType:It.flags&4194304?(rt=It.type)==null?void 0:rt.id:void 0,...jt,...Kn,...br,...fi,...Si,...Nr,destructuringPattern:U(It.pattern),firstDeclaration:U((ct=_r==null?void 0:_r.declarations)==null?void 0:ct[0]),flags:E.formatTypeFlags(It.flags).split("|"),display:Tn};t.writeSync(Pe,JSON.stringify(yn)),zt{ee.Parse="parse",ee.Program="program",ee.Bind="bind",ee.Check="check",ee.CheckTypes="checkTypes",ee.Emit="emit",ee.Session="session"})(e.Phase||(e.Phase={}));function y(ee,R,Z){V("I",ee,R,Z,'"s":"g"')}e.instant=y;const x=[];function k(ee,R,Z,oe=!1){oe&&V("B",ee,R,Z),x.push({phase:ee,name:R,args:Z,time:1e3*Wo(),separateBeginAndEnd:oe})}e.push=k;function C(ee){E.assert(x.length>0),M(x.length-1,1e3*Wo(),ee),x.length--}e.pop=C;function N(){const ee=1e3*Wo();for(let R=x.length-1;R>=0;R--)M(R,ee);x.length=0}e.popAll=N;const D=1e3*10;function M(ee,R,Z){const{phase:oe,name:_e,args:X,time:H,separateBeginAndEnd:Q}=x[ee];Q?(E.assert(!Z,"`results` are not supported for events with `separateBeginAndEnd`"),V("E",oe,_e,X,void 0,R)):D-H%D<=R-H&&V("X",oe,_e,{...X,results:Z},`"dur":${R-H}`,H)}function V(ee,R,Z,oe,_e,X=1e3*Wo()){a==="server"&&R==="checkTypes"||(go("beginTracing"),t.writeSync(i,`, +{"pid":1,"tid":1,"ph":"${ee}","cat":"${R}","ts":${X},"name":"${Z}"`),_e&&t.writeSync(i,`,${_e}`),oe&&t.writeSync(i,`,"args":${JSON.stringify(oe)}`),t.writeSync(i,"}"),go("endTracing"),Gu("Tracing","beginTracing","endTracing"))}function U(ee){const R=Rn(ee);return R?{path:R.path,start:Z(yo(R,ee.pos)),end:Z(yo(R,ee.end))}:void 0;function Z(oe){return{line:oe.line+1,character:oe.character+1}}}function Y(ee){var mt,Je,ot;var R,Z,oe,_e,X,H,Q,ne,ue,fe,G,Ne,De,Xe,ve,be,xe,rt,ct;go("beginDumpTypes");const pe=u[u.length-1].typesPath,Pe=t.openSync(pe,"w"),Ge=new Map;t.writeSync(Pe,"[");const tt=ee.length;for(let Jt=0;Jtcn.id),referenceLocation:U(Ct.node)}}let xr={};if(Pt.flags&16777216){const Ct=Pt;xr={conditionalCheckType:(H=Ct.checkType)==null?void 0:H.id,conditionalExtendsType:(Q=Ct.extendsType)==null?void 0:Q.id,conditionalTrueType:(Je=(ne=Ct.resolvedTrueType)==null?void 0:ne.id)!=null?Je:-1,conditionalFalseType:(ot=(ue=Ct.resolvedFalseType)==null?void 0:ue.id)!=null?ot:-1}}let pi={};if(Pt.flags&33554432){const Ct=Pt;pi={substitutionBaseType:(fe=Ct.baseType)==null?void 0:fe.id,constraintType:(G=Ct.constraint)==null?void 0:G.id}}let ki={};if(bt&1024){const Ct=Pt;ki={reverseMappedSourceType:(Ne=Ct.source)==null?void 0:Ne.id,reverseMappedMappedType:(De=Ct.mappedType)==null?void 0:De.id,reverseMappedConstraintType:(Xe=Ct.constraintType)==null?void 0:Xe.id}}let Nr={};if(bt&256){const Ct=Pt;Nr={evolvingArrayElementType:Ct.elementType.id,evolvingArrayFinalType:(ve=Ct.finalArrayType)==null?void 0:ve.id}}let pt;const ur=Pt.checker.getRecursionIdentity(Pt);ur&&(pt=Ge.get(ur),pt||(pt=Ge.size,Ge.set(ur,pt)));const hn={id:Pt.id,intrinsicName:Pt.intrinsicName,symbolName:(_r==null?void 0:_r.escapedName)&&Oi(_r.escapedName),recursionId:pt,isTuple:bt&8?!0:void 0,unionTypes:Pt.flags&1048576?(be=Pt.types)==null?void 0:be.map(Ct=>Ct.id):void 0,intersectionTypes:Pt.flags&2097152?Pt.types.map(Ct=>Ct.id):void 0,aliasTypeArguments:(xe=Pt.aliasTypeArguments)==null?void 0:xe.map(Ct=>Ct.id),keyofType:Pt.flags&4194304?(rt=Pt.type)==null?void 0:rt.id:void 0,...Bt,...er,...xr,...pi,...ki,...Nr,destructuringPattern:U(Pt.pattern),firstDeclaration:U((ct=_r==null?void 0:_r.declarations)==null?void 0:ct[0]),flags:E.formatTypeFlags(Pt.flags).split("|"),display:xn};t.writeSync(Pe,JSON.stringify(hn)),Jt(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(wI||{}),DI=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(DI||{}),AI=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(AI||{}),DV=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(DV||{}),NI=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(NI||{}),PI=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(PI||{}),AV=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(AV||{}),q7=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(q7||{}),NV=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(NV||{}),OC=class{},II=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(II||{}),PV=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(PV||{}),IV=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(IV||{}),OV=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(OV||{}),FV=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(FV||{}),LV=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(LV||{}),MV=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(MV||{}),RV=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(RV||{}),BV=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(BV||{}),jV=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(jV||{}),JV=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(JV||{}),zV=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(zV||{}),VV=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(VV||{}),UV=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(UV||{}),WV=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(WV||{}),OI=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(OI||{}),qV=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(qV||{}),HV=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(HV||{}),GV=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(GV||{}),$V=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))($V||{}),FI=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(FI||{}),LI=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(LI||{}),XV=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(XV||{}),QV=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(QV||{}),YV=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(YV||{}),ZV=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(ZV||{}),KV=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(KV||{}),eU=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(eU||{}),MI=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(MI||{}),tU=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(tU||{}),nU=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(nU||{}),rU=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(rU||{}),iU=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(iU||{}),sU=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(sU||{}),aU=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(aU||{}),H7=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(H7||{}),qk=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(qk||{}),oU=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(oU||{}),cU=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(cU||{}),lU=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(lU||{}),_U=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(_U||{}),FC=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(FC||{}),uU=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(uU||{}),fU=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(fU||{}),pU=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(pU||{}),RI=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(RI||{}),dU=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(dU||{}),mU=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(mU||{}),gU=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(gU||{}),hU=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(hU||{}),yU=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(yU||{}),BI=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(BI||{}),jI=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(jI||{}),JI=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(JI||{}),vU=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(vU||{}),bU=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(bU||{}),TU=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(TU||{}),xU=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(xU||{}),SU=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(SU||{}),kU=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(kU||{}),CU=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(CU||{}),EU=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(EU||{}),G7={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},{name:"resolution-mode",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}}}});function $7(e){let t=5381;for(let r=0;r{U.isClosed=!0,AC(t,U)}}}function u(D){const M=[];return M.pollingInterval=D,M.pollIndex=0,M.pollScheduled=!1,M}function f(D,M){M.pollIndex=m(M,M.pollingInterval,M.pollIndex,Y7[M.pollingInterval]),M.length?N(M.pollingInterval):(E.assert(M.pollIndex===0),M.pollScheduled=!1)}function g(D,M){m(r,250,0,r.length),f(D,M),!M.pollScheduled&&r.length&&N(250)}function m(D,M,V,U){return qoe(e,D,V,U,Y);function Y(j,ee,R){R?(j.unchangedPolls=0,D!==r&&(D[ee]=void 0,k(j))):j.unchangedPolls!==Z7[M]?j.unchangedPolls++:D===r?(j.unchangedPolls=1,D[ee]=void 0,x(j,250)):M!==2e3&&(j.unchangedPolls++,D[ee]=void 0,x(j,M===250?500:2e3))}}function y(D){switch(D){case 250:return i;case 500:return a;case 2e3:return o}}function x(D,M){y(M).push(D),C(M)}function k(D){r.push(D),C(250)}function C(D){y(D).pollScheduled||N(D)}function N(D){y(D).pollScheduled=e.setTimeout(D===250?g:f,D,D===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(D))}}function qwe(e,t){const r=$f(),i=new Map,a=Ql(t);return o;function o(u,f,g,m){const y=a(u);r.add(y,f);const x=bi(y)||".",k=i.get(x)||l(bi(u)||".",x,m);return k.referenceCount++,{close:()=>{k.referenceCount===1?(k.close(),i.delete(x)):k.referenceCount--,r.remove(y,f)}}}function l(u,f,g){const m=e(u,1,(y,x,k)=>{if(!$s(x))return;const C=fs(x,u),N=C&&r.get(a(C));if(N)for(const D of N)D(C,1,k)},!1,500,g);return m.referenceCount=0,i.set(f,m),m}}function Hwe(e){const t=[];let r=0,i;return a;function a(u,f){const g={fileName:u,callback:f,mtime:Ex(e,u)};return t.push(g),l(),{close:()=>{g.isClosed=!0,AC(t,g)}}}function o(){i=void 0,r=qoe(e,t,r,Y7[250]),l()}function l(){!t.length||i||(i=e.setTimeout(o,2e3,"pollQueue"))}}function Hoe(e,t,r,i,a){const l=Ql(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:a((f,g,m)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(x=>x(f,g,m))}),callbacks:[i]}),{close:()=>{const f=e.get(l);!f||!mI(f.callbacks,i)||f.callbacks.length||(e.delete(l),Em(f))}}}function Gwe(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,Goe(r,i),t),!0):!1}function Goe(e,t){return e===0?0:t===0?2:1}function X7(e){return AU(e)}function $oe(e){AU=e}function $we({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:a,realpath:o,setTimeout:l,clearTimeout:u}){const f=new Map,g=$f(),m=new Map;let y;const x=dI(!t),k=Ql(t);return(R,Z,oe,_e)=>oe?C(R,_e,Z):e(R,Z,oe,_e);function C(R,Z,oe){const _e=k(R);let X=f.get(_e);X?X.refCount++:(X={watcher:e(R,Q=>{j(Q,Z)||(Z!=null&&Z.synchronousWatchDirectory?(N(_e,Q),Y(R,_e,Z)):D(R,_e,Q,Z))},!1,Z),refCount:1,childWatches:Ve},f.set(_e,X),Y(R,_e,Z));const H=oe&&{dirName:R,callback:oe};return H&&g.add(_e,H),{dirName:R,close:()=>{const Q=E.checkDefined(f.get(_e));H&&g.remove(_e,H),Q.refCount--,!Q.refCount&&(f.delete(_e),Em(Q),Q.childWatches.forEach(vm))}}}function N(R,Z,oe){let _e,X;$s(Z)?_e=Z:X=Z,g.forEach((H,Q)=>{if(!(X&&X.get(Q)===!0)&&(Q===R||ts(R,Q)&&R[Q.length]===Wo))if(X)if(oe){const re=X.get(Q);re?re.push(...oe):X.set(Q,oe.slice())}else X.set(Q,!0);else H.forEach(({callback:re})=>re(_e))})}function D(R,Z,oe,_e){const X=f.get(Z);if(X&&a(R,1)){M(R,Z,oe,_e);return}N(Z,oe),U(X)}function M(R,Z,oe,_e){const X=m.get(Z);X?X.fileNames.push(oe):m.set(Z,{dirName:R,options:_e,fileNames:[oe]}),y&&(u(y),y=void 0),y=l(V,1e3,"timerToUpdateChildWatches")}function V(){y=void 0,X7(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);const R=Uo(),Z=new Map;for(;!y&&m.size;){const _e=m.entries().next();E.assert(!_e.done);const{value:[X,{dirName:H,options:Q,fileNames:re}]}=_e;m.delete(X);const ue=Y(H,X,Q);N(X,Z,ue?void 0:re)}X7(`sysLog:: invokingWatchers:: Elapsed:: ${Uo()-R}ms:: ${m.size}`),g.forEach((_e,X)=>{const H=Z.get(X);H&&_e.forEach(({callback:Q,dirName:re})=>{Ds(H)?H.forEach(Q):Q(re)})});const oe=Uo()-R;X7(`sysLog:: Elapsed:: ${oe}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function U(R){if(!R)return;const Z=R.childWatches;R.childWatches=Ve;for(const oe of Z)oe.close(),U(f.get(k(oe.dirName)))}function Y(R,Z,oe){const _e=f.get(Z);if(!_e)return!1;let X;const H=boe(a(R,1)?qi(i(R),ue=>{const fe=fs(ue,R);return!j(fe,oe)&&x(fe,ba(o(fe)))===0?fe:void 0}):Ve,_e.childWatches,(ue,fe)=>x(ue,fe.dirName),Q,vm,re);return _e.childWatches=X||Ve,H;function Q(ue){const fe=C(ue,oe);re(fe)}function re(ue){(X||(X=[])).push(ue)}}function j(R,Z){return dt(K7,oe=>ee(R,oe))||Xoe(R,Z,t,r)}function ee(R,Z){return Xl(R,Z)?!0:t?!1:Xl(k(R),Z)}}function Xwe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function Qwe(e,t,r){return(i,a,o)=>{i==="rename"?(o||(o=r(e)||jg),t(e,o!==jg?0:2,o)):t(e,1,o)}}function Xoe(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(UF(e,t==null?void 0:t.excludeFiles,r,i())||UF(e,t==null?void 0:t.excludeDirectories,r,i()))}function Qoe(e,t,r,i,a){return(o,l)=>{if(o==="rename"){const u=l?ba(Pi(e,l)):e;(!l||!Xoe(u,r,i,a))&&t(u)}}}function Yoe({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:a,fileSystemEntryExists:o,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:f,getAccessibleSortedChildDirectories:g,realpath:m,tscWatchFile:y,useNonPollingWatchers:x,tscWatchDirectory:k,inodeWatching:C,sysLog:N}){const D=new Map,M=new Map,V=new Map;let U,Y,j,ee,R=!1;return{watchFile:Z,watchDirectory:Q};function Z(De,Xe,ve,be){be=X(be,x);const xe=E.checkDefined(be.watchFile);switch(xe){case 0:return fe(De,Xe,250,void 0);case 1:return fe(De,Xe,ve,void 0);case 2:return oe()(De,Xe,ve,void 0);case 3:return _e()(De,Xe,void 0,void 0);case 4:return G(De,0,Qwe(De,Xe,t),!1,ve,s5(be));case 5:return j||(j=qwe(G,l)),j(De,Xe,ve,s5(be));default:E.assertNever(xe)}}function oe(){return U||(U=Wwe({getModifiedTime:t,setTimeout:r}))}function _e(){return Y||(Y=Hwe({getModifiedTime:t,setTimeout:r}))}function X(De,Xe){if(De&&De.watchFile!==void 0)return De;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return H(4,1,De);case"UseFsEventsWithFallbackDynamicPolling":return H(4,2,De);case"UseFsEventsOnParentDirectory":Xe=!0;default:return Xe?H(5,1,De):{watchFile:4}}}function H(De,Xe,ve){const be=ve==null?void 0:ve.fallbackPolling;return{watchFile:De,fallbackPolling:be===void 0?Xe:be}}function Q(De,Xe,ve,be){return f?G(De,1,Qoe(De,Xe,be,l,u),ve,500,s5(be)):(ee||(ee=$we({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:g,watchDirectory:re,realpath:m,setTimeout:r,clearTimeout:i})),ee(De,Xe,ve,be))}function re(De,Xe,ve,be){E.assert(!ve);const xe=ue(be),rt=E.checkDefined(xe.watchDirectory);switch(rt){case 1:return fe(De,()=>Xe(De),500,void 0);case 2:return oe()(De,()=>Xe(De),500,void 0);case 3:return _e()(De,()=>Xe(De),void 0,void 0);case 0:return G(De,1,Qoe(De,Xe,be,l,u),ve,500,s5(xe));default:E.assertNever(rt)}}function ue(De){if(De&&De.watchDirectory!==void 0)return De;switch(k){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Xe=De==null?void 0:De.fallbackPolling;return{watchDirectory:0,fallbackPolling:Xe!==void 0?Xe:void 0}}}function fe(De,Xe,ve,be){return Hoe(D,l,De,Xe,xe=>e(De,xe,ve,be))}function G(De,Xe,ve,be,xe,rt){return Hoe(be?V:M,l,De,ve,ct=>Ne(De,Xe,ct,be,xe,rt))}function Ne(De,Xe,ve,be,xe,rt){let ct,pe;C&&(ct=De.substring(De.lastIndexOf(Wo)),pe=ct.slice(Wo.length));let Pe=o(De,Xe)?tt():at();return{close:()=>{Pe&&(Pe.close(),Pe=void 0)}};function Ge(zt){Pe&&(N(`sysLog:: ${De}:: Changing watcher to ${zt===tt?"Present":"Missing"}FileSystemEntryWatcher`),Pe.close(),Pe=zt())}function tt(){if(R)return N(`sysLog:: ${De}:: Defaulting to watchFile`),Je();try{const zt=a(De,be,C?mt:ve);return zt.on("error",()=>{ve("rename",""),Ge(at)}),zt}catch(zt){return R||(R=zt.code==="ENOSPC"),N(`sysLog:: ${De}:: Changing to watchFile`),Je()}}function mt(zt,It){let bt;if(It&&Tc(It,"~")&&(bt=It,It=It.slice(0,It.length-1)),zt==="rename"&&(!It||It===pe||Tc(It,ct))){const _r=t(De)||jg;bt&&ve(zt,bt,_r),ve(zt,It,_r),C?Ge(_r===jg?at:tt):_r===jg&&Ge(at)}else bt&&ve(zt,bt),ve(zt,It)}function Je(){return Z(De,Xwe(ve),xe,rt)}function at(){return Z(De,(zt,It,bt)=>{It===0&&(bt||(bt=t(De)||jg),bt!==jg&&(ve("rename","",bt),Ge(tt)))},xe,rt)}}}function Zoe(e){const t=e.writeFile;e.writeFile=(r,i,a)=>Sq(r,i,!!a,(o,l,u)=>t.call(e,o,l,u),o=>e.createDirectory(o),o=>e.directoryExists(o))}function Ywe(e){jl=e}var DU,zI,jg,Q7,Y7,Z7,K7,AU,NU,jl,Zwe=Bt({"src/compiler/sys.ts"(){Os(),DU=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(DU||{}),zI=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(zI||{}),jg=new Date(0),Q7={Low:32,Medium:64,High:256},Y7=wU(Q7),Z7=wU(Q7),K7=["/node_modules/.","/.git","/.#"],AU=_o,NU=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(NU||{}),jl=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,a=mx,o=mx,l=mx;let u;try{u=mx}catch{u=void 0}let f,g="./profile.cpuprofile";const m=mx.Buffer,y=process.platform==="linux"||process.platform==="darwin",x=l.platform(),k=_e(),C=a.realpathSync.native?process.platform==="win32"?xe:a.realpathSync.native:a.realpathSync,N=__filename.endsWith("sys.js")?o.join(o.dirname(__dirname),"__fake__.js"):__filename,D=process.platform==="win32"||process.platform==="darwin",M=wu(()=>process.cwd()),{watchFile:V,watchDirectory:U}=Yoe({pollingWatchFileWorker:H,getModifiedTime:ct,setTimeout,clearTimeout,fsWatchWorker:Q,useCaseSensitiveFileNames:k,getCurrentDirectory:M,fileSystemEntryExists:De,fsSupportsRecursiveFsWatch:D,getAccessibleSortedChildDirectories:tt=>G(tt).directories,realpath:rt,tscWatchFile:{}.TSC_WATCHFILE,useNonPollingWatchers:!!{}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{}.TSC_WATCHDIRECTORY,inodeWatching:y,sysLog:X7}),Y={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:k,write(tt){process.stdout.write(tt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:ue,writeFile:fe,watchFile:V,watchDirectory:U,resolvePath:tt=>o.resolve(tt),fileExists:Xe,directoryExists:ve,createDirectory(tt){if(!Y.directoryExists(tt))try{a.mkdirSync(tt)}catch(mt){if(mt.code!=="EEXIST")throw mt}},getExecutingFilePath(){return N},getCurrentDirectory:M,getDirectories:be,getEnvironmentVariable(tt){return process.env[tt]||""},readDirectory:Ne,getModifiedTime:ct,setModifiedTime:pe,deleteFile:Pe,createHash:u?Ge:$7,createSHA256Hash:u?Ge:void 0,getMemoryUsage(){return W7e.gc&&W7e.gc(),process.memoryUsage().heapUsed},getFileSize(tt){try{const mt=j(tt);if(mt!=null&&mt.isFile())return mt.size}catch{}return 0},exit(tt){Z(()=>process.exit(tt))},enableCPUProfiler:ee,disableCPUProfiler:Z,cpuProfilingEnabled:()=>!!f||gs(process.execArgv,"--cpu-prof")||gs(process.execArgv,"--prof"),realpath:rt,debugMode:!!{}.NODE_INSPECTOR_IPC||!!{}.VSCODE_INSPECTOR_OPTIONS||dt(process.execArgv,tt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(tt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{mx.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var tt;const mt=(tt=process.stdout)==null?void 0:tt._handle;mt&&mt.setBlocking&&mt.setBlocking(!0)},bufferFrom:oe,base64decode:tt=>oe(tt,"base64").toString("utf8"),base64encode:tt=>oe(tt).toString("base64"),require:(tt,mt)=>{try{const Je=Rde(mt,tt,Y);return{module:q7e(Je),modulePath:Je,error:void 0}}catch(Je){return{module:void 0,modulePath:void 0,error:Je}}}};return Y;function j(tt){return a.statSync(tt,{throwIfNoEntry:!1})}function ee(tt,mt){if(f)return mt(),!1;const Je=mx;if(!Je||!Je.Session)return mt(),!1;const at=new Je.Session;return at.connect(),at.post("Profiler.enable",()=>{at.post("Profiler.start",()=>{f=at,g=tt,mt()})}),!0}function R(tt){let mt=0;const Je=new Map,at=zl(o.dirname(N)),zt=`file://${_m(at)===1?"":"/"}${at}`;for(const It of tt.nodes)if(It.callFrame.url){const bt=zl(It.callFrame.url);Xh(zt,bt,k)?It.callFrame.url=wx(zt,bt,zt,Ql(k),!0):i.test(bt)||(It.callFrame.url=(Je.has(bt)?Je:Je.set(bt,`external${mt}.js`)).get(bt),mt++)}return tt}function Z(tt){if(f&&f!=="stopping"){const mt=f;return f.post("Profiler.stop",(Je,{profile:at})=>{var zt;if(!Je){try{(zt=j(g))!=null&&zt.isDirectory()&&(g=o.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{a.mkdirSync(o.dirname(g),{recursive:!0})}catch{}a.writeFileSync(g,JSON.stringify(R(at)))}f=void 0,mt.disconnect(),tt()}),f="stopping",!0}else return tt(),!1}function oe(tt,mt){return m.from&&m.from!==Int8Array.from?m.from(tt,mt):new m(tt,mt)}function _e(){return x==="win32"||x==="win64"?!1:!Xe(X(__filename))}function X(tt){return tt.replace(/\w/g,mt=>{const Je=mt.toUpperCase();return mt===Je?mt.toLowerCase():Je})}function H(tt,mt,Je){a.watchFile(tt,{persistent:!0,interval:Je},zt);let at;return{close:()=>a.unwatchFile(tt,zt)};function zt(It,bt){const _r=+bt.mtime==0||at===2;if(+It.mtime==0){if(_r)return;at=2}else if(_r)at=0;else{if(+It.mtime==+bt.mtime)return;at=1}mt(tt,at,It.mtime)}}function Q(tt,mt,Je){return a.watch(tt,D?{persistent:!0,recursive:!!mt}:{persistent:!0},Je)}function re(tt,mt){let Je;try{Je=a.readFileSync(tt)}catch{return}let at=Je.length;if(at>=2&&Je[0]===254&&Je[1]===255){at&=-2;for(let zt=0;zt=2&&Je[0]===255&&Je[1]===254?Je.toString("utf16le",2):at>=3&&Je[0]===239&&Je[1]===187&&Je[2]===191?Je.toString("utf8",3):Je.toString("utf8")}function ue(tt,mt){var Je,at;(Je=wd)==null||Je.logStartReadFile(tt);const zt=re(tt);return(at=wd)==null||at.logStopReadFile(),zt}function fe(tt,mt,Je){var at;(at=wd)==null||at.logEvent("WriteFile: "+tt),Je&&(mt=e+mt);let zt;try{zt=a.openSync(tt,"w"),a.writeSync(zt,mt,void 0,"utf8")}finally{zt!==void 0&&a.closeSync(zt)}}function G(tt){var mt;(mt=wd)==null||mt.logEvent("ReadDir: "+(tt||"."));try{const Je=a.readdirSync(tt||".",{withFileTypes:!0}),at=[],zt=[];for(const It of Je){const bt=typeof It=="string"?It:It.name;if(bt==="."||bt==="..")continue;let _r;if(typeof It=="string"||It.isSymbolicLink()){const Tn=Pi(tt,bt);try{if(_r=j(Tn),!_r)continue}catch{continue}}else _r=It;_r.isFile()?at.push(bt):_r.isDirectory()&&zt.push(bt)}return at.sort(),zt.sort(),{files:at,directories:zt}}catch{return OO}}function Ne(tt,mt,Je,at,zt){return Xq(tt,mt,Je,at,k,process.cwd(),zt,G,rt)}function De(tt,mt){const Je=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const at=j(tt);if(!at)return!1;switch(mt){case 0:return at.isFile();case 1:return at.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=Je}}function Xe(tt){return De(tt,0)}function ve(tt){return De(tt,1)}function be(tt){return G(tt).directories.slice()}function xe(tt){return tt.length<260?a.realpathSync.native(tt):a.realpathSync(tt)}function rt(tt){try{return C(tt)}catch{return tt}}function ct(tt){var mt;const Je=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(mt=j(tt))==null?void 0:mt.mtime}catch{return}finally{Error.stackTraceLimit=Je}}function pe(tt,mt){try{a.utimesSync(tt,mt,mt)}catch{return}}function Pe(tt){try{return a.unlinkSync(tt)}catch{return}}function Ge(tt){const mt=u.createHash("sha256");return mt.update(tt),mt.digest("hex")}}let r;return yV()&&(r=t()),r&&Zoe(r),r})(),jl&&jl.getEnvironmentVariable&&(Uwe(jl),E.setAssertionLevel(/^development$/i.test(jl.getEnvironmentVariable("NODE_ENV"))?1:0)),jl&&jl.debugMode&&(E.isDebugging=!0)}});function PU(e){return e===47||e===92}function Koe(e){return ew(e)<0}function Dd(e){return ew(e)>0}function IU(e){const t=ew(e);return t>0&&t===e.length}function LC(e){return ew(e)!==0}function $u(e){return/^\.\.?($|[\\/])/.test(e)}function OU(e){return!LC(e)&&!$u(e)}function Hk(e){return Xl(Jl(e),".")}function Hc(e,t){return e.length>t.length&&Tc(e,t)}function Gc(e,t){for(const r of t)if(Hc(e,r))return!0;return!1}function z0(e){return e.length>0&&PU(e.charCodeAt(e.length-1))}function ece(e){return e>=97&&e<=122||e>=65&&e<=90}function Kwe(e,t){const r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function ew(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?Wo:sw,2);return i<0?e.length:i+1}if(ece(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const r=e.indexOf(jU);if(r!==-1){const i=r+jU.length,a=e.indexOf(Wo,i);if(a!==-1){const o=e.slice(0,r),l=e.slice(i,a);if(o==="file"&&(l===""||l==="localhost")&&ece(e.charCodeAt(a+1))){const u=Kwe(e,a+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(a+1)}return~e.length}return 0}function _m(e){const t=ew(e);return t<0?~t:t}function bi(e){e=zl(e);const t=_m(e);return t===e.length?e:(e=zv(e),e.slice(0,Math.max(t,e.lastIndexOf(Wo))))}function Jl(e,t,r){if(e=zl(e),_m(e)===e.length)return"";e=zv(e);const a=e.slice(Math.max(_m(e),e.lastIndexOf(Wo)+1)),o=t!==void 0&&r!==void 0?tw(a,t,r):void 0;return o?a.slice(0,a.length-o.length):a}function tce(e,t,r){if(ts(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function eDe(e,t,r){if(typeof t=="string")return tce(e,t,r)||"";for(const i of t){const a=tce(e,i,r);if(a)return a}return""}function tw(e,t,r){if(t)return eDe(zv(e),t,r?bx:Tx);const i=Jl(e),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function tDe(e,t){const r=e.substring(0,t),i=e.substring(t).split(Wo);return i.length&&!Bo(i)&&i.pop(),[r,...i]}function Dl(e,t=""){return e=Pi(t,e),tDe(e,_m(e))}function Gh(e,t){return e.length===0?"":(e[0]&&D_(e[0]))+e.slice(1,t).join(Wo)}function zl(e){return e.indexOf("\\")!==-1?e.replace(nce,Wo):e}function kb(e){if(!dt(e))return[];const t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Pi(e,...t){e&&(e=zl(e));for(let r of t)!r||(r=zl(r),!e||_m(r)!==0?e=r:e=D_(e)+r);return e}function $h(e,...t){return ba(dt(t)?Pi(e,...t):zl(e))}function nw(e,t){return kb(Dl(e,t))}function fs(e,t){return Gh(nw(e,t))}function ba(e){if(e=zl(e),!aw.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!aw.test(e)))return e;const r=Gh(kb(Dl(e)));return r&&z0(e)?D_(r):r}function nDe(e){return e.length===0?"":e.slice(1).join(Wo)}function FU(e,t){return nDe(nw(e,t))}function yo(e,t,r){const i=Dd(e)?ba(e):fs(e,t);return r(i)}function zv(e){return z0(e)?e.substr(0,e.length-1):e}function D_(e){return z0(e)?e:e+Wo}function Vv(e){return!LC(e)&&!$u(e)?"./"+e:e}function rw(e,t,r,i){const a=r!==void 0&&i!==void 0?tw(e,r,i):tw(e);return a?e.slice(0,e.length-a.length)+(ts(t,".")?t:"."+t):e}function LU(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,_m(e)),a=t.substring(0,_m(t)),o=pI(i,a);if(o!==0)return o;const l=e.substring(i.length),u=t.substring(a.length);if(!aw.test(l)&&!aw.test(u))return r(l,u);const f=kb(Dl(e)),g=kb(Dl(t)),m=Math.min(f.length,g.length);for(let y=1;y0==_m(t)>0,"Paths must either both be absolute or both be relative");const o=RU(e,t,(typeof r=="boolean"?r:!1)?bx:Tx,typeof r=="function"?r:Zo);return Gh(o)}function MC(e,t,r){return Dd(e)?wx(t,e,t,r,!1):e}function iw(e,t,r){return Vv(um(bi(e),t,r))}function wx(e,t,r,i,a){const o=RU($h(r,e),$h(r,t),Tx,i),l=o[0];if(a&&Dd(l)){const u=l.charAt(0)===Wo?"file://":"file:///";o[0]=u+l}return Gh(o)}function Jg(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=bi(e);if(i===e)return;e=i}}function BU(e){return Tc(e,"/node_modules")}var Wo,sw,jU,nce,aw,sDe=Bt({"src/compiler/path.ts"(){Os(),Wo="/",sw="\\",jU="://",nce=/\\/g,aw=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,r,i,a,o,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:a,elidedInCompatabilityPyramid:o,reportsDeprecated:l}}var p,aDe=Bt({"src/compiler/diagnosticInformationMap.generated.ts"(){Woe(),p={Unterminated_string_literal:b(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:b(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:b(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:b(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:b(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:b(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:b(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:b(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:b(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:b(1013,1,"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:b(1014,1,"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:b(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:b(1016,1,"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:b(1017,1,"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:b(1018,1,"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:b(1019,1,"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:b(1020,1,"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:b(1021,1,"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:b(1022,1,"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:b(1024,1,"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:b(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:b(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:b(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:b(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:b(1031,1,"_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:b(1034,1,"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:b(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:b(1036,1,"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:b(1038,1,"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:b(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:b(1040,1,"_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:b(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:b(1044,1,"_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:b(1046,1,"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:b(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:b(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:b(1049,1,"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:b(1051,1,"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:b(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:b(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:b(1054,1,"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:b(1055,1,"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:b(1056,1,"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:b(1058,1,"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:b(1059,1,"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:b(1060,1,"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:b(1061,1,"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:b(1062,1,"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:b(1063,1,"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:b(1064,1,"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 type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:b(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:b(1066,1,"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:b(1068,1,"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:b(1069,1,"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:b(1070,1,"_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:b(1071,1,"_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:b(1079,1,"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:b(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:b(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:b(1090,1,"_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:b(1091,1,"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:b(1092,1,"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:b(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:b(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:b(1095,1,"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:b(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:b(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:b(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:b(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:b(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:b(1101,1,"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:b(1102,1,"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:b(1103,1,"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:b(1104,1,"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:b(1105,1,"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:b(1106,1,"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:b(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:b(1108,1,"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:b(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:b(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:b(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:b(1113,1,"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:b(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:b(1115,1,"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:b(1116,1,"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:b(1117,1,"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:b(1118,1,"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:b(1119,1,"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:b(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:b(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:b(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:b(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:b(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:b(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:b(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:b(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:b(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:b(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:b(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:b(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:b(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:b(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:b(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:b(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:b(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:b(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:b(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:b(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:b(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:b(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:b(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:b(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:b(1147,1,"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:b(1148,1,"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:b(1149,1,"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."),_0_declarations_must_be_initialized:b(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:b(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:b(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:b(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:b(1162,1,"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:b(1163,1,"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:b(1164,1,"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:b(1165,1,"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:b(1166,1,"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:b(1168,1,"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:b(1169,1,"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:b(1170,1,"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:b(1171,1,"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:b(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:b(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:b(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:b(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:b(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:b(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:b(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:b(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:b(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:b(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:b(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:b(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:b(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:b(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:b(1186,1,"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:b(1187,1,"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:b(1188,1,"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:b(1189,1,"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:b(1190,1,"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:b(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:b(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:b(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:b(1194,1,"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:b(1195,1,"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:b(1196,1,"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:b(1197,1,"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:b(1198,1,"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:b(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:b(1200,1,"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:b(1202,1,"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:b(1203,1,"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_0_is_enabled_requires_using_export_type:b(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:b(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:b(1207,1,"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."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:b(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),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:b(1210,1,"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:b(1211,1,"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:b(1212,1,"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:b(1213,1,"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:b(1214,1,"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:b(1215,1,"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:b(1216,1,"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:b(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:b(1221,1,"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:b(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:b(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:b(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:b(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:b(1226,1,"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:b(1227,1,"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:b(1228,1,"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:b(1229,1,"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:b(1230,1,"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:b(1231,1,"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:b(1232,1,"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:b(1233,1,"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:b(1234,1,"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:b(1235,1,"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:b(1236,1,"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:b(1237,1,"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:b(1238,1,"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:b(1239,1,"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:b(1240,1,"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:b(1241,1,"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:b(1242,1,"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:b(1243,1,"_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:b(1244,1,"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:b(1245,1,"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:b(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:b(1247,1,"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:b(1248,1,"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:b(1249,1,"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:b(1250,1,"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:b(1251,1,"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:b(1252,1,"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."),Abstract_properties_can_only_appear_within_an_abstract_class:b(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:b(1254,1,"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:b(1255,1,"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:b(1257,1,"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:b(1258,1,"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:b(1259,1,"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:b(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:b(1261,1,"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:b(1262,1,"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:b(1263,1,"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:b(1264,1,"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:b(1265,1,"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:b(1266,1,"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:b(1267,1,"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:b(1268,1,"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_0_is_enabled:b(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:b(1270,1,"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:b(1271,1,"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'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:b(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:b(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:b(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:b(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:b(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:b(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:b(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:b(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:b(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:b(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:b(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:b(1300,1,"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:b(1308,1,"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."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:b(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),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:b(1312,1,"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:b(1313,1,"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:b(1314,1,"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:b(1315,1,"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:b(1316,1,"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:b(1317,1,"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:b(1318,1,"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:b(1319,1,"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:b(1320,1,"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:b(1321,1,"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:b(1322,1,"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_node16_or_nodenext:b(1323,1,"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', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:b(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:b(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:b(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:b(1327,1,"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:b(1328,1,"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:b(1329,1,"_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:b(1330,1,"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:b(1331,1,"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:b(1332,1,"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:b(1333,1,"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:b(1334,1,"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:b(1335,1,"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:b(1337,1,"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:b(1338,1,"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:b(1339,1,"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:b(1340,1,"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}')'?"),Class_constructor_may_not_be_an_accessor:b(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:b(1343,1,"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', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:b(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:b(1345,1,"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:b(1346,1,"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:b(1347,1,"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:b(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:b(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:b(1350,3,"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:b(1351,1,"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:b(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:b(1353,1,"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:b(1354,1,"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:b(1355,1,"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:b(1356,1,"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:b(1357,1,"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:b(1358,1,"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:b(1359,1,"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."),Type_0_does_not_satisfy_the_expected_type_1:b(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:b(1361,1,"_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:b(1362,1,"_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:b(1363,1,"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:b(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:b(1365,3,"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:b(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:b(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:b(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:b(1369,3,"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:b(1371,1,"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'."),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:b(1375,1,"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:b(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:b(1377,3,"_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_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 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:b(1379,1,"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:b(1380,1,"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:b(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:b(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1385,1,"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:b(1386,1,"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:b(1387,1,"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:b(1388,1,"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:b(1389,1,"_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:b(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:b(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:b(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:b(1394,3,"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:b(1395,3,"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:b(1396,3,"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:b(1397,3,"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:b(1398,3,"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:b(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:b(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:b(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:b(1402,3,"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:b(1403,3,"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:b(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:b(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:b(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:b(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:b(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:b(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:b(1410,3,"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:b(1411,3,"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:b(1412,3,"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:b(1413,3,"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:b(1414,3,"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:b(1415,3,"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:b(1416,3,"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:b(1417,3,"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:b(1418,3,"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:b(1419,3,"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:b(1420,3,"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:b(1421,3,"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:b(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:b(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:b(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:b(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:b(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:b(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:b(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:b(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:b(1430,3,"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:b(1431,1,"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_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:b(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:b(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:b(1435,1,"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:b(1436,1,"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:b(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:b(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:b(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:b(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:b(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:b(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:b(1443,1,"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:b(1444,1,"_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:b(1446,1,"_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_1_is_enabled:b(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:b(1449,3,"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:b(1450,3,"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:b(1451,1,"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"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:b(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:b(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:b(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:b(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:b(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:b(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:b(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:b(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:b(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:b(1470,1,"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_with_require_Use_an_ECMAScript_import_instead:b(1471,1,"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 with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:b(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1473,1,"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:b(1474,1,"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."),Control_what_method_is_used_to_detect_module_format_JS_files:b(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:b(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:b(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:b(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:b(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:b(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:b(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:b(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:b(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:b(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:b(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:b(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:b(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:b(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:b(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:b(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:b(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:b(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:b(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),The_types_of_0_are_incompatible_between_these_types:b(2200,1,"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:b(2201,1,"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:b(2202,1,"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:b(2203,1,"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:b(2204,1,"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:b(2205,1,"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:b(2206,1,"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:b(2207,1,"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."),This_type_parameter_might_need_an_extends_0_constraint:b(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:b(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:b(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:b(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2301,1,"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:b(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:b(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:b(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:b(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:b(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:b(2307,1,"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:b(2308,1,"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:b(2309,1,"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:b(2310,1,"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:b(2311,1,"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:b(2312,1,"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:b(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:b(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:b(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:b(2316,1,"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:b(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:b(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:b(2319,1,"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:b(2320,1,"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:b(2321,1,"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:b(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:b(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:b(2324,1,"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:b(2325,1,"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:b(2326,1,"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:b(2327,1,"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:b(2328,1,"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:b(2329,1,"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:b(2330,1,"_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:b(2331,1,"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:b(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:b(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:b(2334,1,"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:b(2335,1,"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:b(2336,1,"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:b(2337,1,"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:b(2338,1,"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:b(2339,1,"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:b(2340,1,"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:b(2341,1,"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:b(2343,1,"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:b(2344,1,"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:b(2345,1,"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}'."),Untyped_function_calls_may_not_accept_type_arguments:b(2347,1,"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:b(2348,1,"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:b(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:b(2350,1,"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:b(2351,1,"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:b(2352,1,"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:b(2353,1,"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:b(2354,1,"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_undefined_void_nor_any_must_return_a_value:b(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:b(2356,1,"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:b(2357,1,"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:b(2358,1,"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:b(2359,1,"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_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2362,1,"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:b(2363,1,"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:b(2364,1,"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:b(2365,1,"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:b(2366,1,"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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:b(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:b(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:b(2369,1,"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:b(2370,1,"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:b(2371,1,"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:b(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:b(2373,1,"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:b(2374,1,"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:b(2375,1,"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:b(2376,1,"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:b(2377,1,"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:b(2378,1,"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:b(2379,1,"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."),Overload_signatures_must_all_be_exported_or_non_exported:b(2383,1,"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:b(2384,1,"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:b(2385,1,"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:b(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:b(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:b(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:b(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:b(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:b(2391,1,"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:b(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:b(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:b(2394,1,"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:b(2395,1,"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:b(2396,1,"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:b(2397,1,"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:b(2398,1,"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:b(2399,1,"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:b(2400,1,"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:b(2401,1,"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:b(2402,1,"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:b(2403,1,"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:b(2404,1,"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:b(2405,1,"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:b(2406,1,"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:b(2407,1,"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:b(2408,1,"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:b(2409,1,"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:b(2410,1,"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:b(2412,1,"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:b(2411,1,"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:b(2413,1,"_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:b(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:b(2415,1,"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:b(2416,1,"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:b(2417,1,"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:b(2418,1,"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:b(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:b(2420,1,"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:b(2422,1,"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:b(2423,1,"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:b(2425,1,"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:b(2426,1,"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:b(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:b(2428,1,"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:b(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:b(2431,1,"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:b(2432,1,"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:b(2433,1,"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:b(2434,1,"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:b(2435,1,"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:b(2436,1,"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:b(2437,1,"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:b(2438,1,"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:b(2439,1,"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:b(2440,1,"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:b(2441,1,"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:b(2442,1,"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:b(2443,1,"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:b(2444,1,"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:b(2445,1,"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:b(2446,1,"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:b(2447,1,"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:b(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:b(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:b(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:b(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:b(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:b(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:b(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:b(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:b(2458,1,"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:b(2459,1,"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:b(2460,1,"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:b(2461,1,"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:b(2462,1,"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:b(2463,1,"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:b(2464,1,"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:b(2465,1,"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:b(2466,1,"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:b(2467,1,"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:b(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:b(2469,1,"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:b(2472,1,"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:b(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:b(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),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:b(2475,1,"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:b(2476,1,"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:b(2477,1,"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:b(2478,1,"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:b(2480,1,"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:b(2481,1,"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:b(2483,1,"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:b(2484,1,"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:b(2487,1,"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:b(2488,1,"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:b(2489,1,"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:b(2490,1,"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:b(2491,1,"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:b(2492,1,"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:b(2493,1,"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:b(2494,1,"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:b(2495,1,"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:b(2496,1,"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:b(2497,1,"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:b(2498,1,"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:b(2499,1,"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:b(2500,1,"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:b(2501,1,"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:b(2502,1,"_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:b(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:b(2504,1,"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:b(2505,1,"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:b(2506,1,"_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:b(2507,1,"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:b(2508,1,"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:b(2509,1,"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:b(2510,1,"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:b(2511,1,"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:b(2512,1,"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:b(2513,1,"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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:b(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:b(2515,1,"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:b(2516,1,"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:b(2517,1,"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:b(2518,1,"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:b(2519,1,"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:b(2520,1,"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:b(2522,1,"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:b(2523,1,"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:b(2524,1,"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:b(2525,1,"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:b(2526,1,"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:b(2527,1,"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:b(2528,1,"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:b(2529,1,"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:b(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:b(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:b(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:b(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:b(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:b(2536,1,"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:b(2537,1,"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:b(2538,1,"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:b(2539,1,"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:b(2540,1,"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:b(2542,1,"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:b(2543,1,"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:b(2544,1,"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:b(2545,1,"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:b(2547,1,"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:b(2548,1,"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:b(2549,1,"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:b(2550,1,"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:b(2551,1,"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:b(2552,1,"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:b(2553,1,"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:b(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:b(2555,1,"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:b(2556,1,"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:b(2558,1,"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:b(2559,1,"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:b(2560,1,"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:b(2561,1,"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:b(2562,1,"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:b(2563,1,"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:b(2564,1,"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:b(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:b(2566,1,"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:b(2567,1,"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:b(2568,1,"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}'?"),Could_not_find_name_0_Did_you_mean_1:b(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:b(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:b(2574,1,"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:b(2575,1,"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:b(2576,1,"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:b(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:b(2578,1,"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:b(2580,1,"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:b(2581,1,"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:b(2582,1,"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:b(2583,1,"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:b(2584,1,"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:b(2585,1,"_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:b(2588,1,"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:b(2589,1,"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:b(2590,1,"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:b(2591,1,"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:b(2592,1,"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:b(2593,1,"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_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:b(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with '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:b(2595,1,"_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:b(2596,1,"_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:b(2597,1,"_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:b(2598,1,"_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:b(2602,1,"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:b(2603,1,"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:b(2604,1,"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:b(2606,1,"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:b(2607,1,"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:b(2608,1,"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:b(2609,1,"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:b(2610,1,"_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:b(2611,1,"_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:b(2612,1,"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:b(2613,1,"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:b(2614,1,"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:b(2615,1,"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:b(2616,1,"_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:b(2617,1,"_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:b(2618,1,"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:b(2619,1,"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:b(2620,1,"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:b(2621,1,"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:b(2623,1,"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:b(2624,1,"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:b(2625,1,"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:b(2626,1,"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:b(2627,1,"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:b(2628,1,"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:b(2629,1,"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:b(2630,1,"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:b(2631,1,"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:b(2632,1,"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:b(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:b(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:b(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:b(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:b(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:b(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:b(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:b(2649,1,"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:b(2651,1,"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:b(2652,1,"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:b(2653,1,"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:b(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:b(2658,1,"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:b(2659,1,"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:b(2660,1,"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:b(2661,1,"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:b(2662,1,"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:b(2663,1,"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:b(2664,1,"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:b(2665,1,"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:b(2666,1,"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:b(2667,1,"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:b(2668,1,"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:b(2669,1,"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:b(2670,1,"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:b(2671,1,"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:b(2672,1,"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:b(2673,1,"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:b(2674,1,"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:b(2675,1,"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:b(2676,1,"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:b(2677,1,"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:b(2678,1,"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:b(2679,1,"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:b(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:b(2681,1,"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:b(2683,1,"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:b(2684,1,"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:b(2685,1,"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:b(2686,1,"_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:b(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:b(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:b(2689,1,"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:b(2690,1,"_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}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:b(2692,1,"_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:b(2693,1,"_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:b(2694,1,"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:b(2695,1,"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:b(2696,1,"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:b(2697,1,"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:b(2698,1,"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:b(2699,1,"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:b(2700,1,"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:b(2701,1,"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:b(2702,1,"_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:b(2703,1,"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:b(2704,1,"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:b(2705,1,"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:b(2706,1,"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:b(2707,1,"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:b(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:b(2709,1,"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:b(2710,1,"_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:b(2711,1,"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:b(2712,1,"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:b(2713,1,"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:b(2714,1,"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:b(2715,1,"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:b(2716,1,"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:b(2717,1,"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:b(2718,1,"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:b(2719,1,"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:b(2720,1,"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:b(2721,1,"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:b(2722,1,"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:b(2723,1,"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:b(2724,1,"_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:b(2725,1,"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:b(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:b(2727,1,"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:b(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:b(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:b(2730,1,"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:b(2731,1,"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:b(2732,1,"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:b(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:b(2734,1,"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:b(2735,1,"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:b(2736,1,"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:b(2737,1,"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:b(2738,3,"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:b(2739,1,"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:b(2740,1,"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:b(2741,1,"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:b(2742,1,"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:b(2743,1,"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:b(2744,1,"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:b(2745,1,"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:b(2746,1,"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:b(2747,1,"_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_0_is_enabled:b(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:b(2749,1,"_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:b(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:b(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:b(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:b(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:b(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:b(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:b(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:b(2757,1,"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:b(2758,1,"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:b(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:b(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:b(2761,1,"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:b(2762,1,"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:b(2763,1,"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:b(2764,1,"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:b(2765,1,"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:b(2766,1,"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:b(2767,1,"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:b(2768,1,"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:b(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:b(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:b(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:b(2772,1,"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:b(2773,1,"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:b(2774,1,"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:b(2775,1,"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:b(2776,1,"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:b(2777,1,"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:b(2778,1,"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:b(2779,1,"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:b(2780,1,"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:b(2781,1,"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:b(2782,3,"_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:b(2783,1,"_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:b(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:b(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:b(2786,1,"_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:b(2787,1,"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:b(2788,1,"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:b(2789,1,"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:b(2790,1,"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:b(2791,1,"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_nodenext_or_to_add_aliases_to_the_paths_option:b(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', 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:b(2793,1,"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:b(2794,1,"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:b(2795,1,"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:b(2796,1,"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:b(2797,1,"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:b(2798,1,"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:b(2799,1,"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:b(2800,1,"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:b(2801,1,"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:b(2802,1,"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:b(2803,1,"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:b(2804,1,"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:b(2806,1,"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:b(2807,1,"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:b(2808,1,"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_whole_assignment_in_parentheses:b(2809,1,"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 whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:b(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:b(2811,1,"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:b(2812,1,"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:b(2813,1,"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:b(2814,1,"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:b(2815,1,"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:b(2816,1,"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:b(2817,1,"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:b(2818,1,"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:b(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:b(2820,1,"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:b(2821,1,"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:b(2822,1,"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:b(2833,1,"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_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:b(2834,1,"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 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:b(2835,1,"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 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:b(2836,1,"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:b(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:b(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:b(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:b(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:b(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:b(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:b(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:b(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:b(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:b(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:b(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_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:b(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements 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_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Import_declaration_0_is_using_private_name_1:b(4e3,1,"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:b(4002,1,"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:b(4004,1,"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:b(4006,1,"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:b(4008,1,"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:b(4010,1,"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:b(4012,1,"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:b(4014,1,"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:b(4016,1,"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:b(4019,1,"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:b(4020,1,"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:b(4021,1,"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:b(4022,1,"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:b(4023,1,"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:b(4024,1,"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:b(4025,1,"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:b(4026,1,"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:b(4027,1,"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:b(4028,1,"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:b(4029,1,"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:b(4030,1,"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:b(4031,1,"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:b(4032,1,"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:b(4033,1,"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:b(4034,1,"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:b(4035,1,"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:b(4036,1,"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:b(4037,1,"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:b(4038,1,"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:b(4039,1,"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:b(4040,1,"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:b(4041,1,"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:b(4042,1,"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:b(4043,1,"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:b(4044,1,"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:b(4045,1,"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:b(4046,1,"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:b(4047,1,"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:b(4048,1,"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:b(4049,1,"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:b(4050,1,"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:b(4051,1,"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:b(4052,1,"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:b(4053,1,"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:b(4054,1,"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:b(4055,1,"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:b(4056,1,"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:b(4057,1,"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:b(4058,1,"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:b(4059,1,"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:b(4060,1,"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:b(4061,1,"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:b(4062,1,"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:b(4063,1,"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:b(4064,1,"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:b(4065,1,"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:b(4066,1,"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:b(4067,1,"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:b(4068,1,"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:b(4069,1,"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:b(4070,1,"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:b(4071,1,"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:b(4072,1,"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:b(4073,1,"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:b(4074,1,"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:b(4075,1,"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:b(4076,1,"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:b(4077,1,"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:b(4078,1,"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:b(4081,1,"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:b(4082,1,"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:b(4083,1,"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:b(4084,1,"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}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:b(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:b(4090,1,"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:b(4091,1,"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:b(4092,1,"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:b(4094,1,"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:b(4095,1,"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:b(4096,1,"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:b(4097,1,"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:b(4098,1,"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:b(4099,1,"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:b(4100,1,"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:b(4101,1,"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:b(4102,1,"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:b(4103,1,"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:b(4104,1,"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:b(4105,1,"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:b(4106,1,"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:b(4107,1,"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:b(4108,1,"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:b(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:b(4110,1,"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:b(4111,1,"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:b(4112,1,"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:b(4113,1,"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:b(4114,1,"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:b(4115,1,"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:b(4116,1,"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:b(4117,1,"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:b(4118,1,"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:b(4119,1,"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:b(4120,1,"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:b(4121,1,"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:b(4122,1,"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:b(4123,1,"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:b(4124,1,"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'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are 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:b(5001,1,"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:b(5009,1,"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:b(5010,1,"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:b(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:b(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:b(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:b(5024,1,"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:b(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:b(5033,1,"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:b(5042,1,"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:b(5047,1,"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:b(5048,1,"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:b(5051,1,"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:b(5052,1,"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:b(5053,1,"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:b(5054,1,"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:b(5055,1,"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:b(5056,1,"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:b(5057,1,"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:b(5058,1,"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:b(5059,1,"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:b(5061,1,"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:b(5062,1,"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:b(5063,1,"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:b(5064,1,"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:b(5065,1,"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:b(5066,1,"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:b(5067,1,"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:b(5068,1,"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:b(5069,1,"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_when_moduleResolution_is_set_to_classic:b(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:b(5071,1,"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:b(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:b(5073,1,"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:b(5074,1,"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:b(5075,1,"_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:b(5076,1,"_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:b(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:b(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:b(5079,1,"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:b(5080,1,"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:b(5081,1,"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:b(5082,1,"_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:b(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:b(5085,1,"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:b(5086,1,"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:b(5087,1,"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:b(5088,1,"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:b(5089,1,"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:b(5090,1,"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_0_is_enabled:b(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:b(5092,1,"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:b(5093,1,"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:b(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:b(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:b(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:b(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:b(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:b(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:b(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:b(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:b(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:b(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:b(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:b(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:b(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:b(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:b(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:b(6e3,3,"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:b(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:b(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:b(6004,3,"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:b(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:b(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:b(6007,3,"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:b(6008,3,"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:b(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:b(6010,3,"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:b(6011,3,"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:b(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:b(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:b(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:b(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:b(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:b(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:b(6019,3,"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:b(6020,3,"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:b(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:b(6024,3,"options_6024","options"),file:b(6025,3,"file_6025","file"),Examples_Colon_0:b(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:b(6027,3,"Options_Colon_6027","Options:"),Version_0:b(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:b(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:b(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:b(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:b(6034,3,"KIND_6034","KIND"),FILE:b(6035,3,"FILE_6035","FILE"),VERSION:b(6036,3,"VERSION_6036","VERSION"),LOCATION:b(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:b(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:b(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:b(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:b(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:b(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:b(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:b(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:b(6046,1,"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:b(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:b(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:b(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:b(6052,3,"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:b(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:b(6054,1,"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:b(6055,3,"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:b(6056,3,"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:b(6058,3,"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:b(6059,1,"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:b(6060,3,"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:b(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:b(6064,1,"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:b(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:b(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:b(6070,3,"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:b(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:b(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:b(6073,3,"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:b(6074,3,"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:b(6075,3,"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:b(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:b(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:b(6078,3,"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:b(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:b(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:b(6081,3,"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:b(6082,1,"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:b(6083,3,"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:b(6084,3,"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:b(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:b(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:b(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:b(6088,3,"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:b(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:b(6090,3,"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:b(6091,3,"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:b(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:b(6093,3,"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:b(6094,3,"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_types_Colon_1:b(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:b(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:b(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:b(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:b(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:b(6100,3,"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:b(6101,3,"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:b(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:b(6104,3,"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:b(6105,3,"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:b(6106,3,"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:b(6107,3,"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:b(6108,3,"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:b(6109,3,"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:b(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:b(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:b(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:b(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:b(6114,1,"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:b(6115,3,"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:b(6116,3,"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:b(6119,3,"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:b(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:b(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:b(6122,3,"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:b(6123,3,"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:b(6124,3,"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:b(6125,3,"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:b(6126,3,"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:b(6127,3,"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:b(6128,3,"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:b(6130,3,"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:b(6131,1,"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:b(6132,3,"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:b(6133,1,"_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:b(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:b(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:b(6136,3,"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:b(6137,1,"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:b(6138,1,"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:b(6139,3,"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:b(6140,1,"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:b(6141,3,"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:b(6142,1,"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:b(6144,3,"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:b(6145,3,"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:b(6146,3,"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:b(6147,3,"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:b(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:b(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:b(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:b(6151,3,"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:b(6152,3,"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:b(6153,3,"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:b(6154,3,"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:b(6155,3,"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:b(6156,3,"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:b(6157,3,"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:b(6158,3,"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:b(6159,3,"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:b(6160,3,"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:b(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:b(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:b(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:b(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:b(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:b(6166,3,"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:b(6167,3,"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:b(6168,3,"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:b(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:b(6170,3,"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:b(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:b(6179,3,"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:b(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:b(6182,3,"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:b(6183,3,"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:b(6184,3,"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:b(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:b(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:b(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:b(6189,1,"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:b(6191,3,"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:b(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:b(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:b(6194,3,"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:b(6195,3,"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:b(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:b(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:b(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:b(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:b(6200,1,"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:b(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:b(6202,1,"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:b(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:b(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:b(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:b(6206,3,"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:b(6207,3,"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:b(6208,3,"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:b(6209,3,"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:b(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:b(6211,3,"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:b(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:b(6213,3,"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:b(6214,3,"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:b(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:b(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:b(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:b(6218,3,"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:b(6219,3,"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:b(6220,3,"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:b(6221,3,"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:b(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:b(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:b(6224,3,"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:b(6225,3,"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:b(6226,3,"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:b(6227,3,"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:b(6229,1,"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:b(6230,1,"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:b(6231,1,"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:b(6232,1,"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:b(6233,1,"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:b(6234,1,"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:b(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:b(6236,1,"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:b(6237,3,"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:b(6238,1,"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:b(6239,3,"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:b(6240,3,"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:b(6241,3,"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:b(6242,3,"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:b(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:b(6244,3,"Modules_6244","Modules"),File_Management:b(6245,3,"File_Management_6245","File Management"),Emit:b(6246,3,"Emit_6246","Emit"),JavaScript_Support:b(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:b(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:b(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:b(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:b(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:b(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:b(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:b(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:b(6255,3,"Projects_6255","Projects"),Output_Formatting:b(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:b(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:b(6258,1,"_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_0:b(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:b(6260,3,"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:b(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:b(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:b(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:b(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:b(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:b(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:b(6270,3,"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:b(6271,3,"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:b(6272,3,"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:b(6273,3,"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:b(6274,3,"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:b(6275,3,"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:b(6276,3,"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}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:b(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:b(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:b(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:b(6304,1,"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:b(6305,1,"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:b(6306,1,"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:b(6307,1,"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:b(6308,1,"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:b(6309,1,"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:b(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:b(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:b(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:b(6352,3,"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:b(6353,3,"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:b(6354,3,"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:b(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:b(6356,3,"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:b(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:b(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:b(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:b(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:b(6362,3,"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:b(6363,3,"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:b(6364,3,"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:b(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:b(6367,3,"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:b(6369,1,"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:b(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:b(6371,3,"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:b(6372,3,"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:b(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:b(6374,3,"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:b(6375,3,"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:b(6376,3,"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:b(6377,1,"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}'"),Composite_projects_may_not_disable_incremental_compilation:b(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:b(6380,3,"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:b(6381,3,"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:b(6382,3,"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:b(6383,3,"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:b(6384,3,"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:b(6385,2,"_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:b(6386,3,"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:b(6387,2,"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:b(6388,3,"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:b(6389,3,"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:b(6390,3,"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:b(6391,3,"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:b(6392,3,"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:b(6393,3,"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:b(6394,3,"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:b(6395,3,"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:b(6396,3,"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:b(6397,3,"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:b(6398,3,"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."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:b(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:b(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:b(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:b(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:b(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:b(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:b(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:b(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:b(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:b(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:b(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:b(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:b(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:b(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:b(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:b(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:b(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:b(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:b(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:b(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:b(6500,3,"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:b(6501,3,"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:b(6502,3,"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:b(6503,3,"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:b(6504,1,"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:b(6505,3,"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:b(6506,3,"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:b(6600,3,"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:b(6601,3,"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:b(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:b(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:b(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:b(6605,3,"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:b(6606,3,"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:b(6607,3,"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:b(6608,3,"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:b(6609,3,"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:b(6611,3,"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:b(6612,3,"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:b(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:b(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:b(6615,3,"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:b(6616,3,"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:b(6617,3,"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:b(6618,3,"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:b(6619,3,"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:b(6620,3,"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:b(6621,3,"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:b(6622,3,"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:b(6623,3,"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:b(6624,3,"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:b(6625,3,"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:b(6626,3,"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:b(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:b(6628,3,"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:b(6629,3,"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_legacy_experimental_decorators:b(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:b(6631,3,"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:b(6632,3,"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:b(6633,3,"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:b(6634,3,"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:b(6635,3,"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:b(6636,3,"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:b(6637,3,"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:b(6638,3,"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:b(6639,3,"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:b(6641,3,"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:b(6642,3,"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:b(6643,3,"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:b(6644,3,"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:b(6645,3,"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:b(6646,3,"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:b(6647,3,"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:b(6648,3,"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:b(6649,3,"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:b(6650,3,"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:b(6651,3,"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:b(6652,3,"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:b(6653,3,"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:b(6654,3,"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:b(6655,3,"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:b(6656,3,"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:b(6657,3,"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:b(6658,3,"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:b(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:b(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:b(6661,3,"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:b(6662,3,"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:b(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:b(6664,3,"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:b(6665,3,"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:b(6666,3,"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:b(6667,3,"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:b(6668,3,"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:b(6669,3,"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:b(6670,3,"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:b(6671,3,"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:b(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:b(6673,3,"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:b(6674,3,"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_local_variables_aren_t_read:b(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:b(6676,3,"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:b(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:b(6678,3,"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:b(6679,3,"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:b(6680,3,"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:b(6681,3,"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:b(6682,3,"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:b(6683,3,"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:b(6684,3,"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:b(6685,3,"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:b(6686,3,"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:b(6687,3,"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:b(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:b(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:b(6690,3,"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:b(6691,3,"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:b(6692,3,"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:b(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:b(6694,3,"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:b(6695,3,"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:b(6697,3,"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:b(6698,3,"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:b(6699,3,"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:b(6700,3,"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:b(6701,3,"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:b(6702,3,"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:b(6703,3,"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:b(6704,3,"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:b(6705,3,"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:b(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:b(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:b(6709,3,"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:b(6710,3,"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:b(6711,3,"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:b(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:b(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:b(6714,3,"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:b(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:b(6717,3,"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:b(6718,3,"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."),Default_catch_clause_variables_as_unknown_instead_of_any:b(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:b(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:b(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:b(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:b(6902,3,"type_Colon_6902","type:"),default_Colon:b(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:b(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:b(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:b(6906,3,"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:b(6907,3,"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:b(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:b(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:b(69010,3,"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:b(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:b(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:b(6913,3,"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:b(6914,3,"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:b(6915,3,"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:b(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:b(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:b(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:b(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:b(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:b(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:b(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:b(6923,3,"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:b(6924,3,"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:b(6925,3,"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:b(6926,3,"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:b(6927,3,"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:b(6928,3,"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:b(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:b(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:b(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:b(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:b(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:b(7008,1,"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:b(7009,1,"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:b(7010,1,"_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:b(7011,1,"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."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:b(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7013,1,"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:b(7014,1,"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:b(7015,1,"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:b(7016,1,"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:b(7017,1,"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:b(7018,1,"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:b(7019,1,"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:b(7020,1,"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:b(7022,1,"_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:b(7023,1,"_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:b(7024,1,"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:b(7025,1,"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:b(7026,1,"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:b(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:b(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:b(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:b(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:b(7031,1,"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:b(7032,1,"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:b(7033,1,"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:b(7034,1,"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:b(7035,1,"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:b(7036,1,"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:b(7037,3,"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:b(7038,3,"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:b(7039,1,"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:b(7040,1,"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:b(7041,1,"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:b(7042,1,"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:b(7043,2,"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:b(7044,2,"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:b(7045,2,"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:b(7046,2,"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:b(7047,2,"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:b(7048,2,"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:b(7049,2,"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:b(7050,2,"_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:b(7051,1,"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:b(7052,1,"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:b(7053,1,"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:b(7054,1,"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:b(7055,1,"_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:b(7056,1,"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:b(7057,1,"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:b(7058,1,"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:b(7059,1,"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:b(7060,1,"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:b(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:b(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:b(8001,1,"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:b(8002,1,"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:b(8003,1,"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:b(8004,1,"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:b(8005,1,"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:b(8006,1,"_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:b(8008,1,"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:b(8009,1,"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:b(8010,1,"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:b(8011,1,"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:b(8012,1,"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:b(8013,1,"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:b(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:b(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:b(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:b(8020,1,"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:b(8021,1,"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:b(8022,1,"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:b(8023,1,"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:b(8024,1,"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:b(8025,1,"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:b(8026,1,"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:b(8027,1,"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:b(8028,1,"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:b(8029,1,"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:b(8030,1,"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:b(8031,1,"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:b(8032,1,"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:b(8033,1,"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:b(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:b(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:b(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:b(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:b(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:b(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:b(9005,1,"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:b(9006,1,"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:b(17e3,1,"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:b(17001,1,"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:b(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:b(17004,1,"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:b(17005,1,"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:b(17006,1,"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:b(17007,1,"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:b(17008,1,"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:b(17009,1,"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:b(17010,1,"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:b(17011,1,"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:b(17012,1,"_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:b(17013,1,"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:b(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:b(17015,1,"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:b(17016,1,"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:b(17017,1,"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:b(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:b(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:b(18002,1,"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:b(18003,1,"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:b(80001,2,"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:b(80002,2,"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:b(80003,2,"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:b(80004,2,"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:b(80005,2,"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:b(80006,2,"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:b(80007,2,"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:b(80008,2,"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."),JSDoc_typedef_may_be_converted_to_TypeScript_type:b(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:b(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:b(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:b(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:b(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:b(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:b(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:b(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:b(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:b(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:b(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:b(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:b(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:b(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:b(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:b(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:b(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:b(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:b(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:b(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:b(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:b(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:b(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:b(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:b(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:b(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:b(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:b(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:b(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:b(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:b(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:b(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:b(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:b(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:b(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:b(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:b(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:b(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:b(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:b(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:b(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:b(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:b(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:b(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:b(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:b(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:b(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:b(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:b(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:b(95005,3,"Extract_function_95005","Extract function"),Extract_constant:b(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:b(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:b(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:b(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:b(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:b(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:b(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:b(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:b(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:b(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:b(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:b(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:b(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:b(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:b(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:b(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:b(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:b(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:b(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:b(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:b(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:b(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:b(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:b(95030,3,"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:b(95031,3,"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:b(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:b(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:b(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:b(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:b(95036,3,"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:b(95037,3,"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:b(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:b(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:b(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:b(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:b(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:b(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:b(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:b(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:b(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:b(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:b(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:b(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:b(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:b(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:b(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:b(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:b(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:b(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:b(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:b(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:b(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:b(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:b(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:b(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:b(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:b(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:b(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:b(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:b(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:b(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:b(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:b(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:b(95070,3,"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:b(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:b(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:b(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:b(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:b(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:b(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:b(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:b(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:b(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:b(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:b(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:b(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:b(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:b(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:b(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:b(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:b(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:b(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:b(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:b(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:b(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:b(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:b(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:b(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:b(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:b(95097,3,"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:b(95098,3,"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:b(95099,3,"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:b(95100,3,"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:b(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:b(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:b(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:b(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:b(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:b(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:b(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:b(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:b(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:b(95112,3,"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:b(95113,3,"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:b(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:b(95115,3,"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:b(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:b(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:b(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:b(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:b(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:b(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:b(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:b(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:b(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:b(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:b(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:b(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:b(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:b(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:b(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:b(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:b(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:b(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:b(95134,3,"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:b(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:b(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:b(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:b(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:b(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:b(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:b(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:b(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:b(95143,3,"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:b(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:b(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:b(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:b(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:b(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:b(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:b(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:b(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:b(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:b(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:b(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:b(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:b(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:b(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:b(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:b(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:b(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:b(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:b(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:b(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:b(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:b(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:b(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:b(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:b(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:b(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:b(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:b(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:b(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:b(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:b(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:b(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:b(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:b(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:b(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:b(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:b(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:b(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:b(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:b(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:b(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:b(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:b(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:b(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:b(18004,1,"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:b(18006,1,"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:b(18007,1,"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:b(18009,1,"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:b(18010,1,"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:b(18011,1,"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:b(18012,1,"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:b(18013,1,"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:b(18014,1,"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:b(18015,1,"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:b(18016,1,"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:b(18017,1,"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:b(18018,1,"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:b(18019,1,"_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:b(18024,1,"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:b(18026,1,"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:b(18027,1,"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:b(18028,1,"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:b(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:b(18030,1,"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:b(18031,1,"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:b(18032,1,"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."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:b(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:b(18034,3,"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:b(18035,1,"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:b(18036,1,"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:b(18037,1,"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:b(18038,1,"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:b(18039,1,"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:b(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:b(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:b(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:b(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:b(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:b(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:b(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:b(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:b(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:b(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:b(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:b(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:b(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function z_(e){return e>=80}function rce(e){return e===32||z_(e)}function RC(e,t){if(e=2?RC(e,dce):t===1?RC(e,fce):RC(e,_ce)}function oDe(e,t){return t>=2?RC(e,mce):t===1?RC(e,pce):RC(e,uce)}function cDe(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function sa(e){return yce[e]}function Uv(e){return UU.get(e)}function ow(e){const t=[];let r=0,i=0;for(;r127&&Yl(a)&&(t.push(i),i=r);break}}return t.push(i),t}function cw(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):JU(zg(e),t,r,e.text,i)}function JU(e,t,r,i,a){(t<0||t>=e.length)&&(a?t=t<0?0:t>=e.length?e.length-1:t:E.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?N7(e,ow(i)):"unknown"}`));const o=e[t]+r;return a?o>e[t+1]?e[t+1]:typeof i=="string"&&o>i.length?i.length:o:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Yl(e){return e===10||e===13||e===8232||e===8233}function Gk(e){return e>=48&&e<=57}function ice(e){return Gk(e)||e>=65&&e<=70||e>=97&&e<=102}function lDe(e){return e<=1114111}function UI(e){return e>=48&&e<=55}function sce(e,t){const r=e.charCodeAt(t);switch(r){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 t===0;default:return r>127}}function ua(e,t,r,i,a){if(Md(t))return t;let o=!1;for(;;){const l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;o=!!a;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&qm(l)){t++;continue}break}return t}}function $k(e,t){if(E.assert(t>=0),t===0||Yl(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+pw=0&&r127&&qm(C)){y&&Yl(C)&&(m=!0),r++;continue}break e}}return y&&(k=a(u,f,g,m,o,k)),k}function _w(e,t,r,i){return WI(!1,e,t,!1,r,i)}function uw(e,t,r,i){return WI(!1,e,t,!0,r,i)}function ace(e,t,r,i,a){return WI(!0,e,t,!1,r,i,a)}function oce(e,t,r,i,a){return WI(!0,e,t,!0,r,i,a)}function cce(e,t,r,i,a,o=[]){return o.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),o}function Hm(e,t){return ace(e,t,cce,void 0,void 0)}function ly(e,t){return oce(e,t,cce,void 0,void 0)}function qI(e){const t=HI.exec(e);if(t)return t[0]}function Gm(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&VI(e,t)}function _y(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&oDe(e,t)}function pf(e,t,r){let i=Vg(e,0);if(!Gm(i,t))return!1;for(let a=Qh(i);am,getStartPos:()=>m,getTokenEnd:()=>f,getTextPos:()=>f,getToken:()=>x,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,f),getTokenValue:()=>k,hasUnicodeEscape:()=>(C&1024)!==0,hasExtendedUnicodeEscape:()=>(C&8)!==0,hasPrecedingLineBreak:()=>(C&1)!==0,hasPrecedingJSDocComment:()=>(C&2)!==0,isIdentifier:()=>x===80||x>118,isReservedWord:()=>x>=83&&x<=118,isUnterminated:()=>(C&4)!==0,getCommentDirectives:()=>N,getNumericLiteralFlags:()=>C&25584,getTokenFlags:()=>C,reScanGreaterToken:xe,reScanAsteriskEqualsToken:rt,reScanSlashToken:ct,reScanTemplateToken:Ge,reScanTemplateHeadOrNoSubstitutionTemplate:tt,scanJsxIdentifier:bt,scanJsxAttributeValue:_r,reScanJsxAttributeValue:Tn,reScanJsxToken:mt,reScanLessThanToken:Je,reScanHashToken:at,reScanQuestionToken:zt,reScanInvalidIdentifier:ve,scanJsxToken:It,scanJsDocToken:Kn,scanJSDocCommentTextToken:jt,scan:Xe,getText:pt,clearCommentDirectives:ur,setText:yn,setScriptTarget:cn,setLanguageVariant:In,setOnError:Ct,resetTokenState:xr,setTextPos:xr,setInJSDocType:wi,tryScan:Nr,lookAhead:Si,scanRange:fi};return E.isDebugging&&Object.defineProperty(M,"__debugShowCurrentPositionInText",{get:()=>{const Zt=M.getText();return Zt.slice(0,M.getTokenFullStart())+"\u2551"+Zt.slice(M.getTokenFullStart())}}),M;function V(Zt,Gt=f,xn,Gr){if(a){const Er=f;f=Gt,a(Zt,xn||0,Gr),f=Er}}function U(){let Zt=f,Gt=!1,xn=!1,Gr="";for(;;){const Er=u.charCodeAt(f);if(Er===95){C|=512,Gt?(Gt=!1,xn=!0,Gr+=u.substring(Zt,f)):(C|=16384,V(xn?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1)),f++,Zt=f;continue}if(Gk(Er)){Gt=!0,xn=!1,f++;continue}break}return u.charCodeAt(f-1)===95&&(C|=16384,V(p.Numeric_separators_are_not_allowed_here,f-1,1)),Gr+u.substring(Zt,f)}function Y(){let Zt=f,Gt;if(u.charCodeAt(f)===48)if(f++,u.charCodeAt(f)===95)C|=16896,V(p.Numeric_separators_are_not_allowed_here,f,1),f--,Gt=U();else if(!ee())C|=8192,Gt=""+ +k;else if(!k)Gt="0";else{k=""+parseInt(k,8),C|=32;const ut=x===41,kt=(ut?"-":"")+"0o"+(+k).toString(8);return ut&&Zt--,V(p.Octal_literals_are_not_allowed_Use_the_syntax_0,Zt,f-Zt,kt),9}else Gt=U();let xn,Gr;u.charCodeAt(f)===46&&(f++,xn=U());let Er=f;if(u.charCodeAt(f)===69||u.charCodeAt(f)===101){f++,C|=16,(u.charCodeAt(f)===43||u.charCodeAt(f)===45)&&f++;const ut=f,kt=U();kt?(Gr=u.substring(Er,ut)+kt,Er=f):V(p.Digit_expected)}let ze;if(C&512?(ze=Gt,xn&&(ze+="."+xn),Gr&&(ze+=Gr)):ze=u.substring(Zt,Er),C&8192)return V(p.Decimals_with_leading_zeros_are_not_allowed,Zt,Er-Zt),k=""+ +ze,9;if(xn!==void 0||C&16)return j(Zt,xn===void 0&&!!(C&16)),k=""+ +ze,9;{k=ze;const ut=De();return j(Zt),ut}}function j(Zt,Gt){if(!Gm(Vg(u,f),e))return;const xn=f,{length:Gr}=fe();Gr===1&&u[xn]==="n"?V(Gt?p.A_bigint_literal_cannot_use_exponential_notation:p.A_bigint_literal_must_be_an_integer,Zt,xn-Zt+1):(V(p.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,xn,Gr),f=xn)}function ee(){const Zt=f;let Gt=!0;for(;Gk(u.charCodeAt(f));)UI(u.charCodeAt(f))||(Gt=!1),f++;return k=u.substring(Zt,f),Gt}function R(Zt,Gt){const xn=oe(Zt,!1,Gt);return xn?parseInt(xn,16):-1}function Z(Zt,Gt){return oe(Zt,!0,Gt)}function oe(Zt,Gt,xn){let Gr=[],Er=!1,ze=!1;for(;Gr.length=65&&ut<=70)ut+=32;else if(!(ut>=48&&ut<=57||ut>=97&&ut<=102))break;Gr.push(ut),f++,ze=!1}return Gr.length=g){xn+=u.substring(Gr,f),C|=4,V(p.Unterminated_string_literal);break}const Er=u.charCodeAt(f);if(Er===Gt){xn+=u.substring(Gr,f),f++;break}if(Er===92&&!Zt){xn+=u.substring(Gr,f),xn+=H(!0),Gr=f;continue}if(Yl(Er)&&!Zt){xn+=u.substring(Gr,f),C|=4,V(p.Unterminated_string_literal);break}f++}return xn}function X(Zt){const Gt=u.charCodeAt(f)===96;f++;let xn=f,Gr="",Er;for(;;){if(f>=g){Gr+=u.substring(xn,f),C|=4,V(p.Unterminated_template_literal),Er=Gt?15:18;break}const ze=u.charCodeAt(f);if(ze===96){Gr+=u.substring(xn,f),f++,Er=Gt?15:18;break}if(ze===36&&f+1=g)return V(p.Unexpected_end_of_text),"";const xn=u.charCodeAt(f);switch(f++,xn){case 48:if(f>=g||!Gk(u.charCodeAt(f)))return"\0";case 49:case 50:case 51:f=g?(C|=2048,Zt&&V(p.Unexpected_end_of_text),u.substring(Gt,f)):u.charCodeAt(f)!==125?(C|=2048,Zt&&V(p.Unterminated_Unicode_escape_sequence),u.substring(Gt,f)):(f++,C|=8,Xk(Er)):(C|=2048,Zt&&V(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(Gt,f))}for(;f1114111&&(V(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),xn=!0),f>=g?(V(p.Unexpected_end_of_text),xn=!0):u.charCodeAt(f)===125?f++:(V(p.Unterminated_Unicode_escape_sequence),xn=!0),xn?"":Xk(Gt)}function re(){if(f+5=0&&_y(xn,e)){f+=3,C|=8,Zt+=Q(),Gt=f;continue}if(xn=re(),!(xn>=0&&_y(xn,e)))break;C|=1024,Zt+=u.substring(Gt,f),Zt+=Xk(xn),f+=6,Gt=f}else break}return Zt+=u.substring(Gt,f),Zt}function G(){const Zt=k.length;if(Zt>=2&&Zt<=12){const Gt=k.charCodeAt(0);if(Gt>=97&&Gt<=122){const xn=lce.get(k);if(xn!==void 0)return x=xn}}return x=80}function Ne(Zt){let Gt="",xn=!1,Gr=!1;for(;;){const Er=u.charCodeAt(f);if(Er===95){C|=512,xn?(xn=!1,Gr=!0):V(Gr?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1),f++;continue}if(xn=!0,!Gk(Er)||Er-48>=Zt)break;Gt+=u[f],f++,Gr=!1}return u.charCodeAt(f-1)===95&&V(p.Numeric_separators_are_not_allowed_here,f-1,1),Gt}function De(){return u.charCodeAt(f)===110?(k+="n",C&384&&(k=R3(k)+"n"),f++,10):(k=""+(C&128?parseInt(k.slice(2),2):C&256?parseInt(k.slice(2),8):+k),9)}function Xe(){m=f,C=0;let Zt=!1;for(;;){if(y=f,f>=g)return x=1;const Gt=Vg(u,f);if(f===0){if(Gt===65533)return V(p.File_appears_to_be_binary),f=g,x=8;if(Gt===35&&zU(u,f)){if(f=VU(u,f),t)continue;return x=6}}switch(Gt){case 10:case 13:if(C|=1,t){f++;continue}else return Gt===13&&f+1=0&&Gm(xn,e))return f+=3,C|=8,k=Q()+fe(),x=G();const Gr=re();return Gr>=0&&Gm(Gr,e)?(f+=6,C|=1024,k=String.fromCharCode(Gr)+fe(),x=G()):(V(p.Invalid_character),f++,x=0);case 35:if(f!==0&&u[f+1]==="!")return V(p.can_only_be_used_at_the_start_of_a_file),f++,x=0;const Er=Vg(u,f+1);if(Er===92){f++;const kt=ue();if(kt>=0&&Gm(kt,e))return f+=3,C|=8,k="#"+Q()+fe(),x=81;const st=re();if(st>=0&&Gm(st,e))return f+=6,C|=1024,k="#"+String.fromCharCode(st)+fe(),x=81;f--}return Gm(Er,e)?(f++,be(Er,e)):(k="#",V(p.Invalid_character,f++,Qh(Gt))),x=81;default:const ze=be(Gt,e);if(ze)return x=ze;if(Ad(Gt)){f+=Qh(Gt);continue}else if(Yl(Gt)){C|=1,f+=Qh(Gt);continue}const ut=Qh(Gt);return V(p.Invalid_character,f,ut),f+=ut,x=0}}}function ve(){E.assert(x===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),f=y=m,C=0;const Zt=Vg(u,f),Gt=be(Zt,99);return Gt?x=Gt:(f+=Qh(Zt),x)}function be(Zt,Gt){let xn=Zt;if(Gm(xn,Gt)){for(f+=Qh(xn);f=g)return x=1;let Gt=u.charCodeAt(f);if(Gt===60)return u.charCodeAt(f+1)===47?(f+=2,x=31):(f++,x=30);if(Gt===123)return f++,x=19;let xn=0;for(;f0)break;qm(Gt)||(xn=f)}f++}return k=u.substring(m,f),xn===-1?13:12}function bt(){if(z_(x)){for(;f=g)return x=1;for(let Gt=u.charCodeAt(f);f=0&&Ad(u.charCodeAt(f-1))&&!(f+1=g)return x=1;const Zt=Vg(u,f);switch(f+=Qh(Zt),Zt){case 9:case 11:case 12:case 32:for(;f=0&&Gm(Gt,e))return f+=3,C|=8,k=Q()+fe(),x=G();const xn=re();return xn>=0&&Gm(xn,e)?(f+=6,C|=1024,k=String.fromCharCode(xn)+fe(),x=G()):(f++,x=0)}if(Gm(Zt,e)){let Gt=Zt;for(;f=0),f=Zt,m=Zt,y=Zt,x=0,k=void 0,C=0}function wi(Zt){D+=Zt?1:-1}}function Qh(e){return e>=65536?2:1}function _De(e){if(E.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Xk(e){return vce(e)}var fw,lce,UU,_ce,uce,fce,pce,dce,mce,gce,hce,yce,pw,HI,Vg,vce,uDe=Bt({"src/compiler/scanner.ts"(){Os(),fw={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},lce=new Map(Object.entries(fw)),UU=new Map(Object.entries({...fw,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),_ce=[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],uce=[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],fce=[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],pce=[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],dce=[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],mce=[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],gce=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,hce=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,yce=cDe(UU),pw=7,HI=/^#!.*/,Vg=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,r){const i=t.length;if(r<0||r>=i)return;const a=t.charCodeAt(r);if(a>=55296&&a<=56319&&i>r+1){const o=t.charCodeAt(r+1);if(o>=56320&&o<=57343)return(a-55296)*1024+o-56320+65536}return a},vce=String.fromCodePoint?e=>String.fromCodePoint(e):_De}});function Al(e){return $u(e)||Dd(e)}function Qk(e){return L7(e,N3)}function GI(e){switch(Oa(e)){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"}}function Zl(e){return e.start+e.length}function bce(e){return e.length===0}function WU(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Tce(e,t){return t.start>=e.start&&Zl(t)<=Zl(e)}function fDe(e,t){return xce(e,t)!==void 0}function xce(e,t){const r=kce(e,t);return r&&r.length===0?void 0:r}function pDe(e,t){return XI(e.start,e.length,t.start,t.length)}function $I(e,t,r){return XI(e.start,e.length,t,r)}function XI(e,t,r,i){const a=e+t,o=r+i;return r<=a&&o>=e}function Sce(e,t){return t<=Zl(e)&&t>=e.start}function kce(e,t){const r=Math.max(e.start,t.start),i=Math.min(Zl(e),Zl(t));return r<=i?ll(r,i):void 0}function yl(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function ll(e,t){return yl(e,t-e)}function zC(e){return yl(e.span.start,e.newLength)}function Cce(e){return bce(e.span)&&e.newLength===0}function mw(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function dDe(e){if(e.length===0)return hW;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=Zl(t.span),a=r+t.newLength;for(let o=1;o=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Li(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function lr(e){return Li(e.escapedText)}function uy(e){const t=Uv(e.escapedText);return t?Hr(t,ru):void 0}function xc(e){return e.valueDeclaration&&N_(e.valueDeclaration)?lr(e.valueDeclaration.name):Li(e.escapedName)}function Dce(e){const t=e.parent.parent;if(!!t){if(l_(t))return QI(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return QI(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:const i=r.argumentExpression;if(we(i))return i}break;case 217:return QI(t.expression);case 256:{if(l_(t.statement)||nt(t.statement))return QI(t.statement);break}}}}function QI(e){const t=os(e);return t&&we(t)?t:void 0}function gw(e,t){return!!(A_(e)&&we(e.name)&&lr(e.name)===lr(t)||ic(e)&&dt(e.declarationList.declarations,r=>gw(r,t)))}function Ace(e){return e.name||Dce(e)}function A_(e){return!!e.name}function YI(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{const r=e;switch(pc(r)){case 1:case 4:case 5:case 3:return W9(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return Ace(e);case 347:return Dce(e);case 277:{const{expression:r}=e;return we(r)?r:void 0}case 212:const t=e;if(U9(t))return t.argumentExpression}return e.name}function os(e){if(e!==void 0)return YI(e)||(fo(e)||Po(e)||Fl(e)?GU(e):void 0)}function GU(e){if(e.parent){if(Dc(e.parent)||Fa(e.parent))return e.parent.name;if(rr(e.parent)&&e===e.parent.right){if(we(e.parent.left))return e.parent.left;if(Mo(e.parent.left))return W9(e.parent.left)}else if(Mi(e.parent)&&we(e.parent.name))return e.parent.name}else return}function Yh(e){if(Of(e))return Vr(e.modifiers,Wl)}function qv(e){if(Mr(e,126975))return Vr(e.modifiers,Zs)}function Nce(e,t){if(e.name)if(we(e.name)){const r=e.name.escapedText;return UC(e.parent,t).filter(i=>rd(i)&&we(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);E.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=UC(e.parent,t).filter(rd);if(rid(i)&&i.typeParameters.some(a=>a.name.escapedText===r))}function Oce(e){return Ice(e,!1)}function Fce(e){return Ice(e,!0)}function Lce(e){return!!Nf(e,rd)}function Mce(e){return Nf(e,i4)}function Rce(e){return ZU(e,_G)}function $U(e){return Nf(e,zfe)}function yDe(e){return Nf(e,sG)}function Bce(e){return Nf(e,sG,!0)}function vDe(e){return Nf(e,aG)}function jce(e){return Nf(e,aG,!0)}function bDe(e){return Nf(e,oG)}function Jce(e){return Nf(e,oG,!0)}function TDe(e){return Nf(e,cG)}function zce(e){return Nf(e,cG,!0)}function Vce(e){return Nf(e,kF,!0)}function XU(e){return Nf(e,lG)}function Uce(e){return Nf(e,lG,!0)}function QU(e){return Nf(e,_A)}function ZI(e){return Nf(e,Vfe)}function Wce(e){return Nf(e,CF)}function xDe(e){return Nf(e,id)}function YU(e){return Nf(e,EF)}function fy(e){const t=Nf(e,_8);if(t&&t.typeExpression&&t.typeExpression.type)return t}function py(e){let t=Nf(e,_8);return!t&&ns(e)&&(t=Fr(Zk(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function hw(e){const t=Wce(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=fy(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(ef(i)){const a=Fr(i.members,$6);return a&&a.type}if(sg(i)||n4(i))return i.type}}function UC(e,t){var a;var r;if(!rD(e))return Ve;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const o=nq(e,t);E.assert(o.length<2||o[0]!==o[1]),i=Na(o,l=>Dp(l)?l.tags:l),t||((a=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function dy(e){return UC(e,!1)}function SDe(e){return UC(e,!0)}function Nf(e,t,r){return Fr(UC(e,r),t)}function ZU(e,t){return dy(e).filter(t)}function kDe(e,t){return dy(e).filter(r=>r.kind===t)}function yw(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:CDe(t)).join("")}function CDe(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?Nu(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Zh(e){if(Iy(e)){if(l8(e.parent)){const t=l3(e.parent);if(t&&Pn(t.tags))return Na(t.tags,r=>id(r)?r.typeParameters:void 0)}return Ve}if(Zf(e))return E.assert(e.parent.kind===327),Na(e.parent.tags,t=>id(t)?t.typeParameters:void 0);if(e.typeParameters||Kfe(e)&&e.typeParameters)return e.typeParameters;if(Zn(e)){const t=nO(e);if(t.length)return t;const r=py(e);if(r&&sg(r)&&r.typeParameters)return r.typeParameters}return Ve}function Kk(e){return e.constraint?e.constraint:id(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function $m(e){return e.kind===80||e.kind===81}function KI(e){return e.kind===178||e.kind===177}function e9(e){return kr(e)&&!!(e.flags&64)}function KU(e){return No(e)&&!!(e.flags&64)}function Eb(e){return js(e)&&!!(e.flags&64)}function c_(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function WC(e){return c_(e)&&!fS(e)&&!!e.questionDotToken}function t9(e){return WC(e.parent)&&e.parent.expression===e}function qC(e){return!c_(e.parent)||WC(e.parent)||e!==e.parent.expression}function eW(e){return e.kind===226&&e.operatorToken.kind===61}function Ug(e){return sp(e)&&we(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function bp(e){return nl(e,8)}function n9(e){return fS(e)&&!!(e.flags&64)}function HC(e){return e.kind===252||e.kind===251}function tW(e){return e.kind===280||e.kind===279}function qce(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function nW(e){return qce(e)||e.kind===307||e.kind===311}function r9(e){return e.kind===355||e.kind===348}function EDe(e){return vw(e.kind)}function vw(e){return e>=166}function rW(e){return e>=0&&e<=165}function Dx(e){return rW(e.kind)}function Hv(e){return lo(e,"pos")&&lo(e,"end")}function GC(e){return 9<=e&&e<=15}function wb(e){return GC(e.kind)}function iW(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Kh(e){return 15<=e&&e<=18}function Hce(e){return Kh(e.kind)}function i9(e){const t=e.kind;return t===17||t===18}function Ax(e){return yu(e)||p_(e)}function s9(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Gce(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function Gv(e){return s9(e)||Gce(e)}function $ce(e){return pa(e)||we(e)}function sW(e){return e.kind===11||Kh(e.kind)}function jo(e){var t;return we(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Db(e){var t;return Ei(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function bw(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function N_(e){return(Is(e)||n6(e))&&Ei(e.name)}function e6(e){return kr(e)&&Ei(e.name)}function W0(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function $C(e){return!!(Gx(e)&16476)}function aW(e){return $C(e)||e===126||e===164||e===129}function Zs(e){return W0(e.kind)}function Xu(e){const t=e.kind;return t===166||t===80}function Jc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function Ab(e){const t=e.kind;return t===80||t===206||t===207}function ks(e){return!!e&&Nx(e.kind)}function t6(e){return!!e&&(Nx(e.kind)||ec(e))}function Eo(e){return e&&Qce(e.kind)}function Xce(e){return e.kind===112||e.kind===97}function Qce(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Nx(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return Qce(e)}}function oW(e){return Ri(e)||jd(e)||hs(e)&&ks(e.parent)}function Nl(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function ei(e){return e&&(e.kind===263||e.kind===231)}function e1(e){return e&&(e.kind===177||e.kind===178)}function eu(e){return Is(e)&&ym(e)}function n6(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Yce(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function wo(e){return Zs(e)||Wl(e)}function Nb(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function a9(e){return Nb(e)||Nl(e)}function q0(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function Di(e){return jq(e.kind)}function Zce(e){switch(e.kind){case 184:case 185:return!0}return!1}function Ns(e){if(e){const t=e.kind;return t===207||t===206}return!1}function XC(e){const t=e.kind;return t===209||t===210}function o9(e){const t=e.kind;return t===208||t===232}function Tw(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Kce(e){return Mi(e)||ns(e)||Sw(e)||kw(e)}function xw(e){return cW(e)||lW(e)}function cW(e){switch(e.kind){case 206:case 210:return!0}return!1}function Sw(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function lW(e){switch(e.kind){case 207:case 209:return!0}return!1}function kw(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Kl(e,!0)}function ele(e){const t=e.kind;return t===211||t===166||t===205}function tle(e){const t=e.kind;return t===211||t===166}function $v(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function Xm(e){return e.kind===213||e.kind===214}function r6(e){const t=e.kind;return t===228||t===15}function pu(e){return nle(bp(e).kind)}function nle(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function _W(e){return rle(bp(e).kind)}function rle(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return nle(e)}}function ile(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function sle(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return wb(e)}}function nt(e){return wDe(bp(e).kind)}function wDe(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return rle(e)}}function Pb(e){const t=e.kind;return t===216||t===234}function DDe(e){return tG(e)||vF(e)}function t1(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&t1(e.statement,t)}return!1}function ale(e){return dc(e)||Yc(e)}function ole(e){return dt(e,ale)}function c9(e){return!Iw(e)&&!dc(e)&&!Mr(e,1)&&!__(e)}function Cw(e){return Iw(e)||dc(e)||Mr(e,1)}function i6(e){return e.kind===249||e.kind===250}function l9(e){return hs(e)||nt(e)}function uW(e){return hs(e)}function Pf(e){return dl(e)||nt(e)}function cle(e){const t=e.kind;return t===268||t===267||t===80}function ADe(e){const t=e.kind;return t===268||t===267}function NDe(e){const t=e.kind;return t===80||t===267}function fW(e){const t=e.kind;return t===275||t===274}function Ew(e){return e.kind===267||e.kind===266}function Nd(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function fm(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function PDe(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function pW(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function dW(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function l_(e){return e.kind===168?e.parent&&e.parent.kind!==352||Zn(e):PDe(e.kind)}function lle(e){return pW(e.kind)}function ww(e){return dW(e.kind)}function Ii(e){const t=e.kind;return dW(t)||pW(t)||IDe(e)}function IDe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!e2(e)}function _le(e){const t=e.kind;return dW(t)||pW(t)||t===241}function ule(e){const t=e.kind;return t===283||t===166||t===80}function QC(e){const t=e.kind;return t===110||t===80||t===211||t===295}function Dw(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function _9(e){const t=e.kind;return t===291||t===293}function fle(e){const t=e.kind;return t===11||t===294}function V_(e){const t=e.kind;return t===286||t===285}function u9(e){const t=e.kind;return t===296||t===297}function s6(e){return e.kind>=316&&e.kind<=357}function f9(e){return e.kind===327||e.kind===326||e.kind===328||Px(e)||a6(e)||r4(e)||Iy(e)}function a6(e){return e.kind>=334&&e.kind<=357}function H0(e){return e.kind===178}function n1(e){return e.kind===177}function Qu(e){if(!rD(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function p9(e){return!!e.type}function r1(e){return!!e.initializer}function Ib(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function mW(e){return e.kind===291||e.kind===293||q0(e)}function d9(e){return e.kind===183||e.kind===233}function ple(e){let t=vW;for(const r of e){if(!r.length)continue;let i=0;for(;ir.kind===t)}function Us(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function pm(e){return(e.flags&33554432)!==0}function FDe(){var e="";const t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&qm(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:_o,decreaseIndent:_o,clear:()=>e=""}}function bW(e,t){return e.configFilePath!==t.configFilePath||mle(e,t)}function mle(e,t){return o6(e,t,HF)}function gle(e,t){return o6(e,t,QG)}function o6(e,t,r){return e!==t&&r.some(i=>!nH(gO(e,i),gO(t,i)))}function hle(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Ri(e))return;e=e.parent}}function Au(e,t){const r=e.entries();for(const[i,a]of r){const o=t(a,i);if(o)return o}}function Ix(e,t){const r=e.keys();for(const i of r){const a=t(i);if(a)return a}}function m9(e,t){e.forEach((r,i)=>{t.set(i,r)})}function YC(e){const t=q3.getText();try{return e(q3),q3.getText()}finally{q3.clear(),q3.writeKeyword(t)}}function Aw(e){return e.end-e.pos}function Ox(e,t,r){var i,a;return(a=(i=e==null?void 0:e.resolvedModules)==null?void 0:i.get(t,r))==null?void 0:a.resolvedModule}function yle(e,t,r,i){e.resolvedModules||(e.resolvedModules=oT()),e.resolvedModules.set(t,i,r)}function vle(e,t,r,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=oT()),e.resolvedTypeReferenceDirectiveNames.set(t,i,r)}function LDe(e,t,r){var i,a;return(a=(i=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,r))==null?void 0:a.resolvedTypeReferenceDirective}function TW(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function ble(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&MDe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.node10Result===t.node10Result}function xW(e,t,r,i,a){var o,l;const u=(l=(o=e.resolvedModules)==null?void 0:o.get(r,i))==null?void 0:l.node10Result,f=u?_s(void 0,p.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,u,u.indexOf(sh+"@types/")>-1?`@types/${T8(a)}`:a):t.typesPackageExists(a)?_s(void 0,p.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,T8(a)):t.packageBundlesTypes(a)?_s(void 0,p.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,a,r):_s(void 0,p.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,T8(a));return f&&(f.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:a===r?void 0:a})),f}function MDe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function g9({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function i1(e){return`${g9(e)}@${e.version}`}function Tle(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function SW(e,t,r,i,a,o){E.assert(e.length===r.length);for(let l=0;l=0),zg(t)[e]}function BDe(e){const t=Bn(e),r=vo(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function Pw(e,t){E.assert(e>=0);const r=zg(t),i=e,a=t.text;if(i+1===r.length)return a.length-1;{const o=r[i];let l=r[i+1]-1;for(E.assert(Yl(a.charCodeAt(l)));o<=l&&Yl(a.charCodeAt(l));)l--;return l}}function y9(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function fc(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Xf(e){return!fc(e)}function Sle(e,t){return Ho(e)?t===e.expression:ec(e)?t===e.modifiers:mf(e)?t===e.initializer:Is(e)?t===e.questionToken&&eu(e):Dc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||ZC(e.modifiers,t,wo):nf(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||ZC(e.modifiers,t,wo):Ec(e)?t===e.exclamationToken:wc(e)?t===e.typeParameters||t===e.type||ZC(e.typeParameters,t,Ho):gf(e)?t===e.typeParameters||ZC(e.typeParameters,t,Ho):Fu(e)?t===e.typeParameters||t===e.type||ZC(e.typeParameters,t,Ho):cA(e)?t===e.modifiers||ZC(e.modifiers,t,wo):!1}function ZC(e,t,r){return!e||Ds(t)||!r(t)?!1:gs(e,t)}function kle(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${vo(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:a,markUsed:o};function a(){return ia(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function o(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function Fb(e,t,r){return fc(e)?e.pos:s6(e)||e.kind===12?ua((t||Bn(e)).text,e.pos,!1,!0):r&&Qu(e)?Fb(e.jsDoc[0],t):e.kind===358&&e._children.length>0?Fb(e._children[0],t,r):ua((t||Bn(e)).text,e.pos,!1,!1,Uw(e))}function EW(e,t){const r=!fc(e)&&Ap(e)?hx(e.modifiers,Wl):void 0;return r?ua((t||Bn(e)).text,r.end):Fb(e,t)}function Xv(e,t,r=!1){return KC(e.text,t,r)}function JDe(e){return!!On(e,nT)}function b9(e){return!!(Yc(e)&&e.exportClause&&og(e.exportClause)&&e.exportClause.name.escapedText==="default")}function KC(e,t,r=!1){if(fc(t))return"";let i=e.substring(r?t.pos:ua(e,t.pos),t.end);return JDe(t)&&(i=i.split(/\r\n|\n|\r/).map(a=>PC(a.replace(/^\s*\*/,""))).join(` -`)),i}function el(e,t=!1){return Xv(Bn(e),e,t)}function zDe(e){return e.pos}function l6(e,t){return Hh(e,t,zDe,Co)}function ma(e){const t=e.emitNode;return t&&t.flags||0}function Tp(e){const t=e.emitNode;return t&&t.internalFlags||0}function wW(){return new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:Ve})),AsyncIterator:new Map(Object.entries({es2015:Ve})),Atomics:new Map(Object.entries({es2017:Ve})),SharedArrayBuffer:new Map(Object.entries({es2017:Ve})),AsyncIterable:new Map(Object.entries({es2018:Ve})),AsyncIterableIterator:new Map(Object.entries({es2018:Ve})),AsyncGenerator:new Map(Object.entries({es2018:Ve})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Ve})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Ve,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:Ve})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function Dle(e,t,r){var i;if(t&&VDe(e,r))return Xv(t,e);switch(e.kind){case 11:{const a=r&2?hq:r&1||ma(e)&16777216?Ux:dD;return e.singleQuote?"'"+a(e.text,39)+"'":'"'+a(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const a=r&1||ma(e)&16777216?Ux:dD,o=(i=e.rawText)!=null?i:lAe(a(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return E.fail(`Literal kind '${e.kind}' not accounted for.`)}function VDe(e,t){if(Do(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(Ou(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!uF(e)}function Ale(e){return $s(e)?'"'+dD(e)+'"':""+e}function Nle(e){return Jl(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function DW(e){return(U0(e)&7)!==0||AW(e)}function AW(e){const t=hm(e);return t.kind===260&&t.parent.kind===299}function __(e){return Nc(e)&&(e.name.kind===11||Pd(e))}function T9(e){return Nc(e)&&e.name.kind===11}function NW(e){return Nc(e)&&pa(e.name)}function Ple(e){return Nc(e)||we(e)}function e3(e){return UDe(e.valueDeclaration)}function UDe(e){return!!e&&e.kind===267&&!e.body}function Ile(e){return e.kind===312||e.kind===267||t6(e)}function Pd(e){return!!(e.flags&2048)}function Qv(e){return __(e)&&PW(e)}function PW(e){switch(e.parent.kind){case 312:return zc(e.parent);case 268:return __(e.parent.parent)&&Ri(e.parent.parent.parent)&&!zc(e.parent.parent.parent)}return!1}function IW(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!Qv(r)&&!(Nc(r)&&Pd(r)))}function WDe(e){return e===1||e===100||e===199}function Fx(e,t){return zc(e)||WDe(Ul(t))&&!!e.commonJsModuleIndicator}function OW(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:np(t,"alwaysStrict")||$fe(e.statements)?!0:zc(e)||ed(t)?Ul(t)>=5?!0:!t.noImplicitUseStrict:!1}function FW(e){return!!(e.flags&33554432)||Mr(e,2)}function LW(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!t6(t)}return!1}function MW(e){switch(E.type(e),e.kind){case 345:case 353:case 330:return!0;default:return RW(e)}}function RW(e){switch(E.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Lb(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Ole(e){return Lb(e)||t2(e)}function x9(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Fle(e){return Iw(e)||Nc(e)||ag(e)||Zu(e)}function Iw(e){return Lb(e)||Yc(e)}function BW(e){return On(e.parent,t=>!!(x$(t)&1))}function mm(e){return On(e.parent,t=>LW(t,t.parent))}function Lle(e,t){let r=mm(e);for(;r;)t(r),r=mm(r)}function no(e){return!e||Aw(e)===0?"(Missing)":el(e)}function Mle(e){return e.declaration?no(e.declaration.parameters[0].name):void 0}function Ow(e){return e.kind===167&&!If(e.expression)}function t3(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return qo(e.text);case 167:return If(e.expression)?qo(e.expression.text):void 0;case 295:return z6(e);default:return E.assertNever(e)}}function _6(e){return E.checkDefined(t3(e))}function Nu(e){switch(e.kind){case 110:return"this";case 81:case 80:return Aw(e)===0?lr(e):el(e);case 166:return Nu(e.left)+"."+Nu(e.right);case 211:return we(e.name)||Ei(e.name)?Nu(e.expression)+"."+Nu(e.name):E.assertNever(e.name);case 318:return Nu(e.left)+Nu(e.right);case 295:return Nu(e.namespace)+":"+Nu(e.name);default:return E.assertNever(e)}}function yr(e,t,...r){const i=Bn(e);return Qf(i,e,t,...r)}function u6(e,t,r,...i){const a=ua(e.text,t.pos);return vl(e,a,t.end-a,r,...i)}function Qf(e,t,r,...i){const a=Yv(e,t);return vl(e,a.start,a.length,r,...i)}function Wg(e,t,r,i){const a=Yv(e,t);return S9(e,a.start,a.length,r,i)}function Fw(e,t,r,i){const a=ua(e.text,t.pos);return S9(e,a,t.end-a,r,i)}function jW(e,t,r){E.assertGreaterThanOrEqual(t,0),E.assertGreaterThanOrEqual(r,0),e&&(E.assertLessThanOrEqual(t,e.text.length),E.assertLessThanOrEqual(t+r,e.text.length))}function S9(e,t,r,i,a){return jW(e,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:a}}function JW(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Rle(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function zW(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function gm(e,t){const r=V0(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return ll(i,r.getTokenEnd())}function Ble(e,t){const r=V0(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function qDe(e,t){const r=ua(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=vo(e,t.body.pos),{line:a}=vo(e,t.body.end);if(i0?t.statements[0].pos:t.end;return ll(o,l)}case 253:case 229:{const o=ua(e.text,t.pos);return gm(e,o)}case 238:{const o=ua(e.text,t.expression.end);return gm(e,o)}case 357:{const o=ua(e.text,t.tagName.pos);return gm(e,o)}}if(r===void 0)return gm(e,t.pos);E.assert(!Dp(r));const i=fc(r),a=i||nS(t)?r.pos:ua(e.text,r.pos);return i?(E.assert(a===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(a===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(E.assert(a>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(a<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),ll(a,r.end)}function Yu(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Yf(e){return e.scriptKind===6}function Zv(e){return!!(Wv(e)&2048)}function k9(e){return!!(Wv(e)&64&&!Du(e,e.parent))}function Lw(e){return(U0(e)&7)===6}function Mw(e){return(U0(e)&7)===4}function f6(e){return(U0(e)&7)===2}function C9(e){return(U0(e)&7)===1}function p6(e){return e.kind===213&&e.expression.kind===108}function Zu(e){return e.kind===213&&e.expression.kind===102}function d6(e){return r8(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function my(e){return ag(e)&&wy(e.argument)&&pa(e.argument.literal)}function xp(e){return e.kind===244&&e.expression.kind===11}function Rw(e){return!!(ma(e)&2097152)}function E9(e){return Rw(e)&&tl(e)}function HDe(e){return we(e.name)&&!e.initializer}function w9(e){return Rw(e)&&ic(e)&&$i(e.declarationList.declarations,HDe)}function VW(e,t){return e.kind!==12?Hm(t.text,e.pos):void 0}function UW(e,t){const r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Ki(ly(t,e.pos),Hm(t,e.pos)):Hm(t,e.pos);return Vr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Ym(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return tf(e.parent)&&!TD(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),E.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return tf(t.parent)&&!TD(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return gs(t.typeArguments,e)}}}return!1}function GDe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function Kv(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return ys(i,r)}}}function jle(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);const a=i.expression;a&&r(a);return;case 266:case 264:case 267:case 265:return;default:if(ks(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Ym(i)||ys(i,r)}}}function WW(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?om(e.typeArguments):void 0}function Jle(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function m6(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function zle(e){return m6(e)||e1(e)}function n3(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Vle(e){return Zn(e)?ha(e.parent)&&rr(e.parent.parent)&&pc(e.parent.parent)===2||D9(e.parent):!1}function D9(e){return Zn(e)?rr(e)&&pc(e)===1:!1}function Ule(e){return(Mi(e)?f6(e)&&we(e.name)&&n3(e):Is(e)?v3(e)&&$c(e):mf(e)&&v3(e))||D9(e)}function Wle(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function qW(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function e2(e){return e&&e.kind===241&&ks(e.parent)}function Sp(e){return e&&e.kind===174&&e.parent.kind===210}function A9(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function qle(e){return e&&e.kind===1}function $De(e){return e&&e.kind===0}function g6(e,t,r,i){return mn(e==null?void 0:e.properties,a=>{if(!Dc(a))return;const o=t3(a.name);return t===o||i&&i===o?r(a):void 0})}function Hle(e,t,r){return g6(e,t,i=>u_(i.initializer)?Fr(i.initializer.elements,a=>pa(a)&&a.text===r):void 0)}function r3(e){if(e&&e.statements.length){const t=e.statements[0].expression;return Hr(t,ha)}}function N9(e,t,r){return Bw(e,t,i=>u_(i.initializer)?Fr(i.initializer.elements,a=>pa(a)&&a.text===r):void 0)}function Bw(e,t,r){return g6(r3(e),t,r)}function df(e){return On(e.parent,ks)}function Gle(e){return On(e.parent,Eo)}function Pl(e){return On(e.parent,ei)}function $le(e){return On(e.parent,t=>ei(t)||ks(t)?"quit":ec(t))}function P9(e){return On(e.parent,t6)}function I9(e){const t=On(e.parent,r=>ei(r)?"quit":Wl(r));return t&&ei(t.parent)?Pl(t.parent):Pl(t!=null?t:e)}function tu(e,t,r){for(E.assert(e.kind!==312);;){if(e=e.parent,!e)return E.fail();switch(e.kind){case 167:if(r&&ei(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Nl(e.parent.parent)?e=e.parent.parent:Nl(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function Xle(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function O9(e){we(e)&&(Qc(e.parent)||tl(e.parent))&&e.parent.name===e&&(e=e.parent);const t=tu(e,!0,!1);return Ri(t)}function Qle(e){const t=tu(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function jw(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&Nl(e.parent.parent)?e=e.parent.parent:Nl(e.parent)&&(e=e.parent);break}}}function Mb(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function XDe(e){return e.kind===108||nu(e)}function nu(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function Jw(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function F9(e){var t;return!!e&&Mi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Yle(e){return!!e&&(nf(e)||Dc(e))&&rr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function zw(e){switch(e.kind){case 183:return e.typeName;case 233:return Sc(e.expression)?e.expression:void 0;case 80:case 166:return e}}function L9(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;default:return e.expression}}function M9(e,t,r,i){if(e&&A_(t)&&Ei(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Qc(r):ei(r)&&!o2(t)&&!Eq(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Qc(r):ei(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&i2(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function i3(e,t,r,i){return Of(t)&&M9(e,t,r,i)}function Vw(e,t,r,i){return i3(e,t,r,i)||s3(e,t,r)}function s3(e,t,r){switch(t.kind){case 263:return dt(t.members,i=>Vw(e,i,t,r));case 231:return!e&&dt(t.members,i=>Vw(e,i,t,r));case 174:case 178:case 176:return dt(t.parameters,i=>i3(e,i,t,r));default:return!1}}function a1(e,t){if(i3(e,t))return!0;const r=eg(t);return!!r&&s3(e,r,t)}function HW(e,t,r){let i;if(e1(t)){const{firstAccessor:a,secondAccessor:o,setAccessor:l}=Ub(r.members,t),u=Of(a)?a:o&&Of(o)?o:void 0;if(!u||t!==u)return!1;i=l==null?void 0:l.parameters}else Ec(t)&&(i=t.parameters);if(i3(e,t,r))return!0;if(i){for(const a of i)if(!s2(a)&&i3(e,a,t,r))return!0}return!1}function GW(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return GW(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function h6(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function qg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!tf(e.parent)&&!i4(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||Px(e.parent)||c8(e.parent)||Py(e.parent)||h6(e);case 318:for(;Py(e.parent);)e=e.parent;return e.parent.kind===186||Px(e.parent)||c8(e.parent)||Py(e.parent)||h6(e);case 81:return rr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||Px(e.parent)||c8(e.parent)||Py(e.parent)||h6(e))return!0;case 9:case 10:case 11:case 15:case 110:return R9(e);default:return!1}}function R9(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:const i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Ym(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return qg(t)}}function B9(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function Zle(e){return og(e)&&!!e.parent.moduleSpecifier}function gy(e){return e.kind===271&&e.moduleReference.kind===283}function a3(e){return E.assert(gy(e)),e.moduleReference.expression}function $W(e){return t2(e)&&D3(e.initializer).arguments[0]}function y6(e){return e.kind===271&&e.moduleReference.kind!==283}function P_(e){return Zn(e)}function QDe(e){return!Zn(e)}function Zn(e){return!!e&&!!(e.flags&524288)}function j9(e){return!!e&&!!(e.flags&134217728)}function XW(e){return!Yf(e)}function Uw(e){return!!e&&!!(e.flags&16777216)}function J9(e){return sp(e)&&we(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function du(e,t){if(e.kind!==213)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const a=i[0];return!t||Qa(a)}function QW(e){return e_e(e,!1)}function t2(e){return e_e(e,!0)}function Kle(e){return Fa(e)&&t2(e.parent.parent)}function e_e(e,t){return Mi(e)&&!!e.initializer&&du(t?D3(e.initializer):e.initializer,!0)}function YW(e){return ic(e)&&e.declarationList.declarations.length>0&&$i(e.declarationList.declarations,t=>QW(t))}function Ww(e){return e===39||e===34}function z9(e,t){return Xv(t,e).charCodeAt(0)===34}function o3(e){return rr(e)||Mo(e)||we(e)||js(e)}function qw(e){return Zn(e)&&e.initializer&&rr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Sc(e.name)&&v6(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Hw(e){const t=qw(e);return t&&hy(t,Ty(e.name))}function YDe(e,t){return mn(e.properties,r=>Dc(r)&&we(r.name)&&r.name.escapedText==="value"&&r.initializer&&hy(r.initializer,t))}function Lx(e){if(e&&e.parent&&rr(e.parent)&&e.parent.operatorToken.kind===64){const t=Ty(e.parent.left);return hy(e.parent.right,t)||ZDe(e.parent.left,e.parent.right,t)}if(e&&js(e)&&Mx(e)){const t=YDe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function hy(e,t){if(js(e)){const r=uo(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||ha(e)&&(e.properties.length===0||t))return e}function ZDe(e,t,r){const i=rr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&hy(t.right,r);if(i&&v6(e,t.left))return i}function t_e(e){const t=Mi(e.parent)?e.parent.name:rr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&hy(e.right,Ty(t))&&Sc(t)&&v6(t,e.left)}function ZW(e){if(rr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&rr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&we(t.left))return t.left}else if(Mi(e.parent))return e.parent.name}function v6(e,t){return Od(e)&&Od(t)?kp(e)===kp(t):$m(e)&&V9(t)&&(t.expression.kind===110||we(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?v6(e,Xw(t)):V9(e)&&V9(t)?Hg(e)===Hg(t)&&v6(e.expression,t.expression):!1}function Gw(e){for(;Kl(e,!0);)e=e.right;return e}function Rb(e){return we(e)&&e.escapedText==="exports"}function KW(e){return we(e)&&e.escapedText==="module"}function Zm(e){return(kr(e)||$w(e))&&KW(e.expression)&&Hg(e)==="exports"}function pc(e){const t=KDe(e);return t===5||Zn(e)?t:0}function Mx(e){return Pn(e.arguments)===3&&kr(e.expression)&&we(e.expression.expression)&&lr(e.expression.expression)==="Object"&&lr(e.expression.name)==="defineProperty"&&If(e.arguments[1])&&Rx(e.arguments[0],!0)}function V9(e){return kr(e)||$w(e)}function $w(e){return No(e)&&If(e.argumentExpression)}function Bb(e,t){return kr(e)&&(!t&&e.expression.kind===110||we(e.name)&&Rx(e.expression,!0))||U9(e,t)}function U9(e,t){return $w(e)&&(!t&&e.expression.kind===110||Sc(e.expression)||Bb(e.expression,!0))}function Rx(e,t){return Sc(e)||Bb(e,t)}function Xw(e){return kr(e)?e.name:e.argumentExpression}function KDe(e){if(js(e)){if(!Mx(e))return 0;const t=e.arguments[0];return Rb(t)||Zm(t)?8:Bb(t)&&Hg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Mo(e.left)||eAe(Gw(e))?0:Rx(e.left.expression,!0)&&Hg(e.left)==="prototype"&&ha(eq(e))?6:Qw(e.left)}function eAe(e){return Yb(e)&&Ou(e.expression)&&e.expression.text==="0"}function W9(e){if(kr(e))return e.name;const t=uo(e.argumentExpression);return Ou(t)||Qa(t)?t:e}function Hg(e){const t=W9(e);if(t){if(we(t))return t.escapedText;if(Qa(t)||Ou(t))return qo(t.text)}}function Qw(e){if(e.expression.kind===110)return 4;if(Zm(e))return 2;if(Rx(e.expression,!0)){if(Ty(e.expression))return 3;let t=e;for(;!we(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Hg(t)==="exports")&&Bb(e))return 1;if(Rx(e,!0)||No(e)&&Y9(e))return 5}return 0}function eq(e){for(;rr(e.right);)e=e.right;return e.right}function Yw(e){return rr(e)&&pc(e)===3}function n_e(e){return Zn(e)&&e.parent&&e.parent.kind===244&&(!No(e)||$w(e))&&!!fy(e.parent)}function Zw(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Zn(t)&&!(r.flags&33554432))&&o3(r)&&!o3(t)||r.kind!==t.kind&&Ple(r))&&(e.valueDeclaration=t)}function r_e(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||Mi(t)&&t.initializer&&ks(t.initializer)}function c3(e){var t,r;switch(e.kind){case 260:case 208:return(t=On(e.initializer,i=>du(i,!0)))==null?void 0:t.arguments[0];case 272:return Hr(e.moduleSpecifier,Qa);case 271:return Hr((r=Hr(e.moduleReference,km))==null?void 0:r.expression,Qa);case 273:case 280:return Hr(e.parent.moduleSpecifier,Qa);case 274:case 281:return Hr(e.parent.parent.moduleSpecifier,Qa);case 276:return Hr(e.parent.parent.parent.moduleSpecifier,Qa);default:E.assertNever(e)}}function Kw(e){return eD(e)||E.failBadSyntaxKind(e.parent)}function eD(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Zu(e.parent)||du(e.parent,!1)?e.parent:void 0;case 201:return E.assert(pa(e)),Hr(e.parent.parent,ag);default:return}}function b6(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return my(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return E.assertNever(e)}}function T6(e){switch(e.kind){case 272:return e.importClause&&Hr(e.importClause.namedBindings,p1);case 271:return e;case 278:return e.exportClause&&Hr(e.exportClause,og);default:return E.assertNever(e)}}function Bx(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function q9(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=p1(e.namedBindings)?t(e.namedBindings):mn(e.namedBindings.elements,t);if(r)return r}}function jx(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function x6(e){const t=n4(e)?wl(e.parameters):void 0,r=Hr(t&&t.name,we);return!!r&&r.escapedText==="new"}function Zf(e){return e.kind===353||e.kind===345||e.kind===347}function tD(e){return Zf(e)||wp(e)}function tAe(e){return ql(e)&&rr(e.expression)&&e.expression.operatorToken.kind===64?Gw(e.expression):void 0}function i_e(e){return ql(e)&&rr(e.expression)&&pc(e.expression)!==0&&rr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function tq(e){switch(e.kind){case 243:const t=S6(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function S6(e){return ic(e)?wl(e.declarationList.declarations):void 0}function s_e(e){return Nc(e)&&e.body&&e.body.kind===267?e.body:void 0}function nD(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function rD(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function nq(e,t){let r;m6(e)&&r1(e)&&Qu(e.initializer)&&(r=Lr(r,a_e(e,ka(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Qu(i)&&(r=Lr(r,a_e(e,ka(i.jsDoc)))),i.kind===169){r=Lr(r,(t?Pce:Zk)(i));break}if(i.kind===168){r=Lr(r,(t?Fce:Oce)(i));break}i=rq(i)}return r||Ve}function a_e(e,t){if(Dp(t)){const r=Vr(t.tags,i=>o_e(e,i));return t.tags===r?[t]:r}return o_e(e,t)?[t]:void 0}function o_e(e,t){return!(_8(t)||EF(t))||!t.parent||!Dp(t.parent)||!hu(t.parent.parent)||t.parent.parent===e}function rq(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||s_e(t)||rr(e)&&e.operatorToken.kind===64)return t;if(t.parent&&(S6(t.parent)===e||rr(t)&&t.operatorToken.kind===64))return t.parent;if(t.parent&&t.parent.parent&&(S6(t.parent.parent)||tq(t.parent.parent)===e||i_e(t.parent.parent)))return t.parent.parent}function iD(e){if(e.symbol)return e.symbol;if(!we(e.name))return;const t=e.name.escapedText,r=yy(e);if(!r)return;const i=Fr(r.parameters,a=>a.name.kind===80&&a.name.escapedText===t);return i&&i.symbol}function H9(e){if(Dp(e.parent)&&e.parent.tags){const t=Fr(e.parent.tags,Zf);if(t)return t}return yy(e)}function yy(e){const t=Jx(e);if(t)return mf(t)&&t.type&&ks(t.type)?t.type:ks(t)?t:void 0}function Jx(e){const t=zx(e);if(t)return i_e(t)||tAe(t)||tq(t)||S6(t)||s_e(t)||t}function zx(e){const t=l3(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===Bo(r.jsDoc))return r}function l3(e){return On(e.parent,Dp)}function c_e(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Fr(r,i=>i.name.escapedText===t)}function nAe(e){return!!e.typeArguments}function jb(e){let t=e.parent;for(;;){switch(t.kind){case 226:const r=t.operatorToken.kind;return Q0(r)&&t.left===e?r===64||b3(r)?1:2:0;case 224:case 225:const i=t.operator;return i===46||i===47?2:0;case 249:case 250:return t.initializer===e?1:0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return 0;e=t.parent;break;case 303:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Km(e){return jb(e)!==0}function l_e(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function __e(e){return fo(e)||Po(e)||n6(e)||tl(e)||wc(e)}function u_e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function sD(e){return u_e(e,196)}function G0(e){return u_e(e,217)}function f_e(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function iq(e){for(;cS(e);)e=e.type;return e}function uo(e,t){return nl(e,t?17:1)}function sq(e){return e.kind!==211&&e.kind!==212?!1:(e=G0(e.parent),e&&e.kind===220)}function n2(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Gg(e){return!Ri(e)&&!Ns(e)&&l_(e.parent)&&e.parent.name===e}function aD(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Ga(t))return t.parent;case 80:if(l_(t))return t.name===e?t:void 0;if(gu(t)){const r=t.parent;return rd(r)&&r.name===t?r:void 0}else{const r=t.parent;return rr(r)&&pc(r)!==0&&(r.left.symbol||r.symbol)&&os(r)===e?r:void 0}case 81:return l_(t)&&t.name===e?t:void 0;default:return}}function oD(e){return If(e)&&e.parent.kind===167&&l_(e.parent.parent)}function p_e(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function rAe(e){return e.kind===271||e.kind===270||e.kind===273&&!!e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&k6(e)?!0:Zn(e)&&(rr(e)&&pc(e)===2&&k6(e)||kr(e)&&rr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&cD(e.parent.right))}function aq(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return aq(e)}}function cD(e){return Sc(e)||Fl(e)}function k6(e){const t=oq(e);return cD(t)}function oq(e){return dc(e)?e.expression:e.right}function d_e(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function Id(e){const t=r2(e);if(t&&Zn(e)){const r=Mce(e);if(r)return r.class}return t}function r2(e){const t=lD(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function C6(e){if(Zn(e))return Rce(e).map(t=>t.class);{const t=lD(e.heritageClauses,119);return t==null?void 0:t.types}}function _3(e){return f_(e)?u3(e)||Ve:ei(e)&&Ki(xb(Id(e)),C6(e))||Ve}function u3(e){const t=lD(e.heritageClauses,96);return t?t.types:void 0}function lD(e,t){if(e){for(const r of e)if(r.token===t)return r}}function vy(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function ru(e){return 83<=e&&e<=165}function cq(e){return 19<=e&&e<=79}function G9(e){return ru(e)||cq(e)}function $9(e){return 128<=e&&e<=165}function lq(e){return ru(e)&&!$9(e)}function iAe(e){return 119<=e&&e<=127}function Vx(e){const t=Uv(e);return t!==void 0&&lq(t)}function sAe(e){const t=Uv(e);return t!==void 0&&ru(t)}function X9(e){const t=uy(e);return!!t&&!$9(t)}function E6(e){return 2<=e&&e<=7}function Il(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Mr(e,512)&&(t|=2);break}return e.body||(t|=4),t}function w6(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Mr(e,512)}return!1}function If(e){return Qa(e)||Ou(e)}function Q9(e){return Dy(e)&&(e.operator===40||e.operator===41)&&Ou(e.operand)}function $0(e){const t=os(e);return!!t&&Y9(t)}function Y9(e){if(!(e.kind===167||e.kind===212))return!1;const t=No(e)?uo(e.argumentExpression):e.expression;return!If(t)&&!Q9(t)}function by(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 9:return qo(e.text);case 167:const t=e.expression;return If(t)?qo(t.text):Q9(t)?t.operator===41?sa(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return z6(e);default:return E.assertNever(e)}}function Od(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function kp(e){return $m(e)?lr(e):Vd(e)?W3(e):e.text}function f3(e){return $m(e)?e.escapedText:Vd(e)?z6(e):qo(e.text)}function aAe(e){return`__@${ya(e)}@${e.escapedName}`}function _D(e,t){return`__#${ya(e)}@${t}`}function uD(e){return ts(e.escapedName,"__@")}function m_e(e){return ts(e.escapedName,"__#")}function oAe(e){return e.kind===80&&e.escapedText==="Symbol"}function g_e(e){return we(e)?lr(e)==="__proto__":pa(e)&&e.text==="__proto__"}function p3(e,t){switch(e=nl(e),e.kind){case 231:if(Y$(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function _q(e){switch(e.kind){case 303:return!g_e(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return we(e.name)&&!!e.initializer;case 169:return we(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return we(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return we(e.left)}break;case 277:return!0}return!1}function Pu(e,t){if(!_q(e))return!1;switch(e.kind){case 303:return p3(e.initializer,t);case 304:return p3(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return p3(e.initializer,t);case 226:return p3(e.right,t);case 277:return p3(e.expression,t)}}function uq(e){return e.escapedText==="push"||e.escapedText==="unshift"}function Jb(e){return hm(e).kind===169}function hm(e){for(;e.kind===208;)e=e.parent.parent;return e}function fq(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Do(e){return Md(e.pos)||Md(e.end)}function cAe(e){return es(e,Ri)||e}function pq(e){const t=mq(e),r=e.kind===214&&e.arguments!==void 0;return dq(e.kind,t,r)}function dq(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function d3(e){const t=mq(e),r=e.kind===214&&e.arguments!==void 0;return fD(e.kind,t,r)}function mq(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function fD(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return pD(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function pD(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function m3(e){return Vr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function D6(){let e=[];const t=[],r=new Map;let i=!1;return{add:o,lookup:a,getGlobalDiagnostics:l,getDiagnostics:u};function a(f){let g;if(f.file?g=r.get(f.file.fileName):g=e,!g)return;const m=Hh(g,f,Zo,uO);if(m>=0)return g[m]}function o(f){let g;f.file?(g=r.get(f.file.fileName),g||(g=[],r.set(f.file.fileName,g),qh(t,f.file.fileName,w_))):(i&&(i=!1,e=e.slice()),g=e),qh(g,f,uO)}function l(){return i=!0,e}function u(f){if(f)return r.get(f)||[];const g=P7(t,m=>r.get(m));return e.length&&g.unshift(...e),g}}function lAe(e){return e.replace(jue,"\\${")}function gq(e){return e&&!!(rS(e)?e.templateFlags:e.head.templateFlags||dt(e.templateSpans,t=>!!t.literal.templateFlags))}function h_e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function _Ae(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return Uue.get(e)||h_e(e.charCodeAt(0))}function Ux(e,t){const r=t===96?Vue:t===39?zue:Jue;return e.replace(r,_Ae)}function dD(e,t){return e=Ux(e,t),vH.test(e)?e.replace(vH,r=>h_e(r.charCodeAt(0))):e}function uAe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fAe(e){return e.charCodeAt(0)===0?"�":Hue.get(e)||uAe(e.charCodeAt(0))}function hq(e,t){const r=t===39?que:Wue;return e.replace(r,fAe)}function Cp(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&pAe(e.charCodeAt(0))?e.substring(1,t-1):e}function pAe(e){return e===39||e===34||e===96}function A6(e){const t=e.charCodeAt(0);return t>=97&&t<=122||Xl(e,"-")}function Z9(e){const t=V6[1];for(let r=V6.length;r<=e;r++)V6.push(V6[r-1]+t);return V6[e]}function N6(){return V6[1].length}function mD(){return Xl(F0,"-dev")||Xl(F0,"-insiders")}function gD(e){var t,r,i,a,o,l=!1;function u(D){const M=ow(D);M.length>1?(a=a+M.length-1,o=t.length-D.length+ka(M),i=o-t.length===0):i=!1}function f(D){D&&D.length&&(i&&(D=Z9(r)+D,i=!1),t+=D,u(D))}function g(D){D&&(l=!1),f(D)}function m(D){D&&(l=!0),f(D)}function y(){t="",r=0,i=!0,a=0,o=0,l=!1}function x(D){D!==void 0&&(t+=D,u(D),l=!1)}function k(D){D&&D.length&&g(D)}function C(D){(!i||D)&&(t+=e,a++,o=t.length,i=!0,l=!1)}function N(){return i?t.length:t.length+e.length}return y(),{write:g,rawWrite:x,writeLiteral:k,writeLine:C,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>a,getColumn:()=>i?r*N6():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&qm(t.charCodeAt(t.length-1)),clear:y,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(D,M)=>g(D),writeTrailingSemicolon:g,writeComment:m,getTextPosWithWriteLine:N}}function yq(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,a){r(),e.writeSymbol(i,a)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function hD(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function X0(e){return Ql(hD(e))}function K9(e,t,r){return t.moduleName||vq(e,t.fileName,r&&r.fileName)}function y_e(e,t){return e.getCanonicalFileName(fs(t,e.getCurrentDirectory()))}function v_e(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const a=b6(r);if(!(a&&Qa(a)&&!$u(a.text)&&y_e(e,i.path).indexOf(y_e(e,D_(e.getCommonSourceDirectory())))===-1))return K9(e,i)}function vq(e,t,r){const i=f=>e.getCanonicalFileName(f),a=yo(r?bi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=fs(t,e.getCurrentDirectory()),l=wx(a,o,a,i,!1),u=mu(l);return r?Vv(u):u}function b_e(e,t,r){const i=t.getCompilerOptions();let a;return i.outDir?a=mu(tO(e,t,i.outDir)):a=mu(e),a+r}function T_e(e,t){return bq(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function bq(e,t,r,i,a){const o=t.declarationDir||t.outDir,l=o?xq(e,o,r,i,a):e,u=yD(l);return mu(l)+u}function yD(e){return Gc(e,[".mjs",".mts"])?".d.mts":Gc(e,[".cjs",".cts"])?".d.cts":Gc(e,[".json"])?".d.json.ts":".d.ts"}function x_e(e){return Gc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Gc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Gc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ao(e){return e.outFile||e.out}function eO(e,t){var i;var r;if(!!e.paths)return(i=e.baseUrl)!=null?i:E.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Tq(e,t,r){const i=e.getCompilerOptions();if(Ao(i)){const a=Ul(i),o=i.emitDeclarationOnly||a===2||a===4;return Vr(e.getSourceFiles(),l=>(o||!zc(l))&&Wx(l,e,r))}else{const a=t===void 0?e.getSourceFiles():[t];return Vr(a,o=>Wx(o,e,r))}}function Wx(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&P_(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(Yf(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function tO(e,t,r){return xq(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function xq(e,t,r,i,a){let o=fs(e,r);return o=a(o).indexOf(a(i))===0?o.substring(i.length):o,Pi(t,o)}function g3(e,t,r,i,a,o,l){e.writeFile(r,i,a,u=>{t.add(kc(p.Could_not_write_file_0_Colon_1,r,u))},o,l)}function S_e(e,t,r){if(e.length>_m(e)&&!r(e)){const i=bi(e);S_e(i,t,r),t(e)}}function Sq(e,t,r,i,a,o){try{i(e,t,r)}catch{S_e(bi(ba(e)),a,o),i(e,t,r)}}function h3(e,t){const r=zg(e);return BC(r,t)}function zb(e,t){return BC(e,t)}function eg(e){return Fr(e.members,t=>wc(t)&&Xf(t.body))}function y3(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&s2(e.parameters[0]);return e.parameters[t?1:0]}}function k_e(e){const t=y3(e);return t&&t.type}function i2(e){if(e.parameters.length&&!Iy(e)){const t=e.parameters[0];if(s2(t))return t}}function s2(e){return a2(e.name)}function a2(e){return!!e&&e.kind===80&&kq(e)}function Vb(e){return!!On(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function qx(e){if(!a2(e))return!1;for(;gu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function kq(e){return e.escapedText==="this"}function Ub(e,t){let r,i,a,o;return $0(t)?(r=t,t.kind===177?a=t:t.kind===178?o=t:E.fail("Accessor has wrong kind")):mn(e,l=>{if(e1(l)&&Ps(l)===Ps(t)){const u=by(l.name),f=by(t.name);u===f&&(r?i||(i=l):r=l,l.kind===177&&!a&&(a=l),l.kind===178&&!o&&(o=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}}function Vl(e){if(!Zn(e)&&tl(e))return;const t=e.type;return t||!Zn(e)?t:r9(e)?e.typeExpression&&e.typeExpression.type:py(e)}function C_e(e){return e.type}function Kf(e){return Iy(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Zn(e)?hw(e):void 0)}function nO(e){return Na(dy(e),t=>dAe(t)?t.typeParameters:void 0)}function dAe(e){return id(e)&&!(e.parent.kind===327&&(e.parent.tags.some(Zf)||e.parent.tags.some(l8)))}function E_e(e){const t=y3(e);return t&&Vl(t)}function w_e(e,t,r,i){D_e(e,t,r.pos,i)}function D_e(e,t,r,i){i&&i.length&&r!==i[0].pos&&zb(e,r)!==zb(e,i[0].pos)&&t.writeLine()}function A_e(e,t,r,i){r!==i&&zb(e,r)!==zb(e,i)&&t.writeLine()}function N_e(e,t,r,i,a,o,l,u){if(i&&i.length>0){a&&r.writeSpace(" ");let f=!1;for(const g of i)f&&(r.writeSpace(" "),f=!1),u(e,t,r,g.pos,g.end,l),g.hasTrailingNewLine?r.writeLine():f=!0;f&&o&&r.writeSpace(" ")}}function P_e(e,t,r,i,a,o,l){let u,f;if(l?a.pos===0&&(u=Vr(Hm(e,a.pos),g)):u=Hm(e,a.pos),u){const m=[];let y;for(const x of u){if(y){const k=zb(t,y.end);if(zb(t,x.pos)>=k+2)break}m.push(x),y=x}if(m.length){const x=zb(t,ka(m).end);zb(t,ua(e,a.pos))>=x+2&&(w_e(t,r,a,u),N_e(e,t,r,m,!1,!0,o,i),f={nodePos:a.pos,detachedCommentEndPos:ka(m).end})}}return f;function g(m){return v9(e,m.pos)}}function P6(e,t,r,i,a,o){if(e.charCodeAt(i+1)===42){const l=lw(t,i),u=t.length;let f;for(let g=i,m=l.line;g0){let C=k%N6();const N=Z9((k-C)/N6());for(r.rawWrite(N);C;)r.rawWrite(" "),C--}else r.rawWrite("")}mAe(e,a,r,o,g,y),g=y}}else r.writeComment(e.substring(i,a))}function mAe(e,t,r,i,a,o){const l=Math.min(t,o-1),u=Bv(e.substring(a,l));u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function I_e(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Dq(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(r||Zn(e))&&e.parent&&(e.modifierFlagsCache|=M_e(e)|4096),e.modifierFlagsCache&-536875009)}function I_(e){return wq(e,!0)}function L_e(e){return wq(e,!0,!0)}function o1(e){return wq(e,!1)}function M_e(e){let t=0;return!!e.parent&&!ns(e)&&(Zn(e)&&(Bce(e)&&(t|=4),jce(e)&&(t|=8),Jce(e)&&(t|=16),zce(e)&&(t|=64),Vce(e)&&(t|=16384)),Uce(e)&&(t|=8192)),t}function R_e(e){return Dq(e)|M_e(e)}function Dq(e){let t=Ap(e)?Fd(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=1),t}function Fd(e){let t=0;if(e)for(const r of e)t|=Gx(r.kind);return t}function Gx(e){switch(e){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 164:return 16384;case 103:return 32768;case 147:return 65536;case 170:return 131072}return 0}function B_e(e){return e===57||e===56}function j_e(e){return B_e(e)||e===54}function b3(e){return e===76||e===77||e===78}function Aq(e){return rr(e)&&b3(e.operatorToken.kind)}function vD(e){return B_e(e)||e===61}function bD(e){return rr(e)&&vD(e.operatorToken.kind)}function Q0(e){return e>=64&&e<=79}function Nq(e){const t=Pq(e);return t&&!t.isImplements?t.class:void 0}function Pq(e){if(nh(e)){if(tf(e.parent)&&ei(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(i4(e.parent)){const t=Jx(e.parent);if(t&&ei(t))return{class:t,isImplements:!1}}}}function Kl(e,t){return rr(e)&&(t?e.operatorToken.kind===64:Q0(e.operatorToken.kind))&&pu(e.left)}function gAe(e){return Kl(e.parent)&&e.parent.left===e}function Y0(e){if(Kl(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function TD(e){return Nq(e)!==void 0}function Sc(e){return e.kind===80||xD(e)}function Ku(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function T3(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&T3(e.expression)||e.kind===217&&T3(e.expression)}function xD(e){return kr(e)&&we(e.name)&&Sc(e.expression)}function SD(e){if(kr(e)){const t=SD(e.expression);if(t!==void 0)return t+"."+Nu(e.name)}else if(No(e)){const t=SD(e.expression);if(t!==void 0&&Jc(e.argumentExpression))return t+"."+by(e.argumentExpression)}else{if(we(e))return Li(e.escapedText);if(Vd(e))return W3(e)}}function Ty(e){return Bb(e)&&Hg(e)==="prototype"}function x3(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function J_e(e){return kr(e.parent)&&e.parent.name===e||No(e.parent)&&e.parent.argumentExpression===e}function z_e(e){return gu(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e||Py(e.parent)&&e.parent.right===e}function Iq(e){return e.kind===210&&e.properties.length===0}function V_e(e){return e.kind===209&&e.elements.length===0}function I6(e){if(!(!hAe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function hAe(e){return e&&Pn(e.declarations)>0&&Mr(e.declarations[0],1024)}function iO(e){return Fr(Yue,t=>Hc(e,t))}function yAe(e){const t=[],r=e.length;for(let i=0;i>6|192),t.push(a&63|128)):a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(a&63|128)):a<131072?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(a&63|128)):E.assert(!1,"Unexpected code point")}return t}function U_e(e){let t="";const r=yAe(e);let i=0;const a=r.length;let o,l,u,f;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,f=r[i+2]&63,i+1>=a?u=f=64:i+2>=a&&(f=64),t+=u2.charAt(o)+u2.charAt(l)+u2.charAt(u)+u2.charAt(f),i+=3;return t}function vAe(e){let t="",r=0;const i=e.length;for(;r>4&3,m=(l&15)<<4|u>>2&15,y=(u&3)<<6|f&63;m===0&&u!==0?i.push(g):y===0&&f!==0?i.push(g,m):i.push(g,m,y),a+=4}return vAe(i)}function Oq(e,t){const r=$s(t)?t:t.readFile(e);if(!r)return;const i=OG(e,r);return i.error?void 0:i.config}function S3(e,t){return Oq(e,t)||{}}function Zp(e,t){return!t.directoryExists||t.directoryExists(e)}function Z0(e){switch(e.newLine){case 0:return Gue;case 1:case void 0:return $ue}}function ep(e,t=e){return E.assert(t>=e||t===-1),{pos:e,end:t}}function sO(e,t){return ep(e.pos,t)}function xy(e,t){return ep(t,e.end)}function K0(e){const t=Ap(e)?hx(e.modifiers,Wl):void 0;return t&&!Md(t.end)?xy(e,t.end):e}function Ld(e){if(Is(e)||Ec(e))return xy(e,e.name.pos);const t=Ap(e)?Bo(e.modifiers):void 0;return t&&!Md(t.end)?xy(e,t.end):K0(e)}function bAe(e){return e.pos===e.end}function Fq(e,t){return ep(e,e+sa(t).length)}function Wb(e,t){return G_e(e,e,t)}function aO(e,t,r){return tp(k3(e,r,!1),k3(t,r,!1),r)}function H_e(e,t,r){return tp(e.end,t.end,r)}function G_e(e,t,r){return tp(k3(e,r,!1),t.end,r)}function kD(e,t,r){return tp(e.end,k3(t,r,!1),r)}function Lq(e,t,r,i){const a=k3(t,r,i);return jC(r,e.end,a)}function TAe(e,t,r){return jC(r,e.end,t.end)}function $_e(e,t){return!tp(e.pos,e.end,t)}function tp(e,t,r){return jC(r,e,t)===0}function k3(e,t,r){return Md(e.pos)?-1:ua(t.text,e.pos,!1,r)}function X_e(e,t,r,i){const a=ua(r.text,e,!1,i),o=xAe(a,t,r);return jC(r,o!=null?o:t,a)}function Q_e(e,t,r,i){const a=ua(r.text,e,!1,i);return jC(r,e,Math.min(t,a))}function xAe(e,t=0,r){for(;e-- >t;)if(!qm(r.text.charCodeAt(e)))return e}function Mq(e){const t=es(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function C3(e){return Vr(e.declarations,CD)}function CD(e){return Mi(e)&&e.initializer!==void 0}function SAe(e){return e.watch&&lo(e,"watch")}function vm(e){e.close()}function rc(e){return e.flags&33554432?e.links.checkFlags:0}function Ff(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&Fr(e.declarations,Fu)||e.flags&32768&&Fr(e.declarations,gf)||e.valueDeclaration,i=Wv(r);return e.parent&&e.parent.flags&32?i:i&-29}if(rc(e)&6){const r=e.links.checkFlags,i=r&1024?8:r&256?4:16,a=r&2048?32:0;return i|a}return e.flags&4194304?36:0}function iu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function E3(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function oO(e){return O6(e)===1}function w3(e){return O6(e)!==0}function O6(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return O6(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:a}=t;return i===e&&Q0(a.kind)?a.kind===64?1:2:0;case 211:return t.name!==e?0:O6(t);case 303:{const o=O6(t.parent);return e===t.name?kAe(o):o}case 304:return e===t.objectAssignmentInitializer?0:O6(t.parent);case 209:return O6(t);default:return 0}}function kAe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return E.assertNever(e)}}function Rq(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!Rq(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function Lf(e,t){e.forEach(t),e.clear()}function $g(e,t,r){const{onDeleteValue:i,onExistingValue:a}=r;e.forEach((o,l)=>{const u=t.get(l);u===void 0?(e.delete(l),i(o,l)):a&&a(o,u,l)})}function F6(e,t,r){$g(e,t,r);const{createNewValue:i}=r;t.forEach((a,o)=>{e.has(o)||e.set(o,i(o,a))})}function Y_e(e){if(e.flags&32){const t=Xg(e);return!!t&&Mr(t,256)}return!1}function Xg(e){var t;return(t=e.declarations)==null?void 0:t.find(ei)}function Br(e){return e.flags&138117121?e.objectFlags:0}function CAe(e,t){return!!Jg(e,r=>t(r)?!0:void 0)}function cO(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&cA(e.declarations[0])}function Z_e({moduleSpecifier:e}){return pa(e)?e.text:el(e)}function Bq(e){let t;return ys(e,r=>{Xf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Xf(r[i])){t=r[i];break}}),t}function Kp(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function $x(e){return ei(e)||f_(e)||ef(e)}function jq(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function Mo(e){return e.kind===211||e.kind===212}function K_e(e){return e.kind===211?e.name:(E.assert(e.kind===212),e.argumentExpression)}function eue(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function lO(e){return e.kind===275||e.kind===279}function D3(e){for(;Mo(e);)e=e.expression;return e}function EAe(e,t){if(Mo(e.parent)&&J_e(e))return r(e.parent);function r(i){if(i.kind===211){const a=t(i.name);if(a!==void 0)return a}else if(i.kind===212)if(we(i.argumentExpression)||Qa(i.argumentExpression)){const a=t(i.argumentExpression);if(a!==void 0)return a}else return;if(Mo(i.expression))return r(i.expression);if(we(i.expression))return t(i.expression)}}function A3(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function wAe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function DAe(e,t){this.flags=t,(E.isDebugging||ci)&&(this.checker=e)}function AAe(e,t){this.flags=t,E.isDebugging&&(this.checker=e)}function Jq(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function NAe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function PAe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function IAe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function tue(e){bH.push(e),e(Ol)}function nue(e){Object.assign(Ol,e),mn(bH,t=>t(Ol))}function tg(e,t,r=0){return e.replace(/{(\d+)}/g,(i,a)=>""+E.checkDefined(t[+a+r]))}function rue(e){JD=e}function iue(e){!JD&&e&&(JD=e())}function ss(e){return JD&&JD[e.key]||e.message}function L6(e,t,r,i){jW(void 0,t,r);let a=ss(i);return arguments.length>4&&(a=tg(a,arguments,4)),{file:void 0,start:t,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function OAe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function sue(e,t){const r=t.fileName||"",i=t.text.length;E.assertEqual(e.fileName,r),E.assertLessThanOrEqual(e.start,i),E.assertLessThanOrEqual(e.start+e.length,i);const a={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){a.relatedInformation=[];for(const o of e.relatedInformation)OAe(o)&&o.fileName===r?(E.assertLessThanOrEqual(o.start,i),E.assertLessThanOrEqual(o.start+o.length,i),a.relatedInformation.push(sue(o,t))):a.relatedInformation.push(o)}return a}function Xx(e,t){const r=[];for(const i of e)r.push(sue(i,t));return r}function vl(e,t,r,i){jW(e,t,r);let a=ss(i);return arguments.length>4&&(a=tg(a,arguments,4)),{file:e,start:t,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function zq(e,t){let r=ss(t);return arguments.length>2&&(r=tg(r,arguments,2)),r}function kc(e){let t=ss(e);return arguments.length>1&&(t=tg(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function _O(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function _s(e,t){let r=ss(t);return arguments.length>2&&(r=tg(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function aue(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function oue(e){return e.file?e.file.path:void 0}function N3(e,t){return uO(e,t)||FAe(e,t)||0}function uO(e,t){return w_(oue(e),oue(t))||Co(e.start,t.start)||Co(e.length,t.length)||Co(e.code,t.code)||cue(e.messageText,t.messageText)||0}function FAe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Co(e.relatedInformation.length,t.relatedInformation.length)||mn(e.relatedInformation,(r,i)=>{const a=t.relatedInformation[i];return N3(r,a)})||0:e.relatedInformation?-1:1}function cue(e,t){if(typeof e=="string"&&typeof t=="string")return w_(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=w_(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let a=0;at.next.length?1:0}function ED(e){return e===4||e===2||e===1||e===6?1:0}function lue(e){if(!!(e.transformFlags&2))return V_(e)||g2(e)?e:ys(e,lue)}function LAe(e){return e.isDeclarationFile?void 0:lue(e)}function MAe(e){return(e.impliedNodeFormat===99||Gc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function wD(e){switch(_ue(e)){case 3:return a=>{a.externalModuleIndicator=TA(a)||!a.isDeclarationFile||void 0};case 1:return a=>{a.externalModuleIndicator=TA(a)};case 2:const t=[TA];(e.jsx===4||e.jsx===5)&&t.push(LAe),t.push(MAe);const r=Yp(...t);return a=>void(a.externalModuleIndicator=r(a))}}function Oa(e){var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}function Ul(e){return typeof e.module=="number"?e.module:Oa(e)>=2?5:1}function fO(e){return e>=5&&e<=99}function Cc(e){let t=e.moduleResolution;if(t===void 0)switch(Ul(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function _ue(e){return e.moduleDetection||(Ul(e)===100||Ul(e)===199?3:2)}function pO(e){switch(Ul(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function ed(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function Vq(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function uue(e){return e.allowUnreachableCode===!1}function fue(e){return e.allowUnusedLabels===!1}function dO(e){return!!(Ep(e)&&e.declarationMap)}function bm(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Ul(e)){case 100:case 199:return!0}}function Qx(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:bm(e)||Ul(e)===4||Cc(e)===100}function Yx(e){return e>=3&&e<=99||e===100}function mO(e){return!!e.noDtsResolution||Cc(e)!==100}function Uq(e){const t=Cc(e);if(!Yx(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function RAe(e){const t=Cc(e);if(!Yx(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function qb(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:Cc(e)===100}function Ep(e){return!!(e.declaration||e.composite)}function Hb(e){return!!(e.preserveConstEnums||ed(e))}function DD(e){return!!(e.incremental||e.composite)}function np(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function P3(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function AD(e){return e.useDefineForClassFields===void 0?Oa(e)>=9:e.useDefineForClassFields}function pue(e){return e.useDefineForClassFields!==!1&&Oa(e)>=9}function due(e,t){return o6(t,e,GG)}function mue(e,t){return o6(t,e,$G)}function gue(e,t){return o6(t,e,XG)}function gO(e,t){return t.strictFlag?np(e,t.name):e[t.name]}function hO(e){const t=e.jsx;return t===2||t===4||t===5}function yO(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=Ds(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function vO(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Wq(e){let t=!1;for(let r=0;ra,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,f)=>(a||(a=new Map)).set(u,f),setSymlinkedDirectory:(u,f)=>{let g=yo(u,e,t);J3(g)||(g=D_(g),f!==!1&&!(r!=null&&r.has(g))&&(i||(i=$f())).add(D_(f.realPath),u),(r||(r=new Map)).set(g,f))},setSymlinksFromResolutions(u,f){var g,m;E.assert(!o),o=!0;for(const y of u)(g=y.resolvedModules)==null||g.forEach(x=>l(this,x.resolvedModule)),(m=y.resolvedTypeReferenceDirectiveNames)==null||m.forEach(x=>l(this,x.resolvedTypeReferenceDirective));f.forEach(y=>l(this,y.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o};function l(u,f){if(!f||!f.originalPath||!f.resolvedFileName)return;const{resolvedFileName:g,originalPath:m}=f;u.setSymlinkedFile(yo(m,e,t),g);const[y,x]=BAe(g,m,e,t)||Ve;y&&x&&u.setSymlinkedDirectory(x,{real:y,realPath:yo(y,e,t)})}}function BAe(e,t,r,i){const a=Dl(fs(e,r)),o=Dl(fs(t,r));let l=!1;for(;a.length>=2&&o.length>=2&&!yue(a[a.length-2],i)&&!yue(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),l=!0;return l?[Gh(a),Gh(o)]:void 0}function yue(e,t){return e!==void 0&&(t(e)==="node_modules"||ts(e,"@"))}function jAe(e){return PU(e.charCodeAt(0))?e.slice(1):void 0}function qq(e,t,r){const i=hV(e,t,r);return i===void 0?void 0:jAe(i)}function JAe(e){return e.replace(NO,zAe)}function zAe(e){return"\\"+e}function I3(e,t,r){const i=bO(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function bO(e,t,r){if(!(e===void 0||e.length===0))return Na(e,i=>i&&vue(i,t,r,CH[r]))}function Hq(e){return!/[.*?]/.test(e)}function Gq(e,t,r){const i=e&&vue(e,t,r,CH[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function vue(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:a,replaceWildcardCharacter:o}){let l="",u=!1;const f=nw(e,t),g=ka(f);if(r!=="exclude"&&g==="**")return;f[0]=zv(f[0]),Hq(g)&&f.push("**","*");let m=0;for(let y of f){if(y==="**")l+=a;else if(r==="directories"&&(l+="(",m++),u&&(l+=Wo),r!=="exclude"){let x="";y.charCodeAt(0)===42?(x+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(x+="[^./]",y=y.substr(1)),x+=y.replace(NO,o),x!==y&&(l+=PO),l+=x}else l+=y.replace(NO,o);u=!0}for(;m>0;)l+=")?",m--;return l}function $q(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function O3(e,t,r,i,a){e=ba(e),a=ba(a);const o=Pi(a,e);return{includeFilePatterns:an(bO(r,o,"files"),l=>`^${l}$`),includeFilePattern:I3(r,o,"files"),includeDirectoryPattern:I3(r,o,"directories"),excludePattern:I3(t,o,"exclude"),basePaths:VAe(e,r,i)}}function c1(e,t){return new RegExp(e,t?"":"i")}function Xq(e,t,r,i,a,o,l,u,f){e=ba(e),o=ba(o);const g=O3(e,r,i,a,o),m=g.includeFilePatterns&&g.includeFilePatterns.map(M=>c1(M,a)),y=g.includeDirectoryPattern&&c1(g.includeDirectoryPattern,a),x=g.excludePattern&&c1(g.excludePattern,a),k=m?m.map(()=>[]):[[]],C=new Map,N=Ql(a);for(const M of g.basePaths)D(M,Pi(o,M),l);return vp(k);function D(M,V,U){const Y=N(f(V));if(C.has(Y))return;C.set(Y,!0);const{files:j,directories:ee}=u(M);for(const R of EC(j,w_)){const Z=Pi(M,R),oe=Pi(V,R);if(!(t&&!Gc(Z,t))&&!(x&&x.test(oe)))if(!m)k[0].push(Z);else{const _e=qc(m,X=>X.test(oe));_e!==-1&&k[_e].push(Z)}}if(!(U!==void 0&&(U--,U===0)))for(const R of EC(ee,w_)){const Z=Pi(M,R),oe=Pi(V,R);(!y||y.test(oe))&&(!x||!x.test(oe))&&D(Z,oe,U)}}}function VAe(e,t,r){const i=[e];if(t){const a=[];for(const o of t){const l=Dd(o)?o:ba(Pi(e,o));a.push(UAe(l))}a.sort(dI(!r));for(const o of a)$i(i,l=>!Xh(l,o,e,!r))&&i.push(o)}return i}function UAe(e){const t=Zae(e,Xue);return t<0?Hk(e)?zv(bi(e)):e:e.substring(0,e.lastIndexOf(Wo,t))}function TO(e,t){return t||Qq(e)||3}function Qq(e){switch(e.substr(e.lastIndexOf(".")).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}}function F3(e,t){const r=e&&P3(e);if(!t||t.length===0)return r?zD:U6;const i=r?zD:U6,a=vp(i);return[...i,...qi(t,l=>l.scriptKind===7||r&&WAe(l.scriptKind)&&a.indexOf(l.extension)===-1?[l.extension]:void 0)]}function ND(e,t){return!e||!qb(e)?t:t===zD?Zue:t===U6?Que:[...t,[".json"]]}function WAe(e){return e===1||e===2}function c2(e){return dt(W6,t=>Hc(e,t))}function L3(e){return dt(EH,t=>Hc(e,t))}function bue({imports:e},t=Yp(c2,L3)){return _c(e,({text:r})=>$u(r)&&!Gc(r,WD)?t(r):void 0)||!1}function Yq(e,t,r,i){if(e==="js"||t===99)return m4(r)&&a()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!m4(r))return bue(i)?2:0;return a();function a(){let o=!1;const l=i.imports.length?i.imports.map(u=>u.text):P_(i)?qAe(i).map(u=>u.arguments[0].text):Ve;for(const u of l)if($u(u)){if(Gc(u,WD))continue;if(L3(u))return 3;c2(u)&&(o=!0)}return o?2:0}}function qAe(e){let t=0,r;for(const i of e.statements){if(t>3)break;YW(i)?r=Ki(r,i.declarationList.declarations.map(a=>a.initializer)):ql(i)&&du(i.expression,!0)?r=gn(r,i.expression):t++}return r||Ve}function Tue(e,t,r){if(!e)return!1;const i=F3(t,r);for(const a of vp(ND(t,i)))if(Hc(e,a))return!0;return!1}function xue(e){const t=e.match(/\//g);return t?t.length:0}function PD(e,t){return Co(xue(e),xue(t))}function mu(e){for(const t of IO){const r=Sue(e,t);if(r!==void 0)return r}return e}function Sue(e,t){return Hc(e,t)?ID(e,t):void 0}function ID(e,t){return e.substring(0,e.length-t.length)}function Sy(e,t){return rw(e,t,IO,!1)}function M6(e){const t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function xO(e){return qi(Bg(e),t=>M6(t))}function Md(e){return!(e>=0)}function SO(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||ts(e,".d.")&&Tc(e,".ts")}function OD(e){return SO(e)||e===".json"}function Gb(e){const t=ng(e);return t!==void 0?t:E.fail(`File ${e} has unknown extension.`)}function HAe(e){return ng(e)!==void 0}function ng(e){return Fr(IO,t=>Hc(e,t))}function FD(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function Zq(e,t){const r=[];for(const i of e){if(i===t)return t;$s(i)||r.push(i)}return gV(r,i=>i,t)}function Kq(e,t){const r=e.indexOf(t);return E.assert(r!==-1),e.slice(r)}function fa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),E.assert(e.relatedInformation!==Ve,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function kue(e,t){E.assert(e.length!==0);let r=t(e[0]),i=r;for(let a=1;ai&&(i=o)}return{min:r,max:i}}function eH(e){return{pos:Fb(e),end:e.end}}function tH(e,t){const r=t.pos-1,i=Math.min(e.text.length,ua(e.text,t.end)+1);return{pos:r,end:i}}function M3(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function nH(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&aoe(e,t,nH)}function R3(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const g=e.length-1;let m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,g)||"0"}const r=2,i=e.length-1,a=(i-r)*t,o=new Uint16Array((a>>>4)+(a&15?1:0));for(let g=i-1,m=0;g>=r;g--,m+=t){const y=m>>>4,x=e.charCodeAt(g),C=(x<=57?x-48:10+x-(x<=70?65:97))<<(m&15);o[y]|=C;const N=C>>>16;N&&(o[y+1]|=N)}let l="",u=o.length-1,f=!0;for(;f;){let g=0;f=!1;for(let m=u;m>=0;m--){const y=g<<16|o[m],x=y/10|0;o[m]=x,g=y-x*10,x&&!f&&(u=m,f=!0)}l=g+l}return l}function l2({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Cue(e){if(!!kO(e,!1))return rH(e)}function rH(e){const t=e.startsWith("-"),r=R3(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function kO(e,t){if(e==="")return!1;const r=V0(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let a=r.scan();const o=a===41;o&&(a=r.scan());const l=r.getTokenFlags();return i&&a===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===l2({negative:o,base10Value:R3(r.getTokenValue())}))}function ky(e){return!!(e.flags&33554432)||B9(e)||XAe(e)||$Ae(e)||!(qg(e)||GAe(e))}function GAe(e){return we(e)&&nf(e.parent)&&e.parent.name===e}function $Ae(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Mr(e.parent,256))return!0;const t=e.parent.parent.kind;return t===264||t===187}function XAe(e){if(e.kind!==80)return!1;const t=On(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function Eue(e){return sp(e)&&we(e.typeName)}function wue(e,t=oy){if(e.length<2)return!0;const r=e[0];for(let i=1,a=e.length;iXl(e,t))}function Nue(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return iT(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(a6(e))return r4(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Nb(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Di(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return Dw(e)?t.children:void 0;case 286:case 285:return Di(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return Nl(e)?t.members:void 0;case 266:return y2(e)?t.members:void 0;case 312:return t.statements}}function CO(e){if(!e.typeParameters){if(dt(e.parameters,t=>!Vl(t)))return!0;if(e.kind!==219){const t=wl(e.parameters);if(!(t&&s2(t)))return!0}}return!1}function z3(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Pue(e){return e.kind===260&&e.parent.kind===299}function sH(e){const t=e.valueDeclaration&&hm(e.valueDeclaration);return!!t&&(ns(t)||Pue(t))}function j6(e){return e.kind===218||e.kind===219}function _2(e){return e.replace(/\$/gm,()=>"\\$")}function rg(e){return(+e).toString()===e}function EO(e,t,r,i){return pf(e,t)?I.createIdentifier(e):!i&&rg(e)&&+e>=0?I.createNumericLiteral(+e):I.createStringLiteral(e,!!r)}function V3(e){return!!(e.flags&262144&&e.isThisType)}function aH(e){let t=0,r=0,i=0,a=0,o;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(o||(o={}));let l=0,u=0,f=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),f){case 0:e.indexOf(sh,l)===l&&(t=l,r=u,f=1);break;case 1:case 2:f===1&&e.charAt(l+1)==="@"?f=2:(i=u,f=3);break;case 3:e.indexOf(sh,l)===l?f=1:f=3;break}return a=l,f>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}function YAe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function J6(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function LD(e){return Ay(e)||ic(e)||tl(e)||Qc(e)||f_(e)||J6(e)||Nc(e)&&!Qv(e)&&!Pd(e)}function MD(e){if(!r9(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function oH(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&Gm(e.charCodeAt(1),t):Gm(r,t)}function Iue(e){var t;return((t=BH(e))==null?void 0:t.kind)===0}function RD(e){return Zn(e)&&(e.type&&e.type.kind===323||Zk(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function cH(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||RD(e);case 355:case 348:return MD(e);default:return!1}}function Oue(e){const t=e.kind;return(t===211||t===212)&&fS(e.expression)}function lH(e){return Zn(e)&&hu(e)&&Qu(e)&&!!YU(e)}function _H(e){return E.checkDefined(wO(e))}function wO(e){const t=YU(e);return t&&t.typeExpression&&t.typeExpression.type}function U3(e){return we(e)?e.escapedText:z6(e)}function BD(e){return we(e)?lr(e):W3(e)}function Fue(e){const t=e.kind;return t===80||t===295}function z6(e){return`${e.namespace.escapedText}:${lr(e.name)}`}function W3(e){return`${lr(e.namespace)}:${lr(e.name)}`}function uH(e){return we(e)?lr(e):W3(e)}function rp(e){return!!(e.flags&8576)}function ip(e){return e.flags&8192?e.escapedName:e.flags&384?qo(""+e.value):E.fail()}var DO,_1,jD,AO,q3,fH,pH,Lue,Mue,dH,Rue,Bue,mH,gH,hH,yH,jue,Jue,zue,Vue,Uue,vH,Wue,que,Hue,V6,u2,Gue,$ue,Ol,bH,JD,NO,Xue,TH,PO,xH,SH,kH,CH,U6,EH,Que,Yue,wH,W6,zD,Zue,VD,UD,WD,DH,IO,OO,ZAe=Bt({"src/compiler/utilities.ts"(){Os(),DO=[],_1="tslib",jD=160,AO=1e6,q3=FDe(),fH=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(fH||{}),pH=/^(\/\/\/\s*/,Lue=/^(\/\/\/\s*/,Mue=/^(\/\/\/\s*/,dH=/^(\/\/\/\s*/,Rue=/^\/\/\/\s*/,Bue=/^(\/\/\/\s*/,mH=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(mH||{}),gH=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(gH||{}),hH=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(hH||{}),yH=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(yH||{}),jue=/\$\{/g,Jue=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,zue=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Vue=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Uue=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),vH=/[^\u0000-\u007F]/g,Wue=/["\u0000-\u001f\u2028\u2029\u0085]/g,que=/['\u0000-\u001f\u2028\u2029\u0085]/g,Hue=new Map(Object.entries({'"':""","'":"'"})),V6=[""," "],u2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Gue=`\r +`),t.closeSync(Pe),go("endDumpTypes"),Gu("Dump types","beginDumpTypes","endDumpTypes")}function j(){!l||t.writeFileSync(l,JSON.stringify(u))}e.dumpLegend=j})(q7||(q7={})),Voe=q7.startTracing,Uoe=q7.dumpLegend}});function EI(e,t=!0){const r=G7[e.category];return t?r.toLowerCase():r}var wI,DI,AI,AV,NI,PI,NV,H7,PV,LC,II,IV,OV,FV,LV,MV,RV,BV,jV,JV,zV,VV,UV,WV,qV,OI,HV,GV,$V,XV,FI,LI,QV,YV,ZV,KV,eU,tU,MI,nU,rU,iU,sU,aU,oU,G7,Gk,cU,lU,_U,uU,MC,fU,pU,dU,RI,mU,gU,hU,yU,vU,BI,jI,JI,bU,TU,xU,SU,kU,CU,EU,wU,$7,Woe=Rt({"src/compiler/types.ts"(){wI=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(wI||{}),DI=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(DI||{}),AI=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(AI||{}),AV=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(AV||{}),NI=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(NI||{}),PI=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(PI||{}),NV=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(NV||{}),H7=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(H7||{}),PV=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(PV||{}),LC=class{},II=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(II||{}),IV=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(IV||{}),OV=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(OV||{}),FV=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(FV||{}),LV=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(LV||{}),MV=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(MV||{}),RV=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(RV||{}),BV=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(BV||{}),jV=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(jV||{}),JV=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(JV||{}),zV=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(zV||{}),VV=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(VV||{}),UV=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(UV||{}),WV=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(WV||{}),qV=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(qV||{}),OI=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(OI||{}),HV=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(HV||{}),GV=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(GV||{}),$V=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))($V||{}),XV=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(XV||{}),FI=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(FI||{}),LI=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(LI||{}),QV=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(QV||{}),YV=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(YV||{}),ZV=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(ZV||{}),KV=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(KV||{}),eU=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(eU||{}),tU=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(tU||{}),MI=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(MI||{}),nU=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(nU||{}),rU=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(rU||{}),iU=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(iU||{}),sU=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(sU||{}),aU=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(aU||{}),oU=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(oU||{}),G7=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(G7||{}),Gk=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Gk||{}),cU=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(cU||{}),lU=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(lU||{}),_U=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(_U||{}),uU=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(uU||{}),MC=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(MC||{}),fU=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(fU||{}),pU=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(pU||{}),dU=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(dU||{}),RI=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(RI||{}),mU=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(mU||{}),gU=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(gU||{}),hU=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(hU||{}),yU=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(yU||{}),vU=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(vU||{}),BI=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(BI||{}),jI=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(jI||{}),JI=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(JI||{}),bU=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(bU||{}),TU=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(TU||{}),xU=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(xU||{}),SU=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(SU||{}),kU=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(kU||{}),CU=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(CU||{}),EU=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(EU||{}),wU=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(wU||{}),$7={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},{name:"resolution-mode",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}}}});function X7(e){let t=5381;for(let r=0;r{U.isClosed=!0,PC(t,U)}}}function u(D){const M=[];return M.pollingInterval=D,M.pollIndex=0,M.pollScheduled=!1,M}function f(D,M){M.pollIndex=m(M,M.pollingInterval,M.pollIndex,Z7[M.pollingInterval]),M.length?N(M.pollingInterval):(E.assert(M.pollIndex===0),M.pollScheduled=!1)}function g(D,M){m(r,250,0,r.length),f(D,M),!M.pollScheduled&&r.length&&N(250)}function m(D,M,V,U){return qoe(e,D,V,U,Y);function Y(j,ee,R){R?(j.unchangedPolls=0,D!==r&&(D[ee]=void 0,k(j))):j.unchangedPolls!==K7[M]?j.unchangedPolls++:D===r?(j.unchangedPolls=1,D[ee]=void 0,x(j,250)):M!==2e3&&(j.unchangedPolls++,D[ee]=void 0,x(j,M===250?500:2e3))}}function y(D){switch(D){case 250:return i;case 500:return a;case 2e3:return o}}function x(D,M){y(M).push(D),C(M)}function k(D){r.push(D),C(250)}function C(D){y(D).pollScheduled||N(D)}function N(D){y(D).pollScheduled=e.setTimeout(D===250?g:f,D,D===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(D))}}function Hwe(e,t){const r=Xf(),i=new Map,a=Ql(t);return o;function o(u,f,g,m){const y=a(u);r.add(y,f);const x=Ti(y)||".",k=i.get(x)||l(Ti(u)||".",x,m);return k.referenceCount++,{close:()=>{k.referenceCount===1?(k.close(),i.delete(x)):k.referenceCount--,r.remove(y,f)}}}function l(u,f,g){const m=e(u,1,(y,x,k)=>{if(!Gs(x))return;const C=ms(x,u),N=C&&r.get(a(C));if(N)for(const D of N)D(C,1,k)},!1,500,g);return m.referenceCount=0,i.set(f,m),m}}function Gwe(e){const t=[];let r=0,i;return a;function a(u,f){const g={fileName:u,callback:f,mtime:wx(e,u)};return t.push(g),l(),{close:()=>{g.isClosed=!0,PC(t,g)}}}function o(){i=void 0,r=qoe(e,t,r,Z7[250]),l()}function l(){!t.length||i||(i=e.setTimeout(o,2e3,"pollQueue"))}}function Hoe(e,t,r,i,a){const l=Ql(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:a((f,g,m)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(x=>x(f,g,m))}),callbacks:[i]}),{close:()=>{const f=e.get(l);!f||!mI(f.callbacks,i)||f.callbacks.length||(e.delete(l),Em(f))}}}function $we(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,Goe(r,i),t),!0):!1}function Goe(e,t){return e===0?0:t===0?2:1}function Q7(e){return NU(e)}function $oe(e){NU=e}function Xwe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:a,realpath:o,setTimeout:l,clearTimeout:u}){const f=new Map,g=Xf(),m=new Map;let y;const x=dI(!t),k=Ql(t);return(R,Z,oe,_e)=>oe?C(R,_e,Z):e(R,Z,oe,_e);function C(R,Z,oe){const _e=k(R);let X=f.get(_e);X?X.refCount++:(X={watcher:e(R,Q=>{j(Q,Z)||(Z!=null&&Z.synchronousWatchDirectory?(N(_e,Q),Y(R,_e,Z)):D(R,_e,Q,Z))},!1,Z),refCount:1,childWatches:Ve},f.set(_e,X),Y(R,_e,Z));const H=oe&&{dirName:R,callback:oe};return H&&g.add(_e,H),{dirName:R,close:()=>{const Q=E.checkDefined(f.get(_e));H&&g.remove(_e,H),Q.refCount--,!Q.refCount&&(f.delete(_e),Em(Q),Q.childWatches.forEach(vm))}}}function N(R,Z,oe){let _e,X;Gs(Z)?_e=Z:X=Z,g.forEach((H,Q)=>{if(!(X&&X.get(Q)===!0)&&(Q===R||ns(R,Q)&&R[Q.length]===qo))if(X)if(oe){const ne=X.get(Q);ne?ne.push(...oe):X.set(Q,oe.slice())}else X.set(Q,!0);else H.forEach(({callback:ne})=>ne(_e))})}function D(R,Z,oe,_e){const X=f.get(Z);if(X&&a(R,1)){M(R,Z,oe,_e);return}N(Z,oe),U(X)}function M(R,Z,oe,_e){const X=m.get(Z);X?X.fileNames.push(oe):m.set(Z,{dirName:R,options:_e,fileNames:[oe]}),y&&(u(y),y=void 0),y=l(V,1e3,"timerToUpdateChildWatches")}function V(){y=void 0,Q7(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);const R=Wo(),Z=new Map;for(;!y&&m.size;){const _e=m.entries().next();E.assert(!_e.done);const{value:[X,{dirName:H,options:Q,fileNames:ne}]}=_e;m.delete(X);const ue=Y(H,X,Q);N(X,Z,ue?void 0:ne)}Q7(`sysLog:: invokingWatchers:: Elapsed:: ${Wo()-R}ms:: ${m.size}`),g.forEach((_e,X)=>{const H=Z.get(X);H&&_e.forEach(({callback:Q,dirName:ne})=>{Ds(H)?H.forEach(Q):Q(ne)})});const oe=Wo()-R;Q7(`sysLog:: Elapsed:: ${oe}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function U(R){if(!R)return;const Z=R.childWatches;R.childWatches=Ve;for(const oe of Z)oe.close(),U(f.get(k(oe.dirName)))}function Y(R,Z,oe){const _e=f.get(Z);if(!_e)return!1;let X;const H=boe(a(R,1)?Hi(i(R),ue=>{const fe=ms(ue,R);return!j(fe,oe)&&x(fe,ba(o(fe)))===0?fe:void 0}):Ve,_e.childWatches,(ue,fe)=>x(ue,fe.dirName),Q,vm,ne);return _e.childWatches=X||Ve,H;function Q(ue){const fe=C(ue,oe);ne(fe)}function ne(ue){(X||(X=[])).push(ue)}}function j(R,Z){return dt(ew,oe=>ee(R,oe))||Xoe(R,Z,t,r)}function ee(R,Z){return Xl(R,Z)?!0:t?!1:Xl(k(R),Z)}}function Qwe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function Ywe(e,t,r){return(i,a,o)=>{i==="rename"?(o||(o=r(e)||zg),t(e,o!==zg?0:2,o)):t(e,1,o)}}function Xoe(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(UF(e,t==null?void 0:t.excludeFiles,r,i())||UF(e,t==null?void 0:t.excludeDirectories,r,i()))}function Qoe(e,t,r,i,a){return(o,l)=>{if(o==="rename"){const u=l?ba(Ii(e,l)):e;(!l||!Xoe(u,r,i,a))&&t(u)}}}function Yoe({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:a,fileSystemEntryExists:o,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:f,getAccessibleSortedChildDirectories:g,realpath:m,tscWatchFile:y,useNonPollingWatchers:x,tscWatchDirectory:k,inodeWatching:C,sysLog:N}){const D=new Map,M=new Map,V=new Map;let U,Y,j,ee,R=!1;return{watchFile:Z,watchDirectory:Q};function Z(De,Xe,ve,be){be=X(be,x);const xe=E.checkDefined(be.watchFile);switch(xe){case 0:return fe(De,Xe,250,void 0);case 1:return fe(De,Xe,ve,void 0);case 2:return oe()(De,Xe,ve,void 0);case 3:return _e()(De,Xe,void 0,void 0);case 4:return G(De,0,Ywe(De,Xe,t),!1,ve,a5(be));case 5:return j||(j=Hwe(G,l)),j(De,Xe,ve,a5(be));default:E.assertNever(xe)}}function oe(){return U||(U=qwe({getModifiedTime:t,setTimeout:r}))}function _e(){return Y||(Y=Gwe({getModifiedTime:t,setTimeout:r}))}function X(De,Xe){if(De&&De.watchFile!==void 0)return De;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return H(4,1,De);case"UseFsEventsWithFallbackDynamicPolling":return H(4,2,De);case"UseFsEventsOnParentDirectory":Xe=!0;default:return Xe?H(5,1,De):{watchFile:4}}}function H(De,Xe,ve){const be=ve==null?void 0:ve.fallbackPolling;return{watchFile:De,fallbackPolling:be===void 0?Xe:be}}function Q(De,Xe,ve,be){return f?G(De,1,Qoe(De,Xe,be,l,u),ve,500,a5(be)):(ee||(ee=Xwe({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:g,watchDirectory:ne,realpath:m,setTimeout:r,clearTimeout:i})),ee(De,Xe,ve,be))}function ne(De,Xe,ve,be){E.assert(!ve);const xe=ue(be),rt=E.checkDefined(xe.watchDirectory);switch(rt){case 1:return fe(De,()=>Xe(De),500,void 0);case 2:return oe()(De,()=>Xe(De),500,void 0);case 3:return _e()(De,()=>Xe(De),void 0,void 0);case 0:return G(De,1,Qoe(De,Xe,be,l,u),ve,500,a5(xe));default:E.assertNever(rt)}}function ue(De){if(De&&De.watchDirectory!==void 0)return De;switch(k){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Xe=De==null?void 0:De.fallbackPolling;return{watchDirectory:0,fallbackPolling:Xe!==void 0?Xe:void 0}}}function fe(De,Xe,ve,be){return Hoe(D,l,De,Xe,xe=>e(De,xe,ve,be))}function G(De,Xe,ve,be,xe,rt){return Hoe(be?V:M,l,De,ve,ct=>Ne(De,Xe,ct,be,xe,rt))}function Ne(De,Xe,ve,be,xe,rt){let ct,pe;C&&(ct=De.substring(De.lastIndexOf(qo)),pe=ct.slice(qo.length));let Pe=o(De,Xe)?tt():ot();return{close:()=>{Pe&&(Pe.close(),Pe=void 0)}};function Ge(Jt){Pe&&(N(`sysLog:: ${De}:: Changing watcher to ${Jt===tt?"Present":"Missing"}FileSystemEntryWatcher`),Pe.close(),Pe=Jt())}function tt(){if(R)return N(`sysLog:: ${De}:: Defaulting to watchFile`),Je();try{const Jt=a(De,be,C?mt:ve);return Jt.on("error",()=>{ve("rename",""),Ge(ot)}),Jt}catch(Jt){return R||(R=Jt.code==="ENOSPC"),N(`sysLog:: ${De}:: Changing to watchFile`),Je()}}function mt(Jt,Pt){let bt;if(Pt&&vc(Pt,"~")&&(bt=Pt,Pt=Pt.slice(0,Pt.length-1)),Jt==="rename"&&(!Pt||Pt===pe||vc(Pt,ct))){const _r=t(De)||zg;bt&&ve(Jt,bt,_r),ve(Jt,Pt,_r),C?Ge(_r===zg?ot:tt):_r===zg&&Ge(ot)}else bt&&ve(Jt,bt),ve(Jt,Pt)}function Je(){return Z(De,Qwe(ve),xe,rt)}function ot(){return Z(De,(Jt,Pt,bt)=>{Pt===0&&(bt||(bt=t(De)||zg),bt!==zg&&(ve("rename","",bt),Ge(tt)))},xe,rt)}}}function Zoe(e){const t=e.writeFile;e.writeFile=(r,i,a)=>kq(r,i,!!a,(o,l,u)=>t.call(e,o,l,u),o=>e.createDirectory(o),o=>e.directoryExists(o))}function Zwe(e){jl=e}var AU,zI,zg,Y7,Z7,K7,ew,NU,PU,jl,Kwe=Rt({"src/compiler/sys.ts"(){Ls(),AU=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(AU||{}),zI=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(zI||{}),zg=new Date(0),Y7={Low:32,Medium:64,High:256},Z7=DU(Y7),K7=DU(Y7),ew=["/node_modules/.","/.git","/.#"],NU=co,PU=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(PU||{}),jl=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,a=gx,o=gx,l=gx;let u;try{u=gx}catch{u=void 0}let f,g="./profile.cpuprofile";const m=gx.Buffer,y=process.platform==="linux"||process.platform==="darwin",x=l.platform(),k=_e(),C=a.realpathSync.native?process.platform==="win32"?xe:a.realpathSync.native:a.realpathSync,N=__filename.endsWith("sys.js")?o.join(o.dirname(__dirname),"__fake__.js"):__filename,D=process.platform==="win32"||process.platform==="darwin",M=wu(()=>process.cwd()),{watchFile:V,watchDirectory:U}=Yoe({pollingWatchFileWorker:H,getModifiedTime:ct,setTimeout,clearTimeout,fsWatchWorker:Q,useCaseSensitiveFileNames:k,getCurrentDirectory:M,fileSystemEntryExists:De,fsSupportsRecursiveFsWatch:D,getAccessibleSortedChildDirectories:tt=>G(tt).directories,realpath:rt,tscWatchFile:{}.TSC_WATCHFILE,useNonPollingWatchers:!!{}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{}.TSC_WATCHDIRECTORY,inodeWatching:y,sysLog:Q7}),Y={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:k,write(tt){process.stdout.write(tt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:ue,writeFile:fe,watchFile:V,watchDirectory:U,resolvePath:tt=>o.resolve(tt),fileExists:Xe,directoryExists:ve,createDirectory(tt){if(!Y.directoryExists(tt))try{a.mkdirSync(tt)}catch(mt){if(mt.code!=="EEXIST")throw mt}},getExecutingFilePath(){return N},getCurrentDirectory:M,getDirectories:be,getEnvironmentVariable(tt){return process.env[tt]||""},readDirectory:Ne,getModifiedTime:ct,setModifiedTime:pe,deleteFile:Pe,createHash:u?Ge:X7,createSHA256Hash:u?Ge:void 0,getMemoryUsage(){return q7e.gc&&q7e.gc(),process.memoryUsage().heapUsed},getFileSize(tt){try{const mt=j(tt);if(mt!=null&&mt.isFile())return mt.size}catch{}return 0},exit(tt){Z(()=>process.exit(tt))},enableCPUProfiler:ee,disableCPUProfiler:Z,cpuProfilingEnabled:()=>!!f||ys(process.execArgv,"--cpu-prof")||ys(process.execArgv,"--prof"),realpath:rt,debugMode:!!{}.NODE_INSPECTOR_IPC||!!{}.VSCODE_INSPECTOR_OPTIONS||dt(process.execArgv,tt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(tt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{gx.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var tt;const mt=(tt=process.stdout)==null?void 0:tt._handle;mt&&mt.setBlocking&&mt.setBlocking(!0)},bufferFrom:oe,base64decode:tt=>oe(tt,"base64").toString("utf8"),base64encode:tt=>oe(tt).toString("base64"),require:(tt,mt)=>{try{const Je=Rde(mt,tt,Y);return{module:H7e(Je),modulePath:Je,error:void 0}}catch(Je){return{module:void 0,modulePath:void 0,error:Je}}}};return Y;function j(tt){return a.statSync(tt,{throwIfNoEntry:!1})}function ee(tt,mt){if(f)return mt(),!1;const Je=gx;if(!Je||!Je.Session)return mt(),!1;const ot=new Je.Session;return ot.connect(),ot.post("Profiler.enable",()=>{ot.post("Profiler.start",()=>{f=ot,g=tt,mt()})}),!0}function R(tt){let mt=0;const Je=new Map,ot=zl(o.dirname(N)),Jt=`file://${_m(ot)===1?"":"/"}${ot}`;for(const Pt of tt.nodes)if(Pt.callFrame.url){const bt=zl(Pt.callFrame.url);Qh(Jt,bt,k)?Pt.callFrame.url=Dx(Jt,bt,Jt,Ql(k),!0):i.test(bt)||(Pt.callFrame.url=(Je.has(bt)?Je:Je.set(bt,`external${mt}.js`)).get(bt),mt++)}return tt}function Z(tt){if(f&&f!=="stopping"){const mt=f;return f.post("Profiler.stop",(Je,{profile:ot})=>{var Jt;if(!Je){try{(Jt=j(g))!=null&&Jt.isDirectory()&&(g=o.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{a.mkdirSync(o.dirname(g),{recursive:!0})}catch{}a.writeFileSync(g,JSON.stringify(R(ot)))}f=void 0,mt.disconnect(),tt()}),f="stopping",!0}else return tt(),!1}function oe(tt,mt){return m.from&&m.from!==Int8Array.from?m.from(tt,mt):new m(tt,mt)}function _e(){return x==="win32"||x==="win64"?!1:!Xe(X(__filename))}function X(tt){return tt.replace(/\w/g,mt=>{const Je=mt.toUpperCase();return mt===Je?mt.toLowerCase():Je})}function H(tt,mt,Je){a.watchFile(tt,{persistent:!0,interval:Je},Jt);let ot;return{close:()=>a.unwatchFile(tt,Jt)};function Jt(Pt,bt){const _r=+bt.mtime==0||ot===2;if(+Pt.mtime==0){if(_r)return;ot=2}else if(_r)ot=0;else{if(+Pt.mtime==+bt.mtime)return;ot=1}mt(tt,ot,Pt.mtime)}}function Q(tt,mt,Je){return a.watch(tt,D?{persistent:!0,recursive:!!mt}:{persistent:!0},Je)}function ne(tt,mt){let Je;try{Je=a.readFileSync(tt)}catch{return}let ot=Je.length;if(ot>=2&&Je[0]===254&&Je[1]===255){ot&=-2;for(let Jt=0;Jt=2&&Je[0]===255&&Je[1]===254?Je.toString("utf16le",2):ot>=3&&Je[0]===239&&Je[1]===187&&Je[2]===191?Je.toString("utf8",3):Je.toString("utf8")}function ue(tt,mt){var Je,ot;(Je=Dd)==null||Je.logStartReadFile(tt);const Jt=ne(tt);return(ot=Dd)==null||ot.logStopReadFile(),Jt}function fe(tt,mt,Je){var ot;(ot=Dd)==null||ot.logEvent("WriteFile: "+tt),Je&&(mt=e+mt);let Jt;try{Jt=a.openSync(tt,"w"),a.writeSync(Jt,mt,void 0,"utf8")}finally{Jt!==void 0&&a.closeSync(Jt)}}function G(tt){var mt;(mt=Dd)==null||mt.logEvent("ReadDir: "+(tt||"."));try{const Je=a.readdirSync(tt||".",{withFileTypes:!0}),ot=[],Jt=[];for(const Pt of Je){const bt=typeof Pt=="string"?Pt:Pt.name;if(bt==="."||bt==="..")continue;let _r;if(typeof Pt=="string"||Pt.isSymbolicLink()){const xn=Ii(tt,bt);try{if(_r=j(xn),!_r)continue}catch{continue}}else _r=Pt;_r.isFile()?ot.push(bt):_r.isDirectory()&&Jt.push(bt)}return ot.sort(),Jt.sort(),{files:ot,directories:Jt}}catch{return OO}}function Ne(tt,mt,Je,ot,Jt){return Qq(tt,mt,Je,ot,k,process.cwd(),Jt,G,rt)}function De(tt,mt){const Je=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const ot=j(tt);if(!ot)return!1;switch(mt){case 0:return ot.isFile();case 1:return ot.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=Je}}function Xe(tt){return De(tt,0)}function ve(tt){return De(tt,1)}function be(tt){return G(tt).directories.slice()}function xe(tt){return tt.length<260?a.realpathSync.native(tt):a.realpathSync(tt)}function rt(tt){try{return C(tt)}catch{return tt}}function ct(tt){var mt;const Je=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(mt=j(tt))==null?void 0:mt.mtime}catch{return}finally{Error.stackTraceLimit=Je}}function pe(tt,mt){try{a.utimesSync(tt,mt,mt)}catch{return}}function Pe(tt){try{return a.unlinkSync(tt)}catch{return}}function Ge(tt){const mt=u.createHash("sha256");return mt.update(tt),mt.digest("hex")}}let r;return vV()&&(r=t()),r&&Zoe(r),r})(),jl&&jl.getEnvironmentVariable&&(Wwe(jl),E.setAssertionLevel(/^development$/i.test(jl.getEnvironmentVariable("NODE_ENV"))?1:0)),jl&&jl.debugMode&&(E.isDebugging=!0)}});function IU(e){return e===47||e===92}function Koe(e){return tw(e)<0}function Ad(e){return tw(e)>0}function OU(e){const t=tw(e);return t>0&&t===e.length}function RC(e){return tw(e)!==0}function $u(e){return/^\.\.?($|[\\/])/.test(e)}function FU(e){return!RC(e)&&!$u(e)}function $k(e){return Xl(Jl(e),".")}function Hc(e,t){return e.length>t.length&&vc(e,t)}function Gc(e,t){for(const r of t)if(Hc(e,r))return!0;return!1}function V0(e){return e.length>0&&IU(e.charCodeAt(e.length-1))}function ece(e){return e>=97&&e<=122||e>=65&&e<=90}function eDe(e,t){const r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function tw(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?qo:aw,2);return i<0?e.length:i+1}if(ece(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const r=e.indexOf(JU);if(r!==-1){const i=r+JU.length,a=e.indexOf(qo,i);if(a!==-1){const o=e.slice(0,r),l=e.slice(i,a);if(o==="file"&&(l===""||l==="localhost")&&ece(e.charCodeAt(a+1))){const u=eDe(e,a+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(a+1)}return~e.length}return 0}function _m(e){const t=tw(e);return t<0?~t:t}function Ti(e){e=zl(e);const t=_m(e);return t===e.length?e:(e=Uv(e),e.slice(0,Math.max(t,e.lastIndexOf(qo))))}function Jl(e,t,r){if(e=zl(e),_m(e)===e.length)return"";e=Uv(e);const a=e.slice(Math.max(_m(e),e.lastIndexOf(qo)+1)),o=t!==void 0&&r!==void 0?nw(a,t,r):void 0;return o?a.slice(0,a.length-o.length):a}function tce(e,t,r){if(ns(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function tDe(e,t,r){if(typeof t=="string")return tce(e,t,r)||"";for(const i of t){const a=tce(e,i,r);if(a)return a}return""}function nw(e,t,r){if(t)return tDe(Uv(e),t,r?Tx:xx);const i=Jl(e),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function nDe(e,t){const r=e.substring(0,t),i=e.substring(t).split(qo);return i.length&&!jo(i)&&i.pop(),[r,...i]}function Dl(e,t=""){return e=Ii(t,e),nDe(e,_m(e))}function $h(e,t){return e.length===0?"":(e[0]&&D_(e[0]))+e.slice(1,t).join(qo)}function zl(e){return e.indexOf("\\")!==-1?e.replace(nce,qo):e}function wb(e){if(!dt(e))return[];const t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Ii(e,...t){e&&(e=zl(e));for(let r of t)!r||(r=zl(r),!e||_m(r)!==0?e=r:e=D_(e)+r);return e}function Xh(e,...t){return ba(dt(t)?Ii(e,...t):zl(e))}function rw(e,t){return wb(Dl(e,t))}function ms(e,t){return $h(rw(e,t))}function ba(e){if(e=zl(e),!ow.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!ow.test(e)))return e;const r=$h(wb(Dl(e)));return r&&V0(e)?D_(r):r}function rDe(e){return e.length===0?"":e.slice(1).join(qo)}function LU(e,t){return rDe(rw(e,t))}function ho(e,t,r){const i=Ad(e)?ba(e):ms(e,t);return r(i)}function Uv(e){return V0(e)?e.substr(0,e.length-1):e}function D_(e){return V0(e)?e:e+qo}function Wv(e){return!RC(e)&&!$u(e)?"./"+e:e}function iw(e,t,r,i){const a=r!==void 0&&i!==void 0?nw(e,r,i):nw(e);return a?e.slice(0,e.length-a.length)+(ns(t,".")?t:"."+t):e}function MU(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,_m(e)),a=t.substring(0,_m(t)),o=pI(i,a);if(o!==0)return o;const l=e.substring(i.length),u=t.substring(a.length);if(!ow.test(l)&&!ow.test(u))return r(l,u);const f=wb(Dl(e)),g=wb(Dl(t)),m=Math.min(f.length,g.length);for(let y=1;y0==_m(t)>0,"Paths must either both be absolute or both be relative");const o=BU(e,t,(typeof r=="boolean"?r:!1)?Tx:xx,typeof r=="function"?r:Zo);return $h(o)}function BC(e,t,r){return Ad(e)?Dx(t,e,t,r,!1):e}function sw(e,t,r){return Wv(um(Ti(e),t,r))}function Dx(e,t,r,i,a){const o=BU(Xh(r,e),Xh(r,t),xx,i),l=o[0];if(a&&Ad(l)){const u=l.charAt(0)===qo?"file://":"file:///";o[0]=u+l}return $h(o)}function Vg(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=Ti(e);if(i===e)return;e=i}}function jU(e){return vc(e,"/node_modules")}var qo,aw,JU,nce,ow,aDe=Rt({"src/compiler/path.ts"(){Ls(),qo="/",aw="\\",JU="://",nce=/\\/g,ow=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,r,i,a,o,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:a,elidedInCompatabilityPyramid:o,reportsDeprecated:l}}var p,oDe=Rt({"src/compiler/diagnosticInformationMap.generated.ts"(){Woe(),p={Unterminated_string_literal:b(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:b(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:b(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:b(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:b(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:b(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:b(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:b(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:b(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:b(1013,1,"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:b(1014,1,"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:b(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:b(1016,1,"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:b(1017,1,"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:b(1018,1,"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:b(1019,1,"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:b(1020,1,"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:b(1021,1,"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:b(1022,1,"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:b(1024,1,"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:b(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:b(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:b(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:b(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:b(1031,1,"_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:b(1034,1,"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:b(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:b(1036,1,"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:b(1038,1,"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:b(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:b(1040,1,"_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:b(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:b(1044,1,"_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:b(1046,1,"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:b(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:b(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:b(1049,1,"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:b(1051,1,"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:b(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:b(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:b(1054,1,"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:b(1055,1,"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:b(1056,1,"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:b(1058,1,"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:b(1059,1,"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:b(1060,1,"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:b(1061,1,"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:b(1062,1,"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:b(1063,1,"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:b(1064,1,"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 type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:b(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:b(1066,1,"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:b(1068,1,"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:b(1069,1,"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:b(1070,1,"_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:b(1071,1,"_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:b(1079,1,"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:b(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:b(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:b(1090,1,"_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:b(1091,1,"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:b(1092,1,"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:b(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:b(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:b(1095,1,"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:b(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:b(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:b(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:b(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:b(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:b(1101,1,"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:b(1102,1,"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:b(1103,1,"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:b(1104,1,"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:b(1105,1,"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:b(1106,1,"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:b(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:b(1108,1,"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:b(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:b(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:b(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:b(1113,1,"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:b(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:b(1115,1,"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:b(1116,1,"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:b(1117,1,"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:b(1118,1,"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:b(1119,1,"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:b(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:b(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:b(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:b(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:b(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:b(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:b(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:b(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:b(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:b(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:b(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:b(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:b(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:b(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:b(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:b(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:b(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:b(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:b(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:b(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:b(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:b(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:b(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:b(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:b(1147,1,"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:b(1148,1,"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:b(1149,1,"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."),_0_declarations_must_be_initialized:b(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:b(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:b(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:b(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:b(1162,1,"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:b(1163,1,"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:b(1164,1,"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:b(1165,1,"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:b(1166,1,"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:b(1168,1,"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:b(1169,1,"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:b(1170,1,"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:b(1171,1,"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:b(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:b(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:b(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:b(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:b(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:b(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:b(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:b(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:b(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:b(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:b(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:b(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:b(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:b(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:b(1186,1,"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:b(1187,1,"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:b(1188,1,"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:b(1189,1,"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:b(1190,1,"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:b(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:b(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:b(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:b(1194,1,"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:b(1195,1,"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:b(1196,1,"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:b(1197,1,"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:b(1198,1,"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:b(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:b(1200,1,"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:b(1202,1,"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:b(1203,1,"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_0_is_enabled_requires_using_export_type:b(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:b(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:b(1207,1,"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."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:b(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),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:b(1210,1,"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:b(1211,1,"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:b(1212,1,"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:b(1213,1,"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:b(1214,1,"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:b(1215,1,"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:b(1216,1,"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:b(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:b(1221,1,"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:b(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:b(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:b(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:b(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:b(1226,1,"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:b(1227,1,"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:b(1228,1,"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:b(1229,1,"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:b(1230,1,"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:b(1231,1,"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:b(1232,1,"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:b(1233,1,"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:b(1234,1,"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:b(1235,1,"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:b(1236,1,"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:b(1237,1,"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:b(1238,1,"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:b(1239,1,"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:b(1240,1,"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:b(1241,1,"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:b(1242,1,"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:b(1243,1,"_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:b(1244,1,"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:b(1245,1,"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:b(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:b(1247,1,"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:b(1248,1,"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:b(1249,1,"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:b(1250,1,"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:b(1251,1,"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:b(1252,1,"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."),Abstract_properties_can_only_appear_within_an_abstract_class:b(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:b(1254,1,"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:b(1255,1,"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:b(1257,1,"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:b(1258,1,"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:b(1259,1,"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:b(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:b(1261,1,"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:b(1262,1,"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:b(1263,1,"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:b(1264,1,"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:b(1265,1,"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:b(1266,1,"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:b(1267,1,"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:b(1268,1,"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_0_is_enabled:b(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:b(1270,1,"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:b(1271,1,"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'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:b(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:b(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:b(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:b(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:b(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:b(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:b(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:b(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:b(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:b(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:b(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:b(1300,1,"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:b(1308,1,"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."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:b(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),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:b(1312,1,"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:b(1313,1,"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:b(1314,1,"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:b(1315,1,"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:b(1316,1,"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:b(1317,1,"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:b(1318,1,"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:b(1319,1,"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:b(1320,1,"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:b(1321,1,"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:b(1322,1,"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_node16_or_nodenext:b(1323,1,"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', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:b(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:b(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:b(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:b(1327,1,"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:b(1328,1,"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:b(1329,1,"_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:b(1330,1,"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:b(1331,1,"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:b(1332,1,"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:b(1333,1,"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:b(1334,1,"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:b(1335,1,"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:b(1337,1,"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:b(1338,1,"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:b(1339,1,"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:b(1340,1,"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}')'?"),Class_constructor_may_not_be_an_accessor:b(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:b(1343,1,"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', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:b(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:b(1345,1,"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:b(1346,1,"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:b(1347,1,"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:b(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:b(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:b(1350,3,"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:b(1351,1,"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:b(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:b(1353,1,"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:b(1354,1,"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:b(1355,1,"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:b(1356,1,"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:b(1357,1,"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:b(1358,1,"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:b(1359,1,"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."),Type_0_does_not_satisfy_the_expected_type_1:b(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:b(1361,1,"_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:b(1362,1,"_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:b(1363,1,"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:b(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:b(1365,3,"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:b(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:b(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:b(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:b(1369,3,"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:b(1371,1,"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'."),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:b(1375,1,"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:b(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:b(1377,3,"_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_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 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:b(1379,1,"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:b(1380,1,"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:b(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:b(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1385,1,"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:b(1386,1,"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:b(1387,1,"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:b(1388,1,"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:b(1389,1,"_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:b(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:b(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:b(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:b(1394,3,"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:b(1395,3,"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:b(1396,3,"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:b(1397,3,"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:b(1398,3,"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:b(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:b(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:b(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:b(1402,3,"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:b(1403,3,"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:b(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:b(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:b(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:b(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:b(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:b(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:b(1410,3,"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:b(1411,3,"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:b(1412,3,"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:b(1413,3,"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:b(1414,3,"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:b(1415,3,"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:b(1416,3,"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:b(1417,3,"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:b(1418,3,"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:b(1419,3,"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:b(1420,3,"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:b(1421,3,"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:b(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:b(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:b(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:b(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:b(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:b(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:b(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:b(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:b(1430,3,"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:b(1431,1,"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_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:b(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:b(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:b(1435,1,"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:b(1436,1,"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:b(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:b(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:b(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:b(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:b(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:b(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:b(1443,1,"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:b(1444,1,"_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:b(1446,1,"_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_1_is_enabled:b(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:b(1449,3,"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:b(1450,3,"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:b(1451,1,"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"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:b(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:b(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:b(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:b(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:b(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:b(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:b(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:b(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:b(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:b(1470,1,"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_with_require_Use_an_ECMAScript_import_instead:b(1471,1,"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 with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:b(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1473,1,"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:b(1474,1,"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."),Control_what_method_is_used_to_detect_module_format_JS_files:b(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:b(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:b(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:b(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:b(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:b(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:b(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:b(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:b(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:b(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:b(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:b(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:b(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:b(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:b(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:b(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:b(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:b(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:b(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),The_types_of_0_are_incompatible_between_these_types:b(2200,1,"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:b(2201,1,"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:b(2202,1,"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:b(2203,1,"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:b(2204,1,"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:b(2205,1,"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:b(2206,1,"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:b(2207,1,"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."),This_type_parameter_might_need_an_extends_0_constraint:b(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:b(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:b(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:b(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2301,1,"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:b(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:b(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:b(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:b(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:b(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:b(2307,1,"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:b(2308,1,"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:b(2309,1,"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:b(2310,1,"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:b(2311,1,"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:b(2312,1,"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:b(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:b(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:b(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:b(2316,1,"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:b(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:b(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:b(2319,1,"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:b(2320,1,"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:b(2321,1,"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:b(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:b(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:b(2324,1,"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:b(2325,1,"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:b(2326,1,"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:b(2327,1,"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:b(2328,1,"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:b(2329,1,"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:b(2330,1,"_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:b(2331,1,"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:b(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:b(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:b(2334,1,"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:b(2335,1,"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:b(2336,1,"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:b(2337,1,"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:b(2338,1,"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:b(2339,1,"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:b(2340,1,"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:b(2341,1,"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:b(2343,1,"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:b(2344,1,"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:b(2345,1,"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}'."),Untyped_function_calls_may_not_accept_type_arguments:b(2347,1,"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:b(2348,1,"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:b(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:b(2350,1,"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:b(2351,1,"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:b(2352,1,"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:b(2353,1,"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:b(2354,1,"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_undefined_void_nor_any_must_return_a_value:b(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:b(2356,1,"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:b(2357,1,"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:b(2358,1,"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:b(2359,1,"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_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2362,1,"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:b(2363,1,"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:b(2364,1,"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:b(2365,1,"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:b(2366,1,"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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:b(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:b(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:b(2369,1,"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:b(2370,1,"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:b(2371,1,"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:b(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:b(2373,1,"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:b(2374,1,"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:b(2375,1,"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:b(2376,1,"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:b(2377,1,"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:b(2378,1,"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:b(2379,1,"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."),Overload_signatures_must_all_be_exported_or_non_exported:b(2383,1,"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:b(2384,1,"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:b(2385,1,"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:b(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:b(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:b(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:b(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:b(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:b(2391,1,"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:b(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:b(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:b(2394,1,"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:b(2395,1,"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:b(2396,1,"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:b(2397,1,"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:b(2398,1,"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:b(2399,1,"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:b(2400,1,"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:b(2401,1,"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:b(2402,1,"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:b(2403,1,"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:b(2404,1,"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:b(2405,1,"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:b(2406,1,"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:b(2407,1,"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:b(2408,1,"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:b(2409,1,"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:b(2410,1,"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:b(2412,1,"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:b(2411,1,"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:b(2413,1,"_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:b(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:b(2415,1,"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:b(2416,1,"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:b(2417,1,"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:b(2418,1,"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:b(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:b(2420,1,"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:b(2422,1,"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:b(2423,1,"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:b(2425,1,"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:b(2426,1,"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:b(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:b(2428,1,"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:b(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:b(2431,1,"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:b(2432,1,"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:b(2433,1,"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:b(2434,1,"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:b(2435,1,"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:b(2436,1,"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:b(2437,1,"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:b(2438,1,"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:b(2439,1,"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:b(2440,1,"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:b(2441,1,"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:b(2442,1,"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:b(2443,1,"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:b(2444,1,"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:b(2445,1,"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:b(2446,1,"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:b(2447,1,"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:b(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:b(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:b(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:b(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:b(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:b(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:b(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:b(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:b(2458,1,"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:b(2459,1,"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:b(2460,1,"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:b(2461,1,"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:b(2462,1,"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:b(2463,1,"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:b(2464,1,"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:b(2465,1,"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:b(2466,1,"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:b(2467,1,"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:b(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:b(2469,1,"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:b(2472,1,"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:b(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:b(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),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:b(2475,1,"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:b(2476,1,"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:b(2477,1,"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:b(2478,1,"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:b(2480,1,"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:b(2481,1,"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:b(2483,1,"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:b(2484,1,"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:b(2487,1,"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:b(2488,1,"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:b(2489,1,"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:b(2490,1,"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:b(2491,1,"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:b(2492,1,"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:b(2493,1,"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:b(2494,1,"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:b(2495,1,"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:b(2496,1,"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:b(2497,1,"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:b(2498,1,"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:b(2499,1,"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:b(2500,1,"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:b(2501,1,"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:b(2502,1,"_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:b(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:b(2504,1,"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:b(2505,1,"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:b(2506,1,"_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:b(2507,1,"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:b(2508,1,"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:b(2509,1,"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:b(2510,1,"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:b(2511,1,"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:b(2512,1,"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:b(2513,1,"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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:b(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:b(2515,1,"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:b(2516,1,"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:b(2517,1,"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:b(2518,1,"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:b(2519,1,"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:b(2520,1,"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:b(2522,1,"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:b(2523,1,"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:b(2524,1,"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:b(2525,1,"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:b(2526,1,"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:b(2527,1,"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:b(2528,1,"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:b(2529,1,"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:b(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:b(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:b(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:b(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:b(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:b(2536,1,"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:b(2537,1,"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:b(2538,1,"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:b(2539,1,"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:b(2540,1,"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:b(2542,1,"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:b(2543,1,"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:b(2544,1,"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:b(2545,1,"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:b(2547,1,"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:b(2548,1,"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:b(2549,1,"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:b(2550,1,"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:b(2551,1,"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:b(2552,1,"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:b(2553,1,"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:b(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:b(2555,1,"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:b(2556,1,"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:b(2558,1,"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:b(2559,1,"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:b(2560,1,"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:b(2561,1,"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:b(2562,1,"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:b(2563,1,"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:b(2564,1,"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:b(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:b(2566,1,"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:b(2567,1,"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:b(2568,1,"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}'?"),Could_not_find_name_0_Did_you_mean_1:b(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:b(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:b(2574,1,"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:b(2575,1,"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:b(2576,1,"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:b(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:b(2578,1,"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:b(2580,1,"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:b(2581,1,"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:b(2582,1,"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:b(2583,1,"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:b(2584,1,"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:b(2585,1,"_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:b(2588,1,"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:b(2589,1,"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:b(2590,1,"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:b(2591,1,"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:b(2592,1,"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:b(2593,1,"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_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:b(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with '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:b(2595,1,"_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:b(2596,1,"_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:b(2597,1,"_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:b(2598,1,"_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:b(2602,1,"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:b(2603,1,"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:b(2604,1,"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:b(2606,1,"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:b(2607,1,"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:b(2608,1,"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:b(2609,1,"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:b(2610,1,"_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:b(2611,1,"_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:b(2612,1,"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:b(2613,1,"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:b(2614,1,"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:b(2615,1,"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:b(2616,1,"_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:b(2617,1,"_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:b(2618,1,"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:b(2619,1,"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:b(2620,1,"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:b(2621,1,"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:b(2623,1,"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:b(2624,1,"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:b(2625,1,"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:b(2626,1,"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:b(2627,1,"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:b(2628,1,"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:b(2629,1,"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:b(2630,1,"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:b(2631,1,"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:b(2632,1,"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:b(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:b(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:b(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:b(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:b(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:b(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:b(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:b(2649,1,"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:b(2651,1,"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:b(2652,1,"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:b(2653,1,"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:b(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:b(2658,1,"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:b(2659,1,"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:b(2660,1,"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:b(2661,1,"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:b(2662,1,"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:b(2663,1,"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:b(2664,1,"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:b(2665,1,"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:b(2666,1,"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:b(2667,1,"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:b(2668,1,"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:b(2669,1,"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:b(2670,1,"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:b(2671,1,"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:b(2672,1,"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:b(2673,1,"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:b(2674,1,"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:b(2675,1,"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:b(2676,1,"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:b(2677,1,"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:b(2678,1,"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:b(2679,1,"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:b(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:b(2681,1,"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:b(2683,1,"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:b(2684,1,"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:b(2685,1,"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:b(2686,1,"_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:b(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:b(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:b(2689,1,"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:b(2690,1,"_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}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:b(2692,1,"_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:b(2693,1,"_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:b(2694,1,"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:b(2695,1,"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:b(2696,1,"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:b(2697,1,"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:b(2698,1,"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:b(2699,1,"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:b(2700,1,"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:b(2701,1,"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:b(2702,1,"_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:b(2703,1,"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:b(2704,1,"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:b(2705,1,"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:b(2706,1,"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:b(2707,1,"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:b(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:b(2709,1,"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:b(2710,1,"_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:b(2711,1,"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:b(2712,1,"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:b(2713,1,"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:b(2714,1,"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:b(2715,1,"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:b(2716,1,"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:b(2717,1,"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:b(2718,1,"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:b(2719,1,"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:b(2720,1,"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:b(2721,1,"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:b(2722,1,"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:b(2723,1,"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:b(2724,1,"_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:b(2725,1,"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:b(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:b(2727,1,"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:b(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:b(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:b(2730,1,"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:b(2731,1,"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:b(2732,1,"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:b(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:b(2734,1,"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:b(2735,1,"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:b(2736,1,"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:b(2737,1,"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:b(2738,3,"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:b(2739,1,"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:b(2740,1,"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:b(2741,1,"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:b(2742,1,"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:b(2743,1,"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:b(2744,1,"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:b(2745,1,"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:b(2746,1,"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:b(2747,1,"_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_0_is_enabled:b(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:b(2749,1,"_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:b(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:b(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:b(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:b(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:b(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:b(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:b(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:b(2757,1,"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:b(2758,1,"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:b(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:b(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:b(2761,1,"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:b(2762,1,"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:b(2763,1,"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:b(2764,1,"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:b(2765,1,"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:b(2766,1,"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:b(2767,1,"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:b(2768,1,"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:b(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:b(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:b(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:b(2772,1,"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:b(2773,1,"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:b(2774,1,"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:b(2775,1,"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:b(2776,1,"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:b(2777,1,"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:b(2778,1,"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:b(2779,1,"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:b(2780,1,"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:b(2781,1,"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:b(2782,3,"_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:b(2783,1,"_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:b(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:b(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:b(2786,1,"_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:b(2787,1,"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:b(2788,1,"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:b(2789,1,"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:b(2790,1,"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:b(2791,1,"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_nodenext_or_to_add_aliases_to_the_paths_option:b(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', 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:b(2793,1,"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:b(2794,1,"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:b(2795,1,"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:b(2796,1,"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:b(2797,1,"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:b(2798,1,"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:b(2799,1,"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:b(2800,1,"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:b(2801,1,"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:b(2802,1,"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:b(2803,1,"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:b(2804,1,"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:b(2806,1,"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:b(2807,1,"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:b(2808,1,"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_whole_assignment_in_parentheses:b(2809,1,"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 whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:b(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:b(2811,1,"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:b(2812,1,"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:b(2813,1,"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:b(2814,1,"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:b(2815,1,"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:b(2816,1,"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:b(2817,1,"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:b(2818,1,"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:b(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:b(2820,1,"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:b(2821,1,"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:b(2822,1,"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:b(2833,1,"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_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:b(2834,1,"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 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:b(2835,1,"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 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:b(2836,1,"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:b(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:b(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:b(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:b(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:b(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:b(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:b(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:b(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:b(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:b(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:b(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_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:b(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements 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_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Import_declaration_0_is_using_private_name_1:b(4e3,1,"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:b(4002,1,"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:b(4004,1,"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:b(4006,1,"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:b(4008,1,"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:b(4010,1,"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:b(4012,1,"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:b(4014,1,"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:b(4016,1,"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:b(4019,1,"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:b(4020,1,"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:b(4021,1,"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:b(4022,1,"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:b(4023,1,"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:b(4024,1,"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:b(4025,1,"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:b(4026,1,"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:b(4027,1,"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:b(4028,1,"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:b(4029,1,"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:b(4030,1,"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:b(4031,1,"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:b(4032,1,"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:b(4033,1,"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:b(4034,1,"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:b(4035,1,"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:b(4036,1,"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:b(4037,1,"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:b(4038,1,"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:b(4039,1,"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:b(4040,1,"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:b(4041,1,"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:b(4042,1,"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:b(4043,1,"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:b(4044,1,"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:b(4045,1,"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:b(4046,1,"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:b(4047,1,"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:b(4048,1,"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:b(4049,1,"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:b(4050,1,"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:b(4051,1,"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:b(4052,1,"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:b(4053,1,"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:b(4054,1,"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:b(4055,1,"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:b(4056,1,"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:b(4057,1,"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:b(4058,1,"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:b(4059,1,"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:b(4060,1,"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:b(4061,1,"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:b(4062,1,"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:b(4063,1,"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:b(4064,1,"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:b(4065,1,"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:b(4066,1,"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:b(4067,1,"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:b(4068,1,"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:b(4069,1,"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:b(4070,1,"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:b(4071,1,"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:b(4072,1,"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:b(4073,1,"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:b(4074,1,"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:b(4075,1,"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:b(4076,1,"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:b(4077,1,"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:b(4078,1,"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:b(4081,1,"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:b(4082,1,"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:b(4083,1,"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:b(4084,1,"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}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:b(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:b(4090,1,"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:b(4091,1,"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:b(4092,1,"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:b(4094,1,"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:b(4095,1,"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:b(4096,1,"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:b(4097,1,"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:b(4098,1,"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:b(4099,1,"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:b(4100,1,"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:b(4101,1,"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:b(4102,1,"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:b(4103,1,"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:b(4104,1,"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:b(4105,1,"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:b(4106,1,"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:b(4107,1,"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:b(4108,1,"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:b(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:b(4110,1,"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:b(4111,1,"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:b(4112,1,"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:b(4113,1,"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:b(4114,1,"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:b(4115,1,"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:b(4116,1,"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:b(4117,1,"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:b(4118,1,"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:b(4119,1,"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:b(4120,1,"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:b(4121,1,"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:b(4122,1,"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:b(4123,1,"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:b(4124,1,"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'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are 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:b(5001,1,"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:b(5009,1,"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:b(5010,1,"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:b(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:b(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:b(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:b(5024,1,"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:b(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:b(5033,1,"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:b(5042,1,"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:b(5047,1,"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:b(5048,1,"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:b(5051,1,"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:b(5052,1,"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:b(5053,1,"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:b(5054,1,"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:b(5055,1,"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:b(5056,1,"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:b(5057,1,"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:b(5058,1,"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:b(5059,1,"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:b(5061,1,"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:b(5062,1,"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:b(5063,1,"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:b(5064,1,"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:b(5065,1,"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:b(5066,1,"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:b(5067,1,"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:b(5068,1,"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:b(5069,1,"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_when_moduleResolution_is_set_to_classic:b(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:b(5071,1,"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:b(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:b(5073,1,"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:b(5074,1,"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:b(5075,1,"_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:b(5076,1,"_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:b(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:b(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:b(5079,1,"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:b(5080,1,"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:b(5081,1,"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:b(5082,1,"_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:b(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:b(5085,1,"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:b(5086,1,"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:b(5087,1,"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:b(5088,1,"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:b(5089,1,"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:b(5090,1,"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_0_is_enabled:b(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:b(5092,1,"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:b(5093,1,"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:b(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:b(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:b(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:b(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:b(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:b(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:b(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:b(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:b(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:b(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:b(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:b(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:b(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:b(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:b(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:b(6e3,3,"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:b(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:b(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:b(6004,3,"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:b(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:b(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:b(6007,3,"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:b(6008,3,"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:b(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:b(6010,3,"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:b(6011,3,"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:b(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:b(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:b(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:b(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:b(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:b(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:b(6019,3,"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:b(6020,3,"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:b(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:b(6024,3,"options_6024","options"),file:b(6025,3,"file_6025","file"),Examples_Colon_0:b(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:b(6027,3,"Options_Colon_6027","Options:"),Version_0:b(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:b(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:b(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:b(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:b(6034,3,"KIND_6034","KIND"),FILE:b(6035,3,"FILE_6035","FILE"),VERSION:b(6036,3,"VERSION_6036","VERSION"),LOCATION:b(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:b(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:b(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:b(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:b(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:b(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:b(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:b(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:b(6046,1,"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:b(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:b(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:b(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:b(6052,3,"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:b(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:b(6054,1,"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:b(6055,3,"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:b(6056,3,"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:b(6058,3,"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:b(6059,1,"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:b(6060,3,"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:b(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:b(6064,1,"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:b(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:b(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:b(6070,3,"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:b(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:b(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:b(6073,3,"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:b(6074,3,"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:b(6075,3,"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:b(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:b(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:b(6078,3,"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:b(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:b(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:b(6081,3,"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:b(6082,1,"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:b(6083,3,"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:b(6084,3,"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:b(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:b(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:b(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:b(6088,3,"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:b(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:b(6090,3,"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:b(6091,3,"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:b(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:b(6093,3,"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:b(6094,3,"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_types_Colon_1:b(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:b(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:b(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:b(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:b(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:b(6100,3,"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:b(6101,3,"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:b(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:b(6104,3,"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:b(6105,3,"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:b(6106,3,"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:b(6107,3,"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:b(6108,3,"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:b(6109,3,"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:b(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:b(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:b(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:b(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:b(6114,1,"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:b(6115,3,"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:b(6116,3,"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:b(6119,3,"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:b(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:b(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:b(6122,3,"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:b(6123,3,"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:b(6124,3,"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:b(6125,3,"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:b(6126,3,"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:b(6127,3,"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:b(6128,3,"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:b(6130,3,"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:b(6131,1,"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:b(6132,3,"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:b(6133,1,"_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:b(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:b(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:b(6136,3,"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:b(6137,1,"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:b(6138,1,"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:b(6139,3,"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:b(6140,1,"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:b(6141,3,"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:b(6142,1,"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:b(6144,3,"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:b(6145,3,"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:b(6146,3,"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:b(6147,3,"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:b(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:b(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:b(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:b(6151,3,"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:b(6152,3,"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:b(6153,3,"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:b(6154,3,"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:b(6155,3,"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:b(6156,3,"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:b(6157,3,"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:b(6158,3,"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:b(6159,3,"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:b(6160,3,"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:b(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:b(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:b(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:b(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:b(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:b(6166,3,"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:b(6167,3,"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:b(6168,3,"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:b(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:b(6170,3,"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:b(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:b(6179,3,"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:b(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:b(6182,3,"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:b(6183,3,"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:b(6184,3,"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:b(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:b(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:b(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:b(6189,1,"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:b(6191,3,"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:b(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:b(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:b(6194,3,"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:b(6195,3,"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:b(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:b(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:b(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:b(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:b(6200,1,"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:b(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:b(6202,1,"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:b(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:b(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:b(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:b(6206,3,"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:b(6207,3,"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:b(6208,3,"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:b(6209,3,"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:b(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:b(6211,3,"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:b(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:b(6213,3,"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:b(6214,3,"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:b(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:b(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:b(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:b(6218,3,"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:b(6219,3,"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:b(6220,3,"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:b(6221,3,"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:b(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:b(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:b(6224,3,"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:b(6225,3,"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:b(6226,3,"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:b(6227,3,"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:b(6229,1,"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:b(6230,1,"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:b(6231,1,"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:b(6232,1,"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:b(6233,1,"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:b(6234,1,"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:b(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:b(6236,1,"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:b(6237,3,"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:b(6238,1,"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:b(6239,3,"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:b(6240,3,"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:b(6241,3,"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:b(6242,3,"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:b(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:b(6244,3,"Modules_6244","Modules"),File_Management:b(6245,3,"File_Management_6245","File Management"),Emit:b(6246,3,"Emit_6246","Emit"),JavaScript_Support:b(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:b(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:b(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:b(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:b(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:b(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:b(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:b(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:b(6255,3,"Projects_6255","Projects"),Output_Formatting:b(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:b(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:b(6258,1,"_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_0:b(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:b(6260,3,"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:b(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:b(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:b(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:b(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:b(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:b(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:b(6270,3,"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:b(6271,3,"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:b(6272,3,"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:b(6273,3,"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:b(6274,3,"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:b(6275,3,"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:b(6276,3,"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}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:b(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:b(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:b(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:b(6304,1,"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:b(6305,1,"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:b(6306,1,"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:b(6307,1,"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:b(6308,1,"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:b(6309,1,"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:b(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:b(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:b(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:b(6352,3,"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:b(6353,3,"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:b(6354,3,"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:b(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:b(6356,3,"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:b(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:b(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:b(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:b(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:b(6362,3,"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:b(6363,3,"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:b(6364,3,"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:b(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:b(6367,3,"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:b(6369,1,"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:b(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:b(6371,3,"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:b(6372,3,"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:b(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:b(6374,3,"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:b(6375,3,"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:b(6376,3,"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:b(6377,1,"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}'"),Composite_projects_may_not_disable_incremental_compilation:b(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:b(6380,3,"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:b(6381,3,"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:b(6382,3,"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:b(6383,3,"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:b(6384,3,"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:b(6385,2,"_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:b(6386,3,"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:b(6387,2,"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:b(6388,3,"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:b(6389,3,"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:b(6390,3,"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:b(6391,3,"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:b(6392,3,"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:b(6393,3,"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:b(6394,3,"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:b(6395,3,"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:b(6396,3,"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:b(6397,3,"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:b(6398,3,"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."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:b(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:b(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:b(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:b(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:b(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:b(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:b(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:b(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:b(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:b(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:b(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:b(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:b(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:b(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:b(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:b(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:b(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:b(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:b(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:b(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:b(6500,3,"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:b(6501,3,"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:b(6502,3,"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:b(6503,3,"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:b(6504,1,"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:b(6505,3,"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:b(6506,3,"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:b(6600,3,"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:b(6601,3,"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:b(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:b(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:b(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:b(6605,3,"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:b(6606,3,"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:b(6607,3,"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:b(6608,3,"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:b(6609,3,"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:b(6611,3,"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:b(6612,3,"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:b(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:b(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:b(6615,3,"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:b(6616,3,"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:b(6617,3,"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:b(6618,3,"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:b(6619,3,"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:b(6620,3,"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:b(6621,3,"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:b(6622,3,"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:b(6623,3,"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:b(6624,3,"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:b(6625,3,"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:b(6626,3,"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:b(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:b(6628,3,"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:b(6629,3,"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_legacy_experimental_decorators:b(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:b(6631,3,"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:b(6632,3,"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:b(6633,3,"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:b(6634,3,"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:b(6635,3,"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:b(6636,3,"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:b(6637,3,"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:b(6638,3,"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:b(6639,3,"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:b(6641,3,"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:b(6642,3,"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:b(6643,3,"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:b(6644,3,"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:b(6645,3,"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:b(6646,3,"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:b(6647,3,"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:b(6648,3,"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:b(6649,3,"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:b(6650,3,"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:b(6651,3,"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:b(6652,3,"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:b(6653,3,"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:b(6654,3,"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:b(6655,3,"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:b(6656,3,"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:b(6657,3,"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:b(6658,3,"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:b(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:b(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:b(6661,3,"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:b(6662,3,"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:b(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:b(6664,3,"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:b(6665,3,"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:b(6666,3,"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:b(6667,3,"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:b(6668,3,"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:b(6669,3,"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:b(6670,3,"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:b(6671,3,"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:b(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:b(6673,3,"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:b(6674,3,"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_local_variables_aren_t_read:b(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:b(6676,3,"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:b(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:b(6678,3,"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:b(6679,3,"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:b(6680,3,"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:b(6681,3,"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:b(6682,3,"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:b(6683,3,"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:b(6684,3,"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:b(6685,3,"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:b(6686,3,"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:b(6687,3,"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:b(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:b(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:b(6690,3,"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:b(6691,3,"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:b(6692,3,"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:b(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:b(6694,3,"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:b(6695,3,"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:b(6697,3,"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:b(6698,3,"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:b(6699,3,"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:b(6700,3,"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:b(6701,3,"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:b(6702,3,"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:b(6703,3,"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:b(6704,3,"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:b(6705,3,"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:b(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:b(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:b(6709,3,"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:b(6710,3,"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:b(6711,3,"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:b(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:b(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:b(6714,3,"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:b(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:b(6717,3,"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:b(6718,3,"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."),Default_catch_clause_variables_as_unknown_instead_of_any:b(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:b(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:b(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:b(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:b(6902,3,"type_Colon_6902","type:"),default_Colon:b(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:b(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:b(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:b(6906,3,"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:b(6907,3,"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:b(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:b(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:b(69010,3,"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:b(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:b(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:b(6913,3,"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:b(6914,3,"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:b(6915,3,"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:b(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:b(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:b(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:b(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:b(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:b(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:b(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:b(6923,3,"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:b(6924,3,"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:b(6925,3,"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:b(6926,3,"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:b(6927,3,"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:b(6928,3,"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:b(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:b(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:b(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:b(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:b(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:b(7008,1,"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:b(7009,1,"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:b(7010,1,"_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:b(7011,1,"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."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:b(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7013,1,"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:b(7014,1,"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:b(7015,1,"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:b(7016,1,"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:b(7017,1,"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:b(7018,1,"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:b(7019,1,"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:b(7020,1,"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:b(7022,1,"_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:b(7023,1,"_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:b(7024,1,"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:b(7025,1,"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:b(7026,1,"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:b(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:b(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:b(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:b(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:b(7031,1,"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:b(7032,1,"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:b(7033,1,"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:b(7034,1,"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:b(7035,1,"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:b(7036,1,"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:b(7037,3,"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:b(7038,3,"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:b(7039,1,"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:b(7040,1,"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:b(7041,1,"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:b(7042,1,"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:b(7043,2,"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:b(7044,2,"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:b(7045,2,"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:b(7046,2,"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:b(7047,2,"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:b(7048,2,"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:b(7049,2,"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:b(7050,2,"_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:b(7051,1,"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:b(7052,1,"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:b(7053,1,"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:b(7054,1,"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:b(7055,1,"_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:b(7056,1,"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:b(7057,1,"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:b(7058,1,"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:b(7059,1,"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:b(7060,1,"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:b(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:b(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:b(8001,1,"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:b(8002,1,"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:b(8003,1,"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:b(8004,1,"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:b(8005,1,"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:b(8006,1,"_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:b(8008,1,"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:b(8009,1,"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:b(8010,1,"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:b(8011,1,"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:b(8012,1,"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:b(8013,1,"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:b(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:b(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:b(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:b(8020,1,"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:b(8021,1,"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:b(8022,1,"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:b(8023,1,"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:b(8024,1,"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:b(8025,1,"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:b(8026,1,"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:b(8027,1,"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:b(8028,1,"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:b(8029,1,"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:b(8030,1,"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:b(8031,1,"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:b(8032,1,"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:b(8033,1,"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:b(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:b(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:b(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:b(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:b(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:b(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:b(9005,1,"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:b(9006,1,"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:b(17e3,1,"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:b(17001,1,"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:b(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:b(17004,1,"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:b(17005,1,"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:b(17006,1,"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:b(17007,1,"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:b(17008,1,"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:b(17009,1,"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:b(17010,1,"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:b(17011,1,"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:b(17012,1,"_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:b(17013,1,"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:b(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:b(17015,1,"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:b(17016,1,"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:b(17017,1,"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:b(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:b(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:b(18002,1,"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:b(18003,1,"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:b(80001,2,"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:b(80002,2,"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:b(80003,2,"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:b(80004,2,"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:b(80005,2,"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:b(80006,2,"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:b(80007,2,"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:b(80008,2,"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."),JSDoc_typedef_may_be_converted_to_TypeScript_type:b(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:b(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:b(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:b(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:b(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:b(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:b(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:b(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:b(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:b(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:b(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:b(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:b(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:b(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:b(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:b(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:b(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:b(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:b(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:b(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:b(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:b(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:b(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:b(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:b(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:b(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:b(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:b(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:b(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:b(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:b(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:b(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:b(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:b(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:b(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:b(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:b(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:b(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:b(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:b(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:b(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:b(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:b(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:b(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:b(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:b(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:b(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:b(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:b(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:b(95005,3,"Extract_function_95005","Extract function"),Extract_constant:b(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:b(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:b(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:b(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:b(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:b(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:b(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:b(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:b(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:b(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:b(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:b(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:b(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:b(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:b(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:b(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:b(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:b(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:b(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:b(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:b(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:b(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:b(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:b(95030,3,"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:b(95031,3,"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:b(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:b(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:b(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:b(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:b(95036,3,"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:b(95037,3,"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:b(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:b(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:b(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:b(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:b(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:b(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:b(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:b(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:b(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:b(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:b(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:b(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:b(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:b(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:b(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:b(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:b(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:b(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:b(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:b(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:b(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:b(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:b(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:b(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:b(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:b(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:b(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:b(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:b(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:b(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:b(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:b(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:b(95070,3,"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:b(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:b(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:b(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:b(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:b(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:b(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:b(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:b(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:b(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:b(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:b(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:b(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:b(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:b(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:b(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:b(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:b(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:b(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:b(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:b(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:b(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:b(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:b(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:b(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:b(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:b(95097,3,"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:b(95098,3,"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:b(95099,3,"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:b(95100,3,"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:b(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:b(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:b(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:b(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:b(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:b(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:b(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:b(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:b(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:b(95112,3,"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:b(95113,3,"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:b(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:b(95115,3,"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:b(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:b(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:b(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:b(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:b(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:b(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:b(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:b(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:b(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:b(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:b(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:b(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:b(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:b(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:b(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:b(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:b(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:b(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:b(95134,3,"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:b(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:b(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:b(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:b(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:b(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:b(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:b(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:b(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:b(95143,3,"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:b(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:b(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:b(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:b(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:b(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:b(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:b(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:b(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:b(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:b(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:b(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:b(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:b(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:b(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:b(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:b(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:b(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:b(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:b(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:b(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:b(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:b(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:b(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:b(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:b(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:b(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:b(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:b(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:b(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:b(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:b(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:b(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:b(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:b(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:b(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:b(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:b(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:b(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:b(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:b(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:b(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:b(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:b(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:b(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:b(18004,1,"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:b(18006,1,"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:b(18007,1,"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:b(18009,1,"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:b(18010,1,"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:b(18011,1,"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:b(18012,1,"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:b(18013,1,"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:b(18014,1,"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:b(18015,1,"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:b(18016,1,"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:b(18017,1,"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:b(18018,1,"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:b(18019,1,"_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:b(18024,1,"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:b(18026,1,"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:b(18027,1,"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:b(18028,1,"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:b(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:b(18030,1,"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:b(18031,1,"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:b(18032,1,"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."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:b(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:b(18034,3,"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:b(18035,1,"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:b(18036,1,"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:b(18037,1,"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:b(18038,1,"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:b(18039,1,"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:b(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:b(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:b(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:b(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:b(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:b(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:b(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:b(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:b(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:b(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:b(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:b(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:b(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function V_(e){return e>=80}function rce(e){return e===32||V_(e)}function jC(e,t){if(e=2?jC(e,dce):t===1?jC(e,fce):jC(e,_ce)}function cDe(e,t){return t>=2?jC(e,mce):t===1?jC(e,pce):jC(e,uce)}function lDe(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function ia(e){return yce[e]}function qv(e){return WU.get(e)}function cw(e){const t=[];let r=0,i=0;for(;r127&&Yl(a)&&(t.push(i),i=r);break}}return t.push(i),t}function lw(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):zU(Ug(e),t,r,e.text,i)}function zU(e,t,r,i,a){(t<0||t>=e.length)&&(a?t=t<0?0:t>=e.length?e.length-1:t:E.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?P7(e,cw(i)):"unknown"}`));const o=e[t]+r;return a?o>e[t+1]?e[t+1]:typeof i=="string"&&o>i.length?i.length:o:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Yl(e){return e===10||e===13||e===8232||e===8233}function Xk(e){return e>=48&&e<=57}function ice(e){return Xk(e)||e>=65&&e<=70||e>=97&&e<=102}function _De(e){return e<=1114111}function UI(e){return e>=48&&e<=55}function sce(e,t){const r=e.charCodeAt(t);switch(r){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 t===0;default:return r>127}}function _a(e,t,r,i,a){if(Rd(t))return t;let o=!1;for(;;){const l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;o=!!a;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Gm(l)){t++;continue}break}return t}}function Qk(e,t){if(E.assert(t>=0),t===0||Yl(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+dw=0&&r127&&Gm(C)){y&&Yl(C)&&(m=!0),r++;continue}break e}}return y&&(k=a(u,f,g,m,o,k)),k}function uw(e,t,r,i){return WI(!1,e,t,!1,r,i)}function fw(e,t,r,i){return WI(!1,e,t,!0,r,i)}function ace(e,t,r,i,a){return WI(!0,e,t,!1,r,i,a)}function oce(e,t,r,i,a){return WI(!0,e,t,!0,r,i,a)}function cce(e,t,r,i,a,o=[]){return o.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),o}function $m(e,t){return ace(e,t,cce,void 0,void 0)}function uy(e,t){return oce(e,t,cce,void 0,void 0)}function qI(e){const t=HI.exec(e);if(t)return t[0]}function Xm(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&VI(e,t)}function fy(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&cDe(e,t)}function pf(e,t,r){let i=Wg(e,0);if(!Xm(i,t))return!1;for(let a=Yh(i);am,getStartPos:()=>m,getTokenEnd:()=>f,getTextPos:()=>f,getToken:()=>x,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,f),getTokenValue:()=>k,hasUnicodeEscape:()=>(C&1024)!==0,hasExtendedUnicodeEscape:()=>(C&8)!==0,hasPrecedingLineBreak:()=>(C&1)!==0,hasPrecedingJSDocComment:()=>(C&2)!==0,isIdentifier:()=>x===80||x>118,isReservedWord:()=>x>=83&&x<=118,isUnterminated:()=>(C&4)!==0,getCommentDirectives:()=>N,getNumericLiteralFlags:()=>C&25584,getTokenFlags:()=>C,reScanGreaterToken:xe,reScanAsteriskEqualsToken:rt,reScanSlashToken:ct,reScanTemplateToken:Ge,reScanTemplateHeadOrNoSubstitutionTemplate:tt,scanJsxIdentifier:bt,scanJsxAttributeValue:_r,reScanJsxAttributeValue:xn,reScanJsxToken:mt,reScanLessThanToken:Je,reScanHashToken:ot,reScanQuestionToken:Jt,reScanInvalidIdentifier:ve,scanJsxToken:Pt,scanJsDocToken:er,scanJSDocCommentTextToken:Bt,scan:Xe,getText:pt,clearCommentDirectives:ur,setText:hn,setScriptTarget:cn,setLanguageVariant:Pn,setOnError:Ct,resetTokenState:Sr,setTextPos:Sr,setInJSDocType:wi,tryScan:Nr,lookAhead:ki,scanRange:pi};return E.isDebugging&&Object.defineProperty(M,"__debugShowCurrentPositionInText",{get:()=>{const Yt=M.getText();return Yt.slice(0,M.getTokenFullStart())+"\u2551"+Yt.slice(M.getTokenFullStart())}}),M;function V(Yt,Gt=f,Sn,Gr){if(a){const Er=f;f=Gt,a(Yt,Sn||0,Gr),f=Er}}function U(){let Yt=f,Gt=!1,Sn=!1,Gr="";for(;;){const Er=u.charCodeAt(f);if(Er===95){C|=512,Gt?(Gt=!1,Sn=!0,Gr+=u.substring(Yt,f)):(C|=16384,V(Sn?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1)),f++,Yt=f;continue}if(Xk(Er)){Gt=!0,Sn=!1,f++;continue}break}return u.charCodeAt(f-1)===95&&(C|=16384,V(p.Numeric_separators_are_not_allowed_here,f-1,1)),Gr+u.substring(Yt,f)}function Y(){let Yt=f,Gt;if(u.charCodeAt(f)===48)if(f++,u.charCodeAt(f)===95)C|=16896,V(p.Numeric_separators_are_not_allowed_here,f,1),f--,Gt=U();else if(!ee())C|=8192,Gt=""+ +k;else if(!k)Gt="0";else{k=""+parseInt(k,8),C|=32;const ut=x===41,kt=(ut?"-":"")+"0o"+(+k).toString(8);return ut&&Yt--,V(p.Octal_literals_are_not_allowed_Use_the_syntax_0,Yt,f-Yt,kt),9}else Gt=U();let Sn,Gr;u.charCodeAt(f)===46&&(f++,Sn=U());let Er=f;if(u.charCodeAt(f)===69||u.charCodeAt(f)===101){f++,C|=16,(u.charCodeAt(f)===43||u.charCodeAt(f)===45)&&f++;const ut=f,kt=U();kt?(Gr=u.substring(Er,ut)+kt,Er=f):V(p.Digit_expected)}let ze;if(C&512?(ze=Gt,Sn&&(ze+="."+Sn),Gr&&(ze+=Gr)):ze=u.substring(Yt,Er),C&8192)return V(p.Decimals_with_leading_zeros_are_not_allowed,Yt,Er-Yt),k=""+ +ze,9;if(Sn!==void 0||C&16)return j(Yt,Sn===void 0&&!!(C&16)),k=""+ +ze,9;{k=ze;const ut=De();return j(Yt),ut}}function j(Yt,Gt){if(!Xm(Wg(u,f),e))return;const Sn=f,{length:Gr}=fe();Gr===1&&u[Sn]==="n"?V(Gt?p.A_bigint_literal_cannot_use_exponential_notation:p.A_bigint_literal_must_be_an_integer,Yt,Sn-Yt+1):(V(p.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Sn,Gr),f=Sn)}function ee(){const Yt=f;let Gt=!0;for(;Xk(u.charCodeAt(f));)UI(u.charCodeAt(f))||(Gt=!1),f++;return k=u.substring(Yt,f),Gt}function R(Yt,Gt){const Sn=oe(Yt,!1,Gt);return Sn?parseInt(Sn,16):-1}function Z(Yt,Gt){return oe(Yt,!0,Gt)}function oe(Yt,Gt,Sn){let Gr=[],Er=!1,ze=!1;for(;Gr.length=65&&ut<=70)ut+=32;else if(!(ut>=48&&ut<=57||ut>=97&&ut<=102))break;Gr.push(ut),f++,ze=!1}return Gr.length=g){Sn+=u.substring(Gr,f),C|=4,V(p.Unterminated_string_literal);break}const Er=u.charCodeAt(f);if(Er===Gt){Sn+=u.substring(Gr,f),f++;break}if(Er===92&&!Yt){Sn+=u.substring(Gr,f),Sn+=H(!0),Gr=f;continue}if(Yl(Er)&&!Yt){Sn+=u.substring(Gr,f),C|=4,V(p.Unterminated_string_literal);break}f++}return Sn}function X(Yt){const Gt=u.charCodeAt(f)===96;f++;let Sn=f,Gr="",Er;for(;;){if(f>=g){Gr+=u.substring(Sn,f),C|=4,V(p.Unterminated_template_literal),Er=Gt?15:18;break}const ze=u.charCodeAt(f);if(ze===96){Gr+=u.substring(Sn,f),f++,Er=Gt?15:18;break}if(ze===36&&f+1=g)return V(p.Unexpected_end_of_text),"";const Sn=u.charCodeAt(f);switch(f++,Sn){case 48:if(f>=g||!Xk(u.charCodeAt(f)))return"\0";case 49:case 50:case 51:f=g?(C|=2048,Yt&&V(p.Unexpected_end_of_text),u.substring(Gt,f)):u.charCodeAt(f)!==125?(C|=2048,Yt&&V(p.Unterminated_Unicode_escape_sequence),u.substring(Gt,f)):(f++,C|=8,Yk(Er)):(C|=2048,Yt&&V(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(Gt,f))}for(;f1114111&&(V(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Sn=!0),f>=g?(V(p.Unexpected_end_of_text),Sn=!0):u.charCodeAt(f)===125?f++:(V(p.Unterminated_Unicode_escape_sequence),Sn=!0),Sn?"":Yk(Gt)}function ne(){if(f+5=0&&fy(Sn,e)){f+=3,C|=8,Yt+=Q(),Gt=f;continue}if(Sn=ne(),!(Sn>=0&&fy(Sn,e)))break;C|=1024,Yt+=u.substring(Gt,f),Yt+=Yk(Sn),f+=6,Gt=f}else break}return Yt+=u.substring(Gt,f),Yt}function G(){const Yt=k.length;if(Yt>=2&&Yt<=12){const Gt=k.charCodeAt(0);if(Gt>=97&&Gt<=122){const Sn=lce.get(k);if(Sn!==void 0)return x=Sn}}return x=80}function Ne(Yt){let Gt="",Sn=!1,Gr=!1;for(;;){const Er=u.charCodeAt(f);if(Er===95){C|=512,Sn?(Sn=!1,Gr=!0):V(Gr?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1),f++;continue}if(Sn=!0,!Xk(Er)||Er-48>=Yt)break;Gt+=u[f],f++,Gr=!1}return u.charCodeAt(f-1)===95&&V(p.Numeric_separators_are_not_allowed_here,f-1,1),Gt}function De(){return u.charCodeAt(f)===110?(k+="n",C&384&&(k=j3(k)+"n"),f++,10):(k=""+(C&128?parseInt(k.slice(2),2):C&256?parseInt(k.slice(2),8):+k),9)}function Xe(){m=f,C=0;let Yt=!1;for(;;){if(y=f,f>=g)return x=1;const Gt=Wg(u,f);if(f===0){if(Gt===65533)return V(p.File_appears_to_be_binary),f=g,x=8;if(Gt===35&&VU(u,f)){if(f=UU(u,f),t)continue;return x=6}}switch(Gt){case 10:case 13:if(C|=1,t){f++;continue}else return Gt===13&&f+1=0&&Xm(Sn,e))return f+=3,C|=8,k=Q()+fe(),x=G();const Gr=ne();return Gr>=0&&Xm(Gr,e)?(f+=6,C|=1024,k=String.fromCharCode(Gr)+fe(),x=G()):(V(p.Invalid_character),f++,x=0);case 35:if(f!==0&&u[f+1]==="!")return V(p.can_only_be_used_at_the_start_of_a_file),f++,x=0;const Er=Wg(u,f+1);if(Er===92){f++;const kt=ue();if(kt>=0&&Xm(kt,e))return f+=3,C|=8,k="#"+Q()+fe(),x=81;const it=ne();if(it>=0&&Xm(it,e))return f+=6,C|=1024,k="#"+String.fromCharCode(it)+fe(),x=81;f--}return Xm(Er,e)?(f++,be(Er,e)):(k="#",V(p.Invalid_character,f++,Yh(Gt))),x=81;default:const ze=be(Gt,e);if(ze)return x=ze;if(Nd(Gt)){f+=Yh(Gt);continue}else if(Yl(Gt)){C|=1,f+=Yh(Gt);continue}const ut=Yh(Gt);return V(p.Invalid_character,f,ut),f+=ut,x=0}}}function ve(){E.assert(x===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),f=y=m,C=0;const Yt=Wg(u,f),Gt=be(Yt,99);return Gt?x=Gt:(f+=Yh(Yt),x)}function be(Yt,Gt){let Sn=Yt;if(Xm(Sn,Gt)){for(f+=Yh(Sn);f=g)return x=1;let Gt=u.charCodeAt(f);if(Gt===60)return u.charCodeAt(f+1)===47?(f+=2,x=31):(f++,x=30);if(Gt===123)return f++,x=19;let Sn=0;for(;f0)break;Gm(Gt)||(Sn=f)}f++}return k=u.substring(m,f),Sn===-1?13:12}function bt(){if(V_(x)){for(;f=g)return x=1;for(let Gt=u.charCodeAt(f);f=0&&Nd(u.charCodeAt(f-1))&&!(f+1=g)return x=1;const Yt=Wg(u,f);switch(f+=Yh(Yt),Yt){case 9:case 11:case 12:case 32:for(;f=0&&Xm(Gt,e))return f+=3,C|=8,k=Q()+fe(),x=G();const Sn=ne();return Sn>=0&&Xm(Sn,e)?(f+=6,C|=1024,k=String.fromCharCode(Sn)+fe(),x=G()):(f++,x=0)}if(Xm(Yt,e)){let Gt=Yt;for(;f=0),f=Yt,m=Yt,y=Yt,x=0,k=void 0,C=0}function wi(Yt){D+=Yt?1:-1}}function Yh(e){return e>=65536?2:1}function uDe(e){if(E.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Yk(e){return vce(e)}var pw,lce,WU,_ce,uce,fce,pce,dce,mce,gce,hce,yce,dw,HI,Wg,vce,fDe=Rt({"src/compiler/scanner.ts"(){Ls(),pw={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},lce=new Map(Object.entries(pw)),WU=new Map(Object.entries({...pw,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),_ce=[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],uce=[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],fce=[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],pce=[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],dce=[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],mce=[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],gce=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,hce=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,yce=lDe(WU),dw=7,HI=/^#!.*/,Wg=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,r){const i=t.length;if(r<0||r>=i)return;const a=t.charCodeAt(r);if(a>=55296&&a<=56319&&i>r+1){const o=t.charCodeAt(r+1);if(o>=56320&&o<=57343)return(a-55296)*1024+o-56320+65536}return a},vce=String.fromCodePoint?e=>String.fromCodePoint(e):uDe}});function Al(e){return $u(e)||Ad(e)}function Zk(e){return M7(e,I3)}function GI(e){switch(Ia(e)){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"}}function Zl(e){return e.start+e.length}function bce(e){return e.length===0}function qU(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Tce(e,t){return t.start>=e.start&&Zl(t)<=Zl(e)}function pDe(e,t){return xce(e,t)!==void 0}function xce(e,t){const r=kce(e,t);return r&&r.length===0?void 0:r}function dDe(e,t){return XI(e.start,e.length,t.start,t.length)}function $I(e,t,r){return XI(e.start,e.length,t,r)}function XI(e,t,r,i){const a=e+t,o=r+i;return r<=a&&o>=e}function Sce(e,t){return t<=Zl(e)&&t>=e.start}function kce(e,t){const r=Math.max(e.start,t.start),i=Math.min(Zl(e),Zl(t));return r<=i?ll(r,i):void 0}function yl(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function ll(e,t){return yl(e,t-e)}function UC(e){return yl(e.span.start,e.newLength)}function Cce(e){return bce(e.span)&&e.newLength===0}function gw(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function mDe(e){if(e.length===0)return yW;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=Zl(t.span),a=r+t.newLength;for(let o=1;o=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Oi(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function lr(e){return Oi(e.escapedText)}function py(e){const t=qv(e.escapedText);return t?Hr(t,su):void 0}function bc(e){return e.valueDeclaration&&N_(e.valueDeclaration)?lr(e.valueDeclaration.name):Oi(e.escapedName)}function Dce(e){const t=e.parent.parent;if(!!t){if(l_(t))return QI(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return QI(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:const i=r.argumentExpression;if(we(i))return i}break;case 217:return QI(t.expression);case 256:{if(l_(t.statement)||nt(t.statement))return QI(t.statement);break}}}}function QI(e){const t=os(e);return t&&we(t)?t:void 0}function hw(e,t){return!!(A_(e)&&we(e.name)&&lr(e.name)===lr(t)||ic(e)&&dt(e.declarationList.declarations,r=>hw(r,t)))}function Ace(e){return e.name||Dce(e)}function A_(e){return!!e.name}function YI(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{const r=e;switch(uc(r)){case 1:case 4:case 5:case 3:return W9(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return Ace(e);case 347:return Dce(e);case 277:{const{expression:r}=e;return we(r)?r:void 0}case 212:const t=e;if(U9(t))return t.argumentExpression}return e.name}function os(e){if(e!==void 0)return YI(e)||(_o(e)||Po(e)||Fl(e)?$U(e):void 0)}function $U(e){if(e.parent){if(Ec(e.parent)||Oa(e.parent))return e.parent.name;if(rr(e.parent)&&e===e.parent.right){if(we(e.parent.left))return e.parent.left;if(Mo(e.parent.left))return W9(e.parent.left)}else if(Ri(e.parent)&&we(e.parent.name))return e.parent.name}else return}function Zh(e){if(Ff(e))return zr(e.modifiers,Wl)}function Gv(e){if(Lr(e,126975))return zr(e.modifiers,Zs)}function Nce(e,t){if(e.name)if(we(e.name)){const r=e.name.escapedText;return qC(e.parent,t).filter(i=>ad(i)&&we(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);E.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=qC(e.parent,t).filter(ad);if(rod(i)&&i.typeParameters.some(a=>a.name.escapedText===r))}function Oce(e){return Ice(e,!1)}function Fce(e){return Ice(e,!0)}function Lce(e){return!!Pf(e,ad)}function Mce(e){return Pf(e,s4)}function Rce(e){return KU(e,uG)}function XU(e){return Pf(e,zfe)}function vDe(e){return Pf(e,aG)}function Bce(e){return Pf(e,aG,!0)}function bDe(e){return Pf(e,oG)}function jce(e){return Pf(e,oG,!0)}function TDe(e){return Pf(e,cG)}function Jce(e){return Pf(e,cG,!0)}function xDe(e){return Pf(e,lG)}function zce(e){return Pf(e,lG,!0)}function Vce(e){return Pf(e,kF,!0)}function QU(e){return Pf(e,_G)}function Uce(e){return Pf(e,_G,!0)}function YU(e){return Pf(e,uA)}function ZI(e){return Pf(e,Vfe)}function Wce(e){return Pf(e,CF)}function SDe(e){return Pf(e,od)}function ZU(e){return Pf(e,EF)}function dy(e){const t=Pf(e,f8);if(t&&t.typeExpression&&t.typeExpression.type)return t}function my(e){let t=Pf(e,f8);return!t&&rs(e)&&(t=Or(e6(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function yw(e){const t=Wce(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=dy(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(ef(i)){const a=Or(i.members,X6);return a&&a.type}if(og(i)||r4(i))return i.type}}function qC(e,t){var a;var r;if(!iD(e))return Ve;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const o=rq(e,t);E.assert(o.length<2||o[0]!==o[1]),i=Na(o,l=>Ap(l)?l.tags:l),t||((a=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function gy(e){return qC(e,!1)}function kDe(e){return qC(e,!0)}function Pf(e,t,r){return Or(qC(e,r),t)}function KU(e,t){return gy(e).filter(t)}function CDe(e,t){return gy(e).filter(r=>r.kind===t)}function vw(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:EDe(t)).join("")}function EDe(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?Nu(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Kh(e){if(Fy(e)){if(u8(e.parent)){const t=u3(e.parent);if(t&&Nn(t.tags))return Na(t.tags,r=>od(r)?r.typeParameters:void 0)}return Ve}if(Kf(e))return E.assert(e.parent.kind===327),Na(e.parent.tags,t=>od(t)?t.typeParameters:void 0);if(e.typeParameters||Kfe(e)&&e.typeParameters)return e.typeParameters;if(Kn(e)){const t=nO(e);if(t.length)return t;const r=my(e);if(r&&og(r)&&r.typeParameters)return r.typeParameters}return Ve}function t6(e){return e.constraint?e.constraint:od(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Qm(e){return e.kind===80||e.kind===81}function KI(e){return e.kind===178||e.kind===177}function e9(e){return kr(e)&&!!(e.flags&64)}function eW(e){return No(e)&&!!(e.flags&64)}function Ab(e){return Js(e)&&!!(e.flags&64)}function c_(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function HC(e){return c_(e)&&!dS(e)&&!!e.questionDotToken}function t9(e){return HC(e.parent)&&e.parent.expression===e}function GC(e){return!c_(e.parent)||HC(e.parent)||e!==e.parent.expression}function tW(e){return e.kind===226&&e.operatorToken.kind===61}function qg(e){return ap(e)&&we(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Tp(e){return nl(e,8)}function n9(e){return dS(e)&&!!(e.flags&64)}function $C(e){return e.kind===252||e.kind===251}function nW(e){return e.kind===280||e.kind===279}function qce(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function rW(e){return qce(e)||e.kind===307||e.kind===311}function r9(e){return e.kind===355||e.kind===348}function wDe(e){return bw(e.kind)}function bw(e){return e>=166}function iW(e){return e>=0&&e<=165}function Ax(e){return iW(e.kind)}function $v(e){return oo(e,"pos")&&oo(e,"end")}function XC(e){return 9<=e&&e<=15}function Nb(e){return XC(e.kind)}function sW(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function e1(e){return 15<=e&&e<=18}function Hce(e){return e1(e.kind)}function i9(e){const t=e.kind;return t===17||t===18}function Nx(e){return vu(e)||p_(e)}function s9(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Gce(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function Xv(e){return s9(e)||Gce(e)}function $ce(e){return fa(e)||we(e)}function aW(e){return e.kind===11||e1(e.kind)}function Jo(e){var t;return we(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Pb(e){var t;return Ei(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Tw(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function N_(e){return(Fs(e)||i6(e))&&Ei(e.name)}function n6(e){return kr(e)&&Ei(e.name)}function q0(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function QC(e){return!!($x(e)&16476)}function oW(e){return QC(e)||e===126||e===164||e===129}function Zs(e){return q0(e.kind)}function Xu(e){const t=e.kind;return t===166||t===80}function Jc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function Ib(e){const t=e.kind;return t===80||t===206||t===207}function Cs(e){return!!e&&Px(e.kind)}function r6(e){return!!e&&(Px(e.kind)||ec(e))}function Eo(e){return e&&Qce(e.kind)}function Xce(e){return e.kind===112||e.kind===97}function Qce(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Px(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return Qce(e)}}function cW(e){return Bi(e)||Jd(e)||vs(e)&&Cs(e.parent)}function Nl(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function ni(e){return e&&(e.kind===263||e.kind===231)}function t1(e){return e&&(e.kind===177||e.kind===178)}function nu(e){return Fs(e)&&ym(e)}function i6(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Yce(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function wo(e){return Zs(e)||Wl(e)}function Ob(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function a9(e){return Ob(e)||Nl(e)}function H0(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function Ai(e){return Jq(e.kind)}function Zce(e){switch(e.kind){case 184:case 185:return!0}return!1}function Ps(e){if(e){const t=e.kind;return t===207||t===206}return!1}function YC(e){const t=e.kind;return t===209||t===210}function o9(e){const t=e.kind;return t===208||t===232}function xw(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Kce(e){return Ri(e)||rs(e)||kw(e)||Cw(e)}function Sw(e){return lW(e)||_W(e)}function lW(e){switch(e.kind){case 206:case 210:return!0}return!1}function kw(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function _W(e){switch(e.kind){case 207:case 209:return!0}return!1}function Cw(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Kl(e,!0)}function ele(e){const t=e.kind;return t===211||t===166||t===205}function tle(e){const t=e.kind;return t===211||t===166}function Qv(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function Ym(e){return e.kind===213||e.kind===214}function s6(e){const t=e.kind;return t===228||t===15}function du(e){return nle(Tp(e).kind)}function nle(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function uW(e){return rle(Tp(e).kind)}function rle(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return nle(e)}}function ile(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function sle(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Nb(e)}}function nt(e){return DDe(Tp(e).kind)}function DDe(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return rle(e)}}function Fb(e){const t=e.kind;return t===216||t===234}function ADe(e){return nG(e)||vF(e)}function n1(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&n1(e.statement,t)}return!1}function ale(e){return fc(e)||Yc(e)}function ole(e){return dt(e,ale)}function c9(e){return!Ow(e)&&!fc(e)&&!Lr(e,1)&&!__(e)}function Ew(e){return Ow(e)||fc(e)||Lr(e,1)}function a6(e){return e.kind===249||e.kind===250}function l9(e){return vs(e)||nt(e)}function fW(e){return vs(e)}function If(e){return ml(e)||nt(e)}function cle(e){const t=e.kind;return t===268||t===267||t===80}function NDe(e){const t=e.kind;return t===268||t===267}function PDe(e){const t=e.kind;return t===80||t===267}function pW(e){const t=e.kind;return t===275||t===274}function ww(e){return e.kind===267||e.kind===266}function Pd(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function fm(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function IDe(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function dW(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function mW(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function l_(e){return e.kind===168?e.parent&&e.parent.kind!==352||Kn(e):IDe(e.kind)}function lle(e){return dW(e.kind)}function Dw(e){return mW(e.kind)}function Fi(e){const t=e.kind;return mW(t)||dW(t)||ODe(e)}function ODe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!n2(e)}function _le(e){const t=e.kind;return mW(t)||dW(t)||t===241}function ule(e){const t=e.kind;return t===283||t===166||t===80}function ZC(e){const t=e.kind;return t===110||t===80||t===211||t===295}function Aw(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function _9(e){const t=e.kind;return t===291||t===293}function fle(e){const t=e.kind;return t===11||t===294}function U_(e){const t=e.kind;return t===286||t===285}function u9(e){const t=e.kind;return t===296||t===297}function o6(e){return e.kind>=316&&e.kind<=357}function f9(e){return e.kind===327||e.kind===326||e.kind===328||Ix(e)||c6(e)||i4(e)||Fy(e)}function c6(e){return e.kind>=334&&e.kind<=357}function G0(e){return e.kind===178}function r1(e){return e.kind===177}function Qu(e){if(!iD(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function p9(e){return!!e.type}function i1(e){return!!e.initializer}function Lb(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function gW(e){return e.kind===291||e.kind===293||H0(e)}function d9(e){return e.kind===183||e.kind===233}function ple(e){let t=bW;for(const r of e){if(!r.length)continue;let i=0;for(;ir.kind===t)}function Vs(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function pm(e){return(e.flags&33554432)!==0}function LDe(){var e="";const t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Gm(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:co,decreaseIndent:co,clear:()=>e=""}}function TW(e,t){return e.configFilePath!==t.configFilePath||mle(e,t)}function mle(e,t){return l6(e,t,HF)}function gle(e,t){return l6(e,t,YG)}function l6(e,t,r){return e!==t&&r.some(i=>!rH(gO(e,i),gO(t,i)))}function hle(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Bi(e))return;e=e.parent}}function Au(e,t){const r=e.entries();for(const[i,a]of r){const o=t(a,i);if(o)return o}}function Ox(e,t){const r=e.keys();for(const i of r){const a=t(i);if(a)return a}}function m9(e,t){e.forEach((r,i)=>{t.set(i,r)})}function KC(e){const t=G3.getText();try{return e(G3),G3.getText()}finally{G3.clear(),G3.writeKeyword(t)}}function Nw(e){return e.end-e.pos}function Fx(e,t,r){var i,a;return(a=(i=e==null?void 0:e.resolvedModules)==null?void 0:i.get(t,r))==null?void 0:a.resolvedModule}function yle(e,t,r,i){e.resolvedModules||(e.resolvedModules=_T()),e.resolvedModules.set(t,i,r)}function vle(e,t,r,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=_T()),e.resolvedTypeReferenceDirectiveNames.set(t,i,r)}function MDe(e,t,r){var i,a;return(a=(i=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,r))==null?void 0:a.resolvedTypeReferenceDirective}function xW(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function ble(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&RDe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.node10Result===t.node10Result}function SW(e,t,r,i,a){var o,l;const u=(l=(o=e.resolvedModules)==null?void 0:o.get(r,i))==null?void 0:l.node10Result,f=u?us(void 0,p.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,u,u.indexOf(ah+"@types/")>-1?`@types/${S8(a)}`:a):t.typesPackageExists(a)?us(void 0,p.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,S8(a)):t.packageBundlesTypes(a)?us(void 0,p.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,a,r):us(void 0,p.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,S8(a));return f&&(f.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:a===r?void 0:a})),f}function RDe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function g9({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function s1(e){return`${g9(e)}@${e.version}`}function Tle(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function kW(e,t,r,i,a,o){E.assert(e.length===r.length);for(let l=0;l=0),Ug(t)[e]}function jDe(e){const t=Rn(e),r=yo(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function Iw(e,t){E.assert(e>=0);const r=Ug(t),i=e,a=t.text;if(i+1===r.length)return a.length-1;{const o=r[i];let l=r[i+1]-1;for(E.assert(Yl(a.charCodeAt(l)));o<=l&&Yl(a.charCodeAt(l));)l--;return l}}function y9(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function _c(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Qf(e){return!_c(e)}function Sle(e,t){return Go(e)?t===e.expression:ec(e)?t===e.modifiers:mf(e)?t===e.initializer:Fs(e)?t===e.questionToken&&nu(e):Ec(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||e3(e.modifiers,t,wo):nf(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||e3(e.modifiers,t,wo):kc(e)?t===e.exclamationToken:Cc(e)?t===e.typeParameters||t===e.type||e3(e.typeParameters,t,Go):gf(e)?t===e.typeParameters||e3(e.typeParameters,t,Go):Fu(e)?t===e.typeParameters||t===e.type||e3(e.typeParameters,t,Go):lA(e)?t===e.modifiers||e3(e.modifiers,t,wo):!1}function e3(e,t,r){return!e||Ds(t)||!r(t)?!1:ys(e,t)}function kle(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${yo(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:a,markUsed:o};function a(){return ra(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function o(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function Rb(e,t,r){return _c(e)?e.pos:o6(e)||e.kind===12?_a((t||Rn(e)).text,e.pos,!1,!0):r&&Qu(e)?Rb(e.jsDoc[0],t):e.kind===358&&e._children.length>0?Rb(e._children[0],t,r):_a((t||Rn(e)).text,e.pos,!1,!1,Ww(e))}function wW(e,t){const r=!_c(e)&&Np(e)?yx(e.modifiers,Wl):void 0;return r?_a((t||Rn(e)).text,r.end):Rb(e,t)}function Yv(e,t,r=!1){return t3(e.text,t,r)}function zDe(e){return!!In(e,sT)}function b9(e){return!!(Yc(e)&&e.exportClause&&lg(e.exportClause)&&e.exportClause.name.escapedText==="default")}function t3(e,t,r=!1){if(_c(t))return"";let i=e.substring(r?t.pos:_a(e,t.pos),t.end);return zDe(t)&&(i=i.split(/\r\n|\n|\r/).map(a=>OC(a.replace(/^\s*\*/,""))).join(` +`)),i}function el(e,t=!1){return Yv(Rn(e),e,t)}function VDe(e){return e.pos}function u6(e,t){return Gh(e,t,VDe,Co)}function ma(e){const t=e.emitNode;return t&&t.flags||0}function xp(e){const t=e.emitNode;return t&&t.internalFlags||0}function DW(){return new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:Ve})),AsyncIterator:new Map(Object.entries({es2015:Ve})),Atomics:new Map(Object.entries({es2017:Ve})),SharedArrayBuffer:new Map(Object.entries({es2017:Ve})),AsyncIterable:new Map(Object.entries({es2018:Ve})),AsyncIterableIterator:new Map(Object.entries({es2018:Ve})),AsyncGenerator:new Map(Object.entries({es2018:Ve})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Ve})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Ve,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:Ve})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function Dle(e,t,r){var i;if(t&&UDe(e,r))return Yv(t,e);switch(e.kind){case 11:{const a=r&2?yq:r&1||ma(e)&16777216?Wx:mD;return e.singleQuote?"'"+a(e.text,39)+"'":'"'+a(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const a=r&1||ma(e)&16777216?Wx:mD,o=(i=e.rawText)!=null?i:_Ae(a(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return E.fail(`Literal kind '${e.kind}' not accounted for.`)}function UDe(e,t){if(Do(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(Ou(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!uF(e)}function Ale(e){return Gs(e)?'"'+mD(e)+'"':""+e}function Nle(e){return Jl(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function AW(e){return(W0(e)&7)!==0||NW(e)}function NW(e){const t=hm(e);return t.kind===260&&t.parent.kind===299}function __(e){return Ac(e)&&(e.name.kind===11||Id(e))}function T9(e){return Ac(e)&&e.name.kind===11}function PW(e){return Ac(e)&&fa(e.name)}function Ple(e){return Ac(e)||we(e)}function n3(e){return WDe(e.valueDeclaration)}function WDe(e){return!!e&&e.kind===267&&!e.body}function Ile(e){return e.kind===312||e.kind===267||r6(e)}function Id(e){return!!(e.flags&2048)}function Zv(e){return __(e)&&IW(e)}function IW(e){switch(e.parent.kind){case 312:return zc(e.parent);case 268:return __(e.parent.parent)&&Bi(e.parent.parent.parent)&&!zc(e.parent.parent.parent)}return!1}function OW(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!Zv(r)&&!(Ac(r)&&Id(r)))}function qDe(e){return e===1||e===100||e===199}function Lx(e,t){return zc(e)||qDe(Ul(t))&&!!e.commonJsModuleIndicator}function FW(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:rp(t,"alwaysStrict")||$fe(e.statements)?!0:zc(e)||nd(t)?Ul(t)>=5?!0:!t.noImplicitUseStrict:!1}function LW(e){return!!(e.flags&33554432)||Lr(e,2)}function MW(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!r6(t)}return!1}function RW(e){switch(E.type(e),e.kind){case 345:case 353:case 330:return!0;default:return BW(e)}}function BW(e){switch(E.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Bb(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Ole(e){return Bb(e)||r2(e)}function x9(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Fle(e){return Ow(e)||Ac(e)||cg(e)||Zu(e)}function Ow(e){return Bb(e)||Yc(e)}function jW(e){return In(e.parent,t=>!!(S$(t)&1))}function mm(e){return In(e.parent,t=>MW(t,t.parent))}function Lle(e,t){let r=mm(e);for(;r;)t(r),r=mm(r)}function no(e){return!e||Nw(e)===0?"(Missing)":el(e)}function Mle(e){return e.declaration?no(e.declaration.parameters[0].name):void 0}function Fw(e){return e.kind===167&&!Of(e.expression)}function r3(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Ho(e.text);case 167:return Of(e.expression)?Ho(e.expression.text):void 0;case 295:return Kx(e);default:return E.assertNever(e)}}function f6(e){return E.checkDefined(r3(e))}function Nu(e){switch(e.kind){case 110:return"this";case 81:case 80:return Nw(e)===0?lr(e):el(e);case 166:return Nu(e.left)+"."+Nu(e.right);case 211:return we(e.name)||Ei(e.name)?Nu(e.expression)+"."+Nu(e.name):E.assertNever(e.name);case 318:return Nu(e.left)+Nu(e.right);case 295:return Nu(e.namespace)+":"+Nu(e.name);default:return E.assertNever(e)}}function br(e,t,...r){const i=Rn(e);return Yf(i,e,t,...r)}function p6(e,t,r,...i){const a=_a(e.text,t.pos);return vl(e,a,t.end-a,r,...i)}function Yf(e,t,r,...i){const a=Kv(e,t);return vl(e,a.start,a.length,r,...i)}function Hg(e,t,r,i){const a=Kv(e,t);return S9(e,a.start,a.length,r,i)}function Lw(e,t,r,i){const a=_a(e.text,t.pos);return S9(e,a,t.end-a,r,i)}function JW(e,t,r){E.assertGreaterThanOrEqual(t,0),E.assertGreaterThanOrEqual(r,0),e&&(E.assertLessThanOrEqual(t,e.text.length),E.assertLessThanOrEqual(t+r,e.text.length))}function S9(e,t,r,i,a){return JW(e,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:a}}function zW(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Rle(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function VW(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function gm(e,t){const r=U0(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return ll(i,r.getTokenEnd())}function Ble(e,t){const r=U0(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function HDe(e,t){const r=_a(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=yo(e,t.body.pos),{line:a}=yo(e,t.body.end);if(i0?t.statements[0].pos:t.end;return ll(o,l)}case 253:case 229:{const o=_a(e.text,t.pos);return gm(e,o)}case 238:{const o=_a(e.text,t.expression.end);return gm(e,o)}case 357:{const o=_a(e.text,t.tagName.pos);return gm(e,o)}}if(r===void 0)return gm(e,t.pos);E.assert(!Ap(r));const i=_c(r),a=i||iS(t)?r.pos:_a(e.text,r.pos);return i?(E.assert(a===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(a===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(E.assert(a>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(a<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),ll(a,r.end)}function Yu(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Zf(e){return e.scriptKind===6}function e2(e){return!!(Hv(e)&2048)}function k9(e){return!!(Hv(e)&64&&!Du(e,e.parent))}function Mw(e){return(W0(e)&7)===6}function Rw(e){return(W0(e)&7)===4}function d6(e){return(W0(e)&7)===2}function C9(e){return(W0(e)&7)===1}function m6(e){return e.kind===213&&e.expression.kind===108}function Zu(e){return e.kind===213&&e.expression.kind===102}function g6(e){return s8(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function hy(e){return cg(e)&&Ay(e.argument)&&fa(e.argument.literal)}function Sp(e){return e.kind===244&&e.expression.kind===11}function Bw(e){return!!(ma(e)&2097152)}function E9(e){return Bw(e)&&tl(e)}function GDe(e){return we(e.name)&&!e.initializer}function w9(e){return Bw(e)&&ic(e)&&Xi(e.declarationList.declarations,GDe)}function UW(e,t){return e.kind!==12?$m(t.text,e.pos):void 0}function WW(e,t){const r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?es(uy(t,e.pos),$m(t,e.pos)):$m(t,e.pos);return zr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Km(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return tf(e.parent)&&!xD(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),E.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return tf(t.parent)&&!xD(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return ys(t.typeArguments,e)}}}return!1}function $De(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function t2(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return bs(i,r)}}}function jle(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);const a=i.expression;a&&r(a);return;case 266:case 264:case 267:case 265:return;default:if(Cs(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Km(i)||bs(i,r)}}}function qW(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?om(e.typeArguments):void 0}function Jle(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function h6(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function zle(e){return h6(e)||t1(e)}function i3(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Vle(e){return Kn(e)?ha(e.parent)&&rr(e.parent.parent)&&uc(e.parent.parent)===2||D9(e.parent):!1}function D9(e){return Kn(e)?rr(e)&&uc(e)===1:!1}function Ule(e){return(Ri(e)?d6(e)&&we(e.name)&&i3(e):Fs(e)?T3(e)&&$c(e):mf(e)&&T3(e))||D9(e)}function Wle(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function HW(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function n2(e){return e&&e.kind===241&&Cs(e.parent)}function kp(e){return e&&e.kind===174&&e.parent.kind===210}function A9(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function qle(e){return e&&e.kind===1}function XDe(e){return e&&e.kind===0}function y6(e,t,r,i){return pn(e==null?void 0:e.properties,a=>{if(!Ec(a))return;const o=r3(a.name);return t===o||i&&i===o?r(a):void 0})}function Hle(e,t,r){return y6(e,t,i=>u_(i.initializer)?Or(i.initializer.elements,a=>fa(a)&&a.text===r):void 0)}function s3(e){if(e&&e.statements.length){const t=e.statements[0].expression;return Hr(t,ha)}}function N9(e,t,r){return jw(e,t,i=>u_(i.initializer)?Or(i.initializer.elements,a=>fa(a)&&a.text===r):void 0)}function jw(e,t,r){return y6(s3(e),t,r)}function df(e){return In(e.parent,Cs)}function Gle(e){return In(e.parent,Eo)}function Pl(e){return In(e.parent,ni)}function $le(e){return In(e.parent,t=>ni(t)||Cs(t)?"quit":ec(t))}function P9(e){return In(e.parent,r6)}function I9(e){const t=In(e.parent,r=>ni(r)?"quit":Wl(r));return t&&ni(t.parent)?Pl(t.parent):Pl(t!=null?t:e)}function ru(e,t,r){for(E.assert(e.kind!==312);;){if(e=e.parent,!e)return E.fail();switch(e.kind){case 167:if(r&&ni(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Nl(e.parent.parent)?e=e.parent.parent:Nl(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function Xle(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function O9(e){we(e)&&(Qc(e.parent)||tl(e.parent))&&e.parent.name===e&&(e=e.parent);const t=ru(e,!0,!1);return Bi(t)}function Qle(e){const t=ru(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function Jw(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&Nl(e.parent.parent)?e=e.parent.parent:Nl(e.parent)&&(e=e.parent);break}}}function jb(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function QDe(e){return e.kind===108||iu(e)}function iu(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function zw(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function F9(e){var t;return!!e&&Ri(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Yle(e){return!!e&&(nf(e)||Ec(e))&&rr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function Vw(e){switch(e.kind){case 183:return e.typeName;case 233:return Tc(e.expression)?e.expression:void 0;case 80:case 166:return e}}function L9(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;default:return e.expression}}function M9(e,t,r,i){if(e&&A_(t)&&Ei(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Qc(r):ni(r)&&!l2(t)&&!wq(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Qc(r):ni(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&a2(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function a3(e,t,r,i){return Ff(t)&&M9(e,t,r,i)}function Uw(e,t,r,i){return a3(e,t,r,i)||o3(e,t,r)}function o3(e,t,r){switch(t.kind){case 263:return dt(t.members,i=>Uw(e,i,t,r));case 231:return!e&&dt(t.members,i=>Uw(e,i,t,r));case 174:case 178:case 176:return dt(t.parameters,i=>a3(e,i,t,r));default:return!1}}function o1(e,t){if(a3(e,t))return!0;const r=ng(t);return!!r&&o3(e,r,t)}function GW(e,t,r){let i;if(t1(t)){const{firstAccessor:a,secondAccessor:o,setAccessor:l}=Hb(r.members,t),u=Ff(a)?a:o&&Ff(o)?o:void 0;if(!u||t!==u)return!1;i=l==null?void 0:l.parameters}else kc(t)&&(i=t.parameters);if(a3(e,t,r))return!0;if(i){for(const a of i)if(!o2(a)&&a3(e,a,t,r))return!0}return!1}function $W(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return $W(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function v6(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Gg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!tf(e.parent)&&!s4(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||Ix(e.parent)||_8(e.parent)||Oy(e.parent)||v6(e);case 318:for(;Oy(e.parent);)e=e.parent;return e.parent.kind===186||Ix(e.parent)||_8(e.parent)||Oy(e.parent)||v6(e);case 81:return rr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||Ix(e.parent)||_8(e.parent)||Oy(e.parent)||v6(e))return!0;case 9:case 10:case 11:case 15:case 110:return R9(e);default:return!1}}function R9(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:const i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Km(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Gg(t)}}function B9(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function Zle(e){return lg(e)&&!!e.parent.moduleSpecifier}function yy(e){return e.kind===271&&e.moduleReference.kind===283}function c3(e){return E.assert(yy(e)),e.moduleReference.expression}function XW(e){return r2(e)&&N3(e.initializer).arguments[0]}function b6(e){return e.kind===271&&e.moduleReference.kind!==283}function P_(e){return Kn(e)}function YDe(e){return!Kn(e)}function Kn(e){return!!e&&!!(e.flags&524288)}function j9(e){return!!e&&!!(e.flags&134217728)}function QW(e){return!Zf(e)}function Ww(e){return!!e&&!!(e.flags&16777216)}function J9(e){return ap(e)&&we(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function mu(e,t){if(e.kind!==213)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const a=i[0];return!t||Qa(a)}function YW(e){return e_e(e,!1)}function r2(e){return e_e(e,!0)}function Kle(e){return Oa(e)&&r2(e.parent.parent)}function e_e(e,t){return Ri(e)&&!!e.initializer&&mu(t?N3(e.initializer):e.initializer,!0)}function ZW(e){return ic(e)&&e.declarationList.declarations.length>0&&Xi(e.declarationList.declarations,t=>YW(t))}function qw(e){return e===39||e===34}function z9(e,t){return Yv(t,e).charCodeAt(0)===34}function l3(e){return rr(e)||Mo(e)||we(e)||Js(e)}function Hw(e){return Kn(e)&&e.initializer&&rr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Tc(e.name)&&T6(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Gw(e){const t=Hw(e);return t&&vy(t,Sy(e.name))}function ZDe(e,t){return pn(e.properties,r=>Ec(r)&&we(r.name)&&r.name.escapedText==="value"&&r.initializer&&vy(r.initializer,t))}function Mx(e){if(e&&e.parent&&rr(e.parent)&&e.parent.operatorToken.kind===64){const t=Sy(e.parent.left);return vy(e.parent.right,t)||KDe(e.parent.left,e.parent.right,t)}if(e&&Js(e)&&Rx(e)){const t=ZDe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function vy(e,t){if(Js(e)){const r=lo(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||ha(e)&&(e.properties.length===0||t))return e}function KDe(e,t,r){const i=rr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&vy(t.right,r);if(i&&T6(e,t.left))return i}function t_e(e){const t=Ri(e.parent)?e.parent.name:rr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&vy(e.right,Sy(t))&&Tc(t)&&T6(t,e.left)}function KW(e){if(rr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&rr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&we(t.left))return t.left}else if(Ri(e.parent))return e.parent.name}function T6(e,t){return Fd(e)&&Fd(t)?Cp(e)===Cp(t):Qm(e)&&V9(t)&&(t.expression.kind===110||we(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?T6(e,Qw(t)):V9(e)&&V9(t)?$g(e)===$g(t)&&T6(e.expression,t.expression):!1}function $w(e){for(;Kl(e,!0);)e=e.right;return e}function Jb(e){return we(e)&&e.escapedText==="exports"}function eq(e){return we(e)&&e.escapedText==="module"}function eg(e){return(kr(e)||Xw(e))&&eq(e.expression)&&$g(e)==="exports"}function uc(e){const t=eAe(e);return t===5||Kn(e)?t:0}function Rx(e){return Nn(e.arguments)===3&&kr(e.expression)&&we(e.expression.expression)&&lr(e.expression.expression)==="Object"&&lr(e.expression.name)==="defineProperty"&&Of(e.arguments[1])&&Bx(e.arguments[0],!0)}function V9(e){return kr(e)||Xw(e)}function Xw(e){return No(e)&&Of(e.argumentExpression)}function zb(e,t){return kr(e)&&(!t&&e.expression.kind===110||we(e.name)&&Bx(e.expression,!0))||U9(e,t)}function U9(e,t){return Xw(e)&&(!t&&e.expression.kind===110||Tc(e.expression)||zb(e.expression,!0))}function Bx(e,t){return Tc(e)||zb(e,t)}function Qw(e){return kr(e)?e.name:e.argumentExpression}function eAe(e){if(Js(e)){if(!Rx(e))return 0;const t=e.arguments[0];return Jb(t)||eg(t)?8:zb(t)&&$g(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Mo(e.left)||tAe($w(e))?0:Bx(e.left.expression,!0)&&$g(e.left)==="prototype"&&ha(tq(e))?6:Yw(e.left)}function tAe(e){return eT(e)&&Ou(e.expression)&&e.expression.text==="0"}function W9(e){if(kr(e))return e.name;const t=lo(e.argumentExpression);return Ou(t)||Qa(t)?t:e}function $g(e){const t=W9(e);if(t){if(we(t))return t.escapedText;if(Qa(t)||Ou(t))return Ho(t.text)}}function Yw(e){if(e.expression.kind===110)return 4;if(eg(e))return 2;if(Bx(e.expression,!0)){if(Sy(e.expression))return 3;let t=e;for(;!we(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&$g(t)==="exports")&&zb(e))return 1;if(Bx(e,!0)||No(e)&&Y9(e))return 5}return 0}function tq(e){for(;rr(e.right);)e=e.right;return e.right}function Zw(e){return rr(e)&&uc(e)===3}function n_e(e){return Kn(e)&&e.parent&&e.parent.kind===244&&(!No(e)||Xw(e))&&!!dy(e.parent)}function Kw(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Kn(t)&&!(r.flags&33554432))&&l3(r)&&!l3(t)||r.kind!==t.kind&&Ple(r))&&(e.valueDeclaration=t)}function r_e(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||Ri(t)&&t.initializer&&Cs(t.initializer)}function _3(e){var t,r;switch(e.kind){case 260:case 208:return(t=In(e.initializer,i=>mu(i,!0)))==null?void 0:t.arguments[0];case 272:return Hr(e.moduleSpecifier,Qa);case 271:return Hr((r=Hr(e.moduleReference,km))==null?void 0:r.expression,Qa);case 273:case 280:return Hr(e.parent.moduleSpecifier,Qa);case 274:case 281:return Hr(e.parent.parent.moduleSpecifier,Qa);case 276:return Hr(e.parent.parent.parent.moduleSpecifier,Qa);default:E.assertNever(e)}}function eD(e){return tD(e)||E.failBadSyntaxKind(e.parent)}function tD(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Zu(e.parent)||mu(e.parent,!1)?e.parent:void 0;case 201:return E.assert(fa(e)),Hr(e.parent.parent,cg);default:return}}function x6(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return hy(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return E.assertNever(e)}}function S6(e){switch(e.kind){case 272:return e.importClause&&Hr(e.importClause.namedBindings,d1);case 271:return e;case 278:return e.exportClause&&Hr(e.exportClause,lg);default:return E.assertNever(e)}}function jx(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function q9(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=d1(e.namedBindings)?t(e.namedBindings):pn(e.namedBindings.elements,t);if(r)return r}}function Jx(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function k6(e){const t=r4(e)?wl(e.parameters):void 0,r=Hr(t&&t.name,we);return!!r&&r.escapedText==="new"}function Kf(e){return e.kind===353||e.kind===345||e.kind===347}function nD(e){return Kf(e)||Dp(e)}function nAe(e){return ql(e)&&rr(e.expression)&&e.expression.operatorToken.kind===64?$w(e.expression):void 0}function i_e(e){return ql(e)&&rr(e.expression)&&uc(e.expression)!==0&&rr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function nq(e){switch(e.kind){case 243:const t=C6(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function C6(e){return ic(e)?wl(e.declarationList.declarations):void 0}function s_e(e){return Ac(e)&&e.body&&e.body.kind===267?e.body:void 0}function rD(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function iD(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function rq(e,t){let r;h6(e)&&i1(e)&&Qu(e.initializer)&&(r=Fr(r,a_e(e,ka(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Qu(i)&&(r=Fr(r,a_e(e,ka(i.jsDoc)))),i.kind===169){r=Fr(r,(t?Pce:e6)(i));break}if(i.kind===168){r=Fr(r,(t?Fce:Oce)(i));break}i=iq(i)}return r||Ve}function a_e(e,t){if(Ap(t)){const r=zr(t.tags,i=>o_e(e,i));return t.tags===r?[t]:r}return o_e(e,t)?[t]:void 0}function o_e(e,t){return!(f8(t)||EF(t))||!t.parent||!Ap(t.parent)||!yu(t.parent.parent)||t.parent.parent===e}function iq(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||s_e(t)||rr(e)&&e.operatorToken.kind===64)return t;if(t.parent&&(C6(t.parent)===e||rr(t)&&t.operatorToken.kind===64))return t.parent;if(t.parent&&t.parent.parent&&(C6(t.parent.parent)||nq(t.parent.parent)===e||i_e(t.parent.parent)))return t.parent.parent}function sD(e){if(e.symbol)return e.symbol;if(!we(e.name))return;const t=e.name.escapedText,r=by(e);if(!r)return;const i=Or(r.parameters,a=>a.name.kind===80&&a.name.escapedText===t);return i&&i.symbol}function H9(e){if(Ap(e.parent)&&e.parent.tags){const t=Or(e.parent.tags,Kf);if(t)return t}return by(e)}function by(e){const t=zx(e);if(t)return mf(t)&&t.type&&Cs(t.type)?t.type:Cs(t)?t:void 0}function zx(e){const t=Vx(e);if(t)return i_e(t)||nAe(t)||nq(t)||C6(t)||s_e(t)||t}function Vx(e){const t=u3(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===jo(r.jsDoc))return r}function u3(e){return In(e.parent,Ap)}function c_e(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Or(r,i=>i.name.escapedText===t)}function rAe(e){return!!e.typeArguments}function Vb(e){let t=e.parent;for(;;){switch(t.kind){case 226:const r=t.operatorToken.kind;return Y0(r)&&t.left===e?r===64||x3(r)?1:2:0;case 224:case 225:const i=t.operator;return i===46||i===47?2:0;case 249:case 250:return t.initializer===e?1:0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return 0;e=t.parent;break;case 303:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function tg(e){return Vb(e)!==0}function l_e(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function __e(e){return _o(e)||Po(e)||i6(e)||tl(e)||Cc(e)}function u_e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function aD(e){return u_e(e,196)}function $0(e){return u_e(e,217)}function f_e(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function sq(e){for(;_S(e);)e=e.type;return e}function lo(e,t){return nl(e,t?17:1)}function aq(e){return e.kind!==211&&e.kind!==212?!1:(e=$0(e.parent),e&&e.kind===220)}function i2(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Xg(e){return!Bi(e)&&!Ps(e)&&l_(e.parent)&&e.parent.name===e}function oD(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Ga(t))return t.parent;case 80:if(l_(t))return t.name===e?t:void 0;if(hu(t)){const r=t.parent;return ad(r)&&r.name===t?r:void 0}else{const r=t.parent;return rr(r)&&uc(r)!==0&&(r.left.symbol||r.symbol)&&os(r)===e?r:void 0}case 81:return l_(t)&&t.name===e?t:void 0;default:return}}function cD(e){return Of(e)&&e.parent.kind===167&&l_(e.parent.parent)}function p_e(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function iAe(e){return e.kind===271||e.kind===270||e.kind===273&&!!e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&E6(e)?!0:Kn(e)&&(rr(e)&&uc(e)===2&&E6(e)||kr(e)&&rr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&lD(e.parent.right))}function oq(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return oq(e)}}function lD(e){return Tc(e)||Fl(e)}function E6(e){const t=cq(e);return lD(t)}function cq(e){return fc(e)?e.expression:e.right}function d_e(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function Od(e){const t=s2(e);if(t&&Kn(e)){const r=Mce(e);if(r)return r.class}return t}function s2(e){const t=_D(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function w6(e){if(Kn(e))return Rce(e).map(t=>t.class);{const t=_D(e.heritageClauses,119);return t==null?void 0:t.types}}function f3(e){return f_(e)?p3(e)||Ve:ni(e)&&es(Cb(Od(e)),w6(e))||Ve}function p3(e){const t=_D(e.heritageClauses,96);return t?t.types:void 0}function _D(e,t){if(e){for(const r of e)if(r.token===t)return r}}function Ty(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function su(e){return 83<=e&&e<=165}function lq(e){return 19<=e&&e<=79}function G9(e){return su(e)||lq(e)}function $9(e){return 128<=e&&e<=165}function _q(e){return su(e)&&!$9(e)}function sAe(e){return 119<=e&&e<=127}function Ux(e){const t=qv(e);return t!==void 0&&_q(t)}function aAe(e){const t=qv(e);return t!==void 0&&su(t)}function X9(e){const t=py(e);return!!t&&!$9(t)}function D6(e){return 2<=e&&e<=7}function Il(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Lr(e,512)&&(t|=2);break}return e.body||(t|=4),t}function A6(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Lr(e,512)}return!1}function Of(e){return Qa(e)||Ou(e)}function Q9(e){return Ny(e)&&(e.operator===40||e.operator===41)&&Ou(e.operand)}function X0(e){const t=os(e);return!!t&&Y9(t)}function Y9(e){if(!(e.kind===167||e.kind===212))return!1;const t=No(e)?lo(e.argumentExpression):e.expression;return!Of(t)&&!Q9(t)}function xy(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 9:return Ho(e.text);case 167:const t=e.expression;return Of(t)?Ho(t.text):Q9(t)?t.operator===41?ia(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return Kx(e);default:return E.assertNever(e)}}function Fd(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Cp(e){return Qm(e)?lr(e):sd(e)?H3(e):e.text}function d3(e){return Qm(e)?e.escapedText:sd(e)?Kx(e):Ho(e.text)}function oAe(e){return`__@${ya(e)}@${e.escapedName}`}function uD(e,t){return`__#${ya(e)}@${t}`}function fD(e){return ns(e.escapedName,"__@")}function m_e(e){return ns(e.escapedName,"__#")}function cAe(e){return e.kind===80&&e.escapedText==="Symbol"}function g_e(e){return we(e)?lr(e)==="__proto__":fa(e)&&e.text==="__proto__"}function m3(e,t){switch(e=nl(e),e.kind){case 231:if(Z$(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function uq(e){switch(e.kind){case 303:return!g_e(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return we(e.name)&&!!e.initializer;case 169:return we(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return we(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return we(e.left)}break;case 277:return!0}return!1}function Pu(e,t){if(!uq(e))return!1;switch(e.kind){case 303:return m3(e.initializer,t);case 304:return m3(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return m3(e.initializer,t);case 226:return m3(e.right,t);case 277:return m3(e.expression,t)}}function fq(e){return e.escapedText==="push"||e.escapedText==="unshift"}function Ub(e){return hm(e).kind===169}function hm(e){for(;e.kind===208;)e=e.parent.parent;return e}function pq(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Do(e){return Rd(e.pos)||Rd(e.end)}function lAe(e){return ts(e,Bi)||e}function dq(e){const t=gq(e),r=e.kind===214&&e.arguments!==void 0;return mq(e.kind,t,r)}function mq(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function g3(e){const t=gq(e),r=e.kind===214&&e.arguments!==void 0;return pD(e.kind,t,r)}function gq(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function pD(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return dD(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function dD(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function h3(e){return zr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function N6(){let e=[];const t=[],r=new Map;let i=!1;return{add:o,lookup:a,getGlobalDiagnostics:l,getDiagnostics:u};function a(f){let g;if(f.file?g=r.get(f.file.fileName):g=e,!g)return;const m=Gh(g,f,Zo,uO);if(m>=0)return g[m]}function o(f){let g;f.file?(g=r.get(f.file.fileName),g||(g=[],r.set(f.file.fileName,g),Hh(t,f.file.fileName,w_))):(i&&(i=!1,e=e.slice()),g=e),Hh(g,f,uO)}function l(){return i=!0,e}function u(f){if(f)return r.get(f)||[];const g=I7(t,m=>r.get(m));return e.length&&g.unshift(...e),g}}function _Ae(e){return e.replace(jue,"\\${")}function hq(e){return e&&!!(sS(e)?e.templateFlags:e.head.templateFlags||dt(e.templateSpans,t=>!!t.literal.templateFlags))}function h_e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function uAe(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return Uue.get(e)||h_e(e.charCodeAt(0))}function Wx(e,t){const r=t===96?Vue:t===39?zue:Jue;return e.replace(r,uAe)}function mD(e,t){return e=Wx(e,t),bH.test(e)?e.replace(bH,r=>h_e(r.charCodeAt(0))):e}function fAe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function pAe(e){return e.charCodeAt(0)===0?"�":Hue.get(e)||fAe(e.charCodeAt(0))}function yq(e,t){const r=t===39?que:Wue;return e.replace(r,pAe)}function Ep(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&dAe(e.charCodeAt(0))?e.substring(1,t-1):e}function dAe(e){return e===39||e===34||e===96}function P6(e){const t=e.charCodeAt(0);return t>=97&&t<=122||Xl(e,"-")}function Z9(e){const t=U6[1];for(let r=U6.length;r<=e;r++)U6.push(U6[r-1]+t);return U6[e]}function I6(){return U6[1].length}function gD(){return Xl(L0,"-dev")||Xl(L0,"-insiders")}function hD(e){var t,r,i,a,o,l=!1;function u(D){const M=cw(D);M.length>1?(a=a+M.length-1,o=t.length-D.length+ka(M),i=o-t.length===0):i=!1}function f(D){D&&D.length&&(i&&(D=Z9(r)+D,i=!1),t+=D,u(D))}function g(D){D&&(l=!1),f(D)}function m(D){D&&(l=!0),f(D)}function y(){t="",r=0,i=!0,a=0,o=0,l=!1}function x(D){D!==void 0&&(t+=D,u(D),l=!1)}function k(D){D&&D.length&&g(D)}function C(D){(!i||D)&&(t+=e,a++,o=t.length,i=!0,l=!1)}function N(){return i?t.length:t.length+e.length}return y(),{write:g,rawWrite:x,writeLiteral:k,writeLine:C,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>a,getColumn:()=>i?r*I6():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Gm(t.charCodeAt(t.length-1)),clear:y,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(D,M)=>g(D),writeTrailingSemicolon:g,writeComment:m,getTextPosWithWriteLine:N}}function vq(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,a){r(),e.writeSymbol(i,a)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function yD(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Q0(e){return Ql(yD(e))}function K9(e,t,r){return t.moduleName||bq(e,t.fileName,r&&r.fileName)}function y_e(e,t){return e.getCanonicalFileName(ms(t,e.getCurrentDirectory()))}function v_e(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const a=x6(r);if(!(a&&Qa(a)&&!$u(a.text)&&y_e(e,i.path).indexOf(y_e(e,D_(e.getCommonSourceDirectory())))===-1))return K9(e,i)}function bq(e,t,r){const i=f=>e.getCanonicalFileName(f),a=ho(r?Ti(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=ms(t,e.getCurrentDirectory()),l=Dx(a,o,a,i,!1),u=gu(l);return r?Wv(u):u}function b_e(e,t,r){const i=t.getCompilerOptions();let a;return i.outDir?a=gu(tO(e,t,i.outDir)):a=gu(e),a+r}function T_e(e,t){return Tq(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function Tq(e,t,r,i,a){const o=t.declarationDir||t.outDir,l=o?Sq(e,o,r,i,a):e,u=vD(l);return gu(l)+u}function vD(e){return Gc(e,[".mjs",".mts"])?".d.mts":Gc(e,[".cjs",".cts"])?".d.cts":Gc(e,[".json"])?".d.json.ts":".d.ts"}function x_e(e){return Gc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Gc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Gc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ao(e){return e.outFile||e.out}function eO(e,t){var i;var r;if(!!e.paths)return(i=e.baseUrl)!=null?i:E.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function xq(e,t,r){const i=e.getCompilerOptions();if(Ao(i)){const a=Ul(i),o=i.emitDeclarationOnly||a===2||a===4;return zr(e.getSourceFiles(),l=>(o||!zc(l))&&qx(l,e,r))}else{const a=t===void 0?e.getSourceFiles():[t];return zr(a,o=>qx(o,e,r))}}function qx(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&P_(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(Zf(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function tO(e,t,r){return Sq(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function Sq(e,t,r,i,a){let o=ms(e,r);return o=a(o).indexOf(a(i))===0?o.substring(i.length):o,Ii(t,o)}function y3(e,t,r,i,a,o,l){e.writeFile(r,i,a,u=>{t.add(xc(p.Could_not_write_file_0_Colon_1,r,u))},o,l)}function S_e(e,t,r){if(e.length>_m(e)&&!r(e)){const i=Ti(e);S_e(i,t,r),t(e)}}function kq(e,t,r,i,a,o){try{i(e,t,r)}catch{S_e(Ti(ba(e)),a,o),i(e,t,r)}}function v3(e,t){const r=Ug(e);return JC(r,t)}function Wb(e,t){return JC(e,t)}function ng(e){return Or(e.members,t=>Cc(t)&&Qf(t.body))}function b3(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&o2(e.parameters[0]);return e.parameters[t?1:0]}}function k_e(e){const t=b3(e);return t&&t.type}function a2(e){if(e.parameters.length&&!Fy(e)){const t=e.parameters[0];if(o2(t))return t}}function o2(e){return c2(e.name)}function c2(e){return!!e&&e.kind===80&&Cq(e)}function qb(e){return!!In(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function Hx(e){if(!c2(e))return!1;for(;hu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function Cq(e){return e.escapedText==="this"}function Hb(e,t){let r,i,a,o;return X0(t)?(r=t,t.kind===177?a=t:t.kind===178?o=t:E.fail("Accessor has wrong kind")):pn(e,l=>{if(t1(l)&&Os(l)===Os(t)){const u=xy(l.name),f=xy(t.name);u===f&&(r?i||(i=l):r=l,l.kind===177&&!a&&(a=l),l.kind===178&&!o&&(o=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}}function Vl(e){if(!Kn(e)&&tl(e))return;const t=e.type;return t||!Kn(e)?t:r9(e)?e.typeExpression&&e.typeExpression.type:my(e)}function C_e(e){return e.type}function ep(e){return Fy(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Kn(e)?yw(e):void 0)}function nO(e){return Na(gy(e),t=>mAe(t)?t.typeParameters:void 0)}function mAe(e){return od(e)&&!(e.parent.kind===327&&(e.parent.tags.some(Kf)||e.parent.tags.some(u8)))}function E_e(e){const t=b3(e);return t&&Vl(t)}function w_e(e,t,r,i){D_e(e,t,r.pos,i)}function D_e(e,t,r,i){i&&i.length&&r!==i[0].pos&&Wb(e,r)!==Wb(e,i[0].pos)&&t.writeLine()}function A_e(e,t,r,i){r!==i&&Wb(e,r)!==Wb(e,i)&&t.writeLine()}function N_e(e,t,r,i,a,o,l,u){if(i&&i.length>0){a&&r.writeSpace(" ");let f=!1;for(const g of i)f&&(r.writeSpace(" "),f=!1),u(e,t,r,g.pos,g.end,l),g.hasTrailingNewLine?r.writeLine():f=!0;f&&o&&r.writeSpace(" ")}}function P_e(e,t,r,i,a,o,l){let u,f;if(l?a.pos===0&&(u=zr($m(e,a.pos),g)):u=$m(e,a.pos),u){const m=[];let y;for(const x of u){if(y){const k=Wb(t,y.end);if(Wb(t,x.pos)>=k+2)break}m.push(x),y=x}if(m.length){const x=Wb(t,ka(m).end);Wb(t,_a(e,a.pos))>=x+2&&(w_e(t,r,a,u),N_e(e,t,r,m,!1,!0,o,i),f={nodePos:a.pos,detachedCommentEndPos:ka(m).end})}}return f;function g(m){return v9(e,m.pos)}}function O6(e,t,r,i,a,o){if(e.charCodeAt(i+1)===42){const l=_w(t,i),u=t.length;let f;for(let g=i,m=l.line;g0){let C=k%I6();const N=Z9((k-C)/I6());for(r.rawWrite(N);C;)r.rawWrite(" "),C--}else r.rawWrite("")}gAe(e,a,r,o,g,y),g=y}}else r.writeComment(e.substring(i,a))}function gAe(e,t,r,i,a,o){const l=Math.min(t,o-1),u=Jv(e.substring(a,l));u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function I_e(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Aq(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(r||Kn(e))&&e.parent&&(e.modifierFlagsCache|=M_e(e)|4096),e.modifierFlagsCache&-536875009)}function I_(e){return Dq(e,!0)}function L_e(e){return Dq(e,!0,!0)}function c1(e){return Dq(e,!1)}function M_e(e){let t=0;return!!e.parent&&!rs(e)&&(Kn(e)&&(Bce(e)&&(t|=4),jce(e)&&(t|=8),Jce(e)&&(t|=16),zce(e)&&(t|=64),Vce(e)&&(t|=16384)),Uce(e)&&(t|=8192)),t}function R_e(e){return Aq(e)|M_e(e)}function Aq(e){let t=Np(e)?Ld(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=1),t}function Ld(e){let t=0;if(e)for(const r of e)t|=$x(r.kind);return t}function $x(e){switch(e){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 164:return 16384;case 103:return 32768;case 147:return 65536;case 170:return 131072}return 0}function B_e(e){return e===57||e===56}function j_e(e){return B_e(e)||e===54}function x3(e){return e===76||e===77||e===78}function Nq(e){return rr(e)&&x3(e.operatorToken.kind)}function bD(e){return B_e(e)||e===61}function TD(e){return rr(e)&&bD(e.operatorToken.kind)}function Y0(e){return e>=64&&e<=79}function Pq(e){const t=Iq(e);return t&&!t.isImplements?t.class:void 0}function Iq(e){if(rh(e)){if(tf(e.parent)&&ni(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(s4(e.parent)){const t=zx(e.parent);if(t&&ni(t))return{class:t,isImplements:!1}}}}function Kl(e,t){return rr(e)&&(t?e.operatorToken.kind===64:Y0(e.operatorToken.kind))&&du(e.left)}function hAe(e){return Kl(e.parent)&&e.parent.left===e}function Z0(e){if(Kl(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function xD(e){return Pq(e)!==void 0}function Tc(e){return e.kind===80||SD(e)}function Ku(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function S3(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&S3(e.expression)||e.kind===217&&S3(e.expression)}function SD(e){return kr(e)&&we(e.name)&&Tc(e.expression)}function kD(e){if(kr(e)){const t=kD(e.expression);if(t!==void 0)return t+"."+Nu(e.name)}else if(No(e)){const t=kD(e.expression);if(t!==void 0&&Jc(e.argumentExpression))return t+"."+xy(e.argumentExpression)}else{if(we(e))return Oi(e.escapedText);if(sd(e))return H3(e)}}function Sy(e){return zb(e)&&$g(e)==="prototype"}function k3(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function J_e(e){return kr(e.parent)&&e.parent.name===e||No(e.parent)&&e.parent.argumentExpression===e}function z_e(e){return hu(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e||Oy(e.parent)&&e.parent.right===e}function Oq(e){return e.kind===210&&e.properties.length===0}function V_e(e){return e.kind===209&&e.elements.length===0}function F6(e){if(!(!yAe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function yAe(e){return e&&Nn(e.declarations)>0&&Lr(e.declarations[0],1024)}function iO(e){return Or(Yue,t=>Hc(e,t))}function vAe(e){const t=[],r=e.length;for(let i=0;i>6|192),t.push(a&63|128)):a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(a&63|128)):a<131072?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(a&63|128)):E.assert(!1,"Unexpected code point")}return t}function U_e(e){let t="";const r=vAe(e);let i=0;const a=r.length;let o,l,u,f;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,f=r[i+2]&63,i+1>=a?u=f=64:i+2>=a&&(f=64),t+=p2.charAt(o)+p2.charAt(l)+p2.charAt(u)+p2.charAt(f),i+=3;return t}function bAe(e){let t="",r=0;const i=e.length;for(;r>4&3,m=(l&15)<<4|u>>2&15,y=(u&3)<<6|f&63;m===0&&u!==0?i.push(g):y===0&&f!==0?i.push(g,m):i.push(g,m,y),a+=4}return bAe(i)}function Fq(e,t){const r=Gs(t)?t:t.readFile(e);if(!r)return;const i=FG(e,r);return i.error?void 0:i.config}function C3(e,t){return Fq(e,t)||{}}function ed(e,t){return!t.directoryExists||t.directoryExists(e)}function K0(e){switch(e.newLine){case 0:return Gue;case 1:case void 0:return $ue}}function tp(e,t=e){return E.assert(t>=e||t===-1),{pos:e,end:t}}function sO(e,t){return tp(e.pos,t)}function ky(e,t){return tp(t,e.end)}function eh(e){const t=Np(e)?yx(e.modifiers,Wl):void 0;return t&&!Rd(t.end)?ky(e,t.end):e}function Md(e){if(Fs(e)||kc(e))return ky(e,e.name.pos);const t=Np(e)?jo(e.modifiers):void 0;return t&&!Rd(t.end)?ky(e,t.end):eh(e)}function TAe(e){return e.pos===e.end}function Lq(e,t){return tp(e,e+ia(t).length)}function Gb(e,t){return G_e(e,e,t)}function aO(e,t,r){return np(E3(e,r,!1),E3(t,r,!1),r)}function H_e(e,t,r){return np(e.end,t.end,r)}function G_e(e,t,r){return np(E3(e,r,!1),t.end,r)}function CD(e,t,r){return np(e.end,E3(t,r,!1),r)}function Mq(e,t,r,i){const a=E3(t,r,i);return zC(r,e.end,a)}function xAe(e,t,r){return zC(r,e.end,t.end)}function $_e(e,t){return!np(e.pos,e.end,t)}function np(e,t,r){return zC(r,e,t)===0}function E3(e,t,r){return Rd(e.pos)?-1:_a(t.text,e.pos,!1,r)}function X_e(e,t,r,i){const a=_a(r.text,e,!1,i),o=SAe(a,t,r);return zC(r,o!=null?o:t,a)}function Q_e(e,t,r,i){const a=_a(r.text,e,!1,i);return zC(r,e,Math.min(t,a))}function SAe(e,t=0,r){for(;e-- >t;)if(!Gm(r.text.charCodeAt(e)))return e}function Rq(e){const t=ts(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function w3(e){return zr(e.declarations,ED)}function ED(e){return Ri(e)&&e.initializer!==void 0}function kAe(e){return e.watch&&oo(e,"watch")}function vm(e){e.close()}function rc(e){return e.flags&33554432?e.links.checkFlags:0}function Lf(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&Or(e.declarations,Fu)||e.flags&32768&&Or(e.declarations,gf)||e.valueDeclaration,i=Hv(r);return e.parent&&e.parent.flags&32?i:i&-29}if(rc(e)&6){const r=e.links.checkFlags,i=r&1024?8:r&256?4:16,a=r&2048?32:0;return i|a}return e.flags&4194304?36:0}function au(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function D3(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function oO(e){return L6(e)===1}function A3(e){return L6(e)!==0}function L6(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return L6(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:a}=t;return i===e&&Y0(a.kind)?a.kind===64?1:2:0;case 211:return t.name!==e?0:L6(t);case 303:{const o=L6(t.parent);return e===t.name?CAe(o):o}case 304:return e===t.objectAssignmentInitializer?0:L6(t.parent);case 209:return L6(t);default:return 0}}function CAe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return E.assertNever(e)}}function Bq(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!Bq(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function Mf(e,t){e.forEach(t),e.clear()}function Qg(e,t,r){const{onDeleteValue:i,onExistingValue:a}=r;e.forEach((o,l)=>{const u=t.get(l);u===void 0?(e.delete(l),i(o,l)):a&&a(o,u,l)})}function M6(e,t,r){Qg(e,t,r);const{createNewValue:i}=r;t.forEach((a,o)=>{e.has(o)||e.set(o,i(o,a))})}function Y_e(e){if(e.flags&32){const t=Yg(e);return!!t&&Lr(t,256)}return!1}function Yg(e){var t;return(t=e.declarations)==null?void 0:t.find(ni)}function Rr(e){return e.flags&138117121?e.objectFlags:0}function EAe(e,t){return!!Vg(e,r=>t(r)?!0:void 0)}function cO(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&lA(e.declarations[0])}function Z_e({moduleSpecifier:e}){return fa(e)?e.text:el(e)}function jq(e){let t;return bs(e,r=>{Qf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Qf(r[i])){t=r[i];break}}),t}function td(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function Xx(e){return ni(e)||f_(e)||ef(e)}function Jq(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function Mo(e){return e.kind===211||e.kind===212}function K_e(e){return e.kind===211?e.name:(E.assert(e.kind===212),e.argumentExpression)}function eue(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function lO(e){return e.kind===275||e.kind===279}function N3(e){for(;Mo(e);)e=e.expression;return e}function wAe(e,t){if(Mo(e.parent)&&J_e(e))return r(e.parent);function r(i){if(i.kind===211){const a=t(i.name);if(a!==void 0)return a}else if(i.kind===212)if(we(i.argumentExpression)||Qa(i.argumentExpression)){const a=t(i.argumentExpression);if(a!==void 0)return a}else return;if(Mo(i.expression))return r(i.expression);if(we(i.expression))return t(i.expression)}}function P3(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function DAe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function AAe(e,t){this.flags=t,(E.isDebugging||li)&&(this.checker=e)}function NAe(e,t){this.flags=t,E.isDebugging&&(this.checker=e)}function zq(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function PAe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function IAe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function OAe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function tue(e){TH.push(e),e(Ol)}function nue(e){Object.assign(Ol,e),pn(TH,t=>t(Ol))}function rg(e,t,r=0){return e.replace(/{(\d+)}/g,(i,a)=>""+E.checkDefined(t[+a+r]))}function rue(e){zD=e}function iue(e){!zD&&e&&(zD=e())}function ss(e){return zD&&zD[e.key]||e.message}function R6(e,t,r,i){JW(void 0,t,r);let a=ss(i);return arguments.length>4&&(a=rg(a,arguments,4)),{file:void 0,start:t,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function FAe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function sue(e,t){const r=t.fileName||"",i=t.text.length;E.assertEqual(e.fileName,r),E.assertLessThanOrEqual(e.start,i),E.assertLessThanOrEqual(e.start+e.length,i);const a={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){a.relatedInformation=[];for(const o of e.relatedInformation)FAe(o)&&o.fileName===r?(E.assertLessThanOrEqual(o.start,i),E.assertLessThanOrEqual(o.start+o.length,i),a.relatedInformation.push(sue(o,t))):a.relatedInformation.push(o)}return a}function Qx(e,t){const r=[];for(const i of e)r.push(sue(i,t));return r}function vl(e,t,r,i){JW(e,t,r);let a=ss(i);return arguments.length>4&&(a=rg(a,arguments,4)),{file:e,start:t,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function Vq(e,t){let r=ss(t);return arguments.length>2&&(r=rg(r,arguments,2)),r}function xc(e){let t=ss(e);return arguments.length>1&&(t=rg(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function _O(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function us(e,t){let r=ss(t);return arguments.length>2&&(r=rg(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function aue(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function oue(e){return e.file?e.file.path:void 0}function I3(e,t){return uO(e,t)||LAe(e,t)||0}function uO(e,t){return w_(oue(e),oue(t))||Co(e.start,t.start)||Co(e.length,t.length)||Co(e.code,t.code)||cue(e.messageText,t.messageText)||0}function LAe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Co(e.relatedInformation.length,t.relatedInformation.length)||pn(e.relatedInformation,(r,i)=>{const a=t.relatedInformation[i];return I3(r,a)})||0:e.relatedInformation?-1:1}function cue(e,t){if(typeof e=="string"&&typeof t=="string")return w_(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=w_(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let a=0;at.next.length?1:0}function wD(e){return e===4||e===2||e===1||e===6?1:0}function lue(e){if(!!(e.transformFlags&2))return U_(e)||y2(e)?e:bs(e,lue)}function MAe(e){return e.isDeclarationFile?void 0:lue(e)}function RAe(e){return(e.impliedNodeFormat===99||Gc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function DD(e){switch(_ue(e)){case 3:return a=>{a.externalModuleIndicator=xA(a)||!a.isDeclarationFile||void 0};case 1:return a=>{a.externalModuleIndicator=xA(a)};case 2:const t=[xA];(e.jsx===4||e.jsx===5)&&t.push(MAe),t.push(RAe);const r=Kp(...t);return a=>void(a.externalModuleIndicator=r(a))}}function Ia(e){var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}function Ul(e){return typeof e.module=="number"?e.module:Ia(e)>=2?5:1}function fO(e){return e>=5&&e<=99}function Sc(e){let t=e.moduleResolution;if(t===void 0)switch(Ul(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function _ue(e){return e.moduleDetection||(Ul(e)===100||Ul(e)===199?3:2)}function pO(e){switch(Ul(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function nd(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function Uq(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function uue(e){return e.allowUnreachableCode===!1}function fue(e){return e.allowUnusedLabels===!1}function dO(e){return!!(wp(e)&&e.declarationMap)}function bm(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Ul(e)){case 100:case 199:return!0}}function Yx(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:bm(e)||Ul(e)===4||Sc(e)===100}function Zx(e){return e>=3&&e<=99||e===100}function mO(e){return!!e.noDtsResolution||Sc(e)!==100}function Wq(e){const t=Sc(e);if(!Zx(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function BAe(e){const t=Sc(e);if(!Zx(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function $b(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:Sc(e)===100}function wp(e){return!!(e.declaration||e.composite)}function Xb(e){return!!(e.preserveConstEnums||nd(e))}function AD(e){return!!(e.incremental||e.composite)}function rp(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function O3(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function ND(e){return e.useDefineForClassFields===void 0?Ia(e)>=9:e.useDefineForClassFields}function pue(e){return e.useDefineForClassFields!==!1&&Ia(e)>=9}function due(e,t){return l6(t,e,$G)}function mue(e,t){return l6(t,e,XG)}function gue(e,t){return l6(t,e,QG)}function gO(e,t){return t.strictFlag?rp(e,t.name):e[t.name]}function hO(e){const t=e.jsx;return t===2||t===4||t===5}function yO(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=Ds(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function vO(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function qq(e){let t=!1;for(let r=0;ra,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,f)=>(a||(a=new Map)).set(u,f),setSymlinkedDirectory:(u,f)=>{let g=ho(u,e,t);V3(g)||(g=D_(g),f!==!1&&!(r!=null&&r.has(g))&&(i||(i=Xf())).add(D_(f.realPath),u),(r||(r=new Map)).set(g,f))},setSymlinksFromResolutions(u,f){var g,m;E.assert(!o),o=!0;for(const y of u)(g=y.resolvedModules)==null||g.forEach(x=>l(this,x.resolvedModule)),(m=y.resolvedTypeReferenceDirectiveNames)==null||m.forEach(x=>l(this,x.resolvedTypeReferenceDirective));f.forEach(y=>l(this,y.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o};function l(u,f){if(!f||!f.originalPath||!f.resolvedFileName)return;const{resolvedFileName:g,originalPath:m}=f;u.setSymlinkedFile(ho(m,e,t),g);const[y,x]=jAe(g,m,e,t)||Ve;y&&x&&u.setSymlinkedDirectory(x,{real:y,realPath:ho(y,e,t)})}}function jAe(e,t,r,i){const a=Dl(ms(e,r)),o=Dl(ms(t,r));let l=!1;for(;a.length>=2&&o.length>=2&&!yue(a[a.length-2],i)&&!yue(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),l=!0;return l?[$h(a),$h(o)]:void 0}function yue(e,t){return e!==void 0&&(t(e)==="node_modules"||ns(e,"@"))}function JAe(e){return IU(e.charCodeAt(0))?e.slice(1):void 0}function Hq(e,t,r){const i=yV(e,t,r);return i===void 0?void 0:JAe(i)}function zAe(e){return e.replace(NO,VAe)}function VAe(e){return"\\"+e}function F3(e,t,r){const i=bO(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function bO(e,t,r){if(!(e===void 0||e.length===0))return Na(e,i=>i&&vue(i,t,r,EH[r]))}function Gq(e){return!/[.*?]/.test(e)}function $q(e,t,r){const i=e&&vue(e,t,r,EH[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function vue(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:a,replaceWildcardCharacter:o}){let l="",u=!1;const f=rw(e,t),g=ka(f);if(r!=="exclude"&&g==="**")return;f[0]=Uv(f[0]),Gq(g)&&f.push("**","*");let m=0;for(let y of f){if(y==="**")l+=a;else if(r==="directories"&&(l+="(",m++),u&&(l+=qo),r!=="exclude"){let x="";y.charCodeAt(0)===42?(x+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(x+="[^./]",y=y.substr(1)),x+=y.replace(NO,o),x!==y&&(l+=PO),l+=x}else l+=y.replace(NO,o);u=!0}for(;m>0;)l+=")?",m--;return l}function Xq(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function L3(e,t,r,i,a){e=ba(e),a=ba(a);const o=Ii(a,e);return{includeFilePatterns:an(bO(r,o,"files"),l=>`^${l}$`),includeFilePattern:F3(r,o,"files"),includeDirectoryPattern:F3(r,o,"directories"),excludePattern:F3(t,o,"exclude"),basePaths:UAe(e,r,i)}}function l1(e,t){return new RegExp(e,t?"":"i")}function Qq(e,t,r,i,a,o,l,u,f){e=ba(e),o=ba(o);const g=L3(e,r,i,a,o),m=g.includeFilePatterns&&g.includeFilePatterns.map(M=>l1(M,a)),y=g.includeDirectoryPattern&&l1(g.includeDirectoryPattern,a),x=g.excludePattern&&l1(g.excludePattern,a),k=m?m.map(()=>[]):[[]],C=new Map,N=Ql(a);for(const M of g.basePaths)D(M,Ii(o,M),l);return bp(k);function D(M,V,U){const Y=N(f(V));if(C.has(Y))return;C.set(Y,!0);const{files:j,directories:ee}=u(M);for(const R of DC(j,w_)){const Z=Ii(M,R),oe=Ii(V,R);if(!(t&&!Gc(Z,t))&&!(x&&x.test(oe)))if(!m)k[0].push(Z);else{const _e=qc(m,X=>X.test(oe));_e!==-1&&k[_e].push(Z)}}if(!(U!==void 0&&(U--,U===0)))for(const R of DC(ee,w_)){const Z=Ii(M,R),oe=Ii(V,R);(!y||y.test(oe))&&(!x||!x.test(oe))&&D(Z,oe,U)}}}function UAe(e,t,r){const i=[e];if(t){const a=[];for(const o of t){const l=Ad(o)?o:ba(Ii(e,o));a.push(WAe(l))}a.sort(dI(!r));for(const o of a)Xi(i,l=>!Qh(l,o,e,!r))&&i.push(o)}return i}function WAe(e){const t=Zae(e,Xue);return t<0?$k(e)?Uv(Ti(e)):e:e.substring(0,e.lastIndexOf(qo,t))}function TO(e,t){return t||Yq(e)||3}function Yq(e){switch(e.substr(e.lastIndexOf(".")).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}}function M3(e,t){const r=e&&O3(e);if(!t||t.length===0)return r?VD:W6;const i=r?VD:W6,a=bp(i);return[...i,...Hi(t,l=>l.scriptKind===7||r&&qAe(l.scriptKind)&&a.indexOf(l.extension)===-1?[l.extension]:void 0)]}function PD(e,t){return!e||!$b(e)?t:t===VD?Zue:t===W6?Que:[...t,[".json"]]}function qAe(e){return e===1||e===2}function _2(e){return dt(q6,t=>Hc(e,t))}function R3(e){return dt(wH,t=>Hc(e,t))}function bue({imports:e},t=Kp(_2,R3)){return cc(e,({text:r})=>$u(r)&&!Gc(r,qD)?t(r):void 0)||!1}function Zq(e,t,r,i){if(e==="js"||t===99)return g4(r)&&a()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!g4(r))return bue(i)?2:0;return a();function a(){let o=!1;const l=i.imports.length?i.imports.map(u=>u.text):P_(i)?HAe(i).map(u=>u.arguments[0].text):Ve;for(const u of l)if($u(u)){if(Gc(u,qD))continue;if(R3(u))return 3;_2(u)&&(o=!0)}return o?2:0}}function HAe(e){let t=0,r;for(const i of e.statements){if(t>3)break;ZW(i)?r=es(r,i.declarationList.declarations.map(a=>a.initializer)):ql(i)&&mu(i.expression,!0)?r=dn(r,i.expression):t++}return r||Ve}function Tue(e,t,r){if(!e)return!1;const i=M3(t,r);for(const a of bp(PD(t,i)))if(Hc(e,a))return!0;return!1}function xue(e){const t=e.match(/\//g);return t?t.length:0}function ID(e,t){return Co(xue(e),xue(t))}function gu(e){for(const t of IO){const r=Sue(e,t);if(r!==void 0)return r}return e}function Sue(e,t){return Hc(e,t)?OD(e,t):void 0}function OD(e,t){return e.substring(0,e.length-t.length)}function Cy(e,t){return iw(e,t,IO,!1)}function B6(e){const t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function xO(e){return Hi(Jg(e),t=>B6(t))}function Rd(e){return!(e>=0)}function SO(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||ns(e,".d.")&&vc(e,".ts")}function FD(e){return SO(e)||e===".json"}function Qb(e){const t=ig(e);return t!==void 0?t:E.fail(`File ${e} has unknown extension.`)}function GAe(e){return ig(e)!==void 0}function ig(e){return Or(IO,t=>Hc(e,t))}function LD(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function Kq(e,t){const r=[];for(const i of e){if(i===t)return t;Gs(i)||r.push(i)}return hV(r,i=>i,t)}function eH(e,t){const r=e.indexOf(t);return E.assert(r!==-1),e.slice(r)}function ua(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),E.assert(e.relatedInformation!==Ve,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function kue(e,t){E.assert(e.length!==0);let r=t(e[0]),i=r;for(let a=1;ai&&(i=o)}return{min:r,max:i}}function tH(e){return{pos:Rb(e),end:e.end}}function nH(e,t){const r=t.pos-1,i=Math.min(e.text.length,_a(e.text,t.end)+1);return{pos:r,end:i}}function B3(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function rH(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&aoe(e,t,rH)}function j3(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const g=e.length-1;let m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,g)||"0"}const r=2,i=e.length-1,a=(i-r)*t,o=new Uint16Array((a>>>4)+(a&15?1:0));for(let g=i-1,m=0;g>=r;g--,m+=t){const y=m>>>4,x=e.charCodeAt(g),C=(x<=57?x-48:10+x-(x<=70?65:97))<<(m&15);o[y]|=C;const N=C>>>16;N&&(o[y+1]|=N)}let l="",u=o.length-1,f=!0;for(;f;){let g=0;f=!1;for(let m=u;m>=0;m--){const y=g<<16|o[m],x=y/10|0;o[m]=x,g=y-x*10,x&&!f&&(u=m,f=!0)}l=g+l}return l}function u2({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Cue(e){if(!!kO(e,!1))return iH(e)}function iH(e){const t=e.startsWith("-"),r=j3(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function kO(e,t){if(e==="")return!1;const r=U0(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let a=r.scan();const o=a===41;o&&(a=r.scan());const l=r.getTokenFlags();return i&&a===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===u2({negative:o,base10Value:j3(r.getTokenValue())}))}function Ey(e){return!!(e.flags&33554432)||B9(e)||QAe(e)||XAe(e)||!(Gg(e)||$Ae(e))}function $Ae(e){return we(e)&&nf(e.parent)&&e.parent.name===e}function XAe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Lr(e.parent,256))return!0;const t=e.parent.parent.kind;return t===264||t===187}function QAe(e){if(e.kind!==80)return!1;const t=In(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function Eue(e){return ap(e)&&we(e.typeName)}function wue(e,t=ly){if(e.length<2)return!0;const r=e[0];for(let i=1,a=e.length;iXl(e,t))}function Nue(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return oT(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(c6(e))return i4(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Ob(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Ai(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return Aw(e)?t.children:void 0;case 286:case 285:return Ai(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return Nl(e)?t.members:void 0;case 266:return b2(e)?t.members:void 0;case 312:return t.statements}}function CO(e){if(!e.typeParameters){if(dt(e.parameters,t=>!Vl(t)))return!0;if(e.kind!==219){const t=wl(e.parameters);if(!(t&&o2(t)))return!0}}return!1}function U3(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Pue(e){return e.kind===260&&e.parent.kind===299}function aH(e){const t=e.valueDeclaration&&hm(e.valueDeclaration);return!!t&&(rs(t)||Pue(t))}function z6(e){return e.kind===218||e.kind===219}function f2(e){return e.replace(/\$/gm,()=>"\\$")}function sg(e){return(+e).toString()===e}function EO(e,t,r,i){return pf(e,t)?I.createIdentifier(e):!i&&sg(e)&&+e>=0?I.createNumericLiteral(+e):I.createStringLiteral(e,!!r)}function W3(e){return!!(e.flags&262144&&e.isThisType)}function oH(e){let t=0,r=0,i=0,a=0,o;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(o||(o={}));let l=0,u=0,f=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),f){case 0:e.indexOf(ah,l)===l&&(t=l,r=u,f=1);break;case 1:case 2:f===1&&e.charAt(l+1)==="@"?f=2:(i=u,f=3);break;case 3:e.indexOf(ah,l)===l?f=1:f=3;break}return a=l,f>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}function ZAe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function V6(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function MD(e){return Py(e)||ic(e)||tl(e)||Qc(e)||f_(e)||V6(e)||Ac(e)&&!Zv(e)&&!Id(e)}function RD(e){if(!r9(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function cH(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&Xm(e.charCodeAt(1),t):Xm(r,t)}function Iue(e){var t;return((t=jH(e))==null?void 0:t.kind)===0}function BD(e){return Kn(e)&&(e.type&&e.type.kind===323||e6(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function lH(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||BD(e);case 355:case 348:return RD(e);default:return!1}}function Oue(e){const t=e.kind;return(t===211||t===212)&&dS(e.expression)}function _H(e){return Kn(e)&&yu(e)&&Qu(e)&&!!ZU(e)}function uH(e){return E.checkDefined(wO(e))}function wO(e){const t=ZU(e);return t&&t.typeExpression&&t.typeExpression.type}function q3(e){return we(e)?e.escapedText:Kx(e)}function jD(e){return we(e)?lr(e):H3(e)}function Fue(e){const t=e.kind;return t===80||t===295}function Kx(e){return`${e.namespace.escapedText}:${lr(e.name)}`}function H3(e){return`${lr(e.namespace)}:${lr(e.name)}`}function fH(e){return we(e)?lr(e):H3(e)}function ip(e){return!!(e.flags&8576)}function sp(e){return e.flags&8192?e.escapedName:e.flags&384?Ho(""+e.value):E.fail()}var DO,u1,JD,AO,G3,pH,dH,Lue,Mue,mH,Rue,Bue,gH,hH,yH,vH,jue,Jue,zue,Vue,Uue,bH,Wue,que,Hue,U6,p2,Gue,$ue,Ol,TH,zD,NO,Xue,xH,PO,SH,kH,CH,EH,W6,wH,Que,Yue,DH,q6,VD,Zue,UD,WD,qD,AH,IO,OO,KAe=Rt({"src/compiler/utilities.ts"(){Ls(),DO=[],u1="tslib",JD=160,AO=1e6,G3=LDe(),pH=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(pH||{}),dH=/^(\/\/\/\s*/,Lue=/^(\/\/\/\s*/,Mue=/^(\/\/\/\s*/,mH=/^(\/\/\/\s*/,Rue=/^\/\/\/\s*/,Bue=/^(\/\/\/\s*/,gH=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(gH||{}),hH=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(hH||{}),yH=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(yH||{}),vH=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(vH||{}),jue=/\$\{/g,Jue=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,zue=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Vue=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Uue=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),bH=/[^\u0000-\u007F]/g,Wue=/["\u0000-\u001f\u2028\u2029\u0085]/g,que=/['\u0000-\u001f\u2028\u2029\u0085]/g,Hue=new Map(Object.entries({'"':""","'":"'"})),U6=[""," "],p2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Gue=`\r `,$ue=` -`,Ol={getNodeConstructor:()=>Jq,getTokenConstructor:()=>NAe,getIdentifierConstructor:()=>PAe,getPrivateIdentifierConstructor:()=>Jq,getSourceFileConstructor:()=>Jq,getSymbolConstructor:()=>wAe,getTypeConstructor:()=>DAe,getSignatureConstructor:()=>AAe,getSourceMapSourceConstructor:()=>IAe},bH=[],NO=/[^\w\s/]/g,Xue=[42,63],TH=["node_modules","bower_components","jspm_packages"],PO=`(?!(${TH.join("|")})(/|$))`,xH={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${PO}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>$q(e,xH.singleAsteriskRegexFragment)},SH={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${PO}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>$q(e,SH.singleAsteriskRegexFragment)},kH={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>$q(e,kH.singleAsteriskRegexFragment)},CH={files:xH,directories:SH,exclude:kH},U6=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],EH=vp(U6),Que=[...U6,[".json"]],Yue=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],wH=[[".js",".jsx"],[".mjs"],[".cjs"]],W6=vp(wH),zD=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Zue=[...zD,[".json"]],VD=[".d.ts",".d.cts",".d.mts"],UD=[".ts",".cts",".mts",".tsx"],WD=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],DH=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(DH||{}),IO=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],OO={files:Ve,directories:Ve}}});function Kue(){let e,t,r,i,a;return{createBaseSourceFileNode:o,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:f,createBaseNode:g};function o(m){return new(a||(a=Ol.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=Ol.getIdentifierConstructor()))(m,-1,-1)}function u(m){return new(i||(i=Ol.getPrivateIdentifierConstructor()))(m,-1,-1)}function f(m){return new(t||(t=Ol.getTokenConstructor()))(m,-1,-1)}function g(m){return new(e||(e=Ol.getNodeConstructor()))(m,-1,-1)}}var KAe=Bt({"src/compiler/factory/baseNodeFactory.ts"(){Os()}});function efe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:a,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:x,parenthesizeBranchOfConditionalExpression:k,parenthesizeExpressionOfExportDefault:C,parenthesizeExpressionOfNew:N,parenthesizeLeftSideOfAccess:D,parenthesizeOperandOfPostfixUnary:M,parenthesizeOperandOfPrefixUnary:V,parenthesizeExpressionsOfCommaDelimitedList:U,parenthesizeExpressionForDisallowedComma:Y,parenthesizeExpressionOfExpressionStatement:j,parenthesizeConciseBodyOfArrowFunction:ee,parenthesizeCheckTypeOfConditionalType:R,parenthesizeExtendsTypeOfConditionalType:Z,parenthesizeConstituentTypesOfUnionType:_e,parenthesizeConstituentTypeOfUnionType:oe,parenthesizeConstituentTypesOfIntersectionType:H,parenthesizeConstituentTypeOfIntersectionType:X,parenthesizeOperandOfTypeOperator:Q,parenthesizeOperandOfReadonlyTypeOperator:re,parenthesizeNonArrayTypeOfPostfixType:ue,parenthesizeElementTypesOfTupleType:fe,parenthesizeElementTypeOfTupleType:G,parenthesizeTypeOfOptionalType:De,parenthesizeTypeArguments:be,parenthesizeLeadingTypeArgument:Xe};function i(xe){t||(t=new Map);let rt=t.get(xe);return rt||(rt=ct=>g(xe,ct),t.set(xe,rt)),rt}function a(xe){r||(r=new Map);let rt=r.get(xe);return rt||(rt=ct=>m(xe,void 0,ct),r.set(xe,rt)),rt}function o(xe,rt,ct,pe){const Pe=fD(226,xe),Ge=dq(226,xe),tt=bp(rt);if(!ct&&rt.kind===219&&Pe>3)return!0;const mt=d3(tt);switch(Co(mt,Pe)){case-1:return!(!ct&&Ge===1&&rt.kind===229);case 1:return!1;case 0:if(ct)return Ge===1;if(rr(tt)&&tt.operatorToken.kind===xe){if(l(xe))return!1;if(xe===40){const at=pe?u(pe):0;if(GC(at)&&at===u(tt))return!1}}return pq(tt)===0}}function l(xe){return xe===42||xe===52||xe===51||xe===53||xe===28}function u(xe){if(xe=bp(xe),GC(xe.kind))return xe.kind;if(xe.kind===226&&xe.operatorToken.kind===40){if(xe.cachedLiteralKind!==void 0)return xe.cachedLiteralKind;const rt=u(xe.left),ct=GC(rt)&&rt===u(xe.right)?rt:0;return xe.cachedLiteralKind=ct,ct}return 0}function f(xe,rt,ct,pe){return bp(rt).kind===217?rt:o(xe,rt,ct,pe)?e.createParenthesizedExpression(rt):rt}function g(xe,rt){return f(xe,rt,!0)}function m(xe,rt,ct){return f(xe,ct,!1,rt)}function y(xe){return u8(xe)?e.createParenthesizedExpression(xe):xe}function x(xe){const rt=fD(227,58),ct=bp(xe),pe=d3(ct);return Co(pe,rt)!==1?e.createParenthesizedExpression(xe):xe}function k(xe){const rt=bp(xe);return u8(rt)?e.createParenthesizedExpression(xe):xe}function C(xe){const rt=bp(xe);let ct=u8(rt);if(!ct)switch(A3(rt,!1).kind){case 231:case 218:ct=!0}return ct?e.createParenthesizedExpression(xe):xe}function N(xe){const rt=A3(xe,!0);switch(rt.kind){case 213:return e.createParenthesizedExpression(xe);case 214:return rt.arguments?xe:e.createParenthesizedExpression(xe)}return D(xe)}function D(xe,rt){const ct=bp(xe);return pu(ct)&&(ct.kind!==214||ct.arguments)&&(rt||!c_(ct))?xe:Ke(e.createParenthesizedExpression(xe),xe)}function M(xe){return pu(xe)?xe:Ke(e.createParenthesizedExpression(xe),xe)}function V(xe){return _W(xe)?xe:Ke(e.createParenthesizedExpression(xe),xe)}function U(xe){const rt=cl(xe,Y);return Ke(e.createNodeArray(rt,xe.hasTrailingComma),xe)}function Y(xe){const rt=bp(xe),ct=d3(rt),pe=fD(226,28);return ct>pe?xe:Ke(e.createParenthesizedExpression(xe),xe)}function j(xe){const rt=bp(xe);if(js(rt)){const pe=rt.expression,Pe=bp(pe).kind;if(Pe===218||Pe===219){const Ge=e.updateCallExpression(rt,Ke(e.createParenthesizedExpression(pe),pe),rt.typeArguments,rt.arguments);return e.restoreOuterExpressions(xe,Ge,8)}}const ct=A3(rt,!1).kind;return ct===210||ct===218?Ke(e.createParenthesizedExpression(xe),xe):xe}function ee(xe){return!hs(xe)&&(u8(xe)||A3(xe,!1).kind===210)?Ke(e.createParenthesizedExpression(xe),xe):xe}function R(xe){switch(xe.kind){case 184:case 185:case 194:return e.createParenthesizedType(xe)}return xe}function Z(xe){switch(xe.kind){case 194:return e.createParenthesizedType(xe)}return xe}function oe(xe){switch(xe.kind){case 192:case 193:return e.createParenthesizedType(xe)}return R(xe)}function _e(xe){return e.createNodeArray(cl(xe,oe))}function X(xe){switch(xe.kind){case 192:case 193:return e.createParenthesizedType(xe)}return oe(xe)}function H(xe){return e.createNodeArray(cl(xe,X))}function Q(xe){switch(xe.kind){case 193:return e.createParenthesizedType(xe)}return X(xe)}function re(xe){switch(xe.kind){case 198:return e.createParenthesizedType(xe)}return Q(xe)}function ue(xe){switch(xe.kind){case 195:case 198:case 186:return e.createParenthesizedType(xe)}return Q(xe)}function fe(xe){return e.createNodeArray(cl(xe,G))}function G(xe){return Ne(xe)?e.createParenthesizedType(xe):xe}function Ne(xe){return t4(xe)?xe.postfix:t8(xe)||sg(xe)||e8(xe)||lS(xe)?Ne(xe.type):Y6(xe)?Ne(xe.falseType):aS(xe)||iA(xe)?Ne(ka(xe.types)):oS(xe)?!!xe.typeParameter.constraint&&Ne(xe.typeParameter.constraint):!1}function De(xe){return Ne(xe)?e.createParenthesizedType(xe):ue(xe)}function Xe(xe){return Zce(xe)&&xe.typeParameters?e.createParenthesizedType(xe):xe}function ve(xe,rt){return rt===0?Xe(xe):xe}function be(xe){if(dt(xe))return e.createNodeArray(cl(xe,ve))}}var AH,e5e=Bt({"src/compiler/factory/parenthesizerRules.ts"(){Os(),AH={getParenthesizeLeftSideOfBinaryForOperator:e=>Zo,getParenthesizeRightSideOfBinaryForOperator:e=>Zo,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Zo,parenthesizeConditionOfConditionalExpression:Zo,parenthesizeBranchOfConditionalExpression:Zo,parenthesizeExpressionOfExportDefault:Zo,parenthesizeExpressionOfNew:e=>Ms(e,pu),parenthesizeLeftSideOfAccess:e=>Ms(e,pu),parenthesizeOperandOfPostfixUnary:e=>Ms(e,pu),parenthesizeOperandOfPrefixUnary:e=>Ms(e,_W),parenthesizeExpressionsOfCommaDelimitedList:e=>Ms(e,Hv),parenthesizeExpressionForDisallowedComma:Zo,parenthesizeExpressionOfExpressionStatement:Zo,parenthesizeConciseBodyOfArrowFunction:Zo,parenthesizeCheckTypeOfConditionalType:Zo,parenthesizeExtendsTypeOfConditionalType:Zo,parenthesizeConstituentTypesOfUnionType:e=>Ms(e,Hv),parenthesizeConstituentTypeOfUnionType:Zo,parenthesizeConstituentTypesOfIntersectionType:e=>Ms(e,Hv),parenthesizeConstituentTypeOfIntersectionType:Zo,parenthesizeOperandOfTypeOperator:Zo,parenthesizeOperandOfReadonlyTypeOperator:Zo,parenthesizeNonArrayTypeOfPostfixType:Zo,parenthesizeElementTypesOfTupleType:e=>Ms(e,Hv),parenthesizeElementTypeOfTupleType:Zo,parenthesizeTypeOfOptionalType:Zo,parenthesizeTypeArguments:e=>e&&Ms(e,Hv),parenthesizeLeadingTypeArgument:Zo}}});function tfe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:a,convertToObjectAssignmentElement:o,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:g};function t(m,y){if(hs(m))return m;const x=e.createReturnStatement(m);Ke(x,m);const k=e.createBlock([x],y);return Ke(k,m),k}function r(m){var y;if(!m.body)return E.fail("Cannot convert a FunctionDeclaration without a body");const x=e.createFunctionExpression((y=qv(m))==null?void 0:y.filter(k=>!iS(k)&&!dF(k)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return or(x,m),Ke(x,m),$3(m)&&LO(x,!0),x}function i(m){var y;const x=e.createClassExpression((y=m.modifiers)==null?void 0:y.filter(k=>!iS(k)&&!dF(k)),m.name,m.typeParameters,m.heritageClauses,m.members);return or(x,m),Ke(x,m),$3(m)&&LO(x,!0),x}function a(m){if(Fa(m)){if(m.dotDotDotToken)return E.assertNode(m.name,we),or(Ke(e.createSpreadElement(m.name),m),m);const y=g(m.name);return m.initializer?or(Ke(e.createAssignment(y,m.initializer),m),m):y}return Ms(m,nt)}function o(m){if(Fa(m)){if(m.dotDotDotToken)return E.assertNode(m.name,we),or(Ke(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){const y=g(m.name);return or(Ke(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(y,m.initializer):y),m),m)}return E.assertNode(m.name,we),or(Ke(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return Ms(m,q0)}function l(m){switch(m.kind){case 207:case 209:return f(m);case 206:case 210:return u(m)}}function u(m){return td(m)?or(Ke(e.createObjectLiteralExpression(an(m.elements,o)),m),m):Ms(m,ha)}function f(m){return uS(m)?or(Ke(e.createArrayLiteralExpression(an(m.elements,a)),m),m):Ms(m,u_)}function g(m){return Ns(m)?l(m):Ms(m,nt)}}var NH,t5e=Bt({"src/compiler/factory/nodeConverters.ts"(){Os(),NH={convertToFunctionBlock:Ss,convertToFunctionExpression:Ss,convertToClassExpression:Ss,convertToArrayAssignmentElement:Ss,convertToObjectAssignmentElement:Ss,convertToAssignmentPattern:Ss,convertToObjectAssignmentPattern:Ss,convertToArrayAssignmentPattern:Ss,convertToAssignmentElementTarget:Ss}}});function n5e(e){LH.push(e)}function qD(e,t){const r=e&8?r5e:i5e,i=wu(()=>e&1?AH:efe(M)),a=wu(()=>e&2?NH:tfe(M)),o=lm(v=>(w,L)=>Be(w,v,L)),l=lm(v=>w=>cd(v,w)),u=lm(v=>w=>qd(w,v)),f=lm(v=>()=>Sh(v)),g=lm(v=>w=>z2(v,w)),m=lm(v=>(w,L)=>ik(v,w,L)),y=lm(v=>(w,L)=>qT(v,w,L)),x=lm(v=>(w,L)=>rk(v,w,L)),k=lm(v=>(w,L)=>G_(v,w,L)),C=lm(v=>(w,L,ie)=>yg(v,w,L,ie)),N=lm(v=>(w,L,ie)=>mp(v,w,L,ie)),D=lm(v=>(w,L,ie,Ie)=>M1(v,w,L,ie,Ie)),M={get parenthesizer(){return i()},get converters(){return a()},baseFactory:t,flags:e,createNodeArray:V,createNumericLiteral:ee,createBigIntLiteral:R,createStringLiteral:oe,createStringLiteralFromNode:_e,createRegularExpressionLiteral:X,createLiteralLikeNode:H,createIdentifier:ue,createTempVariable:fe,createLoopVariable:G,createUniqueName:Ne,getGeneratedNameForNode:De,createPrivateIdentifier:ve,createUniquePrivateName:xe,getGeneratedPrivateNameForNode:rt,createToken:pe,createSuper:Pe,createThis:Ge,createNull:tt,createTrue:mt,createFalse:Je,createModifier:at,createModifiersFromModifierFlags:zt,createQualifiedName:It,updateQualifiedName:bt,createComputedPropertyName:_r,updateComputedPropertyName:Tn,createTypeParameterDeclaration:jt,updateTypeParameterDeclaration:Kn,createParameterDeclaration:br,updateParameterDeclaration:fi,createDecorator:Si,updateDecorator:Nr,createPropertySignature:pt,updatePropertySignature:ur,createPropertyDeclaration:Ct,updatePropertyDeclaration:cn,createMethodSignature:In,updateMethodSignature:xr,createMethodDeclaration:wi,updateMethodDeclaration:Zt,createConstructorDeclaration:ze,updateConstructorDeclaration:ut,createGetAccessorDeclaration:st,updateGetAccessorDeclaration:Ut,createSetAccessorDeclaration:Me,updateSetAccessorDeclaration:ke,createCallSignature:K,updateCallSignature:$e,createConstructSignature:Ae,updateConstructSignature:yt,createIndexSignature:_t,updateIndexSignature:Jt,createClassStaticBlockDeclaration:xn,updateClassStaticBlockDeclaration:Gr,createTemplateLiteralTypeSpan:Ln,updateTemplateLiteralTypeSpan:Pt,createKeywordTypeNode:hi,createTypePredicateNode:z,updateTypePredicateNode:B,createTypeReferenceNode:le,updateTypeReferenceNode:W,createFunctionTypeNode:ge,updateFunctionTypeNode:F,createConstructorTypeNode:Oe,updateConstructorTypeNode:Ot,createTypeQueryNode:ir,updateTypeQueryNode:ar,createTypeLiteralNode:jn,updateTypeLiteralNode:ai,createArrayTypeNode:ea,updateArrayTypeNode:ps,createTupleTypeNode:Ws,updateTupleTypeNode:Qr,createNamedTupleMember:cs,updateNamedTupleMember:Fs,createOptionalTypeNode:pi,updateOptionalTypeNode:ln,createRestTypeNode:tc,updateRestTypeNode:Ui,createUnionTypeNode:ro,updateUnionTypeNode:Ja,createIntersectionTypeNode:Ic,updateIntersectionTypeNode:ls,createConditionalTypeNode:Oi,updateConditionalTypeNode:Vc,createInferTypeNode:Jo,updateInferTypeNode:L_,createImportTypeNode:Ls,updateImportTypeNode:mo,createParenthesizedType:ja,updateParenthesizedType:La,createThisTypeNode:qt,createTypeOperatorNode:mc,updateTypeOperatorNode:h_,createIndexedAccessTypeNode:M_,updateIndexedAccessTypeNode:W_,createMappedTypeNode:bo,updateMappedTypeNode:Go,createLiteralTypeNode:A,updateLiteralTypeNode:Ce,createTemplateLiteralType:_l,updateTemplateLiteralType:Rf,createObjectBindingPattern:Re,updateObjectBindingPattern:xt,createArrayBindingPattern:vn,updateArrayBindingPattern:Pr,createBindingElement:wn,updateBindingElement:mr,createArrayLiteralExpression:oi,updateArrayLiteralExpression:Ur,createObjectLiteralExpression:Ma,updateObjectLiteralExpression:io,createPropertyAccessExpression:e&4?(v,w)=>Xn(Oc(v,w),262144):Oc,updatePropertyAccessExpression:gc,createPropertyAccessChain:e&4?(v,w,L)=>Xn(Ka(v,w,L),262144):Ka,updatePropertyAccessChain:nc,createElementAccessExpression:Uc,updateElementAccessExpression:zo,createElementAccessChain:bu,updateElementAccessChain:he,createCallExpression:bn,updateCallExpression:Bi,createCallChain:Es,updateCallChain:Ua,createNewExpression:oc,updateNewExpression:se,createTaggedTemplateExpression:qe,updateTaggedTemplateExpression:gt,createTypeAssertion:Et,updateTypeAssertion:Qt,createParenthesizedExpression:Fn,updateParenthesizedExpression:Cr,createFunctionExpression:qr,updateFunctionExpression:li,createArrowFunction:ds,updateArrowFunction:va,createDeleteExpression:Fo,updateDeleteExpression:Ro,createTypeOfExpression:Zc,updateTypeOfExpression:Fc,createVoidExpression:il,updateVoidExpression:Ml,createAwaitExpression:sl,updateAwaitExpression:ju,createPrefixUnaryExpression:cd,updatePrefixUnaryExpression:E1,createPostfixUnaryExpression:qd,updatePostfixUnaryExpression:J,createBinaryExpression:Be,updateBinaryExpression:Jn,createConditionalExpression:vs,updateConditionalExpression:di,createTemplateExpression:rs,updateTemplateExpression:bs,createTemplateHead:ld,createTemplateMiddle:Hd,createTemplateTail:Fp,createNoSubstitutionTemplateLiteral:Ee,createTemplateLiteralLikeNode:y_,createYieldExpression:je,updateYieldExpression:Ye,createSpreadElement:Rt,updateSpreadElement:rn,createClassExpression:fn,updateClassExpression:nn,createOmittedExpression:zn,createExpressionWithTypeArguments:jr,updateExpressionWithTypeArguments:Hi,createAsExpression:Hn,updateAsExpression:cr,createNonNullExpression:wr,updateNonNullExpression:ta,createSatisfiesExpression:Lc,updateSatisfiesExpression:$o,createNonNullChain:ug,updateNonNullChain:Gd,createMetaProperty:Bf,updateMetaProperty:a0,createTemplateSpan:dh,updateTemplateSpan:PT,createSemicolonClassElement:z4,createBlock:o0,updateBlock:mh,createVariableStatement:Vy,updateVariableStatement:w1,createEmptyStatement:Uy,createExpressionStatement:gh,updateExpressionStatement:IT,createIfStatement:YS,updateIfStatement:OT,createDoStatement:FT,updateDoStatement:I2,createWhileStatement:LT,updateWhileStatement:MT,createForStatement:O2,updateForStatement:RT,createForInStatement:BT,updateForInStatement:ZS,createForOfStatement:jT,updateForOfStatement:KS,createContinueStatement:D1,updateContinueStatement:Wy,createBreakStatement:hh,updateBreakStatement:qy,createReturnStatement:F2,updateReturnStatement:c0,createWithStatement:xa,updateWithStatement:L2,createSwitchStatement:yh,updateSwitchStatement:A1,createLabeledStatement:fg,updateLabeledStatement:$d,createThrowStatement:bf,updateThrowStatement:Ju,createTryStatement:ou,updateTryStatement:Tu,createDebuggerStatement:Hy,createVariableDeclaration:Gy,updateVariableDeclaration:V4,createVariableDeclarationList:$y,updateVariableDeclarationList:JT,createFunctionDeclaration:N1,updateFunctionDeclaration:Xy,createClassDeclaration:zT,updateClassDeclaration:R2,createInterfaceDeclaration:vh,updateInterfaceDeclaration:al,createTypeAliasDeclaration:Fe,updateTypeAliasDeclaration:l0,createEnumDeclaration:Tf,updateEnumDeclaration:bh,createModuleDeclaration:v_,updateModuleDeclaration:up,createModuleBlock:b_,updateModuleBlock:_0,createCaseBlock:ek,updateCaseBlock:Pa,createNamespaceExportDeclaration:fp,updateNamespaceExportDeclaration:VT,createImportEqualsDeclaration:UT,updateImportEqualsDeclaration:Qy,createImportDeclaration:pg,updateImportDeclaration:Yy,createImportClause:_d,updateImportClause:Nm,createAssertClause:xf,updateAssertClause:P1,createAssertEntry:WT,updateAssertEntry:Fi,createImportTypeAssertionContainer:Jr,updateImportTypeAssertionContainer:Xd,createNamespaceImport:H_,updateNamespaceImport:U4,createNamespaceExport:Qd,updateNamespaceExport:W4,createNamedImports:B2,updateNamedImports:Mc,createImportSpecifier:I1,updateImportSpecifier:j2,createExportAssignment:xu,updateExportAssignment:Lp,createExportDeclaration:T_,updateExportDeclaration:Th,createNamedExports:u0,updateNamedExports:O1,createExportSpecifier:xh,updateExportSpecifier:f0,createMissingDeclaration:nk,createExternalModuleReference:ud,updateExternalModuleReference:Pm,get createJSDocAllType(){return f(319)},get createJSDocUnknownType(){return f(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return x(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return x(321)},get createJSDocOptionalType(){return g(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return g(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return g(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:so,updateJSDocFunctionType:Zy,createJSDocTypeLiteral:pp,updateJSDocTypeLiteral:Ky,createJSDocTypeExpression:ev,updateJSDocTypeExpression:q4,createJSDocSignature:sk,updateJSDocSignature:V2,createJSDocTemplateTag:Mp,updateJSDocTemplateTag:F1,createJSDocTypedefTag:Yd,updateJSDocTypedefTag:Wn,createJSDocParameterTag:tv,updateJSDocParameterTag:nv,createJSDocPropertyTag:ul,updateJSDocPropertyTag:fd,createJSDocCallbackTag:Rp,updateJSDocCallbackTag:U2,createJSDocOverloadTag:rv,updateJSDocOverloadTag:dg,createJSDocAugmentsTag:kh,updateJSDocAugmentsTag:ak,createJSDocImplementsTag:pd,updateJSDocImplementsTag:Su,createJSDocSeeTag:p0,updateJSDocSeeTag:mg,createJSDocNameReference:HT,updateJSDocNameReference:gg,createJSDocMemberName:d0,updateJSDocMemberName:W2,createJSDocLink:GT,updateJSDocLink:hg,createJSDocLinkCode:dp,updateJSDocLinkCode:Rc,createJSDocLinkPlain:gl,updateJSDocLinkPlain:L1,get createJSDocTypeTag(){return N(351)},get updateJSDocTypeTag(){return D(351)},get createJSDocReturnTag(){return N(349)},get updateJSDocReturnTag(){return D(349)},get createJSDocThisTag(){return N(350)},get updateJSDocThisTag(){return D(350)},get createJSDocAuthorTag(){return k(337)},get updateJSDocAuthorTag(){return C(337)},get createJSDocClassTag(){return k(339)},get updateJSDocClassTag(){return C(339)},get createJSDocPublicTag(){return k(340)},get updateJSDocPublicTag(){return C(340)},get createJSDocPrivateTag(){return k(341)},get updateJSDocPrivateTag(){return C(341)},get createJSDocProtectedTag(){return k(342)},get updateJSDocProtectedTag(){return C(342)},get createJSDocReadonlyTag(){return k(343)},get updateJSDocReadonlyTag(){return C(343)},get createJSDocOverrideTag(){return k(344)},get updateJSDocOverrideTag(){return C(344)},get createJSDocDeprecatedTag(){return k(338)},get updateJSDocDeprecatedTag(){return C(338)},get createJSDocThrowsTag(){return N(356)},get updateJSDocThrowsTag(){return D(356)},get createJSDocSatisfiesTag(){return N(357)},get updateJSDocSatisfiesTag(){return D(357)},createJSDocEnumTag:fl,updateJSDocEnumTag:m0,createJSDocUnknownTag:vg,updateJSDocUnknownTag:q2,createJSDocText:Im,updateJSDocText:H2,createJSDocComment:Xo,updateJSDocComment:bg,createJsxElement:$T,updateJsxElement:R1,createJsxSelfClosingElement:ok,updateJsxSelfClosingElement:r_,createJsxOpeningElement:g0,updateJsxOpeningElement:Ch,createJsxClosingElement:Tg,updateJsxClosingElement:lf,createJsxFragment:G2,createJsxText:B1,updateJsxText:sv,createJsxOpeningFragment:av,createJsxJsxClosingFragment:Sf,updateJsxFragment:iv,createJsxAttribute:XT,updateJsxAttribute:$2,createJsxAttributes:QT,updateJsxAttributes:ov,createJsxSpreadAttribute:zu,updateJsxSpreadAttribute:Zd,createJsxExpression:j1,updateJsxExpression:ck,createJsxNamespacedName:Ra,updateJsxNamespacedName:hr,createCaseClause:ku,updateCaseClause:$_,createDefaultClause:J1,updateDefaultClause:X2,createHeritageClause:Q2,updateHeritageClause:YT,createCatchClause:Eh,updateCatchClause:Vu,createPropertyAssignment:X_,updatePropertyAssignment:cv,createShorthandPropertyAssignment:_f,updateShorthandPropertyAssignment:xg,createSpreadAssignment:Vo,updateSpreadAssignment:jf,createEnumMember:lk,updateEnumMember:Jf,createSourceFile:Y2,updateSourceFile:_k,createRedirectedSourceFile:wh,createBundle:z1,updateBundle:cu,createUnparsedSource:Fm,createUnparsedPrologue:uk,createUnparsedPrepend:eb,createUnparsedTextLike:tb,createUnparsedSyntheticReference:S,createInputFiles:ne,createSyntheticExpression:et,createSyntaxList:Wt,createNotEmittedStatement:gr,createPartiallyEmittedExpression:yi,updatePartiallyEmittedExpression:$r,createCommaListExpression:Js,updateCommaListExpression:ni,createSyntheticReferenceExpression:Rl,updateSyntheticReferenceExpression:kn,cloneNode:nb,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:fk,createImmediatelyInvokedArrowFunction:kg,createVoidZero:h0,createExportDefault:V1,createExternalModuleExport:U1,createTypeCheck:_v,createIsNotTypeCheck:H4,createMethodCall:W1,createGlobalMethodCall:zf,createFunctionBindCall:uv,createFunctionCallCall:dd,createFunctionApplyCall:G4,createArraySliceCall:pk,createArrayConcatCall:GN,createObjectDefinePropertyCall:Kd,createObjectGetOwnPropertyDescriptorCall:KT,createReflectGetCall:$N,createReflectSetCall:Wc,createPropertyDescriptor:NE,createCallBinding:Dt,createAssignmentTargetWrapper:tn,inlineExpressions:Ir,getInternalName:ri,getLocalName:_i,getExportName:as,getDeclarationName:ao,getNamespaceMemberName:qa,getExternalModuleOrNamespaceExportName:Za,restoreOuterExpressions:de,restoreEnclosingLabel:Le,createUseStrictPrologue:em,copyPrologue:R_,copyStandardPrologue:Bp,copyCustomPrologue:y0,ensureUseStrict:v0,liftToBlock:pv,mergeLexicalEnvironment:PE,updateModifiers:dk,updateModifierLike:mk};return mn(LH,v=>v(M)),M;function V(v,w){if(v===void 0||v===Ve)v=[];else if(Hv(v)){if(w===void 0||v.hasTrailingComma===w)return v.transformFlags===void 0&&nfe(v),E.attachNodeArrayDebugInfo(v),v;const Ie=v.slice();return Ie.pos=v.pos,Ie.end=v.end,Ie.hasTrailingComma=w,Ie.transformFlags=v.transformFlags,E.attachNodeArrayDebugInfo(Ie),Ie}const L=v.length,ie=L>=1&&L<=4?v.slice():v;return ie.pos=-1,ie.end=-1,ie.hasTrailingComma=!!w,ie.transformFlags=0,nfe(ie),E.attachNodeArrayDebugInfo(ie),ie}function U(v){return t.createBaseNode(v)}function Y(v){const w=U(v);return w.symbol=void 0,w.localSymbol=void 0,w}function j(v,w){return v!==w&&(v.typeArguments=w.typeArguments),r(v,w)}function ee(v,w=0){const L=Y(9);return L.text=typeof v=="number"?v+"":v,L.numericLiteralFlags=w,w&384&&(L.transformFlags|=1024),L}function R(v){const w=ct(10);return w.text=typeof v=="string"?v:l2(v)+"n",w.transformFlags|=32,w}function Z(v,w){const L=Y(11);return L.text=v,L.singleQuote=w,L}function oe(v,w,L){const ie=Z(v,w);return ie.hasExtendedUnicodeEscape=L,L&&(ie.transformFlags|=1024),ie}function _e(v){const w=Z(kp(v),void 0);return w.textSourceNode=v,w}function X(v){const w=ct(14);return w.text=v,w}function H(v,w){switch(v){case 9:return ee(w,0);case 10:return R(w);case 11:return oe(w,void 0);case 12:return B1(w,!1);case 13:return B1(w,!0);case 14:return X(w);case 15:return y_(v,w,void 0,0)}}function Q(v){const w=t.createBaseIdentifierNode(80);return w.escapedText=v,w.jsDoc=void 0,w.flowNode=void 0,w.symbol=void 0,w}function re(v,w,L,ie){const Ie=Q(qo(v));return YD(Ie,{flags:w,id:GD,prefix:L,suffix:ie}),GD++,Ie}function ue(v,w,L){w===void 0&&v&&(w=Uv(v)),w===80&&(w=void 0);const ie=Q(qo(v));return L&&(ie.flags|=256),ie.escapedText==="await"&&(ie.transformFlags|=67108864),ie.flags&256&&(ie.transformFlags|=1024),ie}function fe(v,w,L,ie){let Ie=1;w&&(Ie|=8);const Ft=re("",Ie,L,ie);return v&&v(Ft),Ft}function G(v){let w=2;return v&&(w|=8),re("",w,void 0,void 0)}function Ne(v,w=0,L,ie){return E.assert(!(w&7),"Argument out of range: flags"),E.assert((w&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),re(v,3|w,L,ie)}function De(v,w=0,L,ie){E.assert(!(w&7),"Argument out of range: flags");const Ie=v?$m(v)?Oy(!1,L,v,ie,lr):`generated@${Ba(v)}`:"";(L||ie)&&(w|=16);const Ft=re(Ie,4|w,L,ie);return Ft.original=v,Ft}function Xe(v){const w=t.createBasePrivateIdentifierNode(81);return w.escapedText=v,w.transformFlags|=16777216,w}function ve(v){return ts(v,"#")||E.fail("First character of private identifier must be #: "+v),Xe(qo(v))}function be(v,w,L,ie){const Ie=Xe(qo(v));return YD(Ie,{flags:w,id:GD,prefix:L,suffix:ie}),GD++,Ie}function xe(v,w,L){v&&!ts(v,"#")&&E.fail("First character of private identifier must be #: "+v);const ie=8|(v?3:1);return be(v!=null?v:"",ie,w,L)}function rt(v,w,L){const ie=$m(v)?Oy(!0,w,v,L,lr):`#generated@${Ba(v)}`,Ft=be(ie,4|(w||L?16:0),w,L);return Ft.original=v,Ft}function ct(v){return t.createBaseTokenNode(v)}function pe(v){E.assert(v>=0&&v<=165,"Invalid token"),E.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),E.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),E.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const w=ct(v);let L=0;switch(v){case 134:L=384;break;case 160:L=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:L=1;break;case 108:L=134218752,w.flowNode=void 0;break;case 126:L=1024;break;case 129:L=16777216;break;case 110:L=16384,w.flowNode=void 0;break}return L&&(w.transformFlags|=L),w}function Pe(){return pe(108)}function Ge(){return pe(110)}function tt(){return pe(106)}function mt(){return pe(112)}function Je(){return pe(97)}function at(v){return pe(v)}function zt(v){const w=[];return v&1&&w.push(at(95)),v&2&&w.push(at(138)),v&1024&&w.push(at(90)),v&2048&&w.push(at(87)),v&4&&w.push(at(125)),v&8&&w.push(at(123)),v&16&&w.push(at(124)),v&256&&w.push(at(128)),v&32&&w.push(at(126)),v&16384&&w.push(at(164)),v&64&&w.push(at(148)),v&128&&w.push(at(129)),v&512&&w.push(at(134)),v&32768&&w.push(at(103)),v&65536&&w.push(at(147)),w.length?w:void 0}function It(v,w){const L=U(166);return L.left=v,L.right=To(w),L.transformFlags|=tr(L.left)|H3(L.right),L.flowNode=void 0,L}function bt(v,w,L){return v.left!==w||v.right!==L?r(It(w,L),v):v}function _r(v){const w=U(167);return w.expression=i().parenthesizeExpressionOfComputedPropertyName(v),w.transformFlags|=tr(w.expression)|1024|131072,w}function Tn(v,w){return v.expression!==w?r(_r(w),v):v}function jt(v,w,L,ie){const Ie=Y(168);return Ie.modifiers=Sa(v),Ie.name=To(w),Ie.constraint=L,Ie.default=ie,Ie.transformFlags=1,Ie.expression=void 0,Ie.jsDoc=void 0,Ie}function Kn(v,w,L,ie,Ie){return v.modifiers!==w||v.name!==L||v.constraint!==ie||v.default!==Ie?r(jt(w,L,ie,Ie),v):v}function br(v,w,L,ie,Ie,Ft){var ki,eo;const Yn=Y(169);return Yn.modifiers=Sa(v),Yn.dotDotDotToken=w,Yn.name=To(L),Yn.questionToken=ie,Yn.type=Ie,Yn.initializer=ex(Ft),a2(Yn.name)?Yn.transformFlags=1:Yn.transformFlags=ga(Yn.modifiers)|tr(Yn.dotDotDotToken)|eh(Yn.name)|tr(Yn.questionToken)|tr(Yn.initializer)|(((ki=Yn.questionToken)!=null?ki:Yn.type)?1:0)|(((eo=Yn.dotDotDotToken)!=null?eo:Yn.initializer)?1024:0)|(Fd(Yn.modifiers)&16476?8192:0),Yn.jsDoc=void 0,Yn}function fi(v,w,L,ie,Ie,Ft,Yn){return v.modifiers!==w||v.dotDotDotToken!==L||v.name!==ie||v.questionToken!==Ie||v.type!==Ft||v.initializer!==Yn?r(br(w,L,ie,Ie,Ft,Yn),v):v}function Si(v){const w=U(170);return w.expression=i().parenthesizeLeftSideOfAccess(v,!1),w.transformFlags|=tr(w.expression)|1|8192|33554432,w}function Nr(v,w){return v.expression!==w?r(Si(w),v):v}function pt(v,w,L,ie){const Ie=Y(171);return Ie.modifiers=Sa(v),Ie.name=To(w),Ie.type=ie,Ie.questionToken=L,Ie.transformFlags=1,Ie.initializer=void 0,Ie.jsDoc=void 0,Ie}function ur(v,w,L,ie,Ie){return v.modifiers!==w||v.name!==L||v.questionToken!==ie||v.type!==Ie?yn(pt(w,L,ie,Ie),v):v}function yn(v,w){return v!==w&&(v.initializer=w.initializer),r(v,w)}function Ct(v,w,L,ie,Ie){const Ft=Y(172);Ft.modifiers=Sa(v),Ft.name=To(w),Ft.questionToken=L&&u1(L)?L:void 0,Ft.exclamationToken=L&&nA(L)?L:void 0,Ft.type=ie,Ft.initializer=ex(Ie);const Yn=Ft.flags&33554432||Fd(Ft.modifiers)&2;return Ft.transformFlags=ga(Ft.modifiers)|eh(Ft.name)|tr(Ft.initializer)|(Yn||Ft.questionToken||Ft.exclamationToken||Ft.type?1:0)|(Ga(Ft.name)||Fd(Ft.modifiers)&32&&Ft.initializer?8192:0)|16777216,Ft.jsDoc=void 0,Ft}function cn(v,w,L,ie,Ie,Ft){return v.modifiers!==w||v.name!==L||v.questionToken!==(ie!==void 0&&u1(ie)?ie:void 0)||v.exclamationToken!==(ie!==void 0&&nA(ie)?ie:void 0)||v.type!==Ie||v.initializer!==Ft?r(Ct(w,L,ie,Ie,Ft),v):v}function In(v,w,L,ie,Ie,Ft){const Yn=Y(173);return Yn.modifiers=Sa(v),Yn.name=To(w),Yn.questionToken=L,Yn.typeParameters=Sa(ie),Yn.parameters=Sa(Ie),Yn.type=Ft,Yn.transformFlags=1,Yn.jsDoc=void 0,Yn.locals=void 0,Yn.nextContainer=void 0,Yn.typeArguments=void 0,Yn}function xr(v,w,L,ie,Ie,Ft,Yn){return v.modifiers!==w||v.name!==L||v.questionToken!==ie||v.typeParameters!==Ie||v.parameters!==Ft||v.type!==Yn?j(In(w,L,ie,Ie,Ft,Yn),v):v}function wi(v,w,L,ie,Ie,Ft,Yn,ki){const eo=Y(174);if(eo.modifiers=Sa(v),eo.asteriskToken=w,eo.name=To(L),eo.questionToken=ie,eo.exclamationToken=void 0,eo.typeParameters=Sa(Ie),eo.parameters=V(Ft),eo.type=Yn,eo.body=ki,!eo.body)eo.transformFlags=1;else{const Jp=Fd(eo.modifiers)&512,b0=!!eo.asteriskToken,gp=Jp&&b0;eo.transformFlags=ga(eo.modifiers)|tr(eo.asteriskToken)|eh(eo.name)|tr(eo.questionToken)|ga(eo.typeParameters)|ga(eo.parameters)|tr(eo.type)|tr(eo.body)&-67108865|(gp?128:Jp?256:b0?2048:0)|(eo.questionToken||eo.typeParameters||eo.type?1:0)|1024}return eo.typeArguments=void 0,eo.jsDoc=void 0,eo.locals=void 0,eo.nextContainer=void 0,eo.flowNode=void 0,eo.endFlowNode=void 0,eo.returnFlowNode=void 0,eo}function Zt(v,w,L,ie,Ie,Ft,Yn,ki,eo){return v.modifiers!==w||v.asteriskToken!==L||v.name!==ie||v.questionToken!==Ie||v.typeParameters!==Ft||v.parameters!==Yn||v.type!==ki||v.body!==eo?Gt(wi(w,L,ie,Ie,Ft,Yn,ki,eo),v):v}function Gt(v,w){return v!==w&&(v.exclamationToken=w.exclamationToken),r(v,w)}function xn(v){const w=Y(175);return w.body=v,w.transformFlags=tr(v)|16777216,w.modifiers=void 0,w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w.endFlowNode=void 0,w.returnFlowNode=void 0,w}function Gr(v,w){return v.body!==w?Er(xn(w),v):v}function Er(v,w){return v!==w&&(v.modifiers=w.modifiers),r(v,w)}function ze(v,w,L){const ie=Y(176);return ie.modifiers=Sa(v),ie.parameters=V(w),ie.body=L,ie.transformFlags=ga(ie.modifiers)|ga(ie.parameters)|tr(ie.body)&-67108865|1024,ie.typeParameters=void 0,ie.type=void 0,ie.typeArguments=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.returnFlowNode=void 0,ie}function ut(v,w,L,ie){return v.modifiers!==w||v.parameters!==L||v.body!==ie?kt(ze(w,L,ie),v):v}function kt(v,w){return v!==w&&(v.typeParameters=w.typeParameters,v.type=w.type),j(v,w)}function st(v,w,L,ie,Ie){const Ft=Y(177);return Ft.modifiers=Sa(v),Ft.name=To(w),Ft.parameters=V(L),Ft.type=ie,Ft.body=Ie,Ft.body?Ft.transformFlags=ga(Ft.modifiers)|eh(Ft.name)|ga(Ft.parameters)|tr(Ft.type)|tr(Ft.body)&-67108865|(Ft.type?1:0):Ft.transformFlags=1,Ft.typeArguments=void 0,Ft.typeParameters=void 0,Ft.jsDoc=void 0,Ft.locals=void 0,Ft.nextContainer=void 0,Ft.flowNode=void 0,Ft.endFlowNode=void 0,Ft.returnFlowNode=void 0,Ft}function Ut(v,w,L,ie,Ie,Ft){return v.modifiers!==w||v.name!==L||v.parameters!==ie||v.type!==Ie||v.body!==Ft?ae(st(w,L,ie,Ie,Ft),v):v}function ae(v,w){return v!==w&&(v.typeParameters=w.typeParameters),j(v,w)}function Me(v,w,L,ie){const Ie=Y(178);return Ie.modifiers=Sa(v),Ie.name=To(w),Ie.parameters=V(L),Ie.body=ie,Ie.body?Ie.transformFlags=ga(Ie.modifiers)|eh(Ie.name)|ga(Ie.parameters)|tr(Ie.body)&-67108865|(Ie.type?1:0):Ie.transformFlags=1,Ie.typeArguments=void 0,Ie.typeParameters=void 0,Ie.type=void 0,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.flowNode=void 0,Ie.endFlowNode=void 0,Ie.returnFlowNode=void 0,Ie}function ke(v,w,L,ie,Ie){return v.modifiers!==w||v.name!==L||v.parameters!==ie||v.body!==Ie?ft(Me(w,L,ie,Ie),v):v}function ft(v,w){return v!==w&&(v.typeParameters=w.typeParameters,v.type=w.type),j(v,w)}function K(v,w,L){const ie=Y(179);return ie.typeParameters=Sa(v),ie.parameters=Sa(w),ie.type=L,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function $e(v,w,L,ie){return v.typeParameters!==w||v.parameters!==L||v.type!==ie?j(K(w,L,ie),v):v}function Ae(v,w,L){const ie=Y(180);return ie.typeParameters=Sa(v),ie.parameters=Sa(w),ie.type=L,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function yt(v,w,L,ie){return v.typeParameters!==w||v.parameters!==L||v.type!==ie?j(Ae(w,L,ie),v):v}function _t(v,w,L){const ie=Y(181);return ie.modifiers=Sa(v),ie.parameters=Sa(w),ie.type=L,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function Jt(v,w,L,ie){return v.parameters!==L||v.type!==ie||v.modifiers!==w?j(_t(w,L,ie),v):v}function Ln(v,w){const L=U(204);return L.type=v,L.literal=w,L.transformFlags=1,L}function Pt(v,w,L){return v.type!==w||v.literal!==L?r(Ln(w,L),v):v}function hi(v){return pe(v)}function z(v,w,L){const ie=U(182);return ie.assertsModifier=v,ie.parameterName=To(w),ie.type=L,ie.transformFlags=1,ie}function B(v,w,L,ie){return v.assertsModifier!==w||v.parameterName!==L||v.type!==ie?r(z(w,L,ie),v):v}function le(v,w){const L=U(183);return L.typeName=To(v),L.typeArguments=w&&i().parenthesizeTypeArguments(V(w)),L.transformFlags=1,L}function W(v,w,L){return v.typeName!==w||v.typeArguments!==L?r(le(w,L),v):v}function ge(v,w,L){const ie=Y(184);return ie.typeParameters=Sa(v),ie.parameters=Sa(w),ie.type=L,ie.transformFlags=1,ie.modifiers=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function F(v,w,L,ie){return v.typeParameters!==w||v.parameters!==L||v.type!==ie?ye(ge(w,L,ie),v):v}function ye(v,w){return v!==w&&(v.modifiers=w.modifiers),j(v,w)}function Oe(...v){return v.length===4?We(...v):v.length===3?Tt(...v):E.fail("Incorrect number of arguments specified.")}function We(v,w,L,ie){const Ie=Y(185);return Ie.modifiers=Sa(v),Ie.typeParameters=Sa(w),Ie.parameters=Sa(L),Ie.type=ie,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function Tt(v,w,L){return We(void 0,v,w,L)}function Ot(...v){return v.length===5?on(...v):v.length===4?Sn(...v):E.fail("Incorrect number of arguments specified.")}function on(v,w,L,ie,Ie){return v.modifiers!==w||v.typeParameters!==L||v.parameters!==ie||v.type!==Ie?j(Oe(w,L,ie,Ie),v):v}function Sn(v,w,L,ie){return on(v,v.modifiers,w,L,ie)}function ir(v,w){const L=U(186);return L.exprName=v,L.typeArguments=w&&i().parenthesizeTypeArguments(w),L.transformFlags=1,L}function ar(v,w,L){return v.exprName!==w||v.typeArguments!==L?r(ir(w,L),v):v}function jn(v){const w=Y(187);return w.members=V(v),w.transformFlags=1,w}function ai(v,w){return v.members!==w?r(jn(w),v):v}function ea(v){const w=U(188);return w.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),w.transformFlags=1,w}function ps(v,w){return v.elementType!==w?r(ea(w),v):v}function Ws(v){const w=U(189);return w.elements=V(i().parenthesizeElementTypesOfTupleType(v)),w.transformFlags=1,w}function Qr(v,w){return v.elements!==w?r(Ws(w),v):v}function cs(v,w,L,ie){const Ie=Y(202);return Ie.dotDotDotToken=v,Ie.name=w,Ie.questionToken=L,Ie.type=ie,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie}function Fs(v,w,L,ie,Ie){return v.dotDotDotToken!==w||v.name!==L||v.questionToken!==ie||v.type!==Ie?r(cs(w,L,ie,Ie),v):v}function pi(v){const w=U(190);return w.type=i().parenthesizeTypeOfOptionalType(v),w.transformFlags=1,w}function ln(v,w){return v.type!==w?r(pi(w),v):v}function tc(v){const w=U(191);return w.type=v,w.transformFlags=1,w}function Ui(v,w){return v.type!==w?r(tc(w),v):v}function Cs(v,w,L){const ie=U(v);return ie.types=M.createNodeArray(L(w)),ie.transformFlags=1,ie}function Ea(v,w,L){return v.types!==w?r(Cs(v.kind,w,L),v):v}function ro(v){return Cs(192,v,i().parenthesizeConstituentTypesOfUnionType)}function Ja(v,w){return Ea(v,w,i().parenthesizeConstituentTypesOfUnionType)}function Ic(v){return Cs(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function ls(v,w){return Ea(v,w,i().parenthesizeConstituentTypesOfIntersectionType)}function Oi(v,w,L,ie){const Ie=U(194);return Ie.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Ie.extendsType=i().parenthesizeExtendsTypeOfConditionalType(w),Ie.trueType=L,Ie.falseType=ie,Ie.transformFlags=1,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function Vc(v,w,L,ie,Ie){return v.checkType!==w||v.extendsType!==L||v.trueType!==ie||v.falseType!==Ie?r(Oi(w,L,ie,Ie),v):v}function Jo(v){const w=U(195);return w.typeParameter=v,w.transformFlags=1,w}function L_(v,w){return v.typeParameter!==w?r(Jo(w),v):v}function _l(v,w){const L=U(203);return L.head=v,L.templateSpans=V(w),L.transformFlags=1,L}function Rf(v,w,L){return v.head!==w||v.templateSpans!==L?r(_l(w,L),v):v}function Ls(v,w,L,ie,Ie=!1){const Ft=U(205);return Ft.argument=v,Ft.assertions=w,Ft.qualifier=L,Ft.typeArguments=ie&&i().parenthesizeTypeArguments(ie),Ft.isTypeOf=Ie,Ft.transformFlags=1,Ft}function mo(v,w,L,ie,Ie,Ft=v.isTypeOf){return v.argument!==w||v.assertions!==L||v.qualifier!==ie||v.typeArguments!==Ie||v.isTypeOf!==Ft?r(Ls(w,L,ie,Ie,Ft),v):v}function ja(v){const w=U(196);return w.type=v,w.transformFlags=1,w}function La(v,w){return v.type!==w?r(ja(w),v):v}function qt(){const v=U(197);return v.transformFlags=1,v}function mc(v,w){const L=U(198);return L.operator=v,L.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(w):i().parenthesizeOperandOfTypeOperator(w),L.transformFlags=1,L}function h_(v,w){return v.type!==w?r(mc(v.operator,w),v):v}function M_(v,w){const L=U(199);return L.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),L.indexType=w,L.transformFlags=1,L}function W_(v,w,L){return v.objectType!==w||v.indexType!==L?r(M_(w,L),v):v}function bo(v,w,L,ie,Ie,Ft){const Yn=Y(200);return Yn.readonlyToken=v,Yn.typeParameter=w,Yn.nameType=L,Yn.questionToken=ie,Yn.type=Ie,Yn.members=Ft&&V(Ft),Yn.transformFlags=1,Yn.locals=void 0,Yn.nextContainer=void 0,Yn}function Go(v,w,L,ie,Ie,Ft,Yn){return v.readonlyToken!==w||v.typeParameter!==L||v.nameType!==ie||v.questionToken!==Ie||v.type!==Ft||v.members!==Yn?r(bo(w,L,ie,Ie,Ft,Yn),v):v}function A(v){const w=U(201);return w.literal=v,w.transformFlags=1,w}function Ce(v,w){return v.literal!==w?r(A(w),v):v}function Re(v){const w=U(206);return w.elements=V(v),w.transformFlags|=ga(w.elements)|1024|524288,w.transformFlags&32768&&(w.transformFlags|=65664),w}function xt(v,w){return v.elements!==w?r(Re(w),v):v}function vn(v){const w=U(207);return w.elements=V(v),w.transformFlags|=ga(w.elements)|1024|524288,w}function Pr(v,w){return v.elements!==w?r(vn(w),v):v}function wn(v,w,L,ie){const Ie=Y(208);return Ie.dotDotDotToken=v,Ie.propertyName=To(w),Ie.name=To(L),Ie.initializer=ex(ie),Ie.transformFlags|=tr(Ie.dotDotDotToken)|eh(Ie.propertyName)|eh(Ie.name)|tr(Ie.initializer)|(Ie.dotDotDotToken?32768:0)|1024,Ie.flowNode=void 0,Ie}function mr(v,w,L,ie,Ie){return v.propertyName!==L||v.dotDotDotToken!==w||v.name!==ie||v.initializer!==Ie?r(wn(w,L,ie,Ie),v):v}function oi(v,w){const L=U(209),ie=v&&Bo(v),Ie=V(v,ie&&pl(ie)?!0:void 0);return L.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Ie),L.multiLine=w,L.transformFlags|=ga(L.elements),L}function Ur(v,w){return v.elements!==w?r(oi(w,v.multiLine),v):v}function Ma(v,w){const L=Y(210);return L.properties=V(v),L.multiLine=w,L.transformFlags|=ga(L.properties),L.jsDoc=void 0,L}function io(v,w){return v.properties!==w?r(Ma(w,v.multiLine),v):v}function ac(v,w,L){const ie=Y(211);return ie.expression=v,ie.questionDotToken=w,ie.name=L,ie.transformFlags=tr(ie.expression)|tr(ie.questionDotToken)|(we(ie.name)?H3(ie.name):tr(ie.name)|536870912),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function Oc(v,w){const L=ac(i().parenthesizeLeftSideOfAccess(v,!1),void 0,To(w));return Z3(v)&&(L.transformFlags|=384),L}function gc(v,w,L){return e9(v)?nc(v,w,v.questionDotToken,Ms(L,we)):v.expression!==w||v.name!==L?r(Oc(w,L),v):v}function Ka(v,w,L){const ie=ac(i().parenthesizeLeftSideOfAccess(v,!0),w,To(L));return ie.flags|=64,ie.transformFlags|=32,ie}function nc(v,w,L,ie){return E.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==w||v.questionDotToken!==L||v.name!==ie?r(Ka(w,L,ie),v):v}function q_(v,w,L){const ie=Y(212);return ie.expression=v,ie.questionDotToken=w,ie.argumentExpression=L,ie.transformFlags|=tr(ie.expression)|tr(ie.questionDotToken)|tr(ie.argumentExpression),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function Uc(v,w){const L=q_(i().parenthesizeLeftSideOfAccess(v,!1),void 0,jp(w));return Z3(v)&&(L.transformFlags|=384),L}function zo(v,w,L){return KU(v)?he(v,w,v.questionDotToken,L):v.expression!==w||v.argumentExpression!==L?r(Uc(w,L),v):v}function bu(v,w,L){const ie=q_(i().parenthesizeLeftSideOfAccess(v,!0),w,jp(L));return ie.flags|=64,ie.transformFlags|=32,ie}function he(v,w,L,ie){return E.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==w||v.questionDotToken!==L||v.argumentExpression!==ie?r(bu(w,L,ie),v):v}function vt(v,w,L,ie){const Ie=Y(213);return Ie.expression=v,Ie.questionDotToken=w,Ie.typeArguments=L,Ie.arguments=ie,Ie.transformFlags|=tr(Ie.expression)|tr(Ie.questionDotToken)|ga(Ie.typeArguments)|ga(Ie.arguments),Ie.typeArguments&&(Ie.transformFlags|=1),nu(Ie.expression)&&(Ie.transformFlags|=16384),Ie}function bn(v,w,L){const ie=vt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Sa(w),i().parenthesizeExpressionsOfCommaDelimitedList(V(L)));return K3(ie.expression)&&(ie.transformFlags|=8388608),ie}function Bi(v,w,L,ie){return Eb(v)?Ua(v,w,v.questionDotToken,L,ie):v.expression!==w||v.typeArguments!==L||v.arguments!==ie?r(bn(w,L,ie),v):v}function Es(v,w,L,ie){const Ie=vt(i().parenthesizeLeftSideOfAccess(v,!0),w,Sa(L),i().parenthesizeExpressionsOfCommaDelimitedList(V(ie)));return Ie.flags|=64,Ie.transformFlags|=32,Ie}function Ua(v,w,L,ie,Ie){return E.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==w||v.questionDotToken!==L||v.typeArguments!==ie||v.arguments!==Ie?r(Es(w,L,ie,Ie),v):v}function oc(v,w,L){const ie=Y(214);return ie.expression=i().parenthesizeExpressionOfNew(v),ie.typeArguments=Sa(w),ie.arguments=L?i().parenthesizeExpressionsOfCommaDelimitedList(L):void 0,ie.transformFlags|=tr(ie.expression)|ga(ie.typeArguments)|ga(ie.arguments)|32,ie.typeArguments&&(ie.transformFlags|=1),ie}function se(v,w,L,ie){return v.expression!==w||v.typeArguments!==L||v.arguments!==ie?r(oc(w,L,ie),v):v}function qe(v,w,L){const ie=U(215);return ie.tag=i().parenthesizeLeftSideOfAccess(v,!1),ie.typeArguments=Sa(w),ie.template=L,ie.transformFlags|=tr(ie.tag)|ga(ie.typeArguments)|tr(ie.template)|1024,ie.typeArguments&&(ie.transformFlags|=1),gq(ie.template)&&(ie.transformFlags|=128),ie}function gt(v,w,L,ie){return v.tag!==w||v.typeArguments!==L||v.template!==ie?r(qe(w,L,ie),v):v}function Et(v,w){const L=U(216);return L.expression=i().parenthesizeOperandOfPrefixUnary(w),L.type=v,L.transformFlags|=tr(L.expression)|tr(L.type)|1,L}function Qt(v,w,L){return v.type!==w||v.expression!==L?r(Et(w,L),v):v}function Fn(v){const w=U(217);return w.expression=v,w.transformFlags=tr(w.expression),w.jsDoc=void 0,w}function Cr(v,w){return v.expression!==w?r(Fn(w),v):v}function qr(v,w,L,ie,Ie,Ft,Yn){const ki=Y(218);ki.modifiers=Sa(v),ki.asteriskToken=w,ki.name=To(L),ki.typeParameters=Sa(ie),ki.parameters=V(Ie),ki.type=Ft,ki.body=Yn;const eo=Fd(ki.modifiers)&512,Jp=!!ki.asteriskToken,b0=eo&&Jp;return ki.transformFlags=ga(ki.modifiers)|tr(ki.asteriskToken)|eh(ki.name)|ga(ki.typeParameters)|ga(ki.parameters)|tr(ki.type)|tr(ki.body)&-67108865|(b0?128:eo?256:Jp?2048:0)|(ki.typeParameters||ki.type?1:0)|4194304,ki.typeArguments=void 0,ki.jsDoc=void 0,ki.locals=void 0,ki.nextContainer=void 0,ki.flowNode=void 0,ki.endFlowNode=void 0,ki.returnFlowNode=void 0,ki}function li(v,w,L,ie,Ie,Ft,Yn,ki){return v.name!==ie||v.modifiers!==w||v.asteriskToken!==L||v.typeParameters!==Ie||v.parameters!==Ft||v.type!==Yn||v.body!==ki?j(qr(w,L,ie,Ie,Ft,Yn,ki),v):v}function ds(v,w,L,ie,Ie,Ft){const Yn=Y(219);Yn.modifiers=Sa(v),Yn.typeParameters=Sa(w),Yn.parameters=V(L),Yn.type=ie,Yn.equalsGreaterThanToken=Ie!=null?Ie:pe(39),Yn.body=i().parenthesizeConciseBodyOfArrowFunction(Ft);const ki=Fd(Yn.modifiers)&512;return Yn.transformFlags=ga(Yn.modifiers)|ga(Yn.typeParameters)|ga(Yn.parameters)|tr(Yn.type)|tr(Yn.equalsGreaterThanToken)|tr(Yn.body)&-67108865|(Yn.typeParameters||Yn.type?1:0)|(ki?16640:0)|1024,Yn.typeArguments=void 0,Yn.jsDoc=void 0,Yn.locals=void 0,Yn.nextContainer=void 0,Yn.flowNode=void 0,Yn.endFlowNode=void 0,Yn.returnFlowNode=void 0,Yn}function va(v,w,L,ie,Ie,Ft,Yn){return v.modifiers!==w||v.typeParameters!==L||v.parameters!==ie||v.type!==Ie||v.equalsGreaterThanToken!==Ft||v.body!==Yn?j(ds(w,L,ie,Ie,Ft,Yn),v):v}function Fo(v){const w=U(220);return w.expression=i().parenthesizeOperandOfPrefixUnary(v),w.transformFlags|=tr(w.expression),w}function Ro(v,w){return v.expression!==w?r(Fo(w),v):v}function Zc(v){const w=U(221);return w.expression=i().parenthesizeOperandOfPrefixUnary(v),w.transformFlags|=tr(w.expression),w}function Fc(v,w){return v.expression!==w?r(Zc(w),v):v}function il(v){const w=U(222);return w.expression=i().parenthesizeOperandOfPrefixUnary(v),w.transformFlags|=tr(w.expression),w}function Ml(v,w){return v.expression!==w?r(il(w),v):v}function sl(v){const w=U(223);return w.expression=i().parenthesizeOperandOfPrefixUnary(v),w.transformFlags|=tr(w.expression)|256|128|2097152,w}function ju(v,w){return v.expression!==w?r(sl(w),v):v}function cd(v,w){const L=U(224);return L.operator=v,L.operand=i().parenthesizeOperandOfPrefixUnary(w),L.transformFlags|=tr(L.operand),(v===46||v===47)&&we(L.operand)&&!jo(L.operand)&&!Zg(L.operand)&&(L.transformFlags|=268435456),L}function E1(v,w){return v.operand!==w?r(cd(v.operator,w),v):v}function qd(v,w){const L=U(225);return L.operator=w,L.operand=i().parenthesizeOperandOfPostfixUnary(v),L.transformFlags|=tr(L.operand),we(L.operand)&&!jo(L.operand)&&!Zg(L.operand)&&(L.transformFlags|=268435456),L}function J(v,w){return v.operand!==w?r(qd(w,v.operator),v):v}function Be(v,w,L){const ie=Y(226),Ie=kf(w),Ft=Ie.kind;return ie.left=i().parenthesizeLeftSideOfBinary(Ft,v),ie.operatorToken=Ie,ie.right=i().parenthesizeRightSideOfBinary(Ft,ie.left,L),ie.transformFlags|=tr(ie.left)|tr(ie.operatorToken)|tr(ie.right),Ft===61?ie.transformFlags|=32:Ft===64?ha(ie.left)?ie.transformFlags|=5248|At(ie.left):u_(ie.left)&&(ie.transformFlags|=5120|At(ie.left)):Ft===43||Ft===68?ie.transformFlags|=512:b3(Ft)&&(ie.transformFlags|=16),Ft===103&&Ei(ie.left)&&(ie.transformFlags|=536870912),ie.jsDoc=void 0,ie}function At(v){return bA(v)?65536:0}function Jn(v,w,L,ie){return v.left!==w||v.operatorToken!==L||v.right!==ie?r(Be(w,L,ie),v):v}function vs(v,w,L,ie,Ie){const Ft=U(227);return Ft.condition=i().parenthesizeConditionOfConditionalExpression(v),Ft.questionToken=w!=null?w:pe(58),Ft.whenTrue=i().parenthesizeBranchOfConditionalExpression(L),Ft.colonToken=ie!=null?ie:pe(59),Ft.whenFalse=i().parenthesizeBranchOfConditionalExpression(Ie),Ft.transformFlags|=tr(Ft.condition)|tr(Ft.questionToken)|tr(Ft.whenTrue)|tr(Ft.colonToken)|tr(Ft.whenFalse),Ft}function di(v,w,L,ie,Ie,Ft){return v.condition!==w||v.questionToken!==L||v.whenTrue!==ie||v.colonToken!==Ie||v.whenFalse!==Ft?r(vs(w,L,ie,Ie,Ft),v):v}function rs(v,w){const L=U(228);return L.head=v,L.templateSpans=V(w),L.transformFlags|=tr(L.head)|ga(L.templateSpans)|1024,L}function bs(v,w,L){return v.head!==w||v.templateSpans!==L?r(rs(w,L),v):v}function Lo(v,w,L,ie=0){E.assert(!(ie&-7177),"Unsupported template flags.");let Ie;if(L!==void 0&&L!==w&&(Ie=s5e(v,L),typeof Ie=="object"))return E.fail("Invalid raw text");if(w===void 0){if(Ie===void 0)return E.fail("Arguments 'text' and 'rawText' may not both be undefined.");w=Ie}else Ie!==void 0&&E.assert(w===Ie,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return w}function aa(v){let w=1024;return v&&(w|=128),w}function xl(v,w,L,ie){const Ie=ct(v);return Ie.text=w,Ie.rawText=L,Ie.templateFlags=ie&7176,Ie.transformFlags=aa(Ie.templateFlags),Ie}function cf(v,w,L,ie){const Ie=Y(v);return Ie.text=w,Ie.rawText=L,Ie.templateFlags=ie&7176,Ie.transformFlags=aa(Ie.templateFlags),Ie}function y_(v,w,L,ie){return v===15?cf(v,w,L,ie):xl(v,w,L,ie)}function ld(v,w,L){return v=Lo(16,v,w,L),y_(16,v,w,L)}function Hd(v,w,L){return v=Lo(16,v,w,L),y_(17,v,w,L)}function Fp(v,w,L){return v=Lo(16,v,w,L),y_(18,v,w,L)}function Ee(v,w,L){return v=Lo(16,v,w,L),cf(15,v,w,L)}function je(v,w){E.assert(!v||!!w,"A `YieldExpression` with an asteriskToken must have an expression.");const L=U(229);return L.expression=w&&i().parenthesizeExpressionForDisallowedComma(w),L.asteriskToken=v,L.transformFlags|=tr(L.expression)|tr(L.asteriskToken)|1024|128|1048576,L}function Ye(v,w,L){return v.expression!==L||v.asteriskToken!==w?r(je(w,L),v):v}function Rt(v){const w=U(230);return w.expression=i().parenthesizeExpressionForDisallowedComma(v),w.transformFlags|=tr(w.expression)|1024|32768,w}function rn(v,w){return v.expression!==w?r(Rt(w),v):v}function fn(v,w,L,ie,Ie){const Ft=Y(231);return Ft.modifiers=Sa(v),Ft.name=To(w),Ft.typeParameters=Sa(L),Ft.heritageClauses=Sa(ie),Ft.members=V(Ie),Ft.transformFlags|=ga(Ft.modifiers)|eh(Ft.name)|ga(Ft.typeParameters)|ga(Ft.heritageClauses)|ga(Ft.members)|(Ft.typeParameters?1:0)|1024,Ft.jsDoc=void 0,Ft}function nn(v,w,L,ie,Ie,Ft){return v.modifiers!==w||v.name!==L||v.typeParameters!==ie||v.heritageClauses!==Ie||v.members!==Ft?r(fn(w,L,ie,Ie,Ft),v):v}function zn(){return U(232)}function jr(v,w){const L=U(233);return L.expression=i().parenthesizeLeftSideOfAccess(v,!1),L.typeArguments=w&&i().parenthesizeTypeArguments(w),L.transformFlags|=tr(L.expression)|ga(L.typeArguments)|1024,L}function Hi(v,w,L){return v.expression!==w||v.typeArguments!==L?r(jr(w,L),v):v}function Hn(v,w){const L=U(234);return L.expression=v,L.type=w,L.transformFlags|=tr(L.expression)|tr(L.type)|1,L}function cr(v,w,L){return v.expression!==w||v.type!==L?r(Hn(w,L),v):v}function wr(v){const w=U(235);return w.expression=i().parenthesizeLeftSideOfAccess(v,!1),w.transformFlags|=tr(w.expression)|1,w}function ta(v,w){return n9(v)?Gd(v,w):v.expression!==w?r(wr(w),v):v}function Lc(v,w){const L=U(238);return L.expression=v,L.type=w,L.transformFlags|=tr(L.expression)|tr(L.type)|1,L}function $o(v,w,L){return v.expression!==w||v.type!==L?r(Lc(w,L),v):v}function ug(v){const w=U(235);return w.flags|=64,w.expression=i().parenthesizeLeftSideOfAccess(v,!0),w.transformFlags|=tr(w.expression)|1,w}function Gd(v,w){return E.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==w?r(ug(w),v):v}function Bf(v,w){const L=U(236);switch(L.keywordToken=v,L.name=w,L.transformFlags|=tr(L.name),v){case 105:L.transformFlags|=1024;break;case 102:L.transformFlags|=32;break;default:return E.assertNever(v)}return L.flowNode=void 0,L}function a0(v,w){return v.name!==w?r(Bf(v.keywordToken,w),v):v}function dh(v,w){const L=U(239);return L.expression=v,L.literal=w,L.transformFlags|=tr(L.expression)|tr(L.literal)|1024,L}function PT(v,w,L){return v.expression!==w||v.literal!==L?r(dh(w,L),v):v}function z4(){const v=U(240);return v.transformFlags|=1024,v}function o0(v,w){const L=U(241);return L.statements=V(v),L.multiLine=w,L.transformFlags|=ga(L.statements),L.jsDoc=void 0,L.locals=void 0,L.nextContainer=void 0,L}function mh(v,w){return v.statements!==w?r(o0(w,v.multiLine),v):v}function Vy(v,w){const L=U(243);return L.modifiers=Sa(v),L.declarationList=Ds(w)?$y(w):w,L.transformFlags|=ga(L.modifiers)|tr(L.declarationList),Fd(L.modifiers)&2&&(L.transformFlags=1),L.jsDoc=void 0,L.flowNode=void 0,L}function w1(v,w,L){return v.modifiers!==w||v.declarationList!==L?r(Vy(w,L),v):v}function Uy(){const v=U(242);return v.jsDoc=void 0,v}function gh(v){const w=U(244);return w.expression=i().parenthesizeExpressionOfExpressionStatement(v),w.transformFlags|=tr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function IT(v,w){return v.expression!==w?r(gh(w),v):v}function YS(v,w,L){const ie=U(245);return ie.expression=v,ie.thenStatement=Lm(w),ie.elseStatement=Lm(L),ie.transformFlags|=tr(ie.expression)|tr(ie.thenStatement)|tr(ie.elseStatement),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function OT(v,w,L,ie){return v.expression!==w||v.thenStatement!==L||v.elseStatement!==ie?r(YS(w,L,ie),v):v}function FT(v,w){const L=U(246);return L.statement=Lm(v),L.expression=w,L.transformFlags|=tr(L.statement)|tr(L.expression),L.jsDoc=void 0,L.flowNode=void 0,L}function I2(v,w,L){return v.statement!==w||v.expression!==L?r(FT(w,L),v):v}function LT(v,w){const L=U(247);return L.expression=v,L.statement=Lm(w),L.transformFlags|=tr(L.expression)|tr(L.statement),L.jsDoc=void 0,L.flowNode=void 0,L}function MT(v,w,L){return v.expression!==w||v.statement!==L?r(LT(w,L),v):v}function O2(v,w,L,ie){const Ie=U(248);return Ie.initializer=v,Ie.condition=w,Ie.incrementor=L,Ie.statement=Lm(ie),Ie.transformFlags|=tr(Ie.initializer)|tr(Ie.condition)|tr(Ie.incrementor)|tr(Ie.statement),Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.flowNode=void 0,Ie}function RT(v,w,L,ie,Ie){return v.initializer!==w||v.condition!==L||v.incrementor!==ie||v.statement!==Ie?r(O2(w,L,ie,Ie),v):v}function BT(v,w,L){const ie=U(249);return ie.initializer=v,ie.expression=w,ie.statement=Lm(L),ie.transformFlags|=tr(ie.initializer)|tr(ie.expression)|tr(ie.statement),ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.flowNode=void 0,ie}function ZS(v,w,L,ie){return v.initializer!==w||v.expression!==L||v.statement!==ie?r(BT(w,L,ie),v):v}function jT(v,w,L,ie){const Ie=U(250);return Ie.awaitModifier=v,Ie.initializer=w,Ie.expression=i().parenthesizeExpressionForDisallowedComma(L),Ie.statement=Lm(ie),Ie.transformFlags|=tr(Ie.awaitModifier)|tr(Ie.initializer)|tr(Ie.expression)|tr(Ie.statement)|1024,v&&(Ie.transformFlags|=128),Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.flowNode=void 0,Ie}function KS(v,w,L,ie,Ie){return v.awaitModifier!==w||v.initializer!==L||v.expression!==ie||v.statement!==Ie?r(jT(w,L,ie,Ie),v):v}function D1(v){const w=U(251);return w.label=To(v),w.transformFlags|=tr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function Wy(v,w){return v.label!==w?r(D1(w),v):v}function hh(v){const w=U(252);return w.label=To(v),w.transformFlags|=tr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function qy(v,w){return v.label!==w?r(hh(w),v):v}function F2(v){const w=U(253);return w.expression=v,w.transformFlags|=tr(w.expression)|128|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function c0(v,w){return v.expression!==w?r(F2(w),v):v}function xa(v,w){const L=U(254);return L.expression=v,L.statement=Lm(w),L.transformFlags|=tr(L.expression)|tr(L.statement),L.jsDoc=void 0,L.flowNode=void 0,L}function L2(v,w,L){return v.expression!==w||v.statement!==L?r(xa(w,L),v):v}function yh(v,w){const L=U(255);return L.expression=i().parenthesizeExpressionForDisallowedComma(v),L.caseBlock=w,L.transformFlags|=tr(L.expression)|tr(L.caseBlock),L.jsDoc=void 0,L.flowNode=void 0,L.possiblyExhaustive=!1,L}function A1(v,w,L){return v.expression!==w||v.caseBlock!==L?r(yh(w,L),v):v}function fg(v,w){const L=U(256);return L.label=To(v),L.statement=Lm(w),L.transformFlags|=tr(L.label)|tr(L.statement),L.jsDoc=void 0,L.flowNode=void 0,L}function $d(v,w,L){return v.label!==w||v.statement!==L?r(fg(w,L),v):v}function bf(v){const w=U(257);return w.expression=v,w.transformFlags|=tr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function Ju(v,w){return v.expression!==w?r(bf(w),v):v}function ou(v,w,L){const ie=U(258);return ie.tryBlock=v,ie.catchClause=w,ie.finallyBlock=L,ie.transformFlags|=tr(ie.tryBlock)|tr(ie.catchClause)|tr(ie.finallyBlock),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function Tu(v,w,L,ie){return v.tryBlock!==w||v.catchClause!==L||v.finallyBlock!==ie?r(ou(w,L,ie),v):v}function Hy(){const v=U(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function Gy(v,w,L,ie){var Ft;const Ie=Y(260);return Ie.name=To(v),Ie.exclamationToken=w,Ie.type=L,Ie.initializer=ex(ie),Ie.transformFlags|=eh(Ie.name)|tr(Ie.initializer)|(((Ft=Ie.exclamationToken)!=null?Ft:Ie.type)?1:0),Ie.jsDoc=void 0,Ie}function V4(v,w,L,ie,Ie){return v.name!==w||v.type!==ie||v.exclamationToken!==L||v.initializer!==Ie?r(Gy(w,L,ie,Ie),v):v}function $y(v,w=0){const L=U(261);return L.flags|=w&7,L.declarations=V(v),L.transformFlags|=ga(L.declarations)|4194304,w&7&&(L.transformFlags|=263168),w&4&&(L.transformFlags|=4),L}function JT(v,w){return v.declarations!==w?r($y(w,v.flags),v):v}function N1(v,w,L,ie,Ie,Ft,Yn){const ki=Y(262);if(ki.modifiers=Sa(v),ki.asteriskToken=w,ki.name=To(L),ki.typeParameters=Sa(ie),ki.parameters=V(Ie),ki.type=Ft,ki.body=Yn,!ki.body||Fd(ki.modifiers)&2)ki.transformFlags=1;else{const eo=Fd(ki.modifiers)&512,Jp=!!ki.asteriskToken,b0=eo&&Jp;ki.transformFlags=ga(ki.modifiers)|tr(ki.asteriskToken)|eh(ki.name)|ga(ki.typeParameters)|ga(ki.parameters)|tr(ki.type)|tr(ki.body)&-67108865|(b0?128:eo?256:Jp?2048:0)|(ki.typeParameters||ki.type?1:0)|4194304}return ki.typeArguments=void 0,ki.jsDoc=void 0,ki.locals=void 0,ki.nextContainer=void 0,ki.endFlowNode=void 0,ki.returnFlowNode=void 0,ki}function Xy(v,w,L,ie,Ie,Ft,Yn,ki){return v.modifiers!==w||v.asteriskToken!==L||v.name!==ie||v.typeParameters!==Ie||v.parameters!==Ft||v.type!==Yn||v.body!==ki?M2(N1(w,L,ie,Ie,Ft,Yn,ki),v):v}function M2(v,w){return v!==w&&v.modifiers===w.modifiers&&(v.modifiers=w.modifiers),j(v,w)}function zT(v,w,L,ie,Ie){const Ft=Y(263);return Ft.modifiers=Sa(v),Ft.name=To(w),Ft.typeParameters=Sa(L),Ft.heritageClauses=Sa(ie),Ft.members=V(Ie),Fd(Ft.modifiers)&2?Ft.transformFlags=1:(Ft.transformFlags|=ga(Ft.modifiers)|eh(Ft.name)|ga(Ft.typeParameters)|ga(Ft.heritageClauses)|ga(Ft.members)|(Ft.typeParameters?1:0)|1024,Ft.transformFlags&8192&&(Ft.transformFlags|=1)),Ft.jsDoc=void 0,Ft}function R2(v,w,L,ie,Ie,Ft){return v.modifiers!==w||v.name!==L||v.typeParameters!==ie||v.heritageClauses!==Ie||v.members!==Ft?r(zT(w,L,ie,Ie,Ft),v):v}function vh(v,w,L,ie,Ie){const Ft=Y(264);return Ft.modifiers=Sa(v),Ft.name=To(w),Ft.typeParameters=Sa(L),Ft.heritageClauses=Sa(ie),Ft.members=V(Ie),Ft.transformFlags=1,Ft.jsDoc=void 0,Ft}function al(v,w,L,ie,Ie,Ft){return v.modifiers!==w||v.name!==L||v.typeParameters!==ie||v.heritageClauses!==Ie||v.members!==Ft?r(vh(w,L,ie,Ie,Ft),v):v}function Fe(v,w,L,ie){const Ie=Y(265);return Ie.modifiers=Sa(v),Ie.name=To(w),Ie.typeParameters=Sa(L),Ie.type=ie,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function l0(v,w,L,ie,Ie){return v.modifiers!==w||v.name!==L||v.typeParameters!==ie||v.type!==Ie?r(Fe(w,L,ie,Ie),v):v}function Tf(v,w,L){const ie=Y(266);return ie.modifiers=Sa(v),ie.name=To(w),ie.members=V(L),ie.transformFlags|=ga(ie.modifiers)|tr(ie.name)|ga(ie.members)|1,ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function bh(v,w,L,ie){return v.modifiers!==w||v.name!==L||v.members!==ie?r(Tf(w,L,ie),v):v}function v_(v,w,L,ie=0){const Ie=Y(267);return Ie.modifiers=Sa(v),Ie.flags|=ie&2088,Ie.name=w,Ie.body=L,Fd(Ie.modifiers)&2?Ie.transformFlags=1:Ie.transformFlags|=ga(Ie.modifiers)|tr(Ie.name)|tr(Ie.body)|1,Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function up(v,w,L,ie){return v.modifiers!==w||v.name!==L||v.body!==ie?r(v_(w,L,ie,v.flags),v):v}function b_(v){const w=U(268);return w.statements=V(v),w.transformFlags|=ga(w.statements),w.jsDoc=void 0,w}function _0(v,w){return v.statements!==w?r(b_(w),v):v}function ek(v){const w=U(269);return w.clauses=V(v),w.transformFlags|=ga(w.clauses),w.locals=void 0,w.nextContainer=void 0,w}function Pa(v,w){return v.clauses!==w?r(ek(w),v):v}function fp(v){const w=Y(270);return w.name=To(v),w.transformFlags|=H3(w.name)|1,w.modifiers=void 0,w.jsDoc=void 0,w}function VT(v,w){return v.name!==w?tk(fp(w),v):v}function tk(v,w){return v!==w&&(v.modifiers=w.modifiers),r(v,w)}function UT(v,w,L,ie){const Ie=Y(271);return Ie.modifiers=Sa(v),Ie.name=To(L),Ie.isTypeOnly=w,Ie.moduleReference=ie,Ie.transformFlags|=ga(Ie.modifiers)|H3(Ie.name)|tr(Ie.moduleReference),km(Ie.moduleReference)||(Ie.transformFlags|=1),Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function Qy(v,w,L,ie,Ie){return v.modifiers!==w||v.isTypeOnly!==L||v.name!==ie||v.moduleReference!==Ie?r(UT(w,L,ie,Ie),v):v}function pg(v,w,L,ie){const Ie=U(272);return Ie.modifiers=Sa(v),Ie.importClause=w,Ie.moduleSpecifier=L,Ie.assertClause=ie,Ie.transformFlags|=tr(Ie.importClause)|tr(Ie.moduleSpecifier),Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function Yy(v,w,L,ie,Ie){return v.modifiers!==w||v.importClause!==L||v.moduleSpecifier!==ie||v.assertClause!==Ie?r(pg(w,L,ie,Ie),v):v}function _d(v,w,L){const ie=Y(273);return ie.isTypeOnly=v,ie.name=w,ie.namedBindings=L,ie.transformFlags|=tr(ie.name)|tr(ie.namedBindings),v&&(ie.transformFlags|=1),ie.transformFlags&=-67108865,ie}function Nm(v,w,L,ie){return v.isTypeOnly!==w||v.name!==L||v.namedBindings!==ie?r(_d(w,L,ie),v):v}function xf(v,w){const L=U(300);return L.elements=V(v),L.multiLine=w,L.transformFlags|=4,L}function P1(v,w,L){return v.elements!==w||v.multiLine!==L?r(xf(w,L),v):v}function WT(v,w){const L=U(301);return L.name=v,L.value=w,L.transformFlags|=4,L}function Fi(v,w,L){return v.name!==w||v.value!==L?r(WT(w,L),v):v}function Jr(v,w){const L=U(302);return L.assertClause=v,L.multiLine=w,L}function Xd(v,w,L){return v.assertClause!==w||v.multiLine!==L?r(Jr(w,L),v):v}function H_(v){const w=Y(274);return w.name=v,w.transformFlags|=tr(w.name),w.transformFlags&=-67108865,w}function U4(v,w){return v.name!==w?r(H_(w),v):v}function Qd(v){const w=Y(280);return w.name=v,w.transformFlags|=tr(w.name)|32,w.transformFlags&=-67108865,w}function W4(v,w){return v.name!==w?r(Qd(w),v):v}function B2(v){const w=U(275);return w.elements=V(v),w.transformFlags|=ga(w.elements),w.transformFlags&=-67108865,w}function Mc(v,w){return v.elements!==w?r(B2(w),v):v}function I1(v,w,L){const ie=Y(276);return ie.isTypeOnly=v,ie.propertyName=w,ie.name=L,ie.transformFlags|=tr(ie.propertyName)|tr(ie.name),ie.transformFlags&=-67108865,ie}function j2(v,w,L,ie){return v.isTypeOnly!==w||v.propertyName!==L||v.name!==ie?r(I1(w,L,ie),v):v}function xu(v,w,L){const ie=Y(277);return ie.modifiers=Sa(v),ie.isExportEquals=w,ie.expression=w?i().parenthesizeRightSideOfBinary(64,void 0,L):i().parenthesizeExpressionOfExportDefault(L),ie.transformFlags|=ga(ie.modifiers)|tr(ie.expression),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function Lp(v,w,L){return v.modifiers!==w||v.expression!==L?r(xu(w,v.isExportEquals,L),v):v}function T_(v,w,L,ie,Ie){const Ft=Y(278);return Ft.modifiers=Sa(v),Ft.isTypeOnly=w,Ft.exportClause=L,Ft.moduleSpecifier=ie,Ft.assertClause=Ie,Ft.transformFlags|=ga(Ft.modifiers)|tr(Ft.exportClause)|tr(Ft.moduleSpecifier),Ft.transformFlags&=-67108865,Ft.jsDoc=void 0,Ft}function Th(v,w,L,ie,Ie,Ft){return v.modifiers!==w||v.isTypeOnly!==L||v.exportClause!==ie||v.moduleSpecifier!==Ie||v.assertClause!==Ft?J2(T_(w,L,ie,Ie,Ft),v):v}function J2(v,w){return v!==w&&v.modifiers===w.modifiers&&(v.modifiers=w.modifiers),r(v,w)}function u0(v){const w=U(279);return w.elements=V(v),w.transformFlags|=ga(w.elements),w.transformFlags&=-67108865,w}function O1(v,w){return v.elements!==w?r(u0(w),v):v}function xh(v,w,L){const ie=U(281);return ie.isTypeOnly=v,ie.propertyName=To(w),ie.name=To(L),ie.transformFlags|=tr(ie.propertyName)|tr(ie.name),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function f0(v,w,L,ie){return v.isTypeOnly!==w||v.propertyName!==L||v.name!==ie?r(xh(w,L,ie),v):v}function nk(){const v=Y(282);return v.jsDoc=void 0,v}function ud(v){const w=U(283);return w.expression=v,w.transformFlags|=tr(w.expression),w.transformFlags&=-67108865,w}function Pm(v,w){return v.expression!==w?r(ud(w),v):v}function Sh(v){return U(v)}function qT(v,w,L=!1){const ie=z2(v,L?w&&i().parenthesizeNonArrayTypeOfPostfixType(w):w);return ie.postfix=L,ie}function z2(v,w){const L=U(v);return L.type=w,L}function rk(v,w,L){return w.type!==L?r(qT(v,L,w.postfix),w):w}function ik(v,w,L){return w.type!==L?r(z2(v,L),w):w}function so(v,w){const L=Y(324);return L.parameters=Sa(v),L.type=w,L.transformFlags=ga(L.parameters)|(L.type?1:0),L.jsDoc=void 0,L.locals=void 0,L.nextContainer=void 0,L.typeArguments=void 0,L}function Zy(v,w,L){return v.parameters!==w||v.type!==L?r(so(w,L),v):v}function pp(v,w=!1){const L=Y(329);return L.jsDocPropertyTags=Sa(v),L.isArrayType=w,L}function Ky(v,w,L){return v.jsDocPropertyTags!==w||v.isArrayType!==L?r(pp(w,L),v):v}function ev(v){const w=U(316);return w.type=v,w}function q4(v,w){return v.type!==w?r(ev(w),v):v}function sk(v,w,L){const ie=Y(330);return ie.typeParameters=Sa(v),ie.parameters=V(w),ie.type=L,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie}function V2(v,w,L,ie){return v.typeParameters!==w||v.parameters!==L||v.type!==ie?r(sk(w,L,ie),v):v}function Vn(v){const w=FO(v.kind);return v.tagName.escapedText===qo(w)?v.tagName:ue(w)}function hc(v,w,L){const ie=U(v);return ie.tagName=w,ie.comment=L,ie}function Yi(v,w,L){const ie=Y(v);return ie.tagName=w,ie.comment=L,ie}function Mp(v,w,L,ie){const Ie=hc(352,v!=null?v:ue("template"),ie);return Ie.constraint=w,Ie.typeParameters=V(L),Ie}function F1(v,w=Vn(v),L,ie,Ie){return v.tagName!==w||v.constraint!==L||v.typeParameters!==ie||v.comment!==Ie?r(Mp(w,L,ie,Ie),v):v}function Yd(v,w,L,ie){const Ie=Yi(353,v!=null?v:ue("typedef"),ie);return Ie.typeExpression=w,Ie.fullName=L,Ie.name=bG(L),Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function Wn(v,w=Vn(v),L,ie,Ie){return v.tagName!==w||v.typeExpression!==L||v.fullName!==ie||v.comment!==Ie?r(Yd(w,L,ie,Ie),v):v}function tv(v,w,L,ie,Ie,Ft){const Yn=Yi(348,v!=null?v:ue("param"),Ft);return Yn.typeExpression=ie,Yn.name=w,Yn.isNameFirst=!!Ie,Yn.isBracketed=L,Yn}function nv(v,w=Vn(v),L,ie,Ie,Ft,Yn){return v.tagName!==w||v.name!==L||v.isBracketed!==ie||v.typeExpression!==Ie||v.isNameFirst!==Ft||v.comment!==Yn?r(tv(w,L,ie,Ie,Ft,Yn),v):v}function ul(v,w,L,ie,Ie,Ft){const Yn=Yi(355,v!=null?v:ue("prop"),Ft);return Yn.typeExpression=ie,Yn.name=w,Yn.isNameFirst=!!Ie,Yn.isBracketed=L,Yn}function fd(v,w=Vn(v),L,ie,Ie,Ft,Yn){return v.tagName!==w||v.name!==L||v.isBracketed!==ie||v.typeExpression!==Ie||v.isNameFirst!==Ft||v.comment!==Yn?r(ul(w,L,ie,Ie,Ft,Yn),v):v}function Rp(v,w,L,ie){const Ie=Yi(345,v!=null?v:ue("callback"),ie);return Ie.typeExpression=w,Ie.fullName=L,Ie.name=bG(L),Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function U2(v,w=Vn(v),L,ie,Ie){return v.tagName!==w||v.typeExpression!==L||v.fullName!==ie||v.comment!==Ie?r(Rp(w,L,ie,Ie),v):v}function rv(v,w,L){const ie=hc(346,v!=null?v:ue("overload"),L);return ie.typeExpression=w,ie}function dg(v,w=Vn(v),L,ie){return v.tagName!==w||v.typeExpression!==L||v.comment!==ie?r(rv(w,L,ie),v):v}function kh(v,w,L){const ie=hc(335,v!=null?v:ue("augments"),L);return ie.class=w,ie}function ak(v,w=Vn(v),L,ie){return v.tagName!==w||v.class!==L||v.comment!==ie?r(kh(w,L,ie),v):v}function pd(v,w,L){const ie=hc(336,v!=null?v:ue("implements"),L);return ie.class=w,ie}function p0(v,w,L){const ie=hc(354,v!=null?v:ue("see"),L);return ie.name=w,ie}function mg(v,w,L,ie){return v.tagName!==w||v.name!==L||v.comment!==ie?r(p0(w,L,ie),v):v}function HT(v){const w=U(317);return w.name=v,w}function gg(v,w){return v.name!==w?r(HT(w),v):v}function d0(v,w){const L=U(318);return L.left=v,L.right=w,L.transformFlags|=tr(L.left)|tr(L.right),L}function W2(v,w,L){return v.left!==w||v.right!==L?r(d0(w,L),v):v}function GT(v,w){const L=U(331);return L.name=v,L.text=w,L}function hg(v,w,L){return v.name!==w?r(GT(w,L),v):v}function dp(v,w){const L=U(332);return L.name=v,L.text=w,L}function Rc(v,w,L){return v.name!==w?r(dp(w,L),v):v}function gl(v,w){const L=U(333);return L.name=v,L.text=w,L}function L1(v,w,L){return v.name!==w?r(gl(w,L),v):v}function Su(v,w=Vn(v),L,ie){return v.tagName!==w||v.class!==L||v.comment!==ie?r(pd(w,L,ie),v):v}function G_(v,w,L){return hc(v,w!=null?w:ue(FO(v)),L)}function yg(v,w,L=Vn(w),ie){return w.tagName!==L||w.comment!==ie?r(G_(v,L,ie),w):w}function mp(v,w,L,ie){const Ie=hc(v,w!=null?w:ue(FO(v)),ie);return Ie.typeExpression=L,Ie}function M1(v,w,L=Vn(w),ie,Ie){return w.tagName!==L||w.typeExpression!==ie||w.comment!==Ie?r(mp(v,L,ie,Ie),w):w}function vg(v,w){return hc(334,v,w)}function q2(v,w,L){return v.tagName!==w||v.comment!==L?r(vg(w,L),v):v}function fl(v,w,L){const ie=Yi(347,v!=null?v:ue(FO(347)),L);return ie.typeExpression=w,ie.locals=void 0,ie.nextContainer=void 0,ie}function m0(v,w=Vn(v),L,ie){return v.tagName!==w||v.typeExpression!==L||v.comment!==ie?r(fl(w,L,ie),v):v}function Im(v){const w=U(328);return w.text=v,w}function H2(v,w){return v.text!==w?r(Im(w),v):v}function Xo(v,w){const L=U(327);return L.comment=v,L.tags=Sa(w),L}function bg(v,w,L){return v.comment!==w||v.tags!==L?r(Xo(w,L),v):v}function $T(v,w,L){const ie=U(284);return ie.openingElement=v,ie.children=V(w),ie.closingElement=L,ie.transformFlags|=tr(ie.openingElement)|ga(ie.children)|tr(ie.closingElement)|2,ie}function R1(v,w,L,ie){return v.openingElement!==w||v.children!==L||v.closingElement!==ie?r($T(w,L,ie),v):v}function ok(v,w,L){const ie=U(285);return ie.tagName=v,ie.typeArguments=Sa(w),ie.attributes=L,ie.transformFlags|=tr(ie.tagName)|ga(ie.typeArguments)|tr(ie.attributes)|2,ie.typeArguments&&(ie.transformFlags|=1),ie}function r_(v,w,L,ie){return v.tagName!==w||v.typeArguments!==L||v.attributes!==ie?r(ok(w,L,ie),v):v}function g0(v,w,L){const ie=U(286);return ie.tagName=v,ie.typeArguments=Sa(w),ie.attributes=L,ie.transformFlags|=tr(ie.tagName)|ga(ie.typeArguments)|tr(ie.attributes)|2,w&&(ie.transformFlags|=1),ie}function Ch(v,w,L,ie){return v.tagName!==w||v.typeArguments!==L||v.attributes!==ie?r(g0(w,L,ie),v):v}function Tg(v){const w=U(287);return w.tagName=v,w.transformFlags|=tr(w.tagName)|2,w}function lf(v,w){return v.tagName!==w?r(Tg(w),v):v}function G2(v,w,L){const ie=U(288);return ie.openingFragment=v,ie.children=V(w),ie.closingFragment=L,ie.transformFlags|=tr(ie.openingFragment)|ga(ie.children)|tr(ie.closingFragment)|2,ie}function iv(v,w,L,ie){return v.openingFragment!==w||v.children!==L||v.closingFragment!==ie?r(G2(w,L,ie),v):v}function B1(v,w){const L=U(12);return L.text=v,L.containsOnlyTriviaWhiteSpaces=!!w,L.transformFlags|=2,L}function sv(v,w,L){return v.text!==w||v.containsOnlyTriviaWhiteSpaces!==L?r(B1(w,L),v):v}function av(){const v=U(289);return v.transformFlags|=2,v}function Sf(){const v=U(290);return v.transformFlags|=2,v}function XT(v,w){const L=Y(291);return L.name=v,L.initializer=w,L.transformFlags|=tr(L.name)|tr(L.initializer)|2,L}function $2(v,w,L){return v.name!==w||v.initializer!==L?r(XT(w,L),v):v}function QT(v){const w=Y(292);return w.properties=V(v),w.transformFlags|=ga(w.properties)|2,w}function ov(v,w){return v.properties!==w?r(QT(w),v):v}function zu(v){const w=U(293);return w.expression=v,w.transformFlags|=tr(w.expression)|2,w}function Zd(v,w){return v.expression!==w?r(zu(w),v):v}function j1(v,w){const L=U(294);return L.dotDotDotToken=v,L.expression=w,L.transformFlags|=tr(L.dotDotDotToken)|tr(L.expression)|2,L}function ck(v,w){return v.expression!==w?r(j1(v.dotDotDotToken,w),v):v}function Ra(v,w){const L=U(295);return L.namespace=v,L.name=w,L.transformFlags|=tr(L.namespace)|tr(L.name)|2,L}function hr(v,w,L){return v.namespace!==w||v.name!==L?r(Ra(w,L),v):v}function ku(v,w){const L=U(296);return L.expression=i().parenthesizeExpressionForDisallowedComma(v),L.statements=V(w),L.transformFlags|=tr(L.expression)|ga(L.statements),L.jsDoc=void 0,L}function $_(v,w,L){return v.expression!==w||v.statements!==L?r(ku(w,L),v):v}function J1(v){const w=U(297);return w.statements=V(v),w.transformFlags=ga(w.statements),w}function X2(v,w){return v.statements!==w?r(J1(w),v):v}function Q2(v,w){const L=U(298);switch(L.token=v,L.types=V(w),L.transformFlags|=ga(L.types),v){case 96:L.transformFlags|=1024;break;case 119:L.transformFlags|=1;break;default:return E.assertNever(v)}return L}function YT(v,w){return v.types!==w?r(Q2(v.token,w),v):v}function Eh(v,w){const L=U(299);return L.variableDeclaration=gk(v),L.block=w,L.transformFlags|=tr(L.variableDeclaration)|tr(L.block)|(v?0:64),L.locals=void 0,L.nextContainer=void 0,L}function Vu(v,w,L){return v.variableDeclaration!==w||v.block!==L?r(Eh(w,L),v):v}function X_(v,w){const L=Y(303);return L.name=To(v),L.initializer=i().parenthesizeExpressionForDisallowedComma(w),L.transformFlags|=eh(L.name)|tr(L.initializer),L.modifiers=void 0,L.questionToken=void 0,L.exclamationToken=void 0,L.jsDoc=void 0,L}function cv(v,w,L){return v.name!==w||v.initializer!==L?lv(X_(w,L),v):v}function lv(v,w){return v!==w&&(v.modifiers=w.modifiers,v.questionToken=w.questionToken,v.exclamationToken=w.exclamationToken),r(v,w)}function _f(v,w){const L=Y(304);return L.name=To(v),L.objectAssignmentInitializer=w&&i().parenthesizeExpressionForDisallowedComma(w),L.transformFlags|=H3(L.name)|tr(L.objectAssignmentInitializer)|1024,L.equalsToken=void 0,L.modifiers=void 0,L.questionToken=void 0,L.exclamationToken=void 0,L.jsDoc=void 0,L}function xg(v,w,L){return v.name!==w||v.objectAssignmentInitializer!==L?ZT(_f(w,L),v):v}function ZT(v,w){return v!==w&&(v.modifiers=w.modifiers,v.questionToken=w.questionToken,v.exclamationToken=w.exclamationToken,v.equalsToken=w.equalsToken),r(v,w)}function Vo(v){const w=Y(305);return w.expression=i().parenthesizeExpressionForDisallowedComma(v),w.transformFlags|=tr(w.expression)|128|65536,w.jsDoc=void 0,w}function jf(v,w){return v.expression!==w?r(Vo(w),v):v}function lk(v,w){const L=Y(306);return L.name=To(v),L.initializer=w&&i().parenthesizeExpressionForDisallowedComma(w),L.transformFlags|=tr(L.name)|tr(L.initializer)|1,L.jsDoc=void 0,L}function Jf(v,w,L){return v.name!==w||v.initializer!==L?r(lk(w,L),v):v}function Y2(v,w,L){const ie=t.createBaseSourceFileNode(312);return ie.statements=V(v),ie.endOfFileToken=w,ie.flags|=L,ie.text="",ie.fileName="",ie.path="",ie.resolvedPath="",ie.originalFileName="",ie.languageVersion=0,ie.languageVariant=0,ie.scriptKind=0,ie.isDeclarationFile=!1,ie.hasNoDefaultLib=!1,ie.transformFlags|=ga(ie.statements)|tr(ie.endOfFileToken),ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.nodeCount=0,ie.identifierCount=0,ie.symbolCount=0,ie.parseDiagnostics=void 0,ie.bindDiagnostics=void 0,ie.bindSuggestionDiagnostics=void 0,ie.lineMap=void 0,ie.externalModuleIndicator=void 0,ie.setExternalModuleIndicator=void 0,ie.pragmas=void 0,ie.checkJsDirective=void 0,ie.referencedFiles=void 0,ie.typeReferenceDirectives=void 0,ie.libReferenceDirectives=void 0,ie.amdDependencies=void 0,ie.commentDirectives=void 0,ie.identifiers=void 0,ie.packageJsonLocations=void 0,ie.packageJsonScope=void 0,ie.imports=void 0,ie.moduleAugmentations=void 0,ie.ambientModuleNames=void 0,ie.resolvedModules=void 0,ie.classifiableNames=void 0,ie.impliedNodeFormat=void 0,ie}function wh(v){const w=Object.create(v.redirectTarget);return Object.defineProperties(w,{id:{get(){return this.redirectInfo.redirectTarget.id},set(L){this.redirectInfo.redirectTarget.id=L}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(L){this.redirectInfo.redirectTarget.symbol=L}}}),w.redirectInfo=v,w}function Z2(v){const w=wh(v.redirectInfo);return w.flags|=v.flags&-17,w.fileName=v.fileName,w.path=v.path,w.resolvedPath=v.resolvedPath,w.originalFileName=v.originalFileName,w.packageJsonLocations=v.packageJsonLocations,w.packageJsonScope=v.packageJsonScope,w.emitNode=void 0,w}function Om(v){const w=t.createBaseSourceFileNode(312);w.flags|=v.flags&-17;for(const L in v)if(!(lo(w,L)||!lo(v,L))){if(L==="emitNode"){w.emitNode=void 0;continue}w[L]=v[L]}return w}function uf(v){const w=v.redirectInfo?Z2(v):Om(v);return or(w,v),w}function yc(v,w,L,ie,Ie,Ft,Yn){const ki=uf(v);return ki.statements=V(w),ki.isDeclarationFile=L,ki.referencedFiles=ie,ki.typeReferenceDirectives=Ie,ki.hasNoDefaultLib=Ft,ki.libReferenceDirectives=Yn,ki.transformFlags=ga(ki.statements)|tr(ki.endOfFileToken),ki}function _k(v,w,L=v.isDeclarationFile,ie=v.referencedFiles,Ie=v.typeReferenceDirectives,Ft=v.hasNoDefaultLib,Yn=v.libReferenceDirectives){return v.statements!==w||v.isDeclarationFile!==L||v.referencedFiles!==ie||v.typeReferenceDirectives!==Ie||v.hasNoDefaultLib!==Ft||v.libReferenceDirectives!==Yn?r(yc(v,w,L,ie,Ie,Ft,Yn),v):v}function z1(v,w=Ve){const L=U(313);return L.prepends=w,L.sourceFiles=v,L.syntheticFileReferences=void 0,L.syntheticTypeReferences=void 0,L.syntheticLibReferences=void 0,L.hasNoDefaultLib=void 0,L}function cu(v,w,L=Ve){return v.sourceFiles!==w||v.prepends!==L?r(z1(w,L),v):v}function Fm(v,w,L){const ie=U(314);return ie.prologues=v,ie.syntheticReferences=w,ie.texts=L,ie.fileName="",ie.text="",ie.referencedFiles=Ve,ie.libReferenceDirectives=Ve,ie.getLineAndCharacterOfPosition=Ie=>vo(ie,Ie),ie}function K2(v,w){const L=U(v);return L.data=w,L}function uk(v){return K2(307,v)}function eb(v,w){const L=K2(308,v);return L.texts=w,L}function tb(v,w){return K2(w?310:309,v)}function S(v){const w=U(311);return w.data=v.data,w.section=v,w}function ne(){const v=U(315);return v.javascriptText="",v.declarationText="",v}function et(v,w=!1,L){const ie=U(237);return ie.type=v,ie.isSpread=w,ie.tupleNameSource=L,ie}function Wt(v){const w=U(358);return w._children=v,w}function gr(v){const w=U(359);return w.original=v,Ke(w,v),w}function yi(v,w){const L=U(360);return L.expression=v,L.original=w,L.transformFlags|=tr(L.expression)|1,Ke(L,w),L}function $r(v,w){return v.expression!==w?r(yi(w,v.original),v):v}function ji(v){if(Do(v)&&!VC(v)&&!v.original&&!v.emitNode&&!v.id){if(i8(v))return v.elements;if(rr(v)&&vfe(v.operatorToken))return[v.left,v.right]}return v}function Js(v){const w=U(361);return w.elements=V(Kae(v,ji)),w.transformFlags|=ga(w.elements),w}function ni(v,w){return v.elements!==w?r(Js(w),v):v}function Rl(v,w){const L=U(362);return L.expression=v,L.thisArg=w,L.transformFlags|=tr(L.expression)|tr(L.thisArg),L}function kn(v,w,L){return v.expression!==w||v.thisArg!==L?r(Rl(w,L),v):v}function Dh(v){const w=Q(v.escapedText);return w.flags|=v.flags&-17,w.transformFlags=v.transformFlags,or(w,v),YD(w,{...v.emitNode.autoGenerate}),w}function Q_(v){const w=Q(v.escapedText);w.flags|=v.flags&-17,w.jsDoc=v.jsDoc,w.flowNode=v.flowNode,w.symbol=v.symbol,w.transformFlags=v.transformFlags,or(w,v);const L=$b(v);return L&&th(w,L),w}function Sg(v){const w=Xe(v.escapedText);return w.flags|=v.flags&-17,w.transformFlags=v.transformFlags,or(w,v),YD(w,{...v.emitNode.autoGenerate}),w}function Ah(v){const w=Xe(v.escapedText);return w.flags|=v.flags&-17,w.transformFlags=v.transformFlags,or(w,v),w}function nb(v){if(v===void 0)return v;if(Ri(v))return uf(v);if(jo(v))return Dh(v);if(we(v))return Q_(v);if(Db(v))return Sg(v);if(Ei(v))return Ah(v);const w=vw(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);w.flags|=v.flags&-17,w.transformFlags=v.transformFlags,or(w,v);for(const L in v)lo(w,L)||!lo(v,L)||(w[L]=v[L]);return w}function fk(v,w,L){return bn(qr(void 0,void 0,void 0,void 0,w?[w]:[],void 0,o0(v,!0)),void 0,L?[L]:[])}function kg(v,w,L){return bn(ds(void 0,void 0,w?[w]:[],void 0,void 0,o0(v,!0)),void 0,L?[L]:[])}function h0(){return il(ee("0"))}function V1(v){return xu(void 0,!1,v)}function U1(v){return T_(void 0,!1,u0([xh(!1,void 0,v)]))}function _v(v,w){return w==="null"?M.createStrictEquality(v,tt()):w==="undefined"?M.createStrictEquality(v,h0()):M.createStrictEquality(Zc(v),oe(w))}function H4(v,w){return w==="null"?M.createStrictInequality(v,tt()):w==="undefined"?M.createStrictInequality(v,h0()):M.createStrictInequality(Zc(v),oe(w))}function W1(v,w,L){return Eb(v)?Es(Ka(v,void 0,w),void 0,void 0,L):bn(Oc(v,w),void 0,L)}function uv(v,w,L){return W1(v,"bind",[w,...L])}function dd(v,w,L){return W1(v,"call",[w,...L])}function G4(v,w,L){return W1(v,"apply",[w,L])}function zf(v,w,L){return W1(ue(v),w,L)}function pk(v,w){return W1(v,"slice",w===void 0?[]:[jp(w)])}function GN(v,w){return W1(v,"concat",w)}function Kd(v,w,L){return zf("Object","defineProperty",[v,jp(w),L])}function KT(v,w){return zf("Object","getOwnPropertyDescriptor",[v,jp(w)])}function $N(v,w,L){return zf("Reflect","get",L?[v,w,L]:[v,w])}function Wc(v,w,L,ie){return zf("Reflect","set",ie?[v,w,L,ie]:[v,w,L])}function fv(v,w,L){return L?(v.push(X_(w,L)),!0):!1}function NE(v,w){const L=[];fv(L,"enumerable",jp(v.enumerable)),fv(L,"configurable",jp(v.configurable));let ie=fv(L,"writable",jp(v.writable));ie=fv(L,"value",v.value)||ie;let Ie=fv(L,"get",v.get);return Ie=fv(L,"set",v.set)||Ie,E.assert(!(ie&&Ie),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ma(L,!w)}function Wa(v,w){switch(v.kind){case 217:return Cr(v,w);case 216:return Qt(v,v.type,w);case 234:return cr(v,w,v.type);case 238:return $o(v,w,v.type);case 235:return ta(v,w);case 360:return $r(v,w)}}function q(v){return hu(v)&&Do(v)&&Do(Cy(v))&&Do(Rd(v))&&!dt(q6(v))&&!dt(QD(v))}function de(v,w,L=15){return v&&NF(v,L)&&!q(v)?Wa(v,de(v.expression,w)):w}function Le(v,w,L){if(!w)return v;const ie=$d(w,w.label,p2(w.statement)?Le(v,w.statement):v);return L&&L(w),ie}function lt(v,w){const L=uo(v);switch(L.kind){case 80:return w;case 110:case 9:case 10:case 11:return!1;case 209:return L.elements.length!==0;case 210:return L.properties.length>0;default:return!0}}function Dt(v,w,L,ie=!1){const Ie=nl(v,15);let Ft,Yn;return nu(Ie)?(Ft=Ge(),Yn=Ie):Z3(Ie)?(Ft=Ge(),Yn=L!==void 0&&L<2?Ke(ue("_super"),Ie):Ie):ma(Ie)&8192?(Ft=h0(),Yn=i().parenthesizeLeftSideOfAccess(Ie,!1)):kr(Ie)?lt(Ie.expression,ie)?(Ft=fe(w),Yn=Oc(Ke(M.createAssignment(Ft,Ie.expression),Ie.expression),Ie.name),Ke(Yn,Ie)):(Ft=Ie.expression,Yn=Ie):No(Ie)?lt(Ie.expression,ie)?(Ft=fe(w),Yn=Uc(Ke(M.createAssignment(Ft,Ie.expression),Ie.expression),Ie.argumentExpression),Ke(Yn,Ie)):(Ft=Ie.expression,Yn=Ie):(Ft=h0(),Yn=i().parenthesizeLeftSideOfAccess(v,!1)),{target:Yn,thisArg:Ft}}function tn(v,w){return Oc(Fn(Ma([Me(void 0,"value",[br(void 0,void 0,v,void 0,void 0,void 0)],o0([gh(w)]))])),"value")}function Ir(v){return v.length>10?Js(v):E_(v,M.createComma)}function Ti(v,w,L,ie=0,Ie){const Ft=Ie?v&&YI(v):os(v);if(Ft&&we(Ft)&&!jo(Ft)){const Yn=Ta(Ke(nb(Ft),Ft),Ft.parent);return ie|=ma(Ft),L||(ie|=96),w||(ie|=3072),ie&&Xn(Yn,ie),Yn}return De(v)}function ri(v,w,L){return Ti(v,w,L,98304)}function _i(v,w,L,ie){return Ti(v,w,L,32768,ie)}function as(v,w,L){return Ti(v,w,L,16384)}function ao(v,w,L){return Ti(v,w,L)}function qa(v,w,L,ie){const Ie=Oc(v,Do(w)?w:nb(w));Ke(Ie,w);let Ft=0;return ie||(Ft|=96),L||(Ft|=3072),Ft&&Xn(Ie,Ft),Ie}function Za(v,w,L,ie){return v&&Mr(w,1)?qa(v,Ti(w),L,ie):as(w,L,ie)}function R_(v,w,L,ie){const Ie=Bp(v,w,0,L);return y0(v,w,Ie,ie)}function Sl(v){return pa(v.expression)&&v.expression.text==="use strict"}function em(){return O_(gh(oe("use strict")))}function Bp(v,w,L=0,ie){E.assert(w.length===0,"Prologue directives should be at the first statement in the target statements array");let Ie=!1;const Ft=v.length;for(;Lki&&Jp.splice(Ie,0,...w.slice(ki,eo)),ki>Yn&&Jp.splice(ie,0,...w.slice(Yn,ki)),Yn>Ft&&Jp.splice(L,0,...w.slice(Ft,Yn)),Ft>0)if(L===0)Jp.splice(0,0,...w.slice(0,Ft));else{const b0=new Map;for(let gp=0;gp=0;gp--){const q1=w[gp];b0.has(q1.expression.text)||Jp.unshift(q1)}}return Hv(v)?Ke(V(Jp,v.hasTrailingComma),v):v}function dk(v,w){var ie;let L;return typeof w=="number"?L=zt(w):L=w,Ho(v)?Kn(v,L,v.name,v.constraint,v.default):ns(v)?fi(v,L,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):e8(v)?on(v,L,v.typeParameters,v.parameters,v.type):mf(v)?ur(v,L,v.name,v.questionToken,v.type):Is(v)?cn(v,L,v.name,(ie=v.questionToken)!=null?ie:v.exclamationToken,v.type,v.initializer):ig(v)?xr(v,L,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):Ec(v)?Zt(v,L,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):wc(v)?ut(v,L,v.parameters,v.body):gf(v)?Ut(v,L,v.name,v.parameters,v.type,v.body):Fu(v)?ke(v,L,v.name,v.parameters,v.body):Xb(v)?Jt(v,L,v.parameters,v.type):fo(v)?li(v,L,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Po(v)?va(v,L,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):Fl(v)?nn(v,L,v.name,v.typeParameters,v.heritageClauses,v.members):ic(v)?w1(v,L,v.declarationList):tl(v)?Xy(v,L,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Qc(v)?R2(v,L,v.name,v.typeParameters,v.heritageClauses,v.members):f_(v)?al(v,L,v.name,v.typeParameters,v.heritageClauses,v.members):wp(v)?l0(v,L,v.name,v.typeParameters,v.type):Ay(v)?bh(v,L,v.name,v.members):Nc(v)?up(v,L,v.name,v.body):Hl(v)?Qy(v,L,v.isTypeOnly,v.name,v.moduleReference):bl(v)?Yy(v,L,v.importClause,v.moduleSpecifier,v.assertClause):dc(v)?Lp(v,L,v.expression):Yc(v)?Th(v,L,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.assertClause):E.assertNever(v)}function mk(v,w){var L;return ns(v)?fi(v,w,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):Is(v)?cn(v,w,v.name,(L=v.questionToken)!=null?L:v.exclamationToken,v.type,v.initializer):Ec(v)?Zt(v,w,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):gf(v)?Ut(v,w,v.name,v.parameters,v.type,v.body):Fu(v)?ke(v,w,v.name,v.parameters,v.body):Fl(v)?nn(v,w,v.name,v.typeParameters,v.heritageClauses,v.members):Qc(v)?R2(v,w,v.name,v.typeParameters,v.heritageClauses,v.members):E.assertNever(v)}function Sa(v){return v?V(v):void 0}function To(v){return typeof v=="string"?ue(v):v}function jp(v){return typeof v=="string"?oe(v):typeof v=="number"?ee(v):typeof v=="boolean"?v?mt():Je():v}function ex(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function kf(v){return typeof v=="number"?pe(v):v}function Lm(v){return v&&tG(v)?Ke(or(Uy(),v),v):v}function gk(v){return typeof v=="string"||v&&!Mi(v)?Gy(v,void 0,void 0,void 0):v}}function r5e(e,t){return e!==t&&Ke(e,t),e}function i5e(e,t){return e!==t&&(or(e,t),Ke(e,t)),e}function FO(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return E.fail(`Unsupported kind: ${E.formatSyntaxKind(e)}`)}}function s5e(e,t){switch(Qg||(Qg=V0(99,!1,0)),e){case 15:Qg.setText("`"+t+"`");break;case 16:Qg.setText("`"+t+"${");break;case 17:Qg.setText("}"+t+"${");break;case 18:Qg.setText("}"+t+"`");break}let r=Qg.scan();if(r===20&&(r=Qg.reScanTemplateToken(!1)),Qg.isUnterminated())return Qg.setText(void 0),MH;let i;switch(r){case 15:case 16:case 17:case 18:i=Qg.getTokenValue();break}return i===void 0||Qg.scan()!==1?(Qg.setText(void 0),MH):(Qg.setText(void 0),i)}function eh(e){return e&&we(e)?H3(e):tr(e)}function H3(e){return tr(e)&-67108865}function a5e(e,t){return t|e.transformFlags&134234112}function tr(e){if(!e)return 0;const t=e.transformFlags&~rfe(e.kind);return A_(e)&&Jc(e.name)?a5e(e.name,t):t}function ga(e){return e?e.transformFlags:0}function nfe(e){let t=0;for(const r of e)t|=tr(r);e.transformFlags=t}function rfe(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function HD(e){return e.flags|=16,e}function PH(e,t,r){let i,a,o,l,u,f,g,m,y,x;$s(e)?(o="",l=e,u=e.length,f=t,g=r):(E.assert(t==="js"||t==="dts"),o=(t==="js"?e.javascriptPath:e.declarationPath)||"",f=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(E.assert(r===void 0||typeof r=="boolean"),i=r,a=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,x=e.oldFileOfCurrentEmit));const k=x?c5e(E.checkDefined(a)):o5e(a,i,u);return k.fileName=o,k.sourceMapPath=f,k.oldFileOfCurrentEmit=x,m&&y?(Object.defineProperty(k,"text",{get:m}),Object.defineProperty(k,"sourceMapText",{get:y})):(E.assert(!x),k.text=l!=null?l:"",k.sourceMapText=g),k}function o5e(e,t,r){let i,a,o,l,u,f,g,m;for(const x of e?e.sections:Ve)switch(x.kind){case"prologue":i=gn(i,Ke(I.createUnparsedPrologue(x.data),x));break;case"emitHelpers":a=gn(a,VH().get(x.data));break;case"no-default-lib":m=!0;break;case"reference":o=gn(o,{pos:-1,end:-1,fileName:x.data});break;case"type":l=gn(l,{pos:-1,end:-1,fileName:x.data});break;case"type-import":l=gn(l,{pos:-1,end:-1,fileName:x.data,resolutionMode:99});break;case"type-require":l=gn(l,{pos:-1,end:-1,fileName:x.data,resolutionMode:1});break;case"lib":u=gn(u,{pos:-1,end:-1,fileName:x.data});break;case"prepend":let k;for(const C of x.texts)(!t||C.kind!=="internal")&&(k=gn(k,Ke(I.createUnparsedTextLike(C.data,C.kind==="internal"),C)));f=Lr(f,k),g=gn(g,I.createUnparsedPrepend(x.data,k!=null?k:Ve));break;case"internal":if(t){g||(g=[]);break}case"text":g=gn(g,Ke(I.createUnparsedTextLike(x.data,x.kind==="internal"),x));break;default:E.assertNever(x)}if(!g){const x=I.createUnparsedTextLike(void 0,!1);j3(x,0,typeof r=="function"?r():r),g=[x]}const y=Cm.createUnparsedSource(i!=null?i:Ve,void 0,g);return B6(i,y),B6(g,y),B6(f,y),y.hasNoDefaultLib=m,y.helpers=a,y.referencedFiles=o||Ve,y.typeReferenceDirectives=l,y.libReferenceDirectives=u||Ve,y}function c5e(e){let t,r;for(const a of e.sections)switch(a.kind){case"internal":case"text":t=gn(t,Ke(I.createUnparsedTextLike(a.data,a.kind==="internal"),a));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=gn(r,Ke(I.createUnparsedSyntheticReference(a),a));break;case"prologue":case"emitHelpers":case"prepend":break;default:E.assertNever(a)}const i=I.createUnparsedSource(Ve,r,t!=null?t:Ve);return B6(r,i),B6(t,i),i.helpers=an(e.sources&&e.sources.helpers,a=>VH().get(a)),i}function l5e(e,t,r,i,a,o){return $s(e)?OH(void 0,e,r,i,void 0,t,a,o):IH(e,t,r,i,a,o)}function IH(e,t,r,i,a,o,l,u){const f=Cm.createInputFiles();f.javascriptPath=t,f.javascriptMapPath=r,f.declarationPath=i,f.declarationMapPath=a,f.buildInfoPath=o;const g=new Map,m=C=>{if(C===void 0)return;let N=g.get(C);return N===void 0&&(N=e(C),g.set(C,N!==void 0?N:!1)),N!==!1?N:void 0},y=C=>{const N=m(C);return N!==void 0?N:`/* Input file ${C} was missing */\r -`};let x;return Object.defineProperties(f,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>y(E.checkDefined(i))},declarationMapText:{get:()=>m(a)},buildInfo:{get:()=>{var C,N;if(x===void 0&&o)if(l!=null&&l.getBuildInfo)x=(C=l.getBuildInfo(o,u.configFilePath))!=null?C:!1;else{const D=m(o);x=D!==void 0&&(N=BL(o,D))!=null?N:!1}return x||void 0}}}),f}function OH(e,t,r,i,a,o,l,u,f,g,m){const y=Cm.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=r,y.javascriptMapText=i,y.declarationPath=a,y.declarationText=o,y.declarationMapPath=l,y.declarationMapText=u,y.buildInfoPath=f,y.buildInfo=g,y.oldFileOfCurrentEmit=m,y}function _5e(e,t,r){return new(sfe||(sfe=Ol.getSourceMapSourceConstructor()))(e,t,r)}function or(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=u5e(r,e.emitNode))}return e}function u5e(e,t){const{flags:r,internalFlags:i,leadingComments:a,trailingComments:o,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:f,constantValue:g,helpers:m,startsOnNewLine:y,snippetElement:x,classThis:k,assignedName:C}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),a&&(t.leadingComments=Lr(a.slice(),t.leadingComments)),o&&(t.trailingComments=Lr(o.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),f&&(t.tokenSourceMapRanges=f5e(f,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),m)for(const N of m)t.helpers=Rg(t.helpers,N);return y!==void 0&&(t.startsOnNewLine=y),x!==void 0&&(t.snippetElement=x),k&&(t.classThis=k),C&&(t.assignedName=C),t}function f5e(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var GD,FH,LH,Qg,MH,G3,ife,I,sfe,p5e=Bt({"src/compiler/factory/nodeFactory.ts"(){Os(),GD=0,FH=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(FH||{}),LH=[],MH={},G3=Kue(),ife={createBaseSourceFileNode:e=>HD(G3.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>HD(G3.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>HD(G3.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>HD(G3.createBaseTokenNode(e)),createBaseNode:e=>HD(G3.createBaseNode(e))},I=qD(4,ife)}});function e_(e){var t;if(e.emitNode)E.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(VC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const r=(t=Bn(es(Bn(e))))!=null?t:E.fail("Could not determine parsed source file.");e_(r).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function RH(e){var t,r;const i=(r=(t=Bn(es(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const a of i)a.emitNode=void 0}function $D(e){const t=e_(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Xn(e,t){return e_(e).flags=t,e}function xm(e,t){const r=e_(e);return r.flags=r.flags|t,e}function XD(e,t){return e_(e).internalFlags=t,e}function Zx(e,t){const r=e_(e);return r.internalFlags=r.internalFlags|t,e}function Cy(e){var r;var t;return(r=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?r:e}function Ca(e,t){return e_(e).sourceMapRange=t,e}function d5e(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function afe(e,t,r){var o;const i=e_(e),a=(o=i.tokenSourceMapRanges)!=null?o:i.tokenSourceMapRanges=[];return a[t]=r,e}function $3(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function LO(e,t){return e_(e).startsOnNewLine=t,e}function Rd(e){var r;var t;return(r=(t=e.emitNode)==null?void 0:t.commentRange)!=null?r:e}function Xc(e,t){return e_(e).commentRange=t,e}function q6(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function Ey(e,t){return e_(e).leadingComments=t,e}function X3(e,t,r,i){return Ey(e,gn(q6(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function QD(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function Kx(e,t){return e_(e).trailingComments=t,e}function MO(e,t,r,i){return Kx(e,gn(QD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function ofe(e,t){Ey(e,q6(t)),Kx(e,QD(t));const r=e_(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function cfe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function lfe(e,t){const r=e_(e);return r.constantValue=t,e}function eS(e,t){const r=e_(e);return r.helpers=gn(r.helpers,t),e}function Yg(e,t){if(dt(t)){const r=e_(e);for(const i of t)r.helpers=Rg(r.helpers,i)}return e}function m5e(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?mI(i,t):!1}function RO(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function _fe(e,t,r){const i=e.emitNode,a=i&&i.helpers;if(!dt(a))return;const o=e_(t);let l=0;for(let u=0;u0&&(a[u-l]=f)}l>0&&(a.length-=l)}function BH(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function jH(e,t){const r=e_(e);return r.snippetElement=t,e}function JH(e){return e_(e).internalFlags|=4,e}function ufe(e,t){const r=e_(e);return r.typeNode=t,e}function ffe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function th(e,t){return e_(e).identifierTypeArguments=t,e}function $b(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function YD(e,t){return e_(e).autoGenerate=t,e}function g5e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function pfe(e,t){return e_(e).generatedImportReference=t,e}function dfe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var h5e=Bt({"src/compiler/factory/emitNode.ts"(){Os()}});function mfe(e){const t=e.factory,r=wu(()=>XD(t.createTrue(),8)),i=wu(()=>XD(t.createFalse(),8));return{getUnscopedHelperName:a,createDecorateHelper:o,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:N,createRunInitializersHelper:D,createAssignHelper:M,createAwaitHelper:V,createAsyncGeneratorHelper:U,createAsyncDelegatorHelper:Y,createAsyncValuesHelper:j,createRestHelper:ee,createAwaiterHelper:R,createExtendsHelper:Z,createTemplateObjectHelper:oe,createSpreadArrayHelper:_e,createPropKeyHelper:X,createSetFunctionNameHelper:H,createValuesHelper:Q,createReadHelper:re,createGeneratorHelper:ue,createCreateBindingHelper:fe,createImportStarHelper:G,createImportStarCallbackHelper:Ne,createImportDefaultHelper:De,createExportStarHelper:Xe,createClassPrivateFieldGetHelper:ve,createClassPrivateFieldSetHelper:be,createClassPrivateFieldInHelper:xe,createAddDisposableResourceHelper:rt,createDisposeResourcesHelper:ct};function a(pe){return Xn(t.createIdentifier(pe),8196)}function o(pe,Pe,Ge,tt){e.requestEmitHelper(BO);const mt=[];return mt.push(t.createArrayLiteralExpression(pe,!0)),mt.push(Pe),Ge&&(mt.push(Ge),tt&&mt.push(tt)),t.createCallExpression(a("__decorate"),void 0,mt)}function l(pe,Pe){return e.requestEmitHelper(jO),t.createCallExpression(a("__metadata"),void 0,[t.createStringLiteral(pe),Pe])}function u(pe,Pe,Ge){return e.requestEmitHelper(JO),Ke(t.createCallExpression(a("__param"),void 0,[t.createNumericLiteral(Pe+""),pe]),Ge)}function f(pe){const Pe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),pe.name),t.createPropertyAssignment(t.createIdentifier("metadata"),pe.metadata)];return t.createObjectLiteralExpression(Pe)}function g(pe){const Pe=pe.computed?t.createElementAccessExpression(t.createIdentifier("obj"),pe.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),pe.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Pe))}function m(pe){const Pe=pe.computed?t.createElementAccessExpression(t.createIdentifier("obj"),pe.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),pe.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(Pe,t.createIdentifier("value")))])))}function y(pe){const Pe=pe.computed?pe.name:we(pe.name)?t.createStringLiteralFromNode(pe.name):pe.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(Pe,103,t.createIdentifier("obj"))))}function x(pe,Pe){const Ge=[];return Ge.push(y(pe)),Pe.get&&Ge.push(g(pe)),Pe.set&&Ge.push(m(pe)),t.createObjectLiteralExpression(Ge)}function k(pe){const Pe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(pe.kind)),t.createPropertyAssignment(t.createIdentifier("name"),pe.name.computed?pe.name.name:t.createStringLiteralFromNode(pe.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),pe.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),pe.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),x(pe.name,pe.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),pe.metadata)];return t.createObjectLiteralExpression(Pe)}function C(pe){return pe.kind==="class"?f(pe):k(pe)}function N(pe,Pe,Ge,tt,mt,Je){return e.requestEmitHelper(zO),t.createCallExpression(a("__esDecorate"),void 0,[pe!=null?pe:t.createNull(),Pe!=null?Pe:t.createNull(),Ge,C(tt),mt,Je])}function D(pe,Pe,Ge){return e.requestEmitHelper(VO),t.createCallExpression(a("__runInitializers"),void 0,Ge?[pe,Pe,Ge]:[pe,Pe])}function M(pe){return Oa(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,pe):(e.requestEmitHelper(UO),t.createCallExpression(a("__assign"),void 0,pe))}function V(pe){return e.requestEmitHelper(tS),t.createCallExpression(a("__await"),void 0,[pe])}function U(pe,Pe){return e.requestEmitHelper(tS),e.requestEmitHelper(WO),(pe.emitNode||(pe.emitNode={})).flags|=1572864,t.createCallExpression(a("__asyncGenerator"),void 0,[Pe?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),pe])}function Y(pe){return e.requestEmitHelper(tS),e.requestEmitHelper(qO),t.createCallExpression(a("__asyncDelegator"),void 0,[pe])}function j(pe){return e.requestEmitHelper(HO),t.createCallExpression(a("__asyncValues"),void 0,[pe])}function ee(pe,Pe,Ge,tt){e.requestEmitHelper(GO);const mt=[];let Je=0;for(let at=0;at{let i="";for(let a=0;ae.name))}function Q3(e,t){return js(e)&&we(e.expression)&&(ma(e.expression)&8192)!==0&&e.expression.escapedText===t}var UH,BO,jO,JO,zO,VO,UO,tS,WO,qO,HO,GO,$O,XO,QO,YO,ZO,KO,eF,tF,nF,H6,rF,ZD,iF,sF,aF,oF,cF,lF,_F,hfe,KD,eA,y5e=Bt({"src/compiler/factory/emitHelpers.ts"(){Os(),UH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(UH||{}),BO={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` +`,Ol={getNodeConstructor:()=>zq,getTokenConstructor:()=>PAe,getIdentifierConstructor:()=>IAe,getPrivateIdentifierConstructor:()=>zq,getSourceFileConstructor:()=>zq,getSymbolConstructor:()=>DAe,getTypeConstructor:()=>AAe,getSignatureConstructor:()=>NAe,getSourceMapSourceConstructor:()=>OAe},TH=[],NO=/[^\w\s/]/g,Xue=[42,63],xH=["node_modules","bower_components","jspm_packages"],PO=`(?!(${xH.join("|")})(/|$))`,SH={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${PO}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Xq(e,SH.singleAsteriskRegexFragment)},kH={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${PO}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Xq(e,kH.singleAsteriskRegexFragment)},CH={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Xq(e,CH.singleAsteriskRegexFragment)},EH={files:SH,directories:kH,exclude:CH},W6=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],wH=bp(W6),Que=[...W6,[".json"]],Yue=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],DH=[[".js",".jsx"],[".mjs"],[".cjs"]],q6=bp(DH),VD=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Zue=[...VD,[".json"]],UD=[".d.ts",".d.cts",".d.mts"],WD=[".ts",".cts",".mts",".tsx"],qD=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],AH=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(AH||{}),IO=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],OO={files:Ve,directories:Ve}}});function Kue(){let e,t,r,i,a;return{createBaseSourceFileNode:o,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:f,createBaseNode:g};function o(m){return new(a||(a=Ol.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=Ol.getIdentifierConstructor()))(m,-1,-1)}function u(m){return new(i||(i=Ol.getPrivateIdentifierConstructor()))(m,-1,-1)}function f(m){return new(t||(t=Ol.getTokenConstructor()))(m,-1,-1)}function g(m){return new(e||(e=Ol.getNodeConstructor()))(m,-1,-1)}}var e5e=Rt({"src/compiler/factory/baseNodeFactory.ts"(){Ls()}});function efe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:a,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:x,parenthesizeBranchOfConditionalExpression:k,parenthesizeExpressionOfExportDefault:C,parenthesizeExpressionOfNew:N,parenthesizeLeftSideOfAccess:D,parenthesizeOperandOfPostfixUnary:M,parenthesizeOperandOfPrefixUnary:V,parenthesizeExpressionsOfCommaDelimitedList:U,parenthesizeExpressionForDisallowedComma:Y,parenthesizeExpressionOfExpressionStatement:j,parenthesizeConciseBodyOfArrowFunction:ee,parenthesizeCheckTypeOfConditionalType:R,parenthesizeExtendsTypeOfConditionalType:Z,parenthesizeConstituentTypesOfUnionType:_e,parenthesizeConstituentTypeOfUnionType:oe,parenthesizeConstituentTypesOfIntersectionType:H,parenthesizeConstituentTypeOfIntersectionType:X,parenthesizeOperandOfTypeOperator:Q,parenthesizeOperandOfReadonlyTypeOperator:ne,parenthesizeNonArrayTypeOfPostfixType:ue,parenthesizeElementTypesOfTupleType:fe,parenthesizeElementTypeOfTupleType:G,parenthesizeTypeOfOptionalType:De,parenthesizeTypeArguments:be,parenthesizeLeadingTypeArgument:Xe};function i(xe){t||(t=new Map);let rt=t.get(xe);return rt||(rt=ct=>g(xe,ct),t.set(xe,rt)),rt}function a(xe){r||(r=new Map);let rt=r.get(xe);return rt||(rt=ct=>m(xe,void 0,ct),r.set(xe,rt)),rt}function o(xe,rt,ct,pe){const Pe=pD(226,xe),Ge=mq(226,xe),tt=Tp(rt);if(!ct&&rt.kind===219&&Pe>3)return!0;const mt=g3(tt);switch(Co(mt,Pe)){case-1:return!(!ct&&Ge===1&&rt.kind===229);case 1:return!1;case 0:if(ct)return Ge===1;if(rr(tt)&&tt.operatorToken.kind===xe){if(l(xe))return!1;if(xe===40){const ot=pe?u(pe):0;if(XC(ot)&&ot===u(tt))return!1}}return dq(tt)===0}}function l(xe){return xe===42||xe===52||xe===51||xe===53||xe===28}function u(xe){if(xe=Tp(xe),XC(xe.kind))return xe.kind;if(xe.kind===226&&xe.operatorToken.kind===40){if(xe.cachedLiteralKind!==void 0)return xe.cachedLiteralKind;const rt=u(xe.left),ct=XC(rt)&&rt===u(xe.right)?rt:0;return xe.cachedLiteralKind=ct,ct}return 0}function f(xe,rt,ct,pe){return Tp(rt).kind===217?rt:o(xe,rt,ct,pe)?e.createParenthesizedExpression(rt):rt}function g(xe,rt){return f(xe,rt,!0)}function m(xe,rt,ct){return f(xe,ct,!1,rt)}function y(xe){return p8(xe)?e.createParenthesizedExpression(xe):xe}function x(xe){const rt=pD(227,58),ct=Tp(xe),pe=g3(ct);return Co(pe,rt)!==1?e.createParenthesizedExpression(xe):xe}function k(xe){const rt=Tp(xe);return p8(rt)?e.createParenthesizedExpression(xe):xe}function C(xe){const rt=Tp(xe);let ct=p8(rt);if(!ct)switch(P3(rt,!1).kind){case 231:case 218:ct=!0}return ct?e.createParenthesizedExpression(xe):xe}function N(xe){const rt=P3(xe,!0);switch(rt.kind){case 213:return e.createParenthesizedExpression(xe);case 214:return rt.arguments?xe:e.createParenthesizedExpression(xe)}return D(xe)}function D(xe,rt){const ct=Tp(xe);return du(ct)&&(ct.kind!==214||ct.arguments)&&(rt||!c_(ct))?xe:Ke(e.createParenthesizedExpression(xe),xe)}function M(xe){return du(xe)?xe:Ke(e.createParenthesizedExpression(xe),xe)}function V(xe){return uW(xe)?xe:Ke(e.createParenthesizedExpression(xe),xe)}function U(xe){const rt=cl(xe,Y);return Ke(e.createNodeArray(rt,xe.hasTrailingComma),xe)}function Y(xe){const rt=Tp(xe),ct=g3(rt),pe=pD(226,28);return ct>pe?xe:Ke(e.createParenthesizedExpression(xe),xe)}function j(xe){const rt=Tp(xe);if(Js(rt)){const pe=rt.expression,Pe=Tp(pe).kind;if(Pe===218||Pe===219){const Ge=e.updateCallExpression(rt,Ke(e.createParenthesizedExpression(pe),pe),rt.typeArguments,rt.arguments);return e.restoreOuterExpressions(xe,Ge,8)}}const ct=P3(rt,!1).kind;return ct===210||ct===218?Ke(e.createParenthesizedExpression(xe),xe):xe}function ee(xe){return!vs(xe)&&(p8(xe)||P3(xe,!1).kind===210)?Ke(e.createParenthesizedExpression(xe),xe):xe}function R(xe){switch(xe.kind){case 184:case 185:case 194:return e.createParenthesizedType(xe)}return xe}function Z(xe){switch(xe.kind){case 194:return e.createParenthesizedType(xe)}return xe}function oe(xe){switch(xe.kind){case 192:case 193:return e.createParenthesizedType(xe)}return R(xe)}function _e(xe){return e.createNodeArray(cl(xe,oe))}function X(xe){switch(xe.kind){case 192:case 193:return e.createParenthesizedType(xe)}return oe(xe)}function H(xe){return e.createNodeArray(cl(xe,X))}function Q(xe){switch(xe.kind){case 193:return e.createParenthesizedType(xe)}return X(xe)}function ne(xe){switch(xe.kind){case 198:return e.createParenthesizedType(xe)}return Q(xe)}function ue(xe){switch(xe.kind){case 195:case 198:case 186:return e.createParenthesizedType(xe)}return Q(xe)}function fe(xe){return e.createNodeArray(cl(xe,G))}function G(xe){return Ne(xe)?e.createParenthesizedType(xe):xe}function Ne(xe){return n4(xe)?xe.postfix:r8(xe)||og(xe)||n8(xe)||uS(xe)?Ne(xe.type):Z6(xe)?Ne(xe.falseType):cS(xe)||sA(xe)?Ne(ka(xe.types)):lS(xe)?!!xe.typeParameter.constraint&&Ne(xe.typeParameter.constraint):!1}function De(xe){return Ne(xe)?e.createParenthesizedType(xe):ue(xe)}function Xe(xe){return Zce(xe)&&xe.typeParameters?e.createParenthesizedType(xe):xe}function ve(xe,rt){return rt===0?Xe(xe):xe}function be(xe){if(dt(xe))return e.createNodeArray(cl(xe,ve))}}var NH,t5e=Rt({"src/compiler/factory/parenthesizerRules.ts"(){Ls(),NH={getParenthesizeLeftSideOfBinaryForOperator:e=>Zo,getParenthesizeRightSideOfBinaryForOperator:e=>Zo,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Zo,parenthesizeConditionOfConditionalExpression:Zo,parenthesizeBranchOfConditionalExpression:Zo,parenthesizeExpressionOfExportDefault:Zo,parenthesizeExpressionOfNew:e=>Bs(e,du),parenthesizeLeftSideOfAccess:e=>Bs(e,du),parenthesizeOperandOfPostfixUnary:e=>Bs(e,du),parenthesizeOperandOfPrefixUnary:e=>Bs(e,uW),parenthesizeExpressionsOfCommaDelimitedList:e=>Bs(e,$v),parenthesizeExpressionForDisallowedComma:Zo,parenthesizeExpressionOfExpressionStatement:Zo,parenthesizeConciseBodyOfArrowFunction:Zo,parenthesizeCheckTypeOfConditionalType:Zo,parenthesizeExtendsTypeOfConditionalType:Zo,parenthesizeConstituentTypesOfUnionType:e=>Bs(e,$v),parenthesizeConstituentTypeOfUnionType:Zo,parenthesizeConstituentTypesOfIntersectionType:e=>Bs(e,$v),parenthesizeConstituentTypeOfIntersectionType:Zo,parenthesizeOperandOfTypeOperator:Zo,parenthesizeOperandOfReadonlyTypeOperator:Zo,parenthesizeNonArrayTypeOfPostfixType:Zo,parenthesizeElementTypesOfTupleType:e=>Bs(e,$v),parenthesizeElementTypeOfTupleType:Zo,parenthesizeTypeOfOptionalType:Zo,parenthesizeTypeArguments:e=>e&&Bs(e,$v),parenthesizeLeadingTypeArgument:Zo}}});function tfe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:a,convertToObjectAssignmentElement:o,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:g};function t(m,y){if(vs(m))return m;const x=e.createReturnStatement(m);Ke(x,m);const k=e.createBlock([x],y);return Ke(k,m),k}function r(m){var y;if(!m.body)return E.fail("Cannot convert a FunctionDeclaration without a body");const x=e.createFunctionExpression((y=Gv(m))==null?void 0:y.filter(k=>!aS(k)&&!dF(k)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return or(x,m),Ke(x,m),Q3(m)&&LO(x,!0),x}function i(m){var y;const x=e.createClassExpression((y=m.modifiers)==null?void 0:y.filter(k=>!aS(k)&&!dF(k)),m.name,m.typeParameters,m.heritageClauses,m.members);return or(x,m),Ke(x,m),Q3(m)&&LO(x,!0),x}function a(m){if(Oa(m)){if(m.dotDotDotToken)return E.assertNode(m.name,we),or(Ke(e.createSpreadElement(m.name),m),m);const y=g(m.name);return m.initializer?or(Ke(e.createAssignment(y,m.initializer),m),m):y}return Bs(m,nt)}function o(m){if(Oa(m)){if(m.dotDotDotToken)return E.assertNode(m.name,we),or(Ke(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){const y=g(m.name);return or(Ke(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(y,m.initializer):y),m),m)}return E.assertNode(m.name,we),or(Ke(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return Bs(m,H0)}function l(m){switch(m.kind){case 207:case 209:return f(m);case 206:case 210:return u(m)}}function u(m){return rd(m)?or(Ke(e.createObjectLiteralExpression(an(m.elements,o)),m),m):Bs(m,ha)}function f(m){return pS(m)?or(Ke(e.createArrayLiteralExpression(an(m.elements,a)),m),m):Bs(m,u_)}function g(m){return Ps(m)?l(m):Bs(m,nt)}}var PH,n5e=Rt({"src/compiler/factory/nodeConverters.ts"(){Ls(),PH={convertToFunctionBlock:ks,convertToFunctionExpression:ks,convertToClassExpression:ks,convertToArrayAssignmentElement:ks,convertToObjectAssignmentElement:ks,convertToAssignmentPattern:ks,convertToObjectAssignmentPattern:ks,convertToArrayAssignmentPattern:ks,convertToAssignmentElementTarget:ks}}});function r5e(e){MH.push(e)}function HD(e,t){const r=e&8?i5e:s5e,i=wu(()=>e&1?NH:efe(M)),a=wu(()=>e&2?PH:tfe(M)),o=lm(v=>(w,L)=>Be(w,v,L)),l=lm(v=>w=>ud(v,w)),u=lm(v=>w=>qd(w,v)),f=lm(v=>()=>kh(v)),g=lm(v=>w=>U2(v,w)),m=lm(v=>(w,L)=>ak(v,w,L)),y=lm(v=>(w,L)=>$T(v,w,L)),x=lm(v=>(w,L)=>sk(v,w,L)),k=lm(v=>(w,L)=>$_(v,w,L)),C=lm(v=>(w,L,ie)=>bg(v,w,L,ie)),N=lm(v=>(w,L,ie)=>gp(v,w,L,ie)),D=lm(v=>(w,L,ie,Ie)=>R1(v,w,L,ie,Ie)),M={get parenthesizer(){return i()},get converters(){return a()},baseFactory:t,flags:e,createNodeArray:V,createNumericLiteral:ee,createBigIntLiteral:R,createStringLiteral:oe,createStringLiteralFromNode:_e,createRegularExpressionLiteral:X,createLiteralLikeNode:H,createIdentifier:ue,createTempVariable:fe,createLoopVariable:G,createUniqueName:Ne,getGeneratedNameForNode:De,createPrivateIdentifier:ve,createUniquePrivateName:xe,getGeneratedPrivateNameForNode:rt,createToken:pe,createSuper:Pe,createThis:Ge,createNull:tt,createTrue:mt,createFalse:Je,createModifier:ot,createModifiersFromModifierFlags:Jt,createQualifiedName:Pt,updateQualifiedName:bt,createComputedPropertyName:_r,updateComputedPropertyName:xn,createTypeParameterDeclaration:Bt,updateTypeParameterDeclaration:er,createParameterDeclaration:xr,updateParameterDeclaration:pi,createDecorator:ki,updateDecorator:Nr,createPropertySignature:pt,updatePropertySignature:ur,createPropertyDeclaration:Ct,updatePropertyDeclaration:cn,createMethodSignature:Pn,updateMethodSignature:Sr,createMethodDeclaration:wi,updateMethodDeclaration:Yt,createConstructorDeclaration:ze,updateConstructorDeclaration:ut,createGetAccessorDeclaration:it,updateGetAccessorDeclaration:Vt,createSetAccessorDeclaration:Me,updateSetAccessorDeclaration:ke,createCallSignature:K,updateCallSignature:$e,createConstructSignature:Ae,updateConstructSignature:ht,createIndexSignature:_t,updateIndexSignature:jt,createClassStaticBlockDeclaration:Sn,updateClassStaticBlockDeclaration:Gr,createTemplateLiteralTypeSpan:Fn,updateTemplateLiteralTypeSpan:Nt,createKeywordTypeNode:hi,createTypePredicateNode:z,updateTypePredicateNode:B,createTypeReferenceNode:le,updateTypeReferenceNode:W,createFunctionTypeNode:ge,updateFunctionTypeNode:F,createConstructorTypeNode:Oe,updateConstructorTypeNode:It,createTypeQueryNode:ir,updateTypeQueryNode:ar,createTypeLiteralNode:jn,updateTypeLiteralNode:oi,createArrayTypeNode:ea,updateArrayTypeNode:gs,createTupleTypeNode:Us,updateTupleTypeNode:Yr,createNamedTupleMember:cs,updateNamedTupleMember:Ms,createOptionalTypeNode:di,updateOptionalTypeNode:ln,createRestTypeNode:tc,updateRestTypeNode:qi,createUnionTypeNode:ro,updateUnionTypeNode:za,createIntersectionTypeNode:Pc,updateIntersectionTypeNode:ls,createConditionalTypeNode:Li,updateConditionalTypeNode:Vc,createInferTypeNode:zo,updateInferTypeNode:L_,createImportTypeNode:Rs,updateImportTypeNode:po,createParenthesizedType:Ba,updateParenthesizedType:Fa,createThisTypeNode:Wt,createTypeOperatorNode:pc,updateTypeOperatorNode:h_,createIndexedAccessTypeNode:M_,updateIndexedAccessTypeNode:q_,createMappedTypeNode:vo,updateMappedTypeNode:$o,createLiteralTypeNode:A,updateLiteralTypeNode:Ce,createTemplateLiteralType:_l,updateTemplateLiteralType:Bf,createObjectBindingPattern:Re,updateObjectBindingPattern:xt,createArrayBindingPattern:yn,updateArrayBindingPattern:Pr,createBindingElement:En,updateBindingElement:gr,createArrayLiteralExpression:ci,updateArrayLiteralExpression:Vr,createObjectLiteralExpression:La,updateObjectLiteralExpression:io,createPropertyAccessExpression:e&4?(v,w)=>Xn(Ic(v,w),262144):Ic,updatePropertyAccessExpression:dc,createPropertyAccessChain:e&4?(v,w,L)=>Xn(Ka(v,w,L),262144):Ka,updatePropertyAccessChain:nc,createElementAccessExpression:Uc,updateElementAccessExpression:Vo,createElementAccessChain:Tu,updateElementAccessChain:he,createCallExpression:vn,updateCallExpression:ji,createCallChain:ws,updateCallChain:Wa,createNewExpression:oc,updateNewExpression:se,createTaggedTemplateExpression:qe,updateTaggedTemplateExpression:gt,createTypeAssertion:Et,updateTypeAssertion:Xt,createParenthesizedExpression:On,updateParenthesizedExpression:Cr,createFunctionExpression:qr,updateFunctionExpression:_i,createArrowFunction:hs,updateArrowFunction:va,createDeleteExpression:Fo,updateDeleteExpression:Ro,createTypeOfExpression:Zc,updateTypeOfExpression:Oc,createVoidExpression:il,updateVoidExpression:Ml,createAwaitExpression:sl,updateAwaitExpression:ju,createPrefixUnaryExpression:ud,updatePrefixUnaryExpression:w1,createPostfixUnaryExpression:qd,updatePostfixUnaryExpression:J,createBinaryExpression:Be,updateBinaryExpression:Jn,createConditionalExpression:xs,updateConditionalExpression:mi,createTemplateExpression:is,updateTemplateExpression:Ss,createTemplateHead:fd,createTemplateMiddle:Hd,createTemplateTail:Lp,createNoSubstitutionTemplateLiteral:Ee,createTemplateLiteralLikeNode:y_,createYieldExpression:je,updateYieldExpression:Ye,createSpreadElement:Mt,updateSpreadElement:rn,createClassExpression:un,updateClassExpression:nn,createOmittedExpression:Vn,createExpressionWithTypeArguments:Br,updateExpressionWithTypeArguments:Gi,createAsExpression:Hn,updateAsExpression:cr,createNonNullExpression:wr,updateNonNullExpression:ta,createSatisfiesExpression:Fc,updateSatisfiesExpression:Xo,createNonNullChain:pg,updateNonNullChain:Gd,createMetaProperty:jf,updateMetaProperty:c0,createTemplateSpan:mh,updateTemplateSpan:FT,createSemicolonClassElement:V4,createBlock:l0,updateBlock:gh,createVariableStatement:Wy,updateVariableStatement:D1,createEmptyStatement:qy,createExpressionStatement:hh,updateExpressionStatement:LT,createIfStatement:KS,updateIfStatement:MT,createDoStatement:RT,updateDoStatement:F2,createWhileStatement:BT,updateWhileStatement:jT,createForStatement:L2,updateForStatement:JT,createForInStatement:zT,updateForInStatement:ek,createForOfStatement:VT,updateForOfStatement:tk,createContinueStatement:A1,updateContinueStatement:Hy,createBreakStatement:yh,updateBreakStatement:Gy,createReturnStatement:M2,updateReturnStatement:_0,createWithStatement:xa,updateWithStatement:R2,createSwitchStatement:vh,updateSwitchStatement:N1,createLabeledStatement:dg,updateLabeledStatement:$d,createThrowStatement:bf,updateThrowStatement:Ju,createTryStatement:lu,updateTryStatement:xu,createDebuggerStatement:$y,createVariableDeclaration:Xy,updateVariableDeclaration:U4,createVariableDeclarationList:Qy,updateVariableDeclarationList:UT,createFunctionDeclaration:P1,updateFunctionDeclaration:Yy,createClassDeclaration:WT,updateClassDeclaration:j2,createInterfaceDeclaration:bh,updateInterfaceDeclaration:al,createTypeAliasDeclaration:Fe,updateTypeAliasDeclaration:u0,createEnumDeclaration:Tf,updateEnumDeclaration:Th,createModuleDeclaration:v_,updateModuleDeclaration:fp,createModuleBlock:b_,updateModuleBlock:f0,createCaseBlock:nk,updateCaseBlock:Pa,createNamespaceExportDeclaration:pp,updateNamespaceExportDeclaration:qT,createImportEqualsDeclaration:HT,updateImportEqualsDeclaration:Zy,createImportDeclaration:mg,updateImportDeclaration:Ky,createImportClause:pd,updateImportClause:Nm,createAssertClause:xf,updateAssertClause:I1,createAssertEntry:GT,updateAssertEntry:Mi,createImportTypeAssertionContainer:jr,updateImportTypeAssertionContainer:Xd,createNamespaceImport:G_,updateNamespaceImport:W4,createNamespaceExport:Qd,updateNamespaceExport:q4,createNamedImports:J2,updateNamedImports:Lc,createImportSpecifier:O1,updateImportSpecifier:z2,createExportAssignment:Su,updateExportAssignment:Mp,createExportDeclaration:T_,updateExportDeclaration:xh,createNamedExports:p0,updateNamedExports:F1,createExportSpecifier:Sh,updateExportSpecifier:d0,createMissingDeclaration:ik,createExternalModuleReference:dd,updateExternalModuleReference:Pm,get createJSDocAllType(){return f(319)},get createJSDocUnknownType(){return f(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return x(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return x(321)},get createJSDocOptionalType(){return g(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return g(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return g(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:so,updateJSDocFunctionType:ev,createJSDocTypeLiteral:dp,updateJSDocTypeLiteral:tv,createJSDocTypeExpression:nv,updateJSDocTypeExpression:H4,createJSDocSignature:ok,updateJSDocSignature:W2,createJSDocTemplateTag:Rp,updateJSDocTemplateTag:L1,createJSDocTypedefTag:Yd,updateJSDocTypedefTag:qn,createJSDocParameterTag:rv,updateJSDocParameterTag:iv,createJSDocPropertyTag:ul,updateJSDocPropertyTag:md,createJSDocCallbackTag:Bp,updateJSDocCallbackTag:q2,createJSDocOverloadTag:sv,updateJSDocOverloadTag:gg,createJSDocAugmentsTag:Ch,updateJSDocAugmentsTag:ck,createJSDocImplementsTag:gd,updateJSDocImplementsTag:ku,createJSDocSeeTag:m0,updateJSDocSeeTag:hg,createJSDocNameReference:XT,updateJSDocNameReference:yg,createJSDocMemberName:g0,updateJSDocMemberName:H2,createJSDocLink:QT,updateJSDocLink:vg,createJSDocLinkCode:mp,updateJSDocLinkCode:Mc,createJSDocLinkPlain:hl,updateJSDocLinkPlain:M1,get createJSDocTypeTag(){return N(351)},get updateJSDocTypeTag(){return D(351)},get createJSDocReturnTag(){return N(349)},get updateJSDocReturnTag(){return D(349)},get createJSDocThisTag(){return N(350)},get updateJSDocThisTag(){return D(350)},get createJSDocAuthorTag(){return k(337)},get updateJSDocAuthorTag(){return C(337)},get createJSDocClassTag(){return k(339)},get updateJSDocClassTag(){return C(339)},get createJSDocPublicTag(){return k(340)},get updateJSDocPublicTag(){return C(340)},get createJSDocPrivateTag(){return k(341)},get updateJSDocPrivateTag(){return C(341)},get createJSDocProtectedTag(){return k(342)},get updateJSDocProtectedTag(){return C(342)},get createJSDocReadonlyTag(){return k(343)},get updateJSDocReadonlyTag(){return C(343)},get createJSDocOverrideTag(){return k(344)},get updateJSDocOverrideTag(){return C(344)},get createJSDocDeprecatedTag(){return k(338)},get updateJSDocDeprecatedTag(){return C(338)},get createJSDocThrowsTag(){return N(356)},get updateJSDocThrowsTag(){return D(356)},get createJSDocSatisfiesTag(){return N(357)},get updateJSDocSatisfiesTag(){return D(357)},createJSDocEnumTag:fl,updateJSDocEnumTag:h0,createJSDocUnknownTag:Tg,updateJSDocUnknownTag:G2,createJSDocText:Im,updateJSDocText:$2,createJSDocComment:Qo,updateJSDocComment:xg,createJsxElement:YT,updateJsxElement:B1,createJsxSelfClosingElement:lk,updateJsxSelfClosingElement:r_,createJsxOpeningElement:y0,updateJsxOpeningElement:Eh,createJsxClosingElement:Sg,updateJsxClosingElement:lf,createJsxFragment:X2,createJsxText:j1,updateJsxText:ov,createJsxOpeningFragment:cv,createJsxJsxClosingFragment:Sf,updateJsxFragment:av,createJsxAttribute:ZT,updateJsxAttribute:Q2,createJsxAttributes:KT,updateJsxAttributes:lv,createJsxSpreadAttribute:zu,updateJsxSpreadAttribute:Zd,createJsxExpression:J1,updateJsxExpression:_k,createJsxNamespacedName:Ma,updateJsxNamespacedName:vr,createCaseClause:Cu,updateCaseClause:X_,createDefaultClause:z1,updateDefaultClause:Y2,createHeritageClause:Z2,updateHeritageClause:ex,createCatchClause:wh,updateCatchClause:Vu,createPropertyAssignment:Q_,updatePropertyAssignment:_v,createShorthandPropertyAssignment:_f,updateShorthandPropertyAssignment:kg,createSpreadAssignment:Uo,updateSpreadAssignment:Jf,createEnumMember:uk,updateEnumMember:zf,createSourceFile:K2,updateSourceFile:fk,createRedirectedSourceFile:Dh,createBundle:V1,updateBundle:_u,createUnparsedSource:Fm,createUnparsedPrologue:pk,createUnparsedPrepend:nb,createUnparsedTextLike:rb,createUnparsedSyntheticReference:S,createInputFiles:te,createSyntheticExpression:et,createSyntaxList:Ut,createNotEmittedStatement:hr,createPartiallyEmittedExpression:vi,updatePartiallyEmittedExpression:Qr,createCommaListExpression:zs,updateCommaListExpression:ii,createSyntheticReferenceExpression:Rl,updateSyntheticReferenceExpression:Cn,cloneNode:ib,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:dk,createImmediatelyInvokedArrowFunction:Eg,createVoidZero:v0,createExportDefault:U1,createExternalModuleExport:W1,createTypeCheck:fv,createIsNotTypeCheck:G4,createMethodCall:q1,createGlobalMethodCall:Vf,createFunctionBindCall:pv,createFunctionCallCall:hd,createFunctionApplyCall:$4,createArraySliceCall:mk,createArrayConcatCall:$N,createObjectDefinePropertyCall:Kd,createObjectGetOwnPropertyDescriptorCall:nx,createReflectGetCall:XN,createReflectSetCall:Wc,createPropertyDescriptor:X4,createCallBinding:Dt,createAssignmentTargetWrapper:Kt,inlineExpressions:Ir,getInternalName:si,getLocalName:ui,getExportName:as,getDeclarationName:ao,getNamespaceMemberName:Ha,getExternalModuleOrNamespaceExportName:Za,restoreOuterExpressions:de,restoreEnclosingLabel:Le,createUseStrictPrologue:em,copyPrologue:R_,copyStandardPrologue:jp,copyCustomPrologue:b0,ensureUseStrict:T0,liftToBlock:mv,mergeLexicalEnvironment:IE,updateModifiers:gk,updateModifierLike:hk};return pn(MH,v=>v(M)),M;function V(v,w){if(v===void 0||v===Ve)v=[];else if($v(v)){if(w===void 0||v.hasTrailingComma===w)return v.transformFlags===void 0&&nfe(v),E.attachNodeArrayDebugInfo(v),v;const Ie=v.slice();return Ie.pos=v.pos,Ie.end=v.end,Ie.hasTrailingComma=w,Ie.transformFlags=v.transformFlags,E.attachNodeArrayDebugInfo(Ie),Ie}const L=v.length,ie=L>=1&&L<=4?v.slice():v;return ie.pos=-1,ie.end=-1,ie.hasTrailingComma=!!w,ie.transformFlags=0,nfe(ie),E.attachNodeArrayDebugInfo(ie),ie}function U(v){return t.createBaseNode(v)}function Y(v){const w=U(v);return w.symbol=void 0,w.localSymbol=void 0,w}function j(v,w){return v!==w&&(v.typeArguments=w.typeArguments),r(v,w)}function ee(v,w=0){const L=typeof v=="number"?v+"":v;E.assert(L.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ie=Y(9);return ie.text=L,ie.numericLiteralFlags=w,w&384&&(ie.transformFlags|=1024),ie}function R(v){const w=ct(10);return w.text=typeof v=="string"?v:u2(v)+"n",w.transformFlags|=32,w}function Z(v,w){const L=Y(11);return L.text=v,L.singleQuote=w,L}function oe(v,w,L){const ie=Z(v,w);return ie.hasExtendedUnicodeEscape=L,L&&(ie.transformFlags|=1024),ie}function _e(v){const w=Z(Cp(v),void 0);return w.textSourceNode=v,w}function X(v){const w=ct(14);return w.text=v,w}function H(v,w){switch(v){case 9:return ee(w,0);case 10:return R(w);case 11:return oe(w,void 0);case 12:return j1(w,!1);case 13:return j1(w,!0);case 14:return X(w);case 15:return y_(v,w,void 0,0)}}function Q(v){const w=t.createBaseIdentifierNode(80);return w.escapedText=v,w.jsDoc=void 0,w.flowNode=void 0,w.symbol=void 0,w}function ne(v,w,L,ie){const Ie=Q(Ho(v));return ZD(Ie,{flags:w,id:$D,prefix:L,suffix:ie}),$D++,Ie}function ue(v,w,L){w===void 0&&v&&(w=qv(v)),w===80&&(w=void 0);const ie=Q(Ho(v));return L&&(ie.flags|=256),ie.escapedText==="await"&&(ie.transformFlags|=67108864),ie.flags&256&&(ie.transformFlags|=1024),ie}function fe(v,w,L,ie){let Ie=1;w&&(Ie|=8);const Ot=ne("",Ie,L,ie);return v&&v(Ot),Ot}function G(v){let w=2;return v&&(w|=8),ne("",w,void 0,void 0)}function Ne(v,w=0,L,ie){return E.assert(!(w&7),"Argument out of range: flags"),E.assert((w&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),ne(v,3|w,L,ie)}function De(v,w=0,L,ie){E.assert(!(w&7),"Argument out of range: flags");const Ie=v?Qm(v)?Ly(!1,L,v,ie,lr):`generated@${Ra(v)}`:"";(L||ie)&&(w|=16);const Ot=ne(Ie,4|w,L,ie);return Ot.original=v,Ot}function Xe(v){const w=t.createBasePrivateIdentifierNode(81);return w.escapedText=v,w.transformFlags|=16777216,w}function ve(v){return ns(v,"#")||E.fail("First character of private identifier must be #: "+v),Xe(Ho(v))}function be(v,w,L,ie){const Ie=Xe(Ho(v));return ZD(Ie,{flags:w,id:$D,prefix:L,suffix:ie}),$D++,Ie}function xe(v,w,L){v&&!ns(v,"#")&&E.fail("First character of private identifier must be #: "+v);const ie=8|(v?3:1);return be(v!=null?v:"",ie,w,L)}function rt(v,w,L){const ie=Qm(v)?Ly(!0,w,v,L,lr):`#generated@${Ra(v)}`,Ot=be(ie,4|(w||L?16:0),w,L);return Ot.original=v,Ot}function ct(v){return t.createBaseTokenNode(v)}function pe(v){E.assert(v>=0&&v<=165,"Invalid token"),E.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),E.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),E.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const w=ct(v);let L=0;switch(v){case 134:L=384;break;case 160:L=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:L=1;break;case 108:L=134218752,w.flowNode=void 0;break;case 126:L=1024;break;case 129:L=16777216;break;case 110:L=16384,w.flowNode=void 0;break}return L&&(w.transformFlags|=L),w}function Pe(){return pe(108)}function Ge(){return pe(110)}function tt(){return pe(106)}function mt(){return pe(112)}function Je(){return pe(97)}function ot(v){return pe(v)}function Jt(v){const w=[];return v&1&&w.push(ot(95)),v&2&&w.push(ot(138)),v&1024&&w.push(ot(90)),v&2048&&w.push(ot(87)),v&4&&w.push(ot(125)),v&8&&w.push(ot(123)),v&16&&w.push(ot(124)),v&256&&w.push(ot(128)),v&32&&w.push(ot(126)),v&16384&&w.push(ot(164)),v&64&&w.push(ot(148)),v&128&&w.push(ot(129)),v&512&&w.push(ot(134)),v&32768&&w.push(ot(103)),v&65536&&w.push(ot(147)),w.length?w:void 0}function Pt(v,w){const L=U(166);return L.left=v,L.right=bo(w),L.transformFlags|=nr(L.left)|$3(L.right),L.flowNode=void 0,L}function bt(v,w,L){return v.left!==w||v.right!==L?r(Pt(w,L),v):v}function _r(v){const w=U(167);return w.expression=i().parenthesizeExpressionOfComputedPropertyName(v),w.transformFlags|=nr(w.expression)|1024|131072,w}function xn(v,w){return v.expression!==w?r(_r(w),v):v}function Bt(v,w,L,ie){const Ie=Y(168);return Ie.modifiers=Sa(v),Ie.name=bo(w),Ie.constraint=L,Ie.default=ie,Ie.transformFlags=1,Ie.expression=void 0,Ie.jsDoc=void 0,Ie}function er(v,w,L,ie,Ie){return v.modifiers!==w||v.name!==L||v.constraint!==ie||v.default!==Ie?r(Bt(w,L,ie,Ie),v):v}function xr(v,w,L,ie,Ie,Ot){var Ci,eo;const Qn=Y(169);return Qn.modifiers=Sa(v),Qn.dotDotDotToken=w,Qn.name=bo(L),Qn.questionToken=ie,Qn.type=Ie,Qn.initializer=rx(Ot),c2(Qn.name)?Qn.transformFlags=1:Qn.transformFlags=ga(Qn.modifiers)|nr(Qn.dotDotDotToken)|th(Qn.name)|nr(Qn.questionToken)|nr(Qn.initializer)|(((Ci=Qn.questionToken)!=null?Ci:Qn.type)?1:0)|(((eo=Qn.dotDotDotToken)!=null?eo:Qn.initializer)?1024:0)|(Ld(Qn.modifiers)&16476?8192:0),Qn.jsDoc=void 0,Qn}function pi(v,w,L,ie,Ie,Ot,Qn){return v.modifiers!==w||v.dotDotDotToken!==L||v.name!==ie||v.questionToken!==Ie||v.type!==Ot||v.initializer!==Qn?r(xr(w,L,ie,Ie,Ot,Qn),v):v}function ki(v){const w=U(170);return w.expression=i().parenthesizeLeftSideOfAccess(v,!1),w.transformFlags|=nr(w.expression)|1|8192|33554432,w}function Nr(v,w){return v.expression!==w?r(ki(w),v):v}function pt(v,w,L,ie){const Ie=Y(171);return Ie.modifiers=Sa(v),Ie.name=bo(w),Ie.type=ie,Ie.questionToken=L,Ie.transformFlags=1,Ie.initializer=void 0,Ie.jsDoc=void 0,Ie}function ur(v,w,L,ie,Ie){return v.modifiers!==w||v.name!==L||v.questionToken!==ie||v.type!==Ie?hn(pt(w,L,ie,Ie),v):v}function hn(v,w){return v!==w&&(v.initializer=w.initializer),r(v,w)}function Ct(v,w,L,ie,Ie){const Ot=Y(172);Ot.modifiers=Sa(v),Ot.name=bo(w),Ot.questionToken=L&&f1(L)?L:void 0,Ot.exclamationToken=L&&rA(L)?L:void 0,Ot.type=ie,Ot.initializer=rx(Ie);const Qn=Ot.flags&33554432||Ld(Ot.modifiers)&2;return Ot.transformFlags=ga(Ot.modifiers)|th(Ot.name)|nr(Ot.initializer)|(Qn||Ot.questionToken||Ot.exclamationToken||Ot.type?1:0)|(Ga(Ot.name)||Ld(Ot.modifiers)&32&&Ot.initializer?8192:0)|16777216,Ot.jsDoc=void 0,Ot}function cn(v,w,L,ie,Ie,Ot){return v.modifiers!==w||v.name!==L||v.questionToken!==(ie!==void 0&&f1(ie)?ie:void 0)||v.exclamationToken!==(ie!==void 0&&rA(ie)?ie:void 0)||v.type!==Ie||v.initializer!==Ot?r(Ct(w,L,ie,Ie,Ot),v):v}function Pn(v,w,L,ie,Ie,Ot){const Qn=Y(173);return Qn.modifiers=Sa(v),Qn.name=bo(w),Qn.questionToken=L,Qn.typeParameters=Sa(ie),Qn.parameters=Sa(Ie),Qn.type=Ot,Qn.transformFlags=1,Qn.jsDoc=void 0,Qn.locals=void 0,Qn.nextContainer=void 0,Qn.typeArguments=void 0,Qn}function Sr(v,w,L,ie,Ie,Ot,Qn){return v.modifiers!==w||v.name!==L||v.questionToken!==ie||v.typeParameters!==Ie||v.parameters!==Ot||v.type!==Qn?j(Pn(w,L,ie,Ie,Ot,Qn),v):v}function wi(v,w,L,ie,Ie,Ot,Qn,Ci){const eo=Y(174);if(eo.modifiers=Sa(v),eo.asteriskToken=w,eo.name=bo(L),eo.questionToken=ie,eo.exclamationToken=void 0,eo.typeParameters=Sa(Ie),eo.parameters=V(Ot),eo.type=Qn,eo.body=Ci,!eo.body)eo.transformFlags=1;else{const zp=Ld(eo.modifiers)&512,x0=!!eo.asteriskToken,hp=zp&&x0;eo.transformFlags=ga(eo.modifiers)|nr(eo.asteriskToken)|th(eo.name)|nr(eo.questionToken)|ga(eo.typeParameters)|ga(eo.parameters)|nr(eo.type)|nr(eo.body)&-67108865|(hp?128:zp?256:x0?2048:0)|(eo.questionToken||eo.typeParameters||eo.type?1:0)|1024}return eo.typeArguments=void 0,eo.jsDoc=void 0,eo.locals=void 0,eo.nextContainer=void 0,eo.flowNode=void 0,eo.endFlowNode=void 0,eo.returnFlowNode=void 0,eo}function Yt(v,w,L,ie,Ie,Ot,Qn,Ci,eo){return v.modifiers!==w||v.asteriskToken!==L||v.name!==ie||v.questionToken!==Ie||v.typeParameters!==Ot||v.parameters!==Qn||v.type!==Ci||v.body!==eo?Gt(wi(w,L,ie,Ie,Ot,Qn,Ci,eo),v):v}function Gt(v,w){return v!==w&&(v.exclamationToken=w.exclamationToken),r(v,w)}function Sn(v){const w=Y(175);return w.body=v,w.transformFlags=nr(v)|16777216,w.modifiers=void 0,w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w.endFlowNode=void 0,w.returnFlowNode=void 0,w}function Gr(v,w){return v.body!==w?Er(Sn(w),v):v}function Er(v,w){return v!==w&&(v.modifiers=w.modifiers),r(v,w)}function ze(v,w,L){const ie=Y(176);return ie.modifiers=Sa(v),ie.parameters=V(w),ie.body=L,ie.transformFlags=ga(ie.modifiers)|ga(ie.parameters)|nr(ie.body)&-67108865|1024,ie.typeParameters=void 0,ie.type=void 0,ie.typeArguments=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.returnFlowNode=void 0,ie}function ut(v,w,L,ie){return v.modifiers!==w||v.parameters!==L||v.body!==ie?kt(ze(w,L,ie),v):v}function kt(v,w){return v!==w&&(v.typeParameters=w.typeParameters,v.type=w.type),j(v,w)}function it(v,w,L,ie,Ie){const Ot=Y(177);return Ot.modifiers=Sa(v),Ot.name=bo(w),Ot.parameters=V(L),Ot.type=ie,Ot.body=Ie,Ot.body?Ot.transformFlags=ga(Ot.modifiers)|th(Ot.name)|ga(Ot.parameters)|nr(Ot.type)|nr(Ot.body)&-67108865|(Ot.type?1:0):Ot.transformFlags=1,Ot.typeArguments=void 0,Ot.typeParameters=void 0,Ot.jsDoc=void 0,Ot.locals=void 0,Ot.nextContainer=void 0,Ot.flowNode=void 0,Ot.endFlowNode=void 0,Ot.returnFlowNode=void 0,Ot}function Vt(v,w,L,ie,Ie,Ot){return v.modifiers!==w||v.name!==L||v.parameters!==ie||v.type!==Ie||v.body!==Ot?ae(it(w,L,ie,Ie,Ot),v):v}function ae(v,w){return v!==w&&(v.typeParameters=w.typeParameters),j(v,w)}function Me(v,w,L,ie){const Ie=Y(178);return Ie.modifiers=Sa(v),Ie.name=bo(w),Ie.parameters=V(L),Ie.body=ie,Ie.body?Ie.transformFlags=ga(Ie.modifiers)|th(Ie.name)|ga(Ie.parameters)|nr(Ie.body)&-67108865|(Ie.type?1:0):Ie.transformFlags=1,Ie.typeArguments=void 0,Ie.typeParameters=void 0,Ie.type=void 0,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.flowNode=void 0,Ie.endFlowNode=void 0,Ie.returnFlowNode=void 0,Ie}function ke(v,w,L,ie,Ie){return v.modifiers!==w||v.name!==L||v.parameters!==ie||v.body!==Ie?ft(Me(w,L,ie,Ie),v):v}function ft(v,w){return v!==w&&(v.typeParameters=w.typeParameters,v.type=w.type),j(v,w)}function K(v,w,L){const ie=Y(179);return ie.typeParameters=Sa(v),ie.parameters=Sa(w),ie.type=L,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function $e(v,w,L,ie){return v.typeParameters!==w||v.parameters!==L||v.type!==ie?j(K(w,L,ie),v):v}function Ae(v,w,L){const ie=Y(180);return ie.typeParameters=Sa(v),ie.parameters=Sa(w),ie.type=L,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function ht(v,w,L,ie){return v.typeParameters!==w||v.parameters!==L||v.type!==ie?j(Ae(w,L,ie),v):v}function _t(v,w,L){const ie=Y(181);return ie.modifiers=Sa(v),ie.parameters=Sa(w),ie.type=L,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function jt(v,w,L,ie){return v.parameters!==L||v.type!==ie||v.modifiers!==w?j(_t(w,L,ie),v):v}function Fn(v,w){const L=U(204);return L.type=v,L.literal=w,L.transformFlags=1,L}function Nt(v,w,L){return v.type!==w||v.literal!==L?r(Fn(w,L),v):v}function hi(v){return pe(v)}function z(v,w,L){const ie=U(182);return ie.assertsModifier=v,ie.parameterName=bo(w),ie.type=L,ie.transformFlags=1,ie}function B(v,w,L,ie){return v.assertsModifier!==w||v.parameterName!==L||v.type!==ie?r(z(w,L,ie),v):v}function le(v,w){const L=U(183);return L.typeName=bo(v),L.typeArguments=w&&i().parenthesizeTypeArguments(V(w)),L.transformFlags=1,L}function W(v,w,L){return v.typeName!==w||v.typeArguments!==L?r(le(w,L),v):v}function ge(v,w,L){const ie=Y(184);return ie.typeParameters=Sa(v),ie.parameters=Sa(w),ie.type=L,ie.transformFlags=1,ie.modifiers=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function F(v,w,L,ie){return v.typeParameters!==w||v.parameters!==L||v.type!==ie?ye(ge(w,L,ie),v):v}function ye(v,w){return v!==w&&(v.modifiers=w.modifiers),j(v,w)}function Oe(...v){return v.length===4?We(...v):v.length===3?Tt(...v):E.fail("Incorrect number of arguments specified.")}function We(v,w,L,ie){const Ie=Y(185);return Ie.modifiers=Sa(v),Ie.typeParameters=Sa(w),Ie.parameters=Sa(L),Ie.type=ie,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function Tt(v,w,L){return We(void 0,v,w,L)}function It(...v){return v.length===5?on(...v):v.length===4?kn(...v):E.fail("Incorrect number of arguments specified.")}function on(v,w,L,ie,Ie){return v.modifiers!==w||v.typeParameters!==L||v.parameters!==ie||v.type!==Ie?j(Oe(w,L,ie,Ie),v):v}function kn(v,w,L,ie){return on(v,v.modifiers,w,L,ie)}function ir(v,w){const L=U(186);return L.exprName=v,L.typeArguments=w&&i().parenthesizeTypeArguments(w),L.transformFlags=1,L}function ar(v,w,L){return v.exprName!==w||v.typeArguments!==L?r(ir(w,L),v):v}function jn(v){const w=Y(187);return w.members=V(v),w.transformFlags=1,w}function oi(v,w){return v.members!==w?r(jn(w),v):v}function ea(v){const w=U(188);return w.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),w.transformFlags=1,w}function gs(v,w){return v.elementType!==w?r(ea(w),v):v}function Us(v){const w=U(189);return w.elements=V(i().parenthesizeElementTypesOfTupleType(v)),w.transformFlags=1,w}function Yr(v,w){return v.elements!==w?r(Us(w),v):v}function cs(v,w,L,ie){const Ie=Y(202);return Ie.dotDotDotToken=v,Ie.name=w,Ie.questionToken=L,Ie.type=ie,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie}function Ms(v,w,L,ie,Ie){return v.dotDotDotToken!==w||v.name!==L||v.questionToken!==ie||v.type!==Ie?r(cs(w,L,ie,Ie),v):v}function di(v){const w=U(190);return w.type=i().parenthesizeTypeOfOptionalType(v),w.transformFlags=1,w}function ln(v,w){return v.type!==w?r(di(w),v):v}function tc(v){const w=U(191);return w.type=v,w.transformFlags=1,w}function qi(v,w){return v.type!==w?r(tc(w),v):v}function Es(v,w,L){const ie=U(v);return ie.types=M.createNodeArray(L(w)),ie.transformFlags=1,ie}function Ea(v,w,L){return v.types!==w?r(Es(v.kind,w,L),v):v}function ro(v){return Es(192,v,i().parenthesizeConstituentTypesOfUnionType)}function za(v,w){return Ea(v,w,i().parenthesizeConstituentTypesOfUnionType)}function Pc(v){return Es(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function ls(v,w){return Ea(v,w,i().parenthesizeConstituentTypesOfIntersectionType)}function Li(v,w,L,ie){const Ie=U(194);return Ie.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Ie.extendsType=i().parenthesizeExtendsTypeOfConditionalType(w),Ie.trueType=L,Ie.falseType=ie,Ie.transformFlags=1,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function Vc(v,w,L,ie,Ie){return v.checkType!==w||v.extendsType!==L||v.trueType!==ie||v.falseType!==Ie?r(Li(w,L,ie,Ie),v):v}function zo(v){const w=U(195);return w.typeParameter=v,w.transformFlags=1,w}function L_(v,w){return v.typeParameter!==w?r(zo(w),v):v}function _l(v,w){const L=U(203);return L.head=v,L.templateSpans=V(w),L.transformFlags=1,L}function Bf(v,w,L){return v.head!==w||v.templateSpans!==L?r(_l(w,L),v):v}function Rs(v,w,L,ie,Ie=!1){const Ot=U(205);return Ot.argument=v,Ot.assertions=w,Ot.qualifier=L,Ot.typeArguments=ie&&i().parenthesizeTypeArguments(ie),Ot.isTypeOf=Ie,Ot.transformFlags=1,Ot}function po(v,w,L,ie,Ie,Ot=v.isTypeOf){return v.argument!==w||v.assertions!==L||v.qualifier!==ie||v.typeArguments!==Ie||v.isTypeOf!==Ot?r(Rs(w,L,ie,Ie,Ot),v):v}function Ba(v){const w=U(196);return w.type=v,w.transformFlags=1,w}function Fa(v,w){return v.type!==w?r(Ba(w),v):v}function Wt(){const v=U(197);return v.transformFlags=1,v}function pc(v,w){const L=U(198);return L.operator=v,L.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(w):i().parenthesizeOperandOfTypeOperator(w),L.transformFlags=1,L}function h_(v,w){return v.type!==w?r(pc(v.operator,w),v):v}function M_(v,w){const L=U(199);return L.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),L.indexType=w,L.transformFlags=1,L}function q_(v,w,L){return v.objectType!==w||v.indexType!==L?r(M_(w,L),v):v}function vo(v,w,L,ie,Ie,Ot){const Qn=Y(200);return Qn.readonlyToken=v,Qn.typeParameter=w,Qn.nameType=L,Qn.questionToken=ie,Qn.type=Ie,Qn.members=Ot&&V(Ot),Qn.transformFlags=1,Qn.locals=void 0,Qn.nextContainer=void 0,Qn}function $o(v,w,L,ie,Ie,Ot,Qn){return v.readonlyToken!==w||v.typeParameter!==L||v.nameType!==ie||v.questionToken!==Ie||v.type!==Ot||v.members!==Qn?r(vo(w,L,ie,Ie,Ot,Qn),v):v}function A(v){const w=U(201);return w.literal=v,w.transformFlags=1,w}function Ce(v,w){return v.literal!==w?r(A(w),v):v}function Re(v){const w=U(206);return w.elements=V(v),w.transformFlags|=ga(w.elements)|1024|524288,w.transformFlags&32768&&(w.transformFlags|=65664),w}function xt(v,w){return v.elements!==w?r(Re(w),v):v}function yn(v){const w=U(207);return w.elements=V(v),w.transformFlags|=ga(w.elements)|1024|524288,w}function Pr(v,w){return v.elements!==w?r(yn(w),v):v}function En(v,w,L,ie){const Ie=Y(208);return Ie.dotDotDotToken=v,Ie.propertyName=bo(w),Ie.name=bo(L),Ie.initializer=rx(ie),Ie.transformFlags|=nr(Ie.dotDotDotToken)|th(Ie.propertyName)|th(Ie.name)|nr(Ie.initializer)|(Ie.dotDotDotToken?32768:0)|1024,Ie.flowNode=void 0,Ie}function gr(v,w,L,ie,Ie){return v.propertyName!==L||v.dotDotDotToken!==w||v.name!==ie||v.initializer!==Ie?r(En(w,L,ie,Ie),v):v}function ci(v,w){const L=U(209),ie=v&&jo(v),Ie=V(v,ie&&dl(ie)?!0:void 0);return L.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Ie),L.multiLine=w,L.transformFlags|=ga(L.elements),L}function Vr(v,w){return v.elements!==w?r(ci(w,v.multiLine),v):v}function La(v,w){const L=Y(210);return L.properties=V(v),L.multiLine=w,L.transformFlags|=ga(L.properties),L.jsDoc=void 0,L}function io(v,w){return v.properties!==w?r(La(w,v.multiLine),v):v}function ac(v,w,L){const ie=Y(211);return ie.expression=v,ie.questionDotToken=w,ie.name=L,ie.transformFlags=nr(ie.expression)|nr(ie.questionDotToken)|(we(ie.name)?$3(ie.name):nr(ie.name)|536870912),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function Ic(v,w){const L=ac(i().parenthesizeLeftSideOfAccess(v,!1),void 0,bo(w));return e8(v)&&(L.transformFlags|=384),L}function dc(v,w,L){return e9(v)?nc(v,w,v.questionDotToken,Bs(L,we)):v.expression!==w||v.name!==L?r(Ic(w,L),v):v}function Ka(v,w,L){const ie=ac(i().parenthesizeLeftSideOfAccess(v,!0),w,bo(L));return ie.flags|=64,ie.transformFlags|=32,ie}function nc(v,w,L,ie){return E.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==w||v.questionDotToken!==L||v.name!==ie?r(Ka(w,L,ie),v):v}function H_(v,w,L){const ie=Y(212);return ie.expression=v,ie.questionDotToken=w,ie.argumentExpression=L,ie.transformFlags|=nr(ie.expression)|nr(ie.questionDotToken)|nr(ie.argumentExpression),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function Uc(v,w){const L=H_(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Jp(w));return e8(v)&&(L.transformFlags|=384),L}function Vo(v,w,L){return eW(v)?he(v,w,v.questionDotToken,L):v.expression!==w||v.argumentExpression!==L?r(Uc(w,L),v):v}function Tu(v,w,L){const ie=H_(i().parenthesizeLeftSideOfAccess(v,!0),w,Jp(L));return ie.flags|=64,ie.transformFlags|=32,ie}function he(v,w,L,ie){return E.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==w||v.questionDotToken!==L||v.argumentExpression!==ie?r(Tu(w,L,ie),v):v}function vt(v,w,L,ie){const Ie=Y(213);return Ie.expression=v,Ie.questionDotToken=w,Ie.typeArguments=L,Ie.arguments=ie,Ie.transformFlags|=nr(Ie.expression)|nr(Ie.questionDotToken)|ga(Ie.typeArguments)|ga(Ie.arguments),Ie.typeArguments&&(Ie.transformFlags|=1),iu(Ie.expression)&&(Ie.transformFlags|=16384),Ie}function vn(v,w,L){const ie=vt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Sa(w),i().parenthesizeExpressionsOfCommaDelimitedList(V(L)));return t8(ie.expression)&&(ie.transformFlags|=8388608),ie}function ji(v,w,L,ie){return Ab(v)?Wa(v,w,v.questionDotToken,L,ie):v.expression!==w||v.typeArguments!==L||v.arguments!==ie?r(vn(w,L,ie),v):v}function ws(v,w,L,ie){const Ie=vt(i().parenthesizeLeftSideOfAccess(v,!0),w,Sa(L),i().parenthesizeExpressionsOfCommaDelimitedList(V(ie)));return Ie.flags|=64,Ie.transformFlags|=32,Ie}function Wa(v,w,L,ie,Ie){return E.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==w||v.questionDotToken!==L||v.typeArguments!==ie||v.arguments!==Ie?r(ws(w,L,ie,Ie),v):v}function oc(v,w,L){const ie=Y(214);return ie.expression=i().parenthesizeExpressionOfNew(v),ie.typeArguments=Sa(w),ie.arguments=L?i().parenthesizeExpressionsOfCommaDelimitedList(L):void 0,ie.transformFlags|=nr(ie.expression)|ga(ie.typeArguments)|ga(ie.arguments)|32,ie.typeArguments&&(ie.transformFlags|=1),ie}function se(v,w,L,ie){return v.expression!==w||v.typeArguments!==L||v.arguments!==ie?r(oc(w,L,ie),v):v}function qe(v,w,L){const ie=U(215);return ie.tag=i().parenthesizeLeftSideOfAccess(v,!1),ie.typeArguments=Sa(w),ie.template=L,ie.transformFlags|=nr(ie.tag)|ga(ie.typeArguments)|nr(ie.template)|1024,ie.typeArguments&&(ie.transformFlags|=1),hq(ie.template)&&(ie.transformFlags|=128),ie}function gt(v,w,L,ie){return v.tag!==w||v.typeArguments!==L||v.template!==ie?r(qe(w,L,ie),v):v}function Et(v,w){const L=U(216);return L.expression=i().parenthesizeOperandOfPrefixUnary(w),L.type=v,L.transformFlags|=nr(L.expression)|nr(L.type)|1,L}function Xt(v,w,L){return v.type!==w||v.expression!==L?r(Et(w,L),v):v}function On(v){const w=U(217);return w.expression=v,w.transformFlags=nr(w.expression),w.jsDoc=void 0,w}function Cr(v,w){return v.expression!==w?r(On(w),v):v}function qr(v,w,L,ie,Ie,Ot,Qn){const Ci=Y(218);Ci.modifiers=Sa(v),Ci.asteriskToken=w,Ci.name=bo(L),Ci.typeParameters=Sa(ie),Ci.parameters=V(Ie),Ci.type=Ot,Ci.body=Qn;const eo=Ld(Ci.modifiers)&512,zp=!!Ci.asteriskToken,x0=eo&&zp;return Ci.transformFlags=ga(Ci.modifiers)|nr(Ci.asteriskToken)|th(Ci.name)|ga(Ci.typeParameters)|ga(Ci.parameters)|nr(Ci.type)|nr(Ci.body)&-67108865|(x0?128:eo?256:zp?2048:0)|(Ci.typeParameters||Ci.type?1:0)|4194304,Ci.typeArguments=void 0,Ci.jsDoc=void 0,Ci.locals=void 0,Ci.nextContainer=void 0,Ci.flowNode=void 0,Ci.endFlowNode=void 0,Ci.returnFlowNode=void 0,Ci}function _i(v,w,L,ie,Ie,Ot,Qn,Ci){return v.name!==ie||v.modifiers!==w||v.asteriskToken!==L||v.typeParameters!==Ie||v.parameters!==Ot||v.type!==Qn||v.body!==Ci?j(qr(w,L,ie,Ie,Ot,Qn,Ci),v):v}function hs(v,w,L,ie,Ie,Ot){const Qn=Y(219);Qn.modifiers=Sa(v),Qn.typeParameters=Sa(w),Qn.parameters=V(L),Qn.type=ie,Qn.equalsGreaterThanToken=Ie!=null?Ie:pe(39),Qn.body=i().parenthesizeConciseBodyOfArrowFunction(Ot);const Ci=Ld(Qn.modifiers)&512;return Qn.transformFlags=ga(Qn.modifiers)|ga(Qn.typeParameters)|ga(Qn.parameters)|nr(Qn.type)|nr(Qn.equalsGreaterThanToken)|nr(Qn.body)&-67108865|(Qn.typeParameters||Qn.type?1:0)|(Ci?16640:0)|1024,Qn.typeArguments=void 0,Qn.jsDoc=void 0,Qn.locals=void 0,Qn.nextContainer=void 0,Qn.flowNode=void 0,Qn.endFlowNode=void 0,Qn.returnFlowNode=void 0,Qn}function va(v,w,L,ie,Ie,Ot,Qn){return v.modifiers!==w||v.typeParameters!==L||v.parameters!==ie||v.type!==Ie||v.equalsGreaterThanToken!==Ot||v.body!==Qn?j(hs(w,L,ie,Ie,Ot,Qn),v):v}function Fo(v){const w=U(220);return w.expression=i().parenthesizeOperandOfPrefixUnary(v),w.transformFlags|=nr(w.expression),w}function Ro(v,w){return v.expression!==w?r(Fo(w),v):v}function Zc(v){const w=U(221);return w.expression=i().parenthesizeOperandOfPrefixUnary(v),w.transformFlags|=nr(w.expression),w}function Oc(v,w){return v.expression!==w?r(Zc(w),v):v}function il(v){const w=U(222);return w.expression=i().parenthesizeOperandOfPrefixUnary(v),w.transformFlags|=nr(w.expression),w}function Ml(v,w){return v.expression!==w?r(il(w),v):v}function sl(v){const w=U(223);return w.expression=i().parenthesizeOperandOfPrefixUnary(v),w.transformFlags|=nr(w.expression)|256|128|2097152,w}function ju(v,w){return v.expression!==w?r(sl(w),v):v}function ud(v,w){const L=U(224);return L.operator=v,L.operand=i().parenthesizeOperandOfPrefixUnary(w),L.transformFlags|=nr(L.operand),(v===46||v===47)&&we(L.operand)&&!Jo(L.operand)&&!e0(L.operand)&&(L.transformFlags|=268435456),L}function w1(v,w){return v.operand!==w?r(ud(v.operator,w),v):v}function qd(v,w){const L=U(225);return L.operator=w,L.operand=i().parenthesizeOperandOfPostfixUnary(v),L.transformFlags|=nr(L.operand),we(L.operand)&&!Jo(L.operand)&&!e0(L.operand)&&(L.transformFlags|=268435456),L}function J(v,w){return v.operand!==w?r(qd(w,v.operator),v):v}function Be(v,w,L){const ie=Y(226),Ie=kf(w),Ot=Ie.kind;return ie.left=i().parenthesizeLeftSideOfBinary(Ot,v),ie.operatorToken=Ie,ie.right=i().parenthesizeRightSideOfBinary(Ot,ie.left,L),ie.transformFlags|=nr(ie.left)|nr(ie.operatorToken)|nr(ie.right),Ot===61?ie.transformFlags|=32:Ot===64?ha(ie.left)?ie.transformFlags|=5248|At(ie.left):u_(ie.left)&&(ie.transformFlags|=5120|At(ie.left)):Ot===43||Ot===68?ie.transformFlags|=512:x3(Ot)&&(ie.transformFlags|=16),Ot===103&&Ei(ie.left)&&(ie.transformFlags|=536870912),ie.jsDoc=void 0,ie}function At(v){return TA(v)?65536:0}function Jn(v,w,L,ie){return v.left!==w||v.operatorToken!==L||v.right!==ie?r(Be(w,L,ie),v):v}function xs(v,w,L,ie,Ie){const Ot=U(227);return Ot.condition=i().parenthesizeConditionOfConditionalExpression(v),Ot.questionToken=w!=null?w:pe(58),Ot.whenTrue=i().parenthesizeBranchOfConditionalExpression(L),Ot.colonToken=ie!=null?ie:pe(59),Ot.whenFalse=i().parenthesizeBranchOfConditionalExpression(Ie),Ot.transformFlags|=nr(Ot.condition)|nr(Ot.questionToken)|nr(Ot.whenTrue)|nr(Ot.colonToken)|nr(Ot.whenFalse),Ot}function mi(v,w,L,ie,Ie,Ot){return v.condition!==w||v.questionToken!==L||v.whenTrue!==ie||v.colonToken!==Ie||v.whenFalse!==Ot?r(xs(w,L,ie,Ie,Ot),v):v}function is(v,w){const L=U(228);return L.head=v,L.templateSpans=V(w),L.transformFlags|=nr(L.head)|ga(L.templateSpans)|1024,L}function Ss(v,w,L){return v.head!==w||v.templateSpans!==L?r(is(w,L),v):v}function Lo(v,w,L,ie=0){E.assert(!(ie&-7177),"Unsupported template flags.");let Ie;if(L!==void 0&&L!==w&&(Ie=a5e(v,L),typeof Ie=="object"))return E.fail("Invalid raw text");if(w===void 0){if(Ie===void 0)return E.fail("Arguments 'text' and 'rawText' may not both be undefined.");w=Ie}else Ie!==void 0&&E.assert(w===Ie,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return w}function sa(v){let w=1024;return v&&(w|=128),w}function xl(v,w,L,ie){const Ie=ct(v);return Ie.text=w,Ie.rawText=L,Ie.templateFlags=ie&7176,Ie.transformFlags=sa(Ie.templateFlags),Ie}function cf(v,w,L,ie){const Ie=Y(v);return Ie.text=w,Ie.rawText=L,Ie.templateFlags=ie&7176,Ie.transformFlags=sa(Ie.templateFlags),Ie}function y_(v,w,L,ie){return v===15?cf(v,w,L,ie):xl(v,w,L,ie)}function fd(v,w,L){return v=Lo(16,v,w,L),y_(16,v,w,L)}function Hd(v,w,L){return v=Lo(16,v,w,L),y_(17,v,w,L)}function Lp(v,w,L){return v=Lo(16,v,w,L),y_(18,v,w,L)}function Ee(v,w,L){return v=Lo(16,v,w,L),cf(15,v,w,L)}function je(v,w){E.assert(!v||!!w,"A `YieldExpression` with an asteriskToken must have an expression.");const L=U(229);return L.expression=w&&i().parenthesizeExpressionForDisallowedComma(w),L.asteriskToken=v,L.transformFlags|=nr(L.expression)|nr(L.asteriskToken)|1024|128|1048576,L}function Ye(v,w,L){return v.expression!==L||v.asteriskToken!==w?r(je(w,L),v):v}function Mt(v){const w=U(230);return w.expression=i().parenthesizeExpressionForDisallowedComma(v),w.transformFlags|=nr(w.expression)|1024|32768,w}function rn(v,w){return v.expression!==w?r(Mt(w),v):v}function un(v,w,L,ie,Ie){const Ot=Y(231);return Ot.modifiers=Sa(v),Ot.name=bo(w),Ot.typeParameters=Sa(L),Ot.heritageClauses=Sa(ie),Ot.members=V(Ie),Ot.transformFlags|=ga(Ot.modifiers)|th(Ot.name)|ga(Ot.typeParameters)|ga(Ot.heritageClauses)|ga(Ot.members)|(Ot.typeParameters?1:0)|1024,Ot.jsDoc=void 0,Ot}function nn(v,w,L,ie,Ie,Ot){return v.modifiers!==w||v.name!==L||v.typeParameters!==ie||v.heritageClauses!==Ie||v.members!==Ot?r(un(w,L,ie,Ie,Ot),v):v}function Vn(){return U(232)}function Br(v,w){const L=U(233);return L.expression=i().parenthesizeLeftSideOfAccess(v,!1),L.typeArguments=w&&i().parenthesizeTypeArguments(w),L.transformFlags|=nr(L.expression)|ga(L.typeArguments)|1024,L}function Gi(v,w,L){return v.expression!==w||v.typeArguments!==L?r(Br(w,L),v):v}function Hn(v,w){const L=U(234);return L.expression=v,L.type=w,L.transformFlags|=nr(L.expression)|nr(L.type)|1,L}function cr(v,w,L){return v.expression!==w||v.type!==L?r(Hn(w,L),v):v}function wr(v){const w=U(235);return w.expression=i().parenthesizeLeftSideOfAccess(v,!1),w.transformFlags|=nr(w.expression)|1,w}function ta(v,w){return n9(v)?Gd(v,w):v.expression!==w?r(wr(w),v):v}function Fc(v,w){const L=U(238);return L.expression=v,L.type=w,L.transformFlags|=nr(L.expression)|nr(L.type)|1,L}function Xo(v,w,L){return v.expression!==w||v.type!==L?r(Fc(w,L),v):v}function pg(v){const w=U(235);return w.flags|=64,w.expression=i().parenthesizeLeftSideOfAccess(v,!0),w.transformFlags|=nr(w.expression)|1,w}function Gd(v,w){return E.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==w?r(pg(w),v):v}function jf(v,w){const L=U(236);switch(L.keywordToken=v,L.name=w,L.transformFlags|=nr(L.name),v){case 105:L.transformFlags|=1024;break;case 102:L.transformFlags|=32;break;default:return E.assertNever(v)}return L.flowNode=void 0,L}function c0(v,w){return v.name!==w?r(jf(v.keywordToken,w),v):v}function mh(v,w){const L=U(239);return L.expression=v,L.literal=w,L.transformFlags|=nr(L.expression)|nr(L.literal)|1024,L}function FT(v,w,L){return v.expression!==w||v.literal!==L?r(mh(w,L),v):v}function V4(){const v=U(240);return v.transformFlags|=1024,v}function l0(v,w){const L=U(241);return L.statements=V(v),L.multiLine=w,L.transformFlags|=ga(L.statements),L.jsDoc=void 0,L.locals=void 0,L.nextContainer=void 0,L}function gh(v,w){return v.statements!==w?r(l0(w,v.multiLine),v):v}function Wy(v,w){const L=U(243);return L.modifiers=Sa(v),L.declarationList=Ds(w)?Qy(w):w,L.transformFlags|=ga(L.modifiers)|nr(L.declarationList),Ld(L.modifiers)&2&&(L.transformFlags=1),L.jsDoc=void 0,L.flowNode=void 0,L}function D1(v,w,L){return v.modifiers!==w||v.declarationList!==L?r(Wy(w,L),v):v}function qy(){const v=U(242);return v.jsDoc=void 0,v}function hh(v){const w=U(244);return w.expression=i().parenthesizeExpressionOfExpressionStatement(v),w.transformFlags|=nr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function LT(v,w){return v.expression!==w?r(hh(w),v):v}function KS(v,w,L){const ie=U(245);return ie.expression=v,ie.thenStatement=Lm(w),ie.elseStatement=Lm(L),ie.transformFlags|=nr(ie.expression)|nr(ie.thenStatement)|nr(ie.elseStatement),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function MT(v,w,L,ie){return v.expression!==w||v.thenStatement!==L||v.elseStatement!==ie?r(KS(w,L,ie),v):v}function RT(v,w){const L=U(246);return L.statement=Lm(v),L.expression=w,L.transformFlags|=nr(L.statement)|nr(L.expression),L.jsDoc=void 0,L.flowNode=void 0,L}function F2(v,w,L){return v.statement!==w||v.expression!==L?r(RT(w,L),v):v}function BT(v,w){const L=U(247);return L.expression=v,L.statement=Lm(w),L.transformFlags|=nr(L.expression)|nr(L.statement),L.jsDoc=void 0,L.flowNode=void 0,L}function jT(v,w,L){return v.expression!==w||v.statement!==L?r(BT(w,L),v):v}function L2(v,w,L,ie){const Ie=U(248);return Ie.initializer=v,Ie.condition=w,Ie.incrementor=L,Ie.statement=Lm(ie),Ie.transformFlags|=nr(Ie.initializer)|nr(Ie.condition)|nr(Ie.incrementor)|nr(Ie.statement),Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.flowNode=void 0,Ie}function JT(v,w,L,ie,Ie){return v.initializer!==w||v.condition!==L||v.incrementor!==ie||v.statement!==Ie?r(L2(w,L,ie,Ie),v):v}function zT(v,w,L){const ie=U(249);return ie.initializer=v,ie.expression=w,ie.statement=Lm(L),ie.transformFlags|=nr(ie.initializer)|nr(ie.expression)|nr(ie.statement),ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.flowNode=void 0,ie}function ek(v,w,L,ie){return v.initializer!==w||v.expression!==L||v.statement!==ie?r(zT(w,L,ie),v):v}function VT(v,w,L,ie){const Ie=U(250);return Ie.awaitModifier=v,Ie.initializer=w,Ie.expression=i().parenthesizeExpressionForDisallowedComma(L),Ie.statement=Lm(ie),Ie.transformFlags|=nr(Ie.awaitModifier)|nr(Ie.initializer)|nr(Ie.expression)|nr(Ie.statement)|1024,v&&(Ie.transformFlags|=128),Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.flowNode=void 0,Ie}function tk(v,w,L,ie,Ie){return v.awaitModifier!==w||v.initializer!==L||v.expression!==ie||v.statement!==Ie?r(VT(w,L,ie,Ie),v):v}function A1(v){const w=U(251);return w.label=bo(v),w.transformFlags|=nr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function Hy(v,w){return v.label!==w?r(A1(w),v):v}function yh(v){const w=U(252);return w.label=bo(v),w.transformFlags|=nr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function Gy(v,w){return v.label!==w?r(yh(w),v):v}function M2(v){const w=U(253);return w.expression=v,w.transformFlags|=nr(w.expression)|128|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function _0(v,w){return v.expression!==w?r(M2(w),v):v}function xa(v,w){const L=U(254);return L.expression=v,L.statement=Lm(w),L.transformFlags|=nr(L.expression)|nr(L.statement),L.jsDoc=void 0,L.flowNode=void 0,L}function R2(v,w,L){return v.expression!==w||v.statement!==L?r(xa(w,L),v):v}function vh(v,w){const L=U(255);return L.expression=i().parenthesizeExpressionForDisallowedComma(v),L.caseBlock=w,L.transformFlags|=nr(L.expression)|nr(L.caseBlock),L.jsDoc=void 0,L.flowNode=void 0,L.possiblyExhaustive=!1,L}function N1(v,w,L){return v.expression!==w||v.caseBlock!==L?r(vh(w,L),v):v}function dg(v,w){const L=U(256);return L.label=bo(v),L.statement=Lm(w),L.transformFlags|=nr(L.label)|nr(L.statement),L.jsDoc=void 0,L.flowNode=void 0,L}function $d(v,w,L){return v.label!==w||v.statement!==L?r(dg(w,L),v):v}function bf(v){const w=U(257);return w.expression=v,w.transformFlags|=nr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function Ju(v,w){return v.expression!==w?r(bf(w),v):v}function lu(v,w,L){const ie=U(258);return ie.tryBlock=v,ie.catchClause=w,ie.finallyBlock=L,ie.transformFlags|=nr(ie.tryBlock)|nr(ie.catchClause)|nr(ie.finallyBlock),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function xu(v,w,L,ie){return v.tryBlock!==w||v.catchClause!==L||v.finallyBlock!==ie?r(lu(w,L,ie),v):v}function $y(){const v=U(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function Xy(v,w,L,ie){var Ot;const Ie=Y(260);return Ie.name=bo(v),Ie.exclamationToken=w,Ie.type=L,Ie.initializer=rx(ie),Ie.transformFlags|=th(Ie.name)|nr(Ie.initializer)|(((Ot=Ie.exclamationToken)!=null?Ot:Ie.type)?1:0),Ie.jsDoc=void 0,Ie}function U4(v,w,L,ie,Ie){return v.name!==w||v.type!==ie||v.exclamationToken!==L||v.initializer!==Ie?r(Xy(w,L,ie,Ie),v):v}function Qy(v,w=0){const L=U(261);return L.flags|=w&7,L.declarations=V(v),L.transformFlags|=ga(L.declarations)|4194304,w&7&&(L.transformFlags|=263168),w&4&&(L.transformFlags|=4),L}function UT(v,w){return v.declarations!==w?r(Qy(w,v.flags),v):v}function P1(v,w,L,ie,Ie,Ot,Qn){const Ci=Y(262);if(Ci.modifiers=Sa(v),Ci.asteriskToken=w,Ci.name=bo(L),Ci.typeParameters=Sa(ie),Ci.parameters=V(Ie),Ci.type=Ot,Ci.body=Qn,!Ci.body||Ld(Ci.modifiers)&2)Ci.transformFlags=1;else{const eo=Ld(Ci.modifiers)&512,zp=!!Ci.asteriskToken,x0=eo&&zp;Ci.transformFlags=ga(Ci.modifiers)|nr(Ci.asteriskToken)|th(Ci.name)|ga(Ci.typeParameters)|ga(Ci.parameters)|nr(Ci.type)|nr(Ci.body)&-67108865|(x0?128:eo?256:zp?2048:0)|(Ci.typeParameters||Ci.type?1:0)|4194304}return Ci.typeArguments=void 0,Ci.jsDoc=void 0,Ci.locals=void 0,Ci.nextContainer=void 0,Ci.endFlowNode=void 0,Ci.returnFlowNode=void 0,Ci}function Yy(v,w,L,ie,Ie,Ot,Qn,Ci){return v.modifiers!==w||v.asteriskToken!==L||v.name!==ie||v.typeParameters!==Ie||v.parameters!==Ot||v.type!==Qn||v.body!==Ci?B2(P1(w,L,ie,Ie,Ot,Qn,Ci),v):v}function B2(v,w){return v!==w&&v.modifiers===w.modifiers&&(v.modifiers=w.modifiers),j(v,w)}function WT(v,w,L,ie,Ie){const Ot=Y(263);return Ot.modifiers=Sa(v),Ot.name=bo(w),Ot.typeParameters=Sa(L),Ot.heritageClauses=Sa(ie),Ot.members=V(Ie),Ld(Ot.modifiers)&2?Ot.transformFlags=1:(Ot.transformFlags|=ga(Ot.modifiers)|th(Ot.name)|ga(Ot.typeParameters)|ga(Ot.heritageClauses)|ga(Ot.members)|(Ot.typeParameters?1:0)|1024,Ot.transformFlags&8192&&(Ot.transformFlags|=1)),Ot.jsDoc=void 0,Ot}function j2(v,w,L,ie,Ie,Ot){return v.modifiers!==w||v.name!==L||v.typeParameters!==ie||v.heritageClauses!==Ie||v.members!==Ot?r(WT(w,L,ie,Ie,Ot),v):v}function bh(v,w,L,ie,Ie){const Ot=Y(264);return Ot.modifiers=Sa(v),Ot.name=bo(w),Ot.typeParameters=Sa(L),Ot.heritageClauses=Sa(ie),Ot.members=V(Ie),Ot.transformFlags=1,Ot.jsDoc=void 0,Ot}function al(v,w,L,ie,Ie,Ot){return v.modifiers!==w||v.name!==L||v.typeParameters!==ie||v.heritageClauses!==Ie||v.members!==Ot?r(bh(w,L,ie,Ie,Ot),v):v}function Fe(v,w,L,ie){const Ie=Y(265);return Ie.modifiers=Sa(v),Ie.name=bo(w),Ie.typeParameters=Sa(L),Ie.type=ie,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function u0(v,w,L,ie,Ie){return v.modifiers!==w||v.name!==L||v.typeParameters!==ie||v.type!==Ie?r(Fe(w,L,ie,Ie),v):v}function Tf(v,w,L){const ie=Y(266);return ie.modifiers=Sa(v),ie.name=bo(w),ie.members=V(L),ie.transformFlags|=ga(ie.modifiers)|nr(ie.name)|ga(ie.members)|1,ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function Th(v,w,L,ie){return v.modifiers!==w||v.name!==L||v.members!==ie?r(Tf(w,L,ie),v):v}function v_(v,w,L,ie=0){const Ie=Y(267);return Ie.modifiers=Sa(v),Ie.flags|=ie&2088,Ie.name=w,Ie.body=L,Ld(Ie.modifiers)&2?Ie.transformFlags=1:Ie.transformFlags|=ga(Ie.modifiers)|nr(Ie.name)|nr(Ie.body)|1,Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function fp(v,w,L,ie){return v.modifiers!==w||v.name!==L||v.body!==ie?r(v_(w,L,ie,v.flags),v):v}function b_(v){const w=U(268);return w.statements=V(v),w.transformFlags|=ga(w.statements),w.jsDoc=void 0,w}function f0(v,w){return v.statements!==w?r(b_(w),v):v}function nk(v){const w=U(269);return w.clauses=V(v),w.transformFlags|=ga(w.clauses),w.locals=void 0,w.nextContainer=void 0,w}function Pa(v,w){return v.clauses!==w?r(nk(w),v):v}function pp(v){const w=Y(270);return w.name=bo(v),w.transformFlags|=$3(w.name)|1,w.modifiers=void 0,w.jsDoc=void 0,w}function qT(v,w){return v.name!==w?rk(pp(w),v):v}function rk(v,w){return v!==w&&(v.modifiers=w.modifiers),r(v,w)}function HT(v,w,L,ie){const Ie=Y(271);return Ie.modifiers=Sa(v),Ie.name=bo(L),Ie.isTypeOnly=w,Ie.moduleReference=ie,Ie.transformFlags|=ga(Ie.modifiers)|$3(Ie.name)|nr(Ie.moduleReference),km(Ie.moduleReference)||(Ie.transformFlags|=1),Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function Zy(v,w,L,ie,Ie){return v.modifiers!==w||v.isTypeOnly!==L||v.name!==ie||v.moduleReference!==Ie?r(HT(w,L,ie,Ie),v):v}function mg(v,w,L,ie){const Ie=U(272);return Ie.modifiers=Sa(v),Ie.importClause=w,Ie.moduleSpecifier=L,Ie.assertClause=ie,Ie.transformFlags|=nr(Ie.importClause)|nr(Ie.moduleSpecifier),Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function Ky(v,w,L,ie,Ie){return v.modifiers!==w||v.importClause!==L||v.moduleSpecifier!==ie||v.assertClause!==Ie?r(mg(w,L,ie,Ie),v):v}function pd(v,w,L){const ie=Y(273);return ie.isTypeOnly=v,ie.name=w,ie.namedBindings=L,ie.transformFlags|=nr(ie.name)|nr(ie.namedBindings),v&&(ie.transformFlags|=1),ie.transformFlags&=-67108865,ie}function Nm(v,w,L,ie){return v.isTypeOnly!==w||v.name!==L||v.namedBindings!==ie?r(pd(w,L,ie),v):v}function xf(v,w){const L=U(300);return L.elements=V(v),L.multiLine=w,L.transformFlags|=4,L}function I1(v,w,L){return v.elements!==w||v.multiLine!==L?r(xf(w,L),v):v}function GT(v,w){const L=U(301);return L.name=v,L.value=w,L.transformFlags|=4,L}function Mi(v,w,L){return v.name!==w||v.value!==L?r(GT(w,L),v):v}function jr(v,w){const L=U(302);return L.assertClause=v,L.multiLine=w,L}function Xd(v,w,L){return v.assertClause!==w||v.multiLine!==L?r(jr(w,L),v):v}function G_(v){const w=Y(274);return w.name=v,w.transformFlags|=nr(w.name),w.transformFlags&=-67108865,w}function W4(v,w){return v.name!==w?r(G_(w),v):v}function Qd(v){const w=Y(280);return w.name=v,w.transformFlags|=nr(w.name)|32,w.transformFlags&=-67108865,w}function q4(v,w){return v.name!==w?r(Qd(w),v):v}function J2(v){const w=U(275);return w.elements=V(v),w.transformFlags|=ga(w.elements),w.transformFlags&=-67108865,w}function Lc(v,w){return v.elements!==w?r(J2(w),v):v}function O1(v,w,L){const ie=Y(276);return ie.isTypeOnly=v,ie.propertyName=w,ie.name=L,ie.transformFlags|=nr(ie.propertyName)|nr(ie.name),ie.transformFlags&=-67108865,ie}function z2(v,w,L,ie){return v.isTypeOnly!==w||v.propertyName!==L||v.name!==ie?r(O1(w,L,ie),v):v}function Su(v,w,L){const ie=Y(277);return ie.modifiers=Sa(v),ie.isExportEquals=w,ie.expression=w?i().parenthesizeRightSideOfBinary(64,void 0,L):i().parenthesizeExpressionOfExportDefault(L),ie.transformFlags|=ga(ie.modifiers)|nr(ie.expression),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function Mp(v,w,L){return v.modifiers!==w||v.expression!==L?r(Su(w,v.isExportEquals,L),v):v}function T_(v,w,L,ie,Ie){const Ot=Y(278);return Ot.modifiers=Sa(v),Ot.isTypeOnly=w,Ot.exportClause=L,Ot.moduleSpecifier=ie,Ot.assertClause=Ie,Ot.transformFlags|=ga(Ot.modifiers)|nr(Ot.exportClause)|nr(Ot.moduleSpecifier),Ot.transformFlags&=-67108865,Ot.jsDoc=void 0,Ot}function xh(v,w,L,ie,Ie,Ot){return v.modifiers!==w||v.isTypeOnly!==L||v.exportClause!==ie||v.moduleSpecifier!==Ie||v.assertClause!==Ot?V2(T_(w,L,ie,Ie,Ot),v):v}function V2(v,w){return v!==w&&v.modifiers===w.modifiers&&(v.modifiers=w.modifiers),r(v,w)}function p0(v){const w=U(279);return w.elements=V(v),w.transformFlags|=ga(w.elements),w.transformFlags&=-67108865,w}function F1(v,w){return v.elements!==w?r(p0(w),v):v}function Sh(v,w,L){const ie=U(281);return ie.isTypeOnly=v,ie.propertyName=bo(w),ie.name=bo(L),ie.transformFlags|=nr(ie.propertyName)|nr(ie.name),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function d0(v,w,L,ie){return v.isTypeOnly!==w||v.propertyName!==L||v.name!==ie?r(Sh(w,L,ie),v):v}function ik(){const v=Y(282);return v.jsDoc=void 0,v}function dd(v){const w=U(283);return w.expression=v,w.transformFlags|=nr(w.expression),w.transformFlags&=-67108865,w}function Pm(v,w){return v.expression!==w?r(dd(w),v):v}function kh(v){return U(v)}function $T(v,w,L=!1){const ie=U2(v,L?w&&i().parenthesizeNonArrayTypeOfPostfixType(w):w);return ie.postfix=L,ie}function U2(v,w){const L=U(v);return L.type=w,L}function sk(v,w,L){return w.type!==L?r($T(v,L,w.postfix),w):w}function ak(v,w,L){return w.type!==L?r(U2(v,L),w):w}function so(v,w){const L=Y(324);return L.parameters=Sa(v),L.type=w,L.transformFlags=ga(L.parameters)|(L.type?1:0),L.jsDoc=void 0,L.locals=void 0,L.nextContainer=void 0,L.typeArguments=void 0,L}function ev(v,w,L){return v.parameters!==w||v.type!==L?r(so(w,L),v):v}function dp(v,w=!1){const L=Y(329);return L.jsDocPropertyTags=Sa(v),L.isArrayType=w,L}function tv(v,w,L){return v.jsDocPropertyTags!==w||v.isArrayType!==L?r(dp(w,L),v):v}function nv(v){const w=U(316);return w.type=v,w}function H4(v,w){return v.type!==w?r(nv(w),v):v}function ok(v,w,L){const ie=Y(330);return ie.typeParameters=Sa(v),ie.parameters=V(w),ie.type=L,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie}function W2(v,w,L,ie){return v.typeParameters!==w||v.parameters!==L||v.type!==ie?r(ok(w,L,ie),v):v}function Un(v){const w=FO(v.kind);return v.tagName.escapedText===Ho(w)?v.tagName:ue(w)}function mc(v,w,L){const ie=U(v);return ie.tagName=w,ie.comment=L,ie}function Zi(v,w,L){const ie=Y(v);return ie.tagName=w,ie.comment=L,ie}function Rp(v,w,L,ie){const Ie=mc(352,v!=null?v:ue("template"),ie);return Ie.constraint=w,Ie.typeParameters=V(L),Ie}function L1(v,w=Un(v),L,ie,Ie){return v.tagName!==w||v.constraint!==L||v.typeParameters!==ie||v.comment!==Ie?r(Rp(w,L,ie,Ie),v):v}function Yd(v,w,L,ie){const Ie=Zi(353,v!=null?v:ue("typedef"),ie);return Ie.typeExpression=w,Ie.fullName=L,Ie.name=TG(L),Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function qn(v,w=Un(v),L,ie,Ie){return v.tagName!==w||v.typeExpression!==L||v.fullName!==ie||v.comment!==Ie?r(Yd(w,L,ie,Ie),v):v}function rv(v,w,L,ie,Ie,Ot){const Qn=Zi(348,v!=null?v:ue("param"),Ot);return Qn.typeExpression=ie,Qn.name=w,Qn.isNameFirst=!!Ie,Qn.isBracketed=L,Qn}function iv(v,w=Un(v),L,ie,Ie,Ot,Qn){return v.tagName!==w||v.name!==L||v.isBracketed!==ie||v.typeExpression!==Ie||v.isNameFirst!==Ot||v.comment!==Qn?r(rv(w,L,ie,Ie,Ot,Qn),v):v}function ul(v,w,L,ie,Ie,Ot){const Qn=Zi(355,v!=null?v:ue("prop"),Ot);return Qn.typeExpression=ie,Qn.name=w,Qn.isNameFirst=!!Ie,Qn.isBracketed=L,Qn}function md(v,w=Un(v),L,ie,Ie,Ot,Qn){return v.tagName!==w||v.name!==L||v.isBracketed!==ie||v.typeExpression!==Ie||v.isNameFirst!==Ot||v.comment!==Qn?r(ul(w,L,ie,Ie,Ot,Qn),v):v}function Bp(v,w,L,ie){const Ie=Zi(345,v!=null?v:ue("callback"),ie);return Ie.typeExpression=w,Ie.fullName=L,Ie.name=TG(L),Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function q2(v,w=Un(v),L,ie,Ie){return v.tagName!==w||v.typeExpression!==L||v.fullName!==ie||v.comment!==Ie?r(Bp(w,L,ie,Ie),v):v}function sv(v,w,L){const ie=mc(346,v!=null?v:ue("overload"),L);return ie.typeExpression=w,ie}function gg(v,w=Un(v),L,ie){return v.tagName!==w||v.typeExpression!==L||v.comment!==ie?r(sv(w,L,ie),v):v}function Ch(v,w,L){const ie=mc(335,v!=null?v:ue("augments"),L);return ie.class=w,ie}function ck(v,w=Un(v),L,ie){return v.tagName!==w||v.class!==L||v.comment!==ie?r(Ch(w,L,ie),v):v}function gd(v,w,L){const ie=mc(336,v!=null?v:ue("implements"),L);return ie.class=w,ie}function m0(v,w,L){const ie=mc(354,v!=null?v:ue("see"),L);return ie.name=w,ie}function hg(v,w,L,ie){return v.tagName!==w||v.name!==L||v.comment!==ie?r(m0(w,L,ie),v):v}function XT(v){const w=U(317);return w.name=v,w}function yg(v,w){return v.name!==w?r(XT(w),v):v}function g0(v,w){const L=U(318);return L.left=v,L.right=w,L.transformFlags|=nr(L.left)|nr(L.right),L}function H2(v,w,L){return v.left!==w||v.right!==L?r(g0(w,L),v):v}function QT(v,w){const L=U(331);return L.name=v,L.text=w,L}function vg(v,w,L){return v.name!==w?r(QT(w,L),v):v}function mp(v,w){const L=U(332);return L.name=v,L.text=w,L}function Mc(v,w,L){return v.name!==w?r(mp(w,L),v):v}function hl(v,w){const L=U(333);return L.name=v,L.text=w,L}function M1(v,w,L){return v.name!==w?r(hl(w,L),v):v}function ku(v,w=Un(v),L,ie){return v.tagName!==w||v.class!==L||v.comment!==ie?r(gd(w,L,ie),v):v}function $_(v,w,L){return mc(v,w!=null?w:ue(FO(v)),L)}function bg(v,w,L=Un(w),ie){return w.tagName!==L||w.comment!==ie?r($_(v,L,ie),w):w}function gp(v,w,L,ie){const Ie=mc(v,w!=null?w:ue(FO(v)),ie);return Ie.typeExpression=L,Ie}function R1(v,w,L=Un(w),ie,Ie){return w.tagName!==L||w.typeExpression!==ie||w.comment!==Ie?r(gp(v,L,ie,Ie),w):w}function Tg(v,w){return mc(334,v,w)}function G2(v,w,L){return v.tagName!==w||v.comment!==L?r(Tg(w,L),v):v}function fl(v,w,L){const ie=Zi(347,v!=null?v:ue(FO(347)),L);return ie.typeExpression=w,ie.locals=void 0,ie.nextContainer=void 0,ie}function h0(v,w=Un(v),L,ie){return v.tagName!==w||v.typeExpression!==L||v.comment!==ie?r(fl(w,L,ie),v):v}function Im(v){const w=U(328);return w.text=v,w}function $2(v,w){return v.text!==w?r(Im(w),v):v}function Qo(v,w){const L=U(327);return L.comment=v,L.tags=Sa(w),L}function xg(v,w,L){return v.comment!==w||v.tags!==L?r(Qo(w,L),v):v}function YT(v,w,L){const ie=U(284);return ie.openingElement=v,ie.children=V(w),ie.closingElement=L,ie.transformFlags|=nr(ie.openingElement)|ga(ie.children)|nr(ie.closingElement)|2,ie}function B1(v,w,L,ie){return v.openingElement!==w||v.children!==L||v.closingElement!==ie?r(YT(w,L,ie),v):v}function lk(v,w,L){const ie=U(285);return ie.tagName=v,ie.typeArguments=Sa(w),ie.attributes=L,ie.transformFlags|=nr(ie.tagName)|ga(ie.typeArguments)|nr(ie.attributes)|2,ie.typeArguments&&(ie.transformFlags|=1),ie}function r_(v,w,L,ie){return v.tagName!==w||v.typeArguments!==L||v.attributes!==ie?r(lk(w,L,ie),v):v}function y0(v,w,L){const ie=U(286);return ie.tagName=v,ie.typeArguments=Sa(w),ie.attributes=L,ie.transformFlags|=nr(ie.tagName)|ga(ie.typeArguments)|nr(ie.attributes)|2,w&&(ie.transformFlags|=1),ie}function Eh(v,w,L,ie){return v.tagName!==w||v.typeArguments!==L||v.attributes!==ie?r(y0(w,L,ie),v):v}function Sg(v){const w=U(287);return w.tagName=v,w.transformFlags|=nr(w.tagName)|2,w}function lf(v,w){return v.tagName!==w?r(Sg(w),v):v}function X2(v,w,L){const ie=U(288);return ie.openingFragment=v,ie.children=V(w),ie.closingFragment=L,ie.transformFlags|=nr(ie.openingFragment)|ga(ie.children)|nr(ie.closingFragment)|2,ie}function av(v,w,L,ie){return v.openingFragment!==w||v.children!==L||v.closingFragment!==ie?r(X2(w,L,ie),v):v}function j1(v,w){const L=U(12);return L.text=v,L.containsOnlyTriviaWhiteSpaces=!!w,L.transformFlags|=2,L}function ov(v,w,L){return v.text!==w||v.containsOnlyTriviaWhiteSpaces!==L?r(j1(w,L),v):v}function cv(){const v=U(289);return v.transformFlags|=2,v}function Sf(){const v=U(290);return v.transformFlags|=2,v}function ZT(v,w){const L=Y(291);return L.name=v,L.initializer=w,L.transformFlags|=nr(L.name)|nr(L.initializer)|2,L}function Q2(v,w,L){return v.name!==w||v.initializer!==L?r(ZT(w,L),v):v}function KT(v){const w=Y(292);return w.properties=V(v),w.transformFlags|=ga(w.properties)|2,w}function lv(v,w){return v.properties!==w?r(KT(w),v):v}function zu(v){const w=U(293);return w.expression=v,w.transformFlags|=nr(w.expression)|2,w}function Zd(v,w){return v.expression!==w?r(zu(w),v):v}function J1(v,w){const L=U(294);return L.dotDotDotToken=v,L.expression=w,L.transformFlags|=nr(L.dotDotDotToken)|nr(L.expression)|2,L}function _k(v,w){return v.expression!==w?r(J1(v.dotDotDotToken,w),v):v}function Ma(v,w){const L=U(295);return L.namespace=v,L.name=w,L.transformFlags|=nr(L.namespace)|nr(L.name)|2,L}function vr(v,w,L){return v.namespace!==w||v.name!==L?r(Ma(w,L),v):v}function Cu(v,w){const L=U(296);return L.expression=i().parenthesizeExpressionForDisallowedComma(v),L.statements=V(w),L.transformFlags|=nr(L.expression)|ga(L.statements),L.jsDoc=void 0,L}function X_(v,w,L){return v.expression!==w||v.statements!==L?r(Cu(w,L),v):v}function z1(v){const w=U(297);return w.statements=V(v),w.transformFlags=ga(w.statements),w}function Y2(v,w){return v.statements!==w?r(z1(w),v):v}function Z2(v,w){const L=U(298);switch(L.token=v,L.types=V(w),L.transformFlags|=ga(L.types),v){case 96:L.transformFlags|=1024;break;case 119:L.transformFlags|=1;break;default:return E.assertNever(v)}return L}function ex(v,w){return v.types!==w?r(Z2(v.token,w),v):v}function wh(v,w){const L=U(299);return L.variableDeclaration=yk(v),L.block=w,L.transformFlags|=nr(L.variableDeclaration)|nr(L.block)|(v?0:64),L.locals=void 0,L.nextContainer=void 0,L}function Vu(v,w,L){return v.variableDeclaration!==w||v.block!==L?r(wh(w,L),v):v}function Q_(v,w){const L=Y(303);return L.name=bo(v),L.initializer=i().parenthesizeExpressionForDisallowedComma(w),L.transformFlags|=th(L.name)|nr(L.initializer),L.modifiers=void 0,L.questionToken=void 0,L.exclamationToken=void 0,L.jsDoc=void 0,L}function _v(v,w,L){return v.name!==w||v.initializer!==L?uv(Q_(w,L),v):v}function uv(v,w){return v!==w&&(v.modifiers=w.modifiers,v.questionToken=w.questionToken,v.exclamationToken=w.exclamationToken),r(v,w)}function _f(v,w){const L=Y(304);return L.name=bo(v),L.objectAssignmentInitializer=w&&i().parenthesizeExpressionForDisallowedComma(w),L.transformFlags|=$3(L.name)|nr(L.objectAssignmentInitializer)|1024,L.equalsToken=void 0,L.modifiers=void 0,L.questionToken=void 0,L.exclamationToken=void 0,L.jsDoc=void 0,L}function kg(v,w,L){return v.name!==w||v.objectAssignmentInitializer!==L?tx(_f(w,L),v):v}function tx(v,w){return v!==w&&(v.modifiers=w.modifiers,v.questionToken=w.questionToken,v.exclamationToken=w.exclamationToken,v.equalsToken=w.equalsToken),r(v,w)}function Uo(v){const w=Y(305);return w.expression=i().parenthesizeExpressionForDisallowedComma(v),w.transformFlags|=nr(w.expression)|128|65536,w.jsDoc=void 0,w}function Jf(v,w){return v.expression!==w?r(Uo(w),v):v}function uk(v,w){const L=Y(306);return L.name=bo(v),L.initializer=w&&i().parenthesizeExpressionForDisallowedComma(w),L.transformFlags|=nr(L.name)|nr(L.initializer)|1,L.jsDoc=void 0,L}function zf(v,w,L){return v.name!==w||v.initializer!==L?r(uk(w,L),v):v}function K2(v,w,L){const ie=t.createBaseSourceFileNode(312);return ie.statements=V(v),ie.endOfFileToken=w,ie.flags|=L,ie.text="",ie.fileName="",ie.path="",ie.resolvedPath="",ie.originalFileName="",ie.languageVersion=0,ie.languageVariant=0,ie.scriptKind=0,ie.isDeclarationFile=!1,ie.hasNoDefaultLib=!1,ie.transformFlags|=ga(ie.statements)|nr(ie.endOfFileToken),ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.nodeCount=0,ie.identifierCount=0,ie.symbolCount=0,ie.parseDiagnostics=void 0,ie.bindDiagnostics=void 0,ie.bindSuggestionDiagnostics=void 0,ie.lineMap=void 0,ie.externalModuleIndicator=void 0,ie.setExternalModuleIndicator=void 0,ie.pragmas=void 0,ie.checkJsDirective=void 0,ie.referencedFiles=void 0,ie.typeReferenceDirectives=void 0,ie.libReferenceDirectives=void 0,ie.amdDependencies=void 0,ie.commentDirectives=void 0,ie.identifiers=void 0,ie.packageJsonLocations=void 0,ie.packageJsonScope=void 0,ie.imports=void 0,ie.moduleAugmentations=void 0,ie.ambientModuleNames=void 0,ie.resolvedModules=void 0,ie.classifiableNames=void 0,ie.impliedNodeFormat=void 0,ie}function Dh(v){const w=Object.create(v.redirectTarget);return Object.defineProperties(w,{id:{get(){return this.redirectInfo.redirectTarget.id},set(L){this.redirectInfo.redirectTarget.id=L}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(L){this.redirectInfo.redirectTarget.symbol=L}}}),w.redirectInfo=v,w}function eb(v){const w=Dh(v.redirectInfo);return w.flags|=v.flags&-17,w.fileName=v.fileName,w.path=v.path,w.resolvedPath=v.resolvedPath,w.originalFileName=v.originalFileName,w.packageJsonLocations=v.packageJsonLocations,w.packageJsonScope=v.packageJsonScope,w.emitNode=void 0,w}function Om(v){const w=t.createBaseSourceFileNode(312);w.flags|=v.flags&-17;for(const L in v)if(!(oo(w,L)||!oo(v,L))){if(L==="emitNode"){w.emitNode=void 0;continue}w[L]=v[L]}return w}function uf(v){const w=v.redirectInfo?eb(v):Om(v);return or(w,v),w}function gc(v,w,L,ie,Ie,Ot,Qn){const Ci=uf(v);return Ci.statements=V(w),Ci.isDeclarationFile=L,Ci.referencedFiles=ie,Ci.typeReferenceDirectives=Ie,Ci.hasNoDefaultLib=Ot,Ci.libReferenceDirectives=Qn,Ci.transformFlags=ga(Ci.statements)|nr(Ci.endOfFileToken),Ci}function fk(v,w,L=v.isDeclarationFile,ie=v.referencedFiles,Ie=v.typeReferenceDirectives,Ot=v.hasNoDefaultLib,Qn=v.libReferenceDirectives){return v.statements!==w||v.isDeclarationFile!==L||v.referencedFiles!==ie||v.typeReferenceDirectives!==Ie||v.hasNoDefaultLib!==Ot||v.libReferenceDirectives!==Qn?r(gc(v,w,L,ie,Ie,Ot,Qn),v):v}function V1(v,w=Ve){const L=U(313);return L.prepends=w,L.sourceFiles=v,L.syntheticFileReferences=void 0,L.syntheticTypeReferences=void 0,L.syntheticLibReferences=void 0,L.hasNoDefaultLib=void 0,L}function _u(v,w,L=Ve){return v.sourceFiles!==w||v.prepends!==L?r(V1(w,L),v):v}function Fm(v,w,L){const ie=U(314);return ie.prologues=v,ie.syntheticReferences=w,ie.texts=L,ie.fileName="",ie.text="",ie.referencedFiles=Ve,ie.libReferenceDirectives=Ve,ie.getLineAndCharacterOfPosition=Ie=>yo(ie,Ie),ie}function tb(v,w){const L=U(v);return L.data=w,L}function pk(v){return tb(307,v)}function nb(v,w){const L=tb(308,v);return L.texts=w,L}function rb(v,w){return tb(w?310:309,v)}function S(v){const w=U(311);return w.data=v.data,w.section=v,w}function te(){const v=U(315);return v.javascriptText="",v.declarationText="",v}function et(v,w=!1,L){const ie=U(237);return ie.type=v,ie.isSpread=w,ie.tupleNameSource=L,ie}function Ut(v){const w=U(358);return w._children=v,w}function hr(v){const w=U(359);return w.original=v,Ke(w,v),w}function vi(v,w){const L=U(360);return L.expression=v,L.original=w,L.transformFlags|=nr(L.expression)|1,Ke(L,w),L}function Qr(v,w){return v.expression!==w?r(vi(w,v.original),v):v}function Ji(v){if(Do(v)&&!WC(v)&&!v.original&&!v.emitNode&&!v.id){if(a8(v))return v.elements;if(rr(v)&&vfe(v.operatorToken))return[v.left,v.right]}return v}function zs(v){const w=U(361);return w.elements=V(Kae(v,Ji)),w.transformFlags|=ga(w.elements),w}function ii(v,w){return v.elements!==w?r(zs(w),v):v}function Rl(v,w){const L=U(362);return L.expression=v,L.thisArg=w,L.transformFlags|=nr(L.expression)|nr(L.thisArg),L}function Cn(v,w,L){return v.expression!==w||v.thisArg!==L?r(Rl(w,L),v):v}function Ah(v){const w=Q(v.escapedText);return w.flags|=v.flags&-17,w.transformFlags=v.transformFlags,or(w,v),ZD(w,{...v.emitNode.autoGenerate}),w}function Y_(v){const w=Q(v.escapedText);w.flags|=v.flags&-17,w.jsDoc=v.jsDoc,w.flowNode=v.flowNode,w.symbol=v.symbol,w.transformFlags=v.transformFlags,or(w,v);const L=Yb(v);return L&&nh(w,L),w}function Cg(v){const w=Xe(v.escapedText);return w.flags|=v.flags&-17,w.transformFlags=v.transformFlags,or(w,v),ZD(w,{...v.emitNode.autoGenerate}),w}function Nh(v){const w=Xe(v.escapedText);return w.flags|=v.flags&-17,w.transformFlags=v.transformFlags,or(w,v),w}function ib(v){if(v===void 0)return v;if(Bi(v))return uf(v);if(Jo(v))return Ah(v);if(we(v))return Y_(v);if(Pb(v))return Cg(v);if(Ei(v))return Nh(v);const w=bw(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);w.flags|=v.flags&-17,w.transformFlags=v.transformFlags,or(w,v);for(const L in v)oo(w,L)||!oo(v,L)||(w[L]=v[L]);return w}function dk(v,w,L){return vn(qr(void 0,void 0,void 0,void 0,w?[w]:[],void 0,l0(v,!0)),void 0,L?[L]:[])}function Eg(v,w,L){return vn(hs(void 0,void 0,w?[w]:[],void 0,void 0,l0(v,!0)),void 0,L?[L]:[])}function v0(){return il(ee("0"))}function U1(v){return Su(void 0,!1,v)}function W1(v){return T_(void 0,!1,p0([Sh(!1,void 0,v)]))}function fv(v,w){return w==="null"?M.createStrictEquality(v,tt()):w==="undefined"?M.createStrictEquality(v,v0()):M.createStrictEquality(Zc(v),oe(w))}function G4(v,w){return w==="null"?M.createStrictInequality(v,tt()):w==="undefined"?M.createStrictInequality(v,v0()):M.createStrictInequality(Zc(v),oe(w))}function q1(v,w,L){return Ab(v)?ws(Ka(v,void 0,w),void 0,void 0,L):vn(Ic(v,w),void 0,L)}function pv(v,w,L){return q1(v,"bind",[w,...L])}function hd(v,w,L){return q1(v,"call",[w,...L])}function $4(v,w,L){return q1(v,"apply",[w,L])}function Vf(v,w,L){return q1(ue(v),w,L)}function mk(v,w){return q1(v,"slice",w===void 0?[]:[Jp(w)])}function $N(v,w){return q1(v,"concat",w)}function Kd(v,w,L){return Vf("Object","defineProperty",[v,Jp(w),L])}function nx(v,w){return Vf("Object","getOwnPropertyDescriptor",[v,Jp(w)])}function XN(v,w,L){return Vf("Reflect","get",L?[v,w,L]:[v,w])}function Wc(v,w,L,ie){return Vf("Reflect","set",ie?[v,w,L,ie]:[v,w,L])}function dv(v,w,L){return L?(v.push(Q_(w,L)),!0):!1}function X4(v,w){const L=[];dv(L,"enumerable",Jp(v.enumerable)),dv(L,"configurable",Jp(v.configurable));let ie=dv(L,"writable",Jp(v.writable));ie=dv(L,"value",v.value)||ie;let Ie=dv(L,"get",v.get);return Ie=dv(L,"set",v.set)||Ie,E.assert(!(ie&&Ie),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),La(L,!w)}function qa(v,w){switch(v.kind){case 217:return Cr(v,w);case 216:return Xt(v,v.type,w);case 234:return cr(v,w,v.type);case 238:return Xo(v,w,v.type);case 235:return ta(v,w);case 360:return Qr(v,w)}}function q(v){return yu(v)&&Do(v)&&Do(wy(v))&&Do(Bd(v))&&!dt(H6(v))&&!dt(YD(v))}function de(v,w,L=15){return v&&NF(v,L)&&!q(v)?qa(v,de(v.expression,w)):w}function Le(v,w,L){if(!w)return v;const ie=$d(w,w.label,m2(w.statement)?Le(v,w.statement):v);return L&&L(w),ie}function lt(v,w){const L=lo(v);switch(L.kind){case 80:return w;case 110:case 9:case 10:case 11:return!1;case 209:return L.elements.length!==0;case 210:return L.properties.length>0;default:return!0}}function Dt(v,w,L,ie=!1){const Ie=nl(v,15);let Ot,Qn;return iu(Ie)?(Ot=Ge(),Qn=Ie):e8(Ie)?(Ot=Ge(),Qn=L!==void 0&&L<2?Ke(ue("_super"),Ie):Ie):ma(Ie)&8192?(Ot=v0(),Qn=i().parenthesizeLeftSideOfAccess(Ie,!1)):kr(Ie)?lt(Ie.expression,ie)?(Ot=fe(w),Qn=Ic(Ke(M.createAssignment(Ot,Ie.expression),Ie.expression),Ie.name),Ke(Qn,Ie)):(Ot=Ie.expression,Qn=Ie):No(Ie)?lt(Ie.expression,ie)?(Ot=fe(w),Qn=Uc(Ke(M.createAssignment(Ot,Ie.expression),Ie.expression),Ie.argumentExpression),Ke(Qn,Ie)):(Ot=Ie.expression,Qn=Ie):(Ot=v0(),Qn=i().parenthesizeLeftSideOfAccess(v,!1)),{target:Qn,thisArg:Ot}}function Kt(v,w){return Ic(On(La([Me(void 0,"value",[xr(void 0,void 0,v,void 0,void 0,void 0)],l0([hh(w)]))])),"value")}function Ir(v){return v.length>10?zs(v):E_(v,M.createComma)}function xi(v,w,L,ie=0,Ie){const Ot=Ie?v&&YI(v):os(v);if(Ot&&we(Ot)&&!Jo(Ot)){const Qn=Ta(Ke(ib(Ot),Ot),Ot.parent);return ie|=ma(Ot),L||(ie|=96),w||(ie|=3072),ie&&Xn(Qn,ie),Qn}return De(v)}function si(v,w,L){return xi(v,w,L,98304)}function ui(v,w,L,ie){return xi(v,w,L,32768,ie)}function as(v,w,L){return xi(v,w,L,16384)}function ao(v,w,L){return xi(v,w,L)}function Ha(v,w,L,ie){const Ie=Ic(v,Do(w)?w:ib(w));Ke(Ie,w);let Ot=0;return ie||(Ot|=96),L||(Ot|=3072),Ot&&Xn(Ie,Ot),Ie}function Za(v,w,L,ie){return v&&Lr(w,1)?Ha(v,xi(w),L,ie):as(w,L,ie)}function R_(v,w,L,ie){const Ie=jp(v,w,0,L);return b0(v,w,Ie,ie)}function Sl(v){return fa(v.expression)&&v.expression.text==="use strict"}function em(){return O_(hh(oe("use strict")))}function jp(v,w,L=0,ie){E.assert(w.length===0,"Prologue directives should be at the first statement in the target statements array");let Ie=!1;const Ot=v.length;for(;LCi&&zp.splice(Ie,0,...w.slice(Ci,eo)),Ci>Qn&&zp.splice(ie,0,...w.slice(Qn,Ci)),Qn>Ot&&zp.splice(L,0,...w.slice(Ot,Qn)),Ot>0)if(L===0)zp.splice(0,0,...w.slice(0,Ot));else{const x0=new Map;for(let hp=0;hp=0;hp--){const H1=w[hp];x0.has(H1.expression.text)||zp.unshift(H1)}}return $v(v)?Ke(V(zp,v.hasTrailingComma),v):v}function gk(v,w){var ie;let L;return typeof w=="number"?L=Jt(w):L=w,Go(v)?er(v,L,v.name,v.constraint,v.default):rs(v)?pi(v,L,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):n8(v)?on(v,L,v.typeParameters,v.parameters,v.type):mf(v)?ur(v,L,v.name,v.questionToken,v.type):Fs(v)?cn(v,L,v.name,(ie=v.questionToken)!=null?ie:v.exclamationToken,v.type,v.initializer):ag(v)?Sr(v,L,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):kc(v)?Yt(v,L,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Cc(v)?ut(v,L,v.parameters,v.body):gf(v)?Vt(v,L,v.name,v.parameters,v.type,v.body):Fu(v)?ke(v,L,v.name,v.parameters,v.body):Zb(v)?jt(v,L,v.parameters,v.type):_o(v)?_i(v,L,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Po(v)?va(v,L,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):Fl(v)?nn(v,L,v.name,v.typeParameters,v.heritageClauses,v.members):ic(v)?D1(v,L,v.declarationList):tl(v)?Yy(v,L,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Qc(v)?j2(v,L,v.name,v.typeParameters,v.heritageClauses,v.members):f_(v)?al(v,L,v.name,v.typeParameters,v.heritageClauses,v.members):Dp(v)?u0(v,L,v.name,v.typeParameters,v.type):Py(v)?Th(v,L,v.name,v.members):Ac(v)?fp(v,L,v.name,v.body):Hl(v)?Zy(v,L,v.isTypeOnly,v.name,v.moduleReference):bl(v)?Ky(v,L,v.importClause,v.moduleSpecifier,v.assertClause):fc(v)?Mp(v,L,v.expression):Yc(v)?xh(v,L,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.assertClause):E.assertNever(v)}function hk(v,w){var L;return rs(v)?pi(v,w,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):Fs(v)?cn(v,w,v.name,(L=v.questionToken)!=null?L:v.exclamationToken,v.type,v.initializer):kc(v)?Yt(v,w,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):gf(v)?Vt(v,w,v.name,v.parameters,v.type,v.body):Fu(v)?ke(v,w,v.name,v.parameters,v.body):Fl(v)?nn(v,w,v.name,v.typeParameters,v.heritageClauses,v.members):Qc(v)?j2(v,w,v.name,v.typeParameters,v.heritageClauses,v.members):E.assertNever(v)}function Sa(v){return v?V(v):void 0}function bo(v){return typeof v=="string"?ue(v):v}function Jp(v){return typeof v=="string"?oe(v):typeof v=="number"?ee(v):typeof v=="boolean"?v?mt():Je():v}function rx(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function kf(v){return typeof v=="number"?pe(v):v}function Lm(v){return v&&nG(v)?Ke(or(qy(),v),v):v}function yk(v){return typeof v=="string"||v&&!Ri(v)?Xy(v,void 0,void 0,void 0):v}}function i5e(e,t){return e!==t&&Ke(e,t),e}function s5e(e,t){return e!==t&&(or(e,t),Ke(e,t)),e}function FO(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return E.fail(`Unsupported kind: ${E.formatSyntaxKind(e)}`)}}function a5e(e,t){switch(Zg||(Zg=U0(99,!1,0)),e){case 15:Zg.setText("`"+t+"`");break;case 16:Zg.setText("`"+t+"${");break;case 17:Zg.setText("}"+t+"${");break;case 18:Zg.setText("}"+t+"`");break}let r=Zg.scan();if(r===20&&(r=Zg.reScanTemplateToken(!1)),Zg.isUnterminated())return Zg.setText(void 0),RH;let i;switch(r){case 15:case 16:case 17:case 18:i=Zg.getTokenValue();break}return i===void 0||Zg.scan()!==1?(Zg.setText(void 0),RH):(Zg.setText(void 0),i)}function th(e){return e&&we(e)?$3(e):nr(e)}function $3(e){return nr(e)&-67108865}function o5e(e,t){return t|e.transformFlags&134234112}function nr(e){if(!e)return 0;const t=e.transformFlags&~rfe(e.kind);return A_(e)&&Jc(e.name)?o5e(e.name,t):t}function ga(e){return e?e.transformFlags:0}function nfe(e){let t=0;for(const r of e)t|=nr(r);e.transformFlags=t}function rfe(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function GD(e){return e.flags|=16,e}function IH(e,t,r){let i,a,o,l,u,f,g,m,y,x;Gs(e)?(o="",l=e,u=e.length,f=t,g=r):(E.assert(t==="js"||t==="dts"),o=(t==="js"?e.javascriptPath:e.declarationPath)||"",f=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(E.assert(r===void 0||typeof r=="boolean"),i=r,a=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,x=e.oldFileOfCurrentEmit));const k=x?l5e(E.checkDefined(a)):c5e(a,i,u);return k.fileName=o,k.sourceMapPath=f,k.oldFileOfCurrentEmit=x,m&&y?(Object.defineProperty(k,"text",{get:m}),Object.defineProperty(k,"sourceMapText",{get:y})):(E.assert(!x),k.text=l!=null?l:"",k.sourceMapText=g),k}function c5e(e,t,r){let i,a,o,l,u,f,g,m;for(const x of e?e.sections:Ve)switch(x.kind){case"prologue":i=dn(i,Ke(I.createUnparsedPrologue(x.data),x));break;case"emitHelpers":a=dn(a,UH().get(x.data));break;case"no-default-lib":m=!0;break;case"reference":o=dn(o,{pos:-1,end:-1,fileName:x.data});break;case"type":l=dn(l,{pos:-1,end:-1,fileName:x.data});break;case"type-import":l=dn(l,{pos:-1,end:-1,fileName:x.data,resolutionMode:99});break;case"type-require":l=dn(l,{pos:-1,end:-1,fileName:x.data,resolutionMode:1});break;case"lib":u=dn(u,{pos:-1,end:-1,fileName:x.data});break;case"prepend":let k;for(const C of x.texts)(!t||C.kind!=="internal")&&(k=dn(k,Ke(I.createUnparsedTextLike(C.data,C.kind==="internal"),C)));f=Fr(f,k),g=dn(g,I.createUnparsedPrepend(x.data,k!=null?k:Ve));break;case"internal":if(t){g||(g=[]);break}case"text":g=dn(g,Ke(I.createUnparsedTextLike(x.data,x.kind==="internal"),x));break;default:E.assertNever(x)}if(!g){const x=I.createUnparsedTextLike(void 0,!1);z3(x,0,typeof r=="function"?r():r),g=[x]}const y=Cm.createUnparsedSource(i!=null?i:Ve,void 0,g);return J6(i,y),J6(g,y),J6(f,y),y.hasNoDefaultLib=m,y.helpers=a,y.referencedFiles=o||Ve,y.typeReferenceDirectives=l,y.libReferenceDirectives=u||Ve,y}function l5e(e){let t,r;for(const a of e.sections)switch(a.kind){case"internal":case"text":t=dn(t,Ke(I.createUnparsedTextLike(a.data,a.kind==="internal"),a));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=dn(r,Ke(I.createUnparsedSyntheticReference(a),a));break;case"prologue":case"emitHelpers":case"prepend":break;default:E.assertNever(a)}const i=I.createUnparsedSource(Ve,r,t!=null?t:Ve);return J6(r,i),J6(t,i),i.helpers=an(e.sources&&e.sources.helpers,a=>UH().get(a)),i}function _5e(e,t,r,i,a,o){return Gs(e)?FH(void 0,e,r,i,void 0,t,a,o):OH(e,t,r,i,a,o)}function OH(e,t,r,i,a,o,l,u){const f=Cm.createInputFiles();f.javascriptPath=t,f.javascriptMapPath=r,f.declarationPath=i,f.declarationMapPath=a,f.buildInfoPath=o;const g=new Map,m=C=>{if(C===void 0)return;let N=g.get(C);return N===void 0&&(N=e(C),g.set(C,N!==void 0?N:!1)),N!==!1?N:void 0},y=C=>{const N=m(C);return N!==void 0?N:`/* Input file ${C} was missing */\r +`};let x;return Object.defineProperties(f,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>y(E.checkDefined(i))},declarationMapText:{get:()=>m(a)},buildInfo:{get:()=>{var C,N;if(x===void 0&&o)if(l!=null&&l.getBuildInfo)x=(C=l.getBuildInfo(o,u.configFilePath))!=null?C:!1;else{const D=m(o);x=D!==void 0&&(N=BL(o,D))!=null?N:!1}return x||void 0}}}),f}function FH(e,t,r,i,a,o,l,u,f,g,m){const y=Cm.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=r,y.javascriptMapText=i,y.declarationPath=a,y.declarationText=o,y.declarationMapPath=l,y.declarationMapText=u,y.buildInfoPath=f,y.buildInfo=g,y.oldFileOfCurrentEmit=m,y}function u5e(e,t,r){return new(sfe||(sfe=Ol.getSourceMapSourceConstructor()))(e,t,r)}function or(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=f5e(r,e.emitNode))}return e}function f5e(e,t){const{flags:r,internalFlags:i,leadingComments:a,trailingComments:o,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:f,constantValue:g,helpers:m,startsOnNewLine:y,snippetElement:x,classThis:k,assignedName:C}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),a&&(t.leadingComments=Fr(a.slice(),t.leadingComments)),o&&(t.trailingComments=Fr(o.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),f&&(t.tokenSourceMapRanges=p5e(f,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),m)for(const N of m)t.helpers=jg(t.helpers,N);return y!==void 0&&(t.startsOnNewLine=y),x!==void 0&&(t.snippetElement=x),k&&(t.classThis=k),C&&(t.assignedName=C),t}function p5e(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var $D,LH,MH,Zg,RH,X3,ife,I,sfe,d5e=Rt({"src/compiler/factory/nodeFactory.ts"(){Ls(),$D=0,LH=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(LH||{}),MH=[],RH={},X3=Kue(),ife={createBaseSourceFileNode:e=>GD(X3.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>GD(X3.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>GD(X3.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>GD(X3.createBaseTokenNode(e)),createBaseNode:e=>GD(X3.createBaseNode(e))},I=HD(4,ife)}});function e_(e){var t;if(e.emitNode)E.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(WC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const r=(t=Rn(ts(Rn(e))))!=null?t:E.fail("Could not determine parsed source file.");e_(r).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function BH(e){var t,r;const i=(r=(t=Rn(ts(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const a of i)a.emitNode=void 0}function XD(e){const t=e_(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Xn(e,t){return e_(e).flags=t,e}function xm(e,t){const r=e_(e);return r.flags=r.flags|t,e}function QD(e,t){return e_(e).internalFlags=t,e}function eS(e,t){const r=e_(e);return r.internalFlags=r.internalFlags|t,e}function wy(e){var r;var t;return(r=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?r:e}function Ca(e,t){return e_(e).sourceMapRange=t,e}function m5e(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function afe(e,t,r){var o;const i=e_(e),a=(o=i.tokenSourceMapRanges)!=null?o:i.tokenSourceMapRanges=[];return a[t]=r,e}function Q3(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function LO(e,t){return e_(e).startsOnNewLine=t,e}function Bd(e){var r;var t;return(r=(t=e.emitNode)==null?void 0:t.commentRange)!=null?r:e}function Xc(e,t){return e_(e).commentRange=t,e}function H6(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function Dy(e,t){return e_(e).leadingComments=t,e}function Y3(e,t,r,i){return Dy(e,dn(H6(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function YD(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function tS(e,t){return e_(e).trailingComments=t,e}function MO(e,t,r,i){return tS(e,dn(YD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function ofe(e,t){Dy(e,H6(t)),tS(e,YD(t));const r=e_(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function cfe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function lfe(e,t){const r=e_(e);return r.constantValue=t,e}function nS(e,t){const r=e_(e);return r.helpers=dn(r.helpers,t),e}function Kg(e,t){if(dt(t)){const r=e_(e);for(const i of t)r.helpers=jg(r.helpers,i)}return e}function g5e(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?mI(i,t):!1}function RO(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function _fe(e,t,r){const i=e.emitNode,a=i&&i.helpers;if(!dt(a))return;const o=e_(t);let l=0;for(let u=0;u0&&(a[u-l]=f)}l>0&&(a.length-=l)}function jH(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function JH(e,t){const r=e_(e);return r.snippetElement=t,e}function zH(e){return e_(e).internalFlags|=4,e}function ufe(e,t){const r=e_(e);return r.typeNode=t,e}function ffe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function nh(e,t){return e_(e).identifierTypeArguments=t,e}function Yb(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function ZD(e,t){return e_(e).autoGenerate=t,e}function h5e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function pfe(e,t){return e_(e).generatedImportReference=t,e}function dfe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var y5e=Rt({"src/compiler/factory/emitNode.ts"(){Ls()}});function mfe(e){const t=e.factory,r=wu(()=>QD(t.createTrue(),8)),i=wu(()=>QD(t.createFalse(),8));return{getUnscopedHelperName:a,createDecorateHelper:o,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:N,createRunInitializersHelper:D,createAssignHelper:M,createAwaitHelper:V,createAsyncGeneratorHelper:U,createAsyncDelegatorHelper:Y,createAsyncValuesHelper:j,createRestHelper:ee,createAwaiterHelper:R,createExtendsHelper:Z,createTemplateObjectHelper:oe,createSpreadArrayHelper:_e,createPropKeyHelper:X,createSetFunctionNameHelper:H,createValuesHelper:Q,createReadHelper:ne,createGeneratorHelper:ue,createCreateBindingHelper:fe,createImportStarHelper:G,createImportStarCallbackHelper:Ne,createImportDefaultHelper:De,createExportStarHelper:Xe,createClassPrivateFieldGetHelper:ve,createClassPrivateFieldSetHelper:be,createClassPrivateFieldInHelper:xe,createAddDisposableResourceHelper:rt,createDisposeResourcesHelper:ct};function a(pe){return Xn(t.createIdentifier(pe),8196)}function o(pe,Pe,Ge,tt){e.requestEmitHelper(BO);const mt=[];return mt.push(t.createArrayLiteralExpression(pe,!0)),mt.push(Pe),Ge&&(mt.push(Ge),tt&&mt.push(tt)),t.createCallExpression(a("__decorate"),void 0,mt)}function l(pe,Pe){return e.requestEmitHelper(jO),t.createCallExpression(a("__metadata"),void 0,[t.createStringLiteral(pe),Pe])}function u(pe,Pe,Ge){return e.requestEmitHelper(JO),Ke(t.createCallExpression(a("__param"),void 0,[t.createNumericLiteral(Pe+""),pe]),Ge)}function f(pe){const Pe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),pe.name),t.createPropertyAssignment(t.createIdentifier("metadata"),pe.metadata)];return t.createObjectLiteralExpression(Pe)}function g(pe){const Pe=pe.computed?t.createElementAccessExpression(t.createIdentifier("obj"),pe.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),pe.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Pe))}function m(pe){const Pe=pe.computed?t.createElementAccessExpression(t.createIdentifier("obj"),pe.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),pe.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(Pe,t.createIdentifier("value")))])))}function y(pe){const Pe=pe.computed?pe.name:we(pe.name)?t.createStringLiteralFromNode(pe.name):pe.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(Pe,103,t.createIdentifier("obj"))))}function x(pe,Pe){const Ge=[];return Ge.push(y(pe)),Pe.get&&Ge.push(g(pe)),Pe.set&&Ge.push(m(pe)),t.createObjectLiteralExpression(Ge)}function k(pe){const Pe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(pe.kind)),t.createPropertyAssignment(t.createIdentifier("name"),pe.name.computed?pe.name.name:t.createStringLiteralFromNode(pe.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),pe.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),pe.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),x(pe.name,pe.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),pe.metadata)];return t.createObjectLiteralExpression(Pe)}function C(pe){return pe.kind==="class"?f(pe):k(pe)}function N(pe,Pe,Ge,tt,mt,Je){return e.requestEmitHelper(zO),t.createCallExpression(a("__esDecorate"),void 0,[pe!=null?pe:t.createNull(),Pe!=null?Pe:t.createNull(),Ge,C(tt),mt,Je])}function D(pe,Pe,Ge){return e.requestEmitHelper(VO),t.createCallExpression(a("__runInitializers"),void 0,Ge?[pe,Pe,Ge]:[pe,Pe])}function M(pe){return Ia(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,pe):(e.requestEmitHelper(UO),t.createCallExpression(a("__assign"),void 0,pe))}function V(pe){return e.requestEmitHelper(rS),t.createCallExpression(a("__await"),void 0,[pe])}function U(pe,Pe){return e.requestEmitHelper(rS),e.requestEmitHelper(WO),(pe.emitNode||(pe.emitNode={})).flags|=1572864,t.createCallExpression(a("__asyncGenerator"),void 0,[Pe?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),pe])}function Y(pe){return e.requestEmitHelper(rS),e.requestEmitHelper(qO),t.createCallExpression(a("__asyncDelegator"),void 0,[pe])}function j(pe){return e.requestEmitHelper(HO),t.createCallExpression(a("__asyncValues"),void 0,[pe])}function ee(pe,Pe,Ge,tt){e.requestEmitHelper(GO);const mt=[];let Je=0;for(let ot=0;ot{let i="";for(let a=0;ae.name))}function Z3(e,t){return Js(e)&&we(e.expression)&&(ma(e.expression)&8192)!==0&&e.expression.escapedText===t}var WH,BO,jO,JO,zO,VO,UO,rS,WO,qO,HO,GO,$O,XO,QO,YO,ZO,KO,eF,tF,nF,G6,rF,KD,iF,sF,aF,oF,cF,lF,_F,hfe,eA,tA,v5e=Rt({"src/compiler/factory/emitHelpers.ts"(){Ls(),WH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(WH||{}),BO={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); @@ -92,8 +92,8 @@ ${F.join(` return t; }; return __assign.apply(this, arguments); - };`},tS={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); }`},WO={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[tS],text:` + };`},rS={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); }`},WO={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[rS],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 = []; @@ -104,7 +104,7 @@ ${F.join(` 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]); } - };`},qO={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[tS],text:` + };`},qO={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[rS],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; @@ -226,7 +226,7 @@ ${F.join(` } 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 }; } - };`},H6={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + };`},G6={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); @@ -242,7 +242,7 @@ ${F.join(` Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; - });`},ZD={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[H6,rF],priority:2,text:` + });`},KD={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[G6,rF],priority:2,text:` var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; @@ -252,7 +252,7 @@ ${F.join(` };`},iF={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; - };`},sF={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[H6],priority:2,text:` + };`},sF={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[G6],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); };`},aF={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` @@ -315,51 +315,51 @@ ${F.join(` })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - });`},KD={name:"typescript:async-super",scoped:!0,text:zH` - const ${"_superIndex"} = name => super[name];`},eA={name:"typescript:advanced-async-super",scoped:!0,text:zH` + });`},eA={name:"typescript:async-super",scoped:!0,text:VH` + const ${"_superIndex"} = name => super[name];`},tA={name:"typescript:advanced-async-super",scoped:!0,text:VH` const ${"_superIndex"} = (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);`}}});function Ou(e){return e.kind===9}function uF(e){return e.kind===10}function pa(e){return e.kind===11}function nS(e){return e.kind===12}function WH(e){return e.kind===14}function rS(e){return e.kind===15}function G6(e){return e.kind===16}function yfe(e){return e.kind===17}function qH(e){return e.kind===18}function fF(e){return e.kind===26}function vfe(e){return e.kind===28}function HH(e){return e.kind===40}function GH(e){return e.kind===41}function tA(e){return e.kind===42}function nA(e){return e.kind===54}function u1(e){return e.kind===58}function bfe(e){return e.kind===59}function pF(e){return e.kind===29}function Tfe(e){return e.kind===39}function we(e){return e.kind===80}function Ei(e){return e.kind===81}function iS(e){return e.kind===95}function dF(e){return e.kind===90}function Y3(e){return e.kind===134}function xfe(e){return e.kind===131}function $H(e){return e.kind===135}function Sfe(e){return e.kind===148}function sS(e){return e.kind===126}function kfe(e){return e.kind===128}function Cfe(e){return e.kind===164}function Efe(e){return e.kind===129}function Z3(e){return e.kind===108}function K3(e){return e.kind===102}function wfe(e){return e.kind===84}function gu(e){return e.kind===166}function Ga(e){return e.kind===167}function Ho(e){return e.kind===168}function ns(e){return e.kind===169}function Wl(e){return e.kind===170}function mf(e){return e.kind===171}function Is(e){return e.kind===172}function ig(e){return e.kind===173}function Ec(e){return e.kind===174}function ec(e){return e.kind===175}function wc(e){return e.kind===176}function gf(e){return e.kind===177}function Fu(e){return e.kind===178}function $6(e){return e.kind===179}function rA(e){return e.kind===180}function Xb(e){return e.kind===181}function mF(e){return e.kind===182}function sp(e){return e.kind===183}function sg(e){return e.kind===184}function e8(e){return e.kind===185}function X6(e){return e.kind===186}function ef(e){return e.kind===187}function XH(e){return e.kind===188}function Q6(e){return e.kind===189}function t8(e){return e.kind===202}function QH(e){return e.kind===190}function YH(e){return e.kind===191}function aS(e){return e.kind===192}function iA(e){return e.kind===193}function Y6(e){return e.kind===194}function oS(e){return e.kind===195}function cS(e){return e.kind===196}function gF(e){return e.kind===197}function lS(e){return e.kind===198}function _S(e){return e.kind===199}function n8(e){return e.kind===200}function wy(e){return e.kind===201}function ag(e){return e.kind===205}function Dfe(e){return e.kind===204}function v5e(e){return e.kind===203}function td(e){return e.kind===206}function uS(e){return e.kind===207}function Fa(e){return e.kind===208}function u_(e){return e.kind===209}function ha(e){return e.kind===210}function kr(e){return e.kind===211}function No(e){return e.kind===212}function js(e){return e.kind===213}function f2(e){return e.kind===214}function Qb(e){return e.kind===215}function Afe(e){return e.kind===216}function hu(e){return e.kind===217}function fo(e){return e.kind===218}function Po(e){return e.kind===219}function Nfe(e){return e.kind===220}function Z6(e){return e.kind===221}function Yb(e){return e.kind===222}function f1(e){return e.kind===223}function Dy(e){return e.kind===224}function ZH(e){return e.kind===225}function rr(e){return e.kind===226}function K6(e){return e.kind===227}function hF(e){return e.kind===228}function yF(e){return e.kind===229}function Bd(e){return e.kind===230}function Fl(e){return e.kind===231}function pl(e){return e.kind===232}function nh(e){return e.kind===233}function sA(e){return e.kind===234}function b5e(e){return e.kind===238}function fS(e){return e.kind===235}function r8(e){return e.kind===236}function T5e(e){return e.kind===237}function vF(e){return e.kind===360}function i8(e){return e.kind===361}function s8(e){return e.kind===239}function Pfe(e){return e.kind===240}function hs(e){return e.kind===241}function ic(e){return e.kind===243}function KH(e){return e.kind===242}function ql(e){return e.kind===244}function Zb(e){return e.kind===245}function x5e(e){return e.kind===246}function S5e(e){return e.kind===247}function Kb(e){return e.kind===248}function bF(e){return e.kind===249}function aA(e){return e.kind===250}function k5e(e){return e.kind===251}function C5e(e){return e.kind===252}function nd(e){return e.kind===253}function Ife(e){return e.kind===254}function oA(e){return e.kind===255}function p2(e){return e.kind===256}function eG(e){return e.kind===257}function d2(e){return e.kind===258}function E5e(e){return e.kind===259}function Mi(e){return e.kind===260}function dl(e){return e.kind===261}function tl(e){return e.kind===262}function Qc(e){return e.kind===263}function f_(e){return e.kind===264}function wp(e){return e.kind===265}function Ay(e){return e.kind===266}function Nc(e){return e.kind===267}function jd(e){return e.kind===268}function a8(e){return e.kind===269}function cA(e){return e.kind===270}function Hl(e){return e.kind===271}function bl(e){return e.kind===272}function Sm(e){return e.kind===273}function Ofe(e){return e.kind===302}function TF(e){return e.kind===300}function Ffe(e){return e.kind===301}function p1(e){return e.kind===274}function og(e){return e.kind===280}function rh(e){return e.kind===275}function yu(e){return e.kind===276}function dc(e){return e.kind===277}function Yc(e){return e.kind===278}function ap(e){return e.kind===279}function p_(e){return e.kind===281}function w5e(e){return e.kind===282}function tG(e){return e.kind===359}function pS(e){return e.kind===362}function km(e){return e.kind===283}function cg(e){return e.kind===284}function eT(e){return e.kind===285}function Jd(e){return e.kind===286}function m2(e){return e.kind===287}function g2(e){return e.kind===288}function dS(e){return e.kind===289}function Lfe(e){return e.kind===290}function zd(e){return e.kind===291}function h2(e){return e.kind===292}function mS(e){return e.kind===293}function o8(e){return e.kind===294}function Vd(e){return e.kind===295}function e4(e){return e.kind===296}function lA(e){return e.kind===297}function tf(e){return e.kind===298}function Ny(e){return e.kind===299}function Dc(e){return e.kind===303}function nf(e){return e.kind===304}function ih(e){return e.kind===305}function y2(e){return e.kind===306}function Mfe(e){return e.kind===308}function Ri(e){return e.kind===312}function nG(e){return e.kind===313}function tT(e){return e.kind===314}function nT(e){return e.kind===316}function c8(e){return e.kind===317}function Py(e){return e.kind===318}function Rfe(e){return e.kind===331}function Bfe(e){return e.kind===332}function D5e(e){return e.kind===333}function jfe(e){return e.kind===319}function Jfe(e){return e.kind===320}function t4(e){return e.kind===321}function xF(e){return e.kind===322}function rG(e){return e.kind===323}function n4(e){return e.kind===324}function SF(e){return e.kind===325}function A5e(e){return e.kind===326}function Dp(e){return e.kind===327}function r4(e){return e.kind===329}function Iy(e){return e.kind===330}function i4(e){return e.kind===335}function N5e(e){return e.kind===337}function zfe(e){return e.kind===339}function iG(e){return e.kind===345}function sG(e){return e.kind===340}function aG(e){return e.kind===341}function oG(e){return e.kind===342}function cG(e){return e.kind===343}function kF(e){return e.kind===344}function l8(e){return e.kind===346}function lG(e){return e.kind===338}function P5e(e){return e.kind===354}function _A(e){return e.kind===347}function rd(e){return e.kind===348}function CF(e){return e.kind===349}function Vfe(e){return e.kind===350}function _8(e){return e.kind===351}function id(e){return e.kind===352}function s4(e){return e.kind===353}function I5e(e){return e.kind===334}function Ufe(e){return e.kind===355}function _G(e){return e.kind===336}function EF(e){return e.kind===357}function O5e(e){return e.kind===356}function a4(e){return e.kind===358}var F5e=Bt({"src/compiler/factory/nodeTests.ts"(){Os()}});function uA(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function rT(e,t,r,i){if(Ga(r))return Ke(e.createElementAccessExpression(t,r.expression),i);{const a=Ke($m(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return xm(a,128),a}}function uG(e,t){const r=Cm.createIdentifier(e||"React");return Ta(r,es(t)),r}function fG(e,t,r){if(gu(t)){const i=fG(e,t.left,r),a=e.createIdentifier(lr(t.right));return a.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,a)}else return uG(lr(t),r)}function pG(e,t,r,i){return t?fG(e,t,i):e.createPropertyAccessExpression(uG(r,i),"createElement")}function L5e(e,t,r,i){return t?fG(e,t,i):e.createPropertyAccessExpression(uG(r,i),"Fragment")}function Wfe(e,t,r,i,a,o){const l=[r];if(i&&l.push(i),a&&a.length>0)if(i||l.push(e.createNull()),a.length>1)for(const u of a)O_(u),l.push(u);else l.push(a[0]);return Ke(e.createCallExpression(t,void 0,l),o)}function qfe(e,t,r,i,a,o,l){const f=[L5e(e,r,i,o),e.createNull()];if(a&&a.length>0)if(a.length>1)for(const g of a)O_(g),f.push(g);else f.push(a[0]);return Ke(e.createCallExpression(pG(e,t,i,o),void 0,f),l)}function dG(e,t,r){if(dl(t)){const i=wa(t.declarations),a=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return Ke(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[a])),t)}else{const i=Ke(e.createAssignment(t,r),t);return Ke(e.createExpressionStatement(i),t)}}function M5e(e,t,r){return hs(t)?e.updateBlock(t,Ke(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function fA(e,t){if(gu(t)){const r=fA(e,t.left),i=Ta(Ke(e.cloneNode(t.right),t.right),t.right.parent);return Ke(e.createPropertyAccessExpression(r,i),t)}else return Ta(Ke(e.cloneNode(t),t),t.parent)}function mG(e,t){return we(t)?e.createStringLiteralFromNode(t):Ga(t)?Ta(Ke(e.cloneNode(t.expression),t.expression),t.expression.parent):Ta(Ke(e.cloneNode(t),t),t.parent)}function R5e(e,t,r,i,a){const{firstAccessor:o,getAccessor:l,setAccessor:u}=Ub(t,r);if(r===o)return Ke(e.createObjectDefinePropertyCall(i,mG(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&Ke(or(e.createFunctionExpression(qv(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&Ke(or(e.createFunctionExpression(qv(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!a)),o)}function B5e(e,t,r){return or(Ke(e.createAssignment(rT(e,r,t.name,t.name),t.initializer),t),t)}function j5e(e,t,r){return or(Ke(e.createAssignment(rT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function J5e(e,t,r){return or(Ke(e.createAssignment(rT(e,r,t.name,t.name),or(Ke(e.createFunctionExpression(qv(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Hfe(e,t,r,i){switch(r.name&&Ei(r.name)&&E.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return R5e(e,t.properties,r,i,!!t.multiLine);case 303:return B5e(e,r,i);case 304:return j5e(e,r,i);case 174:return J5e(e,r,i)}}function wF(e,t,r,i,a){const o=t.operator;E.assert(o===46||o===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);r=e.createAssignment(l,r),Ke(r,t.operand);let u=Dy(t)?e.createPrefixUnaryExpression(o,l):e.createPostfixUnaryExpression(l,o);return Ke(u,t),a&&(u=e.createAssignment(a,u),Ke(u,t)),r=e.createComma(r,u),Ke(r,t),ZH(t)&&(r=e.createComma(r,l),Ke(r,t)),r}function gG(e){return(ma(e)&65536)!==0}function Zg(e){return(ma(e)&32768)!==0}function DF(e){return(ma(e)&16384)!==0}function Gfe(e){return pa(e.expression)&&e.expression.text==="use strict"}function hG(e){for(const t of e)if(xp(t)){if(Gfe(t))return t}else break}function $fe(e){const t=wl(e);return t!==void 0&&xp(t)&&Gfe(t)}function pA(e){return e.kind===226&&e.operatorToken.kind===28}function u8(e){return pA(e)||i8(e)}function f8(e){return hu(e)&&Zn(e)&&!!fy(e)}function AF(e){const t=py(e);return E.assertIsDefined(t),t}function NF(e,t=15){switch(e.kind){case 217:return t&16&&f8(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function nl(e,t=15){for(;NF(e,t);)e=e.expression;return e}function Xfe(e,t=15){let r=e.parent;for(;NF(r,t);)r=r.parent,E.assert(r);return r}function z5e(e){return nl(e,6)}function O_(e){return LO(e,!0)}function dA(e){const t=Ko(e,Ri),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Qfe(e){const t=Ko(e,Ri),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function yG(e,t,r,i,a,o,l){if(i.importHelpers&&Fx(r,i)){let u;const f=Ul(i);if(f>=5&&f<=99||r.impliedNodeFormat===99){const g=RO(r);if(g){const m=[];for(const y of g)if(!y.scoped){const x=y.importName;x&&Gf(m,x)}if(dt(m)){m.sort(w_),u=e.createNamedImports(an(m,k=>y9(r,k)?e.createImportSpecifier(!1,void 0,e.createIdentifier(k)):e.createImportSpecifier(!1,e.createIdentifier(k),t.getUnscopedHelperName(k))));const y=Ko(r,Ri),x=e_(y);x.externalHelpers=!0}}}else{const g=Yfe(e,r,i,a,o||l);g&&(u=e.createNamespaceImport(g))}if(u){const g=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(_1),void 0);return Zx(g,2),g}}}function Yfe(e,t,r,i,a){if(r.importHelpers&&Fx(t,r)){const o=dA(t);if(o)return o;const l=Ul(r);let u=(i||bm(r)&&a)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){const f=RO(t);if(f){for(const g of f)if(!g.scoped){u=!0;break}}}if(u){const f=Ko(t,Ri),g=e_(f);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(_1))}}}function o4(e,t,r){const i=T6(t);if(i&&!Bx(t)&&!b9(t)){const a=i.name;return jo(a)?a:e.createIdentifier(Xv(r,a)||lr(a))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function gS(e,t,r,i,a,o){const l=b6(t);if(l&&pa(l))return U5e(t,i,e,a,o)||V5e(e,l,r)||e.cloneNode(l)}function V5e(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function mA(e,t,r,i){if(!!t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ao(i))return e.createStringLiteral(vq(r,t.fileName))}}function U5e(e,t,r,i,a){return mA(r,i.getExternalModuleFileFromDeclaration(e),t,a)}function gA(e){if(Tw(e))return e.initializer;if(Dc(e)){const t=e.initializer;return Kl(t,!0)?t.right:void 0}if(nf(e))return e.objectAssignmentInitializer;if(Kl(e,!0))return e.right;if(Bd(e))return gA(e.expression)}function d1(e){if(Tw(e))return e.name;if(q0(e)){switch(e.kind){case 303:return d1(e.initializer);case 304:return e.name;case 305:return d1(e.expression)}return}return Kl(e,!0)?d1(e.left):Bd(e)?d1(e.expression):e}function PF(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function vG(e){const t=IF(e);return E.assert(!!t||ih(e),"Invalid property name for binding element."),t}function IF(e){switch(e.kind){case 208:if(e.propertyName){const r=e.propertyName;return Ei(r)?E.failBadSyntaxKind(r):Ga(r)&&Zfe(r.expression)?r.expression:r}break;case 303:if(e.name){const r=e.name;return Ei(r)?E.failBadSyntaxKind(r):Ga(r)&&Zfe(r.expression)?r.expression:r}break;case 305:return e.name&&Ei(e.name)?E.failBadSyntaxKind(e.name):e.name}const t=d1(e);if(t&&Jc(t))return t}function Zfe(e){const t=e.kind;return t===11||t===9}function c4(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function bG(e){if(e){let t=e;for(;;){if(we(t)||!t.body)return we(t)?t:t.name;t=t.body}}}function W5e(e){const t=e.kind;return t===176||t===178}function Kfe(e){const t=e.kind;return t===176||t===177||t===178}function TG(e){const t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function epe(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function tpe(e){return u1(e)||nA(e)}function npe(e){return we(e)||gF(e)}function rpe(e){return Sfe(e)||HH(e)||GH(e)}function ipe(e){return u1(e)||HH(e)||GH(e)}function spe(e){return we(e)||pa(e)}function q5e(e){const t=e.kind;return t===106||t===112||t===97||wb(e)||Dy(e)}function H5e(e){return e===43}function G5e(e){return e===42||e===44||e===45}function $5e(e){return H5e(e)||G5e(e)}function X5e(e){return e===40||e===41}function Q5e(e){return X5e(e)||$5e(e)}function Y5e(e){return e===48||e===49||e===50}function Z5e(e){return Y5e(e)||Q5e(e)}function K5e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function eNe(e){return K5e(e)||Z5e(e)}function tNe(e){return e===35||e===37||e===36||e===38}function nNe(e){return tNe(e)||eNe(e)}function rNe(e){return e===51||e===52||e===53}function iNe(e){return rNe(e)||nNe(e)}function sNe(e){return e===56||e===57}function aNe(e){return sNe(e)||iNe(e)}function oNe(e){return e===61||aNe(e)||Q0(e)}function cNe(e){return oNe(e)||e===28}function ape(e){return cNe(e.kind)}function OF(e,t,r,i,a,o){const l=new fpe(e,t,r,i,a,o);return u;function u(f,g){const m={value:void 0},y=[LF.enter],x=[f],k=[void 0];let C=0;for(;y[C]!==LF.done;)C=y[C](l,C,y,x,k,m,g);return E.assertEqual(C,0),m.value}}function ope(e){return e===95||e===90}function hA(e){const t=e.kind;return ope(t)}function lNe(e){const t=e.kind;return W0(t)&&!ope(t)}function cpe(e,t){if(t!==void 0)return t.length===0?t:Ke(e.createNodeArray([],t.hasTrailingComma),t)}function yA(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let a=e,o=a.original;for(;o;){a=o;const l=(t=a.emitNode)==null?void 0:t.autoGenerate;if($m(a)&&(l===void 0||!!(l.flags&4)&&l.id!==i))break;o=a.original}return a}return e}function l4(e,t){return typeof e=="object"?Oy(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function _Ne(e,t){return typeof e=="string"?e:uNe(e,E.checkDefined(t))}function uNe(e,t){return Db(e)?t(e).slice(1):jo(e)?t(e):Ei(e)?e.escapedText.slice(1):lr(e)}function Oy(e,t,r,i,a){return t=l4(t,a),i=l4(i,a),r=_Ne(r,a),`${e?"#":""}${t}${r}${i}`}function xG(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function lpe(e,t,r,i,a=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(a,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function _pe(e,t,r,i,a=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(a,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function FF(e){let t=e.expression;for(;;){if(t=nl(t),i8(t)){t=ka(t.elements);continue}if(pA(t)){t=t.right;continue}if(Kl(t,!0)&&jo(t.left))return t;break}}function fNe(e){return hu(e)&&Do(e)&&!e.emitNode}function vA(e,t){if(fNe(e))vA(e.expression,t);else if(pA(e))vA(e.left,t),vA(e.right,t);else if(i8(e))for(const r of e.elements)vA(r,t);else t.push(e)}function upe(e){const t=[];return vA(e,t),t}function bA(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of c4(e)){const r=d1(t);if(r&&XC(r)&&(r.transformFlags&65536||r.transformFlags&128&&bA(r)))return!0}return!1}var LF,fpe,pNe=Bt({"src/compiler/factory/utilities.ts"(){Os(),(e=>{function t(m,y,x,k,C,N,D){const M=y>0?C[y-1]:void 0;return E.assertEqual(x[y],t),C[y]=m.onEnter(k[y],M,D),x[y]=u(m,t),y}e.enter=t;function r(m,y,x,k,C,N,D){E.assertEqual(x[y],r),E.assertIsDefined(m.onLeft),x[y]=u(m,r);const M=m.onLeft(k[y].left,C[y],k[y]);return M?(g(y,k,M),f(y,x,k,C,M)):y}e.left=r;function i(m,y,x,k,C,N,D){return E.assertEqual(x[y],i),E.assertIsDefined(m.onOperator),x[y]=u(m,i),m.onOperator(k[y].operatorToken,C[y],k[y]),y}e.operator=i;function a(m,y,x,k,C,N,D){E.assertEqual(x[y],a),E.assertIsDefined(m.onRight),x[y]=u(m,a);const M=m.onRight(k[y].right,C[y],k[y]);return M?(g(y,k,M),f(y,x,k,C,M)):y}e.right=a;function o(m,y,x,k,C,N,D){E.assertEqual(x[y],o),x[y]=u(m,o);const M=m.onExit(k[y],C[y]);if(y>0){if(y--,m.foldState){const V=x[y]===o?"right":"left";C[y]=m.foldState(C[y],M,V)}}else N.value=M;return y}e.exit=o;function l(m,y,x,k,C,N,D){return E.assertEqual(x[y],l),y}e.done=l;function u(m,y){switch(y){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return a;case a:return o;case o:return l;case l:return l;default:E.fail("Invalid state")}}e.nextState=u;function f(m,y,x,k,C){return m++,y[m]=t,x[m]=C,k[m]=void 0,m}function g(m,y,x){if(E.shouldAssert(2))for(;m>=0;)E.assert(y[m]!==x,"Circular traversal detected."),m--}})(LF||(LF={})),fpe=class{constructor(e,t,r,i,a,o){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=a,this.foldState=o}}}});function Ke(e,t){return t?Tm(e,t.pos,t.end):e}function Ap(e){const t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function iT(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var dNe=Bt({"src/compiler/factory/utilitiesPublic.ts"(){Os()}});function Lt(e,t){return t&&e(t)}function vi(e,t,r){if(r){if(t)return t(r);for(const i of r){const a=e(i);if(a)return a}}}function SG(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function TA(e){return mn(e.statements,mNe)||gNe(e)}function mNe(e){return Ap(e)&&hNe(e,95)||Hl(e)&&km(e.moduleReference)||bl(e)||dc(e)||Yc(e)?e:void 0}function gNe(e){return e.flags&8388608?ppe(e):void 0}function ppe(e){return yNe(e)?e:ys(e,ppe)}function hNe(e,t){return dt(e.modifiers,r=>r.kind===t)}function yNe(e){return r8(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function dpe(e,t,r){return vi(t,r,e.typeParameters)||vi(t,r,e.parameters)||Lt(t,e.type)}function mpe(e,t,r){return vi(t,r,e.types)}function gpe(e,t,r){return Lt(t,e.type)}function hpe(e,t,r){return vi(t,r,e.elements)}function ype(e,t,r){return Lt(t,e.expression)||Lt(t,e.questionDotToken)||vi(t,r,e.typeArguments)||vi(t,r,e.arguments)}function vpe(e,t,r){return vi(t,r,e.statements)}function bpe(e,t,r){return Lt(t,e.label)}function Tpe(e,t,r){return vi(t,r,e.modifiers)||Lt(t,e.name)||vi(t,r,e.typeParameters)||vi(t,r,e.heritageClauses)||vi(t,r,e.members)}function xpe(e,t,r){return vi(t,r,e.elements)}function Spe(e,t,r){return Lt(t,e.propertyName)||Lt(t,e.name)}function kpe(e,t,r){return Lt(t,e.tagName)||vi(t,r,e.typeArguments)||Lt(t,e.attributes)}function _4(e,t,r){return Lt(t,e.type)}function Cpe(e,t,r){return Lt(t,e.tagName)||(e.isNameFirst?Lt(t,e.name)||Lt(t,e.typeExpression):Lt(t,e.typeExpression)||Lt(t,e.name))||(typeof e.comment=="string"?void 0:vi(t,r,e.comment))}function u4(e,t,r){return Lt(t,e.tagName)||Lt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:vi(t,r,e.comment))}function kG(e,t,r){return Lt(t,e.name)}function hS(e,t,r){return Lt(t,e.tagName)||(typeof e.comment=="string"?void 0:vi(t,r,e.comment))}function vNe(e,t,r){return Lt(t,e.expression)}function ys(e,t,r){if(e===void 0||e.kind<=165)return;const i=Lpe[e.kind];return i===void 0?void 0:i(e,t,r)}function p8(e,t,r){const i=Epe(e),a=[];for(;a.length=0;--u)i.push(o[u]),a.push(l)}else{const u=t(o,l);if(u){if(u==="skip")continue;return u}if(o.kind>=166)for(const f of Epe(o))i.push(f),a.push(o)}}}function Epe(e){const t=[];return ys(e,r,r),t;function r(i){t.unshift(i)}}function wpe(e){e.externalModuleIndicator=TA(e)}function xA(e,t,r,i=!1,a){var o,l,u,f;(o=ci)==null||o.push(ci.Phase.Parse,"createSourceFile",{path:e},!0),ho("beforeParse");let g;(l=wd)==null||l.logStartParseSourceFile(e);const{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:x}=typeof r=="object"?r:{languageVersion:r};if(m===100)g=m1.parseSourceFile(e,t,m,void 0,i,6,_o);else{const k=x===void 0?y:C=>(C.impliedNodeFormat=x,(y||wpe)(C));g=m1.parseSourceFile(e,t,m,void 0,i,a,k)}return(u=wd)==null||u.logStopParseSourceFile(),ho("afterParse"),Gu("Parse","beforeParse","afterParse"),(f=ci)==null||f.pop(),g}function yS(e,t){return m1.parseIsolatedEntityName(e,t)}function SA(e,t){return m1.parseJsonText(e,t)}function zc(e){return e.externalModuleIndicator!==void 0}function CG(e,t,r,i=!1){const a=MF.updateSourceFile(e,t,r,i);return a.flags|=e.flags&12582912,a}function Dpe(e,t,r){const i=m1.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&m1.fixupParentReferences(i.jsDoc),i}function bNe(e,t,r){return m1.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function su(e){return Gc(e,VD)||Hc(e,".ts")&&Xl(Jl(e),".d.")}function TNe(e,t,r,i){if(!!e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,p.resolution_mode_should_be_either_require_or_import)}}function EG(e,t){const r=[];for(const i of Hm(t,0)||Ve){const a=t.substring(i.pos,i.end);SNe(r,i,a)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const a=e.pragmas.get(i.name);a instanceof Array?a.push(i.args):e.pragmas.set(i.name,[a,i.args]);continue}e.pragmas.set(i.name,i.args)}}function wG(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const a=e.referencedFiles,o=e.typeReferenceDirectives,l=e.libReferenceDirectives;mn(J7(r),u=>{const{types:f,lib:g,path:m,["resolution-mode"]:y}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(f){const x=TNe(y,f.pos,f.end,t);o.push({pos:f.pos,end:f.end,fileName:f.value,...x?{resolutionMode:x}:{}})}else g?l.push({pos:g.pos,end:g.end,fileName:g.value}):m?a.push({pos:m.pos,end:m.end,fileName:m.value}):t(u.range.pos,u.range.end-u.range.pos,p.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=an(J7(r),a=>({name:a.arguments.name,path:a.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const a of r)e.moduleName&&t(a.range.pos,a.range.end-a.range.pos,p.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=a.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{mn(J7(r),a=>{(!e.checkJsDirective||a.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:a.range.end,pos:a.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:E.fail("Unhandled pragma kind")}})}function xNe(e){if(RF.has(e))return RF.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return RF.set(e,t),t}function SNe(e,t,r){const i=t.kind===2&&Mpe.exec(r);if(i){const o=i[1].toLowerCase(),l=G7[o];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const f of l.args){const m=xNe(f.name).exec(r);if(!m&&!f.optional)return;if(m){const y=m[2]||m[3];if(f.captureSpan){const x=t.pos+m.index+m[1].length+1;u[f.name]={value:y,pos:x,end:x+y.length}}else u[f.name]=y}}e.push({name:o,args:{arguments:u,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}const a=t.kind===2&&Rpe.exec(r);if(a)return Ape(e,t,2,a);if(t.kind===3){const o=/@(\S+)(\s+.*)?$/gim;let l;for(;l=o.exec(r);)Ape(e,t,4,l)}}function Ape(e,t,r,i){if(!i)return;const a=i[1].toLowerCase(),o=G7[a];if(!o||!(o.kind&r))return;const l=i[2],u=kNe(o,l);u!=="fail"&&e.push({name:a,args:{arguments:u,range:t}})}function kNe(e,t){if(!t)return{};if(!e.args)return{};const r=Bv(t).split(/\s+/),i={};for(let a=0;anew(Fpe||(Fpe=Ol.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Ipe||(Ipe=Ol.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Ope||(Ope=Ol.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Ppe||(Ppe=Ol.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Npe||(Npe=Ol.getNodeConstructor()))(e,-1,-1)},Cm=qD(1,DG),Lpe={[166]:function(t,r,i){return Lt(r,t.left)||Lt(r,t.right)},[168]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||Lt(r,t.constraint)||Lt(r,t.default)||Lt(r,t.expression)},[304]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||Lt(r,t.questionToken)||Lt(r,t.exclamationToken)||Lt(r,t.equalsToken)||Lt(r,t.objectAssignmentInitializer)},[305]:function(t,r,i){return Lt(r,t.expression)},[169]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.dotDotDotToken)||Lt(r,t.name)||Lt(r,t.questionToken)||Lt(r,t.type)||Lt(r,t.initializer)},[172]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||Lt(r,t.questionToken)||Lt(r,t.exclamationToken)||Lt(r,t.type)||Lt(r,t.initializer)},[171]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||Lt(r,t.questionToken)||Lt(r,t.type)||Lt(r,t.initializer)},[303]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||Lt(r,t.questionToken)||Lt(r,t.exclamationToken)||Lt(r,t.initializer)},[260]:function(t,r,i){return Lt(r,t.name)||Lt(r,t.exclamationToken)||Lt(r,t.type)||Lt(r,t.initializer)},[208]:function(t,r,i){return Lt(r,t.dotDotDotToken)||Lt(r,t.propertyName)||Lt(r,t.name)||Lt(r,t.initializer)},[181]:function(t,r,i){return vi(r,i,t.modifiers)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)},[185]:function(t,r,i){return vi(r,i,t.modifiers)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)},[184]:function(t,r,i){return vi(r,i,t.modifiers)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)},[179]:dpe,[180]:dpe,[174]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.asteriskToken)||Lt(r,t.name)||Lt(r,t.questionToken)||Lt(r,t.exclamationToken)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)||Lt(r,t.body)},[173]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||Lt(r,t.questionToken)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)},[176]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)||Lt(r,t.body)},[177]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)||Lt(r,t.body)},[178]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)||Lt(r,t.body)},[262]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.asteriskToken)||Lt(r,t.name)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)||Lt(r,t.body)},[218]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.asteriskToken)||Lt(r,t.name)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)||Lt(r,t.body)},[219]:function(t,r,i){return vi(r,i,t.modifiers)||vi(r,i,t.typeParameters)||vi(r,i,t.parameters)||Lt(r,t.type)||Lt(r,t.equalsGreaterThanToken)||Lt(r,t.body)},[175]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.body)},[183]:function(t,r,i){return Lt(r,t.typeName)||vi(r,i,t.typeArguments)},[182]:function(t,r,i){return Lt(r,t.assertsModifier)||Lt(r,t.parameterName)||Lt(r,t.type)},[186]:function(t,r,i){return Lt(r,t.exprName)||vi(r,i,t.typeArguments)},[187]:function(t,r,i){return vi(r,i,t.members)},[188]:function(t,r,i){return Lt(r,t.elementType)},[189]:function(t,r,i){return vi(r,i,t.elements)},[192]:mpe,[193]:mpe,[194]:function(t,r,i){return Lt(r,t.checkType)||Lt(r,t.extendsType)||Lt(r,t.trueType)||Lt(r,t.falseType)},[195]:function(t,r,i){return Lt(r,t.typeParameter)},[205]:function(t,r,i){return Lt(r,t.argument)||Lt(r,t.assertions)||Lt(r,t.qualifier)||vi(r,i,t.typeArguments)},[302]:function(t,r,i){return Lt(r,t.assertClause)},[196]:gpe,[198]:gpe,[199]:function(t,r,i){return Lt(r,t.objectType)||Lt(r,t.indexType)},[200]:function(t,r,i){return Lt(r,t.readonlyToken)||Lt(r,t.typeParameter)||Lt(r,t.nameType)||Lt(r,t.questionToken)||Lt(r,t.type)||vi(r,i,t.members)},[201]:function(t,r,i){return Lt(r,t.literal)},[202]:function(t,r,i){return Lt(r,t.dotDotDotToken)||Lt(r,t.name)||Lt(r,t.questionToken)||Lt(r,t.type)},[206]:hpe,[207]:hpe,[209]:function(t,r,i){return vi(r,i,t.elements)},[210]:function(t,r,i){return vi(r,i,t.properties)},[211]:function(t,r,i){return Lt(r,t.expression)||Lt(r,t.questionDotToken)||Lt(r,t.name)},[212]:function(t,r,i){return Lt(r,t.expression)||Lt(r,t.questionDotToken)||Lt(r,t.argumentExpression)},[213]:ype,[214]:ype,[215]:function(t,r,i){return Lt(r,t.tag)||Lt(r,t.questionDotToken)||vi(r,i,t.typeArguments)||Lt(r,t.template)},[216]:function(t,r,i){return Lt(r,t.type)||Lt(r,t.expression)},[217]:function(t,r,i){return Lt(r,t.expression)},[220]:function(t,r,i){return Lt(r,t.expression)},[221]:function(t,r,i){return Lt(r,t.expression)},[222]:function(t,r,i){return Lt(r,t.expression)},[224]:function(t,r,i){return Lt(r,t.operand)},[229]:function(t,r,i){return Lt(r,t.asteriskToken)||Lt(r,t.expression)},[223]:function(t,r,i){return Lt(r,t.expression)},[225]:function(t,r,i){return Lt(r,t.operand)},[226]:function(t,r,i){return Lt(r,t.left)||Lt(r,t.operatorToken)||Lt(r,t.right)},[234]:function(t,r,i){return Lt(r,t.expression)||Lt(r,t.type)},[235]:function(t,r,i){return Lt(r,t.expression)},[238]:function(t,r,i){return Lt(r,t.expression)||Lt(r,t.type)},[236]:function(t,r,i){return Lt(r,t.name)},[227]:function(t,r,i){return Lt(r,t.condition)||Lt(r,t.questionToken)||Lt(r,t.whenTrue)||Lt(r,t.colonToken)||Lt(r,t.whenFalse)},[230]:function(t,r,i){return Lt(r,t.expression)},[241]:vpe,[268]:vpe,[312]:function(t,r,i){return vi(r,i,t.statements)||Lt(r,t.endOfFileToken)},[243]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.declarationList)},[261]:function(t,r,i){return vi(r,i,t.declarations)},[244]:function(t,r,i){return Lt(r,t.expression)},[245]:function(t,r,i){return Lt(r,t.expression)||Lt(r,t.thenStatement)||Lt(r,t.elseStatement)},[246]:function(t,r,i){return Lt(r,t.statement)||Lt(r,t.expression)},[247]:function(t,r,i){return Lt(r,t.expression)||Lt(r,t.statement)},[248]:function(t,r,i){return Lt(r,t.initializer)||Lt(r,t.condition)||Lt(r,t.incrementor)||Lt(r,t.statement)},[249]:function(t,r,i){return Lt(r,t.initializer)||Lt(r,t.expression)||Lt(r,t.statement)},[250]:function(t,r,i){return Lt(r,t.awaitModifier)||Lt(r,t.initializer)||Lt(r,t.expression)||Lt(r,t.statement)},[251]:bpe,[252]:bpe,[253]:function(t,r,i){return Lt(r,t.expression)},[254]:function(t,r,i){return Lt(r,t.expression)||Lt(r,t.statement)},[255]:function(t,r,i){return Lt(r,t.expression)||Lt(r,t.caseBlock)},[269]:function(t,r,i){return vi(r,i,t.clauses)},[296]:function(t,r,i){return Lt(r,t.expression)||vi(r,i,t.statements)},[297]:function(t,r,i){return vi(r,i,t.statements)},[256]:function(t,r,i){return Lt(r,t.label)||Lt(r,t.statement)},[257]:function(t,r,i){return Lt(r,t.expression)},[258]:function(t,r,i){return Lt(r,t.tryBlock)||Lt(r,t.catchClause)||Lt(r,t.finallyBlock)},[299]:function(t,r,i){return Lt(r,t.variableDeclaration)||Lt(r,t.block)},[170]:function(t,r,i){return Lt(r,t.expression)},[263]:Tpe,[231]:Tpe,[264]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||vi(r,i,t.typeParameters)||vi(r,i,t.heritageClauses)||vi(r,i,t.members)},[265]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||vi(r,i,t.typeParameters)||Lt(r,t.type)},[266]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||vi(r,i,t.members)},[306]:function(t,r,i){return Lt(r,t.name)||Lt(r,t.initializer)},[267]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||Lt(r,t.body)},[271]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)||Lt(r,t.moduleReference)},[272]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.importClause)||Lt(r,t.moduleSpecifier)||Lt(r,t.assertClause)},[273]:function(t,r,i){return Lt(r,t.name)||Lt(r,t.namedBindings)},[300]:function(t,r,i){return vi(r,i,t.elements)},[301]:function(t,r,i){return Lt(r,t.name)||Lt(r,t.value)},[270]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.name)},[274]:function(t,r,i){return Lt(r,t.name)},[280]:function(t,r,i){return Lt(r,t.name)},[275]:xpe,[279]:xpe,[278]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.exportClause)||Lt(r,t.moduleSpecifier)||Lt(r,t.assertClause)},[276]:Spe,[281]:Spe,[277]:function(t,r,i){return vi(r,i,t.modifiers)||Lt(r,t.expression)},[228]:function(t,r,i){return Lt(r,t.head)||vi(r,i,t.templateSpans)},[239]:function(t,r,i){return Lt(r,t.expression)||Lt(r,t.literal)},[203]:function(t,r,i){return Lt(r,t.head)||vi(r,i,t.templateSpans)},[204]:function(t,r,i){return Lt(r,t.type)||Lt(r,t.literal)},[167]:function(t,r,i){return Lt(r,t.expression)},[298]:function(t,r,i){return vi(r,i,t.types)},[233]:function(t,r,i){return Lt(r,t.expression)||vi(r,i,t.typeArguments)},[283]:function(t,r,i){return Lt(r,t.expression)},[282]:function(t,r,i){return vi(r,i,t.modifiers)},[361]:function(t,r,i){return vi(r,i,t.elements)},[284]:function(t,r,i){return Lt(r,t.openingElement)||vi(r,i,t.children)||Lt(r,t.closingElement)},[288]:function(t,r,i){return Lt(r,t.openingFragment)||vi(r,i,t.children)||Lt(r,t.closingFragment)},[285]:kpe,[286]:kpe,[292]:function(t,r,i){return vi(r,i,t.properties)},[291]:function(t,r,i){return Lt(r,t.name)||Lt(r,t.initializer)},[293]:function(t,r,i){return Lt(r,t.expression)},[294]:function(t,r,i){return Lt(r,t.dotDotDotToken)||Lt(r,t.expression)},[287]:function(t,r,i){return Lt(r,t.tagName)},[295]:function(t,r,i){return Lt(r,t.namespace)||Lt(r,t.name)},[190]:_4,[191]:_4,[316]:_4,[322]:_4,[321]:_4,[323]:_4,[325]:_4,[324]:function(t,r,i){return vi(r,i,t.parameters)||Lt(r,t.type)},[327]:function(t,r,i){return(typeof t.comment=="string"?void 0:vi(r,i,t.comment))||vi(r,i,t.tags)},[354]:function(t,r,i){return Lt(r,t.tagName)||Lt(r,t.name)||(typeof t.comment=="string"?void 0:vi(r,i,t.comment))},[317]:function(t,r,i){return Lt(r,t.name)},[318]:function(t,r,i){return Lt(r,t.left)||Lt(r,t.right)},[348]:Cpe,[355]:Cpe,[337]:function(t,r,i){return Lt(r,t.tagName)||(typeof t.comment=="string"?void 0:vi(r,i,t.comment))},[336]:function(t,r,i){return Lt(r,t.tagName)||Lt(r,t.class)||(typeof t.comment=="string"?void 0:vi(r,i,t.comment))},[335]:function(t,r,i){return Lt(r,t.tagName)||Lt(r,t.class)||(typeof t.comment=="string"?void 0:vi(r,i,t.comment))},[352]:function(t,r,i){return Lt(r,t.tagName)||Lt(r,t.constraint)||vi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:vi(r,i,t.comment))},[353]:function(t,r,i){return Lt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Lt(r,t.typeExpression)||Lt(r,t.fullName)||(typeof t.comment=="string"?void 0:vi(r,i,t.comment)):Lt(r,t.fullName)||Lt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:vi(r,i,t.comment)))},[345]:function(t,r,i){return Lt(r,t.tagName)||Lt(r,t.fullName)||Lt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:vi(r,i,t.comment))},[349]:u4,[351]:u4,[350]:u4,[347]:u4,[357]:u4,[356]:u4,[346]:u4,[330]:function(t,r,i){return mn(t.typeParameters,r)||mn(t.parameters,r)||Lt(r,t.type)},[331]:kG,[332]:kG,[333]:kG,[329]:function(t,r,i){return mn(t.jsDocPropertyTags,r)},[334]:hS,[339]:hS,[340]:hS,[341]:hS,[342]:hS,[343]:hS,[338]:hS,[344]:hS,[360]:vNe},(e=>{var t=V0(99,!0),r=40960,i,a,o,l,u;function f(q){return Je++,q}var g={createBaseSourceFileNode:q=>f(new u(q,0,0)),createBaseIdentifierNode:q=>f(new o(q,0,0)),createBasePrivateIdentifierNode:q=>f(new l(q,0,0)),createBaseTokenNode:q=>f(new a(q,0,0)),createBaseNode:q=>f(new i(q,0,0))},m=qD(11,g),{createNodeArray:y,createNumericLiteral:x,createStringLiteral:k,createLiteralLikeNode:C,createIdentifier:N,createPrivateIdentifier:D,createToken:M,createArrayLiteralExpression:V,createObjectLiteralExpression:U,createPropertyAccessExpression:Y,createPropertyAccessChain:j,createElementAccessExpression:ee,createElementAccessChain:R,createCallExpression:Z,createCallChain:oe,createNewExpression:_e,createParenthesizedExpression:X,createBlock:H,createVariableStatement:Q,createExpressionStatement:re,createIfStatement:ue,createWhileStatement:fe,createForStatement:G,createForOfStatement:Ne,createVariableDeclaration:De,createVariableDeclarationList:Xe}=m,ve,be,xe,rt,ct,pe,Pe,Ge,tt,mt,Je,at,zt,It,bt,_r,Tn=!0,jt=!1;function Kn(q,de,Le,lt,Dt=!1,tn,Ir){var Ti;if(tn=TO(q,tn),tn===6){const _i=fi(q,de,Le,lt,Dt);return wA(_i,(Ti=_i.statements[0])==null?void 0:Ti.expression,_i.parseDiagnostics,!1,void 0),_i.referencedFiles=Ve,_i.typeReferenceDirectives=Ve,_i.libReferenceDirectives=Ve,_i.amdDependencies=Ve,_i.hasNoDefaultLib=!1,_i.pragmas=bI,_i}Si(q,de,Le,lt,tn);const ri=pt(Le,Dt,tn,Ir||wpe);return Nr(),ri}e.parseSourceFile=Kn;function br(q,de){Si("",q,de,void 0,1),We();const Le=sl(!0),lt=F()===1&&!Pe.length;return Nr(),lt?Le:void 0}e.parseIsolatedEntityName=br;function fi(q,de,Le=2,lt,Dt=!1){Si(q,de,Le,lt,6),be=_r,We();const tn=W();let Ir,Ti;if(F()===1)Ir=La([],tn,tn),Ti=_l();else{let as;for(;F()!==1;){let Za;switch(F()){case 23:Za=kh();break;case 112:case 97:case 106:Za=_l();break;case 41:Qr(()=>We()===9&&We()!==59)?Za=Qd():Za=pd();break;case 9:case 11:if(Qr(()=>We()!==59)){Za=di();break}default:Za=pd();break}as&&Ds(as)?as.push(Za):as?as=[as,Za]:(as=Za,F()!==1&&Pt(p.Unexpected_token))}const ao=Ds(as)?qt(V(as),tn):E.checkDefined(as),qa=re(ao);qt(qa,tn),Ir=La([qa],tn),Ti=Jo(1,p.Unexpected_token)}const ri=In(q,2,6,!1,Ir,Ti,be,_o);Dt&&cn(ri),ri.nodeCount=Je,ri.identifierCount=zt,ri.identifiers=at,ri.parseDiagnostics=Xx(Pe,ri),Ge&&(ri.jsDocDiagnostics=Xx(Ge,ri));const _i=ri;return Nr(),_i}e.parseJsonText=fi;function Si(q,de,Le,lt,Dt){switch(i=Ol.getNodeConstructor(),a=Ol.getTokenConstructor(),o=Ol.getIdentifierConstructor(),l=Ol.getPrivateIdentifierConstructor(),u=Ol.getSourceFileConstructor(),ve=ba(q),xe=de,rt=Le,tt=lt,ct=Dt,pe=ED(Dt),Pe=[],It=0,at=new Map,zt=0,Je=0,be=0,Tn=!0,ct){case 1:case 2:_r=524288;break;case 6:_r=134742016;break;default:_r=0;break}jt=!1,t.setText(xe),t.setOnError(le),t.setScriptTarget(rt),t.setLanguageVariant(pe)}function Nr(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),xe=void 0,rt=void 0,tt=void 0,ct=void 0,pe=void 0,be=0,Pe=void 0,Ge=void 0,It=0,at=void 0,bt=void 0,Tn=!0}function pt(q,de,Le,lt){const Dt=su(ve);Dt&&(_r|=33554432),be=_r,We();const tn=Es(0,Sf);E.assert(F()===1);const Ir=ge(),Ti=yn(_l(),Ir),ri=In(ve,q,Le,Dt,tn,Ti,be,lt);return EG(ri,xe),wG(ri,_i),ri.commentDirectives=t.getCommentDirectives(),ri.nodeCount=Je,ri.identifierCount=zt,ri.identifiers=at,ri.parseDiagnostics=Xx(Pe,ri),Ge&&(ri.jsDocDiagnostics=Xx(Ge,ri)),de&&cn(ri),ri;function _i(as,ao,qa){Pe.push(L6(ve,as,ao,qa))}}let ur=!1;function yn(q,de){if(!de)return q;E.assert(!q.jsDoc);const Le=qi(UW(q,xe),lt=>Wa.parseJSDocComment(q,lt.pos,lt.end-lt.pos));return Le.length&&(q.jsDoc=Le),ur&&(ur=!1,q.flags|=536870912),q}function Ct(q){const de=tt,Le=MF.createSyntaxCursor(q);tt={currentNode:as};const lt=[],Dt=Pe;Pe=[];let tn=0,Ir=ri(q.statements,0);for(;Ir!==-1;){const ao=q.statements[tn],qa=q.statements[Ir];Lr(lt,q.statements,tn,Ir),tn=_i(q.statements,Ir);const Za=qc(Dt,Sl=>Sl.start>=ao.pos),R_=Za>=0?qc(Dt,Sl=>Sl.start>=qa.pos,Za):-1;Za>=0&&Lr(Pe,Dt,Za,R_>=0?R_:void 0),Ws(()=>{const Sl=_r;for(_r|=65536,t.resetTokenState(qa.pos),We();F()!==1;){const em=t.getTokenFullStart(),Bp=Ua(0,Sf);if(lt.push(Bp),em===t.getTokenFullStart()&&We(),tn>=0){const y0=q.statements[tn];if(Bp.end===y0.pos)break;Bp.end>y0.pos&&(tn=_i(q.statements,tn+1))}}_r=Sl},2),Ir=tn>=0?ri(q.statements,tn):-1}if(tn>=0){const ao=q.statements[tn];Lr(lt,q.statements,tn);const qa=qc(Dt,Za=>Za.start>=ao.pos);qa>=0&&Lr(Pe,Dt,qa)}return tt=de,m.updateSourceFile(q,Ke(y(lt),q.statements));function Ti(ao){return!(ao.flags&65536)&&!!(ao.transformFlags&67108864)}function ri(ao,qa){for(let Za=qa;Za118}function pi(){return F()===80?!0:F()===127&&Ae()||F()===135&&Ln()?!1:F()>118}function ln(q,de,Le=!0){return F()===q?(Le&&We(),!0):(de?Pt(de):Pt(p._0_expected,sa(q)),!1)}const tc=Object.keys(fw).filter(q=>q.length>2);function Ui(q){var Dt;if(Qb(q)){z(ua(xe,q.template.pos),q.template.end,p.Module_declaration_names_may_only_use_or_quoted_strings);return}const de=we(q)?lr(q):void 0;if(!de||!pf(de,rt)){Pt(p._0_expected,sa(27));return}const Le=ua(xe,q.pos);switch(de){case"const":case"let":case"var":z(Le,q.end,p.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Cs(p.Interface_name_cannot_be_0,p.Interface_must_be_given_a_name,19);return;case"is":z(Le,t.getTokenStart(),p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Cs(p.Namespace_name_cannot_be_0,p.Namespace_must_be_given_a_name,19);return;case"type":Cs(p.Type_alias_name_cannot_be_0,p.Type_alias_must_be_given_a_name,64);return}const lt=(Dt=DC(de,tc,tn=>tn))!=null?Dt:Ea(de);if(lt){z(Le,q.end,p.Unknown_keyword_or_identifier_Did_you_mean_0,lt);return}F()!==0&&z(Le,q.end,p.Unexpected_keyword_or_identifier)}function Cs(q,de,Le){F()===Le?Pt(de):Pt(q,t.getTokenValue())}function Ea(q){for(const de of tc)if(q.length>de.length+2&&ts(q,de))return`${de} ${q.slice(de.length)}`}function ro(q,de,Le){if(F()===60&&!t.hasPrecedingLineBreak()){Pt(p.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(F()===21){Pt(p.Cannot_start_a_function_call_in_a_type_annotation),We();return}if(de&&!Ls()){Le?Pt(p._0_expected,sa(27)):Pt(p.Expected_for_property_initializer);return}if(!mo()){if(Le){Pt(p._0_expected,sa(27));return}Ui(q)}}function Ja(q){return F()===q?(Tt(),!0):(E.assert(G9(q)),Pt(p._0_expected,sa(q)),!1)}function Ic(q,de,Le,lt){if(F()===de){We();return}const Dt=Pt(p._0_expected,sa(de));!Le||Dt&&fa(Dt,L6(ve,lt,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,sa(q),sa(de)))}function ls(q){return F()===q?(We(),!0):!1}function Oi(q){if(F()===q)return _l()}function Vc(q){if(F()===q)return Rf()}function Jo(q,de,Le){return Oi(q)||mc(q,!1,de||p._0_expected,Le||sa(q))}function L_(q){const de=Vc(q);return de||(E.assert(G9(q)),mc(q,!1,p._0_expected,sa(q)))}function _l(){const q=W(),de=F();return We(),qt(M(de),q)}function Rf(){const q=W(),de=F();return Tt(),qt(M(de),q)}function Ls(){return F()===27?!0:F()===20||F()===1||t.hasPrecedingLineBreak()}function mo(){return Ls()?(F()===27&&We(),!0):!1}function ja(){return mo()||ln(27)}function La(q,de,Le,lt){const Dt=y(q,lt);return Tm(Dt,de,Le!=null?Le:t.getTokenFullStart()),Dt}function qt(q,de,Le){return Tm(q,de,Le!=null?Le:t.getTokenFullStart()),_r&&(q.flags|=_r),jt&&(jt=!1,q.flags|=262144),q}function mc(q,de,Le,...lt){de?hi(t.getTokenFullStart(),0,Le,...lt):Le&&Pt(Le,...lt);const Dt=W(),tn=q===80?N("",void 0):Kh(q)?m.createTemplateLiteralLikeNode(q,"","",void 0):q===9?x("",void 0):q===11?k("",void 0):q===282?m.createMissingDeclaration():M(q);return qt(tn,Dt)}function h_(q){let de=at.get(q);return de===void 0&&at.set(q,de=q),de}function M_(q,de,Le){if(q){zt++;const Ti=W(),ri=F(),_i=h_(t.getTokenValue()),as=t.hasExtendedUnicodeEscape();return ye(),qt(N(_i,ri,as),Ti)}if(F()===81)return Pt(Le||p.Private_identifiers_are_not_allowed_outside_class_bodies),M_(!0);if(F()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return M_(!0);zt++;const lt=F()===1,Dt=t.isReservedWord(),tn=t.getTokenText(),Ir=Dt?p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:p.Identifier_expected;return mc(80,lt,de||Ir,tn)}function W_(q){return M_(Fs(),void 0,q)}function bo(q,de){return M_(pi(),q,de)}function Go(q){return M_(z_(F()),q)}function A(){return z_(F())||F()===11||F()===9}function Ce(){return z_(F())||F()===11}function Re(q){if(F()===11||F()===9){const de=di();return de.text=h_(de.text),de}return q&&F()===23?vn():F()===81?Pr():Go()}function xt(){return Re(!0)}function vn(){const q=W();ln(23);const de=ze(v_);return ln(24),qt(m.createComputedPropertyName(de),q)}function Pr(){const q=W(),de=D(h_(t.getTokenValue()));return We(),qt(de,q)}function wn(q){return F()===q&&cs(oi)}function mr(){return We(),t.hasPrecedingLineBreak()?!1:ac()}function oi(){switch(F()){case 87:return We()===94;case 95:return We(),F()===90?Qr(Oc):F()===156?Qr(Ma):Ur();case 90:return Oc();case 126:case 139:case 153:return We(),ac();default:return mr()}}function Ur(){return F()===60||F()!==42&&F()!==130&&F()!==19&&ac()}function Ma(){return We(),Ur()}function io(){return W0(F())&&cs(oi)}function ac(){return F()===23||F()===19||F()===42||F()===26||A()}function Oc(){return We(),F()===86||F()===100||F()===120||F()===60||F()===128&&Qr(bg)||F()===134&&Qr($T)}function gc(q,de){if(oc(q))return!0;switch(q){case 0:case 1:case 3:return!(F()===27&&de)&&g0();case 2:return F()===84||F()===90;case 4:return Qr(Vy);case 5:return Qr(jf)||F()===27&&!de;case 6:return F()===23||A();case 12:switch(F()){case 23:case 42:case 26:case 25:return!0;default:return A()}case 18:return A();case 9:return F()===23||F()===26||A();case 24:return Ce();case 7:return F()===19?Qr(Ka):de?pi()&&!zo():l0()&&!zo();case 8:return $_();case 10:return F()===28||F()===26||$_();case 19:return F()===103||F()===87||pi();case 15:switch(F()){case 28:case 25:return!0}case 11:return F()===26||Tf();case 16:return Hi(!1);case 17:return Hi(!0);case 20:case 21:return F()===28||yh();case 22:return et();case 23:return F()===161&&Qr(zu)?!1:z_(F());case 13:return z_(F())||F()===19;case 14:return!0;case 25:return!0;case 26:return E.fail("ParsingContext.Count used as a context");default:E.assertNever(q,"Non-exhaustive case in 'isListElement'.")}}function Ka(){if(E.assert(F()===19),We()===20){const q=We();return q===28||q===19||q===96||q===119}return!0}function nc(){return We(),pi()}function q_(){return We(),z_(F())}function Uc(){return We(),rce(F())}function zo(){return F()===119||F()===96?Qr(bu):!1}function bu(){return We(),Tf()}function he(){return We(),yh()}function vt(q){if(F()===1)return!0;switch(q){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return F()===20;case 3:return F()===20||F()===84||F()===90;case 7:return F()===19||F()===96||F()===119;case 8:return bn();case 19:return F()===32||F()===21||F()===19||F()===96||F()===119;case 11:return F()===22||F()===27;case 15:case 21:case 10:return F()===24;case 17:case 16:case 18:return F()===22||F()===24;case 20:return F()!==28;case 22:return F()===19||F()===20;case 13:return F()===32||F()===44;case 14:return F()===30&&Qr(Ah);default:return!1}}function bn(){return!!(Ls()||WT(F())||F()===39)}function Bi(){E.assert(It,"Missing parsing context");for(let q=0;q<26;q++)if(It&1<=0)}function Zc(q){return q===6?p.An_enum_member_name_must_be_followed_by_a_or:void 0}function Fc(){const q=La([],W());return q.isMissingList=!0,q}function il(q){return!!q.isMissingList}function Ml(q,de,Le,lt){if(ln(Le)){const Dt=Ro(q,de);return ln(lt),Dt}return Fc()}function sl(q,de){const Le=W();let lt=q?Go(de):bo(de);for(;ls(25)&&F()!==30;)lt=qt(m.createQualifiedName(lt,cd(q,!1)),Le);return lt}function ju(q,de){return qt(m.createQualifiedName(q,de),q.pos)}function cd(q,de){if(t.hasPrecedingLineBreak()&&z_(F())&&Qr(Xo))return mc(80,!0,p.Identifier_expected);if(F()===81){const Le=Pr();return de?Le:mc(80,!0,p.Identifier_expected)}return q?Go():bo()}function E1(q){const de=W(),Le=[];let lt;do lt=vs(q),Le.push(lt);while(lt.literal.kind===17);return La(Le,de)}function qd(q){const de=W();return qt(m.createTemplateExpression(rs(q),E1(q)),de)}function J(){const q=W();return qt(m.createTemplateLiteralType(rs(!1),Be()),q)}function Be(){const q=W(),de=[];let Le;do Le=At(),de.push(Le);while(Le.literal.kind===17);return La(de,q)}function At(){const q=W();return qt(m.createTemplateLiteralTypeSpan(al(),Jn(!1)),q)}function Jn(q){return F()===20?(ir(q),bs()):Jo(18,p._0_expected,sa(20))}function vs(q){const de=W();return qt(m.createTemplateSpan(ze(v_),Jn(q)),de)}function di(){return aa(F())}function rs(q){!q&&t.getTokenFlags()&26656&&ir(!1);const de=aa(F());return E.assert(de.kind===16,"Template head has wrong token kind"),de}function bs(){const q=aa(F());return E.assert(q.kind===17||q.kind===18,"Template fragment has wrong token kind"),q}function Lo(q){const de=q===15||q===18,Le=t.getTokenText();return Le.substring(1,Le.length-(t.isUnterminated()?0:de?1:2))}function aa(q){const de=W(),Le=Kh(q)?m.createTemplateLiteralLikeNode(q,t.getTokenValue(),Lo(q),t.getTokenFlags()&7176):q===9?x(t.getTokenValue(),t.getNumericLiteralFlags()):q===11?k(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):GC(q)?C(q,t.getTokenValue()):E.fail();return t.hasExtendedUnicodeEscape()&&(Le.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Le.isUnterminated=!0),We(),qt(Le,de)}function xl(){return sl(!0,p.Type_expected)}function cf(){if(!t.hasPrecedingLineBreak()&&ar()===30)return Ml(20,al,30,32)}function y_(){const q=W();return qt(m.createTypeReferenceNode(xl(),cf()),q)}function ld(q){switch(q.kind){case 183:return fc(q.typeName);case 184:case 185:{const{parameters:de,type:Le}=q;return il(de)||ld(Le)}case 196:return ld(q.type);default:return!1}}function Hd(q){return We(),qt(m.createTypePredicateNode(void 0,q,al()),q.pos)}function Fp(){const q=W();return We(),qt(m.createThisTypeNode(),q)}function Ee(){const q=W();return We(),qt(m.createJSDocAllType(),q)}function je(){const q=W();return We(),qt(m.createJSDocNonNullableType(L2(),!1),q)}function Ye(){const q=W();return We(),F()===28||F()===20||F()===22||F()===32||F()===64||F()===52?qt(m.createJSDocUnknownType(),q):qt(m.createJSDocNullableType(al(),!1),q)}function Rt(){const q=W(),de=ge();if(Qr(Q_)){We();const Le=Bf(36),lt=$o(59,!1);return yn(qt(m.createJSDocFunctionType(Le,lt),q),de)}return qt(m.createTypeReferenceNode(Go(),void 0),q)}function rn(){const q=W();let de;return(F()===110||F()===105)&&(de=Go(),ln(59)),qt(m.createParameterDeclaration(void 0,void 0,de,void 0,fn(),void 0),q)}function fn(){t.setInJSDocType(!0);const q=W();if(ls(144)){const lt=m.createJSDocNamepathType(void 0);e:for(;;)switch(F()){case 20:case 1:case 28:case 5:break e;default:Tt()}return t.setInJSDocType(!1),qt(lt,q)}const de=ls(26);let Le=zT();return t.setInJSDocType(!1),de&&(Le=qt(m.createJSDocVariadicType(Le),q)),F()===64?(We(),qt(m.createJSDocOptionalType(Le),q)):Le}function nn(){const q=W();ln(114);const de=sl(!0),Le=t.hasPrecedingLineBreak()?void 0:ne();return qt(m.createTypeQueryNode(de,Le),q)}function zn(){const q=W(),de=Om(!1,!0),Le=bo();let lt,Dt;ls(96)&&(yh()||!Tf()?lt=al():Dt=xu());const tn=ls(64)?al():void 0,Ir=m.createTypeParameterDeclaration(de,Le,lt,tn);return Ir.expression=Dt,qt(Ir,q)}function jr(){if(F()===30)return Ml(19,zn,30,32)}function Hi(q){return F()===26||$_()||W0(F())||F()===60||yh(!q)}function Hn(q){const de=J1(p.Private_identifiers_cannot_be_used_as_parameters);return Aw(de)===0&&!dt(q)&&W0(F())&&We(),de}function cr(){return Fs()||F()===23||F()===19}function wr(q){return Lc(q)}function ta(q){return Lc(q,!1)}function Lc(q,de=!0){const Le=W(),lt=ge(),Dt=q?Me(()=>Om(!0)):ke(()=>Om(!0));if(F()===110){const ri=m.createParameterDeclaration(Dt,void 0,M_(!0),void 0,Fe(),void 0),_i=wl(Dt);return _i&&B(_i,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),yn(qt(ri,Le),lt)}const tn=Tn;Tn=!1;const Ir=Oi(26);if(!de&&!cr())return;const Ti=yn(qt(m.createParameterDeclaration(Dt,Ir,Hn(Dt),Oi(58),Fe(),up()),Le),lt);return Tn=tn,Ti}function $o(q,de){if(ug(q,de))return kt(zT)}function ug(q,de){return q===39?(ln(q),!0):ls(59)?!0:de&&F()===39?(Pt(p._0_expected,sa(59)),We(),!0):!1}function Gd(q,de){const Le=Ae(),lt=Ln();Zt(!!(q&1)),xn(!!(q&2));const Dt=q&32?Ro(17,rn):Ro(16,()=>de?wr(lt):ta(lt));return Zt(Le),xn(lt),Dt}function Bf(q){if(!ln(21))return Fc();const de=Gd(q,!0);return ln(22),de}function a0(){ls(28)||ja()}function dh(q){const de=W(),Le=ge();q===180&&ln(105);const lt=jr(),Dt=Bf(4),tn=$o(59,!0);a0();const Ir=q===179?m.createCallSignature(lt,Dt,tn):m.createConstructSignature(lt,Dt,tn);return yn(qt(Ir,de),Le)}function PT(){return F()===23&&Qr(z4)}function z4(){if(We(),F()===26||F()===24)return!0;if(W0(F())){if(We(),pi())return!0}else if(pi())We();else return!1;return F()===59||F()===28?!0:F()!==58?!1:(We(),F()===59||F()===28||F()===24)}function o0(q,de,Le){const lt=Ml(16,()=>wr(!1),23,24),Dt=Fe();a0();const tn=m.createIndexSignature(Le,lt,Dt);return yn(qt(tn,q),de)}function mh(q,de,Le){const lt=xt(),Dt=Oi(58);let tn;if(F()===21||F()===30){const Ir=jr(),Ti=Bf(4),ri=$o(59,!0);tn=m.createMethodSignature(Le,lt,Dt,Ir,Ti,ri)}else{const Ir=Fe();tn=m.createPropertySignature(Le,lt,Dt,Ir),F()===64&&(tn.initializer=up())}return a0(),yn(qt(tn,q),de)}function Vy(){if(F()===21||F()===30||F()===139||F()===153)return!0;let q=!1;for(;W0(F());)q=!0,We();return F()===23?!0:(A()&&(q=!0,We()),q?F()===21||F()===30||F()===58||F()===59||F()===28||Ls():!1)}function w1(){if(F()===21||F()===30)return dh(179);if(F()===105&&Qr(Uy))return dh(180);const q=W(),de=ge(),Le=Om(!1);return wn(139)?Vo(q,de,Le,177,4):wn(153)?Vo(q,de,Le,178,4):PT()?o0(q,de,Le):mh(q,de,Le)}function Uy(){return We(),F()===21||F()===30}function gh(){return We()===25}function IT(){switch(We()){case 21:case 30:case 25:return!0}return!1}function YS(){const q=W();return qt(m.createTypeLiteralNode(OT()),q)}function OT(){let q;return ln(19)?(q=Es(4,w1),ln(20)):q=Fc(),q}function FT(){return We(),F()===40||F()===41?We()===148:(F()===148&&We(),F()===23&&nc()&&We()===103)}function I2(){const q=W(),de=Go();ln(103);const Le=al();return qt(m.createTypeParameterDeclaration(void 0,de,Le,void 0),q)}function LT(){const q=W();ln(19);let de;(F()===148||F()===40||F()===41)&&(de=_l(),de.kind!==148&&ln(148)),ln(23);const Le=I2(),lt=ls(130)?al():void 0;ln(24);let Dt;(F()===58||F()===40||F()===41)&&(Dt=_l(),Dt.kind!==58&&ln(58));const tn=Fe();ja();const Ir=Es(4,w1);return ln(20),qt(m.createMappedTypeNode(de,Le,lt,Dt,tn,Ir),q)}function MT(){const q=W();if(ls(26))return qt(m.createRestTypeNode(al()),q);const de=al();if(t4(de)&&de.pos===de.type.pos){const Le=m.createOptionalTypeNode(de.type);return Ke(Le,de),Le.flags=de.flags,Le}return de}function O2(){return We()===59||F()===58&&We()===59}function RT(){return F()===26?z_(We())&&O2():z_(F())&&O2()}function BT(){if(Qr(RT)){const q=W(),de=ge(),Le=Oi(26),lt=Go(),Dt=Oi(58);ln(59);const tn=MT(),Ir=m.createNamedTupleMember(Le,lt,Dt,tn);return yn(qt(Ir,q),de)}return MT()}function ZS(){const q=W();return qt(m.createTupleTypeNode(Ml(21,BT,23,24)),q)}function jT(){const q=W();ln(21);const de=al();return ln(22),qt(m.createParenthesizedType(de),q)}function KS(){let q;if(F()===128){const de=W();We();const Le=qt(M(128),de);q=La([Le],de)}return q}function D1(){const q=W(),de=ge(),Le=KS(),lt=ls(105);E.assert(!Le||lt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Dt=jr(),tn=Bf(4),Ir=$o(39,!1),Ti=lt?m.createConstructorTypeNode(Le,Dt,tn,Ir):m.createFunctionTypeNode(Dt,tn,Ir);return yn(qt(Ti,q),de)}function Wy(){const q=_l();return F()===25?void 0:q}function hh(q){const de=W();q&&We();let Le=F()===112||F()===97||F()===106?_l():aa(F());return q&&(Le=qt(m.createPrefixUnaryExpression(41,Le),de)),qt(m.createLiteralTypeNode(Le),de)}function qy(){return We(),F()===102}function F2(){const q=W(),de=t.getTokenStart();ln(19);const Le=t.hasPrecedingLineBreak();ln(132),ln(59);const lt=h0(!0);if(!ln(20)){const Dt=Bo(Pe);Dt&&Dt.code===p._0_expected.code&&fa(Dt,L6(ve,de,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return qt(m.createImportTypeAssertionContainer(lt,Le),q)}function c0(){be|=4194304;const q=W(),de=ls(114);ln(102),ln(21);const Le=al();let lt;ls(28)&&(lt=F2()),ln(22);const Dt=ls(25)?xl():void 0,tn=cf();return qt(m.createImportTypeNode(Le,lt,Dt,tn,de),q)}function xa(){return We(),F()===9||F()===10}function L2(){switch(F()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return cs(Wy)||y_();case 67:t.reScanAsteriskEqualsToken();case 42:return Ee();case 61:t.reScanQuestionToken();case 58:return Ye();case 100:return Rt();case 54:return je();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return hh();case 41:return Qr(xa)?hh(!0):y_();case 116:return _l();case 110:{const q=Fp();return F()===142&&!t.hasPrecedingLineBreak()?Hd(q):q}case 114:return Qr(qy)?c0():nn();case 19:return Qr(FT)?LT():YS();case 23:return ZS();case 21:return jT();case 102:return c0();case 131:return Qr(Xo)?vh():y_();case 16:return J();default:return y_()}}function yh(q){switch(F()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!q;case 41:return!q&&Qr(xa);case 21:return!q&&Qr(A1);default:return pi()}}function A1(){return We(),F()===22||Hi(!1)||yh()}function fg(){const q=W();let de=L2();for(;!t.hasPrecedingLineBreak();)switch(F()){case 54:We(),de=qt(m.createJSDocNonNullableType(de,!0),q);break;case 58:if(Qr(he))return de;We(),de=qt(m.createJSDocNullableType(de,!0),q);break;case 23:if(ln(23),yh()){const Le=al();ln(24),de=qt(m.createIndexedAccessTypeNode(de,Le),q)}else ln(24),de=qt(m.createArrayTypeNode(de),q);break;default:return de}return de}function $d(q){const de=W();return ln(q),qt(m.createTypeOperatorNode(q,Tu()),de)}function bf(){if(ls(96)){const q=st(al);if(_t()||F()!==58)return q}}function Ju(){const q=W(),de=bo(),Le=cs(bf),lt=m.createTypeParameterDeclaration(void 0,de,Le);return qt(lt,q)}function ou(){const q=W();return ln(140),qt(m.createInferTypeNode(Ju()),q)}function Tu(){const q=F();switch(q){case 143:case 158:case 148:return $d(q);case 140:return ou()}return kt(fg)}function Hy(q){if(N1()){const de=D1();let Le;return sg(de)?Le=q?p.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Le=q?p.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,B(de,Le),de}}function Gy(q,de,Le){const lt=W(),Dt=q===52,tn=ls(q);let Ir=tn&&Hy(Dt)||de();if(F()===q||tn){const Ti=[Ir];for(;ls(q);)Ti.push(Hy(Dt)||de());Ir=qt(Le(La(Ti,lt)),lt)}return Ir}function V4(){return Gy(51,Tu,m.createIntersectionTypeNode)}function $y(){return Gy(52,V4,m.createUnionTypeNode)}function JT(){return We(),F()===105}function N1(){return F()===30||F()===21&&Qr(M2)?!0:F()===105||F()===128&&Qr(JT)}function Xy(){if(W0(F())&&Om(!1),pi()||F()===110)return We(),!0;if(F()===23||F()===19){const q=Pe.length;return J1(),q===Pe.length}return!1}function M2(){return We(),!!(F()===22||F()===26||Xy()&&(F()===59||F()===28||F()===58||F()===64||F()===22&&(We(),F()===39)))}function zT(){const q=W(),de=pi()&&cs(R2),Le=al();return de?qt(m.createTypePredicateNode(void 0,de,Le),q):Le}function R2(){const q=bo();if(F()===142&&!t.hasPrecedingLineBreak())return We(),q}function vh(){const q=W(),de=Jo(131),Le=F()===110?Fp():bo(),lt=ls(142)?al():void 0;return qt(m.createTypePredicateNode(de,Le,lt),q)}function al(){if(_r&81920)return Gr(81920,al);if(N1())return D1();const q=W(),de=$y();if(!_t()&&!t.hasPrecedingLineBreak()&&ls(96)){const Le=st(al);ln(58);const lt=kt(al);ln(59);const Dt=kt(al);return qt(m.createConditionalTypeNode(de,Le,lt,Dt),q)}return de}function Fe(){return ls(59)?al():void 0}function l0(){switch(F()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Qr(IT);default:return pi()}}function Tf(){if(l0())return!0;switch(F()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Jr()?!0:pi()}}function bh(){return F()!==19&&F()!==100&&F()!==86&&F()!==60&&Tf()}function v_(){const q=Jt();q&&Gt(!1);const de=W();let Le=b_(!0),lt;for(;lt=Oi(28);)Le=H_(Le,lt,b_(!0),de);return q&&Gt(!0),Le}function up(){return ls(64)?b_(!0):void 0}function b_(q){if(_0())return Pa();const de=VT(q)||pg(q);if(de)return de;const Le=W(),lt=ge(),Dt=P1(0);return Dt.kind===80&&F()===39?fp(Le,Dt,q,lt,void 0):pu(Dt)&&Q0(on())?H_(Dt,_l(),b_(q),Le):xf(Dt,Le,q)}function _0(){return F()===127?Ae()?!0:Qr(R1):!1}function ek(){return We(),!t.hasPrecedingLineBreak()&&pi()}function Pa(){const q=W();return We(),!t.hasPrecedingLineBreak()&&(F()===42||Tf())?qt(m.createYieldExpression(Oi(42),b_(!0)),q):qt(m.createYieldExpression(void 0,void 0),q)}function fp(q,de,Le,lt,Dt){E.assert(F()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const tn=m.createParameterDeclaration(void 0,void 0,de,void 0,void 0,void 0);qt(tn,de.pos);const Ir=La([tn],tn.pos,tn.end),Ti=Jo(39),ri=Nm(!!Dt,Le),_i=m.createArrowFunction(Dt,void 0,Ir,void 0,Ti,ri);return yn(qt(_i,q),lt)}function VT(q){const de=tk();if(de!==0)return de===1?_d(!0,!0):cs(()=>Qy(q))}function tk(){return F()===21||F()===30||F()===134?Qr(UT):F()===39?1:0}function UT(){if(F()===134&&(We(),t.hasPrecedingLineBreak()||F()!==21&&F()!==30))return 0;const q=F(),de=We();if(q===21){if(de===22)switch(We()){case 39:case 59:case 19:return 1;default:return 0}if(de===23||de===19)return 2;if(de===26)return 1;if(W0(de)&&de!==134&&Qr(nc))return We()===130?0:1;if(!pi()&&de!==110)return 0;switch(We()){case 59:return 1;case 58:return We(),F()===59||F()===28||F()===64||F()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return E.assert(q===30),!pi()&&F()!==87?0:pe===1?Qr(()=>{ls(87);const lt=We();if(lt===96)switch(We()){case 64:case 32:case 44:return!1;default:return!0}else if(lt===28||lt===64)return!0;return!1})?1:0:2}function Qy(q){const de=t.getTokenStart();if(bt!=null&&bt.has(de))return;const Le=_d(!1,q);return Le||(bt||(bt=new Set)).add(de),Le}function pg(q){if(F()===134&&Qr(Yy)===1){const de=W(),Le=ge(),lt=uf(),Dt=P1(0);return fp(de,Dt,q,Le,lt)}}function Yy(){if(F()===134){if(We(),t.hasPrecedingLineBreak()||F()===39)return 0;const q=P1(0);if(!t.hasPrecedingLineBreak()&&q.kind===80&&F()===39)return 1}return 0}function _d(q,de){const Le=W(),lt=ge(),Dt=uf(),tn=dt(Dt,Y3)?2:0,Ir=jr();let Ti;if(ln(21)){if(q)Ti=Gd(tn,q);else{const em=Gd(tn,q);if(!em)return;Ti=em}if(!ln(22)&&!q)return}else{if(!q)return;Ti=Fc()}const ri=F()===59,_i=$o(59,!1);if(_i&&!q&&ld(_i))return;let as=_i;for(;(as==null?void 0:as.kind)===196;)as=as.type;const ao=as&&n4(as);if(!q&&F()!==39&&(ao||F()!==19))return;const qa=F(),Za=Jo(39),R_=qa===39||qa===19?Nm(dt(Dt,Y3),de):bo();if(!de&&ri&&F()!==59)return;const Sl=m.createArrowFunction(Dt,Ir,Ti,_i,Za,R_);return yn(qt(Sl,Le),lt)}function Nm(q,de){if(F()===19)return d0(q?2:0);if(F()!==27&&F()!==100&&F()!==86&&g0()&&!bh())return d0(16|(q?2:0));const Le=Tn;Tn=!1;const lt=q?Me(()=>b_(de)):ke(()=>b_(de));return Tn=Le,lt}function xf(q,de,Le){const lt=Oi(58);if(!lt)return q;let Dt;return qt(m.createConditionalExpression(q,lt,Gr(r,()=>b_(!1)),Dt=Jo(59),Xf(Dt)?b_(Le):mc(80,!1,p._0_expected,sa(59))),de)}function P1(q){const de=W(),Le=xu();return Fi(q,Le,de)}function WT(q){return q===103||q===165}function Fi(q,de,Le){for(;;){on();const lt=pD(F());if(!(F()===43?lt>=q:lt>q)||F()===103&&yt())break;if(F()===130||F()===152){if(t.hasPrecedingLineBreak())break;{const tn=F();We(),de=tn===152?Xd(de,al()):U4(de,al())}}else de=H_(de,_l(),P1(lt),Le)}return de}function Jr(){return yt()&&F()===103?!1:pD(F())>0}function Xd(q,de){return qt(m.createSatisfiesExpression(q,de),q.pos)}function H_(q,de,Le,lt){return qt(m.createBinaryExpression(q,de,Le),lt)}function U4(q,de){return qt(m.createAsExpression(q,de),q.pos)}function Qd(){const q=W();return qt(m.createPrefixUnaryExpression(F(),Oe(Lp)),q)}function W4(){const q=W();return qt(m.createDeleteExpression(Oe(Lp)),q)}function B2(){const q=W();return qt(m.createTypeOfExpression(Oe(Lp)),q)}function Mc(){const q=W();return qt(m.createVoidExpression(Oe(Lp)),q)}function I1(){return F()===135?Ln()?!0:Qr(R1):!1}function j2(){const q=W();return qt(m.createAwaitExpression(Oe(Lp)),q)}function xu(){if(T_()){const Le=W(),lt=Th();return F()===43?Fi(pD(F()),lt,Le):lt}const q=F(),de=Lp();if(F()===43){const Le=ua(xe,de.pos),{end:lt}=de;de.kind===216?z(Le,lt,p.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(E.assert(G9(q)),z(Le,lt,p.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,sa(q)))}return de}function Lp(){switch(F()){case 40:case 41:case 55:case 54:return Qd();case 91:return W4();case 114:return B2();case 116:return Mc();case 30:return pe===1?xh(!0,void 0,void 0,!0):q4();case 135:if(I1())return j2();default:return Th()}}function T_(){switch(F()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(pe!==1)return!1;default:return!0}}function Th(){if(F()===46||F()===47){const de=W();return qt(m.createPrefixUnaryExpression(F(),Oe(J2)),de)}else if(pe===1&&F()===30&&Qr(Uc))return xh(!0);const q=J2();if(E.assert(pu(q)),(F()===46||F()===47)&&!t.hasPrecedingLineBreak()){const de=F();return We(),qt(m.createPostfixUnaryExpression(q,de),q.pos)}return q}function J2(){const q=W();let de;return F()===102?Qr(Uy)?(be|=4194304,de=_l()):Qr(gh)?(We(),We(),de=qt(m.createMetaProperty(102,Go()),q),be|=8388608):de=u0():de=F()===108?O1():u0(),Wn(q,de)}function u0(){const q=W(),de=fd();return Mp(q,de,!0)}function O1(){const q=W();let de=_l();if(F()===30){const Le=W(),lt=cs(nv);lt!==void 0&&(z(Le,W(),p.super_may_not_use_type_arguments),F1()||(de=m.createExpressionWithTypeArguments(de,lt)))}return F()===21||F()===25||F()===23?de:(Jo(25,p.super_must_be_followed_by_an_argument_list_or_member_access),qt(Y(de,cd(!0,!0)),q))}function xh(q,de,Le,lt=!1){const Dt=W(),tn=Sh(q);let Ir;if(tn.kind===286){let Ti=ud(tn),ri;const _i=Ti[Ti.length-1];if((_i==null?void 0:_i.kind)===284&&!Fy(_i.openingElement.tagName,_i.closingElement.tagName)&&Fy(tn.tagName,_i.closingElement.tagName)){const as=_i.children.end,ao=qt(m.createJsxElement(_i.openingElement,_i.children,qt(m.createJsxClosingElement(qt(N(""),as,as)),as,as)),_i.openingElement.pos,as);Ti=La([...Ti.slice(0,Ti.length-1),ao],Ti.pos,as),ri=_i.closingElement}else ri=Ky(tn,q),Fy(tn.tagName,ri.tagName)||(Le&&Jd(Le)&&Fy(ri.tagName,Le.tagName)?B(tn.tagName,p.JSX_element_0_has_no_corresponding_closing_tag,KC(xe,tn.tagName)):B(ri.tagName,p.Expected_corresponding_JSX_closing_tag_for_0,KC(xe,tn.tagName)));Ir=qt(m.createJsxElement(tn,Ti,ri),Dt)}else tn.kind===289?Ir=qt(m.createJsxFragment(tn,ud(tn),ev(q)),Dt):(E.assert(tn.kind===285),Ir=tn);if(!lt&&q&&F()===30){const Ti=typeof de>"u"?Ir.pos:de,ri=cs(()=>xh(!0,Ti));if(ri){const _i=mc(28,!1);return j3(_i,ri.pos,0),z(ua(xe,Ti),ri.end,p.JSX_expressions_must_have_one_parent_element),qt(m.createBinaryExpression(Ir,_i,ri),Dt)}}return Ir}function f0(){const q=W(),de=m.createJsxText(t.getTokenValue(),mt===13);return mt=t.scanJsxToken(),qt(de,q)}function nk(q,de){switch(de){case 1:if(dS(q))B(q,p.JSX_fragment_has_no_corresponding_closing_tag);else{const Le=q.tagName,lt=Math.min(ua(xe,Le.pos),Le.end);z(lt,Le.end,p.JSX_element_0_has_no_corresponding_closing_tag,KC(xe,q.tagName))}return;case 31:case 7:return;case 12:case 13:return f0();case 19:return rk(!1);case 30:return xh(!1,void 0,q);default:return E.assertNever(de)}}function ud(q){const de=[],Le=W(),lt=It;for(It|=1<<14;;){const Dt=nk(q,mt=t.reScanJsxToken());if(!Dt||(de.push(Dt),Jd(q)&&(Dt==null?void 0:Dt.kind)===284&&!Fy(Dt.openingElement.tagName,Dt.closingElement.tagName)&&Fy(q.tagName,Dt.closingElement.tagName)))break}return It=lt,La(de,Le)}function Pm(){const q=W();return qt(m.createJsxAttributes(Es(13,ik)),q)}function Sh(q){const de=W();if(ln(30),F()===32)return ea(),qt(m.createJsxOpeningFragment(),de);const Le=qT(),lt=(_r&524288)===0?ne():void 0,Dt=Pm();let tn;return F()===32?(ea(),tn=m.createJsxOpeningElement(Le,lt,Dt)):(ln(44),ln(32,void 0,!1)&&(q?We():ea()),tn=m.createJsxSelfClosingElement(Le,lt,Dt)),qt(tn,de)}function qT(){const q=W(),de=z2();if(Vd(de))return de;let Le=de;for(;ls(25);)Le=qt(Y(Le,cd(!0,!1)),q);return Le}function z2(){const q=W();ai();const de=F()===110,Le=Go();return ls(59)?(ai(),qt(m.createJsxNamespacedName(Le,Go()),q)):de?qt(m.createToken(110),q):Le}function rk(q){const de=W();if(!ln(19))return;let Le,lt;return F()!==20&&(Le=Oi(26),lt=v_()),q?ln(20):ln(20,void 0,!1)&&ea(),qt(m.createJsxExpression(Le,lt),de)}function ik(){if(F()===19)return pp();const q=W();return qt(m.createJsxAttribute(Zy(),so()),q)}function so(){if(F()===64){if(ps()===11)return di();if(F()===19)return rk(!0);if(F()===30)return xh(!0);Pt(p.or_JSX_element_expected)}}function Zy(){const q=W();ai();const de=Go();return ls(59)?(ai(),qt(m.createJsxNamespacedName(de,Go()),q)):de}function pp(){const q=W();ln(19),ln(26);const de=v_();return ln(20),qt(m.createJsxSpreadAttribute(de),q)}function Ky(q,de){const Le=W();ln(31);const lt=qT();return ln(32,void 0,!1)&&(de||!Fy(q.tagName,lt)?We():ea()),qt(m.createJsxClosingElement(lt),Le)}function ev(q){const de=W();return ln(31),ln(32,p.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(q?We():ea()),qt(m.createJsxJsxClosingFragment(),de)}function q4(){E.assert(pe!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const q=W();ln(30);const de=al();ln(32);const Le=Lp();return qt(m.createTypeAssertion(de,Le),q)}function sk(){return We(),z_(F())||F()===23||F1()}function V2(){return F()===29&&Qr(sk)}function Vn(q){if(q.flags&64)return!0;if(fS(q)){let de=q.expression;for(;fS(de)&&!(de.flags&64);)de=de.expression;if(de.flags&64){for(;fS(q);)q.flags|=64,q=q.expression;return!0}}return!1}function hc(q,de,Le){const lt=cd(!0,!0),Dt=Le||Vn(de),tn=Dt?j(de,Le,lt):Y(de,lt);if(Dt&&Ei(tn.name)&&B(tn.name,p.An_optional_chain_cannot_contain_private_identifiers),nh(de)&&de.typeArguments){const Ir=de.typeArguments.pos-1,Ti=ua(xe,de.typeArguments.end)+1;z(Ir,Ti,p.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return qt(tn,q)}function Yi(q,de,Le){let lt;if(F()===24)lt=mc(80,!0,p.An_element_access_expression_should_take_an_argument);else{const tn=ze(v_);If(tn)&&(tn.text=h_(tn.text)),lt=tn}ln(24);const Dt=Le||Vn(de)?R(de,Le,lt):ee(de,lt);return qt(Dt,q)}function Mp(q,de,Le){for(;;){let lt,Dt=!1;if(Le&&V2()?(lt=Jo(29),Dt=z_(F())):Dt=ls(25),Dt){de=hc(q,de,lt);continue}if((lt||!Jt())&&ls(23)){de=Yi(q,de,lt);continue}if(F1()){de=!lt&&de.kind===233?Yd(q,de.expression,lt,de.typeArguments):Yd(q,de,lt,void 0);continue}if(!lt){if(F()===54&&!t.hasPrecedingLineBreak()){We(),de=qt(m.createNonNullExpression(de),q);continue}const tn=cs(nv);if(tn){de=qt(m.createExpressionWithTypeArguments(de,tn),q);continue}}return de}}function F1(){return F()===15||F()===16}function Yd(q,de,Le,lt){const Dt=m.createTaggedTemplateExpression(de,lt,F()===15?(ir(!0),di()):qd(!0));return(Le||de.flags&64)&&(Dt.flags|=64),Dt.questionDotToken=Le,qt(Dt,q)}function Wn(q,de){for(;;){de=Mp(q,de,!0);let Le;const lt=Oi(29);if(lt&&(Le=cs(nv),F1())){de=Yd(q,de,lt,Le);continue}if(Le||F()===21){!lt&&de.kind===233&&(Le=de.typeArguments,de=de.expression);const Dt=tv(),tn=lt||Vn(de)?oe(de,lt,Le,Dt):Z(de,Le,Dt);de=qt(tn,q);continue}if(lt){const Dt=mc(80,!1,p.Identifier_expected);de=qt(j(de,lt,Dt),q)}break}return de}function tv(){ln(21);const q=Ro(11,dg);return ln(22),q}function nv(){if((_r&524288)!==0||ar()!==30)return;We();const q=Ro(20,al);if(on()===32)return We(),q&&ul()?q:void 0}function ul(){switch(F()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Jr()||!Tf()}function fd(){switch(F()){case 15:t.getTokenFlags()&26656&&ir(!1);case 9:case 10:case 11:return di();case 110:case 108:case 106:case 112:case 97:return _l();case 21:return Rp();case 23:return kh();case 19:return pd();case 134:if(!Qr($T))break;return p0();case 60:return _k();case 86:return z1();case 100:return p0();case 105:return HT();case 44:case 69:if(Sn()===14)return di();break;case 16:return qd(!1);case 81:return Pr()}return bo(p.Expression_expected)}function Rp(){const q=W(),de=ge();ln(21);const Le=ze(v_);return ln(22),yn(qt(X(Le),q),de)}function U2(){const q=W();ln(26);const de=b_(!0);return qt(m.createSpreadElement(de),q)}function rv(){return F()===26?U2():F()===28?qt(m.createOmittedExpression(),W()):b_(!0)}function dg(){return Gr(r,rv)}function kh(){const q=W(),de=t.getTokenStart(),Le=ln(23),lt=t.hasPrecedingLineBreak(),Dt=Ro(15,rv);return Ic(23,24,Le,de),qt(V(Dt,lt),q)}function ak(){const q=W(),de=ge();if(Oi(26)){const as=b_(!0);return yn(qt(m.createSpreadAssignment(as),q),de)}const Le=Om(!0);if(wn(139))return Vo(q,de,Le,177,0);if(wn(153))return Vo(q,de,Le,178,0);const lt=Oi(42),Dt=pi(),tn=xt(),Ir=Oi(58),Ti=Oi(54);if(lt||F()===21||F()===30)return _f(q,de,Le,lt,tn,Ir,Ti);let ri;if(Dt&&F()!==59){const as=Oi(64),ao=as?ze(()=>b_(!0)):void 0;ri=m.createShorthandPropertyAssignment(tn,ao),ri.equalsToken=as}else{ln(59);const as=ze(()=>b_(!0));ri=m.createPropertyAssignment(tn,as)}return ri.modifiers=Le,ri.questionToken=Ir,ri.exclamationToken=Ti,yn(qt(ri,q),de)}function pd(){const q=W(),de=t.getTokenStart(),Le=ln(19),lt=t.hasPrecedingLineBreak(),Dt=Ro(12,ak,!0);return Ic(19,20,Le,de),qt(U(Dt,lt),q)}function p0(){const q=Jt();Gt(!1);const de=W(),Le=ge(),lt=Om(!1);ln(100);const Dt=Oi(42),tn=Dt?1:0,Ir=dt(lt,Y3)?2:0,Ti=tn&&Ir?ft(mg):tn?Ut(mg):Ir?Me(mg):mg(),ri=jr(),_i=Bf(tn|Ir),as=$o(59,!1),ao=d0(tn|Ir);Gt(q);const qa=m.createFunctionExpression(lt,Dt,Ti,ri,_i,as,ao);return yn(qt(qa,de),Le)}function mg(){return Fs()?W_():void 0}function HT(){const q=W();if(ln(105),ls(25)){const tn=Go();return qt(m.createMetaProperty(105,tn),q)}const de=W();let Le=Mp(de,fd(),!1),lt;Le.kind===233&&(lt=Le.typeArguments,Le=Le.expression),F()===29&&Pt(p.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,KC(xe,Le));const Dt=F()===21?tv():void 0;return qt(_e(Le,lt,Dt),q)}function gg(q,de){const Le=W(),lt=ge(),Dt=t.getTokenStart(),tn=ln(19,de);if(tn||q){const Ir=t.hasPrecedingLineBreak(),Ti=Es(1,Sf);Ic(19,20,tn,Dt);const ri=yn(qt(H(Ti,Ir),Le),lt);return F()===64&&(Pt(p.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_whole_assignment_in_parentheses),We()),ri}else{const Ir=Fc();return yn(qt(H(Ir,void 0),Le),lt)}}function d0(q,de){const Le=Ae();Zt(!!(q&1));const lt=Ln();xn(!!(q&2));const Dt=Tn;Tn=!1;const tn=Jt();tn&&Gt(!1);const Ir=gg(!!(q&16),de);return tn&&Gt(!0),Tn=Dt,Zt(Le),xn(lt),Ir}function W2(){const q=W(),de=ge();return ln(27),yn(qt(m.createEmptyStatement(),q),de)}function GT(){const q=W(),de=ge();ln(101);const Le=t.getTokenStart(),lt=ln(21),Dt=ze(v_);Ic(21,22,lt,Le);const tn=Sf(),Ir=ls(93)?Sf():void 0;return yn(qt(ue(Dt,tn,Ir),q),de)}function hg(){const q=W(),de=ge();ln(92);const Le=Sf();ln(117);const lt=t.getTokenStart(),Dt=ln(21),tn=ze(v_);return Ic(21,22,Dt,lt),ls(27),yn(qt(m.createDoStatement(Le,tn),q),de)}function dp(){const q=W(),de=ge();ln(117);const Le=t.getTokenStart(),lt=ln(21),Dt=ze(v_);Ic(21,22,lt,Le);const tn=Sf();return yn(qt(fe(Dt,tn),q),de)}function Rc(){const q=W(),de=ge();ln(99);const Le=Oi(135);ln(21);let lt;F()!==27&&(F()===115||F()===121||F()===87||F()===160&&Qr(lf)||F()===135&&Qr(B1)?lt=YT(!0):lt=ut(v_));let Dt;if(Le?ln(165):ls(165)){const tn=ze(()=>b_(!0));ln(22),Dt=Ne(Le,lt,tn,Sf())}else if(ls(103)){const tn=ze(v_);ln(22),Dt=m.createForInStatement(lt,tn,Sf())}else{ln(27);const tn=F()!==27&&F()!==22?ze(v_):void 0;ln(27);const Ir=F()!==22?ze(v_):void 0;ln(22),Dt=G(lt,tn,Ir,Sf())}return yn(qt(Dt,q),de)}function gl(q){const de=W(),Le=ge();ln(q===252?83:88);const lt=Ls()?void 0:bo();ja();const Dt=q===252?m.createBreakStatement(lt):m.createContinueStatement(lt);return yn(qt(Dt,de),Le)}function L1(){const q=W(),de=ge();ln(107);const Le=Ls()?void 0:ze(v_);return ja(),yn(qt(m.createReturnStatement(Le),q),de)}function Su(){const q=W(),de=ge();ln(118);const Le=t.getTokenStart(),lt=ln(21),Dt=ze(v_);Ic(21,22,lt,Le);const tn=Er(67108864,Sf);return yn(qt(m.createWithStatement(Dt,tn),q),de)}function G_(){const q=W(),de=ge();ln(84);const Le=ze(v_);ln(59);const lt=Es(3,Sf);return yn(qt(m.createCaseClause(Le,lt),q),de)}function yg(){const q=W();ln(90),ln(59);const de=Es(3,Sf);return qt(m.createDefaultClause(de),q)}function mp(){return F()===84?G_():yg()}function M1(){const q=W();ln(19);const de=Es(2,mp);return ln(20),qt(m.createCaseBlock(de),q)}function vg(){const q=W(),de=ge();ln(109),ln(21);const Le=ze(v_);ln(22);const lt=M1();return yn(qt(m.createSwitchStatement(Le,lt),q),de)}function q2(){const q=W(),de=ge();ln(111);let Le=t.hasPrecedingLineBreak()?void 0:ze(v_);return Le===void 0&&(zt++,Le=qt(N(""),W())),mo()||Ui(Le),yn(qt(m.createThrowStatement(Le),q),de)}function fl(){const q=W(),de=ge();ln(113);const Le=gg(!1),lt=F()===85?m0():void 0;let Dt;return(!lt||F()===98)&&(ln(98,p.catch_or_finally_expected),Dt=gg(!1)),yn(qt(m.createTryStatement(Le,lt,Dt),q),de)}function m0(){const q=W();ln(85);let de;ls(21)?(de=Q2(),ln(22)):de=void 0;const Le=gg(!1);return qt(m.createCatchClause(de,Le),q)}function Im(){const q=W(),de=ge();return ln(89),ja(),yn(qt(m.createDebuggerStatement(),q),de)}function H2(){const q=W();let de=ge(),Le;const lt=F()===21,Dt=ze(v_);return we(Dt)&&ls(59)?Le=m.createLabeledStatement(Dt,Sf()):(mo()||Ui(Dt),Le=re(Dt),lt&&(de=!1)),yn(qt(Le,q),de)}function Xo(){return We(),z_(F())&&!t.hasPrecedingLineBreak()}function bg(){return We(),F()===86&&!t.hasPrecedingLineBreak()}function $T(){return We(),F()===100&&!t.hasPrecedingLineBreak()}function R1(){return We(),(z_(F())||F()===9||F()===10||F()===11)&&!t.hasPrecedingLineBreak()}function ok(){for(;;)switch(F()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return iv();case 135:return av();case 120:case 156:return ek();case 144:case 145:return Zd();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const q=F();if(We(),t.hasPrecedingLineBreak())return!1;if(q===138&&F()===156)return!0;continue;case 162:return We(),F()===19||F()===80||F()===95;case 102:return We(),F()===11||F()===42||F()===19||z_(F());case 95:let de=We();if(de===156&&(de=Qr(We)),de===64||de===42||de===19||de===90||de===130||de===60)return!0;continue;case 126:We();continue;default:return!1}}function r_(){return Qr(ok)}function g0(){switch(F()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return r_()||Qr(IT);case 87:case 95:return r_();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return r_()||!Qr(Xo);default:return Tf()}}function Ch(){return We(),Fs()||F()===19||F()===23}function Tg(){return Qr(Ch)}function lf(){return G2(!0)}function G2(q){return We(),q&&F()===165?!1:(Fs()||F()===19)&&!t.hasPrecedingLineBreak()}function iv(){return Qr(G2)}function B1(){return sv(!0)}function sv(q){return We()===160?G2(q):!1}function av(){return Qr(sv)}function Sf(){switch(F()){case 27:return W2();case 19:return gg(!1);case 115:return Vu(W(),ge(),void 0);case 121:if(Tg())return Vu(W(),ge(),void 0);break;case 135:if(av())return Vu(W(),ge(),void 0);break;case 160:if(iv())return Vu(W(),ge(),void 0);break;case 100:return X_(W(),ge(),void 0);case 86:return cu(W(),ge(),void 0);case 101:return GT();case 92:return hg();case 117:return dp();case 99:return Rc();case 88:return gl(251);case 83:return gl(252);case 107:return L1();case 118:return Su();case 109:return vg();case 111:return q2();case 113:case 85:case 98:return fl();case 89:return Im();case 60:return $2();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(r_())return $2();break}return H2()}function XT(q){return q.kind===138}function $2(){const q=W(),de=ge(),Le=Om(!0);if(dt(Le,XT)){const Dt=QT(q);if(Dt)return Dt;for(const tn of Le)tn.flags|=33554432;return Er(33554432,()=>ov(q,de,Le))}else return ov(q,de,Le)}function QT(q){return Er(33554432,()=>{const de=oc(It,q);if(de)return se(de)})}function ov(q,de,Le){switch(F()){case 115:case 121:case 87:case 160:case 135:return Vu(q,de,Le);case 100:return X_(q,de,Le);case 86:return cu(q,de,Le);case 120:return gr(q,de,Le);case 156:return yi(q,de,Le);case 94:return ji(q,de,Le);case 162:case 144:case 145:return kn(q,de,Le);case 102:return fk(q,de,Le);case 95:switch(We(),F()){case 90:case 64:return Wc(q,de,Le);case 130:return nb(q,de,Le);default:return $N(q,de,Le)}default:if(Le){const lt=mc(282,!0,p.Declaration_expected);return B3(lt,q),lt.modifiers=Le,lt}return}}function zu(){return We()===11}function Zd(){return We(),!t.hasPrecedingLineBreak()&&(pi()||F()===11)}function j1(q,de){if(F()!==19){if(q&4){a0();return}if(Ls()){ja();return}}return d0(q,de)}function ck(){const q=W();if(F()===28)return qt(m.createOmittedExpression(),q);const de=Oi(26),Le=J1(),lt=up();return qt(m.createBindingElement(de,void 0,Le,lt),q)}function Ra(){const q=W(),de=Oi(26),Le=Fs();let lt=xt(),Dt;Le&&F()!==59?(Dt=lt,lt=void 0):(ln(59),Dt=J1());const tn=up();return qt(m.createBindingElement(de,lt,Dt,tn),q)}function hr(){const q=W();ln(19);const de=ze(()=>Ro(9,Ra));return ln(20),qt(m.createObjectBindingPattern(de),q)}function ku(){const q=W();ln(23);const de=ze(()=>Ro(10,ck));return ln(24),qt(m.createArrayBindingPattern(de),q)}function $_(){return F()===19||F()===23||F()===81||Fs()}function J1(q){return F()===23?ku():F()===19?hr():W_(q)}function X2(){return Q2(!0)}function Q2(q){const de=W(),Le=ge(),lt=J1(p.Private_identifiers_are_not_allowed_in_variable_declarations);let Dt;q&<.kind===80&&F()===54&&!t.hasPrecedingLineBreak()&&(Dt=_l());const tn=Fe(),Ir=WT(F())?void 0:up(),Ti=De(lt,Dt,tn,Ir);return yn(qt(Ti,de),Le)}function YT(q){const de=W();let Le=0;switch(F()){case 115:break;case 121:Le|=1;break;case 87:Le|=2;break;case 160:Le|=4;break;case 135:E.assert(av()),Le|=6,We();break;default:E.fail()}We();let lt;if(F()===165&&Qr(Eh))lt=Fc();else{const Dt=yt();wi(q),lt=Ro(8,q?Q2:X2),wi(Dt)}return qt(Xe(lt,Le),de)}function Eh(){return nc()&&We()===22}function Vu(q,de,Le){const lt=YT(!1);ja();const Dt=Q(Le,lt);return yn(qt(Dt,q),de)}function X_(q,de,Le){const lt=Ln(),Dt=Fd(Le);ln(100);const tn=Oi(42),Ir=Dt&1024?mg():W_(),Ti=tn?1:0,ri=Dt&512?2:0,_i=jr();Dt&1&&xn(!0);const as=Bf(Ti|ri),ao=$o(59,!1),qa=j1(Ti|ri,p.or_expected);xn(lt);const Za=m.createFunctionDeclaration(Le,tn,Ir,_i,as,ao,qa);return yn(qt(Za,q),de)}function cv(){if(F()===137)return ln(137);if(F()===11&&Qr(We)===21)return cs(()=>{const q=di();return q.text==="constructor"?q:void 0})}function lv(q,de,Le){return cs(()=>{if(cv()){const lt=jr(),Dt=Bf(0),tn=$o(59,!1),Ir=j1(0,p.or_expected),Ti=m.createConstructorDeclaration(Le,Dt,Ir);return Ti.typeParameters=lt,Ti.type=tn,yn(qt(Ti,q),de)}})}function _f(q,de,Le,lt,Dt,tn,Ir,Ti){const ri=lt?1:0,_i=dt(Le,Y3)?2:0,as=jr(),ao=Bf(ri|_i),qa=$o(59,!1),Za=j1(ri|_i,Ti),R_=m.createMethodDeclaration(Le,lt,Dt,tn,as,ao,qa,Za);return R_.exclamationToken=Ir,yn(qt(R_,q),de)}function xg(q,de,Le,lt,Dt){const tn=!Dt&&!t.hasPrecedingLineBreak()?Oi(54):void 0,Ir=Fe(),Ti=Gr(90112,up);ro(lt,Ir,Ti);const ri=m.createPropertyDeclaration(Le,lt,Dt||tn,Ir,Ti);return yn(qt(ri,q),de)}function ZT(q,de,Le){const lt=Oi(42),Dt=xt(),tn=Oi(58);return lt||F()===21||F()===30?_f(q,de,Le,lt,Dt,tn,void 0,p.or_expected):xg(q,de,Le,Dt,tn)}function Vo(q,de,Le,lt,Dt){const tn=xt(),Ir=jr(),Ti=Bf(0),ri=$o(59,!1),_i=j1(Dt),as=lt===177?m.createGetAccessorDeclaration(Le,tn,Ti,ri,_i):m.createSetAccessorDeclaration(Le,tn,Ti,_i);return as.typeParameters=Ir,Fu(as)&&(as.type=ri),yn(qt(as,q),de)}function jf(){let q;if(F()===60)return!0;for(;W0(F());){if(q=F(),aW(q))return!0;We()}if(F()===42||(A()&&(q=F(),We()),F()===23))return!0;if(q!==void 0){if(!ru(q)||q===153||q===139)return!0;switch(F()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Ls()}}return!1}function lk(q,de,Le){Jo(126);const lt=Jf(),Dt=yn(qt(m.createClassStaticBlockDeclaration(lt),q),de);return Dt.modifiers=Le,Dt}function Jf(){const q=Ae(),de=Ln();Zt(!1),xn(!0);const Le=gg(!1);return Zt(q),xn(de),Le}function Y2(){if(Ln()&&F()===135){const q=W(),de=bo(p.Expression_expected);We();const Le=Mp(q,de,!0);return Wn(q,Le)}return J2()}function wh(){const q=W();if(!ls(60))return;const de=ae(Y2);return qt(m.createDecorator(de),q)}function Z2(q,de,Le){const lt=W(),Dt=F();if(F()===87&&de){if(!cs(mr))return}else{if(Le&&F()===126&&Qr(Sg))return;if(q&&F()===126)return;if(!io())return}return qt(M(Dt),lt)}function Om(q,de,Le){const lt=W();let Dt,tn,Ir,Ti=!1,ri=!1,_i=!1;if(q&&F()===60)for(;tn=wh();)Dt=gn(Dt,tn);for(;Ir=Z2(Ti,de,Le);)Ir.kind===126&&(Ti=!0),Dt=gn(Dt,Ir),ri=!0;if(ri&&q&&F()===60)for(;tn=wh();)Dt=gn(Dt,tn),_i=!0;if(_i)for(;Ir=Z2(Ti,de,Le);)Ir.kind===126&&(Ti=!0),Dt=gn(Dt,Ir);return Dt&&La(Dt,lt)}function uf(){let q;if(F()===134){const de=W();We();const Le=qt(M(134),de);q=La([Le],de)}return q}function yc(){const q=W(),de=ge();if(F()===27)return We(),yn(qt(m.createSemicolonClassElement(),q),de);const Le=Om(!0,!0,!0);if(F()===126&&Qr(Sg))return lk(q,de,Le);if(wn(139))return Vo(q,de,Le,177,0);if(wn(153))return Vo(q,de,Le,178,0);if(F()===137||F()===11){const lt=lv(q,de,Le);if(lt)return lt}if(PT())return o0(q,de,Le);if(z_(F())||F()===11||F()===9||F()===42||F()===23)if(dt(Le,XT)){for(const Dt of Le)Dt.flags|=33554432;return Er(33554432,()=>ZT(q,de,Le))}else return ZT(q,de,Le);if(Le){const lt=mc(80,!0,p.Declaration_expected);return xg(q,de,Le,lt,void 0)}return E.fail("Should not have attempted to parse class member declaration.")}function _k(){const q=W(),de=ge(),Le=Om(!0);if(F()===86)return Fm(q,de,Le,231);const lt=mc(282,!0,p.Expression_expected);return B3(lt,q),lt.modifiers=Le,lt}function z1(){return Fm(W(),ge(),void 0,231)}function cu(q,de,Le){return Fm(q,de,Le,263)}function Fm(q,de,Le,lt){const Dt=Ln();ln(86);const tn=K2(),Ir=jr();dt(Le,iS)&&xn(!0);const Ti=eb();let ri;ln(19)?(ri=Wt(),ln(20)):ri=Fc(),xn(Dt);const _i=lt===263?m.createClassDeclaration(Le,tn,Ir,Ti,ri):m.createClassExpression(Le,tn,Ir,Ti,ri);return yn(qt(_i,q),de)}function K2(){return Fs()&&!uk()?M_(Fs()):void 0}function uk(){return F()===119&&Qr(q_)}function eb(){if(et())return Es(22,tb)}function tb(){const q=W(),de=F();E.assert(de===96||de===119),We();const Le=Ro(7,S);return qt(m.createHeritageClause(de,Le),q)}function S(){const q=W(),de=J2();if(de.kind===233)return de;const Le=ne();return qt(m.createExpressionWithTypeArguments(de,Le),q)}function ne(){return F()===30?Ml(20,al,30,32):void 0}function et(){return F()===96||F()===119}function Wt(){return Es(5,yc)}function gr(q,de,Le){ln(120);const lt=bo(),Dt=jr(),tn=eb(),Ir=OT(),Ti=m.createInterfaceDeclaration(Le,lt,Dt,tn,Ir);return yn(qt(Ti,q),de)}function yi(q,de,Le){ln(156),t.hasPrecedingLineBreak()&&Pt(p.Line_break_not_permitted_here);const lt=bo(),Dt=jr();ln(64);const tn=F()===141&&cs(Wy)||al();ja();const Ir=m.createTypeAliasDeclaration(Le,lt,Dt,tn);return yn(qt(Ir,q),de)}function $r(){const q=W(),de=ge(),Le=xt(),lt=ze(up);return yn(qt(m.createEnumMember(Le,lt),q),de)}function ji(q,de,Le){ln(94);const lt=bo();let Dt;ln(19)?(Dt=K(()=>Ro(6,$r)),ln(20)):Dt=Fc();const tn=m.createEnumDeclaration(Le,lt,Dt);return yn(qt(tn,q),de)}function Js(){const q=W();let de;return ln(19)?(de=Es(1,Sf),ln(20)):de=Fc(),qt(m.createModuleBlock(de),q)}function ni(q,de,Le,lt){const Dt=lt&32,tn=bo(),Ir=ls(25)?ni(W(),!1,void 0,8|Dt):Js(),Ti=m.createModuleDeclaration(Le,tn,Ir,lt);return yn(qt(Ti,q),de)}function Rl(q,de,Le){let lt=0,Dt;F()===162?(Dt=bo(),lt|=2048):(Dt=di(),Dt.text=h_(Dt.text));let tn;F()===19?tn=Js():ja();const Ir=m.createModuleDeclaration(Le,Dt,tn,lt);return yn(qt(Ir,q),de)}function kn(q,de,Le){let lt=0;if(F()===162)return Rl(q,de,Le);if(ls(145))lt|=32;else if(ln(144),F()===11)return Rl(q,de,Le);return ni(q,de,Le,lt)}function Dh(){return F()===149&&Qr(Q_)}function Q_(){return We()===21}function Sg(){return We()===19}function Ah(){return We()===44}function nb(q,de,Le){ln(130),ln(145);const lt=bo();ja();const Dt=m.createNamespaceExportDeclaration(lt);return Dt.modifiers=Le,yn(qt(Dt,q),de)}function fk(q,de,Le){ln(102);const lt=t.getTokenFullStart();let Dt;pi()&&(Dt=bo());let tn=!1;if(F()!==161&&(Dt==null?void 0:Dt.escapedText)==="type"&&(pi()||V1())&&(tn=!0,Dt=pi()?bo():void 0),Dt&&!U1())return _v(q,de,Le,Dt,tn);let Ir;(Dt||F()===42||F()===19)&&(Ir=H4(Dt,lt,tn),ln(161));const Ti=dd();let ri;F()===132&&!t.hasPrecedingLineBreak()&&(ri=h0()),ja();const _i=m.createImportDeclaration(Le,Ir,Ti,ri);return yn(qt(_i,q),de)}function kg(){const q=W(),de=z_(F())?Go():aa(11);ln(59);const Le=b_(!0);return qt(m.createAssertEntry(de,Le),q)}function h0(q){const de=W();q||ln(132);const Le=t.getTokenStart();if(ln(19)){const lt=t.hasPrecedingLineBreak(),Dt=Ro(24,kg,!0);if(!ln(20)){const tn=Bo(Pe);tn&&tn.code===p._0_expected.code&&fa(tn,L6(ve,Le,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return qt(m.createAssertClause(Dt,lt),de)}else{const lt=La([],W(),void 0,!1);return qt(m.createAssertClause(lt,!1),de)}}function V1(){return F()===42||F()===19}function U1(){return F()===28||F()===161}function _v(q,de,Le,lt,Dt){ln(64);const tn=W1();ja();const Ir=m.createImportEqualsDeclaration(Le,Dt,lt,tn);return yn(qt(Ir,q),de)}function H4(q,de,Le){let lt;return(!q||ls(28))&&(lt=F()===42?G4():zf(275)),qt(m.createImportClause(Le,q,lt),de)}function W1(){return Dh()?uv():sl(!1)}function uv(){const q=W();ln(149),ln(21);const de=dd();return ln(22),qt(m.createExternalModuleReference(de),q)}function dd(){if(F()===11){const q=di();return q.text=h_(q.text),q}else return v_()}function G4(){const q=W();ln(42),ln(130);const de=bo();return qt(m.createNamespaceImport(de),q)}function zf(q){const de=W(),Le=q===275?m.createNamedImports(Ml(23,GN,19,20)):m.createNamedExports(Ml(23,pk,19,20));return qt(Le,de)}function pk(){const q=ge();return yn(Kd(281),q)}function GN(){return Kd(276)}function Kd(q){const de=W();let Le=ru(F())&&!pi(),lt=t.getTokenStart(),Dt=t.getTokenEnd(),tn=!1,Ir,Ti=!0,ri=Go();if(ri.escapedText==="type")if(F()===130){const ao=Go();if(F()===130){const qa=Go();z_(F())?(tn=!0,Ir=ao,ri=as(),Ti=!1):(Ir=ri,ri=qa,Ti=!1)}else z_(F())?(Ir=ri,Ti=!1,ri=as()):(tn=!0,ri=ao)}else z_(F())&&(tn=!0,ri=as());Ti&&F()===130&&(Ir=ri,ln(130),ri=as()),q===276&&Le&&z(lt,Dt,p.Identifier_expected);const _i=q===276?m.createImportSpecifier(tn,Ir,ri):m.createExportSpecifier(tn,Ir,ri);return qt(_i,de);function as(){return Le=ru(F())&&!pi(),lt=t.getTokenStart(),Dt=t.getTokenEnd(),Go()}}function KT(q){return qt(m.createNamespaceExport(Go()),q)}function $N(q,de,Le){const lt=Ln();xn(!0);let Dt,tn,Ir;const Ti=ls(156),ri=W();ls(42)?(ls(130)&&(Dt=KT(ri)),ln(161),tn=dd()):(Dt=zf(279),(F()===161||F()===11&&!t.hasPrecedingLineBreak())&&(ln(161),tn=dd())),tn&&F()===132&&!t.hasPrecedingLineBreak()&&(Ir=h0()),ja(),xn(lt);const _i=m.createExportDeclaration(Le,Ti,Dt,tn,Ir);return yn(qt(_i,q),de)}function Wc(q,de,Le){const lt=Ln();xn(!0);let Dt;ls(64)?Dt=!0:ln(90);const tn=b_(!0);ja(),xn(lt);const Ir=m.createExportAssignment(Le,Dt,tn);return yn(qt(Ir,q),de)}let fv;(q=>{q[q.SourceElements=0]="SourceElements",q[q.BlockStatements=1]="BlockStatements",q[q.SwitchClauses=2]="SwitchClauses",q[q.SwitchClauseStatements=3]="SwitchClauseStatements",q[q.TypeMembers=4]="TypeMembers",q[q.ClassMembers=5]="ClassMembers",q[q.EnumMembers=6]="EnumMembers",q[q.HeritageClauseElement=7]="HeritageClauseElement",q[q.VariableDeclarations=8]="VariableDeclarations",q[q.ObjectBindingElements=9]="ObjectBindingElements",q[q.ArrayBindingElements=10]="ArrayBindingElements",q[q.ArgumentExpressions=11]="ArgumentExpressions",q[q.ObjectLiteralMembers=12]="ObjectLiteralMembers",q[q.JsxAttributes=13]="JsxAttributes",q[q.JsxChildren=14]="JsxChildren",q[q.ArrayLiteralMembers=15]="ArrayLiteralMembers",q[q.Parameters=16]="Parameters",q[q.JSDocParameters=17]="JSDocParameters",q[q.RestProperties=18]="RestProperties",q[q.TypeParameters=19]="TypeParameters",q[q.TypeArguments=20]="TypeArguments",q[q.TupleElementTypes=21]="TupleElementTypes",q[q.HeritageClauses=22]="HeritageClauses",q[q.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",q[q.AssertEntries=24]="AssertEntries",q[q.JSDocComment=25]="JSDocComment",q[q.Count=26]="Count"})(fv||(fv={}));let NE;(q=>{q[q.False=0]="False",q[q.True=1]="True",q[q.Unknown=2]="Unknown"})(NE||(NE={}));let Wa;(q=>{function de(_i,as,ao){Si("file.js",_i,99,void 0,1),t.setText(_i,as,ao),mt=t.scan();const qa=Le(),Za=In("file.js",99,1,!1,[],M(1),0,_o),R_=Xx(Pe,Za);return Ge&&(Za.jsDocDiagnostics=Xx(Ge,Za)),Nr(),qa?{jsDocTypeExpression:qa,diagnostics:R_}:void 0}q.parseJSDocTypeExpressionForTests=de;function Le(_i){const as=W(),ao=(_i?ls:ln)(19),qa=Er(16777216,fn);(!_i||ao)&&Ja(20);const Za=m.createJSDocTypeExpression(qa);return cn(Za),qt(Za,as)}q.parseJSDocTypeExpression=Le;function lt(){const _i=W(),as=ls(19),ao=W();let qa=sl(!1);for(;F()===81;)jn(),Tt(),qa=qt(m.createJSDocMemberName(qa,bo()),ao);as&&Ja(20);const Za=m.createJSDocNameReference(qa);return cn(Za),qt(Za,_i)}q.parseJSDocNameReference=lt;function Dt(_i,as,ao){Si("",_i,99,void 0,1);const qa=Er(16777216,()=>ri(as,ao)),R_=Xx(Pe,{languageVariant:0,text:_i});return Nr(),qa?{jsDoc:qa,diagnostics:R_}:void 0}q.parseIsolatedJSDocComment=Dt;function tn(_i,as,ao){const qa=mt,Za=Pe.length,R_=jt,Sl=Er(16777216,()=>ri(as,ao));return Ta(Sl,_i),_r&524288&&(Ge||(Ge=[]),Ge.push(...Pe)),mt=qa,Pe.length=Za,jt=R_,Sl}q.parseJSDocComment=tn;let Ir;(_i=>{_i[_i.BeginningOfLine=0]="BeginningOfLine",_i[_i.SawAsterisk=1]="SawAsterisk",_i[_i.SavingComments=2]="SavingComments",_i[_i.SavingBackticks=3]="SavingBackticks"})(Ir||(Ir={}));let Ti;(_i=>{_i[_i.Property=1]="Property",_i[_i.Parameter=2]="Parameter",_i[_i.CallbackParameter=4]="CallbackParameter"})(Ti||(Ti={}));function ri(_i=0,as){const ao=It;It|=1<<25;const qa=xe,Za=as===void 0?qa.length:_i+as;if(as=Za-_i,E.assert(_i>=0),E.assert(_i<=Za),E.assert(Za<=qa.length),!SG(qa,_i))return;let R_,Sl,em,Bp,y0,v0=[];const pv=[],dv=t.scanRange(_i+3,as-5,PE);return It=ao,dv;function PE(){let hn=1,Ar,Dr=_i-(qa.lastIndexOf(` -`,_i)+1)+4;function mi(to){Ar||(Ar=Dr),v0.push(to),Dr+=to.length}for(Tt();zp(5););zp(4)&&(hn=0,Dr=0);e:for(;;){switch(F()){case 60:mk(v0),y0||(y0=W()),ie(ex(Dr)),hn=0,Ar=void 0;break;case 4:v0.push(t.getTokenText()),hn=0,Dr=0;break;case 42:const to=t.getTokenText();hn===1?(hn=2,mi(to)):(E.assert(hn===0),hn=1,Dr+=to.length);break;case 5:E.assert(hn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const xo=t.getTokenText();Ar!==void 0&&Dr+xo.length>Ar&&v0.push(xo.slice(Ar-Dr)),Dr+=xo.length;break;case 1:break e;case 82:hn=2,mi(t.getTokenValue());break;case 19:hn=2;const Cg=t.getTokenFullStart(),Nh=t.getTokenEnd()-1,md=gk(Nh);if(md){Bp||dk(v0),pv.push(qt(m.createJSDocText(v0.join("")),Bp!=null?Bp:_i,Cg)),pv.push(md),v0=[],Bp=t.getTokenEnd();break}default:hn=2,mi(t.getTokenText());break}hn===2?Ot(!1):Tt()}const ui=xx(v0.join(""));pv.length&&ui.length&&pv.push(qt(m.createJSDocText(ui),Bp!=null?Bp:_i,y0)),pv.length&&R_&&E.assertIsDefined(y0,"having parsed tags implies that the end of the comment span should be set");const oa=R_&&La(R_,Sl,em);return qt(m.createJSDocComment(pv.length?La(pv,_i,y0):ui.length?ui:void 0,oa),_i,Za)}function dk(hn){for(;hn.length&&(hn[0]===` -`||hn[0]==="\r");)hn.shift()}function mk(hn){for(;hn.length;){const Ar=xx(hn[hn.length-1]);if(Ar==="")hn.pop();else if(Ar.lengthxo&&(mi.push(Vf.slice(xo-hn)),to=2),hn+=Vf.length;break;case 19:to=2;const X4=t.getTokenFullStart(),FE=t.getTokenEnd()-1,i_=gk(FE);i_?(ui.push(qt(m.createJSDocText(mi.join("")),oa!=null?oa:Dr,X4)),ui.push(i_),mi=[],oa=t.getTokenEnd()):Cg(t.getTokenText());break;case 62:to===3?to=2:to=3,Cg(t.getTokenText());break;case 82:to!==3&&(to=2),Cg(t.getTokenValue());break;case 42:if(to===0){to=1,hn+=1;break}default:to!==3&&(to=2),Cg(t.getTokenText());break}to===2||to===3?Nh=Ot(to===3):Nh=Tt()}dk(mi);const md=xx(mi.join(""));if(ui.length)return md.length&&ui.push(qt(m.createJSDocText(md),oa!=null?oa:Dr)),La(ui,Dr,t.getTokenEnd());if(md.length)return md}function gk(hn){const Ar=cs(v);if(!Ar)return;Tt(),To();const Dr=W();let mi=z_(F())?sl(!0):void 0;if(mi)for(;F()===81;)jn(),Tt(),mi=qt(m.createJSDocMemberName(mi,bo()),Dr);const ui=[];for(;F()!==20&&F()!==4&&F()!==1;)ui.push(t.getTokenText()),Tt();const oa=Ar==="link"?m.createJSDocLink:Ar==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return qt(oa(mi,ui.join("")),hn,t.getTokenEnd())}function v(){if(jp(),F()===19&&Tt()===60&&z_(Tt())){const hn=t.getTokenValue();if(w(hn))return hn}}function w(hn){return hn==="link"||hn==="linkcode"||hn==="linkplain"}function L(hn,Ar,Dr,mi){return qt(m.createJSDocUnknownTag(Ar,kf(hn,W(),Dr,mi)),hn)}function ie(hn){!hn||(R_?R_.push(hn):(R_=[hn],Sl=hn.pos),em=hn.end)}function Ie(){return jp(),F()===19?Le():void 0}function Ft(){const hn=zp(23);hn&&To();const Ar=zp(62),Dr=xre();return Ar&&L_(62),hn&&(To(),Oi(64)&&v_(),ln(24)),{name:Dr,isBracketed:hn}}function Yn(hn){switch(hn.kind){case 151:return!0;case 188:return Yn(hn.elementType);default:return sp(hn)&&we(hn.typeName)&&hn.typeName.escapedText==="Object"&&!hn.typeArguments}}function ki(hn,Ar,Dr,mi){let ui=Ie(),oa=!ui;jp();const{name:to,isBracketed:xo}=Ft(),Cg=jp();oa&&!Qr(v)&&(ui=Ie());const Nh=kf(hn,W(),mi,Cg),md=eo(ui,to,Dr,mi);md&&(ui=md,oa=!0);const Vf=Dr===1?m.createJSDocPropertyTag(Ar,to,xo,ui,oa,Nh):m.createJSDocParameterTag(Ar,to,xo,ui,oa,Nh);return qt(Vf,hn)}function eo(hn,Ar,Dr,mi){if(hn&&Yn(hn.type)){const ui=W();let oa,to;for(;oa=cs(()=>ib(Dr,mi,Ar));)oa.kind===348||oa.kind===355?to=gn(to,oa):oa.kind===352&&B(oa.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(to){const xo=qt(m.createJSDocTypeLiteral(to,hn.type.kind===188),ui);return qt(m.createJSDocTypeExpression(xo),ui)}}}function Jp(hn,Ar,Dr,mi){dt(R_,CF)&&z(Ar.pos,t.getTokenStart(),p._0_tag_already_specified,Li(Ar.escapedText));const ui=Ie();return qt(m.createJSDocReturnTag(Ar,ui,kf(hn,W(),Dr,mi)),hn)}function b0(hn,Ar,Dr,mi){dt(R_,_8)&&z(Ar.pos,t.getTokenStart(),p._0_tag_already_specified,Li(Ar.escapedText));const ui=Le(!0),oa=Dr!==void 0&&mi!==void 0?kf(hn,W(),Dr,mi):void 0;return qt(m.createJSDocTypeTag(Ar,ui,oa),hn)}function gp(hn,Ar,Dr,mi){const oa=F()===23||Qr(()=>Tt()===60&&z_(Tt())&&w(t.getTokenValue()))?void 0:lt(),to=Dr!==void 0&&mi!==void 0?kf(hn,W(),Dr,mi):void 0;return qt(m.createJSDocSeeTag(Ar,oa,to),hn)}function q1(hn,Ar,Dr,mi){const ui=Ie(),oa=kf(hn,W(),Dr,mi);return qt(m.createJSDocThrowsTag(Ar,ui,oa),hn)}function gre(hn,Ar,Dr,mi){const ui=W(),oa=hre();let to=t.getTokenFullStart();const xo=kf(hn,to,Dr,mi);xo||(to=t.getTokenFullStart());const Cg=typeof xo!="string"?La(Ki([qt(oa,ui,to)],xo),ui):oa.text+xo;return qt(m.createJSDocAuthorTag(Ar,Cg),hn)}function hre(){const hn=[];let Ar=!1,Dr=t.getToken();for(;Dr!==1&&Dr!==4;){if(Dr===30)Ar=!0;else{if(Dr===60&&!Ar)break;if(Dr===32&&Ar){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),Dr=Tt()}return m.createJSDocText(hn.join(""))}function IE(hn,Ar,Dr,mi){const ui=hk();return qt(m.createJSDocImplementsTag(Ar,ui,kf(hn,W(),Dr,mi)),hn)}function sJ(hn,Ar,Dr,mi){const ui=hk();return qt(m.createJSDocAugmentsTag(Ar,ui,kf(hn,W(),Dr,mi)),hn)}function aJ(hn,Ar,Dr,mi){const ui=Le(!1),oa=Dr!==void 0&&mi!==void 0?kf(hn,W(),Dr,mi):void 0;return qt(m.createJSDocSatisfiesTag(Ar,ui,oa),hn)}function hk(){const hn=ls(19),Ar=W(),Dr=yre();t.setInJSDocType(!0);const mi=ne();t.setInJSDocType(!1);const ui=m.createExpressionWithTypeArguments(Dr,mi),oa=qt(ui,Ar);return hn&&ln(20),oa}function yre(){const hn=W();let Ar=$1();for(;ls(25);){const Dr=$1();Ar=qt(Y(Ar,Dr),hn)}return Ar}function rb(hn,Ar,Dr,mi,ui){return qt(Ar(Dr,kf(hn,W(),mi,ui)),hn)}function vre(hn,Ar,Dr,mi){const ui=Le(!0);return To(),qt(m.createJSDocThisTag(Ar,ui,kf(hn,W(),Dr,mi)),hn)}function bre(hn,Ar,Dr,mi){const ui=Le(!0);return To(),qt(m.createJSDocEnumTag(Ar,ui,kf(hn,W(),Dr,mi)),hn)}function Tre(hn,Ar,Dr,mi){var Nh;let ui=Ie();jp();const oa=tx();To();let to=Lm(Dr),xo;if(!ui||Yn(ui.type)){let md,Vf,X4,FE=!1;for(;(md=cs(()=>G1(Dr)))&&md.kind!==352;)if(FE=!0,md.kind===351)if(Vf){const i_=Pt(p.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);i_&&fa(i_,L6(ve,0,0,p.The_tag_was_first_specified_here));break}else Vf=md;else X4=gn(X4,md);if(FE){const i_=ui&&ui.type.kind===188,lJ=m.createJSDocTypeLiteral(X4,i_);ui=Vf&&Vf.typeExpression&&!Yn(Vf.typeExpression.type)?Vf.typeExpression:qt(lJ,hn),xo=ui.end}}xo=xo||to!==void 0?W():((Nh=oa!=null?oa:ui)!=null?Nh:Ar).end,to||(to=kf(hn,xo,Dr,mi));const Cg=m.createJSDocTypedefTag(Ar,ui,oa,to);return qt(Cg,hn,xo)}function tx(hn){const Ar=t.getTokenStart();if(!z_(F()))return;const Dr=$1();if(ls(25)){const mi=tx(!0),ui=m.createModuleDeclaration(void 0,Dr,mi,hn?8:void 0);return qt(ui,Ar)}return hn&&(Dr.flags|=4096),Dr}function oJ(hn){const Ar=W();let Dr,mi;for(;Dr=cs(()=>ib(4,hn));){if(Dr.kind===352){B(Dr.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}mi=gn(mi,Dr)}return La(mi||[],Ar)}function cJ(hn,Ar){const Dr=oJ(Ar),mi=cs(()=>{if(zp(60)){const ui=ex(Ar);if(ui&&ui.kind===349)return ui}});return qt(m.createJSDocSignature(void 0,Dr,mi),hn)}function OE(hn,Ar,Dr,mi){const ui=tx();To();let oa=Lm(Dr);const to=cJ(hn,Dr);oa||(oa=kf(hn,W(),Dr,mi));const xo=oa!==void 0?W():to.end;return qt(m.createJSDocCallbackTag(Ar,to,ui,oa),hn,xo)}function $n(hn,Ar,Dr,mi){To();let ui=Lm(Dr);const oa=cJ(hn,Dr);ui||(ui=kf(hn,W(),Dr,mi));const to=ui!==void 0?W():oa.end;return qt(m.createJSDocOverloadTag(Ar,oa,ui),hn,to)}function H1(hn,Ar){for(;!we(hn)||!we(Ar);)if(!we(hn)&&!we(Ar)&&hn.right.escapedText===Ar.right.escapedText)hn=hn.left,Ar=Ar.left;else return!1;return hn.escapedText===Ar.escapedText}function G1(hn){return ib(1,hn)}function ib(hn,Ar,Dr){let mi=!0,ui=!1;for(;;)switch(Tt()){case 60:if(mi){const oa=yk(hn,Ar);return oa&&(oa.kind===348||oa.kind===355)&&Dr&&(we(oa.name)||!H1(Dr,oa.name.left))?!1:oa}ui=!1;break;case 4:mi=!0,ui=!1;break;case 42:ui&&(mi=!1),ui=!0;break;case 80:mi=!1;break;case 1:return!1}}function yk(hn,Ar){E.assert(F()===60);const Dr=t.getTokenFullStart();Tt();const mi=$1(),ui=jp();let oa;switch(mi.escapedText){case"type":return hn===1&&b0(Dr,mi);case"prop":case"property":oa=1;break;case"arg":case"argument":case"param":oa=6;break;case"template":return QN(Dr,mi,Ar,ui);default:return!1}return hn&oa?ki(Dr,mi,hn,Ar):!1}function XN(){const hn=W(),Ar=zp(23);Ar&&To();const Dr=$1(p.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let mi;if(Ar&&(To(),ln(64),mi=Er(16777216,fn),ln(24)),!fc(Dr))return qt(m.createTypeParameterDeclaration(void 0,Dr,void 0,mi),hn)}function $4(){const hn=W(),Ar=[];do{To();const Dr=XN();Dr!==void 0&&Ar.push(Dr),jp()}while(zp(28));return La(Ar,hn)}function QN(hn,Ar,Dr,mi){const ui=F()===19?Le():void 0,oa=$4();return qt(m.createJSDocTemplateTag(Ar,ui,oa,kf(hn,W(),Dr,mi)),hn)}function zp(hn){return F()===hn?(Tt(),!0):!1}function xre(){let hn=$1();for(ls(23)&&ln(24);ls(25);){const Ar=$1();ls(23)&&ln(24),hn=ju(hn,Ar)}return hn}function $1(hn){if(!z_(F()))return mc(80,!hn,hn||p.Identifier_expected);zt++;const Ar=t.getTokenStart(),Dr=t.getTokenEnd(),mi=F(),ui=h_(t.getTokenValue()),oa=qt(N(ui,mi),Ar,Dr);return Tt(),oa}}})(Wa=e.JSDocParser||(e.JSDocParser={}))})(m1||(m1={})),(e=>{function t(k,C,N,D){if(D=D||E.shouldAssert(2),m(k,C,N,D),Cce(N))return k;if(k.statements.length===0)return m1.parseSourceFile(k.fileName,C,k.languageVersion,void 0,!0,k.scriptKind,k.setExternalModuleIndicator);const M=k;E.assert(!M.hasBeenIncrementallyParsed),M.hasBeenIncrementallyParsed=!0,m1.fixupParentReferences(M);const V=k.text,U=y(k),Y=f(k,N);m(k,C,Y,D),E.assert(Y.span.start<=N.span.start),E.assert(Zl(Y.span)===Zl(N.span)),E.assert(Zl(zC(Y))===Zl(zC(N)));const j=zC(Y).length-Y.span.length;u(M,Y.span.start,Zl(Y.span),Zl(zC(Y)),j,V,C,D);const ee=m1.parseSourceFile(k.fileName,C,k.languageVersion,U,!0,k.scriptKind,k.setExternalModuleIndicator);return ee.commentDirectives=r(k.commentDirectives,ee.commentDirectives,Y.span.start,Zl(Y.span),j,V,C,D),ee.impliedNodeFormat=k.impliedNodeFormat,ee}e.updateSourceFile=t;function r(k,C,N,D,M,V,U,Y){if(!k)return C;let j,ee=!1;for(const Z of k){const{range:oe,type:_e}=Z;if(oe.endD){R();const X={range:{pos:oe.pos+M,end:oe.end+M},type:_e};j=gn(j,X),Y&&E.assert(V.substring(oe.pos,oe.end)===U.substring(X.range.pos,X.range.end))}}return R(),j;function R(){ee||(ee=!0,j?C&&j.push(...C):j=C)}}function i(k,C,N,D,M,V){C?Y(k):U(k);return;function U(j){let ee="";if(V&&a(j)&&(ee=D.substring(j.pos,j.end)),j._children&&(j._children=void 0),Tm(j,j.pos+N,j.end+N),V&&a(j)&&E.assert(ee===M.substring(j.pos,j.end)),ys(j,U,Y),Qu(j))for(const R of j.jsDoc)U(R);l(j,V)}function Y(j){j._children=void 0,Tm(j,j.pos+N,j.end+N);for(const ee of j)U(ee)}}function a(k){switch(k.kind){case 11:case 9:case 80:return!0}return!1}function o(k,C,N,D,M){E.assert(k.end>=C,"Adjusting an element that was entirely before the change range"),E.assert(k.pos<=N,"Adjusting an element that was entirely after the change range"),E.assert(k.pos<=k.end);const V=Math.min(k.pos,D),U=k.end>=N?k.end+M:Math.min(k.end,D);E.assert(V<=U),k.parent&&(E.assertGreaterThanOrEqual(V,k.parent.pos),E.assertLessThanOrEqual(U,k.parent.end)),Tm(k,V,U)}function l(k,C){if(C){let N=k.pos;const D=M=>{E.assert(M.pos>=N),N=M.end};if(Qu(k))for(const M of k.jsDoc)D(M);ys(k,D),E.assert(N<=k.end)}}function u(k,C,N,D,M,V,U,Y){j(k);return;function j(R){if(E.assert(R.pos<=R.end),R.pos>N){i(R,!1,M,V,U,Y);return}const Z=R.end;if(Z>=C){if(R.intersectsChange=!0,R._children=void 0,o(R,C,N,D,M),ys(R,j,ee),Qu(R))for(const oe of R.jsDoc)j(oe);l(R,Y);return}E.assert(ZN){i(R,!0,M,V,U,Y);return}const Z=R.end;if(Z>=C){R.intersectsChange=!0,R._children=void 0,o(R,C,N,D,M);for(const oe of R)j(oe);return}E.assert(Z0&&U<=1;U++){const Y=g(k,D);E.assert(Y.pos<=D);const j=Y.pos;D=Math.max(0,j-1)}const M=ll(D,Zl(C.span)),V=C.newLength+(C.span.start-D);return mw(M,V)}function g(k,C){let N=k,D;if(ys(k,V),D){const U=M(D);U.pos>N.pos&&(N=U)}return N;function M(U){for(;;){const Y=Bq(U);if(Y)U=Y;else return U}}function V(U){if(!fc(U))if(U.pos<=C){if(U.pos>=N.pos&&(N=U),CC),!0}}function m(k,C,N,D){const M=k.text;if(N&&(E.assert(M.length-N.span.length+N.newLength===C.length),D||E.shouldAssert(3))){const V=M.substr(0,N.span.start),U=C.substr(0,N.span.start);E.assert(V===U);const Y=M.substring(Zl(N.span),M.length),j=C.substring(Zl(zC(N)),C.length);E.assert(Y===j)}}function y(k){let C=k.statements,N=0;E.assert(N=ee.pos&&U=ee.pos&&U{k[k.Value=-1]="Value"})(x||(x={}))})(MF||(MF={})),RF=new Map,Mpe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Rpe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function BF(e){const t=new Map,r=new Map;return mn(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function f4(){return hde||(hde=BF(Kg))}function Bpe(e){return jpe(e,kc)}function jpe(e,t){const r=ia(e.type.keys()),i=(e.deprecatedKeys?r.filter(a=>!e.deprecatedKeys.has(a)):r).map(a=>`'${a}'`).join(", ");return t(p.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function jF(e,t,r){return ude(e,Bv(t||""),r)}function Jpe(e,t="",r){if(t=Bv(t),ts(t,"-"))return;if(e.type==="listOrElement"&&!Xl(t,","))return sT(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return qi(i,a=>sT(e.element,parseInt(a),r));case"string":return qi(i,a=>sT(e.element,a||"",r));case"boolean":case"object":return E.fail(`List of ${e.element.type} is not yet supported.`);default:return qi(i,a=>jF(e.element,a,r))}}function zpe(e){return e.name}function AG(e,t,r,i,a){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return g1(a,i,t.alternateMode.diagnostic,e);const l=DC(e,t.optionDeclarations,zpe);return l?g1(a,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):g1(a,i,t.unknownOptionDiagnostic,r||e)}function NG(e,t,r){const i={};let a;const o=[],l=[];return u(t),{options:i,watchOptions:a,fileNames:o,errors:l};function u(g){let m=0;for(;mjl.readFile(k)));if(!$s(m)){l.push(m);return}const y=[];let x=0;for(;;){for(;x=m.length)break;const k=x;if(m.charCodeAt(k)===34){for(x++;x32;)x++;y.push(m.substring(k,x))}}u(y)}}function Vpe(e,t,r,i,a,o){if(i.isTSConfigOnly){const l=e[t];l==="null"?(a[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(a[i.name]=sT(i,!1,o),t++):(l==="true"&&t++,o.push(kc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(kc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!ts(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(kc(r.optionTypeMismatchDiagnostic,i.name,zF(i))),e[t]!=="null")switch(i.type){case"number":a[i.name]=sT(i,parseInt(e[t]),o),t++;break;case"boolean":const l=e[t];a[i.name]=sT(i,l!=="false",o),(l==="false"||l==="true")&&t++;break;case"string":a[i.name]=sT(i,e[t]||"",o),t++;break;case"list":const u=Jpe(i,e[t],o);a[i.name]=u||[],u&&t++;break;case"listOrElement":E.fail("listOrElement not supported here");break;default:a[i.name]=jF(i,e[t],o),t++;break}else a[i.name]=void 0,t++;return t}function ENe(e,t){return NG(MA,e,t)}function PG(e,t){return IG(f4,e,t)}function IG(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:a}=e();if(r){const o=a.get(t);o!==void 0&&(t=o)}return i.get(t)}function Upe(){return vde||(vde=BF($F))}function wNe(e){const{options:t,watchOptions:r,fileNames:i,errors:a}=NG(Tde,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&a.push(kc(p.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&a.push(kc(p.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&a.push(kc(p.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&a.push(kc(p.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:r,projects:i,errors:a}}function DNe(e,...t){return kc.apply(void 0,arguments).messageText}function kA(e,t,r,i,a,o){const l=EA(e,g=>r.readFile(g));if(!$s(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=SA(e,l),f=r.getCurrentDirectory();return u.path=yo(e,f,Ql(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,DA(u,r,fs(bi(e),f),t,fs(e,f),void 0,o,i,a)}function CA(e,t){const r=EA(e,t);return $s(r)?OG(e,r):{config:{},error:r}}function OG(e,t){const r=SA(e,t);return{config:Xpe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Wpe(e,t){const r=EA(e,t);return $s(r)?SA(e,r):{fileName:e,parseDiagnostics:[r]}}function EA(e,t){let r;try{r=t(e)}catch(i){return kc(p.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?kc(p.Cannot_read_file_0,e):r}function JF(e){return Mv(e,zpe)}function qpe(){return xde||(xde=BF(OA))}function Hpe(){return Sde||(Sde=JF(Kg))}function Gpe(){return kde||(kde=JF(OA))}function $pe(){return Cde||(Cde=JF(XF))}function ANe(){return r$===void 0&&(r$={name:void 0,type:"object",elementOptions:JF([e$,t$,n$,g8,{name:"references",type:"list",element:{name:"references",type:"object"},category:p.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:p.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:p.File_Management,defaultValueDescription:p.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:p.File_Management,defaultValueDescription:p.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},PA])}),r$}function Xpe(e,t,r){var i;const a=(i=e.statements[0])==null?void 0:i.expression;if(a&&a.kind!==210){if(t.push(Qf(e,a,p.The_root_value_of_a_0_file_must_be_an_object,Jl(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),u_(a)){const o=Fr(a.elements,ha);if(o)return wA(e,o,t,!0,r)}return{}}return wA(e,a,t,!0,r)}function Qpe(e,t){var r;return wA(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function wA(e,t,r,i,a){if(!t)return i?{}:void 0;return u(t,a==null?void 0:a.rootOptions);function o(g,m){var y;const x=i?{}:void 0;for(const k of g.properties){if(k.kind!==303){r.push(Qf(e,k,p.Property_assignment_expected));continue}k.questionToken&&r.push(Qf(e,k.questionToken,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),f(k.name)||r.push(Qf(e,k.name,p.String_literal_with_double_quotes_expected));const C=Ow(k.name)?void 0:_6(k.name),N=C&&Li(C),D=N?(y=m==null?void 0:m.elementOptions)==null?void 0:y.get(N):void 0,M=u(k.initializer,D);typeof N<"u"&&(i&&(x[N]=M),a==null||a.onPropertySet(N,M,k,m,D))}return x}function l(g,m){if(!i){g.forEach(y=>u(y,m));return}return Vr(g.map(y=>u(y,m)),y=>y!==void 0)}function u(g,m){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return f(g)||r.push(Qf(e,g,p.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 224:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 210:return o(g,m);case 209:return l(g.elements,m&&m.element)}m?r.push(Qf(e,g,p.Compiler_option_0_requires_a_value_of_type_1,m.name,zF(m))):r.push(Qf(e,g,p.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function f(g){return pa(g)&&z9(g,e)}}function zF(e){return e.type==="listOrElement"?`${zF(e.element)} or Array`:e.type==="list"?"Array":$s(e.type)?e.type:"string"}function Ype(e,t){if(e){if(d8(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Ds(t);if(e.type==="listOrElement")return Ds(t)||Ype(e.element,t);const r=$s(e.type)?e.type:"string";return typeof t===r}return!1}function NNe(e,t,r){var i,a,o;const l=Ql(r.useCaseSensitiveFileNames),u=an(Vr(e.fileNames,(a=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&a.validatedIncludeSpecs?INe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):sy),y=>iw(fs(t,r.getCurrentDirectory()),fs(y,r.getCurrentDirectory()),l)),f=MG(e.options,{configFilePath:fs(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),g=e.watchOptions&&ONe(e.watchOptions);return{compilerOptions:{...FG(f),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:g&&FG(g),references:an(e.projectReferences,y=>({...y,path:y.originalPath?y.originalPath:"",originalPath:void 0})),files:Pn(u)?u:void 0,...(o=e.options.configFile)!=null&&o.configFileSpecs?{include:PNe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0}}function FG(e){return{...ia(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function PNe(e){if(!!Pn(e)){if(Pn(e)!==1)return e;if(e[0]!==YF)return e}}function INe(e,t,r,i){if(!t)return sy;const a=O3(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&c1(a.excludePattern,i.useCaseSensitiveFileNames),l=a.includeFilePattern&&c1(a.includeFilePattern,i.useCaseSensitiveFileNames);return l?o?u=>!(l.test(u)&&!o.test(u)):u=>!l.test(u):o?u=>o.test(u):sy}function Zpe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return Zpe(e.element);default:return e.type}}function LG(e,t){return Au(t,(r,i)=>{if(r===e)return i})}function MG(e,t){return Kpe(e,f4(),t)}function ONe(e){return Kpe(e,qpe())}function Kpe(e,{optionsNameMap:t},r){const i=new Map,a=r&&Ql(r.useCaseSensitiveFileNames);for(const o in e)if(lo(e,o)){if(t.has(o)&&(t.get(o).category===p.Command_line_Options||t.get(o).category===p.Output_Formatting))continue;const l=e[o],u=t.get(o.toLowerCase());if(u){E.assert(u.type!=="listOrElement");const f=Zpe(u);f?u.type==="list"?i.set(o,l.map(g=>LG(g,f))):i.set(o,LG(l,f)):r&&u.isFilePath?i.set(o,iw(r.configFilePath,fs(l,bi(r.configFilePath)),a)):i.set(o,l)}}return i}function FNe(e,t){const r=ede(e);return a();function i(o){return Array(o+1).join(" ")}function a(){const o=[],l=i(2);return qF.forEach(u=>{if(!r.has(u.name))return;const f=r.get(u.name),g=UG(u);f!==g?o.push(`${l}${u.name}: ${f}`):lo(QF,u.name)&&o.push(`${l}${u.name}: ${g}`)}),o.join(t)+t}}function ede(e){const t=uI(e,QF);return MG(t)}function LNe(e,t,r){const i=ede(e);return l();function a(u){return Array(u+1).join(" ")}function o({category:u,name:f,isCommandLineOnly:g}){const m=[p.Command_line_Options,p.Editor_Support,p.Compiler_Diagnostics,p.Backwards_Compatibility,p.Watch_and_Build_Modes,p.Output_Formatting];return!g&&u!==void 0&&(!m.includes(u)||i.has(f))}function l(){const u=new Map;u.set(p.Projects,[]),u.set(p.Language_and_Environment,[]),u.set(p.Modules,[]),u.set(p.JavaScript_Support,[]),u.set(p.Emit,[]),u.set(p.Interop_Constraints,[]),u.set(p.Type_Checking,[]),u.set(p.Completeness,[]);for(const k of Kg)if(o(k)){let C=u.get(k.category);C||u.set(k.category,C=[]),C.push(k)}let f=0,g=0;const m=[];u.forEach((k,C)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${ss(C)} */`});for(const N of k){let D;i.has(N.name)?D=`"${N.name}": ${JSON.stringify(i.get(N.name))}${(g+=1)===i.size?"":","}`:D=`// "${N.name}": ${JSON.stringify(UG(N))},`,m.push({value:D,description:`/* ${N.description&&ss(N.description)||N.name} */`}),f=Math.max(D.length,f)}});const y=a(2),x=[];x.push("{"),x.push(`${y}"compilerOptions": {`),x.push(`${y}${y}/* ${ss(p.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),x.push("");for(const k of m){const{value:C,description:N=""}=k;x.push(C&&`${y}${y}${C}${N&&a(f-C.length+2)+N}`)}if(t.length){x.push(`${y}},`),x.push(`${y}"files": [`);for(let k=0;ktypeof fe=="object","object"),oe=Y(j("files"));if(oe){const fe=Z==="no-prop"||Ds(Z)&&Z.length===0,G=lo(x,"extends");if(oe.length===0&&fe&&!G)if(t){const Ne=l||"tsconfig.json",De=p.The_files_list_in_config_file_0_is_empty,Xe=Bw(t,"files",be=>be.initializer),ve=g1(t,Xe,De,Ne);m.push(ve)}else R(p.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let _e=Y(j("include"));const X=j("exclude");let H=!1,Q=Y(X);if(X==="no-prop"&&x.compilerOptions){const fe=x.compilerOptions.outDir,G=x.compilerOptions.declarationDir;(fe||G)&&(Q=[fe,G].filter(Ne=>!!Ne))}oe===void 0&&_e===void 0&&(_e=[YF],H=!0);let re,ue;return _e&&(re=gde(_e,m,!0,t,"include")),Q&&(ue=gde(Q,m,!1,t,"exclude")),{filesSpecs:oe,includeSpecs:_e,excludeSpecs:Q,validatedFilesSpec:Vr(oe,$s),validatedIncludeSpecs:re,validatedExcludeSpecs:ue,pathPatterns:void 0,isDefaultIncludeSpec:H}}function V(Z){const oe=NA(N,Z,k,r,f);return ide(oe,AA(x),u)&&m.push(rde(N,l)),oe}function U(Z){let oe;const _e=ee("references",X=>typeof X=="object","object");if(Ds(_e))for(const X of _e)typeof X.path!="string"?R(p.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(oe||(oe=[])).push({path:fs(X.path,Z),originalPath:X.path,prepend:X.prepend,circular:X.circular});return oe}function Y(Z){return Ds(Z)?Z:void 0}function j(Z){return ee(Z,$s,"string")}function ee(Z,oe,_e){if(lo(x,Z)&&!d8(x[Z]))if(Ds(x[Z])){const X=x[Z];return!t&&!$i(X,oe)&&m.push(kc(p.Compiler_option_0_requires_a_value_of_type_1,Z,_e)),X}else return R(p.Compiler_option_0_requires_a_value_of_type_1,Z,"Array"),"not-array";return"no-prop"}function R(Z,...oe){t||m.push(kc(Z,...oe))}}function BNe(e){return e.code===p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function rde({includeSpecs:e,excludeSpecs:t},r){return kc(p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function ide(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function AA(e){return!lo(e,"files")&&!lo(e,"references")}function jG(e,t,r,i,a){const o=i.length;return ide(e,a)?i.push(rde(r,t)):eV(i,l=>!BNe(l)),o!==i.length}function jNe(e){return!!e.options}function sde(e,t,r,i,a,o,l,u){var f;i=zl(i);const g=fs(a||"",i);if(o.indexOf(g)>=0)return l.push(kc(p.Circularity_detected_while_resolving_configuration_Colon_0,[...o,g].join(" -> "))),{raw:e||Qpe(t,l)};const m=e?JNe(e,r,i,a,l):zNe(t,r,i,a,l);if((f=m.options)!=null&&f.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){o=o.concat([g]);const x={options:{}};$s(m.extendedConfigPath)?y(x,m.extendedConfigPath):m.extendedConfigPath.forEach(k=>y(x,k)),!m.raw.include&&x.include&&(m.raw.include=x.include),!m.raw.exclude&&x.exclude&&(m.raw.exclude=x.exclude),!m.raw.files&&x.files&&(m.raw.files=x.files),m.raw.compileOnSave===void 0&&x.compileOnSave&&(m.raw.compileOnSave=x.compileOnSave),t&&x.extendedSourceFiles&&(t.extendedSourceFiles=ia(x.extendedSourceFiles.keys())),m.options=B7(x.options,m.options),m.watchOptions=m.watchOptions&&x.watchOptions?B7(x.watchOptions,m.watchOptions):m.watchOptions||x.watchOptions}return m;function y(x,k){const C=VNe(t,k,r,o,l,u,x);if(C&&jNe(C)){const N=C.raw;let D;const M=V=>{N[V]&&(x[V]=an(N[V],U=>Dd(U)?U:Pi(D||(D=MC(bi(k),i,Ql(r.useCaseSensitiveFileNames))),U)))};M("include"),M("exclude"),M("files"),N.compileOnSave!==void 0&&(x.compileOnSave=N.compileOnSave),B7(x.options,C.options),x.watchOptions=x.watchOptions&&C.watchOptions?B7({},x.watchOptions,C.watchOptions):x.watchOptions||C.watchOptions}}}function JNe(e,t,r,i,a){lo(e,"excludes")&&a.push(kc(p.Unknown_option_excludes_Did_you_mean_exclude));const o=lde(e.compilerOptions,r,a,i),l=_de(e.typeAcquisition,r,a,i),u=HNe(e.watchOptions,r,a);e.compileOnSave=UNe(e,r,a);const f=e.extends||e.extends===""?ade(e.extends,t,r,i,a):void 0;return{raw:e,options:o,watchOptions:u,typeAcquisition:l,extendedConfigPath:f}}function ade(e,t,r,i,a,o,l,u){let f;const g=i?tde(i,r):r;if($s(e))f=ode(e,t,g,a,l,u);else if(Ds(e)){f=[];for(let m=0;mV.name===k)&&(g=gn(g,N.name))))}}function ode(e,t,r,i,a,o){if(e=zl(e),Dd(e)||ts(e,"./")||ts(e,"../")){let u=fs(e,r);if(!t.fileExists(u)&&!Tc(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(g1(o,a,p.File_0_not_found,e));return}return u}const l=zde(e,Pi(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(g1(o,a,p.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(g1(o,a,p.File_0_not_found,e))}function VNe(e,t,r,i,a,o,l){var y;const u=r.useCaseSensitiveFileNames?t:Qp(t);let f,g,m;if(o&&(f=o.get(u))?{extendedResult:g,extendedConfig:m}=f:(g=Wpe(t,x=>r.readFile(x)),g.parseDiagnostics.length||(m=sde(void 0,g,r,bi(t),Jl(t),i,a,o)),o&&o.set(u,{extendedResult:g,extendedConfig:m})),e&&(((y=l.extendedSourceFiles)!=null?y:l.extendedSourceFiles=new Set).add(g.fileName),g.extendedSourceFiles))for(const x of g.extendedSourceFiles)l.extendedSourceFiles.add(x);if(g.parseDiagnostics.length){a.push(...g.parseDiagnostics);return}return m}function UNe(e,t,r){if(!lo(e,PA.name))return!1;const i=vS(PA,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function WNe(e,t,r){const i=[];return{options:lde(e,t,i,r),errors:i}}function qNe(e,t,r){const i=[];return{options:_de(e,t,i,r),errors:i}}function cde(e){return e&&Jl(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function lde(e,t,r,i){const a=cde(i);return JG(Hpe(),e,t,a,MA,r),i&&(a.configFilePath=zl(i)),a}function VF(e){return{enable:!!e&&Jl(e)==="jsconfig.json",include:[],exclude:[]}}function _de(e,t,r,i){const a=VF(i);return JG($pe(),e,t,a,KG,r),a}function HNe(e,t,r){return JG(Gpe(),e,t,void 0,RA,r)}function JG(e,t,r,i,a,o){if(!!t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=vS(u,t[l],r,o):o.push(AG(l,a))}return i}}function g1(e,t,r,...i){return e&&t?Qf(e,t,r,...i):kc(r,...i)}function vS(e,t,r,i,a,o,l){if(e.isCommandLineOnly){i.push(g1(l,a==null?void 0:a.name,p.Option_0_can_only_be_specified_on_command_line,e.name));return}if(Ype(e,t)){const u=e.type;if(u==="list"&&Ds(t))return fde(e,t,r,i,a,o,l);if(u==="listOrElement")return Ds(t)?fde(e,t,r,i,a,o,l):vS(e.element,t,r,i,a,o,l);if(!$s(e.type))return ude(e,t,i,o,l);const f=sT(e,t,i,o,l);return d8(f)?f:GNe(e,r,f)}else i.push(g1(l,o,p.Compiler_option_0_requires_a_value_of_type_1,e.name,zF(e)))}function GNe(e,t,r){return e.isFilePath&&(r=fs(r,t),r===""&&(r=".")),r}function sT(e,t,r,i,a){var o;if(d8(t))return;const l=(o=e.extraValidation)==null?void 0:o.call(e,t);if(!l)return t;r.push(g1(a,i,...l))}function ude(e,t,r,i,a){if(d8(t))return;const o=t.toLowerCase(),l=e.type.get(o);if(l!==void 0)return sT(e,l,r,i,a);r.push(jpe(e,(u,...f)=>g1(a,i,u,...f)))}function fde(e,t,r,i,a,o,l){return Vr(an(t,(u,f)=>vS(e.element,u,r,i,a,o==null?void 0:o.elements[f],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function NA(e,t,r,i,a=Ve){t=ba(t);const o=Ql(i.useCaseSensitiveFileNames),l=new Map,u=new Map,f=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,x=F3(r,a),k=ND(r,x);if(g)for(const M of g){const V=fs(M,t);l.set(o(V),V)}let C;if(m&&m.length>0)for(const M of i.readDirectory(t,vp(k),y,m,void 0)){if(Hc(M,".json")){if(!C){const Y=m.filter(ee=>Tc(ee,".json")),j=an(bO(Y,t,"files"),ee=>`^${ee}$`);C=j?j.map(ee=>c1(ee,i.useCaseSensitiveFileNames)):Ve}if(qc(C,Y=>Y.test(M))!==-1){const Y=o(M);!l.has(Y)&&!f.has(Y)&&f.set(Y,M)}continue}if(QNe(M,l,u,x,o))continue;YNe(M,u,x,o);const V=o(M);!l.has(V)&&!u.has(V)&&u.set(V,M)}const N=ia(l.values()),D=ia(u.values());return N.concat(D,ia(f.values()))}function pde(e,t,r,i,a){const{validatedFilesSpec:o,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Pn(l)||!Pn(u))return!1;r=ba(r);const f=Ql(i);if(o){for(const g of o)if(f(fs(g,r))===e)return!1}return mde(e,u,i,a,r)}function dde(e){const t=ts(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Tc(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function UF(e,t,r,i){return mde(e,Vr(t,a=>!dde(a)),r,i)}function mde(e,t,r,i,a){const o=I3(t,Pi(ba(i),a),"exclude"),l=o&&c1(o,r);return l?l.test(e)?!0:!Hk(e)&&l.test(D_(e)):!1}function gde(e,t,r,i,a){return e.filter(l=>{if(!$s(l))return!1;const u=zG(l,r);return u!==void 0&&t.push(o(...u)),u===void 0});function o(l,u){const f=N9(i,a,u);return g1(i,f,l,u)}}function zG(e,t){if(E.assert(typeof e=="string"),t&&Ede.test(e))return[p.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(dde(e))return[p.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function $Ne({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const a=I3(t,r,"exclude"),o=a&&new RegExp(a,i?"":"i"),l={};if(e!==void 0){const u=[];for(const f of e){const g=ba(Pi(r,f));if(o&&o.test(g))continue;const m=XNe(g,i);if(m){const{key:y,flags:x}=m,k=l[y];(k===void 0||kGc(e,l)?l:void 0);if(!o)return!1;for(const l of o){if(Hc(e,l))return!1;const u=a(Sy(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Hc(e,".js")||Hc(e,".jsx")))continue;return!0}}return!1}function YNe(e,t,r,i){const a=mn(r,o=>Gc(e,o)?o:void 0);if(!!a)for(let o=a.length-1;o>=0;o--){const l=a[o];if(Hc(e,l))return;const u=i(Sy(e,l));t.delete(u)}}function ZNe(e){const t={};for(const r in e)if(lo(e,r)){const i=PG(r);i!==void 0&&(t[r]=VG(e[r],i))}return t}function VG(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Ds(e))return VG(e,t.element);case"list":const r=t.element;return Ds(e)?qi(e,i=>VG(i,r)):"";default:return Au(t.type,(i,a)=>{if(i===e)return a})}}function UG(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return UG(e.element);case"object":return{};default:const r=_I(e.type.keys());return r!==void 0?r:E.fail("Expected 'option.type' to have entries.")}}var PA,WG,m8,qG,IA,WF,OA,FA,LA,HG,qF,Kg,GG,$G,XG,HF,GF,QG,YG,ZG,$F,XF,hde,yde,QF,MA,vde,bde,Tde,KG,xde,RA,Sde,kde,Cde,g8,e$,t$,n$,r$,YF,Ede,wde,KNe=Bt({"src/compiler/commandLineParser.ts"(){Os(),PA={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},WG=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),m8=new Map(tV(WG.entries(),([e,t])=>[""+t,e])),qG=[["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"],["es2023","lib.es2023.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.date","lib.es2017.date.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"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.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"],["es2020.number","lib.es2020.number.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.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.es2023.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.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"],["esnext.decorators","lib.esnext.decorators.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],IA=qG.map(e=>e[0]),WF=new Map(qG),OA=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:p.Watch_and_Build_Modes,description:p.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:p.Watch_and_Build_Modes,description:p.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:p.Watch_and_Build_Modes,description:p.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:p.Watch_and_Build_Modes,description:p.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:zG},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:zG},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_files_from_the_watch_mode_s_processing}],FA=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:p.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:p.Output_Formatting,description:p.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:p.Output_Formatting,description:p.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:p.Compiler_Diagnostics,description:p.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:p.FILE_OR_DIRECTORY,category:p.Compiler_Diagnostics,description:p.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:p.DIRECTORY,category:p.Compiler_Diagnostics,description:p.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:p.Projects,description:p.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:p.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:p.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:p.Emit,description:p.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Watch_and_Build_Modes,description:p.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:p.Command_line_Options,isCommandLineOnly:!0,description:p.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:p.Platform_specific}],LA={name:"target",shortName:"t",type:new Map(Object.entries({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,affectsBuildInfo:!0,paramType:p.VERSION,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},HG={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_what_module_code_is_generated,defaultValueDescription:void 0},qF=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:p.Command_line_Options,paramType:p.FILE_OR_DIRECTORY,description:p.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:p.Command_line_Options,description:p.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},LA,HG,{name:"lib",type:"list",element:{name:"lib",type:WF,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.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:p.JavaScript_Support,description:p.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",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:p.JavaScript_Support,description:p.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:WG,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.FILE,showInSimplifiedHelpView:!0,category:p.Emit,description:p.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,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.LOCATION,category:p.Modules,description:p.Specify_the_root_folder_within_your_source_files,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:p.FILE,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:p.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:p.Emit,description:p.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:p.Interop_Constraints,description:p.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:p.Interop_Constraints,description:p.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Type_Checking,description:p.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:p.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Ensure_use_strict_is_always_emitted,defaultValueDescription:p.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:p.Type_Checking,description:p.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsModuleResolution:!0,paramType:p.STRATEGY,category:p.Modules,description:p.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:p.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:p.Modules,description:p.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:p.Modules,description:p.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:p.Modules,description:p.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:p.Modules,description:p.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Interop_Constraints,description:p.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:p.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Interop_Constraints,description:p.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:p.Interop_Constraints,description:p.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:p.Modules,description:p.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:p.Modules,description:p.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:p.Language_and_Environment,description:p.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:p.Language_and_Environment,description:p.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:p.Language_and_Environment,description:p.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:p.Modules,description:p.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:p.Modules,description:p.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:p.Backwards_Compatibility,paramType:p.FILE,transpileOptionValue:void 0,description:p.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:p.Backwards_Compatibility,description:p.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:p.NEWLINE,category:p.Emit,description:p.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Output_Formatting,description:p.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:p.Language_and_Environment,affectsProgramStructure:!0,description:p.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.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,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:p.Editor_Support,description:p.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:p.Projects,description:p.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,category:p.Emit,transpileOptionValue:void 0,description:p.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:p.Interop_Constraints,description:p.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:p.JavaScript_Support,description:p.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,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:p.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:p.Backwards_Compatibility,description:p.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:p.Specify_a_list_of_language_service_plugins_to_include,category:p.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:p.Control_what_method_is_used_to_detect_module_format_JS_files,category:p.Language_and_Environment,defaultValueDescription:p.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Kg=[...FA,...qF],GG=Kg.filter(e=>!!e.affectsSemanticDiagnostics),$G=Kg.filter(e=>!!e.affectsEmit),XG=Kg.filter(e=>!!e.affectsDeclarationPath),HF=Kg.filter(e=>!!e.affectsModuleResolution),GF=Kg.filter(e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics),QG=Kg.filter(e=>!!e.affectsProgramStructure),YG=Kg.filter(e=>lo(e,"transpileOptionValue")),ZG=[{name:"verbose",shortName:"v",category:p.Command_line_Options,description:p.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:p.Command_line_Options,description:p.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:p.Command_line_Options,description:p.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:p.Command_line_Options,description:p.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],$F=[...FA,...ZG],XF=[{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}],yde={diagnostic:p.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Upe},QF={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},MA={alternateMode:yde,getOptionsNameMap:f4,optionDeclarations:Kg,unknownOptionDiagnostic:p.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:p.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Compiler_option_0_expects_an_argument},bde={diagnostic:p.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:f4},Tde={alternateMode:bde,getOptionsNameMap:Upe,optionDeclarations:$F,unknownOptionDiagnostic:p.Unknown_build_option_0,unknownDidYouMeanDiagnostic:p.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Build_option_0_requires_a_value_of_type_1},KG={optionDeclarations:XF,unknownOptionDiagnostic:p.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:p.Unknown_type_acquisition_option_0_Did_you_mean_1},RA={getOptionsNameMap:qpe,optionDeclarations:OA,unknownOptionDiagnostic:p.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:p.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Watch_option_0_requires_a_value_of_type_1},g8={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:p.File_Management,disallowNullOrUndefined:!0},e$={name:"compilerOptions",type:"object",elementOptions:Hpe(),extraKeyDiagnostics:MA},t$={name:"watchOptions",type:"object",elementOptions:Gpe(),extraKeyDiagnostics:RA},n$={name:"typeAcquisition",type:"object",elementOptions:$pe(),extraKeyDiagnostics:KG},YF="**/*",Ede=/(^|\/)\*\*\/?$/,wde=/^[^*?]*(?=\/[^/]*[*?])/}});function Gi(e){e.trace(zq.apply(void 0,arguments))}function e0(e,t){return!!e.traceResolution&&t.trace!==void 0}function aT(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Wo.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function ZF(e){return aT(void 0,e)}function Dde(e){if(e)return E.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function BA(e){const t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function ePe(e){const t=[];return e&1&&t.push(...UD),e&2&&t.push(...W6),e&4&&t.push(...VD),e&8&&t.push(".json"),t}function i$(e){if(!!e)return E.assert(SO(e.extension)),{fileName:e.path,packageId:e.packageId}}function Ade(e,t,r,i,a,o,l,u){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Al(e)){const{resolvedFileName:f,originalPath:g}=Ide(t.path,l.host,l.traceEnabled);g&&(t={...t,path:f,originalPath:g})}return Nde(t,r,i,a,o,l.resultFromCache,u)}function Nde(e,t,r,i,a,o,l){return o?(o.failedLookupLocations=p4(o.failedLookupLocations,r),o.affectingLocations=p4(o.affectingLocations,i),o.resolutionDiagnostics=p4(o.resolutionDiagnostics,a),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:h8(r),affectingLocations:h8(i),resolutionDiagnostics:h8(a),node10Result:l}}function h8(e){return e.length?e:void 0}function p4(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function Pde(e,t,r,i){if(!lo(e,t)){i.traceEnabled&&Gi(i.host,p.package_json_does_not_have_a_0_field,t);return}const a=e[t];if(typeof a!==r||a===null){i.traceEnabled&&Gi(i.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,a===null?"null":typeof a);return}return a}function KF(e,t,r,i){const a=Pde(e,t,"string",i);if(a===void 0)return;if(!a){i.traceEnabled&&Gi(i.host,p.package_json_had_a_falsy_0_field,t);return}const o=ba(Pi(r,a));return i.traceEnabled&&Gi(i.host,p.package_json_has_0_field_1_that_references_2,t,a,o),o}function tPe(e,t,r){return KF(e,"typings",t,r)||KF(e,"types",t,r)}function nPe(e,t,r){return KF(e,"tsconfig",t,r)}function rPe(e,t,r){return KF(e,"main",t,r)}function iPe(e,t){const r=Pde(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&Gi(t.host,p.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function sPe(e,t){const r=iPe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)lo(r,l)&&!V7.tryParse(l)&&Gi(t.host,p.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=eL(r);if(!i){t.traceEnabled&&Gi(t.host,p.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,CC);return}const{version:a,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&Gi(t.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${a}']`,"object",typeof o);return}return i}function eL(e){v$||(v$=new Ed(F0));for(const t in e){if(!lo(e,t))continue;const r=V7.tryParse(t);if(r!==void 0&&r.test(v$))return{version:t,paths:e[t]}}}function jA(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=bi(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return aPe(r)}function aPe(e){let t;return Jg(ba(e),r=>{const i=Pi(r,ime);(t!=null?t:t=[]).push(i)}),t}function oPe(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Cb(e,t,!i)===0}function Ide(e,t,r){const i=TPe(e,t,r),a=oPe(e,i,t);return{resolvedFileName:a?e:i,originalPath:a?void 0:e}}function Ode(e,t,r){const i=Tc(e,"/node_modules/@types")||Tc(e,"/node_modules/@types/")?Kde(t,r):t;return Pi(e,i)}function s$(e,t,r,i,a,o,l){E.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const u=e0(r,i);a&&(r=a.commandLine.options);const f=t?bi(t):void 0;let g=f?o==null?void 0:o.getFromDirectoryCache(e,l,f,a):void 0;if(!g&&f&&!Al(e)&&(g=o==null?void 0:o.getFromNonRelativeNameCache(e,l,f,a)),g)return u&&(Gi(i,p.Resolving_type_reference_directive_0_containing_file_1,e,t),a&&Gi(i,p.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName),Gi(i,p.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,f),Y(g)),g;const m=jA(r,i);u&&(t===void 0?m===void 0?Gi(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Gi(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?Gi(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Gi(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),a&&Gi(i,p.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName));const y=[],x=[];let k=a$(r);l===99&&(Cc(r)===3||Cc(r)===99)&&(k|=32);const C=k&8?bS(r,!!(k&32)):[],N=[],D={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:x,packageJsonInfoCache:o,features:k,conditions:C,requestContainingDirectory:f,reportDiagnostic:R=>void N.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let M=j(),V=!0;M||(M=ee(),V=!1);let U;if(M){const{fileName:R,packageId:Z}=M;let oe=R,_e;r.preserveSymlinks||({resolvedFileName:oe,originalPath:_e}=Ide(R,i,u)),U={primary:V,resolvedFileName:oe,originalPath:_e,packageId:Z,isExternalLibraryImport:TS(R)}}return g={resolvedTypeReferenceDirective:U,failedLookupLocations:h8(y),affectingLocations:h8(x),resolutionDiagnostics:h8(N)},f&&(o==null||o.getOrCreateCacheForDirectory(f,a).set(e,l,g),Al(e)||o==null||o.getOrCreateCacheForNonRelativeName(e,l,a).set(f,g)),u&&Y(g),g;function Y(R){var Z;(Z=R.resolvedTypeReferenceDirective)!=null&&Z.resolvedFileName?R.resolvedTypeReferenceDirective.packageId?Gi(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,R.resolvedTypeReferenceDirective.resolvedFileName,i1(R.resolvedTypeReferenceDirective.packageId),R.resolvedTypeReferenceDirective.primary):Gi(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,R.resolvedTypeReferenceDirective.resolvedFileName,R.resolvedTypeReferenceDirective.primary):Gi(i,p.Type_reference_directive_0_was_not_resolved,e)}function j(){if(m&&m.length)return u&&Gi(i,p.Resolving_with_primary_search_path_0,m.join(", ")),_c(m,R=>{const Z=Ode(R,e,D),oe=Zp(R,i);if(!oe&&u&&Gi(i,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,R),r.typeRoots){const _e=xS(4,Z,!oe,D);if(_e){const X=JA(_e.path),H=X?v2(X,!1,D):void 0;return i$(aT(H,_e))}}return i$(d$(4,Z,!oe,D))});u&&Gi(i,p.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ee(){const R=t&&bi(t);if(R!==void 0){let Z;if(!r.typeRoots||!Tc(t,f5))if(u&&Gi(i,p.Looking_up_in_node_modules_folder_initial_location_0,R),Al(e)){const{path:oe}=Vde(R,e);Z=iL(4,oe,!1,D,!0)}else{const oe=Xde(4,e,R,D,void 0,void 0);Z=oe&&oe.value}else u&&Gi(i,p.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return i$(Z)}else u&&Gi(i,p.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function a$(e){let t=0;switch(Cc(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function bS(e,t){const r=t||Cc(e)===100?["import"]:["require"];return e.noDtsResolution||r.push("types"),Cc(e)!==100&&r.push("node"),Ki(r,e.customConditions)}function cPe(e,t,r,i,a){const o=sL(a==null?void 0:a.getPackageJsonInfoCache(),i,r);return Jg(t,l=>{if(Jl(l)!=="node_modules"){const u=Pi(l,"node_modules"),f=Pi(u,e);return v2(f,!1,o)}})}function tL(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=jA(e,t);if(i){for(const a of i)if(t.directoryExists(a))for(const o of t.getDirectories(a)){const l=ba(o),u=Pi(a,l,"package.json");if(!(t.fileExists(u)&&S3(u,t).typings===null)){const g=Jl(l);g.charCodeAt(0)!==46&&r.push(g)}}}}return r}function o$(e){var t;if(e===null||typeof e!="object")return""+e;if(Ds(e))return`[${(t=e.map(i=>o$(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)lo(e,i)&&(r+=`${i}: ${o$(e[i])}`);return r+"}"}function c$(e,t){return t.map(r=>o$(gO(e,r))).join("|")+`|${e.pathsBasePath}`}function l$(e){const t=new Map,r=new Map,i=new Map;let a=new Map;return e&&t.set(e,a),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:l,update:u,clear:g};function o(y){return y?f(y.commandLine.options,!1):a}function l(y){return y?f(y.commandLine.options,!0):a}function u(y){e!==y&&(e?a=f(y,!0):t.set(y,a),e=y)}function f(y,x){let k=t.get(y);if(k)return k;const C=m(y);if(k=i.get(C),!k){if(e){const N=m(e);N===C?k=a:i.has(N)||i.set(N,a)}x&&(k!=null||(k=new Map)),k&&i.set(C,k)}return k&&t.set(y,k),k}function g(){const y=e&&r.get(e);a.clear(),t.clear(),r.clear(),i.clear(),e&&(y&&r.set(e,y),t.set(e,a))}function m(y){let x=r.get(y);return x||r.set(y,x=c$(y,HF)),x}}function lPe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:a,clear:o,entries:l,getInternalMap:u};function i(f){return r==null?void 0:r.get(yo(f,e,t))}function a(f,g){(r||(r=new Map)).set(yo(f,e,t),g)}function o(){r=void 0}function l(){const f=r==null?void 0:r.entries();return f?ia(f):[]}function u(){return r}}function Fde(e,t,r,i){const a=e.getOrCreateMapOfCacheRedirects(t);let o=a.get(r);return o||(o=i(),a.set(r,o)),o}function _Pe(e,t,r){const i=l$(r);return{getFromDirectoryCache:u,getOrCreateCacheForDirectory:l,clear:a,update:o};function a(){i.clear()}function o(f){i.update(f)}function l(f,g){const m=yo(f,e,t);return Fde(i,g,m,()=>oT())}function u(f,g,m,y){var x,k;const C=yo(m,e,t);return(k=(x=i.getMapOfCacheRedirects(y))==null?void 0:x.get(C))==null?void 0:k.get(f,g)}}function y8(e,t){return t===void 0?e:`${t}|${e}`}function oT(){const e=new Map,t=new Map,r={get(a,o){return e.get(i(a,o))},set(a,o,l){return e.set(i(a,o),l),r},delete(a,o){return e.delete(i(a,o)),r},has(a,o){return e.has(i(a,o))},forEach(a){return e.forEach((o,l)=>{const[u,f]=t.get(l);return a(o,u,f)})},size(){return e.size}};return r;function i(a,o){const l=y8(a,o);return t.set(l,[a,o]),l}}function _$(e,t,r,i){E.assert(t.length===r.length);const a=oT();for(let o=0;oi,clearAllExceptPackageJsonInfoCache:f};function u(){f(),i.clear()}function f(){o.clear(),l.clear()}function g(m){o.update(m),l.update(m)}}function d4(e,t,r,i){const a=Lde(e,t,r,i,uPe);return a.getOrCreateCacheForModuleName=(o,l,u)=>a.getOrCreateCacheForNonRelativeName(o,l,u),a}function nL(e,t,r,i){return Lde(e,t,r,i,fPe)}function u$(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function rL(e,t,r,i,a){return v8(e,t,u$(r),i,a)}function dPe(e,t,r,i){const a=bi(t);return r.getFromDirectoryCache(e,i,a,void 0)}function v8(e,t,r,i,a,o,l){var u,f,g;const m=e0(r,i);o&&(r=o.commandLine.options),m&&(Gi(i,p.Resolving_module_0_from_1,e,t),o&&Gi(i,p.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=bi(t);let x=a==null?void 0:a.getFromDirectoryCache(e,l,y,o);if(x)m&&Gi(i,p.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let k=r.moduleResolution;if(k===void 0){switch(Ul(r)){case 1:k=2;break;case 100:k=3;break;case 199:k=99;break;default:k=1;break}m&&Gi(i,p.Module_resolution_kind_is_not_specified_using_0,qk[k])}else m&&Gi(i,p.Explicitly_specified_module_resolution_kind_Colon_0,qk[k]);switch((u=wd)==null||u.logStartResolveModule(e),k){case 3:x=yPe(e,t,r,i,a,o,l);break;case 99:x=vPe(e,t,r,i,a,o,l);break;case 2:x=Jde(e,t,r,i,a,o);break;case 1:x=tme(e,t,r,i,a,o);break;case 100:x=jde(e,t,r,i,a,o);break;default:return E.fail(`Unexpected moduleResolution: ${k}`)}x&&x.resolvedModule&&((f=wd)==null||f.logInfoEvent(`Module "${e}" resolved to "${x.resolvedModule.resolvedFileName}"`)),(g=wd)==null||g.logStopResolveModule(x&&x.resolvedModule?""+x.resolvedModule.resolvedFileName:"null"),a==null||a.getOrCreateCacheForDirectory(y,o).set(e,l,x),Al(e)||a==null||a.getOrCreateCacheForNonRelativeName(e,l,o).set(y,x)}return m&&(x.resolvedModule?x.resolvedModule.packageId?Gi(i,p.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,x.resolvedModule.resolvedFileName,i1(x.resolvedModule.packageId)):Gi(i,p.Module_name_0_was_successfully_resolved_to_1,e,x.resolvedModule.resolvedFileName):Gi(i,p.Module_name_0_was_not_resolved,e)),x}function Mde(e,t,r,i,a){const o=mPe(e,t,i,a);return o?o.value:Al(t)?gPe(e,t,r,i,a):hPe(e,t,i,a)}function mPe(e,t,r,i){var a;const{baseUrl:o,paths:l,configFile:u}=i.compilerOptions;if(l&&!$u(t)){i.traceEnabled&&(o&&Gi(i.host,p.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),Gi(i.host,p.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const f=eO(i.compilerOptions,i.host),g=u!=null&&u.configFileSpecs?(a=u.configFileSpecs).pathPatterns||(a.pathPatterns=xO(l)):void 0;return y$(e,t,f,l,g,r,!1,i)}}function gPe(e,t,r,i,a){if(!a.compilerOptions.rootDirs)return;a.traceEnabled&&Gi(a.host,p.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=ba(Pi(r,t));let l,u;for(const f of a.compilerOptions.rootDirs){let g=ba(f);Tc(g,Wo)||(g+=Wo);const m=ts(o,g)&&(u===void 0||u.lengthvoid M.push(ee),isConfigLookup:u,candidateIsFromPackageJsonField:!1};k&&Yx(Cc(i))&&Gi(a,p.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",D.map(ee=>`'${ee}'`).join(", "));let U;if(Cc(i)===2){const ee=l&5,R=l&-6;U=ee&&j(ee,V)||R&&j(R,V)||void 0}else U=j(l,V);let Y;if(((g=U==null?void 0:U.value)==null?void 0:g.isExternalLibraryImport)&&!u&&l&5&&e&8&&!Al(t)&&!m$(5,U.value.resolved.extension)&&D.indexOf("import")>-1){h1(V,p.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ee={...V,features:V.features&-9,reportDiagnostic:_o},R=j(l&5,ee);(m=R==null?void 0:R.value)!=null&&m.isExternalLibraryImport&&(Y=R.value.resolved.path)}return Ade(t,(y=U==null?void 0:U.value)==null?void 0:y.resolved,(x=U==null?void 0:U.value)==null?void 0:x.isExternalLibraryImport,C,N,M,V,Y);function j(ee,R){const oe=Mde(ee,t,r,(_e,X,H,Q)=>iL(_e,X,H,Q,!0),R);if(oe)return rf({resolved:oe,isExternalLibraryImport:TS(oe.path)});if(Al(t)){const{path:_e,parts:X}=Vde(r,t),H=iL(ee,_e,!1,R,!0);return H&&rf({resolved:H,isExternalLibraryImport:gs(X,"node_modules")})}else{let _e;if(e&2&&ts(t,"#")&&(_e=wPe(ee,t,r,R,o,f)),!_e&&e&4&&(_e=EPe(ee,t,r,R,o,f)),!_e){if(t.indexOf(":")>-1){k&&Gi(a,p.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,BA(ee));return}k&&Gi(a,p.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,BA(ee)),_e=Xde(ee,t,r,R,o,f)}return ee&4&&(_e!=null||(_e=nme(t,R))),_e&&{value:_e.value&&{resolved:_e.value,isExternalLibraryImport:!0}}}}}function Vde(e,t){const r=Pi(e,t),i=Dl(r),a=Bo(i);return{path:a==="."||a===".."?D_(ba(r)):ba(r),parts:i}}function TPe(e,t,r){if(!t.realpath)return e;const i=ba(t.realpath(e));return r&&Gi(t,p.Resolving_real_path_for_0_result_1,e,i),E.assert(t.fileExists(i),`${e} linked to nonexistent file ${i}`),i}function iL(e,t,r,i,a){if(i.traceEnabled&&Gi(i.host,p.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,BA(e)),!z0(t)){if(!r){const l=bi(t);Zp(l,i.host)||(i.traceEnabled&&Gi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const o=xS(e,t,r,i);if(o){const l=a?JA(o.path):void 0,u=l?v2(l,!1,i):void 0;return aT(u,o)}}if(r||Zp(t,i.host)||(i.traceEnabled&&Gi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return d$(e,t,r,i,a)}function TS(e){return Xl(e,sh)}function JA(e,t){const r=ba(e),i=r.lastIndexOf(sh);if(i===-1)return;const a=i+sh.length;let o=Ude(r,a,t);return r.charCodeAt(a)===64&&(o=Ude(r,o,t)),r.slice(0,o)}function Ude(e,t,r){const i=e.indexOf(Wo,t+1);return i===-1?r?e.length:t:i}function f$(e,t,r,i){return ZF(xS(e,t,r,i))}function xS(e,t,r,i){const a=Wde(e,t,r,i);if(a)return a;if(!(i.features&32)){const o=qde(t,e,"",r,i);if(o)return o}}function Wde(e,t,r,i){if(Jl(t).indexOf(".")===-1)return;let o=mu(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));const l=t.substring(o.length);return i.traceEnabled&&Gi(i.host,p.File_name_0_has_a_1_extension_stripping_it,t,l),qde(o,e,l,r,i)}function p$(e,t,r,i){return e&1&&Gc(t,UD)||e&4&&Gc(t,VD)?zA(t,r,i)!==void 0?{path:t,ext:iO(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Hc(t,".json")?zA(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:Wde(e,t,r,i)}function qde(e,t,r,i,a){if(!i){const l=bi(e);l&&(i=!Zp(l,a.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&o(".mts",r===".mts"||r===".d.mts")||t&4&&o(".d.mts",r===".mts"||r===".d.mts")||t&2&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&o(".cts",r===".cts"||r===".d.cts")||t&4&&o(".d.cts",r===".cts"||r===".d.cts")||t&2&&o(".cjs")||void 0;case".json":return t&4&&o(".d.json.ts")||t&8&&o(".json")||void 0;case".tsx":case".jsx":return t&1&&(o(".tsx",r===".tsx")||o(".ts",r===".tsx"))||t&4&&o(".d.ts",r===".tsx")||t&2&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(o(".ts",r===".ts"||r===".d.ts")||o(".tsx",r===".ts"||r===".d.ts"))||t&4&&o(".d.ts",r===".ts"||r===".d.ts")||t&2&&(o(".js")||o(".jsx"))||a.isConfigLookup&&o(".json")||void 0;default:return t&4&&!su(e+r)&&o(`.d${r}.ts`)||void 0}function o(l,u){const f=zA(e+l,i,a);return f===void 0?void 0:{path:f,ext:l,resolvedUsingTsExtension:!a.candidateIsFromPackageJsonField&&u}}}function zA(e,t,r){var l;var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return Hde(e,t,r);const a=(l=ng(e))!=null?l:"",o=a?ID(e,a):e;return mn(r.compilerOptions.moduleSuffixes,u=>Hde(o+u+a,t,r))}function Hde(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&Gi(r.host,p.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&Gi(r.host,p.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function d$(e,t,r,i,a=!0){const o=a?v2(t,r,i):void 0,l=o&&o.contents.packageJsonContent,u=o&&VA(o,i);return aT(o,oL(e,t,r,i,l,u))}function xPe(e,t,r,i,a){if(!a&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o;const l=5|(a?2:0),u=a$(t),f=sL(i==null?void 0:i.getPackageJsonInfoCache(),r,t);f.conditions=bS(t),f.requestContainingDirectory=e.packageDirectory;const g=oL(l,e.packageDirectory,!1,f,e.contents.packageJsonContent,VA(e,f));if(o=gn(o,g==null?void 0:g.path),u&8&&e.contents.packageJsonContent.exports){const m=zk([bS(t,!0),bS(t,!1)],kd);for(const y of m){const x={...f,failedLookupLocations:[],conditions:y,host:r},k=SPe(e,e.contents.packageJsonContent.exports,x,l);if(k)for(const C of k)o=Rg(o,C.path)}}return e.contents.resolvedEntrypoints=o||!1}function SPe(e,t,r,i){let a;if(Ds(t))for(const l of t)o(l);else if(typeof t=="object"&&t!==null&&cL(t))for(const l in t)o(t[l]);else o(t);return a;function o(l){var u,f;if(typeof l=="string"&&ts(l,"./"))if(l.indexOf("*")>=0&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,ePe(i),void 0,[rw(l.replace("*","**/*"),yD(l))]).forEach(g=>{a=Rg(a,{path:g,ext:tw(g),resolvedUsingTsExtension:void 0})})}else{const g=Dl(l).slice(2);if(g.indexOf("..")>=0||g.indexOf(".")>=0||g.indexOf("node_modules")>=0)return!1;const m=Pi(e.packageDirectory,l),y=fs(m,(f=(u=r.host).getCurrentDirectory)==null?void 0:f.call(u)),x=p$(i,y,!1,r);if(x)return a=Rg(a,x,(k,C)=>k.path===C.path),!0}else if(Array.isArray(l)){for(const g of l)if(o(g))return!0}else if(typeof l=="object"&&l!==null)return mn(Bg(l),g=>{if(g==="default"||gs(r.conditions,g)||UA(r.conditions,g))return o(l[g]),!0})}}function sL(e,t,r){return{host:t,compilerOptions:r,traceEnabled:e0(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Ve,requestContainingDirectory:void 0,reportDiagnostic:_o,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function aL(e,t){const r=Dl(e);for(r.pop();r.length>0;){const i=v2(Gh(r),!1,t);if(i)return i;r.pop()}}function VA(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=sPe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function v2(e,t,r){var i,a,o,l,u,f,g,m;const{host:y,traceEnabled:x}=r,k=Pi(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(k);return}const C=(a=r.packageJsonInfoCache)==null?void 0:a.getPackageJsonInfo(k);if(C!==void 0){if(typeof C!="boolean")return x&&Gi(y,p.File_0_exists_according_to_earlier_cached_lookups,k),(o=r.affectingLocations)==null||o.push(k),C.packageDirectory===e?C:{packageDirectory:e,contents:C.contents};C&&x&&Gi(y,p.File_0_does_not_exist_according_to_earlier_cached_lookups,k),(l=r.failedLookupLocations)==null||l.push(k);return}const N=Zp(e,y);if(N&&y.fileExists(k)){const D=S3(k,y);x&&Gi(y,p.Found_package_json_at_0,k);const M={packageDirectory:e,contents:{packageJsonContent:D,versionPaths:void 0,resolvedEntrypoints:void 0}};return(u=r.packageJsonInfoCache)==null||u.setPackageJsonInfo(k,M),(f=r.affectingLocations)==null||f.push(k),M}else N&&x&&Gi(y,p.File_0_does_not_exist,k),(g=r.packageJsonInfoCache)==null||g.setPackageJsonInfo(k,N),(m=r.failedLookupLocations)==null||m.push(k)}function oL(e,t,r,i,a,o){let l;a&&(i.isConfigLookup?l=nPe(a,t,i):l=e&4&&tPe(a,t,i)||e&7&&rPe(a,t,i)||void 0);const u=(x,k,C,N)=>{const D=zA(k,C,N);if(D){const j=kPe(x,D);if(j)return ZF(j);N.traceEnabled&&Gi(N.host,p.File_0_has_an_unsupported_extension_so_skipping_it,D)}const M=x===4?5:x,V=N.features,U=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,(a==null?void 0:a.type)!=="module"&&(N.features&=-33);const Y=iL(M,k,C,N,!1);return N.features=V,N.candidateIsFromPackageJsonField=U,Y},f=l?!Zp(bi(l),i.host):void 0,g=r||!Zp(t,i.host),m=Pi(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!l||Xh(t,l))){const x=um(t,l||m,!1);i.traceEnabled&&Gi(i.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,F0,x);const k=y$(e,x,t,o.paths,void 0,u,f||g,i);if(k)return Dde(k.value)}const y=l&&Dde(u(e,l,f,i));if(y)return y;if(!(i.features&32))return xS(e,m,g,i)}function kPe(e,t,r){const i=ng(t);return i!==void 0&&m$(e,i)?{path:t,ext:i,resolvedUsingTsExtension:r}:void 0}function m$(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function g$(e){let t=e.indexOf(Wo);return e[0]==="@"&&(t=e.indexOf(Wo,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function cL(e){return $i(Bg(e),t=>ts(t,"."))}function CPe(e){return!dt(Bg(e),t=>ts(t,"."))}function EPe(e,t,r,i,a,o){var l,u;const f=fs(Pi(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=aL(f,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;const m=Dl(t),y=Dl(g.contents.packageJsonContent.name);if(!$i(y,(D,M)=>m[M]===D))return;const x=m.slice(y.length),k=Pn(x)?`.${Wo}${x.join(Wo)}`:".";if(P3(i.compilerOptions)&&!TS(r))return lL(g,e,k,i,a,o);const C=e&5,N=e&-6;return lL(g,C,k,i,a,o)||lL(g,N,k,i,a,o)}function lL(e,t,r,i,a,o){if(!!e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&CPe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:lo(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return $de(t,i,a,o,r,e,!1)(l,"",!1,".")}else if(cL(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&Gi(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),rf(void 0);const l=Gde(t,i,a,o,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&Gi(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),rf(void 0)}}function wPe(e,t,r,i,a,o){var l,u;if(t==="#"||ts(t,"#/"))return i.traceEnabled&&Gi(i.host,p.Invalid_import_specifier_0_has_no_possible_resolutions,t),rf(void 0);const f=fs(Pi(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=aL(f,i);if(!g)return i.traceEnabled&&Gi(i.host,p.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,f),rf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&Gi(i.host,p.package_json_scope_0_has_no_imports_defined,g.packageDirectory),rf(void 0);const m=Gde(e,i,a,o,t,g.contents.packageJsonContent.imports,g,!0);return m||(i.traceEnabled&&Gi(i.host,p.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),rf(void 0))}function h$(e,t){const r=e.indexOf("*"),i=t.indexOf("*"),a=r===-1?e.length:r+1,o=i===-1?t.length:i+1;return a>o?-1:o>a||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function Gde(e,t,r,i,a,o,l,u){const f=$de(e,t,r,i,a,l,u);if(!Tc(a,Wo)&&a.indexOf("*")===-1&&lo(o,a)){const y=o[a];return f(y,"",!1,a)}const g=EC(Vr(Bg(o),y=>y.indexOf("*")!==-1||Tc(y,"/")),h$);for(const y of g)if(t.features&16&&m(y,a)){const x=o[y],k=y.indexOf("*"),C=a.substring(y.substring(0,k).length,a.length-(y.length-1-k));return f(x,C,!0,y)}else if(Tc(y,"*")&&ts(a,y.substring(0,y.length-1))){const x=o[y],k=a.substring(y.length-1);return f(x,k,!0,y)}else if(ts(a,y)){const x=o[y],k=a.substring(y.length);return f(x,k,!1,y)}function m(y,x){if(Tc(y,"*"))return!1;const k=y.indexOf("*");return k===-1?!1:ts(x,y.substring(0,k))&&Tc(x,y.substring(k+1))}}function $de(e,t,r,i,a,o,l){return u;function u(f,g,m,y){if(typeof f=="string"){if(!m&&g.length>0&&!Tc(f,"/"))return t.traceEnabled&&Gi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);if(!ts(f,"./")){if(l&&!ts(f,"../")&&!ts(f,"/")&&!Dd(f)){const j=m?f.replace(/\*/g,g):f+g;h1(t,p.Using_0_subpath_1_with_target_2,"imports",y,j),h1(t,p.Resolving_module_0_from_1,j,o.packageDirectory+"/");const ee=b8(t.features,j,o.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i);return rf(ee.resolvedModule?{path:ee.resolvedModule.resolvedFileName,extension:ee.resolvedModule.extension,packageId:ee.resolvedModule.packageId,originalPath:ee.resolvedModule.originalPath,resolvedUsingTsExtension:ee.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Gi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0)}const D=($u(f)?Dl(f).slice(1):Dl(f)).slice(1);if(D.indexOf("..")>=0||D.indexOf(".")>=0||D.indexOf("node_modules")>=0)return t.traceEnabled&&Gi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);const M=Pi(o.packageDirectory,f),V=Dl(g);if(V.indexOf("..")>=0||V.indexOf(".")>=0||V.indexOf("node_modules")>=0)return t.traceEnabled&&Gi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);t.traceEnabled&&Gi(t.host,p.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,m?f.replace(/\*/g,g):f+g);const U=x(m?M.replace(/\*/g,g):M+g),Y=C(U,g,Pi(o.packageDirectory,"package.json"),l);return Y||rf(aT(o,p$(e,U,!1,t)))}else if(typeof f=="object"&&f!==null)if(Array.isArray(f)){if(!Pn(f))return t.traceEnabled&&Gi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);for(const N of f){const D=u(N,g,m,y);if(D)return D}}else{h1(t,p.Entering_conditional_exports);for(const N of Bg(f))if(N==="default"||t.conditions.indexOf(N)>=0||UA(t.conditions,N)){h1(t,p.Matched_0_condition_1,l?"imports":"exports",N);const D=f[N],M=u(D,g,m,y);if(M)return h1(t,p.Resolved_under_condition_0,N),h1(t,p.Exiting_conditional_exports),M;h1(t,p.Failed_to_resolve_under_condition_0,N)}else h1(t,p.Saw_non_matching_condition_0,N);h1(t,p.Exiting_conditional_exports);return}else if(f===null)return t.traceEnabled&&Gi(t.host,p.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,a),rf(void 0);return t.traceEnabled&&Gi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);function x(N){var D,M;return N===void 0?N:fs(N,(M=(D=t.host).getCurrentDirectory)==null?void 0:M.call(D))}function k(N,D){return D_(Pi(N,D))}function C(N,D,M,V){var U,Y,j,ee;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&N.indexOf("/node_modules/")===-1&&(t.compilerOptions.configFile?Xh(o.packageDirectory,x(t.compilerOptions.configFile.fileName),!fL(t)):!0)){const Z=X0({useCaseSensitiveFileNames:()=>fL(t)}),oe=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const _e=x(n5(t.compilerOptions,()=>[],((Y=(U=t.host).getCurrentDirectory)==null?void 0:Y.call(U))||"",Z));oe.push(_e)}else if(t.requestContainingDirectory){const _e=x(Pi(t.requestContainingDirectory,"index.ts")),X=x(n5(t.compilerOptions,()=>[_e,x(M)],((ee=(j=t.host).getCurrentDirectory)==null?void 0:ee.call(j))||"",Z));oe.push(X);let H=D_(X);for(;H&&H.length>1;){const Q=Dl(H);Q.pop();const re=Gh(Q);oe.unshift(re),H=D_(re)}}oe.length>1&&t.reportDiagnostic(kc(V?p.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:p.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,D===""?".":D,M));for(const _e of oe){const X=R(_e);for(const H of X)if(Xh(H,N,!fL(t))){const Q=N.slice(H.length+1),re=Pi(_e,Q),ue=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const fe of ue)if(Hc(re,fe)){const G=x_e(re);for(const Ne of G){if(!m$(e,Ne))continue;const De=rw(re,Ne,fe,!fL(t));if(t.host.fileExists(De))return rf(aT(o,p$(e,De,!1,t)))}}}}}return;function R(Z){var oe,_e;const X=t.compilerOptions.configFile?((_e=(oe=t.host).getCurrentDirectory)==null?void 0:_e.call(oe))||"":Z,H=[];return t.compilerOptions.declarationDir&&H.push(x(k(X,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(x(k(X,t.compilerOptions.outDir))),H}}}}function UA(e,t){if(e.indexOf("types")===-1||!ts(t,"types@"))return!1;const r=V7.tryParse(t.substring(6));return r?r.test(F0):!1}function Xde(e,t,r,i,a,o){return Qde(e,t,r,i,!1,a,o)}function DPe(e,t,r){return Qde(4,e,t,r,!0,void 0,void 0)}function Qde(e,t,r,i,a,o,l){const u=i.features===0?void 0:i.features&32?99:1,f=e&5,g=e&-6;if(f){h1(i,p.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,BA(f));const y=m(f);if(y)return y}if(g&&!a)return h1(i,p.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,BA(g)),m(g);function m(y){return Jg(zl(r),x=>{if(Jl(x)!=="node_modules"){const k=eme(o,t,u,x,l,i);return k||rf(Yde(y,t,x,i,a,o,l))}})}}function Yde(e,t,r,i,a,o,l){const u=Pi(r,"node_modules"),f=Zp(u,i.host);if(!f&&i.traceEnabled&&Gi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!a){const g=Zde(e,t,u,f,i,o,l);if(g)return g}if(e&4){const g=Pi(u,"@types");let m=f;return f&&!Zp(g,i.host)&&(i.traceEnabled&&Gi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),m=!1),Zde(4,Kde(t,i),g,m,i,o,l)}}function Zde(e,t,r,i,a,o,l){var M;var u,f;const g=ba(Pi(r,t)),{packageName:m,rest:y}=g$(t),x=Pi(r,m);let k,C=v2(g,!i,a);if(y!==""&&C&&(!(a.features&8)||!lo((M=(u=k=v2(x,!i,a))==null?void 0:u.contents.packageJsonContent)!=null?M:Ve,"exports"))){const V=xS(e,g,!i,a);if(V)return ZF(V);const U=oL(e,g,!i,a,C.contents.packageJsonContent,VA(C,a));return aT(C,U)}const N=(V,U,Y,j)=>{let ee=(y||!(j.features&32))&&xS(V,U,Y,j)||oL(V,U,Y,j,C&&C.contents.packageJsonContent,C&&VA(C,j));return!ee&&C&&(C.contents.packageJsonContent.exports===void 0||C.contents.packageJsonContent.exports===null)&&j.features&32&&(ee=xS(V,Pi(U,"index.js"),Y,j)),aT(C,ee)};if(y!==""&&(C=k!=null?k:v2(x,!i,a)),C&&C.contents.packageJsonContent.exports&&a.features&8)return(f=lL(C,e,Pi(".",y),a,o,l))==null?void 0:f.value;const D=y!==""&&C?VA(C,a):void 0;if(D){a.traceEnabled&&Gi(a.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,D.version,F0,y);const V=i&&Zp(x,a.host),U=y$(e,y,x,D.paths,void 0,N,!V,a);if(U)return U.value}return N(e,g,!i,a)}function y$(e,t,r,i,a,o,l,u){a||(a=xO(i));const f=Zq(a,t);if(f){const g=$s(f)?void 0:voe(f,t),m=$s(f)?f:yoe(f);return u.traceEnabled&&Gi(u.host,p.Module_name_0_matched_pattern_1,t,m),{value:mn(i[m],x=>{const k=g?x.replace("*",g):x,C=ba(Pi(r,k));u.traceEnabled&&Gi(u.host,p.Trying_substitution_0_candidate_module_location_Colon_1,x,k);const N=ng(x);if(N!==void 0){const D=zA(C,l,u);if(D!==void 0)return ZF({path:D,ext:N,resolvedUsingTsExtension:void 0})}return o(e,C,l||!Zp(bi(C),u.host),u)})}}}function Kde(e,t){const r=T8(e);return t.traceEnabled&&r!==e&&Gi(t.host,p.Scoped_package_detected_looking_in_0,r),r}function _L(e){return`@types/${T8(e)}`}function T8(e){if(ts(e,"@")){const t=e.replace(Wo,pL);if(t!==e)return t.slice(1)}return e}function WA(e){const t=NC(e,"@types/");return t!==e?uL(t):e}function uL(e){return Xl(e,pL)?"@"+e.replace(pL,Wo):e}function eme(e,t,r,i,a,o){const l=e&&e.getFromNonRelativeNameCache(t,r,i,a);if(l)return o.traceEnabled&&Gi(o.host,p.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),o.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function tme(e,t,r,i,a,o){const l=e0(r,i),u=[],f=[],g=bi(t),m=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:a,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:C=>void m.push(C),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},x=k(5)||k(2|(r.resolveJsonModule?8:0));return Ade(e,x&&x.value,(x==null?void 0:x.value)&&TS(x.value.path),u,f,m,y);function k(C){const N=Mde(C,e,g,f$,y);if(N)return{value:N};if(Al(e)){const D=ba(Pi(g,e));return rf(f$(C,D,!1,y))}else{const D=Jg(g,M=>{const V=eme(a,e,void 0,M,o,y);if(V)return V;const U=ba(Pi(M,e));return rf(f$(C,U,!1,y))});if(D)return D;if(C&5){let M=DPe(e,g,y);return C&4&&(M!=null||(M=nme(e,y))),M}}}}function nme(e,t){if(!!t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=Ode(r,e,t),a=Zp(r,t.host);!a&&t.traceEnabled&&Gi(t.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const o=xS(4,i,!a,t);if(o){const u=JA(o.path),f=u?v2(u,!1,t):void 0;return rf(aT(f,o))}const l=d$(4,i,!a,t);if(l)return rf(l)}}function m4(e,t){return!!e.allowImportingTsExtensions||t&&su(t)}function rme(e,t,r,i,a,o){const l=e0(r,i);l&&Gi(i,p.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,a);const u=[],f=[],g=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:x=>void g.push(x),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},y=Yde(4,e,a,m,!1,void 0,void 0);return Nde(y,!0,u,f,g,m.resultFromCache)}function rf(e){return e!==void 0?{value:e}:void 0}function h1(e,t,...r){e.traceEnabled&&Gi(e.host,t,...r)}function fL(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var v$,ime,b$,sh,pL,APe=Bt({"src/compiler/moduleNameResolver.ts"(){Os(),ime=Pi("node_modules","@types"),b$=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(b$||{}),sh="/node_modules/",pL="__"}});function t0(e,t){return e.body&&!e.body.parent&&(Ta(e.body,e),l1(e.body,!1)),e.body?T$(e.body,t):1}function T$(e,t=new Map){const r=Ba(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=NPe(e,t);return t.set(r,i),i}function NPe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(Zv(e))return 2;break;case 272:case 271:if(!Mr(e,1))return 0;break;case 278:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(const a of r.exportClause.elements){const o=PPe(a,t);if(o>i&&(i=o),i===1)return i}return i}break;case 268:{let i=0;return ys(e,a=>{const o=T$(a,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:E.assertNever(o)}}),i}case 267:return t0(e,t);case 80:if(e.flags&4096)return 0}return 1}function PPe(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(hs(i)||jd(i)||Ri(i)){const a=i.statements;let o;for(const l of a)if(gw(l,r)){l.parent||(Ta(l,i),l1(l,!1));const u=T$(l,t);if((o===void 0||u>o)&&(o=u),o===1)return o;l.kind===271&&(o=1)}if(o!==void 0)return o}i=i.parent}return 1}function cT(e){return E.attachFlowNodeDebugInfo(e),e}function sme(e,t){var r,i;ho("beforeBind"),(r=wd)==null||r.logStartBindFile(""+e.fileName),ome(e,t),(i=wd)==null||i.logStopBindFile(),ho("afterBind"),Gu("Bind","beforeBind","afterBind")}function IPe(){var e,t,r,i,a,o,l,u,f,g,m,y,x,k,C,N,D,M,V,U,Y,j,ee=!1,R=0,Z,oe,_e={flags:1},X={flags:1},H=z();return re;function Q(J,Be,...At){return Qf(Bn(J)||e,J,Be,...At)}function re(J,Be){var At,Jn;e=J,t=Be,r=Oa(t),j=ue(e,Be),oe=new Set,R=0,Z=Ol.getSymbolConstructor(),E.attachFlowNodeDebugInfo(_e),E.attachFlowNodeDebugInfo(X),e.locals||((At=ci)==null||At.push(ci.Phase.Bind,"bindSourceFile",{path:e.path},!0),Re(e),(Jn=ci)==null||Jn.pop(),e.symbolCount=R,e.classifiableNames=oe,Ic()),e=void 0,t=void 0,r=void 0,i=void 0,a=void 0,o=void 0,l=void 0,u=void 0,f=void 0,g=!1,m=void 0,y=void 0,x=void 0,k=void 0,C=void 0,N=void 0,D=void 0,V=void 0,U=!1,ee=!1,Y=0}function ue(J,Be){return np(Be,"alwaysStrict")&&!J.isDeclarationFile?!0:!!J.externalModuleIndicator}function fe(J,Be){return R++,new Z(J,Be)}function G(J,Be,At){J.flags|=At,Be.symbol=J,J.declarations=Rg(J.declarations,Be),At&1955&&!J.exports&&(J.exports=Us()),At&6240&&!J.members&&(J.members=Us()),J.constEnumOnlyModule&&J.flags&304&&(J.constEnumOnlyModule=!1),At&111551&&Zw(J,Be)}function Ne(J){if(J.kind===277)return J.isExportEquals?"export=":"default";const Be=os(J);if(Be){if(__(J)){const At=kp(Be);return Pd(J)?"__global":`"${At}"`}if(Be.kind===167){const At=Be.expression;if(If(At))return qo(At.text);if(Q9(At))return sa(At.operator)+At.operand.text;E.fail("Only computed properties with literal names have declaration names")}if(Ei(Be)){const At=Pl(J);if(!At)return;const Jn=At.symbol;return _D(Jn,Be.escapedText)}return Vd(Be)?z6(Be):Od(Be)?f3(Be):void 0}switch(J.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(pc(J)===2)return"export=";E.fail("Unknown binary declaration kind");break;case 324:return x6(J)?"__new":"__call";case 169:return E.assert(J.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${E.formatSyntaxKind(J.parent.kind)}, expected JSDocFunctionType`),"arg"+J.parent.parameters.indexOf(J)}}function De(J){return A_(J)?no(J.name):Li(E.checkDefined(Ne(J)))}function Xe(J,Be,At,Jn,vs,di,rs){E.assert(rs||!$0(At));const bs=Mr(At,1024)||p_(At)&&At.name.escapedText==="default",Lo=rs?"__computed":bs&&Be?"default":Ne(At);let aa;if(Lo===void 0)aa=fe(0,"__missing");else if(aa=J.get(Lo),Jn&2885600&&oe.add(Lo),!aa)J.set(Lo,aa=fe(0,Lo)),di&&(aa.isReplaceableByMethod=!0);else{if(di&&!aa.isReplaceableByMethod)return aa;if(aa.flags&vs){if(aa.isReplaceableByMethod)J.set(Lo,aa=fe(0,Lo));else if(!(Jn&3&&aa.flags&67108864)){A_(At)&&Ta(At.name,At);let xl=aa.flags&2?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,cf=!0;(aa.flags&384||Jn&384)&&(xl=p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,cf=!1);let y_=!1;Pn(aa.declarations)&&(bs||aa.declarations&&aa.declarations.length&&At.kind===277&&!At.isExportEquals)&&(xl=p.A_module_cannot_have_multiple_default_exports,cf=!1,y_=!0);const ld=[];wp(At)&&fc(At.type)&&Mr(At,1)&&aa.flags&2887656&&ld.push(Q(At,p.Did_you_mean_0,`export type { ${Li(At.name.escapedText)} }`));const Hd=os(At)||At;mn(aa.declarations,(Ee,je)=>{const Ye=os(Ee)||Ee,Rt=cf?Q(Ye,xl,De(Ee)):Q(Ye,xl);e.bindDiagnostics.push(y_?fa(Rt,Q(Hd,je===0?p.Another_export_default_is_here:p.and_here)):Rt),y_&&ld.push(Q(Ye,p.The_first_export_default_is_here))});const Fp=cf?Q(Hd,xl,De(At)):Q(Hd,xl);e.bindDiagnostics.push(fa(Fp,...ld)),aa=fe(0,Lo)}}}return G(aa,At,Jn),aa.parent?E.assert(aa.parent===Be,"Existing symbol parent should match new one"):aa.parent=Be,aa}function ve(J,Be,At){const Jn=!!(Wv(J)&1)||be(J);if(Be&2097152)return J.kind===281||J.kind===271&&Jn?Xe(a.symbol.exports,a.symbol,J,Be,At):(E.assertNode(a,fm),Xe(a.locals,void 0,J,Be,At));if(Zf(J)&&E.assert(Zn(J)),!__(J)&&(Jn||a.flags&128)){if(!fm(a)||!a.locals||Mr(J,1024)&&!Ne(J))return Xe(a.symbol.exports,a.symbol,J,Be,At);const vs=Be&111551?1048576:0,di=Xe(a.locals,void 0,J,vs,At);return di.exportSymbol=Xe(a.symbol.exports,a.symbol,J,Be,At),J.localSymbol=di,di}else return E.assertNode(a,fm),Xe(a.locals,void 0,J,Be,At)}function be(J){if(J.parent&&Nc(J)&&(J=J.parent),!Zf(J))return!1;if(!_A(J)&&!!J.fullName)return!0;const Be=os(J);return Be?!!(xD(Be.parent)&&Qt(Be.parent)||l_(Be.parent)&&Wv(Be.parent)&1):!1}function xe(J,Be){const At=a,Jn=o,vs=l;if(Be&1?(J.kind!==219&&(o=a),a=l=J,Be&32&&(a.locals=Us(),ea(a))):Be&2&&(l=J,Be&32&&(l.locals=void 0)),Be&4){const di=m,rs=y,bs=x,Lo=k,aa=D,xl=V,cf=U,y_=Be&16&&!Mr(J,512)&&!J.asteriskToken&&!!Mb(J)||J.kind===175;y_||(m=cT({flags:2}),Be&144&&(m.node=J)),k=y_||J.kind===176||Zn(J)&&(J.kind===262||J.kind===218)?bt():void 0,D=void 0,y=void 0,x=void 0,V=void 0,U=!1,Pe(J),J.flags&=-5633,!(m.flags&1)&&Be&8&&Xf(J.body)&&(J.flags|=512,U&&(J.flags|=1024),J.endFlowNode=m),J.kind===312&&(J.flags|=Y,J.endFlowNode=m),k&&(Kn(k,m),m=pt(k),(J.kind===176||J.kind===175||Zn(J)&&(J.kind===262||J.kind===218))&&(J.returnFlowNode=m)),y_||(m=di),y=rs,x=bs,k=Lo,D=aa,V=xl,U=cf}else Be&64?(g=!1,Pe(J),E.assertNotNode(J,we),J.flags=g?J.flags|256:J.flags&-257):Pe(J);a=At,o=Jn,l=vs}function rt(J){ct(J,Be=>Be.kind===262?Re(Be):void 0),ct(J,Be=>Be.kind!==262?Re(Be):void 0)}function ct(J,Be=Re){J!==void 0&&mn(J,Be)}function pe(J){ys(J,Re,ct)}function Pe(J){const Be=ee;if(ee=!1,qd(J)){pe(J),xt(J),ee=Be;return}switch(J.kind>=243&&J.kind<=259&&!t.allowUnreachableCode&&(J.flowNode=m),J.kind){case 247:Gt(J);break;case 246:xn(J);break;case 248:Gr(J);break;case 249:case 250:Er(J);break;case 245:ze(J);break;case 253:case 257:ut(J);break;case 252:case 251:Ut(J);break;case 258:ae(J);break;case 255:Me(J);break;case 269:ke(J);break;case 296:ft(J);break;case 244:K(J);break;case 256:Ae(J);break;case 224:Ln(J);break;case 225:Pt(J);break;case 226:if(Y0(J)){ee=Be,hi(J);return}H(J);break;case 220:B(J);break;case 227:le(J);break;case 260:ge(J);break;case 211:case 212:jn(J);break;case 213:ai(J);break;case 235:ar(J);break;case 353:case 345:case 347:We(J);break;case 312:{rt(J.statements),Re(J.endOfFileToken);break}case 241:case 268:rt(J.statements);break;case 208:F(J);break;case 169:ye(J);break;case 210:case 209:case 303:case 230:ee=Be;default:pe(J);break}xt(J),ee=Be}function Ge(J){switch(J.kind){case 80:case 81:case 110:case 211:case 212:return mt(J);case 213:return Je(J);case 217:case 235:return Ge(J.expression);case 226:return zt(J);case 224:return J.operator===54&&Ge(J.operand);case 221:return Ge(J.expression)}return!1}function tt(J){return T3(J)||(kr(J)||fS(J)||hu(J))&&tt(J.expression)||rr(J)&&J.operatorToken.kind===28&&tt(J.right)||No(J)&&(If(J.argumentExpression)||Sc(J.argumentExpression))&&tt(J.expression)||Kl(J)&&tt(J.left)}function mt(J){return tt(J)||c_(J)&&mt(J.expression)}function Je(J){if(J.arguments){for(const Be of J.arguments)if(mt(Be))return!0}return!!(J.expression.kind===211&&mt(J.expression.expression))}function at(J,Be){return Z6(J)&&It(J.expression)&&Qa(Be)}function zt(J){switch(J.operatorToken.kind){case 64:case 76:case 77:case 78:return mt(J.left);case 35:case 36:case 37:case 38:return It(J.left)||It(J.right)||at(J.right,J.left)||at(J.left,J.right);case 104:return It(J.left);case 103:return Ge(J.right);case 28:return Ge(J.right)}return!1}function It(J){switch(J.kind){case 217:return It(J.expression);case 226:switch(J.operatorToken.kind){case 64:return It(J.left);case 28:return It(J.right)}}return mt(J)}function bt(){return cT({flags:4,antecedents:void 0})}function _r(){return cT({flags:8,antecedents:void 0})}function Tn(J,Be,At){return cT({flags:1024,target:J,antecedents:Be,antecedent:At})}function jt(J){J.flags|=J.flags&2048?4096:2048}function Kn(J,Be){!(Be.flags&1)&&!gs(J.antecedents,Be)&&((J.antecedents||(J.antecedents=[])).push(Be),jt(Be))}function br(J,Be,At){return Be.flags&1?Be:At?(At.kind===112&&J&64||At.kind===97&&J&32)&&!t9(At)&&!eW(At.parent)?_e:Ge(At)?(jt(Be),cT({flags:J,antecedent:Be,node:At})):Be:J&32?Be:_e}function fi(J,Be,At,Jn){return jt(J),cT({flags:128,antecedent:J,switchStatement:Be,clauseStart:At,clauseEnd:Jn})}function Si(J,Be,At){jt(Be);const Jn=cT({flags:J,antecedent:Be,node:At});return D&&Kn(D,Jn),Jn}function Nr(J,Be){return jt(J),cT({flags:512,antecedent:J,node:Be})}function pt(J){const Be=J.antecedents;return Be?Be.length===1?Be[0]:J:_e}function ur(J){const Be=J.parent;switch(Be.kind){case 245:case 247:case 246:return Be.expression===J;case 248:case 227:return Be.condition===J}return!1}function yn(J){for(;;)if(J.kind===217)J=J.expression;else if(J.kind===224&&J.operator===54)J=J.operand;else return bD(J)}function Ct(J){return Aq(uo(J))}function cn(J){for(;hu(J.parent)||Dy(J.parent)&&J.parent.operator===54;)J=J.parent;return!ur(J)&&!yn(J.parent)&&!(c_(J.parent)&&J.parent.expression===J)}function In(J,Be,At,Jn){const vs=C,di=N;C=At,N=Jn,J(Be),C=vs,N=di}function xr(J,Be,At){In(Re,J,Be,At),(!J||!Ct(J)&&!yn(J)&&!(c_(J)&&qC(J)))&&(Kn(Be,br(32,m,J)),Kn(At,br(64,m,J)))}function wi(J,Be,At){const Jn=y,vs=x;y=Be,x=At,Re(J),y=Jn,x=vs}function Zt(J,Be){let At=V;for(;At&&J.parent.kind===256;)At.continueTarget=Be,At=At.next,J=J.parent;return Be}function Gt(J){const Be=Zt(J,_r()),At=bt(),Jn=bt();Kn(Be,m),m=Be,xr(J.expression,At,Jn),m=pt(At),wi(J.statement,Jn,Be),Kn(Be,m),m=pt(Jn)}function xn(J){const Be=_r(),At=Zt(J,bt()),Jn=bt();Kn(Be,m),m=Be,wi(J.statement,Jn,At),Kn(At,m),m=pt(At),xr(J.expression,Be,Jn),m=pt(Jn)}function Gr(J){const Be=Zt(J,_r()),At=bt(),Jn=bt();Re(J.initializer),Kn(Be,m),m=Be,xr(J.condition,At,Jn),m=pt(At),wi(J.statement,Jn,Be),Re(J.incrementor),Kn(Be,m),m=pt(Jn)}function Er(J){const Be=Zt(J,_r()),At=bt();Re(J.expression),Kn(Be,m),m=Be,J.kind===250&&Re(J.awaitModifier),Kn(At,m),Re(J.initializer),J.initializer.kind!==261&&_t(J.initializer),wi(J.statement,At,Be),Kn(Be,m),m=pt(At)}function ze(J){const Be=bt(),At=bt(),Jn=bt();xr(J.expression,Be,At),m=pt(Be),Re(J.thenStatement),Kn(Jn,m),m=pt(At),Re(J.elseStatement),Kn(Jn,m),m=pt(Jn)}function ut(J){Re(J.expression),J.kind===253&&(U=!0,k&&Kn(k,m)),m=_e}function kt(J){for(let Be=V;Be;Be=Be.next)if(Be.name===J)return Be}function st(J,Be,At){const Jn=J.kind===252?Be:At;Jn&&(Kn(Jn,m),m=_e)}function Ut(J){if(Re(J.label),J.label){const Be=kt(J.label.escapedText);Be&&(Be.referenced=!0,st(J,Be.breakTarget,Be.continueTarget))}else st(J,y,x)}function ae(J){const Be=k,At=D,Jn=bt(),vs=bt();let di=bt();if(J.finallyBlock&&(k=vs),Kn(di,m),D=di,Re(J.tryBlock),Kn(Jn,m),J.catchClause&&(m=pt(di),di=bt(),Kn(di,m),D=di,Re(J.catchClause),Kn(Jn,m)),k=Be,D=At,J.finallyBlock){const rs=bt();rs.antecedents=Ki(Ki(Jn.antecedents,di.antecedents),vs.antecedents),m=rs,Re(J.finallyBlock),m.flags&1?m=_e:(k&&vs.antecedents&&Kn(k,Tn(rs,vs.antecedents,m)),D&&di.antecedents&&Kn(D,Tn(rs,di.antecedents,m)),m=Jn.antecedents?Tn(rs,Jn.antecedents,m):_e)}else m=pt(Jn)}function Me(J){const Be=bt();Re(J.expression);const At=y,Jn=M;y=Be,M=m,Re(J.caseBlock),Kn(Be,m);const vs=mn(J.caseBlock.clauses,di=>di.kind===297);J.possiblyExhaustive=!vs&&!Be.antecedents,vs||Kn(Be,fi(M,J,0,0)),y=At,M=Jn,m=pt(Be)}function ke(J){const Be=J.clauses,At=Ge(J.parent.expression);let Jn=_e;for(let vs=0;vsYc(At)||dc(At))}function Fs(J){J.flags&33554432&&!cs(J)?J.flags|=128:J.flags&=-129}function pi(J){if(Fs(J),__(J))if(Mr(J,1)&&bo(J,p.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),PW(J))ln(J);else{let Be;if(J.name.kind===11){const{text:Jn}=J.name;Be=M6(Jn),Be===void 0&&bo(J.name,p.Pattern_0_can_have_at_most_one_Asterisk_character,Jn)}const At=ps(J,512,110735);e.patternAmbientModules=gn(e.patternAmbientModules,Be&&!$s(Be)?{pattern:Be,symbol:At}:void 0)}else{const Be=ln(J);if(Be!==0){const{symbol:At}=J;At.constEnumOnlyModule=!(At.flags&304)&&Be===2&&At.constEnumOnlyModule!==!1}}}function ln(J){const Be=t0(J),At=Be!==0;return ps(J,At?512:1024,At?110735:0),Be}function tc(J){const Be=fe(131072,Ne(J));G(Be,J,131072);const At=fe(2048,"__type");G(At,J,2048),At.members=Us(),At.members.set(Be.escapedName,Be)}function Ui(J){return ro(J,4096,"__object")}function Cs(J){return ro(J,4096,"__jsxAttributes")}function Ea(J,Be,At){return ps(J,Be,At)}function ro(J,Be,At){const Jn=fe(Be,At);return Be&106508&&(Jn.parent=a.symbol),G(Jn,J,Be),Jn}function Ja(J,Be,At){switch(l.kind){case 267:ve(J,Be,At);break;case 312:if(Yu(a)){ve(J,Be,At);break}default:E.assertNode(l,fm),l.locals||(l.locals=Us(),ea(l)),Xe(l.locals,void 0,J,Be,At)}}function Ic(){if(!f)return;const J=a,Be=u,At=l,Jn=i,vs=m;for(const di of f){const rs=di.parent.parent;a=BW(rs)||e,l=mm(rs)||e,m=cT({flags:2}),i=di,Re(di.typeExpression);const bs=os(di);if((_A(di)||!di.fullName)&&bs&&xD(bs.parent)){const Lo=Qt(bs.parent);if(Lo){gt(e.symbol,bs.parent,Lo,!!On(bs,xl=>kr(xl)&&xl.name.escapedText==="prototype"),!1);const aa=a;switch(Qw(bs.parent)){case 1:case 2:Yu(e)?a=e:a=void 0;break;case 4:a=bs.parent.expression;break;case 3:a=bs.parent.expression.name;break;case 5:a=b2(e,bs.parent.expression)?e:kr(bs.parent.expression)?bs.parent.expression.name:bs.parent.expression;break;case 0:return E.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}a&&ve(di,524288,788968),a=aa}}else _A(di)||!di.fullName||di.fullName.kind===80?(i=di.parent,Ja(di,524288,788968)):Re(di.fullName)}a=J,u=Be,l=At,i=Jn,m=vs}function ls(J){if(!e.parseDiagnostics.length&&!(J.flags&33554432)&&!(J.flags&16777216)&&!p_e(J)){const Be=uy(J);if(Be===void 0)return;j&&Be>=119&&Be<=127?e.bindDiagnostics.push(Q(J,Oi(J),no(J))):Be===135?zc(e)&&O9(J)?e.bindDiagnostics.push(Q(J,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,no(J))):J.flags&65536&&e.bindDiagnostics.push(Q(J,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,no(J))):Be===127&&J.flags&16384&&e.bindDiagnostics.push(Q(J,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,no(J)))}}function Oi(J){return Pl(J)?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:p.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Vc(J){J.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(Q(J,p.constructor_is_a_reserved_word,no(J))))}function Jo(J){j&&pu(J.left)&&Q0(J.operatorToken.kind)&&Ls(J,J.left)}function L_(J){j&&J.variableDeclaration&&Ls(J,J.variableDeclaration.name)}function _l(J){if(j&&J.expression.kind===80){const Be=Yv(e,J.expression);e.bindDiagnostics.push(vl(e,Be.start,Be.length,p.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Rf(J){return we(J)&&(J.escapedText==="eval"||J.escapedText==="arguments")}function Ls(J,Be){if(Be&&Be.kind===80){const At=Be;if(Rf(At)){const Jn=Yv(e,Be);e.bindDiagnostics.push(vl(e,Jn.start,Jn.length,mo(J),lr(At)))}}}function mo(J){return Pl(J)?p.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?p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:p.Invalid_use_of_0_in_strict_mode}function ja(J){j&&Ls(J,J.name)}function La(J){return Pl(J)?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function qt(J){if(r<2&&l.kind!==312&&l.kind!==267&&!t6(l)){const Be=Yv(e,J);e.bindDiagnostics.push(vl(e,Be.start,Be.length,La(J)))}}function mc(J){j&&Ls(J,J.operand)}function h_(J){j&&(J.operator===46||J.operator===47)&&Ls(J,J.operand)}function M_(J){j&&bo(J,p.with_statements_are_not_allowed_in_strict_mode)}function W_(J){j&&Oa(t)>=2&&(lle(J.statement)||ic(J.statement))&&bo(J.label,p.A_label_is_not_allowed_here)}function bo(J,Be,...At){const Jn=gm(e,J.pos);e.bindDiagnostics.push(vl(e,Jn.start,Jn.length,Be,...At))}function Go(J,Be,At){A(J,Be,Be,At)}function A(J,Be,At,Jn){Ce(J,{pos:Fb(Be,e),end:At.end},Jn)}function Ce(J,Be,At){const Jn=vl(e,Be.pos,Be.end-Be.pos,At);J?e.bindDiagnostics.push(Jn):e.bindSuggestionDiagnostics=gn(e.bindSuggestionDiagnostics,{...Jn,category:2})}function Re(J){if(!J)return;Ta(J,i),ci&&(J.tracingPath=e.path);const Be=j;if(wn(J),J.kind>165){const At=i;i=J;const Jn=x$(J);Jn===0?Pe(J):xe(J,Jn),i=At}else{const At=i;J.kind===1&&(i=J),xt(J),i=At}j=Be}function xt(J){if(Qu(J))if(Zn(J))for(const Be of J.jsDoc)Re(Be);else for(const Be of J.jsDoc)Ta(Be,J),l1(Be,!1)}function vn(J){if(!j)for(const Be of J){if(!xp(Be))return;if(Pr(Be)){j=!0;return}}}function Pr(J){const Be=Xv(e,J.expression);return Be==='"use strict"'||Be==="'use strict'"}function wn(J){switch(J.kind){case 80:if(J.flags&4096){let rs=J.parent;for(;rs&&!Zf(rs);)rs=rs.parent;Ja(rs,524288,788968);break}case 110:return m&&(nt(J)||i.kind===304)&&(J.flowNode=m),ls(J);case 166:m&&B9(J)&&(J.flowNode=m);break;case 236:case 108:J.flowNode=m;break;case 81:return Vc(J);case 211:case 212:const Be=J;m&&tt(Be)&&(Be.flowNode=m),n_e(Be)&&bn(Be),Zn(Be)&&e.commonJsModuleIndicator&&Zm(Be)&&!qA(l,"module")&&Xe(e.locals,void 0,Be.expression,134217729,111550);break;case 226:switch(pc(J)){case 1:q_(J);break;case 2:Uc(J);break;case 3:Ua(J.left,J);break;case 6:Bi(J);break;case 4:bu(J);break;case 5:const rs=J.left.expression;if(Zn(J)&&we(rs)){const bs=qA(l,rs.escapedText);if(F9(bs==null?void 0:bs.valueDeclaration)){bu(J);break}}se(J);break;case 0:break;default:E.fail("Unknown binary expression special property assignment kind")}return Jo(J);case 299:return L_(J);case 220:return _l(J);case 225:return mc(J);case 224:return h_(J);case 254:return M_(J);case 256:return W_(J);case 197:g=!0;return;case 182:break;case 168:return cd(J);case 169:return Fc(J);case 260:return Zc(J);case 208:return J.flowNode=m,Zc(J);case 172:case 171:return mr(J);case 303:case 304:return sl(J,4,0);case 306:return sl(J,8,900095);case 179:case 180:case 181:return ps(J,131072,0);case 174:case 173:return sl(J,8192|(J.questionToken?16777216:0),Sp(J)?0:103359);case 262:return il(J);case 176:return ps(J,16384,0);case 177:return sl(J,32768,46015);case 178:return sl(J,65536,78783);case 184:case 324:case 330:case 185:return tc(J);case 187:case 329:case 200:return oi(J);case 339:return Tt(J);case 210:return Ui(J);case 218:case 219:return Ml(J);case 213:switch(pc(J)){case 7:return oc(J);case 8:return nc(J);case 9:return Es(J);case 0:break;default:return E.fail("Unknown call expression assignment declaration kind")}Zn(J)&&va(J);break;case 231:case 263:return j=!0,Fo(J);case 264:return Ja(J,64,788872);case 265:return Ja(J,524288,788968);case 266:return Ro(J);case 267:return pi(J);case 292:return Cs(J);case 291:return Ea(J,4,0);case 271:case 274:case 276:case 281:return ps(J,2097152,2097152);case 270:return ac(J);case 273:return gc(J);case 278:return Oc(J);case 277:return io(J);case 312:return vn(J.statements),Ur();case 241:if(!t6(J.parent))return;case 268:return vn(J.statements);case 348:if(J.parent.kind===330)return Fc(J);if(J.parent.kind!==329)break;case 355:const vs=J,di=vs.isBracketed||vs.typeExpression&&vs.typeExpression.type.kind===323?16777220:4;return ps(vs,di,0);case 353:case 345:case 347:return(f||(f=[])).push(J);case 346:return Re(J.typeExpression)}}function mr(J){const Be=eu(J),At=Be?98304:4,Jn=Be?13247:0;return sl(J,At|(J.questionToken?16777216:0),Jn)}function oi(J){return ro(J,2048,"__type")}function Ur(){if(Fs(e),zc(e))Ma();else if(Yf(e)){Ma();const J=e.symbol;Xe(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=J}}function Ma(){ro(e,512,`"${mu(e.fileName)}"`)}function io(J){if(!a.symbol||!a.symbol.exports)ro(J,111551,Ne(J));else{const Be=k6(J)?2097152:4,At=Xe(a.symbol.exports,a.symbol,J,Be,67108863);J.isExportEquals&&Zw(At,J)}}function ac(J){dt(J.modifiers)&&e.bindDiagnostics.push(Q(J,p.Modifiers_cannot_appear_here));const Be=Ri(J.parent)?zc(J.parent)?J.parent.isDeclarationFile?void 0:p.Global_module_exports_may_only_appear_in_declaration_files:p.Global_module_exports_may_only_appear_in_module_files:p.Global_module_exports_may_only_appear_at_top_level;Be?e.bindDiagnostics.push(Q(J,Be)):(e.symbol.globalExports=e.symbol.globalExports||Us(),Xe(e.symbol.globalExports,e.symbol,J,2097152,2097152))}function Oc(J){!a.symbol||!a.symbol.exports?ro(J,8388608,Ne(J)):J.exportClause?og(J.exportClause)&&(Ta(J.exportClause,J),Xe(a.symbol.exports,a.symbol,J.exportClause,2097152,2097152)):Xe(a.symbol.exports,a.symbol,J,8388608,0)}function gc(J){J.name&&ps(J,2097152,2097152)}function Ka(J){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=J,e.externalModuleIndicator||Ma()),!0)}function nc(J){if(!Ka(J))return;const Be=ds(J.arguments[0],void 0,(At,Jn)=>(Jn&&G(Jn,At,67110400),Jn));Be&&Xe(Be.exports,Be,J,1048580,0)}function q_(J){if(!Ka(J))return;const Be=ds(J.left.expression,void 0,(At,Jn)=>(Jn&&G(Jn,At,67110400),Jn));if(Be){const Jn=cD(J.right)&&(Rb(J.left.expression)||Zm(J.left.expression))?2097152:1048580;Ta(J.left,J),Xe(Be.exports,Be,J.left,Jn,0)}}function Uc(J){if(!Ka(J))return;const Be=Gw(J.right);if(Iq(Be)||a===e&&b2(e,Be))return;if(ha(Be)&&$i(Be.properties,nf)){mn(Be.properties,zo);return}const At=k6(J)?2097152:1049092,Jn=Xe(e.symbol.exports,e.symbol,J,At|67108864,0);Zw(Jn,J)}function zo(J){Xe(e.symbol.exports,e.symbol,J,69206016,0)}function bu(J){if(E.assert(Zn(J)),rr(J)&&kr(J.left)&&Ei(J.left.name)||kr(J)&&Ei(J.name))return;const At=tu(J,!1,!1);switch(At.kind){case 262:case 218:let Jn=At.symbol;if(rr(At.parent)&&At.parent.operatorToken.kind===64){const rs=At.parent.left;Bb(rs)&&Ty(rs.expression)&&(Jn=li(rs.expression.expression,o))}Jn&&Jn.valueDeclaration&&(Jn.members=Jn.members||Us(),$0(J)?he(J,Jn,Jn.members):Xe(Jn.members,Jn,J,67108868,0),G(Jn,Jn.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const vs=At.parent,di=Ps(At)?vs.symbol.exports:vs.symbol.members;$0(J)?he(J,vs.symbol,di):Xe(di,vs.symbol,J,67108868,0,!0);break;case 312:if($0(J))break;At.commonJsModuleIndicator?Xe(At.symbol.exports,At.symbol,J,1048580,0):ps(J,1,111550);break;case 267:break;default:E.failBadSyntaxKind(At)}}function he(J,Be,At){Xe(At,Be,J,4,0,!0,!0),vt(J,Be)}function vt(J,Be){Be&&(Be.assignmentDeclarationMembers||(Be.assignmentDeclarationMembers=new Map)).set(Ba(J),J)}function bn(J){J.expression.kind===110?bu(J):Bb(J)&&J.parent.parent.kind===312&&(Ty(J.expression)?Ua(J,J.parent):qe(J))}function Bi(J){Ta(J.left,J),Ta(J.right,J),Fn(J.left.expression,J.left,!1,!0)}function Es(J){const Be=li(J.arguments[0].expression);Be&&Be.valueDeclaration&&G(Be,Be.valueDeclaration,32),Et(J,Be,!0)}function Ua(J,Be){const At=J.expression,Jn=At.expression;Ta(Jn,At),Ta(At,J),Ta(J,Be),Fn(Jn,J,!0,!0)}function oc(J){let Be=li(J.arguments[0]);const At=J.parent.parent.kind===312;Be=gt(Be,J.arguments[0],At,!1,!1),Et(J,Be,!1)}function se(J){var Be;const At=li(J.left.expression,a)||li(J.left.expression,l);if(!Zn(J)&&!r_e(At))return;const Jn=D3(J.left);if(!(we(Jn)&&((Be=qA(a,Jn.escapedText))==null?void 0:Be.flags)&2097152))if(Ta(J.left,J),Ta(J.right,J),we(J.left.expression)&&a===e&&b2(e,J.left.expression))q_(J);else if($0(J)){ro(J,67108868,"__computed");const vs=gt(At,J.left.expression,Qt(J.left),!1,!1);vt(J,vs)}else qe(Ms(J.left,Rx))}function qe(J){E.assert(!we(J)),Ta(J.expression,J),Fn(J.expression,J,!1,!1)}function gt(J,Be,At,Jn,vs){return(J==null?void 0:J.flags)&2097152||(At&&!Jn&&(J=ds(Be,J,(bs,Lo,aa)=>{if(Lo)return G(Lo,bs,67110400),Lo;{const xl=aa?aa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Us());return Xe(xl,aa,bs,67110400,110735)}})),vs&&J&&J.valueDeclaration&&G(J,J.valueDeclaration,32)),J}function Et(J,Be,At){if(!Be||!Cr(Be))return;const Jn=At?Be.members||(Be.members=Us()):Be.exports||(Be.exports=Us());let vs=0,di=0;Eo(Lx(J))?(vs=8192,di=103359):js(J)&&Mx(J)&&(dt(J.arguments[2].properties,rs=>{const bs=os(rs);return!!bs&&we(bs)&&lr(bs)==="set"})&&(vs|=65540,di|=78783),dt(J.arguments[2].properties,rs=>{const bs=os(rs);return!!bs&&we(bs)&&lr(bs)==="get"})&&(vs|=32772,di|=46015)),vs===0&&(vs=4,di=0),Xe(Jn,Be,J,vs|67108864,di&-67108865)}function Qt(J){return rr(J.parent)?qr(J.parent).parent.kind===312:J.parent.parent.kind===312}function Fn(J,Be,At,Jn){let vs=li(J,a)||li(J,l);const di=Qt(Be);vs=gt(vs,Be.expression,di,At,Jn),Et(Be,vs,At)}function Cr(J){if(J.flags&1072)return!0;const Be=J.valueDeclaration;if(Be&&js(Be))return!!Lx(Be);let At=Be?Mi(Be)?Be.initializer:rr(Be)?Be.right:kr(Be)&&rr(Be.parent)?Be.parent.right:void 0:void 0;if(At=At&&Gw(At),At){const Jn=Ty(Mi(Be)?Be.name:rr(Be)?Be.left:Be);return!!hy(rr(At)&&(At.operatorToken.kind===57||At.operatorToken.kind===61)?At.right:At,Jn)}return!1}function qr(J){for(;rr(J.parent);)J=J.parent;return J.parent}function li(J,Be=a){if(we(J))return qA(Be,J.escapedText);{const At=li(J.expression);return At&&At.exports&&At.exports.get(Hg(J))}}function ds(J,Be,At){if(b2(e,J))return e.symbol;if(we(J))return At(J,li(J),Be);{const Jn=ds(J.expression,Be,At),vs=Xw(J);return Ei(vs)&&E.fail("unexpected PrivateIdentifier"),At(vs,Jn&&Jn.exports&&Jn.exports.get(Hg(J)),Jn)}}function va(J){!e.commonJsModuleIndicator&&du(J,!1)&&Ka(J)}function Fo(J){if(J.kind===263)Ja(J,32,899503);else{const vs=J.name?J.name.escapedText:"__class";ro(J,32,vs),J.name&&oe.add(J.name.escapedText)}const{symbol:Be}=J,At=fe(4194308,"prototype"),Jn=Be.exports.get(At.escapedName);Jn&&(J.name&&Ta(J.name,J),e.bindDiagnostics.push(Q(Jn.declarations[0],p.Duplicate_identifier_0,xc(At)))),Be.exports.set(At.escapedName,At),At.parent=Be}function Ro(J){return Zv(J)?Ja(J,128,899967):Ja(J,256,899327)}function Zc(J){if(j&&Ls(J,J.name),!Ns(J.name)){const Be=J.kind===260?J:J.parent.parent;Zn(J)&&mO(t)&&t2(Be)&&!fy(J)&&!(Wv(J)&1)?ps(J,2097152,2097152):DW(J)?Ja(J,2,111551):Jb(J)?ps(J,1,111551):ps(J,1,111550)}}function Fc(J){if(!(J.kind===348&&a.kind!==330)&&(j&&!(J.flags&33554432)&&Ls(J,J.name),Ns(J.name)?ro(J,1,"__"+J.parent.parameters.indexOf(J)):ps(J,1,111551),Du(J,J.parent))){const Be=J.parent.parent;Xe(Be.symbol.members,Be.symbol,J,4|(J.questionToken?16777216:0),0)}}function il(J){!e.isDeclarationFile&&!(J.flags&33554432)&&w6(J)&&(Y|=4096),ja(J),j?(qt(J),Ja(J,16,110991)):ps(J,16,110991)}function Ml(J){!e.isDeclarationFile&&!(J.flags&33554432)&&w6(J)&&(Y|=4096),m&&(J.flowNode=m),ja(J);const Be=J.name?J.name.escapedText:"__function";return ro(J,16,Be)}function sl(J,Be,At){return!e.isDeclarationFile&&!(J.flags&33554432)&&w6(J)&&(Y|=4096),m&&A9(J)&&(J.flowNode=m),$0(J)?ro(J,Be,"__computed"):ps(J,Be,At)}function ju(J){const Be=On(J,At=>At.parent&&Y6(At.parent)&&At.parent.extendsType===At);return Be&&Be.parent}function cd(J){var Be,At;if(id(J.parent)){const Jn=H9(J.parent);Jn?(E.assertNode(Jn,fm),(Be=Jn.locals)!=null||(Jn.locals=Us()),Xe(Jn.locals,void 0,J,262144,526824)):ps(J,262144,526824)}else if(J.parent.kind===195){const Jn=ju(J.parent);Jn?(E.assertNode(Jn,fm),(At=Jn.locals)!=null||(Jn.locals=Us()),Xe(Jn.locals,void 0,J,262144,526824)):ro(J,262144,Ne(J))}else ps(J,262144,526824)}function E1(J){const Be=t0(J);return Be===1||Be===2&&Hb(t)}function qd(J){if(!(m.flags&1))return!1;if(m===_e&&(ww(J)&&J.kind!==242||J.kind===263||J.kind===267&&E1(J))&&(m=X,!t.allowUnreachableCode)){const At=uue(t)&&!(J.flags&33554432)&&(!ic(J)||!!(U0(J.declarationList)&7)||J.declarationList.declarations.some(Jn=>!!Jn.initializer));OPe(J,(Jn,vs)=>A(At,Jn,vs,p.Unreachable_code_detected))}return!0}}function OPe(e,t){if(Ii(e)&&ame(e)&&hs(e.parent)){const{statements:r}=e.parent,i=Kq(r,e);sV(i,ame,(a,o)=>t(i[a],i[o-1]))}else t(e,e)}function ame(e){return!tl(e)&&!FPe(e)&&!Ay(e)&&!(ic(e)&&!(U0(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function FPe(e){switch(e.kind){case 264:case 265:return!0;case 267:return t0(e)!==1;case 266:return Mr(e,2048);default:return!1}}function b2(e,t){let r=0;const i=pV();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),Rb(t)||Zm(t))return!0;if(we(t)){const a=qA(e,t.escapedText);if(!!a&&!!a.valueDeclaration&&Mi(a.valueDeclaration)&&!!a.valueDeclaration.initializer){const o=a.valueDeclaration.initializer;i.enqueue(o),Kl(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function x$(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(A9(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return ks(e.parent)||ec(e.parent)?0:34}return 0}function qA(e,t){var u;var r,i,a,o;const l=(i=(r=Hr(e,fm))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return(u=l.exportSymbol)!=null?u:l;if(Ri(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Nd(e))return(o=(a=e.symbol)==null?void 0:a.exports)==null?void 0:o.get(t)}var S$,k$,ome,LPe=Bt({"src/compiler/binder.ts"(){Os(),Jv(),S$=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(S$||{}),k$=(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",e))(k$||{}),ome=IPe()}});function cme(e,t,r,i,a,o,l,u,f,g){return m;function m(y=()=>!0){const x=[],k=[];return{walkType:oe=>{try{return C(oe),{visitedTypes:vx(x),visitedSymbols:vx(k)}}finally{Wm(x),Wm(k)}},walkSymbol:oe=>{try{return Z(oe),{visitedTypes:vx(x),visitedSymbols:vx(k)}}finally{Wm(x),Wm(k)}}};function C(oe){if(!(!oe||x[oe.id]||(x[oe.id]=oe,Z(oe.symbol)))){if(oe.flags&524288){const X=oe,H=X.objectFlags;H&4&&N(oe),H&32&&Y(oe),H&3&&ee(oe),H&24&&R(X)}oe.flags&262144&&D(oe),oe.flags&3145728&&M(oe),oe.flags&4194304&&V(oe),oe.flags&8388608&&U(oe)}}function N(oe){C(oe.target),mn(g(oe),C)}function D(oe){C(u(oe))}function M(oe){mn(oe.types,C)}function V(oe){C(oe.type)}function U(oe){C(oe.objectType),C(oe.indexType),C(oe.constraint)}function Y(oe){C(oe.typeParameter),C(oe.constraintType),C(oe.templateType),C(oe.modifiersType)}function j(oe){const _e=t(oe);_e&&C(_e.type),mn(oe.typeParameters,C);for(const X of oe.parameters)Z(X);C(e(oe)),C(r(oe))}function ee(oe){R(oe),mn(oe.typeParameters,C),mn(i(oe),C),C(oe.thisType)}function R(oe){const _e=a(oe);for(const X of _e.indexInfos)C(X.keyType),C(X.type);for(const X of _e.callSignatures)j(X);for(const X of _e.constructSignatures)j(X);for(const X of _e.properties)Z(X)}function Z(oe){if(!oe)return!1;const _e=ya(oe);if(k[_e])return!1;if(k[_e]=oe,!y(oe))return!0;const X=o(oe);return C(X),oe.exports&&oe.exports.forEach(Z),mn(oe.declarations,H=>{if(H.type&&H.type.kind===186){const Q=H.type,re=l(f(Q.exprName));Z(re)}}),!1}}}var MPe=Bt({"src/compiler/symbolWalker.ts"(){Os()}});function dL({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,a){const o=l();return{relativePreference:a!==void 0?Al(a)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{if((u!=null?u:i.impliedNodeFormat)===99)return m4(r,i.fileName)?[3,2]:[2];if(Cc(r)===1)return o===2?[2,1]:[1,2];const f=m4(r,i.fileName);switch(o){case 2:return f?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return f?[1,0,3,2]:[1,0,2];case 0:return f?[0,1,3,2]:[0,1,2];default:E.assertNever(o)}}};function l(){if(a!==void 0){if(c2(a))return 2;if(Tc(a,"/index"))return 1}return Yq(t,i.impliedNodeFormat,r,i)}}function RPe(e,t,r,i,a,o,l={}){const u=lme(e,t,r,i,a,dL({},e,t,o),{},l);if(u!==o)return u}function HA(e,t,r,i,a,o={}){return lme(e,t,r,i,a,dL({},e,t),{},o)}function BPe(e,t,r,i,a,o={}){const l=C$(t.path,i),u=hme(t.path,r,i,a,o);return _c(u,f=>E$(f,l,t,i,e,a,!0,o.overrideImportMode))}function lme(e,t,r,i,a,o,l,u={}){const f=C$(r,a),g=hme(r,i,a,l,u);return _c(g,m=>E$(m,f,t,a,e,l,void 0,u.overrideImportMode))||pme(i,f,e,a,u.overrideImportMode||t.impliedNodeFormat,o)}function jPe(e,t,r,i,a={}){return _me(e,t,r,i,a)[0]}function _me(e,t,r,i,a={}){var o;const l=h9(e);if(!l)return Ve;const u=(o=r.getModuleSpecifierCache)==null?void 0:o.call(r),f=u==null?void 0:u.get(t.path,l.path,i,a);return[f==null?void 0:f.moduleSpecifiers,l,f==null?void 0:f.modulePaths,u]}function ume(e,t,r,i,a,o,l={}){return fme(e,t,r,i,a,o,l).moduleSpecifiers}function fme(e,t,r,i,a,o,l={}){let u=!1;const f=zPe(e,t);if(f)return{moduleSpecifiers:[f],computedWithoutCache:u};let[g,m,y,x]=_me(e,i,a,o,l);if(g)return{moduleSpecifiers:g,computedWithoutCache:u};if(!m)return{moduleSpecifiers:Ve,computedWithoutCache:u};u=!0,y||(y=yme(i.path,m.originalFileName,a));const k=JPe(y,r,i,a,o,l);return x==null||x.set(i.path,m.path,o,l,y,k),{moduleSpecifiers:k,computedWithoutCache:u}}function JPe(e,t,r,i,a,o={}){const l=C$(r.path,i),u=dL(a,t,r),f=mn(e,C=>mn(i.getFileIncludeReasons().get(yo(C.path,i.getCurrentDirectory(),l.getCanonicalFileName)),N=>{if(N.kind!==3||N.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==EX(r,N.index))return;const D=XL(r,N.index).text;return u.relativePreference!==1||!$u(D)?D:void 0}));if(f)return[f];const g=dt(e,C=>C.isInNodeModules);let m,y,x,k;for(const C of e){const N=C.isInNodeModules?E$(C,l,r,i,t,a,void 0,o.overrideImportMode):void 0;if(m=gn(m,N),N&&C.isRedirect)return m;if(!N){const D=pme(C.path,l,t,i,o.overrideImportMode||r.impliedNodeFormat,u,C.isRedirect);if(!D)continue;C.isRedirect?x=gn(x,D):OU(D)?y=gn(y,D):(!g||C.isInNodeModules)&&(k=gn(k,D))}}return y!=null&&y.length?y:x!=null&&x.length?x:m!=null&&m.length?m:E.checkDefined(k)}function C$(e,t){const r=Ql(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=bi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i}}function pme(e,t,r,i,a,{getAllowedEndingsInPreferredOrder:o,relativePreference:l},u){const{baseUrl:f,paths:g,rootDirs:m}=r;if(u&&!g)return;const{sourceDirectory:y,getCanonicalFileName:x}=t,k=o(a),C=m&&VPe(m,e,y,x,k,r)||x8(Vv(um(y,e,x)),k,r);if(!f&&!g||l===0)return u?void 0:C;const N=fs(eO(r,i)||f,i.getCurrentDirectory()),D=xme(e,N,x);if(!D)return u?void 0:C;const M=g&&vme(D,g,k,i,r);if(u)return M;const V=M===void 0&&f!==void 0?x8(D,k,r):M;if(!V)return C;if(l===1&&!$u(V))return V;if(l===3&&!$u(V)){const U=r.configFilePath?yo(bi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),Y=yo(e,U,x),j=ts(y,U),ee=ts(Y,U);if(j&&!ee||!j&&ee)return V;const R=mme(i,bi(Y));return mme(i,y)!==R?V:C}return Sme(V)||GA(C)e.fileExists(Pi(r,"package.json"))?!0:void 0)}function gme(e,t,r,i,a){var o;const l=X0(r),u=r.getCurrentDirectory(),f=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,g=yo(t,u,l),m=r.redirectTargetsMap.get(g)||Ve,x=[...f?[f]:Ve,t,...m].map(M=>fs(M,u));let k=!$i(x,J3);if(!i){const M=mn(x,V=>!(k&&J3(V))&&a(V,f===V));if(M)return M}const C=(o=r.getSymlinkCache)==null?void 0:o.call(r).getSymlinkedDirectoriesByRealpath(),N=fs(t,u);return C&&Jg(bi(N),M=>{const V=C.get(D_(yo(M,u,l)));if(!!V)return MU(e,M,l)?!1:mn(x,U=>{if(!MU(U,M,l))return;const Y=um(M,U,l);for(const j of V){const ee=$h(j,Y),R=a(ee,U===f);if(k=!0,R)return R}})})||(i?mn(x,M=>k&&J3(M)?void 0:a(M,M===f)):void 0)}function hme(e,t,r,i,a={}){var o;const l=yo(t,r.getCurrentDirectory(),X0(r)),u=(o=r.getModuleSpecifierCache)==null?void 0:o.call(r);if(u){const g=u.get(e,l,i,a);if(g!=null&&g.modulePaths)return g.modulePaths}const f=yme(e,t,r);return u&&u.setModulePaths(e,l,i,a,f),f}function yme(e,t,r){const i=X0(r),a=new Map;gme(e,t,r,!0,(l,u)=>{const f=TS(l);a.set(l,{path:i(l),isRedirect:u,isInNodeModules:f})});const o=[];for(let l=bi(e);a.size!==0;){const u=D_(l);let f;a.forEach(({path:m,isRedirect:y,isInNodeModules:x},k)=>{ts(m,u)&&((f||(f=[])).push({path:k,isRedirect:y,isInNodeModules:x}),a.delete(k))}),f&&(f.length>1&&f.sort(dme),o.push(...f));const g=bi(l);if(g===l)break;l=g}if(a.size){const l=ia(a.values());l.length>1&&l.sort(dme),o.push(...l)}return o}function zPe(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>NW(l)&&(!Qv(l)||!Al(kp(l.name))));if(i)return i.name.text;const o=qi(e.declarations,l=>{var u,f,g,m;if(!Nc(l))return;const y=N(l);if(!(((u=y==null?void 0:y.parent)==null?void 0:u.parent)&&jd(y.parent)&&__(y.parent.parent)&&Ri(y.parent.parent.parent)))return;const x=(m=(g=(f=y.parent.parent.symbol.exports)==null?void 0:f.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:m.expression;if(!x)return;const k=t.getSymbolAtLocation(x);if(!k)return;if(((k==null?void 0:k.flags)&2097152?t.getAliasedSymbol(k):k)===l.symbol)return y.parent.parent;function N(D){for(;D.flags&8;)D=D.parent;return D}})[0];if(o)return o.name.text}function vme(e,t,r,i,a){for(const l in t)for(const u of t[l]){const f=ba(u),g=f.indexOf("*"),m=r.map(y=>({ending:y,value:x8(e,[y],a)}));if(ng(f)&&m.push({ending:void 0,value:e}),g!==-1){const y=f.substring(0,g),x=f.substring(g+1);for(const{ending:k,value:C}of m)if(C.length>=y.length+x.length&&ts(C,y)&&Tc(C,x)&&o({ending:k,value:C})){const N=C.substring(y.length,C.length-x.length);if(!$u(N))return l.replace("*",N)}}else if(dt(m,y=>y.ending!==0&&f===y.value)||dt(m,y=>y.ending===0&&f===y.value&&o(y)))return l}function o({ending:l,value:u}){return l!==0||u===x8(e,[l],a,i)}}function mL(e,t,r,i,a,o,l=0){if(typeof a=="string"){const u=fs(Pi(r,a),void 0),f=L3(t)?mu(t)+gL(t,e):void 0;switch(l){case 0:if(Cb(t,u)===0||f&&Cb(f,u)===0)return{moduleFileToTry:i};break;case 1:if(Xh(u,t)){const x=um(u,t,!1);return{moduleFileToTry:fs(Pi(Pi(i,a),x),void 0)}}break;case 2:const g=u.indexOf("*"),m=u.slice(0,g),y=u.slice(g+1);if(ts(t,m)&&Tc(t,y)){const x=t.slice(m.length,t.length-y.length);return{moduleFileToTry:i.replace("*",x)}}if(f&&ts(f,m)&&Tc(f,y)){const x=f.slice(m.length,f.length-y.length);return{moduleFileToTry:i.replace("*",x)}}break}}else{if(Array.isArray(a))return mn(a,u=>mL(e,t,r,i,u,o));if(typeof a=="object"&&a!==null){if(cL(a))return mn(Bg(a),u=>{const f=fs(Pi(i,u),void 0),g=Tc(u,"/")?1:Xl(u,"*")?2:0;return mL(e,t,r,f,a[u],o,g)});for(const u of Bg(a))if(u==="default"||o.indexOf(u)>=0||UA(o,u)){const f=a[u],g=mL(e,t,r,i,f,o,l);if(g)return g}}}}function VPe(e,t,r,i,a,o){const l=bme(t,e,i);if(l===void 0)return;const u=bme(r,e,i),f=Na(u,m=>an(l,y=>Vv(um(m,y,i)))),g=dV(f,PD);if(!!g)return x8(g,a,o)}function E$({path:e,isRedirect:t},{getCanonicalFileName:r,sourceDirectory:i},a,o,l,u,f,g){if(!o.fileExists||!o.readFile)return;const m=aH(e);if(!m)return;const x=dL(u,l,a).getAllowedEndingsInPreferredOrder();let k=e,C=!1;if(!f){let Y=m.packageRootIndex,j;for(;;){const{moduleFileToTry:ee,packageRootPath:R,blockedByExports:Z,verbatimFromExports:oe}=U(Y);if(Cc(l)!==1){if(Z)return;if(oe)return ee}if(R){k=R,C=!0;break}if(j||(j=ee),Y=e.indexOf(Wo,Y+1),Y===-1){k=x8(j,x,l,o);break}}}if(t&&!C)return;const N=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),D=r(k.substring(0,m.topLevelNodeModulesIndex));if(!(ts(i,D)||N&&ts(r(N),D)))return;const M=k.substring(m.topLevelPackageNameIndex+1),V=WA(M);return Cc(l)===1&&V===M?void 0:V;function U(Y){var j,ee;const R=e.substring(0,Y),Z=Pi(R,"package.json");let oe=e,_e=!1;const X=(ee=(j=o.getPackageJsonInfoCache)==null?void 0:j.call(o))==null?void 0:ee.getPackageJsonInfo(Z);if(typeof X=="object"||X===void 0&&o.fileExists(Z)){const H=(X==null?void 0:X.contents.packageJsonContent)||JSON.parse(o.readFile(Z)),Q=g||a.impliedNodeFormat;if(Uq(l)){const fe=R.substring(m.topLevelPackageNameIndex+1),G=WA(fe),Ne=bS(l,Q===99),De=H.exports?mL(l,e,R,G,H.exports,Ne):void 0;if(De)return{...L3(De.moduleFileToTry)?{moduleFileToTry:mu(De.moduleFileToTry)+gL(De.moduleFileToTry,l)}:De,verbatimFromExports:!0};if(H.exports)return{moduleFileToTry:e,blockedByExports:!0}}const re=H.typesVersions?eL(H.typesVersions):void 0;if(re){const fe=e.slice(R.length+1),G=vme(fe,re.paths,x,o,l);G===void 0?_e=!0:oe=Pi(R,G)}const ue=H.typings||H.types||H.main||"index.js";if($s(ue)&&!(_e&&Zq(xO(re.paths),ue))){const fe=yo(ue,R,r),G=r(oe);if(mu(fe)===mu(G))return{packageRootPath:R,moduleFileToTry:oe};if(H.type!=="module"&&!Gc(G,WD)&&ts(G,fe)&&bi(G)===zv(fe)&&mu(Jl(G))==="index")return{packageRootPath:R,moduleFileToTry:oe}}}else{const H=r(oe.substring(m.packageRootIndex+1));if(H==="index.d.ts"||H==="index.js"||H==="index.ts"||H==="index.tsx")return{moduleFileToTry:oe,packageRootPath:R}}return{moduleFileToTry:oe}}}function UPe(e,t){if(!e.fileExists)return;const r=vp(F3({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const a=t+i;if(e.fileExists(a))return a}}function bme(e,t,r){return qi(t,i=>{const a=xme(e,i,r);return a!==void 0&&Sme(a)?void 0:a})}function x8(e,t,r,i){if(Gc(e,[".json",".mjs",".cjs"]))return e;const a=mu(e);if(e===a)return e;const o=t.indexOf(2),l=t.indexOf(3);if(Gc(e,[".mts",".cts"])&&l!==-1&&lg===0||g===1);return f!==-1&&fGA,forEachFileNameOfModule:()=>gme,getModuleSpecifier:()=>HA,getModuleSpecifiers:()=>ume,getModuleSpecifiersWithCacheInfo:()=>fme,getNodeModulesPackageName:()=>BPe,tryGetJSExtensionForFile:()=>gL,tryGetModuleSpecifiersFromCache:()=>jPe,tryGetRealFileNameForNonJsDeclarationFileName:()=>Tme,updateModuleSpecifier:()=>RPe});var D$=Bt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){kme()}});function WPe(){this.flags=0}function Ba(e){return e.id||(e.id=I$,I$++),e.id}function ya(e){return e.id||(e.id=P$,P$++),e.id}function A$(e,t){const r=t0(e);return r===1||t&&r===2}function Cme(e){var t=[],r=n=>{t.push(n)},i,a=new Set,o,l,u=Ol.getSymbolConstructor(),f=Ol.getTypeConstructor(),g=Ol.getSignatureConstructor(),m=0,y=0,x=0,k=0,C=0,N=0,D,M,V=!1,U=Us(),Y=[1],j=e.getCompilerOptions(),ee=Oa(j),R=Ul(j),Z=!!j.experimentalDecorators,oe=AD(j),_e=pue(j),X=Qx(j),H=np(j,"strictNullChecks"),Q=np(j,"strictFunctionTypes"),re=np(j,"strictBindCallApply"),ue=np(j,"strictPropertyInitialization"),fe=np(j,"noImplicitAny"),G=np(j,"noImplicitThis"),Ne=np(j,"useUnknownInCatchVariables"),De=!!j.keyofStringsOnly,Xe=De?1:0,ve=j.suppressExcessPropertyErrors?0:8192,be=j.exactOptionalPropertyTypes,xe=Bnt(),rt=gat(),ct=fk(),pe=Us(),Pe=Pa(4,"undefined");Pe.declarations=[];var Ge=Pa(1536,"globalThis",8);Ge.exports=pe,Ge.declarations=[],pe.set(Ge.escapedName,Ge);var tt=Pa(4,"arguments"),mt=Pa(4,"require"),Je=j.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",at=!j.verbatimModuleSyntax||!!j.importsNotUsedAsValues,zt,It,bt=0,_r,Tn=0;const jt={getNodeCount:()=>E_(e.getSourceFiles(),(n,s)=>n+s.nodeCount,0),getIdentifierCount:()=>E_(e.getSourceFiles(),(n,s)=>n+s.identifierCount,0),getSymbolCount:()=>E_(e.getSourceFiles(),(n,s)=>n+s.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>x,getRelationCacheSizes:()=>({assignable:Ju.size,identity:Tu.size,subtype:$d.size,strictSubtype:bf.size}),isUndefinedSymbol:n=>n===Pe,isArgumentsSymbol:n=>n===tt,isUnknownSymbol:n=>n===st,getMergedSymbol:Ra,getDiagnostics:h7e,getGlobalDiagnostics:Ist,getRecursionIdentity:vP,getUnmatchedProperties:Yie,getTypeOfSymbolAtLocation:(n,s)=>{const c=es(s);return c?AKe(n,c):$e},getTypeOfSymbol:$n,getSymbolsOfParameterPropertyDeclaration:(n,s)=>{const c=es(n,ns);return c===void 0?E.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(E.assert(Du(c,c.parent)),U4(c,qo(s)))},getDeclaredTypeOfSymbol:go,getPropertiesOfType:za,getPropertyOfType:(n,s)=>qs(n,qo(s)),getPrivateIdentifierPropertyOfType:(n,s,c)=>{const _=es(c);if(!_)return;const d=qo(s),h=mz(d,_);return h?Lse(n,h):void 0},getTypeOfPropertyOfType:(n,s)=>Wc(n,qo(s)),getIndexInfoOfType:(n,s)=>Rm(n,s===0?F:ye),getIndexInfosOfType:x_,getIndexInfosOfIndexSymbol:$re,getSignaturesOfType:As,getIndexTypeOfType:(n,s)=>x0(n,s===0?F:ye),getIndexType:n=>im(n),getBaseTypes:xo,getBaseTypeOfLiteralType:zh,getWidenedType:Wu,getTypeFromTypeNode:n=>{const s=es(n,Di);return s?ii(s):$e},getParameterType:$p,getParameterIdentifierInfoAtPosition:nnt,getPromisedTypeOfPromise:h7,getAwaitedType:n=>Tb(n),getReturnTypeOfSignature:Va,isNullableType:dz,getNullableType:UJ,getNonNullableType:Ig,getNonOptionalType:WJ,getTypeArguments:po,typeToTypeNode:ct.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ct.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ct.signatureToSignatureDeclaration,symbolToEntityName:ct.symbolToEntityName,symbolToExpression:ct.symbolToExpression,symbolToNode:ct.symbolToNode,symbolToTypeParameterDeclarations:ct.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ct.symbolToParameterDeclaration,typeParameterToDeclaration:ct.typeParameterToDeclaration,getSymbolsInScope:(n,s)=>{const c=es(n);return c?Ost(c,s):[]},getSymbolAtLocation:n=>{const s=es(n);return s?yp(s,!0):void 0},getIndexInfosAtLocation:n=>{const s=es(n);return s?zst(s):void 0},getShorthandAssignmentValueSymbol:n=>{const s=es(n);return s?Vst(s):void 0},getExportSpecifierLocalTargetSymbol:n=>{const s=es(n,p_);return s?Ust(s):void 0},getExportSymbolOfSymbol(n){return Ra(n.exportSymbol||n)},getTypeAtLocation:n=>{const s=es(n);return s?ux(s):$e},getTypeOfAssignmentPattern:n=>{const s=es(n,XC);return s&&Vz(s)||$e},getPropertySymbolOfDestructuringAssignment:n=>{const s=es(n,we);return s?Wst(s):void 0},signatureToString:(n,s,c,_)=>Rl(n,es(s),c,_),typeToString:(n,s,c)=>kn(n,es(s),c),symbolToString:(n,s,c,_)=>ni(n,es(s),c,_),typePredicateToString:(n,s,c)=>kg(n,es(s),c),writeSignature:(n,s,c,_,d)=>Rl(n,es(s),c,_,d),writeType:(n,s,c,_)=>kn(n,es(s),c,_),writeSymbol:(n,s,c,_,d)=>ni(n,es(s),c,_,d),writeTypePredicate:(n,s,c,_)=>kg(n,es(s),c,_),getAugmentedPropertiesOfType:Rae,getRootSymbols:k7e,getSymbolOfExpando:Sz,getContextualType:(n,s)=>{const c=es(n,nt);if(!!c)return s&4?br(c,()=>Z_(c,s)):Z_(c,s)},getContextualTypeForObjectLiteralElement:n=>{const s=es(n,q0);return s?bse(s,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,s)=>{const c=es(n,$v);return c&&vse(c,s)},getContextualTypeForJsxAttribute:n=>{const s=es(n,_9);return s&&V3e(s,void 0)},isContextSensitive:Cf,getTypeOfPropertyOfContextualType:wv,getFullyQualifiedName:m0,getResolvedSignature:(n,s,c)=>fi(n,s,c,0),getResolvedSignatureForStringLiteralCompletions:(n,s,c,_=32)=>_&32?br(s,()=>fi(n,c,void 0,_&-33)):Kn(s,()=>fi(n,c,void 0,_&-33)),getResolvedSignatureForSignatureHelp:(n,s,c)=>Kn(n,()=>fi(n,s,c,16)),getExpandedParameters:q6e,hasEffectiveRestParameter:sm,containsArgumentsReference:qre,getConstantValue:n=>{const s=es(n,A7e);return s?Bae(s):void 0},isValidPropertyAccess:(n,s)=>{const c=es(n,ele);return!!c&&ptt(c,qo(s))},isValidPropertyAccessForCompletions:(n,s,c)=>{const _=es(n,kr);return!!_&&y8e(_,s,c)},getSignatureFromDeclaration:n=>{const s=es(n,ks);return s?gd(s):void 0},isImplementationOfOverload:n=>{const s=es(n,ks);return s?w7e(s):void 0},getImmediateAliasedSymbol:Cse,getAliasedSymbol:gl,getEmitResolver:zT,getExportsOfModule:av,getExportsAndPropertiesOfModule:Sf,forEachExportAndPropertyOfModule:XT,getSymbolWalker:cme(YXe,Wf,Va,xo,Up,$n,hp,s_,Ku,po),getAmbientModules:sot,getJsxIntrinsicTagNamesAt:Het,isOptionalParameter:n=>{const s=es(n,ns);return s?jE(s):!1},tryGetMemberInModuleExports:(n,s)=>$2(qo(n),s),tryGetMemberInModuleExportsAndProperties:(n,s)=>QT(qo(n),s),tryFindAmbientModule:n=>Wre(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>Wre(n,!1),getApparentType:Y_,getUnionType:zr,isTypeAssignableTo:la,createAnonymousType:yc,createSignature:Mm,createSymbol:Pa,createIndexInfo:rm,getAnyType:()=>ke,getStringType:()=>F,getStringLiteralType:lu,getNumberType:()=>ye,getNumberLiteralType:Hp,getBigIntType:()=>Oe,createPromiseType:UP,createArrayType:$l,getElementTypeOfArrayType:Bie,getBooleanType:()=>Sn,getFalseType:n=>n?We:Tt,getTrueType:n=>n?Ot:on,getVoidType:()=>ar,getUndefinedType:()=>Pt,getNullType:()=>W,getESSymbolType:()=>ir,getNeverType:()=>jn,getOptionalType:()=>le,getPromiseType:()=>oP(!1),getPromiseLikeType:()=>I4e(!1),getAsyncIterableType:()=>{const n=vJ(!1);if(n!==Ls)return n},isSymbolAccessible:et,isArrayType:wf,isTupleType:_a,isArrayLikeType:w0,isEmptyAnonymousObjectType:Pg,isTypeInvalidDueToUnionDiscriminant:IXe,getExactOptionalProperties:sZe,getAllPossiblePropertiesOfTypes:OXe,getSuggestedSymbolForNonexistentProperty:Bse,getSuggestionForNonexistentProperty:jse,getSuggestedSymbolForNonexistentJSXAttribute:g8e,getSuggestedSymbolForNonexistentSymbol:(n,s,c)=>Jse(n,qo(s),c),getSuggestionForNonexistentSymbol:(n,s,c)=>ltt(n,qo(s),c),getSuggestedSymbolForNonexistentModule:hz,getSuggestionForNonexistentExport:_tt,getSuggestedSymbolForNonexistentClassMember:m8e,getBaseConstraintOfType:B_,getDefaultFromTypeParameter:n=>n&&n.flags&262144?ob(n):void 0,resolveName(n,s,c,_){return Mc(s,qo(n),c,void 0,void 0,!1,_)},getJsxNamespace:n=>Li(N1(n)),getJsxFragmentFactory:n=>{const s=Jae(n);return s&&Li(Ku(s).escapedText)},getAccessibleSymbolChain:Fm,getTypePredicateOfSignature:Wf,resolveExternalModuleName:n=>{const s=es(n,nt);return s&&r_(s,s,!0)},resolveExternalModuleSymbol:lf,tryGetThisTypeAt:(n,s,c)=>{const _=es(n);return _&&mse(_,s,c)},getTypeArgumentConstraint:n=>{const s=es(n,Di);return s&&grt(s)},getSuggestionDiagnostics:(n,s)=>{const c=es(n,Ri)||E.fail("Could not determine parsed source file.");if(M3(c,j,e))return Ve;let _;try{return i=s,Lae(c),E.assert(!!(Jr(c).flags&1)),_=Lr(_,L2.getDiagnostics(c.fileName)),FEe(g7e(c),(d,h,T)=>{!c6(d)&&!m7e(h,!!(d.flags&33554432))&&(_||(_=[])).push({...T,category:2})}),_||Ve}finally{i=void 0}},runWithCancellationToken:(n,s)=>{try{return i=n,s(jt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:zp,isDeclarationVisible:dd,isPropertyAccessible:Vse,getTypeOnlyAliasDeclaration:mp,getMemberOverrideModifierStatus:$it,isTypeParameterPossiblyReferenced:pP,typeHasCallOrConstructSignatures:Uz};function Kn(n,s){const c=[];for(;n;){if($v(n)){const d=Jr(n),h=d.resolvedSignature;c.push([d,h]),d.resolvedSignature=void 0}n=n.parent}const _=s();for(const[d,h]of c)d.resolvedSignature=h;return _}function br(n,s){const c=On(n,$v);if(c){let d=n;do Jr(d).skipDirectInference=!0,d=d.parent;while(d&&d!==c)}V=!0;const _=Kn(n,s);if(V=!1,c){let d=n;do Jr(d).skipDirectInference=void 0,d=d.parent;while(d&&d!==c)}return _}function fi(n,s,c,_){const d=es(n,$v);zt=c;const h=d?pC(d,s,_):void 0;return zt=void 0,h}var Si=new Map,Nr=new Map,pt=new Map,ur=new Map,yn=new Map,Ct=new Map,cn=new Map,In=new Map,xr=new Map,wi=new Map,Zt=new Map,Gt=new Map,xn=new Map,Gr=new Map,Er=new Map,ze=[],ut=new Map,kt=new Set,st=Pa(4,"unknown"),Ut=Pa(0,"__resolving__"),ae=new Map,Me=new Map,ke=Vo(1,"any"),ft=Vo(1,"any",262144),K=Vo(1,"any"),$e=Vo(1,"error"),Ae=Vo(1,"unresolved"),yt=Vo(1,"any",65536),_t=Vo(1,"intrinsic"),Jt=Vo(2,"unknown"),Ln=Vo(2,"unknown"),Pt=Vo(32768,"undefined"),hi=H?Pt:Vo(32768,"undefined",65536),z=Vo(32768,"undefined"),B=be?z:Pt,le=Vo(32768,"undefined"),W=Vo(65536,"null"),ge=H?W:Vo(65536,"null",65536),F=Vo(4,"string"),ye=Vo(8,"number"),Oe=Vo(64,"bigint"),We=Vo(512,"false"),Tt=Vo(512,"false"),Ot=Vo(512,"true"),on=Vo(512,"true");Ot.regularType=on,Ot.freshType=Ot,on.regularType=on,on.freshType=Ot,We.regularType=Tt,We.freshType=We,Tt.regularType=Tt,Tt.freshType=We;var Sn=zr([Tt,on]),ir=Vo(4096,"symbol"),ar=Vo(16384,"void"),jn=Vo(131072,"never"),ai=Vo(131072,"never",262144),ea=Vo(131072,"never"),ps=Vo(131072,"never"),Ws=Vo(67108864,"object"),Qr=zr([F,ye]),cs=zr([F,ye,ir]),Fs=De?F:cs,pi=zr([ye,Oe]),ln=zr([F,ye,Sn,Oe,W,Pt]),tc=lb(["",""],[ye]),Ui=fP(n=>n.flags&262144?IYe(n):n,()=>"(restrictive mapper)"),Cs=fP(n=>n.flags&262144?K:n,()=>"(permissive mapper)"),Ea=Vo(131072,"never"),ro=fP(n=>n.flags&262144?Ea:n,()=>"(unique literal mapper)"),Ja,Ic=fP(n=>(Ja&&(n===mc||n===h_||n===M_)&&Ja(!0),n),()=>"(unmeasurable reporter)"),ls=fP(n=>(Ja&&(n===mc||n===h_||n===M_)&&Ja(!1),n),()=>"(unreliable reporter)"),Oi=yc(void 0,U,Ve,Ve,Ve),Vc=yc(void 0,U,Ve,Ve,Ve);Vc.objectFlags|=2048;var Jo=Pa(2048,"__type");Jo.members=Us();var L_=yc(Jo,U,Ve,Ve,Ve),_l=yc(void 0,U,Ve,Ve,Ve),Rf=H?zr([Pt,W,_l]):Jt,Ls=yc(void 0,U,Ve,Ve,Ve);Ls.instantiations=new Map;var mo=yc(void 0,U,Ve,Ve,Ve);mo.objectFlags|=262144;var ja=yc(void 0,U,Ve,Ve,Ve),La=yc(void 0,U,Ve,Ve,Ve),qt=yc(void 0,U,Ve,Ve,Ve),mc=Jf(),h_=Jf();h_.constraint=mc;var M_=Jf(),W_=Jf(),bo=Jf();bo.constraint=W_;var Go=iP(1,"<>",0,ke),A=Mm(void 0,void 0,void 0,Ve,ke,void 0,0,0),Ce=Mm(void 0,void 0,void 0,Ve,$e,void 0,0,0),Re=Mm(void 0,void 0,void 0,Ve,ke,void 0,0,0),xt=Mm(void 0,void 0,void 0,Ve,ai,void 0,0,0),vn=rm(ye,F,!0),Pr=new Map,wn={get yieldType(){return E.fail("Not supported")},get returnType(){return E.fail("Not supported")},get nextType(){return E.fail("Not supported")}},mr=I0(ke,ke,ke),oi=I0(ke,ke,Jt),Ur=I0(jn,ke,Pt),Ma={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:fQe,getGlobalIterableType:vJ,getGlobalIterableIteratorType:pQe,getGlobalGeneratorType:dQe,resolveIterationType:(n,s)=>Tb(n,s,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:p.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},io={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:mQe,getGlobalIterableType:nie,getGlobalIterableIteratorType:gQe,getGlobalGeneratorType:hQe,resolveIterationType:(n,s)=>n,mustHaveANextMethodDiagnostic:p.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},ac,Oc=new Map,gc=[],Ka,nc,q_,Uc,zo,bu,he,vt,bn,Bi,Es,Ua,oc,se,qe,gt,Et,Qt,Fn,Cr,qr,li,ds,va,Fo,Ro,Zc,Fc,il,Ml,sl,ju,cd,E1,qd,J,Be,At,Jn,vs,di,rs,bs,Lo,aa,xl,cf,y_,ld,Hd,Fp,Ee,je,Ye,Rt,rn,fn=new Map,nn=0,zn=0,jr=0,Hi=!1,Hn=0,cr,wr,ta,Lc=[],$o=[],ug=[],Gd=0,Bf=[],a0=[],dh=0,PT=lu(""),z4=Hp(0),o0=kJ({negative:!1,base10Value:"0"}),mh=[],Vy=[],w1=[],Uy=0,gh=!1,IT=0,YS=10,OT=[],FT=[],I2=[],LT=[],MT=[],O2=[],RT=[],BT=[],ZS=[],jT=[],KS=[],D1=[],Wy=[],hh=[],qy=[],F2=[],c0=[],xa=D6(),L2=D6(),yh=lk(),A1,fg,$d=new Map,bf=new Map,Ju=new Map,ou=new Map,Tu=new Map,Hy=new Map,Gy=Us();Gy.set(Pe.escapedName,Pe);var V4=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",j.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return hat(),jt;function $y(n){return n?Er.get(n):void 0}function JT(n,s){return n&&Er.set(n,s),s}function N1(n){if(n){const s=Bn(n);if(s)if(dS(n)){if(s.localJsxFragmentNamespace)return s.localJsxFragmentNamespace;const c=s.pragmas.get("jsxfrag");if(c){const d=Ds(c)?c[0]:c;if(s.localJsxFragmentFactory=yS(d.arguments.factory,ee),Ue(s.localJsxFragmentFactory,M2,Xu),s.localJsxFragmentFactory)return s.localJsxFragmentNamespace=Ku(s.localJsxFragmentFactory).escapedText}const _=Jae(n);if(_)return s.localJsxFragmentFactory=_,s.localJsxFragmentNamespace=Ku(_).escapedText}else{const c=Xy(s);if(c)return s.localJsxNamespace=c}}return A1||(A1="React",j.jsxFactory?(fg=yS(j.jsxFactory,ee),Ue(fg,M2),fg&&(A1=Ku(fg).escapedText)):j.reactNamespace&&(A1=qo(j.reactNamespace))),fg||(fg=I.createQualifiedName(I.createIdentifier(Li(A1)),"createElement")),A1}function Xy(n){if(n.localJsxNamespace)return n.localJsxNamespace;const s=n.pragmas.get("jsx");if(s){const c=Ds(s)?s[0]:s;if(n.localJsxFactory=yS(c.arguments.factory,ee),Ue(n.localJsxFactory,M2,Xu),n.localJsxFactory)return n.localJsxNamespace=Ku(n.localJsxFactory).escapedText}}function M2(n){return Tm(n,-1,-1),pn(n,M2,n0)}function zT(n,s){return h7e(n,s),rt}function R2(n,s,...c){const _=n?yr(n,s,...c):kc(s,...c),d=xa.lookup(_);return d||(xa.add(_),_)}function vh(n,s,c,..._){const d=Fe(s,c,..._);return d.skippedOn=n,d}function al(n,s,...c){return n?yr(n,s,...c):kc(s,...c)}function Fe(n,s,...c){const _=al(n,s,...c);return xa.add(_),_}function l0(n,s){n?xa.add(s):L2.add({...s,category:2})}function Tf(n,s,c,..._){if(s.pos<0||s.end<0){if(!n)return;const d=Bn(s);l0(n,"message"in c?vl(d,0,0,c,..._):JW(d,c));return}l0(n,"message"in c?yr(s,c,..._):Wg(Bn(s),s,c))}function bh(n,s,c,..._){const d=Fe(n,c,..._);if(s){const h=yr(n,p.Did_you_forget_to_use_await);fa(d,h)}return d}function v_(n,s){const c=Array.isArray(n)?mn(n,XU):XU(n);return c&&fa(s,yr(c,p.The_declaration_was_marked_as_deprecated_here)),L2.add(s),s}function up(n){const s=$_(n);return s&&Pn(n.declarations)>1?s.flags&64?dt(n.declarations,b_):$i(n.declarations,b_):!!n.valueDeclaration&&b_(n.valueDeclaration)||Pn(n.declarations)&&$i(n.declarations,b_)}function b_(n){return!!(Ov(n)&536870912)}function _0(n,s,c){const _=yr(n,p._0_is_deprecated,c);return v_(s,_)}function ek(n,s,c,_){const d=c?yr(n,p.The_signature_0_of_1_is_deprecated,_,c):yr(n,p._0_is_deprecated,_);return v_(s,d)}function Pa(n,s,c){y++;const _=new u(n|33554432,s);return _.links=new L$,_.links.checkFlags=c||0,_}function fp(n,s){const c=Pa(1,n);return c.links.type=s,c}function VT(n,s){const c=Pa(4,n);return c.links.type=s,c}function tk(n){let s=0;return n&2&&(s|=111551),n&1&&(s|=111550),n&4&&(s|=0),n&8&&(s|=900095),n&16&&(s|=110991),n&32&&(s|=899503),n&64&&(s|=788872),n&256&&(s|=899327),n&128&&(s|=899967),n&512&&(s|=110735),n&8192&&(s|=103359),n&32768&&(s|=46015),n&65536&&(s|=78783),n&262144&&(s|=526824),n&524288&&(s|=788968),n&2097152&&(s|=2097152),s}function UT(n,s){s.mergeId||(s.mergeId=O$,O$++),OT[s.mergeId]=n}function Qy(n){const s=Pa(n.flags,n.escapedName);return s.declarations=n.declarations?n.declarations.slice():[],s.parent=n.parent,n.valueDeclaration&&(s.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(s.constEnumOnlyModule=!0),n.members&&(s.members=new Map(n.members)),n.exports&&(s.exports=new Map(n.exports)),UT(s,n),s}function pg(n,s,c=!1){if(!(n.flags&tk(s.flags))||(s.flags|n.flags)&67108864){if(s===n)return n;if(!(n.flags&33554432)){const d=Rc(n);if(d===st)return s;n=Qy(d)}s.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!s.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=s.flags,s.valueDeclaration&&Zw(n,s.valueDeclaration),Lr(n.declarations,s.declarations),s.members&&(n.members||(n.members=Us()),xf(n.members,s.members,c)),s.exports&&(n.exports||(n.exports=Us()),xf(n.exports,s.exports,c)),c||UT(n,s)}else if(n.flags&1024)n!==Ge&&Fe(s.declarations&&os(s.declarations[0]),p.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ni(n));else{const d=!!(n.flags&384||s.flags&384),h=!!(n.flags&2||s.flags&2),T=d?p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:h?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,P=s.declarations&&Bn(s.declarations[0]),O=n.declarations&&Bn(n.declarations[0]),$=Nw(P,j.checkJs),te=Nw(O,j.checkJs),ce=ni(s);if(P&&O&&ac&&!d&&P!==O){const Se=Cb(P.path,O.path)===-1?P:O,Te=Se===P?O:P,Ze=O7(ac,`${Se.path}|${Te.path}`,()=>({firstFile:Se,secondFile:Te,conflictingSymbols:new Map})),St=O7(Ze.conflictingSymbols,ce,()=>({isBlockScoped:h,firstFileLocations:[],secondFileLocations:[]}));$||_(St.firstFileLocations,s),te||_(St.secondFileLocations,n)}else $||Yy(s,T,ce,n),te||Yy(n,T,ce,s)}return n;function _(d,h){if(h.declarations)for(const T of h.declarations)Gf(d,T)}}function Yy(n,s,c,_){mn(n.declarations,d=>{_d(d,s,c,_.declarations)})}function _d(n,s,c,_){const d=(hy(n,!1)?ZW(n):os(n))||n,h=R2(d,s,c);for(const T of _||Ve){const P=(hy(T,!1)?ZW(T):os(T))||T;if(P===d)continue;h.relatedInformation=h.relatedInformation||[];const O=yr(P,p._0_was_also_declared_here,c),$=yr(P,p.and_here);Pn(h.relatedInformation)>=5||dt(h.relatedInformation,te=>N3(te,$)===0||N3(te,O)===0)||fa(h,Pn(h.relatedInformation)?$:O)}}function Nm(n,s){if(!(n!=null&&n.size))return s;if(!(s!=null&&s.size))return n;const c=Us();return xf(c,n),xf(c,s),c}function xf(n,s,c=!1){s.forEach((_,d)=>{const h=n.get(d);n.set(d,h?pg(h,_,c):Ra(_))})}function P1(n){var s,c,_;const d=n.parent;if(((s=d.symbol.declarations)==null?void 0:s[0])!==d){E.assert(d.symbol.declarations.length>1);return}if(Pd(d))xf(pe,d.symbol.exports);else{const h=n.parent.parent.flags&33554432?void 0:p.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let T=g0(n,n,h,!0);if(!T)return;if(T=lf(T),T.flags&1920)if(dt(nc,P=>T===P.symbol)){const P=pg(d.symbol,T,!0);q_||(q_=new Map),q_.set(n.text,P)}else{if(((c=T.exports)==null?void 0:c.get("__export"))&&((_=d.symbol.exports)==null?void 0:_.size)){const P=Cre(T,"resolvedExports");for(const[O,$]of ia(d.symbol.exports.entries()))P.has(O)&&!T.exports.has(O)&&pg(P.get(O),$)}pg(T,d.symbol)}else Fe(n,p.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function WT(n,s,c){s.forEach((d,h)=>{const T=n.get(h);T?mn(T.declarations,_(Li(h),c)):n.set(h,d)});function _(d,h){return T=>xa.add(yr(T,h,d))}}function Fi(n){var c;if(n.flags&33554432)return n.links;const s=ya(n);return(c=FT[s])!=null?c:FT[s]=new L$}function Jr(n){const s=Ba(n);return I2[s]||(I2[s]=new WPe)}function Xd(n){return n.kind===312&&!Yu(n)}function H_(n,s,c){if(c){const _=Ra(n.get(s));if(_&&(E.assert((rc(_)&1)===0,"Should never get an instantiated symbol here."),_.flags&c||_.flags&2097152&&Su(_)&c))return _}}function U4(n,s){const c=n.parent,_=n.parent.parent,d=H_(c.locals,s,111551),h=H_(Ph(_.symbol),s,111551);return d&&h?[d,h]:E.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Qd(n,s){const c=Bn(n),_=Bn(s),d=mm(n);if(c!==_){if(R&&(c.externalModuleIndicator||_.externalModuleIndicator)||!Ao(j)||Vb(s)||n.flags&33554432||T(s,n))return!0;const O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(_)}if(n.pos<=s.pos&&!(Is(n)&&Jw(s.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){const O=vy(s,208);return O?On(O,Fa)!==On(n,Fa)||n.posGa(O)&&O.parent.parent===n);if(Is(n))return!P(n,s,!1);if(Du(n,n.parent))return!(_e&&Pl(n)===Pl(s)&&T(s,n))}return!0}if(s.parent.kind===281||s.parent.kind===277&&s.parent.isExportEquals||s.kind===277&&s.isExportEquals||!!(s.flags&16777216)||Vb(s)||ase(s))return!0;if(T(s,n))return _e&&Pl(n)&&(Is(n)||Du(n,n.parent))?!P(n,s,!0):!0;return!1;function h(O,$){switch(O.parent.parent.kind){case 243:case 248:case 250:if(so($,O,d))return!0;break}const te=O.parent.parent;return i6(te)&&so($,te.expression,d)}function T(O,$){return!!On(O,te=>{if(te===d)return"quit";if(ks(te))return!0;if(ec(te))return $.posO.end?!1:On($,Se=>{if(Se===O)return"quit";switch(Se.kind){case 219:return!0;case 172:return te&&(Is(O)&&Se.parent===O.parent||Du(O,O.parent)&&Se.parent===O.parent.parent)?"quit":!0;case 241:switch(Se.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function W4(n,s,c){const _=Oa(j),d=s;if(ns(c)&&d.body&&n.valueDeclaration&&n.valueDeclaration.pos>=d.body.pos&&n.valueDeclaration.end<=d.body.end&&_>=2){const P=Jr(d);return P.declarationRequiresScopeChange===void 0&&(P.declarationRequiresScopeChange=mn(d.parameters,h)||!1),!P.declarationRequiresScopeChange}return!1;function h(P){return T(P.name)||!!P.initializer&&T(P.initializer)}function T(P){switch(P.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(P.name);case 172:return $c(P)?!_e:T(P.name);default:return eW(P)||c_(P)?_<7:Fa(P)&&P.dotDotDotToken&&td(P.parent)?_<4:Di(P)?!1:ys(P,T)||!1}}}function B2(n){return Pb(n)&&Ug(n.type)||_8(n)&&Ug(n.typeExpression)}function Mc(n,s,c,_,d,h,T=!1,P=!0){return I1(n,s,c,_,d,h,T,P,H_)}function I1(n,s,c,_,d,h,T,P,O){var $,te,ce;const Se=n;let Te,Ze,St,Kt,_n,Gn=!1;const Nn=n;let Ht,Mn=!1;e:for(;n;){if(s==="const"&&B2(n))return;if(Ew(n)&&Ze&&n.name===Ze&&(Ze=n,n=n.parent),fm(n)&&n.locals&&!Xd(n)&&(Te=O(n.locals,s,c))){let dn=!0;if(ks(n)&&Ze&&Ze!==n.body?(c&Te.flags&788968&&Ze.kind!==327&&(dn=Te.flags&262144?Ze===n.type||Ze.kind===169||Ze.kind===348||Ze.kind===349||Ze.kind===168:!1),c&Te.flags&3&&(W4(Te,n,Ze)?dn=!1:Te.flags&1&&(dn=Ze.kind===169||Ze===n.type&&!!On(Te.valueDeclaration,ns)))):n.kind===194&&(dn=Ze===n.trueType),dn)break e;Te=void 0}switch(Gn=Gn||xu(n,Ze),n.kind){case 312:if(!Yu(n))break;Mn=!0;case 267:const dn=(($=hr(n))==null?void 0:$.exports)||U;if(n.kind===312||Nc(n)&&n.flags&33554432&&!Pd(n)){if(Te=dn.get("default")){const ws=I6(Te);if(ws&&Te.flags&c&&ws.escapedName===s)break e;Te=void 0}const Un=dn.get(s);if(Un&&Un.flags===2097152&&(uc(Un,281)||uc(Un,280)))break}if(s!=="default"&&(Te=O(dn,s,c&2623475)))if(Ri(n)&&n.commonJsModuleIndicator&&!((te=Te.declarations)!=null&&te.some(Zf)))Te=void 0;else break e;break;case 266:if(Te=O(((ce=hr(n))==null?void 0:ce.exports)||U,s,c&8)){_&&ed(j)&&!(n.flags&33554432)&&Bn(n)!==Bn(Te.valueDeclaration)&&Fe(Nn,p.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Li(s),Je,`${Li(ku(n).escapedName)}.${Li(s)}`);break e}break;case 172:if(!Ps(n)){const Un=lv(n.parent);Un&&Un.locals&&O(Un.locals,s,c&111551)&&(E.assertNode(n,Is),Kt=n)}break;case 263:case 231:case 264:if(Te=O(hr(n).members||U,s,c&788968)){if(!Th(Te,n)){Te=void 0;break}if(Ze&&Ps(Ze)){_&&Fe(Nn,p.Static_members_cannot_reference_class_type_parameters);return}break e}if(Fl(n)&&c&32){const Un=n.name;if(Un&&s===Un.escapedText){Te=n.symbol;break e}}break;case 233:if(Ze===n.expression&&n.parent.token===96){const Un=n.parent.parent;if(ei(Un)&&(Te=O(hr(Un).members,s,c&788968))){_&&Fe(Nn,p.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Ht=n.parent.parent,(ei(Ht)||Ht.kind===264)&&(Te=O(hr(Ht).members,s,c&788968))){_&&Fe(Nn,p.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Oa(j)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&s==="arguments"){Te=tt;break e}break;case 218:if(c&3&&s==="arguments"){Te=tt;break e}if(c&16){const Un=n.name;if(Un&&s===Un.escapedText){Te=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(Nl(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:const Cn=l3(n);Cn&&(n=Cn.parent);break;case 169:Ze&&(Ze===n.initializer||Ze===n.name&&Ns(Ze))&&(_n||(_n=n));break;case 208:Ze&&(Ze===n.initializer||Ze===n.name&&Ns(Ze))&&Jb(n)&&!_n&&(_n=n);break;case 195:if(c&262144){const Un=n.typeParameter.name;if(Un&&s===Un.escapedText){Te=n.typeParameter.symbol;break e}}break;case 281:Ze&&Ze===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Lp(n)&&(St=n),Ze=n,n=id(n)?H9(n)||n.parent:(rd(n)||CF(n))&&yy(n)||n.parent}if(h&&Te&&(!St||Te!==St.symbol)&&(Te.isReferenced|=c),!Te){if(Ze&&(E.assertNode(Ze,Ri),Ze.commonJsModuleIndicator&&s==="exports"&&c&Ze.symbol.flags))return Ze.symbol;T||(Te=O(pe,s,c))}if(!Te&&Se&&Zn(Se)&&Se.parent&&du(Se.parent,!1))return mt;function Xt(){return Kt&&!_e?(Fe(Nn,Nn&&Kt.type&&dw(Kt.type,Nn.pos)?p.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:p.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,no(Kt.name),T_(d)),!0):!1}if(Te){if(_&&Xt())return}else{_&&r(()=>{if(!Nn||Nn.parent.kind!==331&&!J2(Nn,s,d)&&!Xt()&&!u0(Nn)&&!xh(Nn,s,c)&&!ud(Nn,s)&&!rk(Nn,s,c)&&!Pm(Nn,s,c)&&!f0(Nn,s,c)){let dn,Cn;if(d&&(Cn=ott(d),Cn&&Fe(Nn,_,T_(d),Cn)),!Cn&&P&&IT{if(Nn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const dn=X_(Te);(dn.flags&2||dn.flags&32||dn.flags&384)&&ik(dn,Nn)}if(Te&&Mn&&(c&111551)===111551&&!(Se.flags&16777216)){const dn=Ra(Te);Pn(dn.declarations)&&$i(dn.declarations,Cn=>cA(Cn)||Ri(Cn)&&!!Cn.symbol.globalExports)&&Tf(!j.allowUmdGlobalAccess,Nn,p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Li(s))}if(Te&&_n&&!Gn&&(c&111551)===111551){const dn=Ra(uJ(Te)),Cn=hm(_n);dn===hr(_n)?Fe(Nn,p.Parameter_0_cannot_reference_itself,no(_n.name)):dn.valueDeclaration&&dn.valueDeclaration.pos>_n.pos&&Cn.parent.locals&&O(Cn.parent.locals,dn.escapedName,c)===dn&&Fe(Nn,p.Parameter_0_cannot_reference_identifier_1_declared_after_it,no(_n.name),no(Nn))}if(Te&&Nn&&c&111551&&Te.flags&2097152&&!(Te.flags&111551)&&!ky(Nn)){const dn=mp(Te,111551);if(dn){const Cn=dn.kind===281||dn.kind===278||dn.kind===280?p._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Un=Li(s);j2(Fe(Nn,Cn,Un),dn,Un)}}}),Te}function j2(n,s,c){return s?fa(n,yr(s,s.kind===281||s.kind===278||s.kind===280?p._0_was_exported_here:p._0_was_imported_here,c)):n}function xu(n,s){return n.kind!==219&&n.kind!==218?X6(n)||(Eo(n)||n.kind===172&&!Ps(n))&&(!s||s!==n.name):s&&s===n.name?!1:n.asteriskToken||Mr(n,512)?!0:!Mb(n)}function Lp(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function T_(n){return $s(n)?Li(n):no(n)}function Th(n,s){if(n.declarations){for(const c of n.declarations)if(c.kind===168&&(id(c.parent)?zx(c.parent):c.parent)===s)return!(id(c.parent)&&Fr(c.parent.parent.tags,Zf))}return!1}function J2(n,s,c){if(!we(n)||n.escapedText!==s||y7e(n)||Vb(n))return!1;const _=tu(n,!1,!1);let d=_;for(;d;){if(ei(d.parent)){const h=hr(d.parent);if(!h)break;const T=$n(h);if(qs(T,s))return Fe(n,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,T_(c),ni(h)),!0;if(d===_&&!Ps(d)){const P=go(h).thisType;if(qs(P,s))return Fe(n,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,T_(c)),!0}}d=d.parent}return!1}function u0(n){const s=O1(n);return s&&Xo(s,64,!0)?(Fe(n,p.Cannot_extend_an_interface_0_Did_you_mean_implements,el(s)),!0):!1}function O1(n){switch(n.kind){case 80:case 211:return n.parent?O1(n.parent):void 0;case 233:if(Sc(n.expression))return n.expression;default:return}}function xh(n,s,c){const _=1920|(Zn(n)?111551:0);if(c===_){const d=Rc(Mc(n,s,788968&~_,void 0,void 0,!1)),h=n.parent;if(d){if(gu(h)){E.assert(h.left===n,"Should only be resolving left side of qualified name as a namespace");const T=h.right.escapedText;if(qs(go(d),T))return Fe(h,p.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,Li(s),Li(T)),!0}return Fe(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Li(s)),!0}}return!1}function f0(n,s,c){if(c&788584){const _=Rc(Mc(n,s,111127,void 0,void 0,!1));if(_&&!(_.flags&1920))return Fe(n,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Li(s)),!0}return!1}function nk(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function ud(n,s){return nk(s)&&n.parent.kind===281?(Fe(n,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,s),!0):!1}function Pm(n,s,c){if(c&111551){if(nk(s))return Sh(n)?Fe(n,p.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,Li(s)):Fe(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Li(s)),!0;const _=Rc(Mc(n,s,788544,void 0,void 0,!1)),d=_&&Su(_);if(_&&d!==void 0&&!(d&111551)){const h=Li(s);return z2(s)?Fe(n,p._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,h):qT(n,_)?Fe(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,h,h==="K"?"P":"K"):Fe(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,h),!0}}return!1}function Sh(n){const s=n.parent.parent,c=s.parent;if(s&&c){const _=tf(s)&&s.token===96,d=f_(c);return _&&d}return!1}function qT(n,s){const c=On(n.parent,_=>Ga(_)||mf(_)?!1:ef(_)||"quit");if(c&&c.members.length===1){const _=go(s);return!!(_.flags&1048576)&&HP(_,384,!0)}return!1}function z2(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function rk(n,s,c){if(c&111127){if(Rc(Mc(n,s,1024,void 0,void 0,!1)))return Fe(n,p.Cannot_use_namespace_0_as_a_value,Li(s)),!0}else if(c&788544&&Rc(Mc(n,s,1536,void 0,void 0,!1)))return Fe(n,p.Cannot_use_namespace_0_as_a_type,Li(s)),!0;return!1}function ik(n,s){var c;if(E.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const _=(c=n.declarations)==null?void 0:c.find(d=>DW(d)||ei(d)||d.kind===266);if(_===void 0)return E.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(_.flags&33554432)&&!Qd(_,s)){let d;const h=no(os(_));n.flags&2?d=Fe(s,p.Block_scoped_variable_0_used_before_its_declaration,h):n.flags&32?d=Fe(s,p.Class_0_used_before_its_declaration,h):n.flags&256&&(d=Fe(s,p.Enum_0_used_before_its_declaration,h)),d&&fa(d,yr(_,p._0_is_declared_here,h))}}function so(n,s,c){return!!s&&!!On(n,_=>_===s||(_===c||ks(_)&&(!Mb(_)||w6(_))?"quit":!1))}function Zy(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function pp(n){return n.declarations&&hx(n.declarations,Ky)}function Ky(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&k6(n)||rr(n)&&pc(n)===2&&k6(n)||Mo(n)&&rr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&ev(n.parent.right)||n.kind===304||n.kind===303&&ev(n.initializer)||n.kind===260&&t2(n)||n.kind===208&&t2(n.parent.parent)}function ev(n){return cD(n)||fo(n)&&vd(n)}function q4(n,s){const c=mg(n);if(c){const d=D3(c.expression).arguments[0];return we(c.name)?Rc(qs(_4e(d),c.name.escapedText)):void 0}if(Mi(n)||n.moduleReference.kind===283){const d=r_(n,$W(n)||a3(n)),h=lf(d);return G_(n,d,h,!1),h}const _=fl(n.moduleReference,s);return sk(n,_),_}function sk(n,s){if(G_(n,void 0,s,!1)&&!n.isTypeOnly){const c=mp(hr(n)),_=c.kind===281||c.kind===278,d=_?p.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:p.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,h=_?p._0_was_exported_here:p._0_was_imported_here,T=c.kind===278?"*":Li(c.name.escapedText);fa(Fe(n.moduleReference,d),yr(c,h,T))}}function V2(n,s,c,_){const d=n.exports.get("export="),h=d?qs($n(d),s,!0):n.exports.get(s),T=Rc(h,_);return G_(c,h,T,!1),T}function Vn(n){return dc(n)&&!n.isExportEquals||Mr(n,1024)||p_(n)}function hc(n){return Qa(n)?op(Bn(n),n):void 0}function Yi(n,s){return n===99&&s===1}function Mp(n){return hc(n)===99&&Tc(n.text,".json")}function F1(n,s,c,_){const d=n&&hc(_);if(n&&d!==void 0){const h=Yi(d,n.impliedNodeFormat);if(d===99||h)return h}if(!X)return!1;if(!n||n.isDeclarationFile){const h=V2(s,"default",void 0,!0);return!(h&&dt(h.declarations,Vn)||V2(s,qo("__esModule"),void 0,c))}return P_(n)?typeof n.externalModuleIndicator!="object"&&!V2(s,qo("__esModule"),void 0,c):sv(s)}function Yd(n,s){const c=r_(n,n.parent.moduleSpecifier);if(c)return Wn(c,n,s)}function Wn(n,s,c){var _;let d;e3(n)?d=n:d=V2(n,"default",s,c);const h=(_=n.declarations)==null?void 0:_.find(Ri),T=tv(s);if(!T)return d;const P=Mp(T),O=F1(h,n,c,T);if(!d&&!O&&!P)if(sv(n)&&!X){const $=R>=5?"allowSyntheticDefaultImports":"esModuleInterop",ce=n.exports.get("export=").valueDeclaration,Se=Fe(s.name,p.Module_0_can_only_be_default_imported_using_the_1_flag,ni(n),$);ce&&fa(Se,yr(ce,p.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,$))}else Sm(s)?nv(n,s):kh(n,n,s,Ax(s)&&s.propertyName||s.name);else if(O||P){const $=lf(n,c)||Rc(n,c);return G_(s,n,$,!1),$}return G_(s,d,void 0,!1),d}function tv(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return km(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return E.assertNever(n)}}function nv(n,s){var c,_,d;if((c=n.exports)!=null&&c.has(s.symbol.escapedName))Fe(s.name,p.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ni(n),ni(s.symbol));else{const h=Fe(s.name,p.Module_0_has_no_default_export,ni(n)),T=(_=n.exports)==null?void 0:_.get("__export");if(T){const P=(d=T.declarations)==null?void 0:d.find(O=>{var $,te;return!!(Yc(O)&&O.moduleSpecifier&&((te=($=r_(O,O.moduleSpecifier))==null?void 0:$.exports)==null?void 0:te.has("default")))});P&&fa(h,yr(P,p.export_Asterisk_does_not_re_export_a_default))}}}function ul(n,s){const c=n.parent.parent.moduleSpecifier,_=r_(n,c),d=iv(_,c,s,!1);return G_(n,_,d,!1),d}function fd(n,s){const c=n.parent.moduleSpecifier,_=c&&r_(n,c),d=c&&iv(_,c,s,!1);return G_(n,_,d,!1),d}function Rp(n,s){if(n===st&&s===st)return st;if(n.flags&790504)return n;const c=Pa(n.flags|s.flags,n.escapedName);return E.assert(n.declarations||s.declarations),c.declarations=zk(Ki(n.declarations,s.declarations),oy),c.parent=n.parent||s.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),s.members&&(c.members=new Map(s.members)),n.exports&&(c.exports=new Map(n.exports)),c}function U2(n,s,c,_){var d;if(n.flags&1536){const h=zu(n).get(s.escapedText),T=Rc(h,_),P=(d=Fi(n).typeOnlyExportStarMap)==null?void 0:d.get(s.escapedText);return G_(c,h,T,!1,P,s.escapedText),T}}function rv(n,s){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return Rc(qs(ii(c),s))}}function dg(n,s,c=!1){var _;const d=$W(n)||n.moduleSpecifier,h=r_(n,d),T=!kr(s)&&s.propertyName||s.name;if(!we(T))return;const P=T.escapedText==="default"&&X,O=iv(h,d,!1,P);if(O&&T.escapedText){if(e3(h))return h;let $;h&&h.exports&&h.exports.get("export=")?$=qs($n(O),T.escapedText,!0):$=rv(O,T.escapedText),$=Rc($,c);let te=U2(O,T,s,c);if(te===void 0&&T.escapedText==="default"){const Se=(_=h.declarations)==null?void 0:_.find(Ri);(Mp(d)||F1(Se,h,c,d))&&(te=lf(h,c)||Rc(h,c))}const ce=te&&$&&te!==$?Rp($,te):te||$;return ce||kh(h,O,n,T),ce}}function kh(n,s,c,_){var d;const h=m0(n,c),T=no(_),P=hz(_,s);if(P!==void 0){const O=ni(P),$=Fe(_,p._0_has_no_exported_member_named_1_Did_you_mean_2,h,T,O);P.valueDeclaration&&fa($,yr(P.valueDeclaration,p._0_is_declared_here,O))}else(d=n.exports)!=null&&d.has("default")?Fe(_,p.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,h,T):ak(c,_,T,n,h)}function ak(n,s,c,_,d){var h,T;const P=(T=(h=Hr(_.valueDeclaration,fm))==null?void 0:h.locals)==null?void 0:T.get(s.escapedText),O=_.exports;if(P){const $=O==null?void 0:O.get("export=");if($)Vu($,P)?pd(n,s,c,d):Fe(s,p.Module_0_has_no_exported_member_1,d,c);else{const te=O?Fr(Ure(O),Se=>!!Vu(Se,P)):void 0,ce=te?Fe(s,p.Module_0_declares_1_locally_but_it_is_exported_as_2,d,c,ni(te)):Fe(s,p.Module_0_declares_1_locally_but_it_is_not_exported,d,c);P.declarations&&fa(ce,...an(P.declarations,(Se,Te)=>yr(Se,Te===0?p._0_is_declared_here:p.and_here,c)))}}else Fe(s,p.Module_0_has_no_exported_member_1,d,c)}function pd(n,s,c,_){if(R>=5){const d=bm(j)?p._0_can_only_be_imported_by_using_a_default_import:p._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Fe(s,d,c)}else if(Zn(n)){const d=bm(j)?p._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:p._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Fe(s,d,c)}else{const d=bm(j)?p._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:p._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Fe(s,d,c,c,_)}}function p0(n,s){if(yu(n)&&lr(n.propertyName||n.name)==="default"){const T=tv(n),P=T&&r_(n,T);if(P)return Wn(P,n,s)}const c=Fa(n)?hm(n):n.parent.parent.parent,_=mg(c),d=dg(c,_||n,s),h=n.propertyName||n.name;return _&&d&&we(h)?Rc(qs($n(d),h.escapedText),s):(G_(n,void 0,d,!1),d)}function mg(n){if(Mi(n)&&n.initializer&&kr(n.initializer))return n.initializer}function HT(n,s){if(Nd(n.parent)){const c=lf(n.parent.symbol,s);return G_(n,void 0,c,!1),c}}function gg(n,s,c){if(lr(n.propertyName||n.name)==="default"){const d=tv(n),h=d&&r_(n,d);if(h)return Wn(h,n,!!c)}const _=n.parent.parent.moduleSpecifier?dg(n.parent.parent,n,c):Xo(n.propertyName||n.name,s,!1,c);return G_(n,void 0,_,!1),_}function d0(n,s){const c=dc(n)?n.expression:n.right,_=W2(c,s);return G_(n,void 0,_,!1),_}function W2(n,s){if(Fl(n))return jc(n).symbol;if(!Xu(n)&&!Sc(n))return;const c=Xo(n,901119,!0,s);return c||(jc(n),Jr(n).resolvedSymbol)}function GT(n,s){if(!!(rr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64))return W2(n.parent.right,s)}function hg(n,s=!1){switch(n.kind){case 271:case 260:return q4(n,s);case 273:return Yd(n,s);case 274:return ul(n,s);case 280:return fd(n,s);case 276:case 208:return p0(n,s);case 281:return gg(n,901119,s);case 277:case 226:return d0(n,s);case 270:return HT(n,s);case 304:return Xo(n.name,901119,!0,s);case 303:return W2(n.initializer,s);case 212:case 211:return GT(n,s);default:return E.fail()}}function dp(n,s=901119){return n?(n.flags&(2097152|s))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Rc(n,s){return!s&&dp(n)?gl(n):n}function gl(n){E.assert((n.flags&2097152)!==0,"Should only get Alias here.");const s=Fi(n);if(s.aliasTarget)s.aliasTarget===Ut&&(s.aliasTarget=st);else{s.aliasTarget=Ut;const c=pp(n);if(!c)return E.fail();const _=hg(c);s.aliasTarget===Ut?s.aliasTarget=_||st:Fe(c,p.Circular_definition_of_import_alias_0,ni(n))}return s.aliasTarget}function L1(n){if(Fi(n).aliasTarget!==Ut)return gl(n)}function Su(n,s,c){const _=s&&mp(n),d=_&&Yc(_),h=_&&(d?r_(_.moduleSpecifier,_.moduleSpecifier,!0):gl(_.symbol)),T=d&&h?Zd(h):void 0;let P=c?0:n.flags,O;for(;n.flags&2097152;){const $=X_(gl(n));if(!d&&$===h||(T==null?void 0:T.get($.escapedName))===$)break;if($===st)return 67108863;if($===n||(O==null?void 0:O.has($)))break;$.flags&2097152&&(O?O.add($):O=new Set([n,$])),P|=$.flags,n=$}return P}function G_(n,s,c,_,d,h){if(!n||kr(n))return!1;const T=hr(n);if(Gv(n)){const O=Fi(T);return O.typeOnlyDeclaration=n,!0}if(d){const O=Fi(T);return O.typeOnlyDeclaration=d,T.escapedName!==h&&(O.typeOnlyExportStarName=h),!0}const P=Fi(T);return yg(P,s,_)||yg(P,c,_)}function yg(n,s,c){var d,h;var _;if(s&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const T=(d=(_=s.exports)==null?void 0:_.get("export="))!=null?d:s,P=T.declarations&&Fr(T.declarations,Gv);n.typeOnlyDeclaration=(h=P!=null?P:Fi(T).typeOnlyDeclaration)!=null?h:!1}return!!n.typeOnlyDeclaration}function mp(n,s){if(!(n.flags&2097152))return;const c=Fi(n);if(s===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){const _=c.typeOnlyDeclaration.kind===278?Rc(Zd(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):gl(c.typeOnlyDeclaration.symbol);return Su(_)&s?c.typeOnlyDeclaration:void 0}}function M1(n){if(!at)return;const s=hr(n),c=gl(s);c&&(c===st||Su(s,!0)&111551&&!S7(c))&&vg(s)}function vg(n){E.assert(at);const s=Fi(n);if(!s.referenced){s.referenced=!0;const c=pp(n);if(!c)return E.fail();y6(c)&&Su(Rc(n))&111551&&jc(c.moduleReference)}}function q2(n){const s=Fi(n);s.constEnumReferenced||(s.constEnumReferenced=!0)}function fl(n,s){return n.kind===80&&x3(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Xo(n,1920,!1,s):(E.assert(n.parent.kind===271),Xo(n,901119,!1,s))}function m0(n,s){return n.parent?m0(n.parent,s)+"."+ni(n):ni(n,s,void 0,36)}function Im(n){for(;gu(n.parent);)n=n.parent;return n}function H2(n){let s=Ku(n),c=Mc(s,s.escapedText,111551,void 0,s,!0);if(!!c){for(;gu(s.parent);){const _=$n(c);if(c=qs(_,s.parent.right.escapedText),!c)return;s=s.parent}return c}}function Xo(n,s,c,_,d){if(fc(n))return;const h=1920|(Zn(n)?s&111551:0);let T;if(n.kind===80){const P=s===h||Do(n)?p.Cannot_find_namespace_0:n3e(Ku(n)),O=Zn(n)&&!Do(n)?bg(n,s):void 0;if(T=Ra(Mc(d||n,n.escapedText,s,c||O?void 0:P,n,!0,!1)),!T)return Ra(O)}else if(n.kind===166||n.kind===211){const P=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name;let $=Xo(P,h,c,!1,d);if(!$||fc(O))return;if($===st)return $;if($.valueDeclaration&&Zn($.valueDeclaration)&&Cc(j)!==100&&Mi($.valueDeclaration)&&$.valueDeclaration.initializer&&j8e($.valueDeclaration.initializer)){const te=$.valueDeclaration.initializer.arguments[0],ce=r_(te,te);if(ce){const Se=lf(ce);Se&&($=Se)}}if(T=Ra(H_(zu($),O.escapedText,s)),!T&&$.flags&2097152&&(T=Ra(H_(zu(gl($)),O.escapedText,s))),!T){if(!c){const te=m0($),ce=no(O),Se=hz(O,$);if(Se){Fe(O,p._0_has_no_exported_member_named_1_Did_you_mean_2,te,ce,ni(Se));return}const Te=gu(n)&&Im(n);if(Uc&&s&788968&&Te&&!Z6(Te.parent)&&H2(Te)){Fe(Te,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Nu(Te));return}if(s&1920&&gu(n.parent)){const St=Ra(H_(zu($),O.escapedText,788968));if(St){Fe(n.parent.right,p.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,ni(St),Li(n.parent.right.escapedText));return}}Fe(O,p.Namespace_0_has_no_exported_member_1,te,ce)}return}}else E.assertNever(n,"Unknown entity name kind.");return E.assert((rc(T)&1)===0,"Should never get an instantiated symbol here."),!Do(n)&&Xu(n)&&(T.flags&2097152||n.parent.kind===277)&&G_(aq(n),T,void 0,!0),T.flags&s||_?T:gl(T)}function bg(n,s){if(hJ(n.parent)){const c=$T(n.parent);if(c)return Mc(c,n.escapedText,s,void 0,n,!0)}}function $T(n){if(On(n,d=>s6(d)||d.flags&16777216?Zf(d):"quit"))return;const c=zx(n);if(c&&ql(c)&&Yw(c.expression)){const d=hr(c.expression.left);if(d)return R1(d)}if(c&&fo(c)&&Yw(c.parent)&&ql(c.parent.parent)){const d=hr(c.parent.left);if(d)return R1(d)}if(c&&(Sp(c)||Dc(c))&&rr(c.parent.parent)&&pc(c.parent.parent)===6){const d=hr(c.parent.parent.left);if(d)return R1(d)}const _=Jx(n);if(_&&ks(_)){const d=hr(_);return d&&d.valueDeclaration}}function R1(n){const s=n.parent.valueDeclaration;return s?(o3(s)?Lx(s):Ib(s)?Hw(s):void 0)||s:void 0}function ok(n){const s=n.valueDeclaration;if(!s||!Zn(s)||n.flags&524288||hy(s,!1))return;const c=Mi(s)?Hw(s):Lx(s);if(c){const _=ku(c);if(_)return Qse(_,n)}}function r_(n,s,c){const d=Cc(j)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations;return g0(n,s,c?void 0:d)}function g0(n,s,c,_=!1){return Qa(s)?Ch(n,s.text,c,s,_):void 0}function Ch(n,s,c,_,d=!1){var h,T,P,O,$,te,ce,Se,Te,Ze;if(ts(s,"@types/")){const Cn=p.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Un=NC(s,"@types/");Fe(_,Cn,Un,s)}const St=Wre(s,!0);if(St)return St;const Kt=Bn(n),_n=Qa(n)?n:((h=On(n,Zu))==null?void 0:h.arguments[0])||((T=On(n,bl))==null?void 0:T.moduleSpecifier)||((P=On(n,gy))==null?void 0:P.moduleReference.expression)||((O=On(n,Yc))==null?void 0:O.moduleSpecifier)||(($=Nc(n)?n:n.parent&&Nc(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:$.name)||((te=my(n)?n:void 0)==null?void 0:te.argument.literal),Gn=_n&&Qa(_n)?op(Kt,_n):Kt.impliedNodeFormat,Nn=Cc(j),Ht=Ox(Kt,s,Gn),Mn=Ht&&FX(j,Ht,Kt),Xt=Ht&&(!Mn||Mn===p.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Ht.resolvedFileName);if(Xt){if(Mn&&Fe(_,Mn,s,Ht.resolvedFileName),Ht.resolvedUsingTsExtension&&su(s)){const Cn=((ce=On(n,bl))==null?void 0:ce.importClause)||On(n,Yp(Hl,Yc));(Cn&&!Cn.isTypeOnly||On(n,Zu))&&Fe(_,p.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,dn(E.checkDefined(iO(s))))}else if(Ht.resolvedUsingTsExtension&&!m4(j,Kt.fileName)){const Cn=((Se=On(n,bl))==null?void 0:Se.importClause)||On(n,Yp(Hl,Yc));if(!((Cn==null?void 0:Cn.isTypeOnly)||On(n,ag))){const Un=E.checkDefined(iO(s));Fe(_,p.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Un)}}if(Xt.symbol){if(Ht.isExternalLibraryImport&&!OD(Ht.extension)&&Tg(!1,_,Kt,Gn,Ht,s),Nn===3||Nn===99){const Cn=Kt.impliedNodeFormat===1&&!On(n,Zu)||!!On(n,Hl),Un=On(n,Sr=>ag(Sr)||Yc(Sr)||bl(Sr)),ws=Un&&ag(Un)?(Te=Un.assertions)==null?void 0:Te.assertClause:Un==null?void 0:Un.assertClause;if(Cn&&Xt.impliedNodeFormat===99&&!ES(ws))if(On(n,Hl))Fe(_,p.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,s);else{let Sr;const Ts=ng(Kt.fileName);if(Ts===".ts"||Ts===".js"||Ts===".tsx"||Ts===".jsx"){const cc=Kt.packageJsonScope,uu=Ts===".ts"?".mts":Ts===".js"?".mjs":void 0;cc&&!cc.contents.packageJsonContent.type?uu?Sr=_s(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,uu,Pi(cc.packageDirectory,"package.json")):Sr=_s(void 0,p.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Pi(cc.packageDirectory,"package.json")):uu?Sr=_s(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,uu):Sr=_s(void 0,p.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}xa.add(Wg(Bn(_),_,_s(Sr,p.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,s)))}}return Ra(Xt.symbol)}c&&Fe(_,p.File_0_is_not_a_module,Xt.fileName);return}if(nc){const Cn=gV(nc,Un=>Un.pattern,s);if(Cn){const Un=q_&&q_.get(s);return Ra(Un||Cn.symbol)}}if(Ht&&!OD(Ht.extension)&&Mn===void 0||Mn===p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(d){const Cn=p.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Fe(_,Cn,s,Ht.resolvedFileName)}else Tg(fe&&!!c,_,Kt,Gn,Ht,s);return}if(c){if(Ht){const Cn=e.getProjectReferenceRedirect(Ht.resolvedFileName);if(Cn){Fe(_,p.Output_file_0_has_not_been_built_from_source_file_1,Cn,Ht.resolvedFileName);return}}if(Mn)Fe(_,Mn,s,Ht.resolvedFileName);else{const Cn=$u(s)&&!Hk(s),Un=Nn===3||Nn===99;if(!qb(j)&&Hc(s,".json")&&Nn!==1&&pO(j))Fe(_,p.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,s);else if(Gn===99&&Un&&Cn){const ws=fs(s,bi(Kt.path)),Sr=(Ze=V4.find(([Ts,cc])=>e.fileExists(ws+Ts)))==null?void 0:Ze[1];Sr?Fe(_,p.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,s+Sr):Fe(_,p.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Fe(_,c,s)}}return;function dn(Cn){const Un=ID(s,Cn);if(fO(R)||Gn===99){const ws=su(s)&&m4(j);return Un+(Cn===".mts"||Cn===".d.mts"?ws?".mts":".mjs":Cn===".cts"||Cn===".d.mts"?ws?".cts":".cjs":ws?".ts":".js")}return Un}}function Tg(n,s,c,_,{packageId:d,resolvedFileName:h},T){let P;!Al(T)&&d&&(P=xW(c,e,T,_,d.name)),Tf(n,s,_s(P,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,h))}function lf(n,s){if(n!=null&&n.exports){const c=Rc(n.exports.get("export="),s),_=G2(Ra(c),Ra(n));return Ra(_)||n}}function G2(n,s){if(!n||n===st||n===s||s.exports.size===1||n.flags&2097152)return n;const c=Fi(n);if(c.cjsExportMerged)return c.cjsExportMerged;const _=n.flags&33554432?n:Qy(n);return _.flags=_.flags|512,_.exports===void 0&&(_.exports=Us()),s.exports.forEach((d,h)=>{h!=="export="&&_.exports.set(h,_.exports.has(h)?pg(_.exports.get(h),d):d)}),_===n&&(Fi(_).resolvedExports=void 0,Fi(_).resolvedMembers=void 0),Fi(_).cjsExportMerged=_,c.cjsExportMerged=_}function iv(n,s,c,_){var d;const h=lf(n,c);if(!c&&h){if(!_&&!(h.flags&1539)&&!uc(h,312)){const P=R>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Fe(s,p.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,P),h}const T=s.parent;if(bl(T)&&T6(T)||Zu(T)){const P=Zu(T)?T.arguments[0]:T.moduleSpecifier,O=$n(h),$=R8e(O,h,n,P);if($)return B1(h,$,T);const te=(d=n==null?void 0:n.declarations)==null?void 0:d.find(Ri),ce=te&&Yi(hc(P),te.impliedNodeFormat);if(bm(j)||ce){let Se=nP(O,0);if((!Se||!Se.length)&&(Se=nP(O,1)),Se&&Se.length||qs(O,"default",!0)||ce){const Te=O.flags&3670016?B8e(O,h,n,P):Yse(h,h.parent);return B1(h,Te,T)}}}}return h}function B1(n,s,c){const _=Pa(n.flags,n.escapedName);_.declarations=n.declarations?n.declarations.slice():[],_.parent=n.parent,_.links.target=n,_.links.originatingImport=c,n.valueDeclaration&&(_.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),n.members&&(_.members=new Map(n.members)),n.exports&&(_.exports=new Map(n.exports));const d=Up(s);return _.links.type=yc(_,d.members,Ve,Ve,d.indexInfos),_}function sv(n){return n.exports.get("export=")!==void 0}function av(n){return Ure(Zd(n))}function Sf(n){const s=av(n),c=lf(n);if(c!==n){const _=$n(c);ov(_)&&Lr(s,za(_))}return s}function XT(n,s){Zd(n).forEach((d,h)=>{Y2(h)||s(d,h)});const _=lf(n);if(_!==n){const d=$n(_);ov(d)&&PXe(d,(h,T)=>{s(h,T)})}}function $2(n,s){const c=Zd(s);if(c)return c.get(n)}function QT(n,s){const c=$2(n,s);if(c)return c;const _=lf(s);if(_===s)return;const d=$n(_);return ov(d)?qs(d,n):void 0}function ov(n){return!(n.flags&402784252||Br(n)&1||wf(n)||_a(n))}function zu(n){return n.flags&6256?Cre(n,"resolvedExports"):n.flags&1536?Zd(n):n.exports||U}function Zd(n){const s=Fi(n);if(!s.resolvedExports){const{exports:c,typeOnlyExportStarMap:_}=ck(n);s.resolvedExports=c,s.typeOnlyExportStarMap=_}return s.resolvedExports}function j1(n,s,c,_){!s||s.forEach((d,h)=>{if(h==="default")return;const T=n.get(h);if(!T)n.set(h,d),c&&_&&c.set(h,{specifierText:el(_.moduleSpecifier)});else if(c&&_&&T&&Rc(T)!==Rc(d)){const P=c.get(h);P.exportsWithDuplicate?P.exportsWithDuplicate.push(_):P.exportsWithDuplicate=[_]}})}function ck(n){const s=[];let c;const _=new Set;n=lf(n);const d=h(n)||U;return c&&_.forEach(T=>c.delete(T)),{exports:d,typeOnlyExportStarMap:c};function h(T,P,O){if(!O&&(T==null?void 0:T.exports)&&T.exports.forEach((ce,Se)=>_.add(Se)),!(T&&T.exports&&Gf(s,T)))return;const $=new Map(T.exports),te=T.exports.get("__export");if(te){const ce=Us(),Se=new Map;if(te.declarations)for(const Te of te.declarations){const Ze=r_(Te,Te.moduleSpecifier),St=h(Ze,Te,O||Te.isTypeOnly);j1(ce,St,Se,Te)}Se.forEach(({exportsWithDuplicate:Te},Ze)=>{if(!(Ze==="export="||!(Te&&Te.length)||$.has(Ze)))for(const St of Te)xa.add(yr(St,p.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Se.get(Ze).specifierText,Li(Ze)))}),j1($,ce)}return P!=null&&P.isTypeOnly&&(c!=null||(c=new Map),$.forEach((ce,Se)=>c.set(Se,P))),$}}function Ra(n){let s;return n&&n.mergeId&&(s=OT[n.mergeId])?s:n}function hr(n){return Ra(n.symbol&&uJ(n.symbol))}function ku(n){return Nd(n)?hr(n):void 0}function $_(n){return Ra(n.parent&&uJ(n.parent))}function J1(n,s){const c=Bn(s),_=Ba(c),d=Fi(n);let h;if(d.extendedContainersByFile&&(h=d.extendedContainersByFile.get(_)))return h;if(c&&c.imports){for(const P of c.imports){if(Do(P))continue;const O=r_(s,P,!0);!O||!Eh(O,n)||(h=gn(h,O))}if(Pn(h))return(d.extendedContainersByFile||(d.extendedContainersByFile=new Map)).set(_,h),h}if(d.extendedContainers)return d.extendedContainers;const T=e.getSourceFiles();for(const P of T){if(!zc(P))continue;const O=hr(P);!Eh(O,n)||(h=gn(h,O))}return d.extendedContainers=h||Ve}function X2(n,s,c){const _=$_(n);if(_&&!(n.flags&262144)){const T=qi(_.declarations,h),P=s&&J1(n,s),O=Q2(_,c);if(s&&_.flags&cu(c)&&Fm(_,s,1920,!1))return gn(Ki(Ki([_],T),P),O);const $=!(_.flags&cu(c))&&_.flags&788968&&go(_).flags&524288&&c===111551?z1(s,ce=>Au(ce,Se=>{if(Se.flags&cu(c)&&$n(Se)===go(_))return Se})):void 0;let te=$?[$,...T,_]:[...T,_];return te=gn(te,O),te=Lr(te,P),te}const d=qi(n.declarations,T=>{if(!__(T)&&T.parent){if($r(T.parent))return hr(T.parent);if(jd(T.parent)&&T.parent.parent&&lf(hr(T.parent.parent))===n)return hr(T.parent.parent)}if(Fl(T)&&rr(T.parent)&&T.parent.operatorToken.kind===64&&Mo(T.parent.left)&&Sc(T.parent.left.expression))return Zm(T.parent.left)||Rb(T.parent.left.expression)?hr(Bn(T)):(jc(T.parent.left.expression),Jr(T.parent.left.expression).resolvedSymbol)});if(!Pn(d))return;return qi(d,T=>Eh(T,n)?T:void 0);function h(T){return _&&YT(T,_)}}function Q2(n,s){const c=!!Pn(n.declarations)&&wa(n.declarations);if(s&111551&&c&&c.parent&&Mi(c.parent)&&(ha(c)&&c===c.parent.initializer||ef(c)&&c===c.parent.type))return hr(c.parent)}function YT(n,s){const c=gr(n),_=c&&c.exports&&c.exports.get("export=");return _&&Vu(_,s)?c:void 0}function Eh(n,s){if(n===$_(s))return s;const c=n.exports&&n.exports.get("export=");if(c&&Vu(c,s))return n;const _=zu(n),d=_.get(s.escapedName);return d&&Vu(d,s)?d:Au(_,h=>{if(Vu(h,s))return h})}function Vu(n,s){if(Ra(Rc(Ra(n)))===Ra(Rc(Ra(s))))return n}function X_(n){return Ra(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function cv(n,s){return!!(n.flags&111551||n.flags&2097152&&Su(n,!s)&111551)}function lv(n){const s=n.members;for(const c of s)if(c.kind===176&&Xf(c.body))return c}function _f(n){var s;const c=new f(jt,n);return m++,c.id=m,(s=ci)==null||s.recordType(c),c}function xg(n,s){const c=_f(n);return c.symbol=s,c}function ZT(n){return new f(jt,n)}function Vo(n,s,c=0){const _=_f(n);return _.intrinsicName=s,_.objectFlags=c|524288|2097152|33554432|16777216,_}function jf(n,s){const c=xg(524288,s);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function lk(){return zr(ia(vL.keys(),lu))}function Jf(n){return xg(262144,n)}function Y2(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function wh(n){let s;return n.forEach((c,_)=>{Z2(c,_)&&(s||(s=[])).push(c)}),s||Ve}function Z2(n,s){return!Y2(s)&&cv(n)}function Om(n){const s=wh(n),c=Gre(n);return c?Ki(s,[c]):s}function uf(n,s,c,_,d){const h=n;return h.members=s,h.properties=Ve,h.callSignatures=c,h.constructSignatures=_,h.indexInfos=d,s!==U&&(h.properties=wh(s)),h}function yc(n,s,c,_,d){return uf(jf(16,n),s,c,_,d)}function _k(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const s=Vr(n.constructSignatures,_=>!(_.flags&4));if(n.constructSignatures===s)return n;const c=yc(n.symbol,n.members,n.callSignatures,dt(s)?s:Ve,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function z1(n,s){let c;for(let _=n;_;_=_.parent){if(fm(_)&&_.locals&&!Xd(_)&&(c=s(_.locals,void 0,!0,_)))return c;switch(_.kind){case 312:if(!Yu(_))break;case 267:const d=hr(_);if(c=s((d==null?void 0:d.exports)||U,void 0,!0,_))return c;break;case 263:case 231:case 264:let h;if((hr(_).members||U).forEach((T,P)=>{T.flags&788968&&(h||(h=Us())).set(P,T)}),h&&(c=s(h,void 0,!1,_)))return c;break}}return s(pe,void 0,!0)}function cu(n){return n===111551?111551:1920}function Fm(n,s,c,_,d=new Map){if(!(n&&!uk(n)))return;const h=Fi(n),T=h.accessibleChainCache||(h.accessibleChainCache=new Map),P=z1(s,(_n,Gn,Nn,Ht)=>Ht),O=`${_?0:1}|${P&&Ba(P)}|${c}`;if(T.has(O))return T.get(O);const $=ya(n);let te=d.get($);te||d.set($,te=[]);const ce=z1(s,Se);return T.set(O,ce),ce;function Se(_n,Gn,Nn){if(!Gf(te,_n))return;const Ht=St(_n,Gn,Nn);return te.pop(),Ht}function Te(_n,Gn){return!K2(_n,s,Gn)||!!Fm(_n.parent,s,cu(Gn),_,d)}function Ze(_n,Gn,Nn){return(n===(Gn||_n)||Ra(n)===Ra(Gn||_n))&&!dt(_n.declarations,$r)&&(Nn||Te(Ra(_n),c))}function St(_n,Gn,Nn){return Ze(_n.get(n.escapedName),void 0,Gn)?[n]:Au(_n,Mn=>{if(Mn.flags&2097152&&Mn.escapedName!=="export="&&Mn.escapedName!=="default"&&!(cO(Mn)&&s&&zc(Bn(s)))&&(!_||dt(Mn.declarations,gy))&&(Nn?!dt(Mn.declarations,Zle):!0)&&(Gn||!uc(Mn,281))){const Xt=gl(Mn),dn=Kt(Mn,Xt,Gn);if(dn)return dn}if(Mn.escapedName===n.escapedName&&Mn.exportSymbol&&Ze(Ra(Mn.exportSymbol),void 0,Gn))return[n]})||(_n===pe?Kt(Ge,Ge,Gn):void 0)}function Kt(_n,Gn,Nn){if(Ze(_n,Gn,Nn))return[_n];const Ht=zu(Gn),Mn=Ht&&Se(Ht,!0);if(Mn&&Te(_n,cu(c)))return[_n].concat(Mn)}}function K2(n,s,c){let _=!1;return z1(s,d=>{let h=Ra(d.get(n.escapedName));if(!h)return!1;if(h===n)return!0;const T=h.flags&2097152&&!uc(h,281);return h=T?gl(h):h,(T?Su(h):h.flags)&c?(_=!0,!0):!1}),_}function uk(n){if(n.declarations&&n.declarations.length){for(const s of n.declarations)switch(s.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function eb(n,s){return Wt(n,s,788968,!1,!0).accessibility===0}function tb(n,s){return Wt(n,s,111551,!1,!0).accessibility===0}function S(n,s,c){return Wt(n,s,c,!1,!1).accessibility===0}function ne(n,s,c,_,d,h){if(!Pn(n))return;let T,P=!1;for(const O of n){const $=Fm(O,s,_,!1);if($){T=O;const Se=ji($[0],d);if(Se)return Se}if(h&&dt(O.declarations,$r)){if(d){P=!0;continue}return{accessibility:0}}const te=X2(O,s,_),ce=ne(te,s,c,c===O?cu(_):_,d,h);if(ce)return ce}if(P)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ni(c,s,_),errorModuleName:T!==c?ni(T,s,1920):void 0}}function et(n,s,c,_){return Wt(n,s,c,_,!0)}function Wt(n,s,c,_,d){if(n&&s){const h=ne([n],s,n,c,_,d);if(h)return h;const T=mn(n.declarations,gr);if(T){const P=gr(s);if(T!==P)return{accessibility:2,errorSymbolName:ni(n,s,c),errorModuleName:ni(T),errorNode:Zn(s)?s:void 0}}return{accessibility:1,errorSymbolName:ni(n,s,c)}}return{accessibility:0}}function gr(n){const s=On(n,yi);return s&&hr(s)}function yi(n){return __(n)||n.kind===312&&Yu(n)}function $r(n){return T9(n)||n.kind===312&&Yu(n)}function ji(n,s){let c;if(!$i(Vr(n.declarations,h=>h.kind!==80),_))return;return{accessibility:0,aliasesToMakeVisible:c};function _(h){var T,P;if(!dd(h)){const O=Zy(h);if(O&&!Mr(O,1)&&dd(O.parent))return d(h,O);if(Mi(h)&&ic(h.parent.parent)&&!Mr(h.parent.parent,1)&&dd(h.parent.parent.parent))return d(h,h.parent.parent);if(x9(h)&&!Mr(h,1)&&dd(h.parent))return d(h,h);if(Fa(h)){if(n.flags&2097152&&Zn(h)&&((T=h.parent)==null?void 0:T.parent)&&Mi(h.parent.parent)&&((P=h.parent.parent.parent)==null?void 0:P.parent)&&ic(h.parent.parent.parent.parent)&&!Mr(h.parent.parent.parent.parent,1)&&h.parent.parent.parent.parent.parent&&dd(h.parent.parent.parent.parent.parent))return d(h,h.parent.parent.parent.parent);if(n.flags&2){const $=On(h,ic);return Mr($,1)?!0:dd($.parent)?d(h,$):!1}}return!1}return!0}function d(h,T){return s&&(Jr(h).isVisible=!0,c=Rg(c,T)),!0}}function Js(n,s){let c;n.parent.kind===186||n.parent.kind===233&&!Ym(n.parent)||n.parent.kind===167?c=1160127:n.kind===166||n.kind===211||n.parent.kind===271?c=1920:c=788968;const _=Ku(n),d=Mc(s,_.escapedText,c,void 0,void 0,!1);return d&&d.flags&262144&&c&788968?{accessibility:0}:!d&&a2(_)&&et(hr(tu(_,!1,!1)),_,c,!1).accessibility===0?{accessibility:0}:d&&ji(d,!0)||{accessibility:1,errorSymbolName:el(_),errorNode:_}}function ni(n,s,c,_=4,d){let h=70221824;_&2&&(h|=128),_&1&&(h|=512),_&8&&(h|=16384),_&32&&(h|=134217728),_&16&&(h|=1073741824);const T=_&4?ct.symbolToNode:ct.symbolToEntityName;return d?P(d).getText():YC(P);function P(O){const $=T(n,c,s,h),te=(s==null?void 0:s.kind)===312?gX():C2(),ce=s&&Bn(s);return te.writeNode(4,$,ce,O),O}}function Rl(n,s,c=0,_,d){return d?h(d).getText():YC(h);function h(T){let P;c&262144?P=_===1?185:184:P=_===1?180:179;const O=ct.signatureToSignatureDeclaration(n,P,s,Ah(c)|70221824|512),$=i5(),te=s&&Bn(s);return $.writeNode(4,O,te,yq(T)),T}}function kn(n,s,c=1064960,_=gD("")){const d=j.noErrorTruncation||c&1,h=ct.typeToTypeNode(n,s,Ah(c)|70221824|(d?1:0));if(h===void 0)return E.fail("should always get typenode");const T=n!==Ae?C2():mX(),P=s&&Bn(s);T.writeNode(4,h,P,_);const O=_.getText(),$=d?AO*2:jD*2;return $&&O&&O.length>=$?O.substr(0,$-3)+"...":O}function Dh(n,s){let c=Sg(n.symbol)?kn(n,n.symbol.valueDeclaration):kn(n),_=Sg(s.symbol)?kn(s,s.symbol.valueDeclaration):kn(s);return c===_&&(c=Q_(n),_=Q_(s)),[c,_]}function Q_(n){return kn(n,void 0,64)}function Sg(n){return n&&!!n.valueDeclaration&&nt(n.valueDeclaration)&&!Cf(n.valueDeclaration)}function Ah(n=0){return n&848330091}function nb(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===i_(n.symbol)||!!(n.flags&524288)&&!!(Br(n)&16777216))}function fk(){return{typeToTypeNode:(Qe,me,qn,Rn)=>s(me,qn,Rn,fr=>_(Qe,fr)),indexInfoToIndexSignatureDeclaration:(Qe,me,qn,Rn)=>s(me,qn,Rn,fr=>te(Qe,fr,void 0)),signatureToSignatureDeclaration:(Qe,me,qn,Rn,fr)=>s(qn,Rn,fr,vr=>ce(Qe,me,vr)),symbolToEntityName:(Qe,me,qn,Rn,fr)=>s(qn,Rn,fr,vr=>Sr(Qe,vr,me,!1)),symbolToExpression:(Qe,me,qn,Rn,fr)=>s(qn,Rn,fr,vr=>Ts(Qe,vr,me)),symbolToTypeParameterDeclarations:(Qe,me,qn,Rn)=>s(me,qn,Rn,fr=>Nn(Qe,fr)),symbolToParameterDeclaration:(Qe,me,qn,Rn)=>s(me,qn,Rn,fr=>St(Qe,fr)),typeParameterToDeclaration:(Qe,me,qn,Rn)=>s(me,qn,Rn,fr=>Ze(Qe,fr)),symbolTableToDeclarationStatements:(Qe,me,qn,Rn,fr)=>s(me,qn,Rn,vr=>K_(Qe,vr,fr)),symbolToNode:(Qe,me,qn,Rn,fr)=>s(qn,Rn,fr,vr=>n(Qe,vr,me))};function n(Qe,me,qn){if(me.flags&1073741824){if(Qe.valueDeclaration){const fr=os(Qe.valueDeclaration);if(fr&&Ga(fr))return fr}const Rn=Fi(Qe).nameType;if(Rn&&Rn.flags&9216)return me.enclosingDeclaration=Rn.symbol.valueDeclaration,I.createComputedPropertyName(Ts(Rn.symbol,me,qn))}return Ts(Qe,me,qn)}function s(Qe,me,qn,Rn){E.assert(Qe===void 0||(Qe.flags&16)===0);const fr=qn!=null&&qn.trackSymbol?qn.moduleResolverHost:me&134217728?HPe(e):void 0,vr={enclosingDeclaration:Qe,flags:me||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};vr.tracker=new xL(vr,qn,fr);const Zi=Rn(vr);return vr.truncating&&vr.flags&1&&vr.tracker.reportTruncationError(),vr.encounteredError?void 0:Zi}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AO:jD)}function _(Qe,me){const qn=me.flags,Rn=d(Qe,me);return me.flags=qn,Rn}function d(Qe,me){var qn,Rn;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const fr=me.flags&8388608;if(me.flags&=-8388609,!Qe){if(!(me.flags&262144)){me.encounteredError=!0;return}return me.approximateLength+=3,I.createKeywordTypeNode(133)}if(me.flags&536870912||(Qe=Wp(Qe)),Qe.flags&1)return Qe.aliasSymbol?I.createTypeReferenceNode(dn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,me)):Qe===Ae?X3(I.createKeywordTypeNode(133),3,"unresolved"):(me.approximateLength+=3,I.createKeywordTypeNode(Qe===_t?141:133));if(Qe.flags&2)return I.createKeywordTypeNode(159);if(Qe.flags&4)return me.approximateLength+=6,I.createKeywordTypeNode(154);if(Qe.flags&8)return me.approximateLength+=6,I.createKeywordTypeNode(150);if(Qe.flags&64)return me.approximateLength+=6,I.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return me.approximateLength+=7,I.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){const sn=$_(Qe.symbol),dr=Cn(sn,me,788968);if(go(sn)===Qe)return dr;const ti=xc(Qe.symbol);return pf(ti,0)?Ai(dr,I.createTypeReferenceNode(ti,void 0)):ag(dr)?(dr.isTypeOf=!0,I.createIndexedAccessTypeNode(dr,I.createLiteralTypeNode(I.createStringLiteral(ti)))):sp(dr)?I.createIndexedAccessTypeNode(I.createTypeQueryNode(dr.typeName),I.createLiteralTypeNode(I.createStringLiteral(ti))):E.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Cn(Qe.symbol,me,788968)}if(Qe.flags&128)return me.approximateLength+=Qe.value.length+2,I.createLiteralTypeNode(Xn(I.createStringLiteral(Qe.value,!!(me.flags&268435456)),16777216));if(Qe.flags&256){const sn=Qe.value;return me.approximateLength+=(""+sn).length,I.createLiteralTypeNode(sn<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-sn)):I.createNumericLiteral(sn))}if(Qe.flags&2048)return me.approximateLength+=l2(Qe.value).length+1,I.createLiteralTypeNode(I.createBigIntLiteral(Qe.value));if(Qe.flags&512)return me.approximateLength+=Qe.intrinsicName.length,I.createLiteralTypeNode(Qe.intrinsicName==="true"?I.createTrue():I.createFalse());if(Qe.flags&8192){if(!(me.flags&1048576)){if(tb(Qe.symbol,me.enclosingDeclaration))return me.approximateLength+=6,Cn(Qe.symbol,me,111551);me.tracker.reportInaccessibleUniqueSymbolError&&me.tracker.reportInaccessibleUniqueSymbolError()}return me.approximateLength+=13,I.createTypeOperatorNode(158,I.createKeywordTypeNode(155))}if(Qe.flags&16384)return me.approximateLength+=4,I.createKeywordTypeNode(116);if(Qe.flags&32768)return me.approximateLength+=9,I.createKeywordTypeNode(157);if(Qe.flags&65536)return me.approximateLength+=4,I.createLiteralTypeNode(I.createNull());if(Qe.flags&131072)return me.approximateLength+=5,I.createKeywordTypeNode(146);if(Qe.flags&4096)return me.approximateLength+=6,I.createKeywordTypeNode(155);if(Qe.flags&67108864)return me.approximateLength+=6,I.createKeywordTypeNode(151);if(V3(Qe))return me.flags&4194304&&(!me.encounteredError&&!(me.flags&32768)&&(me.encounteredError=!0),(Rn=(qn=me.tracker).reportInaccessibleThisError)==null||Rn.call(qn)),me.approximateLength+=4,I.createThisTypeNode();if(!fr&&Qe.aliasSymbol&&(me.flags&16384||eb(Qe.aliasSymbol,me.enclosingDeclaration))){const sn=O(Qe.aliasTypeArguments,me);return Y2(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?I.createTypeReferenceNode(I.createIdentifier(""),sn):Pn(sn)===1&&Qe.aliasSymbol===vt.symbol?I.createArrayTypeNode(sn[0]):Cn(Qe.aliasSymbol,me,788968,sn)}const vr=Br(Qe);if(vr&4)return E.assert(!!(Qe.flags&524288)),Qe.node?Mt(Qe,Dn):Dn(Qe);if(Qe.flags&262144||vr&3){if(Qe.flags&262144&&gs(me.inferTypeParameters,Qe)){me.approximateLength+=xc(Qe.symbol).length+6;let dr;const ti=s_(Qe);if(ti){const Zr=m4e(Qe,!0);Zr&&Ag(ti,Zr)||(me.approximateLength+=9,dr=ti&&_(ti,me))}return I.createInferTypeNode(Te(Qe,me,dr))}if(me.flags&4&&Qe.flags&262144&&!eb(Qe.symbol,me.enclosingDeclaration)){const dr=ws(Qe,me);return me.approximateLength+=lr(dr).length,I.createTypeReferenceNode(I.createIdentifier(lr(dr)),void 0)}if(Qe.symbol)return Cn(Qe.symbol,me,788968);const sn=(Qe===W_||Qe===bo)&&M&&M.symbol?(Qe===bo?"sub-":"super-")+xc(M.symbol):"?";return I.createTypeReferenceNode(I.createIdentifier(sn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){const sn=Qe.flags&1048576?h0(Qe.types):Qe.types;if(Pn(sn)===1)return _(sn[0],me);const dr=O(sn,me,!0);if(dr&&dr.length>0)return Qe.flags&1048576?I.createUnionTypeNode(dr):I.createIntersectionTypeNode(dr);!me.encounteredError&&!(me.flags&262144)&&(me.encounteredError=!0);return}if(vr&48)return E.assert(!!(Qe.flags&524288)),$t(Qe);if(Qe.flags&4194304){const sn=Qe.type;me.approximateLength+=6;const dr=_(sn,me);return I.createTypeOperatorNode(143,dr)}if(Qe.flags&134217728){const sn=Qe.texts,dr=Qe.types,ti=I.createTemplateHead(sn[0]),Zr=I.createNodeArray(an(dr,(us,lc)=>I.createTemplateLiteralTypeSpan(_(us,me),(lcZi(sn));if(Qe.flags&33554432)return _(Qe.baseType,me);return E.fail("Should be unreachable.");function Zi(sn){const dr=_(sn.checkType,me);if(me.approximateLength+=15,me.flags&4&&sn.root.isDistributive&&!(sn.checkType.flags&262144)){const ra=Jf(Pa(262144,"T")),Yo=ws(ra,me),Xa=I.createTypeReferenceNode(Yo);me.approximateLength+=37;const He=ox(sn.root.checkType,ra,sn.mapper),ot=me.inferTypeParameters;me.inferTypeParameters=sn.root.inferTypeParameters;const Vt=_(Ji(sn.root.extendsType,He),me);me.inferTypeParameters=ot;const En=gi(Ji(ii(sn.root.node.trueType),He)),nr=gi(Ji(ii(sn.root.node.falseType),He));return I.createConditionalTypeNode(dr,I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Xa.typeName))),I.createConditionalTypeNode(I.createTypeReferenceNode(I.cloneNode(Yo)),_(sn.checkType,me),I.createConditionalTypeNode(Xa,Vt,En,nr),I.createKeywordTypeNode(146)),I.createKeywordTypeNode(146))}const ti=me.inferTypeParameters;me.inferTypeParameters=sn.root.inferTypeParameters;const Zr=_(sn.extendsType,me);me.inferTypeParameters=ti;const us=gi(Z1(sn)),lc=gi(K1(sn));return I.createConditionalTypeNode(dr,Zr,us,lc)}function gi(sn){var dr,ti,Zr;return sn.flags&1048576?(dr=me.visitedTypes)!=null&&dr.has(S_(sn))?(me.flags&131072||(me.encounteredError=!0,(Zr=(ti=me.tracker)==null?void 0:ti.reportCyclicStructureError)==null||Zr.call(ti)),h(me)):Mt(sn,us=>_(us,me)):_(sn,me)}function pr(sn){return!!NJ(sn)}function it(sn){return!!sn.target&&pr(sn.target)&&!pr(sn)}function wt(sn){var dr;E.assert(!!(sn.flags&524288));const ti=sn.declaration.readonlyToken?I.createToken(sn.declaration.readonlyToken.kind):void 0,Zr=sn.declaration.questionToken?I.createToken(sn.declaration.questionToken.kind):void 0;let us,lc;const ra=!RE(sn)&&!(bk(sn).flags&2)&&me.flags&4&&!(Uf(sn).flags&262144&&((dr=s_(Uf(sn)))==null?void 0:dr.flags)&4194304);if(RE(sn)){if(it(sn)&&me.flags&4){const En=Jf(Pa(262144,"T")),nr=ws(En,me);lc=I.createTypeReferenceNode(nr)}us=I.createTypeOperatorNode(143,lc||_(bk(sn),me))}else if(ra){const En=Jf(Pa(262144,"T")),nr=ws(En,me);lc=I.createTypeReferenceNode(nr),us=lc}else us=_(Uf(sn),me);const Yo=Te(Vp(sn),me,us),Xa=sn.declaration.nameType?_(T0(sn),me):void 0,He=_(ub(Eg(sn),!!(tm(sn)&4)),me),ot=I.createMappedTypeNode(ti,Yo,Xa,Zr,He,void 0);me.approximateLength+=10;const Vt=Xn(ot,1);if(it(sn)&&me.flags&4){const En=Ji(s_(ii(sn.declaration.typeParameter.constraint.type))||Jt,sn.mapper);return I.createConditionalTypeNode(_(bk(sn),me),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(lc.typeName),En.flags&2?void 0:_(En,me))),Vt,I.createKeywordTypeNode(146))}else if(ra)return I.createConditionalTypeNode(_(Uf(sn),me),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(lc.typeName),I.createTypeOperatorNode(143,_(bk(sn),me)))),Vt,I.createKeywordTypeNode(146));return Vt}function $t(sn){var dr,ti;const Zr=sn.id,us=sn.symbol;if(us){const ra=nb(sn)?788968:111551;if(vd(us.valueDeclaration))return Cn(us,me,ra);if(us.flags&32&&!aJ(us)&&!(us.valueDeclaration&&ei(us.valueDeclaration)&&me.flags&2048&&(!Qc(us.valueDeclaration)||et(us,me.enclosingDeclaration,ra,!1).accessibility!==0))||us.flags&896||lc())return Cn(us,me,ra);if((dr=me.visitedTypes)!=null&&dr.has(Zr)){const Yo=U1(sn);return Yo?Cn(Yo,me,788968):h(me)}else return Mt(sn,en)}else{if(!!(Br(sn)&8388608)){const Yo=sn;if(X6(Yo.node)){const Xa=da(me,Yo.node);if(Xa)return Xa}return(ti=me.visitedTypes)!=null&&ti.has(Zr)?h(me):Mt(sn,en)}return en(sn)}function lc(){var ra;const Yo=!!(us.flags&8192)&&dt(us.declarations,He=>Ps(He)),Xa=!!(us.flags&16)&&(us.parent||mn(us.declarations,He=>He.parent.kind===312||He.parent.kind===268));if(Yo||Xa)return(!!(me.flags&4096)||((ra=me.visitedTypes)==null?void 0:ra.has(Zr)))&&(!(me.flags&8)||tb(us,me.enclosingDeclaration))}}function Mt(sn,dr){var ti,Zr;const us=sn.id,lc=Br(sn)&16&&sn.symbol&&sn.symbol.flags&32,ra=Br(sn)&4&&sn.node?"N"+Ba(sn.node):sn.flags&16777216?"N"+Ba(sn.root.node):sn.symbol?(lc?"+":"")+ya(sn.symbol):void 0;me.visitedTypes||(me.visitedTypes=new Set),ra&&!me.symbolDepth&&(me.symbolDepth=new Map);const Yo=me.enclosingDeclaration&&Jr(me.enclosingDeclaration),Xa=`${S_(sn)}|${me.flags}`;Yo&&(Yo.serializedTypes||(Yo.serializedTypes=new Map));const He=(ti=Yo==null?void 0:Yo.serializedTypes)==null?void 0:ti.get(Xa);if(He)return He.truncating&&(me.truncating=!0),me.approximateLength+=He.addedLength,un(He.node);let ot;if(ra){if(ot=me.symbolDepth.get(ra)||0,ot>10)return h(me);me.symbolDepth.set(ra,ot+1)}me.visitedTypes.add(us);const Vt=me.approximateLength,En=dr(sn),nr=me.approximateLength-Vt;return!me.reportedDiagnostic&&!me.encounteredError&&((Zr=Yo==null?void 0:Yo.serializedTypes)==null||Zr.set(Xa,{node:En,truncating:me.truncating,addedLength:nr})),me.visitedTypes.delete(us),ra&&me.symbolDepth.set(ra,ot),En;function un(Or){return!Do(Or)&&es(Or)===Or?Or:Ke(I.cloneNode(pn(Or,un,n0,sr)),Or)}function sr(Or,Ci,is,Hs,zs){return Or&&Or.length===0?Ke(I.createNodeArray(void 0,Or.hasTrailingComma),Or):An(Or,Ci,is,Hs,zs)}}function en(sn){if(ff(sn)||sn.containsError)return wt(sn);const dr=Up(sn);if(!dr.properties.length&&!dr.indexInfos.length){if(!dr.callSignatures.length&&!dr.constructSignatures.length)return me.approximateLength+=2,Xn(I.createTypeLiteralNode(void 0),1);if(dr.callSignatures.length===1&&!dr.constructSignatures.length){const ra=dr.callSignatures[0];return ce(ra,184,me)}if(dr.constructSignatures.length===1&&!dr.callSignatures.length){const ra=dr.constructSignatures[0];return ce(ra,185,me)}}const ti=Vr(dr.constructSignatures,ra=>!!(ra.flags&4));if(dt(ti)){const ra=an(ti,cb);return dr.callSignatures.length+(dr.constructSignatures.length-ti.length)+dr.indexInfos.length+(me.flags&2048?L0(dr.properties,Xa=>!(Xa.flags&4194304)):Pn(dr.properties))&&ra.push(_k(dr)),_(ca(ra),me)}const Zr=me.flags;me.flags|=4194304;const us=Bs(dr);me.flags=Zr;const lc=I.createTypeLiteralNode(us);return me.approximateLength+=2,Xn(lc,me.flags&1024?0:1),lc}function Dn(sn){let dr=po(sn);if(sn.target===vt||sn.target===bn){if(me.flags&2){const us=_(dr[0],me);return I.createTypeReferenceNode(sn.target===vt?"Array":"ReadonlyArray",[us])}const ti=_(dr[0],me),Zr=I.createArrayTypeNode(ti);return sn.target===vt?Zr:I.createTypeOperatorNode(148,Zr)}else if(sn.target.objectFlags&8){if(dr=cl(dr,(ti,Zr)=>ub(ti,!!(sn.target.elementFlags[Zr]&2))),dr.length>0){const ti=k0(sn),Zr=O(dr.slice(0,ti),me);if(Zr){const{labeledElementDeclarations:us}=sn.target;for(let ra=0;ra0){const Xa=(sn.target.typeParameters||Ve).length;lc=O(dr.slice(Zr,Xa),me)}const ra=me.flags;me.flags|=16;const Yo=Cn(sn.symbol,me,788968,lc);return me.flags=ra,us?Ai(us,Yo):Yo}}}function Ai(sn,dr){if(ag(sn)){let ti=sn.typeArguments,Zr=sn.qualifier;Zr&&(we(Zr)?ti!==$b(Zr)&&(Zr=th(I.cloneNode(Zr),ti)):ti!==$b(Zr.right)&&(Zr=I.updateQualifiedName(Zr,Zr.left,th(I.cloneNode(Zr.right),ti)))),ti=dr.typeArguments;const us=Ni(dr);for(const lc of us)Zr=Zr?I.createQualifiedName(Zr,lc):lc;return I.updateImportTypeNode(sn,sn.argument,sn.assertions,Zr,ti,sn.isTypeOf)}else{let ti=sn.typeArguments,Zr=sn.typeName;we(Zr)?ti!==$b(Zr)&&(Zr=th(I.cloneNode(Zr),ti)):ti!==$b(Zr.right)&&(Zr=I.updateQualifiedName(Zr,Zr.left,th(I.cloneNode(Zr.right),ti))),ti=dr.typeArguments;const us=Ni(dr);for(const lc of us)Zr=I.createQualifiedName(Zr,lc);return I.updateTypeReferenceNode(sn,Zr,ti)}}function Ni(sn){let dr=sn.typeName;const ti=[];for(;!we(dr);)ti.unshift(dr.right),dr=dr.left;return ti.unshift(dr),ti}function Bs(sn){if(c(me))return[I.createPropertySignature(void 0,"...",void 0,void 0)];const dr=[];for(const us of sn.callSignatures)dr.push(ce(us,179,me));for(const us of sn.constructSignatures)us.flags&4||dr.push(ce(us,180,me));for(const us of sn.indexInfos)dr.push(te(us,me,sn.objectFlags&1024?h(me):void 0));const ti=sn.properties;if(!ti)return dr;let Zr=0;for(const us of ti){if(Zr++,me.flags&2048){if(us.flags&4194304)continue;Ff(us)&24&&me.tracker.reportPrivateInBaseOfClassExpression&&me.tracker.reportPrivateInBaseOfClassExpression(Li(us.escapedName))}if(c(me)&&Zr+2!(Dn.flags&32768)),0);for(const Dn of en){const Ai=ce(Dn,173,me,{name:gi,questionToken:pr});qn.push(Mt(Ai))}if(en.length||!pr)return}let it;T(Qe,me)?it=h(me):(fr&&(me.reverseMappedStack||(me.reverseMappedStack=[]),me.reverseMappedStack.push(Qe)),it=vr?Wi(me,vr,Qe,Zi):I.createKeywordTypeNode(133),fr&&me.reverseMappedStack.pop());const wt=Xp(Qe)?[I.createToken(148)]:void 0;wt&&(me.approximateLength+=9);const $t=I.createPropertySignature(wt,gi,pr,it);qn.push(Mt($t));function Mt(en){var Dn;if(dt(Qe.declarations,Ai=>Ai.kind===355)){const Ai=(Dn=Qe.declarations)==null?void 0:Dn.find(Bs=>Bs.kind===355),Ni=yw(Ai.comment);Ni&&Ey(en,[{kind:3,text:`* - * `+Ni.replace(/\n/g,` + })(name => super[name], (name, value) => super[name] = value);`}}});function Ou(e){return e.kind===9}function uF(e){return e.kind===10}function fa(e){return e.kind===11}function iS(e){return e.kind===12}function qH(e){return e.kind===14}function sS(e){return e.kind===15}function $6(e){return e.kind===16}function yfe(e){return e.kind===17}function HH(e){return e.kind===18}function fF(e){return e.kind===26}function vfe(e){return e.kind===28}function GH(e){return e.kind===40}function $H(e){return e.kind===41}function nA(e){return e.kind===42}function rA(e){return e.kind===54}function f1(e){return e.kind===58}function bfe(e){return e.kind===59}function pF(e){return e.kind===29}function Tfe(e){return e.kind===39}function we(e){return e.kind===80}function Ei(e){return e.kind===81}function aS(e){return e.kind===95}function dF(e){return e.kind===90}function K3(e){return e.kind===134}function xfe(e){return e.kind===131}function XH(e){return e.kind===135}function Sfe(e){return e.kind===148}function oS(e){return e.kind===126}function kfe(e){return e.kind===128}function Cfe(e){return e.kind===164}function Efe(e){return e.kind===129}function e8(e){return e.kind===108}function t8(e){return e.kind===102}function wfe(e){return e.kind===84}function hu(e){return e.kind===166}function Ga(e){return e.kind===167}function Go(e){return e.kind===168}function rs(e){return e.kind===169}function Wl(e){return e.kind===170}function mf(e){return e.kind===171}function Fs(e){return e.kind===172}function ag(e){return e.kind===173}function kc(e){return e.kind===174}function ec(e){return e.kind===175}function Cc(e){return e.kind===176}function gf(e){return e.kind===177}function Fu(e){return e.kind===178}function X6(e){return e.kind===179}function iA(e){return e.kind===180}function Zb(e){return e.kind===181}function mF(e){return e.kind===182}function ap(e){return e.kind===183}function og(e){return e.kind===184}function n8(e){return e.kind===185}function Q6(e){return e.kind===186}function ef(e){return e.kind===187}function QH(e){return e.kind===188}function Y6(e){return e.kind===189}function r8(e){return e.kind===202}function YH(e){return e.kind===190}function ZH(e){return e.kind===191}function cS(e){return e.kind===192}function sA(e){return e.kind===193}function Z6(e){return e.kind===194}function lS(e){return e.kind===195}function _S(e){return e.kind===196}function gF(e){return e.kind===197}function uS(e){return e.kind===198}function fS(e){return e.kind===199}function i8(e){return e.kind===200}function Ay(e){return e.kind===201}function cg(e){return e.kind===205}function Dfe(e){return e.kind===204}function b5e(e){return e.kind===203}function rd(e){return e.kind===206}function pS(e){return e.kind===207}function Oa(e){return e.kind===208}function u_(e){return e.kind===209}function ha(e){return e.kind===210}function kr(e){return e.kind===211}function No(e){return e.kind===212}function Js(e){return e.kind===213}function d2(e){return e.kind===214}function Kb(e){return e.kind===215}function Afe(e){return e.kind===216}function yu(e){return e.kind===217}function _o(e){return e.kind===218}function Po(e){return e.kind===219}function Nfe(e){return e.kind===220}function K6(e){return e.kind===221}function eT(e){return e.kind===222}function p1(e){return e.kind===223}function Ny(e){return e.kind===224}function KH(e){return e.kind===225}function rr(e){return e.kind===226}function e4(e){return e.kind===227}function hF(e){return e.kind===228}function yF(e){return e.kind===229}function jd(e){return e.kind===230}function Fl(e){return e.kind===231}function dl(e){return e.kind===232}function rh(e){return e.kind===233}function aA(e){return e.kind===234}function T5e(e){return e.kind===238}function dS(e){return e.kind===235}function s8(e){return e.kind===236}function x5e(e){return e.kind===237}function vF(e){return e.kind===360}function a8(e){return e.kind===361}function o8(e){return e.kind===239}function Pfe(e){return e.kind===240}function vs(e){return e.kind===241}function ic(e){return e.kind===243}function eG(e){return e.kind===242}function ql(e){return e.kind===244}function tT(e){return e.kind===245}function S5e(e){return e.kind===246}function k5e(e){return e.kind===247}function nT(e){return e.kind===248}function bF(e){return e.kind===249}function oA(e){return e.kind===250}function C5e(e){return e.kind===251}function E5e(e){return e.kind===252}function id(e){return e.kind===253}function Ife(e){return e.kind===254}function cA(e){return e.kind===255}function m2(e){return e.kind===256}function tG(e){return e.kind===257}function g2(e){return e.kind===258}function w5e(e){return e.kind===259}function Ri(e){return e.kind===260}function ml(e){return e.kind===261}function tl(e){return e.kind===262}function Qc(e){return e.kind===263}function f_(e){return e.kind===264}function Dp(e){return e.kind===265}function Py(e){return e.kind===266}function Ac(e){return e.kind===267}function Jd(e){return e.kind===268}function c8(e){return e.kind===269}function lA(e){return e.kind===270}function Hl(e){return e.kind===271}function bl(e){return e.kind===272}function Sm(e){return e.kind===273}function Ofe(e){return e.kind===302}function TF(e){return e.kind===300}function Ffe(e){return e.kind===301}function d1(e){return e.kind===274}function lg(e){return e.kind===280}function ih(e){return e.kind===275}function vu(e){return e.kind===276}function fc(e){return e.kind===277}function Yc(e){return e.kind===278}function op(e){return e.kind===279}function p_(e){return e.kind===281}function D5e(e){return e.kind===282}function nG(e){return e.kind===359}function mS(e){return e.kind===362}function km(e){return e.kind===283}function _g(e){return e.kind===284}function rT(e){return e.kind===285}function zd(e){return e.kind===286}function h2(e){return e.kind===287}function y2(e){return e.kind===288}function gS(e){return e.kind===289}function Lfe(e){return e.kind===290}function Vd(e){return e.kind===291}function v2(e){return e.kind===292}function hS(e){return e.kind===293}function l8(e){return e.kind===294}function sd(e){return e.kind===295}function t4(e){return e.kind===296}function _A(e){return e.kind===297}function tf(e){return e.kind===298}function Iy(e){return e.kind===299}function Ec(e){return e.kind===303}function nf(e){return e.kind===304}function sh(e){return e.kind===305}function b2(e){return e.kind===306}function Mfe(e){return e.kind===308}function Bi(e){return e.kind===312}function rG(e){return e.kind===313}function iT(e){return e.kind===314}function sT(e){return e.kind===316}function _8(e){return e.kind===317}function Oy(e){return e.kind===318}function Rfe(e){return e.kind===331}function Bfe(e){return e.kind===332}function A5e(e){return e.kind===333}function jfe(e){return e.kind===319}function Jfe(e){return e.kind===320}function n4(e){return e.kind===321}function xF(e){return e.kind===322}function iG(e){return e.kind===323}function r4(e){return e.kind===324}function SF(e){return e.kind===325}function N5e(e){return e.kind===326}function Ap(e){return e.kind===327}function i4(e){return e.kind===329}function Fy(e){return e.kind===330}function s4(e){return e.kind===335}function P5e(e){return e.kind===337}function zfe(e){return e.kind===339}function sG(e){return e.kind===345}function aG(e){return e.kind===340}function oG(e){return e.kind===341}function cG(e){return e.kind===342}function lG(e){return e.kind===343}function kF(e){return e.kind===344}function u8(e){return e.kind===346}function _G(e){return e.kind===338}function I5e(e){return e.kind===354}function uA(e){return e.kind===347}function ad(e){return e.kind===348}function CF(e){return e.kind===349}function Vfe(e){return e.kind===350}function f8(e){return e.kind===351}function od(e){return e.kind===352}function a4(e){return e.kind===353}function O5e(e){return e.kind===334}function Ufe(e){return e.kind===355}function uG(e){return e.kind===336}function EF(e){return e.kind===357}function F5e(e){return e.kind===356}function o4(e){return e.kind===358}var L5e=Rt({"src/compiler/factory/nodeTests.ts"(){Ls()}});function fA(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function aT(e,t,r,i){if(Ga(r))return Ke(e.createElementAccessExpression(t,r.expression),i);{const a=Ke(Qm(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return xm(a,128),a}}function fG(e,t){const r=Cm.createIdentifier(e||"React");return Ta(r,ts(t)),r}function pG(e,t,r){if(hu(t)){const i=pG(e,t.left,r),a=e.createIdentifier(lr(t.right));return a.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,a)}else return fG(lr(t),r)}function dG(e,t,r,i){return t?pG(e,t,i):e.createPropertyAccessExpression(fG(r,i),"createElement")}function M5e(e,t,r,i){return t?pG(e,t,i):e.createPropertyAccessExpression(fG(r,i),"Fragment")}function Wfe(e,t,r,i,a,o){const l=[r];if(i&&l.push(i),a&&a.length>0)if(i||l.push(e.createNull()),a.length>1)for(const u of a)O_(u),l.push(u);else l.push(a[0]);return Ke(e.createCallExpression(t,void 0,l),o)}function qfe(e,t,r,i,a,o,l){const f=[M5e(e,r,i,o),e.createNull()];if(a&&a.length>0)if(a.length>1)for(const g of a)O_(g),f.push(g);else f.push(a[0]);return Ke(e.createCallExpression(dG(e,t,i,o),void 0,f),l)}function mG(e,t,r){if(ml(t)){const i=wa(t.declarations),a=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return Ke(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[a])),t)}else{const i=Ke(e.createAssignment(t,r),t);return Ke(e.createExpressionStatement(i),t)}}function R5e(e,t,r){return vs(t)?e.updateBlock(t,Ke(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function pA(e,t){if(hu(t)){const r=pA(e,t.left),i=Ta(Ke(e.cloneNode(t.right),t.right),t.right.parent);return Ke(e.createPropertyAccessExpression(r,i),t)}else return Ta(Ke(e.cloneNode(t),t),t.parent)}function gG(e,t){return we(t)?e.createStringLiteralFromNode(t):Ga(t)?Ta(Ke(e.cloneNode(t.expression),t.expression),t.expression.parent):Ta(Ke(e.cloneNode(t),t),t.parent)}function B5e(e,t,r,i,a){const{firstAccessor:o,getAccessor:l,setAccessor:u}=Hb(t,r);if(r===o)return Ke(e.createObjectDefinePropertyCall(i,gG(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&Ke(or(e.createFunctionExpression(Gv(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&Ke(or(e.createFunctionExpression(Gv(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!a)),o)}function j5e(e,t,r){return or(Ke(e.createAssignment(aT(e,r,t.name,t.name),t.initializer),t),t)}function J5e(e,t,r){return or(Ke(e.createAssignment(aT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function z5e(e,t,r){return or(Ke(e.createAssignment(aT(e,r,t.name,t.name),or(Ke(e.createFunctionExpression(Gv(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Hfe(e,t,r,i){switch(r.name&&Ei(r.name)&&E.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return B5e(e,t.properties,r,i,!!t.multiLine);case 303:return j5e(e,r,i);case 304:return J5e(e,r,i);case 174:return z5e(e,r,i)}}function wF(e,t,r,i,a){const o=t.operator;E.assert(o===46||o===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);r=e.createAssignment(l,r),Ke(r,t.operand);let u=Ny(t)?e.createPrefixUnaryExpression(o,l):e.createPostfixUnaryExpression(l,o);return Ke(u,t),a&&(u=e.createAssignment(a,u),Ke(u,t)),r=e.createComma(r,u),Ke(r,t),KH(t)&&(r=e.createComma(r,l),Ke(r,t)),r}function hG(e){return(ma(e)&65536)!==0}function e0(e){return(ma(e)&32768)!==0}function DF(e){return(ma(e)&16384)!==0}function Gfe(e){return fa(e.expression)&&e.expression.text==="use strict"}function yG(e){for(const t of e)if(Sp(t)){if(Gfe(t))return t}else break}function $fe(e){const t=wl(e);return t!==void 0&&Sp(t)&&Gfe(t)}function dA(e){return e.kind===226&&e.operatorToken.kind===28}function p8(e){return dA(e)||a8(e)}function d8(e){return yu(e)&&Kn(e)&&!!dy(e)}function AF(e){const t=my(e);return E.assertIsDefined(t),t}function NF(e,t=15){switch(e.kind){case 217:return t&16&&d8(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function nl(e,t=15){for(;NF(e,t);)e=e.expression;return e}function Xfe(e,t=15){let r=e.parent;for(;NF(r,t);)r=r.parent,E.assert(r);return r}function V5e(e){return nl(e,6)}function O_(e){return LO(e,!0)}function mA(e){const t=Ko(e,Bi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Qfe(e){const t=Ko(e,Bi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function vG(e,t,r,i,a,o,l){if(i.importHelpers&&Lx(r,i)){let u;const f=Ul(i);if(f>=5&&f<=99||r.impliedNodeFormat===99){const g=RO(r);if(g){const m=[];for(const y of g)if(!y.scoped){const x=y.importName;x&&$f(m,x)}if(dt(m)){m.sort(w_),u=e.createNamedImports(an(m,k=>y9(r,k)?e.createImportSpecifier(!1,void 0,e.createIdentifier(k)):e.createImportSpecifier(!1,e.createIdentifier(k),t.getUnscopedHelperName(k))));const y=Ko(r,Bi),x=e_(y);x.externalHelpers=!0}}}else{const g=Yfe(e,r,i,a,o||l);g&&(u=e.createNamespaceImport(g))}if(u){const g=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(u1),void 0);return eS(g,2),g}}}function Yfe(e,t,r,i,a){if(r.importHelpers&&Lx(t,r)){const o=mA(t);if(o)return o;const l=Ul(r);let u=(i||bm(r)&&a)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){const f=RO(t);if(f){for(const g of f)if(!g.scoped){u=!0;break}}}if(u){const f=Ko(t,Bi),g=e_(f);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(u1))}}}function c4(e,t,r){const i=S6(t);if(i&&!jx(t)&&!b9(t)){const a=i.name;return Jo(a)?a:e.createIdentifier(Yv(r,a)||lr(a))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function yS(e,t,r,i,a,o){const l=x6(t);if(l&&fa(l))return W5e(t,i,e,a,o)||U5e(e,l,r)||e.cloneNode(l)}function U5e(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function gA(e,t,r,i){if(!!t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ao(i))return e.createStringLiteral(bq(r,t.fileName))}}function W5e(e,t,r,i,a){return gA(r,i.getExternalModuleFileFromDeclaration(e),t,a)}function hA(e){if(xw(e))return e.initializer;if(Ec(e)){const t=e.initializer;return Kl(t,!0)?t.right:void 0}if(nf(e))return e.objectAssignmentInitializer;if(Kl(e,!0))return e.right;if(jd(e))return hA(e.expression)}function m1(e){if(xw(e))return e.name;if(H0(e)){switch(e.kind){case 303:return m1(e.initializer);case 304:return e.name;case 305:return m1(e.expression)}return}return Kl(e,!0)?m1(e.left):jd(e)?m1(e.expression):e}function PF(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function bG(e){const t=IF(e);return E.assert(!!t||sh(e),"Invalid property name for binding element."),t}function IF(e){switch(e.kind){case 208:if(e.propertyName){const r=e.propertyName;return Ei(r)?E.failBadSyntaxKind(r):Ga(r)&&Zfe(r.expression)?r.expression:r}break;case 303:if(e.name){const r=e.name;return Ei(r)?E.failBadSyntaxKind(r):Ga(r)&&Zfe(r.expression)?r.expression:r}break;case 305:return e.name&&Ei(e.name)?E.failBadSyntaxKind(e.name):e.name}const t=m1(e);if(t&&Jc(t))return t}function Zfe(e){const t=e.kind;return t===11||t===9}function l4(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function TG(e){if(e){let t=e;for(;;){if(we(t)||!t.body)return we(t)?t:t.name;t=t.body}}}function q5e(e){const t=e.kind;return t===176||t===178}function Kfe(e){const t=e.kind;return t===176||t===177||t===178}function xG(e){const t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function epe(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function tpe(e){return f1(e)||rA(e)}function npe(e){return we(e)||gF(e)}function rpe(e){return Sfe(e)||GH(e)||$H(e)}function ipe(e){return f1(e)||GH(e)||$H(e)}function spe(e){return we(e)||fa(e)}function H5e(e){const t=e.kind;return t===106||t===112||t===97||Nb(e)||Ny(e)}function G5e(e){return e===43}function $5e(e){return e===42||e===44||e===45}function X5e(e){return G5e(e)||$5e(e)}function Q5e(e){return e===40||e===41}function Y5e(e){return Q5e(e)||X5e(e)}function Z5e(e){return e===48||e===49||e===50}function K5e(e){return Z5e(e)||Y5e(e)}function eNe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function tNe(e){return eNe(e)||K5e(e)}function nNe(e){return e===35||e===37||e===36||e===38}function rNe(e){return nNe(e)||tNe(e)}function iNe(e){return e===51||e===52||e===53}function sNe(e){return iNe(e)||rNe(e)}function aNe(e){return e===56||e===57}function oNe(e){return aNe(e)||sNe(e)}function cNe(e){return e===61||oNe(e)||Y0(e)}function lNe(e){return cNe(e)||e===28}function ape(e){return lNe(e.kind)}function OF(e,t,r,i,a,o){const l=new fpe(e,t,r,i,a,o);return u;function u(f,g){const m={value:void 0},y=[LF.enter],x=[f],k=[void 0];let C=0;for(;y[C]!==LF.done;)C=y[C](l,C,y,x,k,m,g);return E.assertEqual(C,0),m.value}}function ope(e){return e===95||e===90}function yA(e){const t=e.kind;return ope(t)}function _Ne(e){const t=e.kind;return q0(t)&&!ope(t)}function cpe(e,t){if(t!==void 0)return t.length===0?t:Ke(e.createNodeArray([],t.hasTrailingComma),t)}function vA(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let a=e,o=a.original;for(;o;){a=o;const l=(t=a.emitNode)==null?void 0:t.autoGenerate;if(Qm(a)&&(l===void 0||!!(l.flags&4)&&l.id!==i))break;o=a.original}return a}return e}function _4(e,t){return typeof e=="object"?Ly(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function uNe(e,t){return typeof e=="string"?e:fNe(e,E.checkDefined(t))}function fNe(e,t){return Pb(e)?t(e).slice(1):Jo(e)?t(e):Ei(e)?e.escapedText.slice(1):lr(e)}function Ly(e,t,r,i,a){return t=_4(t,a),i=_4(i,a),r=uNe(r,a),`${e?"#":""}${t}${r}${i}`}function SG(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function lpe(e,t,r,i,a=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(a,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function _pe(e,t,r,i,a=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(a,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function FF(e){let t=e.expression;for(;;){if(t=nl(t),a8(t)){t=ka(t.elements);continue}if(dA(t)){t=t.right;continue}if(Kl(t,!0)&&Jo(t.left))return t;break}}function pNe(e){return yu(e)&&Do(e)&&!e.emitNode}function bA(e,t){if(pNe(e))bA(e.expression,t);else if(dA(e))bA(e.left,t),bA(e.right,t);else if(a8(e))for(const r of e.elements)bA(r,t);else t.push(e)}function upe(e){const t=[];return bA(e,t),t}function TA(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of l4(e)){const r=m1(t);if(r&&YC(r)&&(r.transformFlags&65536||r.transformFlags&128&&TA(r)))return!0}return!1}var LF,fpe,dNe=Rt({"src/compiler/factory/utilities.ts"(){Ls(),(e=>{function t(m,y,x,k,C,N,D){const M=y>0?C[y-1]:void 0;return E.assertEqual(x[y],t),C[y]=m.onEnter(k[y],M,D),x[y]=u(m,t),y}e.enter=t;function r(m,y,x,k,C,N,D){E.assertEqual(x[y],r),E.assertIsDefined(m.onLeft),x[y]=u(m,r);const M=m.onLeft(k[y].left,C[y],k[y]);return M?(g(y,k,M),f(y,x,k,C,M)):y}e.left=r;function i(m,y,x,k,C,N,D){return E.assertEqual(x[y],i),E.assertIsDefined(m.onOperator),x[y]=u(m,i),m.onOperator(k[y].operatorToken,C[y],k[y]),y}e.operator=i;function a(m,y,x,k,C,N,D){E.assertEqual(x[y],a),E.assertIsDefined(m.onRight),x[y]=u(m,a);const M=m.onRight(k[y].right,C[y],k[y]);return M?(g(y,k,M),f(y,x,k,C,M)):y}e.right=a;function o(m,y,x,k,C,N,D){E.assertEqual(x[y],o),x[y]=u(m,o);const M=m.onExit(k[y],C[y]);if(y>0){if(y--,m.foldState){const V=x[y]===o?"right":"left";C[y]=m.foldState(C[y],M,V)}}else N.value=M;return y}e.exit=o;function l(m,y,x,k,C,N,D){return E.assertEqual(x[y],l),y}e.done=l;function u(m,y){switch(y){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return a;case a:return o;case o:return l;case l:return l;default:E.fail("Invalid state")}}e.nextState=u;function f(m,y,x,k,C){return m++,y[m]=t,x[m]=C,k[m]=void 0,m}function g(m,y,x){if(E.shouldAssert(2))for(;m>=0;)E.assert(y[m]!==x,"Circular traversal detected."),m--}})(LF||(LF={})),fpe=class{constructor(e,t,r,i,a,o){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=a,this.foldState=o}}}});function Ke(e,t){return t?Tm(e,t.pos,t.end):e}function Np(e){const t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function oT(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var mNe=Rt({"src/compiler/factory/utilitiesPublic.ts"(){Ls()}});function Ft(e,t){return t&&e(t)}function bi(e,t,r){if(r){if(t)return t(r);for(const i of r){const a=e(i);if(a)return a}}}function kG(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function xA(e){return pn(e.statements,gNe)||hNe(e)}function gNe(e){return Np(e)&&yNe(e,95)||Hl(e)&&km(e.moduleReference)||bl(e)||fc(e)||Yc(e)?e:void 0}function hNe(e){return e.flags&8388608?ppe(e):void 0}function ppe(e){return vNe(e)?e:bs(e,ppe)}function yNe(e,t){return dt(e.modifiers,r=>r.kind===t)}function vNe(e){return s8(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function dpe(e,t,r){return bi(t,r,e.typeParameters)||bi(t,r,e.parameters)||Ft(t,e.type)}function mpe(e,t,r){return bi(t,r,e.types)}function gpe(e,t,r){return Ft(t,e.type)}function hpe(e,t,r){return bi(t,r,e.elements)}function ype(e,t,r){return Ft(t,e.expression)||Ft(t,e.questionDotToken)||bi(t,r,e.typeArguments)||bi(t,r,e.arguments)}function vpe(e,t,r){return bi(t,r,e.statements)}function bpe(e,t,r){return Ft(t,e.label)}function Tpe(e,t,r){return bi(t,r,e.modifiers)||Ft(t,e.name)||bi(t,r,e.typeParameters)||bi(t,r,e.heritageClauses)||bi(t,r,e.members)}function xpe(e,t,r){return bi(t,r,e.elements)}function Spe(e,t,r){return Ft(t,e.propertyName)||Ft(t,e.name)}function kpe(e,t,r){return Ft(t,e.tagName)||bi(t,r,e.typeArguments)||Ft(t,e.attributes)}function u4(e,t,r){return Ft(t,e.type)}function Cpe(e,t,r){return Ft(t,e.tagName)||(e.isNameFirst?Ft(t,e.name)||Ft(t,e.typeExpression):Ft(t,e.typeExpression)||Ft(t,e.name))||(typeof e.comment=="string"?void 0:bi(t,r,e.comment))}function f4(e,t,r){return Ft(t,e.tagName)||Ft(t,e.typeExpression)||(typeof e.comment=="string"?void 0:bi(t,r,e.comment))}function CG(e,t,r){return Ft(t,e.name)}function vS(e,t,r){return Ft(t,e.tagName)||(typeof e.comment=="string"?void 0:bi(t,r,e.comment))}function bNe(e,t,r){return Ft(t,e.expression)}function bs(e,t,r){if(e===void 0||e.kind<=165)return;const i=Lpe[e.kind];return i===void 0?void 0:i(e,t,r)}function m8(e,t,r){const i=Epe(e),a=[];for(;a.length=0;--u)i.push(o[u]),a.push(l)}else{const u=t(o,l);if(u){if(u==="skip")continue;return u}if(o.kind>=166)for(const f of Epe(o))i.push(f),a.push(o)}}}function Epe(e){const t=[];return bs(e,r,r),t;function r(i){t.unshift(i)}}function wpe(e){e.externalModuleIndicator=xA(e)}function SA(e,t,r,i=!1,a){var o,l,u,f;(o=li)==null||o.push(li.Phase.Parse,"createSourceFile",{path:e},!0),go("beforeParse");let g;(l=Dd)==null||l.logStartParseSourceFile(e);const{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:x}=typeof r=="object"?r:{languageVersion:r};if(m===100)g=g1.parseSourceFile(e,t,m,void 0,i,6,co);else{const k=x===void 0?y:C=>(C.impliedNodeFormat=x,(y||wpe)(C));g=g1.parseSourceFile(e,t,m,void 0,i,a,k)}return(u=Dd)==null||u.logStopParseSourceFile(),go("afterParse"),Gu("Parse","beforeParse","afterParse"),(f=li)==null||f.pop(),g}function bS(e,t){return g1.parseIsolatedEntityName(e,t)}function kA(e,t){return g1.parseJsonText(e,t)}function zc(e){return e.externalModuleIndicator!==void 0}function EG(e,t,r,i=!1){const a=MF.updateSourceFile(e,t,r,i);return a.flags|=e.flags&12582912,a}function Dpe(e,t,r){const i=g1.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&g1.fixupParentReferences(i.jsDoc),i}function TNe(e,t,r){return g1.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function ou(e){return Gc(e,UD)||Hc(e,".ts")&&Xl(Jl(e),".d.")}function xNe(e,t,r,i){if(!!e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,p.resolution_mode_should_be_either_require_or_import)}}function wG(e,t){const r=[];for(const i of $m(t,0)||Ve){const a=t.substring(i.pos,i.end);kNe(r,i,a)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const a=e.pragmas.get(i.name);a instanceof Array?a.push(i.args):e.pragmas.set(i.name,[a,i.args]);continue}e.pragmas.set(i.name,i.args)}}function DG(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const a=e.referencedFiles,o=e.typeReferenceDirectives,l=e.libReferenceDirectives;pn(z7(r),u=>{const{types:f,lib:g,path:m,["resolution-mode"]:y}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(f){const x=xNe(y,f.pos,f.end,t);o.push({pos:f.pos,end:f.end,fileName:f.value,...x?{resolutionMode:x}:{}})}else g?l.push({pos:g.pos,end:g.end,fileName:g.value}):m?a.push({pos:m.pos,end:m.end,fileName:m.value}):t(u.range.pos,u.range.end-u.range.pos,p.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=an(z7(r),a=>({name:a.arguments.name,path:a.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const a of r)e.moduleName&&t(a.range.pos,a.range.end-a.range.pos,p.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=a.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{pn(z7(r),a=>{(!e.checkJsDirective||a.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:a.range.end,pos:a.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:E.fail("Unhandled pragma kind")}})}function SNe(e){if(RF.has(e))return RF.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return RF.set(e,t),t}function kNe(e,t,r){const i=t.kind===2&&Mpe.exec(r);if(i){const o=i[1].toLowerCase(),l=$7[o];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const f of l.args){const m=SNe(f.name).exec(r);if(!m&&!f.optional)return;if(m){const y=m[2]||m[3];if(f.captureSpan){const x=t.pos+m.index+m[1].length+1;u[f.name]={value:y,pos:x,end:x+y.length}}else u[f.name]=y}}e.push({name:o,args:{arguments:u,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}const a=t.kind===2&&Rpe.exec(r);if(a)return Ape(e,t,2,a);if(t.kind===3){const o=/@(\S+)(\s+.*)?$/gim;let l;for(;l=o.exec(r);)Ape(e,t,4,l)}}function Ape(e,t,r,i){if(!i)return;const a=i[1].toLowerCase(),o=$7[a];if(!o||!(o.kind&r))return;const l=i[2],u=CNe(o,l);u!=="fail"&&e.push({name:a,args:{arguments:u,range:t}})}function CNe(e,t){if(!t)return{};if(!e.args)return{};const r=Jv(t).split(/\s+/),i={};for(let a=0;anew(Fpe||(Fpe=Ol.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Ipe||(Ipe=Ol.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Ope||(Ope=Ol.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Ppe||(Ppe=Ol.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Npe||(Npe=Ol.getNodeConstructor()))(e,-1,-1)},Cm=HD(1,AG),Lpe={[166]:function(t,r,i){return Ft(r,t.left)||Ft(r,t.right)},[168]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||Ft(r,t.constraint)||Ft(r,t.default)||Ft(r,t.expression)},[304]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||Ft(r,t.questionToken)||Ft(r,t.exclamationToken)||Ft(r,t.equalsToken)||Ft(r,t.objectAssignmentInitializer)},[305]:function(t,r,i){return Ft(r,t.expression)},[169]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.dotDotDotToken)||Ft(r,t.name)||Ft(r,t.questionToken)||Ft(r,t.type)||Ft(r,t.initializer)},[172]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||Ft(r,t.questionToken)||Ft(r,t.exclamationToken)||Ft(r,t.type)||Ft(r,t.initializer)},[171]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||Ft(r,t.questionToken)||Ft(r,t.type)||Ft(r,t.initializer)},[303]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||Ft(r,t.questionToken)||Ft(r,t.exclamationToken)||Ft(r,t.initializer)},[260]:function(t,r,i){return Ft(r,t.name)||Ft(r,t.exclamationToken)||Ft(r,t.type)||Ft(r,t.initializer)},[208]:function(t,r,i){return Ft(r,t.dotDotDotToken)||Ft(r,t.propertyName)||Ft(r,t.name)||Ft(r,t.initializer)},[181]:function(t,r,i){return bi(r,i,t.modifiers)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)},[185]:function(t,r,i){return bi(r,i,t.modifiers)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)},[184]:function(t,r,i){return bi(r,i,t.modifiers)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)},[179]:dpe,[180]:dpe,[174]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.asteriskToken)||Ft(r,t.name)||Ft(r,t.questionToken)||Ft(r,t.exclamationToken)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)||Ft(r,t.body)},[173]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||Ft(r,t.questionToken)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)},[176]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)||Ft(r,t.body)},[177]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)||Ft(r,t.body)},[178]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)||Ft(r,t.body)},[262]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.asteriskToken)||Ft(r,t.name)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)||Ft(r,t.body)},[218]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.asteriskToken)||Ft(r,t.name)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)||Ft(r,t.body)},[219]:function(t,r,i){return bi(r,i,t.modifiers)||bi(r,i,t.typeParameters)||bi(r,i,t.parameters)||Ft(r,t.type)||Ft(r,t.equalsGreaterThanToken)||Ft(r,t.body)},[175]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.body)},[183]:function(t,r,i){return Ft(r,t.typeName)||bi(r,i,t.typeArguments)},[182]:function(t,r,i){return Ft(r,t.assertsModifier)||Ft(r,t.parameterName)||Ft(r,t.type)},[186]:function(t,r,i){return Ft(r,t.exprName)||bi(r,i,t.typeArguments)},[187]:function(t,r,i){return bi(r,i,t.members)},[188]:function(t,r,i){return Ft(r,t.elementType)},[189]:function(t,r,i){return bi(r,i,t.elements)},[192]:mpe,[193]:mpe,[194]:function(t,r,i){return Ft(r,t.checkType)||Ft(r,t.extendsType)||Ft(r,t.trueType)||Ft(r,t.falseType)},[195]:function(t,r,i){return Ft(r,t.typeParameter)},[205]:function(t,r,i){return Ft(r,t.argument)||Ft(r,t.assertions)||Ft(r,t.qualifier)||bi(r,i,t.typeArguments)},[302]:function(t,r,i){return Ft(r,t.assertClause)},[196]:gpe,[198]:gpe,[199]:function(t,r,i){return Ft(r,t.objectType)||Ft(r,t.indexType)},[200]:function(t,r,i){return Ft(r,t.readonlyToken)||Ft(r,t.typeParameter)||Ft(r,t.nameType)||Ft(r,t.questionToken)||Ft(r,t.type)||bi(r,i,t.members)},[201]:function(t,r,i){return Ft(r,t.literal)},[202]:function(t,r,i){return Ft(r,t.dotDotDotToken)||Ft(r,t.name)||Ft(r,t.questionToken)||Ft(r,t.type)},[206]:hpe,[207]:hpe,[209]:function(t,r,i){return bi(r,i,t.elements)},[210]:function(t,r,i){return bi(r,i,t.properties)},[211]:function(t,r,i){return Ft(r,t.expression)||Ft(r,t.questionDotToken)||Ft(r,t.name)},[212]:function(t,r,i){return Ft(r,t.expression)||Ft(r,t.questionDotToken)||Ft(r,t.argumentExpression)},[213]:ype,[214]:ype,[215]:function(t,r,i){return Ft(r,t.tag)||Ft(r,t.questionDotToken)||bi(r,i,t.typeArguments)||Ft(r,t.template)},[216]:function(t,r,i){return Ft(r,t.type)||Ft(r,t.expression)},[217]:function(t,r,i){return Ft(r,t.expression)},[220]:function(t,r,i){return Ft(r,t.expression)},[221]:function(t,r,i){return Ft(r,t.expression)},[222]:function(t,r,i){return Ft(r,t.expression)},[224]:function(t,r,i){return Ft(r,t.operand)},[229]:function(t,r,i){return Ft(r,t.asteriskToken)||Ft(r,t.expression)},[223]:function(t,r,i){return Ft(r,t.expression)},[225]:function(t,r,i){return Ft(r,t.operand)},[226]:function(t,r,i){return Ft(r,t.left)||Ft(r,t.operatorToken)||Ft(r,t.right)},[234]:function(t,r,i){return Ft(r,t.expression)||Ft(r,t.type)},[235]:function(t,r,i){return Ft(r,t.expression)},[238]:function(t,r,i){return Ft(r,t.expression)||Ft(r,t.type)},[236]:function(t,r,i){return Ft(r,t.name)},[227]:function(t,r,i){return Ft(r,t.condition)||Ft(r,t.questionToken)||Ft(r,t.whenTrue)||Ft(r,t.colonToken)||Ft(r,t.whenFalse)},[230]:function(t,r,i){return Ft(r,t.expression)},[241]:vpe,[268]:vpe,[312]:function(t,r,i){return bi(r,i,t.statements)||Ft(r,t.endOfFileToken)},[243]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.declarationList)},[261]:function(t,r,i){return bi(r,i,t.declarations)},[244]:function(t,r,i){return Ft(r,t.expression)},[245]:function(t,r,i){return Ft(r,t.expression)||Ft(r,t.thenStatement)||Ft(r,t.elseStatement)},[246]:function(t,r,i){return Ft(r,t.statement)||Ft(r,t.expression)},[247]:function(t,r,i){return Ft(r,t.expression)||Ft(r,t.statement)},[248]:function(t,r,i){return Ft(r,t.initializer)||Ft(r,t.condition)||Ft(r,t.incrementor)||Ft(r,t.statement)},[249]:function(t,r,i){return Ft(r,t.initializer)||Ft(r,t.expression)||Ft(r,t.statement)},[250]:function(t,r,i){return Ft(r,t.awaitModifier)||Ft(r,t.initializer)||Ft(r,t.expression)||Ft(r,t.statement)},[251]:bpe,[252]:bpe,[253]:function(t,r,i){return Ft(r,t.expression)},[254]:function(t,r,i){return Ft(r,t.expression)||Ft(r,t.statement)},[255]:function(t,r,i){return Ft(r,t.expression)||Ft(r,t.caseBlock)},[269]:function(t,r,i){return bi(r,i,t.clauses)},[296]:function(t,r,i){return Ft(r,t.expression)||bi(r,i,t.statements)},[297]:function(t,r,i){return bi(r,i,t.statements)},[256]:function(t,r,i){return Ft(r,t.label)||Ft(r,t.statement)},[257]:function(t,r,i){return Ft(r,t.expression)},[258]:function(t,r,i){return Ft(r,t.tryBlock)||Ft(r,t.catchClause)||Ft(r,t.finallyBlock)},[299]:function(t,r,i){return Ft(r,t.variableDeclaration)||Ft(r,t.block)},[170]:function(t,r,i){return Ft(r,t.expression)},[263]:Tpe,[231]:Tpe,[264]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||bi(r,i,t.typeParameters)||bi(r,i,t.heritageClauses)||bi(r,i,t.members)},[265]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||bi(r,i,t.typeParameters)||Ft(r,t.type)},[266]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||bi(r,i,t.members)},[306]:function(t,r,i){return Ft(r,t.name)||Ft(r,t.initializer)},[267]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||Ft(r,t.body)},[271]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)||Ft(r,t.moduleReference)},[272]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.importClause)||Ft(r,t.moduleSpecifier)||Ft(r,t.assertClause)},[273]:function(t,r,i){return Ft(r,t.name)||Ft(r,t.namedBindings)},[300]:function(t,r,i){return bi(r,i,t.elements)},[301]:function(t,r,i){return Ft(r,t.name)||Ft(r,t.value)},[270]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.name)},[274]:function(t,r,i){return Ft(r,t.name)},[280]:function(t,r,i){return Ft(r,t.name)},[275]:xpe,[279]:xpe,[278]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.exportClause)||Ft(r,t.moduleSpecifier)||Ft(r,t.assertClause)},[276]:Spe,[281]:Spe,[277]:function(t,r,i){return bi(r,i,t.modifiers)||Ft(r,t.expression)},[228]:function(t,r,i){return Ft(r,t.head)||bi(r,i,t.templateSpans)},[239]:function(t,r,i){return Ft(r,t.expression)||Ft(r,t.literal)},[203]:function(t,r,i){return Ft(r,t.head)||bi(r,i,t.templateSpans)},[204]:function(t,r,i){return Ft(r,t.type)||Ft(r,t.literal)},[167]:function(t,r,i){return Ft(r,t.expression)},[298]:function(t,r,i){return bi(r,i,t.types)},[233]:function(t,r,i){return Ft(r,t.expression)||bi(r,i,t.typeArguments)},[283]:function(t,r,i){return Ft(r,t.expression)},[282]:function(t,r,i){return bi(r,i,t.modifiers)},[361]:function(t,r,i){return bi(r,i,t.elements)},[284]:function(t,r,i){return Ft(r,t.openingElement)||bi(r,i,t.children)||Ft(r,t.closingElement)},[288]:function(t,r,i){return Ft(r,t.openingFragment)||bi(r,i,t.children)||Ft(r,t.closingFragment)},[285]:kpe,[286]:kpe,[292]:function(t,r,i){return bi(r,i,t.properties)},[291]:function(t,r,i){return Ft(r,t.name)||Ft(r,t.initializer)},[293]:function(t,r,i){return Ft(r,t.expression)},[294]:function(t,r,i){return Ft(r,t.dotDotDotToken)||Ft(r,t.expression)},[287]:function(t,r,i){return Ft(r,t.tagName)},[295]:function(t,r,i){return Ft(r,t.namespace)||Ft(r,t.name)},[190]:u4,[191]:u4,[316]:u4,[322]:u4,[321]:u4,[323]:u4,[325]:u4,[324]:function(t,r,i){return bi(r,i,t.parameters)||Ft(r,t.type)},[327]:function(t,r,i){return(typeof t.comment=="string"?void 0:bi(r,i,t.comment))||bi(r,i,t.tags)},[354]:function(t,r,i){return Ft(r,t.tagName)||Ft(r,t.name)||(typeof t.comment=="string"?void 0:bi(r,i,t.comment))},[317]:function(t,r,i){return Ft(r,t.name)},[318]:function(t,r,i){return Ft(r,t.left)||Ft(r,t.right)},[348]:Cpe,[355]:Cpe,[337]:function(t,r,i){return Ft(r,t.tagName)||(typeof t.comment=="string"?void 0:bi(r,i,t.comment))},[336]:function(t,r,i){return Ft(r,t.tagName)||Ft(r,t.class)||(typeof t.comment=="string"?void 0:bi(r,i,t.comment))},[335]:function(t,r,i){return Ft(r,t.tagName)||Ft(r,t.class)||(typeof t.comment=="string"?void 0:bi(r,i,t.comment))},[352]:function(t,r,i){return Ft(r,t.tagName)||Ft(r,t.constraint)||bi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:bi(r,i,t.comment))},[353]:function(t,r,i){return Ft(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Ft(r,t.typeExpression)||Ft(r,t.fullName)||(typeof t.comment=="string"?void 0:bi(r,i,t.comment)):Ft(r,t.fullName)||Ft(r,t.typeExpression)||(typeof t.comment=="string"?void 0:bi(r,i,t.comment)))},[345]:function(t,r,i){return Ft(r,t.tagName)||Ft(r,t.fullName)||Ft(r,t.typeExpression)||(typeof t.comment=="string"?void 0:bi(r,i,t.comment))},[349]:f4,[351]:f4,[350]:f4,[347]:f4,[357]:f4,[356]:f4,[346]:f4,[330]:function(t,r,i){return pn(t.typeParameters,r)||pn(t.parameters,r)||Ft(r,t.type)},[331]:CG,[332]:CG,[333]:CG,[329]:function(t,r,i){return pn(t.jsDocPropertyTags,r)},[334]:vS,[339]:vS,[340]:vS,[341]:vS,[342]:vS,[343]:vS,[338]:vS,[344]:vS,[360]:bNe},(e=>{var t=U0(99,!0),r=40960,i,a,o,l,u;function f(q){return Je++,q}var g={createBaseSourceFileNode:q=>f(new u(q,0,0)),createBaseIdentifierNode:q=>f(new o(q,0,0)),createBasePrivateIdentifierNode:q=>f(new l(q,0,0)),createBaseTokenNode:q=>f(new a(q,0,0)),createBaseNode:q=>f(new i(q,0,0))},m=HD(11,g),{createNodeArray:y,createNumericLiteral:x,createStringLiteral:k,createLiteralLikeNode:C,createIdentifier:N,createPrivateIdentifier:D,createToken:M,createArrayLiteralExpression:V,createObjectLiteralExpression:U,createPropertyAccessExpression:Y,createPropertyAccessChain:j,createElementAccessExpression:ee,createElementAccessChain:R,createCallExpression:Z,createCallChain:oe,createNewExpression:_e,createParenthesizedExpression:X,createBlock:H,createVariableStatement:Q,createExpressionStatement:ne,createIfStatement:ue,createWhileStatement:fe,createForStatement:G,createForOfStatement:Ne,createVariableDeclaration:De,createVariableDeclarationList:Xe}=m,ve,be,xe,rt,ct,pe,Pe,Ge,tt,mt,Je,ot,Jt,Pt,bt,_r,xn=!0,Bt=!1;function er(q,de,Le,lt,Dt=!1,Kt,Ir){var xi;if(Kt=TO(q,Kt),Kt===6){const ui=pi(q,de,Le,lt,Dt);return DA(ui,(xi=ui.statements[0])==null?void 0:xi.expression,ui.parseDiagnostics,!1,void 0),ui.referencedFiles=Ve,ui.typeReferenceDirectives=Ve,ui.libReferenceDirectives=Ve,ui.amdDependencies=Ve,ui.hasNoDefaultLib=!1,ui.pragmas=bI,ui}ki(q,de,Le,lt,Kt);const si=pt(Le,Dt,Kt,Ir||wpe);return Nr(),si}e.parseSourceFile=er;function xr(q,de){ki("",q,de,void 0,1),We();const Le=sl(!0),lt=F()===1&&!Pe.length;return Nr(),lt?Le:void 0}e.parseIsolatedEntityName=xr;function pi(q,de,Le=2,lt,Dt=!1){ki(q,de,Le,lt,6),be=_r,We();const Kt=W();let Ir,xi;if(F()===1)Ir=Fa([],Kt,Kt),xi=_l();else{let as;for(;F()!==1;){let Za;switch(F()){case 23:Za=Ch();break;case 112:case 97:case 106:Za=_l();break;case 41:Yr(()=>We()===9&&We()!==59)?Za=Qd():Za=gd();break;case 9:case 11:if(Yr(()=>We()!==59)){Za=mi();break}default:Za=gd();break}as&&Ds(as)?as.push(Za):as?as=[as,Za]:(as=Za,F()!==1&&Nt(p.Unexpected_token))}const ao=Ds(as)?Wt(V(as),Kt):E.checkDefined(as),Ha=ne(ao);Wt(Ha,Kt),Ir=Fa([Ha],Kt),xi=zo(1,p.Unexpected_token)}const si=Pn(q,2,6,!1,Ir,xi,be,co);Dt&&cn(si),si.nodeCount=Je,si.identifierCount=Jt,si.identifiers=ot,si.parseDiagnostics=Qx(Pe,si),Ge&&(si.jsDocDiagnostics=Qx(Ge,si));const ui=si;return Nr(),ui}e.parseJsonText=pi;function ki(q,de,Le,lt,Dt){switch(i=Ol.getNodeConstructor(),a=Ol.getTokenConstructor(),o=Ol.getIdentifierConstructor(),l=Ol.getPrivateIdentifierConstructor(),u=Ol.getSourceFileConstructor(),ve=ba(q),xe=de,rt=Le,tt=lt,ct=Dt,pe=wD(Dt),Pe=[],Pt=0,ot=new Map,Jt=0,Je=0,be=0,xn=!0,ct){case 1:case 2:_r=524288;break;case 6:_r=134742016;break;default:_r=0;break}Bt=!1,t.setText(xe),t.setOnError(le),t.setScriptTarget(rt),t.setLanguageVariant(pe)}function Nr(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),xe=void 0,rt=void 0,tt=void 0,ct=void 0,pe=void 0,be=0,Pe=void 0,Ge=void 0,Pt=0,ot=void 0,bt=void 0,xn=!0}function pt(q,de,Le,lt){const Dt=ou(ve);Dt&&(_r|=33554432),be=_r,We();const Kt=ws(0,Sf);E.assert(F()===1);const Ir=ge(),xi=hn(_l(),Ir),si=Pn(ve,q,Le,Dt,Kt,xi,be,lt);return wG(si,xe),DG(si,ui),si.commentDirectives=t.getCommentDirectives(),si.nodeCount=Je,si.identifierCount=Jt,si.identifiers=ot,si.parseDiagnostics=Qx(Pe,si),Ge&&(si.jsDocDiagnostics=Qx(Ge,si)),de&&cn(si),si;function ui(as,ao,Ha){Pe.push(R6(ve,as,ao,Ha))}}let ur=!1;function hn(q,de){if(!de)return q;E.assert(!q.jsDoc);const Le=Hi(WW(q,xe),lt=>qa.parseJSDocComment(q,lt.pos,lt.end-lt.pos));return Le.length&&(q.jsDoc=Le),ur&&(ur=!1,q.flags|=536870912),q}function Ct(q){const de=tt,Le=MF.createSyntaxCursor(q);tt={currentNode:as};const lt=[],Dt=Pe;Pe=[];let Kt=0,Ir=si(q.statements,0);for(;Ir!==-1;){const ao=q.statements[Kt],Ha=q.statements[Ir];Fr(lt,q.statements,Kt,Ir),Kt=ui(q.statements,Ir);const Za=qc(Dt,Sl=>Sl.start>=ao.pos),R_=Za>=0?qc(Dt,Sl=>Sl.start>=Ha.pos,Za):-1;Za>=0&&Fr(Pe,Dt,Za,R_>=0?R_:void 0),Us(()=>{const Sl=_r;for(_r|=65536,t.resetTokenState(Ha.pos),We();F()!==1;){const em=t.getTokenFullStart(),jp=Wa(0,Sf);if(lt.push(jp),em===t.getTokenFullStart()&&We(),Kt>=0){const b0=q.statements[Kt];if(jp.end===b0.pos)break;jp.end>b0.pos&&(Kt=ui(q.statements,Kt+1))}}_r=Sl},2),Ir=Kt>=0?si(q.statements,Kt):-1}if(Kt>=0){const ao=q.statements[Kt];Fr(lt,q.statements,Kt);const Ha=qc(Dt,Za=>Za.start>=ao.pos);Ha>=0&&Fr(Pe,Dt,Ha)}return tt=de,m.updateSourceFile(q,Ke(y(lt),q.statements));function xi(ao){return!(ao.flags&65536)&&!!(ao.transformFlags&67108864)}function si(ao,Ha){for(let Za=Ha;Za118}function di(){return F()===80?!0:F()===127&&Ae()||F()===135&&Fn()?!1:F()>118}function ln(q,de,Le=!0){return F()===q?(Le&&We(),!0):(de?Nt(de):Nt(p._0_expected,ia(q)),!1)}const tc=Object.keys(pw).filter(q=>q.length>2);function qi(q){var Dt;if(Kb(q)){z(_a(xe,q.template.pos),q.template.end,p.Module_declaration_names_may_only_use_or_quoted_strings);return}const de=we(q)?lr(q):void 0;if(!de||!pf(de,rt)){Nt(p._0_expected,ia(27));return}const Le=_a(xe,q.pos);switch(de){case"const":case"let":case"var":z(Le,q.end,p.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Es(p.Interface_name_cannot_be_0,p.Interface_must_be_given_a_name,19);return;case"is":z(Le,t.getTokenStart(),p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Es(p.Namespace_name_cannot_be_0,p.Namespace_must_be_given_a_name,19);return;case"type":Es(p.Type_alias_name_cannot_be_0,p.Type_alias_must_be_given_a_name,64);return}const lt=(Dt=NC(de,tc,Kt=>Kt))!=null?Dt:Ea(de);if(lt){z(Le,q.end,p.Unknown_keyword_or_identifier_Did_you_mean_0,lt);return}F()!==0&&z(Le,q.end,p.Unexpected_keyword_or_identifier)}function Es(q,de,Le){F()===Le?Nt(de):Nt(q,t.getTokenValue())}function Ea(q){for(const de of tc)if(q.length>de.length+2&&ns(q,de))return`${de} ${q.slice(de.length)}`}function ro(q,de,Le){if(F()===60&&!t.hasPrecedingLineBreak()){Nt(p.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(F()===21){Nt(p.Cannot_start_a_function_call_in_a_type_annotation),We();return}if(de&&!Rs()){Le?Nt(p._0_expected,ia(27)):Nt(p.Expected_for_property_initializer);return}if(!po()){if(Le){Nt(p._0_expected,ia(27));return}qi(q)}}function za(q){return F()===q?(Tt(),!0):(E.assert(G9(q)),Nt(p._0_expected,ia(q)),!1)}function Pc(q,de,Le,lt){if(F()===de){We();return}const Dt=Nt(p._0_expected,ia(de));!Le||Dt&&ua(Dt,R6(ve,lt,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ia(q),ia(de)))}function ls(q){return F()===q?(We(),!0):!1}function Li(q){if(F()===q)return _l()}function Vc(q){if(F()===q)return Bf()}function zo(q,de,Le){return Li(q)||pc(q,!1,de||p._0_expected,Le||ia(q))}function L_(q){const de=Vc(q);return de||(E.assert(G9(q)),pc(q,!1,p._0_expected,ia(q)))}function _l(){const q=W(),de=F();return We(),Wt(M(de),q)}function Bf(){const q=W(),de=F();return Tt(),Wt(M(de),q)}function Rs(){return F()===27?!0:F()===20||F()===1||t.hasPrecedingLineBreak()}function po(){return Rs()?(F()===27&&We(),!0):!1}function Ba(){return po()||ln(27)}function Fa(q,de,Le,lt){const Dt=y(q,lt);return Tm(Dt,de,Le!=null?Le:t.getTokenFullStart()),Dt}function Wt(q,de,Le){return Tm(q,de,Le!=null?Le:t.getTokenFullStart()),_r&&(q.flags|=_r),Bt&&(Bt=!1,q.flags|=262144),q}function pc(q,de,Le,...lt){de?hi(t.getTokenFullStart(),0,Le,...lt):Le&&Nt(Le,...lt);const Dt=W(),Kt=q===80?N("",void 0):e1(q)?m.createTemplateLiteralLikeNode(q,"","",void 0):q===9?x("",void 0):q===11?k("",void 0):q===282?m.createMissingDeclaration():M(q);return Wt(Kt,Dt)}function h_(q){let de=ot.get(q);return de===void 0&&ot.set(q,de=q),de}function M_(q,de,Le){if(q){Jt++;const xi=W(),si=F(),ui=h_(t.getTokenValue()),as=t.hasExtendedUnicodeEscape();return ye(),Wt(N(ui,si,as),xi)}if(F()===81)return Nt(Le||p.Private_identifiers_are_not_allowed_outside_class_bodies),M_(!0);if(F()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return M_(!0);Jt++;const lt=F()===1,Dt=t.isReservedWord(),Kt=t.getTokenText(),Ir=Dt?p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:p.Identifier_expected;return pc(80,lt,de||Ir,Kt)}function q_(q){return M_(Ms(),void 0,q)}function vo(q,de){return M_(di(),q,de)}function $o(q){return M_(V_(F()),q)}function A(){return V_(F())||F()===11||F()===9}function Ce(){return V_(F())||F()===11}function Re(q){if(F()===11||F()===9){const de=mi();return de.text=h_(de.text),de}return q&&F()===23?yn():F()===81?Pr():$o()}function xt(){return Re(!0)}function yn(){const q=W();ln(23);const de=ze(v_);return ln(24),Wt(m.createComputedPropertyName(de),q)}function Pr(){const q=W(),de=D(h_(t.getTokenValue()));return We(),Wt(de,q)}function En(q){return F()===q&&cs(ci)}function gr(){return We(),t.hasPrecedingLineBreak()?!1:ac()}function ci(){switch(F()){case 87:return We()===94;case 95:return We(),F()===90?Yr(Ic):F()===156?Yr(La):Vr();case 90:return Ic();case 126:case 139:case 153:return We(),ac();default:return gr()}}function Vr(){return F()===60||F()!==42&&F()!==130&&F()!==19&&ac()}function La(){return We(),Vr()}function io(){return q0(F())&&cs(ci)}function ac(){return F()===23||F()===19||F()===42||F()===26||A()}function Ic(){return We(),F()===86||F()===100||F()===120||F()===60||F()===128&&Yr(xg)||F()===134&&Yr(YT)}function dc(q,de){if(oc(q))return!0;switch(q){case 0:case 1:case 3:return!(F()===27&&de)&&y0();case 2:return F()===84||F()===90;case 4:return Yr(Wy);case 5:return Yr(Jf)||F()===27&&!de;case 6:return F()===23||A();case 12:switch(F()){case 23:case 42:case 26:case 25:return!0;default:return A()}case 18:return A();case 9:return F()===23||F()===26||A();case 24:return Ce();case 7:return F()===19?Yr(Ka):de?di()&&!Vo():u0()&&!Vo();case 8:return X_();case 10:return F()===28||F()===26||X_();case 19:return F()===103||F()===87||di();case 15:switch(F()){case 28:case 25:return!0}case 11:return F()===26||Tf();case 16:return Gi(!1);case 17:return Gi(!0);case 20:case 21:return F()===28||vh();case 22:return et();case 23:return F()===161&&Yr(zu)?!1:V_(F());case 13:return V_(F())||F()===19;case 14:return!0;case 25:return!0;case 26:return E.fail("ParsingContext.Count used as a context");default:E.assertNever(q,"Non-exhaustive case in 'isListElement'.")}}function Ka(){if(E.assert(F()===19),We()===20){const q=We();return q===28||q===19||q===96||q===119}return!0}function nc(){return We(),di()}function H_(){return We(),V_(F())}function Uc(){return We(),rce(F())}function Vo(){return F()===119||F()===96?Yr(Tu):!1}function Tu(){return We(),Tf()}function he(){return We(),vh()}function vt(q){if(F()===1)return!0;switch(q){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return F()===20;case 3:return F()===20||F()===84||F()===90;case 7:return F()===19||F()===96||F()===119;case 8:return vn();case 19:return F()===32||F()===21||F()===19||F()===96||F()===119;case 11:return F()===22||F()===27;case 15:case 21:case 10:return F()===24;case 17:case 16:case 18:return F()===22||F()===24;case 20:return F()!==28;case 22:return F()===19||F()===20;case 13:return F()===32||F()===44;case 14:return F()===30&&Yr(Nh);default:return!1}}function vn(){return!!(Rs()||GT(F())||F()===39)}function ji(){E.assert(Pt,"Missing parsing context");for(let q=0;q<26;q++)if(Pt&1<=0)}function Zc(q){return q===6?p.An_enum_member_name_must_be_followed_by_a_or:void 0}function Oc(){const q=Fa([],W());return q.isMissingList=!0,q}function il(q){return!!q.isMissingList}function Ml(q,de,Le,lt){if(ln(Le)){const Dt=Ro(q,de);return ln(lt),Dt}return Oc()}function sl(q,de){const Le=W();let lt=q?$o(de):vo(de);for(;ls(25)&&F()!==30;)lt=Wt(m.createQualifiedName(lt,ud(q,!1)),Le);return lt}function ju(q,de){return Wt(m.createQualifiedName(q,de),q.pos)}function ud(q,de){if(t.hasPrecedingLineBreak()&&V_(F())&&Yr(Qo))return pc(80,!0,p.Identifier_expected);if(F()===81){const Le=Pr();return de?Le:pc(80,!0,p.Identifier_expected)}return q?$o():vo()}function w1(q){const de=W(),Le=[];let lt;do lt=xs(q),Le.push(lt);while(lt.literal.kind===17);return Fa(Le,de)}function qd(q){const de=W();return Wt(m.createTemplateExpression(is(q),w1(q)),de)}function J(){const q=W();return Wt(m.createTemplateLiteralType(is(!1),Be()),q)}function Be(){const q=W(),de=[];let Le;do Le=At(),de.push(Le);while(Le.literal.kind===17);return Fa(de,q)}function At(){const q=W();return Wt(m.createTemplateLiteralTypeSpan(al(),Jn(!1)),q)}function Jn(q){return F()===20?(ir(q),Ss()):zo(18,p._0_expected,ia(20))}function xs(q){const de=W();return Wt(m.createTemplateSpan(ze(v_),Jn(q)),de)}function mi(){return sa(F())}function is(q){!q&&t.getTokenFlags()&26656&&ir(!1);const de=sa(F());return E.assert(de.kind===16,"Template head has wrong token kind"),de}function Ss(){const q=sa(F());return E.assert(q.kind===17||q.kind===18,"Template fragment has wrong token kind"),q}function Lo(q){const de=q===15||q===18,Le=t.getTokenText();return Le.substring(1,Le.length-(t.isUnterminated()?0:de?1:2))}function sa(q){const de=W(),Le=e1(q)?m.createTemplateLiteralLikeNode(q,t.getTokenValue(),Lo(q),t.getTokenFlags()&7176):q===9?x(t.getTokenValue(),t.getNumericLiteralFlags()):q===11?k(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):XC(q)?C(q,t.getTokenValue()):E.fail();return t.hasExtendedUnicodeEscape()&&(Le.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Le.isUnterminated=!0),We(),Wt(Le,de)}function xl(){return sl(!0,p.Type_expected)}function cf(){if(!t.hasPrecedingLineBreak()&&ar()===30)return Ml(20,al,30,32)}function y_(){const q=W();return Wt(m.createTypeReferenceNode(xl(),cf()),q)}function fd(q){switch(q.kind){case 183:return _c(q.typeName);case 184:case 185:{const{parameters:de,type:Le}=q;return il(de)||fd(Le)}case 196:return fd(q.type);default:return!1}}function Hd(q){return We(),Wt(m.createTypePredicateNode(void 0,q,al()),q.pos)}function Lp(){const q=W();return We(),Wt(m.createThisTypeNode(),q)}function Ee(){const q=W();return We(),Wt(m.createJSDocAllType(),q)}function je(){const q=W();return We(),Wt(m.createJSDocNonNullableType(R2(),!1),q)}function Ye(){const q=W();return We(),F()===28||F()===20||F()===22||F()===32||F()===64||F()===52?Wt(m.createJSDocUnknownType(),q):Wt(m.createJSDocNullableType(al(),!1),q)}function Mt(){const q=W(),de=ge();if(Yr(Y_)){We();const Le=jf(36),lt=Xo(59,!1);return hn(Wt(m.createJSDocFunctionType(Le,lt),q),de)}return Wt(m.createTypeReferenceNode($o(),void 0),q)}function rn(){const q=W();let de;return(F()===110||F()===105)&&(de=$o(),ln(59)),Wt(m.createParameterDeclaration(void 0,void 0,de,void 0,un(),void 0),q)}function un(){t.setInJSDocType(!0);const q=W();if(ls(144)){const lt=m.createJSDocNamepathType(void 0);e:for(;;)switch(F()){case 20:case 1:case 28:case 5:break e;default:Tt()}return t.setInJSDocType(!1),Wt(lt,q)}const de=ls(26);let Le=WT();return t.setInJSDocType(!1),de&&(Le=Wt(m.createJSDocVariadicType(Le),q)),F()===64?(We(),Wt(m.createJSDocOptionalType(Le),q)):Le}function nn(){const q=W();ln(114);const de=sl(!0),Le=t.hasPrecedingLineBreak()?void 0:te();return Wt(m.createTypeQueryNode(de,Le),q)}function Vn(){const q=W(),de=Om(!1,!0),Le=vo();let lt,Dt;ls(96)&&(vh()||!Tf()?lt=al():Dt=Su());const Kt=ls(64)?al():void 0,Ir=m.createTypeParameterDeclaration(de,Le,lt,Kt);return Ir.expression=Dt,Wt(Ir,q)}function Br(){if(F()===30)return Ml(19,Vn,30,32)}function Gi(q){return F()===26||X_()||q0(F())||F()===60||vh(!q)}function Hn(q){const de=z1(p.Private_identifiers_cannot_be_used_as_parameters);return Nw(de)===0&&!dt(q)&&q0(F())&&We(),de}function cr(){return Ms()||F()===23||F()===19}function wr(q){return Fc(q)}function ta(q){return Fc(q,!1)}function Fc(q,de=!0){const Le=W(),lt=ge(),Dt=q?Me(()=>Om(!0)):ke(()=>Om(!0));if(F()===110){const si=m.createParameterDeclaration(Dt,void 0,M_(!0),void 0,Fe(),void 0),ui=wl(Dt);return ui&&B(ui,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),hn(Wt(si,Le),lt)}const Kt=xn;xn=!1;const Ir=Li(26);if(!de&&!cr())return;const xi=hn(Wt(m.createParameterDeclaration(Dt,Ir,Hn(Dt),Li(58),Fe(),fp()),Le),lt);return xn=Kt,xi}function Xo(q,de){if(pg(q,de))return kt(WT)}function pg(q,de){return q===39?(ln(q),!0):ls(59)?!0:de&&F()===39?(Nt(p._0_expected,ia(59)),We(),!0):!1}function Gd(q,de){const Le=Ae(),lt=Fn();Yt(!!(q&1)),Sn(!!(q&2));const Dt=q&32?Ro(17,rn):Ro(16,()=>de?wr(lt):ta(lt));return Yt(Le),Sn(lt),Dt}function jf(q){if(!ln(21))return Oc();const de=Gd(q,!0);return ln(22),de}function c0(){ls(28)||Ba()}function mh(q){const de=W(),Le=ge();q===180&&ln(105);const lt=Br(),Dt=jf(4),Kt=Xo(59,!0);c0();const Ir=q===179?m.createCallSignature(lt,Dt,Kt):m.createConstructSignature(lt,Dt,Kt);return hn(Wt(Ir,de),Le)}function FT(){return F()===23&&Yr(V4)}function V4(){if(We(),F()===26||F()===24)return!0;if(q0(F())){if(We(),di())return!0}else if(di())We();else return!1;return F()===59||F()===28?!0:F()!==58?!1:(We(),F()===59||F()===28||F()===24)}function l0(q,de,Le){const lt=Ml(16,()=>wr(!1),23,24),Dt=Fe();c0();const Kt=m.createIndexSignature(Le,lt,Dt);return hn(Wt(Kt,q),de)}function gh(q,de,Le){const lt=xt(),Dt=Li(58);let Kt;if(F()===21||F()===30){const Ir=Br(),xi=jf(4),si=Xo(59,!0);Kt=m.createMethodSignature(Le,lt,Dt,Ir,xi,si)}else{const Ir=Fe();Kt=m.createPropertySignature(Le,lt,Dt,Ir),F()===64&&(Kt.initializer=fp())}return c0(),hn(Wt(Kt,q),de)}function Wy(){if(F()===21||F()===30||F()===139||F()===153)return!0;let q=!1;for(;q0(F());)q=!0,We();return F()===23?!0:(A()&&(q=!0,We()),q?F()===21||F()===30||F()===58||F()===59||F()===28||Rs():!1)}function D1(){if(F()===21||F()===30)return mh(179);if(F()===105&&Yr(qy))return mh(180);const q=W(),de=ge(),Le=Om(!1);return En(139)?Uo(q,de,Le,177,4):En(153)?Uo(q,de,Le,178,4):FT()?l0(q,de,Le):gh(q,de,Le)}function qy(){return We(),F()===21||F()===30}function hh(){return We()===25}function LT(){switch(We()){case 21:case 30:case 25:return!0}return!1}function KS(){const q=W();return Wt(m.createTypeLiteralNode(MT()),q)}function MT(){let q;return ln(19)?(q=ws(4,D1),ln(20)):q=Oc(),q}function RT(){return We(),F()===40||F()===41?We()===148:(F()===148&&We(),F()===23&&nc()&&We()===103)}function F2(){const q=W(),de=$o();ln(103);const Le=al();return Wt(m.createTypeParameterDeclaration(void 0,de,Le,void 0),q)}function BT(){const q=W();ln(19);let de;(F()===148||F()===40||F()===41)&&(de=_l(),de.kind!==148&&ln(148)),ln(23);const Le=F2(),lt=ls(130)?al():void 0;ln(24);let Dt;(F()===58||F()===40||F()===41)&&(Dt=_l(),Dt.kind!==58&&ln(58));const Kt=Fe();Ba();const Ir=ws(4,D1);return ln(20),Wt(m.createMappedTypeNode(de,Le,lt,Dt,Kt,Ir),q)}function jT(){const q=W();if(ls(26))return Wt(m.createRestTypeNode(al()),q);const de=al();if(n4(de)&&de.pos===de.type.pos){const Le=m.createOptionalTypeNode(de.type);return Ke(Le,de),Le.flags=de.flags,Le}return de}function L2(){return We()===59||F()===58&&We()===59}function JT(){return F()===26?V_(We())&&L2():V_(F())&&L2()}function zT(){if(Yr(JT)){const q=W(),de=ge(),Le=Li(26),lt=$o(),Dt=Li(58);ln(59);const Kt=jT(),Ir=m.createNamedTupleMember(Le,lt,Dt,Kt);return hn(Wt(Ir,q),de)}return jT()}function ek(){const q=W();return Wt(m.createTupleTypeNode(Ml(21,zT,23,24)),q)}function VT(){const q=W();ln(21);const de=al();return ln(22),Wt(m.createParenthesizedType(de),q)}function tk(){let q;if(F()===128){const de=W();We();const Le=Wt(M(128),de);q=Fa([Le],de)}return q}function A1(){const q=W(),de=ge(),Le=tk(),lt=ls(105);E.assert(!Le||lt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Dt=Br(),Kt=jf(4),Ir=Xo(39,!1),xi=lt?m.createConstructorTypeNode(Le,Dt,Kt,Ir):m.createFunctionTypeNode(Dt,Kt,Ir);return hn(Wt(xi,q),de)}function Hy(){const q=_l();return F()===25?void 0:q}function yh(q){const de=W();q&&We();let Le=F()===112||F()===97||F()===106?_l():sa(F());return q&&(Le=Wt(m.createPrefixUnaryExpression(41,Le),de)),Wt(m.createLiteralTypeNode(Le),de)}function Gy(){return We(),F()===102}function M2(){const q=W(),de=t.getTokenStart();ln(19);const Le=t.hasPrecedingLineBreak();ln(132),ln(59);const lt=v0(!0);if(!ln(20)){const Dt=jo(Pe);Dt&&Dt.code===p._0_expected.code&&ua(Dt,R6(ve,de,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Wt(m.createImportTypeAssertionContainer(lt,Le),q)}function _0(){be|=4194304;const q=W(),de=ls(114);ln(102),ln(21);const Le=al();let lt;ls(28)&&(lt=M2()),ln(22);const Dt=ls(25)?xl():void 0,Kt=cf();return Wt(m.createImportTypeNode(Le,lt,Dt,Kt,de),q)}function xa(){return We(),F()===9||F()===10}function R2(){switch(F()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return cs(Hy)||y_();case 67:t.reScanAsteriskEqualsToken();case 42:return Ee();case 61:t.reScanQuestionToken();case 58:return Ye();case 100:return Mt();case 54:return je();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return yh();case 41:return Yr(xa)?yh(!0):y_();case 116:return _l();case 110:{const q=Lp();return F()===142&&!t.hasPrecedingLineBreak()?Hd(q):q}case 114:return Yr(Gy)?_0():nn();case 19:return Yr(RT)?BT():KS();case 23:return ek();case 21:return VT();case 102:return _0();case 131:return Yr(Qo)?bh():y_();case 16:return J();default:return y_()}}function vh(q){switch(F()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!q;case 41:return!q&&Yr(xa);case 21:return!q&&Yr(N1);default:return di()}}function N1(){return We(),F()===22||Gi(!1)||vh()}function dg(){const q=W();let de=R2();for(;!t.hasPrecedingLineBreak();)switch(F()){case 54:We(),de=Wt(m.createJSDocNonNullableType(de,!0),q);break;case 58:if(Yr(he))return de;We(),de=Wt(m.createJSDocNullableType(de,!0),q);break;case 23:if(ln(23),vh()){const Le=al();ln(24),de=Wt(m.createIndexedAccessTypeNode(de,Le),q)}else ln(24),de=Wt(m.createArrayTypeNode(de),q);break;default:return de}return de}function $d(q){const de=W();return ln(q),Wt(m.createTypeOperatorNode(q,xu()),de)}function bf(){if(ls(96)){const q=it(al);if(_t()||F()!==58)return q}}function Ju(){const q=W(),de=vo(),Le=cs(bf),lt=m.createTypeParameterDeclaration(void 0,de,Le);return Wt(lt,q)}function lu(){const q=W();return ln(140),Wt(m.createInferTypeNode(Ju()),q)}function xu(){const q=F();switch(q){case 143:case 158:case 148:return $d(q);case 140:return lu()}return kt(dg)}function $y(q){if(P1()){const de=A1();let Le;return og(de)?Le=q?p.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Le=q?p.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,B(de,Le),de}}function Xy(q,de,Le){const lt=W(),Dt=q===52,Kt=ls(q);let Ir=Kt&&$y(Dt)||de();if(F()===q||Kt){const xi=[Ir];for(;ls(q);)xi.push($y(Dt)||de());Ir=Wt(Le(Fa(xi,lt)),lt)}return Ir}function U4(){return Xy(51,xu,m.createIntersectionTypeNode)}function Qy(){return Xy(52,U4,m.createUnionTypeNode)}function UT(){return We(),F()===105}function P1(){return F()===30||F()===21&&Yr(B2)?!0:F()===105||F()===128&&Yr(UT)}function Yy(){if(q0(F())&&Om(!1),di()||F()===110)return We(),!0;if(F()===23||F()===19){const q=Pe.length;return z1(),q===Pe.length}return!1}function B2(){return We(),!!(F()===22||F()===26||Yy()&&(F()===59||F()===28||F()===58||F()===64||F()===22&&(We(),F()===39)))}function WT(){const q=W(),de=di()&&cs(j2),Le=al();return de?Wt(m.createTypePredicateNode(void 0,de,Le),q):Le}function j2(){const q=vo();if(F()===142&&!t.hasPrecedingLineBreak())return We(),q}function bh(){const q=W(),de=zo(131),Le=F()===110?Lp():vo(),lt=ls(142)?al():void 0;return Wt(m.createTypePredicateNode(de,Le,lt),q)}function al(){if(_r&81920)return Gr(81920,al);if(P1())return A1();const q=W(),de=Qy();if(!_t()&&!t.hasPrecedingLineBreak()&&ls(96)){const Le=it(al);ln(58);const lt=kt(al);ln(59);const Dt=kt(al);return Wt(m.createConditionalTypeNode(de,Le,lt,Dt),q)}return de}function Fe(){return ls(59)?al():void 0}function u0(){switch(F()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Yr(LT);default:return di()}}function Tf(){if(u0())return!0;switch(F()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return jr()?!0:di()}}function Th(){return F()!==19&&F()!==100&&F()!==86&&F()!==60&&Tf()}function v_(){const q=jt();q&&Gt(!1);const de=W();let Le=b_(!0),lt;for(;lt=Li(28);)Le=G_(Le,lt,b_(!0),de);return q&&Gt(!0),Le}function fp(){return ls(64)?b_(!0):void 0}function b_(q){if(f0())return Pa();const de=qT(q)||mg(q);if(de)return de;const Le=W(),lt=ge(),Dt=I1(0);return Dt.kind===80&&F()===39?pp(Le,Dt,q,lt,void 0):du(Dt)&&Y0(on())?G_(Dt,_l(),b_(q),Le):xf(Dt,Le,q)}function f0(){return F()===127?Ae()?!0:Yr(B1):!1}function nk(){return We(),!t.hasPrecedingLineBreak()&&di()}function Pa(){const q=W();return We(),!t.hasPrecedingLineBreak()&&(F()===42||Tf())?Wt(m.createYieldExpression(Li(42),b_(!0)),q):Wt(m.createYieldExpression(void 0,void 0),q)}function pp(q,de,Le,lt,Dt){E.assert(F()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Kt=m.createParameterDeclaration(void 0,void 0,de,void 0,void 0,void 0);Wt(Kt,de.pos);const Ir=Fa([Kt],Kt.pos,Kt.end),xi=zo(39),si=Nm(!!Dt,Le),ui=m.createArrowFunction(Dt,void 0,Ir,void 0,xi,si);return hn(Wt(ui,q),lt)}function qT(q){const de=rk();if(de!==0)return de===1?pd(!0,!0):cs(()=>Zy(q))}function rk(){return F()===21||F()===30||F()===134?Yr(HT):F()===39?1:0}function HT(){if(F()===134&&(We(),t.hasPrecedingLineBreak()||F()!==21&&F()!==30))return 0;const q=F(),de=We();if(q===21){if(de===22)switch(We()){case 39:case 59:case 19:return 1;default:return 0}if(de===23||de===19)return 2;if(de===26)return 1;if(q0(de)&&de!==134&&Yr(nc))return We()===130?0:1;if(!di()&&de!==110)return 0;switch(We()){case 59:return 1;case 58:return We(),F()===59||F()===28||F()===64||F()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return E.assert(q===30),!di()&&F()!==87?0:pe===1?Yr(()=>{ls(87);const lt=We();if(lt===96)switch(We()){case 64:case 32:case 44:return!1;default:return!0}else if(lt===28||lt===64)return!0;return!1})?1:0:2}function Zy(q){const de=t.getTokenStart();if(bt!=null&&bt.has(de))return;const Le=pd(!1,q);return Le||(bt||(bt=new Set)).add(de),Le}function mg(q){if(F()===134&&Yr(Ky)===1){const de=W(),Le=ge(),lt=uf(),Dt=I1(0);return pp(de,Dt,q,Le,lt)}}function Ky(){if(F()===134){if(We(),t.hasPrecedingLineBreak()||F()===39)return 0;const q=I1(0);if(!t.hasPrecedingLineBreak()&&q.kind===80&&F()===39)return 1}return 0}function pd(q,de){const Le=W(),lt=ge(),Dt=uf(),Kt=dt(Dt,K3)?2:0,Ir=Br();let xi;if(ln(21)){if(q)xi=Gd(Kt,q);else{const em=Gd(Kt,q);if(!em)return;xi=em}if(!ln(22)&&!q)return}else{if(!q)return;xi=Oc()}const si=F()===59,ui=Xo(59,!1);if(ui&&!q&&fd(ui))return;let as=ui;for(;(as==null?void 0:as.kind)===196;)as=as.type;const ao=as&&r4(as);if(!q&&F()!==39&&(ao||F()!==19))return;const Ha=F(),Za=zo(39),R_=Ha===39||Ha===19?Nm(dt(Dt,K3),de):vo();if(!de&&si&&F()!==59)return;const Sl=m.createArrowFunction(Dt,Ir,xi,ui,Za,R_);return hn(Wt(Sl,Le),lt)}function Nm(q,de){if(F()===19)return g0(q?2:0);if(F()!==27&&F()!==100&&F()!==86&&y0()&&!Th())return g0(16|(q?2:0));const Le=xn;xn=!1;const lt=q?Me(()=>b_(de)):ke(()=>b_(de));return xn=Le,lt}function xf(q,de,Le){const lt=Li(58);if(!lt)return q;let Dt;return Wt(m.createConditionalExpression(q,lt,Gr(r,()=>b_(!1)),Dt=zo(59),Qf(Dt)?b_(Le):pc(80,!1,p._0_expected,ia(59))),de)}function I1(q){const de=W(),Le=Su();return Mi(q,Le,de)}function GT(q){return q===103||q===165}function Mi(q,de,Le){for(;;){on();const lt=dD(F());if(!(F()===43?lt>=q:lt>q)||F()===103&&ht())break;if(F()===130||F()===152){if(t.hasPrecedingLineBreak())break;{const Kt=F();We(),de=Kt===152?Xd(de,al()):W4(de,al())}}else de=G_(de,_l(),I1(lt),Le)}return de}function jr(){return ht()&&F()===103?!1:dD(F())>0}function Xd(q,de){return Wt(m.createSatisfiesExpression(q,de),q.pos)}function G_(q,de,Le,lt){return Wt(m.createBinaryExpression(q,de,Le),lt)}function W4(q,de){return Wt(m.createAsExpression(q,de),q.pos)}function Qd(){const q=W();return Wt(m.createPrefixUnaryExpression(F(),Oe(Mp)),q)}function q4(){const q=W();return Wt(m.createDeleteExpression(Oe(Mp)),q)}function J2(){const q=W();return Wt(m.createTypeOfExpression(Oe(Mp)),q)}function Lc(){const q=W();return Wt(m.createVoidExpression(Oe(Mp)),q)}function O1(){return F()===135?Fn()?!0:Yr(B1):!1}function z2(){const q=W();return Wt(m.createAwaitExpression(Oe(Mp)),q)}function Su(){if(T_()){const Le=W(),lt=xh();return F()===43?Mi(dD(F()),lt,Le):lt}const q=F(),de=Mp();if(F()===43){const Le=_a(xe,de.pos),{end:lt}=de;de.kind===216?z(Le,lt,p.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(E.assert(G9(q)),z(Le,lt,p.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,ia(q)))}return de}function Mp(){switch(F()){case 40:case 41:case 55:case 54:return Qd();case 91:return q4();case 114:return J2();case 116:return Lc();case 30:return pe===1?Sh(!0,void 0,void 0,!0):H4();case 135:if(O1())return z2();default:return xh()}}function T_(){switch(F()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(pe!==1)return!1;default:return!0}}function xh(){if(F()===46||F()===47){const de=W();return Wt(m.createPrefixUnaryExpression(F(),Oe(V2)),de)}else if(pe===1&&F()===30&&Yr(Uc))return Sh(!0);const q=V2();if(E.assert(du(q)),(F()===46||F()===47)&&!t.hasPrecedingLineBreak()){const de=F();return We(),Wt(m.createPostfixUnaryExpression(q,de),q.pos)}return q}function V2(){const q=W();let de;return F()===102?Yr(qy)?(be|=4194304,de=_l()):Yr(hh)?(We(),We(),de=Wt(m.createMetaProperty(102,$o()),q),be|=8388608):de=p0():de=F()===108?F1():p0(),qn(q,de)}function p0(){const q=W(),de=md();return Rp(q,de,!0)}function F1(){const q=W();let de=_l();if(F()===30){const Le=W(),lt=cs(iv);lt!==void 0&&(z(Le,W(),p.super_may_not_use_type_arguments),L1()||(de=m.createExpressionWithTypeArguments(de,lt)))}return F()===21||F()===25||F()===23?de:(zo(25,p.super_must_be_followed_by_an_argument_list_or_member_access),Wt(Y(de,ud(!0,!0)),q))}function Sh(q,de,Le,lt=!1){const Dt=W(),Kt=kh(q);let Ir;if(Kt.kind===286){let xi=dd(Kt),si;const ui=xi[xi.length-1];if((ui==null?void 0:ui.kind)===284&&!My(ui.openingElement.tagName,ui.closingElement.tagName)&&My(Kt.tagName,ui.closingElement.tagName)){const as=ui.children.end,ao=Wt(m.createJsxElement(ui.openingElement,ui.children,Wt(m.createJsxClosingElement(Wt(N(""),as,as)),as,as)),ui.openingElement.pos,as);xi=Fa([...xi.slice(0,xi.length-1),ao],xi.pos,as),si=ui.closingElement}else si=tv(Kt,q),My(Kt.tagName,si.tagName)||(Le&&zd(Le)&&My(si.tagName,Le.tagName)?B(Kt.tagName,p.JSX_element_0_has_no_corresponding_closing_tag,t3(xe,Kt.tagName)):B(si.tagName,p.Expected_corresponding_JSX_closing_tag_for_0,t3(xe,Kt.tagName)));Ir=Wt(m.createJsxElement(Kt,xi,si),Dt)}else Kt.kind===289?Ir=Wt(m.createJsxFragment(Kt,dd(Kt),nv(q)),Dt):(E.assert(Kt.kind===285),Ir=Kt);if(!lt&&q&&F()===30){const xi=typeof de>"u"?Ir.pos:de,si=cs(()=>Sh(!0,xi));if(si){const ui=pc(28,!1);return z3(ui,si.pos,0),z(_a(xe,xi),si.end,p.JSX_expressions_must_have_one_parent_element),Wt(m.createBinaryExpression(Ir,ui,si),Dt)}}return Ir}function d0(){const q=W(),de=m.createJsxText(t.getTokenValue(),mt===13);return mt=t.scanJsxToken(),Wt(de,q)}function ik(q,de){switch(de){case 1:if(gS(q))B(q,p.JSX_fragment_has_no_corresponding_closing_tag);else{const Le=q.tagName,lt=Math.min(_a(xe,Le.pos),Le.end);z(lt,Le.end,p.JSX_element_0_has_no_corresponding_closing_tag,t3(xe,q.tagName))}return;case 31:case 7:return;case 12:case 13:return d0();case 19:return sk(!1);case 30:return Sh(!1,void 0,q);default:return E.assertNever(de)}}function dd(q){const de=[],Le=W(),lt=Pt;for(Pt|=1<<14;;){const Dt=ik(q,mt=t.reScanJsxToken());if(!Dt||(de.push(Dt),zd(q)&&(Dt==null?void 0:Dt.kind)===284&&!My(Dt.openingElement.tagName,Dt.closingElement.tagName)&&My(q.tagName,Dt.closingElement.tagName)))break}return Pt=lt,Fa(de,Le)}function Pm(){const q=W();return Wt(m.createJsxAttributes(ws(13,ak)),q)}function kh(q){const de=W();if(ln(30),F()===32)return ea(),Wt(m.createJsxOpeningFragment(),de);const Le=$T(),lt=(_r&524288)===0?te():void 0,Dt=Pm();let Kt;return F()===32?(ea(),Kt=m.createJsxOpeningElement(Le,lt,Dt)):(ln(44),ln(32,void 0,!1)&&(q?We():ea()),Kt=m.createJsxSelfClosingElement(Le,lt,Dt)),Wt(Kt,de)}function $T(){const q=W(),de=U2();if(sd(de))return de;let Le=de;for(;ls(25);)Le=Wt(Y(Le,ud(!0,!1)),q);return Le}function U2(){const q=W();oi();const de=F()===110,Le=$o();return ls(59)?(oi(),Wt(m.createJsxNamespacedName(Le,$o()),q)):de?Wt(m.createToken(110),q):Le}function sk(q){const de=W();if(!ln(19))return;let Le,lt;return F()!==20&&(Le=Li(26),lt=v_()),q?ln(20):ln(20,void 0,!1)&&ea(),Wt(m.createJsxExpression(Le,lt),de)}function ak(){if(F()===19)return dp();const q=W();return Wt(m.createJsxAttribute(ev(),so()),q)}function so(){if(F()===64){if(gs()===11)return mi();if(F()===19)return sk(!0);if(F()===30)return Sh(!0);Nt(p.or_JSX_element_expected)}}function ev(){const q=W();oi();const de=$o();return ls(59)?(oi(),Wt(m.createJsxNamespacedName(de,$o()),q)):de}function dp(){const q=W();ln(19),ln(26);const de=v_();return ln(20),Wt(m.createJsxSpreadAttribute(de),q)}function tv(q,de){const Le=W();ln(31);const lt=$T();return ln(32,void 0,!1)&&(de||!My(q.tagName,lt)?We():ea()),Wt(m.createJsxClosingElement(lt),Le)}function nv(q){const de=W();return ln(31),ln(32,p.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(q?We():ea()),Wt(m.createJsxJsxClosingFragment(),de)}function H4(){E.assert(pe!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const q=W();ln(30);const de=al();ln(32);const Le=Mp();return Wt(m.createTypeAssertion(de,Le),q)}function ok(){return We(),V_(F())||F()===23||L1()}function W2(){return F()===29&&Yr(ok)}function Un(q){if(q.flags&64)return!0;if(dS(q)){let de=q.expression;for(;dS(de)&&!(de.flags&64);)de=de.expression;if(de.flags&64){for(;dS(q);)q.flags|=64,q=q.expression;return!0}}return!1}function mc(q,de,Le){const lt=ud(!0,!0),Dt=Le||Un(de),Kt=Dt?j(de,Le,lt):Y(de,lt);if(Dt&&Ei(Kt.name)&&B(Kt.name,p.An_optional_chain_cannot_contain_private_identifiers),rh(de)&&de.typeArguments){const Ir=de.typeArguments.pos-1,xi=_a(xe,de.typeArguments.end)+1;z(Ir,xi,p.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Wt(Kt,q)}function Zi(q,de,Le){let lt;if(F()===24)lt=pc(80,!0,p.An_element_access_expression_should_take_an_argument);else{const Kt=ze(v_);Of(Kt)&&(Kt.text=h_(Kt.text)),lt=Kt}ln(24);const Dt=Le||Un(de)?R(de,Le,lt):ee(de,lt);return Wt(Dt,q)}function Rp(q,de,Le){for(;;){let lt,Dt=!1;if(Le&&W2()?(lt=zo(29),Dt=V_(F())):Dt=ls(25),Dt){de=mc(q,de,lt);continue}if((lt||!jt())&&ls(23)){de=Zi(q,de,lt);continue}if(L1()){de=!lt&&de.kind===233?Yd(q,de.expression,lt,de.typeArguments):Yd(q,de,lt,void 0);continue}if(!lt){if(F()===54&&!t.hasPrecedingLineBreak()){We(),de=Wt(m.createNonNullExpression(de),q);continue}const Kt=cs(iv);if(Kt){de=Wt(m.createExpressionWithTypeArguments(de,Kt),q);continue}}return de}}function L1(){return F()===15||F()===16}function Yd(q,de,Le,lt){const Dt=m.createTaggedTemplateExpression(de,lt,F()===15?(ir(!0),mi()):qd(!0));return(Le||de.flags&64)&&(Dt.flags|=64),Dt.questionDotToken=Le,Wt(Dt,q)}function qn(q,de){for(;;){de=Rp(q,de,!0);let Le;const lt=Li(29);if(lt&&(Le=cs(iv),L1())){de=Yd(q,de,lt,Le);continue}if(Le||F()===21){!lt&&de.kind===233&&(Le=de.typeArguments,de=de.expression);const Dt=rv(),Kt=lt||Un(de)?oe(de,lt,Le,Dt):Z(de,Le,Dt);de=Wt(Kt,q);continue}if(lt){const Dt=pc(80,!1,p.Identifier_expected);de=Wt(j(de,lt,Dt),q)}break}return de}function rv(){ln(21);const q=Ro(11,gg);return ln(22),q}function iv(){if((_r&524288)!==0||ar()!==30)return;We();const q=Ro(20,al);if(on()===32)return We(),q&&ul()?q:void 0}function ul(){switch(F()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||jr()||!Tf()}function md(){switch(F()){case 15:t.getTokenFlags()&26656&&ir(!1);case 9:case 10:case 11:return mi();case 110:case 108:case 106:case 112:case 97:return _l();case 21:return Bp();case 23:return Ch();case 19:return gd();case 134:if(!Yr(YT))break;return m0();case 60:return fk();case 86:return V1();case 100:return m0();case 105:return XT();case 44:case 69:if(kn()===14)return mi();break;case 16:return qd(!1);case 81:return Pr()}return vo(p.Expression_expected)}function Bp(){const q=W(),de=ge();ln(21);const Le=ze(v_);return ln(22),hn(Wt(X(Le),q),de)}function q2(){const q=W();ln(26);const de=b_(!0);return Wt(m.createSpreadElement(de),q)}function sv(){return F()===26?q2():F()===28?Wt(m.createOmittedExpression(),W()):b_(!0)}function gg(){return Gr(r,sv)}function Ch(){const q=W(),de=t.getTokenStart(),Le=ln(23),lt=t.hasPrecedingLineBreak(),Dt=Ro(15,sv);return Pc(23,24,Le,de),Wt(V(Dt,lt),q)}function ck(){const q=W(),de=ge();if(Li(26)){const as=b_(!0);return hn(Wt(m.createSpreadAssignment(as),q),de)}const Le=Om(!0);if(En(139))return Uo(q,de,Le,177,0);if(En(153))return Uo(q,de,Le,178,0);const lt=Li(42),Dt=di(),Kt=xt(),Ir=Li(58),xi=Li(54);if(lt||F()===21||F()===30)return _f(q,de,Le,lt,Kt,Ir,xi);let si;if(Dt&&F()!==59){const as=Li(64),ao=as?ze(()=>b_(!0)):void 0;si=m.createShorthandPropertyAssignment(Kt,ao),si.equalsToken=as}else{ln(59);const as=ze(()=>b_(!0));si=m.createPropertyAssignment(Kt,as)}return si.modifiers=Le,si.questionToken=Ir,si.exclamationToken=xi,hn(Wt(si,q),de)}function gd(){const q=W(),de=t.getTokenStart(),Le=ln(19),lt=t.hasPrecedingLineBreak(),Dt=Ro(12,ck,!0);return Pc(19,20,Le,de),Wt(U(Dt,lt),q)}function m0(){const q=jt();Gt(!1);const de=W(),Le=ge(),lt=Om(!1);ln(100);const Dt=Li(42),Kt=Dt?1:0,Ir=dt(lt,K3)?2:0,xi=Kt&&Ir?ft(hg):Kt?Vt(hg):Ir?Me(hg):hg(),si=Br(),ui=jf(Kt|Ir),as=Xo(59,!1),ao=g0(Kt|Ir);Gt(q);const Ha=m.createFunctionExpression(lt,Dt,xi,si,ui,as,ao);return hn(Wt(Ha,de),Le)}function hg(){return Ms()?q_():void 0}function XT(){const q=W();if(ln(105),ls(25)){const Kt=$o();return Wt(m.createMetaProperty(105,Kt),q)}const de=W();let Le=Rp(de,md(),!1),lt;Le.kind===233&&(lt=Le.typeArguments,Le=Le.expression),F()===29&&Nt(p.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,t3(xe,Le));const Dt=F()===21?rv():void 0;return Wt(_e(Le,lt,Dt),q)}function yg(q,de){const Le=W(),lt=ge(),Dt=t.getTokenStart(),Kt=ln(19,de);if(Kt||q){const Ir=t.hasPrecedingLineBreak(),xi=ws(1,Sf);Pc(19,20,Kt,Dt);const si=hn(Wt(H(xi,Ir),Le),lt);return F()===64&&(Nt(p.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_whole_assignment_in_parentheses),We()),si}else{const Ir=Oc();return hn(Wt(H(Ir,void 0),Le),lt)}}function g0(q,de){const Le=Ae();Yt(!!(q&1));const lt=Fn();Sn(!!(q&2));const Dt=xn;xn=!1;const Kt=jt();Kt&&Gt(!1);const Ir=yg(!!(q&16),de);return Kt&&Gt(!0),xn=Dt,Yt(Le),Sn(lt),Ir}function H2(){const q=W(),de=ge();return ln(27),hn(Wt(m.createEmptyStatement(),q),de)}function QT(){const q=W(),de=ge();ln(101);const Le=t.getTokenStart(),lt=ln(21),Dt=ze(v_);Pc(21,22,lt,Le);const Kt=Sf(),Ir=ls(93)?Sf():void 0;return hn(Wt(ue(Dt,Kt,Ir),q),de)}function vg(){const q=W(),de=ge();ln(92);const Le=Sf();ln(117);const lt=t.getTokenStart(),Dt=ln(21),Kt=ze(v_);return Pc(21,22,Dt,lt),ls(27),hn(Wt(m.createDoStatement(Le,Kt),q),de)}function mp(){const q=W(),de=ge();ln(117);const Le=t.getTokenStart(),lt=ln(21),Dt=ze(v_);Pc(21,22,lt,Le);const Kt=Sf();return hn(Wt(fe(Dt,Kt),q),de)}function Mc(){const q=W(),de=ge();ln(99);const Le=Li(135);ln(21);let lt;F()!==27&&(F()===115||F()===121||F()===87||F()===160&&Yr(lf)||F()===135&&Yr(j1)?lt=ex(!0):lt=ut(v_));let Dt;if(Le?ln(165):ls(165)){const Kt=ze(()=>b_(!0));ln(22),Dt=Ne(Le,lt,Kt,Sf())}else if(ls(103)){const Kt=ze(v_);ln(22),Dt=m.createForInStatement(lt,Kt,Sf())}else{ln(27);const Kt=F()!==27&&F()!==22?ze(v_):void 0;ln(27);const Ir=F()!==22?ze(v_):void 0;ln(22),Dt=G(lt,Kt,Ir,Sf())}return hn(Wt(Dt,q),de)}function hl(q){const de=W(),Le=ge();ln(q===252?83:88);const lt=Rs()?void 0:vo();Ba();const Dt=q===252?m.createBreakStatement(lt):m.createContinueStatement(lt);return hn(Wt(Dt,de),Le)}function M1(){const q=W(),de=ge();ln(107);const Le=Rs()?void 0:ze(v_);return Ba(),hn(Wt(m.createReturnStatement(Le),q),de)}function ku(){const q=W(),de=ge();ln(118);const Le=t.getTokenStart(),lt=ln(21),Dt=ze(v_);Pc(21,22,lt,Le);const Kt=Er(67108864,Sf);return hn(Wt(m.createWithStatement(Dt,Kt),q),de)}function $_(){const q=W(),de=ge();ln(84);const Le=ze(v_);ln(59);const lt=ws(3,Sf);return hn(Wt(m.createCaseClause(Le,lt),q),de)}function bg(){const q=W();ln(90),ln(59);const de=ws(3,Sf);return Wt(m.createDefaultClause(de),q)}function gp(){return F()===84?$_():bg()}function R1(){const q=W();ln(19);const de=ws(2,gp);return ln(20),Wt(m.createCaseBlock(de),q)}function Tg(){const q=W(),de=ge();ln(109),ln(21);const Le=ze(v_);ln(22);const lt=R1();return hn(Wt(m.createSwitchStatement(Le,lt),q),de)}function G2(){const q=W(),de=ge();ln(111);let Le=t.hasPrecedingLineBreak()?void 0:ze(v_);return Le===void 0&&(Jt++,Le=Wt(N(""),W())),po()||qi(Le),hn(Wt(m.createThrowStatement(Le),q),de)}function fl(){const q=W(),de=ge();ln(113);const Le=yg(!1),lt=F()===85?h0():void 0;let Dt;return(!lt||F()===98)&&(ln(98,p.catch_or_finally_expected),Dt=yg(!1)),hn(Wt(m.createTryStatement(Le,lt,Dt),q),de)}function h0(){const q=W();ln(85);let de;ls(21)?(de=Z2(),ln(22)):de=void 0;const Le=yg(!1);return Wt(m.createCatchClause(de,Le),q)}function Im(){const q=W(),de=ge();return ln(89),Ba(),hn(Wt(m.createDebuggerStatement(),q),de)}function $2(){const q=W();let de=ge(),Le;const lt=F()===21,Dt=ze(v_);return we(Dt)&&ls(59)?Le=m.createLabeledStatement(Dt,Sf()):(po()||qi(Dt),Le=ne(Dt),lt&&(de=!1)),hn(Wt(Le,q),de)}function Qo(){return We(),V_(F())&&!t.hasPrecedingLineBreak()}function xg(){return We(),F()===86&&!t.hasPrecedingLineBreak()}function YT(){return We(),F()===100&&!t.hasPrecedingLineBreak()}function B1(){return We(),(V_(F())||F()===9||F()===10||F()===11)&&!t.hasPrecedingLineBreak()}function lk(){for(;;)switch(F()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return av();case 135:return cv();case 120:case 156:return nk();case 144:case 145:return Zd();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const q=F();if(We(),t.hasPrecedingLineBreak())return!1;if(q===138&&F()===156)return!0;continue;case 162:return We(),F()===19||F()===80||F()===95;case 102:return We(),F()===11||F()===42||F()===19||V_(F());case 95:let de=We();if(de===156&&(de=Yr(We)),de===64||de===42||de===19||de===90||de===130||de===60)return!0;continue;case 126:We();continue;default:return!1}}function r_(){return Yr(lk)}function y0(){switch(F()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return r_()||Yr(LT);case 87:case 95:return r_();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return r_()||!Yr(Qo);default:return Tf()}}function Eh(){return We(),Ms()||F()===19||F()===23}function Sg(){return Yr(Eh)}function lf(){return X2(!0)}function X2(q){return We(),q&&F()===165?!1:(Ms()||F()===19)&&!t.hasPrecedingLineBreak()}function av(){return Yr(X2)}function j1(){return ov(!0)}function ov(q){return We()===160?X2(q):!1}function cv(){return Yr(ov)}function Sf(){switch(F()){case 27:return H2();case 19:return yg(!1);case 115:return Vu(W(),ge(),void 0);case 121:if(Sg())return Vu(W(),ge(),void 0);break;case 135:if(cv())return Vu(W(),ge(),void 0);break;case 160:if(av())return Vu(W(),ge(),void 0);break;case 100:return Q_(W(),ge(),void 0);case 86:return _u(W(),ge(),void 0);case 101:return QT();case 92:return vg();case 117:return mp();case 99:return Mc();case 88:return hl(251);case 83:return hl(252);case 107:return M1();case 118:return ku();case 109:return Tg();case 111:return G2();case 113:case 85:case 98:return fl();case 89:return Im();case 60:return Q2();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(r_())return Q2();break}return $2()}function ZT(q){return q.kind===138}function Q2(){const q=W(),de=ge(),Le=Om(!0);if(dt(Le,ZT)){const Dt=KT(q);if(Dt)return Dt;for(const Kt of Le)Kt.flags|=33554432;return Er(33554432,()=>lv(q,de,Le))}else return lv(q,de,Le)}function KT(q){return Er(33554432,()=>{const de=oc(Pt,q);if(de)return se(de)})}function lv(q,de,Le){switch(F()){case 115:case 121:case 87:case 160:case 135:return Vu(q,de,Le);case 100:return Q_(q,de,Le);case 86:return _u(q,de,Le);case 120:return hr(q,de,Le);case 156:return vi(q,de,Le);case 94:return Ji(q,de,Le);case 162:case 144:case 145:return Cn(q,de,Le);case 102:return dk(q,de,Le);case 95:switch(We(),F()){case 90:case 64:return Wc(q,de,Le);case 130:return ib(q,de,Le);default:return XN(q,de,Le)}default:if(Le){const lt=pc(282,!0,p.Declaration_expected);return J3(lt,q),lt.modifiers=Le,lt}return}}function zu(){return We()===11}function Zd(){return We(),!t.hasPrecedingLineBreak()&&(di()||F()===11)}function J1(q,de){if(F()!==19){if(q&4){c0();return}if(Rs()){Ba();return}}return g0(q,de)}function _k(){const q=W();if(F()===28)return Wt(m.createOmittedExpression(),q);const de=Li(26),Le=z1(),lt=fp();return Wt(m.createBindingElement(de,void 0,Le,lt),q)}function Ma(){const q=W(),de=Li(26),Le=Ms();let lt=xt(),Dt;Le&&F()!==59?(Dt=lt,lt=void 0):(ln(59),Dt=z1());const Kt=fp();return Wt(m.createBindingElement(de,lt,Dt,Kt),q)}function vr(){const q=W();ln(19);const de=ze(()=>Ro(9,Ma));return ln(20),Wt(m.createObjectBindingPattern(de),q)}function Cu(){const q=W();ln(23);const de=ze(()=>Ro(10,_k));return ln(24),Wt(m.createArrayBindingPattern(de),q)}function X_(){return F()===19||F()===23||F()===81||Ms()}function z1(q){return F()===23?Cu():F()===19?vr():q_(q)}function Y2(){return Z2(!0)}function Z2(q){const de=W(),Le=ge(),lt=z1(p.Private_identifiers_are_not_allowed_in_variable_declarations);let Dt;q&<.kind===80&&F()===54&&!t.hasPrecedingLineBreak()&&(Dt=_l());const Kt=Fe(),Ir=GT(F())?void 0:fp(),xi=De(lt,Dt,Kt,Ir);return hn(Wt(xi,de),Le)}function ex(q){const de=W();let Le=0;switch(F()){case 115:break;case 121:Le|=1;break;case 87:Le|=2;break;case 160:Le|=4;break;case 135:E.assert(cv()),Le|=6,We();break;default:E.fail()}We();let lt;if(F()===165&&Yr(wh))lt=Oc();else{const Dt=ht();wi(q),lt=Ro(8,q?Z2:Y2),wi(Dt)}return Wt(Xe(lt,Le),de)}function wh(){return nc()&&We()===22}function Vu(q,de,Le){const lt=ex(!1);Ba();const Dt=Q(Le,lt);return hn(Wt(Dt,q),de)}function Q_(q,de,Le){const lt=Fn(),Dt=Ld(Le);ln(100);const Kt=Li(42),Ir=Dt&1024?hg():q_(),xi=Kt?1:0,si=Dt&512?2:0,ui=Br();Dt&1&&Sn(!0);const as=jf(xi|si),ao=Xo(59,!1),Ha=J1(xi|si,p.or_expected);Sn(lt);const Za=m.createFunctionDeclaration(Le,Kt,Ir,ui,as,ao,Ha);return hn(Wt(Za,q),de)}function _v(){if(F()===137)return ln(137);if(F()===11&&Yr(We)===21)return cs(()=>{const q=mi();return q.text==="constructor"?q:void 0})}function uv(q,de,Le){return cs(()=>{if(_v()){const lt=Br(),Dt=jf(0),Kt=Xo(59,!1),Ir=J1(0,p.or_expected),xi=m.createConstructorDeclaration(Le,Dt,Ir);return xi.typeParameters=lt,xi.type=Kt,hn(Wt(xi,q),de)}})}function _f(q,de,Le,lt,Dt,Kt,Ir,xi){const si=lt?1:0,ui=dt(Le,K3)?2:0,as=Br(),ao=jf(si|ui),Ha=Xo(59,!1),Za=J1(si|ui,xi),R_=m.createMethodDeclaration(Le,lt,Dt,Kt,as,ao,Ha,Za);return R_.exclamationToken=Ir,hn(Wt(R_,q),de)}function kg(q,de,Le,lt,Dt){const Kt=!Dt&&!t.hasPrecedingLineBreak()?Li(54):void 0,Ir=Fe(),xi=Gr(90112,fp);ro(lt,Ir,xi);const si=m.createPropertyDeclaration(Le,lt,Dt||Kt,Ir,xi);return hn(Wt(si,q),de)}function tx(q,de,Le){const lt=Li(42),Dt=xt(),Kt=Li(58);return lt||F()===21||F()===30?_f(q,de,Le,lt,Dt,Kt,void 0,p.or_expected):kg(q,de,Le,Dt,Kt)}function Uo(q,de,Le,lt,Dt){const Kt=xt(),Ir=Br(),xi=jf(0),si=Xo(59,!1),ui=J1(Dt),as=lt===177?m.createGetAccessorDeclaration(Le,Kt,xi,si,ui):m.createSetAccessorDeclaration(Le,Kt,xi,ui);return as.typeParameters=Ir,Fu(as)&&(as.type=si),hn(Wt(as,q),de)}function Jf(){let q;if(F()===60)return!0;for(;q0(F());){if(q=F(),oW(q))return!0;We()}if(F()===42||(A()&&(q=F(),We()),F()===23))return!0;if(q!==void 0){if(!su(q)||q===153||q===139)return!0;switch(F()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Rs()}}return!1}function uk(q,de,Le){zo(126);const lt=zf(),Dt=hn(Wt(m.createClassStaticBlockDeclaration(lt),q),de);return Dt.modifiers=Le,Dt}function zf(){const q=Ae(),de=Fn();Yt(!1),Sn(!0);const Le=yg(!1);return Yt(q),Sn(de),Le}function K2(){if(Fn()&&F()===135){const q=W(),de=vo(p.Expression_expected);We();const Le=Rp(q,de,!0);return qn(q,Le)}return V2()}function Dh(){const q=W();if(!ls(60))return;const de=ae(K2);return Wt(m.createDecorator(de),q)}function eb(q,de,Le){const lt=W(),Dt=F();if(F()===87&&de){if(!cs(gr))return}else{if(Le&&F()===126&&Yr(Cg))return;if(q&&F()===126)return;if(!io())return}return Wt(M(Dt),lt)}function Om(q,de,Le){const lt=W();let Dt,Kt,Ir,xi=!1,si=!1,ui=!1;if(q&&F()===60)for(;Kt=Dh();)Dt=dn(Dt,Kt);for(;Ir=eb(xi,de,Le);)Ir.kind===126&&(xi=!0),Dt=dn(Dt,Ir),si=!0;if(si&&q&&F()===60)for(;Kt=Dh();)Dt=dn(Dt,Kt),ui=!0;if(ui)for(;Ir=eb(xi,de,Le);)Ir.kind===126&&(xi=!0),Dt=dn(Dt,Ir);return Dt&&Fa(Dt,lt)}function uf(){let q;if(F()===134){const de=W();We();const Le=Wt(M(134),de);q=Fa([Le],de)}return q}function gc(){const q=W(),de=ge();if(F()===27)return We(),hn(Wt(m.createSemicolonClassElement(),q),de);const Le=Om(!0,!0,!0);if(F()===126&&Yr(Cg))return uk(q,de,Le);if(En(139))return Uo(q,de,Le,177,0);if(En(153))return Uo(q,de,Le,178,0);if(F()===137||F()===11){const lt=uv(q,de,Le);if(lt)return lt}if(FT())return l0(q,de,Le);if(V_(F())||F()===11||F()===9||F()===42||F()===23)if(dt(Le,ZT)){for(const Dt of Le)Dt.flags|=33554432;return Er(33554432,()=>tx(q,de,Le))}else return tx(q,de,Le);if(Le){const lt=pc(80,!0,p.Declaration_expected);return kg(q,de,Le,lt,void 0)}return E.fail("Should not have attempted to parse class member declaration.")}function fk(){const q=W(),de=ge(),Le=Om(!0);if(F()===86)return Fm(q,de,Le,231);const lt=pc(282,!0,p.Expression_expected);return J3(lt,q),lt.modifiers=Le,lt}function V1(){return Fm(W(),ge(),void 0,231)}function _u(q,de,Le){return Fm(q,de,Le,263)}function Fm(q,de,Le,lt){const Dt=Fn();ln(86);const Kt=tb(),Ir=Br();dt(Le,aS)&&Sn(!0);const xi=nb();let si;ln(19)?(si=Ut(),ln(20)):si=Oc(),Sn(Dt);const ui=lt===263?m.createClassDeclaration(Le,Kt,Ir,xi,si):m.createClassExpression(Le,Kt,Ir,xi,si);return hn(Wt(ui,q),de)}function tb(){return Ms()&&!pk()?M_(Ms()):void 0}function pk(){return F()===119&&Yr(H_)}function nb(){if(et())return ws(22,rb)}function rb(){const q=W(),de=F();E.assert(de===96||de===119),We();const Le=Ro(7,S);return Wt(m.createHeritageClause(de,Le),q)}function S(){const q=W(),de=V2();if(de.kind===233)return de;const Le=te();return Wt(m.createExpressionWithTypeArguments(de,Le),q)}function te(){return F()===30?Ml(20,al,30,32):void 0}function et(){return F()===96||F()===119}function Ut(){return ws(5,gc)}function hr(q,de,Le){ln(120);const lt=vo(),Dt=Br(),Kt=nb(),Ir=MT(),xi=m.createInterfaceDeclaration(Le,lt,Dt,Kt,Ir);return hn(Wt(xi,q),de)}function vi(q,de,Le){ln(156),t.hasPrecedingLineBreak()&&Nt(p.Line_break_not_permitted_here);const lt=vo(),Dt=Br();ln(64);const Kt=F()===141&&cs(Hy)||al();Ba();const Ir=m.createTypeAliasDeclaration(Le,lt,Dt,Kt);return hn(Wt(Ir,q),de)}function Qr(){const q=W(),de=ge(),Le=xt(),lt=ze(fp);return hn(Wt(m.createEnumMember(Le,lt),q),de)}function Ji(q,de,Le){ln(94);const lt=vo();let Dt;ln(19)?(Dt=K(()=>Ro(6,Qr)),ln(20)):Dt=Oc();const Kt=m.createEnumDeclaration(Le,lt,Dt);return hn(Wt(Kt,q),de)}function zs(){const q=W();let de;return ln(19)?(de=ws(1,Sf),ln(20)):de=Oc(),Wt(m.createModuleBlock(de),q)}function ii(q,de,Le,lt){const Dt=lt&32,Kt=vo(),Ir=ls(25)?ii(W(),!1,void 0,8|Dt):zs(),xi=m.createModuleDeclaration(Le,Kt,Ir,lt);return hn(Wt(xi,q),de)}function Rl(q,de,Le){let lt=0,Dt;F()===162?(Dt=vo(),lt|=2048):(Dt=mi(),Dt.text=h_(Dt.text));let Kt;F()===19?Kt=zs():Ba();const Ir=m.createModuleDeclaration(Le,Dt,Kt,lt);return hn(Wt(Ir,q),de)}function Cn(q,de,Le){let lt=0;if(F()===162)return Rl(q,de,Le);if(ls(145))lt|=32;else if(ln(144),F()===11)return Rl(q,de,Le);return ii(q,de,Le,lt)}function Ah(){return F()===149&&Yr(Y_)}function Y_(){return We()===21}function Cg(){return We()===19}function Nh(){return We()===44}function ib(q,de,Le){ln(130),ln(145);const lt=vo();Ba();const Dt=m.createNamespaceExportDeclaration(lt);return Dt.modifiers=Le,hn(Wt(Dt,q),de)}function dk(q,de,Le){ln(102);const lt=t.getTokenFullStart();let Dt;di()&&(Dt=vo());let Kt=!1;if(F()!==161&&(Dt==null?void 0:Dt.escapedText)==="type"&&(di()||U1())&&(Kt=!0,Dt=di()?vo():void 0),Dt&&!W1())return fv(q,de,Le,Dt,Kt);let Ir;(Dt||F()===42||F()===19)&&(Ir=G4(Dt,lt,Kt),ln(161));const xi=hd();let si;F()===132&&!t.hasPrecedingLineBreak()&&(si=v0()),Ba();const ui=m.createImportDeclaration(Le,Ir,xi,si);return hn(Wt(ui,q),de)}function Eg(){const q=W(),de=V_(F())?$o():sa(11);ln(59);const Le=b_(!0);return Wt(m.createAssertEntry(de,Le),q)}function v0(q){const de=W();q||ln(132);const Le=t.getTokenStart();if(ln(19)){const lt=t.hasPrecedingLineBreak(),Dt=Ro(24,Eg,!0);if(!ln(20)){const Kt=jo(Pe);Kt&&Kt.code===p._0_expected.code&&ua(Kt,R6(ve,Le,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Wt(m.createAssertClause(Dt,lt),de)}else{const lt=Fa([],W(),void 0,!1);return Wt(m.createAssertClause(lt,!1),de)}}function U1(){return F()===42||F()===19}function W1(){return F()===28||F()===161}function fv(q,de,Le,lt,Dt){ln(64);const Kt=q1();Ba();const Ir=m.createImportEqualsDeclaration(Le,Dt,lt,Kt);return hn(Wt(Ir,q),de)}function G4(q,de,Le){let lt;return(!q||ls(28))&&(lt=F()===42?$4():Vf(275)),Wt(m.createImportClause(Le,q,lt),de)}function q1(){return Ah()?pv():sl(!1)}function pv(){const q=W();ln(149),ln(21);const de=hd();return ln(22),Wt(m.createExternalModuleReference(de),q)}function hd(){if(F()===11){const q=mi();return q.text=h_(q.text),q}else return v_()}function $4(){const q=W();ln(42),ln(130);const de=vo();return Wt(m.createNamespaceImport(de),q)}function Vf(q){const de=W(),Le=q===275?m.createNamedImports(Ml(23,$N,19,20)):m.createNamedExports(Ml(23,mk,19,20));return Wt(Le,de)}function mk(){const q=ge();return hn(Kd(281),q)}function $N(){return Kd(276)}function Kd(q){const de=W();let Le=su(F())&&!di(),lt=t.getTokenStart(),Dt=t.getTokenEnd(),Kt=!1,Ir,xi=!0,si=$o();if(si.escapedText==="type")if(F()===130){const ao=$o();if(F()===130){const Ha=$o();V_(F())?(Kt=!0,Ir=ao,si=as(),xi=!1):(Ir=si,si=Ha,xi=!1)}else V_(F())?(Ir=si,xi=!1,si=as()):(Kt=!0,si=ao)}else V_(F())&&(Kt=!0,si=as());xi&&F()===130&&(Ir=si,ln(130),si=as()),q===276&&Le&&z(lt,Dt,p.Identifier_expected);const ui=q===276?m.createImportSpecifier(Kt,Ir,si):m.createExportSpecifier(Kt,Ir,si);return Wt(ui,de);function as(){return Le=su(F())&&!di(),lt=t.getTokenStart(),Dt=t.getTokenEnd(),$o()}}function nx(q){return Wt(m.createNamespaceExport($o()),q)}function XN(q,de,Le){const lt=Fn();Sn(!0);let Dt,Kt,Ir;const xi=ls(156),si=W();ls(42)?(ls(130)&&(Dt=nx(si)),ln(161),Kt=hd()):(Dt=Vf(279),(F()===161||F()===11&&!t.hasPrecedingLineBreak())&&(ln(161),Kt=hd())),Kt&&F()===132&&!t.hasPrecedingLineBreak()&&(Ir=v0()),Ba(),Sn(lt);const ui=m.createExportDeclaration(Le,xi,Dt,Kt,Ir);return hn(Wt(ui,q),de)}function Wc(q,de,Le){const lt=Fn();Sn(!0);let Dt;ls(64)?Dt=!0:ln(90);const Kt=b_(!0);Ba(),Sn(lt);const Ir=m.createExportAssignment(Le,Dt,Kt);return hn(Wt(Ir,q),de)}let dv;(q=>{q[q.SourceElements=0]="SourceElements",q[q.BlockStatements=1]="BlockStatements",q[q.SwitchClauses=2]="SwitchClauses",q[q.SwitchClauseStatements=3]="SwitchClauseStatements",q[q.TypeMembers=4]="TypeMembers",q[q.ClassMembers=5]="ClassMembers",q[q.EnumMembers=6]="EnumMembers",q[q.HeritageClauseElement=7]="HeritageClauseElement",q[q.VariableDeclarations=8]="VariableDeclarations",q[q.ObjectBindingElements=9]="ObjectBindingElements",q[q.ArrayBindingElements=10]="ArrayBindingElements",q[q.ArgumentExpressions=11]="ArgumentExpressions",q[q.ObjectLiteralMembers=12]="ObjectLiteralMembers",q[q.JsxAttributes=13]="JsxAttributes",q[q.JsxChildren=14]="JsxChildren",q[q.ArrayLiteralMembers=15]="ArrayLiteralMembers",q[q.Parameters=16]="Parameters",q[q.JSDocParameters=17]="JSDocParameters",q[q.RestProperties=18]="RestProperties",q[q.TypeParameters=19]="TypeParameters",q[q.TypeArguments=20]="TypeArguments",q[q.TupleElementTypes=21]="TupleElementTypes",q[q.HeritageClauses=22]="HeritageClauses",q[q.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",q[q.AssertEntries=24]="AssertEntries",q[q.JSDocComment=25]="JSDocComment",q[q.Count=26]="Count"})(dv||(dv={}));let X4;(q=>{q[q.False=0]="False",q[q.True=1]="True",q[q.Unknown=2]="Unknown"})(X4||(X4={}));let qa;(q=>{function de(ui,as,ao){ki("file.js",ui,99,void 0,1),t.setText(ui,as,ao),mt=t.scan();const Ha=Le(),Za=Pn("file.js",99,1,!1,[],M(1),0,co),R_=Qx(Pe,Za);return Ge&&(Za.jsDocDiagnostics=Qx(Ge,Za)),Nr(),Ha?{jsDocTypeExpression:Ha,diagnostics:R_}:void 0}q.parseJSDocTypeExpressionForTests=de;function Le(ui){const as=W(),ao=(ui?ls:ln)(19),Ha=Er(16777216,un);(!ui||ao)&&za(20);const Za=m.createJSDocTypeExpression(Ha);return cn(Za),Wt(Za,as)}q.parseJSDocTypeExpression=Le;function lt(){const ui=W(),as=ls(19),ao=W();let Ha=sl(!1);for(;F()===81;)jn(),Tt(),Ha=Wt(m.createJSDocMemberName(Ha,vo()),ao);as&&za(20);const Za=m.createJSDocNameReference(Ha);return cn(Za),Wt(Za,ui)}q.parseJSDocNameReference=lt;function Dt(ui,as,ao){ki("",ui,99,void 0,1);const Ha=Er(16777216,()=>si(as,ao)),R_=Qx(Pe,{languageVariant:0,text:ui});return Nr(),Ha?{jsDoc:Ha,diagnostics:R_}:void 0}q.parseIsolatedJSDocComment=Dt;function Kt(ui,as,ao){const Ha=mt,Za=Pe.length,R_=Bt,Sl=Er(16777216,()=>si(as,ao));return Ta(Sl,ui),_r&524288&&(Ge||(Ge=[]),Ge.push(...Pe)),mt=Ha,Pe.length=Za,Bt=R_,Sl}q.parseJSDocComment=Kt;let Ir;(ui=>{ui[ui.BeginningOfLine=0]="BeginningOfLine",ui[ui.SawAsterisk=1]="SawAsterisk",ui[ui.SavingComments=2]="SavingComments",ui[ui.SavingBackticks=3]="SavingBackticks"})(Ir||(Ir={}));let xi;(ui=>{ui[ui.Property=1]="Property",ui[ui.Parameter=2]="Parameter",ui[ui.CallbackParameter=4]="CallbackParameter"})(xi||(xi={}));function si(ui=0,as){const ao=Pt;Pt|=1<<25;const Ha=xe,Za=as===void 0?Ha.length:ui+as;if(as=Za-ui,E.assert(ui>=0),E.assert(ui<=Za),E.assert(Za<=Ha.length),!kG(Ha,ui))return;let R_,Sl,em,jp,b0,T0=[];const mv=[],gv=t.scanRange(ui+3,as-5,IE);return Pt=ao,gv;function IE(){let gn=1,Ar,Dr=ui-(Ha.lastIndexOf(` +`,ui)+1)+4;function gi(to){Ar||(Ar=Dr),T0.push(to),Dr+=to.length}for(Tt();Vp(5););Vp(4)&&(gn=0,Dr=0);e:for(;;){switch(F()){case 60:hk(T0),b0||(b0=W()),ie(rx(Dr)),gn=0,Ar=void 0;break;case 4:T0.push(t.getTokenText()),gn=0,Dr=0;break;case 42:const to=t.getTokenText();gn===1?(gn=2,gi(to)):(E.assert(gn===0),gn=1,Dr+=to.length);break;case 5:E.assert(gn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const To=t.getTokenText();Ar!==void 0&&Dr+To.length>Ar&&T0.push(To.slice(Ar-Dr)),Dr+=To.length;break;case 1:break e;case 82:gn=2,gi(t.getTokenValue());break;case 19:gn=2;const wg=t.getTokenFullStart(),Ph=t.getTokenEnd()-1,yd=yk(Ph);if(yd){jp||gk(T0),mv.push(Wt(m.createJSDocText(T0.join("")),jp!=null?jp:ui,wg)),mv.push(yd),T0=[],jp=t.getTokenEnd();break}default:gn=2,gi(t.getTokenText());break}gn===2?It(!1):Tt()}const fi=Sx(T0.join(""));mv.length&&fi.length&&mv.push(Wt(m.createJSDocText(fi),jp!=null?jp:ui,b0)),mv.length&&R_&&E.assertIsDefined(b0,"having parsed tags implies that the end of the comment span should be set");const aa=R_&&Fa(R_,Sl,em);return Wt(m.createJSDocComment(mv.length?Fa(mv,ui,b0):fi.length?fi:void 0,aa),ui,Za)}function gk(gn){for(;gn.length&&(gn[0]===` +`||gn[0]==="\r");)gn.shift()}function hk(gn){for(;gn.length;){const Ar=Sx(gn[gn.length-1]);if(Ar==="")gn.pop();else if(Ar.lengthTo&&(gi.push(Uf.slice(To-gn)),to=2),gn+=Uf.length;break;case 19:to=2;const Y4=t.getTokenFullStart(),LE=t.getTokenEnd()-1,i_=yk(LE);i_?(fi.push(Wt(m.createJSDocText(gi.join("")),aa!=null?aa:Dr,Y4)),fi.push(i_),gi=[],aa=t.getTokenEnd()):wg(t.getTokenText());break;case 62:to===3?to=2:to=3,wg(t.getTokenText());break;case 82:to!==3&&(to=2),wg(t.getTokenValue());break;case 42:if(to===0){to=1,gn+=1;break}default:to!==3&&(to=2),wg(t.getTokenText());break}to===2||to===3?Ph=It(to===3):Ph=Tt()}gk(gi);const yd=Sx(gi.join(""));if(fi.length)return yd.length&&fi.push(Wt(m.createJSDocText(yd),aa!=null?aa:Dr)),Fa(fi,Dr,t.getTokenEnd());if(yd.length)return yd}function yk(gn){const Ar=cs(v);if(!Ar)return;Tt(),bo();const Dr=W();let gi=V_(F())?sl(!0):void 0;if(gi)for(;F()===81;)jn(),Tt(),gi=Wt(m.createJSDocMemberName(gi,vo()),Dr);const fi=[];for(;F()!==20&&F()!==4&&F()!==1;)fi.push(t.getTokenText()),Tt();const aa=Ar==="link"?m.createJSDocLink:Ar==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Wt(aa(gi,fi.join("")),gn,t.getTokenEnd())}function v(){if(Jp(),F()===19&&Tt()===60&&V_(Tt())){const gn=t.getTokenValue();if(w(gn))return gn}}function w(gn){return gn==="link"||gn==="linkcode"||gn==="linkplain"}function L(gn,Ar,Dr,gi){return Wt(m.createJSDocUnknownTag(Ar,kf(gn,W(),Dr,gi)),gn)}function ie(gn){!gn||(R_?R_.push(gn):(R_=[gn],Sl=gn.pos),em=gn.end)}function Ie(){return Jp(),F()===19?Le():void 0}function Ot(){const gn=Vp(23);gn&&bo();const Ar=Vp(62),Dr=Sre();return Ar&&L_(62),gn&&(bo(),Li(64)&&v_(),ln(24)),{name:Dr,isBracketed:gn}}function Qn(gn){switch(gn.kind){case 151:return!0;case 188:return Qn(gn.elementType);default:return ap(gn)&&we(gn.typeName)&&gn.typeName.escapedText==="Object"&&!gn.typeArguments}}function Ci(gn,Ar,Dr,gi){let fi=Ie(),aa=!fi;Jp();const{name:to,isBracketed:To}=Ot(),wg=Jp();aa&&!Yr(v)&&(fi=Ie());const Ph=kf(gn,W(),gi,wg),yd=eo(fi,to,Dr,gi);yd&&(fi=yd,aa=!0);const Uf=Dr===1?m.createJSDocPropertyTag(Ar,to,To,fi,aa,Ph):m.createJSDocParameterTag(Ar,to,To,fi,aa,Ph);return Wt(Uf,gn)}function eo(gn,Ar,Dr,gi){if(gn&&Qn(gn.type)){const fi=W();let aa,to;for(;aa=cs(()=>ab(Dr,gi,Ar));)aa.kind===348||aa.kind===355?to=dn(to,aa):aa.kind===352&&B(aa.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(to){const To=Wt(m.createJSDocTypeLiteral(to,gn.type.kind===188),fi);return Wt(m.createJSDocTypeExpression(To),fi)}}}function zp(gn,Ar,Dr,gi){dt(R_,CF)&&z(Ar.pos,t.getTokenStart(),p._0_tag_already_specified,Oi(Ar.escapedText));const fi=Ie();return Wt(m.createJSDocReturnTag(Ar,fi,kf(gn,W(),Dr,gi)),gn)}function x0(gn,Ar,Dr,gi){dt(R_,f8)&&z(Ar.pos,t.getTokenStart(),p._0_tag_already_specified,Oi(Ar.escapedText));const fi=Le(!0),aa=Dr!==void 0&&gi!==void 0?kf(gn,W(),Dr,gi):void 0;return Wt(m.createJSDocTypeTag(Ar,fi,aa),gn)}function hp(gn,Ar,Dr,gi){const aa=F()===23||Yr(()=>Tt()===60&&V_(Tt())&&w(t.getTokenValue()))?void 0:lt(),to=Dr!==void 0&&gi!==void 0?kf(gn,W(),Dr,gi):void 0;return Wt(m.createJSDocSeeTag(Ar,aa,to),gn)}function H1(gn,Ar,Dr,gi){const fi=Ie(),aa=kf(gn,W(),Dr,gi);return Wt(m.createJSDocThrowsTag(Ar,fi,aa),gn)}function hre(gn,Ar,Dr,gi){const fi=W(),aa=yre();let to=t.getTokenFullStart();const To=kf(gn,to,Dr,gi);To||(to=t.getTokenFullStart());const wg=typeof To!="string"?Fa(es([Wt(aa,fi,to)],To),fi):aa.text+To;return Wt(m.createJSDocAuthorTag(Ar,wg),gn)}function yre(){const gn=[];let Ar=!1,Dr=t.getToken();for(;Dr!==1&&Dr!==4;){if(Dr===30)Ar=!0;else{if(Dr===60&&!Ar)break;if(Dr===32&&Ar){gn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}gn.push(t.getTokenText()),Dr=Tt()}return m.createJSDocText(gn.join(""))}function OE(gn,Ar,Dr,gi){const fi=vk();return Wt(m.createJSDocImplementsTag(Ar,fi,kf(gn,W(),Dr,gi)),gn)}function sJ(gn,Ar,Dr,gi){const fi=vk();return Wt(m.createJSDocAugmentsTag(Ar,fi,kf(gn,W(),Dr,gi)),gn)}function aJ(gn,Ar,Dr,gi){const fi=Le(!1),aa=Dr!==void 0&&gi!==void 0?kf(gn,W(),Dr,gi):void 0;return Wt(m.createJSDocSatisfiesTag(Ar,fi,aa),gn)}function vk(){const gn=ls(19),Ar=W(),Dr=vre();t.setInJSDocType(!0);const gi=te();t.setInJSDocType(!1);const fi=m.createExpressionWithTypeArguments(Dr,gi),aa=Wt(fi,Ar);return gn&&ln(20),aa}function vre(){const gn=W();let Ar=X1();for(;ls(25);){const Dr=X1();Ar=Wt(Y(Ar,Dr),gn)}return Ar}function sb(gn,Ar,Dr,gi,fi){return Wt(Ar(Dr,kf(gn,W(),gi,fi)),gn)}function bre(gn,Ar,Dr,gi){const fi=Le(!0);return bo(),Wt(m.createJSDocThisTag(Ar,fi,kf(gn,W(),Dr,gi)),gn)}function Tre(gn,Ar,Dr,gi){const fi=Le(!0);return bo(),Wt(m.createJSDocEnumTag(Ar,fi,kf(gn,W(),Dr,gi)),gn)}function xre(gn,Ar,Dr,gi){var Ph;let fi=Ie();Jp();const aa=ix();bo();let to=Lm(Dr),To;if(!fi||Qn(fi.type)){let yd,Uf,Y4,LE=!1;for(;(yd=cs(()=>$1(Dr)))&&yd.kind!==352;)if(LE=!0,yd.kind===351)if(Uf){const i_=Nt(p.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);i_&&ua(i_,R6(ve,0,0,p.The_tag_was_first_specified_here));break}else Uf=yd;else Y4=dn(Y4,yd);if(LE){const i_=fi&&fi.type.kind===188,lJ=m.createJSDocTypeLiteral(Y4,i_);fi=Uf&&Uf.typeExpression&&!Qn(Uf.typeExpression.type)?Uf.typeExpression:Wt(lJ,gn),To=fi.end}}To=To||to!==void 0?W():((Ph=aa!=null?aa:fi)!=null?Ph:Ar).end,to||(to=kf(gn,To,Dr,gi));const wg=m.createJSDocTypedefTag(Ar,fi,aa,to);return Wt(wg,gn,To)}function ix(gn){const Ar=t.getTokenStart();if(!V_(F()))return;const Dr=X1();if(ls(25)){const gi=ix(!0),fi=m.createModuleDeclaration(void 0,Dr,gi,gn?8:void 0);return Wt(fi,Ar)}return gn&&(Dr.flags|=4096),Dr}function oJ(gn){const Ar=W();let Dr,gi;for(;Dr=cs(()=>ab(4,gn));){if(Dr.kind===352){B(Dr.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}gi=dn(gi,Dr)}return Fa(gi||[],Ar)}function cJ(gn,Ar){const Dr=oJ(Ar),gi=cs(()=>{if(Vp(60)){const fi=rx(Ar);if(fi&&fi.kind===349)return fi}});return Wt(m.createJSDocSignature(void 0,Dr,gi),gn)}function FE(gn,Ar,Dr,gi){const fi=ix();bo();let aa=Lm(Dr);const to=cJ(gn,Dr);aa||(aa=kf(gn,W(),Dr,gi));const To=aa!==void 0?W():to.end;return Wt(m.createJSDocCallbackTag(Ar,to,fi,aa),gn,To)}function $n(gn,Ar,Dr,gi){bo();let fi=Lm(Dr);const aa=cJ(gn,Dr);fi||(fi=kf(gn,W(),Dr,gi));const to=fi!==void 0?W():aa.end;return Wt(m.createJSDocOverloadTag(Ar,aa,fi),gn,to)}function G1(gn,Ar){for(;!we(gn)||!we(Ar);)if(!we(gn)&&!we(Ar)&&gn.right.escapedText===Ar.right.escapedText)gn=gn.left,Ar=Ar.left;else return!1;return gn.escapedText===Ar.escapedText}function $1(gn){return ab(1,gn)}function ab(gn,Ar,Dr){let gi=!0,fi=!1;for(;;)switch(Tt()){case 60:if(gi){const aa=bk(gn,Ar);return aa&&(aa.kind===348||aa.kind===355)&&Dr&&(we(aa.name)||!G1(Dr,aa.name.left))?!1:aa}fi=!1;break;case 4:gi=!0,fi=!1;break;case 42:fi&&(gi=!1),fi=!0;break;case 80:gi=!1;break;case 1:return!1}}function bk(gn,Ar){E.assert(F()===60);const Dr=t.getTokenFullStart();Tt();const gi=X1(),fi=Jp();let aa;switch(gi.escapedText){case"type":return gn===1&&x0(Dr,gi);case"prop":case"property":aa=1;break;case"arg":case"argument":case"param":aa=6;break;case"template":return YN(Dr,gi,Ar,fi);default:return!1}return gn&aa?Ci(Dr,gi,gn,Ar):!1}function QN(){const gn=W(),Ar=Vp(23);Ar&&bo();const Dr=X1(p.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let gi;if(Ar&&(bo(),ln(64),gi=Er(16777216,un),ln(24)),!_c(Dr))return Wt(m.createTypeParameterDeclaration(void 0,Dr,void 0,gi),gn)}function Q4(){const gn=W(),Ar=[];do{bo();const Dr=QN();Dr!==void 0&&Ar.push(Dr),Jp()}while(Vp(28));return Fa(Ar,gn)}function YN(gn,Ar,Dr,gi){const fi=F()===19?Le():void 0,aa=Q4();return Wt(m.createJSDocTemplateTag(Ar,fi,aa,kf(gn,W(),Dr,gi)),gn)}function Vp(gn){return F()===gn?(Tt(),!0):!1}function Sre(){let gn=X1();for(ls(23)&&ln(24);ls(25);){const Ar=X1();ls(23)&&ln(24),gn=ju(gn,Ar)}return gn}function X1(gn){if(!V_(F()))return pc(80,!gn,gn||p.Identifier_expected);Jt++;const Ar=t.getTokenStart(),Dr=t.getTokenEnd(),gi=F(),fi=h_(t.getTokenValue()),aa=Wt(N(fi,gi),Ar,Dr);return Tt(),aa}}})(qa=e.JSDocParser||(e.JSDocParser={}))})(g1||(g1={})),(e=>{function t(k,C,N,D){if(D=D||E.shouldAssert(2),m(k,C,N,D),Cce(N))return k;if(k.statements.length===0)return g1.parseSourceFile(k.fileName,C,k.languageVersion,void 0,!0,k.scriptKind,k.setExternalModuleIndicator);const M=k;E.assert(!M.hasBeenIncrementallyParsed),M.hasBeenIncrementallyParsed=!0,g1.fixupParentReferences(M);const V=k.text,U=y(k),Y=f(k,N);m(k,C,Y,D),E.assert(Y.span.start<=N.span.start),E.assert(Zl(Y.span)===Zl(N.span)),E.assert(Zl(UC(Y))===Zl(UC(N)));const j=UC(Y).length-Y.span.length;u(M,Y.span.start,Zl(Y.span),Zl(UC(Y)),j,V,C,D);const ee=g1.parseSourceFile(k.fileName,C,k.languageVersion,U,!0,k.scriptKind,k.setExternalModuleIndicator);return ee.commentDirectives=r(k.commentDirectives,ee.commentDirectives,Y.span.start,Zl(Y.span),j,V,C,D),ee.impliedNodeFormat=k.impliedNodeFormat,ee}e.updateSourceFile=t;function r(k,C,N,D,M,V,U,Y){if(!k)return C;let j,ee=!1;for(const Z of k){const{range:oe,type:_e}=Z;if(oe.endD){R();const X={range:{pos:oe.pos+M,end:oe.end+M},type:_e};j=dn(j,X),Y&&E.assert(V.substring(oe.pos,oe.end)===U.substring(X.range.pos,X.range.end))}}return R(),j;function R(){ee||(ee=!0,j?C&&j.push(...C):j=C)}}function i(k,C,N,D,M,V){C?Y(k):U(k);return;function U(j){let ee="";if(V&&a(j)&&(ee=D.substring(j.pos,j.end)),j._children&&(j._children=void 0),Tm(j,j.pos+N,j.end+N),V&&a(j)&&E.assert(ee===M.substring(j.pos,j.end)),bs(j,U,Y),Qu(j))for(const R of j.jsDoc)U(R);l(j,V)}function Y(j){j._children=void 0,Tm(j,j.pos+N,j.end+N);for(const ee of j)U(ee)}}function a(k){switch(k.kind){case 11:case 9:case 80:return!0}return!1}function o(k,C,N,D,M){E.assert(k.end>=C,"Adjusting an element that was entirely before the change range"),E.assert(k.pos<=N,"Adjusting an element that was entirely after the change range"),E.assert(k.pos<=k.end);const V=Math.min(k.pos,D),U=k.end>=N?k.end+M:Math.min(k.end,D);E.assert(V<=U),k.parent&&(E.assertGreaterThanOrEqual(V,k.parent.pos),E.assertLessThanOrEqual(U,k.parent.end)),Tm(k,V,U)}function l(k,C){if(C){let N=k.pos;const D=M=>{E.assert(M.pos>=N),N=M.end};if(Qu(k))for(const M of k.jsDoc)D(M);bs(k,D),E.assert(N<=k.end)}}function u(k,C,N,D,M,V,U,Y){j(k);return;function j(R){if(E.assert(R.pos<=R.end),R.pos>N){i(R,!1,M,V,U,Y);return}const Z=R.end;if(Z>=C){if(R.intersectsChange=!0,R._children=void 0,o(R,C,N,D,M),bs(R,j,ee),Qu(R))for(const oe of R.jsDoc)j(oe);l(R,Y);return}E.assert(ZN){i(R,!0,M,V,U,Y);return}const Z=R.end;if(Z>=C){R.intersectsChange=!0,R._children=void 0,o(R,C,N,D,M);for(const oe of R)j(oe);return}E.assert(Z0&&U<=1;U++){const Y=g(k,D);E.assert(Y.pos<=D);const j=Y.pos;D=Math.max(0,j-1)}const M=ll(D,Zl(C.span)),V=C.newLength+(C.span.start-D);return gw(M,V)}function g(k,C){let N=k,D;if(bs(k,V),D){const U=M(D);U.pos>N.pos&&(N=U)}return N;function M(U){for(;;){const Y=jq(U);if(Y)U=Y;else return U}}function V(U){if(!_c(U))if(U.pos<=C){if(U.pos>=N.pos&&(N=U),CC),!0}}function m(k,C,N,D){const M=k.text;if(N&&(E.assert(M.length-N.span.length+N.newLength===C.length),D||E.shouldAssert(3))){const V=M.substr(0,N.span.start),U=C.substr(0,N.span.start);E.assert(V===U);const Y=M.substring(Zl(N.span),M.length),j=C.substring(Zl(UC(N)),C.length);E.assert(Y===j)}}function y(k){let C=k.statements,N=0;E.assert(N=ee.pos&&U=ee.pos&&U{k[k.Value=-1]="Value"})(x||(x={}))})(MF||(MF={})),RF=new Map,Mpe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Rpe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function BF(e){const t=new Map,r=new Map;return pn(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function p4(){return hde||(hde=BF(t0))}function Bpe(e){return jpe(e,xc)}function jpe(e,t){const r=ra(e.type.keys()),i=(e.deprecatedKeys?r.filter(a=>!e.deprecatedKeys.has(a)):r).map(a=>`'${a}'`).join(", ");return t(p.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function jF(e,t,r){return ude(e,Jv(t||""),r)}function Jpe(e,t="",r){if(t=Jv(t),ns(t,"-"))return;if(e.type==="listOrElement"&&!Xl(t,","))return cT(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Hi(i,a=>cT(e.element,parseInt(a),r));case"string":return Hi(i,a=>cT(e.element,a||"",r));case"boolean":case"object":return E.fail(`List of ${e.element.type} is not yet supported.`);default:return Hi(i,a=>jF(e.element,a,r))}}function zpe(e){return e.name}function NG(e,t,r,i,a){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return h1(a,i,t.alternateMode.diagnostic,e);const l=NC(e,t.optionDeclarations,zpe);return l?h1(a,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):h1(a,i,t.unknownOptionDiagnostic,r||e)}function PG(e,t,r){const i={};let a;const o=[],l=[];return u(t),{options:i,watchOptions:a,fileNames:o,errors:l};function u(g){let m=0;for(;mjl.readFile(k)));if(!Gs(m)){l.push(m);return}const y=[];let x=0;for(;;){for(;x=m.length)break;const k=x;if(m.charCodeAt(k)===34){for(x++;x32;)x++;y.push(m.substring(k,x))}}u(y)}}function Vpe(e,t,r,i,a,o){if(i.isTSConfigOnly){const l=e[t];l==="null"?(a[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(a[i.name]=cT(i,!1,o),t++):(l==="true"&&t++,o.push(xc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(xc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!ns(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(xc(r.optionTypeMismatchDiagnostic,i.name,zF(i))),e[t]!=="null")switch(i.type){case"number":a[i.name]=cT(i,parseInt(e[t]),o),t++;break;case"boolean":const l=e[t];a[i.name]=cT(i,l!=="false",o),(l==="false"||l==="true")&&t++;break;case"string":a[i.name]=cT(i,e[t]||"",o),t++;break;case"list":const u=Jpe(i,e[t],o);a[i.name]=u||[],u&&t++;break;case"listOrElement":E.fail("listOrElement not supported here");break;default:a[i.name]=jF(i,e[t],o),t++;break}else a[i.name]=void 0,t++;return t}function wNe(e,t){return PG(RA,e,t)}function IG(e,t){return OG(p4,e,t)}function OG(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:a}=e();if(r){const o=a.get(t);o!==void 0&&(t=o)}return i.get(t)}function Upe(){return vde||(vde=BF($F))}function DNe(e){const{options:t,watchOptions:r,fileNames:i,errors:a}=PG(Tde,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&a.push(xc(p.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&a.push(xc(p.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&a.push(xc(p.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&a.push(xc(p.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:r,projects:i,errors:a}}function ANe(e,...t){return xc.apply(void 0,arguments).messageText}function CA(e,t,r,i,a,o){const l=wA(e,g=>r.readFile(g));if(!Gs(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=kA(e,l),f=r.getCurrentDirectory();return u.path=ho(e,f,Ql(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,AA(u,r,ms(Ti(e),f),t,ms(e,f),void 0,o,i,a)}function EA(e,t){const r=wA(e,t);return Gs(r)?FG(e,r):{config:{},error:r}}function FG(e,t){const r=kA(e,t);return{config:Xpe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Wpe(e,t){const r=wA(e,t);return Gs(r)?kA(e,r):{fileName:e,parseDiagnostics:[r]}}function wA(e,t){let r;try{r=t(e)}catch(i){return xc(p.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?xc(p.Cannot_read_file_0,e):r}function JF(e){return Bv(e,zpe)}function qpe(){return xde||(xde=BF(FA))}function Hpe(){return Sde||(Sde=JF(t0))}function Gpe(){return kde||(kde=JF(FA))}function $pe(){return Cde||(Cde=JF(XF))}function NNe(){return i$===void 0&&(i$={name:void 0,type:"object",elementOptions:JF([t$,n$,r$,y8,{name:"references",type:"list",element:{name:"references",type:"object"},category:p.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:p.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:p.File_Management,defaultValueDescription:p.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:p.File_Management,defaultValueDescription:p.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},IA])}),i$}function Xpe(e,t,r){var i;const a=(i=e.statements[0])==null?void 0:i.expression;if(a&&a.kind!==210){if(t.push(Yf(e,a,p.The_root_value_of_a_0_file_must_be_an_object,Jl(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),u_(a)){const o=Or(a.elements,ha);if(o)return DA(e,o,t,!0,r)}return{}}return DA(e,a,t,!0,r)}function Qpe(e,t){var r;return DA(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function DA(e,t,r,i,a){if(!t)return i?{}:void 0;return u(t,a==null?void 0:a.rootOptions);function o(g,m){var y;const x=i?{}:void 0;for(const k of g.properties){if(k.kind!==303){r.push(Yf(e,k,p.Property_assignment_expected));continue}k.questionToken&&r.push(Yf(e,k.questionToken,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),f(k.name)||r.push(Yf(e,k.name,p.String_literal_with_double_quotes_expected));const C=Fw(k.name)?void 0:f6(k.name),N=C&&Oi(C),D=N?(y=m==null?void 0:m.elementOptions)==null?void 0:y.get(N):void 0,M=u(k.initializer,D);typeof N<"u"&&(i&&(x[N]=M),a==null||a.onPropertySet(N,M,k,m,D))}return x}function l(g,m){if(!i){g.forEach(y=>u(y,m));return}return zr(g.map(y=>u(y,m)),y=>y!==void 0)}function u(g,m){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return f(g)||r.push(Yf(e,g,p.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 224:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 210:return o(g,m);case 209:return l(g.elements,m&&m.element)}m?r.push(Yf(e,g,p.Compiler_option_0_requires_a_value_of_type_1,m.name,zF(m))):r.push(Yf(e,g,p.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function f(g){return fa(g)&&z9(g,e)}}function zF(e){return e.type==="listOrElement"?`${zF(e.element)} or Array`:e.type==="list"?"Array":Gs(e.type)?e.type:"string"}function Ype(e,t){if(e){if(g8(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Ds(t);if(e.type==="listOrElement")return Ds(t)||Ype(e.element,t);const r=Gs(e.type)?e.type:"string";return typeof t===r}return!1}function PNe(e,t,r){var i,a,o;const l=Ql(r.useCaseSensitiveFileNames),u=an(zr(e.fileNames,(a=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&a.validatedIncludeSpecs?ONe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):oy),y=>sw(ms(t,r.getCurrentDirectory()),ms(y,r.getCurrentDirectory()),l)),f=RG(e.options,{configFilePath:ms(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),g=e.watchOptions&&FNe(e.watchOptions);return{compilerOptions:{...LG(f),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:g&&LG(g),references:an(e.projectReferences,y=>({...y,path:y.originalPath?y.originalPath:"",originalPath:void 0})),files:Nn(u)?u:void 0,...(o=e.options.configFile)!=null&&o.configFileSpecs?{include:INe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0}}function LG(e){return{...ra(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function INe(e){if(!!Nn(e)){if(Nn(e)!==1)return e;if(e[0]!==YF)return e}}function ONe(e,t,r,i){if(!t)return oy;const a=L3(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&l1(a.excludePattern,i.useCaseSensitiveFileNames),l=a.includeFilePattern&&l1(a.includeFilePattern,i.useCaseSensitiveFileNames);return l?o?u=>!(l.test(u)&&!o.test(u)):u=>!l.test(u):o?u=>o.test(u):oy}function Zpe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return Zpe(e.element);default:return e.type}}function MG(e,t){return Au(t,(r,i)=>{if(r===e)return i})}function RG(e,t){return Kpe(e,p4(),t)}function FNe(e){return Kpe(e,qpe())}function Kpe(e,{optionsNameMap:t},r){const i=new Map,a=r&&Ql(r.useCaseSensitiveFileNames);for(const o in e)if(oo(e,o)){if(t.has(o)&&(t.get(o).category===p.Command_line_Options||t.get(o).category===p.Output_Formatting))continue;const l=e[o],u=t.get(o.toLowerCase());if(u){E.assert(u.type!=="listOrElement");const f=Zpe(u);f?u.type==="list"?i.set(o,l.map(g=>MG(g,f))):i.set(o,MG(l,f)):r&&u.isFilePath?i.set(o,sw(r.configFilePath,ms(l,Ti(r.configFilePath)),a)):i.set(o,l)}}return i}function LNe(e,t){const r=ede(e);return a();function i(o){return Array(o+1).join(" ")}function a(){const o=[],l=i(2);return qF.forEach(u=>{if(!r.has(u.name))return;const f=r.get(u.name),g=WG(u);f!==g?o.push(`${l}${u.name}: ${f}`):oo(QF,u.name)&&o.push(`${l}${u.name}: ${g}`)}),o.join(t)+t}}function ede(e){const t=uI(e,QF);return RG(t)}function MNe(e,t,r){const i=ede(e);return l();function a(u){return Array(u+1).join(" ")}function o({category:u,name:f,isCommandLineOnly:g}){const m=[p.Command_line_Options,p.Editor_Support,p.Compiler_Diagnostics,p.Backwards_Compatibility,p.Watch_and_Build_Modes,p.Output_Formatting];return!g&&u!==void 0&&(!m.includes(u)||i.has(f))}function l(){const u=new Map;u.set(p.Projects,[]),u.set(p.Language_and_Environment,[]),u.set(p.Modules,[]),u.set(p.JavaScript_Support,[]),u.set(p.Emit,[]),u.set(p.Interop_Constraints,[]),u.set(p.Type_Checking,[]),u.set(p.Completeness,[]);for(const k of t0)if(o(k)){let C=u.get(k.category);C||u.set(k.category,C=[]),C.push(k)}let f=0,g=0;const m=[];u.forEach((k,C)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${ss(C)} */`});for(const N of k){let D;i.has(N.name)?D=`"${N.name}": ${JSON.stringify(i.get(N.name))}${(g+=1)===i.size?"":","}`:D=`// "${N.name}": ${JSON.stringify(WG(N))},`,m.push({value:D,description:`/* ${N.description&&ss(N.description)||N.name} */`}),f=Math.max(D.length,f)}});const y=a(2),x=[];x.push("{"),x.push(`${y}"compilerOptions": {`),x.push(`${y}${y}/* ${ss(p.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),x.push("");for(const k of m){const{value:C,description:N=""}=k;x.push(C&&`${y}${y}${C}${N&&a(f-C.length+2)+N}`)}if(t.length){x.push(`${y}},`),x.push(`${y}"files": [`);for(let k=0;ktypeof fe=="object","object"),oe=Y(j("files"));if(oe){const fe=Z==="no-prop"||Ds(Z)&&Z.length===0,G=oo(x,"extends");if(oe.length===0&&fe&&!G)if(t){const Ne=l||"tsconfig.json",De=p.The_files_list_in_config_file_0_is_empty,Xe=jw(t,"files",be=>be.initializer),ve=h1(t,Xe,De,Ne);m.push(ve)}else R(p.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let _e=Y(j("include"));const X=j("exclude");let H=!1,Q=Y(X);if(X==="no-prop"&&x.compilerOptions){const fe=x.compilerOptions.outDir,G=x.compilerOptions.declarationDir;(fe||G)&&(Q=[fe,G].filter(Ne=>!!Ne))}oe===void 0&&_e===void 0&&(_e=[YF],H=!0);let ne,ue;return _e&&(ne=gde(_e,m,!0,t,"include")),Q&&(ue=gde(Q,m,!1,t,"exclude")),{filesSpecs:oe,includeSpecs:_e,excludeSpecs:Q,validatedFilesSpec:zr(oe,Gs),validatedIncludeSpecs:ne,validatedExcludeSpecs:ue,pathPatterns:void 0,isDefaultIncludeSpec:H}}function V(Z){const oe=PA(N,Z,k,r,f);return ide(oe,NA(x),u)&&m.push(rde(N,l)),oe}function U(Z){let oe;const _e=ee("references",X=>typeof X=="object","object");if(Ds(_e))for(const X of _e)typeof X.path!="string"?R(p.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(oe||(oe=[])).push({path:ms(X.path,Z),originalPath:X.path,prepend:X.prepend,circular:X.circular});return oe}function Y(Z){return Ds(Z)?Z:void 0}function j(Z){return ee(Z,Gs,"string")}function ee(Z,oe,_e){if(oo(x,Z)&&!g8(x[Z]))if(Ds(x[Z])){const X=x[Z];return!t&&!Xi(X,oe)&&m.push(xc(p.Compiler_option_0_requires_a_value_of_type_1,Z,_e)),X}else return R(p.Compiler_option_0_requires_a_value_of_type_1,Z,"Array"),"not-array";return"no-prop"}function R(Z,...oe){t||m.push(xc(Z,...oe))}}function jNe(e){return e.code===p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function rde({includeSpecs:e,excludeSpecs:t},r){return xc(p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function ide(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function NA(e){return!oo(e,"files")&&!oo(e,"references")}function JG(e,t,r,i,a){const o=i.length;return ide(e,a)?i.push(rde(r,t)):tV(i,l=>!jNe(l)),o!==i.length}function JNe(e){return!!e.options}function sde(e,t,r,i,a,o,l,u){var f;i=zl(i);const g=ms(a||"",i);if(o.indexOf(g)>=0)return l.push(xc(p.Circularity_detected_while_resolving_configuration_Colon_0,[...o,g].join(" -> "))),{raw:e||Qpe(t,l)};const m=e?zNe(e,r,i,a,l):VNe(t,r,i,a,l);if((f=m.options)!=null&&f.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){o=o.concat([g]);const x={options:{}};Gs(m.extendedConfigPath)?y(x,m.extendedConfigPath):m.extendedConfigPath.forEach(k=>y(x,k)),!m.raw.include&&x.include&&(m.raw.include=x.include),!m.raw.exclude&&x.exclude&&(m.raw.exclude=x.exclude),!m.raw.files&&x.files&&(m.raw.files=x.files),m.raw.compileOnSave===void 0&&x.compileOnSave&&(m.raw.compileOnSave=x.compileOnSave),t&&x.extendedSourceFiles&&(t.extendedSourceFiles=ra(x.extendedSourceFiles.keys())),m.options=j7(x.options,m.options),m.watchOptions=m.watchOptions&&x.watchOptions?j7(x.watchOptions,m.watchOptions):m.watchOptions||x.watchOptions}return m;function y(x,k){const C=UNe(t,k,r,o,l,u,x);if(C&&JNe(C)){const N=C.raw;let D;const M=V=>{N[V]&&(x[V]=an(N[V],U=>Ad(U)?U:Ii(D||(D=BC(Ti(k),i,Ql(r.useCaseSensitiveFileNames))),U)))};M("include"),M("exclude"),M("files"),N.compileOnSave!==void 0&&(x.compileOnSave=N.compileOnSave),j7(x.options,C.options),x.watchOptions=x.watchOptions&&C.watchOptions?j7({},x.watchOptions,C.watchOptions):x.watchOptions||C.watchOptions}}}function zNe(e,t,r,i,a){oo(e,"excludes")&&a.push(xc(p.Unknown_option_excludes_Did_you_mean_exclude));const o=lde(e.compilerOptions,r,a,i),l=_de(e.typeAcquisition,r,a,i),u=GNe(e.watchOptions,r,a);e.compileOnSave=WNe(e,r,a);const f=e.extends||e.extends===""?ade(e.extends,t,r,i,a):void 0;return{raw:e,options:o,watchOptions:u,typeAcquisition:l,extendedConfigPath:f}}function ade(e,t,r,i,a,o,l,u){let f;const g=i?tde(i,r):r;if(Gs(e))f=ode(e,t,g,a,l,u);else if(Ds(e)){f=[];for(let m=0;mV.name===k)&&(g=dn(g,N.name))))}}function ode(e,t,r,i,a,o){if(e=zl(e),Ad(e)||ns(e,"./")||ns(e,"../")){let u=ms(e,r);if(!t.fileExists(u)&&!vc(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(h1(o,a,p.File_0_not_found,e));return}return u}const l=zde(e,Ii(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(h1(o,a,p.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(h1(o,a,p.File_0_not_found,e))}function UNe(e,t,r,i,a,o,l){var y;const u=r.useCaseSensitiveFileNames?t:Zp(t);let f,g,m;if(o&&(f=o.get(u))?{extendedResult:g,extendedConfig:m}=f:(g=Wpe(t,x=>r.readFile(x)),g.parseDiagnostics.length||(m=sde(void 0,g,r,Ti(t),Jl(t),i,a,o)),o&&o.set(u,{extendedResult:g,extendedConfig:m})),e&&(((y=l.extendedSourceFiles)!=null?y:l.extendedSourceFiles=new Set).add(g.fileName),g.extendedSourceFiles))for(const x of g.extendedSourceFiles)l.extendedSourceFiles.add(x);if(g.parseDiagnostics.length){a.push(...g.parseDiagnostics);return}return m}function WNe(e,t,r){if(!oo(e,IA.name))return!1;const i=TS(IA,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function qNe(e,t,r){const i=[];return{options:lde(e,t,i,r),errors:i}}function HNe(e,t,r){const i=[];return{options:_de(e,t,i,r),errors:i}}function cde(e){return e&&Jl(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function lde(e,t,r,i){const a=cde(i);return zG(Hpe(),e,t,a,RA,r),i&&(a.configFilePath=zl(i)),a}function VF(e){return{enable:!!e&&Jl(e)==="jsconfig.json",include:[],exclude:[]}}function _de(e,t,r,i){const a=VF(i);return zG($pe(),e,t,a,e$,r),a}function GNe(e,t,r){return zG(Gpe(),e,t,void 0,BA,r)}function zG(e,t,r,i,a,o){if(!!t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=TS(u,t[l],r,o):o.push(NG(l,a))}return i}}function h1(e,t,r,...i){return e&&t?Yf(e,t,r,...i):xc(r,...i)}function TS(e,t,r,i,a,o,l){if(e.isCommandLineOnly){i.push(h1(l,a==null?void 0:a.name,p.Option_0_can_only_be_specified_on_command_line,e.name));return}if(Ype(e,t)){const u=e.type;if(u==="list"&&Ds(t))return fde(e,t,r,i,a,o,l);if(u==="listOrElement")return Ds(t)?fde(e,t,r,i,a,o,l):TS(e.element,t,r,i,a,o,l);if(!Gs(e.type))return ude(e,t,i,o,l);const f=cT(e,t,i,o,l);return g8(f)?f:$Ne(e,r,f)}else i.push(h1(l,o,p.Compiler_option_0_requires_a_value_of_type_1,e.name,zF(e)))}function $Ne(e,t,r){return e.isFilePath&&(r=ms(r,t),r===""&&(r=".")),r}function cT(e,t,r,i,a){var o;if(g8(t))return;const l=(o=e.extraValidation)==null?void 0:o.call(e,t);if(!l)return t;r.push(h1(a,i,...l))}function ude(e,t,r,i,a){if(g8(t))return;const o=t.toLowerCase(),l=e.type.get(o);if(l!==void 0)return cT(e,l,r,i,a);r.push(jpe(e,(u,...f)=>h1(a,i,u,...f)))}function fde(e,t,r,i,a,o,l){return zr(an(t,(u,f)=>TS(e.element,u,r,i,a,o==null?void 0:o.elements[f],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function PA(e,t,r,i,a=Ve){t=ba(t);const o=Ql(i.useCaseSensitiveFileNames),l=new Map,u=new Map,f=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,x=M3(r,a),k=PD(r,x);if(g)for(const M of g){const V=ms(M,t);l.set(o(V),V)}let C;if(m&&m.length>0)for(const M of i.readDirectory(t,bp(k),y,m,void 0)){if(Hc(M,".json")){if(!C){const Y=m.filter(ee=>vc(ee,".json")),j=an(bO(Y,t,"files"),ee=>`^${ee}$`);C=j?j.map(ee=>l1(ee,i.useCaseSensitiveFileNames)):Ve}if(qc(C,Y=>Y.test(M))!==-1){const Y=o(M);!l.has(Y)&&!f.has(Y)&&f.set(Y,M)}continue}if(YNe(M,l,u,x,o))continue;ZNe(M,u,x,o);const V=o(M);!l.has(V)&&!u.has(V)&&u.set(V,M)}const N=ra(l.values()),D=ra(u.values());return N.concat(D,ra(f.values()))}function pde(e,t,r,i,a){const{validatedFilesSpec:o,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Nn(l)||!Nn(u))return!1;r=ba(r);const f=Ql(i);if(o){for(const g of o)if(f(ms(g,r))===e)return!1}return mde(e,u,i,a,r)}function dde(e){const t=ns(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(vc(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function UF(e,t,r,i){return mde(e,zr(t,a=>!dde(a)),r,i)}function mde(e,t,r,i,a){const o=F3(t,Ii(ba(i),a),"exclude"),l=o&&l1(o,r);return l?l.test(e)?!0:!$k(e)&&l.test(D_(e)):!1}function gde(e,t,r,i,a){return e.filter(l=>{if(!Gs(l))return!1;const u=VG(l,r);return u!==void 0&&t.push(o(...u)),u===void 0});function o(l,u){const f=N9(i,a,u);return h1(i,f,l,u)}}function VG(e,t){if(E.assert(typeof e=="string"),t&&Ede.test(e))return[p.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(dde(e))return[p.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function XNe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const a=F3(t,r,"exclude"),o=a&&new RegExp(a,i?"":"i"),l={};if(e!==void 0){const u=[];for(const f of e){const g=ba(Ii(r,f));if(o&&o.test(g))continue;const m=QNe(g,i);if(m){const{key:y,flags:x}=m,k=l[y];(k===void 0||kGc(e,l)?l:void 0);if(!o)return!1;for(const l of o){if(Hc(e,l))return!1;const u=a(Cy(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Hc(e,".js")||Hc(e,".jsx")))continue;return!0}}return!1}function ZNe(e,t,r,i){const a=pn(r,o=>Gc(e,o)?o:void 0);if(!!a)for(let o=a.length-1;o>=0;o--){const l=a[o];if(Hc(e,l))return;const u=i(Cy(e,l));t.delete(u)}}function KNe(e){const t={};for(const r in e)if(oo(e,r)){const i=IG(r);i!==void 0&&(t[r]=UG(e[r],i))}return t}function UG(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Ds(e))return UG(e,t.element);case"list":const r=t.element;return Ds(e)?Hi(e,i=>UG(i,r)):"";default:return Au(t.type,(i,a)=>{if(i===e)return a})}}function WG(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return WG(e.element);case"object":return{};default:const r=_I(e.type.keys());return r!==void 0?r:E.fail("Expected 'option.type' to have entries.")}}var IA,qG,h8,HG,OA,WF,FA,LA,MA,GG,qF,t0,$G,XG,QG,HF,GF,YG,ZG,KG,$F,XF,hde,yde,QF,RA,vde,bde,Tde,e$,xde,BA,Sde,kde,Cde,y8,t$,n$,r$,i$,YF,Ede,wde,ePe=Rt({"src/compiler/commandLineParser.ts"(){Ls(),IA={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},qG=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),h8=new Map(nV(qG.entries(),([e,t])=>[""+t,e])),HG=[["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"],["es2023","lib.es2023.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.date","lib.es2017.date.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"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.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"],["es2020.number","lib.es2020.number.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.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.es2023.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.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"],["esnext.decorators","lib.esnext.decorators.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],OA=HG.map(e=>e[0]),WF=new Map(HG),FA=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:p.Watch_and_Build_Modes,description:p.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:p.Watch_and_Build_Modes,description:p.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:p.Watch_and_Build_Modes,description:p.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:p.Watch_and_Build_Modes,description:p.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:VG},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:VG},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_files_from_the_watch_mode_s_processing}],LA=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:p.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:p.Output_Formatting,description:p.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:p.Output_Formatting,description:p.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:p.Compiler_Diagnostics,description:p.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:p.FILE_OR_DIRECTORY,category:p.Compiler_Diagnostics,description:p.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:p.DIRECTORY,category:p.Compiler_Diagnostics,description:p.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:p.Projects,description:p.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:p.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:p.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:p.Emit,description:p.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Watch_and_Build_Modes,description:p.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:p.Command_line_Options,isCommandLineOnly:!0,description:p.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:p.Platform_specific}],MA={name:"target",shortName:"t",type:new Map(Object.entries({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,affectsBuildInfo:!0,paramType:p.VERSION,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},GG={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_what_module_code_is_generated,defaultValueDescription:void 0},qF=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:p.Command_line_Options,paramType:p.FILE_OR_DIRECTORY,description:p.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:p.Command_line_Options,description:p.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},MA,GG,{name:"lib",type:"list",element:{name:"lib",type:WF,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.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:p.JavaScript_Support,description:p.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",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:p.JavaScript_Support,description:p.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:qG,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.FILE,showInSimplifiedHelpView:!0,category:p.Emit,description:p.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,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.LOCATION,category:p.Modules,description:p.Specify_the_root_folder_within_your_source_files,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:p.FILE,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:p.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:p.Emit,description:p.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:p.Interop_Constraints,description:p.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:p.Interop_Constraints,description:p.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Type_Checking,description:p.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:p.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Ensure_use_strict_is_always_emitted,defaultValueDescription:p.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:p.Type_Checking,description:p.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsModuleResolution:!0,paramType:p.STRATEGY,category:p.Modules,description:p.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:p.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:p.Modules,description:p.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:p.Modules,description:p.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:p.Modules,description:p.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:p.Modules,description:p.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Interop_Constraints,description:p.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:p.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Interop_Constraints,description:p.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:p.Interop_Constraints,description:p.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:p.Modules,description:p.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:p.Modules,description:p.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:p.Language_and_Environment,description:p.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:p.Language_and_Environment,description:p.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:p.Language_and_Environment,description:p.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:p.Modules,description:p.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:p.Modules,description:p.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:p.Backwards_Compatibility,paramType:p.FILE,transpileOptionValue:void 0,description:p.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:p.Backwards_Compatibility,description:p.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:p.NEWLINE,category:p.Emit,description:p.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Output_Formatting,description:p.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:p.Language_and_Environment,affectsProgramStructure:!0,description:p.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.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,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:p.Editor_Support,description:p.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:p.Projects,description:p.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,category:p.Emit,transpileOptionValue:void 0,description:p.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:p.Interop_Constraints,description:p.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:p.JavaScript_Support,description:p.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,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:p.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:p.Backwards_Compatibility,description:p.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:p.Specify_a_list_of_language_service_plugins_to_include,category:p.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:p.Control_what_method_is_used_to_detect_module_format_JS_files,category:p.Language_and_Environment,defaultValueDescription:p.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],t0=[...LA,...qF],$G=t0.filter(e=>!!e.affectsSemanticDiagnostics),XG=t0.filter(e=>!!e.affectsEmit),QG=t0.filter(e=>!!e.affectsDeclarationPath),HF=t0.filter(e=>!!e.affectsModuleResolution),GF=t0.filter(e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics),YG=t0.filter(e=>!!e.affectsProgramStructure),ZG=t0.filter(e=>oo(e,"transpileOptionValue")),KG=[{name:"verbose",shortName:"v",category:p.Command_line_Options,description:p.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:p.Command_line_Options,description:p.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:p.Command_line_Options,description:p.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:p.Command_line_Options,description:p.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],$F=[...LA,...KG],XF=[{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}],yde={diagnostic:p.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Upe},QF={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},RA={alternateMode:yde,getOptionsNameMap:p4,optionDeclarations:t0,unknownOptionDiagnostic:p.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:p.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Compiler_option_0_expects_an_argument},bde={diagnostic:p.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:p4},Tde={alternateMode:bde,getOptionsNameMap:Upe,optionDeclarations:$F,unknownOptionDiagnostic:p.Unknown_build_option_0,unknownDidYouMeanDiagnostic:p.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Build_option_0_requires_a_value_of_type_1},e$={optionDeclarations:XF,unknownOptionDiagnostic:p.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:p.Unknown_type_acquisition_option_0_Did_you_mean_1},BA={getOptionsNameMap:qpe,optionDeclarations:FA,unknownOptionDiagnostic:p.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:p.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Watch_option_0_requires_a_value_of_type_1},y8={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:p.File_Management,disallowNullOrUndefined:!0},t$={name:"compilerOptions",type:"object",elementOptions:Hpe(),extraKeyDiagnostics:RA},n$={name:"watchOptions",type:"object",elementOptions:Gpe(),extraKeyDiagnostics:BA},r$={name:"typeAcquisition",type:"object",elementOptions:$pe(),extraKeyDiagnostics:e$},YF="**/*",Ede=/(^|\/)\*\*\/?$/,wde=/^[^*?]*(?=\/[^/]*[*?])/}});function $i(e){e.trace(Vq.apply(void 0,arguments))}function n0(e,t){return!!e.traceResolution&&t.trace!==void 0}function lT(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+qo.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function ZF(e){return lT(void 0,e)}function Dde(e){if(e)return E.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function jA(e){const t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function tPe(e){const t=[];return e&1&&t.push(...WD),e&2&&t.push(...q6),e&4&&t.push(...UD),e&8&&t.push(".json"),t}function s$(e){if(!!e)return E.assert(SO(e.extension)),{fileName:e.path,packageId:e.packageId}}function Ade(e,t,r,i,a,o,l,u){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Al(e)){const{resolvedFileName:f,originalPath:g}=Ide(t.path,l.host,l.traceEnabled);g&&(t={...t,path:f,originalPath:g})}return Nde(t,r,i,a,o,l.resultFromCache,u)}function Nde(e,t,r,i,a,o,l){return o?(o.failedLookupLocations=d4(o.failedLookupLocations,r),o.affectingLocations=d4(o.affectingLocations,i),o.resolutionDiagnostics=d4(o.resolutionDiagnostics,a),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:v8(r),affectingLocations:v8(i),resolutionDiagnostics:v8(a),node10Result:l}}function v8(e){return e.length?e:void 0}function d4(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function Pde(e,t,r,i){if(!oo(e,t)){i.traceEnabled&&$i(i.host,p.package_json_does_not_have_a_0_field,t);return}const a=e[t];if(typeof a!==r||a===null){i.traceEnabled&&$i(i.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,a===null?"null":typeof a);return}return a}function KF(e,t,r,i){const a=Pde(e,t,"string",i);if(a===void 0)return;if(!a){i.traceEnabled&&$i(i.host,p.package_json_had_a_falsy_0_field,t);return}const o=ba(Ii(r,a));return i.traceEnabled&&$i(i.host,p.package_json_has_0_field_1_that_references_2,t,a,o),o}function nPe(e,t,r){return KF(e,"typings",t,r)||KF(e,"types",t,r)}function rPe(e,t,r){return KF(e,"tsconfig",t,r)}function iPe(e,t,r){return KF(e,"main",t,r)}function sPe(e,t){const r=Pde(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&$i(t.host,p.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function aPe(e,t){const r=sPe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)oo(r,l)&&!U7.tryParse(l)&&$i(t.host,p.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=eL(r);if(!i){t.traceEnabled&&$i(t.host,p.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,wC);return}const{version:a,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&$i(t.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${a}']`,"object",typeof o);return}return i}function eL(e){b$||(b$=new wd(L0));for(const t in e){if(!oo(e,t))continue;const r=U7.tryParse(t);if(r!==void 0&&r.test(b$))return{version:t,paths:e[t]}}}function JA(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ti(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return oPe(r)}function oPe(e){let t;return Vg(ba(e),r=>{const i=Ii(r,ime);(t!=null?t:t=[]).push(i)}),t}function cPe(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Db(e,t,!i)===0}function Ide(e,t,r){const i=xPe(e,t,r),a=cPe(e,i,t);return{resolvedFileName:a?e:i,originalPath:a?void 0:e}}function Ode(e,t,r){const i=vc(e,"/node_modules/@types")||vc(e,"/node_modules/@types/")?Kde(t,r):t;return Ii(e,i)}function a$(e,t,r,i,a,o,l){E.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const u=n0(r,i);a&&(r=a.commandLine.options);const f=t?Ti(t):void 0;let g=f?o==null?void 0:o.getFromDirectoryCache(e,l,f,a):void 0;if(!g&&f&&!Al(e)&&(g=o==null?void 0:o.getFromNonRelativeNameCache(e,l,f,a)),g)return u&&($i(i,p.Resolving_type_reference_directive_0_containing_file_1,e,t),a&&$i(i,p.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName),$i(i,p.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,f),Y(g)),g;const m=JA(r,i);u&&(t===void 0?m===void 0?$i(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):$i(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?$i(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):$i(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),a&&$i(i,p.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName));const y=[],x=[];let k=o$(r);l===99&&(Sc(r)===3||Sc(r)===99)&&(k|=32);const C=k&8?xS(r,!!(k&32)):[],N=[],D={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:x,packageJsonInfoCache:o,features:k,conditions:C,requestContainingDirectory:f,reportDiagnostic:R=>void N.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let M=j(),V=!0;M||(M=ee(),V=!1);let U;if(M){const{fileName:R,packageId:Z}=M;let oe=R,_e;r.preserveSymlinks||({resolvedFileName:oe,originalPath:_e}=Ide(R,i,u)),U={primary:V,resolvedFileName:oe,originalPath:_e,packageId:Z,isExternalLibraryImport:SS(R)}}return g={resolvedTypeReferenceDirective:U,failedLookupLocations:v8(y),affectingLocations:v8(x),resolutionDiagnostics:v8(N)},f&&(o==null||o.getOrCreateCacheForDirectory(f,a).set(e,l,g),Al(e)||o==null||o.getOrCreateCacheForNonRelativeName(e,l,a).set(f,g)),u&&Y(g),g;function Y(R){var Z;(Z=R.resolvedTypeReferenceDirective)!=null&&Z.resolvedFileName?R.resolvedTypeReferenceDirective.packageId?$i(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,R.resolvedTypeReferenceDirective.resolvedFileName,s1(R.resolvedTypeReferenceDirective.packageId),R.resolvedTypeReferenceDirective.primary):$i(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,R.resolvedTypeReferenceDirective.resolvedFileName,R.resolvedTypeReferenceDirective.primary):$i(i,p.Type_reference_directive_0_was_not_resolved,e)}function j(){if(m&&m.length)return u&&$i(i,p.Resolving_with_primary_search_path_0,m.join(", ")),cc(m,R=>{const Z=Ode(R,e,D),oe=ed(R,i);if(!oe&&u&&$i(i,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,R),r.typeRoots){const _e=kS(4,Z,!oe,D);if(_e){const X=zA(_e.path),H=X?T2(X,!1,D):void 0;return s$(lT(H,_e))}}return s$(m$(4,Z,!oe,D))});u&&$i(i,p.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ee(){const R=t&&Ti(t);if(R!==void 0){let Z;if(!r.typeRoots||!vc(t,p5))if(u&&$i(i,p.Looking_up_in_node_modules_folder_initial_location_0,R),Al(e)){const{path:oe}=Vde(R,e);Z=iL(4,oe,!1,D,!0)}else{const oe=Xde(4,e,R,D,void 0,void 0);Z=oe&&oe.value}else u&&$i(i,p.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return s$(Z)}else u&&$i(i,p.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function o$(e){let t=0;switch(Sc(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function xS(e,t){const r=t||Sc(e)===100?["import"]:["require"];return e.noDtsResolution||r.push("types"),Sc(e)!==100&&r.push("node"),es(r,e.customConditions)}function lPe(e,t,r,i,a){const o=sL(a==null?void 0:a.getPackageJsonInfoCache(),i,r);return Vg(t,l=>{if(Jl(l)!=="node_modules"){const u=Ii(l,"node_modules"),f=Ii(u,e);return T2(f,!1,o)}})}function tL(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=JA(e,t);if(i){for(const a of i)if(t.directoryExists(a))for(const o of t.getDirectories(a)){const l=ba(o),u=Ii(a,l,"package.json");if(!(t.fileExists(u)&&C3(u,t).typings===null)){const g=Jl(l);g.charCodeAt(0)!==46&&r.push(g)}}}}return r}function c$(e){var t;if(e===null||typeof e!="object")return""+e;if(Ds(e))return`[${(t=e.map(i=>c$(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)oo(e,i)&&(r+=`${i}: ${c$(e[i])}`);return r+"}"}function l$(e,t){return t.map(r=>c$(gO(e,r))).join("|")+`|${e.pathsBasePath}`}function _$(e){const t=new Map,r=new Map,i=new Map;let a=new Map;return e&&t.set(e,a),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:l,update:u,clear:g};function o(y){return y?f(y.commandLine.options,!1):a}function l(y){return y?f(y.commandLine.options,!0):a}function u(y){e!==y&&(e?a=f(y,!0):t.set(y,a),e=y)}function f(y,x){let k=t.get(y);if(k)return k;const C=m(y);if(k=i.get(C),!k){if(e){const N=m(e);N===C?k=a:i.has(N)||i.set(N,a)}x&&(k!=null||(k=new Map)),k&&i.set(C,k)}return k&&t.set(y,k),k}function g(){const y=e&&r.get(e);a.clear(),t.clear(),r.clear(),i.clear(),e&&(y&&r.set(e,y),t.set(e,a))}function m(y){let x=r.get(y);return x||r.set(y,x=l$(y,HF)),x}}function _Pe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:a,clear:o,entries:l,getInternalMap:u};function i(f){return r==null?void 0:r.get(ho(f,e,t))}function a(f,g){(r||(r=new Map)).set(ho(f,e,t),g)}function o(){r=void 0}function l(){const f=r==null?void 0:r.entries();return f?ra(f):[]}function u(){return r}}function Fde(e,t,r,i){const a=e.getOrCreateMapOfCacheRedirects(t);let o=a.get(r);return o||(o=i(),a.set(r,o)),o}function uPe(e,t,r){const i=_$(r);return{getFromDirectoryCache:u,getOrCreateCacheForDirectory:l,clear:a,update:o};function a(){i.clear()}function o(f){i.update(f)}function l(f,g){const m=ho(f,e,t);return Fde(i,g,m,()=>_T())}function u(f,g,m,y){var x,k;const C=ho(m,e,t);return(k=(x=i.getMapOfCacheRedirects(y))==null?void 0:x.get(C))==null?void 0:k.get(f,g)}}function b8(e,t){return t===void 0?e:`${t}|${e}`}function _T(){const e=new Map,t=new Map,r={get(a,o){return e.get(i(a,o))},set(a,o,l){return e.set(i(a,o),l),r},delete(a,o){return e.delete(i(a,o)),r},has(a,o){return e.has(i(a,o))},forEach(a){return e.forEach((o,l)=>{const[u,f]=t.get(l);return a(o,u,f)})},size(){return e.size}};return r;function i(a,o){const l=b8(a,o);return t.set(l,[a,o]),l}}function u$(e,t,r,i){E.assert(t.length===r.length);const a=_T();for(let o=0;oi,clearAllExceptPackageJsonInfoCache:f};function u(){f(),i.clear()}function f(){o.clear(),l.clear()}function g(m){o.update(m),l.update(m)}}function m4(e,t,r,i){const a=Lde(e,t,r,i,fPe);return a.getOrCreateCacheForModuleName=(o,l,u)=>a.getOrCreateCacheForNonRelativeName(o,l,u),a}function nL(e,t,r,i){return Lde(e,t,r,i,pPe)}function f$(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function rL(e,t,r,i,a){return T8(e,t,f$(r),i,a)}function mPe(e,t,r,i){const a=Ti(t);return r.getFromDirectoryCache(e,i,a,void 0)}function T8(e,t,r,i,a,o,l){var u,f,g;const m=n0(r,i);o&&(r=o.commandLine.options),m&&($i(i,p.Resolving_module_0_from_1,e,t),o&&$i(i,p.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=Ti(t);let x=a==null?void 0:a.getFromDirectoryCache(e,l,y,o);if(x)m&&$i(i,p.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let k=r.moduleResolution;if(k===void 0){switch(Ul(r)){case 1:k=2;break;case 100:k=3;break;case 199:k=99;break;default:k=1;break}m&&$i(i,p.Module_resolution_kind_is_not_specified_using_0,Gk[k])}else m&&$i(i,p.Explicitly_specified_module_resolution_kind_Colon_0,Gk[k]);switch((u=Dd)==null||u.logStartResolveModule(e),k){case 3:x=vPe(e,t,r,i,a,o,l);break;case 99:x=bPe(e,t,r,i,a,o,l);break;case 2:x=Jde(e,t,r,i,a,o);break;case 1:x=tme(e,t,r,i,a,o);break;case 100:x=jde(e,t,r,i,a,o);break;default:return E.fail(`Unexpected moduleResolution: ${k}`)}x&&x.resolvedModule&&((f=Dd)==null||f.logInfoEvent(`Module "${e}" resolved to "${x.resolvedModule.resolvedFileName}"`)),(g=Dd)==null||g.logStopResolveModule(x&&x.resolvedModule?""+x.resolvedModule.resolvedFileName:"null"),a==null||a.getOrCreateCacheForDirectory(y,o).set(e,l,x),Al(e)||a==null||a.getOrCreateCacheForNonRelativeName(e,l,o).set(y,x)}return m&&(x.resolvedModule?x.resolvedModule.packageId?$i(i,p.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,x.resolvedModule.resolvedFileName,s1(x.resolvedModule.packageId)):$i(i,p.Module_name_0_was_successfully_resolved_to_1,e,x.resolvedModule.resolvedFileName):$i(i,p.Module_name_0_was_not_resolved,e)),x}function Mde(e,t,r,i,a){const o=gPe(e,t,i,a);return o?o.value:Al(t)?hPe(e,t,r,i,a):yPe(e,t,i,a)}function gPe(e,t,r,i){var a;const{baseUrl:o,paths:l,configFile:u}=i.compilerOptions;if(l&&!$u(t)){i.traceEnabled&&(o&&$i(i.host,p.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),$i(i.host,p.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const f=eO(i.compilerOptions,i.host),g=u!=null&&u.configFileSpecs?(a=u.configFileSpecs).pathPatterns||(a.pathPatterns=xO(l)):void 0;return v$(e,t,f,l,g,r,!1,i)}}function hPe(e,t,r,i,a){if(!a.compilerOptions.rootDirs)return;a.traceEnabled&&$i(a.host,p.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=ba(Ii(r,t));let l,u;for(const f of a.compilerOptions.rootDirs){let g=ba(f);vc(g,qo)||(g+=qo);const m=ns(o,g)&&(u===void 0||u.lengthvoid M.push(ee),isConfigLookup:u,candidateIsFromPackageJsonField:!1};k&&Zx(Sc(i))&&$i(a,p.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",D.map(ee=>`'${ee}'`).join(", "));let U;if(Sc(i)===2){const ee=l&5,R=l&-6;U=ee&&j(ee,V)||R&&j(R,V)||void 0}else U=j(l,V);let Y;if(((g=U==null?void 0:U.value)==null?void 0:g.isExternalLibraryImport)&&!u&&l&5&&e&8&&!Al(t)&&!g$(5,U.value.resolved.extension)&&D.indexOf("import")>-1){y1(V,p.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ee={...V,features:V.features&-9,reportDiagnostic:co},R=j(l&5,ee);(m=R==null?void 0:R.value)!=null&&m.isExternalLibraryImport&&(Y=R.value.resolved.path)}return Ade(t,(y=U==null?void 0:U.value)==null?void 0:y.resolved,(x=U==null?void 0:U.value)==null?void 0:x.isExternalLibraryImport,C,N,M,V,Y);function j(ee,R){const oe=Mde(ee,t,r,(_e,X,H,Q)=>iL(_e,X,H,Q,!0),R);if(oe)return rf({resolved:oe,isExternalLibraryImport:SS(oe.path)});if(Al(t)){const{path:_e,parts:X}=Vde(r,t),H=iL(ee,_e,!1,R,!0);return H&&rf({resolved:H,isExternalLibraryImport:ys(X,"node_modules")})}else{let _e;if(e&2&&ns(t,"#")&&(_e=DPe(ee,t,r,R,o,f)),!_e&&e&4&&(_e=wPe(ee,t,r,R,o,f)),!_e){if(t.indexOf(":")>-1){k&&$i(a,p.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,jA(ee));return}k&&$i(a,p.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,jA(ee)),_e=Xde(ee,t,r,R,o,f)}return ee&4&&(_e!=null||(_e=nme(t,R))),_e&&{value:_e.value&&{resolved:_e.value,isExternalLibraryImport:!0}}}}}function Vde(e,t){const r=Ii(e,t),i=Dl(r),a=jo(i);return{path:a==="."||a===".."?D_(ba(r)):ba(r),parts:i}}function xPe(e,t,r){if(!t.realpath)return e;const i=ba(t.realpath(e));return r&&$i(t,p.Resolving_real_path_for_0_result_1,e,i),E.assert(t.fileExists(i),`${e} linked to nonexistent file ${i}`),i}function iL(e,t,r,i,a){if(i.traceEnabled&&$i(i.host,p.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,jA(e)),!V0(t)){if(!r){const l=Ti(t);ed(l,i.host)||(i.traceEnabled&&$i(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const o=kS(e,t,r,i);if(o){const l=a?zA(o.path):void 0,u=l?T2(l,!1,i):void 0;return lT(u,o)}}if(r||ed(t,i.host)||(i.traceEnabled&&$i(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return m$(e,t,r,i,a)}function SS(e){return Xl(e,ah)}function zA(e,t){const r=ba(e),i=r.lastIndexOf(ah);if(i===-1)return;const a=i+ah.length;let o=Ude(r,a,t);return r.charCodeAt(a)===64&&(o=Ude(r,o,t)),r.slice(0,o)}function Ude(e,t,r){const i=e.indexOf(qo,t+1);return i===-1?r?e.length:t:i}function p$(e,t,r,i){return ZF(kS(e,t,r,i))}function kS(e,t,r,i){const a=Wde(e,t,r,i);if(a)return a;if(!(i.features&32)){const o=qde(t,e,"",r,i);if(o)return o}}function Wde(e,t,r,i){if(Jl(t).indexOf(".")===-1)return;let o=gu(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));const l=t.substring(o.length);return i.traceEnabled&&$i(i.host,p.File_name_0_has_a_1_extension_stripping_it,t,l),qde(o,e,l,r,i)}function d$(e,t,r,i){return e&1&&Gc(t,WD)||e&4&&Gc(t,UD)?VA(t,r,i)!==void 0?{path:t,ext:iO(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Hc(t,".json")?VA(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:Wde(e,t,r,i)}function qde(e,t,r,i,a){if(!i){const l=Ti(e);l&&(i=!ed(l,a.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&o(".mts",r===".mts"||r===".d.mts")||t&4&&o(".d.mts",r===".mts"||r===".d.mts")||t&2&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&o(".cts",r===".cts"||r===".d.cts")||t&4&&o(".d.cts",r===".cts"||r===".d.cts")||t&2&&o(".cjs")||void 0;case".json":return t&4&&o(".d.json.ts")||t&8&&o(".json")||void 0;case".tsx":case".jsx":return t&1&&(o(".tsx",r===".tsx")||o(".ts",r===".tsx"))||t&4&&o(".d.ts",r===".tsx")||t&2&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(o(".ts",r===".ts"||r===".d.ts")||o(".tsx",r===".ts"||r===".d.ts"))||t&4&&o(".d.ts",r===".ts"||r===".d.ts")||t&2&&(o(".js")||o(".jsx"))||a.isConfigLookup&&o(".json")||void 0;default:return t&4&&!ou(e+r)&&o(`.d${r}.ts`)||void 0}function o(l,u){const f=VA(e+l,i,a);return f===void 0?void 0:{path:f,ext:l,resolvedUsingTsExtension:!a.candidateIsFromPackageJsonField&&u}}}function VA(e,t,r){var l;var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return Hde(e,t,r);const a=(l=ig(e))!=null?l:"",o=a?OD(e,a):e;return pn(r.compilerOptions.moduleSuffixes,u=>Hde(o+u+a,t,r))}function Hde(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&$i(r.host,p.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&$i(r.host,p.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function m$(e,t,r,i,a=!0){const o=a?T2(t,r,i):void 0,l=o&&o.contents.packageJsonContent,u=o&&UA(o,i);return lT(o,oL(e,t,r,i,l,u))}function SPe(e,t,r,i,a){if(!a&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o;const l=5|(a?2:0),u=o$(t),f=sL(i==null?void 0:i.getPackageJsonInfoCache(),r,t);f.conditions=xS(t),f.requestContainingDirectory=e.packageDirectory;const g=oL(l,e.packageDirectory,!1,f,e.contents.packageJsonContent,UA(e,f));if(o=dn(o,g==null?void 0:g.path),u&8&&e.contents.packageJsonContent.exports){const m=Uk([xS(t,!0),xS(t,!1)],Cd);for(const y of m){const x={...f,failedLookupLocations:[],conditions:y,host:r},k=kPe(e,e.contents.packageJsonContent.exports,x,l);if(k)for(const C of k)o=jg(o,C.path)}}return e.contents.resolvedEntrypoints=o||!1}function kPe(e,t,r,i){let a;if(Ds(t))for(const l of t)o(l);else if(typeof t=="object"&&t!==null&&cL(t))for(const l in t)o(t[l]);else o(t);return a;function o(l){var u,f;if(typeof l=="string"&&ns(l,"./"))if(l.indexOf("*")>=0&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,tPe(i),void 0,[iw(l.replace("*","**/*"),vD(l))]).forEach(g=>{a=jg(a,{path:g,ext:nw(g),resolvedUsingTsExtension:void 0})})}else{const g=Dl(l).slice(2);if(g.indexOf("..")>=0||g.indexOf(".")>=0||g.indexOf("node_modules")>=0)return!1;const m=Ii(e.packageDirectory,l),y=ms(m,(f=(u=r.host).getCurrentDirectory)==null?void 0:f.call(u)),x=d$(i,y,!1,r);if(x)return a=jg(a,x,(k,C)=>k.path===C.path),!0}else if(Array.isArray(l)){for(const g of l)if(o(g))return!0}else if(typeof l=="object"&&l!==null)return pn(Jg(l),g=>{if(g==="default"||ys(r.conditions,g)||WA(r.conditions,g))return o(l[g]),!0})}}function sL(e,t,r){return{host:t,compilerOptions:r,traceEnabled:n0(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Ve,requestContainingDirectory:void 0,reportDiagnostic:co,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function aL(e,t){const r=Dl(e);for(r.pop();r.length>0;){const i=T2($h(r),!1,t);if(i)return i;r.pop()}}function UA(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=aPe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function T2(e,t,r){var i,a,o,l,u,f,g,m;const{host:y,traceEnabled:x}=r,k=Ii(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(k);return}const C=(a=r.packageJsonInfoCache)==null?void 0:a.getPackageJsonInfo(k);if(C!==void 0){if(typeof C!="boolean")return x&&$i(y,p.File_0_exists_according_to_earlier_cached_lookups,k),(o=r.affectingLocations)==null||o.push(k),C.packageDirectory===e?C:{packageDirectory:e,contents:C.contents};C&&x&&$i(y,p.File_0_does_not_exist_according_to_earlier_cached_lookups,k),(l=r.failedLookupLocations)==null||l.push(k);return}const N=ed(e,y);if(N&&y.fileExists(k)){const D=C3(k,y);x&&$i(y,p.Found_package_json_at_0,k);const M={packageDirectory:e,contents:{packageJsonContent:D,versionPaths:void 0,resolvedEntrypoints:void 0}};return(u=r.packageJsonInfoCache)==null||u.setPackageJsonInfo(k,M),(f=r.affectingLocations)==null||f.push(k),M}else N&&x&&$i(y,p.File_0_does_not_exist,k),(g=r.packageJsonInfoCache)==null||g.setPackageJsonInfo(k,N),(m=r.failedLookupLocations)==null||m.push(k)}function oL(e,t,r,i,a,o){let l;a&&(i.isConfigLookup?l=rPe(a,t,i):l=e&4&&nPe(a,t,i)||e&7&&iPe(a,t,i)||void 0);const u=(x,k,C,N)=>{const D=VA(k,C,N);if(D){const j=CPe(x,D);if(j)return ZF(j);N.traceEnabled&&$i(N.host,p.File_0_has_an_unsupported_extension_so_skipping_it,D)}const M=x===4?5:x,V=N.features,U=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,(a==null?void 0:a.type)!=="module"&&(N.features&=-33);const Y=iL(M,k,C,N,!1);return N.features=V,N.candidateIsFromPackageJsonField=U,Y},f=l?!ed(Ti(l),i.host):void 0,g=r||!ed(t,i.host),m=Ii(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!l||Qh(t,l))){const x=um(t,l||m,!1);i.traceEnabled&&$i(i.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,L0,x);const k=v$(e,x,t,o.paths,void 0,u,f||g,i);if(k)return Dde(k.value)}const y=l&&Dde(u(e,l,f,i));if(y)return y;if(!(i.features&32))return kS(e,m,g,i)}function CPe(e,t,r){const i=ig(t);return i!==void 0&&g$(e,i)?{path:t,ext:i,resolvedUsingTsExtension:r}:void 0}function g$(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function h$(e){let t=e.indexOf(qo);return e[0]==="@"&&(t=e.indexOf(qo,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function cL(e){return Xi(Jg(e),t=>ns(t,"."))}function EPe(e){return!dt(Jg(e),t=>ns(t,"."))}function wPe(e,t,r,i,a,o){var l,u;const f=ms(Ii(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=aL(f,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;const m=Dl(t),y=Dl(g.contents.packageJsonContent.name);if(!Xi(y,(D,M)=>m[M]===D))return;const x=m.slice(y.length),k=Nn(x)?`.${qo}${x.join(qo)}`:".";if(O3(i.compilerOptions)&&!SS(r))return lL(g,e,k,i,a,o);const C=e&5,N=e&-6;return lL(g,C,k,i,a,o)||lL(g,N,k,i,a,o)}function lL(e,t,r,i,a,o){if(!!e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&EPe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:oo(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return $de(t,i,a,o,r,e,!1)(l,"",!1,".")}else if(cL(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&$i(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),rf(void 0);const l=Gde(t,i,a,o,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&$i(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),rf(void 0)}}function DPe(e,t,r,i,a,o){var l,u;if(t==="#"||ns(t,"#/"))return i.traceEnabled&&$i(i.host,p.Invalid_import_specifier_0_has_no_possible_resolutions,t),rf(void 0);const f=ms(Ii(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=aL(f,i);if(!g)return i.traceEnabled&&$i(i.host,p.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,f),rf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&$i(i.host,p.package_json_scope_0_has_no_imports_defined,g.packageDirectory),rf(void 0);const m=Gde(e,i,a,o,t,g.contents.packageJsonContent.imports,g,!0);return m||(i.traceEnabled&&$i(i.host,p.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),rf(void 0))}function y$(e,t){const r=e.indexOf("*"),i=t.indexOf("*"),a=r===-1?e.length:r+1,o=i===-1?t.length:i+1;return a>o?-1:o>a||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function Gde(e,t,r,i,a,o,l,u){const f=$de(e,t,r,i,a,l,u);if(!vc(a,qo)&&a.indexOf("*")===-1&&oo(o,a)){const y=o[a];return f(y,"",!1,a)}const g=DC(zr(Jg(o),y=>y.indexOf("*")!==-1||vc(y,"/")),y$);for(const y of g)if(t.features&16&&m(y,a)){const x=o[y],k=y.indexOf("*"),C=a.substring(y.substring(0,k).length,a.length-(y.length-1-k));return f(x,C,!0,y)}else if(vc(y,"*")&&ns(a,y.substring(0,y.length-1))){const x=o[y],k=a.substring(y.length-1);return f(x,k,!0,y)}else if(ns(a,y)){const x=o[y],k=a.substring(y.length);return f(x,k,!1,y)}function m(y,x){if(vc(y,"*"))return!1;const k=y.indexOf("*");return k===-1?!1:ns(x,y.substring(0,k))&&vc(x,y.substring(k+1))}}function $de(e,t,r,i,a,o,l){return u;function u(f,g,m,y){if(typeof f=="string"){if(!m&&g.length>0&&!vc(f,"/"))return t.traceEnabled&&$i(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);if(!ns(f,"./")){if(l&&!ns(f,"../")&&!ns(f,"/")&&!Ad(f)){const j=m?f.replace(/\*/g,g):f+g;y1(t,p.Using_0_subpath_1_with_target_2,"imports",y,j),y1(t,p.Resolving_module_0_from_1,j,o.packageDirectory+"/");const ee=x8(t.features,j,o.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i);return rf(ee.resolvedModule?{path:ee.resolvedModule.resolvedFileName,extension:ee.resolvedModule.extension,packageId:ee.resolvedModule.packageId,originalPath:ee.resolvedModule.originalPath,resolvedUsingTsExtension:ee.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&$i(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0)}const D=($u(f)?Dl(f).slice(1):Dl(f)).slice(1);if(D.indexOf("..")>=0||D.indexOf(".")>=0||D.indexOf("node_modules")>=0)return t.traceEnabled&&$i(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);const M=Ii(o.packageDirectory,f),V=Dl(g);if(V.indexOf("..")>=0||V.indexOf(".")>=0||V.indexOf("node_modules")>=0)return t.traceEnabled&&$i(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);t.traceEnabled&&$i(t.host,p.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,m?f.replace(/\*/g,g):f+g);const U=x(m?M.replace(/\*/g,g):M+g),Y=C(U,g,Ii(o.packageDirectory,"package.json"),l);return Y||rf(lT(o,d$(e,U,!1,t)))}else if(typeof f=="object"&&f!==null)if(Array.isArray(f)){if(!Nn(f))return t.traceEnabled&&$i(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);for(const N of f){const D=u(N,g,m,y);if(D)return D}}else{y1(t,p.Entering_conditional_exports);for(const N of Jg(f))if(N==="default"||t.conditions.indexOf(N)>=0||WA(t.conditions,N)){y1(t,p.Matched_0_condition_1,l?"imports":"exports",N);const D=f[N],M=u(D,g,m,y);if(M)return y1(t,p.Resolved_under_condition_0,N),y1(t,p.Exiting_conditional_exports),M;y1(t,p.Failed_to_resolve_under_condition_0,N)}else y1(t,p.Saw_non_matching_condition_0,N);y1(t,p.Exiting_conditional_exports);return}else if(f===null)return t.traceEnabled&&$i(t.host,p.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,a),rf(void 0);return t.traceEnabled&&$i(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,a),rf(void 0);function x(N){var D,M;return N===void 0?N:ms(N,(M=(D=t.host).getCurrentDirectory)==null?void 0:M.call(D))}function k(N,D){return D_(Ii(N,D))}function C(N,D,M,V){var U,Y,j,ee;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&N.indexOf("/node_modules/")===-1&&(t.compilerOptions.configFile?Qh(o.packageDirectory,x(t.compilerOptions.configFile.fileName),!fL(t)):!0)){const Z=Q0({useCaseSensitiveFileNames:()=>fL(t)}),oe=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const _e=x(r5(t.compilerOptions,()=>[],((Y=(U=t.host).getCurrentDirectory)==null?void 0:Y.call(U))||"",Z));oe.push(_e)}else if(t.requestContainingDirectory){const _e=x(Ii(t.requestContainingDirectory,"index.ts")),X=x(r5(t.compilerOptions,()=>[_e,x(M)],((ee=(j=t.host).getCurrentDirectory)==null?void 0:ee.call(j))||"",Z));oe.push(X);let H=D_(X);for(;H&&H.length>1;){const Q=Dl(H);Q.pop();const ne=$h(Q);oe.unshift(ne),H=D_(ne)}}oe.length>1&&t.reportDiagnostic(xc(V?p.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:p.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,D===""?".":D,M));for(const _e of oe){const X=R(_e);for(const H of X)if(Qh(H,N,!fL(t))){const Q=N.slice(H.length+1),ne=Ii(_e,Q),ue=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const fe of ue)if(Hc(ne,fe)){const G=x_e(ne);for(const Ne of G){if(!g$(e,Ne))continue;const De=iw(ne,Ne,fe,!fL(t));if(t.host.fileExists(De))return rf(lT(o,d$(e,De,!1,t)))}}}}}return;function R(Z){var oe,_e;const X=t.compilerOptions.configFile?((_e=(oe=t.host).getCurrentDirectory)==null?void 0:_e.call(oe))||"":Z,H=[];return t.compilerOptions.declarationDir&&H.push(x(k(X,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(x(k(X,t.compilerOptions.outDir))),H}}}}function WA(e,t){if(e.indexOf("types")===-1||!ns(t,"types@"))return!1;const r=U7.tryParse(t.substring(6));return r?r.test(L0):!1}function Xde(e,t,r,i,a,o){return Qde(e,t,r,i,!1,a,o)}function APe(e,t,r){return Qde(4,e,t,r,!0,void 0,void 0)}function Qde(e,t,r,i,a,o,l){const u=i.features===0?void 0:i.features&32?99:1,f=e&5,g=e&-6;if(f){y1(i,p.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,jA(f));const y=m(f);if(y)return y}if(g&&!a)return y1(i,p.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,jA(g)),m(g);function m(y){return Vg(zl(r),x=>{if(Jl(x)!=="node_modules"){const k=eme(o,t,u,x,l,i);return k||rf(Yde(y,t,x,i,a,o,l))}})}}function Yde(e,t,r,i,a,o,l){const u=Ii(r,"node_modules"),f=ed(u,i.host);if(!f&&i.traceEnabled&&$i(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!a){const g=Zde(e,t,u,f,i,o,l);if(g)return g}if(e&4){const g=Ii(u,"@types");let m=f;return f&&!ed(g,i.host)&&(i.traceEnabled&&$i(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),m=!1),Zde(4,Kde(t,i),g,m,i,o,l)}}function Zde(e,t,r,i,a,o,l){var M;var u,f;const g=ba(Ii(r,t)),{packageName:m,rest:y}=h$(t),x=Ii(r,m);let k,C=T2(g,!i,a);if(y!==""&&C&&(!(a.features&8)||!oo((M=(u=k=T2(x,!i,a))==null?void 0:u.contents.packageJsonContent)!=null?M:Ve,"exports"))){const V=kS(e,g,!i,a);if(V)return ZF(V);const U=oL(e,g,!i,a,C.contents.packageJsonContent,UA(C,a));return lT(C,U)}const N=(V,U,Y,j)=>{let ee=(y||!(j.features&32))&&kS(V,U,Y,j)||oL(V,U,Y,j,C&&C.contents.packageJsonContent,C&&UA(C,j));return!ee&&C&&(C.contents.packageJsonContent.exports===void 0||C.contents.packageJsonContent.exports===null)&&j.features&32&&(ee=kS(V,Ii(U,"index.js"),Y,j)),lT(C,ee)};if(y!==""&&(C=k!=null?k:T2(x,!i,a)),C&&C.contents.packageJsonContent.exports&&a.features&8)return(f=lL(C,e,Ii(".",y),a,o,l))==null?void 0:f.value;const D=y!==""&&C?UA(C,a):void 0;if(D){a.traceEnabled&&$i(a.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,D.version,L0,y);const V=i&&ed(x,a.host),U=v$(e,y,x,D.paths,void 0,N,!V,a);if(U)return U.value}return N(e,g,!i,a)}function v$(e,t,r,i,a,o,l,u){a||(a=xO(i));const f=Kq(a,t);if(f){const g=Gs(f)?void 0:voe(f,t),m=Gs(f)?f:yoe(f);return u.traceEnabled&&$i(u.host,p.Module_name_0_matched_pattern_1,t,m),{value:pn(i[m],x=>{const k=g?x.replace("*",g):x,C=ba(Ii(r,k));u.traceEnabled&&$i(u.host,p.Trying_substitution_0_candidate_module_location_Colon_1,x,k);const N=ig(x);if(N!==void 0){const D=VA(C,l,u);if(D!==void 0)return ZF({path:D,ext:N,resolvedUsingTsExtension:void 0})}return o(e,C,l||!ed(Ti(C),u.host),u)})}}}function Kde(e,t){const r=S8(e);return t.traceEnabled&&r!==e&&$i(t.host,p.Scoped_package_detected_looking_in_0,r),r}function _L(e){return`@types/${S8(e)}`}function S8(e){if(ns(e,"@")){const t=e.replace(qo,pL);if(t!==e)return t.slice(1)}return e}function qA(e){const t=IC(e,"@types/");return t!==e?uL(t):e}function uL(e){return Xl(e,pL)?"@"+e.replace(pL,qo):e}function eme(e,t,r,i,a,o){const l=e&&e.getFromNonRelativeNameCache(t,r,i,a);if(l)return o.traceEnabled&&$i(o.host,p.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),o.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function tme(e,t,r,i,a,o){const l=n0(r,i),u=[],f=[],g=Ti(t),m=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:a,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:C=>void m.push(C),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},x=k(5)||k(2|(r.resolveJsonModule?8:0));return Ade(e,x&&x.value,(x==null?void 0:x.value)&&SS(x.value.path),u,f,m,y);function k(C){const N=Mde(C,e,g,p$,y);if(N)return{value:N};if(Al(e)){const D=ba(Ii(g,e));return rf(p$(C,D,!1,y))}else{const D=Vg(g,M=>{const V=eme(a,e,void 0,M,o,y);if(V)return V;const U=ba(Ii(M,e));return rf(p$(C,U,!1,y))});if(D)return D;if(C&5){let M=APe(e,g,y);return C&4&&(M!=null||(M=nme(e,y))),M}}}}function nme(e,t){if(!!t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=Ode(r,e,t),a=ed(r,t.host);!a&&t.traceEnabled&&$i(t.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const o=kS(4,i,!a,t);if(o){const u=zA(o.path),f=u?T2(u,!1,t):void 0;return rf(lT(f,o))}const l=m$(4,i,!a,t);if(l)return rf(l)}}function g4(e,t){return!!e.allowImportingTsExtensions||t&&ou(t)}function rme(e,t,r,i,a,o){const l=n0(r,i);l&&$i(i,p.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,a);const u=[],f=[],g=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:x=>void g.push(x),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},y=Yde(4,e,a,m,!1,void 0,void 0);return Nde(y,!0,u,f,g,m.resultFromCache)}function rf(e){return e!==void 0?{value:e}:void 0}function y1(e,t,...r){e.traceEnabled&&$i(e.host,t,...r)}function fL(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var b$,ime,T$,ah,pL,NPe=Rt({"src/compiler/moduleNameResolver.ts"(){Ls(),ime=Ii("node_modules","@types"),T$=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(T$||{}),ah="/node_modules/",pL="__"}});function r0(e,t){return e.body&&!e.body.parent&&(Ta(e.body,e),_1(e.body,!1)),e.body?x$(e.body,t):1}function x$(e,t=new Map){const r=Ra(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=PPe(e,t);return t.set(r,i),i}function PPe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(e2(e))return 2;break;case 272:case 271:if(!Lr(e,1))return 0;break;case 278:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(const a of r.exportClause.elements){const o=IPe(a,t);if(o>i&&(i=o),i===1)return i}return i}break;case 268:{let i=0;return bs(e,a=>{const o=x$(a,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:E.assertNever(o)}}),i}case 267:return r0(e,t);case 80:if(e.flags&4096)return 0}return 1}function IPe(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(vs(i)||Jd(i)||Bi(i)){const a=i.statements;let o;for(const l of a)if(hw(l,r)){l.parent||(Ta(l,i),_1(l,!1));const u=x$(l,t);if((o===void 0||u>o)&&(o=u),o===1)return o;l.kind===271&&(o=1)}if(o!==void 0)return o}i=i.parent}return 1}function uT(e){return E.attachFlowNodeDebugInfo(e),e}function sme(e,t){var r,i;go("beforeBind"),(r=Dd)==null||r.logStartBindFile(""+e.fileName),ome(e,t),(i=Dd)==null||i.logStopBindFile(),go("afterBind"),Gu("Bind","beforeBind","afterBind")}function OPe(){var e,t,r,i,a,o,l,u,f,g,m,y,x,k,C,N,D,M,V,U,Y,j,ee=!1,R=0,Z,oe,_e={flags:1},X={flags:1},H=z();return ne;function Q(J,Be,...At){return Yf(Rn(J)||e,J,Be,...At)}function ne(J,Be){var At,Jn;e=J,t=Be,r=Ia(t),j=ue(e,Be),oe=new Set,R=0,Z=Ol.getSymbolConstructor(),E.attachFlowNodeDebugInfo(_e),E.attachFlowNodeDebugInfo(X),e.locals||((At=li)==null||At.push(li.Phase.Bind,"bindSourceFile",{path:e.path},!0),Re(e),(Jn=li)==null||Jn.pop(),e.symbolCount=R,e.classifiableNames=oe,Pc()),e=void 0,t=void 0,r=void 0,i=void 0,a=void 0,o=void 0,l=void 0,u=void 0,f=void 0,g=!1,m=void 0,y=void 0,x=void 0,k=void 0,C=void 0,N=void 0,D=void 0,V=void 0,U=!1,ee=!1,Y=0}function ue(J,Be){return rp(Be,"alwaysStrict")&&!J.isDeclarationFile?!0:!!J.externalModuleIndicator}function fe(J,Be){return R++,new Z(J,Be)}function G(J,Be,At){J.flags|=At,Be.symbol=J,J.declarations=jg(J.declarations,Be),At&1955&&!J.exports&&(J.exports=Vs()),At&6240&&!J.members&&(J.members=Vs()),J.constEnumOnlyModule&&J.flags&304&&(J.constEnumOnlyModule=!1),At&111551&&Kw(J,Be)}function Ne(J){if(J.kind===277)return J.isExportEquals?"export=":"default";const Be=os(J);if(Be){if(__(J)){const At=Cp(Be);return Id(J)?"__global":`"${At}"`}if(Be.kind===167){const At=Be.expression;if(Of(At))return Ho(At.text);if(Q9(At))return ia(At.operator)+At.operand.text;E.fail("Only computed properties with literal names have declaration names")}if(Ei(Be)){const At=Pl(J);if(!At)return;const Jn=At.symbol;return uD(Jn,Be.escapedText)}return sd(Be)?Kx(Be):Fd(Be)?d3(Be):void 0}switch(J.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(uc(J)===2)return"export=";E.fail("Unknown binary declaration kind");break;case 324:return k6(J)?"__new":"__call";case 169:return E.assert(J.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${E.formatSyntaxKind(J.parent.kind)}, expected JSDocFunctionType`),"arg"+J.parent.parameters.indexOf(J)}}function De(J){return A_(J)?no(J.name):Oi(E.checkDefined(Ne(J)))}function Xe(J,Be,At,Jn,xs,mi,is){E.assert(is||!X0(At));const Ss=Lr(At,1024)||p_(At)&&At.name.escapedText==="default",Lo=is?"__computed":Ss&&Be?"default":Ne(At);let sa;if(Lo===void 0)sa=fe(0,"__missing");else if(sa=J.get(Lo),Jn&2885600&&oe.add(Lo),!sa)J.set(Lo,sa=fe(0,Lo)),mi&&(sa.isReplaceableByMethod=!0);else{if(mi&&!sa.isReplaceableByMethod)return sa;if(sa.flags&xs){if(sa.isReplaceableByMethod)J.set(Lo,sa=fe(0,Lo));else if(!(Jn&3&&sa.flags&67108864)){A_(At)&&Ta(At.name,At);let xl=sa.flags&2?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,cf=!0;(sa.flags&384||Jn&384)&&(xl=p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,cf=!1);let y_=!1;Nn(sa.declarations)&&(Ss||sa.declarations&&sa.declarations.length&&At.kind===277&&!At.isExportEquals)&&(xl=p.A_module_cannot_have_multiple_default_exports,cf=!1,y_=!0);const fd=[];Dp(At)&&_c(At.type)&&Lr(At,1)&&sa.flags&2887656&&fd.push(Q(At,p.Did_you_mean_0,`export type { ${Oi(At.name.escapedText)} }`));const Hd=os(At)||At;pn(sa.declarations,(Ee,je)=>{const Ye=os(Ee)||Ee,Mt=cf?Q(Ye,xl,De(Ee)):Q(Ye,xl);e.bindDiagnostics.push(y_?ua(Mt,Q(Hd,je===0?p.Another_export_default_is_here:p.and_here)):Mt),y_&&fd.push(Q(Ye,p.The_first_export_default_is_here))});const Lp=cf?Q(Hd,xl,De(At)):Q(Hd,xl);e.bindDiagnostics.push(ua(Lp,...fd)),sa=fe(0,Lo)}}}return G(sa,At,Jn),sa.parent?E.assert(sa.parent===Be,"Existing symbol parent should match new one"):sa.parent=Be,sa}function ve(J,Be,At){const Jn=!!(Hv(J)&1)||be(J);if(Be&2097152)return J.kind===281||J.kind===271&&Jn?Xe(a.symbol.exports,a.symbol,J,Be,At):(E.assertNode(a,fm),Xe(a.locals,void 0,J,Be,At));if(Kf(J)&&E.assert(Kn(J)),!__(J)&&(Jn||a.flags&128)){if(!fm(a)||!a.locals||Lr(J,1024)&&!Ne(J))return Xe(a.symbol.exports,a.symbol,J,Be,At);const xs=Be&111551?1048576:0,mi=Xe(a.locals,void 0,J,xs,At);return mi.exportSymbol=Xe(a.symbol.exports,a.symbol,J,Be,At),J.localSymbol=mi,mi}else return E.assertNode(a,fm),Xe(a.locals,void 0,J,Be,At)}function be(J){if(J.parent&&Ac(J)&&(J=J.parent),!Kf(J))return!1;if(!uA(J)&&!!J.fullName)return!0;const Be=os(J);return Be?!!(SD(Be.parent)&&Xt(Be.parent)||l_(Be.parent)&&Hv(Be.parent)&1):!1}function xe(J,Be){const At=a,Jn=o,xs=l;if(Be&1?(J.kind!==219&&(o=a),a=l=J,Be&32&&(a.locals=Vs(),ea(a))):Be&2&&(l=J,Be&32&&(l.locals=void 0)),Be&4){const mi=m,is=y,Ss=x,Lo=k,sa=D,xl=V,cf=U,y_=Be&16&&!Lr(J,512)&&!J.asteriskToken&&!!jb(J)||J.kind===175;y_||(m=uT({flags:2}),Be&144&&(m.node=J)),k=y_||J.kind===176||Kn(J)&&(J.kind===262||J.kind===218)?bt():void 0,D=void 0,y=void 0,x=void 0,V=void 0,U=!1,Pe(J),J.flags&=-5633,!(m.flags&1)&&Be&8&&Qf(J.body)&&(J.flags|=512,U&&(J.flags|=1024),J.endFlowNode=m),J.kind===312&&(J.flags|=Y,J.endFlowNode=m),k&&(er(k,m),m=pt(k),(J.kind===176||J.kind===175||Kn(J)&&(J.kind===262||J.kind===218))&&(J.returnFlowNode=m)),y_||(m=mi),y=is,x=Ss,k=Lo,D=sa,V=xl,U=cf}else Be&64?(g=!1,Pe(J),E.assertNotNode(J,we),J.flags=g?J.flags|256:J.flags&-257):Pe(J);a=At,o=Jn,l=xs}function rt(J){ct(J,Be=>Be.kind===262?Re(Be):void 0),ct(J,Be=>Be.kind!==262?Re(Be):void 0)}function ct(J,Be=Re){J!==void 0&&pn(J,Be)}function pe(J){bs(J,Re,ct)}function Pe(J){const Be=ee;if(ee=!1,qd(J)){pe(J),xt(J),ee=Be;return}switch(J.kind>=243&&J.kind<=259&&!t.allowUnreachableCode&&(J.flowNode=m),J.kind){case 247:Gt(J);break;case 246:Sn(J);break;case 248:Gr(J);break;case 249:case 250:Er(J);break;case 245:ze(J);break;case 253:case 257:ut(J);break;case 252:case 251:Vt(J);break;case 258:ae(J);break;case 255:Me(J);break;case 269:ke(J);break;case 296:ft(J);break;case 244:K(J);break;case 256:Ae(J);break;case 224:Fn(J);break;case 225:Nt(J);break;case 226:if(Z0(J)){ee=Be,hi(J);return}H(J);break;case 220:B(J);break;case 227:le(J);break;case 260:ge(J);break;case 211:case 212:jn(J);break;case 213:oi(J);break;case 235:ar(J);break;case 353:case 345:case 347:We(J);break;case 312:{rt(J.statements),Re(J.endOfFileToken);break}case 241:case 268:rt(J.statements);break;case 208:F(J);break;case 169:ye(J);break;case 210:case 209:case 303:case 230:ee=Be;default:pe(J);break}xt(J),ee=Be}function Ge(J){switch(J.kind){case 80:case 81:case 110:case 211:case 212:return mt(J);case 213:return Je(J);case 217:case 235:return Ge(J.expression);case 226:return Jt(J);case 224:return J.operator===54&&Ge(J.operand);case 221:return Ge(J.expression)}return!1}function tt(J){return S3(J)||(kr(J)||dS(J)||yu(J))&&tt(J.expression)||rr(J)&&J.operatorToken.kind===28&&tt(J.right)||No(J)&&(Of(J.argumentExpression)||Tc(J.argumentExpression))&&tt(J.expression)||Kl(J)&&tt(J.left)}function mt(J){return tt(J)||c_(J)&&mt(J.expression)}function Je(J){if(J.arguments){for(const Be of J.arguments)if(mt(Be))return!0}return!!(J.expression.kind===211&&mt(J.expression.expression))}function ot(J,Be){return K6(J)&&Pt(J.expression)&&Qa(Be)}function Jt(J){switch(J.operatorToken.kind){case 64:case 76:case 77:case 78:return mt(J.left);case 35:case 36:case 37:case 38:return Pt(J.left)||Pt(J.right)||ot(J.right,J.left)||ot(J.left,J.right);case 104:return Pt(J.left);case 103:return Ge(J.right);case 28:return Ge(J.right)}return!1}function Pt(J){switch(J.kind){case 217:return Pt(J.expression);case 226:switch(J.operatorToken.kind){case 64:return Pt(J.left);case 28:return Pt(J.right)}}return mt(J)}function bt(){return uT({flags:4,antecedents:void 0})}function _r(){return uT({flags:8,antecedents:void 0})}function xn(J,Be,At){return uT({flags:1024,target:J,antecedents:Be,antecedent:At})}function Bt(J){J.flags|=J.flags&2048?4096:2048}function er(J,Be){!(Be.flags&1)&&!ys(J.antecedents,Be)&&((J.antecedents||(J.antecedents=[])).push(Be),Bt(Be))}function xr(J,Be,At){return Be.flags&1?Be:At?(At.kind===112&&J&64||At.kind===97&&J&32)&&!t9(At)&&!tW(At.parent)?_e:Ge(At)?(Bt(Be),uT({flags:J,antecedent:Be,node:At})):Be:J&32?Be:_e}function pi(J,Be,At,Jn){return Bt(J),uT({flags:128,antecedent:J,switchStatement:Be,clauseStart:At,clauseEnd:Jn})}function ki(J,Be,At){Bt(Be);const Jn=uT({flags:J,antecedent:Be,node:At});return D&&er(D,Jn),Jn}function Nr(J,Be){return Bt(J),uT({flags:512,antecedent:J,node:Be})}function pt(J){const Be=J.antecedents;return Be?Be.length===1?Be[0]:J:_e}function ur(J){const Be=J.parent;switch(Be.kind){case 245:case 247:case 246:return Be.expression===J;case 248:case 227:return Be.condition===J}return!1}function hn(J){for(;;)if(J.kind===217)J=J.expression;else if(J.kind===224&&J.operator===54)J=J.operand;else return TD(J)}function Ct(J){return Nq(lo(J))}function cn(J){for(;yu(J.parent)||Ny(J.parent)&&J.parent.operator===54;)J=J.parent;return!ur(J)&&!hn(J.parent)&&!(c_(J.parent)&&J.parent.expression===J)}function Pn(J,Be,At,Jn){const xs=C,mi=N;C=At,N=Jn,J(Be),C=xs,N=mi}function Sr(J,Be,At){Pn(Re,J,Be,At),(!J||!Ct(J)&&!hn(J)&&!(c_(J)&&GC(J)))&&(er(Be,xr(32,m,J)),er(At,xr(64,m,J)))}function wi(J,Be,At){const Jn=y,xs=x;y=Be,x=At,Re(J),y=Jn,x=xs}function Yt(J,Be){let At=V;for(;At&&J.parent.kind===256;)At.continueTarget=Be,At=At.next,J=J.parent;return Be}function Gt(J){const Be=Yt(J,_r()),At=bt(),Jn=bt();er(Be,m),m=Be,Sr(J.expression,At,Jn),m=pt(At),wi(J.statement,Jn,Be),er(Be,m),m=pt(Jn)}function Sn(J){const Be=_r(),At=Yt(J,bt()),Jn=bt();er(Be,m),m=Be,wi(J.statement,Jn,At),er(At,m),m=pt(At),Sr(J.expression,Be,Jn),m=pt(Jn)}function Gr(J){const Be=Yt(J,_r()),At=bt(),Jn=bt();Re(J.initializer),er(Be,m),m=Be,Sr(J.condition,At,Jn),m=pt(At),wi(J.statement,Jn,Be),Re(J.incrementor),er(Be,m),m=pt(Jn)}function Er(J){const Be=Yt(J,_r()),At=bt();Re(J.expression),er(Be,m),m=Be,J.kind===250&&Re(J.awaitModifier),er(At,m),Re(J.initializer),J.initializer.kind!==261&&_t(J.initializer),wi(J.statement,At,Be),er(Be,m),m=pt(At)}function ze(J){const Be=bt(),At=bt(),Jn=bt();Sr(J.expression,Be,At),m=pt(Be),Re(J.thenStatement),er(Jn,m),m=pt(At),Re(J.elseStatement),er(Jn,m),m=pt(Jn)}function ut(J){Re(J.expression),J.kind===253&&(U=!0,k&&er(k,m)),m=_e}function kt(J){for(let Be=V;Be;Be=Be.next)if(Be.name===J)return Be}function it(J,Be,At){const Jn=J.kind===252?Be:At;Jn&&(er(Jn,m),m=_e)}function Vt(J){if(Re(J.label),J.label){const Be=kt(J.label.escapedText);Be&&(Be.referenced=!0,it(J,Be.breakTarget,Be.continueTarget))}else it(J,y,x)}function ae(J){const Be=k,At=D,Jn=bt(),xs=bt();let mi=bt();if(J.finallyBlock&&(k=xs),er(mi,m),D=mi,Re(J.tryBlock),er(Jn,m),J.catchClause&&(m=pt(mi),mi=bt(),er(mi,m),D=mi,Re(J.catchClause),er(Jn,m)),k=Be,D=At,J.finallyBlock){const is=bt();is.antecedents=es(es(Jn.antecedents,mi.antecedents),xs.antecedents),m=is,Re(J.finallyBlock),m.flags&1?m=_e:(k&&xs.antecedents&&er(k,xn(is,xs.antecedents,m)),D&&mi.antecedents&&er(D,xn(is,mi.antecedents,m)),m=Jn.antecedents?xn(is,Jn.antecedents,m):_e)}else m=pt(Jn)}function Me(J){const Be=bt();Re(J.expression);const At=y,Jn=M;y=Be,M=m,Re(J.caseBlock),er(Be,m);const xs=pn(J.caseBlock.clauses,mi=>mi.kind===297);J.possiblyExhaustive=!xs&&!Be.antecedents,xs||er(Be,pi(M,J,0,0)),y=At,M=Jn,m=pt(Be)}function ke(J){const Be=J.clauses,At=Ge(J.parent.expression);let Jn=_e;for(let xs=0;xsYc(At)||fc(At))}function Ms(J){J.flags&33554432&&!cs(J)?J.flags|=128:J.flags&=-129}function di(J){if(Ms(J),__(J))if(Lr(J,1)&&vo(J,p.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),IW(J))ln(J);else{let Be;if(J.name.kind===11){const{text:Jn}=J.name;Be=B6(Jn),Be===void 0&&vo(J.name,p.Pattern_0_can_have_at_most_one_Asterisk_character,Jn)}const At=gs(J,512,110735);e.patternAmbientModules=dn(e.patternAmbientModules,Be&&!Gs(Be)?{pattern:Be,symbol:At}:void 0)}else{const Be=ln(J);if(Be!==0){const{symbol:At}=J;At.constEnumOnlyModule=!(At.flags&304)&&Be===2&&At.constEnumOnlyModule!==!1}}}function ln(J){const Be=r0(J),At=Be!==0;return gs(J,At?512:1024,At?110735:0),Be}function tc(J){const Be=fe(131072,Ne(J));G(Be,J,131072);const At=fe(2048,"__type");G(At,J,2048),At.members=Vs(),At.members.set(Be.escapedName,Be)}function qi(J){return ro(J,4096,"__object")}function Es(J){return ro(J,4096,"__jsxAttributes")}function Ea(J,Be,At){return gs(J,Be,At)}function ro(J,Be,At){const Jn=fe(Be,At);return Be&106508&&(Jn.parent=a.symbol),G(Jn,J,Be),Jn}function za(J,Be,At){switch(l.kind){case 267:ve(J,Be,At);break;case 312:if(Yu(a)){ve(J,Be,At);break}default:E.assertNode(l,fm),l.locals||(l.locals=Vs(),ea(l)),Xe(l.locals,void 0,J,Be,At)}}function Pc(){if(!f)return;const J=a,Be=u,At=l,Jn=i,xs=m;for(const mi of f){const is=mi.parent.parent;a=jW(is)||e,l=mm(is)||e,m=uT({flags:2}),i=mi,Re(mi.typeExpression);const Ss=os(mi);if((uA(mi)||!mi.fullName)&&Ss&&SD(Ss.parent)){const Lo=Xt(Ss.parent);if(Lo){gt(e.symbol,Ss.parent,Lo,!!In(Ss,xl=>kr(xl)&&xl.name.escapedText==="prototype"),!1);const sa=a;switch(Yw(Ss.parent)){case 1:case 2:Yu(e)?a=e:a=void 0;break;case 4:a=Ss.parent.expression;break;case 3:a=Ss.parent.expression.name;break;case 5:a=x2(e,Ss.parent.expression)?e:kr(Ss.parent.expression)?Ss.parent.expression.name:Ss.parent.expression;break;case 0:return E.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}a&&ve(mi,524288,788968),a=sa}}else uA(mi)||!mi.fullName||mi.fullName.kind===80?(i=mi.parent,za(mi,524288,788968)):Re(mi.fullName)}a=J,u=Be,l=At,i=Jn,m=xs}function ls(J){if(!e.parseDiagnostics.length&&!(J.flags&33554432)&&!(J.flags&16777216)&&!p_e(J)){const Be=py(J);if(Be===void 0)return;j&&Be>=119&&Be<=127?e.bindDiagnostics.push(Q(J,Li(J),no(J))):Be===135?zc(e)&&O9(J)?e.bindDiagnostics.push(Q(J,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,no(J))):J.flags&65536&&e.bindDiagnostics.push(Q(J,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,no(J))):Be===127&&J.flags&16384&&e.bindDiagnostics.push(Q(J,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,no(J)))}}function Li(J){return Pl(J)?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:p.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Vc(J){J.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(Q(J,p.constructor_is_a_reserved_word,no(J))))}function zo(J){j&&du(J.left)&&Y0(J.operatorToken.kind)&&Rs(J,J.left)}function L_(J){j&&J.variableDeclaration&&Rs(J,J.variableDeclaration.name)}function _l(J){if(j&&J.expression.kind===80){const Be=Kv(e,J.expression);e.bindDiagnostics.push(vl(e,Be.start,Be.length,p.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Bf(J){return we(J)&&(J.escapedText==="eval"||J.escapedText==="arguments")}function Rs(J,Be){if(Be&&Be.kind===80){const At=Be;if(Bf(At)){const Jn=Kv(e,Be);e.bindDiagnostics.push(vl(e,Jn.start,Jn.length,po(J),lr(At)))}}}function po(J){return Pl(J)?p.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?p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:p.Invalid_use_of_0_in_strict_mode}function Ba(J){j&&Rs(J,J.name)}function Fa(J){return Pl(J)?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Wt(J){if(r<2&&l.kind!==312&&l.kind!==267&&!r6(l)){const Be=Kv(e,J);e.bindDiagnostics.push(vl(e,Be.start,Be.length,Fa(J)))}}function pc(J){j&&Rs(J,J.operand)}function h_(J){j&&(J.operator===46||J.operator===47)&&Rs(J,J.operand)}function M_(J){j&&vo(J,p.with_statements_are_not_allowed_in_strict_mode)}function q_(J){j&&Ia(t)>=2&&(lle(J.statement)||ic(J.statement))&&vo(J.label,p.A_label_is_not_allowed_here)}function vo(J,Be,...At){const Jn=gm(e,J.pos);e.bindDiagnostics.push(vl(e,Jn.start,Jn.length,Be,...At))}function $o(J,Be,At){A(J,Be,Be,At)}function A(J,Be,At,Jn){Ce(J,{pos:Rb(Be,e),end:At.end},Jn)}function Ce(J,Be,At){const Jn=vl(e,Be.pos,Be.end-Be.pos,At);J?e.bindDiagnostics.push(Jn):e.bindSuggestionDiagnostics=dn(e.bindSuggestionDiagnostics,{...Jn,category:2})}function Re(J){if(!J)return;Ta(J,i),li&&(J.tracingPath=e.path);const Be=j;if(En(J),J.kind>165){const At=i;i=J;const Jn=S$(J);Jn===0?Pe(J):xe(J,Jn),i=At}else{const At=i;J.kind===1&&(i=J),xt(J),i=At}j=Be}function xt(J){if(Qu(J))if(Kn(J))for(const Be of J.jsDoc)Re(Be);else for(const Be of J.jsDoc)Ta(Be,J),_1(Be,!1)}function yn(J){if(!j)for(const Be of J){if(!Sp(Be))return;if(Pr(Be)){j=!0;return}}}function Pr(J){const Be=Yv(e,J.expression);return Be==='"use strict"'||Be==="'use strict'"}function En(J){switch(J.kind){case 80:if(J.flags&4096){let is=J.parent;for(;is&&!Kf(is);)is=is.parent;za(is,524288,788968);break}case 110:return m&&(nt(J)||i.kind===304)&&(J.flowNode=m),ls(J);case 166:m&&B9(J)&&(J.flowNode=m);break;case 236:case 108:J.flowNode=m;break;case 81:return Vc(J);case 211:case 212:const Be=J;m&&tt(Be)&&(Be.flowNode=m),n_e(Be)&&vn(Be),Kn(Be)&&e.commonJsModuleIndicator&&eg(Be)&&!HA(l,"module")&&Xe(e.locals,void 0,Be.expression,134217729,111550);break;case 226:switch(uc(J)){case 1:H_(J);break;case 2:Uc(J);break;case 3:Wa(J.left,J);break;case 6:ji(J);break;case 4:Tu(J);break;case 5:const is=J.left.expression;if(Kn(J)&&we(is)){const Ss=HA(l,is.escapedText);if(F9(Ss==null?void 0:Ss.valueDeclaration)){Tu(J);break}}se(J);break;case 0:break;default:E.fail("Unknown binary expression special property assignment kind")}return zo(J);case 299:return L_(J);case 220:return _l(J);case 225:return pc(J);case 224:return h_(J);case 254:return M_(J);case 256:return q_(J);case 197:g=!0;return;case 182:break;case 168:return ud(J);case 169:return Oc(J);case 260:return Zc(J);case 208:return J.flowNode=m,Zc(J);case 172:case 171:return gr(J);case 303:case 304:return sl(J,4,0);case 306:return sl(J,8,900095);case 179:case 180:case 181:return gs(J,131072,0);case 174:case 173:return sl(J,8192|(J.questionToken?16777216:0),kp(J)?0:103359);case 262:return il(J);case 176:return gs(J,16384,0);case 177:return sl(J,32768,46015);case 178:return sl(J,65536,78783);case 184:case 324:case 330:case 185:return tc(J);case 187:case 329:case 200:return ci(J);case 339:return Tt(J);case 210:return qi(J);case 218:case 219:return Ml(J);case 213:switch(uc(J)){case 7:return oc(J);case 8:return nc(J);case 9:return ws(J);case 0:break;default:return E.fail("Unknown call expression assignment declaration kind")}Kn(J)&&va(J);break;case 231:case 263:return j=!0,Fo(J);case 264:return za(J,64,788872);case 265:return za(J,524288,788968);case 266:return Ro(J);case 267:return di(J);case 292:return Es(J);case 291:return Ea(J,4,0);case 271:case 274:case 276:case 281:return gs(J,2097152,2097152);case 270:return ac(J);case 273:return dc(J);case 278:return Ic(J);case 277:return io(J);case 312:return yn(J.statements),Vr();case 241:if(!r6(J.parent))return;case 268:return yn(J.statements);case 348:if(J.parent.kind===330)return Oc(J);if(J.parent.kind!==329)break;case 355:const xs=J,mi=xs.isBracketed||xs.typeExpression&&xs.typeExpression.type.kind===323?16777220:4;return gs(xs,mi,0);case 353:case 345:case 347:return(f||(f=[])).push(J);case 346:return Re(J.typeExpression)}}function gr(J){const Be=nu(J),At=Be?98304:4,Jn=Be?13247:0;return sl(J,At|(J.questionToken?16777216:0),Jn)}function ci(J){return ro(J,2048,"__type")}function Vr(){if(Ms(e),zc(e))La();else if(Zf(e)){La();const J=e.symbol;Xe(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=J}}function La(){ro(e,512,`"${gu(e.fileName)}"`)}function io(J){if(!a.symbol||!a.symbol.exports)ro(J,111551,Ne(J));else{const Be=E6(J)?2097152:4,At=Xe(a.symbol.exports,a.symbol,J,Be,67108863);J.isExportEquals&&Kw(At,J)}}function ac(J){dt(J.modifiers)&&e.bindDiagnostics.push(Q(J,p.Modifiers_cannot_appear_here));const Be=Bi(J.parent)?zc(J.parent)?J.parent.isDeclarationFile?void 0:p.Global_module_exports_may_only_appear_in_declaration_files:p.Global_module_exports_may_only_appear_in_module_files:p.Global_module_exports_may_only_appear_at_top_level;Be?e.bindDiagnostics.push(Q(J,Be)):(e.symbol.globalExports=e.symbol.globalExports||Vs(),Xe(e.symbol.globalExports,e.symbol,J,2097152,2097152))}function Ic(J){!a.symbol||!a.symbol.exports?ro(J,8388608,Ne(J)):J.exportClause?lg(J.exportClause)&&(Ta(J.exportClause,J),Xe(a.symbol.exports,a.symbol,J.exportClause,2097152,2097152)):Xe(a.symbol.exports,a.symbol,J,8388608,0)}function dc(J){J.name&&gs(J,2097152,2097152)}function Ka(J){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=J,e.externalModuleIndicator||La()),!0)}function nc(J){if(!Ka(J))return;const Be=hs(J.arguments[0],void 0,(At,Jn)=>(Jn&&G(Jn,At,67110400),Jn));Be&&Xe(Be.exports,Be,J,1048580,0)}function H_(J){if(!Ka(J))return;const Be=hs(J.left.expression,void 0,(At,Jn)=>(Jn&&G(Jn,At,67110400),Jn));if(Be){const Jn=lD(J.right)&&(Jb(J.left.expression)||eg(J.left.expression))?2097152:1048580;Ta(J.left,J),Xe(Be.exports,Be,J.left,Jn,0)}}function Uc(J){if(!Ka(J))return;const Be=$w(J.right);if(Oq(Be)||a===e&&x2(e,Be))return;if(ha(Be)&&Xi(Be.properties,nf)){pn(Be.properties,Vo);return}const At=E6(J)?2097152:1049092,Jn=Xe(e.symbol.exports,e.symbol,J,At|67108864,0);Kw(Jn,J)}function Vo(J){Xe(e.symbol.exports,e.symbol,J,69206016,0)}function Tu(J){if(E.assert(Kn(J)),rr(J)&&kr(J.left)&&Ei(J.left.name)||kr(J)&&Ei(J.name))return;const At=ru(J,!1,!1);switch(At.kind){case 262:case 218:let Jn=At.symbol;if(rr(At.parent)&&At.parent.operatorToken.kind===64){const is=At.parent.left;zb(is)&&Sy(is.expression)&&(Jn=_i(is.expression.expression,o))}Jn&&Jn.valueDeclaration&&(Jn.members=Jn.members||Vs(),X0(J)?he(J,Jn,Jn.members):Xe(Jn.members,Jn,J,67108868,0),G(Jn,Jn.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const xs=At.parent,mi=Os(At)?xs.symbol.exports:xs.symbol.members;X0(J)?he(J,xs.symbol,mi):Xe(mi,xs.symbol,J,67108868,0,!0);break;case 312:if(X0(J))break;At.commonJsModuleIndicator?Xe(At.symbol.exports,At.symbol,J,1048580,0):gs(J,1,111550);break;case 267:break;default:E.failBadSyntaxKind(At)}}function he(J,Be,At){Xe(At,Be,J,4,0,!0,!0),vt(J,Be)}function vt(J,Be){Be&&(Be.assignmentDeclarationMembers||(Be.assignmentDeclarationMembers=new Map)).set(Ra(J),J)}function vn(J){J.expression.kind===110?Tu(J):zb(J)&&J.parent.parent.kind===312&&(Sy(J.expression)?Wa(J,J.parent):qe(J))}function ji(J){Ta(J.left,J),Ta(J.right,J),On(J.left.expression,J.left,!1,!0)}function ws(J){const Be=_i(J.arguments[0].expression);Be&&Be.valueDeclaration&&G(Be,Be.valueDeclaration,32),Et(J,Be,!0)}function Wa(J,Be){const At=J.expression,Jn=At.expression;Ta(Jn,At),Ta(At,J),Ta(J,Be),On(Jn,J,!0,!0)}function oc(J){let Be=_i(J.arguments[0]);const At=J.parent.parent.kind===312;Be=gt(Be,J.arguments[0],At,!1,!1),Et(J,Be,!1)}function se(J){var Be;const At=_i(J.left.expression,a)||_i(J.left.expression,l);if(!Kn(J)&&!r_e(At))return;const Jn=N3(J.left);if(!(we(Jn)&&((Be=HA(a,Jn.escapedText))==null?void 0:Be.flags)&2097152))if(Ta(J.left,J),Ta(J.right,J),we(J.left.expression)&&a===e&&x2(e,J.left.expression))H_(J);else if(X0(J)){ro(J,67108868,"__computed");const xs=gt(At,J.left.expression,Xt(J.left),!1,!1);vt(J,xs)}else qe(Bs(J.left,Bx))}function qe(J){E.assert(!we(J)),Ta(J.expression,J),On(J.expression,J,!1,!1)}function gt(J,Be,At,Jn,xs){return(J==null?void 0:J.flags)&2097152||(At&&!Jn&&(J=hs(Be,J,(Ss,Lo,sa)=>{if(Lo)return G(Lo,Ss,67110400),Lo;{const xl=sa?sa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vs());return Xe(xl,sa,Ss,67110400,110735)}})),xs&&J&&J.valueDeclaration&&G(J,J.valueDeclaration,32)),J}function Et(J,Be,At){if(!Be||!Cr(Be))return;const Jn=At?Be.members||(Be.members=Vs()):Be.exports||(Be.exports=Vs());let xs=0,mi=0;Eo(Mx(J))?(xs=8192,mi=103359):Js(J)&&Rx(J)&&(dt(J.arguments[2].properties,is=>{const Ss=os(is);return!!Ss&&we(Ss)&&lr(Ss)==="set"})&&(xs|=65540,mi|=78783),dt(J.arguments[2].properties,is=>{const Ss=os(is);return!!Ss&&we(Ss)&&lr(Ss)==="get"})&&(xs|=32772,mi|=46015)),xs===0&&(xs=4,mi=0),Xe(Jn,Be,J,xs|67108864,mi&-67108865)}function Xt(J){return rr(J.parent)?qr(J.parent).parent.kind===312:J.parent.parent.kind===312}function On(J,Be,At,Jn){let xs=_i(J,a)||_i(J,l);const mi=Xt(Be);xs=gt(xs,Be.expression,mi,At,Jn),Et(Be,xs,At)}function Cr(J){if(J.flags&1072)return!0;const Be=J.valueDeclaration;if(Be&&Js(Be))return!!Mx(Be);let At=Be?Ri(Be)?Be.initializer:rr(Be)?Be.right:kr(Be)&&rr(Be.parent)?Be.parent.right:void 0:void 0;if(At=At&&$w(At),At){const Jn=Sy(Ri(Be)?Be.name:rr(Be)?Be.left:Be);return!!vy(rr(At)&&(At.operatorToken.kind===57||At.operatorToken.kind===61)?At.right:At,Jn)}return!1}function qr(J){for(;rr(J.parent);)J=J.parent;return J.parent}function _i(J,Be=a){if(we(J))return HA(Be,J.escapedText);{const At=_i(J.expression);return At&&At.exports&&At.exports.get($g(J))}}function hs(J,Be,At){if(x2(e,J))return e.symbol;if(we(J))return At(J,_i(J),Be);{const Jn=hs(J.expression,Be,At),xs=Qw(J);return Ei(xs)&&E.fail("unexpected PrivateIdentifier"),At(xs,Jn&&Jn.exports&&Jn.exports.get($g(J)),Jn)}}function va(J){!e.commonJsModuleIndicator&&mu(J,!1)&&Ka(J)}function Fo(J){if(J.kind===263)za(J,32,899503);else{const xs=J.name?J.name.escapedText:"__class";ro(J,32,xs),J.name&&oe.add(J.name.escapedText)}const{symbol:Be}=J,At=fe(4194308,"prototype"),Jn=Be.exports.get(At.escapedName);Jn&&(J.name&&Ta(J.name,J),e.bindDiagnostics.push(Q(Jn.declarations[0],p.Duplicate_identifier_0,bc(At)))),Be.exports.set(At.escapedName,At),At.parent=Be}function Ro(J){return e2(J)?za(J,128,899967):za(J,256,899327)}function Zc(J){if(j&&Rs(J,J.name),!Ps(J.name)){const Be=J.kind===260?J:J.parent.parent;Kn(J)&&mO(t)&&r2(Be)&&!dy(J)&&!(Hv(J)&1)?gs(J,2097152,2097152):AW(J)?za(J,2,111551):Ub(J)?gs(J,1,111551):gs(J,1,111550)}}function Oc(J){if(!(J.kind===348&&a.kind!==330)&&(j&&!(J.flags&33554432)&&Rs(J,J.name),Ps(J.name)?ro(J,1,"__"+J.parent.parameters.indexOf(J)):gs(J,1,111551),Du(J,J.parent))){const Be=J.parent.parent;Xe(Be.symbol.members,Be.symbol,J,4|(J.questionToken?16777216:0),0)}}function il(J){!e.isDeclarationFile&&!(J.flags&33554432)&&A6(J)&&(Y|=4096),Ba(J),j?(Wt(J),za(J,16,110991)):gs(J,16,110991)}function Ml(J){!e.isDeclarationFile&&!(J.flags&33554432)&&A6(J)&&(Y|=4096),m&&(J.flowNode=m),Ba(J);const Be=J.name?J.name.escapedText:"__function";return ro(J,16,Be)}function sl(J,Be,At){return!e.isDeclarationFile&&!(J.flags&33554432)&&A6(J)&&(Y|=4096),m&&A9(J)&&(J.flowNode=m),X0(J)?ro(J,Be,"__computed"):gs(J,Be,At)}function ju(J){const Be=In(J,At=>At.parent&&Z6(At.parent)&&At.parent.extendsType===At);return Be&&Be.parent}function ud(J){var Be,At;if(od(J.parent)){const Jn=H9(J.parent);Jn?(E.assertNode(Jn,fm),(Be=Jn.locals)!=null||(Jn.locals=Vs()),Xe(Jn.locals,void 0,J,262144,526824)):gs(J,262144,526824)}else if(J.parent.kind===195){const Jn=ju(J.parent);Jn?(E.assertNode(Jn,fm),(At=Jn.locals)!=null||(Jn.locals=Vs()),Xe(Jn.locals,void 0,J,262144,526824)):ro(J,262144,Ne(J))}else gs(J,262144,526824)}function w1(J){const Be=r0(J);return Be===1||Be===2&&Xb(t)}function qd(J){if(!(m.flags&1))return!1;if(m===_e&&(Dw(J)&&J.kind!==242||J.kind===263||J.kind===267&&w1(J))&&(m=X,!t.allowUnreachableCode)){const At=uue(t)&&!(J.flags&33554432)&&(!ic(J)||!!(W0(J.declarationList)&7)||J.declarationList.declarations.some(Jn=>!!Jn.initializer));FPe(J,(Jn,xs)=>A(At,Jn,xs,p.Unreachable_code_detected))}return!0}}function FPe(e,t){if(Fi(e)&&ame(e)&&vs(e.parent)){const{statements:r}=e.parent,i=eH(r,e);aV(i,ame,(a,o)=>t(i[a],i[o-1]))}else t(e,e)}function ame(e){return!tl(e)&&!LPe(e)&&!Py(e)&&!(ic(e)&&!(W0(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function LPe(e){switch(e.kind){case 264:case 265:return!0;case 267:return r0(e)!==1;case 266:return Lr(e,2048);default:return!1}}function x2(e,t){let r=0;const i=dV();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),Jb(t)||eg(t))return!0;if(we(t)){const a=HA(e,t.escapedText);if(!!a&&!!a.valueDeclaration&&Ri(a.valueDeclaration)&&!!a.valueDeclaration.initializer){const o=a.valueDeclaration.initializer;i.enqueue(o),Kl(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function S$(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(A9(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Cs(e.parent)||ec(e.parent)?0:34}return 0}function HA(e,t){var u;var r,i,a,o;const l=(i=(r=Hr(e,fm))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return(u=l.exportSymbol)!=null?u:l;if(Bi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Pd(e))return(o=(a=e.symbol)==null?void 0:a.exports)==null?void 0:o.get(t)}var k$,C$,ome,MPe=Rt({"src/compiler/binder.ts"(){Ls(),Vv(),k$=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(k$||{}),C$=(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",e))(C$||{}),ome=OPe()}});function cme(e,t,r,i,a,o,l,u,f,g){return m;function m(y=()=>!0){const x=[],k=[];return{walkType:oe=>{try{return C(oe),{visitedTypes:bx(x),visitedSymbols:bx(k)}}finally{Hm(x),Hm(k)}},walkSymbol:oe=>{try{return Z(oe),{visitedTypes:bx(x),visitedSymbols:bx(k)}}finally{Hm(x),Hm(k)}}};function C(oe){if(!(!oe||x[oe.id]||(x[oe.id]=oe,Z(oe.symbol)))){if(oe.flags&524288){const X=oe,H=X.objectFlags;H&4&&N(oe),H&32&&Y(oe),H&3&&ee(oe),H&24&&R(X)}oe.flags&262144&&D(oe),oe.flags&3145728&&M(oe),oe.flags&4194304&&V(oe),oe.flags&8388608&&U(oe)}}function N(oe){C(oe.target),pn(g(oe),C)}function D(oe){C(u(oe))}function M(oe){pn(oe.types,C)}function V(oe){C(oe.type)}function U(oe){C(oe.objectType),C(oe.indexType),C(oe.constraint)}function Y(oe){C(oe.typeParameter),C(oe.constraintType),C(oe.templateType),C(oe.modifiersType)}function j(oe){const _e=t(oe);_e&&C(_e.type),pn(oe.typeParameters,C);for(const X of oe.parameters)Z(X);C(e(oe)),C(r(oe))}function ee(oe){R(oe),pn(oe.typeParameters,C),pn(i(oe),C),C(oe.thisType)}function R(oe){const _e=a(oe);for(const X of _e.indexInfos)C(X.keyType),C(X.type);for(const X of _e.callSignatures)j(X);for(const X of _e.constructSignatures)j(X);for(const X of _e.properties)Z(X)}function Z(oe){if(!oe)return!1;const _e=ya(oe);if(k[_e])return!1;if(k[_e]=oe,!y(oe))return!0;const X=o(oe);return C(X),oe.exports&&oe.exports.forEach(Z),pn(oe.declarations,H=>{if(H.type&&H.type.kind===186){const Q=H.type,ne=l(f(Q.exprName));Z(ne)}}),!1}}}var RPe=Rt({"src/compiler/symbolWalker.ts"(){Ls()}});function dL({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,a){const o=l();return{relativePreference:a!==void 0?Al(a)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{if((u!=null?u:i.impliedNodeFormat)===99)return g4(r,i.fileName)?[3,2]:[2];if(Sc(r)===1)return o===2?[2,1]:[1,2];const f=g4(r,i.fileName);switch(o){case 2:return f?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return f?[1,0,3,2]:[1,0,2];case 0:return f?[0,1,3,2]:[0,1,2];default:E.assertNever(o)}}};function l(){if(a!==void 0){if(_2(a))return 2;if(vc(a,"/index"))return 1}return Zq(t,i.impliedNodeFormat,r,i)}}function BPe(e,t,r,i,a,o,l={}){const u=lme(e,t,r,i,a,dL({},e,t,o),{},l);if(u!==o)return u}function GA(e,t,r,i,a,o={}){return lme(e,t,r,i,a,dL({},e,t),{},o)}function jPe(e,t,r,i,a,o={}){const l=E$(t.path,i),u=hme(t.path,r,i,a,o);return cc(u,f=>w$(f,l,t,i,e,a,!0,o.overrideImportMode))}function lme(e,t,r,i,a,o,l,u={}){const f=E$(r,a),g=hme(r,i,a,l,u);return cc(g,m=>w$(m,f,t,a,e,l,void 0,u.overrideImportMode))||pme(i,f,e,a,u.overrideImportMode||t.impliedNodeFormat,o)}function JPe(e,t,r,i,a={}){return _me(e,t,r,i,a)[0]}function _me(e,t,r,i,a={}){var o;const l=h9(e);if(!l)return Ve;const u=(o=r.getModuleSpecifierCache)==null?void 0:o.call(r),f=u==null?void 0:u.get(t.path,l.path,i,a);return[f==null?void 0:f.moduleSpecifiers,l,f==null?void 0:f.modulePaths,u]}function ume(e,t,r,i,a,o,l={}){return fme(e,t,r,i,a,o,l).moduleSpecifiers}function fme(e,t,r,i,a,o,l={}){let u=!1;const f=VPe(e,t);if(f)return{moduleSpecifiers:[f],computedWithoutCache:u};let[g,m,y,x]=_me(e,i,a,o,l);if(g)return{moduleSpecifiers:g,computedWithoutCache:u};if(!m)return{moduleSpecifiers:Ve,computedWithoutCache:u};u=!0,y||(y=yme(i.path,m.originalFileName,a));const k=zPe(y,r,i,a,o,l);return x==null||x.set(i.path,m.path,o,l,y,k),{moduleSpecifiers:k,computedWithoutCache:u}}function zPe(e,t,r,i,a,o={}){const l=E$(r.path,i),u=dL(a,t,r),f=pn(e,C=>pn(i.getFileIncludeReasons().get(ho(C.path,i.getCurrentDirectory(),l.getCanonicalFileName)),N=>{if(N.kind!==3||N.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==wX(r,N.index))return;const D=XL(r,N.index).text;return u.relativePreference!==1||!$u(D)?D:void 0}));if(f)return[f];const g=dt(e,C=>C.isInNodeModules);let m,y,x,k;for(const C of e){const N=C.isInNodeModules?w$(C,l,r,i,t,a,void 0,o.overrideImportMode):void 0;if(m=dn(m,N),N&&C.isRedirect)return m;if(!N){const D=pme(C.path,l,t,i,o.overrideImportMode||r.impliedNodeFormat,u,C.isRedirect);if(!D)continue;C.isRedirect?x=dn(x,D):FU(D)?y=dn(y,D):(!g||C.isInNodeModules)&&(k=dn(k,D))}}return y!=null&&y.length?y:x!=null&&x.length?x:m!=null&&m.length?m:E.checkDefined(k)}function E$(e,t){const r=Ql(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ti(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i}}function pme(e,t,r,i,a,{getAllowedEndingsInPreferredOrder:o,relativePreference:l},u){const{baseUrl:f,paths:g,rootDirs:m}=r;if(u&&!g)return;const{sourceDirectory:y,getCanonicalFileName:x}=t,k=o(a),C=m&&UPe(m,e,y,x,k,r)||k8(Wv(um(y,e,x)),k,r);if(!f&&!g||l===0)return u?void 0:C;const N=ms(eO(r,i)||f,i.getCurrentDirectory()),D=xme(e,N,x);if(!D)return u?void 0:C;const M=g&&vme(D,g,k,i,r);if(u)return M;const V=M===void 0&&f!==void 0?k8(D,k,r):M;if(!V)return C;if(l===1&&!$u(V))return V;if(l===3&&!$u(V)){const U=r.configFilePath?ho(Ti(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),Y=ho(e,U,x),j=ns(y,U),ee=ns(Y,U);if(j&&!ee||!j&&ee)return V;const R=mme(i,Ti(Y));return mme(i,y)!==R?V:C}return Sme(V)||$A(C)<$A(V)?C:V}function $A(e){let t=0;for(let r=ns(e,"./")?2:0;re.fileExists(Ii(r,"package.json"))?!0:void 0)}function gme(e,t,r,i,a){var o;const l=Q0(r),u=r.getCurrentDirectory(),f=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,g=ho(t,u,l),m=r.redirectTargetsMap.get(g)||Ve,x=[...f?[f]:Ve,t,...m].map(M=>ms(M,u));let k=!Xi(x,V3);if(!i){const M=pn(x,V=>!(k&&V3(V))&&a(V,f===V));if(M)return M}const C=(o=r.getSymlinkCache)==null?void 0:o.call(r).getSymlinkedDirectoriesByRealpath(),N=ms(t,u);return C&&Vg(Ti(N),M=>{const V=C.get(D_(ho(M,u,l)));if(!!V)return RU(e,M,l)?!1:pn(x,U=>{if(!RU(U,M,l))return;const Y=um(M,U,l);for(const j of V){const ee=Xh(j,Y),R=a(ee,U===f);if(k=!0,R)return R}})})||(i?pn(x,M=>k&&V3(M)?void 0:a(M,M===f)):void 0)}function hme(e,t,r,i,a={}){var o;const l=ho(t,r.getCurrentDirectory(),Q0(r)),u=(o=r.getModuleSpecifierCache)==null?void 0:o.call(r);if(u){const g=u.get(e,l,i,a);if(g!=null&&g.modulePaths)return g.modulePaths}const f=yme(e,t,r);return u&&u.setModulePaths(e,l,i,a,f),f}function yme(e,t,r){const i=Q0(r),a=new Map;gme(e,t,r,!0,(l,u)=>{const f=SS(l);a.set(l,{path:i(l),isRedirect:u,isInNodeModules:f})});const o=[];for(let l=Ti(e);a.size!==0;){const u=D_(l);let f;a.forEach(({path:m,isRedirect:y,isInNodeModules:x},k)=>{ns(m,u)&&((f||(f=[])).push({path:k,isRedirect:y,isInNodeModules:x}),a.delete(k))}),f&&(f.length>1&&f.sort(dme),o.push(...f));const g=Ti(l);if(g===l)break;l=g}if(a.size){const l=ra(a.values());l.length>1&&l.sort(dme),o.push(...l)}return o}function VPe(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>PW(l)&&(!Zv(l)||!Al(Cp(l.name))));if(i)return i.name.text;const o=Hi(e.declarations,l=>{var u,f,g,m;if(!Ac(l))return;const y=N(l);if(!(((u=y==null?void 0:y.parent)==null?void 0:u.parent)&&Jd(y.parent)&&__(y.parent.parent)&&Bi(y.parent.parent.parent)))return;const x=(m=(g=(f=y.parent.parent.symbol.exports)==null?void 0:f.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:m.expression;if(!x)return;const k=t.getSymbolAtLocation(x);if(!k)return;if(((k==null?void 0:k.flags)&2097152?t.getAliasedSymbol(k):k)===l.symbol)return y.parent.parent;function N(D){for(;D.flags&8;)D=D.parent;return D}})[0];if(o)return o.name.text}function vme(e,t,r,i,a){for(const l in t)for(const u of t[l]){const f=ba(u),g=f.indexOf("*"),m=r.map(y=>({ending:y,value:k8(e,[y],a)}));if(ig(f)&&m.push({ending:void 0,value:e}),g!==-1){const y=f.substring(0,g),x=f.substring(g+1);for(const{ending:k,value:C}of m)if(C.length>=y.length+x.length&&ns(C,y)&&vc(C,x)&&o({ending:k,value:C})){const N=C.substring(y.length,C.length-x.length);if(!$u(N))return l.replace("*",N)}}else if(dt(m,y=>y.ending!==0&&f===y.value)||dt(m,y=>y.ending===0&&f===y.value&&o(y)))return l}function o({ending:l,value:u}){return l!==0||u===k8(e,[l],a,i)}}function mL(e,t,r,i,a,o,l=0){if(typeof a=="string"){const u=ms(Ii(r,a),void 0),f=R3(t)?gu(t)+gL(t,e):void 0;switch(l){case 0:if(Db(t,u)===0||f&&Db(f,u)===0)return{moduleFileToTry:i};break;case 1:if(Qh(u,t)){const x=um(u,t,!1);return{moduleFileToTry:ms(Ii(Ii(i,a),x),void 0)}}break;case 2:const g=u.indexOf("*"),m=u.slice(0,g),y=u.slice(g+1);if(ns(t,m)&&vc(t,y)){const x=t.slice(m.length,t.length-y.length);return{moduleFileToTry:i.replace("*",x)}}if(f&&ns(f,m)&&vc(f,y)){const x=f.slice(m.length,f.length-y.length);return{moduleFileToTry:i.replace("*",x)}}break}}else{if(Array.isArray(a))return pn(a,u=>mL(e,t,r,i,u,o));if(typeof a=="object"&&a!==null){if(cL(a))return pn(Jg(a),u=>{const f=ms(Ii(i,u),void 0),g=vc(u,"/")?1:Xl(u,"*")?2:0;return mL(e,t,r,f,a[u],o,g)});for(const u of Jg(a))if(u==="default"||o.indexOf(u)>=0||WA(o,u)){const f=a[u],g=mL(e,t,r,i,f,o,l);if(g)return g}}}}function UPe(e,t,r,i,a,o){const l=bme(t,e,i);if(l===void 0)return;const u=bme(r,e,i),f=Na(u,m=>an(l,y=>Wv(um(m,y,i)))),g=mV(f,ID);if(!!g)return k8(g,a,o)}function w$({path:e,isRedirect:t},{getCanonicalFileName:r,sourceDirectory:i},a,o,l,u,f,g){if(!o.fileExists||!o.readFile)return;const m=oH(e);if(!m)return;const x=dL(u,l,a).getAllowedEndingsInPreferredOrder();let k=e,C=!1;if(!f){let Y=m.packageRootIndex,j;for(;;){const{moduleFileToTry:ee,packageRootPath:R,blockedByExports:Z,verbatimFromExports:oe}=U(Y);if(Sc(l)!==1){if(Z)return;if(oe)return ee}if(R){k=R,C=!0;break}if(j||(j=ee),Y=e.indexOf(qo,Y+1),Y===-1){k=k8(j,x,l,o);break}}}if(t&&!C)return;const N=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),D=r(k.substring(0,m.topLevelNodeModulesIndex));if(!(ns(i,D)||N&&ns(r(N),D)))return;const M=k.substring(m.topLevelPackageNameIndex+1),V=qA(M);return Sc(l)===1&&V===M?void 0:V;function U(Y){var j,ee;const R=e.substring(0,Y),Z=Ii(R,"package.json");let oe=e,_e=!1;const X=(ee=(j=o.getPackageJsonInfoCache)==null?void 0:j.call(o))==null?void 0:ee.getPackageJsonInfo(Z);if(typeof X=="object"||X===void 0&&o.fileExists(Z)){const H=(X==null?void 0:X.contents.packageJsonContent)||JSON.parse(o.readFile(Z)),Q=g||a.impliedNodeFormat;if(Wq(l)){const fe=R.substring(m.topLevelPackageNameIndex+1),G=qA(fe),Ne=xS(l,Q===99),De=H.exports?mL(l,e,R,G,H.exports,Ne):void 0;if(De)return{...R3(De.moduleFileToTry)?{moduleFileToTry:gu(De.moduleFileToTry)+gL(De.moduleFileToTry,l)}:De,verbatimFromExports:!0};if(H.exports)return{moduleFileToTry:e,blockedByExports:!0}}const ne=H.typesVersions?eL(H.typesVersions):void 0;if(ne){const fe=e.slice(R.length+1),G=vme(fe,ne.paths,x,o,l);G===void 0?_e=!0:oe=Ii(R,G)}const ue=H.typings||H.types||H.main||"index.js";if(Gs(ue)&&!(_e&&Kq(xO(ne.paths),ue))){const fe=ho(ue,R,r),G=r(oe);if(gu(fe)===gu(G))return{packageRootPath:R,moduleFileToTry:oe};if(H.type!=="module"&&!Gc(G,qD)&&ns(G,fe)&&Ti(G)===Uv(fe)&&gu(Jl(G))==="index")return{packageRootPath:R,moduleFileToTry:oe}}}else{const H=r(oe.substring(m.packageRootIndex+1));if(H==="index.d.ts"||H==="index.js"||H==="index.ts"||H==="index.tsx")return{moduleFileToTry:oe,packageRootPath:R}}return{moduleFileToTry:oe}}}function WPe(e,t){if(!e.fileExists)return;const r=bp(M3({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const a=t+i;if(e.fileExists(a))return a}}function bme(e,t,r){return Hi(t,i=>{const a=xme(e,i,r);return a!==void 0&&Sme(a)?void 0:a})}function k8(e,t,r,i){if(Gc(e,[".json",".mjs",".cjs"]))return e;const a=gu(e);if(e===a)return e;const o=t.indexOf(2),l=t.indexOf(3);if(Gc(e,[".mts",".cts"])&&l!==-1&&lg===0||g===1);return f!==-1&&f$A,forEachFileNameOfModule:()=>gme,getModuleSpecifier:()=>GA,getModuleSpecifiers:()=>ume,getModuleSpecifiersWithCacheInfo:()=>fme,getNodeModulesPackageName:()=>jPe,tryGetJSExtensionForFile:()=>gL,tryGetModuleSpecifiersFromCache:()=>JPe,tryGetRealFileNameForNonJsDeclarationFileName:()=>Tme,updateModuleSpecifier:()=>BPe});var A$=Rt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){kme()}});function qPe(){this.flags=0}function Ra(e){return e.id||(e.id=O$,O$++),e.id}function ya(e){return e.id||(e.id=I$,I$++),e.id}function N$(e,t){const r=r0(e);return r===1||t&&r===2}function Cme(e){var t=[],r=n=>{t.push(n)},i,a=new Set,o,l,u=Ol.getSymbolConstructor(),f=Ol.getTypeConstructor(),g=Ol.getSignatureConstructor(),m=0,y=0,x=0,k=0,C=0,N=0,D,M,V=!1,U=Vs(),Y=[1],j=e.getCompilerOptions(),ee=Ia(j),R=Ul(j),Z=!!j.experimentalDecorators,oe=ND(j),_e=pue(j),X=Yx(j),H=rp(j,"strictNullChecks"),Q=rp(j,"strictFunctionTypes"),ne=rp(j,"strictBindCallApply"),ue=rp(j,"strictPropertyInitialization"),fe=rp(j,"noImplicitAny"),G=rp(j,"noImplicitThis"),Ne=rp(j,"useUnknownInCatchVariables"),De=!!j.keyofStringsOnly,Xe=De?1:0,ve=j.suppressExcessPropertyErrors?0:8192,be=j.exactOptionalPropertyTypes,xe=jnt(),rt=hat(),ct=dk(),pe=Vs(),Pe=Pa(4,"undefined");Pe.declarations=[];var Ge=Pa(1536,"globalThis",8);Ge.exports=pe,Ge.declarations=[],pe.set(Ge.escapedName,Ge);var tt=Pa(4,"arguments"),mt=Pa(4,"require"),Je=j.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",ot=!j.verbatimModuleSyntax||!!j.importsNotUsedAsValues,Jt,Pt,bt=0,_r,xn=0;const Bt={getNodeCount:()=>E_(e.getSourceFiles(),(n,s)=>n+s.nodeCount,0),getIdentifierCount:()=>E_(e.getSourceFiles(),(n,s)=>n+s.identifierCount,0),getSymbolCount:()=>E_(e.getSourceFiles(),(n,s)=>n+s.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>x,getRelationCacheSizes:()=>({assignable:Ju.size,identity:xu.size,subtype:$d.size,strictSubtype:bf.size}),isUndefinedSymbol:n=>n===Pe,isArgumentsSymbol:n=>n===tt,isUnknownSymbol:n=>n===it,getMergedSymbol:Ma,getDiagnostics:h7e,getGlobalDiagnostics:Ost,getRecursionIdentity:bP,getUnmatchedProperties:Yie,getTypeOfSymbolAtLocation:(n,s)=>{const c=ts(s);return c?NKe(n,c):$e},getTypeOfSymbol:$n,getSymbolsOfParameterPropertyDeclaration:(n,s)=>{const c=ts(n,rs);return c===void 0?E.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(E.assert(Du(c,c.parent)),W4(c,Ho(s)))},getDeclaredTypeOfSymbol:mo,getPropertiesOfType:Va,getPropertyOfType:(n,s)=>Ws(n,Ho(s)),getPrivateIdentifierPropertyOfType:(n,s,c)=>{const _=ts(c);if(!_)return;const d=Ho(s),h=gz(d,_);return h?Lse(n,h):void 0},getTypeOfPropertyOfType:(n,s)=>Wc(n,Ho(s)),getIndexInfoOfType:(n,s)=>Rm(n,s===0?F:ye),getIndexInfosOfType:x_,getIndexInfosOfIndexSymbol:$re,getSignaturesOfType:As,getIndexTypeOfType:(n,s)=>Q1(n,s===0?F:ye),getIndexType:n=>im(n),getBaseTypes:To,getBaseTypeOfLiteralType:Vh,getWidenedType:Wu,getTypeFromTypeNode:n=>{const s=ts(n,Ai);return s?ai(s):$e},getParameterType:Xp,getParameterIdentifierInfoAtPosition:rnt,getPromisedTypeOfPromise:y7,getAwaitedType:n=>kb(n),getReturnTypeOfSignature:Ua,isNullableType:mz,getNullableType:WJ,getNonNullableType:Fg,getNonOptionalType:qJ,getTypeArguments:uo,typeToTypeNode:ct.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ct.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ct.signatureToSignatureDeclaration,symbolToEntityName:ct.symbolToEntityName,symbolToExpression:ct.symbolToExpression,symbolToNode:ct.symbolToNode,symbolToTypeParameterDeclarations:ct.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ct.symbolToParameterDeclaration,typeParameterToDeclaration:ct.typeParameterToDeclaration,getSymbolsInScope:(n,s)=>{const c=ts(n);return c?Fst(c,s):[]},getSymbolAtLocation:n=>{const s=ts(n);return s?vp(s,!0):void 0},getIndexInfosAtLocation:n=>{const s=ts(n);return s?Vst(s):void 0},getShorthandAssignmentValueSymbol:n=>{const s=ts(n);return s?Ust(s):void 0},getExportSpecifierLocalTargetSymbol:n=>{const s=ts(n,p_);return s?Wst(s):void 0},getExportSymbolOfSymbol(n){return Ma(n.exportSymbol||n)},getTypeAtLocation:n=>{const s=ts(n);return s?px(s):$e},getTypeOfAssignmentPattern:n=>{const s=ts(n,YC);return s&&Uz(s)||$e},getPropertySymbolOfDestructuringAssignment:n=>{const s=ts(n,we);return s?qst(s):void 0},signatureToString:(n,s,c,_)=>Rl(n,ts(s),c,_),typeToString:(n,s,c)=>Cn(n,ts(s),c),symbolToString:(n,s,c,_)=>ii(n,ts(s),c,_),typePredicateToString:(n,s,c)=>Eg(n,ts(s),c),writeSignature:(n,s,c,_,d)=>Rl(n,ts(s),c,_,d),writeType:(n,s,c,_)=>Cn(n,ts(s),c,_),writeSymbol:(n,s,c,_,d)=>ii(n,ts(s),c,_,d),writeTypePredicate:(n,s,c,_)=>Eg(n,ts(s),c,_),getAugmentedPropertiesOfType:Rae,getRootSymbols:C7e,getSymbolOfExpando:kz,getContextualType:(n,s)=>{const c=ts(n,nt);if(!!c)return s&4?xr(c,()=>eu(c,s)):eu(c,s)},getContextualTypeForObjectLiteralElement:n=>{const s=ts(n,H0);return s?bse(s,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,s)=>{const c=ts(n,Qv);return c&&vse(c,s)},getContextualTypeForJsxAttribute:n=>{const s=ts(n,_9);return s&&V3e(s,void 0)},isContextSensitive:Cf,getTypeOfPropertyOfContextualType:Av,getFullyQualifiedName:h0,getResolvedSignature:(n,s,c)=>pi(n,s,c,0),getResolvedSignatureForStringLiteralCompletions:(n,s,c,_=32)=>_&32?xr(s,()=>pi(n,c,void 0,_&-33)):er(s,()=>pi(n,c,void 0,_&-33)),getResolvedSignatureForSignatureHelp:(n,s,c)=>er(n,()=>pi(n,s,c,16)),getExpandedParameters:q6e,hasEffectiveRestParameter:sm,containsArgumentsReference:Hre,getConstantValue:n=>{const s=ts(n,N7e);return s?Bae(s):void 0},isValidPropertyAccess:(n,s)=>{const c=ts(n,ele);return!!c&&dtt(c,Ho(s))},isValidPropertyAccessForCompletions:(n,s,c)=>{const _=ts(n,kr);return!!_&&y8e(_,s,c)},getSignatureFromDeclaration:n=>{const s=ts(n,Cs);return s?vd(s):void 0},isImplementationOfOverload:n=>{const s=ts(n,Cs);return s?D7e(s):void 0},getImmediateAliasedSymbol:Cse,getAliasedSymbol:hl,getEmitResolver:WT,getExportsOfModule:cv,getExportsAndPropertiesOfModule:Sf,forEachExportAndPropertyOfModule:ZT,getSymbolWalker:cme(ZXe,qf,Ua,To,Wp,$n,yp,s_,Ku,uo),getAmbientModules:aot,getJsxIntrinsicTagNamesAt:Get,isOptionalParameter:n=>{const s=ts(n,rs);return s?JE(s):!1},tryGetMemberInModuleExports:(n,s)=>Q2(Ho(n),s),tryGetMemberInModuleExportsAndProperties:(n,s)=>KT(Ho(n),s),tryFindAmbientModule:n=>qre(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>qre(n,!1),getApparentType:Z_,getUnionType:Jr,isTypeAssignableTo:ca,createAnonymousType:gc,createSignature:Mm,createSymbol:Pa,createIndexInfo:rm,getAnyType:()=>ke,getStringType:()=>F,getStringLiteralType:K_,getNumberType:()=>ye,getNumberLiteralType:Gp,getBigIntType:()=>Oe,createPromiseType:WP,createArrayType:$l,getElementTypeOfArrayType:Bie,getBooleanType:()=>kn,getFalseType:n=>n?We:Tt,getTrueType:n=>n?It:on,getVoidType:()=>ar,getUndefinedType:()=>Nt,getNullType:()=>W,getESSymbolType:()=>ir,getNeverType:()=>jn,getOptionalType:()=>le,getPromiseType:()=>cP(!1),getPromiseLikeType:()=>I4e(!1),getAsyncIterableType:()=>{const n=bJ(!1);if(n!==Rs)return n},isSymbolAccessible:et,isArrayType:wf,isTupleType:la,isArrayLikeType:D0,isEmptyAnonymousObjectType:Og,isTypeInvalidDueToUnionDiscriminant:OXe,getExactOptionalProperties:aZe,getAllPossiblePropertiesOfTypes:FXe,getSuggestedSymbolForNonexistentProperty:Bse,getSuggestionForNonexistentProperty:jse,getSuggestedSymbolForNonexistentJSXAttribute:g8e,getSuggestedSymbolForNonexistentSymbol:(n,s,c)=>Jse(n,Ho(s),c),getSuggestionForNonexistentSymbol:(n,s,c)=>_tt(n,Ho(s),c),getSuggestedSymbolForNonexistentModule:yz,getSuggestionForNonexistentExport:utt,getSuggestedSymbolForNonexistentClassMember:m8e,getBaseConstraintOfType:B_,getDefaultFromTypeParameter:n=>n&&n.flags&262144?lb(n):void 0,resolveName(n,s,c,_){return Lc(s,Ho(n),c,void 0,void 0,!1,_)},getJsxNamespace:n=>Oi(P1(n)),getJsxFragmentFactory:n=>{const s=Jae(n);return s&&Oi(Ku(s).escapedText)},getAccessibleSymbolChain:Fm,getTypePredicateOfSignature:qf,resolveExternalModuleName:n=>{const s=ts(n,nt);return s&&r_(s,s,!0)},resolveExternalModuleSymbol:lf,tryGetThisTypeAt:(n,s,c)=>{const _=ts(n);return _&&mse(_,s,c)},getTypeArgumentConstraint:n=>{const s=ts(n,Ai);return s&&hrt(s)},getSuggestionDiagnostics:(n,s)=>{const c=ts(n,Bi)||E.fail("Could not determine parsed source file.");if(B3(c,j,e))return Ve;let _;try{return i=s,Lae(c),E.assert(!!(jr(c).flags&1)),_=Fr(_,R2.getDiagnostics(c.fileName)),FEe(g7e(c),(d,h,T)=>{!_6(d)&&!m7e(h,!!(d.flags&33554432))&&(_||(_=[])).push({...T,category:2})}),_||Ve}finally{i=void 0}},runWithCancellationToken:(n,s)=>{try{return i=n,s(Bt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Vp,isDeclarationVisible:hd,isPropertyAccessible:Vse,getTypeOnlyAliasDeclaration:gp,getMemberOverrideModifierStatus:Xit,isTypeParameterPossiblyReferenced:dP,typeHasCallOrConstructSignatures:Wz};function er(n,s){const c=[];for(;n;){if(Qv(n)){const d=jr(n),h=d.resolvedSignature;c.push([d,h]),d.resolvedSignature=void 0}n=n.parent}const _=s();for(const[d,h]of c)d.resolvedSignature=h;return _}function xr(n,s){const c=In(n,Qv);if(c){let d=n;do jr(d).skipDirectInference=!0,d=d.parent;while(d&&d!==c)}V=!0;const _=er(n,s);if(V=!1,c){let d=n;do jr(d).skipDirectInference=void 0,d=d.parent;while(d&&d!==c)}return _}function pi(n,s,c,_){const d=ts(n,Qv);Jt=c;const h=d?mC(d,s,_):void 0;return Jt=void 0,h}var ki=new Map,Nr=new Map,pt=new Map,ur=new Map,hn=new Map,Ct=new Map,cn=new Map,Pn=new Map,Sr=new Map,wi=new Map,Yt=new Map,Gt=new Map,Sn=new Map,Gr=new Map,Er=new Map,ze=[],ut=new Map,kt=new Set,it=Pa(4,"unknown"),Vt=Pa(0,"__resolving__"),ae=new Map,Me=new Map,ke=Uo(1,"any"),ft=Uo(1,"any",262144),K=Uo(1,"any"),$e=Uo(1,"error"),Ae=Uo(1,"unresolved"),ht=Uo(1,"any",65536),_t=Uo(1,"intrinsic"),jt=Uo(2,"unknown"),Fn=Uo(2,"unknown"),Nt=Uo(32768,"undefined"),hi=H?Nt:Uo(32768,"undefined",65536),z=Uo(32768,"undefined"),B=be?z:Nt,le=Uo(32768,"undefined"),W=Uo(65536,"null"),ge=H?W:Uo(65536,"null",65536),F=Uo(4,"string"),ye=Uo(8,"number"),Oe=Uo(64,"bigint"),We=Uo(512,"false"),Tt=Uo(512,"false"),It=Uo(512,"true"),on=Uo(512,"true");It.regularType=on,It.freshType=It,on.regularType=on,on.freshType=It,We.regularType=Tt,We.freshType=We,Tt.regularType=Tt,Tt.freshType=We;var kn=Jr([Tt,on]),ir=Uo(4096,"symbol"),ar=Uo(16384,"void"),jn=Uo(131072,"never"),oi=Uo(131072,"never",262144),ea=Uo(131072,"never"),gs=Uo(131072,"never"),Us=Uo(67108864,"object"),Yr=Jr([F,ye]),cs=Jr([F,ye,ir]),Ms=De?F:cs,di=Jr([ye,Oe]),ln=Jr([F,ye,kn,Oe,W,Nt]),tc=fb(["",""],[ye]),qi=pP(n=>n.flags&262144?OYe(n):n,()=>"(restrictive mapper)"),Es=pP(n=>n.flags&262144?K:n,()=>"(permissive mapper)"),Ea=Uo(131072,"never"),ro=pP(n=>n.flags&262144?Ea:n,()=>"(unique literal mapper)"),za,Pc=pP(n=>(za&&(n===pc||n===h_||n===M_)&&za(!0),n),()=>"(unmeasurable reporter)"),ls=pP(n=>(za&&(n===pc||n===h_||n===M_)&&za(!1),n),()=>"(unreliable reporter)"),Li=gc(void 0,U,Ve,Ve,Ve),Vc=gc(void 0,U,Ve,Ve,Ve);Vc.objectFlags|=2048;var zo=Pa(2048,"__type");zo.members=Vs();var L_=gc(zo,U,Ve,Ve,Ve),_l=gc(void 0,U,Ve,Ve,Ve),Bf=H?Jr([Nt,W,_l]):jt,Rs=gc(void 0,U,Ve,Ve,Ve);Rs.instantiations=new Map;var po=gc(void 0,U,Ve,Ve,Ve);po.objectFlags|=262144;var Ba=gc(void 0,U,Ve,Ve,Ve),Fa=gc(void 0,U,Ve,Ve,Ve),Wt=gc(void 0,U,Ve,Ve,Ve),pc=zf(),h_=zf();h_.constraint=pc;var M_=zf(),q_=zf(),vo=zf();vo.constraint=q_;var $o=sP(1,"<>",0,ke),A=Mm(void 0,void 0,void 0,Ve,ke,void 0,0,0),Ce=Mm(void 0,void 0,void 0,Ve,$e,void 0,0,0),Re=Mm(void 0,void 0,void 0,Ve,ke,void 0,0,0),xt=Mm(void 0,void 0,void 0,Ve,oi,void 0,0,0),yn=rm(ye,F,!0),Pr=new Map,En={get yieldType(){return E.fail("Not supported")},get returnType(){return E.fail("Not supported")},get nextType(){return E.fail("Not supported")}},gr=O0(ke,ke,ke),ci=O0(ke,ke,jt),Vr=O0(jn,ke,Nt),La={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:pQe,getGlobalIterableType:bJ,getGlobalIterableIteratorType:dQe,getGlobalGeneratorType:mQe,resolveIterationType:(n,s)=>kb(n,s,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:p.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},io={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:gQe,getGlobalIterableType:nie,getGlobalIterableIteratorType:hQe,getGlobalGeneratorType:yQe,resolveIterationType:(n,s)=>n,mustHaveANextMethodDiagnostic:p.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},ac,Ic=new Map,dc=[],Ka,nc,H_,Uc,Vo,Tu,he,vt,vn,ji,ws,Wa,oc,se,qe,gt,Et,Xt,On,Cr,qr,_i,hs,va,Fo,Ro,Zc,Oc,il,Ml,sl,ju,ud,w1,qd,J,Be,At,Jn,xs,mi,is,Ss,Lo,sa,xl,cf,y_,fd,Hd,Lp,Ee,je,Ye,Mt,rn,un=new Map,nn=0,Vn=0,Br=0,Gi=!1,Hn=0,cr,wr,ta,Fc=[],Xo=[],pg=[],Gd=0,jf=[],c0=[],mh=0,FT=K_(""),V4=Gp(0),l0=CJ({negative:!1,base10Value:"0"}),gh=[],Wy=[],D1=[],qy=0,hh=!1,LT=0,KS=10,MT=[],RT=[],F2=[],BT=[],jT=[],L2=[],JT=[],zT=[],ek=[],VT=[],tk=[],A1=[],Hy=[],yh=[],Gy=[],M2=[],_0=[],xa=N6(),R2=N6(),vh=uk(),N1,dg,$d=new Map,bf=new Map,Ju=new Map,lu=new Map,xu=new Map,$y=new Map,Xy=Vs();Xy.set(Pe.escapedName,Pe);var U4=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",j.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return yat(),Bt;function Qy(n){return n?Er.get(n):void 0}function UT(n,s){return n&&Er.set(n,s),s}function P1(n){if(n){const s=Rn(n);if(s)if(gS(n)){if(s.localJsxFragmentNamespace)return s.localJsxFragmentNamespace;const c=s.pragmas.get("jsxfrag");if(c){const d=Ds(c)?c[0]:c;if(s.localJsxFragmentFactory=bS(d.arguments.factory,ee),Ue(s.localJsxFragmentFactory,B2,Xu),s.localJsxFragmentFactory)return s.localJsxFragmentNamespace=Ku(s.localJsxFragmentFactory).escapedText}const _=Jae(n);if(_)return s.localJsxFragmentFactory=_,s.localJsxFragmentNamespace=Ku(_).escapedText}else{const c=Yy(s);if(c)return s.localJsxNamespace=c}}return N1||(N1="React",j.jsxFactory?(dg=bS(j.jsxFactory,ee),Ue(dg,B2),dg&&(N1=Ku(dg).escapedText)):j.reactNamespace&&(N1=Ho(j.reactNamespace))),dg||(dg=I.createQualifiedName(I.createIdentifier(Oi(N1)),"createElement")),N1}function Yy(n){if(n.localJsxNamespace)return n.localJsxNamespace;const s=n.pragmas.get("jsx");if(s){const c=Ds(s)?s[0]:s;if(n.localJsxFactory=bS(c.arguments.factory,ee),Ue(n.localJsxFactory,B2,Xu),n.localJsxFactory)return n.localJsxNamespace=Ku(n.localJsxFactory).escapedText}}function B2(n){return Tm(n,-1,-1),fn(n,B2,i0)}function WT(n,s){return h7e(n,s),rt}function j2(n,s,...c){const _=n?br(n,s,...c):xc(s,...c),d=xa.lookup(_);return d||(xa.add(_),_)}function bh(n,s,c,..._){const d=Fe(s,c,..._);return d.skippedOn=n,d}function al(n,s,...c){return n?br(n,s,...c):xc(s,...c)}function Fe(n,s,...c){const _=al(n,s,...c);return xa.add(_),_}function u0(n,s){n?xa.add(s):R2.add({...s,category:2})}function Tf(n,s,c,..._){if(s.pos<0||s.end<0){if(!n)return;const d=Rn(s);u0(n,"message"in c?vl(d,0,0,c,..._):zW(d,c));return}u0(n,"message"in c?br(s,c,..._):Hg(Rn(s),s,c))}function Th(n,s,c,..._){const d=Fe(n,c,..._);if(s){const h=br(n,p.Did_you_forget_to_use_await);ua(d,h)}return d}function v_(n,s){const c=Array.isArray(n)?pn(n,QU):QU(n);return c&&ua(s,br(c,p.The_declaration_was_marked_as_deprecated_here)),R2.add(s),s}function fp(n){const s=X_(n);return s&&Nn(n.declarations)>1?s.flags&64?dt(n.declarations,b_):Xi(n.declarations,b_):!!n.valueDeclaration&&b_(n.valueDeclaration)||Nn(n.declarations)&&Xi(n.declarations,b_)}function b_(n){return!!(Lv(n)&536870912)}function f0(n,s,c){const _=br(n,p._0_is_deprecated,c);return v_(s,_)}function nk(n,s,c,_){const d=c?br(n,p.The_signature_0_of_1_is_deprecated,_,c):br(n,p._0_is_deprecated,_);return v_(s,d)}function Pa(n,s,c){y++;const _=new u(n|33554432,s);return _.links=new M$,_.links.checkFlags=c||0,_}function pp(n,s){const c=Pa(1,n);return c.links.type=s,c}function qT(n,s){const c=Pa(4,n);return c.links.type=s,c}function rk(n){let s=0;return n&2&&(s|=111551),n&1&&(s|=111550),n&4&&(s|=0),n&8&&(s|=900095),n&16&&(s|=110991),n&32&&(s|=899503),n&64&&(s|=788872),n&256&&(s|=899327),n&128&&(s|=899967),n&512&&(s|=110735),n&8192&&(s|=103359),n&32768&&(s|=46015),n&65536&&(s|=78783),n&262144&&(s|=526824),n&524288&&(s|=788968),n&2097152&&(s|=2097152),s}function HT(n,s){s.mergeId||(s.mergeId=F$,F$++),MT[s.mergeId]=n}function Zy(n){const s=Pa(n.flags,n.escapedName);return s.declarations=n.declarations?n.declarations.slice():[],s.parent=n.parent,n.valueDeclaration&&(s.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(s.constEnumOnlyModule=!0),n.members&&(s.members=new Map(n.members)),n.exports&&(s.exports=new Map(n.exports)),HT(s,n),s}function mg(n,s,c=!1){if(!(n.flags&rk(s.flags))||(s.flags|n.flags)&67108864){if(s===n)return n;if(!(n.flags&33554432)){const d=Mc(n);if(d===it)return s;n=Zy(d)}s.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!s.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=s.flags,s.valueDeclaration&&Kw(n,s.valueDeclaration),Fr(n.declarations,s.declarations),s.members&&(n.members||(n.members=Vs()),xf(n.members,s.members,c)),s.exports&&(n.exports||(n.exports=Vs()),xf(n.exports,s.exports,c)),c||HT(n,s)}else if(n.flags&1024)n!==Ge&&Fe(s.declarations&&os(s.declarations[0]),p.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ii(n));else{const d=!!(n.flags&384||s.flags&384),h=!!(n.flags&2||s.flags&2),T=d?p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:h?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,P=s.declarations&&Rn(s.declarations[0]),O=n.declarations&&Rn(n.declarations[0]),$=Pw(P,j.checkJs),re=Pw(O,j.checkJs),ce=ii(s);if(P&&O&&ac&&!d&&P!==O){const Se=Db(P.path,O.path)===-1?P:O,Te=Se===P?O:P,Ze=F7(ac,`${Se.path}|${Te.path}`,()=>({firstFile:Se,secondFile:Te,conflictingSymbols:new Map})),St=F7(Ze.conflictingSymbols,ce,()=>({isBlockScoped:h,firstFileLocations:[],secondFileLocations:[]}));$||_(St.firstFileLocations,s),re||_(St.secondFileLocations,n)}else $||Ky(s,T,ce,n),re||Ky(n,T,ce,s)}return n;function _(d,h){if(h.declarations)for(const T of h.declarations)$f(d,T)}}function Ky(n,s,c,_){pn(n.declarations,d=>{pd(d,s,c,_.declarations)})}function pd(n,s,c,_){const d=(vy(n,!1)?KW(n):os(n))||n,h=j2(d,s,c);for(const T of _||Ve){const P=(vy(T,!1)?KW(T):os(T))||T;if(P===d)continue;h.relatedInformation=h.relatedInformation||[];const O=br(P,p._0_was_also_declared_here,c),$=br(P,p.and_here);Nn(h.relatedInformation)>=5||dt(h.relatedInformation,re=>I3(re,$)===0||I3(re,O)===0)||ua(h,Nn(h.relatedInformation)?$:O)}}function Nm(n,s){if(!(n!=null&&n.size))return s;if(!(s!=null&&s.size))return n;const c=Vs();return xf(c,n),xf(c,s),c}function xf(n,s,c=!1){s.forEach((_,d)=>{const h=n.get(d);n.set(d,h?mg(h,_,c):Ma(_))})}function I1(n){var s,c,_;const d=n.parent;if(((s=d.symbol.declarations)==null?void 0:s[0])!==d){E.assert(d.symbol.declarations.length>1);return}if(Id(d))xf(pe,d.symbol.exports);else{const h=n.parent.parent.flags&33554432?void 0:p.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let T=y0(n,n,h,!0);if(!T)return;if(T=lf(T),T.flags&1920)if(dt(nc,P=>T===P.symbol)){const P=mg(d.symbol,T,!0);H_||(H_=new Map),H_.set(n.text,P)}else{if(((c=T.exports)==null?void 0:c.get("__export"))&&((_=d.symbol.exports)==null?void 0:_.size)){const P=Ere(T,"resolvedExports");for(const[O,$]of ra(d.symbol.exports.entries()))P.has(O)&&!T.exports.has(O)&&mg(P.get(O),$)}mg(T,d.symbol)}else Fe(n,p.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function GT(n,s,c){s.forEach((d,h)=>{const T=n.get(h);T?pn(T.declarations,_(Oi(h),c)):n.set(h,d)});function _(d,h){return T=>xa.add(br(T,h,d))}}function Mi(n){var c;if(n.flags&33554432)return n.links;const s=ya(n);return(c=RT[s])!=null?c:RT[s]=new M$}function jr(n){const s=Ra(n);return F2[s]||(F2[s]=new qPe)}function Xd(n){return n.kind===312&&!Yu(n)}function G_(n,s,c){if(c){const _=Ma(n.get(s));if(_&&(E.assert((rc(_)&1)===0,"Should never get an instantiated symbol here."),_.flags&c||_.flags&2097152&&ku(_)&c))return _}}function W4(n,s){const c=n.parent,_=n.parent.parent,d=G_(c.locals,s,111551),h=G_(Ih(_.symbol),s,111551);return d&&h?[d,h]:E.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Qd(n,s){const c=Rn(n),_=Rn(s),d=mm(n);if(c!==_){if(R&&(c.externalModuleIndicator||_.externalModuleIndicator)||!Ao(j)||qb(s)||n.flags&33554432||T(s,n))return!0;const O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(_)}if(n.pos<=s.pos&&!(Fs(n)&&zw(s.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){const O=Ty(s,208);return O?In(O,Oa)!==In(n,Oa)||n.posGa(O)&&O.parent.parent===n);if(Fs(n))return!P(n,s,!1);if(Du(n,n.parent))return!(_e&&Pl(n)===Pl(s)&&T(s,n))}return!0}if(s.parent.kind===281||s.parent.kind===277&&s.parent.isExportEquals||s.kind===277&&s.isExportEquals||!!(s.flags&16777216)||qb(s)||ase(s))return!0;if(T(s,n))return _e&&Pl(n)&&(Fs(n)||Du(n,n.parent))?!P(n,s,!0):!0;return!1;function h(O,$){switch(O.parent.parent.kind){case 243:case 248:case 250:if(so($,O,d))return!0;break}const re=O.parent.parent;return a6(re)&&so($,re.expression,d)}function T(O,$){return!!In(O,re=>{if(re===d)return"quit";if(Cs(re))return!0;if(ec(re))return $.posO.end?!1:In($,Se=>{if(Se===O)return"quit";switch(Se.kind){case 219:return!0;case 172:return re&&(Fs(O)&&Se.parent===O.parent||Du(O,O.parent)&&Se.parent===O.parent.parent)?"quit":!0;case 241:switch(Se.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function q4(n,s,c){const _=Ia(j),d=s;if(rs(c)&&d.body&&n.valueDeclaration&&n.valueDeclaration.pos>=d.body.pos&&n.valueDeclaration.end<=d.body.end&&_>=2){const P=jr(d);return P.declarationRequiresScopeChange===void 0&&(P.declarationRequiresScopeChange=pn(d.parameters,h)||!1),!P.declarationRequiresScopeChange}return!1;function h(P){return T(P.name)||!!P.initializer&&T(P.initializer)}function T(P){switch(P.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(P.name);case 172:return $c(P)?!_e:T(P.name);default:return tW(P)||c_(P)?_<7:Oa(P)&&P.dotDotDotToken&&rd(P.parent)?_<4:Ai(P)?!1:bs(P,T)||!1}}}function J2(n){return Fb(n)&&qg(n.type)||f8(n)&&qg(n.typeExpression)}function Lc(n,s,c,_,d,h,T=!1,P=!0){return O1(n,s,c,_,d,h,T,P,G_)}function O1(n,s,c,_,d,h,T,P,O){var $,re,ce;const Se=n;let Te,Ze,St,Zt,_n,Gn=!1;const An=n;let qt,zn=!1;e:for(;n;){if(s==="const"&&J2(n))return;if(ww(n)&&Ze&&n.name===Ze&&(Ze=n,n=n.parent),fm(n)&&n.locals&&!Xd(n)&&(Te=O(n.locals,s,c))){let mn=!0;if(Cs(n)&&Ze&&Ze!==n.body?(c&Te.flags&788968&&Ze.kind!==327&&(mn=Te.flags&262144?Ze===n.type||Ze.kind===169||Ze.kind===348||Ze.kind===349||Ze.kind===168:!1),c&Te.flags&3&&(q4(Te,n,Ze)?mn=!1:Te.flags&1&&(mn=Ze.kind===169||Ze===n.type&&!!In(Te.valueDeclaration,rs)))):n.kind===194&&(mn=Ze===n.trueType),mn)break e;Te=void 0}switch(Gn=Gn||Su(n,Ze),n.kind){case 312:if(!Yu(n))break;zn=!0;case 267:const mn=(($=vr(n))==null?void 0:$.exports)||U;if(n.kind===312||Ac(n)&&n.flags&33554432&&!Id(n)){if(Te=mn.get("default")){const fs=F6(Te);if(fs&&Te.flags&c&&fs.escapedName===s)break e;Te=void 0}const Yn=mn.get(s);if(Yn&&Yn.flags===2097152&&(lc(Yn,281)||lc(Yn,280)))break}if(s!=="default"&&(Te=O(mn,s,c&2623475)))if(Bi(n)&&n.commonJsModuleIndicator&&!((re=Te.declarations)!=null&&re.some(Kf)))Te=void 0;else break e;break;case 266:if(Te=O(((ce=vr(n))==null?void 0:ce.exports)||U,s,c&8)){_&&nd(j)&&!(n.flags&33554432)&&Rn(n)!==Rn(Te.valueDeclaration)&&Fe(An,p.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Oi(s),Je,`${Oi(Cu(n).escapedName)}.${Oi(s)}`);break e}break;case 172:if(!Os(n)){const Yn=uv(n.parent);Yn&&Yn.locals&&O(Yn.locals,s,c&111551)&&(E.assertNode(n,Fs),Zt=n)}break;case 263:case 231:case 264:if(Te=O(vr(n).members||U,s,c&788968)){if(!xh(Te,n)){Te=void 0;break}if(Ze&&Os(Ze)){_&&Fe(An,p.Static_members_cannot_reference_class_type_parameters);return}break e}if(Fl(n)&&c&32){const Yn=n.name;if(Yn&&s===Yn.escapedText){Te=n.symbol;break e}}break;case 233:if(Ze===n.expression&&n.parent.token===96){const Yn=n.parent.parent;if(ni(Yn)&&(Te=O(vr(Yn).members,s,c&788968))){_&&Fe(An,p.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(qt=n.parent.parent,(ni(qt)||qt.kind===264)&&(Te=O(vr(qt).members,s,c&788968))){_&&Fe(An,p.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Ia(j)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&s==="arguments"){Te=tt;break e}break;case 218:if(c&3&&s==="arguments"){Te=tt;break e}if(c&16){const Yn=n.name;if(Yn&&s===Yn.escapedText){Te=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(Nl(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:const bn=u3(n);bn&&(n=bn.parent);break;case 169:Ze&&(Ze===n.initializer||Ze===n.name&&Ps(Ze))&&(_n||(_n=n));break;case 208:Ze&&(Ze===n.initializer||Ze===n.name&&Ps(Ze))&&Ub(n)&&!_n&&(_n=n);break;case 195:if(c&262144){const Yn=n.typeParameter.name;if(Yn&&s===Yn.escapedText){Te=n.typeParameter.symbol;break e}}break;case 281:Ze&&Ze===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Mp(n)&&(St=n),Ze=n,n=od(n)?H9(n)||n.parent:(ad(n)||CF(n))&&by(n)||n.parent}if(h&&Te&&(!St||Te!==St.symbol)&&(Te.isReferenced|=c),!Te){if(Ze&&(E.assertNode(Ze,Bi),Ze.commonJsModuleIndicator&&s==="exports"&&c&Ze.symbol.flags))return Ze.symbol;T||(Te=O(pe,s,c))}if(!Te&&Se&&Kn(Se)&&Se.parent&&mu(Se.parent,!1))return mt;function Ht(){return Zt&&!_e?(Fe(An,An&&Zt.type&&mw(Zt.type,An.pos)?p.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:p.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,no(Zt.name),T_(d)),!0):!1}if(Te){if(_&&Ht())return}else{_&&r(()=>{if(!An||An.parent.kind!==331&&!V2(An,s,d)&&!Ht()&&!p0(An)&&!Sh(An,s,c)&&!dd(An,s)&&!sk(An,s,c)&&!Pm(An,s,c)&&!d0(An,s,c)){let mn,bn;if(d&&(bn=ctt(d),bn&&Fe(An,_,T_(d),bn)),!bn&&P&<{if(An&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const mn=Q_(Te);(mn.flags&2||mn.flags&32||mn.flags&384)&&ak(mn,An)}if(Te&&zn&&(c&111551)===111551&&!(Se.flags&16777216)){const mn=Ma(Te);Nn(mn.declarations)&&Xi(mn.declarations,bn=>lA(bn)||Bi(bn)&&!!bn.symbol.globalExports)&&Tf(!j.allowUmdGlobalAccess,An,p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Oi(s))}if(Te&&_n&&!Gn&&(c&111551)===111551){const mn=Ma(uJ(Te)),bn=hm(_n);mn===vr(_n)?Fe(An,p.Parameter_0_cannot_reference_itself,no(_n.name)):mn.valueDeclaration&&mn.valueDeclaration.pos>_n.pos&&bn.parent.locals&&O(bn.parent.locals,mn.escapedName,c)===mn&&Fe(An,p.Parameter_0_cannot_reference_identifier_1_declared_after_it,no(_n.name),no(An))}if(Te&&An&&c&111551&&Te.flags&2097152&&!(Te.flags&111551)&&!Ey(An)){const mn=gp(Te,111551);if(mn){const bn=mn.kind===281||mn.kind===278||mn.kind===280?p._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Yn=Oi(s);z2(Fe(An,bn,Yn),mn,Yn)}}}),Te}function z2(n,s,c){return s?ua(n,br(s,s.kind===281||s.kind===278||s.kind===280?p._0_was_exported_here:p._0_was_imported_here,c)):n}function Su(n,s){return n.kind!==219&&n.kind!==218?Q6(n)||(Eo(n)||n.kind===172&&!Os(n))&&(!s||s!==n.name):s&&s===n.name?!1:n.asteriskToken||Lr(n,512)?!0:!jb(n)}function Mp(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function T_(n){return Gs(n)?Oi(n):no(n)}function xh(n,s){if(n.declarations){for(const c of n.declarations)if(c.kind===168&&(od(c.parent)?Vx(c.parent):c.parent)===s)return!(od(c.parent)&&Or(c.parent.parent.tags,Kf))}return!1}function V2(n,s,c){if(!we(n)||n.escapedText!==s||y7e(n)||qb(n))return!1;const _=ru(n,!1,!1);let d=_;for(;d;){if(ni(d.parent)){const h=vr(d.parent);if(!h)break;const T=$n(h);if(Ws(T,s))return Fe(n,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,T_(c),ii(h)),!0;if(d===_&&!Os(d)){const P=mo(h).thisType;if(Ws(P,s))return Fe(n,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,T_(c)),!0}}d=d.parent}return!1}function p0(n){const s=F1(n);return s&&Qo(s,64,!0)?(Fe(n,p.Cannot_extend_an_interface_0_Did_you_mean_implements,el(s)),!0):!1}function F1(n){switch(n.kind){case 80:case 211:return n.parent?F1(n.parent):void 0;case 233:if(Tc(n.expression))return n.expression;default:return}}function Sh(n,s,c){const _=1920|(Kn(n)?111551:0);if(c===_){const d=Mc(Lc(n,s,788968&~_,void 0,void 0,!1)),h=n.parent;if(d){if(hu(h)){E.assert(h.left===n,"Should only be resolving left side of qualified name as a namespace");const T=h.right.escapedText;if(Ws(mo(d),T))return Fe(h,p.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,Oi(s),Oi(T)),!0}return Fe(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Oi(s)),!0}}return!1}function d0(n,s,c){if(c&788584){const _=Mc(Lc(n,s,111127,void 0,void 0,!1));if(_&&!(_.flags&1920))return Fe(n,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Oi(s)),!0}return!1}function ik(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function dd(n,s){return ik(s)&&n.parent.kind===281?(Fe(n,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,s),!0):!1}function Pm(n,s,c){if(c&111551){if(ik(s))return kh(n)?Fe(n,p.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,Oi(s)):Fe(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Oi(s)),!0;const _=Mc(Lc(n,s,788544,void 0,void 0,!1)),d=_&&ku(_);if(_&&d!==void 0&&!(d&111551)){const h=Oi(s);return U2(s)?Fe(n,p._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,h):$T(n,_)?Fe(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,h,h==="K"?"P":"K"):Fe(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,h),!0}}return!1}function kh(n){const s=n.parent.parent,c=s.parent;if(s&&c){const _=tf(s)&&s.token===96,d=f_(c);return _&&d}return!1}function $T(n,s){const c=In(n.parent,_=>Ga(_)||mf(_)?!1:ef(_)||"quit");if(c&&c.members.length===1){const _=mo(s);return!!(_.flags&1048576)&&GP(_,384,!0)}return!1}function U2(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function sk(n,s,c){if(c&111127){if(Mc(Lc(n,s,1024,void 0,void 0,!1)))return Fe(n,p.Cannot_use_namespace_0_as_a_value,Oi(s)),!0}else if(c&788544&&Mc(Lc(n,s,1536,void 0,void 0,!1)))return Fe(n,p.Cannot_use_namespace_0_as_a_type,Oi(s)),!0;return!1}function ak(n,s){var c;if(E.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const _=(c=n.declarations)==null?void 0:c.find(d=>AW(d)||ni(d)||d.kind===266);if(_===void 0)return E.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(_.flags&33554432)&&!Qd(_,s)){let d;const h=no(os(_));n.flags&2?d=Fe(s,p.Block_scoped_variable_0_used_before_its_declaration,h):n.flags&32?d=Fe(s,p.Class_0_used_before_its_declaration,h):n.flags&256&&(d=Fe(s,p.Enum_0_used_before_its_declaration,h)),d&&ua(d,br(_,p._0_is_declared_here,h))}}function so(n,s,c){return!!s&&!!In(n,_=>_===s||(_===c||Cs(_)&&(!jb(_)||A6(_))?"quit":!1))}function ev(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function dp(n){return n.declarations&&yx(n.declarations,tv)}function tv(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&E6(n)||rr(n)&&uc(n)===2&&E6(n)||Mo(n)&&rr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&nv(n.parent.right)||n.kind===304||n.kind===303&&nv(n.initializer)||n.kind===260&&r2(n)||n.kind===208&&r2(n.parent.parent)}function nv(n){return lD(n)||_o(n)&&xd(n)}function H4(n,s){const c=hg(n);if(c){const d=N3(c.expression).arguments[0];return we(c.name)?Mc(Ws(_4e(d),c.name.escapedText)):void 0}if(Ri(n)||n.moduleReference.kind===283){const d=r_(n,XW(n)||c3(n)),h=lf(d);return $_(n,d,h,!1),h}const _=fl(n.moduleReference,s);return ok(n,_),_}function ok(n,s){if($_(n,void 0,s,!1)&&!n.isTypeOnly){const c=gp(vr(n)),_=c.kind===281||c.kind===278,d=_?p.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:p.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,h=_?p._0_was_exported_here:p._0_was_imported_here,T=c.kind===278?"*":Oi(c.name.escapedText);ua(Fe(n.moduleReference,d),br(c,h,T))}}function W2(n,s,c,_){const d=n.exports.get("export="),h=d?Ws($n(d),s,!0):n.exports.get(s),T=Mc(h,_);return $_(c,h,T,!1),T}function Un(n){return fc(n)&&!n.isExportEquals||Lr(n,1024)||p_(n)}function mc(n){return Qa(n)?cp(Rn(n),n):void 0}function Zi(n,s){return n===99&&s===1}function Rp(n){return mc(n)===99&&vc(n.text,".json")}function L1(n,s,c,_){const d=n&&mc(_);if(n&&d!==void 0){const h=Zi(d,n.impliedNodeFormat);if(d===99||h)return h}if(!X)return!1;if(!n||n.isDeclarationFile){const h=W2(s,"default",void 0,!0);return!(h&&dt(h.declarations,Un)||W2(s,Ho("__esModule"),void 0,c))}return P_(n)?typeof n.externalModuleIndicator!="object"&&!W2(s,Ho("__esModule"),void 0,c):ov(s)}function Yd(n,s){const c=r_(n,n.parent.moduleSpecifier);if(c)return qn(c,n,s)}function qn(n,s,c){var _;let d;n3(n)?d=n:d=W2(n,"default",s,c);const h=(_=n.declarations)==null?void 0:_.find(Bi),T=rv(s);if(!T)return d;const P=Rp(T),O=L1(h,n,c,T);if(!d&&!O&&!P)if(ov(n)&&!X){const $=R>=5?"allowSyntheticDefaultImports":"esModuleInterop",ce=n.exports.get("export=").valueDeclaration,Se=Fe(s.name,p.Module_0_can_only_be_default_imported_using_the_1_flag,ii(n),$);ce&&ua(Se,br(ce,p.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,$))}else Sm(s)?iv(n,s):Ch(n,n,s,Nx(s)&&s.propertyName||s.name);else if(O||P){const $=lf(n,c)||Mc(n,c);return $_(s,n,$,!1),$}return $_(s,d,void 0,!1),d}function rv(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return km(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return E.assertNever(n)}}function iv(n,s){var c,_,d;if((c=n.exports)!=null&&c.has(s.symbol.escapedName))Fe(s.name,p.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ii(n),ii(s.symbol));else{const h=Fe(s.name,p.Module_0_has_no_default_export,ii(n)),T=(_=n.exports)==null?void 0:_.get("__export");if(T){const P=(d=T.declarations)==null?void 0:d.find(O=>{var $,re;return!!(Yc(O)&&O.moduleSpecifier&&((re=($=r_(O,O.moduleSpecifier))==null?void 0:$.exports)==null?void 0:re.has("default")))});P&&ua(h,br(P,p.export_Asterisk_does_not_re_export_a_default))}}}function ul(n,s){const c=n.parent.parent.moduleSpecifier,_=r_(n,c),d=av(_,c,s,!1);return $_(n,_,d,!1),d}function md(n,s){const c=n.parent.moduleSpecifier,_=c&&r_(n,c),d=c&&av(_,c,s,!1);return $_(n,_,d,!1),d}function Bp(n,s){if(n===it&&s===it)return it;if(n.flags&790504)return n;const c=Pa(n.flags|s.flags,n.escapedName);return E.assert(n.declarations||s.declarations),c.declarations=Uk(es(n.declarations,s.declarations),ly),c.parent=n.parent||s.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),s.members&&(c.members=new Map(s.members)),n.exports&&(c.exports=new Map(n.exports)),c}function q2(n,s,c,_){var d;if(n.flags&1536){const h=zu(n).get(s.escapedText),T=Mc(h,_),P=(d=Mi(n).typeOnlyExportStarMap)==null?void 0:d.get(s.escapedText);return $_(c,h,T,!1,P,s.escapedText),T}}function sv(n,s){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return Mc(Ws(ai(c),s))}}function gg(n,s,c=!1){var _;const d=XW(n)||n.moduleSpecifier,h=r_(n,d),T=!kr(s)&&s.propertyName||s.name;if(!we(T))return;const P=T.escapedText==="default"&&X,O=av(h,d,!1,P);if(O&&T.escapedText){if(n3(h))return h;let $;h&&h.exports&&h.exports.get("export=")?$=Ws($n(O),T.escapedText,!0):$=sv(O,T.escapedText),$=Mc($,c);let re=q2(O,T,s,c);if(re===void 0&&T.escapedText==="default"){const Se=(_=h.declarations)==null?void 0:_.find(Bi);(Rp(d)||L1(Se,h,c,d))&&(re=lf(h,c)||Mc(h,c))}const ce=re&&$&&re!==$?Bp($,re):re||$;return ce||Ch(h,O,n,T),ce}}function Ch(n,s,c,_){var d;const h=h0(n,c),T=no(_),P=yz(_,s);if(P!==void 0){const O=ii(P),$=Fe(_,p._0_has_no_exported_member_named_1_Did_you_mean_2,h,T,O);P.valueDeclaration&&ua($,br(P.valueDeclaration,p._0_is_declared_here,O))}else(d=n.exports)!=null&&d.has("default")?Fe(_,p.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,h,T):ck(c,_,T,n,h)}function ck(n,s,c,_,d){var h,T;const P=(T=(h=Hr(_.valueDeclaration,fm))==null?void 0:h.locals)==null?void 0:T.get(s.escapedText),O=_.exports;if(P){const $=O==null?void 0:O.get("export=");if($)Vu($,P)?gd(n,s,c,d):Fe(s,p.Module_0_has_no_exported_member_1,d,c);else{const re=O?Or(Wre(O),Se=>!!Vu(Se,P)):void 0,ce=re?Fe(s,p.Module_0_declares_1_locally_but_it_is_exported_as_2,d,c,ii(re)):Fe(s,p.Module_0_declares_1_locally_but_it_is_not_exported,d,c);P.declarations&&ua(ce,...an(P.declarations,(Se,Te)=>br(Se,Te===0?p._0_is_declared_here:p.and_here,c)))}}else Fe(s,p.Module_0_has_no_exported_member_1,d,c)}function gd(n,s,c,_){if(R>=5){const d=bm(j)?p._0_can_only_be_imported_by_using_a_default_import:p._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Fe(s,d,c)}else if(Kn(n)){const d=bm(j)?p._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:p._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Fe(s,d,c)}else{const d=bm(j)?p._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:p._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Fe(s,d,c,c,_)}}function m0(n,s){if(vu(n)&&lr(n.propertyName||n.name)==="default"){const T=rv(n),P=T&&r_(n,T);if(P)return qn(P,n,s)}const c=Oa(n)?hm(n):n.parent.parent.parent,_=hg(c),d=gg(c,_||n,s),h=n.propertyName||n.name;return _&&d&&we(h)?Mc(Ws($n(d),h.escapedText),s):($_(n,void 0,d,!1),d)}function hg(n){if(Ri(n)&&n.initializer&&kr(n.initializer))return n.initializer}function XT(n,s){if(Pd(n.parent)){const c=lf(n.parent.symbol,s);return $_(n,void 0,c,!1),c}}function yg(n,s,c){if(lr(n.propertyName||n.name)==="default"){const d=rv(n),h=d&&r_(n,d);if(h)return qn(h,n,!!c)}const _=n.parent.parent.moduleSpecifier?gg(n.parent.parent,n,c):Qo(n.propertyName||n.name,s,!1,c);return $_(n,void 0,_,!1),_}function g0(n,s){const c=fc(n)?n.expression:n.right,_=H2(c,s);return $_(n,void 0,_,!1),_}function H2(n,s){if(Fl(n))return Bc(n).symbol;if(!Xu(n)&&!Tc(n))return;const c=Qo(n,901119,!0,s);return c||(Bc(n),jr(n).resolvedSymbol)}function QT(n,s){if(!!(rr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64))return H2(n.parent.right,s)}function vg(n,s=!1){switch(n.kind){case 271:case 260:return H4(n,s);case 273:return Yd(n,s);case 274:return ul(n,s);case 280:return md(n,s);case 276:case 208:return m0(n,s);case 281:return yg(n,901119,s);case 277:case 226:return g0(n,s);case 270:return XT(n,s);case 304:return Qo(n.name,901119,!0,s);case 303:return H2(n.initializer,s);case 212:case 211:return QT(n,s);default:return E.fail()}}function mp(n,s=901119){return n?(n.flags&(2097152|s))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Mc(n,s){return!s&&mp(n)?hl(n):n}function hl(n){E.assert((n.flags&2097152)!==0,"Should only get Alias here.");const s=Mi(n);if(s.aliasTarget)s.aliasTarget===Vt&&(s.aliasTarget=it);else{s.aliasTarget=Vt;const c=dp(n);if(!c)return E.fail();const _=vg(c);s.aliasTarget===Vt?s.aliasTarget=_||it:Fe(c,p.Circular_definition_of_import_alias_0,ii(n))}return s.aliasTarget}function M1(n){if(Mi(n).aliasTarget!==Vt)return hl(n)}function ku(n,s,c){const _=s&&gp(n),d=_&&Yc(_),h=_&&(d?r_(_.moduleSpecifier,_.moduleSpecifier,!0):hl(_.symbol)),T=d&&h?Zd(h):void 0;let P=c?0:n.flags,O;for(;n.flags&2097152;){const $=Q_(hl(n));if(!d&&$===h||(T==null?void 0:T.get($.escapedName))===$)break;if($===it)return 67108863;if($===n||(O==null?void 0:O.has($)))break;$.flags&2097152&&(O?O.add($):O=new Set([n,$])),P|=$.flags,n=$}return P}function $_(n,s,c,_,d,h){if(!n||kr(n))return!1;const T=vr(n);if(Xv(n)){const O=Mi(T);return O.typeOnlyDeclaration=n,!0}if(d){const O=Mi(T);return O.typeOnlyDeclaration=d,T.escapedName!==h&&(O.typeOnlyExportStarName=h),!0}const P=Mi(T);return bg(P,s,_)||bg(P,c,_)}function bg(n,s,c){var d,h;var _;if(s&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const T=(d=(_=s.exports)==null?void 0:_.get("export="))!=null?d:s,P=T.declarations&&Or(T.declarations,Xv);n.typeOnlyDeclaration=(h=P!=null?P:Mi(T).typeOnlyDeclaration)!=null?h:!1}return!!n.typeOnlyDeclaration}function gp(n,s){if(!(n.flags&2097152))return;const c=Mi(n);if(s===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){const _=c.typeOnlyDeclaration.kind===278?Mc(Zd(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):hl(c.typeOnlyDeclaration.symbol);return ku(_)&s?c.typeOnlyDeclaration:void 0}}function R1(n){if(!ot)return;const s=vr(n),c=hl(s);c&&(c===it||ku(s,!0)&111551&&!k7(c))&&Tg(s)}function Tg(n){E.assert(ot);const s=Mi(n);if(!s.referenced){s.referenced=!0;const c=dp(n);if(!c)return E.fail();b6(c)&&ku(Mc(n))&111551&&Bc(c.moduleReference)}}function G2(n){const s=Mi(n);s.constEnumReferenced||(s.constEnumReferenced=!0)}function fl(n,s){return n.kind===80&&k3(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Qo(n,1920,!1,s):(E.assert(n.parent.kind===271),Qo(n,901119,!1,s))}function h0(n,s){return n.parent?h0(n.parent,s)+"."+ii(n):ii(n,s,void 0,36)}function Im(n){for(;hu(n.parent);)n=n.parent;return n}function $2(n){let s=Ku(n),c=Lc(s,s.escapedText,111551,void 0,s,!0);if(!!c){for(;hu(s.parent);){const _=$n(c);if(c=Ws(_,s.parent.right.escapedText),!c)return;s=s.parent}return c}}function Qo(n,s,c,_,d){if(_c(n))return;const h=1920|(Kn(n)?s&111551:0);let T;if(n.kind===80){const P=s===h||Do(n)?p.Cannot_find_namespace_0:n3e(Ku(n)),O=Kn(n)&&!Do(n)?xg(n,s):void 0;if(T=Ma(Lc(d||n,n.escapedText,s,c||O?void 0:P,n,!0,!1)),!T)return Ma(O)}else if(n.kind===166||n.kind===211){const P=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name;let $=Qo(P,h,c,!1,d);if(!$||_c(O))return;if($===it)return $;if($.valueDeclaration&&Kn($.valueDeclaration)&&Sc(j)!==100&&Ri($.valueDeclaration)&&$.valueDeclaration.initializer&&j8e($.valueDeclaration.initializer)){const re=$.valueDeclaration.initializer.arguments[0],ce=r_(re,re);if(ce){const Se=lf(ce);Se&&($=Se)}}if(T=Ma(G_(zu($),O.escapedText,s)),!T&&$.flags&2097152&&(T=Ma(G_(zu(hl($)),O.escapedText,s))),!T){if(!c){const re=h0($),ce=no(O),Se=yz(O,$);if(Se){Fe(O,p._0_has_no_exported_member_named_1_Did_you_mean_2,re,ce,ii(Se));return}const Te=hu(n)&&Im(n);if(Uc&&s&788968&&Te&&!K6(Te.parent)&&$2(Te)){Fe(Te,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Nu(Te));return}if(s&1920&&hu(n.parent)){const St=Ma(G_(zu($),O.escapedText,788968));if(St){Fe(n.parent.right,p.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,ii(St),Oi(n.parent.right.escapedText));return}}Fe(O,p.Namespace_0_has_no_exported_member_1,re,ce)}return}}else E.assertNever(n,"Unknown entity name kind.");return E.assert((rc(T)&1)===0,"Should never get an instantiated symbol here."),!Do(n)&&Xu(n)&&(T.flags&2097152||n.parent.kind===277)&&$_(oq(n),T,void 0,!0),T.flags&s||_?T:hl(T)}function xg(n,s){if(yJ(n.parent)){const c=YT(n.parent);if(c)return Lc(c,n.escapedText,s,void 0,n,!0)}}function YT(n){if(In(n,d=>o6(d)||d.flags&16777216?Kf(d):"quit"))return;const c=Vx(n);if(c&&ql(c)&&Zw(c.expression)){const d=vr(c.expression.left);if(d)return B1(d)}if(c&&_o(c)&&Zw(c.parent)&&ql(c.parent.parent)){const d=vr(c.parent.left);if(d)return B1(d)}if(c&&(kp(c)||Ec(c))&&rr(c.parent.parent)&&uc(c.parent.parent)===6){const d=vr(c.parent.parent.left);if(d)return B1(d)}const _=zx(n);if(_&&Cs(_)){const d=vr(_);return d&&d.valueDeclaration}}function B1(n){const s=n.parent.valueDeclaration;return s?(l3(s)?Mx(s):Lb(s)?Gw(s):void 0)||s:void 0}function lk(n){const s=n.valueDeclaration;if(!s||!Kn(s)||n.flags&524288||vy(s,!1))return;const c=Ri(s)?Gw(s):Mx(s);if(c){const _=Cu(c);if(_)return Qse(_,n)}}function r_(n,s,c){const d=Sc(j)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations;return y0(n,s,c?void 0:d)}function y0(n,s,c,_=!1){return Qa(s)?Eh(n,s.text,c,s,_):void 0}function Eh(n,s,c,_,d=!1){var h,T,P,O,$,re,ce,Se,Te,Ze;if(ns(s,"@types/")){const bn=p.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Yn=IC(s,"@types/");Fe(_,bn,Yn,s)}const St=qre(s,!0);if(St)return St;const Zt=Rn(n),_n=Qa(n)?n:((h=In(n,Zu))==null?void 0:h.arguments[0])||((T=In(n,bl))==null?void 0:T.moduleSpecifier)||((P=In(n,yy))==null?void 0:P.moduleReference.expression)||((O=In(n,Yc))==null?void 0:O.moduleSpecifier)||(($=Ac(n)?n:n.parent&&Ac(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:$.name)||((re=hy(n)?n:void 0)==null?void 0:re.argument.literal),Gn=_n&&Qa(_n)?cp(Zt,_n):Zt.impliedNodeFormat,An=Sc(j),qt=Fx(Zt,s,Gn),zn=qt&&LX(j,qt,Zt),Ht=qt&&(!zn||zn===p.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(qt.resolvedFileName);if(Ht){if(zn&&Fe(_,zn,s,qt.resolvedFileName),qt.resolvedUsingTsExtension&&ou(s)){const bn=((ce=In(n,bl))==null?void 0:ce.importClause)||In(n,Kp(Hl,Yc));(bn&&!bn.isTypeOnly||In(n,Zu))&&Fe(_,p.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,mn(E.checkDefined(iO(s))))}else if(qt.resolvedUsingTsExtension&&!g4(j,Zt.fileName)){const bn=((Se=In(n,bl))==null?void 0:Se.importClause)||In(n,Kp(Hl,Yc));if(!((bn==null?void 0:bn.isTypeOnly)||In(n,cg))){const Yn=E.checkDefined(iO(s));Fe(_,p.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Yn)}}if(Ht.symbol){if(qt.isExternalLibraryImport&&!FD(qt.extension)&&Sg(!1,_,Zt,Gn,qt,s),An===3||An===99){const bn=Zt.impliedNodeFormat===1&&!In(n,Zu)||!!In(n,Hl),Yn=In(n,Vi=>cg(Vi)||Yc(Vi)||bl(Vi)),fs=Yn&&cg(Yn)?(Te=Yn.assertions)==null?void 0:Te.assertClause:Yn==null?void 0:Yn.assertClause;if(bn&&Ht.impliedNodeFormat===99&&!DS(fs))if(In(n,Hl))Fe(_,p.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,s);else{let Vi;const ei=ig(Zt.fileName);if(ei===".ts"||ei===".js"||ei===".tsx"||ei===".jsx"){const wc=Zt.packageJsonScope,tu=ei===".ts"?".mts":ei===".js"?".mjs":void 0;wc&&!wc.contents.packageJsonContent.type?tu?Vi=us(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,tu,Ii(wc.packageDirectory,"package.json")):Vi=us(void 0,p.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Ii(wc.packageDirectory,"package.json")):tu?Vi=us(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,tu):Vi=us(void 0,p.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}xa.add(Hg(Rn(_),_,us(Vi,p.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,s)))}}return Ma(Ht.symbol)}c&&Fe(_,p.File_0_is_not_a_module,Ht.fileName);return}if(nc){const bn=hV(nc,Yn=>Yn.pattern,s);if(bn){const Yn=H_&&H_.get(s);return Ma(Yn||bn.symbol)}}if(qt&&!FD(qt.extension)&&zn===void 0||zn===p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(d){const bn=p.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Fe(_,bn,s,qt.resolvedFileName)}else Sg(fe&&!!c,_,Zt,Gn,qt,s);return}if(c){if(qt){const bn=e.getProjectReferenceRedirect(qt.resolvedFileName);if(bn){Fe(_,p.Output_file_0_has_not_been_built_from_source_file_1,bn,qt.resolvedFileName);return}}if(zn)Fe(_,zn,s,qt.resolvedFileName);else{const bn=$u(s)&&!$k(s),Yn=An===3||An===99;if(!$b(j)&&Hc(s,".json")&&An!==1&&pO(j))Fe(_,p.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,s);else if(Gn===99&&Yn&&bn){const fs=ms(s,Ti(Zt.path)),Vi=(Ze=U4.find(([ei,wc])=>e.fileExists(fs+ei)))==null?void 0:Ze[1];Vi?Fe(_,p.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,s+Vi):Fe(_,p.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Fe(_,c,s)}}return;function mn(bn){const Yn=OD(s,bn);if(fO(R)||Gn===99){const fs=ou(s)&&g4(j);return Yn+(bn===".mts"||bn===".d.mts"?fs?".mts":".mjs":bn===".cts"||bn===".d.mts"?fs?".cts":".cjs":fs?".ts":".js")}return Yn}}function Sg(n,s,c,_,{packageId:d,resolvedFileName:h},T){let P;!Al(T)&&d&&(P=SW(c,e,T,_,d.name)),Tf(n,s,us(P,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,h))}function lf(n,s){if(n!=null&&n.exports){const c=Mc(n.exports.get("export="),s),_=X2(Ma(c),Ma(n));return Ma(_)||n}}function X2(n,s){if(!n||n===it||n===s||s.exports.size===1||n.flags&2097152)return n;const c=Mi(n);if(c.cjsExportMerged)return c.cjsExportMerged;const _=n.flags&33554432?n:Zy(n);return _.flags=_.flags|512,_.exports===void 0&&(_.exports=Vs()),s.exports.forEach((d,h)=>{h!=="export="&&_.exports.set(h,_.exports.has(h)?mg(_.exports.get(h),d):d)}),_===n&&(Mi(_).resolvedExports=void 0,Mi(_).resolvedMembers=void 0),Mi(_).cjsExportMerged=_,c.cjsExportMerged=_}function av(n,s,c,_){var d;const h=lf(n,c);if(!c&&h){if(!_&&!(h.flags&1539)&&!lc(h,312)){const P=R>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Fe(s,p.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,P),h}const T=s.parent;if(bl(T)&&S6(T)||Zu(T)){const P=Zu(T)?T.arguments[0]:T.moduleSpecifier,O=$n(h),$=R8e(O,h,n,P);if($)return j1(h,$,T);const re=(d=n==null?void 0:n.declarations)==null?void 0:d.find(Bi),ce=re&&Zi(mc(P),re.impliedNodeFormat);if(bm(j)||ce){let Se=rP(O,0);if((!Se||!Se.length)&&(Se=rP(O,1)),Se&&Se.length||Ws(O,"default",!0)||ce){const Te=O.flags&3670016?B8e(O,h,n,P):Yse(h,h.parent);return j1(h,Te,T)}}}}return h}function j1(n,s,c){const _=Pa(n.flags,n.escapedName);_.declarations=n.declarations?n.declarations.slice():[],_.parent=n.parent,_.links.target=n,_.links.originatingImport=c,n.valueDeclaration&&(_.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),n.members&&(_.members=new Map(n.members)),n.exports&&(_.exports=new Map(n.exports));const d=Wp(s);return _.links.type=gc(_,d.members,Ve,Ve,d.indexInfos),_}function ov(n){return n.exports.get("export=")!==void 0}function cv(n){return Wre(Zd(n))}function Sf(n){const s=cv(n),c=lf(n);if(c!==n){const _=$n(c);lv(_)&&Fr(s,Va(_))}return s}function ZT(n,s){Zd(n).forEach((d,h)=>{K2(h)||s(d,h)});const _=lf(n);if(_!==n){const d=$n(_);lv(d)&&IXe(d,(h,T)=>{s(h,T)})}}function Q2(n,s){const c=Zd(s);if(c)return c.get(n)}function KT(n,s){const c=Q2(n,s);if(c)return c;const _=lf(s);if(_===s)return;const d=$n(_);return lv(d)?Ws(d,n):void 0}function lv(n){return!(n.flags&402784252||Rr(n)&1||wf(n)||la(n))}function zu(n){return n.flags&6256?Ere(n,"resolvedExports"):n.flags&1536?Zd(n):n.exports||U}function Zd(n){const s=Mi(n);if(!s.resolvedExports){const{exports:c,typeOnlyExportStarMap:_}=_k(n);s.resolvedExports=c,s.typeOnlyExportStarMap=_}return s.resolvedExports}function J1(n,s,c,_){!s||s.forEach((d,h)=>{if(h==="default")return;const T=n.get(h);if(!T)n.set(h,d),c&&_&&c.set(h,{specifierText:el(_.moduleSpecifier)});else if(c&&_&&T&&Mc(T)!==Mc(d)){const P=c.get(h);P.exportsWithDuplicate?P.exportsWithDuplicate.push(_):P.exportsWithDuplicate=[_]}})}function _k(n){const s=[];let c;const _=new Set;n=lf(n);const d=h(n)||U;return c&&_.forEach(T=>c.delete(T)),{exports:d,typeOnlyExportStarMap:c};function h(T,P,O){if(!O&&(T==null?void 0:T.exports)&&T.exports.forEach((ce,Se)=>_.add(Se)),!(T&&T.exports&&$f(s,T)))return;const $=new Map(T.exports),re=T.exports.get("__export");if(re){const ce=Vs(),Se=new Map;if(re.declarations)for(const Te of re.declarations){const Ze=r_(Te,Te.moduleSpecifier),St=h(Ze,Te,O||Te.isTypeOnly);J1(ce,St,Se,Te)}Se.forEach(({exportsWithDuplicate:Te},Ze)=>{if(!(Ze==="export="||!(Te&&Te.length)||$.has(Ze)))for(const St of Te)xa.add(br(St,p.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Se.get(Ze).specifierText,Oi(Ze)))}),J1($,ce)}return P!=null&&P.isTypeOnly&&(c!=null||(c=new Map),$.forEach((ce,Se)=>c.set(Se,P))),$}}function Ma(n){let s;return n&&n.mergeId&&(s=MT[n.mergeId])?s:n}function vr(n){return Ma(n.symbol&&uJ(n.symbol))}function Cu(n){return Pd(n)?vr(n):void 0}function X_(n){return Ma(n.parent&&uJ(n.parent))}function z1(n,s){const c=Rn(s),_=Ra(c),d=Mi(n);let h;if(d.extendedContainersByFile&&(h=d.extendedContainersByFile.get(_)))return h;if(c&&c.imports){for(const P of c.imports){if(Do(P))continue;const O=r_(s,P,!0);!O||!wh(O,n)||(h=dn(h,O))}if(Nn(h))return(d.extendedContainersByFile||(d.extendedContainersByFile=new Map)).set(_,h),h}if(d.extendedContainers)return d.extendedContainers;const T=e.getSourceFiles();for(const P of T){if(!zc(P))continue;const O=vr(P);!wh(O,n)||(h=dn(h,O))}return d.extendedContainers=h||Ve}function Y2(n,s,c){const _=X_(n);if(_&&!(n.flags&262144)){const T=Hi(_.declarations,h),P=s&&z1(n,s),O=Z2(_,c);if(s&&_.flags&_u(c)&&Fm(_,s,1920,!1))return dn(es(es([_],T),P),O);const $=!(_.flags&_u(c))&&_.flags&788968&&mo(_).flags&524288&&c===111551?V1(s,ce=>Au(ce,Se=>{if(Se.flags&_u(c)&&$n(Se)===mo(_))return Se})):void 0;let re=$?[$,...T,_]:[...T,_];return re=dn(re,O),re=Fr(re,P),re}const d=Hi(n.declarations,T=>{if(!__(T)&&T.parent){if(Qr(T.parent))return vr(T.parent);if(Jd(T.parent)&&T.parent.parent&&lf(vr(T.parent.parent))===n)return vr(T.parent.parent)}if(Fl(T)&&rr(T.parent)&&T.parent.operatorToken.kind===64&&Mo(T.parent.left)&&Tc(T.parent.left.expression))return eg(T.parent.left)||Jb(T.parent.left.expression)?vr(Rn(T)):(Bc(T.parent.left.expression),jr(T.parent.left.expression).resolvedSymbol)});if(!Nn(d))return;return Hi(d,T=>wh(T,n)?T:void 0);function h(T){return _&&ex(T,_)}}function Z2(n,s){const c=!!Nn(n.declarations)&&wa(n.declarations);if(s&111551&&c&&c.parent&&Ri(c.parent)&&(ha(c)&&c===c.parent.initializer||ef(c)&&c===c.parent.type))return vr(c.parent)}function ex(n,s){const c=hr(n),_=c&&c.exports&&c.exports.get("export=");return _&&Vu(_,s)?c:void 0}function wh(n,s){if(n===X_(s))return s;const c=n.exports&&n.exports.get("export=");if(c&&Vu(c,s))return n;const _=zu(n),d=_.get(s.escapedName);return d&&Vu(d,s)?d:Au(_,h=>{if(Vu(h,s))return h})}function Vu(n,s){if(Ma(Mc(Ma(n)))===Ma(Mc(Ma(s))))return n}function Q_(n){return Ma(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function _v(n,s){return!!(n.flags&111551||n.flags&2097152&&ku(n,!s)&111551)}function uv(n){const s=n.members;for(const c of s)if(c.kind===176&&Qf(c.body))return c}function _f(n){var s;const c=new f(Bt,n);return m++,c.id=m,(s=li)==null||s.recordType(c),c}function kg(n,s){const c=_f(n);return c.symbol=s,c}function tx(n){return new f(Bt,n)}function Uo(n,s,c=0){const _=_f(n);return _.intrinsicName=s,_.objectFlags=c|524288|2097152|33554432|16777216,_}function Jf(n,s){const c=kg(524288,s);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function uk(){return Jr(ra(vL.keys(),K_))}function zf(n){return kg(262144,n)}function K2(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function Dh(n){let s;return n.forEach((c,_)=>{eb(c,_)&&(s||(s=[])).push(c)}),s||Ve}function eb(n,s){return!K2(s)&&_v(n)}function Om(n){const s=Dh(n),c=dJ(n);return c?es(s,[c]):s}function uf(n,s,c,_,d){const h=n;return h.members=s,h.properties=Ve,h.callSignatures=c,h.constructSignatures=_,h.indexInfos=d,s!==U&&(h.properties=Dh(s)),h}function gc(n,s,c,_,d){return uf(Jf(16,n),s,c,_,d)}function fk(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const s=zr(n.constructSignatures,_=>!(_.flags&4));if(n.constructSignatures===s)return n;const c=gc(n.symbol,n.members,n.callSignatures,dt(s)?s:Ve,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function V1(n,s){let c;for(let _=n;_;_=_.parent){if(fm(_)&&_.locals&&!Xd(_)&&(c=s(_.locals,void 0,!0,_)))return c;switch(_.kind){case 312:if(!Yu(_))break;case 267:const d=vr(_);if(c=s((d==null?void 0:d.exports)||U,void 0,!0,_))return c;break;case 263:case 231:case 264:let h;if((vr(_).members||U).forEach((T,P)=>{T.flags&788968&&(h||(h=Vs())).set(P,T)}),h&&(c=s(h,void 0,!1,_)))return c;break}}return s(pe,void 0,!0)}function _u(n){return n===111551?111551:1920}function Fm(n,s,c,_,d=new Map){if(!(n&&!pk(n)))return;const h=Mi(n),T=h.accessibleChainCache||(h.accessibleChainCache=new Map),P=V1(s,(_n,Gn,An,qt)=>qt),O=`${_?0:1}|${P&&Ra(P)}|${c}`;if(T.has(O))return T.get(O);const $=ya(n);let re=d.get($);re||d.set($,re=[]);const ce=V1(s,Se);return T.set(O,ce),ce;function Se(_n,Gn,An){if(!$f(re,_n))return;const qt=St(_n,Gn,An);return re.pop(),qt}function Te(_n,Gn){return!tb(_n,s,Gn)||!!Fm(_n.parent,s,_u(Gn),_,d)}function Ze(_n,Gn,An){return(n===(Gn||_n)||Ma(n)===Ma(Gn||_n))&&!dt(_n.declarations,Qr)&&(An||Te(Ma(_n),c))}function St(_n,Gn,An){return Ze(_n.get(n.escapedName),void 0,Gn)?[n]:Au(_n,zn=>{if(zn.flags&2097152&&zn.escapedName!=="export="&&zn.escapedName!=="default"&&!(cO(zn)&&s&&zc(Rn(s)))&&(!_||dt(zn.declarations,yy))&&(An?!dt(zn.declarations,Zle):!0)&&(Gn||!lc(zn,281))){const Ht=hl(zn),mn=Zt(zn,Ht,Gn);if(mn)return mn}if(zn.escapedName===n.escapedName&&zn.exportSymbol&&Ze(Ma(zn.exportSymbol),void 0,Gn))return[n]})||(_n===pe?Zt(Ge,Ge,Gn):void 0)}function Zt(_n,Gn,An){if(Ze(_n,Gn,An))return[_n];const qt=zu(Gn),zn=qt&&Se(qt,!0);if(zn&&Te(_n,_u(c)))return[_n].concat(zn)}}function tb(n,s,c){let _=!1;return V1(s,d=>{let h=Ma(d.get(n.escapedName));if(!h)return!1;if(h===n)return!0;const T=h.flags&2097152&&!lc(h,281);return h=T?hl(h):h,(T?ku(h):h.flags)&c?(_=!0,!0):!1}),_}function pk(n){if(n.declarations&&n.declarations.length){for(const s of n.declarations)switch(s.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function nb(n,s){return Ut(n,s,788968,!1,!0).accessibility===0}function rb(n,s){return Ut(n,s,111551,!1,!0).accessibility===0}function S(n,s,c){return Ut(n,s,c,!1,!1).accessibility===0}function te(n,s,c,_,d,h){if(!Nn(n))return;let T,P=!1;for(const O of n){const $=Fm(O,s,_,!1);if($){T=O;const Se=Ji($[0],d);if(Se)return Se}if(h&&dt(O.declarations,Qr)){if(d){P=!0;continue}return{accessibility:0}}const re=Y2(O,s,_),ce=te(re,s,c,c===O?_u(_):_,d,h);if(ce)return ce}if(P)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ii(c,s,_),errorModuleName:T!==c?ii(T,s,1920):void 0}}function et(n,s,c,_){return Ut(n,s,c,_,!0)}function Ut(n,s,c,_,d){if(n&&s){const h=te([n],s,n,c,_,d);if(h)return h;const T=pn(n.declarations,hr);if(T){const P=hr(s);if(T!==P)return{accessibility:2,errorSymbolName:ii(n,s,c),errorModuleName:ii(T),errorNode:Kn(s)?s:void 0}}return{accessibility:1,errorSymbolName:ii(n,s,c)}}return{accessibility:0}}function hr(n){const s=In(n,vi);return s&&vr(s)}function vi(n){return __(n)||n.kind===312&&Yu(n)}function Qr(n){return T9(n)||n.kind===312&&Yu(n)}function Ji(n,s){let c;if(!Xi(zr(n.declarations,h=>h.kind!==80),_))return;return{accessibility:0,aliasesToMakeVisible:c};function _(h){var T,P;if(!hd(h)){const O=ev(h);if(O&&!Lr(O,1)&&hd(O.parent))return d(h,O);if(Ri(h)&&ic(h.parent.parent)&&!Lr(h.parent.parent,1)&&hd(h.parent.parent.parent))return d(h,h.parent.parent);if(x9(h)&&!Lr(h,1)&&hd(h.parent))return d(h,h);if(Oa(h)){if(n.flags&2097152&&Kn(h)&&((T=h.parent)==null?void 0:T.parent)&&Ri(h.parent.parent)&&((P=h.parent.parent.parent)==null?void 0:P.parent)&&ic(h.parent.parent.parent.parent)&&!Lr(h.parent.parent.parent.parent,1)&&h.parent.parent.parent.parent.parent&&hd(h.parent.parent.parent.parent.parent))return d(h,h.parent.parent.parent.parent);if(n.flags&2){const $=In(h,ic);return Lr($,1)?!0:hd($.parent)?d(h,$):!1}}return!1}return!0}function d(h,T){return s&&(jr(h).isVisible=!0,c=jg(c,T)),!0}}function zs(n,s){let c;n.parent.kind===186||n.parent.kind===233&&!Km(n.parent)||n.parent.kind===167?c=1160127:n.kind===166||n.kind===211||n.parent.kind===271?c=1920:c=788968;const _=Ku(n),d=Lc(s,_.escapedText,c,void 0,void 0,!1);return d&&d.flags&262144&&c&788968?{accessibility:0}:!d&&c2(_)&&et(vr(ru(_,!1,!1)),_,c,!1).accessibility===0?{accessibility:0}:d&&Ji(d,!0)||{accessibility:1,errorSymbolName:el(_),errorNode:_}}function ii(n,s,c,_=4,d){let h=70221824;_&2&&(h|=128),_&1&&(h|=512),_&8&&(h|=16384),_&32&&(h|=134217728),_&16&&(h|=1073741824);const T=_&4?ct.symbolToNode:ct.symbolToEntityName;return d?P(d).getText():KC(P);function P(O){const $=T(n,c,s,h),re=(s==null?void 0:s.kind)===312?hX():w2(),ce=s&&Rn(s);return re.writeNode(4,$,ce,O),O}}function Rl(n,s,c=0,_,d){return d?h(d).getText():KC(h);function h(T){let P;c&262144?P=_===1?185:184:P=_===1?180:179;const O=ct.signatureToSignatureDeclaration(n,P,s,Nh(c)|70221824|512),$=s5(),re=s&&Rn(s);return $.writeNode(4,O,re,vq(T)),T}}function Cn(n,s,c=1064960,_=hD("")){const d=j.noErrorTruncation||c&1,h=ct.typeToTypeNode(n,s,Nh(c)|70221824|(d?1:0));if(h===void 0)return E.fail("should always get typenode");const T=n!==Ae?w2():gX(),P=s&&Rn(s);T.writeNode(4,h,P,_);const O=_.getText(),$=d?AO*2:JD*2;return $&&O&&O.length>=$?O.substr(0,$-3)+"...":O}function Ah(n,s){let c=Cg(n.symbol)?Cn(n,n.symbol.valueDeclaration):Cn(n),_=Cg(s.symbol)?Cn(s,s.symbol.valueDeclaration):Cn(s);return c===_&&(c=Y_(n),_=Y_(s)),[c,_]}function Y_(n){return Cn(n,void 0,64)}function Cg(n){return n&&!!n.valueDeclaration&&nt(n.valueDeclaration)&&!Cf(n.valueDeclaration)}function Nh(n=0){return n&848330091}function ib(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===i_(n.symbol)||!!(n.flags&524288)&&!!(Rr(n)&16777216))}function dk(){return{typeToTypeNode:(Qe,me,Wn,Mn)=>s(me,Wn,Mn,mr=>_(Qe,mr)),indexInfoToIndexSignatureDeclaration:(Qe,me,Wn,Mn)=>s(me,Wn,Mn,mr=>re(Qe,mr,void 0)),signatureToSignatureDeclaration:(Qe,me,Wn,Mn,mr)=>s(Wn,Mn,mr,Tr=>ce(Qe,me,Tr)),symbolToEntityName:(Qe,me,Wn,Mn,mr)=>s(Wn,Mn,mr,Tr=>Vi(Qe,Tr,me,!1)),symbolToExpression:(Qe,me,Wn,Mn,mr)=>s(Wn,Mn,mr,Tr=>ei(Qe,Tr,me)),symbolToTypeParameterDeclarations:(Qe,me,Wn,Mn)=>s(me,Wn,Mn,mr=>An(Qe,mr)),symbolToParameterDeclaration:(Qe,me,Wn,Mn)=>s(me,Wn,Mn,mr=>St(Qe,mr)),typeParameterToDeclaration:(Qe,me,Wn,Mn)=>s(me,Wn,Mn,mr=>Ze(Qe,mr)),symbolTableToDeclarationStatements:(Qe,me,Wn,Mn,mr)=>s(me,Wn,Mn,Tr=>z_(Qe,Tr,mr)),symbolToNode:(Qe,me,Wn,Mn,mr)=>s(Wn,Mn,mr,Tr=>n(Qe,Tr,me))};function n(Qe,me,Wn){if(me.flags&1073741824){if(Qe.valueDeclaration){const mr=os(Qe.valueDeclaration);if(mr&&Ga(mr))return mr}const Mn=Mi(Qe).nameType;if(Mn&&Mn.flags&9216)return me.enclosingDeclaration=Mn.symbol.valueDeclaration,I.createComputedPropertyName(ei(Mn.symbol,me,Wn))}return ei(Qe,me,Wn)}function s(Qe,me,Wn,Mn){E.assert(Qe===void 0||(Qe.flags&16)===0);const mr=Wn!=null&&Wn.trackSymbol?Wn.moduleResolverHost:me&134217728?GPe(e):void 0,Tr={enclosingDeclaration:Qe,flags:me||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Tr.tracker=new xL(Tr,Wn,mr);const Ki=Mn(Tr);return Tr.truncating&&Tr.flags&1&&Tr.tracker.reportTruncationError(),Tr.encounteredError?void 0:Ki}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AO:JD)}function _(Qe,me){const Wn=me.flags,Mn=d(Qe,me);return me.flags=Wn,Mn}function d(Qe,me){var Wn,Mn;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const mr=me.flags&8388608;if(me.flags&=-8388609,!Qe){if(!(me.flags&262144)){me.encounteredError=!0;return}return me.approximateLength+=3,I.createKeywordTypeNode(133)}if(me.flags&536870912||(Qe=qp(Qe)),Qe.flags&1)return Qe.aliasSymbol?I.createTypeReferenceNode(mn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,me)):Qe===Ae?Y3(I.createKeywordTypeNode(133),3,"unresolved"):(me.approximateLength+=3,I.createKeywordTypeNode(Qe===_t?141:133));if(Qe.flags&2)return I.createKeywordTypeNode(159);if(Qe.flags&4)return me.approximateLength+=6,I.createKeywordTypeNode(154);if(Qe.flags&8)return me.approximateLength+=6,I.createKeywordTypeNode(150);if(Qe.flags&64)return me.approximateLength+=6,I.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return me.approximateLength+=7,I.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){const sn=X_(Qe.symbol),yr=bn(sn,me,788968);if(mo(sn)===Qe)return yr;const ri=bc(Qe.symbol);return pf(ri,0)?Ni(yr,I.createTypeReferenceNode(ri,void 0)):cg(yr)?(yr.isTypeOf=!0,I.createIndexedAccessTypeNode(yr,I.createLiteralTypeNode(I.createStringLiteral(ri)))):ap(yr)?I.createIndexedAccessTypeNode(I.createTypeQueryNode(yr.typeName),I.createLiteralTypeNode(I.createStringLiteral(ri))):E.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return bn(Qe.symbol,me,788968)}if(Qe.flags&128)return me.approximateLength+=Qe.value.length+2,I.createLiteralTypeNode(Xn(I.createStringLiteral(Qe.value,!!(me.flags&268435456)),16777216));if(Qe.flags&256){const sn=Qe.value;return me.approximateLength+=(""+sn).length,I.createLiteralTypeNode(sn<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-sn)):I.createNumericLiteral(sn))}if(Qe.flags&2048)return me.approximateLength+=u2(Qe.value).length+1,I.createLiteralTypeNode(I.createBigIntLiteral(Qe.value));if(Qe.flags&512)return me.approximateLength+=Qe.intrinsicName.length,I.createLiteralTypeNode(Qe.intrinsicName==="true"?I.createTrue():I.createFalse());if(Qe.flags&8192){if(!(me.flags&1048576)){if(rb(Qe.symbol,me.enclosingDeclaration))return me.approximateLength+=6,bn(Qe.symbol,me,111551);me.tracker.reportInaccessibleUniqueSymbolError&&me.tracker.reportInaccessibleUniqueSymbolError()}return me.approximateLength+=13,I.createTypeOperatorNode(158,I.createKeywordTypeNode(155))}if(Qe.flags&16384)return me.approximateLength+=4,I.createKeywordTypeNode(116);if(Qe.flags&32768)return me.approximateLength+=9,I.createKeywordTypeNode(157);if(Qe.flags&65536)return me.approximateLength+=4,I.createLiteralTypeNode(I.createNull());if(Qe.flags&131072)return me.approximateLength+=5,I.createKeywordTypeNode(146);if(Qe.flags&4096)return me.approximateLength+=6,I.createKeywordTypeNode(155);if(Qe.flags&67108864)return me.approximateLength+=6,I.createKeywordTypeNode(151);if(W3(Qe))return me.flags&4194304&&(!me.encounteredError&&!(me.flags&32768)&&(me.encounteredError=!0),(Mn=(Wn=me.tracker).reportInaccessibleThisError)==null||Mn.call(Wn)),me.approximateLength+=4,I.createThisTypeNode();if(!mr&&Qe.aliasSymbol&&(me.flags&16384||nb(Qe.aliasSymbol,me.enclosingDeclaration))){const sn=O(Qe.aliasTypeArguments,me);return K2(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?I.createTypeReferenceNode(I.createIdentifier(""),sn):Nn(sn)===1&&Qe.aliasSymbol===vt.symbol?I.createArrayTypeNode(sn[0]):bn(Qe.aliasSymbol,me,788968,sn)}const Tr=Rr(Qe);if(Tr&4)return E.assert(!!(Qe.flags&524288)),Qe.node?Lt(Qe,wn):wn(Qe);if(Qe.flags&262144||Tr&3){if(Qe.flags&262144&&ys(me.inferTypeParameters,Qe)){me.approximateLength+=bc(Qe.symbol).length+6;let yr;const ri=s_(Qe);if(ri){const Zr=m4e(Qe,!0);Zr&&Pg(ri,Zr)||(me.approximateLength+=9,yr=ri&&_(ri,me))}return I.createInferTypeNode(Te(Qe,me,yr))}if(me.flags&4&&Qe.flags&262144&&!nb(Qe.symbol,me.enclosingDeclaration)){const yr=fs(Qe,me);return me.approximateLength+=lr(yr).length,I.createTypeReferenceNode(I.createIdentifier(lr(yr)),void 0)}if(Qe.symbol)return bn(Qe.symbol,me,788968);const sn=(Qe===q_||Qe===vo)&&M&&M.symbol?(Qe===vo?"sub-":"super-")+bc(M.symbol):"?";return I.createTypeReferenceNode(I.createIdentifier(sn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){const sn=Qe.flags&1048576?v0(Qe.types):Qe.types;if(Nn(sn)===1)return _(sn[0],me);const yr=O(sn,me,!0);if(yr&&yr.length>0)return Qe.flags&1048576?I.createUnionTypeNode(yr):I.createIntersectionTypeNode(yr);!me.encounteredError&&!(me.flags&262144)&&(me.encounteredError=!0);return}if(Tr&48)return E.assert(!!(Qe.flags&524288)),$t(Qe);if(Qe.flags&4194304){const sn=Qe.type;me.approximateLength+=6;const yr=_(sn,me);return I.createTypeOperatorNode(143,yr)}if(Qe.flags&134217728){const sn=Qe.texts,yr=Qe.types,ri=I.createTemplateHead(sn[0]),Zr=I.createNodeArray(an(yr,(ds,Dc)=>I.createTemplateLiteralTypeSpan(_(ds,me),(DcKi(sn));if(Qe.flags&33554432)return _(Qe.baseType,me);return E.fail("Should be unreachable.");function Ki(sn){const yr=_(sn.checkType,me);if(me.approximateLength+=15,me.flags&4&&sn.root.isDistributive&&!(sn.checkType.flags&262144)){const Xs=zf(Pa(262144,"T")),Bo=fs(Xs,me),Xa=I.createTypeReferenceNode(Bo);me.approximateLength+=37;const Af=lx(sn.root.checkType,Xs,sn.mapper),Bg=me.inferTypeParameters;me.inferTypeParameters=sn.root.inferTypeParameters;const He=_(zi(sn.root.extendsType,Af),me);me.inferTypeParameters=Bg;const at=yi(zi(ai(sn.root.node.trueType),Af)),zt=yi(zi(ai(sn.root.node.falseType),Af));return I.createConditionalTypeNode(yr,I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Xa.typeName))),I.createConditionalTypeNode(I.createTypeReferenceNode(I.cloneNode(Bo)),_(sn.checkType,me),I.createConditionalTypeNode(Xa,He,at,zt),I.createKeywordTypeNode(146)),I.createKeywordTypeNode(146))}const ri=me.inferTypeParameters;me.inferTypeParameters=sn.root.inferTypeParameters;const Zr=_(sn.extendsType,me);me.inferTypeParameters=ri;const ds=yi(ey(sn)),Dc=yi(ty(sn));return I.createConditionalTypeNode(yr,Zr,ds,Dc)}function yi(sn){var yr,ri,Zr;return sn.flags&1048576?(yr=me.visitedTypes)!=null&&yr.has(S_(sn))?(me.flags&131072||(me.encounteredError=!0,(Zr=(ri=me.tracker)==null?void 0:ri.reportCyclicStructureError)==null||Zr.call(ri)),h(me)):Lt(sn,ds=>_(ds,me)):_(sn,me)}function fr(sn){return!!PJ(sn)}function st(sn){return!!sn.target&&fr(sn.target)&&!fr(sn)}function wt(sn){var yr;E.assert(!!(sn.flags&524288));const ri=sn.declaration.readonlyToken?I.createToken(sn.declaration.readonlyToken.kind):void 0,Zr=sn.declaration.questionToken?I.createToken(sn.declaration.questionToken.kind):void 0;let ds,Dc;const Xs=!BE(sn)&&!(xk(sn).flags&2)&&me.flags&4&&!(Wf(sn).flags&262144&&((yr=s_(Wf(sn)))==null?void 0:yr.flags)&4194304);if(BE(sn)){if(st(sn)&&me.flags&4){const at=zf(Pa(262144,"T")),zt=fs(at,me);Dc=I.createTypeReferenceNode(zt)}ds=I.createTypeOperatorNode(143,Dc||_(xk(sn),me))}else if(Xs){const at=zf(Pa(262144,"T")),zt=fs(at,me);Dc=I.createTypeReferenceNode(zt),ds=Dc}else ds=_(Wf(sn),me);const Bo=Te(Up(sn),me,ds),Xa=sn.declaration.nameType?_(S0(sn),me):void 0,Af=_(db(Dg(sn),!!(tm(sn)&4)),me),Bg=I.createMappedTypeNode(ri,Bo,Xa,Zr,Af,void 0);me.approximateLength+=10;const He=Xn(Bg,1);if(st(sn)&&me.flags&4){const at=zi(s_(ai(sn.declaration.typeParameter.constraint.type))||jt,sn.mapper);return I.createConditionalTypeNode(_(xk(sn),me),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Dc.typeName),at.flags&2?void 0:_(at,me))),He,I.createKeywordTypeNode(146))}else if(Xs)return I.createConditionalTypeNode(_(Wf(sn),me),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Dc.typeName),I.createTypeOperatorNode(143,_(xk(sn),me)))),He,I.createKeywordTypeNode(146));return He}function $t(sn){var yr,ri;const Zr=sn.id,ds=sn.symbol;if(ds){const Xs=ib(sn)?788968:111551;if(xd(ds.valueDeclaration))return bn(ds,me,Xs);if(ds.flags&32&&!aJ(ds)&&!(ds.valueDeclaration&&ni(ds.valueDeclaration)&&me.flags&2048&&(!Qc(ds.valueDeclaration)||et(ds,me.enclosingDeclaration,Xs,!1).accessibility!==0))||ds.flags&896||Dc())return bn(ds,me,Xs);if((yr=me.visitedTypes)!=null&&yr.has(Zr)){const Bo=W1(sn);return Bo?bn(Bo,me,788968):h(me)}else return Lt(sn,tn)}else{if(!!(Rr(sn)&8388608)){const Bo=sn;if(Q6(Bo.node)){const Xa=pa(me,Bo.node);if(Xa)return Xa}return(ri=me.visitedTypes)!=null&&ri.has(Zr)?h(me):Lt(sn,tn)}return tn(sn)}function Dc(){var Xs;const Bo=!!(ds.flags&8192)&&dt(ds.declarations,Af=>Os(Af)),Xa=!!(ds.flags&16)&&(ds.parent||pn(ds.declarations,Af=>Af.parent.kind===312||Af.parent.kind===268));if(Bo||Xa)return(!!(me.flags&4096)||((Xs=me.visitedTypes)==null?void 0:Xs.has(Zr)))&&(!(me.flags&8)||rb(ds,me.enclosingDeclaration))}}function Lt(sn,yr){var ri,Zr;const ds=sn.id,Dc=Rr(sn)&16&&sn.symbol&&sn.symbol.flags&32,Xs=Rr(sn)&4&&sn.node?"N"+Ra(sn.node):sn.flags&16777216?"N"+Ra(sn.root.node):sn.symbol?(Dc?"+":"")+ya(sn.symbol):void 0;me.visitedTypes||(me.visitedTypes=new Set),Xs&&!me.symbolDepth&&(me.symbolDepth=new Map);const Bo=me.enclosingDeclaration&&jr(me.enclosingDeclaration),Xa=`${S_(sn)}|${me.flags}`;Bo&&(Bo.serializedTypes||(Bo.serializedTypes=new Map));const Af=(ri=Bo==null?void 0:Bo.serializedTypes)==null?void 0:ri.get(Xa);if(Af)return Af.truncating&&(me.truncating=!0),me.approximateLength+=Af.addedLength,Ln(Af.node);let Bg;if(Xs){if(Bg=me.symbolDepth.get(Xs)||0,Bg>10)return h(me);me.symbolDepth.set(Xs,Bg+1)}me.visitedTypes.add(ds);const He=me.approximateLength,at=yr(sn),zt=me.approximateLength-He;return!me.reportedDiagnostic&&!me.encounteredError&&((Zr=Bo==null?void 0:Bo.serializedTypes)==null||Zr.set(Xa,{node:at,truncating:me.truncating,addedLength:zt})),me.visitedTypes.delete(ds),Xs&&me.symbolDepth.set(Xs,Bg),at;function Ln(en){return!Do(en)&&ts(en)===en?en:Ke(I.cloneNode(fn(en,Ln,i0,pr)),en)}function pr(en,sr,$r,Di,ps){return en&&en.length===0?Ke(I.createNodeArray(void 0,en.hasTrailingComma),en):Dn(en,sr,$r,Di,ps)}}function tn(sn){if(ff(sn)||sn.containsError)return wt(sn);const yr=Wp(sn);if(!yr.properties.length&&!yr.indexInfos.length){if(!yr.callSignatures.length&&!yr.constructSignatures.length)return me.approximateLength+=2,Xn(I.createTypeLiteralNode(void 0),1);if(yr.callSignatures.length===1&&!yr.constructSignatures.length){const Xs=yr.callSignatures[0];return ce(Xs,184,me)}if(yr.constructSignatures.length===1&&!yr.callSignatures.length){const Xs=yr.constructSignatures[0];return ce(Xs,185,me)}}const ri=zr(yr.constructSignatures,Xs=>!!(Xs.flags&4));if(dt(ri)){const Xs=an(ri,ub);return yr.callSignatures.length+(yr.constructSignatures.length-ri.length)+yr.indexInfos.length+(me.flags&2048?M0(yr.properties,Xa=>!(Xa.flags&4194304)):Nn(yr.properties))&&Xs.push(fk(yr)),_(oa(Xs),me)}const Zr=me.flags;me.flags|=4194304;const ds=Ns(yr);me.flags=Zr;const Dc=I.createTypeLiteralNode(ds);return me.approximateLength+=2,Xn(Dc,me.flags&1024?0:1),Dc}function wn(sn){let yr=uo(sn);if(sn.target===vt||sn.target===vn){if(me.flags&2){const ds=_(yr[0],me);return I.createTypeReferenceNode(sn.target===vt?"Array":"ReadonlyArray",[ds])}const ri=_(yr[0],me),Zr=I.createArrayTypeNode(ri);return sn.target===vt?Zr:I.createTypeOperatorNode(148,Zr)}else if(sn.target.objectFlags&8){if(yr=cl(yr,(ri,Zr)=>db(ri,!!(sn.target.elementFlags[Zr]&2))),yr.length>0){const ri=C0(sn),Zr=O(yr.slice(0,ri),me);if(Zr){const{labeledElementDeclarations:ds}=sn.target;for(let Xs=0;Xs0){const Xa=(sn.target.typeParameters||Ve).length;Dc=O(yr.slice(Zr,Xa),me)}const Xs=me.flags;me.flags|=16;const Bo=bn(sn.symbol,me,788968,Dc);return me.flags=Xs,ds?Ni(ds,Bo):Bo}}}function Ni(sn,yr){if(cg(sn)){let ri=sn.typeArguments,Zr=sn.qualifier;Zr&&(we(Zr)?ri!==Yb(Zr)&&(Zr=nh(I.cloneNode(Zr),ri)):ri!==Yb(Zr.right)&&(Zr=I.updateQualifiedName(Zr,Zr.left,nh(I.cloneNode(Zr.right),ri)))),ri=yr.typeArguments;const ds=Pi(yr);for(const Dc of ds)Zr=Zr?I.createQualifiedName(Zr,Dc):Dc;return I.updateImportTypeNode(sn,sn.argument,sn.assertions,Zr,ri,sn.isTypeOf)}else{let ri=sn.typeArguments,Zr=sn.typeName;we(Zr)?ri!==Yb(Zr)&&(Zr=nh(I.cloneNode(Zr),ri)):ri!==Yb(Zr.right)&&(Zr=I.updateQualifiedName(Zr,Zr.left,nh(I.cloneNode(Zr.right),ri))),ri=yr.typeArguments;const ds=Pi(yr);for(const Dc of ds)Zr=I.createQualifiedName(Zr,Dc);return I.updateTypeReferenceNode(sn,Zr,ri)}}function Pi(sn){let yr=sn.typeName;const ri=[];for(;!we(yr);)ri.unshift(yr.right),yr=yr.left;return ri.unshift(yr),ri}function Ns(sn){if(c(me))return[I.createPropertySignature(void 0,"...",void 0,void 0)];const yr=[];for(const ds of sn.callSignatures)yr.push(ce(ds,179,me));for(const ds of sn.constructSignatures)ds.flags&4||yr.push(ce(ds,180,me));for(const ds of sn.indexInfos)yr.push(re(ds,me,sn.objectFlags&1024?h(me):void 0));const ri=sn.properties;if(!ri)return yr;let Zr=0;for(const ds of ri){if(Zr++,me.flags&2048){if(ds.flags&4194304)continue;Lf(ds)&24&&me.tracker.reportPrivateInBaseOfClassExpression&&me.tracker.reportPrivateInBaseOfClassExpression(Oi(ds.escapedName))}if(c(me)&&Zr+2!(wn.flags&32768)),0);for(const wn of tn){const Ni=ce(wn,173,me,{name:yi,questionToken:fr});Wn.push(Lt(Ni))}if(tn.length||!fr)return}let st;T(Qe,me)?st=h(me):(mr&&(me.reverseMappedStack||(me.reverseMappedStack=[]),me.reverseMappedStack.push(Qe)),st=Tr?Wi(me,Tr,Qe,Ki):I.createKeywordTypeNode(133),mr&&me.reverseMappedStack.pop());const wt=Qp(Qe)?[I.createToken(148)]:void 0;wt&&(me.approximateLength+=9);const $t=I.createPropertySignature(wt,yi,fr,st);Wn.push(Lt($t));function Lt(tn){var wn;if(dt(Qe.declarations,Ni=>Ni.kind===355)){const Ni=(wn=Qe.declarations)==null?void 0:wn.find(Ns=>Ns.kind===355),Pi=vw(Ni.comment);Pi&&Dy(tn,[{kind:3,text:`* + * `+Pi.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Qe.valueDeclaration&&Xc(en,Qe.valueDeclaration);return en}}function O(Qe,me,qn){if(dt(Qe)){if(c(me))if(qn){if(Qe.length>2)return[_(Qe[0],me),I.createTypeReferenceNode(`... ${Qe.length-2} more ...`,void 0),_(Qe[Qe.length-1],me)]}else return[I.createTypeReferenceNode("...",void 0)];const fr=!(me.flags&64)?$f():void 0,vr=[];let Zi=0;for(const gi of Qe){if(Zi++,c(me)&&Zi+2{if(!wue(pr,([it],[wt])=>$(it,wt)))for(const[it,wt]of pr)vr[wt]=_(it,me)}),me.flags=gi}return vr}}function $(Qe,me){return Qe===me||!!Qe.symbol&&Qe.symbol===me.symbol||!!Qe.aliasSymbol&&Qe.aliasSymbol===me.aliasSymbol}function te(Qe,me,qn){const Rn=Mle(Qe)||"x",fr=_(Qe.keyType,me),vr=I.createParameterDeclaration(void 0,void 0,Rn,void 0,fr,void 0);return qn||(qn=_(Qe.type||ke,me)),!Qe.type&&!(me.flags&2097152)&&(me.encounteredError=!0),me.approximateLength+=Rn.length+4,I.createIndexSignature(Qe.isReadonly?[I.createToken(148)]:void 0,[vr],qn)}function ce(Qe,me,qn,Rn){var Ni,Bs,sn,dr,ti;var fr;const vr=qn.flags&256;vr&&(qn.flags&=-257),qn.approximateLength+=3;let Zi,gi;qn.flags&32&&Qe.target&&Qe.mapper&&Qe.target.typeParameters?gi=Qe.target.typeParameters.map(Zr=>_(Ji(Zr,Qe.mapper),qn)):Zi=Qe.typeParameters&&Qe.typeParameters.map(Zr=>Ze(Zr,qn));const pr=q6e(Qe,!0)[0];let it;if(qn.enclosingDeclaration&&Qe.declaration&&Qe.declaration!==qn.enclosingDeclaration&&!Zn(Qe.declaration)&&dt(pr)){const Zr=Jr(qn.enclosingDeclaration).fakeScopeForSignatureDeclaration?qn.enclosingDeclaration:void 0;E.assertOptionalNode(Zr,hs);const us=(Ni=Zr==null?void 0:Zr.locals)!=null?Ni:Us();let lc;for(const ra of pr)us.has(ra.escapedName)||(lc=gn(lc,ra.escapedName),us.set(ra.escapedName,ra));if(lc){let ra=function(){mn(lc,Yo=>us.delete(Yo))};if(Zr)it=ra;else{const Yo=Cm.createBlock(Ve);Jr(Yo).fakeScopeForSignatureDeclaration=!0,Yo.locals=us;const Xa=qn.enclosingDeclaration;Ta(Yo,Xa),qn.enclosingDeclaration=Yo,it=()=>{qn.enclosingDeclaration=Xa,ra()}}}}const wt=(dt(pr,Zr=>Zr!==pr[pr.length-1]&&!!(rc(Zr)&32768))?Qe.parameters:pr).map(Zr=>St(Zr,qn,me===176,Rn==null?void 0:Rn.privateSymbolVisitor,Rn==null?void 0:Rn.bundledImports)),$t=qn.flags&33554432?void 0:Se(Qe,qn);$t&&wt.unshift($t);let Mt;const en=Wf(Qe);if(en){const Zr=en.kind===2||en.kind===3?I.createToken(131):void 0,us=en.kind===1||en.kind===3?Xn(I.createIdentifier(en.parameterName),16777216):I.createThisTypeNode(),lc=en.type&&_(en.type,qn);Mt=I.createTypePredicateNode(Zr,us,lc)}else{const Zr=Va(Qe);Zr&&!(vr&&Wa(Zr))?Mt=oo(qn,Zr,Qe,Rn==null?void 0:Rn.privateSymbolVisitor,Rn==null?void 0:Rn.bundledImports):vr||(Mt=I.createKeywordTypeNode(133))}let Dn=Rn==null?void 0:Rn.modifiers;if(me===185&&Qe.flags&4){const Zr=Fd(Dn);Dn=I.createModifiersFromModifierFlags(Zr|256)}const Ai=me===179?I.createCallSignature(Zi,wt,Mt):me===180?I.createConstructSignature(Zi,wt,Mt):me===173?I.createMethodSignature(Dn,(Bs=Rn==null?void 0:Rn.name)!=null?Bs:I.createIdentifier(""),Rn==null?void 0:Rn.questionToken,Zi,wt,Mt):me===174?I.createMethodDeclaration(Dn,void 0,(sn=Rn==null?void 0:Rn.name)!=null?sn:I.createIdentifier(""),void 0,Zi,wt,Mt,void 0):me===176?I.createConstructorDeclaration(Dn,wt,void 0):me===177?I.createGetAccessorDeclaration(Dn,(dr=Rn==null?void 0:Rn.name)!=null?dr:I.createIdentifier(""),wt,Mt,void 0):me===178?I.createSetAccessorDeclaration(Dn,(ti=Rn==null?void 0:Rn.name)!=null?ti:I.createIdentifier(""),wt,void 0):me===181?I.createIndexSignature(Dn,wt,Mt):me===324?I.createJSDocFunctionType(wt,Mt):me===184?I.createFunctionTypeNode(Zi,wt,Mt!=null?Mt:I.createTypeReferenceNode(I.createIdentifier(""))):me===185?I.createConstructorTypeNode(Dn,Zi,wt,Mt!=null?Mt:I.createTypeReferenceNode(I.createIdentifier(""))):me===262?I.createFunctionDeclaration(Dn,void 0,Rn!=null&&Rn.name?Ms(Rn.name,we):I.createIdentifier(""),Zi,wt,Mt,void 0):me===218?I.createFunctionExpression(Dn,void 0,Rn!=null&&Rn.name?Ms(Rn.name,we):I.createIdentifier(""),Zi,wt,Mt,I.createBlock([])):me===219?I.createArrowFunction(Dn,Zi,wt,Mt,void 0,I.createBlock([])):E.assertNever(me);if(gi&&(Ai.typeArguments=I.createNodeArray(gi)),((fr=Qe.declaration)==null?void 0:fr.kind)===330&&Qe.declaration.parent.kind===346){const Zr=el(Qe.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(us=>us.replace(/^\s+/," ")).join(` -`);X3(Ai,3,Zr,!0)}return it==null||it(),Ai}function Se(Qe,me){if(Qe.thisParameter)return St(Qe.thisParameter,me);if(Qe.declaration&&Zn(Qe.declaration)){const qn=ZI(Qe.declaration);if(qn&&qn.typeExpression)return I.createParameterDeclaration(void 0,void 0,"this",void 0,_(ii(qn.typeExpression),me))}}function Te(Qe,me,qn){const Rn=me.flags;me.flags&=-513;const fr=I.createModifiersFromModifierFlags(Lie(Qe)),vr=ws(Qe,me),Zi=ob(Qe),gi=Zi&&_(Zi,me);return me.flags=Rn,I.createTypeParameterDeclaration(fr,vr,qn,gi)}function Ze(Qe,me,qn=s_(Qe)){const Rn=qn&&_(qn,me);return Te(Qe,me,Rn)}function St(Qe,me,qn,Rn,fr){let vr=uc(Qe,169);!vr&&!pm(Qe)&&(vr=uc(Qe,348));let Zi=$n(Qe);vr&&D7e(vr)&&(Zi=A0(Zi));const gi=Wi(me,Zi,Qe,me.enclosingDeclaration,Rn,fr),pr=!(me.flags&8192)&&qn&&vr&&Ap(vr)?an(qv(vr),I.cloneNode):void 0,wt=vr&&Qm(vr)||rc(Qe)&32768?I.createToken(26):void 0,$t=vr&&vr.name?vr.name.kind===80?Xn(I.cloneNode(vr.name),16777216):vr.name.kind===166?Xn(I.cloneNode(vr.name.right),16777216):Ai(vr.name):xc(Qe),en=vr&&jE(vr)||rc(Qe)&16384?I.createToken(58):void 0,Dn=I.createParameterDeclaration(pr,wt,$t,en,gi,void 0);return me.approximateLength+=xc(Qe).length+3,Dn;function Ai(Ni){return Bs(Ni);function Bs(sn){me.tracker.canTrackSymbol&&Ga(sn)&&kre(sn)&&Kt(sn.expression,me.enclosingDeclaration,me);let dr=pn(sn,Bs,n0,void 0,Bs);return Fa(dr)&&(dr=I.updateBindingElement(dr,dr.dotDotDotToken,dr.propertyName,dr.name,void 0)),Do(dr)||(dr=I.cloneNode(dr)),Xn(dr,16777217)}}}function Kt(Qe,me,qn){if(!qn.tracker.canTrackSymbol)return;const Rn=Ku(Qe),fr=Mc(Rn,Rn.escapedText,1160127,void 0,void 0,!0);fr&&qn.tracker.trackSymbol(fr,me,111551)}function _n(Qe,me,qn,Rn){return me.tracker.trackSymbol(Qe,me.enclosingDeclaration,qn),Gn(Qe,me,qn,Rn)}function Gn(Qe,me,qn,Rn){let fr;return!(Qe.flags&262144)&&(me.enclosingDeclaration||me.flags&64)&&!(me.flags&134217728)?(fr=E.checkDefined(Zi(Qe,qn,!0)),E.assert(fr&&fr.length>0)):fr=[Qe],fr;function Zi(gi,pr,it){let wt=Fm(gi,me.enclosingDeclaration,pr,!!(me.flags&128)),$t;if(!wt||K2(wt[0],me.enclosingDeclaration,wt.length===1?pr:cu(pr))){const en=X2(wt?wt[0]:gi,me.enclosingDeclaration,pr);if(Pn(en)){$t=en.map(Ni=>dt(Ni.declarations,$r)?Xt(Ni,me):void 0);const Dn=en.map((Ni,Bs)=>Bs);Dn.sort(Mt);const Ai=Dn.map(Ni=>en[Ni]);for(const Ni of Ai){const Bs=Zi(Ni,cu(pr),!1);if(Bs){if(Ni.exports&&Ni.exports.get("export=")&&Vu(Ni.exports.get("export="),gi)){wt=Bs;break}wt=Bs.concat(wt||[Eh(Ni,gi)||gi]);break}}}}if(wt)return wt;if(it||!(gi.flags&6144))return!it&&!Rn&&!!mn(gi.declarations,$r)?void 0:[gi];function Mt(en,Dn){const Ai=$t[en],Ni=$t[Dn];if(Ai&&Ni){const Bs=$u(Ni);return $u(Ai)===Bs?GA(Ai)-GA(Ni):Bs?-1:1}return 0}}}function Nn(Qe,me){let qn;return Mk(Qe).flags&524384&&(qn=I.createNodeArray(an(zp(Qe),fr=>Ze(fr,me)))),qn}function Ht(Qe,me,qn){var Rn;E.assert(Qe&&0<=me&&meBh(wt,pr.links.mapper)),qn)}else Zi=Nn(fr,qn)}return Zi}function Mn(Qe){return _S(Qe.objectType)?Mn(Qe.objectType):Qe}function Xt(Qe,me,qn){var it;let Rn=uc(Qe,312);if(!Rn){const wt=_c(Qe.declarations,$t=>YT($t,Qe));wt&&(Rn=uc(wt,312))}if(Rn&&Rn.moduleName!==void 0)return Rn.moduleName;if(!Rn){if(me.tracker.trackReferencedAmbientModule){const wt=Vr(Qe.declarations,__);if(Pn(wt))for(const $t of wt)me.tracker.trackReferencedAmbientModule($t,Qe)}if(hL.test(Qe.escapedName))return Qe.escapedName.substring(1,Qe.escapedName.length-1)}if(!me.enclosingDeclaration||!me.tracker.moduleResolverHost)return hL.test(Qe.escapedName)?Qe.escapedName.substring(1,Qe.escapedName.length-1):Bn(IW(Qe)).fileName;const fr=Bn(Ko(me.enclosingDeclaration)),vr=qn||(fr==null?void 0:fr.impliedNodeFormat),Zi=y8(fr.path,vr),gi=Fi(Qe);let pr=gi.specifierCache&&gi.specifierCache.get(Zi);if(!pr){const wt=!!Ao(j),{moduleResolverHost:$t}=me.tracker,Mt=wt?{...j,baseUrl:$t.getCommonSourceDirectory()}:j;pr=wa(ume(Qe,jt,Mt,fr,$t,{importModuleSpecifierPreference:wt?"non-relative":"project-relative",importModuleSpecifierEnding:wt?"minimal":vr===99?"js":void 0},{overrideImportMode:qn})),(it=gi.specifierCache)!=null||(gi.specifierCache=new Map),gi.specifierCache.set(Zi,pr)}return pr}function dn(Qe){const me=I.createIdentifier(Li(Qe.escapedName));return Qe.parent?I.createQualifiedName(dn(Qe.parent),me):me}function Cn(Qe,me,qn,Rn){var fr,vr,Zi,gi;const pr=_n(Qe,me,qn,!(me.flags&16384)),it=qn===111551;if(dt(pr[0].declarations,$r)){const Mt=pr.length>1?$t(pr,pr.length-1,1):void 0,en=Rn||Ht(pr,0,me),Dn=Bn(Ko(me.enclosingDeclaration)),Ai=h9(pr[0]);let Ni,Bs;if((Cc(j)===3||Cc(j)===99)&&(Ai==null?void 0:Ai.impliedNodeFormat)===99&&Ai.impliedNodeFormat!==(Dn==null?void 0:Dn.impliedNodeFormat)&&(Ni=Xt(pr[0],me,99),Bs=I.createImportTypeAssertionContainer(I.createAssertClause(I.createNodeArray([I.createAssertEntry(I.createStringLiteral("resolution-mode"),I.createStringLiteral("import"))]))),(vr=(fr=me.tracker).reportImportTypeNodeResolutionModeOverride)==null||vr.call(fr)),Ni||(Ni=Xt(pr[0],me)),!(me.flags&67108864)&&Cc(j)!==1&&Ni.indexOf("/node_modules/")>=0){const dr=Ni;if(Cc(j)===3||Cc(j)===99){const ti=(Dn==null?void 0:Dn.impliedNodeFormat)===99?1:99;Ni=Xt(pr[0],me,ti),Ni.indexOf("/node_modules/")>=0?Ni=dr:(Bs=I.createImportTypeAssertionContainer(I.createAssertClause(I.createNodeArray([I.createAssertEntry(I.createStringLiteral("resolution-mode"),I.createStringLiteral(ti===99?"import":"require"))]))),(gi=(Zi=me.tracker).reportImportTypeNodeResolutionModeOverride)==null||gi.call(Zi))}Bs||(me.encounteredError=!0,me.tracker.reportLikelyUnsafeImportRequiredError&&me.tracker.reportLikelyUnsafeImportRequiredError(dr))}const sn=I.createLiteralTypeNode(I.createStringLiteral(Ni));if(me.tracker.trackExternalModuleSymbolOfImportTypeNode&&me.tracker.trackExternalModuleSymbolOfImportTypeNode(pr[0]),me.approximateLength+=Ni.length+10,!Mt||Xu(Mt)){if(Mt){const dr=we(Mt)?Mt:Mt.right;th(dr,void 0)}return I.createImportTypeNode(sn,Bs,Mt,en,it)}else{const dr=Mn(Mt),ti=dr.objectType.typeName;return I.createIndexedAccessTypeNode(I.createImportTypeNode(sn,Bs,ti,en,it),dr.indexType)}}const wt=$t(pr,pr.length-1,0);if(_S(wt))return wt;if(it)return I.createTypeQueryNode(wt);{const Mt=we(wt)?wt:wt.right,en=$b(Mt);return th(Mt,void 0),I.createTypeReferenceNode(wt,en)}function $t(Mt,en,Dn){const Ai=en===Mt.length-1?Rn:Ht(Mt,en,me),Ni=Mt[en],Bs=Mt[en-1];let sn;if(en===0)me.flags|=16777216,sn=uv(Ni,me),me.approximateLength+=(sn?sn.length:0)+1,me.flags^=16777216;else if(Bs&&zu(Bs)){const ti=zu(Bs);Au(ti,(Zr,us)=>{if(Vu(Zr,Ni)&&!LE(us)&&us!=="export=")return sn=Li(us),!0})}if(sn===void 0){const ti=_c(Ni.declarations,os);if(ti&&Ga(ti)&&Xu(ti.expression)){const Zr=$t(Mt,en-1,Dn);return Xu(Zr)?I.createIndexedAccessTypeNode(I.createParenthesizedType(I.createTypeQueryNode(Zr)),I.createTypeQueryNode(ti.expression)):Zr}sn=uv(Ni,me)}if(me.approximateLength+=sn.length+1,!(me.flags&16)&&Bs&&Ph(Bs)&&Ph(Bs).get(Ni.escapedName)&&Vu(Ph(Bs).get(Ni.escapedName),Ni)){const ti=$t(Mt,en-1,Dn);return _S(ti)?I.createIndexedAccessTypeNode(ti,I.createLiteralTypeNode(I.createStringLiteral(sn))):I.createIndexedAccessTypeNode(I.createTypeReferenceNode(ti,Ai),I.createLiteralTypeNode(I.createStringLiteral(sn)))}const dr=Xn(I.createIdentifier(sn),16777216);if(Ai&&th(dr,I.createNodeArray(Ai)),dr.symbol=Ni,en>Dn){const ti=$t(Mt,en-1,Dn);return Xu(ti)?I.createQualifiedName(ti,dr):E.fail("Impossible construct - an export of an indexed access cannot be reachable")}return dr}}function Un(Qe,me,qn){const Rn=Mc(me.enclosingDeclaration,Qe,788968,void 0,Qe,!1);return Rn?!(Rn.flags&262144&&Rn===qn.symbol):!1}function ws(Qe,me){var qn,Rn;if(me.flags&4&&me.typeParameterNames){const vr=me.typeParameterNames.get(S_(Qe));if(vr)return vr}let fr=Sr(Qe.symbol,me,788968,!0);if(!(fr.kind&80))return I.createIdentifier("(Missing type parameter)");if(me.flags&4){const vr=fr.escapedText;let Zi=((qn=me.typeParameterNamesByTextNextNameCount)==null?void 0:qn.get(vr))||0,gi=vr;for(;((Rn=me.typeParameterNamesByText)==null?void 0:Rn.has(gi))||Un(gi,me,Qe);)Zi++,gi=`${vr}_${Zi}`;if(gi!==vr){const pr=$b(fr);fr=I.createIdentifier(gi),th(fr,pr)}(me.typeParameterNamesByTextNextNameCount||(me.typeParameterNamesByTextNextNameCount=new Map)).set(vr,Zi),(me.typeParameterNames||(me.typeParameterNames=new Map)).set(S_(Qe),fr),(me.typeParameterNamesByText||(me.typeParameterNamesByText=new Set)).add(vr)}return fr}function Sr(Qe,me,qn,Rn){const fr=_n(Qe,me,qn);return Rn&&fr.length!==1&&!me.encounteredError&&!(me.flags&65536)&&(me.encounteredError=!0),vr(fr,fr.length-1);function vr(Zi,gi){const pr=Ht(Zi,gi,me),it=Zi[gi];gi===0&&(me.flags|=16777216);const wt=uv(it,me);gi===0&&(me.flags^=16777216);const $t=Xn(I.createIdentifier(wt),16777216);return pr&&th($t,I.createNodeArray(pr)),$t.symbol=it,gi>0?I.createQualifiedName(vr(Zi,gi-1),$t):$t}}function Ts(Qe,me,qn){const Rn=_n(Qe,me,qn);return fr(Rn,Rn.length-1);function fr(vr,Zi){const gi=Ht(vr,Zi,me),pr=vr[Zi];Zi===0&&(me.flags|=16777216);let it=uv(pr,me);Zi===0&&(me.flags^=16777216);let wt=it.charCodeAt(0);if(Ww(wt)&&dt(pr.declarations,$r))return I.createStringLiteral(Xt(pr,me));if(Zi===0||oH(it,ee)){const $t=Xn(I.createIdentifier(it),16777216);return gi&&th($t,I.createNodeArray(gi)),$t.symbol=pr,Zi>0?I.createPropertyAccessExpression(fr(vr,Zi-1),$t):$t}else{wt===91&&(it=it.substring(1,it.length-1),wt=it.charCodeAt(0));let $t;if(Ww(wt)&&!(pr.flags&8)?$t=I.createStringLiteral(Cp(it).replace(/\\./g,Mt=>Mt.substring(1)),wt===39):""+ +it===it&&($t=I.createNumericLiteral(+it)),!$t){const Mt=Xn(I.createIdentifier(it),16777216);gi&&th(Mt,I.createNodeArray(gi)),Mt.symbol=pr,$t=Mt}return I.createElementAccessExpression(fr(vr,Zi-1),$t)}}}function cc(Qe){const me=os(Qe);return!!me&&pa(me)}function uu(Qe){const me=os(Qe);return!!(me&&pa(me)&&(me.singleQuote||!Do(me)&&ts(el(me,!1),"'")))}function Hu(Qe,me){const qn=!!Pn(Qe.declarations)&&$i(Qe.declarations,cc),Rn=!!Pn(Qe.declarations)&&$i(Qe.declarations,uu),fr=am(Qe,me,Rn,qn);if(fr)return fr;const vr=Li(Qe.escapedName);return EO(vr,Oa(j),Rn,qn)}function am(Qe,me,qn,Rn){const fr=Fi(Qe).nameType;if(fr){if(fr.flags&384){const vr=""+fr.value;return!pf(vr,Oa(j))&&(Rn||!rg(vr))?I.createStringLiteral(vr,!!qn):rg(vr)&&ts(vr,"-")?I.createComputedPropertyName(I.createNumericLiteral(+vr)):EO(vr,Oa(j))}if(fr.flags&8192)return I.createComputedPropertyName(Ts(fr.symbol,me,111551))}}function Nt(Qe){const me={...Qe};return me.typeParameterNames&&(me.typeParameterNames=new Map(me.typeParameterNames)),me.typeParameterNamesByText&&(me.typeParameterNamesByText=new Set(me.typeParameterNamesByText)),me.typeParameterSymbolList&&(me.typeParameterSymbolList=new Set(me.typeParameterSymbolList)),me.tracker=new xL(me,me.tracker.inner,me.tracker.moduleResolverHost),me}function Qn(Qe,me){return Qe.declarations&&Fr(Qe.declarations,qn=>!!Vl(qn)&&(!me||!!On(qn,Rn=>Rn===me)))}function zi(Qe,me){return!(Br(me)&4)||!sp(Qe)||Pn(Qe.typeArguments)>=nm(me.target.typeParameters)}function xs(Qe){return Jr(Qe).fakeScopeForSignatureDeclaration?Qe.parent:Qe}function Wi(Qe,me,qn,Rn,fr,vr){if(!q(me)&&Rn){const pr=Qn(qn,xs(Rn));if(pr&&!Eo(pr)&&!gf(pr)){const it=Vl(pr);if(Da(it,pr,me)&&zi(it,me)){const wt=da(Qe,it,fr,vr);if(wt)return wt}}}const Zi=Qe.flags;me.flags&8192&&me.symbol===qn&&(!Qe.enclosingDeclaration||dt(qn.declarations,pr=>Bn(pr)===Bn(Qe.enclosingDeclaration)))&&(Qe.flags|=1048576);const gi=_(me,Qe);return Qe.flags=Zi,gi}function Da(Qe,me,qn){const Rn=ii(Qe);return Rn===qn?!0:ns(me)&&me.questionToken?Hf(qn,524288)===Rn:!1}function oo(Qe,me,qn,Rn,fr){if(!q(me)&&Qe.enclosingDeclaration){const vr=qn.declaration&&Kf(qn.declaration),Zi=xs(Qe.enclosingDeclaration);if(!!On(vr,gi=>gi===Zi)&&vr){const gi=ii(vr);if((gi.flags&262144&&gi.isThisType?Ji(gi,qn.mapper):gi)===me&&zi(vr,me)){const it=da(Qe,vr,Rn,fr);if(it)return it}}}return _(me,Qe)}function Ac(Qe,me,qn){let Rn=!1;const fr=Ku(Qe);if(Zn(Qe)&&(Rb(fr)||Zm(fr.parent)||gu(fr.parent)&&KW(fr.parent.left)&&Rb(fr.parent.right)))return Rn=!0,{introducesError:Rn,node:Qe};const vr=Xo(fr,67108863,!0,!0);if(vr&&(et(vr,me.enclosingDeclaration,67108863,!1).accessibility!==0?Rn=!0:(me.tracker.trackSymbol(vr,me.enclosingDeclaration,67108863),qn==null||qn(vr)),we(Qe))){const Zi=go(vr),gi=vr.flags&262144&&!eb(Zi.symbol,me.enclosingDeclaration)?ws(Zi,me):I.cloneNode(Qe);return gi.symbol=vr,{introducesError:Rn,node:Xn(or(gi,Qe),16777216)}}return{introducesError:Rn,node:Qe}}function da(Qe,me,qn,Rn){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let fr=!1;const vr=Bn(me),Zi=Ue(me,gi,Di);if(fr)return;return Zi===me?Ke(I.cloneNode(me),me):Zi;function gi(pr){if(jfe(pr)||pr.kind===326)return I.createKeywordTypeNode(133);if(Jfe(pr))return I.createKeywordTypeNode(159);if(t4(pr))return I.createUnionTypeNode([Ue(pr.type,gi,Di),I.createLiteralTypeNode(I.createNull())]);if(rG(pr))return I.createUnionTypeNode([Ue(pr.type,gi,Di),I.createKeywordTypeNode(157)]);if(xF(pr))return Ue(pr.type,gi);if(SF(pr))return I.createArrayTypeNode(Ue(pr.type,gi,Di));if(r4(pr))return I.createTypeLiteralNode(an(pr.jsDocPropertyTags,Mt=>{const en=we(Mt.name)?Mt.name:Mt.name.right,Dn=Wc(ii(pr),en.escapedText),Ai=Dn&&Mt.typeExpression&&ii(Mt.typeExpression.type)!==Dn?_(Dn,Qe):void 0;return I.createPropertySignature(void 0,en,Mt.isBracketed||Mt.typeExpression&&rG(Mt.typeExpression.type)?I.createToken(58):void 0,Ai||Mt.typeExpression&&Ue(Mt.typeExpression.type,gi,Di)||I.createKeywordTypeNode(133))}));if(sp(pr)&&we(pr.typeName)&&pr.typeName.escapedText==="")return or(I.createKeywordTypeNode(133),pr);if((nh(pr)||sp(pr))&&J9(pr))return I.createTypeLiteralNode([I.createIndexSignature(void 0,[I.createParameterDeclaration(void 0,void 0,"x",void 0,Ue(pr.typeArguments[0],gi,Di))],Ue(pr.typeArguments[1],gi,Di))]);if(n4(pr))if(x6(pr)){let Mt;return I.createConstructorTypeNode(void 0,An(pr.typeParameters,gi,Ho),qi(pr.parameters,(en,Dn)=>en.name&&we(en.name)&&en.name.escapedText==="new"?(Mt=en.type,void 0):I.createParameterDeclaration(void 0,it(en),wt(en,Dn),en.questionToken,Ue(en.type,gi,Di),void 0)),Ue(Mt||pr.type,gi,Di)||I.createKeywordTypeNode(133))}else return I.createFunctionTypeNode(An(pr.typeParameters,gi,Ho),an(pr.parameters,(Mt,en)=>I.createParameterDeclaration(void 0,it(Mt),wt(Mt,en),Mt.questionToken,Ue(Mt.type,gi,Di),void 0)),Ue(pr.type,gi,Di)||I.createKeywordTypeNode(133));if(sp(pr)&&Uw(pr)&&(!zi(pr,ii(pr))||S4e(pr)||st===Ek(pr,788968,!0)))return or(_(ii(pr),Qe),pr);if(my(pr)){const Mt=Jr(pr).resolvedSymbol;return Uw(pr)&&Mt&&(!pr.isTypeOf&&!(Mt.flags&788968)||!(Pn(pr.typeArguments)>=nm(zp(Mt))))?or(_(ii(pr),Qe),pr):I.updateImportTypeNode(pr,I.updateLiteralTypeNode(pr.argument,$t(pr,pr.argument.literal)),pr.assertions,pr.qualifier,An(pr.typeArguments,gi,Di),pr.isTypeOf)}if(Xu(pr)||Sc(pr)){const{introducesError:Mt,node:en}=Ac(pr,Qe,qn);if(fr=fr||Mt,en!==pr)return en}return vr&&Q6(pr)&&vo(vr,pr.pos).line===vo(vr,pr.end).line&&Xn(pr,1),pn(pr,gi,n0);function it(Mt){return Mt.dotDotDotToken||(Mt.type&&SF(Mt.type)?I.createToken(26):void 0)}function wt(Mt,en){return Mt.name&&we(Mt.name)&&Mt.name.escapedText==="this"?"this":it(Mt)?"args":`arg${en}`}function $t(Mt,en){if(Rn){if(Qe.tracker&&Qe.tracker.moduleResolverHost){const Dn=zae(Mt);if(Dn){const Ni={getCanonicalFileName:Ql(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>Qe.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>Qe.tracker.moduleResolverHost.getCommonSourceDirectory()},Bs=K9(Ni,Dn);return I.createStringLiteral(Bs)}}}else if(Qe.tracker&&Qe.tracker.trackExternalModuleSymbolOfImportTypeNode){const Dn=g0(en,en,void 0);Dn&&Qe.tracker.trackExternalModuleSymbolOfImportTypeNode(Dn)}return en}}}function K_(Qe,me,qn){const Rn=hl(I.createPropertyDeclaration,174,!0),fr=hl((ht,Tr,Xr,Yr)=>I.createPropertySignature(ht,Tr,Xr,Yr),173,!1),vr=me.enclosingDeclaration;let Zi=[];const gi=new Set,pr=[],it=me;me={...it,usedSymbolNames:new Set(it.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};const wt={...it.tracker.inner,trackSymbol:(ht,Tr,Xr)=>{var Yr;if(et(ht,Tr,Xr,!1).accessibility===0){const Ha=Gn(ht,me,Xr);ht.flags&4||ra(Ha[0])}else if((Yr=it.tracker.inner)!=null&&Yr.trackSymbol)return it.tracker.inner.trackSymbol(ht,Tr,Xr);return!1}};me.tracker=new xL(me,wt,it.tracker.moduleResolverHost),Au(Qe,(ht,Tr)=>{const Xr=Li(Tr);Eu(ht,Xr)});let $t=!qn;const Mt=Qe.get("export=");return Mt&&Qe.size>1&&Mt.flags&2097152&&(Qe=Us(),Qe.set("export=",Mt)),Zr(Qe),sn(Zi);function en(ht){return!!ht&&ht.kind===80}function Dn(ht){return ic(ht)?Vr(an(ht.declarationList.declarations,os),en):Vr([os(ht)],en)}function Ai(ht){const Tr=Fr(ht,dc),Xr=qc(ht,Nc);let Yr=Xr!==-1?ht[Xr]:void 0;if(Yr&&Tr&&Tr.isExportEquals&&we(Tr.expression)&&we(Yr.name)&&lr(Yr.name)===lr(Tr.expression)&&Yr.body&&jd(Yr.body)){const Kr=Vr(ht,Qi=>!!(I_(Qi)&1)),Ha=Yr.name;let Vs=Yr.body;if(Pn(Kr)&&(Yr=I.updateModuleDeclaration(Yr,Yr.modifiers,Yr.name,Vs=I.updateModuleBlock(Vs,I.createNodeArray([...Yr.body.statements,I.createExportDeclaration(void 0,!1,I.createNamedExports(an(Na(Kr,Qi=>Dn(Qi)),Qi=>I.createExportSpecifier(!1,void 0,Qi))),void 0)]))),ht=[...ht.slice(0,Xr),Yr,...ht.slice(Xr+1)]),!Fr(ht,Qi=>Qi!==Yr&&gw(Qi,Ha))){Zi=[];const Qi=!dt(Vs.statements,Ys=>Mr(Ys,1)||dc(Ys)||Yc(Ys));mn(Vs.statements,Ys=>{Xa(Ys,Qi?1:0)}),ht=[...Vr(ht,Ys=>Ys!==Yr&&Ys!==Tr),...Zi]}}return ht}function Ni(ht){const Tr=Vr(ht,Yr=>Yc(Yr)&&!Yr.moduleSpecifier&&!!Yr.exportClause&&ap(Yr.exportClause));Pn(Tr)>1&&(ht=[...Vr(ht,Kr=>!Yc(Kr)||!!Kr.moduleSpecifier||!Kr.exportClause),I.createExportDeclaration(void 0,!1,I.createNamedExports(Na(Tr,Kr=>Ms(Kr.exportClause,ap).elements)),void 0)]);const Xr=Vr(ht,Yr=>Yc(Yr)&&!!Yr.moduleSpecifier&&!!Yr.exportClause&&ap(Yr.exportClause));if(Pn(Xr)>1){const Yr=wC(Xr,Kr=>pa(Kr.moduleSpecifier)?">"+Kr.moduleSpecifier.text:">");if(Yr.length!==Xr.length)for(const Kr of Yr)Kr.length>1&&(ht=[...Vr(ht,Ha=>Kr.indexOf(Ha)===-1),I.createExportDeclaration(void 0,!1,I.createNamedExports(Na(Kr,Ha=>Ms(Ha.exportClause,ap).elements)),Kr[0].moduleSpecifier)])}return ht}function Bs(ht){const Tr=qc(ht,Xr=>Yc(Xr)&&!Xr.moduleSpecifier&&!Xr.assertClause&&!!Xr.exportClause&&ap(Xr.exportClause));if(Tr>=0){const Xr=ht[Tr],Yr=qi(Xr.exportClause.elements,Kr=>{if(!Kr.propertyName){const Ha=F7(ht),Vs=Vr(Ha,Qi=>gw(ht[Qi],Kr.name));if(Pn(Vs)&&$i(Vs,Qi=>LD(ht[Qi]))){for(const Qi of Vs)ht[Qi]=dr(ht[Qi]);return}}return Kr});Pn(Yr)?ht[Tr]=I.updateExportDeclaration(Xr,Xr.modifiers,Xr.isTypeOnly,I.updateNamedExports(Xr.exportClause,Yr),Xr.moduleSpecifier,Xr.assertClause):cy(ht,Tr)}return ht}function sn(ht){return ht=Ai(ht),ht=Ni(ht),ht=Bs(ht),vr&&(Ri(vr)&&Yu(vr)||Nc(vr))&&(!dt(ht,Cw)||!ole(ht)&&dt(ht,c9))&&ht.push(uA(I)),ht}function dr(ht){const Tr=(I_(ht)|1)&-3;return I.updateModifiers(ht,Tr)}function ti(ht){const Tr=I_(ht)&-2;return I.updateModifiers(ht,Tr)}function Zr(ht,Tr,Xr){Tr||pr.push(new Map),ht.forEach(Yr=>{us(Yr,!1,!!Xr)}),Tr||(pr[pr.length-1].forEach(Yr=>{us(Yr,!0,!!Xr)}),pr.pop())}function us(ht,Tr,Xr){const Yr=Ra(ht);if(gi.has(ya(Yr)))return;if(gi.add(ya(Yr)),!Tr||!!Pn(ht.declarations)&&dt(ht.declarations,Ha=>!!On(Ha,Vs=>Vs===vr))){const Ha=me;me=Nt(me),lc(ht,Tr,Xr),me.reportedDiagnostic&&(it.reportedDiagnostic=me.reportedDiagnostic),me=Ha}}function lc(ht,Tr,Xr){var Yr,Kr,Ha,Vs;const Qi=Li(ht.escapedName),Ys=ht.escapedName==="default";if(Tr&&!(me.flags&131072)&&Vx(Qi)&&!Ys){me.encounteredError=!0;return}let Aa=Ys&&!!(ht.flags&-113||ht.flags&16&&Pn(za($n(ht))))&&!(ht.flags&2097152),vc=!Aa&&!Tr&&Vx(Qi)&&!Ys;(Aa||vc)&&(Tr=!0);const El=(Tr?0:1)|(Ys&&!Aa?1024:0),fu=ht.flags&1536&&ht.flags&7&&ht.escapedName!=="export=",o_=fu&&Ia($n(ht),ht);if((ht.flags&8208||o_)&&sr($n(ht),ht,Eu(ht,Qi),El),ht.flags&524288&&He(ht,Qi,El),ht.flags&98311&&ht.escapedName!=="export="&&!(ht.flags&4194304)&&!(ht.flags&32)&&!(ht.flags&8192)&&!o_)if(Xr)co(ht)&&(vc=!1,Aa=!1);else{const ko=$n(ht),bc=Eu(ht,Qi);if(!(ht.flags&16)&&Ia(ko,ht))sr(ko,ht,bc,El);else{const O0=ht.flags&2?lC(ht)?2:1:((Yr=ht.parent)==null?void 0:Yr.valueDeclaration)&&Ri((Kr=ht.parent)==null?void 0:Kr.valueDeclaration)?2:void 0,Vm=Aa||!(ht.flags&4)?bc:iy(bc,ht);let Um=ht.declarations&&Fr(ht.declarations,Wh=>Mi(Wh));Um&&dl(Um.parent)&&Um.parent.declarations.length===1&&(Um=Um.parent.parent);const dx=(Ha=ht.declarations)==null?void 0:Ha.find(kr);if(dx&&rr(dx.parent)&&we(dx.parent.right)&&((Vs=ko.symbol)==null?void 0:Vs.valueDeclaration)&&Ri(ko.symbol.valueDeclaration)){const Wh=bc===dx.parent.right.escapedText?void 0:dx.parent.right;Xa(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,Wh,bc)])),0),me.tracker.trackSymbol(ko.symbol,me.enclosingDeclaration,111551)}else{const Wh=Ke(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Vm,void 0,Wi(me,ko,ht,vr,ra,qn))],O0)),Um);Xa(Wh,Vm!==bc?El&-2:El),Vm!==bc&&!Tr&&(Xa(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,Vm,bc)])),0),vc=!1,Aa=!1)}}}if(ht.flags&384&&un(ht,Qi,El),ht.flags&32&&(ht.flags&4&&ht.valueDeclaration&&rr(ht.valueDeclaration.parent)&&Fl(ht.valueDeclaration.parent.right)?ms(ht,Eu(ht,Qi),El):zs(ht,Eu(ht,Qi),El)),(ht.flags&1536&&(!fu||En(ht))||o_)&&nr(ht,Qi,El),ht.flags&64&&!(ht.flags&32)&&ot(ht,Qi,El),ht.flags&2097152&&ms(ht,Eu(ht,Qi),El),ht.flags&4&&ht.escapedName==="export="&&co(ht),ht.flags&8388608&&ht.declarations)for(const ko of ht.declarations){const bc=r_(ko,ko.moduleSpecifier);!bc||Xa(I.createExportDeclaration(void 0,ko.isTypeOnly,void 0,I.createStringLiteral(Xt(bc,me))),0)}Aa?Xa(I.createExportAssignment(void 0,!1,I.createIdentifier(Eu(ht,Qi))),0):vc&&Xa(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,Eu(ht,Qi),Qi)])),0)}function ra(ht){if(dt(ht.declarations,Jb))return;E.assertIsDefined(pr[pr.length-1]),iy(Li(ht.escapedName),ht);const Tr=!!(ht.flags&2097152)&&!dt(ht.declarations,Xr=>!!On(Xr,Yc)||og(Xr)||Hl(Xr)&&!km(Xr.moduleReference));pr[Tr?0:pr.length-1].set(ya(ht),ht)}function Yo(ht){return Ri(ht)&&(Yu(ht)||Yf(ht))||__(ht)&&!Pd(ht)}function Xa(ht,Tr){if(Ap(ht)){let Xr=0;const Yr=me.enclosingDeclaration&&(Zf(me.enclosingDeclaration)?Bn(me.enclosingDeclaration):me.enclosingDeclaration);Tr&1&&Yr&&(Yo(Yr)||Nc(Yr))&&LD(ht)&&(Xr|=1),$t&&!(Xr&1)&&(!Yr||!(Yr.flags&33554432))&&(Ay(ht)||ic(ht)||tl(ht)||Qc(ht)||Nc(ht))&&(Xr|=2),Tr&1024&&(Qc(ht)||f_(ht)||tl(ht))&&(Xr|=1024),Xr&&(ht=I.updateModifiers(ht,Xr|I_(ht)))}Zi.push(ht)}function He(ht,Tr,Xr){var Yr;const Kr=lJ(ht),Ha=Fi(ht).typeParameters,Vs=an(Ha,fu=>Ze(fu,me)),Qi=(Yr=ht.declarations)==null?void 0:Yr.find(Zf),Ys=yw(Qi?Qi.comment||Qi.parent.comment:void 0),Aa=me.flags;me.flags|=8388608;const vc=me.enclosingDeclaration;me.enclosingDeclaration=Qi;const El=Qi&&Qi.typeExpression&&nT(Qi.typeExpression)&&da(me,Qi.typeExpression.type,ra,qn)||_(Kr,me);Xa(Ey(I.createTypeAliasDeclaration(void 0,Eu(ht,Tr),Vs,El),Ys?[{kind:3,text:`* + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Qe.valueDeclaration&&Xc(tn,Qe.valueDeclaration);return tn}}function O(Qe,me,Wn){if(dt(Qe)){if(c(me))if(Wn){if(Qe.length>2)return[_(Qe[0],me),I.createTypeReferenceNode(`... ${Qe.length-2} more ...`,void 0),_(Qe[Qe.length-1],me)]}else return[I.createTypeReferenceNode("...",void 0)];const mr=!(me.flags&64)?Xf():void 0,Tr=[];let Ki=0;for(const yi of Qe){if(Ki++,c(me)&&Ki+2{if(!wue(fr,([st],[wt])=>$(st,wt)))for(const[st,wt]of fr)Tr[wt]=_(st,me)}),me.flags=yi}return Tr}}function $(Qe,me){return Qe===me||!!Qe.symbol&&Qe.symbol===me.symbol||!!Qe.aliasSymbol&&Qe.aliasSymbol===me.aliasSymbol}function re(Qe,me,Wn){const Mn=Mle(Qe)||"x",mr=_(Qe.keyType,me),Tr=I.createParameterDeclaration(void 0,void 0,Mn,void 0,mr,void 0);return Wn||(Wn=_(Qe.type||ke,me)),!Qe.type&&!(me.flags&2097152)&&(me.encounteredError=!0),me.approximateLength+=Mn.length+4,I.createIndexSignature(Qe.isReadonly?[I.createToken(148)]:void 0,[Tr],Wn)}function ce(Qe,me,Wn,Mn){var Pi,Ns,sn,yr,ri;var mr;const Tr=Wn.flags&256;Tr&&(Wn.flags&=-257),Wn.approximateLength+=3;let Ki,yi;Wn.flags&32&&Qe.target&&Qe.mapper&&Qe.target.typeParameters?yi=Qe.target.typeParameters.map(Zr=>_(zi(Zr,Qe.mapper),Wn)):Ki=Qe.typeParameters&&Qe.typeParameters.map(Zr=>Ze(Zr,Wn));const fr=q6e(Qe,!0)[0];let st;if(Wn.enclosingDeclaration&&Qe.declaration&&Qe.declaration!==Wn.enclosingDeclaration&&!Kn(Qe.declaration)&&dt(fr)){const Zr=jr(Wn.enclosingDeclaration).fakeScopeForSignatureDeclaration?Wn.enclosingDeclaration:void 0;E.assertOptionalNode(Zr,vs);const ds=(Pi=Zr==null?void 0:Zr.locals)!=null?Pi:Vs();let Dc;for(const Xs of fr)ds.has(Xs.escapedName)||(Dc=dn(Dc,Xs.escapedName),ds.set(Xs.escapedName,Xs));if(Dc){let Xs=function(){pn(Dc,Bo=>ds.delete(Bo))};if(Zr)st=Xs;else{const Bo=Cm.createBlock(Ve);jr(Bo).fakeScopeForSignatureDeclaration=!0,Bo.locals=ds;const Xa=Wn.enclosingDeclaration;Ta(Bo,Xa),Wn.enclosingDeclaration=Bo,st=()=>{Wn.enclosingDeclaration=Xa,Xs()}}}}const wt=(dt(fr,Zr=>Zr!==fr[fr.length-1]&&!!(rc(Zr)&32768))?Qe.parameters:fr).map(Zr=>St(Zr,Wn,me===176,Mn==null?void 0:Mn.privateSymbolVisitor,Mn==null?void 0:Mn.bundledImports)),$t=Wn.flags&33554432?void 0:Se(Qe,Wn);$t&&wt.unshift($t);let Lt;const tn=qf(Qe);if(tn){const Zr=tn.kind===2||tn.kind===3?I.createToken(131):void 0,ds=tn.kind===1||tn.kind===3?Xn(I.createIdentifier(tn.parameterName),16777216):I.createThisTypeNode(),Dc=tn.type&&_(tn.type,Wn);Lt=I.createTypePredicateNode(Zr,ds,Dc)}else{const Zr=Ua(Qe);Zr&&!(Tr&&qa(Zr))?Lt=fo(Wn,Zr,Qe,Mn==null?void 0:Mn.privateSymbolVisitor,Mn==null?void 0:Mn.bundledImports):Tr||(Lt=I.createKeywordTypeNode(133))}let wn=Mn==null?void 0:Mn.modifiers;if(me===185&&Qe.flags&4){const Zr=Ld(wn);wn=I.createModifiersFromModifierFlags(Zr|256)}const Ni=me===179?I.createCallSignature(Ki,wt,Lt):me===180?I.createConstructSignature(Ki,wt,Lt):me===173?I.createMethodSignature(wn,(Ns=Mn==null?void 0:Mn.name)!=null?Ns:I.createIdentifier(""),Mn==null?void 0:Mn.questionToken,Ki,wt,Lt):me===174?I.createMethodDeclaration(wn,void 0,(sn=Mn==null?void 0:Mn.name)!=null?sn:I.createIdentifier(""),void 0,Ki,wt,Lt,void 0):me===176?I.createConstructorDeclaration(wn,wt,void 0):me===177?I.createGetAccessorDeclaration(wn,(yr=Mn==null?void 0:Mn.name)!=null?yr:I.createIdentifier(""),wt,Lt,void 0):me===178?I.createSetAccessorDeclaration(wn,(ri=Mn==null?void 0:Mn.name)!=null?ri:I.createIdentifier(""),wt,void 0):me===181?I.createIndexSignature(wn,wt,Lt):me===324?I.createJSDocFunctionType(wt,Lt):me===184?I.createFunctionTypeNode(Ki,wt,Lt!=null?Lt:I.createTypeReferenceNode(I.createIdentifier(""))):me===185?I.createConstructorTypeNode(wn,Ki,wt,Lt!=null?Lt:I.createTypeReferenceNode(I.createIdentifier(""))):me===262?I.createFunctionDeclaration(wn,void 0,Mn!=null&&Mn.name?Bs(Mn.name,we):I.createIdentifier(""),Ki,wt,Lt,void 0):me===218?I.createFunctionExpression(wn,void 0,Mn!=null&&Mn.name?Bs(Mn.name,we):I.createIdentifier(""),Ki,wt,Lt,I.createBlock([])):me===219?I.createArrowFunction(wn,Ki,wt,Lt,void 0,I.createBlock([])):E.assertNever(me);if(yi&&(Ni.typeArguments=I.createNodeArray(yi)),((mr=Qe.declaration)==null?void 0:mr.kind)===330&&Qe.declaration.parent.kind===346){const Zr=el(Qe.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(ds=>ds.replace(/^\s+/," ")).join(` +`);Y3(Ni,3,Zr,!0)}return st==null||st(),Ni}function Se(Qe,me){if(Qe.thisParameter)return St(Qe.thisParameter,me);if(Qe.declaration&&Kn(Qe.declaration)){const Wn=ZI(Qe.declaration);if(Wn&&Wn.typeExpression)return I.createParameterDeclaration(void 0,void 0,"this",void 0,_(ai(Wn.typeExpression),me))}}function Te(Qe,me,Wn){const Mn=me.flags;me.flags&=-513;const mr=I.createModifiersFromModifierFlags(Lie(Qe)),Tr=fs(Qe,me),Ki=lb(Qe),yi=Ki&&_(Ki,me);return me.flags=Mn,I.createTypeParameterDeclaration(mr,Tr,Wn,yi)}function Ze(Qe,me,Wn=s_(Qe)){const Mn=Wn&&_(Wn,me);return Te(Qe,me,Mn)}function St(Qe,me,Wn,Mn,mr){let Tr=lc(Qe,169);!Tr&&!pm(Qe)&&(Tr=lc(Qe,348));let Ki=$n(Qe);Tr&&A7e(Tr)&&(Ki=N0(Ki));const yi=Wi(me,Ki,Qe,me.enclosingDeclaration,Mn,mr),fr=!(me.flags&8192)&&Wn&&Tr&&Np(Tr)?an(Gv(Tr),I.cloneNode):void 0,wt=Tr&&Zm(Tr)||rc(Qe)&32768?I.createToken(26):void 0,$t=Tr&&Tr.name?Tr.name.kind===80?Xn(I.cloneNode(Tr.name),16777216):Tr.name.kind===166?Xn(I.cloneNode(Tr.name.right),16777216):Ni(Tr.name):bc(Qe),tn=Tr&&JE(Tr)||rc(Qe)&16384?I.createToken(58):void 0,wn=I.createParameterDeclaration(fr,wt,$t,tn,yi,void 0);return me.approximateLength+=bc(Qe).length+3,wn;function Ni(Pi){return Ns(Pi);function Ns(sn){me.tracker.canTrackSymbol&&Ga(sn)&&Cre(sn)&&Zt(sn.expression,me.enclosingDeclaration,me);let yr=fn(sn,Ns,i0,void 0,Ns);return Oa(yr)&&(yr=I.updateBindingElement(yr,yr.dotDotDotToken,yr.propertyName,yr.name,void 0)),Do(yr)||(yr=I.cloneNode(yr)),Xn(yr,16777217)}}}function Zt(Qe,me,Wn){if(!Wn.tracker.canTrackSymbol)return;const Mn=Ku(Qe),mr=Lc(Mn,Mn.escapedText,1160127,void 0,void 0,!0);mr&&Wn.tracker.trackSymbol(mr,me,111551)}function _n(Qe,me,Wn,Mn){return me.tracker.trackSymbol(Qe,me.enclosingDeclaration,Wn),Gn(Qe,me,Wn,Mn)}function Gn(Qe,me,Wn,Mn){let mr;return!(Qe.flags&262144)&&(me.enclosingDeclaration||me.flags&64)&&!(me.flags&134217728)?(mr=E.checkDefined(Ki(Qe,Wn,!0)),E.assert(mr&&mr.length>0)):mr=[Qe],mr;function Ki(yi,fr,st){let wt=Fm(yi,me.enclosingDeclaration,fr,!!(me.flags&128)),$t;if(!wt||tb(wt[0],me.enclosingDeclaration,wt.length===1?fr:_u(fr))){const tn=Y2(wt?wt[0]:yi,me.enclosingDeclaration,fr);if(Nn(tn)){$t=tn.map(Pi=>dt(Pi.declarations,Qr)?Ht(Pi,me):void 0);const wn=tn.map((Pi,Ns)=>Ns);wn.sort(Lt);const Ni=wn.map(Pi=>tn[Pi]);for(const Pi of Ni){const Ns=Ki(Pi,_u(fr),!1);if(Ns){if(Pi.exports&&Pi.exports.get("export=")&&Vu(Pi.exports.get("export="),yi)){wt=Ns;break}wt=Ns.concat(wt||[wh(Pi,yi)||yi]);break}}}}if(wt)return wt;if(st||!(yi.flags&6144))return!st&&!Mn&&!!pn(yi.declarations,Qr)?void 0:[yi];function Lt(tn,wn){const Ni=$t[tn],Pi=$t[wn];if(Ni&&Pi){const Ns=$u(Pi);return $u(Ni)===Ns?$A(Ni)-$A(Pi):Ns?-1:1}return 0}}}function An(Qe,me){let Wn;return Bk(Qe).flags&524384&&(Wn=I.createNodeArray(an(Vp(Qe),mr=>Ze(mr,me)))),Wn}function qt(Qe,me,Wn){var Mn;E.assert(Qe&&0<=me&&mejh(wt,fr.links.mapper)),Wn)}else Ki=An(mr,Wn)}return Ki}function zn(Qe){return fS(Qe.objectType)?zn(Qe.objectType):Qe}function Ht(Qe,me,Wn){var st;let Mn=lc(Qe,312);if(!Mn){const wt=cc(Qe.declarations,$t=>ex($t,Qe));wt&&(Mn=lc(wt,312))}if(Mn&&Mn.moduleName!==void 0)return Mn.moduleName;if(!Mn){if(me.tracker.trackReferencedAmbientModule){const wt=zr(Qe.declarations,__);if(Nn(wt))for(const $t of wt)me.tracker.trackReferencedAmbientModule($t,Qe)}if(hL.test(Qe.escapedName))return Qe.escapedName.substring(1,Qe.escapedName.length-1)}if(!me.enclosingDeclaration||!me.tracker.moduleResolverHost)return hL.test(Qe.escapedName)?Qe.escapedName.substring(1,Qe.escapedName.length-1):Rn(OW(Qe)).fileName;const mr=Rn(Ko(me.enclosingDeclaration)),Tr=Wn||(mr==null?void 0:mr.impliedNodeFormat),Ki=b8(mr.path,Tr),yi=Mi(Qe);let fr=yi.specifierCache&&yi.specifierCache.get(Ki);if(!fr){const wt=!!Ao(j),{moduleResolverHost:$t}=me.tracker,Lt=wt?{...j,baseUrl:$t.getCommonSourceDirectory()}:j;fr=wa(ume(Qe,Bt,Lt,mr,$t,{importModuleSpecifierPreference:wt?"non-relative":"project-relative",importModuleSpecifierEnding:wt?"minimal":Tr===99?"js":void 0},{overrideImportMode:Wn})),(st=yi.specifierCache)!=null||(yi.specifierCache=new Map),yi.specifierCache.set(Ki,fr)}return fr}function mn(Qe){const me=I.createIdentifier(Oi(Qe.escapedName));return Qe.parent?I.createQualifiedName(mn(Qe.parent),me):me}function bn(Qe,me,Wn,Mn){var mr,Tr,Ki,yi;const fr=_n(Qe,me,Wn,!(me.flags&16384)),st=Wn===111551;if(dt(fr[0].declarations,Qr)){const Lt=fr.length>1?$t(fr,fr.length-1,1):void 0,tn=Mn||qt(fr,0,me),wn=Rn(Ko(me.enclosingDeclaration)),Ni=h9(fr[0]);let Pi,Ns;if((Sc(j)===3||Sc(j)===99)&&(Ni==null?void 0:Ni.impliedNodeFormat)===99&&Ni.impliedNodeFormat!==(wn==null?void 0:wn.impliedNodeFormat)&&(Pi=Ht(fr[0],me,99),Ns=I.createImportTypeAssertionContainer(I.createAssertClause(I.createNodeArray([I.createAssertEntry(I.createStringLiteral("resolution-mode"),I.createStringLiteral("import"))]))),(Tr=(mr=me.tracker).reportImportTypeNodeResolutionModeOverride)==null||Tr.call(mr)),Pi||(Pi=Ht(fr[0],me)),!(me.flags&67108864)&&Sc(j)!==1&&Pi.indexOf("/node_modules/")>=0){const yr=Pi;if(Sc(j)===3||Sc(j)===99){const ri=(wn==null?void 0:wn.impliedNodeFormat)===99?1:99;Pi=Ht(fr[0],me,ri),Pi.indexOf("/node_modules/")>=0?Pi=yr:(Ns=I.createImportTypeAssertionContainer(I.createAssertClause(I.createNodeArray([I.createAssertEntry(I.createStringLiteral("resolution-mode"),I.createStringLiteral(ri===99?"import":"require"))]))),(yi=(Ki=me.tracker).reportImportTypeNodeResolutionModeOverride)==null||yi.call(Ki))}Ns||(me.encounteredError=!0,me.tracker.reportLikelyUnsafeImportRequiredError&&me.tracker.reportLikelyUnsafeImportRequiredError(yr))}const sn=I.createLiteralTypeNode(I.createStringLiteral(Pi));if(me.tracker.trackExternalModuleSymbolOfImportTypeNode&&me.tracker.trackExternalModuleSymbolOfImportTypeNode(fr[0]),me.approximateLength+=Pi.length+10,!Lt||Xu(Lt)){if(Lt){const yr=we(Lt)?Lt:Lt.right;nh(yr,void 0)}return I.createImportTypeNode(sn,Ns,Lt,tn,st)}else{const yr=zn(Lt),ri=yr.objectType.typeName;return I.createIndexedAccessTypeNode(I.createImportTypeNode(sn,Ns,ri,tn,st),yr.indexType)}}const wt=$t(fr,fr.length-1,0);if(fS(wt))return wt;if(st)return I.createTypeQueryNode(wt);{const Lt=we(wt)?wt:wt.right,tn=Yb(Lt);return nh(Lt,void 0),I.createTypeReferenceNode(wt,tn)}function $t(Lt,tn,wn){const Ni=tn===Lt.length-1?Mn:qt(Lt,tn,me),Pi=Lt[tn],Ns=Lt[tn-1];let sn;if(tn===0)me.flags|=16777216,sn=pv(Pi,me),me.approximateLength+=(sn?sn.length:0)+1,me.flags^=16777216;else if(Ns&&zu(Ns)){const ri=zu(Ns);Au(ri,(Zr,ds)=>{if(Vu(Zr,Pi)&&!ME(ds)&&ds!=="export=")return sn=Oi(ds),!0})}if(sn===void 0){const ri=cc(Pi.declarations,os);if(ri&&Ga(ri)&&Xu(ri.expression)){const Zr=$t(Lt,tn-1,wn);return Xu(Zr)?I.createIndexedAccessTypeNode(I.createParenthesizedType(I.createTypeQueryNode(Zr)),I.createTypeQueryNode(ri.expression)):Zr}sn=pv(Pi,me)}if(me.approximateLength+=sn.length+1,!(me.flags&16)&&Ns&&Ih(Ns)&&Ih(Ns).get(Pi.escapedName)&&Vu(Ih(Ns).get(Pi.escapedName),Pi)){const ri=$t(Lt,tn-1,wn);return fS(ri)?I.createIndexedAccessTypeNode(ri,I.createLiteralTypeNode(I.createStringLiteral(sn))):I.createIndexedAccessTypeNode(I.createTypeReferenceNode(ri,Ni),I.createLiteralTypeNode(I.createStringLiteral(sn)))}const yr=Xn(I.createIdentifier(sn),16777216);if(Ni&&nh(yr,I.createNodeArray(Ni)),yr.symbol=Pi,tn>wn){const ri=$t(Lt,tn-1,wn);return Xu(ri)?I.createQualifiedName(ri,yr):E.fail("Impossible construct - an export of an indexed access cannot be reachable")}return yr}}function Yn(Qe,me,Wn){const Mn=Lc(me.enclosingDeclaration,Qe,788968,void 0,Qe,!1);return Mn?!(Mn.flags&262144&&Mn===Wn.symbol):!1}function fs(Qe,me){var Wn,Mn;if(me.flags&4&&me.typeParameterNames){const Tr=me.typeParameterNames.get(S_(Qe));if(Tr)return Tr}let mr=Vi(Qe.symbol,me,788968,!0);if(!(mr.kind&80))return I.createIdentifier("(Missing type parameter)");if(me.flags&4){const Tr=mr.escapedText;let Ki=((Wn=me.typeParameterNamesByTextNextNameCount)==null?void 0:Wn.get(Tr))||0,yi=Tr;for(;((Mn=me.typeParameterNamesByText)==null?void 0:Mn.has(yi))||Yn(yi,me,Qe);)Ki++,yi=`${Tr}_${Ki}`;if(yi!==Tr){const fr=Yb(mr);mr=I.createIdentifier(yi),nh(mr,fr)}(me.typeParameterNamesByTextNextNameCount||(me.typeParameterNamesByTextNextNameCount=new Map)).set(Tr,Ki),(me.typeParameterNames||(me.typeParameterNames=new Map)).set(S_(Qe),mr),(me.typeParameterNamesByText||(me.typeParameterNamesByText=new Set)).add(Tr)}return mr}function Vi(Qe,me,Wn,Mn){const mr=_n(Qe,me,Wn);return Mn&&mr.length!==1&&!me.encounteredError&&!(me.flags&65536)&&(me.encounteredError=!0),Tr(mr,mr.length-1);function Tr(Ki,yi){const fr=qt(Ki,yi,me),st=Ki[yi];yi===0&&(me.flags|=16777216);const wt=pv(st,me);yi===0&&(me.flags^=16777216);const $t=Xn(I.createIdentifier(wt),16777216);return fr&&nh($t,I.createNodeArray(fr)),$t.symbol=st,yi>0?I.createQualifiedName(Tr(Ki,yi-1),$t):$t}}function ei(Qe,me,Wn){const Mn=_n(Qe,me,Wn);return mr(Mn,Mn.length-1);function mr(Tr,Ki){const yi=qt(Tr,Ki,me),fr=Tr[Ki];Ki===0&&(me.flags|=16777216);let st=pv(fr,me);Ki===0&&(me.flags^=16777216);let wt=st.charCodeAt(0);if(qw(wt)&&dt(fr.declarations,Qr))return I.createStringLiteral(Ht(fr,me));if(Ki===0||cH(st,ee)){const $t=Xn(I.createIdentifier(st),16777216);return yi&&nh($t,I.createNodeArray(yi)),$t.symbol=fr,Ki>0?I.createPropertyAccessExpression(mr(Tr,Ki-1),$t):$t}else{wt===91&&(st=st.substring(1,st.length-1),wt=st.charCodeAt(0));let $t;if(qw(wt)&&!(fr.flags&8)?$t=I.createStringLiteral(Ep(st).replace(/\\./g,Lt=>Lt.substring(1)),wt===39):""+ +st===st&&($t=I.createNumericLiteral(+st)),!$t){const Lt=Xn(I.createIdentifier(st),16777216);yi&&nh(Lt,I.createNodeArray(yi)),Lt.symbol=fr,$t=Lt}return I.createElementAccessExpression(mr(Tr,Ki-1),$t)}}}function wc(Qe){const me=os(Qe);return!!me&&fa(me)}function tu(Qe){const me=os(Qe);return!!(me&&fa(me)&&(me.singleQuote||!Do(me)&&ns(el(me,!1),"'")))}function fu(Qe,me){const Wn=!!Nn(Qe.declarations)&&Xi(Qe.declarations,wc),Mn=!!Nn(Qe.declarations)&&Xi(Qe.declarations,tu),mr=am(Qe,me,Mn,Wn);if(mr)return mr;const Tr=Oi(Qe.escapedName);return EO(Tr,Ia(j),Mn,Wn)}function am(Qe,me,Wn,Mn){const mr=Mi(Qe).nameType;if(mr){if(mr.flags&384){const Tr=""+mr.value;return!pf(Tr,Ia(j))&&(Mn||!sg(Tr))?I.createStringLiteral(Tr,!!Wn):sg(Tr)&&ns(Tr,"-")?I.createComputedPropertyName(I.createPrefixUnaryExpression(41,I.createNumericLiteral(Math.abs(+Tr)))):EO(Tr,Ia(j))}if(mr.flags&8192)return I.createComputedPropertyName(ei(mr.symbol,me,111551))}}function Tn(Qe){const me={...Qe};return me.typeParameterNames&&(me.typeParameterNames=new Map(me.typeParameterNames)),me.typeParameterNamesByText&&(me.typeParameterNamesByText=new Set(me.typeParameterNamesByText)),me.typeParameterSymbolList&&(me.typeParameterSymbolList=new Set(me.typeParameterSymbolList)),me.tracker=new xL(me,me.tracker.inner,me.tracker.moduleResolverHost),me}function Zn(Qe,me){return Qe.declarations&&Or(Qe.declarations,Wn=>!!Vl(Wn)&&(!me||!!In(Wn,Mn=>Mn===me)))}function Bn(Qe,me){return!(Rr(me)&4)||!ap(Qe)||Nn(Qe.typeArguments)>=nm(me.target.typeParameters)}function Ts(Qe){return jr(Qe).fakeScopeForSignatureDeclaration?Qe.parent:Qe}function Wi(Qe,me,Wn,Mn,mr,Tr){if(!q(me)&&Mn){const fr=Zn(Wn,Ts(Mn));if(fr&&!Eo(fr)&&!gf(fr)){const st=Vl(fr);if(Da(st,fr,me)&&Bn(st,me)){const wt=pa(Qe,st,mr,Tr);if(wt)return wt}}}const Ki=Qe.flags;me.flags&8192&&me.symbol===Wn&&(!Qe.enclosingDeclaration||dt(Wn.declarations,fr=>Rn(fr)===Rn(Qe.enclosingDeclaration)))&&(Qe.flags|=1048576);const yi=_(me,Qe);return Qe.flags=Ki,yi}function Da(Qe,me,Wn){const Mn=ai(Qe);return Mn===Wn?!0:rs(me)&&me.questionToken?Gf(Wn,524288)===Mn:!1}function fo(Qe,me,Wn,Mn,mr){if(!q(me)&&Qe.enclosingDeclaration){const Tr=Wn.declaration&&ep(Wn.declaration),Ki=Ts(Qe.enclosingDeclaration);if(!!In(Tr,yi=>yi===Ki)&&Tr){const yi=ai(Tr);if((yi.flags&262144&&yi.isThisType?zi(yi,Wn.mapper):yi)===me&&Bn(Tr,me)){const st=pa(Qe,Tr,Mn,mr);if(st)return st}}}return _(me,Qe)}function jc(Qe,me,Wn){let Mn=!1;const mr=Ku(Qe);if(Kn(Qe)&&(Jb(mr)||eg(mr.parent)||hu(mr.parent)&&eq(mr.parent.left)&&Jb(mr.parent.right)))return Mn=!0,{introducesError:Mn,node:Qe};const Tr=Qo(mr,67108863,!0,!0);if(Tr&&(et(Tr,me.enclosingDeclaration,67108863,!1).accessibility!==0?Mn=!0:(me.tracker.trackSymbol(Tr,me.enclosingDeclaration,67108863),Wn==null||Wn(Tr)),we(Qe))){const Ki=mo(Tr),yi=Tr.flags&262144&&!nb(Ki.symbol,me.enclosingDeclaration)?fs(Ki,me):I.cloneNode(Qe);return yi.symbol=Tr,{introducesError:Mn,node:Xn(or(yi,Qe),16777216)}}return{introducesError:Mn,node:Qe}}function pa(Qe,me,Wn,Mn){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let mr=!1;const Tr=Rn(me),Ki=Ue(me,yi,Ai);if(mr)return;return Ki===me?Ke(I.cloneNode(me),me):Ki;function yi(fr){if(jfe(fr)||fr.kind===326)return I.createKeywordTypeNode(133);if(Jfe(fr))return I.createKeywordTypeNode(159);if(n4(fr))return I.createUnionTypeNode([Ue(fr.type,yi,Ai),I.createLiteralTypeNode(I.createNull())]);if(iG(fr))return I.createUnionTypeNode([Ue(fr.type,yi,Ai),I.createKeywordTypeNode(157)]);if(xF(fr))return Ue(fr.type,yi);if(SF(fr))return I.createArrayTypeNode(Ue(fr.type,yi,Ai));if(i4(fr))return I.createTypeLiteralNode(an(fr.jsDocPropertyTags,Lt=>{const tn=we(Lt.name)?Lt.name:Lt.name.right,wn=Wc(ai(fr),tn.escapedText),Ni=wn&&Lt.typeExpression&&ai(Lt.typeExpression.type)!==wn?_(wn,Qe):void 0;return I.createPropertySignature(void 0,tn,Lt.isBracketed||Lt.typeExpression&&iG(Lt.typeExpression.type)?I.createToken(58):void 0,Ni||Lt.typeExpression&&Ue(Lt.typeExpression.type,yi,Ai)||I.createKeywordTypeNode(133))}));if(ap(fr)&&we(fr.typeName)&&fr.typeName.escapedText==="")return or(I.createKeywordTypeNode(133),fr);if((rh(fr)||ap(fr))&&J9(fr))return I.createTypeLiteralNode([I.createIndexSignature(void 0,[I.createParameterDeclaration(void 0,void 0,"x",void 0,Ue(fr.typeArguments[0],yi,Ai))],Ue(fr.typeArguments[1],yi,Ai))]);if(r4(fr))if(k6(fr)){let Lt;return I.createConstructorTypeNode(void 0,Dn(fr.typeParameters,yi,Go),Hi(fr.parameters,(tn,wn)=>tn.name&&we(tn.name)&&tn.name.escapedText==="new"?(Lt=tn.type,void 0):I.createParameterDeclaration(void 0,st(tn),wt(tn,wn),tn.questionToken,Ue(tn.type,yi,Ai),void 0)),Ue(Lt||fr.type,yi,Ai)||I.createKeywordTypeNode(133))}else return I.createFunctionTypeNode(Dn(fr.typeParameters,yi,Go),an(fr.parameters,(Lt,tn)=>I.createParameterDeclaration(void 0,st(Lt),wt(Lt,tn),Lt.questionToken,Ue(Lt.type,yi,Ai),void 0)),Ue(fr.type,yi,Ai)||I.createKeywordTypeNode(133));if(ap(fr)&&Ww(fr)&&(!Bn(fr,ai(fr))||S4e(fr)||it===Dk(fr,788968,!0)))return or(_(ai(fr),Qe),fr);if(hy(fr)){const Lt=jr(fr).resolvedSymbol;return Ww(fr)&&Lt&&(!fr.isTypeOf&&!(Lt.flags&788968)||!(Nn(fr.typeArguments)>=nm(Vp(Lt))))?or(_(ai(fr),Qe),fr):I.updateImportTypeNode(fr,I.updateLiteralTypeNode(fr.argument,$t(fr,fr.argument.literal)),fr.assertions,fr.qualifier,Dn(fr.typeArguments,yi,Ai),fr.isTypeOf)}if(Xu(fr)||Tc(fr)){const{introducesError:Lt,node:tn}=jc(fr,Qe,Wn);if(mr=mr||Lt,tn!==fr)return tn}return Tr&&Y6(fr)&&yo(Tr,fr.pos).line===yo(Tr,fr.end).line&&Xn(fr,1),fn(fr,yi,i0);function st(Lt){return Lt.dotDotDotToken||(Lt.type&&SF(Lt.type)?I.createToken(26):void 0)}function wt(Lt,tn){return Lt.name&&we(Lt.name)&&Lt.name.escapedText==="this"?"this":st(Lt)?"args":`arg${tn}`}function $t(Lt,tn){if(Mn){if(Qe.tracker&&Qe.tracker.moduleResolverHost){const wn=zae(Lt);if(wn){const Pi={getCanonicalFileName:Ql(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>Qe.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>Qe.tracker.moduleResolverHost.getCommonSourceDirectory()},Ns=K9(Pi,wn);return I.createStringLiteral(Ns)}}}else if(Qe.tracker&&Qe.tracker.trackExternalModuleSymbolOfImportTypeNode){const wn=y0(tn,tn,void 0);wn&&Qe.tracker.trackExternalModuleSymbolOfImportTypeNode(wn)}return tn}}}function z_(Qe,me,Wn){const Mn=So(I.createPropertyDeclaration,174,!0),mr=So((yt,dr,Ur,Kr)=>I.createPropertySignature(yt,dr,Ur,Kr),173,!1),Tr=me.enclosingDeclaration;let Ki=[];const yi=new Set,fr=[],st=me;me={...st,usedSymbolNames:new Set(st.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};const wt={...st.tracker.inner,trackSymbol:(yt,dr,Ur)=>{var Kr;if(et(yt,dr,Ur,!1).accessibility===0){const Ja=Gn(yt,me,Ur);yt.flags&4||Xs(Ja[0])}else if((Kr=st.tracker.inner)!=null&&Kr.trackSymbol)return st.tracker.inner.trackSymbol(yt,dr,Ur);return!1}};me.tracker=new xL(me,wt,st.tracker.moduleResolverHost),Au(Qe,(yt,dr)=>{const Ur=Oi(dr);Hu(yt,Ur)});let $t=!Wn;const Lt=Qe.get("export=");return Lt&&Qe.size>1&&Lt.flags&2097152&&(Qe=Vs(),Qe.set("export=",Lt)),Zr(Qe),sn(Ki);function tn(yt){return!!yt&&yt.kind===80}function wn(yt){return ic(yt)?zr(an(yt.declarationList.declarations,os),tn):zr([os(yt)],tn)}function Ni(yt){const dr=Or(yt,fc),Ur=qc(yt,Ac);let Kr=Ur!==-1?yt[Ur]:void 0;if(Kr&&dr&&dr.isExportEquals&&we(dr.expression)&&we(Kr.name)&&lr(Kr.name)===lr(dr.expression)&&Kr.body&&Jd(Kr.body)){const ti=zr(yt,Yi=>!!(I_(Yi)&1)),Ja=Kr.name;let Is=Kr.body;if(Nn(ti)&&(Kr=I.updateModuleDeclaration(Kr,Kr.modifiers,Kr.name,Is=I.updateModuleBlock(Is,I.createNodeArray([...Kr.body.statements,I.createExportDeclaration(void 0,!1,I.createNamedExports(an(Na(ti,Yi=>wn(Yi)),Yi=>I.createExportSpecifier(!1,void 0,Yi))),void 0)]))),yt=[...yt.slice(0,Ur),Kr,...yt.slice(Ur+1)]),!Or(yt,Yi=>Yi!==Kr&&hw(Yi,Ja))){Ki=[];const Yi=!dt(Is.statements,Ys=>Lr(Ys,1)||fc(Ys)||Yc(Ys));pn(Is.statements,Ys=>{Xa(Ys,Yi?1:0)}),yt=[...zr(yt,Ys=>Ys!==Kr&&Ys!==dr),...Ki]}}return yt}function Pi(yt){const dr=zr(yt,Kr=>Yc(Kr)&&!Kr.moduleSpecifier&&!!Kr.exportClause&&op(Kr.exportClause));Nn(dr)>1&&(yt=[...zr(yt,ti=>!Yc(ti)||!!ti.moduleSpecifier||!ti.exportClause),I.createExportDeclaration(void 0,!1,I.createNamedExports(Na(dr,ti=>Bs(ti.exportClause,op).elements)),void 0)]);const Ur=zr(yt,Kr=>Yc(Kr)&&!!Kr.moduleSpecifier&&!!Kr.exportClause&&op(Kr.exportClause));if(Nn(Ur)>1){const Kr=AC(Ur,ti=>fa(ti.moduleSpecifier)?">"+ti.moduleSpecifier.text:">");if(Kr.length!==Ur.length)for(const ti of Kr)ti.length>1&&(yt=[...zr(yt,Ja=>ti.indexOf(Ja)===-1),I.createExportDeclaration(void 0,!1,I.createNamedExports(Na(ti,Ja=>Bs(Ja.exportClause,op).elements)),ti[0].moduleSpecifier)])}return yt}function Ns(yt){const dr=qc(yt,Ur=>Yc(Ur)&&!Ur.moduleSpecifier&&!Ur.assertClause&&!!Ur.exportClause&&op(Ur.exportClause));if(dr>=0){const Ur=yt[dr],Kr=Hi(Ur.exportClause.elements,ti=>{if(!ti.propertyName){const Ja=L7(yt),Is=zr(Ja,Yi=>hw(yt[Yi],ti.name));if(Nn(Is)&&Xi(Is,Yi=>MD(yt[Yi]))){for(const Yi of Is)yt[Yi]=yr(yt[Yi]);return}}return ti});Nn(Kr)?yt[dr]=I.updateExportDeclaration(Ur,Ur.modifiers,Ur.isTypeOnly,I.updateNamedExports(Ur.exportClause,Kr),Ur.moduleSpecifier,Ur.assertClause):_y(yt,dr)}return yt}function sn(yt){return yt=Ni(yt),yt=Pi(yt),yt=Ns(yt),Tr&&(Bi(Tr)&&Yu(Tr)||Ac(Tr))&&(!dt(yt,Ew)||!ole(yt)&&dt(yt,c9))&&yt.push(fA(I)),yt}function yr(yt){const dr=(I_(yt)|1)&-3;return I.updateModifiers(yt,dr)}function ri(yt){const dr=I_(yt)&-2;return I.updateModifiers(yt,dr)}function Zr(yt,dr,Ur){dr||fr.push(new Map),yt.forEach(Kr=>{ds(Kr,!1,!!Ur)}),dr||(fr[fr.length-1].forEach(Kr=>{ds(Kr,!0,!!Ur)}),fr.pop())}function ds(yt,dr,Ur){const Kr=Ma(yt);if(yi.has(ya(Kr)))return;if(yi.add(ya(Kr)),!dr||!!Nn(yt.declarations)&&dt(yt.declarations,Ja=>!!In(Ja,Is=>Is===Tr))){const Ja=me;me=Tn(me),Dc(yt,dr,Ur),me.reportedDiagnostic&&(st.reportedDiagnostic=me.reportedDiagnostic),me=Ja}}function Dc(yt,dr,Ur){var Kr,ti,Ja,Is;const Yi=Oi(yt.escapedName),Ys=yt.escapedName==="default";if(dr&&!(me.flags&131072)&&Ux(Yi)&&!Ys){me.encounteredError=!0;return}let Aa=Ys&&!!(yt.flags&-113||yt.flags&16&&Nn(Va($n(yt))))&&!(yt.flags&2097152),hc=!Aa&&!dr&&Ux(Yi)&&!Ys;(Aa||hc)&&(dr=!0);const El=(dr?0:1)|(Ys&&!Aa?1024:0),pu=yt.flags&1536&&yt.flags&7&&yt.escapedName!=="export=",o_=pu&&da($n(yt),yt);if((yt.flags&8208||o_)&&pr($n(yt),yt,Hu(yt,Yi),El),yt.flags&524288&&Af(yt,Yi,El),yt.flags&98311&&yt.escapedName!=="export="&&!(yt.flags&4194304)&&!(yt.flags&32)&&!(yt.flags&8192)&&!o_)if(Ur)_s(yt)&&(hc=!1,Aa=!1);else{const ko=$n(yt),yc=Hu(yt,Yi);if(!(yt.flags&16)&&da(ko,yt))pr(ko,yt,yc,El);else{const F0=yt.flags&2?uC(yt)?2:1:((Kr=yt.parent)==null?void 0:Kr.valueDeclaration)&&Bi((ti=yt.parent)==null?void 0:ti.valueDeclaration)?2:void 0,Wm=Aa||!(yt.flags&4)?yc:Mv(yc,yt);let qm=yt.declarations&&Or(yt.declarations,qh=>Ri(qh));qm&&ml(qm.parent)&&qm.parent.declarations.length===1&&(qm=qm.parent.parent);const mx=(Ja=yt.declarations)==null?void 0:Ja.find(kr);if(mx&&rr(mx.parent)&&we(mx.parent.right)&&((Is=ko.symbol)==null?void 0:Is.valueDeclaration)&&Bi(ko.symbol.valueDeclaration)){const qh=yc===mx.parent.right.escapedText?void 0:mx.parent.right;Xa(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,qh,yc)])),0),me.tracker.trackSymbol(ko.symbol,me.enclosingDeclaration,111551)}else{const qh=Ke(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Wm,void 0,Wi(me,ko,yt,Tr,Xs,Wn))],F0)),qm);Xa(qh,Wm!==yc?El&-2:El),Wm!==yc&&!dr&&(Xa(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,Wm,yc)])),0),hc=!1,Aa=!1)}}}if(yt.flags&384&&Ln(yt,Yi,El),yt.flags&32&&(yt.flags&4&&yt.valueDeclaration&&rr(yt.valueDeclaration.parent)&&Fl(yt.valueDeclaration.parent.right)?qs(yt,Hu(yt,Yi),El):ps(yt,Hu(yt,Yi),El)),(yt.flags&1536&&(!pu||at(yt))||o_)&&zt(yt,Yi,El),yt.flags&64&&!(yt.flags&32)&&Bg(yt,Yi,El),yt.flags&2097152&&qs(yt,Hu(yt,Yi),El),yt.flags&4&&yt.escapedName==="export="&&_s(yt),yt.flags&8388608&&yt.declarations)for(const ko of yt.declarations){const yc=r_(ko,ko.moduleSpecifier);!yc||Xa(I.createExportDeclaration(void 0,ko.isTypeOnly,void 0,I.createStringLiteral(Ht(yc,me))),0)}Aa?Xa(I.createExportAssignment(void 0,!1,I.createIdentifier(Hu(yt,Yi))),0):hc&&Xa(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,Hu(yt,Yi),Yi)])),0)}function Xs(yt){if(dt(yt.declarations,Ub))return;E.assertIsDefined(fr[fr.length-1]),Mv(Oi(yt.escapedName),yt);const dr=!!(yt.flags&2097152)&&!dt(yt.declarations,Ur=>!!In(Ur,Yc)||lg(Ur)||Hl(Ur)&&!km(Ur.moduleReference));fr[dr?0:fr.length-1].set(ya(yt),yt)}function Bo(yt){return Bi(yt)&&(Yu(yt)||Zf(yt))||__(yt)&&!Id(yt)}function Xa(yt,dr){if(Np(yt)){let Ur=0;const Kr=me.enclosingDeclaration&&(Kf(me.enclosingDeclaration)?Rn(me.enclosingDeclaration):me.enclosingDeclaration);dr&1&&Kr&&(Bo(Kr)||Ac(Kr))&&MD(yt)&&(Ur|=1),$t&&!(Ur&1)&&(!Kr||!(Kr.flags&33554432))&&(Py(yt)||ic(yt)||tl(yt)||Qc(yt)||Ac(yt))&&(Ur|=2),dr&1024&&(Qc(yt)||f_(yt)||tl(yt))&&(Ur|=1024),Ur&&(yt=I.updateModifiers(yt,Ur|I_(yt)))}Ki.push(yt)}function Af(yt,dr,Ur){var Kr;const ti=lJ(yt),Ja=Mi(yt).typeParameters,Is=an(Ja,pu=>Ze(pu,me)),Yi=(Kr=yt.declarations)==null?void 0:Kr.find(Kf),Ys=vw(Yi?Yi.comment||Yi.parent.comment:void 0),Aa=me.flags;me.flags|=8388608;const hc=me.enclosingDeclaration;me.enclosingDeclaration=Yi;const El=Yi&&Yi.typeExpression&&sT(Yi.typeExpression)&&pa(me,Yi.typeExpression.type,Xs,Wn)||_(ti,me);Xa(Dy(I.createTypeAliasDeclaration(void 0,Hu(yt,dr),Is,El),Ys?[{kind:3,text:`* * `+Ys.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Xr),me.flags=Aa,me.enclosingDeclaration=vc}function ot(ht,Tr,Xr){const Yr=i_(ht),Kr=zp(ht),Ha=an(Kr,o_=>Ze(o_,me)),Vs=xo(Yr),Qi=Pn(Vs)?ca(Vs):void 0,Ys=Na(za(Yr),o_=>Td(o_,Qi)),Aa=xd(0,Yr,Qi,179),vc=xd(1,Yr,Qi,180),El=Fv(Yr,Qi),fu=Pn(Vs)?[I.createHeritageClause(96,qi(Vs,o_=>px(o_,111551)))]:void 0;Xa(I.createInterfaceDeclaration(void 0,Eu(ht,Tr),Ha,fu,[...El,...vc,...Aa,...Ys]),Xr)}function Vt(ht){const Tr=zu(ht);return Tr?Vr(ia(Tr.values()),Xr=>is(Xr)&&pf(Xr.escapedName,99)):[]}function En(ht){return $i(Vt(ht),Tr=>!(Su(Rc(Tr))&111551))}function nr(ht,Tr,Xr){const Yr=Vt(ht),Kr=j7(Yr,Qi=>Qi.parent&&Qi.parent===ht?"real":"merged"),Ha=Kr.get("real")||Ve,Vs=Kr.get("merged")||Ve;if(Pn(Ha)){const Qi=Eu(ht,Tr);Ci(Ha,Qi,Xr,!!(ht.flags&67108880))}if(Pn(Vs)){const Qi=Bn(me.enclosingDeclaration),Ys=Eu(ht,Tr),Aa=I.createModuleBlock([I.createExportDeclaration(void 0,!1,I.createNamedExports(qi(Vr(Vs,vc=>vc.escapedName!=="export="),vc=>{var El,fu;const o_=Li(vc.escapedName),ko=Eu(vc,o_),bc=vc.declarations&&pp(vc);if(Qi&&(bc?Qi!==Bn(bc):!dt(vc.declarations,Um=>Bn(Um)===Qi))){(fu=(El=me.tracker)==null?void 0:El.reportNonlocalAugmentation)==null||fu.call(El,Qi,ht,vc);return}const O0=bc&&hg(bc,!0);ra(O0||vc);const Vm=O0?Eu(O0,Li(O0.escapedName)):ko;return I.createExportSpecifier(!1,o_===Vm?void 0:Vm,o_)})))]);Xa(I.createModuleDeclaration(void 0,I.createIdentifier(Ys),Aa,32),0)}}function un(ht,Tr,Xr){Xa(I.createEnumDeclaration(I.createModifiersFromModifierFlags(lae(ht)?2048:0),Eu(ht,Tr),an(Vr(za($n(ht)),Yr=>!!(Yr.flags&8)),Yr=>{const Kr=Yr.declarations&&Yr.declarations[0]&&y2(Yr.declarations[0])?Bae(Yr.declarations[0]):void 0;return I.createEnumMember(Li(Yr.escapedName),Kr===void 0?void 0:typeof Kr=="string"?I.createStringLiteral(Kr):I.createNumericLiteral(Kr))})),Xr)}function sr(ht,Tr,Xr,Yr){const Kr=As(ht,0);for(const Ha of Kr){const Vs=ce(Ha,262,me,{name:I.createIdentifier(Xr),privateSymbolVisitor:ra,bundledImports:qn});Xa(Ke(Vs,Or(Ha)),Yr)}if(!(Tr.flags&1536&&!!Tr.exports&&!!Tr.exports.size)){const Ha=Vr(za(ht),is);Ci(Ha,Xr,Yr,!0)}}function Or(ht){if(ht.declaration&&ht.declaration.parent){if(rr(ht.declaration.parent)&&pc(ht.declaration.parent)===5)return ht.declaration.parent;if(Mi(ht.declaration.parent)&&ht.declaration.parent.parent)return ht.declaration.parent.parent}return ht.declaration}function Ci(ht,Tr,Xr,Yr){if(Pn(ht)){const Ha=j7(ht,ko=>!Pn(ko.declarations)||dt(ko.declarations,bc=>Bn(bc)===Bn(me.enclosingDeclaration))?"local":"remote").get("local")||Ve;let Vs=Cm.createModuleDeclaration(void 0,I.createIdentifier(Tr),I.createModuleBlock([]),32);Ta(Vs,vr),Vs.locals=Us(ht),Vs.symbol=ht[0].parent;const Qi=Zi;Zi=[];const Ys=$t;$t=!1;const Aa={...me,enclosingDeclaration:Vs},vc=me;me=Aa,Zr(Us(Ha),Yr,!0),me=vc,$t=Ys;const El=Zi;Zi=Qi;const fu=an(El,ko=>dc(ko)&&!ko.isExportEquals&&we(ko.expression)?I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,ko.expression,I.createIdentifier("default"))])):ko),o_=$i(fu,ko=>Mr(ko,1))?an(fu,ti):fu;Vs=I.updateModuleDeclaration(Vs,Vs.modifiers,Vs.name,I.createModuleBlock(o_)),Xa(Vs,Xr)}}function is(ht){return!!(ht.flags&2887656)||!(ht.flags&4194304||ht.escapedName==="prototype"||ht.valueDeclaration&&Ps(ht.valueDeclaration)&&ei(ht.valueDeclaration.parent))}function Hs(ht){const Tr=qi(ht,Xr=>{const Yr=me.enclosingDeclaration;me.enclosingDeclaration=Xr;let Kr=Xr.expression;if(Sc(Kr)){if(we(Kr)&&lr(Kr)==="")return Ha(void 0);let Vs;if({introducesError:Vs,node:Kr}=Ac(Kr,me,ra),Vs)return Ha(void 0)}return Ha(I.createExpressionWithTypeArguments(Kr,an(Xr.typeArguments,Vs=>da(me,Vs,ra,qn)||_(ii(Vs),me))));function Ha(Vs){return me.enclosingDeclaration=Yr,Vs}});if(Tr.length===ht.length)return Tr}function zs(ht,Tr,Xr){var Yr,Kr;const Ha=(Yr=ht.declarations)==null?void 0:Yr.find(ei),Vs=me.enclosingDeclaration;me.enclosingDeclaration=Ha||Vs;const Qi=zp(ht),Ys=an(Qi,Sd=>Ze(Sd,me)),Aa=Uu(i_(ht)),vc=xo(Aa),El=Ha&&C6(Ha),fu=El&&Hs(El)||qi(oa(Aa),Mg),o_=$n(ht),ko=!!((Kr=o_.symbol)!=null&&Kr.valueDeclaration)&&ei(o_.symbol.valueDeclaration),bc=ko?ui(o_):ke,O0=[...Pn(vc)?[I.createHeritageClause(96,an(vc,Sd=>jk(Sd,bc,Tr)))]:[],...Pn(fu)?[I.createHeritageClause(119,fu)]:[]],Vm=Yit(Aa,vc,za(Aa)),Um=Vr(Vm,Sd=>{const SC=Sd.valueDeclaration;return!!SC&&!(A_(SC)&&Ei(SC.name))}),Wh=dt(Vm,Sd=>{const SC=Sd.valueDeclaration;return!!SC&&A_(SC)&&Ei(SC.name)})?[I.createPropertyDeclaration(void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Ve,Gae=Na(Um,Sd=>Rn(Sd,!1,vc[0])),$ae=Na(Vr(za(o_),Sd=>!(Sd.flags&4194304)&&Sd.escapedName!=="prototype"&&!is(Sd)),Sd=>Rn(Sd,!0,bc)),dot=!ko&&!!ht.valueDeclaration&&Zn(ht.valueDeclaration)&&!dt(As(o_,1))?[I.createConstructorDeclaration(I.createModifiersFromModifierFlags(8),[],void 0)]:xd(1,o_,bc,176),mot=Fv(Aa,vc[0]);me.enclosingDeclaration=Vs,Xa(Ke(I.createClassDeclaration(void 0,Tr,Ys,O0,[...mot,...$ae,...dot,...Gae,...Wh]),ht.declarations&&Vr(ht.declarations,Sd=>Qc(Sd)||Fl(Sd))[0]),Xr)}function si(ht){return _c(ht,Tr=>{if(yu(Tr)||p_(Tr))return lr(Tr.propertyName||Tr.name);if(rr(Tr)||dc(Tr)){const Xr=dc(Tr)?Tr.expression:Tr.right;if(kr(Xr))return lr(Xr.name)}if(Ky(Tr)){const Xr=os(Tr);if(Xr&&we(Xr))return lr(Xr)}})}function ms(ht,Tr,Xr){var Yr,Kr,Ha,Vs,Qi;const Ys=pp(ht);if(!Ys)return E.fail();const Aa=Ra(hg(Ys,!0));if(!Aa)return;let vc=e3(Aa)&&si(ht.declarations)||Li(Aa.escapedName);vc==="export="&&X&&(vc="default");const El=Eu(Aa,vc);switch(ra(Aa),Ys.kind){case 208:if(((Kr=(Yr=Ys.parent)==null?void 0:Yr.parent)==null?void 0:Kr.kind)===260){const ko=Xt(Aa.parent||Aa,me),{propertyName:bc}=Ys;Xa(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,bc&&we(bc)?I.createIdentifier(lr(bc)):void 0,I.createIdentifier(Tr))])),I.createStringLiteral(ko),void 0),0);break}E.failBadSyntaxKind(((Ha=Ys.parent)==null?void 0:Ha.parent)||Ys,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Qi=(Vs=Ys.parent)==null?void 0:Vs.parent)==null?void 0:Qi.kind)===226&&Qs(Li(ht.escapedName),El);break;case 260:if(kr(Ys.initializer)){const ko=Ys.initializer,bc=I.createUniqueName(Tr),O0=Xt(Aa.parent||Aa,me);Xa(I.createImportEqualsDeclaration(void 0,!1,bc,I.createExternalModuleReference(I.createStringLiteral(O0))),0),Xa(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(Tr),I.createQualifiedName(bc,ko.name)),Xr);break}case 271:if(Aa.escapedName==="export="&&dt(Aa.declarations,ko=>Ri(ko)&&Yf(ko))){co(ht);break}const fu=!(Aa.flags&512)&&!Mi(Ys);Xa(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(Tr),fu?Sr(Aa,me,67108863,!1):I.createExternalModuleReference(I.createStringLiteral(Xt(Aa,me)))),fu?Xr:0);break;case 270:Xa(I.createNamespaceExportDeclaration(lr(Ys.name)),0);break;case 273:{const ko=Xt(Aa.parent||Aa,me),bc=qn?I.createStringLiteral(ko):Ys.parent.moduleSpecifier;Xa(I.createImportDeclaration(void 0,I.createImportClause(!1,I.createIdentifier(Tr),void 0),bc,Ys.parent.assertClause),0);break}case 274:{const ko=Xt(Aa.parent||Aa,me),bc=qn?I.createStringLiteral(ko):Ys.parent.parent.moduleSpecifier;Xa(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(I.createIdentifier(Tr))),bc,Ys.parent.parent.assertClause),0);break}case 280:Xa(I.createExportDeclaration(void 0,!1,I.createNamespaceExport(I.createIdentifier(Tr)),I.createStringLiteral(Xt(Aa,me))),0);break;case 276:{const ko=Xt(Aa.parent||Aa,me),bc=qn?I.createStringLiteral(ko):Ys.parent.parent.parent.moduleSpecifier;Xa(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,Tr!==vc?I.createIdentifier(vc):void 0,I.createIdentifier(Tr))])),bc,Ys.parent.parent.parent.assertClause),0);break}case 281:const o_=Ys.parent.parent.moduleSpecifier;Qs(Li(ht.escapedName),o_?vc:El,o_&&Qa(o_)?I.createStringLiteral(o_.text):void 0);break;case 277:co(ht);break;case 226:case 211:case 212:ht.escapedName==="default"||ht.escapedName==="export="?co(ht):Qs(Tr,El);break;default:return E.failBadSyntaxKind(Ys,"Unhandled alias declaration kind in symbol serializer!")}}function Qs(ht,Tr,Xr){Xa(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,ht!==Tr?Tr:void 0,ht)]),Xr),0)}function co(ht){var Tr;if(ht.flags&4194304)return!1;const Xr=Li(ht.escapedName),Yr=Xr==="export=",Ha=Yr||Xr==="default",Vs=ht.declarations&&pp(ht),Qi=Vs&&hg(Vs,!0);if(Qi&&Pn(Qi.declarations)&&dt(Qi.declarations,Ys=>Bn(Ys)===Bn(vr))){const Ys=Vs&&(dc(Vs)||rr(Vs)?oq(Vs):d_e(Vs)),Aa=Ys&&Sc(Ys)?ust(Ys):void 0,vc=Aa&&Xo(Aa,67108863,!0,!0,vr);(vc||Qi)&&ra(vc||Qi);const El=me.tracker.disableTrackSymbol;if(me.tracker.disableTrackSymbol=!0,Ha)Zi.push(I.createExportAssignment(void 0,Yr,Ts(Qi,me,67108863)));else if(Aa===Ys&&Aa)Qs(Xr,lr(Aa));else if(Ys&&Fl(Ys))Qs(Xr,Eu(Qi,xc(Qi)));else{const fu=iy(Xr,ht);Xa(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(fu),Sr(Qi,me,67108863,!1)),0),Qs(Xr,fu)}return me.tracker.disableTrackSymbol=El,!0}else{const Ys=iy(Xr,ht),Aa=Wu($n(Ra(ht)));if(Ia(Aa,ht))sr(Aa,ht,Ys,Ha?0:1);else{const vc=I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Ys,void 0,Wi(me,Aa,ht,vr,ra,qn))],((Tr=me.enclosingDeclaration)==null?void 0:Tr.kind)===267?1:2));Xa(vc,Qi&&Qi.flags&4&&Qi.escapedName==="export="?2:Xr===Ys?1:0)}return Ha?(Zi.push(I.createExportAssignment(void 0,Yr,I.createIdentifier(Ys))),!0):Xr!==Ys?(Qs(Xr,Ys),!0):!1}}function Ia(ht,Tr){const Xr=Bn(me.enclosingDeclaration);return Br(ht)&48&&!Pn(x_(ht))&&!nb(ht)&&!!(Pn(Vr(za(ht),is))||Pn(As(ht,0)))&&!Pn(As(ht,1))&&!Qn(Tr,vr)&&!(ht.symbol&&dt(ht.symbol.declarations,Yr=>Bn(Yr)!==Xr))&&!dt(za(ht),Yr=>LE(Yr.escapedName))&&!dt(za(ht),Yr=>dt(Yr.declarations,Kr=>Bn(Kr)!==Xr))&&$i(za(ht),Yr=>pf(xc(Yr),ee))}function hl(ht,Tr,Xr){return function(Kr,Ha,Vs){var Qi,Ys,Aa,vc,El;const fu=Ff(Kr),o_=!!(fu&8);if(Ha&&Kr.flags&2887656)return[];if(Kr.flags&4194304||Kr.escapedName==="constructor"||Vs&&qs(Vs,Kr.escapedName)&&Xp(qs(Vs,Kr.escapedName))===Xp(Kr)&&(Kr.flags&16777216)===(qs(Vs,Kr.escapedName).flags&16777216)&&Ag($n(Kr),Wc(Vs,Kr.escapedName)))return[];const ko=fu&-513|(Ha?32:0),bc=Hu(Kr,me),O0=(Qi=Kr.declarations)==null?void 0:Qi.find(Yp(Is,e1,Mi,mf,rr,kr));if(Kr.flags&98304&&Xr){const Vm=[];if(Kr.flags&65536&&Vm.push(Ke(I.createSetAccessorDeclaration(I.createModifiersFromModifierFlags(ko),bc,[I.createParameterDeclaration(void 0,void 0,"arg",void 0,o_?void 0:Wi(me,$n(Kr),Kr,vr,ra,qn))],void 0),((Ys=Kr.declarations)==null?void 0:Ys.find(H0))||O0)),Kr.flags&32768){const Um=fu&8;Vm.push(Ke(I.createGetAccessorDeclaration(I.createModifiersFromModifierFlags(ko),bc,[],Um?void 0:Wi(me,$n(Kr),Kr,vr,ra,qn),void 0),((Aa=Kr.declarations)==null?void 0:Aa.find(n1))||O0))}return Vm}else if(Kr.flags&98311)return Ke(ht(I.createModifiersFromModifierFlags((Xp(Kr)?64:0)|ko),bc,Kr.flags&16777216?I.createToken(58):void 0,o_?void 0:Wi(me,OE(Kr),Kr,vr,ra,qn),void 0),((vc=Kr.declarations)==null?void 0:vc.find(Yp(Is,Mi)))||O0);if(Kr.flags&8208){const Vm=$n(Kr),Um=As(Vm,0);if(ko&8)return Ke(ht(I.createModifiersFromModifierFlags((Xp(Kr)?64:0)|ko),bc,Kr.flags&16777216?I.createToken(58):void 0,void 0,void 0),((El=Kr.declarations)==null?void 0:El.find(Eo))||Um[0]&&Um[0].declaration||Kr.declarations&&Kr.declarations[0]);const dx=[];for(const Wh of Um){const Gae=ce(Wh,Tr,me,{name:bc,questionToken:Kr.flags&16777216?I.createToken(58):void 0,modifiers:ko?I.createModifiersFromModifierFlags(ko):void 0}),$ae=Wh.declaration&&Yw(Wh.declaration.parent)?Wh.declaration.parent:Wh.declaration;dx.push(Ke(Gae,$ae))}return dx}return E.fail(`Unhandled class member kind! ${Kr.__debugFlags||Kr.flags}`)}}function Td(ht,Tr){return fr(ht,!1,Tr)}function xd(ht,Tr,Xr,Yr){const Kr=As(Tr,ht);if(ht===1){if(!Xr&&$i(Kr,Qi=>Pn(Qi.parameters)===0))return[];if(Xr){const Qi=As(Xr,1);if(!Pn(Qi)&&$i(Kr,Ys=>Pn(Ys.parameters)===0))return[];if(Qi.length===Kr.length){let Ys=!1;for(let Aa=0;Aa_(Kr,me)),Yr=Ts(ht.target.symbol,me,788968)):ht.symbol&&S(ht.symbol,vr,Tr)&&(Yr=Ts(ht.symbol,me,788968)),Yr)return I.createExpressionWithTypeArguments(Yr,Xr)}function Mg(ht){const Tr=px(ht,788968);if(Tr)return Tr;if(ht.symbol)return I.createExpressionWithTypeArguments(Ts(ht.symbol,me,788968),void 0)}function iy(ht,Tr){var Xr,Yr;const Kr=Tr?ya(Tr):void 0;if(Kr&&me.remappedSymbolNames.has(Kr))return me.remappedSymbolNames.get(Kr);Tr&&(ht=aI(Tr,ht));let Ha=0;const Vs=ht;for(;(Xr=me.usedSymbolNames)!=null&&Xr.has(ht);)Ha++,ht=`${Vs}_${Ha}`;return(Yr=me.usedSymbolNames)==null||Yr.add(ht),Kr&&me.remappedSymbolNames.set(Kr,ht),ht}function aI(ht,Tr){if(Tr==="default"||Tr==="__class"||Tr==="__function"){const Xr=me.flags;me.flags|=16777216;const Yr=uv(ht,me);me.flags=Xr,Tr=Yr.length>0&&Ww(Yr.charCodeAt(0))?Cp(Yr):Yr}return Tr==="default"?Tr="_default":Tr==="export="&&(Tr="_exports"),Tr=pf(Tr,ee)&&!Vx(Tr)?Tr:"_"+Tr.replace(/[^a-zA-Z0-9]/g,"_"),Tr}function Eu(ht,Tr){const Xr=ya(ht);return me.remappedSymbolNames.has(Xr)?me.remappedSymbolNames.get(Xr):(Tr=aI(ht,Tr),me.remappedSymbolNames.set(Xr,Tr),Tr)}}}function kg(n,s,c=16384,_){return _?d(_).getText():YC(d);function d(h){const T=I.createTypePredicateNode(n.kind===2||n.kind===3?I.createToken(131):void 0,n.kind===1||n.kind===3?I.createIdentifier(n.parameterName):I.createThisTypeNode(),n.type&&ct.typeToTypeNode(n.type,s,Ah(c)|70221824|512)),P=C2(),O=s&&Bn(s);return P.writeNode(4,T,O,h),h}}function h0(n){const s=[];let c=0;for(let _=0;_os(h)?h:void 0);const d=_&&os(_);if(_&&d){if(js(_)&&Mx(_))return xc(n);if(Ga(d)&&!(rc(n)&4096)){const h=Fi(n).nameType;if(h&&h.flags&384){const T=W1(n,s);if(T!==void 0)return T}}return no(d)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return no(_.parent.name);switch(_.kind){case 231:case 218:case 219:return s&&!s.encounteredError&&!(s.flags&131072)&&(s.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}const c=W1(n,s);return c!==void 0?c:xc(n)}function dd(n){if(n){const c=Jr(n);return c.isVisible===void 0&&(c.isVisible=!!s()),c.isVisible}return!1;function s(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Ri(n.parent.parent.parent));case 208:return dd(n.parent.parent);case 260:if(Ns(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Qv(n))return!0;const c=KT(n);return!(Xz(n)&1)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Xd(c):dd(c);case 172:case 171:case 177:case 178:case 174:case 173:if(Iu(n,24))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return dd(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function G4(n,s){let c;n.parent&&n.parent.kind===277?c=Mc(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=gg(n.parent,2998271));let _,d;return c&&(d=new Set,d.add(ya(c)),h(c.declarations)),_;function h(T){mn(T,P=>{const O=Zy(P)||P;if(s?Jr(P).isVisible=!0:(_=_||[],Gf(_,O)),y6(P)){const $=P.moduleReference,te=Ku($),ce=Mc(P,te.escapedText,901119,void 0,void 0,!1);ce&&d&&Lv(d,ya(ce))&&h(ce.declarations)}})}}function zf(n,s){const c=pk(n,s);if(c>=0){const{length:_}=mh;for(let d=c;d<_;d++)Vy[d]=!1;return!1}return mh.push(n),Vy.push(!0),w1.push(s),!0}function pk(n,s){for(let c=mh.length-1;c>=Uy;c--){if(GN(mh[c],w1[c]))return-1;if(mh[c]===n&&w1[c]===s)return c}return-1}function GN(n,s){switch(s){case 0:return!!Fi(n).type;case 5:return!!Jr(n).resolvedEnumType;case 2:return!!Fi(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!Fi(n).writeType;case 9:return Jr(n).parameterInitializerContainsUndefined!==void 0}return E.assertNever(s)}function Kd(){return mh.pop(),w1.pop(),Vy.pop()}function KT(n){return On(hm(n),s=>{switch(s.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function $N(n){const s=go($_(n));return s.typeParameters?S0(s,an(s.typeParameters,c=>ke)):s}function Wc(n,s){const c=qs(n,s);return c?$n(c):void 0}function fv(n,s){var c;return Wc(n,s)||((c=nx(n,s))==null?void 0:c.type)||Jt}function NE(n,s){var c;let _;return Wc(n,s)||(_=(c=nx(n,s))==null?void 0:c.type)&&Sl(_,!0,!0)}function Wa(n){return n&&(n.flags&1)!==0}function q(n){return n===$e||!!(n.flags&1&&n.aliasSymbol)}function de(n,s){if(s!==0)return em(n,!1,s);const c=hr(n);return c&&Fi(c).type||em(n,!1,s)}function Le(n,s,c){if(n=ol(n,O=>!(O.flags&98304)),n.flags&131072)return Oi;if(n.flags&1048576)return So(n,O=>Le(O,s,c));let _=zr(an(s,C0));const d=[],h=[];for(const O of za(n)){const $=tC(O,8576);!la($,_)&&!(Ff(O)&24)&&SJ(O)?d.push(O):h.push($)}if(yv(n)||Y1(_)){if(h.length&&(_=zr([_,...h])),_.flags&131072)return n;const O=xQe();return O?Ck(O,[n,_]):$e}const T=Us();for(const O of d)T.set(O.escapedName,bie(O,!1));const P=yc(c,T,Ve,Ve,x_(n));return P.objectFlags|=4194304,P}function lt(n){return!!(n.flags&465829888)&&Qo(B_(n)||Jt,32768)}function Dt(n){const s=Fg(n,lt)?So(n,c=>c.flags&465829888?wg(c):c):n;return Hf(s,524288)}function tn(n,s){const c=Ir(n);return c?Vh(c,s):s}function Ir(n){const s=Ti(n);if(s&&nD(s)&&s.flowNode){const c=ri(n);if(c){const _=Ke(Cm.createStringLiteral(c),n),d=pu(s)?s:Cm.createParenthesizedExpression(s),h=Ke(Cm.createElementAccessExpression(d,_),n);return Ta(_,h),Ta(h,n),d!==s&&Ta(d,h),h.flowNode=s.flowNode,h}}}function Ti(n){const s=n.parent.parent;switch(s.kind){case 208:case 303:return Ir(s);case 209:return Ir(n.parent);case 260:return s.initializer;case 226:return s.right}}function ri(n){const s=n.parent;return n.kind===208&&s.kind===206?_i(n.propertyName||n.name):n.kind===303||n.kind===304?_i(n.name):""+s.elements.indexOf(n)}function _i(n){const s=C0(n);return s.flags&384?""+s.value:void 0}function as(n){const s=n.dotDotDotToken?64:0,c=de(n.parent.parent,s);return c&&ao(n,c)}function ao(n,s){if(Wa(s))return s;const c=n.parent;H&&n.flags&33554432&&Jb(n)?s=Ig(s):H&&c.parent.initializer&&!(k_(m3e(c.parent.initializer))&65536)&&(s=Hf(s,524288));let _;if(c.kind===206)if(n.dotDotDotToken){if(s=Wp(s),s.flags&2||!PP(s))return Fe(n,p.Rest_types_may_only_be_created_from_object_types),$e;const d=[];for(const h of c.elements)h.dotDotDotToken||d.push(h.propertyName||h.name);_=Le(s,d,n.symbol)}else{const d=n.propertyName||n.name,h=C0(d),T=Cu(s,h,32,d);_=tn(n,T)}else{const d=P0(65|(n.dotDotDotToken?0:128),s,Pt,c),h=c.elements.indexOf(n);if(n.dotDotDotToken){const T=So(s,P=>P.flags&58982400?wg(P):P);_=Df(T,_a)?So(T,P=>eC(P,h)):$l(d)}else if(w0(s)){const T=Hp(h),P=32|(_C(n)?16:0),O=Mh(s,T,P,n.name)||$e;_=tn(n,O)}else _=d}return n.initializer?Vl(Yk(n))?H&&!(k_(p7(n,0))&16777216)?Dt(_):_:uae(n,zr([Dt(_),p7(n,0)],2)):_}function qa(n){const s=py(n);if(s)return ii(s)}function Za(n){const s=uo(n,!0);return s.kind===106||s.kind===80&&hp(s)===Pe}function R_(n){const s=uo(n,!0);return s.kind===209&&s.elements.length===0}function Sl(n,s=!1,c=!0){return H&&c?A0(n,s):n}function em(n,s,c){if(Mi(n)&&n.parent.parent.kind===249){const T=im(Ose(Xi(n.parent.parent.expression,c)));return T.flags&4456448?K4e(T):F}if(Mi(n)&&n.parent.parent.kind===250){const T=n.parent.parent;return eI(T)||ke}if(Ns(n.parent))return as(n);const _=Is(n)&&!ym(n)||mf(n)||Ufe(n),d=s&&cH(n),h=ki(n);if(AW(n))return h?Wa(h)||h===Jt?h:$e:Ne?Jt:ke;if(h)return Sl(h,_,d);if((fe||Zn(n))&&Mi(n)&&!Ns(n.name)&&!(Xz(n)&1)&&!(n.flags&33554432)){if(!(Ov(n)&6)&&(!n.initializer||Za(n.initializer)))return ft;if(n.initializer&&R_(n.initializer))return gt}if(ns(n)){const T=n.parent;if(T.kind===178&&vk(T)){const $=uc(hr(n.parent),177);if($){const te=gd($),ce=Wae(T);return ce&&n===ce?(E.assert(!ce.type),$n(te.thisParameter)):Va(te)}}const P=$Xe(T,n);if(P)return P;const O=n.symbol.escapedName==="this"?M3e(T):R3e(n);if(O)return Sl(O,!1,d)}if(Ib(n)&&!!n.initializer){if(Zn(n)&&!ns(n)){const P=Sa(n,hr(n),Hw(n));if(P)return P}const T=uae(n,p7(n,c));return Sl(T,_,d)}if(Is(n)&&(fe||Zn(n)))if($c(n)){const T=Vr(n.parent.members,ec),P=T.length?dv(n.symbol,T):I_(n)&2?BJ(n.symbol):void 0;return P&&Sl(P,!0,d)}else{const T=lv(n.parent),P=T?PE(n.symbol,T):I_(n)&2?BJ(n.symbol):void 0;return P&&Sl(P,!0,d)}if(zd(n))return Ot;if(Ns(n.name))return L(n.name,!1,!0)}function Bp(n){if(n.valueDeclaration&&rr(n.valueDeclaration)){const s=Fi(n);return s.isConstructorDeclaredProperty===void 0&&(s.isConstructorDeclaredProperty=!1,s.isConstructorDeclaredProperty=!!v0(n)&&$i(n.declarations,c=>rr(c)&&cz(c)&&(c.left.kind!==212||If(c.left.argumentExpression))&&!To(void 0,c,n,c))),s.isConstructorDeclaredProperty}return!1}function y0(n){const s=n.valueDeclaration;return s&&Is(s)&&!Vl(s)&&!s.initializer&&(fe||Zn(s))}function v0(n){if(!!n.declarations)for(const s of n.declarations){const c=tu(s,!1,!1);if(c&&(c.kind===176||vd(c)))return c}}function pv(n){const s=Bn(n.declarations[0]),c=Li(n.escapedName),_=n.declarations.every(h=>Zn(h)&&Mo(h)&&Zm(h.expression)),d=_?I.createPropertyAccessExpression(I.createPropertyAccessExpression(I.createIdentifier("module"),I.createIdentifier("exports")),c):I.createPropertyAccessExpression(I.createIdentifier("exports"),c);return _&&Ta(d.expression.expression,d.expression),Ta(d.expression,d),Ta(d,s),d.flowNode=s.endFlowNode,Vh(d,ft,Pt)}function dv(n,s){const c=ts(n.escapedName,"__#")?I.createPrivateIdentifier(n.escapedName.split("@")[1]):Li(n.escapedName);for(const _ of s){const d=I.createPropertyAccessExpression(I.createThis(),c);Ta(d.expression,d),Ta(d,_),d.flowNode=_.returnFlowNode;const h=dk(d,n);if(fe&&(h===ft||h===gt)&&Fe(n.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ni(n),kn(h)),!Df(h,dz))return x7(h)}}function PE(n,s){const c=ts(n.escapedName,"__#")?I.createPrivateIdentifier(n.escapedName.split("@")[1]):Li(n.escapedName),_=I.createPropertyAccessExpression(I.createThis(),c);Ta(_.expression,_),Ta(_,s),_.flowNode=s.returnFlowNode;const d=dk(_,n);return fe&&(d===ft||d===gt)&&Fe(n.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ni(n),kn(d)),Df(d,dz)?void 0:x7(d)}function dk(n,s){const c=(s==null?void 0:s.valueDeclaration)&&(!y0(s)||I_(s.valueDeclaration)&2)&&BJ(s)||Pt;return Vh(n,ft,c)}function mk(n,s){const c=Lx(n.valueDeclaration);if(c){const P=Zn(c)?fy(c):void 0;return P&&P.typeExpression?ii(P.typeExpression):n.valueDeclaration&&Sa(n.valueDeclaration,n,c)||kv(jc(c))}let _,d=!1,h=!1;if(Bp(n)&&(_=PE(n,v0(n))),!_){let P;if(n.declarations){let O;for(const $ of n.declarations){const te=rr($)||js($)?$:Mo($)?rr($.parent)?$.parent:$:void 0;if(!te)continue;const ce=Mo(te)?Qw(te):pc(te);(ce===4||rr(te)&&cz(te,ce))&&(kf(te)?d=!0:h=!0),js(te)||(O=To(O,te,n,$)),O||(P||(P=[])).push(rr(te)||js(te)?jp(n,s,te,ce):jn)}_=O}if(!_){if(!Pn(P))return $e;let O=d&&n.declarations?Lm(P,n.declarations):void 0;if(h){const te=BJ(n);te&&((O||(O=[])).push(te),d=!0)}const $=dt(O,te=>!!(te.flags&-98305))?O:P;_=zr($)}}const T=Wu(Sl(_,!1,h&&!d));return n.valueDeclaration&&Zn(n.valueDeclaration)&&ol(T,P=>!!(P.flags&-98305))===jn?(ty(n.valueDeclaration,ke),ke):T}function Sa(n,s,c){var _,d;if(!Zn(n)||!c||!ha(c)||c.properties.length)return;const h=Us();for(;rr(n)||kr(n);){const O=ku(n);(_=O==null?void 0:O.exports)!=null&&_.size&&xf(h,O.exports),n=rr(n)?n.parent:n.parent.parent}const T=ku(n);(d=T==null?void 0:T.exports)!=null&&d.size&&xf(h,T.exports);const P=yc(s,h,Ve,Ve,Ve);return P.objectFlags|=4096,P}function To(n,s,c,_){var d;const h=Vl(s.parent);if(h){const T=Wu(ii(h));if(n)!q(n)&&!q(T)&&!Ag(n,T)&&jEe(void 0,n,_,T);else return T}if((d=c.parent)!=null&&d.valueDeclaration){const T=Vl(c.parent.valueDeclaration);if(T){const P=qs(ii(T),c.escapedName);if(P)return H1(P)}}return n}function jp(n,s,c,_){if(js(c)){if(s)return $n(s);const T=jc(c.arguments[2]),P=Wc(T,"value");if(P)return P;const O=Wc(T,"get");if(O){const te=yb(O);if(te)return Va(te)}const $=Wc(T,"set");if($){const te=yb($);if(te)return nae(te)}return ke}if(ex(c.left,c.right))return ke;const d=_===1&&(kr(c.left)||No(c.left))&&(Zm(c.left.expression)||we(c.left.expression)&&Rb(c.left.expression)),h=s?$n(s):d?j_(jc(c.right)):kv(jc(c.right));if(h.flags&524288&&_===2&&n.escapedName==="export="){const T=Up(h),P=Us();m9(T.members,P);const O=P.size;s&&!s.exports&&(s.exports=Us()),(s||n).exports.forEach((te,ce)=>{var Se;const Te=P.get(ce);if(Te&&Te!==te&&!(te.flags&2097152))if(te.flags&111551&&Te.flags&111551){if(te.valueDeclaration&&Te.valueDeclaration&&Bn(te.valueDeclaration)!==Bn(Te.valueDeclaration)){const St=Li(te.escapedName),Kt=((Se=Hr(Te.valueDeclaration,A_))==null?void 0:Se.name)||Te.valueDeclaration;fa(Fe(te.valueDeclaration,p.Duplicate_identifier_0,St),yr(Kt,p._0_was_also_declared_here,St)),fa(Fe(Kt,p.Duplicate_identifier_0,St),yr(te.valueDeclaration,p._0_was_also_declared_here,St))}const Ze=Pa(te.flags|Te.flags,ce);Ze.links.type=zr([$n(te),$n(Te)]),Ze.valueDeclaration=Te.valueDeclaration,Ze.declarations=Ki(Te.declarations,te.declarations),P.set(ce,Ze)}else P.set(ce,pg(te,Te));else P.set(ce,te)});const $=yc(O!==P.size?void 0:T.symbol,P,T.callSignatures,T.constructSignatures,T.indexInfos);if(O===P.size&&(h.aliasSymbol&&($.aliasSymbol=h.aliasSymbol,$.aliasTypeArguments=h.aliasTypeArguments),Br(h)&4)){$.aliasSymbol=h.symbol;const te=po(h);$.aliasTypeArguments=Pn(te)?te:void 0}return $.objectFlags|=Br(h)&4096,$.symbol&&$.symbol.flags&32&&h===i_($.symbol)&&($.objectFlags|=16777216),$}return JJ(h)?(ty(c,qe),qe):h}function ex(n,s){return kr(n)&&n.expression.kind===110&&p8(s,c=>Bl(n,c))}function kf(n){const s=tu(n,!1,!1);return s.kind===176||s.kind===262||s.kind===218&&!Yw(s.parent)}function Lm(n,s){return E.assert(n.length===s.length),n.filter((c,_)=>{const d=s[_],h=rr(d)?d:rr(d.parent)?d.parent:void 0;return h&&kf(h)})}function gk(n,s,c){if(n.initializer){const _=Ns(n.name)?L(n.name,!0,!1):Jt;return Sl(uae(n,p7(n,0,_)))}return Ns(n.name)?L(n.name,s,c):(c&&!Yn(n)&&ty(n,ke),s?yt:ke)}function v(n,s,c){const _=Us();let d,h=131200;mn(n.elements,P=>{const O=P.propertyName||P.name;if(P.dotDotDotToken){d=rm(F,ke,!1);return}const $=C0(O);if(!rp($)){h|=512;return}const te=ip($),ce=4|(P.initializer?16777216:0),Se=Pa(ce,te);Se.links.type=gk(P,s,c),Se.links.bindingElement=P,_.set(Se.escapedName,Se)});const T=yc(void 0,_,Ve,Ve,d?[d]:Ve);return T.objectFlags|=h,s&&(T.pattern=n,T.objectFlags|=131072),T}function w(n,s,c){const _=n.elements,d=Bo(_),h=d&&d.kind===208&&d.dotDotDotToken?d:void 0;if(_.length===0||_.length===1&&h)return ee>=2?M4e(ke):qe;const T=an(_,te=>pl(te)?ke:gk(te,s,c)),P=cI(_,te=>!(te===h||pl(te)||_C(te)),_.length-1)+1,O=an(_,(te,ce)=>te===h?4:ce>=P?2:1);let $=qp(T,O);return s&&($=h4e($),$.pattern=n,$.objectFlags|=131072),$}function L(n,s=!1,c=!1){return n.kind===206?v(n,s,c):w(n,s,c)}function ie(n,s){return Ft(em(n,!0,0),n,s)}function Ie(n){const s=ku(n),c=_Qe(!1);return c&&s&&s===c}function Ft(n,s,c){return n?(n.flags&4096&&Ie(s.parent)&&(n=Tie(s)),c&&XJ(s,n),n.flags&8192&&(Fa(s)||!s.type)&&n.symbol!==hr(s)&&(n=ir),Wu(n)):(n=ns(s)&&s.dotDotDotToken?qe:ke,c&&(Yn(s)||ty(s,n)),n)}function Yn(n){const s=hm(n),c=s.kind===169?s.parent:s;return XP(c)}function ki(n){const s=Vl(n);if(s)return ii(s)}function eo(n){let s=n.valueDeclaration;return s?(Fa(s)&&(s=Yk(s)),ns(s)?IJ(s.parent):!1):!1}function Jp(n){const s=Fi(n);if(!s.type){const c=b0(n);return!s.type&&!eo(n)&&(s.type=c),c}return s.type}function b0(n){if(n.flags&4194304)return $N(n);if(n===mt)return ke;if(n.flags&134217728&&n.valueDeclaration){const _=hr(Bn(n.valueDeclaration)),d=Pa(_.flags,"exports");d.declarations=_.declarations?_.declarations.slice():[],d.parent=n,d.links.target=_,_.valueDeclaration&&(d.valueDeclaration=_.valueDeclaration),_.members&&(d.members=new Map(_.members)),_.exports&&(d.exports=new Map(_.exports));const h=Us();return h.set("exports",d),yc(n,h,Ve,Ve,Ve)}E.assertIsDefined(n.valueDeclaration);const s=n.valueDeclaration;if(Ri(s)&&Yf(s))return s.statements.length?Wu(kv(Xi(s.statements[0].expression))):Oi;if(e1(s))return IE(n);if(!zf(n,0))return n.flags&512&&!(n.flags&67108864)?hk(n):tx(n);let c;if(s.kind===277)c=Ft(ki(s)||jc(s.expression),s);else if(rr(s)||Zn(s)&&(js(s)||(kr(s)||U9(s))&&rr(s.parent)))c=mk(n);else if(kr(s)||No(s)||we(s)||Qa(s)||Ou(s)||Qc(s)||tl(s)||Ec(s)&&!Sp(s)||ig(s)||Ri(s)){if(n.flags&9136)return hk(n);c=rr(s.parent)?mk(n):ki(s)||ke}else if(Dc(s))c=ki(s)||uEe(s);else if(zd(s))c=ki(s)||X3e(s);else if(nf(s))c=ki(s)||gC(s.name,0);else if(Sp(s))c=ki(s)||fEe(s,0);else if(ns(s)||Is(s)||mf(s)||Mi(s)||Fa(s)||r9(s))c=ie(s,!0);else if(Ay(s))c=hk(n);else if(y2(s))c=rb(n);else return E.fail("Unhandled declaration kind! "+E.formatSyntaxKind(s.kind)+" for "+E.formatSymbol(n));return Kd()?c:n.flags&512&&!(n.flags&67108864)?hk(n):tx(n)}function gp(n){if(n)switch(n.kind){case 177:return Kf(n);case 178:return E_e(n);case 172:return E.assert(ym(n)),Vl(n)}}function q1(n){const s=gp(n);return s&&ii(s)}function gre(n){const s=Wae(n);return s&&s.symbol}function hre(n){return X1(gd(n))}function IE(n){const s=Fi(n);if(!s.type){if(!zf(n,0))return $e;const c=uc(n,177),_=uc(n,178),d=Hr(uc(n,172),eu);let h=c&&Zn(c)&&qa(c)||q1(c)||q1(_)||q1(d)||c&&c.body&&Cz(c)||d&&d.initializer&&ie(d,!0);h||(_&&!XP(_)?Tf(fe,_,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ni(n)):c&&!XP(c)?Tf(fe,c,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ni(n)):d&&!XP(d)&&Tf(fe,d,p.Member_0_implicitly_has_an_1_type,ni(n),"any"),h=ke),Kd()||(gp(c)?Fe(c,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(n)):gp(_)||gp(d)?Fe(_,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(n)):c&&fe&&Fe(c,p._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,ni(n)),h=ke),s.type=h}return s.type}function sJ(n){var c;const s=Fi(n);if(!s.writeType){if(!zf(n,8))return $e;const _=(c=uc(n,178))!=null?c:Hr(uc(n,172),eu);let d=q1(_);Kd()||(gp(_)&&Fe(_,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(n)),d=ke),s.writeType=d||IE(n)}return s.writeType}function aJ(n){const s=ui(i_(n));return s.flags&8650752?s:s.flags&2097152?Fr(s.types,c=>!!(c.flags&8650752)):void 0}function hk(n){let s=Fi(n);const c=s;if(!s.type){const _=n.valueDeclaration&&Sz(n.valueDeclaration,!1);if(_){const d=Qse(n,_);d&&(n=d,s=d.links)}c.type=s.type=yre(n)}return s.type}function yre(n){const s=n.valueDeclaration;if(n.flags&1536&&e3(n))return ke;if(s&&(s.kind===226||Mo(s)&&s.parent.kind===226))return mk(n);if(n.flags&512&&s&&Ri(s)&&s.commonJsModuleIndicator){const _=lf(n);if(_!==n){if(!zf(n,0))return $e;const d=Ra(n.exports.get("export=")),h=mk(d,d===_?void 0:_);return Kd()?h:tx(n)}}const c=jf(16,n);if(n.flags&32){const _=aJ(n);return _?ca([c,_]):c}else return H&&n.flags&16777216?A0(c,!0):c}function rb(n){const s=Fi(n);return s.type||(s.type=M6e(n))}function vre(n){const s=Fi(n);if(!s.type){const c=gl(n),_=n.declarations&&hg(pp(n),!0),d=_c(_==null?void 0:_.declarations,h=>dc(h)?ki(h):void 0);s.type=(_==null?void 0:_.declarations)&&Jz(_.declarations)&&n.declarations.length?pv(_):Jz(n.declarations)?ft:d||(Su(c)&111551?$n(c):$e)}return s.type}function bre(n){const s=Fi(n);return s.type||(s.type=Ji($n(s.target),s.mapper))}function Tre(n){const s=Fi(n);return s.writeType||(s.writeType=Ji(OE(s.target),s.mapper))}function tx(n){const s=n.valueDeclaration;return Vl(s)?(Fe(n.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(n)),$e):(fe&&(s.kind!==169||s.initializer)&&Fe(n.valueDeclaration,p._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ni(n)),ke)}function oJ(n){const s=Fi(n);return s.type||(E.assertIsDefined(s.deferralParent),E.assertIsDefined(s.deferralConstituents),s.type=s.deferralParent.flags&1048576?zr(s.deferralConstituents):ca(s.deferralConstituents)),s.type}function cJ(n){const s=Fi(n);return!s.writeType&&s.deferralWriteConstituents&&(E.assertIsDefined(s.deferralParent),E.assertIsDefined(s.deferralConstituents),s.writeType=s.deferralParent.flags&1048576?zr(s.deferralWriteConstituents):ca(s.deferralWriteConstituents)),s.writeType}function OE(n){const s=rc(n);return n.flags&4?s&2?s&65536?cJ(n)||oJ(n):n.links.writeType||n.links.type:$n(n):n.flags&98304?s&1?Tre(n):sJ(n):$n(n)}function $n(n){const s=rc(n);return s&65536?oJ(n):s&1?bre(n):s&262144?AXe(n):s&8192?UZe(n):n.flags&7?Jp(n):n.flags&9136?hk(n):n.flags&8?rb(n):n.flags&98304?IE(n):n.flags&2097152?vre(n):$e}function H1(n){return ub($n(n),!!(n.flags&16777216))}function G1(n,s){return n!==void 0&&s!==void 0&&(Br(n)&4)!==0&&n.target===s}function ib(n){return Br(n)&4?n.target:n}function yk(n,s){return c(n);function c(_){if(Br(_)&7){const d=ib(_);return d===s||dt(xo(d),c)}else if(_.flags&2097152)return dt(_.types,c);return!1}}function XN(n,s){for(const c of s)n=Rg(n,sb(hr(c)));return n}function $4(n,s){for(;;){if(n=n.parent,n&&rr(n)){const c=pc(n);if(c===6||c===3){const _=hr(n.left);_&&_.parent&&!On(_.parent.valueDeclaration,d=>n===d)&&(n=_.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const _=$4(n,s);if(n.kind===200)return gn(_,sb(hr(n.typeParameter)));if(n.kind===194)return Ki(_,lCe(n));const d=XN(_,Zh(n)),h=s&&(n.kind===263||n.kind===231||n.kind===264||vd(n))&&i_(hr(n)).thisType;return h?gn(d,h):d}case 348:const c=iD(n);c&&(n=c.valueDeclaration);break;case 327:{const _=$4(n,s);return n.tags?XN(_,Na(n.tags,d=>id(d)?d.typeParameters:void 0)):_}}}}function QN(n){var s;const c=n.flags&32||n.flags&16?n.valueDeclaration:(s=n.declarations)==null?void 0:s.find(_=>{if(_.kind===264)return!0;if(_.kind!==260)return!1;const d=_.initializer;return!!d&&(d.kind===218||d.kind===219)});return E.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),$4(c)}function zp(n){if(!n.declarations)return;let s;for(const c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||vd(c)||tD(c))&&(s=XN(s,Zh(c)));return s}function xre(n){return Ki(QN(n),zp(n))}function $1(n){const s=As(n,1);if(s.length===1){const c=s[0];if(!c.typeParameters&&c.parameters.length===1&&d_(c)){const _=zP(c.parameters[0]);return Wa(_)||Bie(_)===ke}}return!1}function hn(n){if(As(n,1).length>0)return!0;if(n.flags&8650752){const s=B_(n);return!!s&&$1(s)}return!1}function Ar(n){const s=Xg(n.symbol);return s&&Id(s)}function Dr(n,s,c){const _=Pn(s),d=Zn(c);return Vr(As(n,1),h=>(d||_>=nm(h.typeParameters))&&_<=Pn(h.typeParameters))}function mi(n,s,c){const _=Dr(n,s,c),d=an(s,ii);return cl(_,h=>dt(h.typeParameters)?JE(h,d,Zn(c)):h)}function ui(n){if(!n.resolvedBaseConstructorType){const s=Xg(n.symbol),c=s&&Id(s),_=Ar(n);if(!_)return n.resolvedBaseConstructorType=Pt;if(!zf(n,1))return $e;const d=Xi(_.expression);if(c&&_!==c&&(E.assert(!c.typeArguments),Xi(c.expression)),d.flags&2621440&&Up(d),!Kd())return Fe(n.symbol.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ni(n.symbol)),n.resolvedBaseConstructorType=$e;if(!(d.flags&1)&&d!==ge&&!hn(d)){const h=Fe(_.expression,p.Type_0_is_not_a_constructor_function_type,kn(d));if(d.flags&262144){const T=Z4(d);let P=Jt;if(T){const O=As(T,1);O[0]&&(P=Va(O[0]))}d.symbol.declarations&&fa(h,yr(d.symbol.declarations[0],p.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ni(d.symbol),kn(P)))}return n.resolvedBaseConstructorType=$e}n.resolvedBaseConstructorType=d}return n.resolvedBaseConstructorType}function oa(n){let s=Ve;if(n.symbol.declarations)for(const c of n.symbol.declarations){const _=C6(c);if(!!_)for(const d of _){const h=ii(d);q(h)||(s===Ve?s=[h]:s.push(h))}}return s}function to(n,s){Fe(n,p.Type_0_recursively_references_itself_as_a_base_type,kn(s,void 0,2))}function xo(n){if(!n.baseTypesResolved){if(zf(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[Cg(n)]:n.symbol.flags&96?(n.symbol.flags&32&&Nh(n),n.symbol.flags&64&&X4(n)):E.fail("type must be class or interface"),!Kd()&&n.symbol.declarations))for(const s of n.symbol.declarations)(s.kind===263||s.kind===264)&&to(s,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function Cg(n){const s=cl(n.typeParameters,(c,_)=>n.elementFlags[_]&8?Cu(c,ye):c);return $l(zr(s||Ve),n.readonly)}function Nh(n){n.resolvedBaseTypes=DO;const s=Y_(ui(n));if(!(s.flags&2621441))return n.resolvedBaseTypes=Ve;const c=Ar(n);let _;const d=s.symbol?go(s.symbol):void 0;if(s.symbol&&s.symbol.flags&32&&md(d))_=y4e(c,s.symbol);else if(s.flags&1)_=s;else{const T=mi(s,c.typeArguments,c);if(!T.length)return Fe(c.expression,p.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=Ve;_=Va(T[0])}if(q(_))return n.resolvedBaseTypes=Ve;const h=Wp(_);if(!Vf(h)){const T=Bre(void 0,_),P=_s(T,p.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,kn(h));return xa.add(Wg(Bn(c.expression),c.expression,P)),n.resolvedBaseTypes=Ve}return n===h||yk(h,n)?(Fe(n.symbol.valueDeclaration,p.Type_0_recursively_references_itself_as_a_base_type,kn(n,void 0,2)),n.resolvedBaseTypes=Ve):(n.resolvedBaseTypes===DO&&(n.members=void 0),n.resolvedBaseTypes=[h])}function md(n){const s=n.outerTypeParameters;if(s){const c=s.length-1,_=po(n);return s[c].symbol!==_[c].symbol}return!0}function Vf(n){if(n.flags&262144){const s=B_(n);if(s)return Vf(s)}return!!(n.flags&67633153&&!ff(n)||n.flags&2097152&&$i(n.types,Vf))}function X4(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Ve,n.symbol.declarations){for(const s of n.symbol.declarations)if(s.kind===264&&u3(s))for(const c of u3(s)){const _=Wp(ii(c));q(_)||(Vf(_)?n!==_&&!yk(_,n)?n.resolvedBaseTypes===Ve?n.resolvedBaseTypes=[_]:n.resolvedBaseTypes.push(_):to(s,n):Fe(c,p.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function FE(n){if(!n.declarations)return!0;for(const s of n.declarations)if(s.kind===264){if(s.flags&256)return!1;const c=u3(s);if(c){for(const _ of c)if(Sc(_.expression)){const d=Xo(_.expression,788968,!0);if(!d||!(d.flags&64)||i_(d).thisType)return!1}}}return!0}function i_(n){let s=Fi(n);const c=s;if(!s.declaredType){const _=n.flags&32?1:2,d=Qse(n,n.valueDeclaration&&Wtt(n.valueDeclaration));d&&(n=d,s=d.links);const h=c.declaredType=s.declaredType=jf(_,n),T=QN(n),P=zp(n);(T||P||_===1||!FE(n))&&(h.objectFlags|=4,h.typeParameters=Ki(T,P),h.outerTypeParameters=T,h.localTypeParameters=P,h.instantiations=new Map,h.instantiations.set(qf(h.typeParameters),h),h.target=h,h.resolvedTypeArguments=h.typeParameters,h.thisType=Jf(n),h.thisType.isThisType=!0,h.thisType.constraint=h)}return s.declaredType}function lJ(n){var s;const c=Fi(n);if(!c.declaredType){if(!zf(n,2))return $e;const _=E.checkDefined((s=n.declarations)==null?void 0:s.find(tD),"Type alias symbol with no valid declaration found"),d=Zf(_)?_.typeExpression:_.type;let h=d?ii(d):$e;if(Kd()){const T=zp(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(qf(T),h))}else h=$e,_.kind===347?Fe(_.typeExpression.type,p.Type_alias_0_circularly_references_itself,ni(n)):Fe(A_(_)&&_.name||_,p.Type_alias_0_circularly_references_itself,ni(n));c.declaredType=h}return c.declaredType}function _J(n){return n.flags&1056&&n.symbol.flags&8?go($_(n.symbol)):n}function F6e(n){const s=Fi(n);if(!s.declaredType){const c=[];if(n.declarations){for(const d of n.declarations)if(d.kind===266){for(const h of d.members)if(vk(h)){const T=hr(h),P=k7(h),O=ax(P!==void 0?kYe(P,ya(n),T):L6e(T));Fi(T).declaredType=O,c.push(j_(O))}}}const _=c.length?zr(c,1,n,void 0):L6e(n);_.flags&1048576&&(_.flags|=1024,_.symbol=n),s.declaredType=_}return s.declaredType}function L6e(n){const s=xg(32,n),c=xg(32,n);return s.regularType=s,s.freshType=c,c.regularType=s,c.freshType=c,s}function M6e(n){const s=Fi(n);if(!s.declaredType){const c=F6e($_(n));s.declaredType||(s.declaredType=c)}return s.declaredType}function sb(n){const s=Fi(n);return s.declaredType||(s.declaredType=Jf(n))}function oXe(n){const s=Fi(n);return s.declaredType||(s.declaredType=go(gl(n)))}function go(n){return R6e(n)||$e}function R6e(n){if(n.flags&96)return i_(n);if(n.flags&524288)return lJ(n);if(n.flags&262144)return sb(n);if(n.flags&384)return F6e(n);if(n.flags&8)return M6e(n);if(n.flags&2097152)return oXe(n)}function YN(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return YN(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(YN)}return!1}function cXe(n){const s=Kk(n);return!s||YN(s)}function B6e(n){const s=Vl(n);return s?YN(s):!r1(n)}function lXe(n){const s=Kf(n),c=Zh(n);return(n.kind===176||!!s&&YN(s))&&n.parameters.every(B6e)&&c.every(cXe)}function _Xe(n){if(n.declarations&&n.declarations.length===1){const s=n.declarations[0];if(s)switch(s.kind){case 172:case 171:return B6e(s);case 174:case 173:case 176:case 177:case 178:return lXe(s)}}return!1}function j6e(n,s,c){const _=Us();for(const d of n)_.set(d.escapedName,c&&_Xe(d)?d:Sie(d,s));return _}function J6e(n,s){for(const c of s){if(z6e(c))continue;const _=n.get(c.escapedName);(!_||_.valueDeclaration&&rr(_.valueDeclaration)&&!Bp(_)&&!$le(_.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function z6e(n){return!!n.valueDeclaration&&N_(n.valueDeclaration)&&Ps(n.valueDeclaration)}function Sre(n){if(!n.declaredProperties){const s=n.symbol,c=Ph(s);n.declaredProperties=wh(c),n.declaredCallSignatures=Ve,n.declaredConstructSignatures=Ve,n.declaredIndexInfos=Ve,n.declaredCallSignatures=gv(c.get("__call")),n.declaredConstructSignatures=gv(c.get("__new")),n.declaredIndexInfos=d4e(s)}return n}function kre(n){if(!Ga(n)&&!No(n))return!1;const s=Ga(n)?n.expression:n.argumentExpression;return Sc(s)&&rp(Ga(n)?Bm(n):jc(s))}function LE(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function ZN(n){const s=os(n);return!!s&&kre(s)}function vk(n){return!$0(n)||ZN(n)}function uXe(n){return Y9(n)&&!kre(n)}function fXe(n,s,c){E.assert(!!(rc(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Fi(s.symbol).lateSymbol=n,n.declarations?s.symbol.isReplaceableByMethod||n.declarations.push(s):n.declarations=[s],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==s.kind)&&(n.valueDeclaration=s)}function V6e(n,s,c,_){E.assert(!!_.symbol,"The member is expected to have a symbol.");const d=Jr(_);if(!d.resolvedSymbol){d.resolvedSymbol=_.symbol;const h=rr(_)?_.left:_.name,T=No(h)?jc(h.argumentExpression):Bm(h);if(rp(T)){const P=ip(T),O=_.symbol.flags;let $=c.get(P);$||c.set(P,$=Pa(0,P,4096));const te=s&&s.get(P);if($.flags&tk(O)||te){const ce=te?Ki(te.declarations,$.declarations):$.declarations,Se=!(T.flags&8192)&&Li(P)||no(h);mn(ce,Te=>Fe(os(Te)||Te,p.Property_0_was_also_declared_here,Se)),Fe(h||_,p.Duplicate_property_0,Se),$=Pa(0,P,4096)}return $.links.nameType=T,fXe($,_,O),$.parent?E.assert($.parent===n,"Existing symbol parent should match new one"):$.parent=n,d.resolvedSymbol=$}}return d.resolvedSymbol}function Cre(n,s){var c,_,d;const h=Fi(n);if(!h[s]){const T=s==="resolvedExports",P=T?n.flags&1536?ck(n).exports:n.exports:n.members;h[s]=P||U;const O=Us();for(const te of n.declarations||Ve){const ce=Jle(te);if(ce)for(const Se of ce)T===$c(Se)&&ZN(Se)&&V6e(n,P,O,Se)}const $=(((c=n.valueDeclaration)==null?void 0:c.kind)===219||((_=n.valueDeclaration)==null?void 0:_.kind)===218)&&((d=ku(n.valueDeclaration.parent))==null?void 0:d.assignmentDeclarationMembers)||n.assignmentDeclarationMembers;if($){const te=ia($.values());for(const ce of te){const Se=pc(ce),Te=Se===3||rr(ce)&&cz(ce,Se)||Se===9||Se===6;T===!Te&&ZN(ce)&&V6e(n,P,O,ce)}}h[s]=Nm(P,O)||U}return h[s]}function Ph(n){return n.flags&6256?Cre(n,"resolvedMembers"):n.members||U}function uJ(n){if(n.flags&106500&&n.escapedName==="__computed"){const s=Fi(n);if(!s.lateSymbol&&dt(n.declarations,ZN)){const c=Ra(n.parent);dt(n.declarations,$c)?zu(c):Ph(c)}return s.lateSymbol||(s.lateSymbol=n)}return n}function Uu(n,s,c){if(Br(n)&4){const _=n.target,d=po(n);return Pn(_.typeParameters)===Pn(d)?S0(_,Ki(d,[s||_.thisType])):n}else if(n.flags&2097152){const _=cl(n.types,d=>Uu(d,s,c));return _!==n.types?ca(_):n}return c?Y_(n):n}function U6e(n,s,c,_){let d,h,T,P,O;cV(c,_,0,c.length)?(h=s.symbol?Ph(s.symbol):Us(s.declaredProperties),T=s.declaredCallSignatures,P=s.declaredConstructSignatures,O=s.declaredIndexInfos):(d=_u(c,_),h=j6e(s.declaredProperties,d,c.length===1),T=wJ(s.declaredCallSignatures,d),P=wJ(s.declaredConstructSignatures,d),O=mCe(s.declaredIndexInfos,d));const $=xo(s);if($.length){s.symbol&&h===Ph(s.symbol)&&(h=Us(s.declaredProperties)),uf(n,h,T,P,O);const te=Bo(_);for(const ce of $){const Se=te?Uu(Ji(ce,d),te):ce;J6e(h,za(Se)),T=Ki(T,As(Se,0)),P=Ki(P,As(Se,1));const Te=Se!==ke?x_(Se):[rm(F,ke,!1)];O=Ki(O,Vr(Te,Ze=>!jre(O,Ze.keyType)))}}uf(n,h,T,P,O)}function pXe(n){U6e(n,Sre(n),Ve,Ve)}function dXe(n){const s=Sre(n.target),c=Ki(s.typeParameters,[s.thisType]),_=po(n),d=_.length===c.length?_:Ki(_,[n]);U6e(n,s,c,d)}function Mm(n,s,c,_,d,h,T,P){const O=new g(jt,P);return O.declaration=n,O.typeParameters=s,O.parameters=_,O.thisParameter=c,O.resolvedReturnType=d,O.resolvedTypePredicate=h,O.minArgumentCount=T,O.resolvedMinArgumentCount=void 0,O.target=void 0,O.mapper=void 0,O.compositeSignatures=void 0,O.compositeKind=void 0,O}function ME(n){const s=Mm(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return s.target=n.target,s.mapper=n.mapper,s.compositeSignatures=n.compositeSignatures,s.compositeKind=n.compositeKind,s}function W6e(n,s){const c=ME(n);return c.compositeSignatures=s,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function mXe(n,s){if((n.flags&24)===s)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const c=s===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=gXe(n,s))}function gXe(n,s){E.assert(s===8||s===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const c=ME(n);return c.flags|=s,c}function q6e(n,s){if(d_(n)){const d=n.parameters.length-1,h=n.parameters[d].escapedName,T=$n(n.parameters[d]);if(_a(T))return[c(T,d,h)];if(!s&&T.flags&1048576&&$i(T.types,_a))return an(T.types,P=>c(P,d,h))}return[n.parameters];function c(d,h,T){const P=po(d),O=_(d,T),$=an(P,(te,ce)=>{const Se=O&&O[ce]?O[ce]:dC(n,h+ce,d),Te=d.target.elementFlags[ce],Ze=Te&12?32768:Te&2?16384:0,St=Pa(1,Se,Ze);return St.links.type=Te&4?$l(te):te,St});return Ki(n.parameters.slice(0,h),$)}function _(d,h){const T=new Map;return an(d.target.labeledElementDeclarations,(P,O)=>{const $=tae(P,O,h),te=T.get($);return te===void 0?(T.set($,1),$):(T.set($,te+1),`${$}_${te}`)})}}function hXe(n){const s=ui(n),c=As(s,1),_=Xg(n.symbol),d=!!_&&Mr(_,256);if(c.length===0)return[Mm(void 0,n.localTypeParameters,void 0,Ve,n,void 0,0,d?4:0)];const h=Ar(n),T=Zn(h),P=aP(h),O=Pn(P),$=[];for(const te of c){const ce=nm(te.typeParameters),Se=Pn(te.typeParameters);if(T||O>=ce&&O<=Se){const Te=Se?pJ(te,Oh(P,te.typeParameters,ce,T)):ME(te);Te.typeParameters=n.localTypeParameters,Te.resolvedReturnType=n,Te.flags=d?Te.flags|4:Te.flags&-5,$.push(Te)}}return $}function Ere(n,s,c,_,d){for(const h of n)if(bP(h,s,c,_,d,c?UYe:GE))return h}function yXe(n,s,c){if(s.typeParameters){if(c>0)return;for(let d=1;d1&&(c=c===void 0?_:-1);for(const d of n[_])if(!s||!Ere(s,d,!1,!1,!0)){const h=yXe(n,d,_);if(h){let T=d;if(h.length>1){let P=d.thisParameter;const O=mn(h,$=>$.thisParameter);if(O){const $=ca(qi(h,te=>te.thisParameter&&$n(te.thisParameter)));P=fb(O,$)}T=W6e(d,h),T.thisParameter=P}(s||(s=[])).push(T)}}}if(!Pn(s)&&c!==-1){const _=n[c!==void 0?c:0];let d=_.slice();for(const h of n)if(h!==_){const T=h[0];if(E.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),d=!!T.typeParameters&&dt(d,P=>!!P.typeParameters&&!H6e(T.typeParameters,P.typeParameters))?void 0:an(d,P=>TXe(P,T)),!d)break}s=d}return s||Ve}function H6e(n,s){if(Pn(n)!==Pn(s))return!1;if(!n||!s)return!0;const c=_u(s,n);for(let _=0;_=d?n:s,T=h===n?s:n,P=h===n?_:d,O=sm(n)||sm(s),$=O&&!sm(h),te=new Array(P+($?1:0));for(let ce=0;ce=bd(h)&&ce>=bd(T),_n=ce>=_?void 0:dC(n,ce),Gn=ce>=d?void 0:dC(s,ce),Nn=_n===Gn?_n:_n?Gn?void 0:_n:Gn,Ht=Pa(1|(Kt&&!St?16777216:0),Nn||`arg${ce}`);Ht.links.type=St?$l(Ze):Ze,te[ce]=Ht}if($){const ce=Pa(1,"args");ce.links.type=$l($p(T,P)),T===s&&(ce.links.type=Ji(ce.links.type,c)),te[P]=ce}return te}function TXe(n,s){const c=n.typeParameters||s.typeParameters;let _;n.typeParameters&&s.typeParameters&&(_=_u(s.typeParameters,n.typeParameters));const d=n.declaration,h=bXe(n,s,_),T=vXe(n.thisParameter,s.thisParameter,_),P=Math.max(n.minArgumentCount,s.minArgumentCount),O=Mm(d,c,T,h,void 0,void 0,P,(n.flags|s.flags)&167);return O.compositeKind=1048576,O.compositeSignatures=Ki(n.compositeKind!==2097152&&n.compositeSignatures||[n],[s]),_&&(O.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?ey(n.mapper,_):_),O}function G6e(n){const s=x_(n[0]);if(s){const c=[];for(const _ of s){const d=_.keyType;$i(n,h=>!!Rm(h,d))&&c.push(rm(d,zr(an(n,h=>x0(h,d))),dt(n,h=>Rm(h,d).isReadonly)))}return c}return Ve}function xXe(n){const s=wre(an(n.types,d=>d===zo?[Ce]:As(d,0))),c=wre(an(n.types,d=>As(d,1))),_=G6e(n.types);uf(n,U,s,c,_)}function KN(n,s){return n?s?ca([n,s]):n:s}function $6e(n){const s=L0(n,_=>As(_,1).length>0),c=an(n,$1);if(s>0&&s===L0(c,_=>_)){const _=c.indexOf(!0);c[_]=!1}return c}function SXe(n,s,c,_){const d=[];for(let h=0;hP);for(let P=0;P0&&($=an($,te=>{const ce=ME(te);return ce.resolvedReturnType=SXe(Va(te),d,h,P),ce})),c=X6e(c,$)}s=X6e(s,As(O,0)),_=E_(x_(O),($,te)=>Q6e($,te,!1),_)}uf(n,U,s||Ve,c||Ve,_||Ve)}function X6e(n,s){for(const c of s)(!n||$i(n,_=>!bP(_,c,!1,!1,!1,GE)))&&(n=gn(n,c));return n}function Q6e(n,s,c){if(n)for(let _=0;_{var O;!(P.flags&418)&&!(P.flags&512&&((O=P.declarations)==null?void 0:O.length)&&$i(P.declarations,__))&&T.set(P.escapedName,P)}),c=T}let d;if(uf(n,c,Ve,Ve,Ve),s.flags&32){const T=i_(s),P=ui(T);P.flags&11272192?(c=Us(Om(c)),J6e(c,za(P))):P===ke&&(d=rm(F,ke,!1))}const h=Gre(c);if(h?_=$re(h):(d&&(_=gn(_,d)),s.flags&384&&(go(s).flags&32||dt(n.properties,T=>!!($n(T).flags&296)))&&(_=gn(_,vn))),uf(n,c,Ve,Ve,_||Ve),s.flags&8208&&(n.callSignatures=gv(s)),s.flags&32){const T=i_(s);let P=s.members?gv(s.members.get("__constructor")):Ve;s.flags&16&&(P=Lr(P.slice(),qi(n.callSignatures,O=>vd(O.declaration)?Mm(O.declaration,O.typeParameters,O.thisParameter,O.parameters,T,void 0,O.minArgumentCount,O.flags&167):void 0))),P.length||(P=hXe(T)),n.constructSignatures=P}}function EXe(n,s,c){return Ji(n,_u([s.indexType,s.objectType],[Hp(0),qp([c])]))}function wXe(n){const s=Rm(n.source,F),c=tm(n.mappedType),_=!(c&1),d=c&4?0:16777216,h=s?[rm(F,YJ(s.type,n.mappedType,n.constraintType),_&&s.isReadonly)]:Ve,T=Us();for(const P of za(n.source)){const O=8192|(_&&Xp(P)?8:0),$=Pa(4|P.flags&d,P.escapedName,O);if($.declarations=P.declarations,$.links.nameType=Fi(P).nameType,$.links.propertyType=$n(P),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const te=n.constraintType.type.objectType,ce=EXe(n.mappedType,n.constraintType.type,te);$.links.mappedType=ce,$.links.constraintType=im(te)}else $.links.mappedType=n.mappedType,$.links.constraintType=n.constraintType;T.set(P.escapedName,$)}uf(n,T,Ve,Ve,h)}function eP(n){if(n.flags&4194304){const s=Y_(n.type);return D0(s)?J4e(s):im(s)}if(n.flags&16777216){if(n.root.isDistributive){const s=n.checkType,c=eP(s);if(c!==s)return Eie(n,ox(n.root.checkType,c,n.mapper))}return n}if(n.flags&1048576)return So(n,eP,!0);if(n.flags&2097152){const s=n.types;return s.length===2&&!!(s[0].flags&76)&&s[1]===L_?n:ca(cl(n.types,eP))}return n}function Dre(n){return rc(n)&4096}function Are(n,s,c,_){for(const d of za(n))_(tC(d,s));if(n.flags&1)_(F);else for(const d of x_(n))(!c||d.keyType.flags&134217732)&&_(d.keyType)}function DXe(n){const s=Us();let c;uf(n,U,Ve,Ve,Ve);const _=Vp(n),d=Uf(n),h=n.target||n,T=T0(h),P=!T||K6e(h),O=Eg(h),$=Y_(bk(n)),te=tm(n),ce=De?128:8576;RE(n)?Are($,ce,De,Se):mb(eP(d),Se),uf(n,s,Ve,Ve,c||Ve);function Se(Ze){const St=T?Ji(T,HE(n.mapper,_,Ze)):Ze;mb(St,Kt=>Te(Ze,Kt))}function Te(Ze,St){if(rp(St)){const Kt=ip(St),_n=s.get(Kt);if(_n)_n.links.nameType=zr([_n.links.nameType,St]),_n.links.keyType=zr([_n.links.keyType,Ze]);else{const Gn=rp(Ze)?qs($,ip(Ze)):void 0,Nn=!!(te&4||!(te&8)&&Gn&&Gn.flags&16777216),Ht=!!(te&1||!(te&2)&&Gn&&Xp(Gn)),Mn=H&&!Nn&&Gn&&Gn.flags&16777216,Xt=Gn?Dre(Gn):0,dn=Pa(4|(Nn?16777216:0),Kt,Xt|262144|(Ht?8:0)|(Mn?524288:0));dn.links.mappedType=n,dn.links.nameType=St,dn.links.keyType=Ze,Gn&&(dn.links.syntheticOrigin=Gn,dn.declarations=P?Gn.declarations:void 0),s.set(Kt,dn)}}else if(dJ(St)||St.flags&33){const Kt=St.flags&5?F:St.flags&40?ye:St,_n=Ji(O,HE(n.mapper,_,Ze)),Gn=rm(Kt,_n,!!(te&1));c=Q6e(c,Gn,!0)}}}function AXe(n){if(!n.links.type){const s=n.links.mappedType;if(!zf(n,0))return s.containsError=!0,$e;const c=Eg(s.target||s),_=HE(s.mapper,Vp(s),n.links.keyType),d=Ji(c,_);let h=H&&n.flags&16777216&&!Qo(d,49152)?A0(d,!0):n.links.checkFlags&524288?HJ(d):d;Kd()||(Fe(D,p.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ni(n),kn(s)),h=$e),n.links.type=h}return n.links.type}function Vp(n){return n.typeParameter||(n.typeParameter=sb(hr(n.declaration.typeParameter)))}function Uf(n){return n.constraintType||(n.constraintType=s_(Vp(n))||$e)}function T0(n){return n.declaration.nameType?n.nameType||(n.nameType=Ji(ii(n.declaration.nameType),n.mapper)):void 0}function Eg(n){return n.templateType||(n.templateType=n.declaration.type?Ji(Sl(ii(n.declaration.type),!0,!!(tm(n)&4)),n.mapper):$e)}function Y6e(n){return Kk(n.declaration.typeParameter)}function RE(n){const s=Y6e(n);return s.kind===198&&s.operator===143}function bk(n){if(!n.modifiersType)if(RE(n))n.modifiersType=Ji(ii(Y6e(n).type),n.mapper);else{const s=gie(n.declaration),c=Uf(s),_=c&&c.flags&262144?s_(c):c;n.modifiersType=_&&_.flags&4194304?Ji(_.type,n.mapper):Jt}return n.modifiersType}function tm(n){const s=n.declaration;return(s.readonlyToken?s.readonlyToken.kind===41?2:1:0)|(s.questionToken?s.questionToken.kind===41?8:4:0)}function Z6e(n){const s=tm(n);return s&8?-1:s&4?1:0}function Nre(n){const s=Z6e(n),c=bk(n);return s||(ff(c)?Z6e(c):0)}function NXe(n){return!!(Br(n)&32&&tm(n)&4)}function ff(n){if(Br(n)&32){const s=Uf(n);if(Y1(s))return!0;const c=T0(n);if(c&&Y1(Ji(c,Tv(Vp(n),s))))return!0}return!1}function K6e(n){const s=T0(n);return!!s&&la(s,Vp(n))}function Up(n){return n.members||(n.flags&524288?n.objectFlags&4?dXe(n):n.objectFlags&3?pXe(n):n.objectFlags&1024?wXe(n):n.objectFlags&16?CXe(n):n.objectFlags&32?DXe(n):E.fail("Unhandled object type "+E.formatObjectFlags(n.objectFlags)):n.flags&1048576?xXe(n):n.flags&2097152?kXe(n):E.fail("Unhandled type "+E.formatTypeFlags(n.flags))),n}function Ih(n){return n.flags&524288?Up(n).properties:Ve}function mv(n,s){if(n.flags&524288){const _=Up(n).members.get(s);if(_&&cv(_))return _}}function tP(n){if(!n.resolvedProperties){const s=Us();for(const c of n.types){for(const _ of za(c))if(!s.has(_.escapedName)){const d=Mre(n,_.escapedName);d&&s.set(_.escapedName,d)}if(n.flags&1048576&&x_(c).length===0)break}n.resolvedProperties=wh(s)}return n.resolvedProperties}function za(n){return n=Q4(n),n.flags&3145728?tP(n):Ih(n)}function PXe(n,s){n=Q4(n),n.flags&3670016&&Up(n).members.forEach((c,_)=>{Z2(c,_)&&s(c,_)})}function IXe(n,s){return s.properties.some(_=>{const d=_.name&&(Vd(_.name)?lu(BD(_.name)):C0(_.name)),h=d&&rp(d)?ip(d):void 0,T=h===void 0?void 0:Wc(n,h);return!!T&&QE(T)&&!la(ux(_),T)})}function OXe(n){const s=zr(n);if(!(s.flags&1048576))return Rae(s);const c=Us();for(const _ of n)for(const{escapedName:d}of Rae(_))if(!c.has(d)){const h=i4e(s,d);h&&c.set(d,h)}return ia(c.values())}function ab(n){return n.flags&262144?s_(n):n.flags&8388608?FXe(n):n.flags&16777216?n4e(n):B_(n)}function s_(n){return BE(n)?Z4(n):void 0}function Tk(n,s=0){var c;return s<5&&!!(n&&(n.flags&262144&&dt((c=n.symbol)==null?void 0:c.declarations,_=>Mr(_,2048))||n.flags&1048576&&dt(n.types,_=>Tk(_,s))||n.flags&8388608&&Tk(n.objectType,s+1)||n.flags&16777216&&Tk(n4e(n),s+1)||n.flags&33554432&&Tk(n.baseType,s)||D0(n)&&qc(Q1(n),(_,d)=>!!(n.target.elementFlags[d]&8)&&Tk(_,s))>=0))}function FXe(n){return BE(n)?LXe(n):void 0}function Pre(n){const s=Dg(n,!1);return s!==n?s:ab(n)}function LXe(n){if(Lre(n)||ff(n.objectType))return TJ(n.objectType,n.indexType);const s=Pre(n.indexType);if(s&&s!==n.indexType){const _=Mh(n.objectType,s,n.accessFlags);if(_)return _}const c=Pre(n.objectType);if(c&&c!==n.objectType)return Mh(c,n.indexType,n.accessFlags)}function Ire(n){if(!n.resolvedDefaultConstraint){const s=yYe(n),c=K1(n);n.resolvedDefaultConstraint=Wa(s)?c:Wa(c)?s:zr([s,c])}return n.resolvedDefaultConstraint}function e4e(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const s=Dg(n.checkType,!1),c=s===n.checkType?ab(s):s;if(c&&c!==n.checkType){const _=Eie(n,ox(n.root.checkType,c,n.mapper));if(!(_.flags&131072))return n.resolvedConstraintOfDistributive=_,_}}n.resolvedConstraintOfDistributive=!1}function t4e(n){return e4e(n)||Ire(n)}function n4e(n){return BE(n)?t4e(n):void 0}function MXe(n,s){let c,_=!1;for(const d of n)if(d.flags&465829888){let h=ab(d);for(;h&&h.flags&21233664;)h=ab(h);h&&(c=gn(c,h),s&&(c=gn(c,d)))}else(d.flags&469892092||Pg(d))&&(_=!0);if(c&&(s||_)){if(_)for(const d of n)(d.flags&469892092||Pg(d))&&(c=gn(c,d));return gP(ca(c),!1)}}function B_(n){if(n.flags&464781312||D0(n)){const s=Ore(n);return s!==ja&&s!==La?s:void 0}return n.flags&4194304?Fs:void 0}function wg(n){return B_(n)||n}function BE(n){return Ore(n)!==La}function Ore(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const s=[];return n.resolvedBaseConstraint=c(n);function c(h){if(!h.immediateBaseConstraint){if(!zf(h,4))return La;let T;const P=vP(h);if((s.length<10||s.length<50&&!gs(s,P))&&(s.push(P),T=d(Dg(h,!1)),s.pop()),!Kd()){if(h.flags&262144){const O=Xre(h);if(O){const $=Fe(O,p.Type_parameter_0_has_a_circular_constraint,kn(h));D&&!n2(O,D)&&!n2(D,O)&&fa($,yr(D,p.Circularity_originates_in_type_at_this_location))}}T=La}h.immediateBaseConstraint=T||ja}return h.immediateBaseConstraint}function _(h){const T=c(h);return T!==ja&&T!==La?T:void 0}function d(h){if(h.flags&262144){const T=Z4(h);return h.isThisType||!T?T:_(T)}if(h.flags&3145728){const T=h.types,P=[];let O=!1;for(const $ of T){const te=_($);te?(te!==$&&(O=!0),P.push(te)):O=!0}return O?h.flags&1048576&&P.length===T.length?zr(P):h.flags&2097152&&P.length?ca(P):void 0:h}if(h.flags&4194304)return Fs;if(h.flags&134217728){const T=h.types,P=qi(T,_);return P.length===T.length?lb(h.texts,P):F}if(h.flags&268435456){const T=_(h.type);return T&&T!==h.type?ix(h.symbol,T):F}if(h.flags&8388608){if(Lre(h))return _(TJ(h.objectType,h.indexType));const T=_(h.objectType),P=_(h.indexType),O=T&&P&&Mh(T,P,h.accessFlags);return O&&_(O)}if(h.flags&16777216){const T=t4e(h);return T&&_(T)}if(h.flags&33554432)return _(Zre(h));if(D0(h)){const T=an(Q1(h),(P,O)=>{const $=P.flags&262144&&h.target.elementFlags[O]&8&&_(P)||P;return $!==P&&Df($,te=>Sv(te)&&!D0(te))?$:P});return qp(T,h.target.elementFlags,h.target.readonly,h.target.labeledElementDeclarations)}return h}}function RXe(n,s){return n.resolvedApparentType||(n.resolvedApparentType=Uu(n,s,!0))}function Fre(n){if(n.default)n.default===qt&&(n.default=La);else if(n.target){const s=Fre(n.target);n.default=s?Ji(s,n.mapper):ja}else{n.default=qt;const s=n.symbol&&mn(n.symbol.declarations,_=>Ho(_)&&_.default),c=s?ii(s):ja;n.default===qt&&(n.default=c)}return n.default}function ob(n){const s=Fre(n);return s!==ja&&s!==La?s:void 0}function BXe(n){return Fre(n)!==La}function r4e(n){return!!(n.symbol&&mn(n.symbol.declarations,s=>Ho(s)&&s.default))}function jXe(n){return n.resolvedApparentType||(n.resolvedApparentType=JXe(n))}function JXe(n){const s=NJ(n);if(s&&!n.declaration.nameType){const c=s_(s);if(c&&Df(c,Sv))return Ji(n,ox(s,c,n.mapper))}return n}function Lre(n){let s;return!!(n.flags&8388608&&Br(s=n.objectType)&32&&!ff(s)&&Y1(n.indexType)&&!(tm(s)&8)&&!s.declaration.nameType)}function Y_(n){const s=n.flags&465829888?B_(n)||Jt:n,c=Br(s);return c&32?jXe(s):c&4&&s!==n?Uu(s,n):s.flags&2097152?RXe(s,n):s.flags&402653316?Bi:s.flags&296?Es:s.flags&2112?SQe():s.flags&528?Ua:s.flags&12288?P4e():s.flags&67108864?Oi:s.flags&4194304?Fs:s.flags&2&&!H?Oi:s}function Q4(n){return Wp(Y_(Wp(n)))}function i4e(n,s,c){var _,d,h;let T,P,O;const $=n.flags&1048576;let te,ce=4,Se=$?0:8,Te=!1;for(const dn of n.types){const Cn=Y_(dn);if(!(q(Cn)||Cn.flags&131072)){const Un=qs(Cn,s,c),ws=Un?Ff(Un):0;if(Un){if(Un.flags&106500&&(te!=null||(te=$?0:16777216),$?te|=Un.flags&16777216:te&=Un.flags),!T)T=Un;else if(Un!==T)if((Mk(Un)||Un)===(Mk(T)||T)&&Rie(T,Un,(Ts,cc)=>Ts===cc?-1:0)===-1)Te=!!T.parent&&!!Pn(zp(T.parent));else{P||(P=new Map,P.set(ya(T),T));const Ts=ya(Un);P.has(Ts)||P.set(Ts,Un)}$&&Xp(Un)?Se|=8:!$&&!Xp(Un)&&(Se&=-9),Se|=(ws&24?0:256)|(ws&16?512:0)|(ws&8?1024:0)|(ws&32?2048:0),Pse(Un)||(ce=2)}else if($){const Sr=!LE(s)&&nx(Cn,s);Sr?(Se|=32|(Sr.isReadonly?8:0),O=gn(O,_a(Cn)?VJ(Cn)||Pt:Sr.type)):ny(Cn)&&!(Br(Cn)&2097152)?(Se|=32,O=gn(O,Pt)):Se|=16}}}if(!T||$&&(P||Se&48)&&Se&1536&&!(P&&zXe(P.values())))return;if(!P&&!(Se&16)&&!O)if(Te){const dn=(_=Hr(T,pm))==null?void 0:_.links,Cn=fb(T,dn==null?void 0:dn.type);return Cn.parent=(h=(d=T.valueDeclaration)==null?void 0:d.symbol)==null?void 0:h.parent,Cn.links.containingType=n,Cn.links.mapper=dn==null?void 0:dn.mapper,Cn}else return T;const Ze=P?ia(P.values()):[T];let St,Kt,_n;const Gn=[];let Nn,Ht,Mn=!1;for(const dn of Ze){Ht?dn.valueDeclaration&&dn.valueDeclaration!==Ht&&(Mn=!0):Ht=dn.valueDeclaration,St=Lr(St,dn.declarations);const Cn=$n(dn);Kt||(Kt=Cn,_n=Fi(dn).nameType);const Un=OE(dn);Nn||Un!==Cn?Nn=gn(Nn||Gn.slice(),Un):Cn!==Kt&&(Se|=64),(QE(Cn)||wk(Cn))&&(Se|=128),Cn.flags&131072&&Cn!==Ea&&(Se|=131072),Gn.push(Cn)}Lr(Gn,O);const Xt=Pa(4|(te!=null?te:0),s,ce|Se);return Xt.links.containingType=n,!Mn&&Ht&&(Xt.valueDeclaration=Ht,Ht.symbol.parent&&(Xt.parent=Ht.symbol.parent)),Xt.declarations=St,Xt.links.nameType=_n,Gn.length>2?(Xt.links.checkFlags|=65536,Xt.links.deferralParent=n,Xt.links.deferralConstituents=Gn,Xt.links.deferralWriteConstituents=Nn):(Xt.links.type=$?zr(Gn):ca(Gn),Nn&&(Xt.links.writeType=$?zr(Nn):ca(Nn))),Xt}function s4e(n,s,c){var _,d;let h=((_=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:_.get(s))||!c?(d=n.propertyCache)==null?void 0:d.get(s):void 0;return h||(h=i4e(n,s,c),h&&(c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=Us()):n.propertyCache||(n.propertyCache=Us())).set(s,h)),h}function zXe(n){let s;for(const c of n){if(!c.declarations)return;if(!s){s=new Set(c.declarations);continue}if(s.forEach(_=>{gs(c.declarations,_)||s.delete(_)}),s.size===0)return}return s}function Mre(n,s,c){const _=s4e(n,s,c);return _&&!(rc(_)&16)?_:void 0}function Wp(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=VXe(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(dt(tP(n),UXe)?33554432:0)),n.objectFlags&33554432?jn:n):n}function VXe(n){const s=cl(n.types,Wp);if(s===n.types)return n;const c=zr(s);return c.flags&1048576&&(c.resolvedReducedType=c),c}function UXe(n){return a4e(n)||o4e(n)}function a4e(n){return!(n.flags&16777216)&&(rc(n)&131264)===192&&!!($n(n).flags&131072)}function o4e(n){return!n.valueDeclaration&&!!(rc(n)&1024)}function Rre(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&dt(n.types,Rre)||n.flags&2097152&&WXe(n))}function WXe(n){const s=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=Ji(n,ro));return Wp(s)!==s}function Bre(n,s){if(s.flags&2097152&&Br(s)&33554432){const c=Fr(tP(s),a4e);if(c)return _s(n,p.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,kn(s,void 0,536870912),ni(c));const _=Fr(tP(s),o4e);if(_)return _s(n,p.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,kn(s,void 0,536870912),ni(_))}return n}function qs(n,s,c,_){if(n=Q4(n),n.flags&524288){const d=Up(n),h=d.members.get(s);if(h&&cv(h,_))return h;if(c)return;const T=d===mo?zo:d.callSignatures.length?bu:d.constructSignatures.length?he:void 0;if(T){const P=mv(T,s);if(P)return P}return mv(Uc,s)}if(n.flags&3145728)return Mre(n,s,c)}function nP(n,s){if(n.flags&3670016){const c=Up(n);return s===0?c.callSignatures:c.constructSignatures}return Ve}function As(n,s){const c=nP(Q4(n),s);if(s===0&&!Pn(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let _;if(Df(n,d=>{var h;return!!((h=d.symbol)!=null&&h.parent)&&qXe(d.symbol.parent)&&(_?_===d.symbol.escapedName:(_=d.symbol.escapedName,!0))})){const d=So(n,T=>Bh((c4e(T.symbol.parent)?bn:vt).typeParameters[0],T.mapper)),h=$l(d,Fg(n,T=>c4e(T.symbol.parent)));return n.arrayFallbackSignatures=As(Wc(h,_),s)}n.arrayFallbackSignatures=c}return c}function qXe(n){return!n||!vt.symbol||!bn.symbol?!1:!!Vu(n,vt.symbol)||!!Vu(n,bn.symbol)}function c4e(n){return!n||!bn.symbol?!1:!!Vu(n,bn.symbol)}function jre(n,s){return Fr(n,c=>c.keyType===s)}function Jre(n,s){let c,_,d;for(const h of n)h.keyType===F?c=h:xk(s,h.keyType)&&(_?(d||(d=[_])).push(h):_=h);return d?rm(Jt,ca(an(d,h=>h.type)),E_(d,(h,T)=>h&&T.isReadonly,!0)):_||(c&&xk(s,F)?c:void 0)}function xk(n,s){return la(n,s)||s===F&&la(n,ye)||s===ye&&(n===tc||!!(n.flags&128)&&rg(n.value))}function zre(n){return n.flags&3670016?Up(n).indexInfos:Ve}function x_(n){return zre(Q4(n))}function Rm(n,s){return jre(x_(n),s)}function x0(n,s){var c;return(c=Rm(n,s))==null?void 0:c.type}function Vre(n,s){return x_(n).filter(c=>xk(s,c.keyType))}function rP(n,s){return Jre(x_(n),s)}function nx(n,s){return rP(n,LE(s)?ir:lu(Li(s)))}function l4e(n){var s;let c;for(const _ of Zh(n))c=Rg(c,sb(_.symbol));return c!=null&&c.length?c:tl(n)?(s=Y4(n))==null?void 0:s.typeParameters:void 0}function Ure(n){const s=[];return n.forEach((c,_)=>{Y2(_)||s.push(c)}),s}function Wre(n,s){if(Al(n))return;const c=H_(pe,'"'+n+'"',512);return c&&s?Ra(c):c}function jE(n){if(jx(n)||MD(n)||RD(n))return!0;if(n.initializer){const c=gd(n.parent),_=n.parent.parameters.indexOf(n);return E.assert(_>=0),_>=bd(c,3)}const s=Mb(n.parent);return s?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=s.arguments.length:!1}function HXe(n){return Is(n)&&!ym(n)&&n.questionToken}function iP(n,s,c,_){return{kind:n,parameterName:s,parameterIndex:c,type:_}}function nm(n){let s=0;if(n)for(let c=0;c=c&&h<=d){const T=n?n.slice():[];for(let O=h;OP.arguments.length&&!Kt||RD(Ze)||(d=c.length)}if((n.kind===177||n.kind===178)&&vk(n)&&(!T||!h)){const Te=n.kind===177?178:177,Ze=uc(hr(n),Te);Ze&&(h=gre(Ze))}if(Zn(n)){const Te=ZI(n);Te&&Te.typeExpression&&(h=fb(Pa(1,"this"),ii(Te.typeExpression)))}const te=Iy(n)?Jx(n):n,ce=te&&wc(te)?i_(Ra(te.parent.symbol)):void 0,Se=ce?ce.localTypeParameters:l4e(n);(gW(n)||Zn(n)&&GXe(n,c))&&(_|=1),(e8(n)&&Mr(n,256)||wc(n)&&Mr(n.parent,256))&&(_|=4),s.resolvedSignature=Mm(n,Se,h,c,void 0,void 0,d,_)}return s.resolvedSignature}function GXe(n,s){if(Iy(n)||!qre(n))return!1;const c=Bo(n.parameters),_=c?Zk(c):dy(n).filter(rd),d=_c(_,T=>T.typeExpression&&SF(T.typeExpression.type)?T.typeExpression.type:void 0),h=Pa(3,"args",32768);return d?h.links.type=$l(ii(d.type)):(h.links.checkFlags|=65536,h.links.deferralParent=jn,h.links.deferralConstituents=[qe],h.links.deferralWriteConstituents=[qe]),d&&s.pop(),s.push(h),!0}function Y4(n){if(!(Zn(n)&&Eo(n)))return;const s=fy(n);return(s==null?void 0:s.typeExpression)&&yb(ii(s.typeExpression))}function $Xe(n,s){const c=Y4(n);if(!c)return;const _=n.parameters.indexOf(s);return s.dotDotDotToken?l7(c,_):$p(c,_)}function XXe(n){const s=Y4(n);return s&&Va(s)}function qre(n){const s=Jr(n);return s.containsArgumentsReference===void 0&&(s.flags&512?s.containsArgumentsReference=!0:s.containsArgumentsReference=c(n.body)),s.containsArgumentsReference;function c(_){if(!_)return!1;switch(_.kind){case 80:return _.escapedText===tt.escapedName&&C7(_)===tt;case 172:case 174:case 177:case 178:return _.name.kind===167&&c(_.name);case 211:case 212:return c(_.expression);case 303:return c(_.initializer);default:return!fq(_)&&!Ym(_)&&!!ys(_,c)}}}function gv(n){if(!n||!n.declarations)return Ve;const s=[];for(let c=0;c0&&_.body){const d=n.declarations[c-1];if(_.parent===d.parent&&_.kind===d.kind&&_.pos===d.end)continue}if(Zn(_)&&_.jsDoc){let d=!1;for(const h of _.jsDoc)if(h.tags){for(const T of h.tags)if(l8(T)){const P=T.typeExpression;P.type===void 0&&!wc(_)&&ty(P,ke),s.push(gd(P)),d=!0}}if(d)continue}s.push(!j6(_)&&!Sp(_)&&Y4(_)||gd(_))}}return s}function _4e(n){const s=r_(n,n);if(s){const c=lf(s);if(c)return $n(c)}return ke}function X1(n){if(n.thisParameter)return $n(n.thisParameter)}function Wf(n){if(!n.resolvedTypePredicate){if(n.target){const s=Wf(n.target);n.resolvedTypePredicate=s?OYe(s,n.mapper):Go}else if(n.compositeSignatures)n.resolvedTypePredicate=HQe(n.compositeSignatures,n.compositeKind)||Go;else{const s=n.declaration&&Kf(n.declaration);let c;if(!s){const _=Y4(n.declaration);_&&n!==_&&(c=Wf(_))}n.resolvedTypePredicate=s&&mF(s)?QXe(s,n):c||Go}E.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Go?void 0:n.resolvedTypePredicate}function QXe(n,s){const c=n.parameterName,_=n.type&&ii(n.type);return c.kind===197?iP(n.assertsModifier?2:0,void 0,void 0,_):iP(n.assertsModifier?3:1,c.escapedText,qc(s.parameters,d=>d.escapedName===c.escapedText),_)}function u4e(n,s,c){return s!==2097152?zr(n,c):ca(n)}function Va(n){if(!n.resolvedReturnType){if(!zf(n,3))return $e;let s=n.target?Ji(Va(n.target),n.mapper):n.compositeSignatures?Ji(u4e(an(n.compositeSignatures,Va),n.compositeKind,2),n.mapper):Sk(n.declaration)||(fc(n.declaration.body)?ke:Cz(n.declaration));if(n.flags&8?s=qCe(s):n.flags&16&&(s=A0(s)),!Kd()){if(n.declaration){const c=Kf(n.declaration);if(c)Fe(c,p.Return_type_annotation_circularly_references_itself);else if(fe){const _=n.declaration,d=os(_);d?Fe(d,p._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,no(d)):Fe(_,p.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)}}s=ke}n.resolvedReturnType=s}return n.resolvedReturnType}function Sk(n){if(n.kind===176)return i_(Ra(n.parent.symbol));const s=Kf(n);if(Iy(n)){const c=l3(n);if(c&&wc(c.parent)&&!s)return i_(Ra(c.parent.parent.symbol))}if(x6(n))return ii(n.parameters[0].type);if(s)return ii(s);if(n.kind===177&&vk(n)){const c=Zn(n)&&qa(n);if(c)return c;const _=uc(hr(n),178),d=q1(_);if(d)return d}return XXe(n)}function fJ(n){return n.compositeSignatures&&dt(n.compositeSignatures,fJ)||!n.resolvedReturnType&&pk(n,3)>=0}function YXe(n){return f4e(n)||ke}function f4e(n){if(d_(n)){const s=$n(n.parameters[n.parameters.length-1]),c=_a(s)?VJ(s):s;return c&&x0(c,ye)}}function JE(n,s,c,_){const d=Hre(n,Oh(s,n.typeParameters,nm(n.typeParameters),c));if(_){const h=x8e(Va(d));if(h){const T=ME(h);T.typeParameters=_;const P=ME(d);return P.resolvedReturnType=cb(T),P}}return d}function Hre(n,s){const c=n.instantiations||(n.instantiations=new Map),_=qf(s);let d=c.get(_);return d||c.set(_,d=pJ(n,s)),d}function pJ(n,s){return Ak(n,ZXe(n,s),!0)}function ZXe(n,s){return _u(n.typeParameters,s)}function zE(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=KXe(n)):n}function KXe(n){return Ak(n,gCe(n.typeParameters),!0)}function eQe(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=tQe(n)):n}function tQe(n){return JE(n,an(n.typeParameters,s=>s.target&&!s_(s.target)?s.target:s),Zn(n.declaration))}function nQe(n){const s=n.typeParameters;if(s){if(n.baseSignatureCache)return n.baseSignatureCache;const c=gCe(s),_=_u(s,an(s,h=>s_(h)||Jt));let d=an(s,h=>Ji(h,_)||Jt);for(let h=0;h{dJ(d)&&!jre(s,d)&&s.push(rm(d,c.type?ii(c.type):ke,Iu(c,64),c))})}return s}return Ve}function dJ(n){return!!(n.flags&4108)||wk(n)||!!(n.flags&2097152)&&!nC(n)&&dt(n.types,dJ)}function Xre(n){return qi(Vr(n.symbol&&n.symbol.declarations,Ho),Kk)[0]}function m4e(n,s){var c;let _;if((c=n.symbol)!=null&&c.declarations){for(const d of n.symbol.declarations)if(d.parent.kind===195){const[h=d.parent,T]=f_e(d.parent.parent);if(T.kind===183&&!s){const P=T,O=gae(P);if(O){const $=P.typeArguments.indexOf(h);if($()=>drt(P,O,Ze))),Se=Ji(te,ce);Se!==n&&(_=gn(_,Se))}}}}else if(T.kind===169&&T.dotDotDotToken||T.kind===191||T.kind===202&&T.dotDotDotToken)_=gn(_,$l(Jt));else if(T.kind===204)_=gn(_,F);else if(T.kind===168&&T.parent.kind===200)_=gn(_,Fs);else if(T.kind===200&&T.type&&uo(T.type)===d.parent&&T.parent.kind===194&&T.parent.extendsType===T&&T.parent.checkType.kind===200&&T.parent.checkType.type){const P=T.parent.checkType,O=ii(P.type);_=gn(_,Ji(O,Tv(sb(hr(P.typeParameter)),P.typeParameter.constraint?ii(P.typeParameter.constraint):Fs)))}}}return _&&ca(_)}function Z4(n){if(!n.constraint)if(n.target){const s=s_(n.target);n.constraint=s?Ji(s,n.mapper):ja}else{const s=Xre(n);if(!s)n.constraint=m4e(n)||ja;else{let c=ii(s);c.flags&1&&!q(c)&&(c=s.parent.parent.kind===200?Fs:Jt),n.constraint=c}}return n.constraint===ja?void 0:n.constraint}function g4e(n){const s=uc(n.symbol,168),c=id(s.parent)?H9(s.parent):s.parent;return c&&ku(c)}function qf(n){let s="";if(n){const c=n.length;let _=0;for(;_1&&(s+=":"+h),_+=h}}return s}function rx(n,s){return n?`@${ya(n)}`+(s?`:${qf(s)}`:""):""}function sP(n,s){let c=0;for(const _ of n)(s===void 0||!(_.flags&s))&&(c|=Br(_));return c&458752}function kk(n,s){return dt(s)&&n===Ls?Jt:S0(n,s)}function S0(n,s){const c=qf(s);let _=n.instantiations.get(c);return _||(_=jf(4,n.symbol),n.instantiations.set(c,_),_.objectFlags|=s?sP(s):0,_.target=n,_.resolvedTypeArguments=s),_}function h4e(n){const s=xg(n.flags,n.symbol);return s.objectFlags=n.objectFlags,s.target=n.target,s.resolvedTypeArguments=n.resolvedTypeArguments,s}function Qre(n,s,c,_,d){if(!_){_=sx(s);const T=Dk(_);d=c?E0(T,c):T}const h=jf(4,n.symbol);return h.target=n,h.node=s,h.mapper=c,h.aliasSymbol=_,h.aliasTypeArguments=d,h}function po(n){var s,c;if(!n.resolvedTypeArguments){if(!zf(n,6))return((s=n.target.localTypeParameters)==null?void 0:s.map(()=>$e))||Ve;const _=n.node,d=_?_.kind===183?Ki(n.target.outerTypeParameters,Dz(_,n.target.localTypeParameters)):_.kind===188?[ii(_.elementType)]:an(_.elements,ii):Ve;Kd()?n.resolvedTypeArguments=n.mapper?E0(d,n.mapper):d:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>$e))||Ve,Fe(n.node||D,n.target.symbol?p.Type_arguments_for_0_circularly_reference_themselves:p.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&ni(n.target.symbol)))}return n.resolvedTypeArguments}function k0(n){return Pn(n.target.typeParameters)}function y4e(n,s){const c=go(Ra(s)),_=c.localTypeParameters;if(_){const d=Pn(n.typeArguments),h=nm(_),T=Zn(n);if(!(!fe&&T)&&(d_.length)){const $=T&&nh(n)&&!i4(n.parent),te=h===_.length?$?p.Expected_0_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_1_type_argument_s:$?p.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_between_1_and_2_type_arguments,ce=kn(c,void 0,2);if(Fe(n,te,ce,h,_.length),!T)return $e}if(n.kind===183&&B4e(n,Pn(n.typeArguments)!==_.length))return Qre(c,n,void 0);const O=Ki(c.outerTypeParameters,Oh(aP(n),_,h,T));return S0(c,O)}return hv(n,s)?c:$e}function Ck(n,s,c,_){const d=go(n);if(d===_t&&XA.has(n.escapedName)&&s&&s.length===1)return ix(n,s[0]);const h=Fi(n),T=h.typeParameters,P=qf(s)+rx(c,_);let O=h.instantiations.get(P);return O||h.instantiations.set(P,O=vCe(d,_u(T,Oh(s,T,nm(T),Zn(n.valueDeclaration))),c,_)),O}function rQe(n,s){if(rc(s)&1048576){const d=aP(n),h=rx(s,d);let T=Me.get(h);return T||(T=Vo(1,"error"),T.aliasSymbol=s,T.aliasTypeArguments=d,Me.set(h,T)),T}const c=go(s),_=Fi(s).typeParameters;if(_){const d=Pn(n.typeArguments),h=nm(_);if(d_.length)return Fe(n,h===_.length?p.Generic_type_0_requires_1_type_argument_s:p.Generic_type_0_requires_between_1_and_2_type_arguments,ni(s),h,_.length),$e;const T=sx(n);let P=T&&(v4e(s)||!v4e(T))?T:void 0,O;if(P)O=Dk(P);else if(d9(n)){const $=Ek(n,2097152,!0);if($&&$!==st){const te=gl($);te&&te.flags&524288&&(P=te,O=aP(n)||(_?[]:void 0))}}return Ck(s,aP(n),P,O)}return hv(n,s)?c:$e}function v4e(n){var s;const c=(s=n.declarations)==null?void 0:s.find(tD);return!!(c&&df(c))}function iQe(n){switch(n.kind){case 183:return n.typeName;case 233:const s=n.expression;if(Sc(s))return s}}function b4e(n){return n.parent?`${b4e(n.parent)}.${n.escapedName}`:n.escapedName}function mJ(n){const c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){const _=n.kind===166?mJ(n.left):n.kind===211?mJ(n.expression):void 0,d=_?`${b4e(_)}.${c}`:c;let h=ae.get(d);return h||(ae.set(d,h=Pa(524288,c,1048576)),h.parent=_,h.links.declaredType=Ae),h}return st}function Ek(n,s,c){const _=iQe(n);if(!_)return st;const d=Xo(_,s,c);return d&&d!==st?d:c?st:mJ(_)}function gJ(n,s){if(s===st)return $e;if(s=ok(s)||s,s.flags&96)return y4e(n,s);if(s.flags&524288)return rQe(n,s);const c=R6e(s);if(c)return hv(n,s)?j_(c):$e;if(s.flags&111551&&hJ(n)){const _=sQe(n,s);return _||(Ek(n,788968),$n(s))}return $e}function sQe(n,s){const c=Jr(n);if(!c.resolvedJSDocType){const _=$n(s);let d=_;if(s.valueDeclaration){const h=n.kind===205&&n.qualifier;_.symbol&&_.symbol!==s&&h&&(d=gJ(n,_.symbol))}c.resolvedJSDocType=d}return c.resolvedJSDocType}function Yre(n,s){if(s.flags&3||s===n||n.flags&1)return n;const c=`${S_(n)}>${S_(s)}`,_=Gt.get(c);if(_)return _;const d=_f(33554432);return d.baseType=n,d.constraint=s,Gt.set(c,d),d}function Zre(n){return ca([n.constraint,n.baseType])}function T4e(n){return n.kind===189&&n.elements.length===1}function x4e(n,s,c){return T4e(s)&&T4e(c)?x4e(n,s.elements[0],c.elements[0]):Rh(ii(s))===Rh(n)?ii(c):void 0}function aQe(n,s){let c,_=!0;for(;s&&!Ii(s)&&s.kind!==327;){const d=s.parent;if(d.kind===169&&(_=!_),(_||n.flags&8650752)&&d.kind===194&&s===d.trueType){const h=x4e(n,d.checkType,d.extendsType);h&&(c=gn(c,h))}else if(n.flags&262144&&d.kind===200&&s===d.type){const h=ii(d);if(Vp(h)===Rh(n)){const T=NJ(h);if(T){const P=s_(T);P&&Df(P,Sv)&&(c=gn(c,zr([ye,tc])))}}}s=d}return c?Yre(n,ca(c)):n}function hJ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function hv(n,s){return n.typeArguments?(Fe(n,p.Type_0_is_not_generic,s?ni(s):n.typeName?no(n.typeName):$A),!1):!0}function S4e(n){if(we(n.typeName)){const s=n.typeArguments;switch(n.typeName.escapedText){case"String":return hv(n),F;case"Number":return hv(n),ye;case"Boolean":return hv(n),Sn;case"Void":return hv(n),ar;case"Undefined":return hv(n),Pt;case"Null":return hv(n),W;case"Function":case"function":return hv(n),zo;case"array":return(!s||!s.length)&&!fe?qe:void 0;case"promise":return(!s||!s.length)&&!fe?UP(ke):void 0;case"Object":if(s&&s.length===2){if(J9(n)){const c=ii(s[0]),_=ii(s[1]),d=c===F||c===ye?[rm(c,_,!1)]:Ve;return yc(void 0,U,Ve,Ve,d)}return ke}return hv(n),fe?void 0:ke}}}function oQe(n){const s=ii(n.type);return H?UJ(s,65536):s}function Kre(n){const s=Jr(n);if(!s.resolvedType){if(Ug(n)&&Pb(n.parent))return s.resolvedSymbol=st,s.resolvedType=jc(n.parent.expression);let c,_;const d=788968;hJ(n)&&(_=S4e(n),_||(c=Ek(n,d,!0),c===st?c=Ek(n,d|111551):Ek(n,d),_=gJ(n,c))),_||(c=Ek(n,d),_=gJ(n,c)),s.resolvedSymbol=c,s.resolvedType=_}return s.resolvedType}function aP(n){return an(n.typeArguments,ii)}function k4e(n){const s=Jr(n);if(!s.resolvedType){const c=V8e(n);s.resolvedType=j_(Wu(c))}return s.resolvedType}function C4e(n,s){function c(d){const h=d.declarations;if(h)for(const T of h)switch(T.kind){case 263:case 264:case 266:return T}}if(!n)return s?Ls:Oi;const _=go(n);return _.flags&524288?Pn(_.typeParameters)!==s?(Fe(c(n),p.Global_type_0_must_have_1_type_parameter_s,xc(n),s),s?Ls:Oi):_:(Fe(c(n),p.Global_type_0_must_be_a_class_or_interface_type,xc(n)),s?Ls:Oi)}function eie(n,s){return K4(n,111551,s?p.Cannot_find_global_value_0:void 0)}function E4e(n,s){return K4(n,788968,s?p.Cannot_find_global_type_0:void 0)}function yJ(n,s,c){const _=K4(n,788968,c?p.Cannot_find_global_type_0:void 0);if(_&&(go(_),Pn(Fi(_).typeParameters)!==s)){const d=_.declarations&&Fr(_.declarations,wp);Fe(d,p.Global_type_0_must_have_1_type_parameter_s,xc(_),s);return}return _}function K4(n,s,c){return Mc(void 0,n,s,c,n,!1,!1,!1)}function Bc(n,s,c){const _=E4e(n,c);return _||c?C4e(_,s):void 0}function cQe(){return li||(li=Bc("TypedPropertyDescriptor",1,!0)||Ls)}function lQe(){return Be||(Be=Bc("TemplateStringsArray",0,!0)||Oi)}function w4e(){return At||(At=Bc("ImportMeta",0,!0)||Oi)}function D4e(){if(!Jn){const n=Pa(0,"ImportMetaExpression"),s=w4e(),c=Pa(4,"meta",8);c.parent=n,c.links.type=s;const _=Us([c]);n.members=_,Jn=yc(n,_,Ve,Ve,Ve)}return Jn}function A4e(n){return vs||(vs=Bc("ImportCallOptions",0,n))||Oi}function N4e(n){return Fn||(Fn=eie("Symbol",n))}function _Qe(n){return Cr||(Cr=E4e("SymbolConstructor",n))}function P4e(){return qr||(qr=Bc("Symbol",0,!1))||Oi}function oP(n){return ds||(ds=Bc("Promise",1,n))||Ls}function I4e(n){return va||(va=Bc("PromiseLike",1,n))||Ls}function tie(n){return Fo||(Fo=eie("Promise",n))}function uQe(n){return Ro||(Ro=Bc("PromiseConstructorLike",0,n))||Oi}function vJ(n){return cd||(cd=Bc("AsyncIterable",1,n))||Ls}function fQe(n){return E1||(E1=Bc("AsyncIterator",3,n))||Ls}function pQe(n){return qd||(qd=Bc("AsyncIterableIterator",1,n))||Ls}function dQe(n){return J||(J=Bc("AsyncGenerator",3,n))||Ls}function nie(n){return Zc||(Zc=Bc("Iterable",1,n))||Ls}function mQe(n){return Fc||(Fc=Bc("Iterator",3,n))||Ls}function gQe(n){return il||(il=Bc("IterableIterator",1,n))||Ls}function hQe(n){return Ml||(Ml=Bc("Generator",3,n))||Ls}function yQe(n){return sl||(sl=Bc("IteratorYieldResult",1,n))||Ls}function vQe(n){return ju||(ju=Bc("IteratorReturnResult",1,n))||Ls}function O4e(n){return di||(di=Bc("Disposable",0,n))||Oi}function bQe(n){return rs||(rs=Bc("AsyncDisposable",0,n))||Oi}function F4e(n,s=0){const c=K4(n,788968,void 0);return c&&C4e(c,s)}function TQe(){return bs||(bs=yJ("Extract",2,!0)||st),bs===st?void 0:bs}function xQe(){return Lo||(Lo=yJ("Omit",2,!0)||st),Lo===st?void 0:Lo}function rie(n){return aa||(aa=yJ("Awaited",1,n)||(n?st:void 0)),aa===st?void 0:aa}function SQe(){return xl||(xl=Bc("BigInt",0,!1))||Oi}function kQe(n){var s;return(s=ld!=null?ld:ld=Bc("ClassDecoratorContext",1,n))!=null?s:Ls}function CQe(n){var s;return(s=Hd!=null?Hd:Hd=Bc("ClassMethodDecoratorContext",2,n))!=null?s:Ls}function EQe(n){var s;return(s=Fp!=null?Fp:Fp=Bc("ClassGetterDecoratorContext",2,n))!=null?s:Ls}function wQe(n){var s;return(s=Ee!=null?Ee:Ee=Bc("ClassSetterDecoratorContext",2,n))!=null?s:Ls}function DQe(n){var s;return(s=je!=null?je:je=Bc("ClassAccessorDecoratorContext",2,n))!=null?s:Ls}function AQe(n){var s;return(s=Ye!=null?Ye:Ye=Bc("ClassAccessorDecoratorTarget",2,n))!=null?s:Ls}function NQe(n){var s;return(s=Rt!=null?Rt:Rt=Bc("ClassAccessorDecoratorResult",2,n))!=null?s:Ls}function PQe(n){var s;return(s=rn!=null?rn:rn=Bc("ClassFieldDecoratorContext",2,n))!=null?s:Ls}function IQe(){return cf||(cf=eie("NaN",!1))}function OQe(){return y_||(y_=yJ("Record",2,!0)||st),y_===st?void 0:y_}function VE(n,s){return n!==Ls?S0(n,s):Oi}function L4e(n){return VE(cQe(),[n])}function M4e(n){return VE(nie(!0),[n])}function $l(n,s){return VE(s?bn:vt,[n])}function iie(n){switch(n.kind){case 190:return 2;case 191:return R4e(n);case 202:return n.questionToken?2:n.dotDotDotToken?R4e(n):1;default:return 1}}function R4e(n){return uP(n.type)?4:8}function FQe(n){const s=RQe(n.parent);if(uP(n))return s?bn:vt;const _=an(n.elements,iie);return sie(_,s,an(n.elements,LQe))}function LQe(n){return t8(n)||ns(n)?n:void 0}function B4e(n,s){return!!sx(n)||j4e(n)&&(n.kind===188?Fh(n.elementType):n.kind===189?dt(n.elements,Fh):s||dt(n.typeArguments,Fh))}function j4e(n){const s=n.parent;switch(s.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return j4e(s);case 265:return!0}return!1}function Fh(n){switch(n.kind){case 183:return hJ(n)||!!(Ek(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Fh(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Fh(n.type);case 191:return n.type.kind!==188||Fh(n.type.elementType);case 192:case 193:return dt(n.types,Fh);case 199:return Fh(n.objectType)||Fh(n.indexType);case 194:return Fh(n.checkType)||Fh(n.extendsType)||Fh(n.trueType)||Fh(n.falseType)}return!1}function MQe(n){const s=Jr(n);if(!s.resolvedType){const c=FQe(n);if(c===Ls)s.resolvedType=Oi;else if(!(n.kind===189&&dt(n.elements,_=>!!(iie(_)&8)))&&B4e(n))s.resolvedType=n.kind===189&&n.elements.length===0?c:Qre(c,n,void 0);else{const _=n.kind===188?[ii(n.elementType)]:an(n.elements,ii);s.resolvedType=aie(c,_)}}return s.resolvedType}function RQe(n){return lS(n)&&n.operator===148}function qp(n,s,c=!1,_=[]){const d=sie(s||an(n,h=>1),c,_);return d===Ls?Oi:n.length?aie(d,n):d}function sie(n,s,c){if(n.length===1&&n[0]&4)return s?bn:vt;const _=qi(c,T=>T?Ba(T):void 0),d=an(n,T=>T&1?"#":T&2?"?":T&4?".":"*").join()+(s?"R":"")+(_.length?","+_.join(","):"");let h=Si.get(d);return h||Si.set(d,h=BQe(n,s,c)),h}function BQe(n,s,c){const _=n.length,d=L0(n,ce=>!!(ce&9));let h;const T=[];let P=0;if(_){h=new Array(_);for(let ce=0;ce<_;ce++){const Se=h[ce]=Jf(),Te=n[ce];if(P|=Te,!(P&12)){const Ze=Pa(4|(Te&2?16777216:0),""+ce,s?8:0);Ze.links.tupleLabelDeclaration=c==null?void 0:c[ce],Ze.links.type=Se,T.push(Ze)}}}const O=T.length,$=Pa(4,"length",s?8:0);if(P&12)$.links.type=ye;else{const ce=[];for(let Se=d;Se<=_;Se++)ce.push(Hp(Se));$.links.type=zr(ce)}T.push($);const te=jf(12);return te.typeParameters=h,te.outerTypeParameters=void 0,te.localTypeParameters=h,te.instantiations=new Map,te.instantiations.set(qf(te.typeParameters),te),te.target=te,te.resolvedTypeArguments=te.typeParameters,te.thisType=Jf(),te.thisType.isThisType=!0,te.thisType.constraint=te,te.declaredProperties=T,te.declaredCallSignatures=Ve,te.declaredConstructSignatures=Ve,te.declaredIndexInfos=Ve,te.elementFlags=n,te.minLength=d,te.fixedLength=O,te.hasRestElement=!!(P&12),te.combinedFlags=P,te.readonly=s,te.labeledElementDeclarations=c,te}function aie(n,s){return n.objectFlags&8?oie(n,s):S0(n,s)}function oie(n,s){var c,_,d;if(!(n.combinedFlags&14))return S0(n,s);if(n.combinedFlags&8){const Te=qc(s,(Ze,St)=>!!(n.elementFlags[St]&8&&Ze.flags&1179648));if(Te>=0)return cP(an(s,(Ze,St)=>n.elementFlags[St]&8?Ze:Jt))?So(s[Te],Ze=>oie(n,_V(s,Te,Ze))):$e}const h=[],T=[],P=[];let O=-1,$=-1,te=-1;for(let Te=0;Te=1e4)return Fe(D,Ym(D)?p.Type_produces_a_tuple_type_that_is_too_large_to_represent:p.Expression_produces_a_tuple_type_that_is_too_large_to_represent),$e;mn(Kt,(_n,Gn)=>{var Nn;return Se(_n,Ze.target.elementFlags[Gn],(Nn=Ze.target.labeledElementDeclarations)==null?void 0:Nn[Gn])})}else Se(w0(Ze)&&x0(Ze,ye)||$e,4,(_=n.labeledElementDeclarations)==null?void 0:_[Te]);else Se(Ze,St,(d=n.labeledElementDeclarations)==null?void 0:d[Te])}for(let Te=0;Te=0&&$T[$+Ze]&8?Cu(Te,ye):Te)),h.splice($+1,te-$),T.splice($+1,te-$),P.splice($+1,te-$));const ce=sie(T,n.readonly,P);return ce===Ls?Oi:T.length?S0(ce,h):ce;function Se(Te,Ze,St){Ze&1&&(O=T.length),Ze&4&&$<0&&($=T.length),Ze&6&&(te=T.length),h.push(Ze&2?Sl(Te,!0):Te),T.push(Ze),P.push(St)}}function eC(n,s,c=0){const _=n.target,d=k0(n)-c;return s>_.fixedLength?kZe(n)||qp(Ve):qp(po(n).slice(s,d),_.elementFlags.slice(s,d),!1,_.labeledElementDeclarations&&_.labeledElementDeclarations.slice(s,d))}function J4e(n){return zr(gn(soe(n.target.fixedLength,s=>lu(""+s)),im(n.target.readonly?bn:vt)))}function jQe(n,s){const c=qc(n.elementFlags,_=>!(_&s));return c>=0?c:n.elementFlags.length}function UE(n,s){return n.elementFlags.length-cI(n.elementFlags,c=>!(c&s))-1}function cie(n){return n.fixedLength+UE(n,3)}function Q1(n){const s=po(n),c=k0(n);return s.length===c?s:s.slice(0,c)}function JQe(n){return Sl(ii(n.type),!0)}function S_(n){return n.id}function Lh(n,s){return Hh(n,s,S_,Co)>=0}function lie(n,s){const c=Hh(n,s,S_,Co);return c<0?(n.splice(~c,0,s),!0):!1}function zQe(n,s,c){const _=c.flags;if(!(_&131072))if(s|=_&473694207,_&465829888&&(s|=33554432),c===K&&(s|=8388608),!H&&_&98304)Br(c)&65536||(s|=4194304);else{const d=n.length,h=d&&c.id>n[d-1].id?~d:Hh(n,c,S_,Co);h<0&&n.splice(~h,0,c)}return s}function z4e(n,s,c){let _;for(const d of c)d!==_&&(s=d.flags&1048576?z4e(n,s|(qQe(d)?1048576:0),d.types):zQe(n,s,d),_=d);return s}function VQe(n,s){var c;if(n.length<2)return n;const _=qf(n),d=xn.get(_);if(d)return d;const h=s&&dt(n,$=>!!($.flags&524288)&&!ff($)&&Nie(Up($))),T=n.length;let P=T,O=0;for(;P>0;){P--;const $=n[P];if(h||$.flags&469499904){if($.flags&262144&&wg($).flags&1048576){hd($,zr(an(n,Se=>Se===$?jn:Se)),bf)&&cy(n,P);continue}const te=$.flags&61603840?Fr(za($),Se=>Gp($n(Se))):void 0,ce=te&&j_($n(te));for(const Se of n)if($!==Se){if(O===1e5&&O/(T-P)*T>1e6){(c=ci)==null||c.instant(ci.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(Ze=>Ze.id)}),Fe(D,p.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(O++,te&&Se.flags&61603840){const Te=Wc(Se,te.escapedName);if(Te&&Gp(Te)&&j_(Te)!==ce)continue}if(hd($,Se,bf)&&(!(Br(ib($))&1)||!(Br(ib(Se))&1)||xv($,Se))){cy(n,P);break}}}}return xn.set(_,n),n}function UQe(n,s,c){let _=n.length;for(;_>0;){_--;const d=n[_],h=d.flags;(h&402653312&&s&4||h&256&&s&8||h&2048&&s&64||h&8192&&s&4096||c&&h&32768&&s&16384||bv(d)&&Lh(n,d.regularType))&&cy(n,_)}}function WQe(n){const s=Vr(n,c=>!!(c.flags&134217728)&&wk(c));if(s.length){let c=n.length;for(;c>0;){c--;const _=n[c];_.flags&128&&dt(s,d=>tse(_,d))&&cy(n,c)}}}function qQe(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function V4e(n,s){for(const c of s)if(c.flags&1048576){const _=c.origin;c.aliasSymbol||_&&!(_.flags&1048576)?Gf(n,c):_&&_.flags&1048576&&V4e(n,_.types)}}function _ie(n,s){const c=ZT(n);return c.types=s,c}function zr(n,s=1,c,_,d){if(n.length===0)return jn;if(n.length===1)return n[0];if(n.length===2&&!d&&(n[0].flags&1048576||n[1].flags&1048576)){const h=s===0?"N":s===2?"S":"L",T=n[0].id=2&&h[0]===Pt&&h[1]===z&&cy(h,1),(T&402664352||T&16384&&T&32768)&&UQe(h,T,!!(s&2)),T&128&&T&134217728&&WQe(h),s===2&&(h=VQe(h,!!(T&524288)),!h))return $e;if(h.length===0)return T&65536?T&4194304?W:ge:T&32768?T&4194304?Pt:hi:jn}if(!d&&T&1048576){const O=[];V4e(O,n);const $=[];for(const ce of h)dt(O,Se=>Lh(Se.types,ce))||$.push(ce);if(!c&&O.length===1&&$.length===0)return O[0];if(E_(O,(ce,Se)=>ce+Se.types.length,0)+$.length===h.length){for(const ce of O)lie($,ce);d=_ie(1048576,$)}}const P=(T&36323331?0:32768)|(T&2097152?16777216:0);return fie(h,P,c,_,d)}function HQe(n,s){let c;const _=[];for(const h of n){const T=Wf(h);if(T){if(T.kind!==0&&T.kind!==1||c&&!uie(c,T))return;c=T,_.push(T.type)}else{const P=s!==2097152?Va(h):void 0;if(P!==We&&P!==Tt)return}}if(!c)return;const d=u4e(_,s);return iP(c.kind,c.parameterName,c.parameterIndex,d)}function uie(n,s){return n.kind===s.kind&&n.parameterIndex===s.parameterIndex}function fie(n,s,c,_,d){if(n.length===0)return jn;if(n.length===1)return n[0];const T=(d?d.flags&1048576?`|${qf(d.types)}`:d.flags&2097152?`&${qf(d.types)}`:`#${d.type.id}|${qf(n)}`:qf(n))+rx(c,_);let P=Nr.get(T);return P||(P=_f(1048576),P.objectFlags=s|sP(n,98304),P.types=n,P.origin=d,P.aliasSymbol=c,P.aliasTypeArguments=_,n.length===2&&n[0].flags&512&&n[1].flags&512&&(P.flags|=16,P.intrinsicName="boolean"),Nr.set(T,P)),P}function GQe(n){const s=Jr(n);if(!s.resolvedType){const c=sx(n);s.resolvedType=zr(an(n.types,ii),1,c,Dk(c))}return s.resolvedType}function $Qe(n,s,c){const _=c.flags;return _&2097152?W4e(n,s,c.types):(Pg(c)?s&16777216||(s|=16777216,n.set(c.id.toString(),c)):(_&3?c===K&&(s|=8388608):(H||!(_&98304))&&(c===z&&(s|=262144,c=Pt),n.has(c.id.toString())||(c.flags&109472&&s&109472&&(s|=67108864),n.set(c.id.toString(),c))),s|=_&473694207),s)}function W4e(n,s,c){for(const _ of c)s=$Qe(n,s,j_(_));return s}function XQe(n,s){let c=n.length;for(;c>0;){c--;const _=n[c];(_.flags&4&&s&402653312||_.flags&8&&s&256||_.flags&64&&s&2048||_.flags&4096&&s&8192||_.flags&16384&&s&32768||Pg(_)&&s&470302716)&&cy(n,c)}}function QQe(n,s){for(const c of n)if(!Lh(c.types,s)){const _=s.flags&128?F:s.flags&288?ye:s.flags&2048?Oe:s.flags&8192?ir:void 0;if(!_||!Lh(c.types,_))return!1}return!0}function YQe(n){let s=n.length;const c=Vr(n,_=>!!(_.flags&128));for(;s>0;){s--;const _=n[s];if(!!(_.flags&134217728)){for(const d of c)if(jh(d,_)){cy(n,s);break}else if(wk(_))return!0}}return!1}function q4e(n,s){for(let c=0;c!(_.flags&s))}function ZQe(n){let s;const c=qc(n,T=>!!(Br(T)&32768));if(c<0)return!1;let _=c+1;for(;_!!($.flags&1048576&&$.types[0].flags&32768))){const $=dt(T,ZE)?z:Pt;q4e(T,32768),O=zr([ca(T),$],1,s,c)}else if($i(T,$=>!!($.flags&1048576&&($.types[0].flags&65536||$.types[1].flags&65536))))q4e(T,65536),O=zr([ca(T),W],1,s,c);else{if(!cP(T))return $e;const $=eYe(T),te=dt($,ce=>!!(ce.flags&2097152))&&pie($)>pie(T)?_ie(2097152,T):void 0;O=zr($,1,s,c,te)}else O=KQe(T,s,c);ur.set(P,O)}return O}function H4e(n){return E_(n,(s,c)=>c.flags&1048576?s*c.types.length:c.flags&131072?0:s,1)}function cP(n){var s;const c=H4e(n);return c>=1e5?((s=ci)==null||s.instant(ci.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(_=>_.id),size:c}),Fe(D,p.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function eYe(n){const s=H4e(n),c=[];for(let _=0;_=0;P--)if(n[P].flags&1048576){const O=n[P].types,$=O.length;d[P]=O[h%$],h=Math.floor(h/$)}const T=ca(d);T.flags&131072||c.push(T)}return c}function G4e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?G4e(n.origin):pie(n.types)}function pie(n){return E_(n,(s,c)=>s+G4e(c),0)}function $4e(n,s){return!!(n.flags&76)&&s===L_}function tYe(n){const s=Jr(n);if(!s.resolvedType){const c=sx(n),_=an(n.types,ii),d=_.length===2&&($4e(_[0],_[1])||$4e(_[1],_[0]));s.resolvedType=ca(_,c,Dk(c),d)}return s.resolvedType}function X4e(n,s){const c=_f(4194304);return c.type=n,c.indexFlags=s,c}function nYe(n){const s=ZT(4194304);return s.type=n,s}function Q4e(n,s){return s&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=X4e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=X4e(n,0))}function rYe(n,s){const c=Vp(n),_=Uf(n),d=T0(n.target||n);if(!d&&!(s&2))return _;const h=[];if(RE(n)){if(Y1(_))return Q4e(n,s);{const O=Y_(bk(n));Are(O,8576,!!(s&1),P)}}else mb(eP(_),P);Y1(_)&&mb(_,P);const T=s&2?ol(zr(h),O=>!(O.flags&5)):zr(h);if(T.flags&1048576&&_.flags&1048576&&qf(T.types)===qf(_.types))return _;return T;function P(O){const $=d?Ji(d,HE(n.mapper,c,O)):O;h.push($===F?Qr:$)}}function iYe(n){const s=Vp(n);return c(T0(n)||s);function c(_){return _.flags&470810623?!0:_.flags&16777216?_.root.isDistributive&&_.checkType===s:_.flags&137363456?$i(_.types,c):_.flags&8388608?c(_.objectType)&&c(_.indexType):_.flags&33554432?c(_.baseType)&&c(_.constraint):_.flags&268435456?c(_.type):!1}}function C0(n){if(Ei(n))return jn;if(Ou(n))return j_(Xi(n));if(Ga(n))return j_(Bm(n));const s=by(n);return s!==void 0?lu(Li(s)):nt(n)?j_(Xi(n)):jn}function tC(n,s,c){if(c||!(Ff(n)&24)){let _=Fi(uJ(n)).nameType;if(!_){const d=os(n.valueDeclaration);_=n.escapedName==="default"?lu("default"):d&&C0(d)||(uD(n)?void 0:lu(xc(n)))}if(_&&_.flags&s)return _}return jn}function Y4e(n,s){return!!(n.flags&s||n.flags&2097152&&dt(n.types,c=>Y4e(c,s)))}function sYe(n,s,c){const _=c&&(Br(n)&7||n.aliasSymbol)?nYe(n):void 0,d=an(za(n),T=>tC(T,s)),h=an(x_(n),T=>T!==vn&&Y4e(T.keyType,s)?T.keyType===F&&s&8?Qr:T.keyType:jn);return zr(Ki(d,h),1,void 0,void 0,_)}function Z4e(n,s=0){return!!(n.flags&58982400||D0(n)||ff(n)&&!iYe(n)||n.flags&1048576&&!(s&4)&&Rre(n)||n.flags&2097152&&Qo(n,465829888)&&dt(n.types,Pg))}function im(n,s=Xe){return n=Wp(n),Z4e(n,s)?Q4e(n,s):n.flags&1048576?ca(an(n.types,c=>im(c,s))):n.flags&2097152?zr(an(n.types,c=>im(c,s))):Br(n)&32?rYe(n,s):n===K?K:n.flags&2?jn:n.flags&131073?Fs:sYe(n,(s&2?128:402653316)|(s&1?0:12584),s===Xe)}function K4e(n){if(De)return n;const s=TQe();return s?Ck(s,[n,F]):F}function aYe(n){const s=K4e(im(n));return s.flags&131072?F:s}function oYe(n){const s=Jr(n);if(!s.resolvedType)switch(n.operator){case 143:s.resolvedType=im(ii(n.type));break;case 158:s.resolvedType=n.type.kind===155?Tie(sD(n.parent)):$e;break;case 148:s.resolvedType=ii(n.type);break;default:E.assertNever(n.operator)}return s.resolvedType}function cYe(n){const s=Jr(n);return s.resolvedType||(s.resolvedType=lb([n.head.text,...an(n.templateSpans,c=>c.literal.text)],an(n.templateSpans,c=>ii(c.type)))),s.resolvedType}function lb(n,s){const c=qc(s,$=>!!($.flags&1179648));if(c>=0)return cP(s)?So(s[c],$=>lb(n,_V(s,c,$))):$e;if(gs(s,K))return K;const _=[],d=[];let h=n[0];if(!O(n,s))return F;if(_.length===0)return lu(h);if(d.push(h),$i(d,$=>$==="")){if($i(_,$=>!!($.flags&4)))return F;if(_.length===1&&wk(_[0]))return _[0]}const T=`${qf(_)}|${an(d,$=>$.length).join(",")}|${d.join("")}`;let P=wi.get(T);return P||wi.set(T,P=_Ye(d,_)),P;function O($,te){for(let ce=0;ceix(n,c)):s.flags&128?lu(eCe(n,s.value)):s.flags&134217728?lb(...uYe(n,s.texts,s.types)):s.flags&268435456&&n===s.symbol?s:s.flags&268435461||Y1(s)?tCe(n,s):lP(s)?tCe(n,lb(["",""],[s])):s}function eCe(n,s){switch(XA.get(n.escapedName)){case 0:return s.toUpperCase();case 1:return s.toLowerCase();case 2:return s.charAt(0).toUpperCase()+s.slice(1);case 3:return s.charAt(0).toLowerCase()+s.slice(1)}return s}function uYe(n,s,c){switch(XA.get(n.escapedName)){case 0:return[s.map(_=>_.toUpperCase()),c.map(_=>ix(n,_))];case 1:return[s.map(_=>_.toLowerCase()),c.map(_=>ix(n,_))];case 2:return[s[0]===""?s:[s[0].charAt(0).toUpperCase()+s[0].slice(1),...s.slice(1)],s[0]===""?[ix(n,c[0]),...c.slice(1)]:c];case 3:return[s[0]===""?s:[s[0].charAt(0).toLowerCase()+s[0].slice(1),...s.slice(1)],s[0]===""?[ix(n,c[0]),...c.slice(1)]:c]}return[s,c]}function tCe(n,s){const c=`${ya(n)},${S_(s)}`;let _=Zt.get(c);return _||Zt.set(c,_=fYe(n,s)),_}function fYe(n,s){const c=xg(268435456,n);return c.type=s,c}function pYe(n,s,c,_,d){const h=_f(8388608);return h.objectType=n,h.indexType=s,h.accessFlags=c,h.aliasSymbol=_,h.aliasTypeArguments=d,h}function WE(n){if(fe)return!1;if(Br(n)&4096)return!0;if(n.flags&1048576)return $i(n.types,WE);if(n.flags&2097152)return dt(n.types,WE);if(n.flags&465829888){const s=Ore(n);return s!==n&&WE(s)}return!1}function bJ(n,s){return rp(n)?ip(n):s&&Jc(s)?by(s):void 0}function die(n,s){if(s.flags&8208){const c=On(n.parent,_=>!Mo(_))||n.parent;return $v(c)?Xm(c)&&we(n)&&l3e(c,n):$i(s.declarations,_=>!ks(_)||b_(_))}return!0}function nCe(n,s,c,_,d,h){var $;const T=d&&d.kind===212?d:void 0,P=d&&Ei(d)?void 0:bJ(c,d);if(P!==void 0){if(h&256)return wv(s,P)||ke;const te=qs(s,P);if(te){if(h&64&&d&&te.declarations&&up(te)&&die(d,te)){const Se=($=T==null?void 0:T.argumentExpression)!=null?$:_S(d)?d.indexType:d;_0(Se,te.declarations,P)}if(T){if(MP(te,T,h8e(T.expression,s.symbol)),iEe(T,te,jb(T))){Fe(T.argumentExpression,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ni(te));return}if(h&8&&(Jr(d).resolvedSymbol=te),_8e(T,te))return ft}const ce=$n(te);return T&&jb(T)!==1?Vh(T,ce):d&&_S(d)&&ZE(ce)?zr([ce,Pt]):ce}if(Df(s,_a)&&rg(P)){const ce=+P;if(d&&Df(s,Se=>!Se.target.hasRestElement)&&!(h&16)){const Se=mie(d);if(_a(s)){if(ce<0)return Fe(Se,p.A_tuple_type_cannot_be_indexed_with_a_negative_value),Pt;Fe(Se,p.Tuple_type_0_of_length_1_has_no_element_at_index_2,kn(s),k0(s),Li(P))}else Fe(Se,p.Property_0_does_not_exist_on_type_1,Li(P),kn(s))}if(ce>=0)return O(Rm(s,ye)),VCe(s,ce,h&1?z:void 0)}}if(!(c.flags&98304)&&kl(c,402665900)){if(s.flags&131073)return s;const te=rP(s,c)||Rm(s,F);if(te){if(h&2&&te.keyType!==ye){T&&Fe(T,p.Type_0_cannot_be_used_to_index_type_1,kn(c),kn(n));return}if(d&&te.keyType===F&&!kl(c,12)){const ce=mie(d);return Fe(ce,p.Type_0_cannot_be_used_as_an_index_type,kn(c)),h&1?zr([te.type,z]):te.type}return O(te),h&1&&!(s.symbol&&s.symbol.flags&384&&c.symbol&&c.flags&1024&&$_(c.symbol)===s.symbol)?zr([te.type,z]):te.type}if(c.flags&131072)return jn;if(WE(s))return ke;if(T&&!cae(s)){if(ny(s)){if(fe&&c.flags&384)return xa.add(yr(T,p.Property_0_does_not_exist_on_type_1,c.value,kn(s))),Pt;if(c.flags&12){const ce=an(s.properties,Se=>$n(Se));return zr(gn(ce,Pt))}}if(s.symbol===Ge&&P!==void 0&&Ge.exports.has(P)&&Ge.exports.get(P).flags&418)Fe(T,p.Property_0_does_not_exist_on_type_1,Li(P),kn(s));else if(fe&&!j.suppressImplicitAnyIndexErrors&&!(h&128))if(P!==void 0&&d8e(P,s)){const ce=kn(s);Fe(T,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,P,ce,ce+"["+el(T.argumentExpression)+"]")}else if(x0(s,ye))Fe(T.argumentExpression,p.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let ce;if(P!==void 0&&(ce=jse(P,s)))ce!==void 0&&Fe(T.argumentExpression,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,P,kn(s),ce);else{const Se=utt(s,T,c);if(Se!==void 0)Fe(T,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,kn(s),Se);else{let Te;if(c.flags&1024)Te=_s(void 0,p.Property_0_does_not_exist_on_type_1,"["+kn(c)+"]",kn(s));else if(c.flags&8192){const Ze=m0(c.symbol,T);Te=_s(void 0,p.Property_0_does_not_exist_on_type_1,"["+Ze+"]",kn(s))}else c.flags&128||c.flags&256?Te=_s(void 0,p.Property_0_does_not_exist_on_type_1,c.value,kn(s)):c.flags&12&&(Te=_s(void 0,p.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,kn(c),kn(s)));Te=_s(Te,p.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,kn(_),kn(s)),xa.add(Wg(Bn(T),T,Te))}}}return}}if(WE(s))return ke;if(d){const te=mie(d);c.flags&384?Fe(te,p.Property_0_does_not_exist_on_type_1,""+c.value,kn(s)):c.flags&12?Fe(te,p.Type_0_has_no_matching_index_signature_for_type_1,kn(s),kn(c)):Fe(te,p.Type_0_cannot_be_used_as_an_index_type,kn(c))}if(Wa(c))return c;return;function O(te){te&&te.isReadonly&&T&&(Km(T)||sq(T))&&Fe(T,p.Index_signature_in_type_0_only_permits_reading,kn(s))}}function mie(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function lP(n){return n.flags&2097152?dt(n.types,s=>!!(s.flags&101248)||lP(s)):!!(n.flags&77)||wk(n)}function wk(n){return!!(n.flags&134217728)&&$i(n.types,lP)||!!(n.flags&268435456)&&lP(n.type)}function nC(n){return!!qE(n)}function yv(n){return!!(qE(n)&4194304)}function Y1(n){return!!(qE(n)&8388608)}function qE(n){return n.flags&137363456?(n.objectFlags&2097152||(n.objectFlags|=2097152|E_(n.types,(s,c)=>s|qE(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|qE(n.baseType)|qE(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||ff(n)||D0(n)?4194304:0)|(n.flags&331612160&&!wk(n)?8388608:0)}function Dg(n,s){return n.flags&8388608?mYe(n,s):n.flags&16777216?gYe(n,s):n}function rCe(n,s,c){if(n.flags&1048576||n.flags&2097152&&!Z4e(n)){const _=an(n.types,d=>Dg(Cu(d,s),c));return n.flags&2097152||c?ca(_):zr(_)}}function dYe(n,s,c){if(s.flags&1048576){const _=an(s.types,d=>Dg(Cu(n,d),c));return c?ca(_):zr(_)}}function mYe(n,s){const c=s?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===La?n:n[c];n[c]=La;const _=Dg(n.objectType,s),d=Dg(n.indexType,s),h=dYe(_,d,s);if(h)return n[c]=h;if(!(d.flags&465829888)){const T=rCe(_,d,s);if(T)return n[c]=T}if(D0(_)&&d.flags&296){const T=oC(_,d.flags&8?0:_.target.fixedLength,0,s);if(T)return n[c]=T}return ff(_)&&(!T0(_)||K6e(_))?n[c]=So(TJ(_,n.indexType),T=>Dg(T,s)):n[c]=n}function gYe(n,s){const c=n.checkType,_=n.extendsType,d=Z1(n),h=K1(n);if(h.flags&131072&&Rh(d)===Rh(c)){if(c.flags&1||la(_b(c),_b(_)))return Dg(d,s);if(iCe(c,_))return jn}else if(d.flags&131072&&Rh(h)===Rh(c)){if(!(c.flags&1)&&la(_b(c),_b(_)))return jn;if(c.flags&1||iCe(c,_))return Dg(h,s)}return n}function iCe(n,s){return!!(zr([KN(n,s),jn]).flags&131072)}function TJ(n,s){const c=_u([Vp(n)],[s]),_=ey(n.mapper,c);return Ji(Eg(n.target||n),_)}function Cu(n,s,c=0,_,d,h){return Mh(n,s,c,_,d,h)||(_?$e:Jt)}function sCe(n,s){return Df(n,c=>{if(c.flags&384){const _=ip(c);if(rg(_)){const d=+_;return d>=0&&d0&&!dt(n.elements,s=>QH(s)||YH(s)||t8(s)&&!!(s.questionToken||s.dotDotDotToken))}function cCe(n,s){return nC(n)||s&&_a(n)&&dt(Q1(n),nC)}function hie(n,s,c,_){let d,h,T=0;for(;;){if(T===1e3)return Fe(D,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),$e;const O=Ji(Rh(n.checkType),s),$=Ji(n.extendsType,s);if(O===$e||$===$e)return $e;if(O===K||$===K)return K;const te=oCe(n.node.checkType)&&oCe(n.node.extendsType)&&Pn(n.node.checkType.elements)===Pn(n.node.extendsType.elements),ce=cCe(O,te);let Se;if(n.inferTypeParameters){const Ze=cl(n.inferTypeParameters,hYe),St=Ze!==n.inferTypeParameters?_u(n.inferTypeParameters,Ze):void 0,Kt=e7(Ze,void 0,0);if(St){const Gn=ey(s,St);for(let Nn=0;NnBh(St,ce)),Te=_u(te.outerTypeParameters,Se),Ze=te.isDistributive?Bh(te.checkType,Te):void 0;if(!Ze||Ze===te.checkType||!(Ze.flags&1179648))return n=te,s=Te,c=void 0,_=void 0,te.aliasSymbol&&T++,!0}}return!1}}function Z1(n){return n.resolvedTrueType||(n.resolvedTrueType=Ji(ii(n.root.node.trueType),n.mapper))}function K1(n){return n.resolvedFalseType||(n.resolvedFalseType=Ji(ii(n.root.node.falseType),n.mapper))}function yYe(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?Ji(ii(n.root.node.trueType),n.combinedMapper):Z1(n))}function lCe(n){let s;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(s=gn(s,go(c)))}),s}function vYe(n){return n.isDistributive&&(pP(n.checkType,n.node.trueType)||pP(n.checkType,n.node.falseType))}function bYe(n){const s=Jr(n);if(!s.resolvedType){const c=ii(n.checkType),_=sx(n),d=Dk(_),h=$4(n,!0),T=d?h:Vr(h,O=>pP(O,n)),P={node:n,checkType:c,extendsType:ii(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:lCe(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:_,aliasTypeArguments:d};s.resolvedType=hie(P,void 0),T&&(P.instantiations=new Map,P.instantiations.set(qf(T),s.resolvedType))}return s.resolvedType}function TYe(n){const s=Jr(n);return s.resolvedType||(s.resolvedType=sb(hr(n.typeParameter))),s.resolvedType}function _Ce(n){return we(n)?[n]:gn(_Ce(n.left),n.right)}function xYe(n){var s;const c=Jr(n);if(!c.resolvedType){if(!my(n))return Fe(n.argument,p.String_literal_expected),c.resolvedSymbol=st,c.resolvedType=$e;const _=n.isTypeOf?111551:n.flags&16777216?900095:788968,d=r_(n,n.argument.literal);if(!d)return c.resolvedSymbol=st,c.resolvedType=$e;const h=!!((s=d.exports)!=null&&s.get("export=")),T=lf(d,!1);if(fc(n.qualifier))if(T.flags&_)c.resolvedType=uCe(n,c,T,_);else{const P=_===111551?p.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Fe(n,P,n.argument.literal.text),c.resolvedSymbol=st,c.resolvedType=$e}else{const P=_Ce(n.qualifier);let O=T,$;for(;$=P.shift();){const te=P.length?1920:_,ce=Ra(Rc(O)),Se=n.isTypeOf||Zn(n)&&h?qs($n(ce),$.escapedText,!1,!0):void 0,Te=n.isTypeOf?void 0:H_(zu(ce),$.escapedText,te),Ze=Te!=null?Te:Se;if(!Ze)return Fe($,p.Namespace_0_has_no_exported_member_1,m0(O),no($)),c.resolvedType=$e;Jr($).resolvedSymbol=Ze,Jr($.parent).resolvedSymbol=Ze,O=Ze}c.resolvedType=uCe(n,c,O,_)}}return c.resolvedType}function uCe(n,s,c,_){const d=Rc(c);return s.resolvedSymbol=d,_===111551?U8e($n(c),n):gJ(n,d)}function fCe(n){const s=Jr(n);if(!s.resolvedType){const c=sx(n);if(Ph(n.symbol).size===0&&!c)s.resolvedType=L_;else{let _=jf(16,n.symbol);_.aliasSymbol=c,_.aliasTypeArguments=Dk(c),r4(n)&&n.isArrayType&&(_=$l(_)),s.resolvedType=_}}return s.resolvedType}function sx(n){let s=n.parent;for(;cS(s)||nT(s)||lS(s)&&s.operator===148;)s=s.parent;return tD(s)?hr(s):void 0}function Dk(n){return n?zp(n):void 0}function xJ(n){return!!(n.flags&524288)&&!ff(n)}function yie(n){return Ng(n)||!!(n.flags&474058748)}function vie(n,s){if(!(n.flags&1048576))return n;if($i(n.types,yie))return Fr(n.types,Ng)||Oi;const c=Fr(n.types,h=>!yie(h));if(!c||Fr(n.types,h=>h!==c&&!yie(h)))return n;return d(c);function d(h){const T=Us();for(const O of za(h))if(!(Ff(O)&24)){if(SJ(O)){const $=O.flags&65536&&!(O.flags&32768),ce=Pa(16777220,O.escapedName,Dre(O)|(s?8:0));ce.links.type=$?Pt:Sl($n(O),!0),ce.declarations=O.declarations,ce.links.nameType=Fi(O).nameType,ce.links.syntheticOrigin=O,T.set(O.escapedName,ce)}}const P=yc(h.symbol,T,Ve,Ve,x_(h));return P.objectFlags|=131200,P}}function vv(n,s,c,_,d){if(n.flags&1||s.flags&1)return ke;if(n.flags&2||s.flags&2)return Jt;if(n.flags&131072)return s;if(s.flags&131072)return n;if(n=vie(n,d),n.flags&1048576)return cP([n,s])?So(n,$=>vv($,s,c,_,d)):$e;if(s=vie(s,d),s.flags&1048576)return cP([n,s])?So(s,$=>vv(n,$,c,_,d)):$e;if(s.flags&473960444)return n;if(yv(n)||yv(s)){if(Ng(n))return s;if(n.flags&2097152){const $=n.types,te=$[$.length-1];if(xJ(te)&&xJ(s))return ca(Ki($.slice(0,$.length-1),[vv(te,s,c,_,d)]))}return ca([n,s])}const h=Us(),T=new Set,P=n===Oi?x_(s):G6e([n,s]);for(const $ of za(s))Ff($)&24?T.add($.escapedName):SJ($)&&h.set($.escapedName,bie($,d));for(const $ of za(n))if(!(T.has($.escapedName)||!SJ($)))if(h.has($.escapedName)){const te=h.get($.escapedName),ce=$n(te);if(te.flags&16777216){const Se=Ki($.declarations,te.declarations),Te=4|$.flags&16777216,Ze=Pa(Te,$.escapedName),St=$n($),Kt=HJ(St),_n=HJ(ce);Ze.links.type=Kt===_n?St:zr([St,_n],2),Ze.links.leftSpread=$,Ze.links.rightSpread=te,Ze.declarations=Se,Ze.links.nameType=Fi($).nameType,h.set($.escapedName,Ze)}}else h.set($.escapedName,bie($,d));const O=yc(c,h,Ve,Ve,cl(P,$=>SYe($,d)));return O.objectFlags|=2228352|_,O}function SJ(n){var s;return!dt(n.declarations,N_)&&(!(n.flags&106496)||!((s=n.declarations)!=null&&s.some(c=>ei(c.parent))))}function bie(n,s){const c=n.flags&65536&&!(n.flags&32768);if(!c&&s===Xp(n))return n;const _=4|n.flags&16777216,d=Pa(_,n.escapedName,Dre(n)|(s?8:0));return d.links.type=c?Pt:$n(n),d.declarations=n.declarations,d.links.nameType=Fi(n).nameType,d.links.syntheticOrigin=n,d}function SYe(n,s){return n.isReadonly!==s?rm(n.keyType,n.type,s,n.declaration):n}function _P(n,s,c,_){const d=xg(n,c);return d.value=s,d.regularType=_||d,d}function ax(n){if(n.flags&2976){if(!n.freshType){const s=_P(n.flags,n.value,n.symbol,n);s.freshType=s,n.freshType=s}return n.freshType}return n}function j_(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=So(n,j_)):n}function bv(n){return!!(n.flags&2976)&&n.freshType===n}function lu(n){let s;return yn.get(n)||(yn.set(n,s=_P(128,n)),s)}function Hp(n){let s;return Ct.get(n)||(Ct.set(n,s=_P(256,n)),s)}function kJ(n){let s;const c=l2(n);return cn.get(c)||(cn.set(c,s=_P(2048,n)),s)}function kYe(n,s,c){let _;const d=`${s}${typeof n=="string"?"@":"#"}${n}`,h=1024|(typeof n=="string"?128:256);return In.get(d)||(In.set(d,_=_P(h,n,c)),_)}function CYe(n){if(n.literal.kind===106)return W;const s=Jr(n);return s.resolvedType||(s.resolvedType=j_(Xi(n.literal))),s.resolvedType}function EYe(n){const s=xg(8192,n);return s.escapedName=`__@${s.symbol.escapedName}@${ya(s.symbol)}`,s}function Tie(n){if(Ule(n)){const s=D9(n)?ku(n.left):ku(n);if(s){const c=Fi(s);return c.uniqueESSymbolType||(c.uniqueESSymbolType=EYe(s))}}return ir}function wYe(n){const s=tu(n,!1,!1),c=s&&s.parent;if(c&&(ei(c)||c.kind===264)&&!Ps(s)&&(!wc(s)||n2(n,s.body)))return i_(hr(c)).thisType;if(c&&ha(c)&&rr(c.parent)&&pc(c.parent)===6)return i_(ku(c.parent.left).parent).thisType;const _=n.flags&16777216?yy(n):void 0;return _&&fo(_)&&rr(_.parent)&&pc(_.parent)===3?i_(ku(_.parent.left).parent).thisType:vd(s)&&n2(n,s.body)?i_(hr(s)).thisType:(Fe(n,p.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),$e)}function CJ(n){const s=Jr(n);return s.resolvedType||(s.resolvedType=wYe(n)),s.resolvedType}function pCe(n){return ii(uP(n.type)||n.type)}function uP(n){switch(n.kind){case 196:return uP(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return uP(n.type);break;case 188:return n.elementType}}function DYe(n){const s=Jr(n);return s.resolvedType||(s.resolvedType=n.dotDotDotToken?pCe(n):Sl(ii(n.type),!0,!!n.questionToken))}function ii(n){return aQe(dCe(n),n)}function dCe(n){switch(n.kind){case 133:case 319:case 320:return ke;case 159:return Jt;case 154:return F;case 150:return ye;case 163:return Oe;case 136:return Sn;case 155:return ir;case 116:return ar;case 157:return Pt;case 106:return W;case 146:return jn;case 151:return n.flags&524288&&!fe?ke:Ws;case 141:return _t;case 197:case 110:return CJ(n);case 201:return CYe(n);case 183:return Kre(n);case 182:return n.assertsModifier?ar:Sn;case 233:return Kre(n);case 186:return k4e(n);case 188:case 189:return MQe(n);case 190:return JQe(n);case 192:return GQe(n);case 193:return tYe(n);case 321:return oQe(n);case 323:return Sl(ii(n.type));case 202:return DYe(n);case 196:case 322:case 316:return ii(n.type);case 191:return pCe(n);case 325:return Est(n);case 184:case 185:case 187:case 329:case 324:case 330:return fCe(n);case 198:return oYe(n);case 199:return aCe(n);case 200:return gie(n);case 194:return bYe(n);case 195:return TYe(n);case 203:return cYe(n);case 205:return xYe(n);case 80:case 166:case 211:const s=yp(n);return s?go(s):$e;default:return $e}}function EJ(n,s,c){if(n&&n.length)for(let _=0;__.typeParameter),an(c,()=>Jt))}function ey(n,s){return n?DJ(4,n,s):s}function PYe(n,s){return n?DJ(5,n,s):s}function ox(n,s,c){return c?DJ(5,Tv(n,s),c):Tv(n,s)}function HE(n,s,c){return n?DJ(5,n,Tv(s,c)):Tv(s,c)}function IYe(n){return!n.constraint&&!Xre(n)||n.constraint===ja?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Jf(n.symbol),n.restrictiveInstantiation.constraint=ja,n.restrictiveInstantiation)}function AJ(n){const s=Jf(n.symbol);return s.target=n,s}function OYe(n,s){return iP(n.kind,n.parameterName,n.parameterIndex,Ji(n.type,s))}function Ak(n,s,c){let _;if(n.typeParameters&&!c){_=an(n.typeParameters,AJ),s=ey(_u(n.typeParameters,_),s);for(const h of _)h.mapper=s}const d=Mm(n.declaration,_,n.thisParameter&&Sie(n.thisParameter,s),EJ(n.parameters,s,Sie),void 0,void 0,n.minArgumentCount,n.flags&167);return d.target=n,d.mapper=s,d}function Sie(n,s){const c=Fi(n);if(c.type&&!Cv(c.type))return n;rc(n)&1&&(n=c.target,s=ey(c.mapper,s));const _=Pa(n.flags,n.escapedName,1|rc(n)&53256);return _.declarations=n.declarations,_.parent=n.parent,_.links.target=n,_.links.mapper=s,n.valueDeclaration&&(_.valueDeclaration=n.valueDeclaration),c.nameType&&(_.links.nameType=c.nameType),_}function FYe(n,s,c,_){const d=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],h=Jr(d),T=n.objectFlags&4?h.resolvedType:n.objectFlags&64?n.target:n;let P=h.outerTypeParameters;if(!P){let O=$4(d,!0);if(vd(d)){const te=l4e(d);O=Lr(O,te)}P=O||Ve;const $=n.objectFlags&8388612?[d]:n.symbol.declarations;P=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?Vr(P,te=>dt($,ce=>pP(te,ce))):P,h.outerTypeParameters=P}if(P.length){const O=ey(n.mapper,s),$=an(P,Ze=>Bh(Ze,O)),te=c||n.aliasSymbol,ce=c?_:E0(n.aliasTypeArguments,s),Se=qf($)+rx(te,ce);T.instantiations||(T.instantiations=new Map,T.instantiations.set(qf(P)+rx(T.aliasSymbol,T.aliasTypeArguments),T));let Te=T.instantiations.get(Se);if(!Te){const Ze=_u(P,$);Te=T.objectFlags&4?Qre(n.target,n.node,Ze,te,ce):T.objectFlags&32?hCe(T,Ze,te,ce):Cie(T,Ze,te,ce),T.instantiations.set(Se,Te);const St=Br(Te);if(Te.flags&138117121&&!(St&524288)){const Kt=dt($,Cv);Br(Te)&524288||(St&52?Te.objectFlags|=524288|(Kt?1048576:0):Te.objectFlags|=Kt?0:524288)}}return Te}return n}function LYe(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function pP(n,s){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const _=n.symbol.declarations[0].parent;for(let d=s;d!==_;d=d.parent)if(!d||d.kind===241||d.kind===194&&ys(d.extendsType,c))return!0;return c(s)}return!0;function c(_){switch(_.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&Ym(_)&&LYe(_)&&dCe(_)===n;case 186:const d=_.exprName,h=Ku(d);if(!a2(h)){const T=hp(h),P=n.symbol.declarations[0],O=P.kind===168?P.parent:n.isThisType?P:void 0;if(T.declarations&&O)return dt(T.declarations,$=>n2($,O))||dt(_.typeArguments,c)}return!0;case 174:case 173:return!_.type&&!!_.body||dt(_.typeParameters,c)||dt(_.parameters,c)||!!_.type&&c(_.type)}return!!ys(_,c)}}function NJ(n){const s=Uf(n);if(s.flags&4194304){const c=Rh(s.type);if(c.flags&262144)return c}}function hCe(n,s,c,_){const d=NJ(n);if(d){const h=Ji(d,s);if(d!==h)return v3e(Wp(h),T=>{if(T.flags&61603843&&T!==K&&!q(T)){if(!n.declaration.nameType){let P;if(wf(T)||T.flags&1&&pk(d,4)<0&&(P=s_(d))&&Df(P,Sv))return RYe(T,n,ox(d,T,s));if(D0(T))return MYe(T,n,d,s);if(_a(T))return BYe(T,n,ox(d,T,s))}return Cie(n,ox(d,T,s))}return T},c,_)}return Ji(Uf(n),s)===K?K:Cie(n,s,c,_)}function kie(n,s){return s&1?!0:s&2?!1:n}function MYe(n,s,c,_){const d=n.target.elementFlags,h=an(Q1(n),(P,O)=>{const $=d[O]&8?P:d[O]&4?$l(P):qp([P],[d[O]]);return $===c?s:hCe(s,ox(c,$,_))}),T=kie(n.target.readonly,tm(s));return qp(h,an(h,P=>8),T)}function RYe(n,s,c){const _=yCe(s,ye,!0,c);return q(_)?$e:$l(_,kie(sC(n),tm(s)))}function BYe(n,s,c){const _=n.target.elementFlags,d=an(Q1(n),(O,$)=>yCe(s,lu(""+$),!!(_[$]&2),c)),h=tm(s),T=h&4?an(_,O=>O&1?2:O):h&8?an(_,O=>O&2?1:O):_,P=kie(n.target.readonly,h);return gs(d,$e)?$e:qp(d,T,P,n.target.labeledElementDeclarations)}function yCe(n,s,c,_){const d=HE(_,Vp(n),s),h=Ji(Eg(n.target||n),d),T=tm(n);return H&&T&4&&!Qo(h,49152)?A0(h,!0):H&&T&8&&c?Hf(h,524288):h}function Cie(n,s,c,_){const d=jf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){d.declaration=n.declaration;const h=Vp(n),T=AJ(h);d.typeParameter=T,s=ey(Tv(h,T),s),T.mapper=s}return n.objectFlags&8388608&&(d.node=n.node),d.target=n,d.mapper=s,d.aliasSymbol=c||n.aliasSymbol,d.aliasTypeArguments=c?_:E0(n.aliasTypeArguments,s),d.objectFlags|=d.aliasTypeArguments?sP(d.aliasTypeArguments):0,d}function Eie(n,s,c,_){const d=n.root;if(d.outerTypeParameters){const h=an(d.outerTypeParameters,O=>Bh(O,s)),T=qf(h)+rx(c,_);let P=d.instantiations.get(T);if(!P){const O=_u(d.outerTypeParameters,h),$=d.checkType,te=d.isDistributive?Bh($,O):void 0;P=te&&$!==te&&te.flags&1179648?v3e(Wp(te),ce=>hie(d,ox($,ce,O)),c,_):hie(d,O,c,_),d.instantiations.set(T,P)}return P}return n}function Ji(n,s){return n&&s?vCe(n,s,void 0,void 0):n}function vCe(n,s,c,_){var d;if(!Cv(n))return n;if(C===100||k>=5e6)return(d=ci)==null||d.instant(ci.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:C,instantiationCount:k}),Fe(D,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),$e;x++,k++,C++;const h=jYe(n,s,c,_);return C--,h}function jYe(n,s,c,_){const d=n.flags;if(d&262144)return Bh(n,s);if(d&524288){const h=n.objectFlags;if(h&52){if(h&4&&!n.node){const T=n.resolvedTypeArguments,P=E0(T,s);return P!==T?aie(n.target,P):n}return h&1024?JYe(n,s):FYe(n,s,c,_)}return n}if(d&3145728){const h=n.flags&1048576?n.origin:void 0,T=h&&h.flags&3145728?h.types:n.types,P=E0(T,s);if(P===T&&c===n.aliasSymbol)return n;const O=c||n.aliasSymbol,$=c?_:E0(n.aliasTypeArguments,s);return d&2097152||h&&h.flags&2097152?ca(P,O,$):zr(P,1,O,$)}if(d&4194304)return im(Ji(n.type,s));if(d&134217728)return lb(n.texts,E0(n.types,s));if(d&268435456)return ix(n.symbol,Ji(n.type,s));if(d&8388608){const h=c||n.aliasSymbol,T=c?_:E0(n.aliasTypeArguments,s);return Cu(Ji(n.objectType,s),Ji(n.indexType,s),n.accessFlags,void 0,h,T)}if(d&16777216)return Eie(n,ey(n.mapper,s),c,_);if(d&33554432){const h=Ji(n.baseType,s),T=Ji(n.constraint,s);return h.flags&8650752&&nC(T)?Yre(h,T):T.flags&3||la(_b(h),_b(T))?h:h.flags&8650752?Yre(h,T):ca([T,h])}return n}function JYe(n,s){const c=Ji(n.mappedType,s);if(!(Br(c)&32))return n;const _=Ji(n.constraintType,s);if(!(_.flags&4194304))return n;const d=QCe(Ji(n.source,s),c,_);return d||n}function PJ(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=Ji(n,Cs))}function _b(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=Ji(n,Ui),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function zYe(n,s){return rm(n.keyType,Ji(n.type,s),n.isReadonly,n.declaration)}function Cf(n){switch(E.assert(n.kind!==174||Sp(n)),n.kind){case 218:case 219:case 174:case 262:return bCe(n);case 210:return dt(n.properties,Cf);case 209:return dt(n.elements,Cf);case 227:return Cf(n.whenTrue)||Cf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Cf(n.left)||Cf(n.right));case 303:return Cf(n.initializer);case 217:return Cf(n.expression);case 292:return dt(n.properties,Cf)||Jd(n.parent)&&dt(n.parent.parent.children,Cf);case 291:{const{initializer:s}=n;return!!s&&Cf(s)}case 294:{const{expression:s}=n;return!!s&&Cf(s)}}return!1}function bCe(n){return CO(n)||VYe(n)}function VYe(n){return n.typeParameters||Kf(n)||!n.body?!1:n.body.kind!==241?Cf(n.body):!!Kv(n.body,s=>!!s.expression&&Cf(s.expression))}function IJ(n){return(j6(n)||Sp(n))&&bCe(n)}function TCe(n){if(n.flags&524288){const s=Up(n);if(s.constructSignatures.length||s.callSignatures.length){const c=jf(16,n.symbol);return c.members=s.members,c.properties=s.properties,c.callSignatures=Ve,c.constructSignatures=Ve,c.indexInfos=Ve,c}}else if(n.flags&2097152)return ca(an(n.types,TCe));return n}function Ag(n,s){return hd(n,s,Tu)}function GE(n,s){return hd(n,s,Tu)?-1:0}function wie(n,s){return hd(n,s,Ju)?-1:0}function UYe(n,s){return hd(n,s,$d)?-1:0}function jh(n,s){return hd(n,s,$d)}function xCe(n,s){return hd(n,s,bf)}function la(n,s){return hd(n,s,Ju)}function xv(n,s){return n.flags&1048576?$i(n.types,c=>xv(c,s)):s.flags&1048576?dt(s.types,c=>xv(n,c)):n.flags&2097152?dt(n.types,c=>xv(c,s)):n.flags&58982400?xv(B_(n)||Jt,s):Pg(s)?!!(n.flags&67633152):s===Uc?!!(n.flags&67633152)&&!Pg(n):s===zo?!!(n.flags&524288)&&cse(n):yk(n,ib(s))||wf(s)&&!sC(s)&&xv(n,bn)}function OJ(n,s){return hd(n,s,ou)}function dP(n,s){return OJ(n,s)||OJ(s,n)}function J_(n,s,c,_,d,h){return Ef(n,s,Ju,c,_,d,h)}function Jh(n,s,c,_,d,h){return Die(n,s,Ju,c,_,d,h,void 0)}function Die(n,s,c,_,d,h,T,P){return hd(n,s,c)?!0:!_||!$E(d,n,s,c,h,T,P)?Ef(n,s,c,_,h,T,P):!1}function SCe(n){return!!(n.flags&16777216||n.flags&2097152&&dt(n.types,SCe))}function $E(n,s,c,_,d,h,T){if(!n||SCe(c))return!1;if(!Ef(s,c,_,void 0)&&WYe(n,s,c,_,d,h,T))return!0;switch(n.kind){case 234:if(!B2(n))break;case 294:case 217:return $E(n.expression,s,c,_,d,h,T);case 226:switch(n.operatorToken.kind){case 64:case 28:return $E(n.right,s,c,_,d,h,T)}break;case 210:return ZYe(n,s,c,_,h,T);case 209:return QYe(n,s,c,_,h,T);case 292:return XYe(n,s,c,_,h,T);case 219:return qYe(n,s,c,_,h,T)}return!1}function WYe(n,s,c,_,d,h,T){const P=As(s,0),O=As(s,1);for(const $ of[O,P])if(dt($,te=>{const ce=Va(te);return!(ce.flags&131073)&&Ef(ce,c,_,void 0)})){const te=T||{};J_(s,c,n,d,h,te);const ce=te.errors[te.errors.length-1];return fa(ce,yr(n,$===O?p.Did_you_mean_to_use_new_with_this_expression:p.Did_you_mean_to_call_this_expression)),!0}return!1}function qYe(n,s,c,_,d,h){if(hs(n.body)||dt(n.parameters,p9))return!1;const T=yb(s);if(!T)return!1;const P=As(c,0);if(!Pn(P))return!1;const O=n.body,$=Va(T),te=zr(an(P,Va));if(!Ef($,te,_,void 0)){const ce=O&&$E(O,$,te,_,void 0,d,h);if(ce)return ce;const Se=h||{};if(Ef($,te,_,O,void 0,d,Se),Se.errors)return c.symbol&&Pn(c.symbol.declarations)&&fa(Se.errors[Se.errors.length-1],yr(c.symbol.declarations[0],p.The_expected_type_comes_from_the_return_type_of_this_signature)),(Il(n)&2)===0&&!Wc($,"then")&&Ef(UP($),te,_,void 0)&&fa(Se.errors[Se.errors.length-1],yr(n,p.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function kCe(n,s,c){const _=Mh(s,c);if(_)return _;if(s.flags&1048576){const d=ICe(n,s);if(d)return Mh(d,c)}}function CCe(n,s){NP(n,s,!1);const c=gC(n,1);return a7(),c}function mP(n,s,c,_,d,h){let T=!1;for(const P of n){const{errorNode:O,innerExpression:$,nameType:te,errorMessage:ce}=P;let Se=kCe(s,c,te);if(!Se||Se.flags&8388608)continue;let Te=Mh(s,te);if(!Te)continue;const Ze=bJ(te,void 0);if(!Ef(Te,Se,_,void 0)){const St=$&&$E($,Te,Se,_,void 0,d,h);if(T=!0,!St){const Kt=h||{},_n=$?CCe($,Te):Te;if(be&&LJ(_n,Se)){const Gn=yr(O,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,kn(_n),kn(Se));xa.add(Gn),Kt.errors=[Gn]}else{const Gn=!!(Ze&&(qs(c,Ze)||st).flags&16777216),Nn=!!(Ze&&(qs(s,Ze)||st).flags&16777216);Se=ub(Se,Gn),Te=ub(Te,Gn&&Nn),Ef(_n,Se,_,O,ce,d,Kt)&&_n!==Te&&Ef(Te,Se,_,O,ce,d,Kt)}if(Kt.errors){const Gn=Kt.errors[Kt.errors.length-1],Nn=rp(te)?ip(te):void 0,Ht=Nn!==void 0?qs(c,Nn):void 0;let Mn=!1;if(!Ht){const Xt=rP(c,te);Xt&&Xt.declaration&&!Bn(Xt.declaration).hasNoDefaultLib&&(Mn=!0,fa(Gn,yr(Xt.declaration,p.The_expected_type_comes_from_this_index_signature)))}if(!Mn&&(Ht&&Pn(Ht.declarations)||c.symbol&&Pn(c.symbol.declarations))){const Xt=Ht&&Pn(Ht.declarations)?Ht.declarations[0]:c.symbol.declarations[0];Bn(Xt).hasNoDefaultLib||fa(Gn,yr(Xt,p.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Nn&&!(te.flags&8192)?Li(Nn):kn(te),kn(c)))}}}}}return T}function HYe(n,s,c,_,d,h){const T=ol(c,zJ),P=ol(c,te=>!zJ(te)),O=P!==jn?Cae(13,0,P,void 0):void 0;let $=!1;for(let te=n.next();!te.done;te=n.next()){const{errorNode:ce,innerExpression:Se,nameType:Te,errorMessage:Ze}=te.value;let St=O;const Kt=T!==jn?kCe(s,T,Te):void 0;if(Kt&&!(Kt.flags&8388608)&&(St=O?zr([O,Kt]):Kt),!St)continue;let _n=Mh(s,Te);if(!_n)continue;const Gn=bJ(Te,void 0);if(!Ef(_n,St,_,void 0)){const Nn=Se&&$E(Se,_n,St,_,void 0,d,h);if($=!0,!Nn){const Ht=h||{},Mn=Se?CCe(Se,_n):_n;if(be&&LJ(Mn,St)){const Xt=yr(ce,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,kn(Mn),kn(St));xa.add(Xt),Ht.errors=[Xt]}else{const Xt=!!(Gn&&(qs(T,Gn)||st).flags&16777216),dn=!!(Gn&&(qs(s,Gn)||st).flags&16777216);St=ub(St,Xt),_n=ub(_n,Xt&&dn),Ef(Mn,St,_,ce,Ze,d,Ht)&&Mn!==_n&&Ef(_n,St,_,ce,Ze,d,Ht)}}}}return $}function*GYe(n){if(!!Pn(n.properties))for(const s of n.properties)mS(s)||Ese(BD(s.name))||(yield{errorNode:s.name,innerExpression:s.initializer,nameType:lu(BD(s.name))})}function*$Ye(n,s){if(!Pn(n.children))return;let c=0;for(let _=0;_1;let Kt,_n;if(nie(!1)!==Ls){const Nn=M4e(ke);Kt=ol(Te,Ht=>la(Ht,Nn)),_n=ol(Te,Ht=>!la(Ht,Nn))}else Kt=ol(Te,zJ),_n=ol(Te,Nn=>!zJ(Nn));if(St){if(Kt!==jn){const Nn=qp(fz($,0)),Ht=$Ye($,O);T=HYe(Ht,Nn,Kt,_,d,h)||T}else if(!hd(Cu(s,Se),Te,_)){T=!0;const Nn=Fe($.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ce,kn(Te));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(Nn)}}else if(_n!==jn){const Nn=Ze[0],Ht=ECe(Nn,Se,O);Ht&&(T=mP(function*(){yield Ht}(),s,c,_,d,h)||T)}else if(!hd(Cu(s,Se),Te,_)){T=!0;const Nn=Fe($.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ce,kn(Te));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(Nn)}}return T;function O(){if(!P){const $=el(n.parent.tagName),te=IP(hb(n)),ce=te===void 0?"children":Li(te),Se=Cu(c,lu(ce)),Te=p._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;P={...Te,key:"!!ALREADY FORMATTED!!",message:zq(void 0,Te,$,ce,kn(Se))}}return P}}function*wCe(n,s){const c=Pn(n.elements);if(!!c)for(let _=0;_O:bd(n)>O))return _&&!(c&8)&&d(p.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,bd(n),O),0;n.typeParameters&&n.typeParameters!==s.typeParameters&&(s=eQe(s),n=S8e(n,s,void 0,T));const te=qu(n),ce=u7(n),Se=u7(s);(ce||Se)&&Ji(ce||Se,P);const Te=s.declaration?s.declaration.kind:0,Ze=!(c&3)&&Q&&Te!==174&&Te!==173&&Te!==176;let St=-1;const Kt=X1(n);if(Kt&&Kt!==ar){const Nn=X1(s);if(Nn){const Ht=!Ze&&T(Kt,Nn,!1)||T(Nn,Kt,_);if(!Ht)return _&&d(p.The_this_types_of_each_signature_are_incompatible),0;St&=Ht}}const _n=ce||Se?Math.min(te,O):Math.max(te,O),Gn=ce||Se?_n-1:-1;for(let Nn=0;Nn<_n;Nn++){const Ht=Nn===Gn?l7(n,Nn):vb(n,Nn),Mn=Nn===Gn?l7(s,Nn):vb(s,Nn);if(Ht&&Mn){const Xt=c&3?void 0:yb(Ig(Ht)),dn=c&3?void 0:yb(Ig(Mn));let Un=Xt&&dn&&!Wf(Xt)&&!Wf(dn)&&(k_(Ht)&50331648)===(k_(Mn)&50331648)?Aie(dn,Xt,c&8|(Ze?2:1),_,d,h,T,P):!(c&3)&&!Ze&&T(Ht,Mn,!1)||T(Mn,Ht,_);if(Un&&c&8&&Nn>=bd(n)&&Nn=3&&s[0].flags&32768&&s[1].flags&65536&&dt(s,Pg)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function rC(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function ACe(n){return n.flags&524288&&!ff(n)&&za(n).length===0&&x_(n).length===1&&!!Rm(n,F)||n.flags&3145728&&$i(n.types,ACe)||!1}function Pie(n,s,c){const _=n.flags&8?$_(n):n,d=s.flags&8?$_(s):s;if(_===d)return!0;if(_.escapedName!==d.escapedName||!(_.flags&256)||!(d.flags&256))return!1;const h=ya(_)+","+ya(d),T=Hy.get(h);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);const P=$n(d);for(const O of za($n(_)))if(O.flags&8){const $=qs(P,O.escapedName);if(!$||!($.flags&8))return c?(c(p.Property_0_is_missing_in_type_1,xc(O),kn(go(d),void 0,64)),Hy.set(h,6)):Hy.set(h,2),!1}return Hy.set(h,1),!0}function XE(n,s,c,_){const d=n.flags,h=s.flags;return h&1||d&131072||n===K||h&2&&!(c===bf&&d&1)?!0:h&131072?!1:!!(d&402653316&&h&4||d&128&&d&1024&&h&128&&!(h&1024)&&n.value===s.value||d&296&&h&8||d&256&&d&1024&&h&256&&!(h&1024)&&n.value===s.value||d&2112&&h&64||d&528&&h&16||d&12288&&h&4096||d&32&&h&32&&n.symbol.escapedName===s.symbol.escapedName&&Pie(n.symbol,s.symbol,_)||d&1024&&h&1024&&(d&1048576&&h&1048576&&Pie(n.symbol,s.symbol,_)||d&2944&&h&2944&&n.value===s.value&&Pie(n.symbol,s.symbol,_))||d&32768&&(!H&&!(h&3145728)||h&49152)||d&65536&&(!H&&!(h&3145728)||h&65536)||d&524288&&h&67108864&&!(c===bf&&Pg(n)&&!(Br(n)&8192))||(c===Ju||c===ou)&&(d&1||d&8&&(h&32||h&256&&h&1024)||d&256&&!(d&1024)&&(h&32||h&256&&h&1024&&n.value===s.value)||nZe(s)))}function hd(n,s,c){if(bv(n)&&(n=n.regularType),bv(s)&&(s=s.regularType),n===s)return!0;if(c!==Tu){if(c===ou&&!(s.flags&131072)&&XE(s,n,c)||XE(n,s,c))return!0}else if(!((n.flags|s.flags)&61865984)){if(n.flags!==s.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&s.flags&524288){const _=c.get(Mie(n,s,0,c,!1));if(_!==void 0)return!!(_&1)}return n.flags&469499904||s.flags&469499904?Ef(n,s,c,void 0):!1}function NCe(n,s){return Br(n)&2048&&Ese(s.escapedName)}function gP(n,s){for(;;){const c=bv(n)?n.regularType:D0(n)?iZe(n,s):Br(n)&4?n.node?S0(n.target,po(n)):jie(n)||n:n.flags&3145728?rZe(n,s):n.flags&33554432?s?n.baseType:Zre(n):n.flags&25165824?Dg(n,s):n;if(c===n)return c;n=c}}function rZe(n,s){const c=Wp(n);if(c!==n)return c;if(n.flags&2097152&&dt(n.types,Pg)){const _=cl(n.types,d=>gP(d,s));if(_!==n.types)return ca(_)}return n}function iZe(n,s){const c=Q1(n),_=cl(c,d=>d.flags&25165824?Dg(d,s):d);return c!==_?oie(n.target,_):n}function Ef(n,s,c,_,d,h,T){var P;let O,$,te,ce,Se,Te,Ze=0,St=0,Kt=0,_n=0,Gn=!1,Nn=0,Ht,Mn;E.assert(c!==Tu||!_,"no error reporting in identity checking");const Xt=Nt(n,s,3,!!_,d);if(Mn&&ws(),Gn){(P=ci)==null||P.instant(ci.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:s.id,depth:St,targetDepth:Kt});const He=Fe(_||D,p.Excessive_stack_depth_comparing_types_0_and_1,kn(n),kn(s));T&&(T.errors||(T.errors=[])).push(He)}else if(O){if(h){const Vt=h();Vt&&(aue(Vt,O),O=Vt)}let He;if(d&&_&&!Xt&&n.symbol){const Vt=Fi(n.symbol);if(Vt.originatingImport&&!Zu(Vt.originatingImport)&&Ef($n(Vt.target),s,c,void 0)){const nr=yr(Vt.originatingImport,p.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);He=gn(He,nr)}}const ot=Wg(Bn(_),_,O,He);$&&fa(ot,...$),T&&(T.errors||(T.errors=[])).push(ot),(!T||!T.skipLogging)&&xa.add(ot)}return _&&T&&T.skipLogging&&Xt===0&&E.assert(!!T.errors,"missed opportunity to interact with error."),Xt!==0;function dn(He){O=He.errorInfo,Ht=He.lastSkippedInfo,Mn=He.incompatibleStack,Nn=He.overrideNextErrorInfo,$=He.relatedInfo}function Cn(){return{errorInfo:O,lastSkippedInfo:Ht,incompatibleStack:Mn==null?void 0:Mn.slice(),overrideNextErrorInfo:Nn,relatedInfo:$==null?void 0:$.slice()}}function Un(He,...ot){Nn++,Ht=void 0,(Mn||(Mn=[])).push([He,...ot])}function ws(){const He=Mn||[];Mn=void 0;const ot=Ht;if(Ht=void 0,He.length===1){Sr(...He[0]),ot&&cc(void 0,...ot);return}let Vt="";const En=[];for(;He.length;){const[nr,...un]=He.pop();switch(nr.code){case p.Types_of_property_0_are_incompatible.code:{Vt.indexOf("new ")===0&&(Vt=`(${Vt})`);const sr=""+un[0];Vt.length===0?Vt=`${sr}`:pf(sr,Oa(j))?Vt=`${Vt}.${sr}`:sr[0]==="["&&sr[sr.length-1]==="]"?Vt=`${Vt}${sr}`:Vt=`${Vt}[${sr}]`;break}case p.Call_signature_return_types_0_and_1_are_incompatible.code:case p.Construct_signature_return_types_0_and_1_are_incompatible.code:case p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Vt.length===0){let sr=nr;nr.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?sr=p.Call_signature_return_types_0_and_1_are_incompatible:nr.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(sr=p.Construct_signature_return_types_0_and_1_are_incompatible),En.unshift([sr,un[0],un[1]])}else{const sr=nr.code===p.Construct_signature_return_types_0_and_1_are_incompatible.code||nr.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Or=nr.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||nr.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Vt=`${sr}${Vt}(${Or})`}break}case p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{En.unshift([p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,un[0],un[1]]);break}case p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{En.unshift([p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,un[0],un[1],un[2]]);break}default:return E.fail(`Unhandled Diagnostic: ${nr.code}`)}}Vt?Sr(Vt[Vt.length-1]===")"?p.The_types_returned_by_0_are_incompatible_between_these_types:p.The_types_of_0_are_incompatible_between_these_types,Vt):En.shift();for(const[nr,...un]of En){const sr=nr.elidedInCompatabilityPyramid;nr.elidedInCompatabilityPyramid=!1,Sr(nr,...un),nr.elidedInCompatabilityPyramid=sr}ot&&cc(void 0,...ot)}function Sr(He,...ot){E.assert(!!_),Mn&&ws(),!He.elidedInCompatabilityPyramid&&(O=_s(O,He,...ot))}function Ts(He){E.assert(!!O),$?$.push(He):$=[He]}function cc(He,ot,Vt){Mn&&ws();const[En,nr]=Dh(ot,Vt);let un=ot,sr=En;if(QE(ot)&&!Iie(Vt)&&(un=zh(ot),E.assert(!la(un,Vt),"generalized source shouldn't be assignable"),sr=Q_(un)),(Vt.flags&8388608&&!(ot.flags&8388608)?Vt.objectType.flags:Vt.flags)&262144&&Vt!==W_&&Vt!==bo){const Ci=B_(Vt);let is;Ci&&(la(un,Ci)||(is=la(ot,Ci)))?Sr(p._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,is?En:sr,nr,kn(Ci)):(O=void 0,Sr(p._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,nr,sr))}if(He)He===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&be&&PCe(ot,Vt).length&&(He=p.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(c===ou)He=p.Type_0_is_not_comparable_to_type_1;else if(En===nr)He=p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(be&&PCe(ot,Vt).length)He=p.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(ot.flags&128&&Vt.flags&1048576){const Ci=ftt(ot,Vt);if(Ci){Sr(p.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,sr,nr,kn(Ci));return}}He=p.Type_0_is_not_assignable_to_type_1}Sr(He,sr,nr)}function uu(He,ot){const Vt=Sg(He.symbol)?kn(He,He.symbol.valueDeclaration):kn(He),En=Sg(ot.symbol)?kn(ot,ot.symbol.valueDeclaration):kn(ot);(Bi===He&&F===ot||Es===He&&ye===ot||Ua===He&&Sn===ot||P4e()===He&&ir===ot)&&Sr(p._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,En,Vt)}function Hu(He,ot,Vt){return _a(He)?He.target.readonly&&jJ(ot)?(Vt&&Sr(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,kn(He),kn(ot)),!1):Sv(ot):sC(He)&&jJ(ot)?(Vt&&Sr(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,kn(He),kn(ot)),!1):_a(ot)?wf(He):!0}function am(He,ot,Vt){return Nt(He,ot,3,Vt)}function Nt(He,ot,Vt=3,En=!1,nr,un=0){if(He===ot)return-1;if(He.flags&524288&&ot.flags&402784252)return c===ou&&!(ot.flags&131072)&&XE(ot,He,c)||XE(He,ot,c,En?Sr:void 0)?-1:(En&&Qn(He,ot,He,ot,nr),0);const sr=gP(He,!1);let Or=gP(ot,!0);if(sr===Or)return-1;if(c===Tu)return sr.flags!==Or.flags?0:sr.flags&67358815?-1:(zi(sr,Or),fr(sr,Or,!1,0,Vt));if(sr.flags&262144&&ab(sr)===Or)return-1;if(sr.flags&470302716&&Or.flags&1048576){const Ci=Or.types,is=Ci.length===2&&Ci[0].flags&98304?Ci[1]:Ci.length===3&&Ci[0].flags&98304&&Ci[1].flags&98304?Ci[2]:void 0;if(is&&!(is.flags&98304)&&(Or=gP(is,!0),sr===Or))return-1}if(c===ou&&!(Or.flags&131072)&&XE(Or,sr,c)||XE(sr,Or,c,En?Sr:void 0))return-1;if(sr.flags&469499904||Or.flags&469499904){if(!(un&2)&&ny(sr)&&Br(sr)&8192&&Wi(sr,Or,En))return En&&cc(nr,sr,ot.aliasSymbol?ot:Or),0;const is=(c!==ou||Gp(sr))&&!(un&2)&&sr.flags&405405692&&sr!==Uc&&Or.flags&2621440&&OCe(Or)&&(za(sr).length>0||Uz(sr)),Hs=!!(Br(sr)&2048);if(is&&!aZe(sr,Or,Hs)){if(En){const ms=kn(He.aliasSymbol?He:sr),Qs=kn(ot.aliasSymbol?ot:Or),co=As(sr,0),Ia=As(sr,1);co.length>0&&Nt(Va(co[0]),Or,1,!1)||Ia.length>0&&Nt(Va(Ia[0]),Or,1,!1)?Sr(p.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ms,Qs):Sr(p.Type_0_has_no_properties_in_common_with_type_1,ms,Qs)}return 0}zi(sr,Or);const si=sr.flags&1048576&&sr.types.length<4&&!(Or.flags&1048576)||Or.flags&1048576&&Or.types.length<4&&!(sr.flags&469499904)?oo(sr,Or,En,un):fr(sr,Or,En,un,Vt);if(si)return si}return En&&Qn(He,ot,sr,Or,nr),0}function Qn(He,ot,Vt,En,nr){var un,sr;const Or=!!jie(He),Ci=!!jie(ot);Vt=He.aliasSymbol||Or?He:Vt,En=ot.aliasSymbol||Ci?ot:En;let is=Nn>0;if(is&&Nn--,Vt.flags&524288&&En.flags&524288){const Hs=O;Hu(Vt,En,!0),O!==Hs&&(is=!!O)}if(Vt.flags&524288&&En.flags&402784252)uu(Vt,En);else if(Vt.symbol&&Vt.flags&524288&&Uc===Vt)Sr(p.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Br(Vt)&2048&&En.flags&2097152){const Hs=En.types,zs=Av(sf.IntrinsicAttributes,_),si=Av(sf.IntrinsicClassAttributes,_);if(!q(zs)&&!q(si)&&(gs(Hs,zs)||gs(Hs,si)))return}else O=Bre(O,ot);if(!nr&&is){Ht=[Vt,En];return}if(cc(nr,Vt,En),Vt.flags&262144&&((sr=(un=Vt.symbol)==null?void 0:un.declarations)==null?void 0:sr[0])&&!ab(Vt)){const Hs=AJ(Vt);if(Hs.constraint=Ji(En,Tv(Vt,Hs)),BE(Hs)){const zs=kn(En,Vt.symbol.declarations[0]);Ts(yr(Vt.symbol.declarations[0],p.This_type_parameter_might_need_an_extends_0_constraint,zs))}}}function zi(He,ot){if(!!ci&&He.flags&3145728&&ot.flags&3145728){const Vt=He,En=ot;if(Vt.objectFlags&En.objectFlags&32768)return;const nr=Vt.types.length,un=En.types.length;nr*un>1e6&&ci.instant(ci.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:He.id,sourceSize:nr,targetId:ot.id,targetSize:un,pos:_==null?void 0:_.pos,end:_==null?void 0:_.end})}}function xs(He,ot){return zr(E_(He,(En,nr)=>{var un;nr=Y_(nr);const sr=nr.flags&3145728?Mre(nr,ot):mv(nr,ot),Or=sr&&$n(sr)||((un=nx(nr,ot))==null?void 0:un.type)||Pt;return gn(En,Or)},void 0)||Ve)}function Wi(He,ot,Vt){var En;if(!FP(ot)||!fe&&Br(ot)&4096)return!1;const nr=!!(Br(He)&2048);if((c===Ju||c===ou)&&(i7(Uc,ot)||!nr&&Ng(ot)))return!1;let un=ot,sr;ot.flags&1048576&&(un=U7e(He,ot,Nt)||fot(ot),sr=un.flags&1048576?un.types:[un]);for(const Or of za(He))if(Da(Or,He.symbol)&&!NCe(He,Or)){if(!Ase(un,Or.escapedName,nr)){if(Vt){const Ci=ol(un,FP);if(!_)return E.fail();if(h2(_)||V_(_)||V_(_.parent)){Or.valueDeclaration&&zd(Or.valueDeclaration)&&Bn(_)===Bn(Or.valueDeclaration.name)&&(_=Or.valueDeclaration.name);const is=ni(Or),Hs=g8e(is,Ci),zs=Hs?ni(Hs):void 0;zs?Sr(p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,is,kn(Ci),zs):Sr(p.Property_0_does_not_exist_on_type_1,is,kn(Ci))}else{const is=((En=He.symbol)==null?void 0:En.declarations)&&wl(He.symbol.declarations);let Hs;if(Or.valueDeclaration&&On(Or.valueDeclaration,zs=>zs===is)&&Bn(is)===Bn(_)){const zs=Or.valueDeclaration;E.assertNode(zs,q0);const si=zs.name;_=si,we(si)&&(Hs=jse(si,Ci))}Hs!==void 0?Sr(p.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ni(Or),kn(Ci),Hs):Sr(p.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ni(Or),kn(Ci))}}return!0}if(sr&&!Nt($n(Or),xs(sr,Or.escapedName),3,Vt))return Vt&&Un(p.Types_of_property_0_are_incompatible,ni(Or)),!0}return!1}function Da(He,ot){return He.valueDeclaration&&ot.valueDeclaration&&He.valueDeclaration.parent===ot.valueDeclaration}function oo(He,ot,Vt,En){if(He.flags&1048576)return c===ou?Qe(He,ot,Vt&&!(He.flags&402784252),En):qn(He,ot,Vt&&!(He.flags&402784252),En);if(ot.flags&1048576)return da(KE(He),ot,Vt&&!(He.flags&402784252)&&!(ot.flags&402784252));if(ot.flags&2097152)return K_(He,ot,Vt,2);if(c===ou&&ot.flags&402784252){const nr=cl(He.types,un=>un.flags&465829888?B_(un)||Jt:un);if(nr!==He.types){if(He=ca(nr),He.flags&131072)return 0;if(!(He.flags&2097152))return Nt(He,ot,1,!1)||Nt(ot,He,1,!1)}}return Qe(He,ot,!1,1)}function Ac(He,ot){let Vt=-1;const En=He.types;for(const nr of En){const un=da(nr,ot,!1);if(!un)return 0;Vt&=un}return Vt}function da(He,ot,Vt){const En=ot.types;if(ot.flags&1048576){if(Lh(En,He))return-1;if(c!==ou&&Br(ot)&32768&&!(He.flags&1024)&&(He.flags&2688||(c===$d||c===bf)&&He.flags&256)){const un=He===He.regularType?He.freshType:He.regularType,sr=He.flags&128?F:He.flags&256?ye:He.flags&2048?Oe:void 0;return sr&&Lh(En,sr)||un&&Lh(En,un)?-1:0}const nr=o3e(ot,He);if(nr){const un=Nt(He,nr,2,!1);if(un)return un}}for(const nr of En){const un=Nt(He,nr,2,!1);if(un)return un}if(Vt){const nr=ICe(He,ot,Nt);nr&&Nt(He,nr,2,!0)}return 0}function K_(He,ot,Vt,En){let nr=-1;const un=ot.types;for(const sr of un){const Or=Nt(He,sr,2,Vt,void 0,En);if(!Or)return 0;nr&=Or}return nr}function Qe(He,ot,Vt,En){const nr=He.types;if(He.flags&1048576&&Lh(nr,ot))return-1;const un=nr.length;for(let sr=0;sr=sr.types.length&&un.length%sr.types.length===0){const Hs=Nt(Ci,sr.types[Or%sr.types.length],3,!1,void 0,En);if(Hs){nr&=Hs;continue}}const is=Nt(Ci,ot,1,Vt,void 0,En);if(!is)return 0;nr&=is}return nr}function Rn(He=Ve,ot=Ve,Vt=Ve,En,nr){if(He.length!==ot.length&&c===Tu)return 0;const un=He.length<=ot.length?He.length:ot.length;let sr=-1;for(let Or=0;Or(ms|=Ia?16:8,si(Ia)));let Qs;return _n===3?((un=ci)==null||un.instant(ci.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:He.id,sourceIdStack:Se.map(Ia=>Ia.id),targetId:ot.id,targetIdStack:Te.map(Ia=>Ia.id),depth:St,targetDepth:Kt}),Qs=3):((sr=ci)==null||sr.push(ci.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:He.id,targetId:ot.id}),Qs=vr(He,ot,Vt,En),(Or=ci)==null||Or.pop()),Ja&&(Ja=si),nr&1&&St--,nr&2&&Kt--,_n=zs,Qs?(Qs===-1||St===0&&Kt===0)&&co(Qs===-1||Qs===3):(c.set(Ci,(Vt?4:0)|2|ms),co(!1)),Qs;function co(Ia){for(let hl=Hs;hlOr!==He)&&(un=Nt(sr,ot,1,!1,void 0,En))}un&&!(En&2)&&ot.flags&2097152&&!yv(ot)&&He.flags&2621440?(un&=en(He,ot,Vt,void 0,!1,0),un&&ny(He)&&Br(He)&8192&&(un&=lc(He,ot,!1,Vt,0))):un&&xJ(ot)&&!Sv(ot)&&He.flags&2097152&&Y_(He).flags&3670016&&!dt(He.types,sr=>sr===ot||!!(Br(sr)&262144))&&(un&=en(He,ot,Vt,void 0,!0,En))}return un&&dn(nr),un}function Zi(He,ot,Vt,En,nr){let un,sr,Or=!1,Ci=He.flags;const is=ot.flags;if(c===Tu){if(Ci&3145728){let si=Ac(He,ot);return si&&(si&=Ac(ot,He)),si}if(Ci&4194304)return Nt(He.type,ot.type,3,!1);if(Ci&8388608&&(un=Nt(He.objectType,ot.objectType,3,!1))&&(un&=Nt(He.indexType,ot.indexType,3,!1))||Ci&16777216&&He.root.isDistributive===ot.root.isDistributive&&(un=Nt(He.checkType,ot.checkType,3,!1))&&(un&=Nt(He.extendsType,ot.extendsType,3,!1))&&(un&=Nt(Z1(He),Z1(ot),3,!1))&&(un&=Nt(K1(He),K1(ot),3,!1))||Ci&33554432&&(un=Nt(He.baseType,ot.baseType,3,!1))&&(un&=Nt(He.constraint,ot.constraint,3,!1)))return un;if(!(Ci&524288))return 0}else if(Ci&3145728||is&3145728){if(un=oo(He,ot,Vt,En))return un;if(!(Ci&465829888||Ci&524288&&is&1048576||Ci&2097152&&is&467402752))return 0}if(Ci&17301504&&He.aliasSymbol&&He.aliasTypeArguments&&He.aliasSymbol===ot.aliasSymbol&&!(MJ(He)||MJ(ot))){const si=FCe(He.aliasSymbol);if(si===Ve)return 1;const ms=Fi(He.aliasSymbol).typeParameters,Qs=nm(ms),co=Oh(He.aliasTypeArguments,ms,Qs,Zn(He.aliasSymbol.valueDeclaration)),Ia=Oh(ot.aliasTypeArguments,ms,Qs,Zn(He.aliasSymbol.valueDeclaration)),hl=zs(co,Ia,si,En);if(hl!==void 0)return hl}if(zCe(He)&&!He.target.readonly&&(un=Nt(po(He)[0],ot,1))||zCe(ot)&&(ot.target.readonly||jJ(B_(He)||He))&&(un=Nt(He,po(ot)[0],2)))return un;if(is&262144){if(Br(He)&32&&!He.declaration.nameType&&Nt(im(ot),Uf(He),3)&&!(tm(He)&4)){const si=Eg(He),ms=Cu(ot,Vp(He));if(un=Nt(si,ms,3,Vt))return un}if(c===ou&&Ci&262144){let si=s_(He);if(si&&BE(He))for(;si&&Fg(si,ms=>!!(ms.flags&262144));){if(un=Nt(si,ot,1,!1))return un;si=s_(si)}return 0}}else if(is&4194304){const si=ot.type;if(Ci&4194304&&(un=Nt(si,He.type,3,!1)))return un;if(_a(si)){if(un=Nt(He,J4e(si),2,Vt))return un}else{const ms=Pre(si);if(ms){if(Nt(He,im(ms,ot.indexFlags|4),2,Vt)===-1)return-1}else if(ff(si)){const Qs=T0(si),co=Uf(si);let Ia;if(Qs&&RE(si)){const hl=Y_(bk(si)),Td=[];Are(hl,8576,!1,xd=>void Td.push(Ji(Qs,HE(si.mapper,Vp(si),xd)))),Ia=zr([...Td,Qs])}else Ia=Qs||co;if(Nt(He,Ia,2,Vt)===-1)return-1}}}else if(is&8388608){if(Ci&8388608){if((un=Nt(He.objectType,ot.objectType,3,Vt))&&(un&=Nt(He.indexType,ot.indexType,3,Vt)),un)return un;Vt&&(sr=O)}if(c===Ju||c===ou){const si=ot.objectType,ms=ot.indexType,Qs=B_(si)||si,co=B_(ms)||ms;if(!yv(Qs)&&!Y1(co)){const Ia=4|(Qs!==si?2:0),hl=Mh(Qs,co,Ia);if(hl){if(Vt&&sr&&dn(nr),un=Nt(He,hl,2,Vt,void 0,En))return un;Vt&&sr&&O&&(O=Hs([sr])<=Hs([O])?sr:O)}}}Vt&&(sr=void 0)}else if(ff(ot)&&c!==Tu){const si=!!ot.declaration.nameType,ms=Eg(ot),Qs=tm(ot);if(!(Qs&8)){if(!si&&ms.flags&8388608&&ms.objectType===He&&ms.indexType===Vp(ot))return-1;if(!ff(He)){const co=si?T0(ot):Uf(ot),Ia=im(He,2),hl=Qs&4,Td=hl?KN(co,Ia):void 0;if(hl?!(Td.flags&131072):Nt(co,Ia,3)){const xd=Eg(ot),Fv=Vp(ot),jk=cC(xd,-98305);if(!si&&jk.flags&8388608&&jk.indexType===Fv){if(un=Nt(He,jk.objectType,2,Vt))return un}else{const px=si?Td||co:Td?ca([Td,Fv]):Fv,Mg=Cu(He,px);if(un=Nt(Mg,xd,3,Vt))return un}}sr=O,dn(nr)}}}else if(is&16777216){if(iC(ot,Te,Kt,10))return 3;const si=ot;if(!si.root.inferTypeParameters&&!vYe(si.root)&&!(He.flags&16777216&&He.root===si.root)){const ms=!la(PJ(si.checkType),PJ(si.extendsType)),Qs=!ms&&la(_b(si.checkType),_b(si.extendsType));if((un=ms?-1:Nt(He,Z1(si),2,!1,void 0,En))&&(un&=Qs?-1:Nt(He,K1(si),2,!1,void 0,En),un))return un}}else if(is&134217728){if(Ci&134217728){if(c===ou)return HZe(He,ot)?0:-1;Ji(He,Ic)}if(tse(He,ot))return-1}else if(ot.flags&268435456&&!(He.flags&268435456)&&ese(He,ot))return-1;if(Ci&8650752){if(!(Ci&8388608&&is&8388608)){const si=ab(He)||Jt;if(un=Nt(si,ot,1,!1,void 0,En))return un;if(un=Nt(Uu(si,He),ot,1,Vt&&si!==Jt&&!(is&Ci&262144),void 0,En))return un;if(Lre(He)){const ms=ab(He.indexType);if(ms&&(un=Nt(Cu(He.objectType,ms),ot,1,Vt)))return un}}}else if(Ci&4194304){if(un=Nt(Fs,ot,1,Vt))return un}else if(Ci&134217728&&!(is&524288)){if(!(is&134217728)){const si=B_(He);if(si&&si!==He&&(un=Nt(si,ot,1,Vt)))return un}}else if(Ci&268435456)if(is&268435456){if(He.symbol!==ot.symbol)return 0;if(un=Nt(He.type,ot.type,3,Vt))return un}else{const si=B_(He);if(si&&(un=Nt(si,ot,1,Vt)))return un}else if(Ci&16777216){if(iC(He,Se,St,10))return 3;if(is&16777216){const ms=He.root.inferTypeParameters;let Qs=He.extendsType,co;if(ms){const Ia=e7(ms,void 0,0,am);Og(Ia.inferences,ot.extendsType,Qs,1536),Qs=Ji(Qs,Ia.mapper),co=Ia.mapper}if(Ag(Qs,ot.extendsType)&&(Nt(He.checkType,ot.checkType,3)||Nt(ot.checkType,He.checkType,3))&&((un=Nt(Ji(Z1(He),co),Z1(ot),3,Vt))&&(un&=Nt(K1(He),K1(ot),3,Vt)),un))return un}else{const ms=BE(He)?e4e(He):void 0;if(ms&&(un=Nt(ms,ot,1,Vt)))return un}const si=Ire(He);if(si&&(un=Nt(si,ot,1,Vt)))return un}else{if(c!==$d&&c!==bf&&NXe(ot)&&Ng(He))return-1;if(ff(ot))return ff(He)&&(un=gi(He,ot,Vt))?un:0;const si=!!(Ci&402784252);if(c!==Tu)He=Y_(He),Ci=He.flags;else if(ff(He))return 0;if(Br(He)&4&&Br(ot)&4&&He.target===ot.target&&!_a(He)&&!(MJ(He)||MJ(ot))){if(JJ(He))return-1;const ms=Fie(He.target);if(ms===Ve)return 1;const Qs=zs(po(He),po(ot),ms,En);if(Qs!==void 0)return Qs}else{if(sC(ot)?Df(He,Sv):wf(ot)&&Df(He,ms=>_a(ms)&&!ms.target.readonly))return c!==Tu?Nt(x0(He,ye)||ke,x0(ot,ye)||ke,3,Vt):0;if(D0(He)&&_a(ot)&&!D0(ot)){const ms=wg(He);if(ms!==He)return Nt(ms,ot,1,Vt)}else if((c===$d||c===bf)&&Ng(ot)&&Br(ot)&8192&&!Ng(He))return 0}if(Ci&2621440&&is&524288){const ms=Vt&&O===nr.errorInfo&&!si;if(un=en(He,ot,ms,void 0,!1,En),un&&(un&=Ai(He,ot,0,ms,En),un&&(un&=Ai(He,ot,1,ms,En),un&&(un&=lc(He,ot,si,ms,En)))),Or&&un)O=sr||O||nr.errorInfo;else if(un)return un}if(Ci&2621440&&is&1048576){const ms=cC(ot,36175872);if(ms.flags&1048576){const Qs=pr(He,ms);if(Qs)return Qs}}}return 0;function Hs(si){return si?E_(si,(ms,Qs)=>ms+1+Hs(Qs.next),0):0}function zs(si,ms,Qs,co){if(un=Rn(si,ms,Qs,Vt,co))return un;if(dt(Qs,hl=>!!(hl&24))){sr=void 0,dn(nr);return}const Ia=ms&&oZe(ms,Qs);if(Or=!Ia,Qs!==Ve&&!Ia){if(Or&&!(Vt&&dt(Qs,hl=>(hl&7)===0)))return 0;sr=O,dn(nr)}}}function gi(He,ot,Vt){if(c===ou||(c===Tu?tm(He)===tm(ot):Nre(He)<=Nre(ot))){let nr;const un=Uf(ot),sr=Ji(Uf(He),Nre(He)<0?ls:Ic);if(nr=Nt(un,sr,3,Vt)){const Or=_u([Vp(He)],[Vp(ot)]);if(Ji(T0(He),Or)===Ji(T0(ot),Or))return nr&Nt(Ji(Eg(He),Or),Eg(ot),3,Vt)}}return 0}function pr(He,ot){var Vt;const En=za(He),nr=a3e(En,ot);if(!nr)return 0;let un=1;for(const zs of nr)if(un*=bKe(H1(zs)),un>25)return(Vt=ci)==null||Vt.instant(ci.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:He.id,targetId:ot.id,numCombinations:un}),0;const sr=new Array(nr.length),Or=new Set;for(let zs=0;zszs[Qs],!1,0,H||c===ou))continue e}Gf(is,ms,oy),si=!0}if(!si)return 0}let Hs=-1;for(const zs of is)if(Hs&=en(He,zs,!1,Or,!1,0),Hs&&(Hs&=Ai(He,zs,0,!1,0),Hs&&(Hs&=Ai(He,zs,1,!1,0),Hs&&!(_a(He)&&_a(zs))&&(Hs&=lc(He,zs,!1,!1,0)))),!Hs)return Hs;return Hs}function it(He,ot){if(!ot||He.length===0)return He;let Vt;for(let En=0;En5?Sr(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,kn(He),kn(ot),an(un.slice(0,4),sr=>ni(sr)).join(", "),un.length-4):Sr(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,kn(He),kn(ot),an(un,sr=>ni(sr)).join(", ")),nr&&O&&Nn++)}function en(He,ot,Vt,En,nr,un){if(c===Tu)return Dn(He,ot,En);let sr=-1;if(_a(ot)){if(Sv(He)){if(!ot.target.readonly&&(sC(He)||_a(He)&&He.target.readonly))return 0;const zs=k0(He),si=k0(ot),ms=_a(He)?He.target.combinedFlags&4:4,Qs=ot.target.combinedFlags&4,co=_a(He)?He.target.minLength:0,Ia=ot.target.minLength;if(!ms&&zs=xd?si-1-Math.min(aI,Fv):Mg,ht=ot.target.elementFlags[Eu];if(ht&8&&!(iy&8))return Vt&&Sr(p.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Eu),0;if(iy&8&&!(ht&12))return Vt&&Sr(p.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Mg,Eu),0;if(ht&1&&!(iy&1))return Vt&&Sr(p.Source_provides_no_match_for_required_element_at_position_0_in_target,Eu),0;if(px&&((iy&12||ht&12)&&(px=!1),px&&(En==null?void 0:En.has(""+Mg))))continue;const Tr=ub(hl[Mg],!!(iy&ht&2)),Xr=Td[Eu],Yr=iy&8&&ht&4?$l(Xr):ub(Xr,!!(ht&2)),Kr=Nt(Tr,Yr,3,Vt,void 0,un);if(!Kr)return Vt&&(si>1||zs>1)&&(jk&&Mg>=xd&&aI>=Fv&&xd!==zs-Fv-1?Un(p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,xd,zs-Fv-1,Eu):Un(p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Mg,Eu)),0;sr&=Kr}return sr}if(ot.target.combinedFlags&12)return 0}const Or=(c===$d||c===bf)&&!ny(He)&&!JJ(He)&&!_a(He),Ci=Zie(He,ot,Or,!1);if(Ci)return Vt&&Ni(He,ot)&&Mt(He,ot,Ci,Or),0;if(ny(ot)){for(const zs of it(za(He),En))if(!mv(ot,zs.escapedName)&&!($n(zs).flags&32768))return Vt&&Sr(p.Property_0_does_not_exist_on_type_1,ni(zs),kn(ot)),0}const is=za(ot),Hs=_a(He)&&_a(ot);for(const zs of it(is,En)){const si=zs.escapedName;if(!(zs.flags&4194304)&&(!Hs||rg(si)||si==="length")&&(!nr||zs.flags&16777216)){const ms=qs(He,si);if(ms&&ms!==zs){const Qs=$t(He,ot,ms,zs,H1,Vt,un,c===ou);if(!Qs)return 0;sr&=Qs}}}return sr}function Dn(He,ot,Vt){if(!(He.flags&524288&&ot.flags&524288))return 0;const En=it(Ih(He),Vt),nr=it(Ih(ot),Vt);if(En.length!==nr.length)return 0;let un=-1;for(const sr of En){const Or=mv(ot,sr.escapedName);if(!Or)return 0;const Ci=Rie(sr,Or,Nt);if(!Ci)return 0;un&=Ci}return un}function Ai(He,ot,Vt,En,nr){var un,sr;if(c===Tu)return ti(He,ot,Vt);if(ot===mo||He===mo)return-1;const Or=He.symbol&&vd(He.symbol.valueDeclaration),Ci=ot.symbol&&vd(ot.symbol.valueDeclaration),is=As(He,Or&&Vt===1?0:Vt),Hs=As(ot,Ci&&Vt===1?0:Vt);if(Vt===1&&is.length&&Hs.length){const co=!!(is[0].flags&4),Ia=!!(Hs[0].flags&4);if(co&&!Ia)return En&&Sr(p.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Xa(is[0],Hs[0],En))return 0}let zs=-1;const si=Vt===1?sn:Bs,ms=Br(He),Qs=Br(ot);if(ms&64&&Qs&64&&He.symbol===ot.symbol||ms&4&&Qs&4&&He.target===ot.target)for(let co=0;coRl(xd,void 0,262144,Vt);return Sr(p.Type_0_is_not_assignable_to_type_1,Td(Ia),Td(hl)),Sr(p.Types_of_construct_signatures_are_incompatible),zs}}else{e:for(const co of Hs){const Ia=Cn();let hl=En;for(const Td of is){const xd=dr(Td,co,!0,hl,nr,si(Td,co));if(xd){zs&=xd,dn(Ia);continue e}hl=!1}return hl&&Sr(p.Type_0_provides_no_match_for_the_signature_1,kn(He),Rl(co,void 0,void 0,Vt)),0}}return zs}function Ni(He,ot){const Vt=nP(He,0),En=nP(He,1),nr=Ih(He);return(Vt.length||En.length)&&!nr.length?!!(As(ot,0).length&&Vt.length||As(ot,1).length&&En.length):!0}function Bs(He,ot){return He.parameters.length===0&&ot.parameters.length===0?(Vt,En)=>Un(p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,kn(Vt),kn(En)):(Vt,En)=>Un(p.Call_signature_return_types_0_and_1_are_incompatible,kn(Vt),kn(En))}function sn(He,ot){return He.parameters.length===0&&ot.parameters.length===0?(Vt,En)=>Un(p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,kn(Vt),kn(En)):(Vt,En)=>Un(p.Construct_signature_return_types_0_and_1_are_incompatible,kn(Vt),kn(En))}function dr(He,ot,Vt,En,nr,un){const sr=c===$d?16:c===bf?24:0;return Aie(Vt?zE(He):He,Vt?zE(ot):ot,sr,En,Sr,un,Or,Ic);function Or(Ci,is,Hs){return Nt(Ci,is,3,Hs,void 0,nr)}}function ti(He,ot,Vt){const En=As(He,Vt),nr=As(ot,Vt);if(En.length!==nr.length)return 0;let un=-1;for(let sr=0;srCi.keyType===F);let Or=-1;for(const Ci of un){const is=c!==bf&&!Vt&&sr&&Ci.type.flags&1?-1:ff(He)&&sr?Nt(Eg(He),Ci.type,3,En):ra(He,Ci,En,nr);if(!is)return 0;Or&=is}return Or}function ra(He,ot,Vt,En){const nr=rP(He,ot.keyType);return nr?us(nr,ot,Vt,En):!(En&1)&&(c!==bf||Br(He)&8192)&&GJ(He)?Zr(He,ot,Vt,En):(Vt&&Sr(p.Index_signature_for_type_0_is_missing_in_type_1,kn(ot.keyType),kn(He)),0)}function Yo(He,ot){const Vt=x_(He),En=x_(ot);if(Vt.length!==En.length)return 0;for(const nr of En){const un=Rm(He,nr.keyType);if(!(un&&Nt(un.type,nr.type,3)&&un.isReadonly===nr.isReadonly))return 0}return-1}function Xa(He,ot,Vt){if(!He.declaration||!ot.declaration)return!0;const En=Hx(He.declaration,24),nr=Hx(ot.declaration,24);return nr===8||nr===16&&En!==8||nr!==16&&!En?!0:(Vt&&Sr(p.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,V1(En),V1(nr)),!1)}}function Iie(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!mn(n.types,Iie);if(n.flags&465829888){const s=ab(n);if(s&&s!==n)return Iie(s)}return Gp(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function PCe(n,s){return _a(n)&&_a(s)?Ve:za(s).filter(c=>LJ(Wc(n,c.escapedName),$n(c)))}function LJ(n,s){return!!n&&!!s&&Qo(n,32768)&&!!ZE(s)}function sZe(n){return za(n).filter(s=>ZE($n(s)))}function ICe(n,s,c=wie){return U7e(n,s,c)||cot(n,s)||lot(n,s)||_ot(n,s)||uot(n,s)}function Oie(n,s,c){const _=n.types,d=_.map(T=>T.flags&402784252?0:-1);for(const[T,P]of s){let O=!1;for(let $=0;$<_.length;$++)if(d[$]){const te=NE(_[$],P);te&&c(T(),te)?O=!0:d[$]=3}for(let $=0;$<_.length;$++)d[$]===3&&(d[$]=O?0:-1)}const h=gs(d,0)?zr(_.filter((T,P)=>d[P]),0):n;return h.flags&131072?n:h}function OCe(n){if(n.flags&524288){const s=Up(n);return s.callSignatures.length===0&&s.constructSignatures.length===0&&s.indexInfos.length===0&&s.properties.length>0&&$i(s.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?$i(n.types,OCe):!1}function aZe(n,s,c){for(const _ of za(n))if(Ase(s,_.escapedName,c))return!0;return!1}function Fie(n){return n===vt||n===bn||n.objectFlags&8?Y:LCe(n.symbol,n.typeParameters)}function FCe(n){return LCe(n,Fi(n).typeParameters)}function LCe(n,s=Ve){var c,_;const d=Fi(n);if(!d.variances){(c=ci)==null||c.push(ci.Phase.CheckTypes,"getVariancesWorker",{arity:s.length,id:S_(go(n))});const h=gh;gh||(gh=!0,Uy=mh.length),d.variances=Ve;const T=[];for(const P of s){const O=Lie(P);let $=O&65536?O&32768?0:1:O&32768?2:void 0;if($===void 0){let te=!1,ce=!1;const Se=Ja;Ja=St=>St?ce=!0:te=!0;const Te=hP(n,P,mc),Ze=hP(n,P,h_);$=(la(Ze,Te)?1:0)|(la(Te,Ze)?2:0),$===3&&la(hP(n,P,M_),Te)&&($=4),Ja=Se,(te||ce)&&(te&&($|=8),ce&&($|=16))}T.push($)}h||(gh=!1,Uy=0),d.variances=T,(_=ci)==null||_.pop({variances:T.map(E.formatVariance)})}return d.variances}function hP(n,s,c){const _=Tv(s,c),d=go(n);if(q(d))return d;const h=n.flags&524288?Ck(n,E0(Fi(n).typeParameters,_)):S0(d,E0(d.typeParameters,_));return kt.add(S_(h)),h}function MJ(n){return kt.has(S_(n))}function Lie(n){var s;return E_((s=n.symbol)==null?void 0:s.declarations,(c,_)=>c|I_(_),0)&100352}function oZe(n,s){for(let c=0;c!!(s.flags&262144)||RJ(s))}function _Ze(n,s,c,_){const d=[];let h="";const T=O(n,0),P=O(s,0);return`${h}${T},${P}${c}`;function O($,te=0){let ce=""+$.target.id;for(const Se of po($)){if(Se.flags&262144){if(_||cZe(Se)){let Te=d.indexOf(Se);Te<0&&(Te=d.length,d.push(Se)),ce+="="+Te;continue}h="*"}else if(te<4&&RJ(Se)){ce+="<"+O(Se,te+1)+">";continue}ce+="-"+Se.id}return ce}}function Mie(n,s,c,_,d){if(_===Tu&&n.id>s.id){const T=n;n=s,s=T}const h=c?":"+c:"";return RJ(n)&&RJ(s)?_Ze(n,s,h,d):`${n.id},${s.id}${h}`}function yP(n,s){if(rc(n)&6){for(const c of n.links.containingType.types){const _=qs(c,n.escapedName),d=_&&yP(_,s);if(d)return d}return}return s(n)}function cx(n){return n.parent&&n.parent.flags&32?go($_(n)):void 0}function BJ(n){const s=cx(n),c=s&&xo(s)[0];return c&&Wc(c,n.escapedName)}function uZe(n,s){return yP(n,c=>{const _=cx(c);return _?yk(_,s):!1})}function fZe(n,s){return!yP(s,c=>Ff(c)&16?!uZe(n,cx(c)):!1)}function MCe(n,s,c){return yP(s,_=>Ff(_,c)&16?!yk(n,cx(_)):!1)?void 0:n}function iC(n,s,c,_=3){if(c>=_){if(n.flags&2097152)return dt(n.types,P=>iC(P,s,c,_));const d=vP(n);let h=0,T=0;for(let P=0;PvP($)===d):vP(O)===d){if(O.id>=T&&(h++,h>=_))return!0;T=O.id}}}return!1}function vP(n){if(n.flags&524288&&!nse(n)){if(Br(n)&4&&n.node)return n.node;if(n.symbol&&!(Br(n)&16&&n.symbol.flags&32))return n.symbol;if(_a(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function pZe(n,s){return Rie(n,s,GE)!==0}function Rie(n,s,c){if(n===s)return-1;const _=Ff(n)&24,d=Ff(s)&24;if(_!==d)return 0;if(_){if(Mk(n)!==Mk(s))return 0}else if((n.flags&16777216)!==(s.flags&16777216))return 0;return Xp(n)!==Xp(s)?0:c($n(n),$n(s))}function dZe(n,s,c){const _=qu(n),d=qu(s),h=bd(n),T=bd(s),P=sm(n),O=sm(s);return!!(_===d&&h===T&&P===O||c&&h<=T)}function bP(n,s,c,_,d,h){if(n===s)return-1;if(!dZe(n,s,c)||Pn(n.typeParameters)!==Pn(s.typeParameters))return 0;if(s.typeParameters){const O=_u(n.typeParameters,s.typeParameters);for(let $=0;$s|(c.flags&1048576?RCe(c.types):c.flags),0)}function hZe(n){if(n.length===1)return n[0];const s=H?cl(n,_=>ol(_,d=>!(d.flags&98304))):n,c=gZe(s)?zr(s):E_(s,(_,d)=>jh(_,d)?d:_);return s===n?c:UJ(c,RCe(n)&98304)}function yZe(n){return E_(n,(s,c)=>jh(c,s)?c:s)}function wf(n){return!!(Br(n)&4)&&(n.target===vt||n.target===bn)}function sC(n){return!!(Br(n)&4)&&n.target===bn}function Sv(n){return wf(n)||_a(n)}function jJ(n){return wf(n)&&!sC(n)||_a(n)&&!n.target.readonly}function Bie(n){return wf(n)?po(n)[0]:void 0}function w0(n){return wf(n)||!(n.flags&98304)&&la(n,Et)}function jie(n){if(!(Br(n)&4)||!(Br(n.target)&3))return;if(Br(n)&33554432)return Br(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const s=n.target;if(Br(s)&1){const d=Ar(s);if(d&&d.expression.kind!==80&&d.expression.kind!==211)return}const c=xo(s);if(c.length!==1||Ph(n.symbol).size)return;let _=Pn(s.typeParameters)?Ji(c[0],_u(s.typeParameters,po(n).slice(0,s.typeParameters.length))):c[0];return Pn(po(n))>Pn(s.typeParameters)&&(_=Uu(_,ka(po(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=_}function BCe(n){return H?n===ea:n===hi}function JJ(n){const s=Bie(n);return!!s&&BCe(s)}function aC(n){let s;return _a(n)||!!qs(n,"0")||w0(n)&&!!(s=Wc(n,"length"))&&Df(s,c=>!!(c.flags&256))}function zJ(n){return w0(n)||aC(n)}function vZe(n,s){const c=Wc(n,""+s);if(c)return c;if(Df(n,_a))return VCe(n,s,j.noUncheckedIndexedAccess?Pt:void 0)}function bZe(n){return!(n.flags&240544)}function Gp(n){return!!(n.flags&109472)}function jCe(n){const s=wg(n);return s.flags&2097152?dt(s.types,Gp):Gp(s)}function TZe(n){return n.flags&2097152&&Fr(n.types,Gp)||n}function QE(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:$i(n.types,Gp):Gp(n)}function zh(n){return n.flags&1056?_J(n):n.flags&402653312?F:n.flags&256?ye:n.flags&2048?Oe:n.flags&512?Sn:n.flags&1048576?xZe(n):n}function xZe(n){var c;const s=`B${S_(n)}`;return(c=$y(s))!=null?c:JT(s,So(n,zh))}function Jie(n){return n.flags&402653312?F:n.flags&288?ye:n.flags&2048?Oe:n.flags&512?Sn:n.flags&1048576?So(n,Jie):n}function kv(n){return n.flags&1056&&bv(n)?_J(n):n.flags&128&&bv(n)?F:n.flags&256&&bv(n)?ye:n.flags&2048&&bv(n)?Oe:n.flags&512&&bv(n)?Sn:n.flags&1048576?So(n,kv):n}function JCe(n){return n.flags&8192?ir:n.flags&1048576?So(n,JCe):n}function zie(n,s){return wz(n,s)||(n=JCe(kv(n))),j_(n)}function SZe(n,s,c){if(n&&Gp(n)){const _=s?c?h7(s):s:void 0;n=zie(n,_)}return n}function Vie(n,s,c,_){if(n&&Gp(n)){const d=s?Nv(c,s,_):void 0;n=zie(n,d)}return n}function _a(n){return!!(Br(n)&4&&n.target.objectFlags&8)}function D0(n){return _a(n)&&!!(n.target.combinedFlags&8)}function zCe(n){return D0(n)&&n.target.elementFlags.length===1}function VJ(n){return oC(n,n.target.fixedLength)}function VCe(n,s,c){return So(n,_=>{const d=_,h=VJ(d);return h?c&&s>=cie(d.target)?zr([h,c]):h:Pt})}function kZe(n){const s=VJ(n);return s&&$l(s)}function oC(n,s,c=0,_=!1,d=!1){const h=k0(n)-c;if(s(c&12)===(s.target.elementFlags[_]&12))}function UCe({value:n}){return n.base10Value==="0"}function WCe(n){return ol(n,s=>!!(k_(s)&4194304))}function EZe(n){return So(n,wZe)}function wZe(n){return n.flags&4?PT:n.flags&8?z4:n.flags&64?o0:n===Tt||n===We||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&UCe(n)?n:jn}function UJ(n,s){const c=s&~n.flags&98304;return c===0?n:zr(c===32768?[n,Pt]:c===65536?[n,W]:[n,Pt,W])}function A0(n,s=!1){E.assert(H);const c=s?B:Pt;return n===c||n.flags&1048576&&n.types[0]===c?n:zr([n,c])}function DZe(n){return Qt||(Qt=K4("NonNullable",524288,void 0)||st),Qt!==st?Ck(Qt,[n]):ca([n,Oi])}function Ig(n){return H?db(n,2097152):n}function qCe(n){return H?zr([n,le]):n}function WJ(n){return H?ez(n,le):n}function qJ(n,s,c){return c?qC(s)?A0(n):qCe(n):n}function YE(n,s){return t9(s)?Ig(n):c_(s)?WJ(n):n}function ub(n,s){return be&&s?ez(n,z):n}function ZE(n){return n===z||!!(n.flags&1048576)&&n.types[0]===z}function HJ(n){return be?ez(n,z):Hf(n,524288)}function AZe(n,s){return(n.flags&524)!==0&&(s.flags&28)!==0}function GJ(n){const s=Br(n);return n.flags&2097152?$i(n.types,GJ):!!(n.symbol&&(n.symbol.flags&7040)!==0&&!(n.symbol.flags&32)&&!Uz(n))||!!(s&4194304)||!!(s&1024&&GJ(n.source))}function fb(n,s){const c=Pa(n.flags,n.escapedName,rc(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=s,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);const _=Fi(n).nameType;return _&&(c.links.nameType=_),c}function NZe(n,s){const c=Us();for(const _ of Ih(n)){const d=$n(_),h=s(d);c.set(_.escapedName,h===d?_:fb(_,h))}return c}function KE(n){if(!(ny(n)&&Br(n)&8192))return n;const s=n.regularType;if(s)return s;const c=n,_=NZe(n,KE),d=yc(c.symbol,_,c.callSignatures,c.constructSignatures,c.indexInfos);return d.flags=c.flags,d.objectFlags|=c.objectFlags&-8193,n.regularType=d,d}function HCe(n,s,c){return{parent:n,propertyName:s,siblings:c,resolvedProperties:void 0}}function GCe(n){if(!n.siblings){const s=[];for(const c of GCe(n.parent))if(ny(c)){const _=mv(c,n.propertyName);_&&mb($n(_),d=>{s.push(d)})}n.siblings=s}return n.siblings}function PZe(n){if(!n.resolvedProperties){const s=new Map;for(const c of GCe(n))if(ny(c)&&!(Br(c)&2097152))for(const _ of za(c))s.set(_.escapedName,_);n.resolvedProperties=ia(s.values())}return n.resolvedProperties}function IZe(n,s){if(!(n.flags&4))return n;const c=$n(n),_=s&&HCe(s,n.escapedName,void 0),d=Uie(c,_);return d===c?n:fb(n,d)}function OZe(n){const s=ut.get(n.escapedName);if(s)return s;const c=fb(n,B);return c.flags|=16777216,ut.set(n.escapedName,c),c}function FZe(n,s){const c=Us();for(const d of Ih(n))c.set(d.escapedName,IZe(d,s));if(s)for(const d of PZe(s))c.has(d.escapedName)||c.set(d.escapedName,OZe(d));const _=yc(n.symbol,c,Ve,Ve,cl(x_(n),d=>rm(d.keyType,Wu(d.type),d.isReadonly)));return _.objectFlags|=Br(n)&266240,_}function Wu(n){return Uie(n,void 0)}function Uie(n,s){if(Br(n)&196608){if(s===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=ke;else if(ny(n))c=FZe(n,s);else if(n.flags&1048576){const _=s||HCe(void 0,void 0,n.types),d=cl(n.types,h=>h.flags&98304?h:Uie(h,_));c=zr(d,dt(d,Ng)?2:1)}else n.flags&2097152?c=ca(cl(n.types,Wu)):Sv(n)&&(c=S0(n.target,cl(po(n),Wu)));return c&&s===void 0&&(n.widened=c),c||n}return n}function $J(n){let s=!1;if(Br(n)&65536){if(n.flags&1048576)if(dt(n.types,Ng))s=!0;else for(const c of n.types)$J(c)&&(s=!0);if(Sv(n))for(const c of po(n))$J(c)&&(s=!0);if(ny(n))for(const c of Ih(n)){const _=$n(c);Br(_)&65536&&($J(_)||Fe(c.valueDeclaration,p.Object_literal_s_property_0_implicitly_has_an_1_type,ni(c),kn(Wu(_))),s=!0)}}return s}function ty(n,s,c){const _=kn(Wu(s));if(Zn(n)&&!FD(Bn(n),j))return;let d;switch(n.kind){case 226:case 172:case 171:d=fe?p.Member_0_implicitly_has_an_1_type:p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const h=n;if(we(h.name)){const T=uy(h.name);if(($6(h.parent)||ig(h.parent)||sg(h.parent))&&h.parent.parameters.indexOf(h)>-1&&(Mc(h,h.name.escapedText,788968,void 0,h.name.escapedText,!0)||T&&jq(T))){const P="arg"+h.parent.parameters.indexOf(h),O=no(h.name)+(h.dotDotDotToken?"[]":"");Tf(fe,n,p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,P,O);return}}d=n.dotDotDotToken?fe?p.Rest_parameter_0_implicitly_has_an_any_type:p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:fe?p.Parameter_0_implicitly_has_an_1_type:p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(d=p.Binding_element_0_implicitly_has_an_1_type,!fe)return;break;case 324:Fe(n,p.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return;case 330:fe&&l8(n.parent)&&Fe(n.parent.tagName,p.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,_);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(fe&&!n.name){c===3?Fe(n,p.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,_):Fe(n,p.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return}d=fe?c===3?p._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:fe&&Fe(n,p.Mapped_object_type_implicitly_has_an_any_template_type);return;default:d=fe?p.Variable_0_implicitly_has_an_1_type:p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Tf(fe,n,d,no(os(n)),_)}function XJ(n,s,c){r(()=>{fe&&Br(s)&65536&&(!c||!Sse(n))&&($J(s)||ty(n,s,c))})}function Wie(n,s,c){const _=qu(n),d=qu(s),h=_7(n),T=_7(s),P=T?d-1:d,O=h?P:Math.min(_,P),$=X1(n);if($){const te=X1(s);te&&c($,te)}for(let te=0;tes.typeParameter),an(n.inferences,(s,c)=>()=>(s.isFixed||(BZe(n),QJ(n.inferences),s.isFixed=!0),rse(n,c))))}function RZe(n){return xie(an(n.inferences,s=>s.typeParameter),an(n.inferences,(s,c)=>()=>rse(n,c)))}function QJ(n){for(const s of n)s.isFixed||(s.inferredType=void 0)}function Gie(n,s,c){var _;((_=n.intraExpressionInferenceSites)!=null?_:n.intraExpressionInferenceSites=[]).push({node:s,type:c})}function BZe(n){if(n.intraExpressionInferenceSites){for(const{node:s,type:c}of n.intraExpressionInferenceSites){const _=s.kind===174?z3e(s,2):Z_(s,2);_&&Og(n.inferences,c,_)}n.intraExpressionInferenceSites=void 0}}function $ie(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function $Ce(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function jZe(n){const s=Vr(n.inferences,Fk);return s.length?Hie(an(s,$Ce),n.signature,n.flags,n.compareTypes):void 0}function Xie(n){return n&&n.mapper}function Cv(n){const s=Br(n);if(s&524288)return!!(s&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!XCe(n)&&(s&4&&(n.node||dt(po(n),Cv))||s&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||s&12583968)||n.flags&137363456&&!(n.flags&1024)&&!XCe(n)&&dt(n.types,Cv));return n.flags&138117121&&(n.objectFlags|=524288|(c?1048576:0)),c}function XCe(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const s=uc(n.aliasSymbol,265);return!!(s&&On(s.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function t7(n,s,c=0){return!!(n===s||n.flags&3145728&&dt(n.types,_=>t7(_,s,c))||c<3&&n.flags&16777216&&(t7(Z1(n),s,c+1)||t7(K1(n),s,c+1)))}function JZe(n,s){const c=Wf(n);return c?!!c.type&&t7(c.type,s):t7(Va(n),s)}function zZe(n){const s=Us();mb(n,_=>{if(!(_.flags&128))return;const d=qo(_.value),h=Pa(4,d);h.links.type=ke,_.symbol&&(h.declarations=_.symbol.declarations,h.valueDeclaration=_.symbol.valueDeclaration),s.set(d,h)});const c=n.flags&4?[rm(F,Oi,!1)]:Ve;return yc(void 0,s,Ve,Ve,c)}function QCe(n,s,c){const _=n.id+","+s.id+","+c.id;if(Oc.has(_))return Oc.get(_);const d=n.id+","+(s.target||s).id;if(gs(gc,d))return;gc.push(d);const h=VZe(n,s,c);return gc.pop(),Oc.set(_,h),h}function Qie(n){return!(Br(n)&262144)||ny(n)&&dt(za(n),s=>Qie($n(s)))||_a(n)&&dt(Q1(n),Qie)}function VZe(n,s,c){if(!(Rm(n,F)||za(n).length!==0&&Qie(n)))return;if(wf(n))return $l(YJ(po(n)[0],s,c),sC(n));if(_a(n)){const d=an(Q1(n),T=>YJ(T,s,c)),h=tm(s)&4?cl(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return qp(d,h,n.target.readonly,n.target.labeledElementDeclarations)}const _=jf(1040,void 0);return _.source=n,_.mappedType=s,_.constraintType=c,_}function UZe(n){const s=Fi(n);return s.type||(s.type=YJ(n.links.propertyType,n.links.mappedType,n.links.constraintType)),s.type}function YJ(n,s,c){const _=Cu(c.type,Vp(s)),d=Eg(s),h=$ie(_);return Og([h],n,d),YCe(h)||Jt}function*Yie(n,s,c,_){const d=za(s);for(const h of d)if(!z6e(h)&&(c||!(h.flags&16777216||rc(h)&48))){const T=qs(n,h.escapedName);if(!T)yield h;else if(_){const P=$n(h);if(P.flags&109472){const O=$n(T);O.flags&1||j_(O)===j_(P)||(yield h)}}}}function Zie(n,s,c,_){return _I(Yie(n,s,c,_))}function WZe(n,s){return!(s.target.combinedFlags&8)&&s.target.minLength>n.target.minLength||!s.target.hasRestElement&&(n.target.hasRestElement||s.target.fixedLengthix(h,d),n)===n&&ese(n,s)}return!1}function $Ze(n,s){if(n===s||s.flags&5)return!0;if(n.flags&128){const c=n.value;return!!(s.flags&8&&KCe(c,!1)||s.flags&64&&kO(c,!1)||s.flags&98816&&c===s.intrinsicName||s.flags&268435456&&ese(lu(c),s))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&la(n.types[0],s)}return la(n,s)}function e3e(n,s){return n.flags&128?t3e([n.value],Ve,s):n.flags&134217728?N7(n.texts,s.texts)?an(n.types,XZe):t3e(n.texts,n.types,s):void 0}function tse(n,s){const c=e3e(n,s);return!!c&&$i(c,(_,d)=>$Ze(_,s.types[d]))}function XZe(n){return n.flags&402653317?n:lb(["",""],[n])}function t3e(n,s,c){const _=n.length-1,d=n[0],h=n[_],T=c.texts,P=T.length-1,O=T[0],$=T[P];if(_===0&&d.length0){let Gn=Se,Nn=Te;for(;Nn=Ze(Gn).indexOf(_n,Nn),!(Nn>=0);){if(Gn++,Gn===n.length)return;Nn=0}St(Gn,Nn),Te+=_n.length}else if(Te!gs(xs,Da)):Nt,Wi?Vr(Qn,Da=>!gs(Wi,Da)):Qn]}function Nn(Nt,Qn,zi){const xs=Nt.length!!Xt(Wi));if(!xs||Qn&&xs!==Qn)return;Qn=xs}return Qn}function Cn(Nt,Qn,zi){let xs=0;if(zi&1048576){let Wi;const Da=Nt.flags&1048576?Nt.types:[Nt],oo=new Array(Da.length);let Ac=!1;for(const da of Qn)if(Xt(da))Wi=da,xs++;else for(let K_=0;K_oo[Qe]?void 0:K_);if(da.length){Te(zr(da),Wi);return}}}else for(const Wi of Qn)Xt(Wi)?xs++:Te(Nt,Wi);if(zi&2097152?xs===1:xs>0)for(const Wi of Qn)Xt(Wi)&&Ze(Nt,Wi,1)}function Un(Nt,Qn,zi){if(zi.flags&1048576){let xs=!1;for(const Wi of zi.types)xs=Un(Nt,Qn,Wi)||xs;return xs}if(zi.flags&4194304){const xs=Xt(zi.type);if(xs&&!xs.isFixed&&!ZCe(Nt)){const Wi=QCe(Nt,Qn,zi);Wi&&Ze(Wi,xs.typeParameter,Br(Nt)&262144?16:8)}return!0}if(zi.flags&262144){Ze(im(Nt,Nt.pattern?2:0),zi,32);const xs=ab(zi);if(xs&&Un(Nt,Qn,xs))return!0;const Wi=an(za(Nt),$n),Da=an(x_(Nt),oo=>oo!==vn?oo.type:jn);return Te(zr(Ki(Wi,Da)),Eg(Qn)),!0}return!1}function ws(Nt,Qn){if(Nt.flags&16777216)Te(Nt.checkType,Qn.checkType),Te(Nt.extendsType,Qn.extendsType),Te(Z1(Nt),Z1(Qn)),Te(K1(Nt),K1(Qn));else{const zi=[Z1(Qn),K1(Qn)];Kt(Nt,zi,Qn.flags,d?64:0)}}function Sr(Nt,Qn){const zi=e3e(Nt,Qn),xs=Qn.types;if(zi||$i(Qn.texts,Wi=>Wi.length===0))for(let Wi=0;Wime|qn.flags,0);if(!(Qe&4)){const me=Da.value;Qe&296&&!KCe(me,!0)&&(Qe&=-297),Qe&2112&&!kO(me,!0)&&(Qe&=-2113);const qn=E_(K_,(Rn,fr)=>fr.flags&Qe?Rn.flags&4?Rn:fr.flags&4?Da:Rn.flags&134217728?Rn:fr.flags&134217728&&tse(Da,fr)?Da:Rn.flags&268435456?Rn:fr.flags&268435456&&me===eCe(fr.symbol,me)?Da:Rn.flags&128?Rn:fr.flags&128&&fr.value===me?fr:Rn.flags&8?Rn:fr.flags&8?Hp(+me):Rn.flags&32?Rn:fr.flags&32?Hp(+me):Rn.flags&256?Rn:fr.flags&256&&fr.value===+me?fr:Rn.flags&64?Rn:fr.flags&64?GZe(me):Rn.flags&2048?Rn:fr.flags&2048&&l2(fr.value)===me?fr:Rn.flags&16?Rn:fr.flags&16?me==="true"?Ot:me==="false"?We:Sn:Rn.flags&512?Rn:fr.flags&512&&fr.intrinsicName===me?fr:Rn.flags&32768?Rn:fr.flags&32768&&fr.intrinsicName===me?fr:Rn.flags&65536?Rn:fr.flags&65536&&fr.intrinsicName===me?fr:Rn:Rn,jn);if(!(qn.flags&131072)){Te(qn,oo);continue}}}}Te(Da,oo)}}function Ts(Nt,Qn){var zi,xs;if(Br(Nt)&4&&Br(Qn)&4&&(Nt.target===Qn.target||wf(Nt)&&wf(Qn))){Nn(po(Nt),po(Qn),Fie(Nt.target));return}if(ff(Nt)&&ff(Qn)){Te(Uf(Nt),Uf(Qn)),Te(Eg(Nt),Eg(Qn));const Wi=T0(Nt),Da=T0(Qn);Wi&&Da&&Te(Wi,Da)}if(Br(Qn)&32&&!Qn.declaration.nameType){const Wi=Uf(Qn);if(Un(Nt,Qn,Wi))return}if(!qZe(Nt,Qn)){if(Sv(Nt)){if(_a(Qn)){const Wi=k0(Nt),Da=k0(Qn),oo=po(Qn),Ac=Qn.target.elementFlags;if(_a(Nt)&&CZe(Nt,Qn)){for(let Qe=0;Qe1){const s=Vr(n,nse);if(s.length){const c=zr(s,2);return Ki(Vr(n,_=>!nse(_)),[c])}}return n}function eKe(n){return n.priority&416?ca(n.contraCandidates):yZe(n.contraCandidates)}function tKe(n,s){const c=KZe(n.candidates),_=ZZe(n.typeParameter)||Tk(n.typeParameter),d=!_&&n.topLevel&&(n.isFixed||!JZe(s,n.typeParameter)),h=_?cl(c,j_):d?cl(c,kv):c,T=n.priority&416?zr(h,2):hZe(h);return Wu(T)}function rse(n,s){const c=n.inferences[s];if(!c.inferredType){let _,d;if(n.signature){const T=c.candidates?tKe(c,n.signature):void 0,P=c.contraCandidates?eKe(c):void 0;if(T||P){const O=T&&(!P||!(T.flags&131072)&&dt(c.contraCandidates,$=>jh(T,$))&&$i(n.inferences,$=>$!==c&&s_($.typeParameter)!==c.typeParameter||$i($.candidates,te=>jh(te,T))));_=O?T:P,d=O?P:T}else if(n.flags&1)_=ai;else{const O=ob(c.typeParameter);O&&(_=Ji(O,PYe(NYe(n,s),n.nonFixingMapper)))}}else _=YCe(c);c.inferredType=_||ise(!!(n.flags&2));const h=s_(c.typeParameter);if(h){const T=Ji(h,n.nonFixingMapper);(!_||_===K||!n.compareTypes(_,Uu(T,_)))&&(c.inferredType=d&&n.compareTypes(d,Uu(T,d))?d:T)}}return c.inferredType}function ise(n){return n?ke:Jt}function sse(n){const s=[];for(let c=0;cf_(s)||wp(s)||ef(s)))}function ZJ(n,s,c,_){switch(n.kind){case 80:if(!qx(n)){const T=hp(n);return T!==st?`${_?Ba(_):"-1"}|${S_(s)}|${S_(c)}|${ya(T)}`:void 0}case 110:return`0|${_?Ba(_):"-1"}|${S_(s)}|${S_(c)}`;case 235:case 217:return ZJ(n.expression,s,c,_);case 166:const d=ZJ(n.left,s,c,_);return d&&d+"."+n.right.escapedText;case 211:case 212:const h=pb(n);if(h!==void 0){const T=ZJ(n.expression,s,c,_);return T&&T+"."+h}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Ba(n)}#${S_(s)}`}}function Bl(n,s){switch(s.kind){case 217:case 235:return Bl(n,s.expression);case 226:return Kl(s)&&Bl(n,s.left)||rr(s)&&s.operatorToken.kind===28&&Bl(n,s.right)}switch(n.kind){case 236:return s.kind===236&&n.keywordToken===s.keywordToken&&n.name.escapedText===s.name.escapedText;case 80:case 81:return qx(n)?s.kind===110:s.kind===80&&hp(n)===hp(s)||(Mi(s)||Fa(s))&&X_(hp(n))===hr(s);case 110:return s.kind===110;case 108:return s.kind===108;case 235:case 217:return Bl(n.expression,s);case 211:case 212:const c=pb(n),_=Mo(s)?pb(s):void 0;return c!==void 0&&_!==void 0&&_===c&&Bl(n.expression,s.expression);case 166:return Mo(s)&&n.right.escapedText===pb(s)&&Bl(n.left,s.expression);case 226:return rr(n)&&n.operatorToken.kind===28&&Bl(n.right,s)}return!1}function pb(n){if(kr(n))return n.name.escapedText;if(No(n))return nKe(n);if(Fa(n)){const s=ri(n);return s?qo(s):void 0}if(ns(n))return""+n.parent.parameters.indexOf(n)}function r3e(n){return n.flags&8192?n.escapedName:n.flags&384?qo(""+n.value):void 0}function nKe(n){return If(n.argumentExpression)?qo(n.argumentExpression.text):Sc(n.argumentExpression)?i3e(n.argumentExpression):void 0}function i3e(n){const s=Xo(n,111551,!0);if(!s||!(lC(s)||s.flags&8))return;const c=s.valueDeclaration;if(c===void 0)return;const _=ki(c);if(_){const d=r3e(_);if(d!==void 0)return d}if(Ib(c)&&Qd(c,n)){const d=qw(c);if(d)return r3e(a_(d));if(y2(c))return _6(c.name)}}function s3e(n,s){for(;Mo(n);)if(n=n.expression,Bl(n,s))return!0;return!1}function lx(n,s){for(;c_(n);)if(n=n.expression,Bl(n,s))return!0;return!1}function n7(n,s){if(n&&n.flags&1048576){const c=s4e(n,s);if(c&&rc(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!nC($n(c))),!!c.links.isDiscriminantProperty}return!1}function a3e(n,s){let c;for(const _ of n)if(n7(s,_.escapedName)){if(c){c.push(_);continue}c=[_]}return c}function rKe(n,s){const c=new Map;let _=0;for(const d of n)if(d.flags&61603840){const h=Wc(d,s);if(h){if(!QE(h))return;let T=!1;mb(h,P=>{const O=S_(j_(P)),$=c.get(O);$?$!==Jt&&(c.set(O,Jt),T=!0):c.set(O,d)}),T||_++}}return _>=10&&_*2>=n.length?c:void 0}function TP(n){const s=n.types;if(!(s.length<10||Br(n)&32768||L0(s,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=mn(s,d=>d.flags&59506688?mn(za(d),h=>Gp($n(h))?h.escapedName:void 0):void 0),_=c&&rKe(s,c);n.keyPropertyName=_?c:"",n.constituentMap=_}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function xP(n,s){var c;const _=(c=n.constituentMap)==null?void 0:c.get(S_(j_(s)));return _!==Jt?_:void 0}function o3e(n,s){const c=TP(n),_=c&&Wc(s,c);return _&&xP(n,_)}function iKe(n,s){const c=TP(n),_=c&&Fr(s.properties,h=>h.symbol&&h.kind===303&&h.symbol.escapedName===c&&AP(h.initializer)),d=_&&$P(_.initializer);return d&&xP(n,d)}function c3e(n,s){return Bl(n,s)||s3e(n,s)}function l3e(n,s){if(n.arguments){for(const c of n.arguments)if(c3e(s,c))return!0}return!!(n.expression.kind===211&&c3e(s,n.expression.expression))}function ose(n){return(!n.id||n.id<0)&&(n.id=F$,F$++),n.id}function sKe(n,s){if(!(n.flags&1048576))return la(n,s);for(const c of n.types)if(la(c,s))return!0;return!1}function aKe(n,s){var _;if(n===s)return n;if(s.flags&131072)return s;const c=`A${S_(n)},${S_(s)}`;return(_=$y(c))!=null?_:JT(c,oKe(n,s))}function oKe(n,s){const c=ol(n,d=>sKe(s,d)),_=s.flags&512&&bv(s)?So(c,ax):c;return la(s,_)?_:n}function cse(n){const s=Up(n);return!!(s.callSignatures.length||s.constructSignatures.length||s.members.get("bind")&&jh(n,zo))}function k_(n){n.flags&467927040&&(n=B_(n)||Jt);const s=n.flags;if(s&268435460)return H?16317953:16776705;if(s&134217856){const c=s&128&&n.value==="";return H?c?12123649:7929345:c?12582401:16776705}if(s&40)return H?16317698:16776450;if(s&256){const c=n.value===0;return H?c?12123394:7929090:c?12582146:16776450}if(s&64)return H?16317188:16775940;if(s&2048){const c=UCe(n);return H?c?12122884:7928580:c?12581636:16775940}return s&16?H?16316168:16774920:s&528?H?n===We||n===Tt?12121864:7927560:n===We||n===Tt?12580616:16774920:s&524288?Br(n)&16&&Ng(n)?H?83427327:83886079:cse(n)?H?7880640:16728e3:H?7888800:16736160:s&16384?9830144:s&32768?26607360:s&65536?42917664:s&12288?H?7925520:16772880:s&67108864?H?7888800:16736160:s&131072?0:s&1048576?E_(n.types,(c,_)=>c|k_(_),0):s&2097152?cKe(n):83886079}function cKe(n){const s=Qo(n,402784252);let c=0,_=134217727;for(const d of n.types)if(!(s&&d.flags&524288)){const h=k_(d);c|=h,_&=h}return c&8256|_&134209471}function Hf(n,s){return ol(n,c=>(k_(c)&s)!==0)}function db(n,s){const c=_3e(Hf(H&&n.flags&2?Rf:n,s));if(H)switch(s){case 524288:return So(c,_=>k_(_)&65536?ca([_,k_(_)&131072&&!Qo(c,65536)?zr([Oi,W]):Oi]):_);case 1048576:return So(c,_=>k_(_)&131072?ca([_,k_(_)&65536&&!Qo(c,32768)?zr([Oi,Pt]):Oi]):_);case 2097152:case 4194304:return So(c,_=>k_(_)&262144?DZe(_):_)}return c}function _3e(n){return n===Rf?Jt:n}function lse(n,s){return s?zr([Dt(n),a_(s)]):n}function u3e(n,s){var c;const _=C0(s);if(!rp(_))return $e;const d=ip(_);return Wc(n,d)||r7((c=nx(n,d))==null?void 0:c.type)||$e}function f3e(n,s){return Df(n,aC)&&vZe(n,s)||r7(P0(65,n,Pt,void 0))||$e}function r7(n){return n&&(j.noUncheckedIndexedAccess?zr([n,z]):n)}function p3e(n){return $l(P0(65,n,Pt,void 0)||$e)}function lKe(n){return n.parent.kind===209&&_se(n.parent)||n.parent.kind===303&&_se(n.parent.parent)?lse(SP(n),n.right):a_(n.right)}function _se(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function _Ke(n,s){return f3e(SP(n),n.elements.indexOf(s))}function uKe(n){return p3e(SP(n.parent))}function d3e(n){return u3e(SP(n.parent),n.name)}function fKe(n){return lse(d3e(n),n.objectAssignmentInitializer)}function SP(n){const{parent:s}=n;switch(s.kind){case 249:return F;case 250:return eI(s)||$e;case 226:return lKe(s);case 220:return Pt;case 209:return _Ke(s,n);case 230:return uKe(s);case 303:return d3e(s);case 304:return fKe(s)}return $e}function pKe(n){const s=n.parent,c=g3e(s.parent),_=s.kind===206?u3e(c,n.propertyName||n.name):n.dotDotDotToken?p3e(c):f3e(c,s.elements.indexOf(n));return lse(_,n.initializer)}function m3e(n){return Jr(n).resolvedType||a_(n)}function dKe(n){return n.initializer?m3e(n.initializer):n.parent.parent.kind===249?F:n.parent.parent.kind===250&&eI(n.parent.parent)||$e}function g3e(n){return n.kind===260?dKe(n):pKe(n)}function mKe(n){return n.kind===260&&n.initializer&&R_(n.initializer)||n.kind!==208&&n.parent.kind===226&&R_(n.parent.right)}function Ev(n){switch(n.kind){case 217:return Ev(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return Ev(n.left);case 28:return Ev(n.right)}}return n}function h3e(n){const{parent:s}=n;return s.kind===217||s.kind===226&&s.operatorToken.kind===64&&s.left===n||s.kind===226&&s.operatorToken.kind===28&&s.right===n?h3e(s):n}function gKe(n){return n.kind===296?j_(a_(n.expression)):jn}function KJ(n){const s=Jr(n);if(!s.switchTypes){s.switchTypes=[];for(const c of n.caseBlock.clauses)s.switchTypes.push(gKe(c))}return s.switchTypes}function y3e(n){if(dt(n.caseBlock.clauses,c=>c.kind===296&&!Qa(c.expression)))return;const s=[];for(const c of n.caseBlock.clauses){const _=c.kind===296?c.expression.text:void 0;s.push(_&&!gs(s,_)?_:void 0)}return s}function hKe(n,s){return n.flags&1048576?!mn(n.types,c=>!gs(s,c)):gs(s,n)}function i7(n,s){return!!(n===s||n.flags&131072||s.flags&1048576&&yKe(n,s))}function yKe(n,s){if(n.flags&1048576){for(const c of n.types)if(!Lh(s.types,c))return!1;return!0}return n.flags&1056&&_J(n)===s?!0:Lh(s.types,n)}function mb(n,s){return n.flags&1048576?mn(n.types,s):s(n)}function Fg(n,s){return n.flags&1048576?dt(n.types,s):s(n)}function Df(n,s){return n.flags&1048576?$i(n.types,s):s(n)}function vKe(n,s){return n.flags&3145728?$i(n.types,s):s(n)}function ol(n,s){if(n.flags&1048576){const c=n.types,_=Vr(c,s);if(_===c)return n;const d=n.origin;let h;if(d&&d.flags&1048576){const T=d.types,P=Vr(T,O=>!!(O.flags&1048576)||s(O));if(T.length-P.length===c.length-_.length){if(P.length===1)return P[0];h=_ie(1048576,P)}}return fie(_,n.objectFlags&16809984,void 0,void 0,h)}return n.flags&131072||s(n)?n:jn}function ez(n,s){return ol(n,c=>c!==s)}function bKe(n){return n.flags&1048576?n.types.length:1}function So(n,s,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return s(n);const _=n.origin,d=_&&_.flags&1048576?_.types:n.types;let h,T=!1;for(const P of d){const O=P.flags&1048576?So(P,s,c):s(P);T||(T=P!==O),O&&(h?h.push(O):h=[O])}return T?h&&zr(h,c?0:1):n}function v3e(n,s,c,_){return n.flags&1048576&&c?zr(an(n.types,s),1,c,_):So(n,s)}function cC(n,s){return ol(n,c=>(c.flags&s)!==0)}function b3e(n,s){return Qo(n,134217804)&&Qo(s,402655616)?So(n,c=>c.flags&4?cC(s,402653316):wk(c)&&!Qo(s,402653188)?cC(s,128):c.flags&8?cC(s,264):c.flags&64?cC(s,2112):c):n}function Nk(n){return n.flags===0}function gb(n){return n.flags===0?n.type:n}function Pk(n,s){return s?{flags:0,type:n.flags&131072?ai:n}:n}function TKe(n){const s=jf(256);return s.elementType=n,s}function use(n){return ze[n.id]||(ze[n.id]=TKe(n))}function T3e(n,s){const c=KE(zh($P(s)));return i7(c,n.elementType)?n:use(zr([n.elementType,c]))}function xKe(n){return n.flags&131072?gt:$l(n.flags&1048576?zr(n.types,2):n)}function SKe(n){return n.finalArrayType||(n.finalArrayType=xKe(n.elementType))}function kP(n){return Br(n)&256?SKe(n):n}function kKe(n){return Br(n)&256?n.elementType:jn}function CKe(n){let s=!1;for(const c of n)if(!(c.flags&131072)){if(!(Br(c)&256))return!1;s=!0}return s}function x3e(n){const s=h3e(n),c=s.parent,_=kr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&we(c.name)&&uq(c.name)),d=c.kind===212&&c.expression===s&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!Km(c.parent)&&kl(a_(c.argumentExpression),296);return _||d}function EKe(n){return(Mi(n)||Is(n)||mf(n)||ns(n))&&!!(Vl(n)||Zn(n)&&r1(n)&&n.initializer&&j6(n.initializer)&&Kf(n.initializer))}function tz(n,s){if(n=Rc(n),n.flags&8752)return $n(n);if(n.flags&7){if(rc(n)&262144){const _=n.links.syntheticOrigin;if(_&&tz(_))return $n(n)}const c=n.valueDeclaration;if(c){if(EKe(c))return $n(n);if(Mi(c)&&c.parent.parent.kind===250){const _=c.parent.parent,d=CP(_.expression,void 0);if(d){const h=_.awaitModifier?15:13;return P0(h,d,Pt,void 0)}}s&&fa(s,yr(c,p._0_needs_an_explicit_type_annotation,ni(n)))}}}function CP(n,s){if(!(n.flags&67108864))switch(n.kind){case 80:const c=X_(hp(n));return tz(c,s);case 110:return qKe(n);case 108:return gse(n);case 211:{const _=CP(n.expression,s);if(_){const d=n.name;let h;if(Ei(d)){if(!_.symbol)return;h=qs(_,_D(_.symbol,d.escapedText))}else h=qs(_,d.escapedText);return h&&tz(h,s)}return}case 217:return CP(n.expression,s)}}function nz(n){const s=Jr(n);let c=s.effectsSignature;if(c===void 0){let _;n.parent.kind===244?_=CP(n.expression,void 0):n.expression.kind!==108&&(c_(n)?_=yd(YE(Xi(n.expression),n.expression),n.expression):_=uC(n.expression));const d=As(_&&Y_(_)||Jt,0),h=d.length===1&&!d[0].typeParameters?d[0]:dt(d,S3e)?pC(n):void 0;c=s.effectsSignature=h&&S3e(h)?h:Ce}return c===Ce?void 0:c}function S3e(n){return!!(Wf(n)||n.declaration&&(Sk(n.declaration)||Jt).flags&131072)}function wKe(n,s){if(n.kind===1||n.kind===3)return s.arguments[n.parameterIndex];const c=uo(s.expression);return Mo(c)?uo(c.expression):void 0}function DKe(n){const s=On(n,oW),c=Bn(n),_=gm(c,s.statements.pos);xa.add(vl(c,_.start,_.length,p.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function EP(n){const s=rz(n,!1);return cr=n,wr=s,s}function wP(n){const s=uo(n,!0);return s.kind===97||s.kind===226&&(s.operatorToken.kind===56&&(wP(s.left)||wP(s.right))||s.operatorToken.kind===57&&wP(s.left)&&wP(s.right))}function rz(n,s){for(;;){if(n===cr)return wr;const c=n.flags;if(c&4096){if(!s){const _=ose(n),d=jT[_];return d!==void 0?d:jT[_]=rz(n,!0)}s=!1}if(c&368)n=n.antecedent;else if(c&512){const _=nz(n.node);if(_){const d=Wf(_);if(d&&d.kind===3&&!d.type){const h=n.node.arguments[d.parameterIndex];if(h&&wP(h))return!1}if(Va(_).flags&131072)return!1}n=n.antecedent}else{if(c&4)return dt(n.antecedents,_=>rz(_,!1));if(c&8){const _=n.antecedents;if(_===void 0||_.length===0)return!1;n=_[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&eEe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){cr=void 0;const _=n.target,d=_.antecedents;_.antecedents=n.antecedents;const h=rz(n.antecedent,!1);return _.antecedents=d,h}else return!(c&1)}}}function iz(n,s){for(;;){const c=n.flags;if(c&4096){if(!s){const _=ose(n),d=KS[_];return d!==void 0?d:KS[_]=iz(n,!0)}s=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return $i(n.antecedents,_=>iz(_,!1));if(c&8)n=n.antecedents[0];else if(c&1024){const _=n.target,d=_.antecedents;_.antecedents=n.antecedents;const h=iz(n.antecedent,!1);return _.antecedents=d,h}else return!!(c&1)}}}function k3e(n){switch(n.kind){case 110:return!0;case 80:if(!qx(n)){const s=hp(n);return lC(s)||sH(s)&&!sz(s)}break;case 211:case 212:return k3e(n.expression)&&Xp(Jr(n).resolvedSymbol||st)}return!1}function Vh(n,s,c=s,_,d=(h=>(h=Hr(n,nD))==null?void 0:h.flowNode)()){let h,T=!1,P=0;if(Hi)return $e;if(!d)return s;Hn++;const O=jr,$=gb(Se(d));jr=O;const te=Br($)&256&&x3e(n)?gt:kP($);if(te===ps||n.parent&&n.parent.kind===235&&!(te.flags&131072)&&Hf(te,2097152).flags&131072)return s;return te===Ln?Jt:te;function ce(){return T?h:(T=!0,h=ZJ(n,s,c,_))}function Se(it){var wt;if(P===2e3)return(wt=ci)==null||wt.instant(ci.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:it.id}),Hi=!0,DKe(n),$e;P++;let $t;for(;;){const Mt=it.flags;if(Mt&4096){for(let Dn=O;Dn=0&&$t.parameterIndex!(Dn.flags&163840)):wt.kind===221&&lx(wt.expression,n)&&(Mt=Wi(Mt,it.switchStatement,it.clauseStart,it.clauseEnd,Dn=>!(Dn.flags&131072||Dn.flags&128&&Dn.value==="undefined"))));const en=Cn(wt,Mt);en&&(Mt=Sr(Mt,en,it.switchStatement,it.clauseStart,it.clauseEnd))}return Pk(Mt,Nk($t))}function Ht(it){const wt=[];let $t=!1,Mt=!1,en;for(const Dn of it.antecedents){if(!en&&Dn.flags&128&&Dn.clauseStart===Dn.clauseEnd){en=Dn;continue}const Ai=Se(Dn),Ni=gb(Ai);if(Ni===s&&s===c)return Ni;Gf(wt,Ni),i7(Ni,c)||($t=!0),Nk(Ai)&&(Mt=!0)}if(en){const Dn=Se(en),Ai=gb(Dn);if(!(Ai.flags&131072)&&!gs(wt,Ai)&&!eEe(en.switchStatement)){if(Ai===s&&s===c)return Ai;wt.push(Ai),i7(Ai,c)||($t=!0),Nk(Dn)&&(Mt=!0)}}return Pk(Xt(wt,$t?2:1),Mt)}function Mn(it){const wt=ose(it),$t=LT[wt]||(LT[wt]=new Map),Mt=ce();if(!Mt)return s;const en=$t.get(Mt);if(en)return en;for(let sn=nn;sn{const sn=fv(Bs,Mt);return!(sn.flags&131072)&&!(Ni.flags&131072)&&dP(Ni,sn)})}function ws(it,wt,$t,Mt,en){if(($t===37||$t===38)&&it.flags&1048576){const Dn=TP(it);if(Dn&&Dn===pb(wt)){const Ai=xP(it,a_(Mt));if(Ai)return $t===(en?37:38)?Ai:Gp(Wc(Ai,Dn)||Jt)?ez(it,Ai):it}}return Un(it,wt,Dn=>Qn(Dn,$t,Mt,en))}function Sr(it,wt,$t,Mt,en){if(MtxP(it,Ni)||Jt));if(Ai!==Jt)return Ai}return Un(it,wt,Dn=>Da(Dn,$t,Mt,en))}function Ts(it,wt,$t){if(Bl(n,wt))return db(it,$t?4194304:8388608);H&&$t&&lx(wt,n)&&(it=db(it,2097152));const Mt=Cn(wt,it);return Mt?Un(it,Mt,en=>Hf(en,$t?4194304:8388608)):it}function cc(it,wt,$t){const Mt=qs(it,wt);return Mt?!!(Mt.flags&16777216||rc(Mt)&48)||$t:!!nx(it,wt)||!$t}function uu(it,wt,$t){const Mt=ip(wt);if(Fg(it,Dn=>cc(Dn,Mt,!0)))return ol(it,Dn=>cc(Dn,Mt,$t));if($t){const Dn=OQe();if(Dn)return ca([it,Ck(Dn,[wt,Jt])])}return it}function Hu(it,wt,$t){switch(wt.operatorToken.kind){case 64:case 76:case 77:case 78:return Ts(gi(it,wt.right,$t),wt.left,$t);case 35:case 36:case 37:case 38:const Mt=wt.operatorToken.kind,en=Ev(wt.left),Dn=Ev(wt.right);if(en.kind===221&&Qa(Dn))return zi(it,en,Mt,Dn,$t);if(Dn.kind===221&&Qa(en))return zi(it,Dn,Mt,en,$t);if(Bl(n,en))return Qn(it,Mt,Dn,$t);if(Bl(n,Dn))return Qn(it,Mt,en,$t);H&&(lx(en,n)?it=Nt(it,Mt,Dn,$t):lx(Dn,n)&&(it=Nt(it,Mt,en,$t)));const Ai=Cn(en,it);if(Ai)return ws(it,Ai,Mt,Dn,$t);const Ni=Cn(Dn,it);if(Ni)return ws(it,Ni,Mt,en,$t);if(K_(en))return Qe(it,Mt,Dn,$t);if(K_(Dn))return Qe(it,Mt,en,$t);break;case 104:return me(it,wt,$t);case 103:if(Ei(wt.left))return am(it,wt,$t);const Bs=Ev(wt.right);if(ZE(it)&&Mo(n)&&Bl(n.expression,Bs)){const sn=a_(wt.left);if(rp(sn)&&pb(n)===ip(sn))return Hf(it,$t?524288:65536)}if(Bl(n,Bs)){const sn=a_(wt.left);if(rp(sn))return uu(it,sn,$t)}break;case 28:return gi(it,wt.right,$t);case 56:return $t?gi(gi(it,wt.left,!0),wt.right,!0):zr([gi(it,wt.left,!1),gi(it,wt.right,!1)]);case 57:return $t?zr([gi(it,wt.left,!0),gi(it,wt.right,!0)]):gi(gi(it,wt.left,!1),wt.right,!1)}return it}function am(it,wt,$t){const Mt=Ev(wt.right);if(!Bl(n,Mt))return it;E.assertNode(wt.left,Ei);const en=gz(wt.left);if(en===void 0)return it;const Dn=en.parent,Ai=$c(E.checkDefined(en.valueDeclaration,"should always have a declaration"))?$n(Dn):go(Dn);return Rn(it,Ai,$t,!0)}function Nt(it,wt,$t,Mt){const en=wt===35||wt===37,Dn=wt===35||wt===36?98304:32768,Ai=a_($t);return en!==Mt&&Df(Ai,Bs=>!!(Bs.flags&Dn))||en===Mt&&Df(Ai,Bs=>!(Bs.flags&(3|Dn)))?db(it,2097152):it}function Qn(it,wt,$t,Mt){if(it.flags&1)return it;(wt===36||wt===38)&&(Mt=!Mt);const en=a_($t),Dn=wt===35||wt===36;if(en.flags&98304){if(!H)return it;const Ai=Dn?Mt?262144:2097152:en.flags&65536?Mt?131072:1048576:Mt?65536:524288;return db(it,Ai)}if(Mt){if(!Dn&&(it.flags&2||Fg(it,Pg))){if(en.flags&469893116||Pg(en))return en;if(en.flags&524288)return Ws}const Ai=ol(it,Ni=>dP(Ni,en)||Dn&&AZe(Ni,en));return b3e(Ai,en)}return Gp(en)?ol(it,Ai=>!(jCe(Ai)&&dP(Ai,en))):it}function zi(it,wt,$t,Mt,en){($t===36||$t===38)&&(en=!en);const Dn=Ev(wt.expression);if(!Bl(n,Dn)){H&&lx(Dn,n)&&en===(Mt.text!=="undefined")&&(it=db(it,2097152));const Ai=Cn(Dn,it);return Ai?Un(it,Ai,Ni=>xs(Ni,Mt,en)):it}return xs(it,Mt,en)}function xs(it,wt,$t){return $t?oo(it,wt.text):db(it,vL.get(wt.text)||32768)}function Wi(it,wt,$t,Mt,en){return $t!==Mt&&$i(KJ(wt).slice($t,Mt),en)?Hf(it,2097152):it}function Da(it,wt,$t,Mt){const en=KJ(wt);if(!en.length)return it;const Dn=en.slice($t,Mt),Ai=$t===Mt||gs(Dn,jn);if(it.flags&2&&!Ai){let dr;for(let ti=0;tidP(Ni,dr)),Ni);if(!Ai)return Bs;const sn=ol(it,dr=>!(jCe(dr)&&gs(en,j_(TZe(dr)))));return Bs.flags&131072?sn:zr([Bs,sn])}function oo(it,wt){switch(wt){case"string":return Ac(it,F,1);case"number":return Ac(it,ye,2);case"bigint":return Ac(it,Oe,4);case"boolean":return Ac(it,Sn,8);case"symbol":return Ac(it,ir,16);case"object":return it.flags&1?it:zr([Ac(it,Ws,32),Ac(it,W,131072)]);case"function":return it.flags&1?it:Ac(it,zo,64);case"undefined":return Ac(it,Pt,65536)}return Ac(it,Ws,128)}function Ac(it,wt,$t){return So(it,Mt=>hd(Mt,wt,bf)?k_(Mt)&$t?Mt:jn:jh(wt,Mt)?wt:k_(Mt)&$t?ca([Mt,wt]):jn)}function da(it,wt,$t,Mt){const en=y3e(wt);if(!en)return it;const Dn=qc(wt.caseBlock.clauses,Bs=>Bs.kind===297);if($t===Mt||Dn>=$t&&Dn(k_(sn)&Bs)===Bs)}const Ni=en.slice($t,Mt);return zr(an(Ni,Bs=>Bs?oo(it,Bs):jn))}function K_(it){return(kr(it)&&lr(it.name)==="constructor"||No(it)&&Qa(it.argumentExpression)&&it.argumentExpression.text==="constructor")&&Bl(n,it.expression)}function Qe(it,wt,$t,Mt){if(Mt?wt!==35&&wt!==37:wt!==36&&wt!==38)return it;const en=a_($t);if(!jae(en)&&!hn(en))return it;const Dn=qs(en,"prototype");if(!Dn)return it;const Ai=$n(Dn),Ni=Wa(Ai)?void 0:Ai;if(!Ni||Ni===Uc||Ni===zo)return it;if(Wa(it))return Ni;return ol(it,sn=>Bs(sn,Ni));function Bs(sn,dr){return sn.flags&524288&&Br(sn)&1||dr.flags&524288&&Br(dr)&1?sn.symbol===dr.symbol:jh(sn,dr)}}function me(it,wt,$t){const Mt=Ev(wt.left);if(!Bl(n,Mt))return $t&&H&&lx(Mt,n)?db(it,2097152):it;const en=a_(wt.right);if(!xv(en,zo))return it;const Dn=So(en,qn);return Wa(it)&&(Dn===Uc||Dn===zo)||!$t&&!(Dn.flags&524288&&!Pg(Dn))?it:Rn(it,Dn,$t,!0)}function qn(it){const wt=Wc(it,"prototype");if(wt&&!Wa(wt))return wt;const $t=As(it,1);return $t.length?zr(an($t,Mt=>Va(zE(Mt)))):Oi}function Rn(it,wt,$t,Mt){var Dn;const en=it.flags&1048576?`N${S_(it)},${S_(wt)},${($t?1:0)|(Mt?2:0)}`:void 0;return(Dn=$y(en))!=null?Dn:JT(en,fr(it,wt,$t,Mt))}function fr(it,wt,$t,Mt){if(!$t){if(Mt)return ol(it,Bs=>!xv(Bs,wt));const Ni=Rn(it,wt,!0,!1);return ol(it,Bs=>!i7(Bs,Ni))}if(it.flags&3)return wt;const en=Mt?xv:jh,Dn=it.flags&1048576?TP(it):void 0,Ai=So(wt,Ni=>{const Bs=Dn&&Wc(Ni,Dn),sn=Bs&&xP(it,Bs),dr=So(sn||it,Mt?ti=>xv(ti,Ni)?ti:xv(Ni,ti)?Ni:jn:ti=>xCe(ti,Ni)?ti:xCe(Ni,ti)?Ni:jh(ti,Ni)?ti:jh(Ni,ti)?Ni:jn);return dr.flags&131072?So(it,ti=>Qo(ti,465829888)&&en(Ni,B_(ti)||Jt)?ca([ti,Ni]):jn):dr});return Ai.flags&131072?jh(wt,it)?wt:la(it,wt)?it:la(wt,it)?wt:ca([it,wt]):Ai}function vr(it,wt,$t){if(l3e(wt,n)){const Mt=$t||!Eb(wt)?nz(wt):void 0,en=Mt&&Wf(Mt);if(en&&(en.kind===0||en.kind===1))return Zi(it,en,wt,$t)}if(ZE(it)&&Mo(n)&&kr(wt.expression)){const Mt=wt.expression;if(Bl(n.expression,Ev(Mt.expression))&&we(Mt.name)&&Mt.name.escapedText==="hasOwnProperty"&&wt.arguments.length===1){const en=wt.arguments[0];if(Qa(en)&&pb(n)===qo(en.text))return Hf(it,$t?524288:65536)}}return it}function Zi(it,wt,$t,Mt){if(wt.type&&!(Wa(it)&&(wt.type===Uc||wt.type===zo))){const en=wKe(wt,$t);if(en){if(Bl(n,en))return Rn(it,wt.type,Mt,!1);H&&Mt&&lx(en,n)&&!(k_(wt.type)&65536)&&(it=db(it,2097152));const Dn=Cn(en,it);if(Dn)return Un(it,Dn,Ai=>Rn(Ai,wt.type,Mt,!1))}}return it}function gi(it,wt,$t){if(t9(wt)||rr(wt.parent)&&(wt.parent.operatorToken.kind===61||wt.parent.operatorToken.kind===78)&&wt.parent.left===wt)return pr(it,wt,$t);switch(wt.kind){case 80:if(!Bl(n,wt)&&N<5){const Mt=hp(wt);if(lC(Mt)){const en=Mt.valueDeclaration;if(en&&Mi(en)&&!en.type&&en.initializer&&k3e(n)){N++;const Dn=gi(it,en.initializer,$t);return N--,Dn}}}case 110:case 108:case 211:case 212:return Ts(it,wt,$t);case 213:return vr(it,wt,$t);case 217:case 235:return gi(it,wt.expression,$t);case 226:return Hu(it,wt,$t);case 224:if(wt.operator===54)return gi(it,wt.operand,!$t);break}return it}function pr(it,wt,$t){if(Bl(n,wt))return db(it,$t?2097152:262144);const Mt=Cn(wt,it);return Mt?Un(it,Mt,en=>Hf(en,$t?2097152:262144)):it}}function AKe(n,s){if(n=X_(n),(s.kind===80||s.kind===81)&&(x3(s)&&(s=s.parent),qg(s)&&(!Km(s)||w3(s)))){const c=WJ(a_(s));if(X_(Jr(s).resolvedSymbol)===n)return c}return Gg(s)&&H0(s.parent)&&gp(s.parent)?sJ(s.parent.symbol):H1(n)}function s7(n){return On(n.parent,s=>ks(s)&&!Mb(s)||s.kind===268||s.kind===312||s.kind===172)}function sz(n){if(!n.valueDeclaration)return!1;const s=hm(n.valueDeclaration).parent,c=Jr(s);return c.flags&131072||(c.flags|=131072,NKe(s)||C3e(s)),n.isAssigned||!1}function NKe(n){return!!On(n.parent,s=>(ks(s)||Ny(s))&&!!(Jr(s).flags&131072))}function C3e(n){if(n.kind===80){if(Km(n)){const s=hp(n);sH(s)&&(s.isAssigned=!0)}}else ys(n,C3e)}function lC(n){return n.flags&3&&(Nse(n)&6)!==0}function PKe(n){const s=Jr(n);if(s.parameterInitializerContainsUndefined===void 0){if(!zf(n,9))return tx(n.symbol),!0;const c=!!(k_(p7(n,0))&16777216);if(!Kd())return tx(n.symbol),!0;s.parameterInitializerContainsUndefined=c}return s.parameterInitializerContainsUndefined}function IKe(n,s){return H&&s.kind===169&&s.initializer&&k_(n)&16777216&&!PKe(s)?Hf(n,524288):n}function OKe(n,s){const c=s.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===s||c.kind===212&&c.expression===s&&!(Fg(n,w3e)&&Y1(a_(c.argumentExpression)))}function E3e(n){return n.flags&2097152?dt(n.types,E3e):!!(n.flags&465829888&&wg(n).flags&1146880)}function w3e(n){return n.flags&2097152?dt(n.types,w3e):!!(n.flags&465829888&&!Qo(wg(n),98304))}function FKe(n,s){const c=(we(n)||kr(n)||No(n))&&!((Jd(n.parent)||eT(n.parent))&&n.parent.tagName===n)&&(s&&s&64?Z_(n,8):Z_(n,void 0));return c&&!nC(c)}function fse(n,s,c){return!(c&&c&2)&&Fg(n,E3e)&&(OKe(n,s)||FKe(s,c))?So(n,wg):n}function D3e(n){return!!On(n,s=>{const c=s.parent;return c===void 0?"quit":dc(c)?c.expression===s&&Sc(s):p_(c)?c.name===s||c.propertyName===s:!1})}function az(n,s){if(!!at&&dp(n,111551)&&!Vb(s)){const c=gl(n);Su(n,!0)&1160127&&(ed(j)||Hb(j)&&D3e(s)||!S7(X_(c))?vg(n):q2(n))}}function LKe(n,s){var c;const _=$n(n),d=n.valueDeclaration;if(d){if(Fa(d)&&!d.initializer&&!d.dotDotDotToken&&d.parent.elements.length>=2){const h=d.parent.parent;if(h.kind===260&&Ov(d)&6||h.kind===169){const T=Jr(h);if(!(T.flags&4194304)){T.flags|=4194304;const P=de(h,0),O=P&&So(P,wg);if(T.flags&=-4194305,O&&O.flags&1048576&&!(h.kind===169&&sz(n))){const $=d.parent,te=Vh($,O,O,void 0,s.flowNode);return te.flags&131072?jn:ao(d,te)}}}}if(ns(d)&&!d.type&&!d.initializer&&!d.dotDotDotToken){const h=d.parent;if(h.parameters.length>=2&&IJ(h)){const T=o7(h);if(T&&T.parameters.length===1&&d_(T)){const P=Q4(Ji($n(T.parameters[0]),(c=Dv(h))==null?void 0:c.nonFixingMapper));if(P.flags&1048576&&Df(P,_a)&&!sz(n)){const O=Vh(h,P,P,void 0,s.flowNode),$=h.parameters.indexOf(d)-(i2(h)?1:0);return Cu(O,Hp($))}}}}}return _}function MKe(n,s){if(qx(n))return DP(n);const c=hp(n);if(c===st)return $e;if(c===tt){if(f8e(n))return Fe(n,p.arguments_cannot_be_referenced_in_property_initializers),$e;const Ht=df(n);return ee<2&&(Ht.kind===219?Fe(n,p.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Mr(Ht,512)&&Fe(n,p.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Jr(Ht).flags|=512,$n(c)}BKe(n)&&az(c,n);const _=X_(c),d=Oae(_,n);up(d)&&die(n,d)&&d.declarations&&_0(n,d.declarations,n.escapedText);let h=_.valueDeclaration;if(h&&_.flags&32&&ei(h)&&h.name!==n){let Ht=tu(n,!1,!1);for(;Ht.kind!==312&&Ht.parent!==h;)Ht=tu(Ht,!1,!1);Ht.kind!==312&&(Jr(h).flags|=262144,Jr(Ht).flags|=262144,Jr(n).flags|=536870912)}zKe(n,c);let T=LKe(_,n);const P=jb(n);if(P){if(!(_.flags&3)&&!(Zn(n)&&_.flags&512)){const Ht=_.flags&384?p.Cannot_assign_to_0_because_it_is_an_enum:_.flags&32?p.Cannot_assign_to_0_because_it_is_a_class:_.flags&1536?p.Cannot_assign_to_0_because_it_is_a_namespace:_.flags&16?p.Cannot_assign_to_0_because_it_is_a_function:_.flags&2097152?p.Cannot_assign_to_0_because_it_is_an_import:p.Cannot_assign_to_0_because_it_is_not_a_variable;return Fe(n,Ht,ni(c)),$e}if(Xp(_))return _.flags&3?Fe(n,p.Cannot_assign_to_0_because_it_is_a_constant,ni(c)):Fe(n,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ni(c)),$e}const O=_.flags&2097152;if(_.flags&3){if(P===1)return T}else if(O)h=pp(c);else return T;if(!h)return T;T=fse(T,n,s);const $=hm(h).kind===169,te=s7(h);let ce=s7(n);const Se=ce!==te,Te=n.parent&&n.parent.parent&&ih(n.parent)&&_se(n.parent.parent),Ze=c.flags&134217728,St=T===ft||T===gt,Kt=St&&n.parent.kind===235;for(;ce!==te&&(ce.kind===218||ce.kind===219||A9(ce))&&(lC(_)&&T!==gt||$&&!sz(_));)ce=s7(ce);const _n=$||O||Se||Te||Ze||RKe(n,h)||T!==ft&&T!==gt&&(!H||(T.flags&16387)!==0||Vb(n)||ase(n)||n.parent.kind===281)||n.parent.kind===235||h.kind===260&&h.exclamationToken||h.flags&33554432,Gn=Kt?Pt:_n?$?IKe(T,h):T:St?Pt:A0(T),Nn=Kt?Ig(Vh(n,T,Gn,ce)):Vh(n,T,Gn,ce);if(!x3e(n)&&(T===ft||T===gt)){if(Nn===ft||Nn===gt)return fe&&(Fe(os(h),p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ni(c),kn(Nn)),Fe(n,p.Variable_0_implicitly_has_an_1_type,ni(c),kn(Nn))),x7(Nn)}else if(!_n&&!rC(T)&&rC(Nn))return Fe(n,p.Variable_0_is_used_before_being_assigned,ni(c)),T;return P?zh(Nn):Nn}function RKe(n,s){if(Fa(s)){const c=On(n,Fa);return c&&hm(c)===hm(s)}}function BKe(n){var s;const c=n.parent;if(c){if(kr(c)&&c.expression===n||p_(c)&&c.isTypeOnly)return!1;const _=(s=c.parent)==null?void 0:s.parent;if(_&&Yc(_)&&_.isTypeOnly)return!1}return!0}function jKe(n,s){return!!On(n,c=>c===s?"quit":ks(c)||c.parent&&Is(c.parent)&&!$c(c.parent)&&c.parent.initializer===c)}function JKe(n,s){return On(n,c=>c===s?"quit":c===s.initializer||c===s.condition||c===s.incrementor||c===s.statement)}function pse(n){return On(n,s=>!s||fq(s)?"quit":t1(s,!1))}function zKe(n,s){if(ee>=2||(s.flags&34)===0||!s.valueDeclaration||Ri(s.valueDeclaration)||s.valueDeclaration.parent.kind===299)return;const c=mm(s.valueDeclaration),_=jKe(n,c),d=pse(c);if(d){if(_){let h=!0;if(Kb(c)){const T=vy(s.valueDeclaration,261);if(T&&T.parent===c){const P=JKe(n.parent,c);if(P){const O=Jr(P);O.flags|=8192;const $=O.capturedBlockScopeBindings||(O.capturedBlockScopeBindings=[]);Gf($,s),P===c.initializer&&(h=!1)}}}h&&(Jr(d).flags|=4096)}if(Kb(c)){const h=vy(s.valueDeclaration,261);h&&h.parent===c&&UKe(n,c)&&(Jr(s.valueDeclaration).flags|=65536)}Jr(s.valueDeclaration).flags|=32768}_&&(Jr(s.valueDeclaration).flags|=16384)}function VKe(n,s){const c=Jr(n);return!!c&&gs(c.capturedBlockScopeBindings,hr(s))}function UKe(n,s){let c=n;for(;c.parent.kind===217;)c=c.parent;let _=!1;if(Km(c))_=!0;else if(c.parent.kind===224||c.parent.kind===225){const d=c.parent;_=d.operator===46||d.operator===47}return _?!!On(c,d=>d===s?"quit":d===s.statement):!1}function dse(n,s){if(Jr(n).flags|=2,s.kind===172||s.kind===176){const c=s.parent;Jr(c).flags|=4}else Jr(s).flags|=4}function A3e(n){return p6(n)?n:ks(n)?void 0:ys(n,A3e)}function N3e(n){const s=hr(n),c=go(s);return ui(c)===ge}function P3e(n,s,c){const _=s.parent;r2(_)&&!N3e(_)&&nD(n)&&n.flowNode&&!iz(n.flowNode,!1)&&Fe(n,c)}function WKe(n,s){Is(s)&&$c(s)&&Z&&s.initializer&&dw(s.initializer,n.pos)&&Of(s.parent)&&Fe(n,p.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function DP(n){const s=Vb(n);let c=tu(n,!0,!0),_=!1,d=!1;for(c.kind===176&&P3e(n,c,p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=tu(c,!1,!d),_=!0),c.kind===167){c=tu(c,!_,!1),d=!0;continue}break}if(WKe(n,c),d)Fe(n,p.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:Fe(n,p.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Fe(n,p.this_cannot_be_referenced_in_current_location);break;case 176:I3e(n,c)&&Fe(n,p.this_cannot_be_referenced_in_constructor_arguments);break}!s&&_&&ee<2&&dse(n,c);const h=mse(n,!0,c);if(G){const T=$n(Ge);if(h===T&&_)Fe(n,p.The_containing_arrow_function_captures_the_global_value_of_this);else if(!h){const P=Fe(n,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Ri(c)){const O=mse(c);O&&O!==T&&fa(P,yr(c,p.An_outer_value_of_this_is_shadowed_by_this_container))}}}return h||ke}function mse(n,s=!0,c=tu(n,!1,!1)){const _=Zn(n);if(ks(c)&&(!yse(n)||i2(c))){let d=hre(c)||_&&GKe(c);if(!d){const h=HKe(c);if(_&&h){const T=Xi(h).symbol;T&&T.members&&T.flags&16&&(d=go(T).thisType)}else vd(c)&&(d=go(Ra(c.symbol)).thisType);d||(d=M3e(c))}if(d)return Vh(n,d)}if(ei(c.parent)){const d=hr(c.parent),h=Ps(c)?$n(d):go(d).thisType;return Vh(n,h)}if(Ri(c))if(c.commonJsModuleIndicator){const d=hr(c);return d&&$n(d)}else{if(c.externalModuleIndicator)return Pt;if(s)return $n(Ge)}}function qKe(n){const s=tu(n,!1,!1);if(ks(s)){const c=gd(s);if(c.thisParameter)return tz(c.thisParameter)}if(ei(s.parent)){const c=hr(s.parent);return Ps(s)?$n(c):go(c).thisType}}function HKe(n){if(n.kind===218&&rr(n.parent)&&pc(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&rr(n.parent.parent)&&pc(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&rr(n.parent.parent.parent)&&pc(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&Dc(n.parent)&&we(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&ha(n.parent.parent)&&js(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&pc(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Ec(n)&&we(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&ha(n.parent)&&js(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&pc(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function GKe(n){const s=ZI(n);if(s&&s.typeExpression)return ii(s.typeExpression);const c=Y4(n);if(c)return X1(c)}function I3e(n,s){return!!On(n,c=>Eo(c)?"quit":c.kind===169&&c.parent===s)}function gse(n){const s=n.parent.kind===213&&n.parent.expression===n,c=jw(n,!0);let _=c,d=!1,h=!1;if(!s){for(;_&&_.kind===219;)Mr(_,512)&&(h=!0),_=jw(_,!0),d=ee<2;_&&Mr(_,512)&&(h=!0)}let T=0;if(!_||!te(_)){const ce=On(n,Se=>Se===_?"quit":Se.kind===167);return ce&&ce.kind===167?Fe(n,p.super_cannot_be_referenced_in_a_computed_property_name):s?Fe(n,p.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!_||!_.parent||!(ei(_.parent)||_.parent.kind===210)?Fe(n,p.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Fe(n,p.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),$e}if(!s&&c.kind===176&&P3e(n,_,p.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ps(_)||s?(T=32,!s&&ee>=2&&ee<=8&&(Is(_)||ec(_))&&Lle(n.parent,ce=>{(!Ri(ce)||Yu(ce))&&(Jr(ce).flags|=2097152)})):T=16,Jr(n).flags|=T,_.kind===174&&h&&(nu(n.parent)&&Km(n.parent)?Jr(_).flags|=256:Jr(_).flags|=128),d&&dse(n.parent,_),_.parent.kind===210)return ee<2?(Fe(n,p.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),$e):ke;const P=_.parent;if(!r2(P))return Fe(n,p.super_can_only_be_referenced_in_a_derived_class),$e;const O=go(hr(P)),$=O&&xo(O)[0];if(!$)return $e;if(_.kind===176&&I3e(n,_))return Fe(n,p.super_cannot_be_referenced_in_constructor_arguments),$e;return T===32?ui(O):Uu($,O.thisType);function te(ce){return s?ce.kind===176:ei(ce.parent)||ce.parent.kind===210?Ps(ce)?ce.kind===174||ce.kind===173||ce.kind===177||ce.kind===178||ce.kind===172||ce.kind===175:ce.kind===174||ce.kind===173||ce.kind===177||ce.kind===178||ce.kind===172||ce.kind===171||ce.kind===176:!1}}function O3e(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function F3e(n){return Br(n)&4&&n.target===se?po(n)[0]:void 0}function $Ke(n){return So(n,s=>s.flags&2097152?mn(s.types,F3e):F3e(s))}function L3e(n,s){let c=n,_=s;for(;_;){const d=$Ke(_);if(d)return d;if(c.parent.kind!==303)break;c=c.parent.parent,_=ry(c,void 0)}}function M3e(n){if(n.kind===219)return;if(IJ(n)){const c=o7(n);if(c){const _=c.thisParameter;if(_)return $n(_)}}const s=Zn(n);if(G||s){const c=O3e(n);if(c){const d=ry(c,void 0),h=L3e(c,d);return h?Ji(h,Xie(Dv(c))):Wu(d?Ig(d):jc(c))}const _=G0(n.parent);if(_.kind===226&&_.operatorToken.kind===64){const d=_.left;if(Mo(d)){const{expression:h}=d;if(s&&we(h)){const T=Bn(_);if(T.commonJsModuleIndicator&&hp(h)===T.symbol)return}return Wu(jc(h))}}}}function R3e(n){const s=n.parent;if(!IJ(s))return;const c=Mb(s);if(c&&c.arguments){const d=Gse(c),h=s.parameters.indexOf(n);if(n.dotDotDotToken)return qse(d,h,d.length,ke,void 0,0);const T=Jr(c),P=T.resolvedSignature;T.resolvedSignature=A;const O=h0)return L(c.name,!0,!1)}}function ZKe(n,s){const c=df(n);if(c){let _=oz(c,s);if(_){const d=Il(c);if(d&1){const h=(d&2)!==0;_.flags&1048576&&(_=ol(_,P=>!!Nv(1,P,h)));const T=Nv(1,_,(d&2)!==0);if(!T)return;_=T}if(d&2){const h=So(_,N0);return h&&zr([h,Q8e(h)])}return _}}}function KKe(n,s){const c=Z_(n,s);if(c){const _=N0(c);return _&&zr([_,Q8e(_)])}}function eet(n,s){const c=df(n);if(c){const _=Il(c);let d=oz(c,s);if(d){const h=(_&2)!==0;return!n.asteriskToken&&d.flags&1048576&&(d=ol(d,T=>!!Nv(1,T,h))),n.asteriskToken?d:Nv(0,d,h)}}}function yse(n){let s=!1;for(;n.parent&&!ks(n.parent);){if(ns(n.parent)&&(s||n.parent.initializer===n))return!0;Fa(n.parent)&&n.parent.initializer===n&&(s=!0),n=n.parent}return!1}function B3e(n,s){const c=!!(Il(s)&2),_=oz(s,void 0);if(_)return Nv(n,_,c)||void 0}function oz(n,s){const c=Sk(n);if(c)return c;const _=Sse(n);if(_&&!fJ(_))return Va(_);const d=Mb(n);if(d)return Z_(d,s)}function j3e(n,s){const _=Gse(n).indexOf(s);return _===-1?void 0:vse(n,_)}function vse(n,s){if(Zu(n))return s===0?F:s===1?A4e(!1):ke;const c=Jr(n).resolvedSignature===Re?Re:pC(n);if(V_(n)&&s===0)return uz(c,n);const _=c.parameters.length-1;return d_(c)&&s>=_?Cu($n(c.parameters[_]),Hp(s-_),256):$p(c,s)}function tet(n){const s=sae(n);return s?cb(s):void 0}function net(n,s){if(n.parent.kind===215)return j3e(n.parent,s)}function ret(n,s){const c=n.parent,{left:_,operatorToken:d,right:h}=c;switch(d.kind){case 64:case 77:case 76:case 78:return n===h?set(c):void 0;case 57:case 61:const T=Z_(c,s);return n===h&&(T&&T.pattern||!T&&!t_e(c))?a_(_):T;case 56:case 28:return n===h?Z_(c,s):void 0;default:return}}function iet(n){if(Nd(n)&&n.symbol)return n.symbol;if(we(n))return hp(n);if(kr(n)){const c=a_(n.expression);return Ei(n.name)?s(c,n.name):qs(c,n.name.escapedText)}if(No(n)){const c=jc(n.argumentExpression);if(!rp(c))return;const _=a_(n.expression);return qs(_,ip(c))}return;function s(c,_){const d=mz(_.escapedText,_);return d&&Lse(c,d)}}function set(n){var s,c;const _=pc(n);switch(_){case 0:case 4:const d=iet(n.left),h=d&&d.valueDeclaration;if(h&&(Is(h)||mf(h))){const O=Vl(h);return O&&Ji(ii(O),Fi(d).mapper)||(Is(h)?h.initializer&&a_(n.left):void 0)}return _===0?a_(n.left):J3e(n);case 5:if(cz(n,_))return J3e(n);if(!Nd(n.left)||!n.left.symbol)return a_(n.left);{const O=n.left.symbol.valueDeclaration;if(!O)return;const $=Ms(n.left,Mo),te=Vl(O);if(te)return ii(te);if(we($.expression)){const ce=$.expression,Se=Mc(ce,ce.escapedText,111551,void 0,ce.escapedText,!0);if(Se){const Te=Se.valueDeclaration&&Vl(Se.valueDeclaration);if(Te){const Ze=Hg($);if(Ze!==void 0)return wv(ii(Te),Ze)}return}}return Zn(O)||O===n.left?void 0:a_(n.left)}case 1:case 6:case 3:case 2:let T;_!==2&&(T=Nd(n.left)?(s=n.left.symbol)==null?void 0:s.valueDeclaration:void 0),T||(T=(c=n.symbol)==null?void 0:c.valueDeclaration);const P=T&&Vl(T);return P?ii(P):void 0;case 7:case 8:case 9:return E.fail("Does not apply");default:return E.assertNever(_)}}function cz(n,s=pc(n)){if(s===4)return!0;if(!Zn(n)||s!==5||!we(n.left.expression))return!1;const c=n.left.expression.escapedText,_=Mc(n.left,c,111551,void 0,void 0,!0,!0);return F9(_==null?void 0:_.valueDeclaration)}function J3e(n){if(!n.symbol)return a_(n.left);if(n.symbol.valueDeclaration){const d=Vl(n.symbol.valueDeclaration);if(d){const h=ii(d);if(h)return h}}const s=Ms(n.left,Mo);if(!Sp(tu(s.expression,!1,!1)))return;const c=DP(s.expression),_=Hg(s);return _!==void 0&&wv(c,_)||void 0}function aet(n){return!!(rc(n)&262144&&!n.links.type&&pk(n,0)>=0)}function wv(n,s,c){return So(n,_=>{var d;if(ff(_)&&!_.declaration.nameType){const h=Uf(_),T=B_(h)||h,P=c||lu(Li(s));if(la(P,T))return TJ(_,P)}else if(_.flags&3670016){const h=qs(_,s);if(h)return aet(h)?void 0:$n(h);if(_a(_)&&rg(s)&&+s>=0){const T=oC(_,_.target.fixedLength,0,!1,!0);if(T)return T}return(d=Jre(zre(_),c||lu(Li(s))))==null?void 0:d.type}},!0)}function z3e(n,s){if(E.assert(Sp(n)),!(n.flags&67108864))return bse(n,s)}function bse(n,s){const c=n.parent,_=Dc(n)&&hse(n,s);if(_)return _;const d=ry(c,s);if(d){if(vk(n)){const h=hr(n);return wv(d,h.escapedName,Fi(h).nameType)}if($0(n)){const h=os(n);if(h&&Ga(h)){const T=Xi(h.expression),P=rp(T)&&wv(d,ip(T));if(P)return P}}if(n.name){const h=C0(n.name);return So(d,T=>{var P;return(P=Jre(zre(T),h))==null?void 0:P.type},!0)}}}function oet(n){let s,c;for(let _=0;_{if(_a(h)){if((_===void 0||s<_)&&sd)?c-s:0,P=T>0&&h.target.hasRestElement?UE(h.target,3):0;return T>0&&T<=P?po(h)[k0(h)-T]:oC(h,_===void 0?h.target.fixedLength:Math.min(h.target.fixedLength,_),c===void 0||d===void 0?P:Math.min(P,c-d),!1,!0)}return(!_||s<_)&&wv(h,""+s)||kae(1,h,Pt,void 0,!1)},!0)}function cet(n,s){const c=n.parent;return n===c.whenTrue||n===c.whenFalse?Z_(c,s):void 0}function _et(n,s,c){const _=ry(n.openingElement.attributes,c),d=IP(hb(n));if(!(_&&!Wa(_)&&d&&d!==""))return;const h=m3(n.children),T=h.indexOf(s),P=wv(_,d);return P&&(h.length===1?P:So(P,O=>w0(O)?Cu(O,Hp(T)):O,!0))}function uet(n,s){const c=n.parent;return _9(c)?Z_(n,s):cg(c)?_et(c,n,s):void 0}function V3e(n,s){if(zd(n)){const c=ry(n.parent,s);return!c||Wa(c)?void 0:wv(c,U3(n.name))}else return Z_(n.parent,s)}function AP(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return AP(n.expression);case 294:return!n.expression||AP(n.expression)}return!1}function fet(n,s){return iKe(s,n)||Oie(s,Ki(an(Vr(n.properties,c=>!!c.symbol&&c.kind===303&&AP(c.initializer)&&n7(s,c.symbol.escapedName)),c=>[()=>$P(c.initializer),c.symbol.escapedName]),an(Vr(za(s),c=>{var _;return!!(c.flags&16777216)&&!!((_=n==null?void 0:n.symbol)!=null&&_.members)&&!n.symbol.members.has(c.escapedName)&&n7(s,c.escapedName)}),c=>[()=>Pt,c.escapedName])),la)}function pet(n,s){const c=IP(hb(n));return Oie(s,Ki(an(Vr(n.properties,_=>!!_.symbol&&_.kind===291&&n7(s,_.symbol.escapedName)&&(!_.initializer||AP(_.initializer))),_=>[_.initializer?()=>$P(_.initializer):()=>Ot,_.symbol.escapedName]),an(Vr(za(s),_=>{var d;if(!(_.flags&16777216)||!((d=n==null?void 0:n.symbol)!=null&&d.members))return!1;const h=n.parent.parent;return _.escapedName===c&&cg(h)&&m3(h.children).length?!1:!n.symbol.members.has(_.escapedName)&&n7(s,_.escapedName)}),_=>[()=>Pt,_.escapedName])),la)}function ry(n,s){const c=Sp(n)?z3e(n,s):Z_(n,s),_=lz(c,n,s);if(_&&!(s&&s&2&&_.flags&8650752)){const d=So(_,h=>Br(h)&32?h:Y_(h),!0);return d.flags&1048576&&ha(n)?fet(n,d):d.flags&1048576&&h2(n)?pet(n,d):d}}function lz(n,s,c){if(n&&Qo(n,465829888)){const _=Dv(s);if(_&&c&1&&dt(_.inferences,$nt))return _z(n,_.nonFixingMapper);if(_!=null&&_.returnMapper){const d=_z(n,_.returnMapper);return d.flags&1048576&&Lh(d.types,Tt)&&Lh(d.types,on)?ol(d,h=>h!==Tt&&h!==on):d}}return n}function _z(n,s){return n.flags&465829888?Ji(n,s):n.flags&1048576?zr(an(n.types,c=>_z(c,s)),0):n.flags&2097152?ca(an(n.types,c=>_z(c,s))):n}function Z_(n,s){var h;var c;if(n.flags&67108864)return;const _=W3e(n,!s);if(_>=0)return $o[_];const{parent:d}=n;switch(d.kind){case 260:case 169:case 172:case 171:case 208:return YKe(n,s);case 219:case 253:return ZKe(n,s);case 229:return eet(d,s);case 223:return KKe(d,s);case 213:case 214:return j3e(d,n);case 170:return tet(d);case 216:case 234:return Ug(d.type)?Z_(d,s):ii(d.type);case 226:return ret(n,s);case 303:case 304:return bse(d,s);case 305:return Z_(d.parent,s);case 209:{const T=d,P=ry(T,s),O=l6(T.elements,n),$=(h=(c=Jr(T)).spreadIndices)!=null?h:c.spreadIndices=oet(T.elements);return Tse(P,O,T.elements.length,$.first,$.last)}case 227:return cet(n,s);case 239:return E.assert(d.parent.kind===228),net(d.parent,n);case 217:{if(Zn(d)){if(lH(d))return ii(_H(d));const T=fy(d);if(T&&!Ug(T.typeExpression.type))return ii(T.typeExpression.type)}return Z_(d,s)}case 235:return Z_(d,s);case 238:return ii(d.type);case 277:return ki(d);case 294:return uet(d,s);case 291:case 293:return V3e(d,s);case 286:case 285:return get(d,s)}}function U3e(n){NP(n,Z_(n,void 0),!0)}function NP(n,s,c){Lc[Gd]=n,$o[Gd]=s,ug[Gd]=c,Gd++}function a7(){Gd--}function W3e(n,s){for(let c=Gd-1;c>=0;c--)if(n===Lc[c]&&(s||!ug[c]))return c;return-1}function det(n,s){Bf[dh]=n,a0[dh]=s,dh++}function met(){dh--}function Dv(n){for(let s=dh-1;s>=0;s--)if(n2(n,Bf[s]))return a0[s]}function get(n,s){if(Jd(n)&&s!==4){const c=W3e(n.parent,!s);if(c>=0)return $o[c]}return vse(n,0)}function uz(n,s){return E8e(s)!==0?het(n,s):bet(n,s)}function het(n,s){let c=rae(n,Jt);c=q3e(s,hb(s),c);const _=Av(sf.IntrinsicAttributes,s);return q(_)||(c=KN(_,c)),c}function yet(n,s){if(n.compositeSignatures){const _=[];for(const d of n.compositeSignatures){const h=Va(d);if(Wa(h))return h;const T=Wc(h,s);if(!T)return;_.push(T)}return ca(_)}const c=Va(n);return Wa(c)?c:Wc(c,s)}function vet(n){if(_x(n.tagName)){const c=e8e(n),_=xz(n,c);return cb(_)}const s=jc(n.tagName);if(s.flags&128){const c=K3e(s,n);if(!c)return $e;const _=xz(n,c);return cb(_)}return s}function q3e(n,s,c){const _=zet(s);if(_){const d=vet(n),h=r8e(_,Zn(n),d,c);if(h)return h}return c}function bet(n,s){const c=hb(s),_=Uet(c);let d=_===void 0?rae(n,Jt):_===""?Va(n):yet(n,_);if(!d)return!!_&&!!Pn(s.attributes.properties)&&Fe(s,p.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Li(_)),Jt;if(d=q3e(s,c,d),Wa(d))return d;{let h=d;const T=Av(sf.IntrinsicClassAttributes,s);if(!q(T)){const O=zp(T.symbol),$=Va(n);let te;if(O){const ce=Oh([$],O,nm(O),Zn(s));te=Ji(T,_u(O,ce))}else te=T;h=KN(te,h)}const P=Av(sf.IntrinsicAttributes,s);return q(P)||(h=KN(P,h)),h}}function Tet(n){return np(j,"noImplicitAny")?E_(n,(s,c)=>s===c||!s?s:H6e(s.typeParameters,c.typeParameters)?Cet(s,c):void 0):void 0}function xet(n,s,c){if(!n||!s)return n||s;const _=zr([$n(n),Ji($n(s),c)]);return fb(n,_)}function ket(n,s,c){const _=qu(n),d=qu(s),h=_>=d?n:s,T=h===n?s:n,P=h===n?_:d,O=sm(n)||sm(s),$=O&&!sm(h),te=new Array(P+($?1:0));for(let ce=0;ce=bd(h)&&ce>=bd(T),_n=ce>=_?void 0:dC(n,ce),Gn=ce>=d?void 0:dC(s,ce),Nn=_n===Gn?_n:_n?Gn?void 0:_n:Gn,Ht=Pa(1|(Kt&&!St?16777216:0),Nn||`arg${ce}`);Ht.links.type=St?$l(Ze):Ze,te[ce]=Ht}if($){const ce=Pa(1,"args");ce.links.type=$l($p(T,P)),T===s&&(ce.links.type=Ji(ce.links.type,c)),te[P]=ce}return te}function Cet(n,s){const c=n.typeParameters||s.typeParameters;let _;n.typeParameters&&s.typeParameters&&(_=_u(s.typeParameters,n.typeParameters));const d=n.declaration,h=ket(n,s,_),T=xet(n.thisParameter,s.thisParameter,_),P=Math.max(n.minArgumentCount,s.minArgumentCount),O=Mm(d,c,T,h,void 0,void 0,P,(n.flags|s.flags)&167);return O.compositeKind=2097152,O.compositeSignatures=Ki(n.compositeKind===2097152&&n.compositeSignatures||[n],[s]),_&&(O.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?ey(n.mapper,_):_),O}function xse(n,s){const c=As(n,0),_=Vr(c,d=>!Eet(d,s));return _.length===1?_[0]:Tet(_)}function Eet(n,s){let c=0;for(;cT[Te]&8?Mh(Se,ye)||ke:Se),2):H?ea:hi,O))}function G3e(n){if(!(Br(n)&4))return n;let s=n.literalType;return s||(s=n.literalType=h4e(n),s.objectFlags|=147456),s}function Net(n){switch(n.kind){case 167:return Pet(n);case 80:return rg(n.escapedText);case 9:case 11:return rg(n.text);default:return!1}}function Pet(n){return kl(Bm(n),296)}function Bm(n){const s=Jr(n.expression);if(!s.resolvedType){if((ef(n.parent.parent)||ei(n.parent.parent)||f_(n.parent.parent))&&rr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return s.resolvedType=$e;if(s.resolvedType=Xi(n.expression),Is(n.parent)&&!$c(n.parent)&&Fl(n.parent.parent)){const c=mm(n.parent.parent),_=pse(c);_&&(Jr(_).flags|=4096,Jr(n).flags|=32768,Jr(n.parent.parent).flags|=32768)}(s.resolvedType.flags&98304||!kl(s.resolvedType,402665900)&&!la(s.resolvedType,cs))&&Fe(n,p.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return s.resolvedType}function Iet(n){var s;const c=(s=n.declarations)==null?void 0:s[0];return rg(n.escapedName)||c&&A_(c)&&Net(c.name)}function $3e(n){var s;const c=(s=n.declarations)==null?void 0:s[0];return uD(n)||c&&A_(c)&&Ga(c.name)&&kl(Bm(c.name),4096)}function kse(n,s,c,_){const d=[];for(let T=s;T0&&(P=vv(P,Mn(),n.symbol,St,te),T=[],h=Us(),_n=!1,Gn=!1,Nn=!1);const Un=Wp(Xi(Xt.expression,s&2));if(PP(Un)){const ws=vie(Un,te);if(d&&Q3e(ws,d,Xt),Ht=T.length,q(P))continue;P=vv(P,ws,n.symbol,St,te)}else Fe(Xt,p.Spread_types_may_only_be_created_from_object_types),P=$e;continue}else E.assert(Xt.kind===177||Xt.kind===178),Rk(Xt);Cn&&!(Cn.flags&8576)?la(Cn,cs)&&(la(Cn,ye)?Gn=!0:la(Cn,ir)?Nn=!0:_n=!0,_&&(Kt=!0)):h.set(dn.escapedName,dn),T.push(dn)}if(a7(),$){const Xt=On(O.pattern.parent,Cn=>Cn.kind===260||Cn.kind===226||Cn.kind===169);if(On(n,Cn=>Cn===Xt||Cn.kind===305).kind!==305)for(const Cn of za(O))!h.get(Cn.escapedName)&&!qs(P,Cn.escapedName)&&(Cn.flags&16777216||Fe(Cn.valueDeclaration||((c=Hr(Cn,pm))==null?void 0:c.links.bindingElement),p.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),h.set(Cn.escapedName,Cn),T.push(Cn))}if(q(P))return $e;if(P!==Oi)return T.length>0&&(P=vv(P,Mn(),n.symbol,St,te),T=[],h=Us(),_n=!1,Gn=!1),So(P,Xt=>Xt===Oi?Mn():Xt);return Mn();function Mn(){const Xt=[];_n&&Xt.push(kse(n,Ht,T,F)),Gn&&Xt.push(kse(n,Ht,T,ye)),Nn&&Xt.push(kse(n,Ht,T,ir));const dn=yc(n.symbol,h,Ve,Ve,Xt);return dn.objectFlags|=St|128|131072,Ze&&(dn.objectFlags|=4096),Kt&&(dn.objectFlags|=512),_&&(dn.pattern=n),dn}}function PP(n){const s=WCe(So(n,wg));return!!(s.flags&126615553||s.flags&3145728&&$i(s.types,PP))}function Fet(n){Dse(n)}function Let(n,s){return Rk(n),OP(n)||ke}function Met(n){Dse(n.openingElement),_x(n.closingElement.tagName)?pz(n.closingElement):Xi(n.closingElement.tagName),fz(n)}function Ret(n,s){return Rk(n),OP(n)||ke}function Bet(n){Dse(n.openingFragment);const s=Bn(n);return hO(j)&&(j.jsxFactory||s.pragmas.has("jsx"))&&!j.jsxFragmentFactory&&!s.pragmas.has("jsxfrag")&&Fe(n,j.jsxFactory?p.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:p.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),fz(n),OP(n)||ke}function Ese(n){return Xl(n,"-")}function _x(n){return we(n)&&A6(n.escapedText)||Vd(n)}function X3e(n,s){return n.initializer?gC(n.initializer,s):Ot}function jet(n,s=0){const c=n.attributes,_=Z_(c,0),d=H?Us():void 0;let h=Us(),T=Vc,P=!1,O,$=!1,te=2048;const ce=IP(hb(n));for(const Ze of c.properties){const St=Ze.symbol;if(zd(Ze)){const Kt=X3e(Ze,s);te|=Br(Kt)&458752;const _n=Pa(4|St.flags,St.escapedName);if(_n.declarations=St.declarations,_n.parent=St.parent,St.valueDeclaration&&(_n.valueDeclaration=St.valueDeclaration),_n.links.type=Kt,_n.links.target=St,h.set(_n.escapedName,_n),d==null||d.set(_n.escapedName,_n),U3(Ze.name)===ce&&($=!0),_){const Gn=qs(_,St.escapedName);Gn&&Gn.declarations&&up(Gn)&&we(Ze.name)&&_0(Ze.name,Gn.declarations,Ze.name.escapedText)}if(_&&s&2&&!(s&4)&&Cf(Ze)){const Gn=Dv(c);E.assert(Gn);const Nn=Ze.initializer.expression;Gie(Gn,Nn,Kt)}}else{E.assert(Ze.kind===293),h.size>0&&(T=vv(T,Te(),c.symbol,te,!1),h=Us());const Kt=Wp(Xi(Ze.expression,s&2));Wa(Kt)&&(P=!0),PP(Kt)?(T=vv(T,Kt,c.symbol,te,!1),d&&Q3e(Kt,d,Ze)):(Fe(Ze.expression,p.Spread_types_may_only_be_created_from_object_types),O=O?ca([O,Kt]):Kt)}}P||h.size>0&&(T=vv(T,Te(),c.symbol,te,!1));const Se=n.parent.kind===284?n.parent:void 0;if(Se&&Se.openingElement===n&&Se.children.length>0){const Ze=fz(Se,s);if(!P&&ce&&ce!==""){$&&Fe(c,p._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Li(ce));const St=ry(n.attributes,void 0),Kt=St&&wv(St,ce),_n=Pa(4,ce);_n.links.type=Ze.length===1?Ze[0]:Kt&&Fg(Kt,aC)?qp(Ze):$l(zr(Ze)),_n.valueDeclaration=I.createPropertySignature(void 0,Li(ce),void 0,void 0),Ta(_n.valueDeclaration,c),_n.valueDeclaration.symbol=_n;const Gn=Us();Gn.set(ce,_n),T=vv(T,yc(c.symbol,Gn,Ve,Ve,Ve),c.symbol,te,!1)}}if(P)return ke;if(O&&T!==Vc)return ca([O,T]);return O||(T===Vc?Te():T);function Te(){te|=ve;const Ze=yc(c.symbol,h,Ve,Ve,Ve);return Ze.objectFlags|=te|128|131072,Ze}}function fz(n,s){const c=[];for(const _ of n.children)if(_.kind===12)_.containsOnlyTriviaWhiteSpaces||c.push(F);else{if(_.kind===294&&!_.expression)continue;c.push(gC(_,s))}return c}function Q3e(n,s,c){for(const _ of za(n))if(!(_.flags&16777216)){const d=s.get(_.escapedName);if(d){const h=Fe(d.valueDeclaration,p._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Li(d.escapedName));fa(h,yr(c,p.This_spread_always_overwrites_this_property))}}}function Jet(n,s){return jet(n.parent,s)}function Av(n,s){const c=hb(s),_=c&&zu(c),d=_&&H_(_,n,788968);return d?go(d):$e}function pz(n){const s=Jr(n);if(!s.resolvedSymbol){const c=Av(sf.IntrinsicElements,n);if(q(c))return fe&&Fe(n,p.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Li(sf.IntrinsicElements)),s.resolvedSymbol=st;{if(!we(n.tagName)&&!Vd(n.tagName))return E.fail();const _=qs(c,Vd(n.tagName)?z6(n.tagName):n.tagName.escapedText);return _?(s.jsxFlags|=1,s.resolvedSymbol=_):x0(c,F)?(s.jsxFlags|=2,s.resolvedSymbol=c.symbol):(Fe(n,p.Property_0_does_not_exist_on_type_1,uH(n.tagName),"JSX."+sf.IntrinsicElements),s.resolvedSymbol=st)}}return s.resolvedSymbol}function wse(n){const s=n&&Bn(n),c=s&&Jr(s);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const _=vO(yO(j,s),j);if(!_)return;const h=Cc(j)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations,T=Ch(n,_,h,n),P=T&&T!==st?Ra(Rc(T)):void 0;return c&&(c.jsxImplicitImportContainer=P||!1),P}function hb(n){const s=n&&Jr(n);if(s&&s.jsxNamespace)return s.jsxNamespace;if(!s||s.jsxNamespace!==!1){let _=wse(n);if(!_||_===st){const d=N1(n);_=Mc(n,d,1920,void 0,d,!1)}if(_){const d=Rc(H_(zu(Rc(_)),sf.JSX,1920));if(d&&d!==st)return s&&(s.jsxNamespace=d),d}s&&(s.jsxNamespace=!1)}const c=Rc(K4(sf.JSX,1920,void 0));if(c!==st)return c}function Y3e(n,s){const c=s&&H_(s.exports,n,788968),_=c&&go(c),d=_&&za(_);if(d){if(d.length===0)return"";if(d.length===1)return d[0].escapedName;d.length>1&&c.declarations&&Fe(c.declarations[0],p.The_global_type_JSX_0_may_not_have_more_than_one_property,Li(n))}}function zet(n){return n&&H_(n.exports,sf.LibraryManagedAttributes,788968)}function Vet(n){return n&&H_(n.exports,sf.ElementType,788968)}function Uet(n){return Y3e(sf.ElementAttributesPropertyNameContainer,n)}function IP(n){return Y3e(sf.ElementChildrenAttributeNameContainer,n)}function Z3e(n,s){if(n.flags&4)return[A];if(n.flags&128){const d=K3e(n,s);return d?[xz(s,d)]:(Fe(s,p.Property_0_does_not_exist_on_type_1,n.value,"JSX."+sf.IntrinsicElements),Ve)}const c=Y_(n);let _=As(c,1);return _.length===0&&(_=As(c,0)),_.length===0&&c.flags&1048576&&(_=wre(an(c.types,d=>Z3e(d,s)))),_}function K3e(n,s){const c=Av(sf.IntrinsicElements,s);if(!q(c)){const _=n.value,d=qs(c,qo(_));if(d)return $n(d);const h=x0(c,F);return h||void 0}return ke}function Wet(n,s,c){if(n===1){const d=n8e(c);d&&Ef(s,d,Ju,c.tagName,p.Its_return_type_0_is_not_a_valid_JSX_element,_)}else if(n===0){const d=t8e(c);d&&Ef(s,d,Ju,c.tagName,p.Its_instance_type_0_is_not_a_valid_JSX_element,_)}else{const d=n8e(c),h=t8e(c);if(!d||!h)return;const T=zr([d,h]);Ef(s,T,Ju,c.tagName,p.Its_element_type_0_is_not_a_valid_JSX_element,_)}function _(){const d=el(c.tagName);return _s(void 0,p._0_cannot_be_used_as_a_JSX_component,d)}}function e8e(n){E.assert(_x(n.tagName));const s=Jr(n);if(!s.resolvedJsxElementAttributesType){const c=pz(n);return s.jsxFlags&1?s.resolvedJsxElementAttributesType=$n(c)||$e:s.jsxFlags&2?s.resolvedJsxElementAttributesType=x0(Av(sf.IntrinsicElements,n),F)||$e:s.resolvedJsxElementAttributesType=$e}return s.resolvedJsxElementAttributesType}function t8e(n){const s=Av(sf.ElementClass,n);if(!q(s))return s}function OP(n){return Av(sf.Element,n)}function n8e(n){const s=OP(n);if(s)return zr([s,W])}function qet(n){const s=hb(n);if(!s)return;const c=Vet(s);if(!c)return;const _=r8e(c,Zn(n));if(!(!_||q(_)))return _}function r8e(n,s,...c){const _=go(n);if(n.flags&524288){const d=Fi(n).typeParameters;if(Pn(d)>=c.length){const h=Oh(c,d,c.length,s);return Pn(h)===0?_:Ck(n,h)}}if(Pn(_.typeParameters)>=c.length){const d=Oh(c,_.typeParameters,c.length,s);return S0(_,d)}}function Het(n){const s=Av(sf.IntrinsicElements,n);return s?za(s):Ve}function Get(n){(j.jsx||0)===0&&Fe(n,p.Cannot_use_JSX_unless_the_jsx_flag_is_provided),OP(n)===void 0&&fe&&Fe(n,p.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Dse(n){const s=V_(n);if(s&&Rat(n),Get(n),!wse(n)){const c=xa&&j.jsx===2?p.Cannot_find_name_0:void 0,_=N1(n),d=s?n.tagName:n;let h;if(dS(n)&&_==="null"||(h=Mc(d,_,111551,c,_,!0)),h&&(h.isReferenced=67108863,at&&h.flags&2097152&&!mp(h)&&vg(h)),dS(n)){const T=Bn(n),P=Xy(T);P&&Mc(d,P,111551,c,P,!0)}}if(s){const c=n,_=pC(c);kz(_,n);const d=qet(c);if(d!==void 0){const h=c.tagName,T=_x(h)?lu(uH(h)):Xi(h);Ef(T,d,Ju,h,p.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const P=el(h);return _s(void 0,p._0_cannot_be_used_as_a_JSX_component,P)})}else Wet(E8e(c),Va(_),c)}}function Ase(n,s,c){if(n.flags&524288){if(mv(n,s)||nx(n,s)||LE(s)&&Rm(n,F)||c&&Ese(s))return!0}else if(n.flags&3145728&&FP(n)){for(const _ of n.types)if(Ase(_,s,c))return!0}return!1}function FP(n){return!!(n.flags&524288&&!(Br(n)&512)||n.flags&67108864||n.flags&1048576&&dt(n.types,FP)||n.flags&2097152&&$i(n.types,FP))}function $et(n,s){if(jat(n),n.expression){const c=Xi(n.expression,s);return n.dotDotDotToken&&c!==ke&&!wf(c)&&Fe(n,p.JSX_spread_child_must_be_an_array_type),c}else return $e}function Nse(n){return n.valueDeclaration?Ov(n.valueDeclaration):0}function Pse(n){if(n.flags&8192||rc(n)&4)return!0;if(Zn(n.valueDeclaration)){const s=n.valueDeclaration.parent;return s&&rr(s)&&pc(s)===3}}function Ise(n,s,c,_,d,h=!0){const T=h?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return i8e(n,s,c,_,d,T)}function i8e(n,s,c,_,d,h){const T=Ff(d,c);if(s){if(ee<2&&s8e(d))return h&&Fe(h,p.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(T&256)return h&&Fe(h,p.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ni(d),kn(cx(d))),!1}if(T&256&&s8e(d)&&(Jw(n)||Yle(n)||td(n.parent)&&F9(n.parent.parent))){const O=Xg($_(d));if(O&&Mst(n))return h&&Fe(h,p.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ni(d),kp(O.name)),!1}if(!(T&24))return!0;if(T&8){const O=Xg($_(d));return Mae(n,O)?!0:(h&&Fe(h,p.Property_0_is_private_and_only_accessible_within_class_1,ni(d),kn(cx(d))),!1)}if(s)return!0;let P=v7e(n,O=>{const $=go(hr(O));return MCe($,d,c)});return!P&&(P=Xet(n),P=P&&MCe(P,d,c),T&32||!P)?(h&&Fe(h,p.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ni(d),kn(cx(d)||_)),!1):T&32?!0:(_.flags&262144&&(_=_.isThisType?s_(_):B_(_)),!_||!yk(_,P)?(h&&Fe(h,p.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ni(d),kn(P),kn(_)),!1):!0)}function Xet(n){const s=Qet(n);let c=(s==null?void 0:s.type)&&ii(s.type);if(c&&c.flags&262144&&(c=s_(c)),c&&Br(c)&7)return ib(c)}function Qet(n){const s=tu(n,!1,!1);return s&&ks(s)?i2(s):void 0}function s8e(n){return!!yP(n,s=>!(s.flags&8192))}function uC(n){return yd(Xi(n),n)}function dz(n){return!!(k_(n)&50331648)}function Ose(n){return dz(n)?Ig(n):n}function Yet(n,s){const c=Sc(n)?Nu(n):void 0;if(n.kind===106){Fe(n,p.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(we(n)&&c==="undefined"){Fe(n,p.The_value_0_cannot_be_used_here,"undefined");return}Fe(n,s&16777216?s&33554432?p._0_is_possibly_null_or_undefined:p._0_is_possibly_undefined:p._0_is_possibly_null,c)}else Fe(n,s&16777216?s&33554432?p.Object_is_possibly_null_or_undefined:p.Object_is_possibly_undefined:p.Object_is_possibly_null)}function Zet(n,s){Fe(n,s&16777216?s&33554432?p.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:p.Cannot_invoke_an_object_which_is_possibly_undefined:p.Cannot_invoke_an_object_which_is_possibly_null)}function a8e(n,s,c){if(H&&n.flags&2){if(Sc(s)){const d=Nu(s);if(d.length<100)return Fe(s,p._0_is_of_type_unknown,d),$e}return Fe(s,p.Object_is_of_type_unknown),$e}const _=k_(n);if(_&50331648){c(s,_);const d=Ig(n);return d.flags&229376?$e:d}return n}function yd(n,s){return a8e(n,s,Yet)}function o8e(n,s){const c=yd(n,s);if(c.flags&16384){if(Sc(s)){const _=Nu(s);if(we(s)&&_==="undefined")return Fe(s,p.The_value_0_cannot_be_used_here,_),c;if(_.length<100)return Fe(s,p._0_is_possibly_undefined,_),c}Fe(s,p.Object_is_possibly_undefined)}return c}function Fse(n,s,c){return n.flags&64?Ket(n,s):Mse(n,n.expression,uC(n.expression),n.name,s,c)}function Ket(n,s){const c=Xi(n.expression),_=YE(c,n.expression);return qJ(Mse(n,n.expression,yd(_,n.expression),n.name,s),n,_!==c)}function c8e(n,s){const c=B9(n)&&a2(n.left)?yd(DP(n.left),n.left):uC(n.left);return Mse(n,n.left,c,n.right,s)}function l8e(n){for(;n.parent.kind===217;)n=n.parent;return Xm(n.parent)&&n.parent.expression===n}function mz(n,s){for(let c=I9(s);c;c=Pl(c)){const{symbol:_}=c,d=_D(_,n),h=_.members&&_.members.get(d)||_.exports&&_.exports.get(d);if(h)return h}}function ett(n){if(!Pl(n))return Yt(n,p.Private_identifiers_are_not_allowed_outside_class_bodies);if(!bF(n.parent)){if(!qg(n))return Yt(n,p.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);const s=rr(n.parent)&&n.parent.operatorToken.kind===103;if(!gz(n)&&!s)return Yt(n,p.Cannot_find_name_0,lr(n))}return!1}function ttt(n){ett(n);const s=gz(n);return s&&MP(s,void 0,!1),ke}function gz(n){if(!qg(n))return;const s=Jr(n);return s.resolvedSymbol===void 0&&(s.resolvedSymbol=mz(n.escapedText,n)),s.resolvedSymbol}function Lse(n,s){return qs(n,s.escapedName)}function ntt(n,s,c){let _;const d=za(n);d&&mn(d,T=>{const P=T.valueDeclaration;if(P&&A_(P)&&Ei(P.name)&&P.name.escapedText===s.escapedText)return _=T,!0});const h=T_(s);if(_){const T=E.checkDefined(_.valueDeclaration),P=E.checkDefined(Pl(T));if(c!=null&&c.valueDeclaration){const O=c.valueDeclaration,$=Pl(O);if(E.assert(!!$),On($,te=>P===te)){const te=Fe(s,p.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,h,kn(n));return fa(te,yr(O,p.The_shadowing_declaration_of_0_is_defined_here,h),yr(T,p.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,h)),!0}}return Fe(s,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,h,T_(P.name||$A)),!0}return!1}function _8e(n,s){return(Bp(s)||Jw(n)&&y0(s))&&tu(n,!0,!1)===v0(s)}function Mse(n,s,c,_,d,h){const T=Jr(s).resolvedSymbol,P=jb(n),O=Y_(P!==0||l8e(n)?Wu(c):c),$=Wa(O)||O===ai;let te;if(Ei(_)){ee<99&&(P!==0&&Kc(n,1048576),P!==1&&Kc(n,524288));const Se=mz(_.escapedText,_);if(P&&Se&&Se.valueDeclaration&&Ec(Se.valueDeclaration)&&Yt(_,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,lr(_)),$){if(Se)return q(O)?$e:O;if(I9(_)===void 0)return Yt(_,p.Private_identifiers_are_not_allowed_outside_class_bodies),ke}if(te=Se&&Lse(c,Se),te===void 0){if(ntt(c,_,Se))return $e;const Te=I9(_);Te&&Nw(Bn(Te),j.checkJs)&&Yt(_,p.Private_field_0_must_be_declared_in_an_enclosing_class,lr(_))}else te.flags&65536&&!(te.flags&32768)&&P!==1&&Fe(n,p.Private_accessor_was_defined_without_a_getter)}else{if($)return we(s)&&T&&az(T,n),q(O)?$e:O;te=qs(O,_.escapedText,!1,n.kind===166)}we(s)&&T&&(ed(j)||!(te&&(S7(te)||te.flags&8&&n.parent.kind===306))||Hb(j)&&D3e(n))&&az(T,n);let ce;if(te){const Se=Oae(te,_);if(up(Se)&&die(n,Se)&&Se.declarations&&_0(_,Se.declarations,_.escapedText),rtt(te,n,_),MP(te,n,h8e(s,T)),Jr(n).resolvedSymbol=te,Ise(n,s.kind===108,w3(n),O,te),iEe(n,te,P))return Fe(_,p.Cannot_assign_to_0_because_it_is_a_read_only_property,lr(_)),$e;ce=_8e(n,te)?ft:h||oO(n)?OE(te):$n(te)}else{const Se=!Ei(_)&&(P===0||!yv(c)||V3(c))?nx(O,_.escapedText):void 0;if(!(Se&&Se.type)){const Te=Rse(n,c.symbol,!0);return!Te&&WE(c)?ke:c.symbol===Ge?(Ge.exports.has(_.escapedText)&&Ge.exports.get(_.escapedText).flags&418?Fe(_,p.Property_0_does_not_exist_on_type_1,Li(_.escapedText),kn(c)):fe&&Fe(_,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,kn(c)),ke):(_.escapedText&&!u0(n)&&p8e(_,V3(c)?O:c,Te),$e)}Se.isReadonly&&(Km(n)||sq(n))&&Fe(n,p.Index_signature_in_type_0_only_permits_reading,kn(O)),ce=j.noUncheckedIndexedAccess&&!Km(n)?zr([Se.type,z]):Se.type,j.noPropertyAccessFromIndexSignature&&kr(n)&&Fe(_,p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Li(_.escapedText)),Se.declaration&&b_(Se.declaration)&&_0(_,[Se.declaration],_.escapedText)}return u8e(n,te,ce,_,d)}function Rse(n,s,c){const _=Bn(n);if(_&&j.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){const d=mn(s==null?void 0:s.declarations,Bn);return!(_!==d&&!!d&&Xd(d))&&!(c&&s&&s.flags&32)&&!(!!n&&c&&kr(n)&&n.expression.kind===110)}return!1}function u8e(n,s,c,_,d){const h=jb(n);if(h===1)return ub(c,!!(s&&s.flags&16777216));if(s&&!(s.flags&98311)&&!(s.flags&8192&&c.flags&1048576)&&!Jz(s.declarations))return c;if(c===ft)return dk(n,s);c=fse(c,n,d);let T=!1;if(H&&ue&&Mo(n)&&n.expression.kind===110){const O=s&&s.valueDeclaration;if(O&&a7e(O)&&!Ps(O)){const $=s7(n);$.kind===176&&$.parent===O.parent&&!(O.flags&33554432)&&(T=!0)}}else H&&s&&s.valueDeclaration&&kr(s.valueDeclaration)&&Qw(s.valueDeclaration)&&s7(n)===s7(s.valueDeclaration)&&(T=!0);const P=Vh(n,c,T?A0(c):c);return T&&!rC(c)&&rC(P)?(Fe(_,p.Property_0_is_used_before_being_assigned,ni(s)),c):h?zh(P):P}function rtt(n,s,c){const{valueDeclaration:_}=n;if(!_||Bn(s).isDeclarationFile)return;let d;const h=lr(c);f8e(s)&&!HXe(_)&&!(Mo(s)&&Mo(s.expression))&&!Qd(_,c)&&!(Ec(_)&&Xz(_)&32)&&(oe||!itt(n))?d=Fe(c,p.Property_0_is_used_before_its_initialization,h):_.kind===263&&s.parent.kind!==183&&!(_.flags&33554432)&&!Qd(_,c)&&(d=Fe(c,p.Class_0_used_before_its_declaration,h)),d&&fa(d,yr(_,p._0_is_declared_here,h))}function f8e(n){return!!On(n,s=>{switch(s.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return hs(s.parent)&&ec(s.parent.parent)?!0:"quit";default:return qg(s)?!1:"quit"}})}function itt(n){if(!(n.parent.flags&32))return!1;let s=$n(n.parent);for(;;){if(s=s.symbol&&stt(s),!s)return!1;const c=qs(s,n.escapedName);if(c&&c.valueDeclaration)return!0}}function stt(n){const s=xo(n);if(s.length!==0)return ca(s)}function p8e(n,s,c){let _,d;if(!Ei(n)&&s.flags&1048576&&!(s.flags&402784252)){for(const T of s.types)if(!qs(T,n.escapedText)&&!nx(T,n.escapedText)){_=_s(_,p.Property_0_does_not_exist_on_type_1,no(n),kn(T));break}}if(d8e(n.escapedText,s)){const T=no(n),P=kn(s);_=_s(_,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,P,P+"."+T)}else{const T=h7(s);if(T&&qs(T,n.escapedText))_=_s(_,p.Property_0_does_not_exist_on_type_1,no(n),kn(s)),d=yr(n,p.Did_you_forget_to_use_await);else{const P=no(n),O=kn(s),$=ctt(P,s);if($!==void 0)_=_s(_,p.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,P,O,$);else{const te=Bse(n,s);if(te!==void 0){const ce=xc(te),Se=c?p.Property_0_may_not_exist_on_type_1_Did_you_mean_2:p.Property_0_does_not_exist_on_type_1_Did_you_mean_2;_=_s(_,Se,P,O,ce),d=te.valueDeclaration&&yr(te.valueDeclaration,p._0_is_declared_here,ce)}else{const ce=att(s)?p.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:p.Property_0_does_not_exist_on_type_1;_=_s(Bre(_,s),ce,P,O)}}}}const h=Wg(Bn(n),n,_);d&&fa(h,d),l0(!c||_.code!==p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,h)}function att(n){return j.lib&&!j.lib.includes("dom")&&vKe(n,s=>s.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Li(s.symbol.escapedName)))&&Ng(n)}function d8e(n,s){const c=s.symbol&&qs($n(s.symbol),n);return c!==void 0&&!!c.valueDeclaration&&Ps(c.valueDeclaration)}function ott(n){const s=T_(n),_=wW().get(s);return _&&ioe(_.keys())}function ctt(n,s){const c=Y_(s).symbol;if(!c)return;const _=xc(c),h=wW().get(_);if(h){for(const[T,P]of h)if(gs(P,n))return T}}function m8e(n,s){return LP(n,za(s),106500)}function Bse(n,s){let c=za(s);if(typeof n!="string"){const _=n.parent;kr(_)&&(c=Vr(c,d=>y8e(_,s,d))),n=lr(n)}return LP(n,c,111551)}function g8e(n,s){const c=$s(n)?n:lr(n),_=za(s),d=c==="for"?Fr(_,h=>xc(h)==="htmlFor"):c==="class"?Fr(_,h=>xc(h)==="className"):void 0;return d!=null?d:LP(c,_,111551)}function jse(n,s){const c=Bse(n,s);return c&&xc(c)}function Jse(n,s,c){return E.assert(s!==void 0,"outername should always be defined"),I1(n,s,c,void 0,s,!1,!1,!0,(d,h,T)=>{E.assertEqual(s,h,"name should equal outerName");const P=H_(d,h,T);if(P)return P;let O;return d===pe?O=qi(["string","number","boolean","object","bigint","symbol"],te=>d.has(te.charAt(0).toUpperCase()+te.slice(1))?Pa(524288,te):void 0).concat(ia(d.values())):O=ia(d.values()),LP(Li(h),O,T)})}function ltt(n,s,c){const _=Jse(n,s,c);return _&&xc(_)}function hz(n,s){return s.exports&&LP(lr(n),av(s),2623475)}function _tt(n,s){const c=hz(n,s);return c&&xc(c)}function utt(n,s,c){function _(T){const P=mv(n,T);if(P){const O=yb($n(P));return!!O&&bd(O)>=1&&la(c,$p(O,0))}return!1}const d=Km(s)?"set":"get";if(!_(d))return;let h=SD(s.expression);return h===void 0?h=d:h+="."+d,h}function ftt(n,s){const c=s.types.filter(_=>!!(_.flags&128));return DC(n.value,c,_=>_.value)}function LP(n,s,c){return DC(n,s,_);function _(d){const h=xc(d);if(!ts(h,'"')){if(d.flags&c)return h;if(d.flags&2097152){const T=L1(d);if(T&&T.flags&c)return h}}}}function MP(n,s,c){const _=n&&n.flags&106500&&n.valueDeclaration;if(!_)return;const d=Iu(_,8),h=n.valueDeclaration&&A_(n.valueDeclaration)&&Ei(n.valueDeclaration.name);if(!(!d&&!h)&&!(s&&oO(s)&&!(n.flags&65536))){if(c){const T=On(s,Eo);if(T&&T.symbol===n)return}(rc(n)&1?Fi(n).target:n).isReferenced=67108863}}function h8e(n,s){return n.kind===110||!!s&&Sc(n)&&s===hp(Ku(n))}function ptt(n,s){switch(n.kind){case 211:return zse(n,n.expression.kind===108,s,Wu(Xi(n.expression)));case 166:return zse(n,!1,s,Wu(Xi(n.left)));case 205:return zse(n,!1,s,ii(n))}}function y8e(n,s,c){return Vse(n,n.kind===211&&n.expression.kind===108,!1,s,c)}function zse(n,s,c,_){if(Wa(_))return!0;const d=qs(_,c);return!!d&&Vse(n,s,!1,_,d)}function Vse(n,s,c,_,d){if(Wa(_))return!0;if(d.valueDeclaration&&N_(d.valueDeclaration)){const h=Pl(d.valueDeclaration);return!c_(n)&&!!On(n,T=>T===h)}return i8e(n,s,c,_,d)}function dtt(n){const s=n.initializer;if(s.kind===261){const c=s.declarations[0];if(c&&!Ns(c.name))return hr(c)}else if(s.kind===80)return hp(s)}function mtt(n){return x_(n).length===1&&!!Rm(n,ye)}function gtt(n){const s=uo(n);if(s.kind===80){const c=hp(s);if(c.flags&3){let _=n,d=n.parent;for(;d;){if(d.kind===249&&_===d.statement&&dtt(d)===c&&mtt(a_(d.expression)))return!0;_=d,d=d.parent}}}return!1}function htt(n,s){return n.flags&64?ytt(n,s):v8e(n,uC(n.expression),s)}function ytt(n,s){const c=Xi(n.expression),_=YE(c,n.expression);return qJ(v8e(n,yd(_,n.expression),s),n,_!==c)}function v8e(n,s,c){const _=jb(n)!==0||l8e(n)?Wu(s):s,d=n.argumentExpression,h=Xi(d);if(q(_)||_===ai)return _;if(cae(_)&&!Qa(d))return Fe(d,p.A_const_enum_member_can_only_be_accessed_using_a_string_literal),$e;const T=gtt(d)?ye:h,P=Km(n)?4|(yv(_)&&!V3(_)?2:0):32,O=Mh(_,T,P,n)||$e;return CEe(u8e(n,Jr(n).resolvedSymbol,O,d,c),n)}function b8e(n){return Xm(n)||Qb(n)||V_(n)}function Ik(n){return b8e(n)&&mn(n.typeArguments,na),n.kind===215?Xi(n.template):V_(n)?Xi(n.attributes):n.kind!==170&&mn(n.arguments,s=>{Xi(s)}),A}function jm(n){return Ik(n),Ce}function vtt(n,s,c){let _,d,h=0,T,P=-1,O;E.assert(!s.length);for(const $ of n){const te=$.declaration&&hr($.declaration),ce=$.declaration&&$.declaration.parent;!d||te===d?_&&ce===_?T=T+1:(_=ce,T=h):(T=h=s.length,_=ce),d=te,N$($)?(P++,O=P,h++):O=T,s.splice(O,0,c?mXe($,c):$)}}function yz(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function vz(n){return qc(n,yz)}function T8e(n){return!!(n.flags&16384)}function btt(n){return!!(n.flags&49155)}function bz(n,s,c,_=!1){let d,h=!1,T=qu(c),P=bd(c);if(n.kind===215)if(d=s.length,n.template.kind===228){const O=ka(n.template.templateSpans);h=fc(O.literal)||!!O.literal.isUnterminated}else{const O=n.template;E.assert(O.kind===15),h=!!O.isUnterminated}else if(n.kind===170)d=D8e(n,c);else if(V_(n)){if(h=n.attributes.end===n.end,h)return!0;d=P===0?s.length:1,T=s.length===0?T:1,P=Math.min(P,1)}else if(n.arguments){d=_?s.length+1:s.length,h=n.arguments.end===n.end;const O=vz(s);if(O>=0)return O>=bd(c)&&(sm(c)||OT)return!1;if(h||d>=P)return!0;for(let O=d;O=_&&s.length<=c}function yb(n){return c7(n,0,!1)}function x8e(n){return c7(n,0,!1)||c7(n,1,!1)}function c7(n,s,c){if(n.flags&524288){const _=Up(n);if(c||_.properties.length===0&&_.indexInfos.length===0){if(s===0&&_.callSignatures.length===1&&_.constructSignatures.length===0)return _.callSignatures[0];if(s===1&&_.constructSignatures.length===1&&_.callSignatures.length===0)return _.constructSignatures[0]}}}function S8e(n,s,c,_){const d=e7(n.typeParameters,n,0,_),h=_7(s),T=c&&(h&&h.flags&262144?c.nonFixingMapper:c.mapper),P=T?Ak(s,T):s;return Wie(P,n,(O,$)=>{Og(d.inferences,O,$)}),c||qie(s,n,(O,$)=>{Og(d.inferences,O,$,128)}),JE(n,sse(d),Zn(s.declaration))}function Ttt(n,s,c,_){const d=uz(s,n),h=Ok(n.attributes,d,_,c);return Og(_.inferences,h,d),sse(_)}function k8e(n){if(!n)return ar;const s=Xi(n);return WC(n.parent)?Ig(s):c_(n.parent)?WJ(s):s}function Wse(n,s,c,_,d){if(V_(n))return Ttt(n,s,_,d);if(n.kind!==170){const O=$i(s.typeParameters,te=>!!ob(te)),$=Z_(n,O?8:0);if($){const te=Va(s);if(Cv(te)){const ce=Dv(n);if(!(!O&&Z_(n,8)!==$)){const St=Xie(LZe(ce,1)),Kt=Ji($,St),_n=yb(Kt),Gn=_n&&_n.typeParameters?cb(Hre(_n,_n.typeParameters)):Kt;Og(d.inferences,Gn,te,128)}const Te=e7(s.typeParameters,s,d.flags),Ze=Ji($,ce&&ce.returnMapper);Og(Te.inferences,Ze,te),d.returnMapper=dt(Te.inferences,Fk)?Xie(jZe(Te)):void 0}}}const h=u7(s),T=h?Math.min(qu(s)-1,c.length):c.length;if(h&&h.flags&262144){const O=Fr(d.inferences,$=>$.typeParameter===h);O&&(O.impliedArity=qc(c,yz,T)<0?c.length-T:void 0)}const P=X1(s);if(P&&Cv(P)){const O=w8e(n);Og(d.inferences,k8e(O),P)}for(let O=0;O=c-1){const te=n[c-1];if(yz(te)){const ce=te.kind===237?te.type:Ok(te.expression,_,d,h);return w0(ce)?C8e(ce):$l(P0(33,ce,Pt,te.kind===230?te.expression:te),T)}}const P=[],O=[],$=[];for(let te=s;te_s(void 0,p.Type_0_does_not_satisfy_the_constraint_1):void 0,ce=_||p.Type_0_does_not_satisfy_the_constraint_1;P||(P=_u(h,T));const Se=T[O];if(!J_(Se,Uu(Ji($,P),Se),c?s[O]:void 0,ce,te))return}}return T}function E8e(n){if(_x(n.tagName))return 2;const s=Y_(Xi(n.tagName));return Pn(As(s,1))?0:Pn(As(s,0))?1:2}function xtt(n,s,c,_,d,h,T){const P=uz(s,n),O=Ok(n.attributes,P,void 0,_),$=_&4?KE(O):O;return te()&&Die($,P,c,d?n.tagName:void 0,n.attributes,void 0,h,T);function te(){var ce;if(wse(n))return!0;const Se=(Jd(n)||eT(n))&&!(_x(n.tagName)||Vd(n.tagName))?Xi(n.tagName):void 0;if(!Se)return!0;const Te=As(Se,0);if(!Pn(Te))return!0;const Ze=N7e(n);if(!Ze)return!0;const St=Xo(Ze,111551,!0,!1,n);if(!St)return!0;const Kt=$n(St),_n=As(Kt,0);if(!Pn(_n))return!0;let Gn=!1,Nn=0;for(const Mn of _n){const Xt=$p(Mn,0),dn=As(Xt,0);if(!!Pn(dn))for(const Cn of dn){if(Gn=!0,sm(Cn))return!0;const Un=qu(Cn);Un>Nn&&(Nn=Un)}}if(!Gn)return!0;let Ht=1/0;for(const Mn of Te){const Xt=bd(Mn);Xt{d.push(h.expression)}),d}if(n.kind===170)return Stt(n);if(V_(n))return n.attributes.properties.length>0||Jd(n)&&n.parent.children.length>0?[n.attributes]:Ve;const s=n.arguments||Ve,c=vz(s);if(c>=0){const _=s.slice(0,c);for(let d=c;d{var $;const te=T.target.elementFlags[O],ce=BP(h,te&4?$l(P):P,!!(te&12),($=T.target.labeledElementDeclarations)==null?void 0:$[O]);_.push(ce)}):_.push(h)}return _}return s}function Stt(n){const s=n.expression,c=sae(n);if(c){const _=[];for(const d of c.parameters){const h=$n(d);_.push(BP(s,h))}return _}return E.fail()}function D8e(n,s){return j.experimentalDecorators?ktt(n,s):2}function ktt(n,s){switch(n.parent.kind){case 263:case 231:return 1;case 172:return ym(n.parent)?3:2;case 174:case 177:case 178:return ee===0||s.parameters.length<=2?2:3;case 169:return 3;default:return E.fail()}}function A8e(n,s){let c,_;const d=Bn(n);if(kr(n.expression)){const h=Yv(d,n.expression.name);c=h.start,_=s?h.length:n.end-c}else{const h=Yv(d,n.expression);c=h.start,_=s?h.length:n.end-c}return{start:c,length:_,sourceFile:d}}function jP(n,s,...c){if(js(n)){const{sourceFile:_,start:d,length:h}=A8e(n);return"message"in s?vl(_,d,h,s,...c):JW(_,s)}else return"message"in s?yr(n,s,...c):Wg(Bn(n),n,s)}function Ctt(n){if(!js(n)||!we(n.expression))return!1;const s=Mc(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=s==null?void 0:s.valueDeclaration;if(!c||!ns(c)||!j6(c.parent)||!f2(c.parent.parent)||!we(c.parent.parent.expression))return!1;const _=tie(!1);return _?yp(c.parent.parent.expression,!0)===_:!1}function N8e(n,s,c,_){var d;const h=vz(c);if(h>-1)return yr(c[h],p.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let T=Number.POSITIVE_INFINITY,P=Number.NEGATIVE_INFINITY,O=Number.NEGATIVE_INFINITY,$=Number.POSITIVE_INFINITY,te;for(const St of s){const Kt=bd(St),_n=qu(St);KtO&&(O=Kt),c.length<_n&&_n<$&&($=_n)}const ce=dt(s,sm),Se=ce?T:Td?T=Math.min(T,O):$1&&(Gn=Mn(ce,$d,Te,Nn)),Gn||(Gn=Mn(ce,Ju,Te,Nn)),Gn)return Gn;if(Gn=wtt(n,ce,Se,!!c,_),Jr(n).resolvedSignature=Gn,$)if(St)if(St.length===1||St.length>3){const Xt=St[St.length-1];let dn;St.length>3&&(dn=_s(dn,p.The_last_overload_gave_the_following_error),dn=_s(dn,p.No_overload_matches_this_call)),h&&(dn=_s(dn,h));const Cn=RP(n,Se,Xt,Ju,0,!0,()=>dn);if(Cn)for(const Un of Cn)Xt.declaration&&St.length>3&&fa(Un,yr(Xt.declaration,p.The_last_overload_is_declared_here)),Ht(Xt,Un),xa.add(Un);else E.fail("No error for last overload signature")}else{const Xt=[];let dn=0,Cn=Number.MAX_VALUE,Un=0,ws=0;for(const Hu of St){const Nt=RP(n,Se,Hu,Ju,0,!0,()=>_s(void 0,p.Overload_0_of_1_2_gave_the_following_error,ws+1,ce.length,Rl(Hu)));Nt?(Nt.length<=Cn&&(Cn=Nt.length,Un=ws),dn=Math.max(dn,Nt.length),Xt.push(Nt)):E.fail("No error for 3 or fewer overload signatures"),ws++}const Sr=dn>1?Xt[Un]:vp(Xt);E.assert(Sr.length>0,"No errors reported for 3 or fewer overload signatures");let Ts=_s(an(Sr,Rle),p.No_overload_matches_this_call);h&&(Ts=_s(Ts,h));const cc=[...Na(Sr,Hu=>Hu.relatedInformation)];let uu;if($i(Sr,Hu=>Hu.start===Sr[0].start&&Hu.length===Sr[0].length&&Hu.file===Sr[0].file)){const{file:Hu,start:am,length:Nt}=Sr[0];uu={file:Hu,start:am,length:Nt,code:Ts.code,category:Ts.category,messageText:Ts,relatedInformation:cc}}else uu=Wg(Bn(n),n,Ts,cc);Ht(St[0],uu),xa.add(uu)}else if(Kt)xa.add(N8e(n,[Kt],Se,h));else if(_n)Hse(_n,n.typeArguments,!0,h);else{const Xt=Vr(s,dn=>Use(dn,te));Xt.length===0?xa.add(Ett(n,s,te,h)):xa.add(N8e(n,Xt,Se,h))}return Gn;function Ht(Xt,dn){var Cn,Un;const ws=St,Sr=Kt,Ts=_n,cc=((Un=(Cn=Xt.declaration)==null?void 0:Cn.symbol)==null?void 0:Un.declarations)||Ve,Hu=cc.length>1?Fr(cc,am=>Eo(am)&&Xf(am.body)):void 0;if(Hu){const am=gd(Hu),Nt=!am.typeParameters;Mn([am],Ju,Nt)&&fa(dn,yr(Hu,p.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}St=ws,Kt=Sr,_n=Ts}function Mn(Xt,dn,Cn,Un=!1){if(St=void 0,Kt=void 0,_n=void 0,Cn){const ws=Xt[0];if(dt(te)||!bz(n,Se,ws,Un))return;if(RP(n,Se,ws,dn,0,!1,void 0)){St=[ws];return}return ws}for(let ws=0;ws0),Rk(n),_||s.length===1||s.some(h=>!!h.typeParameters)?Ntt(n,s,c,d):Dtt(s)}function Dtt(n){const s=qi(n,O=>O.thisParameter);let c;s.length&&(c=P8e(s,s.map(zP)));const{min:_,max:d}=kue(n,Att),h=[];for(let O=0;Od_(te)?Ovb(te,O))))}const T=qi(n,O=>d_(O)?ka(O.parameters):void 0);let P=128;if(T.length!==0){const O=$l(zr(qi(n,f4e),2));h.push(I8e(T,O)),P|=1}return n.some(N$)&&(P|=2),Mm(n[0].declaration,void 0,c,h,ca(n.map(Va)),void 0,_,P)}function Att(n){const s=n.parameters.length;return d_(n)?s-1:s}function P8e(n,s){return I8e(n,zr(s,2))}function I8e(n,s){return fb(wa(n),s)}function Ntt(n,s,c,_){const d=Ott(s,zt===void 0?c.length:zt),h=s[d],{typeParameters:T}=h;if(!T)return h;const P=b8e(n)?n.typeArguments:void 0,O=P?pJ(h,Ptt(P,T,Zn(n))):Itt(n,T,h,c,_);return s[d]=O,O}function Ptt(n,s,c){const _=n.map(ux);for(;_.length>s.length;)_.pop();for(;_.length=s)return d;T>_&&(_=T,c=d)}return c}function Ftt(n,s,c){if(n.expression.kind===108){const O=gse(n.expression);if(Wa(O)){for(const $ of n.arguments)Xi($);return A}if(!q(O)){const $=Id(Pl(n));if($){const te=mi(O,$.typeArguments,$);return fC(n,te,s,c,0)}}return Ik(n)}let _,d=Xi(n.expression);if(Eb(n)){const O=YE(d,n.expression);_=O===d?0:qC(n)?16:8,d=O}else _=0;if(d=a8e(d,n.expression,Zet),d===ai)return xt;const h=Y_(d);if(q(h))return jm(n);const T=As(h,0),P=As(h,1).length;if(Tz(d,h,T.length,P))return!q(d)&&n.typeArguments&&Fe(n,p.Untyped_function_calls_may_not_accept_type_arguments),Ik(n);if(!T.length){if(P)Fe(n,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,kn(d));else{let O;if(n.arguments.length===1){const $=Bn(n).text;Yl($.charCodeAt(ua($,n.expression.end,!0)-1))&&(O=yr(n.expression,p.Are_you_missing_a_semicolon))}Xse(n.expression,h,0,O)}return jm(n)}return c&8&&!n.typeArguments&&T.some(Ltt)?(dEe(n,c),Re):T.some(O=>Zn(O.declaration)&&!!$U(O.declaration))?(Fe(n,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,kn(d)),jm(n)):fC(n,T,s,c,_)}function Ltt(n){return!!(n.typeParameters&&jae(Va(n)))}function Tz(n,s,c,_){return Wa(n)||Wa(s)&&!!(n.flags&262144)||!c&&!_&&!(s.flags&1048576)&&!(Wp(s).flags&131072)&&la(n,zo)}function Mtt(n,s,c){if(n.arguments&&ee<1){const T=vz(n.arguments);T>=0&&Fe(n.arguments[T],p.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let _=uC(n.expression);if(_===ai)return xt;if(_=Y_(_),q(_))return jm(n);if(Wa(_))return n.typeArguments&&Fe(n,p.Untyped_function_calls_may_not_accept_type_arguments),Ik(n);const d=As(_,1);if(d.length){if(!Rtt(n,d[0]))return jm(n);if(O8e(d,P=>!!(P.flags&4)))return Fe(n,p.Cannot_create_an_instance_of_an_abstract_class),jm(n);const T=_.symbol&&Xg(_.symbol);return T&&Mr(T,256)?(Fe(n,p.Cannot_create_an_instance_of_an_abstract_class),jm(n)):fC(n,d,s,c,0)}const h=As(_,0);if(h.length){const T=fC(n,h,s,c,0);return fe||(T.declaration&&!vd(T.declaration)&&Va(T)!==ar&&Fe(n,p.Only_a_void_function_can_be_called_with_the_new_keyword),X1(T)===ar&&Fe(n,p.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return Xse(n.expression,_,1),jm(n)}function O8e(n,s){return Ds(n)?dt(n,c=>O8e(c,s)):n.compositeKind===1048576?dt(n.compositeSignatures,s):s(n)}function $se(n,s){const c=xo(s);if(!Pn(c))return!1;const _=c[0];if(_.flags&2097152){const d=_.types,h=$6e(d);let T=0;for(const P of _.types){if(!h[T]&&Br(P)&3&&(P.symbol===n||$se(n,P)))return!0;T++}return!1}return _.symbol===n?!0:$se(n,_)}function Rtt(n,s){if(!s||!s.declaration)return!0;const c=s.declaration,_=Hx(c,24);if(!_||c.kind!==176)return!0;const d=Xg(c.parent.symbol),h=go(c.parent.symbol);if(!Mae(n,d)){const T=Pl(n);if(T&&_&16){const P=ux(T);if($se(c.parent.symbol,P))return!0}return _&8&&Fe(n,p.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,kn(h)),_&16&&Fe(n,p.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,kn(h)),!1}return!0}function F8e(n,s,c){let _;const d=c===0,h=Tb(s),T=h&&As(h,c).length>0;if(s.flags&1048576){const O=s.types;let $=!1;for(const te of O)if(As(te,c).length!==0){if($=!0,_)break}else if(_||(_=_s(_,d?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,kn(te)),_=_s(_,d?p.Not_all_constituents_of_type_0_are_callable:p.Not_all_constituents_of_type_0_are_constructable,kn(s))),$)break;$||(_=_s(void 0,d?p.No_constituent_of_type_0_is_callable:p.No_constituent_of_type_0_is_constructable,kn(s))),_||(_=_s(_,d?p.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:p.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,kn(s)))}else _=_s(_,d?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,kn(s));let P=d?p.This_expression_is_not_callable:p.This_expression_is_not_constructable;if(js(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:O}=Jr(n);O&&O.flags&32768&&(P=p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:_s(_,P),relatedMessage:T?p.Did_you_forget_to_use_await:void 0}}function Xse(n,s,c,_){const{messageChain:d,relatedMessage:h}=F8e(n,s,c),T=Wg(Bn(n),n,d);if(h&&fa(T,yr(n,h)),js(n.parent)){const{start:P,length:O}=A8e(n.parent,!0);T.start=P,T.length=O}xa.add(T),L8e(s,c,_?fa(T,_):T)}function L8e(n,s,c){if(!n.symbol)return;const _=Fi(n.symbol).originatingImport;if(_&&!Zu(_)){const d=As($n(Fi(n.symbol).target),s);if(!d||!d.length)return;fa(c,yr(_,p.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 Btt(n,s,c){const _=Xi(n.tag),d=Y_(_);if(q(d))return jm(n);const h=As(d,0),T=As(d,1).length;if(Tz(_,d,h.length,T))return Ik(n);if(!h.length){if(u_(n.parent)){const P=yr(n.tag,p.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 xa.add(P),jm(n)}return Xse(n.tag,d,0),jm(n)}return fC(n,h,s,c,0)}function jtt(n){switch(n.parent.kind){case 263:case 231:return p.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return p.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return p.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return p.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return E.fail()}}function Jtt(n,s,c){const _=Xi(n.expression),d=Y_(_);if(q(d))return jm(n);const h=As(d,0),T=As(d,1).length;if(Tz(_,d,h.length,T))return Ik(n);if(Vtt(n,h)&&!hu(n.expression)){const O=el(n.expression,!1);return Fe(n,p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,O),jm(n)}const P=jtt(n);if(!h.length){const O=F8e(n.expression,d,0),$=_s(O.messageChain,P),te=Wg(Bn(n.expression),n.expression,$);return O.relatedMessage&&fa(te,yr(n.expression,O.relatedMessage)),xa.add(te),L8e(d,0,te),jm(n)}return fC(n,h,s,c,0,P)}function xz(n,s){const c=hb(n),_=c&&zu(c),d=_&&H_(_,sf.Element,788968),h=d&&ct.symbolToEntityName(d,788968,n),T=I.createFunctionTypeNode(void 0,[I.createParameterDeclaration(void 0,void 0,"props",void 0,ct.typeToTypeNode(s,n))],h?I.createTypeReferenceNode(h,void 0):I.createKeywordTypeNode(133)),P=Pa(1,"props");return P.links.type=s,Mm(T,void 0,void 0,[P],d?go(d):$e,void 0,1,0)}function ztt(n,s,c){if(_x(n.tagName)){const T=e8e(n),P=xz(n,T);return Jh(Ok(n.attributes,uz(P,n),void 0,0),T,n.tagName,n.attributes),Pn(n.typeArguments)&&(mn(n.typeArguments,na),xa.add(u6(Bn(n),n.typeArguments,p.Expected_0_type_arguments_but_got_1,0,Pn(n.typeArguments)))),P}const _=Xi(n.tagName),d=Y_(_);if(q(d))return jm(n);const h=Z3e(_,n);return Tz(_,d,h.length,0)?Ik(n):h.length===0?(Fe(n.tagName,p.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,el(n.tagName)),jm(n)):fC(n,h,s,c,0)}function Vtt(n,s){return s.length&&$i(s,c=>c.minArgumentCount===0&&!d_(c)&&c.parameters.length1?jc(n.arguments[1]):void 0;for(let h=2;h{const T=Wu(d);OJ(h,T)||DCe(d,h,c,p.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)})}function Ytt(n){const s=Xi(n.expression),c=YE(s,n.expression);return qJ(Ig(c),n,c!==s)}function Ztt(n){return n.flags&64?Ytt(n):Ig(Xi(n.expression))}function V8e(n){if(O7e(n),mn(n.typeArguments,na),n.kind===233){const c=G0(n.parent);c.kind===226&&c.operatorToken.kind===104&&n2(n,c.right)&&Fe(n,p.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const s=n.kind===233?Xi(n.expression):a2(n.exprName)?DP(n.exprName):Xi(n.exprName);return U8e(s,n)}function U8e(n,s){const c=s.typeArguments;if(n===ai||q(n)||!dt(c))return n;let _=!1,d;const h=P(n),T=_?d:n;return T&&xa.add(u6(Bn(s),c,p.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,kn(T))),h;function P($){let te=!1,ce=!1;const Se=Te($);return _||(_=ce),te&&!ce&&(d!=null||(d=$)),Se;function Te(Ze){if(Ze.flags&524288){const St=Up(Ze),Kt=O(St.callSignatures),_n=O(St.constructSignatures);if(te||(te=St.callSignatures.length!==0||St.constructSignatures.length!==0),ce||(ce=Kt.length!==0||_n.length!==0),Kt!==St.callSignatures||_n!==St.constructSignatures){const Gn=yc(void 0,St.members,Kt,_n,St.indexInfos);return Gn.objectFlags|=8388608,Gn.node=s,Gn}}else if(Ze.flags&58982400){const St=B_(Ze);if(St){const Kt=Te(St);if(Kt!==St)return Kt}}else{if(Ze.flags&1048576)return So(Ze,P);if(Ze.flags&2097152)return ca(cl(Ze.types,Te))}return Ze}}function O($){const te=Vr($,ce=>!!ce.typeParameters&&Use(ce,c));return cl(te,ce=>{const Se=Hse(ce,c,!0);return Se?JE(ce,Se,Zn(ce.declaration)):ce})}}function Ktt(n){return na(n.type),Kse(n.expression,n.type)}function Kse(n,s,c){const _=Xi(n,c),d=ii(s);if(q(d))return d;const h=On(s.parent,T=>T.kind===238||T.kind===357);return Jh(_,d,h,n,p.Type_0_does_not_satisfy_the_expected_type_1),_}function ent(n){return Xat(n),n.keywordToken===105?eae(n):n.keywordToken===102?tnt(n):E.assertNever(n.keywordToken)}function W8e(n){switch(n.keywordToken){case 102:return D4e();case 105:const s=eae(n);return q(s)?$e:ynt(s);default:E.assertNever(n.keywordToken)}}function eae(n){const s=Qle(n);if(s)if(s.kind===176){const c=hr(s.parent);return $n(c)}else{const c=hr(s);return $n(c)}else return Fe(n,p.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),$e}function tnt(n){R===100||R===199?Bn(n).impliedNodeFormat!==99&&Fe(n,p.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):R<6&&R!==4&&Fe(n,p.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const s=Bn(n);return E.assert(!!(s.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?w4e():$e}function zP(n){const s=$n(n);if(H){const c=n.valueDeclaration;if(c&&r1(c))return A0(s)}return s}function tae(n,s,c="arg"){return n?(E.assert(we(n.name)),n.name.escapedText):`${c}_${s}`}function dC(n,s,c){const _=n.parameters.length-(d_(n)?1:0);if(s<_)return n.parameters[s].escapedName;const d=n.parameters[_]||st,h=c||$n(d);if(_a(h)){const T=h.target.labeledElementDeclarations,P=s-_;return tae(T==null?void 0:T[P],P,d.escapedName)}return d.escapedName}function nnt(n,s){var c;if(((c=n.declaration)==null?void 0:c.kind)===324)return;const _=n.parameters.length-(d_(n)?1:0);if(s<_){const P=n.parameters[s],O=q8e(P);return O?{parameter:O,parameterName:P.escapedName,isRestParameter:!1}:void 0}const d=n.parameters[_]||st,h=q8e(d);if(!h)return;const T=$n(d);if(_a(T)){const P=T.target.labeledElementDeclarations,O=s-_,$=P==null?void 0:P[O],te=!!($!=null&&$.dotDotDotToken);return $?(E.assert(we($.name)),{parameter:$.name,parameterName:$.name.escapedText,isRestParameter:te}):void 0}if(s===_)return{parameter:h,parameterName:d.escapedName,isRestParameter:!0}}function q8e(n){return n.valueDeclaration&&ns(n.valueDeclaration)&&we(n.valueDeclaration.name)&&n.valueDeclaration.name}function H8e(n){return n.kind===202||ns(n)&&n.name&&we(n.name)}function rnt(n,s){const c=n.parameters.length-(d_(n)?1:0);if(s=c-1)return s===c-1?d:$l(Cu(d,ye));const h=[],T=[],P=[];for(let O=s;O!(O&1)),P=T<0?h.target.fixedLength:T;P>0&&(d=n.parameters.length-1+P)}}if(d===void 0){if(!c&&n.flags&32)return 0;d=n.minArgumentCount}if(_)return d;for(let h=d-1;h>=0;h--){const T=$p(n,h);if(ol(T,T8e).flags&131072)break;d=h}n.resolvedMinArgumentCount=d}return n.resolvedMinArgumentCount}function sm(n){if(d_(n)){const s=$n(n.parameters[n.parameters.length-1]);return!_a(s)||s.target.hasRestElement}return!1}function _7(n){if(d_(n)){const s=$n(n.parameters[n.parameters.length-1]);if(!_a(s))return s;if(s.target.hasRestElement)return eC(s,s.target.fixedLength)}}function u7(n){const s=_7(n);return s&&!wf(s)&&!Wa(s)?s:void 0}function nae(n){return rae(n,jn)}function rae(n,s){return n.parameters.length>0?$p(n,0):s}function G8e(n,s,c){const _=n.parameters.length-(d_(n)?1:0);for(let d=0;d<_;d++){const h=n.parameters[d].valueDeclaration;if(h.type){const T=Vl(h);T&&Og(c.inferences,ii(T),$p(s,d))}}}function int(n,s){if(s.typeParameters)if(!n.typeParameters)n.typeParameters=s.typeParameters;else return;if(s.thisParameter){const _=n.thisParameter;(!_||_.valueDeclaration&&!_.valueDeclaration.type)&&(_||(n.thisParameter=fb(s.thisParameter,void 0)),VP(n.thisParameter,$n(s.thisParameter)))}const c=n.parameters.length-(d_(n)?1:0);for(let _=0;_=0);const h=wc(_.parent)?$n(hr(_.parent.parent)):x7e(_.parent),T=wc(_.parent)?Pt:S7e(_.parent),P=Hp(d),O=fp("target",h),$=fp("propertyKey",T),te=fp("parameterIndex",P);c.decoratorSignature=v7(void 0,void 0,[O,$,te],ar);break}case 174:case 177:case 178:case 172:{const _=s;if(!ei(_.parent))break;const d=x7e(_),h=fp("target",d),T=S7e(_),P=fp("propertyKey",T),O=Is(_)?ar:L4e(ux(_));if(ee!==0&&(!Is(s)||ym(s))){const te=L4e(ux(_)),ce=fp("descriptor",te);c.decoratorSignature=v7(void 0,void 0,[h,P,ce],zr([O,ar]))}else c.decoratorSignature=v7(void 0,void 0,[h,P],zr([O,ar]));break}}return c.decoratorSignature===A?void 0:c.decoratorSignature}function sae(n){return Z?hnt(n):gnt(n)}function UP(n){const s=oP(!0);return s!==Ls?(n=N0(hC(n))||Jt,S0(s,[n])):Jt}function Q8e(n){const s=I4e(!0);return s!==Ls?(n=N0(hC(n))||Jt,S0(s,[n])):Jt}function WP(n,s){const c=UP(s);return c===Jt?(Fe(n,Zu(n)?p.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:p.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),$e):(tie(!0)||Fe(n,Zu(n)?p.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:p.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),c)}function ynt(n){const s=Pa(0,"NewTargetExpression"),c=Pa(4,"target",8);c.parent=s,c.links.type=n;const _=Us([c]);return s.members=_,yc(s,_,Ve,Ve,Ve)}function Cz(n,s){if(!n.body)return $e;const c=Il(n),_=(c&2)!==0,d=(c&1)!==0;let h,T,P,O=ar;if(n.body.kind!==241)h=jc(n.body,s&&s&-9),_&&(h=hC(y7(h,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(d){const $=nEe(n,s);$?$.length>0&&(h=zr($,2)):O=jn;const{yieldTypes:te,nextTypes:ce}=vnt(n,s);T=dt(te)?zr(te,2):void 0,P=dt(ce)?ca(ce):void 0}else{const $=nEe(n,s);if(!$)return c&2?WP(n,jn):jn;if($.length===0){const te=oz(n,void 0),ce=te&&(tI(te,c)||ar).flags&32768?Pt:ar;return c&2?WP(n,ce):ce}h=zr($,2)}if(h||T||P){if(T&&XJ(n,T,3),h&&XJ(n,h,1),P&&XJ(n,P,2),h&&Gp(h)||T&&Gp(T)||P&&Gp(P)){const $=Sse(n),te=$?$===gd(n)?d?void 0:h:lz(Va($),n,void 0):void 0;d?(T=Vie(T,te,0,_),h=Vie(h,te,1,_),P=Vie(P,te,2,_)):h=SZe(h,te,_)}T&&(T=Wu(T)),h&&(h=Wu(h)),P&&(P=Wu(P))}return d?Y8e(T||jn,h||O,P||B3e(2,n)||Jt,_):_?UP(h||O):h||O}function Y8e(n,s,c,_){const d=_?Ma:io,h=d.getGlobalGeneratorType(!1);if(n=d.resolveIterationType(n,void 0)||Jt,s=d.resolveIterationType(s,void 0)||Jt,c=d.resolveIterationType(c,void 0)||Jt,h===Ls){const T=d.getGlobalIterableIteratorType(!1),P=T!==Ls?UEe(T,d):void 0,O=P?P.returnType:ke,$=P?P.nextType:Pt;return la(s,O)&&la($,c)?T!==Ls?VE(T,[n]):(d.getGlobalIterableIteratorType(!0),Oi):(d.getGlobalGeneratorType(!0),Oi)}return VE(h,[n,s,c])}function vnt(n,s){const c=[],_=[],d=(Il(n)&2)!==0;return jle(n.body,h=>{const T=h.expression?Xi(h.expression,s):hi;Gf(c,Z8e(h,T,ke,d));let P;if(h.asteriskToken){const O=Mz(T,d?19:17,h.expression);P=O&&O.nextType}else P=Z_(h,void 0);P&&Gf(_,P)}),{yieldTypes:c,nextTypes:_}}function Z8e(n,s,c,_){const d=n.expression||n,h=n.asteriskToken?P0(_?19:17,s,c,d):s;return _?Tb(h,d,n.asteriskToken?p.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:p.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h}function K8e(n,s,c){let _=0;for(let d=0;d=s?c[d]:void 0;_|=h!==void 0?vL.get(h)||32768:0}return _}function eEe(n){const s=Jr(n);if(s.isExhaustive===void 0){s.isExhaustive=0;const c=bnt(n);s.isExhaustive===0&&(s.isExhaustive=c)}else s.isExhaustive===0&&(s.isExhaustive=!1);return s.isExhaustive}function bnt(n){if(n.expression.kind===221){const _=y3e(n);if(!_)return!1;const d=wg(jc(n.expression.expression)),h=K8e(0,0,_);return d.flags&3?(556800&h)===556800:!Fg(d,T=>(k_(T)&h)===h)}const s=jc(n.expression);if(!QE(s))return!1;const c=KJ(n);return!c.length||dt(c,bZe)?!1:hKe(So(s,j_),c)}function tEe(n){return n.endFlowNode&&EP(n.endFlowNode)}function nEe(n,s){const c=Il(n),_=[];let d=tEe(n),h=!1;if(Kv(n.body,T=>{const P=T.expression;if(P){if(P.kind===213&&P.expression.kind===80&&jc(P.expression).symbol===n.symbol){h=!0;return}let O=jc(P,s&&s&-9);c&2&&(O=hC(y7(O,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),O.flags&131072&&(h=!0),Gf(_,O)}else d=!0}),!(_.length===0&&!d&&(h||Tnt(n))))return H&&_.length&&d&&!(vd(n)&&_.some(T=>T.symbol===n.symbol))&&Gf(_,Pt),_}function Tnt(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function aae(n,s){r(c);return;function c(){const _=Il(n),d=s&&tI(s,_);if(d&&(Qo(d,16384)||d.flags&32769)||n.kind===173||fc(n.body)||n.body.kind!==241||!tEe(n))return;const h=n.flags&1024,T=Kf(n)||n;if(d&&d.flags&131072)Fe(T,p.A_function_returning_never_cannot_have_a_reachable_end_point);else if(d&&!h)Fe(T,p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(d&&H&&!la(Pt,d))Fe(T,p.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!d){if(!h)return;const P=Va(gd(n));if(QEe(n,P))return}Fe(T,p.Not_all_code_paths_return_a_value)}}}function rEe(n,s){if(E.assert(n.kind!==174||Sp(n)),Rk(n),fo(n)&&yC(n,n.name),s&&s&4&&Cf(n)){if(!Kf(n)&&!CO(n)){const _=o7(n);if(_&&Cv(Va(_))){const d=Jr(n);if(d.contextFreeType)return d.contextFreeType;const h=Cz(n,s),T=Mm(void 0,void 0,void 0,Ve,h,void 0,0,64),P=yc(n.symbol,U,[T],Ve,Ve);return P.objectFlags|=262144,d.contextFreeType=P}}return mo}return!Gz(n)&&n.kind===218&&Vae(n),xnt(n,s),$n(hr(n))}function xnt(n,s){const c=Jr(n);if(!(c.flags&64)){const _=o7(n);if(!(c.flags&64)){c.flags|=64;const d=wl(As($n(hr(n)),0));if(!d)return;if(Cf(n))if(_){const h=Dv(n);let T;if(s&&s&2){G8e(d,_,h);const P=_7(_);P&&P.flags&262144&&(T=Ak(_,h.nonFixingMapper))}T||(T=h?Ak(_,h.mapper):_),int(d,T)}else snt(d);else if(_&&!n.typeParameters&&_.parameters.length>n.parameters.length){const h=Dv(n);s&&s&2&&G8e(d,_,h)}if(_&&!Sk(n)&&!d.resolvedReturnType){const h=Cz(n,s);d.resolvedReturnType||(d.resolvedReturnType=h)}d7(n)}}}function Snt(n){E.assert(n.kind!==174||Sp(n));const s=Il(n),c=Sk(n);if(aae(n,c),n.body)if(Kf(n)||Va(gd(n)),n.body.kind===241)na(n.body);else{const _=Xi(n.body),d=c&&tI(c,s);if(d)if((s&3)===2){const h=y7(_,!1,n.body,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Jh(h,d,n.body,n.body)}else Jh(_,d,n.body,n.body)}}function Ez(n,s,c,_=!1){if(!la(s,pi)){const d=_&&g7(s);return bh(n,!!d&&la(d,pi),c),!1}return!0}function knt(n){if(!js(n)||!Mx(n))return!1;const s=jc(n.arguments[2]);if(Wc(s,"value")){const d=qs(s,"writable"),h=d&&$n(d);if(!h||h===We||h===Tt)return!0;if(d&&d.valueDeclaration&&Dc(d.valueDeclaration)){const T=d.valueDeclaration.initializer,P=Xi(T);if(P===We||P===Tt)return!0}return!1}return!qs(s,"set")}function Xp(n){return!!(rc(n)&8||n.flags&4&&Ff(n)&64||n.flags&3&&Nse(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||dt(n.declarations,knt))}function iEe(n,s,c){var _,d;if(c===0)return!1;if(Xp(s)){if(s.flags&4&&Mo(n)&&n.expression.kind===110){const h=df(n);if(!(h&&(h.kind===176||vd(h))))return!0;if(s.valueDeclaration){const T=rr(s.valueDeclaration),P=h.parent===s.valueDeclaration.parent,O=h===s.valueDeclaration.parent,$=T&&((_=s.parent)==null?void 0:_.valueDeclaration)===h.parent,te=T&&((d=s.parent)==null?void 0:d.valueDeclaration)===h;return!(P||O||$||te)}}return!0}if(Mo(n)){const h=uo(n.expression);if(h.kind===80){const T=Jr(h).resolvedSymbol;if(T.flags&2097152){const P=pp(T);return!!P&&P.kind===274}}}return!1}function f7(n,s,c){const _=nl(n,7);return _.kind!==80&&!Mo(_)?(Fe(n,s),!1):_.flags&64?(Fe(n,c),!1):!0}function Cnt(n){Xi(n.expression);const s=uo(n.expression);if(!Mo(s))return Fe(s,p.The_operand_of_a_delete_operator_must_be_a_property_reference),Sn;kr(s)&&Ei(s.name)&&Fe(s,p.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=Jr(s),_=X_(c.resolvedSymbol);return _&&(Xp(_)&&Fe(s,p.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Ent(s,_)),Sn}function Ent(n,s){const c=$n(s);H&&!(c.flags&131075)&&!(be?s.flags&16777216:k_(c)&16777216)&&Fe(n,p.The_operand_of_a_delete_operator_must_be_optional)}function wnt(n){return Xi(n.expression),yh}function Dnt(n){return Xi(n.expression),hi}function sEe(n){let s=!1;const c=P9(n);if(c&&ec(c)){const _=f1(n)?p.await_expression_cannot_be_used_inside_a_class_static_block:p.await_using_statements_cannot_be_used_inside_a_class_static_block;Fe(n,_),s=!0}else if(!(n.flags&65536))if(O9(n)){const _=Bn(n);if(!Pv(_)){let d;if(!Fx(_,j)){d!=null||(d=gm(_,n.pos));const h=f1(n)?p.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:p.await_using_statements_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,T=vl(_,d.start,d.length,h);xa.add(T),s=!0}switch(R){case 100:case 199:if(_.impliedNodeFormat===1){d!=null||(d=gm(_,n.pos)),xa.add(vl(_,d.start,d.length,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),s=!0;break}case 7:case 99:case 4:if(ee>=4)break;default:d!=null||(d=gm(_,n.pos));const h=f1(n)?p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:p.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher;xa.add(vl(_,d.start,d.length,h)),s=!0;break}}}else{const _=Bn(n);if(!Pv(_)){const d=gm(_,n.pos),h=f1(n)?p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,T=vl(_,d.start,d.length,h);if(c&&c.kind!==176&&(Il(c)&2)===0){const P=yr(c,p.Did_you_mean_to_mark_this_function_as_async);fa(T,P)}xa.add(T),s=!0}}return f1(n)&&yse(n)&&(Fe(n,p.await_expressions_cannot_be_used_in_a_parameter_initializer),s=!0),s}function Ant(n){r(()=>sEe(n));const s=Xi(n.expression),c=y7(s,!0,n,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===s&&!q(c)&&!(s.flags&3)&&l0(!1,yr(n,p.await_has_no_effect_on_the_type_of_this_expression)),c}function Nnt(n){const s=Xi(n.operand);if(s===ai)return ai;switch(n.operand.kind){case 9:switch(n.operator){case 41:return ax(Hp(-n.operand.text));case 40:return ax(Hp(+n.operand.text))}break;case 10:if(n.operator===41)return ax(kJ({negative:!0,base10Value:R3(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return yd(s,n.operand),qP(s,12288)&&Fe(n.operand,p.The_0_operator_cannot_be_applied_to_type_symbol,sa(n.operator)),n.operator===40?(qP(s,2112)&&Fe(n.operand,p.Operator_0_cannot_be_applied_to_type_1,sa(n.operator),kn(zh(s))),ye):oae(s);case 54:Sae(s,n.operand);const c=k_(s)&12582912;return c===4194304?We:c===8388608?Ot:Sn;case 46:case 47:return Ez(n.operand,yd(s,n.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&f7(n.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),oae(s)}return $e}function Pnt(n){const s=Xi(n.operand);return s===ai?ai:(Ez(n.operand,yd(s,n.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&f7(n.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),oae(s))}function oae(n){return Qo(n,2112)?kl(n,3)||Qo(n,296)?pi:Oe:ye}function qP(n,s){if(Qo(n,s))return!0;const c=wg(n);return!!c&&Qo(c,s)}function Qo(n,s){if(n.flags&s)return!0;if(n.flags&3145728){const c=n.types;for(const _ of c)if(Qo(_,s))return!0}return!1}function kl(n,s,c){return n.flags&s?!0:c&&n.flags&114691?!1:!!(s&296)&&la(n,ye)||!!(s&2112)&&la(n,Oe)||!!(s&402653316)&&la(n,F)||!!(s&528)&&la(n,Sn)||!!(s&16384)&&la(n,ar)||!!(s&131072)&&la(n,jn)||!!(s&65536)&&la(n,W)||!!(s&32768)&&la(n,Pt)||!!(s&4096)&&la(n,ir)||!!(s&67108864)&&la(n,Ws)}function HP(n,s,c){return n.flags&1048576?$i(n.types,_=>HP(_,s,c)):kl(n,s,c)}function cae(n){return!!(Br(n)&16)&&!!n.symbol&&lae(n.symbol)}function lae(n){return(n.flags&128)!==0}function Int(n,s,c,_){return c===ai||_===ai?ai:(!Wa(c)&&HP(c,402784252)&&Fe(n,p.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Wa(_)||Uz(_)||jh(_,zo)||Fe(s,p.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Sn)}function Ont(n){return Fg(n,s=>s===_l||!!(s.flags&2097152)&&Pg(wg(s)))}function Fnt(n,s,c,_){if(c===ai||_===ai)return ai;if(Ei(n)){if(ee<99&&Kc(n,2097152),!Jr(n).resolvedSymbol&&Pl(n)){const d=Rse(n,_.symbol,!0);p8e(n,_,d)}}else J_(yd(c,n),cs,n);return J_(yd(_,s),Ws,s)&&Ont(_)&&Fe(s,p.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,kn(_)),Sn}function Lnt(n,s,c){const _=n.properties;if(H&&_.length===0)return yd(s,n);for(let d=0;d<_.length;d++)aEe(n,s,d,_,c);return s}function aEe(n,s,c,_,d=!1){const h=n.properties,T=h[c];if(T.kind===303||T.kind===304){const P=T.name,O=C0(P);if(rp(O)){const ce=ip(O),Se=qs(s,ce);Se&&(MP(Se,T,d),Ise(T,!1,!0,s,Se))}const $=Cu(s,O,32,P),te=tn(T,$);return bb(T.kind===304?T:T.initializer,te)}else if(T.kind===305)if(ceC($,c)):$l(_);return bb(P,O,d)}}}}function bb(n,s,c,_){let d;if(n.kind===304){const h=n;h.objectAssignmentInitializer&&(H&&!(k_(Xi(h.objectAssignmentInitializer))&16777216)&&(s=Hf(s,524288)),Jnt(h.name,h.equalsToken,h.objectAssignmentInitializer,c)),d=n.name}else d=n;return d.kind===226&&d.operatorToken.kind===64&&(xe(d,c),d=d.left,H&&(s=Hf(s,524288))),d.kind===210?Lnt(d,s,_):d.kind===209?Mnt(d,s,c):Rnt(d,s,c)}function Rnt(n,s,c){const _=Xi(n,c),d=n.parent.kind===305?p.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,h=n.parent.kind===305?p.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return f7(n,d,h)&&Jh(s,_,n,n),e6(n)&&Kc(n.parent,1048576),s}function GP(n){switch(n=uo(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return GP(n.whenTrue)&&GP(n.whenFalse);case 226:return Q0(n.operatorToken.kind)?!1:GP(n.left)&&GP(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function _ae(n,s){return(s.flags&98304)!==0||OJ(n,s)}function Bnt(){const n=OF(s,c,_,d,h,T);return(Se,Te)=>{const Ze=n(Se,Te);return E.assertIsDefined(Ze),Ze};function s(Se,Te,Ze){return Te?(Te.stackIndex++,Te.skip=!1,$(Te,void 0),ce(Te,void 0)):Te={checkMode:Ze,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Zn(Se)&&Lx(Se)?(Te.skip=!0,ce(Te,Xi(Se.right,Ze)),Te):(jnt(Se),Se.operatorToken.kind===64&&(Se.left.kind===210||Se.left.kind===209)&&(Te.skip=!0,ce(Te,bb(Se.left,Xi(Se.right,Ze),Ze,Se.right.kind===110))),Te)}function c(Se,Te,Ze){if(!Te.skip)return P(Te,Se)}function _(Se,Te,Ze){if(!Te.skip){const St=te(Te);E.assertIsDefined(St),$(Te,St),ce(Te,void 0);const Kt=Se.kind;if(vD(Kt)){let _n=Ze.parent;for(;_n.kind===217||bD(_n);)_n=_n.parent;(Kt===56||Zb(_n))&&xae(Ze.left,St,Zb(_n)?_n.thenStatement:void 0),Sae(St,Ze.left)}}}function d(Se,Te,Ze){if(!Te.skip)return P(Te,Se)}function h(Se,Te){let Ze;if(Te.skip)Ze=te(Te);else{const St=O(Te);E.assertIsDefined(St);const Kt=te(Te);E.assertIsDefined(Kt),Ze=cEe(Se.left,Se.operatorToken,Se.right,St,Kt,Te.checkMode,Se)}return Te.skip=!1,$(Te,void 0),ce(Te,void 0),Te.stackIndex--,Ze}function T(Se,Te,Ze){return ce(Se,Te),Se}function P(Se,Te){if(rr(Te))return Te;ce(Se,Xi(Te,Se.checkMode))}function O(Se){return Se.typeStack[Se.stackIndex]}function $(Se,Te){Se.typeStack[Se.stackIndex]=Te}function te(Se){return Se.typeStack[Se.stackIndex+1]}function ce(Se,Te){Se.typeStack[Se.stackIndex+1]=Te}}function jnt(n){const{left:s,operatorToken:c,right:_}=n;c.kind===61&&(rr(s)&&(s.operatorToken.kind===57||s.operatorToken.kind===56)&&Yt(s,p._0_and_1_operations_cannot_be_mixed_without_parentheses,sa(s.operatorToken.kind),sa(c.kind)),rr(_)&&(_.operatorToken.kind===57||_.operatorToken.kind===56)&&Yt(_,p._0_and_1_operations_cannot_be_mixed_without_parentheses,sa(_.operatorToken.kind),sa(c.kind)))}function Jnt(n,s,c,_,d){const h=s.kind;if(h===64&&(n.kind===210||n.kind===209))return bb(n,Xi(c,_),_,c.kind===110);let T;vD(h)?T=vC(n,_):T=Xi(n,_);const P=Xi(c,_);return cEe(n,s,c,T,P,_,d)}function cEe(n,s,c,_,d,h,T){const P=s.kind;switch(P){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(_===ai||d===ai)return ai;_=yd(_,n),d=yd(d,c);let Ht;if(_.flags&528&&d.flags&528&&(Ht=Se(s.kind))!==void 0)return Fe(T||s,p.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,sa(s.kind),sa(Ht)),ye;{const dn=Ez(n,_,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Cn=Ez(c,d,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let Un;if(kl(_,3)&&kl(d,3)||!(Qo(_,2112)||Qo(d,2112)))Un=ye;else if(O(_,d)){switch(P){case 50:case 73:Kt();break;case 43:case 68:ee<3&&Fe(T,p.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Un=Oe}else Kt(O),Un=$e;return dn&&Cn&&Te(Un),Un}case 40:case 65:if(_===ai||d===ai)return ai;!kl(_,402653316)&&!kl(d,402653316)&&(_=yd(_,n),d=yd(d,c));let Mn;return kl(_,296,!0)&&kl(d,296,!0)?Mn=ye:kl(_,2112,!0)&&kl(d,2112,!0)?Mn=Oe:kl(_,402653316,!0)||kl(d,402653316,!0)?Mn=F:(Wa(_)||Wa(d))&&(Mn=q(_)||q(d)?$e:ke),Mn&&!ce(P)?Mn:Mn?(P===65&&Te(Mn),Mn):(Kt((Cn,Un)=>kl(Cn,402655727)&&kl(Un,402655727)),ke);case 30:case 32:case 33:case 34:return ce(P)&&(_=Jie(yd(_,n)),d=Jie(yd(d,c)),St((dn,Cn)=>{if(Wa(dn)||Wa(Cn))return!0;const Un=la(dn,pi),ws=la(Cn,pi);return Un&&ws||!Un&&!ws&&dP(dn,Cn)})),Sn;case 35:case 36:case 37:case 38:if(!(h&&h&128)){if((iW(n)||iW(c))&&(!Zn(n)||P===37||P===38)){const dn=P===35||P===37;Fe(T,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,dn?"false":"true")}Gn(T,P,n,c),St((dn,Cn)=>_ae(dn,Cn)||_ae(Cn,dn))}return Sn;case 104:return Int(n,c,_,d);case 103:return Fnt(n,c,_,d);case 56:case 77:{const dn=k_(_)&4194304?zr([EZe(H?_:zh(d)),d]):_;return P===77&&Te(d),dn}case 57:case 76:{const dn=k_(_)&8388608?zr([Ig(WCe(_)),d],2):_;return P===76&&Te(d),dn}case 61:case 78:{const dn=k_(_)&262144?zr([Ig(_),d],2):_;return P===78&&Te(d),dn}case 64:const Xt=rr(n.parent)?pc(n.parent):0;return $(Xt,d),Ze(Xt)?((!(d.flags&524288)||Xt!==2&&Xt!==6&&!Ng(d)&&!cse(d)&&!(Br(d)&1))&&Te(d),_):(Te(d),d);case 28:if(!j.allowUnreachableCode&&GP(n)&&!te(n.parent)){const dn=Bn(n),Cn=dn.text,Un=ua(Cn,n.pos);dn.parseDiagnostics.some(Sr=>Sr.code!==p.JSX_expressions_must_have_one_parent_element.code?!1:WU(Sr,Un))||Fe(n,p.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return d;default:return E.fail()}function O(Ht,Mn){return kl(Ht,2112)&&kl(Mn,2112)}function $(Ht,Mn){if(Ht===2)for(const Xt of Ih(Mn)){const dn=$n(Xt);if(dn.symbol&&dn.symbol.flags&32){const Cn=Xt.escapedName,Un=Mc(Xt.valueDeclaration,Cn,788968,void 0,Cn,!1);(Un==null?void 0:Un.declarations)&&Un.declarations.some(s4)&&(Yy(Un,p.Duplicate_identifier_0,Li(Cn),Xt),Yy(Xt,p.Duplicate_identifier_0,Li(Cn),Un))}}}function te(Ht){return Ht.parent.kind===217&&Ou(Ht.left)&&Ht.left.text==="0"&&(js(Ht.parent.parent)&&Ht.parent.parent.expression===Ht.parent||Ht.parent.parent.kind===215)&&(Mo(Ht.right)||we(Ht.right)&&Ht.right.escapedText==="eval")}function ce(Ht){const Mn=qP(_,12288)?n:qP(d,12288)?c:void 0;return Mn?(Fe(Mn,p.The_0_operator_cannot_be_applied_to_type_symbol,sa(Ht)),!1):!0}function Se(Ht){switch(Ht){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Te(Ht){Q0(P)&&r(Mn);function Mn(){let Xt=_;if(S8(s.kind)&&n.kind===211&&(Xt=Fse(n,void 0,!0)),f7(n,p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let dn;if(be&&kr(n)&&Qo(Ht,32768)){const Cn=Wc(a_(n.expression),n.name.escapedText);LJ(Ht,Cn)&&(dn=p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Jh(Ht,Xt,n,c,dn)}}}function Ze(Ht){var Mn;switch(Ht){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Xt=ku(n),dn=Lx(c);return!!dn&&ha(dn)&&!!((Mn=Xt==null?void 0:Xt.exports)!=null&&Mn.size);default:return!1}}function St(Ht){return Ht(_,d)?!1:(Kt(Ht),!0)}function Kt(Ht){let Mn=!1;const Xt=T||s;if(Ht){const Sr=N0(_),Ts=N0(d);Mn=!(Sr===_&&Ts===d)&&!!(Sr&&Ts)&&Ht(Sr,Ts)}let dn=_,Cn=d;!Mn&&Ht&&([dn,Cn]=znt(_,d,Ht));const[Un,ws]=Dh(dn,Cn);_n(Xt,Mn,Un,ws)||bh(Xt,Mn,p.Operator_0_cannot_be_applied_to_types_1_and_2,sa(s.kind),Un,ws)}function _n(Ht,Mn,Xt,dn){switch(s.kind){case 37:case 35:case 38:case 36:return bh(Ht,Mn,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Xt,dn);default:return}}function Gn(Ht,Mn,Xt,dn){const Cn=Nn(uo(Xt)),Un=Nn(uo(dn));if(Cn||Un){const ws=Fe(Ht,p.This_condition_will_always_return_0,sa(Mn===37||Mn===35?97:112));if(Cn&&Un)return;const Sr=Mn===38||Mn===36?sa(54):"",Ts=Cn?dn:Xt,cc=uo(Ts);fa(ws,yr(Ts,p.Did_you_mean_0,`${Sr}Number.isNaN(${Sc(cc)?Nu(cc):"..."})`))}}function Nn(Ht){if(we(Ht)&&Ht.escapedText==="NaN"){const Mn=IQe();return!!Mn&&Mn===hp(Ht)}return!1}}function znt(n,s,c){let _=n,d=s;const h=zh(n),T=zh(s);return c(h,T)||(_=h,d=T),[_,d]}function Vnt(n){r(Se);const s=df(n);if(!s)return ke;const c=Il(s);if(!(c&1))return ke;const _=(c&2)!==0;n.asteriskToken&&(_&&ee<99&&Kc(n,26624),!_&&ee<2&&j.downlevelIteration&&Kc(n,256));const d=Sk(s),h=d&&XEe(d,_),T=h&&h.yieldType||ke,P=h&&h.nextType||ke,O=_?Tb(P)||ke:P,$=n.expression?Xi(n.expression):hi,te=Z8e(n,$,O,_);if(d&&te&&Jh(te,T,n.expression||n,n.expression),n.asteriskToken)return Cae(_?19:17,1,$,n.expression)||ke;if(d)return Nv(2,d,_)||ke;let ce=B3e(2,s);return ce||(ce=ke,r(()=>{if(fe&&!Aue(n)){const Te=Z_(n,void 0);(!Te||Wa(Te))&&Fe(n,p.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ce;function Se(){n.flags&16384||Cl(n,p.A_yield_expression_is_only_allowed_in_a_generator_body),yse(n)&&Fe(n,p.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Unt(n,s){const c=vC(n.condition,s);xae(n.condition,c,n.whenTrue);const _=Xi(n.whenTrue,s),d=Xi(n.whenFalse,s);return zr([_,d],2)}function lEe(n){const s=n.parent;return hu(s)&&lEe(s)||No(s)&&s.argumentExpression===n}function Wnt(n){const s=[n.head.text],c=[];for(const d of n.templateSpans){const h=Xi(d.expression);qP(h,12288)&&Fe(d.expression,p.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),s.push(d.literal.text),c.push(la(h,ln)?h:F)}if(mC(n)||lEe(n)||Fg(Z_(n,void 0)||Jt,qnt))return lb(s,c);const _=n.parent.kind!==215&&_7e(n);return _?ax(lu(_)):F}function qnt(n){return!!(n.flags&134217856||n.flags&58982400&&Qo(B_(n)||Jt,402653316))}function Hnt(n){return h2(n)&&!eT(n.parent)?n.parent.parent:n}function Ok(n,s,c,_){const d=Hnt(n);NP(d,s,!1),det(d,c);const h=Xi(n,_|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const T=Qo(h,2944)&&wz(h,lz(s,n,void 0))?j_(h):h;return met(),a7(),T}function jc(n,s){if(s)return Xi(n,s);const c=Jr(n);if(!c.resolvedType){const _=nn,d=ta;nn=zn,ta=void 0,c.resolvedType=Xi(n,s),ta=d,nn=_}return c.resolvedType}function _Ee(n){return n=uo(n,!0),n.kind===216||n.kind===234||f8(n)}function p7(n,s,c){const _=qw(n);if(Zn(n)){const h=wO(n);if(h)return Kse(_,h,s)}const d=pae(_)||(c?Ok(_,c,void 0,s||0):jc(_,s));return ns(n)&&n.name.kind===207&&_a(d)&&!d.target.hasRestElement&&k0(d)wz(n,_))}if(s.flags&58982400){const c=B_(s)||Jt;return Qo(c,4)&&Qo(n,128)||Qo(c,8)&&Qo(n,256)||Qo(c,64)&&Qo(n,2048)||Qo(c,4096)&&Qo(n,8192)||wz(n,c)}return!!(s.flags&406847616&&Qo(n,128)||s.flags&256&&Qo(n,256)||s.flags&2048&&Qo(n,2048)||s.flags&512&&Qo(n,512)||s.flags&8192&&Qo(n,8192))}return!1}function mC(n){const s=n.parent;return Pb(s)&&Ug(s.type)||f8(s)&&Ug(AF(s))||Zse(n)&&Tk(Z_(n,0))||(hu(s)||u_(s)||Bd(s))&&mC(s)||(Dc(s)||nf(s)||s8(s))&&mC(s.parent)}function gC(n,s,c){const _=Xi(n,s,c);return mC(n)||Vle(n)?j_(_):_Ee(n)?_:zie(_,lz(Z_(n,void 0),n,void 0))}function uEe(n,s){return n.name.kind===167&&Bm(n.name),gC(n.initializer,s)}function fEe(n,s){M7e(n),n.name.kind===167&&Bm(n.name);const c=rEe(n,s);return pEe(n,c,s)}function pEe(n,s,c){if(c&&c&10){const _=c7(s,0,!0),d=c7(s,1,!0),h=_||d;if(h&&h.typeParameters){const T=ry(n,2);if(T){const P=c7(Ig(T),_?0:1,!1);if(P&&!P.typeParameters){if(c&8)return dEe(n,c),mo;const O=Dv(n),$=O.signature&&Va(O.signature),te=$&&x8e($);if(te&&!te.typeParameters&&!$i(O.inferences,Fk)){const ce=Ynt(O,h.typeParameters),Se=Hre(h,ce),Te=an(O.inferences,Ze=>$ie(Ze.typeParameter));if(Wie(Se,P,(Ze,St)=>{Og(Te,Ze,St,0,!0)}),dt(Te,Fk)&&(qie(Se,P,(Ze,St)=>{Og(Te,Ze,St)}),!Xnt(O.inferences,Te)))return Qnt(O.inferences,Te),O.inferredTypeParameters=Ki(O.inferredTypeParameters,ce),cb(Se)}return cb(S8e(h,P,O))}}}}return s}function dEe(n,s){if(s&2){const c=Dv(n);c.flags|=4}}function Fk(n){return!!(n.candidates||n.contraCandidates)}function $nt(n){return!!(n.candidates||n.contraCandidates||r4e(n.typeParameter))}function Xnt(n,s){for(let c=0;cc.symbol.escapedName===s)}function Znt(n,s){let c=s.length;for(;c>1&&s.charCodeAt(c-1)>=48&&s.charCodeAt(c-1)<=57;)c--;const _=s.slice(0,c);for(let d=1;;d++){const h=_+d;if(!fae(n,h))return h}}function mEe(n){const s=yb(n);if(s&&!s.typeParameters)return Va(s)}function Knt(n){const s=Xi(n.expression),c=YE(s,n.expression),_=mEe(s);return _&&qJ(_,n,c!==s)}function a_(n){const s=pae(n);if(s)return s;if(n.flags&268435456&&ta){const d=ta[Ba(n)];if(d)return d}const c=Hn,_=Xi(n,128);if(Hn!==c){const d=ta||(ta=[]);d[Ba(n)]=_,Due(n,n.flags|268435456)}return _}function pae(n){let s=uo(n,!0);if(f8(s)){const c=AF(s);if(!Ug(c))return ii(c)}if(s=uo(n),f1(s)){const c=pae(s.expression);return c?Tb(c):void 0}if(js(s)&&s.expression.kind!==108&&!du(s,!0)&&!M8e(s))return Eb(s)?Knt(s):mEe(uC(s.expression));if(Pb(s)&&!Ug(s.type))return ii(s.type);if(wb(n)||Xce(n))return Xi(n)}function $P(n){const s=Jr(n);if(s.contextFreeType)return s.contextFreeType;NP(n,ke,!1);const c=s.contextFreeType=Xi(n,4);return a7(),c}function Xi(n,s,c){var _,d;(_=ci)==null||_.push(ci.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const h=D;D=n,k=0;const T=nrt(n,s,c),P=pEe(n,T,s);return cae(P)&&ert(n,P),D=h,(d=ci)==null||d.pop(),P}function ert(n,s){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&zz(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||Fe(n,p.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),ed(j)&&(E.assert(!!(s.symbol.flags&128)),s.symbol.valueDeclaration.flags&33554432&&!ky(n)&&Fe(n,p.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function trt(n,s){if(Qu(n)){if(lH(n))return Kse(n.expression,_H(n),s);if(f8(n))return J8e(n,s)}return Xi(n.expression,s)}function nrt(n,s,c){const _=n.kind;if(i)switch(_){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(_){case 80:return MKe(n,s);case 81:return ttt(n);case 110:return DP(n);case 108:return gse(n);case 106:return ge;case 15:case 11:return Kie(n)?K:ax(lu(n.text));case 9:return Hae(n),ax(Hp(+n.text));case 10:return rot(n),ax(kJ({negative:!1,base10Value:R3(n.text)}));case 112:return Ot;case 97:return We;case 228:return Wnt(n);case 14:return oc;case 209:return H3e(n,s,c);case 210:return Oet(n,s);case 211:return Fse(n,s);case 166:return c8e(n,s);case 212:return htt(n,s);case 213:if(n.expression.kind===102)return Gtt(n);case 214:return Htt(n,s);case 215:return $tt(n);case 217:return trt(n,s);case 231:return Uit(n);case 218:case 219:return rEe(n,s);case 221:return wnt(n);case 216:case 234:return Xtt(n,s);case 235:return Ztt(n);case 233:return V8e(n);case 238:return Ktt(n);case 236:return ent(n);case 220:return Cnt(n);case 222:return Dnt(n);case 223:return Ant(n);case 224:return Nnt(n);case 225:return Pnt(n);case 226:return xe(n,s);case 227:return Unt(n,s);case 230:return wet(n,s);case 232:return hi;case 229:return Vnt(n);case 237:return Det(n);case 294:return $et(n,s);case 284:return Ret(n);case 285:return Let(n);case 288:return Bet(n);case 292:return Jet(n,s);case 286:E.fail("Shouldn't ever directly check a JsxOpeningElement")}return $e}function gEe(n){zm(n),n.expression&&Cl(n.expression,p.Type_expected),na(n.constraint),na(n.default);const s=sb(hr(n));B_(s),BXe(s)||Fe(n.default,p.Type_parameter_0_has_a_circular_default,kn(s));const c=s_(s),_=ob(s);c&&_&&J_(_,Uu(Ji(c,Tv(s,_)),_),n.default,p.Type_0_does_not_satisfy_the_constraint_1),Rk(n),r(()=>bC(n.name,p.Type_parameter_name_cannot_be_0))}function rrt(n){var s,c;if(f_(n.parent)||ei(n.parent)||wp(n.parent)){const _=sb(hr(n)),d=Lie(_)&98304;if(d){const h=hr(n.parent);if(wp(n.parent)&&!(Br(go(h))&48))Fe(n,p.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(d===32768||d===65536){(s=ci)==null||s.push(ci.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:S_(go(h)),id:S_(_)});const T=hP(h,_,d===65536?bo:W_),P=hP(h,_,d===65536?W_:bo),O=_;M=_,J_(T,P,n,p.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),M=O,(c=ci)==null||c.pop()}}}}function hEe(n){zm(n),KP(n);const s=df(n);Mr(n,16476)&&(s.kind===176&&Xf(s.body)||Fe(n,p.A_parameter_property_is_only_allowed_in_a_constructor_implementation),s.kind===176&&we(n.name)&&n.name.escapedText==="constructor"&&Fe(n.name,p.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&cH(n)&&Ns(n.name)&&s.body&&Fe(n,p.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&we(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(s.parameters.indexOf(n)!==0&&Fe(n,p.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(s.kind===176||s.kind===180||s.kind===185)&&Fe(n,p.A_constructor_cannot_have_a_this_parameter),s.kind===219&&Fe(n,p.An_arrow_function_cannot_have_a_this_parameter),(s.kind===177||s.kind===178)&&Fe(n,p.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Ns(n.name)&&!la(Wp($n(n.symbol)),Et)&&Fe(n,p.A_rest_parameter_must_be_of_an_array_type)}function irt(n){const s=srt(n);if(!s){Fe(n,p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=gd(s),_=Wf(c);if(!_)return;na(n.type);const{parameterName:d}=n;if(_.kind===0||_.kind===2)CJ(d);else if(_.parameterIndex>=0){if(d_(c)&&_.parameterIndex===c.parameters.length-1)Fe(d,p.A_type_predicate_cannot_reference_a_rest_parameter);else if(_.type){const h=()=>_s(void 0,p.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);J_(_.type,$n(c.parameters[_.parameterIndex]),n.type,void 0,h)}}else if(d){let h=!1;for(const{name:T}of s.parameters)if(Ns(T)&&yEe(T,d,_.parameterName)){h=!0;break}h||Fe(n.parameterName,p.Cannot_find_parameter_0,_.parameterName)}}function srt(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const s=n.parent;if(n===s.type)return s}}function yEe(n,s,c){for(const _ of n.elements){if(pl(_))continue;const d=_.name;if(d.kind===80&&d.escapedText===c)return Fe(s,p.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((d.kind===207||d.kind===206)&&yEe(d,s,c))return!0}}function d7(n){n.kind===181?Pat(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&Gz(n);const s=Il(n);s&4||((s&3)===3&&ee<99&&Kc(n,6144),(s&3)===2&&ee<4&&Kc(n,64),(s&3)!==0&&ee<2&&Kc(n,128)),nI(Zh(n)),Jit(n),mn(n.parameters,hEe),n.type&&na(n.type),r(c);function c(){nit(n);let _=Kf(n),d=_;if(Zn(n)){const h=fy(n);if(h&&h.typeExpression&&sp(h.typeExpression.type)){const T=yb(ii(h.typeExpression));T&&T.declaration&&(_=Kf(T.declaration),d=h.typeExpression.type)}}if(fe&&!_)switch(n.kind){case 180:Fe(n,p.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Fe(n,p.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(_&&d){const h=Il(n);if((h&5)===1){const T=ii(_);if(T===ar)Fe(d,p.A_generator_cannot_have_a_void_type_annotation);else{const P=Nv(0,T,(h&2)!==0)||ke,O=Nv(1,T,(h&2)!==0)||P,$=Nv(2,T,(h&2)!==0)||Jt,te=Y8e(P,O,$,!!(h&2));J_(te,T,d)}}else(h&3)===2&&Mrt(n,_,d)}n.kind!==181&&n.kind!==324&&Uh(n)}}function art(n){const s=new Map,c=new Map,_=new Map;for(const h of n.members)if(h.kind===176)for(const T of h.parameters)Du(T,h)&&!Ns(T.name)&&d(s,T.name,T.name.escapedText,3);else{const T=Ps(h),P=h.name;if(!P)continue;const O=Ei(P),$=O&&T?16:0,te=O?_:T?c:s,ce=P&&by(P);if(ce)switch(h.kind){case 177:d(te,P,ce,1|$);break;case 178:d(te,P,ce,2|$);break;case 172:d(te,P,ce,3|$);break;case 174:d(te,P,ce,8|$);break}}function d(h,T,P,O){const $=h.get(P);if($)if(($&16)!==(O&16))Fe(T,p.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,el(T));else{const te=!!($&8),ce=!!(O&8);te||ce?te!==ce&&Fe(T,p.Duplicate_identifier_0,el(T)):$&O&-17?Fe(T,p.Duplicate_identifier_0,el(T)):h.set(P,$|O)}else h.set(P,O)}}function ort(n){for(const s of n.members){const c=s.name;if(Ps(s)&&c){const d=by(c);switch(d){case"name":case"length":case"caller":case"arguments":if(oe)break;case"prototype":const h=p.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,T=uv(hr(n));Fe(c,h,d,T);break}}}}function vEe(n){const s=new Map;for(const c of n.members)if(c.kind===171){let _;const d=c.name;switch(d.kind){case 11:case 9:_=d.text;break;case 80:_=lr(d);break;default:continue}s.get(_)?(Fe(os(c.symbol.valueDeclaration),p.Duplicate_identifier_0,_),Fe(c.name,p.Duplicate_identifier_0,_)):s.set(_,!0)}}function dae(n){if(n.kind===264){const c=hr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}const s=p4e(hr(n));if(s!=null&&s.declarations){const c=new Map;for(const _ of s.declarations)_.parameters.length===1&&_.parameters[0].type&&mb(ii(_.parameters[0].type),d=>{const h=c.get(S_(d));h?h.declarations.push(_):c.set(S_(d),{type:d,declarations:[_]})});c.forEach(_=>{if(_.declarations.length>1)for(const d of _.declarations)Fe(d,p.Duplicate_index_signature_for_type_0,kn(_.type))})}}function bEe(n){!zm(n)&&!Kat(n)&&$z(n.name),KP(n),mae(n),Mr(n,256)&&n.kind===172&&n.initializer&&Fe(n,p.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,no(n.name))}function crt(n){return Ei(n.name)&&Fe(n,p.Private_identifiers_are_not_allowed_outside_class_bodies),bEe(n)}function lrt(n){M7e(n)||$z(n.name),Ec(n)&&n.asteriskToken&&we(n.name)&&lr(n.name)==="constructor"&&Fe(n.name,p.Class_constructor_may_not_be_a_generator),OEe(n),Mr(n,256)&&n.kind===174&&n.body&&Fe(n,p.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,no(n.name)),Ei(n.name)&&!Pl(n)&&Fe(n,p.Private_identifiers_are_not_allowed_outside_class_bodies),mae(n)}function mae(n){if(Ei(n.name)&&ee<99){for(let s=mm(n);s;s=mm(s))Jr(s).flags|=1048576;if(Fl(n.parent)){const s=pse(n.parent);s&&(Jr(n.name).flags|=32768,Jr(s).flags|=4096)}}}function _rt(n){zm(n),ys(n,na)}function urt(n){d7(n),Yat(n)||Zat(n),na(n.body);const s=hr(n),c=uc(s,n.kind);if(n===c&&Nz(s),fc(n.body))return;r(d);return;function _(h){return N_(h)?!0:h.kind===172&&!Ps(h)&&!!h.initializer}function d(){const h=n.parent;if(r2(h)){dse(n.parent,h);const T=N3e(h),P=A3e(n.body);if(P){if(T&&Fe(P,p.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!_e&&(dt(n.parent.members,_)||dt(n.parameters,$=>Mr($,16476))))if(!frt(P,n.body))Fe(P,p.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{let $;for(const te of n.body.statements){if(ql(te)&&p6(nl(te.expression))){$=te;break}if(TEe(te))break}$===void 0&&Fe(n,p.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 T||Fe(n,p.Constructors_for_derived_classes_must_contain_a_super_call)}}}function frt(n,s){const c=G0(n.parent);return ql(c)&&c.parent===s}function TEe(n){return n.kind===108||n.kind===110?!0:Xle(n)?!1:!!ys(n,TEe)}function xEe(n){we(n.name)&&lr(n.name)==="constructor"&&ei(n.parent)&&Fe(n.name,p.Class_constructor_may_not_be_an_accessor),r(s),na(n.body),mae(n);function s(){if(!Gz(n)&&!Jat(n)&&$z(n.name),QP(n),d7(n),n.kind===177&&!(n.flags&33554432)&&Xf(n.body)&&n.flags&512&&(n.flags&1024||Fe(n.name,p.A_get_accessor_must_return_a_value)),n.name.kind===167&&Bm(n.name),vk(n)){const _=hr(n),d=uc(_,177),h=uc(_,178);if(d&&h&&!(Bk(d)&1)){Jr(d).flags|=1;const T=I_(d),P=I_(h);(T&256)!==(P&256)&&(Fe(d.name,p.Accessors_must_both_be_abstract_or_non_abstract),Fe(h.name,p.Accessors_must_both_be_abstract_or_non_abstract)),(T&16&&!(P&24)||T&8&&!(P&8))&&(Fe(d.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Fe(h.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=IE(hr(n));n.kind===177&&aae(n,c)}}function prt(n){QP(n)}function drt(n,s,c){return n.typeArguments&&c{const _=gae(n);_&&SEe(n,_)});const c=Jr(n).resolvedSymbol;c&&dt(c.declarations,_=>J6(_)&&!!(_.flags&536870912))&&_0(JP(n),c.declarations,c.escapedName)}}function grt(n){const s=Hr(n.parent,d9);if(!s)return;const c=gae(s);if(!c)return;const _=s_(c[s.typeArguments.indexOf(n)]);return _&&Ji(_,_u(c,Dz(s,c)))}function hrt(n){k4e(n)}function yrt(n){mn(n.members,na),r(s);function s(){const c=fCe(n);Rz(c,c.symbol),dae(n),vEe(n)}}function vrt(n){na(n.elementType)}function brt(n){const s=n.elements;let c=!1,_=!1;for(const d of s){const h=iie(d);if(h&8){const T=ii(d.type);if(!w0(T)){Fe(d,p.A_rest_element_type_must_be_an_array_type);break}(wf(T)||_a(T)&&T.target.combinedFlags&4)&&(_=!0)}else if(h&4){if(_){Yt(d,p.A_rest_element_cannot_follow_another_rest_element);break}_=!0}else if(h&2){if(_){Yt(d,p.An_optional_element_cannot_follow_a_rest_element);break}c=!0}else if(c){Yt(d,p.A_required_element_cannot_follow_an_optional_element);break}}mn(n.elements,na),ii(n)}function Trt(n){mn(n.types,na),ii(n)}function CEe(n,s){if(!(n.flags&8388608))return n;const c=n.objectType,_=n.indexType;if(la(_,im(c,0)))return s.kind===212&&Km(s)&&Br(c)&32&&tm(c)&1&&Fe(s,p.Index_signature_in_type_0_only_permits_reading,kn(c)),n;const d=Y_(c);if(Rm(d,ye)&&kl(_,296))return n;if(yv(c)){const h=bJ(_,s);if(h){const T=mb(d,P=>qs(P,h));if(T&&Ff(T)&24)return Fe(s,p.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Li(h)),$e}}return Fe(s,p.Type_0_cannot_be_used_to_index_type_1,kn(_),kn(c)),$e}function xrt(n){na(n.objectType),na(n.indexType),CEe(aCe(n),n)}function Srt(n){krt(n),na(n.typeParameter),na(n.nameType),na(n.type),n.type||ty(n,ke);const s=gie(n),c=T0(s);if(c)J_(c,Fs,n.nameType);else{const _=Uf(s);J_(_,Fs,Kk(n.typeParameter))}}function krt(n){var s;if((s=n.members)!=null&&s.length)return Yt(n.members[0],p.A_mapped_type_may_not_declare_properties_or_methods)}function Crt(n){CJ(n)}function Ert(n){Vat(n),na(n.type)}function wrt(n){ys(n,na)}function Drt(n){On(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||Yt(n,p.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),na(n.typeParameter);const s=hr(n.typeParameter);if(s.declarations&&s.declarations.length>1){const c=Fi(s);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const _=sb(s),d=dle(s,168);if(!KEe(d,[_],h=>[h])){const h=ni(s);for(const T of d)Fe(T.name,p.All_declarations_of_0_must_have_identical_constraints,h)}}}Uh(n)}function Art(n){for(const s of n.templateSpans){na(s.type);const c=ii(s.type);J_(c,ln,s.type)}ii(n)}function Nrt(n){na(n.argument),n.assertions&&ES(n.assertions.assertClause,Yt)&&(mD()||Yt(n.assertions.assertClause,p.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Cc(j)!==3&&Cc(j)!==99&&Yt(n.assertions.assertClause,p.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),kEe(n)}function Prt(n){n.dotDotDotToken&&n.questionToken&&Yt(n,p.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&Yt(n.type,p.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&Yt(n.type,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),na(n.type),ii(n)}function XP(n){return(Iu(n,8)||N_(n))&&!!(n.flags&33554432)}function Az(n,s){let c=Xz(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){const _=BW(n);_&&_.flags&128&&!(c&2)&&!(jd(n.parent)&&Nc(n.parent.parent)&&Pd(n.parent.parent))&&(c|=1),c|=2}return c&s}function Nz(n){r(()=>Irt(n))}function Irt(n){function s(Ht,Mn){return Mn!==void 0&&Mn.parent===Ht[0].parent?Mn:Ht[0]}function c(Ht,Mn,Xt,dn,Cn){if((dn^Cn)!==0){const ws=Az(s(Ht,Mn),Xt);mn(Ht,Sr=>{const Ts=Az(Sr,Xt)^ws;Ts&1?Fe(os(Sr),p.Overload_signatures_must_all_be_exported_or_non_exported):Ts&2?Fe(os(Sr),p.Overload_signatures_must_all_be_ambient_or_non_ambient):Ts&24?Fe(os(Sr)||Sr,p.Overload_signatures_must_all_be_public_private_or_protected):Ts&256&&Fe(os(Sr),p.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function _(Ht,Mn,Xt,dn){if(Xt!==dn){const Cn=jx(s(Ht,Mn));mn(Ht,Un=>{jx(Un)!==Cn&&Fe(os(Un),p.Overload_signatures_must_all_be_optional_or_required)})}}const d=283;let h=0,T=d,P=!1,O=!0,$=!1,te,ce,Se;const Te=n.declarations,Ze=(n.flags&16384)!==0;function St(Ht){if(Ht.name&&fc(Ht.name))return;let Mn=!1;const Xt=ys(Ht.parent,Cn=>{if(Mn)return Cn;Mn=Cn===Ht});if(Xt&&Xt.pos===Ht.end&&Xt.kind===Ht.kind){const Cn=Xt.name||Xt,Un=Xt.name;if(Ht.name&&Un&&(Ei(Ht.name)&&Ei(Un)&&Ht.name.escapedText===Un.escapedText||Ga(Ht.name)&&Ga(Un)&&Ag(Bm(Ht.name),Bm(Un))||Od(Ht.name)&&Od(Un)&&f3(Ht.name)===f3(Un))){if((Ht.kind===174||Ht.kind===173)&&Ps(Ht)!==Ps(Xt)){const Sr=Ps(Ht)?p.Function_overload_must_be_static:p.Function_overload_must_not_be_static;Fe(Cn,Sr)}return}if(Xf(Xt.body)){Fe(Cn,p.Function_implementation_name_must_be_0,no(Ht.name));return}}const dn=Ht.name||Ht;Ze?Fe(dn,p.Constructor_implementation_is_missing):Mr(Ht,256)?Fe(dn,p.All_declarations_of_an_abstract_method_must_be_consecutive):Fe(dn,p.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Kt=!1,_n=!1,Gn=!1;const Nn=[];if(Te)for(const Ht of Te){const Mn=Ht,Xt=Mn.flags&33554432,dn=Mn.parent&&(Mn.parent.kind===264||Mn.parent.kind===187)||Xt;if(dn&&(Se=void 0),(Mn.kind===263||Mn.kind===231)&&!Xt&&(Gn=!0),Mn.kind===262||Mn.kind===174||Mn.kind===173||Mn.kind===176){Nn.push(Mn);const Cn=Az(Mn,d);h|=Cn,T&=Cn,P=P||jx(Mn),O=O&&jx(Mn);const Un=Xf(Mn.body);Un&&te?Ze?_n=!0:Kt=!0:(Se==null?void 0:Se.parent)===Mn.parent&&Se.end!==Mn.pos&&St(Se),Un?te||(te=Mn):$=!0,Se=Mn,dn||(ce=Mn)}if(Zn(Ht)&&ks(Ht)&&Ht.jsDoc){for(const Cn of Ht.jsDoc)if(Cn.tags)for(const Un of Cn.tags)l8(Un)&&($=!0)}}if(_n&&mn(Nn,Ht=>{Fe(Ht,p.Multiple_constructor_implementations_are_not_allowed)}),Kt&&mn(Nn,Ht=>{Fe(os(Ht)||Ht,p.Duplicate_function_implementation)}),Gn&&!Ze&&n.flags&16&&Te){const Ht=Vr(Te,Mn=>Mn.kind===263).map(Mn=>yr(Mn,p.Consider_adding_a_declare_modifier_to_this_class));mn(Te,Mn=>{const Xt=Mn.kind===263?p.Class_declaration_cannot_implement_overload_list_for_0:Mn.kind===262?p.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Xt&&fa(Fe(os(Mn)||Mn,Xt,xc(n)),...Ht)})}if(ce&&!ce.body&&!Mr(ce,256)&&!ce.questionToken&&St(ce),$&&(Te&&(c(Te,te,d,h,T),_(Te,te,P,O)),te)){const Ht=gv(n),Mn=gd(te);for(const Xt of Ht)if(!tZe(Mn,Xt)){const dn=Xt.declaration&&Iy(Xt.declaration)?Xt.declaration.parent.tagName:Xt.declaration;fa(Fe(dn,p.This_overload_signature_is_not_compatible_with_its_implementation_signature),yr(te,p.The_implementation_signature_is_declared_here));break}}}function m7(n){r(()=>Ort(n))}function Ort(n){let s=n.localSymbol;if(!s&&(s=hr(n),!s.exportSymbol)||uc(s,n.kind)!==n)return;let c=0,_=0,d=0;for(const $ of s.declarations){const te=O($),ce=Az($,1025);ce&1?ce&1024?d|=te:c|=te:_|=te}const h=c|_,T=c&_,P=d&h;if(T||P)for(const $ of s.declarations){const te=O($),ce=os($);te&P?Fe(ce,p.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,no(ce)):te&T&&Fe(ce,p.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,no(ce))}function O($){let te=$;switch(te.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return __(te)||t0(te)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const ce=te,Se=dc(ce)?ce.expression:ce.right;if(!Sc(Se))return 1;te=Se;case 271:case 274:case 273:let Te=0;const Ze=gl(hr(te));return mn(Ze.declarations,St=>{Te|=O(St)}),Te;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return E.failBadSyntaxKind(te)}}}function g7(n,s,c,..._){const d=h7(n,s);return d&&Tb(d,s,c,..._)}function h7(n,s,c){if(Wa(n))return;const _=n;if(_.promisedTypeOfPromise)return _.promisedTypeOfPromise;if(G1(n,oP(!1)))return _.promisedTypeOfPromise=po(n)[0];if(HP(wg(n),402915324))return;const d=Wc(n,"then");if(Wa(d))return;const h=d?As(d,0):Ve;if(h.length===0){s&&Fe(s,p.A_promise_must_have_a_then_method);return}let T,P;for(const te of h){const ce=X1(te);ce&&ce!==ar&&!hd(n,ce,$d)?T=ce:P=gn(P,te)}if(!P){E.assertIsDefined(T),c&&(c.value=T),s&&Fe(s,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,kn(n),kn(T));return}const O=Hf(zr(an(P,nae)),2097152);if(Wa(O))return;const $=As(O,0);if($.length===0){s&&Fe(s,p.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return _.promisedTypeOfPromise=zr(an($,nae),2)}function y7(n,s,c,_,...d){return(s?Tb(n,c,_,...d):N0(n,c,_,...d))||$e}function EEe(n){if(HP(wg(n),402915324))return!1;const s=Wc(n,"then");return!!s&&As(Hf(s,2097152),0).length>0}function Pz(n){var s;if(n.flags&16777216){const c=rie(!1);return!!c&&n.aliasSymbol===c&&((s=n.aliasTypeArguments)==null?void 0:s.length)===1}return!1}function hC(n){return n.flags&1048576?So(n,hC):Pz(n)?n.aliasTypeArguments[0]:n}function wEe(n){if(Wa(n)||Pz(n))return!1;if(yv(n)){const s=B_(n);if(s?s.flags&3||Ng(s)||Fg(s,EEe):Qo(n,8650752))return!0}return!1}function Frt(n){const s=rie(!0);if(s)return Ck(s,[hC(n)])}function Lrt(n){if(wEe(n)){const s=Frt(n);if(s)return s}return E.assert(Pz(n)||h7(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function Tb(n,s,c,..._){const d=N0(n,s,c,..._);return d&&Lrt(d)}function N0(n,s,c,..._){if(Wa(n)||Pz(n))return n;const d=n;if(d.awaitedTypeOfType)return d.awaitedTypeOfType;if(n.flags&1048576){if(c0.lastIndexOf(n.id)>=0){s&&Fe(s,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const P=s?$=>N0($,s,c,..._):N0;c0.push(n.id);const O=So(n,P);return c0.pop(),d.awaitedTypeOfType=O}if(wEe(n))return d.awaitedTypeOfType=n;const h={value:void 0},T=h7(n,void 0,h);if(T){if(n.id===T.id||c0.lastIndexOf(T.id)>=0){s&&Fe(s,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}c0.push(n.id);const P=N0(T,s,c,..._);return c0.pop(),P?d.awaitedTypeOfType=P:void 0}if(EEe(n)){if(s){E.assertIsDefined(c);let P;h.value&&(P=_s(P,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,kn(n),kn(h.value))),P=_s(P,c,..._),xa.add(Wg(Bn(s),s,P))}return}return d.awaitedTypeOfType=n}function Mrt(n,s,c){const _=ii(s);if(ee>=2){if(q(_))return;const h=oP(!0);if(h!==Ls&&!G1(_,h)){d(p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,s,c,kn(N0(_)||ar));return}}else{if(Brt(s),q(_))return;const h=zw(s);if(h===void 0){d(p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,s,c,kn(_));return}const T=Xo(h,111551,!0),P=T?$n(T):$e;if(q(P)){h.kind===80&&h.escapedText==="Promise"&&ib(_)===oP(!1)?Fe(c,p.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):d(p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,s,c,Nu(h));return}const O=uQe(!0);if(O===Oi){d(p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,s,c,Nu(h));return}const $=p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!J_(P,O,c,$,()=>s===c?void 0:_s(void 0,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const ce=h&&Ku(h),Se=H_(n.locals,ce.escapedText,111551);if(Se){Fe(Se.valueDeclaration,p.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,lr(ce),Nu(h));return}}y7(_,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function d(h,T,P,O){if(T===P)Fe(P,h,O);else{const $=Fe(P,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);fa($,yr(T,h,O))}}}function Rrt(n){const s=pC(n);kz(s,n);const c=Va(s);if(c.flags&1)return;const _=sae(n);if(!(_!=null&&_.resolvedReturnType))return;let d;const h=_.resolvedReturnType;switch(n.parent.kind){case 263:case 231:d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!Z){d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:d=p.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return E.failBadSyntaxKind(n.parent)}J_(c,h,n.expression,d)}function v7(n,s,c,_,d,h=c.length,T=0){const P=I.createFunctionTypeNode(void 0,Ve,I.createKeywordTypeNode(133));return Mm(P,n,s,c,_,d,h,T)}function yae(n,s,c,_,d,h,T){const P=v7(n,s,c,_,d,h,T);return cb(P)}function DEe(n){return yae(void 0,void 0,Ve,n)}function AEe(n){const s=fp("value",n);return yae(void 0,void 0,[s],ar)}function Brt(n){NEe(n&&zw(n),!1)}function NEe(n,s){if(!n)return;const c=Ku(n),_=(n.kind===80?788968:1920)|2097152,d=Mc(c,c.escapedText,_,void 0,void 0,!0);if(d&&d.flags&2097152){if(at&&cv(d)&&!S7(gl(d))&&!mp(d))vg(d);else if(s&&ed(j)&&Ul(j)>=5&&!cv(d)&&!dt(d.declarations,Gv)){const h=Fe(n,p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),T=Fr(d.declarations||Ve,Ky);T&&fa(h,yr(T,p._0_was_imported_here,lr(c)))}}}function Lk(n){const s=vae(n);s&&Xu(s)&&NEe(s,!0)}function vae(n){if(n)switch(n.kind){case 193:case 192:return PEe(n.types);case 194:return PEe([n.trueType,n.falseType]);case 196:case 202:return vae(n.type);case 183:return n.typeName}}function PEe(n){let s;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!H&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;const _=vae(c);if(!_)return;if(s){if(!we(s)||!we(_)||s.escapedText!==_.escapedText)return}else s=_}return s}function Iz(n){const s=Vl(n);return Qm(n)?WW(s):s}function QP(n){if(!iT(n)||!Of(n)||!n.modifiers||!M9(Z,n,n.parent,n.parent.parent))return;const s=Fr(n.modifiers,Wl);if(!!s){if(Z?(Kc(s,8),n.kind===169&&Kc(s,32)):ee<99&&(Kc(s,8),Qc(n)?n.name?e7e(n)&&Kc(s,8388608):Kc(s,8388608):Fl(n)||(Ei(n.name)&&(Ec(n)||e1(n)||eu(n))&&Kc(s,8388608),Ga(n.name)&&Kc(s,16777216))),j.emitDecoratorMetadata)switch(Kc(s,16),n.kind){case 263:const c=eg(n);if(c)for(const T of c.parameters)Lk(Iz(T));break;case 177:case 178:const _=n.kind===177?178:177,d=uc(hr(n),_);Lk(gp(n)||d&&gp(d));break;case 174:for(const T of n.parameters)Lk(Iz(T));Lk(Kf(n));break;case 172:Lk(Vl(n));break;case 169:Lk(Iz(n));const h=n.parent;for(const T of h.parameters)Lk(Iz(T));Lk(Kf(h));break}for(const c of n.modifiers)Wl(c)&&Rrt(c)}}function jrt(n){r(s);function s(){OEe(n),Vae(n),yC(n,n.name)}}function Jrt(n){n.typeExpression||Fe(n.name,p.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&bC(n.name,p.Type_alias_name_cannot_be_0),na(n.typeExpression),nI(Zh(n))}function zrt(n){na(n.constraint);for(const s of n.typeParameters)na(s)}function Vrt(n){na(n.typeExpression)}function Urt(n){na(n.typeExpression);const s=Jx(n);if(s){const c=ZU(s,EF);if(Pn(c)>1)for(let _=1;_0),c.length>1&&Fe(c[1],p.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const _=IEe(n.class.expression),d=r2(s);if(d){const h=IEe(d.expression);h&&_.escapedText!==h.escapedText&&Fe(_,p.JSDoc_0_1_does_not_match_the_extends_2_clause,lr(n.tagName),lr(_),lr(h))}}function Qrt(n){const s=zx(n);s&&N_(s)&&Fe(n,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function IEe(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function OEe(n){var s;QP(n),d7(n);const c=Il(n);if(n.name&&n.name.kind===167&&Bm(n.name),vk(n)){const h=hr(n),T=n.localSymbol||h,P=(s=T.declarations)==null?void 0:s.find(O=>O.kind===n.kind&&!(O.flags&524288));n===P&&Nz(T),h.parent&&Nz(h)}const _=n.kind===173?void 0:n.body;if(na(_),aae(n,Sk(n)),r(d),Zn(n)){const h=fy(n);h&&h.typeExpression&&!xse(ii(h.typeExpression),n)&&Fe(h.typeExpression.type,p.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function d(){Kf(n)||(fc(_)&&!XP(n)&&ty(n,ke),c&1&&Xf(_)&&Va(gd(n)))}}function Uh(n){r(s);function s(){const c=Bn(n);let _=fn.get(c.path);_||(_=[],fn.set(c.path,_)),_.push(n)}}function FEe(n,s){for(const c of n)switch(c.kind){case 263:case 231:Yrt(c,s),bae(c,s);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:REe(c,s);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&REe(c,s),bae(c,s);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:bae(c,s);break;case 195:Zrt(c,s);break;default:E.assertNever(c,"Node should not have been registered for unused identifiers check")}}function LEe(n,s,c){const _=os(n)||n,d=J6(n)?p._0_is_declared_but_never_used:p._0_is_declared_but_its_value_is_never_read;c(n,0,yr(_,d,s))}function b7(n){return we(n)&&lr(n).charCodeAt(0)===95}function Yrt(n,s){for(const c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;const _=hr(c);!_.isReferenced&&(Iu(c,8)||A_(c)&&Ei(c.name))&&!(c.flags&33554432)&&s(c,0,yr(c.name,p._0_is_declared_but_its_value_is_never_read,ni(_)));break;case 176:for(const d of c.parameters)!d.symbol.isReferenced&&Mr(d,8)&&s(d,0,yr(d.name,p.Property_0_is_declared_but_its_value_is_never_read,xc(d.symbol)));break;case 181:case 240:case 175:break;default:E.fail("Unexpected class member")}}function Zrt(n,s){const{typeParameter:c}=n;Tae(c)&&s(n,1,yr(n,p._0_is_declared_but_its_value_is_never_read,lr(c.name)))}function bae(n,s){const c=hr(n).declarations;if(!c||ka(c)!==n)return;const _=Zh(n),d=new Set;for(const h of _){if(!Tae(h))continue;const T=lr(h.name),{parent:P}=h;if(P.kind!==195&&P.typeParameters.every(Tae)){if(Lv(d,P)){const O=Bn(P),$=id(P)?eH(P):tH(O,P.typeParameters),ce=P.typeParameters.length===1?[p._0_is_declared_but_its_value_is_never_read,T]:[p.All_type_parameters_are_unused];s(h,1,vl(O,$.pos,$.end-$.pos,...ce))}}else s(h,1,yr(h,p._0_is_declared_but_its_value_is_never_read,T))}}function Tae(n){return!(Ra(n.symbol).isReferenced&262144)&&!b7(n.name)}function YP(n,s,c,_){const d=String(_(s)),h=n.get(d);h?h[1].push(c):n.set(d,[s,[c]])}function MEe(n){return Hr(hm(n),ns)}function Krt(n){return Fa(n)?td(n.parent)?!!(n.propertyName&&b7(n.name)):b7(n.name):__(n)||(Mi(n)&&i6(n.parent.parent)||BEe(n))&&b7(n.name)}function REe(n,s){const c=new Map,_=new Map,d=new Map;n.locals.forEach(h=>{if(!(h.flags&262144?!(h.flags&3&&!(h.isReferenced&3)):h.isReferenced||h.exportSymbol)&&h.declarations){for(const T of h.declarations)if(!Krt(T))if(BEe(T))YP(c,tit(T),T,Ba);else if(Fa(T)&&td(T.parent)){const P=ka(T.parent.elements);(T===P||!ka(T.parent.elements).dotDotDotToken)&&YP(_,T.parent,T,Ba)}else if(Mi(T)){const P=Ov(T)&7,O=os(T);(P!==4&&P!==6||!O||!b7(O))&&YP(d,T.parent,T,Ba)}else{const P=h.valueDeclaration&&MEe(h.valueDeclaration),O=h.valueDeclaration&&os(h.valueDeclaration);P&&O?!Du(P,P.parent)&&!s2(P)&&!b7(O)&&(Fa(T)&&uS(T.parent)?YP(_,T.parent,T,Ba):s(P,1,yr(O,p._0_is_declared_but_its_value_is_never_read,xc(h)))):LEe(T,xc(h),s)}}}),c.forEach(([h,T])=>{const P=h.parent;if((h.name?1:0)+(h.namedBindings?h.namedBindings.kind===274?1:h.namedBindings.elements.length:0)===T.length)s(P,0,T.length===1?yr(P,p._0_is_declared_but_its_value_is_never_read,lr(wa(T).name)):yr(P,p.All_imports_in_import_declaration_are_unused));else for(const $ of T)LEe($,lr($.name),s)}),_.forEach(([h,T])=>{const P=MEe(h.parent)?1:0;if(h.elements.length===T.length)T.length===1&&h.parent.kind===260&&h.parent.parent.kind===261?YP(d,h.parent.parent,h.parent,Ba):s(h,P,T.length===1?yr(h,p._0_is_declared_but_its_value_is_never_read,ZP(wa(T).name)):yr(h,p.All_destructured_elements_are_unused));else for(const O of T)s(O,P,yr(O,p._0_is_declared_but_its_value_is_never_read,ZP(O.name)))}),d.forEach(([h,T])=>{if(h.declarations.length===T.length)s(h,0,T.length===1?yr(wa(T).name,p._0_is_declared_but_its_value_is_never_read,ZP(wa(T).name)):yr(h.parent.kind===243?h.parent:h,p.All_variables_are_unused));else for(const P of T)s(P,0,yr(P,p._0_is_declared_but_its_value_is_never_read,ZP(P.name)))})}function eit(){var n;for(const s of F2)if(!((n=hr(s))!=null&&n.isReferenced)){const c=Yk(s);E.assert(Jb(c),"Only parameter declaration should be checked here");const _=yr(s.name,p._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,no(s.name),no(s.propertyName));c.type||fa(_,vl(Bn(c),c.end,1,p.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,no(s.propertyName))),xa.add(_)}}function ZP(n){switch(n.kind){case 80:return lr(n);case 207:case 206:return ZP(Ms(wa(n.elements),Fa).name);default:return E.assertNever(n)}}function BEe(n){return n.kind===273||n.kind===276||n.kind===274}function tit(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Oz(n){if(n.kind===241&&Lg(n),oW(n)){const s=Hi;mn(n.statements,na),Hi=s}else mn(n.statements,na);n.locals&&Uh(n)}function nit(n){ee>=2||!gW(n)||n.flags&33554432||fc(n.body)||mn(n.parameters,s=>{s.name&&!Ns(s.name)&&s.name.escapedText===tt.escapedName&&vh("noEmit",s,p.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function T7(n,s,c){if((s==null?void 0:s.escapedText)!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(Sm(n)||Hl(n)||yu(n))&&Gv(n))return!1;const _=hm(n);return!(ns(_)&&fc(_.parent.body))}function rit(n){On(n,s=>Bk(s)&4?(n.kind!==80?Fe(os(n),p.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Fe(n,p.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function iit(n){On(n,s=>Bk(s)&8?(n.kind!==80?Fe(os(n),p.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Fe(n,p.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function sit(n,s){if(R>=5&&!(R>=100&&Bn(n).impliedNodeFormat===1)||!s||!T7(n,s,"require")&&!T7(n,s,"exports")||Nc(n)&&t0(n)!==1)return;const c=KT(n);c.kind===312&&Yu(c)&&vh("noEmit",s,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,no(s),no(s))}function ait(n,s){if(!s||ee>=4||!T7(n,s,"Promise")||Nc(n)&&t0(n)!==1)return;const c=KT(n);c.kind===312&&Yu(c)&&c.flags&4096&&vh("noEmit",s,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,no(s),no(s))}function oit(n,s){ee<=8&&(T7(n,s,"WeakMap")||T7(n,s,"WeakSet"))&&hh.push(n)}function cit(n){const s=mm(n);Bk(s)&1048576&&(E.assert(A_(n)&&we(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),vh("noEmit",n,p.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function lit(n,s){s&&ee>=2&&ee<=8&&T7(n,s,"Reflect")&&qy.push(n)}function _it(n){let s=!1;if(Fl(n)){for(const c of n.members)if(Bk(c)&2097152){s=!0;break}}else if(fo(n))Bk(n)&2097152&&(s=!0);else{const c=mm(n);c&&Bk(c)&2097152&&(s=!0)}s&&(E.assert(A_(n)&&we(n.name),"The target of a Reflect collision check should be an identifier"),vh("noEmit",n,p.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,no(n.name),"Reflect"))}function yC(n,s){!s||(sit(n,s),ait(n,s),oit(n,s),lit(n,s),ei(n)?(bC(s,p.Class_name_cannot_be_0),n.flags&33554432||jit(s)):Ay(n)&&bC(s,p.Enum_name_cannot_be_0))}function uit(n){if((Ov(n)&7)!==0||Jb(n))return;const s=hr(n);if(s.flags&1){if(!we(n.name))return E.fail();const c=Mc(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==s&&c.flags&2&&Nse(c)&7){const _=vy(c.valueDeclaration,261),d=_.parent.kind===243&&_.parent.parent?_.parent.parent:void 0;if(!(d&&(d.kind===241&&ks(d.parent)||d.kind===268||d.kind===267||d.kind===312))){const T=ni(c);Fe(n,p.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}function x7(n){return n===ft?ke:n===gt?qe:n}function KP(n){var s;if(QP(n),Fa(n)||na(n.type),!n.name)return;if(n.name.kind===167&&(Bm(n.name),Ib(n)&&n.initializer&&jc(n.initializer)),Fa(n)){if(n.propertyName&&we(n.name)&&Jb(n)&&fc(df(n).body)){F2.push(n);return}td(n.parent)&&n.dotDotDotToken&&ee<5&&Kc(n,4),n.propertyName&&n.propertyName.kind===167&&Bm(n.propertyName);const d=n.parent.parent,h=n.dotDotDotToken?64:0,T=de(d,h),P=n.propertyName||n.name;if(T&&!Ns(P)){const O=C0(P);if(rp(O)){const $=ip(O),te=qs(T,$);te&&(MP(te,void 0,!1),Ise(n,!!d.initializer&&d.initializer.kind===108,!1,T,te))}}}if(Ns(n.name)&&(n.name.kind===207&&ee<2&&j.downlevelIteration&&Kc(n,512),mn(n.name.elements,na)),ns(n)&&n.initializer&&fc(df(n).body)){Fe(n,p.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Ns(n.name)){if(ase(n))return;const d=Ib(n)&&n.initializer&&n.parent.parent.kind!==249,h=!dt(n.name.elements,yI(pl));if(d||h){const T=ie(n);if(d){const P=jc(n.initializer);H&&h?o8e(P,n):Jh(P,ie(n),n,n.initializer)}h&&(uS(n.name)?P0(65,T,Pt,n):H&&o8e(T,n))}return}const c=hr(n);if(c.flags&2097152&&(t2(n)||Kle(n))){Bz(n);return}const _=x7($n(c));if(n===c.valueDeclaration){const d=Ib(n)&&qw(n);if(d&&!(Zn(n)&&ha(d)&&(d.properties.length===0||Ty(n.name))&&!!((s=c.exports)!=null&&s.size))&&n.parent.parent.kind!==249){const T=jc(d);Jh(T,_,n,d,void 0);const P=Ov(n)&7;if(P===6){const O=bQe(!0),$=O4e(!0);if(O!==Oi&&$!==Oi){const te=zr([O,$,W,Pt]);J_(T,te,d,p.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(P===4){const O=O4e(!0);if(O!==Oi){const $=zr([O,W,Pt]);J_(T,$,d,p.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&&dt(c.declarations,h=>h!==n&&m6(h)&&!JEe(h,n))&&Fe(n.name,p.All_declarations_of_0_must_have_identical_modifiers,no(n.name))}else{const d=x7(ie(n));!q(_)&&!q(d)&&!Ag(_,d)&&!(c.flags&67108864)&&jEe(c.valueDeclaration,_,n,d),Ib(n)&&n.initializer&&Jh(jc(n.initializer),d,n,n.initializer,void 0),c.valueDeclaration&&!JEe(n,c.valueDeclaration)&&Fe(n.name,p.All_declarations_of_0_must_have_identical_modifiers,no(n.name))}n.kind!==172&&n.kind!==171&&(m7(n),(n.kind===260||n.kind===208)&&uit(n),yC(n,n.name))}function jEe(n,s,c,_){const d=os(c),h=c.kind===172||c.kind===171?p.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:p.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,T=no(d),P=Fe(d,h,T,kn(s),kn(_));n&&fa(P,yr(n,p._0_was_also_declared_here,T))}function JEe(n,s){if(n.kind===169&&s.kind===260||n.kind===260&&s.kind===169)return!0;if(jx(n)!==jx(s))return!1;const c=888;return Hx(n,c)===Hx(s,c)}function fit(n){var s,c;(s=ci)==null||s.push(ci.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Gat(n),KP(n),(c=ci)==null||c.pop()}function pit(n){return Wat(n),KP(n)}function Fz(n){const s=U0(n)&7;(s===4||s===6)&&Kc(n,33554432),mn(n.declarations,na)}function dit(n){!zm(n)&&!qae(n.declarationList)&&$at(n),Fz(n.declarationList)}function mit(n){Lg(n),Xi(n.expression)}function git(n){Lg(n);const s=vC(n.expression);xae(n.expression,s,n.thenStatement),na(n.thenStatement),n.thenStatement.kind===242&&Fe(n.thenStatement,p.The_body_of_an_if_statement_cannot_be_the_empty_statement),na(n.elseStatement)}function xae(n,s,c){if(!H)return;_(n,c);function _(h,T){for(h=uo(h),d(h,T);rr(h)&&(h.operatorToken.kind===57||h.operatorToken.kind===61);)h=uo(h.left),d(h,T)}function d(h,T){const P=bD(h)?uo(h.right):h;if(Zm(P))return;if(bD(P)){_(P,T);return}const O=P===h?s:vC(P),$=kr(P)&&_Ee(P.expression);if(!(k_(O)&4194304)||$)return;const te=As(O,0),ce=!!g7(O);if(te.length===0&&!ce)return;const Se=we(P)?P:kr(P)?P.name:void 0,Te=Se&&yp(Se);if(!Te&&!ce)return;Te&&rr(h.parent)&&yit(h.parent,Te)||Te&&T&&hit(h,T,Se,Te)||(ce?bh(P,!0,p.This_condition_will_always_return_true_since_this_0_is_always_defined,Q_(O)):Fe(P,p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function hit(n,s,c,_){return!!ys(s,function d(h){if(we(h)){const T=yp(h);if(T&&T===_){if(we(n)||we(c)&&rr(c.parent))return!0;let P=c.parent,O=h.parent;for(;P&&O;){if(we(P)&&we(O)||P.kind===110&&O.kind===110)return yp(P)===yp(O);if(kr(P)&&kr(O)){if(yp(P.name)!==yp(O.name))return!1;O=O.expression,P=P.expression}else if(js(P)&&js(O))O=O.expression,P=P.expression;else return!1}}}return ys(h,d)})}function yit(n,s){for(;rr(n)&&n.operatorToken.kind===56;){if(ys(n.right,function _(d){if(we(d)){const h=yp(d);if(h&&h===s)return!0}return ys(d,_)}))return!0;n=n.parent}return!1}function vit(n){Lg(n),na(n.statement),vC(n.expression)}function bit(n){Lg(n),vC(n.expression),na(n.statement)}function Sae(n,s){return n.flags&16384&&Fe(s,p.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function vC(n,s){return Sae(Xi(n,s),n)}function Tit(n){Lg(n)||n.initializer&&n.initializer.kind===261&&qae(n.initializer),n.initializer&&(n.initializer.kind===261?Fz(n.initializer):Xi(n.initializer)),n.condition&&vC(n.condition),n.incrementor&&Xi(n.incrementor),na(n.statement),n.locals&&Uh(n)}function xit(n){L7e(n);const s=P9(n);if(n.awaitModifier?s&&ec(s)?Yt(n.awaitModifier,p.for_await_loops_cannot_be_used_inside_a_class_static_block):(Il(s)&6)===2&&ee<99&&Kc(n,16384):j.downlevelIteration&&ee<2&&Kc(n,256),n.initializer.kind===261)Fz(n.initializer);else{const c=n.initializer,_=eI(n);if(c.kind===209||c.kind===210)bb(c,_||$e);else{const d=Xi(c);f7(c,p.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),_&&Jh(_,d,c,n.expression)}}na(n.statement),n.locals&&Uh(n)}function Sit(n){L7e(n);const s=Ose(Xi(n.expression));if(n.initializer.kind===261){const c=n.initializer.declarations[0];c&&Ns(c.name)&&Fe(c.name,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Fz(n.initializer)}else{const c=n.initializer,_=Xi(c);c.kind===209||c.kind===210?Fe(c,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):la(aYe(s),_)?f7(c,p.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Fe(c,p.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(s===jn||!kl(s,126091264))&&Fe(n.expression,p.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,kn(s)),na(n.statement),n.locals&&Uh(n)}function eI(n){const s=n.awaitModifier?15:13;return P0(s,uC(n.expression),Pt,n.expression)}function P0(n,s,c,_){return Wa(s)?s:kae(n,s,c,_,!0)||ke}function kae(n,s,c,_,d){const h=(n&2)!==0;if(s===jn){Aae(_,s,h);return}const T=ee>=2,P=!T&&j.downlevelIteration,O=j.noUncheckedIndexedAccess&&!!(n&128);if(T||P||h){const Ze=Mz(s,n,T?_:void 0);if(d&&Ze){const St=n&8?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?p.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;St&&J_(c,Ze.nextType,_,St)}if(Ze||T)return O?r7(Ze&&Ze.yieldType):Ze&&Ze.yieldType}let $=s,te=!1,ce=!1;if(n&4){if($.flags&1048576){const Ze=s.types,St=Vr(Ze,Kt=>!(Kt.flags&402653316));St!==Ze&&($=zr(St,2))}else $.flags&402653316&&($=jn);if(ce=$!==s,ce&&(ee<1&&_&&(Fe(_,p.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),te=!0),$.flags&131072))return O?r7(F):F}if(!w0($)){if(_&&!te){const Ze=!!(n&4)&&!ce,[St,Kt]=Te(Ze,P);bh(_,Kt&&!!g7($),St,kn($))}return ce?O?r7(F):F:void 0}const Se=x0($,ye);if(ce&&Se)return Se.flags&402653316&&!j.noUncheckedIndexedAccess?F:zr(O?[Se,F,Pt]:[Se,F],2);return n&128?r7(Se):Se;function Te(Ze,St){var Kt;return St?Ze?[p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Cae(n,0,s,void 0)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:kit((Kt=s.symbol)==null?void 0:Kt.escapedName)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:Ze?[p.Type_0_is_not_an_array_type_or_a_string_type,!0]:[p.Type_0_is_not_an_array_type,!0]}}function kit(n){switch(n){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 Cae(n,s,c,_){if(Wa(c))return;const d=Mz(c,n,_);return d&&d[Dme(s)]}function I0(n=jn,s=jn,c=Jt){if(n.flags&67359327&&s.flags&180227&&c.flags&180227){const _=qf([n,s,c]);let d=Pr.get(_);return d||(d={yieldType:n,returnType:s,nextType:c},Pr.set(_,d)),d}return{yieldType:n,returnType:s,nextType:c}}function zEe(n){let s,c,_;for(const d of n)if(!(d===void 0||d===wn)){if(d===mr)return mr;s=gn(s,d.yieldType),c=gn(c,d.returnType),_=gn(_,d.nextType)}return s||c||_?I0(s&&zr(s),c&&zr(c),_&&ca(_)):wn}function Lz(n,s){return n[s]}function Jm(n,s,c){return n[s]=c}function Mz(n,s,c){var _,d;if(Wa(n))return mr;if(!(n.flags&1048576)){const $=c?{errors:void 0}:void 0,te=VEe(n,s,c,$);if(te===wn){if(c){const ce=Aae(c,n,!!(s&2));$!=null&&$.errors&&fa(ce,...$.errors)}return}else if((_=$==null?void 0:$.errors)!=null&&_.length)for(const ce of $.errors)xa.add(ce);return te}const h=s&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=Lz(n,h);if(T)return T===wn?void 0:T;let P;for(const $ of n.types){const te=c?{errors:void 0}:void 0,ce=VEe($,s,c,te);if(ce===wn){if(c){const Se=Aae(c,n,!!(s&2));te!=null&&te.errors&&fa(Se,...te.errors)}Jm(n,h,wn);return}else if((d=te==null?void 0:te.errors)!=null&&d.length)for(const Se of te.errors)xa.add(Se);P=gn(P,ce)}const O=P?zEe(P):wn;return Jm(n,h,O),O===wn?void 0:O}function Eae(n,s){if(n===wn)return wn;if(n===mr)return mr;const{yieldType:c,returnType:_,nextType:d}=n;return s&&rie(!0),I0(Tb(c,s)||ke,Tb(_,s)||ke,d)}function VEe(n,s,c,_){if(Wa(n))return mr;let d=!1;if(s&2){const h=wae(n,Ma)||WEe(n,Ma);if(h)if(h===wn&&c)d=!0;else return s&8?Eae(h,c):h}if(s&1){let h=wae(n,io)||WEe(n,io);if(h)if(h===wn&&c)d=!0;else if(s&2){if(h!==wn)return h=Eae(h,c),d?h:Jm(n,"iterationTypesOfAsyncIterable",h)}else return h}if(s&2){const h=Dae(n,Ma,c,_,d);if(h!==wn)return h}if(s&1){let h=Dae(n,io,c,_,d);if(h!==wn)return s&2?(h=Eae(h,c),d?h:Jm(n,"iterationTypesOfAsyncIterable",h)):h}return wn}function wae(n,s){return Lz(n,s.iterableCacheKey)}function UEe(n,s){const c=wae(n,s)||Dae(n,s,void 0,void 0,!1);return c===wn?Ur:c}function WEe(n,s){let c;if(G1(n,c=s.getGlobalIterableType(!1))||G1(n,c=s.getGlobalIterableIteratorType(!1))){const[_]=po(n),{returnType:d,nextType:h}=UEe(c,s);return Jm(n,s.iterableCacheKey,I0(s.resolveIterationType(_,void 0)||_,s.resolveIterationType(d,void 0)||d,h))}if(G1(n,s.getGlobalGeneratorType(!1))){const[_,d,h]=po(n);return Jm(n,s.iterableCacheKey,I0(s.resolveIterationType(_,void 0)||_,s.resolveIterationType(d,void 0)||d,h))}}function Cit(n){const s=N4e(!1),c=s&&Wc($n(s),qo(n));return c&&rp(c)?ip(c):`__@${n}`}function Dae(n,s,c,_,d){var te;const h=qs(n,Cit(s.iteratorSymbolName)),T=h&&!(h.flags&16777216)?$n(h):void 0;if(Wa(T))return d?mr:Jm(n,s.iterableCacheKey,mr);const P=T?As(T,0):void 0;if(!dt(P))return d?wn:Jm(n,s.iterableCacheKey,wn);const O=ca(an(P,Va)),$=(te=qEe(O,s,c,_,d))!=null?te:wn;return d?$:Jm(n,s.iterableCacheKey,$)}function Aae(n,s,c){const _=c?p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,d=!!g7(s)||!c&&aA(n.parent)&&n.parent.expression===n&&vJ(!1)!==Ls&&la(s,vJ(!1));return bh(n,d,_,kn(s))}function Eit(n,s,c,_){return qEe(n,s,c,_,!1)}function qEe(n,s,c,_,d){if(Wa(n))return mr;let h=HEe(n,s)||wit(n,s);return h===wn&&c&&(h=void 0,d=!0),h!=null||(h=$Ee(n,s,c,_,d)),h===wn?void 0:h}function HEe(n,s){return Lz(n,s.iteratorCacheKey)}function wit(n,s){const c=s.getGlobalIterableIteratorType(!1);if(G1(n,c)){const[_]=po(n),d=HEe(c,s)||$Ee(c,s,void 0,void 0,!1),{returnType:h,nextType:T}=d===wn?Ur:d;return Jm(n,s.iteratorCacheKey,I0(_,h,T))}if(G1(n,s.getGlobalIteratorType(!1))||G1(n,s.getGlobalGeneratorType(!1))){const[_,d,h]=po(n);return Jm(n,s.iteratorCacheKey,I0(_,d,h))}}function GEe(n,s){const c=Wc(n,"done")||We;return la(s===0?We:Ot,c)}function Dit(n){return GEe(n,0)}function Ait(n){return GEe(n,1)}function Nit(n){if(Wa(n))return mr;const s=Lz(n,"iterationTypesOfIteratorResult");if(s)return s;if(G1(n,yQe(!1))){const T=po(n)[0];return Jm(n,"iterationTypesOfIteratorResult",I0(T,void 0,void 0))}if(G1(n,vQe(!1))){const T=po(n)[0];return Jm(n,"iterationTypesOfIteratorResult",I0(void 0,T,void 0))}const c=ol(n,Dit),_=c!==jn?Wc(c,"value"):void 0,d=ol(n,Ait),h=d!==jn?Wc(d,"value"):void 0;return!_&&!h?Jm(n,"iterationTypesOfIteratorResult",wn):Jm(n,"iterationTypesOfIteratorResult",I0(_,h||ar,void 0))}function Nae(n,s,c,_,d){var Ht,Mn;var h,T,P,O;const $=qs(n,c);if(!$&&c!=="next")return;const te=$&&!(c==="next"&&$.flags&16777216)?c==="next"?$n($):Hf($n($),2097152):void 0;if(Wa(te))return c==="next"?mr:oi;const ce=te?As(te,0):Ve;if(ce.length===0){if(_){const Xt=c==="next"?s.mustHaveANextMethodDiagnostic:s.mustBeAMethodDiagnostic;d?((Ht=d.errors)!=null||(d.errors=[]),d.errors.push(yr(_,Xt,c))):Fe(_,Xt,c)}return c==="next"?wn:void 0}if((te==null?void 0:te.symbol)&&ce.length===1){const Xt=s.getGlobalGeneratorType(!1),dn=s.getGlobalIteratorType(!1),Cn=((T=(h=Xt.symbol)==null?void 0:h.members)==null?void 0:T.get(c))===te.symbol,Un=!Cn&&((O=(P=dn.symbol)==null?void 0:P.members)==null?void 0:O.get(c))===te.symbol;if(Cn||Un){const ws=Cn?Xt:dn,{mapper:Sr}=te;return I0(Bh(ws.typeParameters[0],Sr),Bh(ws.typeParameters[1],Sr),c==="next"?Bh(ws.typeParameters[2],Sr):void 0)}}let Se,Te;for(const Xt of ce)c!=="throw"&&dt(Xt.parameters)&&(Se=gn(Se,$p(Xt,0))),Te=gn(Te,Va(Xt));let Ze,St;if(c!=="throw"){const Xt=Se?zr(Se):Jt;if(c==="next")St=Xt;else if(c==="return"){const dn=s.resolveIterationType(Xt,_)||ke;Ze=gn(Ze,dn)}}let Kt;const _n=Te?ca(Te):jn,Gn=s.resolveIterationType(_n,_)||ke,Nn=Nit(Gn);return Nn===wn?(_&&(d?((Mn=d.errors)!=null||(d.errors=[]),d.errors.push(yr(_,s.mustHaveAValueDiagnostic,c))):Fe(_,s.mustHaveAValueDiagnostic,c)),Kt=ke,Ze=gn(Ze,ke)):(Kt=Nn.yieldType,Ze=gn(Ze,Nn.returnType)),I0(Kt,zr(Ze),St)}function $Ee(n,s,c,_,d){const h=zEe([Nae(n,s,"next",c,_),Nae(n,s,"return",c,_),Nae(n,s,"throw",c,_)]);return d?h:Jm(n,s.iteratorCacheKey,h)}function Nv(n,s,c){if(Wa(s))return;const _=XEe(s,c);return _&&_[Dme(n)]}function XEe(n,s){if(Wa(n))return mr;const c=s?2:1,_=s?Ma:io;return Mz(n,c,void 0)||Eit(n,_,void 0,void 0)}function Pit(n){Lg(n)||Uat(n)}function tI(n,s){const c=!!(s&1),_=!!(s&2);if(c){const d=Nv(1,n,_);return d?_?N0(hC(d)):d:$e}return _?N0(n)||$e:n}function QEe(n,s){const c=tI(s,Il(n));return!!(c&&(Qo(c,16384)||c.flags&32769))}function Iit(n){var h;if(Lg(n))return;const s=P9(n);if(s&&ec(s)){Cl(n,p.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!s){Cl(n,p.A_return_statement_can_only_be_used_within_a_function_body);return}const c=gd(s),_=Va(c),d=Il(s);if(H||n.expression||_.flags&131072){const T=n.expression?jc(n.expression):Pt;if(s.kind===178)n.expression&&Fe(n,p.Setters_cannot_return_a_value);else if(s.kind===176)n.expression&&!Jh(T,_,n,n.expression)&&Fe(n,p.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Sk(s)){const P=(h=tI(_,d))!=null?h:_,O=d&2?y7(T,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):T;P&&Jh(O,P,n,n.expression)}}else s.kind!==176&&j.noImplicitReturns&&!QEe(s,_)&&Fe(n,p.Not_all_code_paths_return_a_value)}function Oit(n){Lg(n)||n.flags&65536&&Cl(n,p.with_statements_are_not_allowed_in_an_async_function_block),Xi(n.expression);const s=Bn(n);if(!Pv(s)){const c=gm(s,n.pos).start,_=n.statement.pos;Iv(s,c,_-c,p.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Fit(n){Lg(n);let s,c=!1;const _=Xi(n.expression);mn(n.caseBlock.clauses,d=>{d.kind===297&&!c&&(s===void 0?s=d:(Yt(d,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),d.kind===296&&r(h(d)),mn(d.statements,na),j.noFallthroughCasesInSwitch&&d.fallthroughFlowNode&&EP(d.fallthroughFlowNode)&&Fe(d,p.Fallthrough_case_in_switch);function h(T){return()=>{const P=Xi(T.expression);_ae(_,P)||DCe(P,_,T.expression,void 0)}}}),n.caseBlock.locals&&Uh(n.caseBlock)}function Lit(n){Lg(n)||On(n.parent,s=>ks(s)?"quit":s.kind===256&&s.label.escapedText===n.label.escapedText?(Yt(n.label,p.Duplicate_label_0,el(n.label)),!0):!1),na(n.statement)}function Mit(n){Lg(n)||we(n.expression)&&!n.expression.escapedText&&iot(n,p.Line_break_not_permitted_here),n.expression&&Xi(n.expression)}function Rit(n){Lg(n),Oz(n.tryBlock);const s=n.catchClause;if(s){if(s.variableDeclaration){const c=s.variableDeclaration;KP(c);const _=Vl(c);if(_){const d=ii(_);d&&!(d.flags&3)&&Cl(_,p.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)Cl(c.initializer,p.Catch_clause_variable_cannot_have_an_initializer);else{const d=s.block.locals;d&&Ix(s.locals,h=>{const T=d.get(h);(T==null?void 0:T.valueDeclaration)&&(T.flags&2)!==0&&Yt(T.valueDeclaration,p.Cannot_redeclare_identifier_0_in_catch_clause,Li(h))})}}Oz(s.block)}n.finallyBlock&&Oz(n.finallyBlock)}function Rz(n,s,c){const _=x_(n);if(_.length===0)return;for(const h of Ih(n))c&&h.flags&4194304||YEe(n,h,tC(h,8576,!0),H1(h));const d=s.valueDeclaration;if(d&&ei(d)){for(const h of d.members)if(!Ps(h)&&!vk(h)){const T=hr(h);YEe(n,T,a_(h.name.expression),H1(T))}}if(_.length>1)for(const h of _)Bit(n,h)}function YEe(n,s,c,_){const d=s.valueDeclaration,h=os(d);if(h&&Ei(h))return;const T=Vre(n,c),P=Br(n)&2?uc(n.symbol,264):void 0,O=d&&d.kind===226||h&&h.kind===167?d:void 0,$=$_(s)===n.symbol?d:void 0;for(const te of T){const ce=te.declaration&&$_(hr(te.declaration))===n.symbol?te.declaration:void 0,Se=$||ce||(P&&!dt(xo(n),Te=>!!mv(Te,s.escapedName)&&!!x0(Te,te.keyType))?P:void 0);if(Se&&!la(_,te.type)){const Te=al(Se,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ni(s),kn(_),kn(te.keyType),kn(te.type));O&&Se!==O&&fa(Te,yr(O,p._0_is_declared_here,ni(s))),xa.add(Te)}}}function Bit(n,s){const c=s.declaration,_=Vre(n,s.keyType),d=Br(n)&2?uc(n.symbol,264):void 0,h=c&&$_(hr(c))===n.symbol?c:void 0;for(const T of _){if(T===s)continue;const P=T.declaration&&$_(hr(T.declaration))===n.symbol?T.declaration:void 0,O=h||P||(d&&!dt(xo(n),$=>!!Rm($,s.keyType)&&!!x0($,T.keyType))?d:void 0);O&&!la(s.type,T.type)&&Fe(O,p._0_index_type_1_is_not_assignable_to_2_index_type_3,kn(s.keyType),kn(s.type),kn(T.keyType),kn(T.type))}}function bC(n,s){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Fe(n,s,n.escapedText)}}function jit(n){ee>=1&&n.escapedText==="Object"&&(R<5||Bn(n).impliedNodeFormat===1)&&Fe(n,p.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,FC[R])}function Jit(n){const s=Vr(dy(n),rd);if(!Pn(s))return;const c=Zn(n),_=new Set,d=new Set;if(mn(n.parameters,({name:T},P)=>{we(T)&&_.add(T.escapedText),Ns(T)&&d.add(P)}),qre(n)){const T=s.length-1,P=s[T];c&&P&&we(P.name)&&P.typeExpression&&P.typeExpression.type&&!_.has(P.name.escapedText)&&!d.has(T)&&!wf(ii(P.typeExpression.type))&&Fe(P.name,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,lr(P.name))}else mn(s,({name:T,isNameFirst:P},O)=>{d.has(O)||we(T)&&_.has(T.escapedText)||(gu(T)?c&&Fe(T,p.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Nu(T),Nu(T.left)):P||Tf(c,T,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,lr(T)))})}function nI(n){let s=!1;if(n)for(let _=0;_{_.default?(s=!0,zit(_.default,n,d)):s&&Fe(_,p.Required_type_parameters_may_not_follow_optional_type_parameters);for(let h=0;h_)return!1;for(let O=0;O$c(c)&&N_(c))&&Yt(s,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Mr(n,1024)&&Cl(n,p.A_class_declaration_without_the_default_modifier_must_have_a_name),t7e(n),mn(n.members,na),Uh(n)}function t7e(n){Dat(n),QP(n),yC(n,n.name),nI(Zh(n)),m7(n);const s=hr(n),c=go(s),_=Uu(c),d=$n(s);ZEe(s),Nz(s),art(n),!!(n.flags&33554432)||ort(n);const T=Id(n);if(T){mn(T.typeArguments,na),ee<2&&Kc(T.parent,1);const $=r2(n);$&&$!==T&&Xi($.expression);const te=xo(c);te.length&&r(()=>{const ce=te[0],Se=ui(c),Te=Y_(Se);if(Git(Te,T),na(T.expression),dt(T.typeArguments)){mn(T.typeArguments,na);for(const St of Dr(Te,T.typeArguments,T))if(!SEe(T,St.typeParameters))break}const Ze=Uu(ce,c.thisType);if(J_(_,Ze,void 0)?J_(d,TCe(Te),n.name||n,p.Class_static_side_0_incorrectly_extends_base_class_static_side_1):i7e(n,_,Ze,p.Class_0_incorrectly_extends_base_class_1),Se.flags&8650752&&($1(d)?As(Se,1).some(Kt=>Kt.flags&4)&&!Mr(n,256)&&Fe(n.name||n,p.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Fe(n.name||n,p.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Te.symbol&&Te.symbol.flags&32)&&!(Se.flags&8650752)){const St=mi(Te,T.typeArguments,T);mn(St,Kt=>!vd(Kt.declaration)&&!Ag(Va(Kt),ce))&&Fe(T.expression,p.Base_constructors_must_all_have_the_same_return_type)}Qit(c,ce)})}Hit(n,c,_,d);const P=C6(n);if(P)for(const $ of P)(!Sc($.expression)||c_($.expression))&&Fe($.expression,p.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),hae($),r(O($));r(()=>{Rz(c,s),Rz(d,s,!0),dae(n),Kit(n)});function O($){return()=>{const te=Wp(ii($));if(!q(te))if(Vf(te)){const ce=te.symbol&&te.symbol.flags&32?p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:p.Class_0_incorrectly_implements_interface_1,Se=Uu(te,c.thisType);J_(_,Se,void 0)||i7e(n,_,Se,ce)}else Fe($,p.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Hit(n,s,c,_){const h=Id(n)&&xo(s),T=h!=null&&h.length?Uu(wa(h),s.thisType):void 0,P=ui(s);for(const O of n.members)Eq(O)||(wc(O)&&mn(O.parameters,$=>{Du($,O)&&n7e(n,_,P,T,s,c,$,!0)}),n7e(n,_,P,T,s,c,O,!1))}function n7e(n,s,c,_,d,h,T,P,O=!0){const $=T.name&&yp(T.name)||yp(T);return $?r7e(n,s,c,_,d,h,Cq(T),o2(T),Ps(T),P,xc($),O?T:void 0):0}function r7e(n,s,c,_,d,h,T,P,O,$,te,ce){const Se=Zn(n),Te=!!(n.flags&33554432);if(_&&(T||j.noImplicitOverride)){const Ze=qo(te),St=O?s:h,Kt=O?c:_,_n=qs(St,Ze),Gn=qs(Kt,Ze),Nn=kn(_);if(_n&&!Gn&&T){if(ce){const Ht=m8e(te,Kt);Ht?Fe(ce,Se?p.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:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Nn,ni(Ht)):Fe(ce,Se?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Nn)}return 2}else if(_n&&(Gn==null?void 0:Gn.declarations)&&j.noImplicitOverride&&!Te){const Ht=dt(Gn.declarations,o2);if(T)return 0;if(Ht){if(P&&Ht)return ce&&Fe(ce,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Nn),1}else{if(ce){const Mn=$?Se?p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Se?p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Fe(ce,Mn,Nn)}return 1}}}else if(T){if(ce){const Ze=kn(d);Fe(ce,Se?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,Ze)}return 2}return 0}function i7e(n,s,c,_){let d=!1;for(const h of n.members){if(Ps(h))continue;const T=h.name&&yp(h.name)||yp(h);if(T){const P=qs(s,T.escapedName),O=qs(c,T.escapedName);if(P&&O){const $=()=>_s(void 0,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ni(T),kn(s),kn(c));J_($n(P),$n(O),h.name||h,void 0,$)||(d=!0)}}}d||J_(s,c,n.name||n,_)}function Git(n,s){const c=As(n,1);if(c.length){const _=c[0].declaration;if(_&&Iu(_,8)){const d=Xg(n.symbol);Mae(s,d)||Fe(s,p.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,m0(n.symbol))}}}function $it(n,s,c){if(!s.name)return 0;const _=hr(n),d=go(_),h=Uu(d),T=$n(_),O=Id(n)&&xo(d),$=O!=null&&O.length?Uu(wa(O),d.thisType):void 0,te=ui(d),ce=s.parent?Cq(s):Mr(s,16384);return r7e(n,T,te,$,d,h,ce,o2(s),Ps(s),!1,xc(c))}function Mk(n){return rc(n)&1?n.links.target:n}function Xit(n){return Vr(n.declarations,s=>s.kind===263||s.kind===264)}function Qit(n,s){var O,$,te,ce;var c,_,d,h;const T=za(s);let P;e:for(const Se of T){const Te=Mk(Se);if(Te.flags&4194304)continue;const Ze=mv(n,Te.escapedName);if(!Ze)continue;const St=Mk(Ze),Kt=Ff(Te);if(E.assert(!!St,"derived should point to something, even if it is the base class' declaration."),St===Te){const _n=Xg(n.symbol);if(Kt&256&&(!_n||!Mr(_n,256))){for(const Gn of xo(n)){if(Gn===s)continue;const Nn=mv(Gn,Te.escapedName),Ht=Nn&&Mk(Nn);if(Ht&&Ht!==Te)continue e}P||(P=Fe(_n,p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,kn(n),kn(s))),_n.kind===231?fa(P,yr(($=(O=Se.valueDeclaration)!=null?O:Se.declarations&&wa(Se.declarations))!=null?$:_n,p.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ni(Se),kn(s))):fa(P,yr((ce=(te=Se.valueDeclaration)!=null?te:Se.declarations&&wa(Se.declarations))!=null?ce:_n,p.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,kn(n),ni(Se),kn(s)))}}else{const _n=Ff(St);if(Kt&8||_n&8)continue;let Gn;const Nn=Te.flags&98308,Ht=St.flags&98308;if(Nn&&Ht){if((rc(Te)&6?(c=Te.declarations)==null?void 0:c.some(dn=>s7e(dn,Kt)):(_=Te.declarations)==null?void 0:_.every(dn=>s7e(dn,Kt)))||rc(Te)&262144||St.valueDeclaration&&rr(St.valueDeclaration))continue;const Mn=Nn!==4&&Ht===4;if(Mn||Nn===4&&Ht!==4){const dn=Mn?p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Fe(os(St.valueDeclaration)||St.valueDeclaration,dn,ni(Te),kn(s),kn(n))}else if(oe){const dn=(d=St.declarations)==null?void 0:d.find(Cn=>Cn.kind===172&&!Cn.initializer);if(dn&&!(St.flags&33554432)&&!(Kt&256)&&!(_n&256)&&!((h=St.declarations)!=null&&h.some(Cn=>!!(Cn.flags&33554432)))){const Cn=lv(Xg(n.symbol)),Un=dn.name;if(dn.exclamationToken||!Cn||!we(Un)||!H||!o7e(Un,n,Cn)){const ws=p.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;Fe(os(St.valueDeclaration)||St.valueDeclaration,ws,ni(Te),kn(s))}}}continue}else if(Pse(Te)){if(Pse(St)||St.flags&4)continue;E.assert(!!(St.flags&98304)),Gn=p.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Te.flags&98304?Gn=p.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Gn=p.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Fe(os(St.valueDeclaration)||St.valueDeclaration,Gn,kn(s),ni(Te),kn(n))}}}function s7e(n,s){return s&256&&(!Is(n)||!n.initializer)||f_(n.parent)}function Yit(n,s,c){if(!Pn(s))return c;const _=new Map;mn(c,d=>{_.set(d.escapedName,d)});for(const d of s){const h=za(Uu(d,n.thisType));for(const T of h){const P=_.get(T.escapedName);P&&T.parent===P.parent&&_.delete(T.escapedName)}}return ia(_.values())}function Zit(n,s){const c=xo(n);if(c.length<2)return!0;const _=new Map;mn(Sre(n).declaredProperties,h=>{_.set(h.escapedName,{prop:h,containingType:n})});let d=!0;for(const h of c){const T=za(Uu(h,n.thisType));for(const P of T){const O=_.get(P.escapedName);if(!O)_.set(P.escapedName,{prop:P,containingType:h});else if(O.containingType!==n&&!pZe(O.prop,P)){d=!1;const te=kn(O.containingType),ce=kn(h);let Se=_s(void 0,p.Named_property_0_of_types_1_and_2_are_not_identical,ni(P),te,ce);Se=_s(Se,p.Interface_0_cannot_simultaneously_extend_types_1_and_2,kn(n),te,ce),xa.add(Wg(Bn(s),s,Se))}}}return d}function Kit(n){if(!H||!ue||n.flags&33554432)return;const s=lv(n);for(const c of n.members)if(!(I_(c)&2)&&!Ps(c)&&a7e(c)){const _=c.name;if(we(_)||Ei(_)||Ga(_)){const d=$n(hr(c));d.flags&3||rC(d)||(!s||!o7e(_,d,s))&&Fe(c.name,p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,no(_))}}}function a7e(n){return n.kind===172&&!o2(n)&&!n.exclamationToken&&!n.initializer}function est(n,s,c,_,d){for(const h of c)if(h.pos>=_&&h.pos<=d){const T=I.createPropertyAccessExpression(I.createThis(),n);Ta(T.expression,T),Ta(T,h),T.flowNode=h.returnFlowNode;const P=Vh(T,s,A0(s));if(!rC(P))return!0}return!1}function o7e(n,s,c){const _=Ga(n)?I.createElementAccessExpression(I.createThis(),n.expression):I.createPropertyAccessExpression(I.createThis(),n);Ta(_.expression,_),Ta(_,c),_.flowNode=c.returnFlowNode;const d=Vh(_,s,A0(s));return!rC(d)}function tst(n){zm(n)||Lat(n),nI(n.typeParameters),r(()=>{bC(n.name,p.Interface_name_cannot_be_0),m7(n);const s=hr(n);ZEe(s);const c=uc(s,264);if(n===c){const _=go(s),d=Uu(_);if(Zit(_,n.name)){for(const h of xo(_))J_(d,Uu(h,_.thisType),n.name,p.Interface_0_incorrectly_extends_interface_1);Rz(_,s)}}vEe(n)}),mn(u3(n),s=>{(!Sc(s.expression)||c_(s.expression))&&Fe(s.expression,p.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),hae(s)}),mn(n.members,na),r(()=>{dae(n),Uh(n)})}function nst(n){zm(n),bC(n.name,p.Type_alias_name_cannot_be_0),m7(n),nI(n.typeParameters),n.type.kind===141?(!XA.has(n.name.escapedText)||Pn(n.typeParameters)!==1)&&Fe(n.type,p.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(na(n.type),Uh(n))}function c7e(n){const s=Jr(n);if(!(s.flags&1024)){s.flags|=1024;let c=0;for(const _ of n.members){const d=rst(_,c);Jr(_).enumMemberValue=d,c=typeof d=="number"?d+1:void 0}}}function rst(n,s){if(Ow(n.name))Fe(n.name,p.Computed_property_names_are_not_allowed_in_enums);else{const c=_6(n.name);rg(c)&&!z3(c)&&Fe(n.name,p.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return ist(n);if(!(n.parent.flags&33554432&&!Zv(n.parent))){if(s!==void 0)return s;Fe(n.name,p.Enum_member_must_have_initializer)}}function ist(n){const s=Zv(n.parent),c=n.initializer,_=TC(c,n);return _!==void 0?s&&typeof _=="number"&&!isFinite(_)&&Fe(c,isNaN(_)?p.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:p.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):s?Fe(c,p.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Fe(c,p.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):J_(Xi(c),ye,c,p.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),_}function TC(n,s){switch(n.kind){case 224:const c=TC(n.operand,s);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:const _=TC(n.left,s),d=TC(n.right,s);if(typeof _=="number"&&typeof d=="number")switch(n.operatorToken.kind){case 52:return _|d;case 51:return _&d;case 49:return _>>d;case 50:return _>>>d;case 48:return _<ast(n))}function ast(n){zm(n),yC(n,n.name),m7(n),n.members.forEach(ost),c7e(n);const s=hr(n),c=uc(s,n.kind);if(n===c){if(s.declarations&&s.declarations.length>1){const d=Zv(n);mn(s.declarations,h=>{Ay(h)&&Zv(h)!==d&&Fe(os(h),p.Enum_declarations_must_all_be_const_or_non_const)})}let _=!1;mn(s.declarations,d=>{if(d.kind!==266)return!1;const h=d;if(!h.members.length)return!1;const T=h.members[0];T.initializer||(_?Fe(T.name,p.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):_=!0)})}}function ost(n){Ei(n.name)&&Fe(n,p.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&Xi(n.initializer)}function cst(n){const s=n.declarations;if(s){for(const c of s)if((c.kind===263||c.kind===262&&Xf(c.body))&&!(c.flags&33554432))return c}}function lst(n,s){const c=mm(n),_=mm(s);return Xd(c)?Xd(_):Xd(_)?!1:c===_}function _st(n){n.body&&(na(n.body),Pd(n)||Uh(n)),r(s);function s(){var c,_;const d=Pd(n),h=n.flags&33554432;d&&!h&&Fe(n.name,p.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const T=__(n),P=T?p.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:p.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(rI(n,P))return;zm(n)||!h&&n.name.kind===11&&Yt(n.name,p.Only_ambient_modules_can_use_quoted_names),we(n.name)&&yC(n,n.name),m7(n);const O=hr(n);if(O.flags&512&&!h&&A$(n,Hb(j))){if(ed(j)&&!Bn(n).externalModuleIndicator&&Fe(n.name,p.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Je),((c=O.declarations)==null?void 0:c.length)>1){const $=cst(O);$&&(Bn(n)!==Bn($)?Fe(n.name,p.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<$.pos&&Fe(n.name,p.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const te=uc(O,263);te&&lst(n,te)&&(Jr(n).flags|=2048)}if(j.verbatimModuleSyntax&&n.parent.kind===312&&(R===1||n.parent.impliedNodeFormat===1)){const $=(_=n.modifiers)==null?void 0:_.find(te=>te.kind===95);$&&Fe($,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(T)if(Qv(n)){if((d||hr(n).flags&33554432)&&n.body)for(const te of n.body.statements)Pae(te,d)}else Xd(n.parent)?d?Fe(n.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Al(kp(n.name))&&Fe(n.name,p.Ambient_module_declaration_cannot_specify_relative_module_name):d?Fe(n.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Fe(n.name,p.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Pae(n,s){switch(n.kind){case 243:for(const _ of n.declarationList.declarations)Pae(_,s);break;case 277:case 278:Cl(n,p.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:Cl(n,p.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const c=n.name;if(Ns(c)){for(const _ of c.elements)Pae(_,s);break}case 263:case 266:case 262:case 264:case 267:case 265:if(s)return;break}}function ust(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(Zm(n.expression)&&!Ei(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function Iae(n){const s=b6(n);if(!s||fc(s))return!1;if(!pa(s))return Fe(s,p.String_literal_expected),!1;const c=n.parent.kind===268&&__(n.parent.parent);if(n.parent.kind!==312&&!c)return Fe(s,n.kind===278?p.Export_declarations_are_not_permitted_in_a_namespace:p.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Al(s.text)&&!_v(n))return Fe(n,p.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Hl(n)&&n.assertClause){let _=!1;for(const d of n.assertClause.elements)pa(d.value)||(_=!0,Fe(d.value,p.Import_assertion_values_must_be_string_literal_expressions));return!_}return!0}function Bz(n){var P;var s,c,_,d;let h=hr(n);const T=gl(h);if(T!==st){if(h=Ra(h.exportSymbol||h),Zn(n)&&!(T.flags&111551)&&!Gv(n)){const te=Ax(n)?n.propertyName||n.name:A_(n)?n.name:n;if(E.assert(n.kind!==280),n.kind===281){const ce=Fe(te,p.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Se=(c=(s=Bn(n).symbol)==null?void 0:s.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(Se===T){const Te=(_=Se.declarations)==null?void 0:_.find(s6);Te&&fa(ce,yr(Te,p._0_is_automatically_exported_here,Li(Se.escapedName)))}}else{E.assert(n.kind!==260);const ce=On(n,Yp(bl,Hl)),Se=(P=ce&&((d=c3(ce))==null?void 0:d.text))!=null?P:"...",Te=Li(we(te)?te.escapedText:h.escapedName);Fe(te,p._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Te,`import("${Se}").${Te}`)}return}const O=Su(T),$=(h.flags&1160127?111551:0)|(h.flags&788968?788968:0)|(h.flags&1920?1920:0);if(O&$){const te=n.kind===281?p.Export_declaration_conflicts_with_exported_declaration_of_0:p.Import_declaration_conflicts_with_local_declaration_of_0;Fe(n,te,ni(h))}if(ed(j)&&!Gv(n)&&!(n.flags&33554432)){const te=mp(h),ce=!(O&111551);if(ce||te)switch(n.kind){case 273:case 276:case 271:{if(j.preserveValueImports||j.verbatimModuleSyntax){E.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const Se=j.verbatimModuleSyntax&&y6(n)?p.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ce?j.verbatimModuleSyntax?p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:j.verbatimModuleSyntax?p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,Te=lr(n.kind===276&&n.propertyName||n.name);j2(Fe(n,Se,Te),ce?void 0:te,Te)}ce&&n.kind===271&&Iu(n,1)&&Fe(n,p.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Je);break}case 281:if(j.verbatimModuleSyntax||Bn(te)!==Bn(n)){const Se=lr(n.propertyName||n.name),Te=ce?Fe(n,p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Je):Fe(n,p._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Se,Je);j2(Te,ce?void 0:te,Se);break}}j.verbatimModuleSyntax&&n.kind!==271&&!Zn(n)&&(R===1||Bn(n).impliedNodeFormat===1)&&Fe(n,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(yu(n)){const te=Oae(h,n);up(te)&&te.declarations&&_0(n,te.declarations,te.escapedName)}}}function Oae(n,s){if(!(n.flags&2097152)||up(n)||!pp(n))return n;const c=gl(n);if(c===st)return c;for(;n.flags&2097152;){const _=Cse(n);if(_){if(_===c)break;if(_.declarations&&Pn(_.declarations))if(up(_)){_0(s,_.declarations,_.escapedName);break}else{if(n===c)break;n=_}}else break}return c}function jz(n){yC(n,n.name),Bz(n),n.kind===276&&lr(n.propertyName||n.name)==="default"&&bm(j)&&R!==4&&(R<5||Bn(n).impliedNodeFormat===1)&&Kc(n,131072)}function u7e(n){var s;if(n.assertClause){const c=wX(n),_=ES(n.assertClause,c?Yt:void 0);if(c&&_)return mD()||Yt(n.assertClause,p.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Cc(j)!==3&&Cc(j)!==99?Yt(n.assertClause,p.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((R===199&&n.moduleSpecifier&&hc(n.moduleSpecifier))!==99&&R!==99)return Yt(n.assertClause,R===199?p.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:p.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(bl(n)?(s=n.importClause)==null?void 0:s.isTypeOnly:n.isTypeOnly)return Yt(n.assertClause,p.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(_)return Yt(n.assertClause,p.resolution_mode_can_only_be_set_for_type_only_imports)}}function fst(n){if(!rI(n,Zn(n)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!zm(n)&&rO(n)&&Cl(n,p.An_import_declaration_cannot_have_modifiers),Iae(n)){const s=n.importClause;s&&!aot(s)&&(s.name&&jz(s),s.namedBindings&&(s.namedBindings.kind===274?(jz(s.namedBindings),R!==4&&(R<5||Bn(n).impliedNodeFormat===1)&&bm(j)&&Kc(n,65536)):r_(n,n.moduleSpecifier)&&mn(s.namedBindings.elements,jz)))}u7e(n)}}function pst(n){if(!rI(n,Zn(n)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(zm(n),y6(n)||Iae(n)))if(jz(n),Mr(n,1)&&M1(n),n.moduleReference.kind!==283){const s=gl(hr(n));if(s!==st){const c=Su(s);if(c&111551){const _=Ku(n.moduleReference);Xo(_,112575).flags&1920||Fe(_,p.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,no(_))}c&788968&&bC(n.name,p.Import_name_cannot_be_0)}n.isTypeOnly&&Yt(n,p.An_import_alias_cannot_use_import_type)}else R>=5&&Bn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&Yt(n,p.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 dst(n){if(!rI(n,Zn(n)?p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!zm(n)&&O_e(n)&&Cl(n,p.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&ap(n.exportClause)&&Pn(n.exportClause.elements)&&ee===0&&Kc(n,4194304),mst(n),!n.moduleSpecifier||Iae(n))if(n.exportClause&&!og(n.exportClause)){mn(n.exportClause.elements,Tst);const s=n.parent.kind===268&&__(n.parent.parent),c=!s&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!s&&!c&&Fe(n,p.Export_declarations_are_not_permitted_in_a_namespace)}else{const s=r_(n,n.moduleSpecifier);s&&sv(s)?Fe(n.moduleSpecifier,p.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ni(s)):n.exportClause&&Bz(n.exportClause),R!==4&&(R<5||Bn(n).impliedNodeFormat===1)&&(n.exportClause?bm(j)&&Kc(n,65536):Kc(n,32768))}u7e(n)}}function mst(n){var s;return n.isTypeOnly&&((s=n.exportClause)==null?void 0:s.kind)===279?V7e(n.exportClause):!1}function rI(n,s){const c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||Cl(n,s),!c}function gst(n){return q9(n,s=>!!hr(s).isReferenced)}function hst(n){return q9(n,s=>!!Fi(hr(s)).constEnumReferenced)}function yst(n){return bl(n)&&n.importClause&&!n.importClause.isTypeOnly&&gst(n.importClause)&&!qz(n.importClause,!0)&&!hst(n.importClause)}function vst(n){return Hl(n)&&km(n.moduleReference)&&!n.isTypeOnly&&hr(n).isReferenced&&!qz(n,!1)&&!Fi(hr(n)).constEnumReferenced}function bst(n){if(!!at)for(const s of n.statements)(yst(s)||vst(s))&&Fe(s,p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Tst(n){if(Bz(n),Ep(j)&&G4(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)bm(j)&&R!==4&&(R<5||Bn(n).impliedNodeFormat===1)&&lr(n.propertyName||n.name)==="default"&&Kc(n,131072);else{const s=n.propertyName||n.name,c=Mc(s,s.escapedText,2998271,void 0,void 0,!0);if(c&&(c===Pe||c===Ge||c.declarations&&Xd(KT(c.declarations[0]))))Fe(s,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,lr(s));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&M1(n);const _=c&&(c.flags&2097152?gl(c):c);(!_||Su(_)&111551)&&jc(n.propertyName||n.name)}}}function xst(n){const s=n.isExportEquals?p.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(rI(n,s))return;const c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!__(c)){n.isExportEquals?Fe(n,p.An_export_assignment_cannot_be_used_in_a_namespace):Fe(n,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!zm(n)&&rO(n)&&Cl(n,p.An_export_assignment_cannot_have_modifiers);const _=Vl(n);_&&J_(jc(n.expression),ii(_),n.expression);const d=!n.isExportEquals&&!(n.flags&33554432)&&j.verbatimModuleSyntax&&(R===1||Bn(n).impliedNodeFormat===1);if(n.expression.kind===80){const h=n.expression,T=X_(Xo(h,67108863,!0,!0,n));T?(az(T,h),Su(T)&111551?(jc(h),!d&&!(n.flags&33554432)&&j.verbatimModuleSyntax&&mp(T,111551)&&Fe(h,n.isExportEquals?p.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:p.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,lr(h))):!d&&!(n.flags&33554432)&&j.verbatimModuleSyntax&&Fe(h,n.isExportEquals?p.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:p.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,lr(h))):jc(h),Ep(j)&&G4(h,!0)}else jc(n.expression);d&&Fe(n,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),f7e(c),n.flags&33554432&&!Sc(n.expression)&&Yt(n.expression,p.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(R>=5&&(n.flags&33554432&&Bn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Bn(n).impliedNodeFormat!==1)?Yt(n,p.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):R===4&&!(n.flags&33554432)&&Yt(n,p.Export_assignment_is_not_supported_when_module_flag_is_system))}function Sst(n){return Au(n.exports,(s,c)=>c!=="export=")}function f7e(n){const s=hr(n),c=Fi(s);if(!c.exportsChecked){const _=s.exports.get("export=");if(_&&Sst(s)){const h=pp(_)||_.valueDeclaration;h&&!_v(h)&&!Zn(h)&&Fe(h,p.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const d=Zd(s);d&&d.forEach(({declarations:h,flags:T},P)=>{if(P==="__export"||T&1920)return;const O=L0(h,hI(Ame,yI(f_)));if(!(T&524288&&O<=2)&&O>1&&!Jz(h))for(const $ of h)Eme($)&&xa.add(yr($,p.Cannot_redeclare_exported_variable_0,Li(P)))}),c.exportsChecked=!0}}function Jz(n){return n&&n.length>1&&n.every(s=>Zn(s)&&Mo(s)&&(Rb(s.expression)||Zm(s.expression)))}function na(n){if(n){const s=D;D=n,k=0,kst(n),D=s}}function kst(n){rD(n)&&mn(n.jsDoc,({comment:c,tags:_})=>{p7e(c),mn(_,d=>{p7e(d.comment),Zn(n)&&na(d)})});const s=n.kind;if(i)switch(s){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(s>=243&&s<=259&&nD(n)&&n.flowNode&&!EP(n.flowNode)&&Tf(j.allowUnreachableCode===!1,n,p.Unreachable_code_detected),s){case 168:return gEe(n);case 169:return hEe(n);case 172:return bEe(n);case 171:return crt(n);case 185:case 184:case 179:case 180:case 181:return d7(n);case 174:case 173:return lrt(n);case 175:return _rt(n);case 176:return urt(n);case 177:case 178:return xEe(n);case 183:return hae(n);case 182:return irt(n);case 186:return hrt(n);case 187:return yrt(n);case 188:return vrt(n);case 189:return brt(n);case 192:case 193:return Trt(n);case 196:case 190:case 191:return na(n.type);case 197:return Crt(n);case 198:return Ert(n);case 194:return wrt(n);case 195:return Drt(n);case 203:return Art(n);case 205:return Nrt(n);case 202:return Prt(n);case 335:return Xrt(n);case 336:return $rt(n);case 353:case 345:case 347:return Jrt(n);case 352:return zrt(n);case 351:return Vrt(n);case 331:case 332:case 333:return Wrt(n);case 348:return qrt(n);case 355:return Hrt(n);case 324:Grt(n);case 322:case 321:case 319:case 320:case 329:d7e(n),ys(n,na);return;case 325:Cst(n);return;case 316:return na(n.type);case 340:case 342:case 341:return Qrt(n);case 357:return Urt(n);case 199:return xrt(n);case 200:return Srt(n);case 262:return jrt(n);case 241:case 268:return Oz(n);case 243:return dit(n);case 244:return mit(n);case 245:return git(n);case 246:return vit(n);case 247:return bit(n);case 248:return Tit(n);case 249:return Sit(n);case 250:return xit(n);case 251:case 252:return Pit(n);case 253:return Iit(n);case 254:return Oit(n);case 255:return Fit(n);case 256:return Lit(n);case 257:return Mit(n);case 258:return Rit(n);case 260:return fit(n);case 208:return pit(n);case 263:return qit(n);case 264:return tst(n);case 265:return nst(n);case 266:return sst(n);case 267:return _st(n);case 272:return fst(n);case 271:return pst(n);case 278:return dst(n);case 277:return xst(n);case 242:case 259:Lg(n);return;case 282:return prt(n)}}function p7e(n){Ds(n)&&mn(n,s=>{Px(s)&&na(s)})}function d7e(n){if(!Zn(n))if(xF(n)||t4(n)){const s=sa(xF(n)?54:58),c=n.postfix?p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,_=n.type,d=ii(_);Yt(n,c,s,kn(t4(n)&&!(d===jn||d===ar)?zr(gn([d,Pt],n.postfix?void 0:W)):d))}else Yt(n,p.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Cst(n){d7e(n),na(n.type);const{parent:s}=n;if(ns(s)&&n4(s.parent)){ka(s.parent.parameters)!==s&&Fe(n,p.A_rest_parameter_must_be_last_in_a_parameter_list);return}nT(s)||Fe(n,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!rd(c)){Fe(n,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const _=iD(c);if(!_)return;const d=yy(c);(!d||ka(d.parameters).symbol!==_)&&Fe(n,p.A_rest_parameter_must_be_last_in_a_parameter_list)}function Est(n){const s=ii(n.type),{parent:c}=n,_=n.parent.parent;if(nT(n.parent)&&rd(_)){const d=yy(_),h=iG(_.parent.parent);if(d||h){const T=Bo(h?_.parent.parent.typeExpression.parameters:d.parameters),P=iD(_);if(!T||P&&T.symbol===P&&Qm(T))return $l(s)}}return ns(c)&&n4(c.parent)?$l(s):Sl(s)}function Rk(n){const s=Bn(n),c=Jr(s);c.flags&1?E.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function wst(n){const s=Jr(n);s.deferredNodes&&s.deferredNodes.forEach(Dst),s.deferredNodes=void 0}function Dst(n){var s,c;(s=ci)==null||s.push(ci.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const _=D;switch(D=n,k=0,n.kind){case 213:case 214:case 215:case 170:case 286:Ik(n);break;case 218:case 219:case 174:case 173:Snt(n);break;case 177:case 178:xEe(n);break;case 231:Wit(n);break;case 168:rrt(n);break;case 285:Fet(n);break;case 284:Met(n);break;case 216:case 234:case 217:Qtt(n)}D=_,(c=ci)==null||c.pop()}function Ast(n){var s,c;(s=ci)==null||s.push(ci.Phase.Check,"checkSourceFile",{path:n.path},!0),ho("beforeCheck"),Nst(n),ho("afterCheck"),Gu("Check","beforeCheck","afterCheck"),(c=ci)==null||c.pop()}function m7e(n,s){if(s)return!1;switch(n){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return E.assertNever(n)}}function g7e(n){return fn.get(n.path)||Ve}function Nst(n){const s=Jr(n);if(!(s.flags&1)){if(M3(n,j,e))return;not(n),Wm(D1),Wm(Wy),Wm(hh),Wm(qy),Wm(F2),mn(n.statements,na),na(n.endOfFileToken),wst(n),Yu(n)&&Uh(n),r(()=>{!n.isDeclarationFile&&(j.noUnusedLocals||j.noUnusedParameters)&&FEe(g7e(n),(c,_,d)=>{!c6(c)&&m7e(_,!!(c.flags&33554432))&&xa.add(d)}),n.isDeclarationFile||eit()}),j.importsNotUsedAsValues===2&&!n.isDeclarationFile&&zc(n)&&bst(n),Yu(n)&&f7e(n),D1.length&&(mn(D1,rit),Wm(D1)),Wy.length&&(mn(Wy,iit),Wm(Wy)),hh.length&&(mn(hh,cit),Wm(hh)),qy.length&&(mn(qy,_it),Wm(qy)),s.flags|=1}}function h7e(n,s){try{return i=s,Pst(n)}finally{i=void 0}}function Fae(){for(const n of t)n();t=[]}function Lae(n){Fae();const s=r;r=c=>c(),Ast(n),r=s}function Pst(n){if(n){Fae();const s=xa.getGlobalDiagnostics(),c=s.length;Lae(n);const _=xa.getDiagnostics(n.fileName),d=xa.getGlobalDiagnostics();if(d!==s){const h=noe(s,d,N3);return Ki(h,_)}else if(c===0&&d.length>0)return Ki(d,_);return _}return mn(e.getSourceFiles(),Lae),xa.getDiagnostics()}function Ist(){return Fae(),xa.getGlobalDiagnostics()}function Ost(n,s){if(n.flags&67108864)return[];const c=Us();let _=!1;return d(),c.delete("this"),Ure(c);function d(){for(;n;){switch(fm(n)&&n.locals&&!Xd(n)&&T(n.locals,s),n.kind){case 312:if(!zc(n))break;case 267:P(hr(n).exports,s&2623475);break;case 266:T(hr(n).exports,s&8);break;case 231:n.name&&h(n.symbol,s);case 263:case 264:_||T(Ph(hr(n)),s&788968);break;case 218:n.name&&h(n.symbol,s);break}Wle(n)&&h(tt,s),_=Ps(n),n=n.parent}T(pe,s)}function h(O,$){if(E3(O)&$){const te=O.escapedName;c.has(te)||c.set(te,O)}}function T(O,$){$&&O.forEach(te=>{h(te,$)})}function P(O,$){$&&O.forEach(te=>{!uc(te,281)&&!uc(te,280)&&te.escapedName!=="default"&&h(te,$)})}}function Fst(n){return n.kind===80&&J6(n.parent)&&os(n.parent)===n}function y7e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function Lst(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function v7e(n,s){let c,_=Pl(n);for(;_&&!(c=s(_));)_=Pl(_);return c}function Mst(n){return!!On(n,s=>wc(s)&&Xf(s.body)||Is(s)?!0:ei(s)||Eo(s)?"quit":!1)}function Mae(n,s){return!!v7e(n,c=>c===s)}function Rst(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function zz(n){return Rst(n)!==void 0}function Bst(n){switch(pc(n.parent.parent)){case 1:case 3:return ku(n.parent);case 4:case 2:case 5:return hr(n.parent.parent)}}function jst(n){let s=n.parent;for(;gu(s);)n=s,s=s.parent;if(s&&s.kind===205&&s.qualifier===n)return s}function Jst(n){if(n.expression.kind===110){const s=tu(n,!1,!1);if(ks(s)){const c=O3e(s);if(c){const _=ry(c,void 0),d=L3e(c,_);return d&&!Wa(d)}}}}function b7e(n){if(Gg(n))return ku(n.parent);if(Zn(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ei(n)&&!Py(n)&&!Jst(n.parent)){const s=Bst(n);if(s)return s}if(n.parent.kind===277&&Sc(n)){const s=Xo(n,2998271,!0);if(s&&s!==st)return s}else if(Xu(n)&&zz(n)){const s=vy(n,271);return E.assert(s!==void 0),fl(n,!0)}if(Xu(n)){const s=jst(n);if(s){ii(s);const c=Jr(n).resolvedSymbol;return c===st?void 0:c}}for(;z_e(n);)n=n.parent;if(Lst(n)){let s=0;n.parent.kind===233?(s=Ym(n)?788968:111551,TD(n.parent)&&(s|=111551)):s=1920,s|=2097152;const c=Sc(n)?Xo(n,s,!0):void 0;if(c)return c}if(n.parent.kind===348)return iD(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){E.assert(!Zn(n));const s=c_e(n.parent);return s&&s.symbol}if(qg(n)){if(fc(n))return;const s=On(n,Yp(Px,c8,Py)),c=s?901119:111551;if(n.kind===80){if(h6(n)&&_x(n)){const d=pz(n.parent);return d===st?void 0:d}const _=Xo(n,c,!0,!0,yy(n));if(!_&&s){const d=On(n,Yp(ei,f_));if(d)return iI(n,!0,hr(d))}if(_&&s){const d=zx(n);if(d&&y2(d)&&d===_.valueDeclaration)return Xo(n,c,!0,!0,Bn(d))||_}return _}else{if(Ei(n))return gz(n);if(n.kind===211||n.kind===166){const _=Jr(n);if(_.resolvedSymbol)return _.resolvedSymbol;if(n.kind===211){if(Fse(n,0),!_.resolvedSymbol){const d=jc(n.expression),h=Vre(d,C0(n.name));if(h.length&&d.members){const P=Up(d).members.get("__index");if(h===x_(d))_.resolvedSymbol=P;else if(P){const O=Fi(P),$=qi(h,ce=>ce.declaration),te=an($,Ba).join(",");if(O.filteredIndexSymbolCache||(O.filteredIndexSymbolCache=new Map),O.filteredIndexSymbolCache.has(te))_.resolvedSymbol=O.filteredIndexSymbolCache.get(te);else{const ce=Pa(131072,"__index");ce.declarations=qi(h,Se=>Se.declaration),ce.parent=d.aliasSymbol?d.aliasSymbol:d.symbol?d.symbol:yp(ce.declarations[0].parent),O.filteredIndexSymbolCache.set(te,ce),_.resolvedSymbol=O.filteredIndexSymbolCache.get(te)}}}}}else c8e(n,0);return!_.resolvedSymbol&&s&&gu(n)?iI(n):_.resolvedSymbol}else if(Py(n))return iI(n)}}else if(y7e(n)){const s=n.parent.kind===183?788968:1920,c=Xo(n,s,!1,!0);return c&&c!==st?c:mJ(n)}if(n.parent.kind===182)return Xo(n,1)}function iI(n,s,c){if(Xu(n)){let T=Xo(n,901119,s,!0,yy(n));if(!T&&we(n)&&c&&(T=Ra(H_(zu(c),n.escapedText,901119))),T)return T}const _=we(n)?c:iI(n.left,s,c),d=we(n)?n.escapedText:n.right.escapedText;if(_){const h=_.flags&111551&&qs($n(_),"prototype"),T=h?$n(h):go(_);return qs(T,d)}}function yp(n,s){if(Ri(n))return zc(n)?Ra(n.symbol):void 0;const{parent:c}=n,_=c.parent;if(!(n.flags&67108864)){if(wme(n)){const d=hr(c);return Ax(n.parent)&&n.parent.propertyName===n?Cse(d):d}else if(oD(n))return hr(c.parent);if(n.kind===80){if(zz(n))return b7e(n);if(c.kind===208&&_.kind===206&&n===c.propertyName){const d=ux(_),h=qs(d,n.escapedText);if(h)return h}else if(r8(c)&&c.name===n)return c.keywordToken===105&&lr(n)==="target"?eae(c).symbol:c.keywordToken===102&&lr(n)==="meta"?D4e().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!qx(n))return b7e(n);case 110:const d=tu(n,!1,!1);if(ks(d)){const P=gd(d);if(P.thisParameter)return P.thisParameter}if(R9(n))return Xi(n).symbol;case 197:return CJ(n).symbol;case 108:return Xi(n).symbol;case 137:const h=n.parent;return h&&h.kind===176?h.parent.symbol:void 0;case 11:case 15:if(gy(n.parent.parent)&&a3(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||Zn(n)&&Cc(j)!==100&&du(n.parent,!1)||Zu(n.parent)||wy(n.parent)&&my(n.parent.parent)&&n.parent.parent.argument===n.parent)return r_(n,n,s);if(js(c)&&Mx(c)&&c.arguments[1]===n)return hr(c);case 9:const T=No(c)?c.argumentExpression===n?a_(c.expression):void 0:wy(c)&&_S(_)?ii(_.objectType):void 0;return T&&qs(T,qo(n.text));case 90:case 100:case 39:case 86:return ku(n.parent);case 205:return my(n)?yp(n.argument.literal,s):void 0;case 95:return dc(n.parent)?E.checkDefined(n.parent.symbol):void 0;case 102:case 105:return r8(n.parent)?W8e(n.parent).symbol:void 0;case 236:return Xi(n).symbol;case 295:if(h6(n)&&_x(n)){const P=pz(n.parent);return P===st?void 0:P}default:return}}}function zst(n){if(we(n)&&kr(n.parent)&&n.parent.name===n){const s=C0(n),c=a_(n.parent.expression),_=c.flags&1048576?c.types:[c];return Na(_,d=>Vr(x_(d),h=>xk(s,h.keyType)))}}function Vst(n){if(n&&n.kind===304)return Xo(n.name,2208703)}function Ust(n){return p_(n)?n.parent.parent.moduleSpecifier?dg(n.parent.parent,n):Xo(n.propertyName||n.name,2998271):Xo(n,2998271)}function ux(n){if(Ri(n)&&!zc(n)||n.flags&67108864)return $e;const s=Pq(n),c=s&&i_(hr(s.class));if(Ym(n)){const _=ii(n);return c?Uu(_,c.thisType):_}if(qg(n))return T7e(n);if(c&&!s.isImplements){const _=wl(xo(c));return _?Uu(_,c.thisType):$e}if(J6(n)){const _=hr(n);return go(_)}if(Fst(n)){const _=yp(n);return _?go(_):$e}if(Fa(n))return em(n,!0,0)||$e;if(l_(n)){const _=hr(n);return _?$n(_):$e}if(wme(n)){const _=yp(n);return _?$n(_):$e}if(Ns(n))return em(n.parent,!0,0)||$e;if(zz(n)){const _=yp(n);if(_){const d=go(_);return q(d)?$n(_):d}}return r8(n.parent)&&n.parent.keywordToken===n.kind?W8e(n.parent):$e}function Vz(n){if(E.assert(n.kind===210||n.kind===209),n.parent.kind===250){const d=eI(n.parent);return bb(n,d||$e)}if(n.parent.kind===226){const d=a_(n.parent.right);return bb(n,d||$e)}if(n.parent.kind===303){const d=Ms(n.parent.parent,ha),h=Vz(d)||$e,T=l6(d.properties,n.parent);return aEe(d,h,T)}const s=Ms(n.parent,u_),c=Vz(s)||$e,_=P0(65,c,Pt,n.parent)||$e;return oEe(s,c,s.elements.indexOf(n),_)}function Wst(n){const s=Vz(Ms(n.parent.parent,XC));return s&&qs(s,n.escapedText)}function T7e(n){return x3(n)&&(n=n.parent),j_(a_(n))}function x7e(n){const s=ku(n.parent);return Ps(n)?$n(s):go(s)}function S7e(n){const s=n.name;switch(s.kind){case 80:return lu(lr(s));case 9:case 11:return lu(s.text);case 167:const c=Bm(s);return kl(c,12288)?c:F;default:return E.fail("Unsupported property name.")}}function Rae(n){n=Y_(n);const s=Us(za(n)),c=As(n,0).length?bu:As(n,1).length?he:void 0;return c&&mn(za(c),_=>{s.has(_.escapedName)||s.set(_.escapedName,_)}),wh(s)}function Uz(n){return As(n,0).length!==0||As(n,1).length!==0}function k7e(n){const s=qst(n);return s?Na(s,k7e):[n]}function qst(n){if(rc(n)&6)return qi(Fi(n).containingType.types,s=>qs(s,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:s,rightSpread:c,syntheticOrigin:_}}=n;return s?[s,c]:_?[_]:xb(Hst(n))}}function Hst(n){let s,c=n;for(;c=Fi(c).target;)s=c;return s}function Gst(n){if(jo(n))return!1;const s=es(n,we);if(!s)return!1;const c=s.parent;return c?!((kr(c)||Dc(c))&&c.name===s)&&C7(s)===tt:!1}function $st(n){let s=r_(n.parent,n);if(!s||e3(s))return!0;const c=sv(s);s=lf(s);const _=Fi(s);return _.exportsSomeValue===void 0&&(_.exportsSomeValue=c?!!(s.flags&111551):Au(Zd(s),d)),_.exportsSomeValue;function d(h){return h=Rc(h),h&&!!(Su(h)&111551)}}function Xst(n){return Ew(n.parent)&&n===n.parent.name}function Qst(n,s){var c;const _=es(n,we);if(_){let d=C7(_,Xst(_));if(d){if(d.flags&1048576){const T=Ra(d.exportSymbol);if(!s&&T.flags&944&&!(T.flags&3))return;d=T}const h=$_(d);if(h){if(h.flags&512&&((c=h.valueDeclaration)==null?void 0:c.kind)===312){const T=h.valueDeclaration,P=Bn(_);return T!==P?void 0:T}return On(_.parent,T=>Ew(T)&&hr(T)===h)}}}}function Yst(n){const s=dfe(n);if(s)return s;const c=es(n,we);if(c){const _=_at(c);if(dp(_,111551)&&!mp(_,111551))return pp(_)}}function Zst(n){return n.valueDeclaration&&Fa(n.valueDeclaration)&&Yk(n.valueDeclaration).parent.kind===299}function C7e(n){if(n.flags&418&&n.valueDeclaration&&!Ri(n.valueDeclaration)){const s=Fi(n);if(s.isDeclarationWithCollidingName===void 0){const c=mm(n.valueDeclaration);if(xle(c)||Zst(n)){const _=Jr(n.valueDeclaration);if(Mc(c.parent,n.escapedName,111551,void 0,void 0,!1))s.isDeclarationWithCollidingName=!0;else if(_.flags&16384){const d=_.flags&32768,h=t1(c,!1),T=c.kind===241&&t1(c.parent,!1);s.isDeclarationWithCollidingName=!Ile(c)&&(!d||!h&&!T)}else s.isDeclarationWithCollidingName=!1}}return s.isDeclarationWithCollidingName}return!1}function Kst(n){if(!jo(n)){const s=es(n,we);if(s){const c=C7(s);if(c&&C7e(c))return c.valueDeclaration}}}function eat(n){const s=es(n,l_);if(s){const c=hr(s);if(c)return C7e(c)}return!1}function E7e(n){switch(E.assert(at),n.kind){case 271:return Wz(hr(n));case 273:case 274:case 276:case 281:const s=hr(n);return!!s&&Wz(s,!0);case 278:const c=n.exportClause;return!!c&&(og(c)||dt(c.elements,E7e));case 277:return n.expression&&n.expression.kind===80?Wz(hr(n)):!0}return!1}function tat(n){const s=es(n,Hl);return s===void 0||s.parent.kind!==312||!y6(s)?!1:Wz(hr(s))&&s.moduleReference&&!fc(s.moduleReference)}function Wz(n,s){if(!n)return!1;const c=X_(gl(n));return c===st?!0:!!(Su(n,s,!0)&111551)&&(Hb(j)||!S7(c))}function S7(n){return lae(n)||!!n.constEnumOnlyModule}function qz(n,s){if(E.assert(at),Ky(n)){const c=hr(n),_=c&&Fi(c);if(_!=null&&_.referenced)return!0;const d=Fi(c).aliasTarget;if(d&&I_(n)&1&&Su(d)&111551&&(Hb(j)||!S7(d)))return!0}return s?!!ys(n,c=>qz(c,s)):!1}function w7e(n){if(Xf(n.body)){if(n1(n)||H0(n))return!1;const s=hr(n),c=gv(s);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function D7e(n){return!!H&&!jE(n)&&!rd(n)&&!!n.initializer&&!Mr(n,16476)}function nat(n){return H&&jE(n)&&!n.initializer&&Mr(n,16476)}function rat(n){const s=es(n,tl);if(!s)return!1;const c=hr(s);return!c||!(c.flags&16)?!1:!!Au(zu(c),_=>_.flags&111551&&_.valueDeclaration&&kr(_.valueDeclaration))}function iat(n){const s=es(n,tl);if(!s)return Ve;const c=hr(s);return c&&za($n(c))||Ve}function Bk(n){var s;const c=n.id||0;return c<0||c>=I2.length?0:((s=I2[c])==null?void 0:s.flags)||0}function k7(n){return c7e(n.parent),Jr(n).enumMemberValue}function A7e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function Bae(n){if(n.kind===306)return k7(n);const s=Jr(n).resolvedSymbol;if(s&&s.flags&8){const c=s.valueDeclaration;if(Zv(c.parent))return k7(c)}}function jae(n){return!!(n.flags&524288)&&As(n,0).length>0}function sat(n,s){var c;const _=es(n,Xu);if(!_||s&&(s=es(s),!s))return 0;let d=!1;if(gu(_)){const $=Xo(Ku(_),111551,!0,!0,s);d=!!((c=$==null?void 0:$.declarations)!=null&&c.every(Gv))}const h=Xo(_,111551,!0,!0,s),T=h&&h.flags&2097152?gl(h):h;d||(d=!!(h&&mp(h,111551)));const P=Xo(_,788968,!0,!1,s);if(T&&T===P){const $=tie(!1);if($&&T===$)return 9;const te=$n(T);if(te&&hn(te))return d?10:1}if(!P)return d?11:0;const O=go(P);return q(O)?d?11:0:O.flags&3?11:kl(O,245760)?2:kl(O,528)?6:kl(O,296)?3:kl(O,2112)?4:kl(O,402653316)?5:_a(O)?7:kl(O,12288)?8:jae(O)?10:wf(O)?7:11}function aat(n,s,c,_,d){const h=es(n,zle);if(!h)return I.createToken(133);const T=hr(h);let P=T&&!(T.flags&133120)?kv($n(T)):$e;return P.flags&8192&&P.symbol===T&&(c|=1048576),d&&(P=A0(P)),ct.typeToTypeNode(P,s,c|1024,_)}function oat(n,s,c,_){const d=es(n,ks);if(!d)return I.createToken(133);const h=gd(d);return ct.typeToTypeNode(Va(h),s,c|1024,_)}function cat(n,s,c,_){const d=es(n,nt);if(!d)return I.createToken(133);const h=Wu(T7e(d));return ct.typeToTypeNode(h,s,c|1024,_)}function lat(n){return pe.has(qo(n))}function C7(n,s){const c=Jr(n).resolvedSymbol;if(c)return c;let _=n;if(s){const d=n.parent;l_(d)&&n===d.name&&(_=KT(d))}return Mc(_,n.escapedText,3257279,void 0,void 0,!0)}function _at(n){const s=Jr(n).resolvedSymbol;return s&&s!==st?s:Mc(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function uat(n){if(!jo(n)){const s=es(n,we);if(s){const c=C7(s);if(c)return X_(c).valueDeclaration}}}function fat(n){if(!jo(n)){const s=es(n,we);if(s){const c=C7(s);if(c)return Vr(X_(c).declarations,_=>{switch(_.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function pat(n){return k9(n)||Mi(n)&&Qz(n)?bv($n(hr(n))):!1}function dat(n,s,c){const _=n.flags&1056?ct.symbolToExpression(n.symbol,111551,s,void 0,c):n===Ot?I.createTrue():n===We&&I.createFalse();if(_)return _;const d=n.value;return typeof d=="object"?I.createBigIntLiteral(d):typeof d=="number"?I.createNumericLiteral(d):I.createStringLiteral(d)}function mat(n,s){const c=$n(hr(n));return dat(c,n,s)}function N7e(n){return n?(N1(n),Bn(n).localJsxFactory||fg):fg}function Jae(n){if(n){const s=Bn(n);if(s){if(s.localJsxFragmentFactory)return s.localJsxFragmentFactory;const c=s.pragmas.get("jsxfrag"),_=Ds(c)?c[0]:c;if(_)return s.localJsxFragmentFactory=yS(_.arguments.factory,ee),s.localJsxFragmentFactory}}if(j.jsxFragmentFactory)return yS(j.jsxFragmentFactory,ee)}function gat(){const n=e.getResolvedTypeReferenceDirectives();let s;return n&&(s=new Map,n.forEach(({resolvedTypeReferenceDirective:O},$,te)=>{if(!(O!=null&&O.resolvedFileName))return;const ce=e.getSourceFile(O.resolvedFileName);ce&&P(ce,$,te)})),{getReferencedExportContainer:Qst,getReferencedImportDeclaration:Yst,getReferencedDeclarationWithCollidingName:Kst,isDeclarationWithCollidingName:eat,isValueAliasDeclaration:O=>{const $=es(O);return $&&at?E7e($):!0},hasGlobalName:lat,isReferencedAliasDeclaration:(O,$)=>{const te=es(O);return te&&at?qz(te,$):!0},getNodeCheckFlags:O=>{const $=es(O);return $?Bk($):0},isTopLevelValueImportEqualsWithEntityName:tat,isDeclarationVisible:dd,isImplementationOfOverload:w7e,isRequiredInitializedParameter:D7e,isOptionalUninitializedParameterProperty:nat,isExpandoFunctionDeclaration:rat,getPropertiesOfContainerFunction:iat,createTypeOfDeclaration:aat,createReturnTypeOfSignatureDeclaration:oat,createTypeOfExpression:cat,createLiteralConstValue:mat,isSymbolAccessible:et,isEntityNameVisible:Js,getConstantValue:O=>{const $=es(O,A7e);return $?Bae($):void 0},collectLinkedAliases:G4,getReferencedValueDeclaration:uat,getReferencedValueDeclarations:fat,getTypeReferenceSerializationKind:sat,isOptionalParameter:jE,moduleExportsSomeValue:$st,isArgumentsLocalBinding:Gst,getExternalModuleFileFromDeclaration:O=>{const $=es(O,Fle);return $&&zae($)},getTypeReferenceDirectivesForEntityName:d,getTypeReferenceDirectivesForSymbol:h,isLiteralConstDeclaration:pat,isLateBound:O=>{const $=es(O,l_),te=$&&hr($);return!!(te&&rc(te)&4096)},getJsxFactoryEntity:N7e,getJsxFragmentFactoryEntity:Jae,getAllAccessorDeclarations(O){O=es(O,KI);const $=O.kind===178?177:178,te=uc(hr(O),$),ce=te&&te.posg0(O,O,void 0),isBindingCapturedByNode:(O,$)=>{const te=es(O),ce=es($);return!!te&&!!ce&&(Mi(ce)||Fa(ce))&&VKe(te,ce)},getDeclarationStatementsForSourceFile:(O,$,te,ce)=>{const Se=es(O);E.assert(Se&&Se.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Te=hr(O);return Te?Te.exports?ct.symbolTableToDeclarationStatements(Te.exports,O,$,te,ce):[]:O.locals?ct.symbolTableToDeclarationStatements(O.locals,O,$,te,ce):[]},isImportRequiredByAugmentation:c};function c(O){const $=Bn(O);if(!$.symbol)return!1;const te=zae(O);if(!te||te===$)return!1;const ce=Zd($.symbol);for(const Se of ia(ce.values()))if(Se.mergeId){const Te=Ra(Se);if(Te.declarations){for(const Ze of Te.declarations)if(Bn(Ze)===te)return!0}}return!1}function _(O){return O.parent&&O.parent.kind===233&&O.parent.parent&&O.parent.parent.kind===298}function d(O){if(!s)return;let $;O.parent.kind===167?$=1160127:($=790504,(O.kind===80&&Vb(O)||O.kind===211&&!_(O))&&($=1160127));const te=Xo(O,$,!0);return te&&te!==st?h(te,$):void 0}function h(O,$){if(!s||!T(O))return;let te;for(const ce of O.declarations)if(ce.symbol&&ce.symbol.flags&$){const Se=Bn(ce),Te=s.get(Se.path);if(Te)(te||(te=[])).push(Te);else return}return te}function T(O){if(!O.declarations)return!1;let $=O;for(;;){const te=$_($);if(te)$=te;else break}if($.valueDeclaration&&$.valueDeclaration.kind===312&&$.flags&512)return!1;for(const te of O.declarations){const ce=Bn(te);if(s.has(ce.path))return!0}return!1}function P(O,$,te){if(!s.has(O.path)){s.set(O.path,[$,te]);for(const{fileName:ce,resolutionMode:Se}of O.referencedFiles){const Te=VL(ce,O.fileName),Ze=e.getSourceFile(Te);Ze&&P(Ze,$,Se||O.impliedNodeFormat)}}}}function zae(n){const s=n.kind===267?Hr(n.name,pa):b6(n),c=g0(s,s,void 0);if(!!c)return uc(c,312)}function hat(){for(const s of e.getSourceFiles())sme(s,j);ac=new Map;let n;for(const s of e.getSourceFiles())if(!s.redirectInfo){if(!Yu(s)){const c=s.locals.get("globalThis");if(c!=null&&c.declarations)for(const _ of c.declarations)xa.add(yr(_,p.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));xf(pe,s.locals)}s.jsGlobalAugmentations&&xf(pe,s.jsGlobalAugmentations),s.patternAmbientModules&&s.patternAmbientModules.length&&(nc=Ki(nc,s.patternAmbientModules)),s.moduleAugmentations.length&&(n||(n=[])).push(s.moduleAugmentations),s.symbol&&s.symbol.globalExports&&s.symbol.globalExports.forEach((_,d)=>{pe.has(d)||pe.set(d,_)})}if(n)for(const s of n)for(const c of s)!Pd(c.parent)||P1(c);if(WT(pe,Gy,p.Declaration_name_conflicts_with_built_in_global_identifier_0),Fi(Pe).type=hi,Fi(tt).type=Bc("IArguments",0,!0),Fi(st).type=$e,Fi(Ge).type=jf(16,Ge),vt=Bc("Array",1,!0),Uc=Bc("Object",0,!0),zo=Bc("Function",0,!0),bu=re&&Bc("CallableFunction",0,!0)||zo,he=re&&Bc("NewableFunction",0,!0)||zo,Bi=Bc("String",0,!0),Es=Bc("Number",0,!0),Ua=Bc("Boolean",0,!0),oc=Bc("RegExp",0,!0),qe=$l(ke),gt=$l(ft),gt===Oi&&(gt=yc(void 0,U,Ve,Ve,Ve)),bn=F4e("ReadonlyArray",1)||vt,Et=bn?VE(bn,[ke]):qe,se=F4e("ThisType",1),n)for(const s of n)for(const c of s)Pd(c.parent)||P1(c);ac.forEach(({firstFile:s,secondFile:c,conflictingSymbols:_})=>{if(_.size<8)_.forEach(({isBlockScoped:d,firstFileLocations:h,secondFileLocations:T},P)=>{const O=d?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0;for(const $ of h)_d($,O,P,T);for(const $ of T)_d($,O,P,h)});else{const d=ia(_.keys()).join(", ");xa.add(fa(yr(s,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,d),yr(c,p.Conflicts_are_in_this_file))),xa.add(fa(yr(c,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,d),yr(s,p.Conflicts_are_in_this_file)))}}),ac=void 0}function Kc(n,s){if((o&s)!==s&&j.importHelpers){const c=Bn(n);if(Fx(c,j)&&!(n.flags&33554432)){const _=vat(c,n);if(_!==st){const d=s&~o;for(let h=1;h<=33554432;h<<=1)if(d&h)for(const T of yat(h)){if(a.has(T))continue;a.add(T);const P=Rc(H_(Zd(_),qo(T),111551));P?h&524288?dt(gv(P),O=>qu(O)>3)||Fe(n,p.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,_1,T,4):h&1048576?dt(gv(P),O=>qu(O)>4)||Fe(n,p.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,_1,T,5):h&1024&&(dt(gv(P),O=>qu(O)>2)||Fe(n,p.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,_1,T,3)):Fe(n,p.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,_1,T)}}o|=s}}}function yat(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return Z?["__decorate"]:["__esDecorate","__runInitializers"];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"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return E.fail("Unrecognized helper")}}function vat(n,s){return l||(l=Ch(n,_1,p.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,s)||st),l}function zm(n){const s=xat(n)||bat(n);if(s!==void 0)return s;if(ns(n)&&s2(n))return Cl(n,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const c=ic(n)?n.declarationList.flags&7:0;let _,d,h,T,P,O=0,$=!1,te=!1;for(const ce of n.modifiers)if(Wl(ce)){if(M9(Z,n,n.parent,n.parent.parent)){if(Z&&(n.kind===177||n.kind===178)){const Se=Ub(n.parent.members,n);if(Of(Se.firstAccessor)&&n===Se.secondAccessor)return Cl(n,p.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Xf(n.body)?Cl(n,p.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Cl(n,p.Decorators_are_not_valid_here);if(O&-132098)return Yt(ce,p.Decorators_are_not_valid_here);if(te&&O&126975){E.assertIsDefined(P);const Se=Bn(ce);return Pv(Se)?!1:(fa(Fe(ce,p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),yr(P,p.Decorator_used_before_export_here)),!0)}O|=131072,O&126975?O&1&&($=!0):te=!0,P!=null||(P=ce)}else{if(ce.kind!==148){if(n.kind===171||n.kind===173)return Yt(ce,p._0_modifier_cannot_appear_on_a_type_member,sa(ce.kind));if(n.kind===181&&(ce.kind!==126||!ei(n.parent)))return Yt(ce,p._0_modifier_cannot_appear_on_an_index_signature,sa(ce.kind))}if(ce.kind!==103&&ce.kind!==147&&ce.kind!==87&&n.kind===168)return Yt(ce,p._0_modifier_cannot_appear_on_a_type_parameter,sa(ce.kind));switch(ce.kind){case 87:if(n.kind!==266&&n.kind!==168)return Yt(n,p.A_class_member_cannot_have_the_0_keyword,sa(87));const Se=n.parent;if(n.kind===168&&!(Eo(Se)||ei(Se)||sg(Se)||e8(Se)||$6(Se)||rA(Se)||ig(Se)))return Yt(ce,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,sa(ce.kind));break;case 164:if(O&16384)return Yt(ce,p._0_modifier_already_seen,"override");if(O&2)return Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(O&64)return Yt(ce,p._0_modifier_must_precede_1_modifier,"override","readonly");if(O&128)return Yt(ce,p._0_modifier_must_precede_1_modifier,"override","accessor");if(O&512)return Yt(ce,p._0_modifier_must_precede_1_modifier,"override","async");O|=16384,T=ce;break;case 125:case 124:case 123:const Te=V1(Gx(ce.kind));if(O&28)return Yt(ce,p.Accessibility_modifier_already_seen);if(O&16384)return Yt(ce,p._0_modifier_must_precede_1_modifier,Te,"override");if(O&32)return Yt(ce,p._0_modifier_must_precede_1_modifier,Te,"static");if(O&128)return Yt(ce,p._0_modifier_must_precede_1_modifier,Te,"accessor");if(O&64)return Yt(ce,p._0_modifier_must_precede_1_modifier,Te,"readonly");if(O&512)return Yt(ce,p._0_modifier_must_precede_1_modifier,Te,"async");if(n.parent.kind===268||n.parent.kind===312)return Yt(ce,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,Te);if(O&256)return ce.kind===123?Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,Te,"abstract"):Yt(ce,p._0_modifier_must_precede_1_modifier,Te,"abstract");if(N_(n))return Yt(ce,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);O|=Gx(ce.kind);break;case 126:if(O&32)return Yt(ce,p._0_modifier_already_seen,"static");if(O&64)return Yt(ce,p._0_modifier_must_precede_1_modifier,"static","readonly");if(O&512)return Yt(ce,p._0_modifier_must_precede_1_modifier,"static","async");if(O&128)return Yt(ce,p._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return Yt(ce,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return Yt(ce,p._0_modifier_cannot_appear_on_a_parameter,"static");if(O&256)return Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(O&16384)return Yt(ce,p._0_modifier_must_precede_1_modifier,"static","override");O|=32,_=ce;break;case 129:if(O&128)return Yt(ce,p._0_modifier_already_seen,"accessor");if(O&64)return Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(O&2)return Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return Yt(ce,p.accessor_modifier_can_only_appear_on_a_property_declaration);O|=128;break;case 148:if(O&64)return Yt(ce,p._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return Yt(ce,p.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(O&128)return Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");O|=64;break;case 95:if(j.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(R===1||Bn(n).impliedNodeFormat===1))return Yt(ce,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(O&1)return Yt(ce,p._0_modifier_already_seen,"export");if(O&2)return Yt(ce,p._0_modifier_must_precede_1_modifier,"export","declare");if(O&256)return Yt(ce,p._0_modifier_must_precede_1_modifier,"export","abstract");if(O&512)return Yt(ce,p._0_modifier_must_precede_1_modifier,"export","async");if(ei(n.parent))return Yt(ce,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return Yt(ce,p._0_modifier_cannot_appear_on_a_parameter,"export");if(c===4)return Yt(ce,p._0_modifier_cannot_appear_on_a_using_declaration,"export");if(c===6)return Yt(ce,p._0_modifier_cannot_appear_on_an_await_using_declaration,"export");O|=1;break;case 90:const Ze=n.parent.kind===312?n.parent:n.parent.parent;if(Ze.kind===267&&!__(Ze))return Yt(ce,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(c===4)return Yt(ce,p._0_modifier_cannot_appear_on_a_using_declaration,"default");if(c===6)return Yt(ce,p._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(O&1){if($)return Yt(P,p.Decorators_are_not_valid_here)}else return Yt(ce,p._0_modifier_must_precede_1_modifier,"export","default");O|=1024;break;case 138:if(O&2)return Yt(ce,p._0_modifier_already_seen,"declare");if(O&512)return Yt(ce,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(O&16384)return Yt(ce,p._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ei(n.parent)&&!Is(n))return Yt(ce,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return Yt(ce,p._0_modifier_cannot_appear_on_a_parameter,"declare");if(c===4)return Yt(ce,p._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(c===6)return Yt(ce,p._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return Yt(ce,p.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(N_(n))return Yt(ce,p._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(O&128)return Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");O|=2,d=ce;break;case 128:if(O&256)return Yt(ce,p._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return Yt(ce,p.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Mr(n.parent,256))){const _n=n.kind===172?p.Abstract_properties_can_only_appear_within_an_abstract_class:p.Abstract_methods_can_only_appear_within_an_abstract_class;return Yt(ce,_n)}if(O&32)return Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(O&8)return Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(O&512&&h)return Yt(h,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(O&16384)return Yt(ce,p._0_modifier_must_precede_1_modifier,"abstract","override");if(O&128)return Yt(ce,p._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(A_(n)&&n.name.kind===81)return Yt(ce,p._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");O|=256;break;case 134:if(O&512)return Yt(ce,p._0_modifier_already_seen,"async");if(O&2||n.parent.flags&33554432)return Yt(ce,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return Yt(ce,p._0_modifier_cannot_appear_on_a_parameter,"async");if(O&256)return Yt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");O|=512,h=ce;break;case 103:case 147:const St=ce.kind===103?32768:65536,Kt=ce.kind===103?"in":"out";if(n.kind!==168||!(f_(n.parent)||ei(n.parent)||wp(n.parent)))return Yt(ce,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Kt);if(O&St)return Yt(ce,p._0_modifier_already_seen,Kt);if(St&32768&&O&65536)return Yt(ce,p._0_modifier_must_precede_1_modifier,"in","out");O|=St;break}}return n.kind===176?O&32?Yt(_,p._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):O&16384?Yt(T,p._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):O&512?Yt(h,p._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&O&2?Yt(d,p.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&O&16476&&Ns(n.name)?Yt(n,p.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&O&16476&&n.dotDotDotToken?Yt(n,p.A_parameter_property_cannot_be_declared_using_a_rest_parameter):O&512?kat(n,h):!1}function bat(n){if(!n.modifiers)return!1;const s=Tat(n);return s&&Cl(s,p.Modifiers_cannot_appear_here)}function Hz(n,s){const c=Fr(n.modifiers,Zs);return c&&c.kind!==s?c:void 0}function Tat(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Fr(n.modifiers,Zs);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return Hz(n,134);case 263:case 185:return Hz(n,128);case 231:case 264:case 265:return Fr(n.modifiers,Zs);case 243:return n.declarationList.flags&4?Hz(n,135):Fr(n.modifiers,Zs);case 266:return Hz(n,87);default:E.assertNever(n)}}}function xat(n){const s=Sat(n);return s&&Cl(s,p.Decorators_are_not_valid_here)}function Sat(n){return TG(n)?Fr(n.modifiers,Wl):void 0}function kat(n,s){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return Yt(s,p._0_modifier_cannot_be_used_here,"async")}function fx(n,s=p.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?Iv(n[0],n.end-1,1,s):!1}function P7e(n,s){if(n&&n.length===0){const c=n.pos-1,_=ua(s.text,n.end)+1;return Iv(s,c,_-c,p.Type_parameter_list_cannot_be_empty)}return!1}function Cat(n){let s=!1;const c=n.length;for(let _=0;_!!s.initializer||Ns(s.name)||Qm(s))}function wat(n){if(ee>=3){const s=n.body&&hs(n.body)&&hG(n.body.statements);if(s){const c=Eat(n.parameters);if(Pn(c)){mn(c,d=>{fa(Fe(d,p.This_parameter_is_not_allowed_with_use_strict_directive),yr(s,p.use_strict_directive_used_here))});const _=c.map((d,h)=>h===0?yr(d,p.Non_simple_parameter_declared_here):yr(d,p.and_here));return fa(Fe(s,p.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),..._),!0}}}return!1}function Gz(n){const s=Bn(n);return zm(n)||P7e(n.typeParameters,s)||Cat(n.parameters)||Aat(n,s)||Eo(n)&&wat(n)}function Dat(n){const s=Bn(n);return Fat(n)||P7e(n.typeParameters,s)}function Aat(n,s){if(!Po(n))return!1;n.typeParameters&&!(Pn(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&s&&Gc(s.fileName,[".mts",".cts"])&&Yt(n.typeParameters[0],p.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=n,_=vo(s,c.pos).line,d=vo(s,c.end).line;return _!==d&&Yt(c,p.Line_terminator_not_permitted_before_arrow)}function Nat(n){const s=n.parameters[0];if(n.parameters.length!==1)return Yt(s?s.name:n,p.An_index_signature_must_have_exactly_one_parameter);if(fx(n.parameters,p.An_index_signature_cannot_have_a_trailing_comma),s.dotDotDotToken)return Yt(s.dotDotDotToken,p.An_index_signature_cannot_have_a_rest_parameter);if(rO(s))return Yt(s.name,p.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(s.questionToken)return Yt(s.questionToken,p.An_index_signature_parameter_cannot_have_a_question_mark);if(s.initializer)return Yt(s.name,p.An_index_signature_parameter_cannot_have_an_initializer);if(!s.type)return Yt(s.name,p.An_index_signature_parameter_must_have_a_type_annotation);const c=ii(s.type);return Fg(c,_=>!!(_.flags&8576))||nC(c)?Yt(s.name,p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Df(c,dJ)?n.type?!1:Yt(n,p.An_index_signature_must_have_a_type_annotation):Yt(s.name,p.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Pat(n){return zm(n)||Nat(n)}function Iat(n,s){if(s&&s.length===0){const c=Bn(n),_=s.pos-1,d=ua(c.text,s.end)+1;return Iv(c,_,d-_,p.Type_argument_list_cannot_be_empty)}return!1}function sI(n,s){return fx(s)||Iat(n,s)}function Oat(n){return n.questionDotToken||n.flags&64?Yt(n.template,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function I7e(n){const s=n.types;if(fx(s))return!0;if(s&&s.length===0){const c=sa(n.token);return Iv(n,s.pos,0,p._0_list_cannot_be_empty,c)}return dt(s,O7e)}function O7e(n){return nh(n)&&K3(n.expression)&&n.typeArguments?Yt(n,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):sI(n,n.typeArguments)}function Fat(n){let s=!1,c=!1;if(!zm(n)&&n.heritageClauses)for(const _ of n.heritageClauses){if(_.token===96){if(s)return Cl(_,p.extends_clause_already_seen);if(c)return Cl(_,p.extends_clause_must_precede_implements_clause);if(_.types.length>1)return Cl(_.types[1],p.Classes_can_only_extend_a_single_class);s=!0}else{if(E.assert(_.token===119),c)return Cl(_,p.implements_clause_already_seen);c=!0}I7e(_)}}function Lat(n){let s=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(s)return Cl(c,p.extends_clause_already_seen);s=!0}else return E.assert(c.token===119),Cl(c,p.Interface_declaration_cannot_have_implements_clause);I7e(c)}return!1}function $z(n){if(n.kind!==167)return!1;const s=n;return s.expression.kind===226&&s.expression.operatorToken.kind===28?Yt(s.expression,p.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Vae(n){if(n.asteriskToken){if(E.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return Yt(n.asteriskToken,p.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Yt(n.asteriskToken,p.An_overload_signature_cannot_be_declared_as_a_generator)}}function Uae(n,s){return!!n&&Yt(n,s)}function F7e(n,s){return!!n&&Yt(n,s)}function Mat(n,s){const c=new Map;for(const _ of n.properties){if(_.kind===305){if(s){const T=uo(_.expression);if(u_(T)||ha(T))return Yt(_.expression,p.A_rest_element_cannot_contain_a_binding_pattern)}continue}const d=_.name;if(d.kind===167&&$z(d),_.kind===304&&!s&&_.objectAssignmentInitializer&&Yt(_.equalsToken,p.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),d.kind===81&&Yt(d,p.Private_identifiers_are_not_allowed_outside_class_bodies),Ap(_)&&_.modifiers)for(const T of _.modifiers)Zs(T)&&(T.kind!==134||_.kind!==174)&&Yt(T,p._0_modifier_cannot_be_used_here,el(T));else if(epe(_)&&_.modifiers)for(const T of _.modifiers)Zs(T)&&Yt(T,p._0_modifier_cannot_be_used_here,el(T));let h;switch(_.kind){case 304:case 303:F7e(_.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context),Uae(_.questionToken,p.An_object_member_cannot_be_declared_optional),d.kind===9&&Hae(d),h=4;break;case 174:h=8;break;case 177:h=1;break;case 178:h=2;break;default:E.assertNever(_,"Unexpected syntax kind:"+_.kind)}if(!s){const T=pot(d);if(T===void 0)continue;const P=c.get(T);if(!P)c.set(T,h);else if(h&8&&P&8)Yt(d,p.Duplicate_identifier_0,el(d));else if(h&4&&P&4)Yt(d,p.An_object_literal_cannot_have_multiple_properties_with_the_same_name,el(d));else if(h&3&&P&3)if(P!==3&&h!==P)c.set(T,h|P);else return Yt(d,p.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Yt(d,p.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Rat(n){Bat(n.tagName),sI(n,n.typeArguments);const s=new Map;for(const c of n.attributes.properties){if(c.kind===293)continue;const{name:_,initializer:d}=c,h=U3(_);if(!s.get(h))s.set(h,!0);else return Yt(_,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(d&&d.kind===294&&!d.expression)return Yt(d,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Bat(n){if(kr(n)&&Vd(n.expression))return Yt(n.expression,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Vd(n)&&hO(j)&&!A6(n.namespace.escapedText))return Yt(n,p.React_components_cannot_include_JSX_namespace_names)}function jat(n){if(n.expression&&u8(n.expression))return Yt(n.expression,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function L7e(n){if(Lg(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){const s=Bn(n);if(O9(n)){if(!Pv(s))switch(Fx(s,j)||xa.add(yr(n.awaitModifier,p.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)),R){case 100:case 199:if(s.impliedNodeFormat===1){xa.add(yr(n.awaitModifier,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ee>=4)break;default:xa.add(yr(n.awaitModifier,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!Pv(s)){const c=yr(n.awaitModifier,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),_=df(n);if(_&&_.kind!==176){E.assert((Il(_)&2)===0,"Enclosing function should never be an async function.");const d=yr(_,p.Did_you_mean_to_mark_this_function_as_async);fa(c,d)}return xa.add(c),!0}return!1}if(aA(n)&&!(n.flags&65536)&&we(n.initializer)&&n.initializer.escapedText==="async")return Yt(n.initializer,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){const s=n.initializer;if(!qae(s)){const c=s.declarations;if(!c.length)return!1;if(c.length>1){const d=n.kind===249?p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Cl(s.declarations[1],d)}const _=c[0];if(_.initializer){const d=n.kind===249?p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Yt(_.name,d)}if(_.type){const d=n.kind===249?p.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:p.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Yt(_,d)}}}return!1}function Jat(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(ee<1)return Yt(n.name,p.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ee<2&&Ei(n.name))return Yt(n.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Mr(n,256))return Iv(n,n.end-1,1,p._0_expected,"{")}if(n.body){if(Mr(n,256))return Yt(n,p.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return Yt(n.body,p.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Yt(n.name,p.An_accessor_cannot_have_type_parameters);if(!zat(n))return Yt(n.name,n.kind===177?p.A_get_accessor_cannot_have_parameters:p.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return Yt(n.name,p.A_set_accessor_cannot_have_a_return_type_annotation);const s=E.checkDefined(y3(n),"Return value does not match parameter count assertion.");if(s.dotDotDotToken)return Yt(s.dotDotDotToken,p.A_set_accessor_cannot_have_rest_parameter);if(s.questionToken)return Yt(s.questionToken,p.A_set_accessor_cannot_have_an_optional_parameter);if(s.initializer)return Yt(n.name,p.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function zat(n){return Wae(n)||n.parameters.length===(n.kind===177?0:1)}function Wae(n){if(n.parameters.length===(n.kind===177?1:2))return i2(n)}function Vat(n){if(n.operator===158){if(n.type.kind!==155)return Yt(n.type,p._0_expected,sa(155));let s=sD(n.parent);if(Zn(s)&&nT(s)){const c=zx(s);c&&(s=S6(c)||c)}switch(s.kind){case 260:const c=s;if(c.name.kind!==80)return Yt(n,p.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!n3(c))return Yt(n,p.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Yt(s.name,p.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Ps(s)||!v3(s))return Yt(s.name,p.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Mr(s,64))return Yt(s.name,p.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Yt(n,p.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return Cl(n,p.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,sa(155))}function xC(n,s){if(uXe(n))return Yt(n,s)}function M7e(n){if(Gz(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&wa(n.modifiers).kind===134))return Cl(n,p.Modifiers_cannot_appear_here);if(Uae(n.questionToken,p.An_object_member_cannot_be_declared_optional))return!0;if(F7e(n.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return Iv(n,n.end-1,1,p._0_expected,"{")}if(Vae(n))return!0}if(ei(n.parent)){if(ee<2&&Ei(n.name))return Yt(n.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return xC(n.name,p.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(n.kind===174&&!n.body)return xC(n.name,p.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(n.parent.kind===264)return xC(n.name,p.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return xC(n.name,p.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 Uat(n){let s=n;for(;s;){if(t6(s))return Yt(n,p.Jump_target_cannot_cross_function_boundary);switch(s.kind){case 256:if(n.label&&s.label.escapedText===n.label.escapedText)return n.kind===251&&!t1(s.statement,!0)?Yt(n,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(t1(s,!1)&&!n.label)return!1;break}s=s.parent}if(n.label){const c=n.kind===252?p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Yt(n,c)}else{const c=n.kind===252?p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Yt(n,c)}}function Wat(n){if(n.dotDotDotToken){const s=n.parent.elements;if(n!==ka(s))return Yt(n,p.A_rest_element_must_be_last_in_a_destructuring_pattern);if(fx(s,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Yt(n.name,p.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return Iv(n,n.initializer.pos-1,1,p.A_rest_element_cannot_have_an_initializer)}function R7e(n){return If(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function qat(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Hat(n){if((kr(n)||No(n)&&R7e(n.argumentExpression))&&Sc(n.expression))return!!(jc(n).flags&1056)}function B7e(n){const s=n.initializer;if(s){const c=!(R7e(s)||Hat(s)||s.kind===112||s.kind===97||qat(s));if((k9(n)||Mi(n)&&Qz(n))&&!n.type){if(c)return Yt(s,p.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Yt(s,p.Initializers_are_not_allowed_in_ambient_contexts)}}function Gat(n){const s=Ov(n),c=s&7;if(Ns(n.name))switch(c){case 6:return Yt(n,p._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Yt(n,p._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(s&33554432)B7e(n);else if(!n.initializer){if(Ns(n.name)&&!Ns(n.parent))return Yt(n,p.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return Yt(n,p._0_declarations_must_be_initialized,"await using");case 4:return Yt(n,p._0_declarations_must_be_initialized,"using");case 2:return Yt(n,p._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||s&33554432)){const _=n.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Yt(n.exclamationToken,_)}return(R<5||Bn(n).impliedNodeFormat===1)&&R!==4&&!(n.parent.parent.flags&33554432)&&Mr(n.parent.parent,1)&&j7e(n.name),!!c&&J7e(n.name)}function j7e(n){if(n.kind===80){if(lr(n)==="__esModule")return Qat("noEmit",n,p.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const s=n.elements;for(const c of s)if(!pl(c))return j7e(c.name)}return!1}function J7e(n){if(n.kind===80){if(n.escapedText==="let")return Yt(n,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const s=n.elements;for(const c of s)pl(c)||J7e(c.name)}return!1}function qae(n){const s=n.declarations;if(fx(n.declarations))return!0;if(!n.declarations.length)return Iv(n,s.pos,s.end-s.pos,p.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;return(c===4||c===6)&&bF(n.parent)?Yt(n,c===4?p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:p.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?sEe(n):!1}function z7e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return z7e(n.parent)}return!0}function $at(n){if(!z7e(n.parent)){const s=Ov(n.declarationList)&7;if(s){const c=s===1?"let":s===2?"const":s===4?"using":s===6?"await using":E.fail("Unknown BlockScope flag");return Yt(n,p._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Xat(n){const s=n.name.escapedText;switch(n.keywordToken){case 105:if(s!=="target")return Yt(n.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Li(n.name.escapedText),sa(n.keywordToken),"target");break;case 102:if(s!=="meta")return Yt(n.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Li(n.name.escapedText),sa(n.keywordToken),"meta");break}}function Pv(n){return n.parseDiagnostics.length>0}function Cl(n,s,...c){const _=Bn(n);if(!Pv(_)){const d=gm(_,n.pos);return xa.add(vl(_,d.start,d.length,s,...c)),!0}return!1}function Iv(n,s,c,_,...d){const h=Bn(n);return Pv(h)?!1:(xa.add(vl(h,s,c,_,...d)),!0)}function Qat(n,s,c,..._){const d=Bn(s);return Pv(d)?!1:(vh(n,s,c,..._),!0)}function Yt(n,s,...c){const _=Bn(n);return Pv(_)?!1:(xa.add(yr(n,s,...c)),!0)}function Yat(n){const s=Zn(n)?nO(n):void 0,c=n.typeParameters||s&&wl(s);if(c){const _=c.pos===c.end?c.pos:ua(Bn(n).text,c.pos);return Iv(n,_,c.end-_,p.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Zat(n){const s=n.type||Kf(n);if(s)return Yt(s,p.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Kat(n){if(Ga(n.name)&&rr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Yt(n.parent.members[0],p.A_mapped_type_may_not_declare_properties_or_methods);if(ei(n.parent)){if(pa(n.name)&&n.name.text==="constructor")return Yt(n.name,p.Classes_may_not_have_a_field_named_constructor);if(xC(n.name,p.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ee<2&&Ei(n.name))return Yt(n.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ee<2&&eu(n))return Yt(n.name,p.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(eu(n)&&Uae(n.questionToken,p.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(xC(n.name,p.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(E.assertNode(n,mf),n.initializer)return Yt(n.initializer,p.An_interface_property_cannot_have_an_initializer)}else if(ef(n.parent)){if(xC(n.name,p.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(E.assertNode(n,mf),n.initializer)return Yt(n.initializer,p.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&B7e(n),Is(n)&&n.exclamationToken&&(!ei(n.parent)||!n.type||n.initializer||n.flags&33554432||Ps(n)||o2(n))){const s=n.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Yt(n.exclamationToken,s)}}function eot(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Mr(n,1027)?!1:Cl(n,p.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function tot(n){for(const s of n.statements)if((l_(s)||s.kind===243)&&eot(s))return!0;return!1}function not(n){return!!(n.flags&33554432)&&tot(n)}function Lg(n){if(n.flags&33554432){if(!Jr(n).hasReportedStatementInAmbientContext&&(ks(n.parent)||e1(n.parent)))return Jr(n).hasReportedStatementInAmbientContext=Cl(n,p.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){const c=Jr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=Cl(n,p.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Hae(n){const s=el(n).indexOf(".")!==-1,c=n.numericLiteralFlags&16;s||c||+n.text<=9007199254740991||l0(!1,yr(n,p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function rot(n){return!!(!(wy(n.parent)||Dy(n.parent)&&wy(n.parent.parent))&&ee<7&&Yt(n,p.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function iot(n,s,...c){const _=Bn(n);if(!Pv(_)){const d=gm(_,n.pos);return xa.add(vl(_,Zl(d),0,s,...c)),!0}return!1}function sot(){return Ka||(Ka=[],pe.forEach((n,s)=>{hL.test(s)&&Ka.push(n)})),Ka}function aot(n){var s;return n.isTypeOnly&&n.name&&n.namedBindings?Yt(n,p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((s=n.namedBindings)==null?void 0:s.kind)===275?V7e(n.namedBindings):!1}function V7e(n){return!!mn(n.elements,s=>{if(s.isTypeOnly)return Cl(s,s.kind===276?p.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:p.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function oot(n){if(j.verbatimModuleSyntax&&R===1)return Yt(n,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(R===5)return Yt(n,p.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return Yt(n,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const s=n.arguments;if(R!==99&&R!==199&&R!==100&&(fx(s),s.length>1)){const _=s[1];return Yt(_,p.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(s.length===0||s.length>2)return Yt(n,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const c=Fr(s,Bd);return c?Yt(c,p.Argument_of_dynamic_import_cannot_be_spread_element):!1}function cot(n,s){const c=Br(n);if(c&20&&s.flags&1048576)return Fr(s.types,_=>{if(_.flags&524288){const d=c&Br(_);if(d&4)return n.target===_.target;if(d&16)return!!n.aliasSymbol&&n.aliasSymbol===_.aliasSymbol}return!1})}function lot(n,s){if(Br(n)&128&&Fg(s,w0))return Fr(s.types,c=>!w0(c))}function _ot(n,s){let c=0;if(As(n,c).length>0||(c=1,As(n,c).length>0))return Fr(s.types,d=>As(d,c).length>0)}function uot(n,s){let c;if(!(n.flags&406978556)){let _=0;for(const d of s.types)if(!(d.flags&406978556)){const h=ca([im(n),im(d)]);if(h.flags&4194304)return d;if(Gp(h)||h.flags&1048576){const T=h.flags&1048576?L0(h.types,Gp):1;T>=_&&(c=d,_=T)}}}return c}function fot(n){if(Qo(n,67108864)){const s=ol(n,c=>!(c.flags&402784252));if(!(s.flags&131072))return s}return n}function U7e(n,s,c){if(s.flags&1048576&&n.flags&2621440){const _=o3e(s,n);if(_)return _;const d=za(n);if(d){const h=a3e(d,s);if(h){const T=Oie(s,an(h,P=>[()=>$n(P),P.escapedName]),c);if(T!==s)return T}}}}function pot(n){const s=by(n);return s||(Ga(n)&&Sc(n.expression)?i3e(n.expression):void 0)}function Xz(n){return _r===n||(_r=n,Tn=Wv(n)),Tn}function Ov(n){return It===n||(It=n,bt=U0(n)),bt}function Qz(n){const s=Ov(n)&7;return s===2||s===4||s===6}}function qPe(e){return!e1(e)}function Eme(e){return e.kind!==262&&e.kind!==174||!!e.body}function wme(e){switch(e.parent.kind){case 276:case 281:return we(e);default:return Gg(e)}}function Dme(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function d_(e){return!!(e.flags&1)}function N$(e){return!!(e.flags&2)}function HPe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Gs(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Gs(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var hL,$A,P$,I$,O$,F$,yL,vL,bL,TL,Ame,XA,L$,sf,xL,GPe=Bt({"src/compiler/checker.ts"(){Os(),D$(),Jv(),hL=/^".+"$/,$A="(anonymous)",P$=1,I$=1,O$=1,F$=1,yL=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(yL||{}),vL=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),bL=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e[e.TypeOnly=128]="TypeOnly",e))(bL||{}),TL=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(TL||{}),Ame=hI(Eme,qPe),XA=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),L$=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(sf||(sf={})),xL=class G7e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var a;r instanceof G7e;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((a=this.inner)!=null&&a.trackSymbol)}trackSymbol(t,r,i){var a;return((a=this.inner)==null?void 0:a.trackSymbol)&&!this.disableTrackSymbol&&this.inner.trackSymbol(t,r,i)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var a;(a=this.inner)!=null&&a.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}reportImportTypeNodeResolutionModeOverride(){var t;(t=this.inner)!=null&&t.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function Ue(e,t,r,i){if(e===void 0)return e;const a=t(e);let o;if(a!==void 0)return Ds(a)?o=(i||ZPe)(a):o=a,E.assertNode(o,r),o}function An(e,t,r,i,a){if(e===void 0)return e;const o=e.length;(i===void 0||i<0)&&(i=0),(a===void 0||a>o-i)&&(a=o-i);let l,u=-1,f=-1;i>0||ao-i)&&(a=o-i),Nme(e,t,r,i,a)}function Nme(e,t,r,i,a){let o;const l=e.length;(i>0||a=2&&(a=$Pe(a,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),a}function $Pe(e,t){let r;for(let i=0;i{const l=iu,addSource:ue,setSourceContent:fe,addName:G,addMapping:Xe,appendSourceMap:ve,toJSON:pe,toString:()=>JSON.stringify(pe())};function ue(Ge){o();const tt=wx(i,Ge,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let mt=g.get(tt);return mt===void 0&&(mt=f.length,f.push(tt),u.push(Ge),g.set(tt,mt)),l(),mt}function fe(Ge,tt){if(o(),tt!==null){for(m||(m=[]);m.lengthtt||oe===tt&&_e>mt)}function Xe(Ge,tt,mt,Je,at,zt){E.assert(Ge>=ee,"generatedLine cannot backtrack"),E.assert(tt>=0,"generatedCharacter cannot be negative"),E.assert(mt===void 0||mt>=0,"sourceIndex cannot be negative"),E.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),E.assert(at===void 0||at>=0,"sourceCharacter cannot be negative"),o(),(Ne(Ge,tt)||De(mt,Je,at))&&(rt(),ee=Ge,R=tt,Q=!1,re=!1,H=!0),mt!==void 0&&Je!==void 0&&at!==void 0&&(Z=mt,oe=Je,_e=at,Q=!0,zt!==void 0&&(X=zt,re=!0)),l()}function ve(Ge,tt,mt,Je,at,zt){E.assert(Ge>=ee,"generatedLine cannot backtrack"),E.assert(tt>=0,"generatedCharacter cannot be negative"),o();const It=[];let bt;const _r=R$(mt.mappings);for(const Tn of _r){if(zt&&(Tn.generatedLine>zt.line||Tn.generatedLine===zt.line&&Tn.generatedCharacter>zt.character))break;if(at&&(Tn.generatedLine=1024&&ct()}function rt(){if(!(!H||!be())){if(o(),N0&&(C+=String.fromCharCode.apply(void 0,k),k.length=0)}function pe(){return rt(),ct(),{version:3,file:t,sourceRoot:r,sources:f,names:y,mappings:C,sourcesContent:m}}function Pe(Ge){Ge<0?Ge=(-Ge<<1)+1:Ge=Ge<<1;do{let tt=Ge&31;Ge=Ge>>5,Ge>0&&(tt=tt|32),xe(nIe(tt))}while(Ge>0)}}function Ome(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Fme(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=kL.exec(r);if(i)return xx(i[1]);if(!r.match(CL))break}}function eIe(e){return typeof e=="string"||e===null}function Lme(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Ds(e.sources)&&$i(e.sources,$s)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Ds(e.sourcesContent)&&$i(e.sourcesContent,eIe))&&(e.names===void 0||e.names===null||Ds(e.names)&&$i(e.names,$s))}function M$(e){try{const t=JSON.parse(e);if(Lme(t))return t}catch{}}function R$(e){let t=!1,r=0,i=0,a=0,o=0,l=0,u=0,f=0,g;return{get pos(){return r},get error(){return g},get state(){return m(!0,!0)},next(){for(;!t&&r=e.length)return x("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const Y=rIe(e.charCodeAt(r));if(Y===-1)return x("Invalid character in VLQ"),-1;M=(Y&32)!==0,U=U|(Y&31)<>1:(U=U>>1,U=-U),U}}function tIe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function Mme(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function nIe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:E.fail(`${e}: not a base64 value`)}function rIe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function Rme(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function Bme(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function iIe(e,t){return E.assert(e.sourceIndex===t.sourceIndex),Co(e.sourcePosition,t.sourcePosition)}function sIe(e,t){return Co(e.generatedPosition,t.generatedPosition)}function aIe(e){return e.sourcePosition}function oIe(e){return e.generatedPosition}function jme(e,t,r){const i=bi(r),a=t.sourceRoot?fs(t.sourceRoot,i):i,o=fs(t.file,i),l=e.getSourceFileLike(o),u=t.sources.map(V=>fs(V,a)),f=new Map(u.map((V,U)=>[e.getCanonicalFileName(V),U]));let g,m,y;return{getSourcePosition:M,getGeneratedPosition:D};function x(V){const U=l!==void 0?cw(l,V.generatedLine,V.generatedCharacter,!0):-1;let Y,j;if(Mme(V)){const ee=e.getSourceFileLike(u[V.sourceIndex]);Y=t.sources[V.sourceIndex],j=ee!==void 0?cw(ee,V.sourceLine,V.sourceCharacter,!0):-1}return{generatedPosition:U,source:Y,sourceIndex:V.sourceIndex,sourcePosition:j,nameIndex:V.nameIndex}}function k(){if(g===void 0){const V=R$(t.mappings),U=ia(V,x);V.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${V.error}`),g=Ve):g=U}return g}function C(V){if(y===void 0){const U=[];for(const Y of k()){if(!Rme(Y))continue;let j=U[Y.sourceIndex];j||(U[Y.sourceIndex]=j=[]),j.push(Y)}y=U.map(Y=>L7(Y,iIe,Bme))}return y[V]}function N(){if(m===void 0){const V=[];for(const U of k())V.push(U);m=L7(V,sIe,Bme)}return m}function D(V){const U=f.get(e.getCanonicalFileName(V.fileName));if(U===void 0)return V;const Y=C(U);if(!dt(Y))return V;let j=yx(Y,V.pos,aIe,Co);j<0&&(j=~j);const ee=Y[j];return ee===void 0||ee.sourceIndex!==U?V:{fileName:o,pos:ee.generatedPosition}}function M(V){const U=N();if(!dt(U))return V;let Y=yx(U,V.pos,oIe,Co);Y<0&&(Y=~Y);const j=U[Y];return j===void 0||!Rme(j)?V:{fileName:u[j.sourceIndex],pos:j.sourcePosition}}}var B$,kL,CL,EL,cIe=Bt({"src/compiler/sourcemap.ts"(){Os(),Jv(),B$=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,kL=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,CL=/^\s*(\/\/[@#] .*)?$/,EL={getSourcePosition:Zo,getGeneratedPosition:Zo}}});function t_(e){return e=Ko(e),e?Ba(e):0}function lIe(e){return!e||!rh(e)?!1:dt(e.elements,Jme)}function Jme(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Np(e,t){return r;function r(a){return a.kind===312?t(a):i(a)}function i(a){return e.factory.createBundle(an(a.sourceFiles,t),a.prepends)}}function zme(e){return!!T6(e)}function wL(e){if(T6(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!rh(t))return!1;let r=0;for(const i of t.elements)Jme(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&Bx(e)}function j$(e){return!wL(e)&&(Bx(e)||!!e.importClause&&rh(e.importClause.namedBindings)&&lIe(e.importClause.namedBindings))}function J$(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),a=[],o=new H$,l=[],u=new Map;let f,g=!1,m,y=!1,x=!1,k=!1;for(const D of t.statements)switch(D.kind){case 272:a.push(D),!x&&wL(D)&&(x=!0),!k&&j$(D)&&(k=!0);break;case 271:D.moduleReference.kind===283&&a.push(D);break;case 278:if(D.moduleSpecifier)if(!D.exportClause)a.push(D),y=!0;else if(a.push(D),ap(D.exportClause))N(D);else{const M=D.exportClause.name;u.get(lr(M))||(g4(l,t_(D),M),u.set(lr(M),!0),f=gn(f,M)),x=!0}else N(D);break;case 277:D.isExportEquals&&!m&&(m=D);break;case 243:if(Mr(D,1))for(const M of D.declarationList.declarations)f=Vme(M,u,f,l);break;case 262:if(Mr(D,1))if(Mr(D,1024))g||(g4(l,t_(D),e.factory.getDeclarationName(D)),g=!0);else{const M=D.name;u.get(lr(M))||(g4(l,t_(D),M),u.set(lr(M),!0),f=gn(f,M))}break;case 263:if(Mr(D,1))if(Mr(D,1024))g||(g4(l,t_(D),e.factory.getDeclarationName(D)),g=!0);else{const M=D.name;M&&!u.get(lr(M))&&(g4(l,t_(D),M),u.set(lr(M),!0),f=gn(f,M))}break}const C=yG(e.factory,e.getEmitHelperFactory(),t,i,y,x,k);return C&&a.unshift(C),{externalImports:a,exportSpecifiers:o,exportEquals:m,hasExportStarsToExportValues:y,exportedBindings:l,exportedNames:f,externalHelpersImportDeclaration:C};function N(D){for(const M of Ms(D.exportClause,ap).elements)if(!u.get(lr(M.name))){const V=M.propertyName||M.name;D.moduleSpecifier||o.add(V,M);const U=r.getReferencedImportDeclaration(V)||r.getReferencedValueDeclaration(V);U&&g4(l,t_(U),M.name),u.set(lr(M.name),!0),f=gn(f,M.name)}}}function Vme(e,t,r,i){if(Ns(e.name))for(const a of e.name.elements)pl(a)||(r=Vme(a,t,r,i));else if(!jo(e.name)){const a=lr(e.name);t.get(a)||(t.set(a,!0),r=gn(r,e.name),Zg(e.name)&&g4(i,t_(e),e.name))}return r}function g4(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function x2(e){return Qa(e)||e.kind===9||ru(e.kind)||we(e)}function Ud(e){return!we(e)&&x2(e)}function S8(e){return e>=65&&e<=79}function k8(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function z$(e){if(!ql(e))return;const t=uo(e.expression);return p6(t)?t:void 0}function Ume(e,t,r){for(let i=t;iuIe(i,t,r))}function _Ie(e){return fIe(e)||ec(e)}function DL(e){return Vr(e.members,_Ie)}function uIe(e,t,r){return Is(e)&&(!!e.initializer||!t)&&$c(e)===r}function fIe(e){return Is(e)&&$c(e)}function KA(e){return e.kind===172&&e.initializer!==void 0}function Wme(e){return!Ps(e)&&(n6(e)||eu(e))&&Ei(e.name)}function U$(e){let t;if(e){const r=e.parameters,i=r.length>0&&s2(r[0]),a=i?1:0,o=i?r.length-1:r.length;for(let l=0;lq$(r.privateEnv,t))}var SS,H$,mIe=Bt({"src/compiler/transformers/utilities.ts"(){Os(),SS=class Jk{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(Jk.toKey(t))}get(t){return this._map.get(Jk.toKey(t))}set(t,r){return this._map.set(Jk.toKey(t),r),this}delete(t){var i;var r;return(i=(r=this._map)==null?void 0:r.delete(Jk.toKey(t)))!=null?i:!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(Db(t)||jo(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=yA(t),a=$m(i)&&i!==t?Jk.toKey(i):`(generated@${Ba(i)})`;return Oy(!1,r.prefix,a,r.suffix,Jk.toKey)}else{const i=`(auto@${r.id})`;return Oy(!1,r.prefix,i,r.suffix,Jk.toKey)}}return Ei(t)?lr(t).slice(1):lr(t)}},H$=class extends SS{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(AC(r,t),r.length||this.delete(e))}}}});function _T(e,t,r,i,a,o){let l=e,u;if(Y0(e))for(u=e.right;V_e(e.left)||Iq(e.left);)if(Y0(u))l=e=u,u=e.right;else return E.checkDefined(Ue(u,t,nt));let f;const g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:x=>SIe(r.factory,x),createObjectBindingOrAssignmentPattern:x=>CIe(r.factory,x),createArrayBindingOrAssignmentElement:wIe,visitor:t};if(u&&(u=Ue(u,t,nt),E.assert(u),we(u)&&G$(e,u.escapedText)||$$(e)?u=uT(g,u,!1,l):a?u=uT(g,u,!0,l):Do(e)&&(l=u)),h4(g,e,u,l,Y0(e)),u&&a){if(!dt(f))return u;f.push(u)}return r.factory.inlineExpressions(f)||r.factory.createOmittedExpression();function m(x){f=gn(f,x)}function y(x,k,C,N){E.assertNode(x,o?we:nt);const D=o?o(x,k,C):Ke(r.factory.createAssignment(E.checkDefined(Ue(x,t,nt)),k),C);D.original=N,m(D)}}function G$(e,t){const r=d1(e);return xw(r)?gIe(r,t):we(r)?r.escapedText===t:!1}function gIe(e,t){const r=c4(e);for(const i of r)if(G$(i,t))return!0;return!1}function $$(e){const t=IF(e);if(t&&Ga(t)&&!wb(t.expression))return!0;const r=d1(e);return!!r&&xw(r)&&hIe(r)}function hIe(e){return!!mn(c4(e),$$)}function S2(e,t,r,i,a,o=!1,l){let u;const f=[],g=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:y,emitBindingOrAssignment:x,createArrayBindingOrAssignmentPattern:k=>xIe(r.factory,k),createObjectBindingOrAssignmentPattern:k=>kIe(r.factory,k),createArrayBindingOrAssignmentElement:k=>EIe(r.factory,k),visitor:t};if(Mi(e)){let k=gA(e);k&&(we(k)&&G$(e,k.escapedText)||$$(e))&&(k=uT(m,E.checkDefined(Ue(k,m.visitor,nt)),!1,k),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,k))}if(h4(m,e,a,e,l),u){const k=r.factory.createTempVariable(void 0);if(o){const C=r.factory.inlineExpressions(u);u=void 0,x(k,C,void 0,void 0)}else{r.hoistVariableDeclaration(k);const C=ka(f);C.pendingExpressions=gn(C.pendingExpressions,r.factory.createAssignment(k,C.value)),Lr(C.pendingExpressions,u),C.value=k}}for(const{pendingExpressions:k,name:C,value:N,location:D,original:M}of f){const V=r.factory.createVariableDeclaration(C,void 0,void 0,k?r.factory.inlineExpressions(gn(k,N)):N);V.original=M,Ke(V,D),g.push(V)}return g;function y(k){u=gn(u,k)}function x(k,C,N,D){E.assertNode(k,Ab),u&&(C=r.factory.inlineExpressions(gn(u,C)),u=void 0),f.push({pendingExpressions:u,name:k,value:C,location:N,original:D})}}function h4(e,t,r,i,a){const o=d1(t);if(!a){const l=Ue(gA(t),e.visitor,nt);l?r?(r=bIe(e,r,l,i),!Ud(l)&&xw(o)&&(r=uT(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}cW(o)?yIe(e,t,o,r,i):lW(o)?vIe(e,t,o,r,i):e.emitBindingOrAssignment(o,r,i,t)}function yIe(e,t,r,i,a){const o=c4(r),l=o.length;if(l!==1){const g=!Tw(t)||l!==0;i=uT(e,i,g,a)}let u,f;for(let g=0;g=1&&!(m.transformFlags&98304)&&!(d1(m).transformFlags&98304)&&!Ga(y))u=gn(u,Ue(m,e.visitor,Kce));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,a,r),u=void 0);const x=TIe(e,i,y);Ga(y)&&(f=gn(f,x.argumentExpression)),h4(e,m,x,m)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,a,r)}function vIe(e,t,r,i,a){const o=c4(r),l=o.length;if(e.level<1&&e.downlevelIteration)i=uT(e,Ke(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&PF(o[l-1])?void 0:l),a),!1,a);else if(l!==1&&(e.level<1||l===0)||$i(o,pl)){const g=!Tw(t)||l!==0;i=uT(e,i,g,a)}let u,f;for(let g=0;g=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!Xme(m)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),f=gn(f,[y,m]),u=gn(u,e.createArrayBindingOrAssignmentElement(y))}else u=gn(u,m);else{if(pl(m))continue;if(PF(m)){if(g===l-1){const y=e.context.factory.createArraySliceCall(i,g);h4(e,m,y,m)}}else{const y=e.context.factory.createElementAccessExpression(i,g);h4(e,m,y,m)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,a,r),f)for(const[g,m]of f)h4(e,m,g,m)}function Xme(e){const t=d1(e);if(!t||pl(t))return!0;const r=IF(e);if(r&&!Od(r))return!1;const i=gA(e);return i&&!Ud(i)?!1:xw(t)?$i(c4(t),Xme):we(t)}function bIe(e,t,r,i){return t=uT(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function TIe(e,t,r){const{factory:i}=e.context;if(Ga(r)){const a=uT(e,E.checkDefined(Ue(r.expression,e.visitor,nt)),!1,r);return e.context.factory.createElementAccessExpression(t,a)}else if(If(r)){const a=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,a)}else{const a=e.context.factory.createIdentifier(lr(r));return e.context.factory.createPropertyAccessExpression(t,a)}}function uT(e,t,r,i){if(we(t)&&r)return t;{const a=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(a),e.emitExpression(Ke(e.context.factory.createAssignment(a,t),i))):e.emitBindingOrAssignment(a,t,i,void 0),a}}function xIe(e,t){return E.assertEachNode(t,o9),e.createArrayBindingPattern(t)}function SIe(e,t){return E.assertEachNode(t,kw),e.createArrayLiteralExpression(an(t,e.converters.convertToArrayAssignmentElement))}function kIe(e,t){return E.assertEachNode(t,Fa),e.createObjectBindingPattern(t)}function CIe(e,t){return E.assertEachNode(t,Sw),e.createObjectLiteralExpression(an(t,e.converters.convertToObjectAssignmentElement))}function EIe(e,t){return e.createBindingElement(void 0,void 0,t)}function wIe(e){return e}var X$,DIe=Bt({"src/compiler/transformers/destructuring.ts"(){Os(),X$=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(X$||{})}});function Qme(e,t,r=e.createThis()){const i=e.createAssignment(t,r),a=e.createExpressionStatement(i),o=e.createBlock([a],!1),l=e.createClassStaticBlockDeclaration(o);return e_(l).classThis=t,l}function C8(e){var t;if(!ec(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ql(r)&&Kl(r.expression,!0)&&we(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function Q$(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&dt(e.members,C8)}function Yme(e,t,r,i){if(Q$(t))return t;const a=Qme(e,r,i);t.name&&Ca(a.body.statements[0],t.name);const o=e.createNodeArray([a,...t.members]);Ke(o,t.members);const l=Qc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return e_(l).classThis=r,l}var AIe=Bt({"src/compiler/transformers/classThis.ts"(){Os()}});function E8(e,t,r){const i=Ko(nl(r));return(Qc(i)||tl(i))&&!i.name&&Mr(i,1024)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Zme(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(Od(t)||Ei(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Od(t.expression)&&!we(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const a=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(a);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(a,o),u=i.updateComputedPropertyName(t,l);return{assignedName:a,name:u}}function Kme(e,t,r=e.factory.createThis()){const{factory:i}=e,a=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),o=i.createExpressionStatement(a),l=i.createBlock([o],!1),u=i.createClassStaticBlockDeclaration(l);return e_(u).assignedName=t,u}function kS(e){var t;if(!ec(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ql(r)&&Q3(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function NL(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&dt(e.members,kS)}function Y$(e){return!!e.name||NL(e)}function PL(e,t,r,i){if(NL(t))return t;const{factory:a}=e,o=Kme(e,r,i);t.name&&Ca(o.body.statements[0],t.name);const l=qc(t.members,C8)+1,u=t.members.slice(0,l),f=t.members.slice(l),g=a.createNodeArray([...u,o,...f]);return Ke(g,t.members),t=Qc(t)?a.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):a.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),e_(t).assignedName=r,t}function CS(e,t,r,i){if(i&&pa(r)&&GW(r))return t;const{factory:a}=e,o=nl(t),l=Fl(o)?Ms(PL(e,o,r),Fl):e.getEmitHelperFactory().createSetFunctionNameHelper(o,r);return a.restoreOuterExpressions(t,l)}function NIe(e,t,r,i){const{factory:a}=e,{assignedName:o,name:l}=Zme(e,t.name,i),u=CS(e,t.initializer,o,r);return a.updatePropertyAssignment(t,l,u)}function PIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):E8(a,t.name,t.objectAssignmentInitializer),l=CS(e,t.objectAssignmentInitializer,o,r);return a.updateShorthandPropertyAssignment(t,t.name,l)}function IIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):E8(a,t.name,t.initializer),l=CS(e,t.initializer,o,r);return a.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function OIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):E8(a,t.name,t.initializer),l=CS(e,t.initializer,o,r);return a.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function FIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):E8(a,t.name,t.initializer),l=CS(e,t.initializer,o,r);return a.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function LIe(e,t,r,i){var f;const{factory:a}=e,{assignedName:o,name:l}=Zme(e,t.name,i),u=CS(e,t.initializer,o,r);return a.updatePropertyDeclaration(t,t.modifiers,l,(f=t.questionToken)!=null?f:t.exclamationToken,t.type,u)}function MIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):E8(a,t.left,t.right),l=CS(e,t.right,o,r);return a.updateBinaryExpression(t,t.left,t.operatorToken,l)}function RIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):a.createStringLiteral(t.isExportEquals?"":"default"),l=CS(e,t.expression,o,r);return a.updateExportAssignment(t,t.modifiers,l)}function Lu(e,t,r,i){switch(t.kind){case 303:return NIe(e,t,r,i);case 304:return PIe(e,t,r,i);case 260:return IIe(e,t,r,i);case 169:return OIe(e,t,r,i);case 208:return FIe(e,t,r,i);case 172:return LIe(e,t,r,i);case 226:return MIe(e,t,r,i);case 277:return RIe(e,t,r,i)}}var BIe=Bt({"src/compiler/transformers/namedEvaluation.ts"(){Os()}});function Z$(e,t,r,i,a,o){const l=Ue(t.tag,r,nt);E.assert(l);const u=[void 0],f=[],g=[],m=t.template;if(o===0&&!gq(m))return pn(t,r,e);const{factory:y}=e;if(rS(m))f.push(K$(y,m)),g.push(eX(y,m,i));else{f.push(K$(y,m.head)),g.push(eX(y,m.head,i));for(const k of m.templateSpans)f.push(K$(y,k.literal)),g.push(eX(y,k.literal,i)),u.push(E.checkDefined(Ue(k.expression,r,nt)))}const x=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(f),y.createArrayLiteralExpression(g));if(zc(i)){const k=y.createUniqueName("templateObject");a(k),u[0]=y.createLogicalOr(k,y.createAssignment(k,x))}else u[0]=x;return y.createCallExpression(l,void 0,u)}function K$(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function eX(e,t,r){let i=t.rawText;if(i===void 0){E.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=Xv(r,t);const a=t.kind===15||t.kind===18;i=i.substring(1,i.length-(a?1:2))}return i=i.replace(/\r\n?/g,` -`),Ke(e.createStringLiteral(i),t)}var tX,jIe=Bt({"src/compiler/transformers/taggedTemplate.ts"(){Os(),tX=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(tX||{})}});function ege(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:a,endLexicalEnvironment:o,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),f=e.getCompilerOptions(),g=Oa(f),m=Ul(f),y=!!f.experimentalDecorators,x=f.emitDecoratorMetadata?rge(e):void 0,k=e.onEmitNode,C=e.onSubstituteNode;e.onEmitNode=Rf,e.onSubstituteNode=Ls,e.enableSubstitution(211),e.enableSubstitution(212);let N,D,M,V,U,Y,j,ee;return R;function R(A){return A.kind===313?Z(A):oe(A)}function Z(A){return t.createBundle(A.sourceFiles.map(oe),qi(A.prepends,Ce=>Ce.kind===315?PH(Ce,"js"):Ce))}function oe(A){if(A.isDeclarationFile)return A;N=A;const Ce=_e(A,Pe);return Yg(Ce,e.readEmitHelpers()),N=void 0,Ce}function _e(A,Ce){const Re=V,xt=U,vn=Y;X(A);const Pr=Ce(A);return V!==Re&&(U=xt),V=Re,Y=vn,Pr}function X(A){switch(A.kind){case 312:case 269:case 268:case 241:V=A,U=void 0;break;case 263:case 262:if(Mr(A,2))break;A.name?ge(A):E.assert(A.kind===263||Mr(A,1024));break}}function H(A){return _e(A,Q)}function Q(A){return A.transformFlags&1?pe(A):A}function re(A){return _e(A,ue)}function ue(A){switch(A.kind){case 272:case 271:case 277:case 278:return fe(A);default:return Q(A)}}function fe(A){if(es(A)!==A)return A.transformFlags&1?pn(A,H,e):A;switch(A.kind){case 272:return on(A);case 271:return Fs(A);case 277:return jn(A);case 278:return ai(A);default:E.fail("Unhandled ellided statement")}}function G(A){return _e(A,Ne)}function Ne(A){if(!(A.kind===278||A.kind===272||A.kind===273||A.kind===271&&A.moduleReference.kind===283))return A.transformFlags&1||Mr(A,1)?pe(A):A}function De(A){return Ce=>_e(Ce,Re=>Xe(Re,A))}function Xe(A,Ce){switch(A.kind){case 176:return In(A);case 172:return cn(A,Ce);case 177:return Gr(A,Ce);case 178:return Er(A,Ce);case 174:return Gt(A,Ce);case 175:return pn(A,H,e);case 240:return A;case 181:return;default:return E.failBadSyntaxKind(A)}}function ve(A){return Ce=>_e(Ce,Re=>be(Re,A))}function be(A,Ce){switch(A.kind){case 303:case 304:case 305:return H(A);case 177:return Gr(A,Ce);case 178:return Er(A,Ce);case 174:return Gt(A,Ce);default:return E.failBadSyntaxKind(A)}}function xe(A){return Wl(A)?void 0:H(A)}function rt(A){return Zs(A)?void 0:H(A)}function ct(A){if(!Wl(A)&&!(Gx(A.kind)&117086)&&!(D&&A.kind===95))return A}function pe(A){if(Ii(A)&&Mr(A,2))return t.createNotEmittedStatement(A);switch(A.kind){case 95:case 90:return D?void 0:A;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(A);case 270:return;case 264:return t.createNotEmittedStatement(A);case 263:return at(A);case 231:return zt(A);case 298:return ur(A);case 233:return yn(A);case 210:return Ge(A);case 176:case 172:case 174:case 177:case 178:case 175:return E.fail("Class and object literal elements must be visited with their respective visitors");case 262:return ze(A);case 218:return ut(A);case 219:return kt(A);case 169:return st(A);case 217:return ke(A);case 216:case 234:return ft(A);case 238:return $e(A);case 213:return Ae(A);case 214:return yt(A);case 215:return _t(A);case 235:return K(A);case 266:return hi(A);case 243:return Ut(A);case 260:return Me(A);case 267:return We(A);case 271:return Fs(A);case 285:return Jt(A);case 286:return Ln(A);default:return pn(A,H,e)}}function Pe(A){const Ce=np(f,"alwaysStrict")&&!(zc(A)&&m>=5)&&!Yf(A);return t.updateSourceFile(A,SL(A.statements,re,e,0,Ce))}function Ge(A){return t.updateObjectLiteralExpression(A,An(A.properties,ve(A),q0))}function tt(A){let Ce=0;dt(V$(A,!0,!0))&&(Ce|=1);const Re=Id(A);return Re&&nl(Re.expression).kind!==106&&(Ce|=64),a1(y,A)&&(Ce|=2),s3(y,A)&&(Ce|=4),pi(A)?Ce|=8:Ui(A)?Ce|=32:tc(A)&&(Ce|=16),Ce}function mt(A){return!!(A.transformFlags&8192)}function Je(A){return Of(A)||dt(A.typeParameters)||dt(A.heritageClauses,mt)||dt(A.members,mt)}function at(A){var Ma;const Ce=tt(A),Re=g<=1&&!!(Ce&7);if(!Je(A)&&!a1(y,A)&&!pi(A))return t.updateClassDeclaration(A,An(A.modifiers,ct,Zs),A.name,void 0,An(A.heritageClauses,H,tf),An(A.members,De(A),Nl));Re&&e.startLexicalEnvironment();const xt=Re||Ce&8;let vn=xt?An(A.modifiers,rt,wo):An(A.modifiers,H,wo);Ce&2&&(vn=bt(vn,A));const wn=xt&&!A.name||Ce&4||Ce&1?(Ma=A.name)!=null?Ma:t.getGeneratedNameForNode(A):A.name,mr=t.updateClassDeclaration(A,vn,wn,void 0,An(A.heritageClauses,H,tf),It(A));let oi=ma(A);Ce&1&&(oi|=64),Xn(mr,oi);let Ur;if(Re){const io=[mr],ac=Fq(ua(N.text,A.members.end),20),Oc=t.getInternalName(A),gc=t.createPartiallyEmittedExpression(Oc);R6(gc,ac.end),Xn(gc,3072);const Ka=t.createReturnStatement(gc);B3(Ka,ac.pos),Xn(Ka,3840),io.push(Ka),dm(io,e.endLexicalEnvironment());const nc=t.createImmediatelyInvokedArrowFunction(io);XD(nc,1);const q_=t.createVariableDeclaration(t.getLocalName(A,!1,!1),void 0,void 0,nc);or(q_,A);const Uc=t.createVariableStatement(void 0,t.createVariableDeclarationList([q_],1));or(Uc,A),Xc(Uc,A),Ca(Uc,K0(A)),O_(Uc),Ur=Uc}else Ur=mr;if(xt){if(Ce&8)return[Ur,Cs(A)];if(Ce&32)return[Ur,t.createExportDefault(t.getLocalName(A,!1,!0))];if(Ce&16)return[Ur,t.createExternalModuleExport(t.getDeclarationName(A,!1,!0))]}return Ur}function zt(A){let Ce=An(A.modifiers,rt,wo);return a1(y,A)&&(Ce=bt(Ce,A)),t.updateClassExpression(A,Ce,A.name,void 0,An(A.heritageClauses,H,tf),It(A))}function It(A){const Ce=An(A.members,De(A),Nl);let Re;const xt=eg(A),vn=xt&&Vr(xt.parameters,Pr=>Du(Pr,xt));if(vn)for(const Pr of vn){const wn=t.createPropertyDeclaration(void 0,Pr.name,void 0,void 0,void 0);or(wn,Pr),Re=gn(Re,wn)}return Re?(Re=Lr(Re,Ce),Ke(t.createNodeArray(Re),A.members)):Ce}function bt(A,Ce){const Re=Tn(Ce,Ce);if(dt(Re)){const xt=[];Lr(xt,vI(A,hA)),Lr(xt,Vr(A,Wl)),Lr(xt,Re),Lr(xt,Vr(Soe(A,hA),Zs)),A=Ke(t.createNodeArray(xt),A)}return A}function _r(A,Ce,Re){if(ei(Re)&&HW(y,Ce,Re)){const xt=Tn(Ce,Re);if(dt(xt)){const vn=[];Lr(vn,Vr(A,Wl)),Lr(vn,xt),Lr(vn,Vr(A,Zs)),A=Ke(t.createNodeArray(vn),A)}}return A}function Tn(A,Ce){if(!!y)return tge?Kn(A,Ce):jt(A,Ce)}function jt(A,Ce){if(x){let Re;if(br(A)){const xt=r().createMetadataHelper("design:type",x.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:Ce},A));Re=gn(Re,t.createDecorator(xt))}if(Si(A)){const xt=r().createMetadataHelper("design:paramtypes",x.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:Ce},A,Ce));Re=gn(Re,t.createDecorator(xt))}if(fi(A)){const xt=r().createMetadataHelper("design:returntype",x.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:Ce},A));Re=gn(Re,t.createDecorator(xt))}return Re}}function Kn(A,Ce){if(x){let Re;if(br(A)){const xt=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),x.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:Ce},A)));Re=gn(Re,xt)}if(Si(A)){const xt=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),x.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:Ce},A,Ce)));Re=gn(Re,xt)}if(fi(A)){const xt=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),x.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:Ce},A)));Re=gn(Re,xt)}if(Re){const xt=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(Re,!0));return[t.createDecorator(xt)]}}}function br(A){const Ce=A.kind;return Ce===174||Ce===177||Ce===178||Ce===172}function fi(A){return A.kind===174}function Si(A){switch(A.kind){case 263:case 231:return eg(A)!==void 0;case 174:case 177:case 178:return!0}return!1}function Nr(A,Ce){const Re=A.name;return Ei(Re)?t.createIdentifier(""):Ga(Re)?Ce&&!Ud(Re.expression)?t.getGeneratedNameForNode(Re):Re.expression:we(Re)?t.createStringLiteral(lr(Re)):t.cloneNode(Re)}function pt(A){const Ce=A.name;if(Ga(Ce)&&(!$c(A)&&Y||Of(A)&&y)){const Re=Ue(Ce.expression,H,nt);E.assert(Re);const xt=bp(Re);if(!Ud(xt)){const vn=t.getGeneratedNameForNode(Ce);return l(vn),t.updateComputedPropertyName(Ce,t.createAssignment(vn,Re))}}return E.checkDefined(Ue(Ce,H,Jc))}function ur(A){if(A.token!==119)return pn(A,H,e)}function yn(A){return t.updateExpressionWithTypeArguments(A,E.checkDefined(Ue(A.expression,H,pu)),void 0)}function Ct(A){return!fc(A.body)}function cn(A,Ce){const Re=A.flags&33554432||Mr(A,256);if(Re&&!(y&&Of(A)))return;let xt=ei(Ce)?Re?An(A.modifiers,rt,wo):An(A.modifiers,H,wo):An(A.modifiers,xe,wo);return xt=_r(xt,A,Ce),Re?t.updatePropertyDeclaration(A,Ki(xt,t.createModifiersFromModifierFlags(2)),E.checkDefined(Ue(A.name,H,Jc)),void 0,void 0,void 0):t.updatePropertyDeclaration(A,xt,pt(A),void 0,void 0,Ue(A.initializer,H,nt))}function In(A){if(!!Ct(A))return t.updateConstructorDeclaration(A,void 0,Pc(A.parameters,H,e),wi(A.body,A))}function xr(A,Ce,Re,xt,vn,Pr){const wn=xt[vn],mr=Ce[wn];if(Lr(A,An(Ce,H,Ii,Re,wn-Re)),d2(mr)){const oi=[];xr(oi,mr.tryBlock.statements,0,xt,vn+1,Pr);const Ur=t.createNodeArray(oi);Ke(Ur,mr.tryBlock.statements),A.push(t.updateTryStatement(mr,t.updateBlock(mr.tryBlock,oi),Ue(mr.catchClause,H,Ny),Ue(mr.finallyBlock,H,hs)))}else Lr(A,An(Ce,H,Ii,wn,1)),Lr(A,Pr);Lr(A,An(Ce,H,Ii,wn+1))}function wi(A,Ce){const Re=Ce&&Vr(Ce.parameters,oi=>Du(oi,Ce));if(!dt(Re))return hf(A,H,e);let xt=[];a();const vn=t.copyPrologue(A.statements,xt,!1,H),Pr=ZA(A.statements,vn),wn=qi(Re,Zt);Pr.length?xr(xt,A.statements,vn,Pr,0,wn):(Lr(xt,wn),Lr(xt,An(A.statements,H,Ii,vn))),xt=t.mergeLexicalEnvironment(xt,o());const mr=t.createBlock(Ke(t.createNodeArray(xt),A.statements),!0);return Ke(mr,A),or(mr,A),mr}function Zt(A){const Ce=A.name;if(!we(Ce))return;const Re=Ta(Ke(t.cloneNode(Ce),Ce),Ce.parent);Xn(Re,3168);const xt=Ta(Ke(t.cloneNode(Ce),Ce),Ce.parent);return Xn(xt,3072),O_($D(Ke(or(t.createExpressionStatement(t.createAssignment(Ke(t.createPropertyAccessExpression(t.createThis(),Re),A.name),xt)),A),xy(A,-1))))}function Gt(A,Ce){if(!(A.transformFlags&1))return A;if(!Ct(A))return;let Re=ei(Ce)?An(A.modifiers,H,wo):An(A.modifiers,xe,wo);return Re=_r(Re,A,Ce),t.updateMethodDeclaration(A,Re,A.asteriskToken,pt(A),void 0,void 0,Pc(A.parameters,H,e),void 0,hf(A.body,H,e))}function xn(A){return!(fc(A.body)&&Mr(A,256))}function Gr(A,Ce){if(!(A.transformFlags&1))return A;if(!xn(A))return;let Re=ei(Ce)?An(A.modifiers,H,wo):An(A.modifiers,xe,wo);return Re=_r(Re,A,Ce),t.updateGetAccessorDeclaration(A,Re,pt(A),Pc(A.parameters,H,e),void 0,hf(A.body,H,e)||t.createBlock([]))}function Er(A,Ce){if(!(A.transformFlags&1))return A;if(!xn(A))return;let Re=ei(Ce)?An(A.modifiers,H,wo):An(A.modifiers,xe,wo);return Re=_r(Re,A,Ce),t.updateSetAccessorDeclaration(A,Re,pt(A),Pc(A.parameters,H,e),hf(A.body,H,e)||t.createBlock([]))}function ze(A){if(!Ct(A))return t.createNotEmittedStatement(A);const Ce=t.updateFunctionDeclaration(A,An(A.modifiers,ct,Zs),A.asteriskToken,A.name,void 0,Pc(A.parameters,H,e),void 0,hf(A.body,H,e)||t.createBlock([]));if(pi(A)){const Re=[Ce];return Ea(Re,A),Re}return Ce}function ut(A){return Ct(A)?t.updateFunctionExpression(A,An(A.modifiers,ct,Zs),A.asteriskToken,A.name,void 0,Pc(A.parameters,H,e),void 0,hf(A.body,H,e)||t.createBlock([])):t.createOmittedExpression()}function kt(A){return t.updateArrowFunction(A,An(A.modifiers,ct,Zs),void 0,Pc(A.parameters,H,e),void 0,A.equalsGreaterThanToken,hf(A.body,H,e))}function st(A){if(s2(A))return;const Ce=t.updateParameterDeclaration(A,An(A.modifiers,Re=>Wl(Re)?H(Re):void 0,wo),A.dotDotDotToken,E.checkDefined(Ue(A.name,H,Ab)),void 0,void 0,Ue(A.initializer,H,nt));return Ce!==A&&(Xc(Ce,A),Ke(Ce,Ld(A)),Ca(Ce,Ld(A)),Xn(Ce.name,64)),Ce}function Ut(A){if(pi(A)){const Ce=C3(A.declarationList);return Ce.length===0?void 0:Ke(t.createExpressionStatement(t.inlineExpressions(an(Ce,ae))),A)}else return pn(A,H,e)}function ae(A){const Ce=A.name;return Ns(Ce)?_T(A,H,e,0,!1,Ja):Ke(t.createAssignment(Ic(Ce),E.checkDefined(Ue(A.initializer,H,nt))),A)}function Me(A){const Ce=t.updateVariableDeclaration(A,E.checkDefined(Ue(A.name,H,Ab)),void 0,void 0,Ue(A.initializer,H,nt));return A.type&&ufe(Ce.name,A.type),Ce}function ke(A){const Ce=nl(A.expression,-7);if(Pb(Ce)){const Re=Ue(A.expression,H,nt);return E.assert(Re),t.createPartiallyEmittedExpression(Re,A)}return pn(A,H,e)}function ft(A){const Ce=Ue(A.expression,H,nt);return E.assert(Ce),t.createPartiallyEmittedExpression(Ce,A)}function K(A){const Ce=Ue(A.expression,H,pu);return E.assert(Ce),t.createPartiallyEmittedExpression(Ce,A)}function $e(A){const Ce=Ue(A.expression,H,nt);return E.assert(Ce),t.createPartiallyEmittedExpression(Ce,A)}function Ae(A){return t.updateCallExpression(A,E.checkDefined(Ue(A.expression,H,nt)),void 0,An(A.arguments,H,nt))}function yt(A){return t.updateNewExpression(A,E.checkDefined(Ue(A.expression,H,nt)),void 0,An(A.arguments,H,nt))}function _t(A){return t.updateTaggedTemplateExpression(A,E.checkDefined(Ue(A.tag,H,nt)),void 0,E.checkDefined(Ue(A.template,H,r6)))}function Jt(A){return t.updateJsxSelfClosingElement(A,E.checkDefined(Ue(A.tagName,H,QC)),void 0,E.checkDefined(Ue(A.attributes,H,h2)))}function Ln(A){return t.updateJsxOpeningElement(A,E.checkDefined(Ue(A.tagName,H,QC)),void 0,E.checkDefined(Ue(A.attributes,H,h2)))}function Pt(A){return!Zv(A)||Hb(f)}function hi(A){if(!Pt(A))return t.createNotEmittedStatement(A);const Ce=[];let Re=4;const xt=Oe(Ce,A);xt&&(m!==4||V!==N)&&(Re|=1024);const vn=ls(A),Pr=Oi(A),wn=pi(A)?t.getExternalModuleOrNamespaceExportName(M,A,!1,!0):t.getDeclarationName(A,!1,!0);let mr=t.createLogicalOr(wn,t.createAssignment(wn,t.createObjectLiteralExpression()));if(pi(A)){const Ur=t.getLocalName(A,!1,!0);mr=t.createAssignment(Ur,mr)}const oi=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,vn)],void 0,z(A,Pr)),void 0,[mr]));return or(oi,A),xt&&(Ey(oi,void 0),Kx(oi,void 0)),Ke(oi,A),xm(oi,Re),Ce.push(oi),Ce}function z(A,Ce){const Re=M;M=Ce;const xt=[];i();const vn=an(A.members,B);return dm(xt,o()),Lr(xt,vn),M=Re,t.createBlock(Ke(t.createNodeArray(xt),A.members),!0)}function B(A){const Ce=Nr(A,!1),Re=le(A),xt=t.createAssignment(t.createElementAccessExpression(M,Ce),Re),vn=Re.kind===11?xt:t.createAssignment(t.createElementAccessExpression(M,xt),Ce);return Ke(t.createExpressionStatement(Ke(vn,A)),A)}function le(A){const Ce=u.getConstantValue(A);return Ce!==void 0?typeof Ce=="string"?t.createStringLiteral(Ce):t.createNumericLiteral(Ce):(Vc(),A.initializer?E.checkDefined(Ue(A.initializer,H,nt)):t.createVoidZero())}function W(A){const Ce=es(A,Nc);return Ce?A$(Ce,Hb(f)):!0}function ge(A){U||(U=new Map);const Ce=ye(A);U.has(Ce)||U.set(Ce,A)}function F(A){if(U){const Ce=ye(A);return U.get(Ce)===A}return!0}function ye(A){return E.assertNode(A.name,we),A.name.escapedText}function Oe(A,Ce){const Re=t.createVariableDeclaration(t.getLocalName(Ce,!1,!0)),xt=V.kind===312?0:1,vn=t.createVariableStatement(An(Ce.modifiers,ct,Zs),t.createVariableDeclarationList([Re],xt));return or(Re,Ce),Ey(Re,void 0),Kx(Re,void 0),or(vn,Ce),ge(Ce),F(Ce)?(Ce.kind===266?Ca(vn.declarationList,Ce):Ca(vn,Ce),Xc(vn,Ce),xm(vn,2048),A.push(vn),!0):!1}function We(A){if(!W(A))return t.createNotEmittedStatement(A);E.assertNode(A.name,we,"A TypeScript namespace should have an Identifier name."),Jo();const Ce=[];let Re=4;const xt=Oe(Ce,A);xt&&(m!==4||V!==N)&&(Re|=1024);const vn=ls(A),Pr=Oi(A),wn=pi(A)?t.getExternalModuleOrNamespaceExportName(M,A,!1,!0):t.getDeclarationName(A,!1,!0);let mr=t.createLogicalOr(wn,t.createAssignment(wn,t.createObjectLiteralExpression()));if(pi(A)){const Ur=t.getLocalName(A,!1,!0);mr=t.createAssignment(Ur,mr)}const oi=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,vn)],void 0,Tt(A,Pr)),void 0,[mr]));return or(oi,A),xt&&(Ey(oi,void 0),Kx(oi,void 0)),Ke(oi,A),xm(oi,Re),Ce.push(oi),Ce}function Tt(A,Ce){const Re=M,xt=D,vn=U;M=Ce,D=A,U=void 0;const Pr=[];i();let wn,mr;if(A.body)if(A.body.kind===268)_e(A.body,Ur=>Lr(Pr,An(Ur.statements,G,Ii))),wn=A.body.statements,mr=A.body;else{const Ur=We(A.body);Ur&&(Ds(Ur)?Lr(Pr,Ur):Pr.push(Ur));const Ma=Ot(A).body;wn=xy(Ma.statements,-1)}dm(Pr,o()),M=Re,D=xt,U=vn;const oi=t.createBlock(Ke(t.createNodeArray(Pr),wn),!0);return Ke(oi,mr),(!A.body||A.body.kind!==268)&&Xn(oi,ma(oi)|3072),oi}function Ot(A){if(A.body.kind===267)return Ot(A.body)||A.body}function on(A){if(!A.importClause)return A;if(A.importClause.isTypeOnly)return;const Ce=Ue(A.importClause,Sn,Sm);return Ce||f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2?t.updateImportDeclaration(A,void 0,Ce,A.moduleSpecifier,A.assertClause):void 0}function Sn(A){E.assert(!A.isTypeOnly);const Ce=Go(A)?A.name:void 0,Re=Ue(A.namedBindings,ir,fW);return Ce||Re?t.updateImportClause(A,!1,Ce,Re):void 0}function ir(A){if(A.kind===274)return Go(A)?A:void 0;{const Ce=f.verbatimModuleSyntax||f.preserveValueImports&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),Re=An(A.elements,ar,yu);return Ce||dt(Re)?t.updateNamedImports(A,Re):void 0}}function ar(A){return!A.isTypeOnly&&Go(A)?A:void 0}function jn(A){return f.verbatimModuleSyntax||u.isValueAliasDeclaration(A)?pn(A,H,e):void 0}function ai(A){if(A.isTypeOnly)return;if(!A.exportClause||og(A.exportClause))return A;const Ce=f.verbatimModuleSyntax||!!A.moduleSpecifier&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),Re=Ue(A.exportClause,xt=>Ws(xt,Ce),tW);return Re?t.updateExportDeclaration(A,void 0,A.isTypeOnly,Re,A.moduleSpecifier,A.assertClause):void 0}function ea(A,Ce){const Re=An(A.elements,Qr,p_);return Ce||dt(Re)?t.updateNamedExports(A,Re):void 0}function ps(A){return t.updateNamespaceExport(A,E.checkDefined(Ue(A.name,H,we)))}function Ws(A,Ce){return og(A)?ps(A):ea(A,Ce)}function Qr(A){return!A.isTypeOnly&&(f.verbatimModuleSyntax||u.isValueAliasDeclaration(A))?A:void 0}function cs(A){return Go(A)||!zc(N)&&u.isTopLevelValueImportEqualsWithEntityName(A)}function Fs(A){if(A.isTypeOnly)return;if(gy(A)){const Re=Go(A);return!Re&&f.importsNotUsedAsValues===1?or(Ke(t.createImportDeclaration(void 0,void 0,A.moduleReference.expression,void 0),A),A):Re?pn(A,H,e):void 0}if(!cs(A))return;const Ce=fA(t,A.moduleReference);return Xn(Ce,7168),tc(A)||!pi(A)?or(Ke(t.createVariableStatement(An(A.modifiers,ct,Zs),t.createVariableDeclarationList([or(t.createVariableDeclaration(A.name,void 0,void 0,Ce),A)])),A),A):or(ro(A.name,Ce,A),A)}function pi(A){return D!==void 0&&Mr(A,1)}function ln(A){return D===void 0&&Mr(A,1)}function tc(A){return ln(A)&&!Mr(A,1024)}function Ui(A){return ln(A)&&Mr(A,1024)}function Cs(A){const Ce=t.createAssignment(t.getExternalModuleOrNamespaceExportName(M,A,!1,!0),t.getLocalName(A));Ca(Ce,ep(A.name?A.name.pos:A.pos,A.end));const Re=t.createExpressionStatement(Ce);return Ca(Re,ep(-1,A.end)),Re}function Ea(A,Ce){A.push(Cs(Ce))}function ro(A,Ce,Re){return Ke(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(M,A,!1,!0),Ce)),Re)}function Ja(A,Ce,Re){return Ke(t.createAssignment(Ic(A),Ce),Re)}function Ic(A){return t.getNamespaceMemberName(M,A,!1,!0)}function ls(A){const Ce=t.getGeneratedNameForNode(A);return Ca(Ce,A.name),Ce}function Oi(A){return t.getGeneratedNameForNode(A)}function Vc(){(j&8)===0&&(j|=8,e.enableSubstitution(80))}function Jo(){(j&2)===0&&(j|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function L_(A){return Ko(A).kind===267}function _l(A){return Ko(A).kind===266}function Rf(A,Ce,Re){const xt=ee,vn=N;Ri(Ce)&&(N=Ce),j&2&&L_(Ce)&&(ee|=2),j&8&&_l(Ce)&&(ee|=8),k(A,Ce,Re),ee=xt,N=vn}function Ls(A,Ce){return Ce=C(A,Ce),A===1?ja(Ce):nf(Ce)?mo(Ce):Ce}function mo(A){if(j&2){const Ce=A.name,Re=qt(Ce);if(Re){if(A.objectAssignmentInitializer){const xt=t.createAssignment(Re,A.objectAssignmentInitializer);return Ke(t.createPropertyAssignment(Ce,xt),A)}return Ke(t.createPropertyAssignment(Ce,Re),A)}}return A}function ja(A){switch(A.kind){case 80:return La(A);case 211:return mc(A);case 212:return h_(A)}return A}function La(A){return qt(A)||A}function qt(A){if(j&ee&&!jo(A)&&!Zg(A)){const Ce=u.getReferencedExportContainer(A,!1);if(Ce&&Ce.kind!==312&&(ee&2&&Ce.kind===267||ee&8&&Ce.kind===266))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ce),A),A)}}function mc(A){return W_(A)}function h_(A){return W_(A)}function M_(A){return A.replace(/\*\//g,"*_/")}function W_(A){const Ce=bo(A);if(Ce!==void 0){lfe(A,Ce);const Re=typeof Ce=="string"?t.createStringLiteral(Ce):Ce<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(Math.abs(Ce))):t.createNumericLiteral(Ce);if(!f.removeComments){const xt=Ko(A,Mo);MO(Re,3,` ${M_(el(xt))} `)}return Re}return A}function bo(A){if(!ed(f))return kr(A)||No(A)?u.getConstantValue(A):void 0}function Go(A){return f.verbatimModuleSyntax||Zn(A)||(f.preserveValueImports?u.isValueAliasDeclaration(A):u.isReferencedAliasDeclaration(A))}}var tge,JIe=Bt({"src/compiler/transformers/ts.ts"(){Os(),tge=!1}});function nge(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:a,startLexicalEnvironment:o,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,f=e.getEmitResolver(),g=e.getCompilerOptions(),m=Oa(g),y=AD(g),x=!!g.experimentalDecorators,k=!y,C=y&&m<9,N=k||C,D=m<9,M=m<99?-1:y?0:3,V=m<9,U=V&&m>=2,Y=N||D||M===-1,j=e.onSubstituteNode;e.onSubstituteNode=h_;const ee=e.onEmitNode;e.onEmitNode=mc;let R=!1,Z,oe,_e,X,H;const Q=new Map,re=new Set;let ue,fe,G=!1,Ne=!1;return Np(e,De);function De(A){if(A.isDeclarationFile||(H=void 0,R=!!(Tp(A)&32),!Y&&!R))return A;const Ce=pn(A,ve,e);return Yg(Ce,e.readEmitHelpers()),Ce}function Xe(A){switch(A.kind){case 129:return In()?void 0:A;default:return Hr(A,Zs)}}function ve(A){if(!(A.transformFlags&16777216)&&!(A.transformFlags&134234112))return A;switch(A.kind){case 129:return E.fail("Use `modifierVisitor` instead.");case 263:return Pt(A);case 231:return z(A);case 175:case 172:return E.fail("Use `classElementVisitor` instead.");case 303:return Je(A);case 243:return at(A);case 260:return zt(A);case 169:return It(A);case 208:return bt(A);case 277:return _r(A);case 81:return tt(A);case 211:return Gr(A);case 212:return Er(A);case 224:case 225:return ze(A,!1);case 226:return ft(A,!1);case 217:return $e(A,!1);case 213:return Ut(A);case 244:return kt(A);case 215:return ae(A);case 248:return ut(A);case 110:return W(A);case 262:case 218:return Si(void 0,be,A);case 176:case 174:case 177:case 178:return Si(A,be,A);default:return be(A)}}function be(A){return pn(A,ve,e)}function xe(A){switch(A.kind){case 224:case 225:return ze(A,!0);case 226:return ft(A,!0);case 361:return K(A,!0);case 217:return $e(A,!0);default:return ve(A)}}function rt(A){switch(A.kind){case 298:return pn(A,rt,e);case 233:return Jt(A);default:return ve(A)}}function ct(A){switch(A.kind){case 210:case 209:return qt(A);default:return ve(A)}}function pe(A){switch(A.kind){case 176:return Si(A,Kn,A);case 177:case 178:case 174:return Si(A,fi,A);case 172:return Si(A,xr,A);case 175:return Si(A,le,A);case 167:return jt(A);case 240:return A;default:return wo(A)?Xe(A):ve(A)}}function Pe(A){switch(A.kind){case 167:return jt(A);default:return ve(A)}}function Ge(A){switch(A.kind){case 172:return cn(A);case 177:case 178:return pe(A);default:E.assertMissingNode(A,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function tt(A){return!D||Ii(A.parent)?A:or(t.createIdentifier(""),A)}function mt(A){const Ce=Oi(A.left);if(Ce){const Re=Ue(A.right,ve,nt);return or(r().createClassPrivateFieldInHelper(Ce.brandCheckIdentifier,Re),A)}return pn(A,ve,e)}function Je(A){return Pu(A,ke)&&(A=Lu(e,A)),pn(A,ve,e)}function at(A){const Ce=X;X=[];const Re=pn(A,ve,e),xt=dt(X)?[Re,...X]:Re;return X=Ce,xt}function zt(A){return Pu(A,ke)&&(A=Lu(e,A)),pn(A,ve,e)}function It(A){return Pu(A,ke)&&(A=Lu(e,A)),pn(A,ve,e)}function bt(A){return Pu(A,ke)&&(A=Lu(e,A)),pn(A,ve,e)}function _r(A){return Pu(A,ke)&&(A=Lu(e,A,!0,A.isExportEquals?"":"default")),pn(A,ve,e)}function Tn(A){return dt(_e)&&(hu(A)?(_e.push(A.expression),A=t.updateParenthesizedExpression(A,t.inlineExpressions(_e))):(_e.push(A),A=t.inlineExpressions(_e)),_e=void 0),A}function jt(A){const Ce=Ue(A.expression,ve,nt);return t.updateComputedPropertyName(A,Tn(Ce))}function Kn(A){return ue?ye(A,ue):be(A)}function br(A){return!!(D||$c(A)&&Tp(A)&32)}function fi(A){if(E.assert(!Of(A)),!N_(A)||!br(A))return pn(A,pe,e);const Ce=Oi(A.name);if(E.assert(Ce,"Undeclared private name for property declaration."),!Ce.isValid)return A;const Re=Nr(A);Re&&pi().push(t.createAssignment(Re,t.createFunctionExpression(Vr(A.modifiers,xt=>Zs(xt)&&!sS(xt)&&!Efe(xt)),A.asteriskToken,Re,void 0,Pc(A.parameters,ve,e),void 0,hf(A.body,ve,e))))}function Si(A,Ce,Re){if(A!==fe){const xt=fe;fe=A;const vn=Ce(Re);return fe=xt,vn}return Ce(Re)}function Nr(A){E.assert(Ei(A.name));const Ce=Oi(A.name);if(E.assert(Ce,"Undeclared private name for property declaration."),Ce.kind==="m")return Ce.methodName;if(Ce.kind==="a"){if(n1(A))return Ce.getterName;if(H0(A))return Ce.setterName}}function pt(){var Re,xt;const A=cs(),Ce=(xt=(Re=A.classThis)!=null?Re:A.classConstructor)!=null?xt:ue==null?void 0:ue.name;return E.checkDefined(Ce)}function ur(A){const Ce=Rd(A),Re=Cy(A),xt=A.name;let vn=xt,Pr=xt;if(Ga(xt)&&!Ud(xt.expression)){const ac=FF(xt);if(ac)vn=t.updateComputedPropertyName(xt,Ue(xt.expression,ve,nt)),Pr=t.updateComputedPropertyName(xt,ac.left);else{const Oc=t.createTempVariable(i);Ca(Oc,xt.expression);const gc=Ue(xt.expression,ve,nt),Ka=t.createAssignment(Oc,gc);Ca(Ka,xt.expression),vn=t.updateComputedPropertyName(xt,Ka),Pr=t.updateComputedPropertyName(xt,Oc)}}const wn=An(A.modifiers,Xe,Zs),mr=xG(t,A,wn,A.initializer);or(mr,A),Xn(mr,3072),Ca(mr,Re);const oi=Ps(A)?pt():t.createThis(),Ur=lpe(t,A,wn,vn,oi);or(Ur,A),Xc(Ur,Ce),Ca(Ur,Re);const Ma=t.createModifiersFromModifierFlags(Fd(wn)),io=_pe(t,A,Ma,Pr,oi);return or(io,A),Xn(io,3072),Ca(io,Re),QA([mr,Ur,io],Ge,Nl)}function yn(A){if(br(A)){const Ce=Oi(A.name);if(E.assert(Ce,"Undeclared private name for property declaration."),!Ce.isValid)return A;if(Ce.isStatic&&!D){const Re=Ot(A,t.createThis());if(Re)return t.createClassStaticBlockDeclaration(t.createBlock([Re],!0))}return}return k&&!Ps(A)&&(H==null?void 0:H.data)&&H.data.facts&16?t.updatePropertyDeclaration(A,An(A.modifiers,ve,wo),A.name,void 0,void 0,void 0):(Pu(A,ke)&&(A=Lu(e,A)),t.updatePropertyDeclaration(A,An(A.modifiers,Xe,Zs),Ue(A.name,Pe,Jc),void 0,void 0,Ue(A.initializer,ve,nt)))}function Ct(A){if(N&&!eu(A)){const Ce=ps(A.name,!!A.initializer||y);if(Ce&&pi().push(...upe(Ce)),Ps(A)&&!D){const Re=Ot(A,t.createThis());if(Re){const xt=t.createClassStaticBlockDeclaration(t.createBlock([Re]));return or(xt,A),Xc(xt,A),Xc(Re,{pos:-1,end:-1}),Ey(Re,void 0),Kx(Re,void 0),xt}}return}return t.updatePropertyDeclaration(A,An(A.modifiers,Xe,Zs),Ue(A.name,Pe,Jc),void 0,void 0,Ue(A.initializer,ve,nt))}function cn(A){return E.assert(!Of(A),"Decorators should already have been transformed and elided."),N_(A)?yn(A):Ct(A)}function In(){return M===-1||M===3&&!!(H!=null&&H.data)&&!!(H.data.facts&16)}function xr(A){return eu(A)&&(In()||$c(A)&&Tp(A)&32)?ur(A):cn(A)}function wi(){return!!fe&&$c(fe)&&e1(fe)&&eu(Ko(fe))}function Zt(A){if(wi()){const Ce=nl(A);Ce.kind===110&&re.add(Ce)}}function Gt(A,Ce){return Ce=Ue(Ce,ve,nt),Zt(Ce),xn(A,Ce)}function xn(A,Ce){switch(Xc(Ce,xy(Ce,-1)),A.kind){case"a":return r().createClassPrivateFieldGetHelper(Ce,A.brandCheckIdentifier,A.kind,A.getterName);case"m":return r().createClassPrivateFieldGetHelper(Ce,A.brandCheckIdentifier,A.kind,A.methodName);case"f":return r().createClassPrivateFieldGetHelper(Ce,A.brandCheckIdentifier,A.kind,A.isStatic?A.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(A,"Unknown private element type")}}function Gr(A){if(Ei(A.name)){const Ce=Oi(A.name);if(Ce)return Ke(or(Gt(Ce,A.expression),A),A)}if(U&&fe&&nu(A)&&we(A.name)&&y4(fe)&&(H==null?void 0:H.data)){const{classConstructor:Ce,superClassReference:Re,facts:xt}=H.data;if(xt&1)return ea(A);if(Ce&&Re){const vn=t.createReflectGetCall(Re,t.createStringLiteralFromNode(A.name),Ce);return or(vn,A.expression),Ke(vn,A.expression),vn}}return pn(A,ve,e)}function Er(A){if(U&&fe&&nu(A)&&y4(fe)&&(H==null?void 0:H.data)){const{classConstructor:Ce,superClassReference:Re,facts:xt}=H.data;if(xt&1)return ea(A);if(Ce&&Re){const vn=t.createReflectGetCall(Re,Ue(A.argumentExpression,ve,nt),Ce);return or(vn,A.expression),Ke(vn,A.expression),vn}}return pn(A,ve,e)}function ze(A,Ce){if(A.operator===46||A.operator===47){const Re=uo(A.operand);if(e6(Re)){let xt;if(xt=Oi(Re.name)){const vn=Ue(Re.expression,ve,nt);Zt(vn);const{readExpression:Pr,initializeExpression:wn}=st(vn);let mr=Gt(xt,Pr);const oi=Dy(A)||Ce?void 0:t.createTempVariable(i);return mr=wF(t,A,mr,i,oi),mr=Ae(xt,wn||Pr,mr,64),or(mr,A),Ke(mr,A),oi&&(mr=t.createComma(mr,oi),Ke(mr,A)),mr}}else if(U&&fe&&nu(Re)&&y4(fe)&&(H==null?void 0:H.data)){const{classConstructor:xt,superClassReference:vn,facts:Pr}=H.data;if(Pr&1){const wn=ea(Re);return Dy(A)?t.updatePrefixUnaryExpression(A,wn):t.updatePostfixUnaryExpression(A,wn)}if(xt&&vn){let wn,mr;if(kr(Re)?we(Re.name)&&(mr=wn=t.createStringLiteralFromNode(Re.name)):Ud(Re.argumentExpression)?mr=wn=Re.argumentExpression:(mr=t.createTempVariable(i),wn=t.createAssignment(mr,Ue(Re.argumentExpression,ve,nt))),wn&&mr){let oi=t.createReflectGetCall(vn,mr,xt);Ke(oi,Re);const Ur=Ce?void 0:t.createTempVariable(i);return oi=wF(t,A,oi,i,Ur),oi=t.createReflectSetCall(vn,wn,oi,xt),or(oi,A),Ke(oi,A),Ur&&(oi=t.createComma(oi,Ur),Ke(oi,A)),oi}}}}return pn(A,ve,e)}function ut(A){return t.updateForStatement(A,Ue(A.initializer,xe,Pf),Ue(A.condition,ve,nt),Ue(A.incrementor,xe,nt),U_(A.statement,ve,e))}function kt(A){return t.updateExpressionStatement(A,Ue(A.expression,xe,nt))}function st(A){const Ce=Do(A)?A:t.cloneNode(A);if(A.kind===110&&re.has(A)&&re.add(Ce),Ud(A))return{readExpression:Ce,initializeExpression:void 0};const Re=t.createTempVariable(i),xt=t.createAssignment(Re,Ce);return{readExpression:Re,initializeExpression:xt}}function Ut(A){var Ce;if(e6(A.expression)&&Oi(A.expression.name)){const{thisArg:Re,target:xt}=t.createCallBinding(A.expression,i,m);return Eb(A)?t.updateCallChain(A,t.createPropertyAccessChain(Ue(xt,ve,nt),A.questionDotToken,"call"),void 0,void 0,[Ue(Re,ve,nt),...An(A.arguments,ve,nt)]):t.updateCallExpression(A,t.createPropertyAccessExpression(Ue(xt,ve,nt),"call"),void 0,[Ue(Re,ve,nt),...An(A.arguments,ve,nt)])}if(U&&fe&&nu(A.expression)&&y4(fe)&&((Ce=H==null?void 0:H.data)==null?void 0:Ce.classConstructor)){const Re=t.createFunctionCallCall(Ue(A.expression,ve,nt),H.data.classConstructor,An(A.arguments,ve,nt));return or(Re,A),Ke(Re,A),Re}return pn(A,ve,e)}function ae(A){var Ce;if(e6(A.tag)&&Oi(A.tag.name)){const{thisArg:Re,target:xt}=t.createCallBinding(A.tag,i,m);return t.updateTaggedTemplateExpression(A,t.createCallExpression(t.createPropertyAccessExpression(Ue(xt,ve,nt),"bind"),void 0,[Ue(Re,ve,nt)]),void 0,Ue(A.template,ve,r6))}if(U&&fe&&nu(A.tag)&&y4(fe)&&((Ce=H==null?void 0:H.data)==null?void 0:Ce.classConstructor)){const Re=t.createFunctionBindCall(Ue(A.tag,ve,nt),H.data.classConstructor,[]);return or(Re,A),Ke(Re,A),t.updateTaggedTemplateExpression(A,Re,void 0,Ue(A.template,ve,r6))}return pn(A,ve,e)}function Me(A){if(H&&Q.set(Ko(A),H),D){if(C8(A)){const xt=Ue(A.body.statements[0].expression,ve,nt);return Kl(xt,!0)&&xt.left===xt.right?void 0:xt}if(kS(A))return Ue(A.body.statements[0].expression,ve,nt);o();let Ce=Si(A,xt=>An(xt,ve,Ii),A.body.statements);Ce=t.mergeLexicalEnvironment(Ce,a());const Re=t.createImmediatelyInvokedArrowFunction(Ce);return or(uo(Re.expression),A),xm(uo(Re.expression),4),or(Re,A),Ke(Re,A),Re}}function ke(A){if(Fl(A)&&!A.name){const Ce=DL(A);return dt(Ce,kS)?!1:(D||!!Tp(A))&&dt(Ce,xt=>ec(xt)||N_(xt)||N&&KA(xt))}return!1}function ft(A,Ce){if(Y0(A)){const Re=_e;_e=void 0,A=t.updateBinaryExpression(A,Ue(A.left,ct,nt),A.operatorToken,Ue(A.right,ve,nt));const xt=dt(_e)?t.inlineExpressions(M7([..._e,A])):A;return _e=Re,xt}if(Kl(A)){Pu(A,ke)&&(A=Lu(e,A),E.assertNode(A,Kl));const Re=nl(A.left,9);if(e6(Re)){const xt=Oi(Re.name);if(xt)return Ke(or(Ae(xt,Re.expression,A.right,A.operatorToken.kind),A),A)}else if(U&&fe&&nu(A.left)&&y4(fe)&&(H==null?void 0:H.data)){const{classConstructor:xt,superClassReference:vn,facts:Pr}=H.data;if(Pr&1)return t.updateBinaryExpression(A,ea(A.left),A.operatorToken,Ue(A.right,ve,nt));if(xt&&vn){let wn=No(A.left)?Ue(A.left.argumentExpression,ve,nt):we(A.left.name)?t.createStringLiteralFromNode(A.left.name):void 0;if(wn){let mr=Ue(A.right,ve,nt);if(S8(A.operatorToken.kind)){let Ur=wn;Ud(wn)||(Ur=t.createTempVariable(i),wn=t.createAssignment(Ur,wn));const Ma=t.createReflectGetCall(vn,Ur,xt);or(Ma,A.left),Ke(Ma,A.left),mr=t.createBinaryExpression(Ma,k8(A.operatorToken.kind),mr),Ke(mr,A)}const oi=Ce?void 0:t.createTempVariable(i);return oi&&(mr=t.createAssignment(oi,mr),Ke(oi,A)),mr=t.createReflectSetCall(vn,wn,mr,xt),or(mr,A),Ke(mr,A),oi&&(mr=t.createComma(mr,oi),Ke(mr,A)),mr}}}}return qIe(A)?mt(A):pn(A,ve,e)}function K(A,Ce){const Re=Ce?YA(A.elements,xe):YA(A.elements,ve,xe);return t.updateCommaListExpression(A,Re)}function $e(A,Ce){const Re=Ce?xe:ve,xt=Ue(A.expression,Re,nt);return t.updateParenthesizedExpression(A,xt)}function Ae(A,Ce,Re,xt){if(Ce=Ue(Ce,ve,nt),Re=Ue(Re,ve,nt),Zt(Ce),S8(xt)){const{readExpression:vn,initializeExpression:Pr}=st(Ce);Ce=Pr||vn,Re=t.createBinaryExpression(xn(A,vn),k8(xt),Re)}switch(Xc(Ce,xy(Ce,-1)),A.kind){case"a":return r().createClassPrivateFieldSetHelper(Ce,A.brandCheckIdentifier,Re,A.kind,A.setterName);case"m":return r().createClassPrivateFieldSetHelper(Ce,A.brandCheckIdentifier,Re,A.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(Ce,A.brandCheckIdentifier,Re,A.kind,A.isStatic?A.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(A,"Unknown private element type")}}function yt(A){return Vr(A.members,Wme)}function _t(A){var Ce;let Re=0;const xt=Ko(A);Qc(xt)&&a1(x,xt)&&(Re|=1),D&&(Q$(A)||NL(A))&&(Re|=2);let vn=!1,Pr=!1,wn=!1,mr=!1;for(const Ur of A.members)Ps(Ur)?((Ur.name&&(Ei(Ur.name)||eu(Ur))&&D||eu(Ur)&&M===-1&&!A.name&&!((Ce=A.emitNode)!=null&&Ce.classThis))&&(Re|=2),(Is(Ur)||ec(Ur))&&(V&&Ur.transformFlags&16384&&(Re|=8,Re&1||(Re|=2)),U&&Ur.transformFlags&134217728&&(Re&1||(Re|=6)))):o2(Ko(Ur))||(eu(Ur)?(mr=!0,wn||(wn=N_(Ur))):N_(Ur)?(wn=!0,f.getNodeCheckFlags(Ur)&262144&&(Re|=2)):Is(Ur)&&(vn=!0,Pr||(Pr=!!Ur.initializer)));return(C&&vn||k&&Pr||D&&wn||D&&mr&&M===-1)&&(Re|=16),Re}function Jt(A){var Ce;if((((Ce=H==null?void 0:H.data)==null?void 0:Ce.facts)||0)&4){const xt=t.createTempVariable(i,!0);return cs().superClassReference=xt,t.updateExpressionWithTypeArguments(A,t.createAssignment(xt,Ue(A.expression,ve,nt)),void 0)}return pn(A,ve,e)}function Ln(A,Ce){var Re;const xt=ue,vn=_e,Pr=H;ue=A,_e=void 0,Ws();const wn=Tp(A)&32;if(D||wn){const Ur=os(A);if(Ur&&we(Ur))Fs().data.className=Ur;else if((Re=A.emitNode)!=null&&Re.assignedName&&pa(A.emitNode.assignedName)){if(A.emitNode.assignedName.textSourceNode&&we(A.emitNode.assignedName.textSourceNode))Fs().data.className=A.emitNode.assignedName.textSourceNode;else if(pf(A.emitNode.assignedName.text,m)){const Ma=t.createIdentifier(A.emitNode.assignedName.text);Fs().data.className=Ma}}}if(D){const Ur=yt(A);dt(Ur)&&(Fs().data.weakSetName=Ic("instances",Ur[0].name))}const mr=_t(A);mr&&(cs().facts=mr),mr&8&&jn();const oi=Ce(A,mr);return Qr(),E.assert(H===Pr),ue=xt,_e=vn,oi}function Pt(A){return Ln(A,hi)}function hi(A,Ce){var Re,xt;let vn;if(Ce&2)if(D&&((Re=A.emitNode)==null?void 0:Re.classThis))cs().classConstructor=A.emitNode.classThis,vn=t.createAssignment(A.emitNode.classThis,t.getInternalName(A));else{const Ka=t.createTempVariable(i,!0);cs().classConstructor=t.cloneNode(Ka),vn=t.createAssignment(Ka,t.getInternalName(A))}(xt=A.emitNode)!=null&&xt.classThis&&(cs().classThis=A.emitNode.classThis);const Pr=f.getNodeCheckFlags(A)&262144,wn=Mr(A,1),mr=Mr(A,1024);let oi=An(A.modifiers,Xe,Zs);const Ur=An(A.heritageClauses,rt,tf),{members:Ma,prologue:io}=ge(A),ac=[];if(vn&&pi().unshift(vn),dt(_e)&&ac.push(t.createExpressionStatement(t.inlineExpressions(_e))),k||D||Tp(A)&32){const Ka=DL(A);dt(Ka)&&Tt(ac,Ka,t.getInternalName(A))}ac.length>0&&wn&&mr&&(oi=An(oi,Ka=>hA(Ka)?void 0:Ka,Zs),ac.push(t.createExportAssignment(void 0,!1,t.getLocalName(A,!1,!0))));const Oc=cs().classConstructor;Pr&&Oc&&(ar(),oe[t_(A)]=Oc);const gc=t.updateClassDeclaration(A,oi,A.name,void 0,Ur,Ma);return ac.unshift(gc),io&&ac.unshift(t.createExpressionStatement(io)),ac}function z(A){return Ln(A,B)}function B(A,Ce){var Uc;var Re,xt,vn;const Pr=!!(Ce&1),wn=DL(A),mr=f.getNodeCheckFlags(A),oi=mr&262144;let Ur;function Ma(){var zo;if(D&&((zo=A.emitNode)==null?void 0:zo.classThis))return cs().classConstructor=A.emitNode.classThis;const bu=mr&32768,he=t.createTempVariable(bu?u:i,!0);return cs().classConstructor=t.cloneNode(he),he}(Re=A.emitNode)!=null&&Re.classThis&&(cs().classThis=A.emitNode.classThis),Ce&2&&(Ur!=null||(Ur=Ma()));const io=An(A.modifiers,Xe,Zs),ac=An(A.heritageClauses,rt,tf),{members:Oc,prologue:gc}=ge(A),Ka=t.updateClassExpression(A,io,A.name,void 0,ac,Oc),nc=[];if(gc&&nc.push(gc),(D||Tp(A)&32)&&dt(wn,zo=>ec(zo)||N_(zo)||N&&KA(zo))||dt(_e))if(Pr)E.assertIsDefined(X,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),dt(_e)&&Lr(X,an(_e,t.createExpressionStatement)),dt(wn)&&Tt(X,wn,(Uc=(xt=A.emitNode)==null?void 0:xt.classThis)!=null?Uc:t.getInternalName(A)),Ur?nc.push(t.createAssignment(Ur,Ka)):D&&((vn=A.emitNode)==null?void 0:vn.classThis)?nc.push(t.createAssignment(A.emitNode.classThis,Ka)):nc.push(Ka);else{if(Ur!=null||(Ur=Ma()),oi){ar();const zo=t.cloneNode(Ur);zo.emitNode.autoGenerate.flags&=-9,oe[t_(A)]=zo}nc.push(t.createAssignment(Ur,Ka)),Lr(nc,_e),Lr(nc,on(wn,Ur)),nc.push(t.cloneNode(Ur))}else nc.push(Ka);return nc.length>1&&(xm(Ka,131072),nc.forEach(O_)),t.inlineExpressions(nc)}function le(A){if(!D)return pn(A,ve,e)}function W(A){var Ce;if(V&&fe&&ec(fe)&&(H==null?void 0:H.data)){const{classThis:Re,classConstructor:xt}=H.data;return(Ce=Re!=null?Re:xt)!=null?Ce:A}return A}function ge(A){const Ce=!!(Tp(A)&32);if(D||R){for(const wn of A.members)if(N_(wn))if(br(wn))Ja(wn,wn.name,ln);else{const mr=Fs();lT(mr,wn.name,{kind:"untransformed"})}if(D&&dt(yt(A))&&F(),In()){for(const wn of A.members)if(eu(wn)){const mr=t.getGeneratedPrivateNameForNode(wn.name,void 0,"_accessor_storage");if(D||Ce&&$c(wn))Ja(wn,mr,tc);else{const oi=Fs();lT(oi,mr,{kind:"untransformed"})}}}}let Re=An(A.members,pe,Nl),xt;dt(Re,wc)||(xt=ye(void 0,A));let vn,Pr;if(!D&&dt(_e)){let wn=t.createExpressionStatement(t.inlineExpressions(_e));if(wn.transformFlags&134234112){const oi=t.createTempVariable(i),Ur=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([wn]));vn=t.createAssignment(oi,Ur),wn=t.createExpressionStatement(t.createCallExpression(oi,void 0,[]))}const mr=t.createBlock([wn]);Pr=t.createClassStaticBlockDeclaration(mr),_e=void 0}if(xt||Pr){let wn;const mr=Fr(Re,C8),oi=Fr(Re,kS);wn=gn(wn,mr),wn=gn(wn,oi),wn=gn(wn,xt),wn=gn(wn,Pr);const Ur=mr||oi?Vr(Re,Ma=>Ma!==mr&&Ma!==oi):Re;wn=Lr(wn,Ur),Re=Ke(t.createNodeArray(wn),A.members)}return{members:Re,prologue:vn}}function F(){const{weakSetName:A}=Fs().data;E.assert(A,"weakSetName should be set in private identifier environment"),pi().push(t.createAssignment(A,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function ye(A,Ce){if(A=Ue(A,ve,wc),!(H!=null&&H.data)||!(H.data.facts&16))return A;const Re=Id(Ce),xt=!!(Re&&nl(Re.expression).kind!==106),vn=Pc(A?A.parameters:void 0,ve,e),Pr=We(Ce,A,xt);return Pr?A?(E.assert(vn),t.updateConstructorDeclaration(A,void 0,vn,Pr)):O_(or(Ke(t.createConstructorDeclaration(void 0,vn!=null?vn:[],Pr),A||Ce),A)):A}function Oe(A,Ce,Re,xt,vn,Pr,wn){const mr=xt[vn],oi=Ce[mr];if(Lr(A,An(Ce,ve,Ii,Re,mr-Re)),Re=mr+1,d2(oi)){const Ur=[];Oe(Ur,oi.tryBlock.statements,0,xt,vn+1,Pr,wn);const Ma=t.createNodeArray(Ur);Ke(Ma,oi.tryBlock.statements),A.push(t.updateTryStatement(oi,t.updateBlock(oi.tryBlock,Ur),Ue(oi.catchClause,ve,Ny),Ue(oi.finallyBlock,ve,hs)))}else{for(Lr(A,An(Ce,ve,Ii,mr,1));Re!!gc.initializer||Ei(gc.name)||ym(gc)));const Pr=yt(A),wn=dt(vn)||dt(Pr);if(!Ce&&!wn)return hf(void 0,ve,e);l();const mr=!Ce&ℜlet oi=0,Ur=[];const Ma=[],io=t.createThis();if(ai(Ma,Pr,io),Ce){const gc=Vr(xt,nc=>Du(Ko(nc),Ce)),Ka=Vr(vn,nc=>!Du(Ko(nc),Ce));Tt(Ma,gc,io),Tt(Ma,Ka,io)}else Tt(Ma,vn,io);if(Ce!=null&&Ce.body){oi=t.copyPrologue(Ce.body.statements,Ur,!1,ve);const gc=ZA(Ce.body.statements,oi);if(gc.length)Oe(Ur,Ce.body.statements,oi,gc,0,Ma,Ce);else{for(;oi=Ur.length&&(Oc=Ce.body.multiLine)!=null?Oc:Ur.length>0;return Ke(t.createBlock(Ke(t.createNodeArray(Ur),Ce?Ce.body.statements:A.members),ac),Ce?Ce.body:void 0)}function Tt(A,Ce,Re){for(const xt of Ce){if(Ps(xt)&&!D)continue;const vn=Ot(xt,Re);!vn||A.push(vn)}}function Ot(A,Ce){const Re=ec(A)?Si(A,Me,A):Sn(A,Ce);if(!Re)return;const xt=t.createExpressionStatement(Re);or(xt,A),xm(xt,ma(A)&3072),Xc(xt,A);const vn=Ko(A);return ns(vn)?(Ca(xt,vn),$D(xt)):Ca(xt,Ld(A)),Ey(Re,void 0),Kx(Re,void 0),ym(vn)&&xm(xt,3072),xt}function on(A,Ce){const Re=[];for(const xt of A){const vn=ec(xt)?Si(xt,Me,xt):Si(xt,()=>Sn(xt,Ce),void 0);!vn||(O_(vn),or(vn,xt),xm(vn,ma(xt)&3072),Ca(vn,Ld(xt)),Xc(vn,xt),Re.push(vn))}return Re}function Sn(A,Ce){var Re;const xt=fe,vn=ir(A,Ce);return vn&&$c(A)&&((Re=H==null?void 0:H.data)==null?void 0:Re.facts)&&(or(vn,A),xm(vn,4),Ca(vn,Cy(A.name)),Q.set(Ko(A),H)),fe=xt,vn}function ir(A,Ce){const Re=!y;Pu(A,ke)&&(A=Lu(e,A));const xt=ym(A)?t.getGeneratedPrivateNameForNode(A.name):Ga(A.name)&&!Ud(A.name.expression)?t.updateComputedPropertyName(A.name,t.getGeneratedNameForNode(A.name)):A.name;if($c(A)&&(fe=A),Ei(xt)&&br(A)){const wn=Oi(xt);if(wn)return wn.kind==="f"?wn.isStatic?zIe(t,wn.variableName,Ue(A.initializer,ve,nt)):VIe(t,Ce,Ue(A.initializer,ve,nt),wn.brandCheckIdentifier):void 0;E.fail("Undeclared private name for property declaration.")}if((Ei(xt)||$c(A))&&!A.initializer)return;const vn=Ko(A);if(Mr(vn,256))return;let Pr=Ue(A.initializer,ve,nt);if(Du(vn,vn.parent)&&we(xt)){const wn=t.cloneNode(xt);Pr?(hu(Pr)&&pA(Pr.expression)&&Q3(Pr.expression.left,"___runInitializers")&&Yb(Pr.expression.right)&&Ou(Pr.expression.right.expression)&&(Pr=Pr.expression.left),Pr=t.inlineExpressions([Pr,wn])):Pr=wn,Xn(xt,3168),Ca(wn,vn.name),Xn(wn,3072)}else Pr!=null||(Pr=t.createVoidZero());if(Re||Ei(xt)){const wn=rT(t,Ce,xt,xt);return xm(wn,1024),t.createAssignment(wn,Pr)}else{const wn=Ga(xt)?xt.expression:we(xt)?t.createStringLiteral(Li(xt.escapedText)):xt,mr=t.createPropertyDescriptor({value:Pr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Ce,wn,mr)}}function ar(){(Z&1)===0&&(Z|=1,e.enableSubstitution(80),oe=[])}function jn(){(Z&2)===0&&(Z|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function ai(A,Ce,Re){if(!D||!dt(Ce))return;const{weakSetName:xt}=Fs().data;E.assert(xt,"weakSetName should be set in private identifier environment"),A.push(t.createExpressionStatement(UIe(t,Re,xt)))}function ea(A){return kr(A)?t.updatePropertyAccessExpression(A,t.createVoidZero(),A.name):t.updateElementAccessExpression(A,t.createVoidZero(),Ue(A.argumentExpression,ve,nt))}function ps(A,Ce){if(Ga(A)){const Re=FF(A),xt=Ue(A.expression,ve,nt),vn=bp(xt),Pr=Ud(vn);if(!(!!Re||Kl(vn)&&jo(vn.left))&&!Pr&&Ce){const mr=t.getGeneratedNameForNode(A);return f.getNodeCheckFlags(A)&32768?u(mr):i(mr),t.createAssignment(mr,xt)}return Pr||we(vn)?void 0:xt}}function Ws(){H={previous:H,data:void 0}}function Qr(){H=H==null?void 0:H.previous}function cs(){var A;return E.assert(H),(A=H.data)!=null?A:H.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Fs(){var A;return E.assert(H),(A=H.privateEnv)!=null?A:H.privateEnv=Gme({className:void 0,weakSetName:void 0})}function pi(){return _e!=null?_e:_e=[]}function ln(A,Ce,Re,xt,vn,Pr,wn){eu(A)?ro(A,Ce,Re,xt,vn,Pr):Is(A)?tc(A,Ce,Re,xt,vn,Pr):Ec(A)?Ui(A,Ce,Re,xt,vn,Pr):gf(A)?Cs(A,Ce,Re,xt,vn,Pr,wn):Fu(A)&&Ea(A,Ce,Re,xt,vn,Pr,wn)}function tc(A,Ce,Re,xt,vn,Pr,wn){var mr;if(vn){const oi=E.checkDefined((mr=Re.classThis)!=null?mr:Re.classConstructor,"classConstructor should be set in private identifier environment"),Ur=ls(Ce);lT(xt,Ce,{kind:"f",isStatic:!0,brandCheckIdentifier:oi,variableName:Ur,isValid:Pr})}else{const oi=ls(Ce);lT(xt,Ce,{kind:"f",isStatic:!1,brandCheckIdentifier:oi,isValid:Pr}),pi().push(t.createAssignment(oi,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Ui(A,Ce,Re,xt,vn,Pr,wn){var Ur;const mr=ls(Ce),oi=vn?E.checkDefined((Ur=Re.classThis)!=null?Ur:Re.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(xt.data.weakSetName,"weakSetName should be set in private identifier environment");lT(xt,Ce,{kind:"m",methodName:mr,brandCheckIdentifier:oi,isStatic:vn,isValid:Pr})}function Cs(A,Ce,Re,xt,vn,Pr,wn){var Ur;const mr=ls(Ce,"_get"),oi=vn?E.checkDefined((Ur=Re.classThis)!=null?Ur:Re.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(xt.data.weakSetName,"weakSetName should be set in private identifier environment");(wn==null?void 0:wn.kind)==="a"&&wn.isStatic===vn&&!wn.getterName?wn.getterName=mr:lT(xt,Ce,{kind:"a",getterName:mr,setterName:void 0,brandCheckIdentifier:oi,isStatic:vn,isValid:Pr})}function Ea(A,Ce,Re,xt,vn,Pr,wn){var Ur;const mr=ls(Ce,"_set"),oi=vn?E.checkDefined((Ur=Re.classThis)!=null?Ur:Re.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(xt.data.weakSetName,"weakSetName should be set in private identifier environment");(wn==null?void 0:wn.kind)==="a"&&wn.isStatic===vn&&!wn.setterName?wn.setterName=mr:lT(xt,Ce,{kind:"a",getterName:void 0,setterName:mr,brandCheckIdentifier:oi,isStatic:vn,isValid:Pr})}function ro(A,Ce,Re,xt,vn,Pr,wn){var Ma;const mr=ls(Ce,"_get"),oi=ls(Ce,"_set"),Ur=vn?E.checkDefined((Ma=Re.classThis)!=null?Ma:Re.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(xt.data.weakSetName,"weakSetName should be set in private identifier environment");lT(xt,Ce,{kind:"a",getterName:mr,setterName:oi,brandCheckIdentifier:Ur,isStatic:vn,isValid:Pr})}function Ja(A,Ce,Re){const xt=cs(),vn=Fs(),Pr=q$(vn,Ce),wn=$c(A),mr=!WIe(Ce)&&Pr===void 0;Re(A,Ce,xt,vn,wn,mr,Pr)}function Ic(A,Ce,Re){const{className:xt}=Fs().data,vn=xt?{prefix:"_",node:xt,suffix:"_"}:"_",Pr=typeof A=="object"?t.getGeneratedNameForNode(A,24,vn,Re):typeof A=="string"?t.createUniqueName(A,16,vn,Re):t.createTempVariable(void 0,!0,vn,Re);return f.getNodeCheckFlags(Ce)&32768?u(Pr):i(Pr),Pr}function ls(A,Ce){var xt;const Re=t3(A);return Ic((xt=Re==null?void 0:Re.substring(1))!=null?xt:A,A,Ce)}function Oi(A){const Ce=$me(H,A);return(Ce==null?void 0:Ce.kind)==="untransformed"?void 0:Ce}function Vc(A){const Ce=t.getGeneratedNameForNode(A),Re=Oi(A.name);if(!Re)return pn(A,ve,e);let xt=A.expression;return(Jw(A)||nu(A)||!x2(A.expression))&&(xt=t.createTempVariable(i,!0),pi().push(t.createBinaryExpression(xt,64,Ue(A.expression,ve,nt)))),t.createAssignmentTargetWrapper(Ce,Ae(Re,xt,Ce,64))}function Jo(A){if(ha(A)||u_(A))return qt(A);if(e6(A))return Vc(A);if(U&&fe&&nu(A)&&y4(fe)&&(H==null?void 0:H.data)){const{classConstructor:Ce,superClassReference:Re,facts:xt}=H.data;if(xt&1)return ea(A);if(Ce&&Re){const vn=No(A)?Ue(A.argumentExpression,ve,nt):we(A.name)?t.createStringLiteralFromNode(A.name):void 0;if(vn){const Pr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Pr,t.createReflectSetCall(Re,vn,Pr,Ce))}}}return pn(A,ve,e)}function L_(A){if(Pu(A,ke)&&(A=Lu(e,A)),Kl(A,!0)){const Ce=Jo(A.left),Re=Ue(A.right,ve,nt);return t.updateBinaryExpression(A,Ce,A.operatorToken,Re)}return Jo(A)}function _l(A){if(pu(A.expression)){const Ce=Jo(A.expression);return t.updateSpreadElement(A,Ce)}return pn(A,ve,e)}function Rf(A){if(kw(A)){if(Bd(A))return _l(A);if(!pl(A))return L_(A)}return pn(A,ve,e)}function Ls(A){const Ce=Ue(A.name,ve,Jc);if(Kl(A.initializer,!0)){const Re=L_(A.initializer);return t.updatePropertyAssignment(A,Ce,Re)}if(pu(A.initializer)){const Re=Jo(A.initializer);return t.updatePropertyAssignment(A,Ce,Re)}return pn(A,ve,e)}function mo(A){return Pu(A,ke)&&(A=Lu(e,A)),pn(A,ve,e)}function ja(A){if(pu(A.expression)){const Ce=Jo(A.expression);return t.updateSpreadAssignment(A,Ce)}return pn(A,ve,e)}function La(A){return E.assertNode(A,Sw),ih(A)?ja(A):nf(A)?mo(A):Dc(A)?Ls(A):pn(A,ve,e)}function qt(A){return u_(A)?t.updateArrayLiteralExpression(A,An(A.elements,Rf,nt)):t.updateObjectLiteralExpression(A,An(A.properties,La,q0))}function mc(A,Ce,Re){const xt=Ko(Ce),vn=Q.get(xt);if(vn){const Pr=H,wn=Ne;H=vn,Ne=G,G=!ec(xt)||!(Tp(xt)&32),ee(A,Ce,Re),G=Ne,Ne=wn,H=Pr;return}switch(Ce.kind){case 218:if(Po(xt)||ma(Ce)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Pr=H,wn=Ne;H=void 0,Ne=G,G=!1,ee(A,Ce,Re),G=Ne,Ne=wn,H=Pr;return}case 167:{const Pr=H,wn=G;H=H==null?void 0:H.previous,G=Ne,ee(A,Ce,Re),G=wn,H=Pr;return}}ee(A,Ce,Re)}function h_(A,Ce){return Ce=j(A,Ce),A===1?M_(Ce):Ce}function M_(A){switch(A.kind){case 80:return bo(A);case 110:return W_(A)}return A}function W_(A){if(Z&2&&(H==null?void 0:H.data)&&!re.has(A)){const{facts:Ce,classConstructor:Re,classThis:xt}=H.data,vn=G&&xt!=null?xt:Re;if(vn)return Ke(or(t.cloneNode(vn),A),A);if(Ce&1&&x)return t.createParenthesizedExpression(t.createVoidZero())}return A}function bo(A){return Go(A)||A}function Go(A){if(Z&1&&f.getNodeCheckFlags(A)&536870912){const Ce=f.getReferencedValueDeclaration(A);if(Ce){const Re=oe[Ce.id];if(Re){const xt=t.cloneNode(Re);return Ca(xt,A),Xc(xt,A),xt}}}}}function zIe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function VIe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function UIe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function WIe(e){return!Db(e)&&e.escapedText==="#constructor"}function qIe(e){return Ei(e.left)&&e.operatorToken.kind===103}function HIe(e){return Is(e)&&$c(e)}function y4(e){return ec(e)||HIe(e)}var GIe=Bt({"src/compiler/transformers/classFields.ts"(){Os()}});function rge(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),a=e.getCompilerOptions(),o=Oa(a),l=np(a,"strictNullChecks");let u,f;return{serializeTypeNode:(_e,X)=>g(_e,N,X),serializeTypeOfNode:(_e,X)=>g(_e,y,X),serializeParameterTypesOfNode:(_e,X,H)=>g(_e,x,X,H),serializeReturnTypeOfNode:(_e,X)=>g(_e,C,X)};function g(_e,X,H,Q){const re=u,ue=f;u=_e.currentLexicalScope,f=_e.currentNameScope;const fe=Q===void 0?X(H):X(H,Q);return u=re,f=ue,fe}function m(_e){const X=i.getAllAccessorDeclarations(_e);return X.setAccessor&&k_e(X.setAccessor)||X.getAccessor&&Kf(X.getAccessor)}function y(_e){switch(_e.kind){case 172:case 169:return N(_e.type);case 178:case 177:return N(m(_e));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function x(_e,X){const H=ei(_e)?eg(_e):ks(_e)&&Xf(_e.body)?_e:void 0,Q=[];if(H){const re=k(H,X),ue=re.length;for(let fe=0;fere.parent&&Y6(re.parent)&&(re.parent.trueType===re||re.parent.falseType===re)))return t.createIdentifier("Object");const H=j(_e.typeName),Q=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(Q,H),"function"),void 0,Q,void 0,t.createIdentifier("Object"));case 1:return ee(_e.typeName);case 2:return t.createVoidZero();case 4:return oe("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return oe("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return E.assertNever(X)}}function Y(_e,X){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(_e),t.createStringLiteral("undefined")),X)}function j(_e){if(_e.kind===80){const Q=ee(_e);return Y(Q,Q)}if(_e.left.kind===80)return Y(ee(_e.left),ee(_e));const X=j(_e.left),H=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(X.left,t.createStrictInequality(t.createAssignment(H,X.right),t.createVoidZero())),t.createPropertyAccessExpression(H,_e.right))}function ee(_e){switch(_e.kind){case 80:const X=Ta(Ke(Cm.cloneNode(_e),_e),_e.parent);return X.original=void 0,Ta(X,es(u)),X;case 166:return R(_e)}}function R(_e){return t.createPropertyAccessExpression(ee(_e.left),_e.right)}function Z(_e){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(_e),"function"),void 0,t.createIdentifier(_e),void 0,t.createIdentifier("Object"))}function oe(_e,X){return ohA(In)||Wl(In)?void 0:In,wo),_r=Ld(Je),Tn=rt(Je),jt=l<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),Kn=An(Je.heritageClauses,y,tf);let br=An(Je.members,y,Nl),fi=[];({members:br,decorationStatements:fi}=D(Je,br));const Si=l>=9&&!!Tn&&dt(br,In=>Is(In)&&Mr(In,32)||ec(In));Si&&(br=Ke(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(Tn,t.createThis()))])),...br]),br));const Nr=t.createClassExpression(bt,at&&jo(at)?void 0:at,void 0,Kn,br);or(Nr,Je),Ke(Nr,_r);const pt=Tn&&!Si?t.createAssignment(Tn,Nr):Nr,ur=t.createVariableDeclaration(jt,void 0,void 0,pt);or(ur,Je);const yn=t.createVariableDeclarationList([ur],1),Ct=t.createVariableStatement(void 0,yn);or(Ct,Je),Ke(Ct,_r),Xc(Ct,Je);const cn=[Ct];if(Lr(cn,fi),Ne(cn,Je),zt)if(It){const In=t.createExportDefault(jt);cn.push(In)}else{const In=t.createExternalModuleExport(t.getDeclarationName(Je));cn.push(In)}return cn}function U(Je){return t.updateClassExpression(Je,An(Je.modifiers,m,Zs),Je.name,void 0,An(Je.heritageClauses,y,tf),An(Je.members,y,Nl))}function Y(Je){return t.updateConstructorDeclaration(Je,An(Je.modifiers,m,Zs),An(Je.parameters,y,ns),Ue(Je.body,y,hs))}function j(Je,at){return Je!==at&&(Xc(Je,at),Ca(Je,Ld(at))),Je}function ee(Je){return j(t.updateMethodDeclaration(Je,An(Je.modifiers,m,Zs),Je.asteriskToken,E.checkDefined(Ue(Je.name,y,Jc)),void 0,void 0,An(Je.parameters,y,ns),void 0,Ue(Je.body,y,hs)),Je)}function R(Je){return j(t.updateGetAccessorDeclaration(Je,An(Je.modifiers,m,Zs),E.checkDefined(Ue(Je.name,y,Jc)),An(Je.parameters,y,ns),void 0,Ue(Je.body,y,hs)),Je)}function Z(Je){return j(t.updateSetAccessorDeclaration(Je,An(Je.modifiers,m,Zs),E.checkDefined(Ue(Je.name,y,Jc)),An(Je.parameters,y,ns),Ue(Je.body,y,hs)),Je)}function oe(Je){if(!(Je.flags&33554432||Mr(Je,2)))return j(t.updatePropertyDeclaration(Je,An(Je.modifiers,m,Zs),E.checkDefined(Ue(Je.name,y,Jc)),void 0,void 0,Ue(Je.initializer,y,nt)),Je)}function _e(Je){const at=t.updateParameterDeclaration(Je,cpe(t,Je.modifiers),Je.dotDotDotToken,E.checkDefined(Ue(Je.name,y,Ab)),void 0,void 0,Ue(Je.initializer,y,nt));return at!==Je&&(Xc(at,Je),Ke(at,Ld(Je)),Ca(at,Ld(Je)),Xn(at.name,64)),at}function X(Je){return Q3(Je.expression,"___metadata")}function H(Je){if(!Je)return;const{false:at,true:zt}=coe(Je.decorators,X),It=[];return Lr(It,an(at,Xe)),Lr(It,Na(Je.parameters,ve)),Lr(It,an(zt,Xe)),It}function Q(Je,at,zt){Lr(Je,an(fe(at,zt),It=>t.createExpressionStatement(It)))}function re(Je,at,zt){return Vw(!0,Je,zt)&&at===Ps(Je)}function ue(Je,at){return Vr(Je.members,zt=>re(zt,at,Je))}function fe(Je,at){const zt=ue(Je,at);let It;for(const bt of zt)It=gn(It,G(Je,bt));return It}function G(Je,at){const zt=AL(at,Je,!0),It=H(zt);if(!It)return;const bt=pe(Je,at),_r=be(at,!Mr(at,2)),Tn=l>0?Is(at)&&!ym(at)?t.createVoidZero():t.createNull():void 0,jt=r().createDecorateHelper(It,bt,_r,Tn);return Xn(jt,3072),Ca(jt,Ld(at)),jt}function Ne(Je,at){const zt=De(at);zt&&Je.push(or(t.createExpressionStatement(zt),at))}function De(Je){const at=W$(Je),zt=H(at);if(!zt)return;const It=f&&f[t_(Je)],bt=l<2?t.getInternalName(Je,!1,!0):t.getDeclarationName(Je,!1,!0),_r=r().createDecorateHelper(zt,bt),Tn=t.createAssignment(bt,It?t.createAssignment(It,_r):_r);return Xn(Tn,3072),Ca(Tn,Ld(Je)),Tn}function Xe(Je){return E.checkDefined(Ue(Je.expression,y,nt))}function ve(Je,at){let zt;if(Je){zt=[];for(const It of Je){const bt=r().createParamHelper(Xe(It),at);Ke(bt,It.expression),Xn(bt,3072),zt.push(bt)}}return zt}function be(Je,at){const zt=Je.name;return Ei(zt)?t.createIdentifier(""):Ga(zt)?at&&!Ud(zt.expression)?t.getGeneratedNameForNode(zt):zt.expression:we(zt)?t.createStringLiteral(lr(zt)):t.cloneNode(zt)}function xe(){f||(e.enableSubstitution(80),f=[])}function rt(Je){if(a.getNodeCheckFlags(Je)&262144){xe();const at=t.createUniqueName(Je.name&&!jo(Je.name)?lr(Je.name):"default");return f[t_(Je)]=at,i(at),at}}function ct(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function pe(Je,at){return Ps(at)?t.getDeclarationName(Je):ct(Je)}function Pe(Je,at){return at=u(Je,at),Je===1?Ge(at):at}function Ge(Je){switch(Je.kind){case 80:return tt(Je)}return Je}function tt(Je){var at;return(at=mt(Je))!=null?at:Je}function mt(Je){if(f&&a.getNodeCheckFlags(Je)&536870912){const at=a.getReferencedValueDeclaration(Je);if(at){const zt=f[at.id];if(zt){const It=t.cloneNode(zt);return Ca(It,Je),Xc(It,Je),It}}}}}var XIe=Bt({"src/compiler/transformers/legacyDecorators.ts"(){Os()}});function sge(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,l=Oa(e.getCompilerOptions());let u,f,g,m,y,x;return Np(e,k);function k(B){u=void 0,x=!1;const le=pn(B,Z,e);return Yg(le,e.readEmitHelpers()),x&&(Zx(le,32),x=!1),le}function C(){switch(f=void 0,g=void 0,m=void 0,u==null?void 0:u.kind){case"class":f=u.classInfo;break;case"class-element":f=u.next.classInfo,g=u.classThis,m=u.classSuper;break;case"name":const B=u.next.next.next;(B==null?void 0:B.kind)==="class-element"&&(f=B.next.classInfo,g=B.classThis,m=B.classSuper);break}}function N(B){u={kind:"class",next:u,classInfo:B,savedPendingExpressions:y},y=void 0,C()}function D(){E.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,C()}function M(B){var le,W;E.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"class-element",next:u},(ec(B)||Is(B)&&$c(B))&&(u.classThis=(le=u.next.classInfo)==null?void 0:le.classThis,u.classSuper=(W=u.next.classInfo)==null?void 0:W.classSuper),C()}function V(){var B;E.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),E.assert(((B=u.next)==null?void 0:B.kind)==="class","Incorrect value for top.next.kind.",()=>{var le;return`Expected top.next.kind to be 'class' but got '${(le=u.next)==null?void 0:le.kind}' instead.`}),u=u.next,C()}function U(){E.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"name",next:u},C()}function Y(){E.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u==null?void 0:u.kind}' instead.`),u=u.next,C()}function j(){(u==null?void 0:u.kind)==="other"?(E.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,C())}function ee(){E.assert((u==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u==null?void 0:u.kind}' instead.`),u.depth>0?(E.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,C())}function R(B){return!!(B.transformFlags&33554432)||!!g&&!!(B.transformFlags&16384)||!!g&&!!m&&!!(B.transformFlags&134217728)}function Z(B){if(!R(B))return B;switch(B.kind){case 170:return E.fail("Use `modifierVisitor` instead.");case 263:return De(B);case 231:return Xe(B);case 176:case 172:case 175:return E.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return _r(B);case 226:return fi(B,!1);case 303:return Ct(B);case 260:return cn(B);case 208:return In(B);case 277:return kt(B);case 110:return Je(B);case 248:return Kn(B);case 244:return br(B);case 361:return Nr(B,!1);case 217:return st(B,!1);case 360:return Ut(B,!1);case 213:return at(B);case 215:return zt(B);case 224:case 225:return Si(B,!1);case 211:return It(B);case 212:return bt(B);case 167:return yn(B);case 174:case 178:case 177:case 218:case 262:{j();const le=pn(B,oe,e);return ee(),le}default:return pn(B,oe,e)}}function oe(B){switch(B.kind){case 170:return;default:return Z(B)}}function _e(B){switch(B.kind){case 170:return;default:return B}}function X(B){switch(B.kind){case 176:return xe(B);case 174:return pe(B);case 177:return Pe(B);case 178:return Ge(B);case 172:return mt(B);case 175:return tt(B);default:return Z(B)}}function H(B){switch(B.kind){case 224:case 225:return Si(B,!0);case 226:return fi(B,!0);case 361:return Nr(B,!0);case 217:return st(B,!0);default:return Z(B)}}function Q(B){let le=B.name&&we(B.name)&&!jo(B.name)?lr(B.name):B.name&&Ei(B.name)&&!jo(B.name)?lr(B.name).slice(1):B.name&&pa(B.name)&&pf(B.name.text,99)?B.name.text:ei(B)?"class":"member";return n1(B)&&(le=`get_${le}`),H0(B)&&(le=`set_${le}`),B.name&&Ei(B.name)&&(le=`private_${le}`),Ps(B)&&(le=`static_${le}`),"_"+le}function re(B,le){return t.createUniqueName(`${Q(B)}_${le}`,24)}function ue(B,le){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(B,void 0,void 0,le)],1))}function fe(B){const le=t.createUniqueName("_metadata",48);let W,ge,F=!1,ye=!1,Oe=!1;for(const We of B.members)if(Yce(We)&&Vw(!1,We,B)&&($c(We)?ge!=null||(ge=t.createUniqueName("_staticExtraInitializers",48)):W!=null||(W=t.createUniqueName("_instanceExtraInitializers",48))),ec(We)?kS(We)||(F=!0):Is(We)&&($c(We)?F||(F=!!We.initializer||Of(We)):ye||(ye=!FW(We))),(N_(We)||eu(We))&&$c(We)&&(Oe=!0),ge&&W&&F&&ye&&Oe)break;return{class:B,metadataReference:le,instanceExtraInitializersName:W,staticExtraInitializersName:ge,hasStaticInitializers:F,hasNonAmbientInstanceFields:ye,hasStaticPrivateClassElements:Oe}}function G(B){var Qr,cs,Fs;i(),!Y$(B)&&a1(!1,B)&&(B=PL(e,B,t.createStringLiteral("")));const le=t.getLocalName(B,!1,!1,!0),W=fe(B),ge=[];let F,ye,Oe,We,Tt=!1;const Ot=Me(W$(B));if(Ot){W.classDecoratorsName=t.createUniqueName("_classDecorators",48),W.classDescriptorName=t.createUniqueName("_classDescriptor",48),W.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48);const pi=dt(B.members,ln=>(N_(ln)||eu(ln))&&$c(ln));W.classThis=t.createUniqueName("_classThis",pi?24:48),ge.push(ue(W.classDecoratorsName,t.createArrayLiteralExpression(Ot)),ue(W.classDescriptorName),ue(W.classExtraInitializersName,t.createArrayLiteralExpression()),ue(W.classThis)),W.hasStaticPrivateClassElements&&(Tt=!0,x=!0)}const on=lD(B.heritageClauses,96),Sn=on&&wl(on.types),ir=Sn&&Ue(Sn.expression,Z,nt);if(ir){W.classSuper=t.createUniqueName("_classSuper",48);const pi=nl(ir),ln=Fl(pi)&&!pi.name||fo(pi)&&!pi.name||Po(pi)?t.createComma(t.createNumericLiteral(0),ir):ir;ge.push(ue(W.classSuper,ln));const tc=t.updateExpressionWithTypeArguments(Sn,W.classSuper,void 0),Ui=t.updateHeritageClause(on,[tc]);We=t.createNodeArray([Ui])}const ar=(Qr=W.classThis)!=null?Qr:t.createThis();N(W),F=gn(F,Pt(W.metadataReference,W.classSuper));let jn=An(B.members,X,Nl);if(y){let pi;for(let ln of y){ln=Ue(ln,function Ui(Cs){if(!(Cs.transformFlags&16384))return Cs;switch(Cs.kind){case 110:return pi||(pi=t.createUniqueName("_outerThis",16),ge.unshift(ue(pi,t.createThis()))),pi;default:return pn(Cs,Ui,e)}},nt);const tc=t.createExpressionStatement(ln);F=gn(F,tc)}y=void 0}if(D(),W.instanceExtraInitializersName&&!eg(B)){const pi=ve(B,W);if(pi){const ln=Id(B),tc=!!(ln&&nl(ln.expression).kind!==106),Ui=[];if(tc){const Ea=t.createSpreadElement(t.createIdentifier("arguments")),ro=t.createCallExpression(t.createSuper(),void 0,[Ea]);Ui.push(t.createExpressionStatement(ro))}Lr(Ui,pi);const Cs=t.createBlock(Ui,!0);Oe=t.createConstructorDeclaration(void 0,[],Cs)}}if(W.staticExtraInitializersName&&ge.push(ue(W.staticExtraInitializersName,t.createArrayLiteralExpression())),W.instanceExtraInitializersName&&ge.push(ue(W.instanceExtraInitializersName,t.createArrayLiteralExpression())),W.memberInfos&&Au(W.memberInfos,(pi,ln)=>{Ps(ln)&&(ge.push(ue(pi.memberDecoratorsName)),pi.memberInitializersName&&ge.push(ue(pi.memberInitializersName,t.createArrayLiteralExpression())),pi.memberDescriptorName&&ge.push(ue(pi.memberDescriptorName)))}),W.memberInfos&&Au(W.memberInfos,(pi,ln)=>{Ps(ln)||(ge.push(ue(pi.memberDecoratorsName)),pi.memberInitializersName&&ge.push(ue(pi.memberInitializersName,t.createArrayLiteralExpression())),pi.memberDescriptorName&&ge.push(ue(pi.memberDescriptorName)))}),F=Lr(F,W.staticNonFieldDecorationStatements),F=Lr(F,W.nonStaticNonFieldDecorationStatements),F=Lr(F,W.staticFieldDecorationStatements),F=Lr(F,W.nonStaticFieldDecorationStatements),W.classDescriptorName&&W.classDecoratorsName&&W.classExtraInitializersName&&W.classThis){F!=null||(F=[]);const pi=t.createPropertyAssignment("value",ar),ln=t.createObjectLiteralExpression([pi]),tc=t.createAssignment(W.classDescriptorName,ln),Ui=t.createPropertyAccessExpression(ar,"name"),Cs=r().createESDecorateHelper(t.createNull(),tc,W.classDecoratorsName,{kind:"class",name:Ui,metadata:W.metadataReference},t.createNull(),W.classExtraInitializersName),Ea=t.createExpressionStatement(Cs);Ca(Ea,K0(B)),F.push(Ea);const ro=t.createPropertyAccessExpression(W.classDescriptorName,"value"),Ja=t.createAssignment(W.classThis,ro),Ic=t.createAssignment(le,Ja);F.push(t.createExpressionStatement(Ic))}if(F.push(hi(ar,W.metadataReference)),W.staticExtraInitializersName){const pi=r().createRunInitializersHelper(ar,W.staticExtraInitializersName),ln=t.createExpressionStatement(pi);Ca(ln,(cs=B.name)!=null?cs:K0(B)),F=gn(F,ln)}if(W.classExtraInitializersName){const pi=r().createRunInitializersHelper(ar,W.classExtraInitializersName),ln=t.createExpressionStatement(pi);Ca(ln,(Fs=B.name)!=null?Fs:K0(B)),ye=gn(ye,ln)}F&&ye&&!W.hasStaticInitializers&&(Lr(F,ye),ye=void 0);const ai=F&&t.createClassStaticBlockDeclaration(t.createBlock(F,!0));ai&&Tt&&XD(ai,32);const ea=ye&&t.createClassStaticBlockDeclaration(t.createBlock(ye,!0));if(ai||Oe||ea){const pi=[],ln=jn.findIndex(kS);ai?(Lr(pi,jn,0,ln+1),pi.push(ai),Lr(pi,jn,ln+1)):Lr(pi,jn),Oe&&pi.push(Oe),ea&&pi.push(ea),jn=Ke(t.createNodeArray(pi),jn)}const ps=a();let Ws;if(Ot){Ws=t.createClassExpression(void 0,void 0,void 0,We,jn),W.classThis&&(Ws=Yme(t,Ws,W.classThis));const pi=t.createVariableDeclaration(le,void 0,void 0,Ws),ln=t.createVariableDeclarationList([pi]),tc=W.classThis?t.createAssignment(le,W.classThis):le;ge.push(t.createVariableStatement(void 0,ln),t.createReturnStatement(tc))}else Ws=t.createClassExpression(void 0,B.name,void 0,We,jn),ge.push(t.createReturnStatement(Ws));if(Tt){Zx(Ws,32);for(const pi of Ws.members)(N_(pi)||eu(pi))&&$c(pi)&&Zx(pi,32)}return or(Ws,B),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ge,ps))}function Ne(B){return a1(!1,B)||s3(!1,B)}function De(B){var le;if(Ne(B)){const W=[],ge=(le=Ko(B,ei))!=null?le:B,F=ge.name?t.createStringLiteralFromNode(ge.name):t.createStringLiteral("default"),ye=Mr(B,1),Oe=Mr(B,1024);if(B.name||(B=PL(e,B,F)),ye&&Oe){const We=G(B);if(B.name){const Tt=t.createVariableDeclaration(t.getLocalName(B),void 0,void 0,We);or(Tt,B);const Ot=t.createVariableDeclarationList([Tt],1),on=t.createVariableStatement(void 0,Ot);W.push(on);const Sn=t.createExportDefault(t.getDeclarationName(B));or(Sn,B),Xc(Sn,Rd(B)),Ca(Sn,K0(B)),W.push(Sn)}else{const Tt=t.createExportDefault(We);or(Tt,B),Xc(Tt,Rd(B)),Ca(Tt,K0(B)),W.push(Tt)}}else{E.assertIsDefined(B.name,"A class declaration that is not a default export must have a name.");const We=G(B),Tt=ye?jn=>iS(jn)?void 0:_e(jn):_e,Ot=An(B.modifiers,Tt,Zs),on=t.getLocalName(B,!1,!0),Sn=t.createVariableDeclaration(on,void 0,void 0,We);or(Sn,B);const ir=t.createVariableDeclarationList([Sn],1),ar=t.createVariableStatement(Ot,ir);if(or(ar,B),Xc(ar,Rd(B)),W.push(ar),ye){const jn=t.createExternalModuleExport(on);or(jn,B),W.push(jn)}}return cm(W)}else{const W=An(B.modifiers,_e,Zs),ge=An(B.heritageClauses,Z,tf);N(void 0);const F=An(B.members,X,Nl);return D(),t.updateClassDeclaration(B,W,B.name,void 0,ge,F)}}function Xe(B){if(Ne(B)){const le=G(B);return or(le,B),le}else{const le=An(B.modifiers,_e,Zs),W=An(B.heritageClauses,Z,tf);N(void 0);const ge=An(B.members,X,Nl);return D(),t.updateClassExpression(B,le,B.name,void 0,W,ge)}}function ve(B,le){if(le.instanceExtraInitializersName&&!le.hasNonAmbientInstanceFields){const W=[];return W.push(t.createExpressionStatement(r().createRunInitializersHelper(t.createThis(),le.instanceExtraInitializersName))),W}}function be(B,le,W,ge,F,ye){const Oe=ge[F],We=le[Oe];if(Lr(B,An(le,Z,Ii,W,Oe-W)),d2(We)){const Tt=[];be(Tt,We.tryBlock.statements,0,ge,F+1,ye);const Ot=t.createNodeArray(Tt);Ke(Ot,We.tryBlock.statements),B.push(t.updateTryStatement(We,t.updateBlock(We.tryBlock,Tt),Ue(We.catchClause,Z,Ny),Ue(We.finallyBlock,Z,hs)))}else Lr(B,An(le,Z,Ii,Oe,1)),Lr(B,ye);Lr(B,An(le,Z,Ii,Oe+1))}function xe(B){M(B);const le=An(B.modifiers,_e,Zs),W=An(B.parameters,Z,ns);let ge;if(B.body&&f){const F=ve(f.class,f);if(F){const ye=[],Oe=t.copyPrologue(B.body.statements,ye,!1,Z),We=ZA(B.body.statements,Oe);We.length>0?be(ye,B.body.statements,Oe,We,0,F):(Lr(ye,F),Lr(ye,An(B.body.statements,Z,Ii))),ge=t.createBlock(ye,!0),or(ge,B.body),Ke(ge,B.body)}}return ge!=null||(ge=Ue(B.body,Z,hs)),V(),t.updateConstructorDeclaration(B,le,W,ge)}function rt(B,le){return B!==le&&(Xc(B,le),Ca(B,K0(le))),B}function ct(B,le,W){var on,Sn,ir,ar,jn,ai,ea,ps;let ge,F,ye,Oe,We;if(!le){const Ws=An(B.modifiers,_e,Zs);return U(),F=ur(B.name),Y(),{modifiers:Ws,referencedName:ge,name:F,initializersName:ye,descriptorName:We,thisArg:Oe}}const Tt=Me(AL(B,le.class,!1)),Ot=An(B.modifiers,_e,Zs);if(Tt){const Ws=re(B,"decorators"),Qr=t.createArrayLiteralExpression(Tt),cs=t.createAssignment(Ws,Qr),Fs={memberDecoratorsName:Ws};(on=le.memberInfos)!=null||(le.memberInfos=new Map),le.memberInfos.set(B,Fs),y!=null||(y=[]),y.push(cs);const pi=n6(B)||eu(B)?Ps(B)?(Sn=le.staticNonFieldDecorationStatements)!=null?Sn:le.staticNonFieldDecorationStatements=[]:(ir=le.nonStaticNonFieldDecorationStatements)!=null?ir:le.nonStaticNonFieldDecorationStatements=[]:Is(B)&&!eu(B)?Ps(B)?(ar=le.staticFieldDecorationStatements)!=null?ar:le.staticFieldDecorationStatements=[]:(jn=le.nonStaticFieldDecorationStatements)!=null?jn:le.nonStaticFieldDecorationStatements=[]:E.fail(),ln=gf(B)?"getter":Fu(B)?"setter":Ec(B)?"method":eu(B)?"accessor":Is(B)?"field":E.fail();let tc;if(we(B.name)||Ei(B.name))tc={computed:!1,name:B.name};else if(Od(B.name))tc={computed:!0,name:t.createStringLiteralFromNode(B.name)};else{const Ea=B.name.expression;Od(Ea)&&!we(Ea)?tc={computed:!0,name:t.createStringLiteralFromNode(Ea)}:(U(),{referencedName:ge,name:F}=pt(B.name),tc={computed:!0,name:ge},Y())}const Ui={kind:ln,name:tc,static:Ps(B),private:Ei(B.name),access:{get:Is(B)||gf(B)||Ec(B),set:Is(B)||Fu(B)},metadata:le.metadataReference},Cs=Ps(B)?(ai=le.staticExtraInitializersName)!=null?ai:le.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",48):(ea=le.instanceExtraInitializersName)!=null?ea:le.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",48);if(n6(B)){let Ea;N_(B)&&W&&(Ea=W(B,An(Ot,Ic=>Hr(Ic,Y3),Zs)),Fs.memberDescriptorName=We=re(B,"descriptor"),Ea=t.createAssignment(We,Ea));const ro=r().createESDecorateHelper(t.createThis(),Ea!=null?Ea:t.createNull(),Ws,Ui,t.createNull(),Cs),Ja=t.createExpressionStatement(ro);Ca(Ja,K0(B)),pi.push(Ja)}else if(Is(B)){ye=(ps=Fs.memberInitializersName)!=null?ps:Fs.memberInitializersName=re(B,"initializers"),Ps(B)&&(Oe=le.classThis);let Ea;N_(B)&&ym(B)&&W&&(Ea=W(B,void 0),Fs.memberDescriptorName=We=re(B,"descriptor"),Ea=t.createAssignment(We,Ea));const ro=r().createESDecorateHelper(eu(B)?t.createThis():t.createNull(),Ea!=null?Ea:t.createNull(),Ws,Ui,ye,Cs),Ja=t.createExpressionStatement(ro);Ca(Ja,K0(B)),pi.push(Ja)}}return F===void 0&&(U(),F=ur(B.name),Y()),!dt(Ot)&&(Ec(B)||Is(B))&&Xn(F,1024),{modifiers:Ot,referencedName:ge,name:F,initializersName:ye,descriptorName:We,thisArg:Oe}}function pe(B){M(B);const{modifiers:le,name:W,descriptorName:ge}=ct(B,f,K);if(ge)return V(),rt(_t(le,W,ge),B);{const F=An(B.parameters,Z,ns),ye=Ue(B.body,Z,hs);return V(),rt(t.updateMethodDeclaration(B,le,B.asteriskToken,W,void 0,void 0,F,void 0,ye),B)}}function Pe(B){M(B);const{modifiers:le,name:W,descriptorName:ge}=ct(B,f,$e);if(ge)return V(),rt(Jt(le,W,ge),B);{const F=An(B.parameters,Z,ns),ye=Ue(B.body,Z,hs);return V(),rt(t.updateGetAccessorDeclaration(B,le,W,F,void 0,ye),B)}}function Ge(B){M(B);const{modifiers:le,name:W,descriptorName:ge}=ct(B,f,Ae);if(ge)return V(),rt(Ln(le,W,ge),B);{const F=An(B.parameters,Z,ns),ye=Ue(B.body,Z,hs);return V(),rt(t.updateSetAccessorDeclaration(B,le,W,F,ye),B)}}function tt(B){M(B);let le;if(kS(B))le=pn(B,Z,e);else if(C8(B)){const W=g;g=void 0,le=pn(B,Z,e),g=W}else f&&(f.hasStaticInitializers=!0),le=pn(B,Z,e);return V(),le}function mt(B){Pu(B,Tn)&&(B=Lu(e,B,jt(B.initializer))),M(B),E.assert(!FW(B),"Not yet implemented.");const{modifiers:le,name:W,initializersName:ge,descriptorName:F,thisArg:ye}=ct(B,f,ym(B)?yt:void 0);i();let Oe=Ue(B.initializer,Z,nt);ge&&(Oe=r().createRunInitializersHelper(ye!=null?ye:t.createThis(),ge,Oe!=null?Oe:t.createVoidZero())),!Ps(B)&&(f==null?void 0:f.instanceExtraInitializersName)&&!(f!=null&&f.hasInjectedInstanceInitializers)&&(f.hasInjectedInstanceInitializers=!0,Oe!=null||(Oe=t.createVoidZero()),Oe=t.createParenthesizedExpression(t.createComma(r().createRunInitializersHelper(t.createThis(),f.instanceExtraInitializersName),Oe))),Ps(B)&&f&&Oe&&(f.hasStaticInitializers=!0);const We=a();if(dt(We)&&(Oe=t.createImmediatelyInvokedArrowFunction([...We,t.createReturnStatement(Oe)])),V(),ym(B)&&F){const Tt=Rd(B),Ot=Cy(B),on=B.name;let Sn=on,ir=on;if(Ga(on)&&!Ud(on.expression)){const ps=FF(on);if(ps)Sn=t.updateComputedPropertyName(on,Ue(on.expression,Z,nt)),ir=t.updateComputedPropertyName(on,ps.left);else{const Ws=t.createTempVariable(o);Ca(Ws,on.expression);const Qr=Ue(on.expression,Z,nt),cs=t.createAssignment(Ws,Qr);Ca(cs,on.expression),Sn=t.updateComputedPropertyName(on,cs),ir=t.updateComputedPropertyName(on,Ws)}}const ar=An(le,ps=>ps.kind!==129?ps:void 0,Zs),jn=xG(t,B,ar,Oe);or(jn,B),Xn(jn,3072),Ca(jn,Ot),Ca(jn.name,B.name);const ai=Jt(ar,Sn,F);or(ai,B),Xc(ai,Tt),Ca(ai,Ot);const ea=Ln(ar,ir,F);return or(ea,B),Xn(ea,3072),Ca(ea,Ot),[jn,ai,ea]}return rt(t.updatePropertyDeclaration(B,le,W,void 0,void 0,Oe),B)}function Je(B){return g!=null?g:B}function at(B){if(nu(B.expression)&&g){const le=Ue(B.expression,Z,nt),W=An(B.arguments,Z,nt),ge=t.createFunctionCallCall(le,g,W);return or(ge,B),Ke(ge,B),ge}return pn(B,Z,e)}function zt(B){if(nu(B.tag)&&g){const le=Ue(B.tag,Z,nt),W=t.createFunctionBindCall(le,g,[]);or(W,B),Ke(W,B);const ge=Ue(B.template,Z,r6);return t.updateTaggedTemplateExpression(B,W,void 0,ge)}return pn(B,Z,e)}function It(B){if(nu(B)&&we(B.name)&&g&&m){const le=t.createStringLiteralFromNode(B.name),W=t.createReflectGetCall(m,le,g);return or(W,B.expression),Ke(W,B.expression),W}return pn(B,Z,e)}function bt(B){if(nu(B)&&g&&m){const le=Ue(B.argumentExpression,Z,nt),W=t.createReflectGetCall(m,le,g);return or(W,B.expression),Ke(W,B.expression),W}return pn(B,Z,e)}function _r(B){Pu(B,Tn)&&(B=Lu(e,B,jt(B.initializer)));const le=t.updateParameterDeclaration(B,void 0,B.dotDotDotToken,Ue(B.name,Z,Ab),void 0,void 0,Ue(B.initializer,Z,nt));return le!==B&&(Xc(le,B),Ke(le,Ld(B)),Ca(le,Ld(B)),Xn(le.name,64)),le}function Tn(B){return Fl(B)&&!B.name&&Ne(B)}function jt(B){const le=nl(B);return Fl(le)&&!le.name&&!a1(!1,le)}function Kn(B){return t.updateForStatement(B,Ue(B.initializer,H,Pf),Ue(B.condition,Z,nt),Ue(B.incrementor,H,nt),U_(B.statement,Z,e))}function br(B){return pn(B,H,e)}function fi(B,le){if(Y0(B)){const W=ut(B.left),ge=Ue(B.right,Z,nt);return t.updateBinaryExpression(B,W,B.operatorToken,ge)}if(Kl(B)){if(Pu(B,Tn))return B=Lu(e,B,jt(B.right)),pn(B,Z,e);if(nu(B.left)&&g&&m){let W=No(B.left)?Ue(B.left.argumentExpression,Z,nt):we(B.left.name)?t.createStringLiteralFromNode(B.left.name):void 0;if(W){let ge=Ue(B.right,Z,nt);if(S8(B.operatorToken.kind)){let ye=W;Ud(W)||(ye=t.createTempVariable(o),W=t.createAssignment(ye,W));const Oe=t.createReflectGetCall(m,ye,g);or(Oe,B.left),Ke(Oe,B.left),ge=t.createBinaryExpression(Oe,k8(B.operatorToken.kind),ge),Ke(ge,B)}const F=le?void 0:t.createTempVariable(o);return F&&(ge=t.createAssignment(F,ge),Ke(F,B)),ge=t.createReflectSetCall(m,W,ge,g),or(ge,B),Ke(ge,B),F&&(ge=t.createComma(ge,F),Ke(ge,B)),ge}}}if(B.operatorToken.kind===28){const W=Ue(B.left,H,nt),ge=Ue(B.right,le?H:Z,nt);return t.updateBinaryExpression(B,W,B.operatorToken,ge)}return pn(B,Z,e)}function Si(B,le){if(B.operator===46||B.operator===47){const W=uo(B.operand);if(nu(W)&&g&&m){let ge=No(W)?Ue(W.argumentExpression,Z,nt):we(W.name)?t.createStringLiteralFromNode(W.name):void 0;if(ge){let F=ge;Ud(ge)||(F=t.createTempVariable(o),ge=t.createAssignment(F,ge));let ye=t.createReflectGetCall(m,F,g);or(ye,B),Ke(ye,B);const Oe=le?void 0:t.createTempVariable(o);return ye=wF(t,B,ye,o,Oe),ye=t.createReflectSetCall(m,ge,ye,g),or(ye,B),Ke(ye,B),Oe&&(ye=t.createComma(ye,Oe),Ke(ye,B)),ye}}}return pn(B,Z,e)}function Nr(B,le){const W=le?YA(B.elements,H):YA(B.elements,Z,H);return t.updateCommaListExpression(B,W)}function pt(B){if(Od(B)||Ei(B)){const ye=t.createStringLiteralFromNode(B),Oe=Ue(B,Z,Jc);return{referencedName:ye,name:Oe}}if(Od(B.expression)&&!we(B.expression)){const ye=t.createStringLiteralFromNode(B.expression),Oe=Ue(B,Z,Jc);return{referencedName:ye,name:Oe}}const le=t.getGeneratedNameForNode(B);o(le);const W=r().createPropKeyHelper(Ue(B.expression,Z,nt)),ge=t.createAssignment(le,W),F=t.updateComputedPropertyName(B,ae(ge));return{referencedName:le,name:F}}function ur(B){return Ga(B)?yn(B):Ue(B,Z,Jc)}function yn(B){let le=Ue(B.expression,Z,nt);return Ud(le)||(le=ae(le)),t.updateComputedPropertyName(B,le)}function Ct(B){return Pu(B,Tn)&&(B=Lu(e,B,jt(B.initializer))),pn(B,Z,e)}function cn(B){return Pu(B,Tn)&&(B=Lu(e,B,jt(B.initializer))),pn(B,Z,e)}function In(B){return Pu(B,Tn)&&(B=Lu(e,B,jt(B.initializer))),pn(B,Z,e)}function xr(B){if(ha(B)||u_(B))return ut(B);if(nu(B)&&g&&m){const le=No(B)?Ue(B.argumentExpression,Z,nt):we(B.name)?t.createStringLiteralFromNode(B.name):void 0;if(le){const W=t.createTempVariable(void 0),ge=t.createAssignmentTargetWrapper(W,t.createReflectSetCall(m,le,W,g));return or(ge,B),Ke(ge,B),ge}}return pn(B,Z,e)}function wi(B){if(Kl(B,!0)){Pu(B,Tn)&&(B=Lu(e,B,jt(B.right)));const le=xr(B.left),W=Ue(B.right,Z,nt);return t.updateBinaryExpression(B,le,B.operatorToken,W)}else return xr(B)}function Zt(B){if(pu(B.expression)){const le=xr(B.expression);return t.updateSpreadElement(B,le)}return pn(B,Z,e)}function Gt(B){return E.assertNode(B,kw),Bd(B)?Zt(B):pl(B)?pn(B,Z,e):wi(B)}function xn(B){const le=Ue(B.name,Z,Jc);if(Kl(B.initializer,!0)){const W=wi(B.initializer);return t.updatePropertyAssignment(B,le,W)}if(pu(B.initializer)){const W=xr(B.initializer);return t.updatePropertyAssignment(B,le,W)}return pn(B,Z,e)}function Gr(B){return Pu(B,Tn)&&(B=Lu(e,B,jt(B.objectAssignmentInitializer))),pn(B,Z,e)}function Er(B){if(pu(B.expression)){const le=xr(B.expression);return t.updateSpreadAssignment(B,le)}return pn(B,Z,e)}function ze(B){return E.assertNode(B,Sw),ih(B)?Er(B):nf(B)?Gr(B):Dc(B)?xn(B):pn(B,Z,e)}function ut(B){if(u_(B)){const le=An(B.elements,Gt,nt);return t.updateArrayLiteralExpression(B,le)}else{const le=An(B.properties,ze,q0);return t.updateObjectLiteralExpression(B,le)}}function kt(B){return Pu(B,Tn)&&(B=Lu(e,B,jt(B.expression))),pn(B,Z,e)}function st(B,le){const W=le?H:Z,ge=Ue(B.expression,W,nt);return t.updateParenthesizedExpression(B,ge)}function Ut(B,le){const W=le?H:Z,ge=Ue(B.expression,W,nt);return t.updatePartiallyEmittedExpression(B,ge)}function ae(B){return dt(y)&&(hu(B)?(y.push(B.expression),B=t.updateParenthesizedExpression(B,t.inlineExpressions(y))):(y.push(B),B=t.inlineExpressions(y)),y=void 0),B}function Me(B){if(!B)return;const le=[];return Lr(le,an(B.decorators,ke)),le}function ke(B){const le=Ue(B.expression,Z,nt);Xn(le,3072);const W=nl(le);if(Mo(W)){const{target:ge,thisArg:F}=t.createCallBinding(le,o,l,!0);return t.restoreOuterExpressions(le,t.createFunctionBindCall(ge,F,[]))}return le}function ft(B,le,W,ge,F,ye,Oe){const We=t.createFunctionExpression(W,ge,void 0,void 0,ye,void 0,Oe!=null?Oe:t.createBlock([]));or(We,B),Ca(We,K0(B)),Xn(We,3072);const Tt=F==="get"||F==="set"?F:void 0,Ot=t.createStringLiteralFromNode(le,void 0),on=r().createSetFunctionNameHelper(We,Ot,Tt),Sn=t.createPropertyAssignment(t.createIdentifier(F),on);return or(Sn,B),Ca(Sn,K0(B)),Xn(Sn,3072),Sn}function K(B,le){return t.createObjectLiteralExpression([ft(B,B.name,le,B.asteriskToken,"value",An(B.parameters,Z,ns),Ue(B.body,Z,hs))])}function $e(B,le){return t.createObjectLiteralExpression([ft(B,B.name,le,void 0,"get",[],Ue(B.body,Z,hs))])}function Ae(B,le){return t.createObjectLiteralExpression([ft(B,B.name,le,void 0,"set",An(B.parameters,Z,ns),Ue(B.body,Z,hs))])}function yt(B,le){return t.createObjectLiteralExpression([ft(B,B.name,le,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)))])),ft(B,B.name,le,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)),t.createIdentifier("value")))]))])}function _t(B,le,W){return B=An(B,ge=>sS(ge)?ge:void 0,Zs),t.createGetAccessorDeclaration(B,le,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(W,t.createIdentifier("value")))]))}function Jt(B,le,W){return B=An(B,ge=>sS(ge)?ge:void 0,Zs),t.createGetAccessorDeclaration(B,le,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(W,t.createIdentifier("get")),t.createThis(),[]))]))}function Ln(B,le,W){return B=An(B,ge=>sS(ge)?ge:void 0,Zs),t.createSetAccessorDeclaration(B,le,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(W,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Pt(B,le){const W=t.createVariableDeclaration(B,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[le?z(le):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([W],2))}function hi(B,le){const W=t.createObjectDefinePropertyCall(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:le},!0));return Xn(t.createIfStatement(le,t.createExpressionStatement(W)),1)}function z(B){return t.createBinaryExpression(t.createElementAccessExpression(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var QIe=Bt({"src/compiler/transformers/esDecorators.ts"(){Os()}});function age(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),f=Oa(u);let g,m=0,y,x,k;const C=[];let N=0;const D=e.onEmitNode,M=e.onSubstituteNode;return e.onEmitNode=_r,e.onSubstituteNode=Tn,Np(e,V);function V(pt){if(pt.isDeclarationFile)return pt;U(1,!1),U(2,!OW(pt,u));const ur=pn(pt,oe,e);return Yg(ur,e.readEmitHelpers()),ur}function U(pt,ur){N=ur?N|pt:N&~pt}function Y(pt){return(N&pt)!==0}function j(){return!Y(1)}function ee(){return Y(2)}function R(pt,ur,yn){const Ct=pt&~N;if(Ct){U(Ct,!0);const cn=ur(yn);return U(Ct,!1),cn}return ur(yn)}function Z(pt){return pn(pt,oe,e)}function oe(pt){if((pt.transformFlags&256)===0)return pt;switch(pt.kind){case 134:return;case 223:return fe(pt);case 174:return R(3,Ne,pt);case 262:return R(3,ve,pt);case 218:return R(3,be,pt);case 219:return R(1,xe,pt);case 211:return x&&kr(pt)&&pt.expression.kind===108&&x.add(pt.name.escapedText),pn(pt,oe,e);case 212:return x&&pt.expression.kind===108&&(k=!0),pn(pt,oe,e);case 177:return R(3,De,pt);case 178:return R(3,Xe,pt);case 176:return R(3,G,pt);case 263:case 231:return R(3,Z,pt);default:return pn(pt,oe,e)}}function _e(pt){if(l_e(pt))switch(pt.kind){case 243:return H(pt);case 248:return ue(pt);case 249:return Q(pt);case 250:return re(pt);case 299:return X(pt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return pn(pt,_e,e);default:return E.assertNever(pt,"Unhandled node.")}return oe(pt)}function X(pt){const ur=new Set;rt(pt.variableDeclaration,ur);let yn;if(ur.forEach((Ct,cn)=>{y.has(cn)&&(yn||(yn=new Set(y)),yn.delete(cn))}),yn){const Ct=y;y=yn;const cn=pn(pt,_e,e);return y=Ct,cn}else return pn(pt,_e,e)}function H(pt){if(ct(pt.declarationList)){const ur=pe(pt.declarationList,!1);return ur?t.createExpressionStatement(ur):void 0}return pn(pt,oe,e)}function Q(pt){return t.updateForInStatement(pt,ct(pt.initializer)?pe(pt.initializer,!0):E.checkDefined(Ue(pt.initializer,oe,Pf)),E.checkDefined(Ue(pt.expression,oe,nt)),U_(pt.statement,_e,e))}function re(pt){return t.updateForOfStatement(pt,Ue(pt.awaitModifier,oe,$H),ct(pt.initializer)?pe(pt.initializer,!0):E.checkDefined(Ue(pt.initializer,oe,Pf)),E.checkDefined(Ue(pt.expression,oe,nt)),U_(pt.statement,_e,e))}function ue(pt){const ur=pt.initializer;return t.updateForStatement(pt,ct(ur)?pe(ur,!1):Ue(pt.initializer,oe,Pf),Ue(pt.condition,oe,nt),Ue(pt.incrementor,oe,nt),U_(pt.statement,_e,e))}function fe(pt){return j()?pn(pt,oe,e):or(Ke(t.createYieldExpression(void 0,Ue(pt.expression,oe,nt)),pt),pt)}function G(pt){return t.updateConstructorDeclaration(pt,An(pt.modifiers,oe,Zs),Pc(pt.parameters,oe,e),Je(pt))}function Ne(pt){return t.updateMethodDeclaration(pt,An(pt.modifiers,oe,wo),pt.asteriskToken,pt.name,void 0,void 0,Pc(pt.parameters,oe,e),void 0,Il(pt)&2?at(pt):Je(pt))}function De(pt){return t.updateGetAccessorDeclaration(pt,An(pt.modifiers,oe,wo),pt.name,Pc(pt.parameters,oe,e),void 0,Je(pt))}function Xe(pt){return t.updateSetAccessorDeclaration(pt,An(pt.modifiers,oe,wo),pt.name,Pc(pt.parameters,oe,e),Je(pt))}function ve(pt){return t.updateFunctionDeclaration(pt,An(pt.modifiers,oe,wo),pt.asteriskToken,pt.name,void 0,Pc(pt.parameters,oe,e),void 0,Il(pt)&2?at(pt):hf(pt.body,oe,e))}function be(pt){return t.updateFunctionExpression(pt,An(pt.modifiers,oe,Zs),pt.asteriskToken,pt.name,void 0,Pc(pt.parameters,oe,e),void 0,Il(pt)&2?at(pt):hf(pt.body,oe,e))}function xe(pt){return t.updateArrowFunction(pt,An(pt.modifiers,oe,Zs),void 0,Pc(pt.parameters,oe,e),void 0,pt.equalsGreaterThanToken,Il(pt)&2?at(pt):hf(pt.body,oe,e))}function rt({name:pt},ur){if(we(pt))ur.add(pt.escapedText);else for(const yn of pt.elements)pl(yn)||rt(yn,ur)}function ct(pt){return!!pt&&dl(pt)&&!(pt.flags&7)&&pt.declarations.some(mt)}function pe(pt,ur){Pe(pt);const yn=C3(pt);return yn.length===0?ur?Ue(t.converters.convertToAssignmentElementTarget(pt.declarations[0].name),oe,nt):void 0:t.inlineExpressions(an(yn,tt))}function Pe(pt){mn(pt.declarations,Ge)}function Ge({name:pt}){if(we(pt))o(pt);else for(const ur of pt.elements)pl(ur)||Ge(ur)}function tt(pt){const ur=Ca(t.createAssignment(t.converters.convertToAssignmentElementTarget(pt.name),pt.initializer),pt);return E.checkDefined(Ue(ur,oe,nt))}function mt({name:pt}){if(we(pt))return y.has(pt.escapedText);for(const ur of pt.elements)if(!pl(ur)&&mt(ur))return!0;return!1}function Je(pt){E.assertIsDefined(pt.body);const ur=x,yn=k;x=new Set,k=!1;let Ct=hf(pt.body,oe,e);const cn=Ko(pt,Eo);if(f>=2&&l.getNodeCheckFlags(pt)&384&&(Il(cn)&3)!==3){if(bt(),x.size){const xr=IL(t,l,pt,x);C[Ba(xr)]=!0;const wi=Ct.statements.slice();dm(wi,[xr]),Ct=t.updateBlock(Ct,wi)}k&&(l.getNodeCheckFlags(pt)&256?eS(Ct,eA):l.getNodeCheckFlags(pt)&128&&eS(Ct,KD))}return x=ur,k=yn,Ct}function at(pt){i();const yn=Ko(pt,ks).type,Ct=f<2?It(yn):void 0,cn=pt.kind===219,In=(l.getNodeCheckFlags(pt)&512)!==0,xr=y;y=new Set;for(const xn of pt.parameters)rt(xn,y);const wi=x,Zt=k;cn||(x=new Set,k=!1);let Gt;if(cn){const xn=r().createAwaiterHelper(ee(),In,Ct,zt(pt.body)),Gr=a();if(dt(Gr)){const Er=t.converters.convertToFunctionBlock(xn);Gt=t.updateBlock(Er,Ke(t.createNodeArray(Ki(Gr,Er.statements)),Er.statements))}else Gt=xn}else{const xn=[],Gr=t.copyPrologue(pt.body.statements,xn,!1,oe);xn.push(t.createReturnStatement(r().createAwaiterHelper(ee(),In,Ct,zt(pt.body,Gr)))),dm(xn,a());const Er=f>=2&&l.getNodeCheckFlags(pt)&384;if(Er&&(bt(),x.size)){const ut=IL(t,l,pt,x);C[Ba(ut)]=!0,dm(xn,[ut])}const ze=t.createBlock(xn,!0);Ke(ze,pt.body),Er&&k&&(l.getNodeCheckFlags(pt)&256?eS(ze,eA):l.getNodeCheckFlags(pt)&128&&eS(ze,KD)),Gt=ze}return y=xr,cn||(x=wi,k=Zt),Gt}function zt(pt,ur){return hs(pt)?t.updateBlock(pt,An(pt.statements,_e,Ii,ur)):t.converters.convertToFunctionBlock(E.checkDefined(Ue(pt,_e,l9)))}function It(pt){const ur=pt&&zw(pt);if(ur&&Xu(ur)){const yn=l.getTypeReferenceSerializationKind(ur);if(yn===1||yn===0)return ur}}function bt(){(g&1)===0&&(g|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function _r(pt,ur,yn){if(g&1&&Si(ur)){const Ct=l.getNodeCheckFlags(ur)&384;if(Ct!==m){const cn=m;m=Ct,D(pt,ur,yn),m=cn;return}}else if(g&&C[Ba(ur)]){const Ct=m;m=0,D(pt,ur,yn),m=Ct;return}D(pt,ur,yn)}function Tn(pt,ur){return ur=M(pt,ur),pt===1&&m?jt(ur):ur}function jt(pt){switch(pt.kind){case 211:return Kn(pt);case 212:return br(pt);case 213:return fi(pt)}return pt}function Kn(pt){return pt.expression.kind===108?Ke(t.createPropertyAccessExpression(t.createUniqueName("_super",48),pt.name),pt):pt}function br(pt){return pt.expression.kind===108?Nr(pt.argumentExpression,pt):pt}function fi(pt){const ur=pt.expression;if(nu(ur)){const yn=kr(ur)?Kn(ur):br(ur);return t.createCallExpression(t.createPropertyAccessExpression(yn,"call"),void 0,[t.createThis(),...pt.arguments])}return pt}function Si(pt){const ur=pt.kind;return ur===263||ur===176||ur===174||ur===177||ur===178}function Nr(pt,ur){return m&256?Ke(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[pt]),"value"),ur):Ke(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[pt]),ur)}}function IL(e,t,r,i){const a=(t.getNodeCheckFlags(r)&256)!==0,o=[];return i.forEach((l,u)=>{const f=Li(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Xn(e.createPropertyAccessExpression(Xn(e.createSuper(),8),f),8)))),a&&g.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(Xn(e.createPropertyAccessExpression(Xn(e.createSuper(),8),f),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(f,e.createObjectLiteralExpression(g)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}var YIe=Bt({"src/compiler/transformers/es2017.ts"(){Os()}});function oge(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),f=Oa(u),g=e.onEmitNode;e.onEmitNode=xn;const m=e.onSubstituteNode;e.onSubstituteNode=Gr;let y=!1,x,k,C,N=0,D=0,M,V,U,Y;const j=[];return Np(e,_e);function ee(ae,Me){return D!==(D&~ae|Me)}function R(ae,Me){const ke=D;return D=(D&~ae|Me)&3,ke}function Z(ae){D=ae}function oe(ae){V=gn(V,t.createVariableDeclaration(ae))}function _e(ae){if(ae.isDeclarationFile)return ae;M=ae;const Me=ct(ae);return Yg(Me,e.readEmitHelpers()),M=void 0,V=void 0,Me}function X(ae){return fe(ae,!1)}function H(ae){return fe(ae,!0)}function Q(ae){if(ae.kind!==134)return ae}function re(ae,Me,ke,ft){if(ee(ke,ft)){const K=R(ke,ft),$e=ae(Me);return Z(K),$e}return ae(Me)}function ue(ae){return pn(ae,X,e)}function fe(ae,Me){if((ae.transformFlags&128)===0)return ae;switch(ae.kind){case 223:return G(ae);case 229:return Ne(ae);case 253:return De(ae);case 256:return Xe(ae);case 210:return be(ae);case 226:return Pe(ae,Me);case 361:return Ge(ae,Me);case 299:return tt(ae);case 243:return mt(ae);case 260:return Je(ae);case 246:case 247:case 249:return re(ue,ae,0,2);case 250:return bt(ae,void 0);case 248:return re(zt,ae,0,2);case 222:return It(ae);case 176:return re(Nr,ae,2,1);case 174:return re(yn,ae,2,1);case 177:return re(pt,ae,2,1);case 178:return re(ur,ae,2,1);case 262:return re(Ct,ae,2,1);case 218:return re(In,ae,2,1);case 219:return re(cn,ae,2,0);case 169:return fi(ae);case 244:return xe(ae);case 217:return rt(ae,Me);case 215:return pe(ae);case 211:return U&&kr(ae)&&ae.expression.kind===108&&U.add(ae.name.escapedText),pn(ae,X,e);case 212:return U&&ae.expression.kind===108&&(Y=!0),pn(ae,X,e);case 263:case 231:return re(ue,ae,2,1);default:return pn(ae,X,e)}}function G(ae){return k&2&&k&1?or(Ke(t.createYieldExpression(void 0,r().createAwaitHelper(Ue(ae.expression,X,nt))),ae),ae):pn(ae,X,e)}function Ne(ae){if(k&2&&k&1){if(ae.asteriskToken){const Me=Ue(E.checkDefined(ae.expression),X,nt);return or(Ke(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(ae,ae.asteriskToken,Ke(r().createAsyncDelegatorHelper(Ke(r().createAsyncValuesHelper(Me),Me)),Me)))),ae),ae)}return or(Ke(t.createYieldExpression(void 0,jt(ae.expression?Ue(ae.expression,X,nt):t.createVoidZero())),ae),ae)}return pn(ae,X,e)}function De(ae){return k&2&&k&1?t.updateReturnStatement(ae,jt(ae.expression?Ue(ae.expression,X,nt):t.createVoidZero())):pn(ae,X,e)}function Xe(ae){if(k&2){const Me=qW(ae);return Me.kind===250&&Me.awaitModifier?bt(Me,ae):t.restoreEnclosingLabel(Ue(Me,X,Ii,t.liftToBlock),ae)}return pn(ae,X,e)}function ve(ae){let Me;const ke=[];for(const ft of ae)if(ft.kind===305){Me&&(ke.push(t.createObjectLiteralExpression(Me)),Me=void 0);const K=ft.expression;ke.push(Ue(K,X,nt))}else Me=gn(Me,ft.kind===303?t.createPropertyAssignment(ft.name,Ue(ft.initializer,X,nt)):Ue(ft,X,q0));return Me&&ke.push(t.createObjectLiteralExpression(Me)),ke}function be(ae){if(ae.transformFlags&65536){const Me=ve(ae.properties);Me.length&&Me[0].kind!==210&&Me.unshift(t.createObjectLiteralExpression());let ke=Me[0];if(Me.length>1){for(let ft=1;ft=2&&l.getNodeCheckFlags(ae)&384;if(Ae){Gt();const _t=IL(t,l,ae,U);j[Ba(_t)]=!0,dm(Me,[_t])}Me.push($e),dm(Me,a());const yt=t.updateBlock(ae.body,Me);return Ae&&Y&&(l.getNodeCheckFlags(ae)&256?eS(yt,eA):l.getNodeCheckFlags(ae)&128&&eS(yt,KD)),U=ft,Y=K,yt}function wi(ae){var $e;i();let Me=0;const ke=[],ft=($e=Ue(ae.body,X,l9))!=null?$e:t.createBlock([]);hs(ft)&&(Me=t.copyPrologue(ft.statements,ke,!1,X)),Lr(ke,Zt(void 0,ae));const K=a();if(Me>0||dt(ke)||dt(K)){const Ae=t.converters.convertToFunctionBlock(ft,!0);return dm(ke,K),Lr(ke,Ae.statements.slice(Me)),t.updateBlock(Ae,Ke(t.createNodeArray(ke),Ae.statements))}return ft}function Zt(ae,Me){let ke=!1;for(const ft of Me.parameters)if(ke){if(Ns(ft.name)){if(ft.name.elements.length>0){const K=S2(ft,X,e,0,t.getGeneratedNameForNode(ft));if(dt(K)){const $e=t.createVariableDeclarationList(K),Ae=t.createVariableStatement(void 0,$e);Xn(Ae,2097152),ae=gn(ae,Ae)}}else if(ft.initializer){const K=t.getGeneratedNameForNode(ft),$e=Ue(ft.initializer,X,nt),Ae=t.createAssignment(K,$e),yt=t.createExpressionStatement(Ae);Xn(yt,2097152),ae=gn(ae,yt)}}else if(ft.initializer){const K=t.cloneNode(ft.name);Ke(K,ft.name),Xn(K,96);const $e=Ue(ft.initializer,X,nt);xm($e,3168);const Ae=t.createAssignment(K,$e);Ke(Ae,ft),Xn(Ae,3072);const yt=t.createBlock([t.createExpressionStatement(Ae)]);Ke(yt,ft),Xn(yt,3905);const _t=t.createTypeCheck(t.cloneNode(ft.name),"undefined"),Jt=t.createIfStatement(_t,yt);O_(Jt),Ke(Jt,ft),Xn(Jt,2101056),ae=gn(ae,Jt)}}else if(ft.transformFlags&65536){ke=!0;const K=S2(ft,X,e,1,t.getGeneratedNameForNode(ft),!1,!0);if(dt(K)){const $e=t.createVariableDeclarationList(K),Ae=t.createVariableStatement(void 0,$e);Xn(Ae,2097152),ae=gn(ae,Ae)}}return ae}function Gt(){(x&1)===0&&(x|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function xn(ae,Me,ke){if(x&1&&st(Me)){const ft=l.getNodeCheckFlags(Me)&384;if(ft!==N){const K=N;N=ft,g(ae,Me,ke),N=K;return}}else if(x&&j[Ba(Me)]){const ft=N;N=0,g(ae,Me,ke),N=ft;return}g(ae,Me,ke)}function Gr(ae,Me){return Me=m(ae,Me),ae===1&&N?Er(Me):Me}function Er(ae){switch(ae.kind){case 211:return ze(ae);case 212:return ut(ae);case 213:return kt(ae)}return ae}function ze(ae){return ae.expression.kind===108?Ke(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ae.name),ae):ae}function ut(ae){return ae.expression.kind===108?Ut(ae.argumentExpression,ae):ae}function kt(ae){const Me=ae.expression;if(nu(Me)){const ke=kr(Me)?ze(Me):ut(Me);return t.createCallExpression(t.createPropertyAccessExpression(ke,"call"),void 0,[t.createThis(),...ae.arguments])}return ae}function st(ae){const Me=ae.kind;return Me===263||Me===176||Me===174||Me===177||Me===178}function Ut(ae,Me){return N&256?Ke(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ae]),"value"),Me):Ke(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ae]),Me)}}var ZIe=Bt({"src/compiler/transformers/es2018.ts"(){Os()}});function cge(e){const t=e.factory;return Np(e,r);function r(o){return o.isDeclarationFile?o:pn(o,i,e)}function i(o){if((o.transformFlags&64)===0)return o;switch(o.kind){case 299:return a(o);default:return pn(o,i,e)}}function a(o){return o.variableDeclaration?pn(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),Ue(o.block,i,hs))}}var KIe=Bt({"src/compiler/transformers/es2019.ts"(){Os()}});function lge(e){const{factory:t,hoistVariableDeclaration:r}=e;return Np(e,i);function i(C){return C.isDeclarationFile?C:pn(C,a,e)}function a(C){if((C.transformFlags&32)===0)return C;switch(C.kind){case 213:{const N=f(C,!1);return E.assertNotNode(N,pS),N}case 211:case 212:if(c_(C)){const N=m(C,!1,!1);return E.assertNotNode(N,pS),N}return pn(C,a,e);case 226:return C.operatorToken.kind===61?x(C):pn(C,a,e);case 220:return k(C);default:return pn(C,a,e)}}function o(C){E.assertNotNode(C,n9);const N=[C];for(;!C.questionDotToken&&!Qb(C);)C=Ms(bp(C.expression),c_),E.assertNotNode(C,n9),N.unshift(C);return{expression:C.expression,chain:N}}function l(C,N,D){const M=g(C.expression,N,D);return pS(M)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(C,M.expression),M.thisArg):t.updateParenthesizedExpression(C,M)}function u(C,N,D){if(c_(C))return m(C,N,D);let M=Ue(C.expression,a,nt);E.assertNotNode(M,pS);let V;return N&&(x2(M)?V=M:(V=t.createTempVariable(r),M=t.createAssignment(V,M))),M=C.kind===211?t.updatePropertyAccessExpression(C,M,Ue(C.name,a,we)):t.updateElementAccessExpression(C,M,Ue(C.argumentExpression,a,nt)),V?t.createSyntheticReferenceExpression(M,V):M}function f(C,N){if(c_(C))return m(C,N,!1);if(hu(C.expression)&&c_(uo(C.expression))){const D=l(C.expression,!0,!1),M=An(C.arguments,a,nt);return pS(D)?Ke(t.createFunctionCallCall(D.expression,D.thisArg,M),C):t.updateCallExpression(C,D,void 0,M)}return pn(C,a,e)}function g(C,N,D){switch(C.kind){case 217:return l(C,N,D);case 211:case 212:return u(C,N,D);case 213:return f(C,N);default:return Ue(C,a,nt)}}function m(C,N,D){const{expression:M,chain:V}=o(C),U=g(bp(M),Eb(V[0]),!1);let Y=pS(U)?U.thisArg:void 0,j=pS(U)?U.expression:U,ee=t.restoreOuterExpressions(M,j,8);x2(j)||(j=t.createTempVariable(r),ee=t.createAssignment(j,ee));let R=j,Z;for(let _e=0;_efe&&Lr(G,An(re.statements,y,Ii,fe,Ne-fe));break}Ne++}E.assert(NeD(G,fe))))],fe,ue===2)}return pn(re,y,e)}function V(re,ue,fe,G,Ne){var be;const De=[];for(let xe=ue;xet&&(t=i)}return t}function r9e(e){let t=0;for(const r of e){const i=OL(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var i9e=Bt({"src/compiler/transformers/esnext.ts"(){Os()}});function pge(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let a,o;return Np(e,y);function l(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const pe=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(a.fileName));return o.filenameDeclaration=pe,o.filenameDeclaration.name}function u(pe){return i.jsx===5?"jsxDEV":pe?"jsxs":"jsx"}function f(pe){const Pe=u(pe);return m(Pe)}function g(){return m("Fragment")}function m(pe){var Pe,Ge;const tt=pe==="createElement"?o.importSpecifier:vO(o.importSpecifier,i),mt=(Ge=(Pe=o.utilizedImplicitRuntimeImports)==null?void 0:Pe.get(tt))==null?void 0:Ge.get(pe);if(mt)return mt.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let Je=o.utilizedImplicitRuntimeImports.get(tt);Je||(Je=new Map,o.utilizedImplicitRuntimeImports.set(tt,Je));const at=t.createUniqueName(`_${pe}`,112),zt=t.createImportSpecifier(!1,t.createIdentifier(pe),at);return pfe(at,zt),Je.set(pe,zt),at}function y(pe){if(pe.isDeclarationFile)return pe;a=pe,o={},o.importSpecifier=yO(i,pe);let Pe=pn(pe,x,e);Yg(Pe,e.readEmitHelpers());let Ge=Pe.statements;if(o.filenameDeclaration&&(Ge=Ob(Ge.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports){for(const[tt,mt]of ia(o.utilizedImplicitRuntimeImports.entries()))if(zc(pe)){const Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(ia(mt.values()))),t.createStringLiteral(tt),void 0);l1(Je,!1),Ge=Ob(Ge.slice(),Je)}else if(Yu(pe)){const Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(ia(mt.values(),at=>t.createBindingElement(void 0,at.propertyName,at.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(tt)]))],2));l1(Je,!1),Ge=Ob(Ge.slice(),Je)}}return Ge!==Pe.statements&&(Pe=t.updateSourceFile(Pe,Ge)),o=void 0,Pe}function x(pe){return pe.transformFlags&2?k(pe):pe}function k(pe){switch(pe.kind){case 284:return V(pe,!1);case 285:return U(pe,!1);case 288:return Y(pe,!1);case 294:return ct(pe);default:return pn(pe,x,e)}}function C(pe){switch(pe.kind){case 12:return Ne(pe);case 294:return ct(pe);case 284:return V(pe,!0);case 285:return U(pe,!0);case 288:return Y(pe,!0);default:return E.failBadSyntaxKind(pe)}}function N(pe){return pe.properties.some(Pe=>Dc(Pe)&&(we(Pe.name)&&lr(Pe.name)==="__proto__"||pa(Pe.name)&&Pe.name.text==="__proto__"))}function D(pe){let Pe=!1;for(const Ge of pe.attributes.properties)if(mS(Ge)&&(!ha(Ge.expression)||Ge.expression.properties.some(ih)))Pe=!0;else if(Pe&&zd(Ge)&&we(Ge.name)&&Ge.name.escapedText==="key")return!0;return!1}function M(pe){return o.importSpecifier===void 0||D(pe)}function V(pe,Pe){return(M(pe.openingElement)?oe:R)(pe.openingElement,pe.children,Pe,pe)}function U(pe,Pe){return(M(pe)?oe:R)(pe,void 0,Pe,pe)}function Y(pe,Pe){return(o.importSpecifier===void 0?X:_e)(pe.openingFragment,pe.children,Pe,pe)}function j(pe){const Pe=ee(pe);return Pe&&t.createObjectLiteralExpression([Pe])}function ee(pe){const Pe=m3(pe);if(Pn(Pe)===1&&!Pe[0].dotDotDotToken){const tt=C(Pe[0]);return tt&&t.createPropertyAssignment("children",tt)}const Ge=qi(pe,C);return Pn(Ge)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(Ge)):void 0}function R(pe,Pe,Ge,tt){const mt=xe(pe),Je=Pe&&Pe.length?ee(Pe):void 0,at=Fr(pe.attributes.properties,bt=>!!bt.name&&we(bt.name)&&bt.name.escapedText==="key"),zt=at?Vr(pe.attributes.properties,bt=>bt!==at):pe.attributes.properties,It=Pn(zt)?Q(zt,Je):t.createObjectLiteralExpression(Je?[Je]:Ve);return Z(mt,It,at,Pe||Ve,Ge,tt)}function Z(pe,Pe,Ge,tt,mt,Je){var at;const zt=m3(tt),It=Pn(zt)>1||!!((at=zt[0])!=null&&at.dotDotDotToken),bt=[pe,Pe];if(Ge&&bt.push(G(Ge.initializer)),i.jsx===5){const Tn=Ko(a);if(Tn&&Ri(Tn)){Ge===void 0&&bt.push(t.createVoidZero()),bt.push(It?t.createTrue():t.createFalse());const jt=vo(Tn,Je.pos);bt.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(jt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(jt.character+1))])),bt.push(t.createThis())}}const _r=Ke(t.createCallExpression(f(It),void 0,bt),Je);return mt&&O_(_r),_r}function oe(pe,Pe,Ge,tt){const mt=xe(pe),Je=pe.attributes.properties,at=Pn(Je)?Q(Je):t.createNull(),zt=o.importSpecifier===void 0?pG(t,e.getEmitResolver().getJsxFactoryEntity(a),i.reactNamespace,pe):m("createElement"),It=Wfe(t,zt,mt,at,qi(Pe,C),tt);return Ge&&O_(It),It}function _e(pe,Pe,Ge,tt){let mt;if(Pe&&Pe.length){const Je=j(Pe);Je&&(mt=Je)}return Z(g(),mt||t.createObjectLiteralExpression([]),void 0,Pe,Ge,tt)}function X(pe,Pe,Ge,tt){const mt=qfe(t,e.getEmitResolver().getJsxFactoryEntity(a),e.getEmitResolver().getJsxFragmentFactoryEntity(a),i.reactNamespace,qi(Pe,C),pe,tt);return Ge&&O_(mt),mt}function H(pe){return ha(pe.expression)&&!N(pe.expression)?pe.expression.properties:t.createSpreadAssignment(E.checkDefined(Ue(pe.expression,x,nt)))}function Q(pe,Pe){const Ge=Oa(i);return Ge&&Ge>=5?t.createObjectLiteralExpression(re(pe,Pe)):ue(pe,Pe)}function re(pe,Pe){const Ge=vp(iV(pe,mS,(tt,mt)=>vp(an(tt,Je=>mt?H(Je):fe(Je)))));return Pe&&Ge.push(Pe),Ge}function ue(pe,Pe){const Ge=[];let tt=[];for(const Je of pe){if(mS(Je)){if(ha(Je.expression)&&!N(Je.expression)){for(const at of Je.expression.properties){if(ih(at)){mt(),Ge.push(E.checkDefined(Ue(at.expression,x,nt)));continue}tt.push(E.checkDefined(Ue(at,x)))}continue}mt(),Ge.push(E.checkDefined(Ue(Je.expression,x,nt)));continue}tt.push(fe(Je))}return Pe&&tt.push(Pe),mt(),Ge.length&&!ha(Ge[0])&&Ge.unshift(t.createObjectLiteralExpression()),om(Ge)||r().createAssignHelper(Ge);function mt(){tt.length&&(Ge.push(t.createObjectLiteralExpression(tt)),tt=[])}}function fe(pe){const Pe=rt(pe),Ge=G(pe.initializer);return t.createPropertyAssignment(Pe,Ge)}function G(pe){if(pe===void 0)return t.createTrue();if(pe.kind===11){const Pe=pe.singleQuote!==void 0?pe.singleQuote:!z9(pe,a),Ge=t.createStringLiteral(be(pe.text)||pe.text,Pe);return Ke(Ge,pe)}return pe.kind===294?pe.expression===void 0?t.createTrue():E.checkDefined(Ue(pe.expression,x,nt)):cg(pe)?V(pe,!1):eT(pe)?U(pe,!1):g2(pe)?Y(pe,!1):E.failBadSyntaxKind(pe)}function Ne(pe){const Pe=De(pe.text);return Pe===void 0?void 0:t.createStringLiteral(Pe)}function De(pe){let Pe,Ge=0,tt=-1;for(let mt=0;mt{if(Je)return Xk(parseInt(Je,10));if(at)return Xk(parseInt(at,16));{const It=dge.get(zt);return It?Xk(It):Pe}})}function be(pe){const Pe=ve(pe);return Pe===pe?void 0:Pe}function xe(pe){if(pe.kind===284)return xe(pe.openingElement);{const Pe=pe.tagName;return we(Pe)&&A6(Pe.escapedText)?t.createStringLiteral(lr(Pe)):Vd(Pe)?t.createStringLiteral(lr(Pe.namespace)+":"+lr(Pe.name)):fA(t,Pe)}}function rt(pe){const Pe=pe.name;if(we(Pe)){const Ge=lr(Pe);return/^[A-Za-z_]\w*$/.test(Ge)?Pe:t.createStringLiteral(Ge)}return t.createStringLiteral(lr(Pe.namespace)+":"+lr(Pe.name))}function ct(pe){const Pe=Ue(pe.expression,x,nt);return pe.dotDotDotToken?t.createSpreadElement(Pe):Pe}}var dge,s9e=Bt({"src/compiler/transformers/jsx.ts"(){Os(),dge=new Map(Object.entries({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}))}});function mge(e){const{factory:t,hoistVariableDeclaration:r}=e;return Np(e,i);function i(f){return f.isDeclarationFile?f:pn(f,a,e)}function a(f){if((f.transformFlags&512)===0)return f;switch(f.kind){case 226:return o(f);default:return pn(f,a,e)}}function o(f){switch(f.operatorToken.kind){case 68:return l(f);case 43:return u(f);default:return pn(f,a,e)}}function l(f){let g,m;const y=Ue(f.left,a,nt),x=Ue(f.right,a,nt);if(No(y)){const k=t.createTempVariable(r),C=t.createTempVariable(r);g=Ke(t.createElementAccessExpression(Ke(t.createAssignment(k,y.expression),y.expression),Ke(t.createAssignment(C,y.argumentExpression),y.argumentExpression)),y),m=Ke(t.createElementAccessExpression(k,C),y)}else if(kr(y)){const k=t.createTempVariable(r);g=Ke(t.createPropertyAccessExpression(Ke(t.createAssignment(k,y.expression),y.expression),y.name),y),m=Ke(t.createPropertyAccessExpression(k,y.name),y)}else g=y,m=y;return Ke(t.createAssignment(g,Ke(t.createGlobalMethodCall("Math","pow",[m,x]),f)),f)}function u(f){const g=Ue(f.left,a,nt),m=Ue(f.right,a,nt);return Ke(t.createGlobalMethodCall("Math","pow",[g,m]),f)}}var a9e=Bt({"src/compiler/transformers/es2016.ts"(){Os()}});function gge(e,t){return{kind:e,expression:t}}function hge(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:a,endLexicalEnvironment:o,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),f=e.getEmitResolver(),g=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=nc,e.onSubstituteNode=zo;let y,x,k,C;function N(se){C=gn(C,t.createVariableDeclaration(se))}let D,M;return Np(e,V);function V(se){if(se.isDeclarationFile)return se;y=se,x=se.text;const qe=Q(se);return Yg(qe,e.readEmitHelpers()),y=void 0,x=void 0,C=void 0,k=0,qe}function U(se,qe){const gt=k;return k=(k&~se|qe)&32767,gt}function Y(se,qe,gt){k=(k&~qe|gt)&-32768|se}function j(se){return(k&8192)!==0&&se.kind===253&&!se.expression}function ee(se){return se.transformFlags&4194304&&(nd(se)||Zb(se)||Ife(se)||oA(se)||a8(se)||e4(se)||lA(se)||d2(se)||Ny(se)||p2(se)||t1(se,!1)||hs(se))}function R(se){return(se.transformFlags&1024)!==0||D!==void 0||k&8192&&ee(se)||t1(se,!1)&&ar(se)||(Tp(se)&1)!==0}function Z(se){return R(se)?H(se,!1):se}function oe(se){return R(se)?H(se,!0):se}function _e(se){if(R(se)){const qe=Ko(se);if(Is(qe)&&$c(qe)){const gt=U(32670,16449),Et=H(se,!1);return Y(gt,98304,0),Et}return H(se,!1)}return se}function X(se){return se.kind===108?gc(!0):Z(se)}function H(se,qe){switch(se.kind){case 126:return;case 263:return be(se);case 231:return xe(se);case 169:return Tn(se);case 262:return Gr(se);case 219:return Gt(se);case 218:return xn(se);case 260:return yt(se);case 80:return Xe(se);case 261:return ft(se);case 255:return re(se);case 269:return ue(se);case 241:return ut(se,!1);case 252:case 251:return ve(se);case 256:return Ln(se);case 246:case 247:return z(se,void 0);case 248:return B(se,void 0);case 249:return W(se,void 0);case 250:return ge(se,void 0);case 244:return kt(se);case 210:return Tt(se);case 299:return mo(se);case 304:return mc(se);case 167:return h_(se);case 209:return W_(se);case 213:return bo(se);case 214:return Re(se);case 217:return st(se,qe);case 226:return Ut(se,qe);case 361:return ae(se,qe);case 15:case 16:case 17:case 18:return Ur(se);case 11:return Ma(se);case 9:return io(se);case 215:return ac(se);case 228:return Oc(se);case 229:return M_(se);case 230:return oi(se);case 108:return gc(!1);case 110:return Ne(se);case 236:return Ka(se);case 174:return La(se);case 177:case 178:return qt(se);case 243:return ke(se);case 253:return G(se);case 222:return De(se);default:return pn(se,Z,e)}}function Q(se){const qe=U(8064,64),gt=[],Et=[];i();const Qt=t.copyPrologue(se.statements,gt,!1,Z);return Lr(Et,An(se.statements,Z,Ii,Qt)),C&&Et.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(C))),t.mergeLexicalEnvironment(gt,o()),pt(gt,se),Y(qe,0,0),t.updateSourceFile(se,Ke(t.createNodeArray(Ki(gt,Et)),se.statements))}function re(se){if(D!==void 0){const qe=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;const gt=pn(se,Z,e);return D.allowedNonLabeledJumps=qe,gt}return pn(se,Z,e)}function ue(se){const qe=U(7104,0),gt=pn(se,Z,e);return Y(qe,0,0),gt}function fe(se){return or(t.createReturnStatement(t.createUniqueName("_this",48)),se)}function G(se){return D?(D.nonLocalJumps|=8,j(se)&&(se=fe(se)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),se.expression?E.checkDefined(Ue(se.expression,Z,nt)):t.createVoidZero())]))):j(se)?fe(se):pn(se,Z,e)}function Ne(se){return k&2&&!(k&16384)&&(k|=65536),D?k&2?(D.containsLexicalThis=!0,se):D.thisName||(D.thisName=t.createUniqueName("this")):se}function De(se){return pn(se,oe,e)}function Xe(se){return D&&f.isArgumentsLocalBinding(se)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):se.flags&256?or(Ke(t.createIdentifier(Li(se.escapedText)),se),se):se}function ve(se){if(D){const qe=se.kind===252?2:4;if(!(se.label&&D.labels&&D.labels.get(lr(se.label))||!se.label&&D.allowedNonLabeledJumps&qe)){let Et;const Qt=se.label;Qt?se.kind===252?(Et=`break-${Qt.escapedText}`,Oi(D,!0,lr(Qt),Et)):(Et=`continue-${Qt.escapedText}`,Oi(D,!1,lr(Qt),Et)):se.kind===252?(D.nonLocalJumps|=2,Et="break"):(D.nonLocalJumps|=4,Et="continue");let Fn=t.createStringLiteral(Et);if(D.loopOutParameters.length){const Cr=D.loopOutParameters;let qr;for(let li=0;li=0?Fo:gt.length;if(ds&&Fo>=0){let Fc=Et;for(;ds&&Fc=0?gt[Fo]:void 0;if(Zc&&d2(Zc)){const Fc=[];va=mt(se,Fc,Zc.tryBlock.statements,0,Qt,Fn+1,Cr,qr,li,ds);const il=t.createNodeArray(Fc);Ke(il,Zc.tryBlock.statements),qe.push(t.updateTryStatement(Zc,t.updateBlock(Zc.tryBlock,Fc),Ue(Zc.catchClause,Z,Ny),Ue(Zc.finallyBlock,Z,hs)))}else{const Fc=Zc&&z$(Zc);let il;if(li?(il=_r(),k|=8192):Fc&&(il=A(Fc),k|=8192),qr||il)if(il&&Fo===gt.length-1&&!(Cr.body.transformFlags&16384)){const Ml=Ms(Ms(il,rr).left,js),sl=t.createReturnStatement(il);return Xc(sl,Rd(Ml)),Xn(Ml,3072),qe.push(sl),!1}else ds?yn(qe,Cr,il||bt()):(yn(se,Cr,bt()),il&&ur(qe,il)),va=!0;else pt(se,Cr)}return Fo>=0&&Lr(qe,An(gt,Z,Ii,Fo+1)),va}function Je(se){return ic(se)&&$i(se.declarationList.declarations,qe=>we(qe.name)&&!qe.initializer)}function at(se){if(!ic(se)||se.declarationList.declarations.length!==1)return!1;const qe=se.declarationList.declarations[0];if(!we(qe.name)||!qe.initializer)return!1;const gt=qe.initializer;if(!ha(gt)||gt.properties.length!==3)return!1;const[Et,Qt,Fn]=gt.properties;return!(!Dc(Et)||!we(Et.name)||lr(Et.name)!=="stack"||!u_(Et.initializer)||!Dc(Qt)||!we(Qt.name)||lr(Qt.name)!=="error"||!Yb(Qt.initializer)||!Ou(Qt.initializer.expression)||!Dc(Fn)||!we(Fn.name)||lr(Fn.name)!=="hasError"||Fn.initializer.kind!==97)}function zt(se,qe,gt,Et){const Qt=!!gt&&nl(gt.expression).kind!==106;if(!se)return tt(qe,Qt);const Fn=[],Cr=[];a();const qr=t.copyStandardPrologue(se.body.statements,Fn,0),li=ZA(se.body.statements,qr);(Et||li.length>0)&&(k|=8192);const ds=mt(Fn,Cr,se.body.statements,qr,li,0,se,Qt,Et,!0);Kn(Fn,se),Nr(Fn,se,Et),Ct(Fn,se),t.mergeLexicalEnvironment(Fn,o()),ds&&!It(se.body)&&Cr.push(t.createReturnStatement(t.createUniqueName("_this",48)));const va=t.createBlock(Ke(t.createNodeArray([...Fn,...Cr]),se.body.statements),!0);return Ke(va,se.body),va}function It(se){if(se.kind===253)return!0;if(se.kind===245){const qe=se;if(qe.elseStatement)return It(qe.thenStatement)&&It(qe.elseStatement)}else if(se.kind===241){const qe=Bo(se.statements);if(qe&&It(qe))return!0}return!1}function bt(){return Xn(t.createThis(),8)}function _r(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(t.createUniqueName("_super",48),t.createNull()),t.createFunctionApplyCall(t.createUniqueName("_super",48),bt(),t.createIdentifier("arguments"))),bt())}function Tn(se){if(!se.dotDotDotToken)return Ns(se.name)?or(Ke(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(se),void 0,void 0,void 0),se),se):se.initializer?or(Ke(t.createParameterDeclaration(void 0,void 0,se.name,void 0,void 0,void 0),se),se):se}function jt(se){return se.initializer!==void 0||Ns(se.name)}function Kn(se,qe){if(!dt(qe.parameters,jt))return!1;let gt=!1;for(const Et of qe.parameters){const{name:Qt,initializer:Fn,dotDotDotToken:Cr}=Et;Cr||(Ns(Qt)?gt=br(se,Et,Qt,Fn)||gt:Fn&&(fi(se,Et,Qt,Fn),gt=!0))}return gt}function br(se,qe,gt,Et){return gt.elements.length>0?(Ob(se,Xn(t.createVariableStatement(void 0,t.createVariableDeclarationList(S2(qe,Z,e,0,t.getGeneratedNameForNode(qe)))),2097152)),!0):Et?(Ob(se,Xn(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(qe),E.checkDefined(Ue(Et,Z,nt)))),2097152)),!0):!1}function fi(se,qe,gt,Et){Et=E.checkDefined(Ue(Et,Z,nt));const Qt=t.createIfStatement(t.createTypeCheck(t.cloneNode(gt),"undefined"),Xn(Ke(t.createBlock([t.createExpressionStatement(Xn(Ke(t.createAssignment(Xn(Ta(Ke(t.cloneNode(gt),gt),gt.parent),96),Xn(Et,96|ma(Et)|3072)),qe),3072))]),qe),3905));O_(Qt),Ke(Qt,qe),Xn(Qt,2101056),Ob(se,Qt)}function Si(se,qe){return!!(se&&se.dotDotDotToken&&!qe)}function Nr(se,qe,gt){const Et=[],Qt=Bo(qe.parameters);if(!Si(Qt,gt))return!1;const Fn=Qt.name.kind===80?Ta(Ke(t.cloneNode(Qt.name),Qt.name),Qt.name.parent):t.createTempVariable(void 0);Xn(Fn,96);const Cr=Qt.name.kind===80?t.cloneNode(Qt.name):Fn,qr=qe.parameters.length-1,li=t.createLoopVariable();Et.push(Xn(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Fn,void 0,void 0,t.createArrayLiteralExpression([]))])),Qt),2097152));const ds=t.createForStatement(Ke(t.createVariableDeclarationList([t.createVariableDeclaration(li,void 0,void 0,t.createNumericLiteral(qr))]),Qt),Ke(t.createLessThan(li,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),Qt),Ke(t.createPostfixIncrement(li),Qt),t.createBlock([O_(Ke(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Cr,qr===0?li:t.createSubtract(li,t.createNumericLiteral(qr))),t.createElementAccessExpression(t.createIdentifier("arguments"),li))),Qt))]));return Xn(ds,2097152),O_(ds),Et.push(ds),Qt.name.kind!==80&&Et.push(Xn(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList(S2(Qt,Z,e,0,Cr))),Qt),2097152)),kW(se,Et),!0}function pt(se,qe){return k&65536&&qe.kind!==219?(yn(se,qe,t.createThis()),!0):!1}function ur(se,qe){Uc();const gt=t.createExpressionStatement(t.createBinaryExpression(t.createThis(),64,qe));se.push(gt),Xc(gt,Ko(qe).parent)}function yn(se,qe,gt){Uc();const Et=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,gt)]));Xn(Et,2100224),Ca(Et,qe),Ob(se,Et)}function Ct(se,qe){if(k&32768){let gt;switch(qe.kind){case 219:return se;case 174:case 177:case 178:gt=t.createVoidZero();break;case 176:gt=t.createPropertyAccessExpression(Xn(t.createThis(),8),"constructor");break;case 262:case 218:gt=t.createConditionalExpression(t.createLogicalAnd(Xn(t.createThis(),8),t.createBinaryExpression(Xn(t.createThis(),8),104,t.getLocalName(qe))),void 0,t.createPropertyAccessExpression(Xn(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return E.failBadSyntaxKind(qe)}const Et=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,gt)]));Xn(Et,2100224),Ob(se,Et)}return se}function cn(se,qe){for(const gt of qe.members)switch(gt.kind){case 240:se.push(In(gt));break;case 174:se.push(xr(Ua(qe,gt),gt,qe));break;case 177:case 178:const Et=Ub(qe.members,gt);gt===Et.firstAccessor&&se.push(wi(Ua(qe,gt),Et,qe));break;case 176:case 175:break;default:E.failBadSyntaxKind(gt,y&&y.fileName);break}}function In(se){return Ke(t.createEmptyStatement(),se)}function xr(se,qe,gt){const Et=Rd(qe),Qt=Cy(qe),Fn=Er(qe,qe,void 0,gt),Cr=Ue(qe.name,Z,Jc);E.assert(Cr);let qr;if(!Ei(Cr)&&AD(e.getCompilerOptions())){const ds=Ga(Cr)?Cr.expression:we(Cr)?t.createStringLiteral(Li(Cr.escapedText)):Cr;qr=t.createObjectDefinePropertyCall(se,ds,t.createPropertyDescriptor({value:Fn,enumerable:!1,writable:!0,configurable:!0}))}else{const ds=rT(t,se,Cr,qe.name);qr=t.createAssignment(ds,Fn)}Xn(Fn,3072),Ca(Fn,Qt);const li=Ke(t.createExpressionStatement(qr),qe);return or(li,qe),Xc(li,Et),Xn(li,96),li}function wi(se,qe,gt){const Et=t.createExpressionStatement(Zt(se,qe,gt,!1));return Xn(Et,3072),Ca(Et,Cy(qe.firstAccessor)),Et}function Zt(se,{firstAccessor:qe,getAccessor:gt,setAccessor:Et},Qt,Fn){const Cr=Ta(Ke(t.cloneNode(se),se),se.parent);Xn(Cr,3136),Ca(Cr,qe.name);const qr=Ue(qe.name,Z,Jc);if(E.assert(qr),Ei(qr))return E.failBadSyntaxKind(qr,"Encountered unhandled private identifier while transforming ES2015.");const li=mG(t,qr);Xn(li,3104),Ca(li,qe.name);const ds=[];if(gt){const Fo=Er(gt,void 0,void 0,Qt);Ca(Fo,Cy(gt)),Xn(Fo,1024);const Ro=t.createPropertyAssignment("get",Fo);Xc(Ro,Rd(gt)),ds.push(Ro)}if(Et){const Fo=Er(Et,void 0,void 0,Qt);Ca(Fo,Cy(Et)),Xn(Fo,1024);const Ro=t.createPropertyAssignment("set",Fo);Xc(Ro,Rd(Et)),ds.push(Ro)}ds.push(t.createPropertyAssignment("enumerable",gt||Et?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const va=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Cr,li,t.createObjectLiteralExpression(ds,!0)]);return Fn&&O_(va),va}function Gt(se){se.transformFlags&16384&&!(k&16384)&&(k|=65536);const qe=D;D=void 0;const gt=U(15232,66),Et=t.createFunctionExpression(void 0,void 0,void 0,void 0,Pc(se.parameters,Z,e),void 0,ze(se));return Ke(Et,se),or(Et,se),Xn(Et,16),Y(gt,0,0),D=qe,Et}function xn(se){const qe=ma(se)&524288?U(32662,69):U(32670,65),gt=D;D=void 0;const Et=Pc(se.parameters,Z,e),Qt=ze(se),Fn=k&32768?t.getLocalName(se):se.name;return Y(qe,98304,0),D=gt,t.updateFunctionExpression(se,void 0,se.asteriskToken,Fn,void 0,Et,void 0,Qt)}function Gr(se){const qe=D;D=void 0;const gt=U(32670,65),Et=Pc(se.parameters,Z,e),Qt=ze(se),Fn=k&32768?t.getLocalName(se):se.name;return Y(gt,98304,0),D=qe,t.updateFunctionDeclaration(se,An(se.modifiers,Z,Zs),se.asteriskToken,Fn,void 0,Et,void 0,Qt)}function Er(se,qe,gt,Et){const Qt=D;D=void 0;const Fn=Et&&ei(Et)&&!Ps(se)?U(32670,73):U(32670,65),Cr=Pc(se.parameters,Z,e),qr=ze(se);return k&32768&&!gt&&(se.kind===262||se.kind===218)&&(gt=t.getGeneratedNameForNode(se)),Y(Fn,98304,0),D=Qt,or(Ke(t.createFunctionExpression(void 0,se.asteriskToken,gt,void 0,Cr,void 0,qr),qe),se)}function ze(se){let qe=!1,gt=!1,Et,Qt;const Fn=[],Cr=[],qr=se.body;let li;if(a(),hs(qr)&&(li=t.copyStandardPrologue(qr.statements,Fn,0,!1),li=t.copyCustomPrologue(qr.statements,Cr,li,Z,E9),li=t.copyCustomPrologue(qr.statements,Cr,li,Z,w9)),qe=Kn(Cr,se)||qe,qe=Nr(Cr,se,!1)||qe,hs(qr))li=t.copyCustomPrologue(qr.statements,Cr,li,Z),Et=qr.statements,Lr(Cr,An(qr.statements,Z,Ii,li)),!qe&&qr.multiLine&&(qe=!0);else{E.assert(se.kind===219),Et=sO(qr,-1);const va=se.equalsGreaterThanToken;!Do(va)&&!Do(qr)&&(kD(va,qr,y)?gt=!0:qe=!0);const Fo=Ue(qr,Z,nt),Ro=t.createReturnStatement(Fo);Ke(Ro,qr),ofe(Ro,qr),Xn(Ro,2880),Cr.push(Ro),Qt=qr}if(t.mergeLexicalEnvironment(Fn,o()),Ct(Fn,se),pt(Fn,se),dt(Fn)&&(qe=!0),Cr.unshift(...Fn),hs(qr)&&kd(Cr,qr.statements))return qr;const ds=t.createBlock(Ke(t.createNodeArray(Cr),Et),qe);return Ke(ds,se.body),!qe&>&&Xn(ds,1),Qt&&afe(ds,20,Qt),or(ds,se.body),ds}function ut(se,qe){if(qe)return pn(se,Z,e);const gt=k&256?U(7104,512):U(6976,128),Et=pn(se,Z,e);return Y(gt,0,0),Et}function kt(se){return pn(se,oe,e)}function st(se,qe){return pn(se,qe?oe:Z,e)}function Ut(se,qe){return Y0(se)?_T(se,Z,e,0,!qe):se.operatorToken.kind===28?t.updateBinaryExpression(se,E.checkDefined(Ue(se.left,oe,nt)),se.operatorToken,E.checkDefined(Ue(se.right,qe?oe:Z,nt))):pn(se,Z,e)}function ae(se,qe){if(qe)return pn(se,oe,e);let gt;for(let Qt=0;Qtli.name)),qr=Et?t.createYieldExpression(t.createToken(42),Xn(Cr,8388608)):Cr;if(Fn)Qt.push(t.createExpressionStatement(qr)),Ja(qe.loopOutParameters,1,0,Qt);else{const li=t.createUniqueName("state"),ds=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(li,void 0,void 0,qr)]));if(Qt.push(ds),Ja(qe.loopOutParameters,1,0,Qt),qe.nonLocalJumps&8){let va;gt?(gt.nonLocalJumps|=8,va=t.createReturnStatement(li)):va=t.createReturnStatement(t.createPropertyAccessExpression(li,"value")),Qt.push(t.createIfStatement(t.createTypeCheck(li,"object"),va))}if(qe.nonLocalJumps&2&&Qt.push(t.createIfStatement(t.createStrictEquality(li,t.createStringLiteral("break")),t.createBreakStatement())),qe.labeledNonLocalBreaks||qe.labeledNonLocalContinues){const va=[];Vc(qe.labeledNonLocalBreaks,!0,li,gt,va),Vc(qe.labeledNonLocalContinues,!1,li,gt,va),Qt.push(t.createSwitchStatement(li,t.createCaseBlock(va)))}}return Qt}function Oi(se,qe,gt,Et){qe?(se.labeledNonLocalBreaks||(se.labeledNonLocalBreaks=new Map),se.labeledNonLocalBreaks.set(gt,Et)):(se.labeledNonLocalContinues||(se.labeledNonLocalContinues=new Map),se.labeledNonLocalContinues.set(gt,Et))}function Vc(se,qe,gt,Et,Qt){!se||se.forEach((Fn,Cr)=>{const qr=[];if(!Et||Et.labels&&Et.labels.get(Cr)){const li=t.createIdentifier(Cr);qr.push(qe?t.createBreakStatement(li):t.createContinueStatement(li))}else Oi(Et,qe,Cr,Fn),qr.push(t.createReturnStatement(gt));Qt.push(t.createCaseClause(t.createStringLiteral(Fn),qr))})}function Jo(se,qe,gt,Et,Qt){const Fn=qe.name;if(Ns(Fn))for(const Cr of Fn.elements)pl(Cr)||Jo(se,Cr,gt,Et,Qt);else{gt.push(t.createParameterDeclaration(void 0,void 0,Fn));const Cr=f.getNodeCheckFlags(qe);if(Cr&65536||Qt){const qr=t.createUniqueName("out_"+lr(Fn));let li=0;Cr&65536&&(li|=1),Kb(se)&&(se.initializer&&f.isBindingCapturedByNode(se.initializer,qe)&&(li|=2),(se.condition&&f.isBindingCapturedByNode(se.condition,qe)||se.incrementor&&f.isBindingCapturedByNode(se.incrementor,qe))&&(li|=1)),Et.push({flags:li,originalName:Fn,outParamName:qr})}}}function L_(se,qe,gt,Et){const Qt=qe.properties,Fn=Qt.length;for(let Cr=Et;Cric(ju)&&!!wa(ju.declarationList.declarations).initializer,Et=D;D=void 0;const Qt=An(qe.statements,_e,Ii);D=Et;const Fn=Vr(Qt,gt),Cr=Vr(Qt,ju=>!gt(ju)),li=Ms(wa(Fn),ic).declarationList.declarations[0],ds=nl(li.initializer);let va=Hr(ds,Kl);!va&&rr(ds)&&ds.operatorToken.kind===28&&(va=Hr(ds.left,Kl));const Fo=Ms(va?nl(va.right):ds,js),Ro=Ms(nl(Fo.expression),fo),Zc=Ro.body.statements;let Fc=0,il=-1;const Ml=[];if(va){const ju=Hr(Zc[Fc],ql);ju&&(Ml.push(ju),Fc++),Ml.push(Zc[Fc]),Fc++,Ml.push(t.createExpressionStatement(t.createAssignment(va.left,Ms(li.name,we))))}for(;!nd(j0(Zc,il));)il--;Lr(Ml,Zc,Fc,il),il<-1&&Lr(Ml,Zc,il+1);const sl=Hr(j0(Zc,il),nd);for(const ju of Cr)nd(ju)&&(sl==null?void 0:sl.expression)&&!we(sl.expression)?Ml.push(sl):Ml.push(ju);return Lr(Ml,Fn,1),t.restoreOuterExpressions(se.expression,t.restoreOuterExpressions(li.initializer,t.restoreOuterExpressions(va&&va.right,t.updateCallExpression(Fo,t.restoreOuterExpressions(Fo.expression,t.updateFunctionExpression(Ro,void 0,void 0,void 0,void 0,Ro.parameters,void 0,t.updateBlock(Ro.body,Ml))),void 0,Fo.arguments))))}function A(se){return Ce(se,!1)}function Ce(se,qe){if(se.transformFlags&32768||se.expression.kind===108||nu(nl(se.expression))){const{target:gt,thisArg:Et}=t.createCallBinding(se.expression,l);se.expression.kind===108&&Xn(Et,8);let Qt;if(se.transformFlags&32768?Qt=t.createFunctionApplyCall(E.checkDefined(Ue(gt,X,nt)),se.expression.kind===108?Et:E.checkDefined(Ue(Et,Z,nt)),xt(se.arguments,!0,!1,!1)):Qt=Ke(t.createFunctionCallCall(E.checkDefined(Ue(gt,X,nt)),se.expression.kind===108?Et:E.checkDefined(Ue(Et,Z,nt)),An(se.arguments,Z,nt)),se),se.expression.kind===108){const Fn=t.createLogicalOr(Qt,bt());Qt=qe?t.createAssignment(t.createUniqueName("_this",48),Fn):Fn}return or(Qt,se)}return pn(se,Z,e)}function Re(se){if(dt(se.arguments,Bd)){const{target:qe,thisArg:gt}=t.createCallBinding(t.createPropertyAccessExpression(se.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(E.checkDefined(Ue(qe,Z,nt)),gt,xt(t.createNodeArray([t.createVoidZero(),...se.arguments]),!0,!1,!1)),void 0,[])}return pn(se,Z,e)}function xt(se,qe,gt,Et){const Qt=se.length,Fn=vp(iV(se,vn,(ds,va,Fo,Ro)=>va(ds,gt,Et&&Ro===Qt)));if(Fn.length===1){const ds=Fn[0];if(qe&&!u.downlevelIteration||iH(ds.expression)||Q3(ds.expression,"___spreadArray"))return ds.expression}const Cr=r(),qr=Fn[0].kind!==0;let li=qr?t.createArrayLiteralExpression():Fn[0].expression;for(let ds=qr?0:1;ds0&&Et.push(t.createStringLiteral(gt.literal.text)),qe=t.createCallExpression(t.createPropertyAccessExpression(qe,"concat"),void 0,Et)}return Ke(qe,se)}function gc(se){return k&8&&!se?t.createPropertyAccessExpression(t.createUniqueName("_super",48),"prototype"):t.createUniqueName("_super",48)}function Ka(se){return se.keywordToken===105&&se.name.escapedText==="target"?(k|=32768,t.createUniqueName("_newTarget",48)):se}function nc(se,qe,gt){if(M&1&&ks(qe)){const Et=U(32670,ma(qe)&16?81:65);m(se,qe,gt),Y(Et,0,0);return}m(se,qe,gt)}function q_(){(M&2)===0&&(M|=2,e.enableSubstitution(80))}function Uc(){(M&1)===0&&(M|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function zo(se,qe){return qe=g(se,qe),se===1?vt(qe):we(qe)?bu(qe):qe}function bu(se){if(M&2&&!gG(se)){const qe=es(se,we);if(qe&&he(qe))return Ke(t.getGeneratedNameForNode(qe),se)}return se}function he(se){switch(se.parent.kind){case 208:case 263:case 266:case 260:return se.parent.name===se&&f.isDeclarationWithCollidingName(se.parent)}return!1}function vt(se){switch(se.kind){case 80:return bn(se);case 110:return Es(se)}return se}function bn(se){if(M&2&&!gG(se)){const qe=f.getReferencedDeclarationWithCollidingName(se);if(qe&&!(ei(qe)&&Bi(qe,se)))return Ke(t.getGeneratedNameForNode(os(qe)),se)}return se}function Bi(se,qe){let gt=es(qe);if(!gt||gt===se||gt.end<=se.pos||gt.pos>=se.end)return!1;const Et=mm(se);for(;gt;){if(gt===Et||gt===se)return!1;if(Nl(gt)&>.parent===se)return!0;gt=gt.parent}return!1}function Es(se){return M&1&&k&16?Ke(t.createUniqueName("_this",48),se):se}function Ua(se,qe){return Ps(qe)?t.getInternalName(se):t.createPropertyAccessExpression(t.getInternalName(se),"prototype")}function oc(se,qe){if(!se||!qe||dt(se.parameters))return!1;const gt=wl(se.body.statements);if(!gt||!Do(gt)||gt.kind!==244)return!1;const Et=gt.expression;if(!Do(Et)||Et.kind!==213)return!1;const Qt=Et.expression;if(!Do(Qt)||Qt.kind!==108)return!1;const Fn=om(Et.arguments);if(!Fn||!Do(Fn)||Fn.kind!==230)return!1;const Cr=Fn.expression;return we(Cr)&&Cr.escapedText==="arguments"}}var o9e=Bt({"src/compiler/transformers/es2015.ts"(){Os()}});function yge(e){const{factory:t}=e,r=e.getCompilerOptions();let i,a;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),a=[]);const o=e.onSubstituteNode;return e.onSubstituteNode=f,e.enableSubstitution(211),e.enableSubstitution(303),Np(e,l);function l(x){return x}function u(x,k,C){switch(k.kind){case 286:case 287:case 285:const N=k.tagName;a[t_(N)]=!0;break}i(x,k,C)}function f(x,k){return k.id&&a&&a[k.id]?o(x,k):(k=o(x,k),kr(k)?g(k):Dc(k)?m(k):k)}function g(x){if(Ei(x.name))return x;const k=y(x.name);return k?Ke(t.createElementAccessExpression(x.expression,k),x):x}function m(x){const k=we(x.name)&&y(x.name);return k?t.updatePropertyAssignment(x,k,x.initializer):x}function y(x){const k=uy(x);if(k!==void 0&&k>=83&&k<=118)return Ke(t.createStringLiteralFromNode(x),x)}}var c9e=Bt({"src/compiler/transformers/es5.ts"(){Os()}});function l9e(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function vge(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:a,hoistFunctionDeclaration:o,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),f=Oa(u),g=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=le;let y,x,k,C,N,D,M,V,U,Y,j=1,ee,R,Z,oe,_e=0,X=0,H,Q,re,ue,fe,G,Ne,De;return Np(e,Xe);function Xe(he){if(he.isDeclarationFile||(he.transformFlags&2048)===0)return he;const vt=pn(he,ve,e);return Yg(vt,e.readEmitHelpers()),vt}function ve(he){const vt=he.transformFlags;return C?be(he):k?xe(he):Eo(he)&&he.asteriskToken?ct(he):vt&2048?pn(he,ve,e):he}function be(he){switch(he.kind){case 246:return Gr(he);case 247:return ze(he);case 255:return _t(he);case 256:return Ln(he);default:return xe(he)}}function xe(he){switch(he.kind){case 262:return pe(he);case 218:return Pe(he);case 177:case 178:return Ge(he);case 243:return mt(he);case 248:return kt(he);case 249:return Ut(he);case 252:return ft(he);case 251:return Me(he);case 253:return $e(he);default:return he.transformFlags&1048576?rt(he):he.transformFlags&4196352?pn(he,ve,e):he}}function rt(he){switch(he.kind){case 226:return Je(he);case 361:return bt(he);case 227:return Tn(he);case 229:return jt(he);case 209:return Kn(he);case 210:return fi(he);case 212:return Si(he);case 213:return Nr(he);case 214:return pt(he);default:return pn(he,ve,e)}}function ct(he){switch(he.kind){case 262:return pe(he);case 218:return Pe(he);default:return E.failBadSyntaxKind(he)}}function pe(he){if(he.asteriskToken)he=or(Ke(t.createFunctionDeclaration(he.modifiers,void 0,he.name,void 0,Pc(he.parameters,ve,e),void 0,tt(he.body)),he),he);else{const vt=k,bn=C;k=!1,C=!1,he=pn(he,ve,e),k=vt,C=bn}if(k){o(he);return}else return he}function Pe(he){if(he.asteriskToken)he=or(Ke(t.createFunctionExpression(void 0,void 0,he.name,void 0,Pc(he.parameters,ve,e),void 0,tt(he.body)),he),he);else{const vt=k,bn=C;k=!1,C=!1,he=pn(he,ve,e),k=vt,C=bn}return he}function Ge(he){const vt=k,bn=C;return k=!1,C=!1,he=pn(he,ve,e),k=vt,C=bn,he}function tt(he){const vt=[],bn=k,Bi=C,Es=N,Ua=D,oc=M,se=V,qe=U,gt=Y,Et=j,Qt=ee,Fn=R,Cr=Z,qr=oe;k=!0,C=!1,N=void 0,D=void 0,M=void 0,V=void 0,U=void 0,Y=void 0,j=1,ee=void 0,R=void 0,Z=void 0,oe=t.createTempVariable(void 0),i();const li=t.copyPrologue(he.statements,vt,!1,ve);ur(he.statements,li);const ds=Ce();return dm(vt,a()),vt.push(t.createReturnStatement(ds)),k=bn,C=Bi,N=Es,D=Ua,M=oc,V=se,U=qe,Y=gt,j=Et,ee=Qt,R=Fn,Z=Cr,oe=qr,Ke(t.createBlock(vt,he.multiLine),he)}function mt(he){if(he.transformFlags&1048576){wi(he.declarationList);return}else{if(ma(he)&2097152)return he;for(const bn of he.declarationList.declarations)l(bn.name);const vt=C3(he.declarationList);return vt.length===0?void 0:Ca(t.createExpressionStatement(t.inlineExpressions(an(vt,Zt))),he)}}function Je(he){const vt=pq(he);switch(vt){case 0:return zt(he);case 1:return at(he);default:return E.assertNever(vt)}}function at(he){const{left:vt,right:bn}=he;if(z(bn)){let Bi;switch(vt.kind){case 211:Bi=t.updatePropertyAccessExpression(vt,F(E.checkDefined(Ue(vt.expression,ve,pu))),vt.name);break;case 212:Bi=t.updateElementAccessExpression(vt,F(E.checkDefined(Ue(vt.expression,ve,pu))),F(E.checkDefined(Ue(vt.argumentExpression,ve,nt))));break;default:Bi=E.checkDefined(Ue(vt,ve,nt));break}const Es=he.operatorToken.kind;return S8(Es)?Ke(t.createAssignment(Bi,Ke(t.createBinaryExpression(F(Bi),k8(Es),E.checkDefined(Ue(bn,ve,nt))),he)),he):t.updateBinaryExpression(he,Bi,he.operatorToken,E.checkDefined(Ue(bn,ve,nt)))}return pn(he,ve,e)}function zt(he){return z(he.right)?j_e(he.operatorToken.kind)?_r(he):he.operatorToken.kind===28?It(he):t.updateBinaryExpression(he,F(E.checkDefined(Ue(he.left,ve,nt))),he.operatorToken,E.checkDefined(Ue(he.right,ve,nt))):pn(he,ve,e)}function It(he){let vt=[];return bn(he.left),bn(he.right),t.inlineExpressions(vt);function bn(Bi){rr(Bi)&&Bi.operatorToken.kind===28?(bn(Bi.left),bn(Bi.right)):(z(Bi)&&vt.length>0&&(A(1,[t.createExpressionStatement(t.inlineExpressions(vt))]),vt=[]),vt.push(E.checkDefined(Ue(Bi,ve,nt))))}}function bt(he){let vt=[];for(const bn of he.elements)rr(bn)&&bn.operatorToken.kind===28?vt.push(It(bn)):(z(bn)&&vt.length>0&&(A(1,[t.createExpressionStatement(t.inlineExpressions(vt))]),vt=[]),vt.push(E.checkDefined(Ue(bn,ve,nt))));return t.inlineExpressions(vt)}function _r(he){const vt=Oe(),bn=ye();return ja(bn,E.checkDefined(Ue(he.left,ve,nt)),he.left),he.operatorToken.kind===56?mc(vt,bn,he.left):qt(vt,bn,he.left),ja(bn,E.checkDefined(Ue(he.right,ve,nt)),he.right),We(vt),bn}function Tn(he){if(z(he.whenTrue)||z(he.whenFalse)){const vt=Oe(),bn=Oe(),Bi=ye();return mc(vt,E.checkDefined(Ue(he.condition,ve,nt)),he.condition),ja(Bi,E.checkDefined(Ue(he.whenTrue,ve,nt)),he.whenTrue),La(bn),We(vt),ja(Bi,E.checkDefined(Ue(he.whenFalse,ve,nt)),he.whenFalse),We(bn),Bi}return pn(he,ve,e)}function jt(he){const vt=Oe(),bn=Ue(he.expression,ve,nt);if(he.asteriskToken){const Bi=(ma(he.expression)&8388608)===0?Ke(r().createValuesHelper(bn),he):bn;h_(Bi,he)}else M_(bn,he);return We(vt),Rf(he)}function Kn(he){return br(he.elements,void 0,void 0,he.multiLine)}function br(he,vt,bn,Bi){const Es=B(he);let Ua;if(Es>0){Ua=ye();const qe=An(he,ve,nt,0,Es);ja(Ua,t.createArrayLiteralExpression(vt?[vt,...qe]:qe)),vt=void 0}const oc=E_(he,se,[],Es);return Ua?t.createArrayConcatCall(Ua,[t.createArrayLiteralExpression(oc,Bi)]):Ke(t.createArrayLiteralExpression(vt?[vt,...oc]:oc,Bi),bn);function se(qe,gt){if(z(gt)&&qe.length>0){const Et=Ua!==void 0;Ua||(Ua=ye()),ja(Ua,Et?t.createArrayConcatCall(Ua,[t.createArrayLiteralExpression(qe,Bi)]):t.createArrayLiteralExpression(vt?[vt,...qe]:qe,Bi)),vt=void 0,qe=[]}return qe.push(E.checkDefined(Ue(gt,ve,nt))),qe}}function fi(he){const vt=he.properties,bn=he.multiLine,Bi=B(vt),Es=ye();ja(Es,t.createObjectLiteralExpression(An(vt,ve,q0,0,Bi),bn));const Ua=E_(vt,oc,[],Bi);return Ua.push(bn?O_(Ta(Ke(t.cloneNode(Es),Es),Es.parent)):Es),t.inlineExpressions(Ua);function oc(se,qe){z(qe)&&se.length>0&&(mo(t.createExpressionStatement(t.inlineExpressions(se))),se=[]);const gt=Hfe(t,he,qe,Es),Et=Ue(gt,ve,nt);return Et&&(bn&&O_(Et),se.push(Et)),se}}function Si(he){return z(he.argumentExpression)?t.updateElementAccessExpression(he,F(E.checkDefined(Ue(he.expression,ve,pu))),E.checkDefined(Ue(he.argumentExpression,ve,nt))):pn(he,ve,e)}function Nr(he){if(!Zu(he)&&mn(he.arguments,z)){const{target:vt,thisArg:bn}=t.createCallBinding(he.expression,l,f,!0);return or(Ke(t.createFunctionApplyCall(F(E.checkDefined(Ue(vt,ve,pu))),bn,br(he.arguments)),he),he)}return pn(he,ve,e)}function pt(he){if(mn(he.arguments,z)){const{target:vt,thisArg:bn}=t.createCallBinding(t.createPropertyAccessExpression(he.expression,"bind"),l);return or(Ke(t.createNewExpression(t.createFunctionApplyCall(F(E.checkDefined(Ue(vt,ve,nt))),bn,br(he.arguments,t.createVoidZero())),void 0,[]),he),he)}return pn(he,ve,e)}function ur(he,vt=0){const bn=he.length;for(let Bi=vt;Bi0)break;Es.push(Zt(oc))}Es.length&&(mo(t.createExpressionStatement(t.inlineExpressions(Es))),Bi+=Es.length,Es=[])}}function Zt(he){return Ca(t.createAssignment(Ca(t.cloneNode(he.name),he.name),E.checkDefined(Ue(he.initializer,ve,nt))),he)}function Gt(he){if(z(he))if(z(he.thenStatement)||z(he.elseStatement)){const vt=Oe(),bn=he.elseStatement?Oe():void 0;mc(he.elseStatement?bn:vt,E.checkDefined(Ue(he.expression,ve,nt)),he.expression),yn(he.thenStatement),he.elseStatement&&(La(vt),We(bn),yn(he.elseStatement)),We(vt)}else mo(Ue(he,ve,Ii));else mo(Ue(he,ve,Ii))}function xn(he){if(z(he)){const vt=Oe(),bn=Oe();Qr(vt),We(bn),yn(he.statement),We(vt),qt(bn,E.checkDefined(Ue(he.expression,ve,nt))),cs()}else mo(Ue(he,ve,Ii))}function Gr(he){return C?(Ws(),he=pn(he,ve,e),cs(),he):pn(he,ve,e)}function Er(he){if(z(he)){const vt=Oe(),bn=Qr(vt);We(vt),mc(bn,E.checkDefined(Ue(he.expression,ve,nt))),yn(he.statement),La(vt),cs()}else mo(Ue(he,ve,Ii))}function ze(he){return C?(Ws(),he=pn(he,ve,e),cs(),he):pn(he,ve,e)}function ut(he){if(z(he)){const vt=Oe(),bn=Oe(),Bi=Qr(bn);if(he.initializer){const Es=he.initializer;dl(Es)?wi(Es):mo(Ke(t.createExpressionStatement(E.checkDefined(Ue(Es,ve,nt))),Es))}We(vt),he.condition&&mc(Bi,E.checkDefined(Ue(he.condition,ve,nt))),yn(he.statement),We(bn),he.incrementor&&mo(Ke(t.createExpressionStatement(E.checkDefined(Ue(he.incrementor,ve,nt))),he.incrementor)),La(vt),cs()}else mo(Ue(he,ve,Ii))}function kt(he){C&&Ws();const vt=he.initializer;if(vt&&dl(vt)){for(const Bi of vt.declarations)l(Bi.name);const bn=C3(vt);he=t.updateForStatement(he,bn.length>0?t.inlineExpressions(an(bn,Zt)):void 0,Ue(he.condition,ve,nt),Ue(he.incrementor,ve,nt),U_(he.statement,ve,e))}else he=pn(he,ve,e);return C&&cs(),he}function st(he){if(z(he)){const vt=ye(),bn=ye(),Bi=ye(),Es=t.createLoopVariable(),Ua=he.initializer;l(Es),ja(vt,E.checkDefined(Ue(he.expression,ve,nt))),ja(bn,t.createArrayLiteralExpression()),mo(t.createForInStatement(Bi,vt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(bn,"push"),void 0,[Bi])))),ja(Es,t.createNumericLiteral(0));const oc=Oe(),se=Oe(),qe=Qr(se);We(oc),mc(qe,t.createLessThan(Es,t.createPropertyAccessExpression(bn,"length"))),ja(Bi,t.createElementAccessExpression(bn,Es)),mc(se,t.createBinaryExpression(Bi,103,vt));let gt;if(dl(Ua)){for(const Et of Ua.declarations)l(Et.name);gt=t.cloneNode(Ua.declarations[0].name)}else gt=E.checkDefined(Ue(Ua,ve,nt)),E.assert(pu(gt));ja(gt,Bi),yn(he.statement),We(se),mo(t.createExpressionStatement(t.createPostfixIncrement(Es))),La(oc),cs()}else mo(Ue(he,ve,Ii))}function Ut(he){C&&Ws();const vt=he.initializer;if(dl(vt)){for(const bn of vt.declarations)l(bn.name);he=t.updateForInStatement(he,vt.declarations[0].name,E.checkDefined(Ue(he.expression,ve,nt)),E.checkDefined(Ue(he.statement,ve,Ii,t.liftToBlock)))}else he=pn(he,ve,e);return C&&cs(),he}function ae(he){const vt=Oi(he.label?lr(he.label):void 0);vt>0?La(vt,he):mo(he)}function Me(he){if(C){const vt=Oi(he.label&&lr(he.label));if(vt>0)return L_(vt,he)}return pn(he,ve,e)}function ke(he){const vt=ls(he.label?lr(he.label):void 0);vt>0?La(vt,he):mo(he)}function ft(he){if(C){const vt=ls(he.label&&lr(he.label));if(vt>0)return L_(vt,he)}return pn(he,ve,e)}function K(he){W_(Ue(he.expression,ve,nt),he)}function $e(he){return _l(Ue(he.expression,ve,nt),he)}function Ae(he){z(he)?(ir(F(E.checkDefined(Ue(he.expression,ve,nt)))),yn(he.statement),ar()):mo(Ue(he,ve,Ii))}function yt(he){if(z(he.caseBlock)){const vt=he.caseBlock,bn=vt.clauses.length,Bi=pi(),Es=F(E.checkDefined(Ue(he.expression,ve,nt))),Ua=[];let oc=-1;for(let gt=0;gt0)break;qe.push(t.createCaseClause(E.checkDefined(Ue(Qt.expression,ve,nt)),[L_(Ua[Et],Qt.expression)]))}else gt++}qe.length&&(mo(t.createSwitchStatement(Es,t.createCaseBlock(qe))),se+=qe.length,qe=[]),gt>0&&(se+=gt,gt=0)}oc>=0?La(Ua[oc]):La(Bi);for(let gt=0;gt=0;bn--){const Bi=V[bn];if(ro(Bi)){if(Bi.labelText===he)return!0}else break}return!1}function ls(he){if(V)if(he)for(let vt=V.length-1;vt>=0;vt--){const bn=V[vt];if(ro(bn)&&bn.labelText===he)return bn.breakLabel;if(Ea(bn)&&Ic(he,vt-1))return bn.breakLabel}else for(let vt=V.length-1;vt>=0;vt--){const bn=V[vt];if(Ea(bn))return bn.breakLabel}return 0}function Oi(he){if(V)if(he)for(let vt=V.length-1;vt>=0;vt--){const bn=V[vt];if(Ja(bn)&&Ic(he,vt-1))return bn.continueLabel}else for(let vt=V.length-1;vt>=0;vt--){const bn=V[vt];if(Ja(bn))return bn.continueLabel}return 0}function Vc(he){if(he!==void 0&&he>0){Y===void 0&&(Y=[]);const vt=t.createNumericLiteral(-1);return Y[he]===void 0?Y[he]=[vt]:Y[he].push(vt),vt}return t.createOmittedExpression()}function Jo(he){const vt=t.createNumericLiteral(he);return MO(vt,3,l9e(he)),vt}function L_(he,vt){return E.assertLessThan(0,he,"Invalid label"),Ke(t.createReturnStatement(t.createArrayLiteralExpression([Jo(3),Vc(he)])),vt)}function _l(he,vt){return Ke(t.createReturnStatement(t.createArrayLiteralExpression(he?[Jo(2),he]:[Jo(2)])),vt)}function Rf(he){return Ke(t.createCallExpression(t.createPropertyAccessExpression(oe,"sent"),void 0,[]),he)}function Ls(){A(0)}function mo(he){he?A(1,[he]):Ls()}function ja(he,vt,bn){A(2,[he,vt],bn)}function La(he,vt){A(3,[he],vt)}function qt(he,vt,bn){A(4,[he,vt],bn)}function mc(he,vt,bn){A(5,[he,vt],bn)}function h_(he,vt){A(7,[he],vt)}function M_(he,vt){A(6,[he],vt)}function W_(he,vt){A(8,[he],vt)}function bo(he,vt){A(9,[he],vt)}function Go(){A(10)}function A(he,vt,bn){ee===void 0&&(ee=[],R=[],Z=[]),U===void 0&&We(Oe());const Bi=ee.length;ee[Bi]=he,R[Bi]=vt,Z[Bi]=bn}function Ce(){_e=0,X=0,H=void 0,Q=!1,re=!1,ue=void 0,fe=void 0,G=void 0,Ne=void 0,De=void 0;const he=Re();return r().createGeneratorHelper(Xn(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,oe)],void 0,t.createBlock(he,he.length>0)),1048576))}function Re(){if(ee){for(let he=0;he=0;vt--){const bn=De[vt];fe=[t.createWithStatement(bn.expression,t.createBlock(fe))]}if(Ne){const{startLabel:vt,catchLabel:bn,finallyLabel:Bi,endLabel:Es}=Ne;fe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(oe,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Vc(vt),Vc(bn),Vc(Bi),Vc(Es)])]))),Ne=void 0}he&&fe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(oe,"label"),t.createNumericLiteral(X+1))))}ue.push(t.createCaseClause(t.createNumericLiteral(X),fe||[])),fe=void 0}function mr(he){if(!!U)for(let vt=0;vtr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(lr(We))),Oe),r.createVoidZero())));gn(B,Ue(D.externalHelpersImportDeclaration,H,Ii)),Lr(B,An(z.statements,H,Ii,W)),X(B,!1),dm(B,o());const ge=r.updateSourceFile(z,Ke(r.createNodeArray(B),z.statements));return Yg(ge,e.readEmitHelpers()),ge}function ee(z){const B=r.createIdentifier("define"),le=mA(r,z,g,u),W=Yf(z)&&z,{aliasedModuleNames:ge,unaliasedModuleNames:F,importAliasNames:ye}=Z(z,!0),Oe=r.updateSourceFile(z,Ke(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(B,void 0,[...le?[le]:[],r.createArrayLiteralExpression(W?Ve:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...ge,...F]),W?W.statements.length?W.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...ye],void 0,_e(z))]))]),z.statements));return Yg(Oe,e.readEmitHelpers()),Oe}function R(z){const{aliasedModuleNames:B,unaliasedModuleNames:le,importAliasNames:W}=Z(z,!1),ge=mA(r,z,g,u),F=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,Ke(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),Xn(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...ge?[ge]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...B,...le]),r.createIdentifier("factory")]))])))],!0),void 0)),ye=r.updateSourceFile(z,Ke(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(F,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...W],void 0,_e(z))]))]),z.statements));return Yg(ye,e.readEmitHelpers()),ye}function Z(z,B){const le=[],W=[],ge=[];for(const F of z.amdDependencies)F.name?(le.push(r.createStringLiteral(F.path)),ge.push(r.createParameterDeclaration(void 0,void 0,F.name))):W.push(r.createStringLiteral(F.path));for(const F of D.externalImports){const ye=gS(r,F,N,g,f,u),Oe=o4(r,F,N);ye&&(B&&Oe?(Xn(Oe,8),le.push(ye),ge.push(r.createParameterDeclaration(void 0,void 0,Oe))):W.push(ye))}return{aliasedModuleNames:le,unaliasedModuleNames:W,importAliasNames:ge}}function oe(z){if(Hl(z)||Yc(z)||!gS(r,z,N,g,f,u))return;const B=o4(r,z,N),le=Nr(z,B);if(le!==B)return r.createExpressionStatement(r.createAssignment(B,le))}function _e(z){a();const B=[],le=r.copyPrologue(z.statements,B,!u.noImplicitUseStrict,H);Y()&&gn(B,ae()),Pn(D.exportedNames)&&gn(B,r.createExpressionStatement(E_(D.exportedNames,(ge,F)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(lr(F))),ge),r.createVoidZero()))),gn(B,Ue(D.externalHelpersImportDeclaration,H,Ii)),y===2&&Lr(B,qi(D.externalImports,oe)),Lr(B,An(z.statements,H,Ii,le)),X(B,!0),dm(B,o());const W=r.createBlock(B,!0);return V&&eS(W,bge),W}function X(z,B){if(D.exportEquals){const le=Ue(D.exportEquals.expression,ue,nt);if(le)if(B){const W=r.createReturnStatement(le);Ke(W,D.exportEquals),Xn(W,3840),z.push(W)}else{const W=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),le));Ke(W,D.exportEquals),Xn(W,3072),z.push(W)}}}function H(z){switch(z.kind){case 272:return pt(z);case 271:return yn(z);case 278:return Ct(z);case 277:return cn(z);default:return Q(z)}}function Q(z){switch(z.kind){case 243:return wi(z);case 262:return In(z);case 263:return xr(z);case 248:return De(z,!0);case 249:return Xe(z);case 250:return ve(z);case 246:return be(z);case 247:return xe(z);case 256:return rt(z);case 254:return ct(z);case 245:return pe(z);case 255:return Pe(z);case 269:return Ge(z);case 296:return tt(z);case 297:return mt(z);case 258:return Je(z);case 299:return at(z);case 241:return zt(z);default:return ue(z)}}function re(z,B){if(!(z.transformFlags&276828160))return z;switch(z.kind){case 248:return De(z,!1);case 244:return It(z);case 217:return bt(z,B);case 360:return _r(z,B);case 213:if(Zu(z)&&N.impliedNodeFormat===void 0)return jt(z);break;case 226:if(Y0(z))return Ne(z,B);break;case 224:case 225:return Tn(z,B)}return pn(z,ue,e)}function ue(z){return re(z,!1)}function fe(z){return re(z,!0)}function G(z){if(ha(z))for(const B of z.properties)switch(B.kind){case 303:if(G(B.initializer))return!0;break;case 304:if(G(B.name))return!0;break;case 305:if(G(B.expression))return!0;break;case 174:case 177:case 178:return!1;default:E.assertNever(B,"Unhandled object member kind")}else if(u_(z)){for(const B of z.elements)if(Bd(B)){if(G(B.expression))return!0}else if(G(B))return!0}else if(we(z))return Pn(hi(z))>(DF(z)?1:0);return!1}function Ne(z,B){return G(z.left)?_T(z,ue,e,0,!B,Zt):pn(z,ue,e)}function De(z,B){if(B&&z.initializer&&dl(z.initializer)&&!(z.initializer.flags&7)){const le=ze(void 0,z.initializer,!1);if(le){const W=[],ge=Ue(z.initializer,fe,dl),F=r.createVariableStatement(void 0,ge);W.push(F),Lr(W,le);const ye=Ue(z.condition,ue,nt),Oe=Ue(z.incrementor,fe,nt),We=U_(z.statement,B?Q:ue,e);return W.push(r.updateForStatement(z,void 0,ye,Oe,We)),W}}return r.updateForStatement(z,Ue(z.initializer,fe,Pf),Ue(z.condition,ue,nt),Ue(z.incrementor,fe,nt),U_(z.statement,B?Q:ue,e))}function Xe(z){if(dl(z.initializer)&&!(z.initializer.flags&7)){const B=ze(void 0,z.initializer,!0);if(dt(B)){const le=Ue(z.initializer,fe,Pf),W=Ue(z.expression,ue,nt),ge=U_(z.statement,Q,e),F=hs(ge)?r.updateBlock(ge,[...B,...ge.statements]):r.createBlock([...B,ge],!0);return r.updateForInStatement(z,le,W,F)}}return r.updateForInStatement(z,Ue(z.initializer,fe,Pf),Ue(z.expression,ue,nt),U_(z.statement,Q,e))}function ve(z){if(dl(z.initializer)&&!(z.initializer.flags&7)){const B=ze(void 0,z.initializer,!0),le=Ue(z.initializer,fe,Pf),W=Ue(z.expression,ue,nt);let ge=U_(z.statement,Q,e);return dt(B)&&(ge=hs(ge)?r.updateBlock(ge,[...B,...ge.statements]):r.createBlock([...B,ge],!0)),r.updateForOfStatement(z,z.awaitModifier,le,W,ge)}return r.updateForOfStatement(z,z.awaitModifier,Ue(z.initializer,fe,Pf),Ue(z.expression,ue,nt),U_(z.statement,Q,e))}function be(z){return r.updateDoStatement(z,U_(z.statement,Q,e),Ue(z.expression,ue,nt))}function xe(z){return r.updateWhileStatement(z,Ue(z.expression,ue,nt),U_(z.statement,Q,e))}function rt(z){return r.updateLabeledStatement(z,z.label,E.checkDefined(Ue(z.statement,Q,Ii,r.liftToBlock)))}function ct(z){return r.updateWithStatement(z,Ue(z.expression,ue,nt),E.checkDefined(Ue(z.statement,Q,Ii,r.liftToBlock)))}function pe(z){return r.updateIfStatement(z,Ue(z.expression,ue,nt),E.checkDefined(Ue(z.thenStatement,Q,Ii,r.liftToBlock)),Ue(z.elseStatement,Q,Ii,r.liftToBlock))}function Pe(z){return r.updateSwitchStatement(z,Ue(z.expression,ue,nt),E.checkDefined(Ue(z.caseBlock,Q,a8)))}function Ge(z){return r.updateCaseBlock(z,An(z.clauses,Q,u9))}function tt(z){return r.updateCaseClause(z,Ue(z.expression,ue,nt),An(z.statements,Q,Ii))}function mt(z){return pn(z,Q,e)}function Je(z){return pn(z,Q,e)}function at(z){return r.updateCatchClause(z,z.variableDeclaration,E.checkDefined(Ue(z.block,Q,hs)))}function zt(z){return z=pn(z,Q,e),z}function It(z){return r.updateExpressionStatement(z,Ue(z.expression,fe,nt))}function bt(z,B){return r.updateParenthesizedExpression(z,Ue(z.expression,B?fe:ue,nt))}function _r(z,B){return r.updatePartiallyEmittedExpression(z,Ue(z.expression,B?fe:ue,nt))}function Tn(z,B){if((z.operator===46||z.operator===47)&&we(z.operand)&&!jo(z.operand)&&!Zg(z.operand)&&!Mq(z.operand)){const le=hi(z.operand);if(le){let W,ge=Ue(z.operand,ue,nt);Dy(z)?ge=r.updatePrefixUnaryExpression(z,ge):(ge=r.updatePostfixUnaryExpression(z,ge),B||(W=r.createTempVariable(l),ge=r.createAssignment(W,ge),Ke(ge,z)),ge=r.createComma(ge,r.cloneNode(z.operand)),Ke(ge,z));for(const F of le)M[Ba(ge)]=!0,ge=ke(F,ge),Ke(ge,z);return W&&(M[Ba(ge)]=!0,ge=r.createComma(ge,W),Ke(ge,z)),ge}}return pn(z,ue,e)}function jt(z){if(y===0&&m>=7)return pn(z,ue,e);const B=gS(r,z,N,g,f,u),le=Ue(wl(z.arguments),ue,nt),W=B&&(!le||!pa(le)||le.text!==B.text)?B:le,ge=!!(z.transformFlags&16384);switch(u.module){case 2:return br(W,ge);case 3:return Kn(W!=null?W:r.createVoidZero(),ge);case 1:default:return fi(W)}}function Kn(z,B){if(V=!0,x2(z)){const le=jo(z)?z:pa(z)?r.createStringLiteralFromNode(z):Xn(Ke(r.cloneNode(z),z),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,fi(z),void 0,br(le,B))}else{const le=r.createTempVariable(l);return r.createComma(r.createAssignment(le,z),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,fi(le,!0),void 0,br(le,B)))}}function br(z,B){const le=r.createUniqueName("resolve"),W=r.createUniqueName("reject"),ge=[r.createParameterDeclaration(void 0,void 0,le),r.createParameterDeclaration(void 0,void 0,W)],F=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([z||r.createOmittedExpression()]),le,W]))]);let ye;m>=2?ye=r.createArrowFunction(void 0,void 0,ge,void 0,void 0,F):(ye=r.createFunctionExpression(void 0,void 0,void 0,void 0,ge,void 0,F),B&&Xn(ye,16));const Oe=r.createNewExpression(r.createIdentifier("Promise"),void 0,[ye]);return bm(u)?r.createCallExpression(r.createPropertyAccessExpression(Oe,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Oe}function fi(z,B){const le=z&&!Ud(z)&&!B,W=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,le?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(z,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[z])]:[]);let ge=r.createCallExpression(r.createIdentifier("require"),void 0,le?[r.createIdentifier("s")]:z?[z]:[]);bm(u)&&(ge=i().createImportStarHelper(ge));const F=le?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let ye;return m>=2?ye=r.createArrowFunction(void 0,void 0,F,void 0,void 0,ge):ye=r.createFunctionExpression(void 0,void 0,void 0,void 0,F,void 0,r.createBlock([r.createReturnStatement(ge)])),r.createCallExpression(r.createPropertyAccessExpression(W,"then"),void 0,[ye])}function Si(z,B){return!bm(u)||Tp(z)&2?B:zme(z)?i().createImportStarHelper(B):B}function Nr(z,B){return!bm(u)||Tp(z)&2?B:wL(z)?i().createImportStarHelper(B):j$(z)?i().createImportDefaultHelper(B):B}function pt(z){let B;const le=T6(z);if(y!==2)if(z.importClause){const W=[];le&&!Bx(z)?W.push(r.createVariableDeclaration(r.cloneNode(le.name),void 0,void 0,Nr(z,ur(z)))):(W.push(r.createVariableDeclaration(r.getGeneratedNameForNode(z),void 0,void 0,Nr(z,ur(z)))),le&&Bx(z)&&W.push(r.createVariableDeclaration(r.cloneNode(le.name),void 0,void 0,r.getGeneratedNameForNode(z)))),B=gn(B,or(Ke(r.createVariableStatement(void 0,r.createVariableDeclarationList(W,m>=2?2:0)),z),z))}else return or(Ke(r.createExpressionStatement(ur(z)),z),z);else le&&Bx(z)&&(B=gn(B,r.createVariableStatement(void 0,r.createVariableDeclarationList([or(Ke(r.createVariableDeclaration(r.cloneNode(le.name),void 0,void 0,r.getGeneratedNameForNode(z)),z),z)],m>=2?2:0))));return B=xn(B,z),cm(B)}function ur(z){const B=gS(r,z,N,g,f,u),le=[];return B&&le.push(B),r.createCallExpression(r.createIdentifier("require"),void 0,le)}function yn(z){E.assert(gy(z),"import= for internal module references should be handled in an earlier transformer.");let B;return y!==2?Mr(z,1)?B=gn(B,or(Ke(r.createExpressionStatement(ke(z.name,ur(z))),z),z)):B=gn(B,or(Ke(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(z.name),void 0,void 0,ur(z))],m>=2?2:0)),z),z)):Mr(z,1)&&(B=gn(B,or(Ke(r.createExpressionStatement(ke(r.getExportName(z),r.getLocalName(z))),z),z))),B=Gr(B,z),cm(B)}function Ct(z){if(!z.moduleSpecifier)return;const B=r.getGeneratedNameForNode(z);if(z.exportClause&&ap(z.exportClause)){const le=[];y!==2&&le.push(or(Ke(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(B,void 0,void 0,ur(z))])),z),z));for(const W of z.exportClause.elements)if(m===0)le.push(or(Ke(r.createExpressionStatement(i().createCreateBindingHelper(B,r.createStringLiteralFromNode(W.propertyName||W.name),W.propertyName?r.createStringLiteralFromNode(W.name):void 0)),W),W));else{const ge=!!bm(u)&&!(Tp(z)&2)&&lr(W.propertyName||W.name)==="default",F=r.createPropertyAccessExpression(ge?i().createImportDefaultHelper(B):B,W.propertyName||W.name);le.push(or(Ke(r.createExpressionStatement(ke(r.getExportName(W),F,void 0,!0)),W),W))}return cm(le)}else if(z.exportClause){const le=[];return le.push(or(Ke(r.createExpressionStatement(ke(r.cloneNode(z.exportClause.name),Si(z,y!==2?ur(z):b9(z)?B:r.createIdentifier(lr(z.exportClause.name))))),z),z)),cm(le)}else return or(Ke(r.createExpressionStatement(i().createExportStarHelper(y!==2?ur(z):B)),z),z)}function cn(z){if(!z.isExportEquals)return Me(r.createIdentifier("default"),Ue(z.expression,ue,nt),z,!0)}function In(z){let B;return Mr(z,1)?B=gn(B,or(Ke(r.createFunctionDeclaration(An(z.modifiers,ft,Zs),z.asteriskToken,r.getDeclarationName(z,!0,!0),void 0,An(z.parameters,ue,ns),void 0,pn(z.body,ue,e)),z),z)):B=gn(B,pn(z,ue,e)),B=kt(B,z),cm(B)}function xr(z){let B;return Mr(z,1)?B=gn(B,or(Ke(r.createClassDeclaration(An(z.modifiers,ft,wo),r.getDeclarationName(z,!0,!0),void 0,An(z.heritageClauses,ue,tf),An(z.members,ue,Nl)),z),z)):B=gn(B,pn(z,ue,e)),B=kt(B,z),cm(B)}function wi(z){let B,le,W;if(Mr(z,1)){let ge,F=!1;for(const ye of z.declarationList.declarations)if(we(ye.name)&&Zg(ye.name))if(ge||(ge=An(z.modifiers,ft,Zs)),ye.initializer){const Oe=r.updateVariableDeclaration(ye,ye.name,void 0,void 0,ke(ye.name,Ue(ye.initializer,ue,nt)));le=gn(le,Oe)}else le=gn(le,ye);else if(ye.initializer)if(!Ns(ye.name)&&(Po(ye.initializer)||fo(ye.initializer)||Fl(ye.initializer))){const Oe=r.createAssignment(Ke(r.createPropertyAccessExpression(r.createIdentifier("exports"),ye.name),ye.name),r.createIdentifier(kp(ye.name))),We=r.createVariableDeclaration(ye.name,ye.exclamationToken,ye.type,Ue(ye.initializer,ue,nt));le=gn(le,We),W=gn(W,Oe),F=!0}else W=gn(W,Gt(ye));if(le&&(B=gn(B,r.updateVariableStatement(z,ge,r.updateVariableDeclarationList(z.declarationList,le)))),W){const ye=or(Ke(r.createExpressionStatement(r.inlineExpressions(W)),z),z);F&&$D(ye),B=gn(B,ye)}}else B=gn(B,pn(z,ue,e));return B=Er(B,z),cm(B)}function Zt(z,B,le){const W=hi(z);if(W){let ge=DF(z)?B:r.createAssignment(z,B);for(const F of W)Xn(ge,8),ge=ke(F,ge,le);return ge}return r.createAssignment(z,B)}function Gt(z){return Ns(z.name)?_T(Ue(z,ue,CD),ue,e,0,!1,Zt):r.createAssignment(Ke(r.createPropertyAccessExpression(r.createIdentifier("exports"),z.name),z.name),z.initializer?Ue(z.initializer,ue,nt):r.createVoidZero())}function xn(z,B){if(D.exportEquals)return z;const le=B.importClause;if(!le)return z;const W=new SS;le.name&&(z=st(z,W,le));const ge=le.namedBindings;if(ge)switch(ge.kind){case 274:z=st(z,W,ge);break;case 275:for(const F of ge.elements)z=st(z,W,F,!0);break}return z}function Gr(z,B){return D.exportEquals?z:st(z,new SS,B)}function Er(z,B){return ze(z,B.declarationList,!1)}function ze(z,B,le){if(D.exportEquals)return z;for(const W of B.declarations)z=ut(z,W,le);return z}function ut(z,B,le){if(D.exportEquals)return z;if(Ns(B.name))for(const W of B.name.elements)pl(W)||(z=ut(z,W,le));else!jo(B.name)&&(!Mi(B)||B.initializer||le)&&(z=st(z,new SS,B));return z}function kt(z,B){if(D.exportEquals)return z;const le=new SS;if(Mr(B,1)){const W=Mr(B,1024)?r.createIdentifier("default"):r.getDeclarationName(B);z=Ut(z,le,W,r.getLocalName(B),B)}return B.name&&(z=st(z,le,B)),z}function st(z,B,le,W){const ge=r.getDeclarationName(le),F=D.exportSpecifiers.get(ge);if(F)for(const ye of F)z=Ut(z,B,ye.name,ge,ye.name,void 0,W);return z}function Ut(z,B,le,W,ge,F,ye){return B.has(le)||(B.set(le,!0),z=gn(z,Me(le,W,ge,F,ye))),z}function ae(){let z;return m===0?z=r.createExpressionStatement(ke(r.createIdentifier("__esModule"),r.createTrue())):z=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),Xn(z,2097152),z}function Me(z,B,le,W,ge){const F=Ke(r.createExpressionStatement(ke(z,B,void 0,ge)),le);return O_(F),W||Xn(F,3072),F}function ke(z,B,le,W){return Ke(W&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(z),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(B)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(z)),B),le)}function ft(z){switch(z.kind){case 95:case 90:return}return z}function K(z,B,le){B.kind===312?(N=B,D=C[t_(N)],k(z,B,le),N=void 0,D=void 0):k(z,B,le)}function $e(z,B){return B=x(z,B),B.id&&M[B.id]?B:z===1?yt(B):nf(B)?Ae(B):B}function Ae(z){const B=z.name,le=Ln(B);if(le!==B){if(z.objectAssignmentInitializer){const W=r.createAssignment(le,z.objectAssignmentInitializer);return Ke(r.createPropertyAssignment(B,W),z)}return Ke(r.createPropertyAssignment(B,le),z)}return z}function yt(z){switch(z.kind){case 80:return Ln(z);case 213:return _t(z);case 215:return Jt(z);case 226:return Pt(z)}return z}function _t(z){if(we(z.expression)){const B=Ln(z.expression);if(M[Ba(B)]=!0,!we(B)&&!(ma(z.expression)&8192))return Zx(r.updateCallExpression(z,B,void 0,z.arguments),16)}return z}function Jt(z){if(we(z.tag)){const B=Ln(z.tag);if(M[Ba(B)]=!0,!we(B)&&!(ma(z.tag)&8192))return Zx(r.updateTaggedTemplateExpression(z,B,void 0,z.template),16)}return z}function Ln(z){var B,le;if(ma(z)&8192){const W=dA(N);return W?r.createPropertyAccessExpression(W,z):z}else if(!(jo(z)&&!(z.emitNode.autoGenerate.flags&64))&&!Zg(z)){const W=f.getReferencedExportContainer(z,DF(z));if(W&&W.kind===312)return Ke(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(z)),z);const ge=f.getReferencedImportDeclaration(z);if(ge){if(Sm(ge))return Ke(r.createPropertyAccessExpression(r.getGeneratedNameForNode(ge.parent),r.createIdentifier("default")),z);if(yu(ge)){const F=ge.propertyName||ge.name;return Ke(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((le=(B=ge.parent)==null?void 0:B.parent)==null?void 0:le.parent)||ge),r.cloneNode(F)),z)}}}return z}function Pt(z){if(Q0(z.operatorToken.kind)&&we(z.left)&&(!jo(z.left)||bw(z.left))&&!Zg(z.left)){const B=hi(z.left);if(B){let le=z;for(const W of B)M[Ba(le)]=!0,le=ke(W,le,z);return le}}return z}function hi(z){if(jo(z)){if(bw(z)){const B=D==null?void 0:D.exportSpecifiers.get(z);if(B){const le=[];for(const W of B)le.push(W.name);return le}}}else{const B=f.getReferencedImportDeclaration(z);if(B)return D==null?void 0:D.exportedBindings[t_(B)];const le=new Set,W=f.getReferencedValueDeclarations(z);if(W){for(const ge of W){const F=D==null?void 0:D.exportedBindings[t_(ge)];if(F)for(const ye of F)le.add(ye)}if(le.size)return ia(le)}}}}var bge,u9e=Bt({"src/compiler/transformers/module/module.ts"(){Os(),bge={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Tge(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,o=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),f=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=ke,e.onEmitNode=Me,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const m=[],y=[],x=[],k=[];let C,N,D,M,V,U,Y;return Np(e,j);function j(z){if(z.isDeclarationFile||!(Fx(z,o)||z.transformFlags&8388608))return z;const B=t_(z);C=z,U=z,N=m[B]=J$(e,z),D=t.createUniqueName("exports"),y[B]=D,M=k[B]=t.createUniqueName("context");const le=ee(N.externalImports),W=R(z,le),ge=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,D),t.createParameterDeclaration(void 0,void 0,M)],void 0,W),F=mA(t,z,u,o),ye=t.createArrayLiteralExpression(an(le,We=>We.name)),Oe=Xn(t.updateSourceFile(z,Ke(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,F?[F,ye,ge]:[ye,ge]))]),z.statements)),2048);return Ao(o)||_fe(Oe,W,We=>!We.scoped),Y&&(x[B]=Y,Y=void 0),C=void 0,N=void 0,D=void 0,M=void 0,V=void 0,U=void 0,Oe}function ee(z){const B=new Map,le=[];for(const W of z){const ge=gS(t,W,C,u,l,o);if(ge){const F=ge.text,ye=B.get(F);ye!==void 0?le[ye].externalImports.push(W):(B.set(F,le.length),le.push({name:ge,externalImports:[W]}))}}return le}function R(z,B){const le=[];r();const W=np(o,"alwaysStrict")||!o.noImplicitUseStrict&&zc(C),ge=t.copyPrologue(z.statements,le,W,X);le.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(M,t.createPropertyAccessExpression(M,"id")))]))),Ue(N.externalHelpersImportDeclaration,X,Ii);const F=An(z.statements,X,Ii,ge);Lr(le,V),dm(le,i());const ye=Z(le),Oe=z.transformFlags&2097152?t.createModifiersFromModifierFlags(512):void 0,We=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",_e(ye,B)),t.createPropertyAssignment("execute",t.createFunctionExpression(Oe,void 0,void 0,void 0,[],void 0,t.createBlock(F,!0)))],!0);return le.push(t.createReturnStatement(We)),t.createBlock(le,!0)}function Z(z){if(!N.hasExportStarsToExportValues)return;if(!N.exportedNames&&N.exportSpecifiers.size===0){let ge=!1;for(const F of N.externalImports)if(F.kind===278&&F.exportClause){ge=!0;break}if(!ge){const F=oe(void 0);return z.push(F),F.name}}const B=[];if(N.exportedNames)for(const ge of N.exportedNames)ge.escapedText!=="default"&&B.push(t.createPropertyAssignment(t.createStringLiteralFromNode(ge),t.createTrue()));const le=t.createUniqueName("exportedNames");z.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(le,void 0,void 0,t.createObjectLiteralExpression(B,!0))])));const W=oe(le);return z.push(W),W.name}function oe(z){const B=t.createUniqueName("exportStar"),le=t.createIdentifier("m"),W=t.createIdentifier("n"),ge=t.createIdentifier("exports");let F=t.createStrictInequality(W,t.createStringLiteral("default"));return z&&(F=t.createLogicalAnd(F,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(z,"hasOwnProperty"),void 0,[W])))),t.createFunctionDeclaration(void 0,void 0,B,void 0,[t.createParameterDeclaration(void 0,void 0,le)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ge,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(W)]),le,t.createBlock([Xn(t.createIfStatement(F,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ge,W),t.createElementAccessExpression(le,W)))),1)])),t.createExpressionStatement(t.createCallExpression(D,void 0,[ge]))],!0))}function _e(z,B){const le=[];for(const W of B){const ge=mn(W.externalImports,Oe=>o4(t,Oe,C)),F=ge?t.getGeneratedNameForNode(ge):t.createUniqueName(""),ye=[];for(const Oe of W.externalImports){const We=o4(t,Oe,C);switch(Oe.kind){case 272:if(!Oe.importClause)break;case 271:E.assert(We!==void 0),ye.push(t.createExpressionStatement(t.createAssignment(We,F))),Mr(Oe,1)&&ye.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(lr(We)),F])));break;case 278:if(E.assert(We!==void 0),Oe.exportClause)if(ap(Oe.exportClause)){const Tt=[];for(const Ot of Oe.exportClause.elements)Tt.push(t.createPropertyAssignment(t.createStringLiteral(lr(Ot.name)),t.createElementAccessExpression(F,t.createStringLiteral(lr(Ot.propertyName||Ot.name)))));ye.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createObjectLiteralExpression(Tt,!0)])))}else ye.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(lr(Oe.exportClause.name)),F])));else ye.push(t.createExpressionStatement(t.createCallExpression(z,void 0,[F])));break}}le.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,F)],void 0,t.createBlock(ye,!0)))}return t.createArrayLiteralExpression(le,!0)}function X(z){switch(z.kind){case 272:return H(z);case 271:return re(z);case 278:return Q(z);case 277:return ue(z);default:return It(z)}}function H(z){let B;return z.importClause&&a(o4(t,z,C)),cm(ct(B,z))}function Q(z){E.assertIsDefined(z)}function re(z){E.assert(gy(z),"import= for internal module references should be handled in an earlier transformer.");let B;return a(o4(t,z,C)),cm(pe(B,z))}function ue(z){if(z.isExportEquals)return;const B=Ue(z.expression,Gt,nt);return at(t.createIdentifier("default"),B,!0)}function fe(z){Mr(z,1)?V=gn(V,t.updateFunctionDeclaration(z,An(z.modifiers,ae,wo),z.asteriskToken,t.getDeclarationName(z,!0,!0),void 0,An(z.parameters,Gt,ns),void 0,Ue(z.body,Gt,hs))):V=gn(V,pn(z,Gt,e)),V=tt(V,z)}function G(z){let B;const le=t.getLocalName(z);return a(le),B=gn(B,Ke(t.createExpressionStatement(t.createAssignment(le,Ke(t.createClassExpression(An(z.modifiers,ae,wo),z.name,void 0,An(z.heritageClauses,Gt,tf),An(z.members,Gt,Nl)),z))),z)),B=tt(B,z),cm(B)}function Ne(z){if(!Xe(z.declarationList))return Ue(z,Gt,Ii);let B;if(Mw(z.declarationList)||Lw(z.declarationList)){const le=An(z.modifiers,ae,wo),W=[];for(const F of z.declarationList.declarations)W.push(t.updateVariableDeclaration(F,t.getGeneratedNameForNode(F.name),void 0,void 0,ve(F,!1)));const ge=t.updateVariableDeclarationList(z.declarationList,W);B=gn(B,t.updateVariableStatement(z,le,ge))}else{let le;const W=Mr(z,1);for(const ge of z.declarationList.declarations)ge.initializer?le=gn(le,ve(ge,W)):De(ge);le&&(B=gn(B,Ke(t.createExpressionStatement(t.inlineExpressions(le)),z)))}return B=Pe(B,z,!1),cm(B)}function De(z){if(Ns(z.name))for(const B of z.name.elements)pl(B)||De(B);else a(t.cloneNode(z.name))}function Xe(z){return(ma(z)&4194304)===0&&(U.kind===312||(Ko(z).flags&7)===0)}function ve(z,B){const le=B?be:xe;return Ns(z.name)?_T(z,Gt,e,0,!1,le):z.initializer?le(z.name,Ue(z.initializer,Gt,nt)):z.name}function be(z,B,le){return rt(z,B,le,!0)}function xe(z,B,le){return rt(z,B,le,!1)}function rt(z,B,le,W){return a(t.cloneNode(z)),W?zt(z,Pt(Ke(t.createAssignment(z,B),le))):Pt(Ke(t.createAssignment(z,B),le))}function ct(z,B){if(N.exportEquals)return z;const le=B.importClause;if(!le)return z;le.name&&(z=mt(z,le));const W=le.namedBindings;if(W)switch(W.kind){case 274:z=mt(z,W);break;case 275:for(const ge of W.elements)z=mt(z,ge);break}return z}function pe(z,B){return N.exportEquals?z:mt(z,B)}function Pe(z,B,le){if(N.exportEquals)return z;for(const W of B.declarationList.declarations)(W.initializer||le)&&(z=Ge(z,W,le));return z}function Ge(z,B,le){if(N.exportEquals)return z;if(Ns(B.name))for(const W of B.name.elements)pl(W)||(z=Ge(z,W,le));else if(!jo(B.name)){let W;le&&(z=Je(z,B.name,t.getLocalName(B)),W=lr(B.name)),z=mt(z,B,W)}return z}function tt(z,B){if(N.exportEquals)return z;let le;if(Mr(B,1)){const W=Mr(B,1024)?t.createStringLiteral("default"):B.name;z=Je(z,W,t.getLocalName(B)),le=kp(W)}return B.name&&(z=mt(z,B,le)),z}function mt(z,B,le){if(N.exportEquals)return z;const W=t.getDeclarationName(B),ge=N.exportSpecifiers.get(W);if(ge)for(const F of ge)F.name.escapedText!==le&&(z=Je(z,F.name,W));return z}function Je(z,B,le,W){return z=gn(z,at(B,le,W)),z}function at(z,B,le){const W=t.createExpressionStatement(zt(z,B));return O_(W),le||Xn(W,3072),W}function zt(z,B){const le=we(z)?t.createStringLiteralFromNode(z):z;return Xn(B,ma(B)|3072),Xc(t.createCallExpression(D,void 0,[le,B]),B)}function It(z){switch(z.kind){case 243:return Ne(z);case 262:return fe(z);case 263:return G(z);case 248:return bt(z,!0);case 249:return _r(z);case 250:return Tn(z);case 246:return br(z);case 247:return fi(z);case 256:return Si(z);case 254:return Nr(z);case 245:return pt(z);case 255:return ur(z);case 269:return yn(z);case 296:return Ct(z);case 297:return cn(z);case 258:return In(z);case 299:return xr(z);case 241:return wi(z);default:return Gt(z)}}function bt(z,B){const le=U;return U=z,z=t.updateForStatement(z,Ue(z.initializer,B?Kn:xn,Pf),Ue(z.condition,Gt,nt),Ue(z.incrementor,xn,nt),U_(z.statement,B?It:Gt,e)),U=le,z}function _r(z){const B=U;return U=z,z=t.updateForInStatement(z,Kn(z.initializer),Ue(z.expression,Gt,nt),U_(z.statement,It,e)),U=B,z}function Tn(z){const B=U;return U=z,z=t.updateForOfStatement(z,z.awaitModifier,Kn(z.initializer),Ue(z.expression,Gt,nt),U_(z.statement,It,e)),U=B,z}function jt(z){return dl(z)&&Xe(z)}function Kn(z){if(jt(z)){let B;for(const le of z.declarations)B=gn(B,ve(le,!1)),le.initializer||De(le);return B?t.inlineExpressions(B):t.createOmittedExpression()}else return Ue(z,xn,Pf)}function br(z){return t.updateDoStatement(z,U_(z.statement,It,e),Ue(z.expression,Gt,nt))}function fi(z){return t.updateWhileStatement(z,Ue(z.expression,Gt,nt),U_(z.statement,It,e))}function Si(z){return t.updateLabeledStatement(z,z.label,E.checkDefined(Ue(z.statement,It,Ii,t.liftToBlock)))}function Nr(z){return t.updateWithStatement(z,Ue(z.expression,Gt,nt),E.checkDefined(Ue(z.statement,It,Ii,t.liftToBlock)))}function pt(z){return t.updateIfStatement(z,Ue(z.expression,Gt,nt),E.checkDefined(Ue(z.thenStatement,It,Ii,t.liftToBlock)),Ue(z.elseStatement,It,Ii,t.liftToBlock))}function ur(z){return t.updateSwitchStatement(z,Ue(z.expression,Gt,nt),E.checkDefined(Ue(z.caseBlock,It,a8)))}function yn(z){const B=U;return U=z,z=t.updateCaseBlock(z,An(z.clauses,It,u9)),U=B,z}function Ct(z){return t.updateCaseClause(z,Ue(z.expression,Gt,nt),An(z.statements,It,Ii))}function cn(z){return pn(z,It,e)}function In(z){return pn(z,It,e)}function xr(z){const B=U;return U=z,z=t.updateCatchClause(z,z.variableDeclaration,E.checkDefined(Ue(z.block,It,hs))),U=B,z}function wi(z){const B=U;return U=z,z=pn(z,It,e),U=B,z}function Zt(z,B){if(!(z.transformFlags&276828160))return z;switch(z.kind){case 248:return bt(z,!1);case 244:return Gr(z);case 217:return Er(z,B);case 360:return ze(z,B);case 226:if(Y0(z))return kt(z,B);break;case 213:if(Zu(z))return ut(z);break;case 224:case 225:return Ut(z,B)}return pn(z,Gt,e)}function Gt(z){return Zt(z,!1)}function xn(z){return Zt(z,!0)}function Gr(z){return t.updateExpressionStatement(z,Ue(z.expression,xn,nt))}function Er(z,B){return t.updateParenthesizedExpression(z,Ue(z.expression,B?xn:Gt,nt))}function ze(z,B){return t.updatePartiallyEmittedExpression(z,Ue(z.expression,B?xn:Gt,nt))}function ut(z){const B=gS(t,z,C,u,l,o),le=Ue(wl(z.arguments),Gt,nt),W=B&&(!le||!pa(le)||le.text!==B.text)?B:le;return t.createCallExpression(t.createPropertyAccessExpression(M,t.createIdentifier("import")),void 0,W?[W]:[])}function kt(z,B){return st(z.left)?_T(z,Gt,e,0,!B):pn(z,Gt,e)}function st(z){if(Kl(z,!0))return st(z.left);if(Bd(z))return st(z.expression);if(ha(z))return dt(z.properties,st);if(u_(z))return dt(z.elements,st);if(nf(z))return st(z.name);if(Dc(z))return st(z.initializer);if(we(z)){const B=l.getReferencedExportContainer(z);return B!==void 0&&B.kind===312}else return!1}function Ut(z,B){if((z.operator===46||z.operator===47)&&we(z.operand)&&!jo(z.operand)&&!Zg(z.operand)&&!Mq(z.operand)){const le=Jt(z.operand);if(le){let W,ge=Ue(z.operand,Gt,nt);Dy(z)?ge=t.updatePrefixUnaryExpression(z,ge):(ge=t.updatePostfixUnaryExpression(z,ge),B||(W=t.createTempVariable(a),ge=t.createAssignment(W,ge),Ke(ge,z)),ge=t.createComma(ge,t.cloneNode(z.operand)),Ke(ge,z));for(const F of le)ge=zt(F,Pt(ge));return W&&(ge=t.createComma(ge,W),Ke(ge,z)),ge}}return pn(z,Gt,e)}function ae(z){switch(z.kind){case 95:case 90:return}return z}function Me(z,B,le){if(B.kind===312){const W=t_(B);C=B,N=m[W],D=y[W],Y=x[W],M=k[W],Y&&delete x[W],g(z,B,le),C=void 0,N=void 0,D=void 0,M=void 0,Y=void 0}else g(z,B,le)}function ke(z,B){return B=f(z,B),hi(B)?B:z===1?$e(B):z===4?ft(B):B}function ft(z){switch(z.kind){case 304:return K(z)}return z}function K(z){var B,le;const W=z.name;if(!jo(W)&&!Zg(W)){const ge=l.getReferencedImportDeclaration(W);if(ge){if(Sm(ge))return Ke(t.createPropertyAssignment(t.cloneNode(W),t.createPropertyAccessExpression(t.getGeneratedNameForNode(ge.parent),t.createIdentifier("default"))),z);if(yu(ge))return Ke(t.createPropertyAssignment(t.cloneNode(W),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((le=(B=ge.parent)==null?void 0:B.parent)==null?void 0:le.parent)||ge),t.cloneNode(ge.propertyName||ge.name))),z)}}return z}function $e(z){switch(z.kind){case 80:return Ae(z);case 226:return yt(z);case 236:return _t(z)}return z}function Ae(z){var B,le;if(ma(z)&8192){const W=dA(C);return W?t.createPropertyAccessExpression(W,z):z}if(!jo(z)&&!Zg(z)){const W=l.getReferencedImportDeclaration(z);if(W){if(Sm(W))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(W.parent),t.createIdentifier("default")),z);if(yu(W))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((le=(B=W.parent)==null?void 0:B.parent)==null?void 0:le.parent)||W),t.cloneNode(W.propertyName||W.name)),z)}}return z}function yt(z){if(Q0(z.operatorToken.kind)&&we(z.left)&&(!jo(z.left)||bw(z.left))&&!Zg(z.left)){const B=Jt(z.left);if(B){let le=z;for(const W of B)le=zt(W,Pt(le));return le}}return z}function _t(z){return d6(z)?t.createPropertyAccessExpression(M,t.createIdentifier("meta")):z}function Jt(z){let B;const le=Ln(z);if(le){const W=l.getReferencedExportContainer(z,!1);W&&W.kind===312&&(B=gn(B,t.getDeclarationName(le))),B=Lr(B,N==null?void 0:N.exportedBindings[t_(le)])}else if(jo(z)&&bw(z)){const W=N==null?void 0:N.exportSpecifiers.get(z);if(W){const ge=[];for(const F of W)ge.push(F.name);return ge}}return B}function Ln(z){if(!jo(z)){const B=l.getReferencedImportDeclaration(z);if(B)return B;const le=l.getReferencedValueDeclaration(z);if(le&&(N==null?void 0:N.exportedBindings[t_(le)]))return le;const W=l.getReferencedValueDeclarations(z);if(W){for(const ge of W)if(ge!==le&&(N==null?void 0:N.exportedBindings[t_(ge)]))return ge}return le}}function Pt(z){return Y===void 0&&(Y=[]),Y[Ba(z)]=!0,z}function hi(z){return Y&&z.id&&Y[z.id]}}var f9e=Bt({"src/compiler/transformers/module/system.ts"(){Os()}});function aX(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),a=e.getEmitResolver(),o=e.getCompilerOptions(),l=Oa(o),u=e.onEmitNode,f=e.onSubstituteNode;e.onEmitNode=Y,e.onSubstituteNode=j,e.enableEmitNotification(312),e.enableSubstitution(80);let g,m,y;return Np(e,x);function x(R){if(R.isDeclarationFile)return R;if(zc(R)||ed(o)){m=R,y=void 0;let Z=k(R);return m=void 0,y&&(Z=t.updateSourceFile(Z,Ke(t.createNodeArray(kW(Z.statements.slice(),y)),Z.statements))),!zc(R)||dt(Z.statements,Cw)?Z:t.updateSourceFile(Z,Ke(t.createNodeArray([...Z.statements,uA(t)]),Z.statements))}return R}function k(R){const Z=yG(t,r(),R,o);if(Z){const oe=[],_e=t.copyPrologue(R.statements,oe);return gn(oe,Z),Lr(oe,An(R.statements,C,Ii,_e)),t.updateSourceFile(R,Ke(t.createNodeArray(oe),R.statements))}else return pn(R,C,e)}function C(R){switch(R.kind){case 271:return Ul(o)>=100?D(R):void 0;case 277:return V(R);case 278:return U(R)}return R}function N(R){const Z=gS(t,R,E.checkDefined(m),i,a,o),oe=[];if(Z&&oe.push(Z),!y){const X=t.createUniqueName("_createRequire",48),H=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),X)])),t.createStringLiteral("module")),Q=t.createUniqueName("__require",48),re=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Q,void 0,void 0,t.createCallExpression(t.cloneNode(X),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));y=[H,re]}const _e=y[1].declarationList.declarations[0].name;return E.assertNode(_e,we),t.createCallExpression(t.cloneNode(_e),void 0,oe)}function D(R){E.assert(gy(R),"import= for internal module references should be handled in an earlier transformer.");let Z;return Z=gn(Z,or(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(R.name),void 0,void 0,N(R))],l>=2?2:0)),R),R)),Z=M(Z,R),cm(Z)}function M(R,Z){return Mr(Z,1)&&(R=gn(R,t.createExportDeclaration(void 0,Z.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,lr(Z.name))])))),R}function V(R){return R.isExportEquals?void 0:R}function U(R){if(o.module!==void 0&&o.module>5||!R.exportClause||!og(R.exportClause)||!R.moduleSpecifier)return R;const Z=R.exportClause.name,oe=t.getGeneratedNameForNode(Z),_e=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(oe)),R.moduleSpecifier,R.assertClause);or(_e,R.exportClause);const X=b9(R)?t.createExportDefault(oe):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,oe,Z)]));return or(X,R),[_e,X]}function Y(R,Z,oe){Ri(Z)?((zc(Z)||ed(o))&&o.importHelpers&&(g=new Map),u(R,Z,oe),g=void 0):u(R,Z,oe)}function j(R,Z){return Z=f(R,Z),g&&we(Z)&&ma(Z)&8192?ee(Z):Z}function ee(R){const Z=lr(R);let oe=g.get(Z);return oe||g.set(Z,oe=t.createUniqueName(Z,48)),oe}}var p9e=Bt({"src/compiler/transformers/module/esnextAnd2015.ts"(){Os()}});function xge(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=aX(e),a=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=sX(e),u=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let g;return C;function m(D,M){return Ri(M)?(g=M,t(D,M)):g?g.impliedNodeFormat===99?a(D,M):u(D,M):t(D,M)}function y(D,M,V){return Ri(M)&&(g=M),g?g.impliedNodeFormat===99?o(D,M,V):f(D,M,V):r(D,M,V)}function x(D){return D.impliedNodeFormat===99?i:l}function k(D){if(D.isDeclarationFile)return D;g=D;const M=x(D)(D);return g=void 0,E.assert(Ri(M)),M}function C(D){return D.kind===312?k(D):N(D)}function N(D){return e.factory.createBundle(an(D.sourceFiles,k),D.prepends)}}var d9e=Bt({"src/compiler/transformers/module/node.ts"(){Os()}});function FL(e){return Mi(e)||Is(e)||mf(e)||Fa(e)||H0(e)||n1(e)||rA(e)||$6(e)||Ec(e)||ig(e)||tl(e)||ns(e)||Ho(e)||nh(e)||Hl(e)||wp(e)||wc(e)||Xb(e)||kr(e)||No(e)||rr(e)||Zf(e)}function Sge(e){if(H0(e)||n1(e))return t;return ig(e)||Ec(e)?i:ah(e);function t(o){const l=r(o);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(o){return Ps(e)?o.errorModuleName?o.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(o){const l=a(o);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function a(o){return Ps(e)?o.errorModuleName?o.accessibility===2?p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function ah(e){if(Mi(e)||Is(e)||mf(e)||kr(e)||No(e)||rr(e)||Fa(e)||wc(e))return r;return H0(e)||n1(e)?i:rA(e)||$6(e)||Ec(e)||ig(e)||tl(e)||Xb(e)?a:ns(e)?Du(e,e.parent)&&Mr(e.parent,8)?r:o:Ho(e)?u:nh(e)?f:Hl(e)?g:wp(e)||Zf(e)?m:E.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${E.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?p.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:p.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Mr(e.parent,8))return Ps(e)?y.errorModuleName?y.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?y.errorModuleName?y.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(y){const x=t(y);return x!==void 0?{diagnosticMessage:x,errorNode:e,typeName:e.name}:void 0}function i(y){let x;return e.kind===178?Ps(e)?x=y.errorModuleName?p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:x=y.errorModuleName?p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ps(e)?x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:x,errorNode:e.name,typeName:e.name}}function a(y){let x;switch(e.kind){case 180:x=y.errorModuleName?p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:x=y.errorModuleName?p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:x=y.errorModuleName?p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:Ps(e)?x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:x=y.errorModuleName?p.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:x=y.errorModuleName?y.accessibility===2?p.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return E.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:x,errorNode:e.name||e}}function o(y){const x=l(y);return x!==void 0?{diagnosticMessage:x,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Ps(e.parent)?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return E.fail(`Unknown parent for parameter: ${E.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 263:y=p.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=p.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=p.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=p.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=p.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:Ps(e.parent)?y=p.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=p.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=p.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=p.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=p.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=p.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return E.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function f(){let y;return Qc(e.parent.parent)?y=tf(e.parent)&&e.parent.token===119?p.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:p.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=p.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:os(e.parent.parent)}}function g(){return{diagnosticMessage:p.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(y){return{diagnosticMessage:y.errorModuleName?p.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:p.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Zf(e)?E.checkDefined(e.typeExpression):e.type,typeName:Zf(e)?os(e):e.name}}}var m9e=Bt({"src/compiler/transformers/declarations/diagnostics.ts"(){Os()}});function kge(e,t,r){const i=e.getCompilerOptions();return t5(t,e,I,i,r?[r]:Vr(e.getSourceFiles(),XW),[cX],!1).diagnostics}function Cge(e,t){const r=t.text.substring(e.pos,e.end);return Xl(r,"@internal")}function oX(e,t){const r=es(e);if(r&&r.kind===169){const a=r.parent.parameters.indexOf(r),o=a>0?r.parent.parameters[a-1]:void 0,l=t.text,u=o?Ki(ly(l,ua(l,o.end+1,!1,!0)),Hm(l,e.pos)):ly(l,ua(l,e.pos,!1,!0));return u&&u.length&&Cge(ka(u),t)}const i=r&&VW(r,t);return!!mn(i,a=>Cge(a,t))}function cX(e){const t=()=>E.fail("Diagnostic emitted without context");let r=t,i=!0,a=!1,o=!1,l=!1,u=!1,f,g,m,y,x,k;const{factory:C}=e,N=e.getEmitHost(),D={trackSymbol:ue,reportInaccessibleThisError:Xe,reportInaccessibleUniqueSymbolError:Ne,reportCyclicStructureError:De,reportPrivateInBaseOfClassExpression:fe,reportLikelyUnsafeImportRequiredError:ve,reportTruncationError:be,moduleResolverHost:N,trackReferencedAmbientModule:H,trackExternalModuleSymbolOfImportTypeNode:re,reportNonlocalAugmentation:xe,reportNonSerializableProperty:rt,reportImportTypeNodeResolutionModeOverride:ct};let M,V,U,Y,j,ee;const R=e.getEmitResolver(),Z=e.getCompilerOptions(),{noResolve:oe,stripInternal:_e}=Z;return Pe;function X(K){if(!!K){g=g||new Set;for(const $e of K)g.add($e)}}function H(K,$e){const Ae=R.getTypeReferenceDirectivesForSymbol($e,67108863);if(Pn(Ae))return X(Ae);const yt=Bn(K);Y.set(t_(yt),yt)}function Q(K){if(K.accessibility===0){if(K&&K.aliasesToMakeVisible)if(!m)m=K.aliasesToMakeVisible;else for(const $e of K.aliasesToMakeVisible)Gf(m,$e)}else{const $e=r(K);if($e)return $e.typeName?e.addDiagnostic(yr(K.errorNode||$e.errorNode,$e.diagnosticMessage,el($e.typeName),K.errorSymbolName,K.errorModuleName)):e.addDiagnostic(yr(K.errorNode||$e.errorNode,$e.diagnosticMessage,K.errorSymbolName,K.errorModuleName)),!0}return!1}function re(K){a||(k||(k=[])).push(K)}function ue(K,$e,Ae){if(K.flags&262144)return!1;const yt=Q(R.isSymbolAccessible(K,$e,Ae,!0));return X(R.getTypeReferenceDirectivesForSymbol(K,Ae)),yt}function fe(K){(M||V)&&e.addDiagnostic(yr(M||V,p.Property_0_of_exported_class_expression_may_not_be_private_or_protected,K))}function G(){return M?no(M):V&&os(V)?no(os(V)):V&&dc(V)?V.isExportEquals?"export=":"default":"(Missing)"}function Ne(){(M||V)&&e.addDiagnostic(yr(M||V,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,G(),"unique symbol"))}function De(){(M||V)&&e.addDiagnostic(yr(M||V,p.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,G()))}function Xe(){(M||V)&&e.addDiagnostic(yr(M||V,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,G(),"this"))}function ve(K){(M||V)&&e.addDiagnostic(yr(M||V,p.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,G(),K))}function be(){(M||V)&&e.addDiagnostic(yr(M||V,p.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function xe(K,$e,Ae){var yt;const _t=(yt=$e.declarations)==null?void 0:yt.find(Ln=>Bn(Ln)===K),Jt=Vr(Ae.declarations,Ln=>Bn(Ln)!==K);if(_t&&Jt)for(const Ln of Jt)e.addDiagnostic(fa(yr(Ln,p.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),yr(_t,p.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function rt(K){(M||V)&&e.addDiagnostic(yr(M||V,p.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,K))}function ct(){!mD()&&(M||V)&&e.addDiagnostic(yr(M||V,p.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function pe(K,$e){const Ae=r;r=_t=>_t.errorNode&&FL(_t.errorNode)?ah(_t.errorNode)(_t):{diagnosticMessage:_t.errorModuleName?p.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:p.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:_t.errorNode||K};const yt=R.getDeclarationStatementsForSourceFile(K,k2,D,$e);return r=Ae,yt}function Pe(K){if(K.kind===312&&K.isDeclarationFile)return K;if(K.kind===313){a=!0,Y=new Map,j=new Map;let B=!1;const le=C.createBundle(an(K.sourceFiles,F=>{if(F.isDeclarationFile)return;if(B=B||F.hasNoDefaultLib,U=F,f=F,m=void 0,x=!1,y=new Map,r=t,l=!1,u=!1,Ge(F,Y),tt(F,j),Yu(F)||Yf(F)){o=!1,i=!1;const Oe=P_(F)?C.createNodeArray(pe(F,!0)):An(F.statements,wi,Ii);return C.updateSourceFile(F,[C.createModuleDeclaration([C.createModifier(138)],C.createStringLiteral(K9(e.getEmitHost(),F)),C.createModuleBlock(Ke(C.createNodeArray(cn(Oe)),F.statements)))],!0,[],[],!1,[])}i=!0;const ye=P_(F)?C.createNodeArray(pe(F)):An(F.statements,wi,Ii);return C.updateSourceFile(F,cn(ye),!0,[],[],!1,[])}),qi(K.prepends,F=>{if(F.kind===315){const ye=PH(F,"dts",_e);return B=B||!!ye.hasNoDefaultLib,Ge(ye,Y),X(an(ye.typeReferenceDirectives,Oe=>[Oe.fileName,Oe.resolutionMode])),tt(ye,j),ye}return F}));le.syntheticFileReferences=[],le.syntheticTypeReferences=Pt(),le.syntheticLibReferences=Ln(),le.hasNoDefaultLib=B;const W=bi(zl(A8(K,N,!0).declarationFilePath)),ge=z(le.syntheticFileReferences,W);return Y.forEach(ge),le}i=!0,l=!1,u=!1,f=K,U=K,r=t,a=!1,o=!1,x=!1,m=void 0,y=new Map,g=void 0,Y=Ge(U,new Map),j=tt(U,new Map);const $e=[],Ae=bi(zl(A8(K,N,!0).declarationFilePath)),yt=z($e,Ae);let _t;if(P_(U))_t=C.createNodeArray(pe(K)),Y.forEach(yt),ee=Vr(_t,Lb);else{const B=An(K.statements,wi,Ii);_t=Ke(C.createNodeArray(cn(B)),K.statements),Y.forEach(yt),ee=Vr(_t,Lb),zc(K)&&(!o||l&&!u)&&(_t=Ke(C.createNodeArray([..._t,uA(C)]),_t))}const Jt=C.updateSourceFile(K,_t,!0,$e,Pt(),K.hasNoDefaultLib,Ln());return Jt.exportedModulesFromDeclarationEmit=k,Jt;function Ln(){return ia(j.keys(),B=>({fileName:B,pos:-1,end:-1}))}function Pt(){return g?qi(ia(g.keys()),hi):[]}function hi([B,le]){if(ee){for(const W of ee)if(Hl(W)&&km(W.moduleReference)){const ge=W.moduleReference.expression;if(Qa(ge)&&ge.text===B)return}else if(bl(W)&&pa(W.moduleSpecifier)&&W.moduleSpecifier.text===B)return}return{fileName:B,pos:-1,end:-1,...le?{resolutionMode:le}:void 0}}function z(B,le){return W=>{let ge;if(W.isDeclarationFile)ge=W.fileName;else{if(a&&gs(K.sourceFiles,W))return;const F=A8(W,N,!0);ge=F.declarationFilePath||F.jsFilePath||W.fileName}if(ge){const F=HA(Z,U,yo(le,N.getCurrentDirectory(),N.getCanonicalFileName),yo(ge,N.getCurrentDirectory(),N.getCanonicalFileName),N);if(!$u(F)){X([[F,void 0]]);return}let ye=wx(le,ge,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(ts(ye,"./")&&Hk(ye)&&(ye=ye.substring(2)),ts(ye,"node_modules/")||TS(ye))return;B.push({pos:-1,end:-1,fileName:ye})}}}}function Ge(K,$e){return oe||!tT(K)&&P_(K)||mn(K.referencedFiles,Ae=>{const yt=N.getSourceFileFromReference(K,Ae);yt&&$e.set(t_(yt),yt)}),$e}function tt(K,$e){return mn(K.libReferenceDirectives,Ae=>{N.getLibFileFromReference(Ae)&&$e.set(Qp(Ae.fileName),!0)}),$e}function mt(K){if(K.kind===80)return K;return K.kind===207?C.updateArrayBindingPattern(K,An(K.elements,$e,o9)):C.updateObjectBindingPattern(K,An(K.elements,$e,Fa));function $e(Ae){return Ae.kind===232?Ae:Ae.propertyName&&we(Ae.propertyName)&&we(Ae.name)&&!Ae.symbol.isReferenced&&!X9(Ae.propertyName)?C.updateBindingElement(Ae,Ae.dotDotDotToken,void 0,Ae.propertyName,at(Ae)?Ae.initializer:void 0):C.updateBindingElement(Ae,Ae.dotDotDotToken,Ae.propertyName,mt(Ae.name),at(Ae)?Ae.initializer:void 0)}}function Je(K,$e,Ae){let yt;x||(yt=r,r=ah(K));const _t=C.updateParameterDeclaration(K,h9e(C,K,$e),K.dotDotDotToken,mt(K.name),R.isOptionalParameter(K)?K.questionToken||C.createToken(58):void 0,It(K,Ae||K.type,!0),zt(K));return x||(r=yt),_t}function at(K){return y9e(K)&&R.isLiteralConstDeclaration(es(K))}function zt(K){if(at(K))return R.createLiteralConstValue(es(K),D)}function It(K,$e,Ae){if(!Ae&&Iu(K,8)||at(K))return;const yt=K.kind===169&&(R.isRequiredInitializedParameter(K)||R.isOptionalUninitializedParameterProperty(K));if($e&&!yt)return Ue($e,In,Di);if(!es(K))return $e?Ue($e,In,Di):C.createKeywordTypeNode(133);if(K.kind===178)return C.createKeywordTypeNode(133);M=K.name;let _t;if(x||(_t=r,r=ah(K)),K.kind===260||K.kind===208)return Jt(R.createTypeOfDeclaration(K,f,k2,D));if(K.kind===169||K.kind===172||K.kind===171)return mf(K)||!K.initializer?Jt(R.createTypeOfDeclaration(K,f,k2,D,yt)):Jt(R.createTypeOfDeclaration(K,f,k2,D,yt)||R.createTypeOfExpression(K.initializer,f,k2,D));return Jt(R.createReturnTypeOfSignatureDeclaration(K,f,k2,D));function Jt(Ln){return M=void 0,x||(r=_t),Ln||C.createKeywordTypeNode(133)}}function bt(K){switch(K=es(K),K.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!R.isDeclarationVisible(K);case 260:return!Tn(K);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function _r(K){var $e;if(K.body)return!0;const Ae=($e=K.symbol.declarations)==null?void 0:$e.filter(yt=>tl(yt)&&!yt.body);return!Ae||Ae.indexOf(K)===Ae.length-1}function Tn(K){return pl(K)?!1:Ns(K.name)?dt(K.name.elements,Tn):R.isDeclarationVisible(K)}function jt(K,$e,Ae){if(Iu(K,8))return C.createNodeArray();const yt=an($e,_t=>Je(_t,Ae));return yt?C.createNodeArray(yt,$e.hasTrailingComma):C.createNodeArray()}function Kn(K,$e){let Ae;if(!$e){const yt=i2(K);yt&&(Ae=[Je(yt)])}if(Fu(K)){let yt;if(!$e){const _t=y3(K);if(_t){const Jt=ke(K,R.getAllAccessorDeclarations(K));yt=Je(_t,void 0,Jt)}}yt||(yt=C.createParameterDeclaration(void 0,void 0,"value")),Ae=gn(Ae,yt)}return C.createNodeArray(Ae||Ve)}function br(K,$e){return Iu(K,8)?void 0:An($e,In,Ho)}function fi(K){return Ri(K)||wp(K)||Nc(K)||Qc(K)||f_(K)||ks(K)||Xb(K)||n8(K)}function Si(K,$e){const Ae=R.isEntityNameVisible(K,$e);Q(Ae),X(R.getTypeReferenceDirectivesForEntityName(K))}function Nr(K,$e){return Qu(K)&&Qu($e)&&(K.jsDoc=$e.jsDoc),Xc(K,Rd($e))}function pt(K,$e){if(!!$e){if(o=o||K.kind!==267&&K.kind!==205,Qa($e))if(a){const Ae=v_e(e.getEmitHost(),R,K);if(Ae)return C.createStringLiteral(Ae)}else{const Ae=R.getSymbolOfExternalModuleSpecifier($e);Ae&&(k||(k=[])).push(Ae)}return $e}}function ur(K){if(!!R.isDeclarationVisible(K))if(K.moduleReference.kind===283){const $e=a3(K);return C.updateImportEqualsDeclaration(K,K.modifiers,K.isTypeOnly,K.name,C.updateExternalModuleReference(K.moduleReference,pt(K,$e)))}else{const $e=r;return r=ah(K),Si(K.moduleReference,f),r=$e,K}}function yn(K){if(!K.importClause)return C.updateImportDeclaration(K,K.modifiers,K.importClause,pt(K,K.moduleSpecifier),Ct(K.assertClause));const $e=K.importClause&&K.importClause.name&&R.isDeclarationVisible(K.importClause)?K.importClause.name:void 0;if(!K.importClause.namedBindings)return $e&&C.updateImportDeclaration(K,K.modifiers,C.updateImportClause(K.importClause,K.importClause.isTypeOnly,$e,void 0),pt(K,K.moduleSpecifier),Ct(K.assertClause));if(K.importClause.namedBindings.kind===274){const yt=R.isDeclarationVisible(K.importClause.namedBindings)?K.importClause.namedBindings:void 0;return $e||yt?C.updateImportDeclaration(K,K.modifiers,C.updateImportClause(K.importClause,K.importClause.isTypeOnly,$e,yt),pt(K,K.moduleSpecifier),Ct(K.assertClause)):void 0}const Ae=qi(K.importClause.namedBindings.elements,yt=>R.isDeclarationVisible(yt)?yt:void 0);if(Ae&&Ae.length||$e)return C.updateImportDeclaration(K,K.modifiers,C.updateImportClause(K.importClause,K.importClause.isTypeOnly,$e,Ae&&Ae.length?C.updateNamedImports(K.importClause.namedBindings,Ae):void 0),pt(K,K.moduleSpecifier),Ct(K.assertClause));if(R.isImportRequiredByAugmentation(K))return C.updateImportDeclaration(K,K.modifiers,void 0,pt(K,K.moduleSpecifier),Ct(K.assertClause))}function Ct(K){if(ES(K)!==void 0)return mD()||e.addDiagnostic(yr(K,p.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),K}function cn(K){for(;Pn(m);){const Ae=m.shift();if(!x9(Ae))return E.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${E.formatSyntaxKind(Ae.kind)}`);const yt=i;i=Ae.parent&&Ri(Ae.parent)&&!(zc(Ae.parent)&&a);const _t=xn(Ae);i=yt,y.set(t_(Ae),_t)}return An(K,$e,Ii);function $e(Ae){if(x9(Ae)){const yt=t_(Ae);if(y.has(yt)){const _t=y.get(yt);return y.delete(yt),_t&&((Ds(_t)?dt(_t,c9):c9(_t))&&(l=!0),Ri(Ae.parent)&&(Ds(_t)?dt(_t,Cw):Cw(_t))&&(o=!0)),_t}}return Ae}}function In(K){if(kt(K)||l_(K)&&(bt(K)||$0(K)&&!R.isLateBound(es(K)))||ks(K)&&R.isImplementationOfOverload(K)||Pfe(K))return;let $e;fi(K)&&($e=f,f=K);const Ae=r,yt=FL(K),_t=x;let Jt=(K.kind===187||K.kind===200)&&K.parent.kind!==265;if((Ec(K)||ig(K))&&Iu(K,8))return K.symbol&&K.symbol.declarations&&K.symbol.declarations[0]!==K?void 0:Ln(C.createPropertyDeclaration(ae(K),K.name,void 0,void 0,void 0));if(yt&&!x&&(r=ah(K)),X6(K)&&Si(K.exprName,f),Jt&&(x=!0),b9e(K))switch(K.kind){case 233:{(Xu(K.expression)||Sc(K.expression))&&Si(K.expression,f);const Pt=pn(K,In,e);return Ln(C.updateExpressionWithTypeArguments(Pt,Pt.expression,Pt.typeArguments))}case 183:{Si(K.typeName,f);const Pt=pn(K,In,e);return Ln(C.updateTypeReferenceNode(Pt,Pt.typeName,Pt.typeArguments))}case 180:return Ln(C.updateConstructSignature(K,br(K,K.typeParameters),jt(K,K.parameters),It(K,K.type)));case 176:{const Pt=C.createConstructorDeclaration(ae(K),jt(K,K.parameters,0),void 0);return Ln(Pt)}case 174:{if(Ei(K.name))return Ln(void 0);const Pt=C.createMethodDeclaration(ae(K),void 0,K.name,K.questionToken,br(K,K.typeParameters),jt(K,K.parameters),It(K,K.type),void 0);return Ln(Pt)}case 177:{if(Ei(K.name))return Ln(void 0);const Pt=ke(K,R.getAllAccessorDeclarations(K));return Ln(C.updateGetAccessorDeclaration(K,ae(K),K.name,Kn(K,Iu(K,8)),It(K,Pt),void 0))}case 178:return Ei(K.name)?Ln(void 0):Ln(C.updateSetAccessorDeclaration(K,ae(K),K.name,Kn(K,Iu(K,8)),void 0));case 172:return Ei(K.name)?Ln(void 0):Ln(C.updatePropertyDeclaration(K,ae(K),K.name,K.questionToken,It(K,K.type),zt(K)));case 171:return Ei(K.name)?Ln(void 0):Ln(C.updatePropertySignature(K,ae(K),K.name,K.questionToken,It(K,K.type)));case 173:return Ei(K.name)?Ln(void 0):Ln(C.updateMethodSignature(K,ae(K),K.name,K.questionToken,br(K,K.typeParameters),jt(K,K.parameters),It(K,K.type)));case 179:return Ln(C.updateCallSignature(K,br(K,K.typeParameters),jt(K,K.parameters),It(K,K.type)));case 181:return Ln(C.updateIndexSignature(K,ae(K),jt(K,K.parameters),Ue(K.type,In,Di)||C.createKeywordTypeNode(133)));case 260:return Ns(K.name)?Er(K.name):(Jt=!0,x=!0,Ln(C.updateVariableDeclaration(K,K.name,void 0,It(K,K.type),zt(K))));case 168:return xr(K)&&(K.default||K.constraint)?Ln(C.updateTypeParameterDeclaration(K,K.modifiers,K.name,void 0,void 0)):Ln(pn(K,In,e));case 194:{const Pt=Ue(K.checkType,In,Di),hi=Ue(K.extendsType,In,Di),z=f;f=K.trueType;const B=Ue(K.trueType,In,Di);f=z;const le=Ue(K.falseType,In,Di);return E.assert(Pt),E.assert(hi),E.assert(B),E.assert(le),Ln(C.updateConditionalTypeNode(K,Pt,hi,B,le))}case 184:return Ln(C.updateFunctionTypeNode(K,An(K.typeParameters,In,Ho),jt(K,K.parameters),E.checkDefined(Ue(K.type,In,Di))));case 185:return Ln(C.updateConstructorTypeNode(K,ae(K),An(K.typeParameters,In,Ho),jt(K,K.parameters),E.checkDefined(Ue(K.type,In,Di))));case 205:return my(K)?Ln(C.updateImportTypeNode(K,C.updateLiteralTypeNode(K.argument,pt(K,K.argument.literal)),K.assertions,K.qualifier,An(K.typeArguments,In,Di),K.isTypeOf)):Ln(K);default:E.assertNever(K,`Attempted to process unhandled node kind: ${E.formatSyntaxKind(K.kind)}`)}return Q6(K)&&vo(U,K.pos).line===vo(U,K.end).line&&Xn(K,1),Ln(pn(K,In,e));function Ln(Pt){return Pt&&yt&&$0(K)&&ut(K),fi(K)&&(f=$e),yt&&!x&&(r=Ae),Jt&&(x=_t),Pt===K?Pt:Pt&&or(Nr(Pt,K),K)}}function xr(K){return K.parent.kind===174&&Iu(K.parent,8)}function wi(K){if(!v9e(K)||kt(K))return;switch(K.kind){case 278:return Ri(K.parent)&&(o=!0),u=!0,C.updateExportDeclaration(K,K.modifiers,K.isTypeOnly,K.exportClause,pt(K,K.moduleSpecifier),ES(K.assertClause)?K.assertClause:void 0);case 277:{if(Ri(K.parent)&&(o=!0),u=!0,K.expression.kind===80)return K;{const Ae=C.createUniqueName("_default",16);r=()=>({diagnosticMessage:p.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:K}),V=K;const yt=C.createVariableDeclaration(Ae,void 0,R.createTypeOfExpression(K.expression,K,k2,D),void 0);V=void 0;const _t=C.createVariableStatement(i?[C.createModifier(138)]:[],C.createVariableDeclarationList([yt],2));return Nr(_t,K),$D(K),[_t,C.updateExportAssignment(K,K.modifiers,Ae)]}}}const $e=xn(K);return y.set(t_(K),$e),K}function Zt(K){if(Hl(K)||Iu(K,1024)||!Ap(K))return K;const $e=C.createModifiersFromModifierFlags(I_(K)&258046);return C.updateModifiers(K,$e)}function Gt(K,$e,Ae,yt){const _t=C.updateModuleDeclaration(K,$e,Ae,yt);if(__(_t)||_t.flags&32)return _t;const Jt=C.createModuleDeclaration(_t.modifiers,_t.name,_t.body,_t.flags|32);return or(Jt,_t),Ke(Jt,_t),Jt}function xn(K){if(m)for(;mI(m,K););if(kt(K))return;switch(K.kind){case 271:return ur(K);case 272:return yn(K)}if(l_(K)&&bt(K)||ks(K)&&R.isImplementationOfOverload(K))return;let $e;fi(K)&&($e=f,f=K);const Ae=FL(K),yt=r;Ae&&(r=ah(K));const _t=i;switch(K.kind){case 265:{i=!1;const Ln=Jt(C.updateTypeAliasDeclaration(K,ae(K),K.name,An(K.typeParameters,In,Ho),E.checkDefined(Ue(K.type,In,Di))));return i=_t,Ln}case 264:return Jt(C.updateInterfaceDeclaration(K,ae(K),K.name,br(K,K.typeParameters),ft(K.heritageClauses),An(K.members,In,Nb)));case 262:{const Ln=Jt(C.updateFunctionDeclaration(K,ae(K),void 0,K.name,br(K,K.typeParameters),jt(K,K.parameters),It(K,K.type),void 0));if(Ln&&R.isExpandoFunctionDeclaration(K)&&_r(K)){const Pt=R.getPropertiesOfContainerFunction(K),hi=Cm.createModuleDeclaration(void 0,Ln.name||C.createIdentifier("_default"),C.createModuleBlock([]),32);Ta(hi,f),hi.locals=Us(Pt),hi.symbol=Pt[0].parent;const z=[];let B=qi(Pt,Oe=>{if(!Oe.valueDeclaration||!(kr(Oe.valueDeclaration)||No(Oe.valueDeclaration)||rr(Oe.valueDeclaration)))return;const We=Li(Oe.escapedName);if(!pf(We,99))return;r=ah(Oe.valueDeclaration);const Tt=R.createTypeOfDeclaration(Oe.valueDeclaration,hi,k2,D);r=yt;const Ot=Vx(We),on=Ot?C.getGeneratedNameForNode(Oe.valueDeclaration):C.createIdentifier(We);Ot&&z.push([on,We]);const Sn=C.createVariableDeclaration(on,void 0,Tt,void 0);return C.createVariableStatement(Ot?void 0:[C.createToken(95)],C.createVariableDeclarationList([Sn]))});z.length?B.push(C.createExportDeclaration(void 0,!1,C.createNamedExports(an(z,([Oe,We])=>C.createExportSpecifier(!1,Oe,We))))):B=qi(B,Oe=>C.updateModifiers(Oe,0));const le=C.createModuleDeclaration(ae(K),K.name,C.createModuleBlock(B),32);if(!Iu(Ln,1024))return[Ln,le];const W=C.createModifiersFromModifierFlags(I_(Ln)&-1026|2),ge=C.updateFunctionDeclaration(Ln,W,void 0,Ln.name,Ln.typeParameters,Ln.parameters,Ln.type,void 0),F=C.updateModuleDeclaration(le,W,le.name,le.body),ye=C.createExportAssignment(void 0,!1,le.name);return Ri(K.parent)&&(o=!0),u=!0,[ge,F,ye]}else return Ln}case 267:{i=!1;const Ln=K.body;if(Ln&&Ln.kind===268){const Pt=l,hi=u;u=!1,l=!1;const z=An(Ln.statements,wi,Ii);let B=cn(z);K.flags&33554432&&(l=!1),!Pd(K)&&!Ut(B)&&!u&&(l?B=C.createNodeArray([...B,uA(C)]):B=An(B,Zt,Ii));const le=C.updateModuleBlock(Ln,B);i=_t,l=Pt,u=hi;const W=ae(K);return Jt(Gt(K,W,Qv(K)?pt(K,K.name):K.name,le))}else{i=_t;const Pt=ae(K);i=!1,Ue(Ln,wi);const hi=t_(Ln),z=y.get(hi);return y.delete(hi),Jt(Gt(K,Pt,K.name,z))}}case 263:{M=K.name,V=K;const Ln=C.createNodeArray(ae(K)),Pt=br(K,K.typeParameters),hi=eg(K);let z;if(hi){const ye=r;z=M7(Na(hi.parameters,Oe=>{if(!Mr(Oe,16476)||kt(Oe))return;if(r=ah(Oe),Oe.name.kind===80)return Nr(C.createPropertyDeclaration(ae(Oe),Oe.name,Oe.questionToken,It(Oe,Oe.type),zt(Oe)),Oe);return We(Oe.name);function We(Tt){let Ot;for(const on of Tt.elements)pl(on)||(Ns(on.name)&&(Ot=Ki(Ot,We(on.name))),Ot=Ot||[],Ot.push(C.createPropertyDeclaration(ae(Oe),on.name,void 0,It(on,void 0),void 0)));return Ot}})),r=ye}const le=dt(K.members,ye=>!!ye.name&&Ei(ye.name))?[C.createPropertyDeclaration(void 0,C.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,W=Ki(Ki(le,z),An(K.members,In,Nl)),ge=C.createNodeArray(W),F=Id(K);if(F&&!Sc(F.expression)&&F.expression.kind!==106){const ye=K.name?Li(K.name.escapedText):"default",Oe=C.createUniqueName(`${ye}_base`,16);r=()=>({diagnosticMessage:p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:F,typeName:K.name});const We=C.createVariableDeclaration(Oe,void 0,R.createTypeOfExpression(F.expression,K,k2,D),void 0),Tt=C.createVariableStatement(i?[C.createModifier(138)]:[],C.createVariableDeclarationList([We],2)),Ot=C.createNodeArray(an(K.heritageClauses,on=>{if(on.token===96){const Sn=r;r=ah(on.types[0]);const ir=C.updateHeritageClause(on,an(on.types,ar=>C.updateExpressionWithTypeArguments(ar,Oe,An(ar.typeArguments,In,Di))));return r=Sn,ir}return C.updateHeritageClause(on,An(C.createNodeArray(Vr(on.types,Sn=>Sc(Sn.expression)||Sn.expression.kind===106)),In,nh))}));return[Tt,Jt(C.updateClassDeclaration(K,Ln,K.name,Pt,Ot,ge))]}else{const ye=ft(K.heritageClauses);return Jt(C.updateClassDeclaration(K,Ln,K.name,Pt,ye,ge))}}case 243:return Jt(Gr(K));case 266:return Jt(C.updateEnumDeclaration(K,C.createNodeArray(ae(K)),K.name,C.createNodeArray(qi(K.members,Ln=>{if(kt(Ln))return;const Pt=R.getConstantValue(Ln);return Nr(C.updateEnumMember(Ln,Ln.name,Pt!==void 0?typeof Pt=="string"?C.createStringLiteral(Pt):C.createNumericLiteral(Pt):void 0),Ln)}))))}return E.assertNever(K,`Unhandled top-level node in declaration emit: ${E.formatSyntaxKind(K.kind)}`);function Jt(Ln){return fi(K)&&(f=$e),Ae&&(r=yt),K.kind===267&&(i=_t),Ln===K?Ln:(V=void 0,M=void 0,Ln&&or(Nr(Ln,K),K))}}function Gr(K){if(!mn(K.declarationList.declarations,Tn))return;const $e=An(K.declarationList.declarations,In,Mi);if(!Pn($e))return;const Ae=C.createNodeArray(ae(K));let yt;return Mw(K.declarationList)||Lw(K.declarationList)?(yt=C.createVariableDeclarationList($e,2),or(yt,K.declarationList),Ke(yt,K.declarationList),Xc(yt,K.declarationList)):yt=C.updateVariableDeclarationList(K.declarationList,$e),C.updateVariableStatement(K,Ae,yt)}function Er(K){return vp(qi(K.elements,$e=>ze($e)))}function ze(K){if(K.kind!==232&&K.name)return Tn(K)?Ns(K.name)?Er(K.name):C.createVariableDeclaration(K.name,void 0,It(K,void 0),void 0):void 0}function ut(K){let $e;x||($e=r,r=Sge(K)),M=K.name,E.assert(R.isLateBound(es(K)));const yt=K.name.expression;Si(yt,f),x||(r=$e),M=void 0}function kt(K){return!!_e&&!!K&&oX(K,U)}function st(K){return dc(K)||Yc(K)}function Ut(K){return dt(K,st)}function ae(K){const $e=I_(K),Ae=Me(K);return $e===Ae?QA(K.modifiers,yt=>Hr(yt,Zs),Zs):C.createModifiersFromModifierFlags(Ae)}function Me(K){let $e=241147,Ae=i&&!g9e(K)?2:0;const yt=K.parent.kind===312;return(!yt||a&&yt&&zc(K.parent))&&($e^=2,Ae=0),Ege(K,$e,Ae)}function ke(K,$e){let Ae=lX(K);return!Ae&&K!==$e.firstAccessor&&(Ae=lX($e.firstAccessor),r=ah($e.firstAccessor)),!Ae&&$e.secondAccessor&&K!==$e.secondAccessor&&(Ae=lX($e.secondAccessor),r=ah($e.secondAccessor)),Ae}function ft(K){return C.createNodeArray(Vr(an(K,$e=>C.updateHeritageClause($e,An(C.createNodeArray(Vr($e.types,Ae=>Sc(Ae.expression)||$e.token===96&&Ae.expression.kind===106)),In,nh))),$e=>$e.types&&!!$e.types.length))}}function g9e(e){return e.kind===264}function h9e(e,t,r,i){return e.createModifiersFromModifierFlags(Ege(t,r,i))}function Ege(e,t=258043,r=0){let i=I_(e)&t|r;return i&1024&&!(i&1)&&(i^=1),i&1024&&i&2&&(i^=2),i}function lX(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function y9e(e){switch(e.kind){case 172:case 171:return!Iu(e,8);case 169:case 260:return!0}return!1}function v9e(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function b9e(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var k2,T9e=Bt({"src/compiler/transformers/declarations.ts"(){Os(),D$(),k2=531469}});function x9e(e){switch(e){case 99:case 7:case 6:case 5:return aX;case 4:return Tge;case 100:case 199:return xge;default:return sX}}function _X(e,t,r){return{scriptTransformers:S9e(e,t,r),declarationTransformers:k9e(t)}}function S9e(e,t,r){if(r)return Ve;const i=Oa(e),a=Ul(e),o=AD(e),l=[];return Lr(l,t&&an(t.before,Dge)),l.push(ege),e.experimentalDecorators&&l.push(ige),hO(e)&&l.push(pge),i<99&&l.push(uge),!e.experimentalDecorators&&(i<99||!o)&&l.push(sge),l.push(nge),i<8&&l.push(_ge),i<7&&l.push(lge),i<6&&l.push(cge),i<5&&l.push(oge),i<4&&l.push(age),i<3&&l.push(mge),i<2&&(l.push(hge),l.push(vge)),l.push(x9e(a)),i<1&&l.push(yge),Lr(l,t&&an(t.after,Dge)),l}function k9e(e){const t=[];return t.push(cX),Lr(t,e&&an(e.afterDeclarations,E9e)),t}function C9e(e){return t=>nG(t)?e.transformBundle(t):e.transformSourceFile(t)}function wge(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):C9e(i)}}function Dge(e){return wge(e,Np)}function E9e(e){return wge(e,(t,r)=>r)}function w8(e,t){return t}function e5(e,t,r){r(e,t)}function t5(e,t,r,i,a,o,l){var u,f;const g=new Array(363);let m,y,x,k=0,C=[],N=[],D=[],M=[],V=0,U=!1,Y=[],j=0,ee,R,Z=w8,oe=e5,_e=0;const X=[],H={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:wu(()=>mfe(H)),startLexicalEnvironment:pe,suspendLexicalEnvironment:Pe,resumeLexicalEnvironment:Ge,endLexicalEnvironment:tt,setLexicalEnvironmentFlags:mt,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:xe,hoistFunctionDeclaration:rt,addInitializationStatement:ct,startBlockScope:at,endBlockScope:zt,addBlockScopedVariable:It,requestEmitHelper:bt,readEmitHelpers:_r,enableSubstitution:G,enableEmitNotification:Xe,isSubstitutionEnabled:Ne,isEmitNotificationEnabled:ve,get onSubstituteNode(){return Z},set onSubstituteNode(jt){E.assert(_e<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(jt!==void 0,"Value must not be 'undefined'"),Z=jt},get onEmitNode(){return oe},set onEmitNode(jt){E.assert(_e<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(jt!==void 0,"Value must not be 'undefined'"),oe=jt},addDiagnostic(jt){X.push(jt)}};for(const jt of a)RH(Bn(es(jt)));ho("beforeTransform");const Q=o.map(jt=>jt(H)),re=jt=>{for(const Kn of Q)jt=Kn(jt);return jt};_e=1;const ue=[];for(const jt of a)(u=ci)==null||u.push(ci.Phase.Emit,"transformNodes",jt.kind===312?{path:jt.path}:{kind:jt.kind,pos:jt.pos,end:jt.end}),ue.push((l?re:fe)(jt)),(f=ci)==null||f.pop();return _e=2,ho("afterTransform"),Gu("transformTime","beforeTransform","afterTransform"),{transformed:ue,substituteNode:De,emitNodeWithNotification:be,isEmitNotificationEnabled:ve,dispose:Tn,diagnostics:X};function fe(jt){return jt&&(!Ri(jt)||!jt.isDeclarationFile)?re(jt):jt}function G(jt){E.assert(_e<2,"Cannot modify the transformation context after transformation has completed."),g[jt]|=1}function Ne(jt){return(g[jt.kind]&1)!==0&&(ma(jt)&8)===0}function De(jt,Kn){return E.assert(_e<3,"Cannot substitute a node after the result is disposed."),Kn&&Ne(Kn)&&Z(jt,Kn)||Kn}function Xe(jt){E.assert(_e<2,"Cannot modify the transformation context after transformation has completed."),g[jt]|=2}function ve(jt){return(g[jt.kind]&2)!==0||(ma(jt)&4)!==0}function be(jt,Kn,br){E.assert(_e<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Kn&&(ve(Kn)?oe(jt,Kn,br):br(jt,Kn))}function xe(jt){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed.");const Kn=Xn(r.createVariableDeclaration(jt),128);m?m.push(Kn):m=[Kn],k&1&&(k|=2)}function rt(jt){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),Xn(jt,2097152),y?y.push(jt):y=[jt]}function ct(jt){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),Xn(jt,2097152),x?x.push(jt):x=[jt]}function pe(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is suspended."),C[V]=m,N[V]=y,D[V]=x,M[V]=k,V++,m=void 0,y=void 0,x=void 0,k=0}function Pe(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is already suspended."),U=!0}function Ge(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(U,"Lexical environment is not suspended."),U=!1}function tt(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is suspended.");let jt;if(m||y||x){if(y&&(jt=[...y]),m){const Kn=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));Xn(Kn,2097152),jt?jt.push(Kn):jt=[Kn]}x&&(jt?jt=[...jt,...x]:jt=[...x])}return V--,m=C[V],y=N[V],x=D[V],k=M[V],V===0&&(C=[],N=[],D=[],M=[]),jt}function mt(jt,Kn){k=Kn?k|jt:k&~jt}function Je(){return k}function at(){E.assert(_e>0,"Cannot start a block scope during initialization."),E.assert(_e<2,"Cannot start a block scope after transformation has completed."),Y[j]=ee,j++,ee=void 0}function zt(){E.assert(_e>0,"Cannot end a block scope during initialization."),E.assert(_e<2,"Cannot end a block scope after transformation has completed.");const jt=dt(ee)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ee.map(Kn=>r.createVariableDeclaration(Kn)),1))]:void 0;return j--,ee=Y[j],j===0&&(Y=[]),jt}function It(jt){E.assert(j>0,"Cannot add a block scoped variable outside of an iteration body."),(ee||(ee=[])).push(jt)}function bt(jt){if(E.assert(_e>0,"Cannot modify the transformation context during initialization."),E.assert(_e<2,"Cannot modify the transformation context after transformation has completed."),E.assert(!jt.scoped,"Cannot request a scoped emit helper."),jt.dependencies)for(const Kn of jt.dependencies)bt(Kn);R=gn(R,jt)}function _r(){E.assert(_e>0,"Cannot modify the transformation context during initialization."),E.assert(_e<2,"Cannot modify the transformation context after transformation has completed.");const jt=R;return R=void 0,jt}function Tn(){if(_e<3){for(const jt of a)RH(Bn(es(jt)));m=void 0,C=void 0,y=void 0,N=void 0,Z=void 0,oe=void 0,R=void 0,_e=3}}}var uX,n0,w9e=Bt({"src/compiler/transformer.ts"(){Os(),Jv(),uX={scriptTransformers:Ve,declarationTransformers:Ve},n0={factory:I,getCompilerOptions:()=>({}),getEmitResolver:Ss,getEmitHost:Ss,getEmitHelperFactory:Ss,startLexicalEnvironment:_o,resumeLexicalEnvironment:_o,suspendLexicalEnvironment:_o,endLexicalEnvironment:ay,setLexicalEnvironmentFlags:_o,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:_o,hoistFunctionDeclaration:_o,addInitializationStatement:_o,startBlockScope:_o,endBlockScope:ay,addBlockScopedVariable:_o,requestEmitHelper:_o,readEmitHelpers:Ss,enableSubstitution:_o,enableEmitNotification:_o,isSubstitutionEnabled:Ss,isEmitNotificationEnabled:Ss,onSubstituteNode:w8,onEmitNode:e5,addDiagnostic:_o}}});function Age(e){return Hc(e,".tsbuildinfo")}function fX(e,t,r,i=!1,a,o){const l=Ds(r)?r:Tq(e,r,i),u=e.getCompilerOptions();if(Ao(u)){const f=e.getPrependNodes();if(l.length||f.length){const g=I.createBundle(l,f),m=t(A8(g,e,i),g);if(m)return m}}else{if(!a)for(const f of l){const g=t(A8(f,e,i),f);if(g)return g}if(o){const f=oh(u);if(f)return t({buildInfoPath:f},void 0)}}}function oh(e){const t=e.configFilePath;if(!DD(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Ao(e);let i;if(r)i=mu(r);else{if(!t)return;const a=mu(t);i=e.outDir?e.rootDir?$h(e.outDir,um(e.rootDir,a,!0)):Pi(e.outDir,Jl(a)):a}return i+".tsbuildinfo"}function D8(e,t){const r=Ao(e),i=e.emitDeclarationOnly?void 0:r,a=i&&Nge(i,e),o=t||Ep(e)?mu(r)+".d.ts":void 0,l=o&&dO(e)?o+".map":void 0,u=oh(e);return{jsFilePath:i,sourceMapFilePath:a,declarationFilePath:o,declarationMapPath:l,buildInfoPath:u}}function A8(e,t,r){const i=t.getCompilerOptions();if(e.kind===313)return D8(i,r);{const a=b_e(e.fileName,t,LL(e.fileName,i)),o=Yf(e),l=o&&Cb(e.fileName,a,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:a,f=!u||Yf(e)?void 0:Nge(u,i),g=r||Ep(i)&&!o?T_e(e.fileName,t):void 0,m=g&&dO(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:f,declarationFilePath:g,declarationMapPath:m,buildInfoPath:void 0}}}function Nge(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function LL(e,t){return Hc(e,".json")?".json":t.jsx===1&&Gc(e,[".jsx",".tsx"])?".jsx":Gc(e,[".mts",".mjs"])?".mjs":Gc(e,[".cts",".cjs"])?".cjs":".js"}function Pge(e,t,r,i,a){return i?$h(i,um(a?a():P8(t,r),e,r)):e}function N8(e,t,r,i){return Sy(Pge(e,t,r,t.options.declarationDir||t.options.outDir,i),yD(e))}function Ige(e,t,r,i){if(t.options.emitDeclarationOnly)return;const a=Hc(e,".json"),o=Sy(Pge(e,t,r,t.options.outDir,i),LL(e,t.options));return!a||Cb(e,o,E.checkDefined(t.options.configFilePath),r)!==0?o:void 0}function Oge(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Ve}}function Fge(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:a,declarationMapPath:o,buildInfoPath:l}=D8(e.options,!1);t(r),t(i),t(a),t(o),t(l)}function Lge(e,t,r,i,a){if(su(t))return;const o=Ige(t,e,r,a);if(i(o),!Hc(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),Ep(e.options))){const l=N8(t,e,r,a);i(l),e.options.declarationMap&&i(`${l}.map`)}}function n5(e,t,r,i,a){let o;return e.rootDir?(o=fs(e.rootDir,r),a==null||a(e.rootDir)):e.composite&&e.configFilePath?(o=bi(zl(e.configFilePath)),a==null||a(o)):o=Wge(t(),r,i),o&&o[o.length-1]!==Wo&&(o+=Wo),o}function P8({options:e,fileNames:t},r){return n5(e,()=>Vr(t,i=>!(e.noEmitForJsFiles&&Gc(i,W6))&&!su(i)),bi(zl(E.checkDefined(e.configFilePath))),Ql(!r))}function ML(e,t){const{addOutput:r,getOutputs:i}=Oge();if(Ao(e.options))Fge(e,r);else{const a=wu(()=>P8(e,t));for(const o of e.fileNames)Lge(e,o,t,r,a);r(oh(e.options))}return i()}function D9e(e,t,r){t=ba(t),E.assert(gs(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:a}=Oge();return Ao(e.options)?Fge(e,i):Lge(e,t,r,i),a()}function pX(e,t){if(Ao(e.options)){const{jsFilePath:a,declarationFilePath:o}=D8(e.options,!1);return E.checkDefined(a||o,`project ${e.options.configFilePath} expected to have at least one output`)}const r=wu(()=>P8(e,t));for(const a of e.fileNames){if(su(a))continue;const o=Ige(a,e,t,r);if(o)return o;if(!Hc(a,".json")&&Ep(e.options))return N8(a,e,t,r)}const i=oh(e.options);return i||E.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function RL(e,t,r,{scriptTransformers:i,declarationTransformers:a},o,l,u){var f=t.getCompilerOptions(),g=f.sourceMap||f.inlineSourceMap||dO(f)?[]:void 0,m=f.listEmittedFiles?[]:void 0,y=D6(),x=Z0(f),k=gD(x),{enter:C,exit:N}=kI("printTime","beforePrint","afterPrint"),D,M=!1;return C(),fX(t,V,Tq(t,r,u),u,l,!r),N(),{emitSkipped:M,diagnostics:y.getDiagnostics(),emittedFiles:m,sourceMaps:g};function V({jsFilePath:H,sourceMapFilePath:Q,declarationFilePath:re,declarationMapPath:ue,buildInfoPath:fe},G){var Ne,De,Xe,ve,be,xe;let rt;fe&&G&&nG(G)&&(rt=bi(fs(fe,t.getCurrentDirectory())),D={commonSourceDirectory:ct(t.getCommonSourceDirectory()),sourceFiles:G.sourceFiles.map(pe=>ct(fs(pe.fileName,t.getCurrentDirectory())))}),(Ne=ci)==null||Ne.push(ci.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:H}),Y(G,H,Q,ct),(De=ci)==null||De.pop(),(Xe=ci)==null||Xe.push(ci.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:re}),j(G,re,ue,ct),(ve=ci)==null||ve.pop(),(be=ci)==null||be.push(ci.Phase.Emit,"emitBuildInfo",{buildInfoPath:fe}),U(D,fe),(xe=ci)==null||xe.pop(),!M&&m&&(o||(H&&m.push(H),Q&&m.push(Q),fe&&m.push(fe)),o!==0&&(re&&m.push(re),ue&&m.push(ue)));function ct(pe){return Vv(um(rt,pe,t.getCanonicalFileName))}}function U(H,Q){if(!Q||r||M)return;if(t.isEmitBlocked(Q)){M=!0;return}const re=t.getBuildInfo(H)||r5(void 0,H);g3(t,y,Q,Mge(re),!1,void 0,{buildInfo:re})}function Y(H,Q,re,ue){if(!H||o||!Q)return;if(t.isEmitBlocked(Q)||f.noEmit){M=!0;return}const fe=t5(e,t,I,f,[H],i,!1),G={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:f.noEmitHelpers,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,inlineSources:f.inlineSources,extendedDiagnostics:f.extendedDiagnostics,writeBundleFileInfo:!!D,relativeToBuildInfo:ue},Ne=Ly(G,{hasGlobalName:e.hasGlobalName,onEmitNode:fe.emitNodeWithNotification,isEmitNotificationEnabled:fe.isEmitNotificationEnabled,substituteNode:fe.substituteNode});E.assert(fe.transformed.length===1,"Should only see one output from the transform"),R(Q,re,fe,Ne,f),fe.dispose(),D&&(D.js=Ne.bundleFileInfo)}function j(H,Q,re,ue){if(!H||o===0)return;if(!Q){(o||f.emitDeclarationOnly)&&(M=!0);return}const fe=Ri(H)?[H]:H.sourceFiles,G=u?fe:Vr(fe,XW),Ne=Ao(f)?[I.createBundle(G,Ri(H)?void 0:H.prepends)]:G;o&&!Ep(f)&&G.forEach(ee);const De=t5(e,t,I,f,Ne,a,!1);if(Pn(De.diagnostics))for(const xe of De.diagnostics)y.add(xe);const Xe={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:!0,module:f.module,target:f.target,sourceMap:!u&&f.declarationMap,inlineSourceMap:f.inlineSourceMap,extendedDiagnostics:f.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!D,recordInternalSection:!!D,relativeToBuildInfo:ue},ve=Ly(Xe,{hasGlobalName:e.hasGlobalName,onEmitNode:De.emitNodeWithNotification,isEmitNotificationEnabled:De.isEmitNotificationEnabled,substituteNode:De.substituteNode}),be=!!De.diagnostics&&!!De.diagnostics.length||!!t.isEmitBlocked(Q)||!!f.noEmit;M=M||be,(!be||u)&&(E.assert(De.transformed.length===1,"Should only see one output from the decl transform"),R(Q,re,De,ve,{sourceMap:Xe.sourceMap,sourceRoot:f.sourceRoot,mapRoot:f.mapRoot,extendedDiagnostics:f.extendedDiagnostics})),De.dispose(),D&&(D.dts=ve.bundleFileInfo)}function ee(H){if(dc(H)){H.expression.kind===80&&e.collectLinkedAliases(H.expression,!0);return}else if(p_(H)){e.collectLinkedAliases(H.propertyName||H.name,!0);return}ys(H,ee)}function R(H,Q,re,ue,fe){const G=re.transformed[0],Ne=G.kind===313?G:void 0,De=G.kind===312?G:void 0,Xe=Ne?Ne.sourceFiles:[De];let ve;Z(fe,G)&&(ve=Ime(t,Jl(zl(H)),oe(fe),_e(fe,H,De),fe)),Ne?ue.writeBundle(Ne,k,ve):ue.writeFile(De,k,ve);let be;if(ve){g&&g.push({inputSourceFileNames:ve.getSources(),sourceMap:ve.toJSON()});const rt=X(fe,ve,H,Q,De);if(rt&&(k.isAtStartOfLine()||k.rawWrite(x),be=k.getTextPos(),k.writeComment(`//# sourceMappingURL=${rt}`)),Q){const ct=ve.toString();g3(t,y,Q,ct,!1,Xe),ue.bundleFileInfo&&(ue.bundleFileInfo.mapHash=pT(ct,t))}}else k.writeLine();const xe=k.getText();g3(t,y,H,xe,!!f.emitBOM,Xe,{sourceMapUrlPos:be,diagnostics:re.diagnostics}),ue.bundleFileInfo&&(ue.bundleFileInfo.hash=pT(xe,t)),k.clear()}function Z(H,Q){return(H.sourceMap||H.inlineSourceMap)&&(Q.kind!==312||!Hc(Q.fileName,".json"))}function oe(H){const Q=zl(H.sourceRoot||"");return Q&&D_(Q)}function _e(H,Q,re){if(H.sourceRoot)return t.getCommonSourceDirectory();if(H.mapRoot){let ue=zl(H.mapRoot);return re&&(ue=bi(tO(re.fileName,t,ue))),_m(ue)===0&&(ue=Pi(t.getCommonSourceDirectory(),ue)),ue}return bi(ba(Q))}function X(H,Q,re,ue,fe){if(H.inlineSourceMap){const Ne=Q.toString();return`data:application/json;base64,${W_e(jl,Ne)}`}const G=Jl(zl(E.checkDefined(ue)));if(H.mapRoot){let Ne=zl(H.mapRoot);return fe&&(Ne=bi(tO(fe.fileName,t,Ne))),_m(Ne)===0?(Ne=Pi(t.getCommonSourceDirectory(),Ne),encodeURI(wx(bi(ba(re)),Pi(Ne,G),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Pi(Ne,G))}return encodeURI(G)}}function r5(e,t){return{bundle:t,program:e,version:F0}}function Mge(e){return JSON.stringify(e)}function BL(e,t){return Oq(e,t)}function A9e(e,t,r){var i;const a=E.checkDefined(e.js),o=((i=a.sources)==null?void 0:i.prologues)&&Mv(a.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{var x,k;const f=o==null?void 0:o.get(u),g=f==null?void 0:f.directives.map(C=>{const N=Ke(I.createStringLiteral(C.expression.text),C.expression),D=Ke(I.createExpressionStatement(N),C);return Ta(N,D),D}),m=I.createToken(1),y=I.createSourceFile(g!=null?g:[],m,0);return y.fileName=um(r.getCurrentDirectory(),fs(l,t),!r.useCaseSensitiveFileNames()),y.text=(x=f==null?void 0:f.text)!=null?x:"",j3(y,0,(k=f==null?void 0:f.text.length)!=null?k:0),B6(y.statements,y),j3(m,y.end,0),Ta(m,y),y})}function Rge(e,t,r,i){var a,o;(a=ci)==null||a.push(ci.Phase.Emit,"emitUsingBuildInfo",{},!0),ho("beforeEmit");const l=N9e(e,t,r,i);return ho("afterEmit"),Gu("Emit","beforeEmit","afterEmit"),(o=ci)==null||o.pop(),l}function N9e(e,t,r,i){const{buildInfoPath:a,jsFilePath:o,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:f}=D8(e.options,!1),g=t.getBuildInfo(a,e.options.configFilePath);if(!g||!g.bundle||!g.bundle.js||u&&!g.bundle.dts)return a;const m=t.readFile(E.checkDefined(o));if(!m||pT(m,t)!==g.bundle.js.hash)return o;const y=l&&t.readFile(l);if(l&&!y||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&pT(y,t)!==g.bundle.js.mapHash)return l;const x=u&&t.readFile(u);if(u&&!x||u&&pT(x,t)!==g.bundle.dts.hash)return u;const k=f&&t.readFile(f);if(f&&!k||e.options.inlineSourceMap)return f||"inline sourcemap decoding";if(f&&pT(k,t)!==g.bundle.dts.mapHash)return f;const C=bi(fs(a,t.getCurrentDirectory())),N=OH(o,m,l,y,u,x,f,k,a,g,!0),D=[],M=OX(e.projectReferences,r,ee=>t.readFile(ee),t),V=A9e(g.bundle,C,t);let U,Y;const j={getPrependNodes:wu(()=>[...M,N]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>fs(g.bundle.commonSourceDirectory,C),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:ay,getSourceFileByPath:ay,getSourceFiles:()=>V,getLibFileFromReference:Ss,isSourceFileFromExternalLibrary:B0,getResolvedProjectReferenceToRedirect:ay,getProjectReferenceRedirect:ay,isSourceOfProjectReferenceRedirect:B0,writeFile:(ee,R,Z,oe,_e,X)=>{switch(ee){case o:if(m===R)return;break;case l:if(y===R)return;break;case a:break;case u:if(x===R)return;U=R,Y=X;break;case f:if(k===R)return;break;default:E.fail(`Unexpected path: ${ee}`)}D.push({name:ee,text:R,writeByteOrderMark:Z,data:X})},isEmitBlocked:B0,readFile:ee=>t.readFile(ee),fileExists:ee=>t.fileExists(ee),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ee=>{const R=g.program;R&&U!==void 0&&e.options.composite&&(R.outSignature=pT(U,t,Y));const{js:Z,dts:oe,sourceFiles:_e}=g.bundle;return ee.js.sources=Z.sources,oe&&(ee.dts.sources=oe.sources),ee.sourceFiles=_e,r5(R,ee)},getSourceFileFromReference:ay,redirectTargetsMap:$f(),getFileIncludeReasons:Ss,createHash:Gs(t,t.createHash)};return RL(jL,j,void 0,_X(e.options,i)),D}function Ly(e={},t={}){var{hasGlobalName:r,onEmitNode:i=e5,isEmitNotificationEnabled:a,substituteNode:o=w8,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:f,onAfterEmitNodeArray:g,onBeforeEmitToken:m,onAfterEmitToken:y}=t,x=!!e.extendedDiagnostics,k=Z0(e),C=Ul(e),N=new Map,D,M,V,U,Y,j,ee,R,Z,oe,_e,X,H,Q,re,ue=e.preserveSourceNewlines,fe,G,Ne,De=sk,Xe,ve=e.writeBundleFileInfo?{sections:[]}:void 0,be=ve?E.checkDefined(e.relativeToBuildInfo):void 0,xe=e.recordInternalSection,rt=0,ct="text",pe=!0,Pe,Ge,tt=-1,mt,Je=-1,at=-1,zt=-1,It=-1,bt,_r,Tn=!1,jt=!!e.removeComments,Kn,br,{enter:fi,exit:Si}=Joe(x,"commentTime","beforeComment","afterComment"),Nr=I.parenthesizer,pt={select:S=>S===0?Nr.parenthesizeLeadingTypeArgument:void 0},ur=Zc();return K(),{printNode:yn,printList:Ct,printFile:In,printBundle:cn,writeNode:wi,writeList:Zt,writeFile:st,writeBundle:ut,bundleFileInfo:ve};function yn(S,ne,et){switch(S){case 0:E.assert(Ri(ne),"Expected a SourceFile node.");break;case 2:E.assert(we(ne),"Expected an Identifier node.");break;case 1:E.assert(nt(ne),"Expected an Expression node.");break}switch(ne.kind){case 312:return In(ne);case 313:return cn(ne);case 314:return xr(ne)}return wi(S,ne,et,Ut()),ae()}function Ct(S,ne,et){return Zt(S,ne,et,Ut()),ae()}function cn(S){return ut(S,Ut(),void 0),ae()}function In(S){return st(S,Ut(),void 0),ae()}function xr(S){return kt(S,Ut()),ae()}function wi(S,ne,et,Wt){const gr=G;ft(Wt,void 0),Me(S,ne,et),K(),G=gr}function Zt(S,ne,et,Wt){const gr=G;ft(Wt,void 0),et&&ke(et),so(void 0,ne,S),K(),G=gr}function Gt(){return G.getTextPosWithWriteLine?G.getTextPosWithWriteLine():G.getTextPos()}function xn(S,ne,et){const Wt=Bo(ve.sections);Wt&&Wt.kind===et?Wt.end=ne:ve.sections.push({pos:S,end:ne,kind:et})}function Gr(S){if(xe&&ve&&D&&(l_(S)||ic(S))&&oX(S,D)&&ct!=="internal"){const ne=ct;return ze(G.getTextPos()),rt=Gt(),ct="internal",ne}}function Er(S){S&&(ze(G.getTextPos()),rt=Gt(),ct=S)}function ze(S){return rtE.assert(eue(Js))),ve.sections.push({pos:yi,end:G.getTextPos(),kind:"prepend",data:be(gr.fileName),texts:ji}))}}rt=Gt();for(const gr of S.sourceFiles)Me(0,gr,gr);if(ve&&S.sourceFiles.length){const gr=G.getTextPos();if(ze(gr)){const yi=Mc(S);yi&&(ve.sources||(ve.sources={}),ve.sources.prologues=yi);const $r=Tt(S);$r&&(ve.sources||(ve.sources={}),ve.sources.helpers=$r)}}K(),G=Wt}function kt(S,ne){const et=G;ft(ne,void 0),Me(4,S,void 0),K(),G=et}function st(S,ne,et){Xe=!0;const Wt=G;ft(ne,et),I1(S),B2(S),Me(0,S,S),K(),G=Wt}function Ut(){return Ne||(Ne=gD(k))}function ae(){const S=Ne.getText();return Ne.clear(),S}function Me(S,ne,et){et&&ke(et),hi(S,ne,void 0)}function ke(S){D=S,bt=void 0,_r=void 0,S&&uk(S)}function ft(S,ne){S&&e.omitTrailingSemicolon&&(S=yq(S)),G=S,Pe=ne,pe=!G||!Pe}function K(){M=[],V=[],U=[],Y=new Set,j=[],ee=new Map,R=[],Z=0,oe=[],_e=0,X=[],H=void 0,Q=[],re=void 0,D=void 0,bt=void 0,_r=void 0,ft(void 0,void 0)}function $e(){return bt||(bt=zg(E.checkDefined(D)))}function Ae(S,ne){if(S===void 0)return;const et=Gr(S);hi(4,S,ne),Er(et)}function yt(S){S!==void 0&&hi(2,S,void 0)}function _t(S,ne){S!==void 0&&hi(1,S,ne)}function Jt(S){hi(pa(S)?6:4,S)}function Ln(S){ue&&Tp(S)&4&&(ue=!1)}function Pt(S){ue=S}function hi(S,ne,et){br=et,le(0,S,ne)(S,ne),br=void 0}function z(S){return!jt&&!Ri(S)}function B(S){return!pe&&!Ri(S)&&!j9(S)&&!tT(S)&&!Mfe(S)}function le(S,ne,et){switch(S){case 0:if(i!==e5&&(!a||a(et)))return ge;case 1:if(o!==w8&&(Kn=o(ne,et)||et)!==et)return br&&(Kn=br(Kn)),We;case 2:if(z(et))return $2;case 3:if(B(et))return uf;case 4:return F;default:return E.assertNever(S)}}function W(S,ne,et){return le(S+1,ne,et)}function ge(S,ne){const et=W(0,S,ne);i(S,ne,et)}function F(S,ne){if(l==null||l(ne),ue){const et=ue;Ln(ne),ye(S,ne),Pt(et)}else ye(S,ne);u==null||u(ne),br=void 0}function ye(S,ne,et=!0){if(et){const Wt=BH(ne);if(Wt)return ps(S,ne,Wt)}if(S===0)return P1(Ms(ne,Ri));if(S===2)return cs(Ms(ne,we));if(S===6)return ir(Ms(ne,pa),!0);if(S===3)return Oe(Ms(ne,Ho));if(S===5)return E.assertNode(ne,KH),rs(!0);if(S===4){switch(ne.kind){case 16:case 17:case 18:return ir(ne,!1);case 80:return cs(ne);case 81:return Fs(ne);case 166:return pi(ne);case 167:return tc(ne);case 168:return Ui(ne);case 169:return Cs(ne);case 170:return Ea(ne);case 171:return ro(ne);case 172:return Ja(ne);case 173:return Ic(ne);case 174:return ls(ne);case 175:return Oi(ne);case 176:return Vc(ne);case 177:case 178:return Jo(ne);case 179:return L_(ne);case 180:return _l(ne);case 181:return Rf(ne);case 182:return ja(ne);case 183:return La(ne);case 184:return qt(ne);case 185:return bo(ne);case 186:return Go(ne);case 187:return A(ne);case 188:return Ce(ne);case 189:return xt(ne);case 190:return Pr(ne);case 192:return wn(ne);case 193:return mr(ne);case 194:return oi(ne);case 195:return Ur(ne);case 196:return Ma(ne);case 233:return cd(ne);case 197:return io();case 198:return ac(ne);case 199:return Oc(ne);case 200:return gc(ne);case 201:return Ka(ne);case 202:return vn(ne);case 203:return nc(ne);case 204:return Ls(ne);case 205:return q_(ne);case 206:return Uc(ne);case 207:return zo(ne);case 208:return bu(ne);case 239:return At(ne);case 240:return mo();case 241:return Jn(ne);case 243:return di(ne);case 242:return rs(!1);case 244:return bs(ne);case 245:return Lo(ne);case 246:return xl(ne);case 247:return cf(ne);case 248:return y_(ne);case 249:return ld(ne);case 250:return Hd(ne);case 251:return Ee(ne);case 252:return je(ne);case 253:return zn(ne);case 254:return jr(ne);case 255:return Hi(ne);case 256:return Hn(ne);case 257:return cr(ne);case 258:return wr(ne);case 259:return ta(ne);case 260:return Lc(ne);case 261:return $o(ne);case 262:return ug(ne);case 263:return mh(ne);case 264:return w1(ne);case 265:return Uy(ne);case 266:return gh(ne);case 267:return IT(ne);case 268:return YS(ne);case 269:return OT(ne);case 270:return Wy(ne);case 271:return FT(ne);case 272:return LT(ne);case 273:return MT(ne);case 274:return O2(ne);case 280:return hh(ne);case 275:return RT(ne);case 276:return BT(ne);case 277:return ZS(ne);case 278:return jT(ne);case 279:return qy(ne);case 281:return F2(ne);case 300:return KS(ne);case 301:return D1(ne);case 282:return;case 283:return L2(ne);case 12:return bf(ne);case 286:case 289:return $d(ne);case 287:case 290:return Ju(ne);case 291:return Tu(ne);case 292:return ou(ne);case 293:return Hy(ne);case 294:return JT(ne);case 295:return N1(ne);case 296:return M2(ne);case 297:return zT(ne);case 298:return vh(ne);case 299:return al(ne);case 303:return Fe(ne);case 304:return l0(ne);case 305:return Tf(ne);case 306:return bh(ne);case 307:return jn(ne);case 314:case 308:return ar(ne);case 309:case 310:return ai(ne);case 311:return ea(ne);case 312:return P1(ne);case 313:return E.fail("Bundles should be printed using printBundle");case 315:return E.fail("InputFiles should not be printed");case 316:return xf(ne);case 317:return _0(ne);case 319:return Vn("*");case 320:return Vn("?");case 321:return h_(ne);case 322:return M_(ne);case 323:return W_(ne);case 324:return mc(ne);case 191:case 325:return Re(ne);case 326:return;case 327:return v_(ne);case 329:return Qy(ne);case 330:return pg(ne);case 334:case 339:case 344:return UT(ne);case 335:case 336:return ek(ne);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return VT(ne);case 346:return tk(ne);case 348:case 355:return Yy(ne);case 347:case 349:case 350:case 351:case 356:case 357:return up(ne);case 352:return Pa(ne);case 353:return fp(ne);case 354:return b_(ne);case 359:return}if(nt(ne)&&(S=1,o!==w8)){const Wt=o(S,ne)||ne;Wt!==ne&&(ne=Wt,br&&(ne=br(ne)))}}if(S===1)switch(ne.kind){case 9:case 10:return Sn(ne);case 11:case 14:case 15:return ir(ne,!1);case 80:return cs(ne);case 81:return Fs(ne);case 209:return he(ne);case 210:return vt(ne);case 211:return bn(ne);case 212:return Es(ne);case 213:return Ua(ne);case 214:return oc(ne);case 215:return se(ne);case 216:return qe(ne);case 217:return gt(ne);case 218:return Et(ne);case 219:return Qt(ne);case 220:return Cr(ne);case 221:return qr(ne);case 222:return li(ne);case 223:return ds(ne);case 224:return va(ne);case 225:return Ro(ne);case 226:return ur(ne);case 227:return Fc(ne);case 228:return il(ne);case 229:return Ml(ne);case 230:return sl(ne);case 231:return ju(ne);case 232:return;case 234:return E1(ne);case 235:return qd(ne);case 233:return cd(ne);case 238:return J(ne);case 236:return Be(ne);case 237:return E.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return yh(ne);case 285:return A1(ne);case 288:return fg(ne);case 358:return E.fail("SyntaxList should not be printed");case 359:return;case 360:return H_(ne);case 361:return U4(ne);case 362:return E.fail("SyntheticReferenceExpression should not be printed")}if(ru(ne.kind))return rv(ne,Yi);if(rW(ne.kind))return rv(ne,Vn);E.fail(`Unhandled SyntaxKind: ${E.formatSyntaxKind(ne.kind)}.`)}function Oe(S){Ae(S.name),Wn(),Yi("in"),Wn(),Ae(S.constraint)}function We(S,ne){const et=W(1,S,ne);E.assertIsDefined(Kn),ne=Kn,Kn=void 0,et(S,ne)}function Tt(S){let ne;if(C===0||e.noEmitHelpers)return;const et=new Map;for(const Wt of S.sourceFiles){const gr=dA(Wt)!==void 0,yi=on(Wt);if(!!yi)for(const $r of yi)!$r.scoped&&!gr&&!et.get($r.name)&&(et.set($r.name,!0),(ne||(ne=[])).push($r.name))}return ne}function Ot(S){let ne=!1;const et=S.kind===313?S:void 0;if(et&&C===0)return;const Wt=et?et.prepends.length:0,gr=et?et.sourceFiles.length+Wt:1;for(let yi=0;yi"),Wn(),Ae(S.type),yg(S)}function mc(S){Yi("function"),Sh(S,S.parameters),Vn(":"),Ae(S.type)}function h_(S){Vn("?"),Ae(S.type)}function M_(S){Vn("!"),Ae(S.type)}function W_(S){Ae(S.type),Vn("=")}function bo(S){G_(S),Lp(S,S.modifiers),Yi("new"),Wn(),Pm(S,S.typeParameters),Sh(S,S.parameters),Wn(),Vn("=>"),Wn(),Ae(S.type),yg(S)}function Go(S){Yi("typeof"),Wn(),Ae(S.exprName),ud(S,S.typeArguments)}function A(S){M1(0,void 0),Vn("{");const ne=ma(S)&1?768:32897;so(S,S.members,ne|524288),Vn("}"),vg()}function Ce(S){Ae(S.elementType,Nr.parenthesizeNonArrayTypeOfPostfixType),Vn("["),Vn("]")}function Re(S){Vn("..."),Ae(S.type)}function xt(S){Ye(23,S.pos,Vn,S);const ne=ma(S)&1?528:657;so(S,S.elements,ne|524288,Nr.parenthesizeElementTypeOfTupleType),Ye(24,S.elements.end,Vn,S)}function vn(S){Ae(S.dotDotDotToken),Ae(S.name),Ae(S.questionToken),Ye(59,S.name.end,Vn,S),Wn(),Ae(S.type)}function Pr(S){Ae(S.type,Nr.parenthesizeTypeOfOptionalType),Vn("?")}function wn(S){so(S,S.types,516,Nr.parenthesizeConstituentTypeOfUnionType)}function mr(S){so(S,S.types,520,Nr.parenthesizeConstituentTypeOfIntersectionType)}function oi(S){Ae(S.checkType,Nr.parenthesizeCheckTypeOfConditionalType),Wn(),Yi("extends"),Wn(),Ae(S.extendsType,Nr.parenthesizeExtendsTypeOfConditionalType),Wn(),Vn("?"),Wn(),Ae(S.trueType),Wn(),Vn(":"),Wn(),Ae(S.falseType)}function Ur(S){Yi("infer"),Wn(),Ae(S.typeParameter)}function Ma(S){Vn("("),Ae(S.type),Vn(")")}function io(){Yi("this")}function ac(S){dg(S.operator,Yi),Wn();const ne=S.operator===148?Nr.parenthesizeOperandOfReadonlyTypeOperator:Nr.parenthesizeOperandOfTypeOperator;Ae(S.type,ne)}function Oc(S){Ae(S.objectType,Nr.parenthesizeNonArrayTypeOfPostfixType),Vn("["),Ae(S.indexType),Vn("]")}function gc(S){const ne=ma(S);Vn("{"),ne&1?Wn():(ul(),fd()),S.readonlyToken&&(Ae(S.readonlyToken),S.readonlyToken.kind!==148&&Yi("readonly"),Wn()),Vn("["),hi(3,S.typeParameter),S.nameType&&(Wn(),Yi("as"),Wn(),Ae(S.nameType)),Vn("]"),S.questionToken&&(Ae(S.questionToken),S.questionToken.kind!==58&&Vn("?")),Vn(":"),Wn(),Ae(S.type),hc(),ne&1?Wn():(ul(),Rp()),so(S,S.members,2),Vn("}")}function Ka(S){_t(S.literal)}function nc(S){Ae(S.head),so(S,S.templateSpans,262144)}function q_(S){if(S.isTypeOf&&(Yi("typeof"),Wn()),Yi("import"),Vn("("),Ae(S.argument),S.assertions){Vn(","),Wn(),Vn("{"),Wn(),Yi("assert"),Vn(":"),Wn();const ne=S.assertions.assertClause.elements;so(S.assertions.assertClause,ne,526226),Wn(),Vn("}")}Vn(")"),S.qualifier&&(Vn("."),Ae(S.qualifier)),ud(S,S.typeArguments)}function Uc(S){Vn("{"),so(S,S.elements,525136),Vn("}")}function zo(S){Vn("["),so(S,S.elements,524880),Vn("]")}function bu(S){Ae(S.dotDotDotToken),S.propertyName&&(Ae(S.propertyName),Vn(":"),Wn()),Ae(S.name),Th(S.initializer,S.name.end,S,Nr.parenthesizeExpressionForDisallowedComma)}function he(S){const ne=S.elements,et=S.multiLine?65536:0;Zy(S,ne,8914|et,Nr.parenthesizeExpressionForDisallowedComma)}function vt(S){M1(0,void 0),mn(S.properties,m0);const ne=ma(S)&131072;ne&&fd();const et=S.multiLine?65536:0,Wt=D&&D.languageVersion>=1&&!Yf(D)?64:0;so(S,S.properties,526226|Wt|et),ne&&Rp(),vg()}function bn(S){_t(S.expression,Nr.parenthesizeLeftSideOfAccess);const ne=S.questionDotToken||Tm(I.createToken(25),S.expression.end,S.name.pos),et=dp(S,S.expression,ne),Wt=dp(S,ne,S.name);pd(et,!1),ne.kind!==29&&Bi(S.expression)&&!G.hasTrailingComment()&&!G.hasTrailingWhitespace()&&Vn("."),S.questionDotToken?Ae(ne):Ye(ne.kind,S.expression.end,Vn,S),pd(Wt,!1),Ae(S.name),p0(et,Wt)}function Bi(S){if(S=bp(S),Ou(S)){const ne=Su(S,!0,!1);return!(S.numericLiteralFlags&448)&&!Xl(ne,sa(25))&&!Xl(ne,String.fromCharCode(69))&&!Xl(ne,String.fromCharCode(101))}else if(Mo(S)){const ne=cfe(S);return typeof ne=="number"&&isFinite(ne)&&ne>=0&&Math.floor(ne)===ne}}function Es(S){_t(S.expression,Nr.parenthesizeLeftSideOfAccess),Ae(S.questionDotToken),Ye(23,S.expression.end,Vn,S),_t(S.argumentExpression),Ye(24,S.argumentExpression.end,Vn,S)}function Ua(S){const ne=Tp(S)&16;ne&&(Vn("("),ev("0"),Vn(","),Wn()),_t(S.expression,Nr.parenthesizeLeftSideOfAccess),ne&&Vn(")"),Ae(S.questionDotToken),ud(S,S.typeArguments),Zy(S,S.arguments,2576,Nr.parenthesizeExpressionForDisallowedComma)}function oc(S){Ye(105,S.pos,Yi,S),Wn(),_t(S.expression,Nr.parenthesizeExpressionOfNew),ud(S,S.typeArguments),Zy(S,S.arguments,18960,Nr.parenthesizeExpressionForDisallowedComma)}function se(S){const ne=Tp(S)&16;ne&&(Vn("("),ev("0"),Vn(","),Wn()),_t(S.tag,Nr.parenthesizeLeftSideOfAccess),ne&&Vn(")"),ud(S,S.typeArguments),Wn(),_t(S.template)}function qe(S){Vn("<"),Ae(S.type),Vn(">"),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function gt(S){const ne=Ye(21,S.pos,Vn,S),et=W2(S.expression,S);_t(S.expression,void 0),GT(S.expression,S),p0(et),Ye(22,S.expression?S.expression.end:ne,Vn,S)}function Et(S){Im(S.name),Gd(S)}function Qt(S){Lp(S,S.modifiers),Bf(S,Fn)}function Fn(S){Pm(S,S.typeParameters),z2(S,S.parameters),T_(S.type),Wn(),Ae(S.equalsGreaterThanToken)}function Cr(S){Ye(91,S.pos,Yi,S),Wn(),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function qr(S){Ye(114,S.pos,Yi,S),Wn(),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function li(S){Ye(116,S.pos,Yi,S),Wn(),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function ds(S){Ye(135,S.pos,Yi,S),Wn(),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function va(S){dg(S.operator,Mp),Fo(S)&&Wn(),_t(S.operand,Nr.parenthesizeOperandOfPrefixUnary)}function Fo(S){const ne=S.operand;return ne.kind===224&&(S.operator===40&&(ne.operator===40||ne.operator===46)||S.operator===41&&(ne.operator===41||ne.operator===47))}function Ro(S){_t(S.operand,Nr.parenthesizeOperandOfPostfixUnary),dg(S.operator,Mp)}function Zc(){return OF(S,ne,et,Wt,gr,void 0);function S($r,ji){if(ji){ji.stackIndex++,ji.preserveSourceNewlinesStack[ji.stackIndex]=ue,ji.containerPosStack[ji.stackIndex]=at,ji.containerEndStack[ji.stackIndex]=zt,ji.declarationListContainerEndStack[ji.stackIndex]=It;const Js=ji.shouldEmitCommentsStack[ji.stackIndex]=z($r),ni=ji.shouldEmitSourceMapsStack[ji.stackIndex]=B($r);l==null||l($r),Js&&QT($r),ni&&yc($r),Ln($r)}else ji={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ji}function ne($r,ji,Js){return yi($r,Js,"left")}function et($r,ji,Js){const ni=$r.kind!==28,Rl=dp(Js,Js.left,$r),kn=dp(Js,$r,Js.right);pd(Rl,ni),X_($r.pos),rv($r,$r.kind===103?Yi:Mp),_f($r.end,!0),pd(kn,!0)}function Wt($r,ji,Js){return yi($r,Js,"right")}function gr($r,ji){const Js=dp($r,$r.left,$r.operatorToken),ni=dp($r,$r.operatorToken,$r.right);if(p0(Js,ni),ji.stackIndex>0){const Rl=ji.preserveSourceNewlinesStack[ji.stackIndex],kn=ji.containerPosStack[ji.stackIndex],Dh=ji.containerEndStack[ji.stackIndex],Q_=ji.declarationListContainerEndStack[ji.stackIndex],Sg=ji.shouldEmitCommentsStack[ji.stackIndex],Ah=ji.shouldEmitSourceMapsStack[ji.stackIndex];Pt(Rl),Ah&&_k($r),Sg&&ov($r,kn,Dh,Q_),u==null||u($r),ji.stackIndex--}}function yi($r,ji,Js){const ni=Js==="left"?Nr.getParenthesizeLeftSideOfBinaryForOperator(ji.operatorToken.kind):Nr.getParenthesizeRightSideOfBinaryForOperator(ji.operatorToken.kind);let Rl=le(0,1,$r);if(Rl===We&&(E.assertIsDefined(Kn),$r=ni(Ms(Kn,nt)),Rl=W(1,1,$r),Kn=void 0),(Rl===$2||Rl===uf||Rl===F)&&rr($r))return $r;br=ni,Rl(1,$r)}}function Fc(S){const ne=dp(S,S.condition,S.questionToken),et=dp(S,S.questionToken,S.whenTrue),Wt=dp(S,S.whenTrue,S.colonToken),gr=dp(S,S.colonToken,S.whenFalse);_t(S.condition,Nr.parenthesizeConditionOfConditionalExpression),pd(ne,!0),Ae(S.questionToken),pd(et,!0),_t(S.whenTrue,Nr.parenthesizeBranchOfConditionalExpression),p0(ne,et),pd(Wt,!0),Ae(S.colonToken),pd(gr,!0),_t(S.whenFalse,Nr.parenthesizeBranchOfConditionalExpression),p0(Wt,gr)}function il(S){Ae(S.head),so(S,S.templateSpans,262144)}function Ml(S){Ye(127,S.pos,Yi,S),Ae(S.asteriskToken),O1(S.expression&&fn(S.expression),nn)}function sl(S){Ye(26,S.pos,Vn,S),_t(S.expression,Nr.parenthesizeExpressionForDisallowedComma)}function ju(S){Im(S.name),Vy(S)}function cd(S){_t(S.expression,Nr.parenthesizeLeftSideOfAccess),ud(S,S.typeArguments)}function E1(S){_t(S.expression,void 0),S.type&&(Wn(),Yi("as"),Wn(),Ae(S.type))}function qd(S){_t(S.expression,Nr.parenthesizeLeftSideOfAccess),Mp("!")}function J(S){_t(S.expression,void 0),S.type&&(Wn(),Yi("satisfies"),Wn(),Ae(S.type))}function Be(S){U2(S.keywordToken,S.pos,Vn),Vn("."),Ae(S.name)}function At(S){_t(S.expression),Ae(S.literal)}function Jn(S){vs(S,!S.multiLine&&Rc(S))}function vs(S,ne){Ye(19,S.pos,Vn,S);const et=ne||ma(S)&1?768:129;so(S,S.statements,et),Ye(20,S.statements.end,Vn,S,!!(et&1))}function di(S){xu(S,S.modifiers,!1),Ae(S.declarationList),hc()}function rs(S){S?Vn(";"):hc()}function bs(S){_t(S.expression,Nr.parenthesizeExpressionOfExpressionStatement),(!D||!Yf(D)||Do(S.expression))&&hc()}function Lo(S){const ne=Ye(101,S.pos,Yi,S);Wn(),Ye(21,ne,Vn,S),_t(S.expression),Ye(22,S.expression.end,Vn,S),f0(S,S.thenStatement),S.elseStatement&&(kh(S,S.thenStatement,S.elseStatement),Ye(93,S.thenStatement.end,Yi,S),S.elseStatement.kind===245?(Wn(),Ae(S.elseStatement)):f0(S,S.elseStatement))}function aa(S,ne){const et=Ye(117,ne,Yi,S);Wn(),Ye(21,et,Vn,S),_t(S.expression),Ye(22,S.expression.end,Vn,S)}function xl(S){Ye(92,S.pos,Yi,S),f0(S,S.statement),hs(S.statement)&&!ue?Wn():kh(S,S.statement,S.expression),aa(S,S.statement.end),hc()}function cf(S){aa(S,S.pos),f0(S,S.statement)}function y_(S){const ne=Ye(99,S.pos,Yi,S);Wn();let et=Ye(21,ne,Vn,S);Fp(S.initializer),et=Ye(27,S.initializer?S.initializer.end:et,Vn,S),O1(S.condition),et=Ye(27,S.condition?S.condition.end:et,Vn,S),O1(S.incrementor),Ye(22,S.incrementor?S.incrementor.end:et,Vn,S),f0(S,S.statement)}function ld(S){const ne=Ye(99,S.pos,Yi,S);Wn(),Ye(21,ne,Vn,S),Fp(S.initializer),Wn(),Ye(103,S.initializer.end,Yi,S),Wn(),_t(S.expression),Ye(22,S.expression.end,Vn,S),f0(S,S.statement)}function Hd(S){const ne=Ye(99,S.pos,Yi,S);Wn(),xh(S.awaitModifier),Ye(21,ne,Vn,S),Fp(S.initializer),Wn(),Ye(165,S.initializer.end,Yi,S),Wn(),_t(S.expression),Ye(22,S.expression.end,Vn,S),f0(S,S.statement)}function Fp(S){S!==void 0&&(S.kind===261?Ae(S):_t(S))}function Ee(S){Ye(88,S.pos,Yi,S),u0(S.label),hc()}function je(S){Ye(83,S.pos,Yi,S),u0(S.label),hc()}function Ye(S,ne,et,Wt,gr){const yi=es(Wt),$r=yi&&yi.kind===Wt.kind,ji=ne;if($r&&D&&(ne=ua(D.text,ne)),$r&&Wt.pos!==ji){const Js=gr&&D&&!tp(ji,ne,D);Js&&fd(),X_(ji),Js&&Rp()}if(ne=dg(S,et,ne),$r&&Wt.end!==ne){const Js=Wt.kind===294;_f(ne,!Js,Js)}return ne}function Rt(S){return S.kind===2||!!S.hasTrailingNewLine}function rn(S){return D?dt(Hm(D.text,S.pos),Rt)||dt(q6(S),Rt)?!0:vF(S)?S.pos!==S.expression.pos&&dt(ly(D.text,S.expression.pos),Rt)?!0:rn(S.expression):!1:!1}function fn(S){if(!jt&&vF(S)&&rn(S)){const ne=es(S);if(ne&&hu(ne)){const et=I.createParenthesizedExpression(S.expression);return or(et,S),Ke(et,ne),et}return I.createParenthesizedExpression(S)}return S}function nn(S){return fn(Nr.parenthesizeExpressionForDisallowedComma(S))}function zn(S){Ye(107,S.pos,Yi,S),O1(S.expression&&fn(S.expression),fn),hc()}function jr(S){const ne=Ye(118,S.pos,Yi,S);Wn(),Ye(21,ne,Vn,S),_t(S.expression),Ye(22,S.expression.end,Vn,S),f0(S,S.statement)}function Hi(S){const ne=Ye(109,S.pos,Yi,S);Wn(),Ye(21,ne,Vn,S),_t(S.expression),Ye(22,S.expression.end,Vn,S),Wn(),Ae(S.caseBlock)}function Hn(S){Ae(S.label),Ye(59,S.label.end,Vn,S),Wn(),Ae(S.statement)}function cr(S){Ye(111,S.pos,Yi,S),O1(fn(S.expression),fn),hc()}function wr(S){Ye(113,S.pos,Yi,S),Wn(),Ae(S.tryBlock),S.catchClause&&(kh(S,S.tryBlock,S.catchClause),Ae(S.catchClause)),S.finallyBlock&&(kh(S,S.catchClause||S.tryBlock,S.finallyBlock),Ye(98,(S.catchClause||S.tryBlock).end,Yi,S),Wn(),Ae(S.finallyBlock))}function ta(S){U2(89,S.pos,Yi),hc()}function Lc(S){var gr,yi;var ne,et,Wt;Ae(S.name),Ae(S.exclamationToken),T_(S.type),Th(S.initializer,(yi=(gr=(ne=S.type)==null?void 0:ne.end)!=null?gr:(Wt=(et=S.name.emitNode)==null?void 0:et.typeNode)==null?void 0:Wt.end)!=null?yi:S.name.end,S,Nr.parenthesizeExpressionForDisallowedComma)}function $o(S){if(Lw(S))Yi("await"),Wn(),Yi("using");else{const ne=C9(S)?"let":f6(S)?"const":Mw(S)?"using":"var";Yi(ne)}Wn(),so(S,S.declarations,528)}function ug(S){Gd(S)}function Gd(S){xu(S,S.modifiers,!1),Yi("function"),Ae(S.asteriskToken),Wn(),yt(S.name),Bf(S,a0)}function Bf(S,ne){const et=S.body;if(et)if(hs(et)){const Wt=ma(S)&131072;Wt&&fd(),G_(S),mn(S.parameters,fl),fl(S.body),ne(S),PT(et),yg(S),Wt&&Rp()}else ne(S),Wn(),_t(et,Nr.parenthesizeConciseBodyOfArrowFunction);else ne(S),hc()}function a0(S){Pm(S,S.typeParameters),Sh(S,S.parameters),T_(S.type)}function dh(S){if(ma(S)&1)return!0;if(S.multiLine||!Do(S)&&D&&!Wb(S,D)||mg(S,wl(S.statements),2)||gg(S,Bo(S.statements),2,S.statements))return!1;let ne;for(const et of S.statements){if(HT(ne,et,2)>0)return!1;ne=et}return!0}function PT(S){l==null||l(S),Wn(),Vn("{"),fd();const ne=dh(S)?z4:o0;ku(S,S.statements,ne),Rp(),U2(20,S.statements.end,Vn,S),u==null||u(S)}function z4(S){o0(S,!0)}function o0(S,ne){const et=Qd(S.statements),Wt=G.getTextPos();Ot(S),et===0&&Wt===G.getTextPos()&&ne?(Rp(),so(S,S.statements,768),fd()):so(S,S.statements,1,void 0,et)}function mh(S){Vy(S)}function Vy(S){M1(0,void 0),mn(S.members,m0),xu(S,S.modifiers,!0),Ye(86,Ld(S).pos,Yi,S),S.name&&(Wn(),yt(S.name));const ne=ma(S)&131072;ne&&fd(),Pm(S,S.typeParameters),so(S,S.heritageClauses,0),Wn(),Vn("{"),so(S,S.members,129),Vn("}"),ne&&Rp(),vg()}function w1(S){M1(0,void 0),xu(S,S.modifiers,!1),Yi("interface"),Wn(),Ae(S.name),Pm(S,S.typeParameters),so(S,S.heritageClauses,512),Wn(),Vn("{"),so(S,S.members,129),Vn("}"),vg()}function Uy(S){xu(S,S.modifiers,!1),Yi("type"),Wn(),Ae(S.name),Pm(S,S.typeParameters),Wn(),Vn("="),Wn(),Ae(S.type),hc()}function gh(S){xu(S,S.modifiers,!1),Yi("enum"),Wn(),Ae(S.name),Wn(),Vn("{"),so(S,S.members,145),Vn("}")}function IT(S){xu(S,S.modifiers,!1),~S.flags&2048&&(Yi(S.flags&32?"namespace":"module"),Wn()),Ae(S.name);let ne=S.body;if(!ne)return hc();for(;ne&&Nc(ne);)Vn("."),Ae(ne.name),ne=ne.body;Wn(),Ae(ne)}function YS(S){G_(S),mn(S.statements,fl),vs(S,Rc(S)),yg(S)}function OT(S){Ye(19,S.pos,Vn,S),so(S,S.clauses,129),Ye(20,S.clauses.end,Vn,S,!0)}function FT(S){xu(S,S.modifiers,!1),Ye(102,S.modifiers?S.modifiers.end:S.pos,Yi,S),Wn(),S.isTypeOnly&&(Ye(156,S.pos,Yi,S),Wn()),Ae(S.name),Wn(),Ye(64,S.name.end,Vn,S),Wn(),I2(S.moduleReference),hc()}function I2(S){S.kind===80?_t(S):Ae(S)}function LT(S){xu(S,S.modifiers,!1),Ye(102,S.modifiers?S.modifiers.end:S.pos,Yi,S),Wn(),S.importClause&&(Ae(S.importClause),Wn(),Ye(161,S.importClause.end,Yi,S),Wn()),_t(S.moduleSpecifier),S.assertClause&&u0(S.assertClause),hc()}function MT(S){S.isTypeOnly&&(Ye(156,S.pos,Yi,S),Wn()),Ae(S.name),S.name&&S.namedBindings&&(Ye(28,S.name.end,Vn,S),Wn()),Ae(S.namedBindings)}function O2(S){const ne=Ye(42,S.pos,Vn,S);Wn(),Ye(130,ne,Yi,S),Wn(),Ae(S.name)}function RT(S){c0(S)}function BT(S){xa(S)}function ZS(S){const ne=Ye(95,S.pos,Yi,S);Wn(),S.isExportEquals?Ye(64,ne,Mp,S):Ye(90,ne,Yi,S),Wn(),_t(S.expression,S.isExportEquals?Nr.getParenthesizeRightSideOfBinaryForOperator(64):Nr.parenthesizeExpressionOfExportDefault),hc()}function jT(S){xu(S,S.modifiers,!1);let ne=Ye(95,S.pos,Yi,S);if(Wn(),S.isTypeOnly&&(ne=Ye(156,ne,Yi,S),Wn()),S.exportClause?Ae(S.exportClause):ne=Ye(42,ne,Vn,S),S.moduleSpecifier){Wn();const et=S.exportClause?S.exportClause.end:ne;Ye(161,et,Yi,S),Wn(),_t(S.moduleSpecifier)}S.assertClause&&u0(S.assertClause),hc()}function KS(S){Ye(132,S.pos,Yi,S),Wn();const ne=S.elements;so(S,ne,526226)}function D1(S){Ae(S.name),Vn(":"),Wn();const ne=S.value;if((ma(ne)&1024)===0){const et=Rd(ne);_f(et.pos)}Ae(ne)}function Wy(S){let ne=Ye(95,S.pos,Yi,S);Wn(),ne=Ye(130,ne,Yi,S),Wn(),ne=Ye(145,ne,Yi,S),Wn(),Ae(S.name),hc()}function hh(S){const ne=Ye(42,S.pos,Vn,S);Wn(),Ye(130,ne,Yi,S),Wn(),Ae(S.name)}function qy(S){c0(S)}function F2(S){xa(S)}function c0(S){Vn("{"),so(S,S.elements,525136),Vn("}")}function xa(S){S.isTypeOnly&&(Yi("type"),Wn()),S.propertyName&&(Ae(S.propertyName),Wn(),Ye(130,S.propertyName.end,Yi,S),Wn()),Ae(S.name)}function L2(S){Yi("require"),Vn("("),_t(S.expression),Vn(")")}function yh(S){Ae(S.openingElement),so(S,S.children,262144),Ae(S.closingElement)}function A1(S){Vn("<"),Xy(S.tagName),ud(S,S.typeArguments),Wn(),Ae(S.attributes),Vn("/>")}function fg(S){Ae(S.openingFragment),so(S,S.children,262144),Ae(S.closingFragment)}function $d(S){if(Vn("<"),Jd(S)){const ne=W2(S.tagName,S);Xy(S.tagName),ud(S,S.typeArguments),S.attributes.properties&&S.attributes.properties.length>0&&Wn(),Ae(S.attributes),GT(S.attributes,S),p0(ne)}Vn(">")}function bf(S){G.writeLiteral(S.text)}function Ju(S){Vn("")}function ou(S){so(S,S.properties,262656)}function Tu(S){Ae(S.name),J2("=",Vn,S.initializer,Jt)}function Hy(S){Vn("{..."),_t(S.expression),Vn("}")}function Gy(S){let ne=!1;return uw((D==null?void 0:D.text)||"",S+1,()=>ne=!0),ne}function V4(S){let ne=!1;return _w((D==null?void 0:D.text)||"",S+1,()=>ne=!0),ne}function $y(S){return Gy(S)||V4(S)}function JT(S){var ne;if(S.expression||!jt&&!Do(S)&&$y(S.pos)){const et=D&&!Do(S)&&vo(D,S.pos).line!==vo(D,S.end).line;et&&G.increaseIndent();const Wt=Ye(19,S.pos,Vn,S);Ae(S.dotDotDotToken),_t(S.expression),Ye(20,((ne=S.expression)==null?void 0:ne.end)||Wt,Vn,S),et&&G.decreaseIndent()}}function N1(S){yt(S.namespace),Vn(":"),yt(S.name)}function Xy(S){S.kind===80?_t(S):Ae(S)}function M2(S){Ye(84,S.pos,Yi,S),Wn(),_t(S.expression,Nr.parenthesizeExpressionForDisallowedComma),R2(S,S.statements,S.expression.end)}function zT(S){const ne=Ye(90,S.pos,Yi,S);R2(S,S.statements,ne)}function R2(S,ne,et){const Wt=ne.length===1&&(!D||Do(S)||Do(ne[0])||aO(S,ne[0],D));let gr=163969;Wt?(U2(59,et,Vn,S),Wn(),gr&=-130):Ye(59,et,Vn,S),so(S,ne,gr)}function vh(S){Wn(),dg(S.token,Yi),Wn(),so(S,S.types,528)}function al(S){const ne=Ye(85,S.pos,Yi,S);Wn(),S.variableDeclaration&&(Ye(21,ne,Vn,S),Ae(S.variableDeclaration),Ye(22,S.variableDeclaration.end,Vn,S),Wn()),Ae(S.block)}function Fe(S){Ae(S.name),Vn(":"),Wn();const ne=S.initializer;if((ma(ne)&1024)===0){const et=Rd(ne);_f(et.pos)}_t(ne,Nr.parenthesizeExpressionForDisallowedComma)}function l0(S){Ae(S.name),S.objectAssignmentInitializer&&(Wn(),Vn("="),Wn(),_t(S.objectAssignmentInitializer,Nr.parenthesizeExpressionForDisallowedComma))}function Tf(S){S.expression&&(Ye(26,S.pos,Vn,S),_t(S.expression,Nr.parenthesizeExpressionForDisallowedComma))}function bh(S){Ae(S.name),Th(S.initializer,S.name.end,S,Nr.parenthesizeExpressionForDisallowedComma)}function v_(S){if(De("/**"),S.comment){const ne=yw(S.comment);if(ne){const et=ne.split(/\r\n?|\n/g);for(const Wt of et)ul(),Wn(),Vn("*"),Wn(),De(Wt)}}S.tags&&(S.tags.length===1&&S.tags[0].kind===351&&!S.comment?(Wn(),Ae(S.tags[0])):so(S,S.tags,33)),Wn(),De("*/")}function up(S){_d(S.tagName),xf(S.typeExpression),Nm(S.comment)}function b_(S){_d(S.tagName),Ae(S.name),Nm(S.comment)}function _0(S){Wn(),Vn("{"),Ae(S.name),Vn("}")}function ek(S){_d(S.tagName),Wn(),Vn("{"),Ae(S.class),Vn("}"),Nm(S.comment)}function Pa(S){_d(S.tagName),xf(S.constraint),Wn(),so(S,S.typeParameters,528),Nm(S.comment)}function fp(S){_d(S.tagName),S.typeExpression&&(S.typeExpression.kind===316?xf(S.typeExpression):(Wn(),Vn("{"),De("Object"),S.typeExpression.isArrayType&&(Vn("["),Vn("]")),Vn("}"))),S.fullName&&(Wn(),Ae(S.fullName)),Nm(S.comment),S.typeExpression&&S.typeExpression.kind===329&&Qy(S.typeExpression)}function VT(S){_d(S.tagName),S.name&&(Wn(),Ae(S.name)),Nm(S.comment),pg(S.typeExpression)}function tk(S){Nm(S.comment),pg(S.typeExpression)}function UT(S){_d(S.tagName),Nm(S.comment)}function Qy(S){so(S,I.createNodeArray(S.jsDocPropertyTags),33)}function pg(S){S.typeParameters&&so(S,I.createNodeArray(S.typeParameters),33),S.parameters&&so(S,I.createNodeArray(S.parameters),33),S.type&&(ul(),Wn(),Vn("*"),Wn(),Ae(S.type))}function Yy(S){_d(S.tagName),xf(S.typeExpression),Wn(),S.isBracketed&&Vn("["),Ae(S.name),S.isBracketed&&Vn("]"),Nm(S.comment)}function _d(S){Vn("@"),Ae(S)}function Nm(S){const ne=yw(S);ne&&(Wn(),De(ne))}function xf(S){S&&(Wn(),Vn("{"),Ae(S.type),Vn("}"))}function P1(S){ul();const ne=S.statements;if(ne.length===0||!xp(ne[0])||Do(ne[0])){ku(S,ne,Xd);return}Xd(S)}function WT(S){Jr(!!S.hasNoDefaultLib,S.syntheticFileReferences||[],S.syntheticTypeReferences||[],S.syntheticLibReferences||[]);for(const ne of S.prepends)if(tT(ne)&&ne.syntheticReferences)for(const et of ne.syntheticReferences)Ae(et),ul()}function Fi(S){S.isDeclarationFile&&Jr(S.hasNoDefaultLib,S.referencedFiles,S.typeReferenceDirectives,S.libReferenceDirectives)}function Jr(S,ne,et,Wt){if(S){const gr=G.getTextPos();Yd('/// '),ve&&ve.sections.push({pos:gr,end:G.getTextPos(),kind:"no-default-lib"}),ul()}if(D&&D.moduleName&&(Yd(`/// `),ul()),D&&D.amdDependencies)for(const gr of D.amdDependencies)gr.name?Yd(`/// `):Yd(`/// `),ul();for(const gr of ne){const yi=G.getTextPos();Yd(`/// `),ve&&ve.sections.push({pos:yi,end:G.getTextPos(),kind:"reference",data:gr.fileName}),ul()}for(const gr of et){const yi=G.getTextPos(),$r=gr.resolutionMode&&gr.resolutionMode!==(D==null?void 0:D.impliedNodeFormat)?`resolution-mode="${gr.resolutionMode===99?"import":"require"}"`:"";Yd(`/// `),ve&&ve.sections.push({pos:yi,end:G.getTextPos(),kind:gr.resolutionMode?gr.resolutionMode===99?"type-import":"type-require":"type",data:gr.fileName}),ul()}for(const gr of Wt){const yi=G.getTextPos();Yd(`/// `),ve&&ve.sections.push({pos:yi,end:G.getTextPos(),kind:"lib",data:gr.fileName}),ul()}}function Xd(S){const ne=S.statements;G_(S),mn(S.statements,fl),Ot(S);const et=qc(ne,Wt=>!xp(Wt));Fi(S),so(S,ne,1,void 0,et===-1?ne.length:et),yg(S)}function H_(S){const ne=ma(S);!(ne&1024)&&S.pos!==S.expression.pos&&_f(S.expression.pos),_t(S.expression),!(ne&2048)&&S.end!==S.expression.end&&X_(S.expression.end)}function U4(S){Zy(S,S.elements,528,void 0)}function Qd(S,ne,et,Wt){let gr=!!ne;for(let yi=0;yi=et.length||$r===0;if(Js&&Wt&32768){f==null||f(et),g==null||g(et);return}Wt&15360&&(Vn(I9e(Wt)),Js&&et&&_f(et.pos,!0)),f==null||f(et),Js?Wt&1&&!(ue&&(!ne||D&&Wb(ne,D)))?ul():Wt&256&&!(Wt&524288)&&Wn():Ky(S,ne,et,Wt,gr,yi,$r,et.hasTrailingComma,et),g==null||g(et),Wt&15360&&(Js&&et&&X_(et.end),Vn(O9e(Wt)))}function Ky(S,ne,et,Wt,gr,yi,$r,ji,Js){const ni=(Wt&262144)===0;let Rl=ni;const kn=mg(ne,et[yi],Wt);kn?(ul(kn),Rl=!1):Wt&256&&Wn(),Wt&128&&fd();const Dh=R9e(S,gr);let Q_,Sg,Ah=!1;for(let V1=0;V1<$r;V1++){const U1=et[yi+V1];if(Wt&32)ul(),ik(Wt);else if(Q_){Wt&60&&Q_.end!==(ne?ne.end:-1)&&(ma(Q_)&2048||X_(Q_.end)),ik(Wt),Er(Sg);const _v=HT(Q_,U1,Wt);_v>0?((Wt&131)===0&&(fd(),Ah=!0),ul(_v),Rl=!1):Q_&&Wt&512&&Wn()}if(Sg=Gr(U1),Rl){const _v=Rd(U1);_f(_v.pos)}else Rl=ni;fe=U1.pos,Dh(U1,S,gr,V1),Ah&&(Rp(),Ah=!1),Q_=U1}const nb=Q_?ma(Q_):0,fk=jt||!!(nb&2048),kg=ji&&Wt&64&&Wt&16;kg&&(Q_&&!fk?Ye(28,Q_.end,Vn,Q_):Vn(",")),Q_&&(ne?ne.end:-1)!==Q_.end&&Wt&60&&!fk&&X_(kg&&(Js==null?void 0:Js.end)?Js.end:Q_.end),Wt&128&&Rp(),Er(Sg);const h0=gg(ne,et[yi+$r-1],Wt,Js);h0?ul(h0):Wt&2097408&&Wn()}function ev(S){G.writeLiteral(S)}function q4(S){G.writeStringLiteral(S)}function sk(S){G.write(S)}function V2(S,ne){G.writeSymbol(S,ne)}function Vn(S){G.writePunctuation(S)}function hc(){G.writeTrailingSemicolon(";")}function Yi(S){G.writeKeyword(S)}function Mp(S){G.writeOperator(S)}function F1(S){G.writeParameter(S)}function Yd(S){G.writeComment(S)}function Wn(){G.writeSpace(" ")}function tv(S){G.writeProperty(S)}function nv(S){G.nonEscapingWrite?G.nonEscapingWrite(S):G.write(S)}function ul(S=1){for(let ne=0;ne0)}function fd(){G.increaseIndent()}function Rp(){G.decreaseIndent()}function U2(S,ne,et,Wt){return pe?dg(S,et,ne):K2(Wt,S,et,ne,dg)}function rv(S,ne){m&&m(S),ne(sa(S.kind)),y&&y(S)}function dg(S,ne,et){const Wt=sa(S);return ne(Wt),et<0?et:et+Wt.length}function kh(S,ne,et){if(ma(S)&1)Wn();else if(ue){const Wt=dp(S,ne,et);Wt?ul(Wt):Wn()}else ul()}function ak(S){const ne=S.split(/\r\n?|\n/g),et=ple(ne);for(const Wt of ne){const gr=et?Wt.slice(et):Wt;gr.length&&(ul(),De(gr))}}function pd(S,ne){S?(fd(),ul(S)):ne&&Wn()}function p0(S,ne){S&&Rp(),ne&&Rp()}function mg(S,ne,et){if(et&2||ue){if(et&65536)return 1;if(ne===void 0)return!S||D&&Wb(S,D)?0:1;if(ne.pos===fe||ne.kind===12)return 0;if(D&&S&&!Md(S.pos)&&!Do(ne)&&(!ne.parent||Ko(ne.parent)===Ko(S)))return ue?d0(Wt=>X_e(ne.pos,S.pos,D,Wt)):aO(S,ne,D)?0:1;if(hg(ne,et))return 1}return et&1?1:0}function HT(S,ne,et){if(et&2||ue){if(S===void 0||ne===void 0||ne.kind===12)return 0;if(D&&!Do(S)&&!Do(ne))return ue&&J1(S,ne)?d0(Wt=>Lq(S,ne,D,Wt)):!ue&&$_(S,ne)?kD(S,ne,D)?0:1:et&65536?1:0;if(hg(S,et)||hg(ne,et))return 1}else if($3(ne))return 1;return et&1?1:0}function gg(S,ne,et,Wt){if(et&2||ue){if(et&65536)return 1;if(ne===void 0)return!S||D&&Wb(S,D)?0:1;if(D&&S&&!Md(S.pos)&&!Do(ne)&&(!ne.parent||ne.parent===S)){if(ue){const gr=Wt&&!Md(Wt.end)?Wt.end:ne.end;return d0(yi=>Q_e(gr,S.end,D,yi))}return H_e(S,ne,D)?0:1}if(hg(ne,et))return 1}return et&1&&!(et&131072)?1:0}function d0(S){E.assert(!!ue);const ne=S(!0);return ne===0?S(!1):ne}function W2(S,ne){const et=ue&&mg(ne,S,0);return et&&pd(et,!1),!!et}function GT(S,ne){const et=ue&&gg(ne,S,0,void 0);et&&ul(et)}function hg(S,ne){if(Do(S)){const et=$3(S);return et===void 0?(ne&65536)!==0:et}return(ne&65536)!==0}function dp(S,ne,et){return ma(S)&262144?0:(S=gl(S),ne=gl(ne),et=gl(et),$3(et)?1:D&&!Do(S)&&!Do(ne)&&!Do(et)?ue?d0(Wt=>Lq(ne,et,D,Wt)):kD(ne,et,D)?0:1:0)}function Rc(S){return S.statements.length===0&&(!D||kD(S,S,D))}function gl(S){for(;S.kind===217&&Do(S);)S=S.expression;return S}function L1(S,ne){if(jo(S)||Db(S))return H2(S);if(pa(S)&&S.textSourceNode)return L1(S.textSourceNode,ne);const et=D,Wt=!!et&&!!S.parent&&!Do(S);if($m(S)){if(!Wt||Bn(S)!==Ko(et))return lr(S)}else if(Vd(S)){if(!Wt||Bn(S)!==Ko(et))return W3(S)}else if(E.assertNode(S,wb),!Wt)return S.text;return Xv(et,S,ne)}function Su(S,ne,et){if(S.kind===11&&S.textSourceNode){const gr=S.textSourceNode;if(we(gr)||Ei(gr)||Ou(gr)||Vd(gr)){const yi=Ou(gr)?gr.text:L1(gr);return et?`"${hq(yi)}"`:ne||ma(S)&16777216?`"${Ux(yi)}"`:`"${dD(yi)}"`}else return Su(gr,ne,et)}const Wt=(ne?1:0)|(et?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return Dle(S,D,Wt)}function G_(S){S&&ma(S)&1048576||(oe.push(_e),_e=0,j.push(ee),ee=void 0,X.push(H))}function yg(S){S&&ma(S)&1048576||(_e=oe.pop(),ee=j.pop(),H=X.pop())}function mp(S){(!H||H===Bo(X))&&(H=new Set),H.add(S)}function M1(S,ne){R.push(Z),Z=S,Q.push(H),re=ne}function vg(){Z=R.pop(),re=Q.pop()}function q2(S){(!re||re===Bo(Q))&&(re=new Set),re.add(S)}function fl(S){if(!!S)switch(S.kind){case 241:mn(S.statements,fl);break;case 256:case 254:case 246:case 247:fl(S.statement);break;case 245:fl(S.thenStatement),fl(S.elseStatement);break;case 248:case 250:case 249:fl(S.initializer),fl(S.statement);break;case 255:fl(S.caseBlock);break;case 269:mn(S.clauses,fl);break;case 296:case 297:mn(S.statements,fl);break;case 258:fl(S.tryBlock),fl(S.catchClause),fl(S.finallyBlock);break;case 299:fl(S.variableDeclaration),fl(S.block);break;case 243:fl(S.declarationList);break;case 261:mn(S.declarations,fl);break;case 260:case 169:case 208:case 263:Im(S.name);break;case 262:Im(S.name),ma(S)&1048576&&(mn(S.parameters,fl),fl(S.body));break;case 206:case 207:mn(S.elements,fl);break;case 272:fl(S.importClause);break;case 273:Im(S.name),fl(S.namedBindings);break;case 274:Im(S.name);break;case 280:Im(S.name);break;case 275:mn(S.elements,fl);break;case 276:Im(S.propertyName||S.name);break}}function m0(S){if(!!S)switch(S.kind){case 303:case 304:case 172:case 174:case 177:case 178:Im(S.name);break}}function Im(S){S&&(jo(S)||Db(S)?H2(S):Ns(S)&&fl(S))}function H2(S){const ne=S.emitNode.autoGenerate;if((ne.flags&7)===4)return Xo(yA(S),Ei(S),ne.flags,ne.prefix,ne.suffix);{const et=ne.id;return U[et]||(U[et]=XT(S))}}function Xo(S,ne,et,Wt,gr){const yi=Ba(S),$r=ne?V:M;return $r[yi]||($r[yi]=Sf(S,ne,et!=null?et:0,l4(Wt,H2),l4(gr)))}function bg(S,ne){return R1(S)&&!$T(S,ne)&&!Y.has(S)}function $T(S,ne){return ne?!!(re!=null&&re.has(S)):!!(H!=null&&H.has(S))}function R1(S,ne){return D?y9(D,S,r):!0}function ok(S,ne){for(let et=ne;et&&n2(et,ne);et=et.nextContainer)if(fm(et)&&et.locals){const Wt=et.locals.get(qo(S));if(Wt&&Wt.flags&3257279)return!1}return!0}function r_(S){var ne;switch(S){case"":return _e;case"#":return Z;default:return(ne=ee==null?void 0:ee.get(S))!=null?ne:0}}function g0(S,ne){switch(S){case"":_e=ne;break;case"#":Z=ne;break;default:ee!=null||(ee=new Map),ee.set(S,ne);break}}function Ch(S,ne,et,Wt,gr){Wt.length>0&&Wt.charCodeAt(0)===35&&(Wt=Wt.slice(1));const yi=Oy(et,Wt,"",gr);let $r=r_(yi);if(S&&!($r&S)){const Js=Oy(et,Wt,S===268435456?"_i":"_n",gr);if(bg(Js,et))return $r|=S,et?q2(Js):ne&&mp(Js),g0(yi,$r),Js}for(;;){const ji=$r&268435455;if($r++,ji!==8&&ji!==13){const Js=ji<26?"_"+String.fromCharCode(97+ji):"_"+(ji-26),ni=Oy(et,Wt,Js,gr);if(bg(ni,et))return et?q2(ni):ne&&mp(ni),g0(yi,$r),ni}}}function Tg(S,ne=bg,et,Wt,gr,yi,$r){if(S.length>0&&S.charCodeAt(0)===35&&(S=S.slice(1)),yi.length>0&&yi.charCodeAt(0)===35&&(yi=yi.slice(1)),et){const Js=Oy(gr,yi,S,$r);if(ne(Js,gr))return gr?q2(Js):Wt?mp(Js):Y.add(Js),Js}S.charCodeAt(S.length-1)!==95&&(S+="_");let ji=1;for(;;){const Js=Oy(gr,yi,S+ji,$r);if(ne(Js,gr))return gr?q2(Js):Wt?mp(Js):Y.add(Js),Js;ji++}}function lf(S){return Tg(S,R1,!0,!1,!1,"","")}function G2(S){const ne=L1(S.name);return ok(ne,Hr(S,fm))?ne:Tg(ne,bg,!1,!1,!1,"","")}function iv(S){const ne=b6(S),et=pa(ne)?Nle(ne.text):"module";return Tg(et,bg,!1,!1,!1,"","")}function B1(){return Tg("default",bg,!1,!1,!1,"","")}function sv(){return Tg("class",bg,!1,!1,!1,"","")}function av(S,ne,et,Wt){return we(S.name)?Xo(S.name,ne):Ch(0,!1,ne,et,Wt)}function Sf(S,ne,et,Wt,gr){switch(S.kind){case 80:case 81:return Tg(L1(S),bg,!!(et&16),!!(et&8),ne,Wt,gr);case 267:case 266:return E.assert(!Wt&&!gr&&!ne),G2(S);case 272:case 278:return E.assert(!Wt&&!gr&&!ne),iv(S);case 262:case 263:{E.assert(!Wt&&!gr&&!ne);const yi=S.name;return yi&&!jo(yi)?Sf(yi,!1,et,Wt,gr):B1()}case 277:return E.assert(!Wt&&!gr&&!ne),B1();case 231:return E.assert(!Wt&&!gr&&!ne),sv();case 174:case 177:case 178:return av(S,ne,Wt,gr);case 167:return Ch(0,!0,ne,Wt,gr);default:return Ch(0,!1,ne,Wt,gr)}}function XT(S){const ne=S.emitNode.autoGenerate,et=l4(ne.prefix,H2),Wt=l4(ne.suffix);switch(ne.flags&7){case 1:return Ch(0,!!(ne.flags&8),Ei(S),et,Wt);case 2:return E.assertNode(S,we),Ch(268435456,!!(ne.flags&8),!1,et,Wt);case 3:return Tg(lr(S),ne.flags&32?R1:bg,!!(ne.flags&16),!!(ne.flags&8),Ei(S),et,Wt)}return E.fail(`Unsupported GeneratedIdentifierKind: ${E.formatEnum(ne.flags&7,PI,!0)}.`)}function $2(S,ne){const et=W(2,S,ne),Wt=at,gr=zt,yi=It;QT(ne),et(S,ne),ov(ne,Wt,gr,yi)}function QT(S){const ne=ma(S),et=Rd(S);zu(S,ne,et.pos,et.end),ne&4096&&(jt=!0)}function ov(S,ne,et,Wt){const gr=ma(S),yi=Rd(S);gr&4096&&(jt=!1),Zd(S,gr,yi.pos,yi.end,ne,et,Wt);const $r=ffe(S);$r&&Zd(S,gr,$r.pos,$r.end,ne,et,Wt)}function zu(S,ne,et,Wt){fi(),Tn=!1;const gr=et<0||(ne&1024)!==0||S.kind===12,yi=Wt<0||(ne&2048)!==0||S.kind===12;(et>0||Wt>0)&&et!==Wt&&(gr||X2(et,S.kind!==359),(!gr||et>=0&&(ne&1024)!==0)&&(at=et),(!yi||Wt>=0&&(ne&2048)!==0)&&(zt=Wt,S.kind===261&&(It=Wt))),mn(q6(S),j1),Si()}function Zd(S,ne,et,Wt,gr,yi,$r){fi();const ji=Wt<0||(ne&2048)!==0||S.kind===12;mn(QD(S),ck),(et>0||Wt>0)&&et!==Wt&&(at=gr,zt=yi,It=$r,!ji&&S.kind!==359&&cv(Wt)),Si()}function j1(S){(S.hasLeadingNewline||S.kind===2)&&G.writeLine(),Ra(S),S.hasTrailingNewLine||S.kind===2?G.writeLine():G.writeSpace(" ")}function ck(S){G.isAtStartOfLine()||G.writeSpace(" "),Ra(S),S.hasTrailingNewLine&&G.writeLine()}function Ra(S){const ne=hr(S),et=S.kind===3?ow(ne):void 0;P6(ne,et,G,0,ne.length,k)}function hr(S){return S.kind===3?`/*${S.text}*/`:`//${S.text}`}function ku(S,ne,et){fi();const{pos:Wt,end:gr}=ne,yi=ma(S),$r=Wt<0||(yi&1024)!==0,ji=jt||gr<0||(yi&2048)!==0;$r||Y2(ne),Si(),yi&4096&&!jt?(jt=!0,et(S),jt=!1):et(S),fi(),ji||(X2(ne.end,!0),Tn&&!G.isAtStartOfLine()&&G.writeLine()),Si()}function $_(S,ne){return S=Ko(S),S.parent&&S.parent===Ko(ne).parent}function J1(S,ne){if(ne.pos-1&&Wt.indexOf(ne)===gr+1}function X2(S,ne){Tn=!1,ne?S===0&&(D==null?void 0:D.isDeclarationFile)?Vo(S,YT):Vo(S,Vu):S===0&&Vo(S,Q2)}function Q2(S,ne,et,Wt,gr){Z2(S,ne)&&Vu(S,ne,et,Wt,gr)}function YT(S,ne,et,Wt,gr){Z2(S,ne)||Vu(S,ne,et,Wt,gr)}function Eh(S,ne){return e.onlyPrintJsDocStyle?SG(S,ne)||v9(S,ne):!0}function Vu(S,ne,et,Wt,gr){!D||!Eh(D.text,S)||(Tn||(A_e($e(),G,gr,S),Tn=!0),cu(S),P6(D.text,$e(),G,S,ne,k),cu(ne),Wt?G.writeLine():et===3&&G.writeSpace(" "))}function X_(S){jt||S===-1||X2(S,!0)}function cv(S){jf(S,lv)}function lv(S,ne,et,Wt){!D||!Eh(D.text,S)||(G.isAtStartOfLine()||G.writeSpace(" "),cu(S),P6(D.text,$e(),G,S,ne,k),cu(ne),Wt&&G.writeLine())}function _f(S,ne,et){jt||(fi(),jf(S,ne?lv:et?xg:ZT),Si())}function xg(S,ne,et){!D||(cu(S),P6(D.text,$e(),G,S,ne,k),cu(ne),et===2&&G.writeLine())}function ZT(S,ne,et,Wt){!D||(cu(S),P6(D.text,$e(),G,S,ne,k),cu(ne),Wt?G.writeLine():G.writeSpace(" "))}function Vo(S,ne){D&&(at===-1||S!==at)&&(lk(S)?Jf(ne):_w(D.text,S,ne,S))}function jf(S,ne){D&&(zt===-1||S!==zt&&S!==It)&&uw(D.text,S,ne)}function lk(S){return _r!==void 0&&ka(_r).nodePos===S}function Jf(S){if(!D)return;const ne=ka(_r).detachedCommentEndPos;_r.length-1?_r.pop():_r=void 0,_w(D.text,ne,S,ne)}function Y2(S){const ne=D&&P_e(D.text,$e(),G,wh,S,k,jt);ne&&(_r?_r.push(ne):_r=[ne])}function wh(S,ne,et,Wt,gr,yi){!D||!Eh(D.text,Wt)||(cu(Wt),P6(S,ne,et,Wt,gr,yi),cu(gr))}function Z2(S,ne){return!!D&&CW(D.text,S,ne)}function Om(S){return S.parsedSourceMap===void 0&&S.sourceMapText!==void 0&&(S.parsedSourceMap=M$(S.sourceMapText)||!1),S.parsedSourceMap||void 0}function uf(S,ne){const et=W(3,S,ne);yc(ne),et(S,ne),_k(ne)}function yc(S){const ne=ma(S),et=Cy(S);if(nW(S)){E.assertIsDefined(S.parent,"UnparsedNodes must have parent pointers");const Wt=Om(S.parent);Wt&&Pe&&Pe.appendSourceMap(G.getLine(),G.getColumn(),Wt,S.parent.sourceMapPath,S.parent.getLineAndCharacterOfPosition(S.pos),S.parent.getLineAndCharacterOfPosition(S.end))}else{const Wt=et.source||Ge;S.kind!==359&&(ne&32)===0&&et.pos>=0&&Fm(et.source||Ge,z1(Wt,et.pos)),ne&128&&(pe=!0)}}function _k(S){const ne=ma(S),et=Cy(S);nW(S)||(ne&128&&(pe=!1),S.kind!==359&&(ne&64)===0&&et.end>=0&&Fm(et.source||Ge,et.end))}function z1(S,ne){return S.skipTrivia?S.skipTrivia(ne):ua(S.text,ne)}function cu(S){if(pe||Md(S)||tb(Ge))return;const{line:ne,character:et}=vo(Ge,S);Pe.addMapping(G.getLine(),G.getColumn(),tt,ne,et,void 0)}function Fm(S,ne){if(S!==Ge){const et=Ge,Wt=tt;uk(S),cu(ne),eb(et,Wt)}else cu(ne)}function K2(S,ne,et,Wt,gr){if(pe||S&&j9(S))return gr(ne,et,Wt);const yi=S&&S.emitNode,$r=yi&&yi.flags||0,ji=yi&&yi.tokenSourceMapRanges&&yi.tokenSourceMapRanges[ne],Js=ji&&ji.source||Ge;return Wt=z1(Js,ji?ji.pos:Wt),($r&256)===0&&Wt>=0&&Fm(Js,Wt),Wt=gr(ne,et,Wt),ji&&(Wt=ji.end),($r&512)===0&&Wt>=0&&Fm(Js,Wt),Wt}function uk(S){if(!pe){if(Ge=S,S===mt){tt=Je;return}tb(S)||(tt=Pe.addSource(S.fileName),e.inlineSources&&Pe.setSourceContent(tt,S.text),mt=S,Je=tt)}}function eb(S,ne){Ge=S,tt=ne}function tb(S){return Hc(S.fileName,".json")}}function P9e(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function I9e(e){return dX[e&15360][0]}function O9e(e){return dX[e&15360][1]}function F9e(e,t,r,i){t(e)}function L9e(e,t,r,i){t(e,r.select(i))}function M9e(e,t,r,i){t(e,r)}function R9e(e,t){return e.length===1?F9e:typeof t=="object"?L9e:M9e}var dX,jL,mX,C2,gX,i5,B9e=Bt({"src/compiler/emitter.ts"(){Os(),Os(),Jv(),dX=P9e(),jL={hasGlobalName:Ss,getReferencedExportContainer:Ss,getReferencedImportDeclaration:Ss,getReferencedDeclarationWithCollidingName:Ss,isDeclarationWithCollidingName:Ss,isValueAliasDeclaration:Ss,isReferencedAliasDeclaration:Ss,isTopLevelValueImportEqualsWithEntityName:Ss,getNodeCheckFlags:Ss,isDeclarationVisible:Ss,isLateBound:e=>!1,collectLinkedAliases:Ss,isImplementationOfOverload:Ss,isRequiredInitializedParameter:Ss,isOptionalUninitializedParameterProperty:Ss,isExpandoFunctionDeclaration:Ss,getPropertiesOfContainerFunction:Ss,createTypeOfDeclaration:Ss,createReturnTypeOfSignatureDeclaration:Ss,createTypeOfExpression:Ss,createLiteralConstValue:Ss,isSymbolAccessible:Ss,isEntityNameVisible:Ss,getConstantValue:Ss,getReferencedValueDeclaration:Ss,getReferencedValueDeclarations:Ss,getTypeReferenceSerializationKind:Ss,isOptionalParameter:Ss,moduleExportsSomeValue:Ss,isArgumentsLocalBinding:Ss,getExternalModuleFileFromDeclaration:Ss,getTypeReferenceDirectivesForEntityName:Ss,getTypeReferenceDirectivesForSymbol:Ss,isLiteralConstDeclaration:Ss,getJsxFactoryEntity:Ss,getJsxFragmentFactoryEntity:Ss,getAllAccessorDeclarations:Ss,getSymbolOfExternalModuleSpecifier:Ss,isBindingCapturedByNode:Ss,getDeclarationStatementsForSourceFile:Ss,isImportRequiredByAugmentation:Ss},mX=wu(()=>Ly({})),C2=wu(()=>Ly({removeComments:!0})),gX=wu(()=>Ly({removeComments:!0,neverAsciiEscape:!0})),i5=wu(()=>Ly({removeComments:!0,omitTrailingSemicolon:!0}))}});function Bge(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,a=Ql(r);return{useCaseSensitiveFileNames:r,fileExists:k,readFile:(R,Z)=>e.readFile(R,Z),directoryExists:e.directoryExists&&C,getDirectories:D,readDirectory:M,createDirectory:e.createDirectory&&N,writeFile:e.writeFile&&x,addOrDeleteFileOrDirectory:U,addOrDeleteFile:Y,clearCache:ee,realpath:e.realpath&&V};function o(R){return yo(R,t,a)}function l(R){return i.get(D_(R))}function u(R){const Z=l(bi(R));return Z&&(Z.sortedAndCanonicalizedFiles||(Z.sortedAndCanonicalizedFiles=Z.files.map(a).sort(),Z.sortedAndCanonicalizedDirectories=Z.directories.map(a).sort()),Z)}function f(R){return Jl(ba(R))}function g(R,Z){var oe;if(!e.realpath||D_(o(e.realpath(R)))===Z){const _e={files:an(e.readDirectory(R,void 0,void 0,["*.*"]),f)||[],directories:e.getDirectories(R)||[]};return i.set(D_(Z),_e),_e}if((oe=e.directoryExists)!=null&&oe.call(e,R))return i.set(Z,!1),!1}function m(R,Z){Z=D_(Z);const oe=l(Z);if(oe)return oe;try{return g(R,Z)}catch{E.assert(!i.has(D_(Z)));return}}function y(R,Z){return Hh(R,Z,Zo,w_)>=0}function x(R,Z,oe){const _e=o(R),X=u(_e);return X&&j(X,f(R),!0),e.writeFile(R,Z,oe)}function k(R){const Z=o(R),oe=u(Z);return oe&&y(oe.sortedAndCanonicalizedFiles,a(f(R)))||e.fileExists(R)}function C(R){const Z=o(R);return i.has(D_(Z))||e.directoryExists(R)}function N(R){const Z=o(R),oe=u(Z);if(oe){const _e=f(R),X=a(_e),H=oe.sortedAndCanonicalizedDirectories;qh(H,X,w_)&&oe.directories.push(_e)}e.createDirectory(R)}function D(R){const Z=o(R),oe=m(R,Z);return oe?oe.directories.slice():e.getDirectories(R)}function M(R,Z,oe,_e,X){const H=o(R),Q=m(R,H);let re;if(Q!==void 0)return Xq(R,Z,oe,_e,r,t,X,ue,V);return e.readDirectory(R,Z,oe,_e,X);function ue(G){const Ne=o(G);if(Ne===H)return Q||fe(G,Ne);const De=m(G,Ne);return De!==void 0?De||fe(G,Ne):OO}function fe(G,Ne){if(re&&Ne===H)return re;const De={files:an(e.readDirectory(G,void 0,void 0,["*.*"]),f)||Ve,directories:e.getDirectories(G)||Ve};return Ne===H&&(re=De),De}}function V(R){return e.realpath?e.realpath(R):R}function U(R,Z){if(l(Z)!==void 0){ee();return}const _e=u(Z);if(!_e)return;if(!e.directoryExists){ee();return}const X=f(R),H={fileExists:e.fileExists(Z),directoryExists:e.directoryExists(Z)};return H.directoryExists||y(_e.sortedAndCanonicalizedDirectories,a(X))?ee():j(_e,X,H.fileExists),H}function Y(R,Z,oe){if(oe===1)return;const _e=u(Z);_e&&j(_e,f(R),oe===0)}function j(R,Z,oe){const _e=R.sortedAndCanonicalizedFiles,X=a(Z);if(oe)qh(_e,X,w_)&&R.files.push(Z);else{const H=Hh(_e,X,Zo,w_);if(H>=0){_e.splice(H,1);const Q=R.files.findIndex(re=>a(re)===X);R.files.splice(Q,1)}}}function ee(){i.clear()}}function hX(e,t,r,i,a){var o;const l=Mv(((o=t==null?void 0:t.configFile)==null?void 0:o.extendedSourceFiles)||Ve,a);r.forEach((u,f)=>{l.has(f)||(u.projects.delete(e),u.close())}),l.forEach((u,f)=>{const g=r.get(f);g?g.projects.add(e):r.set(f,{projects:new Set([e]),watcher:i(u,f),close:()=>{const m=r.get(f);!m||m.projects.size!==0||(m.watcher.close(),r.delete(f))}})})}function jge(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function yX(e,t,r){!e.delete(t)||e.forEach(({extendedResult:i},a)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(l=>r(l)===t)&&yX(e,a,r)})}function j9e(e,t,r){const i=new Map(e);F6(t,i,{createNewValue:r,onDeleteValue:vm})}function Jge(e,t,r){const i=e.getMissingFilePaths(),a=Mv(i,Zo,sy);F6(t,a,{createNewValue:r,onDeleteValue:vm})}function JL(e,t,r){F6(e,t,{createNewValue:i,onDeleteValue:Em,onExistingValue:a});function i(o,l){return{watcher:r(o,l),flags:l}}function a(o,l,u){o.flags!==l&&(o.watcher.close(),e.set(u,i(u,l)))}}function zL({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:a,program:o,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:f,writeLog:g,toPath:m}){const y=KX(r);if(!y)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=y,r===e)return!1;if(Hk(r)&&!Tue(t,a,l))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(pde(t,a.configFile.configFileSpecs,fs(bi(i),u),f,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||Ao(a)||a.outDir)return!1;if(su(r)){if(a.declarationDir)return!1}else if(!Gc(r,W6))return!1;const x=mu(r),k=Ds(o)?void 0:J9e(o)?o.getProgramOrUndefined():o,C=!k&&!Ds(o)?o:void 0;if(N(x+".ts")||N(x+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function N(D){return k?!!k.getSourceFileByPath(D):C?C.getState().fileInfos.has(D):!!Fr(o,M=>m(M)===D)}}function J9e(e){return!!e.getState}function zge(e,t){return e?e.isEmittedFile(t):!1}function Vge(e,t,r,i){$oe(t===2?r:_o);const a={watchFile:(N,D,M,V)=>e.watchFile(N,D,M,V),watchDirectory:(N,D,M,V)=>e.watchDirectory(N,D,(M&1)!==0,V)},o=t!==0?{watchFile:k("watchFile"),watchDirectory:k("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:x}:o||a,u=t===2?m:m5;return{watchFile:f("watchFile"),watchDirectory:f("watchDirectory")};function f(N){return(D,M,V,U,Y,j)=>{var ee;return UF(D,N==="watchFile"?U==null?void 0:U.excludeFiles:U==null?void 0:U.excludeDirectories,g(),((ee=e.getCurrentDirectory)==null?void 0:ee.call(e))||"")?u(D,V,U,Y,j):l[N].call(void 0,D,M,V,U,Y,j)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(N,D,M,V,U){return r(`ExcludeWatcher:: Added:: ${C(N,D,M,V,U,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${C(N,D,M,V,U,i)}`)}}function y(N,D,M,V,U,Y){r(`FileWatcher:: Added:: ${C(N,M,V,U,Y,i)}`);const j=o.watchFile(N,D,M,V,U,Y);return{close:()=>{r(`FileWatcher:: Close:: ${C(N,M,V,U,Y,i)}`),j.close()}}}function x(N,D,M,V,U,Y){const j=`DirectoryWatcher:: Added:: ${C(N,M,V,U,Y,i)}`;r(j);const ee=Uo(),R=o.watchDirectory(N,D,M,V,U,Y),Z=Uo()-ee;return r(`Elapsed:: ${Z}ms ${j}`),{close:()=>{const oe=`DirectoryWatcher:: Close:: ${C(N,M,V,U,Y,i)}`;r(oe);const _e=Uo();R.close();const X=Uo()-_e;r(`Elapsed:: ${X}ms ${oe}`)}}}function k(N){return(D,M,V,U,Y,j)=>a[N].call(void 0,D,(...ee)=>{const R=`${N==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ee[0]} ${ee[1]!==void 0?ee[1]:""}:: ${C(D,V,U,Y,j,i)}`;r(R);const Z=Uo();M.call(void 0,...ee);const oe=Uo()-Z;r(`Elapsed:: ${oe}ms ${R}`)},V,U,Y,j)}function C(N,D,M,V,U,Y){return`WatchInfo: ${N} ${D} ${JSON.stringify(M)} ${Y?Y(V,U):U===void 0?V:`${V} ${U}`}`}}function s5(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Em(e){e.watcher.close()}var vX,bX,z9e=Bt({"src/compiler/watchUtilities.ts"(){Os(),vX=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(vX||{}),bX=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(bX||{})}});function Uge(e,t,r="tsconfig.json"){return Jg(e,i=>{const a=Pi(i,r);return t(a)?a:void 0})}function VL(e,t){const r=bi(t),i=Dd(e)?e:Pi(r,e);return ba(i)}function Wge(e,t,r){let i;return mn(e,o=>{const l=nw(o,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let f=0;f{let l;try{ho("beforeIORead"),l=e(i,t().charset),ho("afterIORead"),Gu("I/O Read","beforeIORead","afterIORead")}catch(u){o&&o(u.message),l=""}return l!==void 0?xA(i,l,a,r):void 0}}function xX(e,t,r){return(i,a,o,l)=>{try{ho("beforeIOWrite"),Sq(i,a,o,e,t,r),ho("afterIOWrite"),Gu("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function SX(e,t,r=jl){const i=new Map,a=Ql(r.useCaseSensitiveFileNames);function o(m){return i.has(m)?!0:(g.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return bi(ba(r.getExecutingFilePath()))}const u=Z0(e),f=r.realpath&&(m=>r.realpath(m)),g={getSourceFile:TX(m=>g.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>Pi(l(),GI(m)),writeFile:xX((m,y,x)=>r.writeFile(m,y,x),m=>(g.createDirectory||r.createDirectory)(m),m=>o(m)),getCurrentDirectory:wu(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:a,getNewLine:()=>u,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+u),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:f,readDirectory:(m,y,x,k,C)=>r.readDirectory(m,y,x,k,C),createDirectory:m=>r.createDirectory(m),createHash:Gs(r,r.createHash)};return g}function a5(e,t,r){const i=e.readFile,a=e.fileExists,o=e.directoryExists,l=e.createDirectory,u=e.writeFile,f=new Map,g=new Map,m=new Map,y=new Map,x=N=>{const D=t(N),M=f.get(D);return M!==void 0?M!==!1?M:void 0:k(D,N)},k=(N,D)=>{const M=i.call(e,D);return f.set(N,M!==void 0?M:!1),M};e.readFile=N=>{const D=t(N),M=f.get(D);return M!==void 0?M!==!1?M:void 0:!Hc(N,".json")&&!Age(N)?i.call(e,N):k(D,N)};const C=r?(N,D,M,V)=>{const U=t(N),Y=typeof D=="object"?D.impliedNodeFormat:void 0,j=y.get(Y),ee=j==null?void 0:j.get(U);if(ee)return ee;const R=r(N,D,M,V);return R&&(su(N)||Hc(N,".json"))&&y.set(Y,(j||new Map).set(U,R)),R}:void 0;return e.fileExists=N=>{const D=t(N),M=g.get(D);if(M!==void 0)return M;const V=a.call(e,N);return g.set(D,!!V),V},u&&(e.writeFile=(N,D,...M)=>{const V=t(N);g.delete(V);const U=f.get(V);U!==void 0&&U!==D?(f.delete(V),y.forEach(Y=>Y.delete(V))):C&&y.forEach(Y=>{const j=Y.get(V);j&&j.text!==D&&Y.delete(V)}),u.call(e,N,D,...M)}),o&&(e.directoryExists=N=>{const D=t(N),M=m.get(D);if(M!==void 0)return M;const V=o.call(e,N);return m.set(D,!!V),V},l&&(e.createDirectory=N=>{const D=t(N);m.delete(D),l.call(e,N)})),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:C,readFileWithCache:x}}function V9e(e,t,r){let i;return i=Lr(i,e.getConfigFileParsingDiagnostics()),i=Lr(i,e.getOptionsDiagnostics(r)),i=Lr(i,e.getSyntacticDiagnostics(t,r)),i=Lr(i,e.getGlobalDiagnostics(r)),i=Lr(i,e.getSemanticDiagnostics(t,r)),Ep(e.getCompilerOptions())&&(i=Lr(i,e.getDeclarationDiagnostics(t,r))),Qk(i||Ve)}function U9e(e,t){let r="";for(const i of e)r+=kX(i,t);return r}function kX(e,t){const r=`${EI(e)} TS${e.code}: ${y1(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:a}=vo(e.file,e.start),o=e.file.fileName;return`${MC(o,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${a+1}): `+r}return r}function Hge(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return E.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function E2(e,t){return t+e+MX}function Gge(e,t,r,i,a,o){const{line:l,character:u}=vo(e,t),{line:f,character:g}=vo(e,t+r),m=vo(e,e.text.length).line,y=f-l>=4;let x=(f+1+"").length;y&&(x=Math.max(RX.length,x));let k="";for(let C=l;C<=f;C++){k+=o.getNewLine(),y&&l+1r.getCanonicalFileName(f)):e.fileName;let u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${a+1}`,"\x1B[93m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u}function $ge(e,t){let r="";for(const i of e){if(i.file){const{file:a,start:o}=i;r+=CX(a,o,t),r+=" - "}if(r+=E2(EI(i),Hge(i.category)),r+=E2(` TS${i.code}: `,"\x1B[90m"),r+=y1(i.messageText,t.getNewLine()),i.file&&i.code!==p.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=Gge(i.file,i.start,i.length,"",Hge(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:a,start:o,length:l,messageText:u}of i.relatedInformation)a&&(r+=t.getNewLine(),r+=Kge+CX(a,o,t),r+=Gge(a,o,l,BX,"\x1B[96m",t)),r+=t.getNewLine(),r+=BX+y1(u,t.getNewLine())}r+=t.getNewLine()}return r}function y1(e,t,r=0){if($s(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let a=0;av8(o,e,r,i,a,t,l)}}function UL(e){return $s(e)?e:Qp(e.fileName)}function WL(e,t,r,i,a){return{nameAndMode:u5,resolve:(o,l)=>s$(o,e,r,i,t,a,l)}}function c5(e,t,r,i,a,o,l,u){if(e.length===0)return Ve;const f=[],g=new Map,m=u(t,r,i,o,l);for(const y of e){const x=m.nameAndMode.getName(y),k=m.nameAndMode.getMode(y,a),C=y8(x,k);let N=g.get(C);N||g.set(C,N=m.resolve(x,k)),f.push(N)}return f}function Xge(e,t){return l5(void 0,e,(r,i)=>r&&t(r,i))}function l5(e,t,r,i){let a;return o(e,t,void 0);function o(l,u,f){if(i){const g=i(l,f);if(g)return g}return mn(u,(g,m)=>{if(g&&(a==null?void 0:a.has(g.sourceFile.path)))return;const y=r(g,f,m);return y||!g?y:((a||(a=new Set)).add(g.sourceFile.path),o(g.commandLine.projectReferences,g.references,g))})}}function qL(e,t,r){const i=e.configFilePath?bi(e.configFilePath):t;return Pi(i,`__lib_node_modules_lookup_${r}__.ts`)}function Qge(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function Yge(e){const t=Qp(e.fileName),r=WF.get(t);return{libName:t,libFileName:r}}function My(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function v4(e){return e.pos!==void 0}function I8(e,t){var r,i,a,o,l,u;const f=E.checkDefined(e(t.file)),{kind:g,index:m}=t;let y,x,k,C;switch(g){case 3:const N=XL(f,m);if(k=(a=(i=(r=f.resolvedModules)==null?void 0:r.get(N.text,EX(f,m)))==null?void 0:i.resolvedModule)==null?void 0:a.packageId,N.pos===-1)return{file:f,packageId:k,text:N.text};y=ua(f.text,N.pos),x=N.end;break;case 4:({pos:y,end:x}=f.referencedFiles[m]);break;case 5:({pos:y,end:x,resolutionMode:C}=f.typeReferenceDirectives[m]),k=(u=(l=(o=f.resolvedTypeReferenceDirectiveNames)==null?void 0:o.get(Qp(f.typeReferenceDirectives[m].fileName),C||f.impliedNodeFormat))==null?void 0:l.resolvedTypeReferenceDirective)==null?void 0:u.packageId;break;case 7:({pos:y,end:x}=f.libReferenceDirectives[m]);break;default:return E.assertNever(g)}return{file:f,pos:y,end:x,packageId:k}}function NX(e,t,r,i,a,o,l,u,f,g){if(!e||(u==null?void 0:u())||!kd(e.getRootFileNames(),t))return!1;let m;if(!kd(e.getProjectReferences(),g,C)||e.getSourceFiles().some(x)||e.getMissingFilePaths().some(a))return!1;const y=e.getCompilerOptions();if(!Rq(y,r)||e.resolvedLibReferences&&Au(e.resolvedLibReferences,(D,M)=>l(M)))return!1;if(y.configFile&&r.configFile)return y.configFile.text===r.configFile.text;return!0;function x(D){return!k(D)||o(D.path)}function k(D){return D.version===i(D.resolvedPath,D.fileName)}function C(D,M,V){return TW(D,M)&&N(e.getResolvedProjectReferences()[V],D)}function N(D,M){if(D){if(gs(m,D))return!0;const U=O8(M),Y=f(U);return!Y||D.commandLine.options.configFile!==Y.options.configFile||!kd(D.commandLine.fileNames,Y.fileNames)?!1:((m||(m=[])).push(D),!mn(D.references,(j,ee)=>!N(j,D.commandLine.projectReferences[ee])))}const V=O8(M);return!f(V)}}function fT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function _5(e,t,r,i){const a=PX(e,t,r,i);return typeof a=="object"?a.impliedNodeFormat:a}function PX(e,t,r,i){switch(Cc(i)){case 3:case 99:return Gc(e,[".d.mts",".mts",".mjs"])?99:Gc(e,[".d.cts",".cts",".cjs"])?1:Gc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?a():void 0;default:return}function a(){const o=sL(t,r,i),l=[];o.failedLookupLocations=l,o.affectingLocations=l;const u=aL(e,o);return{impliedNodeFormat:(u==null?void 0:u.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function W9e(e,t){return e?o6(e.getCompilerOptions(),t,GF):!1}function q9e(e,t,r,i,a,o){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:a,typeScriptVersion:o}}function HL(e,t,r,i,a){var o,l,u,f,g,m,y,x,k,C,N,D,M,V,U,Y;const j=Ds(e)?q9e(e,t,r,i,a):e,{rootNames:ee,options:R,configFileParsingDiagnostics:Z,projectReferences:oe,typeScriptVersion:_e}=j;let{oldProgram:X}=j;const H=wu(()=>rs("ignoreDeprecations",p.Invalid_value_for_ignoreDeprecations));let Q,re,ue,fe,G,Ne,De;const Xe=new Map;let ve=$f();const be={},xe={};let rt=oT(),ct,pe,Pe,Ge,tt,mt;const Je=typeof R.maxNodeModuleJsDepth=="number"?R.maxNodeModuleJsDepth:0;let at=0;const zt=new Map,It=new Map;(o=ci)==null||o.push(ci.Phase.Program,"createProgram",{configFilePath:R.configFilePath,rootDir:R.rootDir},!0),ho("beforeProgram");const bt=j.host||qge(R),_r=$L(bt);let Tn=R.noLib;const jt=wu(()=>bt.getDefaultLibFileName(R)),Kn=bt.getDefaultLibLocation?bt.getDefaultLibLocation():bi(jt()),br=D6(),fi=bt.getCurrentDirectory(),Si=F3(R),Nr=ND(R,Si),pt=new Map;let ur,yn,Ct;const cn=bt.hasInvalidatedResolutions||B0;bt.resolveModuleNameLiterals?(Ct=bt.resolveModuleNameLiterals.bind(bt),yn=(l=bt.getModuleResolutionCache)==null?void 0:l.call(bt)):bt.resolveModuleNames?(Ct=(Ee,je,Ye,Rt,rn,fn)=>bt.resolveModuleNames(Ee.map(DX),je,fn==null?void 0:fn.map(DX),Ye,Rt,rn).map(nn=>nn?nn.extension!==void 0?{resolvedModule:nn}:{resolvedModule:{...nn,extension:Gb(nn.resolvedFileName)}}:jX),yn=(u=bt.getModuleResolutionCache)==null?void 0:u.call(bt)):(yn=d4(fi,qr,R),Ct=(Ee,je,Ye,Rt,rn)=>c5(Ee,je,Ye,Rt,rn,bt,yn,AX));let In;if(bt.resolveTypeReferenceDirectiveReferences)In=bt.resolveTypeReferenceDirectiveReferences.bind(bt);else if(bt.resolveTypeReferenceDirectives)In=(Ee,je,Ye,Rt,rn)=>bt.resolveTypeReferenceDirectives(Ee.map(UL),je,Ye,Rt,rn==null?void 0:rn.impliedNodeFormat).map(fn=>({resolvedTypeReferenceDirective:fn}));else{const Ee=nL(fi,qr,void 0,yn==null?void 0:yn.getPackageJsonInfoCache());In=(je,Ye,Rt,rn,fn)=>c5(je,Ye,Rt,rn,fn,bt,Ee,WL)}const xr=bt.hasInvalidatedLibResolutions||B0;let wi;if(bt.resolveLibrary)wi=bt.resolveLibrary.bind(bt);else{const Ee=d4(fi,qr,R,yn==null?void 0:yn.getPackageJsonInfoCache());wi=(je,Ye,Rt)=>rL(je,Ye,Rt,bt,Ee)}const Zt=new Map;let Gt=new Map,xn=$f(),Gr=!1;const Er=new Map;let ze;const ut=bt.useCaseSensitiveFileNames()?new Map:void 0;let kt,st,Ut,ae;const Me=!!((f=bt.useSourceOfProjectReferenceRedirect)!=null&&f.call(bt))&&!R.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:ke,fileExists:ft,directoryExists:K}=H9e({compilerHost:bt,getSymlinkCache:Fp,useSourceOfProjectReferenceRedirect:Me,toPath:Oe,getResolvedProjectReferences:ea,getSourceOfProjectReferenceRedirect:Es,forEachResolvedProjectReference:Bi}),$e=bt.readFile.bind(bt);(g=ci)==null||g.push(ci.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!X});const Ae=W9e(X,R);(m=ci)==null||m.pop();let yt;if((y=ci)==null||y.push(ci.Phase.Program,"tryReuseStructureFromOldProgram",{}),yt=ir(),(x=ci)==null||x.pop(),yt!==2){if(Q=[],re=[],oe&&(kt||(kt=oe.map(va)),ee.length&&(kt==null||kt.forEach((Ee,je)=>{if(!Ee)return;const Ye=Ao(Ee.commandLine.options);if(Me){if(Ye||Ul(Ee.commandLine.options)===0)for(const Rt of Ee.commandLine.fileNames)ac(Rt,{kind:1,index:je})}else if(Ye)ac(Sy(Ye,".d.ts"),{kind:2,index:je});else if(Ul(Ee.commandLine.options)===0){const Rt=wu(()=>P8(Ee.commandLine,!bt.useCaseSensitiveFileNames()));for(const rn of Ee.commandLine.fileNames)!su(rn)&&!Hc(rn,".json")&&ac(N8(rn,Ee.commandLine,!bt.useCaseSensitiveFileNames(),Rt),{kind:2,index:je})}}))),(k=ci)==null||k.push(ci.Phase.Program,"processRootFiles",{count:ee.length}),mn(ee,(Ee,je)=>xt(Ee,!1,!1,{kind:0,index:je})),(C=ci)==null||C.pop(),pe!=null||(pe=ee.length?tL(R,bt):Ve),Pe=oT(),pe.length){(N=ci)==null||N.push(ci.Phase.Program,"processTypeReferences",{count:pe.length});const Ee=R.configFilePath?bi(R.configFilePath):fi,je=Pi(Ee,f5),Ye=on(pe,je);for(let Rt=0;Rt{xt(Qt(je),!0,!1,{kind:6,index:Ye})})}ze=ia(I7(Er.entries(),([Ee,je])=>je===void 0?Ee:void 0)),ue=M0(Q,F).concat(re),Q=void 0,re=void 0}if(E.assert(!!ze),X&&bt.onReleaseOldSourceFile){const Ee=X.getSourceFiles();for(const je of Ee){const Ye=Cs(je.resolvedPath);(Ae||!Ye||Ye.impliedNodeFormat!==je.impliedNodeFormat||je.resolvedPath===je.path&&Ye.resolvedPath!==je.path)&&bt.onReleaseOldSourceFile(je,X.getCompilerOptions(),!!Cs(je.path))}bt.getParsedCommandLine||X.forEachResolvedProjectReference(je=>{oc(je.sourceFile.path)||bt.onReleaseOldSourceFile(je.sourceFile,X.getCompilerOptions(),!1)})}X&&bt.onReleaseParsedCommandLine&&l5(X.getProjectReferences(),X.getResolvedProjectReferences(),(Ee,je,Ye)=>{const Rt=(je==null?void 0:je.commandLine.projectReferences[Ye])||X.getProjectReferences()[Ye],rn=O8(Rt);st!=null&&st.has(Oe(rn))||bt.onReleaseParsedCommandLine(rn,Ee,X.getCompilerOptions())}),X=void 0,tt=void 0;const _t={getRootFileNames:()=>ee,getSourceFile:Ui,getSourceFileByPath:Cs,getSourceFiles:()=>ue,getMissingFilePaths:()=>ze,getModuleResolutionCache:()=>yn,getFilesByNameMap:()=>Er,getCompilerOptions:()=>R,getSyntacticDiagnostics:ro,getOptionsDiagnostics:Go,getGlobalDiagnostics:Ce,getSemanticDiagnostics:Ja,getCachedSemanticDiagnostics:Ic,getSuggestionDiagnostics:La,getDeclarationDiagnostics:Vc,getBindAndCheckDiagnostics:ls,getProgramDiagnostics:Oi,getTypeChecker:Fs,getClassifiableNames:Tt,getCommonSourceDirectory:We,emit:pi,getCurrentDirectory:()=>fi,getNodeCount:()=>Fs().getNodeCount(),getIdentifierCount:()=>Fs().getIdentifierCount(),getSymbolCount:()=>Fs().getSymbolCount(),getTypeCount:()=>Fs().getTypeCount(),getInstantiationCount:()=>Fs().getInstantiationCount(),getRelationCacheSizes:()=>Fs().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ct,getResolvedTypeReferenceDirectives:()=>rt,getAutomaticTypeDirectiveNames:()=>pe,getAutomaticTypeDirectiveResolutions:()=>Pe,isSourceFileFromExternalLibrary:Qr,isSourceFileDefaultLibrary:cs,getSourceFileFromReference:Ur,getLibFileFromReference:oi,sourceFileToPackageName:Gt,redirectTargetsMap:xn,usesUriStyleNodeCoreModules:Gr,resolvedLibReferences:Ge,getCurrentPackagesMap:()=>mt,typesPackageExists:Ln,packageBundlesTypes:Pt,isEmittedFile:ld,getConfigFileParsingDiagnostics:Re,getProjectReferences:ps,getResolvedProjectReferences:ea,getProjectReferenceRedirect:bu,getResolvedProjectReferenceToRedirect:bn,getResolvedProjectReferenceByPath:oc,forEachResolvedProjectReference:Bi,isSourceOfProjectReferenceRedirect:Ua,emitBuildInfo:ai,fileExists:ft,readFile:$e,directoryExists:K,getSymlinkCache:Fp,realpath:(U=bt.realpath)==null?void 0:U.bind(bt),useCaseSensitiveFileNames:()=>bt.useCaseSensitiveFileNames(),getCanonicalFileName:qr,getFileIncludeReasons:()=>ve,structureIsReused:yt,writeFile:jn};return ke(),ct==null||ct.forEach(Ee=>{switch(Ee.kind){case 1:return br.add(Ml(Ee.file&&Cs(Ee.file),Ee.fileProcessingReason,Ee.diagnostic,Ee.args||Ve));case 0:const{file:je,pos:Ye,end:Rt}=I8(Cs,Ee.reason);return br.add(vl(je,E.checkDefined(Ye),E.checkDefined(Rt)-Ye,Ee.diagnostic,...Ee.args||Ve));case 2:return Ee.diagnostics.forEach(rn=>br.add(rn));default:E.assertNever(Ee)}}),Fo(),ho("afterProgram"),Gu("Program","beforeProgram","afterProgram"),(Y=ci)==null||Y.pop(),_t;function Jt(){return mt||(mt=new Map,ue.forEach(Ee=>{!Ee.resolvedModules||Ee.resolvedModules.forEach(({resolvedModule:je})=>{je!=null&&je.packageId&&mt.set(je.packageId.name,je.extension===".d.ts"||!!mt.get(je.packageId.name))})}),mt)}function Ln(Ee){return Jt().has(_L(Ee))}function Pt(Ee){return!!Jt().get(Ee)}function hi(Ee){var je;!((je=Ee.resolutionDiagnostics)!=null&&je.length)||(ct!=null?ct:ct=[]).push({kind:2,diagnostics:Ee.resolutionDiagnostics})}function z(Ee,je,Ye,Rt){if(bt.resolveModuleNameLiterals||!bt.resolveModuleNames)return hi(Ye);if(!yn||Al(je))return;const rn=fs(Ee.originalFileName,fi),fn=bi(rn),nn=W(Ee),zn=yn.getFromNonRelativeNameCache(je,Rt,fn,nn);zn&&hi(zn)}function B(Ee,je,Ye){var Rt,rn;if(!Ee.length)return Ve;const fn=fs(je.originalFileName,fi),nn=W(je);(Rt=ci)==null||Rt.push(ci.Phase.Program,"resolveModuleNamesWorker",{containingFileName:fn}),ho("beforeResolveModule");const zn=Ct(Ee,fn,nn,R,je,Ye);return ho("afterResolveModule"),Gu("ResolveModule","beforeResolveModule","afterResolveModule"),(rn=ci)==null||rn.pop(),zn}function le(Ee,je,Ye){var Rt,rn;if(!Ee.length)return[];const fn=$s(je)?void 0:je,nn=$s(je)?je:fs(je.originalFileName,fi),zn=fn&&W(fn);(Rt=ci)==null||Rt.push(ci.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:nn}),ho("beforeResolveTypeReference");const jr=In(Ee,nn,zn,R,fn,Ye);return ho("afterResolveTypeReference"),Gu("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(rn=ci)==null||rn.pop(),jr}function W(Ee){const je=bn(Ee.originalFileName);if(je||!su(Ee.originalFileName))return je;const Ye=ge(Ee.path);if(Ye)return Ye;if(!bt.realpath||!R.preserveSymlinks||!Xl(Ee.originalFileName,sh))return;const Rt=Oe(bt.realpath(Ee.originalFileName));return Rt===Ee.path?void 0:ge(Rt)}function ge(Ee){const je=Es(Ee);if($s(je))return bn(je);if(!!je)return Bi(Ye=>{const Rt=Ao(Ye.commandLine.options);if(!!Rt)return Oe(Rt)===Ee?Ye:void 0})}function F(Ee,je){return Co(ye(Ee),ye(je))}function ye(Ee){if(Xh(Kn,Ee.fileName,!1)){const je=Jl(Ee.fileName);if(je==="lib.d.ts"||je==="lib.es6.d.ts")return 0;const Ye=Uk(NC(je,"lib."),".d.ts"),Rt=IA.indexOf(Ye);if(Rt!==-1)return Rt+1}return IA.length+2}function Oe(Ee){return yo(Ee,fi,qr)}function We(){if(G===void 0){const Ee=Vr(ue,je=>Wx(je,_t));G=n5(R,()=>qi(Ee,je=>je.isDeclarationFile?void 0:je.fileName),fi,qr,je=>ds(Ee,je))}return G}function Tt(){var Ee;if(!De){Fs(),De=new Set;for(const je of ue)(Ee=je.classifiableNames)==null||Ee.forEach(Ye=>De.add(Ye))}return De}function Ot(Ee,je){var Ye;if(yt===0&&!je.ambientModuleNames.length)return B(Ee,je,void 0);const Rt=X&&X.getSourceFile(je.fileName);if(Rt!==je&&je.resolvedModules){const cr=[];for(const wr of Ee){const ta=je.resolvedModules.get(wr.text,op(je,wr));cr.push(ta)}return cr}let rn,fn,nn;const zn=jX;for(let cr=0;cr{const Rt=(je?je.commandLine.projectReferences:oe)[Ye],rn=va(Rt);return Ee?!rn||rn.sourceFile!==Ee.sourceFile||!kd(Ee.commandLine.fileNames,rn.commandLine.fileNames):rn!==void 0},(Ee,je)=>{const Ye=je?oc(je.sourceFile.path).commandLine.projectReferences:oe;return!kd(Ee,Ye,TW)})}function ir(){var Ee;if(!X)return 0;const je=X.getCompilerOptions();if(bW(je,R))return 0;const Ye=X.getRootFileNames();if(!kd(Ye,ee)||!Sn())return 0;oe&&(kt=oe.map(va));const Rt=[],rn=[];if(yt=2,X.getMissingFilePaths().some(Hn=>bt.fileExists(Hn)))return 0;const fn=X.getSourceFiles();let nn;(Hn=>{Hn[Hn.Exists=0]="Exists",Hn[Hn.Modified=1]="Modified"})(nn||(nn={}));const zn=new Map;for(const Hn of fn){const cr=nc(Hn.fileName,yn,bt,R);let wr=bt.getSourceFileByPath?bt.getSourceFileByPath(Hn.fileName,Hn.resolvedPath,cr,void 0,Ae):bt.getSourceFile(Hn.fileName,cr,void 0,Ae);if(!wr)return 0;wr.packageJsonLocations=(Ee=cr.packageJsonLocations)!=null&&Ee.length?cr.packageJsonLocations:void 0,wr.packageJsonScope=cr.packageJsonScope,E.assert(!wr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let ta;if(Hn.redirectInfo){if(wr!==Hn.redirectInfo.unredirected)return 0;ta=!1,wr=Hn}else if(X.redirectTargetsMap.has(Hn.path)){if(wr!==Hn)return 0;ta=!1}else ta=wr!==Hn;wr.path=Hn.path,wr.originalFileName=Hn.originalFileName,wr.resolvedPath=Hn.resolvedPath,wr.fileName=Hn.fileName;const Lc=X.sourceFileToPackageName.get(Hn.path);if(Lc!==void 0){const $o=zn.get(Lc),ug=ta?1:0;if($o!==void 0&&ug===1||$o===1)return 0;zn.set(Lc,ug)}ta?(Hn.impliedNodeFormat!==wr.impliedNodeFormat?yt=1:kd(Hn.libReferenceDirectives,wr.libReferenceDirectives,vn)?Hn.hasNoDefaultLib!==wr.hasNoDefaultLib?yt=1:kd(Hn.referencedFiles,wr.referencedFiles,vn)?(mr(wr),kd(Hn.imports,wr.imports,Pr)&&kd(Hn.moduleAugmentations,wr.moduleAugmentations,Pr)?(Hn.flags&12582912)!==(wr.flags&12582912)?yt=1:kd(Hn.typeReferenceDirectives,wr.typeReferenceDirectives,vn)||(yt=1):yt=1):yt=1:yt=1,rn.push({oldFile:Hn,newFile:wr})):cn(Hn.path)&&(yt=1,rn.push({oldFile:Hn,newFile:wr})),Rt.push(wr)}if(yt!==2)return yt;const jr=rn.map(Hn=>Hn.oldFile);for(const Hn of fn)if(!gs(jr,Hn))for(const cr of Hn.ambientModuleNames)Xe.set(cr,Hn.fileName);for(const{oldFile:Hn,newFile:cr}of rn){const wr=Zge(cr),ta=Ot(wr,cr);SW(wr,cr,ta,Hn.resolvedModules,ble,F8)?(yt=1,cr.resolvedModules=_$(cr,wr,ta,F8)):cr.resolvedModules=Hn.resolvedModules;const $o=cr.typeReferenceDirectives,ug=on($o,cr);SW($o,cr,ug,Hn.resolvedTypeReferenceDirectiveNames,Tle,u5)?(yt=1,cr.resolvedTypeReferenceDirectiveNames=_$(cr,$o,ug,u5)):cr.resolvedTypeReferenceDirectiveNames=Hn.resolvedTypeReferenceDirectiveNames}if(yt!==2)return yt;if(gle(je,R)||X.resolvedLibReferences&&Au(X.resolvedLibReferences,(Hn,cr)=>Fn(cr).actual!==Hn.actual))return 1;if(bt.hasChangedAutomaticTypeDirectiveNames){if(bt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(pe=tL(R,bt),!kd(X.getAutomaticTypeDirectiveNames(),pe))return 1;ze=X.getMissingFilePaths(),E.assert(Rt.length===X.getSourceFiles().length);for(const Hn of Rt)Er.set(Hn.path,Hn);return X.getFilesByNameMap().forEach((Hn,cr)=>{if(!Hn){Er.set(cr,Hn);return}if(Hn.path===cr){X.isSourceFileFromExternalLibrary(Hn)&&It.set(Hn.path,!0);return}Er.set(cr,Er.get(Hn.path))}),ue=Rt,ve=X.getFileIncludeReasons(),ct=X.getFileProcessingDiagnostics(),rt=X.getResolvedTypeReferenceDirectives(),pe=X.getAutomaticTypeDirectiveNames(),Pe=X.getAutomaticTypeDirectiveResolutions(),Gt=X.sourceFileToPackageName,xn=X.redirectTargetsMap,Gr=X.usesUriStyleNodeCoreModules,Ge=X.resolvedLibReferences,mt=X.getCurrentPackagesMap(),2}function ar(Ee){return{getPrependNodes:Ws,getCanonicalFileName:qr,getCommonSourceDirectory:_t.getCommonSourceDirectory,getCompilerOptions:_t.getCompilerOptions,getCurrentDirectory:()=>fi,getSourceFile:_t.getSourceFile,getSourceFileByPath:_t.getSourceFileByPath,getSourceFiles:_t.getSourceFiles,getLibFileFromReference:_t.getLibFileFromReference,isSourceFileFromExternalLibrary:Qr,getResolvedProjectReferenceToRedirect:bn,getProjectReferenceRedirect:bu,isSourceOfProjectReferenceRedirect:Ua,getSymlinkCache:Fp,writeFile:Ee||jn,isEmitBlocked:ln,readFile:je=>bt.readFile(je),fileExists:je=>{const Ye=Oe(je);return Cs(Ye)?!0:gs(ze,Ye)?!1:bt.fileExists(je)},useCaseSensitiveFileNames:()=>bt.useCaseSensitiveFileNames(),getBuildInfo:je=>{var Ye;return(Ye=_t.getBuildInfo)==null?void 0:Ye.call(_t,je)},getSourceFileFromReference:(je,Ye)=>_t.getSourceFileFromReference(je,Ye),redirectTargetsMap:xn,getFileIncludeReasons:_t.getFileIncludeReasons,createHash:Gs(bt,bt.createHash)}}function jn(Ee,je,Ye,Rt,rn,fn){bt.writeFile(Ee,je,Ye,Rt,rn,fn)}function ai(Ee){var je,Ye;E.assert(!Ao(R)),(je=ci)==null||je.push(ci.Phase.Emit,"emitBuildInfo",{},!0),ho("beforeEmit");const Rt=RL(jL,ar(Ee),void 0,uX,!1,!0);return ho("afterEmit"),Gu("Emit","beforeEmit","afterEmit"),(Ye=ci)==null||Ye.pop(),Rt}function ea(){return kt}function ps(){return oe}function Ws(){return OX(oe,(Ee,je)=>{var Ye;return(Ye=kt[je])==null?void 0:Ye.commandLine},Ee=>{const je=Oe(Ee),Ye=Cs(je);return Ye?Ye.text:Er.has(je)?void 0:bt.readFile(je)},bt)}function Qr(Ee){return!!It.get(Ee.path)}function cs(Ee){if(!Ee.isDeclarationFile)return!1;if(Ee.hasNoDefaultLib)return!0;if(!R.noLib)return!1;const je=bt.useCaseSensitiveFileNames()?Tx:bx;return R.lib?dt(R.lib,Ye=>je(Ee.fileName,Ge.get(Ye).actual)):je(Ee.fileName,jt())}function Fs(){return Ne||(Ne=Cme(_t))}function pi(Ee,je,Ye,Rt,rn,fn){var nn,zn;(nn=ci)==null||nn.push(ci.Phase.Emit,"emit",{path:Ee==null?void 0:Ee.path},!0);const jr=L_(()=>tc(_t,Ee,je,Ye,Rt,rn,fn));return(zn=ci)==null||zn.pop(),jr}function ln(Ee){return pt.has(Oe(Ee))}function tc(Ee,je,Ye,Rt,rn,fn,nn){if(!nn){const Hi=IX(Ee,je,Ye,Rt);if(Hi)return Hi}const zn=Fs().getEmitResolver(Ao(R)?void 0:je,Rt);ho("beforeEmit");const jr=RL(zn,ar(Ye),je,_X(R,fn,rn),rn,!1,nn);return ho("afterEmit"),Gu("Emit","beforeEmit","afterEmit"),jr}function Ui(Ee){return Cs(Oe(Ee))}function Cs(Ee){return Er.get(Ee)||void 0}function Ea(Ee,je,Ye){return Qk(Ee?je(Ee,Ye):Na(_t.getSourceFiles(),Rt=>(Ye&&Ye.throwIfCancellationRequested(),je(Rt,Ye))))}function ro(Ee,je){return Ea(Ee,Jo,je)}function Ja(Ee,je){return Ea(Ee,_l,je)}function Ic(Ee){var je;return Ee?(je=be.perFile)==null?void 0:je.get(Ee.path):be.allDiagnostics}function ls(Ee,je){return Rf(Ee,je)}function Oi(Ee){var je;if(M3(Ee,R,_t))return Ve;const Ye=br.getDiagnostics(Ee.fileName);return(je=Ee.commentDirectives)!=null&&je.length?ja(Ee,Ee.commentDirectives,Ye).diagnostics:Ye}function Vc(Ee,je){const Ye=_t.getCompilerOptions();return!Ee||Ao(Ye)?h_(Ee,je):Ea(Ee,bo,je)}function Jo(Ee){return P_(Ee)?(Ee.additionalSyntacticDiagnostics||(Ee.additionalSyntacticDiagnostics=mc(Ee)),Ki(Ee.additionalSyntacticDiagnostics,Ee.parseDiagnostics)):Ee.parseDiagnostics}function L_(Ee){try{return Ee()}catch(je){throw je instanceof OC&&(Ne=void 0),je}}function _l(Ee,je){return Ki(GL(Rf(Ee,je),R),Oi(Ee))}function Rf(Ee,je){return W_(Ee,je,be,Ls)}function Ls(Ee,je){return L_(()=>{if(M3(Ee,R,_t))return Ve;const Ye=Fs();E.assert(!!Ee.bindDiagnostics);const rn=(Ee.scriptKind===1||Ee.scriptKind===2)&&FD(Ee,R),fn=Nw(Ee,R.checkJs),zn=!(!!Ee.checkJsDirective&&Ee.checkJsDirective.enabled===!1)&&(Ee.scriptKind===3||Ee.scriptKind===4||Ee.scriptKind===5||fn||rn||Ee.scriptKind===7);let jr=zn?Ee.bindDiagnostics:Ve,Hi=zn?Ye.getDiagnostics(Ee,je):Ve;return fn&&(jr=Vr(jr,Hn=>ZL.has(Hn.code)),Hi=Vr(Hi,Hn=>ZL.has(Hn.code))),mo(Ee,zn&&!fn,jr,Hi,rn?Ee.jsDocDiagnostics:void 0)})}function mo(Ee,je,...Ye){var Rt;const rn=vp(Ye);if(!je||!((Rt=Ee.commentDirectives)!=null&&Rt.length))return rn;const{diagnostics:fn,directives:nn}=ja(Ee,Ee.commentDirectives,rn);for(const zn of nn.getUnusedExpectations())fn.push(zW(Ee,zn.range,p.Unused_ts_expect_error_directive));return fn}function ja(Ee,je,Ye){const Rt=wle(Ee,je);return{diagnostics:Ye.filter(fn=>qt(fn,Rt)===-1),directives:Rt}}function La(Ee,je){return L_(()=>Fs().getSuggestionDiagnostics(Ee,je))}function qt(Ee,je){const{file:Ye,start:Rt}=Ee;if(!Ye)return-1;const rn=zg(Ye);let fn=lw(rn,Rt).line-1;for(;fn>=0;){if(je.markUsed(fn))return fn;const nn=Ye.text.slice(rn[fn],rn[fn+1]).trim();if(nn!==""&&!/^(\s*)\/\/(.*)$/.test(nn))return-1;fn--}return-1}function mc(Ee){return L_(()=>{const je=[];return Ye(Ee,Ee),p8(Ee,Ye,Rt),je;function Ye(zn,jr){switch(jr.kind){case 169:case 172:case 174:if(jr.questionToken===zn)return je.push(nn(zn,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(jr.type===zn)return je.push(nn(zn,p.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(zn.kind){case 273:if(zn.isTypeOnly)return je.push(nn(jr,p._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(zn.isTypeOnly)return je.push(nn(zn,p._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(zn.isTypeOnly)return je.push(nn(zn,p._0_declarations_can_only_be_used_in_TypeScript_files,yu(zn)?"import...type":"export...type")),"skip";break;case 271:return je.push(nn(zn,p.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(zn.isExportEquals)return je.push(nn(zn,p.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(zn.token===119)return je.push(nn(zn,p.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const Hn=sa(120);return E.assertIsDefined(Hn),je.push(nn(zn,p._0_declarations_can_only_be_used_in_TypeScript_files,Hn)),"skip";case 267:const cr=zn.flags&32?sa(145):sa(144);return E.assertIsDefined(cr),je.push(nn(zn,p._0_declarations_can_only_be_used_in_TypeScript_files,cr)),"skip";case 265:return je.push(nn(zn,p.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return zn.body?void 0:(je.push(nn(zn,p.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const wr=E.checkDefined(sa(94));return je.push(nn(zn,p._0_declarations_can_only_be_used_in_TypeScript_files,wr)),"skip";case 235:return je.push(nn(zn,p.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return je.push(nn(zn.type,p.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return je.push(nn(zn.type,p.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:E.fail()}}function Rt(zn,jr){if(TG(jr)){const Hi=Fr(jr.modifiers,Wl);Hi&&je.push(nn(Hi,p.Decorators_are_not_valid_here))}else if(iT(jr)&&jr.modifiers){const Hi=qc(jr.modifiers,Wl);if(Hi>=0){if(ns(jr)&&!R.experimentalDecorators)je.push(nn(jr.modifiers[Hi],p.Decorators_are_not_valid_here));else if(Qc(jr)){const Hn=qc(jr.modifiers,iS);if(Hn>=0){const cr=qc(jr.modifiers,dF);if(Hi>Hn&&cr>=0&&Hi=0&&Hi=0&&je.push(fa(nn(jr.modifiers[wr],p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),nn(jr.modifiers[Hi],p.Decorator_used_before_export_here)))}}}}}switch(jr.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(zn===jr.typeParameters)return je.push(fn(zn,p.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(zn===jr.modifiers)return rn(jr.modifiers,jr.kind===243),"skip";break;case 172:if(zn===jr.modifiers){for(const Hi of zn)Zs(Hi)&&Hi.kind!==126&&Hi.kind!==129&&je.push(nn(Hi,p.The_0_modifier_can_only_be_used_in_TypeScript_files,sa(Hi.kind)));return"skip"}break;case 169:if(zn===jr.modifiers&&dt(zn,Zs))return je.push(fn(zn,p.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(zn===jr.typeArguments)return je.push(fn(zn,p.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function rn(zn,jr){for(const Hi of zn)switch(Hi.kind){case 87:if(jr)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:je.push(nn(Hi,p.The_0_modifier_can_only_be_used_in_TypeScript_files,sa(Hi.kind)));break;case 126:case 95:case 90:case 129:}}function fn(zn,jr,...Hi){const Hn=zn.pos;return vl(Ee,Hn,zn.end-Hn,jr,...Hi)}function nn(zn,jr,...Hi){return Qf(Ee,zn,jr,...Hi)}})}function h_(Ee,je){return W_(Ee,je,xe,M_)}function M_(Ee,je){return L_(()=>{const Ye=Fs().getEmitResolver(Ee,je);return kge(ar(_o),Ye,Ee)||Ve})}function W_(Ee,je,Ye,Rt){var rn;const fn=Ee?(rn=Ye.perFile)==null?void 0:rn.get(Ee.path):Ye.allDiagnostics;if(fn)return fn;const nn=Rt(Ee,je);return Ee?(Ye.perFile||(Ye.perFile=new Map)).set(Ee.path,nn):Ye.allDiagnostics=nn,nn}function bo(Ee,je){return Ee.isDeclarationFile?[]:h_(Ee,je)}function Go(){return Qk(Ki(br.getGlobalDiagnostics(),A()))}function A(){if(!R.configFile)return Ve;let Ee=br.getDiagnostics(R.configFile.fileName);return Bi(je=>{Ee=Ki(Ee,br.getDiagnostics(je.sourceFile.fileName))}),Ee}function Ce(){return ee.length?Qk(Fs().getGlobalDiagnostics().slice()):Ve}function Re(){return Z||Ve}function xt(Ee,je,Ye,Rt){io(ba(Ee),je,Ye,void 0,Rt)}function vn(Ee,je){return Ee.fileName===je.fileName}function Pr(Ee,je){return Ee.kind===80?je.kind===80&&Ee.escapedText===je.escapedText:je.kind===11&&Ee.text===je.text}function wn(Ee,je){const Ye=I.createStringLiteral(Ee),Rt=I.createImportDeclaration(void 0,void 0,Ye,void 0);return Zx(Rt,2),Ta(Ye,Rt),Ta(Rt,je),Ye.flags&=-17,Rt.flags&=-17,Ye}function mr(Ee){if(Ee.imports)return;const je=P_(Ee),Ye=zc(Ee);let Rt,rn,fn;if((ed(R)||Ye)&&!Ee.isDeclarationFile){R.importHelpers&&(Rt=[wn(_1,Ee)]);const Hn=vO(yO(R,Ee),R);Hn&&(Rt||(Rt=[])).push(wn(Hn,Ee))}for(const Hn of Ee.statements)zn(Hn,!1);const nn=je&&mO(R);(Ee.flags&4194304||nn)&&jr(Ee),Ee.imports=Rt||Ve,Ee.moduleAugmentations=rn||Ve,Ee.ambientModuleNames=fn||Ve;return;function zn(Hn,cr){if(Iw(Hn)){const wr=b6(Hn);wr&&pa(wr)&&wr.text&&(!cr||!Al(wr.text))&&(l1(Hn,!1),Rt=gn(Rt,wr),!Gr&&at===0&&!Ee.isDeclarationFile&&(Gr=ts(wr.text,"node:")))}else if(Nc(Hn)&&__(Hn)&&(cr||Mr(Hn,2)||Ee.isDeclarationFile)){Hn.name.parent=Hn;const wr=kp(Hn.name);if(Ye||cr&&!Al(wr))(rn||(rn=[])).push(Hn.name);else if(!cr){Ee.isDeclarationFile&&(fn||(fn=[])).push(wr);const ta=Hn.body;if(ta)for(const Lc of ta.statements)zn(Lc,!0)}}}function jr(Hn){const cr=/import|require/g;for(;cr.exec(Hn.text)!==null;){const wr=Hi(Hn,cr.lastIndex);nn&&du(wr,!0)||Zu(wr)&&wr.arguments.length>=1&&Qa(wr.arguments[0])?(l1(wr,!1),Rt=gn(Rt,wr.arguments[0])):my(wr)&&(l1(wr,!1),Rt=gn(Rt,wr.argument.literal))}}function Hi(Hn,cr){let wr=Hn;const ta=Lc=>{if(Lc.pos<=cr&&(crHc(rn,nn))){Ye&&(c2(rn)?Ye(p.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ee):Ye(p.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ee,"'"+vp(Si).join("', '")+"'"));return}const fn=je(Ee);if(Ye)if(fn)My(Rt)&&rn===bt.getCanonicalFileName(Cs(Rt.file).fileName)&&Ye(p.A_file_cannot_have_a_reference_to_itself);else{const nn=bu(Ee);nn?Ye(p.Output_file_0_has_not_been_built_from_source_file_1,nn,Ee):Ye(p.File_0_not_found,Ee)}return fn}else{const rn=R.allowNonTsExtensions&&je(Ee);if(rn)return rn;if(Ye&&R.allowNonTsExtensions){Ye(p.File_0_not_found,Ee);return}const fn=mn(Si[0],nn=>je(Ee+nn));return Ye&&!fn&&Ye(p.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ee,"'"+vp(Si).join("', '")+"'"),fn}}function io(Ee,je,Ye,Rt,rn){Ma(Ee,fn=>Ka(fn,je,Ye,rn,Rt),(fn,...nn)=>sl(void 0,rn,fn,nn),rn)}function ac(Ee,je){return io(Ee,!1,!1,void 0,je)}function Oc(Ee,je,Ye){!My(Ye)&&dt(ve.get(je.path),My)?sl(je,Ye,p.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[je.fileName,Ee]):sl(je,Ye,p.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ee,je.fileName])}function gc(Ee,je,Ye,Rt,rn,fn,nn){var zn;const jr=Cm.createRedirectedSourceFile({redirectTarget:Ee,unredirected:je});return jr.fileName=Ye,jr.path=Rt,jr.resolvedPath=rn,jr.originalFileName=fn,jr.packageJsonLocations=(zn=nn.packageJsonLocations)!=null&&zn.length?nn.packageJsonLocations:void 0,jr.packageJsonScope=nn.packageJsonScope,It.set(Rt,at>0),jr}function Ka(Ee,je,Ye,Rt,rn){var fn,nn;(fn=ci)==null||fn.push(ci.Phase.Program,"findSourceFile",{fileName:Ee,isDefaultLib:je||void 0,fileIncludeKind:II[Rt.kind]});const zn=q_(Ee,je,Ye,Rt,rn);return(nn=ci)==null||nn.pop(),zn}function nc(Ee,je,Ye,Rt){const rn=PX(fs(Ee,fi),je==null?void 0:je.getPackageJsonInfoCache(),Ye,Rt),fn=Oa(Rt),nn=wD(Rt);return typeof rn=="object"?{...rn,languageVersion:fn,setExternalModuleIndicator:nn}:{languageVersion:fn,impliedNodeFormat:rn,setExternalModuleIndicator:nn}}function q_(Ee,je,Ye,Rt,rn){var fn;const nn=Oe(Ee);if(Me){let cr=Es(nn);if(!cr&&bt.realpath&&R.preserveSymlinks&&su(Ee)&&Xl(Ee,sh)){const wr=Oe(bt.realpath(Ee));wr!==nn&&(cr=Es(wr))}if(cr){const wr=$s(cr)?Ka(cr,je,Ye,Rt,rn):void 0;return wr&&zo(wr,nn,void 0),wr}}const zn=Ee;if(Er.has(nn)){const cr=Er.get(nn);if(Uc(cr||void 0,Rt),cr&&R.forceConsistentCasingInFileNames!==!1){const wr=cr.fileName;Oe(wr)!==Oe(Ee)&&(Ee=bu(Ee)||Ee);const Lc=FU(wr,fi),$o=FU(Ee,fi);Lc!==$o&&Oc(Ee,cr,Rt)}return cr&&It.get(cr.path)&&at===0?(It.set(cr.path,!1),R.noResolve||(se(cr,je),qe(cr)),R.noLib||Cr(cr),zt.set(cr.path,!1),li(cr)):cr&&zt.get(cr.path)&&atsl(void 0,Rt,p.Cannot_read_file_0_Colon_1,[Ee,cr]),Ae);if(rn){const cr=i1(rn),wr=Zt.get(cr);if(wr){const ta=gc(wr,Hn,Ee,nn,Oe(Ee),zn,Hi);return xn.add(wr.path,Ee),zo(ta,nn,jr),Uc(ta,Rt),Gt.set(nn,g9(rn)),re.push(ta),ta}else Hn&&(Zt.set(cr,Hn),Gt.set(nn,g9(rn)))}if(zo(Hn,nn,jr),Hn){if(It.set(nn,at>0),Hn.fileName=Ee,Hn.path=nn,Hn.resolvedPath=Oe(Ee),Hn.originalFileName=zn,Hn.packageJsonLocations=(fn=Hi.packageJsonLocations)!=null&&fn.length?Hi.packageJsonLocations:void 0,Hn.packageJsonScope=Hi.packageJsonScope,Uc(Hn,Rt),bt.useCaseSensitiveFileNames()){const cr=Qp(nn),wr=ut.get(cr);wr?Oc(Ee,wr,Rt):ut.set(cr,Hn)}Tn=Tn||Hn.hasNoDefaultLib&&!Ye,R.noResolve||(se(Hn,je),qe(Hn)),R.noLib||Cr(Hn),li(Hn),je?Q.push(Hn):re.push(Hn)}return Hn}function Uc(Ee,je){Ee&&ve.add(Ee.path,je)}function zo(Ee,je,Ye){Ye?(Er.set(Ye,Ee),Er.set(je,Ee||!1)):Er.set(je,Ee)}function bu(Ee){const je=he(Ee);return je&&vt(je,Ee)}function he(Ee){if(!(!kt||!kt.length||su(Ee)||Hc(Ee,".json")))return bn(Ee)}function vt(Ee,je){const Ye=Ao(Ee.commandLine.options);return Ye?Sy(Ye,".d.ts"):N8(je,Ee.commandLine,!bt.useCaseSensitiveFileNames())}function bn(Ee){Ut===void 0&&(Ut=new Map,Bi(Ye=>{Oe(R.configFilePath)!==Ye.sourceFile.path&&Ye.commandLine.fileNames.forEach(Rt=>Ut.set(Oe(Rt),Ye.sourceFile.path))}));const je=Ut.get(Oe(Ee));return je&&oc(je)}function Bi(Ee){return Xge(kt,Ee)}function Es(Ee){if(!!su(Ee))return ae===void 0&&(ae=new Map,Bi(je=>{const Ye=Ao(je.commandLine.options);if(Ye){const Rt=Sy(Ye,".d.ts");ae.set(Oe(Rt),!0)}else{const Rt=wu(()=>P8(je.commandLine,!bt.useCaseSensitiveFileNames()));mn(je.commandLine.fileNames,rn=>{if(!su(rn)&&!Hc(rn,".json")){const fn=N8(rn,je.commandLine,!bt.useCaseSensitiveFileNames(),Rt);ae.set(Oe(fn),rn)}})}})),ae.get(Ee)}function Ua(Ee){return Me&&!!bn(Ee)}function oc(Ee){if(!!st)return st.get(Ee)||void 0}function se(Ee,je){mn(Ee.referencedFiles,(Ye,Rt)=>{io(VL(Ye.fileName,Ee.fileName),je,!1,void 0,{kind:4,file:Ee.path,index:Rt})})}function qe(Ee){const je=Ee.typeReferenceDirectives;if(!je.length){Ee.resolvedTypeReferenceDirectiveNames=void 0;return}const Ye=on(je,Ee);for(let Rt=0;Rt{const{libName:Rt,libFileName:rn}=Yge(je);if(rn)xt(Qt(rn),!0,!0,{kind:7,file:Ee.path,index:Ye});else{const fn=Uk(NC(Rt,"lib."),".d.ts"),nn=DC(fn,IA,Zo),zn=nn?p.Cannot_find_lib_definition_for_0_Did_you_mean_1:p.Cannot_find_lib_definition_for_0,jr=nn?[Rt,nn]:[Rt];(ct||(ct=[])).push({kind:0,reason:{kind:7,file:Ee.path,index:Ye},diagnostic:zn,args:jr})}})}function qr(Ee){return bt.getCanonicalFileName(Ee)}function li(Ee){var je;if(mr(Ee),Ee.imports.length||Ee.moduleAugmentations.length){const Ye=Zge(Ee),Rt=Ot(Ye,Ee);E.assert(Rt.length===Ye.length);const rn=(Me?(je=W(Ee))==null?void 0:je.commandLine.options:void 0)||R;for(let fn=0;fnJe,Lc=wr&&!FX(rn,nn,Ee)&&!rn.noResolve&&fnzc(nn)&&!nn.isDeclarationFile);if(R.isolatedModules||R.verbatimModuleSyntax)R.module===0&&je<2&&R.isolatedModules&&di(p.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),R.preserveConstEnums===!1&&di(p.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,R.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Ye&&je<2&&R.module===0){const nn=Yv(Ye,typeof Ye.externalModuleIndicator=="boolean"?Ye:Ye.externalModuleIndicator);br.add(vl(Ye,nn.start,nn.length,p.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ee&&!R.emitDeclarationOnly){if(R.module&&!(R.module===2||R.module===4))di(p.Only_amd_and_system_modules_are_supported_alongside_0,R.out?"out":"outFile","module");else if(R.module===void 0&&Ye){const nn=Yv(Ye,typeof Ye.externalModuleIndicator=="boolean"?Ye:Ye.externalModuleIndicator);br.add(vl(Ye,nn.start,nn.length,p.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,R.out?"out":"outFile"))}}if(qb(R)&&(Cc(R)===1?di(p.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):pO(R)||di(p.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),R.outDir||R.rootDir||R.sourceRoot||R.mapRoot){const nn=We();R.outDir&&nn===""&&ue.some(zn=>_m(zn.fileName)>1)&&di(p.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}R.useDefineForClassFields&&je===0&&di(p.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),R.checkJs&&!P3(R)&&br.add(kc(p.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),R.emitDeclarationOnly&&(Ep(R)||di(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),R.noEmit&&di(p.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),R.emitDecoratorMetadata&&!R.experimentalDecorators&&di(p.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),R.jsxFactory?(R.reactNamespace&&di(p.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(R.jsx===4||R.jsx===5)&&di(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",m8.get(""+R.jsx)),yS(R.jsxFactory,je)||rs("jsxFactory",p.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFactory)):R.reactNamespace&&!pf(R.reactNamespace,je)&&rs("reactNamespace",p.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,R.reactNamespace),R.jsxFragmentFactory&&(R.jsxFactory||di(p.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(R.jsx===4||R.jsx===5)&&di(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",m8.get(""+R.jsx)),yS(R.jsxFragmentFactory,je)||rs("jsxFragmentFactory",p.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFragmentFactory)),R.reactNamespace&&(R.jsx===4||R.jsx===5)&&di(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",m8.get(""+R.jsx)),R.jsxImportSource&&R.jsx===2&&di(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",m8.get(""+R.jsx)),R.preserveValueImports&&Ul(R)<5&&di(p.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Rt=Ul(R);R.verbatimModuleSyntax&&((Rt===2||Rt===3||Rt===4)&&di(p.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),R.preserveValueImports&&cf("preserveValueImports","verbatimModuleSyntax"),R.importsNotUsedAsValues&&cf("importsNotUsedAsValues","verbatimModuleSyntax")),R.allowImportingTsExtensions&&!(R.noEmit||R.emitDeclarationOnly)&&rs("allowImportingTsExtensions",p.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const rn=Cc(R);if(R.resolvePackageJsonExports&&!Yx(rn)&&di(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),R.resolvePackageJsonImports&&!Yx(rn)&&di(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),R.customConditions&&!Yx(rn)&&di(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),rn===100&&!fO(Rt)&&rs("moduleResolution",p.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),FC[Rt]&&100<=Rt&&Rt<=199&&!(3<=rn&&rn<=99)){const nn=FC[Rt];rs("moduleResolution",p.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,nn,nn)}else if(qk[rn]&&3<=rn&&rn<=99&&!(100<=Rt&&Rt<=199)){const nn=qk[rn];rs("module",p.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,nn,nn)}if(!R.noEmit&&!R.suppressOutputPathCheck){const nn=ar(),zn=new Set;fX(nn,jr=>{R.emitDeclarationOnly||fn(jr.jsFilePath,zn),fn(jr.declarationFilePath,zn)})}function fn(nn,zn){if(nn){const jr=Oe(nn);if(Er.has(jr)){let Hn;R.configFilePath||(Hn=_s(void 0,p.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)),Hn=_s(Hn,p.Cannot_write_file_0_because_it_would_overwrite_input_file,nn),y_(nn,_O(Hn))}const Hi=bt.useCaseSensitiveFileNames()?jr:Qp(jr);zn.has(Hi)?y_(nn,kc(p.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,nn)):zn.add(Hi)}}}function Ro(){const Ee=R.ignoreDeprecations;if(Ee){if(Ee==="5.0")return new Ed(Ee);H()}return Ed.zero}function Zc(Ee,je,Ye,Rt){const rn=new Ed(Ee),fn=new Ed(je),nn=new Ed(_e||CC),zn=Ro(),jr=fn.compareTo(nn)!==1,Hi=!jr&&zn.compareTo(rn)===-1;(jr||Hi)&&Rt((Hn,cr,wr)=>{jr?cr===void 0?Ye(Hn,cr,wr,p.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Hn):Ye(Hn,cr,wr,p.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Hn,cr):cr===void 0?Ye(Hn,cr,wr,p.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Hn,je,Ee):Ye(Hn,cr,wr,p.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Hn,cr,je,Ee)})}function Fc(){function Ee(je,Ye,Rt,rn,...fn){if(Rt){const nn=_s(void 0,p.Use_0_instead,Rt),zn=_s(nn,rn,...fn);Lo(!Ye,je,void 0,zn)}else Lo(!Ye,je,void 0,rn,...fn)}Zc("5.0","5.5",Ee,je=>{R.target===0&&je("target","ES3"),R.noImplicitUseStrict&&je("noImplicitUseStrict"),R.keyofStringsOnly&&je("keyofStringsOnly"),R.suppressExcessPropertyErrors&&je("suppressExcessPropertyErrors"),R.suppressImplicitAnyIndexErrors&&je("suppressImplicitAnyIndexErrors"),R.noStrictGenericChecks&&je("noStrictGenericChecks"),R.charset&&je("charset"),R.out&&je("out",void 0,"outFile"),R.importsNotUsedAsValues&&je("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),R.preserveValueImports&&je("preserveValueImports",void 0,"verbatimModuleSyntax")})}function il(Ee,je,Ye){function Rt(rn,fn,nn,zn,...jr){bs(je,Ye,zn,...jr)}Zc("5.0","5.5",Rt,rn=>{Ee.prepend&&rn("prepend")})}function Ml(Ee,je,Ye,Rt){var rn;let fn,nn,zn=My(je)?je:void 0;Ee&&((rn=ve.get(Ee.path))==null||rn.forEach(wr)),je&&wr(je),zn&&(fn==null?void 0:fn.length)===1&&(fn=void 0);const jr=zn&&I8(Cs,zn),Hi=fn&&_s(fn,p.The_file_is_in_the_program_because_Colon),Hn=Ee&&sQ(Ee),cr=_s(Hn?Hi?[Hi,...Hn]:Hn:Hi,Ye,...Rt||Ve);return jr&&v4(jr)?S9(jr.file,jr.pos,jr.end-jr.pos,cr,nn):_O(cr,nn);function wr(ta){(fn||(fn=[])).push(cQ(_t,ta)),!zn&&My(ta)?zn=ta:zn!==ta&&(nn=gn(nn,cd(ta))),ta===je&&(je=void 0)}}function sl(Ee,je,Ye,Rt){(ct||(ct=[])).push({kind:1,file:Ee&&Ee.path,fileProcessingReason:je,diagnostic:Ye,args:Rt})}function ju(Ee,je,Ye){br.add(Ml(Ee,void 0,je,Ye))}function cd(Ee){if(My(Ee)){const Rt=I8(Cs,Ee);let rn;switch(Ee.kind){case 3:rn=p.File_is_included_via_import_here;break;case 4:rn=p.File_is_included_via_reference_here;break;case 5:rn=p.File_is_included_via_type_library_reference_here;break;case 7:rn=p.File_is_included_via_library_reference_here;break;default:E.assertNever(Ee)}return v4(Rt)?vl(Rt.file,Rt.pos,Rt.end-Rt.pos,rn):void 0}if(!R.configFile)return;let je,Ye;switch(Ee.kind){case 0:if(!R.configFile.configFileSpecs)return;const Rt=fs(ee[Ee.index],fi),rn=aQ(_t,Rt);if(rn){je=N9(R.configFile,"files",rn),Ye=p.File_is_matched_by_files_list_specified_here;break}const fn=oQ(_t,Rt);if(!fn||!$s(fn))return;je=N9(R.configFile,"include",fn),Ye=p.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const nn=E.checkDefined(kt==null?void 0:kt[Ee.index]),zn=l5(oe,kt,(wr,ta,Lc)=>wr===nn?{sourceFile:(ta==null?void 0:ta.sourceFile)||R.configFile,index:Lc}:void 0);if(!zn)return;const{sourceFile:jr,index:Hi}=zn,Hn=Bw(jr,"references",wr=>u_(wr.initializer)?wr.initializer:void 0);return Hn&&Hn.elements.length>Hi?Qf(jr,Hn.elements[Hi],Ee.kind===2?p.File_is_output_from_referenced_project_specified_here:p.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!R.types)return;je=vs("types",Ee.typeReference),Ye=p.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ee.index!==void 0){je=vs("lib",R.lib[Ee.index]),Ye=p.File_is_library_specified_here;break}const cr=Au(LA.type,(wr,ta)=>wr===Oa(R)?ta:void 0);je=cr?Jn("target",cr):void 0,Ye=p.File_is_default_library_for_target_specified_here;break;default:E.assertNever(Ee)}return je&&Qf(R.configFile,je,Ye)}function E1(){const Ee=R.suppressOutputPathCheck?void 0:oh(R);l5(oe,kt,(je,Ye,Rt)=>{const rn=(Ye?Ye.commandLine.projectReferences:oe)[Rt],fn=Ye&&Ye.sourceFile;if(il(rn,fn,Rt),!je){bs(fn,Rt,p.File_0_not_found,rn.path);return}const nn=je.commandLine.options;if((!nn.composite||nn.noEmit)&&(Ye?Ye.commandLine.fileNames:ee).length&&(nn.composite||bs(fn,Rt,p.Referenced_project_0_must_have_setting_composite_Colon_true,rn.path),nn.noEmit&&bs(fn,Rt,p.Referenced_project_0_may_not_disable_emit,rn.path)),rn.prepend){const zn=Ao(nn);zn?bt.fileExists(zn)||bs(fn,Rt,p.Output_file_0_from_project_1_does_not_exist,zn,rn.path):bs(fn,Rt,p.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,rn.path)}!Ye&&Ee&&Ee===oh(nn)&&(bs(fn,Rt,p.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ee,rn.path),pt.set(Oe(Ee),!0))})}function qd(Ee,je,Ye,...Rt){let rn=!0;At(fn=>{ha(fn.initializer)&&g6(fn.initializer,Ee,nn=>{const zn=nn.initializer;u_(zn)&&zn.elements.length>je&&(br.add(Qf(R.configFile,zn.elements[je],Ye,...Rt)),rn=!1)})}),rn&&br.add(kc(Ye,...Rt))}function J(Ee,je,Ye,...Rt){let rn=!0;At(fn=>{ha(fn.initializer)&&xl(fn.initializer,Ee,je,void 0,Ye,...Rt)&&(rn=!1)}),rn&&br.add(kc(Ye,...Rt))}function Be(Ee,je){return g6(aa(),Ee,je)}function At(Ee){return Be("paths",Ee)}function Jn(Ee,je){return Be(Ee,Ye=>pa(Ye.initializer)&&Ye.initializer.text===je?Ye.initializer:void 0)}function vs(Ee,je){const Ye=aa();return Ye&&Hle(Ye,Ee,je)}function di(Ee,je,Ye,Rt){Lo(!0,je,Ye,Ee,je,Ye,Rt)}function rs(Ee,je,...Ye){Lo(!1,Ee,void 0,je,...Ye)}function bs(Ee,je,Ye,...Rt){const rn=Bw(Ee||R.configFile,"references",fn=>u_(fn.initializer)?fn.initializer:void 0);rn&&rn.elements.length>je?br.add(Qf(Ee||R.configFile,rn.elements[je],Ye,...Rt)):br.add(kc(Ye,...Rt))}function Lo(Ee,je,Ye,Rt,...rn){const fn=aa();(!fn||!xl(fn,Ee,je,Ye,Rt,...rn))&&("messageText"in Rt?br.add(_O(Rt)):br.add(kc(Rt,...rn)))}function aa(){return ur===void 0&&(ur=g6(r3(R.configFile),"compilerOptions",Ee=>ha(Ee.initializer)?Ee.initializer:void 0)||!1),ur||void 0}function xl(Ee,je,Ye,Rt,rn,...fn){let nn=!1;return g6(Ee,Ye,zn=>{"messageText"in rn?br.add(Wg(R.configFile,je?zn.name:zn.initializer,rn)):br.add(Qf(R.configFile,je?zn.name:zn.initializer,rn,...fn)),nn=!0},Rt),nn}function cf(Ee,je){const Ye=aa();Ye?xl(Ye,!0,Ee,void 0,p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ee,je):di(p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ee,je)}function y_(Ee,je){pt.set(Oe(Ee),!0),br.add(je)}function ld(Ee){if(R.noEmit)return!1;const je=Oe(Ee);if(Cs(je))return!1;const Ye=Ao(R);if(Ye)return Hd(je,Ye)||Hd(je,mu(Ye)+".d.ts");if(R.declarationDir&&Xh(R.declarationDir,je,fi,!bt.useCaseSensitiveFileNames()))return!0;if(R.outDir)return Xh(R.outDir,je,fi,!bt.useCaseSensitiveFileNames());if(Gc(je,W6)||su(je)){const Rt=mu(je);return!!Cs(Rt+".ts")||!!Cs(Rt+".tsx")}return!1}function Hd(Ee,je){return Cb(Ee,je,fi,!bt.useCaseSensitiveFileNames())===0}function Fp(){return bt.getSymlinkCache?bt.getSymlinkCache():(fe||(fe=hue(fi,qr)),ue&&Pe&&!fe.hasProcessedResolutions()&&fe.setSymlinksFromResolutions(ue,Pe),fe)}}function H9e(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,a=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:_o,fileExists:f};e.compilerHost.fileExists=f;let l;return i&&(l=e.compilerHost.directoryExists=k=>i.call(e.compilerHost,k)?(y(k),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(C=>{const N=Ao(C.commandLine.options);if(N)t.add(bi(e.toPath(N)));else{const D=C.commandLine.options.declarationDir||C.commandLine.options.outDir;D&&t.add(e.toPath(D))}})),x(k,!1)):!1),a&&(e.compilerHost.getDirectories=k=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,k)?a.call(e.compilerHost,k):[]),o&&(e.compilerHost.realpath=k=>{var C;return((C=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:C.get(e.toPath(k)))||o.call(e.compilerHost,k)}),{onProgramCreateComplete:u,fileExists:f,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=a}function f(k){return r.call(e.compilerHost,k)?!0:!e.getResolvedProjectReferences()||!su(k)?!1:x(k,!0)}function g(k){const C=e.getSourceOfProjectReferenceRedirect(e.toPath(k));return C!==void 0?$s(C)?r.call(e.compilerHost,C):!0:void 0}function m(k){const C=e.toPath(k),N=`${C}${Wo}`;return Ix(t,D=>C===D||ts(D,N)||ts(C,`${D}/`))}function y(k){var C;if(!e.getResolvedProjectReferences()||J3(k)||!o||!Xl(k,sh))return;const N=e.getSymlinkCache(),D=D_(e.toPath(k));if((C=N.getSymlinkedDirectories())!=null&&C.has(D))return;const M=ba(o.call(e.compilerHost,k));let V;if(M===k||(V=D_(e.toPath(M)))===D){N.setSymlinkedDirectory(D,!1);return}N.setSymlinkedDirectory(k,{real:D_(M),realPath:V})}function x(k,C){var N;const D=C?j=>g(j):j=>m(j),M=D(k);if(M!==void 0)return M;const V=e.getSymlinkCache(),U=V.getSymlinkedDirectories();if(!U)return!1;const Y=e.toPath(k);return Xl(Y,sh)?C&&((N=V.getSymlinkedFiles())==null?void 0:N.has(Y))?!0:A7(U.entries(),([j,ee])=>{if(!ee||!ts(Y,j))return;const R=D(Y.replace(j,ee.realPath));if(C&&R){const Z=fs(k,e.compilerHost.getCurrentDirectory());V.setSymlinkedFile(Y,`${ee.real}${Z.replace(new RegExp(j,"i"),"")}`)}return R})||!1:!1}}function IX(e,t,r,i){const a=e.getCompilerOptions();if(a.noEmit)return e.getSemanticDiagnostics(t,i),t||Ao(a)?KL:e.emitBuildInfo(r,i);if(!a.noEmitOnError)return;let o=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(o.length===0&&Ep(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let l;if(!t&&!Ao(a)){const u=e.emitBuildInfo(r,i);u.diagnostics&&(o=[...o,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function GL(e,t){return Vr(e,r=>!r.skippedOn||!t[r.skippedOn])}function $L(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,a,o,l){return E.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,a,o,l)},readFile:r=>t.readFile(r),directoryExists:Gs(t,t.directoryExists),getDirectories:Gs(t,t.getDirectories),realpath:Gs(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||ay,trace:e.trace?r=>e.trace(r):void 0}}function OX(e,t,r,i){if(!e)return Ve;let a;for(let o=0;oi);for(const i of t)i.kind===11&&r.push(i);return r}function XL({imports:e,moduleAugmentations:t},r){if(r(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(LX||{}),QL="\x1B[7m",YL=" ",MX="\x1B[0m",RX="...",Kge=" ",BX=" ",jX={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},F8={getName:DX,getMode:(e,t)=>op(t,e)},u5={getName:UL,getMode:(e,t)=>o5(e,t==null?void 0:t.impliedNodeFormat)},f5="__inferred type names__.ts",ZL=new Set([p.Cannot_redeclare_block_scoped_variable_0.code,p.A_module_cannot_have_multiple_default_exports.code,p.Another_export_default_is_here.code,p.The_first_export_default_is_here.code,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,p.constructor_is_a_reserved_word.code,p.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,p.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,p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,p.Invalid_use_of_0_in_strict_mode.code,p.A_label_is_not_allowed_here.code,p.with_statements_are_not_allowed_in_strict_mode.code,p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,p.A_class_declaration_without_the_default_modifier_must_have_a_name.code,p.A_class_member_cannot_have_the_0_keyword.code,p.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,p.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,p.A_destructuring_declaration_must_have_an_initializer.code,p.A_get_accessor_cannot_have_parameters.code,p.A_rest_element_cannot_contain_a_binding_pattern.code,p.A_rest_element_cannot_have_a_property_name.code,p.A_rest_element_cannot_have_an_initializer.code,p.A_rest_element_must_be_last_in_a_destructuring_pattern.code,p.A_rest_parameter_cannot_have_an_initializer.code,p.A_rest_parameter_must_be_last_in_a_parameter_list.code,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,p.A_return_statement_cannot_be_used_inside_a_class_static_block.code,p.A_set_accessor_cannot_have_rest_parameter.code,p.A_set_accessor_must_have_exactly_one_parameter.code,p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_export_declaration_cannot_have_modifiers.code,p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_import_declaration_cannot_have_modifiers.code,p.An_object_member_cannot_be_declared_optional.code,p.Argument_of_dynamic_import_cannot_be_spread_element.code,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,p.Cannot_redeclare_identifier_0_in_catch_clause.code,p.Catch_clause_variable_cannot_have_an_initializer.code,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,p.Classes_can_only_extend_a_single_class.code,p.Classes_may_not_have_a_field_named_constructor.code,p.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,p.Duplicate_label_0.code,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,p.for_await_loops_cannot_be_used_inside_a_class_static_block.code,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,p.Jump_target_cannot_cross_function_boundary.code,p.Line_terminator_not_permitted_before_arrow.code,p.Modifiers_cannot_appear_here.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,p.Private_identifiers_are_not_allowed_outside_class_bodies.code,p.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,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,p.Trailing_comma_not_allowed.code,p.Variable_declaration_list_cannot_be_empty.code,p._0_and_1_operations_cannot_be_mixed_without_parentheses.code,p._0_expected.code,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,p._0_list_cannot_be_empty.code,p._0_modifier_already_seen.code,p._0_modifier_cannot_appear_on_a_constructor_declaration.code,p._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,p._0_modifier_cannot_appear_on_a_parameter.code,p._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,p._0_modifier_cannot_be_used_here.code,p._0_modifier_must_precede_1_modifier.code,p._0_declarations_can_only_be_declared_inside_a_block.code,p._0_declarations_must_be_initialized.code,p.extends_clause_already_seen.code,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,p.Class_constructor_may_not_be_a_generator.code,p.Class_constructor_may_not_be_an_accessor.code,p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Private_field_0_must_be_declared_in_an_enclosing_class.code,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),KL={diagnostics:Ve,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),$9e=Bt({"src/compiler/builderStatePublic.ts"(){}});function e0e(e,t,r,i,a,o){const l=[],{emitSkipped:u,diagnostics:f}=e.emit(t,g,i,r,a,o);return{outputFiles:l,emitSkipped:u,diagnostics:f};function g(m,y,x){l.push({name:m,writeByteOrderMark:x,text:y})}}var wm,X9e=Bt({"src/compiler/builderState.ts"(){Os(),(e=>{function t(){function X(H,Q,re){const ue={getKeys:fe=>Q.get(fe),getValues:fe=>H.get(fe),keys:()=>H.keys(),deleteKey:fe=>{(re||(re=new Set)).add(fe);const G=H.get(fe);return G?(G.forEach(Ne=>i(Q,Ne,fe)),H.delete(fe),!0):!1},set:(fe,G)=>{re==null||re.delete(fe);const Ne=H.get(fe);return H.set(fe,G),Ne==null||Ne.forEach(De=>{G.has(De)||i(Q,De,fe)}),G.forEach(De=>{Ne!=null&&Ne.has(De)||r(Q,De,fe)}),ue}};return ue}return X(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(X,H,Q){let re=X.get(H);re||(re=new Set,X.set(H,re)),re.add(Q)}function i(X,H,Q){const re=X.get(H);return re!=null&&re.delete(Q)?(re.size||X.delete(H),!0):!1}function a(X){return qi(X.declarations,H=>{var Q;return(Q=Bn(H))==null?void 0:Q.resolvedPath})}function o(X,H){const Q=X.getSymbolAtLocation(H);return Q&&a(Q)}function l(X,H,Q,re){return yo(X.getProjectReferenceRedirect(H)||H,Q,re)}function u(X,H,Q){let re;if(H.imports&&H.imports.length>0){const Ne=X.getTypeChecker();for(const De of H.imports){const Xe=o(Ne,De);Xe==null||Xe.forEach(G)}}const ue=bi(H.resolvedPath);if(H.referencedFiles&&H.referencedFiles.length>0)for(const Ne of H.referencedFiles){const De=l(X,Ne.fileName,ue,Q);G(De)}if(H.resolvedTypeReferenceDirectiveNames&&H.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Ne})=>{if(!Ne)return;const De=Ne.resolvedFileName,Xe=l(X,De,ue,Q);G(Xe)}),H.moduleAugmentations.length){const Ne=X.getTypeChecker();for(const De of H.moduleAugmentations){if(!pa(De))continue;const Xe=Ne.getSymbolAtLocation(De);!Xe||fe(Xe)}}for(const Ne of X.getTypeChecker().getAmbientModules())Ne.declarations&&Ne.declarations.length>1&&fe(Ne);return re;function fe(Ne){if(!!Ne.declarations)for(const De of Ne.declarations){const Xe=Bn(De);Xe&&Xe!==H&&G(Xe.resolvedPath)}}function G(Ne){(re||(re=new Set)).add(Ne)}}function f(X,H){return H&&!H.referencedMap==!X}e.canReuseOldState=f;function g(X,H,Q){var re,ue,fe;const G=new Map,Ne=X.getCompilerOptions(),De=Ao(Ne),Xe=Ne.module!==0&&!De?t():void 0,ve=Xe?t():void 0,be=f(Xe,H);X.getTypeChecker();for(const xe of X.getSourceFiles()){const rt=E.checkDefined(xe.version,"Program intended to be used with Builder should have source files with versions set"),ct=be?(re=H.oldSignatures)==null?void 0:re.get(xe.resolvedPath):void 0,pe=ct===void 0?be?(ue=H.fileInfos.get(xe.resolvedPath))==null?void 0:ue.signature:void 0:ct||void 0;if(Xe){const Pe=u(X,xe,X.getCanonicalFileName);if(Pe&&Xe.set(xe.resolvedPath,Pe),be){const Ge=(fe=H.oldExportedModulesMap)==null?void 0:fe.get(xe.resolvedPath),tt=Ge===void 0?H.exportedModulesMap.getValues(xe.resolvedPath):Ge||void 0;tt&&ve.set(xe.resolvedPath,tt)}}G.set(xe.resolvedPath,{version:rt,signature:pe,affectsGlobalScope:De?void 0:R(xe)||void 0,impliedFormat:xe.impliedNodeFormat})}return{fileInfos:G,referencedMap:Xe,exportedModulesMap:ve,useFileVersionAsSignature:!Q&&!be}}e.create=g;function m(X){X.allFilesExcludingDefaultLibraryFile=void 0,X.allFileNames=void 0}e.releaseCache=m;function y(X,H,Q,re,ue){var fe,G;const Ne=x(X,H,Q,re,ue);return(fe=X.oldSignatures)==null||fe.clear(),(G=X.oldExportedModulesMap)==null||G.clear(),Ne}e.getFilesAffectedBy=y;function x(X,H,Q,re,ue){const fe=H.getSourceFileByPath(Q);return fe?N(X,H,fe,re,ue)?(X.referencedMap?_e:oe)(X,H,fe,re,ue):[fe]:Ve}e.getFilesAffectedByWithOldState=x;function k(X,H,Q){X.fileInfos.get(Q).signature=H,(X.hasCalledUpdateShapeSignature||(X.hasCalledUpdateShapeSignature=new Set)).add(Q)}e.updateSignatureOfFile=k;function C(X,H,Q,re,ue){X.emit(H,(fe,G,Ne,De,Xe,ve)=>{E.assert(su(fe),`File extension for signature expected to be dts: Got:: ${fe}`),ue(qX(X,H,G,re,ve),Xe)},Q,!0,void 0,!0)}e.computeDtsSignature=C;function N(X,H,Q,re,ue,fe=X.useFileVersionAsSignature){var G;if((G=X.hasCalledUpdateShapeSignature)!=null&&G.has(Q.resolvedPath))return!1;const Ne=X.fileInfos.get(Q.resolvedPath),De=Ne.signature;let Xe;if(!Q.isDeclarationFile&&!fe&&C(H,Q,re,ue,(ve,be)=>{Xe=ve,Xe!==De&&D(X,Q,be[0].exportedModulesFromDeclarationEmit)}),Xe===void 0&&(Xe=Q.version,X.exportedModulesMap&&Xe!==De)){(X.oldExportedModulesMap||(X.oldExportedModulesMap=new Map)).set(Q.resolvedPath,X.exportedModulesMap.getValues(Q.resolvedPath)||!1);const ve=X.referencedMap?X.referencedMap.getValues(Q.resolvedPath):void 0;ve?X.exportedModulesMap.set(Q.resolvedPath,ve):X.exportedModulesMap.deleteKey(Q.resolvedPath)}return(X.oldSignatures||(X.oldSignatures=new Map)).set(Q.resolvedPath,De||!1),(X.hasCalledUpdateShapeSignature||(X.hasCalledUpdateShapeSignature=new Set)).add(Q.resolvedPath),Ne.signature=Xe,Xe!==De}e.updateShapeSignature=N;function D(X,H,Q){if(!X.exportedModulesMap)return;(X.oldExportedModulesMap||(X.oldExportedModulesMap=new Map)).set(H.resolvedPath,X.exportedModulesMap.getValues(H.resolvedPath)||!1);const re=M(Q);re?X.exportedModulesMap.set(H.resolvedPath,re):X.exportedModulesMap.deleteKey(H.resolvedPath)}e.updateExportedModules=D;function M(X){let H;return X==null||X.forEach(Q=>a(Q).forEach(re=>(H!=null?H:H=new Set).add(re))),H}e.getExportedModules=M;function V(X,H,Q){const re=H.getCompilerOptions();if(Ao(re)||!X.referencedMap||R(Q))return U(X,H);const ue=new Set,fe=[Q.resolvedPath];for(;fe.length;){const G=fe.pop();if(!ue.has(G)){ue.add(G);const Ne=X.referencedMap.getValues(G);if(Ne)for(const De of Ne.keys())fe.push(De)}}return ia(I7(ue.keys(),G=>{var De;var Ne;return(De=(Ne=H.getSourceFileByPath(G))==null?void 0:Ne.fileName)!=null?De:G}))}e.getAllDependencies=V;function U(X,H){if(!X.allFileNames){const Q=H.getSourceFiles();X.allFileNames=Q===Ve?Ve:Q.map(re=>re.fileName)}return X.allFileNames}function Y(X,H){const Q=X.referencedMap.getKeys(H);return Q?ia(Q.keys()):[]}e.getReferencedByPaths=Y;function j(X){for(const H of X.statements)if(!T9(H))return!1;return!0}function ee(X){return dt(X.moduleAugmentations,H=>Pd(H.parent))}function R(X){return ee(X)||!Yu(X)&&!Yf(X)&&!j(X)}function Z(X,H,Q){if(X.allFilesExcludingDefaultLibraryFile)return X.allFilesExcludingDefaultLibraryFile;let re;Q&&ue(Q);for(const fe of H.getSourceFiles())fe!==Q&&ue(fe);return X.allFilesExcludingDefaultLibraryFile=re||Ve,X.allFilesExcludingDefaultLibraryFile;function ue(fe){H.isSourceFileDefaultLibrary(fe)||(re||(re=[])).push(fe)}}e.getAllFilesExcludingDefaultLibraryFile=Z;function oe(X,H,Q){const re=H.getCompilerOptions();return re&&Ao(re)?[Q]:Z(X,H,Q)}function _e(X,H,Q,re,ue){if(R(Q))return Z(X,H,Q);const fe=H.getCompilerOptions();if(fe&&(ed(fe)||Ao(fe)))return[Q];const G=new Map;G.set(Q.resolvedPath,Q);const Ne=Y(X,Q.resolvedPath);for(;Ne.length>0;){const De=Ne.pop();if(!G.has(De)){const Xe=H.getSourceFileByPath(De);G.set(De,Xe),Xe&&N(X,H,Xe,re,ue)&&Ne.push(...Y(X,Xe.resolvedPath))}}return ia(I7(G.values(),De=>De))}})(wm||(wm={}))}});function v1(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Ep(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function b4(e,t){const r=t&&(R0(t)?t:v1(t)),i=R0(e)?e:v1(e);if(r===i)return 0;if(!r||!i)return i;const a=r^i;let o=0;return a&7&&(o=i&7),a&24&&(o=o|i&24),o}function Q9e(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!Ix(e,r=>!t.has(r))}function Y9e(e,t){var r,i;const a=wm.create(e,t,!1);a.program=e;const o=e.getCompilerOptions();a.compilerOptions=o;const l=Ao(o);l?o.composite&&(t==null?void 0:t.outSignature)&&l===Ao(t==null?void 0:t.compilerOptions)&&(a.outSignature=t.outSignature&&n0e(o,t.compilerOptions,t.outSignature)):a.semanticDiagnosticsPerFile=new Map,a.changedFilesSet=new Set,a.latestChangedDtsFile=o.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const u=wm.canReuseOldState(a.referencedMap,t),f=u?t.compilerOptions:void 0,g=u&&t.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!due(o,f),m=o.composite&&(t==null?void 0:t.emitSignatures)&&!l&&!gue(o,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(N=>a.changedFilesSet.add(N)),!l&&((i=t.affectedFilesPendingEmit)==null?void 0:i.size)&&(a.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),a.seenAffectedFiles=new Set),a.programEmitPending=t.programEmitPending):a.buildInfoEmitPending=!0;const y=a.referencedMap,x=u?t.referencedMap:void 0,k=g&&!o.skipLibCheck==!f.skipLibCheck,C=k&&!o.skipDefaultLibCheck==!f.skipDefaultLibCheck;if(a.fileInfos.forEach((N,D)=>{var U;let M,V;if(!u||!(M=t.fileInfos.get(D))||M.version!==N.version||M.impliedFormat!==N.impliedFormat||!Q9e(V=y&&y.getValues(D),x&&x.getValues(D))||V&&Ix(V,Y=>!a.fileInfos.has(Y)&&t.fileInfos.has(Y)))t0e(a,D);else if(g){const Y=e.getSourceFileByPath(D);if(Y.isDeclarationFile&&!k||Y.hasNoDefaultLib&&!C)return;const j=t.semanticDiagnosticsPerFile.get(D);j&&(a.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?K9e(j,e):Z9e(j,e)),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=new Set),a.semanticDiagnosticsFromOldState.add(D))}if(m){const Y=t.emitSignatures.get(D);Y&&((U=a.emitSignatures)!=null?U:a.emitSignatures=new Map).set(D,n0e(o,t.compilerOptions,Y))}}),u&&Au(t.fileInfos,(N,D)=>a.fileInfos.has(D)?!1:l||N.affectsGlobalScope?!0:(a.buildInfoEmitPending=!0,!1)))wm.getAllFilesExcludingDefaultLibraryFile(a,e,void 0).forEach(N=>t0e(a,N.resolvedPath));else if(f){const N=mue(o,f)?v1(o):b4(o,f);N!==0&&(l?a.programEmitPending=a.programEmitPending?a.programEmitPending|N:N:(e.getSourceFiles().forEach(D=>{a.changedFilesSet.has(D.resolvedPath)||GX(a,D.resolvedPath,N)}),E.assert(!a.seenAffectedFiles||!a.seenAffectedFiles.size),a.seenAffectedFiles=a.seenAffectedFiles||new Set,a.buildInfoEmitPending=!0))}return l&&!a.changedFilesSet.size&&(u&&(a.bundle=t.bundle),dt(e.getProjectReferences(),N=>!!N.prepend)&&(a.programEmitPending=v1(o))),a}function t0e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function n0e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:$s(r)?[r]:r[0]}function Z9e(e,t){return e.length?cl(e,r=>{if($s(r.messageText))return r;const i=JX(r.messageText,r.file,t,a=>{var o;return(o=a.repopulateInfo)==null?void 0:o.call(a)});return i===r.messageText?r:{...r,messageText:i}}):e}function JX(e,t,r,i){const a=i(e);if(a)return{...xW(t,r,a.moduleReference,a.mode,a.packageName||a.moduleReference),next:r0e(e.next,t,r,i)};const o=r0e(e.next,t,r,i);return o===e.next?e:{...e,next:o}}function r0e(e,t,r,i){return cl(e,a=>JX(a,t,r,i))}function K9e(e,t){if(!e.length)return Ve;let r;return e.map(a=>{const o=i0e(a,t,i);o.reportsUnnecessary=a.reportsUnnecessary,o.reportsDeprecated=a.reportDeprecated,o.source=a.source,o.skippedOn=a.skippedOn;const{relatedInformation:l}=a;return o.relatedInformation=l?l.length?l.map(u=>i0e(u,t,i)):[]:void 0,o});function i(a){return r!=null||(r=bi(fs(oh(t.getCompilerOptions()),t.getCurrentDirectory()))),yo(a,r,t.getCanonicalFileName)}}function i0e(e,t,r){const{file:i}=e,a=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:a,messageText:$s(e.messageText)?e.messageText:JX(e.messageText,a,t,o=>o.info)}}function eOe(e){wm.releaseCache(e),e.program=void 0}function tOe(e){const t=Ao(e.compilerOptions);return E.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}function nOe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function s0e(e,t){E.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function a0e(e,t,r){for(var i,a;;){const{affectedFiles:o}=e;if(o){const g=e.seenAffectedFiles;let m=e.affectedFilesIndex;for(;m{const o=i&7;o?e.affectedFilesPendingEmit.set(a,o):e.affectedFilesPendingEmit.delete(a)})}}function iOe(e,t){var r;if(!!((r=e.affectedFilesPendingEmit)!=null&&r.size))return Au(e.affectedFilesPendingEmit,(i,a)=>{var o;const l=e.program.getSourceFileByPath(a);if(!l||!Wx(l,e.program)){e.affectedFilesPendingEmit.delete(a);return}const u=(o=e.seenEmittedFiles)==null?void 0:o.get(l.resolvedPath);let f=b4(i,u);if(t&&(f=f&24),f)return{affectedFile:l,emitKind:f}})}function o0e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=E.checkDefined(e.program),r=t.getCompilerOptions();mn(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!M3(i,r,t)&&zX(e,i.resolvedPath))}}function sOe(e,t,r,i){if(zX(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){o0e(e),wm.updateShapeSignature(e,E.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||aOe(e,t,r,i)}function eM(e,t,r,i){if(zX(e,t),!e.changedFilesSet.has(t)){const a=E.checkDefined(e.program),o=a.getSourceFileByPath(t);o&&(wm.updateShapeSignature(e,a,o,r,i,!0),Ep(e.compilerOptions)&&GX(e,t,e.compilerOptions.declarationMap?24:8))}}function zX(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function c0e(e,t){const r=E.checkDefined(e.oldSignatures).get(t)||void 0;return E.checkDefined(e.fileInfos.get(t)).signature!==r}function VX(e,t,r,i){var a;return(a=e.fileInfos.get(t))!=null&&a.affectsGlobalScope?(wm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(o=>eM(e,o.resolvedPath,r,i)),o0e(e),!0):!1}function aOe(e,t,r,i){var a;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!c0e(e,t.resolvedPath))return;if(ed(e.compilerOptions)){const l=new Map;l.set(t.resolvedPath,!0);const u=wm.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const f=u.pop();if(!l.has(f)){if(l.set(f,!0),VX(e,f,r,i))return;if(eM(e,f,r,i),c0e(e,f)){const g=E.checkDefined(e.program).getSourceFileByPath(f);u.push(...wm.getReferencedByPaths(e,g.resolvedPath))}}}}const o=new Set;(a=e.exportedModulesMap.getKeys(t.resolvedPath))==null||a.forEach(l=>{if(VX(e,l,r,i))return!0;const u=e.referencedMap.getKeys(l);return u&&Ix(u,f=>l0e(e,f,o,r,i))})}function l0e(e,t,r,i,a){var o,l;if(!!Lv(r,t)){if(VX(e,t,i,a))return!0;eM(e,t,i,a),(o=e.exportedModulesMap.getKeys(t))==null||o.forEach(u=>l0e(e,u,r,i,a)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&eM(e,u,i,a))}}function UX(e,t,r){return Ki(oOe(e,t,r),E.checkDefined(e.program).getProgramDiagnostics(t))}function oOe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const o=e.semanticDiagnosticsPerFile.get(i);if(o)return GL(o,e.compilerOptions)}const a=E.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,a),GL(a,e.compilerOptions)}function _0e(e){return!!Ao(e.options||{})}function cOe(e,t){var r,i,a;const o=E.checkDefined(e.program).getCurrentDirectory(),l=bi(fs(oh(e.compilerOptions),o)),u=e.latestChangedDtsFile?j(e.latestChangedDtsFile):void 0,f=[],g=new Map,m=[];if(Ao(e.compilerOptions)){const X=ia(e.fileInfos.entries(),([G,Ne])=>{const De=R(G);return oe(G,De),Ne.impliedFormat?{version:Ne.version,impliedFormat:Ne.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Ne.version}),H={fileNames:f,fileInfos:X,root:m,options:_e(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===v1(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Q,dts:re,commonSourceDirectory:ue,sourceFiles:fe}=t;return e.bundle=t={commonSourceDirectory:ue,sourceFiles:fe,js:Q||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:re||(Ep(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},r5(H,t)}let y,x,k;const C=ia(e.fileInfos.entries(),([X,H])=>{var Q,re;const ue=R(X);oe(X,ue),E.assert(f[ue-1]===ee(X));const fe=(Q=e.oldSignatures)==null?void 0:Q.get(X),G=fe!==void 0?fe||void 0:H.signature;if(e.compilerOptions.composite){const Ne=e.program.getSourceFileByPath(X);if(!Yf(Ne)&&Wx(Ne,e.program)){const De=(re=e.emitSignatures)==null?void 0:re.get(X);De!==G&&(k||(k=[])).push(De===void 0?ue:[ue,!$s(De)&&De[0]===G?Ve:De])}}return H.version===G?H.affectsGlobalScope||H.impliedFormat?{version:H.version,signature:void 0,affectsGlobalScope:H.affectsGlobalScope,impliedFormat:H.impliedFormat}:H.version:G!==void 0?fe===void 0?H:{version:H.version,signature:G,affectsGlobalScope:H.affectsGlobalScope,impliedFormat:H.impliedFormat}:{version:H.version,signature:!1,affectsGlobalScope:H.affectsGlobalScope,impliedFormat:H.impliedFormat}});let N;e.referencedMap&&(N=ia(e.referencedMap.keys()).sort(w_).map(X=>[R(X),Z(e.referencedMap.getValues(X))]));let D;e.exportedModulesMap&&(D=qi(ia(e.exportedModulesMap.keys()).sort(w_),X=>{var H;const Q=(H=e.oldExportedModulesMap)==null?void 0:H.get(X);if(Q===void 0)return[R(X),Z(e.exportedModulesMap.getValues(X))];if(Q)return[R(X),Z(Q)]}));let M;if(e.semanticDiagnosticsPerFile)for(const X of ia(e.semanticDiagnosticsPerFile.keys()).sort(w_)){const H=e.semanticDiagnosticsPerFile.get(X);(M||(M=[])).push(H.length?[R(X),_Oe(H,ee)]:R(X))}let V;if((a=e.affectedFilesPendingEmit)!=null&&a.size){const X=v1(e.compilerOptions),H=new Set;for(const Q of ia(e.affectedFilesPendingEmit.keys()).sort(w_))if(Lv(H,Q)){const re=e.program.getSourceFileByPath(Q);if(!re||!Wx(re,e.program))continue;const ue=R(Q),fe=e.affectedFilesPendingEmit.get(Q);(V||(V=[])).push(fe===X?ue:fe===8?[ue]:[ue,fe])}}let U;if(e.changedFilesSet.size)for(const X of ia(e.changedFilesSet.keys()).sort(w_))(U||(U=[])).push(R(X));const Y={fileNames:f,fileInfos:C,root:m,options:_e(e.compilerOptions),fileIdsList:y,referencedMap:N,exportedModulesMap:D,semanticDiagnosticsPerFile:M,affectedFilesPendingEmit:V,changeFileSet:U,emitSignatures:k,latestChangedDtsFile:u};return r5(Y,t);function j(X){return ee(fs(X,o))}function ee(X){return Vv(um(l,X,e.program.getCanonicalFileName))}function R(X){let H=g.get(X);return H===void 0&&(f.push(ee(X)),g.set(X,H=f.length)),H}function Z(X){const H=ia(X.keys(),R).sort(Co),Q=H.join();let re=x==null?void 0:x.get(Q);return re===void 0&&((y||(y=[])).push(H),(x||(x=new Map)).set(Q,re=y.length)),re}function oe(X,H){const Q=e.program.getSourceFile(X);if(!e.program.getFileIncludeReasons().get(Q.path).some(G=>G.kind===0))return;if(!m.length)return m.push(H);const re=m[m.length-1],ue=Ds(re);if(ue&&re[1]===H-1)return re[1]=H;if(ue||m.length===1||re!==H-1)return m.push(H);const fe=m[m.length-2];return!R0(fe)||fe!==re-1?m.push(H):(m[m.length-2]=[fe,H],m.length=m.length-1)}function _e(X){let H;const{optionsNameMap:Q}=f4();for(const re of Bg(X).sort(w_)){const ue=Q.get(re.toLowerCase());ue!=null&&ue.affectsBuildInfo&&((H||(H={}))[re]=lOe(ue,X[re],j))}return H}}function lOe(e,t,r){if(e){if(E.assert(e.type!=="listOrElement"),e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t)}return t}function _Oe(e,t){return E.assert(!!e.length),e.map(r=>{const i=u0e(r,t);i.reportsUnnecessary=r.reportsUnnecessary,i.reportDeprecated=r.reportsDeprecated,i.source=r.source,i.skippedOn=r.skippedOn;const{relatedInformation:a}=r;return i.relatedInformation=a?a.length?a.map(o=>u0e(o,t)):[]:void 0,i})}function u0e(e,t){const{file:r}=e;return{...e,file:r?t(r.resolvedPath):void 0,messageText:$s(e.messageText)?e.messageText:WX(e.messageText)}}function WX(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:f0e(e.next)};const t=f0e(e.next);return t===e.next?e:{...e,next:t}}function f0e(e){return e&&(mn(e,(t,r)=>{const i=WX(t);if(t===i)return;const a=r>0?e.slice(0,r-1):[];a.push(i);for(let o=r+1;o`${f(m)}${H7[m.category]}${m.code}: ${u(m.messageText)}`).join(` -`)),((g=i.createHash)!=null?g:$7)(r);function u(m){return $s(m)?m:m===void 0?"":m.next?m.messageText+m.next.map(u).join(` -`):m.messageText}function f(m){return m.file.resolvedPath===t.resolvedPath?`(${m.start},${m.length})`:(l===void 0&&(l=bi(t.resolvedPath)),`${Vv(um(l,m.file.resolvedPath,e.getCanonicalFileName))}(${m.start},${m.length})`)}}function pT(e,t,r){var i;return((i=t.createHash)!=null?i:$7)(p0e(e,r))}function HX(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:a}){let o=i&&i.getState();if(o&&t===o.program&&a===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;const l=Y9e(t,o);t.getBuildInfo=N=>cOe(l,N),t=void 0,i=void 0,o=void 0;const u=()=>l,f=XX(u,a);return f.getState=u,f.saveEmitState=()=>tOe(l),f.restoreEmitState=N=>nOe(l,N),f.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,f.getAllDependencies=N=>wm.getAllDependencies(l,E.checkDefined(l.program),N),f.getSemanticDiagnostics=C,f.emit=x,f.releaseProgram=()=>eOe(l),e===0?f.getSemanticDiagnosticsOfNextAffectedFile=k:e===1?(f.getSemanticDiagnosticsOfNextAffectedFile=k,f.emitNextAffectedFile=m,f.emitBuildInfo=g):Ss(),f;function g(N,D){if(l.buildInfoEmitPending){const M=E.checkDefined(l.program).emitBuildInfo(N||Gs(r,r.writeFile),D);return l.buildInfoEmitPending=!1,M}return KL}function m(N,D,M,V){var X,H;var U,Y,j;let ee=a0e(l,D,r);const R=v1(l.compilerOptions);let Z=M?R&24:R;if(!ee)if(Ao(l.compilerOptions)){if(!l.programEmitPending||(Z=l.programEmitPending,M&&(Z=Z&24),!Z))return;ee=l.program}else{const Q=iOe(l,M);if(!Q){if(!l.buildInfoEmitPending)return;const re=l.program,ue=re.emitBuildInfo(N||Gs(r,r.writeFile),D);return l.buildInfoEmitPending=!1,{result:ue,affected:re}}({affectedFile:ee,emitKind:Z}=Q)}let oe;Z&7&&(oe=0),Z&24&&(oe=oe===void 0?1:void 0),ee===l.program&&(l.programEmitPending=l.changedFilesSet.size?b4(R,Z):l.programEmitPending?b4(l.programEmitPending,Z):void 0);const _e=l.program.emit(ee===l.program?void 0:ee,y(N,V),D,oe,V);if(ee!==l.program){const Q=ee;l.seenAffectedFiles.add(Q.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const re=((U=l.seenEmittedFiles)==null?void 0:U.get(Q.resolvedPath))||0;((X=l.seenEmittedFiles)!=null?X:l.seenEmittedFiles=new Map).set(Q.resolvedPath,Z|re);const ue=((Y=l.affectedFilesPendingEmit)==null?void 0:Y.get(Q.resolvedPath))||R,fe=b4(ue,Z|re);fe?((H=l.affectedFilesPendingEmit)!=null?H:l.affectedFilesPendingEmit=new Map).set(Q.resolvedPath,fe):(j=l.affectedFilesPendingEmit)==null||j.delete(Q.resolvedPath)}else l.changedFilesSet.clear();return{result:_e,affected:ee}}function y(N,D){return Ep(l.compilerOptions)?(M,V,U,Y,j,ee)=>{var H,Q,re;var R,Z,oe,_e;if(su(M))if(Ao(l.compilerOptions)){if(l.compilerOptions.composite){const ue=X(l.outSignature,void 0);if(!ue)return;l.outSignature=ue}}else{E.assert((j==null?void 0:j.length)===1);let ue;if(!D){const fe=j[0],G=l.fileInfos.get(fe.resolvedPath);if(G.signature===fe.version){const Ne=qX(l.program,fe,V,r,ee);(R=ee==null?void 0:ee.diagnostics)!=null&&R.length||(ue=Ne),Ne!==fe.version&&(r.storeFilesChangingSignatureDuringEmit&&((H=l.filesChangingSignature)!=null?H:l.filesChangingSignature=new Set).add(fe.resolvedPath),l.exportedModulesMap&&wm.updateExportedModules(l,fe,fe.exportedModulesFromDeclarationEmit),l.affectedFiles?(((Z=l.oldSignatures)==null?void 0:Z.get(fe.resolvedPath))===void 0&&((Q=l.oldSignatures)!=null?Q:l.oldSignatures=new Map).set(fe.resolvedPath,G.signature||!1),G.signature=Ne):(G.signature=Ne,(oe=l.oldExportedModulesMap)==null||oe.clear()))}}if(l.compilerOptions.composite){const fe=j[0].resolvedPath;if(ue=X((_e=l.emitSignatures)==null?void 0:_e.get(fe),ue),!ue)return;((re=l.emitSignatures)!=null?re:l.emitSignatures=new Map).set(fe,ue)}}N?N(M,V,U,Y,j,ee):r.writeFile?r.writeFile(M,V,U,Y,j,ee):l.program.writeFile(M,V,U,Y,j,ee);function X(ue,fe){const G=!ue||$s(ue)?ue:ue[0];if(fe!=null||(fe=pT(V,r,ee)),fe===G){if(ue===G)return;ee?ee.differsOnlyInMap=!0:ee={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=M;return fe}}:N||Gs(r,r.writeFile)}function x(N,D,M,V,U){e===1&&s0e(l,N);const Y=IX(f,N,D,M);if(Y)return Y;if(!N)if(e===1){let j=[],ee=!1,R,Z=[],oe;for(;oe=m(D,M,V,U);)ee=ee||oe.result.emitSkipped,R=Lr(R,oe.result.diagnostics),Z=Lr(Z,oe.result.emittedFiles),j=Lr(j,oe.result.sourceMaps);return{emitSkipped:ee,diagnostics:R||Ve,emittedFiles:Z,sourceMaps:j}}else rOe(l,V);return E.checkDefined(l.program).emit(N,y(D,U),M,V,U)}function k(N,D){for(;;){const M=a0e(l,N,r);let V;if(M)if(M!==l.program){const U=M;if((!D||!D(U))&&(V=UX(l,U,N)),l.seenAffectedFiles.add(U.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!V)continue}else V=l.program.getSemanticDiagnostics(void 0,N),l.changedFilesSet.clear(),l.programEmitPending=v1(l.compilerOptions);else return;return{result:V,affected:M}}}function C(N,D){s0e(l,N);const M=E.checkDefined(l.program).getCompilerOptions();if(Ao(M))return E.assert(!l.semanticDiagnosticsPerFile),E.checkDefined(l.program).getSemanticDiagnostics(N,D);if(N)return UX(l,N,D);for(;k(D););let V;for(const U of E.checkDefined(l.program).getSourceFiles())V=Lr(V,UX(l,U,D));return V||Ve}}function GX(e,t,r){var o;var i;const a=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((o=e.affectedFilesPendingEmit)!=null?o:e.affectedFilesPendingEmit=new Map).set(t,a|r)}function d0e(e){return $s(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:$s(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function m0e(e,t){return R0(e)?t:e[1]||8}function g0e(e,t){return e||v1(t||{})}function h0e(e,t,r){var i,a,o,l;const u=e.program,f=bi(fs(t,r.getCurrentDirectory())),g=Ql(r.useCaseSensitiveFileNames());let m;const y=(i=u.fileNames)==null?void 0:i.map(C);let x;const k=u.latestChangedDtsFile?N(u.latestChangedDtsFile):void 0;if(_0e(u)){const U=new Map;u.fileInfos.forEach((Y,j)=>{const ee=D(j+1);U.set(ee,$s(Y)?{version:Y,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:Y)}),m={fileInfos:U,compilerOptions:u.options?RG(u.options,N):{},latestChangedDtsFile:k,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:g0e(u.pendingEmit,u.options),bundle:e.bundle}}else{x=(a=u.fileIdsList)==null?void 0:a.map(ee=>new Set(ee.map(D)));const U=new Map,Y=((o=u.options)==null?void 0:o.composite)&&!Ao(u.options)?new Map:void 0;u.fileInfos.forEach((ee,R)=>{const Z=D(R+1),oe=d0e(ee);U.set(Z,oe),Y&&oe.signature&&Y.set(Z,oe.signature)}),(l=u.emitSignatures)==null||l.forEach(ee=>{if(R0(ee))Y.delete(D(ee));else{const R=D(ee[0]);Y.set(R,!$s(ee[1])&&!ee[1].length?[Y.get(R)]:ee[1])}});const j=u.affectedFilesPendingEmit?v1(u.options||{}):void 0;m={fileInfos:U,compilerOptions:u.options?RG(u.options,N):{},referencedMap:V(u.referencedMap),exportedModulesMap:V(u.exportedModulesMap),semanticDiagnosticsPerFile:u.semanticDiagnosticsPerFile&&Mv(u.semanticDiagnosticsPerFile,ee=>D(R0(ee)?ee:ee[0]),ee=>R0(ee)?Ve:ee[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&Mv(u.affectedFilesPendingEmit,ee=>D(R0(ee)?ee:ee[0]),ee=>m0e(ee,j)),changedFilesSet:new Set(an(u.changeFileSet,D)),latestChangedDtsFile:k,emitSignatures:Y!=null&&Y.size?Y:void 0}}return{getState:()=>m,saveEmitState:_o,restoreEmitState:_o,getProgram:Ss,getProgramOrUndefined:ay,releaseProgram:_o,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Ss,getSourceFiles:Ss,getOptionsDiagnostics:Ss,getGlobalDiagnostics:Ss,getConfigFileParsingDiagnostics:Ss,getSyntacticDiagnostics:Ss,getDeclarationDiagnostics:Ss,getSemanticDiagnostics:Ss,emit:Ss,getAllDependencies:Ss,getCurrentDirectory:Ss,emitNextAffectedFile:Ss,getSemanticDiagnosticsOfNextAffectedFile:Ss,emitBuildInfo:Ss,close:_o,hasChangedEmitSignature:B0};function C(U){return yo(U,f,g)}function N(U){return fs(U,f)}function D(U){return y[U-1]}function M(U){return x[U-1]}function V(U){if(!U)return;const Y=wm.createManyToManyPathMap();return U.forEach(([j,ee])=>Y.set(D(j),M(ee))),Y}}function $X(e,t,r){const i=bi(fs(t,r.getCurrentDirectory())),a=Ql(r.useCaseSensitiveFileNames()),o=new Map;let l=0;const u=[];return e.fileInfos.forEach((f,g)=>{const m=yo(e.fileNames[g],i,a),y=$s(f)?f:f.version;if(o.set(m,y),le().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,a)=>r().getSyntacticDiagnostics(i,a),getDeclarationDiagnostics:(i,a)=>r().getDeclarationDiagnostics(i,a),getSemanticDiagnostics:(i,a)=>r().getSemanticDiagnostics(i,a),emit:(i,a,o,l,u)=>r().emit(i,a,o,l,u),emitBuildInfo:(i,a)=>r().emitBuildInfo(i,a),getAllDependencies:Ss,getCurrentDirectory:()=>r().getCurrentDirectory(),close:_o};function r(){return E.checkDefined(e().program)}}var QX,YX,uOe=Bt({"src/compiler/builder.ts"(){Os(),QX=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(QX||{}),YX=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(YX||{})}});function fOe(e,t,r,i,a,o){return HX(0,tM(e,t,r,i,a,o))}function ZX(e,t,r,i,a,o){return HX(1,tM(e,t,r,i,a,o))}function pOe(e,t,r,i,a,o){const{newProgram:l,configFileParsingDiagnostics:u}=tM(e,t,r,i,a,o);return XX(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var dOe=Bt({"src/compiler/builderPublic.ts"(){Os()}});function KX(e){return Tc(e,"/node_modules/.staging")?Uk(e,"/.staging"):dt(K7,t=>Xl(e,t))?void 0:e}function eQ(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==Wo&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:r+2}function y0e(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=eQ(e,t);return t>r+1}function v0e(e){return T0e(bi(e))}function b0e(e,t){if(t.lengtha.length+1?nQ(u,l,Math.max(a.length+1,f+1)):{dir:r,dirPath:i,nonRecursive:!0}:S0e(u,l,l.length-1,f,g,a)}function S0e(e,t,r,i,a,o){if(a!==-1)return nQ(e,t,a+1);let l=!0,u=r;for(let f=0;fe.getCurrentDirectory()),U=e.getCachedDirectoryStructureHost(),Y=new Map,j=d4(V(),e.getCanonicalFileName,e.getCompilationSettings()),ee=new Map,R=nL(V(),e.getCanonicalFileName,e.getCompilationSettings(),j.getPackageJsonInfoCache()),Z=new Map,oe=d4(V(),e.getCanonicalFileName,u$(e.getCompilationSettings()),j.getPackageJsonInfoCache()),_e=new Map,X=new Map,H=C0e(t,V),Q=e.toPath(H),re=Dl(Q),ue=new Map;return{getModuleResolutionCache:()=>j,startRecordingFilesWithChangedResolutions:Xe,finishRecordingFilesWithChangedResolutions:ve,startCachingPerDirectoryResolution:rt,finishCachingPerDirectoryResolution:pe,resolveModuleNameLiterals:Je,resolveTypeReferenceDirectiveReferences:mt,resolveLibrary:at,resolveSingleModuleNameWithoutWatching:zt,removeResolutionsFromProjectReferenceRedirects:Ct,removeResolutionsOfFile:cn,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:xr,invalidateResolutionsOfFailedLookupLocations:xn,setFilesWithInvalidatedNonRelativeUnresolvedImports:wi,createHasInvalidatedResolutions:xe,isFileWithInvalidatedNonRelativeUnresolvedImports:be,updateTypeRootsWatch:st,closeTypeRootsWatch:ut,clear:Ne,onChangesAffectModuleResolution:De};function fe(ae){return ae.resolvedModule}function G(ae){return ae.resolvedTypeReferenceDirective}function Ne(){Lf(_e,Em),Lf(X,Em),l.clear(),ut(),Y.clear(),ee.clear(),g.clear(),u.clear(),f.clear(),C=void 0,N=void 0,D=void 0,k=void 0,x=void 0,M=!1,j.clear(),R.clear(),j.update(e.getCompilationSettings()),R.update(e.getCompilationSettings()),oe.clear(),m.clear(),Z.clear(),y=!1}function De(){M=!0,j.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),j.update(e.getCompilationSettings()),R.update(e.getCompilationSettings())}function Xe(){i=[]}function ve(){const ae=i;return i=void 0,ae}function be(ae){if(!o)return!1;const Me=o.get(ae);return!!Me&&!!Me.length}function xe(ae,Me){xn();const ke=a;return a=void 0,{hasInvalidatedResolutions:ft=>ae(ft)||M||!!(ke!=null&&ke.has(ft))||be(ft),hasInvalidatedLibResolutions:ft=>{var K;return Me(ft)||!!((K=Z==null?void 0:Z.get(ft))!=null&&K.isInvalidated)}}}function rt(){j.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),oe.clearAllExceptPackageJsonInfoCache(),l.forEach(br),l.clear()}function ct(ae){Z.forEach((Me,ke)=>{var ft;(ft=ae==null?void 0:ae.resolvedLibReferences)!=null&&ft.has(ke)||(Nr(Me,e.toPath(qL(ae.getCompilerOptions(),V(),ke)),fe),Z.delete(ke))})}function pe(ae,Me){o=void 0,M=!1,l.forEach(br),l.clear(),ae!==Me&&(ct(ae),ae==null||ae.getSourceFiles().forEach(ke=>{var Ae,yt;var ft;const K=Yu(ke)&&(Ae=(ft=ke.packageJsonLocations)==null?void 0:ft.length)!=null?Ae:0,$e=(yt=m.get(ke.path))!=null?yt:Ve;for(let _t=$e.length;_tK)for(let _t=K;_t<$e.length;_t++)X.get($e[_t]).files--;K?m.set(ke.path,ke.packageJsonLocations):m.delete(ke.path)}),m.forEach((ke,ft)=>{ae!=null&&ae.getSourceFileByPath(ft)||(ke.forEach(K=>X.get(K).files--),m.delete(ft))})),_e.forEach((ke,ft)=>{ke.refCount===0&&(_e.delete(ft),ke.watcher.close())}),X.forEach((ke,ft)=>{ke.files===0&&ke.resolutions===0&&(X.delete(ft),ke.watcher.close())}),y=!1}function Pe(ae,Me,ke,ft,K){var $e;const Ae=(($e=e.getCompilerHost)==null?void 0:$e.call(e))||e,yt=v8(ae,Me,ke,Ae,j,ft,K);if(!e.getGlobalCache)return yt;const _t=e.getGlobalCache();if(_t!==void 0&&!Al(ae)&&!(yt.resolvedModule&&SO(yt.resolvedModule.extension))){const{resolvedModule:Jt,failedLookupLocations:Ln,affectingLocations:Pt,resolutionDiagnostics:hi}=rme(E.checkDefined(e.globalCacheResolutionModuleName)(ae),e.projectName,ke,Ae,_t,j);if(Jt)return yt.resolvedModule=Jt,yt.failedLookupLocations=p4(yt.failedLookupLocations,Ln),yt.affectingLocations=p4(yt.affectingLocations,Pt),yt.resolutionDiagnostics=p4(yt.resolutionDiagnostics,hi),yt}return yt}function Ge(ae,Me,ke){return{nameAndMode:F8,resolve:(ft,K)=>Pe(ft,ae,ke,Me,K)}}function tt({entries:ae,containingFile:Me,containingSourceFile:ke,redirectedReference:ft,options:K,perFileCache:$e,reusedNames:Ae,loader:yt,getResolutionWithResolvedFileName:_t,deferWatchingNonRelativeResolution:Jt,shouldRetryResolution:Ln,logChanges:Pt}){var hi;const z=e.toPath(Me),B=$e.get(z)||$e.set(z,oT()).get(z),le=[],W=Pt&&be(z),ge=e.getCurrentProgram(),F=ge&&ge.getResolvedProjectReferenceToRedirect(Me),ye=F?!ft||ft.sourceFile.path!==F.sourceFile.path:!!ft,Oe=oT();for(const Tt of ae){const Ot=yt.nameAndMode.getName(Tt),on=yt.nameAndMode.getMode(Tt,ke);let Sn=B.get(Ot,on);if(!Oe.has(Ot,on)&&(M||ye||!Sn||Sn.isInvalidated||W&&!Al(Ot)&&Ln(Sn))){const ir=Sn;Sn=yt.resolve(Ot,on),e.onDiscoveredSymlink&&gOe(Sn)&&e.onDiscoveredSymlink(),B.set(Ot,on,Sn),bt(Ot,Sn,z,_t,Jt),ir&&Nr(ir,z,_t),Pt&&i&&!We(ir,Sn)&&(i.push(z),Pt=!1)}else{const ir=((hi=e.getCompilerHost)==null?void 0:hi.call(e))||e;if(e0(K,ir)&&!Oe.has(Ot,on)){const ar=_t(Sn);Gi(ir,$e===Y?ar!=null&&ar.resolvedFileName?ar.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:ar!=null&&ar.resolvedFileName?ar.packageId?p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ot,Me,ar==null?void 0:ar.resolvedFileName,(ar==null?void 0:ar.packageId)&&i1(ar.packageId))}}E.assert(Sn!==void 0&&!Sn.isInvalidated),Oe.set(Ot,on,!0),le.push(Sn)}return Ae==null||Ae.forEach(Tt=>Oe.set(yt.nameAndMode.getName(Tt),yt.nameAndMode.getMode(Tt,ke),!0)),B.size()!==Oe.size()&&B.forEach((Tt,Ot,on)=>{Oe.has(Ot,on)||(Nr(Tt,z,_t),B.delete(Ot,on))}),le;function We(Tt,Ot){if(Tt===Ot)return!0;if(!Tt||!Ot)return!1;const on=_t(Tt),Sn=_t(Ot);return on===Sn?!0:!on||!Sn?!1:on.resolvedFileName===Sn.resolvedFileName}}function mt(ae,Me,ke,ft,K,$e){var Ae;return tt({entries:ae,containingFile:Me,containingSourceFile:K,redirectedReference:ke,options:ft,reusedNames:$e,perFileCache:ee,loader:WL(Me,ke,ft,((Ae=e.getCompilerHost)==null?void 0:Ae.call(e))||e,R),getResolutionWithResolvedFileName:G,shouldRetryResolution:yt=>yt.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(ae,Me,ke,ft,K,$e){return tt({entries:ae,containingFile:Me,containingSourceFile:K,redirectedReference:ke,options:ft,reusedNames:$e,perFileCache:Y,loader:Ge(Me,ke,ft),getResolutionWithResolvedFileName:fe,shouldRetryResolution:Ae=>!Ae.resolvedModule||!OD(Ae.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function at(ae,Me,ke,ft){var K;const $e=((K=e.getCompilerHost)==null?void 0:K.call(e))||e;let Ae=Z==null?void 0:Z.get(ft);if(!Ae||Ae.isInvalidated){const yt=Ae;Ae=rL(ae,Me,ke,$e,oe);const _t=e.toPath(Me);bt(ae,Ae,_t,fe,!1),Z.set(ft,Ae),yt&&Nr(yt,_t,fe)}else if(e0(ke,$e)){const yt=fe(Ae);Gi($e,yt!=null&&yt.resolvedFileName?yt.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,ae,Me,yt==null?void 0:yt.resolvedFileName,(yt==null?void 0:yt.packageId)&&i1(yt.packageId))}return Ae}function zt(ae,Me){const ke=e.toPath(Me),ft=Y.get(ke),K=ft==null?void 0:ft.get(ae,void 0);return K&&!K.isInvalidated?K:Pe(ae,Me,e.getCompilationSettings())}function It(ae){return Tc(ae,"/node_modules/@types")}function bt(ae,Me,ke,ft,K){var Ae;var $e;if(Me.refCount)Me.refCount++,E.assertIsDefined(Me.files);else{Me.refCount=1,E.assert(!(($e=Me.files)!=null&&$e.size)),!K||Al(ae)?Tn(Me):l.add(ae,Me);const yt=ft(Me);if(yt&&yt.resolvedFileName){const _t=e.toPath(yt.resolvedFileName);let Jt=g.get(_t);Jt||g.set(_t,Jt=new Set),Jt.add(Me)}}((Ae=Me.files)!=null?Ae:Me.files=new Set).add(ke)}function _r(ae,Me){const ke=e.toPath(ae),ft=tQ(ae,ke,H,Q,re,V);if(ft){const{dir:K,dirPath:$e,nonRecursive:Ae}=ft;$e===Q?(E.assert(Ae),Me=!0):fi(K,$e,Ae)}return Me}function Tn(ae){E.assert(!!ae.refCount);const{failedLookupLocations:Me,affectingLocations:ke,node10Result:ft}=ae;if(!(Me!=null&&Me.length)&&!(ke!=null&&ke.length)&&!ft)return;((Me==null?void 0:Me.length)||ft)&&u.add(ae);let K=!1;if(Me)for(const $e of Me)K=_r($e,K);ft&&(K=_r(ft,K)),K&&fi(H,Q,!0),jt(ae,!(Me!=null&&Me.length)&&!ft)}function jt(ae,Me){E.assert(!!ae.refCount);const{affectingLocations:ke}=ae;if(!!(ke!=null&&ke.length)){Me&&f.add(ae);for(const ft of ke)Kn(ft,!0)}}function Kn(ae,Me){const ke=X.get(ae);if(ke){Me?ke.resolutions++:ke.files++;return}let ft=ae;if(e.realpath&&(ft=e.realpath(ae),ae!==ft)){const yt=X.get(ft);if(yt){Me?yt.resolutions++:yt.files++,yt.paths.add(ae),X.set(ae,yt);return}}const K=new Set;K.add(ft);let $e=x0e(e.toPath(ft))?e.watchAffectingFileLocation(ft,(yt,_t)=>{U==null||U.addOrDeleteFile(yt,e.toPath(ft),_t);const Jt=j.getPackageJsonInfoCache().getInternalMap();K.forEach(Ln=>{Ae.resolutions&&(k!=null?k:k=new Set).add(Ln),Ae.files&&(x!=null?x:x=new Set).add(Ln),Jt==null||Jt.delete(e.toPath(Ln))}),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):DS;const Ae={watcher:$e!==DS?{close:()=>{$e.close(),$e=DS}}:$e,resolutions:Me?1:0,files:Me?0:1,paths:K};X.set(ft,Ae),ae!==ft&&(X.set(ae,Ae),K.add(ae))}function br(ae,Me){const ke=e.getCurrentProgram();!ke||!ke.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Me)?ae.forEach(Tn):ae.forEach(ft=>jt(ft,!0))}function fi(ae,Me,ke){const ft=_e.get(Me);ft?(E.assert(!!ke==!!ft.nonRecursive),ft.refCount++):_e.set(Me,{watcher:ur(ae,Me,ke),refCount:1,nonRecursive:ke})}function Si(ae,Me){const ke=e.toPath(ae),ft=tQ(ae,ke,H,Q,re,V);if(ft){const{dirPath:K}=ft;K===Q?Me=!0:pt(K)}return Me}function Nr(ae,Me,ke){if(E.checkDefined(ae.files).delete(Me),ae.refCount--,ae.refCount)return;const ft=ke(ae);if(ft&&ft.resolvedFileName){const yt=e.toPath(ft.resolvedFileName),_t=g.get(yt);(_t==null?void 0:_t.delete(ae))&&!_t.size&&g.delete(yt)}const{failedLookupLocations:K,affectingLocations:$e,node10Result:Ae}=ae;if(u.delete(ae)){let yt=!1;if(K)for(const _t of K)yt=Si(_t,yt);Ae&&(yt=Si(Ae,yt)),yt&&pt(Q)}else $e!=null&&$e.length&&f.delete(ae);if($e)for(const yt of $e){const _t=X.get(yt);_t.resolutions--}}function pt(ae){const Me=_e.get(ae);Me.refCount--}function ur(ae,Me,ke){return e.watchDirectoryOfFailedLookupLocation(ae,ft=>{const K=e.toPath(ft);U&&U.addOrDeleteFileOrDirectory(ft,K),Zt(K,Me===K)},ke?0:1)}function yn(ae,Me,ke){const ft=ae.get(Me);ft&&(ft.forEach(K=>Nr(K,Me,ke)),ae.delete(Me))}function Ct(ae){if(!Hc(ae,".json"))return;const Me=e.getCurrentProgram();if(!Me)return;const ke=Me.getResolvedProjectReferenceByPath(ae);!ke||ke.commandLine.fileNames.forEach(ft=>cn(e.toPath(ft)))}function cn(ae){yn(Y,ae,fe),yn(ee,ae,G)}function In(ae,Me){if(!ae)return!1;let ke=!1;return ae.forEach(ft=>{if(!(ft.isInvalidated||!Me(ft))){ft.isInvalidated=ke=!0;for(const K of E.checkDefined(ft.files))(a!=null?a:a=new Set).add(K),y=y||Tc(K,f5)}}),ke}function xr(ae){cn(ae);const Me=y;In(g.get(ae),sy)&&y&&!Me&&e.onChangedAutomaticTypeDirectiveNames()}function wi(ae){E.assert(o===ae||o===void 0),o=ae}function Zt(ae,Me){if(Me)(D||(D=new Set)).add(ae);else{const ke=KX(ae);if(!ke||(ae=ke,e.fileIsOpen(ae)))return!1;const ft=bi(ae);if(It(ae)||BU(ae)||It(ft)||BU(ft))(C||(C=new Set)).add(ae),(N||(N=new Set)).add(ae);else{if(zge(e.getCurrentProgram(),ae)||Hc(ae,".map"))return!1;(C||(C=new Set)).add(ae);const K=JA(ae,!0);K&&(N||(N=new Set)).add(K)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Gt(){const ae=j.getPackageJsonInfoCache().getInternalMap();ae&&(C||N||D)&&ae.forEach((Me,ke)=>Er(ke)?ae.delete(ke):void 0)}function xn(){var ae;if(M)return x=void 0,Gt(),(C||N||D||k)&&In(Z,Gr),C=void 0,N=void 0,D=void 0,k=void 0,!0;let Me=!1;return x&&((ae=e.getCurrentProgram())==null||ae.getSourceFiles().forEach(ke=>{dt(ke.packageJsonLocations,ft=>x.has(ft))&&((a!=null?a:a=new Set).add(ke.path),Me=!0)}),x=void 0),!C&&!N&&!D&&!k||(Me=In(u,Gr)||Me,Gt(),C=void 0,N=void 0,D=void 0,Me=In(f,ze)||Me,k=void 0),Me}function Gr(ae){var Me;return ze(ae)?!0:!C&&!N&&!D?!1:((Me=ae.failedLookupLocations)==null?void 0:Me.some(ke=>Er(e.toPath(ke))))||!!ae.node10Result&&Er(e.toPath(ae.node10Result))}function Er(ae){return(C==null?void 0:C.has(ae))||A7((N==null?void 0:N.keys())||[],Me=>ts(ae,Me)?!0:void 0)||A7((D==null?void 0:D.keys())||[],Me=>ae.length>Me.length&&ts(ae,Me)&&(IU(Me)||ae[Me.length]===Wo)?!0:void 0)}function ze(ae){var Me;return!!k&&((Me=ae.affectingLocations)==null?void 0:Me.some(ke=>k.has(ke)))}function ut(){Lf(ue,vm)}function kt(ae,Me){return Ut(ae)?e.watchTypeRootsDirectory(Me,ke=>{const ft=e.toPath(ke);U&&U.addOrDeleteFileOrDirectory(ke,ft),y=!0,e.onChangedAutomaticTypeDirectiveNames();const K=k0e(Me,ae,Q,re,V,$e=>_e.has($e));K&&Zt(ft,K===ft)},1):DS}function st(){const ae=e.getCompilationSettings();if(ae.types){ut();return}const Me=jA(ae,{getCurrentDirectory:V});Me?F6(ue,Mv(Me,ke=>e.toPath(ke)),{createNewValue:kt,onDeleteValue:vm}):ut()}function Ut(ae){return e.getCompilationSettings().typeRoots?!0:v0e(e.toPath(ae))}}function gOe(e){var t,r;return!!(((t=e.resolvedModule)==null?void 0:t.originalPath)||((r=e.resolvedTypeReferenceDirective)==null?void 0:r.originalPath))}var hOe=Bt({"src/compiler/resolutionCache.ts"(){Os()}});function p5(e,t){const r=e===jl&&pQ?pQ:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Ql(e.useCaseSensitiveFileNames)};if(!t)return a=>e.write(kX(a,r));const i=new Array(1);return a=>{i[0]=a,e.write($ge(i,r)+r.getNewLine()),i[0]=void 0}}function w0e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&gs(oM,t.code)?(e.clearScreen(),!0):!1}function yOe(e,t){return gs(oM,e.code)?t+t:t}function d5(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function D0e(e,t){return t?(r,i,a)=>{w0e(e,r,a);let o=`[${E2(d5(e),"\x1B[90m")}] `;o+=`${y1(r.messageText,e.newLine)}${i+i}`,e.write(o)}:(r,i,a)=>{let o="";w0e(e,r,a)||(o+=i),o+=`${d5(e)} - `,o+=`${y1(r.messageText,e.newLine)}${yOe(r,i)}`,e.write(o)}}function vOe(e,t,r,i,a,o){const l=a;l.onUnRecoverableConfigFileDiagnostic=f=>L0e(a,o,f);const u=kA(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function nM(e){return L0(e,t=>t.category===1)}function rM(e){return Vr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;const i=Fr(e,a=>a.file!==void 0&&a.file.fileName===r);if(i!==void 0){const{line:a}=vo(i.file,i.start);return{fileName:r,line:a+1}}})}function rQ(e){return e===1?p.Found_1_error_Watching_for_file_changes:p.Found_0_errors_Watching_for_file_changes}function A0e(e,t){const r=E2(":"+e.line,"\x1B[90m");return LC(e.fileName)&&LC(t)?um(t,e.fileName,!1)+r:e.fileName+r}function N0e(e,t,r,i){if(e===0)return"";const a=t.filter(m=>m!==void 0),o=a.map(m=>`${m.fileName}:${m.line}`).filter((m,y,x)=>x.indexOf(m)===y),l=a[0]&&A0e(a[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[p.Found_1_error_in_0,l]:[p.Found_1_error]:u=o.length===0?[p.Found_0_errors,e]:o.length===1?[p.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[p.Found_0_errors_in_1_files,e,o.length];const f=kc(...u),g=o.length>1?bOe(a,i):"";return`${r}${y1(f.messageText,r)}${r}${r}${g}`}function bOe(e,t){const r=e.filter((y,x,k)=>x===k.findIndex(C=>(C==null?void 0:C.fileName)===(y==null?void 0:y.fileName)));if(r.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,a=r.map(y=>[y,L0(e,x=>x.fileName===y.fileName)]),o=a.reduce((y,x)=>Math.max(y,x[1]||0),0),l=p.Errors_Files.message,u=l.split(" ")[0].length,f=Math.max(u,i(o)),g=Math.max(i(o)-u,0);let m="";return m+=" ".repeat(g)+l+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Ur),me.flags=Aa,me.enclosingDeclaration=hc}function Bg(yt,dr,Ur){const Kr=i_(yt),ti=Vp(yt),Ja=an(ti,o_=>Ze(o_,me)),Is=To(Kr),Yi=Nn(Is)?oa(Is):void 0,Ys=Na(Va(Kr),o_=>ja(o_,Yi)),Aa=pl(0,Kr,Yi,179),hc=pl(1,Kr,Yi,180),El=Yp(Kr,Yi),pu=Nn(Is)?[I.createHeritageClause(96,Hi(Is,o_=>ay(o_,111551)))]:void 0;Xa(I.createInterfaceDeclaration(void 0,Hu(yt,dr),Ja,pu,[...El,...hc,...Aa,...Ys]),Ur)}function He(yt){const dr=zu(yt);return dr?zr(ra(dr.values()),Ur=>$r(Ur)&&pf(Ur.escapedName,99)):[]}function at(yt){return Xi(He(yt),dr=>!(ku(Mc(dr))&111551))}function zt(yt,dr,Ur){const Kr=He(yt),ti=J7(Kr,Yi=>Yi.parent&&Yi.parent===yt?"real":"merged"),Ja=ti.get("real")||Ve,Is=ti.get("merged")||Ve;if(Nn(Ja)){const Yi=Hu(yt,dr);sr(Ja,Yi,Ur,!!(yt.flags&67108880))}if(Nn(Is)){const Yi=Rn(me.enclosingDeclaration),Ys=Hu(yt,dr),Aa=I.createModuleBlock([I.createExportDeclaration(void 0,!1,I.createNamedExports(Hi(zr(Is,hc=>hc.escapedName!=="export="),hc=>{var El,pu;const o_=Oi(hc.escapedName),ko=Hu(hc,o_),yc=hc.declarations&&dp(hc);if(Yi&&(yc?Yi!==Rn(yc):!dt(hc.declarations,qm=>Rn(qm)===Yi))){(pu=(El=me.tracker)==null?void 0:El.reportNonlocalAugmentation)==null||pu.call(El,Yi,yt,hc);return}const F0=yc&&vg(yc,!0);Xs(F0||hc);const Wm=F0?Hu(F0,Oi(F0.escapedName)):ko;return I.createExportSpecifier(!1,o_===Wm?void 0:Wm,o_)})))]);Xa(I.createModuleDeclaration(void 0,I.createIdentifier(Ys),Aa,32),0)}}function Ln(yt,dr,Ur){Xa(I.createEnumDeclaration(I.createModifiersFromModifierFlags(lae(yt)?2048:0),Hu(yt,dr),an(zr(Va($n(yt)),Kr=>!!(Kr.flags&8)),Kr=>{const ti=Kr.declarations&&Kr.declarations[0]&&b2(Kr.declarations[0])?Bae(Kr.declarations[0]):void 0;return I.createEnumMember(Oi(Kr.escapedName),ti===void 0?void 0:typeof ti=="string"?I.createStringLiteral(ti):I.createNumericLiteral(ti))})),Ur)}function pr(yt,dr,Ur,Kr){const ti=As(yt,0);for(const Ja of ti){const Is=ce(Ja,262,me,{name:I.createIdentifier(Ur),privateSymbolVisitor:Xs,bundledImports:Wn});Xa(Ke(Is,en(Ja)),Kr)}if(!(dr.flags&1536&&!!dr.exports&&!!dr.exports.size)){const Ja=zr(Va(yt),$r);sr(Ja,Ur,Kr,!0)}}function en(yt){if(yt.declaration&&yt.declaration.parent){if(rr(yt.declaration.parent)&&uc(yt.declaration.parent)===5)return yt.declaration.parent;if(Ri(yt.declaration.parent)&&yt.declaration.parent.parent)return yt.declaration.parent.parent}return yt.declaration}function sr(yt,dr,Ur,Kr){if(Nn(yt)){const Ja=J7(yt,ko=>!Nn(ko.declarations)||dt(ko.declarations,yc=>Rn(yc)===Rn(me.enclosingDeclaration))?"local":"remote").get("local")||Ve;let Is=Cm.createModuleDeclaration(void 0,I.createIdentifier(dr),I.createModuleBlock([]),32);Ta(Is,Tr),Is.locals=Vs(yt),Is.symbol=yt[0].parent;const Yi=Ki;Ki=[];const Ys=$t;$t=!1;const Aa={...me,enclosingDeclaration:Is},hc=me;me=Aa,Zr(Vs(Ja),Kr,!0),me=hc,$t=Ys;const El=Ki;Ki=Yi;const pu=an(El,ko=>fc(ko)&&!ko.isExportEquals&&we(ko.expression)?I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,ko.expression,I.createIdentifier("default"))])):ko),o_=Xi(pu,ko=>Lr(ko,1))?an(pu,ri):pu;Is=I.updateModuleDeclaration(Is,Is.modifiers,Is.name,I.createModuleBlock(o_)),Xa(Is,Ur)}}function $r(yt){return!!(yt.flags&2887656)||!(yt.flags&4194304||yt.escapedName==="prototype"||yt.valueDeclaration&&Os(yt.valueDeclaration)&&ni(yt.valueDeclaration.parent))}function Di(yt){const dr=Hi(yt,Ur=>{const Kr=me.enclosingDeclaration;me.enclosingDeclaration=Ur;let ti=Ur.expression;if(Tc(ti)){if(we(ti)&&lr(ti)==="")return Ja(void 0);let Is;if({introducesError:Is,node:ti}=jc(ti,me,Xs),Is)return Ja(void 0)}return Ja(I.createExpressionWithTypeArguments(ti,an(Ur.typeArguments,Is=>pa(me,Is,Xs,Wn)||_(ai(Is),me))));function Ja(Is){return me.enclosingDeclaration=Kr,Is}});if(dr.length===yt.length)return dr}function ps(yt,dr,Ur){var Kr,ti;const Ja=(Kr=yt.declarations)==null?void 0:Kr.find(ni),Is=me.enclosingDeclaration;me.enclosingDeclaration=Ja||Is;const Yi=Vp(yt),Ys=an(Yi,kd=>Ze(kd,me)),Aa=Uu(i_(yt)),hc=To(Aa),El=Ja&&w6(Ja),pu=El&&Di(El)||Hi(aa(Aa),zk),o_=$n(yt),ko=!!((ti=o_.symbol)!=null&&ti.valueDeclaration)&&ni(o_.symbol.valueDeclaration),yc=ko?fi(o_):ke,F0=[...Nn(hc)?[I.createHeritageClause(96,an(hc,kd=>Vm(kd,yc,dr)))]:[],...Nn(pu)?[I.createHeritageClause(119,pu)]:[]],Wm=Zit(Aa,hc,Va(Aa)),qm=zr(Wm,kd=>{const CC=kd.valueDeclaration;return!!CC&&!(A_(CC)&&Ei(CC.name))}),qh=dt(Wm,kd=>{const CC=kd.valueDeclaration;return!!CC&&A_(CC)&&Ei(CC.name)})?[I.createPropertyDeclaration(void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Ve,Gae=Na(qm,kd=>Mn(kd,!1,hc[0])),$ae=Na(zr(Va(o_),kd=>!(kd.flags&4194304)&&kd.escapedName!=="prototype"&&!$r(kd)),kd=>Mn(kd,!0,yc)),mot=!ko&&!!yt.valueDeclaration&&Kn(yt.valueDeclaration)&&!dt(As(o_,1))?[I.createConstructorDeclaration(I.createModifiersFromModifierFlags(8),[],void 0)]:pl(1,o_,yc,176),got=Yp(Aa,hc[0]);me.enclosingDeclaration=Is,Xa(Ke(I.createClassDeclaration(void 0,dr,Ys,F0,[...got,...$ae,...mot,...Gae,...qh]),yt.declarations&&zr(yt.declarations,kd=>Qc(kd)||Fl(kd))[0]),Ur)}function Qs(yt){return cc(yt,dr=>{if(vu(dr)||p_(dr))return lr(dr.propertyName||dr.name);if(rr(dr)||fc(dr)){const Ur=fc(dr)?dr.expression:dr.right;if(kr(Ur))return lr(Ur.name)}if(tv(dr)){const Ur=os(dr);if(Ur&&we(Ur))return lr(Ur)}})}function qs(yt,dr,Ur){var Kr,ti,Ja,Is,Yi;const Ys=dp(yt);if(!Ys)return E.fail();const Aa=Ma(vg(Ys,!0));if(!Aa)return;let hc=n3(Aa)&&Qs(yt.declarations)||Oi(Aa.escapedName);hc==="export="&&X&&(hc="default");const El=Hu(Aa,hc);switch(Xs(Aa),Ys.kind){case 208:if(((ti=(Kr=Ys.parent)==null?void 0:Kr.parent)==null?void 0:ti.kind)===260){const ko=Ht(Aa.parent||Aa,me),{propertyName:yc}=Ys;Xa(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,yc&&we(yc)?I.createIdentifier(lr(yc)):void 0,I.createIdentifier(dr))])),I.createStringLiteral(ko),void 0),0);break}E.failBadSyntaxKind(((Ja=Ys.parent)==null?void 0:Ja.parent)||Ys,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Yi=(Is=Ys.parent)==null?void 0:Is.parent)==null?void 0:Yi.kind)===226&&Xr(Oi(yt.escapedName),El);break;case 260:if(kr(Ys.initializer)){const ko=Ys.initializer,yc=I.createUniqueName(dr),F0=Ht(Aa.parent||Aa,me);Xa(I.createImportEqualsDeclaration(void 0,!1,yc,I.createExternalModuleReference(I.createStringLiteral(F0))),0),Xa(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(dr),I.createQualifiedName(yc,ko.name)),Ur);break}case 271:if(Aa.escapedName==="export="&&dt(Aa.declarations,ko=>Bi(ko)&&Zf(ko))){_s(yt);break}const pu=!(Aa.flags&512)&&!Ri(Ys);Xa(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(dr),pu?Vi(Aa,me,67108863,!1):I.createExternalModuleReference(I.createStringLiteral(Ht(Aa,me)))),pu?Ur:0);break;case 270:Xa(I.createNamespaceExportDeclaration(lr(Ys.name)),0);break;case 273:{const ko=Ht(Aa.parent||Aa,me),yc=Wn?I.createStringLiteral(ko):Ys.parent.moduleSpecifier;Xa(I.createImportDeclaration(void 0,I.createImportClause(!1,I.createIdentifier(dr),void 0),yc,Ys.parent.assertClause),0);break}case 274:{const ko=Ht(Aa.parent||Aa,me),yc=Wn?I.createStringLiteral(ko):Ys.parent.parent.moduleSpecifier;Xa(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(I.createIdentifier(dr))),yc,Ys.parent.parent.assertClause),0);break}case 280:Xa(I.createExportDeclaration(void 0,!1,I.createNamespaceExport(I.createIdentifier(dr)),I.createStringLiteral(Ht(Aa,me))),0);break;case 276:{const ko=Ht(Aa.parent||Aa,me),yc=Wn?I.createStringLiteral(ko):Ys.parent.parent.parent.moduleSpecifier;Xa(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,dr!==hc?I.createIdentifier(hc):void 0,I.createIdentifier(dr))])),yc,Ys.parent.parent.parent.assertClause),0);break}case 281:const o_=Ys.parent.parent.moduleSpecifier;Xr(Oi(yt.escapedName),o_?hc:El,o_&&Qa(o_)?I.createStringLiteral(o_.text):void 0);break;case 277:_s(yt);break;case 226:case 211:case 212:yt.escapedName==="default"||yt.escapedName==="export="?_s(yt):Xr(dr,El);break;default:return E.failBadSyntaxKind(Ys,"Unhandled alias declaration kind in symbol serializer!")}}function Xr(yt,dr,Ur){Xa(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,yt!==dr?dr:void 0,yt)]),Ur),0)}function _s(yt){var dr;if(yt.flags&4194304)return!1;const Ur=Oi(yt.escapedName),Kr=Ur==="export=",Ja=Kr||Ur==="default",Is=yt.declarations&&dp(yt),Yi=Is&&vg(Is,!0);if(Yi&&Nn(Yi.declarations)&&dt(Yi.declarations,Ys=>Rn(Ys)===Rn(Tr))){const Ys=Is&&(fc(Is)||rr(Is)?cq(Is):d_e(Is)),Aa=Ys&&Tc(Ys)?fst(Ys):void 0,hc=Aa&&Qo(Aa,67108863,!0,!0,Tr);(hc||Yi)&&Xs(hc||Yi);const El=me.tracker.disableTrackSymbol;if(me.tracker.disableTrackSymbol=!0,Ja)Ki.push(I.createExportAssignment(void 0,Kr,ei(Yi,me,67108863)));else if(Aa===Ys&&Aa)Xr(Ur,lr(Aa));else if(Ys&&Fl(Ys))Xr(Ur,Hu(Yi,bc(Yi)));else{const pu=Mv(Ur,yt);Xa(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(pu),Vi(Yi,me,67108863,!1)),0),Xr(Ur,pu)}return me.tracker.disableTrackSymbol=El,!0}else{const Ys=Mv(Ur,yt),Aa=Wu($n(Ma(yt)));if(da(Aa,yt))pr(Aa,yt,Ys,Ja?0:1);else{const hc=I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Ys,void 0,Wi(me,Aa,yt,Tr,Xs,Wn))],((dr=me.enclosingDeclaration)==null?void 0:dr.kind)===267?1:2));Xa(hc,Yi&&Yi.flags&4&&Yi.escapedName==="export="?2:Ur===Ys?1:0)}return Ja?(Ki.push(I.createExportAssignment(void 0,Kr,I.createIdentifier(Ys))),!0):Ur!==Ys?(Xr(Ur,Ys),!0):!1}}function da(yt,dr){const Ur=Rn(me.enclosingDeclaration);return Rr(yt)&48&&!Nn(x_(yt))&&!ib(yt)&&!!(Nn(zr(Va(yt),$r))||Nn(As(yt,0)))&&!Nn(As(yt,1))&&!Zn(dr,Tr)&&!(yt.symbol&&dt(yt.symbol.declarations,Kr=>Rn(Kr)!==Ur))&&!dt(Va(yt),Kr=>ME(Kr.escapedName))&&!dt(Va(yt),Kr=>dt(Kr.declarations,ti=>Rn(ti)!==Ur))&&Xi(Va(yt),Kr=>pf(bc(Kr),ee))}function So(yt,dr,Ur){return function(ti,Ja,Is){var Yi,Ys,Aa,hc,El;const pu=Lf(ti),o_=!!(pu&8);if(Ja&&ti.flags&2887656)return[];if(ti.flags&4194304||ti.escapedName==="constructor"||Is&&Ws(Is,ti.escapedName)&&Qp(Ws(Is,ti.escapedName))===Qp(ti)&&(ti.flags&16777216)===(Ws(Is,ti.escapedName).flags&16777216)&&Pg($n(ti),Wc(Is,ti.escapedName)))return[];const ko=pu&-513|(Ja?32:0),yc=fu(ti,me),F0=(Yi=ti.declarations)==null?void 0:Yi.find(Kp(Fs,t1,Ri,mf,rr,kr));if(ti.flags&98304&&Ur){const Wm=[];if(ti.flags&65536&&Wm.push(Ke(I.createSetAccessorDeclaration(I.createModifiersFromModifierFlags(ko),yc,[I.createParameterDeclaration(void 0,void 0,"arg",void 0,o_?void 0:Wi(me,$n(ti),ti,Tr,Xs,Wn))],void 0),((Ys=ti.declarations)==null?void 0:Ys.find(G0))||F0)),ti.flags&32768){const qm=pu&8;Wm.push(Ke(I.createGetAccessorDeclaration(I.createModifiersFromModifierFlags(ko),yc,[],qm?void 0:Wi(me,$n(ti),ti,Tr,Xs,Wn),void 0),((Aa=ti.declarations)==null?void 0:Aa.find(r1))||F0))}return Wm}else if(ti.flags&98311)return Ke(yt(I.createModifiersFromModifierFlags((Qp(ti)?64:0)|ko),yc,ti.flags&16777216?I.createToken(58):void 0,o_?void 0:Wi(me,FE(ti),ti,Tr,Xs,Wn),void 0),((hc=ti.declarations)==null?void 0:hc.find(Kp(Fs,Ri)))||F0);if(ti.flags&8208){const Wm=$n(ti),qm=As(Wm,0);if(ko&8)return Ke(yt(I.createModifiersFromModifierFlags((Qp(ti)?64:0)|ko),yc,ti.flags&16777216?I.createToken(58):void 0,void 0,void 0),((El=ti.declarations)==null?void 0:El.find(Eo))||qm[0]&&qm[0].declaration||ti.declarations&&ti.declarations[0]);const mx=[];for(const qh of qm){const Gae=ce(qh,dr,me,{name:yc,questionToken:ti.flags&16777216?I.createToken(58):void 0,modifiers:ko?I.createModifiersFromModifierFlags(ko):void 0}),$ae=qh.declaration&&Zw(qh.declaration.parent)?qh.declaration.parent:qh.declaration;mx.push(Ke(Gae,$ae))}return mx}return E.fail(`Unhandled class member kind! ${ti.__debugFlags||ti.flags}`)}}function ja(yt,dr){return mr(yt,!1,dr)}function pl(yt,dr,Ur,Kr){const ti=As(dr,yt);if(yt===1){if(!Ur&&Xi(ti,Yi=>Nn(Yi.parameters)===0))return[];if(Ur){const Yi=As(Ur,1);if(!Nn(Yi)&&Xi(ti,Ys=>Nn(Ys.parameters)===0))return[];if(Yi.length===ti.length){let Ys=!1;for(let Aa=0;Aa_(ti,me)),Kr=ei(yt.target.symbol,me,788968)):yt.symbol&&S(yt.symbol,Tr,dr)&&(Kr=ei(yt.symbol,me,788968)),Kr)return I.createExpressionWithTypeArguments(Kr,Ur)}function zk(yt){const dr=ay(yt,788968);if(dr)return dr;if(yt.symbol)return I.createExpressionWithTypeArguments(ei(yt.symbol,me,788968),void 0)}function Mv(yt,dr){var Ur,Kr;const ti=dr?ya(dr):void 0;if(ti&&me.remappedSymbolNames.has(ti))return me.remappedSymbolNames.get(ti);dr&&(yt=Um(dr,yt));let Ja=0;const Is=yt;for(;(Ur=me.usedSymbolNames)!=null&&Ur.has(yt);)Ja++,yt=`${Is}_${Ja}`;return(Kr=me.usedSymbolNames)==null||Kr.add(yt),ti&&me.remappedSymbolNames.set(ti,yt),yt}function Um(yt,dr){if(dr==="default"||dr==="__class"||dr==="__function"){const Ur=me.flags;me.flags|=16777216;const Kr=pv(yt,me);me.flags=Ur,dr=Kr.length>0&&qw(Kr.charCodeAt(0))?Ep(Kr):Kr}return dr==="default"?dr="_default":dr==="export="&&(dr="_exports"),dr=pf(dr,ee)&&!Ux(dr)?dr:"_"+dr.replace(/[^a-zA-Z0-9]/g,"_"),dr}function Hu(yt,dr){const Ur=ya(yt);return me.remappedSymbolNames.has(Ur)?me.remappedSymbolNames.get(Ur):(dr=Um(yt,dr),me.remappedSymbolNames.set(Ur,dr),dr)}}}function Eg(n,s,c=16384,_){return _?d(_).getText():KC(d);function d(h){const T=I.createTypePredicateNode(n.kind===2||n.kind===3?I.createToken(131):void 0,n.kind===1||n.kind===3?I.createIdentifier(n.parameterName):I.createThisTypeNode(),n.type&&ct.typeToTypeNode(n.type,s,Nh(c)|70221824|512)),P=w2(),O=s&&Rn(s);return P.writeNode(4,T,O,h),h}}function v0(n){const s=[];let c=0;for(let _=0;_os(h)?h:void 0);const d=_&&os(_);if(_&&d){if(Js(_)&&Rx(_))return bc(n);if(Ga(d)&&!(rc(n)&4096)){const h=Mi(n).nameType;if(h&&h.flags&384){const T=q1(n,s);if(T!==void 0)return T}}return no(d)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return no(_.parent.name);switch(_.kind){case 231:case 218:case 219:return s&&!s.encounteredError&&!(s.flags&131072)&&(s.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}const c=q1(n,s);return c!==void 0?c:bc(n)}function hd(n){if(n){const c=jr(n);return c.isVisible===void 0&&(c.isVisible=!!s()),c.isVisible}return!1;function s(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Bi(n.parent.parent.parent));case 208:return hd(n.parent.parent);case 260:if(Ps(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Zv(n))return!0;const c=nx(n);return!(Qz(n)&1)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Xd(c):hd(c);case 172:case 171:case 177:case 178:case 174:case 173:if(Iu(n,24))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return hd(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function $4(n,s){let c;n.parent&&n.parent.kind===277?c=Lc(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=yg(n.parent,2998271));let _,d;return c&&(d=new Set,d.add(ya(c)),h(c.declarations)),_;function h(T){pn(T,P=>{const O=ev(P)||P;if(s?jr(P).isVisible=!0:(_=_||[],$f(_,O)),b6(P)){const $=P.moduleReference,re=Ku($),ce=Lc(P,re.escapedText,901119,void 0,void 0,!1);ce&&d&&Rv(d,ya(ce))&&h(ce.declarations)}})}}function Vf(n,s){const c=mk(n,s);if(c>=0){const{length:_}=gh;for(let d=c;d<_;d++)Wy[d]=!1;return!1}return gh.push(n),Wy.push(!0),D1.push(s),!0}function mk(n,s){for(let c=gh.length-1;c>=qy;c--){if($N(gh[c],D1[c]))return-1;if(gh[c]===n&&D1[c]===s)return c}return-1}function $N(n,s){switch(s){case 0:return!!Mi(n).type;case 5:return!!jr(n).resolvedEnumType;case 2:return!!Mi(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!Mi(n).writeType;case 9:return jr(n).parameterInitializerContainsUndefined!==void 0}return E.assertNever(s)}function Kd(){return gh.pop(),D1.pop(),Wy.pop()}function nx(n){return In(hm(n),s=>{switch(s.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function XN(n){const s=mo(X_(n));return s.typeParameters?k0(s,an(s.typeParameters,c=>ke)):s}function Wc(n,s){const c=Ws(n,s);return c?$n(c):void 0}function dv(n,s){var c;return Wc(n,s)||((c=_b(n,s))==null?void 0:c.type)||jt}function X4(n,s){var c;let _;return Wc(n,s)||(_=(c=_b(n,s))==null?void 0:c.type)&&Sl(_,!0,!0)}function qa(n){return n&&(n.flags&1)!==0}function q(n){return n===$e||!!(n.flags&1&&n.aliasSymbol)}function de(n,s){if(s!==0)return em(n,!1,s);const c=vr(n);return c&&Mi(c).type||em(n,!1,s)}function Le(n,s,c){if(n=ol(n,O=>!(O.flags&98304)),n.flags&131072)return Li;if(n.flags&1048576)return xo(n,O=>Le(O,s,c));let _=Jr(an(s,E0));const d=[],h=[];for(const O of Va(n)){const $=rC(O,8576);!ca($,_)&&!(Lf(O)&24)&&kJ(O)?d.push(O):h.push($)}if(bv(n)||K1(_)){if(h.length&&(_=Jr([_,...h])),_.flags&131072)return n;const O=SQe();return O?wk(O,[n,_]):$e}const T=Vs();for(const O of d)T.set(O.escapedName,bie(O,!1));const P=gc(c,T,Ve,Ve,x_(n));return P.objectFlags|=4194304,P}function lt(n){return!!(n.flags&465829888)&&Yo(B_(n)||jt,32768)}function Dt(n){const s=Mg(n,lt)?xo(n,c=>c.flags&465829888?Ag(c):c):n;return Gf(s,524288)}function Kt(n,s){const c=Ir(n);return c?Uh(c,s):s}function Ir(n){const s=xi(n);if(s&&rD(s)&&s.flowNode){const c=si(n);if(c){const _=Ke(Cm.createStringLiteral(c),n),d=du(s)?s:Cm.createParenthesizedExpression(s),h=Ke(Cm.createElementAccessExpression(d,_),n);return Ta(_,h),Ta(h,n),d!==s&&Ta(d,h),h.flowNode=s.flowNode,h}}}function xi(n){const s=n.parent.parent;switch(s.kind){case 208:case 303:return Ir(s);case 209:return Ir(n.parent);case 260:return s.initializer;case 226:return s.right}}function si(n){const s=n.parent;return n.kind===208&&s.kind===206?ui(n.propertyName||n.name):n.kind===303||n.kind===304?ui(n.name):""+s.elements.indexOf(n)}function ui(n){const s=E0(n);return s.flags&384?""+s.value:void 0}function as(n){const s=n.dotDotDotToken?64:0,c=de(n.parent.parent,s);return c&&ao(n,c)}function ao(n,s){if(qa(s))return s;const c=n.parent;H&&n.flags&33554432&&Ub(n)?s=Fg(s):H&&c.parent.initializer&&!(k_(m3e(c.parent.initializer))&65536)&&(s=Gf(s,524288));let _;if(c.kind===206)if(n.dotDotDotToken){if(s=qp(s),s.flags&2||!IP(s))return Fe(n,p.Rest_types_may_only_be_created_from_object_types),$e;const d=[];for(const h of c.elements)h.dotDotDotToken||d.push(h.propertyName||h.name);_=Le(s,d,n.symbol)}else{const d=n.propertyName||n.name,h=E0(d),T=Eu(s,h,32,d);_=Kt(n,T)}else{const d=I0(65|(n.dotDotDotToken?0:128),s,Nt,c),h=c.elements.indexOf(n);if(n.dotDotDotToken){const T=xo(s,P=>P.flags&58982400?Ag(P):P);_=Df(T,la)?xo(T,P=>nC(P,h)):$l(d)}else if(D0(s)){const T=Gp(h),P=32|(fC(n)?16:0),O=Rh(s,T,P,n.name)||$e;_=Kt(n,O)}else _=d}return n.initializer?Vl(Kk(n))?H&&!(k_(d7(n,0))&16777216)?Dt(_):_:uae(n,Jr([Dt(_),d7(n,0)],2)):_}function Ha(n){const s=my(n);if(s)return ai(s)}function Za(n){const s=lo(n,!0);return s.kind===106||s.kind===80&&yp(s)===Pe}function R_(n){const s=lo(n,!0);return s.kind===209&&s.elements.length===0}function Sl(n,s=!1,c=!0){return H&&c?N0(n,s):n}function em(n,s,c){if(Ri(n)&&n.parent.parent.kind===249){const T=im(Ose(Qi(n.parent.parent.expression,c)));return T.flags&4456448?K4e(T):F}if(Ri(n)&&n.parent.parent.kind===250){const T=n.parent.parent;return tI(T)||ke}if(Ps(n.parent))return as(n);const _=Fs(n)&&!ym(n)||mf(n)||Ufe(n),d=s&&lH(n),h=Ci(n);if(NW(n))return h?qa(h)||h===jt?h:$e:Ne?jt:ke;if(h)return Sl(h,_,d);if((fe||Kn(n))&&Ri(n)&&!Ps(n.name)&&!(Qz(n)&1)&&!(n.flags&33554432)){if(!(Lv(n)&6)&&(!n.initializer||Za(n.initializer)))return ft;if(n.initializer&&R_(n.initializer))return gt}if(rs(n)){const T=n.parent;if(T.kind===178&&Tk(T)){const $=lc(vr(n.parent),177);if($){const re=vd($),ce=Wae(T);return ce&&n===ce?(E.assert(!ce.type),$n(re.thisParameter)):Ua(re)}}const P=XXe(T,n);if(P)return P;const O=n.symbol.escapedName==="this"?M3e(T):R3e(n);if(O)return Sl(O,!1,d)}if(Lb(n)&&!!n.initializer){if(Kn(n)&&!rs(n)){const P=Sa(n,vr(n),Gw(n));if(P)return P}const T=uae(n,d7(n,c));return Sl(T,_,d)}if(Fs(n)&&(fe||Kn(n)))if($c(n)){const T=zr(n.parent.members,ec),P=T.length?gv(n.symbol,T):I_(n)&2?jJ(n.symbol):void 0;return P&&Sl(P,!0,d)}else{const T=uv(n.parent),P=T?IE(n.symbol,T):I_(n)&2?jJ(n.symbol):void 0;return P&&Sl(P,!0,d)}if(Vd(n))return It;if(Ps(n.name))return L(n.name,!1,!0)}function jp(n){if(n.valueDeclaration&&rr(n.valueDeclaration)){const s=Mi(n);return s.isConstructorDeclaredProperty===void 0&&(s.isConstructorDeclaredProperty=!1,s.isConstructorDeclaredProperty=!!T0(n)&&Xi(n.declarations,c=>rr(c)&&lz(c)&&(c.left.kind!==212||Of(c.left.argumentExpression))&&!bo(void 0,c,n,c))),s.isConstructorDeclaredProperty}return!1}function b0(n){const s=n.valueDeclaration;return s&&Fs(s)&&!Vl(s)&&!s.initializer&&(fe||Kn(s))}function T0(n){if(!!n.declarations)for(const s of n.declarations){const c=ru(s,!1,!1);if(c&&(c.kind===176||xd(c)))return c}}function mv(n){const s=Rn(n.declarations[0]),c=Oi(n.escapedName),_=n.declarations.every(h=>Kn(h)&&Mo(h)&&eg(h.expression)),d=_?I.createPropertyAccessExpression(I.createPropertyAccessExpression(I.createIdentifier("module"),I.createIdentifier("exports")),c):I.createPropertyAccessExpression(I.createIdentifier("exports"),c);return _&&Ta(d.expression.expression,d.expression),Ta(d.expression,d),Ta(d,s),d.flowNode=s.endFlowNode,Uh(d,ft,Nt)}function gv(n,s){const c=ns(n.escapedName,"__#")?I.createPrivateIdentifier(n.escapedName.split("@")[1]):Oi(n.escapedName);for(const _ of s){const d=I.createPropertyAccessExpression(I.createThis(),c);Ta(d.expression,d),Ta(d,_),d.flowNode=_.returnFlowNode;const h=gk(d,n);if(fe&&(h===ft||h===gt)&&Fe(n.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ii(n),Cn(h)),!Df(h,mz))return S7(h)}}function IE(n,s){const c=ns(n.escapedName,"__#")?I.createPrivateIdentifier(n.escapedName.split("@")[1]):Oi(n.escapedName),_=I.createPropertyAccessExpression(I.createThis(),c);Ta(_.expression,_),Ta(_,s),_.flowNode=s.returnFlowNode;const d=gk(_,n);return fe&&(d===ft||d===gt)&&Fe(n.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ii(n),Cn(d)),Df(d,mz)?void 0:S7(d)}function gk(n,s){const c=(s==null?void 0:s.valueDeclaration)&&(!b0(s)||I_(s.valueDeclaration)&2)&&jJ(s)||Nt;return Uh(n,ft,c)}function hk(n,s){const c=Mx(n.valueDeclaration);if(c){const P=Kn(c)?dy(c):void 0;return P&&P.typeExpression?ai(P.typeExpression):n.valueDeclaration&&Sa(n.valueDeclaration,n,c)||Ev(Bc(c))}let _,d=!1,h=!1;if(jp(n)&&(_=IE(n,T0(n))),!_){let P;if(n.declarations){let O;for(const $ of n.declarations){const re=rr($)||Js($)?$:Mo($)?rr($.parent)?$.parent:$:void 0;if(!re)continue;const ce=Mo(re)?Yw(re):uc(re);(ce===4||rr(re)&&lz(re,ce))&&(kf(re)?d=!0:h=!0),Js(re)||(O=bo(O,re,n,$)),O||(P||(P=[])).push(rr(re)||Js(re)?Jp(n,s,re,ce):jn)}_=O}if(!_){if(!Nn(P))return $e;let O=d&&n.declarations?Lm(P,n.declarations):void 0;if(h){const re=jJ(n);re&&((O||(O=[])).push(re),d=!0)}const $=dt(O,re=>!!(re.flags&-98305))?O:P;_=Jr($)}}const T=Wu(Sl(_,!1,h&&!d));return n.valueDeclaration&&Kn(n.valueDeclaration)&&ol(T,P=>!!(P.flags&-98305))===jn?(ry(n.valueDeclaration,ke),ke):T}function Sa(n,s,c){var _,d;if(!Kn(n)||!c||!ha(c)||c.properties.length)return;const h=Vs();for(;rr(n)||kr(n);){const O=Cu(n);(_=O==null?void 0:O.exports)!=null&&_.size&&xf(h,O.exports),n=rr(n)?n.parent:n.parent.parent}const T=Cu(n);(d=T==null?void 0:T.exports)!=null&&d.size&&xf(h,T.exports);const P=gc(s,h,Ve,Ve,Ve);return P.objectFlags|=4096,P}function bo(n,s,c,_){var d;const h=Vl(s.parent);if(h){const T=Wu(ai(h));if(n)!q(n)&&!q(T)&&!Pg(n,T)&&jEe(void 0,n,_,T);else return T}if((d=c.parent)!=null&&d.valueDeclaration){const T=Vl(c.parent.valueDeclaration);if(T){const P=Ws(ai(T),c.escapedName);if(P)return G1(P)}}return n}function Jp(n,s,c,_){if(Js(c)){if(s)return $n(s);const T=Bc(c.arguments[2]),P=Wc(T,"value");if(P)return P;const O=Wc(T,"get");if(O){const re=Tb(O);if(re)return Ua(re)}const $=Wc(T,"set");if($){const re=Tb($);if(re)return nae(re)}return ke}if(rx(c.left,c.right))return ke;const d=_===1&&(kr(c.left)||No(c.left))&&(eg(c.left.expression)||we(c.left.expression)&&Jb(c.left.expression)),h=s?$n(s):d?j_(Bc(c.right)):Ev(Bc(c.right));if(h.flags&524288&&_===2&&n.escapedName==="export="){const T=Wp(h),P=Vs();m9(T.members,P);const O=P.size;s&&!s.exports&&(s.exports=Vs()),(s||n).exports.forEach((re,ce)=>{var Se;const Te=P.get(ce);if(Te&&Te!==re&&!(re.flags&2097152))if(re.flags&111551&&Te.flags&111551){if(re.valueDeclaration&&Te.valueDeclaration&&Rn(re.valueDeclaration)!==Rn(Te.valueDeclaration)){const St=Oi(re.escapedName),Zt=((Se=Hr(Te.valueDeclaration,A_))==null?void 0:Se.name)||Te.valueDeclaration;ua(Fe(re.valueDeclaration,p.Duplicate_identifier_0,St),br(Zt,p._0_was_also_declared_here,St)),ua(Fe(Zt,p.Duplicate_identifier_0,St),br(re.valueDeclaration,p._0_was_also_declared_here,St))}const Ze=Pa(re.flags|Te.flags,ce);Ze.links.type=Jr([$n(re),$n(Te)]),Ze.valueDeclaration=Te.valueDeclaration,Ze.declarations=es(Te.declarations,re.declarations),P.set(ce,Ze)}else P.set(ce,mg(re,Te));else P.set(ce,re)});const $=gc(O!==P.size?void 0:T.symbol,P,T.callSignatures,T.constructSignatures,T.indexInfos);if(O===P.size&&(h.aliasSymbol&&($.aliasSymbol=h.aliasSymbol,$.aliasTypeArguments=h.aliasTypeArguments),Rr(h)&4)){$.aliasSymbol=h.symbol;const re=uo(h);$.aliasTypeArguments=Nn(re)?re:void 0}return $.objectFlags|=Rr(h)&4096,$.symbol&&$.symbol.flags&32&&h===i_($.symbol)&&($.objectFlags|=16777216),$}return zJ(h)?(ry(c,qe),qe):h}function rx(n,s){return kr(n)&&n.expression.kind===110&&m8(s,c=>Bl(n,c))}function kf(n){const s=ru(n,!1,!1);return s.kind===176||s.kind===262||s.kind===218&&!Zw(s.parent)}function Lm(n,s){return E.assert(n.length===s.length),n.filter((c,_)=>{const d=s[_],h=rr(d)?d:rr(d.parent)?d.parent:void 0;return h&&kf(h)})}function yk(n,s,c){if(n.initializer){const _=Ps(n.name)?L(n.name,!0,!1):jt;return Sl(uae(n,d7(n,0,_)))}return Ps(n.name)?L(n.name,s,c):(c&&!Qn(n)&&ry(n,ke),s?ht:ke)}function v(n,s,c){const _=Vs();let d,h=131200;pn(n.elements,P=>{const O=P.propertyName||P.name;if(P.dotDotDotToken){d=rm(F,ke,!1);return}const $=E0(O);if(!ip($)){h|=512;return}const re=sp($),ce=4|(P.initializer?16777216:0),Se=Pa(ce,re);Se.links.type=yk(P,s,c),Se.links.bindingElement=P,_.set(Se.escapedName,Se)});const T=gc(void 0,_,Ve,Ve,d?[d]:Ve);return T.objectFlags|=h,s&&(T.pattern=n,T.objectFlags|=131072),T}function w(n,s,c){const _=n.elements,d=jo(_),h=d&&d.kind===208&&d.dotDotDotToken?d:void 0;if(_.length===0||_.length===1&&h)return ee>=2?M4e(ke):qe;const T=an(_,re=>dl(re)?ke:yk(re,s,c)),P=cI(_,re=>!(re===h||dl(re)||fC(re)),_.length-1)+1,O=an(_,(re,ce)=>re===h?4:ce>=P?2:1);let $=Hp(T,O);return s&&($=h4e($),$.pattern=n,$.objectFlags|=131072),$}function L(n,s=!1,c=!1){return n.kind===206?v(n,s,c):w(n,s,c)}function ie(n,s){return Ot(em(n,!0,0),n,s)}function Ie(n){const s=Cu(n),c=uQe(!1);return c&&s&&s===c}function Ot(n,s,c){return n?(n.flags&4096&&Ie(s.parent)&&(n=Tie(s)),c&&QJ(s,n),n.flags&8192&&(Oa(s)||!s.type)&&n.symbol!==vr(s)&&(n=ir),Wu(n)):(n=rs(s)&&s.dotDotDotToken?qe:ke,c&&(Qn(s)||ry(s,n)),n)}function Qn(n){const s=hm(n),c=s.kind===169?s.parent:s;return QP(c)}function Ci(n){const s=Vl(n);if(s)return ai(s)}function eo(n){let s=n.valueDeclaration;return s?(Oa(s)&&(s=Kk(s)),rs(s)?OJ(s.parent):!1):!1}function zp(n){const s=Mi(n);if(!s.type){const c=x0(n);return!s.type&&!eo(n)&&(s.type=c),c}return s.type}function x0(n){if(n.flags&4194304)return XN(n);if(n===mt)return ke;if(n.flags&134217728&&n.valueDeclaration){const _=vr(Rn(n.valueDeclaration)),d=Pa(_.flags,"exports");d.declarations=_.declarations?_.declarations.slice():[],d.parent=n,d.links.target=_,_.valueDeclaration&&(d.valueDeclaration=_.valueDeclaration),_.members&&(d.members=new Map(_.members)),_.exports&&(d.exports=new Map(_.exports));const h=Vs();return h.set("exports",d),gc(n,h,Ve,Ve,Ve)}E.assertIsDefined(n.valueDeclaration);const s=n.valueDeclaration;if(Bi(s)&&Zf(s))return s.statements.length?Wu(Ev(Qi(s.statements[0].expression))):Li;if(t1(s))return OE(n);if(!Vf(n,0))return n.flags&512&&!(n.flags&67108864)?vk(n):ix(n);let c;if(s.kind===277)c=Ot(Ci(s)||Bc(s.expression),s);else if(rr(s)||Kn(s)&&(Js(s)||(kr(s)||U9(s))&&rr(s.parent)))c=hk(n);else if(kr(s)||No(s)||we(s)||Qa(s)||Ou(s)||Qc(s)||tl(s)||kc(s)&&!kp(s)||ag(s)||Bi(s)){if(n.flags&9136)return vk(n);c=rr(s.parent)?hk(n):Ci(s)||ke}else if(Ec(s))c=Ci(s)||uEe(s);else if(Vd(s))c=Ci(s)||X3e(s);else if(nf(s))c=Ci(s)||yC(s.name,0);else if(kp(s))c=Ci(s)||fEe(s,0);else if(rs(s)||Fs(s)||mf(s)||Ri(s)||Oa(s)||r9(s))c=ie(s,!0);else if(Py(s))c=vk(n);else if(b2(s))c=sb(n);else return E.fail("Unhandled declaration kind! "+E.formatSyntaxKind(s.kind)+" for "+E.formatSymbol(n));return Kd()?c:n.flags&512&&!(n.flags&67108864)?vk(n):ix(n)}function hp(n){if(n)switch(n.kind){case 177:return ep(n);case 178:return E_e(n);case 172:return E.assert(ym(n)),Vl(n)}}function H1(n){const s=hp(n);return s&&ai(s)}function hre(n){const s=Wae(n);return s&&s.symbol}function yre(n){return Y1(vd(n))}function OE(n){const s=Mi(n);if(!s.type){if(!Vf(n,0))return $e;const c=lc(n,177),_=lc(n,178),d=Hr(lc(n,172),nu);let h=c&&Kn(c)&&Ha(c)||H1(c)||H1(_)||H1(d)||c&&c.body&&Ez(c)||d&&d.initializer&&ie(d,!0);h||(_&&!QP(_)?Tf(fe,_,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ii(n)):c&&!QP(c)?Tf(fe,c,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ii(n)):d&&!QP(d)&&Tf(fe,d,p.Member_0_implicitly_has_an_1_type,ii(n),"any"),h=ke),Kd()||(hp(c)?Fe(c,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ii(n)):hp(_)||hp(d)?Fe(_,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ii(n)):c&&fe&&Fe(c,p._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,ii(n)),h=ke),s.type=h}return s.type}function sJ(n){var c;const s=Mi(n);if(!s.writeType){if(!Vf(n,8))return $e;const _=(c=lc(n,178))!=null?c:Hr(lc(n,172),nu);let d=H1(_);Kd()||(hp(_)&&Fe(_,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ii(n)),d=ke),s.writeType=d||OE(n)}return s.writeType}function aJ(n){const s=fi(i_(n));return s.flags&8650752?s:s.flags&2097152?Or(s.types,c=>!!(c.flags&8650752)):void 0}function vk(n){let s=Mi(n);const c=s;if(!s.type){const _=n.valueDeclaration&&kz(n.valueDeclaration,!1);if(_){const d=Qse(n,_);d&&(n=d,s=d.links)}c.type=s.type=vre(n)}return s.type}function vre(n){const s=n.valueDeclaration;if(n.flags&1536&&n3(n))return ke;if(s&&(s.kind===226||Mo(s)&&s.parent.kind===226))return hk(n);if(n.flags&512&&s&&Bi(s)&&s.commonJsModuleIndicator){const _=lf(n);if(_!==n){if(!Vf(n,0))return $e;const d=Ma(n.exports.get("export=")),h=hk(d,d===_?void 0:_);return Kd()?h:ix(n)}}const c=Jf(16,n);if(n.flags&32){const _=aJ(n);return _?oa([c,_]):c}else return H&&n.flags&16777216?N0(c,!0):c}function sb(n){const s=Mi(n);return s.type||(s.type=M6e(n))}function bre(n){const s=Mi(n);if(!s.type){const c=hl(n),_=n.declarations&&vg(dp(n),!0),d=cc(_==null?void 0:_.declarations,h=>fc(h)?Ci(h):void 0);s.type=(_==null?void 0:_.declarations)&&zz(_.declarations)&&n.declarations.length?mv(_):zz(n.declarations)?ft:d||(ku(c)&111551?$n(c):$e)}return s.type}function Tre(n){const s=Mi(n);return s.type||(s.type=zi($n(s.target),s.mapper))}function xre(n){const s=Mi(n);return s.writeType||(s.writeType=zi(FE(s.target),s.mapper))}function ix(n){const s=n.valueDeclaration;return Vl(s)?(Fe(n.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ii(n)),$e):(fe&&(s.kind!==169||s.initializer)&&Fe(n.valueDeclaration,p._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ii(n)),ke)}function oJ(n){const s=Mi(n);return s.type||(E.assertIsDefined(s.deferralParent),E.assertIsDefined(s.deferralConstituents),s.type=s.deferralParent.flags&1048576?Jr(s.deferralConstituents):oa(s.deferralConstituents)),s.type}function cJ(n){const s=Mi(n);return!s.writeType&&s.deferralWriteConstituents&&(E.assertIsDefined(s.deferralParent),E.assertIsDefined(s.deferralConstituents),s.writeType=s.deferralParent.flags&1048576?Jr(s.deferralWriteConstituents):oa(s.deferralWriteConstituents)),s.writeType}function FE(n){const s=rc(n);return n.flags&4?s&2?s&65536?cJ(n)||oJ(n):n.links.writeType||n.links.type:$n(n):n.flags&98304?s&1?xre(n):sJ(n):$n(n)}function $n(n){const s=rc(n);return s&65536?oJ(n):s&1?Tre(n):s&262144?NXe(n):s&8192?WZe(n):n.flags&7?zp(n):n.flags&9136?vk(n):n.flags&8?sb(n):n.flags&98304?OE(n):n.flags&2097152?bre(n):$e}function G1(n){return db($n(n),!!(n.flags&16777216))}function $1(n,s){return n!==void 0&&s!==void 0&&(Rr(n)&4)!==0&&n.target===s}function ab(n){return Rr(n)&4?n.target:n}function bk(n,s){return c(n);function c(_){if(Rr(_)&7){const d=ab(_);return d===s||dt(To(d),c)}else if(_.flags&2097152)return dt(_.types,c);return!1}}function QN(n,s){for(const c of s)n=jg(n,ob(vr(c)));return n}function Q4(n,s){for(;;){if(n=n.parent,n&&rr(n)){const c=uc(n);if(c===6||c===3){const _=vr(n.left);_&&_.parent&&!In(_.parent.valueDeclaration,d=>n===d)&&(n=_.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const _=Q4(n,s);if(n.kind===200)return dn(_,ob(vr(n.typeParameter)));if(n.kind===194)return es(_,lCe(n));const d=QN(_,Kh(n)),h=s&&(n.kind===263||n.kind===231||n.kind===264||xd(n))&&i_(vr(n)).thisType;return h?dn(d,h):d}case 348:const c=sD(n);c&&(n=c.valueDeclaration);break;case 327:{const _=Q4(n,s);return n.tags?QN(_,Na(n.tags,d=>od(d)?d.typeParameters:void 0)):_}}}}function YN(n){var s;const c=n.flags&32||n.flags&16?n.valueDeclaration:(s=n.declarations)==null?void 0:s.find(_=>{if(_.kind===264)return!0;if(_.kind!==260)return!1;const d=_.initializer;return!!d&&(d.kind===218||d.kind===219)});return E.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Q4(c)}function Vp(n){if(!n.declarations)return;let s;for(const c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||xd(c)||nD(c))&&(s=QN(s,Kh(c)));return s}function Sre(n){return es(YN(n),Vp(n))}function X1(n){const s=As(n,1);if(s.length===1){const c=s[0];if(!c.typeParameters&&c.parameters.length===1&&d_(c)){const _=VP(c.parameters[0]);return qa(_)||Bie(_)===ke}}return!1}function gn(n){if(As(n,1).length>0)return!0;if(n.flags&8650752){const s=B_(n);return!!s&&X1(s)}return!1}function Ar(n){const s=Yg(n.symbol);return s&&Od(s)}function Dr(n,s,c){const _=Nn(s),d=Kn(c);return zr(As(n,1),h=>(d||_>=nm(h.typeParameters))&&_<=Nn(h.typeParameters))}function gi(n,s,c){const _=Dr(n,s,c),d=an(s,ai);return cl(_,h=>dt(h.typeParameters)?zE(h,d,Kn(c)):h)}function fi(n){if(!n.resolvedBaseConstructorType){const s=Yg(n.symbol),c=s&&Od(s),_=Ar(n);if(!_)return n.resolvedBaseConstructorType=Nt;if(!Vf(n,1))return $e;const d=Qi(_.expression);if(c&&_!==c&&(E.assert(!c.typeArguments),Qi(c.expression)),d.flags&2621440&&Wp(d),!Kd())return Fe(n.symbol.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ii(n.symbol)),n.resolvedBaseConstructorType=$e;if(!(d.flags&1)&&d!==ge&&!gn(d)){const h=Fe(_.expression,p.Type_0_is_not_a_constructor_function_type,Cn(d));if(d.flags&262144){const T=eC(d);let P=jt;if(T){const O=As(T,1);O[0]&&(P=Ua(O[0]))}d.symbol.declarations&&ua(h,br(d.symbol.declarations[0],p.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ii(d.symbol),Cn(P)))}return n.resolvedBaseConstructorType=$e}n.resolvedBaseConstructorType=d}return n.resolvedBaseConstructorType}function aa(n){let s=Ve;if(n.symbol.declarations)for(const c of n.symbol.declarations){const _=w6(c);if(!!_)for(const d of _){const h=ai(d);q(h)||(s===Ve?s=[h]:s.push(h))}}return s}function to(n,s){Fe(n,p.Type_0_recursively_references_itself_as_a_base_type,Cn(s,void 0,2))}function To(n){if(!n.baseTypesResolved){if(Vf(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[wg(n)]:n.symbol.flags&96?(n.symbol.flags&32&&Ph(n),n.symbol.flags&64&&Y4(n)):E.fail("type must be class or interface"),!Kd()&&n.symbol.declarations))for(const s of n.symbol.declarations)(s.kind===263||s.kind===264)&&to(s,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function wg(n){const s=cl(n.typeParameters,(c,_)=>n.elementFlags[_]&8?Eu(c,ye):c);return $l(Jr(s||Ve),n.readonly)}function Ph(n){n.resolvedBaseTypes=DO;const s=Z_(fi(n));if(!(s.flags&2621441))return n.resolvedBaseTypes=Ve;const c=Ar(n);let _;const d=s.symbol?mo(s.symbol):void 0;if(s.symbol&&s.symbol.flags&32&&yd(d))_=y4e(c,s.symbol);else if(s.flags&1)_=s;else{const T=gi(s,c.typeArguments,c);if(!T.length)return Fe(c.expression,p.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=Ve;_=Ua(T[0])}if(q(_))return n.resolvedBaseTypes=Ve;const h=qp(_);if(!Uf(h)){const T=jre(void 0,_),P=us(T,p.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Cn(h));return xa.add(Hg(Rn(c.expression),c.expression,P)),n.resolvedBaseTypes=Ve}return n===h||bk(h,n)?(Fe(n.symbol.valueDeclaration,p.Type_0_recursively_references_itself_as_a_base_type,Cn(n,void 0,2)),n.resolvedBaseTypes=Ve):(n.resolvedBaseTypes===DO&&(n.members=void 0),n.resolvedBaseTypes=[h])}function yd(n){const s=n.outerTypeParameters;if(s){const c=s.length-1,_=uo(n);return s[c].symbol!==_[c].symbol}return!0}function Uf(n){if(n.flags&262144){const s=B_(n);if(s)return Uf(s)}return!!(n.flags&67633153&&!ff(n)||n.flags&2097152&&Xi(n.types,Uf))}function Y4(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Ve,n.symbol.declarations){for(const s of n.symbol.declarations)if(s.kind===264&&p3(s))for(const c of p3(s)){const _=qp(ai(c));q(_)||(Uf(_)?n!==_&&!bk(_,n)?n.resolvedBaseTypes===Ve?n.resolvedBaseTypes=[_]:n.resolvedBaseTypes.push(_):to(s,n):Fe(c,p.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function LE(n){if(!n.declarations)return!0;for(const s of n.declarations)if(s.kind===264){if(s.flags&256)return!1;const c=p3(s);if(c){for(const _ of c)if(Tc(_.expression)){const d=Qo(_.expression,788968,!0);if(!d||!(d.flags&64)||i_(d).thisType)return!1}}}return!0}function i_(n){let s=Mi(n);const c=s;if(!s.declaredType){const _=n.flags&32?1:2,d=Qse(n,n.valueDeclaration&&qtt(n.valueDeclaration));d&&(n=d,s=d.links);const h=c.declaredType=s.declaredType=Jf(_,n),T=YN(n),P=Vp(n);(T||P||_===1||!LE(n))&&(h.objectFlags|=4,h.typeParameters=es(T,P),h.outerTypeParameters=T,h.localTypeParameters=P,h.instantiations=new Map,h.instantiations.set(Hf(h.typeParameters),h),h.target=h,h.resolvedTypeArguments=h.typeParameters,h.thisType=zf(n),h.thisType.isThisType=!0,h.thisType.constraint=h)}return s.declaredType}function lJ(n){var s;const c=Mi(n);if(!c.declaredType){if(!Vf(n,2))return $e;const _=E.checkDefined((s=n.declarations)==null?void 0:s.find(nD),"Type alias symbol with no valid declaration found"),d=Kf(_)?_.typeExpression:_.type;let h=d?ai(d):$e;if(Kd()){const T=Vp(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(Hf(T),h))}else h=$e,_.kind===347?Fe(_.typeExpression.type,p.Type_alias_0_circularly_references_itself,ii(n)):Fe(A_(_)&&_.name||_,p.Type_alias_0_circularly_references_itself,ii(n));c.declaredType=h}return c.declaredType}function _J(n){return n.flags&1056&&n.symbol.flags&8?mo(X_(n.symbol)):n}function F6e(n){const s=Mi(n);if(!s.declaredType){const c=[];if(n.declarations){for(const d of n.declarations)if(d.kind===266){for(const h of d.members)if(Tk(h)){const T=vr(h),P=C7(h),O=cx(P!==void 0?CYe(P,ya(n),T):L6e(T));Mi(T).declaredType=O,c.push(j_(O))}}}const _=c.length?Jr(c,1,n,void 0):L6e(n);_.flags&1048576&&(_.flags|=1024,_.symbol=n),s.declaredType=_}return s.declaredType}function L6e(n){const s=kg(32,n),c=kg(32,n);return s.regularType=s,s.freshType=c,c.regularType=s,c.freshType=c,s}function M6e(n){const s=Mi(n);if(!s.declaredType){const c=F6e(X_(n));s.declaredType||(s.declaredType=c)}return s.declaredType}function ob(n){const s=Mi(n);return s.declaredType||(s.declaredType=zf(n))}function cXe(n){const s=Mi(n);return s.declaredType||(s.declaredType=mo(hl(n)))}function mo(n){return R6e(n)||$e}function R6e(n){if(n.flags&96)return i_(n);if(n.flags&524288)return lJ(n);if(n.flags&262144)return ob(n);if(n.flags&384)return F6e(n);if(n.flags&8)return M6e(n);if(n.flags&2097152)return cXe(n)}function ZN(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return ZN(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(ZN)}return!1}function lXe(n){const s=t6(n);return!s||ZN(s)}function B6e(n){const s=Vl(n);return s?ZN(s):!i1(n)}function _Xe(n){const s=ep(n),c=Kh(n);return(n.kind===176||!!s&&ZN(s))&&n.parameters.every(B6e)&&c.every(lXe)}function uXe(n){if(n.declarations&&n.declarations.length===1){const s=n.declarations[0];if(s)switch(s.kind){case 172:case 171:return B6e(s);case 174:case 173:case 176:case 177:case 178:return _Xe(s)}}return!1}function j6e(n,s,c){const _=Vs();for(const d of n)_.set(d.escapedName,c&&uXe(d)?d:Sie(d,s));return _}function J6e(n,s){for(const c of s){if(z6e(c))continue;const _=n.get(c.escapedName);(!_||_.valueDeclaration&&rr(_.valueDeclaration)&&!jp(_)&&!$le(_.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function z6e(n){return!!n.valueDeclaration&&N_(n.valueDeclaration)&&Os(n.valueDeclaration)}function kre(n){if(!n.declaredProperties){const s=n.symbol,c=Ih(s);n.declaredProperties=Dh(c),n.declaredCallSignatures=Ve,n.declaredConstructSignatures=Ve,n.declaredIndexInfos=Ve,n.declaredCallSignatures=yv(c.get("__call")),n.declaredConstructSignatures=yv(c.get("__new")),n.declaredIndexInfos=d4e(s)}return n}function Cre(n){if(!Ga(n)&&!No(n))return!1;const s=Ga(n)?n.expression:n.argumentExpression;return Tc(s)&&ip(Ga(n)?Bm(n):Bc(s))}function ME(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function KN(n){const s=os(n);return!!s&&Cre(s)}function Tk(n){return!X0(n)||KN(n)}function fXe(n){return Y9(n)&&!Cre(n)}function pXe(n,s,c){E.assert(!!(rc(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Mi(s.symbol).lateSymbol=n,n.declarations?s.symbol.isReplaceableByMethod||n.declarations.push(s):n.declarations=[s],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==s.kind)&&(n.valueDeclaration=s)}function V6e(n,s,c,_){E.assert(!!_.symbol,"The member is expected to have a symbol.");const d=jr(_);if(!d.resolvedSymbol){d.resolvedSymbol=_.symbol;const h=rr(_)?_.left:_.name,T=No(h)?Bc(h.argumentExpression):Bm(h);if(ip(T)){const P=sp(T),O=_.symbol.flags;let $=c.get(P);$||c.set(P,$=Pa(0,P,4096));const re=s&&s.get(P);if($.flags&rk(O)||re){const ce=re?es(re.declarations,$.declarations):$.declarations,Se=!(T.flags&8192)&&Oi(P)||no(h);pn(ce,Te=>Fe(os(Te)||Te,p.Property_0_was_also_declared_here,Se)),Fe(h||_,p.Duplicate_property_0,Se),$=Pa(0,P,4096)}return $.links.nameType=T,pXe($,_,O),$.parent?E.assert($.parent===n,"Existing symbol parent should match new one"):$.parent=n,d.resolvedSymbol=$}}return d.resolvedSymbol}function Ere(n,s){var c,_,d;const h=Mi(n);if(!h[s]){const T=s==="resolvedExports",P=T?n.flags&1536?_k(n).exports:n.exports:n.members;h[s]=P||U;const O=Vs();for(const re of n.declarations||Ve){const ce=Jle(re);if(ce)for(const Se of ce)T===$c(Se)&&KN(Se)&&V6e(n,P,O,Se)}const $=(((c=n.valueDeclaration)==null?void 0:c.kind)===219||((_=n.valueDeclaration)==null?void 0:_.kind)===218)&&((d=Cu(n.valueDeclaration.parent))==null?void 0:d.assignmentDeclarationMembers)||n.assignmentDeclarationMembers;if($){const re=ra($.values());for(const ce of re){const Se=uc(ce),Te=Se===3||rr(ce)&&lz(ce,Se)||Se===9||Se===6;T===!Te&&KN(ce)&&V6e(n,P,O,ce)}}h[s]=Nm(P,O)||U}return h[s]}function Ih(n){return n.flags&6256?Ere(n,"resolvedMembers"):n.members||U}function uJ(n){if(n.flags&106500&&n.escapedName==="__computed"){const s=Mi(n);if(!s.lateSymbol&&dt(n.declarations,KN)){const c=Ma(n.parent);dt(n.declarations,$c)?zu(c):Ih(c)}return s.lateSymbol||(s.lateSymbol=n)}return n}function Uu(n,s,c){if(Rr(n)&4){const _=n.target,d=uo(n);return Nn(_.typeParameters)===Nn(d)?k0(_,es(d,[s||_.thisType])):n}else if(n.flags&2097152){const _=cl(n.types,d=>Uu(d,s,c));return _!==n.types?oa(_):n}return c?Z_(n):n}function U6e(n,s,c,_){let d,h,T,P,O;lV(c,_,0,c.length)?(h=s.symbol?Ih(s.symbol):Vs(s.declaredProperties),T=s.declaredCallSignatures,P=s.declaredConstructSignatures,O=s.declaredIndexInfos):(d=uu(c,_),h=j6e(s.declaredProperties,d,c.length===1),T=DJ(s.declaredCallSignatures,d),P=DJ(s.declaredConstructSignatures,d),O=mCe(s.declaredIndexInfos,d));const $=To(s);if($.length){s.symbol&&h===Ih(s.symbol)&&(h=Vs(s.declaredProperties)),uf(n,h,T,P,O);const re=jo(_);for(const ce of $){const Se=re?Uu(zi(ce,d),re):ce;J6e(h,Va(Se)),T=es(T,As(Se,0)),P=es(P,As(Se,1));const Te=Se!==ke?x_(Se):[rm(F,ke,!1)];O=es(O,zr(Te,Ze=>!Jre(O,Ze.keyType)))}}uf(n,h,T,P,O)}function dXe(n){U6e(n,kre(n),Ve,Ve)}function mXe(n){const s=kre(n.target),c=es(s.typeParameters,[s.thisType]),_=uo(n),d=_.length===c.length?_:es(_,[n]);U6e(n,s,c,d)}function Mm(n,s,c,_,d,h,T,P){const O=new g(Bt,P);return O.declaration=n,O.typeParameters=s,O.parameters=_,O.thisParameter=c,O.resolvedReturnType=d,O.resolvedTypePredicate=h,O.minArgumentCount=T,O.resolvedMinArgumentCount=void 0,O.target=void 0,O.mapper=void 0,O.compositeSignatures=void 0,O.compositeKind=void 0,O}function RE(n){const s=Mm(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return s.target=n.target,s.mapper=n.mapper,s.compositeSignatures=n.compositeSignatures,s.compositeKind=n.compositeKind,s}function W6e(n,s){const c=RE(n);return c.compositeSignatures=s,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function gXe(n,s){if((n.flags&24)===s)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const c=s===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=hXe(n,s))}function hXe(n,s){E.assert(s===8||s===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const c=RE(n);return c.flags|=s,c}function q6e(n,s){if(d_(n)){const d=n.parameters.length-1,h=n.parameters[d].escapedName,T=$n(n.parameters[d]);if(la(T))return[c(T,d,h)];if(!s&&T.flags&1048576&&Xi(T.types,la))return an(T.types,P=>c(P,d,h))}return[n.parameters];function c(d,h,T){const P=uo(d),O=_(d,T),$=an(P,(re,ce)=>{const Se=O&&O[ce]?O[ce]:gC(n,h+ce,d),Te=d.target.elementFlags[ce],Ze=Te&12?32768:Te&2?16384:0,St=Pa(1,Se,Ze);return St.links.type=Te&4?$l(re):re,St});return es(n.parameters.slice(0,h),$)}function _(d,h){const T=new Map;return an(d.target.labeledElementDeclarations,(P,O)=>{const $=tae(P,O,h),re=T.get($);return re===void 0?(T.set($,1),$):(T.set($,re+1),`${$}_${re}`)})}}function yXe(n){const s=fi(n),c=As(s,1),_=Yg(n.symbol),d=!!_&&Lr(_,256);if(c.length===0)return[Mm(void 0,n.localTypeParameters,void 0,Ve,n,void 0,0,d?4:0)];const h=Ar(n),T=Kn(h),P=oP(h),O=Nn(P),$=[];for(const re of c){const ce=nm(re.typeParameters),Se=Nn(re.typeParameters);if(T||O>=ce&&O<=Se){const Te=Se?pJ(re,Fh(P,re.typeParameters,ce,T)):RE(re);Te.typeParameters=n.localTypeParameters,Te.resolvedReturnType=n,Te.flags=d?Te.flags|4:Te.flags&-5,$.push(Te)}}return $}function wre(n,s,c,_,d){for(const h of n)if(TP(h,s,c,_,d,c?WYe:$E))return h}function vXe(n,s,c){if(s.typeParameters){if(c>0)return;for(let d=1;d1&&(c=c===void 0?_:-1);for(const d of n[_])if(!s||!wre(s,d,!1,!1,!0)){const h=vXe(n,d,_);if(h){let T=d;if(h.length>1){let P=d.thisParameter;const O=pn(h,$=>$.thisParameter);if(O){const $=oa(Hi(h,re=>re.thisParameter&&$n(re.thisParameter)));P=mb(O,$)}T=W6e(d,h),T.thisParameter=P}(s||(s=[])).push(T)}}}if(!Nn(s)&&c!==-1){const _=n[c!==void 0?c:0];let d=_.slice();for(const h of n)if(h!==_){const T=h[0];if(E.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),d=!!T.typeParameters&&dt(d,P=>!!P.typeParameters&&!H6e(T.typeParameters,P.typeParameters))?void 0:an(d,P=>xXe(P,T)),!d)break}s=d}return s||Ve}function H6e(n,s){if(Nn(n)!==Nn(s))return!1;if(!n||!s)return!0;const c=uu(s,n);for(let _=0;_=d?n:s,T=h===n?s:n,P=h===n?_:d,O=sm(n)||sm(s),$=O&&!sm(h),re=new Array(P+($?1:0));for(let ce=0;ce=Sd(h)&&ce>=Sd(T),_n=ce>=_?void 0:gC(n,ce),Gn=ce>=d?void 0:gC(s,ce),An=_n===Gn?_n:_n?Gn?void 0:_n:Gn,qt=Pa(1|(Zt&&!St?16777216:0),An||`arg${ce}`);qt.links.type=St?$l(Ze):Ze,re[ce]=qt}if($){const ce=Pa(1,"args");ce.links.type=$l(Xp(T,P)),T===s&&(ce.links.type=zi(ce.links.type,c)),re[P]=ce}return re}function xXe(n,s){const c=n.typeParameters||s.typeParameters;let _;n.typeParameters&&s.typeParameters&&(_=uu(s.typeParameters,n.typeParameters));const d=n.declaration,h=TXe(n,s,_),T=bXe(n.thisParameter,s.thisParameter,_),P=Math.max(n.minArgumentCount,s.minArgumentCount),O=Mm(d,c,T,h,void 0,void 0,P,(n.flags|s.flags)&167);return O.compositeKind=1048576,O.compositeSignatures=es(n.compositeKind!==2097152&&n.compositeSignatures||[n],[s]),_&&(O.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?ny(n.mapper,_):_),O}function G6e(n){const s=x_(n[0]);if(s){const c=[];for(const _ of s){const d=_.keyType;Xi(n,h=>!!Rm(h,d))&&c.push(rm(d,Jr(an(n,h=>Q1(h,d))),dt(n,h=>Rm(h,d).isReadonly)))}return c}return Ve}function SXe(n){const s=Dre(an(n.types,d=>d===Vo?[Ce]:As(d,0))),c=Dre(an(n.types,d=>As(d,1))),_=G6e(n.types);uf(n,U,s,c,_)}function eP(n,s){return n?s?oa([n,s]):n:s}function $6e(n){const s=M0(n,_=>As(_,1).length>0),c=an(n,X1);if(s>0&&s===M0(c,_=>_)){const _=c.indexOf(!0);c[_]=!1}return c}function kXe(n,s,c,_){const d=[];for(let h=0;hP);for(let P=0;P0&&($=an($,re=>{const ce=RE(re);return ce.resolvedReturnType=kXe(Ua(re),d,h,P),ce})),c=X6e(c,$)}s=X6e(s,As(O,0)),_=E_(x_(O),($,re)=>Q6e($,re,!1),_)}uf(n,U,s||Ve,c||Ve,_||Ve)}function X6e(n,s){for(const c of s)(!n||Xi(n,_=>!TP(_,c,!1,!1,!1,$E)))&&(n=dn(n,c));return n}function Q6e(n,s,c){if(n)for(let _=0;_{var O;!(P.flags&418)&&!(P.flags&512&&((O=P.declarations)==null?void 0:O.length)&&Xi(P.declarations,__))&&T.set(P.escapedName,P)}),c=T}let d;if(uf(n,c,Ve,Ve,Ve),s.flags&32){const T=i_(s),P=fi(T);P.flags&11272192?(c=Vs(Om(c)),J6e(c,Va(P))):P===ke&&(d=rm(F,ke,!1))}const h=dJ(c);if(h?_=$re(h):(d&&(_=dn(_,d)),s.flags&384&&(mo(s).flags&32||dt(n.properties,T=>!!($n(T).flags&296)))&&(_=dn(_,yn))),uf(n,c,Ve,Ve,_||Ve),s.flags&8208&&(n.callSignatures=yv(s)),s.flags&32){const T=i_(s);let P=s.members?yv(s.members.get("__constructor")):Ve;s.flags&16&&(P=Fr(P.slice(),Hi(n.callSignatures,O=>xd(O.declaration)?Mm(O.declaration,O.typeParameters,O.thisParameter,O.parameters,T,void 0,O.minArgumentCount,O.flags&167):void 0))),P.length||(P=yXe(T)),n.constructSignatures=P}}function wXe(n,s,c){return zi(n,uu([s.indexType,s.objectType],[Gp(0),Hp([c])]))}function DXe(n){const s=Rm(n.source,F),c=tm(n.mappedType),_=!(c&1),d=c&4?0:16777216,h=s?[rm(F,ZJ(s.type,n.mappedType,n.constraintType),_&&s.isReadonly)]:Ve,T=Vs();for(const P of Va(n.source)){const O=8192|(_&&Qp(P)?8:0),$=Pa(4|P.flags&d,P.escapedName,O);if($.declarations=P.declarations,$.links.nameType=Mi(P).nameType,$.links.propertyType=$n(P),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const re=n.constraintType.type.objectType,ce=wXe(n.mappedType,n.constraintType.type,re);$.links.mappedType=ce,$.links.constraintType=im(re)}else $.links.mappedType=n.mappedType,$.links.constraintType=n.constraintType;T.set(P.escapedName,$)}uf(n,T,Ve,Ve,h)}function tP(n){if(n.flags&4194304){const s=Z_(n.type);return A0(s)?J4e(s):im(s)}if(n.flags&16777216){if(n.root.isDistributive){const s=n.checkType,c=tP(s);if(c!==s)return Eie(n,lx(n.root.checkType,c,n.mapper))}return n}if(n.flags&1048576)return xo(n,tP,!0);if(n.flags&2097152){const s=n.types;return s.length===2&&!!(s[0].flags&76)&&s[1]===L_?n:oa(cl(n.types,tP))}return n}function Are(n){return rc(n)&4096}function Nre(n,s,c,_){for(const d of Va(n))_(rC(d,s));if(n.flags&1)_(F);else for(const d of x_(n))(!c||d.keyType.flags&134217732)&&_(d.keyType)}function AXe(n){const s=Vs();let c;uf(n,U,Ve,Ve,Ve);const _=Up(n),d=Wf(n),h=n.target||n,T=S0(h),P=!T||K6e(h),O=Dg(h),$=Z_(xk(n)),re=tm(n),ce=De?128:8576;BE(n)?Nre($,ce,De,Se):yb(tP(d),Se),uf(n,s,Ve,Ve,c||Ve);function Se(Ze){const St=T?zi(T,GE(n.mapper,_,Ze)):Ze;yb(St,Zt=>Te(Ze,Zt))}function Te(Ze,St){if(ip(St)){const Zt=sp(St),_n=s.get(Zt);if(_n)_n.links.nameType=Jr([_n.links.nameType,St]),_n.links.keyType=Jr([_n.links.keyType,Ze]);else{const Gn=ip(Ze)?Ws($,sp(Ze)):void 0,An=!!(re&4||!(re&8)&&Gn&&Gn.flags&16777216),qt=!!(re&1||!(re&2)&&Gn&&Qp(Gn)),zn=H&&!An&&Gn&&Gn.flags&16777216,Ht=Gn?Are(Gn):0,mn=Pa(4|(An?16777216:0),Zt,Ht|262144|(qt?8:0)|(zn?524288:0));mn.links.mappedType=n,mn.links.nameType=St,mn.links.keyType=Ze,Gn&&(mn.links.syntheticOrigin=Gn,mn.declarations=P?Gn.declarations:void 0),s.set(Zt,mn)}}else if(mJ(St)||St.flags&33){const Zt=St.flags&5?F:St.flags&40?ye:St,_n=zi(O,GE(n.mapper,_,Ze)),Gn=rm(Zt,_n,!!(re&1));c=Q6e(c,Gn,!0)}}}function NXe(n){if(!n.links.type){const s=n.links.mappedType;if(!Vf(n,0))return s.containsError=!0,$e;const c=Dg(s.target||s),_=GE(s.mapper,Up(s),n.links.keyType),d=zi(c,_);let h=H&&n.flags&16777216&&!Yo(d,49152)?N0(d,!0):n.links.checkFlags&524288?GJ(d):d;Kd()||(Fe(D,p.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ii(n),Cn(s)),h=$e),n.links.type=h}return n.links.type}function Up(n){return n.typeParameter||(n.typeParameter=ob(vr(n.declaration.typeParameter)))}function Wf(n){return n.constraintType||(n.constraintType=s_(Up(n))||$e)}function S0(n){return n.declaration.nameType?n.nameType||(n.nameType=zi(ai(n.declaration.nameType),n.mapper)):void 0}function Dg(n){return n.templateType||(n.templateType=n.declaration.type?zi(Sl(ai(n.declaration.type),!0,!!(tm(n)&4)),n.mapper):$e)}function Y6e(n){return t6(n.declaration.typeParameter)}function BE(n){const s=Y6e(n);return s.kind===198&&s.operator===143}function xk(n){if(!n.modifiersType)if(BE(n))n.modifiersType=zi(ai(Y6e(n).type),n.mapper);else{const s=gie(n.declaration),c=Wf(s),_=c&&c.flags&262144?s_(c):c;n.modifiersType=_&&_.flags&4194304?zi(_.type,n.mapper):jt}return n.modifiersType}function tm(n){const s=n.declaration;return(s.readonlyToken?s.readonlyToken.kind===41?2:1:0)|(s.questionToken?s.questionToken.kind===41?8:4:0)}function Z6e(n){const s=tm(n);return s&8?-1:s&4?1:0}function Pre(n){const s=Z6e(n),c=xk(n);return s||(ff(c)?Z6e(c):0)}function PXe(n){return!!(Rr(n)&32&&tm(n)&4)}function ff(n){if(Rr(n)&32){const s=Wf(n);if(K1(s))return!0;const c=S0(n);if(c&&K1(zi(c,Sv(Up(n),s))))return!0}return!1}function K6e(n){const s=S0(n);return!!s&&ca(s,Up(n))}function Wp(n){return n.members||(n.flags&524288?n.objectFlags&4?mXe(n):n.objectFlags&3?dXe(n):n.objectFlags&1024?DXe(n):n.objectFlags&16?EXe(n):n.objectFlags&32?AXe(n):E.fail("Unhandled object type "+E.formatObjectFlags(n.objectFlags)):n.flags&1048576?SXe(n):n.flags&2097152?CXe(n):E.fail("Unhandled type "+E.formatTypeFlags(n.flags))),n}function Oh(n){return n.flags&524288?Wp(n).properties:Ve}function hv(n,s){if(n.flags&524288){const _=Wp(n).members.get(s);if(_&&_v(_))return _}}function nP(n){if(!n.resolvedProperties){const s=Vs();for(const c of n.types){for(const _ of Va(c))if(!s.has(_.escapedName)){const d=Rre(n,_.escapedName);d&&s.set(_.escapedName,d)}if(n.flags&1048576&&x_(c).length===0)break}n.resolvedProperties=Dh(s)}return n.resolvedProperties}function Va(n){return n=Z4(n),n.flags&3145728?nP(n):Oh(n)}function IXe(n,s){n=Z4(n),n.flags&3670016&&Wp(n).members.forEach((c,_)=>{eb(c,_)&&s(c,_)})}function OXe(n,s){return s.properties.some(_=>{const d=_.name&&(sd(_.name)?K_(jD(_.name)):E0(_.name)),h=d&&ip(d)?sp(d):void 0,T=h===void 0?void 0:Wc(n,h);return!!T&&YE(T)&&!ca(px(_),T)})}function FXe(n){const s=Jr(n);if(!(s.flags&1048576))return Rae(s);const c=Vs();for(const _ of n)for(const{escapedName:d}of Rae(_))if(!c.has(d)){const h=i4e(s,d);h&&c.set(d,h)}return ra(c.values())}function cb(n){return n.flags&262144?s_(n):n.flags&8388608?LXe(n):n.flags&16777216?n4e(n):B_(n)}function s_(n){return jE(n)?eC(n):void 0}function Sk(n,s=0){var c;return s<5&&!!(n&&(n.flags&262144&&dt((c=n.symbol)==null?void 0:c.declarations,_=>Lr(_,2048))||n.flags&1048576&&dt(n.types,_=>Sk(_,s))||n.flags&8388608&&Sk(n.objectType,s+1)||n.flags&16777216&&Sk(n4e(n),s+1)||n.flags&33554432&&Sk(n.baseType,s)||A0(n)&&qc(Z1(n),(_,d)=>!!(n.target.elementFlags[d]&8)&&Sk(_,s))>=0))}function LXe(n){return jE(n)?MXe(n):void 0}function Ire(n){const s=Ng(n,!1);return s!==n?s:cb(n)}function MXe(n){if(Mre(n)||ff(n.objectType))return xJ(n.objectType,n.indexType);const s=Ire(n.indexType);if(s&&s!==n.indexType){const _=Rh(n.objectType,s,n.accessFlags);if(_)return _}const c=Ire(n.objectType);if(c&&c!==n.objectType)return Rh(c,n.indexType,n.accessFlags)}function Ore(n){if(!n.resolvedDefaultConstraint){const s=vYe(n),c=ty(n);n.resolvedDefaultConstraint=qa(s)?c:qa(c)?s:Jr([s,c])}return n.resolvedDefaultConstraint}function e4e(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const s=Ng(n.checkType,!1),c=s===n.checkType?cb(s):s;if(c&&c!==n.checkType){const _=Eie(n,lx(n.root.checkType,c,n.mapper));if(!(_.flags&131072))return n.resolvedConstraintOfDistributive=_,_}}n.resolvedConstraintOfDistributive=!1}function t4e(n){return e4e(n)||Ore(n)}function n4e(n){return jE(n)?t4e(n):void 0}function RXe(n,s){let c,_=!1;for(const d of n)if(d.flags&465829888){let h=cb(d);for(;h&&h.flags&21233664;)h=cb(h);h&&(c=dn(c,h),s&&(c=dn(c,d)))}else(d.flags&469892092||Og(d))&&(_=!0);if(c&&(s||_)){if(_)for(const d of n)(d.flags&469892092||Og(d))&&(c=dn(c,d));return hP(oa(c),!1)}}function B_(n){if(n.flags&464781312||A0(n)){const s=Fre(n);return s!==Ba&&s!==Fa?s:void 0}return n.flags&4194304?Ms:void 0}function Ag(n){return B_(n)||n}function jE(n){return Fre(n)!==Fa}function Fre(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const s=[];return n.resolvedBaseConstraint=c(n);function c(h){if(!h.immediateBaseConstraint){if(!Vf(h,4))return Fa;let T;const P=bP(h);if((s.length<10||s.length<50&&!ys(s,P))&&(s.push(P),T=d(Ng(h,!1)),s.pop()),!Kd()){if(h.flags&262144){const O=Xre(h);if(O){const $=Fe(O,p.Type_parameter_0_has_a_circular_constraint,Cn(h));D&&!i2(O,D)&&!i2(D,O)&&ua($,br(D,p.Circularity_originates_in_type_at_this_location))}}T=Fa}h.immediateBaseConstraint=T||Ba}return h.immediateBaseConstraint}function _(h){const T=c(h);return T!==Ba&&T!==Fa?T:void 0}function d(h){if(h.flags&262144){const T=eC(h);return h.isThisType||!T?T:_(T)}if(h.flags&3145728){const T=h.types,P=[];let O=!1;for(const $ of T){const re=_($);re?(re!==$&&(O=!0),P.push(re)):O=!0}return O?h.flags&1048576&&P.length===T.length?Jr(P):h.flags&2097152&&P.length?oa(P):void 0:h}if(h.flags&4194304)return Ms;if(h.flags&134217728){const T=h.types,P=Hi(T,_);return P.length===T.length?fb(h.texts,P):F}if(h.flags&268435456){const T=_(h.type);return T&&T!==h.type?ax(h.symbol,T):F}if(h.flags&8388608){if(Mre(h))return _(xJ(h.objectType,h.indexType));const T=_(h.objectType),P=_(h.indexType),O=T&&P&&Rh(T,P,h.accessFlags);return O&&_(O)}if(h.flags&16777216){const T=t4e(h);return T&&_(T)}if(h.flags&33554432)return _(Zre(h));if(A0(h)){const T=an(Z1(h),(P,O)=>{const $=P.flags&262144&&h.target.elementFlags[O]&8&&_(P)||P;return $!==P&&Df($,re=>Cv(re)&&!A0(re))?$:P});return Hp(T,h.target.elementFlags,h.target.readonly,h.target.labeledElementDeclarations)}return h}}function BXe(n,s){return n.resolvedApparentType||(n.resolvedApparentType=Uu(n,s,!0))}function Lre(n){if(n.default)n.default===Wt&&(n.default=Fa);else if(n.target){const s=Lre(n.target);n.default=s?zi(s,n.mapper):Ba}else{n.default=Wt;const s=n.symbol&&pn(n.symbol.declarations,_=>Go(_)&&_.default),c=s?ai(s):Ba;n.default===Wt&&(n.default=c)}return n.default}function lb(n){const s=Lre(n);return s!==Ba&&s!==Fa?s:void 0}function jXe(n){return Lre(n)!==Fa}function r4e(n){return!!(n.symbol&&pn(n.symbol.declarations,s=>Go(s)&&s.default))}function JXe(n){return n.resolvedApparentType||(n.resolvedApparentType=zXe(n))}function zXe(n){const s=PJ(n);if(s&&!n.declaration.nameType){const c=s_(s);if(c&&Df(c,Cv))return zi(n,lx(s,c,n.mapper))}return n}function Mre(n){let s;return!!(n.flags&8388608&&Rr(s=n.objectType)&32&&!ff(s)&&K1(n.indexType)&&!(tm(s)&8)&&!s.declaration.nameType)}function Z_(n){const s=n.flags&465829888?B_(n)||jt:n,c=Rr(s);return c&32?JXe(s):c&4&&s!==n?Uu(s,n):s.flags&2097152?BXe(s,n):s.flags&402653316?ji:s.flags&296?ws:s.flags&2112?kQe():s.flags&528?Wa:s.flags&12288?P4e():s.flags&67108864?Li:s.flags&4194304?Ms:s.flags&2&&!H?Li:s}function Z4(n){return qp(Z_(qp(n)))}function i4e(n,s,c){var _,d,h;let T,P,O;const $=n.flags&1048576;let re,ce=4,Se=$?0:8,Te=!1;for(const mn of n.types){const bn=Z_(mn);if(!(q(bn)||bn.flags&131072)){const Yn=Ws(bn,s,c),fs=Yn?Lf(Yn):0;if(Yn){if(Yn.flags&106500&&(re!=null||(re=$?0:16777216),$?re|=Yn.flags&16777216:re&=Yn.flags),!T)T=Yn;else if(Yn!==T)if((Bk(Yn)||Yn)===(Bk(T)||T)&&Rie(T,Yn,(ei,wc)=>ei===wc?-1:0)===-1)Te=!!T.parent&&!!Nn(Vp(T.parent));else{P||(P=new Map,P.set(ya(T),T));const ei=ya(Yn);P.has(ei)||P.set(ei,Yn)}$&&Qp(Yn)?Se|=8:!$&&!Qp(Yn)&&(Se&=-9),Se|=(fs&24?0:256)|(fs&16?512:0)|(fs&8?1024:0)|(fs&32?2048:0),Pse(Yn)||(ce=2)}else if($){const Vi=!ME(s)&&_b(bn,s);Vi?(Se|=32|(Vi.isReadonly?8:0),O=dn(O,la(bn)?UJ(bn)||Nt:Vi.type)):iy(bn)&&!(Rr(bn)&2097152)?(Se|=32,O=dn(O,Nt)):Se|=16}}}if(!T||$&&(P||Se&48)&&Se&1536&&!(P&&VXe(P.values())))return;if(!P&&!(Se&16)&&!O)if(Te){const mn=(_=Hr(T,pm))==null?void 0:_.links,bn=mb(T,mn==null?void 0:mn.type);return bn.parent=(h=(d=T.valueDeclaration)==null?void 0:d.symbol)==null?void 0:h.parent,bn.links.containingType=n,bn.links.mapper=mn==null?void 0:mn.mapper,bn}else return T;const Ze=P?ra(P.values()):[T];let St,Zt,_n;const Gn=[];let An,qt,zn=!1;for(const mn of Ze){qt?mn.valueDeclaration&&mn.valueDeclaration!==qt&&(zn=!0):qt=mn.valueDeclaration,St=Fr(St,mn.declarations);const bn=$n(mn);Zt||(Zt=bn,_n=Mi(mn).nameType);const Yn=FE(mn);An||Yn!==bn?An=dn(An||Gn.slice(),Yn):bn!==Zt&&(Se|=64),(YE(bn)||Ak(bn))&&(Se|=128),bn.flags&131072&&bn!==Ea&&(Se|=131072),Gn.push(bn)}Fr(Gn,O);const Ht=Pa(4|(re!=null?re:0),s,ce|Se);return Ht.links.containingType=n,!zn&&qt&&(Ht.valueDeclaration=qt,qt.symbol.parent&&(Ht.parent=qt.symbol.parent)),Ht.declarations=St,Ht.links.nameType=_n,Gn.length>2?(Ht.links.checkFlags|=65536,Ht.links.deferralParent=n,Ht.links.deferralConstituents=Gn,Ht.links.deferralWriteConstituents=An):(Ht.links.type=$?Jr(Gn):oa(Gn),An&&(Ht.links.writeType=$?Jr(An):oa(An))),Ht}function s4e(n,s,c){var _,d;let h=((_=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:_.get(s))||!c?(d=n.propertyCache)==null?void 0:d.get(s):void 0;return h||(h=i4e(n,s,c),h&&(c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=Vs()):n.propertyCache||(n.propertyCache=Vs())).set(s,h)),h}function VXe(n){let s;for(const c of n){if(!c.declarations)return;if(!s){s=new Set(c.declarations);continue}if(s.forEach(_=>{ys(c.declarations,_)||s.delete(_)}),s.size===0)return}return s}function Rre(n,s,c){const _=s4e(n,s,c);return _&&!(rc(_)&16)?_:void 0}function qp(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=UXe(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(dt(nP(n),WXe)?33554432:0)),n.objectFlags&33554432?jn:n):n}function UXe(n){const s=cl(n.types,qp);if(s===n.types)return n;const c=Jr(s);return c.flags&1048576&&(c.resolvedReducedType=c),c}function WXe(n){return a4e(n)||o4e(n)}function a4e(n){return!(n.flags&16777216)&&(rc(n)&131264)===192&&!!($n(n).flags&131072)}function o4e(n){return!n.valueDeclaration&&!!(rc(n)&1024)}function Bre(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&dt(n.types,Bre)||n.flags&2097152&&qXe(n))}function qXe(n){const s=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=zi(n,ro));return qp(s)!==s}function jre(n,s){if(s.flags&2097152&&Rr(s)&33554432){const c=Or(nP(s),a4e);if(c)return us(n,p.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Cn(s,void 0,536870912),ii(c));const _=Or(nP(s),o4e);if(_)return us(n,p.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Cn(s,void 0,536870912),ii(_))}return n}function Ws(n,s,c,_){if(n=Z4(n),n.flags&524288){const d=Wp(n),h=d.members.get(s);if(h&&_v(h,_))return h;if(c)return;const T=d===po?Vo:d.callSignatures.length?Tu:d.constructSignatures.length?he:void 0;if(T){const P=hv(T,s);if(P)return P}return hv(Uc,s)}if(n.flags&3145728)return Rre(n,s,c)}function rP(n,s){if(n.flags&3670016){const c=Wp(n);return s===0?c.callSignatures:c.constructSignatures}return Ve}function As(n,s){const c=rP(Z4(n),s);if(s===0&&!Nn(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let _;if(Df(n,d=>{var h;return!!((h=d.symbol)!=null&&h.parent)&&HXe(d.symbol.parent)&&(_?_===d.symbol.escapedName:(_=d.symbol.escapedName,!0))})){const d=xo(n,T=>jh((c4e(T.symbol.parent)?vn:vt).typeParameters[0],T.mapper)),h=$l(d,Mg(n,T=>c4e(T.symbol.parent)));return n.arrayFallbackSignatures=As(Wc(h,_),s)}n.arrayFallbackSignatures=c}return c}function HXe(n){return!n||!vt.symbol||!vn.symbol?!1:!!Vu(n,vt.symbol)||!!Vu(n,vn.symbol)}function c4e(n){return!n||!vn.symbol?!1:!!Vu(n,vn.symbol)}function Jre(n,s){return Or(n,c=>c.keyType===s)}function zre(n,s){let c,_,d;for(const h of n)h.keyType===F?c=h:kk(s,h.keyType)&&(_?(d||(d=[_])).push(h):_=h);return d?rm(jt,oa(an(d,h=>h.type)),E_(d,(h,T)=>h&&T.isReadonly,!0)):_||(c&&kk(s,F)?c:void 0)}function kk(n,s){return ca(n,s)||s===F&&ca(n,ye)||s===ye&&(n===tc||!!(n.flags&128)&&sg(n.value))}function Vre(n){return n.flags&3670016?Wp(n).indexInfos:Ve}function x_(n){return Vre(Z4(n))}function Rm(n,s){return Jre(x_(n),s)}function Q1(n,s){var c;return(c=Rm(n,s))==null?void 0:c.type}function Ure(n,s){return x_(n).filter(c=>kk(s,c.keyType))}function iP(n,s){return zre(x_(n),s)}function _b(n,s){return iP(n,ME(s)?ir:K_(Oi(s)))}function l4e(n){var s;let c;for(const _ of Kh(n))c=jg(c,ob(_.symbol));return c!=null&&c.length?c:tl(n)?(s=K4(n))==null?void 0:s.typeParameters:void 0}function Wre(n){const s=[];return n.forEach((c,_)=>{K2(_)||s.push(c)}),s}function qre(n,s){if(Al(n))return;const c=G_(pe,'"'+n+'"',512);return c&&s?Ma(c):c}function JE(n){if(Jx(n)||RD(n)||BD(n))return!0;if(n.initializer){const c=vd(n.parent),_=n.parent.parameters.indexOf(n);return E.assert(_>=0),_>=Sd(c,3)}const s=jb(n.parent);return s?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=s.arguments.length:!1}function GXe(n){return Fs(n)&&!ym(n)&&n.questionToken}function sP(n,s,c,_){return{kind:n,parameterName:s,parameterIndex:c,type:_}}function nm(n){let s=0;if(n)for(let c=0;c=c&&h<=d){const T=n?n.slice():[];for(let O=h;OP.arguments.length&&!Zt||BD(Ze)||(d=c.length)}if((n.kind===177||n.kind===178)&&Tk(n)&&(!T||!h)){const Te=n.kind===177?178:177,Ze=lc(vr(n),Te);Ze&&(h=hre(Ze))}if(Kn(n)){const Te=ZI(n);Te&&Te.typeExpression&&(h=mb(Pa(1,"this"),ai(Te.typeExpression)))}const re=Fy(n)?zx(n):n,ce=re&&Cc(re)?i_(Ma(re.parent.symbol)):void 0,Se=ce?ce.localTypeParameters:l4e(n);(hW(n)||Kn(n)&&$Xe(n,c))&&(_|=1),(n8(n)&&Lr(n,256)||Cc(n)&&Lr(n.parent,256))&&(_|=4),s.resolvedSignature=Mm(n,Se,h,c,void 0,void 0,d,_)}return s.resolvedSignature}function $Xe(n,s){if(Fy(n)||!Hre(n))return!1;const c=jo(n.parameters),_=c?e6(c):gy(n).filter(ad),d=cc(_,T=>T.typeExpression&&SF(T.typeExpression.type)?T.typeExpression.type:void 0),h=Pa(3,"args",32768);return d?h.links.type=$l(ai(d.type)):(h.links.checkFlags|=65536,h.links.deferralParent=jn,h.links.deferralConstituents=[qe],h.links.deferralWriteConstituents=[qe]),d&&s.pop(),s.push(h),!0}function K4(n){if(!(Kn(n)&&Eo(n)))return;const s=dy(n);return(s==null?void 0:s.typeExpression)&&Tb(ai(s.typeExpression))}function XXe(n,s){const c=K4(n);if(!c)return;const _=n.parameters.indexOf(s);return s.dotDotDotToken?_7(c,_):Xp(c,_)}function QXe(n){const s=K4(n);return s&&Ua(s)}function Hre(n){const s=jr(n);return s.containsArgumentsReference===void 0&&(s.flags&512?s.containsArgumentsReference=!0:s.containsArgumentsReference=c(n.body)),s.containsArgumentsReference;function c(_){if(!_)return!1;switch(_.kind){case 80:return _.escapedText===tt.escapedName&&E7(_)===tt;case 172:case 174:case 177:case 178:return _.name.kind===167&&c(_.name);case 211:case 212:return c(_.expression);case 303:return c(_.initializer);default:return!pq(_)&&!Km(_)&&!!bs(_,c)}}}function yv(n){if(!n||!n.declarations)return Ve;const s=[];for(let c=0;c0&&_.body){const d=n.declarations[c-1];if(_.parent===d.parent&&_.kind===d.kind&&_.pos===d.end)continue}if(Kn(_)&&_.jsDoc){let d=!1;for(const h of _.jsDoc)if(h.tags){for(const T of h.tags)if(u8(T)){const P=T.typeExpression;P.type===void 0&&!Cc(_)&&ry(P,ke),s.push(vd(P)),d=!0}}if(d)continue}s.push(!z6(_)&&!kp(_)&&K4(_)||vd(_))}}return s}function _4e(n){const s=r_(n,n);if(s){const c=lf(s);if(c)return $n(c)}return ke}function Y1(n){if(n.thisParameter)return $n(n.thisParameter)}function qf(n){if(!n.resolvedTypePredicate){if(n.target){const s=qf(n.target);n.resolvedTypePredicate=s?FYe(s,n.mapper):$o}else if(n.compositeSignatures)n.resolvedTypePredicate=GQe(n.compositeSignatures,n.compositeKind)||$o;else{const s=n.declaration&&ep(n.declaration);let c;if(!s){const _=K4(n.declaration);_&&n!==_&&(c=qf(_))}n.resolvedTypePredicate=s&&mF(s)?YXe(s,n):c||$o}E.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===$o?void 0:n.resolvedTypePredicate}function YXe(n,s){const c=n.parameterName,_=n.type&&ai(n.type);return c.kind===197?sP(n.assertsModifier?2:0,void 0,void 0,_):sP(n.assertsModifier?3:1,c.escapedText,qc(s.parameters,d=>d.escapedName===c.escapedText),_)}function u4e(n,s,c){return s!==2097152?Jr(n,c):oa(n)}function Ua(n){if(!n.resolvedReturnType){if(!Vf(n,3))return $e;let s=n.target?zi(Ua(n.target),n.mapper):n.compositeSignatures?zi(u4e(an(n.compositeSignatures,Ua),n.compositeKind,2),n.mapper):Ck(n.declaration)||(_c(n.declaration.body)?ke:Ez(n.declaration));if(n.flags&8?s=qCe(s):n.flags&16&&(s=N0(s)),!Kd()){if(n.declaration){const c=ep(n.declaration);if(c)Fe(c,p.Return_type_annotation_circularly_references_itself);else if(fe){const _=n.declaration,d=os(_);d?Fe(d,p._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,no(d)):Fe(_,p.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)}}s=ke}n.resolvedReturnType=s}return n.resolvedReturnType}function Ck(n){if(n.kind===176)return i_(Ma(n.parent.symbol));const s=ep(n);if(Fy(n)){const c=u3(n);if(c&&Cc(c.parent)&&!s)return i_(Ma(c.parent.parent.symbol))}if(k6(n))return ai(n.parameters[0].type);if(s)return ai(s);if(n.kind===177&&Tk(n)){const c=Kn(n)&&Ha(n);if(c)return c;const _=lc(vr(n),178),d=H1(_);if(d)return d}return QXe(n)}function fJ(n){return n.compositeSignatures&&dt(n.compositeSignatures,fJ)||!n.resolvedReturnType&&mk(n,3)>=0}function ZXe(n){return f4e(n)||ke}function f4e(n){if(d_(n)){const s=$n(n.parameters[n.parameters.length-1]),c=la(s)?UJ(s):s;return c&&Q1(c,ye)}}function zE(n,s,c,_){const d=Gre(n,Fh(s,n.typeParameters,nm(n.typeParameters),c));if(_){const h=x8e(Ua(d));if(h){const T=RE(h);T.typeParameters=_;const P=RE(d);return P.resolvedReturnType=ub(T),P}}return d}function Gre(n,s){const c=n.instantiations||(n.instantiations=new Map),_=Hf(s);let d=c.get(_);return d||c.set(_,d=pJ(n,s)),d}function pJ(n,s){return Pk(n,KXe(n,s),!0)}function KXe(n,s){return uu(n.typeParameters,s)}function VE(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=eQe(n)):n}function eQe(n){return Pk(n,gCe(n.typeParameters),!0)}function tQe(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=nQe(n)):n}function nQe(n){return zE(n,an(n.typeParameters,s=>s.target&&!s_(s.target)?s.target:s),Kn(n.declaration))}function rQe(n){const s=n.typeParameters;if(s){if(n.baseSignatureCache)return n.baseSignatureCache;const c=gCe(s),_=uu(s,an(s,h=>s_(h)||jt));let d=an(s,h=>zi(h,_)||jt);for(let h=0;h{mJ(d)&&!Jre(s,d)&&s.push(rm(d,c.type?ai(c.type):ke,Iu(c,64),c))})}return s}return Ve}function mJ(n){return!!(n.flags&4108)||Ak(n)||!!(n.flags&2097152)&&!iC(n)&&dt(n.types,mJ)}function Xre(n){return Hi(zr(n.symbol&&n.symbol.declarations,Go),t6)[0]}function m4e(n,s){var c;let _;if((c=n.symbol)!=null&&c.declarations){for(const d of n.symbol.declarations)if(d.parent.kind===195){const[h=d.parent,T]=f_e(d.parent.parent);if(T.kind===183&&!s){const P=T,O=gae(P);if(O){const $=P.typeArguments.indexOf(h);if($()=>mrt(P,O,Ze))),Se=zi(re,ce);Se!==n&&(_=dn(_,Se))}}}}else if(T.kind===169&&T.dotDotDotToken||T.kind===191||T.kind===202&&T.dotDotDotToken)_=dn(_,$l(jt));else if(T.kind===204)_=dn(_,F);else if(T.kind===168&&T.parent.kind===200)_=dn(_,Ms);else if(T.kind===200&&T.type&&lo(T.type)===d.parent&&T.parent.kind===194&&T.parent.extendsType===T&&T.parent.checkType.kind===200&&T.parent.checkType.type){const P=T.parent.checkType,O=ai(P.type);_=dn(_,zi(O,Sv(ob(vr(P.typeParameter)),P.typeParameter.constraint?ai(P.typeParameter.constraint):Ms)))}}}return _&&oa(_)}function eC(n){if(!n.constraint)if(n.target){const s=s_(n.target);n.constraint=s?zi(s,n.mapper):Ba}else{const s=Xre(n);if(!s)n.constraint=m4e(n)||Ba;else{let c=ai(s);c.flags&1&&!q(c)&&(c=s.parent.parent.kind===200?Ms:jt),n.constraint=c}}return n.constraint===Ba?void 0:n.constraint}function g4e(n){const s=lc(n.symbol,168),c=od(s.parent)?H9(s.parent):s.parent;return c&&Cu(c)}function Hf(n){let s="";if(n){const c=n.length;let _=0;for(;_1&&(s+=":"+h),_+=h}}return s}function sx(n,s){return n?`@${ya(n)}`+(s?`:${Hf(s)}`:""):""}function aP(n,s){let c=0;for(const _ of n)(s===void 0||!(_.flags&s))&&(c|=Rr(_));return c&458752}function Ek(n,s){return dt(s)&&n===Rs?jt:k0(n,s)}function k0(n,s){const c=Hf(s);let _=n.instantiations.get(c);return _||(_=Jf(4,n.symbol),n.instantiations.set(c,_),_.objectFlags|=s?aP(s):0,_.target=n,_.resolvedTypeArguments=s),_}function h4e(n){const s=kg(n.flags,n.symbol);return s.objectFlags=n.objectFlags,s.target=n.target,s.resolvedTypeArguments=n.resolvedTypeArguments,s}function Qre(n,s,c,_,d){if(!_){_=ox(s);const T=Nk(_);d=c?w0(T,c):T}const h=Jf(4,n.symbol);return h.target=n,h.node=s,h.mapper=c,h.aliasSymbol=_,h.aliasTypeArguments=d,h}function uo(n){var s,c;if(!n.resolvedTypeArguments){if(!Vf(n,6))return((s=n.target.localTypeParameters)==null?void 0:s.map(()=>$e))||Ve;const _=n.node,d=_?_.kind===183?es(n.target.outerTypeParameters,Az(_,n.target.localTypeParameters)):_.kind===188?[ai(_.elementType)]:an(_.elements,ai):Ve;Kd()?n.resolvedTypeArguments=n.mapper?w0(d,n.mapper):d:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>$e))||Ve,Fe(n.node||D,n.target.symbol?p.Type_arguments_for_0_circularly_reference_themselves:p.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&ii(n.target.symbol)))}return n.resolvedTypeArguments}function C0(n){return Nn(n.target.typeParameters)}function y4e(n,s){const c=mo(Ma(s)),_=c.localTypeParameters;if(_){const d=Nn(n.typeArguments),h=nm(_),T=Kn(n);if(!(!fe&&T)&&(d_.length)){const $=T&&rh(n)&&!s4(n.parent),re=h===_.length?$?p.Expected_0_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_1_type_argument_s:$?p.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_between_1_and_2_type_arguments,ce=Cn(c,void 0,2);if(Fe(n,re,ce,h,_.length),!T)return $e}if(n.kind===183&&B4e(n,Nn(n.typeArguments)!==_.length))return Qre(c,n,void 0);const O=es(c.outerTypeParameters,Fh(oP(n),_,h,T));return k0(c,O)}return vv(n,s)?c:$e}function wk(n,s,c,_){const d=mo(n);if(d===_t&&QA.has(n.escapedName)&&s&&s.length===1)return ax(n,s[0]);const h=Mi(n),T=h.typeParameters,P=Hf(s)+sx(c,_);let O=h.instantiations.get(P);return O||h.instantiations.set(P,O=vCe(d,uu(T,Fh(s,T,nm(T),Kn(n.valueDeclaration))),c,_)),O}function iQe(n,s){if(rc(s)&1048576){const d=oP(n),h=sx(s,d);let T=Me.get(h);return T||(T=Uo(1,"error"),T.aliasSymbol=s,T.aliasTypeArguments=d,Me.set(h,T)),T}const c=mo(s),_=Mi(s).typeParameters;if(_){const d=Nn(n.typeArguments),h=nm(_);if(d_.length)return Fe(n,h===_.length?p.Generic_type_0_requires_1_type_argument_s:p.Generic_type_0_requires_between_1_and_2_type_arguments,ii(s),h,_.length),$e;const T=ox(n);let P=T&&(v4e(s)||!v4e(T))?T:void 0,O;if(P)O=Nk(P);else if(d9(n)){const $=Dk(n,2097152,!0);if($&&$!==it){const re=hl($);re&&re.flags&524288&&(P=re,O=oP(n)||(_?[]:void 0))}}return wk(s,oP(n),P,O)}return vv(n,s)?c:$e}function v4e(n){var s;const c=(s=n.declarations)==null?void 0:s.find(nD);return!!(c&&df(c))}function sQe(n){switch(n.kind){case 183:return n.typeName;case 233:const s=n.expression;if(Tc(s))return s}}function b4e(n){return n.parent?`${b4e(n.parent)}.${n.escapedName}`:n.escapedName}function gJ(n){const c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){const _=n.kind===166?gJ(n.left):n.kind===211?gJ(n.expression):void 0,d=_?`${b4e(_)}.${c}`:c;let h=ae.get(d);return h||(ae.set(d,h=Pa(524288,c,1048576)),h.parent=_,h.links.declaredType=Ae),h}return it}function Dk(n,s,c){const _=sQe(n);if(!_)return it;const d=Qo(_,s,c);return d&&d!==it?d:c?it:gJ(_)}function hJ(n,s){if(s===it)return $e;if(s=lk(s)||s,s.flags&96)return y4e(n,s);if(s.flags&524288)return iQe(n,s);const c=R6e(s);if(c)return vv(n,s)?j_(c):$e;if(s.flags&111551&&yJ(n)){const _=aQe(n,s);return _||(Dk(n,788968),$n(s))}return $e}function aQe(n,s){const c=jr(n);if(!c.resolvedJSDocType){const _=$n(s);let d=_;if(s.valueDeclaration){const h=n.kind===205&&n.qualifier;_.symbol&&_.symbol!==s&&h&&(d=hJ(n,_.symbol))}c.resolvedJSDocType=d}return c.resolvedJSDocType}function Yre(n,s){if(s.flags&3||s===n||n.flags&1)return n;const c=`${S_(n)}>${S_(s)}`,_=Gt.get(c);if(_)return _;const d=_f(33554432);return d.baseType=n,d.constraint=s,Gt.set(c,d),d}function Zre(n){return oa([n.constraint,n.baseType])}function T4e(n){return n.kind===189&&n.elements.length===1}function x4e(n,s,c){return T4e(s)&&T4e(c)?x4e(n,s.elements[0],c.elements[0]):Bh(ai(s))===Bh(n)?ai(c):void 0}function oQe(n,s){let c,_=!0;for(;s&&!Fi(s)&&s.kind!==327;){const d=s.parent;if(d.kind===169&&(_=!_),(_||n.flags&8650752)&&d.kind===194&&s===d.trueType){const h=x4e(n,d.checkType,d.extendsType);h&&(c=dn(c,h))}else if(n.flags&262144&&d.kind===200&&s===d.type){const h=ai(d);if(Up(h)===Bh(n)){const T=PJ(h);if(T){const P=s_(T);P&&Df(P,Cv)&&(c=dn(c,Jr([ye,tc])))}}}s=d}return c?Yre(n,oa(c)):n}function yJ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function vv(n,s){return n.typeArguments?(Fe(n,p.Type_0_is_not_generic,s?ii(s):n.typeName?no(n.typeName):XA),!1):!0}function S4e(n){if(we(n.typeName)){const s=n.typeArguments;switch(n.typeName.escapedText){case"String":return vv(n),F;case"Number":return vv(n),ye;case"Boolean":return vv(n),kn;case"Void":return vv(n),ar;case"Undefined":return vv(n),Nt;case"Null":return vv(n),W;case"Function":case"function":return vv(n),Vo;case"array":return(!s||!s.length)&&!fe?qe:void 0;case"promise":return(!s||!s.length)&&!fe?WP(ke):void 0;case"Object":if(s&&s.length===2){if(J9(n)){const c=ai(s[0]),_=ai(s[1]),d=c===F||c===ye?[rm(c,_,!1)]:Ve;return gc(void 0,U,Ve,Ve,d)}return ke}return vv(n),fe?void 0:ke}}}function cQe(n){const s=ai(n.type);return H?WJ(s,65536):s}function Kre(n){const s=jr(n);if(!s.resolvedType){if(qg(n)&&Fb(n.parent))return s.resolvedSymbol=it,s.resolvedType=Bc(n.parent.expression);let c,_;const d=788968;yJ(n)&&(_=S4e(n),_||(c=Dk(n,d,!0),c===it?c=Dk(n,d|111551):Dk(n,d),_=hJ(n,c))),_||(c=Dk(n,d),_=hJ(n,c)),s.resolvedSymbol=c,s.resolvedType=_}return s.resolvedType}function oP(n){return an(n.typeArguments,ai)}function k4e(n){const s=jr(n);if(!s.resolvedType){const c=V8e(n);s.resolvedType=j_(Wu(c))}return s.resolvedType}function C4e(n,s){function c(d){const h=d.declarations;if(h)for(const T of h)switch(T.kind){case 263:case 264:case 266:return T}}if(!n)return s?Rs:Li;const _=mo(n);return _.flags&524288?Nn(_.typeParameters)!==s?(Fe(c(n),p.Global_type_0_must_have_1_type_parameter_s,bc(n),s),s?Rs:Li):_:(Fe(c(n),p.Global_type_0_must_be_a_class_or_interface_type,bc(n)),s?Rs:Li)}function eie(n,s){return tC(n,111551,s?p.Cannot_find_global_value_0:void 0)}function E4e(n,s){return tC(n,788968,s?p.Cannot_find_global_type_0:void 0)}function vJ(n,s,c){const _=tC(n,788968,c?p.Cannot_find_global_type_0:void 0);if(_&&(mo(_),Nn(Mi(_).typeParameters)!==s)){const d=_.declarations&&Or(_.declarations,Dp);Fe(d,p.Global_type_0_must_have_1_type_parameter_s,bc(_),s);return}return _}function tC(n,s,c){return Lc(void 0,n,s,c,n,!1,!1,!1)}function Rc(n,s,c){const _=E4e(n,c);return _||c?C4e(_,s):void 0}function lQe(){return _i||(_i=Rc("TypedPropertyDescriptor",1,!0)||Rs)}function _Qe(){return Be||(Be=Rc("TemplateStringsArray",0,!0)||Li)}function w4e(){return At||(At=Rc("ImportMeta",0,!0)||Li)}function D4e(){if(!Jn){const n=Pa(0,"ImportMetaExpression"),s=w4e(),c=Pa(4,"meta",8);c.parent=n,c.links.type=s;const _=Vs([c]);n.members=_,Jn=gc(n,_,Ve,Ve,Ve)}return Jn}function A4e(n){return xs||(xs=Rc("ImportCallOptions",0,n))||Li}function N4e(n){return On||(On=eie("Symbol",n))}function uQe(n){return Cr||(Cr=E4e("SymbolConstructor",n))}function P4e(){return qr||(qr=Rc("Symbol",0,!1))||Li}function cP(n){return hs||(hs=Rc("Promise",1,n))||Rs}function I4e(n){return va||(va=Rc("PromiseLike",1,n))||Rs}function tie(n){return Fo||(Fo=eie("Promise",n))}function fQe(n){return Ro||(Ro=Rc("PromiseConstructorLike",0,n))||Li}function bJ(n){return ud||(ud=Rc("AsyncIterable",1,n))||Rs}function pQe(n){return w1||(w1=Rc("AsyncIterator",3,n))||Rs}function dQe(n){return qd||(qd=Rc("AsyncIterableIterator",1,n))||Rs}function mQe(n){return J||(J=Rc("AsyncGenerator",3,n))||Rs}function nie(n){return Zc||(Zc=Rc("Iterable",1,n))||Rs}function gQe(n){return Oc||(Oc=Rc("Iterator",3,n))||Rs}function hQe(n){return il||(il=Rc("IterableIterator",1,n))||Rs}function yQe(n){return Ml||(Ml=Rc("Generator",3,n))||Rs}function vQe(n){return sl||(sl=Rc("IteratorYieldResult",1,n))||Rs}function bQe(n){return ju||(ju=Rc("IteratorReturnResult",1,n))||Rs}function O4e(n){return mi||(mi=Rc("Disposable",0,n))||Li}function TQe(n){return is||(is=Rc("AsyncDisposable",0,n))||Li}function F4e(n,s=0){const c=tC(n,788968,void 0);return c&&C4e(c,s)}function xQe(){return Ss||(Ss=vJ("Extract",2,!0)||it),Ss===it?void 0:Ss}function SQe(){return Lo||(Lo=vJ("Omit",2,!0)||it),Lo===it?void 0:Lo}function rie(n){return sa||(sa=vJ("Awaited",1,n)||(n?it:void 0)),sa===it?void 0:sa}function kQe(){return xl||(xl=Rc("BigInt",0,!1))||Li}function CQe(n){var s;return(s=fd!=null?fd:fd=Rc("ClassDecoratorContext",1,n))!=null?s:Rs}function EQe(n){var s;return(s=Hd!=null?Hd:Hd=Rc("ClassMethodDecoratorContext",2,n))!=null?s:Rs}function wQe(n){var s;return(s=Lp!=null?Lp:Lp=Rc("ClassGetterDecoratorContext",2,n))!=null?s:Rs}function DQe(n){var s;return(s=Ee!=null?Ee:Ee=Rc("ClassSetterDecoratorContext",2,n))!=null?s:Rs}function AQe(n){var s;return(s=je!=null?je:je=Rc("ClassAccessorDecoratorContext",2,n))!=null?s:Rs}function NQe(n){var s;return(s=Ye!=null?Ye:Ye=Rc("ClassAccessorDecoratorTarget",2,n))!=null?s:Rs}function PQe(n){var s;return(s=Mt!=null?Mt:Mt=Rc("ClassAccessorDecoratorResult",2,n))!=null?s:Rs}function IQe(n){var s;return(s=rn!=null?rn:rn=Rc("ClassFieldDecoratorContext",2,n))!=null?s:Rs}function OQe(){return cf||(cf=eie("NaN",!1))}function FQe(){return y_||(y_=vJ("Record",2,!0)||it),y_===it?void 0:y_}function UE(n,s){return n!==Rs?k0(n,s):Li}function L4e(n){return UE(lQe(),[n])}function M4e(n){return UE(nie(!0),[n])}function $l(n,s){return UE(s?vn:vt,[n])}function iie(n){switch(n.kind){case 190:return 2;case 191:return R4e(n);case 202:return n.questionToken?2:n.dotDotDotToken?R4e(n):1;default:return 1}}function R4e(n){return fP(n.type)?4:8}function LQe(n){const s=BQe(n.parent);if(fP(n))return s?vn:vt;const _=an(n.elements,iie);return sie(_,s,an(n.elements,MQe))}function MQe(n){return r8(n)||rs(n)?n:void 0}function B4e(n,s){return!!ox(n)||j4e(n)&&(n.kind===188?Lh(n.elementType):n.kind===189?dt(n.elements,Lh):s||dt(n.typeArguments,Lh))}function j4e(n){const s=n.parent;switch(s.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return j4e(s);case 265:return!0}return!1}function Lh(n){switch(n.kind){case 183:return yJ(n)||!!(Dk(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Lh(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Lh(n.type);case 191:return n.type.kind!==188||Lh(n.type.elementType);case 192:case 193:return dt(n.types,Lh);case 199:return Lh(n.objectType)||Lh(n.indexType);case 194:return Lh(n.checkType)||Lh(n.extendsType)||Lh(n.trueType)||Lh(n.falseType)}return!1}function RQe(n){const s=jr(n);if(!s.resolvedType){const c=LQe(n);if(c===Rs)s.resolvedType=Li;else if(!(n.kind===189&&dt(n.elements,_=>!!(iie(_)&8)))&&B4e(n))s.resolvedType=n.kind===189&&n.elements.length===0?c:Qre(c,n,void 0);else{const _=n.kind===188?[ai(n.elementType)]:an(n.elements,ai);s.resolvedType=aie(c,_)}}return s.resolvedType}function BQe(n){return uS(n)&&n.operator===148}function Hp(n,s,c=!1,_=[]){const d=sie(s||an(n,h=>1),c,_);return d===Rs?Li:n.length?aie(d,n):d}function sie(n,s,c){if(n.length===1&&n[0]&4)return s?vn:vt;const _=Hi(c,T=>T?Ra(T):void 0),d=an(n,T=>T&1?"#":T&2?"?":T&4?".":"*").join()+(s?"R":"")+(_.length?","+_.join(","):"");let h=ki.get(d);return h||ki.set(d,h=jQe(n,s,c)),h}function jQe(n,s,c){const _=n.length,d=M0(n,ce=>!!(ce&9));let h;const T=[];let P=0;if(_){h=new Array(_);for(let ce=0;ce<_;ce++){const Se=h[ce]=zf(),Te=n[ce];if(P|=Te,!(P&12)){const Ze=Pa(4|(Te&2?16777216:0),""+ce,s?8:0);Ze.links.tupleLabelDeclaration=c==null?void 0:c[ce],Ze.links.type=Se,T.push(Ze)}}}const O=T.length,$=Pa(4,"length",s?8:0);if(P&12)$.links.type=ye;else{const ce=[];for(let Se=d;Se<=_;Se++)ce.push(Gp(Se));$.links.type=Jr(ce)}T.push($);const re=Jf(12);return re.typeParameters=h,re.outerTypeParameters=void 0,re.localTypeParameters=h,re.instantiations=new Map,re.instantiations.set(Hf(re.typeParameters),re),re.target=re,re.resolvedTypeArguments=re.typeParameters,re.thisType=zf(),re.thisType.isThisType=!0,re.thisType.constraint=re,re.declaredProperties=T,re.declaredCallSignatures=Ve,re.declaredConstructSignatures=Ve,re.declaredIndexInfos=Ve,re.elementFlags=n,re.minLength=d,re.fixedLength=O,re.hasRestElement=!!(P&12),re.combinedFlags=P,re.readonly=s,re.labeledElementDeclarations=c,re}function aie(n,s){return n.objectFlags&8?oie(n,s):k0(n,s)}function oie(n,s){var c,_,d;if(!(n.combinedFlags&14))return k0(n,s);if(n.combinedFlags&8){const Te=qc(s,(Ze,St)=>!!(n.elementFlags[St]&8&&Ze.flags&1179648));if(Te>=0)return lP(an(s,(Ze,St)=>n.elementFlags[St]&8?Ze:jt))?xo(s[Te],Ze=>oie(n,uV(s,Te,Ze))):$e}const h=[],T=[],P=[];let O=-1,$=-1,re=-1;for(let Te=0;Te=1e4)return Fe(D,Km(D)?p.Type_produces_a_tuple_type_that_is_too_large_to_represent:p.Expression_produces_a_tuple_type_that_is_too_large_to_represent),$e;pn(Zt,(_n,Gn)=>{var An;return Se(_n,Ze.target.elementFlags[Gn],(An=Ze.target.labeledElementDeclarations)==null?void 0:An[Gn])})}else Se(D0(Ze)&&Q1(Ze,ye)||$e,4,(_=n.labeledElementDeclarations)==null?void 0:_[Te]);else Se(Ze,St,(d=n.labeledElementDeclarations)==null?void 0:d[Te])}for(let Te=0;Te=0&&$T[$+Ze]&8?Eu(Te,ye):Te)),h.splice($+1,re-$),T.splice($+1,re-$),P.splice($+1,re-$));const ce=sie(T,n.readonly,P);return ce===Rs?Li:T.length?k0(ce,h):ce;function Se(Te,Ze,St){Ze&1&&(O=T.length),Ze&4&&$<0&&($=T.length),Ze&6&&(re=T.length),h.push(Ze&2?Sl(Te,!0):Te),T.push(Ze),P.push(St)}}function nC(n,s,c=0){const _=n.target,d=C0(n)-c;return s>_.fixedLength?CZe(n)||Hp(Ve):Hp(uo(n).slice(s,d),_.elementFlags.slice(s,d),!1,_.labeledElementDeclarations&&_.labeledElementDeclarations.slice(s,d))}function J4e(n){return Jr(dn(soe(n.target.fixedLength,s=>K_(""+s)),im(n.target.readonly?vn:vt)))}function JQe(n,s){const c=qc(n.elementFlags,_=>!(_&s));return c>=0?c:n.elementFlags.length}function WE(n,s){return n.elementFlags.length-cI(n.elementFlags,c=>!(c&s))-1}function cie(n){return n.fixedLength+WE(n,3)}function Z1(n){const s=uo(n),c=C0(n);return s.length===c?s:s.slice(0,c)}function zQe(n){return Sl(ai(n.type),!0)}function S_(n){return n.id}function Mh(n,s){return Gh(n,s,S_,Co)>=0}function lie(n,s){const c=Gh(n,s,S_,Co);return c<0?(n.splice(~c,0,s),!0):!1}function VQe(n,s,c){const _=c.flags;if(!(_&131072))if(s|=_&473694207,_&465829888&&(s|=33554432),c===K&&(s|=8388608),!H&&_&98304)Rr(c)&65536||(s|=4194304);else{const d=n.length,h=d&&c.id>n[d-1].id?~d:Gh(n,c,S_,Co);h<0&&n.splice(~h,0,c)}return s}function z4e(n,s,c){let _;for(const d of c)d!==_&&(s=d.flags&1048576?z4e(n,s|(HQe(d)?1048576:0),d.types):VQe(n,s,d),_=d);return s}function UQe(n,s){var c;if(n.length<2)return n;const _=Hf(n),d=Sn.get(_);if(d)return d;const h=s&&dt(n,$=>!!($.flags&524288)&&!ff($)&&Nie(Wp($))),T=n.length;let P=T,O=0;for(;P>0;){P--;const $=n[P];if(h||$.flags&469499904){if($.flags&262144&&Ag($).flags&1048576){bd($,Jr(an(n,Se=>Se===$?jn:Se)),bf)&&_y(n,P);continue}const re=$.flags&61603840?Or(Va($),Se=>$p($n(Se))):void 0,ce=re&&j_($n(re));for(const Se of n)if($!==Se){if(O===1e5&&O/(T-P)*T>1e6){(c=li)==null||c.instant(li.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(Ze=>Ze.id)}),Fe(D,p.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(O++,re&&Se.flags&61603840){const Te=Wc(Se,re.escapedName);if(Te&&$p(Te)&&j_(Te)!==ce)continue}if(bd($,Se,bf)&&(!(Rr(ab($))&1)||!(Rr(ab(Se))&1)||kv($,Se))){_y(n,P);break}}}}return Sn.set(_,n),n}function WQe(n,s,c){let _=n.length;for(;_>0;){_--;const d=n[_],h=d.flags;(h&402653312&&s&4||h&256&&s&8||h&2048&&s&64||h&8192&&s&4096||c&&h&32768&&s&16384||xv(d)&&Mh(n,d.regularType))&&_y(n,_)}}function qQe(n){const s=zr(n,c=>!!(c.flags&134217728)&&Ak(c));if(s.length){let c=n.length;for(;c>0;){c--;const _=n[c];_.flags&128&&dt(s,d=>tse(_,d))&&_y(n,c)}}}function HQe(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function V4e(n,s){for(const c of s)if(c.flags&1048576){const _=c.origin;c.aliasSymbol||_&&!(_.flags&1048576)?$f(n,c):_&&_.flags&1048576&&V4e(n,_.types)}}function _ie(n,s){const c=tx(n);return c.types=s,c}function Jr(n,s=1,c,_,d){if(n.length===0)return jn;if(n.length===1)return n[0];if(n.length===2&&!d&&(n[0].flags&1048576||n[1].flags&1048576)){const h=s===0?"N":s===2?"S":"L",T=n[0].id=2&&h[0]===Nt&&h[1]===z&&_y(h,1),(T&402664352||T&16384&&T&32768)&&WQe(h,T,!!(s&2)),T&128&&T&134217728&&qQe(h),s===2&&(h=UQe(h,!!(T&524288)),!h))return $e;if(h.length===0)return T&65536?T&4194304?W:ge:T&32768?T&4194304?Nt:hi:jn}if(!d&&T&1048576){const O=[];V4e(O,n);const $=[];for(const ce of h)dt(O,Se=>Mh(Se.types,ce))||$.push(ce);if(!c&&O.length===1&&$.length===0)return O[0];if(E_(O,(ce,Se)=>ce+Se.types.length,0)+$.length===h.length){for(const ce of O)lie($,ce);d=_ie(1048576,$)}}const P=(T&36323331?0:32768)|(T&2097152?16777216:0);return fie(h,P,c,_,d)}function GQe(n,s){let c;const _=[];for(const h of n){const T=qf(h);if(T){if(T.kind!==0&&T.kind!==1||c&&!uie(c,T))return;c=T,_.push(T.type)}else{const P=s!==2097152?Ua(h):void 0;if(P!==We&&P!==Tt)return}}if(!c)return;const d=u4e(_,s);return sP(c.kind,c.parameterName,c.parameterIndex,d)}function uie(n,s){return n.kind===s.kind&&n.parameterIndex===s.parameterIndex}function fie(n,s,c,_,d){if(n.length===0)return jn;if(n.length===1)return n[0];const T=(d?d.flags&1048576?`|${Hf(d.types)}`:d.flags&2097152?`&${Hf(d.types)}`:`#${d.type.id}|${Hf(n)}`:Hf(n))+sx(c,_);let P=Nr.get(T);return P||(P=_f(1048576),P.objectFlags=s|aP(n,98304),P.types=n,P.origin=d,P.aliasSymbol=c,P.aliasTypeArguments=_,n.length===2&&n[0].flags&512&&n[1].flags&512&&(P.flags|=16,P.intrinsicName="boolean"),Nr.set(T,P)),P}function $Qe(n){const s=jr(n);if(!s.resolvedType){const c=ox(n);s.resolvedType=Jr(an(n.types,ai),1,c,Nk(c))}return s.resolvedType}function XQe(n,s,c){const _=c.flags;return _&2097152?W4e(n,s,c.types):(Og(c)?s&16777216||(s|=16777216,n.set(c.id.toString(),c)):(_&3?c===K&&(s|=8388608):(H||!(_&98304))&&(c===z&&(s|=262144,c=Nt),n.has(c.id.toString())||(c.flags&109472&&s&109472&&(s|=67108864),n.set(c.id.toString(),c))),s|=_&473694207),s)}function W4e(n,s,c){for(const _ of c)s=XQe(n,s,j_(_));return s}function QQe(n,s){let c=n.length;for(;c>0;){c--;const _=n[c];(_.flags&4&&s&402653312||_.flags&8&&s&256||_.flags&64&&s&2048||_.flags&4096&&s&8192||_.flags&16384&&s&32768||Og(_)&&s&470302716)&&_y(n,c)}}function YQe(n,s){for(const c of n)if(!Mh(c.types,s)){const _=s.flags&128?F:s.flags&288?ye:s.flags&2048?Oe:s.flags&8192?ir:void 0;if(!_||!Mh(c.types,_))return!1}return!0}function ZQe(n){let s=n.length;const c=zr(n,_=>!!(_.flags&128));for(;s>0;){s--;const _=n[s];if(!!(_.flags&134217728)){for(const d of c)if(Jh(d,_)){_y(n,s);break}else if(Ak(_))return!0}}return!1}function q4e(n,s){for(let c=0;c!(_.flags&s))}function KQe(n){let s;const c=qc(n,T=>!!(Rr(T)&32768));if(c<0)return!1;let _=c+1;for(;_!!($.flags&1048576&&$.types[0].flags&32768))){const $=dt(T,KE)?z:Nt;q4e(T,32768),O=Jr([oa(T),$],1,s,c)}else if(Xi(T,$=>!!($.flags&1048576&&($.types[0].flags&65536||$.types[1].flags&65536))))q4e(T,65536),O=Jr([oa(T),W],1,s,c);else{if(!lP(T))return $e;const $=tYe(T),re=dt($,ce=>!!(ce.flags&2097152))&&pie($)>pie(T)?_ie(2097152,T):void 0;O=Jr($,1,s,c,re)}else O=eYe(T,s,c);ur.set(P,O)}return O}function H4e(n){return E_(n,(s,c)=>c.flags&1048576?s*c.types.length:c.flags&131072?0:s,1)}function lP(n){var s;const c=H4e(n);return c>=1e5?((s=li)==null||s.instant(li.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(_=>_.id),size:c}),Fe(D,p.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function tYe(n){const s=H4e(n),c=[];for(let _=0;_=0;P--)if(n[P].flags&1048576){const O=n[P].types,$=O.length;d[P]=O[h%$],h=Math.floor(h/$)}const T=oa(d);T.flags&131072||c.push(T)}return c}function G4e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?G4e(n.origin):pie(n.types)}function pie(n){return E_(n,(s,c)=>s+G4e(c),0)}function $4e(n,s){return!!(n.flags&76)&&s===L_}function nYe(n){const s=jr(n);if(!s.resolvedType){const c=ox(n),_=an(n.types,ai),d=_.length===2&&($4e(_[0],_[1])||$4e(_[1],_[0]));s.resolvedType=oa(_,c,Nk(c),d)}return s.resolvedType}function X4e(n,s){const c=_f(4194304);return c.type=n,c.indexFlags=s,c}function rYe(n){const s=tx(4194304);return s.type=n,s}function Q4e(n,s){return s&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=X4e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=X4e(n,0))}function iYe(n,s){const c=Up(n),_=Wf(n),d=S0(n.target||n);if(!d&&!(s&2))return _;const h=[];if(BE(n)){if(K1(_))return Q4e(n,s);{const O=Z_(xk(n));Nre(O,8576,!!(s&1),P)}}else yb(tP(_),P);K1(_)&&yb(_,P);const T=s&2?ol(Jr(h),O=>!(O.flags&5)):Jr(h);if(T.flags&1048576&&_.flags&1048576&&Hf(T.types)===Hf(_.types))return _;return T;function P(O){const $=d?zi(d,GE(n.mapper,c,O)):O;h.push($===F?Yr:$)}}function sYe(n){const s=Up(n);return c(S0(n)||s);function c(_){return _.flags&470810623?!0:_.flags&16777216?_.root.isDistributive&&_.checkType===s:_.flags&137363456?Xi(_.types,c):_.flags&8388608?c(_.objectType)&&c(_.indexType):_.flags&33554432?c(_.baseType)&&c(_.constraint):_.flags&268435456?c(_.type):!1}}function E0(n){if(Ei(n))return jn;if(Ou(n))return j_(Qi(n));if(Ga(n))return j_(Bm(n));const s=xy(n);return s!==void 0?K_(Oi(s)):nt(n)?j_(Qi(n)):jn}function rC(n,s,c){if(c||!(Lf(n)&24)){let _=Mi(uJ(n)).nameType;if(!_){const d=os(n.valueDeclaration);_=n.escapedName==="default"?K_("default"):d&&E0(d)||(fD(n)?void 0:K_(bc(n)))}if(_&&_.flags&s)return _}return jn}function Y4e(n,s){return!!(n.flags&s||n.flags&2097152&&dt(n.types,c=>Y4e(c,s)))}function aYe(n,s,c){const _=c&&(Rr(n)&7||n.aliasSymbol)?rYe(n):void 0,d=an(Va(n),T=>rC(T,s)),h=an(x_(n),T=>T!==yn&&Y4e(T.keyType,s)?T.keyType===F&&s&8?Yr:T.keyType:jn);return Jr(es(d,h),1,void 0,void 0,_)}function Z4e(n,s=0){return!!(n.flags&58982400||A0(n)||ff(n)&&!sYe(n)||n.flags&1048576&&!(s&4)&&Bre(n)||n.flags&2097152&&Yo(n,465829888)&&dt(n.types,Og))}function im(n,s=Xe){return n=qp(n),Z4e(n,s)?Q4e(n,s):n.flags&1048576?oa(an(n.types,c=>im(c,s))):n.flags&2097152?Jr(an(n.types,c=>im(c,s))):Rr(n)&32?iYe(n,s):n===K?K:n.flags&2?jn:n.flags&131073?Ms:aYe(n,(s&2?128:402653316)|(s&1?0:12584),s===Xe)}function K4e(n){if(De)return n;const s=xQe();return s?wk(s,[n,F]):F}function oYe(n){const s=K4e(im(n));return s.flags&131072?F:s}function cYe(n){const s=jr(n);if(!s.resolvedType)switch(n.operator){case 143:s.resolvedType=im(ai(n.type));break;case 158:s.resolvedType=n.type.kind===155?Tie(aD(n.parent)):$e;break;case 148:s.resolvedType=ai(n.type);break;default:E.assertNever(n.operator)}return s.resolvedType}function lYe(n){const s=jr(n);return s.resolvedType||(s.resolvedType=fb([n.head.text,...an(n.templateSpans,c=>c.literal.text)],an(n.templateSpans,c=>ai(c.type)))),s.resolvedType}function fb(n,s){const c=qc(s,$=>!!($.flags&1179648));if(c>=0)return lP(s)?xo(s[c],$=>fb(n,uV(s,c,$))):$e;if(ys(s,K))return K;const _=[],d=[];let h=n[0];if(!O(n,s))return F;if(_.length===0)return K_(h);if(d.push(h),Xi(d,$=>$==="")){if(Xi(_,$=>!!($.flags&4)))return F;if(_.length===1&&Ak(_[0]))return _[0]}const T=`${Hf(_)}|${an(d,$=>$.length).join(",")}|${d.join("")}`;let P=wi.get(T);return P||wi.set(T,P=uYe(d,_)),P;function O($,re){for(let ce=0;ceax(n,c)):s.flags&128?K_(eCe(n,s.value)):s.flags&134217728?fb(...fYe(n,s.texts,s.types)):s.flags&268435456&&n===s.symbol?s:s.flags&268435461||K1(s)?tCe(n,s):_P(s)?tCe(n,fb(["",""],[s])):s}function eCe(n,s){switch(QA.get(n.escapedName)){case 0:return s.toUpperCase();case 1:return s.toLowerCase();case 2:return s.charAt(0).toUpperCase()+s.slice(1);case 3:return s.charAt(0).toLowerCase()+s.slice(1)}return s}function fYe(n,s,c){switch(QA.get(n.escapedName)){case 0:return[s.map(_=>_.toUpperCase()),c.map(_=>ax(n,_))];case 1:return[s.map(_=>_.toLowerCase()),c.map(_=>ax(n,_))];case 2:return[s[0]===""?s:[s[0].charAt(0).toUpperCase()+s[0].slice(1),...s.slice(1)],s[0]===""?[ax(n,c[0]),...c.slice(1)]:c];case 3:return[s[0]===""?s:[s[0].charAt(0).toLowerCase()+s[0].slice(1),...s.slice(1)],s[0]===""?[ax(n,c[0]),...c.slice(1)]:c]}return[s,c]}function tCe(n,s){const c=`${ya(n)},${S_(s)}`;let _=Yt.get(c);return _||Yt.set(c,_=pYe(n,s)),_}function pYe(n,s){const c=kg(268435456,n);return c.type=s,c}function dYe(n,s,c,_,d){const h=_f(8388608);return h.objectType=n,h.indexType=s,h.accessFlags=c,h.aliasSymbol=_,h.aliasTypeArguments=d,h}function qE(n){if(fe)return!1;if(Rr(n)&4096)return!0;if(n.flags&1048576)return Xi(n.types,qE);if(n.flags&2097152)return dt(n.types,qE);if(n.flags&465829888){const s=Fre(n);return s!==n&&qE(s)}return!1}function TJ(n,s){return ip(n)?sp(n):s&&Jc(s)?xy(s):void 0}function die(n,s){if(s.flags&8208){const c=In(n.parent,_=>!Mo(_))||n.parent;return Qv(c)?Ym(c)&&we(n)&&l3e(c,n):Xi(s.declarations,_=>!Cs(_)||b_(_))}return!0}function nCe(n,s,c,_,d,h){var $;const T=d&&d.kind===212?d:void 0,P=d&&Ei(d)?void 0:TJ(c,d);if(P!==void 0){if(h&256)return Av(s,P)||ke;const re=Ws(s,P);if(re){if(h&64&&d&&re.declarations&&fp(re)&&die(d,re)){const Se=($=T==null?void 0:T.argumentExpression)!=null?$:fS(d)?d.indexType:d;f0(Se,re.declarations,P)}if(T){if(RP(re,T,h8e(T.expression,s.symbol)),iEe(T,re,Vb(T))){Fe(T.argumentExpression,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ii(re));return}if(h&8&&(jr(d).resolvedSymbol=re),_8e(T,re))return ft}const ce=$n(re);return T&&Vb(T)!==1?Uh(T,ce):d&&fS(d)&&KE(ce)?Jr([ce,Nt]):ce}if(Df(s,la)&&sg(P)){const ce=+P;if(d&&Df(s,Se=>!Se.target.hasRestElement)&&!(h&16)){const Se=mie(d);if(la(s)){if(ce<0)return Fe(Se,p.A_tuple_type_cannot_be_indexed_with_a_negative_value),Nt;Fe(Se,p.Tuple_type_0_of_length_1_has_no_element_at_index_2,Cn(s),C0(s),Oi(P))}else Fe(Se,p.Property_0_does_not_exist_on_type_1,Oi(P),Cn(s))}if(ce>=0)return O(Rm(s,ye)),VCe(s,ce,h&1?z:void 0)}}if(!(c.flags&98304)&&kl(c,402665900)){if(s.flags&131073)return s;const re=iP(s,c)||Rm(s,F);if(re){if(h&2&&re.keyType!==ye){T&&Fe(T,p.Type_0_cannot_be_used_to_index_type_1,Cn(c),Cn(n));return}if(d&&re.keyType===F&&!kl(c,12)){const ce=mie(d);return Fe(ce,p.Type_0_cannot_be_used_as_an_index_type,Cn(c)),h&1?Jr([re.type,z]):re.type}return O(re),h&1&&!(s.symbol&&s.symbol.flags&384&&c.symbol&&c.flags&1024&&X_(c.symbol)===s.symbol)?Jr([re.type,z]):re.type}if(c.flags&131072)return jn;if(qE(s))return ke;if(T&&!cae(s)){if(iy(s)){if(fe&&c.flags&384)return xa.add(br(T,p.Property_0_does_not_exist_on_type_1,c.value,Cn(s))),Nt;if(c.flags&12){const ce=an(s.properties,Se=>$n(Se));return Jr(dn(ce,Nt))}}if(s.symbol===Ge&&P!==void 0&&Ge.exports.has(P)&&Ge.exports.get(P).flags&418)Fe(T,p.Property_0_does_not_exist_on_type_1,Oi(P),Cn(s));else if(fe&&!j.suppressImplicitAnyIndexErrors&&!(h&128))if(P!==void 0&&d8e(P,s)){const ce=Cn(s);Fe(T,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,P,ce,ce+"["+el(T.argumentExpression)+"]")}else if(Q1(s,ye))Fe(T.argumentExpression,p.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let ce;if(P!==void 0&&(ce=jse(P,s)))ce!==void 0&&Fe(T.argumentExpression,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,P,Cn(s),ce);else{const Se=ftt(s,T,c);if(Se!==void 0)Fe(T,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Cn(s),Se);else{let Te;if(c.flags&1024)Te=us(void 0,p.Property_0_does_not_exist_on_type_1,"["+Cn(c)+"]",Cn(s));else if(c.flags&8192){const Ze=h0(c.symbol,T);Te=us(void 0,p.Property_0_does_not_exist_on_type_1,"["+Ze+"]",Cn(s))}else c.flags&128||c.flags&256?Te=us(void 0,p.Property_0_does_not_exist_on_type_1,c.value,Cn(s)):c.flags&12&&(Te=us(void 0,p.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Cn(c),Cn(s)));Te=us(Te,p.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Cn(_),Cn(s)),xa.add(Hg(Rn(T),T,Te))}}}return}}if(qE(s))return ke;if(d){const re=mie(d);c.flags&384?Fe(re,p.Property_0_does_not_exist_on_type_1,""+c.value,Cn(s)):c.flags&12?Fe(re,p.Type_0_has_no_matching_index_signature_for_type_1,Cn(s),Cn(c)):Fe(re,p.Type_0_cannot_be_used_as_an_index_type,Cn(c))}if(qa(c))return c;return;function O(re){re&&re.isReadonly&&T&&(tg(T)||aq(T))&&Fe(T,p.Index_signature_in_type_0_only_permits_reading,Cn(s))}}function mie(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function _P(n){return n.flags&2097152?dt(n.types,s=>!!(s.flags&101248)||_P(s)):!!(n.flags&77)||Ak(n)}function Ak(n){return!!(n.flags&134217728)&&Xi(n.types,_P)||!!(n.flags&268435456)&&_P(n.type)}function iC(n){return!!HE(n)}function bv(n){return!!(HE(n)&4194304)}function K1(n){return!!(HE(n)&8388608)}function HE(n){return n.flags&137363456?(n.objectFlags&2097152||(n.objectFlags|=2097152|E_(n.types,(s,c)=>s|HE(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|HE(n.baseType)|HE(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||ff(n)||A0(n)?4194304:0)|(n.flags&331612160&&!Ak(n)?8388608:0)}function Ng(n,s){return n.flags&8388608?gYe(n,s):n.flags&16777216?hYe(n,s):n}function rCe(n,s,c){if(n.flags&1048576||n.flags&2097152&&!Z4e(n)){const _=an(n.types,d=>Ng(Eu(d,s),c));return n.flags&2097152||c?oa(_):Jr(_)}}function mYe(n,s,c){if(s.flags&1048576){const _=an(s.types,d=>Ng(Eu(n,d),c));return c?oa(_):Jr(_)}}function gYe(n,s){const c=s?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===Fa?n:n[c];n[c]=Fa;const _=Ng(n.objectType,s),d=Ng(n.indexType,s),h=mYe(_,d,s);if(h)return n[c]=h;if(!(d.flags&465829888)){const T=rCe(_,d,s);if(T)return n[c]=T}if(A0(_)&&d.flags&296){const T=lC(_,d.flags&8?0:_.target.fixedLength,0,s);if(T)return n[c]=T}return ff(_)&&(!S0(_)||K6e(_))?n[c]=xo(xJ(_,n.indexType),T=>Ng(T,s)):n[c]=n}function hYe(n,s){const c=n.checkType,_=n.extendsType,d=ey(n),h=ty(n);if(h.flags&131072&&Bh(d)===Bh(c)){if(c.flags&1||ca(pb(c),pb(_)))return Ng(d,s);if(iCe(c,_))return jn}else if(d.flags&131072&&Bh(h)===Bh(c)){if(!(c.flags&1)&&ca(pb(c),pb(_)))return jn;if(c.flags&1||iCe(c,_))return Ng(h,s)}return n}function iCe(n,s){return!!(Jr([eP(n,s),jn]).flags&131072)}function xJ(n,s){const c=uu([Up(n)],[s]),_=ny(n.mapper,c);return zi(Dg(n.target||n),_)}function Eu(n,s,c=0,_,d,h){return Rh(n,s,c,_,d,h)||(_?$e:jt)}function sCe(n,s){return Df(n,c=>{if(c.flags&384){const _=sp(c);if(sg(_)){const d=+_;return d>=0&&d0&&!dt(n.elements,s=>YH(s)||ZH(s)||r8(s)&&!!(s.questionToken||s.dotDotDotToken))}function cCe(n,s){return iC(n)||s&&la(n)&&dt(Z1(n),iC)}function hie(n,s,c,_){let d,h,T=0;for(;;){if(T===1e3)return Fe(D,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),$e;const O=zi(Bh(n.checkType),s),$=zi(n.extendsType,s);if(O===$e||$===$e)return $e;if(O===K||$===K)return K;const re=oCe(n.node.checkType)&&oCe(n.node.extendsType)&&Nn(n.node.checkType.elements)===Nn(n.node.extendsType.elements),ce=cCe(O,re);let Se;if(n.inferTypeParameters){const Ze=cl(n.inferTypeParameters,yYe),St=Ze!==n.inferTypeParameters?uu(n.inferTypeParameters,Ze):void 0,Zt=t7(Ze,void 0,0);if(St){const Gn=ny(s,St);for(let An=0;Anjh(St,ce)),Te=uu(re.outerTypeParameters,Se),Ze=re.isDistributive?jh(re.checkType,Te):void 0;if(!Ze||Ze===re.checkType||!(Ze.flags&1179648))return n=re,s=Te,c=void 0,_=void 0,re.aliasSymbol&&T++,!0}}return!1}}function ey(n){return n.resolvedTrueType||(n.resolvedTrueType=zi(ai(n.root.node.trueType),n.mapper))}function ty(n){return n.resolvedFalseType||(n.resolvedFalseType=zi(ai(n.root.node.falseType),n.mapper))}function vYe(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?zi(ai(n.root.node.trueType),n.combinedMapper):ey(n))}function lCe(n){let s;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(s=dn(s,mo(c)))}),s}function bYe(n){return n.isDistributive&&(dP(n.checkType,n.node.trueType)||dP(n.checkType,n.node.falseType))}function TYe(n){const s=jr(n);if(!s.resolvedType){const c=ai(n.checkType),_=ox(n),d=Nk(_),h=Q4(n,!0),T=d?h:zr(h,O=>dP(O,n)),P={node:n,checkType:c,extendsType:ai(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:lCe(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:_,aliasTypeArguments:d};s.resolvedType=hie(P,void 0),T&&(P.instantiations=new Map,P.instantiations.set(Hf(T),s.resolvedType))}return s.resolvedType}function xYe(n){const s=jr(n);return s.resolvedType||(s.resolvedType=ob(vr(n.typeParameter))),s.resolvedType}function _Ce(n){return we(n)?[n]:dn(_Ce(n.left),n.right)}function SYe(n){var s;const c=jr(n);if(!c.resolvedType){if(!hy(n))return Fe(n.argument,p.String_literal_expected),c.resolvedSymbol=it,c.resolvedType=$e;const _=n.isTypeOf?111551:n.flags&16777216?900095:788968,d=r_(n,n.argument.literal);if(!d)return c.resolvedSymbol=it,c.resolvedType=$e;const h=!!((s=d.exports)!=null&&s.get("export=")),T=lf(d,!1);if(_c(n.qualifier))if(T.flags&_)c.resolvedType=uCe(n,c,T,_);else{const P=_===111551?p.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Fe(n,P,n.argument.literal.text),c.resolvedSymbol=it,c.resolvedType=$e}else{const P=_Ce(n.qualifier);let O=T,$;for(;$=P.shift();){const re=P.length?1920:_,ce=Ma(Mc(O)),Se=n.isTypeOf||Kn(n)&&h?Ws($n(ce),$.escapedText,!1,!0):void 0,Te=n.isTypeOf?void 0:G_(zu(ce),$.escapedText,re),Ze=Te!=null?Te:Se;if(!Ze)return Fe($,p.Namespace_0_has_no_exported_member_1,h0(O),no($)),c.resolvedType=$e;jr($).resolvedSymbol=Ze,jr($.parent).resolvedSymbol=Ze,O=Ze}c.resolvedType=uCe(n,c,O,_)}}return c.resolvedType}function uCe(n,s,c,_){const d=Mc(c);return s.resolvedSymbol=d,_===111551?U8e($n(c),n):hJ(n,d)}function fCe(n){const s=jr(n);if(!s.resolvedType){const c=ox(n);if(Ih(n.symbol).size===0&&!c)s.resolvedType=L_;else{let _=Jf(16,n.symbol);_.aliasSymbol=c,_.aliasTypeArguments=Nk(c),i4(n)&&n.isArrayType&&(_=$l(_)),s.resolvedType=_}}return s.resolvedType}function ox(n){let s=n.parent;for(;_S(s)||sT(s)||uS(s)&&s.operator===148;)s=s.parent;return nD(s)?vr(s):void 0}function Nk(n){return n?Vp(n):void 0}function SJ(n){return!!(n.flags&524288)&&!ff(n)}function yie(n){return Ig(n)||!!(n.flags&474058748)}function vie(n,s){if(!(n.flags&1048576))return n;if(Xi(n.types,yie))return Or(n.types,Ig)||Li;const c=Or(n.types,h=>!yie(h));if(!c||Or(n.types,h=>h!==c&&!yie(h)))return n;return d(c);function d(h){const T=Vs();for(const O of Va(h))if(!(Lf(O)&24)){if(kJ(O)){const $=O.flags&65536&&!(O.flags&32768),ce=Pa(16777220,O.escapedName,Are(O)|(s?8:0));ce.links.type=$?Nt:Sl($n(O),!0),ce.declarations=O.declarations,ce.links.nameType=Mi(O).nameType,ce.links.syntheticOrigin=O,T.set(O.escapedName,ce)}}const P=gc(h.symbol,T,Ve,Ve,x_(h));return P.objectFlags|=131200,P}}function Tv(n,s,c,_,d){if(n.flags&1||s.flags&1)return ke;if(n.flags&2||s.flags&2)return jt;if(n.flags&131072)return s;if(s.flags&131072)return n;if(n=vie(n,d),n.flags&1048576)return lP([n,s])?xo(n,$=>Tv($,s,c,_,d)):$e;if(s=vie(s,d),s.flags&1048576)return lP([n,s])?xo(s,$=>Tv(n,$,c,_,d)):$e;if(s.flags&473960444)return n;if(bv(n)||bv(s)){if(Ig(n))return s;if(n.flags&2097152){const $=n.types,re=$[$.length-1];if(SJ(re)&&SJ(s))return oa(es($.slice(0,$.length-1),[Tv(re,s,c,_,d)]))}return oa([n,s])}const h=Vs(),T=new Set,P=n===Li?x_(s):G6e([n,s]);for(const $ of Va(s))Lf($)&24?T.add($.escapedName):kJ($)&&h.set($.escapedName,bie($,d));for(const $ of Va(n))if(!(T.has($.escapedName)||!kJ($)))if(h.has($.escapedName)){const re=h.get($.escapedName),ce=$n(re);if(re.flags&16777216){const Se=es($.declarations,re.declarations),Te=4|$.flags&16777216,Ze=Pa(Te,$.escapedName),St=$n($),Zt=GJ(St),_n=GJ(ce);Ze.links.type=Zt===_n?St:Jr([St,_n],2),Ze.links.leftSpread=$,Ze.links.rightSpread=re,Ze.declarations=Se,Ze.links.nameType=Mi($).nameType,h.set($.escapedName,Ze)}}else h.set($.escapedName,bie($,d));const O=gc(c,h,Ve,Ve,cl(P,$=>kYe($,d)));return O.objectFlags|=2228352|_,O}function kJ(n){var s;return!dt(n.declarations,N_)&&(!(n.flags&106496)||!((s=n.declarations)!=null&&s.some(c=>ni(c.parent))))}function bie(n,s){const c=n.flags&65536&&!(n.flags&32768);if(!c&&s===Qp(n))return n;const _=4|n.flags&16777216,d=Pa(_,n.escapedName,Are(n)|(s?8:0));return d.links.type=c?Nt:$n(n),d.declarations=n.declarations,d.links.nameType=Mi(n).nameType,d.links.syntheticOrigin=n,d}function kYe(n,s){return n.isReadonly!==s?rm(n.keyType,n.type,s,n.declaration):n}function uP(n,s,c,_){const d=kg(n,c);return d.value=s,d.regularType=_||d,d}function cx(n){if(n.flags&2976){if(!n.freshType){const s=uP(n.flags,n.value,n.symbol,n);s.freshType=s,n.freshType=s}return n.freshType}return n}function j_(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=xo(n,j_)):n}function xv(n){return!!(n.flags&2976)&&n.freshType===n}function K_(n){let s;return hn.get(n)||(hn.set(n,s=uP(128,n)),s)}function Gp(n){let s;return Ct.get(n)||(Ct.set(n,s=uP(256,n)),s)}function CJ(n){let s;const c=u2(n);return cn.get(c)||(cn.set(c,s=uP(2048,n)),s)}function CYe(n,s,c){let _;const d=`${s}${typeof n=="string"?"@":"#"}${n}`,h=1024|(typeof n=="string"?128:256);return Pn.get(d)||(Pn.set(d,_=uP(h,n,c)),_)}function EYe(n){if(n.literal.kind===106)return W;const s=jr(n);return s.resolvedType||(s.resolvedType=j_(Qi(n.literal))),s.resolvedType}function wYe(n){const s=kg(8192,n);return s.escapedName=`__@${s.symbol.escapedName}@${ya(s.symbol)}`,s}function Tie(n){if(Ule(n)){const s=D9(n)?Cu(n.left):Cu(n);if(s){const c=Mi(s);return c.uniqueESSymbolType||(c.uniqueESSymbolType=wYe(s))}}return ir}function DYe(n){const s=ru(n,!1,!1),c=s&&s.parent;if(c&&(ni(c)||c.kind===264)&&!Os(s)&&(!Cc(s)||i2(n,s.body)))return i_(vr(c)).thisType;if(c&&ha(c)&&rr(c.parent)&&uc(c.parent)===6)return i_(Cu(c.parent.left).parent).thisType;const _=n.flags&16777216?by(n):void 0;return _&&_o(_)&&rr(_.parent)&&uc(_.parent)===3?i_(Cu(_.parent.left).parent).thisType:xd(s)&&i2(n,s.body)?i_(vr(s)).thisType:(Fe(n,p.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),$e)}function EJ(n){const s=jr(n);return s.resolvedType||(s.resolvedType=DYe(n)),s.resolvedType}function pCe(n){return ai(fP(n.type)||n.type)}function fP(n){switch(n.kind){case 196:return fP(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return fP(n.type);break;case 188:return n.elementType}}function AYe(n){const s=jr(n);return s.resolvedType||(s.resolvedType=n.dotDotDotToken?pCe(n):Sl(ai(n.type),!0,!!n.questionToken))}function ai(n){return oQe(dCe(n),n)}function dCe(n){switch(n.kind){case 133:case 319:case 320:return ke;case 159:return jt;case 154:return F;case 150:return ye;case 163:return Oe;case 136:return kn;case 155:return ir;case 116:return ar;case 157:return Nt;case 106:return W;case 146:return jn;case 151:return n.flags&524288&&!fe?ke:Us;case 141:return _t;case 197:case 110:return EJ(n);case 201:return EYe(n);case 183:return Kre(n);case 182:return n.assertsModifier?ar:kn;case 233:return Kre(n);case 186:return k4e(n);case 188:case 189:return RQe(n);case 190:return zQe(n);case 192:return $Qe(n);case 193:return nYe(n);case 321:return cQe(n);case 323:return Sl(ai(n.type));case 202:return AYe(n);case 196:case 322:case 316:return ai(n.type);case 191:return pCe(n);case 325:return wst(n);case 184:case 185:case 187:case 329:case 324:case 330:return fCe(n);case 198:return cYe(n);case 199:return aCe(n);case 200:return gie(n);case 194:return TYe(n);case 195:return xYe(n);case 203:return lYe(n);case 205:return SYe(n);case 80:case 166:case 211:const s=vp(n);return s?mo(s):$e;default:return $e}}function wJ(n,s,c){if(n&&n.length)for(let _=0;__.typeParameter),an(c,()=>jt))}function ny(n,s){return n?AJ(4,n,s):s}function IYe(n,s){return n?AJ(5,n,s):s}function lx(n,s,c){return c?AJ(5,Sv(n,s),c):Sv(n,s)}function GE(n,s,c){return n?AJ(5,n,Sv(s,c)):Sv(s,c)}function OYe(n){return!n.constraint&&!Xre(n)||n.constraint===Ba?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=zf(n.symbol),n.restrictiveInstantiation.constraint=Ba,n.restrictiveInstantiation)}function NJ(n){const s=zf(n.symbol);return s.target=n,s}function FYe(n,s){return sP(n.kind,n.parameterName,n.parameterIndex,zi(n.type,s))}function Pk(n,s,c){let _;if(n.typeParameters&&!c){_=an(n.typeParameters,NJ),s=ny(uu(n.typeParameters,_),s);for(const h of _)h.mapper=s}const d=Mm(n.declaration,_,n.thisParameter&&Sie(n.thisParameter,s),wJ(n.parameters,s,Sie),void 0,void 0,n.minArgumentCount,n.flags&167);return d.target=n,d.mapper=s,d}function Sie(n,s){const c=Mi(n);if(c.type&&!wv(c.type))return n;rc(n)&1&&(n=c.target,s=ny(c.mapper,s));const _=Pa(n.flags,n.escapedName,1|rc(n)&53256);return _.declarations=n.declarations,_.parent=n.parent,_.links.target=n,_.links.mapper=s,n.valueDeclaration&&(_.valueDeclaration=n.valueDeclaration),c.nameType&&(_.links.nameType=c.nameType),_}function LYe(n,s,c,_){const d=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],h=jr(d),T=n.objectFlags&4?h.resolvedType:n.objectFlags&64?n.target:n;let P=h.outerTypeParameters;if(!P){let O=Q4(d,!0);if(xd(d)){const re=l4e(d);O=Fr(O,re)}P=O||Ve;const $=n.objectFlags&8388612?[d]:n.symbol.declarations;P=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?zr(P,re=>dt($,ce=>dP(re,ce))):P,h.outerTypeParameters=P}if(P.length){const O=ny(n.mapper,s),$=an(P,Ze=>jh(Ze,O)),re=c||n.aliasSymbol,ce=c?_:w0(n.aliasTypeArguments,s),Se=Hf($)+sx(re,ce);T.instantiations||(T.instantiations=new Map,T.instantiations.set(Hf(P)+sx(T.aliasSymbol,T.aliasTypeArguments),T));let Te=T.instantiations.get(Se);if(!Te){const Ze=uu(P,$);Te=T.objectFlags&4?Qre(n.target,n.node,Ze,re,ce):T.objectFlags&32?hCe(T,Ze,re,ce):Cie(T,Ze,re,ce),T.instantiations.set(Se,Te);const St=Rr(Te);if(Te.flags&138117121&&!(St&524288)){const Zt=dt($,wv);Rr(Te)&524288||(St&52?Te.objectFlags|=524288|(Zt?1048576:0):Te.objectFlags|=Zt?0:524288)}}return Te}return n}function MYe(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function dP(n,s){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const _=n.symbol.declarations[0].parent;for(let d=s;d!==_;d=d.parent)if(!d||d.kind===241||d.kind===194&&bs(d.extendsType,c))return!0;return c(s)}return!0;function c(_){switch(_.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&Km(_)&&MYe(_)&&dCe(_)===n;case 186:const d=_.exprName,h=Ku(d);if(!c2(h)){const T=yp(h),P=n.symbol.declarations[0],O=P.kind===168?P.parent:n.isThisType?P:void 0;if(T.declarations&&O)return dt(T.declarations,$=>i2($,O))||dt(_.typeArguments,c)}return!0;case 174:case 173:return!_.type&&!!_.body||dt(_.typeParameters,c)||dt(_.parameters,c)||!!_.type&&c(_.type)}return!!bs(_,c)}}function PJ(n){const s=Wf(n);if(s.flags&4194304){const c=Bh(s.type);if(c.flags&262144)return c}}function hCe(n,s,c,_){const d=PJ(n);if(d){const h=zi(d,s);if(d!==h)return v3e(qp(h),T=>{if(T.flags&61603843&&T!==K&&!q(T)){if(!n.declaration.nameType){let P;if(wf(T)||T.flags&1&&mk(d,4)<0&&(P=s_(d))&&Df(P,Cv))return BYe(T,n,lx(d,T,s));if(A0(T))return RYe(T,n,d,s);if(la(T))return jYe(T,n,lx(d,T,s))}return Cie(n,lx(d,T,s))}return T},c,_)}return zi(Wf(n),s)===K?K:Cie(n,s,c,_)}function kie(n,s){return s&1?!0:s&2?!1:n}function RYe(n,s,c,_){const d=n.target.elementFlags,h=an(Z1(n),(P,O)=>{const $=d[O]&8?P:d[O]&4?$l(P):Hp([P],[d[O]]);return $===c?s:hCe(s,lx(c,$,_))}),T=kie(n.target.readonly,tm(s));return Hp(h,an(h,P=>8),T)}function BYe(n,s,c){const _=yCe(s,ye,!0,c);return q(_)?$e:$l(_,kie(oC(n),tm(s)))}function jYe(n,s,c){const _=n.target.elementFlags,d=an(Z1(n),(O,$)=>yCe(s,K_(""+$),!!(_[$]&2),c)),h=tm(s),T=h&4?an(_,O=>O&1?2:O):h&8?an(_,O=>O&2?1:O):_,P=kie(n.target.readonly,h);return ys(d,$e)?$e:Hp(d,T,P,n.target.labeledElementDeclarations)}function yCe(n,s,c,_){const d=GE(_,Up(n),s),h=zi(Dg(n.target||n),d),T=tm(n);return H&&T&4&&!Yo(h,49152)?N0(h,!0):H&&T&8&&c?Gf(h,524288):h}function Cie(n,s,c,_){const d=Jf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){d.declaration=n.declaration;const h=Up(n),T=NJ(h);d.typeParameter=T,s=ny(Sv(h,T),s),T.mapper=s}return n.objectFlags&8388608&&(d.node=n.node),d.target=n,d.mapper=s,d.aliasSymbol=c||n.aliasSymbol,d.aliasTypeArguments=c?_:w0(n.aliasTypeArguments,s),d.objectFlags|=d.aliasTypeArguments?aP(d.aliasTypeArguments):0,d}function Eie(n,s,c,_){const d=n.root;if(d.outerTypeParameters){const h=an(d.outerTypeParameters,O=>jh(O,s)),T=Hf(h)+sx(c,_);let P=d.instantiations.get(T);if(!P){const O=uu(d.outerTypeParameters,h),$=d.checkType,re=d.isDistributive?jh($,O):void 0;P=re&&$!==re&&re.flags&1179648?v3e(qp(re),ce=>hie(d,lx($,ce,O)),c,_):hie(d,O,c,_),d.instantiations.set(T,P)}return P}return n}function zi(n,s){return n&&s?vCe(n,s,void 0,void 0):n}function vCe(n,s,c,_){var d;if(!wv(n))return n;if(C===100||k>=5e6)return(d=li)==null||d.instant(li.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:C,instantiationCount:k}),Fe(D,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),$e;x++,k++,C++;const h=JYe(n,s,c,_);return C--,h}function JYe(n,s,c,_){const d=n.flags;if(d&262144)return jh(n,s);if(d&524288){const h=n.objectFlags;if(h&52){if(h&4&&!n.node){const T=n.resolvedTypeArguments,P=w0(T,s);return P!==T?aie(n.target,P):n}return h&1024?zYe(n,s):LYe(n,s,c,_)}return n}if(d&3145728){const h=n.flags&1048576?n.origin:void 0,T=h&&h.flags&3145728?h.types:n.types,P=w0(T,s);if(P===T&&c===n.aliasSymbol)return n;const O=c||n.aliasSymbol,$=c?_:w0(n.aliasTypeArguments,s);return d&2097152||h&&h.flags&2097152?oa(P,O,$):Jr(P,1,O,$)}if(d&4194304)return im(zi(n.type,s));if(d&134217728)return fb(n.texts,w0(n.types,s));if(d&268435456)return ax(n.symbol,zi(n.type,s));if(d&8388608){const h=c||n.aliasSymbol,T=c?_:w0(n.aliasTypeArguments,s);return Eu(zi(n.objectType,s),zi(n.indexType,s),n.accessFlags,void 0,h,T)}if(d&16777216)return Eie(n,ny(n.mapper,s),c,_);if(d&33554432){const h=zi(n.baseType,s),T=zi(n.constraint,s);return h.flags&8650752&&iC(T)?Yre(h,T):T.flags&3||ca(pb(h),pb(T))?h:h.flags&8650752?Yre(h,T):oa([T,h])}return n}function zYe(n,s){const c=zi(n.mappedType,s);if(!(Rr(c)&32))return n;const _=zi(n.constraintType,s);if(!(_.flags&4194304))return n;const d=QCe(zi(n.source,s),c,_);return d||n}function IJ(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=zi(n,Es))}function pb(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=zi(n,qi),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function VYe(n,s){return rm(n.keyType,zi(n.type,s),n.isReadonly,n.declaration)}function Cf(n){switch(E.assert(n.kind!==174||kp(n)),n.kind){case 218:case 219:case 174:case 262:return bCe(n);case 210:return dt(n.properties,Cf);case 209:return dt(n.elements,Cf);case 227:return Cf(n.whenTrue)||Cf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Cf(n.left)||Cf(n.right));case 303:return Cf(n.initializer);case 217:return Cf(n.expression);case 292:return dt(n.properties,Cf)||zd(n.parent)&&dt(n.parent.parent.children,Cf);case 291:{const{initializer:s}=n;return!!s&&Cf(s)}case 294:{const{expression:s}=n;return!!s&&Cf(s)}}return!1}function bCe(n){return CO(n)||UYe(n)}function UYe(n){return n.typeParameters||ep(n)||!n.body?!1:n.body.kind!==241?Cf(n.body):!!t2(n.body,s=>!!s.expression&&Cf(s.expression))}function OJ(n){return(z6(n)||kp(n))&&bCe(n)}function TCe(n){if(n.flags&524288){const s=Wp(n);if(s.constructSignatures.length||s.callSignatures.length){const c=Jf(16,n.symbol);return c.members=s.members,c.properties=s.properties,c.callSignatures=Ve,c.constructSignatures=Ve,c.indexInfos=Ve,c}}else if(n.flags&2097152)return oa(an(n.types,TCe));return n}function Pg(n,s){return bd(n,s,xu)}function $E(n,s){return bd(n,s,xu)?-1:0}function wie(n,s){return bd(n,s,Ju)?-1:0}function WYe(n,s){return bd(n,s,$d)?-1:0}function Jh(n,s){return bd(n,s,$d)}function xCe(n,s){return bd(n,s,bf)}function ca(n,s){return bd(n,s,Ju)}function kv(n,s){return n.flags&1048576?Xi(n.types,c=>kv(c,s)):s.flags&1048576?dt(s.types,c=>kv(n,c)):n.flags&2097152?dt(n.types,c=>kv(c,s)):n.flags&58982400?kv(B_(n)||jt,s):Og(s)?!!(n.flags&67633152):s===Uc?!!(n.flags&67633152)&&!Og(n):s===Vo?!!(n.flags&524288)&&cse(n):bk(n,ab(s))||wf(s)&&!oC(s)&&kv(n,vn)}function FJ(n,s){return bd(n,s,lu)}function mP(n,s){return FJ(n,s)||FJ(s,n)}function J_(n,s,c,_,d,h){return Ef(n,s,Ju,c,_,d,h)}function zh(n,s,c,_,d,h){return Die(n,s,Ju,c,_,d,h,void 0)}function Die(n,s,c,_,d,h,T,P){return bd(n,s,c)?!0:!_||!XE(d,n,s,c,h,T,P)?Ef(n,s,c,_,h,T,P):!1}function SCe(n){return!!(n.flags&16777216||n.flags&2097152&&dt(n.types,SCe))}function XE(n,s,c,_,d,h,T){if(!n||SCe(c))return!1;if(!Ef(s,c,_,void 0)&&qYe(n,s,c,_,d,h,T))return!0;switch(n.kind){case 234:if(!J2(n))break;case 294:case 217:return XE(n.expression,s,c,_,d,h,T);case 226:switch(n.operatorToken.kind){case 64:case 28:return XE(n.right,s,c,_,d,h,T)}break;case 210:return KYe(n,s,c,_,h,T);case 209:return YYe(n,s,c,_,h,T);case 292:return QYe(n,s,c,_,h,T);case 219:return HYe(n,s,c,_,h,T)}return!1}function qYe(n,s,c,_,d,h,T){const P=As(s,0),O=As(s,1);for(const $ of[O,P])if(dt($,re=>{const ce=Ua(re);return!(ce.flags&131073)&&Ef(ce,c,_,void 0)})){const re=T||{};J_(s,c,n,d,h,re);const ce=re.errors[re.errors.length-1];return ua(ce,br(n,$===O?p.Did_you_mean_to_use_new_with_this_expression:p.Did_you_mean_to_call_this_expression)),!0}return!1}function HYe(n,s,c,_,d,h){if(vs(n.body)||dt(n.parameters,p9))return!1;const T=Tb(s);if(!T)return!1;const P=As(c,0);if(!Nn(P))return!1;const O=n.body,$=Ua(T),re=Jr(an(P,Ua));if(!Ef($,re,_,void 0)){const ce=O&&XE(O,$,re,_,void 0,d,h);if(ce)return ce;const Se=h||{};if(Ef($,re,_,O,void 0,d,Se),Se.errors)return c.symbol&&Nn(c.symbol.declarations)&&ua(Se.errors[Se.errors.length-1],br(c.symbol.declarations[0],p.The_expected_type_comes_from_the_return_type_of_this_signature)),(Il(n)&2)===0&&!Wc($,"then")&&Ef(WP($),re,_,void 0)&&ua(Se.errors[Se.errors.length-1],br(n,p.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function kCe(n,s,c){const _=Rh(s,c);if(_)return _;if(s.flags&1048576){const d=ICe(n,s);if(d)return Rh(d,c)}}function CCe(n,s){PP(n,s,!1);const c=yC(n,1);return o7(),c}function gP(n,s,c,_,d,h){let T=!1;for(const P of n){const{errorNode:O,innerExpression:$,nameType:re,errorMessage:ce}=P;let Se=kCe(s,c,re);if(!Se||Se.flags&8388608)continue;let Te=Rh(s,re);if(!Te)continue;const Ze=TJ(re,void 0);if(!Ef(Te,Se,_,void 0)){const St=$&&XE($,Te,Se,_,void 0,d,h);if(T=!0,!St){const Zt=h||{},_n=$?CCe($,Te):Te;if(be&&MJ(_n,Se)){const Gn=br(O,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Cn(_n),Cn(Se));xa.add(Gn),Zt.errors=[Gn]}else{const Gn=!!(Ze&&(Ws(c,Ze)||it).flags&16777216),An=!!(Ze&&(Ws(s,Ze)||it).flags&16777216);Se=db(Se,Gn),Te=db(Te,Gn&&An),Ef(_n,Se,_,O,ce,d,Zt)&&_n!==Te&&Ef(Te,Se,_,O,ce,d,Zt)}if(Zt.errors){const Gn=Zt.errors[Zt.errors.length-1],An=ip(re)?sp(re):void 0,qt=An!==void 0?Ws(c,An):void 0;let zn=!1;if(!qt){const Ht=iP(c,re);Ht&&Ht.declaration&&!Rn(Ht.declaration).hasNoDefaultLib&&(zn=!0,ua(Gn,br(Ht.declaration,p.The_expected_type_comes_from_this_index_signature)))}if(!zn&&(qt&&Nn(qt.declarations)||c.symbol&&Nn(c.symbol.declarations))){const Ht=qt&&Nn(qt.declarations)?qt.declarations[0]:c.symbol.declarations[0];Rn(Ht).hasNoDefaultLib||ua(Gn,br(Ht,p.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,An&&!(re.flags&8192)?Oi(An):Cn(re),Cn(c)))}}}}}return T}function GYe(n,s,c,_,d,h){const T=ol(c,VJ),P=ol(c,re=>!VJ(re)),O=P!==jn?Cae(13,0,P,void 0):void 0;let $=!1;for(let re=n.next();!re.done;re=n.next()){const{errorNode:ce,innerExpression:Se,nameType:Te,errorMessage:Ze}=re.value;let St=O;const Zt=T!==jn?kCe(s,T,Te):void 0;if(Zt&&!(Zt.flags&8388608)&&(St=O?Jr([O,Zt]):Zt),!St)continue;let _n=Rh(s,Te);if(!_n)continue;const Gn=TJ(Te,void 0);if(!Ef(_n,St,_,void 0)){const An=Se&&XE(Se,_n,St,_,void 0,d,h);if($=!0,!An){const qt=h||{},zn=Se?CCe(Se,_n):_n;if(be&&MJ(zn,St)){const Ht=br(ce,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Cn(zn),Cn(St));xa.add(Ht),qt.errors=[Ht]}else{const Ht=!!(Gn&&(Ws(T,Gn)||it).flags&16777216),mn=!!(Gn&&(Ws(s,Gn)||it).flags&16777216);St=db(St,Ht),_n=db(_n,Ht&&mn),Ef(zn,St,_,ce,Ze,d,qt)&&zn!==_n&&Ef(_n,St,_,ce,Ze,d,qt)}}}}return $}function*$Ye(n){if(!!Nn(n.properties))for(const s of n.properties)hS(s)||Ese(jD(s.name))||(yield{errorNode:s.name,innerExpression:s.initializer,nameType:K_(jD(s.name))})}function*XYe(n,s){if(!Nn(n.children))return;let c=0;for(let _=0;_1;let Zt,_n;if(nie(!1)!==Rs){const An=M4e(ke);Zt=ol(Te,qt=>ca(qt,An)),_n=ol(Te,qt=>!ca(qt,An))}else Zt=ol(Te,VJ),_n=ol(Te,An=>!VJ(An));if(St){if(Zt!==jn){const An=Hp(pz($,0)),qt=XYe($,O);T=GYe(qt,An,Zt,_,d,h)||T}else if(!bd(Eu(s,Se),Te,_)){T=!0;const An=Fe($.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ce,Cn(Te));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(An)}}else if(_n!==jn){const An=Ze[0],qt=ECe(An,Se,O);qt&&(T=gP(function*(){yield qt}(),s,c,_,d,h)||T)}else if(!bd(Eu(s,Se),Te,_)){T=!0;const An=Fe($.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ce,Cn(Te));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(An)}}return T;function O(){if(!P){const $=el(n.parent.tagName),re=OP(bb(n)),ce=re===void 0?"children":Oi(re),Se=Eu(c,K_(ce)),Te=p._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;P={...Te,key:"!!ALREADY FORMATTED!!",message:Vq(void 0,Te,$,ce,Cn(Se))}}return P}}function*wCe(n,s){const c=Nn(n.elements);if(!!c)for(let _=0;_O:Sd(n)>O))return _&&!(c&8)&&d(p.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Sd(n),O),0;n.typeParameters&&n.typeParameters!==s.typeParameters&&(s=tQe(s),n=S8e(n,s,void 0,T));const re=qu(n),ce=f7(n),Se=f7(s);(ce||Se)&&zi(ce||Se,P);const Te=s.declaration?s.declaration.kind:0,Ze=!(c&3)&&Q&&Te!==174&&Te!==173&&Te!==176;let St=-1;const Zt=Y1(n);if(Zt&&Zt!==ar){const An=Y1(s);if(An){const qt=!Ze&&T(Zt,An,!1)||T(An,Zt,_);if(!qt)return _&&d(p.The_this_types_of_each_signature_are_incompatible),0;St&=qt}}const _n=ce||Se?Math.min(re,O):Math.max(re,O),Gn=ce||Se?_n-1:-1;for(let An=0;An<_n;An++){const qt=An===Gn?_7(n,An):xb(n,An),zn=An===Gn?_7(s,An):xb(s,An);if(qt&&zn){const Ht=c&3?void 0:Tb(Fg(qt)),mn=c&3?void 0:Tb(Fg(zn));let Yn=Ht&&mn&&!qf(Ht)&&!qf(mn)&&(k_(qt)&50331648)===(k_(zn)&50331648)?Aie(mn,Ht,c&8|(Ze?2:1),_,d,h,T,P):!(c&3)&&!Ze&&T(qt,zn,!1)||T(zn,qt,_);if(Yn&&c&8&&An>=Sd(n)&&An=3&&s[0].flags&32768&&s[1].flags&65536&&dt(s,Og)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function sC(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function ACe(n){return n.flags&524288&&!ff(n)&&Va(n).length===0&&x_(n).length===1&&!!Rm(n,F)||n.flags&3145728&&Xi(n.types,ACe)||!1}function Pie(n,s,c){const _=n.flags&8?X_(n):n,d=s.flags&8?X_(s):s;if(_===d)return!0;if(_.escapedName!==d.escapedName||!(_.flags&256)||!(d.flags&256))return!1;const h=ya(_)+","+ya(d),T=$y.get(h);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);const P=$n(d);for(const O of Va($n(_)))if(O.flags&8){const $=Ws(P,O.escapedName);if(!$||!($.flags&8))return c?(c(p.Property_0_is_missing_in_type_1,bc(O),Cn(mo(d),void 0,64)),$y.set(h,6)):$y.set(h,2),!1}return $y.set(h,1),!0}function QE(n,s,c,_){const d=n.flags,h=s.flags;return h&1||d&131072||n===K||h&2&&!(c===bf&&d&1)?!0:h&131072?!1:!!(d&402653316&&h&4||d&128&&d&1024&&h&128&&!(h&1024)&&n.value===s.value||d&296&&h&8||d&256&&d&1024&&h&256&&!(h&1024)&&n.value===s.value||d&2112&&h&64||d&528&&h&16||d&12288&&h&4096||d&32&&h&32&&n.symbol.escapedName===s.symbol.escapedName&&Pie(n.symbol,s.symbol,_)||d&1024&&h&1024&&(d&1048576&&h&1048576&&Pie(n.symbol,s.symbol,_)||d&2944&&h&2944&&n.value===s.value&&Pie(n.symbol,s.symbol,_))||d&32768&&(!H&&!(h&3145728)||h&49152)||d&65536&&(!H&&!(h&3145728)||h&65536)||d&524288&&h&67108864&&!(c===bf&&Og(n)&&!(Rr(n)&8192))||(c===Ju||c===lu)&&(d&1||d&8&&(h&32||h&256&&h&1024)||d&256&&!(d&1024)&&(h&32||h&256&&h&1024&&n.value===s.value)||rZe(s)))}function bd(n,s,c){if(xv(n)&&(n=n.regularType),xv(s)&&(s=s.regularType),n===s)return!0;if(c!==xu){if(c===lu&&!(s.flags&131072)&&QE(s,n,c)||QE(n,s,c))return!0}else if(!((n.flags|s.flags)&61865984)){if(n.flags!==s.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&s.flags&524288){const _=c.get(Mie(n,s,0,c,!1));if(_!==void 0)return!!(_&1)}return n.flags&469499904||s.flags&469499904?Ef(n,s,c,void 0):!1}function NCe(n,s){return Rr(n)&2048&&Ese(s.escapedName)}function hP(n,s){for(;;){const c=xv(n)?n.regularType:A0(n)?sZe(n,s):Rr(n)&4?n.node?k0(n.target,uo(n)):jie(n)||n:n.flags&3145728?iZe(n,s):n.flags&33554432?s?n.baseType:Zre(n):n.flags&25165824?Ng(n,s):n;if(c===n)return c;n=c}}function iZe(n,s){const c=qp(n);if(c!==n)return c;if(n.flags&2097152&&dt(n.types,Og)){const _=cl(n.types,d=>hP(d,s));if(_!==n.types)return oa(_)}return n}function sZe(n,s){const c=Z1(n),_=cl(c,d=>d.flags&25165824?Ng(d,s):d);return c!==_?oie(n.target,_):n}function Ef(n,s,c,_,d,h,T){var P;let O,$,re,ce,Se,Te,Ze=0,St=0,Zt=0,_n=0,Gn=!1,An=0,qt=0,zn,Ht;E.assert(c!==xu||!_,"no error reporting in identity checking");const mn=Bn(n,s,3,!!_,d);if(Ht&&Vi(),Gn){(P=li)==null||P.instant(li.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:s.id,depth:St,targetDepth:Zt});const He=Fe(_||D,p.Excessive_stack_depth_comparing_types_0_and_1,Cn(n),Cn(s));T&&(T.errors||(T.errors=[])).push(He)}else if(O){if(h){const zt=h();zt&&(aue(zt,O),O=zt)}let He;if(d&&_&&!mn&&n.symbol){const zt=Mi(n.symbol);if(zt.originatingImport&&!Zu(zt.originatingImport)&&Ef($n(zt.target),s,c,void 0)){const pr=br(zt.originatingImport,p.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);He=dn(He,pr)}}const at=Hg(Rn(_),_,O,He);$&&ua(at,...$),T&&(T.errors||(T.errors=[])).push(at),(!T||!T.skipLogging)&&xa.add(at)}return _&&T&&T.skipLogging&&mn===0&&E.assert(!!T.errors,"missed opportunity to interact with error."),mn!==0;function bn(He){O=He.errorInfo,zn=He.lastSkippedInfo,Ht=He.incompatibleStack,An=He.overrideNextErrorInfo,qt=He.skipParentCounter,$=He.relatedInfo}function Yn(){return{errorInfo:O,lastSkippedInfo:zn,incompatibleStack:Ht==null?void 0:Ht.slice(),overrideNextErrorInfo:An,skipParentCounter:qt,relatedInfo:$==null?void 0:$.slice()}}function fs(He,...at){An++,zn=void 0,(Ht||(Ht=[])).push([He,...at])}function Vi(){const He=Ht||[];Ht=void 0;const at=zn;if(zn=void 0,He.length===1){ei(...He[0]),at&&fu(void 0,...at);return}let zt="";const Ln=[];for(;He.length;){const[pr,...en]=He.pop();switch(pr.code){case p.Types_of_property_0_are_incompatible.code:{zt.indexOf("new ")===0&&(zt=`(${zt})`);const sr=""+en[0];zt.length===0?zt=`${sr}`:pf(sr,Ia(j))?zt=`${zt}.${sr}`:sr[0]==="["&&sr[sr.length-1]==="]"?zt=`${zt}${sr}`:zt=`${zt}[${sr}]`;break}case p.Call_signature_return_types_0_and_1_are_incompatible.code:case p.Construct_signature_return_types_0_and_1_are_incompatible.code:case p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(zt.length===0){let sr=pr;pr.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?sr=p.Call_signature_return_types_0_and_1_are_incompatible:pr.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(sr=p.Construct_signature_return_types_0_and_1_are_incompatible),Ln.unshift([sr,en[0],en[1]])}else{const sr=pr.code===p.Construct_signature_return_types_0_and_1_are_incompatible.code||pr.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",$r=pr.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||pr.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";zt=`${sr}${zt}(${$r})`}break}case p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Ln.unshift([p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,en[0],en[1]]);break}case p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Ln.unshift([p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,en[0],en[1],en[2]]);break}default:return E.fail(`Unhandled Diagnostic: ${pr.code}`)}}zt?ei(zt[zt.length-1]===")"?p.The_types_returned_by_0_are_incompatible_between_these_types:p.The_types_of_0_are_incompatible_between_these_types,zt):Ln.shift();for(const[pr,...en]of Ln){const sr=pr.elidedInCompatabilityPyramid;pr.elidedInCompatabilityPyramid=!1,ei(pr,...en),pr.elidedInCompatabilityPyramid=sr}at&&fu(void 0,...at)}function ei(He,...at){E.assert(!!_),Ht&&Vi(),!He.elidedInCompatabilityPyramid&&(qt===0?O=us(O,He,...at):qt--)}function wc(He,...at){ei(He,...at),qt++}function tu(He){E.assert(!!O),$?$.push(He):$=[He]}function fu(He,at,zt){Ht&&Vi();const[Ln,pr]=Ah(at,zt);let en=at,sr=Ln;if(YE(at)&&!Iie(zt)&&(en=Vh(at),E.assert(!ca(en,zt),"generalized source shouldn't be assignable"),sr=Y_(en)),(zt.flags&8388608&&!(at.flags&8388608)?zt.objectType.flags:zt.flags)&262144&&zt!==q_&&zt!==vo){const Di=B_(zt);let ps;Di&&(ca(en,Di)||(ps=ca(at,Di)))?ei(p._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,ps?Ln:sr,pr,Cn(Di)):(O=void 0,ei(p._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,pr,sr))}if(He)He===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&be&&PCe(at,zt).length&&(He=p.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(c===lu)He=p.Type_0_is_not_comparable_to_type_1;else if(Ln===pr)He=p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(be&&PCe(at,zt).length)He=p.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(at.flags&128&&zt.flags&1048576){const Di=ptt(at,zt);if(Di){ei(p.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,sr,pr,Cn(Di));return}}He=p.Type_0_is_not_assignable_to_type_1}ei(He,sr,pr)}function am(He,at){const zt=Cg(He.symbol)?Cn(He,He.symbol.valueDeclaration):Cn(He),Ln=Cg(at.symbol)?Cn(at,at.symbol.valueDeclaration):Cn(at);(ji===He&&F===at||ws===He&&ye===at||Wa===He&&kn===at||P4e()===He&&ir===at)&&ei(p._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Ln,zt)}function Tn(He,at,zt){return la(He)?He.target.readonly&&JJ(at)?(zt&&ei(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Cn(He),Cn(at)),!1):Cv(at):oC(He)&&JJ(at)?(zt&&ei(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Cn(He),Cn(at)),!1):la(at)?wf(He):!0}function Zn(He,at,zt){return Bn(He,at,3,zt)}function Bn(He,at,zt=3,Ln=!1,pr,en=0){if(He===at)return-1;if(He.flags&524288&&at.flags&402784252)return c===lu&&!(at.flags&131072)&&QE(at,He,c)||QE(He,at,c,Ln?ei:void 0)?-1:(Ln&&Ts(He,at,He,at,pr),0);const sr=hP(He,!1);let $r=hP(at,!0);if(sr===$r)return-1;if(c===xu)return sr.flags!==$r.flags?0:sr.flags&67358815?-1:(Wi(sr,$r),Ki(sr,$r,!1,0,zt));if(sr.flags&262144&&cb(sr)===$r)return-1;if(sr.flags&470302716&&$r.flags&1048576){const Di=$r.types,ps=Di.length===2&&Di[0].flags&98304?Di[1]:Di.length===3&&Di[0].flags&98304&&Di[1].flags&98304?Di[2]:void 0;if(ps&&!(ps.flags&98304)&&($r=hP(ps,!0),sr===$r))return-1}if(c===lu&&!($r.flags&131072)&&QE($r,sr,c)||QE(sr,$r,c,Ln?ei:void 0))return-1;if(sr.flags&469499904||$r.flags&469499904){if(!(en&2)&&iy(sr)&&Rr(sr)&8192&&fo(sr,$r,Ln))return Ln&&fu(pr,sr,at.aliasSymbol?at:$r),0;const ps=(c!==lu||$p(sr))&&!(en&2)&&sr.flags&405405692&&sr!==Uc&&$r.flags&2621440&&OCe($r)&&(Va(sr).length>0||Wz(sr)),Qs=!!(Rr(sr)&2048);if(ps&&!oZe(sr,$r,Qs)){if(Ln){const _s=Cn(He.aliasSymbol?He:sr),da=Cn(at.aliasSymbol?at:$r),So=As(sr,0),ja=As(sr,1);So.length>0&&Bn(Ua(So[0]),$r,1,!1)||ja.length>0&&Bn(Ua(ja[0]),$r,1,!1)?ei(p.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,_s,da):ei(p.Type_0_has_no_properties_in_common_with_type_1,_s,da)}return 0}Wi(sr,$r);const Xr=sr.flags&1048576&&sr.types.length<4&&!($r.flags&1048576)||$r.flags&1048576&&$r.types.length<4&&!(sr.flags&469499904)?pa(sr,$r,Ln,en):Ki(sr,$r,Ln,en,zt);if(Xr)return Xr}return Ln&&Ts(He,at,sr,$r,pr),0}function Ts(He,at,zt,Ln,pr){var en,sr;const $r=!!jie(He),Di=!!jie(at);zt=He.aliasSymbol||$r?He:zt,Ln=at.aliasSymbol||Di?at:Ln;let ps=An>0;if(ps&&An--,zt.flags&524288&&Ln.flags&524288){const Qs=O;Tn(zt,Ln,!0),O!==Qs&&(ps=!!O)}if(zt.flags&524288&&Ln.flags&402784252)am(zt,Ln);else if(zt.symbol&&zt.flags&524288&&Uc===zt)ei(p.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Rr(zt)&2048&&Ln.flags&2097152){const Qs=Ln.types,qs=Pv(sf.IntrinsicAttributes,_),Xr=Pv(sf.IntrinsicClassAttributes,_);if(!q(qs)&&!q(Xr)&&(ys(Qs,qs)||ys(Qs,Xr)))return}else O=jre(O,at);if(!pr&&ps){zn=[zt,Ln];return}if(fu(pr,zt,Ln),zt.flags&262144&&((sr=(en=zt.symbol)==null?void 0:en.declarations)==null?void 0:sr[0])&&!cb(zt)){const Qs=NJ(zt);if(Qs.constraint=zi(Ln,Sv(zt,Qs)),jE(Qs)){const qs=Cn(Ln,zt.symbol.declarations[0]);tu(br(zt.symbol.declarations[0],p.This_type_parameter_might_need_an_extends_0_constraint,qs))}}}function Wi(He,at){if(!!li&&He.flags&3145728&&at.flags&3145728){const zt=He,Ln=at;if(zt.objectFlags&Ln.objectFlags&32768)return;const pr=zt.types.length,en=Ln.types.length;pr*en>1e6&&li.instant(li.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:He.id,sourceSize:pr,targetId:at.id,targetSize:en,pos:_==null?void 0:_.pos,end:_==null?void 0:_.end})}}function Da(He,at){return Jr(E_(He,(Ln,pr)=>{var en;pr=Z_(pr);const sr=pr.flags&3145728?Rre(pr,at):hv(pr,at),$r=sr&&$n(sr)||((en=_b(pr,at))==null?void 0:en.type)||Nt;return dn(Ln,$r)},void 0)||Ve)}function fo(He,at,zt){var Ln;if(!LP(at)||!fe&&Rr(at)&4096)return!1;const pr=!!(Rr(He)&2048);if((c===Ju||c===lu)&&(s7(Uc,at)||!pr&&Ig(at)))return!1;let en=at,sr;at.flags&1048576&&(en=W7e(He,at,Bn)||pot(at),sr=en.flags&1048576?en.types:[en]);for(const $r of Va(He))if(jc($r,He.symbol)&&!NCe(He,$r)){if(!Ase(en,$r.escapedName,pr)){if(zt){const Di=ol(en,LP);if(!_)return E.fail();if(v2(_)||U_(_)||U_(_.parent)){$r.valueDeclaration&&Vd($r.valueDeclaration)&&Rn(_)===Rn($r.valueDeclaration.name)&&(_=$r.valueDeclaration.name);const ps=ii($r),Qs=g8e(ps,Di),qs=Qs?ii(Qs):void 0;qs?ei(p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ps,Cn(Di),qs):ei(p.Property_0_does_not_exist_on_type_1,ps,Cn(Di))}else{const ps=((Ln=He.symbol)==null?void 0:Ln.declarations)&&wl(He.symbol.declarations);let Qs;if($r.valueDeclaration&&In($r.valueDeclaration,qs=>qs===ps)&&Rn(ps)===Rn(_)){const qs=$r.valueDeclaration;E.assertNode(qs,H0);const Xr=qs.name;_=Xr,we(Xr)&&(Qs=jse(Xr,Di))}Qs!==void 0?wc(p.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ii($r),Cn(Di),Qs):wc(p.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ii($r),Cn(Di))}}return!0}if(sr&&!Bn($n($r),Da(sr,$r.escapedName),3,zt))return zt&&fs(p.Types_of_property_0_are_incompatible,ii($r)),!0}return!1}function jc(He,at){return He.valueDeclaration&&at.valueDeclaration&&He.valueDeclaration.parent===at.valueDeclaration}function pa(He,at,zt,Ln){if(He.flags&1048576)return c===lu?Wn(He,at,zt&&!(He.flags&402784252),Ln):mr(He,at,zt&&!(He.flags&402784252),Ln);if(at.flags&1048576)return Qe(e7(He),at,zt&&!(He.flags&402784252)&&!(at.flags&402784252));if(at.flags&2097152)return me(He,at,zt,2);if(c===lu&&at.flags&402784252){const pr=cl(He.types,en=>en.flags&465829888?B_(en)||jt:en);if(pr!==He.types){if(He=oa(pr),He.flags&131072)return 0;if(!(He.flags&2097152))return Bn(He,at,1,!1)||Bn(at,He,1,!1)}}return Wn(He,at,!1,1)}function z_(He,at){let zt=-1;const Ln=He.types;for(const pr of Ln){const en=Qe(pr,at,!1);if(!en)return 0;zt&=en}return zt}function Qe(He,at,zt){const Ln=at.types;if(at.flags&1048576){if(Mh(Ln,He))return-1;if(c!==lu&&Rr(at)&32768&&!(He.flags&1024)&&(He.flags&2688||(c===$d||c===bf)&&He.flags&256)){const en=He===He.regularType?He.freshType:He.regularType,sr=He.flags&128?F:He.flags&256?ye:He.flags&2048?Oe:void 0;return sr&&Mh(Ln,sr)||en&&Mh(Ln,en)?-1:0}const pr=o3e(at,He);if(pr){const en=Bn(He,pr,2,!1);if(en)return en}}for(const pr of Ln){const en=Bn(He,pr,2,!1);if(en)return en}if(zt){const pr=ICe(He,at,Bn);pr&&Bn(He,pr,2,!0)}return 0}function me(He,at,zt,Ln){let pr=-1;const en=at.types;for(const sr of en){const $r=Bn(He,sr,2,zt,void 0,Ln);if(!$r)return 0;pr&=$r}return pr}function Wn(He,at,zt,Ln){const pr=He.types;if(He.flags&1048576&&Mh(pr,at))return-1;const en=pr.length;for(let sr=0;sr=sr.types.length&&en.length%sr.types.length===0){const Qs=Bn(Di,sr.types[$r%sr.types.length],3,!1,void 0,Ln);if(Qs){pr&=Qs;continue}}const ps=Bn(Di,at,1,zt,void 0,Ln);if(!ps)return 0;pr&=ps}return pr}function Tr(He=Ve,at=Ve,zt=Ve,Ln,pr){if(He.length!==at.length&&c===xu)return 0;const en=He.length<=at.length?He.length:at.length;let sr=-1;for(let $r=0;$r(_s|=ja?16:8,Xr(ja)));let da;return _n===3?((en=li)==null||en.instant(li.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:He.id,sourceIdStack:Se.map(ja=>ja.id),targetId:at.id,targetIdStack:Te.map(ja=>ja.id),depth:St,targetDepth:Zt}),da=3):((sr=li)==null||sr.push(li.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:He.id,targetId:at.id}),da=yi(He,at,zt,Ln),($r=li)==null||$r.pop()),za&&(za=Xr),pr&1&&St--,pr&2&&Zt--,_n=qs,da?(da===-1||St===0&&Zt===0)&&So(da===-1||da===3):(c.set(Di,(zt?4:0)|2|_s),So(!1)),da;function So(ja){for(let pl=Qs;pl$r!==He)&&(en=Bn(sr,at,1,!1,void 0,Ln))}en&&!(Ln&2)&&at.flags&2097152&&!bv(at)&&He.flags&2621440?(en&=Ni(He,at,zt,void 0,!1,0),en&&iy(He)&&Rr(He)&8192&&(en&=Bo(He,at,!1,zt,0))):en&&SJ(at)&&!Cv(at)&&He.flags&2097152&&Z_(He).flags&3670016&&!dt(He.types,sr=>sr===at||!!(Rr(sr)&262144))&&(en&=Ni(He,at,zt,void 0,!0,Ln))}return en&&bn(pr),en}function fr(He,at,zt,Ln,pr){let en,sr,$r=!1,Di=He.flags;const ps=at.flags;if(c===xu){if(Di&3145728){let Xr=z_(He,at);return Xr&&(Xr&=z_(at,He)),Xr}if(Di&4194304)return Bn(He.type,at.type,3,!1);if(Di&8388608&&(en=Bn(He.objectType,at.objectType,3,!1))&&(en&=Bn(He.indexType,at.indexType,3,!1))||Di&16777216&&He.root.isDistributive===at.root.isDistributive&&(en=Bn(He.checkType,at.checkType,3,!1))&&(en&=Bn(He.extendsType,at.extendsType,3,!1))&&(en&=Bn(ey(He),ey(at),3,!1))&&(en&=Bn(ty(He),ty(at),3,!1))||Di&33554432&&(en=Bn(He.baseType,at.baseType,3,!1))&&(en&=Bn(He.constraint,at.constraint,3,!1)))return en;if(!(Di&524288))return 0}else if(Di&3145728||ps&3145728){if(en=pa(He,at,zt,Ln))return en;if(!(Di&465829888||Di&524288&&ps&1048576||Di&2097152&&ps&467402752))return 0}if(Di&17301504&&He.aliasSymbol&&He.aliasTypeArguments&&He.aliasSymbol===at.aliasSymbol&&!(RJ(He)||RJ(at))){const Xr=FCe(He.aliasSymbol);if(Xr===Ve)return 1;const _s=Mi(He.aliasSymbol).typeParameters,da=nm(_s),So=Fh(He.aliasTypeArguments,_s,da,Kn(He.aliasSymbol.valueDeclaration)),ja=Fh(at.aliasTypeArguments,_s,da,Kn(He.aliasSymbol.valueDeclaration)),pl=qs(So,ja,Xr,Ln);if(pl!==void 0)return pl}if(zCe(He)&&!He.target.readonly&&(en=Bn(uo(He)[0],at,1))||zCe(at)&&(at.target.readonly||JJ(B_(He)||He))&&(en=Bn(He,uo(at)[0],2)))return en;if(ps&262144){if(Rr(He)&32&&!He.declaration.nameType&&Bn(im(at),Wf(He),3)&&!(tm(He)&4)){const Xr=Dg(He),_s=Eu(at,Up(He));if(en=Bn(Xr,_s,3,zt))return en}if(c===lu&&Di&262144){let Xr=s_(He);if(Xr&&jE(He))for(;Xr&&Mg(Xr,_s=>!!(_s.flags&262144));){if(en=Bn(Xr,at,1,!1))return en;Xr=s_(Xr)}return 0}}else if(ps&4194304){const Xr=at.type;if(Di&4194304&&(en=Bn(Xr,He.type,3,!1)))return en;if(la(Xr)){if(en=Bn(He,J4e(Xr),2,zt))return en}else{const _s=Ire(Xr);if(_s){if(Bn(He,im(_s,at.indexFlags|4),2,zt)===-1)return-1}else if(ff(Xr)){const da=S0(Xr),So=Wf(Xr);let ja;if(da&&BE(Xr)){const pl=Z_(xk(Xr)),Yp=[];Nre(pl,8576,!1,Vm=>void Yp.push(zi(da,GE(Xr.mapper,Up(Xr),Vm)))),ja=Jr([...Yp,da])}else ja=da||So;if(Bn(He,ja,2,zt)===-1)return-1}}}else if(ps&8388608){if(Di&8388608){if((en=Bn(He.objectType,at.objectType,3,zt))&&(en&=Bn(He.indexType,at.indexType,3,zt)),en)return en;zt&&(sr=O)}if(c===Ju||c===lu){const Xr=at.objectType,_s=at.indexType,da=B_(Xr)||Xr,So=B_(_s)||_s;if(!bv(da)&&!K1(So)){const ja=4|(da!==Xr?2:0),pl=Rh(da,So,ja);if(pl){if(zt&&sr&&bn(pr),en=Bn(He,pl,2,zt,void 0,Ln))return en;zt&&sr&&O&&(O=Qs([sr])<=Qs([O])?sr:O)}}}zt&&(sr=void 0)}else if(ff(at)&&c!==xu){const Xr=!!at.declaration.nameType,_s=Dg(at),da=tm(at);if(!(da&8)){if(!Xr&&_s.flags&8388608&&_s.objectType===He&&_s.indexType===Up(at))return-1;if(!ff(He)){const So=Xr?S0(at):Wf(at),ja=im(He,2),pl=da&4,Yp=pl?eP(So,ja):void 0;if(pl?!(Yp.flags&131072):Bn(So,ja,3)){const Vm=Dg(at),ay=Up(at),zk=_C(Vm,-98305);if(!Xr&&zk.flags&8388608&&zk.indexType===ay){if(en=Bn(He,zk.objectType,2,zt))return en}else{const Mv=Xr?Yp||So:Yp?oa([Yp,ay]):ay,Um=Eu(He,Mv);if(en=Bn(Um,Vm,3,zt))return en}}sr=O,bn(pr)}}}else if(ps&16777216){if(aC(at,Te,Zt,10))return 3;const Xr=at;if(!Xr.root.inferTypeParameters&&!bYe(Xr.root)&&!(He.flags&16777216&&He.root===Xr.root)){const _s=!ca(IJ(Xr.checkType),IJ(Xr.extendsType)),da=!_s&&ca(pb(Xr.checkType),pb(Xr.extendsType));if((en=_s?-1:Bn(He,ey(Xr),2,!1,void 0,Ln))&&(en&=da?-1:Bn(He,ty(Xr),2,!1,void 0,Ln),en))return en}}else if(ps&134217728){if(Di&134217728){if(c===lu)return GZe(He,at)?0:-1;zi(He,Pc)}if(tse(He,at))return-1}else if(at.flags&268435456&&!(He.flags&268435456)&&ese(He,at))return-1;if(Di&8650752){if(!(Di&8388608&&ps&8388608)){const Xr=cb(He)||jt;if(en=Bn(Xr,at,1,!1,void 0,Ln))return en;if(en=Bn(Uu(Xr,He),at,1,zt&&Xr!==jt&&!(ps&Di&262144),void 0,Ln))return en;if(Mre(He)){const _s=cb(He.indexType);if(_s&&(en=Bn(Eu(He.objectType,_s),at,1,zt)))return en}}}else if(Di&4194304){if(en=Bn(Ms,at,1,zt))return en}else if(Di&134217728&&!(ps&524288)){if(!(ps&134217728)){const Xr=B_(He);if(Xr&&Xr!==He&&(en=Bn(Xr,at,1,zt)))return en}}else if(Di&268435456)if(ps&268435456){if(He.symbol!==at.symbol)return 0;if(en=Bn(He.type,at.type,3,zt))return en}else{const Xr=B_(He);if(Xr&&(en=Bn(Xr,at,1,zt)))return en}else if(Di&16777216){if(aC(He,Se,St,10))return 3;if(ps&16777216){const _s=He.root.inferTypeParameters;let da=He.extendsType,So;if(_s){const ja=t7(_s,void 0,0,Zn);Lg(ja.inferences,at.extendsType,da,1536),da=zi(da,ja.mapper),So=ja.mapper}if(Pg(da,at.extendsType)&&(Bn(He.checkType,at.checkType,3)||Bn(at.checkType,He.checkType,3))&&((en=Bn(zi(ey(He),So),ey(at),3,zt))&&(en&=Bn(ty(He),ty(at),3,zt)),en))return en}else{const _s=jE(He)?e4e(He):void 0;if(_s&&(en=Bn(_s,at,1,zt)))return en}const Xr=Ore(He);if(Xr&&(en=Bn(Xr,at,1,zt)))return en}else{if(c!==$d&&c!==bf&&PXe(at)&&Ig(He))return-1;if(ff(at))return ff(He)&&(en=st(He,at,zt))?en:0;const Xr=!!(Di&402784252);if(c!==xu)He=Z_(He),Di=He.flags;else if(ff(He))return 0;if(Rr(He)&4&&Rr(at)&4&&He.target===at.target&&!la(He)&&!(RJ(He)||RJ(at))){if(zJ(He))return-1;const _s=Fie(He.target);if(_s===Ve)return 1;const da=qs(uo(He),uo(at),_s,Ln);if(da!==void 0)return da}else{if(oC(at)?Df(He,Cv):wf(at)&&Df(He,_s=>la(_s)&&!_s.target.readonly))return c!==xu?Bn(Q1(He,ye)||ke,Q1(at,ye)||ke,3,zt):0;if(A0(He)&&la(at)&&!A0(at)){const _s=Ag(He);if(_s!==He)return Bn(_s,at,1,zt)}else if((c===$d||c===bf)&&Ig(at)&&Rr(at)&8192&&!Ig(He))return 0}if(Di&2621440&&ps&524288){const _s=zt&&O===pr.errorInfo&&!Xr;if(en=Ni(He,at,_s,void 0,!1,Ln),en&&(en&=Ns(He,at,0,_s,Ln),en&&(en&=Ns(He,at,1,_s,Ln),en&&(en&=Bo(He,at,Xr,_s,Ln)))),$r&&en)O=sr||O||pr.errorInfo;else if(en)return en}if(Di&2621440&&ps&1048576){const _s=_C(at,36175872);if(_s.flags&1048576){const da=wt(He,_s);if(da)return da}}}return 0;function Qs(Xr){return Xr?E_(Xr,(_s,da)=>_s+1+Qs(da.next),0):0}function qs(Xr,_s,da,So){if(en=Tr(Xr,_s,da,zt,So))return en;if(dt(da,pl=>!!(pl&24))){sr=void 0,bn(pr);return}const ja=_s&&cZe(_s,da);if($r=!ja,da!==Ve&&!ja){if($r&&!(zt&&dt(da,pl=>(pl&7)===0)))return 0;sr=O,bn(pr)}}}function st(He,at,zt){if(c===lu||(c===xu?tm(He)===tm(at):Pre(He)<=Pre(at))){let pr;const en=Wf(at),sr=zi(Wf(He),Pre(He)<0?ls:Pc);if(pr=Bn(en,sr,3,zt)){const $r=uu([Up(He)],[Up(at)]);if(zi(S0(He),$r)===zi(S0(at),$r))return pr&Bn(zi(Dg(He),$r),Dg(at),3,zt)}}return 0}function wt(He,at){var zt;const Ln=Va(He),pr=a3e(Ln,at);if(!pr)return 0;let en=1;for(const qs of pr)if(en*=TKe(G1(qs)),en>25)return(zt=li)==null||zt.instant(li.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:He.id,targetId:at.id,numCombinations:en}),0;const sr=new Array(pr.length),$r=new Set;for(let qs=0;qsqs[da],!1,0,H||c===lu))continue e}$f(ps,_s,ly),Xr=!0}if(!Xr)return 0}let Qs=-1;for(const qs of ps)if(Qs&=Ni(He,qs,!1,$r,!1,0),Qs&&(Qs&=Ns(He,qs,0,!1,0),Qs&&(Qs&=Ns(He,qs,1,!1,0),Qs&&!(la(He)&&la(qs))&&(Qs&=Bo(He,qs,!1,!1,0)))),!Qs)return Qs;return Qs}function $t(He,at){if(!at||He.length===0)return He;let zt;for(let Ln=0;Ln5?ei(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Cn(He),Cn(at),an(en.slice(0,4),sr=>ii(sr)).join(", "),en.length-4):ei(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Cn(He),Cn(at),an(en,sr=>ii(sr)).join(", ")),pr&&O&&An++)}function Ni(He,at,zt,Ln,pr,en){if(c===xu)return Pi(He,at,Ln);let sr=-1;if(la(at)){if(Cv(He)){if(!at.target.readonly&&(oC(He)||la(He)&&He.target.readonly))return 0;const qs=C0(He),Xr=C0(at),_s=la(He)?He.target.combinedFlags&4:4,da=at.target.combinedFlags&4,So=la(He)?He.target.minLength:0,ja=at.target.minLength;if(!_s&&qs=Vm?Xr-1-Math.min(yt,ay):Um,Ur=at.target.elementFlags[dr];if(Ur&8&&!(Hu&8))return zt&&ei(p.Source_provides_no_match_for_variadic_element_at_position_0_in_target,dr),0;if(Hu&8&&!(Ur&12))return zt&&ei(p.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Um,dr),0;if(Ur&1&&!(Hu&1))return zt&&ei(p.Source_provides_no_match_for_required_element_at_position_0_in_target,dr),0;if(Mv&&((Hu&12||Ur&12)&&(Mv=!1),Mv&&(Ln==null?void 0:Ln.has(""+Um))))continue;const Kr=db(pl[Um],!!(Hu&Ur&2)),ti=Yp[dr],Ja=Hu&8&&Ur&4?$l(ti):db(ti,!!(Ur&2)),Is=Bn(Kr,Ja,3,zt,void 0,en);if(!Is)return zt&&(Xr>1||qs>1)&&(zk&&Um>=Vm&&yt>=ay&&Vm!==qs-ay-1?fs(p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Vm,qs-ay-1,dr):fs(p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Um,dr)),0;sr&=Is}return sr}if(at.target.combinedFlags&12)return 0}const $r=(c===$d||c===bf)&&!iy(He)&&!zJ(He)&&!la(He),Di=Zie(He,at,$r,!1);if(Di)return zt&&sn(He,at)&&wn(He,at,Di,$r),0;if(iy(at)){for(const qs of $t(Va(He),Ln))if(!hv(at,qs.escapedName)&&!($n(qs).flags&32768))return zt&&ei(p.Property_0_does_not_exist_on_type_1,ii(qs),Cn(at)),0}const ps=Va(at),Qs=la(He)&&la(at);for(const qs of $t(ps,Ln)){const Xr=qs.escapedName;if(!(qs.flags&4194304)&&(!Qs||sg(Xr)||Xr==="length")&&(!pr||qs.flags&16777216)){const _s=Ws(He,Xr);if(_s&&_s!==qs){const da=tn(He,at,_s,qs,G1,zt,en,c===lu);if(!da)return 0;sr&=da}}}return sr}function Pi(He,at,zt){if(!(He.flags&524288&&at.flags&524288))return 0;const Ln=$t(Oh(He),zt),pr=$t(Oh(at),zt);if(Ln.length!==pr.length)return 0;let en=-1;for(const sr of Ln){const $r=hv(at,sr.escapedName);if(!$r)return 0;const Di=Rie(sr,$r,Bn);if(!Di)return 0;en&=Di}return en}function Ns(He,at,zt,Ln,pr){var en,sr;if(c===xu)return ds(He,at,zt);if(at===po||He===po)return-1;const $r=He.symbol&&xd(He.symbol.valueDeclaration),Di=at.symbol&&xd(at.symbol.valueDeclaration),ps=As(He,$r&&zt===1?0:zt),Qs=As(at,Di&&zt===1?0:zt);if(zt===1&&ps.length&&Qs.length){const So=!!(ps[0].flags&4),ja=!!(Qs[0].flags&4);if(So&&!ja)return Ln&&ei(p.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Bg(ps[0],Qs[0],Ln))return 0}let qs=-1;const Xr=zt===1?ri:yr,_s=Rr(He),da=Rr(at);if(_s&64&&da&64&&He.symbol===at.symbol||_s&4&&da&4&&He.target===at.target)for(let So=0;SoRl(Vm,void 0,262144,zt);return ei(p.Type_0_is_not_assignable_to_type_1,Yp(ja),Yp(pl)),ei(p.Types_of_construct_signatures_are_incompatible),qs}}else{e:for(const So of Qs){const ja=Yn();let pl=Ln;for(const Yp of ps){const Vm=Zr(Yp,So,!0,pl,pr,Xr(Yp,So));if(Vm){qs&=Vm,bn(ja);continue e}pl=!1}return pl&&ei(p.Type_0_provides_no_match_for_the_signature_1,Cn(He),Rl(So,void 0,void 0,zt)),0}}return qs}function sn(He,at){const zt=rP(He,0),Ln=rP(He,1),pr=Oh(He);return(zt.length||Ln.length)&&!pr.length?!!(As(at,0).length&&zt.length||As(at,1).length&&Ln.length):!0}function yr(He,at){return He.parameters.length===0&&at.parameters.length===0?(zt,Ln)=>fs(p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Cn(zt),Cn(Ln)):(zt,Ln)=>fs(p.Call_signature_return_types_0_and_1_are_incompatible,Cn(zt),Cn(Ln))}function ri(He,at){return He.parameters.length===0&&at.parameters.length===0?(zt,Ln)=>fs(p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Cn(zt),Cn(Ln)):(zt,Ln)=>fs(p.Construct_signature_return_types_0_and_1_are_incompatible,Cn(zt),Cn(Ln))}function Zr(He,at,zt,Ln,pr,en){const sr=c===$d?16:c===bf?24:0;return Aie(zt?VE(He):He,zt?VE(at):at,sr,Ln,ei,en,$r,Pc);function $r(Di,ps,Qs){return Bn(Di,ps,3,Qs,void 0,pr)}}function ds(He,at,zt){const Ln=As(He,zt),pr=As(at,zt);if(Ln.length!==pr.length)return 0;let en=-1;for(let sr=0;srDi.keyType===F);let $r=-1;for(const Di of en){const ps=c!==bf&&!zt&&sr&&Di.type.flags&1?-1:ff(He)&&sr?Bn(Dg(He),Di.type,3,Ln):Xa(He,Di,Ln,pr);if(!ps)return 0;$r&=ps}return $r}function Xa(He,at,zt,Ln){const pr=iP(He,at.keyType);return pr?Xs(pr,at,zt,Ln):!(Ln&1)&&(c!==bf||Rr(He)&8192)&&$J(He)?Dc(He,at,zt,Ln):(zt&&ei(p.Index_signature_for_type_0_is_missing_in_type_1,Cn(at.keyType),Cn(He)),0)}function Af(He,at){const zt=x_(He),Ln=x_(at);if(zt.length!==Ln.length)return 0;for(const pr of Ln){const en=Rm(He,pr.keyType);if(!(en&&Bn(en.type,pr.type,3)&&en.isReadonly===pr.isReadonly))return 0}return-1}function Bg(He,at,zt){if(!He.declaration||!at.declaration)return!0;const Ln=Gx(He.declaration,24),pr=Gx(at.declaration,24);return pr===8||pr===16&&Ln!==8||pr!==16&&!Ln?!0:(zt&&ei(p.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,U1(Ln),U1(pr)),!1)}}function Iie(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!pn(n.types,Iie);if(n.flags&465829888){const s=cb(n);if(s&&s!==n)return Iie(s)}return $p(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function PCe(n,s){return la(n)&&la(s)?Ve:Va(s).filter(c=>MJ(Wc(n,c.escapedName),$n(c)))}function MJ(n,s){return!!n&&!!s&&Yo(n,32768)&&!!KE(s)}function aZe(n){return Va(n).filter(s=>KE($n(s)))}function ICe(n,s,c=wie){return W7e(n,s,c)||lot(n,s)||_ot(n,s)||uot(n,s)||fot(n,s)}function Oie(n,s,c){const _=n.types,d=_.map(T=>T.flags&402784252?0:-1);for(const[T,P]of s){let O=!1;for(let $=0;$<_.length;$++)if(d[$]){const re=X4(_[$],P);re&&c(T(),re)?O=!0:d[$]=3}for(let $=0;$<_.length;$++)d[$]===3&&(d[$]=O?0:-1)}const h=ys(d,0)?Jr(_.filter((T,P)=>d[P]),0):n;return h.flags&131072?n:h}function OCe(n){if(n.flags&524288){const s=Wp(n);return s.callSignatures.length===0&&s.constructSignatures.length===0&&s.indexInfos.length===0&&s.properties.length>0&&Xi(s.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?Xi(n.types,OCe):!1}function oZe(n,s,c){for(const _ of Va(n))if(Ase(s,_.escapedName,c))return!0;return!1}function Fie(n){return n===vt||n===vn||n.objectFlags&8?Y:LCe(n.symbol,n.typeParameters)}function FCe(n){return LCe(n,Mi(n).typeParameters)}function LCe(n,s=Ve){var c,_;const d=Mi(n);if(!d.variances){(c=li)==null||c.push(li.Phase.CheckTypes,"getVariancesWorker",{arity:s.length,id:S_(mo(n))});const h=hh;hh||(hh=!0,qy=gh.length),d.variances=Ve;const T=[];for(const P of s){const O=Lie(P);let $=O&65536?O&32768?0:1:O&32768?2:void 0;if($===void 0){let re=!1,ce=!1;const Se=za;za=St=>St?ce=!0:re=!0;const Te=yP(n,P,pc),Ze=yP(n,P,h_);$=(ca(Ze,Te)?1:0)|(ca(Te,Ze)?2:0),$===3&&ca(yP(n,P,M_),Te)&&($=4),za=Se,(re||ce)&&(re&&($|=8),ce&&($|=16))}T.push($)}h||(hh=!1,qy=0),d.variances=T,(_=li)==null||_.pop({variances:T.map(E.formatVariance)})}return d.variances}function yP(n,s,c){const _=Sv(s,c),d=mo(n);if(q(d))return d;const h=n.flags&524288?wk(n,w0(Mi(n).typeParameters,_)):k0(d,w0(d.typeParameters,_));return kt.add(S_(h)),h}function RJ(n){return kt.has(S_(n))}function Lie(n){var s;return E_((s=n.symbol)==null?void 0:s.declarations,(c,_)=>c|I_(_),0)&100352}function cZe(n,s){for(let c=0;c!!(s.flags&262144)||BJ(s))}function uZe(n,s,c,_){const d=[];let h="";const T=O(n,0),P=O(s,0);return`${h}${T},${P}${c}`;function O($,re=0){let ce=""+$.target.id;for(const Se of uo($)){if(Se.flags&262144){if(_||lZe(Se)){let Te=d.indexOf(Se);Te<0&&(Te=d.length,d.push(Se)),ce+="="+Te;continue}h="*"}else if(re<4&&BJ(Se)){ce+="<"+O(Se,re+1)+">";continue}ce+="-"+Se.id}return ce}}function Mie(n,s,c,_,d){if(_===xu&&n.id>s.id){const T=n;n=s,s=T}const h=c?":"+c:"";return BJ(n)&&BJ(s)?uZe(n,s,h,d):`${n.id},${s.id}${h}`}function vP(n,s){if(rc(n)&6){for(const c of n.links.containingType.types){const _=Ws(c,n.escapedName),d=_&&vP(_,s);if(d)return d}return}return s(n)}function _x(n){return n.parent&&n.parent.flags&32?mo(X_(n)):void 0}function jJ(n){const s=_x(n),c=s&&To(s)[0];return c&&Wc(c,n.escapedName)}function fZe(n,s){return vP(n,c=>{const _=_x(c);return _?bk(_,s):!1})}function pZe(n,s){return!vP(s,c=>Lf(c)&16?!fZe(n,_x(c)):!1)}function MCe(n,s,c){return vP(s,_=>Lf(_,c)&16?!bk(n,_x(_)):!1)?void 0:n}function aC(n,s,c,_=3){if(c>=_){if(n.flags&2097152)return dt(n.types,P=>aC(P,s,c,_));const d=bP(n);let h=0,T=0;for(let P=0;PbP($)===d):bP(O)===d){if(O.id>=T&&(h++,h>=_))return!0;T=O.id}}}return!1}function bP(n){if(n.flags&524288&&!nse(n)){if(Rr(n)&4&&n.node)return n.node;if(n.symbol&&!(Rr(n)&16&&n.symbol.flags&32))return n.symbol;if(la(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function dZe(n,s){return Rie(n,s,$E)!==0}function Rie(n,s,c){if(n===s)return-1;const _=Lf(n)&24,d=Lf(s)&24;if(_!==d)return 0;if(_){if(Bk(n)!==Bk(s))return 0}else if((n.flags&16777216)!==(s.flags&16777216))return 0;return Qp(n)!==Qp(s)?0:c($n(n),$n(s))}function mZe(n,s,c){const _=qu(n),d=qu(s),h=Sd(n),T=Sd(s),P=sm(n),O=sm(s);return!!(_===d&&h===T&&P===O||c&&h<=T)}function TP(n,s,c,_,d,h){if(n===s)return-1;if(!mZe(n,s,c)||Nn(n.typeParameters)!==Nn(s.typeParameters))return 0;if(s.typeParameters){const O=uu(n.typeParameters,s.typeParameters);for(let $=0;$s|(c.flags&1048576?RCe(c.types):c.flags),0)}function yZe(n){if(n.length===1)return n[0];const s=H?cl(n,_=>ol(_,d=>!(d.flags&98304))):n,c=hZe(s)?Jr(s):E_(s,(_,d)=>Jh(_,d)?d:_);return s===n?c:WJ(c,RCe(n)&98304)}function vZe(n){return E_(n,(s,c)=>Jh(c,s)?c:s)}function wf(n){return!!(Rr(n)&4)&&(n.target===vt||n.target===vn)}function oC(n){return!!(Rr(n)&4)&&n.target===vn}function Cv(n){return wf(n)||la(n)}function JJ(n){return wf(n)&&!oC(n)||la(n)&&!n.target.readonly}function Bie(n){return wf(n)?uo(n)[0]:void 0}function D0(n){return wf(n)||!(n.flags&98304)&&ca(n,Et)}function jie(n){if(!(Rr(n)&4)||!(Rr(n.target)&3))return;if(Rr(n)&33554432)return Rr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const s=n.target;if(Rr(s)&1){const d=Ar(s);if(d&&d.expression.kind!==80&&d.expression.kind!==211)return}const c=To(s);if(c.length!==1||Ih(n.symbol).size)return;let _=Nn(s.typeParameters)?zi(c[0],uu(s.typeParameters,uo(n).slice(0,s.typeParameters.length))):c[0];return Nn(uo(n))>Nn(s.typeParameters)&&(_=Uu(_,ka(uo(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=_}function BCe(n){return H?n===ea:n===hi}function zJ(n){const s=Bie(n);return!!s&&BCe(s)}function cC(n){let s;return la(n)||!!Ws(n,"0")||D0(n)&&!!(s=Wc(n,"length"))&&Df(s,c=>!!(c.flags&256))}function VJ(n){return D0(n)||cC(n)}function bZe(n,s){const c=Wc(n,""+s);if(c)return c;if(Df(n,la))return VCe(n,s,j.noUncheckedIndexedAccess?Nt:void 0)}function TZe(n){return!(n.flags&240544)}function $p(n){return!!(n.flags&109472)}function jCe(n){const s=Ag(n);return s.flags&2097152?dt(s.types,$p):$p(s)}function xZe(n){return n.flags&2097152&&Or(n.types,$p)||n}function YE(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Xi(n.types,$p):$p(n)}function Vh(n){return n.flags&1056?_J(n):n.flags&402653312?F:n.flags&256?ye:n.flags&2048?Oe:n.flags&512?kn:n.flags&1048576?SZe(n):n}function SZe(n){var c;const s=`B${S_(n)}`;return(c=Qy(s))!=null?c:UT(s,xo(n,Vh))}function Jie(n){return n.flags&402653312?F:n.flags&288?ye:n.flags&2048?Oe:n.flags&512?kn:n.flags&1048576?xo(n,Jie):n}function Ev(n){return n.flags&1056&&xv(n)?_J(n):n.flags&128&&xv(n)?F:n.flags&256&&xv(n)?ye:n.flags&2048&&xv(n)?Oe:n.flags&512&&xv(n)?kn:n.flags&1048576?xo(n,Ev):n}function JCe(n){return n.flags&8192?ir:n.flags&1048576?xo(n,JCe):n}function zie(n,s){return Dz(n,s)||(n=JCe(Ev(n))),j_(n)}function kZe(n,s,c){if(n&&$p(n)){const _=s?c?y7(s):s:void 0;n=zie(n,_)}return n}function Vie(n,s,c,_){if(n&&$p(n)){const d=s?Iv(c,s,_):void 0;n=zie(n,d)}return n}function la(n){return!!(Rr(n)&4&&n.target.objectFlags&8)}function A0(n){return la(n)&&!!(n.target.combinedFlags&8)}function zCe(n){return A0(n)&&n.target.elementFlags.length===1}function UJ(n){return lC(n,n.target.fixedLength)}function VCe(n,s,c){return xo(n,_=>{const d=_,h=UJ(d);return h?c&&s>=cie(d.target)?Jr([h,c]):h:Nt})}function CZe(n){const s=UJ(n);return s&&$l(s)}function lC(n,s,c=0,_=!1,d=!1){const h=C0(n)-c;if(s(c&12)===(s.target.elementFlags[_]&12))}function UCe({value:n}){return n.base10Value==="0"}function WCe(n){return ol(n,s=>!!(k_(s)&4194304))}function wZe(n){return xo(n,DZe)}function DZe(n){return n.flags&4?FT:n.flags&8?V4:n.flags&64?l0:n===Tt||n===We||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&UCe(n)?n:jn}function WJ(n,s){const c=s&~n.flags&98304;return c===0?n:Jr(c===32768?[n,Nt]:c===65536?[n,W]:[n,Nt,W])}function N0(n,s=!1){E.assert(H);const c=s?B:Nt;return n===c||n.flags&1048576&&n.types[0]===c?n:Jr([n,c])}function AZe(n){return Xt||(Xt=tC("NonNullable",524288,void 0)||it),Xt!==it?wk(Xt,[n]):oa([n,Li])}function Fg(n){return H?hb(n,2097152):n}function qCe(n){return H?Jr([n,le]):n}function qJ(n){return H?tz(n,le):n}function HJ(n,s,c){return c?GC(s)?N0(n):qCe(n):n}function ZE(n,s){return t9(s)?Fg(n):c_(s)?qJ(n):n}function db(n,s){return be&&s?tz(n,z):n}function KE(n){return n===z||!!(n.flags&1048576)&&n.types[0]===z}function GJ(n){return be?tz(n,z):Gf(n,524288)}function NZe(n,s){return(n.flags&524)!==0&&(s.flags&28)!==0}function $J(n){const s=Rr(n);return n.flags&2097152?Xi(n.types,$J):!!(n.symbol&&(n.symbol.flags&7040)!==0&&!(n.symbol.flags&32)&&!Wz(n))||!!(s&4194304)||!!(s&1024&&$J(n.source))}function mb(n,s){const c=Pa(n.flags,n.escapedName,rc(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=s,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);const _=Mi(n).nameType;return _&&(c.links.nameType=_),c}function PZe(n,s){const c=Vs();for(const _ of Oh(n)){const d=$n(_),h=s(d);c.set(_.escapedName,h===d?_:mb(_,h))}return c}function e7(n){if(!(iy(n)&&Rr(n)&8192))return n;const s=n.regularType;if(s)return s;const c=n,_=PZe(n,e7),d=gc(c.symbol,_,c.callSignatures,c.constructSignatures,c.indexInfos);return d.flags=c.flags,d.objectFlags|=c.objectFlags&-8193,n.regularType=d,d}function HCe(n,s,c){return{parent:n,propertyName:s,siblings:c,resolvedProperties:void 0}}function GCe(n){if(!n.siblings){const s=[];for(const c of GCe(n.parent))if(iy(c)){const _=hv(c,n.propertyName);_&&yb($n(_),d=>{s.push(d)})}n.siblings=s}return n.siblings}function IZe(n){if(!n.resolvedProperties){const s=new Map;for(const c of GCe(n))if(iy(c)&&!(Rr(c)&2097152))for(const _ of Va(c))s.set(_.escapedName,_);n.resolvedProperties=ra(s.values())}return n.resolvedProperties}function OZe(n,s){if(!(n.flags&4))return n;const c=$n(n),_=s&&HCe(s,n.escapedName,void 0),d=Uie(c,_);return d===c?n:mb(n,d)}function FZe(n){const s=ut.get(n.escapedName);if(s)return s;const c=mb(n,B);return c.flags|=16777216,ut.set(n.escapedName,c),c}function LZe(n,s){const c=Vs();for(const d of Oh(n))c.set(d.escapedName,OZe(d,s));if(s)for(const d of IZe(s))c.has(d.escapedName)||c.set(d.escapedName,FZe(d));const _=gc(n.symbol,c,Ve,Ve,cl(x_(n),d=>rm(d.keyType,Wu(d.type),d.isReadonly)));return _.objectFlags|=Rr(n)&266240,_}function Wu(n){return Uie(n,void 0)}function Uie(n,s){if(Rr(n)&196608){if(s===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=ke;else if(iy(n))c=LZe(n,s);else if(n.flags&1048576){const _=s||HCe(void 0,void 0,n.types),d=cl(n.types,h=>h.flags&98304?h:Uie(h,_));c=Jr(d,dt(d,Ig)?2:1)}else n.flags&2097152?c=oa(cl(n.types,Wu)):Cv(n)&&(c=k0(n.target,cl(uo(n),Wu)));return c&&s===void 0&&(n.widened=c),c||n}return n}function XJ(n){let s=!1;if(Rr(n)&65536){if(n.flags&1048576)if(dt(n.types,Ig))s=!0;else for(const c of n.types)XJ(c)&&(s=!0);if(Cv(n))for(const c of uo(n))XJ(c)&&(s=!0);if(iy(n))for(const c of Oh(n)){const _=$n(c);Rr(_)&65536&&(XJ(_)||Fe(c.valueDeclaration,p.Object_literal_s_property_0_implicitly_has_an_1_type,ii(c),Cn(Wu(_))),s=!0)}}return s}function ry(n,s,c){const _=Cn(Wu(s));if(Kn(n)&&!LD(Rn(n),j))return;let d;switch(n.kind){case 226:case 172:case 171:d=fe?p.Member_0_implicitly_has_an_1_type:p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const h=n;if(we(h.name)){const T=py(h.name);if((X6(h.parent)||ag(h.parent)||og(h.parent))&&h.parent.parameters.indexOf(h)>-1&&(Lc(h,h.name.escapedText,788968,void 0,h.name.escapedText,!0)||T&&Jq(T))){const P="arg"+h.parent.parameters.indexOf(h),O=no(h.name)+(h.dotDotDotToken?"[]":"");Tf(fe,n,p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,P,O);return}}d=n.dotDotDotToken?fe?p.Rest_parameter_0_implicitly_has_an_any_type:p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:fe?p.Parameter_0_implicitly_has_an_1_type:p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(d=p.Binding_element_0_implicitly_has_an_1_type,!fe)return;break;case 324:Fe(n,p.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return;case 330:fe&&u8(n.parent)&&Fe(n.parent.tagName,p.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,_);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(fe&&!n.name){c===3?Fe(n,p.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,_):Fe(n,p.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return}d=fe?c===3?p._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:fe&&Fe(n,p.Mapped_object_type_implicitly_has_an_any_template_type);return;default:d=fe?p.Variable_0_implicitly_has_an_1_type:p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Tf(fe,n,d,no(os(n)),_)}function QJ(n,s,c){r(()=>{fe&&Rr(s)&65536&&(!c||!Sse(n))&&(XJ(s)||ry(n,s,c))})}function Wie(n,s,c){const _=qu(n),d=qu(s),h=u7(n),T=u7(s),P=T?d-1:d,O=h?P:Math.min(_,P),$=Y1(n);if($){const re=Y1(s);re&&c($,re)}for(let re=0;res.typeParameter),an(n.inferences,(s,c)=>()=>(s.isFixed||(jZe(n),YJ(n.inferences),s.isFixed=!0),rse(n,c))))}function BZe(n){return xie(an(n.inferences,s=>s.typeParameter),an(n.inferences,(s,c)=>()=>rse(n,c)))}function YJ(n){for(const s of n)s.isFixed||(s.inferredType=void 0)}function Gie(n,s,c){var _;((_=n.intraExpressionInferenceSites)!=null?_:n.intraExpressionInferenceSites=[]).push({node:s,type:c})}function jZe(n){if(n.intraExpressionInferenceSites){for(const{node:s,type:c}of n.intraExpressionInferenceSites){const _=s.kind===174?z3e(s,2):eu(s,2);_&&Lg(n.inferences,c,_)}n.intraExpressionInferenceSites=void 0}}function $ie(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function $Ce(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function JZe(n){const s=zr(n.inferences,Mk);return s.length?Hie(an(s,$Ce),n.signature,n.flags,n.compareTypes):void 0}function Xie(n){return n&&n.mapper}function wv(n){const s=Rr(n);if(s&524288)return!!(s&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!XCe(n)&&(s&4&&(n.node||dt(uo(n),wv))||s&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||s&12583968)||n.flags&137363456&&!(n.flags&1024)&&!XCe(n)&&dt(n.types,wv));return n.flags&138117121&&(n.objectFlags|=524288|(c?1048576:0)),c}function XCe(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const s=lc(n.aliasSymbol,265);return!!(s&&In(s.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function n7(n,s,c=0){return!!(n===s||n.flags&3145728&&dt(n.types,_=>n7(_,s,c))||c<3&&n.flags&16777216&&(n7(ey(n),s,c+1)||n7(ty(n),s,c+1)))}function zZe(n,s){const c=qf(n);return c?!!c.type&&n7(c.type,s):n7(Ua(n),s)}function VZe(n){const s=Vs();yb(n,_=>{if(!(_.flags&128))return;const d=Ho(_.value),h=Pa(4,d);h.links.type=ke,_.symbol&&(h.declarations=_.symbol.declarations,h.valueDeclaration=_.symbol.valueDeclaration),s.set(d,h)});const c=n.flags&4?[rm(F,Li,!1)]:Ve;return gc(void 0,s,Ve,Ve,c)}function QCe(n,s,c){const _=n.id+","+s.id+","+c.id;if(Ic.has(_))return Ic.get(_);const d=n.id+","+(s.target||s).id;if(ys(dc,d))return;dc.push(d);const h=UZe(n,s,c);return dc.pop(),Ic.set(_,h),h}function Qie(n){return!(Rr(n)&262144)||iy(n)&&dt(Va(n),s=>Qie($n(s)))||la(n)&&dt(Z1(n),Qie)}function UZe(n,s,c){if(!(Rm(n,F)||Va(n).length!==0&&Qie(n)))return;if(wf(n))return $l(ZJ(uo(n)[0],s,c),oC(n));if(la(n)){const d=an(Z1(n),T=>ZJ(T,s,c)),h=tm(s)&4?cl(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return Hp(d,h,n.target.readonly,n.target.labeledElementDeclarations)}const _=Jf(1040,void 0);return _.source=n,_.mappedType=s,_.constraintType=c,_}function WZe(n){const s=Mi(n);return s.type||(s.type=ZJ(n.links.propertyType,n.links.mappedType,n.links.constraintType)),s.type}function ZJ(n,s,c){const _=Eu(c.type,Up(s)),d=Dg(s),h=$ie(_);return Lg([h],n,d),YCe(h)||jt}function*Yie(n,s,c,_){const d=Va(s);for(const h of d)if(!z6e(h)&&(c||!(h.flags&16777216||rc(h)&48))){const T=Ws(n,h.escapedName);if(!T)yield h;else if(_){const P=$n(h);if(P.flags&109472){const O=$n(T);O.flags&1||j_(O)===j_(P)||(yield h)}}}}function Zie(n,s,c,_){return _I(Yie(n,s,c,_))}function qZe(n,s){return!(s.target.combinedFlags&8)&&s.target.minLength>n.target.minLength||!s.target.hasRestElement&&(n.target.hasRestElement||s.target.fixedLengthax(h,d),n)===n&&ese(n,s)}return!1}function XZe(n,s){if(n===s||s.flags&5)return!0;if(n.flags&128){const c=n.value;return!!(s.flags&8&&KCe(c,!1)||s.flags&64&&kO(c,!1)||s.flags&98816&&c===s.intrinsicName||s.flags&268435456&&ese(K_(c),s))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&ca(n.types[0],s)}return ca(n,s)}function e3e(n,s){return n.flags&128?t3e([n.value],Ve,s):n.flags&134217728?P7(n.texts,s.texts)?an(n.types,QZe):t3e(n.texts,n.types,s):void 0}function tse(n,s){const c=e3e(n,s);return!!c&&Xi(c,(_,d)=>XZe(_,s.types[d]))}function QZe(n){return n.flags&402653317?n:fb(["",""],[n])}function t3e(n,s,c){const _=n.length-1,d=n[0],h=n[_],T=c.texts,P=T.length-1,O=T[0],$=T[P];if(_===0&&d.length0){let Gn=Se,An=Te;for(;An=Ze(Gn).indexOf(_n,An),!(An>=0);){if(Gn++,Gn===n.length)return;An=0}St(Gn,An),Te+=_n.length}else if(Te!ys(Ts,Da)):Tn,Wi?zr(Zn,Da=>!ys(Wi,Da)):Zn]}function An(Tn,Zn,Bn){const Ts=Tn.length!!Ht(Wi));if(!Ts||Zn&&Ts!==Zn)return;Zn=Ts}return Zn}function bn(Tn,Zn,Bn){let Ts=0;if(Bn&1048576){let Wi;const Da=Tn.flags&1048576?Tn.types:[Tn],fo=new Array(Da.length);let jc=!1;for(const pa of Zn)if(Ht(pa))Wi=pa,Ts++;else for(let z_=0;z_fo[Qe]?void 0:z_);if(pa.length){Te(Jr(pa),Wi);return}}}else for(const Wi of Zn)Ht(Wi)?Ts++:Te(Tn,Wi);if(Bn&2097152?Ts===1:Ts>0)for(const Wi of Zn)Ht(Wi)&&Ze(Tn,Wi,1)}function Yn(Tn,Zn,Bn){if(Bn.flags&1048576){let Ts=!1;for(const Wi of Bn.types)Ts=Yn(Tn,Zn,Wi)||Ts;return Ts}if(Bn.flags&4194304){const Ts=Ht(Bn.type);if(Ts&&!Ts.isFixed&&!ZCe(Tn)){const Wi=QCe(Tn,Zn,Bn);Wi&&Ze(Wi,Ts.typeParameter,Rr(Tn)&262144?16:8)}return!0}if(Bn.flags&262144){Ze(im(Tn,Tn.pattern?2:0),Bn,32);const Ts=cb(Bn);if(Ts&&Yn(Tn,Zn,Ts))return!0;const Wi=an(Va(Tn),$n),Da=an(x_(Tn),fo=>fo!==yn?fo.type:jn);return Te(Jr(es(Wi,Da)),Dg(Zn)),!0}return!1}function fs(Tn,Zn){if(Tn.flags&16777216)Te(Tn.checkType,Zn.checkType),Te(Tn.extendsType,Zn.extendsType),Te(ey(Tn),ey(Zn)),Te(ty(Tn),ty(Zn));else{const Bn=[ey(Zn),ty(Zn)];Zt(Tn,Bn,Zn.flags,d?64:0)}}function Vi(Tn,Zn){const Bn=e3e(Tn,Zn),Ts=Zn.types;if(Bn||Xi(Zn.texts,Wi=>Wi.length===0))for(let Wi=0;Wime|Wn.flags,0);if(!(Qe&4)){const me=Da.value;Qe&296&&!KCe(me,!0)&&(Qe&=-297),Qe&2112&&!kO(me,!0)&&(Qe&=-2113);const Wn=E_(z_,(Mn,mr)=>mr.flags&Qe?Mn.flags&4?Mn:mr.flags&4?Da:Mn.flags&134217728?Mn:mr.flags&134217728&&tse(Da,mr)?Da:Mn.flags&268435456?Mn:mr.flags&268435456&&me===eCe(mr.symbol,me)?Da:Mn.flags&128?Mn:mr.flags&128&&mr.value===me?mr:Mn.flags&8?Mn:mr.flags&8?Gp(+me):Mn.flags&32?Mn:mr.flags&32?Gp(+me):Mn.flags&256?Mn:mr.flags&256&&mr.value===+me?mr:Mn.flags&64?Mn:mr.flags&64?$Ze(me):Mn.flags&2048?Mn:mr.flags&2048&&u2(mr.value)===me?mr:Mn.flags&16?Mn:mr.flags&16?me==="true"?It:me==="false"?We:kn:Mn.flags&512?Mn:mr.flags&512&&mr.intrinsicName===me?mr:Mn.flags&32768?Mn:mr.flags&32768&&mr.intrinsicName===me?mr:Mn.flags&65536?Mn:mr.flags&65536&&mr.intrinsicName===me?mr:Mn:Mn,jn);if(!(Wn.flags&131072)){Te(Wn,fo);continue}}}}Te(Da,fo)}}function ei(Tn,Zn){var Bn,Ts;if(Rr(Tn)&4&&Rr(Zn)&4&&(Tn.target===Zn.target||wf(Tn)&&wf(Zn))){An(uo(Tn),uo(Zn),Fie(Tn.target));return}if(ff(Tn)&&ff(Zn)){Te(Wf(Tn),Wf(Zn)),Te(Dg(Tn),Dg(Zn));const Wi=S0(Tn),Da=S0(Zn);Wi&&Da&&Te(Wi,Da)}if(Rr(Zn)&32&&!Zn.declaration.nameType){const Wi=Wf(Zn);if(Yn(Tn,Zn,Wi))return}if(!HZe(Tn,Zn)){if(Cv(Tn)){if(la(Zn)){const Wi=C0(Tn),Da=C0(Zn),fo=uo(Zn),jc=Zn.target.elementFlags;if(la(Tn)&&EZe(Tn,Zn)){for(let Qe=0;Qe1){const s=zr(n,nse);if(s.length){const c=Jr(s,2);return es(zr(n,_=>!nse(_)),[c])}}return n}function tKe(n){return n.priority&416?oa(n.contraCandidates):vZe(n.contraCandidates)}function nKe(n,s){const c=eKe(n.candidates),_=KZe(n.typeParameter)||Sk(n.typeParameter),d=!_&&n.topLevel&&(n.isFixed||!zZe(s,n.typeParameter)),h=_?cl(c,j_):d?cl(c,Ev):c,T=n.priority&416?Jr(h,2):yZe(h);return Wu(T)}function rse(n,s){const c=n.inferences[s];if(!c.inferredType){let _,d;if(n.signature){const T=c.candidates?nKe(c,n.signature):void 0,P=c.contraCandidates?tKe(c):void 0;if(T||P){const O=T&&(!P||!(T.flags&131072)&&dt(c.contraCandidates,$=>Jh(T,$))&&Xi(n.inferences,$=>$!==c&&s_($.typeParameter)!==c.typeParameter||Xi($.candidates,re=>Jh(re,T))));_=O?T:P,d=O?P:T}else if(n.flags&1)_=oi;else{const O=lb(c.typeParameter);O&&(_=zi(O,IYe(PYe(n,s),n.nonFixingMapper)))}}else _=YCe(c);c.inferredType=_||ise(!!(n.flags&2));const h=s_(c.typeParameter);if(h){const T=zi(h,n.nonFixingMapper);(!_||_===K||!n.compareTypes(_,Uu(T,_)))&&(c.inferredType=d&&n.compareTypes(d,Uu(T,d))?d:T)}}return c.inferredType}function ise(n){return n?ke:jt}function sse(n){const s=[];for(let c=0;cf_(s)||Dp(s)||ef(s)))}function KJ(n,s,c,_){switch(n.kind){case 80:if(!Hx(n)){const T=yp(n);return T!==it?`${_?Ra(_):"-1"}|${S_(s)}|${S_(c)}|${ya(T)}`:void 0}case 110:return`0|${_?Ra(_):"-1"}|${S_(s)}|${S_(c)}`;case 235:case 217:return KJ(n.expression,s,c,_);case 166:const d=KJ(n.left,s,c,_);return d&&d+"."+n.right.escapedText;case 211:case 212:const h=gb(n);if(h!==void 0){const T=KJ(n.expression,s,c,_);return T&&T+"."+h}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Ra(n)}#${S_(s)}`}}function Bl(n,s){switch(s.kind){case 217:case 235:return Bl(n,s.expression);case 226:return Kl(s)&&Bl(n,s.left)||rr(s)&&s.operatorToken.kind===28&&Bl(n,s.right)}switch(n.kind){case 236:return s.kind===236&&n.keywordToken===s.keywordToken&&n.name.escapedText===s.name.escapedText;case 80:case 81:return Hx(n)?s.kind===110:s.kind===80&&yp(n)===yp(s)||(Ri(s)||Oa(s))&&Q_(yp(n))===vr(s);case 110:return s.kind===110;case 108:return s.kind===108;case 235:case 217:return Bl(n.expression,s);case 211:case 212:const c=gb(n),_=Mo(s)?gb(s):void 0;return c!==void 0&&_!==void 0&&_===c&&Bl(n.expression,s.expression);case 166:return Mo(s)&&n.right.escapedText===gb(s)&&Bl(n.left,s.expression);case 226:return rr(n)&&n.operatorToken.kind===28&&Bl(n.right,s)}return!1}function gb(n){if(kr(n))return n.name.escapedText;if(No(n))return rKe(n);if(Oa(n)){const s=si(n);return s?Ho(s):void 0}if(rs(n))return""+n.parent.parameters.indexOf(n)}function r3e(n){return n.flags&8192?n.escapedName:n.flags&384?Ho(""+n.value):void 0}function rKe(n){return Of(n.argumentExpression)?Ho(n.argumentExpression.text):Tc(n.argumentExpression)?i3e(n.argumentExpression):void 0}function i3e(n){const s=Qo(n,111551,!0);if(!s||!(uC(s)||s.flags&8))return;const c=s.valueDeclaration;if(c===void 0)return;const _=Ci(c);if(_){const d=r3e(_);if(d!==void 0)return d}if(Lb(c)&&Qd(c,n)){const d=Hw(c);if(d)return r3e(a_(d));if(b2(c))return f6(c.name)}}function s3e(n,s){for(;Mo(n);)if(n=n.expression,Bl(n,s))return!0;return!1}function ux(n,s){for(;c_(n);)if(n=n.expression,Bl(n,s))return!0;return!1}function r7(n,s){if(n&&n.flags&1048576){const c=s4e(n,s);if(c&&rc(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!iC($n(c))),!!c.links.isDiscriminantProperty}return!1}function a3e(n,s){let c;for(const _ of n)if(r7(s,_.escapedName)){if(c){c.push(_);continue}c=[_]}return c}function iKe(n,s){const c=new Map;let _=0;for(const d of n)if(d.flags&61603840){const h=Wc(d,s);if(h){if(!YE(h))return;let T=!1;yb(h,P=>{const O=S_(j_(P)),$=c.get(O);$?$!==jt&&(c.set(O,jt),T=!0):c.set(O,d)}),T||_++}}return _>=10&&_*2>=n.length?c:void 0}function xP(n){const s=n.types;if(!(s.length<10||Rr(n)&32768||M0(s,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=pn(s,d=>d.flags&59506688?pn(Va(d),h=>$p($n(h))?h.escapedName:void 0):void 0),_=c&&iKe(s,c);n.keyPropertyName=_?c:"",n.constituentMap=_}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function SP(n,s){var c;const _=(c=n.constituentMap)==null?void 0:c.get(S_(j_(s)));return _!==jt?_:void 0}function o3e(n,s){const c=xP(n),_=c&&Wc(s,c);return _&&SP(n,_)}function sKe(n,s){const c=xP(n),_=c&&Or(s.properties,h=>h.symbol&&h.kind===303&&h.symbol.escapedName===c&&NP(h.initializer)),d=_&&XP(_.initializer);return d&&SP(n,d)}function c3e(n,s){return Bl(n,s)||s3e(n,s)}function l3e(n,s){if(n.arguments){for(const c of n.arguments)if(c3e(s,c))return!0}return!!(n.expression.kind===211&&c3e(s,n.expression.expression))}function ose(n){return(!n.id||n.id<0)&&(n.id=L$,L$++),n.id}function aKe(n,s){if(!(n.flags&1048576))return ca(n,s);for(const c of n.types)if(ca(c,s))return!0;return!1}function oKe(n,s){var _;if(n===s)return n;if(s.flags&131072)return s;const c=`A${S_(n)},${S_(s)}`;return(_=Qy(c))!=null?_:UT(c,cKe(n,s))}function cKe(n,s){const c=ol(n,d=>aKe(s,d)),_=s.flags&512&&xv(s)?xo(c,cx):c;return ca(s,_)?_:n}function cse(n){const s=Wp(n);return!!(s.callSignatures.length||s.constructSignatures.length||s.members.get("bind")&&Jh(n,Vo))}function k_(n){n.flags&467927040&&(n=B_(n)||jt);const s=n.flags;if(s&268435460)return H?16317953:16776705;if(s&134217856){const c=s&128&&n.value==="";return H?c?12123649:7929345:c?12582401:16776705}if(s&40)return H?16317698:16776450;if(s&256){const c=n.value===0;return H?c?12123394:7929090:c?12582146:16776450}if(s&64)return H?16317188:16775940;if(s&2048){const c=UCe(n);return H?c?12122884:7928580:c?12581636:16775940}return s&16?H?16316168:16774920:s&528?H?n===We||n===Tt?12121864:7927560:n===We||n===Tt?12580616:16774920:s&524288?Rr(n)&16&&Ig(n)?H?83427327:83886079:cse(n)?H?7880640:16728e3:H?7888800:16736160:s&16384?9830144:s&32768?26607360:s&65536?42917664:s&12288?H?7925520:16772880:s&67108864?H?7888800:16736160:s&131072?0:s&1048576?E_(n.types,(c,_)=>c|k_(_),0):s&2097152?lKe(n):83886079}function lKe(n){const s=Yo(n,402784252);let c=0,_=134217727;for(const d of n.types)if(!(s&&d.flags&524288)){const h=k_(d);c|=h,_&=h}return c&8256|_&134209471}function Gf(n,s){return ol(n,c=>(k_(c)&s)!==0)}function hb(n,s){const c=_3e(Gf(H&&n.flags&2?Bf:n,s));if(H)switch(s){case 524288:return xo(c,_=>k_(_)&65536?oa([_,k_(_)&131072&&!Yo(c,65536)?Jr([Li,W]):Li]):_);case 1048576:return xo(c,_=>k_(_)&131072?oa([_,k_(_)&65536&&!Yo(c,32768)?Jr([Li,Nt]):Li]):_);case 2097152:case 4194304:return xo(c,_=>k_(_)&262144?AZe(_):_)}return c}function _3e(n){return n===Bf?jt:n}function lse(n,s){return s?Jr([Dt(n),a_(s)]):n}function u3e(n,s){var c;const _=E0(s);if(!ip(_))return $e;const d=sp(_);return Wc(n,d)||i7((c=_b(n,d))==null?void 0:c.type)||$e}function f3e(n,s){return Df(n,cC)&&bZe(n,s)||i7(I0(65,n,Nt,void 0))||$e}function i7(n){return n&&(j.noUncheckedIndexedAccess?Jr([n,z]):n)}function p3e(n){return $l(I0(65,n,Nt,void 0)||$e)}function _Ke(n){return n.parent.kind===209&&_se(n.parent)||n.parent.kind===303&&_se(n.parent.parent)?lse(kP(n),n.right):a_(n.right)}function _se(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function uKe(n,s){return f3e(kP(n),n.elements.indexOf(s))}function fKe(n){return p3e(kP(n.parent))}function d3e(n){return u3e(kP(n.parent),n.name)}function pKe(n){return lse(d3e(n),n.objectAssignmentInitializer)}function kP(n){const{parent:s}=n;switch(s.kind){case 249:return F;case 250:return tI(s)||$e;case 226:return _Ke(s);case 220:return Nt;case 209:return uKe(s,n);case 230:return fKe(s);case 303:return d3e(s);case 304:return pKe(s)}return $e}function dKe(n){const s=n.parent,c=g3e(s.parent),_=s.kind===206?u3e(c,n.propertyName||n.name):n.dotDotDotToken?p3e(c):f3e(c,s.elements.indexOf(n));return lse(_,n.initializer)}function m3e(n){return jr(n).resolvedType||a_(n)}function mKe(n){return n.initializer?m3e(n.initializer):n.parent.parent.kind===249?F:n.parent.parent.kind===250&&tI(n.parent.parent)||$e}function g3e(n){return n.kind===260?mKe(n):dKe(n)}function gKe(n){return n.kind===260&&n.initializer&&R_(n.initializer)||n.kind!==208&&n.parent.kind===226&&R_(n.parent.right)}function Dv(n){switch(n.kind){case 217:return Dv(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return Dv(n.left);case 28:return Dv(n.right)}}return n}function h3e(n){const{parent:s}=n;return s.kind===217||s.kind===226&&s.operatorToken.kind===64&&s.left===n||s.kind===226&&s.operatorToken.kind===28&&s.right===n?h3e(s):n}function hKe(n){return n.kind===296?j_(a_(n.expression)):jn}function ez(n){const s=jr(n);if(!s.switchTypes){s.switchTypes=[];for(const c of n.caseBlock.clauses)s.switchTypes.push(hKe(c))}return s.switchTypes}function y3e(n){if(dt(n.caseBlock.clauses,c=>c.kind===296&&!Qa(c.expression)))return;const s=[];for(const c of n.caseBlock.clauses){const _=c.kind===296?c.expression.text:void 0;s.push(_&&!ys(s,_)?_:void 0)}return s}function yKe(n,s){return n.flags&1048576?!pn(n.types,c=>!ys(s,c)):ys(s,n)}function s7(n,s){return!!(n===s||n.flags&131072||s.flags&1048576&&vKe(n,s))}function vKe(n,s){if(n.flags&1048576){for(const c of n.types)if(!Mh(s.types,c))return!1;return!0}return n.flags&1056&&_J(n)===s?!0:Mh(s.types,n)}function yb(n,s){return n.flags&1048576?pn(n.types,s):s(n)}function Mg(n,s){return n.flags&1048576?dt(n.types,s):s(n)}function Df(n,s){return n.flags&1048576?Xi(n.types,s):s(n)}function bKe(n,s){return n.flags&3145728?Xi(n.types,s):s(n)}function ol(n,s){if(n.flags&1048576){const c=n.types,_=zr(c,s);if(_===c)return n;const d=n.origin;let h;if(d&&d.flags&1048576){const T=d.types,P=zr(T,O=>!!(O.flags&1048576)||s(O));if(T.length-P.length===c.length-_.length){if(P.length===1)return P[0];h=_ie(1048576,P)}}return fie(_,n.objectFlags&16809984,void 0,void 0,h)}return n.flags&131072||s(n)?n:jn}function tz(n,s){return ol(n,c=>c!==s)}function TKe(n){return n.flags&1048576?n.types.length:1}function xo(n,s,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return s(n);const _=n.origin,d=_&&_.flags&1048576?_.types:n.types;let h,T=!1;for(const P of d){const O=P.flags&1048576?xo(P,s,c):s(P);T||(T=P!==O),O&&(h?h.push(O):h=[O])}return T?h&&Jr(h,c?0:1):n}function v3e(n,s,c,_){return n.flags&1048576&&c?Jr(an(n.types,s),1,c,_):xo(n,s)}function _C(n,s){return ol(n,c=>(c.flags&s)!==0)}function b3e(n,s){return Yo(n,134217804)&&Yo(s,402655616)?xo(n,c=>c.flags&4?_C(s,402653316):Ak(c)&&!Yo(s,402653188)?_C(s,128):c.flags&8?_C(s,264):c.flags&64?_C(s,2112):c):n}function Ik(n){return n.flags===0}function vb(n){return n.flags===0?n.type:n}function Ok(n,s){return s?{flags:0,type:n.flags&131072?oi:n}:n}function xKe(n){const s=Jf(256);return s.elementType=n,s}function use(n){return ze[n.id]||(ze[n.id]=xKe(n))}function T3e(n,s){const c=e7(Vh(XP(s)));return s7(c,n.elementType)?n:use(Jr([n.elementType,c]))}function SKe(n){return n.flags&131072?gt:$l(n.flags&1048576?Jr(n.types,2):n)}function kKe(n){return n.finalArrayType||(n.finalArrayType=SKe(n.elementType))}function CP(n){return Rr(n)&256?kKe(n):n}function CKe(n){return Rr(n)&256?n.elementType:jn}function EKe(n){let s=!1;for(const c of n)if(!(c.flags&131072)){if(!(Rr(c)&256))return!1;s=!0}return s}function x3e(n){const s=h3e(n),c=s.parent,_=kr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&we(c.name)&&fq(c.name)),d=c.kind===212&&c.expression===s&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!tg(c.parent)&&kl(a_(c.argumentExpression),296);return _||d}function wKe(n){return(Ri(n)||Fs(n)||mf(n)||rs(n))&&!!(Vl(n)||Kn(n)&&i1(n)&&n.initializer&&z6(n.initializer)&&ep(n.initializer))}function nz(n,s){if(n=Mc(n),n.flags&8752)return $n(n);if(n.flags&7){if(rc(n)&262144){const _=n.links.syntheticOrigin;if(_&&nz(_))return $n(n)}const c=n.valueDeclaration;if(c){if(wKe(c))return $n(n);if(Ri(c)&&c.parent.parent.kind===250){const _=c.parent.parent,d=EP(_.expression,void 0);if(d){const h=_.awaitModifier?15:13;return I0(h,d,Nt,void 0)}}s&&ua(s,br(c,p._0_needs_an_explicit_type_annotation,ii(n)))}}}function EP(n,s){if(!(n.flags&67108864))switch(n.kind){case 80:const c=Q_(yp(n));return nz(c,s);case 110:return HKe(n);case 108:return gse(n);case 211:{const _=EP(n.expression,s);if(_){const d=n.name;let h;if(Ei(d)){if(!_.symbol)return;h=Ws(_,uD(_.symbol,d.escapedText))}else h=Ws(_,d.escapedText);return h&&nz(h,s)}return}case 217:return EP(n.expression,s)}}function rz(n){const s=jr(n);let c=s.effectsSignature;if(c===void 0){let _;n.parent.kind===244?_=EP(n.expression,void 0):n.expression.kind!==108&&(c_(n)?_=Td(ZE(Qi(n.expression),n.expression),n.expression):_=pC(n.expression));const d=As(_&&Z_(_)||jt,0),h=d.length===1&&!d[0].typeParameters?d[0]:dt(d,S3e)?mC(n):void 0;c=s.effectsSignature=h&&S3e(h)?h:Ce}return c===Ce?void 0:c}function S3e(n){return!!(qf(n)||n.declaration&&(Ck(n.declaration)||jt).flags&131072)}function DKe(n,s){if(n.kind===1||n.kind===3)return s.arguments[n.parameterIndex];const c=lo(s.expression);return Mo(c)?lo(c.expression):void 0}function AKe(n){const s=In(n,cW),c=Rn(n),_=gm(c,s.statements.pos);xa.add(vl(c,_.start,_.length,p.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function wP(n){const s=iz(n,!1);return cr=n,wr=s,s}function DP(n){const s=lo(n,!0);return s.kind===97||s.kind===226&&(s.operatorToken.kind===56&&(DP(s.left)||DP(s.right))||s.operatorToken.kind===57&&DP(s.left)&&DP(s.right))}function iz(n,s){for(;;){if(n===cr)return wr;const c=n.flags;if(c&4096){if(!s){const _=ose(n),d=VT[_];return d!==void 0?d:VT[_]=iz(n,!0)}s=!1}if(c&368)n=n.antecedent;else if(c&512){const _=rz(n.node);if(_){const d=qf(_);if(d&&d.kind===3&&!d.type){const h=n.node.arguments[d.parameterIndex];if(h&&DP(h))return!1}if(Ua(_).flags&131072)return!1}n=n.antecedent}else{if(c&4)return dt(n.antecedents,_=>iz(_,!1));if(c&8){const _=n.antecedents;if(_===void 0||_.length===0)return!1;n=_[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&eEe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){cr=void 0;const _=n.target,d=_.antecedents;_.antecedents=n.antecedents;const h=iz(n.antecedent,!1);return _.antecedents=d,h}else return!(c&1)}}}function sz(n,s){for(;;){const c=n.flags;if(c&4096){if(!s){const _=ose(n),d=tk[_];return d!==void 0?d:tk[_]=sz(n,!0)}s=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return Xi(n.antecedents,_=>sz(_,!1));if(c&8)n=n.antecedents[0];else if(c&1024){const _=n.target,d=_.antecedents;_.antecedents=n.antecedents;const h=sz(n.antecedent,!1);return _.antecedents=d,h}else return!!(c&1)}}}function k3e(n){switch(n.kind){case 110:return!0;case 80:if(!Hx(n)){const s=yp(n);return uC(s)||aH(s)&&!az(s)}break;case 211:case 212:return k3e(n.expression)&&Qp(jr(n).resolvedSymbol||it)}return!1}function Uh(n,s,c=s,_,d=(h=>(h=Hr(n,rD))==null?void 0:h.flowNode)()){let h,T=!1,P=0;if(Gi)return $e;if(!d)return s;Hn++;const O=Br,$=vb(Se(d));Br=O;const re=Rr($)&256&&x3e(n)?gt:CP($);if(re===gs||n.parent&&n.parent.kind===235&&!(re.flags&131072)&&Gf(re,2097152).flags&131072)return s;return re===Fn?jt:re;function ce(){return T?h:(T=!0,h=KJ(n,s,c,_))}function Se(st){var wt;if(P===2e3)return(wt=li)==null||wt.instant(li.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:st.id}),Gi=!0,AKe(n),$e;P++;let $t;for(;;){const Lt=st.flags;if(Lt&4096){for(let wn=O;wn=0&&$t.parameterIndex!(wn.flags&163840)):wt.kind===221&&ux(wt.expression,n)&&(Lt=Wi(Lt,st.switchStatement,st.clauseStart,st.clauseEnd,wn=>!(wn.flags&131072||wn.flags&128&&wn.value==="undefined"))));const tn=bn(wt,Lt);tn&&(Lt=Vi(Lt,tn,st.switchStatement,st.clauseStart,st.clauseEnd))}return Ok(Lt,Ik($t))}function qt(st){const wt=[];let $t=!1,Lt=!1,tn;for(const wn of st.antecedents){if(!tn&&wn.flags&128&&wn.clauseStart===wn.clauseEnd){tn=wn;continue}const Ni=Se(wn),Pi=vb(Ni);if(Pi===s&&s===c)return Pi;$f(wt,Pi),s7(Pi,c)||($t=!0),Ik(Ni)&&(Lt=!0)}if(tn){const wn=Se(tn),Ni=vb(wn);if(!(Ni.flags&131072)&&!ys(wt,Ni)&&!eEe(tn.switchStatement)){if(Ni===s&&s===c)return Ni;wt.push(Ni),s7(Ni,c)||($t=!0),Ik(wn)&&(Lt=!0)}}return Ok(Ht(wt,$t?2:1),Lt)}function zn(st){const wt=ose(st),$t=BT[wt]||(BT[wt]=new Map),Lt=ce();if(!Lt)return s;const tn=$t.get(Lt);if(tn)return tn;for(let sn=nn;sn{const sn=dv(Ns,Lt);return!(sn.flags&131072)&&!(Pi.flags&131072)&&mP(Pi,sn)})}function fs(st,wt,$t,Lt,tn){if(($t===37||$t===38)&&st.flags&1048576){const wn=xP(st);if(wn&&wn===gb(wt)){const Ni=SP(st,a_(Lt));if(Ni)return $t===(tn?37:38)?Ni:$p(Wc(Ni,wn)||jt)?tz(st,Ni):st}}return Yn(st,wt,wn=>Zn(wn,$t,Lt,tn))}function Vi(st,wt,$t,Lt,tn){if(LtSP(st,Pi)||jt));if(Ni!==jt)return Ni}return Yn(st,wt,wn=>Da(wn,$t,Lt,tn))}function ei(st,wt,$t){if(Bl(n,wt))return hb(st,$t?4194304:8388608);H&&$t&&ux(wt,n)&&(st=hb(st,2097152));const Lt=bn(wt,st);return Lt?Yn(st,Lt,tn=>Gf(tn,$t?4194304:8388608)):st}function wc(st,wt,$t){const Lt=Ws(st,wt);return Lt?!!(Lt.flags&16777216||rc(Lt)&48)||$t:!!_b(st,wt)||!$t}function tu(st,wt,$t){const Lt=sp(wt);if(Mg(st,wn=>wc(wn,Lt,!0)))return ol(st,wn=>wc(wn,Lt,$t));if($t){const wn=FQe();if(wn)return oa([st,wk(wn,[wt,jt])])}return st}function fu(st,wt,$t){switch(wt.operatorToken.kind){case 64:case 76:case 77:case 78:return ei(yi(st,wt.right,$t),wt.left,$t);case 35:case 36:case 37:case 38:const Lt=wt.operatorToken.kind,tn=Dv(wt.left),wn=Dv(wt.right);if(tn.kind===221&&Qa(wn))return Bn(st,tn,Lt,wn,$t);if(wn.kind===221&&Qa(tn))return Bn(st,wn,Lt,tn,$t);if(Bl(n,tn))return Zn(st,Lt,wn,$t);if(Bl(n,wn))return Zn(st,Lt,tn,$t);H&&(ux(tn,n)?st=Tn(st,Lt,wn,$t):ux(wn,n)&&(st=Tn(st,Lt,tn,$t)));const Ni=bn(tn,st);if(Ni)return fs(st,Ni,Lt,wn,$t);const Pi=bn(wn,st);if(Pi)return fs(st,Pi,Lt,tn,$t);if(z_(tn))return Qe(st,Lt,wn,$t);if(z_(wn))return Qe(st,Lt,tn,$t);break;case 104:return me(st,wt,$t);case 103:if(Ei(wt.left))return am(st,wt,$t);const Ns=Dv(wt.right);if(KE(st)&&Mo(n)&&Bl(n.expression,Ns)){const sn=a_(wt.left);if(ip(sn)&&gb(n)===sp(sn))return Gf(st,$t?524288:65536)}if(Bl(n,Ns)){const sn=a_(wt.left);if(ip(sn))return tu(st,sn,$t)}break;case 28:return yi(st,wt.right,$t);case 56:return $t?yi(yi(st,wt.left,!0),wt.right,!0):Jr([yi(st,wt.left,!1),yi(st,wt.right,!1)]);case 57:return $t?Jr([yi(st,wt.left,!0),yi(st,wt.right,!0)]):yi(yi(st,wt.left,!1),wt.right,!1)}return st}function am(st,wt,$t){const Lt=Dv(wt.right);if(!Bl(n,Lt))return st;E.assertNode(wt.left,Ei);const tn=hz(wt.left);if(tn===void 0)return st;const wn=tn.parent,Ni=$c(E.checkDefined(tn.valueDeclaration,"should always have a declaration"))?$n(wn):mo(wn);return Mn(st,Ni,$t,!0)}function Tn(st,wt,$t,Lt){const tn=wt===35||wt===37,wn=wt===35||wt===36?98304:32768,Ni=a_($t);return tn!==Lt&&Df(Ni,Ns=>!!(Ns.flags&wn))||tn===Lt&&Df(Ni,Ns=>!(Ns.flags&(3|wn)))?hb(st,2097152):st}function Zn(st,wt,$t,Lt){if(st.flags&1)return st;(wt===36||wt===38)&&(Lt=!Lt);const tn=a_($t),wn=wt===35||wt===36;if(tn.flags&98304){if(!H)return st;const Ni=wn?Lt?262144:2097152:tn.flags&65536?Lt?131072:1048576:Lt?65536:524288;return hb(st,Ni)}if(Lt){if(!wn&&(st.flags&2||Mg(st,Og))){if(tn.flags&469893116||Og(tn))return tn;if(tn.flags&524288)return Us}const Ni=ol(st,Pi=>mP(Pi,tn)||wn&&NZe(Pi,tn));return b3e(Ni,tn)}return $p(tn)?ol(st,Ni=>!(jCe(Ni)&&mP(Ni,tn))):st}function Bn(st,wt,$t,Lt,tn){($t===36||$t===38)&&(tn=!tn);const wn=Dv(wt.expression);if(!Bl(n,wn)){H&&ux(wn,n)&&tn===(Lt.text!=="undefined")&&(st=hb(st,2097152));const Ni=bn(wn,st);return Ni?Yn(st,Ni,Pi=>Ts(Pi,Lt,tn)):st}return Ts(st,Lt,tn)}function Ts(st,wt,$t){return $t?fo(st,wt.text):hb(st,vL.get(wt.text)||32768)}function Wi(st,wt,$t,Lt,tn){return $t!==Lt&&Xi(ez(wt).slice($t,Lt),tn)?Gf(st,2097152):st}function Da(st,wt,$t,Lt){const tn=ez(wt);if(!tn.length)return st;const wn=tn.slice($t,Lt),Ni=$t===Lt||ys(wn,jn);if(st.flags&2&&!Ni){let yr;for(let ri=0;rimP(Pi,yr)),Pi);if(!Ni)return Ns;const sn=ol(st,yr=>!(jCe(yr)&&ys(tn,j_(xZe(yr)))));return Ns.flags&131072?sn:Jr([Ns,sn])}function fo(st,wt){switch(wt){case"string":return jc(st,F,1);case"number":return jc(st,ye,2);case"bigint":return jc(st,Oe,4);case"boolean":return jc(st,kn,8);case"symbol":return jc(st,ir,16);case"object":return st.flags&1?st:Jr([jc(st,Us,32),jc(st,W,131072)]);case"function":return st.flags&1?st:jc(st,Vo,64);case"undefined":return jc(st,Nt,65536)}return jc(st,Us,128)}function jc(st,wt,$t){return xo(st,Lt=>bd(Lt,wt,bf)?k_(Lt)&$t?Lt:jn:Jh(wt,Lt)?wt:k_(Lt)&$t?oa([Lt,wt]):jn)}function pa(st,wt,$t,Lt){const tn=y3e(wt);if(!tn)return st;const wn=qc(wt.caseBlock.clauses,Ns=>Ns.kind===297);if($t===Lt||wn>=$t&&wn(k_(sn)&Ns)===Ns)}const Pi=tn.slice($t,Lt);return Jr(an(Pi,Ns=>Ns?fo(st,Ns):jn))}function z_(st){return(kr(st)&&lr(st.name)==="constructor"||No(st)&&Qa(st.argumentExpression)&&st.argumentExpression.text==="constructor")&&Bl(n,st.expression)}function Qe(st,wt,$t,Lt){if(Lt?wt!==35&&wt!==37:wt!==36&&wt!==38)return st;const tn=a_($t);if(!jae(tn)&&!gn(tn))return st;const wn=Ws(tn,"prototype");if(!wn)return st;const Ni=$n(wn),Pi=qa(Ni)?void 0:Ni;if(!Pi||Pi===Uc||Pi===Vo)return st;if(qa(st))return Pi;return ol(st,sn=>Ns(sn,Pi));function Ns(sn,yr){return sn.flags&524288&&Rr(sn)&1||yr.flags&524288&&Rr(yr)&1?sn.symbol===yr.symbol:Jh(sn,yr)}}function me(st,wt,$t){const Lt=Dv(wt.left);if(!Bl(n,Lt))return $t&&H&&ux(Lt,n)?hb(st,2097152):st;const tn=a_(wt.right);if(!kv(tn,Vo))return st;const wn=xo(tn,Wn);return qa(st)&&(wn===Uc||wn===Vo)||!$t&&!(wn.flags&524288&&!Og(wn))?st:Mn(st,wn,$t,!0)}function Wn(st){const wt=Wc(st,"prototype");if(wt&&!qa(wt))return wt;const $t=As(st,1);return $t.length?Jr(an($t,Lt=>Ua(VE(Lt)))):Li}function Mn(st,wt,$t,Lt){var wn;const tn=st.flags&1048576?`N${S_(st)},${S_(wt)},${($t?1:0)|(Lt?2:0)}`:void 0;return(wn=Qy(tn))!=null?wn:UT(tn,mr(st,wt,$t,Lt))}function mr(st,wt,$t,Lt){if(!$t){if(Lt)return ol(st,Ns=>!kv(Ns,wt));const Pi=Mn(st,wt,!0,!1);return ol(st,Ns=>!s7(Ns,Pi))}if(st.flags&3)return wt;const tn=Lt?kv:Jh,wn=st.flags&1048576?xP(st):void 0,Ni=xo(wt,Pi=>{const Ns=wn&&Wc(Pi,wn),sn=Ns&&SP(st,Ns),yr=xo(sn||st,Lt?ri=>kv(ri,Pi)?ri:kv(Pi,ri)?Pi:jn:ri=>xCe(ri,Pi)?ri:xCe(Pi,ri)?Pi:Jh(ri,Pi)?ri:Jh(Pi,ri)?Pi:jn);return yr.flags&131072?xo(st,ri=>Yo(ri,465829888)&&tn(Pi,B_(ri)||jt)?oa([ri,Pi]):jn):yr});return Ni.flags&131072?Jh(wt,st)?wt:ca(st,wt)?st:ca(wt,st)?wt:oa([st,wt]):Ni}function Tr(st,wt,$t){if(l3e(wt,n)){const Lt=$t||!Ab(wt)?rz(wt):void 0,tn=Lt&&qf(Lt);if(tn&&(tn.kind===0||tn.kind===1))return Ki(st,tn,wt,$t)}if(KE(st)&&Mo(n)&&kr(wt.expression)){const Lt=wt.expression;if(Bl(n.expression,Dv(Lt.expression))&&we(Lt.name)&&Lt.name.escapedText==="hasOwnProperty"&&wt.arguments.length===1){const tn=wt.arguments[0];if(Qa(tn)&&gb(n)===Ho(tn.text))return Gf(st,$t?524288:65536)}}return st}function Ki(st,wt,$t,Lt){if(wt.type&&!(qa(st)&&(wt.type===Uc||wt.type===Vo))){const tn=DKe(wt,$t);if(tn){if(Bl(n,tn))return Mn(st,wt.type,Lt,!1);H&&Lt&&ux(tn,n)&&!(k_(wt.type)&65536)&&(st=hb(st,2097152));const wn=bn(tn,st);if(wn)return Yn(st,wn,Ni=>Mn(Ni,wt.type,Lt,!1))}}return st}function yi(st,wt,$t){if(t9(wt)||rr(wt.parent)&&(wt.parent.operatorToken.kind===61||wt.parent.operatorToken.kind===78)&&wt.parent.left===wt)return fr(st,wt,$t);switch(wt.kind){case 80:if(!Bl(n,wt)&&N<5){const Lt=yp(wt);if(uC(Lt)){const tn=Lt.valueDeclaration;if(tn&&Ri(tn)&&!tn.type&&tn.initializer&&k3e(n)){N++;const wn=yi(st,tn.initializer,$t);return N--,wn}}}case 110:case 108:case 211:case 212:return ei(st,wt,$t);case 213:return Tr(st,wt,$t);case 217:case 235:return yi(st,wt.expression,$t);case 226:return fu(st,wt,$t);case 224:if(wt.operator===54)return yi(st,wt.operand,!$t);break}return st}function fr(st,wt,$t){if(Bl(n,wt))return hb(st,$t?2097152:262144);const Lt=bn(wt,st);return Lt?Yn(st,Lt,tn=>Gf(tn,$t?2097152:262144)):st}}function NKe(n,s){if(n=Q_(n),(s.kind===80||s.kind===81)&&(k3(s)&&(s=s.parent),Gg(s)&&(!tg(s)||A3(s)))){const c=qJ(a_(s));if(Q_(jr(s).resolvedSymbol)===n)return c}return Xg(s)&&G0(s.parent)&&hp(s.parent)?sJ(s.parent.symbol):G1(n)}function a7(n){return In(n.parent,s=>Cs(s)&&!jb(s)||s.kind===268||s.kind===312||s.kind===172)}function az(n){if(!n.valueDeclaration)return!1;const s=hm(n.valueDeclaration).parent,c=jr(s);return c.flags&131072||(c.flags|=131072,PKe(s)||C3e(s)),n.isAssigned||!1}function PKe(n){return!!In(n.parent,s=>(Cs(s)||Iy(s))&&!!(jr(s).flags&131072))}function C3e(n){if(n.kind===80){if(tg(n)){const s=yp(n);aH(s)&&(s.isAssigned=!0)}}else bs(n,C3e)}function uC(n){return n.flags&3&&(Nse(n)&6)!==0}function IKe(n){const s=jr(n);if(s.parameterInitializerContainsUndefined===void 0){if(!Vf(n,9))return ix(n.symbol),!0;const c=!!(k_(d7(n,0))&16777216);if(!Kd())return ix(n.symbol),!0;s.parameterInitializerContainsUndefined=c}return s.parameterInitializerContainsUndefined}function OKe(n,s){return H&&s.kind===169&&s.initializer&&k_(n)&16777216&&!IKe(s)?Gf(n,524288):n}function FKe(n,s){const c=s.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===s||c.kind===212&&c.expression===s&&!(Mg(n,w3e)&&K1(a_(c.argumentExpression)))}function E3e(n){return n.flags&2097152?dt(n.types,E3e):!!(n.flags&465829888&&Ag(n).flags&1146880)}function w3e(n){return n.flags&2097152?dt(n.types,w3e):!!(n.flags&465829888&&!Yo(Ag(n),98304))}function LKe(n,s){const c=(we(n)||kr(n)||No(n))&&!((zd(n.parent)||rT(n.parent))&&n.parent.tagName===n)&&(s&&s&64?eu(n,8):eu(n,void 0));return c&&!iC(c)}function fse(n,s,c){return!(c&&c&2)&&Mg(n,E3e)&&(FKe(n,s)||LKe(s,c))?xo(n,Ag):n}function D3e(n){return!!In(n,s=>{const c=s.parent;return c===void 0?"quit":fc(c)?c.expression===s&&Tc(s):p_(c)?c.name===s||c.propertyName===s:!1})}function oz(n,s){if(!!ot&&mp(n,111551)&&!qb(s)){const c=hl(n);ku(n,!0)&1160127&&(nd(j)||Xb(j)&&D3e(s)||!k7(Q_(c))?Tg(n):G2(n))}}function MKe(n,s){var c;const _=$n(n),d=n.valueDeclaration;if(d){if(Oa(d)&&!d.initializer&&!d.dotDotDotToken&&d.parent.elements.length>=2){const h=d.parent.parent;if(h.kind===260&&Lv(d)&6||h.kind===169){const T=jr(h);if(!(T.flags&4194304)){T.flags|=4194304;const P=de(h,0),O=P&&xo(P,Ag);if(T.flags&=-4194305,O&&O.flags&1048576&&!(h.kind===169&&az(n))){const $=d.parent,re=Uh($,O,O,void 0,s.flowNode);return re.flags&131072?jn:ao(d,re)}}}}if(rs(d)&&!d.type&&!d.initializer&&!d.dotDotDotToken){const h=d.parent;if(h.parameters.length>=2&&OJ(h)){const T=c7(h);if(T&&T.parameters.length===1&&d_(T)){const P=Z4(zi($n(T.parameters[0]),(c=Nv(h))==null?void 0:c.nonFixingMapper));if(P.flags&1048576&&Df(P,la)&&!az(n)){const O=Uh(h,P,P,void 0,s.flowNode),$=h.parameters.indexOf(d)-(a2(h)?1:0);return Eu(O,Gp($))}}}}}return _}function RKe(n,s){if(Hx(n))return AP(n);const c=yp(n);if(c===it)return $e;if(c===tt){if(f8e(n))return Fe(n,p.arguments_cannot_be_referenced_in_property_initializers),$e;const qt=df(n);return ee<2&&(qt.kind===219?Fe(n,p.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Lr(qt,512)&&Fe(n,p.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),jr(qt).flags|=512,$n(c)}jKe(n)&&oz(c,n);const _=Q_(c),d=Oae(_,n);fp(d)&&die(n,d)&&d.declarations&&f0(n,d.declarations,n.escapedText);let h=_.valueDeclaration;if(h&&_.flags&32&&ni(h)&&h.name!==n){let qt=ru(n,!1,!1);for(;qt.kind!==312&&qt.parent!==h;)qt=ru(qt,!1,!1);qt.kind!==312&&(jr(h).flags|=262144,jr(qt).flags|=262144,jr(n).flags|=536870912)}VKe(n,c);let T=MKe(_,n);const P=Vb(n);if(P){if(!(_.flags&3)&&!(Kn(n)&&_.flags&512)){const qt=_.flags&384?p.Cannot_assign_to_0_because_it_is_an_enum:_.flags&32?p.Cannot_assign_to_0_because_it_is_a_class:_.flags&1536?p.Cannot_assign_to_0_because_it_is_a_namespace:_.flags&16?p.Cannot_assign_to_0_because_it_is_a_function:_.flags&2097152?p.Cannot_assign_to_0_because_it_is_an_import:p.Cannot_assign_to_0_because_it_is_not_a_variable;return Fe(n,qt,ii(c)),$e}if(Qp(_))return _.flags&3?Fe(n,p.Cannot_assign_to_0_because_it_is_a_constant,ii(c)):Fe(n,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ii(c)),$e}const O=_.flags&2097152;if(_.flags&3){if(P===1)return T}else if(O)h=dp(c);else return T;if(!h)return T;T=fse(T,n,s);const $=hm(h).kind===169,re=a7(h);let ce=a7(n);const Se=ce!==re,Te=n.parent&&n.parent.parent&&sh(n.parent)&&_se(n.parent.parent),Ze=c.flags&134217728,St=T===ft||T===gt,Zt=St&&n.parent.kind===235;for(;ce!==re&&(ce.kind===218||ce.kind===219||A9(ce))&&(uC(_)&&T!==gt||$&&!az(_));)ce=a7(ce);const _n=$||O||Se||Te||Ze||BKe(n,h)||T!==ft&&T!==gt&&(!H||(T.flags&16387)!==0||qb(n)||ase(n)||n.parent.kind===281)||n.parent.kind===235||h.kind===260&&h.exclamationToken||h.flags&33554432,Gn=Zt?Nt:_n?$?OKe(T,h):T:St?Nt:N0(T),An=Zt?Fg(Uh(n,T,Gn,ce)):Uh(n,T,Gn,ce);if(!x3e(n)&&(T===ft||T===gt)){if(An===ft||An===gt)return fe&&(Fe(os(h),p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ii(c),Cn(An)),Fe(n,p.Variable_0_implicitly_has_an_1_type,ii(c),Cn(An))),S7(An)}else if(!_n&&!sC(T)&&sC(An))return Fe(n,p.Variable_0_is_used_before_being_assigned,ii(c)),T;return P?Vh(An):An}function BKe(n,s){if(Oa(s)){const c=In(n,Oa);return c&&hm(c)===hm(s)}}function jKe(n){var s;const c=n.parent;if(c){if(kr(c)&&c.expression===n||p_(c)&&c.isTypeOnly)return!1;const _=(s=c.parent)==null?void 0:s.parent;if(_&&Yc(_)&&_.isTypeOnly)return!1}return!0}function JKe(n,s){return!!In(n,c=>c===s?"quit":Cs(c)||c.parent&&Fs(c.parent)&&!$c(c.parent)&&c.parent.initializer===c)}function zKe(n,s){return In(n,c=>c===s?"quit":c===s.initializer||c===s.condition||c===s.incrementor||c===s.statement)}function pse(n){return In(n,s=>!s||pq(s)?"quit":n1(s,!1))}function VKe(n,s){if(ee>=2||(s.flags&34)===0||!s.valueDeclaration||Bi(s.valueDeclaration)||s.valueDeclaration.parent.kind===299)return;const c=mm(s.valueDeclaration),_=JKe(n,c),d=pse(c);if(d){if(_){let h=!0;if(nT(c)){const T=Ty(s.valueDeclaration,261);if(T&&T.parent===c){const P=zKe(n.parent,c);if(P){const O=jr(P);O.flags|=8192;const $=O.capturedBlockScopeBindings||(O.capturedBlockScopeBindings=[]);$f($,s),P===c.initializer&&(h=!1)}}}h&&(jr(d).flags|=4096)}if(nT(c)){const h=Ty(s.valueDeclaration,261);h&&h.parent===c&&WKe(n,c)&&(jr(s.valueDeclaration).flags|=65536)}jr(s.valueDeclaration).flags|=32768}_&&(jr(s.valueDeclaration).flags|=16384)}function UKe(n,s){const c=jr(n);return!!c&&ys(c.capturedBlockScopeBindings,vr(s))}function WKe(n,s){let c=n;for(;c.parent.kind===217;)c=c.parent;let _=!1;if(tg(c))_=!0;else if(c.parent.kind===224||c.parent.kind===225){const d=c.parent;_=d.operator===46||d.operator===47}return _?!!In(c,d=>d===s?"quit":d===s.statement):!1}function dse(n,s){if(jr(n).flags|=2,s.kind===172||s.kind===176){const c=s.parent;jr(c).flags|=4}else jr(s).flags|=4}function A3e(n){return m6(n)?n:Cs(n)?void 0:bs(n,A3e)}function N3e(n){const s=vr(n),c=mo(s);return fi(c)===ge}function P3e(n,s,c){const _=s.parent;s2(_)&&!N3e(_)&&rD(n)&&n.flowNode&&!sz(n.flowNode,!1)&&Fe(n,c)}function qKe(n,s){Fs(s)&&$c(s)&&Z&&s.initializer&&mw(s.initializer,n.pos)&&Ff(s.parent)&&Fe(n,p.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function AP(n){const s=qb(n);let c=ru(n,!0,!0),_=!1,d=!1;for(c.kind===176&&P3e(n,c,p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=ru(c,!1,!d),_=!0),c.kind===167){c=ru(c,!_,!1),d=!0;continue}break}if(qKe(n,c),d)Fe(n,p.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:Fe(n,p.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Fe(n,p.this_cannot_be_referenced_in_current_location);break;case 176:I3e(n,c)&&Fe(n,p.this_cannot_be_referenced_in_constructor_arguments);break}!s&&_&&ee<2&&dse(n,c);const h=mse(n,!0,c);if(G){const T=$n(Ge);if(h===T&&_)Fe(n,p.The_containing_arrow_function_captures_the_global_value_of_this);else if(!h){const P=Fe(n,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Bi(c)){const O=mse(c);O&&O!==T&&ua(P,br(c,p.An_outer_value_of_this_is_shadowed_by_this_container))}}}return h||ke}function mse(n,s=!0,c=ru(n,!1,!1)){const _=Kn(n);if(Cs(c)&&(!yse(n)||a2(c))){let d=yre(c)||_&&$Ke(c);if(!d){const h=GKe(c);if(_&&h){const T=Qi(h).symbol;T&&T.members&&T.flags&16&&(d=mo(T).thisType)}else xd(c)&&(d=mo(Ma(c.symbol)).thisType);d||(d=M3e(c))}if(d)return Uh(n,d)}if(ni(c.parent)){const d=vr(c.parent),h=Os(c)?$n(d):mo(d).thisType;return Uh(n,h)}if(Bi(c))if(c.commonJsModuleIndicator){const d=vr(c);return d&&$n(d)}else{if(c.externalModuleIndicator)return Nt;if(s)return $n(Ge)}}function HKe(n){const s=ru(n,!1,!1);if(Cs(s)){const c=vd(s);if(c.thisParameter)return nz(c.thisParameter)}if(ni(s.parent)){const c=vr(s.parent);return Os(s)?$n(c):mo(c).thisType}}function GKe(n){if(n.kind===218&&rr(n.parent)&&uc(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&rr(n.parent.parent)&&uc(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&rr(n.parent.parent.parent)&&uc(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&Ec(n.parent)&&we(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&ha(n.parent.parent)&&Js(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&uc(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(kc(n)&&we(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&ha(n.parent)&&Js(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&uc(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function $Ke(n){const s=ZI(n);if(s&&s.typeExpression)return ai(s.typeExpression);const c=K4(n);if(c)return Y1(c)}function I3e(n,s){return!!In(n,c=>Eo(c)?"quit":c.kind===169&&c.parent===s)}function gse(n){const s=n.parent.kind===213&&n.parent.expression===n,c=Jw(n,!0);let _=c,d=!1,h=!1;if(!s){for(;_&&_.kind===219;)Lr(_,512)&&(h=!0),_=Jw(_,!0),d=ee<2;_&&Lr(_,512)&&(h=!0)}let T=0;if(!_||!re(_)){const ce=In(n,Se=>Se===_?"quit":Se.kind===167);return ce&&ce.kind===167?Fe(n,p.super_cannot_be_referenced_in_a_computed_property_name):s?Fe(n,p.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!_||!_.parent||!(ni(_.parent)||_.parent.kind===210)?Fe(n,p.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Fe(n,p.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),$e}if(!s&&c.kind===176&&P3e(n,_,p.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Os(_)||s?(T=32,!s&&ee>=2&&ee<=8&&(Fs(_)||ec(_))&&Lle(n.parent,ce=>{(!Bi(ce)||Yu(ce))&&(jr(ce).flags|=2097152)})):T=16,jr(n).flags|=T,_.kind===174&&h&&(iu(n.parent)&&tg(n.parent)?jr(_).flags|=256:jr(_).flags|=128),d&&dse(n.parent,_),_.parent.kind===210)return ee<2?(Fe(n,p.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),$e):ke;const P=_.parent;if(!s2(P))return Fe(n,p.super_can_only_be_referenced_in_a_derived_class),$e;const O=mo(vr(P)),$=O&&To(O)[0];if(!$)return $e;if(_.kind===176&&I3e(n,_))return Fe(n,p.super_cannot_be_referenced_in_constructor_arguments),$e;return T===32?fi(O):Uu($,O.thisType);function re(ce){return s?ce.kind===176:ni(ce.parent)||ce.parent.kind===210?Os(ce)?ce.kind===174||ce.kind===173||ce.kind===177||ce.kind===178||ce.kind===172||ce.kind===175:ce.kind===174||ce.kind===173||ce.kind===177||ce.kind===178||ce.kind===172||ce.kind===171||ce.kind===176:!1}}function O3e(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function F3e(n){return Rr(n)&4&&n.target===se?uo(n)[0]:void 0}function XKe(n){return xo(n,s=>s.flags&2097152?pn(s.types,F3e):F3e(s))}function L3e(n,s){let c=n,_=s;for(;_;){const d=XKe(_);if(d)return d;if(c.parent.kind!==303)break;c=c.parent.parent,_=sy(c,void 0)}}function M3e(n){if(n.kind===219)return;if(OJ(n)){const c=c7(n);if(c){const _=c.thisParameter;if(_)return $n(_)}}const s=Kn(n);if(G||s){const c=O3e(n);if(c){const d=sy(c,void 0),h=L3e(c,d);return h?zi(h,Xie(Nv(c))):Wu(d?Fg(d):Bc(c))}const _=$0(n.parent);if(_.kind===226&&_.operatorToken.kind===64){const d=_.left;if(Mo(d)){const{expression:h}=d;if(s&&we(h)){const T=Rn(_);if(T.commonJsModuleIndicator&&yp(h)===T.symbol)return}return Wu(Bc(h))}}}}function R3e(n){const s=n.parent;if(!OJ(s))return;const c=jb(s);if(c&&c.arguments){const d=Gse(c),h=s.parameters.indexOf(n);if(n.dotDotDotToken)return qse(d,h,d.length,ke,void 0,0);const T=jr(c),P=T.resolvedSignature;T.resolvedSignature=A;const O=h0)return L(c.name,!0,!1)}}function KKe(n,s){const c=df(n);if(c){let _=cz(c,s);if(_){const d=Il(c);if(d&1){const h=(d&2)!==0;_.flags&1048576&&(_=ol(_,P=>!!Iv(1,P,h)));const T=Iv(1,_,(d&2)!==0);if(!T)return;_=T}if(d&2){const h=xo(_,P0);return h&&Jr([h,Q8e(h)])}return _}}}function eet(n,s){const c=eu(n,s);if(c){const _=P0(c);return _&&Jr([_,Q8e(_)])}}function tet(n,s){const c=df(n);if(c){const _=Il(c);let d=cz(c,s);if(d){const h=(_&2)!==0;return!n.asteriskToken&&d.flags&1048576&&(d=ol(d,T=>!!Iv(1,T,h))),n.asteriskToken?d:Iv(0,d,h)}}}function yse(n){let s=!1;for(;n.parent&&!Cs(n.parent);){if(rs(n.parent)&&(s||n.parent.initializer===n))return!0;Oa(n.parent)&&n.parent.initializer===n&&(s=!0),n=n.parent}return!1}function B3e(n,s){const c=!!(Il(s)&2),_=cz(s,void 0);if(_)return Iv(n,_,c)||void 0}function cz(n,s){const c=Ck(n);if(c)return c;const _=Sse(n);if(_&&!fJ(_))return Ua(_);const d=jb(n);if(d)return eu(d,s)}function j3e(n,s){const _=Gse(n).indexOf(s);return _===-1?void 0:vse(n,_)}function vse(n,s){if(Zu(n))return s===0?F:s===1?A4e(!1):ke;const c=jr(n).resolvedSignature===Re?Re:mC(n);if(U_(n)&&s===0)return fz(c,n);const _=c.parameters.length-1;return d_(c)&&s>=_?Eu($n(c.parameters[_]),Gp(s-_),256):Xp(c,s)}function net(n){const s=sae(n);return s?ub(s):void 0}function ret(n,s){if(n.parent.kind===215)return j3e(n.parent,s)}function iet(n,s){const c=n.parent,{left:_,operatorToken:d,right:h}=c;switch(d.kind){case 64:case 77:case 76:case 78:return n===h?aet(c):void 0;case 57:case 61:const T=eu(c,s);return n===h&&(T&&T.pattern||!T&&!t_e(c))?a_(_):T;case 56:case 28:return n===h?eu(c,s):void 0;default:return}}function set(n){if(Pd(n)&&n.symbol)return n.symbol;if(we(n))return yp(n);if(kr(n)){const c=a_(n.expression);return Ei(n.name)?s(c,n.name):Ws(c,n.name.escapedText)}if(No(n)){const c=Bc(n.argumentExpression);if(!ip(c))return;const _=a_(n.expression);return Ws(_,sp(c))}return;function s(c,_){const d=gz(_.escapedText,_);return d&&Lse(c,d)}}function aet(n){var s,c;const _=uc(n);switch(_){case 0:case 4:const d=set(n.left),h=d&&d.valueDeclaration;if(h&&(Fs(h)||mf(h))){const O=Vl(h);return O&&zi(ai(O),Mi(d).mapper)||(Fs(h)?h.initializer&&a_(n.left):void 0)}return _===0?a_(n.left):J3e(n);case 5:if(lz(n,_))return J3e(n);if(!Pd(n.left)||!n.left.symbol)return a_(n.left);{const O=n.left.symbol.valueDeclaration;if(!O)return;const $=Bs(n.left,Mo),re=Vl(O);if(re)return ai(re);if(we($.expression)){const ce=$.expression,Se=Lc(ce,ce.escapedText,111551,void 0,ce.escapedText,!0);if(Se){const Te=Se.valueDeclaration&&Vl(Se.valueDeclaration);if(Te){const Ze=$g($);if(Ze!==void 0)return Av(ai(Te),Ze)}return}}return Kn(O)||O===n.left?void 0:a_(n.left)}case 1:case 6:case 3:case 2:let T;_!==2&&(T=Pd(n.left)?(s=n.left.symbol)==null?void 0:s.valueDeclaration:void 0),T||(T=(c=n.symbol)==null?void 0:c.valueDeclaration);const P=T&&Vl(T);return P?ai(P):void 0;case 7:case 8:case 9:return E.fail("Does not apply");default:return E.assertNever(_)}}function lz(n,s=uc(n)){if(s===4)return!0;if(!Kn(n)||s!==5||!we(n.left.expression))return!1;const c=n.left.expression.escapedText,_=Lc(n.left,c,111551,void 0,void 0,!0,!0);return F9(_==null?void 0:_.valueDeclaration)}function J3e(n){if(!n.symbol)return a_(n.left);if(n.symbol.valueDeclaration){const d=Vl(n.symbol.valueDeclaration);if(d){const h=ai(d);if(h)return h}}const s=Bs(n.left,Mo);if(!kp(ru(s.expression,!1,!1)))return;const c=AP(s.expression),_=$g(s);return _!==void 0&&Av(c,_)||void 0}function oet(n){return!!(rc(n)&262144&&!n.links.type&&mk(n,0)>=0)}function Av(n,s,c){return xo(n,_=>{var d;if(ff(_)&&!_.declaration.nameType){const h=Wf(_),T=B_(h)||h,P=c||K_(Oi(s));if(ca(P,T))return xJ(_,P)}else if(_.flags&3670016){const h=Ws(_,s);if(h)return oet(h)?void 0:$n(h);if(la(_)&&sg(s)&&+s>=0){const T=lC(_,_.target.fixedLength,0,!1,!0);if(T)return T}return(d=zre(Vre(_),c||K_(Oi(s))))==null?void 0:d.type}},!0)}function z3e(n,s){if(E.assert(kp(n)),!(n.flags&67108864))return bse(n,s)}function bse(n,s){const c=n.parent,_=Ec(n)&&hse(n,s);if(_)return _;const d=sy(c,s);if(d){if(Tk(n)){const h=vr(n);return Av(d,h.escapedName,Mi(h).nameType)}if(X0(n)){const h=os(n);if(h&&Ga(h)){const T=Qi(h.expression),P=ip(T)&&Av(d,sp(T));if(P)return P}}if(n.name){const h=E0(n.name);return xo(d,T=>{var P;return(P=zre(Vre(T),h))==null?void 0:P.type},!0)}}}function cet(n){let s,c;for(let _=0;_{if(la(h)){if((_===void 0||s<_)&&sd)?c-s:0,P=T>0&&h.target.hasRestElement?WE(h.target,3):0;return T>0&&T<=P?uo(h)[C0(h)-T]:lC(h,_===void 0?h.target.fixedLength:Math.min(h.target.fixedLength,_),c===void 0||d===void 0?P:Math.min(P,c-d),!1,!0)}return(!_||s<_)&&Av(h,""+s)||kae(1,h,Nt,void 0,!1)},!0)}function _et(n,s){const c=n.parent;return n===c.whenTrue||n===c.whenFalse?eu(c,s):void 0}function uet(n,s,c){const _=sy(n.openingElement.attributes,c),d=OP(bb(n));if(!(_&&!qa(_)&&d&&d!==""))return;const h=h3(n.children),T=h.indexOf(s),P=Av(_,d);return P&&(h.length===1?P:xo(P,O=>D0(O)?Eu(O,Gp(T)):O,!0))}function fet(n,s){const c=n.parent;return _9(c)?eu(n,s):_g(c)?uet(c,n,s):void 0}function V3e(n,s){if(Vd(n)){const c=sy(n.parent,s);return!c||qa(c)?void 0:Av(c,q3(n.name))}else return eu(n.parent,s)}function NP(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return NP(n.expression);case 294:return!n.expression||NP(n.expression)}return!1}function pet(n,s){return sKe(s,n)||Oie(s,es(an(zr(n.properties,c=>!!c.symbol&&c.kind===303&&NP(c.initializer)&&r7(s,c.symbol.escapedName)),c=>[()=>XP(c.initializer),c.symbol.escapedName]),an(zr(Va(s),c=>{var _;return!!(c.flags&16777216)&&!!((_=n==null?void 0:n.symbol)!=null&&_.members)&&!n.symbol.members.has(c.escapedName)&&r7(s,c.escapedName)}),c=>[()=>Nt,c.escapedName])),ca)}function det(n,s){const c=OP(bb(n));return Oie(s,es(an(zr(n.properties,_=>!!_.symbol&&_.kind===291&&r7(s,_.symbol.escapedName)&&(!_.initializer||NP(_.initializer))),_=>[_.initializer?()=>XP(_.initializer):()=>It,_.symbol.escapedName]),an(zr(Va(s),_=>{var d;if(!(_.flags&16777216)||!((d=n==null?void 0:n.symbol)!=null&&d.members))return!1;const h=n.parent.parent;return _.escapedName===c&&_g(h)&&h3(h.children).length?!1:!n.symbol.members.has(_.escapedName)&&r7(s,_.escapedName)}),_=>[()=>Nt,_.escapedName])),ca)}function sy(n,s){const c=kp(n)?z3e(n,s):eu(n,s),_=_z(c,n,s);if(_&&!(s&&s&2&&_.flags&8650752)){const d=xo(_,h=>Rr(h)&32?h:Z_(h),!0);return d.flags&1048576&&ha(n)?pet(n,d):d.flags&1048576&&v2(n)?det(n,d):d}}function _z(n,s,c){if(n&&Yo(n,465829888)){const _=Nv(s);if(_&&c&1&&dt(_.inferences,Xnt))return uz(n,_.nonFixingMapper);if(_!=null&&_.returnMapper){const d=uz(n,_.returnMapper);return d.flags&1048576&&Mh(d.types,Tt)&&Mh(d.types,on)?ol(d,h=>h!==Tt&&h!==on):d}}return n}function uz(n,s){return n.flags&465829888?zi(n,s):n.flags&1048576?Jr(an(n.types,c=>uz(c,s)),0):n.flags&2097152?oa(an(n.types,c=>uz(c,s))):n}function eu(n,s){var h;var c;if(n.flags&67108864)return;const _=W3e(n,!s);if(_>=0)return Xo[_];const{parent:d}=n;switch(d.kind){case 260:case 169:case 172:case 171:case 208:return ZKe(n,s);case 219:case 253:return KKe(n,s);case 229:return tet(d,s);case 223:return eet(d,s);case 213:case 214:return j3e(d,n);case 170:return net(d);case 216:case 234:return qg(d.type)?eu(d,s):ai(d.type);case 226:return iet(n,s);case 303:case 304:return bse(d,s);case 305:return eu(d.parent,s);case 209:{const T=d,P=sy(T,s),O=u6(T.elements,n),$=(h=(c=jr(T)).spreadIndices)!=null?h:c.spreadIndices=cet(T.elements);return Tse(P,O,T.elements.length,$.first,$.last)}case 227:return _et(n,s);case 239:return E.assert(d.parent.kind===228),ret(d.parent,n);case 217:{if(Kn(d)){if(_H(d))return ai(uH(d));const T=dy(d);if(T&&!qg(T.typeExpression.type))return ai(T.typeExpression.type)}return eu(d,s)}case 235:return eu(d,s);case 238:return ai(d.type);case 277:return Ci(d);case 294:return fet(d,s);case 291:case 293:return V3e(d,s);case 286:case 285:return het(d,s)}}function U3e(n){PP(n,eu(n,void 0),!0)}function PP(n,s,c){Fc[Gd]=n,Xo[Gd]=s,pg[Gd]=c,Gd++}function o7(){Gd--}function W3e(n,s){for(let c=Gd-1;c>=0;c--)if(n===Fc[c]&&(s||!pg[c]))return c;return-1}function met(n,s){jf[mh]=n,c0[mh]=s,mh++}function get(){mh--}function Nv(n){for(let s=mh-1;s>=0;s--)if(i2(n,jf[s]))return c0[s]}function het(n,s){if(zd(n)&&s!==4){const c=W3e(n.parent,!s);if(c>=0)return Xo[c]}return vse(n,0)}function fz(n,s){return E8e(s)!==0?yet(n,s):Tet(n,s)}function yet(n,s){let c=rae(n,jt);c=q3e(s,bb(s),c);const _=Pv(sf.IntrinsicAttributes,s);return q(_)||(c=eP(_,c)),c}function vet(n,s){if(n.compositeSignatures){const _=[];for(const d of n.compositeSignatures){const h=Ua(d);if(qa(h))return h;const T=Wc(h,s);if(!T)return;_.push(T)}return oa(_)}const c=Ua(n);return qa(c)?c:Wc(c,s)}function bet(n){if(fx(n.tagName)){const c=e8e(n),_=Sz(n,c);return ub(_)}const s=Bc(n.tagName);if(s.flags&128){const c=K3e(s,n);if(!c)return $e;const _=Sz(n,c);return ub(_)}return s}function q3e(n,s,c){const _=Vet(s);if(_){const d=bet(n),h=r8e(_,Kn(n),d,c);if(h)return h}return c}function Tet(n,s){const c=bb(s),_=Wet(c);let d=_===void 0?rae(n,jt):_===""?Ua(n):vet(n,_);if(!d)return!!_&&!!Nn(s.attributes.properties)&&Fe(s,p.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Oi(_)),jt;if(d=q3e(s,c,d),qa(d))return d;{let h=d;const T=Pv(sf.IntrinsicClassAttributes,s);if(!q(T)){const O=Vp(T.symbol),$=Ua(n);let re;if(O){const ce=Fh([$],O,nm(O),Kn(s));re=zi(T,uu(O,ce))}else re=T;h=eP(re,h)}const P=Pv(sf.IntrinsicAttributes,s);return q(P)||(h=eP(P,h)),h}}function xet(n){return rp(j,"noImplicitAny")?E_(n,(s,c)=>s===c||!s?s:H6e(s.typeParameters,c.typeParameters)?Eet(s,c):void 0):void 0}function ket(n,s,c){if(!n||!s)return n||s;const _=Jr([$n(n),zi($n(s),c)]);return mb(n,_)}function Cet(n,s,c){const _=qu(n),d=qu(s),h=_>=d?n:s,T=h===n?s:n,P=h===n?_:d,O=sm(n)||sm(s),$=O&&!sm(h),re=new Array(P+($?1:0));for(let ce=0;ce=Sd(h)&&ce>=Sd(T),_n=ce>=_?void 0:gC(n,ce),Gn=ce>=d?void 0:gC(s,ce),An=_n===Gn?_n:_n?Gn?void 0:_n:Gn,qt=Pa(1|(Zt&&!St?16777216:0),An||`arg${ce}`);qt.links.type=St?$l(Ze):Ze,re[ce]=qt}if($){const ce=Pa(1,"args");ce.links.type=$l(Xp(T,P)),T===s&&(ce.links.type=zi(ce.links.type,c)),re[P]=ce}return re}function Eet(n,s){const c=n.typeParameters||s.typeParameters;let _;n.typeParameters&&s.typeParameters&&(_=uu(s.typeParameters,n.typeParameters));const d=n.declaration,h=Cet(n,s,_),T=ket(n.thisParameter,s.thisParameter,_),P=Math.max(n.minArgumentCount,s.minArgumentCount),O=Mm(d,c,T,h,void 0,void 0,P,(n.flags|s.flags)&167);return O.compositeKind=2097152,O.compositeSignatures=es(n.compositeKind===2097152&&n.compositeSignatures||[n],[s]),_&&(O.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?ny(n.mapper,_):_),O}function xse(n,s){const c=As(n,0),_=zr(c,d=>!wet(d,s));return _.length===1?_[0]:xet(_)}function wet(n,s){let c=0;for(;cT[Te]&8?Rh(Se,ye)||ke:Se),2):H?ea:hi,O))}function G3e(n){if(!(Rr(n)&4))return n;let s=n.literalType;return s||(s=n.literalType=h4e(n),s.objectFlags|=147456),s}function Pet(n){switch(n.kind){case 167:return Iet(n);case 80:return sg(n.escapedText);case 9:case 11:return sg(n.text);default:return!1}}function Iet(n){return kl(Bm(n),296)}function Bm(n){const s=jr(n.expression);if(!s.resolvedType){if((ef(n.parent.parent)||ni(n.parent.parent)||f_(n.parent.parent))&&rr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return s.resolvedType=$e;if(s.resolvedType=Qi(n.expression),Fs(n.parent)&&!$c(n.parent)&&Fl(n.parent.parent)){const c=mm(n.parent.parent),_=pse(c);_&&(jr(_).flags|=4096,jr(n).flags|=32768,jr(n.parent.parent).flags|=32768)}(s.resolvedType.flags&98304||!kl(s.resolvedType,402665900)&&!ca(s.resolvedType,cs))&&Fe(n,p.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return s.resolvedType}function Oet(n){var s;const c=(s=n.declarations)==null?void 0:s[0];return sg(n.escapedName)||c&&A_(c)&&Pet(c.name)}function $3e(n){var s;const c=(s=n.declarations)==null?void 0:s[0];return fD(n)||c&&A_(c)&&Ga(c.name)&&kl(Bm(c.name),4096)}function kse(n,s,c,_){const d=[];for(let T=s;T0&&(P=Tv(P,zn(),n.symbol,St,re),T=[],h=Vs(),_n=!1,Gn=!1,An=!1);const Yn=qp(Qi(Ht.expression,s&2));if(IP(Yn)){const fs=vie(Yn,re);if(d&&Q3e(fs,d,Ht),qt=T.length,q(P))continue;P=Tv(P,fs,n.symbol,St,re)}else Fe(Ht,p.Spread_types_may_only_be_created_from_object_types),P=$e;continue}else E.assert(Ht.kind===177||Ht.kind===178),jk(Ht);bn&&!(bn.flags&8576)?ca(bn,cs)&&(ca(bn,ye)?Gn=!0:ca(bn,ir)?An=!0:_n=!0,_&&(Zt=!0)):h.set(mn.escapedName,mn),T.push(mn)}if(o7(),$){const Ht=In(O.pattern.parent,bn=>bn.kind===260||bn.kind===226||bn.kind===169);if(In(n,bn=>bn===Ht||bn.kind===305).kind!==305)for(const bn of Va(O))!h.get(bn.escapedName)&&!Ws(P,bn.escapedName)&&(bn.flags&16777216||Fe(bn.valueDeclaration||((c=Hr(bn,pm))==null?void 0:c.links.bindingElement),p.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),h.set(bn.escapedName,bn),T.push(bn))}if(q(P))return $e;if(P!==Li)return T.length>0&&(P=Tv(P,zn(),n.symbol,St,re),T=[],h=Vs(),_n=!1,Gn=!1),xo(P,Ht=>Ht===Li?zn():Ht);return zn();function zn(){const Ht=[];_n&&Ht.push(kse(n,qt,T,F)),Gn&&Ht.push(kse(n,qt,T,ye)),An&&Ht.push(kse(n,qt,T,ir));const mn=gc(n.symbol,h,Ve,Ve,Ht);return mn.objectFlags|=St|128|131072,Ze&&(mn.objectFlags|=4096),Zt&&(mn.objectFlags|=512),_&&(mn.pattern=n),mn}}function IP(n){const s=WCe(xo(n,Ag));return!!(s.flags&126615553||s.flags&3145728&&Xi(s.types,IP))}function Let(n){Dse(n)}function Met(n,s){return jk(n),FP(n)||ke}function Ret(n){Dse(n.openingElement),fx(n.closingElement.tagName)?dz(n.closingElement):Qi(n.closingElement.tagName),pz(n)}function Bet(n,s){return jk(n),FP(n)||ke}function jet(n){Dse(n.openingFragment);const s=Rn(n);return hO(j)&&(j.jsxFactory||s.pragmas.has("jsx"))&&!j.jsxFragmentFactory&&!s.pragmas.has("jsxfrag")&&Fe(n,j.jsxFactory?p.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:p.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),pz(n),FP(n)||ke}function Ese(n){return Xl(n,"-")}function fx(n){return we(n)&&P6(n.escapedText)||sd(n)}function X3e(n,s){return n.initializer?yC(n.initializer,s):It}function Jet(n,s=0){const c=n.attributes,_=eu(c,0),d=H?Vs():void 0;let h=Vs(),T=Vc,P=!1,O,$=!1,re=2048;const ce=OP(bb(n));for(const Ze of c.properties){const St=Ze.symbol;if(Vd(Ze)){const Zt=X3e(Ze,s);re|=Rr(Zt)&458752;const _n=Pa(4|St.flags,St.escapedName);if(_n.declarations=St.declarations,_n.parent=St.parent,St.valueDeclaration&&(_n.valueDeclaration=St.valueDeclaration),_n.links.type=Zt,_n.links.target=St,h.set(_n.escapedName,_n),d==null||d.set(_n.escapedName,_n),q3(Ze.name)===ce&&($=!0),_){const Gn=Ws(_,St.escapedName);Gn&&Gn.declarations&&fp(Gn)&&we(Ze.name)&&f0(Ze.name,Gn.declarations,Ze.name.escapedText)}if(_&&s&2&&!(s&4)&&Cf(Ze)){const Gn=Nv(c);E.assert(Gn);const An=Ze.initializer.expression;Gie(Gn,An,Zt)}}else{E.assert(Ze.kind===293),h.size>0&&(T=Tv(T,Te(),c.symbol,re,!1),h=Vs());const Zt=qp(Qi(Ze.expression,s&2));qa(Zt)&&(P=!0),IP(Zt)?(T=Tv(T,Zt,c.symbol,re,!1),d&&Q3e(Zt,d,Ze)):(Fe(Ze.expression,p.Spread_types_may_only_be_created_from_object_types),O=O?oa([O,Zt]):Zt)}}P||h.size>0&&(T=Tv(T,Te(),c.symbol,re,!1));const Se=n.parent.kind===284?n.parent:void 0;if(Se&&Se.openingElement===n&&Se.children.length>0){const Ze=pz(Se,s);if(!P&&ce&&ce!==""){$&&Fe(c,p._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Oi(ce));const St=sy(n.attributes,void 0),Zt=St&&Av(St,ce),_n=Pa(4,ce);_n.links.type=Ze.length===1?Ze[0]:Zt&&Mg(Zt,cC)?Hp(Ze):$l(Jr(Ze)),_n.valueDeclaration=I.createPropertySignature(void 0,Oi(ce),void 0,void 0),Ta(_n.valueDeclaration,c),_n.valueDeclaration.symbol=_n;const Gn=Vs();Gn.set(ce,_n),T=Tv(T,gc(c.symbol,Gn,Ve,Ve,Ve),c.symbol,re,!1)}}if(P)return ke;if(O&&T!==Vc)return oa([O,T]);return O||(T===Vc?Te():T);function Te(){re|=ve;const Ze=gc(c.symbol,h,Ve,Ve,Ve);return Ze.objectFlags|=re|128|131072,Ze}}function pz(n,s){const c=[];for(const _ of n.children)if(_.kind===12)_.containsOnlyTriviaWhiteSpaces||c.push(F);else{if(_.kind===294&&!_.expression)continue;c.push(yC(_,s))}return c}function Q3e(n,s,c){for(const _ of Va(n))if(!(_.flags&16777216)){const d=s.get(_.escapedName);if(d){const h=Fe(d.valueDeclaration,p._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Oi(d.escapedName));ua(h,br(c,p.This_spread_always_overwrites_this_property))}}}function zet(n,s){return Jet(n.parent,s)}function Pv(n,s){const c=bb(s),_=c&&zu(c),d=_&&G_(_,n,788968);return d?mo(d):$e}function dz(n){const s=jr(n);if(!s.resolvedSymbol){const c=Pv(sf.IntrinsicElements,n);if(q(c))return fe&&Fe(n,p.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Oi(sf.IntrinsicElements)),s.resolvedSymbol=it;{if(!we(n.tagName)&&!sd(n.tagName))return E.fail();const _=sd(n.tagName)?Kx(n.tagName):n.tagName.escapedText,d=Ws(c,_);if(d)return s.jsxFlags|=1,s.resolvedSymbol=d;const h=T7e(c,K_(Oi(_)));return h?(s.jsxFlags|=2,s.resolvedSymbol=h):X4(c,_)?(s.jsxFlags|=2,s.resolvedSymbol=c.symbol):(Fe(n,p.Property_0_does_not_exist_on_type_1,fH(n.tagName),"JSX."+sf.IntrinsicElements),s.resolvedSymbol=it)}}return s.resolvedSymbol}function wse(n){const s=n&&Rn(n),c=s&&jr(s);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const _=vO(yO(j,s),j);if(!_)return;const h=Sc(j)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations,T=Eh(n,_,h,n),P=T&&T!==it?Ma(Mc(T)):void 0;return c&&(c.jsxImplicitImportContainer=P||!1),P}function bb(n){const s=n&&jr(n);if(s&&s.jsxNamespace)return s.jsxNamespace;if(!s||s.jsxNamespace!==!1){let _=wse(n);if(!_||_===it){const d=P1(n);_=Lc(n,d,1920,void 0,d,!1)}if(_){const d=Mc(G_(zu(Mc(_)),sf.JSX,1920));if(d&&d!==it)return s&&(s.jsxNamespace=d),d}s&&(s.jsxNamespace=!1)}const c=Mc(tC(sf.JSX,1920,void 0));if(c!==it)return c}function Y3e(n,s){const c=s&&G_(s.exports,n,788968),_=c&&mo(c),d=_&&Va(_);if(d){if(d.length===0)return"";if(d.length===1)return d[0].escapedName;d.length>1&&c.declarations&&Fe(c.declarations[0],p.The_global_type_JSX_0_may_not_have_more_than_one_property,Oi(n))}}function Vet(n){return n&&G_(n.exports,sf.LibraryManagedAttributes,788968)}function Uet(n){return n&&G_(n.exports,sf.ElementType,788968)}function Wet(n){return Y3e(sf.ElementAttributesPropertyNameContainer,n)}function OP(n){return Y3e(sf.ElementChildrenAttributeNameContainer,n)}function Z3e(n,s){if(n.flags&4)return[A];if(n.flags&128){const d=K3e(n,s);return d?[Sz(s,d)]:(Fe(s,p.Property_0_does_not_exist_on_type_1,n.value,"JSX."+sf.IntrinsicElements),Ve)}const c=Z_(n);let _=As(c,1);return _.length===0&&(_=As(c,0)),_.length===0&&c.flags&1048576&&(_=Dre(an(c.types,d=>Z3e(d,s)))),_}function K3e(n,s){const c=Pv(sf.IntrinsicElements,s);if(!q(c)){const _=n.value,d=Ws(c,Ho(_));if(d)return $n(d);const h=Q1(c,F);return h||void 0}return ke}function qet(n,s,c){if(n===1){const d=n8e(c);d&&Ef(s,d,Ju,c.tagName,p.Its_return_type_0_is_not_a_valid_JSX_element,_)}else if(n===0){const d=t8e(c);d&&Ef(s,d,Ju,c.tagName,p.Its_instance_type_0_is_not_a_valid_JSX_element,_)}else{const d=n8e(c),h=t8e(c);if(!d||!h)return;const T=Jr([d,h]);Ef(s,T,Ju,c.tagName,p.Its_element_type_0_is_not_a_valid_JSX_element,_)}function _(){const d=el(c.tagName);return us(void 0,p._0_cannot_be_used_as_a_JSX_component,d)}}function e8e(n){var s;E.assert(fx(n.tagName));const c=jr(n);if(!c.resolvedJsxElementAttributesType){const _=dz(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=$n(_)||$e;if(c.jsxFlags&2){const d=sd(n.tagName)?Kx(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((s=_b(Pv(sf.IntrinsicElements,n),d))==null?void 0:s.type)||$e}else return c.resolvedJsxElementAttributesType=$e}return c.resolvedJsxElementAttributesType}function t8e(n){const s=Pv(sf.ElementClass,n);if(!q(s))return s}function FP(n){return Pv(sf.Element,n)}function n8e(n){const s=FP(n);if(s)return Jr([s,W])}function Het(n){const s=bb(n);if(!s)return;const c=Uet(s);if(!c)return;const _=r8e(c,Kn(n));if(!(!_||q(_)))return _}function r8e(n,s,...c){const _=mo(n);if(n.flags&524288){const d=Mi(n).typeParameters;if(Nn(d)>=c.length){const h=Fh(c,d,c.length,s);return Nn(h)===0?_:wk(n,h)}}if(Nn(_.typeParameters)>=c.length){const d=Fh(c,_.typeParameters,c.length,s);return k0(_,d)}}function Get(n){const s=Pv(sf.IntrinsicElements,n);return s?Va(s):Ve}function $et(n){(j.jsx||0)===0&&Fe(n,p.Cannot_use_JSX_unless_the_jsx_flag_is_provided),FP(n)===void 0&&fe&&Fe(n,p.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Dse(n){const s=U_(n);if(s&&Bat(n),$et(n),!wse(n)){const c=xa&&j.jsx===2?p.Cannot_find_name_0:void 0,_=P1(n),d=s?n.tagName:n;let h;if(gS(n)&&_==="null"||(h=Lc(d,_,111551,c,_,!0)),h&&(h.isReferenced=67108863,ot&&h.flags&2097152&&!gp(h)&&Tg(h)),gS(n)){const T=Rn(n),P=Yy(T);P&&Lc(d,P,111551,c,P,!0)}}if(s){const c=n,_=mC(c);Cz(_,n);const d=Het(c);if(d!==void 0){const h=c.tagName,T=fx(h)?K_(fH(h)):Qi(h);Ef(T,d,Ju,h,p.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const P=el(h);return us(void 0,p._0_cannot_be_used_as_a_JSX_component,P)})}else qet(E8e(c),Ua(_),c)}}function Ase(n,s,c){if(n.flags&524288){if(hv(n,s)||_b(n,s)||ME(s)&&Rm(n,F)||c&&Ese(s))return!0}else if(n.flags&3145728&&LP(n)){for(const _ of n.types)if(Ase(_,s,c))return!0}return!1}function LP(n){return!!(n.flags&524288&&!(Rr(n)&512)||n.flags&67108864||n.flags&1048576&&dt(n.types,LP)||n.flags&2097152&&Xi(n.types,LP))}function Xet(n,s){if(Jat(n),n.expression){const c=Qi(n.expression,s);return n.dotDotDotToken&&c!==ke&&!wf(c)&&Fe(n,p.JSX_spread_child_must_be_an_array_type),c}else return $e}function Nse(n){return n.valueDeclaration?Lv(n.valueDeclaration):0}function Pse(n){if(n.flags&8192||rc(n)&4)return!0;if(Kn(n.valueDeclaration)){const s=n.valueDeclaration.parent;return s&&rr(s)&&uc(s)===3}}function Ise(n,s,c,_,d,h=!0){const T=h?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return i8e(n,s,c,_,d,T)}function i8e(n,s,c,_,d,h){const T=Lf(d,c);if(s){if(ee<2&&s8e(d))return h&&Fe(h,p.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(T&256)return h&&Fe(h,p.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ii(d),Cn(_x(d))),!1}if(T&256&&s8e(d)&&(zw(n)||Yle(n)||rd(n.parent)&&F9(n.parent.parent))){const O=Yg(X_(d));if(O&&Rst(n))return h&&Fe(h,p.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ii(d),Cp(O.name)),!1}if(!(T&24))return!0;if(T&8){const O=Yg(X_(d));return Mae(n,O)?!0:(h&&Fe(h,p.Property_0_is_private_and_only_accessible_within_class_1,ii(d),Cn(_x(d))),!1)}if(s)return!0;let P=v7e(n,O=>{const $=mo(vr(O));return MCe($,d,c)});return!P&&(P=Qet(n),P=P&&MCe(P,d,c),T&32||!P)?(h&&Fe(h,p.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ii(d),Cn(_x(d)||_)),!1):T&32?!0:(_.flags&262144&&(_=_.isThisType?s_(_):B_(_)),!_||!bk(_,P)?(h&&Fe(h,p.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ii(d),Cn(P),Cn(_)),!1):!0)}function Qet(n){const s=Yet(n);let c=(s==null?void 0:s.type)&&ai(s.type);if(c&&c.flags&262144&&(c=s_(c)),c&&Rr(c)&7)return ab(c)}function Yet(n){const s=ru(n,!1,!1);return s&&Cs(s)?a2(s):void 0}function s8e(n){return!!vP(n,s=>!(s.flags&8192))}function pC(n){return Td(Qi(n),n)}function mz(n){return!!(k_(n)&50331648)}function Ose(n){return mz(n)?Fg(n):n}function Zet(n,s){const c=Tc(n)?Nu(n):void 0;if(n.kind===106){Fe(n,p.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(we(n)&&c==="undefined"){Fe(n,p.The_value_0_cannot_be_used_here,"undefined");return}Fe(n,s&16777216?s&33554432?p._0_is_possibly_null_or_undefined:p._0_is_possibly_undefined:p._0_is_possibly_null,c)}else Fe(n,s&16777216?s&33554432?p.Object_is_possibly_null_or_undefined:p.Object_is_possibly_undefined:p.Object_is_possibly_null)}function Ket(n,s){Fe(n,s&16777216?s&33554432?p.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:p.Cannot_invoke_an_object_which_is_possibly_undefined:p.Cannot_invoke_an_object_which_is_possibly_null)}function a8e(n,s,c){if(H&&n.flags&2){if(Tc(s)){const d=Nu(s);if(d.length<100)return Fe(s,p._0_is_of_type_unknown,d),$e}return Fe(s,p.Object_is_of_type_unknown),$e}const _=k_(n);if(_&50331648){c(s,_);const d=Fg(n);return d.flags&229376?$e:d}return n}function Td(n,s){return a8e(n,s,Zet)}function o8e(n,s){const c=Td(n,s);if(c.flags&16384){if(Tc(s)){const _=Nu(s);if(we(s)&&_==="undefined")return Fe(s,p.The_value_0_cannot_be_used_here,_),c;if(_.length<100)return Fe(s,p._0_is_possibly_undefined,_),c}Fe(s,p.Object_is_possibly_undefined)}return c}function Fse(n,s,c){return n.flags&64?ett(n,s):Mse(n,n.expression,pC(n.expression),n.name,s,c)}function ett(n,s){const c=Qi(n.expression),_=ZE(c,n.expression);return HJ(Mse(n,n.expression,Td(_,n.expression),n.name,s),n,_!==c)}function c8e(n,s){const c=B9(n)&&c2(n.left)?Td(AP(n.left),n.left):pC(n.left);return Mse(n,n.left,c,n.right,s)}function l8e(n){for(;n.parent.kind===217;)n=n.parent;return Ym(n.parent)&&n.parent.expression===n}function gz(n,s){for(let c=I9(s);c;c=Pl(c)){const{symbol:_}=c,d=uD(_,n),h=_.members&&_.members.get(d)||_.exports&&_.exports.get(d);if(h)return h}}function ttt(n){if(!Pl(n))return Qt(n,p.Private_identifiers_are_not_allowed_outside_class_bodies);if(!bF(n.parent)){if(!Gg(n))return Qt(n,p.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);const s=rr(n.parent)&&n.parent.operatorToken.kind===103;if(!hz(n)&&!s)return Qt(n,p.Cannot_find_name_0,lr(n))}return!1}function ntt(n){ttt(n);const s=hz(n);return s&&RP(s,void 0,!1),ke}function hz(n){if(!Gg(n))return;const s=jr(n);return s.resolvedSymbol===void 0&&(s.resolvedSymbol=gz(n.escapedText,n)),s.resolvedSymbol}function Lse(n,s){return Ws(n,s.escapedName)}function rtt(n,s,c){let _;const d=Va(n);d&&pn(d,T=>{const P=T.valueDeclaration;if(P&&A_(P)&&Ei(P.name)&&P.name.escapedText===s.escapedText)return _=T,!0});const h=T_(s);if(_){const T=E.checkDefined(_.valueDeclaration),P=E.checkDefined(Pl(T));if(c!=null&&c.valueDeclaration){const O=c.valueDeclaration,$=Pl(O);if(E.assert(!!$),In($,re=>P===re)){const re=Fe(s,p.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,h,Cn(n));return ua(re,br(O,p.The_shadowing_declaration_of_0_is_defined_here,h),br(T,p.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,h)),!0}}return Fe(s,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,h,T_(P.name||XA)),!0}return!1}function _8e(n,s){return(jp(s)||zw(n)&&b0(s))&&ru(n,!0,!1)===T0(s)}function Mse(n,s,c,_,d,h){const T=jr(s).resolvedSymbol,P=Vb(n),O=Z_(P!==0||l8e(n)?Wu(c):c),$=qa(O)||O===oi;let re;if(Ei(_)){ee<99&&(P!==0&&Kc(n,1048576),P!==1&&Kc(n,524288));const Se=gz(_.escapedText,_);if(P&&Se&&Se.valueDeclaration&&kc(Se.valueDeclaration)&&Qt(_,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,lr(_)),$){if(Se)return q(O)?$e:O;if(I9(_)===void 0)return Qt(_,p.Private_identifiers_are_not_allowed_outside_class_bodies),ke}if(re=Se&&Lse(c,Se),re===void 0){if(rtt(c,_,Se))return $e;const Te=I9(_);Te&&Pw(Rn(Te),j.checkJs)&&Qt(_,p.Private_field_0_must_be_declared_in_an_enclosing_class,lr(_))}else re.flags&65536&&!(re.flags&32768)&&P!==1&&Fe(n,p.Private_accessor_was_defined_without_a_getter)}else{if($)return we(s)&&T&&oz(T,n),q(O)?$e:O;re=Ws(O,_.escapedText,!1,n.kind===166)}we(s)&&T&&(nd(j)||!(re&&(k7(re)||re.flags&8&&n.parent.kind===306))||Xb(j)&&D3e(n))&&oz(T,n);let ce;if(re){const Se=Oae(re,_);if(fp(Se)&&die(n,Se)&&Se.declarations&&f0(_,Se.declarations,_.escapedText),itt(re,n,_),RP(re,n,h8e(s,T)),jr(n).resolvedSymbol=re,Ise(n,s.kind===108,A3(n),O,re),iEe(n,re,P))return Fe(_,p.Cannot_assign_to_0_because_it_is_a_read_only_property,lr(_)),$e;ce=_8e(n,re)?ft:h||oO(n)?FE(re):$n(re)}else{const Se=!Ei(_)&&(P===0||!bv(c)||W3(c))?_b(O,_.escapedText):void 0;if(!(Se&&Se.type)){const Te=Rse(n,c.symbol,!0);return!Te&&qE(c)?ke:c.symbol===Ge?(Ge.exports.has(_.escapedText)&&Ge.exports.get(_.escapedText).flags&418?Fe(_,p.Property_0_does_not_exist_on_type_1,Oi(_.escapedText),Cn(c)):fe&&Fe(_,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Cn(c)),ke):(_.escapedText&&!p0(n)&&p8e(_,W3(c)?O:c,Te),$e)}Se.isReadonly&&(tg(n)||aq(n))&&Fe(n,p.Index_signature_in_type_0_only_permits_reading,Cn(O)),ce=j.noUncheckedIndexedAccess&&!tg(n)?Jr([Se.type,z]):Se.type,j.noPropertyAccessFromIndexSignature&&kr(n)&&Fe(_,p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Oi(_.escapedText)),Se.declaration&&b_(Se.declaration)&&f0(_,[Se.declaration],_.escapedText)}return u8e(n,re,ce,_,d)}function Rse(n,s,c){const _=Rn(n);if(_&&j.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){const d=pn(s==null?void 0:s.declarations,Rn);return!(_!==d&&!!d&&Xd(d))&&!(c&&s&&s.flags&32)&&!(!!n&&c&&kr(n)&&n.expression.kind===110)}return!1}function u8e(n,s,c,_,d){const h=Vb(n);if(h===1)return db(c,!!(s&&s.flags&16777216));if(s&&!(s.flags&98311)&&!(s.flags&8192&&c.flags&1048576)&&!zz(s.declarations))return c;if(c===ft)return gk(n,s);c=fse(c,n,d);let T=!1;if(H&&ue&&Mo(n)&&n.expression.kind===110){const O=s&&s.valueDeclaration;if(O&&a7e(O)&&!Os(O)){const $=a7(n);$.kind===176&&$.parent===O.parent&&!(O.flags&33554432)&&(T=!0)}}else H&&s&&s.valueDeclaration&&kr(s.valueDeclaration)&&Yw(s.valueDeclaration)&&a7(n)===a7(s.valueDeclaration)&&(T=!0);const P=Uh(n,c,T?N0(c):c);return T&&!sC(c)&&sC(P)?(Fe(_,p.Property_0_is_used_before_being_assigned,ii(s)),c):h?Vh(P):P}function itt(n,s,c){const{valueDeclaration:_}=n;if(!_||Rn(s).isDeclarationFile)return;let d;const h=lr(c);f8e(s)&&!GXe(_)&&!(Mo(s)&&Mo(s.expression))&&!Qd(_,c)&&!(kc(_)&&Qz(_)&32)&&(oe||!stt(n))?d=Fe(c,p.Property_0_is_used_before_its_initialization,h):_.kind===263&&s.parent.kind!==183&&!(_.flags&33554432)&&!Qd(_,c)&&(d=Fe(c,p.Class_0_used_before_its_declaration,h)),d&&ua(d,br(_,p._0_is_declared_here,h))}function f8e(n){return!!In(n,s=>{switch(s.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return vs(s.parent)&&ec(s.parent.parent)?!0:"quit";default:return Gg(s)?!1:"quit"}})}function stt(n){if(!(n.parent.flags&32))return!1;let s=$n(n.parent);for(;;){if(s=s.symbol&&att(s),!s)return!1;const c=Ws(s,n.escapedName);if(c&&c.valueDeclaration)return!0}}function att(n){const s=To(n);if(s.length!==0)return oa(s)}function p8e(n,s,c){let _,d;if(!Ei(n)&&s.flags&1048576&&!(s.flags&402784252)){for(const T of s.types)if(!Ws(T,n.escapedText)&&!_b(T,n.escapedText)){_=us(_,p.Property_0_does_not_exist_on_type_1,no(n),Cn(T));break}}if(d8e(n.escapedText,s)){const T=no(n),P=Cn(s);_=us(_,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,P,P+"."+T)}else{const T=y7(s);if(T&&Ws(T,n.escapedText))_=us(_,p.Property_0_does_not_exist_on_type_1,no(n),Cn(s)),d=br(n,p.Did_you_forget_to_use_await);else{const P=no(n),O=Cn(s),$=ltt(P,s);if($!==void 0)_=us(_,p.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,P,O,$);else{const re=Bse(n,s);if(re!==void 0){const ce=bc(re),Se=c?p.Property_0_may_not_exist_on_type_1_Did_you_mean_2:p.Property_0_does_not_exist_on_type_1_Did_you_mean_2;_=us(_,Se,P,O,ce),d=re.valueDeclaration&&br(re.valueDeclaration,p._0_is_declared_here,ce)}else{const ce=ott(s)?p.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:p.Property_0_does_not_exist_on_type_1;_=us(jre(_,s),ce,P,O)}}}}const h=Hg(Rn(n),n,_);d&&ua(h,d),u0(!c||_.code!==p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,h)}function ott(n){return j.lib&&!j.lib.includes("dom")&&bKe(n,s=>s.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Oi(s.symbol.escapedName)))&&Ig(n)}function d8e(n,s){const c=s.symbol&&Ws($n(s.symbol),n);return c!==void 0&&!!c.valueDeclaration&&Os(c.valueDeclaration)}function ctt(n){const s=T_(n),_=DW().get(s);return _&&ioe(_.keys())}function ltt(n,s){const c=Z_(s).symbol;if(!c)return;const _=bc(c),h=DW().get(_);if(h){for(const[T,P]of h)if(ys(P,n))return T}}function m8e(n,s){return MP(n,Va(s),106500)}function Bse(n,s){let c=Va(s);if(typeof n!="string"){const _=n.parent;kr(_)&&(c=zr(c,d=>y8e(_,s,d))),n=lr(n)}return MP(n,c,111551)}function g8e(n,s){const c=Gs(n)?n:lr(n),_=Va(s),d=c==="for"?Or(_,h=>bc(h)==="htmlFor"):c==="class"?Or(_,h=>bc(h)==="className"):void 0;return d!=null?d:MP(c,_,111551)}function jse(n,s){const c=Bse(n,s);return c&&bc(c)}function Jse(n,s,c){return E.assert(s!==void 0,"outername should always be defined"),O1(n,s,c,void 0,s,!1,!1,!0,(d,h,T)=>{E.assertEqual(s,h,"name should equal outerName");const P=G_(d,h,T);if(P)return P;let O;return d===pe?O=Hi(["string","number","boolean","object","bigint","symbol"],re=>d.has(re.charAt(0).toUpperCase()+re.slice(1))?Pa(524288,re):void 0).concat(ra(d.values())):O=ra(d.values()),MP(Oi(h),O,T)})}function _tt(n,s,c){const _=Jse(n,s,c);return _&&bc(_)}function yz(n,s){return s.exports&&MP(lr(n),cv(s),2623475)}function utt(n,s){const c=yz(n,s);return c&&bc(c)}function ftt(n,s,c){function _(T){const P=hv(n,T);if(P){const O=Tb($n(P));return!!O&&Sd(O)>=1&&ca(c,Xp(O,0))}return!1}const d=tg(s)?"set":"get";if(!_(d))return;let h=kD(s.expression);return h===void 0?h=d:h+="."+d,h}function ptt(n,s){const c=s.types.filter(_=>!!(_.flags&128));return NC(n.value,c,_=>_.value)}function MP(n,s,c){return NC(n,s,_);function _(d){const h=bc(d);if(!ns(h,'"')){if(d.flags&c)return h;if(d.flags&2097152){const T=M1(d);if(T&&T.flags&c)return h}}}}function RP(n,s,c){const _=n&&n.flags&106500&&n.valueDeclaration;if(!_)return;const d=Iu(_,8),h=n.valueDeclaration&&A_(n.valueDeclaration)&&Ei(n.valueDeclaration.name);if(!(!d&&!h)&&!(s&&oO(s)&&!(n.flags&65536))){if(c){const T=In(s,Eo);if(T&&T.symbol===n)return}(rc(n)&1?Mi(n).target:n).isReferenced=67108863}}function h8e(n,s){return n.kind===110||!!s&&Tc(n)&&s===yp(Ku(n))}function dtt(n,s){switch(n.kind){case 211:return zse(n,n.expression.kind===108,s,Wu(Qi(n.expression)));case 166:return zse(n,!1,s,Wu(Qi(n.left)));case 205:return zse(n,!1,s,ai(n))}}function y8e(n,s,c){return Vse(n,n.kind===211&&n.expression.kind===108,!1,s,c)}function zse(n,s,c,_){if(qa(_))return!0;const d=Ws(_,c);return!!d&&Vse(n,s,!1,_,d)}function Vse(n,s,c,_,d){if(qa(_))return!0;if(d.valueDeclaration&&N_(d.valueDeclaration)){const h=Pl(d.valueDeclaration);return!c_(n)&&!!In(n,T=>T===h)}return i8e(n,s,c,_,d)}function mtt(n){const s=n.initializer;if(s.kind===261){const c=s.declarations[0];if(c&&!Ps(c.name))return vr(c)}else if(s.kind===80)return yp(s)}function gtt(n){return x_(n).length===1&&!!Rm(n,ye)}function htt(n){const s=lo(n);if(s.kind===80){const c=yp(s);if(c.flags&3){let _=n,d=n.parent;for(;d;){if(d.kind===249&&_===d.statement&&mtt(d)===c&>t(a_(d.expression)))return!0;_=d,d=d.parent}}}return!1}function ytt(n,s){return n.flags&64?vtt(n,s):v8e(n,pC(n.expression),s)}function vtt(n,s){const c=Qi(n.expression),_=ZE(c,n.expression);return HJ(v8e(n,Td(_,n.expression),s),n,_!==c)}function v8e(n,s,c){const _=Vb(n)!==0||l8e(n)?Wu(s):s,d=n.argumentExpression,h=Qi(d);if(q(_)||_===oi)return _;if(cae(_)&&!Qa(d))return Fe(d,p.A_const_enum_member_can_only_be_accessed_using_a_string_literal),$e;const T=htt(d)?ye:h,P=tg(n)?4|(bv(_)&&!W3(_)?2:0):32,O=Rh(_,T,P,n)||$e;return CEe(u8e(n,jr(n).resolvedSymbol,O,d,c),n)}function b8e(n){return Ym(n)||Kb(n)||U_(n)}function Fk(n){return b8e(n)&&pn(n.typeArguments,na),n.kind===215?Qi(n.template):U_(n)?Qi(n.attributes):n.kind!==170&&pn(n.arguments,s=>{Qi(s)}),A}function jm(n){return Fk(n),Ce}function btt(n,s,c){let _,d,h=0,T,P=-1,O;E.assert(!s.length);for(const $ of n){const re=$.declaration&&vr($.declaration),ce=$.declaration&&$.declaration.parent;!d||re===d?_&&ce===_?T=T+1:(_=ce,T=h):(T=h=s.length,_=ce),d=re,P$($)?(P++,O=P,h++):O=T,s.splice(O,0,c?gXe($,c):$)}}function vz(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function bz(n){return qc(n,vz)}function T8e(n){return!!(n.flags&16384)}function Ttt(n){return!!(n.flags&49155)}function Tz(n,s,c,_=!1){let d,h=!1,T=qu(c),P=Sd(c);if(n.kind===215)if(d=s.length,n.template.kind===228){const O=ka(n.template.templateSpans);h=_c(O.literal)||!!O.literal.isUnterminated}else{const O=n.template;E.assert(O.kind===15),h=!!O.isUnterminated}else if(n.kind===170)d=D8e(n,c);else if(U_(n)){if(h=n.attributes.end===n.end,h)return!0;d=P===0?s.length:1,T=s.length===0?T:1,P=Math.min(P,1)}else if(n.arguments){d=_?s.length+1:s.length,h=n.arguments.end===n.end;const O=bz(s);if(O>=0)return O>=Sd(c)&&(sm(c)||OT)return!1;if(h||d>=P)return!0;for(let O=d;O=_&&s.length<=c}function Tb(n){return l7(n,0,!1)}function x8e(n){return l7(n,0,!1)||l7(n,1,!1)}function l7(n,s,c){if(n.flags&524288){const _=Wp(n);if(c||_.properties.length===0&&_.indexInfos.length===0){if(s===0&&_.callSignatures.length===1&&_.constructSignatures.length===0)return _.callSignatures[0];if(s===1&&_.constructSignatures.length===1&&_.callSignatures.length===0)return _.constructSignatures[0]}}}function S8e(n,s,c,_){const d=t7(n.typeParameters,n,0,_),h=u7(s),T=c&&(h&&h.flags&262144?c.nonFixingMapper:c.mapper),P=T?Pk(s,T):s;return Wie(P,n,(O,$)=>{Lg(d.inferences,O,$)}),c||qie(s,n,(O,$)=>{Lg(d.inferences,O,$,128)}),zE(n,sse(d),Kn(s.declaration))}function xtt(n,s,c,_){const d=fz(s,n),h=Lk(n.attributes,d,_,c);return Lg(_.inferences,h,d),sse(_)}function k8e(n){if(!n)return ar;const s=Qi(n);return HC(n.parent)?Fg(s):c_(n.parent)?qJ(s):s}function Wse(n,s,c,_,d){if(U_(n))return xtt(n,s,_,d);if(n.kind!==170){const O=Xi(s.typeParameters,re=>!!lb(re)),$=eu(n,O?8:0);if($){const re=Ua(s);if(wv(re)){const ce=Nv(n);if(!(!O&&eu(n,8)!==$)){const St=Xie(MZe(ce,1)),Zt=zi($,St),_n=Tb(Zt),Gn=_n&&_n.typeParameters?ub(Gre(_n,_n.typeParameters)):Zt;Lg(d.inferences,Gn,re,128)}const Te=t7(s.typeParameters,s,d.flags),Ze=zi($,ce&&ce.returnMapper);Lg(Te.inferences,Ze,re),d.returnMapper=dt(Te.inferences,Mk)?Xie(JZe(Te)):void 0}}}const h=f7(s),T=h?Math.min(qu(s)-1,c.length):c.length;if(h&&h.flags&262144){const O=Or(d.inferences,$=>$.typeParameter===h);O&&(O.impliedArity=qc(c,vz,T)<0?c.length-T:void 0)}const P=Y1(s);if(P&&wv(P)){const O=w8e(n);Lg(d.inferences,k8e(O),P)}for(let O=0;O=c-1){const re=n[c-1];if(vz(re)){const ce=re.kind===237?re.type:Lk(re.expression,_,d,h);return D0(ce)?C8e(ce):$l(I0(33,ce,Nt,re.kind===230?re.expression:re),T)}}const P=[],O=[],$=[];for(let re=s;reus(void 0,p.Type_0_does_not_satisfy_the_constraint_1):void 0,ce=_||p.Type_0_does_not_satisfy_the_constraint_1;P||(P=uu(h,T));const Se=T[O];if(!J_(Se,Uu(zi($,P),Se),c?s[O]:void 0,ce,re))return}}return T}function E8e(n){if(fx(n.tagName))return 2;const s=Z_(Qi(n.tagName));return Nn(As(s,1))?0:Nn(As(s,0))?1:2}function Stt(n,s,c,_,d,h,T){const P=fz(s,n),O=Lk(n.attributes,P,void 0,_),$=_&4?e7(O):O;return re()&&Die($,P,c,d?n.tagName:void 0,n.attributes,void 0,h,T);function re(){var ce;if(wse(n))return!0;const Se=(zd(n)||rT(n))&&!(fx(n.tagName)||sd(n.tagName))?Qi(n.tagName):void 0;if(!Se)return!0;const Te=As(Se,0);if(!Nn(Te))return!0;const Ze=P7e(n);if(!Ze)return!0;const St=Qo(Ze,111551,!0,!1,n);if(!St)return!0;const Zt=$n(St),_n=As(Zt,0);if(!Nn(_n))return!0;let Gn=!1,An=0;for(const zn of _n){const Ht=Xp(zn,0),mn=As(Ht,0);if(!!Nn(mn))for(const bn of mn){if(Gn=!0,sm(bn))return!0;const Yn=qu(bn);Yn>An&&(An=Yn)}}if(!Gn)return!0;let qt=1/0;for(const zn of Te){const Ht=Sd(zn);Ht{d.push(h.expression)}),d}if(n.kind===170)return ktt(n);if(U_(n))return n.attributes.properties.length>0||zd(n)&&n.parent.children.length>0?[n.attributes]:Ve;const s=n.arguments||Ve,c=bz(s);if(c>=0){const _=s.slice(0,c);for(let d=c;d{var $;const re=T.target.elementFlags[O],ce=jP(h,re&4?$l(P):P,!!(re&12),($=T.target.labeledElementDeclarations)==null?void 0:$[O]);_.push(ce)}):_.push(h)}return _}return s}function ktt(n){const s=n.expression,c=sae(n);if(c){const _=[];for(const d of c.parameters){const h=$n(d);_.push(jP(s,h))}return _}return E.fail()}function D8e(n,s){return j.experimentalDecorators?Ctt(n,s):2}function Ctt(n,s){switch(n.parent.kind){case 263:case 231:return 1;case 172:return ym(n.parent)?3:2;case 174:case 177:case 178:return ee===0||s.parameters.length<=2?2:3;case 169:return 3;default:return E.fail()}}function A8e(n,s){let c,_;const d=Rn(n);if(kr(n.expression)){const h=Kv(d,n.expression.name);c=h.start,_=s?h.length:n.end-c}else{const h=Kv(d,n.expression);c=h.start,_=s?h.length:n.end-c}return{start:c,length:_,sourceFile:d}}function JP(n,s,...c){if(Js(n)){const{sourceFile:_,start:d,length:h}=A8e(n);return"message"in s?vl(_,d,h,s,...c):zW(_,s)}else return"message"in s?br(n,s,...c):Hg(Rn(n),n,s)}function Ett(n){if(!Js(n)||!we(n.expression))return!1;const s=Lc(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=s==null?void 0:s.valueDeclaration;if(!c||!rs(c)||!z6(c.parent)||!d2(c.parent.parent)||!we(c.parent.parent.expression))return!1;const _=tie(!1);return _?vp(c.parent.parent.expression,!0)===_:!1}function N8e(n,s,c,_){var d;const h=bz(c);if(h>-1)return br(c[h],p.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let T=Number.POSITIVE_INFINITY,P=Number.NEGATIVE_INFINITY,O=Number.NEGATIVE_INFINITY,$=Number.POSITIVE_INFINITY,re;for(const St of s){const Zt=Sd(St),_n=qu(St);ZtO&&(O=Zt),c.length<_n&&_n<$&&($=_n)}const ce=dt(s,sm),Se=ce?T:Td?T=Math.min(T,O):$1&&(Gn=zn(ce,$d,Te,An)),Gn||(Gn=zn(ce,Ju,Te,An)),Gn)return Gn;if(Gn=Dtt(n,ce,Se,!!c,_),jr(n).resolvedSignature=Gn,$)if(St)if(St.length===1||St.length>3){const Ht=St[St.length-1];let mn;St.length>3&&(mn=us(mn,p.The_last_overload_gave_the_following_error),mn=us(mn,p.No_overload_matches_this_call)),h&&(mn=us(mn,h));const bn=BP(n,Se,Ht,Ju,0,!0,()=>mn);if(bn)for(const Yn of bn)Ht.declaration&&St.length>3&&ua(Yn,br(Ht.declaration,p.The_last_overload_is_declared_here)),qt(Ht,Yn),xa.add(Yn);else E.fail("No error for last overload signature")}else{const Ht=[];let mn=0,bn=Number.MAX_VALUE,Yn=0,fs=0;for(const fu of St){const Tn=BP(n,Se,fu,Ju,0,!0,()=>us(void 0,p.Overload_0_of_1_2_gave_the_following_error,fs+1,ce.length,Rl(fu)));Tn?(Tn.length<=bn&&(bn=Tn.length,Yn=fs),mn=Math.max(mn,Tn.length),Ht.push(Tn)):E.fail("No error for 3 or fewer overload signatures"),fs++}const Vi=mn>1?Ht[Yn]:bp(Ht);E.assert(Vi.length>0,"No errors reported for 3 or fewer overload signatures");let ei=us(an(Vi,Rle),p.No_overload_matches_this_call);h&&(ei=us(ei,h));const wc=[...Na(Vi,fu=>fu.relatedInformation)];let tu;if(Xi(Vi,fu=>fu.start===Vi[0].start&&fu.length===Vi[0].length&&fu.file===Vi[0].file)){const{file:fu,start:am,length:Tn}=Vi[0];tu={file:fu,start:am,length:Tn,code:ei.code,category:ei.category,messageText:ei,relatedInformation:wc}}else tu=Hg(Rn(n),n,ei,wc);qt(St[0],tu),xa.add(tu)}else if(Zt)xa.add(N8e(n,[Zt],Se,h));else if(_n)Hse(_n,n.typeArguments,!0,h);else{const Ht=zr(s,mn=>Use(mn,re));Ht.length===0?xa.add(wtt(n,s,re,h)):xa.add(N8e(n,Ht,Se,h))}return Gn;function qt(Ht,mn){var bn,Yn;const fs=St,Vi=Zt,ei=_n,wc=((Yn=(bn=Ht.declaration)==null?void 0:bn.symbol)==null?void 0:Yn.declarations)||Ve,fu=wc.length>1?Or(wc,am=>Eo(am)&&Qf(am.body)):void 0;if(fu){const am=vd(fu),Tn=!am.typeParameters;zn([am],Ju,Tn)&&ua(mn,br(fu,p.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}St=fs,Zt=Vi,_n=ei}function zn(Ht,mn,bn,Yn=!1){if(St=void 0,Zt=void 0,_n=void 0,bn){const fs=Ht[0];if(dt(re)||!Tz(n,Se,fs,Yn))return;if(BP(n,Se,fs,mn,0,!1,void 0)){St=[fs];return}return fs}for(let fs=0;fs0),jk(n),_||s.length===1||s.some(h=>!!h.typeParameters)?Ptt(n,s,c,d):Att(s)}function Att(n){const s=Hi(n,O=>O.thisParameter);let c;s.length&&(c=P8e(s,s.map(VP)));const{min:_,max:d}=kue(n,Ntt),h=[];for(let O=0;Od_(re)?Oxb(re,O))))}const T=Hi(n,O=>d_(O)?ka(O.parameters):void 0);let P=128;if(T.length!==0){const O=$l(Jr(Hi(n,f4e),2));h.push(I8e(T,O)),P|=1}return n.some(P$)&&(P|=2),Mm(n[0].declaration,void 0,c,h,oa(n.map(Ua)),void 0,_,P)}function Ntt(n){const s=n.parameters.length;return d_(n)?s-1:s}function P8e(n,s){return I8e(n,Jr(s,2))}function I8e(n,s){return mb(wa(n),s)}function Ptt(n,s,c,_){const d=Ftt(s,Jt===void 0?c.length:Jt),h=s[d],{typeParameters:T}=h;if(!T)return h;const P=b8e(n)?n.typeArguments:void 0,O=P?pJ(h,Itt(P,T,Kn(n))):Ott(n,T,h,c,_);return s[d]=O,O}function Itt(n,s,c){const _=n.map(px);for(;_.length>s.length;)_.pop();for(;_.length=s)return d;T>_&&(_=T,c=d)}return c}function Ltt(n,s,c){if(n.expression.kind===108){const O=gse(n.expression);if(qa(O)){for(const $ of n.arguments)Qi($);return A}if(!q(O)){const $=Od(Pl(n));if($){const re=gi(O,$.typeArguments,$);return dC(n,re,s,c,0)}}return Fk(n)}let _,d=Qi(n.expression);if(Ab(n)){const O=ZE(d,n.expression);_=O===d?0:GC(n)?16:8,d=O}else _=0;if(d=a8e(d,n.expression,Ket),d===oi)return xt;const h=Z_(d);if(q(h))return jm(n);const T=As(h,0),P=As(h,1).length;if(xz(d,h,T.length,P))return!q(d)&&n.typeArguments&&Fe(n,p.Untyped_function_calls_may_not_accept_type_arguments),Fk(n);if(!T.length){if(P)Fe(n,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Cn(d));else{let O;if(n.arguments.length===1){const $=Rn(n).text;Yl($.charCodeAt(_a($,n.expression.end,!0)-1))&&(O=br(n.expression,p.Are_you_missing_a_semicolon))}Xse(n.expression,h,0,O)}return jm(n)}return c&8&&!n.typeArguments&&T.some(Mtt)?(dEe(n,c),Re):T.some(O=>Kn(O.declaration)&&!!XU(O.declaration))?(Fe(n,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Cn(d)),jm(n)):dC(n,T,s,c,_)}function Mtt(n){return!!(n.typeParameters&&jae(Ua(n)))}function xz(n,s,c,_){return qa(n)||qa(s)&&!!(n.flags&262144)||!c&&!_&&!(s.flags&1048576)&&!(qp(s).flags&131072)&&ca(n,Vo)}function Rtt(n,s,c){if(n.arguments&&ee<1){const T=bz(n.arguments);T>=0&&Fe(n.arguments[T],p.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let _=pC(n.expression);if(_===oi)return xt;if(_=Z_(_),q(_))return jm(n);if(qa(_))return n.typeArguments&&Fe(n,p.Untyped_function_calls_may_not_accept_type_arguments),Fk(n);const d=As(_,1);if(d.length){if(!Btt(n,d[0]))return jm(n);if(O8e(d,P=>!!(P.flags&4)))return Fe(n,p.Cannot_create_an_instance_of_an_abstract_class),jm(n);const T=_.symbol&&Yg(_.symbol);return T&&Lr(T,256)?(Fe(n,p.Cannot_create_an_instance_of_an_abstract_class),jm(n)):dC(n,d,s,c,0)}const h=As(_,0);if(h.length){const T=dC(n,h,s,c,0);return fe||(T.declaration&&!xd(T.declaration)&&Ua(T)!==ar&&Fe(n,p.Only_a_void_function_can_be_called_with_the_new_keyword),Y1(T)===ar&&Fe(n,p.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return Xse(n.expression,_,1),jm(n)}function O8e(n,s){return Ds(n)?dt(n,c=>O8e(c,s)):n.compositeKind===1048576?dt(n.compositeSignatures,s):s(n)}function $se(n,s){const c=To(s);if(!Nn(c))return!1;const _=c[0];if(_.flags&2097152){const d=_.types,h=$6e(d);let T=0;for(const P of _.types){if(!h[T]&&Rr(P)&3&&(P.symbol===n||$se(n,P)))return!0;T++}return!1}return _.symbol===n?!0:$se(n,_)}function Btt(n,s){if(!s||!s.declaration)return!0;const c=s.declaration,_=Gx(c,24);if(!_||c.kind!==176)return!0;const d=Yg(c.parent.symbol),h=mo(c.parent.symbol);if(!Mae(n,d)){const T=Pl(n);if(T&&_&16){const P=px(T);if($se(c.parent.symbol,P))return!0}return _&8&&Fe(n,p.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Cn(h)),_&16&&Fe(n,p.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Cn(h)),!1}return!0}function F8e(n,s,c){let _;const d=c===0,h=kb(s),T=h&&As(h,c).length>0;if(s.flags&1048576){const O=s.types;let $=!1;for(const re of O)if(As(re,c).length!==0){if($=!0,_)break}else if(_||(_=us(_,d?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Cn(re)),_=us(_,d?p.Not_all_constituents_of_type_0_are_callable:p.Not_all_constituents_of_type_0_are_constructable,Cn(s))),$)break;$||(_=us(void 0,d?p.No_constituent_of_type_0_is_callable:p.No_constituent_of_type_0_is_constructable,Cn(s))),_||(_=us(_,d?p.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:p.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Cn(s)))}else _=us(_,d?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Cn(s));let P=d?p.This_expression_is_not_callable:p.This_expression_is_not_constructable;if(Js(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:O}=jr(n);O&&O.flags&32768&&(P=p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:us(_,P),relatedMessage:T?p.Did_you_forget_to_use_await:void 0}}function Xse(n,s,c,_){const{messageChain:d,relatedMessage:h}=F8e(n,s,c),T=Hg(Rn(n),n,d);if(h&&ua(T,br(n,h)),Js(n.parent)){const{start:P,length:O}=A8e(n.parent,!0);T.start=P,T.length=O}xa.add(T),L8e(s,c,_?ua(T,_):T)}function L8e(n,s,c){if(!n.symbol)return;const _=Mi(n.symbol).originatingImport;if(_&&!Zu(_)){const d=As($n(Mi(n.symbol).target),s);if(!d||!d.length)return;ua(c,br(_,p.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 jtt(n,s,c){const _=Qi(n.tag),d=Z_(_);if(q(d))return jm(n);const h=As(d,0),T=As(d,1).length;if(xz(_,d,h.length,T))return Fk(n);if(!h.length){if(u_(n.parent)){const P=br(n.tag,p.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 xa.add(P),jm(n)}return Xse(n.tag,d,0),jm(n)}return dC(n,h,s,c,0)}function Jtt(n){switch(n.parent.kind){case 263:case 231:return p.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return p.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return p.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return p.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return E.fail()}}function ztt(n,s,c){const _=Qi(n.expression),d=Z_(_);if(q(d))return jm(n);const h=As(d,0),T=As(d,1).length;if(xz(_,d,h.length,T))return Fk(n);if(Utt(n,h)&&!yu(n.expression)){const O=el(n.expression,!1);return Fe(n,p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,O),jm(n)}const P=Jtt(n);if(!h.length){const O=F8e(n.expression,d,0),$=us(O.messageChain,P),re=Hg(Rn(n.expression),n.expression,$);return O.relatedMessage&&ua(re,br(n.expression,O.relatedMessage)),xa.add(re),L8e(d,0,re),jm(n)}return dC(n,h,s,c,0,P)}function Sz(n,s){const c=bb(n),_=c&&zu(c),d=_&&G_(_,sf.Element,788968),h=d&&ct.symbolToEntityName(d,788968,n),T=I.createFunctionTypeNode(void 0,[I.createParameterDeclaration(void 0,void 0,"props",void 0,ct.typeToTypeNode(s,n))],h?I.createTypeReferenceNode(h,void 0):I.createKeywordTypeNode(133)),P=Pa(1,"props");return P.links.type=s,Mm(T,void 0,void 0,[P],d?mo(d):$e,void 0,1,0)}function Vtt(n,s,c){if(fx(n.tagName)){const T=e8e(n),P=Sz(n,T);return zh(Lk(n.attributes,fz(P,n),void 0,0),T,n.tagName,n.attributes),Nn(n.typeArguments)&&(pn(n.typeArguments,na),xa.add(p6(Rn(n),n.typeArguments,p.Expected_0_type_arguments_but_got_1,0,Nn(n.typeArguments)))),P}const _=Qi(n.tagName),d=Z_(_);if(q(d))return jm(n);const h=Z3e(_,n);return xz(_,d,h.length,0)?Fk(n):h.length===0?(Fe(n.tagName,p.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,el(n.tagName)),jm(n)):dC(n,h,s,c,0)}function Utt(n,s){return s.length&&Xi(s,c=>c.minArgumentCount===0&&!d_(c)&&c.parameters.length1?Bc(n.arguments[1]):void 0;for(let h=2;h{const T=Wu(d);FJ(h,T)||DCe(d,h,c,p.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)})}function Ztt(n){const s=Qi(n.expression),c=ZE(s,n.expression);return HJ(Fg(c),n,c!==s)}function Ktt(n){return n.flags&64?Ztt(n):Fg(Qi(n.expression))}function V8e(n){if(F7e(n),pn(n.typeArguments,na),n.kind===233){const c=$0(n.parent);c.kind===226&&c.operatorToken.kind===104&&i2(n,c.right)&&Fe(n,p.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const s=n.kind===233?Qi(n.expression):c2(n.exprName)?AP(n.exprName):Qi(n.exprName);return U8e(s,n)}function U8e(n,s){const c=s.typeArguments;if(n===oi||q(n)||!dt(c))return n;let _=!1,d;const h=P(n),T=_?d:n;return T&&xa.add(p6(Rn(s),c,p.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Cn(T))),h;function P($){let re=!1,ce=!1;const Se=Te($);return _||(_=ce),re&&!ce&&(d!=null||(d=$)),Se;function Te(Ze){if(Ze.flags&524288){const St=Wp(Ze),Zt=O(St.callSignatures),_n=O(St.constructSignatures);if(re||(re=St.callSignatures.length!==0||St.constructSignatures.length!==0),ce||(ce=Zt.length!==0||_n.length!==0),Zt!==St.callSignatures||_n!==St.constructSignatures){const Gn=gc(void 0,St.members,Zt,_n,St.indexInfos);return Gn.objectFlags|=8388608,Gn.node=s,Gn}}else if(Ze.flags&58982400){const St=B_(Ze);if(St){const Zt=Te(St);if(Zt!==St)return Zt}}else{if(Ze.flags&1048576)return xo(Ze,P);if(Ze.flags&2097152)return oa(cl(Ze.types,Te))}return Ze}}function O($){const re=zr($,ce=>!!ce.typeParameters&&Use(ce,c));return cl(re,ce=>{const Se=Hse(ce,c,!0);return Se?zE(ce,Se,Kn(ce.declaration)):ce})}}function ent(n){return na(n.type),Kse(n.expression,n.type)}function Kse(n,s,c){const _=Qi(n,c),d=ai(s);if(q(d))return d;const h=In(s.parent,T=>T.kind===238||T.kind===357);return zh(_,d,h,n,p.Type_0_does_not_satisfy_the_expected_type_1),_}function tnt(n){return Qat(n),n.keywordToken===105?eae(n):n.keywordToken===102?nnt(n):E.assertNever(n.keywordToken)}function W8e(n){switch(n.keywordToken){case 102:return D4e();case 105:const s=eae(n);return q(s)?$e:vnt(s);default:E.assertNever(n.keywordToken)}}function eae(n){const s=Qle(n);if(s)if(s.kind===176){const c=vr(s.parent);return $n(c)}else{const c=vr(s);return $n(c)}else return Fe(n,p.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),$e}function nnt(n){R===100||R===199?Rn(n).impliedNodeFormat!==99&&Fe(n,p.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):R<6&&R!==4&&Fe(n,p.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const s=Rn(n);return E.assert(!!(s.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?w4e():$e}function VP(n){const s=$n(n);if(H){const c=n.valueDeclaration;if(c&&i1(c))return N0(s)}return s}function tae(n,s,c="arg"){return n?(E.assert(we(n.name)),n.name.escapedText):`${c}_${s}`}function gC(n,s,c){const _=n.parameters.length-(d_(n)?1:0);if(s<_)return n.parameters[s].escapedName;const d=n.parameters[_]||it,h=c||$n(d);if(la(h)){const T=h.target.labeledElementDeclarations,P=s-_;return tae(T==null?void 0:T[P],P,d.escapedName)}return d.escapedName}function rnt(n,s){var c;if(((c=n.declaration)==null?void 0:c.kind)===324)return;const _=n.parameters.length-(d_(n)?1:0);if(s<_){const P=n.parameters[s],O=q8e(P);return O?{parameter:O,parameterName:P.escapedName,isRestParameter:!1}:void 0}const d=n.parameters[_]||it,h=q8e(d);if(!h)return;const T=$n(d);if(la(T)){const P=T.target.labeledElementDeclarations,O=s-_,$=P==null?void 0:P[O],re=!!($!=null&&$.dotDotDotToken);return $?(E.assert(we($.name)),{parameter:$.name,parameterName:$.name.escapedText,isRestParameter:re}):void 0}if(s===_)return{parameter:h,parameterName:d.escapedName,isRestParameter:!0}}function q8e(n){return n.valueDeclaration&&rs(n.valueDeclaration)&&we(n.valueDeclaration.name)&&n.valueDeclaration.name}function H8e(n){return n.kind===202||rs(n)&&n.name&&we(n.name)}function int(n,s){const c=n.parameters.length-(d_(n)?1:0);if(s=c-1)return s===c-1?d:$l(Eu(d,ye));const h=[],T=[],P=[];for(let O=s;O!(O&1)),P=T<0?h.target.fixedLength:T;P>0&&(d=n.parameters.length-1+P)}}if(d===void 0){if(!c&&n.flags&32)return 0;d=n.minArgumentCount}if(_)return d;for(let h=d-1;h>=0;h--){const T=Xp(n,h);if(ol(T,T8e).flags&131072)break;d=h}n.resolvedMinArgumentCount=d}return n.resolvedMinArgumentCount}function sm(n){if(d_(n)){const s=$n(n.parameters[n.parameters.length-1]);return!la(s)||s.target.hasRestElement}return!1}function u7(n){if(d_(n)){const s=$n(n.parameters[n.parameters.length-1]);if(!la(s))return s;if(s.target.hasRestElement)return nC(s,s.target.fixedLength)}}function f7(n){const s=u7(n);return s&&!wf(s)&&!qa(s)?s:void 0}function nae(n){return rae(n,jn)}function rae(n,s){return n.parameters.length>0?Xp(n,0):s}function G8e(n,s,c){const _=n.parameters.length-(d_(n)?1:0);for(let d=0;d<_;d++){const h=n.parameters[d].valueDeclaration;if(h.type){const T=Vl(h);T&&Lg(c.inferences,ai(T),Xp(s,d))}}}function snt(n,s){if(s.typeParameters)if(!n.typeParameters)n.typeParameters=s.typeParameters;else return;if(s.thisParameter){const _=n.thisParameter;(!_||_.valueDeclaration&&!_.valueDeclaration.type)&&(_||(n.thisParameter=mb(s.thisParameter,void 0)),UP(n.thisParameter,$n(s.thisParameter)))}const c=n.parameters.length-(d_(n)?1:0);for(let _=0;_=0);const h=Cc(_.parent)?$n(vr(_.parent.parent)):S7e(_.parent),T=Cc(_.parent)?Nt:k7e(_.parent),P=Gp(d),O=pp("target",h),$=pp("propertyKey",T),re=pp("parameterIndex",P);c.decoratorSignature=b7(void 0,void 0,[O,$,re],ar);break}case 174:case 177:case 178:case 172:{const _=s;if(!ni(_.parent))break;const d=S7e(_),h=pp("target",d),T=k7e(_),P=pp("propertyKey",T),O=Fs(_)?ar:L4e(px(_));if(ee!==0&&(!Fs(s)||ym(s))){const re=L4e(px(_)),ce=pp("descriptor",re);c.decoratorSignature=b7(void 0,void 0,[h,P,ce],Jr([O,ar]))}else c.decoratorSignature=b7(void 0,void 0,[h,P],Jr([O,ar]));break}}return c.decoratorSignature===A?void 0:c.decoratorSignature}function sae(n){return Z?ynt(n):hnt(n)}function WP(n){const s=cP(!0);return s!==Rs?(n=P0(vC(n))||jt,k0(s,[n])):jt}function Q8e(n){const s=I4e(!0);return s!==Rs?(n=P0(vC(n))||jt,k0(s,[n])):jt}function qP(n,s){const c=WP(s);return c===jt?(Fe(n,Zu(n)?p.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:p.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),$e):(tie(!0)||Fe(n,Zu(n)?p.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:p.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),c)}function vnt(n){const s=Pa(0,"NewTargetExpression"),c=Pa(4,"target",8);c.parent=s,c.links.type=n;const _=Vs([c]);return s.members=_,gc(s,_,Ve,Ve,Ve)}function Ez(n,s){if(!n.body)return $e;const c=Il(n),_=(c&2)!==0,d=(c&1)!==0;let h,T,P,O=ar;if(n.body.kind!==241)h=Bc(n.body,s&&s&-9),_&&(h=vC(v7(h,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(d){const $=nEe(n,s);$?$.length>0&&(h=Jr($,2)):O=jn;const{yieldTypes:re,nextTypes:ce}=bnt(n,s);T=dt(re)?Jr(re,2):void 0,P=dt(ce)?oa(ce):void 0}else{const $=nEe(n,s);if(!$)return c&2?qP(n,jn):jn;if($.length===0){const re=cz(n,void 0),ce=re&&(nI(re,c)||ar).flags&32768?Nt:ar;return c&2?qP(n,ce):ce}h=Jr($,2)}if(h||T||P){if(T&&QJ(n,T,3),h&&QJ(n,h,1),P&&QJ(n,P,2),h&&$p(h)||T&&$p(T)||P&&$p(P)){const $=Sse(n),re=$?$===vd(n)?d?void 0:h:_z(Ua($),n,void 0):void 0;d?(T=Vie(T,re,0,_),h=Vie(h,re,1,_),P=Vie(P,re,2,_)):h=kZe(h,re,_)}T&&(T=Wu(T)),h&&(h=Wu(h)),P&&(P=Wu(P))}return d?Y8e(T||jn,h||O,P||B3e(2,n)||jt,_):_?WP(h||O):h||O}function Y8e(n,s,c,_){const d=_?La:io,h=d.getGlobalGeneratorType(!1);if(n=d.resolveIterationType(n,void 0)||jt,s=d.resolveIterationType(s,void 0)||jt,c=d.resolveIterationType(c,void 0)||jt,h===Rs){const T=d.getGlobalIterableIteratorType(!1),P=T!==Rs?UEe(T,d):void 0,O=P?P.returnType:ke,$=P?P.nextType:Nt;return ca(s,O)&&ca($,c)?T!==Rs?UE(T,[n]):(d.getGlobalIterableIteratorType(!0),Li):(d.getGlobalGeneratorType(!0),Li)}return UE(h,[n,s,c])}function bnt(n,s){const c=[],_=[],d=(Il(n)&2)!==0;return jle(n.body,h=>{const T=h.expression?Qi(h.expression,s):hi;$f(c,Z8e(h,T,ke,d));let P;if(h.asteriskToken){const O=Rz(T,d?19:17,h.expression);P=O&&O.nextType}else P=eu(h,void 0);P&&$f(_,P)}),{yieldTypes:c,nextTypes:_}}function Z8e(n,s,c,_){const d=n.expression||n,h=n.asteriskToken?I0(_?19:17,s,c,d):s;return _?kb(h,d,n.asteriskToken?p.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:p.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h}function K8e(n,s,c){let _=0;for(let d=0;d=s?c[d]:void 0;_|=h!==void 0?vL.get(h)||32768:0}return _}function eEe(n){const s=jr(n);if(s.isExhaustive===void 0){s.isExhaustive=0;const c=Tnt(n);s.isExhaustive===0&&(s.isExhaustive=c)}else s.isExhaustive===0&&(s.isExhaustive=!1);return s.isExhaustive}function Tnt(n){if(n.expression.kind===221){const _=y3e(n);if(!_)return!1;const d=Ag(Bc(n.expression.expression)),h=K8e(0,0,_);return d.flags&3?(556800&h)===556800:!Mg(d,T=>(k_(T)&h)===h)}const s=Bc(n.expression);if(!YE(s))return!1;const c=ez(n);return!c.length||dt(c,TZe)?!1:yKe(xo(s,j_),c)}function tEe(n){return n.endFlowNode&&wP(n.endFlowNode)}function nEe(n,s){const c=Il(n),_=[];let d=tEe(n),h=!1;if(t2(n.body,T=>{const P=T.expression;if(P){if(P.kind===213&&P.expression.kind===80&&Bc(P.expression).symbol===n.symbol){h=!0;return}let O=Bc(P,s&&s&-9);c&2&&(O=vC(v7(O,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),O.flags&131072&&(h=!0),$f(_,O)}else d=!0}),!(_.length===0&&!d&&(h||xnt(n))))return H&&_.length&&d&&!(xd(n)&&_.some(T=>T.symbol===n.symbol))&&$f(_,Nt),_}function xnt(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function aae(n,s){r(c);return;function c(){const _=Il(n),d=s&&nI(s,_);if(d&&(Yo(d,16384)||d.flags&32769)||n.kind===173||_c(n.body)||n.body.kind!==241||!tEe(n))return;const h=n.flags&1024,T=ep(n)||n;if(d&&d.flags&131072)Fe(T,p.A_function_returning_never_cannot_have_a_reachable_end_point);else if(d&&!h)Fe(T,p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(d&&H&&!ca(Nt,d))Fe(T,p.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!d){if(!h)return;const P=Ua(vd(n));if(QEe(n,P))return}Fe(T,p.Not_all_code_paths_return_a_value)}}}function rEe(n,s){if(E.assert(n.kind!==174||kp(n)),jk(n),_o(n)&&bC(n,n.name),s&&s&4&&Cf(n)){if(!ep(n)&&!CO(n)){const _=c7(n);if(_&&wv(Ua(_))){const d=jr(n);if(d.contextFreeType)return d.contextFreeType;const h=Ez(n,s),T=Mm(void 0,void 0,void 0,Ve,h,void 0,0,64),P=gc(n.symbol,U,[T],Ve,Ve);return P.objectFlags|=262144,d.contextFreeType=P}}return po}return!$z(n)&&n.kind===218&&Vae(n),Snt(n,s),$n(vr(n))}function Snt(n,s){const c=jr(n);if(!(c.flags&64)){const _=c7(n);if(!(c.flags&64)){c.flags|=64;const d=wl(As($n(vr(n)),0));if(!d)return;if(Cf(n))if(_){const h=Nv(n);let T;if(s&&s&2){G8e(d,_,h);const P=u7(_);P&&P.flags&262144&&(T=Pk(_,h.nonFixingMapper))}T||(T=h?Pk(_,h.mapper):_),snt(d,T)}else ant(d);else if(_&&!n.typeParameters&&_.parameters.length>n.parameters.length){const h=Nv(n);s&&s&2&&G8e(d,_,h)}if(_&&!Ck(n)&&!d.resolvedReturnType){const h=Ez(n,s);d.resolvedReturnType||(d.resolvedReturnType=h)}m7(n)}}}function knt(n){E.assert(n.kind!==174||kp(n));const s=Il(n),c=Ck(n);if(aae(n,c),n.body)if(ep(n)||Ua(vd(n)),n.body.kind===241)na(n.body);else{const _=Qi(n.body),d=c&&nI(c,s);if(d)if((s&3)===2){const h=v7(_,!1,n.body,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);zh(h,d,n.body,n.body)}else zh(_,d,n.body,n.body)}}function wz(n,s,c,_=!1){if(!ca(s,di)){const d=_&&h7(s);return Th(n,!!d&&ca(d,di),c),!1}return!0}function Cnt(n){if(!Js(n)||!Rx(n))return!1;const s=Bc(n.arguments[2]);if(Wc(s,"value")){const d=Ws(s,"writable"),h=d&&$n(d);if(!h||h===We||h===Tt)return!0;if(d&&d.valueDeclaration&&Ec(d.valueDeclaration)){const T=d.valueDeclaration.initializer,P=Qi(T);if(P===We||P===Tt)return!0}return!1}return!Ws(s,"set")}function Qp(n){return!!(rc(n)&8||n.flags&4&&Lf(n)&64||n.flags&3&&Nse(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||dt(n.declarations,Cnt))}function iEe(n,s,c){var _,d;if(c===0)return!1;if(Qp(s)){if(s.flags&4&&Mo(n)&&n.expression.kind===110){const h=df(n);if(!(h&&(h.kind===176||xd(h))))return!0;if(s.valueDeclaration){const T=rr(s.valueDeclaration),P=h.parent===s.valueDeclaration.parent,O=h===s.valueDeclaration.parent,$=T&&((_=s.parent)==null?void 0:_.valueDeclaration)===h.parent,re=T&&((d=s.parent)==null?void 0:d.valueDeclaration)===h;return!(P||O||$||re)}}return!0}if(Mo(n)){const h=lo(n.expression);if(h.kind===80){const T=jr(h).resolvedSymbol;if(T.flags&2097152){const P=dp(T);return!!P&&P.kind===274}}}return!1}function p7(n,s,c){const _=nl(n,7);return _.kind!==80&&!Mo(_)?(Fe(n,s),!1):_.flags&64?(Fe(n,c),!1):!0}function Ent(n){Qi(n.expression);const s=lo(n.expression);if(!Mo(s))return Fe(s,p.The_operand_of_a_delete_operator_must_be_a_property_reference),kn;kr(s)&&Ei(s.name)&&Fe(s,p.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=jr(s),_=Q_(c.resolvedSymbol);return _&&(Qp(_)&&Fe(s,p.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),wnt(s,_)),kn}function wnt(n,s){const c=$n(s);H&&!(c.flags&131075)&&!(be?s.flags&16777216:k_(c)&16777216)&&Fe(n,p.The_operand_of_a_delete_operator_must_be_optional)}function Dnt(n){return Qi(n.expression),vh}function Ant(n){return Qi(n.expression),hi}function sEe(n){let s=!1;const c=P9(n);if(c&&ec(c)){const _=p1(n)?p.await_expression_cannot_be_used_inside_a_class_static_block:p.await_using_statements_cannot_be_used_inside_a_class_static_block;Fe(n,_),s=!0}else if(!(n.flags&65536))if(O9(n)){const _=Rn(n);if(!Ov(_)){let d;if(!Lx(_,j)){d!=null||(d=gm(_,n.pos));const h=p1(n)?p.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:p.await_using_statements_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,T=vl(_,d.start,d.length,h);xa.add(T),s=!0}switch(R){case 100:case 199:if(_.impliedNodeFormat===1){d!=null||(d=gm(_,n.pos)),xa.add(vl(_,d.start,d.length,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),s=!0;break}case 7:case 99:case 4:if(ee>=4)break;default:d!=null||(d=gm(_,n.pos));const h=p1(n)?p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:p.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher;xa.add(vl(_,d.start,d.length,h)),s=!0;break}}}else{const _=Rn(n);if(!Ov(_)){const d=gm(_,n.pos),h=p1(n)?p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,T=vl(_,d.start,d.length,h);if(c&&c.kind!==176&&(Il(c)&2)===0){const P=br(c,p.Did_you_mean_to_mark_this_function_as_async);ua(T,P)}xa.add(T),s=!0}}return p1(n)&&yse(n)&&(Fe(n,p.await_expressions_cannot_be_used_in_a_parameter_initializer),s=!0),s}function Nnt(n){r(()=>sEe(n));const s=Qi(n.expression),c=v7(s,!0,n,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===s&&!q(c)&&!(s.flags&3)&&u0(!1,br(n,p.await_has_no_effect_on_the_type_of_this_expression)),c}function Pnt(n){const s=Qi(n.operand);if(s===oi)return oi;switch(n.operand.kind){case 9:switch(n.operator){case 41:return cx(Gp(-n.operand.text));case 40:return cx(Gp(+n.operand.text))}break;case 10:if(n.operator===41)return cx(CJ({negative:!0,base10Value:j3(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return Td(s,n.operand),HP(s,12288)&&Fe(n.operand,p.The_0_operator_cannot_be_applied_to_type_symbol,ia(n.operator)),n.operator===40?(HP(s,2112)&&Fe(n.operand,p.Operator_0_cannot_be_applied_to_type_1,ia(n.operator),Cn(Vh(s))),ye):oae(s);case 54:Sae(s,n.operand);const c=k_(s)&12582912;return c===4194304?We:c===8388608?It:kn;case 46:case 47:return wz(n.operand,Td(s,n.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&p7(n.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),oae(s)}return $e}function Int(n){const s=Qi(n.operand);return s===oi?oi:(wz(n.operand,Td(s,n.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&p7(n.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),oae(s))}function oae(n){return Yo(n,2112)?kl(n,3)||Yo(n,296)?di:Oe:ye}function HP(n,s){if(Yo(n,s))return!0;const c=Ag(n);return!!c&&Yo(c,s)}function Yo(n,s){if(n.flags&s)return!0;if(n.flags&3145728){const c=n.types;for(const _ of c)if(Yo(_,s))return!0}return!1}function kl(n,s,c){return n.flags&s?!0:c&&n.flags&114691?!1:!!(s&296)&&ca(n,ye)||!!(s&2112)&&ca(n,Oe)||!!(s&402653316)&&ca(n,F)||!!(s&528)&&ca(n,kn)||!!(s&16384)&&ca(n,ar)||!!(s&131072)&&ca(n,jn)||!!(s&65536)&&ca(n,W)||!!(s&32768)&&ca(n,Nt)||!!(s&4096)&&ca(n,ir)||!!(s&67108864)&&ca(n,Us)}function GP(n,s,c){return n.flags&1048576?Xi(n.types,_=>GP(_,s,c)):kl(n,s,c)}function cae(n){return!!(Rr(n)&16)&&!!n.symbol&&lae(n.symbol)}function lae(n){return(n.flags&128)!==0}function Ont(n,s,c,_){return c===oi||_===oi?oi:(!qa(c)&&GP(c,402784252)&&Fe(n,p.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),qa(_)||Wz(_)||Jh(_,Vo)||Fe(s,p.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),kn)}function Fnt(n){return Mg(n,s=>s===_l||!!(s.flags&2097152)&&Og(Ag(s)))}function Lnt(n,s,c,_){if(c===oi||_===oi)return oi;if(Ei(n)){if(ee<99&&Kc(n,2097152),!jr(n).resolvedSymbol&&Pl(n)){const d=Rse(n,_.symbol,!0);p8e(n,_,d)}}else J_(Td(c,n),cs,n);return J_(Td(_,s),Us,s)&&Fnt(_)&&Fe(s,p.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Cn(_)),kn}function Mnt(n,s,c){const _=n.properties;if(H&&_.length===0)return Td(s,n);for(let d=0;d<_.length;d++)aEe(n,s,d,_,c);return s}function aEe(n,s,c,_,d=!1){const h=n.properties,T=h[c];if(T.kind===303||T.kind===304){const P=T.name,O=E0(P);if(ip(O)){const ce=sp(O),Se=Ws(s,ce);Se&&(RP(Se,T,d),Ise(T,!1,!0,s,Se))}const $=Eu(s,O,32,P),re=Kt(T,$);return Sb(T.kind===304?T:T.initializer,re)}else if(T.kind===305)if(cnC($,c)):$l(_);return Sb(P,O,d)}}}}function Sb(n,s,c,_){let d;if(n.kind===304){const h=n;h.objectAssignmentInitializer&&(H&&!(k_(Qi(h.objectAssignmentInitializer))&16777216)&&(s=Gf(s,524288)),znt(h.name,h.equalsToken,h.objectAssignmentInitializer,c)),d=n.name}else d=n;return d.kind===226&&d.operatorToken.kind===64&&(xe(d,c),d=d.left,H&&(s=Gf(s,524288))),d.kind===210?Mnt(d,s,_):d.kind===209?Rnt(d,s,c):Bnt(d,s,c)}function Bnt(n,s,c){const _=Qi(n,c),d=n.parent.kind===305?p.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,h=n.parent.kind===305?p.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return p7(n,d,h)&&zh(s,_,n,n),n6(n)&&Kc(n.parent,1048576),s}function $P(n){switch(n=lo(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return $P(n.whenTrue)&&$P(n.whenFalse);case 226:return Y0(n.operatorToken.kind)?!1:$P(n.left)&&$P(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function _ae(n,s){return(s.flags&98304)!==0||FJ(n,s)}function jnt(){const n=OF(s,c,_,d,h,T);return(Se,Te)=>{const Ze=n(Se,Te);return E.assertIsDefined(Ze),Ze};function s(Se,Te,Ze){return Te?(Te.stackIndex++,Te.skip=!1,$(Te,void 0),ce(Te,void 0)):Te={checkMode:Ze,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Kn(Se)&&Mx(Se)?(Te.skip=!0,ce(Te,Qi(Se.right,Ze)),Te):(Jnt(Se),Se.operatorToken.kind===64&&(Se.left.kind===210||Se.left.kind===209)&&(Te.skip=!0,ce(Te,Sb(Se.left,Qi(Se.right,Ze),Ze,Se.right.kind===110))),Te)}function c(Se,Te,Ze){if(!Te.skip)return P(Te,Se)}function _(Se,Te,Ze){if(!Te.skip){const St=re(Te);E.assertIsDefined(St),$(Te,St),ce(Te,void 0);const Zt=Se.kind;if(bD(Zt)){let _n=Ze.parent;for(;_n.kind===217||TD(_n);)_n=_n.parent;(Zt===56||tT(_n))&&xae(Ze.left,St,tT(_n)?_n.thenStatement:void 0),Sae(St,Ze.left)}}}function d(Se,Te,Ze){if(!Te.skip)return P(Te,Se)}function h(Se,Te){let Ze;if(Te.skip)Ze=re(Te);else{const St=O(Te);E.assertIsDefined(St);const Zt=re(Te);E.assertIsDefined(Zt),Ze=cEe(Se.left,Se.operatorToken,Se.right,St,Zt,Te.checkMode,Se)}return Te.skip=!1,$(Te,void 0),ce(Te,void 0),Te.stackIndex--,Ze}function T(Se,Te,Ze){return ce(Se,Te),Se}function P(Se,Te){if(rr(Te))return Te;ce(Se,Qi(Te,Se.checkMode))}function O(Se){return Se.typeStack[Se.stackIndex]}function $(Se,Te){Se.typeStack[Se.stackIndex]=Te}function re(Se){return Se.typeStack[Se.stackIndex+1]}function ce(Se,Te){Se.typeStack[Se.stackIndex+1]=Te}}function Jnt(n){const{left:s,operatorToken:c,right:_}=n;c.kind===61&&(rr(s)&&(s.operatorToken.kind===57||s.operatorToken.kind===56)&&Qt(s,p._0_and_1_operations_cannot_be_mixed_without_parentheses,ia(s.operatorToken.kind),ia(c.kind)),rr(_)&&(_.operatorToken.kind===57||_.operatorToken.kind===56)&&Qt(_,p._0_and_1_operations_cannot_be_mixed_without_parentheses,ia(_.operatorToken.kind),ia(c.kind)))}function znt(n,s,c,_,d){const h=s.kind;if(h===64&&(n.kind===210||n.kind===209))return Sb(n,Qi(c,_),_,c.kind===110);let T;bD(h)?T=TC(n,_):T=Qi(n,_);const P=Qi(c,_);return cEe(n,s,c,T,P,_,d)}function cEe(n,s,c,_,d,h,T){const P=s.kind;switch(P){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(_===oi||d===oi)return oi;_=Td(_,n),d=Td(d,c);let qt;if(_.flags&528&&d.flags&528&&(qt=Se(s.kind))!==void 0)return Fe(T||s,p.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ia(s.kind),ia(qt)),ye;{const mn=wz(n,_,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),bn=wz(c,d,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let Yn;if(kl(_,3)&&kl(d,3)||!(Yo(_,2112)||Yo(d,2112)))Yn=ye;else if(O(_,d)){switch(P){case 50:case 73:Zt();break;case 43:case 68:ee<3&&Fe(T,p.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Yn=Oe}else Zt(O),Yn=$e;return mn&&bn&&Te(Yn),Yn}case 40:case 65:if(_===oi||d===oi)return oi;!kl(_,402653316)&&!kl(d,402653316)&&(_=Td(_,n),d=Td(d,c));let zn;return kl(_,296,!0)&&kl(d,296,!0)?zn=ye:kl(_,2112,!0)&&kl(d,2112,!0)?zn=Oe:kl(_,402653316,!0)||kl(d,402653316,!0)?zn=F:(qa(_)||qa(d))&&(zn=q(_)||q(d)?$e:ke),zn&&!ce(P)?zn:zn?(P===65&&Te(zn),zn):(Zt((bn,Yn)=>kl(bn,402655727)&&kl(Yn,402655727)),ke);case 30:case 32:case 33:case 34:return ce(P)&&(_=Jie(Td(_,n)),d=Jie(Td(d,c)),St((mn,bn)=>{if(qa(mn)||qa(bn))return!0;const Yn=ca(mn,di),fs=ca(bn,di);return Yn&&fs||!Yn&&!fs&&mP(mn,bn)})),kn;case 35:case 36:case 37:case 38:if(!(h&&h&128)){if((sW(n)||sW(c))&&(!Kn(n)||P===37||P===38)){const mn=P===35||P===37;Fe(T,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,mn?"false":"true")}Gn(T,P,n,c),St((mn,bn)=>_ae(mn,bn)||_ae(bn,mn))}return kn;case 104:return Ont(n,c,_,d);case 103:return Lnt(n,c,_,d);case 56:case 77:{const mn=k_(_)&4194304?Jr([wZe(H?_:Vh(d)),d]):_;return P===77&&Te(d),mn}case 57:case 76:{const mn=k_(_)&8388608?Jr([Fg(WCe(_)),d],2):_;return P===76&&Te(d),mn}case 61:case 78:{const mn=k_(_)&262144?Jr([Fg(_),d],2):_;return P===78&&Te(d),mn}case 64:const Ht=rr(n.parent)?uc(n.parent):0;return $(Ht,d),Ze(Ht)?((!(d.flags&524288)||Ht!==2&&Ht!==6&&!Ig(d)&&!cse(d)&&!(Rr(d)&1))&&Te(d),_):(Te(d),d);case 28:if(!j.allowUnreachableCode&&$P(n)&&!re(n.parent)){const mn=Rn(n),bn=mn.text,Yn=_a(bn,n.pos);mn.parseDiagnostics.some(Vi=>Vi.code!==p.JSX_expressions_must_have_one_parent_element.code?!1:qU(Vi,Yn))||Fe(n,p.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return d;default:return E.fail()}function O(qt,zn){return kl(qt,2112)&&kl(zn,2112)}function $(qt,zn){if(qt===2)for(const Ht of Oh(zn)){const mn=$n(Ht);if(mn.symbol&&mn.symbol.flags&32){const bn=Ht.escapedName,Yn=Lc(Ht.valueDeclaration,bn,788968,void 0,bn,!1);(Yn==null?void 0:Yn.declarations)&&Yn.declarations.some(a4)&&(Ky(Yn,p.Duplicate_identifier_0,Oi(bn),Ht),Ky(Ht,p.Duplicate_identifier_0,Oi(bn),Yn))}}}function re(qt){return qt.parent.kind===217&&Ou(qt.left)&&qt.left.text==="0"&&(Js(qt.parent.parent)&&qt.parent.parent.expression===qt.parent||qt.parent.parent.kind===215)&&(Mo(qt.right)||we(qt.right)&&qt.right.escapedText==="eval")}function ce(qt){const zn=HP(_,12288)?n:HP(d,12288)?c:void 0;return zn?(Fe(zn,p.The_0_operator_cannot_be_applied_to_type_symbol,ia(qt)),!1):!0}function Se(qt){switch(qt){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Te(qt){Y0(P)&&r(zn);function zn(){let Ht=_;if(C8(s.kind)&&n.kind===211&&(Ht=Fse(n,void 0,!0)),p7(n,p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let mn;if(be&&kr(n)&&Yo(qt,32768)){const bn=Wc(a_(n.expression),n.name.escapedText);MJ(qt,bn)&&(mn=p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}zh(qt,Ht,n,c,mn)}}}function Ze(qt){var zn;switch(qt){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Ht=Cu(n),mn=Mx(c);return!!mn&&ha(mn)&&!!((zn=Ht==null?void 0:Ht.exports)!=null&&zn.size);default:return!1}}function St(qt){return qt(_,d)?!1:(Zt(qt),!0)}function Zt(qt){let zn=!1;const Ht=T||s;if(qt){const Vi=P0(_),ei=P0(d);zn=!(Vi===_&&ei===d)&&!!(Vi&&ei)&&qt(Vi,ei)}let mn=_,bn=d;!zn&&qt&&([mn,bn]=Vnt(_,d,qt));const[Yn,fs]=Ah(mn,bn);_n(Ht,zn,Yn,fs)||Th(Ht,zn,p.Operator_0_cannot_be_applied_to_types_1_and_2,ia(s.kind),Yn,fs)}function _n(qt,zn,Ht,mn){switch(s.kind){case 37:case 35:case 38:case 36:return Th(qt,zn,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Ht,mn);default:return}}function Gn(qt,zn,Ht,mn){const bn=An(lo(Ht)),Yn=An(lo(mn));if(bn||Yn){const fs=Fe(qt,p.This_condition_will_always_return_0,ia(zn===37||zn===35?97:112));if(bn&&Yn)return;const Vi=zn===38||zn===36?ia(54):"",ei=bn?mn:Ht,wc=lo(ei);ua(fs,br(ei,p.Did_you_mean_0,`${Vi}Number.isNaN(${Tc(wc)?Nu(wc):"..."})`))}}function An(qt){if(we(qt)&&qt.escapedText==="NaN"){const zn=OQe();return!!zn&&zn===yp(qt)}return!1}}function Vnt(n,s,c){let _=n,d=s;const h=Vh(n),T=Vh(s);return c(h,T)||(_=h,d=T),[_,d]}function Unt(n){r(Se);const s=df(n);if(!s)return ke;const c=Il(s);if(!(c&1))return ke;const _=(c&2)!==0;n.asteriskToken&&(_&&ee<99&&Kc(n,26624),!_&&ee<2&&j.downlevelIteration&&Kc(n,256));const d=Ck(s),h=d&&XEe(d,_),T=h&&h.yieldType||ke,P=h&&h.nextType||ke,O=_?kb(P)||ke:P,$=n.expression?Qi(n.expression):hi,re=Z8e(n,$,O,_);if(d&&re&&zh(re,T,n.expression||n,n.expression),n.asteriskToken)return Cae(_?19:17,1,$,n.expression)||ke;if(d)return Iv(2,d,_)||ke;let ce=B3e(2,s);return ce||(ce=ke,r(()=>{if(fe&&!Aue(n)){const Te=eu(n,void 0);(!Te||qa(Te))&&Fe(n,p.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ce;function Se(){n.flags&16384||Cl(n,p.A_yield_expression_is_only_allowed_in_a_generator_body),yse(n)&&Fe(n,p.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Wnt(n,s){const c=TC(n.condition,s);xae(n.condition,c,n.whenTrue);const _=Qi(n.whenTrue,s),d=Qi(n.whenFalse,s);return Jr([_,d],2)}function lEe(n){const s=n.parent;return yu(s)&&lEe(s)||No(s)&&s.argumentExpression===n}function qnt(n){const s=[n.head.text],c=[];for(const d of n.templateSpans){const h=Qi(d.expression);HP(h,12288)&&Fe(d.expression,p.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),s.push(d.literal.text),c.push(ca(h,ln)?h:F)}if(hC(n)||lEe(n)||Mg(eu(n,void 0)||jt,Hnt))return fb(s,c);const _=n.parent.kind!==215&&_7e(n);return _?cx(K_(_)):F}function Hnt(n){return!!(n.flags&134217856||n.flags&58982400&&Yo(B_(n)||jt,402653316))}function Gnt(n){return v2(n)&&!rT(n.parent)?n.parent.parent:n}function Lk(n,s,c,_){const d=Gnt(n);PP(d,s,!1),met(d,c);const h=Qi(n,_|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const T=Yo(h,2944)&&Dz(h,_z(s,n,void 0))?j_(h):h;return get(),o7(),T}function Bc(n,s){if(s)return Qi(n,s);const c=jr(n);if(!c.resolvedType){const _=nn,d=ta;nn=Vn,ta=void 0,c.resolvedType=Qi(n,s),ta=d,nn=_}return c.resolvedType}function _Ee(n){return n=lo(n,!0),n.kind===216||n.kind===234||d8(n)}function d7(n,s,c){const _=Hw(n);if(Kn(n)){const h=wO(n);if(h)return Kse(_,h,s)}const d=pae(_)||(c?Lk(_,c,void 0,s||0):Bc(_,s));return rs(n)&&n.name.kind===207&&la(d)&&!d.target.hasRestElement&&C0(d)Dz(n,_))}if(s.flags&58982400){const c=B_(s)||jt;return Yo(c,4)&&Yo(n,128)||Yo(c,8)&&Yo(n,256)||Yo(c,64)&&Yo(n,2048)||Yo(c,4096)&&Yo(n,8192)||Dz(n,c)}return!!(s.flags&406847616&&Yo(n,128)||s.flags&256&&Yo(n,256)||s.flags&2048&&Yo(n,2048)||s.flags&512&&Yo(n,512)||s.flags&8192&&Yo(n,8192))}return!1}function hC(n){const s=n.parent;return Fb(s)&&qg(s.type)||d8(s)&&qg(AF(s))||Zse(n)&&Sk(eu(n,0))||(yu(s)||u_(s)||jd(s))&&hC(s)||(Ec(s)||nf(s)||o8(s))&&hC(s.parent)}function yC(n,s,c){const _=Qi(n,s,c);return hC(n)||Vle(n)?j_(_):_Ee(n)?_:zie(_,_z(eu(n,void 0),n,void 0))}function uEe(n,s){return n.name.kind===167&&Bm(n.name),yC(n.initializer,s)}function fEe(n,s){R7e(n),n.name.kind===167&&Bm(n.name);const c=rEe(n,s);return pEe(n,c,s)}function pEe(n,s,c){if(c&&c&10){const _=l7(s,0,!0),d=l7(s,1,!0),h=_||d;if(h&&h.typeParameters){const T=sy(n,2);if(T){const P=l7(Fg(T),_?0:1,!1);if(P&&!P.typeParameters){if(c&8)return dEe(n,c),po;const O=Nv(n),$=O.signature&&Ua(O.signature),re=$&&x8e($);if(re&&!re.typeParameters&&!Xi(O.inferences,Mk)){const ce=Znt(O,h.typeParameters),Se=Gre(h,ce),Te=an(O.inferences,Ze=>$ie(Ze.typeParameter));if(Wie(Se,P,(Ze,St)=>{Lg(Te,Ze,St,0,!0)}),dt(Te,Mk)&&(qie(Se,P,(Ze,St)=>{Lg(Te,Ze,St)}),!Qnt(O.inferences,Te)))return Ynt(O.inferences,Te),O.inferredTypeParameters=es(O.inferredTypeParameters,ce),ub(Se)}return ub(S8e(h,P,O))}}}}return s}function dEe(n,s){if(s&2){const c=Nv(n);c.flags|=4}}function Mk(n){return!!(n.candidates||n.contraCandidates)}function Xnt(n){return!!(n.candidates||n.contraCandidates||r4e(n.typeParameter))}function Qnt(n,s){for(let c=0;cc.symbol.escapedName===s)}function Knt(n,s){let c=s.length;for(;c>1&&s.charCodeAt(c-1)>=48&&s.charCodeAt(c-1)<=57;)c--;const _=s.slice(0,c);for(let d=1;;d++){const h=_+d;if(!fae(n,h))return h}}function mEe(n){const s=Tb(n);if(s&&!s.typeParameters)return Ua(s)}function ert(n){const s=Qi(n.expression),c=ZE(s,n.expression),_=mEe(s);return _&&HJ(_,n,c!==s)}function a_(n){const s=pae(n);if(s)return s;if(n.flags&268435456&&ta){const d=ta[Ra(n)];if(d)return d}const c=Hn,_=Qi(n,128);if(Hn!==c){const d=ta||(ta=[]);d[Ra(n)]=_,Due(n,n.flags|268435456)}return _}function pae(n){let s=lo(n,!0);if(d8(s)){const c=AF(s);if(!qg(c))return ai(c)}if(s=lo(n),p1(s)){const c=pae(s.expression);return c?kb(c):void 0}if(Js(s)&&s.expression.kind!==108&&!mu(s,!0)&&!M8e(s))return Ab(s)?ert(s):mEe(pC(s.expression));if(Fb(s)&&!qg(s.type))return ai(s.type);if(Nb(n)||Xce(n))return Qi(n)}function XP(n){const s=jr(n);if(s.contextFreeType)return s.contextFreeType;PP(n,ke,!1);const c=s.contextFreeType=Qi(n,4);return o7(),c}function Qi(n,s,c){var _,d;(_=li)==null||_.push(li.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const h=D;D=n,k=0;const T=rrt(n,s,c),P=pEe(n,T,s);return cae(P)&&trt(n,P),D=h,(d=li)==null||d.pop(),P}function trt(n,s){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&Vz(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||Fe(n,p.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),nd(j)&&(E.assert(!!(s.symbol.flags&128)),s.symbol.valueDeclaration.flags&33554432&&!Ey(n)&&Fe(n,p.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function nrt(n,s){if(Qu(n)){if(_H(n))return Kse(n.expression,uH(n),s);if(d8(n))return J8e(n,s)}return Qi(n.expression,s)}function rrt(n,s,c){const _=n.kind;if(i)switch(_){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(_){case 80:return RKe(n,s);case 81:return ntt(n);case 110:return AP(n);case 108:return gse(n);case 106:return ge;case 15:case 11:return Kie(n)?K:cx(K_(n.text));case 9:{Hae(n);const d=+n.text;return isFinite(d)?cx(Gp(d)):ye}case 10:return iot(n),cx(CJ({negative:!1,base10Value:j3(n.text)}));case 112:return It;case 97:return We;case 228:return qnt(n);case 14:return oc;case 209:return H3e(n,s,c);case 210:return Fet(n,s);case 211:return Fse(n,s);case 166:return c8e(n,s);case 212:return ytt(n,s);case 213:if(n.expression.kind===102)return $tt(n);case 214:return Gtt(n,s);case 215:return Xtt(n);case 217:return nrt(n,s);case 231:return Wit(n);case 218:case 219:return rEe(n,s);case 221:return Dnt(n);case 216:case 234:return Qtt(n,s);case 235:return Ktt(n);case 233:return V8e(n);case 238:return ent(n);case 236:return tnt(n);case 220:return Ent(n);case 222:return Ant(n);case 223:return Nnt(n);case 224:return Pnt(n);case 225:return Int(n);case 226:return xe(n,s);case 227:return Wnt(n,s);case 230:return Det(n,s);case 232:return hi;case 229:return Unt(n);case 237:return Aet(n);case 294:return Xet(n,s);case 284:return Bet(n);case 285:return Met(n);case 288:return jet(n);case 292:return zet(n,s);case 286:E.fail("Shouldn't ever directly check a JsxOpeningElement")}return $e}function gEe(n){zm(n),n.expression&&Cl(n.expression,p.Type_expected),na(n.constraint),na(n.default);const s=ob(vr(n));B_(s),jXe(s)||Fe(n.default,p.Type_parameter_0_has_a_circular_default,Cn(s));const c=s_(s),_=lb(s);c&&_&&J_(_,Uu(zi(c,Sv(s,_)),_),n.default,p.Type_0_does_not_satisfy_the_constraint_1),jk(n),r(()=>xC(n.name,p.Type_parameter_name_cannot_be_0))}function irt(n){var s,c;if(f_(n.parent)||ni(n.parent)||Dp(n.parent)){const _=ob(vr(n)),d=Lie(_)&98304;if(d){const h=vr(n.parent);if(Dp(n.parent)&&!(Rr(mo(h))&48))Fe(n,p.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(d===32768||d===65536){(s=li)==null||s.push(li.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:S_(mo(h)),id:S_(_)});const T=yP(h,_,d===65536?vo:q_),P=yP(h,_,d===65536?q_:vo),O=_;M=_,J_(T,P,n,p.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),M=O,(c=li)==null||c.pop()}}}}function hEe(n){zm(n),eI(n);const s=df(n);Lr(n,16476)&&(s.kind===176&&Qf(s.body)||Fe(n,p.A_parameter_property_is_only_allowed_in_a_constructor_implementation),s.kind===176&&we(n.name)&&n.name.escapedText==="constructor"&&Fe(n.name,p.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&lH(n)&&Ps(n.name)&&s.body&&Fe(n,p.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&we(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(s.parameters.indexOf(n)!==0&&Fe(n,p.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(s.kind===176||s.kind===180||s.kind===185)&&Fe(n,p.A_constructor_cannot_have_a_this_parameter),s.kind===219&&Fe(n,p.An_arrow_function_cannot_have_a_this_parameter),(s.kind===177||s.kind===178)&&Fe(n,p.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Ps(n.name)&&!ca(qp($n(n.symbol)),Et)&&Fe(n,p.A_rest_parameter_must_be_of_an_array_type)}function srt(n){const s=art(n);if(!s){Fe(n,p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=vd(s),_=qf(c);if(!_)return;na(n.type);const{parameterName:d}=n;if(_.kind===0||_.kind===2)EJ(d);else if(_.parameterIndex>=0){if(d_(c)&&_.parameterIndex===c.parameters.length-1)Fe(d,p.A_type_predicate_cannot_reference_a_rest_parameter);else if(_.type){const h=()=>us(void 0,p.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);J_(_.type,$n(c.parameters[_.parameterIndex]),n.type,void 0,h)}}else if(d){let h=!1;for(const{name:T}of s.parameters)if(Ps(T)&&yEe(T,d,_.parameterName)){h=!0;break}h||Fe(n.parameterName,p.Cannot_find_parameter_0,_.parameterName)}}function art(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const s=n.parent;if(n===s.type)return s}}function yEe(n,s,c){for(const _ of n.elements){if(dl(_))continue;const d=_.name;if(d.kind===80&&d.escapedText===c)return Fe(s,p.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((d.kind===207||d.kind===206)&&yEe(d,s,c))return!0}}function m7(n){n.kind===181?Iat(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&$z(n);const s=Il(n);s&4||((s&3)===3&&ee<99&&Kc(n,6144),(s&3)===2&&ee<4&&Kc(n,64),(s&3)!==0&&ee<2&&Kc(n,128)),rI(Kh(n)),zit(n),pn(n.parameters,hEe),n.type&&na(n.type),r(c);function c(){rit(n);let _=ep(n),d=_;if(Kn(n)){const h=dy(n);if(h&&h.typeExpression&&ap(h.typeExpression.type)){const T=Tb(ai(h.typeExpression));T&&T.declaration&&(_=ep(T.declaration),d=h.typeExpression.type)}}if(fe&&!_)switch(n.kind){case 180:Fe(n,p.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Fe(n,p.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(_&&d){const h=Il(n);if((h&5)===1){const T=ai(_);if(T===ar)Fe(d,p.A_generator_cannot_have_a_void_type_annotation);else{const P=Iv(0,T,(h&2)!==0)||ke,O=Iv(1,T,(h&2)!==0)||P,$=Iv(2,T,(h&2)!==0)||jt,re=Y8e(P,O,$,!!(h&2));J_(re,T,d)}}else(h&3)===2&&Rrt(n,_,d)}n.kind!==181&&n.kind!==324&&Wh(n)}}function ort(n){const s=new Map,c=new Map,_=new Map;for(const h of n.members)if(h.kind===176)for(const T of h.parameters)Du(T,h)&&!Ps(T.name)&&d(s,T.name,T.name.escapedText,3);else{const T=Os(h),P=h.name;if(!P)continue;const O=Ei(P),$=O&&T?16:0,re=O?_:T?c:s,ce=P&&xy(P);if(ce)switch(h.kind){case 177:d(re,P,ce,1|$);break;case 178:d(re,P,ce,2|$);break;case 172:d(re,P,ce,3|$);break;case 174:d(re,P,ce,8|$);break}}function d(h,T,P,O){const $=h.get(P);if($)if(($&16)!==(O&16))Fe(T,p.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,el(T));else{const re=!!($&8),ce=!!(O&8);re||ce?re!==ce&&Fe(T,p.Duplicate_identifier_0,el(T)):$&O&-17?Fe(T,p.Duplicate_identifier_0,el(T)):h.set(P,$|O)}else h.set(P,O)}}function crt(n){for(const s of n.members){const c=s.name;if(Os(s)&&c){const d=xy(c);switch(d){case"name":case"length":case"caller":case"arguments":if(oe)break;case"prototype":const h=p.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,T=pv(vr(n));Fe(c,h,d,T);break}}}}function vEe(n){const s=new Map;for(const c of n.members)if(c.kind===171){let _;const d=c.name;switch(d.kind){case 11:case 9:_=d.text;break;case 80:_=lr(d);break;default:continue}s.get(_)?(Fe(os(c.symbol.valueDeclaration),p.Duplicate_identifier_0,_),Fe(c.name,p.Duplicate_identifier_0,_)):s.set(_,!0)}}function dae(n){if(n.kind===264){const c=vr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}const s=p4e(vr(n));if(s!=null&&s.declarations){const c=new Map;for(const _ of s.declarations)_.parameters.length===1&&_.parameters[0].type&&yb(ai(_.parameters[0].type),d=>{const h=c.get(S_(d));h?h.declarations.push(_):c.set(S_(d),{type:d,declarations:[_]})});c.forEach(_=>{if(_.declarations.length>1)for(const d of _.declarations)Fe(d,p.Duplicate_index_signature_for_type_0,Cn(_.type))})}}function bEe(n){!zm(n)&&!eot(n)&&Xz(n.name),eI(n),mae(n),Lr(n,256)&&n.kind===172&&n.initializer&&Fe(n,p.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,no(n.name))}function lrt(n){return Ei(n.name)&&Fe(n,p.Private_identifiers_are_not_allowed_outside_class_bodies),bEe(n)}function _rt(n){R7e(n)||Xz(n.name),kc(n)&&n.asteriskToken&&we(n.name)&&lr(n.name)==="constructor"&&Fe(n.name,p.Class_constructor_may_not_be_a_generator),OEe(n),Lr(n,256)&&n.kind===174&&n.body&&Fe(n,p.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,no(n.name)),Ei(n.name)&&!Pl(n)&&Fe(n,p.Private_identifiers_are_not_allowed_outside_class_bodies),mae(n)}function mae(n){if(Ei(n.name)&&ee<99){for(let s=mm(n);s;s=mm(s))jr(s).flags|=1048576;if(Fl(n.parent)){const s=pse(n.parent);s&&(jr(n.name).flags|=32768,jr(s).flags|=4096)}}}function urt(n){zm(n),bs(n,na)}function frt(n){m7(n),Zat(n)||Kat(n),na(n.body);const s=vr(n),c=lc(s,n.kind);if(n===c&&Pz(s),_c(n.body))return;r(d);return;function _(h){return N_(h)?!0:h.kind===172&&!Os(h)&&!!h.initializer}function d(){const h=n.parent;if(s2(h)){dse(n.parent,h);const T=N3e(h),P=A3e(n.body);if(P){if(T&&Fe(P,p.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!_e&&(dt(n.parent.members,_)||dt(n.parameters,$=>Lr($,16476))))if(!prt(P,n.body))Fe(P,p.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{let $;for(const re of n.body.statements){if(ql(re)&&m6(nl(re.expression))){$=re;break}if(TEe(re))break}$===void 0&&Fe(n,p.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 T||Fe(n,p.Constructors_for_derived_classes_must_contain_a_super_call)}}}function prt(n,s){const c=$0(n.parent);return ql(c)&&c.parent===s}function TEe(n){return n.kind===108||n.kind===110?!0:Xle(n)?!1:!!bs(n,TEe)}function xEe(n){we(n.name)&&lr(n.name)==="constructor"&&ni(n.parent)&&Fe(n.name,p.Class_constructor_may_not_be_an_accessor),r(s),na(n.body),mae(n);function s(){if(!$z(n)&&!zat(n)&&Xz(n.name),YP(n),m7(n),n.kind===177&&!(n.flags&33554432)&&Qf(n.body)&&n.flags&512&&(n.flags&1024||Fe(n.name,p.A_get_accessor_must_return_a_value)),n.name.kind===167&&Bm(n.name),Tk(n)){const _=vr(n),d=lc(_,177),h=lc(_,178);if(d&&h&&!(Jk(d)&1)){jr(d).flags|=1;const T=I_(d),P=I_(h);(T&256)!==(P&256)&&(Fe(d.name,p.Accessors_must_both_be_abstract_or_non_abstract),Fe(h.name,p.Accessors_must_both_be_abstract_or_non_abstract)),(T&16&&!(P&24)||T&8&&!(P&8))&&(Fe(d.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Fe(h.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=OE(vr(n));n.kind===177&&aae(n,c)}}function drt(n){YP(n)}function mrt(n,s,c){return n.typeArguments&&c{const _=gae(n);_&&SEe(n,_)});const c=jr(n).resolvedSymbol;c&&dt(c.declarations,_=>V6(_)&&!!(_.flags&536870912))&&f0(zP(n),c.declarations,c.escapedName)}}function hrt(n){const s=Hr(n.parent,d9);if(!s)return;const c=gae(s);if(!c)return;const _=s_(c[s.typeArguments.indexOf(n)]);return _&&zi(_,uu(c,Az(s,c)))}function yrt(n){k4e(n)}function vrt(n){pn(n.members,na),r(s);function s(){const c=fCe(n);Bz(c,c.symbol),dae(n),vEe(n)}}function brt(n){na(n.elementType)}function Trt(n){const s=n.elements;let c=!1,_=!1;for(const d of s){const h=iie(d);if(h&8){const T=ai(d.type);if(!D0(T)){Fe(d,p.A_rest_element_type_must_be_an_array_type);break}(wf(T)||la(T)&&T.target.combinedFlags&4)&&(_=!0)}else if(h&4){if(_){Qt(d,p.A_rest_element_cannot_follow_another_rest_element);break}_=!0}else if(h&2){if(_){Qt(d,p.An_optional_element_cannot_follow_a_rest_element);break}c=!0}else if(c){Qt(d,p.A_required_element_cannot_follow_an_optional_element);break}}pn(n.elements,na),ai(n)}function xrt(n){pn(n.types,na),ai(n)}function CEe(n,s){if(!(n.flags&8388608))return n;const c=n.objectType,_=n.indexType;if(ca(_,im(c,0)))return s.kind===212&&tg(s)&&Rr(c)&32&&tm(c)&1&&Fe(s,p.Index_signature_in_type_0_only_permits_reading,Cn(c)),n;const d=Z_(c);if(Rm(d,ye)&&kl(_,296))return n;if(bv(c)){const h=TJ(_,s);if(h){const T=yb(d,P=>Ws(P,h));if(T&&Lf(T)&24)return Fe(s,p.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Oi(h)),$e}}return Fe(s,p.Type_0_cannot_be_used_to_index_type_1,Cn(_),Cn(c)),$e}function Srt(n){na(n.objectType),na(n.indexType),CEe(aCe(n),n)}function krt(n){Crt(n),na(n.typeParameter),na(n.nameType),na(n.type),n.type||ry(n,ke);const s=gie(n),c=S0(s);if(c)J_(c,Ms,n.nameType);else{const _=Wf(s);J_(_,Ms,t6(n.typeParameter))}}function Crt(n){var s;if((s=n.members)!=null&&s.length)return Qt(n.members[0],p.A_mapped_type_may_not_declare_properties_or_methods)}function Ert(n){EJ(n)}function wrt(n){Uat(n),na(n.type)}function Drt(n){bs(n,na)}function Art(n){In(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||Qt(n,p.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),na(n.typeParameter);const s=vr(n.typeParameter);if(s.declarations&&s.declarations.length>1){const c=Mi(s);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const _=ob(s),d=dle(s,168);if(!KEe(d,[_],h=>[h])){const h=ii(s);for(const T of d)Fe(T.name,p.All_declarations_of_0_must_have_identical_constraints,h)}}}Wh(n)}function Nrt(n){for(const s of n.templateSpans){na(s.type);const c=ai(s.type);J_(c,ln,s.type)}ai(n)}function Prt(n){na(n.argument),n.assertions&&DS(n.assertions.assertClause,Qt)&&(gD()||Qt(n.assertions.assertClause,p.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Sc(j)!==3&&Sc(j)!==99&&Qt(n.assertions.assertClause,p.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),kEe(n)}function Irt(n){n.dotDotDotToken&&n.questionToken&&Qt(n,p.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&Qt(n.type,p.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&Qt(n.type,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),na(n.type),ai(n)}function QP(n){return(Iu(n,8)||N_(n))&&!!(n.flags&33554432)}function Nz(n,s){let c=Qz(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){const _=jW(n);_&&_.flags&128&&!(c&2)&&!(Jd(n.parent)&&Ac(n.parent.parent)&&Id(n.parent.parent))&&(c|=1),c|=2}return c&s}function Pz(n){r(()=>Ort(n))}function Ort(n){function s(qt,zn){return zn!==void 0&&zn.parent===qt[0].parent?zn:qt[0]}function c(qt,zn,Ht,mn,bn){if((mn^bn)!==0){const fs=Nz(s(qt,zn),Ht);pn(qt,Vi=>{const ei=Nz(Vi,Ht)^fs;ei&1?Fe(os(Vi),p.Overload_signatures_must_all_be_exported_or_non_exported):ei&2?Fe(os(Vi),p.Overload_signatures_must_all_be_ambient_or_non_ambient):ei&24?Fe(os(Vi)||Vi,p.Overload_signatures_must_all_be_public_private_or_protected):ei&256&&Fe(os(Vi),p.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function _(qt,zn,Ht,mn){if(Ht!==mn){const bn=Jx(s(qt,zn));pn(qt,Yn=>{Jx(Yn)!==bn&&Fe(os(Yn),p.Overload_signatures_must_all_be_optional_or_required)})}}const d=283;let h=0,T=d,P=!1,O=!0,$=!1,re,ce,Se;const Te=n.declarations,Ze=(n.flags&16384)!==0;function St(qt){if(qt.name&&_c(qt.name))return;let zn=!1;const Ht=bs(qt.parent,bn=>{if(zn)return bn;zn=bn===qt});if(Ht&&Ht.pos===qt.end&&Ht.kind===qt.kind){const bn=Ht.name||Ht,Yn=Ht.name;if(qt.name&&Yn&&(Ei(qt.name)&&Ei(Yn)&&qt.name.escapedText===Yn.escapedText||Ga(qt.name)&&Ga(Yn)&&Pg(Bm(qt.name),Bm(Yn))||Fd(qt.name)&&Fd(Yn)&&d3(qt.name)===d3(Yn))){if((qt.kind===174||qt.kind===173)&&Os(qt)!==Os(Ht)){const Vi=Os(qt)?p.Function_overload_must_be_static:p.Function_overload_must_not_be_static;Fe(bn,Vi)}return}if(Qf(Ht.body)){Fe(bn,p.Function_implementation_name_must_be_0,no(qt.name));return}}const mn=qt.name||qt;Ze?Fe(mn,p.Constructor_implementation_is_missing):Lr(qt,256)?Fe(mn,p.All_declarations_of_an_abstract_method_must_be_consecutive):Fe(mn,p.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Zt=!1,_n=!1,Gn=!1;const An=[];if(Te)for(const qt of Te){const zn=qt,Ht=zn.flags&33554432,mn=zn.parent&&(zn.parent.kind===264||zn.parent.kind===187)||Ht;if(mn&&(Se=void 0),(zn.kind===263||zn.kind===231)&&!Ht&&(Gn=!0),zn.kind===262||zn.kind===174||zn.kind===173||zn.kind===176){An.push(zn);const bn=Nz(zn,d);h|=bn,T&=bn,P=P||Jx(zn),O=O&&Jx(zn);const Yn=Qf(zn.body);Yn&&re?Ze?_n=!0:Zt=!0:(Se==null?void 0:Se.parent)===zn.parent&&Se.end!==zn.pos&&St(Se),Yn?re||(re=zn):$=!0,Se=zn,mn||(ce=zn)}if(Kn(qt)&&Cs(qt)&&qt.jsDoc){for(const bn of qt.jsDoc)if(bn.tags)for(const Yn of bn.tags)u8(Yn)&&($=!0)}}if(_n&&pn(An,qt=>{Fe(qt,p.Multiple_constructor_implementations_are_not_allowed)}),Zt&&pn(An,qt=>{Fe(os(qt)||qt,p.Duplicate_function_implementation)}),Gn&&!Ze&&n.flags&16&&Te){const qt=zr(Te,zn=>zn.kind===263).map(zn=>br(zn,p.Consider_adding_a_declare_modifier_to_this_class));pn(Te,zn=>{const Ht=zn.kind===263?p.Class_declaration_cannot_implement_overload_list_for_0:zn.kind===262?p.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ht&&ua(Fe(os(zn)||zn,Ht,bc(n)),...qt)})}if(ce&&!ce.body&&!Lr(ce,256)&&!ce.questionToken&&St(ce),$&&(Te&&(c(Te,re,d,h,T),_(Te,re,P,O)),re)){const qt=yv(n),zn=vd(re);for(const Ht of qt)if(!nZe(zn,Ht)){const mn=Ht.declaration&&Fy(Ht.declaration)?Ht.declaration.parent.tagName:Ht.declaration;ua(Fe(mn,p.This_overload_signature_is_not_compatible_with_its_implementation_signature),br(re,p.The_implementation_signature_is_declared_here));break}}}function g7(n){r(()=>Frt(n))}function Frt(n){let s=n.localSymbol;if(!s&&(s=vr(n),!s.exportSymbol)||lc(s,n.kind)!==n)return;let c=0,_=0,d=0;for(const $ of s.declarations){const re=O($),ce=Nz($,1025);ce&1?ce&1024?d|=re:c|=re:_|=re}const h=c|_,T=c&_,P=d&h;if(T||P)for(const $ of s.declarations){const re=O($),ce=os($);re&P?Fe(ce,p.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,no(ce)):re&T&&Fe(ce,p.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,no(ce))}function O($){let re=$;switch(re.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return __(re)||r0(re)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const ce=re,Se=fc(ce)?ce.expression:ce.right;if(!Tc(Se))return 1;re=Se;case 271:case 274:case 273:let Te=0;const Ze=hl(vr(re));return pn(Ze.declarations,St=>{Te|=O(St)}),Te;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return E.failBadSyntaxKind(re)}}}function h7(n,s,c,..._){const d=y7(n,s);return d&&kb(d,s,c,..._)}function y7(n,s,c){if(qa(n))return;const _=n;if(_.promisedTypeOfPromise)return _.promisedTypeOfPromise;if($1(n,cP(!1)))return _.promisedTypeOfPromise=uo(n)[0];if(GP(Ag(n),402915324))return;const d=Wc(n,"then");if(qa(d))return;const h=d?As(d,0):Ve;if(h.length===0){s&&Fe(s,p.A_promise_must_have_a_then_method);return}let T,P;for(const re of h){const ce=Y1(re);ce&&ce!==ar&&!bd(n,ce,$d)?T=ce:P=dn(P,re)}if(!P){E.assertIsDefined(T),c&&(c.value=T),s&&Fe(s,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Cn(n),Cn(T));return}const O=Gf(Jr(an(P,nae)),2097152);if(qa(O))return;const $=As(O,0);if($.length===0){s&&Fe(s,p.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return _.promisedTypeOfPromise=Jr(an($,nae),2)}function v7(n,s,c,_,...d){return(s?kb(n,c,_,...d):P0(n,c,_,...d))||$e}function EEe(n){if(GP(Ag(n),402915324))return!1;const s=Wc(n,"then");return!!s&&As(Gf(s,2097152),0).length>0}function Iz(n){var s;if(n.flags&16777216){const c=rie(!1);return!!c&&n.aliasSymbol===c&&((s=n.aliasTypeArguments)==null?void 0:s.length)===1}return!1}function vC(n){return n.flags&1048576?xo(n,vC):Iz(n)?n.aliasTypeArguments[0]:n}function wEe(n){if(qa(n)||Iz(n))return!1;if(bv(n)){const s=B_(n);if(s?s.flags&3||Ig(s)||Mg(s,EEe):Yo(n,8650752))return!0}return!1}function Lrt(n){const s=rie(!0);if(s)return wk(s,[vC(n)])}function Mrt(n){if(wEe(n)){const s=Lrt(n);if(s)return s}return E.assert(Iz(n)||y7(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function kb(n,s,c,..._){const d=P0(n,s,c,..._);return d&&Mrt(d)}function P0(n,s,c,..._){if(qa(n)||Iz(n))return n;const d=n;if(d.awaitedTypeOfType)return d.awaitedTypeOfType;if(n.flags&1048576){if(_0.lastIndexOf(n.id)>=0){s&&Fe(s,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const P=s?$=>P0($,s,c,..._):P0;_0.push(n.id);const O=xo(n,P);return _0.pop(),d.awaitedTypeOfType=O}if(wEe(n))return d.awaitedTypeOfType=n;const h={value:void 0},T=y7(n,void 0,h);if(T){if(n.id===T.id||_0.lastIndexOf(T.id)>=0){s&&Fe(s,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}_0.push(n.id);const P=P0(T,s,c,..._);return _0.pop(),P?d.awaitedTypeOfType=P:void 0}if(EEe(n)){if(s){E.assertIsDefined(c);let P;h.value&&(P=us(P,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Cn(n),Cn(h.value))),P=us(P,c,..._),xa.add(Hg(Rn(s),s,P))}return}return d.awaitedTypeOfType=n}function Rrt(n,s,c){const _=ai(s);if(ee>=2){if(q(_))return;const h=cP(!0);if(h!==Rs&&!$1(_,h)){d(p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,s,c,Cn(P0(_)||ar));return}}else{if(jrt(s),q(_))return;const h=Vw(s);if(h===void 0){d(p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,s,c,Cn(_));return}const T=Qo(h,111551,!0),P=T?$n(T):$e;if(q(P)){h.kind===80&&h.escapedText==="Promise"&&ab(_)===cP(!1)?Fe(c,p.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):d(p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,s,c,Nu(h));return}const O=fQe(!0);if(O===Li){d(p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,s,c,Nu(h));return}const $=p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!J_(P,O,c,$,()=>s===c?void 0:us(void 0,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const ce=h&&Ku(h),Se=G_(n.locals,ce.escapedText,111551);if(Se){Fe(Se.valueDeclaration,p.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,lr(ce),Nu(h));return}}v7(_,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function d(h,T,P,O){if(T===P)Fe(P,h,O);else{const $=Fe(P,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ua($,br(T,h,O))}}}function Brt(n){const s=mC(n);Cz(s,n);const c=Ua(s);if(c.flags&1)return;const _=sae(n);if(!(_!=null&&_.resolvedReturnType))return;let d;const h=_.resolvedReturnType;switch(n.parent.kind){case 263:case 231:d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!Z){d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:d=p.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return E.failBadSyntaxKind(n.parent)}J_(c,h,n.expression,d)}function b7(n,s,c,_,d,h=c.length,T=0){const P=I.createFunctionTypeNode(void 0,Ve,I.createKeywordTypeNode(133));return Mm(P,n,s,c,_,d,h,T)}function yae(n,s,c,_,d,h,T){const P=b7(n,s,c,_,d,h,T);return ub(P)}function DEe(n){return yae(void 0,void 0,Ve,n)}function AEe(n){const s=pp("value",n);return yae(void 0,void 0,[s],ar)}function jrt(n){NEe(n&&Vw(n),!1)}function NEe(n,s){if(!n)return;const c=Ku(n),_=(n.kind===80?788968:1920)|2097152,d=Lc(c,c.escapedText,_,void 0,void 0,!0);if(d&&d.flags&2097152){if(ot&&_v(d)&&!k7(hl(d))&&!gp(d))Tg(d);else if(s&&nd(j)&&Ul(j)>=5&&!_v(d)&&!dt(d.declarations,Xv)){const h=Fe(n,p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),T=Or(d.declarations||Ve,tv);T&&ua(h,br(T,p._0_was_imported_here,lr(c)))}}}function Rk(n){const s=vae(n);s&&Xu(s)&&NEe(s,!0)}function vae(n){if(n)switch(n.kind){case 193:case 192:return PEe(n.types);case 194:return PEe([n.trueType,n.falseType]);case 196:case 202:return vae(n.type);case 183:return n.typeName}}function PEe(n){let s;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!H&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;const _=vae(c);if(!_)return;if(s){if(!we(s)||!we(_)||s.escapedText!==_.escapedText)return}else s=_}return s}function Oz(n){const s=Vl(n);return Zm(n)?qW(s):s}function YP(n){if(!oT(n)||!Ff(n)||!n.modifiers||!M9(Z,n,n.parent,n.parent.parent))return;const s=Or(n.modifiers,Wl);if(!!s){if(Z?(Kc(s,8),n.kind===169&&Kc(s,32)):ee<99&&(Kc(s,8),Qc(n)?n.name?e7e(n)&&Kc(s,8388608):Kc(s,8388608):Fl(n)||(Ei(n.name)&&(kc(n)||t1(n)||nu(n))&&Kc(s,8388608),Ga(n.name)&&Kc(s,16777216))),j.emitDecoratorMetadata)switch(Kc(s,16),n.kind){case 263:const c=ng(n);if(c)for(const T of c.parameters)Rk(Oz(T));break;case 177:case 178:const _=n.kind===177?178:177,d=lc(vr(n),_);Rk(hp(n)||d&&hp(d));break;case 174:for(const T of n.parameters)Rk(Oz(T));Rk(ep(n));break;case 172:Rk(Vl(n));break;case 169:Rk(Oz(n));const h=n.parent;for(const T of h.parameters)Rk(Oz(T));Rk(ep(h));break}for(const c of n.modifiers)Wl(c)&&Brt(c)}}function Jrt(n){r(s);function s(){OEe(n),Vae(n),bC(n,n.name)}}function zrt(n){n.typeExpression||Fe(n.name,p.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&xC(n.name,p.Type_alias_name_cannot_be_0),na(n.typeExpression),rI(Kh(n))}function Vrt(n){na(n.constraint);for(const s of n.typeParameters)na(s)}function Urt(n){na(n.typeExpression)}function Wrt(n){na(n.typeExpression);const s=zx(n);if(s){const c=KU(s,EF);if(Nn(c)>1)for(let _=1;_0),c.length>1&&Fe(c[1],p.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const _=IEe(n.class.expression),d=s2(s);if(d){const h=IEe(d.expression);h&&_.escapedText!==h.escapedText&&Fe(_,p.JSDoc_0_1_does_not_match_the_extends_2_clause,lr(n.tagName),lr(_),lr(h))}}function Yrt(n){const s=Vx(n);s&&N_(s)&&Fe(n,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function IEe(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function OEe(n){var s;YP(n),m7(n);const c=Il(n);if(n.name&&n.name.kind===167&&Bm(n.name),Tk(n)){const h=vr(n),T=n.localSymbol||h,P=(s=T.declarations)==null?void 0:s.find(O=>O.kind===n.kind&&!(O.flags&524288));n===P&&Pz(T),h.parent&&Pz(h)}const _=n.kind===173?void 0:n.body;if(na(_),aae(n,Ck(n)),r(d),Kn(n)){const h=dy(n);h&&h.typeExpression&&!xse(ai(h.typeExpression),n)&&Fe(h.typeExpression.type,p.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function d(){ep(n)||(_c(_)&&!QP(n)&&ry(n,ke),c&1&&Qf(_)&&Ua(vd(n)))}}function Wh(n){r(s);function s(){const c=Rn(n);let _=un.get(c.path);_||(_=[],un.set(c.path,_)),_.push(n)}}function FEe(n,s){for(const c of n)switch(c.kind){case 263:case 231:Zrt(c,s),bae(c,s);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:REe(c,s);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&REe(c,s),bae(c,s);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:bae(c,s);break;case 195:Krt(c,s);break;default:E.assertNever(c,"Node should not have been registered for unused identifiers check")}}function LEe(n,s,c){const _=os(n)||n,d=V6(n)?p._0_is_declared_but_never_used:p._0_is_declared_but_its_value_is_never_read;c(n,0,br(_,d,s))}function T7(n){return we(n)&&lr(n).charCodeAt(0)===95}function Zrt(n,s){for(const c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;const _=vr(c);!_.isReferenced&&(Iu(c,8)||A_(c)&&Ei(c.name))&&!(c.flags&33554432)&&s(c,0,br(c.name,p._0_is_declared_but_its_value_is_never_read,ii(_)));break;case 176:for(const d of c.parameters)!d.symbol.isReferenced&&Lr(d,8)&&s(d,0,br(d.name,p.Property_0_is_declared_but_its_value_is_never_read,bc(d.symbol)));break;case 181:case 240:case 175:break;default:E.fail("Unexpected class member")}}function Krt(n,s){const{typeParameter:c}=n;Tae(c)&&s(n,1,br(n,p._0_is_declared_but_its_value_is_never_read,lr(c.name)))}function bae(n,s){const c=vr(n).declarations;if(!c||ka(c)!==n)return;const _=Kh(n),d=new Set;for(const h of _){if(!Tae(h))continue;const T=lr(h.name),{parent:P}=h;if(P.kind!==195&&P.typeParameters.every(Tae)){if(Rv(d,P)){const O=Rn(P),$=od(P)?tH(P):nH(O,P.typeParameters),ce=P.typeParameters.length===1?[p._0_is_declared_but_its_value_is_never_read,T]:[p.All_type_parameters_are_unused];s(h,1,vl(O,$.pos,$.end-$.pos,...ce))}}else s(h,1,br(h,p._0_is_declared_but_its_value_is_never_read,T))}}function Tae(n){return!(Ma(n.symbol).isReferenced&262144)&&!T7(n.name)}function ZP(n,s,c,_){const d=String(_(s)),h=n.get(d);h?h[1].push(c):n.set(d,[s,[c]])}function MEe(n){return Hr(hm(n),rs)}function eit(n){return Oa(n)?rd(n.parent)?!!(n.propertyName&&T7(n.name)):T7(n.name):__(n)||(Ri(n)&&a6(n.parent.parent)||BEe(n))&&T7(n.name)}function REe(n,s){const c=new Map,_=new Map,d=new Map;n.locals.forEach(h=>{if(!(h.flags&262144?!(h.flags&3&&!(h.isReferenced&3)):h.isReferenced||h.exportSymbol)&&h.declarations){for(const T of h.declarations)if(!eit(T))if(BEe(T))ZP(c,nit(T),T,Ra);else if(Oa(T)&&rd(T.parent)){const P=ka(T.parent.elements);(T===P||!ka(T.parent.elements).dotDotDotToken)&&ZP(_,T.parent,T,Ra)}else if(Ri(T)){const P=Lv(T)&7,O=os(T);(P!==4&&P!==6||!O||!T7(O))&&ZP(d,T.parent,T,Ra)}else{const P=h.valueDeclaration&&MEe(h.valueDeclaration),O=h.valueDeclaration&&os(h.valueDeclaration);P&&O?!Du(P,P.parent)&&!o2(P)&&!T7(O)&&(Oa(T)&&pS(T.parent)?ZP(_,T.parent,T,Ra):s(P,1,br(O,p._0_is_declared_but_its_value_is_never_read,bc(h)))):LEe(T,bc(h),s)}}}),c.forEach(([h,T])=>{const P=h.parent;if((h.name?1:0)+(h.namedBindings?h.namedBindings.kind===274?1:h.namedBindings.elements.length:0)===T.length)s(P,0,T.length===1?br(P,p._0_is_declared_but_its_value_is_never_read,lr(wa(T).name)):br(P,p.All_imports_in_import_declaration_are_unused));else for(const $ of T)LEe($,lr($.name),s)}),_.forEach(([h,T])=>{const P=MEe(h.parent)?1:0;if(h.elements.length===T.length)T.length===1&&h.parent.kind===260&&h.parent.parent.kind===261?ZP(d,h.parent.parent,h.parent,Ra):s(h,P,T.length===1?br(h,p._0_is_declared_but_its_value_is_never_read,KP(wa(T).name)):br(h,p.All_destructured_elements_are_unused));else for(const O of T)s(O,P,br(O,p._0_is_declared_but_its_value_is_never_read,KP(O.name)))}),d.forEach(([h,T])=>{if(h.declarations.length===T.length)s(h,0,T.length===1?br(wa(T).name,p._0_is_declared_but_its_value_is_never_read,KP(wa(T).name)):br(h.parent.kind===243?h.parent:h,p.All_variables_are_unused));else for(const P of T)s(P,0,br(P,p._0_is_declared_but_its_value_is_never_read,KP(P.name)))})}function tit(){var n;for(const s of M2)if(!((n=vr(s))!=null&&n.isReferenced)){const c=Kk(s);E.assert(Ub(c),"Only parameter declaration should be checked here");const _=br(s.name,p._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,no(s.name),no(s.propertyName));c.type||ua(_,vl(Rn(c),c.end,1,p.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,no(s.propertyName))),xa.add(_)}}function KP(n){switch(n.kind){case 80:return lr(n);case 207:case 206:return KP(Bs(wa(n.elements),Oa).name);default:return E.assertNever(n)}}function BEe(n){return n.kind===273||n.kind===276||n.kind===274}function nit(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Fz(n){if(n.kind===241&&Rg(n),cW(n)){const s=Gi;pn(n.statements,na),Gi=s}else pn(n.statements,na);n.locals&&Wh(n)}function rit(n){ee>=2||!hW(n)||n.flags&33554432||_c(n.body)||pn(n.parameters,s=>{s.name&&!Ps(s.name)&&s.name.escapedText===tt.escapedName&&bh("noEmit",s,p.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function x7(n,s,c){if((s==null?void 0:s.escapedText)!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(Sm(n)||Hl(n)||vu(n))&&Xv(n))return!1;const _=hm(n);return!(rs(_)&&_c(_.parent.body))}function iit(n){In(n,s=>Jk(s)&4?(n.kind!==80?Fe(os(n),p.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Fe(n,p.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function sit(n){In(n,s=>Jk(s)&8?(n.kind!==80?Fe(os(n),p.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Fe(n,p.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function ait(n,s){if(R>=5&&!(R>=100&&Rn(n).impliedNodeFormat===1)||!s||!x7(n,s,"require")&&!x7(n,s,"exports")||Ac(n)&&r0(n)!==1)return;const c=nx(n);c.kind===312&&Yu(c)&&bh("noEmit",s,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,no(s),no(s))}function oit(n,s){if(!s||ee>=4||!x7(n,s,"Promise")||Ac(n)&&r0(n)!==1)return;const c=nx(n);c.kind===312&&Yu(c)&&c.flags&4096&&bh("noEmit",s,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,no(s),no(s))}function cit(n,s){ee<=8&&(x7(n,s,"WeakMap")||x7(n,s,"WeakSet"))&&yh.push(n)}function lit(n){const s=mm(n);Jk(s)&1048576&&(E.assert(A_(n)&&we(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),bh("noEmit",n,p.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function _it(n,s){s&&ee>=2&&ee<=8&&x7(n,s,"Reflect")&&Gy.push(n)}function uit(n){let s=!1;if(Fl(n)){for(const c of n.members)if(Jk(c)&2097152){s=!0;break}}else if(_o(n))Jk(n)&2097152&&(s=!0);else{const c=mm(n);c&&Jk(c)&2097152&&(s=!0)}s&&(E.assert(A_(n)&&we(n.name),"The target of a Reflect collision check should be an identifier"),bh("noEmit",n,p.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,no(n.name),"Reflect"))}function bC(n,s){!s||(ait(n,s),oit(n,s),cit(n,s),_it(n,s),ni(n)?(xC(s,p.Class_name_cannot_be_0),n.flags&33554432||Jit(s)):Py(n)&&xC(s,p.Enum_name_cannot_be_0))}function fit(n){if((Lv(n)&7)!==0||Ub(n))return;const s=vr(n);if(s.flags&1){if(!we(n.name))return E.fail();const c=Lc(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==s&&c.flags&2&&Nse(c)&7){const _=Ty(c.valueDeclaration,261),d=_.parent.kind===243&&_.parent.parent?_.parent.parent:void 0;if(!(d&&(d.kind===241&&Cs(d.parent)||d.kind===268||d.kind===267||d.kind===312))){const T=ii(c);Fe(n,p.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}function S7(n){return n===ft?ke:n===gt?qe:n}function eI(n){var s;if(YP(n),Oa(n)||na(n.type),!n.name)return;if(n.name.kind===167&&(Bm(n.name),Lb(n)&&n.initializer&&Bc(n.initializer)),Oa(n)){if(n.propertyName&&we(n.name)&&Ub(n)&&_c(df(n).body)){M2.push(n);return}rd(n.parent)&&n.dotDotDotToken&&ee<5&&Kc(n,4),n.propertyName&&n.propertyName.kind===167&&Bm(n.propertyName);const d=n.parent.parent,h=n.dotDotDotToken?64:0,T=de(d,h),P=n.propertyName||n.name;if(T&&!Ps(P)){const O=E0(P);if(ip(O)){const $=sp(O),re=Ws(T,$);re&&(RP(re,void 0,!1),Ise(n,!!d.initializer&&d.initializer.kind===108,!1,T,re))}}}if(Ps(n.name)&&(n.name.kind===207&&ee<2&&j.downlevelIteration&&Kc(n,512),pn(n.name.elements,na)),rs(n)&&n.initializer&&_c(df(n).body)){Fe(n,p.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Ps(n.name)){if(ase(n))return;const d=Lb(n)&&n.initializer&&n.parent.parent.kind!==249,h=!dt(n.name.elements,yI(dl));if(d||h){const T=ie(n);if(d){const P=Bc(n.initializer);H&&h?o8e(P,n):zh(P,ie(n),n,n.initializer)}h&&(pS(n.name)?I0(65,T,Nt,n):H&&o8e(T,n))}return}const c=vr(n);if(c.flags&2097152&&(r2(n)||Kle(n))){jz(n);return}const _=S7($n(c));if(n===c.valueDeclaration){const d=Lb(n)&&Hw(n);if(d&&!(Kn(n)&&ha(d)&&(d.properties.length===0||Sy(n.name))&&!!((s=c.exports)!=null&&s.size))&&n.parent.parent.kind!==249){const T=Bc(d);zh(T,_,n,d,void 0);const P=Lv(n)&7;if(P===6){const O=TQe(!0),$=O4e(!0);if(O!==Li&&$!==Li){const re=Jr([O,$,W,Nt]);J_(T,re,d,p.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(P===4){const O=O4e(!0);if(O!==Li){const $=Jr([O,W,Nt]);J_(T,$,d,p.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&&dt(c.declarations,h=>h!==n&&h6(h)&&!JEe(h,n))&&Fe(n.name,p.All_declarations_of_0_must_have_identical_modifiers,no(n.name))}else{const d=S7(ie(n));!q(_)&&!q(d)&&!Pg(_,d)&&!(c.flags&67108864)&&jEe(c.valueDeclaration,_,n,d),Lb(n)&&n.initializer&&zh(Bc(n.initializer),d,n,n.initializer,void 0),c.valueDeclaration&&!JEe(n,c.valueDeclaration)&&Fe(n.name,p.All_declarations_of_0_must_have_identical_modifiers,no(n.name))}n.kind!==172&&n.kind!==171&&(g7(n),(n.kind===260||n.kind===208)&&fit(n),bC(n,n.name))}function jEe(n,s,c,_){const d=os(c),h=c.kind===172||c.kind===171?p.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:p.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,T=no(d),P=Fe(d,h,T,Cn(s),Cn(_));n&&ua(P,br(n,p._0_was_also_declared_here,T))}function JEe(n,s){if(n.kind===169&&s.kind===260||n.kind===260&&s.kind===169)return!0;if(Jx(n)!==Jx(s))return!1;const c=888;return Gx(n,c)===Gx(s,c)}function pit(n){var s,c;(s=li)==null||s.push(li.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),$at(n),eI(n),(c=li)==null||c.pop()}function dit(n){return qat(n),eI(n)}function Lz(n){const s=W0(n)&7;(s===4||s===6)&&Kc(n,33554432),pn(n.declarations,na)}function mit(n){!zm(n)&&!qae(n.declarationList)&&Xat(n),Lz(n.declarationList)}function git(n){Rg(n),Qi(n.expression)}function hit(n){Rg(n);const s=TC(n.expression);xae(n.expression,s,n.thenStatement),na(n.thenStatement),n.thenStatement.kind===242&&Fe(n.thenStatement,p.The_body_of_an_if_statement_cannot_be_the_empty_statement),na(n.elseStatement)}function xae(n,s,c){if(!H)return;_(n,c);function _(h,T){for(h=lo(h),d(h,T);rr(h)&&(h.operatorToken.kind===57||h.operatorToken.kind===61);)h=lo(h.left),d(h,T)}function d(h,T){const P=TD(h)?lo(h.right):h;if(eg(P))return;if(TD(P)){_(P,T);return}const O=P===h?s:TC(P),$=kr(P)&&_Ee(P.expression);if(!(k_(O)&4194304)||$)return;const re=As(O,0),ce=!!h7(O);if(re.length===0&&!ce)return;const Se=we(P)?P:kr(P)?P.name:void 0,Te=Se&&vp(Se);if(!Te&&!ce)return;Te&&rr(h.parent)&&vit(h.parent,Te)||Te&&T&&yit(h,T,Se,Te)||(ce?Th(P,!0,p.This_condition_will_always_return_true_since_this_0_is_always_defined,Y_(O)):Fe(P,p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function yit(n,s,c,_){return!!bs(s,function d(h){if(we(h)){const T=vp(h);if(T&&T===_){if(we(n)||we(c)&&rr(c.parent))return!0;let P=c.parent,O=h.parent;for(;P&&O;){if(we(P)&&we(O)||P.kind===110&&O.kind===110)return vp(P)===vp(O);if(kr(P)&&kr(O)){if(vp(P.name)!==vp(O.name))return!1;O=O.expression,P=P.expression}else if(Js(P)&&Js(O))O=O.expression,P=P.expression;else return!1}}}return bs(h,d)})}function vit(n,s){for(;rr(n)&&n.operatorToken.kind===56;){if(bs(n.right,function _(d){if(we(d)){const h=vp(d);if(h&&h===s)return!0}return bs(d,_)}))return!0;n=n.parent}return!1}function bit(n){Rg(n),na(n.statement),TC(n.expression)}function Tit(n){Rg(n),TC(n.expression),na(n.statement)}function Sae(n,s){return n.flags&16384&&Fe(s,p.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function TC(n,s){return Sae(Qi(n,s),n)}function xit(n){Rg(n)||n.initializer&&n.initializer.kind===261&&qae(n.initializer),n.initializer&&(n.initializer.kind===261?Lz(n.initializer):Qi(n.initializer)),n.condition&&TC(n.condition),n.incrementor&&Qi(n.incrementor),na(n.statement),n.locals&&Wh(n)}function Sit(n){M7e(n);const s=P9(n);if(n.awaitModifier?s&&ec(s)?Qt(n.awaitModifier,p.for_await_loops_cannot_be_used_inside_a_class_static_block):(Il(s)&6)===2&&ee<99&&Kc(n,16384):j.downlevelIteration&&ee<2&&Kc(n,256),n.initializer.kind===261)Lz(n.initializer);else{const c=n.initializer,_=tI(n);if(c.kind===209||c.kind===210)Sb(c,_||$e);else{const d=Qi(c);p7(c,p.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),_&&zh(_,d,c,n.expression)}}na(n.statement),n.locals&&Wh(n)}function kit(n){M7e(n);const s=Ose(Qi(n.expression));if(n.initializer.kind===261){const c=n.initializer.declarations[0];c&&Ps(c.name)&&Fe(c.name,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Lz(n.initializer)}else{const c=n.initializer,_=Qi(c);c.kind===209||c.kind===210?Fe(c,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ca(oYe(s),_)?p7(c,p.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Fe(c,p.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(s===jn||!kl(s,126091264))&&Fe(n.expression,p.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,Cn(s)),na(n.statement),n.locals&&Wh(n)}function tI(n){const s=n.awaitModifier?15:13;return I0(s,pC(n.expression),Nt,n.expression)}function I0(n,s,c,_){return qa(s)?s:kae(n,s,c,_,!0)||ke}function kae(n,s,c,_,d){const h=(n&2)!==0;if(s===jn){Aae(_,s,h);return}const T=ee>=2,P=!T&&j.downlevelIteration,O=j.noUncheckedIndexedAccess&&!!(n&128);if(T||P||h){const Ze=Rz(s,n,T?_:void 0);if(d&&Ze){const St=n&8?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?p.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;St&&J_(c,Ze.nextType,_,St)}if(Ze||T)return O?i7(Ze&&Ze.yieldType):Ze&&Ze.yieldType}let $=s,re=!1,ce=!1;if(n&4){if($.flags&1048576){const Ze=s.types,St=zr(Ze,Zt=>!(Zt.flags&402653316));St!==Ze&&($=Jr(St,2))}else $.flags&402653316&&($=jn);if(ce=$!==s,ce&&(ee<1&&_&&(Fe(_,p.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),re=!0),$.flags&131072))return O?i7(F):F}if(!D0($)){if(_&&!re){const Ze=!!(n&4)&&!ce,[St,Zt]=Te(Ze,P);Th(_,Zt&&!!h7($),St,Cn($))}return ce?O?i7(F):F:void 0}const Se=Q1($,ye);if(ce&&Se)return Se.flags&402653316&&!j.noUncheckedIndexedAccess?F:Jr(O?[Se,F,Nt]:[Se,F],2);return n&128?i7(Se):Se;function Te(Ze,St){var Zt;return St?Ze?[p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Cae(n,0,s,void 0)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Cit((Zt=s.symbol)==null?void 0:Zt.escapedName)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:Ze?[p.Type_0_is_not_an_array_type_or_a_string_type,!0]:[p.Type_0_is_not_an_array_type,!0]}}function Cit(n){switch(n){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 Cae(n,s,c,_){if(qa(c))return;const d=Rz(c,n,_);return d&&d[Dme(s)]}function O0(n=jn,s=jn,c=jt){if(n.flags&67359327&&s.flags&180227&&c.flags&180227){const _=Hf([n,s,c]);let d=Pr.get(_);return d||(d={yieldType:n,returnType:s,nextType:c},Pr.set(_,d)),d}return{yieldType:n,returnType:s,nextType:c}}function zEe(n){let s,c,_;for(const d of n)if(!(d===void 0||d===En)){if(d===gr)return gr;s=dn(s,d.yieldType),c=dn(c,d.returnType),_=dn(_,d.nextType)}return s||c||_?O0(s&&Jr(s),c&&Jr(c),_&&oa(_)):En}function Mz(n,s){return n[s]}function Jm(n,s,c){return n[s]=c}function Rz(n,s,c){var _,d;if(qa(n))return gr;if(!(n.flags&1048576)){const $=c?{errors:void 0}:void 0,re=VEe(n,s,c,$);if(re===En){if(c){const ce=Aae(c,n,!!(s&2));$!=null&&$.errors&&ua(ce,...$.errors)}return}else if((_=$==null?void 0:$.errors)!=null&&_.length)for(const ce of $.errors)xa.add(ce);return re}const h=s&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=Mz(n,h);if(T)return T===En?void 0:T;let P;for(const $ of n.types){const re=c?{errors:void 0}:void 0,ce=VEe($,s,c,re);if(ce===En){if(c){const Se=Aae(c,n,!!(s&2));re!=null&&re.errors&&ua(Se,...re.errors)}Jm(n,h,En);return}else if((d=re==null?void 0:re.errors)!=null&&d.length)for(const Se of re.errors)xa.add(Se);P=dn(P,ce)}const O=P?zEe(P):En;return Jm(n,h,O),O===En?void 0:O}function Eae(n,s){if(n===En)return En;if(n===gr)return gr;const{yieldType:c,returnType:_,nextType:d}=n;return s&&rie(!0),O0(kb(c,s)||ke,kb(_,s)||ke,d)}function VEe(n,s,c,_){if(qa(n))return gr;let d=!1;if(s&2){const h=wae(n,La)||WEe(n,La);if(h)if(h===En&&c)d=!0;else return s&8?Eae(h,c):h}if(s&1){let h=wae(n,io)||WEe(n,io);if(h)if(h===En&&c)d=!0;else if(s&2){if(h!==En)return h=Eae(h,c),d?h:Jm(n,"iterationTypesOfAsyncIterable",h)}else return h}if(s&2){const h=Dae(n,La,c,_,d);if(h!==En)return h}if(s&1){let h=Dae(n,io,c,_,d);if(h!==En)return s&2?(h=Eae(h,c),d?h:Jm(n,"iterationTypesOfAsyncIterable",h)):h}return En}function wae(n,s){return Mz(n,s.iterableCacheKey)}function UEe(n,s){const c=wae(n,s)||Dae(n,s,void 0,void 0,!1);return c===En?Vr:c}function WEe(n,s){let c;if($1(n,c=s.getGlobalIterableType(!1))||$1(n,c=s.getGlobalIterableIteratorType(!1))){const[_]=uo(n),{returnType:d,nextType:h}=UEe(c,s);return Jm(n,s.iterableCacheKey,O0(s.resolveIterationType(_,void 0)||_,s.resolveIterationType(d,void 0)||d,h))}if($1(n,s.getGlobalGeneratorType(!1))){const[_,d,h]=uo(n);return Jm(n,s.iterableCacheKey,O0(s.resolveIterationType(_,void 0)||_,s.resolveIterationType(d,void 0)||d,h))}}function Eit(n){const s=N4e(!1),c=s&&Wc($n(s),Ho(n));return c&&ip(c)?sp(c):`__@${n}`}function Dae(n,s,c,_,d){var re;const h=Ws(n,Eit(s.iteratorSymbolName)),T=h&&!(h.flags&16777216)?$n(h):void 0;if(qa(T))return d?gr:Jm(n,s.iterableCacheKey,gr);const P=T?As(T,0):void 0;if(!dt(P))return d?En:Jm(n,s.iterableCacheKey,En);const O=oa(an(P,Ua)),$=(re=qEe(O,s,c,_,d))!=null?re:En;return d?$:Jm(n,s.iterableCacheKey,$)}function Aae(n,s,c){const _=c?p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,d=!!h7(s)||!c&&oA(n.parent)&&n.parent.expression===n&&bJ(!1)!==Rs&&ca(s,bJ(!1));return Th(n,d,_,Cn(s))}function wit(n,s,c,_){return qEe(n,s,c,_,!1)}function qEe(n,s,c,_,d){if(qa(n))return gr;let h=HEe(n,s)||Dit(n,s);return h===En&&c&&(h=void 0,d=!0),h!=null||(h=$Ee(n,s,c,_,d)),h===En?void 0:h}function HEe(n,s){return Mz(n,s.iteratorCacheKey)}function Dit(n,s){const c=s.getGlobalIterableIteratorType(!1);if($1(n,c)){const[_]=uo(n),d=HEe(c,s)||$Ee(c,s,void 0,void 0,!1),{returnType:h,nextType:T}=d===En?Vr:d;return Jm(n,s.iteratorCacheKey,O0(_,h,T))}if($1(n,s.getGlobalIteratorType(!1))||$1(n,s.getGlobalGeneratorType(!1))){const[_,d,h]=uo(n);return Jm(n,s.iteratorCacheKey,O0(_,d,h))}}function GEe(n,s){const c=Wc(n,"done")||We;return ca(s===0?We:It,c)}function Ait(n){return GEe(n,0)}function Nit(n){return GEe(n,1)}function Pit(n){if(qa(n))return gr;const s=Mz(n,"iterationTypesOfIteratorResult");if(s)return s;if($1(n,vQe(!1))){const T=uo(n)[0];return Jm(n,"iterationTypesOfIteratorResult",O0(T,void 0,void 0))}if($1(n,bQe(!1))){const T=uo(n)[0];return Jm(n,"iterationTypesOfIteratorResult",O0(void 0,T,void 0))}const c=ol(n,Ait),_=c!==jn?Wc(c,"value"):void 0,d=ol(n,Nit),h=d!==jn?Wc(d,"value"):void 0;return!_&&!h?Jm(n,"iterationTypesOfIteratorResult",En):Jm(n,"iterationTypesOfIteratorResult",O0(_,h||ar,void 0))}function Nae(n,s,c,_,d){var qt,zn;var h,T,P,O;const $=Ws(n,c);if(!$&&c!=="next")return;const re=$&&!(c==="next"&&$.flags&16777216)?c==="next"?$n($):Gf($n($),2097152):void 0;if(qa(re))return c==="next"?gr:ci;const ce=re?As(re,0):Ve;if(ce.length===0){if(_){const Ht=c==="next"?s.mustHaveANextMethodDiagnostic:s.mustBeAMethodDiagnostic;d?((qt=d.errors)!=null||(d.errors=[]),d.errors.push(br(_,Ht,c))):Fe(_,Ht,c)}return c==="next"?En:void 0}if((re==null?void 0:re.symbol)&&ce.length===1){const Ht=s.getGlobalGeneratorType(!1),mn=s.getGlobalIteratorType(!1),bn=((T=(h=Ht.symbol)==null?void 0:h.members)==null?void 0:T.get(c))===re.symbol,Yn=!bn&&((O=(P=mn.symbol)==null?void 0:P.members)==null?void 0:O.get(c))===re.symbol;if(bn||Yn){const fs=bn?Ht:mn,{mapper:Vi}=re;return O0(jh(fs.typeParameters[0],Vi),jh(fs.typeParameters[1],Vi),c==="next"?jh(fs.typeParameters[2],Vi):void 0)}}let Se,Te;for(const Ht of ce)c!=="throw"&&dt(Ht.parameters)&&(Se=dn(Se,Xp(Ht,0))),Te=dn(Te,Ua(Ht));let Ze,St;if(c!=="throw"){const Ht=Se?Jr(Se):jt;if(c==="next")St=Ht;else if(c==="return"){const mn=s.resolveIterationType(Ht,_)||ke;Ze=dn(Ze,mn)}}let Zt;const _n=Te?oa(Te):jn,Gn=s.resolveIterationType(_n,_)||ke,An=Pit(Gn);return An===En?(_&&(d?((zn=d.errors)!=null||(d.errors=[]),d.errors.push(br(_,s.mustHaveAValueDiagnostic,c))):Fe(_,s.mustHaveAValueDiagnostic,c)),Zt=ke,Ze=dn(Ze,ke)):(Zt=An.yieldType,Ze=dn(Ze,An.returnType)),O0(Zt,Jr(Ze),St)}function $Ee(n,s,c,_,d){const h=zEe([Nae(n,s,"next",c,_),Nae(n,s,"return",c,_),Nae(n,s,"throw",c,_)]);return d?h:Jm(n,s.iteratorCacheKey,h)}function Iv(n,s,c){if(qa(s))return;const _=XEe(s,c);return _&&_[Dme(n)]}function XEe(n,s){if(qa(n))return gr;const c=s?2:1,_=s?La:io;return Rz(n,c,void 0)||wit(n,_,void 0,void 0)}function Iit(n){Rg(n)||Wat(n)}function nI(n,s){const c=!!(s&1),_=!!(s&2);if(c){const d=Iv(1,n,_);return d?_?P0(vC(d)):d:$e}return _?P0(n)||$e:n}function QEe(n,s){const c=nI(s,Il(n));return!!(c&&(Yo(c,16384)||c.flags&32769))}function Oit(n){var h;if(Rg(n))return;const s=P9(n);if(s&&ec(s)){Cl(n,p.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!s){Cl(n,p.A_return_statement_can_only_be_used_within_a_function_body);return}const c=vd(s),_=Ua(c),d=Il(s);if(H||n.expression||_.flags&131072){const T=n.expression?Bc(n.expression):Nt;if(s.kind===178)n.expression&&Fe(n,p.Setters_cannot_return_a_value);else if(s.kind===176)n.expression&&!zh(T,_,n,n.expression)&&Fe(n,p.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Ck(s)){const P=(h=nI(_,d))!=null?h:_,O=d&2?v7(T,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):T;P&&zh(O,P,n,n.expression)}}else s.kind!==176&&j.noImplicitReturns&&!QEe(s,_)&&Fe(n,p.Not_all_code_paths_return_a_value)}function Fit(n){Rg(n)||n.flags&65536&&Cl(n,p.with_statements_are_not_allowed_in_an_async_function_block),Qi(n.expression);const s=Rn(n);if(!Ov(s)){const c=gm(s,n.pos).start,_=n.statement.pos;Fv(s,c,_-c,p.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Lit(n){Rg(n);let s,c=!1;const _=Qi(n.expression);pn(n.caseBlock.clauses,d=>{d.kind===297&&!c&&(s===void 0?s=d:(Qt(d,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),d.kind===296&&r(h(d)),pn(d.statements,na),j.noFallthroughCasesInSwitch&&d.fallthroughFlowNode&&wP(d.fallthroughFlowNode)&&Fe(d,p.Fallthrough_case_in_switch);function h(T){return()=>{const P=Qi(T.expression);_ae(_,P)||DCe(P,_,T.expression,void 0)}}}),n.caseBlock.locals&&Wh(n.caseBlock)}function Mit(n){Rg(n)||In(n.parent,s=>Cs(s)?"quit":s.kind===256&&s.label.escapedText===n.label.escapedText?(Qt(n.label,p.Duplicate_label_0,el(n.label)),!0):!1),na(n.statement)}function Rit(n){Rg(n)||we(n.expression)&&!n.expression.escapedText&&sot(n,p.Line_break_not_permitted_here),n.expression&&Qi(n.expression)}function Bit(n){Rg(n),Fz(n.tryBlock);const s=n.catchClause;if(s){if(s.variableDeclaration){const c=s.variableDeclaration;eI(c);const _=Vl(c);if(_){const d=ai(_);d&&!(d.flags&3)&&Cl(_,p.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)Cl(c.initializer,p.Catch_clause_variable_cannot_have_an_initializer);else{const d=s.block.locals;d&&Ox(s.locals,h=>{const T=d.get(h);(T==null?void 0:T.valueDeclaration)&&(T.flags&2)!==0&&Qt(T.valueDeclaration,p.Cannot_redeclare_identifier_0_in_catch_clause,Oi(h))})}}Fz(s.block)}n.finallyBlock&&Fz(n.finallyBlock)}function Bz(n,s,c){const _=x_(n);if(_.length===0)return;for(const h of Oh(n))c&&h.flags&4194304||YEe(n,h,rC(h,8576,!0),G1(h));const d=s.valueDeclaration;if(d&&ni(d)){for(const h of d.members)if(!Os(h)&&!Tk(h)){const T=vr(h);YEe(n,T,a_(h.name.expression),G1(T))}}if(_.length>1)for(const h of _)jit(n,h)}function YEe(n,s,c,_){const d=s.valueDeclaration,h=os(d);if(h&&Ei(h))return;const T=Ure(n,c),P=Rr(n)&2?lc(n.symbol,264):void 0,O=d&&d.kind===226||h&&h.kind===167?d:void 0,$=X_(s)===n.symbol?d:void 0;for(const re of T){const ce=re.declaration&&X_(vr(re.declaration))===n.symbol?re.declaration:void 0,Se=$||ce||(P&&!dt(To(n),Te=>!!hv(Te,s.escapedName)&&!!Q1(Te,re.keyType))?P:void 0);if(Se&&!ca(_,re.type)){const Te=al(Se,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ii(s),Cn(_),Cn(re.keyType),Cn(re.type));O&&Se!==O&&ua(Te,br(O,p._0_is_declared_here,ii(s))),xa.add(Te)}}}function jit(n,s){const c=s.declaration,_=Ure(n,s.keyType),d=Rr(n)&2?lc(n.symbol,264):void 0,h=c&&X_(vr(c))===n.symbol?c:void 0;for(const T of _){if(T===s)continue;const P=T.declaration&&X_(vr(T.declaration))===n.symbol?T.declaration:void 0,O=h||P||(d&&!dt(To(n),$=>!!Rm($,s.keyType)&&!!Q1($,T.keyType))?d:void 0);O&&!ca(s.type,T.type)&&Fe(O,p._0_index_type_1_is_not_assignable_to_2_index_type_3,Cn(s.keyType),Cn(s.type),Cn(T.keyType),Cn(T.type))}}function xC(n,s){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Fe(n,s,n.escapedText)}}function Jit(n){ee>=1&&n.escapedText==="Object"&&(R<5||Rn(n).impliedNodeFormat===1)&&Fe(n,p.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,MC[R])}function zit(n){const s=zr(gy(n),ad);if(!Nn(s))return;const c=Kn(n),_=new Set,d=new Set;if(pn(n.parameters,({name:T},P)=>{we(T)&&_.add(T.escapedText),Ps(T)&&d.add(P)}),Hre(n)){const T=s.length-1,P=s[T];c&&P&&we(P.name)&&P.typeExpression&&P.typeExpression.type&&!_.has(P.name.escapedText)&&!d.has(T)&&!wf(ai(P.typeExpression.type))&&Fe(P.name,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,lr(P.name))}else pn(s,({name:T,isNameFirst:P},O)=>{d.has(O)||we(T)&&_.has(T.escapedText)||(hu(T)?c&&Fe(T,p.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Nu(T),Nu(T.left)):P||Tf(c,T,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,lr(T)))})}function rI(n){let s=!1;if(n)for(let _=0;_{_.default?(s=!0,Vit(_.default,n,d)):s&&Fe(_,p.Required_type_parameters_may_not_follow_optional_type_parameters);for(let h=0;h_)return!1;for(let O=0;O$c(c)&&N_(c))&&Qt(s,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Lr(n,1024)&&Cl(n,p.A_class_declaration_without_the_default_modifier_must_have_a_name),t7e(n),pn(n.members,na),Wh(n)}function t7e(n){Aat(n),YP(n),bC(n,n.name),rI(Kh(n)),g7(n);const s=vr(n),c=mo(s),_=Uu(c),d=$n(s);ZEe(s),Pz(s),ort(n),!!(n.flags&33554432)||crt(n);const T=Od(n);if(T){pn(T.typeArguments,na),ee<2&&Kc(T.parent,1);const $=s2(n);$&&$!==T&&Qi($.expression);const re=To(c);re.length&&r(()=>{const ce=re[0],Se=fi(c),Te=Z_(Se);if($it(Te,T),na(T.expression),dt(T.typeArguments)){pn(T.typeArguments,na);for(const St of Dr(Te,T.typeArguments,T))if(!SEe(T,St.typeParameters))break}const Ze=Uu(ce,c.thisType);if(J_(_,Ze,void 0)?J_(d,TCe(Te),n.name||n,p.Class_static_side_0_incorrectly_extends_base_class_static_side_1):i7e(n,_,Ze,p.Class_0_incorrectly_extends_base_class_1),Se.flags&8650752&&(X1(d)?As(Se,1).some(Zt=>Zt.flags&4)&&!Lr(n,256)&&Fe(n.name||n,p.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Fe(n.name||n,p.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Te.symbol&&Te.symbol.flags&32)&&!(Se.flags&8650752)){const St=gi(Te,T.typeArguments,T);pn(St,Zt=>!xd(Zt.declaration)&&!Pg(Ua(Zt),ce))&&Fe(T.expression,p.Base_constructors_must_all_have_the_same_return_type)}Yit(c,ce)})}Git(n,c,_,d);const P=w6(n);if(P)for(const $ of P)(!Tc($.expression)||c_($.expression))&&Fe($.expression,p.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),hae($),r(O($));r(()=>{Bz(c,s),Bz(d,s,!0),dae(n),est(n)});function O($){return()=>{const re=qp(ai($));if(!q(re))if(Uf(re)){const ce=re.symbol&&re.symbol.flags&32?p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:p.Class_0_incorrectly_implements_interface_1,Se=Uu(re,c.thisType);J_(_,Se,void 0)||i7e(n,_,Se,ce)}else Fe($,p.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Git(n,s,c,_){const h=Od(n)&&To(s),T=h!=null&&h.length?Uu(wa(h),s.thisType):void 0,P=fi(s);for(const O of n.members)wq(O)||(Cc(O)&&pn(O.parameters,$=>{Du($,O)&&n7e(n,_,P,T,s,c,$,!0)}),n7e(n,_,P,T,s,c,O,!1))}function n7e(n,s,c,_,d,h,T,P,O=!0){const $=T.name&&vp(T.name)||vp(T);return $?r7e(n,s,c,_,d,h,Eq(T),l2(T),Os(T),P,bc($),O?T:void 0):0}function r7e(n,s,c,_,d,h,T,P,O,$,re,ce){const Se=Kn(n),Te=!!(n.flags&33554432);if(_&&(T||j.noImplicitOverride)){const Ze=Ho(re),St=O?s:h,Zt=O?c:_,_n=Ws(St,Ze),Gn=Ws(Zt,Ze),An=Cn(_);if(_n&&!Gn&&T){if(ce){const qt=m8e(re,Zt);qt?Fe(ce,Se?p.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:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,An,ii(qt)):Fe(ce,Se?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,An)}return 2}else if(_n&&(Gn==null?void 0:Gn.declarations)&&j.noImplicitOverride&&!Te){const qt=dt(Gn.declarations,l2);if(T)return 0;if(qt){if(P&&qt)return ce&&Fe(ce,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,An),1}else{if(ce){const zn=$?Se?p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Se?p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Fe(ce,zn,An)}return 1}}}else if(T){if(ce){const Ze=Cn(d);Fe(ce,Se?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,Ze)}return 2}return 0}function i7e(n,s,c,_){let d=!1;for(const h of n.members){if(Os(h))continue;const T=h.name&&vp(h.name)||vp(h);if(T){const P=Ws(s,T.escapedName),O=Ws(c,T.escapedName);if(P&&O){const $=()=>us(void 0,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ii(T),Cn(s),Cn(c));J_($n(P),$n(O),h.name||h,void 0,$)||(d=!0)}}}d||J_(s,c,n.name||n,_)}function $it(n,s){const c=As(n,1);if(c.length){const _=c[0].declaration;if(_&&Iu(_,8)){const d=Yg(n.symbol);Mae(s,d)||Fe(s,p.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,h0(n.symbol))}}}function Xit(n,s,c){if(!s.name)return 0;const _=vr(n),d=mo(_),h=Uu(d),T=$n(_),O=Od(n)&&To(d),$=O!=null&&O.length?Uu(wa(O),d.thisType):void 0,re=fi(d),ce=s.parent?Eq(s):Lr(s,16384);return r7e(n,T,re,$,d,h,ce,l2(s),Os(s),!1,bc(c))}function Bk(n){return rc(n)&1?n.links.target:n}function Qit(n){return zr(n.declarations,s=>s.kind===263||s.kind===264)}function Yit(n,s){var O,$,re,ce;var c,_,d,h;const T=Va(s);let P;e:for(const Se of T){const Te=Bk(Se);if(Te.flags&4194304)continue;const Ze=hv(n,Te.escapedName);if(!Ze)continue;const St=Bk(Ze),Zt=Lf(Te);if(E.assert(!!St,"derived should point to something, even if it is the base class' declaration."),St===Te){const _n=Yg(n.symbol);if(Zt&256&&(!_n||!Lr(_n,256))){for(const Gn of To(n)){if(Gn===s)continue;const An=hv(Gn,Te.escapedName),qt=An&&Bk(An);if(qt&&qt!==Te)continue e}P||(P=Fe(_n,p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Cn(n),Cn(s))),_n.kind===231?ua(P,br(($=(O=Se.valueDeclaration)!=null?O:Se.declarations&&wa(Se.declarations))!=null?$:_n,p.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ii(Se),Cn(s))):ua(P,br((ce=(re=Se.valueDeclaration)!=null?re:Se.declarations&&wa(Se.declarations))!=null?ce:_n,p.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Cn(n),ii(Se),Cn(s)))}}else{const _n=Lf(St);if(Zt&8||_n&8)continue;let Gn;const An=Te.flags&98308,qt=St.flags&98308;if(An&&qt){if((rc(Te)&6?(c=Te.declarations)==null?void 0:c.some(mn=>s7e(mn,Zt)):(_=Te.declarations)==null?void 0:_.every(mn=>s7e(mn,Zt)))||rc(Te)&262144||St.valueDeclaration&&rr(St.valueDeclaration))continue;const zn=An!==4&&qt===4;if(zn||An===4&&qt!==4){const mn=zn?p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Fe(os(St.valueDeclaration)||St.valueDeclaration,mn,ii(Te),Cn(s),Cn(n))}else if(oe){const mn=(d=St.declarations)==null?void 0:d.find(bn=>bn.kind===172&&!bn.initializer);if(mn&&!(St.flags&33554432)&&!(Zt&256)&&!(_n&256)&&!((h=St.declarations)!=null&&h.some(bn=>!!(bn.flags&33554432)))){const bn=uv(Yg(n.symbol)),Yn=mn.name;if(mn.exclamationToken||!bn||!we(Yn)||!H||!o7e(Yn,n,bn)){const fs=p.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;Fe(os(St.valueDeclaration)||St.valueDeclaration,fs,ii(Te),Cn(s))}}}continue}else if(Pse(Te)){if(Pse(St)||St.flags&4)continue;E.assert(!!(St.flags&98304)),Gn=p.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Te.flags&98304?Gn=p.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Gn=p.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Fe(os(St.valueDeclaration)||St.valueDeclaration,Gn,Cn(s),ii(Te),Cn(n))}}}function s7e(n,s){return s&256&&(!Fs(n)||!n.initializer)||f_(n.parent)}function Zit(n,s,c){if(!Nn(s))return c;const _=new Map;pn(c,d=>{_.set(d.escapedName,d)});for(const d of s){const h=Va(Uu(d,n.thisType));for(const T of h){const P=_.get(T.escapedName);P&&T.parent===P.parent&&_.delete(T.escapedName)}}return ra(_.values())}function Kit(n,s){const c=To(n);if(c.length<2)return!0;const _=new Map;pn(kre(n).declaredProperties,h=>{_.set(h.escapedName,{prop:h,containingType:n})});let d=!0;for(const h of c){const T=Va(Uu(h,n.thisType));for(const P of T){const O=_.get(P.escapedName);if(!O)_.set(P.escapedName,{prop:P,containingType:h});else if(O.containingType!==n&&!dZe(O.prop,P)){d=!1;const re=Cn(O.containingType),ce=Cn(h);let Se=us(void 0,p.Named_property_0_of_types_1_and_2_are_not_identical,ii(P),re,ce);Se=us(Se,p.Interface_0_cannot_simultaneously_extend_types_1_and_2,Cn(n),re,ce),xa.add(Hg(Rn(s),s,Se))}}}return d}function est(n){if(!H||!ue||n.flags&33554432)return;const s=uv(n);for(const c of n.members)if(!(I_(c)&2)&&!Os(c)&&a7e(c)){const _=c.name;if(we(_)||Ei(_)||Ga(_)){const d=$n(vr(c));d.flags&3||sC(d)||(!s||!o7e(_,d,s))&&Fe(c.name,p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,no(_))}}}function a7e(n){return n.kind===172&&!l2(n)&&!n.exclamationToken&&!n.initializer}function tst(n,s,c,_,d){for(const h of c)if(h.pos>=_&&h.pos<=d){const T=I.createPropertyAccessExpression(I.createThis(),n);Ta(T.expression,T),Ta(T,h),T.flowNode=h.returnFlowNode;const P=Uh(T,s,N0(s));if(!sC(P))return!0}return!1}function o7e(n,s,c){const _=Ga(n)?I.createElementAccessExpression(I.createThis(),n.expression):I.createPropertyAccessExpression(I.createThis(),n);Ta(_.expression,_),Ta(_,c),_.flowNode=c.returnFlowNode;const d=Uh(_,s,N0(s));return!sC(d)}function nst(n){zm(n)||Mat(n),rI(n.typeParameters),r(()=>{xC(n.name,p.Interface_name_cannot_be_0),g7(n);const s=vr(n);ZEe(s);const c=lc(s,264);if(n===c){const _=mo(s),d=Uu(_);if(Kit(_,n.name)){for(const h of To(_))J_(d,Uu(h,_.thisType),n.name,p.Interface_0_incorrectly_extends_interface_1);Bz(_,s)}}vEe(n)}),pn(p3(n),s=>{(!Tc(s.expression)||c_(s.expression))&&Fe(s.expression,p.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),hae(s)}),pn(n.members,na),r(()=>{dae(n),Wh(n)})}function rst(n){zm(n),xC(n.name,p.Type_alias_name_cannot_be_0),g7(n),rI(n.typeParameters),n.type.kind===141?(!QA.has(n.name.escapedText)||Nn(n.typeParameters)!==1)&&Fe(n.type,p.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(na(n.type),Wh(n))}function c7e(n){const s=jr(n);if(!(s.flags&1024)){s.flags|=1024;let c=0;for(const _ of n.members){const d=ist(_,c);jr(_).enumMemberValue=d,c=typeof d=="number"?d+1:void 0}}}function ist(n,s){if(Fw(n.name))Fe(n.name,p.Computed_property_names_are_not_allowed_in_enums);else{const c=f6(n.name);sg(c)&&!U3(c)&&Fe(n.name,p.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return sst(n);if(!(n.parent.flags&33554432&&!e2(n.parent))){if(s!==void 0)return s;Fe(n.name,p.Enum_member_must_have_initializer)}}function sst(n){const s=e2(n.parent),c=n.initializer,_=SC(c,n);return _!==void 0?s&&typeof _=="number"&&!isFinite(_)&&Fe(c,isNaN(_)?p.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:p.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):s?Fe(c,p.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Fe(c,p.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):J_(Qi(c),ye,c,p.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),_}function SC(n,s){switch(n.kind){case 224:const c=SC(n.operand,s);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:const _=SC(n.left,s),d=SC(n.right,s);if(typeof _=="number"&&typeof d=="number")switch(n.operatorToken.kind){case 52:return _|d;case 51:return _&d;case 49:return _>>d;case 50:return _>>>d;case 48:return _<ost(n))}function ost(n){zm(n),bC(n,n.name),g7(n),n.members.forEach(cst),c7e(n);const s=vr(n),c=lc(s,n.kind);if(n===c){if(s.declarations&&s.declarations.length>1){const d=e2(n);pn(s.declarations,h=>{Py(h)&&e2(h)!==d&&Fe(os(h),p.Enum_declarations_must_all_be_const_or_non_const)})}let _=!1;pn(s.declarations,d=>{if(d.kind!==266)return!1;const h=d;if(!h.members.length)return!1;const T=h.members[0];T.initializer||(_?Fe(T.name,p.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):_=!0)})}}function cst(n){Ei(n.name)&&Fe(n,p.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&Qi(n.initializer)}function lst(n){const s=n.declarations;if(s){for(const c of s)if((c.kind===263||c.kind===262&&Qf(c.body))&&!(c.flags&33554432))return c}}function _st(n,s){const c=mm(n),_=mm(s);return Xd(c)?Xd(_):Xd(_)?!1:c===_}function ust(n){n.body&&(na(n.body),Id(n)||Wh(n)),r(s);function s(){var c,_;const d=Id(n),h=n.flags&33554432;d&&!h&&Fe(n.name,p.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const T=__(n),P=T?p.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:p.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(iI(n,P))return;zm(n)||!h&&n.name.kind===11&&Qt(n.name,p.Only_ambient_modules_can_use_quoted_names),we(n.name)&&bC(n,n.name),g7(n);const O=vr(n);if(O.flags&512&&!h&&N$(n,Xb(j))){if(nd(j)&&!Rn(n).externalModuleIndicator&&Fe(n.name,p.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Je),((c=O.declarations)==null?void 0:c.length)>1){const $=lst(O);$&&(Rn(n)!==Rn($)?Fe(n.name,p.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<$.pos&&Fe(n.name,p.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const re=lc(O,263);re&&_st(n,re)&&(jr(n).flags|=2048)}if(j.verbatimModuleSyntax&&n.parent.kind===312&&(R===1||n.parent.impliedNodeFormat===1)){const $=(_=n.modifiers)==null?void 0:_.find(re=>re.kind===95);$&&Fe($,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(T)if(Zv(n)){if((d||vr(n).flags&33554432)&&n.body)for(const re of n.body.statements)Pae(re,d)}else Xd(n.parent)?d?Fe(n.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Al(Cp(n.name))&&Fe(n.name,p.Ambient_module_declaration_cannot_specify_relative_module_name):d?Fe(n.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Fe(n.name,p.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Pae(n,s){switch(n.kind){case 243:for(const _ of n.declarationList.declarations)Pae(_,s);break;case 277:case 278:Cl(n,p.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:Cl(n,p.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const c=n.name;if(Ps(c)){for(const _ of c.elements)Pae(_,s);break}case 263:case 266:case 262:case 264:case 267:case 265:if(s)return;break}}function fst(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(eg(n.expression)&&!Ei(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function Iae(n){const s=x6(n);if(!s||_c(s))return!1;if(!fa(s))return Fe(s,p.String_literal_expected),!1;const c=n.parent.kind===268&&__(n.parent.parent);if(n.parent.kind!==312&&!c)return Fe(s,n.kind===278?p.Export_declarations_are_not_permitted_in_a_namespace:p.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Al(s.text)&&!fv(n))return Fe(n,p.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Hl(n)&&n.assertClause){let _=!1;for(const d of n.assertClause.elements)fa(d.value)||(_=!0,Fe(d.value,p.Import_assertion_values_must_be_string_literal_expressions));return!_}return!0}function jz(n){var P;var s,c,_,d;let h=vr(n);const T=hl(h);if(T!==it){if(h=Ma(h.exportSymbol||h),Kn(n)&&!(T.flags&111551)&&!Xv(n)){const re=Nx(n)?n.propertyName||n.name:A_(n)?n.name:n;if(E.assert(n.kind!==280),n.kind===281){const ce=Fe(re,p.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Se=(c=(s=Rn(n).symbol)==null?void 0:s.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(Se===T){const Te=(_=Se.declarations)==null?void 0:_.find(o6);Te&&ua(ce,br(Te,p._0_is_automatically_exported_here,Oi(Se.escapedName)))}}else{E.assert(n.kind!==260);const ce=In(n,Kp(bl,Hl)),Se=(P=ce&&((d=_3(ce))==null?void 0:d.text))!=null?P:"...",Te=Oi(we(re)?re.escapedText:h.escapedName);Fe(re,p._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Te,`import("${Se}").${Te}`)}return}const O=ku(T),$=(h.flags&1160127?111551:0)|(h.flags&788968?788968:0)|(h.flags&1920?1920:0);if(O&$){const re=n.kind===281?p.Export_declaration_conflicts_with_exported_declaration_of_0:p.Import_declaration_conflicts_with_local_declaration_of_0;Fe(n,re,ii(h))}if(nd(j)&&!Xv(n)&&!(n.flags&33554432)){const re=gp(h),ce=!(O&111551);if(ce||re)switch(n.kind){case 273:case 276:case 271:{if(j.preserveValueImports||j.verbatimModuleSyntax){E.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const Se=j.verbatimModuleSyntax&&b6(n)?p.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ce?j.verbatimModuleSyntax?p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:j.verbatimModuleSyntax?p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,Te=lr(n.kind===276&&n.propertyName||n.name);z2(Fe(n,Se,Te),ce?void 0:re,Te)}ce&&n.kind===271&&Iu(n,1)&&Fe(n,p.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Je);break}case 281:if(j.verbatimModuleSyntax||Rn(re)!==Rn(n)){const Se=lr(n.propertyName||n.name),Te=ce?Fe(n,p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Je):Fe(n,p._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Se,Je);z2(Te,ce?void 0:re,Se);break}}j.verbatimModuleSyntax&&n.kind!==271&&!Kn(n)&&(R===1||Rn(n).impliedNodeFormat===1)&&Fe(n,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(vu(n)){const re=Oae(h,n);fp(re)&&re.declarations&&f0(n,re.declarations,re.escapedName)}}}function Oae(n,s){if(!(n.flags&2097152)||fp(n)||!dp(n))return n;const c=hl(n);if(c===it)return c;for(;n.flags&2097152;){const _=Cse(n);if(_){if(_===c)break;if(_.declarations&&Nn(_.declarations))if(fp(_)){f0(s,_.declarations,_.escapedName);break}else{if(n===c)break;n=_}}else break}return c}function Jz(n){bC(n,n.name),jz(n),n.kind===276&&lr(n.propertyName||n.name)==="default"&&bm(j)&&R!==4&&(R<5||Rn(n).impliedNodeFormat===1)&&Kc(n,131072)}function u7e(n){var s;if(n.assertClause){const c=DX(n),_=DS(n.assertClause,c?Qt:void 0);if(c&&_)return gD()||Qt(n.assertClause,p.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Sc(j)!==3&&Sc(j)!==99?Qt(n.assertClause,p.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((R===199&&n.moduleSpecifier&&mc(n.moduleSpecifier))!==99&&R!==99)return Qt(n.assertClause,R===199?p.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:p.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(bl(n)?(s=n.importClause)==null?void 0:s.isTypeOnly:n.isTypeOnly)return Qt(n.assertClause,p.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(_)return Qt(n.assertClause,p.resolution_mode_can_only_be_set_for_type_only_imports)}}function pst(n){if(!iI(n,Kn(n)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!zm(n)&&rO(n)&&Cl(n,p.An_import_declaration_cannot_have_modifiers),Iae(n)){const s=n.importClause;s&&!oot(s)&&(s.name&&Jz(s),s.namedBindings&&(s.namedBindings.kind===274?(Jz(s.namedBindings),R!==4&&(R<5||Rn(n).impliedNodeFormat===1)&&bm(j)&&Kc(n,65536)):r_(n,n.moduleSpecifier)&&pn(s.namedBindings.elements,Jz)))}u7e(n)}}function dst(n){if(!iI(n,Kn(n)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(zm(n),b6(n)||Iae(n)))if(Jz(n),Lr(n,1)&&R1(n),n.moduleReference.kind!==283){const s=hl(vr(n));if(s!==it){const c=ku(s);if(c&111551){const _=Ku(n.moduleReference);Qo(_,112575).flags&1920||Fe(_,p.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,no(_))}c&788968&&xC(n.name,p.Import_name_cannot_be_0)}n.isTypeOnly&&Qt(n,p.An_import_alias_cannot_use_import_type)}else R>=5&&Rn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&Qt(n,p.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 mst(n){if(!iI(n,Kn(n)?p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!zm(n)&&O_e(n)&&Cl(n,p.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&op(n.exportClause)&&Nn(n.exportClause.elements)&&ee===0&&Kc(n,4194304),gst(n),!n.moduleSpecifier||Iae(n))if(n.exportClause&&!lg(n.exportClause)){pn(n.exportClause.elements,xst);const s=n.parent.kind===268&&__(n.parent.parent),c=!s&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!s&&!c&&Fe(n,p.Export_declarations_are_not_permitted_in_a_namespace)}else{const s=r_(n,n.moduleSpecifier);s&&ov(s)?Fe(n.moduleSpecifier,p.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ii(s)):n.exportClause&&jz(n.exportClause),R!==4&&(R<5||Rn(n).impliedNodeFormat===1)&&(n.exportClause?bm(j)&&Kc(n,65536):Kc(n,32768))}u7e(n)}}function gst(n){var s;return n.isTypeOnly&&((s=n.exportClause)==null?void 0:s.kind)===279?U7e(n.exportClause):!1}function iI(n,s){const c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||Cl(n,s),!c}function hst(n){return q9(n,s=>!!vr(s).isReferenced)}function yst(n){return q9(n,s=>!!Mi(vr(s)).constEnumReferenced)}function vst(n){return bl(n)&&n.importClause&&!n.importClause.isTypeOnly&&hst(n.importClause)&&!Hz(n.importClause,!0)&&!yst(n.importClause)}function bst(n){return Hl(n)&&km(n.moduleReference)&&!n.isTypeOnly&&vr(n).isReferenced&&!Hz(n,!1)&&!Mi(vr(n)).constEnumReferenced}function Tst(n){if(!!ot)for(const s of n.statements)(vst(s)||bst(s))&&Fe(s,p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function xst(n){if(jz(n),wp(j)&&$4(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)bm(j)&&R!==4&&(R<5||Rn(n).impliedNodeFormat===1)&&lr(n.propertyName||n.name)==="default"&&Kc(n,131072);else{const s=n.propertyName||n.name,c=Lc(s,s.escapedText,2998271,void 0,void 0,!0);if(c&&(c===Pe||c===Ge||c.declarations&&Xd(nx(c.declarations[0]))))Fe(s,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,lr(s));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&R1(n);const _=c&&(c.flags&2097152?hl(c):c);(!_||ku(_)&111551)&&Bc(n.propertyName||n.name)}}}function Sst(n){const s=n.isExportEquals?p.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(iI(n,s))return;const c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!__(c)){n.isExportEquals?Fe(n,p.An_export_assignment_cannot_be_used_in_a_namespace):Fe(n,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!zm(n)&&rO(n)&&Cl(n,p.An_export_assignment_cannot_have_modifiers);const _=Vl(n);_&&J_(Bc(n.expression),ai(_),n.expression);const d=!n.isExportEquals&&!(n.flags&33554432)&&j.verbatimModuleSyntax&&(R===1||Rn(n).impliedNodeFormat===1);if(n.expression.kind===80){const h=n.expression,T=Q_(Qo(h,67108863,!0,!0,n));T?(oz(T,h),ku(T)&111551?(Bc(h),!d&&!(n.flags&33554432)&&j.verbatimModuleSyntax&&gp(T,111551)&&Fe(h,n.isExportEquals?p.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:p.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,lr(h))):!d&&!(n.flags&33554432)&&j.verbatimModuleSyntax&&Fe(h,n.isExportEquals?p.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:p.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,lr(h))):Bc(h),wp(j)&&$4(h,!0)}else Bc(n.expression);d&&Fe(n,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),f7e(c),n.flags&33554432&&!Tc(n.expression)&&Qt(n.expression,p.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(R>=5&&(n.flags&33554432&&Rn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Rn(n).impliedNodeFormat!==1)?Qt(n,p.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):R===4&&!(n.flags&33554432)&&Qt(n,p.Export_assignment_is_not_supported_when_module_flag_is_system))}function kst(n){return Au(n.exports,(s,c)=>c!=="export=")}function f7e(n){const s=vr(n),c=Mi(s);if(!c.exportsChecked){const _=s.exports.get("export=");if(_&&kst(s)){const h=dp(_)||_.valueDeclaration;h&&!fv(h)&&!Kn(h)&&Fe(h,p.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const d=Zd(s);d&&d.forEach(({declarations:h,flags:T},P)=>{if(P==="__export"||T&1920)return;const O=M0(h,hI(Ame,yI(f_)));if(!(T&524288&&O<=2)&&O>1&&!zz(h))for(const $ of h)Eme($)&&xa.add(br($,p.Cannot_redeclare_exported_variable_0,Oi(P)))}),c.exportsChecked=!0}}function zz(n){return n&&n.length>1&&n.every(s=>Kn(s)&&Mo(s)&&(Jb(s.expression)||eg(s.expression)))}function na(n){if(n){const s=D;D=n,k=0,Cst(n),D=s}}function Cst(n){iD(n)&&pn(n.jsDoc,({comment:c,tags:_})=>{p7e(c),pn(_,d=>{p7e(d.comment),Kn(n)&&na(d)})});const s=n.kind;if(i)switch(s){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(s>=243&&s<=259&&rD(n)&&n.flowNode&&!wP(n.flowNode)&&Tf(j.allowUnreachableCode===!1,n,p.Unreachable_code_detected),s){case 168:return gEe(n);case 169:return hEe(n);case 172:return bEe(n);case 171:return lrt(n);case 185:case 184:case 179:case 180:case 181:return m7(n);case 174:case 173:return _rt(n);case 175:return urt(n);case 176:return frt(n);case 177:case 178:return xEe(n);case 183:return hae(n);case 182:return srt(n);case 186:return yrt(n);case 187:return vrt(n);case 188:return brt(n);case 189:return Trt(n);case 192:case 193:return xrt(n);case 196:case 190:case 191:return na(n.type);case 197:return Ert(n);case 198:return wrt(n);case 194:return Drt(n);case 195:return Art(n);case 203:return Nrt(n);case 205:return Prt(n);case 202:return Irt(n);case 335:return Qrt(n);case 336:return Xrt(n);case 353:case 345:case 347:return zrt(n);case 352:return Vrt(n);case 351:return Urt(n);case 331:case 332:case 333:return qrt(n);case 348:return Hrt(n);case 355:return Grt(n);case 324:$rt(n);case 322:case 321:case 319:case 320:case 329:d7e(n),bs(n,na);return;case 325:Est(n);return;case 316:return na(n.type);case 340:case 342:case 341:return Yrt(n);case 357:return Wrt(n);case 199:return Srt(n);case 200:return krt(n);case 262:return Jrt(n);case 241:case 268:return Fz(n);case 243:return mit(n);case 244:return git(n);case 245:return hit(n);case 246:return bit(n);case 247:return Tit(n);case 248:return xit(n);case 249:return kit(n);case 250:return Sit(n);case 251:case 252:return Iit(n);case 253:return Oit(n);case 254:return Fit(n);case 255:return Lit(n);case 256:return Mit(n);case 257:return Rit(n);case 258:return Bit(n);case 260:return pit(n);case 208:return dit(n);case 263:return Hit(n);case 264:return nst(n);case 265:return rst(n);case 266:return ast(n);case 267:return ust(n);case 272:return pst(n);case 271:return dst(n);case 278:return mst(n);case 277:return Sst(n);case 242:case 259:Rg(n);return;case 282:return drt(n)}}function p7e(n){Ds(n)&&pn(n,s=>{Ix(s)&&na(s)})}function d7e(n){if(!Kn(n))if(xF(n)||n4(n)){const s=ia(xF(n)?54:58),c=n.postfix?p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,_=n.type,d=ai(_);Qt(n,c,s,Cn(n4(n)&&!(d===jn||d===ar)?Jr(dn([d,Nt],n.postfix?void 0:W)):d))}else Qt(n,p.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Est(n){d7e(n),na(n.type);const{parent:s}=n;if(rs(s)&&r4(s.parent)){ka(s.parent.parameters)!==s&&Fe(n,p.A_rest_parameter_must_be_last_in_a_parameter_list);return}sT(s)||Fe(n,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!ad(c)){Fe(n,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const _=sD(c);if(!_)return;const d=by(c);(!d||ka(d.parameters).symbol!==_)&&Fe(n,p.A_rest_parameter_must_be_last_in_a_parameter_list)}function wst(n){const s=ai(n.type),{parent:c}=n,_=n.parent.parent;if(sT(n.parent)&&ad(_)){const d=by(_),h=sG(_.parent.parent);if(d||h){const T=jo(h?_.parent.parent.typeExpression.parameters:d.parameters),P=sD(_);if(!T||P&&T.symbol===P&&Zm(T))return $l(s)}}return rs(c)&&r4(c.parent)?$l(s):Sl(s)}function jk(n){const s=Rn(n),c=jr(s);c.flags&1?E.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function Dst(n){const s=jr(n);s.deferredNodes&&s.deferredNodes.forEach(Ast),s.deferredNodes=void 0}function Ast(n){var s,c;(s=li)==null||s.push(li.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const _=D;switch(D=n,k=0,n.kind){case 213:case 214:case 215:case 170:case 286:Fk(n);break;case 218:case 219:case 174:case 173:knt(n);break;case 177:case 178:xEe(n);break;case 231:qit(n);break;case 168:irt(n);break;case 285:Let(n);break;case 284:Ret(n);break;case 216:case 234:case 217:Ytt(n)}D=_,(c=li)==null||c.pop()}function Nst(n){var s,c;(s=li)==null||s.push(li.Phase.Check,"checkSourceFile",{path:n.path},!0),go("beforeCheck"),Pst(n),go("afterCheck"),Gu("Check","beforeCheck","afterCheck"),(c=li)==null||c.pop()}function m7e(n,s){if(s)return!1;switch(n){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return E.assertNever(n)}}function g7e(n){return un.get(n.path)||Ve}function Pst(n){const s=jr(n);if(!(s.flags&1)){if(B3(n,j,e))return;rot(n),Hm(A1),Hm(Hy),Hm(yh),Hm(Gy),Hm(M2),pn(n.statements,na),na(n.endOfFileToken),Dst(n),Yu(n)&&Wh(n),r(()=>{!n.isDeclarationFile&&(j.noUnusedLocals||j.noUnusedParameters)&&FEe(g7e(n),(c,_,d)=>{!_6(c)&&m7e(_,!!(c.flags&33554432))&&xa.add(d)}),n.isDeclarationFile||tit()}),j.importsNotUsedAsValues===2&&!n.isDeclarationFile&&zc(n)&&Tst(n),Yu(n)&&f7e(n),A1.length&&(pn(A1,iit),Hm(A1)),Hy.length&&(pn(Hy,sit),Hm(Hy)),yh.length&&(pn(yh,lit),Hm(yh)),Gy.length&&(pn(Gy,uit),Hm(Gy)),s.flags|=1}}function h7e(n,s){try{return i=s,Ist(n)}finally{i=void 0}}function Fae(){for(const n of t)n();t=[]}function Lae(n){Fae();const s=r;r=c=>c(),Nst(n),r=s}function Ist(n){if(n){Fae();const s=xa.getGlobalDiagnostics(),c=s.length;Lae(n);const _=xa.getDiagnostics(n.fileName),d=xa.getGlobalDiagnostics();if(d!==s){const h=noe(s,d,I3);return es(h,_)}else if(c===0&&d.length>0)return es(d,_);return _}return pn(e.getSourceFiles(),Lae),xa.getDiagnostics()}function Ost(){return Fae(),xa.getGlobalDiagnostics()}function Fst(n,s){if(n.flags&67108864)return[];const c=Vs();let _=!1;return d(),c.delete("this"),Wre(c);function d(){for(;n;){switch(fm(n)&&n.locals&&!Xd(n)&&T(n.locals,s),n.kind){case 312:if(!zc(n))break;case 267:P(vr(n).exports,s&2623475);break;case 266:T(vr(n).exports,s&8);break;case 231:n.name&&h(n.symbol,s);case 263:case 264:_||T(Ih(vr(n)),s&788968);break;case 218:n.name&&h(n.symbol,s);break}Wle(n)&&h(tt,s),_=Os(n),n=n.parent}T(pe,s)}function h(O,$){if(D3(O)&$){const re=O.escapedName;c.has(re)||c.set(re,O)}}function T(O,$){$&&O.forEach(re=>{h(re,$)})}function P(O,$){$&&O.forEach(re=>{!lc(re,281)&&!lc(re,280)&&re.escapedName!=="default"&&h(re,$)})}}function Lst(n){return n.kind===80&&V6(n.parent)&&os(n.parent)===n}function y7e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function Mst(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function v7e(n,s){let c,_=Pl(n);for(;_&&!(c=s(_));)_=Pl(_);return c}function Rst(n){return!!In(n,s=>Cc(s)&&Qf(s.body)||Fs(s)?!0:ni(s)||Eo(s)?"quit":!1)}function Mae(n,s){return!!v7e(n,c=>c===s)}function Bst(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function Vz(n){return Bst(n)!==void 0}function jst(n){switch(uc(n.parent.parent)){case 1:case 3:return Cu(n.parent);case 4:case 2:case 5:return vr(n.parent.parent)}}function Jst(n){let s=n.parent;for(;hu(s);)n=s,s=s.parent;if(s&&s.kind===205&&s.qualifier===n)return s}function zst(n){if(n.expression.kind===110){const s=ru(n,!1,!1);if(Cs(s)){const c=O3e(s);if(c){const _=sy(c,void 0),d=L3e(c,_);return d&&!qa(d)}}}}function b7e(n){if(Xg(n))return Cu(n.parent);if(Kn(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ei(n)&&!Oy(n)&&!zst(n.parent)){const s=jst(n);if(s)return s}if(n.parent.kind===277&&Tc(n)){const s=Qo(n,2998271,!0);if(s&&s!==it)return s}else if(Xu(n)&&Vz(n)){const s=Ty(n,271);return E.assert(s!==void 0),fl(n,!0)}if(Xu(n)){const s=Jst(n);if(s){ai(s);const c=jr(n).resolvedSymbol;return c===it?void 0:c}}for(;z_e(n);)n=n.parent;if(Mst(n)){let s=0;n.parent.kind===233?(s=Km(n)?788968:111551,xD(n.parent)&&(s|=111551)):s=1920,s|=2097152;const c=Tc(n)?Qo(n,s,!0):void 0;if(c)return c}if(n.parent.kind===348)return sD(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){E.assert(!Kn(n));const s=c_e(n.parent);return s&&s.symbol}if(Gg(n)){if(_c(n))return;const s=In(n,Kp(Ix,_8,Oy)),c=s?901119:111551;if(n.kind===80){if(v6(n)&&fx(n)){const d=dz(n.parent);return d===it?void 0:d}const _=Qo(n,c,!0,!0,by(n));if(!_&&s){const d=In(n,Kp(ni,f_));if(d)return sI(n,!0,vr(d))}if(_&&s){const d=Vx(n);if(d&&b2(d)&&d===_.valueDeclaration)return Qo(n,c,!0,!0,Rn(d))||_}return _}else{if(Ei(n))return hz(n);if(n.kind===211||n.kind===166){const _=jr(n);return _.resolvedSymbol?_.resolvedSymbol:(n.kind===211?(Fse(n,0),_.resolvedSymbol||(_.resolvedSymbol=T7e(Bc(n.expression),E0(n.name)))):c8e(n,0),!_.resolvedSymbol&&s&&hu(n)?sI(n):_.resolvedSymbol)}else if(Oy(n))return sI(n)}}else if(y7e(n)){const s=n.parent.kind===183?788968:1920,c=Qo(n,s,!1,!0);return c&&c!==it?c:gJ(n)}if(n.parent.kind===182)return Qo(n,1)}function T7e(n,s){const c=Ure(n,s);if(c.length&&n.members){const _=dJ(Wp(n).members);if(c===x_(n))return _;if(_){const d=Mi(_),h=Hi(c,P=>P.declaration),T=an(h,Ra).join(",");if(d.filteredIndexSymbolCache||(d.filteredIndexSymbolCache=new Map),d.filteredIndexSymbolCache.has(T))return d.filteredIndexSymbolCache.get(T);{const P=Pa(131072,"__index");return P.declarations=Hi(c,O=>O.declaration),P.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:vp(P.declarations[0].parent),d.filteredIndexSymbolCache.set(T,P),P}}}}function sI(n,s,c){if(Xu(n)){let T=Qo(n,901119,s,!0,by(n));if(!T&&we(n)&&c&&(T=Ma(G_(zu(c),n.escapedText,901119))),T)return T}const _=we(n)?c:sI(n.left,s,c),d=we(n)?n.escapedText:n.right.escapedText;if(_){const h=_.flags&111551&&Ws($n(_),"prototype"),T=h?$n(h):mo(_);return Ws(T,d)}}function vp(n,s){if(Bi(n))return zc(n)?Ma(n.symbol):void 0;const{parent:c}=n,_=c.parent;if(!(n.flags&67108864)){if(wme(n)){const d=vr(c);return Nx(n.parent)&&n.parent.propertyName===n?Cse(d):d}else if(cD(n))return vr(c.parent);if(n.kind===80){if(Vz(n))return b7e(n);if(c.kind===208&&_.kind===206&&n===c.propertyName){const d=px(_),h=Ws(d,n.escapedText);if(h)return h}else if(s8(c)&&c.name===n)return c.keywordToken===105&&lr(n)==="target"?eae(c).symbol:c.keywordToken===102&&lr(n)==="meta"?D4e().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!Hx(n))return b7e(n);case 110:const d=ru(n,!1,!1);if(Cs(d)){const P=vd(d);if(P.thisParameter)return P.thisParameter}if(R9(n))return Qi(n).symbol;case 197:return EJ(n).symbol;case 108:return Qi(n).symbol;case 137:const h=n.parent;return h&&h.kind===176?h.parent.symbol:void 0;case 11:case 15:if(yy(n.parent.parent)&&c3(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||Kn(n)&&Sc(j)!==100&&mu(n.parent,!1)||Zu(n.parent)||Ay(n.parent)&&hy(n.parent.parent)&&n.parent.parent.argument===n.parent)return r_(n,n,s);if(Js(c)&&Rx(c)&&c.arguments[1]===n)return vr(c);case 9:const T=No(c)?c.argumentExpression===n?a_(c.expression):void 0:Ay(c)&&fS(_)?ai(_.objectType):void 0;return T&&Ws(T,Ho(n.text));case 90:case 100:case 39:case 86:return Cu(n.parent);case 205:return hy(n)?vp(n.argument.literal,s):void 0;case 95:return fc(n.parent)?E.checkDefined(n.parent.symbol):void 0;case 102:case 105:return s8(n.parent)?W8e(n.parent).symbol:void 0;case 236:return Qi(n).symbol;case 295:if(v6(n)&&fx(n)){const P=dz(n.parent);return P===it?void 0:P}default:return}}}function Vst(n){if(we(n)&&kr(n.parent)&&n.parent.name===n){const s=E0(n),c=a_(n.parent.expression),_=c.flags&1048576?c.types:[c];return Na(_,d=>zr(x_(d),h=>kk(s,h.keyType)))}}function Ust(n){if(n&&n.kind===304)return Qo(n.name,2208703)}function Wst(n){return p_(n)?n.parent.parent.moduleSpecifier?gg(n.parent.parent,n):Qo(n.propertyName||n.name,2998271):Qo(n,2998271)}function px(n){if(Bi(n)&&!zc(n)||n.flags&67108864)return $e;const s=Iq(n),c=s&&i_(vr(s.class));if(Km(n)){const _=ai(n);return c?Uu(_,c.thisType):_}if(Gg(n))return x7e(n);if(c&&!s.isImplements){const _=wl(To(c));return _?Uu(_,c.thisType):$e}if(V6(n)){const _=vr(n);return mo(_)}if(Lst(n)){const _=vp(n);return _?mo(_):$e}if(Oa(n))return em(n,!0,0)||$e;if(l_(n)){const _=vr(n);return _?$n(_):$e}if(wme(n)){const _=vp(n);return _?$n(_):$e}if(Ps(n))return em(n.parent,!0,0)||$e;if(Vz(n)){const _=vp(n);if(_){const d=mo(_);return q(d)?$n(_):d}}return s8(n.parent)&&n.parent.keywordToken===n.kind?W8e(n.parent):$e}function Uz(n){if(E.assert(n.kind===210||n.kind===209),n.parent.kind===250){const d=tI(n.parent);return Sb(n,d||$e)}if(n.parent.kind===226){const d=a_(n.parent.right);return Sb(n,d||$e)}if(n.parent.kind===303){const d=Bs(n.parent.parent,ha),h=Uz(d)||$e,T=u6(d.properties,n.parent);return aEe(d,h,T)}const s=Bs(n.parent,u_),c=Uz(s)||$e,_=I0(65,c,Nt,n.parent)||$e;return oEe(s,c,s.elements.indexOf(n),_)}function qst(n){const s=Uz(Bs(n.parent.parent,YC));return s&&Ws(s,n.escapedText)}function x7e(n){return k3(n)&&(n=n.parent),j_(a_(n))}function S7e(n){const s=Cu(n.parent);return Os(n)?$n(s):mo(s)}function k7e(n){const s=n.name;switch(s.kind){case 80:return K_(lr(s));case 9:case 11:return K_(s.text);case 167:const c=Bm(s);return kl(c,12288)?c:F;default:return E.fail("Unsupported property name.")}}function Rae(n){n=Z_(n);const s=Vs(Va(n)),c=As(n,0).length?Tu:As(n,1).length?he:void 0;return c&&pn(Va(c),_=>{s.has(_.escapedName)||s.set(_.escapedName,_)}),Dh(s)}function Wz(n){return As(n,0).length!==0||As(n,1).length!==0}function C7e(n){const s=Hst(n);return s?Na(s,C7e):[n]}function Hst(n){if(rc(n)&6)return Hi(Mi(n).containingType.types,s=>Ws(s,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:s,rightSpread:c,syntheticOrigin:_}}=n;return s?[s,c]:_?[_]:Cb(Gst(n))}}function Gst(n){let s,c=n;for(;c=Mi(c).target;)s=c;return s}function $st(n){if(Jo(n))return!1;const s=ts(n,we);if(!s)return!1;const c=s.parent;return c?!((kr(c)||Ec(c))&&c.name===s)&&E7(s)===tt:!1}function Xst(n){let s=r_(n.parent,n);if(!s||n3(s))return!0;const c=ov(s);s=lf(s);const _=Mi(s);return _.exportsSomeValue===void 0&&(_.exportsSomeValue=c?!!(s.flags&111551):Au(Zd(s),d)),_.exportsSomeValue;function d(h){return h=Mc(h),h&&!!(ku(h)&111551)}}function Qst(n){return ww(n.parent)&&n===n.parent.name}function Yst(n,s){var c;const _=ts(n,we);if(_){let d=E7(_,Qst(_));if(d){if(d.flags&1048576){const T=Ma(d.exportSymbol);if(!s&&T.flags&944&&!(T.flags&3))return;d=T}const h=X_(d);if(h){if(h.flags&512&&((c=h.valueDeclaration)==null?void 0:c.kind)===312){const T=h.valueDeclaration,P=Rn(_);return T!==P?void 0:T}return In(_.parent,T=>ww(T)&&vr(T)===h)}}}}function Zst(n){const s=dfe(n);if(s)return s;const c=ts(n,we);if(c){const _=uat(c);if(mp(_,111551)&&!gp(_,111551))return dp(_)}}function Kst(n){return n.valueDeclaration&&Oa(n.valueDeclaration)&&Kk(n.valueDeclaration).parent.kind===299}function E7e(n){if(n.flags&418&&n.valueDeclaration&&!Bi(n.valueDeclaration)){const s=Mi(n);if(s.isDeclarationWithCollidingName===void 0){const c=mm(n.valueDeclaration);if(xle(c)||Kst(n)){const _=jr(n.valueDeclaration);if(Lc(c.parent,n.escapedName,111551,void 0,void 0,!1))s.isDeclarationWithCollidingName=!0;else if(_.flags&16384){const d=_.flags&32768,h=n1(c,!1),T=c.kind===241&&n1(c.parent,!1);s.isDeclarationWithCollidingName=!Ile(c)&&(!d||!h&&!T)}else s.isDeclarationWithCollidingName=!1}}return s.isDeclarationWithCollidingName}return!1}function eat(n){if(!Jo(n)){const s=ts(n,we);if(s){const c=E7(s);if(c&&E7e(c))return c.valueDeclaration}}}function tat(n){const s=ts(n,l_);if(s){const c=vr(s);if(c)return E7e(c)}return!1}function w7e(n){switch(E.assert(ot),n.kind){case 271:return qz(vr(n));case 273:case 274:case 276:case 281:const s=vr(n);return!!s&&qz(s,!0);case 278:const c=n.exportClause;return!!c&&(lg(c)||dt(c.elements,w7e));case 277:return n.expression&&n.expression.kind===80?qz(vr(n)):!0}return!1}function nat(n){const s=ts(n,Hl);return s===void 0||s.parent.kind!==312||!b6(s)?!1:qz(vr(s))&&s.moduleReference&&!_c(s.moduleReference)}function qz(n,s){if(!n)return!1;const c=Q_(hl(n));return c===it?!0:!!(ku(n,s,!0)&111551)&&(Xb(j)||!k7(c))}function k7(n){return lae(n)||!!n.constEnumOnlyModule}function Hz(n,s){if(E.assert(ot),tv(n)){const c=vr(n),_=c&&Mi(c);if(_!=null&&_.referenced)return!0;const d=Mi(c).aliasTarget;if(d&&I_(n)&1&&ku(d)&111551&&(Xb(j)||!k7(d)))return!0}return s?!!bs(n,c=>Hz(c,s)):!1}function D7e(n){if(Qf(n.body)){if(r1(n)||G0(n))return!1;const s=vr(n),c=yv(s);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function A7e(n){return!!H&&!JE(n)&&!ad(n)&&!!n.initializer&&!Lr(n,16476)}function rat(n){return H&&JE(n)&&!n.initializer&&Lr(n,16476)}function iat(n){const s=ts(n,tl);if(!s)return!1;const c=vr(s);return!c||!(c.flags&16)?!1:!!Au(zu(c),_=>_.flags&111551&&_.valueDeclaration&&kr(_.valueDeclaration))}function sat(n){const s=ts(n,tl);if(!s)return Ve;const c=vr(s);return c&&Va($n(c))||Ve}function Jk(n){var s;const c=n.id||0;return c<0||c>=F2.length?0:((s=F2[c])==null?void 0:s.flags)||0}function C7(n){return c7e(n.parent),jr(n).enumMemberValue}function N7e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function Bae(n){if(n.kind===306)return C7(n);const s=jr(n).resolvedSymbol;if(s&&s.flags&8){const c=s.valueDeclaration;if(e2(c.parent))return C7(c)}}function jae(n){return!!(n.flags&524288)&&As(n,0).length>0}function aat(n,s){var c;const _=ts(n,Xu);if(!_||s&&(s=ts(s),!s))return 0;let d=!1;if(hu(_)){const $=Qo(Ku(_),111551,!0,!0,s);d=!!((c=$==null?void 0:$.declarations)!=null&&c.every(Xv))}const h=Qo(_,111551,!0,!0,s),T=h&&h.flags&2097152?hl(h):h;d||(d=!!(h&&gp(h,111551)));const P=Qo(_,788968,!0,!1,s);if(T&&T===P){const $=tie(!1);if($&&T===$)return 9;const re=$n(T);if(re&&gn(re))return d?10:1}if(!P)return d?11:0;const O=mo(P);return q(O)?d?11:0:O.flags&3?11:kl(O,245760)?2:kl(O,528)?6:kl(O,296)?3:kl(O,2112)?4:kl(O,402653316)?5:la(O)?7:kl(O,12288)?8:jae(O)?10:wf(O)?7:11}function oat(n,s,c,_,d){const h=ts(n,zle);if(!h)return I.createToken(133);const T=vr(h);let P=T&&!(T.flags&133120)?Ev($n(T)):$e;return P.flags&8192&&P.symbol===T&&(c|=1048576),d&&(P=N0(P)),ct.typeToTypeNode(P,s,c|1024,_)}function cat(n,s,c,_){const d=ts(n,Cs);if(!d)return I.createToken(133);const h=vd(d);return ct.typeToTypeNode(Ua(h),s,c|1024,_)}function lat(n,s,c,_){const d=ts(n,nt);if(!d)return I.createToken(133);const h=Wu(x7e(d));return ct.typeToTypeNode(h,s,c|1024,_)}function _at(n){return pe.has(Ho(n))}function E7(n,s){const c=jr(n).resolvedSymbol;if(c)return c;let _=n;if(s){const d=n.parent;l_(d)&&n===d.name&&(_=nx(d))}return Lc(_,n.escapedText,3257279,void 0,void 0,!0)}function uat(n){const s=jr(n).resolvedSymbol;return s&&s!==it?s:Lc(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function fat(n){if(!Jo(n)){const s=ts(n,we);if(s){const c=E7(s);if(c)return Q_(c).valueDeclaration}}}function pat(n){if(!Jo(n)){const s=ts(n,we);if(s){const c=E7(s);if(c)return zr(Q_(c).declarations,_=>{switch(_.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function dat(n){return k9(n)||Ri(n)&&Yz(n)?xv($n(vr(n))):!1}function mat(n,s,c){const _=n.flags&1056?ct.symbolToExpression(n.symbol,111551,s,void 0,c):n===It?I.createTrue():n===We&&I.createFalse();if(_)return _;const d=n.value;return typeof d=="object"?I.createBigIntLiteral(d):typeof d=="string"?I.createStringLiteral(d):d<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(Math.abs(d))):I.createNumericLiteral(d)}function gat(n,s){const c=$n(vr(n));return mat(c,n,s)}function P7e(n){return n?(P1(n),Rn(n).localJsxFactory||dg):dg}function Jae(n){if(n){const s=Rn(n);if(s){if(s.localJsxFragmentFactory)return s.localJsxFragmentFactory;const c=s.pragmas.get("jsxfrag"),_=Ds(c)?c[0]:c;if(_)return s.localJsxFragmentFactory=bS(_.arguments.factory,ee),s.localJsxFragmentFactory}}if(j.jsxFragmentFactory)return bS(j.jsxFragmentFactory,ee)}function hat(){const n=e.getResolvedTypeReferenceDirectives();let s;return n&&(s=new Map,n.forEach(({resolvedTypeReferenceDirective:O},$,re)=>{if(!(O!=null&&O.resolvedFileName))return;const ce=e.getSourceFile(O.resolvedFileName);ce&&P(ce,$,re)})),{getReferencedExportContainer:Yst,getReferencedImportDeclaration:Zst,getReferencedDeclarationWithCollidingName:eat,isDeclarationWithCollidingName:tat,isValueAliasDeclaration:O=>{const $=ts(O);return $&&ot?w7e($):!0},hasGlobalName:_at,isReferencedAliasDeclaration:(O,$)=>{const re=ts(O);return re&&ot?Hz(re,$):!0},getNodeCheckFlags:O=>{const $=ts(O);return $?Jk($):0},isTopLevelValueImportEqualsWithEntityName:nat,isDeclarationVisible:hd,isImplementationOfOverload:D7e,isRequiredInitializedParameter:A7e,isOptionalUninitializedParameterProperty:rat,isExpandoFunctionDeclaration:iat,getPropertiesOfContainerFunction:sat,createTypeOfDeclaration:oat,createReturnTypeOfSignatureDeclaration:cat,createTypeOfExpression:lat,createLiteralConstValue:gat,isSymbolAccessible:et,isEntityNameVisible:zs,getConstantValue:O=>{const $=ts(O,N7e);return $?Bae($):void 0},collectLinkedAliases:$4,getReferencedValueDeclaration:fat,getReferencedValueDeclarations:pat,getTypeReferenceSerializationKind:aat,isOptionalParameter:JE,moduleExportsSomeValue:Xst,isArgumentsLocalBinding:$st,getExternalModuleFileFromDeclaration:O=>{const $=ts(O,Fle);return $&&zae($)},getTypeReferenceDirectivesForEntityName:d,getTypeReferenceDirectivesForSymbol:h,isLiteralConstDeclaration:dat,isLateBound:O=>{const $=ts(O,l_),re=$&&vr($);return!!(re&&rc(re)&4096)},getJsxFactoryEntity:P7e,getJsxFragmentFactoryEntity:Jae,getAllAccessorDeclarations(O){O=ts(O,KI);const $=O.kind===178?177:178,re=lc(vr(O),$),ce=re&&re.posy0(O,O,void 0),isBindingCapturedByNode:(O,$)=>{const re=ts(O),ce=ts($);return!!re&&!!ce&&(Ri(ce)||Oa(ce))&&UKe(re,ce)},getDeclarationStatementsForSourceFile:(O,$,re,ce)=>{const Se=ts(O);E.assert(Se&&Se.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Te=vr(O);return Te?Te.exports?ct.symbolTableToDeclarationStatements(Te.exports,O,$,re,ce):[]:O.locals?ct.symbolTableToDeclarationStatements(O.locals,O,$,re,ce):[]},isImportRequiredByAugmentation:c};function c(O){const $=Rn(O);if(!$.symbol)return!1;const re=zae(O);if(!re||re===$)return!1;const ce=Zd($.symbol);for(const Se of ra(ce.values()))if(Se.mergeId){const Te=Ma(Se);if(Te.declarations){for(const Ze of Te.declarations)if(Rn(Ze)===re)return!0}}return!1}function _(O){return O.parent&&O.parent.kind===233&&O.parent.parent&&O.parent.parent.kind===298}function d(O){if(!s)return;let $;O.parent.kind===167?$=1160127:($=790504,(O.kind===80&&qb(O)||O.kind===211&&!_(O))&&($=1160127));const re=Qo(O,$,!0);return re&&re!==it?h(re,$):void 0}function h(O,$){if(!s||!T(O))return;let re;for(const ce of O.declarations)if(ce.symbol&&ce.symbol.flags&$){const Se=Rn(ce),Te=s.get(Se.path);if(Te)(re||(re=[])).push(Te);else return}return re}function T(O){if(!O.declarations)return!1;let $=O;for(;;){const re=X_($);if(re)$=re;else break}if($.valueDeclaration&&$.valueDeclaration.kind===312&&$.flags&512)return!1;for(const re of O.declarations){const ce=Rn(re);if(s.has(ce.path))return!0}return!1}function P(O,$,re){if(!s.has(O.path)){s.set(O.path,[$,re]);for(const{fileName:ce,resolutionMode:Se}of O.referencedFiles){const Te=VL(ce,O.fileName),Ze=e.getSourceFile(Te);Ze&&P(Ze,$,Se||O.impliedNodeFormat)}}}}function zae(n){const s=n.kind===267?Hr(n.name,fa):x6(n),c=y0(s,s,void 0);if(!!c)return lc(c,312)}function yat(){for(const s of e.getSourceFiles())sme(s,j);ac=new Map;let n;for(const s of e.getSourceFiles())if(!s.redirectInfo){if(!Yu(s)){const c=s.locals.get("globalThis");if(c!=null&&c.declarations)for(const _ of c.declarations)xa.add(br(_,p.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));xf(pe,s.locals)}s.jsGlobalAugmentations&&xf(pe,s.jsGlobalAugmentations),s.patternAmbientModules&&s.patternAmbientModules.length&&(nc=es(nc,s.patternAmbientModules)),s.moduleAugmentations.length&&(n||(n=[])).push(s.moduleAugmentations),s.symbol&&s.symbol.globalExports&&s.symbol.globalExports.forEach((_,d)=>{pe.has(d)||pe.set(d,_)})}if(n)for(const s of n)for(const c of s)!Id(c.parent)||I1(c);if(GT(pe,Xy,p.Declaration_name_conflicts_with_built_in_global_identifier_0),Mi(Pe).type=hi,Mi(tt).type=Rc("IArguments",0,!0),Mi(it).type=$e,Mi(Ge).type=Jf(16,Ge),vt=Rc("Array",1,!0),Uc=Rc("Object",0,!0),Vo=Rc("Function",0,!0),Tu=ne&&Rc("CallableFunction",0,!0)||Vo,he=ne&&Rc("NewableFunction",0,!0)||Vo,ji=Rc("String",0,!0),ws=Rc("Number",0,!0),Wa=Rc("Boolean",0,!0),oc=Rc("RegExp",0,!0),qe=$l(ke),gt=$l(ft),gt===Li&&(gt=gc(void 0,U,Ve,Ve,Ve)),vn=F4e("ReadonlyArray",1)||vt,Et=vn?UE(vn,[ke]):qe,se=F4e("ThisType",1),n)for(const s of n)for(const c of s)Id(c.parent)||I1(c);ac.forEach(({firstFile:s,secondFile:c,conflictingSymbols:_})=>{if(_.size<8)_.forEach(({isBlockScoped:d,firstFileLocations:h,secondFileLocations:T},P)=>{const O=d?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0;for(const $ of h)pd($,O,P,T);for(const $ of T)pd($,O,P,h)});else{const d=ra(_.keys()).join(", ");xa.add(ua(br(s,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,d),br(c,p.Conflicts_are_in_this_file))),xa.add(ua(br(c,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,d),br(s,p.Conflicts_are_in_this_file)))}}),ac=void 0}function Kc(n,s){if((o&s)!==s&&j.importHelpers){const c=Rn(n);if(Lx(c,j)&&!(n.flags&33554432)){const _=bat(c,n);if(_!==it){const d=s&~o;for(let h=1;h<=33554432;h<<=1)if(d&h)for(const T of vat(h)){if(a.has(T))continue;a.add(T);const P=Mc(G_(Zd(_),Ho(T),111551));P?h&524288?dt(yv(P),O=>qu(O)>3)||Fe(n,p.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,u1,T,4):h&1048576?dt(yv(P),O=>qu(O)>4)||Fe(n,p.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,u1,T,5):h&1024&&(dt(yv(P),O=>qu(O)>2)||Fe(n,p.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,u1,T,3)):Fe(n,p.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,u1,T)}}o|=s}}}function vat(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return Z?["__decorate"]:["__esDecorate","__runInitializers"];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"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return E.fail("Unrecognized helper")}}function bat(n,s){return l||(l=Eh(n,u1,p.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,s)||it),l}function zm(n){const s=Sat(n)||Tat(n);if(s!==void 0)return s;if(rs(n)&&o2(n))return Cl(n,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const c=ic(n)?n.declarationList.flags&7:0;let _,d,h,T,P,O=0,$=!1,re=!1;for(const ce of n.modifiers)if(Wl(ce)){if(M9(Z,n,n.parent,n.parent.parent)){if(Z&&(n.kind===177||n.kind===178)){const Se=Hb(n.parent.members,n);if(Ff(Se.firstAccessor)&&n===Se.secondAccessor)return Cl(n,p.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Qf(n.body)?Cl(n,p.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Cl(n,p.Decorators_are_not_valid_here);if(O&-132098)return Qt(ce,p.Decorators_are_not_valid_here);if(re&&O&126975){E.assertIsDefined(P);const Se=Rn(ce);return Ov(Se)?!1:(ua(Fe(ce,p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),br(P,p.Decorator_used_before_export_here)),!0)}O|=131072,O&126975?O&1&&($=!0):re=!0,P!=null||(P=ce)}else{if(ce.kind!==148){if(n.kind===171||n.kind===173)return Qt(ce,p._0_modifier_cannot_appear_on_a_type_member,ia(ce.kind));if(n.kind===181&&(ce.kind!==126||!ni(n.parent)))return Qt(ce,p._0_modifier_cannot_appear_on_an_index_signature,ia(ce.kind))}if(ce.kind!==103&&ce.kind!==147&&ce.kind!==87&&n.kind===168)return Qt(ce,p._0_modifier_cannot_appear_on_a_type_parameter,ia(ce.kind));switch(ce.kind){case 87:if(n.kind!==266&&n.kind!==168)return Qt(n,p.A_class_member_cannot_have_the_0_keyword,ia(87));const Se=n.parent;if(n.kind===168&&!(Eo(Se)||ni(Se)||og(Se)||n8(Se)||X6(Se)||iA(Se)||ag(Se)))return Qt(ce,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ia(ce.kind));break;case 164:if(O&16384)return Qt(ce,p._0_modifier_already_seen,"override");if(O&2)return Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(O&64)return Qt(ce,p._0_modifier_must_precede_1_modifier,"override","readonly");if(O&128)return Qt(ce,p._0_modifier_must_precede_1_modifier,"override","accessor");if(O&512)return Qt(ce,p._0_modifier_must_precede_1_modifier,"override","async");O|=16384,T=ce;break;case 125:case 124:case 123:const Te=U1($x(ce.kind));if(O&28)return Qt(ce,p.Accessibility_modifier_already_seen);if(O&16384)return Qt(ce,p._0_modifier_must_precede_1_modifier,Te,"override");if(O&32)return Qt(ce,p._0_modifier_must_precede_1_modifier,Te,"static");if(O&128)return Qt(ce,p._0_modifier_must_precede_1_modifier,Te,"accessor");if(O&64)return Qt(ce,p._0_modifier_must_precede_1_modifier,Te,"readonly");if(O&512)return Qt(ce,p._0_modifier_must_precede_1_modifier,Te,"async");if(n.parent.kind===268||n.parent.kind===312)return Qt(ce,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,Te);if(O&256)return ce.kind===123?Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,Te,"abstract"):Qt(ce,p._0_modifier_must_precede_1_modifier,Te,"abstract");if(N_(n))return Qt(ce,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);O|=$x(ce.kind);break;case 126:if(O&32)return Qt(ce,p._0_modifier_already_seen,"static");if(O&64)return Qt(ce,p._0_modifier_must_precede_1_modifier,"static","readonly");if(O&512)return Qt(ce,p._0_modifier_must_precede_1_modifier,"static","async");if(O&128)return Qt(ce,p._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return Qt(ce,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return Qt(ce,p._0_modifier_cannot_appear_on_a_parameter,"static");if(O&256)return Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(O&16384)return Qt(ce,p._0_modifier_must_precede_1_modifier,"static","override");O|=32,_=ce;break;case 129:if(O&128)return Qt(ce,p._0_modifier_already_seen,"accessor");if(O&64)return Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(O&2)return Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return Qt(ce,p.accessor_modifier_can_only_appear_on_a_property_declaration);O|=128;break;case 148:if(O&64)return Qt(ce,p._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return Qt(ce,p.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(O&128)return Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");O|=64;break;case 95:if(j.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(R===1||Rn(n).impliedNodeFormat===1))return Qt(ce,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(O&1)return Qt(ce,p._0_modifier_already_seen,"export");if(O&2)return Qt(ce,p._0_modifier_must_precede_1_modifier,"export","declare");if(O&256)return Qt(ce,p._0_modifier_must_precede_1_modifier,"export","abstract");if(O&512)return Qt(ce,p._0_modifier_must_precede_1_modifier,"export","async");if(ni(n.parent))return Qt(ce,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return Qt(ce,p._0_modifier_cannot_appear_on_a_parameter,"export");if(c===4)return Qt(ce,p._0_modifier_cannot_appear_on_a_using_declaration,"export");if(c===6)return Qt(ce,p._0_modifier_cannot_appear_on_an_await_using_declaration,"export");O|=1;break;case 90:const Ze=n.parent.kind===312?n.parent:n.parent.parent;if(Ze.kind===267&&!__(Ze))return Qt(ce,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(c===4)return Qt(ce,p._0_modifier_cannot_appear_on_a_using_declaration,"default");if(c===6)return Qt(ce,p._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(O&1){if($)return Qt(P,p.Decorators_are_not_valid_here)}else return Qt(ce,p._0_modifier_must_precede_1_modifier,"export","default");O|=1024;break;case 138:if(O&2)return Qt(ce,p._0_modifier_already_seen,"declare");if(O&512)return Qt(ce,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(O&16384)return Qt(ce,p._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ni(n.parent)&&!Fs(n))return Qt(ce,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return Qt(ce,p._0_modifier_cannot_appear_on_a_parameter,"declare");if(c===4)return Qt(ce,p._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(c===6)return Qt(ce,p._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return Qt(ce,p.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(N_(n))return Qt(ce,p._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(O&128)return Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");O|=2,d=ce;break;case 128:if(O&256)return Qt(ce,p._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return Qt(ce,p.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Lr(n.parent,256))){const _n=n.kind===172?p.Abstract_properties_can_only_appear_within_an_abstract_class:p.Abstract_methods_can_only_appear_within_an_abstract_class;return Qt(ce,_n)}if(O&32)return Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(O&8)return Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(O&512&&h)return Qt(h,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(O&16384)return Qt(ce,p._0_modifier_must_precede_1_modifier,"abstract","override");if(O&128)return Qt(ce,p._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(A_(n)&&n.name.kind===81)return Qt(ce,p._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");O|=256;break;case 134:if(O&512)return Qt(ce,p._0_modifier_already_seen,"async");if(O&2||n.parent.flags&33554432)return Qt(ce,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return Qt(ce,p._0_modifier_cannot_appear_on_a_parameter,"async");if(O&256)return Qt(ce,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");O|=512,h=ce;break;case 103:case 147:const St=ce.kind===103?32768:65536,Zt=ce.kind===103?"in":"out";if(n.kind!==168||!(f_(n.parent)||ni(n.parent)||Dp(n.parent)))return Qt(ce,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Zt);if(O&St)return Qt(ce,p._0_modifier_already_seen,Zt);if(St&32768&&O&65536)return Qt(ce,p._0_modifier_must_precede_1_modifier,"in","out");O|=St;break}}return n.kind===176?O&32?Qt(_,p._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):O&16384?Qt(T,p._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):O&512?Qt(h,p._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&O&2?Qt(d,p.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&O&16476&&Ps(n.name)?Qt(n,p.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&O&16476&&n.dotDotDotToken?Qt(n,p.A_parameter_property_cannot_be_declared_using_a_rest_parameter):O&512?Cat(n,h):!1}function Tat(n){if(!n.modifiers)return!1;const s=xat(n);return s&&Cl(s,p.Modifiers_cannot_appear_here)}function Gz(n,s){const c=Or(n.modifiers,Zs);return c&&c.kind!==s?c:void 0}function xat(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Or(n.modifiers,Zs);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return Gz(n,134);case 263:case 185:return Gz(n,128);case 231:case 264:case 265:return Or(n.modifiers,Zs);case 243:return n.declarationList.flags&4?Gz(n,135):Or(n.modifiers,Zs);case 266:return Gz(n,87);default:E.assertNever(n)}}}function Sat(n){const s=kat(n);return s&&Cl(s,p.Decorators_are_not_valid_here)}function kat(n){return xG(n)?Or(n.modifiers,Wl):void 0}function Cat(n,s){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return Qt(s,p._0_modifier_cannot_be_used_here,"async")}function dx(n,s=p.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?Fv(n[0],n.end-1,1,s):!1}function I7e(n,s){if(n&&n.length===0){const c=n.pos-1,_=_a(s.text,n.end)+1;return Fv(s,c,_-c,p.Type_parameter_list_cannot_be_empty)}return!1}function Eat(n){let s=!1;const c=n.length;for(let _=0;_!!s.initializer||Ps(s.name)||Zm(s))}function Dat(n){if(ee>=3){const s=n.body&&vs(n.body)&&yG(n.body.statements);if(s){const c=wat(n.parameters);if(Nn(c)){pn(c,d=>{ua(Fe(d,p.This_parameter_is_not_allowed_with_use_strict_directive),br(s,p.use_strict_directive_used_here))});const _=c.map((d,h)=>h===0?br(d,p.Non_simple_parameter_declared_here):br(d,p.and_here));return ua(Fe(s,p.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),..._),!0}}}return!1}function $z(n){const s=Rn(n);return zm(n)||I7e(n.typeParameters,s)||Eat(n.parameters)||Nat(n,s)||Eo(n)&&Dat(n)}function Aat(n){const s=Rn(n);return Lat(n)||I7e(n.typeParameters,s)}function Nat(n,s){if(!Po(n))return!1;n.typeParameters&&!(Nn(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&s&&Gc(s.fileName,[".mts",".cts"])&&Qt(n.typeParameters[0],p.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=n,_=yo(s,c.pos).line,d=yo(s,c.end).line;return _!==d&&Qt(c,p.Line_terminator_not_permitted_before_arrow)}function Pat(n){const s=n.parameters[0];if(n.parameters.length!==1)return Qt(s?s.name:n,p.An_index_signature_must_have_exactly_one_parameter);if(dx(n.parameters,p.An_index_signature_cannot_have_a_trailing_comma),s.dotDotDotToken)return Qt(s.dotDotDotToken,p.An_index_signature_cannot_have_a_rest_parameter);if(rO(s))return Qt(s.name,p.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(s.questionToken)return Qt(s.questionToken,p.An_index_signature_parameter_cannot_have_a_question_mark);if(s.initializer)return Qt(s.name,p.An_index_signature_parameter_cannot_have_an_initializer);if(!s.type)return Qt(s.name,p.An_index_signature_parameter_must_have_a_type_annotation);const c=ai(s.type);return Mg(c,_=>!!(_.flags&8576))||iC(c)?Qt(s.name,p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Df(c,mJ)?n.type?!1:Qt(n,p.An_index_signature_must_have_a_type_annotation):Qt(s.name,p.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Iat(n){return zm(n)||Pat(n)}function Oat(n,s){if(s&&s.length===0){const c=Rn(n),_=s.pos-1,d=_a(c.text,s.end)+1;return Fv(c,_,d-_,p.Type_argument_list_cannot_be_empty)}return!1}function aI(n,s){return dx(s)||Oat(n,s)}function Fat(n){return n.questionDotToken||n.flags&64?Qt(n.template,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function O7e(n){const s=n.types;if(dx(s))return!0;if(s&&s.length===0){const c=ia(n.token);return Fv(n,s.pos,0,p._0_list_cannot_be_empty,c)}return dt(s,F7e)}function F7e(n){return rh(n)&&t8(n.expression)&&n.typeArguments?Qt(n,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):aI(n,n.typeArguments)}function Lat(n){let s=!1,c=!1;if(!zm(n)&&n.heritageClauses)for(const _ of n.heritageClauses){if(_.token===96){if(s)return Cl(_,p.extends_clause_already_seen);if(c)return Cl(_,p.extends_clause_must_precede_implements_clause);if(_.types.length>1)return Cl(_.types[1],p.Classes_can_only_extend_a_single_class);s=!0}else{if(E.assert(_.token===119),c)return Cl(_,p.implements_clause_already_seen);c=!0}O7e(_)}}function Mat(n){let s=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(s)return Cl(c,p.extends_clause_already_seen);s=!0}else return E.assert(c.token===119),Cl(c,p.Interface_declaration_cannot_have_implements_clause);O7e(c)}return!1}function Xz(n){if(n.kind!==167)return!1;const s=n;return s.expression.kind===226&&s.expression.operatorToken.kind===28?Qt(s.expression,p.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Vae(n){if(n.asteriskToken){if(E.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return Qt(n.asteriskToken,p.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Qt(n.asteriskToken,p.An_overload_signature_cannot_be_declared_as_a_generator)}}function Uae(n,s){return!!n&&Qt(n,s)}function L7e(n,s){return!!n&&Qt(n,s)}function Rat(n,s){const c=new Map;for(const _ of n.properties){if(_.kind===305){if(s){const T=lo(_.expression);if(u_(T)||ha(T))return Qt(_.expression,p.A_rest_element_cannot_contain_a_binding_pattern)}continue}const d=_.name;if(d.kind===167&&Xz(d),_.kind===304&&!s&&_.objectAssignmentInitializer&&Qt(_.equalsToken,p.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),d.kind===81&&Qt(d,p.Private_identifiers_are_not_allowed_outside_class_bodies),Np(_)&&_.modifiers)for(const T of _.modifiers)Zs(T)&&(T.kind!==134||_.kind!==174)&&Qt(T,p._0_modifier_cannot_be_used_here,el(T));else if(epe(_)&&_.modifiers)for(const T of _.modifiers)Zs(T)&&Qt(T,p._0_modifier_cannot_be_used_here,el(T));let h;switch(_.kind){case 304:case 303:L7e(_.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context),Uae(_.questionToken,p.An_object_member_cannot_be_declared_optional),d.kind===9&&Hae(d),h=4;break;case 174:h=8;break;case 177:h=1;break;case 178:h=2;break;default:E.assertNever(_,"Unexpected syntax kind:"+_.kind)}if(!s){const T=dot(d);if(T===void 0)continue;const P=c.get(T);if(!P)c.set(T,h);else if(h&8&&P&8)Qt(d,p.Duplicate_identifier_0,el(d));else if(h&4&&P&4)Qt(d,p.An_object_literal_cannot_have_multiple_properties_with_the_same_name,el(d));else if(h&3&&P&3)if(P!==3&&h!==P)c.set(T,h|P);else return Qt(d,p.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Qt(d,p.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Bat(n){jat(n.tagName),aI(n,n.typeArguments);const s=new Map;for(const c of n.attributes.properties){if(c.kind===293)continue;const{name:_,initializer:d}=c,h=q3(_);if(!s.get(h))s.set(h,!0);else return Qt(_,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(d&&d.kind===294&&!d.expression)return Qt(d,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function jat(n){if(kr(n)&&sd(n.expression))return Qt(n.expression,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(sd(n)&&hO(j)&&!P6(n.namespace.escapedText))return Qt(n,p.React_components_cannot_include_JSX_namespace_names)}function Jat(n){if(n.expression&&p8(n.expression))return Qt(n.expression,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function M7e(n){if(Rg(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){const s=Rn(n);if(O9(n)){if(!Ov(s))switch(Lx(s,j)||xa.add(br(n.awaitModifier,p.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)),R){case 100:case 199:if(s.impliedNodeFormat===1){xa.add(br(n.awaitModifier,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ee>=4)break;default:xa.add(br(n.awaitModifier,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!Ov(s)){const c=br(n.awaitModifier,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),_=df(n);if(_&&_.kind!==176){E.assert((Il(_)&2)===0,"Enclosing function should never be an async function.");const d=br(_,p.Did_you_mean_to_mark_this_function_as_async);ua(c,d)}return xa.add(c),!0}return!1}if(oA(n)&&!(n.flags&65536)&&we(n.initializer)&&n.initializer.escapedText==="async")return Qt(n.initializer,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){const s=n.initializer;if(!qae(s)){const c=s.declarations;if(!c.length)return!1;if(c.length>1){const d=n.kind===249?p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Cl(s.declarations[1],d)}const _=c[0];if(_.initializer){const d=n.kind===249?p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Qt(_.name,d)}if(_.type){const d=n.kind===249?p.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:p.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Qt(_,d)}}}return!1}function zat(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(ee<1)return Qt(n.name,p.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ee<2&&Ei(n.name))return Qt(n.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Lr(n,256))return Fv(n,n.end-1,1,p._0_expected,"{")}if(n.body){if(Lr(n,256))return Qt(n,p.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return Qt(n.body,p.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Qt(n.name,p.An_accessor_cannot_have_type_parameters);if(!Vat(n))return Qt(n.name,n.kind===177?p.A_get_accessor_cannot_have_parameters:p.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return Qt(n.name,p.A_set_accessor_cannot_have_a_return_type_annotation);const s=E.checkDefined(b3(n),"Return value does not match parameter count assertion.");if(s.dotDotDotToken)return Qt(s.dotDotDotToken,p.A_set_accessor_cannot_have_rest_parameter);if(s.questionToken)return Qt(s.questionToken,p.A_set_accessor_cannot_have_an_optional_parameter);if(s.initializer)return Qt(n.name,p.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Vat(n){return Wae(n)||n.parameters.length===(n.kind===177?0:1)}function Wae(n){if(n.parameters.length===(n.kind===177?1:2))return a2(n)}function Uat(n){if(n.operator===158){if(n.type.kind!==155)return Qt(n.type,p._0_expected,ia(155));let s=aD(n.parent);if(Kn(s)&&sT(s)){const c=Vx(s);c&&(s=C6(c)||c)}switch(s.kind){case 260:const c=s;if(c.name.kind!==80)return Qt(n,p.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!i3(c))return Qt(n,p.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Qt(s.name,p.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Os(s)||!T3(s))return Qt(s.name,p.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Lr(s,64))return Qt(s.name,p.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Qt(n,p.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return Cl(n,p.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ia(155))}function kC(n,s){if(fXe(n))return Qt(n,s)}function R7e(n){if($z(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&wa(n.modifiers).kind===134))return Cl(n,p.Modifiers_cannot_appear_here);if(Uae(n.questionToken,p.An_object_member_cannot_be_declared_optional))return!0;if(L7e(n.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return Fv(n,n.end-1,1,p._0_expected,"{")}if(Vae(n))return!0}if(ni(n.parent)){if(ee<2&&Ei(n.name))return Qt(n.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return kC(n.name,p.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(n.kind===174&&!n.body)return kC(n.name,p.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(n.parent.kind===264)return kC(n.name,p.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return kC(n.name,p.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 Wat(n){let s=n;for(;s;){if(r6(s))return Qt(n,p.Jump_target_cannot_cross_function_boundary);switch(s.kind){case 256:if(n.label&&s.label.escapedText===n.label.escapedText)return n.kind===251&&!n1(s.statement,!0)?Qt(n,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(n1(s,!1)&&!n.label)return!1;break}s=s.parent}if(n.label){const c=n.kind===252?p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Qt(n,c)}else{const c=n.kind===252?p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Qt(n,c)}}function qat(n){if(n.dotDotDotToken){const s=n.parent.elements;if(n!==ka(s))return Qt(n,p.A_rest_element_must_be_last_in_a_destructuring_pattern);if(dx(s,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Qt(n.name,p.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return Fv(n,n.initializer.pos-1,1,p.A_rest_element_cannot_have_an_initializer)}function B7e(n){return Of(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function Hat(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Gat(n){if((kr(n)||No(n)&&B7e(n.argumentExpression))&&Tc(n.expression))return!!(Bc(n).flags&1056)}function j7e(n){const s=n.initializer;if(s){const c=!(B7e(s)||Gat(s)||s.kind===112||s.kind===97||Hat(s));if((k9(n)||Ri(n)&&Yz(n))&&!n.type){if(c)return Qt(s,p.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Qt(s,p.Initializers_are_not_allowed_in_ambient_contexts)}}function $at(n){const s=Lv(n),c=s&7;if(Ps(n.name))switch(c){case 6:return Qt(n,p._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Qt(n,p._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(s&33554432)j7e(n);else if(!n.initializer){if(Ps(n.name)&&!Ps(n.parent))return Qt(n,p.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return Qt(n,p._0_declarations_must_be_initialized,"await using");case 4:return Qt(n,p._0_declarations_must_be_initialized,"using");case 2:return Qt(n,p._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||s&33554432)){const _=n.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Qt(n.exclamationToken,_)}return(R<5||Rn(n).impliedNodeFormat===1)&&R!==4&&!(n.parent.parent.flags&33554432)&&Lr(n.parent.parent,1)&&J7e(n.name),!!c&&z7e(n.name)}function J7e(n){if(n.kind===80){if(lr(n)==="__esModule")return Yat("noEmit",n,p.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const s=n.elements;for(const c of s)if(!dl(c))return J7e(c.name)}return!1}function z7e(n){if(n.kind===80){if(n.escapedText==="let")return Qt(n,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const s=n.elements;for(const c of s)dl(c)||z7e(c.name)}return!1}function qae(n){const s=n.declarations;if(dx(n.declarations))return!0;if(!n.declarations.length)return Fv(n,s.pos,s.end-s.pos,p.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;return(c===4||c===6)&&bF(n.parent)?Qt(n,c===4?p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:p.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?sEe(n):!1}function V7e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return V7e(n.parent)}return!0}function Xat(n){if(!V7e(n.parent)){const s=Lv(n.declarationList)&7;if(s){const c=s===1?"let":s===2?"const":s===4?"using":s===6?"await using":E.fail("Unknown BlockScope flag");return Qt(n,p._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Qat(n){const s=n.name.escapedText;switch(n.keywordToken){case 105:if(s!=="target")return Qt(n.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Oi(n.name.escapedText),ia(n.keywordToken),"target");break;case 102:if(s!=="meta")return Qt(n.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Oi(n.name.escapedText),ia(n.keywordToken),"meta");break}}function Ov(n){return n.parseDiagnostics.length>0}function Cl(n,s,...c){const _=Rn(n);if(!Ov(_)){const d=gm(_,n.pos);return xa.add(vl(_,d.start,d.length,s,...c)),!0}return!1}function Fv(n,s,c,_,...d){const h=Rn(n);return Ov(h)?!1:(xa.add(vl(h,s,c,_,...d)),!0)}function Yat(n,s,c,..._){const d=Rn(s);return Ov(d)?!1:(bh(n,s,c,..._),!0)}function Qt(n,s,...c){const _=Rn(n);return Ov(_)?!1:(xa.add(br(n,s,...c)),!0)}function Zat(n){const s=Kn(n)?nO(n):void 0,c=n.typeParameters||s&&wl(s);if(c){const _=c.pos===c.end?c.pos:_a(Rn(n).text,c.pos);return Fv(n,_,c.end-_,p.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Kat(n){const s=n.type||ep(n);if(s)return Qt(s,p.Type_annotation_cannot_appear_on_a_constructor_declaration)}function eot(n){if(Ga(n.name)&&rr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Qt(n.parent.members[0],p.A_mapped_type_may_not_declare_properties_or_methods);if(ni(n.parent)){if(fa(n.name)&&n.name.text==="constructor")return Qt(n.name,p.Classes_may_not_have_a_field_named_constructor);if(kC(n.name,p.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ee<2&&Ei(n.name))return Qt(n.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ee<2&&nu(n))return Qt(n.name,p.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(nu(n)&&Uae(n.questionToken,p.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(kC(n.name,p.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(E.assertNode(n,mf),n.initializer)return Qt(n.initializer,p.An_interface_property_cannot_have_an_initializer)}else if(ef(n.parent)){if(kC(n.name,p.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(E.assertNode(n,mf),n.initializer)return Qt(n.initializer,p.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&j7e(n),Fs(n)&&n.exclamationToken&&(!ni(n.parent)||!n.type||n.initializer||n.flags&33554432||Os(n)||l2(n))){const s=n.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Qt(n.exclamationToken,s)}}function tot(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Lr(n,1027)?!1:Cl(n,p.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function not(n){for(const s of n.statements)if((l_(s)||s.kind===243)&&tot(s))return!0;return!1}function rot(n){return!!(n.flags&33554432)&¬(n)}function Rg(n){if(n.flags&33554432){if(!jr(n).hasReportedStatementInAmbientContext&&(Cs(n.parent)||t1(n.parent)))return jr(n).hasReportedStatementInAmbientContext=Cl(n,p.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){const c=jr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=Cl(n,p.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Hae(n){const s=el(n).indexOf(".")!==-1,c=n.numericLiteralFlags&16;s||c||+n.text<=9007199254740991||u0(!1,br(n,p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function iot(n){return!!(!(Ay(n.parent)||Ny(n.parent)&&Ay(n.parent.parent))&&ee<7&&Qt(n,p.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function sot(n,s,...c){const _=Rn(n);if(!Ov(_)){const d=gm(_,n.pos);return xa.add(vl(_,Zl(d),0,s,...c)),!0}return!1}function aot(){return Ka||(Ka=[],pe.forEach((n,s)=>{hL.test(s)&&Ka.push(n)})),Ka}function oot(n){var s;return n.isTypeOnly&&n.name&&n.namedBindings?Qt(n,p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((s=n.namedBindings)==null?void 0:s.kind)===275?U7e(n.namedBindings):!1}function U7e(n){return!!pn(n.elements,s=>{if(s.isTypeOnly)return Cl(s,s.kind===276?p.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:p.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function cot(n){if(j.verbatimModuleSyntax&&R===1)return Qt(n,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(R===5)return Qt(n,p.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return Qt(n,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const s=n.arguments;if(R!==99&&R!==199&&R!==100&&(dx(s),s.length>1)){const _=s[1];return Qt(_,p.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(s.length===0||s.length>2)return Qt(n,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const c=Or(s,jd);return c?Qt(c,p.Argument_of_dynamic_import_cannot_be_spread_element):!1}function lot(n,s){const c=Rr(n);if(c&20&&s.flags&1048576)return Or(s.types,_=>{if(_.flags&524288){const d=c&Rr(_);if(d&4)return n.target===_.target;if(d&16)return!!n.aliasSymbol&&n.aliasSymbol===_.aliasSymbol}return!1})}function _ot(n,s){if(Rr(n)&128&&Mg(s,D0))return Or(s.types,c=>!D0(c))}function uot(n,s){let c=0;if(As(n,c).length>0||(c=1,As(n,c).length>0))return Or(s.types,d=>As(d,c).length>0)}function fot(n,s){let c;if(!(n.flags&406978556)){let _=0;for(const d of s.types)if(!(d.flags&406978556)){const h=oa([im(n),im(d)]);if(h.flags&4194304)return d;if($p(h)||h.flags&1048576){const T=h.flags&1048576?M0(h.types,$p):1;T>=_&&(c=d,_=T)}}}return c}function pot(n){if(Yo(n,67108864)){const s=ol(n,c=>!(c.flags&402784252));if(!(s.flags&131072))return s}return n}function W7e(n,s,c){if(s.flags&1048576&&n.flags&2621440){const _=o3e(s,n);if(_)return _;const d=Va(n);if(d){const h=a3e(d,s);if(h){const T=Oie(s,an(h,P=>[()=>$n(P),P.escapedName]),c);if(T!==s)return T}}}}function dot(n){const s=xy(n);return s||(Ga(n)&&Tc(n.expression)?i3e(n.expression):void 0)}function Qz(n){return _r===n||(_r=n,xn=Hv(n)),xn}function Lv(n){return Pt===n||(Pt=n,bt=W0(n)),bt}function Yz(n){const s=Lv(n)&7;return s===2||s===4||s===6}}function HPe(e){return!t1(e)}function Eme(e){return e.kind!==262&&e.kind!==174||!!e.body}function wme(e){switch(e.parent.kind){case 276:case 281:return we(e);default:return Xg(e)}}function Dme(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function d_(e){return!!(e.flags&1)}function P$(e){return!!(e.flags&2)}function GPe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Hs(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Hs(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var hL,XA,I$,O$,F$,L$,yL,vL,bL,TL,Ame,QA,M$,sf,xL,$Pe=Rt({"src/compiler/checker.ts"(){Ls(),A$(),Vv(),hL=/^".+"$/,XA="(anonymous)",I$=1,O$=1,F$=1,L$=1,yL=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(yL||{}),vL=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),bL=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e[e.TypeOnly=128]="TypeOnly",e))(bL||{}),TL=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(TL||{}),Ame=hI(Eme,HPe),QA=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),M$=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(sf||(sf={})),xL=class $7e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var a;r instanceof $7e;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((a=this.inner)!=null&&a.trackSymbol)}trackSymbol(t,r,i){var a;return((a=this.inner)==null?void 0:a.trackSymbol)&&!this.disableTrackSymbol&&this.inner.trackSymbol(t,r,i)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var a;(a=this.inner)!=null&&a.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}reportImportTypeNodeResolutionModeOverride(){var t;(t=this.inner)!=null&&t.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function Ue(e,t,r,i){if(e===void 0)return e;const a=t(e);let o;if(a!==void 0)return Ds(a)?o=(i||KPe)(a):o=a,E.assertNode(o,r),o}function Dn(e,t,r,i,a){if(e===void 0)return e;const o=e.length;(i===void 0||i<0)&&(i=0),(a===void 0||a>o-i)&&(a=o-i);let l,u=-1,f=-1;i>0||ao-i)&&(a=o-i),Nme(e,t,r,i,a)}function Nme(e,t,r,i,a){let o;const l=e.length;(i>0||a=2&&(a=XPe(a,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),a}function XPe(e,t){let r;for(let i=0;i{const l=iu,addSource:ue,setSourceContent:fe,addName:G,addMapping:Xe,appendSourceMap:ve,toJSON:pe,toString:()=>JSON.stringify(pe())};function ue(Ge){o();const tt=Dx(i,Ge,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let mt=g.get(tt);return mt===void 0&&(mt=f.length,f.push(tt),u.push(Ge),g.set(tt,mt)),l(),mt}function fe(Ge,tt){if(o(),tt!==null){for(m||(m=[]);m.lengthtt||oe===tt&&_e>mt)}function Xe(Ge,tt,mt,Je,ot,Jt){E.assert(Ge>=ee,"generatedLine cannot backtrack"),E.assert(tt>=0,"generatedCharacter cannot be negative"),E.assert(mt===void 0||mt>=0,"sourceIndex cannot be negative"),E.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),E.assert(ot===void 0||ot>=0,"sourceCharacter cannot be negative"),o(),(Ne(Ge,tt)||De(mt,Je,ot))&&(rt(),ee=Ge,R=tt,Q=!1,ne=!1,H=!0),mt!==void 0&&Je!==void 0&&ot!==void 0&&(Z=mt,oe=Je,_e=ot,Q=!0,Jt!==void 0&&(X=Jt,ne=!0)),l()}function ve(Ge,tt,mt,Je,ot,Jt){E.assert(Ge>=ee,"generatedLine cannot backtrack"),E.assert(tt>=0,"generatedCharacter cannot be negative"),o();const Pt=[];let bt;const _r=B$(mt.mappings);for(const xn of _r){if(Jt&&(xn.generatedLine>Jt.line||xn.generatedLine===Jt.line&&xn.generatedCharacter>Jt.character))break;if(ot&&(xn.generatedLine=1024&&ct()}function rt(){if(!(!H||!be())){if(o(),N0&&(C+=String.fromCharCode.apply(void 0,k),k.length=0)}function pe(){return rt(),ct(),{version:3,file:t,sourceRoot:r,sources:f,names:y,mappings:C,sourcesContent:m}}function Pe(Ge){Ge<0?Ge=(-Ge<<1)+1:Ge=Ge<<1;do{let tt=Ge&31;Ge=Ge>>5,Ge>0&&(tt=tt|32),xe(rIe(tt))}while(Ge>0)}}function Ome(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Fme(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=kL.exec(r);if(i)return Sx(i[1]);if(!r.match(CL))break}}function tIe(e){return typeof e=="string"||e===null}function Lme(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Ds(e.sources)&&Xi(e.sources,Gs)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Ds(e.sourcesContent)&&Xi(e.sourcesContent,tIe))&&(e.names===void 0||e.names===null||Ds(e.names)&&Xi(e.names,Gs))}function R$(e){try{const t=JSON.parse(e);if(Lme(t))return t}catch{}}function B$(e){let t=!1,r=0,i=0,a=0,o=0,l=0,u=0,f=0,g;return{get pos(){return r},get error(){return g},get state(){return m(!0,!0)},next(){for(;!t&&r=e.length)return x("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const Y=iIe(e.charCodeAt(r));if(Y===-1)return x("Invalid character in VLQ"),-1;M=(Y&32)!==0,U=U|(Y&31)<>1:(U=U>>1,U=-U),U}}function nIe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function Mme(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function rIe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:E.fail(`${e}: not a base64 value`)}function iIe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function Rme(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function Bme(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function sIe(e,t){return E.assert(e.sourceIndex===t.sourceIndex),Co(e.sourcePosition,t.sourcePosition)}function aIe(e,t){return Co(e.generatedPosition,t.generatedPosition)}function oIe(e){return e.sourcePosition}function cIe(e){return e.generatedPosition}function jme(e,t,r){const i=Ti(r),a=t.sourceRoot?ms(t.sourceRoot,i):i,o=ms(t.file,i),l=e.getSourceFileLike(o),u=t.sources.map(V=>ms(V,a)),f=new Map(u.map((V,U)=>[e.getCanonicalFileName(V),U]));let g,m,y;return{getSourcePosition:M,getGeneratedPosition:D};function x(V){const U=l!==void 0?lw(l,V.generatedLine,V.generatedCharacter,!0):-1;let Y,j;if(Mme(V)){const ee=e.getSourceFileLike(u[V.sourceIndex]);Y=t.sources[V.sourceIndex],j=ee!==void 0?lw(ee,V.sourceLine,V.sourceCharacter,!0):-1}return{generatedPosition:U,source:Y,sourceIndex:V.sourceIndex,sourcePosition:j,nameIndex:V.nameIndex}}function k(){if(g===void 0){const V=B$(t.mappings),U=ra(V,x);V.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${V.error}`),g=Ve):g=U}return g}function C(V){if(y===void 0){const U=[];for(const Y of k()){if(!Rme(Y))continue;let j=U[Y.sourceIndex];j||(U[Y.sourceIndex]=j=[]),j.push(Y)}y=U.map(Y=>M7(Y,sIe,Bme))}return y[V]}function N(){if(m===void 0){const V=[];for(const U of k())V.push(U);m=M7(V,aIe,Bme)}return m}function D(V){const U=f.get(e.getCanonicalFileName(V.fileName));if(U===void 0)return V;const Y=C(U);if(!dt(Y))return V;let j=vx(Y,V.pos,oIe,Co);j<0&&(j=~j);const ee=Y[j];return ee===void 0||ee.sourceIndex!==U?V:{fileName:o,pos:ee.generatedPosition}}function M(V){const U=N();if(!dt(U))return V;let Y=vx(U,V.pos,cIe,Co);Y<0&&(Y=~Y);const j=U[Y];return j===void 0||!Rme(j)?V:{fileName:u[j.sourceIndex],pos:j.sourcePosition}}}var j$,kL,CL,EL,lIe=Rt({"src/compiler/sourcemap.ts"(){Ls(),Vv(),j$=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,kL=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,CL=/^\s*(\/\/[@#] .*)?$/,EL={getSourcePosition:Zo,getGeneratedPosition:Zo}}});function t_(e){return e=Ko(e),e?Ra(e):0}function _Ie(e){return!e||!ih(e)?!1:dt(e.elements,Jme)}function Jme(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Pp(e,t){return r;function r(a){return a.kind===312?t(a):i(a)}function i(a){return e.factory.createBundle(an(a.sourceFiles,t),a.prepends)}}function zme(e){return!!S6(e)}function wL(e){if(S6(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!ih(t))return!1;let r=0;for(const i of t.elements)Jme(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&jx(e)}function J$(e){return!wL(e)&&(jx(e)||!!e.importClause&&ih(e.importClause.namedBindings)&&_Ie(e.importClause.namedBindings))}function z$(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),a=[],o=new G$,l=[],u=new Map;let f,g=!1,m,y=!1,x=!1,k=!1;for(const D of t.statements)switch(D.kind){case 272:a.push(D),!x&&wL(D)&&(x=!0),!k&&J$(D)&&(k=!0);break;case 271:D.moduleReference.kind===283&&a.push(D);break;case 278:if(D.moduleSpecifier)if(!D.exportClause)a.push(D),y=!0;else if(a.push(D),op(D.exportClause))N(D);else{const M=D.exportClause.name;u.get(lr(M))||(h4(l,t_(D),M),u.set(lr(M),!0),f=dn(f,M)),x=!0}else N(D);break;case 277:D.isExportEquals&&!m&&(m=D);break;case 243:if(Lr(D,1))for(const M of D.declarationList.declarations)f=Vme(M,u,f,l);break;case 262:if(Lr(D,1))if(Lr(D,1024))g||(h4(l,t_(D),e.factory.getDeclarationName(D)),g=!0);else{const M=D.name;u.get(lr(M))||(h4(l,t_(D),M),u.set(lr(M),!0),f=dn(f,M))}break;case 263:if(Lr(D,1))if(Lr(D,1024))g||(h4(l,t_(D),e.factory.getDeclarationName(D)),g=!0);else{const M=D.name;M&&!u.get(lr(M))&&(h4(l,t_(D),M),u.set(lr(M),!0),f=dn(f,M))}break}const C=vG(e.factory,e.getEmitHelperFactory(),t,i,y,x,k);return C&&a.unshift(C),{externalImports:a,exportSpecifiers:o,exportEquals:m,hasExportStarsToExportValues:y,exportedBindings:l,exportedNames:f,externalHelpersImportDeclaration:C};function N(D){for(const M of Bs(D.exportClause,op).elements)if(!u.get(lr(M.name))){const V=M.propertyName||M.name;D.moduleSpecifier||o.add(V,M);const U=r.getReferencedImportDeclaration(V)||r.getReferencedValueDeclaration(V);U&&h4(l,t_(U),M.name),u.set(lr(M.name),!0),f=dn(f,M.name)}}}function Vme(e,t,r,i){if(Ps(e.name))for(const a of e.name.elements)dl(a)||(r=Vme(a,t,r,i));else if(!Jo(e.name)){const a=lr(e.name);t.get(a)||(t.set(a,!0),r=dn(r,e.name),e0(e.name)&&h4(i,t_(e),e.name))}return r}function h4(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function k2(e){return Qa(e)||e.kind===9||su(e.kind)||we(e)}function Ud(e){return!we(e)&&k2(e)}function C8(e){return e>=65&&e<=79}function E8(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function V$(e){if(!ql(e))return;const t=lo(e.expression);return m6(t)?t:void 0}function Ume(e,t,r){for(let i=t;ifIe(i,t,r))}function uIe(e){return pIe(e)||ec(e)}function DL(e){return zr(e.members,uIe)}function fIe(e,t,r){return Fs(e)&&(!!e.initializer||!t)&&$c(e)===r}function pIe(e){return Fs(e)&&$c(e)}function e5(e){return e.kind===172&&e.initializer!==void 0}function Wme(e){return!Os(e)&&(i6(e)||nu(e))&&Ei(e.name)}function W$(e){let t;if(e){const r=e.parameters,i=r.length>0&&o2(r[0]),a=i?1:0,o=i?r.length-1:r.length;for(let l=0;lH$(r.privateEnv,t))}var CS,G$,gIe=Rt({"src/compiler/transformers/utilities.ts"(){Ls(),CS=class Vk{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(Vk.toKey(t))}get(t){return this._map.get(Vk.toKey(t))}set(t,r){return this._map.set(Vk.toKey(t),r),this}delete(t){var i;var r;return(i=(r=this._map)==null?void 0:r.delete(Vk.toKey(t)))!=null?i:!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(Pb(t)||Jo(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=vA(t),a=Qm(i)&&i!==t?Vk.toKey(i):`(generated@${Ra(i)})`;return Ly(!1,r.prefix,a,r.suffix,Vk.toKey)}else{const i=`(auto@${r.id})`;return Ly(!1,r.prefix,i,r.suffix,Vk.toKey)}}return Ei(t)?lr(t).slice(1):lr(t)}},G$=class extends CS{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(PC(r,t),r.length||this.delete(e))}}}});function pT(e,t,r,i,a,o){let l=e,u;if(Z0(e))for(u=e.right;V_e(e.left)||Oq(e.left);)if(Z0(u))l=e=u,u=e.right;else return E.checkDefined(Ue(u,t,nt));let f;const g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:x=>kIe(r.factory,x),createObjectBindingOrAssignmentPattern:x=>EIe(r.factory,x),createArrayBindingOrAssignmentElement:DIe,visitor:t};if(u&&(u=Ue(u,t,nt),E.assert(u),we(u)&&$$(e,u.escapedText)||X$(e)?u=dT(g,u,!1,l):a?u=dT(g,u,!0,l):Do(e)&&(l=u)),y4(g,e,u,l,Z0(e)),u&&a){if(!dt(f))return u;f.push(u)}return r.factory.inlineExpressions(f)||r.factory.createOmittedExpression();function m(x){f=dn(f,x)}function y(x,k,C,N){E.assertNode(x,o?we:nt);const D=o?o(x,k,C):Ke(r.factory.createAssignment(E.checkDefined(Ue(x,t,nt)),k),C);D.original=N,m(D)}}function $$(e,t){const r=m1(e);return Sw(r)?hIe(r,t):we(r)?r.escapedText===t:!1}function hIe(e,t){const r=l4(e);for(const i of r)if($$(i,t))return!0;return!1}function X$(e){const t=IF(e);if(t&&Ga(t)&&!Nb(t.expression))return!0;const r=m1(e);return!!r&&Sw(r)&&yIe(r)}function yIe(e){return!!pn(l4(e),X$)}function C2(e,t,r,i,a,o=!1,l){let u;const f=[],g=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:y,emitBindingOrAssignment:x,createArrayBindingOrAssignmentPattern:k=>SIe(r.factory,k),createObjectBindingOrAssignmentPattern:k=>CIe(r.factory,k),createArrayBindingOrAssignmentElement:k=>wIe(r.factory,k),visitor:t};if(Ri(e)){let k=hA(e);k&&(we(k)&&$$(e,k.escapedText)||X$(e))&&(k=dT(m,E.checkDefined(Ue(k,m.visitor,nt)),!1,k),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,k))}if(y4(m,e,a,e,l),u){const k=r.factory.createTempVariable(void 0);if(o){const C=r.factory.inlineExpressions(u);u=void 0,x(k,C,void 0,void 0)}else{r.hoistVariableDeclaration(k);const C=ka(f);C.pendingExpressions=dn(C.pendingExpressions,r.factory.createAssignment(k,C.value)),Fr(C.pendingExpressions,u),C.value=k}}for(const{pendingExpressions:k,name:C,value:N,location:D,original:M}of f){const V=r.factory.createVariableDeclaration(C,void 0,void 0,k?r.factory.inlineExpressions(dn(k,N)):N);V.original=M,Ke(V,D),g.push(V)}return g;function y(k){u=dn(u,k)}function x(k,C,N,D){E.assertNode(k,Ib),u&&(C=r.factory.inlineExpressions(dn(u,C)),u=void 0),f.push({pendingExpressions:u,name:k,value:C,location:N,original:D})}}function y4(e,t,r,i,a){const o=m1(t);if(!a){const l=Ue(hA(t),e.visitor,nt);l?r?(r=TIe(e,r,l,i),!Ud(l)&&Sw(o)&&(r=dT(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}lW(o)?vIe(e,t,o,r,i):_W(o)?bIe(e,t,o,r,i):e.emitBindingOrAssignment(o,r,i,t)}function vIe(e,t,r,i,a){const o=l4(r),l=o.length;if(l!==1){const g=!xw(t)||l!==0;i=dT(e,i,g,a)}let u,f;for(let g=0;g=1&&!(m.transformFlags&98304)&&!(m1(m).transformFlags&98304)&&!Ga(y))u=dn(u,Ue(m,e.visitor,Kce));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,a,r),u=void 0);const x=xIe(e,i,y);Ga(y)&&(f=dn(f,x.argumentExpression)),y4(e,m,x,m)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,a,r)}function bIe(e,t,r,i,a){const o=l4(r),l=o.length;if(e.level<1&&e.downlevelIteration)i=dT(e,Ke(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&PF(o[l-1])?void 0:l),a),!1,a);else if(l!==1&&(e.level<1||l===0)||Xi(o,dl)){const g=!xw(t)||l!==0;i=dT(e,i,g,a)}let u,f;for(let g=0;g=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!Xme(m)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),f=dn(f,[y,m]),u=dn(u,e.createArrayBindingOrAssignmentElement(y))}else u=dn(u,m);else{if(dl(m))continue;if(PF(m)){if(g===l-1){const y=e.context.factory.createArraySliceCall(i,g);y4(e,m,y,m)}}else{const y=e.context.factory.createElementAccessExpression(i,g);y4(e,m,y,m)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,a,r),f)for(const[g,m]of f)y4(e,m,g,m)}function Xme(e){const t=m1(e);if(!t||dl(t))return!0;const r=IF(e);if(r&&!Fd(r))return!1;const i=hA(e);return i&&!Ud(i)?!1:Sw(t)?Xi(l4(t),Xme):we(t)}function TIe(e,t,r,i){return t=dT(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function xIe(e,t,r){const{factory:i}=e.context;if(Ga(r)){const a=dT(e,E.checkDefined(Ue(r.expression,e.visitor,nt)),!1,r);return e.context.factory.createElementAccessExpression(t,a)}else if(Of(r)){const a=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,a)}else{const a=e.context.factory.createIdentifier(lr(r));return e.context.factory.createPropertyAccessExpression(t,a)}}function dT(e,t,r,i){if(we(t)&&r)return t;{const a=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(a),e.emitExpression(Ke(e.context.factory.createAssignment(a,t),i))):e.emitBindingOrAssignment(a,t,i,void 0),a}}function SIe(e,t){return E.assertEachNode(t,o9),e.createArrayBindingPattern(t)}function kIe(e,t){return E.assertEachNode(t,Cw),e.createArrayLiteralExpression(an(t,e.converters.convertToArrayAssignmentElement))}function CIe(e,t){return E.assertEachNode(t,Oa),e.createObjectBindingPattern(t)}function EIe(e,t){return E.assertEachNode(t,kw),e.createObjectLiteralExpression(an(t,e.converters.convertToObjectAssignmentElement))}function wIe(e,t){return e.createBindingElement(void 0,void 0,t)}function DIe(e){return e}var Q$,AIe=Rt({"src/compiler/transformers/destructuring.ts"(){Ls(),Q$=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Q$||{})}});function Qme(e,t,r=e.createThis()){const i=e.createAssignment(t,r),a=e.createExpressionStatement(i),o=e.createBlock([a],!1),l=e.createClassStaticBlockDeclaration(o);return e_(l).classThis=t,l}function w8(e){var t;if(!ec(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ql(r)&&Kl(r.expression,!0)&&we(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function Y$(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&dt(e.members,w8)}function Yme(e,t,r,i){if(Y$(t))return t;const a=Qme(e,r,i);t.name&&Ca(a.body.statements[0],t.name);const o=e.createNodeArray([a,...t.members]);Ke(o,t.members);const l=Qc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return e_(l).classThis=r,l}var NIe=Rt({"src/compiler/transformers/classThis.ts"(){Ls()}});function D8(e,t,r){const i=Ko(nl(r));return(Qc(i)||tl(i))&&!i.name&&Lr(i,1024)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Zme(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(Fd(t)||Ei(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Fd(t.expression)&&!we(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const a=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(a);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(a,o),u=i.updateComputedPropertyName(t,l);return{assignedName:a,name:u}}function Kme(e,t,r=e.factory.createThis()){const{factory:i}=e,a=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),o=i.createExpressionStatement(a),l=i.createBlock([o],!1),u=i.createClassStaticBlockDeclaration(l);return e_(u).assignedName=t,u}function ES(e){var t;if(!ec(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ql(r)&&Z3(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function NL(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&dt(e.members,ES)}function Z$(e){return!!e.name||NL(e)}function PL(e,t,r,i){if(NL(t))return t;const{factory:a}=e,o=Kme(e,r,i);t.name&&Ca(o.body.statements[0],t.name);const l=qc(t.members,w8)+1,u=t.members.slice(0,l),f=t.members.slice(l),g=a.createNodeArray([...u,o,...f]);return Ke(g,t.members),t=Qc(t)?a.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):a.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),e_(t).assignedName=r,t}function wS(e,t,r,i){if(i&&fa(r)&&$W(r))return t;const{factory:a}=e,o=nl(t),l=Fl(o)?Bs(PL(e,o,r),Fl):e.getEmitHelperFactory().createSetFunctionNameHelper(o,r);return a.restoreOuterExpressions(t,l)}function PIe(e,t,r,i){const{factory:a}=e,{assignedName:o,name:l}=Zme(e,t.name,i),u=wS(e,t.initializer,o,r);return a.updatePropertyAssignment(t,l,u)}function IIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):D8(a,t.name,t.objectAssignmentInitializer),l=wS(e,t.objectAssignmentInitializer,o,r);return a.updateShorthandPropertyAssignment(t,t.name,l)}function OIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):D8(a,t.name,t.initializer),l=wS(e,t.initializer,o,r);return a.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function FIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):D8(a,t.name,t.initializer),l=wS(e,t.initializer,o,r);return a.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function LIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):D8(a,t.name,t.initializer),l=wS(e,t.initializer,o,r);return a.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function MIe(e,t,r,i){var f;const{factory:a}=e,{assignedName:o,name:l}=Zme(e,t.name,i),u=wS(e,t.initializer,o,r);return a.updatePropertyDeclaration(t,t.modifiers,l,(f=t.questionToken)!=null?f:t.exclamationToken,t.type,u)}function RIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):D8(a,t.left,t.right),l=wS(e,t.right,o,r);return a.updateBinaryExpression(t,t.left,t.operatorToken,l)}function BIe(e,t,r,i){const{factory:a}=e,o=i!==void 0?a.createStringLiteral(i):a.createStringLiteral(t.isExportEquals?"":"default"),l=wS(e,t.expression,o,r);return a.updateExportAssignment(t,t.modifiers,l)}function Lu(e,t,r,i){switch(t.kind){case 303:return PIe(e,t,r,i);case 304:return IIe(e,t,r,i);case 260:return OIe(e,t,r,i);case 169:return FIe(e,t,r,i);case 208:return LIe(e,t,r,i);case 172:return MIe(e,t,r,i);case 226:return RIe(e,t,r,i);case 277:return BIe(e,t,r,i)}}var jIe=Rt({"src/compiler/transformers/namedEvaluation.ts"(){Ls()}});function K$(e,t,r,i,a,o){const l=Ue(t.tag,r,nt);E.assert(l);const u=[void 0],f=[],g=[],m=t.template;if(o===0&&!hq(m))return fn(t,r,e);const{factory:y}=e;if(sS(m))f.push(eX(y,m)),g.push(tX(y,m,i));else{f.push(eX(y,m.head)),g.push(tX(y,m.head,i));for(const k of m.templateSpans)f.push(eX(y,k.literal)),g.push(tX(y,k.literal,i)),u.push(E.checkDefined(Ue(k.expression,r,nt)))}const x=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(f),y.createArrayLiteralExpression(g));if(zc(i)){const k=y.createUniqueName("templateObject");a(k),u[0]=y.createLogicalOr(k,y.createAssignment(k,x))}else u[0]=x;return y.createCallExpression(l,void 0,u)}function eX(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function tX(e,t,r){let i=t.rawText;if(i===void 0){E.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=Yv(r,t);const a=t.kind===15||t.kind===18;i=i.substring(1,i.length-(a?1:2))}return i=i.replace(/\r\n?/g,` +`),Ke(e.createStringLiteral(i),t)}var nX,JIe=Rt({"src/compiler/transformers/taggedTemplate.ts"(){Ls(),nX=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(nX||{})}});function ege(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:a,endLexicalEnvironment:o,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),f=e.getCompilerOptions(),g=Ia(f),m=Ul(f),y=!!f.experimentalDecorators,x=f.emitDecoratorMetadata?rge(e):void 0,k=e.onEmitNode,C=e.onSubstituteNode;e.onEmitNode=Bf,e.onSubstituteNode=Rs,e.enableSubstitution(211),e.enableSubstitution(212);let N,D,M,V,U,Y,j,ee;return R;function R(A){return A.kind===313?Z(A):oe(A)}function Z(A){return t.createBundle(A.sourceFiles.map(oe),Hi(A.prepends,Ce=>Ce.kind===315?IH(Ce,"js"):Ce))}function oe(A){if(A.isDeclarationFile)return A;N=A;const Ce=_e(A,Pe);return Kg(Ce,e.readEmitHelpers()),N=void 0,Ce}function _e(A,Ce){const Re=V,xt=U,yn=Y;X(A);const Pr=Ce(A);return V!==Re&&(U=xt),V=Re,Y=yn,Pr}function X(A){switch(A.kind){case 312:case 269:case 268:case 241:V=A,U=void 0;break;case 263:case 262:if(Lr(A,2))break;A.name?ge(A):E.assert(A.kind===263||Lr(A,1024));break}}function H(A){return _e(A,Q)}function Q(A){return A.transformFlags&1?pe(A):A}function ne(A){return _e(A,ue)}function ue(A){switch(A.kind){case 272:case 271:case 277:case 278:return fe(A);default:return Q(A)}}function fe(A){if(ts(A)!==A)return A.transformFlags&1?fn(A,H,e):A;switch(A.kind){case 272:return on(A);case 271:return Ms(A);case 277:return jn(A);case 278:return oi(A);default:E.fail("Unhandled ellided statement")}}function G(A){return _e(A,Ne)}function Ne(A){if(!(A.kind===278||A.kind===272||A.kind===273||A.kind===271&&A.moduleReference.kind===283))return A.transformFlags&1||Lr(A,1)?pe(A):A}function De(A){return Ce=>_e(Ce,Re=>Xe(Re,A))}function Xe(A,Ce){switch(A.kind){case 176:return Pn(A);case 172:return cn(A,Ce);case 177:return Gr(A,Ce);case 178:return Er(A,Ce);case 174:return Gt(A,Ce);case 175:return fn(A,H,e);case 240:return A;case 181:return;default:return E.failBadSyntaxKind(A)}}function ve(A){return Ce=>_e(Ce,Re=>be(Re,A))}function be(A,Ce){switch(A.kind){case 303:case 304:case 305:return H(A);case 177:return Gr(A,Ce);case 178:return Er(A,Ce);case 174:return Gt(A,Ce);default:return E.failBadSyntaxKind(A)}}function xe(A){return Wl(A)?void 0:H(A)}function rt(A){return Zs(A)?void 0:H(A)}function ct(A){if(!Wl(A)&&!($x(A.kind)&117086)&&!(D&&A.kind===95))return A}function pe(A){if(Fi(A)&&Lr(A,2))return t.createNotEmittedStatement(A);switch(A.kind){case 95:case 90:return D?void 0:A;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(A);case 270:return;case 264:return t.createNotEmittedStatement(A);case 263:return ot(A);case 231:return Jt(A);case 298:return ur(A);case 233:return hn(A);case 210:return Ge(A);case 176:case 172:case 174:case 177:case 178:case 175:return E.fail("Class and object literal elements must be visited with their respective visitors");case 262:return ze(A);case 218:return ut(A);case 219:return kt(A);case 169:return it(A);case 217:return ke(A);case 216:case 234:return ft(A);case 238:return $e(A);case 213:return Ae(A);case 214:return ht(A);case 215:return _t(A);case 235:return K(A);case 266:return hi(A);case 243:return Vt(A);case 260:return Me(A);case 267:return We(A);case 271:return Ms(A);case 285:return jt(A);case 286:return Fn(A);default:return fn(A,H,e)}}function Pe(A){const Ce=rp(f,"alwaysStrict")&&!(zc(A)&&m>=5)&&!Zf(A);return t.updateSourceFile(A,SL(A.statements,ne,e,0,Ce))}function Ge(A){return t.updateObjectLiteralExpression(A,Dn(A.properties,ve(A),H0))}function tt(A){let Ce=0;dt(U$(A,!0,!0))&&(Ce|=1);const Re=Od(A);return Re&&nl(Re.expression).kind!==106&&(Ce|=64),o1(y,A)&&(Ce|=2),o3(y,A)&&(Ce|=4),di(A)?Ce|=8:qi(A)?Ce|=32:tc(A)&&(Ce|=16),Ce}function mt(A){return!!(A.transformFlags&8192)}function Je(A){return Ff(A)||dt(A.typeParameters)||dt(A.heritageClauses,mt)||dt(A.members,mt)}function ot(A){var La;const Ce=tt(A),Re=g<=1&&!!(Ce&7);if(!Je(A)&&!o1(y,A)&&!di(A))return t.updateClassDeclaration(A,Dn(A.modifiers,ct,Zs),A.name,void 0,Dn(A.heritageClauses,H,tf),Dn(A.members,De(A),Nl));Re&&e.startLexicalEnvironment();const xt=Re||Ce&8;let yn=xt?Dn(A.modifiers,rt,wo):Dn(A.modifiers,H,wo);Ce&2&&(yn=bt(yn,A));const En=xt&&!A.name||Ce&4||Ce&1?(La=A.name)!=null?La:t.getGeneratedNameForNode(A):A.name,gr=t.updateClassDeclaration(A,yn,En,void 0,Dn(A.heritageClauses,H,tf),Pt(A));let ci=ma(A);Ce&1&&(ci|=64),Xn(gr,ci);let Vr;if(Re){const io=[gr],ac=Lq(_a(N.text,A.members.end),20),Ic=t.getInternalName(A),dc=t.createPartiallyEmittedExpression(Ic);j6(dc,ac.end),Xn(dc,3072);const Ka=t.createReturnStatement(dc);J3(Ka,ac.pos),Xn(Ka,3840),io.push(Ka),dm(io,e.endLexicalEnvironment());const nc=t.createImmediatelyInvokedArrowFunction(io);QD(nc,1);const H_=t.createVariableDeclaration(t.getLocalName(A,!1,!1),void 0,void 0,nc);or(H_,A);const Uc=t.createVariableStatement(void 0,t.createVariableDeclarationList([H_],1));or(Uc,A),Xc(Uc,A),Ca(Uc,eh(A)),O_(Uc),Vr=Uc}else Vr=gr;if(xt){if(Ce&8)return[Vr,Es(A)];if(Ce&32)return[Vr,t.createExportDefault(t.getLocalName(A,!1,!0))];if(Ce&16)return[Vr,t.createExternalModuleExport(t.getDeclarationName(A,!1,!0))]}return Vr}function Jt(A){let Ce=Dn(A.modifiers,rt,wo);return o1(y,A)&&(Ce=bt(Ce,A)),t.updateClassExpression(A,Ce,A.name,void 0,Dn(A.heritageClauses,H,tf),Pt(A))}function Pt(A){const Ce=Dn(A.members,De(A),Nl);let Re;const xt=ng(A),yn=xt&&zr(xt.parameters,Pr=>Du(Pr,xt));if(yn)for(const Pr of yn){const En=t.createPropertyDeclaration(void 0,Pr.name,void 0,void 0,void 0);or(En,Pr),Re=dn(Re,En)}return Re?(Re=Fr(Re,Ce),Ke(t.createNodeArray(Re),A.members)):Ce}function bt(A,Ce){const Re=xn(Ce,Ce);if(dt(Re)){const xt=[];Fr(xt,vI(A,yA)),Fr(xt,zr(A,Wl)),Fr(xt,Re),Fr(xt,zr(Soe(A,yA),Zs)),A=Ke(t.createNodeArray(xt),A)}return A}function _r(A,Ce,Re){if(ni(Re)&&GW(y,Ce,Re)){const xt=xn(Ce,Re);if(dt(xt)){const yn=[];Fr(yn,zr(A,Wl)),Fr(yn,xt),Fr(yn,zr(A,Zs)),A=Ke(t.createNodeArray(yn),A)}}return A}function xn(A,Ce){if(!!y)return tge?er(A,Ce):Bt(A,Ce)}function Bt(A,Ce){if(x){let Re;if(xr(A)){const xt=r().createMetadataHelper("design:type",x.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:Ce},A));Re=dn(Re,t.createDecorator(xt))}if(ki(A)){const xt=r().createMetadataHelper("design:paramtypes",x.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:Ce},A,Ce));Re=dn(Re,t.createDecorator(xt))}if(pi(A)){const xt=r().createMetadataHelper("design:returntype",x.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:Ce},A));Re=dn(Re,t.createDecorator(xt))}return Re}}function er(A,Ce){if(x){let Re;if(xr(A)){const xt=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),x.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:Ce},A)));Re=dn(Re,xt)}if(ki(A)){const xt=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),x.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:Ce},A,Ce)));Re=dn(Re,xt)}if(pi(A)){const xt=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),x.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:Ce},A)));Re=dn(Re,xt)}if(Re){const xt=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(Re,!0));return[t.createDecorator(xt)]}}}function xr(A){const Ce=A.kind;return Ce===174||Ce===177||Ce===178||Ce===172}function pi(A){return A.kind===174}function ki(A){switch(A.kind){case 263:case 231:return ng(A)!==void 0;case 174:case 177:case 178:return!0}return!1}function Nr(A,Ce){const Re=A.name;return Ei(Re)?t.createIdentifier(""):Ga(Re)?Ce&&!Ud(Re.expression)?t.getGeneratedNameForNode(Re):Re.expression:we(Re)?t.createStringLiteral(lr(Re)):t.cloneNode(Re)}function pt(A){const Ce=A.name;if(Ga(Ce)&&(!$c(A)&&Y||Ff(A)&&y)){const Re=Ue(Ce.expression,H,nt);E.assert(Re);const xt=Tp(Re);if(!Ud(xt)){const yn=t.getGeneratedNameForNode(Ce);return l(yn),t.updateComputedPropertyName(Ce,t.createAssignment(yn,Re))}}return E.checkDefined(Ue(Ce,H,Jc))}function ur(A){if(A.token!==119)return fn(A,H,e)}function hn(A){return t.updateExpressionWithTypeArguments(A,E.checkDefined(Ue(A.expression,H,du)),void 0)}function Ct(A){return!_c(A.body)}function cn(A,Ce){const Re=A.flags&33554432||Lr(A,256);if(Re&&!(y&&Ff(A)))return;let xt=ni(Ce)?Re?Dn(A.modifiers,rt,wo):Dn(A.modifiers,H,wo):Dn(A.modifiers,xe,wo);return xt=_r(xt,A,Ce),Re?t.updatePropertyDeclaration(A,es(xt,t.createModifiersFromModifierFlags(2)),E.checkDefined(Ue(A.name,H,Jc)),void 0,void 0,void 0):t.updatePropertyDeclaration(A,xt,pt(A),void 0,void 0,Ue(A.initializer,H,nt))}function Pn(A){if(!!Ct(A))return t.updateConstructorDeclaration(A,void 0,Nc(A.parameters,H,e),wi(A.body,A))}function Sr(A,Ce,Re,xt,yn,Pr){const En=xt[yn],gr=Ce[En];if(Fr(A,Dn(Ce,H,Fi,Re,En-Re)),g2(gr)){const ci=[];Sr(ci,gr.tryBlock.statements,0,xt,yn+1,Pr);const Vr=t.createNodeArray(ci);Ke(Vr,gr.tryBlock.statements),A.push(t.updateTryStatement(gr,t.updateBlock(gr.tryBlock,ci),Ue(gr.catchClause,H,Iy),Ue(gr.finallyBlock,H,vs)))}else Fr(A,Dn(Ce,H,Fi,En,1)),Fr(A,Pr);Fr(A,Dn(Ce,H,Fi,En+1))}function wi(A,Ce){const Re=Ce&&zr(Ce.parameters,ci=>Du(ci,Ce));if(!dt(Re))return hf(A,H,e);let xt=[];a();const yn=t.copyPrologue(A.statements,xt,!1,H),Pr=KA(A.statements,yn),En=Hi(Re,Yt);Pr.length?Sr(xt,A.statements,yn,Pr,0,En):(Fr(xt,En),Fr(xt,Dn(A.statements,H,Fi,yn))),xt=t.mergeLexicalEnvironment(xt,o());const gr=t.createBlock(Ke(t.createNodeArray(xt),A.statements),!0);return Ke(gr,A),or(gr,A),gr}function Yt(A){const Ce=A.name;if(!we(Ce))return;const Re=Ta(Ke(t.cloneNode(Ce),Ce),Ce.parent);Xn(Re,3168);const xt=Ta(Ke(t.cloneNode(Ce),Ce),Ce.parent);return Xn(xt,3072),O_(XD(Ke(or(t.createExpressionStatement(t.createAssignment(Ke(t.createPropertyAccessExpression(t.createThis(),Re),A.name),xt)),A),ky(A,-1))))}function Gt(A,Ce){if(!(A.transformFlags&1))return A;if(!Ct(A))return;let Re=ni(Ce)?Dn(A.modifiers,H,wo):Dn(A.modifiers,xe,wo);return Re=_r(Re,A,Ce),t.updateMethodDeclaration(A,Re,A.asteriskToken,pt(A),void 0,void 0,Nc(A.parameters,H,e),void 0,hf(A.body,H,e))}function Sn(A){return!(_c(A.body)&&Lr(A,256))}function Gr(A,Ce){if(!(A.transformFlags&1))return A;if(!Sn(A))return;let Re=ni(Ce)?Dn(A.modifiers,H,wo):Dn(A.modifiers,xe,wo);return Re=_r(Re,A,Ce),t.updateGetAccessorDeclaration(A,Re,pt(A),Nc(A.parameters,H,e),void 0,hf(A.body,H,e)||t.createBlock([]))}function Er(A,Ce){if(!(A.transformFlags&1))return A;if(!Sn(A))return;let Re=ni(Ce)?Dn(A.modifiers,H,wo):Dn(A.modifiers,xe,wo);return Re=_r(Re,A,Ce),t.updateSetAccessorDeclaration(A,Re,pt(A),Nc(A.parameters,H,e),hf(A.body,H,e)||t.createBlock([]))}function ze(A){if(!Ct(A))return t.createNotEmittedStatement(A);const Ce=t.updateFunctionDeclaration(A,Dn(A.modifiers,ct,Zs),A.asteriskToken,A.name,void 0,Nc(A.parameters,H,e),void 0,hf(A.body,H,e)||t.createBlock([]));if(di(A)){const Re=[Ce];return Ea(Re,A),Re}return Ce}function ut(A){return Ct(A)?t.updateFunctionExpression(A,Dn(A.modifiers,ct,Zs),A.asteriskToken,A.name,void 0,Nc(A.parameters,H,e),void 0,hf(A.body,H,e)||t.createBlock([])):t.createOmittedExpression()}function kt(A){return t.updateArrowFunction(A,Dn(A.modifiers,ct,Zs),void 0,Nc(A.parameters,H,e),void 0,A.equalsGreaterThanToken,hf(A.body,H,e))}function it(A){if(o2(A))return;const Ce=t.updateParameterDeclaration(A,Dn(A.modifiers,Re=>Wl(Re)?H(Re):void 0,wo),A.dotDotDotToken,E.checkDefined(Ue(A.name,H,Ib)),void 0,void 0,Ue(A.initializer,H,nt));return Ce!==A&&(Xc(Ce,A),Ke(Ce,Md(A)),Ca(Ce,Md(A)),Xn(Ce.name,64)),Ce}function Vt(A){if(di(A)){const Ce=w3(A.declarationList);return Ce.length===0?void 0:Ke(t.createExpressionStatement(t.inlineExpressions(an(Ce,ae))),A)}else return fn(A,H,e)}function ae(A){const Ce=A.name;return Ps(Ce)?pT(A,H,e,0,!1,za):Ke(t.createAssignment(Pc(Ce),E.checkDefined(Ue(A.initializer,H,nt))),A)}function Me(A){const Ce=t.updateVariableDeclaration(A,E.checkDefined(Ue(A.name,H,Ib)),void 0,void 0,Ue(A.initializer,H,nt));return A.type&&ufe(Ce.name,A.type),Ce}function ke(A){const Ce=nl(A.expression,-7);if(Fb(Ce)){const Re=Ue(A.expression,H,nt);return E.assert(Re),t.createPartiallyEmittedExpression(Re,A)}return fn(A,H,e)}function ft(A){const Ce=Ue(A.expression,H,nt);return E.assert(Ce),t.createPartiallyEmittedExpression(Ce,A)}function K(A){const Ce=Ue(A.expression,H,du);return E.assert(Ce),t.createPartiallyEmittedExpression(Ce,A)}function $e(A){const Ce=Ue(A.expression,H,nt);return E.assert(Ce),t.createPartiallyEmittedExpression(Ce,A)}function Ae(A){return t.updateCallExpression(A,E.checkDefined(Ue(A.expression,H,nt)),void 0,Dn(A.arguments,H,nt))}function ht(A){return t.updateNewExpression(A,E.checkDefined(Ue(A.expression,H,nt)),void 0,Dn(A.arguments,H,nt))}function _t(A){return t.updateTaggedTemplateExpression(A,E.checkDefined(Ue(A.tag,H,nt)),void 0,E.checkDefined(Ue(A.template,H,s6)))}function jt(A){return t.updateJsxSelfClosingElement(A,E.checkDefined(Ue(A.tagName,H,ZC)),void 0,E.checkDefined(Ue(A.attributes,H,v2)))}function Fn(A){return t.updateJsxOpeningElement(A,E.checkDefined(Ue(A.tagName,H,ZC)),void 0,E.checkDefined(Ue(A.attributes,H,v2)))}function Nt(A){return!e2(A)||Xb(f)}function hi(A){if(!Nt(A))return t.createNotEmittedStatement(A);const Ce=[];let Re=4;const xt=Oe(Ce,A);xt&&(m!==4||V!==N)&&(Re|=1024);const yn=ls(A),Pr=Li(A),En=di(A)?t.getExternalModuleOrNamespaceExportName(M,A,!1,!0):t.getDeclarationName(A,!1,!0);let gr=t.createLogicalOr(En,t.createAssignment(En,t.createObjectLiteralExpression()));if(di(A)){const Vr=t.getLocalName(A,!1,!0);gr=t.createAssignment(Vr,gr)}const ci=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,yn)],void 0,z(A,Pr)),void 0,[gr]));return or(ci,A),xt&&(Dy(ci,void 0),tS(ci,void 0)),Ke(ci,A),xm(ci,Re),Ce.push(ci),Ce}function z(A,Ce){const Re=M;M=Ce;const xt=[];i();const yn=an(A.members,B);return dm(xt,o()),Fr(xt,yn),M=Re,t.createBlock(Ke(t.createNodeArray(xt),A.members),!0)}function B(A){const Ce=Nr(A,!1),Re=le(A),xt=t.createAssignment(t.createElementAccessExpression(M,Ce),Re),yn=Re.kind===11?xt:t.createAssignment(t.createElementAccessExpression(M,xt),Ce);return Ke(t.createExpressionStatement(Ke(yn,A)),A)}function le(A){const Ce=u.getConstantValue(A);return Ce!==void 0?typeof Ce=="string"?t.createStringLiteral(Ce):Ce<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(Math.abs(Ce))):t.createNumericLiteral(Ce):(Vc(),A.initializer?E.checkDefined(Ue(A.initializer,H,nt)):t.createVoidZero())}function W(A){const Ce=ts(A,Ac);return Ce?N$(Ce,Xb(f)):!0}function ge(A){U||(U=new Map);const Ce=ye(A);U.has(Ce)||U.set(Ce,A)}function F(A){if(U){const Ce=ye(A);return U.get(Ce)===A}return!0}function ye(A){return E.assertNode(A.name,we),A.name.escapedText}function Oe(A,Ce){const Re=t.createVariableDeclaration(t.getLocalName(Ce,!1,!0)),xt=V.kind===312?0:1,yn=t.createVariableStatement(Dn(Ce.modifiers,ct,Zs),t.createVariableDeclarationList([Re],xt));return or(Re,Ce),Dy(Re,void 0),tS(Re,void 0),or(yn,Ce),ge(Ce),F(Ce)?(Ce.kind===266?Ca(yn.declarationList,Ce):Ca(yn,Ce),Xc(yn,Ce),xm(yn,2048),A.push(yn),!0):!1}function We(A){if(!W(A))return t.createNotEmittedStatement(A);E.assertNode(A.name,we,"A TypeScript namespace should have an Identifier name."),zo();const Ce=[];let Re=4;const xt=Oe(Ce,A);xt&&(m!==4||V!==N)&&(Re|=1024);const yn=ls(A),Pr=Li(A),En=di(A)?t.getExternalModuleOrNamespaceExportName(M,A,!1,!0):t.getDeclarationName(A,!1,!0);let gr=t.createLogicalOr(En,t.createAssignment(En,t.createObjectLiteralExpression()));if(di(A)){const Vr=t.getLocalName(A,!1,!0);gr=t.createAssignment(Vr,gr)}const ci=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,yn)],void 0,Tt(A,Pr)),void 0,[gr]));return or(ci,A),xt&&(Dy(ci,void 0),tS(ci,void 0)),Ke(ci,A),xm(ci,Re),Ce.push(ci),Ce}function Tt(A,Ce){const Re=M,xt=D,yn=U;M=Ce,D=A,U=void 0;const Pr=[];i();let En,gr;if(A.body)if(A.body.kind===268)_e(A.body,Vr=>Fr(Pr,Dn(Vr.statements,G,Fi))),En=A.body.statements,gr=A.body;else{const Vr=We(A.body);Vr&&(Ds(Vr)?Fr(Pr,Vr):Pr.push(Vr));const La=It(A).body;En=ky(La.statements,-1)}dm(Pr,o()),M=Re,D=xt,U=yn;const ci=t.createBlock(Ke(t.createNodeArray(Pr),En),!0);return Ke(ci,gr),(!A.body||A.body.kind!==268)&&Xn(ci,ma(ci)|3072),ci}function It(A){if(A.body.kind===267)return It(A.body)||A.body}function on(A){if(!A.importClause)return A;if(A.importClause.isTypeOnly)return;const Ce=Ue(A.importClause,kn,Sm);return Ce||f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2?t.updateImportDeclaration(A,void 0,Ce,A.moduleSpecifier,A.assertClause):void 0}function kn(A){E.assert(!A.isTypeOnly);const Ce=$o(A)?A.name:void 0,Re=Ue(A.namedBindings,ir,pW);return Ce||Re?t.updateImportClause(A,!1,Ce,Re):void 0}function ir(A){if(A.kind===274)return $o(A)?A:void 0;{const Ce=f.verbatimModuleSyntax||f.preserveValueImports&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),Re=Dn(A.elements,ar,vu);return Ce||dt(Re)?t.updateNamedImports(A,Re):void 0}}function ar(A){return!A.isTypeOnly&&$o(A)?A:void 0}function jn(A){return f.verbatimModuleSyntax||u.isValueAliasDeclaration(A)?fn(A,H,e):void 0}function oi(A){if(A.isTypeOnly)return;if(!A.exportClause||lg(A.exportClause))return A;const Ce=f.verbatimModuleSyntax||!!A.moduleSpecifier&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),Re=Ue(A.exportClause,xt=>Us(xt,Ce),nW);return Re?t.updateExportDeclaration(A,void 0,A.isTypeOnly,Re,A.moduleSpecifier,A.assertClause):void 0}function ea(A,Ce){const Re=Dn(A.elements,Yr,p_);return Ce||dt(Re)?t.updateNamedExports(A,Re):void 0}function gs(A){return t.updateNamespaceExport(A,E.checkDefined(Ue(A.name,H,we)))}function Us(A,Ce){return lg(A)?gs(A):ea(A,Ce)}function Yr(A){return!A.isTypeOnly&&(f.verbatimModuleSyntax||u.isValueAliasDeclaration(A))?A:void 0}function cs(A){return $o(A)||!zc(N)&&u.isTopLevelValueImportEqualsWithEntityName(A)}function Ms(A){if(A.isTypeOnly)return;if(yy(A)){const Re=$o(A);return!Re&&f.importsNotUsedAsValues===1?or(Ke(t.createImportDeclaration(void 0,void 0,A.moduleReference.expression,void 0),A),A):Re?fn(A,H,e):void 0}if(!cs(A))return;const Ce=pA(t,A.moduleReference);return Xn(Ce,7168),tc(A)||!di(A)?or(Ke(t.createVariableStatement(Dn(A.modifiers,ct,Zs),t.createVariableDeclarationList([or(t.createVariableDeclaration(A.name,void 0,void 0,Ce),A)])),A),A):or(ro(A.name,Ce,A),A)}function di(A){return D!==void 0&&Lr(A,1)}function ln(A){return D===void 0&&Lr(A,1)}function tc(A){return ln(A)&&!Lr(A,1024)}function qi(A){return ln(A)&&Lr(A,1024)}function Es(A){const Ce=t.createAssignment(t.getExternalModuleOrNamespaceExportName(M,A,!1,!0),t.getLocalName(A));Ca(Ce,tp(A.name?A.name.pos:A.pos,A.end));const Re=t.createExpressionStatement(Ce);return Ca(Re,tp(-1,A.end)),Re}function Ea(A,Ce){A.push(Es(Ce))}function ro(A,Ce,Re){return Ke(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(M,A,!1,!0),Ce)),Re)}function za(A,Ce,Re){return Ke(t.createAssignment(Pc(A),Ce),Re)}function Pc(A){return t.getNamespaceMemberName(M,A,!1,!0)}function ls(A){const Ce=t.getGeneratedNameForNode(A);return Ca(Ce,A.name),Ce}function Li(A){return t.getGeneratedNameForNode(A)}function Vc(){(j&8)===0&&(j|=8,e.enableSubstitution(80))}function zo(){(j&2)===0&&(j|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function L_(A){return Ko(A).kind===267}function _l(A){return Ko(A).kind===266}function Bf(A,Ce,Re){const xt=ee,yn=N;Bi(Ce)&&(N=Ce),j&2&&L_(Ce)&&(ee|=2),j&8&&_l(Ce)&&(ee|=8),k(A,Ce,Re),ee=xt,N=yn}function Rs(A,Ce){return Ce=C(A,Ce),A===1?Ba(Ce):nf(Ce)?po(Ce):Ce}function po(A){if(j&2){const Ce=A.name,Re=Wt(Ce);if(Re){if(A.objectAssignmentInitializer){const xt=t.createAssignment(Re,A.objectAssignmentInitializer);return Ke(t.createPropertyAssignment(Ce,xt),A)}return Ke(t.createPropertyAssignment(Ce,Re),A)}}return A}function Ba(A){switch(A.kind){case 80:return Fa(A);case 211:return pc(A);case 212:return h_(A)}return A}function Fa(A){return Wt(A)||A}function Wt(A){if(j&ee&&!Jo(A)&&!e0(A)){const Ce=u.getReferencedExportContainer(A,!1);if(Ce&&Ce.kind!==312&&(ee&2&&Ce.kind===267||ee&8&&Ce.kind===266))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ce),A),A)}}function pc(A){return q_(A)}function h_(A){return q_(A)}function M_(A){return A.replace(/\*\//g,"*_/")}function q_(A){const Ce=vo(A);if(Ce!==void 0){lfe(A,Ce);const Re=typeof Ce=="string"?t.createStringLiteral(Ce):Ce<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(Math.abs(Ce))):t.createNumericLiteral(Ce);if(!f.removeComments){const xt=Ko(A,Mo);MO(Re,3,` ${M_(el(xt))} `)}return Re}return A}function vo(A){if(!nd(f))return kr(A)||No(A)?u.getConstantValue(A):void 0}function $o(A){return f.verbatimModuleSyntax||Kn(A)||(f.preserveValueImports?u.isValueAliasDeclaration(A):u.isReferencedAliasDeclaration(A))}}var tge,zIe=Rt({"src/compiler/transformers/ts.ts"(){Ls(),tge=!1}});function nge(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:a,startLexicalEnvironment:o,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,f=e.getEmitResolver(),g=e.getCompilerOptions(),m=Ia(g),y=ND(g),x=!!g.experimentalDecorators,k=!y,C=y&&m<9,N=k||C,D=m<9,M=m<99?-1:y?0:3,V=m<9,U=V&&m>=2,Y=N||D||M===-1,j=e.onSubstituteNode;e.onSubstituteNode=h_;const ee=e.onEmitNode;e.onEmitNode=pc;let R=!1,Z,oe,_e,X,H;const Q=new Map,ne=new Set;let ue,fe,G=!1,Ne=!1;return Pp(e,De);function De(A){if(A.isDeclarationFile||(H=void 0,R=!!(xp(A)&32),!Y&&!R))return A;const Ce=fn(A,ve,e);return Kg(Ce,e.readEmitHelpers()),Ce}function Xe(A){switch(A.kind){case 129:return Pn()?void 0:A;default:return Hr(A,Zs)}}function ve(A){if(!(A.transformFlags&16777216)&&!(A.transformFlags&134234112))return A;switch(A.kind){case 129:return E.fail("Use `modifierVisitor` instead.");case 263:return Nt(A);case 231:return z(A);case 175:case 172:return E.fail("Use `classElementVisitor` instead.");case 303:return Je(A);case 243:return ot(A);case 260:return Jt(A);case 169:return Pt(A);case 208:return bt(A);case 277:return _r(A);case 81:return tt(A);case 211:return Gr(A);case 212:return Er(A);case 224:case 225:return ze(A,!1);case 226:return ft(A,!1);case 217:return $e(A,!1);case 213:return Vt(A);case 244:return kt(A);case 215:return ae(A);case 248:return ut(A);case 110:return W(A);case 262:case 218:return ki(void 0,be,A);case 176:case 174:case 177:case 178:return ki(A,be,A);default:return be(A)}}function be(A){return fn(A,ve,e)}function xe(A){switch(A.kind){case 224:case 225:return ze(A,!0);case 226:return ft(A,!0);case 361:return K(A,!0);case 217:return $e(A,!0);default:return ve(A)}}function rt(A){switch(A.kind){case 298:return fn(A,rt,e);case 233:return jt(A);default:return ve(A)}}function ct(A){switch(A.kind){case 210:case 209:return Wt(A);default:return ve(A)}}function pe(A){switch(A.kind){case 176:return ki(A,er,A);case 177:case 178:case 174:return ki(A,pi,A);case 172:return ki(A,Sr,A);case 175:return ki(A,le,A);case 167:return Bt(A);case 240:return A;default:return wo(A)?Xe(A):ve(A)}}function Pe(A){switch(A.kind){case 167:return Bt(A);default:return ve(A)}}function Ge(A){switch(A.kind){case 172:return cn(A);case 177:case 178:return pe(A);default:E.assertMissingNode(A,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function tt(A){return!D||Fi(A.parent)?A:or(t.createIdentifier(""),A)}function mt(A){const Ce=Li(A.left);if(Ce){const Re=Ue(A.right,ve,nt);return or(r().createClassPrivateFieldInHelper(Ce.brandCheckIdentifier,Re),A)}return fn(A,ve,e)}function Je(A){return Pu(A,ke)&&(A=Lu(e,A)),fn(A,ve,e)}function ot(A){const Ce=X;X=[];const Re=fn(A,ve,e),xt=dt(X)?[Re,...X]:Re;return X=Ce,xt}function Jt(A){return Pu(A,ke)&&(A=Lu(e,A)),fn(A,ve,e)}function Pt(A){return Pu(A,ke)&&(A=Lu(e,A)),fn(A,ve,e)}function bt(A){return Pu(A,ke)&&(A=Lu(e,A)),fn(A,ve,e)}function _r(A){return Pu(A,ke)&&(A=Lu(e,A,!0,A.isExportEquals?"":"default")),fn(A,ve,e)}function xn(A){return dt(_e)&&(yu(A)?(_e.push(A.expression),A=t.updateParenthesizedExpression(A,t.inlineExpressions(_e))):(_e.push(A),A=t.inlineExpressions(_e)),_e=void 0),A}function Bt(A){const Ce=Ue(A.expression,ve,nt);return t.updateComputedPropertyName(A,xn(Ce))}function er(A){return ue?ye(A,ue):be(A)}function xr(A){return!!(D||$c(A)&&xp(A)&32)}function pi(A){if(E.assert(!Ff(A)),!N_(A)||!xr(A))return fn(A,pe,e);const Ce=Li(A.name);if(E.assert(Ce,"Undeclared private name for property declaration."),!Ce.isValid)return A;const Re=Nr(A);Re&&di().push(t.createAssignment(Re,t.createFunctionExpression(zr(A.modifiers,xt=>Zs(xt)&&!oS(xt)&&!Efe(xt)),A.asteriskToken,Re,void 0,Nc(A.parameters,ve,e),void 0,hf(A.body,ve,e))))}function ki(A,Ce,Re){if(A!==fe){const xt=fe;fe=A;const yn=Ce(Re);return fe=xt,yn}return Ce(Re)}function Nr(A){E.assert(Ei(A.name));const Ce=Li(A.name);if(E.assert(Ce,"Undeclared private name for property declaration."),Ce.kind==="m")return Ce.methodName;if(Ce.kind==="a"){if(r1(A))return Ce.getterName;if(G0(A))return Ce.setterName}}function pt(){var Re,xt;const A=cs(),Ce=(xt=(Re=A.classThis)!=null?Re:A.classConstructor)!=null?xt:ue==null?void 0:ue.name;return E.checkDefined(Ce)}function ur(A){const Ce=Bd(A),Re=wy(A),xt=A.name;let yn=xt,Pr=xt;if(Ga(xt)&&!Ud(xt.expression)){const ac=FF(xt);if(ac)yn=t.updateComputedPropertyName(xt,Ue(xt.expression,ve,nt)),Pr=t.updateComputedPropertyName(xt,ac.left);else{const Ic=t.createTempVariable(i);Ca(Ic,xt.expression);const dc=Ue(xt.expression,ve,nt),Ka=t.createAssignment(Ic,dc);Ca(Ka,xt.expression),yn=t.updateComputedPropertyName(xt,Ka),Pr=t.updateComputedPropertyName(xt,Ic)}}const En=Dn(A.modifiers,Xe,Zs),gr=SG(t,A,En,A.initializer);or(gr,A),Xn(gr,3072),Ca(gr,Re);const ci=Os(A)?pt():t.createThis(),Vr=lpe(t,A,En,yn,ci);or(Vr,A),Xc(Vr,Ce),Ca(Vr,Re);const La=t.createModifiersFromModifierFlags(Ld(En)),io=_pe(t,A,La,Pr,ci);return or(io,A),Xn(io,3072),Ca(io,Re),YA([gr,Vr,io],Ge,Nl)}function hn(A){if(xr(A)){const Ce=Li(A.name);if(E.assert(Ce,"Undeclared private name for property declaration."),!Ce.isValid)return A;if(Ce.isStatic&&!D){const Re=It(A,t.createThis());if(Re)return t.createClassStaticBlockDeclaration(t.createBlock([Re],!0))}return}return k&&!Os(A)&&(H==null?void 0:H.data)&&H.data.facts&16?t.updatePropertyDeclaration(A,Dn(A.modifiers,ve,wo),A.name,void 0,void 0,void 0):(Pu(A,ke)&&(A=Lu(e,A)),t.updatePropertyDeclaration(A,Dn(A.modifiers,Xe,Zs),Ue(A.name,Pe,Jc),void 0,void 0,Ue(A.initializer,ve,nt)))}function Ct(A){if(N&&!nu(A)){const Ce=gs(A.name,!!A.initializer||y);if(Ce&&di().push(...upe(Ce)),Os(A)&&!D){const Re=It(A,t.createThis());if(Re){const xt=t.createClassStaticBlockDeclaration(t.createBlock([Re]));return or(xt,A),Xc(xt,A),Xc(Re,{pos:-1,end:-1}),Dy(Re,void 0),tS(Re,void 0),xt}}return}return t.updatePropertyDeclaration(A,Dn(A.modifiers,Xe,Zs),Ue(A.name,Pe,Jc),void 0,void 0,Ue(A.initializer,ve,nt))}function cn(A){return E.assert(!Ff(A),"Decorators should already have been transformed and elided."),N_(A)?hn(A):Ct(A)}function Pn(){return M===-1||M===3&&!!(H!=null&&H.data)&&!!(H.data.facts&16)}function Sr(A){return nu(A)&&(Pn()||$c(A)&&xp(A)&32)?ur(A):cn(A)}function wi(){return!!fe&&$c(fe)&&t1(fe)&&nu(Ko(fe))}function Yt(A){if(wi()){const Ce=nl(A);Ce.kind===110&&ne.add(Ce)}}function Gt(A,Ce){return Ce=Ue(Ce,ve,nt),Yt(Ce),Sn(A,Ce)}function Sn(A,Ce){switch(Xc(Ce,ky(Ce,-1)),A.kind){case"a":return r().createClassPrivateFieldGetHelper(Ce,A.brandCheckIdentifier,A.kind,A.getterName);case"m":return r().createClassPrivateFieldGetHelper(Ce,A.brandCheckIdentifier,A.kind,A.methodName);case"f":return r().createClassPrivateFieldGetHelper(Ce,A.brandCheckIdentifier,A.kind,A.isStatic?A.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(A,"Unknown private element type")}}function Gr(A){if(Ei(A.name)){const Ce=Li(A.name);if(Ce)return Ke(or(Gt(Ce,A.expression),A),A)}if(U&&fe&&iu(A)&&we(A.name)&&v4(fe)&&(H==null?void 0:H.data)){const{classConstructor:Ce,superClassReference:Re,facts:xt}=H.data;if(xt&1)return ea(A);if(Ce&&Re){const yn=t.createReflectGetCall(Re,t.createStringLiteralFromNode(A.name),Ce);return or(yn,A.expression),Ke(yn,A.expression),yn}}return fn(A,ve,e)}function Er(A){if(U&&fe&&iu(A)&&v4(fe)&&(H==null?void 0:H.data)){const{classConstructor:Ce,superClassReference:Re,facts:xt}=H.data;if(xt&1)return ea(A);if(Ce&&Re){const yn=t.createReflectGetCall(Re,Ue(A.argumentExpression,ve,nt),Ce);return or(yn,A.expression),Ke(yn,A.expression),yn}}return fn(A,ve,e)}function ze(A,Ce){if(A.operator===46||A.operator===47){const Re=lo(A.operand);if(n6(Re)){let xt;if(xt=Li(Re.name)){const yn=Ue(Re.expression,ve,nt);Yt(yn);const{readExpression:Pr,initializeExpression:En}=it(yn);let gr=Gt(xt,Pr);const ci=Ny(A)||Ce?void 0:t.createTempVariable(i);return gr=wF(t,A,gr,i,ci),gr=Ae(xt,En||Pr,gr,64),or(gr,A),Ke(gr,A),ci&&(gr=t.createComma(gr,ci),Ke(gr,A)),gr}}else if(U&&fe&&iu(Re)&&v4(fe)&&(H==null?void 0:H.data)){const{classConstructor:xt,superClassReference:yn,facts:Pr}=H.data;if(Pr&1){const En=ea(Re);return Ny(A)?t.updatePrefixUnaryExpression(A,En):t.updatePostfixUnaryExpression(A,En)}if(xt&&yn){let En,gr;if(kr(Re)?we(Re.name)&&(gr=En=t.createStringLiteralFromNode(Re.name)):Ud(Re.argumentExpression)?gr=En=Re.argumentExpression:(gr=t.createTempVariable(i),En=t.createAssignment(gr,Ue(Re.argumentExpression,ve,nt))),En&&gr){let ci=t.createReflectGetCall(yn,gr,xt);Ke(ci,Re);const Vr=Ce?void 0:t.createTempVariable(i);return ci=wF(t,A,ci,i,Vr),ci=t.createReflectSetCall(yn,En,ci,xt),or(ci,A),Ke(ci,A),Vr&&(ci=t.createComma(ci,Vr),Ke(ci,A)),ci}}}}return fn(A,ve,e)}function ut(A){return t.updateForStatement(A,Ue(A.initializer,xe,If),Ue(A.condition,ve,nt),Ue(A.incrementor,xe,nt),W_(A.statement,ve,e))}function kt(A){return t.updateExpressionStatement(A,Ue(A.expression,xe,nt))}function it(A){const Ce=Do(A)?A:t.cloneNode(A);if(A.kind===110&&ne.has(A)&&ne.add(Ce),Ud(A))return{readExpression:Ce,initializeExpression:void 0};const Re=t.createTempVariable(i),xt=t.createAssignment(Re,Ce);return{readExpression:Re,initializeExpression:xt}}function Vt(A){var Ce;if(n6(A.expression)&&Li(A.expression.name)){const{thisArg:Re,target:xt}=t.createCallBinding(A.expression,i,m);return Ab(A)?t.updateCallChain(A,t.createPropertyAccessChain(Ue(xt,ve,nt),A.questionDotToken,"call"),void 0,void 0,[Ue(Re,ve,nt),...Dn(A.arguments,ve,nt)]):t.updateCallExpression(A,t.createPropertyAccessExpression(Ue(xt,ve,nt),"call"),void 0,[Ue(Re,ve,nt),...Dn(A.arguments,ve,nt)])}if(U&&fe&&iu(A.expression)&&v4(fe)&&((Ce=H==null?void 0:H.data)==null?void 0:Ce.classConstructor)){const Re=t.createFunctionCallCall(Ue(A.expression,ve,nt),H.data.classConstructor,Dn(A.arguments,ve,nt));return or(Re,A),Ke(Re,A),Re}return fn(A,ve,e)}function ae(A){var Ce;if(n6(A.tag)&&Li(A.tag.name)){const{thisArg:Re,target:xt}=t.createCallBinding(A.tag,i,m);return t.updateTaggedTemplateExpression(A,t.createCallExpression(t.createPropertyAccessExpression(Ue(xt,ve,nt),"bind"),void 0,[Ue(Re,ve,nt)]),void 0,Ue(A.template,ve,s6))}if(U&&fe&&iu(A.tag)&&v4(fe)&&((Ce=H==null?void 0:H.data)==null?void 0:Ce.classConstructor)){const Re=t.createFunctionBindCall(Ue(A.tag,ve,nt),H.data.classConstructor,[]);return or(Re,A),Ke(Re,A),t.updateTaggedTemplateExpression(A,Re,void 0,Ue(A.template,ve,s6))}return fn(A,ve,e)}function Me(A){if(H&&Q.set(Ko(A),H),D){if(w8(A)){const xt=Ue(A.body.statements[0].expression,ve,nt);return Kl(xt,!0)&&xt.left===xt.right?void 0:xt}if(ES(A))return Ue(A.body.statements[0].expression,ve,nt);o();let Ce=ki(A,xt=>Dn(xt,ve,Fi),A.body.statements);Ce=t.mergeLexicalEnvironment(Ce,a());const Re=t.createImmediatelyInvokedArrowFunction(Ce);return or(lo(Re.expression),A),xm(lo(Re.expression),4),or(Re,A),Ke(Re,A),Re}}function ke(A){if(Fl(A)&&!A.name){const Ce=DL(A);return dt(Ce,ES)?!1:(D||!!xp(A))&&dt(Ce,xt=>ec(xt)||N_(xt)||N&&e5(xt))}return!1}function ft(A,Ce){if(Z0(A)){const Re=_e;_e=void 0,A=t.updateBinaryExpression(A,Ue(A.left,ct,nt),A.operatorToken,Ue(A.right,ve,nt));const xt=dt(_e)?t.inlineExpressions(R7([..._e,A])):A;return _e=Re,xt}if(Kl(A)){Pu(A,ke)&&(A=Lu(e,A),E.assertNode(A,Kl));const Re=nl(A.left,9);if(n6(Re)){const xt=Li(Re.name);if(xt)return Ke(or(Ae(xt,Re.expression,A.right,A.operatorToken.kind),A),A)}else if(U&&fe&&iu(A.left)&&v4(fe)&&(H==null?void 0:H.data)){const{classConstructor:xt,superClassReference:yn,facts:Pr}=H.data;if(Pr&1)return t.updateBinaryExpression(A,ea(A.left),A.operatorToken,Ue(A.right,ve,nt));if(xt&&yn){let En=No(A.left)?Ue(A.left.argumentExpression,ve,nt):we(A.left.name)?t.createStringLiteralFromNode(A.left.name):void 0;if(En){let gr=Ue(A.right,ve,nt);if(C8(A.operatorToken.kind)){let Vr=En;Ud(En)||(Vr=t.createTempVariable(i),En=t.createAssignment(Vr,En));const La=t.createReflectGetCall(yn,Vr,xt);or(La,A.left),Ke(La,A.left),gr=t.createBinaryExpression(La,E8(A.operatorToken.kind),gr),Ke(gr,A)}const ci=Ce?void 0:t.createTempVariable(i);return ci&&(gr=t.createAssignment(ci,gr),Ke(ci,A)),gr=t.createReflectSetCall(yn,En,gr,xt),or(gr,A),Ke(gr,A),ci&&(gr=t.createComma(gr,ci),Ke(gr,A)),gr}}}}return HIe(A)?mt(A):fn(A,ve,e)}function K(A,Ce){const Re=Ce?ZA(A.elements,xe):ZA(A.elements,ve,xe);return t.updateCommaListExpression(A,Re)}function $e(A,Ce){const Re=Ce?xe:ve,xt=Ue(A.expression,Re,nt);return t.updateParenthesizedExpression(A,xt)}function Ae(A,Ce,Re,xt){if(Ce=Ue(Ce,ve,nt),Re=Ue(Re,ve,nt),Yt(Ce),C8(xt)){const{readExpression:yn,initializeExpression:Pr}=it(Ce);Ce=Pr||yn,Re=t.createBinaryExpression(Sn(A,yn),E8(xt),Re)}switch(Xc(Ce,ky(Ce,-1)),A.kind){case"a":return r().createClassPrivateFieldSetHelper(Ce,A.brandCheckIdentifier,Re,A.kind,A.setterName);case"m":return r().createClassPrivateFieldSetHelper(Ce,A.brandCheckIdentifier,Re,A.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(Ce,A.brandCheckIdentifier,Re,A.kind,A.isStatic?A.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(A,"Unknown private element type")}}function ht(A){return zr(A.members,Wme)}function _t(A){var Ce;let Re=0;const xt=Ko(A);Qc(xt)&&o1(x,xt)&&(Re|=1),D&&(Y$(A)||NL(A))&&(Re|=2);let yn=!1,Pr=!1,En=!1,gr=!1;for(const Vr of A.members)Os(Vr)?((Vr.name&&(Ei(Vr.name)||nu(Vr))&&D||nu(Vr)&&M===-1&&!A.name&&!((Ce=A.emitNode)!=null&&Ce.classThis))&&(Re|=2),(Fs(Vr)||ec(Vr))&&(V&&Vr.transformFlags&16384&&(Re|=8,Re&1||(Re|=2)),U&&Vr.transformFlags&134217728&&(Re&1||(Re|=6)))):l2(Ko(Vr))||(nu(Vr)?(gr=!0,En||(En=N_(Vr))):N_(Vr)?(En=!0,f.getNodeCheckFlags(Vr)&262144&&(Re|=2)):Fs(Vr)&&(yn=!0,Pr||(Pr=!!Vr.initializer)));return(C&&yn||k&&Pr||D&&En||D&&gr&&M===-1)&&(Re|=16),Re}function jt(A){var Ce;if((((Ce=H==null?void 0:H.data)==null?void 0:Ce.facts)||0)&4){const xt=t.createTempVariable(i,!0);return cs().superClassReference=xt,t.updateExpressionWithTypeArguments(A,t.createAssignment(xt,Ue(A.expression,ve,nt)),void 0)}return fn(A,ve,e)}function Fn(A,Ce){var Re;const xt=ue,yn=_e,Pr=H;ue=A,_e=void 0,Us();const En=xp(A)&32;if(D||En){const Vr=os(A);if(Vr&&we(Vr))Ms().data.className=Vr;else if((Re=A.emitNode)!=null&&Re.assignedName&&fa(A.emitNode.assignedName)){if(A.emitNode.assignedName.textSourceNode&&we(A.emitNode.assignedName.textSourceNode))Ms().data.className=A.emitNode.assignedName.textSourceNode;else if(pf(A.emitNode.assignedName.text,m)){const La=t.createIdentifier(A.emitNode.assignedName.text);Ms().data.className=La}}}if(D){const Vr=ht(A);dt(Vr)&&(Ms().data.weakSetName=Pc("instances",Vr[0].name))}const gr=_t(A);gr&&(cs().facts=gr),gr&8&&jn();const ci=Ce(A,gr);return Yr(),E.assert(H===Pr),ue=xt,_e=yn,ci}function Nt(A){return Fn(A,hi)}function hi(A,Ce){var Re,xt;let yn;if(Ce&2)if(D&&((Re=A.emitNode)==null?void 0:Re.classThis))cs().classConstructor=A.emitNode.classThis,yn=t.createAssignment(A.emitNode.classThis,t.getInternalName(A));else{const Ka=t.createTempVariable(i,!0);cs().classConstructor=t.cloneNode(Ka),yn=t.createAssignment(Ka,t.getInternalName(A))}(xt=A.emitNode)!=null&&xt.classThis&&(cs().classThis=A.emitNode.classThis);const Pr=f.getNodeCheckFlags(A)&262144,En=Lr(A,1),gr=Lr(A,1024);let ci=Dn(A.modifiers,Xe,Zs);const Vr=Dn(A.heritageClauses,rt,tf),{members:La,prologue:io}=ge(A),ac=[];if(yn&&di().unshift(yn),dt(_e)&&ac.push(t.createExpressionStatement(t.inlineExpressions(_e))),k||D||xp(A)&32){const Ka=DL(A);dt(Ka)&&Tt(ac,Ka,t.getInternalName(A))}ac.length>0&&En&&gr&&(ci=Dn(ci,Ka=>yA(Ka)?void 0:Ka,Zs),ac.push(t.createExportAssignment(void 0,!1,t.getLocalName(A,!1,!0))));const Ic=cs().classConstructor;Pr&&Ic&&(ar(),oe[t_(A)]=Ic);const dc=t.updateClassDeclaration(A,ci,A.name,void 0,Vr,La);return ac.unshift(dc),io&&ac.unshift(t.createExpressionStatement(io)),ac}function z(A){return Fn(A,B)}function B(A,Ce){var Uc;var Re,xt,yn;const Pr=!!(Ce&1),En=DL(A),gr=f.getNodeCheckFlags(A),ci=gr&262144;let Vr;function La(){var Vo;if(D&&((Vo=A.emitNode)==null?void 0:Vo.classThis))return cs().classConstructor=A.emitNode.classThis;const Tu=gr&32768,he=t.createTempVariable(Tu?u:i,!0);return cs().classConstructor=t.cloneNode(he),he}(Re=A.emitNode)!=null&&Re.classThis&&(cs().classThis=A.emitNode.classThis),Ce&2&&(Vr!=null||(Vr=La()));const io=Dn(A.modifiers,Xe,Zs),ac=Dn(A.heritageClauses,rt,tf),{members:Ic,prologue:dc}=ge(A),Ka=t.updateClassExpression(A,io,A.name,void 0,ac,Ic),nc=[];if(dc&&nc.push(dc),(D||xp(A)&32)&&dt(En,Vo=>ec(Vo)||N_(Vo)||N&&e5(Vo))||dt(_e))if(Pr)E.assertIsDefined(X,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),dt(_e)&&Fr(X,an(_e,t.createExpressionStatement)),dt(En)&&Tt(X,En,(Uc=(xt=A.emitNode)==null?void 0:xt.classThis)!=null?Uc:t.getInternalName(A)),Vr?nc.push(t.createAssignment(Vr,Ka)):D&&((yn=A.emitNode)==null?void 0:yn.classThis)?nc.push(t.createAssignment(A.emitNode.classThis,Ka)):nc.push(Ka);else{if(Vr!=null||(Vr=La()),ci){ar();const Vo=t.cloneNode(Vr);Vo.emitNode.autoGenerate.flags&=-9,oe[t_(A)]=Vo}nc.push(t.createAssignment(Vr,Ka)),Fr(nc,_e),Fr(nc,on(En,Vr)),nc.push(t.cloneNode(Vr))}else nc.push(Ka);return nc.length>1&&(xm(Ka,131072),nc.forEach(O_)),t.inlineExpressions(nc)}function le(A){if(!D)return fn(A,ve,e)}function W(A){var Ce;if(V&&fe&&ec(fe)&&(H==null?void 0:H.data)){const{classThis:Re,classConstructor:xt}=H.data;return(Ce=Re!=null?Re:xt)!=null?Ce:A}return A}function ge(A){const Ce=!!(xp(A)&32);if(D||R){for(const En of A.members)if(N_(En))if(xr(En))za(En,En.name,ln);else{const gr=Ms();fT(gr,En.name,{kind:"untransformed"})}if(D&&dt(ht(A))&&F(),Pn()){for(const En of A.members)if(nu(En)){const gr=t.getGeneratedPrivateNameForNode(En.name,void 0,"_accessor_storage");if(D||Ce&&$c(En))za(En,gr,tc);else{const ci=Ms();fT(ci,gr,{kind:"untransformed"})}}}}let Re=Dn(A.members,pe,Nl),xt;dt(Re,Cc)||(xt=ye(void 0,A));let yn,Pr;if(!D&&dt(_e)){let En=t.createExpressionStatement(t.inlineExpressions(_e));if(En.transformFlags&134234112){const ci=t.createTempVariable(i),Vr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([En]));yn=t.createAssignment(ci,Vr),En=t.createExpressionStatement(t.createCallExpression(ci,void 0,[]))}const gr=t.createBlock([En]);Pr=t.createClassStaticBlockDeclaration(gr),_e=void 0}if(xt||Pr){let En;const gr=Or(Re,w8),ci=Or(Re,ES);En=dn(En,gr),En=dn(En,ci),En=dn(En,xt),En=dn(En,Pr);const Vr=gr||ci?zr(Re,La=>La!==gr&&La!==ci):Re;En=Fr(En,Vr),Re=Ke(t.createNodeArray(En),A.members)}return{members:Re,prologue:yn}}function F(){const{weakSetName:A}=Ms().data;E.assert(A,"weakSetName should be set in private identifier environment"),di().push(t.createAssignment(A,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function ye(A,Ce){if(A=Ue(A,ve,Cc),!(H!=null&&H.data)||!(H.data.facts&16))return A;const Re=Od(Ce),xt=!!(Re&&nl(Re.expression).kind!==106),yn=Nc(A?A.parameters:void 0,ve,e),Pr=We(Ce,A,xt);return Pr?A?(E.assert(yn),t.updateConstructorDeclaration(A,void 0,yn,Pr)):O_(or(Ke(t.createConstructorDeclaration(void 0,yn!=null?yn:[],Pr),A||Ce),A)):A}function Oe(A,Ce,Re,xt,yn,Pr,En){const gr=xt[yn],ci=Ce[gr];if(Fr(A,Dn(Ce,ve,Fi,Re,gr-Re)),Re=gr+1,g2(ci)){const Vr=[];Oe(Vr,ci.tryBlock.statements,0,xt,yn+1,Pr,En);const La=t.createNodeArray(Vr);Ke(La,ci.tryBlock.statements),A.push(t.updateTryStatement(ci,t.updateBlock(ci.tryBlock,Vr),Ue(ci.catchClause,ve,Iy),Ue(ci.finallyBlock,ve,vs)))}else{for(Fr(A,Dn(Ce,ve,Fi,gr,1));Re!!dc.initializer||Ei(dc.name)||ym(dc)));const Pr=ht(A),En=dt(yn)||dt(Pr);if(!Ce&&!En)return hf(void 0,ve,e);l();const gr=!Ce&ℜlet ci=0,Vr=[];const La=[],io=t.createThis();if(oi(La,Pr,io),Ce){const dc=zr(xt,nc=>Du(Ko(nc),Ce)),Ka=zr(yn,nc=>!Du(Ko(nc),Ce));Tt(La,dc,io),Tt(La,Ka,io)}else Tt(La,yn,io);if(Ce!=null&&Ce.body){ci=t.copyPrologue(Ce.body.statements,Vr,!1,ve);const dc=KA(Ce.body.statements,ci);if(dc.length)Oe(Vr,Ce.body.statements,ci,dc,0,La,Ce);else{for(;ci=Vr.length&&(Ic=Ce.body.multiLine)!=null?Ic:Vr.length>0;return Ke(t.createBlock(Ke(t.createNodeArray(Vr),Ce?Ce.body.statements:A.members),ac),Ce?Ce.body:void 0)}function Tt(A,Ce,Re){for(const xt of Ce){if(Os(xt)&&!D)continue;const yn=It(xt,Re);!yn||A.push(yn)}}function It(A,Ce){const Re=ec(A)?ki(A,Me,A):kn(A,Ce);if(!Re)return;const xt=t.createExpressionStatement(Re);or(xt,A),xm(xt,ma(A)&3072),Xc(xt,A);const yn=Ko(A);return rs(yn)?(Ca(xt,yn),XD(xt)):Ca(xt,Md(A)),Dy(Re,void 0),tS(Re,void 0),ym(yn)&&xm(xt,3072),xt}function on(A,Ce){const Re=[];for(const xt of A){const yn=ec(xt)?ki(xt,Me,xt):ki(xt,()=>kn(xt,Ce),void 0);!yn||(O_(yn),or(yn,xt),xm(yn,ma(xt)&3072),Ca(yn,Md(xt)),Xc(yn,xt),Re.push(yn))}return Re}function kn(A,Ce){var Re;const xt=fe,yn=ir(A,Ce);return yn&&$c(A)&&((Re=H==null?void 0:H.data)==null?void 0:Re.facts)&&(or(yn,A),xm(yn,4),Ca(yn,wy(A.name)),Q.set(Ko(A),H)),fe=xt,yn}function ir(A,Ce){const Re=!y;Pu(A,ke)&&(A=Lu(e,A));const xt=ym(A)?t.getGeneratedPrivateNameForNode(A.name):Ga(A.name)&&!Ud(A.name.expression)?t.updateComputedPropertyName(A.name,t.getGeneratedNameForNode(A.name)):A.name;if($c(A)&&(fe=A),Ei(xt)&&xr(A)){const En=Li(xt);if(En)return En.kind==="f"?En.isStatic?VIe(t,En.variableName,Ue(A.initializer,ve,nt)):UIe(t,Ce,Ue(A.initializer,ve,nt),En.brandCheckIdentifier):void 0;E.fail("Undeclared private name for property declaration.")}if((Ei(xt)||$c(A))&&!A.initializer)return;const yn=Ko(A);if(Lr(yn,256))return;let Pr=Ue(A.initializer,ve,nt);if(Du(yn,yn.parent)&&we(xt)){const En=t.cloneNode(xt);Pr?(yu(Pr)&&dA(Pr.expression)&&Z3(Pr.expression.left,"___runInitializers")&&eT(Pr.expression.right)&&Ou(Pr.expression.right.expression)&&(Pr=Pr.expression.left),Pr=t.inlineExpressions([Pr,En])):Pr=En,Xn(xt,3168),Ca(En,yn.name),Xn(En,3072)}else Pr!=null||(Pr=t.createVoidZero());if(Re||Ei(xt)){const En=aT(t,Ce,xt,xt);return xm(En,1024),t.createAssignment(En,Pr)}else{const En=Ga(xt)?xt.expression:we(xt)?t.createStringLiteral(Oi(xt.escapedText)):xt,gr=t.createPropertyDescriptor({value:Pr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Ce,En,gr)}}function ar(){(Z&1)===0&&(Z|=1,e.enableSubstitution(80),oe=[])}function jn(){(Z&2)===0&&(Z|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function oi(A,Ce,Re){if(!D||!dt(Ce))return;const{weakSetName:xt}=Ms().data;E.assert(xt,"weakSetName should be set in private identifier environment"),A.push(t.createExpressionStatement(WIe(t,Re,xt)))}function ea(A){return kr(A)?t.updatePropertyAccessExpression(A,t.createVoidZero(),A.name):t.updateElementAccessExpression(A,t.createVoidZero(),Ue(A.argumentExpression,ve,nt))}function gs(A,Ce){if(Ga(A)){const Re=FF(A),xt=Ue(A.expression,ve,nt),yn=Tp(xt),Pr=Ud(yn);if(!(!!Re||Kl(yn)&&Jo(yn.left))&&!Pr&&Ce){const gr=t.getGeneratedNameForNode(A);return f.getNodeCheckFlags(A)&32768?u(gr):i(gr),t.createAssignment(gr,xt)}return Pr||we(yn)?void 0:xt}}function Us(){H={previous:H,data:void 0}}function Yr(){H=H==null?void 0:H.previous}function cs(){var A;return E.assert(H),(A=H.data)!=null?A:H.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Ms(){var A;return E.assert(H),(A=H.privateEnv)!=null?A:H.privateEnv=Gme({className:void 0,weakSetName:void 0})}function di(){return _e!=null?_e:_e=[]}function ln(A,Ce,Re,xt,yn,Pr,En){nu(A)?ro(A,Ce,Re,xt,yn,Pr):Fs(A)?tc(A,Ce,Re,xt,yn,Pr):kc(A)?qi(A,Ce,Re,xt,yn,Pr):gf(A)?Es(A,Ce,Re,xt,yn,Pr,En):Fu(A)&&Ea(A,Ce,Re,xt,yn,Pr,En)}function tc(A,Ce,Re,xt,yn,Pr,En){var gr;if(yn){const ci=E.checkDefined((gr=Re.classThis)!=null?gr:Re.classConstructor,"classConstructor should be set in private identifier environment"),Vr=ls(Ce);fT(xt,Ce,{kind:"f",isStatic:!0,brandCheckIdentifier:ci,variableName:Vr,isValid:Pr})}else{const ci=ls(Ce);fT(xt,Ce,{kind:"f",isStatic:!1,brandCheckIdentifier:ci,isValid:Pr}),di().push(t.createAssignment(ci,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function qi(A,Ce,Re,xt,yn,Pr,En){var Vr;const gr=ls(Ce),ci=yn?E.checkDefined((Vr=Re.classThis)!=null?Vr:Re.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(xt.data.weakSetName,"weakSetName should be set in private identifier environment");fT(xt,Ce,{kind:"m",methodName:gr,brandCheckIdentifier:ci,isStatic:yn,isValid:Pr})}function Es(A,Ce,Re,xt,yn,Pr,En){var Vr;const gr=ls(Ce,"_get"),ci=yn?E.checkDefined((Vr=Re.classThis)!=null?Vr:Re.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(xt.data.weakSetName,"weakSetName should be set in private identifier environment");(En==null?void 0:En.kind)==="a"&&En.isStatic===yn&&!En.getterName?En.getterName=gr:fT(xt,Ce,{kind:"a",getterName:gr,setterName:void 0,brandCheckIdentifier:ci,isStatic:yn,isValid:Pr})}function Ea(A,Ce,Re,xt,yn,Pr,En){var Vr;const gr=ls(Ce,"_set"),ci=yn?E.checkDefined((Vr=Re.classThis)!=null?Vr:Re.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(xt.data.weakSetName,"weakSetName should be set in private identifier environment");(En==null?void 0:En.kind)==="a"&&En.isStatic===yn&&!En.setterName?En.setterName=gr:fT(xt,Ce,{kind:"a",getterName:void 0,setterName:gr,brandCheckIdentifier:ci,isStatic:yn,isValid:Pr})}function ro(A,Ce,Re,xt,yn,Pr,En){var La;const gr=ls(Ce,"_get"),ci=ls(Ce,"_set"),Vr=yn?E.checkDefined((La=Re.classThis)!=null?La:Re.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(xt.data.weakSetName,"weakSetName should be set in private identifier environment");fT(xt,Ce,{kind:"a",getterName:gr,setterName:ci,brandCheckIdentifier:Vr,isStatic:yn,isValid:Pr})}function za(A,Ce,Re){const xt=cs(),yn=Ms(),Pr=H$(yn,Ce),En=$c(A),gr=!qIe(Ce)&&Pr===void 0;Re(A,Ce,xt,yn,En,gr,Pr)}function Pc(A,Ce,Re){const{className:xt}=Ms().data,yn=xt?{prefix:"_",node:xt,suffix:"_"}:"_",Pr=typeof A=="object"?t.getGeneratedNameForNode(A,24,yn,Re):typeof A=="string"?t.createUniqueName(A,16,yn,Re):t.createTempVariable(void 0,!0,yn,Re);return f.getNodeCheckFlags(Ce)&32768?u(Pr):i(Pr),Pr}function ls(A,Ce){var xt;const Re=r3(A);return Pc((xt=Re==null?void 0:Re.substring(1))!=null?xt:A,A,Ce)}function Li(A){const Ce=$me(H,A);return(Ce==null?void 0:Ce.kind)==="untransformed"?void 0:Ce}function Vc(A){const Ce=t.getGeneratedNameForNode(A),Re=Li(A.name);if(!Re)return fn(A,ve,e);let xt=A.expression;return(zw(A)||iu(A)||!k2(A.expression))&&(xt=t.createTempVariable(i,!0),di().push(t.createBinaryExpression(xt,64,Ue(A.expression,ve,nt)))),t.createAssignmentTargetWrapper(Ce,Ae(Re,xt,Ce,64))}function zo(A){if(ha(A)||u_(A))return Wt(A);if(n6(A))return Vc(A);if(U&&fe&&iu(A)&&v4(fe)&&(H==null?void 0:H.data)){const{classConstructor:Ce,superClassReference:Re,facts:xt}=H.data;if(xt&1)return ea(A);if(Ce&&Re){const yn=No(A)?Ue(A.argumentExpression,ve,nt):we(A.name)?t.createStringLiteralFromNode(A.name):void 0;if(yn){const Pr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Pr,t.createReflectSetCall(Re,yn,Pr,Ce))}}}return fn(A,ve,e)}function L_(A){if(Pu(A,ke)&&(A=Lu(e,A)),Kl(A,!0)){const Ce=zo(A.left),Re=Ue(A.right,ve,nt);return t.updateBinaryExpression(A,Ce,A.operatorToken,Re)}return zo(A)}function _l(A){if(du(A.expression)){const Ce=zo(A.expression);return t.updateSpreadElement(A,Ce)}return fn(A,ve,e)}function Bf(A){if(Cw(A)){if(jd(A))return _l(A);if(!dl(A))return L_(A)}return fn(A,ve,e)}function Rs(A){const Ce=Ue(A.name,ve,Jc);if(Kl(A.initializer,!0)){const Re=L_(A.initializer);return t.updatePropertyAssignment(A,Ce,Re)}if(du(A.initializer)){const Re=zo(A.initializer);return t.updatePropertyAssignment(A,Ce,Re)}return fn(A,ve,e)}function po(A){return Pu(A,ke)&&(A=Lu(e,A)),fn(A,ve,e)}function Ba(A){if(du(A.expression)){const Ce=zo(A.expression);return t.updateSpreadAssignment(A,Ce)}return fn(A,ve,e)}function Fa(A){return E.assertNode(A,kw),sh(A)?Ba(A):nf(A)?po(A):Ec(A)?Rs(A):fn(A,ve,e)}function Wt(A){return u_(A)?t.updateArrayLiteralExpression(A,Dn(A.elements,Bf,nt)):t.updateObjectLiteralExpression(A,Dn(A.properties,Fa,H0))}function pc(A,Ce,Re){const xt=Ko(Ce),yn=Q.get(xt);if(yn){const Pr=H,En=Ne;H=yn,Ne=G,G=!ec(xt)||!(xp(xt)&32),ee(A,Ce,Re),G=Ne,Ne=En,H=Pr;return}switch(Ce.kind){case 218:if(Po(xt)||ma(Ce)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Pr=H,En=Ne;H=void 0,Ne=G,G=!1,ee(A,Ce,Re),G=Ne,Ne=En,H=Pr;return}case 167:{const Pr=H,En=G;H=H==null?void 0:H.previous,G=Ne,ee(A,Ce,Re),G=En,H=Pr;return}}ee(A,Ce,Re)}function h_(A,Ce){return Ce=j(A,Ce),A===1?M_(Ce):Ce}function M_(A){switch(A.kind){case 80:return vo(A);case 110:return q_(A)}return A}function q_(A){if(Z&2&&(H==null?void 0:H.data)&&!ne.has(A)){const{facts:Ce,classConstructor:Re,classThis:xt}=H.data,yn=G&&xt!=null?xt:Re;if(yn)return Ke(or(t.cloneNode(yn),A),A);if(Ce&1&&x)return t.createParenthesizedExpression(t.createVoidZero())}return A}function vo(A){return $o(A)||A}function $o(A){if(Z&1&&f.getNodeCheckFlags(A)&536870912){const Ce=f.getReferencedValueDeclaration(A);if(Ce){const Re=oe[Ce.id];if(Re){const xt=t.cloneNode(Re);return Ca(xt,A),Xc(xt,A),xt}}}}}function VIe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function UIe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function WIe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function qIe(e){return!Pb(e)&&e.escapedText==="#constructor"}function HIe(e){return Ei(e.left)&&e.operatorToken.kind===103}function GIe(e){return Fs(e)&&$c(e)}function v4(e){return ec(e)||GIe(e)}var $Ie=Rt({"src/compiler/transformers/classFields.ts"(){Ls()}});function rge(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),a=e.getCompilerOptions(),o=Ia(a),l=rp(a,"strictNullChecks");let u,f;return{serializeTypeNode:(_e,X)=>g(_e,N,X),serializeTypeOfNode:(_e,X)=>g(_e,y,X),serializeParameterTypesOfNode:(_e,X,H)=>g(_e,x,X,H),serializeReturnTypeOfNode:(_e,X)=>g(_e,C,X)};function g(_e,X,H,Q){const ne=u,ue=f;u=_e.currentLexicalScope,f=_e.currentNameScope;const fe=Q===void 0?X(H):X(H,Q);return u=ne,f=ue,fe}function m(_e){const X=i.getAllAccessorDeclarations(_e);return X.setAccessor&&k_e(X.setAccessor)||X.getAccessor&&ep(X.getAccessor)}function y(_e){switch(_e.kind){case 172:case 169:return N(_e.type);case 178:case 177:return N(m(_e));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function x(_e,X){const H=ni(_e)?ng(_e):Cs(_e)&&Qf(_e.body)?_e:void 0,Q=[];if(H){const ne=k(H,X),ue=ne.length;for(let fe=0;fene.parent&&Z6(ne.parent)&&(ne.parent.trueType===ne||ne.parent.falseType===ne)))return t.createIdentifier("Object");const H=j(_e.typeName),Q=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(Q,H),"function"),void 0,Q,void 0,t.createIdentifier("Object"));case 1:return ee(_e.typeName);case 2:return t.createVoidZero();case 4:return oe("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return oe("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return E.assertNever(X)}}function Y(_e,X){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(_e),t.createStringLiteral("undefined")),X)}function j(_e){if(_e.kind===80){const Q=ee(_e);return Y(Q,Q)}if(_e.left.kind===80)return Y(ee(_e.left),ee(_e));const X=j(_e.left),H=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(X.left,t.createStrictInequality(t.createAssignment(H,X.right),t.createVoidZero())),t.createPropertyAccessExpression(H,_e.right))}function ee(_e){switch(_e.kind){case 80:const X=Ta(Ke(Cm.cloneNode(_e),_e),_e.parent);return X.original=void 0,Ta(X,ts(u)),X;case 166:return R(_e)}}function R(_e){return t.createPropertyAccessExpression(ee(_e.left),_e.right)}function Z(_e){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(_e),"function"),void 0,t.createIdentifier(_e),void 0,t.createIdentifier("Object"))}function oe(_e,X){return oyA(Pn)||Wl(Pn)?void 0:Pn,wo),_r=Md(Je),xn=rt(Je),Bt=l<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),er=Dn(Je.heritageClauses,y,tf);let xr=Dn(Je.members,y,Nl),pi=[];({members:xr,decorationStatements:pi}=D(Je,xr));const ki=l>=9&&!!xn&&dt(xr,Pn=>Fs(Pn)&&Lr(Pn,32)||ec(Pn));ki&&(xr=Ke(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(xn,t.createThis()))])),...xr]),xr));const Nr=t.createClassExpression(bt,ot&&Jo(ot)?void 0:ot,void 0,er,xr);or(Nr,Je),Ke(Nr,_r);const pt=xn&&!ki?t.createAssignment(xn,Nr):Nr,ur=t.createVariableDeclaration(Bt,void 0,void 0,pt);or(ur,Je);const hn=t.createVariableDeclarationList([ur],1),Ct=t.createVariableStatement(void 0,hn);or(Ct,Je),Ke(Ct,_r),Xc(Ct,Je);const cn=[Ct];if(Fr(cn,pi),Ne(cn,Je),Jt)if(Pt){const Pn=t.createExportDefault(Bt);cn.push(Pn)}else{const Pn=t.createExternalModuleExport(t.getDeclarationName(Je));cn.push(Pn)}return cn}function U(Je){return t.updateClassExpression(Je,Dn(Je.modifiers,m,Zs),Je.name,void 0,Dn(Je.heritageClauses,y,tf),Dn(Je.members,y,Nl))}function Y(Je){return t.updateConstructorDeclaration(Je,Dn(Je.modifiers,m,Zs),Dn(Je.parameters,y,rs),Ue(Je.body,y,vs))}function j(Je,ot){return Je!==ot&&(Xc(Je,ot),Ca(Je,Md(ot))),Je}function ee(Je){return j(t.updateMethodDeclaration(Je,Dn(Je.modifiers,m,Zs),Je.asteriskToken,E.checkDefined(Ue(Je.name,y,Jc)),void 0,void 0,Dn(Je.parameters,y,rs),void 0,Ue(Je.body,y,vs)),Je)}function R(Je){return j(t.updateGetAccessorDeclaration(Je,Dn(Je.modifiers,m,Zs),E.checkDefined(Ue(Je.name,y,Jc)),Dn(Je.parameters,y,rs),void 0,Ue(Je.body,y,vs)),Je)}function Z(Je){return j(t.updateSetAccessorDeclaration(Je,Dn(Je.modifiers,m,Zs),E.checkDefined(Ue(Je.name,y,Jc)),Dn(Je.parameters,y,rs),Ue(Je.body,y,vs)),Je)}function oe(Je){if(!(Je.flags&33554432||Lr(Je,2)))return j(t.updatePropertyDeclaration(Je,Dn(Je.modifiers,m,Zs),E.checkDefined(Ue(Je.name,y,Jc)),void 0,void 0,Ue(Je.initializer,y,nt)),Je)}function _e(Je){const ot=t.updateParameterDeclaration(Je,cpe(t,Je.modifiers),Je.dotDotDotToken,E.checkDefined(Ue(Je.name,y,Ib)),void 0,void 0,Ue(Je.initializer,y,nt));return ot!==Je&&(Xc(ot,Je),Ke(ot,Md(Je)),Ca(ot,Md(Je)),Xn(ot.name,64)),ot}function X(Je){return Z3(Je.expression,"___metadata")}function H(Je){if(!Je)return;const{false:ot,true:Jt}=coe(Je.decorators,X),Pt=[];return Fr(Pt,an(ot,Xe)),Fr(Pt,Na(Je.parameters,ve)),Fr(Pt,an(Jt,Xe)),Pt}function Q(Je,ot,Jt){Fr(Je,an(fe(ot,Jt),Pt=>t.createExpressionStatement(Pt)))}function ne(Je,ot,Jt){return Uw(!0,Je,Jt)&&ot===Os(Je)}function ue(Je,ot){return zr(Je.members,Jt=>ne(Jt,ot,Je))}function fe(Je,ot){const Jt=ue(Je,ot);let Pt;for(const bt of Jt)Pt=dn(Pt,G(Je,bt));return Pt}function G(Je,ot){const Jt=AL(ot,Je,!0),Pt=H(Jt);if(!Pt)return;const bt=pe(Je,ot),_r=be(ot,!Lr(ot,2)),xn=l>0?Fs(ot)&&!ym(ot)?t.createVoidZero():t.createNull():void 0,Bt=r().createDecorateHelper(Pt,bt,_r,xn);return Xn(Bt,3072),Ca(Bt,Md(ot)),Bt}function Ne(Je,ot){const Jt=De(ot);Jt&&Je.push(or(t.createExpressionStatement(Jt),ot))}function De(Je){const ot=q$(Je),Jt=H(ot);if(!Jt)return;const Pt=f&&f[t_(Je)],bt=l<2?t.getInternalName(Je,!1,!0):t.getDeclarationName(Je,!1,!0),_r=r().createDecorateHelper(Jt,bt),xn=t.createAssignment(bt,Pt?t.createAssignment(Pt,_r):_r);return Xn(xn,3072),Ca(xn,Md(Je)),xn}function Xe(Je){return E.checkDefined(Ue(Je.expression,y,nt))}function ve(Je,ot){let Jt;if(Je){Jt=[];for(const Pt of Je){const bt=r().createParamHelper(Xe(Pt),ot);Ke(bt,Pt.expression),Xn(bt,3072),Jt.push(bt)}}return Jt}function be(Je,ot){const Jt=Je.name;return Ei(Jt)?t.createIdentifier(""):Ga(Jt)?ot&&!Ud(Jt.expression)?t.getGeneratedNameForNode(Jt):Jt.expression:we(Jt)?t.createStringLiteral(lr(Jt)):t.cloneNode(Jt)}function xe(){f||(e.enableSubstitution(80),f=[])}function rt(Je){if(a.getNodeCheckFlags(Je)&262144){xe();const ot=t.createUniqueName(Je.name&&!Jo(Je.name)?lr(Je.name):"default");return f[t_(Je)]=ot,i(ot),ot}}function ct(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function pe(Je,ot){return Os(ot)?t.getDeclarationName(Je):ct(Je)}function Pe(Je,ot){return ot=u(Je,ot),Je===1?Ge(ot):ot}function Ge(Je){switch(Je.kind){case 80:return tt(Je)}return Je}function tt(Je){var ot;return(ot=mt(Je))!=null?ot:Je}function mt(Je){if(f&&a.getNodeCheckFlags(Je)&536870912){const ot=a.getReferencedValueDeclaration(Je);if(ot){const Jt=f[ot.id];if(Jt){const Pt=t.cloneNode(Jt);return Ca(Pt,Je),Xc(Pt,Je),Pt}}}}}var QIe=Rt({"src/compiler/transformers/legacyDecorators.ts"(){Ls()}});function sge(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,l=Ia(e.getCompilerOptions());let u,f,g,m,y,x;return Pp(e,k);function k(B){u=void 0,x=!1;const le=fn(B,Z,e);return Kg(le,e.readEmitHelpers()),x&&(eS(le,32),x=!1),le}function C(){switch(f=void 0,g=void 0,m=void 0,u==null?void 0:u.kind){case"class":f=u.classInfo;break;case"class-element":f=u.next.classInfo,g=u.classThis,m=u.classSuper;break;case"name":const B=u.next.next.next;(B==null?void 0:B.kind)==="class-element"&&(f=B.next.classInfo,g=B.classThis,m=B.classSuper);break}}function N(B){u={kind:"class",next:u,classInfo:B,savedPendingExpressions:y},y=void 0,C()}function D(){E.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,C()}function M(B){var le,W;E.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"class-element",next:u},(ec(B)||Fs(B)&&$c(B))&&(u.classThis=(le=u.next.classInfo)==null?void 0:le.classThis,u.classSuper=(W=u.next.classInfo)==null?void 0:W.classSuper),C()}function V(){var B;E.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),E.assert(((B=u.next)==null?void 0:B.kind)==="class","Incorrect value for top.next.kind.",()=>{var le;return`Expected top.next.kind to be 'class' but got '${(le=u.next)==null?void 0:le.kind}' instead.`}),u=u.next,C()}function U(){E.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"name",next:u},C()}function Y(){E.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u==null?void 0:u.kind}' instead.`),u=u.next,C()}function j(){(u==null?void 0:u.kind)==="other"?(E.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,C())}function ee(){E.assert((u==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u==null?void 0:u.kind}' instead.`),u.depth>0?(E.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,C())}function R(B){return!!(B.transformFlags&33554432)||!!g&&!!(B.transformFlags&16384)||!!g&&!!m&&!!(B.transformFlags&134217728)}function Z(B){if(!R(B))return B;switch(B.kind){case 170:return E.fail("Use `modifierVisitor` instead.");case 263:return De(B);case 231:return Xe(B);case 176:case 172:case 175:return E.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return _r(B);case 226:return pi(B,!1);case 303:return Ct(B);case 260:return cn(B);case 208:return Pn(B);case 277:return kt(B);case 110:return Je(B);case 248:return er(B);case 244:return xr(B);case 361:return Nr(B,!1);case 217:return it(B,!1);case 360:return Vt(B,!1);case 213:return ot(B);case 215:return Jt(B);case 224:case 225:return ki(B,!1);case 211:return Pt(B);case 212:return bt(B);case 167:return hn(B);case 174:case 178:case 177:case 218:case 262:{j();const le=fn(B,oe,e);return ee(),le}default:return fn(B,oe,e)}}function oe(B){switch(B.kind){case 170:return;default:return Z(B)}}function _e(B){switch(B.kind){case 170:return;default:return B}}function X(B){switch(B.kind){case 176:return xe(B);case 174:return pe(B);case 177:return Pe(B);case 178:return Ge(B);case 172:return mt(B);case 175:return tt(B);default:return Z(B)}}function H(B){switch(B.kind){case 224:case 225:return ki(B,!0);case 226:return pi(B,!0);case 361:return Nr(B,!0);case 217:return it(B,!0);default:return Z(B)}}function Q(B){let le=B.name&&we(B.name)&&!Jo(B.name)?lr(B.name):B.name&&Ei(B.name)&&!Jo(B.name)?lr(B.name).slice(1):B.name&&fa(B.name)&&pf(B.name.text,99)?B.name.text:ni(B)?"class":"member";return r1(B)&&(le=`get_${le}`),G0(B)&&(le=`set_${le}`),B.name&&Ei(B.name)&&(le=`private_${le}`),Os(B)&&(le=`static_${le}`),"_"+le}function ne(B,le){return t.createUniqueName(`${Q(B)}_${le}`,24)}function ue(B,le){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(B,void 0,void 0,le)],1))}function fe(B){const le=t.createUniqueName("_metadata",48);let W,ge,F=!1,ye=!1,Oe=!1;for(const We of B.members)if(Yce(We)&&Uw(!1,We,B)&&($c(We)?ge!=null||(ge=t.createUniqueName("_staticExtraInitializers",48)):W!=null||(W=t.createUniqueName("_instanceExtraInitializers",48))),ec(We)?ES(We)||(F=!0):Fs(We)&&($c(We)?F||(F=!!We.initializer||Ff(We)):ye||(ye=!LW(We))),(N_(We)||nu(We))&&$c(We)&&(Oe=!0),ge&&W&&F&&ye&&Oe)break;return{class:B,metadataReference:le,instanceExtraInitializersName:W,staticExtraInitializersName:ge,hasStaticInitializers:F,hasNonAmbientInstanceFields:ye,hasStaticPrivateClassElements:Oe}}function G(B){var Yr,cs,Ms;i(),!Z$(B)&&o1(!1,B)&&(B=PL(e,B,t.createStringLiteral("")));const le=t.getLocalName(B,!1,!1,!0),W=fe(B),ge=[];let F,ye,Oe,We,Tt=!1;const It=Me(q$(B));if(It){W.classDecoratorsName=t.createUniqueName("_classDecorators",48),W.classDescriptorName=t.createUniqueName("_classDescriptor",48),W.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48);const di=dt(B.members,ln=>(N_(ln)||nu(ln))&&$c(ln));W.classThis=t.createUniqueName("_classThis",di?24:48),ge.push(ue(W.classDecoratorsName,t.createArrayLiteralExpression(It)),ue(W.classDescriptorName),ue(W.classExtraInitializersName,t.createArrayLiteralExpression()),ue(W.classThis)),W.hasStaticPrivateClassElements&&(Tt=!0,x=!0)}const on=_D(B.heritageClauses,96),kn=on&&wl(on.types),ir=kn&&Ue(kn.expression,Z,nt);if(ir){W.classSuper=t.createUniqueName("_classSuper",48);const di=nl(ir),ln=Fl(di)&&!di.name||_o(di)&&!di.name||Po(di)?t.createComma(t.createNumericLiteral(0),ir):ir;ge.push(ue(W.classSuper,ln));const tc=t.updateExpressionWithTypeArguments(kn,W.classSuper,void 0),qi=t.updateHeritageClause(on,[tc]);We=t.createNodeArray([qi])}const ar=(Yr=W.classThis)!=null?Yr:t.createThis();N(W),F=dn(F,Nt(W.metadataReference,W.classSuper));let jn=Dn(B.members,X,Nl);if(y){let di;for(let ln of y){ln=Ue(ln,function qi(Es){if(!(Es.transformFlags&16384))return Es;switch(Es.kind){case 110:return di||(di=t.createUniqueName("_outerThis",16),ge.unshift(ue(di,t.createThis()))),di;default:return fn(Es,qi,e)}},nt);const tc=t.createExpressionStatement(ln);F=dn(F,tc)}y=void 0}if(D(),W.instanceExtraInitializersName&&!ng(B)){const di=ve(B,W);if(di){const ln=Od(B),tc=!!(ln&&nl(ln.expression).kind!==106),qi=[];if(tc){const Ea=t.createSpreadElement(t.createIdentifier("arguments")),ro=t.createCallExpression(t.createSuper(),void 0,[Ea]);qi.push(t.createExpressionStatement(ro))}Fr(qi,di);const Es=t.createBlock(qi,!0);Oe=t.createConstructorDeclaration(void 0,[],Es)}}if(W.staticExtraInitializersName&&ge.push(ue(W.staticExtraInitializersName,t.createArrayLiteralExpression())),W.instanceExtraInitializersName&&ge.push(ue(W.instanceExtraInitializersName,t.createArrayLiteralExpression())),W.memberInfos&&Au(W.memberInfos,(di,ln)=>{Os(ln)&&(ge.push(ue(di.memberDecoratorsName)),di.memberInitializersName&&ge.push(ue(di.memberInitializersName,t.createArrayLiteralExpression())),di.memberDescriptorName&&ge.push(ue(di.memberDescriptorName)))}),W.memberInfos&&Au(W.memberInfos,(di,ln)=>{Os(ln)||(ge.push(ue(di.memberDecoratorsName)),di.memberInitializersName&&ge.push(ue(di.memberInitializersName,t.createArrayLiteralExpression())),di.memberDescriptorName&&ge.push(ue(di.memberDescriptorName)))}),F=Fr(F,W.staticNonFieldDecorationStatements),F=Fr(F,W.nonStaticNonFieldDecorationStatements),F=Fr(F,W.staticFieldDecorationStatements),F=Fr(F,W.nonStaticFieldDecorationStatements),W.classDescriptorName&&W.classDecoratorsName&&W.classExtraInitializersName&&W.classThis){F!=null||(F=[]);const di=t.createPropertyAssignment("value",ar),ln=t.createObjectLiteralExpression([di]),tc=t.createAssignment(W.classDescriptorName,ln),qi=t.createPropertyAccessExpression(ar,"name"),Es=r().createESDecorateHelper(t.createNull(),tc,W.classDecoratorsName,{kind:"class",name:qi,metadata:W.metadataReference},t.createNull(),W.classExtraInitializersName),Ea=t.createExpressionStatement(Es);Ca(Ea,eh(B)),F.push(Ea);const ro=t.createPropertyAccessExpression(W.classDescriptorName,"value"),za=t.createAssignment(W.classThis,ro),Pc=t.createAssignment(le,za);F.push(t.createExpressionStatement(Pc))}if(F.push(hi(ar,W.metadataReference)),W.staticExtraInitializersName){const di=r().createRunInitializersHelper(ar,W.staticExtraInitializersName),ln=t.createExpressionStatement(di);Ca(ln,(cs=B.name)!=null?cs:eh(B)),F=dn(F,ln)}if(W.classExtraInitializersName){const di=r().createRunInitializersHelper(ar,W.classExtraInitializersName),ln=t.createExpressionStatement(di);Ca(ln,(Ms=B.name)!=null?Ms:eh(B)),ye=dn(ye,ln)}F&&ye&&!W.hasStaticInitializers&&(Fr(F,ye),ye=void 0);const oi=F&&t.createClassStaticBlockDeclaration(t.createBlock(F,!0));oi&&Tt&&QD(oi,32);const ea=ye&&t.createClassStaticBlockDeclaration(t.createBlock(ye,!0));if(oi||Oe||ea){const di=[],ln=jn.findIndex(ES);oi?(Fr(di,jn,0,ln+1),di.push(oi),Fr(di,jn,ln+1)):Fr(di,jn),Oe&&di.push(Oe),ea&&di.push(ea),jn=Ke(t.createNodeArray(di),jn)}const gs=a();let Us;if(It){Us=t.createClassExpression(void 0,void 0,void 0,We,jn),W.classThis&&(Us=Yme(t,Us,W.classThis));const di=t.createVariableDeclaration(le,void 0,void 0,Us),ln=t.createVariableDeclarationList([di]),tc=W.classThis?t.createAssignment(le,W.classThis):le;ge.push(t.createVariableStatement(void 0,ln),t.createReturnStatement(tc))}else Us=t.createClassExpression(void 0,B.name,void 0,We,jn),ge.push(t.createReturnStatement(Us));if(Tt){eS(Us,32);for(const di of Us.members)(N_(di)||nu(di))&&$c(di)&&eS(di,32)}return or(Us,B),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ge,gs))}function Ne(B){return o1(!1,B)||o3(!1,B)}function De(B){var le;if(Ne(B)){const W=[],ge=(le=Ko(B,ni))!=null?le:B,F=ge.name?t.createStringLiteralFromNode(ge.name):t.createStringLiteral("default"),ye=Lr(B,1),Oe=Lr(B,1024);if(B.name||(B=PL(e,B,F)),ye&&Oe){const We=G(B);if(B.name){const Tt=t.createVariableDeclaration(t.getLocalName(B),void 0,void 0,We);or(Tt,B);const It=t.createVariableDeclarationList([Tt],1),on=t.createVariableStatement(void 0,It);W.push(on);const kn=t.createExportDefault(t.getDeclarationName(B));or(kn,B),Xc(kn,Bd(B)),Ca(kn,eh(B)),W.push(kn)}else{const Tt=t.createExportDefault(We);or(Tt,B),Xc(Tt,Bd(B)),Ca(Tt,eh(B)),W.push(Tt)}}else{E.assertIsDefined(B.name,"A class declaration that is not a default export must have a name.");const We=G(B),Tt=ye?jn=>aS(jn)?void 0:_e(jn):_e,It=Dn(B.modifiers,Tt,Zs),on=t.getLocalName(B,!1,!0),kn=t.createVariableDeclaration(on,void 0,void 0,We);or(kn,B);const ir=t.createVariableDeclarationList([kn],1),ar=t.createVariableStatement(It,ir);if(or(ar,B),Xc(ar,Bd(B)),W.push(ar),ye){const jn=t.createExternalModuleExport(on);or(jn,B),W.push(jn)}}return cm(W)}else{const W=Dn(B.modifiers,_e,Zs),ge=Dn(B.heritageClauses,Z,tf);N(void 0);const F=Dn(B.members,X,Nl);return D(),t.updateClassDeclaration(B,W,B.name,void 0,ge,F)}}function Xe(B){if(Ne(B)){const le=G(B);return or(le,B),le}else{const le=Dn(B.modifiers,_e,Zs),W=Dn(B.heritageClauses,Z,tf);N(void 0);const ge=Dn(B.members,X,Nl);return D(),t.updateClassExpression(B,le,B.name,void 0,W,ge)}}function ve(B,le){if(le.instanceExtraInitializersName&&!le.hasNonAmbientInstanceFields){const W=[];return W.push(t.createExpressionStatement(r().createRunInitializersHelper(t.createThis(),le.instanceExtraInitializersName))),W}}function be(B,le,W,ge,F,ye){const Oe=ge[F],We=le[Oe];if(Fr(B,Dn(le,Z,Fi,W,Oe-W)),g2(We)){const Tt=[];be(Tt,We.tryBlock.statements,0,ge,F+1,ye);const It=t.createNodeArray(Tt);Ke(It,We.tryBlock.statements),B.push(t.updateTryStatement(We,t.updateBlock(We.tryBlock,Tt),Ue(We.catchClause,Z,Iy),Ue(We.finallyBlock,Z,vs)))}else Fr(B,Dn(le,Z,Fi,Oe,1)),Fr(B,ye);Fr(B,Dn(le,Z,Fi,Oe+1))}function xe(B){M(B);const le=Dn(B.modifiers,_e,Zs),W=Dn(B.parameters,Z,rs);let ge;if(B.body&&f){const F=ve(f.class,f);if(F){const ye=[],Oe=t.copyPrologue(B.body.statements,ye,!1,Z),We=KA(B.body.statements,Oe);We.length>0?be(ye,B.body.statements,Oe,We,0,F):(Fr(ye,F),Fr(ye,Dn(B.body.statements,Z,Fi))),ge=t.createBlock(ye,!0),or(ge,B.body),Ke(ge,B.body)}}return ge!=null||(ge=Ue(B.body,Z,vs)),V(),t.updateConstructorDeclaration(B,le,W,ge)}function rt(B,le){return B!==le&&(Xc(B,le),Ca(B,eh(le))),B}function ct(B,le,W){var on,kn,ir,ar,jn,oi,ea,gs;let ge,F,ye,Oe,We;if(!le){const Us=Dn(B.modifiers,_e,Zs);return U(),F=ur(B.name),Y(),{modifiers:Us,referencedName:ge,name:F,initializersName:ye,descriptorName:We,thisArg:Oe}}const Tt=Me(AL(B,le.class,!1)),It=Dn(B.modifiers,_e,Zs);if(Tt){const Us=ne(B,"decorators"),Yr=t.createArrayLiteralExpression(Tt),cs=t.createAssignment(Us,Yr),Ms={memberDecoratorsName:Us};(on=le.memberInfos)!=null||(le.memberInfos=new Map),le.memberInfos.set(B,Ms),y!=null||(y=[]),y.push(cs);const di=i6(B)||nu(B)?Os(B)?(kn=le.staticNonFieldDecorationStatements)!=null?kn:le.staticNonFieldDecorationStatements=[]:(ir=le.nonStaticNonFieldDecorationStatements)!=null?ir:le.nonStaticNonFieldDecorationStatements=[]:Fs(B)&&!nu(B)?Os(B)?(ar=le.staticFieldDecorationStatements)!=null?ar:le.staticFieldDecorationStatements=[]:(jn=le.nonStaticFieldDecorationStatements)!=null?jn:le.nonStaticFieldDecorationStatements=[]:E.fail(),ln=gf(B)?"getter":Fu(B)?"setter":kc(B)?"method":nu(B)?"accessor":Fs(B)?"field":E.fail();let tc;if(we(B.name)||Ei(B.name))tc={computed:!1,name:B.name};else if(Fd(B.name))tc={computed:!0,name:t.createStringLiteralFromNode(B.name)};else{const Ea=B.name.expression;Fd(Ea)&&!we(Ea)?tc={computed:!0,name:t.createStringLiteralFromNode(Ea)}:(U(),{referencedName:ge,name:F}=pt(B.name),tc={computed:!0,name:ge},Y())}const qi={kind:ln,name:tc,static:Os(B),private:Ei(B.name),access:{get:Fs(B)||gf(B)||kc(B),set:Fs(B)||Fu(B)},metadata:le.metadataReference},Es=Os(B)?(oi=le.staticExtraInitializersName)!=null?oi:le.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",48):(ea=le.instanceExtraInitializersName)!=null?ea:le.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",48);if(i6(B)){let Ea;N_(B)&&W&&(Ea=W(B,Dn(It,Pc=>Hr(Pc,K3),Zs)),Ms.memberDescriptorName=We=ne(B,"descriptor"),Ea=t.createAssignment(We,Ea));const ro=r().createESDecorateHelper(t.createThis(),Ea!=null?Ea:t.createNull(),Us,qi,t.createNull(),Es),za=t.createExpressionStatement(ro);Ca(za,eh(B)),di.push(za)}else if(Fs(B)){ye=(gs=Ms.memberInitializersName)!=null?gs:Ms.memberInitializersName=ne(B,"initializers"),Os(B)&&(Oe=le.classThis);let Ea;N_(B)&&ym(B)&&W&&(Ea=W(B,void 0),Ms.memberDescriptorName=We=ne(B,"descriptor"),Ea=t.createAssignment(We,Ea));const ro=r().createESDecorateHelper(nu(B)?t.createThis():t.createNull(),Ea!=null?Ea:t.createNull(),Us,qi,ye,Es),za=t.createExpressionStatement(ro);Ca(za,eh(B)),di.push(za)}}return F===void 0&&(U(),F=ur(B.name),Y()),!dt(It)&&(kc(B)||Fs(B))&&Xn(F,1024),{modifiers:It,referencedName:ge,name:F,initializersName:ye,descriptorName:We,thisArg:Oe}}function pe(B){M(B);const{modifiers:le,name:W,descriptorName:ge}=ct(B,f,K);if(ge)return V(),rt(_t(le,W,ge),B);{const F=Dn(B.parameters,Z,rs),ye=Ue(B.body,Z,vs);return V(),rt(t.updateMethodDeclaration(B,le,B.asteriskToken,W,void 0,void 0,F,void 0,ye),B)}}function Pe(B){M(B);const{modifiers:le,name:W,descriptorName:ge}=ct(B,f,$e);if(ge)return V(),rt(jt(le,W,ge),B);{const F=Dn(B.parameters,Z,rs),ye=Ue(B.body,Z,vs);return V(),rt(t.updateGetAccessorDeclaration(B,le,W,F,void 0,ye),B)}}function Ge(B){M(B);const{modifiers:le,name:W,descriptorName:ge}=ct(B,f,Ae);if(ge)return V(),rt(Fn(le,W,ge),B);{const F=Dn(B.parameters,Z,rs),ye=Ue(B.body,Z,vs);return V(),rt(t.updateSetAccessorDeclaration(B,le,W,F,ye),B)}}function tt(B){M(B);let le;if(ES(B))le=fn(B,Z,e);else if(w8(B)){const W=g;g=void 0,le=fn(B,Z,e),g=W}else f&&(f.hasStaticInitializers=!0),le=fn(B,Z,e);return V(),le}function mt(B){Pu(B,xn)&&(B=Lu(e,B,Bt(B.initializer))),M(B),E.assert(!LW(B),"Not yet implemented.");const{modifiers:le,name:W,initializersName:ge,descriptorName:F,thisArg:ye}=ct(B,f,ym(B)?ht:void 0);i();let Oe=Ue(B.initializer,Z,nt);ge&&(Oe=r().createRunInitializersHelper(ye!=null?ye:t.createThis(),ge,Oe!=null?Oe:t.createVoidZero())),!Os(B)&&(f==null?void 0:f.instanceExtraInitializersName)&&!(f!=null&&f.hasInjectedInstanceInitializers)&&(f.hasInjectedInstanceInitializers=!0,Oe!=null||(Oe=t.createVoidZero()),Oe=t.createParenthesizedExpression(t.createComma(r().createRunInitializersHelper(t.createThis(),f.instanceExtraInitializersName),Oe))),Os(B)&&f&&Oe&&(f.hasStaticInitializers=!0);const We=a();if(dt(We)&&(Oe=t.createImmediatelyInvokedArrowFunction([...We,t.createReturnStatement(Oe)])),V(),ym(B)&&F){const Tt=Bd(B),It=wy(B),on=B.name;let kn=on,ir=on;if(Ga(on)&&!Ud(on.expression)){const gs=FF(on);if(gs)kn=t.updateComputedPropertyName(on,Ue(on.expression,Z,nt)),ir=t.updateComputedPropertyName(on,gs.left);else{const Us=t.createTempVariable(o);Ca(Us,on.expression);const Yr=Ue(on.expression,Z,nt),cs=t.createAssignment(Us,Yr);Ca(cs,on.expression),kn=t.updateComputedPropertyName(on,cs),ir=t.updateComputedPropertyName(on,Us)}}const ar=Dn(le,gs=>gs.kind!==129?gs:void 0,Zs),jn=SG(t,B,ar,Oe);or(jn,B),Xn(jn,3072),Ca(jn,It),Ca(jn.name,B.name);const oi=jt(ar,kn,F);or(oi,B),Xc(oi,Tt),Ca(oi,It);const ea=Fn(ar,ir,F);return or(ea,B),Xn(ea,3072),Ca(ea,It),[jn,oi,ea]}return rt(t.updatePropertyDeclaration(B,le,W,void 0,void 0,Oe),B)}function Je(B){return g!=null?g:B}function ot(B){if(iu(B.expression)&&g){const le=Ue(B.expression,Z,nt),W=Dn(B.arguments,Z,nt),ge=t.createFunctionCallCall(le,g,W);return or(ge,B),Ke(ge,B),ge}return fn(B,Z,e)}function Jt(B){if(iu(B.tag)&&g){const le=Ue(B.tag,Z,nt),W=t.createFunctionBindCall(le,g,[]);or(W,B),Ke(W,B);const ge=Ue(B.template,Z,s6);return t.updateTaggedTemplateExpression(B,W,void 0,ge)}return fn(B,Z,e)}function Pt(B){if(iu(B)&&we(B.name)&&g&&m){const le=t.createStringLiteralFromNode(B.name),W=t.createReflectGetCall(m,le,g);return or(W,B.expression),Ke(W,B.expression),W}return fn(B,Z,e)}function bt(B){if(iu(B)&&g&&m){const le=Ue(B.argumentExpression,Z,nt),W=t.createReflectGetCall(m,le,g);return or(W,B.expression),Ke(W,B.expression),W}return fn(B,Z,e)}function _r(B){Pu(B,xn)&&(B=Lu(e,B,Bt(B.initializer)));const le=t.updateParameterDeclaration(B,void 0,B.dotDotDotToken,Ue(B.name,Z,Ib),void 0,void 0,Ue(B.initializer,Z,nt));return le!==B&&(Xc(le,B),Ke(le,Md(B)),Ca(le,Md(B)),Xn(le.name,64)),le}function xn(B){return Fl(B)&&!B.name&&Ne(B)}function Bt(B){const le=nl(B);return Fl(le)&&!le.name&&!o1(!1,le)}function er(B){return t.updateForStatement(B,Ue(B.initializer,H,If),Ue(B.condition,Z,nt),Ue(B.incrementor,H,nt),W_(B.statement,Z,e))}function xr(B){return fn(B,H,e)}function pi(B,le){if(Z0(B)){const W=ut(B.left),ge=Ue(B.right,Z,nt);return t.updateBinaryExpression(B,W,B.operatorToken,ge)}if(Kl(B)){if(Pu(B,xn))return B=Lu(e,B,Bt(B.right)),fn(B,Z,e);if(iu(B.left)&&g&&m){let W=No(B.left)?Ue(B.left.argumentExpression,Z,nt):we(B.left.name)?t.createStringLiteralFromNode(B.left.name):void 0;if(W){let ge=Ue(B.right,Z,nt);if(C8(B.operatorToken.kind)){let ye=W;Ud(W)||(ye=t.createTempVariable(o),W=t.createAssignment(ye,W));const Oe=t.createReflectGetCall(m,ye,g);or(Oe,B.left),Ke(Oe,B.left),ge=t.createBinaryExpression(Oe,E8(B.operatorToken.kind),ge),Ke(ge,B)}const F=le?void 0:t.createTempVariable(o);return F&&(ge=t.createAssignment(F,ge),Ke(F,B)),ge=t.createReflectSetCall(m,W,ge,g),or(ge,B),Ke(ge,B),F&&(ge=t.createComma(ge,F),Ke(ge,B)),ge}}}if(B.operatorToken.kind===28){const W=Ue(B.left,H,nt),ge=Ue(B.right,le?H:Z,nt);return t.updateBinaryExpression(B,W,B.operatorToken,ge)}return fn(B,Z,e)}function ki(B,le){if(B.operator===46||B.operator===47){const W=lo(B.operand);if(iu(W)&&g&&m){let ge=No(W)?Ue(W.argumentExpression,Z,nt):we(W.name)?t.createStringLiteralFromNode(W.name):void 0;if(ge){let F=ge;Ud(ge)||(F=t.createTempVariable(o),ge=t.createAssignment(F,ge));let ye=t.createReflectGetCall(m,F,g);or(ye,B),Ke(ye,B);const Oe=le?void 0:t.createTempVariable(o);return ye=wF(t,B,ye,o,Oe),ye=t.createReflectSetCall(m,ge,ye,g),or(ye,B),Ke(ye,B),Oe&&(ye=t.createComma(ye,Oe),Ke(ye,B)),ye}}}return fn(B,Z,e)}function Nr(B,le){const W=le?ZA(B.elements,H):ZA(B.elements,Z,H);return t.updateCommaListExpression(B,W)}function pt(B){if(Fd(B)||Ei(B)){const ye=t.createStringLiteralFromNode(B),Oe=Ue(B,Z,Jc);return{referencedName:ye,name:Oe}}if(Fd(B.expression)&&!we(B.expression)){const ye=t.createStringLiteralFromNode(B.expression),Oe=Ue(B,Z,Jc);return{referencedName:ye,name:Oe}}const le=t.getGeneratedNameForNode(B);o(le);const W=r().createPropKeyHelper(Ue(B.expression,Z,nt)),ge=t.createAssignment(le,W),F=t.updateComputedPropertyName(B,ae(ge));return{referencedName:le,name:F}}function ur(B){return Ga(B)?hn(B):Ue(B,Z,Jc)}function hn(B){let le=Ue(B.expression,Z,nt);return Ud(le)||(le=ae(le)),t.updateComputedPropertyName(B,le)}function Ct(B){return Pu(B,xn)&&(B=Lu(e,B,Bt(B.initializer))),fn(B,Z,e)}function cn(B){return Pu(B,xn)&&(B=Lu(e,B,Bt(B.initializer))),fn(B,Z,e)}function Pn(B){return Pu(B,xn)&&(B=Lu(e,B,Bt(B.initializer))),fn(B,Z,e)}function Sr(B){if(ha(B)||u_(B))return ut(B);if(iu(B)&&g&&m){const le=No(B)?Ue(B.argumentExpression,Z,nt):we(B.name)?t.createStringLiteralFromNode(B.name):void 0;if(le){const W=t.createTempVariable(void 0),ge=t.createAssignmentTargetWrapper(W,t.createReflectSetCall(m,le,W,g));return or(ge,B),Ke(ge,B),ge}}return fn(B,Z,e)}function wi(B){if(Kl(B,!0)){Pu(B,xn)&&(B=Lu(e,B,Bt(B.right)));const le=Sr(B.left),W=Ue(B.right,Z,nt);return t.updateBinaryExpression(B,le,B.operatorToken,W)}else return Sr(B)}function Yt(B){if(du(B.expression)){const le=Sr(B.expression);return t.updateSpreadElement(B,le)}return fn(B,Z,e)}function Gt(B){return E.assertNode(B,Cw),jd(B)?Yt(B):dl(B)?fn(B,Z,e):wi(B)}function Sn(B){const le=Ue(B.name,Z,Jc);if(Kl(B.initializer,!0)){const W=wi(B.initializer);return t.updatePropertyAssignment(B,le,W)}if(du(B.initializer)){const W=Sr(B.initializer);return t.updatePropertyAssignment(B,le,W)}return fn(B,Z,e)}function Gr(B){return Pu(B,xn)&&(B=Lu(e,B,Bt(B.objectAssignmentInitializer))),fn(B,Z,e)}function Er(B){if(du(B.expression)){const le=Sr(B.expression);return t.updateSpreadAssignment(B,le)}return fn(B,Z,e)}function ze(B){return E.assertNode(B,kw),sh(B)?Er(B):nf(B)?Gr(B):Ec(B)?Sn(B):fn(B,Z,e)}function ut(B){if(u_(B)){const le=Dn(B.elements,Gt,nt);return t.updateArrayLiteralExpression(B,le)}else{const le=Dn(B.properties,ze,H0);return t.updateObjectLiteralExpression(B,le)}}function kt(B){return Pu(B,xn)&&(B=Lu(e,B,Bt(B.expression))),fn(B,Z,e)}function it(B,le){const W=le?H:Z,ge=Ue(B.expression,W,nt);return t.updateParenthesizedExpression(B,ge)}function Vt(B,le){const W=le?H:Z,ge=Ue(B.expression,W,nt);return t.updatePartiallyEmittedExpression(B,ge)}function ae(B){return dt(y)&&(yu(B)?(y.push(B.expression),B=t.updateParenthesizedExpression(B,t.inlineExpressions(y))):(y.push(B),B=t.inlineExpressions(y)),y=void 0),B}function Me(B){if(!B)return;const le=[];return Fr(le,an(B.decorators,ke)),le}function ke(B){const le=Ue(B.expression,Z,nt);Xn(le,3072);const W=nl(le);if(Mo(W)){const{target:ge,thisArg:F}=t.createCallBinding(le,o,l,!0);return t.restoreOuterExpressions(le,t.createFunctionBindCall(ge,F,[]))}return le}function ft(B,le,W,ge,F,ye,Oe){const We=t.createFunctionExpression(W,ge,void 0,void 0,ye,void 0,Oe!=null?Oe:t.createBlock([]));or(We,B),Ca(We,eh(B)),Xn(We,3072);const Tt=F==="get"||F==="set"?F:void 0,It=t.createStringLiteralFromNode(le,void 0),on=r().createSetFunctionNameHelper(We,It,Tt),kn=t.createPropertyAssignment(t.createIdentifier(F),on);return or(kn,B),Ca(kn,eh(B)),Xn(kn,3072),kn}function K(B,le){return t.createObjectLiteralExpression([ft(B,B.name,le,B.asteriskToken,"value",Dn(B.parameters,Z,rs),Ue(B.body,Z,vs))])}function $e(B,le){return t.createObjectLiteralExpression([ft(B,B.name,le,void 0,"get",[],Ue(B.body,Z,vs))])}function Ae(B,le){return t.createObjectLiteralExpression([ft(B,B.name,le,void 0,"set",Dn(B.parameters,Z,rs),Ue(B.body,Z,vs))])}function ht(B,le){return t.createObjectLiteralExpression([ft(B,B.name,le,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)))])),ft(B,B.name,le,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)),t.createIdentifier("value")))]))])}function _t(B,le,W){return B=Dn(B,ge=>oS(ge)?ge:void 0,Zs),t.createGetAccessorDeclaration(B,le,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(W,t.createIdentifier("value")))]))}function jt(B,le,W){return B=Dn(B,ge=>oS(ge)?ge:void 0,Zs),t.createGetAccessorDeclaration(B,le,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(W,t.createIdentifier("get")),t.createThis(),[]))]))}function Fn(B,le,W){return B=Dn(B,ge=>oS(ge)?ge:void 0,Zs),t.createSetAccessorDeclaration(B,le,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(W,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Nt(B,le){const W=t.createVariableDeclaration(B,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[le?z(le):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([W],2))}function hi(B,le){const W=t.createObjectDefinePropertyCall(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:le},!0));return Xn(t.createIfStatement(le,t.createExpressionStatement(W)),1)}function z(B){return t.createBinaryExpression(t.createElementAccessExpression(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var YIe=Rt({"src/compiler/transformers/esDecorators.ts"(){Ls()}});function age(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),f=Ia(u);let g,m=0,y,x,k;const C=[];let N=0;const D=e.onEmitNode,M=e.onSubstituteNode;return e.onEmitNode=_r,e.onSubstituteNode=xn,Pp(e,V);function V(pt){if(pt.isDeclarationFile)return pt;U(1,!1),U(2,!FW(pt,u));const ur=fn(pt,oe,e);return Kg(ur,e.readEmitHelpers()),ur}function U(pt,ur){N=ur?N|pt:N&~pt}function Y(pt){return(N&pt)!==0}function j(){return!Y(1)}function ee(){return Y(2)}function R(pt,ur,hn){const Ct=pt&~N;if(Ct){U(Ct,!0);const cn=ur(hn);return U(Ct,!1),cn}return ur(hn)}function Z(pt){return fn(pt,oe,e)}function oe(pt){if((pt.transformFlags&256)===0)return pt;switch(pt.kind){case 134:return;case 223:return fe(pt);case 174:return R(3,Ne,pt);case 262:return R(3,ve,pt);case 218:return R(3,be,pt);case 219:return R(1,xe,pt);case 211:return x&&kr(pt)&&pt.expression.kind===108&&x.add(pt.name.escapedText),fn(pt,oe,e);case 212:return x&&pt.expression.kind===108&&(k=!0),fn(pt,oe,e);case 177:return R(3,De,pt);case 178:return R(3,Xe,pt);case 176:return R(3,G,pt);case 263:case 231:return R(3,Z,pt);default:return fn(pt,oe,e)}}function _e(pt){if(l_e(pt))switch(pt.kind){case 243:return H(pt);case 248:return ue(pt);case 249:return Q(pt);case 250:return ne(pt);case 299:return X(pt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return fn(pt,_e,e);default:return E.assertNever(pt,"Unhandled node.")}return oe(pt)}function X(pt){const ur=new Set;rt(pt.variableDeclaration,ur);let hn;if(ur.forEach((Ct,cn)=>{y.has(cn)&&(hn||(hn=new Set(y)),hn.delete(cn))}),hn){const Ct=y;y=hn;const cn=fn(pt,_e,e);return y=Ct,cn}else return fn(pt,_e,e)}function H(pt){if(ct(pt.declarationList)){const ur=pe(pt.declarationList,!1);return ur?t.createExpressionStatement(ur):void 0}return fn(pt,oe,e)}function Q(pt){return t.updateForInStatement(pt,ct(pt.initializer)?pe(pt.initializer,!0):E.checkDefined(Ue(pt.initializer,oe,If)),E.checkDefined(Ue(pt.expression,oe,nt)),W_(pt.statement,_e,e))}function ne(pt){return t.updateForOfStatement(pt,Ue(pt.awaitModifier,oe,XH),ct(pt.initializer)?pe(pt.initializer,!0):E.checkDefined(Ue(pt.initializer,oe,If)),E.checkDefined(Ue(pt.expression,oe,nt)),W_(pt.statement,_e,e))}function ue(pt){const ur=pt.initializer;return t.updateForStatement(pt,ct(ur)?pe(ur,!1):Ue(pt.initializer,oe,If),Ue(pt.condition,oe,nt),Ue(pt.incrementor,oe,nt),W_(pt.statement,_e,e))}function fe(pt){return j()?fn(pt,oe,e):or(Ke(t.createYieldExpression(void 0,Ue(pt.expression,oe,nt)),pt),pt)}function G(pt){return t.updateConstructorDeclaration(pt,Dn(pt.modifiers,oe,Zs),Nc(pt.parameters,oe,e),Je(pt))}function Ne(pt){return t.updateMethodDeclaration(pt,Dn(pt.modifiers,oe,wo),pt.asteriskToken,pt.name,void 0,void 0,Nc(pt.parameters,oe,e),void 0,Il(pt)&2?ot(pt):Je(pt))}function De(pt){return t.updateGetAccessorDeclaration(pt,Dn(pt.modifiers,oe,wo),pt.name,Nc(pt.parameters,oe,e),void 0,Je(pt))}function Xe(pt){return t.updateSetAccessorDeclaration(pt,Dn(pt.modifiers,oe,wo),pt.name,Nc(pt.parameters,oe,e),Je(pt))}function ve(pt){return t.updateFunctionDeclaration(pt,Dn(pt.modifiers,oe,wo),pt.asteriskToken,pt.name,void 0,Nc(pt.parameters,oe,e),void 0,Il(pt)&2?ot(pt):hf(pt.body,oe,e))}function be(pt){return t.updateFunctionExpression(pt,Dn(pt.modifiers,oe,Zs),pt.asteriskToken,pt.name,void 0,Nc(pt.parameters,oe,e),void 0,Il(pt)&2?ot(pt):hf(pt.body,oe,e))}function xe(pt){return t.updateArrowFunction(pt,Dn(pt.modifiers,oe,Zs),void 0,Nc(pt.parameters,oe,e),void 0,pt.equalsGreaterThanToken,Il(pt)&2?ot(pt):hf(pt.body,oe,e))}function rt({name:pt},ur){if(we(pt))ur.add(pt.escapedText);else for(const hn of pt.elements)dl(hn)||rt(hn,ur)}function ct(pt){return!!pt&&ml(pt)&&!(pt.flags&7)&&pt.declarations.some(mt)}function pe(pt,ur){Pe(pt);const hn=w3(pt);return hn.length===0?ur?Ue(t.converters.convertToAssignmentElementTarget(pt.declarations[0].name),oe,nt):void 0:t.inlineExpressions(an(hn,tt))}function Pe(pt){pn(pt.declarations,Ge)}function Ge({name:pt}){if(we(pt))o(pt);else for(const ur of pt.elements)dl(ur)||Ge(ur)}function tt(pt){const ur=Ca(t.createAssignment(t.converters.convertToAssignmentElementTarget(pt.name),pt.initializer),pt);return E.checkDefined(Ue(ur,oe,nt))}function mt({name:pt}){if(we(pt))return y.has(pt.escapedText);for(const ur of pt.elements)if(!dl(ur)&&mt(ur))return!0;return!1}function Je(pt){E.assertIsDefined(pt.body);const ur=x,hn=k;x=new Set,k=!1;let Ct=hf(pt.body,oe,e);const cn=Ko(pt,Eo);if(f>=2&&l.getNodeCheckFlags(pt)&384&&(Il(cn)&3)!==3){if(bt(),x.size){const Sr=IL(t,l,pt,x);C[Ra(Sr)]=!0;const wi=Ct.statements.slice();dm(wi,[Sr]),Ct=t.updateBlock(Ct,wi)}k&&(l.getNodeCheckFlags(pt)&256?nS(Ct,tA):l.getNodeCheckFlags(pt)&128&&nS(Ct,eA))}return x=ur,k=hn,Ct}function ot(pt){i();const hn=Ko(pt,Cs).type,Ct=f<2?Pt(hn):void 0,cn=pt.kind===219,Pn=(l.getNodeCheckFlags(pt)&512)!==0,Sr=y;y=new Set;for(const Sn of pt.parameters)rt(Sn,y);const wi=x,Yt=k;cn||(x=new Set,k=!1);let Gt;if(cn){const Sn=r().createAwaiterHelper(ee(),Pn,Ct,Jt(pt.body)),Gr=a();if(dt(Gr)){const Er=t.converters.convertToFunctionBlock(Sn);Gt=t.updateBlock(Er,Ke(t.createNodeArray(es(Gr,Er.statements)),Er.statements))}else Gt=Sn}else{const Sn=[],Gr=t.copyPrologue(pt.body.statements,Sn,!1,oe);Sn.push(t.createReturnStatement(r().createAwaiterHelper(ee(),Pn,Ct,Jt(pt.body,Gr)))),dm(Sn,a());const Er=f>=2&&l.getNodeCheckFlags(pt)&384;if(Er&&(bt(),x.size)){const ut=IL(t,l,pt,x);C[Ra(ut)]=!0,dm(Sn,[ut])}const ze=t.createBlock(Sn,!0);Ke(ze,pt.body),Er&&k&&(l.getNodeCheckFlags(pt)&256?nS(ze,tA):l.getNodeCheckFlags(pt)&128&&nS(ze,eA)),Gt=ze}return y=Sr,cn||(x=wi,k=Yt),Gt}function Jt(pt,ur){return vs(pt)?t.updateBlock(pt,Dn(pt.statements,_e,Fi,ur)):t.converters.convertToFunctionBlock(E.checkDefined(Ue(pt,_e,l9)))}function Pt(pt){const ur=pt&&Vw(pt);if(ur&&Xu(ur)){const hn=l.getTypeReferenceSerializationKind(ur);if(hn===1||hn===0)return ur}}function bt(){(g&1)===0&&(g|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function _r(pt,ur,hn){if(g&1&&ki(ur)){const Ct=l.getNodeCheckFlags(ur)&384;if(Ct!==m){const cn=m;m=Ct,D(pt,ur,hn),m=cn;return}}else if(g&&C[Ra(ur)]){const Ct=m;m=0,D(pt,ur,hn),m=Ct;return}D(pt,ur,hn)}function xn(pt,ur){return ur=M(pt,ur),pt===1&&m?Bt(ur):ur}function Bt(pt){switch(pt.kind){case 211:return er(pt);case 212:return xr(pt);case 213:return pi(pt)}return pt}function er(pt){return pt.expression.kind===108?Ke(t.createPropertyAccessExpression(t.createUniqueName("_super",48),pt.name),pt):pt}function xr(pt){return pt.expression.kind===108?Nr(pt.argumentExpression,pt):pt}function pi(pt){const ur=pt.expression;if(iu(ur)){const hn=kr(ur)?er(ur):xr(ur);return t.createCallExpression(t.createPropertyAccessExpression(hn,"call"),void 0,[t.createThis(),...pt.arguments])}return pt}function ki(pt){const ur=pt.kind;return ur===263||ur===176||ur===174||ur===177||ur===178}function Nr(pt,ur){return m&256?Ke(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[pt]),"value"),ur):Ke(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[pt]),ur)}}function IL(e,t,r,i){const a=(t.getNodeCheckFlags(r)&256)!==0,o=[];return i.forEach((l,u)=>{const f=Oi(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Xn(e.createPropertyAccessExpression(Xn(e.createSuper(),8),f),8)))),a&&g.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(Xn(e.createPropertyAccessExpression(Xn(e.createSuper(),8),f),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(f,e.createObjectLiteralExpression(g)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}var ZIe=Rt({"src/compiler/transformers/es2017.ts"(){Ls()}});function oge(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),f=Ia(u),g=e.onEmitNode;e.onEmitNode=Sn;const m=e.onSubstituteNode;e.onSubstituteNode=Gr;let y=!1,x,k,C,N=0,D=0,M,V,U,Y;const j=[];return Pp(e,_e);function ee(ae,Me){return D!==(D&~ae|Me)}function R(ae,Me){const ke=D;return D=(D&~ae|Me)&3,ke}function Z(ae){D=ae}function oe(ae){V=dn(V,t.createVariableDeclaration(ae))}function _e(ae){if(ae.isDeclarationFile)return ae;M=ae;const Me=ct(ae);return Kg(Me,e.readEmitHelpers()),M=void 0,V=void 0,Me}function X(ae){return fe(ae,!1)}function H(ae){return fe(ae,!0)}function Q(ae){if(ae.kind!==134)return ae}function ne(ae,Me,ke,ft){if(ee(ke,ft)){const K=R(ke,ft),$e=ae(Me);return Z(K),$e}return ae(Me)}function ue(ae){return fn(ae,X,e)}function fe(ae,Me){if((ae.transformFlags&128)===0)return ae;switch(ae.kind){case 223:return G(ae);case 229:return Ne(ae);case 253:return De(ae);case 256:return Xe(ae);case 210:return be(ae);case 226:return Pe(ae,Me);case 361:return Ge(ae,Me);case 299:return tt(ae);case 243:return mt(ae);case 260:return Je(ae);case 246:case 247:case 249:return ne(ue,ae,0,2);case 250:return bt(ae,void 0);case 248:return ne(Jt,ae,0,2);case 222:return Pt(ae);case 176:return ne(Nr,ae,2,1);case 174:return ne(hn,ae,2,1);case 177:return ne(pt,ae,2,1);case 178:return ne(ur,ae,2,1);case 262:return ne(Ct,ae,2,1);case 218:return ne(Pn,ae,2,1);case 219:return ne(cn,ae,2,0);case 169:return pi(ae);case 244:return xe(ae);case 217:return rt(ae,Me);case 215:return pe(ae);case 211:return U&&kr(ae)&&ae.expression.kind===108&&U.add(ae.name.escapedText),fn(ae,X,e);case 212:return U&&ae.expression.kind===108&&(Y=!0),fn(ae,X,e);case 263:case 231:return ne(ue,ae,2,1);default:return fn(ae,X,e)}}function G(ae){return k&2&&k&1?or(Ke(t.createYieldExpression(void 0,r().createAwaitHelper(Ue(ae.expression,X,nt))),ae),ae):fn(ae,X,e)}function Ne(ae){if(k&2&&k&1){if(ae.asteriskToken){const Me=Ue(E.checkDefined(ae.expression),X,nt);return or(Ke(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(ae,ae.asteriskToken,Ke(r().createAsyncDelegatorHelper(Ke(r().createAsyncValuesHelper(Me),Me)),Me)))),ae),ae)}return or(Ke(t.createYieldExpression(void 0,Bt(ae.expression?Ue(ae.expression,X,nt):t.createVoidZero())),ae),ae)}return fn(ae,X,e)}function De(ae){return k&2&&k&1?t.updateReturnStatement(ae,Bt(ae.expression?Ue(ae.expression,X,nt):t.createVoidZero())):fn(ae,X,e)}function Xe(ae){if(k&2){const Me=HW(ae);return Me.kind===250&&Me.awaitModifier?bt(Me,ae):t.restoreEnclosingLabel(Ue(Me,X,Fi,t.liftToBlock),ae)}return fn(ae,X,e)}function ve(ae){let Me;const ke=[];for(const ft of ae)if(ft.kind===305){Me&&(ke.push(t.createObjectLiteralExpression(Me)),Me=void 0);const K=ft.expression;ke.push(Ue(K,X,nt))}else Me=dn(Me,ft.kind===303?t.createPropertyAssignment(ft.name,Ue(ft.initializer,X,nt)):Ue(ft,X,H0));return Me&&ke.push(t.createObjectLiteralExpression(Me)),ke}function be(ae){if(ae.transformFlags&65536){const Me=ve(ae.properties);Me.length&&Me[0].kind!==210&&Me.unshift(t.createObjectLiteralExpression());let ke=Me[0];if(Me.length>1){for(let ft=1;ft=2&&l.getNodeCheckFlags(ae)&384;if(Ae){Gt();const _t=IL(t,l,ae,U);j[Ra(_t)]=!0,dm(Me,[_t])}Me.push($e),dm(Me,a());const ht=t.updateBlock(ae.body,Me);return Ae&&Y&&(l.getNodeCheckFlags(ae)&256?nS(ht,tA):l.getNodeCheckFlags(ae)&128&&nS(ht,eA)),U=ft,Y=K,ht}function wi(ae){var $e;i();let Me=0;const ke=[],ft=($e=Ue(ae.body,X,l9))!=null?$e:t.createBlock([]);vs(ft)&&(Me=t.copyPrologue(ft.statements,ke,!1,X)),Fr(ke,Yt(void 0,ae));const K=a();if(Me>0||dt(ke)||dt(K)){const Ae=t.converters.convertToFunctionBlock(ft,!0);return dm(ke,K),Fr(ke,Ae.statements.slice(Me)),t.updateBlock(Ae,Ke(t.createNodeArray(ke),Ae.statements))}return ft}function Yt(ae,Me){let ke=!1;for(const ft of Me.parameters)if(ke){if(Ps(ft.name)){if(ft.name.elements.length>0){const K=C2(ft,X,e,0,t.getGeneratedNameForNode(ft));if(dt(K)){const $e=t.createVariableDeclarationList(K),Ae=t.createVariableStatement(void 0,$e);Xn(Ae,2097152),ae=dn(ae,Ae)}}else if(ft.initializer){const K=t.getGeneratedNameForNode(ft),$e=Ue(ft.initializer,X,nt),Ae=t.createAssignment(K,$e),ht=t.createExpressionStatement(Ae);Xn(ht,2097152),ae=dn(ae,ht)}}else if(ft.initializer){const K=t.cloneNode(ft.name);Ke(K,ft.name),Xn(K,96);const $e=Ue(ft.initializer,X,nt);xm($e,3168);const Ae=t.createAssignment(K,$e);Ke(Ae,ft),Xn(Ae,3072);const ht=t.createBlock([t.createExpressionStatement(Ae)]);Ke(ht,ft),Xn(ht,3905);const _t=t.createTypeCheck(t.cloneNode(ft.name),"undefined"),jt=t.createIfStatement(_t,ht);O_(jt),Ke(jt,ft),Xn(jt,2101056),ae=dn(ae,jt)}}else if(ft.transformFlags&65536){ke=!0;const K=C2(ft,X,e,1,t.getGeneratedNameForNode(ft),!1,!0);if(dt(K)){const $e=t.createVariableDeclarationList(K),Ae=t.createVariableStatement(void 0,$e);Xn(Ae,2097152),ae=dn(ae,Ae)}}return ae}function Gt(){(x&1)===0&&(x|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function Sn(ae,Me,ke){if(x&1&&it(Me)){const ft=l.getNodeCheckFlags(Me)&384;if(ft!==N){const K=N;N=ft,g(ae,Me,ke),N=K;return}}else if(x&&j[Ra(Me)]){const ft=N;N=0,g(ae,Me,ke),N=ft;return}g(ae,Me,ke)}function Gr(ae,Me){return Me=m(ae,Me),ae===1&&N?Er(Me):Me}function Er(ae){switch(ae.kind){case 211:return ze(ae);case 212:return ut(ae);case 213:return kt(ae)}return ae}function ze(ae){return ae.expression.kind===108?Ke(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ae.name),ae):ae}function ut(ae){return ae.expression.kind===108?Vt(ae.argumentExpression,ae):ae}function kt(ae){const Me=ae.expression;if(iu(Me)){const ke=kr(Me)?ze(Me):ut(Me);return t.createCallExpression(t.createPropertyAccessExpression(ke,"call"),void 0,[t.createThis(),...ae.arguments])}return ae}function it(ae){const Me=ae.kind;return Me===263||Me===176||Me===174||Me===177||Me===178}function Vt(ae,Me){return N&256?Ke(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ae]),"value"),Me):Ke(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ae]),Me)}}var KIe=Rt({"src/compiler/transformers/es2018.ts"(){Ls()}});function cge(e){const t=e.factory;return Pp(e,r);function r(o){return o.isDeclarationFile?o:fn(o,i,e)}function i(o){if((o.transformFlags&64)===0)return o;switch(o.kind){case 299:return a(o);default:return fn(o,i,e)}}function a(o){return o.variableDeclaration?fn(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),Ue(o.block,i,vs))}}var e9e=Rt({"src/compiler/transformers/es2019.ts"(){Ls()}});function lge(e){const{factory:t,hoistVariableDeclaration:r}=e;return Pp(e,i);function i(C){return C.isDeclarationFile?C:fn(C,a,e)}function a(C){if((C.transformFlags&32)===0)return C;switch(C.kind){case 213:{const N=f(C,!1);return E.assertNotNode(N,mS),N}case 211:case 212:if(c_(C)){const N=m(C,!1,!1);return E.assertNotNode(N,mS),N}return fn(C,a,e);case 226:return C.operatorToken.kind===61?x(C):fn(C,a,e);case 220:return k(C);default:return fn(C,a,e)}}function o(C){E.assertNotNode(C,n9);const N=[C];for(;!C.questionDotToken&&!Kb(C);)C=Bs(Tp(C.expression),c_),E.assertNotNode(C,n9),N.unshift(C);return{expression:C.expression,chain:N}}function l(C,N,D){const M=g(C.expression,N,D);return mS(M)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(C,M.expression),M.thisArg):t.updateParenthesizedExpression(C,M)}function u(C,N,D){if(c_(C))return m(C,N,D);let M=Ue(C.expression,a,nt);E.assertNotNode(M,mS);let V;return N&&(k2(M)?V=M:(V=t.createTempVariable(r),M=t.createAssignment(V,M))),M=C.kind===211?t.updatePropertyAccessExpression(C,M,Ue(C.name,a,we)):t.updateElementAccessExpression(C,M,Ue(C.argumentExpression,a,nt)),V?t.createSyntheticReferenceExpression(M,V):M}function f(C,N){if(c_(C))return m(C,N,!1);if(yu(C.expression)&&c_(lo(C.expression))){const D=l(C.expression,!0,!1),M=Dn(C.arguments,a,nt);return mS(D)?Ke(t.createFunctionCallCall(D.expression,D.thisArg,M),C):t.updateCallExpression(C,D,void 0,M)}return fn(C,a,e)}function g(C,N,D){switch(C.kind){case 217:return l(C,N,D);case 211:case 212:return u(C,N,D);case 213:return f(C,N);default:return Ue(C,a,nt)}}function m(C,N,D){const{expression:M,chain:V}=o(C),U=g(Tp(M),Ab(V[0]),!1);let Y=mS(U)?U.thisArg:void 0,j=mS(U)?U.expression:U,ee=t.restoreOuterExpressions(M,j,8);k2(j)||(j=t.createTempVariable(r),ee=t.createAssignment(j,ee));let R=j,Z;for(let _e=0;_efe&&Fr(G,Dn(ne.statements,y,Fi,fe,Ne-fe));break}Ne++}E.assert(NeD(G,fe))))],fe,ue===2)}return fn(ne,y,e)}function V(ne,ue,fe,G,Ne){var be;const De=[];for(let xe=ue;xet&&(t=i)}return t}function i9e(e){let t=0;for(const r of e){const i=OL(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var s9e=Rt({"src/compiler/transformers/esnext.ts"(){Ls()}});function pge(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let a,o;return Pp(e,y);function l(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const pe=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(a.fileName));return o.filenameDeclaration=pe,o.filenameDeclaration.name}function u(pe){return i.jsx===5?"jsxDEV":pe?"jsxs":"jsx"}function f(pe){const Pe=u(pe);return m(Pe)}function g(){return m("Fragment")}function m(pe){var Pe,Ge;const tt=pe==="createElement"?o.importSpecifier:vO(o.importSpecifier,i),mt=(Ge=(Pe=o.utilizedImplicitRuntimeImports)==null?void 0:Pe.get(tt))==null?void 0:Ge.get(pe);if(mt)return mt.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let Je=o.utilizedImplicitRuntimeImports.get(tt);Je||(Je=new Map,o.utilizedImplicitRuntimeImports.set(tt,Je));const ot=t.createUniqueName(`_${pe}`,112),Jt=t.createImportSpecifier(!1,t.createIdentifier(pe),ot);return pfe(ot,Jt),Je.set(pe,Jt),ot}function y(pe){if(pe.isDeclarationFile)return pe;a=pe,o={},o.importSpecifier=yO(i,pe);let Pe=fn(pe,x,e);Kg(Pe,e.readEmitHelpers());let Ge=Pe.statements;if(o.filenameDeclaration&&(Ge=Mb(Ge.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports){for(const[tt,mt]of ra(o.utilizedImplicitRuntimeImports.entries()))if(zc(pe)){const Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(ra(mt.values()))),t.createStringLiteral(tt),void 0);_1(Je,!1),Ge=Mb(Ge.slice(),Je)}else if(Yu(pe)){const Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(ra(mt.values(),ot=>t.createBindingElement(void 0,ot.propertyName,ot.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(tt)]))],2));_1(Je,!1),Ge=Mb(Ge.slice(),Je)}}return Ge!==Pe.statements&&(Pe=t.updateSourceFile(Pe,Ge)),o=void 0,Pe}function x(pe){return pe.transformFlags&2?k(pe):pe}function k(pe){switch(pe.kind){case 284:return V(pe,!1);case 285:return U(pe,!1);case 288:return Y(pe,!1);case 294:return ct(pe);default:return fn(pe,x,e)}}function C(pe){switch(pe.kind){case 12:return Ne(pe);case 294:return ct(pe);case 284:return V(pe,!0);case 285:return U(pe,!0);case 288:return Y(pe,!0);default:return E.failBadSyntaxKind(pe)}}function N(pe){return pe.properties.some(Pe=>Ec(Pe)&&(we(Pe.name)&&lr(Pe.name)==="__proto__"||fa(Pe.name)&&Pe.name.text==="__proto__"))}function D(pe){let Pe=!1;for(const Ge of pe.attributes.properties)if(hS(Ge)&&(!ha(Ge.expression)||Ge.expression.properties.some(sh)))Pe=!0;else if(Pe&&Vd(Ge)&&we(Ge.name)&&Ge.name.escapedText==="key")return!0;return!1}function M(pe){return o.importSpecifier===void 0||D(pe)}function V(pe,Pe){return(M(pe.openingElement)?oe:R)(pe.openingElement,pe.children,Pe,pe)}function U(pe,Pe){return(M(pe)?oe:R)(pe,void 0,Pe,pe)}function Y(pe,Pe){return(o.importSpecifier===void 0?X:_e)(pe.openingFragment,pe.children,Pe,pe)}function j(pe){const Pe=ee(pe);return Pe&&t.createObjectLiteralExpression([Pe])}function ee(pe){const Pe=h3(pe);if(Nn(Pe)===1&&!Pe[0].dotDotDotToken){const tt=C(Pe[0]);return tt&&t.createPropertyAssignment("children",tt)}const Ge=Hi(pe,C);return Nn(Ge)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(Ge)):void 0}function R(pe,Pe,Ge,tt){const mt=xe(pe),Je=Pe&&Pe.length?ee(Pe):void 0,ot=Or(pe.attributes.properties,bt=>!!bt.name&&we(bt.name)&&bt.name.escapedText==="key"),Jt=ot?zr(pe.attributes.properties,bt=>bt!==ot):pe.attributes.properties,Pt=Nn(Jt)?Q(Jt,Je):t.createObjectLiteralExpression(Je?[Je]:Ve);return Z(mt,Pt,ot,Pe||Ve,Ge,tt)}function Z(pe,Pe,Ge,tt,mt,Je){var ot;const Jt=h3(tt),Pt=Nn(Jt)>1||!!((ot=Jt[0])!=null&&ot.dotDotDotToken),bt=[pe,Pe];if(Ge&&bt.push(G(Ge.initializer)),i.jsx===5){const xn=Ko(a);if(xn&&Bi(xn)){Ge===void 0&&bt.push(t.createVoidZero()),bt.push(Pt?t.createTrue():t.createFalse());const Bt=yo(xn,Je.pos);bt.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Bt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Bt.character+1))])),bt.push(t.createThis())}}const _r=Ke(t.createCallExpression(f(Pt),void 0,bt),Je);return mt&&O_(_r),_r}function oe(pe,Pe,Ge,tt){const mt=xe(pe),Je=pe.attributes.properties,ot=Nn(Je)?Q(Je):t.createNull(),Jt=o.importSpecifier===void 0?dG(t,e.getEmitResolver().getJsxFactoryEntity(a),i.reactNamespace,pe):m("createElement"),Pt=Wfe(t,Jt,mt,ot,Hi(Pe,C),tt);return Ge&&O_(Pt),Pt}function _e(pe,Pe,Ge,tt){let mt;if(Pe&&Pe.length){const Je=j(Pe);Je&&(mt=Je)}return Z(g(),mt||t.createObjectLiteralExpression([]),void 0,Pe,Ge,tt)}function X(pe,Pe,Ge,tt){const mt=qfe(t,e.getEmitResolver().getJsxFactoryEntity(a),e.getEmitResolver().getJsxFragmentFactoryEntity(a),i.reactNamespace,Hi(Pe,C),pe,tt);return Ge&&O_(mt),mt}function H(pe){return ha(pe.expression)&&!N(pe.expression)?pe.expression.properties:t.createSpreadAssignment(E.checkDefined(Ue(pe.expression,x,nt)))}function Q(pe,Pe){const Ge=Ia(i);return Ge&&Ge>=5?t.createObjectLiteralExpression(ne(pe,Pe)):ue(pe,Pe)}function ne(pe,Pe){const Ge=bp(sV(pe,hS,(tt,mt)=>bp(an(tt,Je=>mt?H(Je):fe(Je)))));return Pe&&Ge.push(Pe),Ge}function ue(pe,Pe){const Ge=[];let tt=[];for(const Je of pe){if(hS(Je)){if(ha(Je.expression)&&!N(Je.expression)){for(const ot of Je.expression.properties){if(sh(ot)){mt(),Ge.push(E.checkDefined(Ue(ot.expression,x,nt)));continue}tt.push(E.checkDefined(Ue(ot,x)))}continue}mt(),Ge.push(E.checkDefined(Ue(Je.expression,x,nt)));continue}tt.push(fe(Je))}return Pe&&tt.push(Pe),mt(),Ge.length&&!ha(Ge[0])&&Ge.unshift(t.createObjectLiteralExpression()),om(Ge)||r().createAssignHelper(Ge);function mt(){tt.length&&(Ge.push(t.createObjectLiteralExpression(tt)),tt=[])}}function fe(pe){const Pe=rt(pe),Ge=G(pe.initializer);return t.createPropertyAssignment(Pe,Ge)}function G(pe){if(pe===void 0)return t.createTrue();if(pe.kind===11){const Pe=pe.singleQuote!==void 0?pe.singleQuote:!z9(pe,a),Ge=t.createStringLiteral(be(pe.text)||pe.text,Pe);return Ke(Ge,pe)}return pe.kind===294?pe.expression===void 0?t.createTrue():E.checkDefined(Ue(pe.expression,x,nt)):_g(pe)?V(pe,!1):rT(pe)?U(pe,!1):y2(pe)?Y(pe,!1):E.failBadSyntaxKind(pe)}function Ne(pe){const Pe=De(pe.text);return Pe===void 0?void 0:t.createStringLiteral(Pe)}function De(pe){let Pe,Ge=0,tt=-1;for(let mt=0;mt{if(Je)return Yk(parseInt(Je,10));if(ot)return Yk(parseInt(ot,16));{const Pt=dge.get(Jt);return Pt?Yk(Pt):Pe}})}function be(pe){const Pe=ve(pe);return Pe===pe?void 0:Pe}function xe(pe){if(pe.kind===284)return xe(pe.openingElement);{const Pe=pe.tagName;return we(Pe)&&P6(Pe.escapedText)?t.createStringLiteral(lr(Pe)):sd(Pe)?t.createStringLiteral(lr(Pe.namespace)+":"+lr(Pe.name)):pA(t,Pe)}}function rt(pe){const Pe=pe.name;if(we(Pe)){const Ge=lr(Pe);return/^[A-Za-z_]\w*$/.test(Ge)?Pe:t.createStringLiteral(Ge)}return t.createStringLiteral(lr(Pe.namespace)+":"+lr(Pe.name))}function ct(pe){const Pe=Ue(pe.expression,x,nt);return pe.dotDotDotToken?t.createSpreadElement(Pe):Pe}}var dge,a9e=Rt({"src/compiler/transformers/jsx.ts"(){Ls(),dge=new Map(Object.entries({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}))}});function mge(e){const{factory:t,hoistVariableDeclaration:r}=e;return Pp(e,i);function i(f){return f.isDeclarationFile?f:fn(f,a,e)}function a(f){if((f.transformFlags&512)===0)return f;switch(f.kind){case 226:return o(f);default:return fn(f,a,e)}}function o(f){switch(f.operatorToken.kind){case 68:return l(f);case 43:return u(f);default:return fn(f,a,e)}}function l(f){let g,m;const y=Ue(f.left,a,nt),x=Ue(f.right,a,nt);if(No(y)){const k=t.createTempVariable(r),C=t.createTempVariable(r);g=Ke(t.createElementAccessExpression(Ke(t.createAssignment(k,y.expression),y.expression),Ke(t.createAssignment(C,y.argumentExpression),y.argumentExpression)),y),m=Ke(t.createElementAccessExpression(k,C),y)}else if(kr(y)){const k=t.createTempVariable(r);g=Ke(t.createPropertyAccessExpression(Ke(t.createAssignment(k,y.expression),y.expression),y.name),y),m=Ke(t.createPropertyAccessExpression(k,y.name),y)}else g=y,m=y;return Ke(t.createAssignment(g,Ke(t.createGlobalMethodCall("Math","pow",[m,x]),f)),f)}function u(f){const g=Ue(f.left,a,nt),m=Ue(f.right,a,nt);return Ke(t.createGlobalMethodCall("Math","pow",[g,m]),f)}}var o9e=Rt({"src/compiler/transformers/es2016.ts"(){Ls()}});function gge(e,t){return{kind:e,expression:t}}function hge(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:a,endLexicalEnvironment:o,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),f=e.getEmitResolver(),g=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=nc,e.onSubstituteNode=Vo;let y,x,k,C;function N(se){C=dn(C,t.createVariableDeclaration(se))}let D,M;return Pp(e,V);function V(se){if(se.isDeclarationFile)return se;y=se,x=se.text;const qe=Q(se);return Kg(qe,e.readEmitHelpers()),y=void 0,x=void 0,C=void 0,k=0,qe}function U(se,qe){const gt=k;return k=(k&~se|qe)&32767,gt}function Y(se,qe,gt){k=(k&~qe|gt)&-32768|se}function j(se){return(k&8192)!==0&&se.kind===253&&!se.expression}function ee(se){return se.transformFlags&4194304&&(id(se)||tT(se)||Ife(se)||cA(se)||c8(se)||t4(se)||_A(se)||g2(se)||Iy(se)||m2(se)||n1(se,!1)||vs(se))}function R(se){return(se.transformFlags&1024)!==0||D!==void 0||k&8192&&ee(se)||n1(se,!1)&&ar(se)||(xp(se)&1)!==0}function Z(se){return R(se)?H(se,!1):se}function oe(se){return R(se)?H(se,!0):se}function _e(se){if(R(se)){const qe=Ko(se);if(Fs(qe)&&$c(qe)){const gt=U(32670,16449),Et=H(se,!1);return Y(gt,98304,0),Et}return H(se,!1)}return se}function X(se){return se.kind===108?dc(!0):Z(se)}function H(se,qe){switch(se.kind){case 126:return;case 263:return be(se);case 231:return xe(se);case 169:return xn(se);case 262:return Gr(se);case 219:return Gt(se);case 218:return Sn(se);case 260:return ht(se);case 80:return Xe(se);case 261:return ft(se);case 255:return ne(se);case 269:return ue(se);case 241:return ut(se,!1);case 252:case 251:return ve(se);case 256:return Fn(se);case 246:case 247:return z(se,void 0);case 248:return B(se,void 0);case 249:return W(se,void 0);case 250:return ge(se,void 0);case 244:return kt(se);case 210:return Tt(se);case 299:return po(se);case 304:return pc(se);case 167:return h_(se);case 209:return q_(se);case 213:return vo(se);case 214:return Re(se);case 217:return it(se,qe);case 226:return Vt(se,qe);case 361:return ae(se,qe);case 15:case 16:case 17:case 18:return Vr(se);case 11:return La(se);case 9:return io(se);case 215:return ac(se);case 228:return Ic(se);case 229:return M_(se);case 230:return ci(se);case 108:return dc(!1);case 110:return Ne(se);case 236:return Ka(se);case 174:return Fa(se);case 177:case 178:return Wt(se);case 243:return ke(se);case 253:return G(se);case 222:return De(se);default:return fn(se,Z,e)}}function Q(se){const qe=U(8064,64),gt=[],Et=[];i();const Xt=t.copyPrologue(se.statements,gt,!1,Z);return Fr(Et,Dn(se.statements,Z,Fi,Xt)),C&&Et.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(C))),t.mergeLexicalEnvironment(gt,o()),pt(gt,se),Y(qe,0,0),t.updateSourceFile(se,Ke(t.createNodeArray(es(gt,Et)),se.statements))}function ne(se){if(D!==void 0){const qe=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;const gt=fn(se,Z,e);return D.allowedNonLabeledJumps=qe,gt}return fn(se,Z,e)}function ue(se){const qe=U(7104,0),gt=fn(se,Z,e);return Y(qe,0,0),gt}function fe(se){return or(t.createReturnStatement(t.createUniqueName("_this",48)),se)}function G(se){return D?(D.nonLocalJumps|=8,j(se)&&(se=fe(se)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),se.expression?E.checkDefined(Ue(se.expression,Z,nt)):t.createVoidZero())]))):j(se)?fe(se):fn(se,Z,e)}function Ne(se){return k&2&&!(k&16384)&&(k|=65536),D?k&2?(D.containsLexicalThis=!0,se):D.thisName||(D.thisName=t.createUniqueName("this")):se}function De(se){return fn(se,oe,e)}function Xe(se){return D&&f.isArgumentsLocalBinding(se)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):se.flags&256?or(Ke(t.createIdentifier(Oi(se.escapedText)),se),se):se}function ve(se){if(D){const qe=se.kind===252?2:4;if(!(se.label&&D.labels&&D.labels.get(lr(se.label))||!se.label&&D.allowedNonLabeledJumps&qe)){let Et;const Xt=se.label;Xt?se.kind===252?(Et=`break-${Xt.escapedText}`,Li(D,!0,lr(Xt),Et)):(Et=`continue-${Xt.escapedText}`,Li(D,!1,lr(Xt),Et)):se.kind===252?(D.nonLocalJumps|=2,Et="break"):(D.nonLocalJumps|=4,Et="continue");let On=t.createStringLiteral(Et);if(D.loopOutParameters.length){const Cr=D.loopOutParameters;let qr;for(let _i=0;_i=0?Fo:gt.length;if(hs&&Fo>=0){let Oc=Et;for(;hs&&Oc=0?gt[Fo]:void 0;if(Zc&&g2(Zc)){const Oc=[];va=mt(se,Oc,Zc.tryBlock.statements,0,Xt,On+1,Cr,qr,_i,hs);const il=t.createNodeArray(Oc);Ke(il,Zc.tryBlock.statements),qe.push(t.updateTryStatement(Zc,t.updateBlock(Zc.tryBlock,Oc),Ue(Zc.catchClause,Z,Iy),Ue(Zc.finallyBlock,Z,vs)))}else{const Oc=Zc&&V$(Zc);let il;if(_i?(il=_r(),k|=8192):Oc&&(il=A(Oc),k|=8192),qr||il)if(il&&Fo===gt.length-1&&!(Cr.body.transformFlags&16384)){const Ml=Bs(Bs(il,rr).left,Js),sl=t.createReturnStatement(il);return Xc(sl,Bd(Ml)),Xn(Ml,3072),qe.push(sl),!1}else hs?hn(qe,Cr,il||bt()):(hn(se,Cr,bt()),il&&ur(qe,il)),va=!0;else pt(se,Cr)}return Fo>=0&&Fr(qe,Dn(gt,Z,Fi,Fo+1)),va}function Je(se){return ic(se)&&Xi(se.declarationList.declarations,qe=>we(qe.name)&&!qe.initializer)}function ot(se){if(!ic(se)||se.declarationList.declarations.length!==1)return!1;const qe=se.declarationList.declarations[0];if(!we(qe.name)||!qe.initializer)return!1;const gt=qe.initializer;if(!ha(gt)||gt.properties.length!==3)return!1;const[Et,Xt,On]=gt.properties;return!(!Ec(Et)||!we(Et.name)||lr(Et.name)!=="stack"||!u_(Et.initializer)||!Ec(Xt)||!we(Xt.name)||lr(Xt.name)!=="error"||!eT(Xt.initializer)||!Ou(Xt.initializer.expression)||!Ec(On)||!we(On.name)||lr(On.name)!=="hasError"||On.initializer.kind!==97)}function Jt(se,qe,gt,Et){const Xt=!!gt&&nl(gt.expression).kind!==106;if(!se)return tt(qe,Xt);const On=[],Cr=[];a();const qr=t.copyStandardPrologue(se.body.statements,On,0),_i=KA(se.body.statements,qr);(Et||_i.length>0)&&(k|=8192);const hs=mt(On,Cr,se.body.statements,qr,_i,0,se,Xt,Et,!0);er(On,se),Nr(On,se,Et),Ct(On,se),t.mergeLexicalEnvironment(On,o()),hs&&!Pt(se.body)&&Cr.push(t.createReturnStatement(t.createUniqueName("_this",48)));const va=t.createBlock(Ke(t.createNodeArray([...On,...Cr]),se.body.statements),!0);return Ke(va,se.body),va}function Pt(se){if(se.kind===253)return!0;if(se.kind===245){const qe=se;if(qe.elseStatement)return Pt(qe.thenStatement)&&Pt(qe.elseStatement)}else if(se.kind===241){const qe=jo(se.statements);if(qe&&Pt(qe))return!0}return!1}function bt(){return Xn(t.createThis(),8)}function _r(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(t.createUniqueName("_super",48),t.createNull()),t.createFunctionApplyCall(t.createUniqueName("_super",48),bt(),t.createIdentifier("arguments"))),bt())}function xn(se){if(!se.dotDotDotToken)return Ps(se.name)?or(Ke(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(se),void 0,void 0,void 0),se),se):se.initializer?or(Ke(t.createParameterDeclaration(void 0,void 0,se.name,void 0,void 0,void 0),se),se):se}function Bt(se){return se.initializer!==void 0||Ps(se.name)}function er(se,qe){if(!dt(qe.parameters,Bt))return!1;let gt=!1;for(const Et of qe.parameters){const{name:Xt,initializer:On,dotDotDotToken:Cr}=Et;Cr||(Ps(Xt)?gt=xr(se,Et,Xt,On)||gt:On&&(pi(se,Et,Xt,On),gt=!0))}return gt}function xr(se,qe,gt,Et){return gt.elements.length>0?(Mb(se,Xn(t.createVariableStatement(void 0,t.createVariableDeclarationList(C2(qe,Z,e,0,t.getGeneratedNameForNode(qe)))),2097152)),!0):Et?(Mb(se,Xn(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(qe),E.checkDefined(Ue(Et,Z,nt)))),2097152)),!0):!1}function pi(se,qe,gt,Et){Et=E.checkDefined(Ue(Et,Z,nt));const Xt=t.createIfStatement(t.createTypeCheck(t.cloneNode(gt),"undefined"),Xn(Ke(t.createBlock([t.createExpressionStatement(Xn(Ke(t.createAssignment(Xn(Ta(Ke(t.cloneNode(gt),gt),gt.parent),96),Xn(Et,96|ma(Et)|3072)),qe),3072))]),qe),3905));O_(Xt),Ke(Xt,qe),Xn(Xt,2101056),Mb(se,Xt)}function ki(se,qe){return!!(se&&se.dotDotDotToken&&!qe)}function Nr(se,qe,gt){const Et=[],Xt=jo(qe.parameters);if(!ki(Xt,gt))return!1;const On=Xt.name.kind===80?Ta(Ke(t.cloneNode(Xt.name),Xt.name),Xt.name.parent):t.createTempVariable(void 0);Xn(On,96);const Cr=Xt.name.kind===80?t.cloneNode(Xt.name):On,qr=qe.parameters.length-1,_i=t.createLoopVariable();Et.push(Xn(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(On,void 0,void 0,t.createArrayLiteralExpression([]))])),Xt),2097152));const hs=t.createForStatement(Ke(t.createVariableDeclarationList([t.createVariableDeclaration(_i,void 0,void 0,t.createNumericLiteral(qr))]),Xt),Ke(t.createLessThan(_i,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),Xt),Ke(t.createPostfixIncrement(_i),Xt),t.createBlock([O_(Ke(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Cr,qr===0?_i:t.createSubtract(_i,t.createNumericLiteral(qr))),t.createElementAccessExpression(t.createIdentifier("arguments"),_i))),Xt))]));return Xn(hs,2097152),O_(hs),Et.push(hs),Xt.name.kind!==80&&Et.push(Xn(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList(C2(Xt,Z,e,0,Cr))),Xt),2097152)),CW(se,Et),!0}function pt(se,qe){return k&65536&&qe.kind!==219?(hn(se,qe,t.createThis()),!0):!1}function ur(se,qe){Uc();const gt=t.createExpressionStatement(t.createBinaryExpression(t.createThis(),64,qe));se.push(gt),Xc(gt,Ko(qe).parent)}function hn(se,qe,gt){Uc();const Et=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,gt)]));Xn(Et,2100224),Ca(Et,qe),Mb(se,Et)}function Ct(se,qe){if(k&32768){let gt;switch(qe.kind){case 219:return se;case 174:case 177:case 178:gt=t.createVoidZero();break;case 176:gt=t.createPropertyAccessExpression(Xn(t.createThis(),8),"constructor");break;case 262:case 218:gt=t.createConditionalExpression(t.createLogicalAnd(Xn(t.createThis(),8),t.createBinaryExpression(Xn(t.createThis(),8),104,t.getLocalName(qe))),void 0,t.createPropertyAccessExpression(Xn(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return E.failBadSyntaxKind(qe)}const Et=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,gt)]));Xn(Et,2100224),Mb(se,Et)}return se}function cn(se,qe){for(const gt of qe.members)switch(gt.kind){case 240:se.push(Pn(gt));break;case 174:se.push(Sr(Wa(qe,gt),gt,qe));break;case 177:case 178:const Et=Hb(qe.members,gt);gt===Et.firstAccessor&&se.push(wi(Wa(qe,gt),Et,qe));break;case 176:case 175:break;default:E.failBadSyntaxKind(gt,y&&y.fileName);break}}function Pn(se){return Ke(t.createEmptyStatement(),se)}function Sr(se,qe,gt){const Et=Bd(qe),Xt=wy(qe),On=Er(qe,qe,void 0,gt),Cr=Ue(qe.name,Z,Jc);E.assert(Cr);let qr;if(!Ei(Cr)&&ND(e.getCompilerOptions())){const hs=Ga(Cr)?Cr.expression:we(Cr)?t.createStringLiteral(Oi(Cr.escapedText)):Cr;qr=t.createObjectDefinePropertyCall(se,hs,t.createPropertyDescriptor({value:On,enumerable:!1,writable:!0,configurable:!0}))}else{const hs=aT(t,se,Cr,qe.name);qr=t.createAssignment(hs,On)}Xn(On,3072),Ca(On,Xt);const _i=Ke(t.createExpressionStatement(qr),qe);return or(_i,qe),Xc(_i,Et),Xn(_i,96),_i}function wi(se,qe,gt){const Et=t.createExpressionStatement(Yt(se,qe,gt,!1));return Xn(Et,3072),Ca(Et,wy(qe.firstAccessor)),Et}function Yt(se,{firstAccessor:qe,getAccessor:gt,setAccessor:Et},Xt,On){const Cr=Ta(Ke(t.cloneNode(se),se),se.parent);Xn(Cr,3136),Ca(Cr,qe.name);const qr=Ue(qe.name,Z,Jc);if(E.assert(qr),Ei(qr))return E.failBadSyntaxKind(qr,"Encountered unhandled private identifier while transforming ES2015.");const _i=gG(t,qr);Xn(_i,3104),Ca(_i,qe.name);const hs=[];if(gt){const Fo=Er(gt,void 0,void 0,Xt);Ca(Fo,wy(gt)),Xn(Fo,1024);const Ro=t.createPropertyAssignment("get",Fo);Xc(Ro,Bd(gt)),hs.push(Ro)}if(Et){const Fo=Er(Et,void 0,void 0,Xt);Ca(Fo,wy(Et)),Xn(Fo,1024);const Ro=t.createPropertyAssignment("set",Fo);Xc(Ro,Bd(Et)),hs.push(Ro)}hs.push(t.createPropertyAssignment("enumerable",gt||Et?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const va=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Cr,_i,t.createObjectLiteralExpression(hs,!0)]);return On&&O_(va),va}function Gt(se){se.transformFlags&16384&&!(k&16384)&&(k|=65536);const qe=D;D=void 0;const gt=U(15232,66),Et=t.createFunctionExpression(void 0,void 0,void 0,void 0,Nc(se.parameters,Z,e),void 0,ze(se));return Ke(Et,se),or(Et,se),Xn(Et,16),Y(gt,0,0),D=qe,Et}function Sn(se){const qe=ma(se)&524288?U(32662,69):U(32670,65),gt=D;D=void 0;const Et=Nc(se.parameters,Z,e),Xt=ze(se),On=k&32768?t.getLocalName(se):se.name;return Y(qe,98304,0),D=gt,t.updateFunctionExpression(se,void 0,se.asteriskToken,On,void 0,Et,void 0,Xt)}function Gr(se){const qe=D;D=void 0;const gt=U(32670,65),Et=Nc(se.parameters,Z,e),Xt=ze(se),On=k&32768?t.getLocalName(se):se.name;return Y(gt,98304,0),D=qe,t.updateFunctionDeclaration(se,Dn(se.modifiers,Z,Zs),se.asteriskToken,On,void 0,Et,void 0,Xt)}function Er(se,qe,gt,Et){const Xt=D;D=void 0;const On=Et&&ni(Et)&&!Os(se)?U(32670,73):U(32670,65),Cr=Nc(se.parameters,Z,e),qr=ze(se);return k&32768&&!gt&&(se.kind===262||se.kind===218)&&(gt=t.getGeneratedNameForNode(se)),Y(On,98304,0),D=Xt,or(Ke(t.createFunctionExpression(void 0,se.asteriskToken,gt,void 0,Cr,void 0,qr),qe),se)}function ze(se){let qe=!1,gt=!1,Et,Xt;const On=[],Cr=[],qr=se.body;let _i;if(a(),vs(qr)&&(_i=t.copyStandardPrologue(qr.statements,On,0,!1),_i=t.copyCustomPrologue(qr.statements,Cr,_i,Z,E9),_i=t.copyCustomPrologue(qr.statements,Cr,_i,Z,w9)),qe=er(Cr,se)||qe,qe=Nr(Cr,se,!1)||qe,vs(qr))_i=t.copyCustomPrologue(qr.statements,Cr,_i,Z),Et=qr.statements,Fr(Cr,Dn(qr.statements,Z,Fi,_i)),!qe&&qr.multiLine&&(qe=!0);else{E.assert(se.kind===219),Et=sO(qr,-1);const va=se.equalsGreaterThanToken;!Do(va)&&!Do(qr)&&(CD(va,qr,y)?gt=!0:qe=!0);const Fo=Ue(qr,Z,nt),Ro=t.createReturnStatement(Fo);Ke(Ro,qr),ofe(Ro,qr),Xn(Ro,2880),Cr.push(Ro),Xt=qr}if(t.mergeLexicalEnvironment(On,o()),Ct(On,se),pt(On,se),dt(On)&&(qe=!0),Cr.unshift(...On),vs(qr)&&Cd(Cr,qr.statements))return qr;const hs=t.createBlock(Ke(t.createNodeArray(Cr),Et),qe);return Ke(hs,se.body),!qe&>&&Xn(hs,1),Xt&&afe(hs,20,Xt),or(hs,se.body),hs}function ut(se,qe){if(qe)return fn(se,Z,e);const gt=k&256?U(7104,512):U(6976,128),Et=fn(se,Z,e);return Y(gt,0,0),Et}function kt(se){return fn(se,oe,e)}function it(se,qe){return fn(se,qe?oe:Z,e)}function Vt(se,qe){return Z0(se)?pT(se,Z,e,0,!qe):se.operatorToken.kind===28?t.updateBinaryExpression(se,E.checkDefined(Ue(se.left,oe,nt)),se.operatorToken,E.checkDefined(Ue(se.right,qe?oe:Z,nt))):fn(se,Z,e)}function ae(se,qe){if(qe)return fn(se,oe,e);let gt;for(let Xt=0;Xt_i.name)),qr=Et?t.createYieldExpression(t.createToken(42),Xn(Cr,8388608)):Cr;if(On)Xt.push(t.createExpressionStatement(qr)),za(qe.loopOutParameters,1,0,Xt);else{const _i=t.createUniqueName("state"),hs=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(_i,void 0,void 0,qr)]));if(Xt.push(hs),za(qe.loopOutParameters,1,0,Xt),qe.nonLocalJumps&8){let va;gt?(gt.nonLocalJumps|=8,va=t.createReturnStatement(_i)):va=t.createReturnStatement(t.createPropertyAccessExpression(_i,"value")),Xt.push(t.createIfStatement(t.createTypeCheck(_i,"object"),va))}if(qe.nonLocalJumps&2&&Xt.push(t.createIfStatement(t.createStrictEquality(_i,t.createStringLiteral("break")),t.createBreakStatement())),qe.labeledNonLocalBreaks||qe.labeledNonLocalContinues){const va=[];Vc(qe.labeledNonLocalBreaks,!0,_i,gt,va),Vc(qe.labeledNonLocalContinues,!1,_i,gt,va),Xt.push(t.createSwitchStatement(_i,t.createCaseBlock(va)))}}return Xt}function Li(se,qe,gt,Et){qe?(se.labeledNonLocalBreaks||(se.labeledNonLocalBreaks=new Map),se.labeledNonLocalBreaks.set(gt,Et)):(se.labeledNonLocalContinues||(se.labeledNonLocalContinues=new Map),se.labeledNonLocalContinues.set(gt,Et))}function Vc(se,qe,gt,Et,Xt){!se||se.forEach((On,Cr)=>{const qr=[];if(!Et||Et.labels&&Et.labels.get(Cr)){const _i=t.createIdentifier(Cr);qr.push(qe?t.createBreakStatement(_i):t.createContinueStatement(_i))}else Li(Et,qe,Cr,On),qr.push(t.createReturnStatement(gt));Xt.push(t.createCaseClause(t.createStringLiteral(On),qr))})}function zo(se,qe,gt,Et,Xt){const On=qe.name;if(Ps(On))for(const Cr of On.elements)dl(Cr)||zo(se,Cr,gt,Et,Xt);else{gt.push(t.createParameterDeclaration(void 0,void 0,On));const Cr=f.getNodeCheckFlags(qe);if(Cr&65536||Xt){const qr=t.createUniqueName("out_"+lr(On));let _i=0;Cr&65536&&(_i|=1),nT(se)&&(se.initializer&&f.isBindingCapturedByNode(se.initializer,qe)&&(_i|=2),(se.condition&&f.isBindingCapturedByNode(se.condition,qe)||se.incrementor&&f.isBindingCapturedByNode(se.incrementor,qe))&&(_i|=1)),Et.push({flags:_i,originalName:On,outParamName:qr})}}}function L_(se,qe,gt,Et){const Xt=qe.properties,On=Xt.length;for(let Cr=Et;Cric(ju)&&!!wa(ju.declarationList.declarations).initializer,Et=D;D=void 0;const Xt=Dn(qe.statements,_e,Fi);D=Et;const On=zr(Xt,gt),Cr=zr(Xt,ju=>!gt(ju)),_i=Bs(wa(On),ic).declarationList.declarations[0],hs=nl(_i.initializer);let va=Hr(hs,Kl);!va&&rr(hs)&&hs.operatorToken.kind===28&&(va=Hr(hs.left,Kl));const Fo=Bs(va?nl(va.right):hs,Js),Ro=Bs(nl(Fo.expression),_o),Zc=Ro.body.statements;let Oc=0,il=-1;const Ml=[];if(va){const ju=Hr(Zc[Oc],ql);ju&&(Ml.push(ju),Oc++),Ml.push(Zc[Oc]),Oc++,Ml.push(t.createExpressionStatement(t.createAssignment(va.left,Bs(_i.name,we))))}for(;!id(J0(Zc,il));)il--;Fr(Ml,Zc,Oc,il),il<-1&&Fr(Ml,Zc,il+1);const sl=Hr(J0(Zc,il),id);for(const ju of Cr)id(ju)&&(sl==null?void 0:sl.expression)&&!we(sl.expression)?Ml.push(sl):Ml.push(ju);return Fr(Ml,On,1),t.restoreOuterExpressions(se.expression,t.restoreOuterExpressions(_i.initializer,t.restoreOuterExpressions(va&&va.right,t.updateCallExpression(Fo,t.restoreOuterExpressions(Fo.expression,t.updateFunctionExpression(Ro,void 0,void 0,void 0,void 0,Ro.parameters,void 0,t.updateBlock(Ro.body,Ml))),void 0,Fo.arguments))))}function A(se){return Ce(se,!1)}function Ce(se,qe){if(se.transformFlags&32768||se.expression.kind===108||iu(nl(se.expression))){const{target:gt,thisArg:Et}=t.createCallBinding(se.expression,l);se.expression.kind===108&&Xn(Et,8);let Xt;if(se.transformFlags&32768?Xt=t.createFunctionApplyCall(E.checkDefined(Ue(gt,X,nt)),se.expression.kind===108?Et:E.checkDefined(Ue(Et,Z,nt)),xt(se.arguments,!0,!1,!1)):Xt=Ke(t.createFunctionCallCall(E.checkDefined(Ue(gt,X,nt)),se.expression.kind===108?Et:E.checkDefined(Ue(Et,Z,nt)),Dn(se.arguments,Z,nt)),se),se.expression.kind===108){const On=t.createLogicalOr(Xt,bt());Xt=qe?t.createAssignment(t.createUniqueName("_this",48),On):On}return or(Xt,se)}return fn(se,Z,e)}function Re(se){if(dt(se.arguments,jd)){const{target:qe,thisArg:gt}=t.createCallBinding(t.createPropertyAccessExpression(se.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(E.checkDefined(Ue(qe,Z,nt)),gt,xt(t.createNodeArray([t.createVoidZero(),...se.arguments]),!0,!1,!1)),void 0,[])}return fn(se,Z,e)}function xt(se,qe,gt,Et){const Xt=se.length,On=bp(sV(se,yn,(hs,va,Fo,Ro)=>va(hs,gt,Et&&Ro===Xt)));if(On.length===1){const hs=On[0];if(qe&&!u.downlevelIteration||sH(hs.expression)||Z3(hs.expression,"___spreadArray"))return hs.expression}const Cr=r(),qr=On[0].kind!==0;let _i=qr?t.createArrayLiteralExpression():On[0].expression;for(let hs=qr?0:1;hs0&&Et.push(t.createStringLiteral(gt.literal.text)),qe=t.createCallExpression(t.createPropertyAccessExpression(qe,"concat"),void 0,Et)}return Ke(qe,se)}function dc(se){return k&8&&!se?t.createPropertyAccessExpression(t.createUniqueName("_super",48),"prototype"):t.createUniqueName("_super",48)}function Ka(se){return se.keywordToken===105&&se.name.escapedText==="target"?(k|=32768,t.createUniqueName("_newTarget",48)):se}function nc(se,qe,gt){if(M&1&&Cs(qe)){const Et=U(32670,ma(qe)&16?81:65);m(se,qe,gt),Y(Et,0,0);return}m(se,qe,gt)}function H_(){(M&2)===0&&(M|=2,e.enableSubstitution(80))}function Uc(){(M&1)===0&&(M|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function Vo(se,qe){return qe=g(se,qe),se===1?vt(qe):we(qe)?Tu(qe):qe}function Tu(se){if(M&2&&!hG(se)){const qe=ts(se,we);if(qe&&he(qe))return Ke(t.getGeneratedNameForNode(qe),se)}return se}function he(se){switch(se.parent.kind){case 208:case 263:case 266:case 260:return se.parent.name===se&&f.isDeclarationWithCollidingName(se.parent)}return!1}function vt(se){switch(se.kind){case 80:return vn(se);case 110:return ws(se)}return se}function vn(se){if(M&2&&!hG(se)){const qe=f.getReferencedDeclarationWithCollidingName(se);if(qe&&!(ni(qe)&&ji(qe,se)))return Ke(t.getGeneratedNameForNode(os(qe)),se)}return se}function ji(se,qe){let gt=ts(qe);if(!gt||gt===se||gt.end<=se.pos||gt.pos>=se.end)return!1;const Et=mm(se);for(;gt;){if(gt===Et||gt===se)return!1;if(Nl(gt)&>.parent===se)return!0;gt=gt.parent}return!1}function ws(se){return M&1&&k&16?Ke(t.createUniqueName("_this",48),se):se}function Wa(se,qe){return Os(qe)?t.getInternalName(se):t.createPropertyAccessExpression(t.getInternalName(se),"prototype")}function oc(se,qe){if(!se||!qe||dt(se.parameters))return!1;const gt=wl(se.body.statements);if(!gt||!Do(gt)||gt.kind!==244)return!1;const Et=gt.expression;if(!Do(Et)||Et.kind!==213)return!1;const Xt=Et.expression;if(!Do(Xt)||Xt.kind!==108)return!1;const On=om(Et.arguments);if(!On||!Do(On)||On.kind!==230)return!1;const Cr=On.expression;return we(Cr)&&Cr.escapedText==="arguments"}}var c9e=Rt({"src/compiler/transformers/es2015.ts"(){Ls()}});function yge(e){const{factory:t}=e,r=e.getCompilerOptions();let i,a;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),a=[]);const o=e.onSubstituteNode;return e.onSubstituteNode=f,e.enableSubstitution(211),e.enableSubstitution(303),Pp(e,l);function l(x){return x}function u(x,k,C){switch(k.kind){case 286:case 287:case 285:const N=k.tagName;a[t_(N)]=!0;break}i(x,k,C)}function f(x,k){return k.id&&a&&a[k.id]?o(x,k):(k=o(x,k),kr(k)?g(k):Ec(k)?m(k):k)}function g(x){if(Ei(x.name))return x;const k=y(x.name);return k?Ke(t.createElementAccessExpression(x.expression,k),x):x}function m(x){const k=we(x.name)&&y(x.name);return k?t.updatePropertyAssignment(x,k,x.initializer):x}function y(x){const k=py(x);if(k!==void 0&&k>=83&&k<=118)return Ke(t.createStringLiteralFromNode(x),x)}}var l9e=Rt({"src/compiler/transformers/es5.ts"(){Ls()}});function _9e(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function vge(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:a,hoistFunctionDeclaration:o,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),f=Ia(u),g=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=le;let y,x,k,C,N,D,M,V,U,Y,j=1,ee,R,Z,oe,_e=0,X=0,H,Q,ne,ue,fe,G,Ne,De;return Pp(e,Xe);function Xe(he){if(he.isDeclarationFile||(he.transformFlags&2048)===0)return he;const vt=fn(he,ve,e);return Kg(vt,e.readEmitHelpers()),vt}function ve(he){const vt=he.transformFlags;return C?be(he):k?xe(he):Eo(he)&&he.asteriskToken?ct(he):vt&2048?fn(he,ve,e):he}function be(he){switch(he.kind){case 246:return Gr(he);case 247:return ze(he);case 255:return _t(he);case 256:return Fn(he);default:return xe(he)}}function xe(he){switch(he.kind){case 262:return pe(he);case 218:return Pe(he);case 177:case 178:return Ge(he);case 243:return mt(he);case 248:return kt(he);case 249:return Vt(he);case 252:return ft(he);case 251:return Me(he);case 253:return $e(he);default:return he.transformFlags&1048576?rt(he):he.transformFlags&4196352?fn(he,ve,e):he}}function rt(he){switch(he.kind){case 226:return Je(he);case 361:return bt(he);case 227:return xn(he);case 229:return Bt(he);case 209:return er(he);case 210:return pi(he);case 212:return ki(he);case 213:return Nr(he);case 214:return pt(he);default:return fn(he,ve,e)}}function ct(he){switch(he.kind){case 262:return pe(he);case 218:return Pe(he);default:return E.failBadSyntaxKind(he)}}function pe(he){if(he.asteriskToken)he=or(Ke(t.createFunctionDeclaration(he.modifiers,void 0,he.name,void 0,Nc(he.parameters,ve,e),void 0,tt(he.body)),he),he);else{const vt=k,vn=C;k=!1,C=!1,he=fn(he,ve,e),k=vt,C=vn}if(k){o(he);return}else return he}function Pe(he){if(he.asteriskToken)he=or(Ke(t.createFunctionExpression(void 0,void 0,he.name,void 0,Nc(he.parameters,ve,e),void 0,tt(he.body)),he),he);else{const vt=k,vn=C;k=!1,C=!1,he=fn(he,ve,e),k=vt,C=vn}return he}function Ge(he){const vt=k,vn=C;return k=!1,C=!1,he=fn(he,ve,e),k=vt,C=vn,he}function tt(he){const vt=[],vn=k,ji=C,ws=N,Wa=D,oc=M,se=V,qe=U,gt=Y,Et=j,Xt=ee,On=R,Cr=Z,qr=oe;k=!0,C=!1,N=void 0,D=void 0,M=void 0,V=void 0,U=void 0,Y=void 0,j=1,ee=void 0,R=void 0,Z=void 0,oe=t.createTempVariable(void 0),i();const _i=t.copyPrologue(he.statements,vt,!1,ve);ur(he.statements,_i);const hs=Ce();return dm(vt,a()),vt.push(t.createReturnStatement(hs)),k=vn,C=ji,N=ws,D=Wa,M=oc,V=se,U=qe,Y=gt,j=Et,ee=Xt,R=On,Z=Cr,oe=qr,Ke(t.createBlock(vt,he.multiLine),he)}function mt(he){if(he.transformFlags&1048576){wi(he.declarationList);return}else{if(ma(he)&2097152)return he;for(const vn of he.declarationList.declarations)l(vn.name);const vt=w3(he.declarationList);return vt.length===0?void 0:Ca(t.createExpressionStatement(t.inlineExpressions(an(vt,Yt))),he)}}function Je(he){const vt=dq(he);switch(vt){case 0:return Jt(he);case 1:return ot(he);default:return E.assertNever(vt)}}function ot(he){const{left:vt,right:vn}=he;if(z(vn)){let ji;switch(vt.kind){case 211:ji=t.updatePropertyAccessExpression(vt,F(E.checkDefined(Ue(vt.expression,ve,du))),vt.name);break;case 212:ji=t.updateElementAccessExpression(vt,F(E.checkDefined(Ue(vt.expression,ve,du))),F(E.checkDefined(Ue(vt.argumentExpression,ve,nt))));break;default:ji=E.checkDefined(Ue(vt,ve,nt));break}const ws=he.operatorToken.kind;return C8(ws)?Ke(t.createAssignment(ji,Ke(t.createBinaryExpression(F(ji),E8(ws),E.checkDefined(Ue(vn,ve,nt))),he)),he):t.updateBinaryExpression(he,ji,he.operatorToken,E.checkDefined(Ue(vn,ve,nt)))}return fn(he,ve,e)}function Jt(he){return z(he.right)?j_e(he.operatorToken.kind)?_r(he):he.operatorToken.kind===28?Pt(he):t.updateBinaryExpression(he,F(E.checkDefined(Ue(he.left,ve,nt))),he.operatorToken,E.checkDefined(Ue(he.right,ve,nt))):fn(he,ve,e)}function Pt(he){let vt=[];return vn(he.left),vn(he.right),t.inlineExpressions(vt);function vn(ji){rr(ji)&&ji.operatorToken.kind===28?(vn(ji.left),vn(ji.right)):(z(ji)&&vt.length>0&&(A(1,[t.createExpressionStatement(t.inlineExpressions(vt))]),vt=[]),vt.push(E.checkDefined(Ue(ji,ve,nt))))}}function bt(he){let vt=[];for(const vn of he.elements)rr(vn)&&vn.operatorToken.kind===28?vt.push(Pt(vn)):(z(vn)&&vt.length>0&&(A(1,[t.createExpressionStatement(t.inlineExpressions(vt))]),vt=[]),vt.push(E.checkDefined(Ue(vn,ve,nt))));return t.inlineExpressions(vt)}function _r(he){const vt=Oe(),vn=ye();return Ba(vn,E.checkDefined(Ue(he.left,ve,nt)),he.left),he.operatorToken.kind===56?pc(vt,vn,he.left):Wt(vt,vn,he.left),Ba(vn,E.checkDefined(Ue(he.right,ve,nt)),he.right),We(vt),vn}function xn(he){if(z(he.whenTrue)||z(he.whenFalse)){const vt=Oe(),vn=Oe(),ji=ye();return pc(vt,E.checkDefined(Ue(he.condition,ve,nt)),he.condition),Ba(ji,E.checkDefined(Ue(he.whenTrue,ve,nt)),he.whenTrue),Fa(vn),We(vt),Ba(ji,E.checkDefined(Ue(he.whenFalse,ve,nt)),he.whenFalse),We(vn),ji}return fn(he,ve,e)}function Bt(he){const vt=Oe(),vn=Ue(he.expression,ve,nt);if(he.asteriskToken){const ji=(ma(he.expression)&8388608)===0?Ke(r().createValuesHelper(vn),he):vn;h_(ji,he)}else M_(vn,he);return We(vt),Bf(he)}function er(he){return xr(he.elements,void 0,void 0,he.multiLine)}function xr(he,vt,vn,ji){const ws=B(he);let Wa;if(ws>0){Wa=ye();const qe=Dn(he,ve,nt,0,ws);Ba(Wa,t.createArrayLiteralExpression(vt?[vt,...qe]:qe)),vt=void 0}const oc=E_(he,se,[],ws);return Wa?t.createArrayConcatCall(Wa,[t.createArrayLiteralExpression(oc,ji)]):Ke(t.createArrayLiteralExpression(vt?[vt,...oc]:oc,ji),vn);function se(qe,gt){if(z(gt)&&qe.length>0){const Et=Wa!==void 0;Wa||(Wa=ye()),Ba(Wa,Et?t.createArrayConcatCall(Wa,[t.createArrayLiteralExpression(qe,ji)]):t.createArrayLiteralExpression(vt?[vt,...qe]:qe,ji)),vt=void 0,qe=[]}return qe.push(E.checkDefined(Ue(gt,ve,nt))),qe}}function pi(he){const vt=he.properties,vn=he.multiLine,ji=B(vt),ws=ye();Ba(ws,t.createObjectLiteralExpression(Dn(vt,ve,H0,0,ji),vn));const Wa=E_(vt,oc,[],ji);return Wa.push(vn?O_(Ta(Ke(t.cloneNode(ws),ws),ws.parent)):ws),t.inlineExpressions(Wa);function oc(se,qe){z(qe)&&se.length>0&&(po(t.createExpressionStatement(t.inlineExpressions(se))),se=[]);const gt=Hfe(t,he,qe,ws),Et=Ue(gt,ve,nt);return Et&&(vn&&O_(Et),se.push(Et)),se}}function ki(he){return z(he.argumentExpression)?t.updateElementAccessExpression(he,F(E.checkDefined(Ue(he.expression,ve,du))),E.checkDefined(Ue(he.argumentExpression,ve,nt))):fn(he,ve,e)}function Nr(he){if(!Zu(he)&&pn(he.arguments,z)){const{target:vt,thisArg:vn}=t.createCallBinding(he.expression,l,f,!0);return or(Ke(t.createFunctionApplyCall(F(E.checkDefined(Ue(vt,ve,du))),vn,xr(he.arguments)),he),he)}return fn(he,ve,e)}function pt(he){if(pn(he.arguments,z)){const{target:vt,thisArg:vn}=t.createCallBinding(t.createPropertyAccessExpression(he.expression,"bind"),l);return or(Ke(t.createNewExpression(t.createFunctionApplyCall(F(E.checkDefined(Ue(vt,ve,nt))),vn,xr(he.arguments,t.createVoidZero())),void 0,[]),he),he)}return fn(he,ve,e)}function ur(he,vt=0){const vn=he.length;for(let ji=vt;ji0)break;ws.push(Yt(oc))}ws.length&&(po(t.createExpressionStatement(t.inlineExpressions(ws))),ji+=ws.length,ws=[])}}function Yt(he){return Ca(t.createAssignment(Ca(t.cloneNode(he.name),he.name),E.checkDefined(Ue(he.initializer,ve,nt))),he)}function Gt(he){if(z(he))if(z(he.thenStatement)||z(he.elseStatement)){const vt=Oe(),vn=he.elseStatement?Oe():void 0;pc(he.elseStatement?vn:vt,E.checkDefined(Ue(he.expression,ve,nt)),he.expression),hn(he.thenStatement),he.elseStatement&&(Fa(vt),We(vn),hn(he.elseStatement)),We(vt)}else po(Ue(he,ve,Fi));else po(Ue(he,ve,Fi))}function Sn(he){if(z(he)){const vt=Oe(),vn=Oe();Yr(vt),We(vn),hn(he.statement),We(vt),Wt(vn,E.checkDefined(Ue(he.expression,ve,nt))),cs()}else po(Ue(he,ve,Fi))}function Gr(he){return C?(Us(),he=fn(he,ve,e),cs(),he):fn(he,ve,e)}function Er(he){if(z(he)){const vt=Oe(),vn=Yr(vt);We(vt),pc(vn,E.checkDefined(Ue(he.expression,ve,nt))),hn(he.statement),Fa(vt),cs()}else po(Ue(he,ve,Fi))}function ze(he){return C?(Us(),he=fn(he,ve,e),cs(),he):fn(he,ve,e)}function ut(he){if(z(he)){const vt=Oe(),vn=Oe(),ji=Yr(vn);if(he.initializer){const ws=he.initializer;ml(ws)?wi(ws):po(Ke(t.createExpressionStatement(E.checkDefined(Ue(ws,ve,nt))),ws))}We(vt),he.condition&&pc(ji,E.checkDefined(Ue(he.condition,ve,nt))),hn(he.statement),We(vn),he.incrementor&&po(Ke(t.createExpressionStatement(E.checkDefined(Ue(he.incrementor,ve,nt))),he.incrementor)),Fa(vt),cs()}else po(Ue(he,ve,Fi))}function kt(he){C&&Us();const vt=he.initializer;if(vt&&ml(vt)){for(const ji of vt.declarations)l(ji.name);const vn=w3(vt);he=t.updateForStatement(he,vn.length>0?t.inlineExpressions(an(vn,Yt)):void 0,Ue(he.condition,ve,nt),Ue(he.incrementor,ve,nt),W_(he.statement,ve,e))}else he=fn(he,ve,e);return C&&cs(),he}function it(he){if(z(he)){const vt=ye(),vn=ye(),ji=ye(),ws=t.createLoopVariable(),Wa=he.initializer;l(ws),Ba(vt,E.checkDefined(Ue(he.expression,ve,nt))),Ba(vn,t.createArrayLiteralExpression()),po(t.createForInStatement(ji,vt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(vn,"push"),void 0,[ji])))),Ba(ws,t.createNumericLiteral(0));const oc=Oe(),se=Oe(),qe=Yr(se);We(oc),pc(qe,t.createLessThan(ws,t.createPropertyAccessExpression(vn,"length"))),Ba(ji,t.createElementAccessExpression(vn,ws)),pc(se,t.createBinaryExpression(ji,103,vt));let gt;if(ml(Wa)){for(const Et of Wa.declarations)l(Et.name);gt=t.cloneNode(Wa.declarations[0].name)}else gt=E.checkDefined(Ue(Wa,ve,nt)),E.assert(du(gt));Ba(gt,ji),hn(he.statement),We(se),po(t.createExpressionStatement(t.createPostfixIncrement(ws))),Fa(oc),cs()}else po(Ue(he,ve,Fi))}function Vt(he){C&&Us();const vt=he.initializer;if(ml(vt)){for(const vn of vt.declarations)l(vn.name);he=t.updateForInStatement(he,vt.declarations[0].name,E.checkDefined(Ue(he.expression,ve,nt)),E.checkDefined(Ue(he.statement,ve,Fi,t.liftToBlock)))}else he=fn(he,ve,e);return C&&cs(),he}function ae(he){const vt=Li(he.label?lr(he.label):void 0);vt>0?Fa(vt,he):po(he)}function Me(he){if(C){const vt=Li(he.label&&lr(he.label));if(vt>0)return L_(vt,he)}return fn(he,ve,e)}function ke(he){const vt=ls(he.label?lr(he.label):void 0);vt>0?Fa(vt,he):po(he)}function ft(he){if(C){const vt=ls(he.label&&lr(he.label));if(vt>0)return L_(vt,he)}return fn(he,ve,e)}function K(he){q_(Ue(he.expression,ve,nt),he)}function $e(he){return _l(Ue(he.expression,ve,nt),he)}function Ae(he){z(he)?(ir(F(E.checkDefined(Ue(he.expression,ve,nt)))),hn(he.statement),ar()):po(Ue(he,ve,Fi))}function ht(he){if(z(he.caseBlock)){const vt=he.caseBlock,vn=vt.clauses.length,ji=di(),ws=F(E.checkDefined(Ue(he.expression,ve,nt))),Wa=[];let oc=-1;for(let gt=0;gt0)break;qe.push(t.createCaseClause(E.checkDefined(Ue(Xt.expression,ve,nt)),[L_(Wa[Et],Xt.expression)]))}else gt++}qe.length&&(po(t.createSwitchStatement(ws,t.createCaseBlock(qe))),se+=qe.length,qe=[]),gt>0&&(se+=gt,gt=0)}oc>=0?Fa(Wa[oc]):Fa(ji);for(let gt=0;gt=0;vn--){const ji=V[vn];if(ro(ji)){if(ji.labelText===he)return!0}else break}return!1}function ls(he){if(V)if(he)for(let vt=V.length-1;vt>=0;vt--){const vn=V[vt];if(ro(vn)&&vn.labelText===he)return vn.breakLabel;if(Ea(vn)&&Pc(he,vt-1))return vn.breakLabel}else for(let vt=V.length-1;vt>=0;vt--){const vn=V[vt];if(Ea(vn))return vn.breakLabel}return 0}function Li(he){if(V)if(he)for(let vt=V.length-1;vt>=0;vt--){const vn=V[vt];if(za(vn)&&Pc(he,vt-1))return vn.continueLabel}else for(let vt=V.length-1;vt>=0;vt--){const vn=V[vt];if(za(vn))return vn.continueLabel}return 0}function Vc(he){if(he!==void 0&&he>0){Y===void 0&&(Y=[]);const vt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Y[he]===void 0?Y[he]=[vt]:Y[he].push(vt),vt}return t.createOmittedExpression()}function zo(he){const vt=t.createNumericLiteral(he);return MO(vt,3,_9e(he)),vt}function L_(he,vt){return E.assertLessThan(0,he,"Invalid label"),Ke(t.createReturnStatement(t.createArrayLiteralExpression([zo(3),Vc(he)])),vt)}function _l(he,vt){return Ke(t.createReturnStatement(t.createArrayLiteralExpression(he?[zo(2),he]:[zo(2)])),vt)}function Bf(he){return Ke(t.createCallExpression(t.createPropertyAccessExpression(oe,"sent"),void 0,[]),he)}function Rs(){A(0)}function po(he){he?A(1,[he]):Rs()}function Ba(he,vt,vn){A(2,[he,vt],vn)}function Fa(he,vt){A(3,[he],vt)}function Wt(he,vt,vn){A(4,[he,vt],vn)}function pc(he,vt,vn){A(5,[he,vt],vn)}function h_(he,vt){A(7,[he],vt)}function M_(he,vt){A(6,[he],vt)}function q_(he,vt){A(8,[he],vt)}function vo(he,vt){A(9,[he],vt)}function $o(){A(10)}function A(he,vt,vn){ee===void 0&&(ee=[],R=[],Z=[]),U===void 0&&We(Oe());const ji=ee.length;ee[ji]=he,R[ji]=vt,Z[ji]=vn}function Ce(){_e=0,X=0,H=void 0,Q=!1,ne=!1,ue=void 0,fe=void 0,G=void 0,Ne=void 0,De=void 0;const he=Re();return r().createGeneratorHelper(Xn(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,oe)],void 0,t.createBlock(he,he.length>0)),1048576))}function Re(){if(ee){for(let he=0;he=0;vt--){const vn=De[vt];fe=[t.createWithStatement(vn.expression,t.createBlock(fe))]}if(Ne){const{startLabel:vt,catchLabel:vn,finallyLabel:ji,endLabel:ws}=Ne;fe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(oe,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Vc(vt),Vc(vn),Vc(ji),Vc(ws)])]))),Ne=void 0}he&&fe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(oe,"label"),t.createNumericLiteral(X+1))))}ue.push(t.createCaseClause(t.createNumericLiteral(X),fe||[])),fe=void 0}function gr(he){if(!!U)for(let vt=0;vtr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(lr(We))),Oe),r.createVoidZero())));dn(B,Ue(D.externalHelpersImportDeclaration,H,Fi)),Fr(B,Dn(z.statements,H,Fi,W)),X(B,!1),dm(B,o());const ge=r.updateSourceFile(z,Ke(r.createNodeArray(B),z.statements));return Kg(ge,e.readEmitHelpers()),ge}function ee(z){const B=r.createIdentifier("define"),le=gA(r,z,g,u),W=Zf(z)&&z,{aliasedModuleNames:ge,unaliasedModuleNames:F,importAliasNames:ye}=Z(z,!0),Oe=r.updateSourceFile(z,Ke(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(B,void 0,[...le?[le]:[],r.createArrayLiteralExpression(W?Ve:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...ge,...F]),W?W.statements.length?W.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...ye],void 0,_e(z))]))]),z.statements));return Kg(Oe,e.readEmitHelpers()),Oe}function R(z){const{aliasedModuleNames:B,unaliasedModuleNames:le,importAliasNames:W}=Z(z,!1),ge=gA(r,z,g,u),F=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,Ke(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),Xn(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...ge?[ge]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...B,...le]),r.createIdentifier("factory")]))])))],!0),void 0)),ye=r.updateSourceFile(z,Ke(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(F,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...W],void 0,_e(z))]))]),z.statements));return Kg(ye,e.readEmitHelpers()),ye}function Z(z,B){const le=[],W=[],ge=[];for(const F of z.amdDependencies)F.name?(le.push(r.createStringLiteral(F.path)),ge.push(r.createParameterDeclaration(void 0,void 0,F.name))):W.push(r.createStringLiteral(F.path));for(const F of D.externalImports){const ye=yS(r,F,N,g,f,u),Oe=c4(r,F,N);ye&&(B&&Oe?(Xn(Oe,8),le.push(ye),ge.push(r.createParameterDeclaration(void 0,void 0,Oe))):W.push(ye))}return{aliasedModuleNames:le,unaliasedModuleNames:W,importAliasNames:ge}}function oe(z){if(Hl(z)||Yc(z)||!yS(r,z,N,g,f,u))return;const B=c4(r,z,N),le=Nr(z,B);if(le!==B)return r.createExpressionStatement(r.createAssignment(B,le))}function _e(z){a();const B=[],le=r.copyPrologue(z.statements,B,!u.noImplicitUseStrict,H);Y()&&dn(B,ae()),Nn(D.exportedNames)&&dn(B,r.createExpressionStatement(E_(D.exportedNames,(ge,F)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(lr(F))),ge),r.createVoidZero()))),dn(B,Ue(D.externalHelpersImportDeclaration,H,Fi)),y===2&&Fr(B,Hi(D.externalImports,oe)),Fr(B,Dn(z.statements,H,Fi,le)),X(B,!0),dm(B,o());const W=r.createBlock(B,!0);return V&&nS(W,bge),W}function X(z,B){if(D.exportEquals){const le=Ue(D.exportEquals.expression,ue,nt);if(le)if(B){const W=r.createReturnStatement(le);Ke(W,D.exportEquals),Xn(W,3840),z.push(W)}else{const W=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),le));Ke(W,D.exportEquals),Xn(W,3072),z.push(W)}}}function H(z){switch(z.kind){case 272:return pt(z);case 271:return hn(z);case 278:return Ct(z);case 277:return cn(z);default:return Q(z)}}function Q(z){switch(z.kind){case 243:return wi(z);case 262:return Pn(z);case 263:return Sr(z);case 248:return De(z,!0);case 249:return Xe(z);case 250:return ve(z);case 246:return be(z);case 247:return xe(z);case 256:return rt(z);case 254:return ct(z);case 245:return pe(z);case 255:return Pe(z);case 269:return Ge(z);case 296:return tt(z);case 297:return mt(z);case 258:return Je(z);case 299:return ot(z);case 241:return Jt(z);default:return ue(z)}}function ne(z,B){if(!(z.transformFlags&276828160))return z;switch(z.kind){case 248:return De(z,!1);case 244:return Pt(z);case 217:return bt(z,B);case 360:return _r(z,B);case 213:if(Zu(z)&&N.impliedNodeFormat===void 0)return Bt(z);break;case 226:if(Z0(z))return Ne(z,B);break;case 224:case 225:return xn(z,B)}return fn(z,ue,e)}function ue(z){return ne(z,!1)}function fe(z){return ne(z,!0)}function G(z){if(ha(z))for(const B of z.properties)switch(B.kind){case 303:if(G(B.initializer))return!0;break;case 304:if(G(B.name))return!0;break;case 305:if(G(B.expression))return!0;break;case 174:case 177:case 178:return!1;default:E.assertNever(B,"Unhandled object member kind")}else if(u_(z)){for(const B of z.elements)if(jd(B)){if(G(B.expression))return!0}else if(G(B))return!0}else if(we(z))return Nn(hi(z))>(DF(z)?1:0);return!1}function Ne(z,B){return G(z.left)?pT(z,ue,e,0,!B,Yt):fn(z,ue,e)}function De(z,B){if(B&&z.initializer&&ml(z.initializer)&&!(z.initializer.flags&7)){const le=ze(void 0,z.initializer,!1);if(le){const W=[],ge=Ue(z.initializer,fe,ml),F=r.createVariableStatement(void 0,ge);W.push(F),Fr(W,le);const ye=Ue(z.condition,ue,nt),Oe=Ue(z.incrementor,fe,nt),We=W_(z.statement,B?Q:ue,e);return W.push(r.updateForStatement(z,void 0,ye,Oe,We)),W}}return r.updateForStatement(z,Ue(z.initializer,fe,If),Ue(z.condition,ue,nt),Ue(z.incrementor,fe,nt),W_(z.statement,B?Q:ue,e))}function Xe(z){if(ml(z.initializer)&&!(z.initializer.flags&7)){const B=ze(void 0,z.initializer,!0);if(dt(B)){const le=Ue(z.initializer,fe,If),W=Ue(z.expression,ue,nt),ge=W_(z.statement,Q,e),F=vs(ge)?r.updateBlock(ge,[...B,...ge.statements]):r.createBlock([...B,ge],!0);return r.updateForInStatement(z,le,W,F)}}return r.updateForInStatement(z,Ue(z.initializer,fe,If),Ue(z.expression,ue,nt),W_(z.statement,Q,e))}function ve(z){if(ml(z.initializer)&&!(z.initializer.flags&7)){const B=ze(void 0,z.initializer,!0),le=Ue(z.initializer,fe,If),W=Ue(z.expression,ue,nt);let ge=W_(z.statement,Q,e);return dt(B)&&(ge=vs(ge)?r.updateBlock(ge,[...B,...ge.statements]):r.createBlock([...B,ge],!0)),r.updateForOfStatement(z,z.awaitModifier,le,W,ge)}return r.updateForOfStatement(z,z.awaitModifier,Ue(z.initializer,fe,If),Ue(z.expression,ue,nt),W_(z.statement,Q,e))}function be(z){return r.updateDoStatement(z,W_(z.statement,Q,e),Ue(z.expression,ue,nt))}function xe(z){return r.updateWhileStatement(z,Ue(z.expression,ue,nt),W_(z.statement,Q,e))}function rt(z){return r.updateLabeledStatement(z,z.label,E.checkDefined(Ue(z.statement,Q,Fi,r.liftToBlock)))}function ct(z){return r.updateWithStatement(z,Ue(z.expression,ue,nt),E.checkDefined(Ue(z.statement,Q,Fi,r.liftToBlock)))}function pe(z){return r.updateIfStatement(z,Ue(z.expression,ue,nt),E.checkDefined(Ue(z.thenStatement,Q,Fi,r.liftToBlock)),Ue(z.elseStatement,Q,Fi,r.liftToBlock))}function Pe(z){return r.updateSwitchStatement(z,Ue(z.expression,ue,nt),E.checkDefined(Ue(z.caseBlock,Q,c8)))}function Ge(z){return r.updateCaseBlock(z,Dn(z.clauses,Q,u9))}function tt(z){return r.updateCaseClause(z,Ue(z.expression,ue,nt),Dn(z.statements,Q,Fi))}function mt(z){return fn(z,Q,e)}function Je(z){return fn(z,Q,e)}function ot(z){return r.updateCatchClause(z,z.variableDeclaration,E.checkDefined(Ue(z.block,Q,vs)))}function Jt(z){return z=fn(z,Q,e),z}function Pt(z){return r.updateExpressionStatement(z,Ue(z.expression,fe,nt))}function bt(z,B){return r.updateParenthesizedExpression(z,Ue(z.expression,B?fe:ue,nt))}function _r(z,B){return r.updatePartiallyEmittedExpression(z,Ue(z.expression,B?fe:ue,nt))}function xn(z,B){if((z.operator===46||z.operator===47)&&we(z.operand)&&!Jo(z.operand)&&!e0(z.operand)&&!Rq(z.operand)){const le=hi(z.operand);if(le){let W,ge=Ue(z.operand,ue,nt);Ny(z)?ge=r.updatePrefixUnaryExpression(z,ge):(ge=r.updatePostfixUnaryExpression(z,ge),B||(W=r.createTempVariable(l),ge=r.createAssignment(W,ge),Ke(ge,z)),ge=r.createComma(ge,r.cloneNode(z.operand)),Ke(ge,z));for(const F of le)M[Ra(ge)]=!0,ge=ke(F,ge),Ke(ge,z);return W&&(M[Ra(ge)]=!0,ge=r.createComma(ge,W),Ke(ge,z)),ge}}return fn(z,ue,e)}function Bt(z){if(y===0&&m>=7)return fn(z,ue,e);const B=yS(r,z,N,g,f,u),le=Ue(wl(z.arguments),ue,nt),W=B&&(!le||!fa(le)||le.text!==B.text)?B:le,ge=!!(z.transformFlags&16384);switch(u.module){case 2:return xr(W,ge);case 3:return er(W!=null?W:r.createVoidZero(),ge);case 1:default:return pi(W)}}function er(z,B){if(V=!0,k2(z)){const le=Jo(z)?z:fa(z)?r.createStringLiteralFromNode(z):Xn(Ke(r.cloneNode(z),z),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,pi(z),void 0,xr(le,B))}else{const le=r.createTempVariable(l);return r.createComma(r.createAssignment(le,z),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,pi(le,!0),void 0,xr(le,B)))}}function xr(z,B){const le=r.createUniqueName("resolve"),W=r.createUniqueName("reject"),ge=[r.createParameterDeclaration(void 0,void 0,le),r.createParameterDeclaration(void 0,void 0,W)],F=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([z||r.createOmittedExpression()]),le,W]))]);let ye;m>=2?ye=r.createArrowFunction(void 0,void 0,ge,void 0,void 0,F):(ye=r.createFunctionExpression(void 0,void 0,void 0,void 0,ge,void 0,F),B&&Xn(ye,16));const Oe=r.createNewExpression(r.createIdentifier("Promise"),void 0,[ye]);return bm(u)?r.createCallExpression(r.createPropertyAccessExpression(Oe,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Oe}function pi(z,B){const le=z&&!Ud(z)&&!B,W=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,le?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(z,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[z])]:[]);let ge=r.createCallExpression(r.createIdentifier("require"),void 0,le?[r.createIdentifier("s")]:z?[z]:[]);bm(u)&&(ge=i().createImportStarHelper(ge));const F=le?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let ye;return m>=2?ye=r.createArrowFunction(void 0,void 0,F,void 0,void 0,ge):ye=r.createFunctionExpression(void 0,void 0,void 0,void 0,F,void 0,r.createBlock([r.createReturnStatement(ge)])),r.createCallExpression(r.createPropertyAccessExpression(W,"then"),void 0,[ye])}function ki(z,B){return!bm(u)||xp(z)&2?B:zme(z)?i().createImportStarHelper(B):B}function Nr(z,B){return!bm(u)||xp(z)&2?B:wL(z)?i().createImportStarHelper(B):J$(z)?i().createImportDefaultHelper(B):B}function pt(z){let B;const le=S6(z);if(y!==2)if(z.importClause){const W=[];le&&!jx(z)?W.push(r.createVariableDeclaration(r.cloneNode(le.name),void 0,void 0,Nr(z,ur(z)))):(W.push(r.createVariableDeclaration(r.getGeneratedNameForNode(z),void 0,void 0,Nr(z,ur(z)))),le&&jx(z)&&W.push(r.createVariableDeclaration(r.cloneNode(le.name),void 0,void 0,r.getGeneratedNameForNode(z)))),B=dn(B,or(Ke(r.createVariableStatement(void 0,r.createVariableDeclarationList(W,m>=2?2:0)),z),z))}else return or(Ke(r.createExpressionStatement(ur(z)),z),z);else le&&jx(z)&&(B=dn(B,r.createVariableStatement(void 0,r.createVariableDeclarationList([or(Ke(r.createVariableDeclaration(r.cloneNode(le.name),void 0,void 0,r.getGeneratedNameForNode(z)),z),z)],m>=2?2:0))));return B=Sn(B,z),cm(B)}function ur(z){const B=yS(r,z,N,g,f,u),le=[];return B&&le.push(B),r.createCallExpression(r.createIdentifier("require"),void 0,le)}function hn(z){E.assert(yy(z),"import= for internal module references should be handled in an earlier transformer.");let B;return y!==2?Lr(z,1)?B=dn(B,or(Ke(r.createExpressionStatement(ke(z.name,ur(z))),z),z)):B=dn(B,or(Ke(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(z.name),void 0,void 0,ur(z))],m>=2?2:0)),z),z)):Lr(z,1)&&(B=dn(B,or(Ke(r.createExpressionStatement(ke(r.getExportName(z),r.getLocalName(z))),z),z))),B=Gr(B,z),cm(B)}function Ct(z){if(!z.moduleSpecifier)return;const B=r.getGeneratedNameForNode(z);if(z.exportClause&&op(z.exportClause)){const le=[];y!==2&&le.push(or(Ke(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(B,void 0,void 0,ur(z))])),z),z));for(const W of z.exportClause.elements)if(m===0)le.push(or(Ke(r.createExpressionStatement(i().createCreateBindingHelper(B,r.createStringLiteralFromNode(W.propertyName||W.name),W.propertyName?r.createStringLiteralFromNode(W.name):void 0)),W),W));else{const ge=!!bm(u)&&!(xp(z)&2)&&lr(W.propertyName||W.name)==="default",F=r.createPropertyAccessExpression(ge?i().createImportDefaultHelper(B):B,W.propertyName||W.name);le.push(or(Ke(r.createExpressionStatement(ke(r.getExportName(W),F,void 0,!0)),W),W))}return cm(le)}else if(z.exportClause){const le=[];return le.push(or(Ke(r.createExpressionStatement(ke(r.cloneNode(z.exportClause.name),ki(z,y!==2?ur(z):b9(z)?B:r.createIdentifier(lr(z.exportClause.name))))),z),z)),cm(le)}else return or(Ke(r.createExpressionStatement(i().createExportStarHelper(y!==2?ur(z):B)),z),z)}function cn(z){if(!z.isExportEquals)return Me(r.createIdentifier("default"),Ue(z.expression,ue,nt),z,!0)}function Pn(z){let B;return Lr(z,1)?B=dn(B,or(Ke(r.createFunctionDeclaration(Dn(z.modifiers,ft,Zs),z.asteriskToken,r.getDeclarationName(z,!0,!0),void 0,Dn(z.parameters,ue,rs),void 0,fn(z.body,ue,e)),z),z)):B=dn(B,fn(z,ue,e)),B=kt(B,z),cm(B)}function Sr(z){let B;return Lr(z,1)?B=dn(B,or(Ke(r.createClassDeclaration(Dn(z.modifiers,ft,wo),r.getDeclarationName(z,!0,!0),void 0,Dn(z.heritageClauses,ue,tf),Dn(z.members,ue,Nl)),z),z)):B=dn(B,fn(z,ue,e)),B=kt(B,z),cm(B)}function wi(z){let B,le,W;if(Lr(z,1)){let ge,F=!1;for(const ye of z.declarationList.declarations)if(we(ye.name)&&e0(ye.name))if(ge||(ge=Dn(z.modifiers,ft,Zs)),ye.initializer){const Oe=r.updateVariableDeclaration(ye,ye.name,void 0,void 0,ke(ye.name,Ue(ye.initializer,ue,nt)));le=dn(le,Oe)}else le=dn(le,ye);else if(ye.initializer)if(!Ps(ye.name)&&(Po(ye.initializer)||_o(ye.initializer)||Fl(ye.initializer))){const Oe=r.createAssignment(Ke(r.createPropertyAccessExpression(r.createIdentifier("exports"),ye.name),ye.name),r.createIdentifier(Cp(ye.name))),We=r.createVariableDeclaration(ye.name,ye.exclamationToken,ye.type,Ue(ye.initializer,ue,nt));le=dn(le,We),W=dn(W,Oe),F=!0}else W=dn(W,Gt(ye));if(le&&(B=dn(B,r.updateVariableStatement(z,ge,r.updateVariableDeclarationList(z.declarationList,le)))),W){const ye=or(Ke(r.createExpressionStatement(r.inlineExpressions(W)),z),z);F&&XD(ye),B=dn(B,ye)}}else B=dn(B,fn(z,ue,e));return B=Er(B,z),cm(B)}function Yt(z,B,le){const W=hi(z);if(W){let ge=DF(z)?B:r.createAssignment(z,B);for(const F of W)Xn(ge,8),ge=ke(F,ge,le);return ge}return r.createAssignment(z,B)}function Gt(z){return Ps(z.name)?pT(Ue(z,ue,ED),ue,e,0,!1,Yt):r.createAssignment(Ke(r.createPropertyAccessExpression(r.createIdentifier("exports"),z.name),z.name),z.initializer?Ue(z.initializer,ue,nt):r.createVoidZero())}function Sn(z,B){if(D.exportEquals)return z;const le=B.importClause;if(!le)return z;const W=new CS;le.name&&(z=it(z,W,le));const ge=le.namedBindings;if(ge)switch(ge.kind){case 274:z=it(z,W,ge);break;case 275:for(const F of ge.elements)z=it(z,W,F,!0);break}return z}function Gr(z,B){return D.exportEquals?z:it(z,new CS,B)}function Er(z,B){return ze(z,B.declarationList,!1)}function ze(z,B,le){if(D.exportEquals)return z;for(const W of B.declarations)z=ut(z,W,le);return z}function ut(z,B,le){if(D.exportEquals)return z;if(Ps(B.name))for(const W of B.name.elements)dl(W)||(z=ut(z,W,le));else!Jo(B.name)&&(!Ri(B)||B.initializer||le)&&(z=it(z,new CS,B));return z}function kt(z,B){if(D.exportEquals)return z;const le=new CS;if(Lr(B,1)){const W=Lr(B,1024)?r.createIdentifier("default"):r.getDeclarationName(B);z=Vt(z,le,W,r.getLocalName(B),B)}return B.name&&(z=it(z,le,B)),z}function it(z,B,le,W){const ge=r.getDeclarationName(le),F=D.exportSpecifiers.get(ge);if(F)for(const ye of F)z=Vt(z,B,ye.name,ge,ye.name,void 0,W);return z}function Vt(z,B,le,W,ge,F,ye){return B.has(le)||(B.set(le,!0),z=dn(z,Me(le,W,ge,F,ye))),z}function ae(){let z;return m===0?z=r.createExpressionStatement(ke(r.createIdentifier("__esModule"),r.createTrue())):z=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),Xn(z,2097152),z}function Me(z,B,le,W,ge){const F=Ke(r.createExpressionStatement(ke(z,B,void 0,ge)),le);return O_(F),W||Xn(F,3072),F}function ke(z,B,le,W){return Ke(W&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(z),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(B)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(z)),B),le)}function ft(z){switch(z.kind){case 95:case 90:return}return z}function K(z,B,le){B.kind===312?(N=B,D=C[t_(N)],k(z,B,le),N=void 0,D=void 0):k(z,B,le)}function $e(z,B){return B=x(z,B),B.id&&M[B.id]?B:z===1?ht(B):nf(B)?Ae(B):B}function Ae(z){const B=z.name,le=Fn(B);if(le!==B){if(z.objectAssignmentInitializer){const W=r.createAssignment(le,z.objectAssignmentInitializer);return Ke(r.createPropertyAssignment(B,W),z)}return Ke(r.createPropertyAssignment(B,le),z)}return z}function ht(z){switch(z.kind){case 80:return Fn(z);case 213:return _t(z);case 215:return jt(z);case 226:return Nt(z)}return z}function _t(z){if(we(z.expression)){const B=Fn(z.expression);if(M[Ra(B)]=!0,!we(B)&&!(ma(z.expression)&8192))return eS(r.updateCallExpression(z,B,void 0,z.arguments),16)}return z}function jt(z){if(we(z.tag)){const B=Fn(z.tag);if(M[Ra(B)]=!0,!we(B)&&!(ma(z.tag)&8192))return eS(r.updateTaggedTemplateExpression(z,B,void 0,z.template),16)}return z}function Fn(z){var B,le;if(ma(z)&8192){const W=mA(N);return W?r.createPropertyAccessExpression(W,z):z}else if(!(Jo(z)&&!(z.emitNode.autoGenerate.flags&64))&&!e0(z)){const W=f.getReferencedExportContainer(z,DF(z));if(W&&W.kind===312)return Ke(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(z)),z);const ge=f.getReferencedImportDeclaration(z);if(ge){if(Sm(ge))return Ke(r.createPropertyAccessExpression(r.getGeneratedNameForNode(ge.parent),r.createIdentifier("default")),z);if(vu(ge)){const F=ge.propertyName||ge.name;return Ke(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((le=(B=ge.parent)==null?void 0:B.parent)==null?void 0:le.parent)||ge),r.cloneNode(F)),z)}}}return z}function Nt(z){if(Y0(z.operatorToken.kind)&&we(z.left)&&(!Jo(z.left)||Tw(z.left))&&!e0(z.left)){const B=hi(z.left);if(B){let le=z;for(const W of B)M[Ra(le)]=!0,le=ke(W,le,z);return le}}return z}function hi(z){if(Jo(z)){if(Tw(z)){const B=D==null?void 0:D.exportSpecifiers.get(z);if(B){const le=[];for(const W of B)le.push(W.name);return le}}}else{const B=f.getReferencedImportDeclaration(z);if(B)return D==null?void 0:D.exportedBindings[t_(B)];const le=new Set,W=f.getReferencedValueDeclarations(z);if(W){for(const ge of W){const F=D==null?void 0:D.exportedBindings[t_(ge)];if(F)for(const ye of F)le.add(ye)}if(le.size)return ra(le)}}}}var bge,f9e=Rt({"src/compiler/transformers/module/module.ts"(){Ls(),bge={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Tge(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,o=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),f=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=ke,e.onEmitNode=Me,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const m=[],y=[],x=[],k=[];let C,N,D,M,V,U,Y;return Pp(e,j);function j(z){if(z.isDeclarationFile||!(Lx(z,o)||z.transformFlags&8388608))return z;const B=t_(z);C=z,U=z,N=m[B]=z$(e,z),D=t.createUniqueName("exports"),y[B]=D,M=k[B]=t.createUniqueName("context");const le=ee(N.externalImports),W=R(z,le),ge=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,D),t.createParameterDeclaration(void 0,void 0,M)],void 0,W),F=gA(t,z,u,o),ye=t.createArrayLiteralExpression(an(le,We=>We.name)),Oe=Xn(t.updateSourceFile(z,Ke(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,F?[F,ye,ge]:[ye,ge]))]),z.statements)),2048);return Ao(o)||_fe(Oe,W,We=>!We.scoped),Y&&(x[B]=Y,Y=void 0),C=void 0,N=void 0,D=void 0,M=void 0,V=void 0,U=void 0,Oe}function ee(z){const B=new Map,le=[];for(const W of z){const ge=yS(t,W,C,u,l,o);if(ge){const F=ge.text,ye=B.get(F);ye!==void 0?le[ye].externalImports.push(W):(B.set(F,le.length),le.push({name:ge,externalImports:[W]}))}}return le}function R(z,B){const le=[];r();const W=rp(o,"alwaysStrict")||!o.noImplicitUseStrict&&zc(C),ge=t.copyPrologue(z.statements,le,W,X);le.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(M,t.createPropertyAccessExpression(M,"id")))]))),Ue(N.externalHelpersImportDeclaration,X,Fi);const F=Dn(z.statements,X,Fi,ge);Fr(le,V),dm(le,i());const ye=Z(le),Oe=z.transformFlags&2097152?t.createModifiersFromModifierFlags(512):void 0,We=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",_e(ye,B)),t.createPropertyAssignment("execute",t.createFunctionExpression(Oe,void 0,void 0,void 0,[],void 0,t.createBlock(F,!0)))],!0);return le.push(t.createReturnStatement(We)),t.createBlock(le,!0)}function Z(z){if(!N.hasExportStarsToExportValues)return;if(!N.exportedNames&&N.exportSpecifiers.size===0){let ge=!1;for(const F of N.externalImports)if(F.kind===278&&F.exportClause){ge=!0;break}if(!ge){const F=oe(void 0);return z.push(F),F.name}}const B=[];if(N.exportedNames)for(const ge of N.exportedNames)ge.escapedText!=="default"&&B.push(t.createPropertyAssignment(t.createStringLiteralFromNode(ge),t.createTrue()));const le=t.createUniqueName("exportedNames");z.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(le,void 0,void 0,t.createObjectLiteralExpression(B,!0))])));const W=oe(le);return z.push(W),W.name}function oe(z){const B=t.createUniqueName("exportStar"),le=t.createIdentifier("m"),W=t.createIdentifier("n"),ge=t.createIdentifier("exports");let F=t.createStrictInequality(W,t.createStringLiteral("default"));return z&&(F=t.createLogicalAnd(F,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(z,"hasOwnProperty"),void 0,[W])))),t.createFunctionDeclaration(void 0,void 0,B,void 0,[t.createParameterDeclaration(void 0,void 0,le)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ge,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(W)]),le,t.createBlock([Xn(t.createIfStatement(F,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ge,W),t.createElementAccessExpression(le,W)))),1)])),t.createExpressionStatement(t.createCallExpression(D,void 0,[ge]))],!0))}function _e(z,B){const le=[];for(const W of B){const ge=pn(W.externalImports,Oe=>c4(t,Oe,C)),F=ge?t.getGeneratedNameForNode(ge):t.createUniqueName(""),ye=[];for(const Oe of W.externalImports){const We=c4(t,Oe,C);switch(Oe.kind){case 272:if(!Oe.importClause)break;case 271:E.assert(We!==void 0),ye.push(t.createExpressionStatement(t.createAssignment(We,F))),Lr(Oe,1)&&ye.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(lr(We)),F])));break;case 278:if(E.assert(We!==void 0),Oe.exportClause)if(op(Oe.exportClause)){const Tt=[];for(const It of Oe.exportClause.elements)Tt.push(t.createPropertyAssignment(t.createStringLiteral(lr(It.name)),t.createElementAccessExpression(F,t.createStringLiteral(lr(It.propertyName||It.name)))));ye.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createObjectLiteralExpression(Tt,!0)])))}else ye.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(lr(Oe.exportClause.name)),F])));else ye.push(t.createExpressionStatement(t.createCallExpression(z,void 0,[F])));break}}le.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,F)],void 0,t.createBlock(ye,!0)))}return t.createArrayLiteralExpression(le,!0)}function X(z){switch(z.kind){case 272:return H(z);case 271:return ne(z);case 278:return Q(z);case 277:return ue(z);default:return Pt(z)}}function H(z){let B;return z.importClause&&a(c4(t,z,C)),cm(ct(B,z))}function Q(z){E.assertIsDefined(z)}function ne(z){E.assert(yy(z),"import= for internal module references should be handled in an earlier transformer.");let B;return a(c4(t,z,C)),cm(pe(B,z))}function ue(z){if(z.isExportEquals)return;const B=Ue(z.expression,Gt,nt);return ot(t.createIdentifier("default"),B,!0)}function fe(z){Lr(z,1)?V=dn(V,t.updateFunctionDeclaration(z,Dn(z.modifiers,ae,wo),z.asteriskToken,t.getDeclarationName(z,!0,!0),void 0,Dn(z.parameters,Gt,rs),void 0,Ue(z.body,Gt,vs))):V=dn(V,fn(z,Gt,e)),V=tt(V,z)}function G(z){let B;const le=t.getLocalName(z);return a(le),B=dn(B,Ke(t.createExpressionStatement(t.createAssignment(le,Ke(t.createClassExpression(Dn(z.modifiers,ae,wo),z.name,void 0,Dn(z.heritageClauses,Gt,tf),Dn(z.members,Gt,Nl)),z))),z)),B=tt(B,z),cm(B)}function Ne(z){if(!Xe(z.declarationList))return Ue(z,Gt,Fi);let B;if(Rw(z.declarationList)||Mw(z.declarationList)){const le=Dn(z.modifiers,ae,wo),W=[];for(const F of z.declarationList.declarations)W.push(t.updateVariableDeclaration(F,t.getGeneratedNameForNode(F.name),void 0,void 0,ve(F,!1)));const ge=t.updateVariableDeclarationList(z.declarationList,W);B=dn(B,t.updateVariableStatement(z,le,ge))}else{let le;const W=Lr(z,1);for(const ge of z.declarationList.declarations)ge.initializer?le=dn(le,ve(ge,W)):De(ge);le&&(B=dn(B,Ke(t.createExpressionStatement(t.inlineExpressions(le)),z)))}return B=Pe(B,z,!1),cm(B)}function De(z){if(Ps(z.name))for(const B of z.name.elements)dl(B)||De(B);else a(t.cloneNode(z.name))}function Xe(z){return(ma(z)&4194304)===0&&(U.kind===312||(Ko(z).flags&7)===0)}function ve(z,B){const le=B?be:xe;return Ps(z.name)?pT(z,Gt,e,0,!1,le):z.initializer?le(z.name,Ue(z.initializer,Gt,nt)):z.name}function be(z,B,le){return rt(z,B,le,!0)}function xe(z,B,le){return rt(z,B,le,!1)}function rt(z,B,le,W){return a(t.cloneNode(z)),W?Jt(z,Nt(Ke(t.createAssignment(z,B),le))):Nt(Ke(t.createAssignment(z,B),le))}function ct(z,B){if(N.exportEquals)return z;const le=B.importClause;if(!le)return z;le.name&&(z=mt(z,le));const W=le.namedBindings;if(W)switch(W.kind){case 274:z=mt(z,W);break;case 275:for(const ge of W.elements)z=mt(z,ge);break}return z}function pe(z,B){return N.exportEquals?z:mt(z,B)}function Pe(z,B,le){if(N.exportEquals)return z;for(const W of B.declarationList.declarations)(W.initializer||le)&&(z=Ge(z,W,le));return z}function Ge(z,B,le){if(N.exportEquals)return z;if(Ps(B.name))for(const W of B.name.elements)dl(W)||(z=Ge(z,W,le));else if(!Jo(B.name)){let W;le&&(z=Je(z,B.name,t.getLocalName(B)),W=lr(B.name)),z=mt(z,B,W)}return z}function tt(z,B){if(N.exportEquals)return z;let le;if(Lr(B,1)){const W=Lr(B,1024)?t.createStringLiteral("default"):B.name;z=Je(z,W,t.getLocalName(B)),le=Cp(W)}return B.name&&(z=mt(z,B,le)),z}function mt(z,B,le){if(N.exportEquals)return z;const W=t.getDeclarationName(B),ge=N.exportSpecifiers.get(W);if(ge)for(const F of ge)F.name.escapedText!==le&&(z=Je(z,F.name,W));return z}function Je(z,B,le,W){return z=dn(z,ot(B,le,W)),z}function ot(z,B,le){const W=t.createExpressionStatement(Jt(z,B));return O_(W),le||Xn(W,3072),W}function Jt(z,B){const le=we(z)?t.createStringLiteralFromNode(z):z;return Xn(B,ma(B)|3072),Xc(t.createCallExpression(D,void 0,[le,B]),B)}function Pt(z){switch(z.kind){case 243:return Ne(z);case 262:return fe(z);case 263:return G(z);case 248:return bt(z,!0);case 249:return _r(z);case 250:return xn(z);case 246:return xr(z);case 247:return pi(z);case 256:return ki(z);case 254:return Nr(z);case 245:return pt(z);case 255:return ur(z);case 269:return hn(z);case 296:return Ct(z);case 297:return cn(z);case 258:return Pn(z);case 299:return Sr(z);case 241:return wi(z);default:return Gt(z)}}function bt(z,B){const le=U;return U=z,z=t.updateForStatement(z,Ue(z.initializer,B?er:Sn,If),Ue(z.condition,Gt,nt),Ue(z.incrementor,Sn,nt),W_(z.statement,B?Pt:Gt,e)),U=le,z}function _r(z){const B=U;return U=z,z=t.updateForInStatement(z,er(z.initializer),Ue(z.expression,Gt,nt),W_(z.statement,Pt,e)),U=B,z}function xn(z){const B=U;return U=z,z=t.updateForOfStatement(z,z.awaitModifier,er(z.initializer),Ue(z.expression,Gt,nt),W_(z.statement,Pt,e)),U=B,z}function Bt(z){return ml(z)&&Xe(z)}function er(z){if(Bt(z)){let B;for(const le of z.declarations)B=dn(B,ve(le,!1)),le.initializer||De(le);return B?t.inlineExpressions(B):t.createOmittedExpression()}else return Ue(z,Sn,If)}function xr(z){return t.updateDoStatement(z,W_(z.statement,Pt,e),Ue(z.expression,Gt,nt))}function pi(z){return t.updateWhileStatement(z,Ue(z.expression,Gt,nt),W_(z.statement,Pt,e))}function ki(z){return t.updateLabeledStatement(z,z.label,E.checkDefined(Ue(z.statement,Pt,Fi,t.liftToBlock)))}function Nr(z){return t.updateWithStatement(z,Ue(z.expression,Gt,nt),E.checkDefined(Ue(z.statement,Pt,Fi,t.liftToBlock)))}function pt(z){return t.updateIfStatement(z,Ue(z.expression,Gt,nt),E.checkDefined(Ue(z.thenStatement,Pt,Fi,t.liftToBlock)),Ue(z.elseStatement,Pt,Fi,t.liftToBlock))}function ur(z){return t.updateSwitchStatement(z,Ue(z.expression,Gt,nt),E.checkDefined(Ue(z.caseBlock,Pt,c8)))}function hn(z){const B=U;return U=z,z=t.updateCaseBlock(z,Dn(z.clauses,Pt,u9)),U=B,z}function Ct(z){return t.updateCaseClause(z,Ue(z.expression,Gt,nt),Dn(z.statements,Pt,Fi))}function cn(z){return fn(z,Pt,e)}function Pn(z){return fn(z,Pt,e)}function Sr(z){const B=U;return U=z,z=t.updateCatchClause(z,z.variableDeclaration,E.checkDefined(Ue(z.block,Pt,vs))),U=B,z}function wi(z){const B=U;return U=z,z=fn(z,Pt,e),U=B,z}function Yt(z,B){if(!(z.transformFlags&276828160))return z;switch(z.kind){case 248:return bt(z,!1);case 244:return Gr(z);case 217:return Er(z,B);case 360:return ze(z,B);case 226:if(Z0(z))return kt(z,B);break;case 213:if(Zu(z))return ut(z);break;case 224:case 225:return Vt(z,B)}return fn(z,Gt,e)}function Gt(z){return Yt(z,!1)}function Sn(z){return Yt(z,!0)}function Gr(z){return t.updateExpressionStatement(z,Ue(z.expression,Sn,nt))}function Er(z,B){return t.updateParenthesizedExpression(z,Ue(z.expression,B?Sn:Gt,nt))}function ze(z,B){return t.updatePartiallyEmittedExpression(z,Ue(z.expression,B?Sn:Gt,nt))}function ut(z){const B=yS(t,z,C,u,l,o),le=Ue(wl(z.arguments),Gt,nt),W=B&&(!le||!fa(le)||le.text!==B.text)?B:le;return t.createCallExpression(t.createPropertyAccessExpression(M,t.createIdentifier("import")),void 0,W?[W]:[])}function kt(z,B){return it(z.left)?pT(z,Gt,e,0,!B):fn(z,Gt,e)}function it(z){if(Kl(z,!0))return it(z.left);if(jd(z))return it(z.expression);if(ha(z))return dt(z.properties,it);if(u_(z))return dt(z.elements,it);if(nf(z))return it(z.name);if(Ec(z))return it(z.initializer);if(we(z)){const B=l.getReferencedExportContainer(z);return B!==void 0&&B.kind===312}else return!1}function Vt(z,B){if((z.operator===46||z.operator===47)&&we(z.operand)&&!Jo(z.operand)&&!e0(z.operand)&&!Rq(z.operand)){const le=jt(z.operand);if(le){let W,ge=Ue(z.operand,Gt,nt);Ny(z)?ge=t.updatePrefixUnaryExpression(z,ge):(ge=t.updatePostfixUnaryExpression(z,ge),B||(W=t.createTempVariable(a),ge=t.createAssignment(W,ge),Ke(ge,z)),ge=t.createComma(ge,t.cloneNode(z.operand)),Ke(ge,z));for(const F of le)ge=Jt(F,Nt(ge));return W&&(ge=t.createComma(ge,W),Ke(ge,z)),ge}}return fn(z,Gt,e)}function ae(z){switch(z.kind){case 95:case 90:return}return z}function Me(z,B,le){if(B.kind===312){const W=t_(B);C=B,N=m[W],D=y[W],Y=x[W],M=k[W],Y&&delete x[W],g(z,B,le),C=void 0,N=void 0,D=void 0,M=void 0,Y=void 0}else g(z,B,le)}function ke(z,B){return B=f(z,B),hi(B)?B:z===1?$e(B):z===4?ft(B):B}function ft(z){switch(z.kind){case 304:return K(z)}return z}function K(z){var B,le;const W=z.name;if(!Jo(W)&&!e0(W)){const ge=l.getReferencedImportDeclaration(W);if(ge){if(Sm(ge))return Ke(t.createPropertyAssignment(t.cloneNode(W),t.createPropertyAccessExpression(t.getGeneratedNameForNode(ge.parent),t.createIdentifier("default"))),z);if(vu(ge))return Ke(t.createPropertyAssignment(t.cloneNode(W),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((le=(B=ge.parent)==null?void 0:B.parent)==null?void 0:le.parent)||ge),t.cloneNode(ge.propertyName||ge.name))),z)}}return z}function $e(z){switch(z.kind){case 80:return Ae(z);case 226:return ht(z);case 236:return _t(z)}return z}function Ae(z){var B,le;if(ma(z)&8192){const W=mA(C);return W?t.createPropertyAccessExpression(W,z):z}if(!Jo(z)&&!e0(z)){const W=l.getReferencedImportDeclaration(z);if(W){if(Sm(W))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(W.parent),t.createIdentifier("default")),z);if(vu(W))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((le=(B=W.parent)==null?void 0:B.parent)==null?void 0:le.parent)||W),t.cloneNode(W.propertyName||W.name)),z)}}return z}function ht(z){if(Y0(z.operatorToken.kind)&&we(z.left)&&(!Jo(z.left)||Tw(z.left))&&!e0(z.left)){const B=jt(z.left);if(B){let le=z;for(const W of B)le=Jt(W,Nt(le));return le}}return z}function _t(z){return g6(z)?t.createPropertyAccessExpression(M,t.createIdentifier("meta")):z}function jt(z){let B;const le=Fn(z);if(le){const W=l.getReferencedExportContainer(z,!1);W&&W.kind===312&&(B=dn(B,t.getDeclarationName(le))),B=Fr(B,N==null?void 0:N.exportedBindings[t_(le)])}else if(Jo(z)&&Tw(z)){const W=N==null?void 0:N.exportSpecifiers.get(z);if(W){const ge=[];for(const F of W)ge.push(F.name);return ge}}return B}function Fn(z){if(!Jo(z)){const B=l.getReferencedImportDeclaration(z);if(B)return B;const le=l.getReferencedValueDeclaration(z);if(le&&(N==null?void 0:N.exportedBindings[t_(le)]))return le;const W=l.getReferencedValueDeclarations(z);if(W){for(const ge of W)if(ge!==le&&(N==null?void 0:N.exportedBindings[t_(ge)]))return ge}return le}}function Nt(z){return Y===void 0&&(Y=[]),Y[Ra(z)]=!0,z}function hi(z){return Y&&z.id&&Y[z.id]}}var p9e=Rt({"src/compiler/transformers/module/system.ts"(){Ls()}});function oX(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),a=e.getEmitResolver(),o=e.getCompilerOptions(),l=Ia(o),u=e.onEmitNode,f=e.onSubstituteNode;e.onEmitNode=Y,e.onSubstituteNode=j,e.enableEmitNotification(312),e.enableSubstitution(80);let g,m,y;return Pp(e,x);function x(R){if(R.isDeclarationFile)return R;if(zc(R)||nd(o)){m=R,y=void 0;let Z=k(R);return m=void 0,y&&(Z=t.updateSourceFile(Z,Ke(t.createNodeArray(CW(Z.statements.slice(),y)),Z.statements))),!zc(R)||dt(Z.statements,Ew)?Z:t.updateSourceFile(Z,Ke(t.createNodeArray([...Z.statements,fA(t)]),Z.statements))}return R}function k(R){const Z=vG(t,r(),R,o);if(Z){const oe=[],_e=t.copyPrologue(R.statements,oe);return dn(oe,Z),Fr(oe,Dn(R.statements,C,Fi,_e)),t.updateSourceFile(R,Ke(t.createNodeArray(oe),R.statements))}else return fn(R,C,e)}function C(R){switch(R.kind){case 271:return Ul(o)>=100?D(R):void 0;case 277:return V(R);case 278:return U(R)}return R}function N(R){const Z=yS(t,R,E.checkDefined(m),i,a,o),oe=[];if(Z&&oe.push(Z),!y){const X=t.createUniqueName("_createRequire",48),H=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),X)])),t.createStringLiteral("module")),Q=t.createUniqueName("__require",48),ne=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Q,void 0,void 0,t.createCallExpression(t.cloneNode(X),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));y=[H,ne]}const _e=y[1].declarationList.declarations[0].name;return E.assertNode(_e,we),t.createCallExpression(t.cloneNode(_e),void 0,oe)}function D(R){E.assert(yy(R),"import= for internal module references should be handled in an earlier transformer.");let Z;return Z=dn(Z,or(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(R.name),void 0,void 0,N(R))],l>=2?2:0)),R),R)),Z=M(Z,R),cm(Z)}function M(R,Z){return Lr(Z,1)&&(R=dn(R,t.createExportDeclaration(void 0,Z.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,lr(Z.name))])))),R}function V(R){return R.isExportEquals?void 0:R}function U(R){if(o.module!==void 0&&o.module>5||!R.exportClause||!lg(R.exportClause)||!R.moduleSpecifier)return R;const Z=R.exportClause.name,oe=t.getGeneratedNameForNode(Z),_e=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(oe)),R.moduleSpecifier,R.assertClause);or(_e,R.exportClause);const X=b9(R)?t.createExportDefault(oe):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,oe,Z)]));return or(X,R),[_e,X]}function Y(R,Z,oe){Bi(Z)?((zc(Z)||nd(o))&&o.importHelpers&&(g=new Map),u(R,Z,oe),g=void 0):u(R,Z,oe)}function j(R,Z){return Z=f(R,Z),g&&we(Z)&&ma(Z)&8192?ee(Z):Z}function ee(R){const Z=lr(R);let oe=g.get(Z);return oe||g.set(Z,oe=t.createUniqueName(Z,48)),oe}}var d9e=Rt({"src/compiler/transformers/module/esnextAnd2015.ts"(){Ls()}});function xge(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=oX(e),a=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=aX(e),u=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let g;return C;function m(D,M){return Bi(M)?(g=M,t(D,M)):g?g.impliedNodeFormat===99?a(D,M):u(D,M):t(D,M)}function y(D,M,V){return Bi(M)&&(g=M),g?g.impliedNodeFormat===99?o(D,M,V):f(D,M,V):r(D,M,V)}function x(D){return D.impliedNodeFormat===99?i:l}function k(D){if(D.isDeclarationFile)return D;g=D;const M=x(D)(D);return g=void 0,E.assert(Bi(M)),M}function C(D){return D.kind===312?k(D):N(D)}function N(D){return e.factory.createBundle(an(D.sourceFiles,k),D.prepends)}}var m9e=Rt({"src/compiler/transformers/module/node.ts"(){Ls()}});function FL(e){return Ri(e)||Fs(e)||mf(e)||Oa(e)||G0(e)||r1(e)||iA(e)||X6(e)||kc(e)||ag(e)||tl(e)||rs(e)||Go(e)||rh(e)||Hl(e)||Dp(e)||Cc(e)||Zb(e)||kr(e)||No(e)||rr(e)||Kf(e)}function Sge(e){if(G0(e)||r1(e))return t;return ag(e)||kc(e)?i:oh(e);function t(o){const l=r(o);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(o){return Os(e)?o.errorModuleName?o.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(o){const l=a(o);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function a(o){return Os(e)?o.errorModuleName?o.accessibility===2?p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function oh(e){if(Ri(e)||Fs(e)||mf(e)||kr(e)||No(e)||rr(e)||Oa(e)||Cc(e))return r;return G0(e)||r1(e)?i:iA(e)||X6(e)||kc(e)||ag(e)||tl(e)||Zb(e)?a:rs(e)?Du(e,e.parent)&&Lr(e.parent,8)?r:o:Go(e)?u:rh(e)?f:Hl(e)?g:Dp(e)||Kf(e)?m:E.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${E.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?p.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:p.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Lr(e.parent,8))return Os(e)?y.errorModuleName?y.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?y.errorModuleName?y.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(y){const x=t(y);return x!==void 0?{diagnosticMessage:x,errorNode:e,typeName:e.name}:void 0}function i(y){let x;return e.kind===178?Os(e)?x=y.errorModuleName?p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:x=y.errorModuleName?p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Os(e)?x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:x,errorNode:e.name,typeName:e.name}}function a(y){let x;switch(e.kind){case 180:x=y.errorModuleName?p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:x=y.errorModuleName?p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:x=y.errorModuleName?p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:Os(e)?x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:x=y.errorModuleName?p.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:x=y.errorModuleName?y.accessibility===2?p.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return E.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:x,errorNode:e.name||e}}function o(y){const x=l(y);return x!==void 0?{diagnosticMessage:x,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Os(e.parent)?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return E.fail(`Unknown parent for parameter: ${E.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 263:y=p.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=p.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=p.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=p.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=p.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:Os(e.parent)?y=p.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=p.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=p.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=p.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=p.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=p.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return E.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function f(){let y;return Qc(e.parent.parent)?y=tf(e.parent)&&e.parent.token===119?p.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:p.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=p.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:os(e.parent.parent)}}function g(){return{diagnosticMessage:p.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(y){return{diagnosticMessage:y.errorModuleName?p.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:p.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Kf(e)?E.checkDefined(e.typeExpression):e.type,typeName:Kf(e)?os(e):e.name}}}var g9e=Rt({"src/compiler/transformers/declarations/diagnostics.ts"(){Ls()}});function kge(e,t,r){const i=e.getCompilerOptions();return n5(t,e,I,i,r?[r]:zr(e.getSourceFiles(),QW),[lX],!1).diagnostics}function Cge(e,t){const r=t.text.substring(e.pos,e.end);return Xl(r,"@internal")}function cX(e,t){const r=ts(e);if(r&&r.kind===169){const a=r.parent.parameters.indexOf(r),o=a>0?r.parent.parameters[a-1]:void 0,l=t.text,u=o?es(uy(l,_a(l,o.end+1,!1,!0)),$m(l,e.pos)):uy(l,_a(l,e.pos,!1,!0));return u&&u.length&&Cge(ka(u),t)}const i=r&&UW(r,t);return!!pn(i,a=>Cge(a,t))}function lX(e){const t=()=>E.fail("Diagnostic emitted without context");let r=t,i=!0,a=!1,o=!1,l=!1,u=!1,f,g,m,y,x,k;const{factory:C}=e,N=e.getEmitHost(),D={trackSymbol:ue,reportInaccessibleThisError:Xe,reportInaccessibleUniqueSymbolError:Ne,reportCyclicStructureError:De,reportPrivateInBaseOfClassExpression:fe,reportLikelyUnsafeImportRequiredError:ve,reportTruncationError:be,moduleResolverHost:N,trackReferencedAmbientModule:H,trackExternalModuleSymbolOfImportTypeNode:ne,reportNonlocalAugmentation:xe,reportNonSerializableProperty:rt,reportImportTypeNodeResolutionModeOverride:ct};let M,V,U,Y,j,ee;const R=e.getEmitResolver(),Z=e.getCompilerOptions(),{noResolve:oe,stripInternal:_e}=Z;return Pe;function X(K){if(!!K){g=g||new Set;for(const $e of K)g.add($e)}}function H(K,$e){const Ae=R.getTypeReferenceDirectivesForSymbol($e,67108863);if(Nn(Ae))return X(Ae);const ht=Rn(K);Y.set(t_(ht),ht)}function Q(K){if(K.accessibility===0){if(K&&K.aliasesToMakeVisible)if(!m)m=K.aliasesToMakeVisible;else for(const $e of K.aliasesToMakeVisible)$f(m,$e)}else{const $e=r(K);if($e)return $e.typeName?e.addDiagnostic(br(K.errorNode||$e.errorNode,$e.diagnosticMessage,el($e.typeName),K.errorSymbolName,K.errorModuleName)):e.addDiagnostic(br(K.errorNode||$e.errorNode,$e.diagnosticMessage,K.errorSymbolName,K.errorModuleName)),!0}return!1}function ne(K){a||(k||(k=[])).push(K)}function ue(K,$e,Ae){if(K.flags&262144)return!1;const ht=Q(R.isSymbolAccessible(K,$e,Ae,!0));return X(R.getTypeReferenceDirectivesForSymbol(K,Ae)),ht}function fe(K){(M||V)&&e.addDiagnostic(br(M||V,p.Property_0_of_exported_class_expression_may_not_be_private_or_protected,K))}function G(){return M?no(M):V&&os(V)?no(os(V)):V&&fc(V)?V.isExportEquals?"export=":"default":"(Missing)"}function Ne(){(M||V)&&e.addDiagnostic(br(M||V,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,G(),"unique symbol"))}function De(){(M||V)&&e.addDiagnostic(br(M||V,p.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,G()))}function Xe(){(M||V)&&e.addDiagnostic(br(M||V,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,G(),"this"))}function ve(K){(M||V)&&e.addDiagnostic(br(M||V,p.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,G(),K))}function be(){(M||V)&&e.addDiagnostic(br(M||V,p.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function xe(K,$e,Ae){var ht;const _t=(ht=$e.declarations)==null?void 0:ht.find(Fn=>Rn(Fn)===K),jt=zr(Ae.declarations,Fn=>Rn(Fn)!==K);if(_t&&jt)for(const Fn of jt)e.addDiagnostic(ua(br(Fn,p.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),br(_t,p.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function rt(K){(M||V)&&e.addDiagnostic(br(M||V,p.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,K))}function ct(){!gD()&&(M||V)&&e.addDiagnostic(br(M||V,p.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function pe(K,$e){const Ae=r;r=_t=>_t.errorNode&&FL(_t.errorNode)?oh(_t.errorNode)(_t):{diagnosticMessage:_t.errorModuleName?p.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:p.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:_t.errorNode||K};const ht=R.getDeclarationStatementsForSourceFile(K,E2,D,$e);return r=Ae,ht}function Pe(K){if(K.kind===312&&K.isDeclarationFile)return K;if(K.kind===313){a=!0,Y=new Map,j=new Map;let B=!1;const le=C.createBundle(an(K.sourceFiles,F=>{if(F.isDeclarationFile)return;if(B=B||F.hasNoDefaultLib,U=F,f=F,m=void 0,x=!1,y=new Map,r=t,l=!1,u=!1,Ge(F,Y),tt(F,j),Yu(F)||Zf(F)){o=!1,i=!1;const Oe=P_(F)?C.createNodeArray(pe(F,!0)):Dn(F.statements,wi,Fi);return C.updateSourceFile(F,[C.createModuleDeclaration([C.createModifier(138)],C.createStringLiteral(K9(e.getEmitHost(),F)),C.createModuleBlock(Ke(C.createNodeArray(cn(Oe)),F.statements)))],!0,[],[],!1,[])}i=!0;const ye=P_(F)?C.createNodeArray(pe(F)):Dn(F.statements,wi,Fi);return C.updateSourceFile(F,cn(ye),!0,[],[],!1,[])}),Hi(K.prepends,F=>{if(F.kind===315){const ye=IH(F,"dts",_e);return B=B||!!ye.hasNoDefaultLib,Ge(ye,Y),X(an(ye.typeReferenceDirectives,Oe=>[Oe.fileName,Oe.resolutionMode])),tt(ye,j),ye}return F}));le.syntheticFileReferences=[],le.syntheticTypeReferences=Nt(),le.syntheticLibReferences=Fn(),le.hasNoDefaultLib=B;const W=Ti(zl(P8(K,N,!0).declarationFilePath)),ge=z(le.syntheticFileReferences,W);return Y.forEach(ge),le}i=!0,l=!1,u=!1,f=K,U=K,r=t,a=!1,o=!1,x=!1,m=void 0,y=new Map,g=void 0,Y=Ge(U,new Map),j=tt(U,new Map);const $e=[],Ae=Ti(zl(P8(K,N,!0).declarationFilePath)),ht=z($e,Ae);let _t;if(P_(U))_t=C.createNodeArray(pe(K)),Y.forEach(ht),ee=zr(_t,Bb);else{const B=Dn(K.statements,wi,Fi);_t=Ke(C.createNodeArray(cn(B)),K.statements),Y.forEach(ht),ee=zr(_t,Bb),zc(K)&&(!o||l&&!u)&&(_t=Ke(C.createNodeArray([..._t,fA(C)]),_t))}const jt=C.updateSourceFile(K,_t,!0,$e,Nt(),K.hasNoDefaultLib,Fn());return jt.exportedModulesFromDeclarationEmit=k,jt;function Fn(){return ra(j.keys(),B=>({fileName:B,pos:-1,end:-1}))}function Nt(){return g?Hi(ra(g.keys()),hi):[]}function hi([B,le]){if(ee){for(const W of ee)if(Hl(W)&&km(W.moduleReference)){const ge=W.moduleReference.expression;if(Qa(ge)&&ge.text===B)return}else if(bl(W)&&fa(W.moduleSpecifier)&&W.moduleSpecifier.text===B)return}return{fileName:B,pos:-1,end:-1,...le?{resolutionMode:le}:void 0}}function z(B,le){return W=>{let ge;if(W.isDeclarationFile)ge=W.fileName;else{if(a&&ys(K.sourceFiles,W))return;const F=P8(W,N,!0);ge=F.declarationFilePath||F.jsFilePath||W.fileName}if(ge){const F=GA(Z,U,ho(le,N.getCurrentDirectory(),N.getCanonicalFileName),ho(ge,N.getCurrentDirectory(),N.getCanonicalFileName),N);if(!$u(F)){X([[F,void 0]]);return}let ye=Dx(le,ge,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(ns(ye,"./")&&$k(ye)&&(ye=ye.substring(2)),ns(ye,"node_modules/")||SS(ye))return;B.push({pos:-1,end:-1,fileName:ye})}}}}function Ge(K,$e){return oe||!iT(K)&&P_(K)||pn(K.referencedFiles,Ae=>{const ht=N.getSourceFileFromReference(K,Ae);ht&&$e.set(t_(ht),ht)}),$e}function tt(K,$e){return pn(K.libReferenceDirectives,Ae=>{N.getLibFileFromReference(Ae)&&$e.set(Zp(Ae.fileName),!0)}),$e}function mt(K){if(K.kind===80)return K;return K.kind===207?C.updateArrayBindingPattern(K,Dn(K.elements,$e,o9)):C.updateObjectBindingPattern(K,Dn(K.elements,$e,Oa));function $e(Ae){return Ae.kind===232?Ae:Ae.propertyName&&we(Ae.propertyName)&&we(Ae.name)&&!Ae.symbol.isReferenced&&!X9(Ae.propertyName)?C.updateBindingElement(Ae,Ae.dotDotDotToken,void 0,Ae.propertyName,ot(Ae)?Ae.initializer:void 0):C.updateBindingElement(Ae,Ae.dotDotDotToken,Ae.propertyName,mt(Ae.name),ot(Ae)?Ae.initializer:void 0)}}function Je(K,$e,Ae){let ht;x||(ht=r,r=oh(K));const _t=C.updateParameterDeclaration(K,y9e(C,K,$e),K.dotDotDotToken,mt(K.name),R.isOptionalParameter(K)?K.questionToken||C.createToken(58):void 0,Pt(K,Ae||K.type,!0),Jt(K));return x||(r=ht),_t}function ot(K){return v9e(K)&&R.isLiteralConstDeclaration(ts(K))}function Jt(K){if(ot(K))return R.createLiteralConstValue(ts(K),D)}function Pt(K,$e,Ae){if(!Ae&&Iu(K,8)||ot(K))return;const ht=K.kind===169&&(R.isRequiredInitializedParameter(K)||R.isOptionalUninitializedParameterProperty(K));if($e&&!ht)return Ue($e,Pn,Ai);if(!ts(K))return $e?Ue($e,Pn,Ai):C.createKeywordTypeNode(133);if(K.kind===178)return C.createKeywordTypeNode(133);M=K.name;let _t;if(x||(_t=r,r=oh(K)),K.kind===260||K.kind===208)return jt(R.createTypeOfDeclaration(K,f,E2,D));if(K.kind===169||K.kind===172||K.kind===171)return mf(K)||!K.initializer?jt(R.createTypeOfDeclaration(K,f,E2,D,ht)):jt(R.createTypeOfDeclaration(K,f,E2,D,ht)||R.createTypeOfExpression(K.initializer,f,E2,D));return jt(R.createReturnTypeOfSignatureDeclaration(K,f,E2,D));function jt(Fn){return M=void 0,x||(r=_t),Fn||C.createKeywordTypeNode(133)}}function bt(K){switch(K=ts(K),K.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!R.isDeclarationVisible(K);case 260:return!xn(K);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function _r(K){var $e;if(K.body)return!0;const Ae=($e=K.symbol.declarations)==null?void 0:$e.filter(ht=>tl(ht)&&!ht.body);return!Ae||Ae.indexOf(K)===Ae.length-1}function xn(K){return dl(K)?!1:Ps(K.name)?dt(K.name.elements,xn):R.isDeclarationVisible(K)}function Bt(K,$e,Ae){if(Iu(K,8))return C.createNodeArray();const ht=an($e,_t=>Je(_t,Ae));return ht?C.createNodeArray(ht,$e.hasTrailingComma):C.createNodeArray()}function er(K,$e){let Ae;if(!$e){const ht=a2(K);ht&&(Ae=[Je(ht)])}if(Fu(K)){let ht;if(!$e){const _t=b3(K);if(_t){const jt=ke(K,R.getAllAccessorDeclarations(K));ht=Je(_t,void 0,jt)}}ht||(ht=C.createParameterDeclaration(void 0,void 0,"value")),Ae=dn(Ae,ht)}return C.createNodeArray(Ae||Ve)}function xr(K,$e){return Iu(K,8)?void 0:Dn($e,Pn,Go)}function pi(K){return Bi(K)||Dp(K)||Ac(K)||Qc(K)||f_(K)||Cs(K)||Zb(K)||i8(K)}function ki(K,$e){const Ae=R.isEntityNameVisible(K,$e);Q(Ae),X(R.getTypeReferenceDirectivesForEntityName(K))}function Nr(K,$e){return Qu(K)&&Qu($e)&&(K.jsDoc=$e.jsDoc),Xc(K,Bd($e))}function pt(K,$e){if(!!$e){if(o=o||K.kind!==267&&K.kind!==205,Qa($e))if(a){const Ae=v_e(e.getEmitHost(),R,K);if(Ae)return C.createStringLiteral(Ae)}else{const Ae=R.getSymbolOfExternalModuleSpecifier($e);Ae&&(k||(k=[])).push(Ae)}return $e}}function ur(K){if(!!R.isDeclarationVisible(K))if(K.moduleReference.kind===283){const $e=c3(K);return C.updateImportEqualsDeclaration(K,K.modifiers,K.isTypeOnly,K.name,C.updateExternalModuleReference(K.moduleReference,pt(K,$e)))}else{const $e=r;return r=oh(K),ki(K.moduleReference,f),r=$e,K}}function hn(K){if(!K.importClause)return C.updateImportDeclaration(K,K.modifiers,K.importClause,pt(K,K.moduleSpecifier),Ct(K.assertClause));const $e=K.importClause&&K.importClause.name&&R.isDeclarationVisible(K.importClause)?K.importClause.name:void 0;if(!K.importClause.namedBindings)return $e&&C.updateImportDeclaration(K,K.modifiers,C.updateImportClause(K.importClause,K.importClause.isTypeOnly,$e,void 0),pt(K,K.moduleSpecifier),Ct(K.assertClause));if(K.importClause.namedBindings.kind===274){const ht=R.isDeclarationVisible(K.importClause.namedBindings)?K.importClause.namedBindings:void 0;return $e||ht?C.updateImportDeclaration(K,K.modifiers,C.updateImportClause(K.importClause,K.importClause.isTypeOnly,$e,ht),pt(K,K.moduleSpecifier),Ct(K.assertClause)):void 0}const Ae=Hi(K.importClause.namedBindings.elements,ht=>R.isDeclarationVisible(ht)?ht:void 0);if(Ae&&Ae.length||$e)return C.updateImportDeclaration(K,K.modifiers,C.updateImportClause(K.importClause,K.importClause.isTypeOnly,$e,Ae&&Ae.length?C.updateNamedImports(K.importClause.namedBindings,Ae):void 0),pt(K,K.moduleSpecifier),Ct(K.assertClause));if(R.isImportRequiredByAugmentation(K))return C.updateImportDeclaration(K,K.modifiers,void 0,pt(K,K.moduleSpecifier),Ct(K.assertClause))}function Ct(K){if(DS(K)!==void 0)return gD()||e.addDiagnostic(br(K,p.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),K}function cn(K){for(;Nn(m);){const Ae=m.shift();if(!x9(Ae))return E.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${E.formatSyntaxKind(Ae.kind)}`);const ht=i;i=Ae.parent&&Bi(Ae.parent)&&!(zc(Ae.parent)&&a);const _t=Sn(Ae);i=ht,y.set(t_(Ae),_t)}return Dn(K,$e,Fi);function $e(Ae){if(x9(Ae)){const ht=t_(Ae);if(y.has(ht)){const _t=y.get(ht);return y.delete(ht),_t&&((Ds(_t)?dt(_t,c9):c9(_t))&&(l=!0),Bi(Ae.parent)&&(Ds(_t)?dt(_t,Ew):Ew(_t))&&(o=!0)),_t}}return Ae}}function Pn(K){if(kt(K)||l_(K)&&(bt(K)||X0(K)&&!R.isLateBound(ts(K)))||Cs(K)&&R.isImplementationOfOverload(K)||Pfe(K))return;let $e;pi(K)&&($e=f,f=K);const Ae=r,ht=FL(K),_t=x;let jt=(K.kind===187||K.kind===200)&&K.parent.kind!==265;if((kc(K)||ag(K))&&Iu(K,8))return K.symbol&&K.symbol.declarations&&K.symbol.declarations[0]!==K?void 0:Fn(C.createPropertyDeclaration(ae(K),K.name,void 0,void 0,void 0));if(ht&&!x&&(r=oh(K)),Q6(K)&&ki(K.exprName,f),jt&&(x=!0),T9e(K))switch(K.kind){case 233:{(Xu(K.expression)||Tc(K.expression))&&ki(K.expression,f);const Nt=fn(K,Pn,e);return Fn(C.updateExpressionWithTypeArguments(Nt,Nt.expression,Nt.typeArguments))}case 183:{ki(K.typeName,f);const Nt=fn(K,Pn,e);return Fn(C.updateTypeReferenceNode(Nt,Nt.typeName,Nt.typeArguments))}case 180:return Fn(C.updateConstructSignature(K,xr(K,K.typeParameters),Bt(K,K.parameters),Pt(K,K.type)));case 176:{const Nt=C.createConstructorDeclaration(ae(K),Bt(K,K.parameters,0),void 0);return Fn(Nt)}case 174:{if(Ei(K.name))return Fn(void 0);const Nt=C.createMethodDeclaration(ae(K),void 0,K.name,K.questionToken,xr(K,K.typeParameters),Bt(K,K.parameters),Pt(K,K.type),void 0);return Fn(Nt)}case 177:{if(Ei(K.name))return Fn(void 0);const Nt=ke(K,R.getAllAccessorDeclarations(K));return Fn(C.updateGetAccessorDeclaration(K,ae(K),K.name,er(K,Iu(K,8)),Pt(K,Nt),void 0))}case 178:return Ei(K.name)?Fn(void 0):Fn(C.updateSetAccessorDeclaration(K,ae(K),K.name,er(K,Iu(K,8)),void 0));case 172:return Ei(K.name)?Fn(void 0):Fn(C.updatePropertyDeclaration(K,ae(K),K.name,K.questionToken,Pt(K,K.type),Jt(K)));case 171:return Ei(K.name)?Fn(void 0):Fn(C.updatePropertySignature(K,ae(K),K.name,K.questionToken,Pt(K,K.type)));case 173:return Ei(K.name)?Fn(void 0):Fn(C.updateMethodSignature(K,ae(K),K.name,K.questionToken,xr(K,K.typeParameters),Bt(K,K.parameters),Pt(K,K.type)));case 179:return Fn(C.updateCallSignature(K,xr(K,K.typeParameters),Bt(K,K.parameters),Pt(K,K.type)));case 181:return Fn(C.updateIndexSignature(K,ae(K),Bt(K,K.parameters),Ue(K.type,Pn,Ai)||C.createKeywordTypeNode(133)));case 260:return Ps(K.name)?Er(K.name):(jt=!0,x=!0,Fn(C.updateVariableDeclaration(K,K.name,void 0,Pt(K,K.type),Jt(K))));case 168:return Sr(K)&&(K.default||K.constraint)?Fn(C.updateTypeParameterDeclaration(K,K.modifiers,K.name,void 0,void 0)):Fn(fn(K,Pn,e));case 194:{const Nt=Ue(K.checkType,Pn,Ai),hi=Ue(K.extendsType,Pn,Ai),z=f;f=K.trueType;const B=Ue(K.trueType,Pn,Ai);f=z;const le=Ue(K.falseType,Pn,Ai);return E.assert(Nt),E.assert(hi),E.assert(B),E.assert(le),Fn(C.updateConditionalTypeNode(K,Nt,hi,B,le))}case 184:return Fn(C.updateFunctionTypeNode(K,Dn(K.typeParameters,Pn,Go),Bt(K,K.parameters),E.checkDefined(Ue(K.type,Pn,Ai))));case 185:return Fn(C.updateConstructorTypeNode(K,ae(K),Dn(K.typeParameters,Pn,Go),Bt(K,K.parameters),E.checkDefined(Ue(K.type,Pn,Ai))));case 205:return hy(K)?Fn(C.updateImportTypeNode(K,C.updateLiteralTypeNode(K.argument,pt(K,K.argument.literal)),K.assertions,K.qualifier,Dn(K.typeArguments,Pn,Ai),K.isTypeOf)):Fn(K);default:E.assertNever(K,`Attempted to process unhandled node kind: ${E.formatSyntaxKind(K.kind)}`)}return Y6(K)&&yo(U,K.pos).line===yo(U,K.end).line&&Xn(K,1),Fn(fn(K,Pn,e));function Fn(Nt){return Nt&&ht&&X0(K)&&ut(K),pi(K)&&(f=$e),ht&&!x&&(r=Ae),jt&&(x=_t),Nt===K?Nt:Nt&&or(Nr(Nt,K),K)}}function Sr(K){return K.parent.kind===174&&Iu(K.parent,8)}function wi(K){if(!b9e(K)||kt(K))return;switch(K.kind){case 278:return Bi(K.parent)&&(o=!0),u=!0,C.updateExportDeclaration(K,K.modifiers,K.isTypeOnly,K.exportClause,pt(K,K.moduleSpecifier),DS(K.assertClause)?K.assertClause:void 0);case 277:{if(Bi(K.parent)&&(o=!0),u=!0,K.expression.kind===80)return K;{const Ae=C.createUniqueName("_default",16);r=()=>({diagnosticMessage:p.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:K}),V=K;const ht=C.createVariableDeclaration(Ae,void 0,R.createTypeOfExpression(K.expression,K,E2,D),void 0);V=void 0;const _t=C.createVariableStatement(i?[C.createModifier(138)]:[],C.createVariableDeclarationList([ht],2));return Nr(_t,K),XD(K),[_t,C.updateExportAssignment(K,K.modifiers,Ae)]}}}const $e=Sn(K);return y.set(t_(K),$e),K}function Yt(K){if(Hl(K)||Iu(K,1024)||!Np(K))return K;const $e=C.createModifiersFromModifierFlags(I_(K)&258046);return C.updateModifiers(K,$e)}function Gt(K,$e,Ae,ht){const _t=C.updateModuleDeclaration(K,$e,Ae,ht);if(__(_t)||_t.flags&32)return _t;const jt=C.createModuleDeclaration(_t.modifiers,_t.name,_t.body,_t.flags|32);return or(jt,_t),Ke(jt,_t),jt}function Sn(K){if(m)for(;mI(m,K););if(kt(K))return;switch(K.kind){case 271:return ur(K);case 272:return hn(K)}if(l_(K)&&bt(K)||Cs(K)&&R.isImplementationOfOverload(K))return;let $e;pi(K)&&($e=f,f=K);const Ae=FL(K),ht=r;Ae&&(r=oh(K));const _t=i;switch(K.kind){case 265:{i=!1;const Fn=jt(C.updateTypeAliasDeclaration(K,ae(K),K.name,Dn(K.typeParameters,Pn,Go),E.checkDefined(Ue(K.type,Pn,Ai))));return i=_t,Fn}case 264:return jt(C.updateInterfaceDeclaration(K,ae(K),K.name,xr(K,K.typeParameters),ft(K.heritageClauses),Dn(K.members,Pn,Ob)));case 262:{const Fn=jt(C.updateFunctionDeclaration(K,ae(K),void 0,K.name,xr(K,K.typeParameters),Bt(K,K.parameters),Pt(K,K.type),void 0));if(Fn&&R.isExpandoFunctionDeclaration(K)&&_r(K)){const Nt=R.getPropertiesOfContainerFunction(K),hi=Cm.createModuleDeclaration(void 0,Fn.name||C.createIdentifier("_default"),C.createModuleBlock([]),32);Ta(hi,f),hi.locals=Vs(Nt),hi.symbol=Nt[0].parent;const z=[];let B=Hi(Nt,Oe=>{if(!Oe.valueDeclaration||!(kr(Oe.valueDeclaration)||No(Oe.valueDeclaration)||rr(Oe.valueDeclaration)))return;const We=Oi(Oe.escapedName);if(!pf(We,99))return;r=oh(Oe.valueDeclaration);const Tt=R.createTypeOfDeclaration(Oe.valueDeclaration,hi,E2,D);r=ht;const It=Ux(We),on=It?C.getGeneratedNameForNode(Oe.valueDeclaration):C.createIdentifier(We);It&&z.push([on,We]);const kn=C.createVariableDeclaration(on,void 0,Tt,void 0);return C.createVariableStatement(It?void 0:[C.createToken(95)],C.createVariableDeclarationList([kn]))});z.length?B.push(C.createExportDeclaration(void 0,!1,C.createNamedExports(an(z,([Oe,We])=>C.createExportSpecifier(!1,Oe,We))))):B=Hi(B,Oe=>C.updateModifiers(Oe,0));const le=C.createModuleDeclaration(ae(K),K.name,C.createModuleBlock(B),32);if(!Iu(Fn,1024))return[Fn,le];const W=C.createModifiersFromModifierFlags(I_(Fn)&-1026|2),ge=C.updateFunctionDeclaration(Fn,W,void 0,Fn.name,Fn.typeParameters,Fn.parameters,Fn.type,void 0),F=C.updateModuleDeclaration(le,W,le.name,le.body),ye=C.createExportAssignment(void 0,!1,le.name);return Bi(K.parent)&&(o=!0),u=!0,[ge,F,ye]}else return Fn}case 267:{i=!1;const Fn=K.body;if(Fn&&Fn.kind===268){const Nt=l,hi=u;u=!1,l=!1;const z=Dn(Fn.statements,wi,Fi);let B=cn(z);K.flags&33554432&&(l=!1),!Id(K)&&!Vt(B)&&!u&&(l?B=C.createNodeArray([...B,fA(C)]):B=Dn(B,Yt,Fi));const le=C.updateModuleBlock(Fn,B);i=_t,l=Nt,u=hi;const W=ae(K);return jt(Gt(K,W,Zv(K)?pt(K,K.name):K.name,le))}else{i=_t;const Nt=ae(K);i=!1,Ue(Fn,wi);const hi=t_(Fn),z=y.get(hi);return y.delete(hi),jt(Gt(K,Nt,K.name,z))}}case 263:{M=K.name,V=K;const Fn=C.createNodeArray(ae(K)),Nt=xr(K,K.typeParameters),hi=ng(K);let z;if(hi){const ye=r;z=R7(Na(hi.parameters,Oe=>{if(!Lr(Oe,16476)||kt(Oe))return;if(r=oh(Oe),Oe.name.kind===80)return Nr(C.createPropertyDeclaration(ae(Oe),Oe.name,Oe.questionToken,Pt(Oe,Oe.type),Jt(Oe)),Oe);return We(Oe.name);function We(Tt){let It;for(const on of Tt.elements)dl(on)||(Ps(on.name)&&(It=es(It,We(on.name))),It=It||[],It.push(C.createPropertyDeclaration(ae(Oe),on.name,void 0,Pt(on,void 0),void 0)));return It}})),r=ye}const le=dt(K.members,ye=>!!ye.name&&Ei(ye.name))?[C.createPropertyDeclaration(void 0,C.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,W=es(es(le,z),Dn(K.members,Pn,Nl)),ge=C.createNodeArray(W),F=Od(K);if(F&&!Tc(F.expression)&&F.expression.kind!==106){const ye=K.name?Oi(K.name.escapedText):"default",Oe=C.createUniqueName(`${ye}_base`,16);r=()=>({diagnosticMessage:p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:F,typeName:K.name});const We=C.createVariableDeclaration(Oe,void 0,R.createTypeOfExpression(F.expression,K,E2,D),void 0),Tt=C.createVariableStatement(i?[C.createModifier(138)]:[],C.createVariableDeclarationList([We],2)),It=C.createNodeArray(an(K.heritageClauses,on=>{if(on.token===96){const kn=r;r=oh(on.types[0]);const ir=C.updateHeritageClause(on,an(on.types,ar=>C.updateExpressionWithTypeArguments(ar,Oe,Dn(ar.typeArguments,Pn,Ai))));return r=kn,ir}return C.updateHeritageClause(on,Dn(C.createNodeArray(zr(on.types,kn=>Tc(kn.expression)||kn.expression.kind===106)),Pn,rh))}));return[Tt,jt(C.updateClassDeclaration(K,Fn,K.name,Nt,It,ge))]}else{const ye=ft(K.heritageClauses);return jt(C.updateClassDeclaration(K,Fn,K.name,Nt,ye,ge))}}case 243:return jt(Gr(K));case 266:return jt(C.updateEnumDeclaration(K,C.createNodeArray(ae(K)),K.name,C.createNodeArray(Hi(K.members,Fn=>{if(kt(Fn))return;const Nt=R.getConstantValue(Fn),hi=Nt===void 0?void 0:typeof Nt=="string"?C.createStringLiteral(Nt):Nt<0?C.createPrefixUnaryExpression(41,C.createNumericLiteral(Math.abs(Nt))):C.createNumericLiteral(Nt);return Nr(C.updateEnumMember(Fn,Fn.name,hi),Fn)}))))}return E.assertNever(K,`Unhandled top-level node in declaration emit: ${E.formatSyntaxKind(K.kind)}`);function jt(Fn){return pi(K)&&(f=$e),Ae&&(r=ht),K.kind===267&&(i=_t),Fn===K?Fn:(V=void 0,M=void 0,Fn&&or(Nr(Fn,K),K))}}function Gr(K){if(!pn(K.declarationList.declarations,xn))return;const $e=Dn(K.declarationList.declarations,Pn,Ri);if(!Nn($e))return;const Ae=C.createNodeArray(ae(K));let ht;return Rw(K.declarationList)||Mw(K.declarationList)?(ht=C.createVariableDeclarationList($e,2),or(ht,K.declarationList),Ke(ht,K.declarationList),Xc(ht,K.declarationList)):ht=C.updateVariableDeclarationList(K.declarationList,$e),C.updateVariableStatement(K,Ae,ht)}function Er(K){return bp(Hi(K.elements,$e=>ze($e)))}function ze(K){if(K.kind!==232&&K.name)return xn(K)?Ps(K.name)?Er(K.name):C.createVariableDeclaration(K.name,void 0,Pt(K,void 0),void 0):void 0}function ut(K){let $e;x||($e=r,r=Sge(K)),M=K.name,E.assert(R.isLateBound(ts(K)));const ht=K.name.expression;ki(ht,f),x||(r=$e),M=void 0}function kt(K){return!!_e&&!!K&&cX(K,U)}function it(K){return fc(K)||Yc(K)}function Vt(K){return dt(K,it)}function ae(K){const $e=I_(K),Ae=Me(K);return $e===Ae?YA(K.modifiers,ht=>Hr(ht,Zs),Zs):C.createModifiersFromModifierFlags(Ae)}function Me(K){let $e=241147,Ae=i&&!h9e(K)?2:0;const ht=K.parent.kind===312;return(!ht||a&&ht&&zc(K.parent))&&($e^=2,Ae=0),Ege(K,$e,Ae)}function ke(K,$e){let Ae=_X(K);return!Ae&&K!==$e.firstAccessor&&(Ae=_X($e.firstAccessor),r=oh($e.firstAccessor)),!Ae&&$e.secondAccessor&&K!==$e.secondAccessor&&(Ae=_X($e.secondAccessor),r=oh($e.secondAccessor)),Ae}function ft(K){return C.createNodeArray(zr(an(K,$e=>C.updateHeritageClause($e,Dn(C.createNodeArray(zr($e.types,Ae=>Tc(Ae.expression)||$e.token===96&&Ae.expression.kind===106)),Pn,rh))),$e=>$e.types&&!!$e.types.length))}}function h9e(e){return e.kind===264}function y9e(e,t,r,i){return e.createModifiersFromModifierFlags(Ege(t,r,i))}function Ege(e,t=258043,r=0){let i=I_(e)&t|r;return i&1024&&!(i&1)&&(i^=1),i&1024&&i&2&&(i^=2),i}function _X(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function v9e(e){switch(e.kind){case 172:case 171:return!Iu(e,8);case 169:case 260:return!0}return!1}function b9e(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function T9e(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var E2,x9e=Rt({"src/compiler/transformers/declarations.ts"(){Ls(),A$(),E2=531469}});function S9e(e){switch(e){case 99:case 7:case 6:case 5:return oX;case 4:return Tge;case 100:case 199:return xge;default:return aX}}function uX(e,t,r){return{scriptTransformers:k9e(e,t,r),declarationTransformers:C9e(t)}}function k9e(e,t,r){if(r)return Ve;const i=Ia(e),a=Ul(e),o=ND(e),l=[];return Fr(l,t&&an(t.before,Dge)),l.push(ege),e.experimentalDecorators&&l.push(ige),hO(e)&&l.push(pge),i<99&&l.push(uge),!e.experimentalDecorators&&(i<99||!o)&&l.push(sge),l.push(nge),i<8&&l.push(_ge),i<7&&l.push(lge),i<6&&l.push(cge),i<5&&l.push(oge),i<4&&l.push(age),i<3&&l.push(mge),i<2&&(l.push(hge),l.push(vge)),l.push(S9e(a)),i<1&&l.push(yge),Fr(l,t&&an(t.after,Dge)),l}function C9e(e){const t=[];return t.push(lX),Fr(t,e&&an(e.afterDeclarations,w9e)),t}function E9e(e){return t=>rG(t)?e.transformBundle(t):e.transformSourceFile(t)}function wge(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):E9e(i)}}function Dge(e){return wge(e,Pp)}function w9e(e){return wge(e,(t,r)=>r)}function A8(e,t){return t}function t5(e,t,r){r(e,t)}function n5(e,t,r,i,a,o,l){var u,f;const g=new Array(363);let m,y,x,k=0,C=[],N=[],D=[],M=[],V=0,U=!1,Y=[],j=0,ee,R,Z=A8,oe=t5,_e=0;const X=[],H={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:wu(()=>mfe(H)),startLexicalEnvironment:pe,suspendLexicalEnvironment:Pe,resumeLexicalEnvironment:Ge,endLexicalEnvironment:tt,setLexicalEnvironmentFlags:mt,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:xe,hoistFunctionDeclaration:rt,addInitializationStatement:ct,startBlockScope:ot,endBlockScope:Jt,addBlockScopedVariable:Pt,requestEmitHelper:bt,readEmitHelpers:_r,enableSubstitution:G,enableEmitNotification:Xe,isSubstitutionEnabled:Ne,isEmitNotificationEnabled:ve,get onSubstituteNode(){return Z},set onSubstituteNode(Bt){E.assert(_e<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(Bt!==void 0,"Value must not be 'undefined'"),Z=Bt},get onEmitNode(){return oe},set onEmitNode(Bt){E.assert(_e<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(Bt!==void 0,"Value must not be 'undefined'"),oe=Bt},addDiagnostic(Bt){X.push(Bt)}};for(const Bt of a)BH(Rn(ts(Bt)));go("beforeTransform");const Q=o.map(Bt=>Bt(H)),ne=Bt=>{for(const er of Q)Bt=er(Bt);return Bt};_e=1;const ue=[];for(const Bt of a)(u=li)==null||u.push(li.Phase.Emit,"transformNodes",Bt.kind===312?{path:Bt.path}:{kind:Bt.kind,pos:Bt.pos,end:Bt.end}),ue.push((l?ne:fe)(Bt)),(f=li)==null||f.pop();return _e=2,go("afterTransform"),Gu("transformTime","beforeTransform","afterTransform"),{transformed:ue,substituteNode:De,emitNodeWithNotification:be,isEmitNotificationEnabled:ve,dispose:xn,diagnostics:X};function fe(Bt){return Bt&&(!Bi(Bt)||!Bt.isDeclarationFile)?ne(Bt):Bt}function G(Bt){E.assert(_e<2,"Cannot modify the transformation context after transformation has completed."),g[Bt]|=1}function Ne(Bt){return(g[Bt.kind]&1)!==0&&(ma(Bt)&8)===0}function De(Bt,er){return E.assert(_e<3,"Cannot substitute a node after the result is disposed."),er&&Ne(er)&&Z(Bt,er)||er}function Xe(Bt){E.assert(_e<2,"Cannot modify the transformation context after transformation has completed."),g[Bt]|=2}function ve(Bt){return(g[Bt.kind]&2)!==0||(ma(Bt)&4)!==0}function be(Bt,er,xr){E.assert(_e<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),er&&(ve(er)?oe(Bt,er,xr):xr(Bt,er))}function xe(Bt){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed.");const er=Xn(r.createVariableDeclaration(Bt),128);m?m.push(er):m=[er],k&1&&(k|=2)}function rt(Bt){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),Xn(Bt,2097152),y?y.push(Bt):y=[Bt]}function ct(Bt){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),Xn(Bt,2097152),x?x.push(Bt):x=[Bt]}function pe(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is suspended."),C[V]=m,N[V]=y,D[V]=x,M[V]=k,V++,m=void 0,y=void 0,x=void 0,k=0}function Pe(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is already suspended."),U=!0}function Ge(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(U,"Lexical environment is not suspended."),U=!1}function tt(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is suspended.");let Bt;if(m||y||x){if(y&&(Bt=[...y]),m){const er=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));Xn(er,2097152),Bt?Bt.push(er):Bt=[er]}x&&(Bt?Bt=[...Bt,...x]:Bt=[...x])}return V--,m=C[V],y=N[V],x=D[V],k=M[V],V===0&&(C=[],N=[],D=[],M=[]),Bt}function mt(Bt,er){k=er?k|Bt:k&~Bt}function Je(){return k}function ot(){E.assert(_e>0,"Cannot start a block scope during initialization."),E.assert(_e<2,"Cannot start a block scope after transformation has completed."),Y[j]=ee,j++,ee=void 0}function Jt(){E.assert(_e>0,"Cannot end a block scope during initialization."),E.assert(_e<2,"Cannot end a block scope after transformation has completed.");const Bt=dt(ee)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ee.map(er=>r.createVariableDeclaration(er)),1))]:void 0;return j--,ee=Y[j],j===0&&(Y=[]),Bt}function Pt(Bt){E.assert(j>0,"Cannot add a block scoped variable outside of an iteration body."),(ee||(ee=[])).push(Bt)}function bt(Bt){if(E.assert(_e>0,"Cannot modify the transformation context during initialization."),E.assert(_e<2,"Cannot modify the transformation context after transformation has completed."),E.assert(!Bt.scoped,"Cannot request a scoped emit helper."),Bt.dependencies)for(const er of Bt.dependencies)bt(er);R=dn(R,Bt)}function _r(){E.assert(_e>0,"Cannot modify the transformation context during initialization."),E.assert(_e<2,"Cannot modify the transformation context after transformation has completed.");const Bt=R;return R=void 0,Bt}function xn(){if(_e<3){for(const Bt of a)BH(Rn(ts(Bt)));m=void 0,C=void 0,y=void 0,N=void 0,Z=void 0,oe=void 0,R=void 0,_e=3}}}var fX,i0,D9e=Rt({"src/compiler/transformer.ts"(){Ls(),Vv(),fX={scriptTransformers:Ve,declarationTransformers:Ve},i0={factory:I,getCompilerOptions:()=>({}),getEmitResolver:ks,getEmitHost:ks,getEmitHelperFactory:ks,startLexicalEnvironment:co,resumeLexicalEnvironment:co,suspendLexicalEnvironment:co,endLexicalEnvironment:cy,setLexicalEnvironmentFlags:co,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:co,hoistFunctionDeclaration:co,addInitializationStatement:co,startBlockScope:co,endBlockScope:cy,addBlockScopedVariable:co,requestEmitHelper:co,readEmitHelpers:ks,enableSubstitution:co,enableEmitNotification:co,isSubstitutionEnabled:ks,isEmitNotificationEnabled:ks,onSubstituteNode:A8,onEmitNode:t5,addDiagnostic:co}}});function Age(e){return Hc(e,".tsbuildinfo")}function pX(e,t,r,i=!1,a,o){const l=Ds(r)?r:xq(e,r,i),u=e.getCompilerOptions();if(Ao(u)){const f=e.getPrependNodes();if(l.length||f.length){const g=I.createBundle(l,f),m=t(P8(g,e,i),g);if(m)return m}}else{if(!a)for(const f of l){const g=t(P8(f,e,i),f);if(g)return g}if(o){const f=ch(u);if(f)return t({buildInfoPath:f},void 0)}}}function ch(e){const t=e.configFilePath;if(!AD(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Ao(e);let i;if(r)i=gu(r);else{if(!t)return;const a=gu(t);i=e.outDir?e.rootDir?Xh(e.outDir,um(e.rootDir,a,!0)):Ii(e.outDir,Jl(a)):a}return i+".tsbuildinfo"}function N8(e,t){const r=Ao(e),i=e.emitDeclarationOnly?void 0:r,a=i&&Nge(i,e),o=t||wp(e)?gu(r)+".d.ts":void 0,l=o&&dO(e)?o+".map":void 0,u=ch(e);return{jsFilePath:i,sourceMapFilePath:a,declarationFilePath:o,declarationMapPath:l,buildInfoPath:u}}function P8(e,t,r){const i=t.getCompilerOptions();if(e.kind===313)return N8(i,r);{const a=b_e(e.fileName,t,LL(e.fileName,i)),o=Zf(e),l=o&&Db(e.fileName,a,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:a,f=!u||Zf(e)?void 0:Nge(u,i),g=r||wp(i)&&!o?T_e(e.fileName,t):void 0,m=g&&dO(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:f,declarationFilePath:g,declarationMapPath:m,buildInfoPath:void 0}}}function Nge(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function LL(e,t){return Hc(e,".json")?".json":t.jsx===1&&Gc(e,[".jsx",".tsx"])?".jsx":Gc(e,[".mts",".mjs"])?".mjs":Gc(e,[".cts",".cjs"])?".cjs":".js"}function Pge(e,t,r,i,a){return i?Xh(i,um(a?a():O8(t,r),e,r)):e}function I8(e,t,r,i){return Cy(Pge(e,t,r,t.options.declarationDir||t.options.outDir,i),vD(e))}function Ige(e,t,r,i){if(t.options.emitDeclarationOnly)return;const a=Hc(e,".json"),o=Cy(Pge(e,t,r,t.options.outDir,i),LL(e,t.options));return!a||Db(e,o,E.checkDefined(t.options.configFilePath),r)!==0?o:void 0}function Oge(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Ve}}function Fge(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:a,declarationMapPath:o,buildInfoPath:l}=N8(e.options,!1);t(r),t(i),t(a),t(o),t(l)}function Lge(e,t,r,i,a){if(ou(t))return;const o=Ige(t,e,r,a);if(i(o),!Hc(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),wp(e.options))){const l=I8(t,e,r,a);i(l),e.options.declarationMap&&i(`${l}.map`)}}function r5(e,t,r,i,a){let o;return e.rootDir?(o=ms(e.rootDir,r),a==null||a(e.rootDir)):e.composite&&e.configFilePath?(o=Ti(zl(e.configFilePath)),a==null||a(o)):o=Wge(t(),r,i),o&&o[o.length-1]!==qo&&(o+=qo),o}function O8({options:e,fileNames:t},r){return r5(e,()=>zr(t,i=>!(e.noEmitForJsFiles&&Gc(i,q6))&&!ou(i)),Ti(zl(E.checkDefined(e.configFilePath))),Ql(!r))}function ML(e,t){const{addOutput:r,getOutputs:i}=Oge();if(Ao(e.options))Fge(e,r);else{const a=wu(()=>O8(e,t));for(const o of e.fileNames)Lge(e,o,t,r,a);r(ch(e.options))}return i()}function A9e(e,t,r){t=ba(t),E.assert(ys(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:a}=Oge();return Ao(e.options)?Fge(e,i):Lge(e,t,r,i),a()}function dX(e,t){if(Ao(e.options)){const{jsFilePath:a,declarationFilePath:o}=N8(e.options,!1);return E.checkDefined(a||o,`project ${e.options.configFilePath} expected to have at least one output`)}const r=wu(()=>O8(e,t));for(const a of e.fileNames){if(ou(a))continue;const o=Ige(a,e,t,r);if(o)return o;if(!Hc(a,".json")&&wp(e.options))return I8(a,e,t,r)}const i=ch(e.options);return i||E.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function RL(e,t,r,{scriptTransformers:i,declarationTransformers:a},o,l,u){var f=t.getCompilerOptions(),g=f.sourceMap||f.inlineSourceMap||dO(f)?[]:void 0,m=f.listEmittedFiles?[]:void 0,y=N6(),x=K0(f),k=hD(x),{enter:C,exit:N}=kI("printTime","beforePrint","afterPrint"),D,M=!1;return C(),pX(t,V,xq(t,r,u),u,l,!r),N(),{emitSkipped:M,diagnostics:y.getDiagnostics(),emittedFiles:m,sourceMaps:g};function V({jsFilePath:H,sourceMapFilePath:Q,declarationFilePath:ne,declarationMapPath:ue,buildInfoPath:fe},G){var Ne,De,Xe,ve,be,xe;let rt;fe&&G&&rG(G)&&(rt=Ti(ms(fe,t.getCurrentDirectory())),D={commonSourceDirectory:ct(t.getCommonSourceDirectory()),sourceFiles:G.sourceFiles.map(pe=>ct(ms(pe.fileName,t.getCurrentDirectory())))}),(Ne=li)==null||Ne.push(li.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:H}),Y(G,H,Q,ct),(De=li)==null||De.pop(),(Xe=li)==null||Xe.push(li.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:ne}),j(G,ne,ue,ct),(ve=li)==null||ve.pop(),(be=li)==null||be.push(li.Phase.Emit,"emitBuildInfo",{buildInfoPath:fe}),U(D,fe),(xe=li)==null||xe.pop(),!M&&m&&(o||(H&&m.push(H),Q&&m.push(Q),fe&&m.push(fe)),o!==0&&(ne&&m.push(ne),ue&&m.push(ue)));function ct(pe){return Wv(um(rt,pe,t.getCanonicalFileName))}}function U(H,Q){if(!Q||r||M)return;if(t.isEmitBlocked(Q)){M=!0;return}const ne=t.getBuildInfo(H)||i5(void 0,H);y3(t,y,Q,Mge(ne),!1,void 0,{buildInfo:ne})}function Y(H,Q,ne,ue){if(!H||o||!Q)return;if(t.isEmitBlocked(Q)||f.noEmit){M=!0;return}const fe=n5(e,t,I,f,[H],i,!1),G={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:f.noEmitHelpers,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,inlineSources:f.inlineSources,extendedDiagnostics:f.extendedDiagnostics,writeBundleFileInfo:!!D,relativeToBuildInfo:ue},Ne=Ry(G,{hasGlobalName:e.hasGlobalName,onEmitNode:fe.emitNodeWithNotification,isEmitNotificationEnabled:fe.isEmitNotificationEnabled,substituteNode:fe.substituteNode});E.assert(fe.transformed.length===1,"Should only see one output from the transform"),R(Q,ne,fe,Ne,f),fe.dispose(),D&&(D.js=Ne.bundleFileInfo)}function j(H,Q,ne,ue){if(!H||o===0)return;if(!Q){(o||f.emitDeclarationOnly)&&(M=!0);return}const fe=Bi(H)?[H]:H.sourceFiles,G=u?fe:zr(fe,QW),Ne=Ao(f)?[I.createBundle(G,Bi(H)?void 0:H.prepends)]:G;o&&!wp(f)&&G.forEach(ee);const De=n5(e,t,I,f,Ne,a,!1);if(Nn(De.diagnostics))for(const xe of De.diagnostics)y.add(xe);const Xe={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:!0,module:f.module,target:f.target,sourceMap:!u&&f.declarationMap,inlineSourceMap:f.inlineSourceMap,extendedDiagnostics:f.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!D,recordInternalSection:!!D,relativeToBuildInfo:ue},ve=Ry(Xe,{hasGlobalName:e.hasGlobalName,onEmitNode:De.emitNodeWithNotification,isEmitNotificationEnabled:De.isEmitNotificationEnabled,substituteNode:De.substituteNode}),be=!!De.diagnostics&&!!De.diagnostics.length||!!t.isEmitBlocked(Q)||!!f.noEmit;M=M||be,(!be||u)&&(E.assert(De.transformed.length===1,"Should only see one output from the decl transform"),R(Q,ne,De,ve,{sourceMap:Xe.sourceMap,sourceRoot:f.sourceRoot,mapRoot:f.mapRoot,extendedDiagnostics:f.extendedDiagnostics})),De.dispose(),D&&(D.dts=ve.bundleFileInfo)}function ee(H){if(fc(H)){H.expression.kind===80&&e.collectLinkedAliases(H.expression,!0);return}else if(p_(H)){e.collectLinkedAliases(H.propertyName||H.name,!0);return}bs(H,ee)}function R(H,Q,ne,ue,fe){const G=ne.transformed[0],Ne=G.kind===313?G:void 0,De=G.kind===312?G:void 0,Xe=Ne?Ne.sourceFiles:[De];let ve;Z(fe,G)&&(ve=Ime(t,Jl(zl(H)),oe(fe),_e(fe,H,De),fe)),Ne?ue.writeBundle(Ne,k,ve):ue.writeFile(De,k,ve);let be;if(ve){g&&g.push({inputSourceFileNames:ve.getSources(),sourceMap:ve.toJSON()});const rt=X(fe,ve,H,Q,De);if(rt&&(k.isAtStartOfLine()||k.rawWrite(x),be=k.getTextPos(),k.writeComment(`//# sourceMappingURL=${rt}`)),Q){const ct=ve.toString();y3(t,y,Q,ct,!1,Xe),ue.bundleFileInfo&&(ue.bundleFileInfo.mapHash=gT(ct,t))}}else k.writeLine();const xe=k.getText();y3(t,y,H,xe,!!f.emitBOM,Xe,{sourceMapUrlPos:be,diagnostics:ne.diagnostics}),ue.bundleFileInfo&&(ue.bundleFileInfo.hash=gT(xe,t)),k.clear()}function Z(H,Q){return(H.sourceMap||H.inlineSourceMap)&&(Q.kind!==312||!Hc(Q.fileName,".json"))}function oe(H){const Q=zl(H.sourceRoot||"");return Q&&D_(Q)}function _e(H,Q,ne){if(H.sourceRoot)return t.getCommonSourceDirectory();if(H.mapRoot){let ue=zl(H.mapRoot);return ne&&(ue=Ti(tO(ne.fileName,t,ue))),_m(ue)===0&&(ue=Ii(t.getCommonSourceDirectory(),ue)),ue}return Ti(ba(Q))}function X(H,Q,ne,ue,fe){if(H.inlineSourceMap){const Ne=Q.toString();return`data:application/json;base64,${W_e(jl,Ne)}`}const G=Jl(zl(E.checkDefined(ue)));if(H.mapRoot){let Ne=zl(H.mapRoot);return fe&&(Ne=Ti(tO(fe.fileName,t,Ne))),_m(Ne)===0?(Ne=Ii(t.getCommonSourceDirectory(),Ne),encodeURI(Dx(Ti(ba(ne)),Ii(Ne,G),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Ii(Ne,G))}return encodeURI(G)}}function i5(e,t){return{bundle:t,program:e,version:L0}}function Mge(e){return JSON.stringify(e)}function BL(e,t){return Fq(e,t)}function N9e(e,t,r){var i;const a=E.checkDefined(e.js),o=((i=a.sources)==null?void 0:i.prologues)&&Bv(a.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{var x,k;const f=o==null?void 0:o.get(u),g=f==null?void 0:f.directives.map(C=>{const N=Ke(I.createStringLiteral(C.expression.text),C.expression),D=Ke(I.createExpressionStatement(N),C);return Ta(N,D),D}),m=I.createToken(1),y=I.createSourceFile(g!=null?g:[],m,0);return y.fileName=um(r.getCurrentDirectory(),ms(l,t),!r.useCaseSensitiveFileNames()),y.text=(x=f==null?void 0:f.text)!=null?x:"",z3(y,0,(k=f==null?void 0:f.text.length)!=null?k:0),J6(y.statements,y),z3(m,y.end,0),Ta(m,y),y})}function Rge(e,t,r,i){var a,o;(a=li)==null||a.push(li.Phase.Emit,"emitUsingBuildInfo",{},!0),go("beforeEmit");const l=P9e(e,t,r,i);return go("afterEmit"),Gu("Emit","beforeEmit","afterEmit"),(o=li)==null||o.pop(),l}function P9e(e,t,r,i){const{buildInfoPath:a,jsFilePath:o,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:f}=N8(e.options,!1),g=t.getBuildInfo(a,e.options.configFilePath);if(!g||!g.bundle||!g.bundle.js||u&&!g.bundle.dts)return a;const m=t.readFile(E.checkDefined(o));if(!m||gT(m,t)!==g.bundle.js.hash)return o;const y=l&&t.readFile(l);if(l&&!y||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&gT(y,t)!==g.bundle.js.mapHash)return l;const x=u&&t.readFile(u);if(u&&!x||u&&gT(x,t)!==g.bundle.dts.hash)return u;const k=f&&t.readFile(f);if(f&&!k||e.options.inlineSourceMap)return f||"inline sourcemap decoding";if(f&&gT(k,t)!==g.bundle.dts.mapHash)return f;const C=Ti(ms(a,t.getCurrentDirectory())),N=FH(o,m,l,y,u,x,f,k,a,g,!0),D=[],M=FX(e.projectReferences,r,ee=>t.readFile(ee),t),V=N9e(g.bundle,C,t);let U,Y;const j={getPrependNodes:wu(()=>[...M,N]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>ms(g.bundle.commonSourceDirectory,C),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:cy,getSourceFileByPath:cy,getSourceFiles:()=>V,getLibFileFromReference:ks,isSourceFileFromExternalLibrary:j0,getResolvedProjectReferenceToRedirect:cy,getProjectReferenceRedirect:cy,isSourceOfProjectReferenceRedirect:j0,writeFile:(ee,R,Z,oe,_e,X)=>{switch(ee){case o:if(m===R)return;break;case l:if(y===R)return;break;case a:break;case u:if(x===R)return;U=R,Y=X;break;case f:if(k===R)return;break;default:E.fail(`Unexpected path: ${ee}`)}D.push({name:ee,text:R,writeByteOrderMark:Z,data:X})},isEmitBlocked:j0,readFile:ee=>t.readFile(ee),fileExists:ee=>t.fileExists(ee),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ee=>{const R=g.program;R&&U!==void 0&&e.options.composite&&(R.outSignature=gT(U,t,Y));const{js:Z,dts:oe,sourceFiles:_e}=g.bundle;return ee.js.sources=Z.sources,oe&&(ee.dts.sources=oe.sources),ee.sourceFiles=_e,i5(R,ee)},getSourceFileFromReference:cy,redirectTargetsMap:Xf(),getFileIncludeReasons:ks,createHash:Hs(t,t.createHash)};return RL(jL,j,void 0,uX(e.options,i)),D}function Ry(e={},t={}){var{hasGlobalName:r,onEmitNode:i=t5,isEmitNotificationEnabled:a,substituteNode:o=A8,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:f,onAfterEmitNodeArray:g,onBeforeEmitToken:m,onAfterEmitToken:y}=t,x=!!e.extendedDiagnostics,k=K0(e),C=Ul(e),N=new Map,D,M,V,U,Y,j,ee,R,Z,oe,_e,X,H,Q,ne,ue=e.preserveSourceNewlines,fe,G,Ne,De=ok,Xe,ve=e.writeBundleFileInfo?{sections:[]}:void 0,be=ve?E.checkDefined(e.relativeToBuildInfo):void 0,xe=e.recordInternalSection,rt=0,ct="text",pe=!0,Pe,Ge,tt=-1,mt,Je=-1,ot=-1,Jt=-1,Pt=-1,bt,_r,xn=!1,Bt=!!e.removeComments,er,xr,{enter:pi,exit:ki}=Joe(x,"commentTime","beforeComment","afterComment"),Nr=I.parenthesizer,pt={select:S=>S===0?Nr.parenthesizeLeadingTypeArgument:void 0},ur=Zc();return K(),{printNode:hn,printList:Ct,printFile:Pn,printBundle:cn,writeNode:wi,writeList:Yt,writeFile:it,writeBundle:ut,bundleFileInfo:ve};function hn(S,te,et){switch(S){case 0:E.assert(Bi(te),"Expected a SourceFile node.");break;case 2:E.assert(we(te),"Expected an Identifier node.");break;case 1:E.assert(nt(te),"Expected an Expression node.");break}switch(te.kind){case 312:return Pn(te);case 313:return cn(te);case 314:return Sr(te)}return wi(S,te,et,Vt()),ae()}function Ct(S,te,et){return Yt(S,te,et,Vt()),ae()}function cn(S){return ut(S,Vt(),void 0),ae()}function Pn(S){return it(S,Vt(),void 0),ae()}function Sr(S){return kt(S,Vt()),ae()}function wi(S,te,et,Ut){const hr=G;ft(Ut,void 0),Me(S,te,et),K(),G=hr}function Yt(S,te,et,Ut){const hr=G;ft(Ut,void 0),et&&ke(et),so(void 0,te,S),K(),G=hr}function Gt(){return G.getTextPosWithWriteLine?G.getTextPosWithWriteLine():G.getTextPos()}function Sn(S,te,et){const Ut=jo(ve.sections);Ut&&Ut.kind===et?Ut.end=te:ve.sections.push({pos:S,end:te,kind:et})}function Gr(S){if(xe&&ve&&D&&(l_(S)||ic(S))&&cX(S,D)&&ct!=="internal"){const te=ct;return ze(G.getTextPos()),rt=Gt(),ct="internal",te}}function Er(S){S&&(ze(G.getTextPos()),rt=Gt(),ct=S)}function ze(S){return rtE.assert(eue(zs))),ve.sections.push({pos:vi,end:G.getTextPos(),kind:"prepend",data:be(hr.fileName),texts:Ji}))}}rt=Gt();for(const hr of S.sourceFiles)Me(0,hr,hr);if(ve&&S.sourceFiles.length){const hr=G.getTextPos();if(ze(hr)){const vi=Lc(S);vi&&(ve.sources||(ve.sources={}),ve.sources.prologues=vi);const Qr=Tt(S);Qr&&(ve.sources||(ve.sources={}),ve.sources.helpers=Qr)}}K(),G=Ut}function kt(S,te){const et=G;ft(te,void 0),Me(4,S,void 0),K(),G=et}function it(S,te,et){Xe=!0;const Ut=G;ft(te,et),O1(S),J2(S),Me(0,S,S),K(),G=Ut}function Vt(){return Ne||(Ne=hD(k))}function ae(){const S=Ne.getText();return Ne.clear(),S}function Me(S,te,et){et&&ke(et),hi(S,te,void 0)}function ke(S){D=S,bt=void 0,_r=void 0,S&&pk(S)}function ft(S,te){S&&e.omitTrailingSemicolon&&(S=vq(S)),G=S,Pe=te,pe=!G||!Pe}function K(){M=[],V=[],U=[],Y=new Set,j=[],ee=new Map,R=[],Z=0,oe=[],_e=0,X=[],H=void 0,Q=[],ne=void 0,D=void 0,bt=void 0,_r=void 0,ft(void 0,void 0)}function $e(){return bt||(bt=Ug(E.checkDefined(D)))}function Ae(S,te){if(S===void 0)return;const et=Gr(S);hi(4,S,te),Er(et)}function ht(S){S!==void 0&&hi(2,S,void 0)}function _t(S,te){S!==void 0&&hi(1,S,te)}function jt(S){hi(fa(S)?6:4,S)}function Fn(S){ue&&xp(S)&4&&(ue=!1)}function Nt(S){ue=S}function hi(S,te,et){xr=et,le(0,S,te)(S,te),xr=void 0}function z(S){return!Bt&&!Bi(S)}function B(S){return!pe&&!Bi(S)&&!j9(S)&&!iT(S)&&!Mfe(S)}function le(S,te,et){switch(S){case 0:if(i!==t5&&(!a||a(et)))return ge;case 1:if(o!==A8&&(er=o(te,et)||et)!==et)return xr&&(er=xr(er)),We;case 2:if(z(et))return Q2;case 3:if(B(et))return uf;case 4:return F;default:return E.assertNever(S)}}function W(S,te,et){return le(S+1,te,et)}function ge(S,te){const et=W(0,S,te);i(S,te,et)}function F(S,te){if(l==null||l(te),ue){const et=ue;Fn(te),ye(S,te),Nt(et)}else ye(S,te);u==null||u(te),xr=void 0}function ye(S,te,et=!0){if(et){const Ut=jH(te);if(Ut)return gs(S,te,Ut)}if(S===0)return I1(Bs(te,Bi));if(S===2)return cs(Bs(te,we));if(S===6)return ir(Bs(te,fa),!0);if(S===3)return Oe(Bs(te,Go));if(S===5)return E.assertNode(te,eG),is(!0);if(S===4){switch(te.kind){case 16:case 17:case 18:return ir(te,!1);case 80:return cs(te);case 81:return Ms(te);case 166:return di(te);case 167:return tc(te);case 168:return qi(te);case 169:return Es(te);case 170:return Ea(te);case 171:return ro(te);case 172:return za(te);case 173:return Pc(te);case 174:return ls(te);case 175:return Li(te);case 176:return Vc(te);case 177:case 178:return zo(te);case 179:return L_(te);case 180:return _l(te);case 181:return Bf(te);case 182:return Ba(te);case 183:return Fa(te);case 184:return Wt(te);case 185:return vo(te);case 186:return $o(te);case 187:return A(te);case 188:return Ce(te);case 189:return xt(te);case 190:return Pr(te);case 192:return En(te);case 193:return gr(te);case 194:return ci(te);case 195:return Vr(te);case 196:return La(te);case 233:return ud(te);case 197:return io();case 198:return ac(te);case 199:return Ic(te);case 200:return dc(te);case 201:return Ka(te);case 202:return yn(te);case 203:return nc(te);case 204:return Rs(te);case 205:return H_(te);case 206:return Uc(te);case 207:return Vo(te);case 208:return Tu(te);case 239:return At(te);case 240:return po();case 241:return Jn(te);case 243:return mi(te);case 242:return is(!1);case 244:return Ss(te);case 245:return Lo(te);case 246:return xl(te);case 247:return cf(te);case 248:return y_(te);case 249:return fd(te);case 250:return Hd(te);case 251:return Ee(te);case 252:return je(te);case 253:return Vn(te);case 254:return Br(te);case 255:return Gi(te);case 256:return Hn(te);case 257:return cr(te);case 258:return wr(te);case 259:return ta(te);case 260:return Fc(te);case 261:return Xo(te);case 262:return pg(te);case 263:return gh(te);case 264:return D1(te);case 265:return qy(te);case 266:return hh(te);case 267:return LT(te);case 268:return KS(te);case 269:return MT(te);case 270:return Hy(te);case 271:return RT(te);case 272:return BT(te);case 273:return jT(te);case 274:return L2(te);case 280:return yh(te);case 275:return JT(te);case 276:return zT(te);case 277:return ek(te);case 278:return VT(te);case 279:return Gy(te);case 281:return M2(te);case 300:return tk(te);case 301:return A1(te);case 282:return;case 283:return R2(te);case 12:return bf(te);case 286:case 289:return $d(te);case 287:case 290:return Ju(te);case 291:return xu(te);case 292:return lu(te);case 293:return $y(te);case 294:return UT(te);case 295:return P1(te);case 296:return B2(te);case 297:return WT(te);case 298:return bh(te);case 299:return al(te);case 303:return Fe(te);case 304:return u0(te);case 305:return Tf(te);case 306:return Th(te);case 307:return jn(te);case 314:case 308:return ar(te);case 309:case 310:return oi(te);case 311:return ea(te);case 312:return I1(te);case 313:return E.fail("Bundles should be printed using printBundle");case 315:return E.fail("InputFiles should not be printed");case 316:return xf(te);case 317:return f0(te);case 319:return Un("*");case 320:return Un("?");case 321:return h_(te);case 322:return M_(te);case 323:return q_(te);case 324:return pc(te);case 191:case 325:return Re(te);case 326:return;case 327:return v_(te);case 329:return Zy(te);case 330:return mg(te);case 334:case 339:case 344:return HT(te);case 335:case 336:return nk(te);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return qT(te);case 346:return rk(te);case 348:case 355:return Ky(te);case 347:case 349:case 350:case 351:case 356:case 357:return fp(te);case 352:return Pa(te);case 353:return pp(te);case 354:return b_(te);case 359:return}if(nt(te)&&(S=1,o!==A8)){const Ut=o(S,te)||te;Ut!==te&&(te=Ut,xr&&(te=xr(te)))}}if(S===1)switch(te.kind){case 9:case 10:return kn(te);case 11:case 14:case 15:return ir(te,!1);case 80:return cs(te);case 81:return Ms(te);case 209:return he(te);case 210:return vt(te);case 211:return vn(te);case 212:return ws(te);case 213:return Wa(te);case 214:return oc(te);case 215:return se(te);case 216:return qe(te);case 217:return gt(te);case 218:return Et(te);case 219:return Xt(te);case 220:return Cr(te);case 221:return qr(te);case 222:return _i(te);case 223:return hs(te);case 224:return va(te);case 225:return Ro(te);case 226:return ur(te);case 227:return Oc(te);case 228:return il(te);case 229:return Ml(te);case 230:return sl(te);case 231:return ju(te);case 232:return;case 234:return w1(te);case 235:return qd(te);case 233:return ud(te);case 238:return J(te);case 236:return Be(te);case 237:return E.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return vh(te);case 285:return N1(te);case 288:return dg(te);case 358:return E.fail("SyntaxList should not be printed");case 359:return;case 360:return G_(te);case 361:return W4(te);case 362:return E.fail("SyntheticReferenceExpression should not be printed")}if(su(te.kind))return sv(te,Zi);if(iW(te.kind))return sv(te,Un);E.fail(`Unhandled SyntaxKind: ${E.formatSyntaxKind(te.kind)}.`)}function Oe(S){Ae(S.name),qn(),Zi("in"),qn(),Ae(S.constraint)}function We(S,te){const et=W(1,S,te);E.assertIsDefined(er),te=er,er=void 0,et(S,te)}function Tt(S){let te;if(C===0||e.noEmitHelpers)return;const et=new Map;for(const Ut of S.sourceFiles){const hr=mA(Ut)!==void 0,vi=on(Ut);if(!!vi)for(const Qr of vi)!Qr.scoped&&!hr&&!et.get(Qr.name)&&(et.set(Qr.name,!0),(te||(te=[])).push(Qr.name))}return te}function It(S){let te=!1;const et=S.kind===313?S:void 0;if(et&&C===0)return;const Ut=et?et.prepends.length:0,hr=et?et.sourceFiles.length+Ut:1;for(let vi=0;vi"),qn(),Ae(S.type),bg(S)}function pc(S){Zi("function"),kh(S,S.parameters),Un(":"),Ae(S.type)}function h_(S){Un("?"),Ae(S.type)}function M_(S){Un("!"),Ae(S.type)}function q_(S){Ae(S.type),Un("=")}function vo(S){$_(S),Mp(S,S.modifiers),Zi("new"),qn(),Pm(S,S.typeParameters),kh(S,S.parameters),qn(),Un("=>"),qn(),Ae(S.type),bg(S)}function $o(S){Zi("typeof"),qn(),Ae(S.exprName),dd(S,S.typeArguments)}function A(S){R1(0,void 0),Un("{");const te=ma(S)&1?768:32897;so(S,S.members,te|524288),Un("}"),Tg()}function Ce(S){Ae(S.elementType,Nr.parenthesizeNonArrayTypeOfPostfixType),Un("["),Un("]")}function Re(S){Un("..."),Ae(S.type)}function xt(S){Ye(23,S.pos,Un,S);const te=ma(S)&1?528:657;so(S,S.elements,te|524288,Nr.parenthesizeElementTypeOfTupleType),Ye(24,S.elements.end,Un,S)}function yn(S){Ae(S.dotDotDotToken),Ae(S.name),Ae(S.questionToken),Ye(59,S.name.end,Un,S),qn(),Ae(S.type)}function Pr(S){Ae(S.type,Nr.parenthesizeTypeOfOptionalType),Un("?")}function En(S){so(S,S.types,516,Nr.parenthesizeConstituentTypeOfUnionType)}function gr(S){so(S,S.types,520,Nr.parenthesizeConstituentTypeOfIntersectionType)}function ci(S){Ae(S.checkType,Nr.parenthesizeCheckTypeOfConditionalType),qn(),Zi("extends"),qn(),Ae(S.extendsType,Nr.parenthesizeExtendsTypeOfConditionalType),qn(),Un("?"),qn(),Ae(S.trueType),qn(),Un(":"),qn(),Ae(S.falseType)}function Vr(S){Zi("infer"),qn(),Ae(S.typeParameter)}function La(S){Un("("),Ae(S.type),Un(")")}function io(){Zi("this")}function ac(S){gg(S.operator,Zi),qn();const te=S.operator===148?Nr.parenthesizeOperandOfReadonlyTypeOperator:Nr.parenthesizeOperandOfTypeOperator;Ae(S.type,te)}function Ic(S){Ae(S.objectType,Nr.parenthesizeNonArrayTypeOfPostfixType),Un("["),Ae(S.indexType),Un("]")}function dc(S){const te=ma(S);Un("{"),te&1?qn():(ul(),md()),S.readonlyToken&&(Ae(S.readonlyToken),S.readonlyToken.kind!==148&&Zi("readonly"),qn()),Un("["),hi(3,S.typeParameter),S.nameType&&(qn(),Zi("as"),qn(),Ae(S.nameType)),Un("]"),S.questionToken&&(Ae(S.questionToken),S.questionToken.kind!==58&&Un("?")),Un(":"),qn(),Ae(S.type),mc(),te&1?qn():(ul(),Bp()),so(S,S.members,2),Un("}")}function Ka(S){_t(S.literal)}function nc(S){Ae(S.head),so(S,S.templateSpans,262144)}function H_(S){if(S.isTypeOf&&(Zi("typeof"),qn()),Zi("import"),Un("("),Ae(S.argument),S.assertions){Un(","),qn(),Un("{"),qn(),Zi("assert"),Un(":"),qn();const te=S.assertions.assertClause.elements;so(S.assertions.assertClause,te,526226),qn(),Un("}")}Un(")"),S.qualifier&&(Un("."),Ae(S.qualifier)),dd(S,S.typeArguments)}function Uc(S){Un("{"),so(S,S.elements,525136),Un("}")}function Vo(S){Un("["),so(S,S.elements,524880),Un("]")}function Tu(S){Ae(S.dotDotDotToken),S.propertyName&&(Ae(S.propertyName),Un(":"),qn()),Ae(S.name),xh(S.initializer,S.name.end,S,Nr.parenthesizeExpressionForDisallowedComma)}function he(S){const te=S.elements,et=S.multiLine?65536:0;ev(S,te,8914|et,Nr.parenthesizeExpressionForDisallowedComma)}function vt(S){R1(0,void 0),pn(S.properties,h0);const te=ma(S)&131072;te&&md();const et=S.multiLine?65536:0,Ut=D&&D.languageVersion>=1&&!Zf(D)?64:0;so(S,S.properties,526226|Ut|et),te&&Bp(),Tg()}function vn(S){_t(S.expression,Nr.parenthesizeLeftSideOfAccess);const te=S.questionDotToken||Tm(I.createToken(25),S.expression.end,S.name.pos),et=mp(S,S.expression,te),Ut=mp(S,te,S.name);gd(et,!1),te.kind!==29&&ji(S.expression)&&!G.hasTrailingComment()&&!G.hasTrailingWhitespace()&&Un("."),S.questionDotToken?Ae(te):Ye(te.kind,S.expression.end,Un,S),gd(Ut,!1),Ae(S.name),m0(et,Ut)}function ji(S){if(S=Tp(S),Ou(S)){const te=ku(S,!0,!1);return!(S.numericLiteralFlags&448)&&!Xl(te,ia(25))&&!Xl(te,String.fromCharCode(69))&&!Xl(te,String.fromCharCode(101))}else if(Mo(S)){const te=cfe(S);return typeof te=="number"&&isFinite(te)&&te>=0&&Math.floor(te)===te}}function ws(S){_t(S.expression,Nr.parenthesizeLeftSideOfAccess),Ae(S.questionDotToken),Ye(23,S.expression.end,Un,S),_t(S.argumentExpression),Ye(24,S.argumentExpression.end,Un,S)}function Wa(S){const te=xp(S)&16;te&&(Un("("),nv("0"),Un(","),qn()),_t(S.expression,Nr.parenthesizeLeftSideOfAccess),te&&Un(")"),Ae(S.questionDotToken),dd(S,S.typeArguments),ev(S,S.arguments,2576,Nr.parenthesizeExpressionForDisallowedComma)}function oc(S){Ye(105,S.pos,Zi,S),qn(),_t(S.expression,Nr.parenthesizeExpressionOfNew),dd(S,S.typeArguments),ev(S,S.arguments,18960,Nr.parenthesizeExpressionForDisallowedComma)}function se(S){const te=xp(S)&16;te&&(Un("("),nv("0"),Un(","),qn()),_t(S.tag,Nr.parenthesizeLeftSideOfAccess),te&&Un(")"),dd(S,S.typeArguments),qn(),_t(S.template)}function qe(S){Un("<"),Ae(S.type),Un(">"),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function gt(S){const te=Ye(21,S.pos,Un,S),et=H2(S.expression,S);_t(S.expression,void 0),QT(S.expression,S),m0(et),Ye(22,S.expression?S.expression.end:te,Un,S)}function Et(S){Im(S.name),Gd(S)}function Xt(S){Mp(S,S.modifiers),jf(S,On)}function On(S){Pm(S,S.typeParameters),U2(S,S.parameters),T_(S.type),qn(),Ae(S.equalsGreaterThanToken)}function Cr(S){Ye(91,S.pos,Zi,S),qn(),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function qr(S){Ye(114,S.pos,Zi,S),qn(),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function _i(S){Ye(116,S.pos,Zi,S),qn(),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function hs(S){Ye(135,S.pos,Zi,S),qn(),_t(S.expression,Nr.parenthesizeOperandOfPrefixUnary)}function va(S){gg(S.operator,Rp),Fo(S)&&qn(),_t(S.operand,Nr.parenthesizeOperandOfPrefixUnary)}function Fo(S){const te=S.operand;return te.kind===224&&(S.operator===40&&(te.operator===40||te.operator===46)||S.operator===41&&(te.operator===41||te.operator===47))}function Ro(S){_t(S.operand,Nr.parenthesizeOperandOfPostfixUnary),gg(S.operator,Rp)}function Zc(){return OF(S,te,et,Ut,hr,void 0);function S(Qr,Ji){if(Ji){Ji.stackIndex++,Ji.preserveSourceNewlinesStack[Ji.stackIndex]=ue,Ji.containerPosStack[Ji.stackIndex]=ot,Ji.containerEndStack[Ji.stackIndex]=Jt,Ji.declarationListContainerEndStack[Ji.stackIndex]=Pt;const zs=Ji.shouldEmitCommentsStack[Ji.stackIndex]=z(Qr),ii=Ji.shouldEmitSourceMapsStack[Ji.stackIndex]=B(Qr);l==null||l(Qr),zs&&KT(Qr),ii&&gc(Qr),Fn(Qr)}else Ji={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Ji}function te(Qr,Ji,zs){return vi(Qr,zs,"left")}function et(Qr,Ji,zs){const ii=Qr.kind!==28,Rl=mp(zs,zs.left,Qr),Cn=mp(zs,Qr,zs.right);gd(Rl,ii),Q_(Qr.pos),sv(Qr,Qr.kind===103?Zi:Rp),_f(Qr.end,!0),gd(Cn,!0)}function Ut(Qr,Ji,zs){return vi(Qr,zs,"right")}function hr(Qr,Ji){const zs=mp(Qr,Qr.left,Qr.operatorToken),ii=mp(Qr,Qr.operatorToken,Qr.right);if(m0(zs,ii),Ji.stackIndex>0){const Rl=Ji.preserveSourceNewlinesStack[Ji.stackIndex],Cn=Ji.containerPosStack[Ji.stackIndex],Ah=Ji.containerEndStack[Ji.stackIndex],Y_=Ji.declarationListContainerEndStack[Ji.stackIndex],Cg=Ji.shouldEmitCommentsStack[Ji.stackIndex],Nh=Ji.shouldEmitSourceMapsStack[Ji.stackIndex];Nt(Rl),Nh&&fk(Qr),Cg&&lv(Qr,Cn,Ah,Y_),u==null||u(Qr),Ji.stackIndex--}}function vi(Qr,Ji,zs){const ii=zs==="left"?Nr.getParenthesizeLeftSideOfBinaryForOperator(Ji.operatorToken.kind):Nr.getParenthesizeRightSideOfBinaryForOperator(Ji.operatorToken.kind);let Rl=le(0,1,Qr);if(Rl===We&&(E.assertIsDefined(er),Qr=ii(Bs(er,nt)),Rl=W(1,1,Qr),er=void 0),(Rl===Q2||Rl===uf||Rl===F)&&rr(Qr))return Qr;xr=ii,Rl(1,Qr)}}function Oc(S){const te=mp(S,S.condition,S.questionToken),et=mp(S,S.questionToken,S.whenTrue),Ut=mp(S,S.whenTrue,S.colonToken),hr=mp(S,S.colonToken,S.whenFalse);_t(S.condition,Nr.parenthesizeConditionOfConditionalExpression),gd(te,!0),Ae(S.questionToken),gd(et,!0),_t(S.whenTrue,Nr.parenthesizeBranchOfConditionalExpression),m0(te,et),gd(Ut,!0),Ae(S.colonToken),gd(hr,!0),_t(S.whenFalse,Nr.parenthesizeBranchOfConditionalExpression),m0(Ut,hr)}function il(S){Ae(S.head),so(S,S.templateSpans,262144)}function Ml(S){Ye(127,S.pos,Zi,S),Ae(S.asteriskToken),F1(S.expression&&un(S.expression),nn)}function sl(S){Ye(26,S.pos,Un,S),_t(S.expression,Nr.parenthesizeExpressionForDisallowedComma)}function ju(S){Im(S.name),Wy(S)}function ud(S){_t(S.expression,Nr.parenthesizeLeftSideOfAccess),dd(S,S.typeArguments)}function w1(S){_t(S.expression,void 0),S.type&&(qn(),Zi("as"),qn(),Ae(S.type))}function qd(S){_t(S.expression,Nr.parenthesizeLeftSideOfAccess),Rp("!")}function J(S){_t(S.expression,void 0),S.type&&(qn(),Zi("satisfies"),qn(),Ae(S.type))}function Be(S){q2(S.keywordToken,S.pos,Un),Un("."),Ae(S.name)}function At(S){_t(S.expression),Ae(S.literal)}function Jn(S){xs(S,!S.multiLine&&Mc(S))}function xs(S,te){Ye(19,S.pos,Un,S);const et=te||ma(S)&1?768:129;so(S,S.statements,et),Ye(20,S.statements.end,Un,S,!!(et&1))}function mi(S){Su(S,S.modifiers,!1),Ae(S.declarationList),mc()}function is(S){S?Un(";"):mc()}function Ss(S){_t(S.expression,Nr.parenthesizeExpressionOfExpressionStatement),(!D||!Zf(D)||Do(S.expression))&&mc()}function Lo(S){const te=Ye(101,S.pos,Zi,S);qn(),Ye(21,te,Un,S),_t(S.expression),Ye(22,S.expression.end,Un,S),d0(S,S.thenStatement),S.elseStatement&&(Ch(S,S.thenStatement,S.elseStatement),Ye(93,S.thenStatement.end,Zi,S),S.elseStatement.kind===245?(qn(),Ae(S.elseStatement)):d0(S,S.elseStatement))}function sa(S,te){const et=Ye(117,te,Zi,S);qn(),Ye(21,et,Un,S),_t(S.expression),Ye(22,S.expression.end,Un,S)}function xl(S){Ye(92,S.pos,Zi,S),d0(S,S.statement),vs(S.statement)&&!ue?qn():Ch(S,S.statement,S.expression),sa(S,S.statement.end),mc()}function cf(S){sa(S,S.pos),d0(S,S.statement)}function y_(S){const te=Ye(99,S.pos,Zi,S);qn();let et=Ye(21,te,Un,S);Lp(S.initializer),et=Ye(27,S.initializer?S.initializer.end:et,Un,S),F1(S.condition),et=Ye(27,S.condition?S.condition.end:et,Un,S),F1(S.incrementor),Ye(22,S.incrementor?S.incrementor.end:et,Un,S),d0(S,S.statement)}function fd(S){const te=Ye(99,S.pos,Zi,S);qn(),Ye(21,te,Un,S),Lp(S.initializer),qn(),Ye(103,S.initializer.end,Zi,S),qn(),_t(S.expression),Ye(22,S.expression.end,Un,S),d0(S,S.statement)}function Hd(S){const te=Ye(99,S.pos,Zi,S);qn(),Sh(S.awaitModifier),Ye(21,te,Un,S),Lp(S.initializer),qn(),Ye(165,S.initializer.end,Zi,S),qn(),_t(S.expression),Ye(22,S.expression.end,Un,S),d0(S,S.statement)}function Lp(S){S!==void 0&&(S.kind===261?Ae(S):_t(S))}function Ee(S){Ye(88,S.pos,Zi,S),p0(S.label),mc()}function je(S){Ye(83,S.pos,Zi,S),p0(S.label),mc()}function Ye(S,te,et,Ut,hr){const vi=ts(Ut),Qr=vi&&vi.kind===Ut.kind,Ji=te;if(Qr&&D&&(te=_a(D.text,te)),Qr&&Ut.pos!==Ji){const zs=hr&&D&&!np(Ji,te,D);zs&&md(),Q_(Ji),zs&&Bp()}if(te=gg(S,et,te),Qr&&Ut.end!==te){const zs=Ut.kind===294;_f(te,!zs,zs)}return te}function Mt(S){return S.kind===2||!!S.hasTrailingNewLine}function rn(S){return D?dt($m(D.text,S.pos),Mt)||dt(H6(S),Mt)?!0:vF(S)?S.pos!==S.expression.pos&&dt(uy(D.text,S.expression.pos),Mt)?!0:rn(S.expression):!1:!1}function un(S){if(!Bt&&vF(S)&&rn(S)){const te=ts(S);if(te&&yu(te)){const et=I.createParenthesizedExpression(S.expression);return or(et,S),Ke(et,te),et}return I.createParenthesizedExpression(S)}return S}function nn(S){return un(Nr.parenthesizeExpressionForDisallowedComma(S))}function Vn(S){Ye(107,S.pos,Zi,S),F1(S.expression&&un(S.expression),un),mc()}function Br(S){const te=Ye(118,S.pos,Zi,S);qn(),Ye(21,te,Un,S),_t(S.expression),Ye(22,S.expression.end,Un,S),d0(S,S.statement)}function Gi(S){const te=Ye(109,S.pos,Zi,S);qn(),Ye(21,te,Un,S),_t(S.expression),Ye(22,S.expression.end,Un,S),qn(),Ae(S.caseBlock)}function Hn(S){Ae(S.label),Ye(59,S.label.end,Un,S),qn(),Ae(S.statement)}function cr(S){Ye(111,S.pos,Zi,S),F1(un(S.expression),un),mc()}function wr(S){Ye(113,S.pos,Zi,S),qn(),Ae(S.tryBlock),S.catchClause&&(Ch(S,S.tryBlock,S.catchClause),Ae(S.catchClause)),S.finallyBlock&&(Ch(S,S.catchClause||S.tryBlock,S.finallyBlock),Ye(98,(S.catchClause||S.tryBlock).end,Zi,S),qn(),Ae(S.finallyBlock))}function ta(S){q2(89,S.pos,Zi),mc()}function Fc(S){var hr,vi;var te,et,Ut;Ae(S.name),Ae(S.exclamationToken),T_(S.type),xh(S.initializer,(vi=(hr=(te=S.type)==null?void 0:te.end)!=null?hr:(Ut=(et=S.name.emitNode)==null?void 0:et.typeNode)==null?void 0:Ut.end)!=null?vi:S.name.end,S,Nr.parenthesizeExpressionForDisallowedComma)}function Xo(S){if(Mw(S))Zi("await"),qn(),Zi("using");else{const te=C9(S)?"let":d6(S)?"const":Rw(S)?"using":"var";Zi(te)}qn(),so(S,S.declarations,528)}function pg(S){Gd(S)}function Gd(S){Su(S,S.modifiers,!1),Zi("function"),Ae(S.asteriskToken),qn(),ht(S.name),jf(S,c0)}function jf(S,te){const et=S.body;if(et)if(vs(et)){const Ut=ma(S)&131072;Ut&&md(),$_(S),pn(S.parameters,fl),fl(S.body),te(S),FT(et),bg(S),Ut&&Bp()}else te(S),qn(),_t(et,Nr.parenthesizeConciseBodyOfArrowFunction);else te(S),mc()}function c0(S){Pm(S,S.typeParameters),kh(S,S.parameters),T_(S.type)}function mh(S){if(ma(S)&1)return!0;if(S.multiLine||!Do(S)&&D&&!Gb(S,D)||hg(S,wl(S.statements),2)||yg(S,jo(S.statements),2,S.statements))return!1;let te;for(const et of S.statements){if(XT(te,et,2)>0)return!1;te=et}return!0}function FT(S){l==null||l(S),qn(),Un("{"),md();const te=mh(S)?V4:l0;Cu(S,S.statements,te),Bp(),q2(20,S.statements.end,Un,S),u==null||u(S)}function V4(S){l0(S,!0)}function l0(S,te){const et=Qd(S.statements),Ut=G.getTextPos();It(S),et===0&&Ut===G.getTextPos()&&te?(Bp(),so(S,S.statements,768),md()):so(S,S.statements,1,void 0,et)}function gh(S){Wy(S)}function Wy(S){R1(0,void 0),pn(S.members,h0),Su(S,S.modifiers,!0),Ye(86,Md(S).pos,Zi,S),S.name&&(qn(),ht(S.name));const te=ma(S)&131072;te&&md(),Pm(S,S.typeParameters),so(S,S.heritageClauses,0),qn(),Un("{"),so(S,S.members,129),Un("}"),te&&Bp(),Tg()}function D1(S){R1(0,void 0),Su(S,S.modifiers,!1),Zi("interface"),qn(),Ae(S.name),Pm(S,S.typeParameters),so(S,S.heritageClauses,512),qn(),Un("{"),so(S,S.members,129),Un("}"),Tg()}function qy(S){Su(S,S.modifiers,!1),Zi("type"),qn(),Ae(S.name),Pm(S,S.typeParameters),qn(),Un("="),qn(),Ae(S.type),mc()}function hh(S){Su(S,S.modifiers,!1),Zi("enum"),qn(),Ae(S.name),qn(),Un("{"),so(S,S.members,145),Un("}")}function LT(S){Su(S,S.modifiers,!1),~S.flags&2048&&(Zi(S.flags&32?"namespace":"module"),qn()),Ae(S.name);let te=S.body;if(!te)return mc();for(;te&&Ac(te);)Un("."),Ae(te.name),te=te.body;qn(),Ae(te)}function KS(S){$_(S),pn(S.statements,fl),xs(S,Mc(S)),bg(S)}function MT(S){Ye(19,S.pos,Un,S),so(S,S.clauses,129),Ye(20,S.clauses.end,Un,S,!0)}function RT(S){Su(S,S.modifiers,!1),Ye(102,S.modifiers?S.modifiers.end:S.pos,Zi,S),qn(),S.isTypeOnly&&(Ye(156,S.pos,Zi,S),qn()),Ae(S.name),qn(),Ye(64,S.name.end,Un,S),qn(),F2(S.moduleReference),mc()}function F2(S){S.kind===80?_t(S):Ae(S)}function BT(S){Su(S,S.modifiers,!1),Ye(102,S.modifiers?S.modifiers.end:S.pos,Zi,S),qn(),S.importClause&&(Ae(S.importClause),qn(),Ye(161,S.importClause.end,Zi,S),qn()),_t(S.moduleSpecifier),S.assertClause&&p0(S.assertClause),mc()}function jT(S){S.isTypeOnly&&(Ye(156,S.pos,Zi,S),qn()),Ae(S.name),S.name&&S.namedBindings&&(Ye(28,S.name.end,Un,S),qn()),Ae(S.namedBindings)}function L2(S){const te=Ye(42,S.pos,Un,S);qn(),Ye(130,te,Zi,S),qn(),Ae(S.name)}function JT(S){_0(S)}function zT(S){xa(S)}function ek(S){const te=Ye(95,S.pos,Zi,S);qn(),S.isExportEquals?Ye(64,te,Rp,S):Ye(90,te,Zi,S),qn(),_t(S.expression,S.isExportEquals?Nr.getParenthesizeRightSideOfBinaryForOperator(64):Nr.parenthesizeExpressionOfExportDefault),mc()}function VT(S){Su(S,S.modifiers,!1);let te=Ye(95,S.pos,Zi,S);if(qn(),S.isTypeOnly&&(te=Ye(156,te,Zi,S),qn()),S.exportClause?Ae(S.exportClause):te=Ye(42,te,Un,S),S.moduleSpecifier){qn();const et=S.exportClause?S.exportClause.end:te;Ye(161,et,Zi,S),qn(),_t(S.moduleSpecifier)}S.assertClause&&p0(S.assertClause),mc()}function tk(S){Ye(132,S.pos,Zi,S),qn();const te=S.elements;so(S,te,526226)}function A1(S){Ae(S.name),Un(":"),qn();const te=S.value;if((ma(te)&1024)===0){const et=Bd(te);_f(et.pos)}Ae(te)}function Hy(S){let te=Ye(95,S.pos,Zi,S);qn(),te=Ye(130,te,Zi,S),qn(),te=Ye(145,te,Zi,S),qn(),Ae(S.name),mc()}function yh(S){const te=Ye(42,S.pos,Un,S);qn(),Ye(130,te,Zi,S),qn(),Ae(S.name)}function Gy(S){_0(S)}function M2(S){xa(S)}function _0(S){Un("{"),so(S,S.elements,525136),Un("}")}function xa(S){S.isTypeOnly&&(Zi("type"),qn()),S.propertyName&&(Ae(S.propertyName),qn(),Ye(130,S.propertyName.end,Zi,S),qn()),Ae(S.name)}function R2(S){Zi("require"),Un("("),_t(S.expression),Un(")")}function vh(S){Ae(S.openingElement),so(S,S.children,262144),Ae(S.closingElement)}function N1(S){Un("<"),Yy(S.tagName),dd(S,S.typeArguments),qn(),Ae(S.attributes),Un("/>")}function dg(S){Ae(S.openingFragment),so(S,S.children,262144),Ae(S.closingFragment)}function $d(S){if(Un("<"),zd(S)){const te=H2(S.tagName,S);Yy(S.tagName),dd(S,S.typeArguments),S.attributes.properties&&S.attributes.properties.length>0&&qn(),Ae(S.attributes),QT(S.attributes,S),m0(te)}Un(">")}function bf(S){G.writeLiteral(S.text)}function Ju(S){Un("")}function lu(S){so(S,S.properties,262656)}function xu(S){Ae(S.name),V2("=",Un,S.initializer,jt)}function $y(S){Un("{..."),_t(S.expression),Un("}")}function Xy(S){let te=!1;return fw((D==null?void 0:D.text)||"",S+1,()=>te=!0),te}function U4(S){let te=!1;return uw((D==null?void 0:D.text)||"",S+1,()=>te=!0),te}function Qy(S){return Xy(S)||U4(S)}function UT(S){var te;if(S.expression||!Bt&&!Do(S)&&Qy(S.pos)){const et=D&&!Do(S)&&yo(D,S.pos).line!==yo(D,S.end).line;et&&G.increaseIndent();const Ut=Ye(19,S.pos,Un,S);Ae(S.dotDotDotToken),_t(S.expression),Ye(20,((te=S.expression)==null?void 0:te.end)||Ut,Un,S),et&&G.decreaseIndent()}}function P1(S){ht(S.namespace),Un(":"),ht(S.name)}function Yy(S){S.kind===80?_t(S):Ae(S)}function B2(S){Ye(84,S.pos,Zi,S),qn(),_t(S.expression,Nr.parenthesizeExpressionForDisallowedComma),j2(S,S.statements,S.expression.end)}function WT(S){const te=Ye(90,S.pos,Zi,S);j2(S,S.statements,te)}function j2(S,te,et){const Ut=te.length===1&&(!D||Do(S)||Do(te[0])||aO(S,te[0],D));let hr=163969;Ut?(q2(59,et,Un,S),qn(),hr&=-130):Ye(59,et,Un,S),so(S,te,hr)}function bh(S){qn(),gg(S.token,Zi),qn(),so(S,S.types,528)}function al(S){const te=Ye(85,S.pos,Zi,S);qn(),S.variableDeclaration&&(Ye(21,te,Un,S),Ae(S.variableDeclaration),Ye(22,S.variableDeclaration.end,Un,S),qn()),Ae(S.block)}function Fe(S){Ae(S.name),Un(":"),qn();const te=S.initializer;if((ma(te)&1024)===0){const et=Bd(te);_f(et.pos)}_t(te,Nr.parenthesizeExpressionForDisallowedComma)}function u0(S){Ae(S.name),S.objectAssignmentInitializer&&(qn(),Un("="),qn(),_t(S.objectAssignmentInitializer,Nr.parenthesizeExpressionForDisallowedComma))}function Tf(S){S.expression&&(Ye(26,S.pos,Un,S),_t(S.expression,Nr.parenthesizeExpressionForDisallowedComma))}function Th(S){Ae(S.name),xh(S.initializer,S.name.end,S,Nr.parenthesizeExpressionForDisallowedComma)}function v_(S){if(De("/**"),S.comment){const te=vw(S.comment);if(te){const et=te.split(/\r\n?|\n/g);for(const Ut of et)ul(),qn(),Un("*"),qn(),De(Ut)}}S.tags&&(S.tags.length===1&&S.tags[0].kind===351&&!S.comment?(qn(),Ae(S.tags[0])):so(S,S.tags,33)),qn(),De("*/")}function fp(S){pd(S.tagName),xf(S.typeExpression),Nm(S.comment)}function b_(S){pd(S.tagName),Ae(S.name),Nm(S.comment)}function f0(S){qn(),Un("{"),Ae(S.name),Un("}")}function nk(S){pd(S.tagName),qn(),Un("{"),Ae(S.class),Un("}"),Nm(S.comment)}function Pa(S){pd(S.tagName),xf(S.constraint),qn(),so(S,S.typeParameters,528),Nm(S.comment)}function pp(S){pd(S.tagName),S.typeExpression&&(S.typeExpression.kind===316?xf(S.typeExpression):(qn(),Un("{"),De("Object"),S.typeExpression.isArrayType&&(Un("["),Un("]")),Un("}"))),S.fullName&&(qn(),Ae(S.fullName)),Nm(S.comment),S.typeExpression&&S.typeExpression.kind===329&&Zy(S.typeExpression)}function qT(S){pd(S.tagName),S.name&&(qn(),Ae(S.name)),Nm(S.comment),mg(S.typeExpression)}function rk(S){Nm(S.comment),mg(S.typeExpression)}function HT(S){pd(S.tagName),Nm(S.comment)}function Zy(S){so(S,I.createNodeArray(S.jsDocPropertyTags),33)}function mg(S){S.typeParameters&&so(S,I.createNodeArray(S.typeParameters),33),S.parameters&&so(S,I.createNodeArray(S.parameters),33),S.type&&(ul(),qn(),Un("*"),qn(),Ae(S.type))}function Ky(S){pd(S.tagName),xf(S.typeExpression),qn(),S.isBracketed&&Un("["),Ae(S.name),S.isBracketed&&Un("]"),Nm(S.comment)}function pd(S){Un("@"),Ae(S)}function Nm(S){const te=vw(S);te&&(qn(),De(te))}function xf(S){S&&(qn(),Un("{"),Ae(S.type),Un("}"))}function I1(S){ul();const te=S.statements;if(te.length===0||!Sp(te[0])||Do(te[0])){Cu(S,te,Xd);return}Xd(S)}function GT(S){jr(!!S.hasNoDefaultLib,S.syntheticFileReferences||[],S.syntheticTypeReferences||[],S.syntheticLibReferences||[]);for(const te of S.prepends)if(iT(te)&&te.syntheticReferences)for(const et of te.syntheticReferences)Ae(et),ul()}function Mi(S){S.isDeclarationFile&&jr(S.hasNoDefaultLib,S.referencedFiles,S.typeReferenceDirectives,S.libReferenceDirectives)}function jr(S,te,et,Ut){if(S){const hr=G.getTextPos();Yd('/// '),ve&&ve.sections.push({pos:hr,end:G.getTextPos(),kind:"no-default-lib"}),ul()}if(D&&D.moduleName&&(Yd(`/// `),ul()),D&&D.amdDependencies)for(const hr of D.amdDependencies)hr.name?Yd(`/// `):Yd(`/// `),ul();for(const hr of te){const vi=G.getTextPos();Yd(`/// `),ve&&ve.sections.push({pos:vi,end:G.getTextPos(),kind:"reference",data:hr.fileName}),ul()}for(const hr of et){const vi=G.getTextPos(),Qr=hr.resolutionMode&&hr.resolutionMode!==(D==null?void 0:D.impliedNodeFormat)?`resolution-mode="${hr.resolutionMode===99?"import":"require"}"`:"";Yd(`/// `),ve&&ve.sections.push({pos:vi,end:G.getTextPos(),kind:hr.resolutionMode?hr.resolutionMode===99?"type-import":"type-require":"type",data:hr.fileName}),ul()}for(const hr of Ut){const vi=G.getTextPos();Yd(`/// `),ve&&ve.sections.push({pos:vi,end:G.getTextPos(),kind:"lib",data:hr.fileName}),ul()}}function Xd(S){const te=S.statements;$_(S),pn(S.statements,fl),It(S);const et=qc(te,Ut=>!Sp(Ut));Mi(S),so(S,te,1,void 0,et===-1?te.length:et),bg(S)}function G_(S){const te=ma(S);!(te&1024)&&S.pos!==S.expression.pos&&_f(S.expression.pos),_t(S.expression),!(te&2048)&&S.end!==S.expression.end&&Q_(S.expression.end)}function W4(S){ev(S,S.elements,528,void 0)}function Qd(S,te,et,Ut){let hr=!!te;for(let vi=0;vi=et.length||Qr===0;if(zs&&Ut&32768){f==null||f(et),g==null||g(et);return}Ut&15360&&(Un(O9e(Ut)),zs&&et&&_f(et.pos,!0)),f==null||f(et),zs?Ut&1&&!(ue&&(!te||D&&Gb(te,D)))?ul():Ut&256&&!(Ut&524288)&&qn():tv(S,te,et,Ut,hr,vi,Qr,et.hasTrailingComma,et),g==null||g(et),Ut&15360&&(zs&&et&&Q_(et.end),Un(F9e(Ut)))}function tv(S,te,et,Ut,hr,vi,Qr,Ji,zs){const ii=(Ut&262144)===0;let Rl=ii;const Cn=hg(te,et[vi],Ut);Cn?(ul(Cn),Rl=!1):Ut&256&&qn(),Ut&128&&md();const Ah=B9e(S,hr);let Y_,Cg,Nh=!1;for(let U1=0;U10?((Ut&131)===0&&(md(),Nh=!0),ul(fv),Rl=!1):Y_&&Ut&512&&qn()}if(Cg=Gr(W1),Rl){const fv=Bd(W1);_f(fv.pos)}else Rl=ii;fe=W1.pos,Ah(W1,S,hr,U1),Nh&&(Bp(),Nh=!1),Y_=W1}const ib=Y_?ma(Y_):0,dk=Bt||!!(ib&2048),Eg=Ji&&Ut&64&&Ut&16;Eg&&(Y_&&!dk?Ye(28,Y_.end,Un,Y_):Un(",")),Y_&&(te?te.end:-1)!==Y_.end&&Ut&60&&!dk&&Q_(Eg&&(zs==null?void 0:zs.end)?zs.end:Y_.end),Ut&128&&Bp(),Er(Cg);const v0=yg(te,et[vi+Qr-1],Ut,zs);v0?ul(v0):Ut&2097408&&qn()}function nv(S){G.writeLiteral(S)}function H4(S){G.writeStringLiteral(S)}function ok(S){G.write(S)}function W2(S,te){G.writeSymbol(S,te)}function Un(S){G.writePunctuation(S)}function mc(){G.writeTrailingSemicolon(";")}function Zi(S){G.writeKeyword(S)}function Rp(S){G.writeOperator(S)}function L1(S){G.writeParameter(S)}function Yd(S){G.writeComment(S)}function qn(){G.writeSpace(" ")}function rv(S){G.writeProperty(S)}function iv(S){G.nonEscapingWrite?G.nonEscapingWrite(S):G.write(S)}function ul(S=1){for(let te=0;te0)}function md(){G.increaseIndent()}function Bp(){G.decreaseIndent()}function q2(S,te,et,Ut){return pe?gg(S,et,te):tb(Ut,S,et,te,gg)}function sv(S,te){m&&m(S),te(ia(S.kind)),y&&y(S)}function gg(S,te,et){const Ut=ia(S);return te(Ut),et<0?et:et+Ut.length}function Ch(S,te,et){if(ma(S)&1)qn();else if(ue){const Ut=mp(S,te,et);Ut?ul(Ut):qn()}else ul()}function ck(S){const te=S.split(/\r\n?|\n/g),et=ple(te);for(const Ut of te){const hr=et?Ut.slice(et):Ut;hr.length&&(ul(),De(hr))}}function gd(S,te){S?(md(),ul(S)):te&&qn()}function m0(S,te){S&&Bp(),te&&Bp()}function hg(S,te,et){if(et&2||ue){if(et&65536)return 1;if(te===void 0)return!S||D&&Gb(S,D)?0:1;if(te.pos===fe||te.kind===12)return 0;if(D&&S&&!Rd(S.pos)&&!Do(te)&&(!te.parent||Ko(te.parent)===Ko(S)))return ue?g0(Ut=>X_e(te.pos,S.pos,D,Ut)):aO(S,te,D)?0:1;if(vg(te,et))return 1}return et&1?1:0}function XT(S,te,et){if(et&2||ue){if(S===void 0||te===void 0||te.kind===12)return 0;if(D&&!Do(S)&&!Do(te))return ue&&z1(S,te)?g0(Ut=>Mq(S,te,D,Ut)):!ue&&X_(S,te)?CD(S,te,D)?0:1:et&65536?1:0;if(vg(S,et)||vg(te,et))return 1}else if(Q3(te))return 1;return et&1?1:0}function yg(S,te,et,Ut){if(et&2||ue){if(et&65536)return 1;if(te===void 0)return!S||D&&Gb(S,D)?0:1;if(D&&S&&!Rd(S.pos)&&!Do(te)&&(!te.parent||te.parent===S)){if(ue){const hr=Ut&&!Rd(Ut.end)?Ut.end:te.end;return g0(vi=>Q_e(hr,S.end,D,vi))}return H_e(S,te,D)?0:1}if(vg(te,et))return 1}return et&1&&!(et&131072)?1:0}function g0(S){E.assert(!!ue);const te=S(!0);return te===0?S(!1):te}function H2(S,te){const et=ue&&hg(te,S,0);return et&&gd(et,!1),!!et}function QT(S,te){const et=ue&&yg(te,S,0,void 0);et&&ul(et)}function vg(S,te){if(Do(S)){const et=Q3(S);return et===void 0?(te&65536)!==0:et}return(te&65536)!==0}function mp(S,te,et){return ma(S)&262144?0:(S=hl(S),te=hl(te),et=hl(et),Q3(et)?1:D&&!Do(S)&&!Do(te)&&!Do(et)?ue?g0(Ut=>Mq(te,et,D,Ut)):CD(te,et,D)?0:1:0)}function Mc(S){return S.statements.length===0&&(!D||CD(S,S,D))}function hl(S){for(;S.kind===217&&Do(S);)S=S.expression;return S}function M1(S,te){if(Jo(S)||Pb(S))return $2(S);if(fa(S)&&S.textSourceNode)return M1(S.textSourceNode,te);const et=D,Ut=!!et&&!!S.parent&&!Do(S);if(Qm(S)){if(!Ut||Rn(S)!==Ko(et))return lr(S)}else if(sd(S)){if(!Ut||Rn(S)!==Ko(et))return H3(S)}else if(E.assertNode(S,Nb),!Ut)return S.text;return Yv(et,S,te)}function ku(S,te,et){if(S.kind===11&&S.textSourceNode){const hr=S.textSourceNode;if(we(hr)||Ei(hr)||Ou(hr)||sd(hr)){const vi=Ou(hr)?hr.text:M1(hr);return et?`"${yq(vi)}"`:te||ma(S)&16777216?`"${Wx(vi)}"`:`"${mD(vi)}"`}else return ku(hr,te,et)}const Ut=(te?1:0)|(et?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return Dle(S,D,Ut)}function $_(S){S&&ma(S)&1048576||(oe.push(_e),_e=0,j.push(ee),ee=void 0,X.push(H))}function bg(S){S&&ma(S)&1048576||(_e=oe.pop(),ee=j.pop(),H=X.pop())}function gp(S){(!H||H===jo(X))&&(H=new Set),H.add(S)}function R1(S,te){R.push(Z),Z=S,Q.push(H),ne=te}function Tg(){Z=R.pop(),ne=Q.pop()}function G2(S){(!ne||ne===jo(Q))&&(ne=new Set),ne.add(S)}function fl(S){if(!!S)switch(S.kind){case 241:pn(S.statements,fl);break;case 256:case 254:case 246:case 247:fl(S.statement);break;case 245:fl(S.thenStatement),fl(S.elseStatement);break;case 248:case 250:case 249:fl(S.initializer),fl(S.statement);break;case 255:fl(S.caseBlock);break;case 269:pn(S.clauses,fl);break;case 296:case 297:pn(S.statements,fl);break;case 258:fl(S.tryBlock),fl(S.catchClause),fl(S.finallyBlock);break;case 299:fl(S.variableDeclaration),fl(S.block);break;case 243:fl(S.declarationList);break;case 261:pn(S.declarations,fl);break;case 260:case 169:case 208:case 263:Im(S.name);break;case 262:Im(S.name),ma(S)&1048576&&(pn(S.parameters,fl),fl(S.body));break;case 206:case 207:pn(S.elements,fl);break;case 272:fl(S.importClause);break;case 273:Im(S.name),fl(S.namedBindings);break;case 274:Im(S.name);break;case 280:Im(S.name);break;case 275:pn(S.elements,fl);break;case 276:Im(S.propertyName||S.name);break}}function h0(S){if(!!S)switch(S.kind){case 303:case 304:case 172:case 174:case 177:case 178:Im(S.name);break}}function Im(S){S&&(Jo(S)||Pb(S)?$2(S):Ps(S)&&fl(S))}function $2(S){const te=S.emitNode.autoGenerate;if((te.flags&7)===4)return Qo(vA(S),Ei(S),te.flags,te.prefix,te.suffix);{const et=te.id;return U[et]||(U[et]=ZT(S))}}function Qo(S,te,et,Ut,hr){const vi=Ra(S),Qr=te?V:M;return Qr[vi]||(Qr[vi]=Sf(S,te,et!=null?et:0,_4(Ut,$2),_4(hr)))}function xg(S,te){return B1(S)&&!YT(S,te)&&!Y.has(S)}function YT(S,te){return te?!!(ne!=null&&ne.has(S)):!!(H!=null&&H.has(S))}function B1(S,te){return D?y9(D,S,r):!0}function lk(S,te){for(let et=te;et&&i2(et,te);et=et.nextContainer)if(fm(et)&&et.locals){const Ut=et.locals.get(Ho(S));if(Ut&&Ut.flags&3257279)return!1}return!0}function r_(S){var te;switch(S){case"":return _e;case"#":return Z;default:return(te=ee==null?void 0:ee.get(S))!=null?te:0}}function y0(S,te){switch(S){case"":_e=te;break;case"#":Z=te;break;default:ee!=null||(ee=new Map),ee.set(S,te);break}}function Eh(S,te,et,Ut,hr){Ut.length>0&&Ut.charCodeAt(0)===35&&(Ut=Ut.slice(1));const vi=Ly(et,Ut,"",hr);let Qr=r_(vi);if(S&&!(Qr&S)){const zs=Ly(et,Ut,S===268435456?"_i":"_n",hr);if(xg(zs,et))return Qr|=S,et?G2(zs):te&&gp(zs),y0(vi,Qr),zs}for(;;){const Ji=Qr&268435455;if(Qr++,Ji!==8&&Ji!==13){const zs=Ji<26?"_"+String.fromCharCode(97+Ji):"_"+(Ji-26),ii=Ly(et,Ut,zs,hr);if(xg(ii,et))return et?G2(ii):te&&gp(ii),y0(vi,Qr),ii}}}function Sg(S,te=xg,et,Ut,hr,vi,Qr){if(S.length>0&&S.charCodeAt(0)===35&&(S=S.slice(1)),vi.length>0&&vi.charCodeAt(0)===35&&(vi=vi.slice(1)),et){const zs=Ly(hr,vi,S,Qr);if(te(zs,hr))return hr?G2(zs):Ut?gp(zs):Y.add(zs),zs}S.charCodeAt(S.length-1)!==95&&(S+="_");let Ji=1;for(;;){const zs=Ly(hr,vi,S+Ji,Qr);if(te(zs,hr))return hr?G2(zs):Ut?gp(zs):Y.add(zs),zs;Ji++}}function lf(S){return Sg(S,B1,!0,!1,!1,"","")}function X2(S){const te=M1(S.name);return lk(te,Hr(S,fm))?te:Sg(te,xg,!1,!1,!1,"","")}function av(S){const te=x6(S),et=fa(te)?Nle(te.text):"module";return Sg(et,xg,!1,!1,!1,"","")}function j1(){return Sg("default",xg,!1,!1,!1,"","")}function ov(){return Sg("class",xg,!1,!1,!1,"","")}function cv(S,te,et,Ut){return we(S.name)?Qo(S.name,te):Eh(0,!1,te,et,Ut)}function Sf(S,te,et,Ut,hr){switch(S.kind){case 80:case 81:return Sg(M1(S),xg,!!(et&16),!!(et&8),te,Ut,hr);case 267:case 266:return E.assert(!Ut&&!hr&&!te),X2(S);case 272:case 278:return E.assert(!Ut&&!hr&&!te),av(S);case 262:case 263:{E.assert(!Ut&&!hr&&!te);const vi=S.name;return vi&&!Jo(vi)?Sf(vi,!1,et,Ut,hr):j1()}case 277:return E.assert(!Ut&&!hr&&!te),j1();case 231:return E.assert(!Ut&&!hr&&!te),ov();case 174:case 177:case 178:return cv(S,te,Ut,hr);case 167:return Eh(0,!0,te,Ut,hr);default:return Eh(0,!1,te,Ut,hr)}}function ZT(S){const te=S.emitNode.autoGenerate,et=_4(te.prefix,$2),Ut=_4(te.suffix);switch(te.flags&7){case 1:return Eh(0,!!(te.flags&8),Ei(S),et,Ut);case 2:return E.assertNode(S,we),Eh(268435456,!!(te.flags&8),!1,et,Ut);case 3:return Sg(lr(S),te.flags&32?B1:xg,!!(te.flags&16),!!(te.flags&8),Ei(S),et,Ut)}return E.fail(`Unsupported GeneratedIdentifierKind: ${E.formatEnum(te.flags&7,PI,!0)}.`)}function Q2(S,te){const et=W(2,S,te),Ut=ot,hr=Jt,vi=Pt;KT(te),et(S,te),lv(te,Ut,hr,vi)}function KT(S){const te=ma(S),et=Bd(S);zu(S,te,et.pos,et.end),te&4096&&(Bt=!0)}function lv(S,te,et,Ut){const hr=ma(S),vi=Bd(S);hr&4096&&(Bt=!1),Zd(S,hr,vi.pos,vi.end,te,et,Ut);const Qr=ffe(S);Qr&&Zd(S,hr,Qr.pos,Qr.end,te,et,Ut)}function zu(S,te,et,Ut){pi(),xn=!1;const hr=et<0||(te&1024)!==0||S.kind===12,vi=Ut<0||(te&2048)!==0||S.kind===12;(et>0||Ut>0)&&et!==Ut&&(hr||Y2(et,S.kind!==359),(!hr||et>=0&&(te&1024)!==0)&&(ot=et),(!vi||Ut>=0&&(te&2048)!==0)&&(Jt=Ut,S.kind===261&&(Pt=Ut))),pn(H6(S),J1),ki()}function Zd(S,te,et,Ut,hr,vi,Qr){pi();const Ji=Ut<0||(te&2048)!==0||S.kind===12;pn(YD(S),_k),(et>0||Ut>0)&&et!==Ut&&(ot=hr,Jt=vi,Pt=Qr,!Ji&&S.kind!==359&&_v(Ut)),ki()}function J1(S){(S.hasLeadingNewline||S.kind===2)&&G.writeLine(),Ma(S),S.hasTrailingNewLine||S.kind===2?G.writeLine():G.writeSpace(" ")}function _k(S){G.isAtStartOfLine()||G.writeSpace(" "),Ma(S),S.hasTrailingNewLine&&G.writeLine()}function Ma(S){const te=vr(S),et=S.kind===3?cw(te):void 0;O6(te,et,G,0,te.length,k)}function vr(S){return S.kind===3?`/*${S.text}*/`:`//${S.text}`}function Cu(S,te,et){pi();const{pos:Ut,end:hr}=te,vi=ma(S),Qr=Ut<0||(vi&1024)!==0,Ji=Bt||hr<0||(vi&2048)!==0;Qr||K2(te),ki(),vi&4096&&!Bt?(Bt=!0,et(S),Bt=!1):et(S),pi(),Ji||(Y2(te.end,!0),xn&&!G.isAtStartOfLine()&&G.writeLine()),ki()}function X_(S,te){return S=Ko(S),S.parent&&S.parent===Ko(te).parent}function z1(S,te){if(te.pos-1&&Ut.indexOf(te)===hr+1}function Y2(S,te){xn=!1,te?S===0&&(D==null?void 0:D.isDeclarationFile)?Uo(S,ex):Uo(S,Vu):S===0&&Uo(S,Z2)}function Z2(S,te,et,Ut,hr){eb(S,te)&&Vu(S,te,et,Ut,hr)}function ex(S,te,et,Ut,hr){eb(S,te)||Vu(S,te,et,Ut,hr)}function wh(S,te){return e.onlyPrintJsDocStyle?kG(S,te)||v9(S,te):!0}function Vu(S,te,et,Ut,hr){!D||!wh(D.text,S)||(xn||(A_e($e(),G,hr,S),xn=!0),_u(S),O6(D.text,$e(),G,S,te,k),_u(te),Ut?G.writeLine():et===3&&G.writeSpace(" "))}function Q_(S){Bt||S===-1||Y2(S,!0)}function _v(S){Jf(S,uv)}function uv(S,te,et,Ut){!D||!wh(D.text,S)||(G.isAtStartOfLine()||G.writeSpace(" "),_u(S),O6(D.text,$e(),G,S,te,k),_u(te),Ut&&G.writeLine())}function _f(S,te,et){Bt||(pi(),Jf(S,te?uv:et?kg:tx),ki())}function kg(S,te,et){!D||(_u(S),O6(D.text,$e(),G,S,te,k),_u(te),et===2&&G.writeLine())}function tx(S,te,et,Ut){!D||(_u(S),O6(D.text,$e(),G,S,te,k),_u(te),Ut?G.writeLine():G.writeSpace(" "))}function Uo(S,te){D&&(ot===-1||S!==ot)&&(uk(S)?zf(te):uw(D.text,S,te,S))}function Jf(S,te){D&&(Jt===-1||S!==Jt&&S!==Pt)&&fw(D.text,S,te)}function uk(S){return _r!==void 0&&ka(_r).nodePos===S}function zf(S){if(!D)return;const te=ka(_r).detachedCommentEndPos;_r.length-1?_r.pop():_r=void 0,uw(D.text,te,S,te)}function K2(S){const te=D&&P_e(D.text,$e(),G,Dh,S,k,Bt);te&&(_r?_r.push(te):_r=[te])}function Dh(S,te,et,Ut,hr,vi){!D||!wh(D.text,Ut)||(_u(Ut),O6(S,te,et,Ut,hr,vi),_u(hr))}function eb(S,te){return!!D&&EW(D.text,S,te)}function Om(S){return S.parsedSourceMap===void 0&&S.sourceMapText!==void 0&&(S.parsedSourceMap=R$(S.sourceMapText)||!1),S.parsedSourceMap||void 0}function uf(S,te){const et=W(3,S,te);gc(te),et(S,te),fk(te)}function gc(S){const te=ma(S),et=wy(S);if(rW(S)){E.assertIsDefined(S.parent,"UnparsedNodes must have parent pointers");const Ut=Om(S.parent);Ut&&Pe&&Pe.appendSourceMap(G.getLine(),G.getColumn(),Ut,S.parent.sourceMapPath,S.parent.getLineAndCharacterOfPosition(S.pos),S.parent.getLineAndCharacterOfPosition(S.end))}else{const Ut=et.source||Ge;S.kind!==359&&(te&32)===0&&et.pos>=0&&Fm(et.source||Ge,V1(Ut,et.pos)),te&128&&(pe=!0)}}function fk(S){const te=ma(S),et=wy(S);rW(S)||(te&128&&(pe=!1),S.kind!==359&&(te&64)===0&&et.end>=0&&Fm(et.source||Ge,et.end))}function V1(S,te){return S.skipTrivia?S.skipTrivia(te):_a(S.text,te)}function _u(S){if(pe||Rd(S)||rb(Ge))return;const{line:te,character:et}=yo(Ge,S);Pe.addMapping(G.getLine(),G.getColumn(),tt,te,et,void 0)}function Fm(S,te){if(S!==Ge){const et=Ge,Ut=tt;pk(S),_u(te),nb(et,Ut)}else _u(te)}function tb(S,te,et,Ut,hr){if(pe||S&&j9(S))return hr(te,et,Ut);const vi=S&&S.emitNode,Qr=vi&&vi.flags||0,Ji=vi&&vi.tokenSourceMapRanges&&vi.tokenSourceMapRanges[te],zs=Ji&&Ji.source||Ge;return Ut=V1(zs,Ji?Ji.pos:Ut),(Qr&256)===0&&Ut>=0&&Fm(zs,Ut),Ut=hr(te,et,Ut),Ji&&(Ut=Ji.end),(Qr&512)===0&&Ut>=0&&Fm(zs,Ut),Ut}function pk(S){if(!pe){if(Ge=S,S===mt){tt=Je;return}rb(S)||(tt=Pe.addSource(S.fileName),e.inlineSources&&Pe.setSourceContent(tt,S.text),mt=S,Je=tt)}}function nb(S,te){Ge=S,tt=te}function rb(S){return Hc(S.fileName,".json")}}function I9e(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function O9e(e){return mX[e&15360][0]}function F9e(e){return mX[e&15360][1]}function L9e(e,t,r,i){t(e)}function M9e(e,t,r,i){t(e,r.select(i))}function R9e(e,t,r,i){t(e,r)}function B9e(e,t){return e.length===1?L9e:typeof t=="object"?M9e:R9e}var mX,jL,gX,w2,hX,s5,j9e=Rt({"src/compiler/emitter.ts"(){Ls(),Ls(),Vv(),mX=I9e(),jL={hasGlobalName:ks,getReferencedExportContainer:ks,getReferencedImportDeclaration:ks,getReferencedDeclarationWithCollidingName:ks,isDeclarationWithCollidingName:ks,isValueAliasDeclaration:ks,isReferencedAliasDeclaration:ks,isTopLevelValueImportEqualsWithEntityName:ks,getNodeCheckFlags:ks,isDeclarationVisible:ks,isLateBound:e=>!1,collectLinkedAliases:ks,isImplementationOfOverload:ks,isRequiredInitializedParameter:ks,isOptionalUninitializedParameterProperty:ks,isExpandoFunctionDeclaration:ks,getPropertiesOfContainerFunction:ks,createTypeOfDeclaration:ks,createReturnTypeOfSignatureDeclaration:ks,createTypeOfExpression:ks,createLiteralConstValue:ks,isSymbolAccessible:ks,isEntityNameVisible:ks,getConstantValue:ks,getReferencedValueDeclaration:ks,getReferencedValueDeclarations:ks,getTypeReferenceSerializationKind:ks,isOptionalParameter:ks,moduleExportsSomeValue:ks,isArgumentsLocalBinding:ks,getExternalModuleFileFromDeclaration:ks,getTypeReferenceDirectivesForEntityName:ks,getTypeReferenceDirectivesForSymbol:ks,isLiteralConstDeclaration:ks,getJsxFactoryEntity:ks,getJsxFragmentFactoryEntity:ks,getAllAccessorDeclarations:ks,getSymbolOfExternalModuleSpecifier:ks,isBindingCapturedByNode:ks,getDeclarationStatementsForSourceFile:ks,isImportRequiredByAugmentation:ks},gX=wu(()=>Ry({})),w2=wu(()=>Ry({removeComments:!0})),hX=wu(()=>Ry({removeComments:!0,neverAsciiEscape:!0})),s5=wu(()=>Ry({removeComments:!0,omitTrailingSemicolon:!0}))}});function Bge(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,a=Ql(r);return{useCaseSensitiveFileNames:r,fileExists:k,readFile:(R,Z)=>e.readFile(R,Z),directoryExists:e.directoryExists&&C,getDirectories:D,readDirectory:M,createDirectory:e.createDirectory&&N,writeFile:e.writeFile&&x,addOrDeleteFileOrDirectory:U,addOrDeleteFile:Y,clearCache:ee,realpath:e.realpath&&V};function o(R){return ho(R,t,a)}function l(R){return i.get(D_(R))}function u(R){const Z=l(Ti(R));return Z&&(Z.sortedAndCanonicalizedFiles||(Z.sortedAndCanonicalizedFiles=Z.files.map(a).sort(),Z.sortedAndCanonicalizedDirectories=Z.directories.map(a).sort()),Z)}function f(R){return Jl(ba(R))}function g(R,Z){var oe;if(!e.realpath||D_(o(e.realpath(R)))===Z){const _e={files:an(e.readDirectory(R,void 0,void 0,["*.*"]),f)||[],directories:e.getDirectories(R)||[]};return i.set(D_(Z),_e),_e}if((oe=e.directoryExists)!=null&&oe.call(e,R))return i.set(Z,!1),!1}function m(R,Z){Z=D_(Z);const oe=l(Z);if(oe)return oe;try{return g(R,Z)}catch{E.assert(!i.has(D_(Z)));return}}function y(R,Z){return Gh(R,Z,Zo,w_)>=0}function x(R,Z,oe){const _e=o(R),X=u(_e);return X&&j(X,f(R),!0),e.writeFile(R,Z,oe)}function k(R){const Z=o(R),oe=u(Z);return oe&&y(oe.sortedAndCanonicalizedFiles,a(f(R)))||e.fileExists(R)}function C(R){const Z=o(R);return i.has(D_(Z))||e.directoryExists(R)}function N(R){const Z=o(R),oe=u(Z);if(oe){const _e=f(R),X=a(_e),H=oe.sortedAndCanonicalizedDirectories;Hh(H,X,w_)&&oe.directories.push(_e)}e.createDirectory(R)}function D(R){const Z=o(R),oe=m(R,Z);return oe?oe.directories.slice():e.getDirectories(R)}function M(R,Z,oe,_e,X){const H=o(R),Q=m(R,H);let ne;if(Q!==void 0)return Qq(R,Z,oe,_e,r,t,X,ue,V);return e.readDirectory(R,Z,oe,_e,X);function ue(G){const Ne=o(G);if(Ne===H)return Q||fe(G,Ne);const De=m(G,Ne);return De!==void 0?De||fe(G,Ne):OO}function fe(G,Ne){if(ne&&Ne===H)return ne;const De={files:an(e.readDirectory(G,void 0,void 0,["*.*"]),f)||Ve,directories:e.getDirectories(G)||Ve};return Ne===H&&(ne=De),De}}function V(R){return e.realpath?e.realpath(R):R}function U(R,Z){if(l(Z)!==void 0){ee();return}const _e=u(Z);if(!_e)return;if(!e.directoryExists){ee();return}const X=f(R),H={fileExists:e.fileExists(Z),directoryExists:e.directoryExists(Z)};return H.directoryExists||y(_e.sortedAndCanonicalizedDirectories,a(X))?ee():j(_e,X,H.fileExists),H}function Y(R,Z,oe){if(oe===1)return;const _e=u(Z);_e&&j(_e,f(R),oe===0)}function j(R,Z,oe){const _e=R.sortedAndCanonicalizedFiles,X=a(Z);if(oe)Hh(_e,X,w_)&&R.files.push(Z);else{const H=Gh(_e,X,Zo,w_);if(H>=0){_e.splice(H,1);const Q=R.files.findIndex(ne=>a(ne)===X);R.files.splice(Q,1)}}}function ee(){i.clear()}}function yX(e,t,r,i,a){var o;const l=Bv(((o=t==null?void 0:t.configFile)==null?void 0:o.extendedSourceFiles)||Ve,a);r.forEach((u,f)=>{l.has(f)||(u.projects.delete(e),u.close())}),l.forEach((u,f)=>{const g=r.get(f);g?g.projects.add(e):r.set(f,{projects:new Set([e]),watcher:i(u,f),close:()=>{const m=r.get(f);!m||m.projects.size!==0||(m.watcher.close(),r.delete(f))}})})}function jge(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function vX(e,t,r){!e.delete(t)||e.forEach(({extendedResult:i},a)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(l=>r(l)===t)&&vX(e,a,r)})}function J9e(e,t,r){const i=new Map(e);M6(t,i,{createNewValue:r,onDeleteValue:vm})}function Jge(e,t,r){const i=e.getMissingFilePaths(),a=Bv(i,Zo,oy);M6(t,a,{createNewValue:r,onDeleteValue:vm})}function JL(e,t,r){M6(e,t,{createNewValue:i,onDeleteValue:Em,onExistingValue:a});function i(o,l){return{watcher:r(o,l),flags:l}}function a(o,l,u){o.flags!==l&&(o.watcher.close(),e.set(u,i(u,l)))}}function zL({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:a,program:o,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:f,writeLog:g,toPath:m}){const y=eQ(r);if(!y)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=y,r===e)return!1;if($k(r)&&!Tue(t,a,l))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(pde(t,a.configFile.configFileSpecs,ms(Ti(i),u),f,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||Ao(a)||a.outDir)return!1;if(ou(r)){if(a.declarationDir)return!1}else if(!Gc(r,q6))return!1;const x=gu(r),k=Ds(o)?void 0:z9e(o)?o.getProgramOrUndefined():o,C=!k&&!Ds(o)?o:void 0;if(N(x+".ts")||N(x+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function N(D){return k?!!k.getSourceFileByPath(D):C?C.getState().fileInfos.has(D):!!Or(o,M=>m(M)===D)}}function z9e(e){return!!e.getState}function zge(e,t){return e?e.isEmittedFile(t):!1}function Vge(e,t,r,i){$oe(t===2?r:co);const a={watchFile:(N,D,M,V)=>e.watchFile(N,D,M,V),watchDirectory:(N,D,M,V)=>e.watchDirectory(N,D,(M&1)!==0,V)},o=t!==0?{watchFile:k("watchFile"),watchDirectory:k("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:x}:o||a,u=t===2?m:g5;return{watchFile:f("watchFile"),watchDirectory:f("watchDirectory")};function f(N){return(D,M,V,U,Y,j)=>{var ee;return UF(D,N==="watchFile"?U==null?void 0:U.excludeFiles:U==null?void 0:U.excludeDirectories,g(),((ee=e.getCurrentDirectory)==null?void 0:ee.call(e))||"")?u(D,V,U,Y,j):l[N].call(void 0,D,M,V,U,Y,j)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(N,D,M,V,U){return r(`ExcludeWatcher:: Added:: ${C(N,D,M,V,U,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${C(N,D,M,V,U,i)}`)}}function y(N,D,M,V,U,Y){r(`FileWatcher:: Added:: ${C(N,M,V,U,Y,i)}`);const j=o.watchFile(N,D,M,V,U,Y);return{close:()=>{r(`FileWatcher:: Close:: ${C(N,M,V,U,Y,i)}`),j.close()}}}function x(N,D,M,V,U,Y){const j=`DirectoryWatcher:: Added:: ${C(N,M,V,U,Y,i)}`;r(j);const ee=Wo(),R=o.watchDirectory(N,D,M,V,U,Y),Z=Wo()-ee;return r(`Elapsed:: ${Z}ms ${j}`),{close:()=>{const oe=`DirectoryWatcher:: Close:: ${C(N,M,V,U,Y,i)}`;r(oe);const _e=Wo();R.close();const X=Wo()-_e;r(`Elapsed:: ${X}ms ${oe}`)}}}function k(N){return(D,M,V,U,Y,j)=>a[N].call(void 0,D,(...ee)=>{const R=`${N==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ee[0]} ${ee[1]!==void 0?ee[1]:""}:: ${C(D,V,U,Y,j,i)}`;r(R);const Z=Wo();M.call(void 0,...ee);const oe=Wo()-Z;r(`Elapsed:: ${oe}ms ${R}`)},V,U,Y,j)}function C(N,D,M,V,U,Y){return`WatchInfo: ${N} ${D} ${JSON.stringify(M)} ${Y?Y(V,U):U===void 0?V:`${V} ${U}`}`}}function a5(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Em(e){e.watcher.close()}var bX,TX,V9e=Rt({"src/compiler/watchUtilities.ts"(){Ls(),bX=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(bX||{}),TX=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(TX||{})}});function Uge(e,t,r="tsconfig.json"){return Vg(e,i=>{const a=Ii(i,r);return t(a)?a:void 0})}function VL(e,t){const r=Ti(t),i=Ad(e)?e:Ii(r,e);return ba(i)}function Wge(e,t,r){let i;return pn(e,o=>{const l=rw(o,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let f=0;f{let l;try{go("beforeIORead"),l=e(i,t().charset),go("afterIORead"),Gu("I/O Read","beforeIORead","afterIORead")}catch(u){o&&o(u.message),l=""}return l!==void 0?SA(i,l,a,r):void 0}}function SX(e,t,r){return(i,a,o,l)=>{try{go("beforeIOWrite"),kq(i,a,o,e,t,r),go("afterIOWrite"),Gu("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function kX(e,t,r=jl){const i=new Map,a=Ql(r.useCaseSensitiveFileNames);function o(m){return i.has(m)?!0:(g.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return Ti(ba(r.getExecutingFilePath()))}const u=K0(e),f=r.realpath&&(m=>r.realpath(m)),g={getSourceFile:xX(m=>g.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>Ii(l(),GI(m)),writeFile:SX((m,y,x)=>r.writeFile(m,y,x),m=>(g.createDirectory||r.createDirectory)(m),m=>o(m)),getCurrentDirectory:wu(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:a,getNewLine:()=>u,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+u),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:f,readDirectory:(m,y,x,k,C)=>r.readDirectory(m,y,x,k,C),createDirectory:m=>r.createDirectory(m),createHash:Hs(r,r.createHash)};return g}function o5(e,t,r){const i=e.readFile,a=e.fileExists,o=e.directoryExists,l=e.createDirectory,u=e.writeFile,f=new Map,g=new Map,m=new Map,y=new Map,x=N=>{const D=t(N),M=f.get(D);return M!==void 0?M!==!1?M:void 0:k(D,N)},k=(N,D)=>{const M=i.call(e,D);return f.set(N,M!==void 0?M:!1),M};e.readFile=N=>{const D=t(N),M=f.get(D);return M!==void 0?M!==!1?M:void 0:!Hc(N,".json")&&!Age(N)?i.call(e,N):k(D,N)};const C=r?(N,D,M,V)=>{const U=t(N),Y=typeof D=="object"?D.impliedNodeFormat:void 0,j=y.get(Y),ee=j==null?void 0:j.get(U);if(ee)return ee;const R=r(N,D,M,V);return R&&(ou(N)||Hc(N,".json"))&&y.set(Y,(j||new Map).set(U,R)),R}:void 0;return e.fileExists=N=>{const D=t(N),M=g.get(D);if(M!==void 0)return M;const V=a.call(e,N);return g.set(D,!!V),V},u&&(e.writeFile=(N,D,...M)=>{const V=t(N);g.delete(V);const U=f.get(V);U!==void 0&&U!==D?(f.delete(V),y.forEach(Y=>Y.delete(V))):C&&y.forEach(Y=>{const j=Y.get(V);j&&j.text!==D&&Y.delete(V)}),u.call(e,N,D,...M)}),o&&(e.directoryExists=N=>{const D=t(N),M=m.get(D);if(M!==void 0)return M;const V=o.call(e,N);return m.set(D,!!V),V},l&&(e.createDirectory=N=>{const D=t(N);m.delete(D),l.call(e,N)})),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:C,readFileWithCache:x}}function U9e(e,t,r){let i;return i=Fr(i,e.getConfigFileParsingDiagnostics()),i=Fr(i,e.getOptionsDiagnostics(r)),i=Fr(i,e.getSyntacticDiagnostics(t,r)),i=Fr(i,e.getGlobalDiagnostics(r)),i=Fr(i,e.getSemanticDiagnostics(t,r)),wp(e.getCompilerOptions())&&(i=Fr(i,e.getDeclarationDiagnostics(t,r))),Zk(i||Ve)}function W9e(e,t){let r="";for(const i of e)r+=CX(i,t);return r}function CX(e,t){const r=`${EI(e)} TS${e.code}: ${v1(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:a}=yo(e.file,e.start),o=e.file.fileName;return`${BC(o,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${a+1}): `+r}return r}function Hge(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return E.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function D2(e,t){return t+e+RX}function Gge(e,t,r,i,a,o){const{line:l,character:u}=yo(e,t),{line:f,character:g}=yo(e,t+r),m=yo(e,e.text.length).line,y=f-l>=4;let x=(f+1+"").length;y&&(x=Math.max(BX.length,x));let k="";for(let C=l;C<=f;C++){k+=o.getNewLine(),y&&l+1r.getCanonicalFileName(f)):e.fileName;let u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${a+1}`,"\x1B[93m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u}function $ge(e,t){let r="";for(const i of e){if(i.file){const{file:a,start:o}=i;r+=EX(a,o,t),r+=" - "}if(r+=D2(EI(i),Hge(i.category)),r+=D2(` TS${i.code}: `,"\x1B[90m"),r+=v1(i.messageText,t.getNewLine()),i.file&&i.code!==p.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=Gge(i.file,i.start,i.length,"",Hge(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:a,start:o,length:l,messageText:u}of i.relatedInformation)a&&(r+=t.getNewLine(),r+=Kge+EX(a,o,t),r+=Gge(a,o,l,jX,"\x1B[96m",t)),r+=t.getNewLine(),r+=jX+v1(u,t.getNewLine())}r+=t.getNewLine()}return r}function v1(e,t,r=0){if(Gs(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let a=0;aT8(o,e,r,i,a,t,l)}}function UL(e){return Gs(e)?e:Zp(e.fileName)}function WL(e,t,r,i,a){return{nameAndMode:f5,resolve:(o,l)=>a$(o,e,r,i,t,a,l)}}function l5(e,t,r,i,a,o,l,u){if(e.length===0)return Ve;const f=[],g=new Map,m=u(t,r,i,o,l);for(const y of e){const x=m.nameAndMode.getName(y),k=m.nameAndMode.getMode(y,a),C=b8(x,k);let N=g.get(C);N||g.set(C,N=m.resolve(x,k)),f.push(N)}return f}function Xge(e,t){return _5(void 0,e,(r,i)=>r&&t(r,i))}function _5(e,t,r,i){let a;return o(e,t,void 0);function o(l,u,f){if(i){const g=i(l,f);if(g)return g}return pn(u,(g,m)=>{if(g&&(a==null?void 0:a.has(g.sourceFile.path)))return;const y=r(g,f,m);return y||!g?y:((a||(a=new Set)).add(g.sourceFile.path),o(g.commandLine.projectReferences,g.references,g))})}}function qL(e,t,r){const i=e.configFilePath?Ti(e.configFilePath):t;return Ii(i,`__lib_node_modules_lookup_${r}__.ts`)}function Qge(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function Yge(e){const t=Zp(e.fileName),r=WF.get(t);return{libName:t,libFileName:r}}function By(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function b4(e){return e.pos!==void 0}function F8(e,t){var r,i,a,o,l,u;const f=E.checkDefined(e(t.file)),{kind:g,index:m}=t;let y,x,k,C;switch(g){case 3:const N=XL(f,m);if(k=(a=(i=(r=f.resolvedModules)==null?void 0:r.get(N.text,wX(f,m)))==null?void 0:i.resolvedModule)==null?void 0:a.packageId,N.pos===-1)return{file:f,packageId:k,text:N.text};y=_a(f.text,N.pos),x=N.end;break;case 4:({pos:y,end:x}=f.referencedFiles[m]);break;case 5:({pos:y,end:x,resolutionMode:C}=f.typeReferenceDirectives[m]),k=(u=(l=(o=f.resolvedTypeReferenceDirectiveNames)==null?void 0:o.get(Zp(f.typeReferenceDirectives[m].fileName),C||f.impliedNodeFormat))==null?void 0:l.resolvedTypeReferenceDirective)==null?void 0:u.packageId;break;case 7:({pos:y,end:x}=f.libReferenceDirectives[m]);break;default:return E.assertNever(g)}return{file:f,pos:y,end:x,packageId:k}}function PX(e,t,r,i,a,o,l,u,f,g){if(!e||(u==null?void 0:u())||!Cd(e.getRootFileNames(),t))return!1;let m;if(!Cd(e.getProjectReferences(),g,C)||e.getSourceFiles().some(x)||e.getMissingFilePaths().some(a))return!1;const y=e.getCompilerOptions();if(!Bq(y,r)||e.resolvedLibReferences&&Au(e.resolvedLibReferences,(D,M)=>l(M)))return!1;if(y.configFile&&r.configFile)return y.configFile.text===r.configFile.text;return!0;function x(D){return!k(D)||o(D.path)}function k(D){return D.version===i(D.resolvedPath,D.fileName)}function C(D,M,V){return xW(D,M)&&N(e.getResolvedProjectReferences()[V],D)}function N(D,M){if(D){if(ys(m,D))return!0;const U=L8(M),Y=f(U);return!Y||D.commandLine.options.configFile!==Y.options.configFile||!Cd(D.commandLine.fileNames,Y.fileNames)?!1:((m||(m=[])).push(D),!pn(D.references,(j,ee)=>!N(j,D.commandLine.projectReferences[ee])))}const V=L8(M);return!f(V)}}function mT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function u5(e,t,r,i){const a=IX(e,t,r,i);return typeof a=="object"?a.impliedNodeFormat:a}function IX(e,t,r,i){switch(Sc(i)){case 3:case 99:return Gc(e,[".d.mts",".mts",".mjs"])?99:Gc(e,[".d.cts",".cts",".cjs"])?1:Gc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?a():void 0;default:return}function a(){const o=sL(t,r,i),l=[];o.failedLookupLocations=l,o.affectingLocations=l;const u=aL(e,o);return{impliedNodeFormat:(u==null?void 0:u.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function q9e(e,t){return e?l6(e.getCompilerOptions(),t,GF):!1}function H9e(e,t,r,i,a,o){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:a,typeScriptVersion:o}}function HL(e,t,r,i,a){var o,l,u,f,g,m,y,x,k,C,N,D,M,V,U,Y;const j=Ds(e)?H9e(e,t,r,i,a):e,{rootNames:ee,options:R,configFileParsingDiagnostics:Z,projectReferences:oe,typeScriptVersion:_e}=j;let{oldProgram:X}=j;const H=wu(()=>is("ignoreDeprecations",p.Invalid_value_for_ignoreDeprecations));let Q,ne,ue,fe,G,Ne,De;const Xe=new Map;let ve=Xf();const be={},xe={};let rt=_T(),ct,pe,Pe,Ge,tt,mt;const Je=typeof R.maxNodeModuleJsDepth=="number"?R.maxNodeModuleJsDepth:0;let ot=0;const Jt=new Map,Pt=new Map;(o=li)==null||o.push(li.Phase.Program,"createProgram",{configFilePath:R.configFilePath,rootDir:R.rootDir},!0),go("beforeProgram");const bt=j.host||qge(R),_r=$L(bt);let xn=R.noLib;const Bt=wu(()=>bt.getDefaultLibFileName(R)),er=bt.getDefaultLibLocation?bt.getDefaultLibLocation():Ti(Bt()),xr=N6(),pi=bt.getCurrentDirectory(),ki=M3(R),Nr=PD(R,ki),pt=new Map;let ur,hn,Ct;const cn=bt.hasInvalidatedResolutions||j0;bt.resolveModuleNameLiterals?(Ct=bt.resolveModuleNameLiterals.bind(bt),hn=(l=bt.getModuleResolutionCache)==null?void 0:l.call(bt)):bt.resolveModuleNames?(Ct=(Ee,je,Ye,Mt,rn,un)=>bt.resolveModuleNames(Ee.map(AX),je,un==null?void 0:un.map(AX),Ye,Mt,rn).map(nn=>nn?nn.extension!==void 0?{resolvedModule:nn}:{resolvedModule:{...nn,extension:Qb(nn.resolvedFileName)}}:JX),hn=(u=bt.getModuleResolutionCache)==null?void 0:u.call(bt)):(hn=m4(pi,qr,R),Ct=(Ee,je,Ye,Mt,rn)=>l5(Ee,je,Ye,Mt,rn,bt,hn,NX));let Pn;if(bt.resolveTypeReferenceDirectiveReferences)Pn=bt.resolveTypeReferenceDirectiveReferences.bind(bt);else if(bt.resolveTypeReferenceDirectives)Pn=(Ee,je,Ye,Mt,rn)=>bt.resolveTypeReferenceDirectives(Ee.map(UL),je,Ye,Mt,rn==null?void 0:rn.impliedNodeFormat).map(un=>({resolvedTypeReferenceDirective:un}));else{const Ee=nL(pi,qr,void 0,hn==null?void 0:hn.getPackageJsonInfoCache());Pn=(je,Ye,Mt,rn,un)=>l5(je,Ye,Mt,rn,un,bt,Ee,WL)}const Sr=bt.hasInvalidatedLibResolutions||j0;let wi;if(bt.resolveLibrary)wi=bt.resolveLibrary.bind(bt);else{const Ee=m4(pi,qr,R,hn==null?void 0:hn.getPackageJsonInfoCache());wi=(je,Ye,Mt)=>rL(je,Ye,Mt,bt,Ee)}const Yt=new Map;let Gt=new Map,Sn=Xf(),Gr=!1;const Er=new Map;let ze;const ut=bt.useCaseSensitiveFileNames()?new Map:void 0;let kt,it,Vt,ae;const Me=!!((f=bt.useSourceOfProjectReferenceRedirect)!=null&&f.call(bt))&&!R.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:ke,fileExists:ft,directoryExists:K}=G9e({compilerHost:bt,getSymlinkCache:Lp,useSourceOfProjectReferenceRedirect:Me,toPath:Oe,getResolvedProjectReferences:ea,getSourceOfProjectReferenceRedirect:ws,forEachResolvedProjectReference:ji}),$e=bt.readFile.bind(bt);(g=li)==null||g.push(li.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!X});const Ae=q9e(X,R);(m=li)==null||m.pop();let ht;if((y=li)==null||y.push(li.Phase.Program,"tryReuseStructureFromOldProgram",{}),ht=ir(),(x=li)==null||x.pop(),ht!==2){if(Q=[],ne=[],oe&&(kt||(kt=oe.map(va)),ee.length&&(kt==null||kt.forEach((Ee,je)=>{if(!Ee)return;const Ye=Ao(Ee.commandLine.options);if(Me){if(Ye||Ul(Ee.commandLine.options)===0)for(const Mt of Ee.commandLine.fileNames)ac(Mt,{kind:1,index:je})}else if(Ye)ac(Cy(Ye,".d.ts"),{kind:2,index:je});else if(Ul(Ee.commandLine.options)===0){const Mt=wu(()=>O8(Ee.commandLine,!bt.useCaseSensitiveFileNames()));for(const rn of Ee.commandLine.fileNames)!ou(rn)&&!Hc(rn,".json")&&ac(I8(rn,Ee.commandLine,!bt.useCaseSensitiveFileNames(),Mt),{kind:2,index:je})}}))),(k=li)==null||k.push(li.Phase.Program,"processRootFiles",{count:ee.length}),pn(ee,(Ee,je)=>xt(Ee,!1,!1,{kind:0,index:je})),(C=li)==null||C.pop(),pe!=null||(pe=ee.length?tL(R,bt):Ve),Pe=_T(),pe.length){(N=li)==null||N.push(li.Phase.Program,"processTypeReferences",{count:pe.length});const Ee=R.configFilePath?Ti(R.configFilePath):pi,je=Ii(Ee,p5),Ye=on(pe,je);for(let Mt=0;Mt{xt(Xt(je),!0,!1,{kind:6,index:Ye})})}ze=ra(O7(Er.entries(),([Ee,je])=>je===void 0?Ee:void 0)),ue=R0(Q,F).concat(ne),Q=void 0,ne=void 0}if(E.assert(!!ze),X&&bt.onReleaseOldSourceFile){const Ee=X.getSourceFiles();for(const je of Ee){const Ye=Es(je.resolvedPath);(Ae||!Ye||Ye.impliedNodeFormat!==je.impliedNodeFormat||je.resolvedPath===je.path&&Ye.resolvedPath!==je.path)&&bt.onReleaseOldSourceFile(je,X.getCompilerOptions(),!!Es(je.path))}bt.getParsedCommandLine||X.forEachResolvedProjectReference(je=>{oc(je.sourceFile.path)||bt.onReleaseOldSourceFile(je.sourceFile,X.getCompilerOptions(),!1)})}X&&bt.onReleaseParsedCommandLine&&_5(X.getProjectReferences(),X.getResolvedProjectReferences(),(Ee,je,Ye)=>{const Mt=(je==null?void 0:je.commandLine.projectReferences[Ye])||X.getProjectReferences()[Ye],rn=L8(Mt);it!=null&&it.has(Oe(rn))||bt.onReleaseParsedCommandLine(rn,Ee,X.getCompilerOptions())}),X=void 0,tt=void 0;const _t={getRootFileNames:()=>ee,getSourceFile:qi,getSourceFileByPath:Es,getSourceFiles:()=>ue,getMissingFilePaths:()=>ze,getModuleResolutionCache:()=>hn,getFilesByNameMap:()=>Er,getCompilerOptions:()=>R,getSyntacticDiagnostics:ro,getOptionsDiagnostics:$o,getGlobalDiagnostics:Ce,getSemanticDiagnostics:za,getCachedSemanticDiagnostics:Pc,getSuggestionDiagnostics:Fa,getDeclarationDiagnostics:Vc,getBindAndCheckDiagnostics:ls,getProgramDiagnostics:Li,getTypeChecker:Ms,getClassifiableNames:Tt,getCommonSourceDirectory:We,emit:di,getCurrentDirectory:()=>pi,getNodeCount:()=>Ms().getNodeCount(),getIdentifierCount:()=>Ms().getIdentifierCount(),getSymbolCount:()=>Ms().getSymbolCount(),getTypeCount:()=>Ms().getTypeCount(),getInstantiationCount:()=>Ms().getInstantiationCount(),getRelationCacheSizes:()=>Ms().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ct,getResolvedTypeReferenceDirectives:()=>rt,getAutomaticTypeDirectiveNames:()=>pe,getAutomaticTypeDirectiveResolutions:()=>Pe,isSourceFileFromExternalLibrary:Yr,isSourceFileDefaultLibrary:cs,getSourceFileFromReference:Vr,getLibFileFromReference:ci,sourceFileToPackageName:Gt,redirectTargetsMap:Sn,usesUriStyleNodeCoreModules:Gr,resolvedLibReferences:Ge,getCurrentPackagesMap:()=>mt,typesPackageExists:Fn,packageBundlesTypes:Nt,isEmittedFile:fd,getConfigFileParsingDiagnostics:Re,getProjectReferences:gs,getResolvedProjectReferences:ea,getProjectReferenceRedirect:Tu,getResolvedProjectReferenceToRedirect:vn,getResolvedProjectReferenceByPath:oc,forEachResolvedProjectReference:ji,isSourceOfProjectReferenceRedirect:Wa,emitBuildInfo:oi,fileExists:ft,readFile:$e,directoryExists:K,getSymlinkCache:Lp,realpath:(U=bt.realpath)==null?void 0:U.bind(bt),useCaseSensitiveFileNames:()=>bt.useCaseSensitiveFileNames(),getCanonicalFileName:qr,getFileIncludeReasons:()=>ve,structureIsReused:ht,writeFile:jn};return ke(),ct==null||ct.forEach(Ee=>{switch(Ee.kind){case 1:return xr.add(Ml(Ee.file&&Es(Ee.file),Ee.fileProcessingReason,Ee.diagnostic,Ee.args||Ve));case 0:const{file:je,pos:Ye,end:Mt}=F8(Es,Ee.reason);return xr.add(vl(je,E.checkDefined(Ye),E.checkDefined(Mt)-Ye,Ee.diagnostic,...Ee.args||Ve));case 2:return Ee.diagnostics.forEach(rn=>xr.add(rn));default:E.assertNever(Ee)}}),Fo(),go("afterProgram"),Gu("Program","beforeProgram","afterProgram"),(Y=li)==null||Y.pop(),_t;function jt(){return mt||(mt=new Map,ue.forEach(Ee=>{!Ee.resolvedModules||Ee.resolvedModules.forEach(({resolvedModule:je})=>{je!=null&&je.packageId&&mt.set(je.packageId.name,je.extension===".d.ts"||!!mt.get(je.packageId.name))})}),mt)}function Fn(Ee){return jt().has(_L(Ee))}function Nt(Ee){return!!jt().get(Ee)}function hi(Ee){var je;!((je=Ee.resolutionDiagnostics)!=null&&je.length)||(ct!=null?ct:ct=[]).push({kind:2,diagnostics:Ee.resolutionDiagnostics})}function z(Ee,je,Ye,Mt){if(bt.resolveModuleNameLiterals||!bt.resolveModuleNames)return hi(Ye);if(!hn||Al(je))return;const rn=ms(Ee.originalFileName,pi),un=Ti(rn),nn=W(Ee),Vn=hn.getFromNonRelativeNameCache(je,Mt,un,nn);Vn&&hi(Vn)}function B(Ee,je,Ye){var Mt,rn;if(!Ee.length)return Ve;const un=ms(je.originalFileName,pi),nn=W(je);(Mt=li)==null||Mt.push(li.Phase.Program,"resolveModuleNamesWorker",{containingFileName:un}),go("beforeResolveModule");const Vn=Ct(Ee,un,nn,R,je,Ye);return go("afterResolveModule"),Gu("ResolveModule","beforeResolveModule","afterResolveModule"),(rn=li)==null||rn.pop(),Vn}function le(Ee,je,Ye){var Mt,rn;if(!Ee.length)return[];const un=Gs(je)?void 0:je,nn=Gs(je)?je:ms(je.originalFileName,pi),Vn=un&&W(un);(Mt=li)==null||Mt.push(li.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:nn}),go("beforeResolveTypeReference");const Br=Pn(Ee,nn,Vn,R,un,Ye);return go("afterResolveTypeReference"),Gu("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(rn=li)==null||rn.pop(),Br}function W(Ee){const je=vn(Ee.originalFileName);if(je||!ou(Ee.originalFileName))return je;const Ye=ge(Ee.path);if(Ye)return Ye;if(!bt.realpath||!R.preserveSymlinks||!Xl(Ee.originalFileName,ah))return;const Mt=Oe(bt.realpath(Ee.originalFileName));return Mt===Ee.path?void 0:ge(Mt)}function ge(Ee){const je=ws(Ee);if(Gs(je))return vn(je);if(!!je)return ji(Ye=>{const Mt=Ao(Ye.commandLine.options);if(!!Mt)return Oe(Mt)===Ee?Ye:void 0})}function F(Ee,je){return Co(ye(Ee),ye(je))}function ye(Ee){if(Qh(er,Ee.fileName,!1)){const je=Jl(Ee.fileName);if(je==="lib.d.ts"||je==="lib.es6.d.ts")return 0;const Ye=qk(IC(je,"lib."),".d.ts"),Mt=OA.indexOf(Ye);if(Mt!==-1)return Mt+1}return OA.length+2}function Oe(Ee){return ho(Ee,pi,qr)}function We(){if(G===void 0){const Ee=zr(ue,je=>qx(je,_t));G=r5(R,()=>Hi(Ee,je=>je.isDeclarationFile?void 0:je.fileName),pi,qr,je=>hs(Ee,je))}return G}function Tt(){var Ee;if(!De){Ms(),De=new Set;for(const je of ue)(Ee=je.classifiableNames)==null||Ee.forEach(Ye=>De.add(Ye))}return De}function It(Ee,je){var Ye;if(ht===0&&!je.ambientModuleNames.length)return B(Ee,je,void 0);const Mt=X&&X.getSourceFile(je.fileName);if(Mt!==je&&je.resolvedModules){const cr=[];for(const wr of Ee){const ta=je.resolvedModules.get(wr.text,cp(je,wr));cr.push(ta)}return cr}let rn,un,nn;const Vn=JX;for(let cr=0;cr{const Mt=(je?je.commandLine.projectReferences:oe)[Ye],rn=va(Mt);return Ee?!rn||rn.sourceFile!==Ee.sourceFile||!Cd(Ee.commandLine.fileNames,rn.commandLine.fileNames):rn!==void 0},(Ee,je)=>{const Ye=je?oc(je.sourceFile.path).commandLine.projectReferences:oe;return!Cd(Ee,Ye,xW)})}function ir(){var Ee;if(!X)return 0;const je=X.getCompilerOptions();if(TW(je,R))return 0;const Ye=X.getRootFileNames();if(!Cd(Ye,ee)||!kn())return 0;oe&&(kt=oe.map(va));const Mt=[],rn=[];if(ht=2,X.getMissingFilePaths().some(Hn=>bt.fileExists(Hn)))return 0;const un=X.getSourceFiles();let nn;(Hn=>{Hn[Hn.Exists=0]="Exists",Hn[Hn.Modified=1]="Modified"})(nn||(nn={}));const Vn=new Map;for(const Hn of un){const cr=nc(Hn.fileName,hn,bt,R);let wr=bt.getSourceFileByPath?bt.getSourceFileByPath(Hn.fileName,Hn.resolvedPath,cr,void 0,Ae):bt.getSourceFile(Hn.fileName,cr,void 0,Ae);if(!wr)return 0;wr.packageJsonLocations=(Ee=cr.packageJsonLocations)!=null&&Ee.length?cr.packageJsonLocations:void 0,wr.packageJsonScope=cr.packageJsonScope,E.assert(!wr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let ta;if(Hn.redirectInfo){if(wr!==Hn.redirectInfo.unredirected)return 0;ta=!1,wr=Hn}else if(X.redirectTargetsMap.has(Hn.path)){if(wr!==Hn)return 0;ta=!1}else ta=wr!==Hn;wr.path=Hn.path,wr.originalFileName=Hn.originalFileName,wr.resolvedPath=Hn.resolvedPath,wr.fileName=Hn.fileName;const Fc=X.sourceFileToPackageName.get(Hn.path);if(Fc!==void 0){const Xo=Vn.get(Fc),pg=ta?1:0;if(Xo!==void 0&&pg===1||Xo===1)return 0;Vn.set(Fc,pg)}ta?(Hn.impliedNodeFormat!==wr.impliedNodeFormat?ht=1:Cd(Hn.libReferenceDirectives,wr.libReferenceDirectives,yn)?Hn.hasNoDefaultLib!==wr.hasNoDefaultLib?ht=1:Cd(Hn.referencedFiles,wr.referencedFiles,yn)?(gr(wr),Cd(Hn.imports,wr.imports,Pr)&&Cd(Hn.moduleAugmentations,wr.moduleAugmentations,Pr)?(Hn.flags&12582912)!==(wr.flags&12582912)?ht=1:Cd(Hn.typeReferenceDirectives,wr.typeReferenceDirectives,yn)||(ht=1):ht=1):ht=1:ht=1,rn.push({oldFile:Hn,newFile:wr})):cn(Hn.path)&&(ht=1,rn.push({oldFile:Hn,newFile:wr})),Mt.push(wr)}if(ht!==2)return ht;const Br=rn.map(Hn=>Hn.oldFile);for(const Hn of un)if(!ys(Br,Hn))for(const cr of Hn.ambientModuleNames)Xe.set(cr,Hn.fileName);for(const{oldFile:Hn,newFile:cr}of rn){const wr=Zge(cr),ta=It(wr,cr);kW(wr,cr,ta,Hn.resolvedModules,ble,M8)?(ht=1,cr.resolvedModules=u$(cr,wr,ta,M8)):cr.resolvedModules=Hn.resolvedModules;const Xo=cr.typeReferenceDirectives,pg=on(Xo,cr);kW(Xo,cr,pg,Hn.resolvedTypeReferenceDirectiveNames,Tle,f5)?(ht=1,cr.resolvedTypeReferenceDirectiveNames=u$(cr,Xo,pg,f5)):cr.resolvedTypeReferenceDirectiveNames=Hn.resolvedTypeReferenceDirectiveNames}if(ht!==2)return ht;if(gle(je,R)||X.resolvedLibReferences&&Au(X.resolvedLibReferences,(Hn,cr)=>On(cr).actual!==Hn.actual))return 1;if(bt.hasChangedAutomaticTypeDirectiveNames){if(bt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(pe=tL(R,bt),!Cd(X.getAutomaticTypeDirectiveNames(),pe))return 1;ze=X.getMissingFilePaths(),E.assert(Mt.length===X.getSourceFiles().length);for(const Hn of Mt)Er.set(Hn.path,Hn);return X.getFilesByNameMap().forEach((Hn,cr)=>{if(!Hn){Er.set(cr,Hn);return}if(Hn.path===cr){X.isSourceFileFromExternalLibrary(Hn)&&Pt.set(Hn.path,!0);return}Er.set(cr,Er.get(Hn.path))}),ue=Mt,ve=X.getFileIncludeReasons(),ct=X.getFileProcessingDiagnostics(),rt=X.getResolvedTypeReferenceDirectives(),pe=X.getAutomaticTypeDirectiveNames(),Pe=X.getAutomaticTypeDirectiveResolutions(),Gt=X.sourceFileToPackageName,Sn=X.redirectTargetsMap,Gr=X.usesUriStyleNodeCoreModules,Ge=X.resolvedLibReferences,mt=X.getCurrentPackagesMap(),2}function ar(Ee){return{getPrependNodes:Us,getCanonicalFileName:qr,getCommonSourceDirectory:_t.getCommonSourceDirectory,getCompilerOptions:_t.getCompilerOptions,getCurrentDirectory:()=>pi,getSourceFile:_t.getSourceFile,getSourceFileByPath:_t.getSourceFileByPath,getSourceFiles:_t.getSourceFiles,getLibFileFromReference:_t.getLibFileFromReference,isSourceFileFromExternalLibrary:Yr,getResolvedProjectReferenceToRedirect:vn,getProjectReferenceRedirect:Tu,isSourceOfProjectReferenceRedirect:Wa,getSymlinkCache:Lp,writeFile:Ee||jn,isEmitBlocked:ln,readFile:je=>bt.readFile(je),fileExists:je=>{const Ye=Oe(je);return Es(Ye)?!0:ys(ze,Ye)?!1:bt.fileExists(je)},useCaseSensitiveFileNames:()=>bt.useCaseSensitiveFileNames(),getBuildInfo:je=>{var Ye;return(Ye=_t.getBuildInfo)==null?void 0:Ye.call(_t,je)},getSourceFileFromReference:(je,Ye)=>_t.getSourceFileFromReference(je,Ye),redirectTargetsMap:Sn,getFileIncludeReasons:_t.getFileIncludeReasons,createHash:Hs(bt,bt.createHash)}}function jn(Ee,je,Ye,Mt,rn,un){bt.writeFile(Ee,je,Ye,Mt,rn,un)}function oi(Ee){var je,Ye;E.assert(!Ao(R)),(je=li)==null||je.push(li.Phase.Emit,"emitBuildInfo",{},!0),go("beforeEmit");const Mt=RL(jL,ar(Ee),void 0,fX,!1,!0);return go("afterEmit"),Gu("Emit","beforeEmit","afterEmit"),(Ye=li)==null||Ye.pop(),Mt}function ea(){return kt}function gs(){return oe}function Us(){return FX(oe,(Ee,je)=>{var Ye;return(Ye=kt[je])==null?void 0:Ye.commandLine},Ee=>{const je=Oe(Ee),Ye=Es(je);return Ye?Ye.text:Er.has(je)?void 0:bt.readFile(je)},bt)}function Yr(Ee){return!!Pt.get(Ee.path)}function cs(Ee){if(!Ee.isDeclarationFile)return!1;if(Ee.hasNoDefaultLib)return!0;if(!R.noLib)return!1;const je=bt.useCaseSensitiveFileNames()?xx:Tx;return R.lib?dt(R.lib,Ye=>je(Ee.fileName,Ge.get(Ye).actual)):je(Ee.fileName,Bt())}function Ms(){return Ne||(Ne=Cme(_t))}function di(Ee,je,Ye,Mt,rn,un){var nn,Vn;(nn=li)==null||nn.push(li.Phase.Emit,"emit",{path:Ee==null?void 0:Ee.path},!0);const Br=L_(()=>tc(_t,Ee,je,Ye,Mt,rn,un));return(Vn=li)==null||Vn.pop(),Br}function ln(Ee){return pt.has(Oe(Ee))}function tc(Ee,je,Ye,Mt,rn,un,nn){if(!nn){const Gi=OX(Ee,je,Ye,Mt);if(Gi)return Gi}const Vn=Ms().getEmitResolver(Ao(R)?void 0:je,Mt);go("beforeEmit");const Br=RL(Vn,ar(Ye),je,uX(R,un,rn),rn,!1,nn);return go("afterEmit"),Gu("Emit","beforeEmit","afterEmit"),Br}function qi(Ee){return Es(Oe(Ee))}function Es(Ee){return Er.get(Ee)||void 0}function Ea(Ee,je,Ye){return Zk(Ee?je(Ee,Ye):Na(_t.getSourceFiles(),Mt=>(Ye&&Ye.throwIfCancellationRequested(),je(Mt,Ye))))}function ro(Ee,je){return Ea(Ee,zo,je)}function za(Ee,je){return Ea(Ee,_l,je)}function Pc(Ee){var je;return Ee?(je=be.perFile)==null?void 0:je.get(Ee.path):be.allDiagnostics}function ls(Ee,je){return Bf(Ee,je)}function Li(Ee){var je;if(B3(Ee,R,_t))return Ve;const Ye=xr.getDiagnostics(Ee.fileName);return(je=Ee.commentDirectives)!=null&&je.length?Ba(Ee,Ee.commentDirectives,Ye).diagnostics:Ye}function Vc(Ee,je){const Ye=_t.getCompilerOptions();return!Ee||Ao(Ye)?h_(Ee,je):Ea(Ee,vo,je)}function zo(Ee){return P_(Ee)?(Ee.additionalSyntacticDiagnostics||(Ee.additionalSyntacticDiagnostics=pc(Ee)),es(Ee.additionalSyntacticDiagnostics,Ee.parseDiagnostics)):Ee.parseDiagnostics}function L_(Ee){try{return Ee()}catch(je){throw je instanceof LC&&(Ne=void 0),je}}function _l(Ee,je){return es(GL(Bf(Ee,je),R),Li(Ee))}function Bf(Ee,je){return q_(Ee,je,be,Rs)}function Rs(Ee,je){return L_(()=>{if(B3(Ee,R,_t))return Ve;const Ye=Ms();E.assert(!!Ee.bindDiagnostics);const rn=(Ee.scriptKind===1||Ee.scriptKind===2)&&LD(Ee,R),un=Pw(Ee,R.checkJs),Vn=!(!!Ee.checkJsDirective&&Ee.checkJsDirective.enabled===!1)&&(Ee.scriptKind===3||Ee.scriptKind===4||Ee.scriptKind===5||un||rn||Ee.scriptKind===7);let Br=Vn?Ee.bindDiagnostics:Ve,Gi=Vn?Ye.getDiagnostics(Ee,je):Ve;return un&&(Br=zr(Br,Hn=>ZL.has(Hn.code)),Gi=zr(Gi,Hn=>ZL.has(Hn.code))),po(Ee,Vn&&!un,Br,Gi,rn?Ee.jsDocDiagnostics:void 0)})}function po(Ee,je,...Ye){var Mt;const rn=bp(Ye);if(!je||!((Mt=Ee.commentDirectives)!=null&&Mt.length))return rn;const{diagnostics:un,directives:nn}=Ba(Ee,Ee.commentDirectives,rn);for(const Vn of nn.getUnusedExpectations())un.push(VW(Ee,Vn.range,p.Unused_ts_expect_error_directive));return un}function Ba(Ee,je,Ye){const Mt=wle(Ee,je);return{diagnostics:Ye.filter(un=>Wt(un,Mt)===-1),directives:Mt}}function Fa(Ee,je){return L_(()=>Ms().getSuggestionDiagnostics(Ee,je))}function Wt(Ee,je){const{file:Ye,start:Mt}=Ee;if(!Ye)return-1;const rn=Ug(Ye);let un=_w(rn,Mt).line-1;for(;un>=0;){if(je.markUsed(un))return un;const nn=Ye.text.slice(rn[un],rn[un+1]).trim();if(nn!==""&&!/^(\s*)\/\/(.*)$/.test(nn))return-1;un--}return-1}function pc(Ee){return L_(()=>{const je=[];return Ye(Ee,Ee),m8(Ee,Ye,Mt),je;function Ye(Vn,Br){switch(Br.kind){case 169:case 172:case 174:if(Br.questionToken===Vn)return je.push(nn(Vn,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(Br.type===Vn)return je.push(nn(Vn,p.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Vn.kind){case 273:if(Vn.isTypeOnly)return je.push(nn(Br,p._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Vn.isTypeOnly)return je.push(nn(Vn,p._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Vn.isTypeOnly)return je.push(nn(Vn,p._0_declarations_can_only_be_used_in_TypeScript_files,vu(Vn)?"import...type":"export...type")),"skip";break;case 271:return je.push(nn(Vn,p.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Vn.isExportEquals)return je.push(nn(Vn,p.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Vn.token===119)return je.push(nn(Vn,p.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const Hn=ia(120);return E.assertIsDefined(Hn),je.push(nn(Vn,p._0_declarations_can_only_be_used_in_TypeScript_files,Hn)),"skip";case 267:const cr=Vn.flags&32?ia(145):ia(144);return E.assertIsDefined(cr),je.push(nn(Vn,p._0_declarations_can_only_be_used_in_TypeScript_files,cr)),"skip";case 265:return je.push(nn(Vn,p.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Vn.body?void 0:(je.push(nn(Vn,p.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const wr=E.checkDefined(ia(94));return je.push(nn(Vn,p._0_declarations_can_only_be_used_in_TypeScript_files,wr)),"skip";case 235:return je.push(nn(Vn,p.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return je.push(nn(Vn.type,p.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return je.push(nn(Vn.type,p.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:E.fail()}}function Mt(Vn,Br){if(xG(Br)){const Gi=Or(Br.modifiers,Wl);Gi&&je.push(nn(Gi,p.Decorators_are_not_valid_here))}else if(oT(Br)&&Br.modifiers){const Gi=qc(Br.modifiers,Wl);if(Gi>=0){if(rs(Br)&&!R.experimentalDecorators)je.push(nn(Br.modifiers[Gi],p.Decorators_are_not_valid_here));else if(Qc(Br)){const Hn=qc(Br.modifiers,aS);if(Hn>=0){const cr=qc(Br.modifiers,dF);if(Gi>Hn&&cr>=0&&Gi=0&&Gi=0&&je.push(ua(nn(Br.modifiers[wr],p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),nn(Br.modifiers[Gi],p.Decorator_used_before_export_here)))}}}}}switch(Br.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(Vn===Br.typeParameters)return je.push(un(Vn,p.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Vn===Br.modifiers)return rn(Br.modifiers,Br.kind===243),"skip";break;case 172:if(Vn===Br.modifiers){for(const Gi of Vn)Zs(Gi)&&Gi.kind!==126&&Gi.kind!==129&&je.push(nn(Gi,p.The_0_modifier_can_only_be_used_in_TypeScript_files,ia(Gi.kind)));return"skip"}break;case 169:if(Vn===Br.modifiers&&dt(Vn,Zs))return je.push(un(Vn,p.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(Vn===Br.typeArguments)return je.push(un(Vn,p.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function rn(Vn,Br){for(const Gi of Vn)switch(Gi.kind){case 87:if(Br)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:je.push(nn(Gi,p.The_0_modifier_can_only_be_used_in_TypeScript_files,ia(Gi.kind)));break;case 126:case 95:case 90:case 129:}}function un(Vn,Br,...Gi){const Hn=Vn.pos;return vl(Ee,Hn,Vn.end-Hn,Br,...Gi)}function nn(Vn,Br,...Gi){return Yf(Ee,Vn,Br,...Gi)}})}function h_(Ee,je){return q_(Ee,je,xe,M_)}function M_(Ee,je){return L_(()=>{const Ye=Ms().getEmitResolver(Ee,je);return kge(ar(co),Ye,Ee)||Ve})}function q_(Ee,je,Ye,Mt){var rn;const un=Ee?(rn=Ye.perFile)==null?void 0:rn.get(Ee.path):Ye.allDiagnostics;if(un)return un;const nn=Mt(Ee,je);return Ee?(Ye.perFile||(Ye.perFile=new Map)).set(Ee.path,nn):Ye.allDiagnostics=nn,nn}function vo(Ee,je){return Ee.isDeclarationFile?[]:h_(Ee,je)}function $o(){return Zk(es(xr.getGlobalDiagnostics(),A()))}function A(){if(!R.configFile)return Ve;let Ee=xr.getDiagnostics(R.configFile.fileName);return ji(je=>{Ee=es(Ee,xr.getDiagnostics(je.sourceFile.fileName))}),Ee}function Ce(){return ee.length?Zk(Ms().getGlobalDiagnostics().slice()):Ve}function Re(){return Z||Ve}function xt(Ee,je,Ye,Mt){io(ba(Ee),je,Ye,void 0,Mt)}function yn(Ee,je){return Ee.fileName===je.fileName}function Pr(Ee,je){return Ee.kind===80?je.kind===80&&Ee.escapedText===je.escapedText:je.kind===11&&Ee.text===je.text}function En(Ee,je){const Ye=I.createStringLiteral(Ee),Mt=I.createImportDeclaration(void 0,void 0,Ye,void 0);return eS(Mt,2),Ta(Ye,Mt),Ta(Mt,je),Ye.flags&=-17,Mt.flags&=-17,Ye}function gr(Ee){if(Ee.imports)return;const je=P_(Ee),Ye=zc(Ee);let Mt,rn,un;if((nd(R)||Ye)&&!Ee.isDeclarationFile){R.importHelpers&&(Mt=[En(u1,Ee)]);const Hn=vO(yO(R,Ee),R);Hn&&(Mt||(Mt=[])).push(En(Hn,Ee))}for(const Hn of Ee.statements)Vn(Hn,!1);const nn=je&&mO(R);(Ee.flags&4194304||nn)&&Br(Ee),Ee.imports=Mt||Ve,Ee.moduleAugmentations=rn||Ve,Ee.ambientModuleNames=un||Ve;return;function Vn(Hn,cr){if(Ow(Hn)){const wr=x6(Hn);wr&&fa(wr)&&wr.text&&(!cr||!Al(wr.text))&&(_1(Hn,!1),Mt=dn(Mt,wr),!Gr&&ot===0&&!Ee.isDeclarationFile&&(Gr=ns(wr.text,"node:")))}else if(Ac(Hn)&&__(Hn)&&(cr||Lr(Hn,2)||Ee.isDeclarationFile)){Hn.name.parent=Hn;const wr=Cp(Hn.name);if(Ye||cr&&!Al(wr))(rn||(rn=[])).push(Hn.name);else if(!cr){Ee.isDeclarationFile&&(un||(un=[])).push(wr);const ta=Hn.body;if(ta)for(const Fc of ta.statements)Vn(Fc,!0)}}}function Br(Hn){const cr=/import|require/g;for(;cr.exec(Hn.text)!==null;){const wr=Gi(Hn,cr.lastIndex);nn&&mu(wr,!0)||Zu(wr)&&wr.arguments.length>=1&&Qa(wr.arguments[0])?(_1(wr,!1),Mt=dn(Mt,wr.arguments[0])):hy(wr)&&(_1(wr,!1),Mt=dn(Mt,wr.argument.literal))}}function Gi(Hn,cr){let wr=Hn;const ta=Fc=>{if(Fc.pos<=cr&&(crHc(rn,nn))){Ye&&(_2(rn)?Ye(p.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ee):Ye(p.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ee,"'"+bp(ki).join("', '")+"'"));return}const un=je(Ee);if(Ye)if(un)By(Mt)&&rn===bt.getCanonicalFileName(Es(Mt.file).fileName)&&Ye(p.A_file_cannot_have_a_reference_to_itself);else{const nn=Tu(Ee);nn?Ye(p.Output_file_0_has_not_been_built_from_source_file_1,nn,Ee):Ye(p.File_0_not_found,Ee)}return un}else{const rn=R.allowNonTsExtensions&&je(Ee);if(rn)return rn;if(Ye&&R.allowNonTsExtensions){Ye(p.File_0_not_found,Ee);return}const un=pn(ki[0],nn=>je(Ee+nn));return Ye&&!un&&Ye(p.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ee,"'"+bp(ki).join("', '")+"'"),un}}function io(Ee,je,Ye,Mt,rn){La(Ee,un=>Ka(un,je,Ye,rn,Mt),(un,...nn)=>sl(void 0,rn,un,nn),rn)}function ac(Ee,je){return io(Ee,!1,!1,void 0,je)}function Ic(Ee,je,Ye){!By(Ye)&&dt(ve.get(je.path),By)?sl(je,Ye,p.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[je.fileName,Ee]):sl(je,Ye,p.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ee,je.fileName])}function dc(Ee,je,Ye,Mt,rn,un,nn){var Vn;const Br=Cm.createRedirectedSourceFile({redirectTarget:Ee,unredirected:je});return Br.fileName=Ye,Br.path=Mt,Br.resolvedPath=rn,Br.originalFileName=un,Br.packageJsonLocations=(Vn=nn.packageJsonLocations)!=null&&Vn.length?nn.packageJsonLocations:void 0,Br.packageJsonScope=nn.packageJsonScope,Pt.set(Mt,ot>0),Br}function Ka(Ee,je,Ye,Mt,rn){var un,nn;(un=li)==null||un.push(li.Phase.Program,"findSourceFile",{fileName:Ee,isDefaultLib:je||void 0,fileIncludeKind:II[Mt.kind]});const Vn=H_(Ee,je,Ye,Mt,rn);return(nn=li)==null||nn.pop(),Vn}function nc(Ee,je,Ye,Mt){const rn=IX(ms(Ee,pi),je==null?void 0:je.getPackageJsonInfoCache(),Ye,Mt),un=Ia(Mt),nn=DD(Mt);return typeof rn=="object"?{...rn,languageVersion:un,setExternalModuleIndicator:nn}:{languageVersion:un,impliedNodeFormat:rn,setExternalModuleIndicator:nn}}function H_(Ee,je,Ye,Mt,rn){var un;const nn=Oe(Ee);if(Me){let cr=ws(nn);if(!cr&&bt.realpath&&R.preserveSymlinks&&ou(Ee)&&Xl(Ee,ah)){const wr=Oe(bt.realpath(Ee));wr!==nn&&(cr=ws(wr))}if(cr){const wr=Gs(cr)?Ka(cr,je,Ye,Mt,rn):void 0;return wr&&Vo(wr,nn,void 0),wr}}const Vn=Ee;if(Er.has(nn)){const cr=Er.get(nn);if(Uc(cr||void 0,Mt),cr&&R.forceConsistentCasingInFileNames!==!1){const wr=cr.fileName;Oe(wr)!==Oe(Ee)&&(Ee=Tu(Ee)||Ee);const Fc=LU(wr,pi),Xo=LU(Ee,pi);Fc!==Xo&&Ic(Ee,cr,Mt)}return cr&&Pt.get(cr.path)&&ot===0?(Pt.set(cr.path,!1),R.noResolve||(se(cr,je),qe(cr)),R.noLib||Cr(cr),Jt.set(cr.path,!1),_i(cr)):cr&&Jt.get(cr.path)&&otsl(void 0,Mt,p.Cannot_read_file_0_Colon_1,[Ee,cr]),Ae);if(rn){const cr=s1(rn),wr=Yt.get(cr);if(wr){const ta=dc(wr,Hn,Ee,nn,Oe(Ee),Vn,Gi);return Sn.add(wr.path,Ee),Vo(ta,nn,Br),Uc(ta,Mt),Gt.set(nn,g9(rn)),ne.push(ta),ta}else Hn&&(Yt.set(cr,Hn),Gt.set(nn,g9(rn)))}if(Vo(Hn,nn,Br),Hn){if(Pt.set(nn,ot>0),Hn.fileName=Ee,Hn.path=nn,Hn.resolvedPath=Oe(Ee),Hn.originalFileName=Vn,Hn.packageJsonLocations=(un=Gi.packageJsonLocations)!=null&&un.length?Gi.packageJsonLocations:void 0,Hn.packageJsonScope=Gi.packageJsonScope,Uc(Hn,Mt),bt.useCaseSensitiveFileNames()){const cr=Zp(nn),wr=ut.get(cr);wr?Ic(Ee,wr,Mt):ut.set(cr,Hn)}xn=xn||Hn.hasNoDefaultLib&&!Ye,R.noResolve||(se(Hn,je),qe(Hn)),R.noLib||Cr(Hn),_i(Hn),je?Q.push(Hn):ne.push(Hn)}return Hn}function Uc(Ee,je){Ee&&ve.add(Ee.path,je)}function Vo(Ee,je,Ye){Ye?(Er.set(Ye,Ee),Er.set(je,Ee||!1)):Er.set(je,Ee)}function Tu(Ee){const je=he(Ee);return je&&vt(je,Ee)}function he(Ee){if(!(!kt||!kt.length||ou(Ee)||Hc(Ee,".json")))return vn(Ee)}function vt(Ee,je){const Ye=Ao(Ee.commandLine.options);return Ye?Cy(Ye,".d.ts"):I8(je,Ee.commandLine,!bt.useCaseSensitiveFileNames())}function vn(Ee){Vt===void 0&&(Vt=new Map,ji(Ye=>{Oe(R.configFilePath)!==Ye.sourceFile.path&&Ye.commandLine.fileNames.forEach(Mt=>Vt.set(Oe(Mt),Ye.sourceFile.path))}));const je=Vt.get(Oe(Ee));return je&&oc(je)}function ji(Ee){return Xge(kt,Ee)}function ws(Ee){if(!!ou(Ee))return ae===void 0&&(ae=new Map,ji(je=>{const Ye=Ao(je.commandLine.options);if(Ye){const Mt=Cy(Ye,".d.ts");ae.set(Oe(Mt),!0)}else{const Mt=wu(()=>O8(je.commandLine,!bt.useCaseSensitiveFileNames()));pn(je.commandLine.fileNames,rn=>{if(!ou(rn)&&!Hc(rn,".json")){const un=I8(rn,je.commandLine,!bt.useCaseSensitiveFileNames(),Mt);ae.set(Oe(un),rn)}})}})),ae.get(Ee)}function Wa(Ee){return Me&&!!vn(Ee)}function oc(Ee){if(!!it)return it.get(Ee)||void 0}function se(Ee,je){pn(Ee.referencedFiles,(Ye,Mt)=>{io(VL(Ye.fileName,Ee.fileName),je,!1,void 0,{kind:4,file:Ee.path,index:Mt})})}function qe(Ee){const je=Ee.typeReferenceDirectives;if(!je.length){Ee.resolvedTypeReferenceDirectiveNames=void 0;return}const Ye=on(je,Ee);for(let Mt=0;Mt{const{libName:Mt,libFileName:rn}=Yge(je);if(rn)xt(Xt(rn),!0,!0,{kind:7,file:Ee.path,index:Ye});else{const un=qk(IC(Mt,"lib."),".d.ts"),nn=NC(un,OA,Zo),Vn=nn?p.Cannot_find_lib_definition_for_0_Did_you_mean_1:p.Cannot_find_lib_definition_for_0,Br=nn?[Mt,nn]:[Mt];(ct||(ct=[])).push({kind:0,reason:{kind:7,file:Ee.path,index:Ye},diagnostic:Vn,args:Br})}})}function qr(Ee){return bt.getCanonicalFileName(Ee)}function _i(Ee){var je;if(gr(Ee),Ee.imports.length||Ee.moduleAugmentations.length){const Ye=Zge(Ee),Mt=It(Ye,Ee);E.assert(Mt.length===Ye.length);const rn=(Me?(je=W(Ee))==null?void 0:je.commandLine.options:void 0)||R;for(let un=0;unJe,Fc=wr&&!LX(rn,nn,Ee)&&!rn.noResolve&&unzc(nn)&&!nn.isDeclarationFile);if(R.isolatedModules||R.verbatimModuleSyntax)R.module===0&&je<2&&R.isolatedModules&&mi(p.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),R.preserveConstEnums===!1&&mi(p.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,R.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Ye&&je<2&&R.module===0){const nn=Kv(Ye,typeof Ye.externalModuleIndicator=="boolean"?Ye:Ye.externalModuleIndicator);xr.add(vl(Ye,nn.start,nn.length,p.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ee&&!R.emitDeclarationOnly){if(R.module&&!(R.module===2||R.module===4))mi(p.Only_amd_and_system_modules_are_supported_alongside_0,R.out?"out":"outFile","module");else if(R.module===void 0&&Ye){const nn=Kv(Ye,typeof Ye.externalModuleIndicator=="boolean"?Ye:Ye.externalModuleIndicator);xr.add(vl(Ye,nn.start,nn.length,p.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,R.out?"out":"outFile"))}}if($b(R)&&(Sc(R)===1?mi(p.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):pO(R)||mi(p.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),R.outDir||R.rootDir||R.sourceRoot||R.mapRoot){const nn=We();R.outDir&&nn===""&&ue.some(Vn=>_m(Vn.fileName)>1)&&mi(p.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}R.useDefineForClassFields&&je===0&&mi(p.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),R.checkJs&&!O3(R)&&xr.add(xc(p.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),R.emitDeclarationOnly&&(wp(R)||mi(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),R.noEmit&&mi(p.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),R.emitDecoratorMetadata&&!R.experimentalDecorators&&mi(p.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),R.jsxFactory?(R.reactNamespace&&mi(p.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(R.jsx===4||R.jsx===5)&&mi(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",h8.get(""+R.jsx)),bS(R.jsxFactory,je)||is("jsxFactory",p.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFactory)):R.reactNamespace&&!pf(R.reactNamespace,je)&&is("reactNamespace",p.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,R.reactNamespace),R.jsxFragmentFactory&&(R.jsxFactory||mi(p.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(R.jsx===4||R.jsx===5)&&mi(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",h8.get(""+R.jsx)),bS(R.jsxFragmentFactory,je)||is("jsxFragmentFactory",p.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFragmentFactory)),R.reactNamespace&&(R.jsx===4||R.jsx===5)&&mi(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",h8.get(""+R.jsx)),R.jsxImportSource&&R.jsx===2&&mi(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",h8.get(""+R.jsx)),R.preserveValueImports&&Ul(R)<5&&mi(p.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Mt=Ul(R);R.verbatimModuleSyntax&&((Mt===2||Mt===3||Mt===4)&&mi(p.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),R.preserveValueImports&&cf("preserveValueImports","verbatimModuleSyntax"),R.importsNotUsedAsValues&&cf("importsNotUsedAsValues","verbatimModuleSyntax")),R.allowImportingTsExtensions&&!(R.noEmit||R.emitDeclarationOnly)&&is("allowImportingTsExtensions",p.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const rn=Sc(R);if(R.resolvePackageJsonExports&&!Zx(rn)&&mi(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),R.resolvePackageJsonImports&&!Zx(rn)&&mi(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),R.customConditions&&!Zx(rn)&&mi(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),rn===100&&!fO(Mt)&&is("moduleResolution",p.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),MC[Mt]&&100<=Mt&&Mt<=199&&!(3<=rn&&rn<=99)){const nn=MC[Mt];is("moduleResolution",p.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,nn,nn)}else if(Gk[rn]&&3<=rn&&rn<=99&&!(100<=Mt&&Mt<=199)){const nn=Gk[rn];is("module",p.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,nn,nn)}if(!R.noEmit&&!R.suppressOutputPathCheck){const nn=ar(),Vn=new Set;pX(nn,Br=>{R.emitDeclarationOnly||un(Br.jsFilePath,Vn),un(Br.declarationFilePath,Vn)})}function un(nn,Vn){if(nn){const Br=Oe(nn);if(Er.has(Br)){let Hn;R.configFilePath||(Hn=us(void 0,p.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)),Hn=us(Hn,p.Cannot_write_file_0_because_it_would_overwrite_input_file,nn),y_(nn,_O(Hn))}const Gi=bt.useCaseSensitiveFileNames()?Br:Zp(Br);Vn.has(Gi)?y_(nn,xc(p.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,nn)):Vn.add(Gi)}}}function Ro(){const Ee=R.ignoreDeprecations;if(Ee){if(Ee==="5.0")return new wd(Ee);H()}return wd.zero}function Zc(Ee,je,Ye,Mt){const rn=new wd(Ee),un=new wd(je),nn=new wd(_e||wC),Vn=Ro(),Br=un.compareTo(nn)!==1,Gi=!Br&&Vn.compareTo(rn)===-1;(Br||Gi)&&Mt((Hn,cr,wr)=>{Br?cr===void 0?Ye(Hn,cr,wr,p.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Hn):Ye(Hn,cr,wr,p.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Hn,cr):cr===void 0?Ye(Hn,cr,wr,p.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Hn,je,Ee):Ye(Hn,cr,wr,p.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Hn,cr,je,Ee)})}function Oc(){function Ee(je,Ye,Mt,rn,...un){if(Mt){const nn=us(void 0,p.Use_0_instead,Mt),Vn=us(nn,rn,...un);Lo(!Ye,je,void 0,Vn)}else Lo(!Ye,je,void 0,rn,...un)}Zc("5.0","5.5",Ee,je=>{R.target===0&&je("target","ES3"),R.noImplicitUseStrict&&je("noImplicitUseStrict"),R.keyofStringsOnly&&je("keyofStringsOnly"),R.suppressExcessPropertyErrors&&je("suppressExcessPropertyErrors"),R.suppressImplicitAnyIndexErrors&&je("suppressImplicitAnyIndexErrors"),R.noStrictGenericChecks&&je("noStrictGenericChecks"),R.charset&&je("charset"),R.out&&je("out",void 0,"outFile"),R.importsNotUsedAsValues&&je("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),R.preserveValueImports&&je("preserveValueImports",void 0,"verbatimModuleSyntax")})}function il(Ee,je,Ye){function Mt(rn,un,nn,Vn,...Br){Ss(je,Ye,Vn,...Br)}Zc("5.0","5.5",Mt,rn=>{Ee.prepend&&rn("prepend")})}function Ml(Ee,je,Ye,Mt){var rn;let un,nn,Vn=By(je)?je:void 0;Ee&&((rn=ve.get(Ee.path))==null||rn.forEach(wr)),je&&wr(je),Vn&&(un==null?void 0:un.length)===1&&(un=void 0);const Br=Vn&&F8(Es,Vn),Gi=un&&us(un,p.The_file_is_in_the_program_because_Colon),Hn=Ee&&aQ(Ee),cr=us(Hn?Gi?[Gi,...Hn]:Hn:Gi,Ye,...Mt||Ve);return Br&&b4(Br)?S9(Br.file,Br.pos,Br.end-Br.pos,cr,nn):_O(cr,nn);function wr(ta){(un||(un=[])).push(lQ(_t,ta)),!Vn&&By(ta)?Vn=ta:Vn!==ta&&(nn=dn(nn,ud(ta))),ta===je&&(je=void 0)}}function sl(Ee,je,Ye,Mt){(ct||(ct=[])).push({kind:1,file:Ee&&Ee.path,fileProcessingReason:je,diagnostic:Ye,args:Mt})}function ju(Ee,je,Ye){xr.add(Ml(Ee,void 0,je,Ye))}function ud(Ee){if(By(Ee)){const Mt=F8(Es,Ee);let rn;switch(Ee.kind){case 3:rn=p.File_is_included_via_import_here;break;case 4:rn=p.File_is_included_via_reference_here;break;case 5:rn=p.File_is_included_via_type_library_reference_here;break;case 7:rn=p.File_is_included_via_library_reference_here;break;default:E.assertNever(Ee)}return b4(Mt)?vl(Mt.file,Mt.pos,Mt.end-Mt.pos,rn):void 0}if(!R.configFile)return;let je,Ye;switch(Ee.kind){case 0:if(!R.configFile.configFileSpecs)return;const Mt=ms(ee[Ee.index],pi),rn=oQ(_t,Mt);if(rn){je=N9(R.configFile,"files",rn),Ye=p.File_is_matched_by_files_list_specified_here;break}const un=cQ(_t,Mt);if(!un||!Gs(un))return;je=N9(R.configFile,"include",un),Ye=p.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const nn=E.checkDefined(kt==null?void 0:kt[Ee.index]),Vn=_5(oe,kt,(wr,ta,Fc)=>wr===nn?{sourceFile:(ta==null?void 0:ta.sourceFile)||R.configFile,index:Fc}:void 0);if(!Vn)return;const{sourceFile:Br,index:Gi}=Vn,Hn=jw(Br,"references",wr=>u_(wr.initializer)?wr.initializer:void 0);return Hn&&Hn.elements.length>Gi?Yf(Br,Hn.elements[Gi],Ee.kind===2?p.File_is_output_from_referenced_project_specified_here:p.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!R.types)return;je=xs("types",Ee.typeReference),Ye=p.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ee.index!==void 0){je=xs("lib",R.lib[Ee.index]),Ye=p.File_is_library_specified_here;break}const cr=Au(MA.type,(wr,ta)=>wr===Ia(R)?ta:void 0);je=cr?Jn("target",cr):void 0,Ye=p.File_is_default_library_for_target_specified_here;break;default:E.assertNever(Ee)}return je&&Yf(R.configFile,je,Ye)}function w1(){const Ee=R.suppressOutputPathCheck?void 0:ch(R);_5(oe,kt,(je,Ye,Mt)=>{const rn=(Ye?Ye.commandLine.projectReferences:oe)[Mt],un=Ye&&Ye.sourceFile;if(il(rn,un,Mt),!je){Ss(un,Mt,p.File_0_not_found,rn.path);return}const nn=je.commandLine.options;if((!nn.composite||nn.noEmit)&&(Ye?Ye.commandLine.fileNames:ee).length&&(nn.composite||Ss(un,Mt,p.Referenced_project_0_must_have_setting_composite_Colon_true,rn.path),nn.noEmit&&Ss(un,Mt,p.Referenced_project_0_may_not_disable_emit,rn.path)),rn.prepend){const Vn=Ao(nn);Vn?bt.fileExists(Vn)||Ss(un,Mt,p.Output_file_0_from_project_1_does_not_exist,Vn,rn.path):Ss(un,Mt,p.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,rn.path)}!Ye&&Ee&&Ee===ch(nn)&&(Ss(un,Mt,p.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ee,rn.path),pt.set(Oe(Ee),!0))})}function qd(Ee,je,Ye,...Mt){let rn=!0;At(un=>{ha(un.initializer)&&y6(un.initializer,Ee,nn=>{const Vn=nn.initializer;u_(Vn)&&Vn.elements.length>je&&(xr.add(Yf(R.configFile,Vn.elements[je],Ye,...Mt)),rn=!1)})}),rn&&xr.add(xc(Ye,...Mt))}function J(Ee,je,Ye,...Mt){let rn=!0;At(un=>{ha(un.initializer)&&xl(un.initializer,Ee,je,void 0,Ye,...Mt)&&(rn=!1)}),rn&&xr.add(xc(Ye,...Mt))}function Be(Ee,je){return y6(sa(),Ee,je)}function At(Ee){return Be("paths",Ee)}function Jn(Ee,je){return Be(Ee,Ye=>fa(Ye.initializer)&&Ye.initializer.text===je?Ye.initializer:void 0)}function xs(Ee,je){const Ye=sa();return Ye&&Hle(Ye,Ee,je)}function mi(Ee,je,Ye,Mt){Lo(!0,je,Ye,Ee,je,Ye,Mt)}function is(Ee,je,...Ye){Lo(!1,Ee,void 0,je,...Ye)}function Ss(Ee,je,Ye,...Mt){const rn=jw(Ee||R.configFile,"references",un=>u_(un.initializer)?un.initializer:void 0);rn&&rn.elements.length>je?xr.add(Yf(Ee||R.configFile,rn.elements[je],Ye,...Mt)):xr.add(xc(Ye,...Mt))}function Lo(Ee,je,Ye,Mt,...rn){const un=sa();(!un||!xl(un,Ee,je,Ye,Mt,...rn))&&("messageText"in Mt?xr.add(_O(Mt)):xr.add(xc(Mt,...rn)))}function sa(){return ur===void 0&&(ur=y6(s3(R.configFile),"compilerOptions",Ee=>ha(Ee.initializer)?Ee.initializer:void 0)||!1),ur||void 0}function xl(Ee,je,Ye,Mt,rn,...un){let nn=!1;return y6(Ee,Ye,Vn=>{"messageText"in rn?xr.add(Hg(R.configFile,je?Vn.name:Vn.initializer,rn)):xr.add(Yf(R.configFile,je?Vn.name:Vn.initializer,rn,...un)),nn=!0},Mt),nn}function cf(Ee,je){const Ye=sa();Ye?xl(Ye,!0,Ee,void 0,p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ee,je):mi(p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ee,je)}function y_(Ee,je){pt.set(Oe(Ee),!0),xr.add(je)}function fd(Ee){if(R.noEmit)return!1;const je=Oe(Ee);if(Es(je))return!1;const Ye=Ao(R);if(Ye)return Hd(je,Ye)||Hd(je,gu(Ye)+".d.ts");if(R.declarationDir&&Qh(R.declarationDir,je,pi,!bt.useCaseSensitiveFileNames()))return!0;if(R.outDir)return Qh(R.outDir,je,pi,!bt.useCaseSensitiveFileNames());if(Gc(je,q6)||ou(je)){const Mt=gu(je);return!!Es(Mt+".ts")||!!Es(Mt+".tsx")}return!1}function Hd(Ee,je){return Db(Ee,je,pi,!bt.useCaseSensitiveFileNames())===0}function Lp(){return bt.getSymlinkCache?bt.getSymlinkCache():(fe||(fe=hue(pi,qr)),ue&&Pe&&!fe.hasProcessedResolutions()&&fe.setSymlinksFromResolutions(ue,Pe),fe)}}function G9e(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,a=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:co,fileExists:f};e.compilerHost.fileExists=f;let l;return i&&(l=e.compilerHost.directoryExists=k=>i.call(e.compilerHost,k)?(y(k),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(C=>{const N=Ao(C.commandLine.options);if(N)t.add(Ti(e.toPath(N)));else{const D=C.commandLine.options.declarationDir||C.commandLine.options.outDir;D&&t.add(e.toPath(D))}})),x(k,!1)):!1),a&&(e.compilerHost.getDirectories=k=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,k)?a.call(e.compilerHost,k):[]),o&&(e.compilerHost.realpath=k=>{var C;return((C=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:C.get(e.toPath(k)))||o.call(e.compilerHost,k)}),{onProgramCreateComplete:u,fileExists:f,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=a}function f(k){return r.call(e.compilerHost,k)?!0:!e.getResolvedProjectReferences()||!ou(k)?!1:x(k,!0)}function g(k){const C=e.getSourceOfProjectReferenceRedirect(e.toPath(k));return C!==void 0?Gs(C)?r.call(e.compilerHost,C):!0:void 0}function m(k){const C=e.toPath(k),N=`${C}${qo}`;return Ox(t,D=>C===D||ns(D,N)||ns(C,`${D}/`))}function y(k){var C;if(!e.getResolvedProjectReferences()||V3(k)||!o||!Xl(k,ah))return;const N=e.getSymlinkCache(),D=D_(e.toPath(k));if((C=N.getSymlinkedDirectories())!=null&&C.has(D))return;const M=ba(o.call(e.compilerHost,k));let V;if(M===k||(V=D_(e.toPath(M)))===D){N.setSymlinkedDirectory(D,!1);return}N.setSymlinkedDirectory(k,{real:D_(M),realPath:V})}function x(k,C){var N;const D=C?j=>g(j):j=>m(j),M=D(k);if(M!==void 0)return M;const V=e.getSymlinkCache(),U=V.getSymlinkedDirectories();if(!U)return!1;const Y=e.toPath(k);return Xl(Y,ah)?C&&((N=V.getSymlinkedFiles())==null?void 0:N.has(Y))?!0:N7(U.entries(),([j,ee])=>{if(!ee||!ns(Y,j))return;const R=D(Y.replace(j,ee.realPath));if(C&&R){const Z=ms(k,e.compilerHost.getCurrentDirectory());V.setSymlinkedFile(Y,`${ee.real}${Z.replace(new RegExp(j,"i"),"")}`)}return R})||!1:!1}}function OX(e,t,r,i){const a=e.getCompilerOptions();if(a.noEmit)return e.getSemanticDiagnostics(t,i),t||Ao(a)?KL:e.emitBuildInfo(r,i);if(!a.noEmitOnError)return;let o=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(o.length===0&&wp(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let l;if(!t&&!Ao(a)){const u=e.emitBuildInfo(r,i);u.diagnostics&&(o=[...o,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function GL(e,t){return zr(e,r=>!r.skippedOn||!t[r.skippedOn])}function $L(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,a,o,l){return E.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,a,o,l)},readFile:r=>t.readFile(r),directoryExists:Hs(t,t.directoryExists),getDirectories:Hs(t,t.getDirectories),realpath:Hs(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||cy,trace:e.trace?r=>e.trace(r):void 0}}function FX(e,t,r,i){if(!e)return Ve;let a;for(let o=0;oi);for(const i of t)i.kind===11&&r.push(i);return r}function XL({imports:e,moduleAugmentations:t},r){if(r(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(MX||{}),QL="\x1B[7m",YL=" ",RX="\x1B[0m",BX="...",Kge=" ",jX=" ",JX={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},M8={getName:AX,getMode:(e,t)=>cp(t,e)},f5={getName:UL,getMode:(e,t)=>c5(e,t==null?void 0:t.impliedNodeFormat)},p5="__inferred type names__.ts",ZL=new Set([p.Cannot_redeclare_block_scoped_variable_0.code,p.A_module_cannot_have_multiple_default_exports.code,p.Another_export_default_is_here.code,p.The_first_export_default_is_here.code,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,p.constructor_is_a_reserved_word.code,p.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,p.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,p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,p.Invalid_use_of_0_in_strict_mode.code,p.A_label_is_not_allowed_here.code,p.with_statements_are_not_allowed_in_strict_mode.code,p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,p.A_class_declaration_without_the_default_modifier_must_have_a_name.code,p.A_class_member_cannot_have_the_0_keyword.code,p.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,p.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,p.A_destructuring_declaration_must_have_an_initializer.code,p.A_get_accessor_cannot_have_parameters.code,p.A_rest_element_cannot_contain_a_binding_pattern.code,p.A_rest_element_cannot_have_a_property_name.code,p.A_rest_element_cannot_have_an_initializer.code,p.A_rest_element_must_be_last_in_a_destructuring_pattern.code,p.A_rest_parameter_cannot_have_an_initializer.code,p.A_rest_parameter_must_be_last_in_a_parameter_list.code,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,p.A_return_statement_cannot_be_used_inside_a_class_static_block.code,p.A_set_accessor_cannot_have_rest_parameter.code,p.A_set_accessor_must_have_exactly_one_parameter.code,p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_export_declaration_cannot_have_modifiers.code,p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_import_declaration_cannot_have_modifiers.code,p.An_object_member_cannot_be_declared_optional.code,p.Argument_of_dynamic_import_cannot_be_spread_element.code,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,p.Cannot_redeclare_identifier_0_in_catch_clause.code,p.Catch_clause_variable_cannot_have_an_initializer.code,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,p.Classes_can_only_extend_a_single_class.code,p.Classes_may_not_have_a_field_named_constructor.code,p.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,p.Duplicate_label_0.code,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,p.for_await_loops_cannot_be_used_inside_a_class_static_block.code,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,p.Jump_target_cannot_cross_function_boundary.code,p.Line_terminator_not_permitted_before_arrow.code,p.Modifiers_cannot_appear_here.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,p.Private_identifiers_are_not_allowed_outside_class_bodies.code,p.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,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,p.Trailing_comma_not_allowed.code,p.Variable_declaration_list_cannot_be_empty.code,p._0_and_1_operations_cannot_be_mixed_without_parentheses.code,p._0_expected.code,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,p._0_list_cannot_be_empty.code,p._0_modifier_already_seen.code,p._0_modifier_cannot_appear_on_a_constructor_declaration.code,p._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,p._0_modifier_cannot_appear_on_a_parameter.code,p._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,p._0_modifier_cannot_be_used_here.code,p._0_modifier_must_precede_1_modifier.code,p._0_declarations_can_only_be_declared_inside_a_block.code,p._0_declarations_must_be_initialized.code,p.extends_clause_already_seen.code,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,p.Class_constructor_may_not_be_a_generator.code,p.Class_constructor_may_not_be_an_accessor.code,p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Private_field_0_must_be_declared_in_an_enclosing_class.code,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),KL={diagnostics:Ve,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),X9e=Rt({"src/compiler/builderStatePublic.ts"(){}});function e0e(e,t,r,i,a,o){const l=[],{emitSkipped:u,diagnostics:f}=e.emit(t,g,i,r,a,o);return{outputFiles:l,emitSkipped:u,diagnostics:f};function g(m,y,x){l.push({name:m,writeByteOrderMark:x,text:y})}}var wm,Q9e=Rt({"src/compiler/builderState.ts"(){Ls(),(e=>{function t(){function X(H,Q,ne){const ue={getKeys:fe=>Q.get(fe),getValues:fe=>H.get(fe),keys:()=>H.keys(),deleteKey:fe=>{(ne||(ne=new Set)).add(fe);const G=H.get(fe);return G?(G.forEach(Ne=>i(Q,Ne,fe)),H.delete(fe),!0):!1},set:(fe,G)=>{ne==null||ne.delete(fe);const Ne=H.get(fe);return H.set(fe,G),Ne==null||Ne.forEach(De=>{G.has(De)||i(Q,De,fe)}),G.forEach(De=>{Ne!=null&&Ne.has(De)||r(Q,De,fe)}),ue}};return ue}return X(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(X,H,Q){let ne=X.get(H);ne||(ne=new Set,X.set(H,ne)),ne.add(Q)}function i(X,H,Q){const ne=X.get(H);return ne!=null&&ne.delete(Q)?(ne.size||X.delete(H),!0):!1}function a(X){return Hi(X.declarations,H=>{var Q;return(Q=Rn(H))==null?void 0:Q.resolvedPath})}function o(X,H){const Q=X.getSymbolAtLocation(H);return Q&&a(Q)}function l(X,H,Q,ne){return ho(X.getProjectReferenceRedirect(H)||H,Q,ne)}function u(X,H,Q){let ne;if(H.imports&&H.imports.length>0){const Ne=X.getTypeChecker();for(const De of H.imports){const Xe=o(Ne,De);Xe==null||Xe.forEach(G)}}const ue=Ti(H.resolvedPath);if(H.referencedFiles&&H.referencedFiles.length>0)for(const Ne of H.referencedFiles){const De=l(X,Ne.fileName,ue,Q);G(De)}if(H.resolvedTypeReferenceDirectiveNames&&H.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Ne})=>{if(!Ne)return;const De=Ne.resolvedFileName,Xe=l(X,De,ue,Q);G(Xe)}),H.moduleAugmentations.length){const Ne=X.getTypeChecker();for(const De of H.moduleAugmentations){if(!fa(De))continue;const Xe=Ne.getSymbolAtLocation(De);!Xe||fe(Xe)}}for(const Ne of X.getTypeChecker().getAmbientModules())Ne.declarations&&Ne.declarations.length>1&&fe(Ne);return ne;function fe(Ne){if(!!Ne.declarations)for(const De of Ne.declarations){const Xe=Rn(De);Xe&&Xe!==H&&G(Xe.resolvedPath)}}function G(Ne){(ne||(ne=new Set)).add(Ne)}}function f(X,H){return H&&!H.referencedMap==!X}e.canReuseOldState=f;function g(X,H,Q){var ne,ue,fe;const G=new Map,Ne=X.getCompilerOptions(),De=Ao(Ne),Xe=Ne.module!==0&&!De?t():void 0,ve=Xe?t():void 0,be=f(Xe,H);X.getTypeChecker();for(const xe of X.getSourceFiles()){const rt=E.checkDefined(xe.version,"Program intended to be used with Builder should have source files with versions set"),ct=be?(ne=H.oldSignatures)==null?void 0:ne.get(xe.resolvedPath):void 0,pe=ct===void 0?be?(ue=H.fileInfos.get(xe.resolvedPath))==null?void 0:ue.signature:void 0:ct||void 0;if(Xe){const Pe=u(X,xe,X.getCanonicalFileName);if(Pe&&Xe.set(xe.resolvedPath,Pe),be){const Ge=(fe=H.oldExportedModulesMap)==null?void 0:fe.get(xe.resolvedPath),tt=Ge===void 0?H.exportedModulesMap.getValues(xe.resolvedPath):Ge||void 0;tt&&ve.set(xe.resolvedPath,tt)}}G.set(xe.resolvedPath,{version:rt,signature:pe,affectsGlobalScope:De?void 0:R(xe)||void 0,impliedFormat:xe.impliedNodeFormat})}return{fileInfos:G,referencedMap:Xe,exportedModulesMap:ve,useFileVersionAsSignature:!Q&&!be}}e.create=g;function m(X){X.allFilesExcludingDefaultLibraryFile=void 0,X.allFileNames=void 0}e.releaseCache=m;function y(X,H,Q,ne,ue){var fe,G;const Ne=x(X,H,Q,ne,ue);return(fe=X.oldSignatures)==null||fe.clear(),(G=X.oldExportedModulesMap)==null||G.clear(),Ne}e.getFilesAffectedBy=y;function x(X,H,Q,ne,ue){const fe=H.getSourceFileByPath(Q);return fe?N(X,H,fe,ne,ue)?(X.referencedMap?_e:oe)(X,H,fe,ne,ue):[fe]:Ve}e.getFilesAffectedByWithOldState=x;function k(X,H,Q){X.fileInfos.get(Q).signature=H,(X.hasCalledUpdateShapeSignature||(X.hasCalledUpdateShapeSignature=new Set)).add(Q)}e.updateSignatureOfFile=k;function C(X,H,Q,ne,ue){X.emit(H,(fe,G,Ne,De,Xe,ve)=>{E.assert(ou(fe),`File extension for signature expected to be dts: Got:: ${fe}`),ue(HX(X,H,G,ne,ve),Xe)},Q,!0,void 0,!0)}e.computeDtsSignature=C;function N(X,H,Q,ne,ue,fe=X.useFileVersionAsSignature){var G;if((G=X.hasCalledUpdateShapeSignature)!=null&&G.has(Q.resolvedPath))return!1;const Ne=X.fileInfos.get(Q.resolvedPath),De=Ne.signature;let Xe;if(!Q.isDeclarationFile&&!fe&&C(H,Q,ne,ue,(ve,be)=>{Xe=ve,Xe!==De&&D(X,Q,be[0].exportedModulesFromDeclarationEmit)}),Xe===void 0&&(Xe=Q.version,X.exportedModulesMap&&Xe!==De)){(X.oldExportedModulesMap||(X.oldExportedModulesMap=new Map)).set(Q.resolvedPath,X.exportedModulesMap.getValues(Q.resolvedPath)||!1);const ve=X.referencedMap?X.referencedMap.getValues(Q.resolvedPath):void 0;ve?X.exportedModulesMap.set(Q.resolvedPath,ve):X.exportedModulesMap.deleteKey(Q.resolvedPath)}return(X.oldSignatures||(X.oldSignatures=new Map)).set(Q.resolvedPath,De||!1),(X.hasCalledUpdateShapeSignature||(X.hasCalledUpdateShapeSignature=new Set)).add(Q.resolvedPath),Ne.signature=Xe,Xe!==De}e.updateShapeSignature=N;function D(X,H,Q){if(!X.exportedModulesMap)return;(X.oldExportedModulesMap||(X.oldExportedModulesMap=new Map)).set(H.resolvedPath,X.exportedModulesMap.getValues(H.resolvedPath)||!1);const ne=M(Q);ne?X.exportedModulesMap.set(H.resolvedPath,ne):X.exportedModulesMap.deleteKey(H.resolvedPath)}e.updateExportedModules=D;function M(X){let H;return X==null||X.forEach(Q=>a(Q).forEach(ne=>(H!=null?H:H=new Set).add(ne))),H}e.getExportedModules=M;function V(X,H,Q){const ne=H.getCompilerOptions();if(Ao(ne)||!X.referencedMap||R(Q))return U(X,H);const ue=new Set,fe=[Q.resolvedPath];for(;fe.length;){const G=fe.pop();if(!ue.has(G)){ue.add(G);const Ne=X.referencedMap.getValues(G);if(Ne)for(const De of Ne.keys())fe.push(De)}}return ra(O7(ue.keys(),G=>{var De;var Ne;return(De=(Ne=H.getSourceFileByPath(G))==null?void 0:Ne.fileName)!=null?De:G}))}e.getAllDependencies=V;function U(X,H){if(!X.allFileNames){const Q=H.getSourceFiles();X.allFileNames=Q===Ve?Ve:Q.map(ne=>ne.fileName)}return X.allFileNames}function Y(X,H){const Q=X.referencedMap.getKeys(H);return Q?ra(Q.keys()):[]}e.getReferencedByPaths=Y;function j(X){for(const H of X.statements)if(!T9(H))return!1;return!0}function ee(X){return dt(X.moduleAugmentations,H=>Id(H.parent))}function R(X){return ee(X)||!Yu(X)&&!Zf(X)&&!j(X)}function Z(X,H,Q){if(X.allFilesExcludingDefaultLibraryFile)return X.allFilesExcludingDefaultLibraryFile;let ne;Q&&ue(Q);for(const fe of H.getSourceFiles())fe!==Q&&ue(fe);return X.allFilesExcludingDefaultLibraryFile=ne||Ve,X.allFilesExcludingDefaultLibraryFile;function ue(fe){H.isSourceFileDefaultLibrary(fe)||(ne||(ne=[])).push(fe)}}e.getAllFilesExcludingDefaultLibraryFile=Z;function oe(X,H,Q){const ne=H.getCompilerOptions();return ne&&Ao(ne)?[Q]:Z(X,H,Q)}function _e(X,H,Q,ne,ue){if(R(Q))return Z(X,H,Q);const fe=H.getCompilerOptions();if(fe&&(nd(fe)||Ao(fe)))return[Q];const G=new Map;G.set(Q.resolvedPath,Q);const Ne=Y(X,Q.resolvedPath);for(;Ne.length>0;){const De=Ne.pop();if(!G.has(De)){const Xe=H.getSourceFileByPath(De);G.set(De,Xe),Xe&&N(X,H,Xe,ne,ue)&&Ne.push(...Y(X,Xe.resolvedPath))}}return ra(O7(G.values(),De=>De))}})(wm||(wm={}))}});function b1(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),wp(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function T4(e,t){const r=t&&(B0(t)?t:b1(t)),i=B0(e)?e:b1(e);if(r===i)return 0;if(!r||!i)return i;const a=r^i;let o=0;return a&7&&(o=i&7),a&24&&(o=o|i&24),o}function Y9e(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!Ox(e,r=>!t.has(r))}function Z9e(e,t){var r,i;const a=wm.create(e,t,!1);a.program=e;const o=e.getCompilerOptions();a.compilerOptions=o;const l=Ao(o);l?o.composite&&(t==null?void 0:t.outSignature)&&l===Ao(t==null?void 0:t.compilerOptions)&&(a.outSignature=t.outSignature&&n0e(o,t.compilerOptions,t.outSignature)):a.semanticDiagnosticsPerFile=new Map,a.changedFilesSet=new Set,a.latestChangedDtsFile=o.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const u=wm.canReuseOldState(a.referencedMap,t),f=u?t.compilerOptions:void 0,g=u&&t.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!due(o,f),m=o.composite&&(t==null?void 0:t.emitSignatures)&&!l&&!gue(o,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(N=>a.changedFilesSet.add(N)),!l&&((i=t.affectedFilesPendingEmit)==null?void 0:i.size)&&(a.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),a.seenAffectedFiles=new Set),a.programEmitPending=t.programEmitPending):a.buildInfoEmitPending=!0;const y=a.referencedMap,x=u?t.referencedMap:void 0,k=g&&!o.skipLibCheck==!f.skipLibCheck,C=k&&!o.skipDefaultLibCheck==!f.skipDefaultLibCheck;if(a.fileInfos.forEach((N,D)=>{var U;let M,V;if(!u||!(M=t.fileInfos.get(D))||M.version!==N.version||M.impliedFormat!==N.impliedFormat||!Y9e(V=y&&y.getValues(D),x&&x.getValues(D))||V&&Ox(V,Y=>!a.fileInfos.has(Y)&&t.fileInfos.has(Y)))t0e(a,D);else if(g){const Y=e.getSourceFileByPath(D);if(Y.isDeclarationFile&&!k||Y.hasNoDefaultLib&&!C)return;const j=t.semanticDiagnosticsPerFile.get(D);j&&(a.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?eOe(j,e):K9e(j,e)),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=new Set),a.semanticDiagnosticsFromOldState.add(D))}if(m){const Y=t.emitSignatures.get(D);Y&&((U=a.emitSignatures)!=null?U:a.emitSignatures=new Map).set(D,n0e(o,t.compilerOptions,Y))}}),u&&Au(t.fileInfos,(N,D)=>a.fileInfos.has(D)?!1:l||N.affectsGlobalScope?!0:(a.buildInfoEmitPending=!0,!1)))wm.getAllFilesExcludingDefaultLibraryFile(a,e,void 0).forEach(N=>t0e(a,N.resolvedPath));else if(f){const N=mue(o,f)?b1(o):T4(o,f);N!==0&&(l?a.programEmitPending=a.programEmitPending?a.programEmitPending|N:N:(e.getSourceFiles().forEach(D=>{a.changedFilesSet.has(D.resolvedPath)||$X(a,D.resolvedPath,N)}),E.assert(!a.seenAffectedFiles||!a.seenAffectedFiles.size),a.seenAffectedFiles=a.seenAffectedFiles||new Set,a.buildInfoEmitPending=!0))}return l&&!a.changedFilesSet.size&&(u&&(a.bundle=t.bundle),dt(e.getProjectReferences(),N=>!!N.prepend)&&(a.programEmitPending=b1(o))),a}function t0e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function n0e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Gs(r)?[r]:r[0]}function K9e(e,t){return e.length?cl(e,r=>{if(Gs(r.messageText))return r;const i=zX(r.messageText,r.file,t,a=>{var o;return(o=a.repopulateInfo)==null?void 0:o.call(a)});return i===r.messageText?r:{...r,messageText:i}}):e}function zX(e,t,r,i){const a=i(e);if(a)return{...SW(t,r,a.moduleReference,a.mode,a.packageName||a.moduleReference),next:r0e(e.next,t,r,i)};const o=r0e(e.next,t,r,i);return o===e.next?e:{...e,next:o}}function r0e(e,t,r,i){return cl(e,a=>zX(a,t,r,i))}function eOe(e,t){if(!e.length)return Ve;let r;return e.map(a=>{const o=i0e(a,t,i);o.reportsUnnecessary=a.reportsUnnecessary,o.reportsDeprecated=a.reportDeprecated,o.source=a.source,o.skippedOn=a.skippedOn;const{relatedInformation:l}=a;return o.relatedInformation=l?l.length?l.map(u=>i0e(u,t,i)):[]:void 0,o});function i(a){return r!=null||(r=Ti(ms(ch(t.getCompilerOptions()),t.getCurrentDirectory()))),ho(a,r,t.getCanonicalFileName)}}function i0e(e,t,r){const{file:i}=e,a=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:a,messageText:Gs(e.messageText)?e.messageText:zX(e.messageText,a,t,o=>o.info)}}function tOe(e){wm.releaseCache(e),e.program=void 0}function nOe(e){const t=Ao(e.compilerOptions);return E.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}function rOe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function s0e(e,t){E.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function a0e(e,t,r){for(var i,a;;){const{affectedFiles:o}=e;if(o){const g=e.seenAffectedFiles;let m=e.affectedFilesIndex;for(;m{const o=i&7;o?e.affectedFilesPendingEmit.set(a,o):e.affectedFilesPendingEmit.delete(a)})}}function sOe(e,t){var r;if(!!((r=e.affectedFilesPendingEmit)!=null&&r.size))return Au(e.affectedFilesPendingEmit,(i,a)=>{var o;const l=e.program.getSourceFileByPath(a);if(!l||!qx(l,e.program)){e.affectedFilesPendingEmit.delete(a);return}const u=(o=e.seenEmittedFiles)==null?void 0:o.get(l.resolvedPath);let f=T4(i,u);if(t&&(f=f&24),f)return{affectedFile:l,emitKind:f}})}function o0e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=E.checkDefined(e.program),r=t.getCompilerOptions();pn(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!B3(i,r,t)&&VX(e,i.resolvedPath))}}function aOe(e,t,r,i){if(VX(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){o0e(e),wm.updateShapeSignature(e,E.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||oOe(e,t,r,i)}function eM(e,t,r,i){if(VX(e,t),!e.changedFilesSet.has(t)){const a=E.checkDefined(e.program),o=a.getSourceFileByPath(t);o&&(wm.updateShapeSignature(e,a,o,r,i,!0),wp(e.compilerOptions)&&$X(e,t,e.compilerOptions.declarationMap?24:8))}}function VX(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function c0e(e,t){const r=E.checkDefined(e.oldSignatures).get(t)||void 0;return E.checkDefined(e.fileInfos.get(t)).signature!==r}function UX(e,t,r,i){var a;return(a=e.fileInfos.get(t))!=null&&a.affectsGlobalScope?(wm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(o=>eM(e,o.resolvedPath,r,i)),o0e(e),!0):!1}function oOe(e,t,r,i){var a;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!c0e(e,t.resolvedPath))return;if(nd(e.compilerOptions)){const l=new Map;l.set(t.resolvedPath,!0);const u=wm.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const f=u.pop();if(!l.has(f)){if(l.set(f,!0),UX(e,f,r,i))return;if(eM(e,f,r,i),c0e(e,f)){const g=E.checkDefined(e.program).getSourceFileByPath(f);u.push(...wm.getReferencedByPaths(e,g.resolvedPath))}}}}const o=new Set;(a=e.exportedModulesMap.getKeys(t.resolvedPath))==null||a.forEach(l=>{if(UX(e,l,r,i))return!0;const u=e.referencedMap.getKeys(l);return u&&Ox(u,f=>l0e(e,f,o,r,i))})}function l0e(e,t,r,i,a){var o,l;if(!!Rv(r,t)){if(UX(e,t,i,a))return!0;eM(e,t,i,a),(o=e.exportedModulesMap.getKeys(t))==null||o.forEach(u=>l0e(e,u,r,i,a)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&eM(e,u,i,a))}}function WX(e,t,r){return es(cOe(e,t,r),E.checkDefined(e.program).getProgramDiagnostics(t))}function cOe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const o=e.semanticDiagnosticsPerFile.get(i);if(o)return GL(o,e.compilerOptions)}const a=E.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,a),GL(a,e.compilerOptions)}function _0e(e){return!!Ao(e.options||{})}function lOe(e,t){var r,i,a;const o=E.checkDefined(e.program).getCurrentDirectory(),l=Ti(ms(ch(e.compilerOptions),o)),u=e.latestChangedDtsFile?j(e.latestChangedDtsFile):void 0,f=[],g=new Map,m=[];if(Ao(e.compilerOptions)){const X=ra(e.fileInfos.entries(),([G,Ne])=>{const De=R(G);return oe(G,De),Ne.impliedFormat?{version:Ne.version,impliedFormat:Ne.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Ne.version}),H={fileNames:f,fileInfos:X,root:m,options:_e(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===b1(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Q,dts:ne,commonSourceDirectory:ue,sourceFiles:fe}=t;return e.bundle=t={commonSourceDirectory:ue,sourceFiles:fe,js:Q||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:ne||(wp(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},i5(H,t)}let y,x,k;const C=ra(e.fileInfos.entries(),([X,H])=>{var Q,ne;const ue=R(X);oe(X,ue),E.assert(f[ue-1]===ee(X));const fe=(Q=e.oldSignatures)==null?void 0:Q.get(X),G=fe!==void 0?fe||void 0:H.signature;if(e.compilerOptions.composite){const Ne=e.program.getSourceFileByPath(X);if(!Zf(Ne)&&qx(Ne,e.program)){const De=(ne=e.emitSignatures)==null?void 0:ne.get(X);De!==G&&(k||(k=[])).push(De===void 0?ue:[ue,!Gs(De)&&De[0]===G?Ve:De])}}return H.version===G?H.affectsGlobalScope||H.impliedFormat?{version:H.version,signature:void 0,affectsGlobalScope:H.affectsGlobalScope,impliedFormat:H.impliedFormat}:H.version:G!==void 0?fe===void 0?H:{version:H.version,signature:G,affectsGlobalScope:H.affectsGlobalScope,impliedFormat:H.impliedFormat}:{version:H.version,signature:!1,affectsGlobalScope:H.affectsGlobalScope,impliedFormat:H.impliedFormat}});let N;e.referencedMap&&(N=ra(e.referencedMap.keys()).sort(w_).map(X=>[R(X),Z(e.referencedMap.getValues(X))]));let D;e.exportedModulesMap&&(D=Hi(ra(e.exportedModulesMap.keys()).sort(w_),X=>{var H;const Q=(H=e.oldExportedModulesMap)==null?void 0:H.get(X);if(Q===void 0)return[R(X),Z(e.exportedModulesMap.getValues(X))];if(Q)return[R(X),Z(Q)]}));let M;if(e.semanticDiagnosticsPerFile)for(const X of ra(e.semanticDiagnosticsPerFile.keys()).sort(w_)){const H=e.semanticDiagnosticsPerFile.get(X);(M||(M=[])).push(H.length?[R(X),uOe(H,ee)]:R(X))}let V;if((a=e.affectedFilesPendingEmit)!=null&&a.size){const X=b1(e.compilerOptions),H=new Set;for(const Q of ra(e.affectedFilesPendingEmit.keys()).sort(w_))if(Rv(H,Q)){const ne=e.program.getSourceFileByPath(Q);if(!ne||!qx(ne,e.program))continue;const ue=R(Q),fe=e.affectedFilesPendingEmit.get(Q);(V||(V=[])).push(fe===X?ue:fe===8?[ue]:[ue,fe])}}let U;if(e.changedFilesSet.size)for(const X of ra(e.changedFilesSet.keys()).sort(w_))(U||(U=[])).push(R(X));const Y={fileNames:f,fileInfos:C,root:m,options:_e(e.compilerOptions),fileIdsList:y,referencedMap:N,exportedModulesMap:D,semanticDiagnosticsPerFile:M,affectedFilesPendingEmit:V,changeFileSet:U,emitSignatures:k,latestChangedDtsFile:u};return i5(Y,t);function j(X){return ee(ms(X,o))}function ee(X){return Wv(um(l,X,e.program.getCanonicalFileName))}function R(X){let H=g.get(X);return H===void 0&&(f.push(ee(X)),g.set(X,H=f.length)),H}function Z(X){const H=ra(X.keys(),R).sort(Co),Q=H.join();let ne=x==null?void 0:x.get(Q);return ne===void 0&&((y||(y=[])).push(H),(x||(x=new Map)).set(Q,ne=y.length)),ne}function oe(X,H){const Q=e.program.getSourceFile(X);if(!e.program.getFileIncludeReasons().get(Q.path).some(G=>G.kind===0))return;if(!m.length)return m.push(H);const ne=m[m.length-1],ue=Ds(ne);if(ue&&ne[1]===H-1)return ne[1]=H;if(ue||m.length===1||ne!==H-1)return m.push(H);const fe=m[m.length-2];return!B0(fe)||fe!==ne-1?m.push(H):(m[m.length-2]=[fe,H],m.length=m.length-1)}function _e(X){let H;const{optionsNameMap:Q}=p4();for(const ne of Jg(X).sort(w_)){const ue=Q.get(ne.toLowerCase());ue!=null&&ue.affectsBuildInfo&&((H||(H={}))[ne]=_Oe(ue,X[ne],j))}return H}}function _Oe(e,t,r){if(e){if(E.assert(e.type!=="listOrElement"),e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t)}return t}function uOe(e,t){return E.assert(!!e.length),e.map(r=>{const i=u0e(r,t);i.reportsUnnecessary=r.reportsUnnecessary,i.reportDeprecated=r.reportsDeprecated,i.source=r.source,i.skippedOn=r.skippedOn;const{relatedInformation:a}=r;return i.relatedInformation=a?a.length?a.map(o=>u0e(o,t)):[]:void 0,i})}function u0e(e,t){const{file:r}=e;return{...e,file:r?t(r.resolvedPath):void 0,messageText:Gs(e.messageText)?e.messageText:qX(e.messageText)}}function qX(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:f0e(e.next)};const t=f0e(e.next);return t===e.next?e:{...e,next:t}}function f0e(e){return e&&(pn(e,(t,r)=>{const i=qX(t);if(t===i)return;const a=r>0?e.slice(0,r-1):[];a.push(i);for(let o=r+1;o`${f(m)}${G7[m.category]}${m.code}: ${u(m.messageText)}`).join(` +`)),((g=i.createHash)!=null?g:X7)(r);function u(m){return Gs(m)?m:m===void 0?"":m.next?m.messageText+m.next.map(u).join(` +`):m.messageText}function f(m){return m.file.resolvedPath===t.resolvedPath?`(${m.start},${m.length})`:(l===void 0&&(l=Ti(t.resolvedPath)),`${Wv(um(l,m.file.resolvedPath,e.getCanonicalFileName))}(${m.start},${m.length})`)}}function gT(e,t,r){var i;return((i=t.createHash)!=null?i:X7)(p0e(e,r))}function GX(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:a}){let o=i&&i.getState();if(o&&t===o.program&&a===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;const l=Z9e(t,o);t.getBuildInfo=N=>lOe(l,N),t=void 0,i=void 0,o=void 0;const u=()=>l,f=QX(u,a);return f.getState=u,f.saveEmitState=()=>nOe(l),f.restoreEmitState=N=>rOe(l,N),f.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,f.getAllDependencies=N=>wm.getAllDependencies(l,E.checkDefined(l.program),N),f.getSemanticDiagnostics=C,f.emit=x,f.releaseProgram=()=>tOe(l),e===0?f.getSemanticDiagnosticsOfNextAffectedFile=k:e===1?(f.getSemanticDiagnosticsOfNextAffectedFile=k,f.emitNextAffectedFile=m,f.emitBuildInfo=g):ks(),f;function g(N,D){if(l.buildInfoEmitPending){const M=E.checkDefined(l.program).emitBuildInfo(N||Hs(r,r.writeFile),D);return l.buildInfoEmitPending=!1,M}return KL}function m(N,D,M,V){var X,H;var U,Y,j;let ee=a0e(l,D,r);const R=b1(l.compilerOptions);let Z=M?R&24:R;if(!ee)if(Ao(l.compilerOptions)){if(!l.programEmitPending||(Z=l.programEmitPending,M&&(Z=Z&24),!Z))return;ee=l.program}else{const Q=sOe(l,M);if(!Q){if(!l.buildInfoEmitPending)return;const ne=l.program,ue=ne.emitBuildInfo(N||Hs(r,r.writeFile),D);return l.buildInfoEmitPending=!1,{result:ue,affected:ne}}({affectedFile:ee,emitKind:Z}=Q)}let oe;Z&7&&(oe=0),Z&24&&(oe=oe===void 0?1:void 0),ee===l.program&&(l.programEmitPending=l.changedFilesSet.size?T4(R,Z):l.programEmitPending?T4(l.programEmitPending,Z):void 0);const _e=l.program.emit(ee===l.program?void 0:ee,y(N,V),D,oe,V);if(ee!==l.program){const Q=ee;l.seenAffectedFiles.add(Q.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const ne=((U=l.seenEmittedFiles)==null?void 0:U.get(Q.resolvedPath))||0;((X=l.seenEmittedFiles)!=null?X:l.seenEmittedFiles=new Map).set(Q.resolvedPath,Z|ne);const ue=((Y=l.affectedFilesPendingEmit)==null?void 0:Y.get(Q.resolvedPath))||R,fe=T4(ue,Z|ne);fe?((H=l.affectedFilesPendingEmit)!=null?H:l.affectedFilesPendingEmit=new Map).set(Q.resolvedPath,fe):(j=l.affectedFilesPendingEmit)==null||j.delete(Q.resolvedPath)}else l.changedFilesSet.clear();return{result:_e,affected:ee}}function y(N,D){return wp(l.compilerOptions)?(M,V,U,Y,j,ee)=>{var H,Q,ne;var R,Z,oe,_e;if(ou(M))if(Ao(l.compilerOptions)){if(l.compilerOptions.composite){const ue=X(l.outSignature,void 0);if(!ue)return;l.outSignature=ue}}else{E.assert((j==null?void 0:j.length)===1);let ue;if(!D){const fe=j[0],G=l.fileInfos.get(fe.resolvedPath);if(G.signature===fe.version){const Ne=HX(l.program,fe,V,r,ee);(R=ee==null?void 0:ee.diagnostics)!=null&&R.length||(ue=Ne),Ne!==fe.version&&(r.storeFilesChangingSignatureDuringEmit&&((H=l.filesChangingSignature)!=null?H:l.filesChangingSignature=new Set).add(fe.resolvedPath),l.exportedModulesMap&&wm.updateExportedModules(l,fe,fe.exportedModulesFromDeclarationEmit),l.affectedFiles?(((Z=l.oldSignatures)==null?void 0:Z.get(fe.resolvedPath))===void 0&&((Q=l.oldSignatures)!=null?Q:l.oldSignatures=new Map).set(fe.resolvedPath,G.signature||!1),G.signature=Ne):(G.signature=Ne,(oe=l.oldExportedModulesMap)==null||oe.clear()))}}if(l.compilerOptions.composite){const fe=j[0].resolvedPath;if(ue=X((_e=l.emitSignatures)==null?void 0:_e.get(fe),ue),!ue)return;((ne=l.emitSignatures)!=null?ne:l.emitSignatures=new Map).set(fe,ue)}}N?N(M,V,U,Y,j,ee):r.writeFile?r.writeFile(M,V,U,Y,j,ee):l.program.writeFile(M,V,U,Y,j,ee);function X(ue,fe){const G=!ue||Gs(ue)?ue:ue[0];if(fe!=null||(fe=gT(V,r,ee)),fe===G){if(ue===G)return;ee?ee.differsOnlyInMap=!0:ee={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=M;return fe}}:N||Hs(r,r.writeFile)}function x(N,D,M,V,U){e===1&&s0e(l,N);const Y=OX(f,N,D,M);if(Y)return Y;if(!N)if(e===1){let j=[],ee=!1,R,Z=[],oe;for(;oe=m(D,M,V,U);)ee=ee||oe.result.emitSkipped,R=Fr(R,oe.result.diagnostics),Z=Fr(Z,oe.result.emittedFiles),j=Fr(j,oe.result.sourceMaps);return{emitSkipped:ee,diagnostics:R||Ve,emittedFiles:Z,sourceMaps:j}}else iOe(l,V);return E.checkDefined(l.program).emit(N,y(D,U),M,V,U)}function k(N,D){for(;;){const M=a0e(l,N,r);let V;if(M)if(M!==l.program){const U=M;if((!D||!D(U))&&(V=WX(l,U,N)),l.seenAffectedFiles.add(U.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!V)continue}else V=l.program.getSemanticDiagnostics(void 0,N),l.changedFilesSet.clear(),l.programEmitPending=b1(l.compilerOptions);else return;return{result:V,affected:M}}}function C(N,D){s0e(l,N);const M=E.checkDefined(l.program).getCompilerOptions();if(Ao(M))return E.assert(!l.semanticDiagnosticsPerFile),E.checkDefined(l.program).getSemanticDiagnostics(N,D);if(N)return WX(l,N,D);for(;k(D););let V;for(const U of E.checkDefined(l.program).getSourceFiles())V=Fr(V,WX(l,U,D));return V||Ve}}function $X(e,t,r){var o;var i;const a=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((o=e.affectedFilesPendingEmit)!=null?o:e.affectedFilesPendingEmit=new Map).set(t,a|r)}function d0e(e){return Gs(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Gs(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function m0e(e,t){return B0(e)?t:e[1]||8}function g0e(e,t){return e||b1(t||{})}function h0e(e,t,r){var i,a,o,l;const u=e.program,f=Ti(ms(t,r.getCurrentDirectory())),g=Ql(r.useCaseSensitiveFileNames());let m;const y=(i=u.fileNames)==null?void 0:i.map(C);let x;const k=u.latestChangedDtsFile?N(u.latestChangedDtsFile):void 0;if(_0e(u)){const U=new Map;u.fileInfos.forEach((Y,j)=>{const ee=D(j+1);U.set(ee,Gs(Y)?{version:Y,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:Y)}),m={fileInfos:U,compilerOptions:u.options?BG(u.options,N):{},latestChangedDtsFile:k,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:g0e(u.pendingEmit,u.options),bundle:e.bundle}}else{x=(a=u.fileIdsList)==null?void 0:a.map(ee=>new Set(ee.map(D)));const U=new Map,Y=((o=u.options)==null?void 0:o.composite)&&!Ao(u.options)?new Map:void 0;u.fileInfos.forEach((ee,R)=>{const Z=D(R+1),oe=d0e(ee);U.set(Z,oe),Y&&oe.signature&&Y.set(Z,oe.signature)}),(l=u.emitSignatures)==null||l.forEach(ee=>{if(B0(ee))Y.delete(D(ee));else{const R=D(ee[0]);Y.set(R,!Gs(ee[1])&&!ee[1].length?[Y.get(R)]:ee[1])}});const j=u.affectedFilesPendingEmit?b1(u.options||{}):void 0;m={fileInfos:U,compilerOptions:u.options?BG(u.options,N):{},referencedMap:V(u.referencedMap),exportedModulesMap:V(u.exportedModulesMap),semanticDiagnosticsPerFile:u.semanticDiagnosticsPerFile&&Bv(u.semanticDiagnosticsPerFile,ee=>D(B0(ee)?ee:ee[0]),ee=>B0(ee)?Ve:ee[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&Bv(u.affectedFilesPendingEmit,ee=>D(B0(ee)?ee:ee[0]),ee=>m0e(ee,j)),changedFilesSet:new Set(an(u.changeFileSet,D)),latestChangedDtsFile:k,emitSignatures:Y!=null&&Y.size?Y:void 0}}return{getState:()=>m,saveEmitState:co,restoreEmitState:co,getProgram:ks,getProgramOrUndefined:cy,releaseProgram:co,getCompilerOptions:()=>m.compilerOptions,getSourceFile:ks,getSourceFiles:ks,getOptionsDiagnostics:ks,getGlobalDiagnostics:ks,getConfigFileParsingDiagnostics:ks,getSyntacticDiagnostics:ks,getDeclarationDiagnostics:ks,getSemanticDiagnostics:ks,emit:ks,getAllDependencies:ks,getCurrentDirectory:ks,emitNextAffectedFile:ks,getSemanticDiagnosticsOfNextAffectedFile:ks,emitBuildInfo:ks,close:co,hasChangedEmitSignature:j0};function C(U){return ho(U,f,g)}function N(U){return ms(U,f)}function D(U){return y[U-1]}function M(U){return x[U-1]}function V(U){if(!U)return;const Y=wm.createManyToManyPathMap();return U.forEach(([j,ee])=>Y.set(D(j),M(ee))),Y}}function XX(e,t,r){const i=Ti(ms(t,r.getCurrentDirectory())),a=Ql(r.useCaseSensitiveFileNames()),o=new Map;let l=0;const u=[];return e.fileInfos.forEach((f,g)=>{const m=ho(e.fileNames[g],i,a),y=Gs(f)?f:f.version;if(o.set(m,y),le().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,a)=>r().getSyntacticDiagnostics(i,a),getDeclarationDiagnostics:(i,a)=>r().getDeclarationDiagnostics(i,a),getSemanticDiagnostics:(i,a)=>r().getSemanticDiagnostics(i,a),emit:(i,a,o,l,u)=>r().emit(i,a,o,l,u),emitBuildInfo:(i,a)=>r().emitBuildInfo(i,a),getAllDependencies:ks,getCurrentDirectory:()=>r().getCurrentDirectory(),close:co};function r(){return E.checkDefined(e().program)}}var YX,ZX,fOe=Rt({"src/compiler/builder.ts"(){Ls(),YX=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(YX||{}),ZX=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(ZX||{})}});function pOe(e,t,r,i,a,o){return GX(0,tM(e,t,r,i,a,o))}function KX(e,t,r,i,a,o){return GX(1,tM(e,t,r,i,a,o))}function dOe(e,t,r,i,a,o){const{newProgram:l,configFileParsingDiagnostics:u}=tM(e,t,r,i,a,o);return QX(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var mOe=Rt({"src/compiler/builderPublic.ts"(){Ls()}});function eQ(e){return vc(e,"/node_modules/.staging")?qk(e,"/.staging"):dt(ew,t=>Xl(e,t))?void 0:e}function tQ(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==qo&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:r+2}function y0e(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=tQ(e,t);return t>r+1}function v0e(e){return T0e(Ti(e))}function b0e(e,t){if(t.lengtha.length+1?rQ(u,l,Math.max(a.length+1,f+1)):{dir:r,dirPath:i,nonRecursive:!0}:S0e(u,l,l.length-1,f,g,a)}function S0e(e,t,r,i,a,o){if(a!==-1)return rQ(e,t,a+1);let l=!0,u=r;for(let f=0;fe.getCurrentDirectory()),U=e.getCachedDirectoryStructureHost(),Y=new Map,j=m4(V(),e.getCanonicalFileName,e.getCompilationSettings()),ee=new Map,R=nL(V(),e.getCanonicalFileName,e.getCompilationSettings(),j.getPackageJsonInfoCache()),Z=new Map,oe=m4(V(),e.getCanonicalFileName,f$(e.getCompilationSettings()),j.getPackageJsonInfoCache()),_e=new Map,X=new Map,H=C0e(t,V),Q=e.toPath(H),ne=Dl(Q),ue=new Map;return{getModuleResolutionCache:()=>j,startRecordingFilesWithChangedResolutions:Xe,finishRecordingFilesWithChangedResolutions:ve,startCachingPerDirectoryResolution:rt,finishCachingPerDirectoryResolution:pe,resolveModuleNameLiterals:Je,resolveTypeReferenceDirectiveReferences:mt,resolveLibrary:ot,resolveSingleModuleNameWithoutWatching:Jt,removeResolutionsFromProjectReferenceRedirects:Ct,removeResolutionsOfFile:cn,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:Sr,invalidateResolutionsOfFailedLookupLocations:Sn,setFilesWithInvalidatedNonRelativeUnresolvedImports:wi,createHasInvalidatedResolutions:xe,isFileWithInvalidatedNonRelativeUnresolvedImports:be,updateTypeRootsWatch:it,closeTypeRootsWatch:ut,clear:Ne,onChangesAffectModuleResolution:De};function fe(ae){return ae.resolvedModule}function G(ae){return ae.resolvedTypeReferenceDirective}function Ne(){Mf(_e,Em),Mf(X,Em),l.clear(),ut(),Y.clear(),ee.clear(),g.clear(),u.clear(),f.clear(),C=void 0,N=void 0,D=void 0,k=void 0,x=void 0,M=!1,j.clear(),R.clear(),j.update(e.getCompilationSettings()),R.update(e.getCompilationSettings()),oe.clear(),m.clear(),Z.clear(),y=!1}function De(){M=!0,j.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),j.update(e.getCompilationSettings()),R.update(e.getCompilationSettings())}function Xe(){i=[]}function ve(){const ae=i;return i=void 0,ae}function be(ae){if(!o)return!1;const Me=o.get(ae);return!!Me&&!!Me.length}function xe(ae,Me){Sn();const ke=a;return a=void 0,{hasInvalidatedResolutions:ft=>ae(ft)||M||!!(ke!=null&&ke.has(ft))||be(ft),hasInvalidatedLibResolutions:ft=>{var K;return Me(ft)||!!((K=Z==null?void 0:Z.get(ft))!=null&&K.isInvalidated)}}}function rt(){j.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),oe.clearAllExceptPackageJsonInfoCache(),l.forEach(xr),l.clear()}function ct(ae){Z.forEach((Me,ke)=>{var ft;(ft=ae==null?void 0:ae.resolvedLibReferences)!=null&&ft.has(ke)||(Nr(Me,e.toPath(qL(ae.getCompilerOptions(),V(),ke)),fe),Z.delete(ke))})}function pe(ae,Me){o=void 0,M=!1,l.forEach(xr),l.clear(),ae!==Me&&(ct(ae),ae==null||ae.getSourceFiles().forEach(ke=>{var Ae,ht;var ft;const K=Yu(ke)&&(Ae=(ft=ke.packageJsonLocations)==null?void 0:ft.length)!=null?Ae:0,$e=(ht=m.get(ke.path))!=null?ht:Ve;for(let _t=$e.length;_tK)for(let _t=K;_t<$e.length;_t++)X.get($e[_t]).files--;K?m.set(ke.path,ke.packageJsonLocations):m.delete(ke.path)}),m.forEach((ke,ft)=>{ae!=null&&ae.getSourceFileByPath(ft)||(ke.forEach(K=>X.get(K).files--),m.delete(ft))})),_e.forEach((ke,ft)=>{ke.refCount===0&&(_e.delete(ft),ke.watcher.close())}),X.forEach((ke,ft)=>{ke.files===0&&ke.resolutions===0&&(X.delete(ft),ke.watcher.close())}),y=!1}function Pe(ae,Me,ke,ft,K){var $e;const Ae=(($e=e.getCompilerHost)==null?void 0:$e.call(e))||e,ht=T8(ae,Me,ke,Ae,j,ft,K);if(!e.getGlobalCache)return ht;const _t=e.getGlobalCache();if(_t!==void 0&&!Al(ae)&&!(ht.resolvedModule&&SO(ht.resolvedModule.extension))){const{resolvedModule:jt,failedLookupLocations:Fn,affectingLocations:Nt,resolutionDiagnostics:hi}=rme(E.checkDefined(e.globalCacheResolutionModuleName)(ae),e.projectName,ke,Ae,_t,j);if(jt)return ht.resolvedModule=jt,ht.failedLookupLocations=d4(ht.failedLookupLocations,Fn),ht.affectingLocations=d4(ht.affectingLocations,Nt),ht.resolutionDiagnostics=d4(ht.resolutionDiagnostics,hi),ht}return ht}function Ge(ae,Me,ke){return{nameAndMode:M8,resolve:(ft,K)=>Pe(ft,ae,ke,Me,K)}}function tt({entries:ae,containingFile:Me,containingSourceFile:ke,redirectedReference:ft,options:K,perFileCache:$e,reusedNames:Ae,loader:ht,getResolutionWithResolvedFileName:_t,deferWatchingNonRelativeResolution:jt,shouldRetryResolution:Fn,logChanges:Nt}){var hi;const z=e.toPath(Me),B=$e.get(z)||$e.set(z,_T()).get(z),le=[],W=Nt&&be(z),ge=e.getCurrentProgram(),F=ge&&ge.getResolvedProjectReferenceToRedirect(Me),ye=F?!ft||ft.sourceFile.path!==F.sourceFile.path:!!ft,Oe=_T();for(const Tt of ae){const It=ht.nameAndMode.getName(Tt),on=ht.nameAndMode.getMode(Tt,ke);let kn=B.get(It,on);if(!Oe.has(It,on)&&(M||ye||!kn||kn.isInvalidated||W&&!Al(It)&&Fn(kn))){const ir=kn;kn=ht.resolve(It,on),e.onDiscoveredSymlink&&hOe(kn)&&e.onDiscoveredSymlink(),B.set(It,on,kn),bt(It,kn,z,_t,jt),ir&&Nr(ir,z,_t),Nt&&i&&!We(ir,kn)&&(i.push(z),Nt=!1)}else{const ir=((hi=e.getCompilerHost)==null?void 0:hi.call(e))||e;if(n0(K,ir)&&!Oe.has(It,on)){const ar=_t(kn);$i(ir,$e===Y?ar!=null&&ar.resolvedFileName?ar.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:ar!=null&&ar.resolvedFileName?ar.packageId?p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,It,Me,ar==null?void 0:ar.resolvedFileName,(ar==null?void 0:ar.packageId)&&s1(ar.packageId))}}E.assert(kn!==void 0&&!kn.isInvalidated),Oe.set(It,on,!0),le.push(kn)}return Ae==null||Ae.forEach(Tt=>Oe.set(ht.nameAndMode.getName(Tt),ht.nameAndMode.getMode(Tt,ke),!0)),B.size()!==Oe.size()&&B.forEach((Tt,It,on)=>{Oe.has(It,on)||(Nr(Tt,z,_t),B.delete(It,on))}),le;function We(Tt,It){if(Tt===It)return!0;if(!Tt||!It)return!1;const on=_t(Tt),kn=_t(It);return on===kn?!0:!on||!kn?!1:on.resolvedFileName===kn.resolvedFileName}}function mt(ae,Me,ke,ft,K,$e){var Ae;return tt({entries:ae,containingFile:Me,containingSourceFile:K,redirectedReference:ke,options:ft,reusedNames:$e,perFileCache:ee,loader:WL(Me,ke,ft,((Ae=e.getCompilerHost)==null?void 0:Ae.call(e))||e,R),getResolutionWithResolvedFileName:G,shouldRetryResolution:ht=>ht.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(ae,Me,ke,ft,K,$e){return tt({entries:ae,containingFile:Me,containingSourceFile:K,redirectedReference:ke,options:ft,reusedNames:$e,perFileCache:Y,loader:Ge(Me,ke,ft),getResolutionWithResolvedFileName:fe,shouldRetryResolution:Ae=>!Ae.resolvedModule||!FD(Ae.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function ot(ae,Me,ke,ft){var K;const $e=((K=e.getCompilerHost)==null?void 0:K.call(e))||e;let Ae=Z==null?void 0:Z.get(ft);if(!Ae||Ae.isInvalidated){const ht=Ae;Ae=rL(ae,Me,ke,$e,oe);const _t=e.toPath(Me);bt(ae,Ae,_t,fe,!1),Z.set(ft,Ae),ht&&Nr(ht,_t,fe)}else if(n0(ke,$e)){const ht=fe(Ae);$i($e,ht!=null&&ht.resolvedFileName?ht.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,ae,Me,ht==null?void 0:ht.resolvedFileName,(ht==null?void 0:ht.packageId)&&s1(ht.packageId))}return Ae}function Jt(ae,Me){const ke=e.toPath(Me),ft=Y.get(ke),K=ft==null?void 0:ft.get(ae,void 0);return K&&!K.isInvalidated?K:Pe(ae,Me,e.getCompilationSettings())}function Pt(ae){return vc(ae,"/node_modules/@types")}function bt(ae,Me,ke,ft,K){var Ae;var $e;if(Me.refCount)Me.refCount++,E.assertIsDefined(Me.files);else{Me.refCount=1,E.assert(!(($e=Me.files)!=null&&$e.size)),!K||Al(ae)?xn(Me):l.add(ae,Me);const ht=ft(Me);if(ht&&ht.resolvedFileName){const _t=e.toPath(ht.resolvedFileName);let jt=g.get(_t);jt||g.set(_t,jt=new Set),jt.add(Me)}}((Ae=Me.files)!=null?Ae:Me.files=new Set).add(ke)}function _r(ae,Me){const ke=e.toPath(ae),ft=nQ(ae,ke,H,Q,ne,V);if(ft){const{dir:K,dirPath:$e,nonRecursive:Ae}=ft;$e===Q?(E.assert(Ae),Me=!0):pi(K,$e,Ae)}return Me}function xn(ae){E.assert(!!ae.refCount);const{failedLookupLocations:Me,affectingLocations:ke,node10Result:ft}=ae;if(!(Me!=null&&Me.length)&&!(ke!=null&&ke.length)&&!ft)return;((Me==null?void 0:Me.length)||ft)&&u.add(ae);let K=!1;if(Me)for(const $e of Me)K=_r($e,K);ft&&(K=_r(ft,K)),K&&pi(H,Q,!0),Bt(ae,!(Me!=null&&Me.length)&&!ft)}function Bt(ae,Me){E.assert(!!ae.refCount);const{affectingLocations:ke}=ae;if(!!(ke!=null&&ke.length)){Me&&f.add(ae);for(const ft of ke)er(ft,!0)}}function er(ae,Me){const ke=X.get(ae);if(ke){Me?ke.resolutions++:ke.files++;return}let ft=ae;if(e.realpath&&(ft=e.realpath(ae),ae!==ft)){const ht=X.get(ft);if(ht){Me?ht.resolutions++:ht.files++,ht.paths.add(ae),X.set(ae,ht);return}}const K=new Set;K.add(ft);let $e=x0e(e.toPath(ft))?e.watchAffectingFileLocation(ft,(ht,_t)=>{U==null||U.addOrDeleteFile(ht,e.toPath(ft),_t);const jt=j.getPackageJsonInfoCache().getInternalMap();K.forEach(Fn=>{Ae.resolutions&&(k!=null?k:k=new Set).add(Fn),Ae.files&&(x!=null?x:x=new Set).add(Fn),jt==null||jt.delete(e.toPath(Fn))}),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):NS;const Ae={watcher:$e!==NS?{close:()=>{$e.close(),$e=NS}}:$e,resolutions:Me?1:0,files:Me?0:1,paths:K};X.set(ft,Ae),ae!==ft&&(X.set(ae,Ae),K.add(ae))}function xr(ae,Me){const ke=e.getCurrentProgram();!ke||!ke.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Me)?ae.forEach(xn):ae.forEach(ft=>Bt(ft,!0))}function pi(ae,Me,ke){const ft=_e.get(Me);ft?(E.assert(!!ke==!!ft.nonRecursive),ft.refCount++):_e.set(Me,{watcher:ur(ae,Me,ke),refCount:1,nonRecursive:ke})}function ki(ae,Me){const ke=e.toPath(ae),ft=nQ(ae,ke,H,Q,ne,V);if(ft){const{dirPath:K}=ft;K===Q?Me=!0:pt(K)}return Me}function Nr(ae,Me,ke){if(E.checkDefined(ae.files).delete(Me),ae.refCount--,ae.refCount)return;const ft=ke(ae);if(ft&&ft.resolvedFileName){const ht=e.toPath(ft.resolvedFileName),_t=g.get(ht);(_t==null?void 0:_t.delete(ae))&&!_t.size&&g.delete(ht)}const{failedLookupLocations:K,affectingLocations:$e,node10Result:Ae}=ae;if(u.delete(ae)){let ht=!1;if(K)for(const _t of K)ht=ki(_t,ht);Ae&&(ht=ki(Ae,ht)),ht&&pt(Q)}else $e!=null&&$e.length&&f.delete(ae);if($e)for(const ht of $e){const _t=X.get(ht);_t.resolutions--}}function pt(ae){const Me=_e.get(ae);Me.refCount--}function ur(ae,Me,ke){return e.watchDirectoryOfFailedLookupLocation(ae,ft=>{const K=e.toPath(ft);U&&U.addOrDeleteFileOrDirectory(ft,K),Yt(K,Me===K)},ke?0:1)}function hn(ae,Me,ke){const ft=ae.get(Me);ft&&(ft.forEach(K=>Nr(K,Me,ke)),ae.delete(Me))}function Ct(ae){if(!Hc(ae,".json"))return;const Me=e.getCurrentProgram();if(!Me)return;const ke=Me.getResolvedProjectReferenceByPath(ae);!ke||ke.commandLine.fileNames.forEach(ft=>cn(e.toPath(ft)))}function cn(ae){hn(Y,ae,fe),hn(ee,ae,G)}function Pn(ae,Me){if(!ae)return!1;let ke=!1;return ae.forEach(ft=>{if(!(ft.isInvalidated||!Me(ft))){ft.isInvalidated=ke=!0;for(const K of E.checkDefined(ft.files))(a!=null?a:a=new Set).add(K),y=y||vc(K,p5)}}),ke}function Sr(ae){cn(ae);const Me=y;Pn(g.get(ae),oy)&&y&&!Me&&e.onChangedAutomaticTypeDirectiveNames()}function wi(ae){E.assert(o===ae||o===void 0),o=ae}function Yt(ae,Me){if(Me)(D||(D=new Set)).add(ae);else{const ke=eQ(ae);if(!ke||(ae=ke,e.fileIsOpen(ae)))return!1;const ft=Ti(ae);if(Pt(ae)||jU(ae)||Pt(ft)||jU(ft))(C||(C=new Set)).add(ae),(N||(N=new Set)).add(ae);else{if(zge(e.getCurrentProgram(),ae)||Hc(ae,".map"))return!1;(C||(C=new Set)).add(ae);const K=zA(ae,!0);K&&(N||(N=new Set)).add(K)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Gt(){const ae=j.getPackageJsonInfoCache().getInternalMap();ae&&(C||N||D)&&ae.forEach((Me,ke)=>Er(ke)?ae.delete(ke):void 0)}function Sn(){var ae;if(M)return x=void 0,Gt(),(C||N||D||k)&&Pn(Z,Gr),C=void 0,N=void 0,D=void 0,k=void 0,!0;let Me=!1;return x&&((ae=e.getCurrentProgram())==null||ae.getSourceFiles().forEach(ke=>{dt(ke.packageJsonLocations,ft=>x.has(ft))&&((a!=null?a:a=new Set).add(ke.path),Me=!0)}),x=void 0),!C&&!N&&!D&&!k||(Me=Pn(u,Gr)||Me,Gt(),C=void 0,N=void 0,D=void 0,Me=Pn(f,ze)||Me,k=void 0),Me}function Gr(ae){var Me;return ze(ae)?!0:!C&&!N&&!D?!1:((Me=ae.failedLookupLocations)==null?void 0:Me.some(ke=>Er(e.toPath(ke))))||!!ae.node10Result&&Er(e.toPath(ae.node10Result))}function Er(ae){return(C==null?void 0:C.has(ae))||N7((N==null?void 0:N.keys())||[],Me=>ns(ae,Me)?!0:void 0)||N7((D==null?void 0:D.keys())||[],Me=>ae.length>Me.length&&ns(ae,Me)&&(OU(Me)||ae[Me.length]===qo)?!0:void 0)}function ze(ae){var Me;return!!k&&((Me=ae.affectingLocations)==null?void 0:Me.some(ke=>k.has(ke)))}function ut(){Mf(ue,vm)}function kt(ae,Me){return Vt(ae)?e.watchTypeRootsDirectory(Me,ke=>{const ft=e.toPath(ke);U&&U.addOrDeleteFileOrDirectory(ke,ft),y=!0,e.onChangedAutomaticTypeDirectiveNames();const K=k0e(Me,ae,Q,ne,V,$e=>_e.has($e));K&&Yt(ft,K===ft)},1):NS}function it(){const ae=e.getCompilationSettings();if(ae.types){ut();return}const Me=JA(ae,{getCurrentDirectory:V});Me?M6(ue,Bv(Me,ke=>e.toPath(ke)),{createNewValue:kt,onDeleteValue:vm}):ut()}function Vt(ae){return e.getCompilationSettings().typeRoots?!0:v0e(e.toPath(ae))}}function hOe(e){var t,r;return!!(((t=e.resolvedModule)==null?void 0:t.originalPath)||((r=e.resolvedTypeReferenceDirective)==null?void 0:r.originalPath))}var yOe=Rt({"src/compiler/resolutionCache.ts"(){Ls()}});function d5(e,t){const r=e===jl&&dQ?dQ:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Ql(e.useCaseSensitiveFileNames)};if(!t)return a=>e.write(CX(a,r));const i=new Array(1);return a=>{i[0]=a,e.write($ge(i,r)+r.getNewLine()),i[0]=void 0}}function w0e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&ys(oM,t.code)?(e.clearScreen(),!0):!1}function vOe(e,t){return ys(oM,e.code)?t+t:t}function m5(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function D0e(e,t){return t?(r,i,a)=>{w0e(e,r,a);let o=`[${D2(m5(e),"\x1B[90m")}] `;o+=`${v1(r.messageText,e.newLine)}${i+i}`,e.write(o)}:(r,i,a)=>{let o="";w0e(e,r,a)||(o+=i),o+=`${m5(e)} - `,o+=`${v1(r.messageText,e.newLine)}${vOe(r,i)}`,e.write(o)}}function bOe(e,t,r,i,a,o){const l=a;l.onUnRecoverableConfigFileDiagnostic=f=>L0e(a,o,f);const u=CA(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function nM(e){return M0(e,t=>t.category===1)}function rM(e){return zr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;const i=Or(e,a=>a.file!==void 0&&a.file.fileName===r);if(i!==void 0){const{line:a}=yo(i.file,i.start);return{fileName:r,line:a+1}}})}function iQ(e){return e===1?p.Found_1_error_Watching_for_file_changes:p.Found_0_errors_Watching_for_file_changes}function A0e(e,t){const r=D2(":"+e.line,"\x1B[90m");return RC(e.fileName)&&RC(t)?um(t,e.fileName,!1)+r:e.fileName+r}function N0e(e,t,r,i){if(e===0)return"";const a=t.filter(m=>m!==void 0),o=a.map(m=>`${m.fileName}:${m.line}`).filter((m,y,x)=>x.indexOf(m)===y),l=a[0]&&A0e(a[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[p.Found_1_error_in_0,l]:[p.Found_1_error]:u=o.length===0?[p.Found_0_errors,e]:o.length===1?[p.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[p.Found_0_errors_in_1_files,e,o.length];const f=xc(...u),g=o.length>1?TOe(a,i):"";return`${r}${v1(f.messageText,r)}${r}${r}${g}`}function TOe(e,t){const r=e.filter((y,x,k)=>x===k.findIndex(C=>(C==null?void 0:C.fileName)===(y==null?void 0:y.fileName)));if(r.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,a=r.map(y=>[y,M0(e,x=>x.fileName===y.fileName)]),o=a.reduce((y,x)=>Math.max(y,x[1]||0),0),l=p.Errors_Files.message,u=l.split(" ")[0].length,f=Math.max(u,i(o)),g=Math.max(i(o)-u,0);let m="";return m+=" ".repeat(g)+l+` `,a.forEach(y=>{const[x,k]=y,C=Math.log(k)*Math.LOG10E+1|0,N=C{t(i.fileName)})}function I0e(e,t){var r,i;const a=e.getFileIncludeReasons(),o=l=>MC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${wS(l,o)}`),(r=a.get(l.path))==null||r.forEach(u=>t(` ${cQ(e,u,o).messageText}`)),(i=sQ(l,o))==null||i.forEach(u=>t(` ${u.messageText}`))}function sQ(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i!=null?i:i=[]).push(_s(void 0,p.File_is_output_of_project_reference_source_0,wS(e.originalFileName,t))),e.redirectInfo&&(i!=null?i:i=[]).push(_s(void 0,p.File_redirects_to_file_0,wS(e.redirectInfo.redirectTarget,t))),Yu(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i!=null?i:i=[]).push(_s(void 0,p.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,wS(ka(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i!=null?i:i=[]).push(_s(void 0,e.packageJsonScope.contents.packageJsonContent.type?p.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:p.File_is_CommonJS_module_because_0_does_not_have_field_type,wS(ka(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i!=null?i:i=[]).push(_s(void 0,p.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function aQ(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i==null?void 0:i.configFileSpecs)!=null&&r.validatedFilesSpec))return;const a=e.getCanonicalFileName(t),o=bi(fs(i.fileName,e.getCurrentDirectory()));return Fr(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(fs(l,o))===a)}function oQ(e,t){var r,i;const a=e.getCompilerOptions().configFile;if(!((r=a==null?void 0:a.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(a.configFileSpecs.isDefaultIncludeSpec)return!0;const o=Hc(t,".json"),l=bi(fs(a.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return Fr((i=a==null?void 0:a.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,f=>{if(o&&!Tc(f,".json"))return!1;const g=Gq(f,l,"files");return!!g&&c1(`(${g})$`,u).test(t)})}function cQ(e,t,r){var i,a;const o=e.getCompilerOptions();if(My(t)){const l=I8(g=>e.getSourceFileByPath(g),t),u=v4(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let f;switch(E.assert(v4(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:v4(l)?f=l.packageId?p.Imported_via_0_from_file_1_with_packageId_2:p.Imported_via_0_from_file_1:l.text===_1?f=l.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:p.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:f=l.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:p.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:E.assert(!l.packageId),f=p.Referenced_via_0_from_file_1;break;case 5:f=l.packageId?p.Type_library_referenced_via_0_from_file_1_with_packageId_2:p.Type_library_referenced_via_0_from_file_1;break;case 7:E.assert(!l.packageId),f=p.Library_referenced_via_0_from_file_1;break;default:E.assertNever(t)}return _s(void 0,f,u,wS(l.file,r),l.packageId&&i1(l.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return _s(void 0,p.Root_file_specified_for_compilation);const l=fs(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(aQ(e,l))return _s(void 0,p.Part_of_files_list_in_tsconfig_json);const f=oQ(e,l);return $s(f)?_s(void 0,p.Matched_by_include_pattern_0_in_1,f,wS(o.configFile,r)):_s(void 0,f?p.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:p.Root_file_specified_for_compilation);case 1:case 2:const g=t.kind===2,m=E.checkDefined((a=e.getResolvedProjectReferences())==null?void 0:a[t.index]);return _s(void 0,Ao(o)?g?p.Output_from_referenced_project_0_included_because_1_specified:p.Source_from_referenced_project_0_included_because_1_specified:g?p.Output_from_referenced_project_0_included_because_module_is_specified_as_none:p.Source_from_referenced_project_0_included_because_module_is_specified_as_none,wS(m.sourceFile.fileName,r),o.outFile?"--outFile":"--out");case 8:{const y=o.types?t.packageId?[p.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,i1(t.packageId)]:[p.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[p.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,i1(t.packageId)]:[p.Entry_point_for_implicit_type_library_0,t.typeReference];return _s(void 0,...y)}case 6:{if(t.index!==void 0)return _s(void 0,p.Library_0_specified_in_compilerOptions,o.lib[t.index]);const y=Au(LA.type,(k,C)=>k===Oa(o)?C:void 0),x=y?[p.Default_library_for_target_0,y]:[p.Default_library];return _s(void 0,...x)}default:E.assertNever(t)}}function wS(e,t){const r=$s(e)?e:e.fileName;return t?t(r):r}function iM(e,t,r,i,a,o,l,u){const f=!!e.getCompilerOptions().listFilesOnly,g=e.getConfigFileParsingDiagnostics().slice(),m=g.length;Lr(g,e.getSyntacticDiagnostics(void 0,o)),g.length===m&&(Lr(g,e.getOptionsDiagnostics(o)),f||(Lr(g,e.getGlobalDiagnostics(o)),g.length===m&&Lr(g,e.getSemanticDiagnostics(void 0,o))));const y=f?{emitSkipped:!0,diagnostics:Ve}:e.emit(void 0,a,o,l,u),{emittedFiles:x,diagnostics:k}=y;Lr(g,k);const C=Qk(g);if(C.forEach(t),r){const N=e.getCurrentDirectory();mn(x,D=>{const M=fs(D,N);r(`TSFILE: ${M}`)}),iQ(e,r)}return i&&i(nM(C),rM(C)),{emitResult:y,diagnostics:C}}function O0e(e,t,r,i,a,o,l,u){const{emitResult:f,diagnostics:g}=iM(e,t,r,i,a,o,l,u);return f.emitSkipped&&g.length>0?1:g.length>0?2:0}function lQ(e=jl,t){return{onWatchStatusChange:t||D0e(e),watchFile:Gs(e,e.watchFile)||m5,watchDirectory:Gs(e,e.watchDirectory)||m5,setTimeout:Gs(e,e.setTimeout)||_o,clearTimeout:Gs(e,e.clearTimeout)||_o}}function _Q(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?o=>e.trace(o):_o,a=Vge(e,r,i);return a.writeLog=i,a}function uQ(e,t,r=e){const i=e.useCaseSensitiveFileNames(),a={getSourceFile:TX((o,l)=>l?e.readFile(o,l):a.readFile(o),t,void 0),getDefaultLibLocation:Gs(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:xX((o,l,u)=>e.writeFile(o,l,u),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:wu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Ql(i),getNewLine:()=>Z0(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:Gs(e,e.trace),directoryExists:Gs(r,r.directoryExists),getDirectories:Gs(r,r.getDirectories),realpath:Gs(e,e.realpath),getEnvironmentVariable:Gs(e,e.getEnvironmentVariable)||(()=>""),createHash:Gs(e,e.createHash),readDirectory:Gs(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return a}function sM(e,t){if(t.match(B$)){let r=t.length,i=r;for(let a=r-1;a>=0;a--){const o=t.charCodeAt(a);switch(o){case 10:a&&t.charCodeAt(a-1)===13&&a--;case 13:break;default:if(o<127||!Yl(o)){i=a;continue}break}const l=t.substring(i,r);if(l.match(kL)){t=t.substring(0,i);break}else if(!l.match(CL))break;r=i}}return(e.createHash||$7)(t)}function aM(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=sM(e,i.text)),i}}function fQ(e,t){const r=wu(()=>bi(ba(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:wu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Pi(r(),GI(i)),fileExists:i=>e.fileExists(i),readFile:(i,a)=>e.readFile(i,a),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,a,o,l,u)=>e.readDirectory(i,a,o,l,u),realpath:Gs(e,e.realpath),getEnvironmentVariable:Gs(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,a,o)=>e.writeFile(i,a,o),createHash:Gs(e,e.createHash),createProgram:t||ZX,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Gs(e,e.now)}}function F0e(e=jl,t,r,i){const a=l=>e.write(l+e.newLine),o=fQ(e,t);return fV(o,lQ(e,i)),o.afterProgramCreate=l=>{const u=l.getCompilerOptions(),f=Z0(u);iM(l,r,a,g=>o.onWatchStatusChange(kc(rQ(g),g),f,u,g))},o}function L0e(e,t,r){t(r),e.exit(1)}function M0e({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:a,createProgram:o,reportDiagnostic:l,reportWatchStatus:u}){const f=l||p5(a),g=F0e(a,o,f,u);return g.onUnRecoverableConfigFileDiagnostic=m=>L0e(a,f,m),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=r,g.extraFileExtensions=i,g}function R0e({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:a,createProgram:o,reportDiagnostic:l,reportWatchStatus:u}){const f=F0e(a,o,l||p5(a),u);return f.rootFiles=e,f.options=t,f.watchOptions=r,f.projectReferences=i,f}function TOe(e){const t=e.system||jl,r=e.host||(e.host=dQ(e.options,t)),i=B0e(e),a=O0e(i,e.reportDiagnostic||p5(t),o=>r.trace&&r.trace(o),e.reportErrorSummary||e.options.pretty?(o,l)=>t.write(N0e(o,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),a}var pQ,oM,DS,m5,cp,xOe=Bt({"src/compiler/watch.ts"(){Os(),pQ=jl?{getCurrentDirectory:()=>jl.getCurrentDirectory(),getNewLine:()=>jl.newLine,getCanonicalFileName:Ql(jl.useCaseSensitiveFileNames)}:void 0,oM=[p.Starting_compilation_in_watch_mode.code,p.File_change_detected_Starting_incremental_compilation.code],DS={close:_o},m5=()=>DS,cp={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",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",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function cM(e,t){const r=oh(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const a=t.readFile(r);if(!a)return;i=BL(r,a)}if(!(!i||i.version!==F0||!i.program))return h0e(i,r,t)}function dQ(e,t=jl){const r=SX(e,void 0,t);return r.createHash=Gs(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,aM(r),a5(r,i=>yo(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function B0e({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:a,createProgram:o}){a=a||dQ(t),o=o||ZX;const l=cM(t,a);return o(e,t,a,l,r,i)}function SOe(e,t,r,i,a,o,l,u){return Ds(e)?R0e({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):M0e({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:a,reportWatchStatus:o})}function kOe(e){let t,r,i,a,o,l,u,f,g=e.extendedConfigCache,m=!1;const y=new Map;let x,k=!1;const C=e.useCaseSensitiveFileNames(),N=e.getCurrentDirectory(),{configFileName:D,optionsToExtend:M={},watchOptionsToExtend:V,extraFileExtensions:U,createProgram:Y}=e;let{rootFiles:j,options:ee,watchOptions:R,projectReferences:Z}=e,oe,_e,X=!1,H=!1;const Q=D===void 0?void 0:Bge(e,N,C),re=Q||e,ue=$L(e,re);let fe=It();D&&e.configFileParsingResult&&(Gr(e.configFileParsingResult),fe=It()),Nr(p.Starting_compilation_in_watch_mode),D&&!e.configFileParsingResult&&(fe=Z0(M),E.assert(!j),xn(),fe=It()),E.assert(ee),E.assert(j);const{watchFile:G,watchDirectory:Ne,writeLog:De}=_Q(e,ee),Xe=Ql(C);De(`Current directory: ${N} CaseSensitiveFileNames: ${C}`);let ve;D&&(ve=G(D,In,2e3,R,cp.ConfigFile));const be=uQ(e,()=>ee,re);aM(be);const xe=be.getSourceFile;be.getSourceFile=(Ae,...yt)=>Kn(Ae,bt(Ae),...yt),be.getSourceFileByPath=Kn,be.getNewLine=()=>fe,be.fileExists=jt,be.onReleaseOldSourceFile=Si,be.onReleaseParsedCommandLine=ut,be.toPath=bt,be.getCompilationSettings=()=>ee,be.useSourceOfProjectReferenceRedirect=Gs(e,e.useSourceOfProjectReferenceRedirect),be.watchDirectoryOfFailedLookupLocation=(Ae,yt,_t)=>Ne(Ae,yt,_t,R,cp.FailedLookupLocations),be.watchAffectingFileLocation=(Ae,yt)=>G(Ae,yt,2e3,R,cp.AffectingFileLocation),be.watchTypeRootsDirectory=(Ae,yt,_t)=>Ne(Ae,yt,_t,R,cp.TypeRoots),be.getCachedDirectoryStructureHost=()=>Q,be.scheduleInvalidateResolutionsOfFailedLookupLocations=yn,be.onInvalidatedResolution=cn,be.onChangedAutomaticTypeDirectiveNames=cn,be.fileIsOpen=B0,be.getCurrentProgram=mt,be.writeLog=De,be.getParsedCommandLine=Er;const rt=E0e(be,D?bi(fs(D,N)):N,!1);be.resolveModuleNameLiterals=Gs(e,e.resolveModuleNameLiterals),be.resolveModuleNames=Gs(e,e.resolveModuleNames),!be.resolveModuleNameLiterals&&!be.resolveModuleNames&&(be.resolveModuleNameLiterals=rt.resolveModuleNameLiterals.bind(rt)),be.resolveTypeReferenceDirectiveReferences=Gs(e,e.resolveTypeReferenceDirectiveReferences),be.resolveTypeReferenceDirectives=Gs(e,e.resolveTypeReferenceDirectives),!be.resolveTypeReferenceDirectiveReferences&&!be.resolveTypeReferenceDirectives&&(be.resolveTypeReferenceDirectiveReferences=rt.resolveTypeReferenceDirectiveReferences.bind(rt)),be.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):rt.resolveLibrary.bind(rt),be.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Gs(e,e.getModuleResolutionCache):()=>rt.getModuleResolutionCache();const pe=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Gs(e,e.hasInvalidatedResolutions)||sy:B0,Pe=e.resolveLibrary?Gs(e,e.hasInvalidatedLibResolutions)||sy:B0;return t=cM(ee,be),Je(),ke(),D&&K(bt(D),ee,R,cp.ExtendedConfigFile),D?{getCurrentProgram:tt,getProgram:wi,close:Ge}:{getCurrentProgram:tt,getProgram:wi,updateRootFileNames:zt,close:Ge};function Ge(){ur(),rt.clear(),Lf(y,Ae=>{Ae&&Ae.fileWatcher&&(Ae.fileWatcher.close(),Ae.fileWatcher=void 0)}),ve&&(ve.close(),ve=void 0),g==null||g.clear(),g=void 0,f&&(Lf(f,Em),f=void 0),a&&(Lf(a,Em),a=void 0),i&&(Lf(i,vm),i=void 0),u&&(Lf(u,Ae=>{var yt;(yt=Ae.watcher)==null||yt.close(),Ae.watcher=void 0,Ae.watchedDirectories&&Lf(Ae.watchedDirectories,Em),Ae.watchedDirectories=void 0}),u=void 0)}function tt(){return t}function mt(){return t&&t.getProgramOrUndefined()}function Je(){De("Synchronizing program"),E.assert(ee),E.assert(j),ur();const Ae=tt();k&&(fe=It(),Ae&&bW(Ae.getCompilerOptions(),ee)&&rt.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:yt,hasInvalidatedLibResolutions:_t}=rt.createHasInvalidatedResolutions(pe,Pe),{originalReadFile:Jt,originalFileExists:Ln,originalDirectoryExists:Pt,originalCreateDirectory:hi,originalWriteFile:z,readFileWithCache:B}=a5(be,bt);return NX(mt(),j,ee,le=>fi(le,B),le=>be.fileExists(le),yt,_t,pt,Er,Z)?H&&(m&&Nr(p.File_change_detected_Starting_incremental_compilation),t=Y(void 0,void 0,be,t,_e,Z),H=!1):(m&&Nr(p.File_change_detected_Starting_incremental_compilation),at(yt,_t)),m=!1,e.afterProgramCreate&&Ae!==t&&e.afterProgramCreate(t),be.readFile=Jt,be.fileExists=Ln,be.directoryExists=Pt,be.createDirectory=hi,be.writeFile=z,t}function at(Ae,yt){De("CreatingProgramWith::"),De(` roots: ${JSON.stringify(j)}`),De(` options: ${JSON.stringify(ee)}`),Z&&De(` projectReferences: ${JSON.stringify(Z)}`);const _t=k||!mt();k=!1,H=!1,rt.startCachingPerDirectoryResolution(),be.hasInvalidatedResolutions=Ae,be.hasInvalidatedLibResolutions=yt,be.hasChangedAutomaticTypeDirectiveNames=pt;const Jt=mt();if(t=Y(j,ee,be,t,_e,Z),rt.finishCachingPerDirectoryResolution(t.getProgram(),Jt),Jge(t.getProgram(),i||(i=new Map),ae),_t&&rt.updateTypeRootsWatch(),x){for(const Ln of x)i.has(Ln)||y.delete(Ln);x=void 0}}function zt(Ae){E.assert(!D,"Cannot update root file names with config file watch mode"),j=Ae,cn()}function It(){return Z0(ee||M)}function bt(Ae){return yo(Ae,N,Xe)}function _r(Ae){return typeof Ae=="boolean"}function Tn(Ae){return typeof Ae.version=="boolean"}function jt(Ae){const yt=bt(Ae);return _r(y.get(yt))?!1:re.fileExists(Ae)}function Kn(Ae,yt,_t,Jt,Ln){const Pt=y.get(yt);if(_r(Pt))return;const hi=typeof _t=="object"?_t.impliedNodeFormat:void 0;if(Pt===void 0||Ln||Tn(Pt)||Pt.sourceFile.impliedNodeFormat!==hi){const z=xe(Ae,_t,Jt);if(Pt)z?(Pt.sourceFile=z,Pt.version=z.version,Pt.fileWatcher||(Pt.fileWatcher=kt(yt,Ae,st,250,R,cp.SourceFile))):(Pt.fileWatcher&&Pt.fileWatcher.close(),y.set(yt,!1));else if(z){const B=kt(yt,Ae,st,250,R,cp.SourceFile);y.set(yt,{sourceFile:z,version:z.version,fileWatcher:B})}else y.set(yt,!1);return z}return Pt.sourceFile}function br(Ae){const yt=y.get(Ae);yt!==void 0&&(_r(yt)?y.set(Ae,{version:!1}):yt.version=!1)}function fi(Ae,yt){const _t=y.get(Ae);if(!_t)return;if(_t.version)return _t.version;const Jt=yt(Ae);return Jt!==void 0?sM(be,Jt):void 0}function Si(Ae,yt,_t){const Jt=y.get(Ae.resolvedPath);Jt!==void 0&&(_r(Jt)?(x||(x=[])).push(Ae.path):Jt.sourceFile===Ae&&(Jt.fileWatcher&&Jt.fileWatcher.close(),y.delete(Ae.resolvedPath),_t||rt.removeResolutionsOfFile(Ae.path)))}function Nr(Ae){e.onWatchStatusChange&&e.onWatchStatusChange(kc(Ae),fe,ee||M)}function pt(){return rt.hasChangedAutomaticTypeDirectiveNames()}function ur(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function yn(){if(!e.setTimeout||!e.clearTimeout)return rt.invalidateResolutionsOfFailedLookupLocations();const Ae=ur();De(`Scheduling invalidateFailedLookup${Ae?", Cancelled earlier one":""}`),l=e.setTimeout(Ct,250,"timerToInvalidateFailedLookupResolutions")}function Ct(){l=void 0,rt.invalidateResolutionsOfFailedLookupLocations()&&cn()}function cn(){!e.setTimeout||!e.clearTimeout||(o&&e.clearTimeout(o),De("Scheduling update"),o=e.setTimeout(xr,250,"timerToUpdateProgram"))}function In(){E.assert(!!D),r=2,cn()}function xr(){o=void 0,m=!0,wi()}function wi(){var Ae,yt,_t,Jt;switch(r){case 1:(Ae=wd)==null||Ae.logStartUpdateProgram("PartialConfigReload"),Zt();break;case 2:(yt=wd)==null||yt.logStartUpdateProgram("FullConfigReload"),Gt();break;default:(_t=wd)==null||_t.logStartUpdateProgram("SynchronizeProgram"),Je();break}return(Jt=wd)==null||Jt.logStopUpdateProgram("Done"),tt()}function Zt(){De("Reloading new file names and options"),E.assert(ee),E.assert(D),r=0,j=NA(ee.configFile.configFileSpecs,fs(bi(D),N),ee,ue,U),jG(j,fs(D,N),ee.configFile.configFileSpecs,_e,X)&&(H=!0),Je()}function Gt(){E.assert(D),De(`Reloading config file: ${D}`),r=0,Q&&Q.clearCache(),xn(),k=!0,Je(),ke(),K(bt(D),ee,R,cp.ExtendedConfigFile)}function xn(){E.assert(D),Gr(kA(D,M,ue,g||(g=new Map),V,U))}function Gr(Ae){j=Ae.fileNames,ee=Ae.options,R=Ae.watchOptions,Z=Ae.projectReferences,oe=Ae.wildcardDirectories,_e=fT(Ae).slice(),X=AA(Ae.raw),H=!0}function Er(Ae){const yt=bt(Ae);let _t=u==null?void 0:u.get(yt);if(_t){if(!_t.reloadLevel)return _t.parsedCommandLine;if(_t.parsedCommandLine&&_t.reloadLevel===1&&!e.getParsedCommandLine){De("Reloading new file names and options"),E.assert(ee);const Ln=NA(_t.parsedCommandLine.options.configFile.configFileSpecs,fs(bi(Ae),N),ee,ue);return _t.parsedCommandLine={..._t.parsedCommandLine,fileNames:Ln},_t.reloadLevel=void 0,_t.parsedCommandLine}}De(`Loading config file: ${Ae}`);const Jt=e.getParsedCommandLine?e.getParsedCommandLine(Ae):ze(Ae);return _t?(_t.parsedCommandLine=Jt,_t.reloadLevel=void 0):(u||(u=new Map)).set(yt,_t={parsedCommandLine:Jt}),$e(Ae,yt,_t),Jt}function ze(Ae){const yt=ue.onUnRecoverableConfigFileDiagnostic;ue.onUnRecoverableConfigFileDiagnostic=_o;const _t=kA(Ae,void 0,ue,g||(g=new Map),V);return ue.onUnRecoverableConfigFileDiagnostic=yt,_t}function ut(Ae){var yt;const _t=bt(Ae),Jt=u==null?void 0:u.get(_t);!Jt||(u.delete(_t),Jt.watchedDirectories&&Lf(Jt.watchedDirectories,Em),(yt=Jt.watcher)==null||yt.close(),jge(_t,f))}function kt(Ae,yt,_t,Jt,Ln,Pt){return G(yt,(hi,z)=>_t(hi,z,Ae),Jt,Ln,Pt)}function st(Ae,yt,_t){Ut(Ae,_t,yt),yt===2&&y.has(_t)&&rt.invalidateResolutionOfFile(_t),br(_t),cn()}function Ut(Ae,yt,_t){Q&&Q.addOrDeleteFile(Ae,yt,_t)}function ae(Ae){return u!=null&&u.has(Ae)?DS:kt(Ae,Ae,Me,500,R,cp.MissingFile)}function Me(Ae,yt,_t){Ut(Ae,_t,yt),yt===0&&i.has(_t)&&(i.get(_t).close(),i.delete(_t),br(_t),cn())}function ke(){oe?JL(a||(a=new Map),new Map(Object.entries(oe)),ft):a&&Lf(a,Em)}function ft(Ae,yt){return Ne(Ae,_t=>{E.assert(D),E.assert(ee);const Jt=bt(_t);Q&&Q.addOrDeleteFileOrDirectory(_t,Jt),br(Jt),!zL({watchedDirPath:bt(Ae),fileOrDirectory:_t,fileOrDirectoryPath:Jt,configFileName:D,extraFileExtensions:U,options:ee,program:tt()||j,currentDirectory:N,useCaseSensitiveFileNames:C,writeLog:De,toPath:bt})&&r!==2&&(r=1,cn())},yt,R,cp.WildcardDirectory)}function K(Ae,yt,_t,Jt){hX(Ae,yt,f||(f=new Map),(Ln,Pt)=>G(Ln,(hi,z)=>{var B;Ut(Ln,Pt,z),g&&yX(g,Pt,bt);const le=(B=f.get(Pt))==null?void 0:B.projects;!(le!=null&&le.size)||le.forEach(W=>{if(D&&bt(D)===W)r=2;else{const ge=u==null?void 0:u.get(W);ge&&(ge.reloadLevel=2),rt.removeResolutionsFromProjectReferenceRedirects(W)}cn()})},2e3,_t,Jt),bt)}function $e(Ae,yt,_t){var Jt,Ln,Pt,hi,z;_t.watcher||(_t.watcher=G(Ae,(B,le)=>{Ut(Ae,yt,le);const W=u==null?void 0:u.get(yt);W&&(W.reloadLevel=2),rt.removeResolutionsFromProjectReferenceRedirects(yt),cn()},2e3,((Jt=_t.parsedCommandLine)==null?void 0:Jt.watchOptions)||R,cp.ConfigFileOfReferencedProject)),(Ln=_t.parsedCommandLine)!=null&&Ln.wildcardDirectories?JL(_t.watchedDirectories||(_t.watchedDirectories=new Map),new Map(Object.entries((Pt=_t.parsedCommandLine)==null?void 0:Pt.wildcardDirectories)),(B,le)=>{var W;return Ne(B,ge=>{const F=bt(ge);Q&&Q.addOrDeleteFileOrDirectory(ge,F),br(F);const ye=u==null?void 0:u.get(yt);!(ye!=null&&ye.parsedCommandLine)||zL({watchedDirPath:bt(B),fileOrDirectory:ge,fileOrDirectoryPath:F,configFileName:Ae,options:ye.parsedCommandLine.options,program:ye.parsedCommandLine.fileNames,currentDirectory:N,useCaseSensitiveFileNames:C,writeLog:De,toPath:bt})||ye.reloadLevel!==2&&(ye.reloadLevel=1,cn())},le,((W=_t.parsedCommandLine)==null?void 0:W.watchOptions)||R,cp.WildcardDirectoryOfReferencedProject)}):_t.watchedDirectories&&(Lf(_t.watchedDirectories,Em),_t.watchedDirectories=void 0),K(yt,(hi=_t.parsedCommandLine)==null?void 0:hi.options,((z=_t.parsedCommandLine)==null?void 0:z.watchOptions)||R,cp.ExtendedConfigOfReferencedProject)}}var COe=Bt({"src/compiler/watchPublic.ts"(){Os()}});function mQ(e){return Hc(e,".json")?e:Pi(e,"tsconfig.json")}var gQ,EOe=Bt({"src/compiler/tsbuild.ts"(){Os(),gQ=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(gQ||{})}});function wOe(e,t,r){const i=e.get(t);let a;return i||(a=r(),e.set(t,a)),i||a}function hQ(e,t){return wOe(e,t,()=>new Map)}function g5(e){return e.now?e.now():new Date}function AS(e){return!!e&&!!e.buildOrder}function lM(e){return AS(e)?e.buildOrder:e}function j0e(e,t){return r=>{let i=t?`[${E2(d5(e),"\x1B[90m")}] `:`${d5(e)} - `;i+=`${y1(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function J0e(e,t,r,i){const a=fQ(e,t);return a.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):ay,a.setModifiedTime=e.setModifiedTime?(o,l)=>e.setModifiedTime(o,l):_o,a.deleteFile=e.deleteFile?o=>e.deleteFile(o):_o,a.reportDiagnostic=r||p5(e),a.reportSolutionBuilderStatus=i||j0e(e),a.now=Gs(e,e.now),a}function DOe(e=jl,t,r,i,a){const o=J0e(e,t,r,i);return o.reportErrorSummary=a,o}function AOe(e=jl,t,r,i,a){const o=J0e(e,t,r,i),l=lQ(e,a);return fV(o,l),o}function NOe(e){const t={};return FA.forEach(r=>{lo(e,r.name)&&(t[r.name]=e[r.name])}),t}function POe(e,t,r){return lhe(!1,e,t,r)}function IOe(e,t,r,i){return lhe(!0,e,t,r,i)}function OOe(e,t,r,i,a){const o=t,l=t,u=NOe(i),f=uQ(o,()=>N.projectCompilerOptions);aM(f),f.getParsedCommandLine=D=>dT(N,D,sd(N,D)),f.resolveModuleNameLiterals=Gs(o,o.resolveModuleNameLiterals),f.resolveTypeReferenceDirectiveReferences=Gs(o,o.resolveTypeReferenceDirectiveReferences),f.resolveLibrary=Gs(o,o.resolveLibrary),f.resolveModuleNames=Gs(o,o.resolveModuleNames),f.resolveTypeReferenceDirectives=Gs(o,o.resolveTypeReferenceDirectives),f.getModuleResolutionCache=Gs(o,o.getModuleResolutionCache);let g,m;!f.resolveModuleNameLiterals&&!f.resolveModuleNames&&(g=d4(f.getCurrentDirectory(),f.getCanonicalFileName),f.resolveModuleNameLiterals=(D,M,V,U,Y)=>c5(D,M,V,U,Y,o,g,AX),f.getModuleResolutionCache=()=>g),!f.resolveTypeReferenceDirectiveReferences&&!f.resolveTypeReferenceDirectives&&(m=nL(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache()),f.resolveTypeReferenceDirectiveReferences=(D,M,V,U,Y)=>c5(D,M,V,U,Y,o,m,WL));let y;f.resolveLibrary||(y=d4(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache()),f.resolveLibrary=(D,M,V)=>rL(D,M,V,o,y)),f.getBuildInfo=(D,M)=>ehe(N,D,sd(N,M),void 0);const{watchFile:x,watchDirectory:k,writeLog:C}=_Q(l,i),N={host:o,hostWithWatch:l,parseConfigFileHost:$L(o),write:Gs(o,o.trace),options:i,baseCompilerOptions:u,rootNames:r,baseWatchOptions:a,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:f,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:D=>o.readFile(D),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:x,watchDirectory:k,writeLog:C};return N}function Mu(e,t){return yo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function sd(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const a=Mu(e,t);return r.set(t,a),a}function z0e(e){return!!e.options}function FOe(e,t){const r=e.configFileCache.get(t);return r&&z0e(r)?r:void 0}function dT(e,t,r){const{configFileCache:i}=e,a=i.get(r);if(a)return z0e(a)?a:void 0;ho("SolutionBuilder::beforeConfigFileParsing");let o;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:f,extendedConfigCache:g,host:m}=e;let y;return m.getParsedCommandLine?(y=m.getParsedCommandLine(t),y||(o=kc(p.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=x=>o=x,y=kA(t,u,l,g,f),l.onUnRecoverableConfigFileDiagnostic=_o),i.set(r,y||o),ho("SolutionBuilder::afterConfigFileParsing"),Gu("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function T4(e,t){return mQ($h(e.compilerHost.getCurrentDirectory(),t))}function V0e(e,t){const r=new Map,i=new Map,a=[];let o,l;for(const f of t)u(f);return l?{buildOrder:o||Ve,circularDiagnostics:l}:o||Ve;function u(f,g){const m=sd(e,f);if(i.has(m))return;if(r.has(m)){g||(l||(l=[])).push(kc(p.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,a.join(`\r -`)));return}r.set(m,!0),a.push(f);const y=dT(e,f,m);if(y&&y.projectReferences)for(const x of y.projectReferences){const k=T4(e,x.path);u(k,g||x.circular)}a.pop(),i.set(m,!0),(o||(o=[])).push(f)}}function h5(e){return e.buildOrder||LOe(e)}function LOe(e){const t=V0e(e,e.rootNames.map(a=>T4(e,a)));e.resolvedConfigFilePaths.clear();const r=new Map(lM(t).map(a=>[sd(e,a),!0])),i={onDeleteValue:_o};return $g(e.configFileCache,r,i),$g(e.projectStatus,r,i),$g(e.builderPrograms,r,i),$g(e.diagnostics,r,i),$g(e.projectPendingBuild,r,i),$g(e.projectErrorsReported,r,i),$g(e.buildInfoCache,r,i),$g(e.outputTimeStamps,r,i),e.watch&&($g(e.allWatchedConfigFiles,r,{onDeleteValue:vm}),e.allWatchedExtendedConfigFiles.forEach(a=>{a.projects.forEach(o=>{r.has(o)||a.projects.delete(o)}),a.close()}),$g(e.allWatchedWildcardDirectories,r,{onDeleteValue:a=>a.forEach(Em)}),$g(e.allWatchedInputFiles,r,{onDeleteValue:a=>a.forEach(vm)}),$g(e.allWatchedPackageJsonFiles,r,{onDeleteValue:a=>a.forEach(vm)})),e.buildOrder=t}function U0e(e,t,r){const i=t&&T4(e,t),a=h5(e);if(AS(a))return a;if(i){const l=sd(e,i);if(qc(a,f=>sd(e,f)===l)===-1)return}const o=i?V0e(e,[i]):a;return E.assert(!AS(o)),E.assert(!r||i!==void 0),E.assert(!r||o[o.length-1]===i),r?o.slice(0,o.length-1):o}function W0e(e){e.cache&&yQ(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,a=t.getSourceFile,{originalReadFile:o,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,getSourceFileWithCache:m,readFileWithCache:y}=a5(r,x=>Mu(e,x),(...x)=>a.call(t,...x));e.readFileWithCache=y,t.getSourceFile=m,e.cache={originalReadFile:o,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:a}}function yQ(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:a,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,a.clear(),o==null||o.clear(),l==null||l.clear(),u==null||u.clear(),e.cache=void 0}function q0e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function H0e({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(sd(e,i),0)),t&&t.throwIfCancellationRequested()}function $0e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function MOe(e,t,r,i,a){let o=!0;return{kind:2,project:t,projectPath:r,buildOrder:a,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{nhe(e,i,r),o=!1},done:()=>(o&&nhe(e,i,r),ho("SolutionBuilder::Timestamps only updates"),$0e(e,r))}}function X0e(e,t,r,i,a,o,l){let u=e===0?0:4,f,g,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>x(Zo),getProgram:()=>x(R=>R.getProgramOrUndefined()),getSourceFile:R=>x(Z=>Z.getSourceFile(R)),getSourceFiles:()=>k(R=>R.getSourceFiles()),getOptionsDiagnostics:R=>k(Z=>Z.getOptionsDiagnostics(R)),getGlobalDiagnostics:R=>k(Z=>Z.getGlobalDiagnostics(R)),getConfigFileParsingDiagnostics:()=>k(R=>R.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(R,Z)=>k(oe=>oe.getSyntacticDiagnostics(R,Z)),getAllDependencies:R=>k(Z=>Z.getAllDependencies(R)),getSemanticDiagnostics:(R,Z)=>k(oe=>oe.getSemanticDiagnostics(R,Z)),getSemanticDiagnosticsOfNextAffectedFile:(R,Z)=>x(oe=>oe.getSemanticDiagnosticsOfNextAffectedFile&&oe.getSemanticDiagnosticsOfNextAffectedFile(R,Z)),emit:(R,Z,oe,_e,X)=>{if(R||_e)return x(H=>{var Q,re;return H.emit(R,Z,oe,_e,X||((re=(Q=t.host).getCustomTransformers)==null?void 0:re.call(Q,r)))});if(ee(2,oe),u===5)return U(Z,oe);if(u===3)return V(Z,oe,X)},done:y}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(R,Z)=>u!==4?m:j(R,Z),done:y};function y(R,Z,oe){return ee(8,R,Z,oe),ho(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),$0e(t,i)}function x(R){return ee(0),f&&R(f)}function k(R){return x(R)||Ve}function C(){var R,Z;if(E.assert(f===void 0),t.options.dry){F_(t,p.A_non_dry_build_would_build_project_0,r),g=1,u=7;return}if(t.options.verbose&&F_(t,p.Building_project_0,r),o.fileNames.length===0){x4(t,i,fT(o)),g=0,u=7;return}const{host:oe,compilerHost:_e}=t;t.projectCompilerOptions=o.options,(R=t.moduleResolutionCache)==null||R.update(o.options),(Z=t.typeReferenceDirectiveResolutionCache)==null||Z.update(o.options),f=oe.createProgram(o.fileNames,o.options,_e,BOe(t,i,o),fT(o),o.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&an(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),([X,H])=>[t.host.realpath&&H?Mu(t,t.host.realpath(X)):X,H])),t.builderPrograms.set(i,f)),u++}function N(R,Z,oe){R.length?{buildResult:g,step:u}=TQ(t,i,f,o,R,Z,oe):u++}function D(R){E.assertIsDefined(f),N([...f.getConfigFileParsingDiagnostics(),...f.getOptionsDiagnostics(R),...f.getGlobalDiagnostics(R),...f.getSyntacticDiagnostics(void 0,R)],8,"Syntactic")}function M(R){N(E.checkDefined(f).getSemanticDiagnostics(void 0,R),16,"Semantic")}function V(R,Z,oe){var _e,X,H;E.assertIsDefined(f),E.assert(u===3);const Q=f.saveEmitState();let re;const ue=Pe=>(re||(re=[])).push(Pe),fe=[],{emitResult:G}=iM(f,ue,void 0,void 0,(Pe,Ge,tt,mt,Je,at)=>fe.push({name:Pe,text:Ge,writeByteOrderMark:tt,data:at}),Z,!1,oe||((X=(_e=t.host).getCustomTransformers)==null?void 0:X.call(_e,r)));if(re)return f.restoreEmitState(Q),{buildResult:g,step:u}=TQ(t,i,f,o,re,32,"Declaration file"),{emitSkipped:!0,diagnostics:G.diagnostics};const{host:Ne,compilerHost:De}=t,Xe=(H=f.hasChangedEmitSignature)!=null&&H.call(f)?0:2,ve=D6(),be=new Map,xe=f.getCompilerOptions(),rt=DD(xe);let ct,pe;return fe.forEach(({name:Pe,text:Ge,writeByteOrderMark:tt,data:mt})=>{const Je=Mu(t,Pe);be.set(Mu(t,Pe),Pe),mt!=null&&mt.buildInfo&&SQ(t,mt.buildInfo,i,xe,Xe);const at=mt!=null&&mt.differsOnlyInMap?Ex(t.host,Pe):void 0;g3(R?{writeFile:R}:De,ve,Pe,Ge,tt),mt!=null&&mt.differsOnlyInMap?t.host.setModifiedTime(Pe,at):!rt&&t.watch&&(ct||(ct=xQ(t,i))).set(Je,pe||(pe=g5(t.host)))}),Y(ve,be,fe.length?fe[0].name:pX(o,!Ne.useCaseSensitiveFileNames()),Xe),G}function U(R,Z){E.assertIsDefined(f),E.assert(u===5);const oe=f.emitBuildInfo((_e,X,H,Q,re,ue)=>{ue!=null&&ue.buildInfo&&SQ(t,ue.buildInfo,i,f.getCompilerOptions(),2),R?R(_e,X,H,Q,re,ue):t.compilerHost.writeFile(_e,X,H,Q,re,ue)},Z);return oe.diagnostics.length&&(v5(t,oe.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...oe.diagnostics]),g=64&g),oe.emittedFiles&&t.write&&oe.emittedFiles.forEach(_e=>Z0e(t,o,_e)),bQ(t,f,o),u=7,oe}function Y(R,Z,oe,_e){const X=R.getDiagnostics();return X.length?({buildResult:g,step:u}=TQ(t,i,f,o,X,64,"Emit"),X):(t.write&&Z.forEach(H=>Z0e(t,o,H)),the(t,o,i,p.Updating_unchanged_output_timestamps_of_project_0,Z),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:oe}),bQ(t,f,o),u=7,g=_e,X)}function j(R,Z){var oe,_e,X,H;if(E.assert(e===1),t.options.dry){F_(t,p.A_non_dry_build_would_update_output_of_project_0,r),g=1,u=7;return}t.options.verbose&&F_(t,p.Updating_output_of_project_0,r);const{compilerHost:Q}=t;t.projectCompilerOptions=o.options,(_e=(oe=t.host).beforeEmitBundle)==null||_e.call(oe,o);const re=Rge(o,Q,Xe=>{const ve=T4(t,Xe.path);return dT(t,ve,sd(t,ve))},Z||((H=(X=t.host).getCustomTransformers)==null?void 0:H.call(X,r)));if($s(re))return F_(t,p.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,Tl(t,re)),u=6,m=X0e(0,t,r,i,a,o,l);E.assert(!!re.length);const ue=D6(),fe=new Map;let G=2;const Ne=t.buildInfoCache.get(i).buildInfo||void 0;return re.forEach(({name:Xe,text:ve,writeByteOrderMark:be,data:xe})=>{var rt,ct;fe.set(Mu(t,Xe),Xe),xe!=null&&xe.buildInfo&&(((rt=xe.buildInfo.program)==null?void 0:rt.outSignature)!==((ct=Ne==null?void 0:Ne.program)==null?void 0:ct.outSignature)&&(G&=-3),SQ(t,xe.buildInfo,i,o.options,G)),g3(R?{writeFile:R}:Q,ue,Xe,ve,be)}),{emitSkipped:!1,diagnostics:Y(ue,fe,re[0].name,G)}}function ee(R,Z,oe,_e){for(;u<=R&&u<8;){const X=u;switch(u){case 0:C();break;case 1:D(Z);break;case 2:M(Z);break;case 3:V(oe,Z,_e);break;case 5:U(oe,Z);break;case 4:j(oe,_e);break;case 6:E.checkDefined(m).done(Z,oe,_e),u=8;break;case 7:VOe(t,r,i,a,o,l,E.checkDefined(g)),u++;break}E.assert(u>X)}}}function ROe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!fT(r).length||!DD(r.options)}function Q0e(e,t,r){if(!e.projectPendingBuild.size||AS(t))return;const{options:i,projectPendingBuild:a}=e;for(let o=0;o{const k=E.checkDefined(e.filesWatched.get(u));E.assert(_M(k)),k.modifiedTime=x,k.callbacks.forEach(C=>C(m,y,x))},i,a,o,l);e.filesWatched.set(u,{callbacks:[r],watcher:g,modifiedTime:f})}return{close:()=>{const g=E.checkDefined(e.filesWatched.get(u));E.assert(_M(g)),g.callbacks.length===1?(e.filesWatched.delete(u),Em(g)):AC(g.callbacks,r)}}}function xQ(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function SQ(e,t,r,i,a){const o=oh(i),l=kQ(e,o,r),u=g5(e.host);l?(l.buildInfo=t,l.modifiedTime=u,a&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Mu(e,o),buildInfo:t,modifiedTime:u,latestChangedDtsTime:a&2?void 0:u})}function kQ(e,t,r){const i=Mu(e,t),a=e.buildInfoCache.get(r);return(a==null?void 0:a.path)===i?a:void 0}function ehe(e,t,r,i){const a=Mu(e,t),o=e.buildInfoCache.get(r);if(o!==void 0&&o.path===a)return o.buildInfo||void 0;const l=e.readFileWithCache(t),u=l?BL(t,l):void 0;return e.buildInfoCache.set(r,{path:a,buildInfo:u||!1,modifiedTime:i||jg}),u}function CQ(e,t,r,i){const a=K0e(e,t);if(rN&&(C=oe,N=_e),x&&M.add(Mu(e,oe))}if(x){k||(k=$X(x,f,u));for(const oe of k.roots)if(!M.has(oe))return{type:10,buildInfoFile:f,inputFile:oe}}if(!f){const oe=ML(t,!u.useCaseSensitiveFileNames()),_e=xQ(e,r);for(const X of oe){const H=Mu(e,X);let Q=_e==null?void 0:_e.get(H);if(Q||(Q=Ex(e.host,X),_e==null||_e.set(H,Q)),Q===jg)return{type:4,missingOutputFileName:X};if(QCQ(e,oe,m,g));if(R)return R;const Z=mn(e.lastCachedPackageJsonLookups.get(r)||Ve,([oe])=>CQ(e,oe,m,g));return Z||(Y&&U?{type:3,outOfDateOutputFileName:g,newerProjectName:j}:{type:U?2:D?15:1,newestInputFileTime:N,newestInputFileName:C,oldestOutputFileName:g})}function JOe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function EQ(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;ho("SolutionBuilder::beforeUpToDateCheck");const a=jOe(e,t,r);return ho("SolutionBuilder::afterUpToDateCheck"),Gu("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,a),a}function the(e,t,r,i,a){if(t.options.noEmit)return;let o;const l=oh(t.options);if(l){a!=null&&a.has(Mu(e,l))||(e.options.verbose&&F_(e,i,t.options.configFilePath),e.host.setModifiedTime(l,o=g5(e.host)),kQ(e,l,r).modifiedTime=o),e.outputTimeStamps.delete(r);return}const{host:u}=e,f=ML(t,!u.useCaseSensitiveFileNames()),g=xQ(e,r),m=g?new Set:void 0;if(!a||f.length!==a.size){let y=!!e.options.verbose;for(const x of f){const k=Mu(e,x);a!=null&&a.has(k)||(y&&(y=!1,F_(e,i,t.options.configFilePath)),u.setModifiedTime(x,o||(o=g5(e.host))),g&&(g.set(k,o),m.add(k)))}}g==null||g.forEach((y,x)=>{!(a!=null&&a.has(x))&&!m.has(x)&&g.delete(x)})}function zOe(e,t,r){if(!t.composite)return;const i=E.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const a=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(fs(i.buildInfo.program.latestChangedDtsFile,bi(i.path))):void 0;return i.latestChangedDtsTime=a||!1,a}function nhe(e,t,r){if(e.options.dry)return F_(e,p.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);the(e,t,r,p.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:pX(t,!e.host.useCaseSensitiveFileNames())})}function VOe(e,t,r,i,a,o,l){if(!(l&124)&&!!a.options.composite)for(let u=i+1;ue.diagnostics.has(sd(e,g)))?f?2:1:0}function ihe(e,t,r){ho("SolutionBuilder::beforeClean");const i=WOe(e,t,r);return ho("SolutionBuilder::afterClean"),Gu("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function WOe(e,t,r){const i=U0e(e,t,r);if(!i)return 3;if(AS(i))return v5(e,i.circularDiagnostics),4;const{options:a,host:o}=e,l=a.dry?[]:void 0;for(const u of i){const f=sd(e,u),g=dT(e,u,f);if(g===void 0){_he(e,f);continue}const m=ML(g,!o.useCaseSensitiveFileNames());if(!m.length)continue;const y=new Set(g.fileNames.map(x=>Mu(e,x)));for(const x of m)y.has(Mu(e,x))||o.fileExists(x)&&(l?l.push(x):(o.deleteFile(x),wQ(e,f,0)))}return l&&F_(e,p.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r - * ${u}`).join("")),0}function wQ(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,q0e(e,t),H0e(e,t,r),W0e(e)}function y5(e,t,r){e.reportFileChangeDetected=!0,wQ(e,t,r),she(e,250,!0)}function she(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(qOe,t,"timerToBuildInvalidatedProject",e,r))}function qOe(e,t,r){ho("SolutionBuilder::beforeBuild");const i=HOe(t,r);ho("SolutionBuilder::afterBuild"),Gu("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&uhe(t,i)}function HOe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),NQ(e,p.File_change_detected_Starting_incremental_compilation));let r=0;const i=h5(e),a=vQ(e,i,!1);if(a)for(a.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=Q0e(e,i,!1);if(!o)break;if(o.kind!==2&&(t||r===5)){she(e,100,!1);return}Y0e(e,o,i).done(),o.kind!==2&&r++}return yQ(e),i}function ahe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,uM(e,t,()=>y5(e,r,2),2e3,i==null?void 0:i.watchOptions,cp.ConfigFile,t))}function ohe(e,t,r){hX(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,a)=>uM(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(a))==null?void 0:o.projects.forEach(l=>y5(e,l,2))},2e3,r==null?void 0:r.watchOptions,cp.ExtendedConfigFile),i=>Mu(e,i))}function che(e,t,r,i){!e.watch||JL(hQ(e.allWatchedWildcardDirectories,r),new Map(Object.entries(i.wildcardDirectories)),(a,o)=>e.watchDirectory(a,l=>{var u;zL({watchedDirPath:Mu(e,a),fileOrDirectory:l,fileOrDirectoryPath:Mu(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=FOe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:f=>e.writeLog(f),toPath:f=>Mu(e,f)})||y5(e,r,1)},o,i==null?void 0:i.watchOptions,cp.WildcardDirectory,t))}function DQ(e,t,r,i){!e.watch||F6(hQ(e.allWatchedInputFiles,r),Mv(i.fileNames,a=>Mu(e,a)),{createNewValue:(a,o)=>uM(e,o,()=>y5(e,r,0),250,i==null?void 0:i.watchOptions,cp.SourceFile,t),onDeleteValue:vm})}function AQ(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||F6(hQ(e.allWatchedPackageJsonFiles,r),new Map(e.lastCachedPackageJsonLookups.get(r)),{createNewValue:(a,o)=>uM(e,a,()=>y5(e,r,0),2e3,i==null?void 0:i.watchOptions,cp.PackageJson,t),onDeleteValue:vm})}function GOe(e,t){if(!!e.watchAllProjectsPending){ho("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of lM(t)){const i=sd(e,r),a=dT(e,r,i);ahe(e,r,i,a),ohe(e,i,a),a&&(che(e,r,i,a),DQ(e,r,i,a),AQ(e,r,i,a))}ho("SolutionBuilder::afterWatcherCreation"),Gu("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function $Oe(e){Lf(e.allWatchedConfigFiles,vm),Lf(e.allWatchedExtendedConfigFiles,Em),Lf(e.allWatchedWildcardDirectories,t=>Lf(t,Em)),Lf(e.allWatchedInputFiles,t=>Lf(t,vm)),Lf(e.allWatchedPackageJsonFiles,t=>Lf(t,vm))}function lhe(e,t,r,i,a){const o=OOe(e,t,r,i,a);return{build:(l,u,f,g)=>rhe(o,l,u,f,g),clean:l=>ihe(o,l),buildReferences:(l,u,f,g)=>rhe(o,l,u,f,g,!0),cleanReferences:l=>ihe(o,l,!0),getNextInvalidatedProject:l=>(G0e(o,l),vQ(o,h5(o),!1)),getBuildOrder:()=>h5(o),getUpToDateStatusOfProject:l=>{const u=T4(o,l),f=sd(o,u);return EQ(o,dT(o,u,f),f)},invalidateProject:(l,u)=>wQ(o,l,u||0),close:()=>$Oe(o)}}function Tl(e,t){return MC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function F_(e,t,...r){e.host.reportSolutionBuilderStatus(kc(t,...r))}function NQ(e,t,...r){var i,a;(a=(i=e.hostWithWatch).onWatchStatusChange)==null||a.call(i,kc(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function v5({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function x4(e,t,r){v5(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function _he(e,t){x4(e,t,[e.configFileCache.get(t)])}function uhe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let a=0,o=[];AS(t)?(fhe(e,t.buildOrder),v5(e,t.circularDiagnostics),r&&(a+=nM(t.circularDiagnostics)),r&&(o=[...o,...rM(t.circularDiagnostics)])):(t.forEach(l=>{const u=sd(e,l);e.projectErrorsReported.has(u)||v5(e,i.get(u)||Ve)}),r&&i.forEach(l=>a+=nM(l)),r&&i.forEach(l=>[...o,...rM(l)])),e.watch?NQ(e,rQ(a),a):e.host.reportErrorSummary&&e.host.reportErrorSummary(a,o)}function fhe(e,t){e.options.verbose&&F_(e,p.Projects_in_this_build_Colon_0,t.map(r=>`\r - * `+Tl(e,r)).join(""))}function XOe(e,t,r){switch(r.type){case 6:return F_(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Tl(e,t),Tl(e,r.outOfDateOutputFileName),Tl(e,r.newerInputFileName));case 7:return F_(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Tl(e,t),Tl(e,r.outOfDateOutputFileName),Tl(e,r.newerProjectName));case 4:return F_(e,p.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Tl(e,t),Tl(e,r.missingOutputFileName));case 5:return F_(e,p.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Tl(e,t),Tl(e,r.fileName));case 8:return F_(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Tl(e,t),Tl(e,r.buildInfoFile));case 9:return F_(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Tl(e,t),Tl(e,r.buildInfoFile));case 10:return F_(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Tl(e,t),Tl(e,r.buildInfoFile),Tl(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return F_(e,p.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Tl(e,t),Tl(e,r.newestInputFileName||""),Tl(e,r.oldestOutputFileName||""));break;case 3:return F_(e,p.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Tl(e,t),Tl(e,r.newerProjectName));case 2:return F_(e,p.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Tl(e,t));case 15:return F_(e,p.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Tl(e,t));case 11:return F_(e,p.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Tl(e,t),Tl(e,r.upstreamProjectName));case 12:return F_(e,r.upstreamProjectBlocked?p.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:p.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Tl(e,t),Tl(e,r.upstreamProjectName));case 0:return F_(e,p.Failed_to_parse_file_0_Colon_1,Tl(e,t),r.reason);case 14:return F_(e,p.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Tl(e,t),r.version,F0);case 17:return F_(e,p.Project_0_is_being_forcibly_rebuilt,Tl(e,t))}}function fM(e,t,r){e.options.verbose&&XOe(e,t,r)}var phe,dhe,PQ,QOe=Bt({"src/compiler/tsbuildPublic.ts"(){Os(),Jv(),phe=new Date(-864e13),dhe=new Date(864e13),PQ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(PQ||{})}}),Os=Bt({"src/compiler/_namespaces/ts.ts"(){$7e(),mwe(),gwe(),Ewe(),Awe(),Nwe(),zwe(),Woe(),Zwe(),sDe(),aDe(),uDe(),ODe(),ZAe(),KAe(),e5e(),t5e(),p5e(),h5e(),y5e(),F5e(),pNe(),dNe(),CNe(),KNe(),APe(),LPe(),MPe(),GPe(),KPe(),cIe(),mIe(),DIe(),AIe(),BIe(),jIe(),JIe(),GIe(),$Ie(),XIe(),QIe(),YIe(),ZIe(),KIe(),e9e(),t9e(),i9e(),s9e(),a9e(),o9e(),c9e(),_9e(),u9e(),f9e(),p9e(),d9e(),m9e(),T9e(),w9e(),B9e(),z9e(),G9e(),$9e(),X9e(),uOe(),dOe(),hOe(),xOe(),COe(),EOe(),QOe(),D$(),Jv()}});function mhe(e,t){return new Ed(R7(t,`ts${CC}`)||R7(t,"latest")).compareTo(e.version)<=0}function ghe(e){return MQ.has(e)?"node":e}function YOe(e,t){const r=CA(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function ZOe(e,t){var r;const i=CA(t,a=>e.readFile(a));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function KOe(e,t,r,i,a,o,l,u,f,g){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const m=new Map;r=qi(r,Y=>{const j=ba(Y);if(c2(j))return j});const y=[];l.include&&M(l.include,"Explicitly included types");const x=l.exclude||[];if(!g.types){const Y=new Set(r.map(bi));Y.add(i),Y.forEach(j=>{V(j,"bower.json","bower_components",y),V(j,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||U(r),u){const Y=zk(u.map(ghe),Tx,w_);M(Y,"Inferred typings from unresolved imports")}o.forEach((Y,j)=>{const ee=f.get(j);m.has(j)&&m.get(j)===void 0&&ee!==void 0&&mhe(Y,ee)&&m.set(j,Y.typingLocation)});for(const Y of x)m.delete(Y)&&t&&t(`Typing for ${Y} is in exclude list, will be ignored.`);const k=[],C=[];m.forEach((Y,j)=>{Y!==void 0?C.push(Y):k.push(j)});const N={cachedTypingPaths:C,newTypingNames:k,filesToWatch:y};return t&&t(`Result: ${JSON.stringify(N)}`),N;function D(Y){m.has(Y)||m.set(Y,void 0)}function M(Y,j){t&&t(`${j}: ${JSON.stringify(Y)}`),mn(Y,D)}function V(Y,j,ee,R){const Z=Pi(Y,j);let oe,_e;e.fileExists(Z)&&(R.push(Z),oe=CA(Z,re=>e.readFile(re)).config,_e=Na([oe.dependencies,oe.devDependencies,oe.optionalDependencies,oe.peerDependencies],Bg),M(_e,`Typing names in '${Z}' dependencies`));const X=Pi(Y,ee);if(R.push(X),!e.directoryExists(X))return;const H=[],Q=_e?_e.map(re=>Pi(X,re,j)):e.readDirectory(X,[".json"],void 0,void 0,3).filter(re=>{if(Jl(re)!==j)return!1;const ue=Dl(ba(re)),fe=ue[ue.length-3][0]==="@";return fe&&Qp(ue[ue.length-4])===ee||!fe&&Qp(ue[ue.length-3])===ee});t&&t(`Searching for typing names in ${X}; all files: ${JSON.stringify(Q)}`);for(const re of Q){const ue=ba(re),G=CA(ue,De=>e.readFile(De)).config;if(!G.name)continue;const Ne=G.types||G.typings;if(Ne){const De=fs(Ne,bi(ue));e.fileExists(De)?(t&&t(` Package '${G.name}' provides its own types.`),m.set(G.name,De)):t&&t(` Package '${G.name}' provides its own types but they are missing.`)}else H.push(G.name)}M(H," Found package names")}function U(Y){const j=qi(Y,R=>{if(!c2(R))return;const Z=mu(Qp(Jl(R))),oe=hoe(Z);return a.get(oe)});j.length&&M(j,"Inferred typings from file names"),dt(Y,R=>Hc(R,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}}function eFe(e){return IQ(e,!0)}function IQ(e,t){if(!e)return 1;if(e.length>BQ)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=IQ(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const a=IQ(r[2],!1);return a!==0?{name:r[2],isScopeName:!1,result:a}:0}}return encodeURIComponent(e)!==e?5:0}function tFe(e,t){return typeof e=="object"?hhe(t,e.result,e.name,e.isScopeName):hhe(t,e,t,!1)}function hhe(e,t,r,i){const a=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${a} name '${r}' cannot be empty`;case 2:return`'${e}':: ${a} name '${r}' should be less than ${BQ} characters`;case 3:return`'${e}':: ${a} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${a} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${a} name '${r}' contains non URI safe characters`;case 0:return E.fail();default:E.assertNever(t)}}var OQ,FQ,LQ,MQ,RQ,BQ,nFe=Bt({"src/jsTyping/jsTyping.ts"(){pM(),OQ=["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"],FQ=OQ.map(e=>`node:${e}`),LQ=[...OQ,...FQ],MQ=new Set(LQ),RQ=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(RQ||{}),BQ=214}}),mT={};C_(mT,{NameValidationResult:()=>RQ,discoverTypings:()=>KOe,isTypingUpToDate:()=>mhe,loadSafeList:()=>YOe,loadTypesMap:()=>ZOe,nodeCoreModuleList:()=>LQ,nodeCoreModules:()=>MQ,nonRelativeModuleNameForTypingCache:()=>ghe,prefixedNodeCoreModuleList:()=>FQ,renderPackageNameValidationFailure:()=>tFe,validatePackageName:()=>eFe});var rFe=Bt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){nFe()}});function iFe(e){return jl.args.indexOf(e)>=0}function sFe(e){const t=jl.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(jQ||(jQ={}))}}),cFe=Bt({"src/jsTyping/types.ts"(){}}),Ehe={};C_(Ehe,{ActionInvalidate:()=>vhe,ActionPackageInstalled:()=>bhe,ActionSet:()=>yhe,ActionWatchTypingLocations:()=>Che,Arguments:()=>jQ,EventBeginInstallTypes:()=>xhe,EventEndInstallTypes:()=>She,EventInitializationFailed:()=>khe,EventTypesRegistry:()=>The,findArgument:()=>sFe,hasArgument:()=>iFe,nowString:()=>aFe});var lFe=Bt({"src/jsTyping/_namespaces/ts.server.ts"(){oFe(),cFe()}}),pM=Bt({"src/jsTyping/_namespaces/ts.ts"(){Os(),rFe(),lFe()}});function whe(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` -`,convertTabsToSpaces:!0,indentStyle:2,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:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var JQ,zQ,VQ,UQ,lp,WQ,qQ,HQ,GQ,$Q,XQ,QQ,Dhe,b5,YQ,ZQ,KQ,eY,tY,nY,rY,iY,sY,_Fe=Bt({"src/services/types.ts"(){(e=>{class t{constructor(a){this.text=a}getText(a,o){return a===0&&o===this.text.length?this.text:this.text.substring(a,o)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(JQ||(JQ={})),zQ=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(zQ||{}),VQ=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(VQ||{}),UQ=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(UQ||{}),lp={},WQ=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(WQ||{}),qQ=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(qQ||{}),HQ=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(HQ||{}),GQ=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(GQ||{}),$Q=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))($Q||{}),XQ=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(XQ||{}),QQ=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(QQ||{}),Dhe=whe(` -`),b5=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(b5||{}),YQ=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(YQ||{}),ZQ=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(ZQ||{}),KQ=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(KQ||{}),eY=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(eY||{}),tY=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(tY||{}),nY=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(nY||{}),rY=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(rY||{}),iY=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(iY||{}),sY=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(sY||{})}});function T5(e){switch(e.kind){case 260:return Zn(e)&&QU(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return __(e)||t0(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function gT(e){e=hY(e);const t=e.parent;return e.kind===312?1:dc(t)||p_(t)||km(t)||yu(t)||Sm(t)||Hl(t)&&e===t.name?7:dM(e)?uFe(e):Gg(e)?T5(t):Xu(e)&&On(e,Yp(c8,Px,Py))?7:mFe(e)?2:fFe(e)?4:Ho(t)?(E.assert(id(t.parent)),2):wy(t)?3:1}function uFe(e){const t=e.kind===166?e:gu(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function dM(e){for(;e.parent.kind===166;)e=e.parent;return y6(e.parent)&&e.parent.moduleReference===e}function fFe(e){return pFe(e)||dFe(e)}function pFe(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function dFe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){const i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function mFe(e){switch(x3(e)&&(e=e.parent),e.kind){case 110:return!qg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Ym(e.parent)}return!1}function aY(e,t=!1,r=!1){return M8(e,js,mM,t,r)}function L8(e,t=!1,r=!1){return M8(e,f2,mM,t,r)}function oY(e,t=!1,r=!1){return M8(e,Xm,mM,t,r)}function Ahe(e,t=!1,r=!1){return M8(e,Qb,gFe,t,r)}function Nhe(e,t=!1,r=!1){return M8(e,Wl,mM,t,r)}function Phe(e,t=!1,r=!1){return M8(e,V_,hFe,t,r)}function mM(e){return e.expression}function gFe(e){return e.tag}function hFe(e){return e.tagName}function M8(e,t,r,i,a){let o=i?Ihe(e):gM(e);return a&&(o=nl(o)),!!o&&!!o.parent&&t(o.parent)&&r(o.parent)===o}function gM(e){return S4(e)?e.parent:e}function Ihe(e){return S4(e)||uY(e)?e.parent:e}function hM(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function x5(e,t){return kr(e.expression)?e.expression.name.text===t:!1}function S5(e){var t;return we(e)&&((t=Hr(e.parent,HC))==null?void 0:t.label)===e}function cY(e){var t;return we(e)&&((t=Hr(e.parent,p2))==null?void 0:t.label)===e}function lY(e){return cY(e)||S5(e)}function _Y(e){var t;return((t=Hr(e.parent,a6))==null?void 0:t.tagName)===e}function Ohe(e){var t;return((t=Hr(e.parent,gu))==null?void 0:t.right)===e}function S4(e){var t;return((t=Hr(e.parent,kr))==null?void 0:t.name)===e}function uY(e){var t;return((t=Hr(e.parent,No))==null?void 0:t.argumentExpression)===e}function fY(e){var t;return((t=Hr(e.parent,Nc))==null?void 0:t.name)===e}function pY(e){var t;return we(e)&&((t=Hr(e.parent,ks))==null?void 0:t.name)===e}function yM(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return os(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function Fhe(e){return gy(e.parent.parent)&&a3(e.parent.parent)===e}function hT(e){for(Zf(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function w2(e){switch(e.kind){case 312:return zc(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(hm(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:r}=e;return ks(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Mr(e,16476)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=pc(e),{right:a}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=w2(a);return l===""?"const":l;case 3:return fo(a)?"method":"property";case 4:return"property";case 5:return fo(a)?"method":"property";case 6:return"local class";default:return""}case 80:return Sm(e.parent)?"alias":"";case 277:const o=w2(e.expression);return o===""?"const":o;default:return""}function t(r){return f6(r)?"const":C9(r)?"let":"var"}}function k4(e){switch(e.kind){case 110:return!0;case 80:return kq(e)&&e.parent.kind===169;default:return!1}}function _p(e,t){const r=zg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function yf(e,t){return dY(e.pos,e.end,t)}function Lhe(e,t){return C5(e,t.pos)&&C5(e,t.end)}function k5(e,t){return e.pos<=t&&t<=e.end}function C5(e,t){return e.pos=r.end}function E5(e,t,r){return e.pos<=t&&e.end>=r}function R8(e,t,r){return vM(e.pos,e.end,t,r)}function mY(e,t,r,i){return vM(e.getStart(t),e.end,r,i)}function vM(e,t,r,i){const a=Math.max(e,r),o=Math.min(t,i);return ai.kind===t)}function TM(e){const t=Fr(e.parent.getChildren(),r=>a4(r)&&yf(r,e));return E.assert(!t||gs(t.getChildren(),e)),t}function Rhe(e){return e.kind===90}function yFe(e){return e.kind===86}function vFe(e){return e.kind===100}function bFe(e){if(A_(e))return e.name;if(Qc(e)){const t=e.modifiers&&Fr(e.modifiers,Rhe);if(t)return t}if(Fl(e)){const t=Fr(e.getChildren(),yFe);if(t)return t}}function TFe(e){if(A_(e))return e.name;if(tl(e)){const t=Fr(e.modifiers,Rhe);if(t)return t}if(fo(e)){const t=Fr(e.getChildren(),vFe);if(t)return t}}function xFe(e){let t;return On(e,r=>(Di(r)&&(t=r),!gu(r.parent)&&!Di(r.parent)&&!Nb(r.parent))),t}function xM(e,t){if(e.flags&16777216)return;const r=JM(e,t);if(r)return r;const i=xFe(e);return i&&t.getTypeAtLocation(i)}function SFe(e,t){if(!t)switch(e.kind){case 263:case 231:return bFe(e);case 262:case 218:return TFe(e);case 176:return e}if(A_(e))return e.name}function Bhe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(rh(e.importClause.namedBindings)){const r=om(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(p1(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function jhe(e,t){if(e.exportClause){if(ap(e.exportClause))return om(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(og(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function kFe(e){if(e.types.length===1)return e.types[0].expression}function Jhe(e,t){const{parent:r}=e;if(Zs(e)&&(t||e.kind!==90)?Ap(r)&&gs(r.modifiers,e):e.kind===86?Qc(r)||Fl(e):e.kind===100?tl(r)||fo(e):e.kind===120?f_(r):e.kind===94?Ay(r):e.kind===156?wp(r):e.kind===145||e.kind===144?Nc(r):e.kind===102?Hl(r):e.kind===139?gf(r):e.kind===153&&Fu(r)){const i=SFe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&dl(r)&&r.declarations.length===1){const i=r.declarations[0];if(we(i.name))return i.name}if(e.kind===156){if(Sm(r)&&r.isTypeOnly){const i=Bhe(r.parent,t);if(i)return i}if(Yc(r)&&r.isTypeOnly){const i=jhe(r,t);if(i)return i}}if(e.kind===130){if(yu(r)&&r.propertyName||p_(r)&&r.propertyName||p1(r)||og(r))return r.name;if(Yc(r)&&r.exportClause&&og(r.exportClause))return r.exportClause.name}if(e.kind===102&&bl(r)){const i=Bhe(r,t);if(i)return i}if(e.kind===95){if(Yc(r)){const i=jhe(r,t);if(i)return i}if(dc(r))return nl(r.expression)}if(e.kind===149&&km(r))return r.expression;if(e.kind===161&&(bl(r)||Yc(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&tf(r)&&r.token===e.kind){const i=kFe(r);if(i)return i}if(e.kind===96){if(Ho(r)&&r.constraint&&sp(r.constraint))return r.constraint.typeName;if(Y6(r)&&sp(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&oS(r))return r.typeParameter.name;if(e.kind===103&&Ho(r)&&n8(r.parent))return r.name;if(e.kind===143&&lS(r)&&r.operator===143&&sp(r.type))return r.type.typeName;if(e.kind===148&&lS(r)&&r.operator===148&&XH(r.type)&&sp(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&f2(r)||e.kind===116&&Yb(r)||e.kind===114&&Z6(r)||e.kind===135&&f1(r)||e.kind===127&&yF(r)||e.kind===91&&Nfe(r))&&r.expression)return nl(r.expression);if((e.kind===103||e.kind===104)&&rr(r)&&r.operatorToken===e)return nl(r.right);if(e.kind===130&&sA(r)&&sp(r.type))return r.type.typeName;if(e.kind===103&&bF(r)||e.kind===165&&aA(r))return nl(r.expression)}return e}function hY(e){return Jhe(e,!1)}function SM(e){return Jhe(e,!0)}function af(e,t){return B8(e,t,r=>Od(r)||ru(r.kind)||Ei(r))}function B8(e,t,r){return zhe(e,t,!1,r,!1)}function Vi(e,t){return zhe(e,t,!0,void 0,!1)}function zhe(e,t,r,i,a){let o=e,l;e:for(;;){const f=o.getChildren(e),g=yx(f,t,(m,y)=>y,(m,y)=>{const x=f[m].getEnd();if(xt?1:u(f[m],k,x)?f[m-1]&&u(f[m-1])?1:0:i&&k===t&&f[m-1]&&f[m-1].getEnd()===t&&u(f[m-1])?1:-1});if(l)return l;if(g>=0&&f[g]){o=f[g];continue e}return o}function u(f,g,m){if(m!=null||(m=f.getEnd()),mt))return!1;if(tr.getStart(e)&&t(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&SY(o,r)?i(o):void 0)}}function rl(e,t,r,i){const a=o(r||t);return E.assert(!(a&&D5(a))),a;function o(l){if(Uhe(l)&&l.kind!==1)return l;const u=l.getChildren(t),f=yx(u,e,(m,y)=>y,(m,y)=>e=u[m-1].end?0:1:-1);if(f>=0&&u[f]){const m=u[f];if(e=e||!SY(m,t)||D5(m)){const k=vY(u,f,t,l.kind);return k?!i&&f9(k)&&k.getChildren(t).length?o(k):yY(k,t):void 0}else return o(m)}E.assert(r!==void 0||l.kind===312||l.kind===1||f9(l));const g=vY(u,u.length,t,l.kind);return g&&yY(g,t)}}function Uhe(e){return Dx(e)&&!D5(e)}function yY(e,t){if(Uhe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=vY(r,r.length,t,e.kind);return i&&yY(i,t)}function vY(e,t,r,i){for(let a=t-1;a>=0;a--){const o=e[a];if(D5(o))a===0&&(i===12||i===285)&&E.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(SY(e[a],r))return e[a]}}function vT(e,t,r=rl(t,e)){if(r&&sW(r)){const i=r.getStart(e),a=r.getEnd();if(ir.getStart(e)}function qhe(e,t){const r=Vi(e,t);return!!(nS(r)||r.kind===19&&o8(r.parent)&&cg(r.parent.parent)||r.kind===30&&V_(r.parent)&&cg(r.parent.parent))}function CM(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(Vi(e,t))}function EM(e,t,r){const i=sa(e.kind),a=sa(t),o=e.getFullStart(),l=r.text.lastIndexOf(a,o);if(l===-1)return;if(r.text.lastIndexOf(i,o-1)!!o.typeParameters&&o.typeParameters.length>=t)}function xY(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,a=0;for(;r;){switch(r.kind){case 30:if(r=rl(r.getFullStart(),t),r&&r.kind===29&&(r=rl(r.getFullStart(),t)),!r||!we(r))return;if(!i)return Gg(r)?void 0:{called:r,nTypeArguments:a};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=EM(r,19,t),!r)return;break;case 22:if(r=EM(r,21,t),!r)return;break;case 24:if(r=EM(r,23,t),!r)return;break;case 28:a++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Di(r))break;return}r=rl(r.getFullStart(),t)}}function ch(e,t,r){return ml.getRangeOfEnclosingComment(e,t,void 0,r)}function Ghe(e,t){const r=Vi(e,t);return!!On(r,Dp)}function SY(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function j8(e,t=0){const r=[],i=l_(e)?HU(e)&~t:0;return i&8&&r.push("private"),i&16&&r.push("protected"),i&4&&r.push("public"),(i&32||ec(e))&&r.push("static"),i&256&&r.push("abstract"),i&1&&r.push("export"),i&8192&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function $he(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(ks(e)||e.kind===263||e.kind===264)return e.typeParameters}function wM(e){return e===2||e===3}function kY(e){return!!(e===11||e===14||Kh(e))}function Xhe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function Qhe(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(Xhe(r,t[0],t[1])||Xhe(r,t[1],t[0]))}function N5(e,t,r){return Kh(e.kind)&&e.getStart(r){const r=Ba(t);return!e[r]&&(e[r]=!0)}}function PM(e){return e.getText(0,e.getLength())}function O5(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function n1e(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function PY(e){return!!e.module||Oa(e)>=2||!!e.noEmit}function bT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Gs(t,t.readFile),useCaseSensitiveFileNames:Gs(t,t.useCaseSensitiveFileNames),getSymlinkCache:Gs(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Gs(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Gs(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:Gs(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function IY(e,t){return{...bT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function IM(e){return e===2||e>=3&&e<=99||e===100}function r1e(e,t,r,i){return e||t&&t.length?_h(e,t,r,i):void 0}function _h(e,t,r,i,a){return I.createImportDeclaration(void 0,e||t?I.createImportClause(!!a,e,t&&t.length?I.createNamedImports(t):void 0):void 0,typeof r=="string"?PS(r,i):r,void 0)}function PS(e,t){return I.createStringLiteral(e,t===0)}function OY(e,t){return z9(e,t)?1:0}function Mf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&Fr(e.imports,i=>pa(i)&&!Do(i.parent));return r?OY(r,e):1}}function FY(e){switch(e){case 0:return"'";case 1:return'"';default:return E.assertNever(e)}}function OM(e){const t=FM(e);return t===void 0?void 0:Li(t)}function FM(e){return e.escapedName!=="default"?e.escapedName:_c(e.declarations,t=>{const r=os(t);return r&&r.kind===80?r.escapedText:void 0})}function LM(e){return Qa(e)&&(km(e.parent)||bl(e.parent)||du(e.parent,!1)&&e.parent.arguments[0]===e||Zu(e.parent)&&e.parent.arguments[0]===e)}function L5(e){return Fa(e)&&td(e.parent)&&we(e.name)&&!e.propertyName}function MM(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function M5(e,t,r){if(!!e)for(;e.parent;){if(Ri(e.parent)||!CFe(r,e.parent,t))return e;e=e.parent}}function CFe(e,t,r){return WU(e,t.getStart(r))&&t.getEnd()<=Zl(e)}function C4(e,t){return Ap(e)?Fr(e.modifiers,r=>r.kind===t):void 0}function z8(e,t,r,i,a){const l=(Ds(r)?r[0]:r).kind===243?YW:Lb,u=Vr(t.statements,l);let f=Ds(r)?Op.detectImportDeclarationSorting(r,a):3;const g=Op.getOrganizeImportsComparer(a,f===2),m=Ds(r)?M0(r,(y,x)=>Op.compareImportsOrRequireStatements(y,x,g)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,m,i);else if(u&&(f=Op.detectImportDeclarationSorting(u,a))){const y=Op.getOrganizeImportsComparer(a,f===2);for(const x of m){const k=Op.getImportDeclarationInsertionIndex(u,x,y);if(k===0){const C=u[0]===t.statements[0]?{leadingTriviaOption:er.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],x,!1,C)}else{const C=u[k-1];e.insertNodeAfter(t,C,x)}}}else{const y=Bo(u);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function LY(e,t){return E.assert(e.isTypeOnly),Ms(e.getChildAt(0,t),AY)}function E4(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function EFe(e,t){return e.fileName===t.fileName&&E4(e.textSpan,t.textSpan)}function MY(e,t){if(e){for(let r=0;rns(r)?!0:Fa(r)||td(r)||uS(r)?!1:"quit")}function wFe(){const e=jD*10;let t,r,i,a;m();const o=y=>u(y,17);return{displayParts:()=>{const y=t.length&&t[t.length-1].text;return a>e&&y&&y!=="..."&&(qm(y.charCodeAt(y.length-1))||t.push(vu(" ",16)),t.push(vu("...",15))),t},writeKeyword:y=>u(y,5),writeOperator:y=>u(y,12),writePunctuation:y=>u(y,15),writeTrailingSemicolon:y=>u(y,15),writeSpace:y=>u(y,16),writeStringLiteral:y=>u(y,8),writeParameter:y=>u(y,13),writeProperty:y=>u(y,14),writeLiteral:y=>u(y,8),writeSymbol:f,writeLine:g,write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ss,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(a>e)&&r){const y=Z9(i);y&&(a+=y.length,t.push(vu(y,16))),r=!1}}function u(y,x){a>e||(l(),a+=y.length,t.push(vu(y,x)))}function f(y,x){a>e||(l(),a+=y.length,t.push(a1e(y,x)))}function g(){a>e||(a+=1,t.push(w4()),r=!0)}function m(){t=[],r=!0,i=0,a=0}}function a1e(e,t){return vu(e,r(t));function r(i){const a=i.flags;return a&3?BY(i)?13:9:a&4||a&32768||a&65536?14:a&8?19:a&16?20:a&32?1:a&64?4:a&384?2:a&1536?11:a&8192?10:a&262144?18:a&524288||a&2097152?0:17}}function vu(e,t){return{text:e,kind:b5[t]}}function sc(){return vu(" ",16)}function Ru(e){return vu(sa(e),5)}function m_(e){return vu(sa(e),15)}function V8(e){return vu(sa(e),12)}function o1e(e){return vu(e,13)}function c1e(e){return vu(e,14)}function jY(e){const t=Uv(e);return t===void 0?vf(e):Ru(t)}function vf(e){return vu(e,17)}function l1e(e){return vu(e,0)}function _1e(e){return vu(e,18)}function RM(e){return vu(e,24)}function u1e(e,t){return{text:e,kind:b5[23],target:{fileName:Bn(t).fileName,textSpan:au(t)}}}function JY(e){return vu(e,22)}function f1e(e,t){var r;const i=Rfe(e)?"link":Bfe(e)?"linkcode":"linkplain",a=[JY(`{@${i} `)];if(!e.name)e.text&&a.push(RM(e.text));else{const o=t==null?void 0:t.getSymbolAtLocation(e.name),l=AFe(e.text),u=el(e.name)+e.text.slice(0,l),f=DFe(e.text.slice(l)),g=(o==null?void 0:o.valueDeclaration)||((r=o==null?void 0:o.declarations)==null?void 0:r[0]);g?(a.push(u1e(u,g)),f&&a.push(RM(f))):a.push(RM(u+(l?"":" ")+f))}return a.push(JY("}")),a}function DFe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function r0(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||L1e}function w4(){return vu(` -`,6)}function T1(e){try{return e(nR),nR.displayParts()}finally{nR.clear()}}function B5(e,t,r,i=0){return T1(a=>{e.writeType(t,r,i|1024|16384,a)})}function U8(e,t,r,i,a=0){return T1(o=>{e.writeSymbol(t,r,i,a|8,o)})}function zY(e,t,r,i=0){return i|=25632,T1(a=>{e.writeSignature(t,r,i,void 0,a)})}function NFe(e,t){const r=t.getSourceFile();return T1(i=>{i5().writeNode(4,e,r,i)})}function p1e(e){return!!e.parent&&Ax(e.parent)&&e.parent.propertyName===e}function VY(e,t){return TO(e,t.getScriptKind&&t.getScriptKind(e))}function d1e(e,t){let r=e;for(;PFe(r)||pm(r)&&r.links.target;)pm(r)&&r.links.target?r=r.links.target:r=iu(r,t);return r}function PFe(e){return(e.flags&2097152)!==0}function m1e(e,t){return ya(iu(e,t))}function g1e(e,t){for(;qm(e.charCodeAt(t));)t+=1;return t}function BM(e,t){for(;t>-1&&Ad(e.charCodeAt(t));)t-=1;return t+1}function Io(e,t=!0){const r=e&&h1e(e);return r&&!t&&Bu(r),r}function j5(e,t,r){let i=r(e);return i?or(i,e):i=h1e(e,r),i&&!t&&Bu(i),i}function h1e(e,t){const r=t?o=>j5(o,!0,t):Io,a=pn(e,r,n0,t?o=>o&&UY(o,!0,t):o=>o&&D2(o),r);if(a===e){const o=pa(e)?or(I.createStringLiteralFromNode(e),e):Ou(e)?or(I.createNumericLiteral(e.text,e.numericLiteralFlags),e):I.cloneNode(e);return Ke(o,e)}return a.parent=void 0,a}function D2(e,t=!0){if(e){const r=I.createNodeArray(e.map(i=>Io(i,t)),e.hasTrailingComma);return Ke(r,e),r}return e}function UY(e,t,r){return I.createNodeArray(e.map(i=>j5(i,t,r)),e.hasTrailingComma)}function Bu(e){WY(e),y1e(e)}function WY(e){qY(e,1024,OFe)}function y1e(e){qY(e,2048,Bq)}function TT(e,t){const r=e.getSourceFile(),i=r.text;IFe(e,i)?D4(e,t,r):z5(e,t,r),W8(e,t,r)}function IFe(e,t){const r=e.getFullStart(),i=e.getStart();for(let a=r;at)}function xT(e,t){let r=e;for(let i=1;!y9(t,r);i++)r=`${e}_${i}`;return r}function J5(e,t,r,i){let a=0,o=-1;for(const{fileName:l,textChanges:u}of e){E.assert(l===t);for(const f of u){const{span:g,newText:m}=f,y=FFe(m,Ux(r));if(y!==-1&&(o=g.start+a+y,!i))return o;a+=m.length-g.length}}return E.assert(i),E.assert(o>=0),o}function D4(e,t,r,i,a){_w(r.text,e.pos,HY(t,r,i,a,X3))}function W8(e,t,r,i,a){uw(r.text,e.end,HY(t,r,i,a,MO))}function z5(e,t,r,i,a){uw(r.text,e.pos,HY(t,r,i,a,X3))}function HY(e,t,r,i,a){return(o,l,u,f)=>{u===3?(o+=2,l-=2):o+=2,a(e,r||u,t.text.slice(o,l),i!==void 0?i:f)}}function FFe(e,t){if(ts(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function jM(e){return rr(e)&&e.operatorToken.kind===28||ha(e)||sA(e)&&ha(e.expression)}function JM(e,t,r){const i=G0(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:a,operatorToken:o,right:l}=i;return zM(o.kind)?t.getTypeAtLocation(e===l?a:l):t.getContextualType(e,r)}case 296:return $Y(i,t);default:return t.getContextualType(e,r)}}function q8(e,t,r){const i=Mf(e,t),a=JSON.stringify(r);return i===0?`'${Cp(a).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:a}function zM(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function v1e(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function GY(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function $Y(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function H8(e,t,r,i){const a=r.getTypeChecker();let o=!0;const l=()=>o=!1,u=a.typeToTypeNode(e,t,1,{trackSymbol:(f,g,m)=>(o=o&&a.isSymbolAccessible(f,g,m,!1).accessibility===0,!o),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:IY(r,i)});return o?u:void 0}function XY(e){return e===179||e===180||e===181||e===171||e===173}function b1e(e){return e===262||e===176||e===174||e===177||e===178}function T1e(e){return e===267}function VM(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function LFe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(XY(e.kind)){if(r&&r.kind===28)return!1}else if(T1e(e.kind)){const u=ka(e.getChildren(t));if(u&&jd(u))return!1}else if(b1e(e.kind)){const u=ka(e.getChildren(t));if(u&&e2(u))return!1}else if(!VM(e.kind))return!1;if(e.kind===246)return!0;const i=On(e,u=>!u.parent),a=yT(e,i,t);if(!a||a.kind===20)return!0;const o=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(a.getStart(t)).line;return o!==l}function UM(e,t,r){const i=On(t,a=>a.end!==e?"quit":oZ(a.kind));return!!i&&LFe(i,r)}function V5(e){let t=0,r=0;const i=5;return ys(e,function a(o){if(VM(o.kind)){const l=o.getLastToken(e);(l==null?void 0:l.kind)===27?t++:r++}else if(XY(o.kind)){const l=o.getLastToken(e);if((l==null?void 0:l.kind)===27)t++;else if(l&&l.kind!==28){const u=vo(e,l.getStart(e)).line,f=vo(e,gm(e,l.end).start).line;u!==f&&r++}}return t+r>=i?!0:ys(o,a)}),t===0&&r<=1?!0:t/r>1/i}function WM(e,t){return $M(e,e.getDirectories,t)||[]}function QY(e,t,r,i,a){return $M(e,e.readDirectory,t,r,i,a)||Ve}function qM(e,t){return $M(e,e.fileExists,t)}function HM(e,t){return GM(()=>Zp(t,e))||!1}function GM(e){try{return e()}catch{return}}function $M(e,t,...r){return GM(()=>t&&t.apply(e,r))}function YY(e,t,r){const i=[];return Jg(e,a=>{if(a===r)return!0;const o=Pi(a,"package.json");qM(t,o)&&i.push(o)}),i}function x1e(e,t){let r;return Jg(e,i=>{if(i==="node_modules"||(r=Uge(i,a=>qM(t,a),"package.json"),r))return!0}),r}function S1e(e,t){if(!t.fileExists)return[];const r=[];return Jg(bi(e),i=>{const a=Pi(i,"package.json");if(t.fileExists(a)){const o=k1e(a,t);o&&r.push(o)}}),r}function k1e(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",a=MFe(i),o={};if(a)for(const f of r){const g=a[f];if(!g)continue;const m=new Map;for(const y in g)m.set(y,g[y]);o[f]=m}const l=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!a,fileName:e,get:u,has(f,g){return!!u(f,g)}};function u(f,g=15){for(const[m,y]of l)if(y&&g&m){const x=y.get(f);if(x!==void 0)return x}}}function G8(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||S1e(e.fileName,r)).filter(C=>C.parseable);let a,o,l;return{allowsImportingAmbientModule:f,allowsImportingSourceFile:g,allowsImportingSpecifier:m};function u(C){const N=k(C);for(const D of i)if(D.has(N)||D.has(_L(N)))return!0;return!1}function f(C,N){if(!i.length||!C.valueDeclaration)return!0;if(!o)o=new Map;else{const Y=o.get(C);if(Y!==void 0)return Y}const D=Cp(C.getName());if(y(D))return o.set(C,!0),!0;const M=C.valueDeclaration.getSourceFile(),V=x(M.fileName,N);if(typeof V>"u")return o.set(C,!0),!0;const U=u(V)||u(D);return o.set(C,U),U}function g(C,N){if(!i.length)return!0;if(!l)l=new Map;else{const V=l.get(C);if(V!==void 0)return V}const D=x(C.fileName,N);if(!D)return l.set(C,!0),!0;const M=u(D);return l.set(C,M),M}function m(C){return!i.length||y(C)||$u(C)||Dd(C)?!0:u(C)}function y(C){return!!(P_(e)&&mT.nodeCoreModules.has(C)&&(a===void 0&&(a=XM(e)),a))}function x(C,N){if(!Xl(C,"node_modules"))return;const D=T2.getNodeModulesPackageName(r.getCompilationSettings(),e,C,N,t);if(!!D&&!$u(D)&&!Dd(D))return k(D)}function k(C){const N=Dl(WA(C)).slice(1);return ts(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function MFe(e){try{return JSON.parse(e)}catch{return}}function XM(e){return dt(e.imports,({text:t})=>mT.nodeCoreModules.has(t))}function C1e(e){return gs(Dl(e),"node_modules")}function ZY(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function E1e(e,t){const r=au(e),i=yx(t,r,Zo,fI);if(i>=0){const a=t[i];return E.assertEqual(a.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Ms(a,ZY)}}function w1e(e,t){var r;let i=yx(t,e.start,l=>l.start,Co);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const a=[],o=Zl(e);for(;;){const l=Hr(t[i],ZY);if(!l||l.start>o)break;Tce(e,l)&&a.push(l),i++}return a}function IS({startPosition:e,endPosition:t}){return ll(e,t===void 0?e:t)}function KY(e,t){const r=Vi(e,t.start);return On(r,a=>a.getStart(e)Zl(t)?"quit":nt(a)&&E4(t,au(a,e)))}function D1e(e,t,r=Zo){return e?Ds(e)?r(an(e,t)):t(e,0):void 0}function eZ(e){return Ds(e)?wa(e):e}function A1e(e,t){if(N1e(e)){const r=P1e(e);if(r)return r;const i=n_.moduleSymbolToValidIdentifier(tZ(e),t,!1),a=n_.moduleSymbolToValidIdentifier(tZ(e),t,!0);return i===a?i:[i,a]}return e.name}function QM(e,t,r){return N1e(e)?P1e(e)||n_.moduleSymbolToValidIdentifier(tZ(e),t,!!r):e.name}function N1e(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function P1e(e){return _c(e.declarations,t=>{var r,i,a;return dc(t)?(r=Hr(nl(t.expression),we))==null?void 0:r.text:p_(t)&&t.symbol.flags===2097152?(i=Hr(t.propertyName,we))==null?void 0:i.text:(a=Hr(os(t),we))==null?void 0:a.text})}function tZ(e){var t;return E.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${E.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=E.formatSyntaxKind(r.kind),a=Zn(r),{expression:o}=r;return(a?"[JS]":"")+i+(o?` (expression: ${E.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function I1e(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let a=0;aNc(r)&&Pd(r))}function YM(e){return!!(HU(e)&8192)}function ZM(e,t){const r=_c(e.imports,i=>{if(mT.nodeCoreModules.has(i.text))return ts(i.text,"node:")});return r!=null?r:t.usesUriStyleNodeCoreModules}function U5(e){return e===` -`?1:0}function ST(e){return Ds(e)?tg(ss(e[0]),e.slice(1)):ss(e)}function KM({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!V5(t);return{...e,semicolons:i?"remove":"ignore"}}function rZ(e){return e===2||e===3}function $8(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function eR(e,t){const r=new Set,i=new Set,a=new Set;for(const u of t)if(!lA(u)){const f=uo(u.expression);if(wb(f))switch(f.kind){case 15:case 11:r.add(f.text);break;case 9:i.add(parseInt(f.text));break;case 10:const g=Cue(Tc(f.text,"n")?f.text.slice(0,-1):f.text);g&&a.add(l2(g));break}else{const g=e.getSymbolAtLocation(u.expression);if(g&&g.valueDeclaration&&y2(g.valueDeclaration)){const m=e.getConstantValue(g.valueDeclaration);m!==void 0&&o(m)}}}return{addValue:o,hasValue:l};function o(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function l(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return a.has(l2(u))}}}function iZ(e,t,r,i){var a;const o=typeof e=="string"?e:e.fileName;if(!c2(o))return!1;const l=t.getCompilerOptions(),u=Ul(l),f=typeof e=="string"?_5(yo(e,r.getCurrentDirectory(),X0(r)),(a=t.getPackageJsonInfoCache)==null?void 0:a.call(t),r,l):e.impliedNodeFormat;if(f===99)return!1;if(f===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&fO(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var g_,sZ,F1e,tR,aZ,nR,L1e,rR,oZ,BFe=Bt({"src/services/utilities.ts"(){Wr(),g_=V0(99,!0),sZ=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(sZ||{}),F1e=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(aZ||{}),nR=wFe(),L1e=` -`,rR="anonymous function",oZ=Yp(XY,b1e,T1e,VM)}});function M1e(e){let t=1;const r=$f(),i=new Map,a=new Map;let o;const l={isUsableByFile:k=>k===o,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),o=void 0},add:(k,C,N,D,M,V,U,Y)=>{k!==o&&(l.clear(),o=k);let j;if(M){const fe=aH(M.fileName);if(fe){const{topLevelNodeModulesIndex:G,topLevelPackageNameIndex:Ne,packageRootIndex:De}=fe;if(j=uL(WA(M.fileName.substring(Ne+1,De))),ts(k,M.path.substring(0,G))){const Xe=a.get(j),ve=M.fileName.substring(0,Ne+1);if(Xe){const be=Xe.indexOf(sh);G>be&&a.set(j,ve)}else a.set(j,ve)}}}const R=V===1&&I6(C)||C,Z=V===0||I5(R)?Li(N):A1e(R,void 0),oe=typeof Z=="string"?Z:Z[0],_e=typeof Z=="string"?void 0:Z[1],X=Cp(D.name),H=t++,Q=iu(C,Y),re=C.flags&33554432?void 0:C,ue=D.flags&33554432?void 0:D;(!re||!ue)&&i.set(H,[C,D]),r.add(f(oe,C,Al(X)?void 0:X,Y),{id:H,symbolTableKey:N,symbolName:oe,capitalizedSymbolName:_e,moduleName:X,moduleFile:M,moduleFileName:M==null?void 0:M.fileName,packageName:j,exportKind:V,targetFlags:Q.flags,isFromPackageJson:U,symbol:re,moduleSymbol:ue})},get:(k,C)=>{if(k!==o)return;const N=r.get(C);return N==null?void 0:N.map(u)},search:(k,C,N,D)=>{if(k===o)return Au(r,(M,V)=>{const{symbolName:U,ambientModuleName:Y}=g(V),j=C&&M[0].capitalizedSymbolName||U;if(N(j,M[0].targetFlags)){const R=M.map(u).filter((Z,oe)=>x(Z,M[oe].packageName));if(R.length){const Z=D(R,j,!!Y,V);if(Z!==void 0)return Z}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(k,C,N)=>m(k)&&m(C)?!1:o&&o!==C.path||N&&XM(k)!==XM(C)||!kd(k.moduleAugmentations,C.moduleAugmentations)||!y(k,C)?(l.clear(),!0):(o=C.path,!1)};return E.isDebugging&&Object.defineProperty(l,"__cache",{get:()=>r}),l;function u(k){if(k.symbol&&k.moduleSymbol)return k;const{id:C,exportKind:N,targetFlags:D,isFromPackageJson:M,moduleFileName:V}=k,[U,Y]=i.get(C)||Ve;if(U&&Y)return{symbol:U,moduleSymbol:Y,moduleFileName:V,exportKind:N,targetFlags:D,isFromPackageJson:M};const j=(M?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ee=k.moduleSymbol||Y||E.checkDefined(k.moduleFile?j.getMergedSymbol(k.moduleFile.symbol):j.tryFindAmbientModule(k.moduleName)),R=k.symbol||U||E.checkDefined(N===2?j.resolveExternalModuleSymbol(ee):j.tryGetMemberInModuleExportsAndProperties(Li(k.symbolTableKey),ee),`Could not find symbol '${k.symbolName}' by key '${k.symbolTableKey}' in module ${ee.name}`);return i.set(C,[R,ee]),{symbol:R,moduleSymbol:ee,moduleFileName:V,exportKind:N,targetFlags:D,isFromPackageJson:M}}function f(k,C,N,D){const M=N||"";return`${k}|${ya(iu(C,D))}|${M}`}function g(k){const C=k.substring(0,k.indexOf("|")),N=k.substring(k.lastIndexOf("|")+1);return{symbolName:C,ambientModuleName:N===""?void 0:N}}function m(k){return!k.commonJsModuleIndicator&&!k.externalModuleIndicator&&!k.moduleAugmentations&&!k.ambientModuleNames}function y(k,C){if(!kd(k.ambientModuleNames,C.ambientModuleNames))return!1;let N=-1,D=-1;for(const M of C.ambientModuleNames){const V=U=>NW(U)&&U.name.text===M;if(N=qc(k.statements,V,N+1),D=qc(C.statements,V,D+1),k.statements[N]!==C.statements[D])return!1}return!0}function x(k,C){if(!C||!k.moduleFileName)return!0;const N=e.getGlobalTypingsCacheLocation();if(N&&ts(k.moduleFileName,N))return!0;const D=a.get(C);return!D||ts(k.moduleFileName,D)}}function cZ(e,t,r,i,a,o,l){var u;if(t===r)return!1;const f=l==null?void 0:l.get(t.path,r.path,i,{});if((f==null?void 0:f.isBlockedByPackageJsonDependencies)!==void 0)return!f.isBlockedByPackageJsonDependencies;const g=X0(o),m=(u=o.getGlobalTypingsCacheLocation)==null?void 0:u.call(o),y=!!T2.forEachFileNameOfModule(t.fileName,r.fileName,o,!1,x=>{const k=e.getSourceFile(x);return(k===r||!k)&&jFe(t.fileName,x,g,m)});if(a){const x=y&&a.allowsImportingSourceFile(r,o);return l==null||l.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!x),x}return y}function jFe(e,t,r,i){const a=Jg(t,l=>Jl(l)==="node_modules"?l:void 0),o=a&&bi(r(a));return o===void 0||ts(r(e),o)||!!i&&ts(r(i),o)}function lZ(e,t,r,i,a){var o,l;const u=hD(t),f=r.autoImportFileExcludePatterns&&qi(r.autoImportFileExcludePatterns,m=>{const y=Gq(m,"","exclude");return y?c1(y,u):void 0});R1e(e.getTypeChecker(),e.getSourceFiles(),f,(m,y)=>a(m,y,e,!1));const g=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(g){const m=Uo(),y=e.getTypeChecker();R1e(g.getTypeChecker(),g.getSourceFiles(),f,(x,k)=>{(k&&!e.getSourceFile(k.fileName)||!k&&!y.resolveName(x.name,void 0,1536,!1))&&a(x,k,g,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Uo()-m}`)}}function R1e(e,t,r,i){var a;const o=r&&(l=>r.some(u=>u.test(l)));for(const l of e.getAmbientModules())!Xl(l.name,"*")&&!(r&&((a=l.declarations)==null?void 0:a.every(u=>o(u.getSourceFile().fileName))))&&i(l,void 0);for(const l of t)Yu(l)&&!(o!=null&&o(l.fileName))&&i(e.getMergedSymbol(l.symbol),l)}function W5(e,t,r,i,a){var o,l,u,f,g;const m=Uo();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);const y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||M1e({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var C;return(C=t.getPackageJsonAutoImportProvider)==null?void 0:C.call(t)},getGlobalTypingsCacheLocation:()=>{var C;return(C=t.getGlobalTypingsCacheLocation)==null?void 0:C.call(t)}});if(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(f=t.log)==null||f.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const x=r.getCompilerOptions();let k=0;try{lZ(r,t,i,!0,(C,N,D,M)=>{++k%100===0&&(a==null||a.throwIfCancellationRequested());const V=new Map,U=D.getTypeChecker(),Y=iR(C,U,x);Y&&B1e(Y.symbol,U)&&y.add(e.path,Y.symbol,Y.exportKind===1?"default":"export=",C,N,Y.exportKind,M,U),U.forEachExportAndPropertyOfModule(C,(j,ee)=>{j!==(Y==null?void 0:Y.symbol)&&B1e(j,U)&&Kp(V,ee)&&y.add(e.path,j,ee,C,N,0,M,U)})})}catch(C){throw y.clear(),C}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${Uo()-m} ms`),y}function iR(e,t,r){const i=JFe(e,t);if(!i)return;const{symbol:a,exportKind:o}=i,l=sR(a,t,r);return l&&{symbol:a,exportKind:o,...l}}function B1e(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!uD(e)&&!m_e(e)}function JFe(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function sR(e,t,r){const i=I6(e);if(i)return{resolvedSymbol:i,name:i.name};const a=zFe(e);if(a!==void 0)return{resolvedSymbol:e,name:a};if(e.flags&2097152){const o=t.getImmediateAliasedSymbol(e);if(o&&o.parent)return sR(o,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:QM(e,r.target)}}function zFe(e){return e.declarations&&_c(e.declarations,t=>{var r;if(dc(t))return(r=Hr(nl(t.expression),we))==null?void 0:r.text;if(p_(t))return E.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var _Z,uZ,VFe=Bt({"src/services/exportInfoMap.ts"(){Wr(),_Z=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(_Z||{}),uZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(uZ||{})}});function j1e(){const e=V0(99,!1);function t(i,a,o){return qFe(r(i,a,o),i)}function r(i,a,o){let l=0,u=0;const f=[],{prefix:g,pushTemplate:m}=$Fe(a);i=g+i;const y=g.length;m&&f.push(16),e.setText(i);let x=0;const k=[];let C=0;do{l=e.scan(),E6(l)||(N(),u=l);const D=e.getTokenEnd();if(WFe(e.getTokenStart(),D,y,YFe(l),k),D>=i.length){const M=UFe(e,l,Bo(f));M!==void 0&&(x=M)}}while(l!==1);function N(){switch(l){case 44:case 69:!q1e[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&C++;break;case 32:C>0&&C--;break;case 133:case 154:case 150:case 136:case 155:C>0&&!o&&(l=80);break;case 16:f.push(l);break;case 19:f.length>0&&f.push(l);break;case 20:if(f.length>0){const D=Bo(f);D===16?(l=e.reScanTemplateToken(!1),l===18?f.pop():E.assertEqual(l,17,"Should have been a template middle.")):(E.assertEqual(D,19,"Should have been an open brace"),f.pop())}break;default:if(!ru(l))break;(u===25||ru(u)&&ru(l)&&!GFe(u,l))&&(l=80)}}return{endOfLineState:x,spans:k}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function UFe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),a=i.length-1;let o=0;for(;i.charCodeAt(a-o)===92;)o++;return(o&1)===0?void 0:i.charCodeAt(0)===34?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Kh(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return E.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function WFe(e,t,r,i,a){if(i===8)return;e===0&&r>0&&(e+=r);const o=t-e;o>0&&a.push(e-r,o,i)}function qFe(e,t){const r=[],i=e.spans;let a=0;for(let l=0;l=0){const m=u-a;m>0&&r.push({length:m,classification:4})}r.push({length:f,classification:HFe(g)}),a=u+f}const o=t.length-a;return o>0&&r.push({length:o,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function HFe(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function GFe(e,t){if(!CY(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function $Fe(e){switch(e){case 3:return{prefix:`"\\ +`}),m}function P0e(e){return!!e.getState}function sQ(e,t){const r=e.getCompilerOptions();r.explainFiles?I0e(P0e(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&pn(e.getSourceFiles(),i=>{t(i.fileName)})}function I0e(e,t){var r,i;const a=e.getFileIncludeReasons(),o=l=>BC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${AS(l,o)}`),(r=a.get(l.path))==null||r.forEach(u=>t(` ${lQ(e,u,o).messageText}`)),(i=aQ(l,o))==null||i.forEach(u=>t(` ${u.messageText}`))}function aQ(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i!=null?i:i=[]).push(us(void 0,p.File_is_output_of_project_reference_source_0,AS(e.originalFileName,t))),e.redirectInfo&&(i!=null?i:i=[]).push(us(void 0,p.File_redirects_to_file_0,AS(e.redirectInfo.redirectTarget,t))),Yu(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i!=null?i:i=[]).push(us(void 0,p.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,AS(ka(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i!=null?i:i=[]).push(us(void 0,e.packageJsonScope.contents.packageJsonContent.type?p.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:p.File_is_CommonJS_module_because_0_does_not_have_field_type,AS(ka(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i!=null?i:i=[]).push(us(void 0,p.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function oQ(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i==null?void 0:i.configFileSpecs)!=null&&r.validatedFilesSpec))return;const a=e.getCanonicalFileName(t),o=Ti(ms(i.fileName,e.getCurrentDirectory()));return Or(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(ms(l,o))===a)}function cQ(e,t){var r,i;const a=e.getCompilerOptions().configFile;if(!((r=a==null?void 0:a.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(a.configFileSpecs.isDefaultIncludeSpec)return!0;const o=Hc(t,".json"),l=Ti(ms(a.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return Or((i=a==null?void 0:a.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,f=>{if(o&&!vc(f,".json"))return!1;const g=$q(f,l,"files");return!!g&&l1(`(${g})$`,u).test(t)})}function lQ(e,t,r){var i,a;const o=e.getCompilerOptions();if(By(t)){const l=F8(g=>e.getSourceFileByPath(g),t),u=b4(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let f;switch(E.assert(b4(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:b4(l)?f=l.packageId?p.Imported_via_0_from_file_1_with_packageId_2:p.Imported_via_0_from_file_1:l.text===u1?f=l.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:p.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:f=l.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:p.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:E.assert(!l.packageId),f=p.Referenced_via_0_from_file_1;break;case 5:f=l.packageId?p.Type_library_referenced_via_0_from_file_1_with_packageId_2:p.Type_library_referenced_via_0_from_file_1;break;case 7:E.assert(!l.packageId),f=p.Library_referenced_via_0_from_file_1;break;default:E.assertNever(t)}return us(void 0,f,u,AS(l.file,r),l.packageId&&s1(l.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return us(void 0,p.Root_file_specified_for_compilation);const l=ms(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(oQ(e,l))return us(void 0,p.Part_of_files_list_in_tsconfig_json);const f=cQ(e,l);return Gs(f)?us(void 0,p.Matched_by_include_pattern_0_in_1,f,AS(o.configFile,r)):us(void 0,f?p.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:p.Root_file_specified_for_compilation);case 1:case 2:const g=t.kind===2,m=E.checkDefined((a=e.getResolvedProjectReferences())==null?void 0:a[t.index]);return us(void 0,Ao(o)?g?p.Output_from_referenced_project_0_included_because_1_specified:p.Source_from_referenced_project_0_included_because_1_specified:g?p.Output_from_referenced_project_0_included_because_module_is_specified_as_none:p.Source_from_referenced_project_0_included_because_module_is_specified_as_none,AS(m.sourceFile.fileName,r),o.outFile?"--outFile":"--out");case 8:{const y=o.types?t.packageId?[p.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,s1(t.packageId)]:[p.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[p.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,s1(t.packageId)]:[p.Entry_point_for_implicit_type_library_0,t.typeReference];return us(void 0,...y)}case 6:{if(t.index!==void 0)return us(void 0,p.Library_0_specified_in_compilerOptions,o.lib[t.index]);const y=Au(MA.type,(k,C)=>k===Ia(o)?C:void 0),x=y?[p.Default_library_for_target_0,y]:[p.Default_library];return us(void 0,...x)}default:E.assertNever(t)}}function AS(e,t){const r=Gs(e)?e:e.fileName;return t?t(r):r}function iM(e,t,r,i,a,o,l,u){const f=!!e.getCompilerOptions().listFilesOnly,g=e.getConfigFileParsingDiagnostics().slice(),m=g.length;Fr(g,e.getSyntacticDiagnostics(void 0,o)),g.length===m&&(Fr(g,e.getOptionsDiagnostics(o)),f||(Fr(g,e.getGlobalDiagnostics(o)),g.length===m&&Fr(g,e.getSemanticDiagnostics(void 0,o))));const y=f?{emitSkipped:!0,diagnostics:Ve}:e.emit(void 0,a,o,l,u),{emittedFiles:x,diagnostics:k}=y;Fr(g,k);const C=Zk(g);if(C.forEach(t),r){const N=e.getCurrentDirectory();pn(x,D=>{const M=ms(D,N);r(`TSFILE: ${M}`)}),sQ(e,r)}return i&&i(nM(C),rM(C)),{emitResult:y,diagnostics:C}}function O0e(e,t,r,i,a,o,l,u){const{emitResult:f,diagnostics:g}=iM(e,t,r,i,a,o,l,u);return f.emitSkipped&&g.length>0?1:g.length>0?2:0}function _Q(e=jl,t){return{onWatchStatusChange:t||D0e(e),watchFile:Hs(e,e.watchFile)||g5,watchDirectory:Hs(e,e.watchDirectory)||g5,setTimeout:Hs(e,e.setTimeout)||co,clearTimeout:Hs(e,e.clearTimeout)||co}}function uQ(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?o=>e.trace(o):co,a=Vge(e,r,i);return a.writeLog=i,a}function fQ(e,t,r=e){const i=e.useCaseSensitiveFileNames(),a={getSourceFile:xX((o,l)=>l?e.readFile(o,l):a.readFile(o),t,void 0),getDefaultLibLocation:Hs(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:SX((o,l,u)=>e.writeFile(o,l,u),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:wu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Ql(i),getNewLine:()=>K0(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:Hs(e,e.trace),directoryExists:Hs(r,r.directoryExists),getDirectories:Hs(r,r.getDirectories),realpath:Hs(e,e.realpath),getEnvironmentVariable:Hs(e,e.getEnvironmentVariable)||(()=>""),createHash:Hs(e,e.createHash),readDirectory:Hs(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return a}function sM(e,t){if(t.match(j$)){let r=t.length,i=r;for(let a=r-1;a>=0;a--){const o=t.charCodeAt(a);switch(o){case 10:a&&t.charCodeAt(a-1)===13&&a--;case 13:break;default:if(o<127||!Yl(o)){i=a;continue}break}const l=t.substring(i,r);if(l.match(kL)){t=t.substring(0,i);break}else if(!l.match(CL))break;r=i}}return(e.createHash||X7)(t)}function aM(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=sM(e,i.text)),i}}function pQ(e,t){const r=wu(()=>Ti(ba(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:wu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Ii(r(),GI(i)),fileExists:i=>e.fileExists(i),readFile:(i,a)=>e.readFile(i,a),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,a,o,l,u)=>e.readDirectory(i,a,o,l,u),realpath:Hs(e,e.realpath),getEnvironmentVariable:Hs(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,a,o)=>e.writeFile(i,a,o),createHash:Hs(e,e.createHash),createProgram:t||KX,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Hs(e,e.now)}}function F0e(e=jl,t,r,i){const a=l=>e.write(l+e.newLine),o=pQ(e,t);return pV(o,_Q(e,i)),o.afterProgramCreate=l=>{const u=l.getCompilerOptions(),f=K0(u);iM(l,r,a,g=>o.onWatchStatusChange(xc(iQ(g),g),f,u,g))},o}function L0e(e,t,r){t(r),e.exit(1)}function M0e({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:a,createProgram:o,reportDiagnostic:l,reportWatchStatus:u}){const f=l||d5(a),g=F0e(a,o,f,u);return g.onUnRecoverableConfigFileDiagnostic=m=>L0e(a,f,m),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=r,g.extraFileExtensions=i,g}function R0e({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:a,createProgram:o,reportDiagnostic:l,reportWatchStatus:u}){const f=F0e(a,o,l||d5(a),u);return f.rootFiles=e,f.options=t,f.watchOptions=r,f.projectReferences=i,f}function xOe(e){const t=e.system||jl,r=e.host||(e.host=mQ(e.options,t)),i=B0e(e),a=O0e(i,e.reportDiagnostic||d5(t),o=>r.trace&&r.trace(o),e.reportErrorSummary||e.options.pretty?(o,l)=>t.write(N0e(o,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),a}var dQ,oM,NS,g5,lp,SOe=Rt({"src/compiler/watch.ts"(){Ls(),dQ=jl?{getCurrentDirectory:()=>jl.getCurrentDirectory(),getNewLine:()=>jl.newLine,getCanonicalFileName:Ql(jl.useCaseSensitiveFileNames)}:void 0,oM=[p.Starting_compilation_in_watch_mode.code,p.File_change_detected_Starting_incremental_compilation.code],NS={close:co},g5=()=>NS,lp={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",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",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function cM(e,t){const r=ch(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const a=t.readFile(r);if(!a)return;i=BL(r,a)}if(!(!i||i.version!==L0||!i.program))return h0e(i,r,t)}function mQ(e,t=jl){const r=kX(e,void 0,t);return r.createHash=Hs(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,aM(r),o5(r,i=>ho(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function B0e({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:a,createProgram:o}){a=a||mQ(t),o=o||KX;const l=cM(t,a);return o(e,t,a,l,r,i)}function kOe(e,t,r,i,a,o,l,u){return Ds(e)?R0e({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):M0e({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:a,reportWatchStatus:o})}function COe(e){let t,r,i,a,o,l,u,f,g=e.extendedConfigCache,m=!1;const y=new Map;let x,k=!1;const C=e.useCaseSensitiveFileNames(),N=e.getCurrentDirectory(),{configFileName:D,optionsToExtend:M={},watchOptionsToExtend:V,extraFileExtensions:U,createProgram:Y}=e;let{rootFiles:j,options:ee,watchOptions:R,projectReferences:Z}=e,oe,_e,X=!1,H=!1;const Q=D===void 0?void 0:Bge(e,N,C),ne=Q||e,ue=$L(e,ne);let fe=Pt();D&&e.configFileParsingResult&&(Gr(e.configFileParsingResult),fe=Pt()),Nr(p.Starting_compilation_in_watch_mode),D&&!e.configFileParsingResult&&(fe=K0(M),E.assert(!j),Sn(),fe=Pt()),E.assert(ee),E.assert(j);const{watchFile:G,watchDirectory:Ne,writeLog:De}=uQ(e,ee),Xe=Ql(C);De(`Current directory: ${N} CaseSensitiveFileNames: ${C}`);let ve;D&&(ve=G(D,Pn,2e3,R,lp.ConfigFile));const be=fQ(e,()=>ee,ne);aM(be);const xe=be.getSourceFile;be.getSourceFile=(Ae,...ht)=>er(Ae,bt(Ae),...ht),be.getSourceFileByPath=er,be.getNewLine=()=>fe,be.fileExists=Bt,be.onReleaseOldSourceFile=ki,be.onReleaseParsedCommandLine=ut,be.toPath=bt,be.getCompilationSettings=()=>ee,be.useSourceOfProjectReferenceRedirect=Hs(e,e.useSourceOfProjectReferenceRedirect),be.watchDirectoryOfFailedLookupLocation=(Ae,ht,_t)=>Ne(Ae,ht,_t,R,lp.FailedLookupLocations),be.watchAffectingFileLocation=(Ae,ht)=>G(Ae,ht,2e3,R,lp.AffectingFileLocation),be.watchTypeRootsDirectory=(Ae,ht,_t)=>Ne(Ae,ht,_t,R,lp.TypeRoots),be.getCachedDirectoryStructureHost=()=>Q,be.scheduleInvalidateResolutionsOfFailedLookupLocations=hn,be.onInvalidatedResolution=cn,be.onChangedAutomaticTypeDirectiveNames=cn,be.fileIsOpen=j0,be.getCurrentProgram=mt,be.writeLog=De,be.getParsedCommandLine=Er;const rt=E0e(be,D?Ti(ms(D,N)):N,!1);be.resolveModuleNameLiterals=Hs(e,e.resolveModuleNameLiterals),be.resolveModuleNames=Hs(e,e.resolveModuleNames),!be.resolveModuleNameLiterals&&!be.resolveModuleNames&&(be.resolveModuleNameLiterals=rt.resolveModuleNameLiterals.bind(rt)),be.resolveTypeReferenceDirectiveReferences=Hs(e,e.resolveTypeReferenceDirectiveReferences),be.resolveTypeReferenceDirectives=Hs(e,e.resolveTypeReferenceDirectives),!be.resolveTypeReferenceDirectiveReferences&&!be.resolveTypeReferenceDirectives&&(be.resolveTypeReferenceDirectiveReferences=rt.resolveTypeReferenceDirectiveReferences.bind(rt)),be.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):rt.resolveLibrary.bind(rt),be.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Hs(e,e.getModuleResolutionCache):()=>rt.getModuleResolutionCache();const pe=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Hs(e,e.hasInvalidatedResolutions)||oy:j0,Pe=e.resolveLibrary?Hs(e,e.hasInvalidatedLibResolutions)||oy:j0;return t=cM(ee,be),Je(),ke(),D&&K(bt(D),ee,R,lp.ExtendedConfigFile),D?{getCurrentProgram:tt,getProgram:wi,close:Ge}:{getCurrentProgram:tt,getProgram:wi,updateRootFileNames:Jt,close:Ge};function Ge(){ur(),rt.clear(),Mf(y,Ae=>{Ae&&Ae.fileWatcher&&(Ae.fileWatcher.close(),Ae.fileWatcher=void 0)}),ve&&(ve.close(),ve=void 0),g==null||g.clear(),g=void 0,f&&(Mf(f,Em),f=void 0),a&&(Mf(a,Em),a=void 0),i&&(Mf(i,vm),i=void 0),u&&(Mf(u,Ae=>{var ht;(ht=Ae.watcher)==null||ht.close(),Ae.watcher=void 0,Ae.watchedDirectories&&Mf(Ae.watchedDirectories,Em),Ae.watchedDirectories=void 0}),u=void 0)}function tt(){return t}function mt(){return t&&t.getProgramOrUndefined()}function Je(){De("Synchronizing program"),E.assert(ee),E.assert(j),ur();const Ae=tt();k&&(fe=Pt(),Ae&&TW(Ae.getCompilerOptions(),ee)&&rt.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:ht,hasInvalidatedLibResolutions:_t}=rt.createHasInvalidatedResolutions(pe,Pe),{originalReadFile:jt,originalFileExists:Fn,originalDirectoryExists:Nt,originalCreateDirectory:hi,originalWriteFile:z,readFileWithCache:B}=o5(be,bt);return PX(mt(),j,ee,le=>pi(le,B),le=>be.fileExists(le),ht,_t,pt,Er,Z)?H&&(m&&Nr(p.File_change_detected_Starting_incremental_compilation),t=Y(void 0,void 0,be,t,_e,Z),H=!1):(m&&Nr(p.File_change_detected_Starting_incremental_compilation),ot(ht,_t)),m=!1,e.afterProgramCreate&&Ae!==t&&e.afterProgramCreate(t),be.readFile=jt,be.fileExists=Fn,be.directoryExists=Nt,be.createDirectory=hi,be.writeFile=z,t}function ot(Ae,ht){De("CreatingProgramWith::"),De(` roots: ${JSON.stringify(j)}`),De(` options: ${JSON.stringify(ee)}`),Z&&De(` projectReferences: ${JSON.stringify(Z)}`);const _t=k||!mt();k=!1,H=!1,rt.startCachingPerDirectoryResolution(),be.hasInvalidatedResolutions=Ae,be.hasInvalidatedLibResolutions=ht,be.hasChangedAutomaticTypeDirectiveNames=pt;const jt=mt();if(t=Y(j,ee,be,t,_e,Z),rt.finishCachingPerDirectoryResolution(t.getProgram(),jt),Jge(t.getProgram(),i||(i=new Map),ae),_t&&rt.updateTypeRootsWatch(),x){for(const Fn of x)i.has(Fn)||y.delete(Fn);x=void 0}}function Jt(Ae){E.assert(!D,"Cannot update root file names with config file watch mode"),j=Ae,cn()}function Pt(){return K0(ee||M)}function bt(Ae){return ho(Ae,N,Xe)}function _r(Ae){return typeof Ae=="boolean"}function xn(Ae){return typeof Ae.version=="boolean"}function Bt(Ae){const ht=bt(Ae);return _r(y.get(ht))?!1:ne.fileExists(Ae)}function er(Ae,ht,_t,jt,Fn){const Nt=y.get(ht);if(_r(Nt))return;const hi=typeof _t=="object"?_t.impliedNodeFormat:void 0;if(Nt===void 0||Fn||xn(Nt)||Nt.sourceFile.impliedNodeFormat!==hi){const z=xe(Ae,_t,jt);if(Nt)z?(Nt.sourceFile=z,Nt.version=z.version,Nt.fileWatcher||(Nt.fileWatcher=kt(ht,Ae,it,250,R,lp.SourceFile))):(Nt.fileWatcher&&Nt.fileWatcher.close(),y.set(ht,!1));else if(z){const B=kt(ht,Ae,it,250,R,lp.SourceFile);y.set(ht,{sourceFile:z,version:z.version,fileWatcher:B})}else y.set(ht,!1);return z}return Nt.sourceFile}function xr(Ae){const ht=y.get(Ae);ht!==void 0&&(_r(ht)?y.set(Ae,{version:!1}):ht.version=!1)}function pi(Ae,ht){const _t=y.get(Ae);if(!_t)return;if(_t.version)return _t.version;const jt=ht(Ae);return jt!==void 0?sM(be,jt):void 0}function ki(Ae,ht,_t){const jt=y.get(Ae.resolvedPath);jt!==void 0&&(_r(jt)?(x||(x=[])).push(Ae.path):jt.sourceFile===Ae&&(jt.fileWatcher&&jt.fileWatcher.close(),y.delete(Ae.resolvedPath),_t||rt.removeResolutionsOfFile(Ae.path)))}function Nr(Ae){e.onWatchStatusChange&&e.onWatchStatusChange(xc(Ae),fe,ee||M)}function pt(){return rt.hasChangedAutomaticTypeDirectiveNames()}function ur(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function hn(){if(!e.setTimeout||!e.clearTimeout)return rt.invalidateResolutionsOfFailedLookupLocations();const Ae=ur();De(`Scheduling invalidateFailedLookup${Ae?", Cancelled earlier one":""}`),l=e.setTimeout(Ct,250,"timerToInvalidateFailedLookupResolutions")}function Ct(){l=void 0,rt.invalidateResolutionsOfFailedLookupLocations()&&cn()}function cn(){!e.setTimeout||!e.clearTimeout||(o&&e.clearTimeout(o),De("Scheduling update"),o=e.setTimeout(Sr,250,"timerToUpdateProgram"))}function Pn(){E.assert(!!D),r=2,cn()}function Sr(){o=void 0,m=!0,wi()}function wi(){var Ae,ht,_t,jt;switch(r){case 1:(Ae=Dd)==null||Ae.logStartUpdateProgram("PartialConfigReload"),Yt();break;case 2:(ht=Dd)==null||ht.logStartUpdateProgram("FullConfigReload"),Gt();break;default:(_t=Dd)==null||_t.logStartUpdateProgram("SynchronizeProgram"),Je();break}return(jt=Dd)==null||jt.logStopUpdateProgram("Done"),tt()}function Yt(){De("Reloading new file names and options"),E.assert(ee),E.assert(D),r=0,j=PA(ee.configFile.configFileSpecs,ms(Ti(D),N),ee,ue,U),JG(j,ms(D,N),ee.configFile.configFileSpecs,_e,X)&&(H=!0),Je()}function Gt(){E.assert(D),De(`Reloading config file: ${D}`),r=0,Q&&Q.clearCache(),Sn(),k=!0,Je(),ke(),K(bt(D),ee,R,lp.ExtendedConfigFile)}function Sn(){E.assert(D),Gr(CA(D,M,ue,g||(g=new Map),V,U))}function Gr(Ae){j=Ae.fileNames,ee=Ae.options,R=Ae.watchOptions,Z=Ae.projectReferences,oe=Ae.wildcardDirectories,_e=mT(Ae).slice(),X=NA(Ae.raw),H=!0}function Er(Ae){const ht=bt(Ae);let _t=u==null?void 0:u.get(ht);if(_t){if(!_t.reloadLevel)return _t.parsedCommandLine;if(_t.parsedCommandLine&&_t.reloadLevel===1&&!e.getParsedCommandLine){De("Reloading new file names and options"),E.assert(ee);const Fn=PA(_t.parsedCommandLine.options.configFile.configFileSpecs,ms(Ti(Ae),N),ee,ue);return _t.parsedCommandLine={..._t.parsedCommandLine,fileNames:Fn},_t.reloadLevel=void 0,_t.parsedCommandLine}}De(`Loading config file: ${Ae}`);const jt=e.getParsedCommandLine?e.getParsedCommandLine(Ae):ze(Ae);return _t?(_t.parsedCommandLine=jt,_t.reloadLevel=void 0):(u||(u=new Map)).set(ht,_t={parsedCommandLine:jt}),$e(Ae,ht,_t),jt}function ze(Ae){const ht=ue.onUnRecoverableConfigFileDiagnostic;ue.onUnRecoverableConfigFileDiagnostic=co;const _t=CA(Ae,void 0,ue,g||(g=new Map),V);return ue.onUnRecoverableConfigFileDiagnostic=ht,_t}function ut(Ae){var ht;const _t=bt(Ae),jt=u==null?void 0:u.get(_t);!jt||(u.delete(_t),jt.watchedDirectories&&Mf(jt.watchedDirectories,Em),(ht=jt.watcher)==null||ht.close(),jge(_t,f))}function kt(Ae,ht,_t,jt,Fn,Nt){return G(ht,(hi,z)=>_t(hi,z,Ae),jt,Fn,Nt)}function it(Ae,ht,_t){Vt(Ae,_t,ht),ht===2&&y.has(_t)&&rt.invalidateResolutionOfFile(_t),xr(_t),cn()}function Vt(Ae,ht,_t){Q&&Q.addOrDeleteFile(Ae,ht,_t)}function ae(Ae){return u!=null&&u.has(Ae)?NS:kt(Ae,Ae,Me,500,R,lp.MissingFile)}function Me(Ae,ht,_t){Vt(Ae,_t,ht),ht===0&&i.has(_t)&&(i.get(_t).close(),i.delete(_t),xr(_t),cn())}function ke(){oe?JL(a||(a=new Map),new Map(Object.entries(oe)),ft):a&&Mf(a,Em)}function ft(Ae,ht){return Ne(Ae,_t=>{E.assert(D),E.assert(ee);const jt=bt(_t);Q&&Q.addOrDeleteFileOrDirectory(_t,jt),xr(jt),!zL({watchedDirPath:bt(Ae),fileOrDirectory:_t,fileOrDirectoryPath:jt,configFileName:D,extraFileExtensions:U,options:ee,program:tt()||j,currentDirectory:N,useCaseSensitiveFileNames:C,writeLog:De,toPath:bt})&&r!==2&&(r=1,cn())},ht,R,lp.WildcardDirectory)}function K(Ae,ht,_t,jt){yX(Ae,ht,f||(f=new Map),(Fn,Nt)=>G(Fn,(hi,z)=>{var B;Vt(Fn,Nt,z),g&&vX(g,Nt,bt);const le=(B=f.get(Nt))==null?void 0:B.projects;!(le!=null&&le.size)||le.forEach(W=>{if(D&&bt(D)===W)r=2;else{const ge=u==null?void 0:u.get(W);ge&&(ge.reloadLevel=2),rt.removeResolutionsFromProjectReferenceRedirects(W)}cn()})},2e3,_t,jt),bt)}function $e(Ae,ht,_t){var jt,Fn,Nt,hi,z;_t.watcher||(_t.watcher=G(Ae,(B,le)=>{Vt(Ae,ht,le);const W=u==null?void 0:u.get(ht);W&&(W.reloadLevel=2),rt.removeResolutionsFromProjectReferenceRedirects(ht),cn()},2e3,((jt=_t.parsedCommandLine)==null?void 0:jt.watchOptions)||R,lp.ConfigFileOfReferencedProject)),(Fn=_t.parsedCommandLine)!=null&&Fn.wildcardDirectories?JL(_t.watchedDirectories||(_t.watchedDirectories=new Map),new Map(Object.entries((Nt=_t.parsedCommandLine)==null?void 0:Nt.wildcardDirectories)),(B,le)=>{var W;return Ne(B,ge=>{const F=bt(ge);Q&&Q.addOrDeleteFileOrDirectory(ge,F),xr(F);const ye=u==null?void 0:u.get(ht);!(ye!=null&&ye.parsedCommandLine)||zL({watchedDirPath:bt(B),fileOrDirectory:ge,fileOrDirectoryPath:F,configFileName:Ae,options:ye.parsedCommandLine.options,program:ye.parsedCommandLine.fileNames,currentDirectory:N,useCaseSensitiveFileNames:C,writeLog:De,toPath:bt})||ye.reloadLevel!==2&&(ye.reloadLevel=1,cn())},le,((W=_t.parsedCommandLine)==null?void 0:W.watchOptions)||R,lp.WildcardDirectoryOfReferencedProject)}):_t.watchedDirectories&&(Mf(_t.watchedDirectories,Em),_t.watchedDirectories=void 0),K(ht,(hi=_t.parsedCommandLine)==null?void 0:hi.options,((z=_t.parsedCommandLine)==null?void 0:z.watchOptions)||R,lp.ExtendedConfigOfReferencedProject)}}var EOe=Rt({"src/compiler/watchPublic.ts"(){Ls()}});function gQ(e){return Hc(e,".json")?e:Ii(e,"tsconfig.json")}var hQ,wOe=Rt({"src/compiler/tsbuild.ts"(){Ls(),hQ=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(hQ||{})}});function DOe(e,t,r){const i=e.get(t);let a;return i||(a=r(),e.set(t,a)),i||a}function yQ(e,t){return DOe(e,t,()=>new Map)}function h5(e){return e.now?e.now():new Date}function PS(e){return!!e&&!!e.buildOrder}function lM(e){return PS(e)?e.buildOrder:e}function j0e(e,t){return r=>{let i=t?`[${D2(m5(e),"\x1B[90m")}] `:`${m5(e)} - `;i+=`${v1(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function J0e(e,t,r,i){const a=pQ(e,t);return a.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):cy,a.setModifiedTime=e.setModifiedTime?(o,l)=>e.setModifiedTime(o,l):co,a.deleteFile=e.deleteFile?o=>e.deleteFile(o):co,a.reportDiagnostic=r||d5(e),a.reportSolutionBuilderStatus=i||j0e(e),a.now=Hs(e,e.now),a}function AOe(e=jl,t,r,i,a){const o=J0e(e,t,r,i);return o.reportErrorSummary=a,o}function NOe(e=jl,t,r,i,a){const o=J0e(e,t,r,i),l=_Q(e,a);return pV(o,l),o}function POe(e){const t={};return LA.forEach(r=>{oo(e,r.name)&&(t[r.name]=e[r.name])}),t}function IOe(e,t,r){return lhe(!1,e,t,r)}function OOe(e,t,r,i){return lhe(!0,e,t,r,i)}function FOe(e,t,r,i,a){const o=t,l=t,u=POe(i),f=fQ(o,()=>N.projectCompilerOptions);aM(f),f.getParsedCommandLine=D=>hT(N,D,cd(N,D)),f.resolveModuleNameLiterals=Hs(o,o.resolveModuleNameLiterals),f.resolveTypeReferenceDirectiveReferences=Hs(o,o.resolveTypeReferenceDirectiveReferences),f.resolveLibrary=Hs(o,o.resolveLibrary),f.resolveModuleNames=Hs(o,o.resolveModuleNames),f.resolveTypeReferenceDirectives=Hs(o,o.resolveTypeReferenceDirectives),f.getModuleResolutionCache=Hs(o,o.getModuleResolutionCache);let g,m;!f.resolveModuleNameLiterals&&!f.resolveModuleNames&&(g=m4(f.getCurrentDirectory(),f.getCanonicalFileName),f.resolveModuleNameLiterals=(D,M,V,U,Y)=>l5(D,M,V,U,Y,o,g,NX),f.getModuleResolutionCache=()=>g),!f.resolveTypeReferenceDirectiveReferences&&!f.resolveTypeReferenceDirectives&&(m=nL(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache()),f.resolveTypeReferenceDirectiveReferences=(D,M,V,U,Y)=>l5(D,M,V,U,Y,o,m,WL));let y;f.resolveLibrary||(y=m4(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache()),f.resolveLibrary=(D,M,V)=>rL(D,M,V,o,y)),f.getBuildInfo=(D,M)=>ehe(N,D,cd(N,M),void 0);const{watchFile:x,watchDirectory:k,writeLog:C}=uQ(l,i),N={host:o,hostWithWatch:l,parseConfigFileHost:$L(o),write:Hs(o,o.trace),options:i,baseCompilerOptions:u,rootNames:r,baseWatchOptions:a,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:f,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:D=>o.readFile(D),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:x,watchDirectory:k,writeLog:C};return N}function Mu(e,t){return ho(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function cd(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const a=Mu(e,t);return r.set(t,a),a}function z0e(e){return!!e.options}function LOe(e,t){const r=e.configFileCache.get(t);return r&&z0e(r)?r:void 0}function hT(e,t,r){const{configFileCache:i}=e,a=i.get(r);if(a)return z0e(a)?a:void 0;go("SolutionBuilder::beforeConfigFileParsing");let o;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:f,extendedConfigCache:g,host:m}=e;let y;return m.getParsedCommandLine?(y=m.getParsedCommandLine(t),y||(o=xc(p.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=x=>o=x,y=CA(t,u,l,g,f),l.onUnRecoverableConfigFileDiagnostic=co),i.set(r,y||o),go("SolutionBuilder::afterConfigFileParsing"),Gu("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function x4(e,t){return gQ(Xh(e.compilerHost.getCurrentDirectory(),t))}function V0e(e,t){const r=new Map,i=new Map,a=[];let o,l;for(const f of t)u(f);return l?{buildOrder:o||Ve,circularDiagnostics:l}:o||Ve;function u(f,g){const m=cd(e,f);if(i.has(m))return;if(r.has(m)){g||(l||(l=[])).push(xc(p.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,a.join(`\r +`)));return}r.set(m,!0),a.push(f);const y=hT(e,f,m);if(y&&y.projectReferences)for(const x of y.projectReferences){const k=x4(e,x.path);u(k,g||x.circular)}a.pop(),i.set(m,!0),(o||(o=[])).push(f)}}function y5(e){return e.buildOrder||MOe(e)}function MOe(e){const t=V0e(e,e.rootNames.map(a=>x4(e,a)));e.resolvedConfigFilePaths.clear();const r=new Map(lM(t).map(a=>[cd(e,a),!0])),i={onDeleteValue:co};return Qg(e.configFileCache,r,i),Qg(e.projectStatus,r,i),Qg(e.builderPrograms,r,i),Qg(e.diagnostics,r,i),Qg(e.projectPendingBuild,r,i),Qg(e.projectErrorsReported,r,i),Qg(e.buildInfoCache,r,i),Qg(e.outputTimeStamps,r,i),e.watch&&(Qg(e.allWatchedConfigFiles,r,{onDeleteValue:vm}),e.allWatchedExtendedConfigFiles.forEach(a=>{a.projects.forEach(o=>{r.has(o)||a.projects.delete(o)}),a.close()}),Qg(e.allWatchedWildcardDirectories,r,{onDeleteValue:a=>a.forEach(Em)}),Qg(e.allWatchedInputFiles,r,{onDeleteValue:a=>a.forEach(vm)}),Qg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:a=>a.forEach(vm)})),e.buildOrder=t}function U0e(e,t,r){const i=t&&x4(e,t),a=y5(e);if(PS(a))return a;if(i){const l=cd(e,i);if(qc(a,f=>cd(e,f)===l)===-1)return}const o=i?V0e(e,[i]):a;return E.assert(!PS(o)),E.assert(!r||i!==void 0),E.assert(!r||o[o.length-1]===i),r?o.slice(0,o.length-1):o}function W0e(e){e.cache&&vQ(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,a=t.getSourceFile,{originalReadFile:o,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,getSourceFileWithCache:m,readFileWithCache:y}=o5(r,x=>Mu(e,x),(...x)=>a.call(t,...x));e.readFileWithCache=y,t.getSourceFile=m,e.cache={originalReadFile:o,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:a}}function vQ(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:a,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,a.clear(),o==null||o.clear(),l==null||l.clear(),u==null||u.clear(),e.cache=void 0}function q0e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function H0e({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(cd(e,i),0)),t&&t.throwIfCancellationRequested()}function $0e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function ROe(e,t,r,i,a){let o=!0;return{kind:2,project:t,projectPath:r,buildOrder:a,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{nhe(e,i,r),o=!1},done:()=>(o&&nhe(e,i,r),go("SolutionBuilder::Timestamps only updates"),$0e(e,r))}}function X0e(e,t,r,i,a,o,l){let u=e===0?0:4,f,g,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>x(Zo),getProgram:()=>x(R=>R.getProgramOrUndefined()),getSourceFile:R=>x(Z=>Z.getSourceFile(R)),getSourceFiles:()=>k(R=>R.getSourceFiles()),getOptionsDiagnostics:R=>k(Z=>Z.getOptionsDiagnostics(R)),getGlobalDiagnostics:R=>k(Z=>Z.getGlobalDiagnostics(R)),getConfigFileParsingDiagnostics:()=>k(R=>R.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(R,Z)=>k(oe=>oe.getSyntacticDiagnostics(R,Z)),getAllDependencies:R=>k(Z=>Z.getAllDependencies(R)),getSemanticDiagnostics:(R,Z)=>k(oe=>oe.getSemanticDiagnostics(R,Z)),getSemanticDiagnosticsOfNextAffectedFile:(R,Z)=>x(oe=>oe.getSemanticDiagnosticsOfNextAffectedFile&&oe.getSemanticDiagnosticsOfNextAffectedFile(R,Z)),emit:(R,Z,oe,_e,X)=>{if(R||_e)return x(H=>{var Q,ne;return H.emit(R,Z,oe,_e,X||((ne=(Q=t.host).getCustomTransformers)==null?void 0:ne.call(Q,r)))});if(ee(2,oe),u===5)return U(Z,oe);if(u===3)return V(Z,oe,X)},done:y}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(R,Z)=>u!==4?m:j(R,Z),done:y};function y(R,Z,oe){return ee(8,R,Z,oe),go(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),$0e(t,i)}function x(R){return ee(0),f&&R(f)}function k(R){return x(R)||Ve}function C(){var R,Z;if(E.assert(f===void 0),t.options.dry){F_(t,p.A_non_dry_build_would_build_project_0,r),g=1,u=7;return}if(t.options.verbose&&F_(t,p.Building_project_0,r),o.fileNames.length===0){S4(t,i,mT(o)),g=0,u=7;return}const{host:oe,compilerHost:_e}=t;t.projectCompilerOptions=o.options,(R=t.moduleResolutionCache)==null||R.update(o.options),(Z=t.typeReferenceDirectiveResolutionCache)==null||Z.update(o.options),f=oe.createProgram(o.fileNames,o.options,_e,jOe(t,i,o),mT(o),o.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&an(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),([X,H])=>[t.host.realpath&&H?Mu(t,t.host.realpath(X)):X,H])),t.builderPrograms.set(i,f)),u++}function N(R,Z,oe){R.length?{buildResult:g,step:u}=xQ(t,i,f,o,R,Z,oe):u++}function D(R){E.assertIsDefined(f),N([...f.getConfigFileParsingDiagnostics(),...f.getOptionsDiagnostics(R),...f.getGlobalDiagnostics(R),...f.getSyntacticDiagnostics(void 0,R)],8,"Syntactic")}function M(R){N(E.checkDefined(f).getSemanticDiagnostics(void 0,R),16,"Semantic")}function V(R,Z,oe){var _e,X,H;E.assertIsDefined(f),E.assert(u===3);const Q=f.saveEmitState();let ne;const ue=Pe=>(ne||(ne=[])).push(Pe),fe=[],{emitResult:G}=iM(f,ue,void 0,void 0,(Pe,Ge,tt,mt,Je,ot)=>fe.push({name:Pe,text:Ge,writeByteOrderMark:tt,data:ot}),Z,!1,oe||((X=(_e=t.host).getCustomTransformers)==null?void 0:X.call(_e,r)));if(ne)return f.restoreEmitState(Q),{buildResult:g,step:u}=xQ(t,i,f,o,ne,32,"Declaration file"),{emitSkipped:!0,diagnostics:G.diagnostics};const{host:Ne,compilerHost:De}=t,Xe=(H=f.hasChangedEmitSignature)!=null&&H.call(f)?0:2,ve=N6(),be=new Map,xe=f.getCompilerOptions(),rt=AD(xe);let ct,pe;return fe.forEach(({name:Pe,text:Ge,writeByteOrderMark:tt,data:mt})=>{const Je=Mu(t,Pe);be.set(Mu(t,Pe),Pe),mt!=null&&mt.buildInfo&&kQ(t,mt.buildInfo,i,xe,Xe);const ot=mt!=null&&mt.differsOnlyInMap?wx(t.host,Pe):void 0;y3(R?{writeFile:R}:De,ve,Pe,Ge,tt),mt!=null&&mt.differsOnlyInMap?t.host.setModifiedTime(Pe,ot):!rt&&t.watch&&(ct||(ct=SQ(t,i))).set(Je,pe||(pe=h5(t.host)))}),Y(ve,be,fe.length?fe[0].name:dX(o,!Ne.useCaseSensitiveFileNames()),Xe),G}function U(R,Z){E.assertIsDefined(f),E.assert(u===5);const oe=f.emitBuildInfo((_e,X,H,Q,ne,ue)=>{ue!=null&&ue.buildInfo&&kQ(t,ue.buildInfo,i,f.getCompilerOptions(),2),R?R(_e,X,H,Q,ne,ue):t.compilerHost.writeFile(_e,X,H,Q,ne,ue)},Z);return oe.diagnostics.length&&(b5(t,oe.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...oe.diagnostics]),g=64&g),oe.emittedFiles&&t.write&&oe.emittedFiles.forEach(_e=>Z0e(t,o,_e)),TQ(t,f,o),u=7,oe}function Y(R,Z,oe,_e){const X=R.getDiagnostics();return X.length?({buildResult:g,step:u}=xQ(t,i,f,o,X,64,"Emit"),X):(t.write&&Z.forEach(H=>Z0e(t,o,H)),the(t,o,i,p.Updating_unchanged_output_timestamps_of_project_0,Z),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:oe}),TQ(t,f,o),u=7,g=_e,X)}function j(R,Z){var oe,_e,X,H;if(E.assert(e===1),t.options.dry){F_(t,p.A_non_dry_build_would_update_output_of_project_0,r),g=1,u=7;return}t.options.verbose&&F_(t,p.Updating_output_of_project_0,r);const{compilerHost:Q}=t;t.projectCompilerOptions=o.options,(_e=(oe=t.host).beforeEmitBundle)==null||_e.call(oe,o);const ne=Rge(o,Q,Xe=>{const ve=x4(t,Xe.path);return hT(t,ve,cd(t,ve))},Z||((H=(X=t.host).getCustomTransformers)==null?void 0:H.call(X,r)));if(Gs(ne))return F_(t,p.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,Tl(t,ne)),u=6,m=X0e(0,t,r,i,a,o,l);E.assert(!!ne.length);const ue=N6(),fe=new Map;let G=2;const Ne=t.buildInfoCache.get(i).buildInfo||void 0;return ne.forEach(({name:Xe,text:ve,writeByteOrderMark:be,data:xe})=>{var rt,ct;fe.set(Mu(t,Xe),Xe),xe!=null&&xe.buildInfo&&(((rt=xe.buildInfo.program)==null?void 0:rt.outSignature)!==((ct=Ne==null?void 0:Ne.program)==null?void 0:ct.outSignature)&&(G&=-3),kQ(t,xe.buildInfo,i,o.options,G)),y3(R?{writeFile:R}:Q,ue,Xe,ve,be)}),{emitSkipped:!1,diagnostics:Y(ue,fe,ne[0].name,G)}}function ee(R,Z,oe,_e){for(;u<=R&&u<8;){const X=u;switch(u){case 0:C();break;case 1:D(Z);break;case 2:M(Z);break;case 3:V(oe,Z,_e);break;case 5:U(oe,Z);break;case 4:j(oe,_e);break;case 6:E.checkDefined(m).done(Z,oe,_e),u=8;break;case 7:UOe(t,r,i,a,o,l,E.checkDefined(g)),u++;break}E.assert(u>X)}}}function BOe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!mT(r).length||!AD(r.options)}function Q0e(e,t,r){if(!e.projectPendingBuild.size||PS(t))return;const{options:i,projectPendingBuild:a}=e;for(let o=0;o{const k=E.checkDefined(e.filesWatched.get(u));E.assert(_M(k)),k.modifiedTime=x,k.callbacks.forEach(C=>C(m,y,x))},i,a,o,l);e.filesWatched.set(u,{callbacks:[r],watcher:g,modifiedTime:f})}return{close:()=>{const g=E.checkDefined(e.filesWatched.get(u));E.assert(_M(g)),g.callbacks.length===1?(e.filesWatched.delete(u),Em(g)):PC(g.callbacks,r)}}}function SQ(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function kQ(e,t,r,i,a){const o=ch(i),l=CQ(e,o,r),u=h5(e.host);l?(l.buildInfo=t,l.modifiedTime=u,a&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Mu(e,o),buildInfo:t,modifiedTime:u,latestChangedDtsTime:a&2?void 0:u})}function CQ(e,t,r){const i=Mu(e,t),a=e.buildInfoCache.get(r);return(a==null?void 0:a.path)===i?a:void 0}function ehe(e,t,r,i){const a=Mu(e,t),o=e.buildInfoCache.get(r);if(o!==void 0&&o.path===a)return o.buildInfo||void 0;const l=e.readFileWithCache(t),u=l?BL(t,l):void 0;return e.buildInfoCache.set(r,{path:a,buildInfo:u||!1,modifiedTime:i||zg}),u}function EQ(e,t,r,i){const a=K0e(e,t);if(rN&&(C=oe,N=_e),x&&M.add(Mu(e,oe))}if(x){k||(k=XX(x,f,u));for(const oe of k.roots)if(!M.has(oe))return{type:10,buildInfoFile:f,inputFile:oe}}if(!f){const oe=ML(t,!u.useCaseSensitiveFileNames()),_e=SQ(e,r);for(const X of oe){const H=Mu(e,X);let Q=_e==null?void 0:_e.get(H);if(Q||(Q=wx(e.host,X),_e==null||_e.set(H,Q)),Q===zg)return{type:4,missingOutputFileName:X};if(QEQ(e,oe,m,g));if(R)return R;const Z=pn(e.lastCachedPackageJsonLookups.get(r)||Ve,([oe])=>EQ(e,oe,m,g));return Z||(Y&&U?{type:3,outOfDateOutputFileName:g,newerProjectName:j}:{type:U?2:D?15:1,newestInputFileTime:N,newestInputFileName:C,oldestOutputFileName:g})}function zOe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function wQ(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;go("SolutionBuilder::beforeUpToDateCheck");const a=JOe(e,t,r);return go("SolutionBuilder::afterUpToDateCheck"),Gu("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,a),a}function the(e,t,r,i,a){if(t.options.noEmit)return;let o;const l=ch(t.options);if(l){a!=null&&a.has(Mu(e,l))||(e.options.verbose&&F_(e,i,t.options.configFilePath),e.host.setModifiedTime(l,o=h5(e.host)),CQ(e,l,r).modifiedTime=o),e.outputTimeStamps.delete(r);return}const{host:u}=e,f=ML(t,!u.useCaseSensitiveFileNames()),g=SQ(e,r),m=g?new Set:void 0;if(!a||f.length!==a.size){let y=!!e.options.verbose;for(const x of f){const k=Mu(e,x);a!=null&&a.has(k)||(y&&(y=!1,F_(e,i,t.options.configFilePath)),u.setModifiedTime(x,o||(o=h5(e.host))),g&&(g.set(k,o),m.add(k)))}}g==null||g.forEach((y,x)=>{!(a!=null&&a.has(x))&&!m.has(x)&&g.delete(x)})}function VOe(e,t,r){if(!t.composite)return;const i=E.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const a=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(ms(i.buildInfo.program.latestChangedDtsFile,Ti(i.path))):void 0;return i.latestChangedDtsTime=a||!1,a}function nhe(e,t,r){if(e.options.dry)return F_(e,p.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);the(e,t,r,p.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:dX(t,!e.host.useCaseSensitiveFileNames())})}function UOe(e,t,r,i,a,o,l){if(!(l&124)&&!!a.options.composite)for(let u=i+1;ue.diagnostics.has(cd(e,g)))?f?2:1:0}function ihe(e,t,r){go("SolutionBuilder::beforeClean");const i=qOe(e,t,r);return go("SolutionBuilder::afterClean"),Gu("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function qOe(e,t,r){const i=U0e(e,t,r);if(!i)return 3;if(PS(i))return b5(e,i.circularDiagnostics),4;const{options:a,host:o}=e,l=a.dry?[]:void 0;for(const u of i){const f=cd(e,u),g=hT(e,u,f);if(g===void 0){_he(e,f);continue}const m=ML(g,!o.useCaseSensitiveFileNames());if(!m.length)continue;const y=new Set(g.fileNames.map(x=>Mu(e,x)));for(const x of m)y.has(Mu(e,x))||o.fileExists(x)&&(l?l.push(x):(o.deleteFile(x),DQ(e,f,0)))}return l&&F_(e,p.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r + * ${u}`).join("")),0}function DQ(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,q0e(e,t),H0e(e,t,r),W0e(e)}function v5(e,t,r){e.reportFileChangeDetected=!0,DQ(e,t,r),she(e,250,!0)}function she(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(HOe,t,"timerToBuildInvalidatedProject",e,r))}function HOe(e,t,r){go("SolutionBuilder::beforeBuild");const i=GOe(t,r);go("SolutionBuilder::afterBuild"),Gu("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&uhe(t,i)}function GOe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),PQ(e,p.File_change_detected_Starting_incremental_compilation));let r=0;const i=y5(e),a=bQ(e,i,!1);if(a)for(a.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=Q0e(e,i,!1);if(!o)break;if(o.kind!==2&&(t||r===5)){she(e,100,!1);return}Y0e(e,o,i).done(),o.kind!==2&&r++}return vQ(e),i}function ahe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,uM(e,t,()=>v5(e,r,2),2e3,i==null?void 0:i.watchOptions,lp.ConfigFile,t))}function ohe(e,t,r){yX(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,a)=>uM(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(a))==null?void 0:o.projects.forEach(l=>v5(e,l,2))},2e3,r==null?void 0:r.watchOptions,lp.ExtendedConfigFile),i=>Mu(e,i))}function che(e,t,r,i){!e.watch||JL(yQ(e.allWatchedWildcardDirectories,r),new Map(Object.entries(i.wildcardDirectories)),(a,o)=>e.watchDirectory(a,l=>{var u;zL({watchedDirPath:Mu(e,a),fileOrDirectory:l,fileOrDirectoryPath:Mu(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=LOe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:f=>e.writeLog(f),toPath:f=>Mu(e,f)})||v5(e,r,1)},o,i==null?void 0:i.watchOptions,lp.WildcardDirectory,t))}function AQ(e,t,r,i){!e.watch||M6(yQ(e.allWatchedInputFiles,r),Bv(i.fileNames,a=>Mu(e,a)),{createNewValue:(a,o)=>uM(e,o,()=>v5(e,r,0),250,i==null?void 0:i.watchOptions,lp.SourceFile,t),onDeleteValue:vm})}function NQ(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||M6(yQ(e.allWatchedPackageJsonFiles,r),new Map(e.lastCachedPackageJsonLookups.get(r)),{createNewValue:(a,o)=>uM(e,a,()=>v5(e,r,0),2e3,i==null?void 0:i.watchOptions,lp.PackageJson,t),onDeleteValue:vm})}function $Oe(e,t){if(!!e.watchAllProjectsPending){go("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of lM(t)){const i=cd(e,r),a=hT(e,r,i);ahe(e,r,i,a),ohe(e,i,a),a&&(che(e,r,i,a),AQ(e,r,i,a),NQ(e,r,i,a))}go("SolutionBuilder::afterWatcherCreation"),Gu("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function XOe(e){Mf(e.allWatchedConfigFiles,vm),Mf(e.allWatchedExtendedConfigFiles,Em),Mf(e.allWatchedWildcardDirectories,t=>Mf(t,Em)),Mf(e.allWatchedInputFiles,t=>Mf(t,vm)),Mf(e.allWatchedPackageJsonFiles,t=>Mf(t,vm))}function lhe(e,t,r,i,a){const o=FOe(e,t,r,i,a);return{build:(l,u,f,g)=>rhe(o,l,u,f,g),clean:l=>ihe(o,l),buildReferences:(l,u,f,g)=>rhe(o,l,u,f,g,!0),cleanReferences:l=>ihe(o,l,!0),getNextInvalidatedProject:l=>(G0e(o,l),bQ(o,y5(o),!1)),getBuildOrder:()=>y5(o),getUpToDateStatusOfProject:l=>{const u=x4(o,l),f=cd(o,u);return wQ(o,hT(o,u,f),f)},invalidateProject:(l,u)=>DQ(o,l,u||0),close:()=>XOe(o)}}function Tl(e,t){return BC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function F_(e,t,...r){e.host.reportSolutionBuilderStatus(xc(t,...r))}function PQ(e,t,...r){var i,a;(a=(i=e.hostWithWatch).onWatchStatusChange)==null||a.call(i,xc(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function b5({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function S4(e,t,r){b5(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function _he(e,t){S4(e,t,[e.configFileCache.get(t)])}function uhe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let a=0,o=[];PS(t)?(fhe(e,t.buildOrder),b5(e,t.circularDiagnostics),r&&(a+=nM(t.circularDiagnostics)),r&&(o=[...o,...rM(t.circularDiagnostics)])):(t.forEach(l=>{const u=cd(e,l);e.projectErrorsReported.has(u)||b5(e,i.get(u)||Ve)}),r&&i.forEach(l=>a+=nM(l)),r&&i.forEach(l=>[...o,...rM(l)])),e.watch?PQ(e,iQ(a),a):e.host.reportErrorSummary&&e.host.reportErrorSummary(a,o)}function fhe(e,t){e.options.verbose&&F_(e,p.Projects_in_this_build_Colon_0,t.map(r=>`\r + * `+Tl(e,r)).join(""))}function QOe(e,t,r){switch(r.type){case 6:return F_(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Tl(e,t),Tl(e,r.outOfDateOutputFileName),Tl(e,r.newerInputFileName));case 7:return F_(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Tl(e,t),Tl(e,r.outOfDateOutputFileName),Tl(e,r.newerProjectName));case 4:return F_(e,p.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Tl(e,t),Tl(e,r.missingOutputFileName));case 5:return F_(e,p.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Tl(e,t),Tl(e,r.fileName));case 8:return F_(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Tl(e,t),Tl(e,r.buildInfoFile));case 9:return F_(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Tl(e,t),Tl(e,r.buildInfoFile));case 10:return F_(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Tl(e,t),Tl(e,r.buildInfoFile),Tl(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return F_(e,p.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Tl(e,t),Tl(e,r.newestInputFileName||""),Tl(e,r.oldestOutputFileName||""));break;case 3:return F_(e,p.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Tl(e,t),Tl(e,r.newerProjectName));case 2:return F_(e,p.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Tl(e,t));case 15:return F_(e,p.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Tl(e,t));case 11:return F_(e,p.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Tl(e,t),Tl(e,r.upstreamProjectName));case 12:return F_(e,r.upstreamProjectBlocked?p.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:p.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Tl(e,t),Tl(e,r.upstreamProjectName));case 0:return F_(e,p.Failed_to_parse_file_0_Colon_1,Tl(e,t),r.reason);case 14:return F_(e,p.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Tl(e,t),r.version,L0);case 17:return F_(e,p.Project_0_is_being_forcibly_rebuilt,Tl(e,t))}}function fM(e,t,r){e.options.verbose&&QOe(e,t,r)}var phe,dhe,IQ,YOe=Rt({"src/compiler/tsbuildPublic.ts"(){Ls(),Vv(),phe=new Date(-864e13),dhe=new Date(864e13),IQ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(IQ||{})}}),Ls=Rt({"src/compiler/_namespaces/ts.ts"(){X7e(),gwe(),hwe(),wwe(),Nwe(),Pwe(),Vwe(),Woe(),Kwe(),aDe(),oDe(),fDe(),FDe(),KAe(),e5e(),t5e(),n5e(),d5e(),y5e(),v5e(),L5e(),dNe(),mNe(),ENe(),ePe(),NPe(),MPe(),RPe(),$Pe(),eIe(),lIe(),gIe(),AIe(),NIe(),jIe(),JIe(),zIe(),$Ie(),XIe(),QIe(),YIe(),ZIe(),KIe(),e9e(),t9e(),n9e(),s9e(),a9e(),o9e(),c9e(),l9e(),u9e(),f9e(),p9e(),d9e(),m9e(),g9e(),x9e(),D9e(),j9e(),V9e(),$9e(),X9e(),Q9e(),fOe(),mOe(),yOe(),SOe(),EOe(),wOe(),YOe(),A$(),Vv()}});function mhe(e,t){return new wd(B7(t,`ts${wC}`)||B7(t,"latest")).compareTo(e.version)<=0}function ghe(e){return RQ.has(e)?"node":e}function ZOe(e,t){const r=EA(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function KOe(e,t){var r;const i=EA(t,a=>e.readFile(a));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function eFe(e,t,r,i,a,o,l,u,f,g){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const m=new Map;r=Hi(r,Y=>{const j=ba(Y);if(_2(j))return j});const y=[];l.include&&M(l.include,"Explicitly included types");const x=l.exclude||[];if(!g.types){const Y=new Set(r.map(Ti));Y.add(i),Y.forEach(j=>{V(j,"bower.json","bower_components",y),V(j,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||U(r),u){const Y=Uk(u.map(ghe),xx,w_);M(Y,"Inferred typings from unresolved imports")}o.forEach((Y,j)=>{const ee=f.get(j);m.has(j)&&m.get(j)===void 0&&ee!==void 0&&mhe(Y,ee)&&m.set(j,Y.typingLocation)});for(const Y of x)m.delete(Y)&&t&&t(`Typing for ${Y} is in exclude list, will be ignored.`);const k=[],C=[];m.forEach((Y,j)=>{Y!==void 0?C.push(Y):k.push(j)});const N={cachedTypingPaths:C,newTypingNames:k,filesToWatch:y};return t&&t(`Result: ${JSON.stringify(N)}`),N;function D(Y){m.has(Y)||m.set(Y,void 0)}function M(Y,j){t&&t(`${j}: ${JSON.stringify(Y)}`),pn(Y,D)}function V(Y,j,ee,R){const Z=Ii(Y,j);let oe,_e;e.fileExists(Z)&&(R.push(Z),oe=EA(Z,ne=>e.readFile(ne)).config,_e=Na([oe.dependencies,oe.devDependencies,oe.optionalDependencies,oe.peerDependencies],Jg),M(_e,`Typing names in '${Z}' dependencies`));const X=Ii(Y,ee);if(R.push(X),!e.directoryExists(X))return;const H=[],Q=_e?_e.map(ne=>Ii(X,ne,j)):e.readDirectory(X,[".json"],void 0,void 0,3).filter(ne=>{if(Jl(ne)!==j)return!1;const ue=Dl(ba(ne)),fe=ue[ue.length-3][0]==="@";return fe&&Zp(ue[ue.length-4])===ee||!fe&&Zp(ue[ue.length-3])===ee});t&&t(`Searching for typing names in ${X}; all files: ${JSON.stringify(Q)}`);for(const ne of Q){const ue=ba(ne),G=EA(ue,De=>e.readFile(De)).config;if(!G.name)continue;const Ne=G.types||G.typings;if(Ne){const De=ms(Ne,Ti(ue));e.fileExists(De)?(t&&t(` Package '${G.name}' provides its own types.`),m.set(G.name,De)):t&&t(` Package '${G.name}' provides its own types but they are missing.`)}else H.push(G.name)}M(H," Found package names")}function U(Y){const j=Hi(Y,R=>{if(!_2(R))return;const Z=gu(Zp(Jl(R))),oe=hoe(Z);return a.get(oe)});j.length&&M(j,"Inferred typings from file names"),dt(Y,R=>Hc(R,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}}function tFe(e){return OQ(e,!0)}function OQ(e,t){if(!e)return 1;if(e.length>jQ)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=OQ(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const a=OQ(r[2],!1);return a!==0?{name:r[2],isScopeName:!1,result:a}:0}}return encodeURIComponent(e)!==e?5:0}function nFe(e,t){return typeof e=="object"?hhe(t,e.result,e.name,e.isScopeName):hhe(t,e,t,!1)}function hhe(e,t,r,i){const a=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${a} name '${r}' cannot be empty`;case 2:return`'${e}':: ${a} name '${r}' should be less than ${jQ} characters`;case 3:return`'${e}':: ${a} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${a} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${a} name '${r}' contains non URI safe characters`;case 0:return E.fail();default:E.assertNever(t)}}var FQ,LQ,MQ,RQ,BQ,jQ,rFe=Rt({"src/jsTyping/jsTyping.ts"(){pM(),FQ=["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"],LQ=FQ.map(e=>`node:${e}`),MQ=[...FQ,...LQ],RQ=new Set(MQ),BQ=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(BQ||{}),jQ=214}}),yT={};C_(yT,{NameValidationResult:()=>BQ,discoverTypings:()=>eFe,isTypingUpToDate:()=>mhe,loadSafeList:()=>ZOe,loadTypesMap:()=>KOe,nodeCoreModuleList:()=>MQ,nodeCoreModules:()=>RQ,nonRelativeModuleNameForTypingCache:()=>ghe,prefixedNodeCoreModuleList:()=>LQ,renderPackageNameValidationFailure:()=>nFe,validatePackageName:()=>tFe});var iFe=Rt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){rFe()}});function sFe(e){return jl.args.indexOf(e)>=0}function aFe(e){const t=jl.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(JQ||(JQ={}))}}),lFe=Rt({"src/jsTyping/types.ts"(){}}),Ehe={};C_(Ehe,{ActionInvalidate:()=>vhe,ActionPackageInstalled:()=>bhe,ActionSet:()=>yhe,ActionWatchTypingLocations:()=>Che,Arguments:()=>JQ,EventBeginInstallTypes:()=>xhe,EventEndInstallTypes:()=>She,EventInitializationFailed:()=>khe,EventTypesRegistry:()=>The,findArgument:()=>aFe,hasArgument:()=>sFe,nowString:()=>oFe});var _Fe=Rt({"src/jsTyping/_namespaces/ts.server.ts"(){cFe(),lFe()}}),pM=Rt({"src/jsTyping/_namespaces/ts.ts"(){Ls(),iFe(),_Fe()}});function whe(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` +`,convertTabsToSpaces:!0,indentStyle:2,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:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var zQ,VQ,UQ,WQ,_p,qQ,HQ,GQ,$Q,XQ,QQ,YQ,Dhe,T5,ZQ,KQ,eY,tY,nY,rY,iY,sY,aY,uFe=Rt({"src/services/types.ts"(){(e=>{class t{constructor(a){this.text=a}getText(a,o){return a===0&&o===this.text.length?this.text:this.text.substring(a,o)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(zQ||(zQ={})),VQ=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(VQ||{}),UQ=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(UQ||{}),WQ=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(WQ||{}),_p={},qQ=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(qQ||{}),HQ=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(HQ||{}),GQ=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(GQ||{}),$Q=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))($Q||{}),XQ=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(XQ||{}),QQ=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(QQ||{}),YQ=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(YQ||{}),Dhe=whe(` +`),T5=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(T5||{}),ZQ=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(ZQ||{}),KQ=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(KQ||{}),eY=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(eY||{}),tY=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(tY||{}),nY=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(nY||{}),rY=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(rY||{}),iY=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(iY||{}),sY=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(sY||{}),aY=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(aY||{})}});function x5(e){switch(e.kind){case 260:return Kn(e)&&YU(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return __(e)||r0(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function vT(e){e=yY(e);const t=e.parent;return e.kind===312?1:fc(t)||p_(t)||km(t)||vu(t)||Sm(t)||Hl(t)&&e===t.name?7:dM(e)?fFe(e):Xg(e)?x5(t):Xu(e)&&In(e,Kp(_8,Ix,Oy))?7:gFe(e)?2:pFe(e)?4:Go(t)?(E.assert(od(t.parent)),2):Ay(t)?3:1}function fFe(e){const t=e.kind===166?e:hu(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function dM(e){for(;e.parent.kind===166;)e=e.parent;return b6(e.parent)&&e.parent.moduleReference===e}function pFe(e){return dFe(e)||mFe(e)}function dFe(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function mFe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){const i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function gFe(e){switch(k3(e)&&(e=e.parent),e.kind){case 110:return!Gg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Km(e.parent)}return!1}function oY(e,t=!1,r=!1){return B8(e,Js,mM,t,r)}function R8(e,t=!1,r=!1){return B8(e,d2,mM,t,r)}function cY(e,t=!1,r=!1){return B8(e,Ym,mM,t,r)}function Ahe(e,t=!1,r=!1){return B8(e,Kb,hFe,t,r)}function Nhe(e,t=!1,r=!1){return B8(e,Wl,mM,t,r)}function Phe(e,t=!1,r=!1){return B8(e,U_,yFe,t,r)}function mM(e){return e.expression}function hFe(e){return e.tag}function yFe(e){return e.tagName}function B8(e,t,r,i,a){let o=i?Ihe(e):gM(e);return a&&(o=nl(o)),!!o&&!!o.parent&&t(o.parent)&&r(o.parent)===o}function gM(e){return k4(e)?e.parent:e}function Ihe(e){return k4(e)||fY(e)?e.parent:e}function hM(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function S5(e,t){return kr(e.expression)?e.expression.name.text===t:!1}function k5(e){var t;return we(e)&&((t=Hr(e.parent,$C))==null?void 0:t.label)===e}function lY(e){var t;return we(e)&&((t=Hr(e.parent,m2))==null?void 0:t.label)===e}function _Y(e){return lY(e)||k5(e)}function uY(e){var t;return((t=Hr(e.parent,c6))==null?void 0:t.tagName)===e}function Ohe(e){var t;return((t=Hr(e.parent,hu))==null?void 0:t.right)===e}function k4(e){var t;return((t=Hr(e.parent,kr))==null?void 0:t.name)===e}function fY(e){var t;return((t=Hr(e.parent,No))==null?void 0:t.argumentExpression)===e}function pY(e){var t;return((t=Hr(e.parent,Ac))==null?void 0:t.name)===e}function dY(e){var t;return we(e)&&((t=Hr(e.parent,Cs))==null?void 0:t.name)===e}function yM(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return os(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function Fhe(e){return yy(e.parent.parent)&&c3(e.parent.parent)===e}function bT(e){for(Kf(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function A2(e){switch(e.kind){case 312:return zc(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(hm(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:r}=e;return Cs(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Lr(e,16476)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=uc(e),{right:a}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=A2(a);return l===""?"const":l;case 3:return _o(a)?"method":"property";case 4:return"property";case 5:return _o(a)?"method":"property";case 6:return"local class";default:return""}case 80:return Sm(e.parent)?"alias":"";case 277:const o=A2(e.expression);return o===""?"const":o;default:return""}function t(r){return d6(r)?"const":C9(r)?"let":"var"}}function C4(e){switch(e.kind){case 110:return!0;case 80:return Cq(e)&&e.parent.kind===169;default:return!1}}function up(e,t){const r=Ug(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function yf(e,t){return mY(e.pos,e.end,t)}function Lhe(e,t){return E5(e,t.pos)&&E5(e,t.end)}function C5(e,t){return e.pos<=t&&t<=e.end}function E5(e,t){return e.pos=r.end}function w5(e,t,r){return e.pos<=t&&e.end>=r}function j8(e,t,r){return vM(e.pos,e.end,t,r)}function gY(e,t,r,i){return vM(e.getStart(t),e.end,r,i)}function vM(e,t,r,i){const a=Math.max(e,r),o=Math.min(t,i);return ai.kind===t)}function TM(e){const t=Or(e.parent.getChildren(),r=>o4(r)&&yf(r,e));return E.assert(!t||ys(t.getChildren(),e)),t}function Rhe(e){return e.kind===90}function vFe(e){return e.kind===86}function bFe(e){return e.kind===100}function TFe(e){if(A_(e))return e.name;if(Qc(e)){const t=e.modifiers&&Or(e.modifiers,Rhe);if(t)return t}if(Fl(e)){const t=Or(e.getChildren(),vFe);if(t)return t}}function xFe(e){if(A_(e))return e.name;if(tl(e)){const t=Or(e.modifiers,Rhe);if(t)return t}if(_o(e)){const t=Or(e.getChildren(),bFe);if(t)return t}}function SFe(e){let t;return In(e,r=>(Ai(r)&&(t=r),!hu(r.parent)&&!Ai(r.parent)&&!Ob(r.parent))),t}function xM(e,t){if(e.flags&16777216)return;const r=JM(e,t);if(r)return r;const i=SFe(e);return i&&t.getTypeAtLocation(i)}function kFe(e,t){if(!t)switch(e.kind){case 263:case 231:return TFe(e);case 262:case 218:return xFe(e);case 176:return e}if(A_(e))return e.name}function Bhe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(ih(e.importClause.namedBindings)){const r=om(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(d1(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function jhe(e,t){if(e.exportClause){if(op(e.exportClause))return om(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(lg(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function CFe(e){if(e.types.length===1)return e.types[0].expression}function Jhe(e,t){const{parent:r}=e;if(Zs(e)&&(t||e.kind!==90)?Np(r)&&ys(r.modifiers,e):e.kind===86?Qc(r)||Fl(e):e.kind===100?tl(r)||_o(e):e.kind===120?f_(r):e.kind===94?Py(r):e.kind===156?Dp(r):e.kind===145||e.kind===144?Ac(r):e.kind===102?Hl(r):e.kind===139?gf(r):e.kind===153&&Fu(r)){const i=kFe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&ml(r)&&r.declarations.length===1){const i=r.declarations[0];if(we(i.name))return i.name}if(e.kind===156){if(Sm(r)&&r.isTypeOnly){const i=Bhe(r.parent,t);if(i)return i}if(Yc(r)&&r.isTypeOnly){const i=jhe(r,t);if(i)return i}}if(e.kind===130){if(vu(r)&&r.propertyName||p_(r)&&r.propertyName||d1(r)||lg(r))return r.name;if(Yc(r)&&r.exportClause&&lg(r.exportClause))return r.exportClause.name}if(e.kind===102&&bl(r)){const i=Bhe(r,t);if(i)return i}if(e.kind===95){if(Yc(r)){const i=jhe(r,t);if(i)return i}if(fc(r))return nl(r.expression)}if(e.kind===149&&km(r))return r.expression;if(e.kind===161&&(bl(r)||Yc(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&tf(r)&&r.token===e.kind){const i=CFe(r);if(i)return i}if(e.kind===96){if(Go(r)&&r.constraint&&ap(r.constraint))return r.constraint.typeName;if(Z6(r)&&ap(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&lS(r))return r.typeParameter.name;if(e.kind===103&&Go(r)&&i8(r.parent))return r.name;if(e.kind===143&&uS(r)&&r.operator===143&&ap(r.type))return r.type.typeName;if(e.kind===148&&uS(r)&&r.operator===148&&QH(r.type)&&ap(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&d2(r)||e.kind===116&&eT(r)||e.kind===114&&K6(r)||e.kind===135&&p1(r)||e.kind===127&&yF(r)||e.kind===91&&Nfe(r))&&r.expression)return nl(r.expression);if((e.kind===103||e.kind===104)&&rr(r)&&r.operatorToken===e)return nl(r.right);if(e.kind===130&&aA(r)&&ap(r.type))return r.type.typeName;if(e.kind===103&&bF(r)||e.kind===165&&oA(r))return nl(r.expression)}return e}function yY(e){return Jhe(e,!1)}function SM(e){return Jhe(e,!0)}function af(e,t){return J8(e,t,r=>Fd(r)||su(r.kind)||Ei(r))}function J8(e,t,r){return zhe(e,t,!1,r,!1)}function Ui(e,t){return zhe(e,t,!0,void 0,!1)}function zhe(e,t,r,i,a){let o=e,l;e:for(;;){const f=o.getChildren(e),g=vx(f,t,(m,y)=>y,(m,y)=>{const x=f[m].getEnd();if(xt?1:u(f[m],k,x)?f[m-1]&&u(f[m-1])?1:0:i&&k===t&&f[m-1]&&f[m-1].getEnd()===t&&u(f[m-1])?1:-1});if(l)return l;if(g>=0&&f[g]){o=f[g];continue e}return o}function u(f,g,m){if(m!=null||(m=f.getEnd()),mt))return!1;if(tr.getStart(e)&&t(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&kY(o,r)?i(o):void 0)}}function rl(e,t,r,i){const a=o(r||t);return E.assert(!(a&&A5(a))),a;function o(l){if(Uhe(l)&&l.kind!==1)return l;const u=l.getChildren(t),f=vx(u,e,(m,y)=>y,(m,y)=>e=u[m-1].end?0:1:-1);if(f>=0&&u[f]){const m=u[f];if(e=e||!kY(m,t)||A5(m)){const k=bY(u,f,t,l.kind);return k?!i&&f9(k)&&k.getChildren(t).length?o(k):vY(k,t):void 0}else return o(m)}E.assert(r!==void 0||l.kind===312||l.kind===1||f9(l));const g=bY(u,u.length,t,l.kind);return g&&vY(g,t)}}function Uhe(e){return Ax(e)&&!A5(e)}function vY(e,t){if(Uhe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=bY(r,r.length,t,e.kind);return i&&vY(i,t)}function bY(e,t,r,i){for(let a=t-1;a>=0;a--){const o=e[a];if(A5(o))a===0&&(i===12||i===285)&&E.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(kY(e[a],r))return e[a]}}function xT(e,t,r=rl(t,e)){if(r&&aW(r)){const i=r.getStart(e),a=r.getEnd();if(ir.getStart(e)}function qhe(e,t){const r=Ui(e,t);return!!(iS(r)||r.kind===19&&l8(r.parent)&&_g(r.parent.parent)||r.kind===30&&U_(r.parent)&&_g(r.parent.parent))}function CM(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(Ui(e,t))}function EM(e,t,r){const i=ia(e.kind),a=ia(t),o=e.getFullStart(),l=r.text.lastIndexOf(a,o);if(l===-1)return;if(r.text.lastIndexOf(i,o-1)!!o.typeParameters&&o.typeParameters.length>=t)}function SY(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,a=0;for(;r;){switch(r.kind){case 30:if(r=rl(r.getFullStart(),t),r&&r.kind===29&&(r=rl(r.getFullStart(),t)),!r||!we(r))return;if(!i)return Xg(r)?void 0:{called:r,nTypeArguments:a};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=EM(r,19,t),!r)return;break;case 22:if(r=EM(r,21,t),!r)return;break;case 24:if(r=EM(r,23,t),!r)return;break;case 28:a++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Ai(r))break;return}r=rl(r.getFullStart(),t)}}function lh(e,t,r){return gl.getRangeOfEnclosingComment(e,t,void 0,r)}function Ghe(e,t){const r=Ui(e,t);return!!In(r,Ap)}function kY(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function z8(e,t=0){const r=[],i=l_(e)?GU(e)&~t:0;return i&8&&r.push("private"),i&16&&r.push("protected"),i&4&&r.push("public"),(i&32||ec(e))&&r.push("static"),i&256&&r.push("abstract"),i&1&&r.push("export"),i&8192&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function $he(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(Cs(e)||e.kind===263||e.kind===264)return e.typeParameters}function wM(e){return e===2||e===3}function CY(e){return!!(e===11||e===14||e1(e))}function Xhe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function Qhe(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(Xhe(r,t[0],t[1])||Xhe(r,t[1],t[0]))}function P5(e,t,r){return e1(e.kind)&&e.getStart(r){const r=Ra(t);return!e[r]&&(e[r]=!0)}}function PM(e){return e.getText(0,e.getLength())}function F5(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function n1e(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function IY(e){return!!e.module||Ia(e)>=2||!!e.noEmit}function ST(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Hs(t,t.readFile),useCaseSensitiveFileNames:Hs(t,t.useCaseSensitiveFileNames),getSymlinkCache:Hs(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Hs(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Hs(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:Hs(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function OY(e,t){return{...ST(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function IM(e){return e===2||e>=3&&e<=99||e===100}function r1e(e,t,r,i){return e||t&&t.length?uh(e,t,r,i):void 0}function uh(e,t,r,i,a){return I.createImportDeclaration(void 0,e||t?I.createImportClause(!!a,e,t&&t.length?I.createNamedImports(t):void 0):void 0,typeof r=="string"?OS(r,i):r,void 0)}function OS(e,t){return I.createStringLiteral(e,t===0)}function FY(e,t){return z9(e,t)?1:0}function Rf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&Or(e.imports,i=>fa(i)&&!Do(i.parent));return r?FY(r,e):1}}function LY(e){switch(e){case 0:return"'";case 1:return'"';default:return E.assertNever(e)}}function OM(e){const t=FM(e);return t===void 0?void 0:Oi(t)}function FM(e){return e.escapedName!=="default"?e.escapedName:cc(e.declarations,t=>{const r=os(t);return r&&r.kind===80?r.escapedText:void 0})}function LM(e){return Qa(e)&&(km(e.parent)||bl(e.parent)||mu(e.parent,!1)&&e.parent.arguments[0]===e||Zu(e.parent)&&e.parent.arguments[0]===e)}function M5(e){return Oa(e)&&rd(e.parent)&&we(e.name)&&!e.propertyName}function MM(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function R5(e,t,r){if(!!e)for(;e.parent;){if(Bi(e.parent)||!EFe(r,e.parent,t))return e;e=e.parent}}function EFe(e,t,r){return qU(e,t.getStart(r))&&t.getEnd()<=Zl(e)}function E4(e,t){return Np(e)?Or(e.modifiers,r=>r.kind===t):void 0}function U8(e,t,r,i,a){const l=(Ds(r)?r[0]:r).kind===243?ZW:Bb,u=zr(t.statements,l);let f=Ds(r)?Fp.detectImportDeclarationSorting(r,a):3;const g=Fp.getOrganizeImportsComparer(a,f===2),m=Ds(r)?R0(r,(y,x)=>Fp.compareImportsOrRequireStatements(y,x,g)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,m,i);else if(u&&(f=Fp.detectImportDeclarationSorting(u,a))){const y=Fp.getOrganizeImportsComparer(a,f===2);for(const x of m){const k=Fp.getImportDeclarationInsertionIndex(u,x,y);if(k===0){const C=u[0]===t.statements[0]?{leadingTriviaOption:tr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],x,!1,C)}else{const C=u[k-1];e.insertNodeAfter(t,C,x)}}}else{const y=jo(u);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function MY(e,t){return E.assert(e.isTypeOnly),Bs(e.getChildAt(0,t),NY)}function w4(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function wFe(e,t){return e.fileName===t.fileName&&w4(e.textSpan,t.textSpan)}function RY(e,t){if(e){for(let r=0;rrs(r)?!0:Oa(r)||rd(r)||pS(r)?!1:"quit")}function DFe(){const e=JD*10;let t,r,i,a;m();const o=y=>u(y,17);return{displayParts:()=>{const y=t.length&&t[t.length-1].text;return a>e&&y&&y!=="..."&&(Gm(y.charCodeAt(y.length-1))||t.push(bu(" ",16)),t.push(bu("...",15))),t},writeKeyword:y=>u(y,5),writeOperator:y=>u(y,12),writePunctuation:y=>u(y,15),writeTrailingSemicolon:y=>u(y,15),writeSpace:y=>u(y,16),writeStringLiteral:y=>u(y,8),writeParameter:y=>u(y,13),writeProperty:y=>u(y,14),writeLiteral:y=>u(y,8),writeSymbol:f,writeLine:g,write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ks,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(a>e)&&r){const y=Z9(i);y&&(a+=y.length,t.push(bu(y,16))),r=!1}}function u(y,x){a>e||(l(),a+=y.length,t.push(bu(y,x)))}function f(y,x){a>e||(l(),a+=y.length,t.push(a1e(y,x)))}function g(){a>e||(a+=1,t.push(D4()),r=!0)}function m(){t=[],r=!0,i=0,a=0}}function a1e(e,t){return bu(e,r(t));function r(i){const a=i.flags;return a&3?jY(i)?13:9:a&4||a&32768||a&65536?14:a&8?19:a&16?20:a&32?1:a&64?4:a&384?2:a&1536?11:a&8192?10:a&262144?18:a&524288||a&2097152?0:17}}function bu(e,t){return{text:e,kind:T5[t]}}function sc(){return bu(" ",16)}function Ru(e){return bu(ia(e),5)}function m_(e){return bu(ia(e),15)}function W8(e){return bu(ia(e),12)}function o1e(e){return bu(e,13)}function c1e(e){return bu(e,14)}function JY(e){const t=qv(e);return t===void 0?vf(e):Ru(t)}function vf(e){return bu(e,17)}function l1e(e){return bu(e,0)}function _1e(e){return bu(e,18)}function RM(e){return bu(e,24)}function u1e(e,t){return{text:e,kind:T5[23],target:{fileName:Rn(t).fileName,textSpan:cu(t)}}}function zY(e){return bu(e,22)}function f1e(e,t){var r;const i=Rfe(e)?"link":Bfe(e)?"linkcode":"linkplain",a=[zY(`{@${i} `)];if(!e.name)e.text&&a.push(RM(e.text));else{const o=t==null?void 0:t.getSymbolAtLocation(e.name),l=NFe(e.text),u=el(e.name)+e.text.slice(0,l),f=AFe(e.text.slice(l)),g=(o==null?void 0:o.valueDeclaration)||((r=o==null?void 0:o.declarations)==null?void 0:r[0]);g?(a.push(u1e(u,g)),f&&a.push(RM(f))):a.push(RM(u+(l?"":" ")+f))}return a.push(zY("}")),a}function AFe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function s0(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||L1e}function D4(){return bu(` +`,6)}function x1(e){try{return e(nR),nR.displayParts()}finally{nR.clear()}}function j5(e,t,r,i=0){return x1(a=>{e.writeType(t,r,i|1024|16384,a)})}function q8(e,t,r,i,a=0){return x1(o=>{e.writeSymbol(t,r,i,a|8,o)})}function VY(e,t,r,i=0){return i|=25632,x1(a=>{e.writeSignature(t,r,i,void 0,a)})}function PFe(e,t){const r=t.getSourceFile();return x1(i=>{s5().writeNode(4,e,r,i)})}function p1e(e){return!!e.parent&&Nx(e.parent)&&e.parent.propertyName===e}function UY(e,t){return TO(e,t.getScriptKind&&t.getScriptKind(e))}function d1e(e,t){let r=e;for(;IFe(r)||pm(r)&&r.links.target;)pm(r)&&r.links.target?r=r.links.target:r=au(r,t);return r}function IFe(e){return(e.flags&2097152)!==0}function m1e(e,t){return ya(au(e,t))}function g1e(e,t){for(;Gm(e.charCodeAt(t));)t+=1;return t}function BM(e,t){for(;t>-1&&Nd(e.charCodeAt(t));)t-=1;return t+1}function Io(e,t=!0){const r=e&&h1e(e);return r&&!t&&Bu(r),r}function J5(e,t,r){let i=r(e);return i?or(i,e):i=h1e(e,r),i&&!t&&Bu(i),i}function h1e(e,t){const r=t?o=>J5(o,!0,t):Io,a=fn(e,r,i0,t?o=>o&&WY(o,!0,t):o=>o&&N2(o),r);if(a===e){const o=fa(e)?or(I.createStringLiteralFromNode(e),e):Ou(e)?or(I.createNumericLiteral(e.text,e.numericLiteralFlags),e):I.cloneNode(e);return Ke(o,e)}return a.parent=void 0,a}function N2(e,t=!0){if(e){const r=I.createNodeArray(e.map(i=>Io(i,t)),e.hasTrailingComma);return Ke(r,e),r}return e}function WY(e,t,r){return I.createNodeArray(e.map(i=>J5(i,t,r)),e.hasTrailingComma)}function Bu(e){qY(e),y1e(e)}function qY(e){HY(e,1024,FFe)}function y1e(e){HY(e,2048,jq)}function kT(e,t){const r=e.getSourceFile(),i=r.text;OFe(e,i)?A4(e,t,r):V5(e,t,r),H8(e,t,r)}function OFe(e,t){const r=e.getFullStart(),i=e.getStart();for(let a=r;at)}function CT(e,t){let r=e;for(let i=1;!y9(t,r);i++)r=`${e}_${i}`;return r}function z5(e,t,r,i){let a=0,o=-1;for(const{fileName:l,textChanges:u}of e){E.assert(l===t);for(const f of u){const{span:g,newText:m}=f,y=LFe(m,Wx(r));if(y!==-1&&(o=g.start+a+y,!i))return o;a+=m.length-g.length}}return E.assert(i),E.assert(o>=0),o}function A4(e,t,r,i,a){uw(r.text,e.pos,GY(t,r,i,a,Y3))}function H8(e,t,r,i,a){fw(r.text,e.end,GY(t,r,i,a,MO))}function V5(e,t,r,i,a){fw(r.text,e.pos,GY(t,r,i,a,Y3))}function GY(e,t,r,i,a){return(o,l,u,f)=>{u===3?(o+=2,l-=2):o+=2,a(e,r||u,t.text.slice(o,l),i!==void 0?i:f)}}function LFe(e,t){if(ns(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function jM(e){return rr(e)&&e.operatorToken.kind===28||ha(e)||aA(e)&&ha(e.expression)}function JM(e,t,r){const i=$0(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:a,operatorToken:o,right:l}=i;return zM(o.kind)?t.getTypeAtLocation(e===l?a:l):t.getContextualType(e,r)}case 296:return XY(i,t);default:return t.getContextualType(e,r)}}function G8(e,t,r){const i=Rf(e,t),a=JSON.stringify(r);return i===0?`'${Ep(a).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:a}function zM(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function v1e(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function $Y(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function XY(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function $8(e,t,r,i){const a=r.getTypeChecker();let o=!0;const l=()=>o=!1,u=a.typeToTypeNode(e,t,1,{trackSymbol:(f,g,m)=>(o=o&&a.isSymbolAccessible(f,g,m,!1).accessibility===0,!o),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:OY(r,i)});return o?u:void 0}function QY(e){return e===179||e===180||e===181||e===171||e===173}function b1e(e){return e===262||e===176||e===174||e===177||e===178}function T1e(e){return e===267}function VM(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function MFe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(QY(e.kind)){if(r&&r.kind===28)return!1}else if(T1e(e.kind)){const u=ka(e.getChildren(t));if(u&&Jd(u))return!1}else if(b1e(e.kind)){const u=ka(e.getChildren(t));if(u&&n2(u))return!1}else if(!VM(e.kind))return!1;if(e.kind===246)return!0;const i=In(e,u=>!u.parent),a=TT(e,i,t);if(!a||a.kind===20)return!0;const o=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(a.getStart(t)).line;return o!==l}function UM(e,t,r){const i=In(t,a=>a.end!==e?"quit":cZ(a.kind));return!!i&&MFe(i,r)}function U5(e){let t=0,r=0;const i=5;return bs(e,function a(o){if(VM(o.kind)){const l=o.getLastToken(e);(l==null?void 0:l.kind)===27?t++:r++}else if(QY(o.kind)){const l=o.getLastToken(e);if((l==null?void 0:l.kind)===27)t++;else if(l&&l.kind!==28){const u=yo(e,l.getStart(e)).line,f=yo(e,gm(e,l.end).start).line;u!==f&&r++}}return t+r>=i?!0:bs(o,a)}),t===0&&r<=1?!0:t/r>1/i}function WM(e,t){return $M(e,e.getDirectories,t)||[]}function YY(e,t,r,i,a){return $M(e,e.readDirectory,t,r,i,a)||Ve}function qM(e,t){return $M(e,e.fileExists,t)}function HM(e,t){return GM(()=>ed(t,e))||!1}function GM(e){try{return e()}catch{return}}function $M(e,t,...r){return GM(()=>t&&t.apply(e,r))}function ZY(e,t,r){const i=[];return Vg(e,a=>{if(a===r)return!0;const o=Ii(a,"package.json");qM(t,o)&&i.push(o)}),i}function x1e(e,t){let r;return Vg(e,i=>{if(i==="node_modules"||(r=Uge(i,a=>qM(t,a),"package.json"),r))return!0}),r}function S1e(e,t){if(!t.fileExists)return[];const r=[];return Vg(Ti(e),i=>{const a=Ii(i,"package.json");if(t.fileExists(a)){const o=k1e(a,t);o&&r.push(o)}}),r}function k1e(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",a=RFe(i),o={};if(a)for(const f of r){const g=a[f];if(!g)continue;const m=new Map;for(const y in g)m.set(y,g[y]);o[f]=m}const l=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!a,fileName:e,get:u,has(f,g){return!!u(f,g)}};function u(f,g=15){for(const[m,y]of l)if(y&&g&m){const x=y.get(f);if(x!==void 0)return x}}}function X8(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||S1e(e.fileName,r)).filter(C=>C.parseable);let a,o,l;return{allowsImportingAmbientModule:f,allowsImportingSourceFile:g,allowsImportingSpecifier:m};function u(C){const N=k(C);for(const D of i)if(D.has(N)||D.has(_L(N)))return!0;return!1}function f(C,N){if(!i.length||!C.valueDeclaration)return!0;if(!o)o=new Map;else{const Y=o.get(C);if(Y!==void 0)return Y}const D=Ep(C.getName());if(y(D))return o.set(C,!0),!0;const M=C.valueDeclaration.getSourceFile(),V=x(M.fileName,N);if(typeof V>"u")return o.set(C,!0),!0;const U=u(V)||u(D);return o.set(C,U),U}function g(C,N){if(!i.length)return!0;if(!l)l=new Map;else{const V=l.get(C);if(V!==void 0)return V}const D=x(C.fileName,N);if(!D)return l.set(C,!0),!0;const M=u(D);return l.set(C,M),M}function m(C){return!i.length||y(C)||$u(C)||Ad(C)?!0:u(C)}function y(C){return!!(P_(e)&&yT.nodeCoreModules.has(C)&&(a===void 0&&(a=XM(e)),a))}function x(C,N){if(!Xl(C,"node_modules"))return;const D=S2.getNodeModulesPackageName(r.getCompilationSettings(),e,C,N,t);if(!!D&&!$u(D)&&!Ad(D))return k(D)}function k(C){const N=Dl(qA(C)).slice(1);return ns(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function RFe(e){try{return JSON.parse(e)}catch{return}}function XM(e){return dt(e.imports,({text:t})=>yT.nodeCoreModules.has(t))}function C1e(e){return ys(Dl(e),"node_modules")}function KY(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function E1e(e,t){const r=cu(e),i=vx(t,r,Zo,fI);if(i>=0){const a=t[i];return E.assertEqual(a.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Bs(a,KY)}}function w1e(e,t){var r;let i=vx(t,e.start,l=>l.start,Co);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const a=[],o=Zl(e);for(;;){const l=Hr(t[i],KY);if(!l||l.start>o)break;Tce(e,l)&&a.push(l),i++}return a}function FS({startPosition:e,endPosition:t}){return ll(e,t===void 0?e:t)}function eZ(e,t){const r=Ui(e,t.start);return In(r,a=>a.getStart(e)Zl(t)?"quit":nt(a)&&w4(t,cu(a,e)))}function D1e(e,t,r=Zo){return e?Ds(e)?r(an(e,t)):t(e,0):void 0}function tZ(e){return Ds(e)?wa(e):e}function A1e(e,t){if(N1e(e)){const r=P1e(e);if(r)return r;const i=n_.moduleSymbolToValidIdentifier(nZ(e),t,!1),a=n_.moduleSymbolToValidIdentifier(nZ(e),t,!0);return i===a?i:[i,a]}return e.name}function QM(e,t,r){return N1e(e)?P1e(e)||n_.moduleSymbolToValidIdentifier(nZ(e),t,!!r):e.name}function N1e(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function P1e(e){return cc(e.declarations,t=>{var r,i,a;return fc(t)?(r=Hr(nl(t.expression),we))==null?void 0:r.text:p_(t)&&t.symbol.flags===2097152?(i=Hr(t.propertyName,we))==null?void 0:i.text:(a=Hr(os(t),we))==null?void 0:a.text})}function nZ(e){var t;return E.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${E.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=E.formatSyntaxKind(r.kind),a=Kn(r),{expression:o}=r;return(a?"[JS]":"")+i+(o?` (expression: ${E.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function I1e(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let a=0;aAc(r)&&Id(r))}function YM(e){return!!(GU(e)&8192)}function ZM(e,t){const r=cc(e.imports,i=>{if(yT.nodeCoreModules.has(i.text))return ns(i.text,"node:")});return r!=null?r:t.usesUriStyleNodeCoreModules}function W5(e){return e===` +`?1:0}function ET(e){return Ds(e)?rg(ss(e[0]),e.slice(1)):ss(e)}function KM({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!U5(t);return{...e,semicolons:i?"remove":"ignore"}}function iZ(e){return e===2||e===3}function Q8(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function eR(e,t){const r=new Set,i=new Set,a=new Set;for(const u of t)if(!_A(u)){const f=lo(u.expression);if(Nb(f))switch(f.kind){case 15:case 11:r.add(f.text);break;case 9:i.add(parseInt(f.text));break;case 10:const g=Cue(vc(f.text,"n")?f.text.slice(0,-1):f.text);g&&a.add(u2(g));break}else{const g=e.getSymbolAtLocation(u.expression);if(g&&g.valueDeclaration&&b2(g.valueDeclaration)){const m=e.getConstantValue(g.valueDeclaration);m!==void 0&&o(m)}}}return{addValue:o,hasValue:l};function o(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function l(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return a.has(u2(u))}}}function sZ(e,t,r,i){var a;const o=typeof e=="string"?e:e.fileName;if(!_2(o))return!1;const l=t.getCompilerOptions(),u=Ul(l),f=typeof e=="string"?u5(ho(e,r.getCurrentDirectory(),Q0(r)),(a=t.getPackageJsonInfoCache)==null?void 0:a.call(t),r,l):e.impliedNodeFormat;if(f===99)return!1;if(f===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&fO(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var g_,aZ,F1e,tR,oZ,nR,L1e,rR,cZ,jFe=Rt({"src/services/utilities.ts"(){Wr(),g_=U0(99,!0),aZ=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(aZ||{}),F1e=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(oZ||{}),nR=DFe(),L1e=` +`,rR="anonymous function",cZ=Kp(QY,b1e,T1e,VM)}});function M1e(e){let t=1;const r=Xf(),i=new Map,a=new Map;let o;const l={isUsableByFile:k=>k===o,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),o=void 0},add:(k,C,N,D,M,V,U,Y)=>{k!==o&&(l.clear(),o=k);let j;if(M){const fe=oH(M.fileName);if(fe){const{topLevelNodeModulesIndex:G,topLevelPackageNameIndex:Ne,packageRootIndex:De}=fe;if(j=uL(qA(M.fileName.substring(Ne+1,De))),ns(k,M.path.substring(0,G))){const Xe=a.get(j),ve=M.fileName.substring(0,Ne+1);if(Xe){const be=Xe.indexOf(ah);G>be&&a.set(j,ve)}else a.set(j,ve)}}}const R=V===1&&F6(C)||C,Z=V===0||O5(R)?Oi(N):A1e(R,void 0),oe=typeof Z=="string"?Z:Z[0],_e=typeof Z=="string"?void 0:Z[1],X=Ep(D.name),H=t++,Q=au(C,Y),ne=C.flags&33554432?void 0:C,ue=D.flags&33554432?void 0:D;(!ne||!ue)&&i.set(H,[C,D]),r.add(f(oe,C,Al(X)?void 0:X,Y),{id:H,symbolTableKey:N,symbolName:oe,capitalizedSymbolName:_e,moduleName:X,moduleFile:M,moduleFileName:M==null?void 0:M.fileName,packageName:j,exportKind:V,targetFlags:Q.flags,isFromPackageJson:U,symbol:ne,moduleSymbol:ue})},get:(k,C)=>{if(k!==o)return;const N=r.get(C);return N==null?void 0:N.map(u)},search:(k,C,N,D)=>{if(k===o)return Au(r,(M,V)=>{const{symbolName:U,ambientModuleName:Y}=g(V),j=C&&M[0].capitalizedSymbolName||U;if(N(j,M[0].targetFlags)){const R=M.map(u).filter((Z,oe)=>x(Z,M[oe].packageName));if(R.length){const Z=D(R,j,!!Y,V);if(Z!==void 0)return Z}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(k,C,N)=>m(k)&&m(C)?!1:o&&o!==C.path||N&&XM(k)!==XM(C)||!Cd(k.moduleAugmentations,C.moduleAugmentations)||!y(k,C)?(l.clear(),!0):(o=C.path,!1)};return E.isDebugging&&Object.defineProperty(l,"__cache",{get:()=>r}),l;function u(k){if(k.symbol&&k.moduleSymbol)return k;const{id:C,exportKind:N,targetFlags:D,isFromPackageJson:M,moduleFileName:V}=k,[U,Y]=i.get(C)||Ve;if(U&&Y)return{symbol:U,moduleSymbol:Y,moduleFileName:V,exportKind:N,targetFlags:D,isFromPackageJson:M};const j=(M?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ee=k.moduleSymbol||Y||E.checkDefined(k.moduleFile?j.getMergedSymbol(k.moduleFile.symbol):j.tryFindAmbientModule(k.moduleName)),R=k.symbol||U||E.checkDefined(N===2?j.resolveExternalModuleSymbol(ee):j.tryGetMemberInModuleExportsAndProperties(Oi(k.symbolTableKey),ee),`Could not find symbol '${k.symbolName}' by key '${k.symbolTableKey}' in module ${ee.name}`);return i.set(C,[R,ee]),{symbol:R,moduleSymbol:ee,moduleFileName:V,exportKind:N,targetFlags:D,isFromPackageJson:M}}function f(k,C,N,D){const M=N||"";return`${k}|${ya(au(C,D))}|${M}`}function g(k){const C=k.substring(0,k.indexOf("|")),N=k.substring(k.lastIndexOf("|")+1);return{symbolName:C,ambientModuleName:N===""?void 0:N}}function m(k){return!k.commonJsModuleIndicator&&!k.externalModuleIndicator&&!k.moduleAugmentations&&!k.ambientModuleNames}function y(k,C){if(!Cd(k.ambientModuleNames,C.ambientModuleNames))return!1;let N=-1,D=-1;for(const M of C.ambientModuleNames){const V=U=>PW(U)&&U.name.text===M;if(N=qc(k.statements,V,N+1),D=qc(C.statements,V,D+1),k.statements[N]!==C.statements[D])return!1}return!0}function x(k,C){if(!C||!k.moduleFileName)return!0;const N=e.getGlobalTypingsCacheLocation();if(N&&ns(k.moduleFileName,N))return!0;const D=a.get(C);return!D||ns(k.moduleFileName,D)}}function lZ(e,t,r,i,a,o,l){var u;if(t===r)return!1;const f=l==null?void 0:l.get(t.path,r.path,i,{});if((f==null?void 0:f.isBlockedByPackageJsonDependencies)!==void 0)return!f.isBlockedByPackageJsonDependencies;const g=Q0(o),m=(u=o.getGlobalTypingsCacheLocation)==null?void 0:u.call(o),y=!!S2.forEachFileNameOfModule(t.fileName,r.fileName,o,!1,x=>{const k=e.getSourceFile(x);return(k===r||!k)&&JFe(t.fileName,x,g,m)});if(a){const x=y&&a.allowsImportingSourceFile(r,o);return l==null||l.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!x),x}return y}function JFe(e,t,r,i){const a=Vg(t,l=>Jl(l)==="node_modules"?l:void 0),o=a&&Ti(r(a));return o===void 0||ns(r(e),o)||!!i&&ns(r(i),o)}function _Z(e,t,r,i,a){var o,l;const u=yD(t),f=r.autoImportFileExcludePatterns&&Hi(r.autoImportFileExcludePatterns,m=>{const y=$q(m,"","exclude");return y?l1(y,u):void 0});R1e(e.getTypeChecker(),e.getSourceFiles(),f,(m,y)=>a(m,y,e,!1));const g=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(g){const m=Wo(),y=e.getTypeChecker();R1e(g.getTypeChecker(),g.getSourceFiles(),f,(x,k)=>{(k&&!e.getSourceFile(k.fileName)||!k&&!y.resolveName(x.name,void 0,1536,!1))&&a(x,k,g,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Wo()-m}`)}}function R1e(e,t,r,i){var a;const o=r&&(l=>r.some(u=>u.test(l)));for(const l of e.getAmbientModules())!Xl(l.name,"*")&&!(r&&((a=l.declarations)==null?void 0:a.every(u=>o(u.getSourceFile().fileName))))&&i(l,void 0);for(const l of t)Yu(l)&&!(o!=null&&o(l.fileName))&&i(e.getMergedSymbol(l.symbol),l)}function q5(e,t,r,i,a){var o,l,u,f,g;const m=Wo();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);const y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||M1e({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var C;return(C=t.getPackageJsonAutoImportProvider)==null?void 0:C.call(t)},getGlobalTypingsCacheLocation:()=>{var C;return(C=t.getGlobalTypingsCacheLocation)==null?void 0:C.call(t)}});if(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(f=t.log)==null||f.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const x=r.getCompilerOptions();let k=0;try{_Z(r,t,i,!0,(C,N,D,M)=>{++k%100===0&&(a==null||a.throwIfCancellationRequested());const V=new Map,U=D.getTypeChecker(),Y=iR(C,U,x);Y&&B1e(Y.symbol,U)&&y.add(e.path,Y.symbol,Y.exportKind===1?"default":"export=",C,N,Y.exportKind,M,U),U.forEachExportAndPropertyOfModule(C,(j,ee)=>{j!==(Y==null?void 0:Y.symbol)&&B1e(j,U)&&td(V,ee)&&y.add(e.path,j,ee,C,N,0,M,U)})})}catch(C){throw y.clear(),C}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${Wo()-m} ms`),y}function iR(e,t,r){const i=zFe(e,t);if(!i)return;const{symbol:a,exportKind:o}=i,l=sR(a,t,r);return l&&{symbol:a,exportKind:o,...l}}function B1e(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!fD(e)&&!m_e(e)}function zFe(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function sR(e,t,r){const i=F6(e);if(i)return{resolvedSymbol:i,name:i.name};const a=VFe(e);if(a!==void 0)return{resolvedSymbol:e,name:a};if(e.flags&2097152){const o=t.getImmediateAliasedSymbol(e);if(o&&o.parent)return sR(o,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:QM(e,r.target)}}function VFe(e){return e.declarations&&cc(e.declarations,t=>{var r;if(fc(t))return(r=Hr(nl(t.expression),we))==null?void 0:r.text;if(p_(t))return E.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var uZ,fZ,UFe=Rt({"src/services/exportInfoMap.ts"(){Wr(),uZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(uZ||{}),fZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(fZ||{})}});function j1e(){const e=U0(99,!1);function t(i,a,o){return HFe(r(i,a,o),i)}function r(i,a,o){let l=0,u=0;const f=[],{prefix:g,pushTemplate:m}=XFe(a);i=g+i;const y=g.length;m&&f.push(16),e.setText(i);let x=0;const k=[];let C=0;do{l=e.scan(),D6(l)||(N(),u=l);const D=e.getTokenEnd();if(qFe(e.getTokenStart(),D,y,ZFe(l),k),D>=i.length){const M=WFe(e,l,jo(f));M!==void 0&&(x=M)}}while(l!==1);function N(){switch(l){case 44:case 69:!q1e[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&C++;break;case 32:C>0&&C--;break;case 133:case 154:case 150:case 136:case 155:C>0&&!o&&(l=80);break;case 16:f.push(l);break;case 19:f.length>0&&f.push(l);break;case 20:if(f.length>0){const D=jo(f);D===16?(l=e.reScanTemplateToken(!1),l===18?f.pop():E.assertEqual(l,17,"Should have been a template middle.")):(E.assertEqual(D,19,"Should have been an open brace"),f.pop())}break;default:if(!su(l))break;(u===25||su(u)&&su(l)&&!$Fe(u,l))&&(l=80)}}return{endOfLineState:x,spans:k}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function WFe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),a=i.length-1;let o=0;for(;i.charCodeAt(a-o)===92;)o++;return(o&1)===0?void 0:i.charCodeAt(0)===34?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(e1(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return E.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function qFe(e,t,r,i,a){if(i===8)return;e===0&&r>0&&(e+=r);const o=t-e;o>0&&a.push(e-r,o,i)}function HFe(e,t){const r=[],i=e.spans;let a=0;for(let l=0;l=0){const m=u-a;m>0&&r.push({length:m,classification:4})}r.push({length:f,classification:GFe(g)}),a=u+f}const o=t.length-a;return o>0&&r.push({length:o,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function GFe(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function $Fe(e,t){if(!EY(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function XFe(e){switch(e){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.assertNever(e)}}function XFe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function QFe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function YFe(e){if(ru(e))return 3;if(XFe(e)||QFe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Kh(e)?6:2}}function J1e(e,t,r,i,a){return U1e(fZ(e,t,r,i,a))}function z1e(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function fZ(e,t,r,i,a){const o=[];return r.forEachChild(function u(f){if(!(!f||!$I(a,f.pos,f.getFullWidth()))){if(z1e(t,f.kind),we(f)&&!fc(f)&&i.has(f.escapedText)){const g=e.getSymbolAtLocation(f),m=g&&V1e(g,gT(f),e);m&&l(f.getStart(r),f.getEnd(),m)}f.forEachChild(u)}}),{spans:o,endOfLineState:0};function l(u,f,g){const m=f-u;E.assert(m>0,`Classification had non-positive length of ${m}`),o.push(u),o.push(m),o.push(g)}}function V1e(e,t,r){const i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&ZFe(e)?14:void 0:i&2097152?V1e(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function ZFe(e){return dt(e.declarations,t=>Nc(t)&&t0(t)===1)}function KFe(e){switch(e){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 U1e(e){E.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,Z=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,oe=t.text.substr(j,ee),_e=R.exec(oe);if(!_e||!_e[3]||!(_e[3]in G7))return!1;let X=j;y(X,_e[1].length),X+=_e[1].length,f(X,_e[2].length,10),X+=_e[2].length,f(X,_e[3].length,21),X+=_e[3].length;const H=_e[4];let Q=X;for(;;){const ue=Z.exec(H);if(!ue)break;const fe=X+ue.index+ue[1].length;fe>Q&&(y(Q,fe-Q),Q=fe),f(Q,ue[2].length,22),Q+=ue[2].length,ue[3].length&&(y(Q,ue[3].length),Q+=ue[3].length),f(Q,ue[4].length,5),Q+=ue[4].length,ue[5].length&&(y(Q,ue[5].length),Q+=ue[5].length),f(Q,ue[6].length,24),Q+=ue[6].length}X+=_e[4].length,X>Q&&y(Q,X-Q),_e[5]&&(f(X,_e[5].length,10),X+=_e[5].length);const re=j+ee;return X=0),Z>0){const oe=ee||U(j.kind,j);oe&&f(R,Z,oe)}return!0}function V(j){switch(j.parent&&j.parent.kind){case 286:if(j.parent.tagName===j)return 19;break;case 287:if(j.parent.tagName===j)return 20;break;case 285:if(j.parent.tagName===j)return 21;break;case 291:if(j.parent.name===j)return 22;break}}function U(j,ee){if(ru(j))return 3;if((j===30||j===32)&&ee&&$he(ee.parent))return 10;if(cq(j)){if(ee){const R=ee.parent;if(j===64&&(R.kind===260||R.kind===172||R.kind===169||R.kind===291)||R.kind===226||R.kind===224||R.kind===225||R.kind===227)return 5}return 10}else{if(j===9)return 4;if(j===10)return 25;if(j===11)return ee&&ee.parent.kind===291?24:6;if(j===14)return 6;if(Kh(j))return 6;if(j===12)return 23;if(j===80){if(ee){switch(ee.parent.kind){case 263:return ee.parent.name===ee?11:void 0;case 168:return ee.parent.name===ee?15:void 0;case 264:return ee.parent.name===ee?13:void 0;case 266:return ee.parent.name===ee?12:void 0;case 267:return ee.parent.name===ee?14:void 0;case 169:return ee.parent.name===ee?a2(ee)?3:17:void 0}if(Ug(ee.parent))return 3}return 2}}}function Y(j){if(!!j&&XI(i,a,j.pos,j.getFullWidth())){z1e(e,j.kind);for(const ee of j.getChildren(t))M(ee)||Y(ee)}}}var q1e,H1e=Bt({"src/services/classifier.ts"(){Wr(),q1e=ooe([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),aR,eLe=Bt({"src/services/documentHighlights.ts"(){Wr(),(e=>{function t(X,H,Q,re,ue){const fe=af(Q,re);if(fe.parent&&(Jd(fe.parent)&&fe.parent.tagName===fe||m2(fe.parent))){const{openingElement:G,closingElement:Ne}=fe.parent.parent,De=[G,Ne].map(({tagName:Xe})=>r(Xe,Q));return[{fileName:Q.fileName,highlightSpans:De}]}return i(re,fe,X,H,ue)||a(fe,Q)}e.getDocumentHighlights=t;function r(X,H){return{fileName:H.fileName,textSpan:au(X,H),kind:"none"}}function i(X,H,Q,re,ue){const fe=new Set(ue.map(Xe=>Xe.fileName)),G=Oo.getReferenceEntriesForNode(X,H,Q,ue,re,void 0,fe);if(!G)return;const Ne=j7(G.map(Oo.toHighlightSpan),Xe=>Xe.fileName,Xe=>Xe.span),De=Ql(Q.useCaseSensitiveFileNames());return ia(I7(Ne.entries(),([Xe,ve])=>{if(!fe.has(Xe)){if(!Q.redirectTargetsMap.has(yo(Xe,Q.getCurrentDirectory(),De)))return;const be=Q.getSourceFile(Xe);Xe=Fr(ue,rt=>!!rt.redirectInfo&&rt.redirectInfo.redirectTarget===be).fileName,E.assert(fe.has(Xe))}return{fileName:Xe,highlightSpans:ve}}))}function a(X,H){const Q=o(X,H);return Q&&[{fileName:H.fileName,highlightSpans:Q}]}function o(X,H){switch(X.kind){case 101:case 93:return Zb(X.parent)?Z(X.parent,H):void 0;case 107:return re(X.parent,nd,Y);case 111:return re(X.parent,eG,U);case 113:case 85:case 98:const fe=X.kind===85?X.parent.parent:X.parent;return re(fe,d2,V);case 109:return re(X.parent,oA,M);case 84:case 90:return lA(X.parent)||e4(X.parent)?re(X.parent.parent.parent,oA,M):void 0;case 83:case 88:return re(X.parent,HC,D);case 99:case 117:case 92:return re(X.parent,G=>t1(G,!0),N);case 137:return Q(wc,[137]);case 139:case 153:return Q(e1,[139,153]);case 135:return re(X.parent,f1,j);case 134:return ue(j(X));case 127:return ue(ee(X));case 103:return;default:return W0(X.kind)&&(l_(X.parent)||ic(X.parent))?ue(x(X.kind,X.parent)):void 0}function Q(fe,G){return re(X.parent,fe,Ne=>{var De;return qi((De=Hr(Ne,Nd))==null?void 0:De.symbol.declarations,Xe=>fe(Xe)?Fr(Xe.getChildren(H),ve=>gs(G,ve.kind)):void 0)})}function re(fe,G,Ne){return G(fe)?ue(Ne(fe,H)):void 0}function ue(fe){return fe&&fe.map(G=>r(G,H))}}function l(X){return eG(X)?[X]:d2(X)?Ki(X.catchClause?l(X.catchClause):X.tryBlock&&l(X.tryBlock),X.finallyBlock&&l(X.finallyBlock)):ks(X)?void 0:g(X,l)}function u(X){let H=X;for(;H.parent;){const Q=H.parent;if(e2(Q)||Q.kind===312)return Q;if(d2(Q)&&Q.tryBlock===H&&Q.catchClause)return H;H=Q}}function f(X){return HC(X)?[X]:ks(X)?void 0:g(X,f)}function g(X,H){const Q=[];return X.forEachChild(re=>{const ue=H(re);ue!==void 0&&Q.push(...J7(ue))}),Q}function m(X,H){const Q=y(H);return!!Q&&Q===X}function y(X){return On(X,H=>{switch(H.kind){case 255:if(X.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!X.label||_e(H,X.label.escapedText);default:return ks(H)&&"quit"}})}function x(X,H){return qi(k(H,Gx(X)),Q=>C4(Q,X))}function k(X,H){const Q=X.parent;switch(Q.kind){case 268:case 312:case 241:case 296:case 297:return H&256&&Qc(X)?[...X.members,X]:Q.statements;case 176:case 174:case 262:return[...Q.parameters,...ei(Q.parent)?Q.parent.members:[]];case 263:case 231:case 264:case 187:const re=Q.members;if(H&92){const ue=Fr(Q.members,wc);if(ue)return[...re,...ue.parameters]}else if(H&256)return[...re,Q];return re;case 210:return;default:E.assertNever(Q,"Invalid container kind.")}}function C(X,H,...Q){return H&&gs(Q,H.kind)?(X.push(H),!0):!1}function N(X){const H=[];if(C(H,X.getFirstToken(),99,117,92)&&X.kind===246){const Q=X.getChildren();for(let re=Q.length-1;re>=0&&!C(H,Q[re],117);re--);}return mn(f(X.statement),Q=>{m(X,Q)&&C(H,Q.getFirstToken(),83,88)}),H}function D(X){const H=y(X);if(H)switch(H.kind){case 248:case 249:case 250:case 246:case 247:return N(H);case 255:return M(H)}}function M(X){const H=[];return C(H,X.getFirstToken(),109),mn(X.caseBlock.clauses,Q=>{C(H,Q.getFirstToken(),84,90),mn(f(Q),re=>{m(X,re)&&C(H,re.getFirstToken(),83)})}),H}function V(X,H){const Q=[];if(C(Q,X.getFirstToken(),113),X.catchClause&&C(Q,X.catchClause.getFirstToken(),85),X.finallyBlock){const re=$a(X,98,H);C(Q,re,98)}return Q}function U(X,H){const Q=u(X);if(!Q)return;const re=[];return mn(l(Q),ue=>{re.push($a(ue,111,H))}),e2(Q)&&Kv(Q,ue=>{re.push($a(ue,107,H))}),re}function Y(X,H){const Q=df(X);if(!Q)return;const re=[];return Kv(Ms(Q.body,hs),ue=>{re.push($a(ue,107,H))}),mn(l(Q.body),ue=>{re.push($a(ue,111,H))}),re}function j(X){const H=df(X);if(!H)return;const Q=[];return H.modifiers&&H.modifiers.forEach(re=>{C(Q,re,134)}),ys(H,re=>{R(re,ue=>{f1(ue)&&C(Q,ue.getFirstToken(),135)})}),Q}function ee(X){const H=df(X);if(!H)return;const Q=[];return ys(H,re=>{R(re,ue=>{yF(ue)&&C(Q,ue.getFirstToken(),127)})}),Q}function R(X,H){H(X),!ks(X)&&!ei(X)&&!f_(X)&&!Nc(X)&&!wp(X)&&!Di(X)&&ys(X,Q=>R(Q,H))}function Z(X,H){const Q=oe(X,H),re=[];for(let ue=0;ue=fe.end;De--)if(!Ad(H.text.charCodeAt(De))){Ne=!1;break}if(Ne){re.push({fileName:H.fileName,textSpan:ll(fe.getStart(),G.end),kind:"reference"}),ue++;continue}}re.push(r(Q[ue],H))}return re}function oe(X,H){const Q=[];for(;Zb(X.parent)&&X.parent.elseStatement===X;)X=X.parent;for(;;){const re=X.getChildren(H);C(Q,re[0],101);for(let ue=re.length-1;ue>=0&&!C(Q,re[ue],93);ue--);if(!X.elseStatement||!Zb(X.elseStatement))break;X=X.elseStatement}return Q}function _e(X,H){return!!On(X.parent,Q=>p2(Q)?Q.label.escapedText===H:"quit")}})(aR||(aR={}))}});function q5(e){return!!e.sourceFile}function dZ(e,t){return G1e(e,t)}function G1e(e,t="",r){const i=new Map,a=Ql(!!e);function o(){const N=ia(i.keys()).filter(D=>D&&D.charAt(0)==="_").map(D=>{const M=i.get(D),V=[];return M.forEach((U,Y)=>{q5(U)?V.push({name:Y,scriptKind:U.sourceFile.scriptKind,refCount:U.languageServiceRefCount}):U.forEach((j,ee)=>V.push({name:Y,scriptKind:ee,refCount:j.languageServiceRefCount}))}),V.sort((U,Y)=>Y.refCount-U.refCount),{bucket:D,sourceFiles:V}});return JSON.stringify(N,void 0,2)}function l(N){return typeof N.getCompilationSettings=="function"?N.getCompilationSettings():N}function u(N,D,M,V,U,Y){const j=yo(N,t,a),ee=oR(l(D));return f(N,j,D,ee,M,V,U,Y)}function f(N,D,M,V,U,Y,j,ee){return x(N,D,M,V,U,Y,!0,j,ee)}function g(N,D,M,V,U,Y){const j=yo(N,t,a),ee=oR(l(D));return m(N,j,D,ee,M,V,U,Y)}function m(N,D,M,V,U,Y,j,ee){return x(N,D,l(M),V,U,Y,!1,j,ee)}function y(N,D){const M=q5(N)?N:N.get(E.checkDefined(D,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return E.assert(D===void 0||!M||M.sourceFile.scriptKind===D,`Script kind should match provided ScriptKind:${D} and sourceFile.scriptKind: ${M==null?void 0:M.sourceFile.scriptKind}, !entry: ${!M}`),M}function x(N,D,M,V,U,Y,j,ee,R){var Z,oe,_e,X;ee=TO(N,ee);const H=l(M),Q=M===H?void 0:M,re=ee===6?100:Oa(H),ue=typeof R=="object"?R:{languageVersion:re,impliedNodeFormat:Q&&_5(D,(X=(_e=(oe=(Z=Q.getCompilerHost)==null?void 0:Z.call(Q))==null?void 0:oe.getModuleResolutionCache)==null?void 0:_e.call(oe))==null?void 0:X.getPackageJsonInfoCache(),Q,H),setExternalModuleIndicator:wD(H)};ue.languageVersion=re;const fe=i.size,G=mZ(V,ue.impliedNodeFormat),Ne=O7(i,G,()=>new Map);if(ci){i.size>fe&&ci.instant(ci.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:H.configFilePath,key:G});const be=!su(D)&&Au(i,(xe,rt)=>rt!==G&&xe.has(D)&&rt);be&&ci.instant(ci.Phase.Session,"documentRegistryBucketOverlap",{path:D,key1:be,key2:G})}const De=Ne.get(D);let Xe=De&&y(De,ee);if(!Xe&&r){const be=r.getDocument(G,D);be&&(E.assert(j),Xe={sourceFile:be,languageServiceRefCount:0},ve())}if(Xe)Xe.sourceFile.version!==Y&&(Xe.sourceFile=wK(Xe.sourceFile,U,Y,U.getChangeRange(Xe.sourceFile.scriptSnapshot)),r&&r.setDocument(G,D,Xe.sourceFile)),j&&Xe.languageServiceRefCount++;else{const be=WR(N,U,ue,Y,!1,ee);r&&r.setDocument(G,D,be),Xe={sourceFile:be,languageServiceRefCount:1},ve()}return E.assert(Xe.languageServiceRefCount!==0),Xe.sourceFile;function ve(){if(!De)Ne.set(D,Xe);else if(q5(De)){const be=new Map;be.set(De.sourceFile.scriptKind,De),be.set(ee,Xe),Ne.set(D,be)}else De.set(ee,Xe)}}function k(N,D,M,V){const U=yo(N,t,a),Y=oR(D);return C(U,Y,M,V)}function C(N,D,M,V){const U=E.checkDefined(i.get(mZ(D,V))),Y=U.get(N),j=y(Y,M);j.languageServiceRefCount--,E.assert(j.languageServiceRefCount>=0),j.languageServiceRefCount===0&&(q5(Y)?U.delete(N):(Y.delete(M),Y.size===1&&U.set(N,A7(Y.values(),Zo))))}return{acquireDocument:u,acquireDocumentWithKey:f,updateDocument:g,updateDocumentWithKey:m,releaseDocument:k,releaseDocumentWithKey:C,getKeyForCompilationSettings:oR,getDocumentRegistryBucketKeyWithMode:mZ,reportStats:o,getBuckets:()=>i}}function oR(e){return c$(e,GF)}function mZ(e,t){return t?`${e}|${t}`:e}var tLe=Bt({"src/services/documentRegistry.ts"(){Wr()}});function $1e(e,t,r,i,a,o,l){const u=hD(i),f=Ql(u),g=gZ(t,r,f,l),m=gZ(r,t,f,l);return er.ChangeTracker.with({host:i,formatContext:a,preferences:o},y=>{rLe(e,y,g,t,r,i.getCurrentDirectory(),u),iLe(e,y,g,m,i,f)})}function gZ(e,t,r,i){const a=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),f=o(u?u.fileName:l);return u?f===void 0?void 0:nLe(u.fileName,f,l,r):f};function o(l){if(r(l)===a)return t;const u=qq(l,a,r);return u===void 0?void 0:t+"/"+u}}function nLe(e,t,r,i){const a=iw(e,t,i);return hZ(bi(r),a)}function rLe(e,t,r,i,a,o,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const f=bi(u.fileName),g=r3(u);if(!g)return;yZ(g,(k,C)=>{switch(C){case"files":case"include":case"exclude":{if(m(k)||C!=="include"||!u_(k.initializer))return;const D=qi(k.initializer.elements,V=>pa(V)?V.text:void 0);if(D.length===0)return;const M=O3(f,[],D,l,o);c1(E.checkDefined(M.includeFilePattern),l).test(i)&&!c1(E.checkDefined(M.includeFilePattern),l).test(a)&&t.insertNodeAfter(u,ka(k.initializer.elements),I.createStringLiteral(x(a)));return}case"compilerOptions":yZ(k.initializer,(N,D)=>{const M=PG(D);E.assert((M==null?void 0:M.type)!=="listOrElement"),M&&(M.isFilePath||M.type==="list"&&M.element.isFilePath)?m(N):D==="paths"&&yZ(N.initializer,V=>{if(!!u_(V.initializer))for(const U of V.initializer.elements)y(U)})});return}});function m(k){const C=u_(k.initializer)?k.initializer.elements:[k.initializer];let N=!1;for(const D of C)N=y(D)||N;return N}function y(k){if(!pa(k))return!1;const C=hZ(f,k.text),N=r(C);return N!==void 0?(t.replaceRangeWithText(u,Q1e(k,u),x(N)),!0):!1}function x(k){return um(f,k,!l)}}function iLe(e,t,r,i,a,o){const l=e.getSourceFiles();for(const u of l){const f=r(u.fileName),g=f!=null?f:u.fileName,m=bi(g),y=i(u.fileName),x=y||u.fileName,k=bi(x),C=f!==void 0||y!==void 0;oLe(u,t,N=>{if(!$u(N))return;const D=hZ(k,N),M=r(D);return M===void 0?void 0:Vv(um(m,M,o))},N=>{const D=e.getTypeChecker().getSymbolAtLocation(N);if((D==null?void 0:D.declarations)&&D.declarations.some(V=>__(V)))return;const M=y!==void 0?X1e(N,v8(N.text,x,e.getCompilerOptions(),a),r,l):aLe(D,N,u,e,a,r);return M!==void 0&&(M.updated||C&&$u(N.text))?T2.updateModuleSpecifier(e.getCompilerOptions(),u,o(g),M.newFileName,bT(e,a),N.text):void 0})}}function sLe(e,t){return ba(Pi(e,t))}function hZ(e,t){return Vv(sLe(e,t))}function aLe(e,t,r,i,a,o){var l;if(e){const u=Fr(e.declarations,Ri).fileName,f=o(u);return f===void 0?{newFileName:u,updated:!1}:{newFileName:f,updated:!0}}else{const u=op(r,t),f=a.resolveModuleNameLiterals||!a.resolveModuleNames?(l=r.resolvedModules)==null?void 0:l.get(t.text,u):a.getResolvedModuleWithFailedLookupLocationsFromCache&&a.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,u);return X1e(t,f,o,i.getSourceFiles())}}function X1e(e,t,r,i){if(!t)return;if(t.resolvedModule){const f=u(t.resolvedModule.resolvedFileName);if(f)return f}const a=mn(t.failedLookupLocations,o)||$u(e.text)&&mn(t.failedLookupLocations,l);if(a)return a;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(f){const g=r(f);return g&&Fr(i,m=>m.fileName===g)?l(f):void 0}function l(f){return Tc(f,"/package.json")?void 0:u(f)}function u(f){const g=r(f);return g&&{newFileName:g,updated:!0}}}function oLe(e,t,r,i){for(const a of e.referencedFiles||Ve){const o=r(a.fileName);o!==void 0&&o!==e.text.slice(a.pos,a.end)&&t.replaceRangeWithText(e,a,o)}for(const a of e.imports){const o=i(a);o!==void 0&&o!==a.text&&t.replaceRangeWithText(e,Q1e(a,e),o)}}function Q1e(e,t){return ep(e.getStart(t)+1,e.end-1)}function yZ(e,t){if(!!ha(e))for(const r of e.properties)Dc(r)&&pa(r.name)&&t(r,r.name.text)}var cLe=Bt({"src/services/getEditsForFileRename.ts"(){Wr()}});function H5(e,t){return{kind:e,isCaseSensitive:t}}function Y1e(e){const t=new Map,r=e.trim().split(".").map(i=>fLe(i.trim()));if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,a)=>lLe(i,a,r,t),getMatchForLastSegmentOfPattern:i=>vZ(i,ka(r),t),patternContainsDots:r.length>1}}function lLe(e,t,r,i){if(!vZ(t,ka(r),i)||r.length-1>e.length)return;let o;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)o=eye(o,vZ(e[u],r[l],i));return o}function Z1e(e,t){let r=t.get(e);return r||t.set(e,r=iye(e)),r}function K1e(e,t,r){const i=pLe(e,t.textLowerCase);if(i===0)return H5(t.text.length===e.length?0:1,ts(e,t.text));if(t.isLowerCase){if(i===-1)return;const a=Z1e(e,r);for(const o of a)if(bZ(e,o,t.text,!0))return H5(2,bZ(e,o,t.text,!1));if(t.text.length0)return H5(2,!0);if(t.characterSpans.length>0){const a=Z1e(e,r),o=tye(e,a,t,!1)?!0:tye(e,a,t,!0)?!1:void 0;if(o!==void 0)return H5(3,o)}}}function vZ(e,t,r){if(cR(t.totalTextChunk.text,o=>o!==32&&o!==42)){const o=K1e(e,t.totalTextChunk,r);if(o)return o}const i=t.subWordTextChunks;let a;for(const o of i)a=eye(a,K1e(e,o,r));return a}function eye(e,t){return dV([e,t],_Le)}function _Le(e,t){return e===void 0?1:t===void 0?-1:Co(e.kind,t.kind)||Rv(!e.isCaseSensitive,!t.isCaseSensitive)}function bZ(e,t,r,i,a={start:0,length:r.length}){return a.length<=t.length&&oye(0,a.length,o=>uLe(r.charCodeAt(a.start+o),e.charCodeAt(t.start+o),i))}function uLe(e,t,r){return r?TZ(e)===TZ(t):e===t}function tye(e,t,r,i){const a=r.characterSpans;let o=0,l=0;for(;;){if(l===a.length)return!0;if(o===t.length)return!1;let u=t[o],f=!1;for(;l=65&&e<=90)return!0;if(e<127||!VI(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function nye(e){if(e>=97&&e<=122)return!0;if(e<127||!VI(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function pLe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(cR(t,(a,o)=>TZ(e.charCodeAt(o+i))===a))return i;return-1}function TZ(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function xZ(e){return e>=48&&e<=57}function dLe(e){return OS(e)||nye(e)||xZ(e)||e===95||e===36}function mLe(e){const t=[];let r=0,i=0;for(let a=0;a0&&(t.push(SZ(e.substr(r,i))),i=0)}return i>0&&t.push(SZ(e.substr(r,i))),t}function SZ(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:rye(e)}}function rye(e){return sye(e,!1)}function iye(e){return sye(e,!0)}function sye(e,t){const r=[];let i=0;for(let a=1;akZ(i)&&i!==95,t,r)}function gLe(e,t,r){return t!==r&&t+1t(e.charCodeAt(a),a))}var lR,yLe=Bt({"src/services/patternMatcher.ts"(){Wr(),lR=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(lR||{})}});function cye(e,t=!0,r=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},a=[];let o,l,u,f=0,g=!1;function m(){return l=u,u=g_.scan(),u===19?f++:u===20&&f--,u}function y(){const j=g_.getTokenValue(),ee=g_.getTokenStart();return{fileName:j,pos:ee,end:ee+j.length}}function x(){o||(o=[]),o.push({ref:y(),depth:f})}function k(){a.push(y()),C()}function C(){f===0&&(g=!0)}function N(){let j=g_.getToken();return j===138?(j=m(),j===144&&(j=m(),j===11&&x()),!0):!1}function D(){if(l===25)return!1;let j=g_.getToken();if(j===102){if(j=m(),j===21){if(j=m(),j===11||j===15)return k(),!0}else{if(j===11)return k(),!0;if(j===156&&g_.lookAhead(()=>{const R=g_.scan();return R!==161&&(R===42||R===19||R===80||ru(R))})&&(j=m()),j===80||ru(j))if(j=m(),j===161){if(j=m(),j===11)return k(),!0}else if(j===64){if(V(!0))return!0}else if(j===28)j=m();else return!0;if(j===19){for(j=m();j!==20&&j!==1;)j=m();j===20&&(j=m(),j===161&&(j=m(),j===11&&k()))}else j===42&&(j=m(),j===130&&(j=m(),(j===80||ru(j))&&(j=m(),j===161&&(j=m(),j===11&&k()))))}return!0}return!1}function M(){let j=g_.getToken();if(j===95){if(C(),j=m(),j===156&&g_.lookAhead(()=>{const R=g_.scan();return R===42||R===19})&&(j=m()),j===19){for(j=m();j!==20&&j!==1;)j=m();j===20&&(j=m(),j===161&&(j=m(),j===11&&k()))}else if(j===42)j=m(),j===161&&(j=m(),j===11&&k());else if(j===102&&(j=m(),j===156&&g_.lookAhead(()=>{const R=g_.scan();return R===80||ru(R)})&&(j=m()),(j===80||ru(j))&&(j=m(),j===64&&V(!0))))return!0;return!0}return!1}function V(j,ee=!1){let R=j?m():g_.getToken();return R===149?(R=m(),R===21&&(R=m(),(R===11||ee&&R===15)&&k()),!0):!1}function U(){let j=g_.getToken();if(j===80&&g_.getTokenValue()==="define"){if(j=m(),j!==21)return!0;if(j=m(),j===11||j===15)if(j=m(),j===28)j=m();else return!0;if(j!==23)return!0;for(j=m();j!==24&&j!==1;)(j===11||j===15)&&k(),j=m();return!0}return!1}function Y(){for(g_.setText(e),m();g_.getToken()!==1;){if(g_.getToken()===16){const j=[g_.getToken()];e:for(;Pn(j);){const ee=g_.scan();switch(ee){case 1:break e;case 102:D();break;case 16:j.push(ee);break;case 19:Pn(j)&&j.push(ee);break;case 20:Pn(j)&&(Bo(j)===16?g_.reScanTemplateToken(!1)===18&&j.pop():j.pop());break}}m()}N()||D()||M()||r&&(V(!1,!0)||U())||m()}g_.setText(void 0)}if(t&&Y(),EG(i,e),wG(i,_o),g){if(o)for(const j of o)a.push(j.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:a,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let j;if(o)for(const ee of o)ee.depth===0?(j||(j=[]),j.push(ee.ref.fileName)):a.push(ee.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:a,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:j}}}var vLe=Bt({"src/services/preProcess.ts"(){Wr()}});function lye(e){const t=Ql(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,a=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:f,toLineColumnOffset:x,clearCache:k};function o(C){return yo(C,r,t)}function l(C,N){const D=o(C),M=a.get(D);if(M)return M;let V;if(e.getDocumentPositionMapper)V=e.getDocumentPositionMapper(C,N);else if(e.readFile){const U=y(C);V=U&&_ye({getSourceFileLike:y,getCanonicalFileName:t,log:Y=>e.log(Y)},C,Ome(U.text,zg(U)),Y=>!e.fileExists||e.fileExists(Y)?e.readFile(Y):void 0)}return a.set(D,V||EL),V||EL}function u(C){if(!su(C.fileName)||!g(C.fileName))return;const D=l(C.fileName).getSourcePosition(C);return!D||D===C?void 0:u(D)||D}function f(C){if(su(C.fileName))return;const N=g(C.fileName);if(!N)return;const D=e.getProgram();if(D.isSourceOfProjectReferenceRedirect(N.fileName))return;const M=D.getCompilerOptions(),V=Ao(M),U=V?mu(V)+".d.ts":bq(C.fileName,D.getCompilerOptions(),r,D.getCommonSourceDirectory(),t);if(U===void 0)return;const Y=l(U,C.fileName).getGeneratedPosition(C);return Y===C?void 0:Y}function g(C){const N=e.getProgram();if(!N)return;const D=o(C),M=N.getSourceFileByPath(D);return M&&M.resolvedPath===D?M:void 0}function m(C){const N=o(C),D=i.get(N);if(D!==void 0)return D||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(N)){i.set(N,!1);return}const M=e.readFile(N),V=M?bLe(M):!1;return i.set(N,V),V||void 0}function y(C){return e.getSourceFileLike?e.getSourceFileLike(C):g(C)||m(C)}function x(C,N){return y(C).getLineAndCharacterOfPosition(N)}function k(){i.clear(),a.clear()}}function _ye(e,t,r,i){let a=Fme(r);if(a){const u=fye.exec(a);if(u){if(u[1]){const f=u[1];return uye(e,q_e(jl,f),t)}a=void 0}}const o=[];a&&o.push(a),o.push(t+".map");const l=a&&fs(a,bi(t));for(const u of o){const f=fs(u,bi(t)),g=i(f,l);if($s(g))return uye(e,g,f);if(g!==void 0)return g||void 0}}function uye(e,t,r){const i=M$(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some($s)))return jme(e,i,r)}function bLe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return lw(zg(this),r)}}}var fye,TLe=Bt({"src/services/sourcemaps.ts"(){Wr(),fye=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function CZ(e,t,r){t.getSemanticDiagnostics(e,r);const i=[],a=t.getTypeChecker();!(e.impliedNodeFormat===1||Gc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(n1e(t)||PY(t.getCompilerOptions()))&&xLe(e)&&i.push(yr(ELe(e.commonJsModuleIndicator),p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const l=P_(e);if(uR.clear(),u(e),Qx(t.getCompilerOptions()))for(const f of e.imports){const g=Kw(f),m=SLe(g);if(!m)continue;const y=Ox(e,f.text,op(e,f)),x=y&&t.getSourceFile(y.resolvedFileName);x&&x.externalModuleIndicator&&x.externalModuleIndicator!==!0&&dc(x.externalModuleIndicator)&&x.externalModuleIndicator.isExportEquals&&i.push(yr(m,p.Import_may_be_converted_to_a_default_import))}return Lr(i,e.bindSuggestionDiagnostics),Lr(i,t.getSuggestionDiagnostics(e,r)),i.sort((f,g)=>f.start-g.start);function u(f){if(l)DLe(f,a)&&i.push(yr(Mi(f.parent)?f.parent.name:f,p.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(ic(f)&&f.parent===e&&f.declarationList.flags&2&&f.declarationList.declarations.length===1){const m=f.declarationList.declarations[0].initializer;m&&du(m,!0)&&i.push(yr(m,p.require_call_may_be_converted_to_an_import))}const g=n_.getJSDocTypedefNodes(f);for(const m of g)i.push(yr(m,p.JSDoc_typedef_may_be_converted_to_TypeScript_type));n_.parameterShouldGetTypeFromJSDoc(f)&&i.push(yr(f.name||f,p.JSDoc_types_may_be_moved_to_TypeScript_types))}DZ(f)&&kLe(f,a,i),f.forEachChild(u)}}function xLe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&du(pye(r.initializer),!0));case 244:{const{expression:r}=t;if(!rr(r))return du(r,!0);const i=pc(r);return i===1||i===2}default:return!1}})}function pye(e){return kr(e)?pye(e.expression):e}function SLe(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&pa(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function kLe(e,t,r){CLe(e,t)&&!uR.has(hye(e))&&r.push(yr(!e.name&&Mi(e.parent)&&we(e.parent.name)?e.parent.name:e,p.This_may_be_converted_to_an_async_function))}function CLe(e,t){return!w6(e)&&e.body&&hs(e.body)&&wLe(e.body,t)&&EZ(e,t)}function EZ(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function ELe(e){return rr(e)?e.left:e}function wLe(e,t){return!!Kv(e,r=>_R(r,t))}function _R(e,t){return nd(e)&&!!e.expression&&wZ(e.expression,t)}function wZ(e,t){if(!dye(e)||!mye(e)||!e.arguments.every(i=>gye(i,t)))return!1;let r=e.expression.expression;for(;dye(r)||kr(r);)if(js(r)){if(!mye(r)||!r.arguments.every(i=>gye(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function dye(e){return js(e)&&(x5(e,"then")||x5(e,"catch")||x5(e,"finally"))}function mye(e){const t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengthi.kind===106||we(i)&&i.text==="undefined")}function gye(e,t){switch(e.kind){case 262:case 218:if(Il(e)&1)return!1;case 219:uR.set(hye(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||dt(iu(i,t).declarations,a=>ks(a)||r1(a)&&!!a.initializer&&ks(a.initializer)):!1}default:return!1}}function hye(e){return`${e.pos.toString()}:${e.end.toString()}`}function DLe(e,t){var r,i,a,o;if(fo(e)){if(Mi(e.parent)&&((r=e.symbol.members)==null?void 0:r.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&(((i=l.exports)==null?void 0:i.size)||((a=l.members)==null?void 0:a.size)))}return tl(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function DZ(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var uR,ALe=Bt({"src/services/suggestionDiagnostics.ts"(){Wr(),uR=new Map}});function yye(e,t){const r=[],i=t.compilerOptions?AZ(t.compilerOptions,r):{},a=UR();for(const x in a)lo(a,x)&&i[x]===void 0&&(i[x]=a[x]);for(const x of YG)i.verbatimModuleSyntax&&vye.has(x.name)||(i[x.name]=x.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const o=Z0(i),l={getSourceFile:x=>x===ba(u)?f:void 0,writeFile:(x,k)=>{Hc(x,".map")?(E.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",x),m=k):(E.assertEqual(g,void 0,"Unexpected multiple outputs, file:",x),g=k)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:x=>x,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:x=>x===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),f=xA(u,e,{languageVersion:Oa(i),impliedNodeFormat:_5(yo(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:wD(i)});t.moduleName&&(f.moduleName=t.moduleName),t.renamedDependencies&&(f.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let g,m;const y=HL([u],i,l);return t.reportDiagnostics&&(Lr(r,y.getSyntacticDiagnostics(f)),Lr(r,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),g===void 0?E.fail("Output generation failed"):{outputText:g,diagnostics:r,sourceMapText:m}}function NLe(e,t,r,i,a){const o=yye(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:a});return Lr(i,o.diagnostics),o.outputText}function AZ(e,t){NZ=NZ||Vr(Kg,r=>typeof r.type=="object"&&!Au(r.type,i=>typeof i!="number")),e=Yhe(e);for(const r of NZ){if(!lo(e,r.name))continue;const i=e[r.name];$s(i)?e[r.name]=jF(r,i,t):Au(r.type,a=>a===i)||t.push(Bpe(r))}return e}var vye,NZ,PLe=Bt({"src/services/transpile.ts"(){Wr(),vye=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function bye(e,t,r,i,a,o){const l=Y1e(i);if(!l)return Ve;const u=[];for(const f of e)r.throwIfCancellationRequested(),!(o&&f.isDeclarationFile)&&f.getNamedDeclarations().forEach((g,m)=>{ILe(l,m,g,t,f.fileName,u)});return u.sort(MLe),(a===void 0?u:u.slice(0,a)).map(RLe)}function ILe(e,t,r,i,a,o){const l=e.getMatchForLastSegmentOfPattern(t);if(!!l){for(const u of r)if(!!OLe(u,i))if(e.patternContainsDots){const f=e.getFullMatch(LLe(u),t);f&&o.push({name:t,fileName:a,matchKind:f.kind,isCaseSensitive:f.isCaseSensitive,declaration:u})}else o.push({name:t,fileName:a,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:u})}}function OLe(e,t){switch(e.kind){case 273:case 276:case 271:const r=t.getSymbolAtLocation(e.name),i=t.getAliasedSymbol(r);return r.escapedName!==i.escapedName;default:return!0}}function FLe(e,t){const r=os(e);return!!r&&(Tye(r,t)||r.kind===167&&PZ(r.expression,t))}function PZ(e,t){return Tye(e,t)||kr(e)&&(t.push(e.name.text),!0)&&PZ(e.expression,t)}function Tye(e,t){return Od(e)&&(t.push(kp(e)),!0)}function LLe(e){const t=[],r=os(e);if(r&&r.kind===167&&!PZ(r.expression,t))return Ve;t.shift();let i=hT(e);for(;i;){if(!FLe(i,t))return Ve;i=hT(i)}return t.reverse()}function MLe(e,t){return Co(e.matchKind,t.matchKind)||z7(e.name,t.name)}function RLe(e){const t=e.declaration,r=hT(t),i=r&&os(r);return{name:e.name,kind:w2(t),kindModifiers:j8(t),matchKind:lR[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:au(t),containerName:i?i.text:"",containerKind:i?w2(r):""}}var BLe=Bt({"src/services/navigateTo.ts"(){Wr()}}),xye={};C_(xye,{getNavigateToItems:()=>bye});var Sye=Bt({"src/services/_namespaces/ts.NavigateTo.ts"(){BLe()}});function kye(e,t){mR=t,X8=e;try{return an(ULe(Dye(e)),WLe)}finally{Eye()}}function Cye(e,t){mR=t,X8=e;try{return Rye(Dye(e))}finally{Eye()}}function Eye(){X8=void 0,mR=void 0,Q8=[],i0=void 0,gR=[]}function G5(e){return A4(e.getText(X8))}function fR(e){return e.node.kind}function wye(e,t){e.children?e.children.push(t):e.children=[t]}function Dye(e){E.assert(!Q8.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};i0=t;for(const r of e.statements)kT(r);return x1(),E.assert(!i0&&!Q8.length),t}function Ry(e,t){wye(i0,IZ(e,t))}function IZ(e,t){return{node:e,name:t||(l_(e)||nt(e)?os(e):void 0),additionalNodes:void 0,parent:i0,children:void 0,indent:i0.indent+1}}function Aye(e){FS||(FS=new Map),FS.set(e,!0)}function Nye(e){for(let t=0;t0;i--){const a=r[i];By(e,a)}return[r.length-1,r[0]]}function By(e,t){const r=IZ(e,t);wye(i0,r),Q8.push(i0),JZ.push(FS),FS=void 0,i0=r}function x1(){i0.children&&(pR(i0.children,i0),LZ(i0.children)),i0=Q8.pop(),FS=JZ.pop()}function S1(e,t,r){By(e,r),kT(t),x1()}function Iye(e){e.initializer&&HLe(e.initializer)?(By(e),ys(e.initializer,kT),x1()):S1(e,e.initializer)}function OZ(e){return!$0(e)||e.kind!==226&&kr(e.name.expression)&&we(e.name.expression.expression)&&lr(e.name.expression.expression)==="Symbol"}function kT(e){if(mR.throwIfCancellationRequested(),!(!e||Dx(e)))switch(e.kind){case 176:const t=e;S1(t,t.body);for(const l of t.parameters)Du(l,t)&&Ry(l);break;case 174:case 177:case 178:case 173:OZ(e)&&S1(e,e.body);break;case 172:OZ(e)&&Iye(e);break;case 171:OZ(e)&&Ry(e);break;case 273:const r=e;r.name&&Ry(r.name);const{namedBindings:i}=r;if(i)if(i.kind===274)Ry(i);else for(const l of i.elements)Ry(l);break;case 304:S1(e,e.name);break;case 305:const{expression:a}=e;we(a)?Ry(e,a):Ry(e);break;case 208:case 303:case 260:{const l=e;Ns(l.name)?kT(l.name):Iye(l);break}case 262:const o=e.name;o&&we(o)&&Aye(o.text),S1(e,e.body);break;case 219:case 218:S1(e,e.body);break;case 266:By(e);for(const l of e.members)qLe(l)||Ry(l);x1();break;case 263:case 231:case 264:By(e);for(const l of e.members)kT(l);x1();break;case 267:S1(e,jye(e).body);break;case 277:{const l=e.expression,u=ha(l)||js(l)?l:Po(l)||fo(l)?l.body:void 0;u?(By(e),kT(u),x1()):Ry(e);break}case 281:case 271:case 181:case 179:case 180:case 265:Ry(e);break;case 213:case 226:{const l=pc(e);switch(l){case 1:case 2:S1(e,e.right);return;case 6:case 3:{const u=e,f=u.left,g=l===3?f.expression:f;let m=0,y;we(g.expression)?(Aye(g.expression.text),y=g.expression):[m,y]=Pye(u,g.expression),l===6?ha(u.right)&&u.right.properties.length>0&&(By(u,y),ys(u.right,kT),x1()):fo(u.right)||Po(u.right)?S1(e,u.right,y):(By(u,y),S1(e,u.right,f.name),x1()),Nye(m);return}case 7:case 9:{const u=e,f=l===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[m,y]=Pye(e,f);By(e,y),By(e,Ke(I.createIdentifier(g.text),g)),kT(e.arguments[2]),x1(),x1(),Nye(m);return}case 5:{const u=e,f=u.left,g=f.expression;if(we(g)&&Hg(f)!=="prototype"&&FS&&FS.has(g.text)){fo(u.right)||Po(u.right)?S1(e,u.right,g):Bb(f)&&(By(u,g),S1(u.left,u.right,Xw(f)),x1());return}break}case 4:case 0:case 8:break;default:E.assertNever(l)}}default:Qu(e)&&mn(e.jsDoc,l=>{mn(l.tags,u=>{Zf(u)&&Ry(u)})}),ys(e,kT)}}function pR(e,t){const r=new Map;eV(e,(i,a)=>{const o=i.name||os(i.node),l=o&&G5(o);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const f of u)if(Oye(f,i,a,t))return!1;return u.push(i),!0}else{const f=u;return Oye(f,i,a,t)?!1:(r.set(l,[f,i]),!0)}})}function jLe(e,t,r,i){function a(u){return fo(u)||tl(u)||Mi(u)}const o=rr(t.node)||js(t.node)?pc(t.node):0,l=rr(e.node)||js(e.node)?pc(e.node):0;if(N4[o]&&N4[l]||a(e.node)&&N4[o]||a(t.node)&&N4[l]||Qc(e.node)&&FZ(e.node)&&N4[o]||Qc(t.node)&&N4[l]||Qc(e.node)&&FZ(e.node)&&a(t.node)||Qc(t.node)&&a(e.node)&&FZ(e.node)){let u=e.additionalNodes&&Bo(e.additionalNodes)||e.node;if(!Qc(e.node)&&!Qc(t.node)||a(e.node)||a(t.node)){const g=a(e.node)?e.node:a(t.node)?t.node:void 0;if(g!==void 0){const m=Ke(I.createConstructorDeclaration(void 0,[],void 0),g),y=IZ(m);y.indent=e.indent+1,y.children=e.node===g?e.children:t.children,e.children=e.node===g?Ki([y],t.children||[t]):Ki(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=Ki(e.children||[{...e}],t.children||[t]),e.children&&(pR(e.children,e),LZ(e.children)));u=e.node=Ke(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Ki(e.children,t.children),e.children&&pR(e.children,e);const f=t.node;return i.children[r-1].node.end===u.end?Ke(u,{pos:u.pos,end:f.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(Ke(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function Oye(e,t,r,i){return jLe(e,t,r,i)?!0:JLe(e.node,t.node,i)?(zLe(e,t),!0):!1}function JLe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(Fye(e,r)&&Fye(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Ps(e)===Ps(t);case 267:return Lye(e,t)&&BZ(e)===BZ(t);default:return!0}}function FZ(e){return!!(e.flags&16)}function Fye(e,t){const r=jd(e.parent)?e.parent.parent:e.parent;return r===t.node||gs(t.additionalNodes,r)}function Lye(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||Lye(e.body,t.body))}function zLe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Ki(e.children,t.children),e.children&&(pR(e.children,e),LZ(e.children))}function LZ(e){e.sort(VLe)}function VLe(e,t){return z7(Mye(e.node),Mye(t.node))||Co(fR(e),fR(t))}function Mye(e){if(e.kind===267)return Bye(e);const t=os(e);if(t&&Jc(t)){const r=by(t);return r&&Li(r)}switch(e.kind){case 218:case 219:case 231:return zye(e);default:return}}function MZ(e,t){if(e.kind===267)return A4(Bye(e));if(t){const r=we(t)?t.text:No(t)?`[${G5(t.argumentExpression)}]`:G5(t);if(r.length>0)return A4(r)}switch(e.kind){case 312:const r=e;return zc(r)?`"${Ux(Jl(mu(ba(r.fileName))))}"`:"";case 277:return dc(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return o1(e)&1024?"default":zye(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function ULe(e){const t=[];function r(a){if(i(a)&&(t.push(a),a.children))for(const o of a.children)r(o)}return r(e),t;function i(a){if(a.children)return!0;switch(fR(a)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return o(a);default:return!1}function o(l){if(!l.node.body)return!1;switch(fR(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function Rye(e){return{text:MZ(e.node,e.name),kind:w2(e.node),kindModifiers:Jye(e.node),spans:RZ(e),nameSpan:e.name&&jZ(e.name),childItems:an(e.children,Rye)}}function WLe(e){return{text:MZ(e.node,e.name),kind:w2(e.node),kindModifiers:Jye(e.node),spans:RZ(e),childItems:an(e.children,t)||gR,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:MZ(r.node,r.name),kind:w2(r.node),kindModifiers:j8(r.node),spans:RZ(r),childItems:gR,indent:0,bolded:!1,grayed:!1}}}function RZ(e){const t=[jZ(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(jZ(r));return t}function Bye(e){return __(e)?el(e.name):BZ(e)}function BZ(e){const t=[kp(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(kp(e.name));return t.join(".")}function jye(e){return e.body&&Nc(e.body)?jye(e.body):e}function qLe(e){return!e.name||e.name.kind===167}function jZ(e){return e.kind===312?b1(e):au(e,X8)}function Jye(e){return e.parent&&e.parent.kind===260&&(e=e.parent),j8(e)}function zye(e){const{parent:t}=e;if(e.name&&Aw(e.name)>0)return A4(no(e.name));if(Mi(t))return A4(no(t.name));if(rr(t)&&t.operatorToken.kind===64)return G5(t.left).replace(Uye,"");if(Dc(t))return G5(t.name);if(o1(e)&1024)return"default";if(ei(e))return"";if(js(t)){let r=Vye(t.expression);if(r!==void 0){if(r=A4(r),r.length>dR)return`${r} callback`;const i=A4(qi(t.arguments,a=>Qa(a)?a.getText(X8):void 0).join(", "));return`${r}(${i}) callback`}}return""}function Vye(e){if(we(e))return e.text;if(kr(e)){const t=Vye(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function HLe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function A4(e){return e=e.length>dR?e.substring(0,dR)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var Uye,dR,mR,X8,Q8,i0,JZ,FS,gR,N4,GLe=Bt({"src/services/navigationBar.ts"(){Wr(),Uye=/\s+/g,dR=150,Q8=[],JZ=[],gR=[],N4={[5]:!0,[3]:!0,[7]:!0,[9]:!0,[0]:!1,[1]:!1,[2]:!1,[8]:!1,[6]:!0,[4]:!1}}}),Wye={};C_(Wye,{getNavigationBarItems:()=>kye,getNavigationTree:()=>Cye});var qye=Bt({"src/services/_namespaces/ts.NavigationBar.ts"(){GLe()}});function Dm(e,t){hR.set(e,t)}function $Le(e,t){return ia(nV(hR.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(a=>k1(a,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function XLe(e,t,r,i){const a=hR.get(t);return a&&a.getEditsForAction(e,r,i)}var hR,Hye=Bt({"src/services/refactorProvider.ts"(){Wr(),Wd(),hR=new Map}});function Gye(e,t=!0){const{file:r,program:i}=e,a=IS(e),o=Vi(r,a.start),l=!!(o.parent&&o1(o.parent)&1)&&t?o.parent:M5(o,r,a);if(!l||!Ri(l.parent)&&!(jd(l.parent)&&__(l.parent.parent)))return{error:ss(p.Could_not_find_export_statement)};const u=i.getTypeChecker(),f=tMe(l.parent,u),g=o1(l)||(dc(l)&&!l.isExportEquals?1025:0),m=!!(g&1024);if(!(g&1)||!m&&f.exports.has("default"))return{error:ss(p.This_file_already_has_a_default_export)};const y=x=>we(x)&&u.getSymbolAtLocation(x)?void 0:{error:ss(p.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const x=l;return x.name?y(x.name)||{exportNode:x,exportName:x.name,wasDefault:m,exportingModuleSymbol:f}:void 0}case 243:{const x=l;if(!(x.declarationList.flags&2)||x.declarationList.declarations.length!==1)return;const k=wa(x.declarationList.declarations);return k.initializer?(E.assert(!m,"Can't have a default flag here"),y(k.name)||{exportNode:x,exportName:k.name,wasDefault:m,exportingModuleSymbol:f}):void 0}case 277:{const x=l;return x.isExportEquals?void 0:y(x.expression)||{exportNode:x,exportName:x.expression,wasDefault:m,exportingModuleSymbol:f}}default:return}}function QLe(e,t,r,i,a){YLe(e,r,i,t.getTypeChecker()),ZLe(t,r,i,a)}function YLe(e,{wasDefault:t,exportNode:r,exportName:i},a,o){if(t)if(dc(r)&&!r.isExportEquals){const l=r.expression,u=$ye(l.text,l.text);a.replaceNode(e,r,I.createExportDeclaration(void 0,!1,I.createNamedExports([u])))}else a.delete(e,E.checkDefined(C4(r,90),"Should find a default keyword in modifier list"));else{const l=E.checkDefined(C4(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:a.insertNodeAfter(e,l,I.createToken(90));break;case 243:const u=wa(r.declarationList.declarations);if(!Oo.Core.isSymbolReferencedInFile(i,o,e)&&!u.type){a.replaceNode(e,r,I.createExportDefault(E.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:a.deleteModifier(e,l),a.insertNodeAfter(e,r,I.createExportDefault(I.createIdentifier(i.text)));break;default:E.fail(`Unexpected exportNode kind ${r.kind}`)}}}function ZLe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},a,o){const l=e.getTypeChecker(),u=E.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Oo.Core.eachExportReference(e.getSourceFiles(),l,o,u,i,r.text,t,f=>{if(r===f)return;const g=f.getSourceFile();t?KLe(g,f,a,r.text):eMe(g,f,a)})}function KLe(e,t,r,i){const{parent:a}=t;switch(a.kind){case 211:r.replaceNode(e,t,I.createIdentifier(i));break;case 276:case 281:{const l=a;r.replaceNode(e,l,zZ(i,l.name.text));break}case 273:{const l=a;E.assert(l.name===t,"Import clause name should match provided ref");const u=zZ(i,t.text),{namedBindings:f}=l;if(!f)r.replaceNode(e,t,I.createNamedImports([u]));else if(f.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:f.getStart(e)});const g=pa(l.parent.moduleSpecifier)?OY(l.parent.moduleSpecifier,e):1,m=_h(void 0,[zZ(i,t.text)],l.parent.moduleSpecifier,g);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,f.elements,u);break}case 205:const o=a;r.replaceNode(e,a,I.createImportTypeNode(o.argument,o.assertions,I.createIdentifier(i),o.typeArguments,o.isTypeOf));break;default:E.failBadSyntaxKind(a)}}function eMe(e,t,r){const i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,I.createIdentifier("default"));break;case 276:{const a=I.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,a):(r.delete(e,i),r.insertNodeBefore(e,i.parent,a));break}case 281:{r.replaceNode(e,i,$ye("default",i.name.text));break}default:E.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function zZ(e,t){return I.createImportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function $ye(e,t){return I.createExportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function tMe(e,t){if(Ri(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&Qv(r.valueDeclaration)?t.getMergedSymbol(r):r}var yR,$5,X5,nMe=Bt({"src/services/refactors/convertExport.ts"(){Wr(),Wd(),yR="Convert export",$5={name:"Convert default export to named export",description:ss(p.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},X5={name:"Convert named export to default export",description:ss(p.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},Dm(yR,{kinds:[$5.kind,X5.kind],getAvailableActions:function(t){const r=Gye(t,t.triggerReason==="invoked");if(!r)return Ve;if(!lg(r)){const i=r.wasDefault?$5:X5;return[{name:yR,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:yR,description:ss(p.Convert_default_export_to_named_export),actions:[{...$5,notApplicableReason:r.error},{...X5,notApplicableReason:r.error}]}]:Ve},getEditsForAction:function(t,r){E.assert(r===$5.name||r===X5.name,"Unexpected action name");const i=Gye(t);return E.assert(i&&!lg(i),"Expected applicable refactor info"),{edits:er.ChangeTracker.with(t,o=>QLe(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function Xye(e,t=!0){const{file:r}=e,i=IS(e),a=Vi(r,i.start),o=t?On(a,bl):M5(a,r,i);if(!o||!bl(o))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=yT(o,o.parent,r);if(u&&l>u.getStart())return;const{importClause:f}=o;return f?f.namedBindings?f.namedBindings.kind===274?{convertTo:0,import:f.namedBindings}:Qye(e.program,f)?{convertTo:1,import:f.namedBindings}:{convertTo:2,import:f.namedBindings}:{error:ss(p.Could_not_find_namespace_import_or_named_imports)}:{error:ss(p.Could_not_find_import_clause)}}function Qye(e,t){return Qx(e.getCompilerOptions())&&aMe(t.parent.moduleSpecifier,e.getTypeChecker())}function rMe(e,t,r,i){const a=t.getTypeChecker();i.convertTo===0?iMe(e,a,r,i.import,Qx(t.getCompilerOptions())):Zye(e,t,r,i.import,i.convertTo===1)}function iMe(e,t,r,i,a){let o=!1;const l=[],u=new Map;Oo.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!tle(y.parent))o=!0;else{const x=Yye(y.parent).text;t.resolveName(x,y,67108863,!0)&&u.set(x,!0),E.assert(sMe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});const f=new Map;for(const y of l){const x=Yye(y).text;let k=f.get(x);k===void 0&&f.set(x,k=u.has(x)?xT(x,e):x),r.replaceNode(e,y,I.createIdentifier(k))}const g=[];f.forEach((y,x)=>{g.push(I.createImportSpecifier(!1,y===x?void 0:I.createIdentifier(x),I.createIdentifier(y)))});const m=i.parent.parent;o&&!a?r.insertNodeAfter(e,m,VZ(m,void 0,g)):r.replaceNode(e,m,VZ(m,o?I.createIdentifier(i.name.text):void 0,g))}function Yye(e){return kr(e)?e.name:e.right}function sMe(e){return kr(e)?e.expression:e.left}function Zye(e,t,r,i,a=Qye(t,i.parent)){const o=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,f=new Set;i.elements.forEach(C=>{const N=o.getSymbolAtLocation(C.name);N&&f.add(N)});const g=u&&pa(u)?n_.moduleSpecifierToValidIdentifier(u.text,99):"module";function m(C){return!!Oo.Core.eachSymbolReferenceInFile(C.name,o,e,N=>{const D=o.resolveName(g,N,67108863,!0);return D?f.has(D)?p_(N.parent):!0:!1})}const x=i.elements.some(m)?xT(g,e):g,k=new Set;for(const C of i.elements){const N=(C.propertyName||C.name).text;Oo.Core.eachSymbolReferenceInFile(C.name,o,e,D=>{const M=I.createPropertyAccessExpression(I.createIdentifier(x),N);nf(D.parent)?r.replaceNode(e,D.parent,I.createPropertyAssignment(D.text,M)):p_(D.parent)?k.add(C):r.replaceNode(e,D,M)})}if(r.replaceNode(e,i,a?I.createIdentifier(x):I.createNamespaceImport(I.createIdentifier(x))),k.size){const C=ia(k.values(),N=>I.createImportSpecifier(N.isTypeOnly,N.propertyName&&I.createIdentifier(N.propertyName.text),I.createIdentifier(N.name.text)));r.insertNodeAfter(e,i.parent.parent,VZ(l,void 0,C))}}function aMe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function VZ(e,t,r){return I.createImportDeclaration(void 0,I.createImportClause(!1,t,r&&r.length?I.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var vR,Q5,oMe=Bt({"src/services/refactors/convertImport.ts"(){Wr(),Wd(),vR="Convert import",Q5={[0]:{name:"Convert namespace import to named imports",description:ss(p.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},[2]:{name:"Convert named imports to namespace import",description:ss(p.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},[1]:{name:"Convert named imports to default import",description:ss(p.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},Dm(vR,{kinds:vx(Q5).map(e=>e.kind),getAvailableActions:function(t){const r=Xye(t,t.triggerReason==="invoked");if(!r)return Ve;if(!lg(r)){const i=Q5[r.convertTo];return[{name:vR,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?vx(Q5).map(i=>({name:vR,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):Ve},getEditsForAction:function(t,r){E.assert(dt(vx(Q5),o=>o.name===r),"Unexpected action name");const i=Xye(t);return E.assert(i&&!lg(i),"Expected applicable refactor info"),{edits:er.ChangeTracker.with(t,o=>rMe(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}})}});function Kye(e,t=!0){const{file:r,startPosition:i}=e,a=P_(r),o=Vi(r,i),l=DM(IS(e)),u=l.pos===l.end&&t,f=On(o,k=>k.parent&&Di(k)&&!jy(l,k.parent,r)&&(u||mY(o,r,l.pos,l.end)));if(!f||!Di(f))return{error:ss(p.Selection_is_not_a_valid_type_node)};const g=e.program.getTypeChecker(),m=fMe(f,a);if(m===void 0)return{error:ss(p.No_type_could_be_extracted_from_this_type_node)};const y=cMe(g,f,m,r);if(!y)return{error:ss(p.No_type_could_be_extracted_from_this_type_node)};const x=UZ(g,f);return{isJS:a,selection:f,enclosingNode:m,typeParameters:y,typeElements:x}}function UZ(e,t){if(!!t)if(iA(t)){const r=[],i=new Map;for(const a of t.types){const o=UZ(e,a);if(!o||!o.every(l=>l.name&&Kp(i,F5(l.name))))return;Lr(r,o)}return r}else{if(cS(t))return UZ(e,t.type);if(ef(t))return t.members}}function jy(e,t,r){return E5(e,ua(r.text,t.pos),t.end)}function cMe(e,t,r,i){const a=[];return o(t)?void 0:a;function o(l){if(sp(l)){if(we(l.typeName)){const u=l.typeName,f=e.resolveName(u.text,u,262144,!0);for(const g of(f==null?void 0:f.declarations)||Ve)if(Ho(g)&&g.getSourceFile()===i){if(g.name.escapedText===u.escapedText&&jy(g,t,i))return!0;if(jy(r,g,i)&&!jy(t,g,i)){Gf(a,g);break}}}}else if(oS(l)){const u=On(l,f=>Y6(f)&&jy(f.extendsType,l,i));if(!u||!jy(t,u,i))return!0}else if(mF(l)||gF(l)){const u=On(l.parent,ks);if(u&&u.type&&jy(u.type,l,i)&&!jy(t,u,i))return!0}else if(X6(l)){if(we(l.exprName)){const u=e.resolveName(l.exprName.text,l.exprName,111551,!1);if((u==null?void 0:u.valueDeclaration)&&jy(r,u.valueDeclaration,i)&&!jy(t,u.valueDeclaration,i))return!0}else if(a2(l.exprName.left)&&!jy(t,l.parent,i))return!0}return i&&Q6(l)&&vo(i,l.pos).line===vo(i,l.end).line&&Xn(l,1),ys(l,o)}}function lMe(e,t,r,i){const{enclosingNode:a,selection:o,typeParameters:l}=i,u=I.createTypeAliasDeclaration(void 0,r,l.map(f=>I.updateTypeParameterDeclaration(f,f.modifiers,f.name,f.constraint,void 0)),o);e.insertNodeBefore(t,a,JH(u),!0),e.replaceNode(t,o,I.createTypeReferenceNode(r,l.map(f=>I.createTypeReferenceNode(f.name,void 0))),{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.ExcludeWhitespace})}function _Me(e,t,r,i){var a;const{enclosingNode:o,selection:l,typeParameters:u,typeElements:f}=i,g=I.createInterfaceDeclaration(void 0,r,u,void 0,f);Ke(g,(a=f[0])==null?void 0:a.parent),e.insertNodeBefore(t,o,JH(g),!0),e.replaceNode(t,l,I.createTypeReferenceNode(r,u.map(m=>I.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.ExcludeWhitespace})}function uMe(e,t,r,i,a){var o;const{enclosingNode:l,selection:u,typeParameters:f}=a;Xn(u,7168);const g=I.createJSDocTypedefTag(I.createIdentifier("typedef"),I.createJSDocTypeExpression(u),I.createIdentifier(i)),m=[];mn(f,x=>{const k=Kk(x),C=I.createTypeParameterDeclaration(void 0,x.name),N=I.createJSDocTemplateTag(I.createIdentifier("template"),k&&Ms(k,nT),[C]);m.push(N)});const y=I.createJSDocComment(void 0,I.createNodeArray(Ki(m,[g])));if(Dp(l)){const x=l.getStart(r),k=r0(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(r,l.getStart(r),y,{suffix:k+k+r.text.slice(BM(r.text,x-1),x)})}else e.insertNodeBefore(r,l,y,!0);e.replaceNode(r,u,I.createTypeReferenceNode(i,f.map(x=>I.createTypeReferenceNode(x.name,void 0))))}function fMe(e,t){return On(e,Ii)||(t?On(e,Dp):void 0)}var bR,Y5,Z5,K5,pMe=Bt({"src/services/refactors/extractType.ts"(){Wr(),Wd(),bR="Extract type",Y5={name:"Extract to type alias",description:ss(p.Extract_to_type_alias),kind:"refactor.extract.type"},Z5={name:"Extract to interface",description:ss(p.Extract_to_interface),kind:"refactor.extract.interface"},K5={name:"Extract to typedef",description:ss(p.Extract_to_typedef),kind:"refactor.extract.typedef"},Dm(bR,{kinds:[Y5.kind,Z5.kind,K5.kind],getAvailableActions:function(t){const r=Kye(t,t.triggerReason==="invoked");return r?lg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:bR,description:ss(p.Extract_type),actions:[{...K5,notApplicableReason:r.error},{...Y5,notApplicableReason:r.error},{...Z5,notApplicableReason:r.error}]}]:Ve:[{name:bR,description:ss(p.Extract_type),actions:r.isJS?[K5]:gn([Y5],r.typeElements&&Z5)}]:Ve},getEditsForAction:function(t,r){const{file:i}=t,a=Kye(t);E.assert(a&&!lg(a),"Expected to find a range to extract");const o=xT("NewType",i),l=er.ChangeTracker.with(t,g=>{switch(r){case Y5.name:return E.assert(!a.isJS,"Invalid actionName/JS combo"),lMe(g,i,o,a);case K5.name:return E.assert(a.isJS,"Invalid actionName/JS combo"),uMe(g,t,i,o,a);case Z5.name:return E.assert(!a.isJS&&!!a.typeElements,"Invalid actionName/JS combo"),_Me(g,i,o,a);default:E.fail("Unexpected action name")}}),u=i.fileName,f=J5(l,u,o,!1);return{edits:l,renameFilename:u,renameLocation:f}}})}});function lg(e){return e.error!==void 0}function k1(e,t){return t?e.substr(0,t.length)===t:!0}var dMe=Bt({"src/services/refactors/helpers.ts"(){}});function eve(e,t,r,i){var a,o;const l=i.getTypeChecker(),u=af(e,t),f=u.parent;if(!!we(u)){if(CD(f)&&n3(f)&&we(f.name)){if(((a=l.getMergedSymbol(f.symbol).declarations)==null?void 0:a.length)!==1)return{error:ss(p.Variables_with_multiple_declarations_cannot_be_inlined)};if(tve(f))return;const g=nve(f,l,e);return g&&{references:g,declaration:f,replacement:f.initializer}}if(r){let g=l.resolveName(u.text,u,111551,!1);if(g=g&&l.getMergedSymbol(g),((o=g==null?void 0:g.declarations)==null?void 0:o.length)!==1)return{error:ss(p.Variables_with_multiple_declarations_cannot_be_inlined)};const m=g.declarations[0];if(!CD(m)||!n3(m)||!we(m.name)||tve(m))return;const y=nve(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:ss(p.Could_not_find_variable_to_inline)}}}function tve(e){const t=Ms(e.parent.parent,ic);return dt(t.modifiers,iS)}function nve(e,t,r){const i=[],a=Oo.Core.eachSymbolReferenceInFile(e.name,t,r,o=>{if(Oo.isWriteAccessForReference(o)||p_(o.parent)||dc(o.parent)||X6(o.parent)||dw(e,o.pos))return!0;i.push(o)});return i.length===0||a?void 0:i}function mMe(e,t){t=Io(t);const{parent:r}=e;return nt(r)&&(d3(t){for(const y of l)m.replaceNode(r,y,mMe(y,f));m.delete(r,u)})}}})}});function hMe(e,t,r,i,a,o,l){const u=t.getTypeChecker(),f=ER(e,r.all,u),g=eK(e,t,l,a);i.createNewFile(e,g,yMe(e,f,i,r,t,a,g,o)),WZ(t,i,e.fileName,g,X0(a))}function yMe(e,t,r,i,a,o,l,u){const f=a.getTypeChecker(),g=vI(e.statements,xp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return eN(e,i.ranges,r),[...g,...i.all];const m=!iZ(l,a,o,!!e.commonJsModuleIndicator),y=Mf(e,u),x=$Z(e,t.oldFileImportsFromTargetFile,l,a,o,m,y);x&&z8(r,e,x,!0,u),qZ(e,i.all,r,t.unusedImportsFromOldFile,f),eN(e,i.ranges,r),HZ(r,a,o,e,t.movedSymbols,l,y);const k=vMe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,f,a,o,m,y),C=XZ(e,i.all,t.oldFileImportsFromTargetFile,m);return k.length&&C.length?[...g,...k,4,...C]:[...g,...k,...C]}function vMe(e,t,r,i,a,o,l,u,f){const g=[];for(const k of e.statements)eE(k,C=>{gn(g,tE(C,K8(C),N=>t.has(a.getSymbolAtLocation(N))))});let m;const y=[],x=NS();return r.forEach(k=>{if(!!k.declarations)for(const C of k.declarations){if(!nN(C))continue;const N=ZZ(C);if(!N)continue;const D=CR(C);x(D)&&KZ(e,D,N,i,u),Mr(C,1024)?m=N:y.push(N.text)}}),gn(g,tN(e,m,y,Jl(e.fileName),o,l,u,f)),g}var Z8,SR,kR,bMe=Bt({"src/services/refactors/moveToNewFile.ts"(){Wr(),Wd(),Z8="Move to a new file",SR=ss(p.Move_to_a_new_file),kR={name:Z8,description:SR,kind:"refactor.move.newFile"},Dm(Z8,{kinds:[kR.kind],getAvailableActions:function(t){const r=nE(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:Z8,description:SR,actions:[kR]}]:t.preferences.provideRefactorNotApplicableReason?[{name:Z8,description:SR,actions:[{...kR,notApplicableReason:ss(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve},getEditsForAction:function(t,r){E.assert(r===Z8,"Wrong refactor invoked");const i=E.checkDefined(nE(t));return{edits:er.ChangeTracker.with(t,o=>hMe(t.file,t.program,i,o,t.host,t.preferences,t)),renameFilename:void 0,renameLocation:void 0}}})}});function rve(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function TMe(e,t,r,i,a,o,l,u){const f=i.getTypeChecker(),g=ER(t,a.all,f);if(!l.fileExists(r))o.createNewFile(t,r,ive(t,r,g,o,a,i,l,u)),WZ(i,o,t.fileName,r,X0(l));else{const m=E.checkDefined(i.getSourceFile(r)),y=n_.createImportAdder(m,e.program,e.preferences,e.host);ive(t,m,g,o,a,i,l,u,y)}}function ive(e,t,r,i,a,o,l,u,f){const g=o.getTypeChecker(),m=vI(e.statements,xp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return eN(e,a.ranges,i),[...m,...a.all];const y=typeof t=="string"?t:t.fileName,x=!iZ(y,o,l,!!e.commonJsModuleIndicator),k=Mf(e,u),C=$Z(e,r.oldFileImportsFromTargetFile,y,o,l,x,k);C&&z8(i,e,C,!0,u),qZ(e,a.all,i,r.unusedImportsFromOldFile,g),eN(e,a.ranges,i),HZ(i,o,l,e,r.movedSymbols,y,k);const N=xMe(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,g,o,l,x,k,f),D=XZ(e,a.all,r.oldFileImportsFromTargetFile,x);return typeof t!="string"&&(t.statements.length>0?jMe(i,o,D,t,a):i.insertNodesAtEndOfFile(t,D,!1),N.length>0&&z8(i,t,N,!0,u)),f&&f.writeFixes(i,k),N.length&&D.length?[...m,...N,4,...D]:[...m,...N,...D]}function xMe(e,t,r,i,a,o,l,u,f,g,m){const y=[];if(m)r.forEach((D,M)=>{try{m.addImportFromExportedSymbol(iu(M,o),D)}catch{for(const V of e.statements)eE(V,U=>{gn(y,tE(U,I.createStringLiteral(K8(U).text),Y=>r.has(o.getSymbolAtLocation(Y))))})}});else{const D=l.getSourceFile(t);for(const M of e.statements)eE(M,V=>{var U,Y;const j=K8(V),ee=(U=e.resolvedModules)==null?void 0:U.get(j.text,op(e,j)),R=(Y=ee==null?void 0:ee.resolvedModule)==null?void 0:Y.resolvedFileName;if(R&&D){const Z=HA(l.getCompilerOptions(),D,D.path,R,bT(l,u));gn(y,tE(V,PS(Z,g),oe=>r.has(o.getSymbolAtLocation(oe))))}else gn(y,tE(V,I.createStringLiteral(K8(V).text),Z=>r.has(o.getSymbolAtLocation(Z))))})}const x=l.getSourceFile(t);let k;const C=[],N=NS();return i.forEach(D=>{if(!!D.declarations)for(const M of D.declarations){if(!nN(M))continue;const V=ZZ(M);if(!V)continue;const U=CR(M);N(U)&&KZ(e,U,V,a,f),m&&o.isUnknownSymbol(D)?m.addImportFromExportedSymbol(iu(D,o)):Mr(M,1024)?k=V:C.push(V.text)}}),x?gn(y,tN(x,k,C,e.fileName,l,u,f,g)):gn(y,tN(e,k,C,e.fileName,l,u,f,g))}function WZ(e,t,r,i,a){const o=e.getCompilerOptions().configFile;if(!o)return;const l=ba(Pi(r,"..",i)),u=iw(o.fileName,l,a),f=o.statements[0]&&Hr(o.statements[0].expression,ha),g=f&&Fr(f.properties,m=>Dc(m)&&pa(m.name)&&m.name.text==="files");g&&u_(g.initializer)&&t.insertNodeInListAfter(o,ka(g.initializer.elements),I.createStringLiteral(u),g.initializer.elements)}function eN(e,t,r){for(const{first:i,afterLast:a}of t)r.deleteNodeRangeExcludingEnd(e,i,a)}function qZ(e,t,r,i,a){for(const o of e.statements)gs(t,o)||eE(o,l=>QZ(e,l,r,u=>i.has(a.getSymbolAtLocation(u))))}function HZ(e,t,r,i,a,o,l){const u=t.getTypeChecker();for(const f of t.getSourceFiles())if(f!==i)for(const g of f.statements)eE(g,m=>{if(u.getSymbolAtLocation(K8(m))!==i.symbol)return;const y=D=>{const M=Fa(D.parent)?MM(u,D.parent):iu(u.getSymbolAtLocation(D),u);return!!M&&a.has(M)};QZ(f,m,e,y);const x=$h(bi(i.path),o),k=HA(t.getCompilerOptions(),f,f.path,x,bT(t,r)),C=tE(m,PS(k,l),y);C&&e.insertNodeAfter(f,g,C);const N=SMe(m);N&&kMe(e,f,u,a,k,N,m,l)})}function SMe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return Hr(e.name,we);default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function kMe(e,t,r,i,a,o,l,u){const f=n_.moduleSpecifierToValidIdentifier(a,99);let g=!1;const m=[];if(Oo.Core.eachSymbolReferenceInFile(o,r,t,y=>{!kr(y.parent)||(g=g||!!r.resolveName(f,y,67108863,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&m.push(y))}),m.length){const y=g?xT(f,t):f;for(const x of m)e.replaceNode(t,x,I.createIdentifier(y));e.insertNodeAfter(t,l,CMe(l,f,a,u))}}function CMe(e,t,r,i){const a=I.createIdentifier(t),o=PS(r,i);switch(e.kind){case 272:return I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(a)),o,void 0);case 271:return I.createImportEqualsDeclaration(void 0,!1,a,I.createExternalModuleReference(o));case 260:return I.createVariableDeclaration(a,void 0,void 0,GZ(o));default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function GZ(e){return I.createCallExpression(I.createIdentifier("require"),void 0,[e])}function K8(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function eE(e,t){if(bl(e))pa(e.moduleSpecifier)&&t(e);else if(Hl(e))km(e.moduleReference)&&Qa(e.moduleReference.expression)&&t(e);else if(ic(e))for(const r of e.declarationList.declarations)r.initializer&&du(r.initializer,!0)&&t(r)}function $Z(e,t,r,i,a,o,l){let u;const f=[];return t.forEach(g=>{g.escapedName==="default"?u=I.createIdentifier(OM(g)):f.push(g.name)}),tN(e,u,f,r,i,a,o,l)}function tN(e,t,r,i,a,o,l,u){const f=$h(bi(e.path),i),g=HA(a.getCompilerOptions(),e,e.path,f,bT(a,o));if(l){const m=r.map(y=>I.createImportSpecifier(!1,void 0,I.createIdentifier(y)));return r1e(t,m,g,u)}else{E.assert(!t,"No default import should exist");const m=r.map(y=>I.createBindingElement(void 0,void 0,y));return m.length?sve(I.createObjectBindingPattern(m),void 0,GZ(PS(g,u))):void 0}}function sve(e,t,r,i=2){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(e,void 0,t,r)],i))}function XZ(e,t,r,i){return Na(t,a=>{if(ove(a)&&!ave(e,a,i)&&tK(a,o=>{var l;return r.has(E.checkDefined((l=Hr(o,Nd))==null?void 0:l.symbol))})){const o=DMe(Io(a),i);if(o)return o}return Io(a)})}function ave(e,t,r,i){var a;return r?!ql(t)&&Mr(t,1)||!!(i&&e.symbol&&((a=e.symbol.exports)==null?void 0:a.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&YZ(t).some(o=>e.symbol.exports.has(qo(o)))}function QZ(e,t,r,i){switch(t.kind){case 272:EMe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:wMe(e,t,r,i);break;default:E.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function EMe(e,t,r,i){if(!t.importClause)return;const{name:a,namedBindings:o}=t.importClause,l=!a||i(a),u=!o||(o.kind===274?i(o.name):o.elements.length!==0&&o.elements.every(f=>i(f.name)));if(l&&u)r.delete(e,t);else if(a&&l&&r.delete(e,a),o){if(u)r.replaceNode(e,t.importClause,I.updateImportClause(t.importClause,t.importClause.isTypeOnly,a,void 0));else if(o.kind===275)for(const f of o.elements)i(f.name)&&r.delete(e,f)}}function wMe(e,t,r,i){const{name:a}=t;switch(a.kind){case 80:i(a)&&(t.initializer&&du(t.initializer,!0)?r.delete(e,dl(t.parent)&&Pn(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,a));break;case 207:break;case 206:if(a.elements.every(o=>we(o.name)&&i(o.name)))r.delete(e,dl(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const o of a.elements)we(o.name)&&i(o.name)&&r.delete(e,o.name);break}}function ove(e){return E.assert(Ri(e.parent),"Node parent should be a SourceFile"),pve(e)||ic(e)}function DMe(e,t){return t?[AMe(e)]:NMe(e)}function AMe(e){const t=Ap(e)?Ki([I.createModifier(95)],qv(e)):void 0;switch(e.kind){case 262:return I.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const r=iT(e)?Yh(e):void 0;return I.updateClassDeclaration(e,Ki(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return I.updateVariableStatement(e,t,e.declarationList);case 267:return I.updateModuleDeclaration(e,t,e.name,e.body);case 266:return I.updateEnumDeclaration(e,t,e.name,e.members);case 265:return I.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return I.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return I.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return E.fail();default:return E.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function NMe(e){return[e,...YZ(e).map(cve)]}function cve(e){return I.createExpressionStatement(I.createBinaryExpression(I.createPropertyAccessExpression(I.createIdentifier("exports"),I.createIdentifier(e)),64,I.createIdentifier(e)))}function YZ(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return qi(e.declarationList.declarations,t=>we(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Ve;case 244:return E.fail("Can't export an ExpressionStatement");default:return E.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function tE(e,t,r){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const a=i.name&&r(i.name)?i.name:void 0,o=i.namedBindings&&PMe(i.namedBindings,r);return a||o?I.createImportDeclaration(void 0,I.createImportClause(i.isTypeOnly,a,o),Io(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{const i=IMe(e.name,r);return i?sve(i,e.type,GZ(t),e.parent.flags):void 0}default:return E.assertNever(e,`Unexpected import kind ${e.kind}`)}}function PMe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?I.createNamedImports(r):void 0}}function IMe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const r=e.elements.filter(i=>i.propertyName||!we(i.name)||t(i.name));return r.length?I.createObjectBindingPattern(r):void 0}}}function ZZ(e){return ql(e)?Hr(e.expression.left.name,we):Hr(e.name,we)}function CR(e){switch(e.kind){case 260:return e.parent.parent;case 208:return CR(Ms(e.parent.parent,t=>Mi(t)||Fa(t)));default:return e}}function KZ(e,t,r,i,a){if(!ave(e,t,a,r))if(a)ql(t)||i.insertExportModifier(e,t);else{const o=YZ(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(cve))}}function eK(e,t,r,i){const a=t.getTypeChecker(),o=nE(r);let l;if(o){l=ER(e,o.all,a);const u=bi(e.fileName),f=Gb(e.fileName);return Pi(u,MMe(RMe(l.oldFileImportsFromTargetFile,l.movedSymbols),f,u,i))+f}return""}function OMe(e){const{file:t}=e,r=DM(IS(e)),{statements:i}=t;let a=qc(i,g=>g.end>r.pos);if(a===-1)return;const o=i[a],l=dve(t,o);l&&(a=l.start);let u=qc(i,g=>g.end>=r.end,a);u!==-1&&r.end<=i[u].getStart()&&u--;const f=dve(t,i[u]);return f&&(u=f.end),{toMove:i.slice(a,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function nE(e){const t=OMe(e);if(t===void 0)return;const r=[],i=[],{toMove:a,afterLast:o}=t;return sV(a,FMe,(l,u)=>{for(let f=l;f!!t.initializer&&du(t.initializer,!0));default:return!1}}function ER(e,t,r){const i=new Set,a=new Map,o=new Set,l=Fr(t,y=>!!(y.transformFlags&2)),u=m(l);u&&a.set(u,!1);for(const y of t)tK(y,x=>{i.add(E.checkDefined(ql(x)?r.getSymbolAtLocation(x.expression.left):x.symbol,"Need a symbol here"))});for(const y of t)lve(y,r,(x,k)=>{if(!!x.declarations)for(const C of x.declarations)if(_ve(C)){const N=a.get(x);a.set(x,(N===void 0||N)&&k)}else nN(C)&&BMe(C)===e&&!i.has(x)&&o.add(x)});const f=new Set(a.keys()),g=new Set;for(const y of e.statements)gs(t,y)||(u&&!!(y.transformFlags&2)&&f.delete(u),lve(y,r,x=>{i.has(x)&&g.add(x),f.delete(x)}));return{movedSymbols:i,targetFileImportsFromOldFile:o,oldFileImportsFromTargetFile:g,oldImportsNeededByTargetFile:a,unusedImportsFromOldFile:f};function m(y){if(y===void 0)return;const x=r.getJsxNamespace(y),k=r.resolveName(x,y,1920,!0);return!!k&&dt(k.declarations,_ve)?k:void 0}}function MMe(e,t,r,i){let a=e;for(let o=1;;o++){const l=Pi(r,a+t);if(!i.fileExists(l))return a;a=`${e}.${o}`}}function RMe(e,t){return Ix(e,OM)||Ix(t,OM)||"newFile"}function lve(e,t,r){e.forEachChild(function i(a){if(we(a)&&!Gg(a)){const o=t.getSymbolAtLocation(a);o&&r(o,ky(a))}else a.forEachChild(i)})}function tK(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return _c(e.declarationList.declarations,r=>fve(r.name,t));case 244:{const{expression:r}=e;return rr(r)&&pc(r)===1?t(e):void 0}}}function _ve(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return uve(e);case 208:return Mi(e.parent.parent)&&uve(e.parent.parent);default:return!1}}function uve(e){return Ri(e.parent.parent.parent)&&!!e.initializer&&du(e.initializer,!0)}function nN(e){return pve(e)&&Ri(e.parent)||Mi(e)&&Ri(e.parent.parent.parent)}function BMe(e){return Mi(e)?e.parent.parent.parent:e.parent}function fve(e,t){switch(e.kind){case 80:return t(Ms(e.parent,r=>Mi(r)||Fa(r)));case 207:case 206:return _c(e.elements,r=>pl(r)?void 0:fve(r.name,t));default:return E.assertNever(e,`Unexpected name kind ${e.kind}`)}}function pve(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function jMe(e,t,r,i,a){var o;const l=new Set,u=(o=i.symbol)==null?void 0:o.exports;if(u){const g=t.getTypeChecker(),m=new Map;for(const y of a.all)ove(y)&&Mr(y,1)&&tK(y,x=>{var k;const C=Nd(x)?(k=u.get(x.symbol.escapedName))==null?void 0:k.declarations:void 0,N=_c(C,D=>Yc(D)?D:p_(D)?Hr(D.parent.parent,Yc):void 0);N&&N.moduleSpecifier&&m.set(N,(m.get(N)||new Set).add(x))});for(const[y,x]of ia(m))if(y.exportClause&&ap(y.exportClause)&&Pn(y.exportClause.elements)){const k=y.exportClause.elements,C=Vr(k,N=>Fr(iu(N.symbol,g).declarations,D=>nN(D)&&x.has(D))===void 0);if(Pn(C)===0){e.deleteNode(i,y),l.add(y);continue}Pn(C)Yc(g)&&!!g.moduleSpecifier&&!l.has(g));f?e.insertNodesBefore(i,f,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function dve(e,t){if(Eo(t)){const r=t.symbol.declarations;if(r===void 0||Pn(r)<=1||!gs(r,t))return;const i=r[0],a=r[Pn(r)-1],o=qi(r,f=>Bn(f)===e&&Ii(f)?f:void 0),l=qc(e.statements,f=>f.end>=a.end),u=qc(e.statements,f=>f.end>=i.end);return{toMove:o,start:u,end:l}}}var rN,wR,DR,JMe=Bt({"src/services/refactors/moveToFile.ts"(){kme(),Wr(),Hye(),rN="Move to file",wR=ss(p.Move_to_file),DR={name:"Move to file",description:wR,kind:"refactor.move.file"},Dm(rN,{kinds:[DR.kind],getAvailableActions:function(t,r){const i=nE(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:rN,description:wR,actions:[DR]}]:t.preferences.provideRefactorNotApplicableReason?[{name:rN,description:wR,actions:[{...DR,notApplicableReason:ss(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve:Ve},getEditsForAction:function(t,r,i){E.assert(r===rN,"Wrong refactor invoked");const a=E.checkDefined(nE(t)),{host:o,program:l}=t;E.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return c2(u)||L3(u)?o.fileExists(u)&&l.getSourceFile(u)===void 0?rve(ss(p.Cannot_move_statements_to_the_selected_file)):{edits:er.ChangeTracker.with(t,g=>TMe(t,t.file,i.targetFile,t.program,a,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:rve(ss(p.Cannot_move_to_file_selected_file_is_invalid))}})}});function zMe(e){const{file:t,startPosition:r,program:i}=e;return gve(t,r,i)?[{name:AR,description:nK,actions:[rK]}]:Ve}function VMe(e){const{file:t,startPosition:r,program:i}=e,a=gve(t,r,i);if(!a)return;const o=i.getTypeChecker(),l=a[a.length-1];let u=l;switch(l.kind){case 173:{u=I.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,g(a),l.type);break}case 174:{u=I.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,g(a),l.type,l.body);break}case 179:{u=I.updateCallSignature(l,l.typeParameters,g(a),l.type);break}case 176:{u=I.updateConstructorDeclaration(l,l.modifiers,g(a),l.body);break}case 180:{u=I.updateConstructSignature(l,l.typeParameters,g(a),l.type);break}case 262:{u=I.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,g(a),l.type,l.body);break}default:return E.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,x=>{x.replaceNodeRange(t,a[0],a[a.length-1],u)})};function g(x){const k=x[x.length-1];return Eo(k)&&k.body&&(x=x.slice(0,x.length-1)),I.createNodeArray([I.createParameterDeclaration(void 0,I.createToken(26),"args",void 0,I.createUnionTypeNode(an(x,m)))])}function m(x){const k=an(x.parameters,y);return Xn(I.createTupleTypeNode(k),dt(k,C=>!!Pn(q6(C)))?0:1)}function y(x){E.assert(we(x.name));const k=Ke(I.createNamedTupleMember(x.dotDotDotToken,x.name,x.questionToken,x.type||I.createKeywordTypeNode(133)),x),C=x.symbol&&x.symbol.getDocumentationComment(o);if(C){const N=e2e(C);N.length&&Ey(k,[{text:`* +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return E.assertNever(e)}}function QFe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function YFe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function ZFe(e){if(su(e))return 3;if(QFe(e)||YFe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return e1(e)?6:2}}function J1e(e,t,r,i,a){return U1e(pZ(e,t,r,i,a))}function z1e(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function pZ(e,t,r,i,a){const o=[];return r.forEachChild(function u(f){if(!(!f||!$I(a,f.pos,f.getFullWidth()))){if(z1e(t,f.kind),we(f)&&!_c(f)&&i.has(f.escapedText)){const g=e.getSymbolAtLocation(f),m=g&&V1e(g,vT(f),e);m&&l(f.getStart(r),f.getEnd(),m)}f.forEachChild(u)}}),{spans:o,endOfLineState:0};function l(u,f,g){const m=f-u;E.assert(m>0,`Classification had non-positive length of ${m}`),o.push(u),o.push(m),o.push(g)}}function V1e(e,t,r){const i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&KFe(e)?14:void 0:i&2097152?V1e(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function KFe(e){return dt(e.declarations,t=>Ac(t)&&r0(t)===1)}function eLe(e){switch(e){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 U1e(e){E.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,Z=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,oe=t.text.substr(j,ee),_e=R.exec(oe);if(!_e||!_e[3]||!(_e[3]in $7))return!1;let X=j;y(X,_e[1].length),X+=_e[1].length,f(X,_e[2].length,10),X+=_e[2].length,f(X,_e[3].length,21),X+=_e[3].length;const H=_e[4];let Q=X;for(;;){const ue=Z.exec(H);if(!ue)break;const fe=X+ue.index+ue[1].length;fe>Q&&(y(Q,fe-Q),Q=fe),f(Q,ue[2].length,22),Q+=ue[2].length,ue[3].length&&(y(Q,ue[3].length),Q+=ue[3].length),f(Q,ue[4].length,5),Q+=ue[4].length,ue[5].length&&(y(Q,ue[5].length),Q+=ue[5].length),f(Q,ue[6].length,24),Q+=ue[6].length}X+=_e[4].length,X>Q&&y(Q,X-Q),_e[5]&&(f(X,_e[5].length,10),X+=_e[5].length);const ne=j+ee;return X=0),Z>0){const oe=ee||U(j.kind,j);oe&&f(R,Z,oe)}return!0}function V(j){switch(j.parent&&j.parent.kind){case 286:if(j.parent.tagName===j)return 19;break;case 287:if(j.parent.tagName===j)return 20;break;case 285:if(j.parent.tagName===j)return 21;break;case 291:if(j.parent.name===j)return 22;break}}function U(j,ee){if(su(j))return 3;if((j===30||j===32)&&ee&&$he(ee.parent))return 10;if(lq(j)){if(ee){const R=ee.parent;if(j===64&&(R.kind===260||R.kind===172||R.kind===169||R.kind===291)||R.kind===226||R.kind===224||R.kind===225||R.kind===227)return 5}return 10}else{if(j===9)return 4;if(j===10)return 25;if(j===11)return ee&&ee.parent.kind===291?24:6;if(j===14)return 6;if(e1(j))return 6;if(j===12)return 23;if(j===80){if(ee){switch(ee.parent.kind){case 263:return ee.parent.name===ee?11:void 0;case 168:return ee.parent.name===ee?15:void 0;case 264:return ee.parent.name===ee?13:void 0;case 266:return ee.parent.name===ee?12:void 0;case 267:return ee.parent.name===ee?14:void 0;case 169:return ee.parent.name===ee?c2(ee)?3:17:void 0}if(qg(ee.parent))return 3}return 2}}}function Y(j){if(!!j&&XI(i,a,j.pos,j.getFullWidth())){z1e(e,j.kind);for(const ee of j.getChildren(t))M(ee)||Y(ee)}}}var q1e,H1e=Rt({"src/services/classifier.ts"(){Wr(),q1e=ooe([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),aR,tLe=Rt({"src/services/documentHighlights.ts"(){Wr(),(e=>{function t(X,H,Q,ne,ue){const fe=af(Q,ne);if(fe.parent&&(zd(fe.parent)&&fe.parent.tagName===fe||h2(fe.parent))){const{openingElement:G,closingElement:Ne}=fe.parent.parent,De=[G,Ne].map(({tagName:Xe})=>r(Xe,Q));return[{fileName:Q.fileName,highlightSpans:De}]}return i(ne,fe,X,H,ue)||a(fe,Q)}e.getDocumentHighlights=t;function r(X,H){return{fileName:H.fileName,textSpan:cu(X,H),kind:"none"}}function i(X,H,Q,ne,ue){const fe=new Set(ue.map(Xe=>Xe.fileName)),G=Oo.getReferenceEntriesForNode(X,H,Q,ue,ne,void 0,fe);if(!G)return;const Ne=J7(G.map(Oo.toHighlightSpan),Xe=>Xe.fileName,Xe=>Xe.span),De=Ql(Q.useCaseSensitiveFileNames());return ra(O7(Ne.entries(),([Xe,ve])=>{if(!fe.has(Xe)){if(!Q.redirectTargetsMap.has(ho(Xe,Q.getCurrentDirectory(),De)))return;const be=Q.getSourceFile(Xe);Xe=Or(ue,rt=>!!rt.redirectInfo&&rt.redirectInfo.redirectTarget===be).fileName,E.assert(fe.has(Xe))}return{fileName:Xe,highlightSpans:ve}}))}function a(X,H){const Q=o(X,H);return Q&&[{fileName:H.fileName,highlightSpans:Q}]}function o(X,H){switch(X.kind){case 101:case 93:return tT(X.parent)?Z(X.parent,H):void 0;case 107:return ne(X.parent,id,Y);case 111:return ne(X.parent,tG,U);case 113:case 85:case 98:const fe=X.kind===85?X.parent.parent:X.parent;return ne(fe,g2,V);case 109:return ne(X.parent,cA,M);case 84:case 90:return _A(X.parent)||t4(X.parent)?ne(X.parent.parent.parent,cA,M):void 0;case 83:case 88:return ne(X.parent,$C,D);case 99:case 117:case 92:return ne(X.parent,G=>n1(G,!0),N);case 137:return Q(Cc,[137]);case 139:case 153:return Q(t1,[139,153]);case 135:return ne(X.parent,p1,j);case 134:return ue(j(X));case 127:return ue(ee(X));case 103:return;default:return q0(X.kind)&&(l_(X.parent)||ic(X.parent))?ue(x(X.kind,X.parent)):void 0}function Q(fe,G){return ne(X.parent,fe,Ne=>{var De;return Hi((De=Hr(Ne,Pd))==null?void 0:De.symbol.declarations,Xe=>fe(Xe)?Or(Xe.getChildren(H),ve=>ys(G,ve.kind)):void 0)})}function ne(fe,G,Ne){return G(fe)?ue(Ne(fe,H)):void 0}function ue(fe){return fe&&fe.map(G=>r(G,H))}}function l(X){return tG(X)?[X]:g2(X)?es(X.catchClause?l(X.catchClause):X.tryBlock&&l(X.tryBlock),X.finallyBlock&&l(X.finallyBlock)):Cs(X)?void 0:g(X,l)}function u(X){let H=X;for(;H.parent;){const Q=H.parent;if(n2(Q)||Q.kind===312)return Q;if(g2(Q)&&Q.tryBlock===H&&Q.catchClause)return H;H=Q}}function f(X){return $C(X)?[X]:Cs(X)?void 0:g(X,f)}function g(X,H){const Q=[];return X.forEachChild(ne=>{const ue=H(ne);ue!==void 0&&Q.push(...z7(ue))}),Q}function m(X,H){const Q=y(H);return!!Q&&Q===X}function y(X){return In(X,H=>{switch(H.kind){case 255:if(X.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!X.label||_e(H,X.label.escapedText);default:return Cs(H)&&"quit"}})}function x(X,H){return Hi(k(H,$x(X)),Q=>E4(Q,X))}function k(X,H){const Q=X.parent;switch(Q.kind){case 268:case 312:case 241:case 296:case 297:return H&256&&Qc(X)?[...X.members,X]:Q.statements;case 176:case 174:case 262:return[...Q.parameters,...ni(Q.parent)?Q.parent.members:[]];case 263:case 231:case 264:case 187:const ne=Q.members;if(H&92){const ue=Or(Q.members,Cc);if(ue)return[...ne,...ue.parameters]}else if(H&256)return[...ne,Q];return ne;case 210:return;default:E.assertNever(Q,"Invalid container kind.")}}function C(X,H,...Q){return H&&ys(Q,H.kind)?(X.push(H),!0):!1}function N(X){const H=[];if(C(H,X.getFirstToken(),99,117,92)&&X.kind===246){const Q=X.getChildren();for(let ne=Q.length-1;ne>=0&&!C(H,Q[ne],117);ne--);}return pn(f(X.statement),Q=>{m(X,Q)&&C(H,Q.getFirstToken(),83,88)}),H}function D(X){const H=y(X);if(H)switch(H.kind){case 248:case 249:case 250:case 246:case 247:return N(H);case 255:return M(H)}}function M(X){const H=[];return C(H,X.getFirstToken(),109),pn(X.caseBlock.clauses,Q=>{C(H,Q.getFirstToken(),84,90),pn(f(Q),ne=>{m(X,ne)&&C(H,ne.getFirstToken(),83)})}),H}function V(X,H){const Q=[];if(C(Q,X.getFirstToken(),113),X.catchClause&&C(Q,X.catchClause.getFirstToken(),85),X.finallyBlock){const ne=$a(X,98,H);C(Q,ne,98)}return Q}function U(X,H){const Q=u(X);if(!Q)return;const ne=[];return pn(l(Q),ue=>{ne.push($a(ue,111,H))}),n2(Q)&&t2(Q,ue=>{ne.push($a(ue,107,H))}),ne}function Y(X,H){const Q=df(X);if(!Q)return;const ne=[];return t2(Bs(Q.body,vs),ue=>{ne.push($a(ue,107,H))}),pn(l(Q.body),ue=>{ne.push($a(ue,111,H))}),ne}function j(X){const H=df(X);if(!H)return;const Q=[];return H.modifiers&&H.modifiers.forEach(ne=>{C(Q,ne,134)}),bs(H,ne=>{R(ne,ue=>{p1(ue)&&C(Q,ue.getFirstToken(),135)})}),Q}function ee(X){const H=df(X);if(!H)return;const Q=[];return bs(H,ne=>{R(ne,ue=>{yF(ue)&&C(Q,ue.getFirstToken(),127)})}),Q}function R(X,H){H(X),!Cs(X)&&!ni(X)&&!f_(X)&&!Ac(X)&&!Dp(X)&&!Ai(X)&&bs(X,Q=>R(Q,H))}function Z(X,H){const Q=oe(X,H),ne=[];for(let ue=0;ue=fe.end;De--)if(!Nd(H.text.charCodeAt(De))){Ne=!1;break}if(Ne){ne.push({fileName:H.fileName,textSpan:ll(fe.getStart(),G.end),kind:"reference"}),ue++;continue}}ne.push(r(Q[ue],H))}return ne}function oe(X,H){const Q=[];for(;tT(X.parent)&&X.parent.elseStatement===X;)X=X.parent;for(;;){const ne=X.getChildren(H);C(Q,ne[0],101);for(let ue=ne.length-1;ue>=0&&!C(Q,ne[ue],93);ue--);if(!X.elseStatement||!tT(X.elseStatement))break;X=X.elseStatement}return Q}function _e(X,H){return!!In(X.parent,Q=>m2(Q)?Q.label.escapedText===H:"quit")}})(aR||(aR={}))}});function H5(e){return!!e.sourceFile}function mZ(e,t){return G1e(e,t)}function G1e(e,t="",r){const i=new Map,a=Ql(!!e);function o(){const N=ra(i.keys()).filter(D=>D&&D.charAt(0)==="_").map(D=>{const M=i.get(D),V=[];return M.forEach((U,Y)=>{H5(U)?V.push({name:Y,scriptKind:U.sourceFile.scriptKind,refCount:U.languageServiceRefCount}):U.forEach((j,ee)=>V.push({name:Y,scriptKind:ee,refCount:j.languageServiceRefCount}))}),V.sort((U,Y)=>Y.refCount-U.refCount),{bucket:D,sourceFiles:V}});return JSON.stringify(N,void 0,2)}function l(N){return typeof N.getCompilationSettings=="function"?N.getCompilationSettings():N}function u(N,D,M,V,U,Y){const j=ho(N,t,a),ee=oR(l(D));return f(N,j,D,ee,M,V,U,Y)}function f(N,D,M,V,U,Y,j,ee){return x(N,D,M,V,U,Y,!0,j,ee)}function g(N,D,M,V,U,Y){const j=ho(N,t,a),ee=oR(l(D));return m(N,j,D,ee,M,V,U,Y)}function m(N,D,M,V,U,Y,j,ee){return x(N,D,l(M),V,U,Y,!1,j,ee)}function y(N,D){const M=H5(N)?N:N.get(E.checkDefined(D,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return E.assert(D===void 0||!M||M.sourceFile.scriptKind===D,`Script kind should match provided ScriptKind:${D} and sourceFile.scriptKind: ${M==null?void 0:M.sourceFile.scriptKind}, !entry: ${!M}`),M}function x(N,D,M,V,U,Y,j,ee,R){var Z,oe,_e,X;ee=TO(N,ee);const H=l(M),Q=M===H?void 0:M,ne=ee===6?100:Ia(H),ue=typeof R=="object"?R:{languageVersion:ne,impliedNodeFormat:Q&&u5(D,(X=(_e=(oe=(Z=Q.getCompilerHost)==null?void 0:Z.call(Q))==null?void 0:oe.getModuleResolutionCache)==null?void 0:_e.call(oe))==null?void 0:X.getPackageJsonInfoCache(),Q,H),setExternalModuleIndicator:DD(H)};ue.languageVersion=ne;const fe=i.size,G=gZ(V,ue.impliedNodeFormat),Ne=F7(i,G,()=>new Map);if(li){i.size>fe&&li.instant(li.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:H.configFilePath,key:G});const be=!ou(D)&&Au(i,(xe,rt)=>rt!==G&&xe.has(D)&&rt);be&&li.instant(li.Phase.Session,"documentRegistryBucketOverlap",{path:D,key1:be,key2:G})}const De=Ne.get(D);let Xe=De&&y(De,ee);if(!Xe&&r){const be=r.getDocument(G,D);be&&(E.assert(j),Xe={sourceFile:be,languageServiceRefCount:0},ve())}if(Xe)Xe.sourceFile.version!==Y&&(Xe.sourceFile=DK(Xe.sourceFile,U,Y,U.getChangeRange(Xe.sourceFile.scriptSnapshot)),r&&r.setDocument(G,D,Xe.sourceFile)),j&&Xe.languageServiceRefCount++;else{const be=WR(N,U,ue,Y,!1,ee);r&&r.setDocument(G,D,be),Xe={sourceFile:be,languageServiceRefCount:1},ve()}return E.assert(Xe.languageServiceRefCount!==0),Xe.sourceFile;function ve(){if(!De)Ne.set(D,Xe);else if(H5(De)){const be=new Map;be.set(De.sourceFile.scriptKind,De),be.set(ee,Xe),Ne.set(D,be)}else De.set(ee,Xe)}}function k(N,D,M,V){const U=ho(N,t,a),Y=oR(D);return C(U,Y,M,V)}function C(N,D,M,V){const U=E.checkDefined(i.get(gZ(D,V))),Y=U.get(N),j=y(Y,M);j.languageServiceRefCount--,E.assert(j.languageServiceRefCount>=0),j.languageServiceRefCount===0&&(H5(Y)?U.delete(N):(Y.delete(M),Y.size===1&&U.set(N,N7(Y.values(),Zo))))}return{acquireDocument:u,acquireDocumentWithKey:f,updateDocument:g,updateDocumentWithKey:m,releaseDocument:k,releaseDocumentWithKey:C,getKeyForCompilationSettings:oR,getDocumentRegistryBucketKeyWithMode:gZ,reportStats:o,getBuckets:()=>i}}function oR(e){return l$(e,GF)}function gZ(e,t){return t?`${e}|${t}`:e}var nLe=Rt({"src/services/documentRegistry.ts"(){Wr()}});function $1e(e,t,r,i,a,o,l){const u=yD(i),f=Ql(u),g=hZ(t,r,f,l),m=hZ(r,t,f,l);return tr.ChangeTracker.with({host:i,formatContext:a,preferences:o},y=>{iLe(e,y,g,t,r,i.getCurrentDirectory(),u),sLe(e,y,g,m,i,f)})}function hZ(e,t,r,i){const a=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),f=o(u?u.fileName:l);return u?f===void 0?void 0:rLe(u.fileName,f,l,r):f};function o(l){if(r(l)===a)return t;const u=Hq(l,a,r);return u===void 0?void 0:t+"/"+u}}function rLe(e,t,r,i){const a=sw(e,t,i);return yZ(Ti(r),a)}function iLe(e,t,r,i,a,o,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const f=Ti(u.fileName),g=s3(u);if(!g)return;vZ(g,(k,C)=>{switch(C){case"files":case"include":case"exclude":{if(m(k)||C!=="include"||!u_(k.initializer))return;const D=Hi(k.initializer.elements,V=>fa(V)?V.text:void 0);if(D.length===0)return;const M=L3(f,[],D,l,o);l1(E.checkDefined(M.includeFilePattern),l).test(i)&&!l1(E.checkDefined(M.includeFilePattern),l).test(a)&&t.insertNodeAfter(u,ka(k.initializer.elements),I.createStringLiteral(x(a)));return}case"compilerOptions":vZ(k.initializer,(N,D)=>{const M=IG(D);E.assert((M==null?void 0:M.type)!=="listOrElement"),M&&(M.isFilePath||M.type==="list"&&M.element.isFilePath)?m(N):D==="paths"&&vZ(N.initializer,V=>{if(!!u_(V.initializer))for(const U of V.initializer.elements)y(U)})});return}});function m(k){const C=u_(k.initializer)?k.initializer.elements:[k.initializer];let N=!1;for(const D of C)N=y(D)||N;return N}function y(k){if(!fa(k))return!1;const C=yZ(f,k.text),N=r(C);return N!==void 0?(t.replaceRangeWithText(u,Q1e(k,u),x(N)),!0):!1}function x(k){return um(f,k,!l)}}function sLe(e,t,r,i,a,o){const l=e.getSourceFiles();for(const u of l){const f=r(u.fileName),g=f!=null?f:u.fileName,m=Ti(g),y=i(u.fileName),x=y||u.fileName,k=Ti(x),C=f!==void 0||y!==void 0;cLe(u,t,N=>{if(!$u(N))return;const D=yZ(k,N),M=r(D);return M===void 0?void 0:Wv(um(m,M,o))},N=>{const D=e.getTypeChecker().getSymbolAtLocation(N);if((D==null?void 0:D.declarations)&&D.declarations.some(V=>__(V)))return;const M=y!==void 0?X1e(N,T8(N.text,x,e.getCompilerOptions(),a),r,l):oLe(D,N,u,e,a,r);return M!==void 0&&(M.updated||C&&$u(N.text))?S2.updateModuleSpecifier(e.getCompilerOptions(),u,o(g),M.newFileName,ST(e,a),N.text):void 0})}}function aLe(e,t){return ba(Ii(e,t))}function yZ(e,t){return Wv(aLe(e,t))}function oLe(e,t,r,i,a,o){var l;if(e){const u=Or(e.declarations,Bi).fileName,f=o(u);return f===void 0?{newFileName:u,updated:!1}:{newFileName:f,updated:!0}}else{const u=cp(r,t),f=a.resolveModuleNameLiterals||!a.resolveModuleNames?(l=r.resolvedModules)==null?void 0:l.get(t.text,u):a.getResolvedModuleWithFailedLookupLocationsFromCache&&a.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,u);return X1e(t,f,o,i.getSourceFiles())}}function X1e(e,t,r,i){if(!t)return;if(t.resolvedModule){const f=u(t.resolvedModule.resolvedFileName);if(f)return f}const a=pn(t.failedLookupLocations,o)||$u(e.text)&&pn(t.failedLookupLocations,l);if(a)return a;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(f){const g=r(f);return g&&Or(i,m=>m.fileName===g)?l(f):void 0}function l(f){return vc(f,"/package.json")?void 0:u(f)}function u(f){const g=r(f);return g&&{newFileName:g,updated:!0}}}function cLe(e,t,r,i){for(const a of e.referencedFiles||Ve){const o=r(a.fileName);o!==void 0&&o!==e.text.slice(a.pos,a.end)&&t.replaceRangeWithText(e,a,o)}for(const a of e.imports){const o=i(a);o!==void 0&&o!==a.text&&t.replaceRangeWithText(e,Q1e(a,e),o)}}function Q1e(e,t){return tp(e.getStart(t)+1,e.end-1)}function vZ(e,t){if(!!ha(e))for(const r of e.properties)Ec(r)&&fa(r.name)&&t(r,r.name.text)}var lLe=Rt({"src/services/getEditsForFileRename.ts"(){Wr()}});function G5(e,t){return{kind:e,isCaseSensitive:t}}function Y1e(e){const t=new Map,r=e.trim().split(".").map(i=>pLe(i.trim()));if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,a)=>_Le(i,a,r,t),getMatchForLastSegmentOfPattern:i=>bZ(i,ka(r),t),patternContainsDots:r.length>1}}function _Le(e,t,r,i){if(!bZ(t,ka(r),i)||r.length-1>e.length)return;let o;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)o=eye(o,bZ(e[u],r[l],i));return o}function Z1e(e,t){let r=t.get(e);return r||t.set(e,r=iye(e)),r}function K1e(e,t,r){const i=dLe(e,t.textLowerCase);if(i===0)return G5(t.text.length===e.length?0:1,ns(e,t.text));if(t.isLowerCase){if(i===-1)return;const a=Z1e(e,r);for(const o of a)if(TZ(e,o,t.text,!0))return G5(2,TZ(e,o,t.text,!1));if(t.text.length0)return G5(2,!0);if(t.characterSpans.length>0){const a=Z1e(e,r),o=tye(e,a,t,!1)?!0:tye(e,a,t,!0)?!1:void 0;if(o!==void 0)return G5(3,o)}}}function bZ(e,t,r){if(cR(t.totalTextChunk.text,o=>o!==32&&o!==42)){const o=K1e(e,t.totalTextChunk,r);if(o)return o}const i=t.subWordTextChunks;let a;for(const o of i)a=eye(a,K1e(e,o,r));return a}function eye(e,t){return mV([e,t],uLe)}function uLe(e,t){return e===void 0?1:t===void 0?-1:Co(e.kind,t.kind)||jv(!e.isCaseSensitive,!t.isCaseSensitive)}function TZ(e,t,r,i,a={start:0,length:r.length}){return a.length<=t.length&&oye(0,a.length,o=>fLe(r.charCodeAt(a.start+o),e.charCodeAt(t.start+o),i))}function fLe(e,t,r){return r?xZ(e)===xZ(t):e===t}function tye(e,t,r,i){const a=r.characterSpans;let o=0,l=0;for(;;){if(l===a.length)return!0;if(o===t.length)return!1;let u=t[o],f=!1;for(;l=65&&e<=90)return!0;if(e<127||!VI(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function nye(e){if(e>=97&&e<=122)return!0;if(e<127||!VI(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function dLe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(cR(t,(a,o)=>xZ(e.charCodeAt(o+i))===a))return i;return-1}function xZ(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function SZ(e){return e>=48&&e<=57}function mLe(e){return LS(e)||nye(e)||SZ(e)||e===95||e===36}function gLe(e){const t=[];let r=0,i=0;for(let a=0;a0&&(t.push(kZ(e.substr(r,i))),i=0)}return i>0&&t.push(kZ(e.substr(r,i))),t}function kZ(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:rye(e)}}function rye(e){return sye(e,!1)}function iye(e){return sye(e,!0)}function sye(e,t){const r=[];let i=0;for(let a=1;aCZ(i)&&i!==95,t,r)}function hLe(e,t,r){return t!==r&&t+1t(e.charCodeAt(a),a))}var lR,vLe=Rt({"src/services/patternMatcher.ts"(){Wr(),lR=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(lR||{})}});function cye(e,t=!0,r=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},a=[];let o,l,u,f=0,g=!1;function m(){return l=u,u=g_.scan(),u===19?f++:u===20&&f--,u}function y(){const j=g_.getTokenValue(),ee=g_.getTokenStart();return{fileName:j,pos:ee,end:ee+j.length}}function x(){o||(o=[]),o.push({ref:y(),depth:f})}function k(){a.push(y()),C()}function C(){f===0&&(g=!0)}function N(){let j=g_.getToken();return j===138?(j=m(),j===144&&(j=m(),j===11&&x()),!0):!1}function D(){if(l===25)return!1;let j=g_.getToken();if(j===102){if(j=m(),j===21){if(j=m(),j===11||j===15)return k(),!0}else{if(j===11)return k(),!0;if(j===156&&g_.lookAhead(()=>{const R=g_.scan();return R!==161&&(R===42||R===19||R===80||su(R))})&&(j=m()),j===80||su(j))if(j=m(),j===161){if(j=m(),j===11)return k(),!0}else if(j===64){if(V(!0))return!0}else if(j===28)j=m();else return!0;if(j===19){for(j=m();j!==20&&j!==1;)j=m();j===20&&(j=m(),j===161&&(j=m(),j===11&&k()))}else j===42&&(j=m(),j===130&&(j=m(),(j===80||su(j))&&(j=m(),j===161&&(j=m(),j===11&&k()))))}return!0}return!1}function M(){let j=g_.getToken();if(j===95){if(C(),j=m(),j===156&&g_.lookAhead(()=>{const R=g_.scan();return R===42||R===19})&&(j=m()),j===19){for(j=m();j!==20&&j!==1;)j=m();j===20&&(j=m(),j===161&&(j=m(),j===11&&k()))}else if(j===42)j=m(),j===161&&(j=m(),j===11&&k());else if(j===102&&(j=m(),j===156&&g_.lookAhead(()=>{const R=g_.scan();return R===80||su(R)})&&(j=m()),(j===80||su(j))&&(j=m(),j===64&&V(!0))))return!0;return!0}return!1}function V(j,ee=!1){let R=j?m():g_.getToken();return R===149?(R=m(),R===21&&(R=m(),(R===11||ee&&R===15)&&k()),!0):!1}function U(){let j=g_.getToken();if(j===80&&g_.getTokenValue()==="define"){if(j=m(),j!==21)return!0;if(j=m(),j===11||j===15)if(j=m(),j===28)j=m();else return!0;if(j!==23)return!0;for(j=m();j!==24&&j!==1;)(j===11||j===15)&&k(),j=m();return!0}return!1}function Y(){for(g_.setText(e),m();g_.getToken()!==1;){if(g_.getToken()===16){const j=[g_.getToken()];e:for(;Nn(j);){const ee=g_.scan();switch(ee){case 1:break e;case 102:D();break;case 16:j.push(ee);break;case 19:Nn(j)&&j.push(ee);break;case 20:Nn(j)&&(jo(j)===16?g_.reScanTemplateToken(!1)===18&&j.pop():j.pop());break}}m()}N()||D()||M()||r&&(V(!1,!0)||U())||m()}g_.setText(void 0)}if(t&&Y(),wG(i,e),DG(i,co),g){if(o)for(const j of o)a.push(j.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:a,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let j;if(o)for(const ee of o)ee.depth===0?(j||(j=[]),j.push(ee.ref.fileName)):a.push(ee.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:a,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:j}}}var bLe=Rt({"src/services/preProcess.ts"(){Wr()}});function lye(e){const t=Ql(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,a=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:f,toLineColumnOffset:x,clearCache:k};function o(C){return ho(C,r,t)}function l(C,N){const D=o(C),M=a.get(D);if(M)return M;let V;if(e.getDocumentPositionMapper)V=e.getDocumentPositionMapper(C,N);else if(e.readFile){const U=y(C);V=U&&_ye({getSourceFileLike:y,getCanonicalFileName:t,log:Y=>e.log(Y)},C,Ome(U.text,Ug(U)),Y=>!e.fileExists||e.fileExists(Y)?e.readFile(Y):void 0)}return a.set(D,V||EL),V||EL}function u(C){if(!ou(C.fileName)||!g(C.fileName))return;const D=l(C.fileName).getSourcePosition(C);return!D||D===C?void 0:u(D)||D}function f(C){if(ou(C.fileName))return;const N=g(C.fileName);if(!N)return;const D=e.getProgram();if(D.isSourceOfProjectReferenceRedirect(N.fileName))return;const M=D.getCompilerOptions(),V=Ao(M),U=V?gu(V)+".d.ts":Tq(C.fileName,D.getCompilerOptions(),r,D.getCommonSourceDirectory(),t);if(U===void 0)return;const Y=l(U,C.fileName).getGeneratedPosition(C);return Y===C?void 0:Y}function g(C){const N=e.getProgram();if(!N)return;const D=o(C),M=N.getSourceFileByPath(D);return M&&M.resolvedPath===D?M:void 0}function m(C){const N=o(C),D=i.get(N);if(D!==void 0)return D||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(N)){i.set(N,!1);return}const M=e.readFile(N),V=M?TLe(M):!1;return i.set(N,V),V||void 0}function y(C){return e.getSourceFileLike?e.getSourceFileLike(C):g(C)||m(C)}function x(C,N){return y(C).getLineAndCharacterOfPosition(N)}function k(){i.clear(),a.clear()}}function _ye(e,t,r,i){let a=Fme(r);if(a){const u=fye.exec(a);if(u){if(u[1]){const f=u[1];return uye(e,q_e(jl,f),t)}a=void 0}}const o=[];a&&o.push(a),o.push(t+".map");const l=a&&ms(a,Ti(t));for(const u of o){const f=ms(u,Ti(t)),g=i(f,l);if(Gs(g))return uye(e,g,f);if(g!==void 0)return g||void 0}}function uye(e,t,r){const i=R$(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Gs)))return jme(e,i,r)}function TLe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return _w(Ug(this),r)}}}var fye,xLe=Rt({"src/services/sourcemaps.ts"(){Wr(),fye=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function EZ(e,t,r){t.getSemanticDiagnostics(e,r);const i=[],a=t.getTypeChecker();!(e.impliedNodeFormat===1||Gc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(n1e(t)||IY(t.getCompilerOptions()))&&SLe(e)&&i.push(br(wLe(e.commonJsModuleIndicator),p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const l=P_(e);if(uR.clear(),u(e),Yx(t.getCompilerOptions()))for(const f of e.imports){const g=eD(f),m=kLe(g);if(!m)continue;const y=Fx(e,f.text,cp(e,f)),x=y&&t.getSourceFile(y.resolvedFileName);x&&x.externalModuleIndicator&&x.externalModuleIndicator!==!0&&fc(x.externalModuleIndicator)&&x.externalModuleIndicator.isExportEquals&&i.push(br(m,p.Import_may_be_converted_to_a_default_import))}return Fr(i,e.bindSuggestionDiagnostics),Fr(i,t.getSuggestionDiagnostics(e,r)),i.sort((f,g)=>f.start-g.start);function u(f){if(l)ALe(f,a)&&i.push(br(Ri(f.parent)?f.parent.name:f,p.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(ic(f)&&f.parent===e&&f.declarationList.flags&2&&f.declarationList.declarations.length===1){const m=f.declarationList.declarations[0].initializer;m&&mu(m,!0)&&i.push(br(m,p.require_call_may_be_converted_to_an_import))}const g=n_.getJSDocTypedefNodes(f);for(const m of g)i.push(br(m,p.JSDoc_typedef_may_be_converted_to_TypeScript_type));n_.parameterShouldGetTypeFromJSDoc(f)&&i.push(br(f.name||f,p.JSDoc_types_may_be_moved_to_TypeScript_types))}AZ(f)&&CLe(f,a,i),f.forEachChild(u)}}function SLe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&mu(pye(r.initializer),!0));case 244:{const{expression:r}=t;if(!rr(r))return mu(r,!0);const i=uc(r);return i===1||i===2}default:return!1}})}function pye(e){return kr(e)?pye(e.expression):e}function kLe(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&fa(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function CLe(e,t,r){ELe(e,t)&&!uR.has(hye(e))&&r.push(br(!e.name&&Ri(e.parent)&&we(e.parent.name)?e.parent.name:e,p.This_may_be_converted_to_an_async_function))}function ELe(e,t){return!A6(e)&&e.body&&vs(e.body)&&DLe(e.body,t)&&wZ(e,t)}function wZ(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function wLe(e){return rr(e)?e.left:e}function DLe(e,t){return!!t2(e,r=>_R(r,t))}function _R(e,t){return id(e)&&!!e.expression&&DZ(e.expression,t)}function DZ(e,t){if(!dye(e)||!mye(e)||!e.arguments.every(i=>gye(i,t)))return!1;let r=e.expression.expression;for(;dye(r)||kr(r);)if(Js(r)){if(!mye(r)||!r.arguments.every(i=>gye(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function dye(e){return Js(e)&&(S5(e,"then")||S5(e,"catch")||S5(e,"finally"))}function mye(e){const t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengthi.kind===106||we(i)&&i.text==="undefined")}function gye(e,t){switch(e.kind){case 262:case 218:if(Il(e)&1)return!1;case 219:uR.set(hye(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||dt(au(i,t).declarations,a=>Cs(a)||i1(a)&&!!a.initializer&&Cs(a.initializer)):!1}default:return!1}}function hye(e){return`${e.pos.toString()}:${e.end.toString()}`}function ALe(e,t){var r,i,a,o;if(_o(e)){if(Ri(e.parent)&&((r=e.symbol.members)==null?void 0:r.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&(((i=l.exports)==null?void 0:i.size)||((a=l.members)==null?void 0:a.size)))}return tl(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function AZ(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var uR,NLe=Rt({"src/services/suggestionDiagnostics.ts"(){Wr(),uR=new Map}});function yye(e,t){const r=[],i=t.compilerOptions?NZ(t.compilerOptions,r):{},a=UR();for(const x in a)oo(a,x)&&i[x]===void 0&&(i[x]=a[x]);for(const x of ZG)i.verbatimModuleSyntax&&vye.has(x.name)||(i[x.name]=x.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const o=K0(i),l={getSourceFile:x=>x===ba(u)?f:void 0,writeFile:(x,k)=>{Hc(x,".map")?(E.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",x),m=k):(E.assertEqual(g,void 0,"Unexpected multiple outputs, file:",x),g=k)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:x=>x,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:x=>x===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),f=SA(u,e,{languageVersion:Ia(i),impliedNodeFormat:u5(ho(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:DD(i)});t.moduleName&&(f.moduleName=t.moduleName),t.renamedDependencies&&(f.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let g,m;const y=HL([u],i,l);return t.reportDiagnostics&&(Fr(r,y.getSyntacticDiagnostics(f)),Fr(r,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),g===void 0?E.fail("Output generation failed"):{outputText:g,diagnostics:r,sourceMapText:m}}function PLe(e,t,r,i,a){const o=yye(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:a});return Fr(i,o.diagnostics),o.outputText}function NZ(e,t){PZ=PZ||zr(t0,r=>typeof r.type=="object"&&!Au(r.type,i=>typeof i!="number")),e=Yhe(e);for(const r of PZ){if(!oo(e,r.name))continue;const i=e[r.name];Gs(i)?e[r.name]=jF(r,i,t):Au(r.type,a=>a===i)||t.push(Bpe(r))}return e}var vye,PZ,ILe=Rt({"src/services/transpile.ts"(){Wr(),vye=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function bye(e,t,r,i,a,o){const l=Y1e(i);if(!l)return Ve;const u=[];for(const f of e)r.throwIfCancellationRequested(),!(o&&f.isDeclarationFile)&&f.getNamedDeclarations().forEach((g,m)=>{OLe(l,m,g,t,f.fileName,u)});return u.sort(RLe),(a===void 0?u:u.slice(0,a)).map(BLe)}function OLe(e,t,r,i,a,o){const l=e.getMatchForLastSegmentOfPattern(t);if(!!l){for(const u of r)if(!!FLe(u,i))if(e.patternContainsDots){const f=e.getFullMatch(MLe(u),t);f&&o.push({name:t,fileName:a,matchKind:f.kind,isCaseSensitive:f.isCaseSensitive,declaration:u})}else o.push({name:t,fileName:a,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:u})}}function FLe(e,t){switch(e.kind){case 273:case 276:case 271:const r=t.getSymbolAtLocation(e.name),i=t.getAliasedSymbol(r);return r.escapedName!==i.escapedName;default:return!0}}function LLe(e,t){const r=os(e);return!!r&&(Tye(r,t)||r.kind===167&&IZ(r.expression,t))}function IZ(e,t){return Tye(e,t)||kr(e)&&(t.push(e.name.text),!0)&&IZ(e.expression,t)}function Tye(e,t){return Fd(e)&&(t.push(Cp(e)),!0)}function MLe(e){const t=[],r=os(e);if(r&&r.kind===167&&!IZ(r.expression,t))return Ve;t.shift();let i=bT(e);for(;i;){if(!LLe(i,t))return Ve;i=bT(i)}return t.reverse()}function RLe(e,t){return Co(e.matchKind,t.matchKind)||V7(e.name,t.name)}function BLe(e){const t=e.declaration,r=bT(t),i=r&&os(r);return{name:e.name,kind:A2(t),kindModifiers:z8(t),matchKind:lR[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:cu(t),containerName:i?i.text:"",containerKind:i?A2(r):""}}var jLe=Rt({"src/services/navigateTo.ts"(){Wr()}}),xye={};C_(xye,{getNavigateToItems:()=>bye});var Sye=Rt({"src/services/_namespaces/ts.NavigateTo.ts"(){jLe()}});function kye(e,t){mR=t,Y8=e;try{return an(WLe(Dye(e)),qLe)}finally{Eye()}}function Cye(e,t){mR=t,Y8=e;try{return Rye(Dye(e))}finally{Eye()}}function Eye(){Y8=void 0,mR=void 0,Z8=[],a0=void 0,gR=[]}function $5(e){return N4(e.getText(Y8))}function fR(e){return e.node.kind}function wye(e,t){e.children?e.children.push(t):e.children=[t]}function Dye(e){E.assert(!Z8.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a0=t;for(const r of e.statements)wT(r);return S1(),E.assert(!a0&&!Z8.length),t}function jy(e,t){wye(a0,OZ(e,t))}function OZ(e,t){return{node:e,name:t||(l_(e)||nt(e)?os(e):void 0),additionalNodes:void 0,parent:a0,children:void 0,indent:a0.indent+1}}function Aye(e){MS||(MS=new Map),MS.set(e,!0)}function Nye(e){for(let t=0;t0;i--){const a=r[i];Jy(e,a)}return[r.length-1,r[0]]}function Jy(e,t){const r=OZ(e,t);wye(a0,r),Z8.push(a0),zZ.push(MS),MS=void 0,a0=r}function S1(){a0.children&&(pR(a0.children,a0),MZ(a0.children)),a0=Z8.pop(),MS=zZ.pop()}function k1(e,t,r){Jy(e,r),wT(t),S1()}function Iye(e){e.initializer&&GLe(e.initializer)?(Jy(e),bs(e.initializer,wT),S1()):k1(e,e.initializer)}function FZ(e){return!X0(e)||e.kind!==226&&kr(e.name.expression)&&we(e.name.expression.expression)&&lr(e.name.expression.expression)==="Symbol"}function wT(e){if(mR.throwIfCancellationRequested(),!(!e||Ax(e)))switch(e.kind){case 176:const t=e;k1(t,t.body);for(const l of t.parameters)Du(l,t)&&jy(l);break;case 174:case 177:case 178:case 173:FZ(e)&&k1(e,e.body);break;case 172:FZ(e)&&Iye(e);break;case 171:FZ(e)&&jy(e);break;case 273:const r=e;r.name&&jy(r.name);const{namedBindings:i}=r;if(i)if(i.kind===274)jy(i);else for(const l of i.elements)jy(l);break;case 304:k1(e,e.name);break;case 305:const{expression:a}=e;we(a)?jy(e,a):jy(e);break;case 208:case 303:case 260:{const l=e;Ps(l.name)?wT(l.name):Iye(l);break}case 262:const o=e.name;o&&we(o)&&Aye(o.text),k1(e,e.body);break;case 219:case 218:k1(e,e.body);break;case 266:Jy(e);for(const l of e.members)HLe(l)||jy(l);S1();break;case 263:case 231:case 264:Jy(e);for(const l of e.members)wT(l);S1();break;case 267:k1(e,jye(e).body);break;case 277:{const l=e.expression,u=ha(l)||Js(l)?l:Po(l)||_o(l)?l.body:void 0;u?(Jy(e),wT(u),S1()):jy(e);break}case 281:case 271:case 181:case 179:case 180:case 265:jy(e);break;case 213:case 226:{const l=uc(e);switch(l){case 1:case 2:k1(e,e.right);return;case 6:case 3:{const u=e,f=u.left,g=l===3?f.expression:f;let m=0,y;we(g.expression)?(Aye(g.expression.text),y=g.expression):[m,y]=Pye(u,g.expression),l===6?ha(u.right)&&u.right.properties.length>0&&(Jy(u,y),bs(u.right,wT),S1()):_o(u.right)||Po(u.right)?k1(e,u.right,y):(Jy(u,y),k1(e,u.right,f.name),S1()),Nye(m);return}case 7:case 9:{const u=e,f=l===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[m,y]=Pye(e,f);Jy(e,y),Jy(e,Ke(I.createIdentifier(g.text),g)),wT(e.arguments[2]),S1(),S1(),Nye(m);return}case 5:{const u=e,f=u.left,g=f.expression;if(we(g)&&$g(f)!=="prototype"&&MS&&MS.has(g.text)){_o(u.right)||Po(u.right)?k1(e,u.right,g):zb(f)&&(Jy(u,g),k1(u.left,u.right,Qw(f)),S1());return}break}case 4:case 0:case 8:break;default:E.assertNever(l)}}default:Qu(e)&&pn(e.jsDoc,l=>{pn(l.tags,u=>{Kf(u)&&jy(u)})}),bs(e,wT)}}function pR(e,t){const r=new Map;tV(e,(i,a)=>{const o=i.name||os(i.node),l=o&&$5(o);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const f of u)if(Oye(f,i,a,t))return!1;return u.push(i),!0}else{const f=u;return Oye(f,i,a,t)?!1:(r.set(l,[f,i]),!0)}})}function JLe(e,t,r,i){function a(u){return _o(u)||tl(u)||Ri(u)}const o=rr(t.node)||Js(t.node)?uc(t.node):0,l=rr(e.node)||Js(e.node)?uc(e.node):0;if(P4[o]&&P4[l]||a(e.node)&&P4[o]||a(t.node)&&P4[l]||Qc(e.node)&&LZ(e.node)&&P4[o]||Qc(t.node)&&P4[l]||Qc(e.node)&&LZ(e.node)&&a(t.node)||Qc(t.node)&&a(e.node)&&LZ(e.node)){let u=e.additionalNodes&&jo(e.additionalNodes)||e.node;if(!Qc(e.node)&&!Qc(t.node)||a(e.node)||a(t.node)){const g=a(e.node)?e.node:a(t.node)?t.node:void 0;if(g!==void 0){const m=Ke(I.createConstructorDeclaration(void 0,[],void 0),g),y=OZ(m);y.indent=e.indent+1,y.children=e.node===g?e.children:t.children,e.children=e.node===g?es([y],t.children||[t]):es(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=es(e.children||[{...e}],t.children||[t]),e.children&&(pR(e.children,e),MZ(e.children)));u=e.node=Ke(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=es(e.children,t.children),e.children&&pR(e.children,e);const f=t.node;return i.children[r-1].node.end===u.end?Ke(u,{pos:u.pos,end:f.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(Ke(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function Oye(e,t,r,i){return JLe(e,t,r,i)?!0:zLe(e.node,t.node,i)?(VLe(e,t),!0):!1}function zLe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(Fye(e,r)&&Fye(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Os(e)===Os(t);case 267:return Lye(e,t)&&jZ(e)===jZ(t);default:return!0}}function LZ(e){return!!(e.flags&16)}function Fye(e,t){const r=Jd(e.parent)?e.parent.parent:e.parent;return r===t.node||ys(t.additionalNodes,r)}function Lye(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||Lye(e.body,t.body))}function VLe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=es(e.children,t.children),e.children&&(pR(e.children,e),MZ(e.children))}function MZ(e){e.sort(ULe)}function ULe(e,t){return V7(Mye(e.node),Mye(t.node))||Co(fR(e),fR(t))}function Mye(e){if(e.kind===267)return Bye(e);const t=os(e);if(t&&Jc(t)){const r=xy(t);return r&&Oi(r)}switch(e.kind){case 218:case 219:case 231:return zye(e);default:return}}function RZ(e,t){if(e.kind===267)return N4(Bye(e));if(t){const r=we(t)?t.text:No(t)?`[${$5(t.argumentExpression)}]`:$5(t);if(r.length>0)return N4(r)}switch(e.kind){case 312:const r=e;return zc(r)?`"${Wx(Jl(gu(ba(r.fileName))))}"`:"";case 277:return fc(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return c1(e)&1024?"default":zye(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function WLe(e){const t=[];function r(a){if(i(a)&&(t.push(a),a.children))for(const o of a.children)r(o)}return r(e),t;function i(a){if(a.children)return!0;switch(fR(a)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return o(a);default:return!1}function o(l){if(!l.node.body)return!1;switch(fR(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function Rye(e){return{text:RZ(e.node,e.name),kind:A2(e.node),kindModifiers:Jye(e.node),spans:BZ(e),nameSpan:e.name&&JZ(e.name),childItems:an(e.children,Rye)}}function qLe(e){return{text:RZ(e.node,e.name),kind:A2(e.node),kindModifiers:Jye(e.node),spans:BZ(e),childItems:an(e.children,t)||gR,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:RZ(r.node,r.name),kind:A2(r.node),kindModifiers:z8(r.node),spans:BZ(r),childItems:gR,indent:0,bolded:!1,grayed:!1}}}function BZ(e){const t=[JZ(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(JZ(r));return t}function Bye(e){return __(e)?el(e.name):jZ(e)}function jZ(e){const t=[Cp(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Cp(e.name));return t.join(".")}function jye(e){return e.body&&Ac(e.body)?jye(e.body):e}function HLe(e){return!e.name||e.name.kind===167}function JZ(e){return e.kind===312?T1(e):cu(e,Y8)}function Jye(e){return e.parent&&e.parent.kind===260&&(e=e.parent),z8(e)}function zye(e){const{parent:t}=e;if(e.name&&Nw(e.name)>0)return N4(no(e.name));if(Ri(t))return N4(no(t.name));if(rr(t)&&t.operatorToken.kind===64)return $5(t.left).replace(Uye,"");if(Ec(t))return $5(t.name);if(c1(e)&1024)return"default";if(ni(e))return"";if(Js(t)){let r=Vye(t.expression);if(r!==void 0){if(r=N4(r),r.length>dR)return`${r} callback`;const i=N4(Hi(t.arguments,a=>Qa(a)?a.getText(Y8):void 0).join(", "));return`${r}(${i}) callback`}}return""}function Vye(e){if(we(e))return e.text;if(kr(e)){const t=Vye(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function GLe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function N4(e){return e=e.length>dR?e.substring(0,dR)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var Uye,dR,mR,Y8,Z8,a0,zZ,MS,gR,P4,$Le=Rt({"src/services/navigationBar.ts"(){Wr(),Uye=/\s+/g,dR=150,Z8=[],zZ=[],gR=[],P4={[5]:!0,[3]:!0,[7]:!0,[9]:!0,[0]:!1,[1]:!1,[2]:!1,[8]:!1,[6]:!0,[4]:!1}}}),Wye={};C_(Wye,{getNavigationBarItems:()=>kye,getNavigationTree:()=>Cye});var qye=Rt({"src/services/_namespaces/ts.NavigationBar.ts"(){$Le()}});function Dm(e,t){hR.set(e,t)}function XLe(e,t){return ra(rV(hR.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(a=>C1(a,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function QLe(e,t,r,i){const a=hR.get(t);return a&&a.getEditsForAction(e,r,i)}var hR,Hye=Rt({"src/services/refactorProvider.ts"(){Wr(),Wd(),hR=new Map}});function Gye(e,t=!0){const{file:r,program:i}=e,a=FS(e),o=Ui(r,a.start),l=!!(o.parent&&c1(o.parent)&1)&&t?o.parent:R5(o,r,a);if(!l||!Bi(l.parent)&&!(Jd(l.parent)&&__(l.parent.parent)))return{error:ss(p.Could_not_find_export_statement)};const u=i.getTypeChecker(),f=nMe(l.parent,u),g=c1(l)||(fc(l)&&!l.isExportEquals?1025:0),m=!!(g&1024);if(!(g&1)||!m&&f.exports.has("default"))return{error:ss(p.This_file_already_has_a_default_export)};const y=x=>we(x)&&u.getSymbolAtLocation(x)?void 0:{error:ss(p.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const x=l;return x.name?y(x.name)||{exportNode:x,exportName:x.name,wasDefault:m,exportingModuleSymbol:f}:void 0}case 243:{const x=l;if(!(x.declarationList.flags&2)||x.declarationList.declarations.length!==1)return;const k=wa(x.declarationList.declarations);return k.initializer?(E.assert(!m,"Can't have a default flag here"),y(k.name)||{exportNode:x,exportName:k.name,wasDefault:m,exportingModuleSymbol:f}):void 0}case 277:{const x=l;return x.isExportEquals?void 0:y(x.expression)||{exportNode:x,exportName:x.expression,wasDefault:m,exportingModuleSymbol:f}}default:return}}function YLe(e,t,r,i,a){ZLe(e,r,i,t.getTypeChecker()),KLe(t,r,i,a)}function ZLe(e,{wasDefault:t,exportNode:r,exportName:i},a,o){if(t)if(fc(r)&&!r.isExportEquals){const l=r.expression,u=$ye(l.text,l.text);a.replaceNode(e,r,I.createExportDeclaration(void 0,!1,I.createNamedExports([u])))}else a.delete(e,E.checkDefined(E4(r,90),"Should find a default keyword in modifier list"));else{const l=E.checkDefined(E4(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:a.insertNodeAfter(e,l,I.createToken(90));break;case 243:const u=wa(r.declarationList.declarations);if(!Oo.Core.isSymbolReferencedInFile(i,o,e)&&!u.type){a.replaceNode(e,r,I.createExportDefault(E.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:a.deleteModifier(e,l),a.insertNodeAfter(e,r,I.createExportDefault(I.createIdentifier(i.text)));break;default:E.fail(`Unexpected exportNode kind ${r.kind}`)}}}function KLe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},a,o){const l=e.getTypeChecker(),u=E.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Oo.Core.eachExportReference(e.getSourceFiles(),l,o,u,i,r.text,t,f=>{if(r===f)return;const g=f.getSourceFile();t?eMe(g,f,a,r.text):tMe(g,f,a)})}function eMe(e,t,r,i){const{parent:a}=t;switch(a.kind){case 211:r.replaceNode(e,t,I.createIdentifier(i));break;case 276:case 281:{const l=a;r.replaceNode(e,l,VZ(i,l.name.text));break}case 273:{const l=a;E.assert(l.name===t,"Import clause name should match provided ref");const u=VZ(i,t.text),{namedBindings:f}=l;if(!f)r.replaceNode(e,t,I.createNamedImports([u]));else if(f.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:f.getStart(e)});const g=fa(l.parent.moduleSpecifier)?FY(l.parent.moduleSpecifier,e):1,m=uh(void 0,[VZ(i,t.text)],l.parent.moduleSpecifier,g);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,f.elements,u);break}case 205:const o=a;r.replaceNode(e,a,I.createImportTypeNode(o.argument,o.assertions,I.createIdentifier(i),o.typeArguments,o.isTypeOf));break;default:E.failBadSyntaxKind(a)}}function tMe(e,t,r){const i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,I.createIdentifier("default"));break;case 276:{const a=I.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,a):(r.delete(e,i),r.insertNodeBefore(e,i.parent,a));break}case 281:{r.replaceNode(e,i,$ye("default",i.name.text));break}default:E.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function VZ(e,t){return I.createImportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function $ye(e,t){return I.createExportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function nMe(e,t){if(Bi(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&Zv(r.valueDeclaration)?t.getMergedSymbol(r):r}var yR,X5,Q5,rMe=Rt({"src/services/refactors/convertExport.ts"(){Wr(),Wd(),yR="Convert export",X5={name:"Convert default export to named export",description:ss(p.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},Q5={name:"Convert named export to default export",description:ss(p.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},Dm(yR,{kinds:[X5.kind,Q5.kind],getAvailableActions:function(t){const r=Gye(t,t.triggerReason==="invoked");if(!r)return Ve;if(!ug(r)){const i=r.wasDefault?X5:Q5;return[{name:yR,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:yR,description:ss(p.Convert_default_export_to_named_export),actions:[{...X5,notApplicableReason:r.error},{...Q5,notApplicableReason:r.error}]}]:Ve},getEditsForAction:function(t,r){E.assert(r===X5.name||r===Q5.name,"Unexpected action name");const i=Gye(t);return E.assert(i&&!ug(i),"Expected applicable refactor info"),{edits:tr.ChangeTracker.with(t,o=>YLe(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function Xye(e,t=!0){const{file:r}=e,i=FS(e),a=Ui(r,i.start),o=t?In(a,bl):R5(a,r,i);if(!o||!bl(o))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=TT(o,o.parent,r);if(u&&l>u.getStart())return;const{importClause:f}=o;return f?f.namedBindings?f.namedBindings.kind===274?{convertTo:0,import:f.namedBindings}:Qye(e.program,f)?{convertTo:1,import:f.namedBindings}:{convertTo:2,import:f.namedBindings}:{error:ss(p.Could_not_find_namespace_import_or_named_imports)}:{error:ss(p.Could_not_find_import_clause)}}function Qye(e,t){return Yx(e.getCompilerOptions())&&oMe(t.parent.moduleSpecifier,e.getTypeChecker())}function iMe(e,t,r,i){const a=t.getTypeChecker();i.convertTo===0?sMe(e,a,r,i.import,Yx(t.getCompilerOptions())):Zye(e,t,r,i.import,i.convertTo===1)}function sMe(e,t,r,i,a){let o=!1;const l=[],u=new Map;Oo.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!tle(y.parent))o=!0;else{const x=Yye(y.parent).text;t.resolveName(x,y,67108863,!0)&&u.set(x,!0),E.assert(aMe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});const f=new Map;for(const y of l){const x=Yye(y).text;let k=f.get(x);k===void 0&&f.set(x,k=u.has(x)?CT(x,e):x),r.replaceNode(e,y,I.createIdentifier(k))}const g=[];f.forEach((y,x)=>{g.push(I.createImportSpecifier(!1,y===x?void 0:I.createIdentifier(x),I.createIdentifier(y)))});const m=i.parent.parent;o&&!a?r.insertNodeAfter(e,m,UZ(m,void 0,g)):r.replaceNode(e,m,UZ(m,o?I.createIdentifier(i.name.text):void 0,g))}function Yye(e){return kr(e)?e.name:e.right}function aMe(e){return kr(e)?e.expression:e.left}function Zye(e,t,r,i,a=Qye(t,i.parent)){const o=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,f=new Set;i.elements.forEach(C=>{const N=o.getSymbolAtLocation(C.name);N&&f.add(N)});const g=u&&fa(u)?n_.moduleSpecifierToValidIdentifier(u.text,99):"module";function m(C){return!!Oo.Core.eachSymbolReferenceInFile(C.name,o,e,N=>{const D=o.resolveName(g,N,67108863,!0);return D?f.has(D)?p_(N.parent):!0:!1})}const x=i.elements.some(m)?CT(g,e):g,k=new Set;for(const C of i.elements){const N=(C.propertyName||C.name).text;Oo.Core.eachSymbolReferenceInFile(C.name,o,e,D=>{const M=I.createPropertyAccessExpression(I.createIdentifier(x),N);nf(D.parent)?r.replaceNode(e,D.parent,I.createPropertyAssignment(D.text,M)):p_(D.parent)?k.add(C):r.replaceNode(e,D,M)})}if(r.replaceNode(e,i,a?I.createIdentifier(x):I.createNamespaceImport(I.createIdentifier(x))),k.size){const C=ra(k.values(),N=>I.createImportSpecifier(N.isTypeOnly,N.propertyName&&I.createIdentifier(N.propertyName.text),I.createIdentifier(N.name.text)));r.insertNodeAfter(e,i.parent.parent,UZ(l,void 0,C))}}function oMe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function UZ(e,t,r){return I.createImportDeclaration(void 0,I.createImportClause(!1,t,r&&r.length?I.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var vR,Y5,cMe=Rt({"src/services/refactors/convertImport.ts"(){Wr(),Wd(),vR="Convert import",Y5={[0]:{name:"Convert namespace import to named imports",description:ss(p.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},[2]:{name:"Convert named imports to namespace import",description:ss(p.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},[1]:{name:"Convert named imports to default import",description:ss(p.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},Dm(vR,{kinds:bx(Y5).map(e=>e.kind),getAvailableActions:function(t){const r=Xye(t,t.triggerReason==="invoked");if(!r)return Ve;if(!ug(r)){const i=Y5[r.convertTo];return[{name:vR,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?bx(Y5).map(i=>({name:vR,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):Ve},getEditsForAction:function(t,r){E.assert(dt(bx(Y5),o=>o.name===r),"Unexpected action name");const i=Xye(t);return E.assert(i&&!ug(i),"Expected applicable refactor info"),{edits:tr.ChangeTracker.with(t,o=>iMe(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}})}});function Kye(e,t=!0){const{file:r,startPosition:i}=e,a=P_(r),o=Ui(r,i),l=DM(FS(e)),u=l.pos===l.end&&t,f=In(o,k=>k.parent&&Ai(k)&&!zy(l,k.parent,r)&&(u||gY(o,r,l.pos,l.end)));if(!f||!Ai(f))return{error:ss(p.Selection_is_not_a_valid_type_node)};const g=e.program.getTypeChecker(),m=pMe(f,a);if(m===void 0)return{error:ss(p.No_type_could_be_extracted_from_this_type_node)};const y=lMe(g,f,m,r);if(!y)return{error:ss(p.No_type_could_be_extracted_from_this_type_node)};const x=WZ(g,f);return{isJS:a,selection:f,enclosingNode:m,typeParameters:y,typeElements:x}}function WZ(e,t){if(!!t)if(sA(t)){const r=[],i=new Map;for(const a of t.types){const o=WZ(e,a);if(!o||!o.every(l=>l.name&&td(i,L5(l.name))))return;Fr(r,o)}return r}else{if(_S(t))return WZ(e,t.type);if(ef(t))return t.members}}function zy(e,t,r){return w5(e,_a(r.text,t.pos),t.end)}function lMe(e,t,r,i){const a=[];return o(t)?void 0:a;function o(l){if(ap(l)){if(we(l.typeName)){const u=l.typeName,f=e.resolveName(u.text,u,262144,!0);for(const g of(f==null?void 0:f.declarations)||Ve)if(Go(g)&&g.getSourceFile()===i){if(g.name.escapedText===u.escapedText&&zy(g,t,i))return!0;if(zy(r,g,i)&&!zy(t,g,i)){$f(a,g);break}}}}else if(lS(l)){const u=In(l,f=>Z6(f)&&zy(f.extendsType,l,i));if(!u||!zy(t,u,i))return!0}else if(mF(l)||gF(l)){const u=In(l.parent,Cs);if(u&&u.type&&zy(u.type,l,i)&&!zy(t,u,i))return!0}else if(Q6(l)){if(we(l.exprName)){const u=e.resolveName(l.exprName.text,l.exprName,111551,!1);if((u==null?void 0:u.valueDeclaration)&&zy(r,u.valueDeclaration,i)&&!zy(t,u.valueDeclaration,i))return!0}else if(c2(l.exprName.left)&&!zy(t,l.parent,i))return!0}return i&&Y6(l)&&yo(i,l.pos).line===yo(i,l.end).line&&Xn(l,1),bs(l,o)}}function _Me(e,t,r,i){const{enclosingNode:a,selection:o,typeParameters:l}=i,u=I.createTypeAliasDeclaration(void 0,r,l.map(f=>I.updateTypeParameterDeclaration(f,f.modifiers,f.name,f.constraint,void 0)),o);e.insertNodeBefore(t,a,zH(u),!0),e.replaceNode(t,o,I.createTypeReferenceNode(r,l.map(f=>I.createTypeReferenceNode(f.name,void 0))),{leadingTriviaOption:tr.LeadingTriviaOption.Exclude,trailingTriviaOption:tr.TrailingTriviaOption.ExcludeWhitespace})}function uMe(e,t,r,i){var a;const{enclosingNode:o,selection:l,typeParameters:u,typeElements:f}=i,g=I.createInterfaceDeclaration(void 0,r,u,void 0,f);Ke(g,(a=f[0])==null?void 0:a.parent),e.insertNodeBefore(t,o,zH(g),!0),e.replaceNode(t,l,I.createTypeReferenceNode(r,u.map(m=>I.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:tr.LeadingTriviaOption.Exclude,trailingTriviaOption:tr.TrailingTriviaOption.ExcludeWhitespace})}function fMe(e,t,r,i,a){var o;const{enclosingNode:l,selection:u,typeParameters:f}=a;Xn(u,7168);const g=I.createJSDocTypedefTag(I.createIdentifier("typedef"),I.createJSDocTypeExpression(u),I.createIdentifier(i)),m=[];pn(f,x=>{const k=t6(x),C=I.createTypeParameterDeclaration(void 0,x.name),N=I.createJSDocTemplateTag(I.createIdentifier("template"),k&&Bs(k,sT),[C]);m.push(N)});const y=I.createJSDocComment(void 0,I.createNodeArray(es(m,[g])));if(Ap(l)){const x=l.getStart(r),k=s0(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(r,l.getStart(r),y,{suffix:k+k+r.text.slice(BM(r.text,x-1),x)})}else e.insertNodeBefore(r,l,y,!0);e.replaceNode(r,u,I.createTypeReferenceNode(i,f.map(x=>I.createTypeReferenceNode(x.name,void 0))))}function pMe(e,t){return In(e,Fi)||(t?In(e,Ap):void 0)}var bR,Z5,K5,eN,dMe=Rt({"src/services/refactors/extractType.ts"(){Wr(),Wd(),bR="Extract type",Z5={name:"Extract to type alias",description:ss(p.Extract_to_type_alias),kind:"refactor.extract.type"},K5={name:"Extract to interface",description:ss(p.Extract_to_interface),kind:"refactor.extract.interface"},eN={name:"Extract to typedef",description:ss(p.Extract_to_typedef),kind:"refactor.extract.typedef"},Dm(bR,{kinds:[Z5.kind,K5.kind,eN.kind],getAvailableActions:function(t){const r=Kye(t,t.triggerReason==="invoked");return r?ug(r)?t.preferences.provideRefactorNotApplicableReason?[{name:bR,description:ss(p.Extract_type),actions:[{...eN,notApplicableReason:r.error},{...Z5,notApplicableReason:r.error},{...K5,notApplicableReason:r.error}]}]:Ve:[{name:bR,description:ss(p.Extract_type),actions:r.isJS?[eN]:dn([Z5],r.typeElements&&K5)}]:Ve},getEditsForAction:function(t,r){const{file:i}=t,a=Kye(t);E.assert(a&&!ug(a),"Expected to find a range to extract");const o=CT("NewType",i),l=tr.ChangeTracker.with(t,g=>{switch(r){case Z5.name:return E.assert(!a.isJS,"Invalid actionName/JS combo"),_Me(g,i,o,a);case eN.name:return E.assert(a.isJS,"Invalid actionName/JS combo"),fMe(g,t,i,o,a);case K5.name:return E.assert(!a.isJS&&!!a.typeElements,"Invalid actionName/JS combo"),uMe(g,i,o,a);default:E.fail("Unexpected action name")}}),u=i.fileName,f=z5(l,u,o,!1);return{edits:l,renameFilename:u,renameLocation:f}}})}});function ug(e){return e.error!==void 0}function C1(e,t){return t?e.substr(0,t.length)===t:!0}var mMe=Rt({"src/services/refactors/helpers.ts"(){}});function eve(e,t,r,i){var a,o;const l=i.getTypeChecker(),u=af(e,t),f=u.parent;if(!!we(u)){if(ED(f)&&i3(f)&&we(f.name)){if(((a=l.getMergedSymbol(f.symbol).declarations)==null?void 0:a.length)!==1)return{error:ss(p.Variables_with_multiple_declarations_cannot_be_inlined)};if(tve(f))return;const g=nve(f,l,e);return g&&{references:g,declaration:f,replacement:f.initializer}}if(r){let g=l.resolveName(u.text,u,111551,!1);if(g=g&&l.getMergedSymbol(g),((o=g==null?void 0:g.declarations)==null?void 0:o.length)!==1)return{error:ss(p.Variables_with_multiple_declarations_cannot_be_inlined)};const m=g.declarations[0];if(!ED(m)||!i3(m)||!we(m.name)||tve(m))return;const y=nve(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:ss(p.Could_not_find_variable_to_inline)}}}function tve(e){const t=Bs(e.parent.parent,ic);return dt(t.modifiers,aS)}function nve(e,t,r){const i=[],a=Oo.Core.eachSymbolReferenceInFile(e.name,t,r,o=>{if(Oo.isWriteAccessForReference(o)||p_(o.parent)||fc(o.parent)||Q6(o.parent)||mw(e,o.pos))return!0;i.push(o)});return i.length===0||a?void 0:i}function gMe(e,t){t=Io(t);const{parent:r}=e;return nt(r)&&(g3(t){for(const y of l)m.replaceNode(r,y,gMe(y,f));m.delete(r,u)})}}})}});function yMe(e,t,r,i,a,o,l){const u=t.getTypeChecker(),f=ER(e,r.all,u),g=tK(e,t,l,a);i.createNewFile(e,g,vMe(e,f,i,r,t,a,g,o)),qZ(t,i,e.fileName,g,Q0(a))}function vMe(e,t,r,i,a,o,l,u){const f=a.getTypeChecker(),g=vI(e.statements,Sp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return tN(e,i.ranges,r),[...g,...i.all];const m=!sZ(l,a,o,!!e.commonJsModuleIndicator),y=Rf(e,u),x=XZ(e,t.oldFileImportsFromTargetFile,l,a,o,m,y);x&&U8(r,e,x,!0,u),HZ(e,i.all,r,t.unusedImportsFromOldFile,f),tN(e,i.ranges,r),GZ(r,a,o,e,t.movedSymbols,l,y);const k=bMe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,f,a,o,m,y),C=QZ(e,i.all,t.oldFileImportsFromTargetFile,m);return k.length&&C.length?[...g,...k,4,...C]:[...g,...k,...C]}function bMe(e,t,r,i,a,o,l,u,f){const g=[];for(const k of e.statements)nE(k,C=>{dn(g,rE(C,tE(C),N=>t.has(a.getSymbolAtLocation(N))))});let m;const y=[],x=IS();return r.forEach(k=>{if(!!k.declarations)for(const C of k.declarations){if(!rN(C))continue;const N=KZ(C);if(!N)continue;const D=CR(C);x(D)&&eK(e,D,N,i,u),Lr(C,1024)?m=N:y.push(N.text)}}),dn(g,nN(e,m,y,Jl(e.fileName),o,l,u,f)),g}var eE,SR,kR,TMe=Rt({"src/services/refactors/moveToNewFile.ts"(){Wr(),Wd(),eE="Move to a new file",SR=ss(p.Move_to_a_new_file),kR={name:eE,description:SR,kind:"refactor.move.newFile"},Dm(eE,{kinds:[kR.kind],getAvailableActions:function(t){const r=iE(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:eE,description:SR,actions:[kR]}]:t.preferences.provideRefactorNotApplicableReason?[{name:eE,description:SR,actions:[{...kR,notApplicableReason:ss(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve},getEditsForAction:function(t,r){E.assert(r===eE,"Wrong refactor invoked");const i=E.checkDefined(iE(t));return{edits:tr.ChangeTracker.with(t,o=>yMe(t.file,t.program,i,o,t.host,t.preferences,t)),renameFilename:void 0,renameLocation:void 0}}})}});function rve(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function xMe(e,t,r,i,a,o,l,u){const f=i.getTypeChecker(),g=ER(t,a.all,f);if(!l.fileExists(r))o.createNewFile(t,r,ive(t,r,g,o,a,i,l,u)),qZ(i,o,t.fileName,r,Q0(l));else{const m=E.checkDefined(i.getSourceFile(r)),y=n_.createImportAdder(m,e.program,e.preferences,e.host);ive(t,m,g,o,a,i,l,u,y)}}function ive(e,t,r,i,a,o,l,u,f){const g=o.getTypeChecker(),m=vI(e.statements,Sp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return tN(e,a.ranges,i),[...m,...a.all];const y=typeof t=="string"?t:t.fileName,x=!sZ(y,o,l,!!e.commonJsModuleIndicator),k=Rf(e,u),C=XZ(e,r.oldFileImportsFromTargetFile,y,o,l,x,k);C&&U8(i,e,C,!0,u),HZ(e,a.all,i,r.unusedImportsFromOldFile,g),tN(e,a.ranges,i),GZ(i,o,l,e,r.movedSymbols,y,k);const N=SMe(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,g,o,l,x,k,f),D=QZ(e,a.all,r.oldFileImportsFromTargetFile,x);return typeof t!="string"&&(t.statements.length>0?JMe(i,o,D,t,a):i.insertNodesAtEndOfFile(t,D,!1),N.length>0&&U8(i,t,N,!0,u)),f&&f.writeFixes(i,k),N.length&&D.length?[...m,...N,4,...D]:[...m,...N,...D]}function SMe(e,t,r,i,a,o,l,u,f,g,m){const y=[];if(m)r.forEach((D,M)=>{try{m.addImportFromExportedSymbol(au(M,o),D)}catch{for(const V of e.statements)nE(V,U=>{dn(y,rE(U,I.createStringLiteral(tE(U).text),Y=>r.has(o.getSymbolAtLocation(Y))))})}});else{const D=l.getSourceFile(t);for(const M of e.statements)nE(M,V=>{var U,Y;const j=tE(V),ee=(U=e.resolvedModules)==null?void 0:U.get(j.text,cp(e,j)),R=(Y=ee==null?void 0:ee.resolvedModule)==null?void 0:Y.resolvedFileName;if(R&&D){const Z=GA(l.getCompilerOptions(),D,D.path,R,ST(l,u));dn(y,rE(V,OS(Z,g),oe=>r.has(o.getSymbolAtLocation(oe))))}else dn(y,rE(V,I.createStringLiteral(tE(V).text),Z=>r.has(o.getSymbolAtLocation(Z))))})}const x=l.getSourceFile(t);let k;const C=[],N=IS();return i.forEach(D=>{if(!!D.declarations)for(const M of D.declarations){if(!rN(M))continue;const V=KZ(M);if(!V)continue;const U=CR(M);N(U)&&eK(e,U,V,a,f),m&&o.isUnknownSymbol(D)?m.addImportFromExportedSymbol(au(D,o)):Lr(M,1024)?k=V:C.push(V.text)}}),x?dn(y,nN(x,k,C,e.fileName,l,u,f,g)):dn(y,nN(e,k,C,e.fileName,l,u,f,g))}function qZ(e,t,r,i,a){const o=e.getCompilerOptions().configFile;if(!o)return;const l=ba(Ii(r,"..",i)),u=sw(o.fileName,l,a),f=o.statements[0]&&Hr(o.statements[0].expression,ha),g=f&&Or(f.properties,m=>Ec(m)&&fa(m.name)&&m.name.text==="files");g&&u_(g.initializer)&&t.insertNodeInListAfter(o,ka(g.initializer.elements),I.createStringLiteral(u),g.initializer.elements)}function tN(e,t,r){for(const{first:i,afterLast:a}of t)r.deleteNodeRangeExcludingEnd(e,i,a)}function HZ(e,t,r,i,a){for(const o of e.statements)ys(t,o)||nE(o,l=>YZ(e,l,r,u=>i.has(a.getSymbolAtLocation(u))))}function GZ(e,t,r,i,a,o,l){const u=t.getTypeChecker();for(const f of t.getSourceFiles())if(f!==i)for(const g of f.statements)nE(g,m=>{if(u.getSymbolAtLocation(tE(m))!==i.symbol)return;const y=D=>{const M=Oa(D.parent)?MM(u,D.parent):au(u.getSymbolAtLocation(D),u);return!!M&&a.has(M)};YZ(f,m,e,y);const x=Xh(Ti(i.path),o),k=GA(t.getCompilerOptions(),f,f.path,x,ST(t,r)),C=rE(m,OS(k,l),y);C&&e.insertNodeAfter(f,g,C);const N=kMe(m);N&&CMe(e,f,u,a,k,N,m,l)})}function kMe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return Hr(e.name,we);default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function CMe(e,t,r,i,a,o,l,u){const f=n_.moduleSpecifierToValidIdentifier(a,99);let g=!1;const m=[];if(Oo.Core.eachSymbolReferenceInFile(o,r,t,y=>{!kr(y.parent)||(g=g||!!r.resolveName(f,y,67108863,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&m.push(y))}),m.length){const y=g?CT(f,t):f;for(const x of m)e.replaceNode(t,x,I.createIdentifier(y));e.insertNodeAfter(t,l,EMe(l,f,a,u))}}function EMe(e,t,r,i){const a=I.createIdentifier(t),o=OS(r,i);switch(e.kind){case 272:return I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(a)),o,void 0);case 271:return I.createImportEqualsDeclaration(void 0,!1,a,I.createExternalModuleReference(o));case 260:return I.createVariableDeclaration(a,void 0,void 0,$Z(o));default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function $Z(e){return I.createCallExpression(I.createIdentifier("require"),void 0,[e])}function tE(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function nE(e,t){if(bl(e))fa(e.moduleSpecifier)&&t(e);else if(Hl(e))km(e.moduleReference)&&Qa(e.moduleReference.expression)&&t(e);else if(ic(e))for(const r of e.declarationList.declarations)r.initializer&&mu(r.initializer,!0)&&t(r)}function XZ(e,t,r,i,a,o,l){let u;const f=[];return t.forEach(g=>{g.escapedName==="default"?u=I.createIdentifier(OM(g)):f.push(g.name)}),nN(e,u,f,r,i,a,o,l)}function nN(e,t,r,i,a,o,l,u){const f=Xh(Ti(e.path),i),g=GA(a.getCompilerOptions(),e,e.path,f,ST(a,o));if(l){const m=r.map(y=>I.createImportSpecifier(!1,void 0,I.createIdentifier(y)));return r1e(t,m,g,u)}else{E.assert(!t,"No default import should exist");const m=r.map(y=>I.createBindingElement(void 0,void 0,y));return m.length?sve(I.createObjectBindingPattern(m),void 0,$Z(OS(g,u))):void 0}}function sve(e,t,r,i=2){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(e,void 0,t,r)],i))}function QZ(e,t,r,i){return Na(t,a=>{if(ove(a)&&!ave(e,a,i)&&nK(a,o=>{var l;return r.has(E.checkDefined((l=Hr(o,Pd))==null?void 0:l.symbol))})){const o=AMe(Io(a),i);if(o)return o}return Io(a)})}function ave(e,t,r,i){var a;return r?!ql(t)&&Lr(t,1)||!!(i&&e.symbol&&((a=e.symbol.exports)==null?void 0:a.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&ZZ(t).some(o=>e.symbol.exports.has(Ho(o)))}function YZ(e,t,r,i){switch(t.kind){case 272:wMe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:DMe(e,t,r,i);break;default:E.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function wMe(e,t,r,i){if(!t.importClause)return;const{name:a,namedBindings:o}=t.importClause,l=!a||i(a),u=!o||(o.kind===274?i(o.name):o.elements.length!==0&&o.elements.every(f=>i(f.name)));if(l&&u)r.delete(e,t);else if(a&&l&&r.delete(e,a),o){if(u)r.replaceNode(e,t.importClause,I.updateImportClause(t.importClause,t.importClause.isTypeOnly,a,void 0));else if(o.kind===275)for(const f of o.elements)i(f.name)&&r.delete(e,f)}}function DMe(e,t,r,i){const{name:a}=t;switch(a.kind){case 80:i(a)&&(t.initializer&&mu(t.initializer,!0)?r.delete(e,ml(t.parent)&&Nn(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,a));break;case 207:break;case 206:if(a.elements.every(o=>we(o.name)&&i(o.name)))r.delete(e,ml(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const o of a.elements)we(o.name)&&i(o.name)&&r.delete(e,o.name);break}}function ove(e){return E.assert(Bi(e.parent),"Node parent should be a SourceFile"),pve(e)||ic(e)}function AMe(e,t){return t?[NMe(e)]:PMe(e)}function NMe(e){const t=Np(e)?es([I.createModifier(95)],Gv(e)):void 0;switch(e.kind){case 262:return I.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const r=oT(e)?Zh(e):void 0;return I.updateClassDeclaration(e,es(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return I.updateVariableStatement(e,t,e.declarationList);case 267:return I.updateModuleDeclaration(e,t,e.name,e.body);case 266:return I.updateEnumDeclaration(e,t,e.name,e.members);case 265:return I.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return I.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return I.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return E.fail();default:return E.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function PMe(e){return[e,...ZZ(e).map(cve)]}function cve(e){return I.createExpressionStatement(I.createBinaryExpression(I.createPropertyAccessExpression(I.createIdentifier("exports"),I.createIdentifier(e)),64,I.createIdentifier(e)))}function ZZ(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Hi(e.declarationList.declarations,t=>we(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Ve;case 244:return E.fail("Can't export an ExpressionStatement");default:return E.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function rE(e,t,r){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const a=i.name&&r(i.name)?i.name:void 0,o=i.namedBindings&&IMe(i.namedBindings,r);return a||o?I.createImportDeclaration(void 0,I.createImportClause(i.isTypeOnly,a,o),Io(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{const i=OMe(e.name,r);return i?sve(i,e.type,$Z(t),e.parent.flags):void 0}default:return E.assertNever(e,`Unexpected import kind ${e.kind}`)}}function IMe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?I.createNamedImports(r):void 0}}function OMe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const r=e.elements.filter(i=>i.propertyName||!we(i.name)||t(i.name));return r.length?I.createObjectBindingPattern(r):void 0}}}function KZ(e){return ql(e)?Hr(e.expression.left.name,we):Hr(e.name,we)}function CR(e){switch(e.kind){case 260:return e.parent.parent;case 208:return CR(Bs(e.parent.parent,t=>Ri(t)||Oa(t)));default:return e}}function eK(e,t,r,i,a){if(!ave(e,t,a,r))if(a)ql(t)||i.insertExportModifier(e,t);else{const o=ZZ(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(cve))}}function tK(e,t,r,i){const a=t.getTypeChecker(),o=iE(r);let l;if(o){l=ER(e,o.all,a);const u=Ti(e.fileName),f=Qb(e.fileName);return Ii(u,RMe(BMe(l.oldFileImportsFromTargetFile,l.movedSymbols),f,u,i))+f}return""}function FMe(e){const{file:t}=e,r=DM(FS(e)),{statements:i}=t;let a=qc(i,g=>g.end>r.pos);if(a===-1)return;const o=i[a],l=dve(t,o);l&&(a=l.start);let u=qc(i,g=>g.end>=r.end,a);u!==-1&&r.end<=i[u].getStart()&&u--;const f=dve(t,i[u]);return f&&(u=f.end),{toMove:i.slice(a,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function iE(e){const t=FMe(e);if(t===void 0)return;const r=[],i=[],{toMove:a,afterLast:o}=t;return aV(a,LMe,(l,u)=>{for(let f=l;f!!t.initializer&&mu(t.initializer,!0));default:return!1}}function ER(e,t,r){const i=new Set,a=new Map,o=new Set,l=Or(t,y=>!!(y.transformFlags&2)),u=m(l);u&&a.set(u,!1);for(const y of t)nK(y,x=>{i.add(E.checkDefined(ql(x)?r.getSymbolAtLocation(x.expression.left):x.symbol,"Need a symbol here"))});for(const y of t)lve(y,r,(x,k)=>{if(!!x.declarations)for(const C of x.declarations)if(_ve(C)){const N=a.get(x);a.set(x,(N===void 0||N)&&k)}else rN(C)&&jMe(C)===e&&!i.has(x)&&o.add(x)});const f=new Set(a.keys()),g=new Set;for(const y of e.statements)ys(t,y)||(u&&!!(y.transformFlags&2)&&f.delete(u),lve(y,r,x=>{i.has(x)&&g.add(x),f.delete(x)}));return{movedSymbols:i,targetFileImportsFromOldFile:o,oldFileImportsFromTargetFile:g,oldImportsNeededByTargetFile:a,unusedImportsFromOldFile:f};function m(y){if(y===void 0)return;const x=r.getJsxNamespace(y),k=r.resolveName(x,y,1920,!0);return!!k&&dt(k.declarations,_ve)?k:void 0}}function RMe(e,t,r,i){let a=e;for(let o=1;;o++){const l=Ii(r,a+t);if(!i.fileExists(l))return a;a=`${e}.${o}`}}function BMe(e,t){return Ox(e,OM)||Ox(t,OM)||"newFile"}function lve(e,t,r){e.forEachChild(function i(a){if(we(a)&&!Xg(a)){const o=t.getSymbolAtLocation(a);o&&r(o,Ey(a))}else a.forEachChild(i)})}function nK(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return cc(e.declarationList.declarations,r=>fve(r.name,t));case 244:{const{expression:r}=e;return rr(r)&&uc(r)===1?t(e):void 0}}}function _ve(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return uve(e);case 208:return Ri(e.parent.parent)&&uve(e.parent.parent);default:return!1}}function uve(e){return Bi(e.parent.parent.parent)&&!!e.initializer&&mu(e.initializer,!0)}function rN(e){return pve(e)&&Bi(e.parent)||Ri(e)&&Bi(e.parent.parent.parent)}function jMe(e){return Ri(e)?e.parent.parent.parent:e.parent}function fve(e,t){switch(e.kind){case 80:return t(Bs(e.parent,r=>Ri(r)||Oa(r)));case 207:case 206:return cc(e.elements,r=>dl(r)?void 0:fve(r.name,t));default:return E.assertNever(e,`Unexpected name kind ${e.kind}`)}}function pve(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function JMe(e,t,r,i,a){var o;const l=new Set,u=(o=i.symbol)==null?void 0:o.exports;if(u){const g=t.getTypeChecker(),m=new Map;for(const y of a.all)ove(y)&&Lr(y,1)&&nK(y,x=>{var k;const C=Pd(x)?(k=u.get(x.symbol.escapedName))==null?void 0:k.declarations:void 0,N=cc(C,D=>Yc(D)?D:p_(D)?Hr(D.parent.parent,Yc):void 0);N&&N.moduleSpecifier&&m.set(N,(m.get(N)||new Set).add(x))});for(const[y,x]of ra(m))if(y.exportClause&&op(y.exportClause)&&Nn(y.exportClause.elements)){const k=y.exportClause.elements,C=zr(k,N=>Or(au(N.symbol,g).declarations,D=>rN(D)&&x.has(D))===void 0);if(Nn(C)===0){e.deleteNode(i,y),l.add(y);continue}Nn(C)Yc(g)&&!!g.moduleSpecifier&&!l.has(g));f?e.insertNodesBefore(i,f,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function dve(e,t){if(Eo(t)){const r=t.symbol.declarations;if(r===void 0||Nn(r)<=1||!ys(r,t))return;const i=r[0],a=r[Nn(r)-1],o=Hi(r,f=>Rn(f)===e&&Fi(f)?f:void 0),l=qc(e.statements,f=>f.end>=a.end),u=qc(e.statements,f=>f.end>=i.end);return{toMove:o,start:u,end:l}}}var iN,wR,DR,zMe=Rt({"src/services/refactors/moveToFile.ts"(){kme(),Wr(),Hye(),iN="Move to file",wR=ss(p.Move_to_file),DR={name:"Move to file",description:wR,kind:"refactor.move.file"},Dm(iN,{kinds:[DR.kind],getAvailableActions:function(t,r){const i=iE(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:iN,description:wR,actions:[DR]}]:t.preferences.provideRefactorNotApplicableReason?[{name:iN,description:wR,actions:[{...DR,notApplicableReason:ss(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve:Ve},getEditsForAction:function(t,r,i){E.assert(r===iN,"Wrong refactor invoked");const a=E.checkDefined(iE(t)),{host:o,program:l}=t;E.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return _2(u)||R3(u)?o.fileExists(u)&&l.getSourceFile(u)===void 0?rve(ss(p.Cannot_move_statements_to_the_selected_file)):{edits:tr.ChangeTracker.with(t,g=>xMe(t,t.file,i.targetFile,t.program,a,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:rve(ss(p.Cannot_move_to_file_selected_file_is_invalid))}})}});function VMe(e){const{file:t,startPosition:r,program:i}=e;return gve(t,r,i)?[{name:AR,description:rK,actions:[iK]}]:Ve}function UMe(e){const{file:t,startPosition:r,program:i}=e,a=gve(t,r,i);if(!a)return;const o=i.getTypeChecker(),l=a[a.length-1];let u=l;switch(l.kind){case 173:{u=I.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,g(a),l.type);break}case 174:{u=I.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,g(a),l.type,l.body);break}case 179:{u=I.updateCallSignature(l,l.typeParameters,g(a),l.type);break}case 176:{u=I.updateConstructorDeclaration(l,l.modifiers,g(a),l.body);break}case 180:{u=I.updateConstructSignature(l,l.typeParameters,g(a),l.type);break}case 262:{u=I.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,g(a),l.type,l.body);break}default:return E.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:tr.ChangeTracker.with(e,x=>{x.replaceNodeRange(t,a[0],a[a.length-1],u)})};function g(x){const k=x[x.length-1];return Eo(k)&&k.body&&(x=x.slice(0,x.length-1)),I.createNodeArray([I.createParameterDeclaration(void 0,I.createToken(26),"args",void 0,I.createUnionTypeNode(an(x,m)))])}function m(x){const k=an(x.parameters,y);return Xn(I.createTupleTypeNode(k),dt(k,C=>!!Nn(H6(C)))?0:1)}function y(x){E.assert(we(x.name));const k=Ke(I.createNamedTupleMember(x.dotDotDotToken,x.name,x.questionToken,x.type||I.createKeywordTypeNode(133)),x),C=x.symbol&&x.symbol.getDocumentationComment(o);if(C){const N=e2e(C);N.length&&Dy(k,[{text:`* ${N.split(` `).map(D=>` * ${D}`).join(` `)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return k}}function mve(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function gve(e,t,r){const i=Vi(e,t),a=On(i,mve);if(!a||Eo(a)&&a.body&&k5(a.body,t))return;const o=r.getTypeChecker(),l=a.symbol;if(!l)return;const u=l.declarations;if(Pn(u)<=1||!$i(u,x=>Bn(x)===e)||!mve(u[0]))return;const f=u[0].kind;if(!$i(u,x=>x.kind===f))return;const g=u;if(dt(g,x=>!!x.typeParameters||dt(x.parameters,k=>!!k.modifiers||!we(k.name))))return;const m=qi(g,x=>o.getSignatureFromDeclaration(x));if(Pn(m)!==Pn(u))return;const y=o.getReturnTypeOfSignature(m[0]);if(!!$i(m,x=>o.getReturnTypeOfSignature(x)===y))return g}var AR,nK,rK,UMe=Bt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){Wr(),Wd(),AR="Convert overload list to single signature",nK=ss(p.Convert_overload_list_to_single_signature),rK={name:AR,description:nK,kind:"refactor.rewrite.function.overloadList"},Dm(AR,{kinds:[rK.kind],getEditsForAction:VMe,getAvailableActions:zMe})}});function WMe(e){const{file:t,startPosition:r,triggerReason:i}=e,a=hve(t,r,i==="invoked");return a?lg(a)?e.preferences.provideRefactorNotApplicableReason?[{name:NR,description:iK,actions:[{...iN,notApplicableReason:a.error},{...rE,notApplicableReason:a.error}]}]:Ve:[{name:NR,description:iK,actions:[a.addBraces?iN:rE]}]:Ve}function qMe(e,t){const{file:r,startPosition:i}=e,a=hve(r,i);E.assert(a&&!lg(a),"Expected applicable refactor info");const{expression:o,returnStatement:l,func:u}=a;let f;if(t===iN.name){const m=I.createReturnStatement(o);f=I.createBlock([m],!0),D4(o,m,r,3,!0)}else if(t===rE.name&&l){const m=o||I.createVoidZero();f=jM(m)?I.createParenthesizedExpression(m):m,z5(l,f,r,3,!1),D4(l,f,r,3,!1),W8(l,f,r,3,!1)}else E.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,m=>{m.replaceNode(r,u.body,f)})}}function hve(e,t,r=!0,i){const a=Vi(e,t),o=df(a);if(!o)return{error:ss(p.Could_not_find_a_containing_arrow_function)};if(!Po(o))return{error:ss(p.Containing_function_is_not_an_arrow_function)};if(!(!yf(o,a)||yf(o.body,a)&&!r)){if(k1(iN.kind,i)&&nt(o.body))return{func:o,addBraces:!0,expression:o.body};if(k1(rE.kind,i)&&hs(o.body)&&o.body.statements.length===1){const l=wa(o.body.statements);if(nd(l))return{func:o,addBraces:!1,expression:l.expression,returnStatement:l}}}}var NR,iK,iN,rE,HMe=Bt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){Wr(),Wd(),NR="Add or remove braces in an arrow function",iK=ss(p.Add_or_remove_braces_in_an_arrow_function),iN={name:"Add braces to arrow function",description:ss(p.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},rE={name:"Remove braces from arrow function",description:ss(p.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},Dm(NR,{kinds:[rE.kind],getEditsForAction:qMe,getAvailableActions:WMe})}}),GMe={},$Me=Bt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){UMe(),HMe()}});function XMe(e){const{file:t,startPosition:r,program:i,kind:a}=e,o=vve(t,r,i);if(!o)return Ve;const{selectedVariableDeclaration:l,func:u}=o,f=[],g=[];if(k1(sE.kind,a)){const m=l||Po(u)&&Mi(u.parent)?void 0:ss(p.Could_not_convert_to_named_function);m?g.push({...sE,notApplicableReason:m}):f.push(sE)}if(k1(iE.kind,a)){const m=!l&&Po(u)?void 0:ss(p.Could_not_convert_to_anonymous_function);m?g.push({...iE,notApplicableReason:m}):f.push(iE)}if(k1(aE.kind,a)){const m=fo(u)?void 0:ss(p.Could_not_convert_to_arrow_function);m?g.push({...aE,notApplicableReason:m}):f.push(aE)}return[{name:sK,description:xve,actions:f.length===0&&e.preferences.provideRefactorNotApplicableReason?g:f}]}function QMe(e,t){const{file:r,startPosition:i,program:a}=e,o=vve(r,i,a);if(!o)return;const{func:l}=o,u=[];switch(t){case iE.name:u.push(...eRe(e,l));break;case sE.name:const f=KMe(l);if(!f)return;u.push(...tRe(e,l,f));break;case aE.name:if(!fo(l))return;u.push(...nRe(e,l));break;default:return E.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function yve(e){let t=!1;return e.forEachChild(function r(i){if(k4(i)){t=!0;return}!ei(i)&&!tl(i)&&!fo(i)&&ys(i,r)}),t}function vve(e,t,r){const i=Vi(e,t),a=r.getTypeChecker(),o=ZMe(e,a,i.parent);if(o&&!yve(o.body)&&!a.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const l=df(i);if(l&&(fo(l)||Po(l))&&!yf(l.body,i)&&!yve(l.body)&&!a.containsArgumentsReference(l))return fo(l)&&Tve(e,a,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function YMe(e){return Mi(e)||dl(e)&&e.declarations.length===1}function ZMe(e,t,r){if(!YMe(r))return;const a=(Mi(r)?r:wa(r.declarations)).initializer;if(a&&(Po(a)||fo(a)&&!Tve(e,t,a)))return a}function bve(e){if(nt(e)){const t=I.createReturnStatement(e),r=e.getSourceFile();return Ke(t,e),Bu(t),z5(e,t,r,void 0,!0),I.createBlock([t],!0)}else return e}function KMe(e){const t=e.parent;if(!Mi(t)||!n3(t))return;const r=t.parent,i=r.parent;if(!(!dl(r)||!ic(i)||!we(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function eRe(e,t){const{file:r}=e,i=bve(t.body),a=I.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return er.ChangeTracker.with(e,o=>o.replaceNode(r,t,a))}function tRe(e,t,r){const{file:i}=e,a=bve(t.body),{variableDeclaration:o,variableDeclarationList:l,statement:u,name:f}=r;WY(u);const g=Wv(o)&1|I_(t),m=I.createModifiersFromModifierFlags(g),y=I.createFunctionDeclaration(Pn(m)?m:void 0,t.asteriskToken,f,t.typeParameters,t.parameters,t.type,a);return l.declarations.length===1?er.ChangeTracker.with(e,x=>x.replaceNode(i,u,y)):er.ChangeTracker.with(e,x=>{x.delete(i,o),x.insertNodeAfter(i,u,y)})}function nRe(e,t){const{file:r}=e,a=t.body.statements[0];let o;rRe(t.body,a)?(o=a.expression,Bu(o),TT(a,o)):o=t.body;const l=I.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,I.createToken(39),o);return er.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function rRe(e,t){return e.statements.length===1&&nd(t)&&!!t.expression}function Tve(e,t,r){return!!r.name&&Oo.Core.isSymbolReferencedInFile(r.name,t,e)}var sK,xve,iE,sE,aE,iRe=Bt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){Wr(),Wd(),sK="Convert arrow function or function expression",xve=ss(p.Convert_arrow_function_or_function_expression),iE={name:"Convert to anonymous function",description:ss(p.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},sE={name:"Convert to named function",description:ss(p.Convert_to_named_function),kind:"refactor.rewrite.function.named"},aE={name:"Convert to arrow function",description:ss(p.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Dm(sK,{kinds:[iE.kind,sE.kind,aE.kind],getEditsForAction:QMe,getAvailableActions:XMe})}}),sRe={},aRe=Bt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){iRe()}});function oRe(e){const{file:t,startPosition:r}=e;return P_(t)||!Cve(t,r,e.program.getTypeChecker())?Ve:[{name:aN,description:lK,actions:[_K]}]}function cRe(e,t){E.assert(t===aN,"Unexpected action name");const{file:r,startPosition:i,program:a,cancellationToken:o,host:l}=e,u=Cve(r,i,a.getTypeChecker());if(!u||!o)return;const f=_Re(u,a,o);return f.valid?{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,m=>lRe(r,a,l,m,u,f))}:{edits:[]}}function lRe(e,t,r,i,a,o){const l=o.signature,u=an(Ave(a,t,r),m=>Io(m));if(l){const m=an(Ave(l,t,r),y=>Io(y));g(l,m)}g(a,u);const f=L7(o.functionCalls,(m,y)=>Co(m.pos,y.pos));for(const m of f)if(m.arguments&&m.arguments.length){const y=Io(bRe(a,m.arguments),!0);i.replaceNodeRange(Bn(m),wa(m.arguments),ka(m.arguments),y,{leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Include})}function g(m,y){i.replaceNodeRangeWithNodes(e,wa(m.parameters),ka(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Include})}}function _Re(e,t,r){const i=xRe(e),a=wc(e)?TRe(e):[],o=zk([...i,...a],oy),l=t.getTypeChecker(),u=Na(o,y=>Oo.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),f=g(u);return $i(f.declarations,y=>gs(o,y))||(f.valid=!1),f;function g(y){const x={accessExpressions:[],typeUsages:[]},k={functionCalls:[],declarations:[],classReferences:x,valid:!0},C=an(i,m),N=an(a,m),D=wc(e),M=an(i,V=>aK(V,l));for(const V of y){if(V.kind===Oo.EntryKind.Span){k.valid=!1;continue}if(gs(M,m(V.node))){if(dRe(V.node.parent)){k.signature=V.node.parent;continue}const Y=kve(V);if(Y){k.functionCalls.push(Y);continue}}const U=aK(V.node,l);if(U&&gs(M,U)){const Y=oK(V);if(Y){k.declarations.push(Y);continue}}if(gs(C,m(V.node))||L8(V.node)){if(Sve(V))continue;const j=oK(V);if(j){k.declarations.push(j);continue}const ee=kve(V);if(ee){k.functionCalls.push(ee);continue}}if(D&&gs(N,m(V.node))){if(Sve(V))continue;const j=oK(V);if(j){k.declarations.push(j);continue}const ee=uRe(V);if(ee){x.accessExpressions.push(ee);continue}if(Qc(e.parent)){const R=fRe(V);if(R){x.typeUsages.push(R);continue}}}k.valid=!1}return k}function m(y){const x=l.getSymbolAtLocation(y);return x&&d1e(x,l)}}function aK(e,t){const r=dN(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),a=i==null?void 0:i.getSymbol();if(a&&!(rc(a)&6))return a}}function Sve(e){const t=e.node;if(yu(t.parent)||Sm(t.parent)||Hl(t.parent)||p1(t.parent)||p_(t.parent)||dc(t.parent))return t}function oK(e){if(l_(e.node.parent))return e.node}function kve(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 213:case 214:const i=Hr(r,Xm);if(i&&i.expression===t)return i;break;case 211:const a=Hr(r,kr);if(a&&a.parent&&a.name===t){const l=Hr(a.parent,Xm);if(l&&l.expression===a)return l}break;case 212:const o=Hr(r,No);if(o&&o.parent&&o.argumentExpression===t){const l=Hr(o.parent,Xm);if(l&&l.expression===o)return l}break}}}function uRe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 211:const i=Hr(r,kr);if(i&&i.expression===t)return i;break;case 212:const a=Hr(r,No);if(a&&a.expression===t)return a;break}}}function fRe(e){const t=e.node;if(gT(t)===2||TD(t.parent))return t}function Cve(e,t,r){const i=B8(e,t),a=Gle(i);if(!pRe(i)&&a&&mRe(a,r)&&yf(a,i)&&!(a.body&&yf(a.body,i)))return a}function pRe(e){const t=On(e,s6);if(t){const r=On(t,i=>!s6(i));return!!r&&Eo(r)}return!1}function dRe(e){return ig(e)&&(f_(e.parent)||ef(e.parent))}function mRe(e,t){var r;if(!gRe(e.parameters,t))return!1;switch(e.kind){case 262:return Eve(e)&&sN(e,t);case 174:if(ha(e.parent)){const i=aK(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&sN(e,t)}return sN(e,t);case 176:return Qc(e.parent)?Eve(e.parent)&&sN(e,t):wve(e.parent.parent)&&sN(e,t);case 218:case 219:return wve(e.parent)}return!1}function sN(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function Eve(e){return e.name?!0:!!C4(e,90)}function gRe(e,t){return yRe(e)>=Nve&&$i(e,r=>hRe(r,t))}function hRe(e,t){if(Qm(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&we(e.name)}function wve(e){return Mi(e)&&f6(e)&&we(e.name)&&!e.type}function cK(e){return e.length>0&&k4(e[0].name)}function yRe(e){return cK(e)?e.length-1:e.length}function Dve(e){return cK(e)&&(e=I.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function vRe(e,t){return we(t)&&kp(t)===e?I.createShorthandPropertyAssignment(e):I.createPropertyAssignment(e,t)}function bRe(e,t){const r=Dve(e.parameters),i=Qm(ka(r)),a=i?t.slice(0,r.length-1):t,o=an(a,(u,f)=>{const g=PR(r[f]),m=vRe(g,u);return Bu(m.name),Dc(m)&&Bu(m.initializer),TT(u,m),m});if(i&&t.length>=r.length){const u=t.slice(r.length-1),f=I.createPropertyAssignment(PR(ka(r)),I.createArrayLiteralExpression(u));o.push(f)}return I.createObjectLiteralExpression(o,!1)}function Ave(e,t,r){const i=t.getTypeChecker(),a=Dve(e.parameters),o=an(a,m),l=I.createObjectBindingPattern(o),u=y(a);let f;$i(a,C)&&(f=I.createObjectLiteralExpression());const g=I.createParameterDeclaration(void 0,void 0,l,void 0,u,f);if(cK(e.parameters)){const N=e.parameters[0],D=I.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return Bu(D.name),TT(N.name,D.name),N.type&&(Bu(D.type),TT(N.type,D.type)),I.createNodeArray([D,g])}return I.createNodeArray([g]);function m(N){const D=I.createBindingElement(void 0,void 0,PR(N),Qm(N)&&C(N)?I.createArrayLiteralExpression():N.initializer);return Bu(D),N.initializer&&D.initializer&&TT(N.initializer,D.initializer),D}function y(N){const D=an(N,x);return xm(I.createTypeLiteralNode(D),1)}function x(N){let D=N.type;!D&&(N.initializer||Qm(N))&&(D=k(N));const M=I.createPropertySignature(void 0,PR(N),C(N)?I.createToken(58):N.questionToken,D);return Bu(M),TT(N.name,M.name),N.type&&M.type&&TT(N.type,M.type),M}function k(N){const D=i.getTypeAtLocation(N);return H8(D,N,t,r)}function C(N){if(Qm(N)){const D=i.getTypeAtLocation(N);return!i.isTupleType(D)}return i.isOptionalParameter(N)}}function PR(e){return kp(e.name)}function TRe(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[E.checkDefined(C4(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,a=e.parent.parent,o=i.name;return o?[o,a.name]:[a.name]}}function xRe(e){switch(e.kind){case 262:return e.name?[e.name]:[E.checkDefined(C4(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const r=E.checkDefined($a(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return E.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var aN,Nve,lK,_K,SRe=Bt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){Wr(),Wd(),aN="Convert parameters to destructured object",Nve=1,lK=ss(p.Convert_parameters_to_destructured_object),_K={name:aN,description:lK,kind:"refactor.rewrite.parameters.toDestructured"},Dm(aN,{kinds:[_K.kind],getEditsForAction:cRe,getAvailableActions:oRe})}}),kRe={},CRe=Bt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){SRe()}});function ERe(e){const{file:t,startPosition:r}=e,i=Pve(t,r),a=uK(i),o={name:IR,description:OR,actions:[]};return rr(a)&&fK(a).isValidConcatenation?(o.actions.push(FR),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push({...FR,notApplicableReason:ss(p.Can_only_convert_string_concatenation)}),[o]):Ve}function Pve(e,t){const r=Vi(e,t),i=uK(r);return!fK(i).isValidConcatenation&&hu(i.parent)&&rr(i.parent.parent)?i.parent.parent:r}function wRe(e,t){const{file:r,startPosition:i}=e,a=Pve(r,i);switch(t){case OR:return{edits:DRe(e,a)};default:return E.fail("invalid action")}}function DRe(e,t){const r=uK(t),i=e.file,a=PRe(fK(r),i),o=ly(i.text,r.end);if(o){const l=o[o.length-1],u={pos:o[0].pos,end:l.end};return er.ChangeTracker.with(e,f=>{f.deleteRange(i,u),f.replaceNode(i,r,a)})}else return er.ChangeTracker.with(e,l=>l.replaceNode(i,r,a))}function ARe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function uK(e){return On(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(rr(r.parent)&&ARe(r.parent));default:return"quit"}})||e}function fK(e){const t=l=>{if(!rr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:pa(l)||rS(l)};const{nodes:u,operators:f,hasString:g,validOperators:m}=t(l.left);if(!(g||pa(l.right)||hF(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const y=l.operatorToken.kind===40,x=m&&y;return u.push(l.right),f.push(l.operatorToken),{nodes:u,operators:f,hasString:!0,validOperators:x}},{nodes:r,operators:i,validOperators:a,hasString:o}=t(e);return{nodes:r,operators:i,isValidConcatenation:a&&o}}function NRe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function Ive(e){const t=G6(e)||yfe(e)?-2:-1;return el(e).slice(1,t)}function Ove(e,t){const r=[];let i="",a="";for(;e{Fve(U);const j=Y===x.templateSpans.length-1,ee=U.literal.text+(j?C:""),R=Ive(U.literal)+(j?N:"");return I.createTemplateSpan(U.expression,M&&j?I.createTemplateTail(ee,R):I.createTemplateMiddle(ee,R))});g.push(...V)}else{const V=M?I.createTemplateTail(C,N):I.createTemplateMiddle(C,N);a(D,V),g.push(I.createTemplateSpan(x,V))}}return I.createTemplateExpression(m,g)}function Fve(e){const t=e.getSourceFile();W8(e,e.expression,t,3,!1),z5(e.expression,e.expression,t,3,!1)}function IRe(e){return hu(e)&&(Fve(e),e=e.expression),e}var IR,OR,FR,Lve,Mve,ORe=Bt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){Wr(),Wd(),IR="Convert to template string",OR=ss(p.Convert_to_template_string),FR={name:IR,description:OR,kind:"refactor.rewrite.string"},Dm(IR,{kinds:[FR.kind],getEditsForAction:wRe,getAvailableActions:ERe}),Lve=(e,t)=>(r,i)=>{r(i,a)=>{for(;i.length>0;){const o=i.shift();W8(e[o],a,t,3,!1),r(o,a)}}}}),FRe={},LRe=Bt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){ORe()}});function MRe(e){const t=Rve(e,e.triggerReason==="invoked");return t?lg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:oN,description:RR,actions:[{...BR,notApplicableReason:t.error}]}]:Ve:[{name:oN,description:RR,actions:[BR]}]:Ve}function RRe(e,t){const r=Rve(e);return E.assert(r&&!lg(r),"Expected applicable refactor info"),{edits:er.ChangeTracker.with(e,a=>qRe(e.file,e.program.getTypeChecker(),a,r)),renameFilename:void 0,renameLocation:void 0}}function LR(e){return rr(e)||K6(e)}function BRe(e){return ql(e)||nd(e)||ic(e)}function MR(e){return LR(e)||BRe(e)}function Rve(e,t=!0){const{file:r,program:i}=e,a=IS(e),o=a.length===0;if(o&&!t)return;const l=Vi(r,a.start),u=kM(r,a.start+a.length),f=ll(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),g=o?URe(l):VRe(l,f),m=g&&MR(g)?WRe(g):void 0;if(!m)return{error:ss(p.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return K6(m)?jRe(m,y):JRe(m)}function jRe(e,t){const r=e.condition,i=dK(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:ss(p.Could_not_find_convertible_access_expression)};if((kr(r)||we(r))&&pK(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(rr(r)){const a=Bve(i.expression,r);return a?{finalExpression:i,occurrences:a,expression:e}:{error:ss(p.Could_not_find_matching_access_expressions)}}}function JRe(e){if(e.operatorToken.kind!==56)return{error:ss(p.Can_only_convert_logical_AND_access_chains)};const t=dK(e.right);if(!t)return{error:ss(p.Could_not_find_convertible_access_expression)};const r=Bve(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:ss(p.Could_not_find_matching_access_expressions)}}function Bve(e,t){const r=[];for(;rr(t)&&t.operatorToken.kind===56;){const a=pK(uo(e),uo(t.right));if(!a)break;r.push(a),e=a,t=t.left}const i=pK(e,t);return i&&r.push(i),r.length>0?r:void 0}function pK(e,t){if(!(!we(t)&&!kr(t)&&!No(t)))return zRe(e,t)?t:void 0}function zRe(e,t){for(;(js(e)||kr(e)||No(e))&&oE(e)!==oE(t);)e=e.expression;for(;kr(e)&&kr(t)||No(e)&&No(t);){if(oE(e)!==oE(t))return!1;e=e.expression,t=t.expression}return we(e)&&we(t)&&e.getText()===t.getText()}function oE(e){if(we(e)||If(e))return e.getText();if(kr(e))return oE(e.name);if(No(e))return oE(e.argumentExpression)}function VRe(e,t){for(;e.parent;){if(MR(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function URe(e){for(;e.parent;){if(MR(e)&&!MR(e.parent))return e;e=e.parent}}function WRe(e){if(LR(e))return e;if(ic(e)){const t=S6(e),r=t==null?void 0:t.initializer;return r&&LR(r)?r:void 0}return e.expression&&LR(e.expression)?e.expression:void 0}function dK(e){if(e=uo(e),rr(e))return dK(e.left);if((kr(e)||No(e)||js(e))&&!c_(e))return e}function jve(e,t,r){if(kr(t)||No(t)||js(t)){const i=jve(e,t.expression,r),a=r.length>0?r[r.length-1]:void 0,o=(a==null?void 0:a.getText())===t.expression.getText();if(o&&r.pop(),js(t))return o?I.createCallChain(i,I.createToken(29),t.typeArguments,t.arguments):I.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(kr(t))return o?I.createPropertyAccessChain(i,I.createToken(29),t.name):I.createPropertyAccessChain(i,t.questionDotToken,t.name);if(No(t))return o?I.createElementAccessChain(i,I.createToken(29),t.argumentExpression):I.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function qRe(e,t,r,i,a){const{finalExpression:o,occurrences:l,expression:u}=i,f=l[l.length-1],g=jve(t,o,l);g&&(kr(g)||No(g)||js(g))&&(rr(u)?r.replaceNodeRange(e,f,o,g):K6(u)&&r.replaceNode(e,u,I.createBinaryExpression(g,I.createToken(61),u.whenFalse)))}var oN,RR,BR,HRe=Bt({"src/services/refactors/convertToOptionalChainExpression.ts"(){Wr(),Wd(),oN="Convert to optional chain expression",RR=ss(p.Convert_to_optional_chain_expression),BR={name:oN,description:RR,kind:"refactor.rewrite.expression.optionalChain"},Dm(oN,{kinds:[BR.kind],getEditsForAction:RRe,getAvailableActions:MRe})}}),GRe={},$Re=Bt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){HRe()}});function Jve(e){const t=e.kind,r=mK(e.file,IS(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Ve;const C=[];return k1(RS.kind,t)&&C.push({name:LS,description:RS.description,actions:[{...RS,notApplicableReason:k(r.errors)}]}),k1(MS.kind,t)&&C.push({name:LS,description:MS.description,actions:[{...MS,notApplicableReason:k(r.errors)}]}),C}const a=eBe(i,e);if(a===void 0)return Ve;const o=[],l=new Map;let u;const f=[],g=new Map;let m,y=0;for(const{functionExtraction:C,constantExtraction:N}of a){if(k1(RS.kind,t)){const D=C.description;C.errors.length===0?l.has(D)||(l.set(D,!0),o.push({description:D,name:`function_scope_${y}`,kind:RS.kind})):u||(u={description:D,name:`function_scope_${y}`,notApplicableReason:k(C.errors),kind:RS.kind})}if(k1(MS.kind,t)){const D=N.description;N.errors.length===0?g.has(D)||(g.set(D,!0),f.push({description:D,name:`constant_scope_${y}`,kind:MS.kind})):m||(m={description:D,name:`constant_scope_${y}`,notApplicableReason:k(N.errors),kind:MS.kind})}y++}const x=[];return o.length?x.push({name:LS,description:ss(p.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&u&&x.push({name:LS,description:ss(p.Extract_function),actions:[u]}),f.length?x.push({name:LS,description:ss(p.Extract_constant),actions:f}):e.preferences.provideRefactorNotApplicableReason&&m&&x.push({name:LS,description:ss(p.Extract_constant),actions:[m]}),x.length?x:Ve;function k(C){let N=C[0].messageText;return typeof N!="string"&&(N=N.messageText),N}}function zve(e,t){const i=mK(e.file,IS(e)).targetRange,a=/^function_scope_(\d+)$/.exec(t);if(a){const l=+a[1];return E.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),ZRe(i,e,l)}const o=/^constant_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return E.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),KRe(i,e,l)}E.fail("Unrecognized action name")}function mK(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[vl(e,t.start,i,Ll.cannotExtractEmpty)]};const a=i===0&&r,o=Vhe(e,t.start),l=kM(e,Zl(t)),u=o&&l&&r?XRe(o,l,e):t,f=a?bBe(o):M5(o,e,u),g=a?f:M5(l,e,u);let m=0,y;if(!f||!g)return{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]};if(f.flags&16777216)return{errors:[vl(e,t.start,i,Ll.cannotExtractJSDoc)]};if(f.parent!==g.parent)return{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]};if(f!==g){if(!Uve(f.parent))return{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]};const V=[];for(const U of f.parent.statements){if(U===f||V.length){const Y=M(U);if(Y)return{errors:Y};V.push(U)}if(U===g)break}return V.length?{targetRange:{range:V,facts:m,thisNode:y}}:{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]}}if(nd(f)&&!f.expression)return{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]};const x=C(f),k=N(x)||M(x);if(k)return{errors:k};return{targetRange:{range:QRe(x),facts:m,thisNode:y}};function C(V){if(nd(V)){if(V.expression)return V.expression}else if(ic(V)||dl(V)){const U=ic(V)?V.declarationList.declarations:V.declarations;let Y=0,j;for(const ee of U)ee.initializer&&(Y++,j=ee.initializer);if(Y===1)return j}else if(Mi(V)&&V.initializer)return V.initializer;return V}function N(V){if(we(ql(V)?V.expression:V))return[yr(V,Ll.cannotExtractIdentifier)]}function D(V,U){let Y=V;for(;Y!==U;){if(Y.kind===172){Ps(Y)&&(m|=32);break}else if(Y.kind===169){df(Y).kind===176&&(m|=32);break}else Y.kind===174&&Ps(Y)&&(m|=32);Y=Y.parent}}function M(V){let U;if((oe=>{oe[oe.None=0]="None",oe[oe.Break=1]="Break",oe[oe.Continue=2]="Continue",oe[oe.Return=4]="Return"})(U||(U={})),E.assert(V.pos<=V.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),E.assert(!Md(V.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ii(V)&&!(qg(V)&&Vve(V))&&!bK(V))return[yr(V,Ll.statementOrExpressionExpected)];if(V.flags&33554432)return[yr(V,Ll.cannotExtractAmbientBlock)];const Y=Pl(V);Y&&D(V,Y);let j,ee=4,R;if(Z(V),m&8){const oe=tu(V,!1,!1);(oe.kind===262||oe.kind===174&&oe.parent.kind===210||oe.kind===218)&&(m|=16)}return j;function Z(oe){if(j)return!0;if(l_(oe)){const X=oe.kind===260?oe.parent.parent:oe;if(Mr(X,1))return(j||(j=[])).push(yr(oe,Ll.cannotExtractExportedEntity)),!0}switch(oe.kind){case 272:return(j||(j=[])).push(yr(oe,Ll.cannotExtractImport)),!0;case 277:return(j||(j=[])).push(yr(oe,Ll.cannotExtractExportedEntity)),!0;case 108:if(oe.parent.kind===213){const X=Pl(oe);if(X===void 0||X.pos=t.start+t.length)return(j||(j=[])).push(yr(oe,Ll.cannotExtractSuper)),!0}else m|=8,y=oe;break;case 219:ys(oe,function X(H){if(k4(H))m|=8,y=oe;else{if(ei(H)||ks(H)&&!Po(H))return!1;ys(H,X)}});case 263:case 262:Ri(oe.parent)&&oe.parent.externalModuleIndicator===void 0&&(j||(j=[])).push(yr(oe,Ll.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const _e=ee;switch(oe.kind){case 245:ee&=-5;break;case 258:ee=0;break;case 241:oe.parent&&oe.parent.kind===258&&oe.parent.finallyBlock===oe&&(ee=4);break;case 297:case 296:ee|=1;break;default:t1(oe,!1)&&(ee|=3);break}switch(oe.kind){case 197:case 110:m|=8,y=oe;break;case 256:{const X=oe.label;(R||(R=[])).push(X.escapedText),ys(oe,Z),R.pop();break}case 252:case 251:{const X=oe.label;X?gs(R,X.escapedText)||(j||(j=[])).push(yr(oe,Ll.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ee&(oe.kind===252?1:2)||(j||(j=[])).push(yr(oe,Ll.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:ee&4?m|=1:(j||(j=[])).push(yr(oe,Ll.cannotExtractRangeContainingConditionalReturnStatement));break;default:ys(oe,Z);break}ee=_e}}}function XRe(e,t,r){const i=e.getStart(r);let a=t.getEnd();return r.text.charCodeAt(a)===59&&a++,{start:i,length:a-i}}function QRe(e){if(Ii(e))return[e];if(qg(e))return ql(e.parent)?[e.parent]:e;if(bK(e))return e}function gK(e){return Po(e)?uW(e.body):Eo(e)||Ri(e)||jd(e)||ei(e)}function YRe(e){let t=s0(e.range)?wa(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=Pl(t);if(i){const a=On(t,Eo);return a?[a,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===169&&(t=On(t,i=>Eo(i)).parent),gK(t)&&(r.push(t),t.kind===312))return r}function ZRe(e,t,r){const{scopes:i,readsAndWrites:{target:a,usagesPerScope:o,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=hK(e,t);return E.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),aBe(a,i[r],o[r],u,e,t)}function KRe(e,t,r){const{scopes:i,readsAndWrites:{target:a,usagesPerScope:o,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=hK(e,t);E.assert(!l[r].length,"The extraction went missing? How?"),E.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const f=nt(a)?a:a.statements[0].expression;return oBe(f,i[r],o[r],e.facts,t)}function eBe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:a}}=hK(e,t);return r.map((l,u)=>{const f=tBe(l),g=nBe(l),m=Eo(l)?rBe(l):ei(l)?iBe(l):sBe(l);let y,x;return m===1?(y=tg(ss(p.Extract_to_0_in_1_scope),[f,"global"]),x=tg(ss(p.Extract_to_0_in_1_scope),[g,"global"])):m===0?(y=tg(ss(p.Extract_to_0_in_1_scope),[f,"module"]),x=tg(ss(p.Extract_to_0_in_1_scope),[g,"module"])):(y=tg(ss(p.Extract_to_0_in_1),[f,m]),x=tg(ss(p.Extract_to_0_in_1),[g,m])),u===0&&!ei(l)&&(x=tg(ss(p.Extract_to_0_in_enclosing_scope),[g])),{functionExtraction:{description:y,errors:i[u]},constantExtraction:{description:x,errors:a[u]}}})}function hK(e,t){const{file:r}=t,i=YRe(e),a=yBe(e,r),o=vBe(e,i,a,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:o}}function tBe(e){return Eo(e)?"inner function":ei(e)?"method":"function"}function nBe(e){return ei(e)?"readonly field":"constant"}function rBe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:rR;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:E.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function iBe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function sBe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function aBe(e,t,{usages:r,typeParameterUsages:i,substitutions:a},o,l,u){const f=u.program.getTypeChecker(),g=Oa(u.program.getCompilerOptions()),m=n_.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),x=xT(ei(t)?"newMethod":"newFunction",y),k=Zn(t),C=I.createIdentifier(x);let N;const D=[],M=[];let V;r.forEach((be,xe)=>{let rt;if(!k){let pe=f.getTypeOfSymbolAtLocation(be.symbol,be.node);pe=f.getBaseTypeOfLiteralType(pe),rt=n_.typeToAutoImportableTypeNode(f,m,pe,t,g,1)}const ct=I.createParameterDeclaration(void 0,void 0,xe,void 0,rt);D.push(ct),be.usage===2&&(V||(V=[])).push(be),M.push(I.createIdentifier(xe))});const Y=ia(i.values(),be=>({type:be,declaration:lBe(be,u.startPosition)})).sort(_Be),j=Y.length===0?void 0:qi(Y,({declaration:be})=>be),ee=j!==void 0?j.map(be=>I.createTypeReferenceNode(be.name,void 0)):void 0;if(nt(e)&&!k){const be=f.getContextualType(e);N=f.typeToTypeNode(be,t,1)}const{body:R,returnValueProperty:Z}=fBe(e,o,V,a,!!(l.facts&1));Bu(R);let oe;const _e=!!(l.facts&16);if(ei(t)){const be=k?[]:[I.createModifier(123)];l.facts&32&&be.push(I.createModifier(126)),l.facts&4&&be.push(I.createModifier(134)),oe=I.createMethodDeclaration(be.length?be:void 0,l.facts&2?I.createToken(42):void 0,C,void 0,j,D,N,R)}else _e&&D.unshift(I.createParameterDeclaration(void 0,void 0,"this",void 0,f.typeToTypeNode(f.getTypeAtLocation(l.thisNode),t,1),void 0)),oe=I.createFunctionDeclaration(l.facts&4?[I.createToken(134)]:void 0,l.facts&2?I.createToken(42):void 0,C,j,D,N,R);const X=er.ChangeTracker.fromContext(u),H=(s0(l.range)?ka(l.range):l.range).end,Q=mBe(H,t);Q?X.insertNodeBefore(u.file,Q,oe,!0):X.insertNodeAtEndOfScope(u.file,t,oe),m.writeFixes(X);const re=[],ue=uBe(t,l,x);_e&&M.unshift(I.createIdentifier("this"));let fe=I.createCallExpression(_e?I.createPropertyAccessExpression(ue,"call"):ue,ee,M);if(l.facts&2&&(fe=I.createYieldExpression(I.createToken(42),fe)),l.facts&4&&(fe=I.createAwaitExpression(fe)),vK(e)&&(fe=I.createJsxExpression(void 0,fe)),o.length&&!V)if(E.assert(!Z,"Expected no returnValueProperty"),E.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){const be=o[0];re.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Io(be.name),void 0,Io(be.type),fe)],be.parent.flags)))}else{const be=[],xe=[];let rt=o[0].parent.flags,ct=!1;for(const Pe of o){be.push(I.createBindingElement(void 0,void 0,Io(Pe.name)));const Ge=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(Pe)),t,1);xe.push(I.createPropertySignature(void 0,Pe.symbol.name,void 0,Ge)),ct=ct||Pe.type!==void 0,rt=rt&Pe.parent.flags}const pe=ct?I.createTypeLiteralNode(xe):void 0;pe&&Xn(pe,1),re.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(I.createObjectBindingPattern(be),void 0,pe,fe)],rt)))}else if(o.length||V){if(o.length)for(const xe of o){let rt=xe.parent.flags;rt&2&&(rt=rt&-3|1),re.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(xe.symbol.name,void 0,ve(xe.type))],rt)))}Z&&re.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Z,void 0,ve(N))],1)));const be=yK(o,V);Z&&be.unshift(I.createShorthandPropertyAssignment(Z)),be.length===1?(E.assert(!Z,"Shouldn't have returnValueProperty here"),re.push(I.createExpressionStatement(I.createAssignment(be[0].name,fe))),l.facts&1&&re.push(I.createReturnStatement())):(re.push(I.createExpressionStatement(I.createAssignment(I.createObjectLiteralExpression(be),fe))),Z&&re.push(I.createReturnStatement(I.createIdentifier(Z))))}else l.facts&1?re.push(I.createReturnStatement(fe)):s0(l.range)?re.push(I.createExpressionStatement(fe)):re.push(fe);s0(l.range)?X.replaceNodeRangeWithNodes(u.file,wa(l.range),ka(l.range),re):X.replaceNodeWithNodes(u.file,l.range,re);const G=X.getChanges(),De=(s0(l.range)?wa(l.range):l.range).getSourceFile().fileName,Xe=J5(G,De,x,!1);return{renameFilename:De,renameLocation:Xe,edits:G};function ve(be){if(be===void 0)return;const xe=Io(be);let rt=xe;for(;cS(rt);)rt=rt.type;return aS(rt)&&Fr(rt.types,ct=>ct.kind===157)?xe:I.createUnionTypeNode([xe,I.createKeywordTypeNode(157)])}}function oBe(e,t,{substitutions:r},i,a){const o=a.program.getTypeChecker(),l=t.getSourceFile(),u=kr(e)&&!ei(t)&&!o.resolveName(e.name.text,e,111551,!1)&&!Ei(e.name)&&!uy(e.name)?e.name.text:xT(ei(t)?"newProperty":"newLocal",l),f=Zn(t);let g=f||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),m=pBe(uo(e),r);({variableType:g,initializer:m}=N(g,m)),Bu(m);const y=er.ChangeTracker.fromContext(a);if(ei(t)){E.assert(!f,"Cannot extract to a JS class");const D=[];D.push(I.createModifier(123)),i&32&&D.push(I.createModifier(126)),D.push(I.createModifier(148));const M=I.createPropertyDeclaration(D,u,void 0,g,m);let V=I.createPropertyAccessExpression(i&32?I.createIdentifier(t.name.getText()):I.createThis(),I.createIdentifier(u));vK(e)&&(V=I.createJsxExpression(void 0,V));const U=e.pos,Y=gBe(U,t);y.insertNodeBefore(a.file,Y,M,!0),y.replaceNode(a.file,e,V)}else{const D=I.createVariableDeclaration(u,void 0,g,m),M=cBe(e,t);if(M){y.insertNodeBefore(a.file,M,D);const V=I.createIdentifier(u);y.replaceNode(a.file,e,V)}else if(e.parent.kind===244&&t===On(e,gK)){const V=I.createVariableStatement(void 0,I.createVariableDeclarationList([D],2));y.replaceNode(a.file,e.parent,V)}else{const V=I.createVariableStatement(void 0,I.createVariableDeclarationList([D],2)),U=hBe(e,t);if(U.pos===0?y.insertNodeAtTopOfFile(a.file,V,!1):y.insertNodeBefore(a.file,U,V,!1),e.parent.kind===244)y.delete(a.file,e.parent);else{let Y=I.createIdentifier(u);vK(e)&&(Y=I.createJsxExpression(void 0,Y)),y.replaceNode(a.file,e,Y)}}}const x=y.getChanges(),k=e.getSourceFile().fileName,C=J5(x,k,u,!0);return{renameFilename:k,renameLocation:C,edits:x};function N(D,M){if(D===void 0)return{variableType:D,initializer:M};if(!fo(M)&&!Po(M)||!!M.typeParameters)return{variableType:D,initializer:M};const V=o.getTypeAtLocation(e),U=om(o.getSignaturesOfType(V,0));if(!U)return{variableType:D,initializer:M};if(U.getTypeParameters())return{variableType:D,initializer:M};const Y=[];let j=!1;for(const ee of M.parameters)if(ee.type)Y.push(ee);else{const R=o.getTypeAtLocation(ee);R===o.getAnyType()&&(j=!0),Y.push(I.updateParameterDeclaration(ee,ee.modifiers,ee.dotDotDotToken,ee.name,ee.questionToken,ee.type||o.typeToTypeNode(R,t,1),ee.initializer))}if(j)return{variableType:D,initializer:M};if(D=void 0,Po(M))M=I.updateArrowFunction(M,Ap(e)?qv(e):void 0,M.typeParameters,Y,M.type||o.typeToTypeNode(U.getReturnType(),t,1),M.equalsGreaterThanToken,M.body);else{if(U&&!!U.thisParameter){const ee=wl(Y);if(!ee||we(ee.name)&&ee.name.escapedText!=="this"){const R=o.getTypeOfSymbolAtLocation(U.thisParameter,e);Y.splice(0,0,I.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(R,t,1)))}}M=I.updateFunctionExpression(M,Ap(e)?qv(e):void 0,M.asteriskToken,M.name,M.typeParameters,Y,M.type||o.typeToTypeNode(U.getReturnType(),t,1),M.body)}return{variableType:D,initializer:M}}}function cBe(e,t){let r;for(;e!==void 0&&e!==t;){if(Mi(e)&&e.initializer===r&&dl(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function lBe(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const a of i.declarations)(r===void 0||a.pos0;if(hs(e)&&!o&&i.size===0)return{body:I.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const f=I.createNodeArray(hs(e)?e.statements.slice(0):[Ii(e)?e:I.createReturnStatement(uo(e))]);if(o||i.size){const m=An(f,g,Ii).slice();if(o&&!a&&Ii(e)){const y=yK(t,r);y.length===1?m.push(I.createReturnStatement(y[0].name)):m.push(I.createReturnStatement(I.createObjectLiteralExpression(y)))}return{body:I.createBlock(m,!0),returnValueProperty:l}}else return{body:I.createBlock(f,!0),returnValueProperty:void 0};function g(m){if(!u&&nd(m)&&o){const y=yK(t,r);return m.expression&&(l||(l="__return"),y.unshift(I.createPropertyAssignment(l,Ue(m.expression,g,nt)))),y.length===1?I.createReturnStatement(y[0].name):I.createReturnStatement(I.createObjectLiteralExpression(y))}else{const y=u;u=u||Eo(m)||ei(m);const x=i.get(Ba(m).toString()),k=x?Io(x):pn(m,g,n0);return u=y,k}}}function pBe(e,t){return t.size?r(e):e;function r(i){const a=t.get(Ba(i).toString());return a?Io(a):pn(i,r,n0)}}function dBe(e){if(Eo(e)){const t=e.body;if(hs(t))return t.statements}else{if(jd(e)||Ri(e))return e.statements;if(ei(e))return e.members}return Ve}function mBe(e,t){return Fr(dBe(t),r=>r.pos>=e&&Eo(r)&&!wc(r))}function gBe(e,t){const r=t.members;E.assert(r.length>0,"Found no members");let i,a=!0;for(const o of r){if(o.pos>e)return i||r[0];if(a&&!Is(o)){if(i!==void 0)return o;a=!1}i=o}return i===void 0?E.fail():i}function hBe(e,t){E.assert(!ei(t));let r;for(let i=e;i!==t;i=i.parent)gK(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(Uve(i)){let a;for(const o of i.statements){if(o.pos>e.pos)break;a=o}return!a&&e4(i)?(E.assert(oA(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):E.checkDefined(a,"prevStatement failed to get set")}E.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function yK(e,t){const r=an(e,a=>I.createShorthandPropertyAssignment(a.symbol.name)),i=an(t,a=>I.createShorthandPropertyAssignment(a.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function s0(e){return Ds(e)}function yBe(e,t){return s0(e.range)?{pos:wa(e.range).getStart(t),end:ka(e.range).getEnd()}:e.range}function vBe(e,t,r,i,a,o){const l=new Map,u=[],f=[],g=[],m=[],y=[],x=new Map,k=[];let C;const N=s0(e.range)?e.range.length===1&&ql(e.range[0])?e.range[0].expression:void 0:e.range;let D;if(N===void 0){const Q=e.range,re=wa(Q).getStart(),ue=ka(Q).end;D=vl(i,re,ue-re,Ll.expressionExpected)}else a.getTypeAtLocation(N).flags&147456&&(D=yr(N,Ll.uselessConstantType));for(const Q of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),f.push(new Map),g.push([]);const re=[];D&&re.push(D),ei(Q)&&Zn(Q)&&re.push(yr(Q,Ll.cannotExtractToJSClass)),Po(Q)&&!hs(Q.body)&&re.push(yr(Q,Ll.cannotExtractToExpressionArrowFunction)),m.push(re)}const M=new Map,V=s0(e.range)?I.createBlock(e.range):e.range,U=s0(e.range)?wa(e.range):e.range,Y=j(U);if(R(V),Y&&!s0(e.range)&&!zd(e.range)){const Q=a.getContextualType(e.range);ee(Q)}if(l.size>0){const Q=new Map;let re=0;for(let ue=U;ue!==void 0&&re{u[re].typeParameterUsages.set(G,fe)}),re++),MW(ue))for(const fe of Zh(ue)){const G=a.getTypeAtLocation(fe);l.has(G.id.toString())&&Q.set(G.id.toString(),G)}E.assert(re===t.length,"Should have iterated all scopes")}if(y.length){const Q=LW(t[0],t[0].parent)?t[0]:mm(t[0]);ys(Q,_e)}for(let Q=0;Q0&&(re.usages.size>0||re.typeParameterUsages.size>0)){const G=s0(e.range)?e.range[0]:e.range;m[Q].push(yr(G,Ll.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ei(t[Q])&&g[Q].push(yr(e.thisNode,Ll.cannotExtractFunctionsContainingThisToMethod));let ue=!1,fe;if(u[Q].usages.forEach(G=>{G.usage===2&&(ue=!0,G.symbol.flags&106500&&G.symbol.valueDeclaration&&Iu(G.symbol.valueDeclaration,64)&&(fe=G.symbol.valueDeclaration))}),E.assert(s0(e.range)||k.length===0,"No variable declarations expected if something was extracted"),ue&&!s0(e.range)){const G=yr(e.range,Ll.cannotWriteInExpression);g[Q].push(G),m[Q].push(G)}else if(fe&&Q>0){const G=yr(fe,Ll.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[Q].push(G),m[Q].push(G)}else if(C){const G=yr(C,Ll.cannotExtractExportedEntity);g[Q].push(G),m[Q].push(G)}}return{target:V,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:m,exposedVariableDeclarations:k};function j(Q){return!!On(Q,re=>MW(re)&&Zh(re).length!==0)}function ee(Q){const re=a.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:ue}=re.walkType(Q);for(const fe of ue)fe.isTypeParameter()&&l.set(fe.id.toString(),fe)}function R(Q,re=1){if(Y){const ue=a.getTypeAtLocation(Q);ee(ue)}if(l_(Q)&&Q.symbol&&y.push(Q),Kl(Q))R(Q.left,2),R(Q.right);else if(ile(Q))R(Q.operand,2);else if(kr(Q)||No(Q))ys(Q,R);else if(we(Q)){if(!Q.parent||gu(Q.parent)&&Q!==Q.parent.left||kr(Q.parent)&&Q!==Q.parent.expression)return;Z(Q,re,Ym(Q))}else ys(Q,R)}function Z(Q,re,ue){const fe=oe(Q,re,ue);if(fe)for(let G=0;G=re)return G;if(M.set(G,re),Ne){for(const ve of u)ve.usages.get(Q.text)&&ve.usages.set(Q.text,{usage:re,symbol:fe,node:Q});return G}const De=fe.getDeclarations(),Xe=De&&Fr(De,ve=>ve.getSourceFile()===i);if(!!Xe&&!E5(r,Xe.getStart(),Xe.end)){if(e.facts&2&&re===2){const ve=yr(Q,Ll.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const be of g)be.push(ve);for(const be of m)be.push(ve)}for(let ve=0;ve=0)return;const re=we(Q)?X(Q):a.getSymbolAtLocation(Q);if(re){const ue=Fr(y,fe=>fe.symbol===re);if(ue)if(Mi(ue)){const fe=ue.symbol.id.toString();x.has(fe)||(k.push(ue),x.set(fe,!0))}else C=C||ue}ys(Q,_e)}function X(Q){return Q.parent&&nf(Q.parent)&&Q.parent.name===Q?a.getShorthandAssignmentValueSymbol(Q.parent):a.getSymbolAtLocation(Q)}function H(Q,re,ue){if(!Q)return;const fe=Q.getDeclarations();if(fe&&fe.some(Ne=>Ne.parent===re))return I.createIdentifier(Q.name);const G=H(Q.parent,re,ue);if(G!==void 0)return ue?I.createQualifiedName(G,I.createIdentifier(Q.name)):I.createPropertyAccessExpression(G,Q.name)}}function bBe(e){return On(e,t=>t.parent&&Vve(t)&&!rr(t.parent))}function Vve(e){const{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function Uve(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function vK(e){return bK(e)||(cg(e)||eT(e)||g2(e))&&(cg(e.parent)||g2(e.parent))}function bK(e){return pa(e)&&e.parent&&zd(e.parent)}var LS,MS,RS,Ll,TK,TBe=Bt({"src/services/refactors/extractSymbol.ts"(){Wr(),Wd(),LS="Extract Symbol",MS={name:"Extract Constant",description:ss(p.Extract_constant),kind:"refactor.extract.constant"},RS={name:"Extract Function",description:ss(p.Extract_function),kind:"refactor.extract.function"},Dm(LS,{kinds:[MS.kind,RS.kind],getEditsForAction:zve,getAvailableActions:Jve}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Ll||(Ll={})),TK=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(TK||{})}}),Wve={};C_(Wve,{Messages:()=>Ll,RangeFacts:()=>TK,getRangeToExtract:()=>mK,getRefactorActionsToExtractSymbol:()=>Jve,getRefactorEditsToExtractSymbol:()=>zve});var xBe=Bt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){TBe()}}),cN,jR,JR,SBe=Bt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){Wr(),Wd(),cN="Generate 'get' and 'set' accessors",jR=ss(p.Generate_get_and_set_accessors),JR={name:cN,description:jR,kind:"refactor.rewrite.property.generateAccessors"},Dm(cN,{kinds:[JR.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=n_.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);E.assert(i&&!lg(i),"Expected applicable refactor info");const a=n_.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!a)return;const o=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,f=(we(l)?0:-1)+J5(a,o,l.text,ns(i.declaration));return{renameFilename:o,renameLocation:f,edits:a}},getAvailableActions(e){if(!e.endPosition)return Ve;const t=n_.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?lg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:cN,description:jR,actions:[{...JR,notApplicableReason:t.error}]}]:Ve:[{name:cN,description:jR,actions:[JR]}]:Ve}})}}),kBe={},CBe=Bt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){SBe()}});function EBe(e){const t=qve(e);if(t&&!lg(t))return{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,i=>DBe(e.file,i,t.declaration,t.returnTypeNode))}}function wBe(e){const t=qve(e);return t?lg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:lN,description:zR,actions:[{..._N,notApplicableReason:t.error}]}]:Ve:[{name:lN,description:zR,actions:[_N]}]:Ve}function DBe(e,t,r,i){const a=$a(r,22,e),o=Po(r)&&a===void 0,l=o?wa(r.parameters):a;l&&(o&&(t.insertNodeBefore(e,l,I.createToken(21)),t.insertNodeAfter(e,l,I.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function qve(e){if(Zn(e.file)||!k1(_N.kind,e.kind))return;const t=Vi(e.file,e.startPosition),r=On(t,l=>hs(l)||l.parent&&Po(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":ABe(l));if(!r||!r.body||r.type)return{error:ss(p.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),a=NBe(i,r);if(!a)return{error:ss(p.Could_not_determine_function_return_type)};const o=i.typeToTypeNode(a,r,1);if(o)return{declaration:r,returnTypeNode:o}}function ABe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function NBe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(qi(i,a=>a.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var lN,zR,_N,PBe=Bt({"src/services/refactors/inferFunctionReturnType.ts"(){Wr(),Wd(),lN="Infer function return type",zR=ss(p.Infer_function_return_type),_N={name:lN,description:zR,kind:"refactor.rewrite.function.returnType"},Dm(lN,{kinds:[_N.kind],getEditsForAction:EBe,getAvailableActions:wBe})}}),IBe={},OBe=Bt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){PBe()}}),BS={};C_(BS,{addExportToChanges:()=>KZ,addExports:()=>XZ,addNewFileToTsconfig:()=>WZ,addOrRemoveBracesToArrowFunction:()=>GMe,convertArrowFunctionOrFunctionExpression:()=>sRe,convertParamsToDestructuredObject:()=>kRe,convertStringOrTemplateLiteral:()=>FRe,convertToOptionalChainExpression:()=>GRe,createNewFileName:()=>eK,createOldFileImportsFromTargetFile:()=>$Z,deleteMovedStatements:()=>eN,deleteUnusedImports:()=>QZ,deleteUnusedOldImports:()=>qZ,doChangeNamedToNamespaceOrDefault:()=>Zye,extractSymbol:()=>Wve,filterImport:()=>tE,forEachImportInStatement:()=>eE,generateGetAccessorAndSetAccessor:()=>kBe,getApplicableRefactors:()=>$Le,getEditsForRefactor:()=>XLe,getStatementsToMove:()=>nE,getTopLevelDeclarationStatement:()=>CR,getUsageInfo:()=>ER,inferFunctionReturnType:()=>IBe,isRefactorErrorInfo:()=>lg,isTopLevelDeclaration:()=>nN,makeImportOrRequire:()=>tN,moduleSpecifierFromImport:()=>K8,nameOfTopLevelDeclaration:()=>ZZ,refactorKindBeginsWith:()=>k1,registerRefactor:()=>Dm,updateImportsInOtherFiles:()=>HZ});var Wd=Bt({"src/services/_namespaces/ts.refactor.ts"(){Hye(),nMe(),oMe(),pMe(),dMe(),gMe(),bMe(),JMe(),$Me(),aRe(),CRe(),LRe(),$Re(),xBe(),CBe(),OBe()}});function Hve(e,t,r,i){const a=xK(e,t,r,i);E.assert(a.spans.length%3===0);const o=a.spans,l=[];for(let u=0;u{a.push(l.getStart(t),l.getWidth(t),(u+1<<8)+f)},i),a}function LBe(e,t,r,i,a){const o=e.getTypeChecker();let l=!1;function u(f){switch(f.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:a.throwIfCancellationRequested()}if(!f||!$I(r,f.pos,f.getFullWidth())||f.getFullWidth()===0)return;const g=l;if((cg(f)||eT(f))&&(l=!0),o8(f)&&(l=!1),we(f)&&!l&&!jBe(f)&&!z3(f.escapedText)){let m=o.getSymbolAtLocation(f);if(m){m.flags&2097152&&(m=o.getAliasedSymbol(m));let y=MBe(m,gT(f));if(y!==void 0){let x=0;f.parent&&(Fa(f.parent)||EK.get(f.parent.kind)===y)&&f.parent.name===f&&(x=1),y===6&&$ve(f)&&(y=9),y=RBe(o,f,y);const k=m.valueDeclaration;if(k){const C=Wv(k),N=U0(k);C&32&&(x|=2),C&512&&(x|=4),y!==0&&y!==2&&(C&64||N&2||m.getFlags()&8)&&(x|=8),(y===7||y===10)&&BBe(k,t)&&(x|=32),e.isSourceFileDefaultLibrary(k.getSourceFile())&&(x|=16)}else m.declarations&&m.declarations.some(C=>e.isSourceFileDefaultLibrary(C.getSourceFile()))&&(x|=16);i(f,y,x)}}}ys(f,u),l=g}u(t)}function MBe(e,t){const r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Fa(i)&&(i=Gve(i)),i&&EK.get(i.kind)}function RBe(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const a=o=>o(i)||i.isUnion()&&i.types.some(o);if(r!==6&&a(o=>o.getConstructSignatures().length>0))return 0;if(a(o=>o.getCallSignatures().length>0)&&!a(o=>o.getProperties().length>0)||JBe(t))return r===9?11:10}}return r}function BBe(e,t){return Fa(e)&&(e=Gve(e)),Mi(e)?(!Ri(e.parent.parent.parent)||Ny(e.parent))&&e.getSourceFile()===t:tl(e)?!Ri(e.parent)&&e.getSourceFile()===t:!1}function Gve(e){for(;;)if(Fa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function jBe(e){const t=e.parent;return t&&(Sm(t)||yu(t)||p1(t))}function JBe(e){for(;$ve(e);)e=e.parent;return js(e.parent)&&e.parent.expression===e}function $ve(e){return gu(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e}var SK,kK,CK,EK,Xve=Bt({"src/services/classifier2020.ts"(){Wr(),SK=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(SK||{}),kK=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(kK||{}),CK=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(CK||{}),EK=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function Qve(e,t,r,i){const a=vw(e)?new HR(e,t,r):e===80?new $R(80,t,r):e===81?new XR(81,t,r):new NK(e,t,r);return a.parent=i,a.flags=i.flags&101441536,a}function zBe(e,t){if(!vw(e.kind))return Ve;const r=[];if(f9(e))return e.forEachChild(l=>{r.push(l)}),r;g_.setText((t||e.getSourceFile()).text);let i=e.pos;const a=l=>{uN(r,i,l.pos,e),r.push(l),i=l.end},o=l=>{uN(r,i,l.pos,e),r.push(VBe(l,e)),i=l.end};return mn(e.jsDoc,a),i=e.pos,e.forEachChild(a,o),uN(r,i,e.end,e),g_.setText(void 0),r}function uN(e,t,r,i){for(g_.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function VR(e,t){if(!e)return Ve;let r=zy.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Yve))){const i=new Set;for(const a of e){const o=Zve(t,a,l=>{var u;if(!i.has(l))return i.add(l),a.kind===177||a.kind===178?l.getContextualJsDocTags(a,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags():void 0});o&&(r=[...o,...r])}}return r}function fN(e,t){if(!e)return Ve;let r=zy.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Yve))){const i=new Set;for(const a of e){const o=Zve(t,a,l=>{if(!i.has(l))return i.add(l),a.kind===177||a.kind===178?l.getContextualDocumentationComment(a,t):l.getDocumentationComment(t)});o&&(r=r.length===0?o.slice():o.concat(w4(),r))}}return r}function Zve(e,t,r){var i;const a=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!a)return;const o=$c(t);return _c(_3(a),l=>{const u=e.getTypeAtLocation(l),f=o&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(f,t.symbol.name);return g?r(g):void 0})}function UBe(){return{getNodeConstructor:()=>HR,getTokenConstructor:()=>NK,getIdentifierConstructor:()=>$R,getPrivateIdentifierConstructor:()=>XR,getSourceFileConstructor:()=>o2e,getSymbolConstructor:()=>i2e,getTypeConstructor:()=>s2e,getSignatureConstructor:()=>a2e,getSourceMapSourceConstructor:()=>c2e}}function pN(e){let t=!0;for(const i in e)if(lo(e,i)&&!Kve(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(lo(e,i)){const a=Kve(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[a]=e[i]}return r}function Kve(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function e2e(e){return e?an(e,t=>t.text).join(""):""}function UR(){return{target:1,jsx:1}}function t2e(){return n_.getSupportedErrorCodes()}function n2e(e,t,r){e.version=r,e.scriptSnapshot=t}function WR(e,t,r,i,a,o){const l=xA(e,PM(t),r,a,o);return n2e(l,t,i),l}function wK(e,t,r,i,a){if(i&&r!==e.version){let l;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",f=Zl(i.span)!==e.text.length?e.text.substr(Zl(i.span)):"";if(i.newLength===0)l=u&&f?u+f:u||f;else{const m=t.getText(i.span.start,i.span.start+i.newLength);l=u&&f?u+m+f:u?u+m:m+f}const g=CG(e,l,i,a);return n2e(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return WR(e.fileName,t,o,r,!0,e.scriptKind)}function r2e(e,t=dZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let a;r===void 0?a=0:typeof r=="boolean"?a=r?2:0:a=r;const o=new l2e(e);let l,u,f=0;const g=e.getCancellationToken?new u2e(e.getCancellationToken()):_2e,m=e.getCurrentDirectory();iue((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(le){e.log&&e.log(le)}const x=hD(e),k=Ql(x),C=lye({useCaseSensitiveFileNames:()=>x,getCurrentDirectory:()=>m,getProgram:M,fileExists:Gs(e,e.fileExists),readFile:Gs(e,e.readFile),getDocumentPositionMapper:Gs(e,e.getDocumentPositionMapper),getSourceFileLike:Gs(e,e.getSourceFileLike),log:y});function N(le){const W=l.getSourceFile(le);if(!W){const ge=new Error(`Could not find source file: '${le}'.`);throw ge.ProgramFiles=l.getSourceFiles().map(F=>F.fileName),ge}return W}function D(){var le,W,ge;if(E.assert(a!==2),e.getProjectVersion){const Ui=e.getProjectVersion();if(Ui){if(u===Ui&&!((le=e.hasChangedAutomaticTypeDirectiveNames)!=null&&le.call(e)))return;u=Ui}}const F=e.getTypeRootsVersion?e.getTypeRootsVersion():0;f!==F&&(y("TypeRoots version has changed; provide new program"),l=void 0,f=F);const ye=e.getScriptFileNames().slice(),Oe=e.getCompilationSettings()||UR(),We=e.hasInvalidatedResolutions||B0,Tt=Gs(e,e.hasInvalidatedLibResolutions)||B0,Ot=Gs(e,e.hasChangedAutomaticTypeDirectiveNames),on=(W=e.getProjectReferences)==null?void 0:W.call(e);let Sn,ir={getSourceFile:ln,getSourceFileByPath:tc,getCancellationToken:()=>g,getCanonicalFileName:k,useCaseSensitiveFileNames:()=>x,getNewLine:()=>Z0(Oe),getDefaultLibFileName:Ui=>e.getDefaultLibFileName(Ui),writeFile:_o,getCurrentDirectory:()=>m,fileExists:Ui=>e.fileExists(Ui),readFile:Ui=>e.readFile&&e.readFile(Ui),getSymlinkCache:Gs(e,e.getSymlinkCache),realpath:Gs(e,e.realpath),directoryExists:Ui=>Zp(Ui,e),getDirectories:Ui=>e.getDirectories?e.getDirectories(Ui):[],readDirectory:(Ui,Cs,Ea,ro,Ja)=>(E.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Ui,Cs,Ea,ro,Ja)),onReleaseOldSourceFile:pi,onReleaseParsedCommandLine:Fs,hasInvalidatedResolutions:We,hasInvalidatedLibResolutions:Tt,hasChangedAutomaticTypeDirectiveNames:Ot,trace:Gs(e,e.trace),resolveModuleNames:Gs(e,e.resolveModuleNames),getModuleResolutionCache:Gs(e,e.getModuleResolutionCache),createHash:Gs(e,e.createHash),resolveTypeReferenceDirectives:Gs(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Gs(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Gs(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Gs(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Gs(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Qr};const ar=ir.getSourceFile,{getSourceFileWithCache:jn}=a5(ir,Ui=>yo(Ui,m,k),(...Ui)=>ar.call(ir,...Ui));ir.getSourceFile=jn,(ge=e.setCompilerHost)==null||ge.call(e,ir);const ai={useCaseSensitiveFileNames:x,fileExists:Ui=>ir.fileExists(Ui),readFile:Ui=>ir.readFile(Ui),directoryExists:Ui=>ir.directoryExists(Ui),getDirectories:Ui=>ir.getDirectories(Ui),realpath:ir.realpath,readDirectory:(...Ui)=>ir.readDirectory(...Ui),trace:ir.trace,getCurrentDirectory:ir.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:_o},ea=t.getKeyForCompilationSettings(Oe);let ps=new Set;if(NX(l,ye,Oe,(Ui,Cs)=>e.getScriptVersion(Cs),Ui=>ir.fileExists(Ui),We,Tt,Ot,Qr,on)){ir=void 0,Sn=void 0,ps=void 0;return}l=HL({rootNames:ye,options:Oe,host:ir,oldProgram:l,projectReferences:on}),ir=void 0,Sn=void 0,ps=void 0,C.clearCache(),l.getTypeChecker();return;function Qr(Ui){const Cs=yo(Ui,m,k),Ea=Sn==null?void 0:Sn.get(Cs);if(Ea!==void 0)return Ea||void 0;const ro=e.getParsedCommandLine?e.getParsedCommandLine(Ui):cs(Ui);return(Sn||(Sn=new Map)).set(Cs,ro||!1),ro}function cs(Ui){const Cs=ln(Ui,100);if(!!Cs)return Cs.path=yo(Ui,m,k),Cs.resolvedPath=Cs.path,Cs.originalFileName=Cs.fileName,DA(Cs,ai,fs(bi(Ui),m),void 0,fs(Ui,m))}function Fs(Ui,Cs,Ea){var ro;e.getParsedCommandLine?(ro=e.onReleaseParsedCommandLine)==null||ro.call(e,Ui,Cs,Ea):Cs&&pi(Cs.sourceFile,Ea)}function pi(Ui,Cs){const Ea=t.getKeyForCompilationSettings(Cs);t.releaseDocumentWithKey(Ui.resolvedPath,Ea,Ui.scriptKind,Ui.impliedNodeFormat)}function ln(Ui,Cs,Ea,ro){return tc(Ui,yo(Ui,m,k),Cs,Ea,ro)}function tc(Ui,Cs,Ea,ro,Ja){E.assert(ir,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const Ic=e.getScriptSnapshot(Ui);if(!Ic)return;const ls=VY(Ui,e),Oi=e.getScriptVersion(Ui);if(!Ja){const Vc=l&&l.getSourceFileByPath(Cs);if(Vc){if(ls===Vc.scriptKind||ps.has(Vc.resolvedPath))return t.updateDocumentWithKey(Ui,Cs,e,ea,Ic,Oi,ls,Ea);t.releaseDocumentWithKey(Vc.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Vc.scriptKind,Vc.impliedNodeFormat),ps.add(Vc.resolvedPath)}}return t.acquireDocumentWithKey(Ui,Cs,e,ea,Ic,Oi,ls,Ea)}}function M(){if(a===2){E.assert(l===void 0);return}return D(),l}function V(){var le;return(le=e.getPackageJsonAutoImportProvider)==null?void 0:le.call(e)}function U(le,W){const ge=l.getTypeChecker(),F=ye();if(!F)return!1;for(const We of le)for(const Tt of We.references){const Ot=Oe(Tt);if(E.assertIsDefined(Ot),W.has(Tt)||Oo.isDeclarationOfSymbol(Ot,F)){W.add(Tt),Tt.isDefinition=!0;const on=RY(Tt,C,Gs(e,e.fileExists));on&&W.add(on)}else Tt.isDefinition=!1}return!0;function ye(){for(const We of le)for(const Tt of We.references){if(W.has(Tt)){const on=Oe(Tt);return E.assertIsDefined(on),ge.getSymbolAtLocation(on)}const Ot=RY(Tt,C,Gs(e,e.fileExists));if(Ot&&W.has(Ot)){const on=Oe(Ot);if(on)return ge.getSymbolAtLocation(on)}}}function Oe(We){const Tt=l.getSourceFile(We.fileName);if(!Tt)return;const Ot=af(Tt,We.textSpan.start);return Oo.Core.getAdjustedNode(Ot,{use:Oo.FindReferencesUse.References})}}function Y(){if(l){const le=t.getKeyForCompilationSettings(l.getCompilerOptions());mn(l.getSourceFiles(),W=>t.releaseDocumentWithKey(W.resolvedPath,le,W.scriptKind,W.impliedNodeFormat)),l=void 0}}function j(){Y(),e=void 0}function ee(le){return D(),l.getSyntacticDiagnostics(N(le),g).slice()}function R(le){D();const W=N(le),ge=l.getSemanticDiagnostics(W,g);if(!Ep(l.getCompilerOptions()))return ge.slice();const F=l.getDeclarationDiagnostics(W,g);return[...ge,...F]}function Z(le){return D(),CZ(N(le),l,g)}function oe(){return D(),[...l.getOptionsDiagnostics(g),...l.getGlobalDiagnostics(g)]}function _e(le,W,ge=lp,F){const ye={...ge,includeCompletionsForModuleExports:ge.includeCompletionsForModuleExports||ge.includeExternalModuleExports,includeCompletionsWithInsertText:ge.includeCompletionsWithInsertText||ge.includeInsertTextCompletions};return D(),HS.getCompletionsAtPosition(e,l,y,N(le),W,ye,ge.triggerCharacter,ge.triggerKind,g,F&&ml.getFormatContext(F,e),ge.includeSymbol)}function X(le,W,ge,F,ye,Oe=lp,We){return D(),HS.getCompletionEntryDetails(l,y,N(le),W,{name:ge,source:ye,data:We},e,F&&ml.getFormatContext(F,e),Oe,g)}function H(le,W,ge,F,ye=lp){return D(),HS.getCompletionEntrySymbol(l,y,N(le),W,{name:ge,source:F},e,ye)}function Q(le,W){D();const ge=N(le),F=af(ge,W);if(F===ge)return;const ye=l.getTypeChecker(),Oe=re(F),We=GBe(Oe,ye);if(!We||ye.isUnknownSymbol(We)){const ir=ue(ge,Oe,W)?ye.getTypeAtLocation(Oe):void 0;return ir&&{kind:"",kindModifiers:"",textSpan:au(Oe,ge),displayParts:ye.runWithCancellationToken(g,ar=>B5(ar,ir,hT(Oe))),documentation:ir.symbol?ir.symbol.getDocumentationComment(ye):void 0,tags:ir.symbol?ir.symbol.getJsDocTags(ye):void 0}}const{symbolKind:Tt,displayParts:Ot,documentation:on,tags:Sn}=ye.runWithCancellationToken(g,ir=>fh.getSymbolDisplayPartsDocumentationAndSymbolKind(ir,We,ge,hT(Oe),Oe));return{kind:Tt,kindModifiers:fh.getSymbolModifiers(ye,We),textSpan:au(Oe,ge),displayParts:Ot,documentation:on,tags:Sn}}function re(le){return f2(le.parent)&&le.pos===le.parent.pos?le.parent.expression:t8(le.parent)&&le.pos===le.parent.pos||d6(le.parent)&&le.parent.name===le||Vd(le.parent)?le.parent:le}function ue(le,W,ge){switch(W.kind){case 80:return!lY(W)&&!_Y(W)&&!Ug(W.parent);case 211:case 166:return!ch(le,ge);case 110:case 197:case 108:case 202:return!0;case 236:return d6(W);default:return!1}}function fe(le,W,ge,F){return D(),bE.getDefinitionAtPosition(l,N(le),W,ge,F)}function G(le,W){return D(),bE.getDefinitionAndBoundSpan(l,N(le),W)}function Ne(le,W){return D(),bE.getTypeDefinitionAtPosition(l.getTypeChecker(),N(le),W)}function De(le,W){return D(),Oo.getImplementationsAtPosition(l,g,l.getSourceFiles(),N(le),W)}function Xe(le,W,ge){const F=ba(le);E.assert(ge.some(We=>ba(We)===F)),D();const ye=qi(ge,We=>l.getSourceFile(We)),Oe=N(le);return aR.getDocumentHighlights(l,g,Oe,W,ye)}function ve(le,W,ge,F,ye){D();const Oe=N(le),We=SM(af(Oe,W));if(!!Hj.nodeIsEligibleForRename(We))if(we(We)&&(Jd(We.parent)||m2(We.parent))&&A6(We.escapedText)){const{openingElement:Tt,closingElement:Ot}=We.parent.parent;return[Tt,Ot].map(on=>{const Sn=au(on.tagName,Oe);return{fileName:Oe.fileName,textSpan:Sn,...Oo.toContextSpan(Sn,Oe,on.parent)}})}else{const Tt=Mf(Oe,ye!=null?ye:lp),Ot=typeof ye=="boolean"?ye:ye==null?void 0:ye.providePrefixAndSuffixTextForRename;return xe(We,W,{findInStrings:ge,findInComments:F,providePrefixAndSuffixTextForRename:Ot,use:Oo.FindReferencesUse.Rename},(on,Sn,ir)=>Oo.toRenameLocation(on,Sn,ir,Ot||!1,Tt))}}function be(le,W){return D(),xe(af(N(le),W),W,{use:Oo.FindReferencesUse.References},Oo.toReferenceEntry)}function xe(le,W,ge,F){D();const ye=ge&&ge.use===Oo.FindReferencesUse.Rename?l.getSourceFiles().filter(Oe=>!l.isSourceFileDefaultLibrary(Oe)):l.getSourceFiles();return Oo.findReferenceOrRenameEntries(l,g,ye,le,W,ge,F)}function rt(le,W){return D(),Oo.findReferencedSymbols(l,g,l.getSourceFiles(),N(le),W)}function ct(le){return D(),Oo.Core.getReferencesForFileName(le,l,l.getSourceFiles()).map(Oo.toReferenceEntry)}function pe(le,W,ge,F=!1){D();const ye=ge?[N(ge)]:l.getSourceFiles();return bye(ye,l.getTypeChecker(),g,le,W,F)}function Pe(le,W,ge){D();const F=N(le),ye=e.getCustomTransformers&&e.getCustomTransformers();return e0e(l,F,!!W,g,ye,ge)}function Ge(le,W,{triggerReason:ge}=lp){D();const F=N(le);return JN.getSignatureHelpItems(l,F,W,ge,g)}function tt(le){return o.getCurrentSourceFile(le)}function mt(le,W,ge){const F=o.getCurrentSourceFile(le),ye=af(F,W);if(ye===F)return;switch(ye.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Oe=ye;for(;;)if(S4(Oe)||Ohe(Oe))Oe=Oe.parent;else if(fY(Oe))if(Oe.parent.parent.kind===267&&Oe.parent.parent.body===Oe.parent)Oe=Oe.parent.parent.name;else break;else break;return ll(Oe.getStart(),ye.getEnd())}function Je(le,W){const ge=o.getCurrentSourceFile(le);return BK.spanInSourceFileAtLocation(ge,W)}function at(le){return kye(o.getCurrentSourceFile(le),g)}function zt(le){return Cye(o.getCurrentSourceFile(le),g)}function It(le,W,ge){return D(),(ge||"original")==="2020"?Hve(l,g,N(le),W):J1e(l.getTypeChecker(),g,N(le),l.getClassifiableNames(),W)}function bt(le,W,ge){return D(),(ge||"original")==="original"?fZ(l.getTypeChecker(),g,N(le),l.getClassifiableNames(),W):xK(l,g,N(le),W)}function _r(le,W){return W1e(g,o.getCurrentSourceFile(le),W)}function Tn(le,W){return pZ(g,o.getCurrentSourceFile(le),W)}function jt(le){const W=o.getCurrentSourceFile(le);return Lne.collectElements(W,g)}const Kn=new Map(Object.entries({[19]:20,[21]:22,[23]:24,[32]:30}));Kn.forEach((le,W)=>Kn.set(le.toString(),Number(W)));function br(le,W){const ge=o.getCurrentSourceFile(le),F=B8(ge,W),ye=F.getStart(ge)===W?Kn.get(F.kind.toString()):void 0,Oe=ye&&$a(F.parent,ye,ge);return Oe?[au(F,ge),au(Oe,ge)].sort((We,Tt)=>We.start-Tt.start):Ve}function fi(le,W,ge){let F=Uo();const ye=pN(ge),Oe=o.getCurrentSourceFile(le);y("getIndentationAtPosition: getCurrentSourceFile: "+(Uo()-F)),F=Uo();const We=ml.SmartIndenter.getIndentation(W,Oe,ye);return y("getIndentationAtPosition: computeIndentation : "+(Uo()-F)),We}function Si(le,W,ge,F){const ye=o.getCurrentSourceFile(le);return ml.formatSelection(W,ge,ye,ml.getFormatContext(pN(F),e))}function Nr(le,W){return ml.formatDocument(o.getCurrentSourceFile(le),ml.getFormatContext(pN(W),e))}function pt(le,W,ge,F){const ye=o.getCurrentSourceFile(le),Oe=ml.getFormatContext(pN(F),e);if(!ch(ye,W))switch(ge){case"{":return ml.formatOnOpeningCurly(W,ye,Oe);case"}":return ml.formatOnClosingCurly(W,ye,Oe);case";":return ml.formatOnSemicolon(W,ye,Oe);case` -`:return ml.formatOnEnter(W,ye,Oe)}return[]}function ur(le,W,ge,F,ye,Oe=lp){D();const We=N(le),Tt=ll(W,ge),Ot=ml.getFormatContext(ye,e);return Na(zk(F,oy,Co),on=>(g.throwIfCancellationRequested(),n_.getFixes({errorCode:on,sourceFile:We,span:Tt,program:l,host:e,cancellationToken:g,formatContext:Ot,preferences:Oe})))}function yn(le,W,ge,F=lp){D(),E.assert(le.type==="file");const ye=N(le.fileName),Oe=ml.getFormatContext(ge,e);return n_.getAllFixes({fixId:W,sourceFile:ye,program:l,host:e,cancellationToken:g,formatContext:Oe,preferences:F})}function Ct(le,W,ge=lp){var We;D(),E.assert(le.type==="file");const F=N(le.fileName),ye=ml.getFormatContext(W,e),Oe=(We=le.mode)!=null?We:le.skipDestructiveCodeActions?"SortAndCombine":"All";return Op.organizeImports(F,ye,e,l,ge,Oe)}function cn(le,W,ge,F=lp){return $1e(M(),le,W,e,ml.getFormatContext(ge,e),F,C)}function In(le,W){const ge=typeof le=="string"?W:le;return Ds(ge)?Promise.all(ge.map(F=>xr(F))):xr(ge)}function xr(le){const W=ge=>yo(ge,m,k);return E.assertEqual(le.type,"install package"),e.installPackage?e.installPackage({fileName:W(le.file),packageName:le.packageName}):Promise.reject("Host does not implement `installPackage`")}function wi(le,W,ge,F){const ye=F?ml.getFormatContext(F,e).options:void 0;return zy.getDocCommentTemplateAtPosition(r0(e,ye),o.getCurrentSourceFile(le),W,ge)}function Zt(le,W,ge){if(ge===60)return!1;const F=o.getCurrentSourceFile(le);if(vT(F,W))return!1;if(Whe(F,W))return ge===123;if(bY(F,W))return!1;switch(ge){case 39:case 34:case 96:return!ch(F,W)}return!0}function Gt(le,W){const ge=o.getCurrentSourceFile(le),F=rl(W,ge);if(!F)return;const ye=F.kind===32&&Jd(F.parent)?F.parent.parent:nS(F)&&cg(F.parent)?F.parent:void 0;if(ye&&st(ye))return{newText:``};const Oe=F.kind===32&&dS(F.parent)?F.parent.parent:nS(F)&&g2(F.parent)?F.parent:void 0;if(Oe&&Ut(Oe))return{newText:""}}function xn(le,W){const ge=o.getCurrentSourceFile(le),F=rl(W,ge);if(!F||F.parent.kind===312)return;const ye="[a-zA-Z0-9:\\-\\._$]*";if(g2(F.parent.parent)){const Oe=F.parent.parent.openingFragment,We=F.parent.parent.closingFragment;if(c6(Oe)||c6(We))return;const Tt=Oe.getStart(ge)+1,Ot=We.getStart(ge)+2;return W!==Tt&&W!==Ot?void 0:{ranges:[{start:Tt,length:0},{start:Ot,length:0}],wordPattern:ye}}else{const Oe=On(F.parent,jn=>!!(Jd(jn)||m2(jn)));if(!Oe)return;E.assert(Jd(Oe)||m2(Oe),"tag should be opening or closing element");const We=Oe.parent.openingElement,Tt=Oe.parent.closingElement,Ot=We.tagName.getStart(ge),on=We.tagName.end,Sn=Tt.tagName.getStart(ge),ir=Tt.tagName.end;return!(Ot<=W&&W<=on||Sn<=W&&W<=ir)||We.tagName.getText(ge)!==Tt.tagName.getText(ge)?void 0:{ranges:[{start:Ot,length:on-Ot},{start:Sn,length:ir-Sn}],wordPattern:ye}}}function Gr(le,W){return{lineStarts:le.getLineStarts(),firstLine:le.getLineAndCharacterOfPosition(W.pos).line,lastLine:le.getLineAndCharacterOfPosition(W.end).line}}function Er(le,W,ge){const F=o.getCurrentSourceFile(le),ye=[],{lineStarts:Oe,firstLine:We,lastLine:Tt}=Gr(F,W);let Ot=ge||!1,on=Number.MAX_VALUE;const Sn=new Map,ir=new RegExp(/\S/),ar=CM(F,Oe[We]),jn=ar?"{/*":"//";for(let ai=We;ai<=Tt;ai++){const ea=F.text.substring(Oe[ai],F.getLineEndOfPosition(Oe[ai])),ps=ir.exec(ea);ps&&(on=Math.min(on,ps.index),Sn.set(ai.toString(),ps.index),ea.substr(ps.index,jn.length)!==jn&&(Ot=ge===void 0||ge))}for(let ai=We;ai<=Tt;ai++){if(We!==Tt&&Oe[ai]===W.end)continue;const ea=Sn.get(ai.toString());ea!==void 0&&(ar?ye.push.apply(ye,ze(le,{pos:Oe[ai]+on,end:F.getLineEndOfPosition(Oe[ai])},Ot,ar)):Ot?ye.push({newText:jn,span:{length:0,start:Oe[ai]+on}}):F.text.substr(Oe[ai]+ea,jn.length)===jn&&ye.push({newText:"",span:{length:jn.length,start:Oe[ai]+ea}}))}return ye}function ze(le,W,ge,F){var ye;const Oe=o.getCurrentSourceFile(le),We=[],{text:Tt}=Oe;let Ot=!1,on=ge||!1;const Sn=[];let{pos:ir}=W;const ar=F!==void 0?F:CM(Oe,ir),jn=ar?"{/*":"/*",ai=ar?"*/}":"*/",ea=ar?"\\{\\/\\*":"\\/\\*",ps=ar?"\\*\\/\\}":"\\*\\/";for(;ir<=W.end;){const Ws=Tt.substr(ir,jn.length)===jn?jn.length:0,Qr=ch(Oe,ir+Ws);if(Qr)ar&&(Qr.pos--,Qr.end++),Sn.push(Qr.pos),Qr.kind===3&&Sn.push(Qr.end),Ot=!0,ir=Qr.end+1;else{const cs=Tt.substring(ir,W.end).search(`(${ea})|(${ps})`);on=ge!==void 0?ge:on||!i1e(Tt,ir,cs===-1?W.end:ir+cs),ir=cs===-1?W.end+1:ir+cs+ai.length}}if(on||!Ot){((ye=ch(Oe,W.pos))==null?void 0:ye.kind)!==2&&qh(Sn,W.pos,Co),qh(Sn,W.end,Co);const Ws=Sn[0];Tt.substr(Ws,jn.length)!==jn&&We.push({newText:jn,span:{length:0,start:Ws}});for(let Qr=1;Qr0?Ws-ai.length:0,cs=Tt.substr(Qr,ai.length)===ai?ai.length:0;We.push({newText:"",span:{length:jn.length,start:Ws-cs}})}return We}function ut(le,W){const ge=o.getCurrentSourceFile(le),{firstLine:F,lastLine:ye}=Gr(ge,W);return F===ye&&W.pos!==W.end?ze(le,W,!0):Er(le,W,!0)}function kt(le,W){const ge=o.getCurrentSourceFile(le),F=[],{pos:ye}=W;let{end:Oe}=W;ye===Oe&&(Oe+=CM(ge,ye)?2:1);for(let We=ye;We<=Oe;We++){const Tt=ch(ge,We);if(Tt){switch(Tt.kind){case 2:F.push.apply(F,Er(le,{end:Tt.end,pos:Tt.pos+1},!1));break;case 3:F.push.apply(F,ze(le,{end:Tt.end,pos:Tt.pos+1},!1))}We=Tt.end+1}}return F}function st({openingElement:le,closingElement:W,parent:ge}){return!Fy(le.tagName,W.tagName)||cg(ge)&&Fy(le.tagName,ge.openingElement.tagName)&&st(ge)}function Ut({closingFragment:le,parent:W}){return!!(le.flags&262144)||g2(W)&&Ut(W)}function ae(le,W,ge){const F=o.getCurrentSourceFile(le),ye=ml.getRangeOfEnclosingComment(F,W);return ye&&(!ge||ye.kind===3)?b1(ye):void 0}function Me(le,W){D();const ge=N(le);g.throwIfCancellationRequested();const F=ge.text,ye=[];if(W.length>0&&!Ot(ge.fileName)){const on=We();let Sn;for(;Sn=on.exec(F);){g.throwIfCancellationRequested();const ir=3;E.assert(Sn.length===W.length+ir);const ar=Sn[1],jn=Sn.index+ar.length;if(!ch(ge,jn))continue;let ai;for(let ps=0;ps"("+Oe(Qr.text)+")").join("|")+")",ai=/(?:$|\*\/)/.source,ea=/(?:.*?)/.source,ps="("+jn+ea+")",Ws=ar+ps+ai;return new RegExp(Ws,"gim")}function Tt(on){return on>=97&&on<=122||on>=65&&on<=90||on>=48&&on<=57}function Ot(on){return Xl(on,"/node_modules/")}}function ke(le,W,ge){return D(),Hj.getRenameInfo(l,N(le),W,ge||{})}function ft(le,W,ge,F,ye,Oe){const[We,Tt]=typeof W=="number"?[W,void 0]:[W.pos,W.end];return{file:le,startPosition:We,endPosition:Tt,program:M(),host:e,formatContext:ml.getFormatContext(F,e),cancellationToken:g,preferences:ge,triggerReason:ye,kind:Oe}}function K(le,W,ge){return{file:le,program:M(),host:e,span:W,preferences:ge,cancellationToken:g}}function $e(le,W){return Jne.getSmartSelectionRange(W,o.getCurrentSourceFile(le))}function Ae(le,W,ge=lp,F,ye,Oe){D();const We=N(le);return BS.getApplicableRefactors(ft(We,W,ge,lp,F,ye),Oe)}function yt(le,W,ge=lp){D();const F=N(le),ye=E.checkDefined(l.getSourceFiles()),Oe=Gb(le),We=qi(ye,Ot=>!(l!=null&&l.isSourceFileFromExternalLibrary(F))&&!(F===N(Ot.fileName)||Oe===".ts"&&Gb(Ot.fileName)===".d.ts"||Oe===".d.ts"&&ts(Jl(Ot.fileName),"lib.")&&Gb(Ot.fileName)===".d.ts")&&Oe===Gb(Ot.fileName)?Ot.fileName:void 0);return{newFileName:eK(F,l,ft(F,W,ge,lp),e),files:We}}function _t(le,W,ge,F,ye,Oe=lp,We){D();const Tt=N(le);return BS.getEditsForRefactor(ft(Tt,ge,Oe,W),F,ye,We)}function Jt(le,W){return W===0?{line:0,character:0}:C.toLineColumnOffset(le,W)}function Ln(le,W){D();const ge=JS.resolveCallHierarchyDeclaration(l,af(N(le),W));return ge&&D1e(ge,F=>JS.createCallHierarchyItem(l,F))}function Pt(le,W){D();const ge=N(le),F=eZ(JS.resolveCallHierarchyDeclaration(l,W===0?ge:af(ge,W)));return F?JS.getIncomingCalls(l,F,g):[]}function hi(le,W){D();const ge=N(le),F=eZ(JS.resolveCallHierarchyDeclaration(l,W===0?ge:af(ge,W)));return F?JS.getOutgoingCalls(l,F):[]}function z(le,W,ge=lp){D();const F=N(le);return Cne.provideInlayHints(K(F,W,ge))}const B={dispose:j,cleanupSemanticCache:Y,getSyntacticDiagnostics:ee,getSemanticDiagnostics:R,getSuggestionDiagnostics:Z,getCompilerOptionsDiagnostics:oe,getSyntacticClassifications:_r,getSemanticClassifications:It,getEncodedSyntacticClassifications:Tn,getEncodedSemanticClassifications:bt,getCompletionsAtPosition:_e,getCompletionEntryDetails:X,getCompletionEntrySymbol:H,getSignatureHelpItems:Ge,getQuickInfoAtPosition:Q,getDefinitionAtPosition:fe,getDefinitionAndBoundSpan:G,getImplementationAtPosition:De,getTypeDefinitionAtPosition:Ne,getReferencesAtPosition:be,findReferences:rt,getFileReferences:ct,getDocumentHighlights:Xe,getNameOrDottedNameSpan:mt,getBreakpointStatementAtPosition:Je,getNavigateToItems:pe,getRenameInfo:ke,getSmartSelectionRange:$e,findRenameLocations:ve,getNavigationBarItems:at,getNavigationTree:zt,getOutliningSpans:jt,getTodoComments:Me,getBraceMatchingAtPosition:br,getIndentationAtPosition:fi,getFormattingEditsForRange:Si,getFormattingEditsForDocument:Nr,getFormattingEditsAfterKeystroke:pt,getDocCommentTemplateAtPosition:wi,isValidBraceCompletionAtPosition:Zt,getJsxClosingTagAtPosition:Gt,getLinkedEditingRangeAtPosition:xn,getSpanOfEnclosingComment:ae,getCodeFixesAtPosition:ur,getCombinedCodeFix:yn,applyCodeActionCommand:In,organizeImports:Ct,getEditsForFileRename:cn,getEmitOutput:Pe,getNonBoundSourceFile:tt,getProgram:M,getCurrentProgram:()=>l,getAutoImportProvider:V,updateIsDefinitionOfReferencedSymbols:U,getApplicableRefactors:Ae,getEditsForRefactor:_t,getMoveToRefactoringFileSuggestions:yt,toLineColumnOffset:Jt,getSourceMapper:()=>C,clearSourceMapperCache:()=>C.clearCache(),prepareCallHierarchy:Ln,provideCallHierarchyIncomingCalls:Pt,provideCallHierarchyOutgoingCalls:hi,toggleLineComment:Er,toggleMultilineComment:ze,commentSelection:ut,uncommentSelection:kt,provideInlayHints:z,getSupportedCodeFixes:t2e};switch(a){case 0:break;case 1:IK.forEach(le=>B[le]=()=>{throw new Error(`LanguageService Operation: ${le} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:f2e.forEach(le=>B[le]=()=>{throw new Error(`LanguageService Operation: ${le} not allowed in LanguageServiceMode.Syntactic`)});break;default:E.assertNever(a)}return B}function DK(e){return e.nameTable||WBe(e),e.nameTable}function WBe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(we(i)&&!_Y(i)&&i.escapedText||If(i)&&qBe(i)){const a=f3(i);t.set(a,t.get(a)===void 0?i.pos:-1)}else if(Ei(i)){const a=i.escapedText;t.set(a,t.get(a)===void 0?i.pos:-1)}if(ys(i,r),Qu(i))for(const a of i.jsDoc)ys(a,r)})}function qBe(e){return Gg(e)||e.parent.kind===283||$Be(e)||oD(e)}function dN(e){const t=HBe(e);return t&&(ha(t.parent)||h2(t.parent))?t:void 0}function HBe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return mW(e.parent.parent)?e.parent.parent:void 0;case 80:return mW(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function GBe(e,t){const r=dN(e);if(r){const i=t.getContextualType(r.parent),a=i&&qR(r,t,i,!1);if(a&&a.length===1)return wa(a)}return t.getSymbolAtLocation(e)}function qR(e,t,r,i){const a=F5(e.name);if(!a)return Ve;if(!r.isUnion()){const l=r.getProperty(a);return l?[l]:Ve}const o=qi(r.types,l=>(ha(e.parent)||h2(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(l,e.parent)?void 0:l.getProperty(a));if(i&&(o.length===0||o.length===r.types.length)){const l=r.getProperty(a);if(l)return[l]}return o.length===0?qi(r.types,l=>l.getProperty(a)):o}function $Be(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function XBe(e){if(jl)return Pi(bi(ba(jl.getExecutingFilePath())),GI(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var AK,HR,GR,i2e,NK,$R,XR,s2e,a2e,o2e,c2e,l2e,_2e,u2e,PK,IK,f2e,QBe=Bt({"src/services/services.ts"(){Wr(),Sye(),qye(),Wd(),H1e(),Xve(),AK="0.8",HR=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){E.assert(!Md(this.pos)&&!Md(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Bn(this)}getStart(e,t){return this.assertHasRealPosition(),Fb(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){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=zBe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=Fr(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=Bo(t);if(!!r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return ys(this,e,t)}},GR=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Bn(this)}getStart(e,t){return Fb(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Ve}getFirstToken(){}getLastToken(){}forEachChild(){}},i2e=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return xc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Ve,!this.declarations&&pm(this)&&this.links.target&&pm(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=fN([t],e)}else this.documentationComment=fN(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(n1(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=fN(Vr(this.declarations,n1),t)),Pn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(H0(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=fN(Vr(this.declarations,H0),t)),Pn(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=VR(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(n1(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=VR(Vr(this.declarations,n1),t)),Pn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(H0(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=VR(Vr(this.declarations,H0),t)),Pn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},NK=class extends GR{constructor(e,t,r){super(t,r),this.kind=e}},$R=class extends GR{constructor(e,t,r){super(t,r),this.kind=80}get text(){return lr(this)}},$R.prototype.kind=80,XR=class extends GR{constructor(e,t,r){super(t,r),this.kind=81}get text(){return lr(this)}},XR.prototype.kind=81,s2e=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Br(this)&3)}isClass(){return!!(Br(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Br(this)&4)return this.checker.getTypeArguments(this)}},a2e=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&V3(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=fN(xb(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=VR(xb(this.declaration),this.checker))}},o2e=class extends HR{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return CG(this,e,t)}getLineAndCharacterOfPosition(e){return vo(this,e)}getLineStarts(){return zg(this)}getPositionOfLineAndCharacter(e,t,r){return JU(zg(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const a=this.getFullText();return a[i]===` -`&&a[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=$f();return this.forEachChild(a),e;function t(o){const l=i(o);l&&e.add(l,o)}function r(o){let l=e.get(o);return l||e.set(o,l=[]),l}function i(o){const l=YI(o);return l&&(Ga(l)&&kr(l.expression)?l.expression.name.text:Jc(l)?F5(l):void 0)}function a(o){switch(o.kind){case 262:case 218:case 174:case 173:const l=o,u=i(l);if(u){const m=r(u),y=Bo(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}ys(o,a);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(o),ys(o,a);break;case 169:if(!Mr(o,16476))break;case 260:case 208:{const m=o;if(Ns(m.name)){ys(m.name,a);break}m.initializer&&a(m.initializer)}case 306:case 172:case 171:t(o);break;case 278:const f=o;f.exportClause&&(ap(f.exportClause)?mn(f.exportClause.elements,a):a(f.exportClause.name));break;case 272:const g=o.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):mn(g.namedBindings.elements,a)));break;case 226:pc(o)!==0&&t(o);default:ys(o,a)}}}},c2e=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return vo(this,e)}},l2e=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,a,o,l,u,f;const g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");const m=VY(e,this.host),y=this.host.getScriptVersion(e);let x;if(this.currentFileName!==e){const k={languageVersion:99,impliedNodeFormat:_5(yo(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||X0(this.host)),(f=(u=(l=(o=(a=this.host).getCompilerHost)==null?void 0:o.call(a))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:f.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:wD(this.host.getCompilationSettings())};x=WR(e,g,k,y,!0,m)}else if(this.currentFileVersion!==y){const k=g.getChangeRange(this.currentFileScriptSnapshot);x=wK(this.currentSourceFile,g,y,k)}return x&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=x),this.currentSourceFile}},_2e={isCancellationRequested:B0,throwIfCancellationRequested:_o},u2e=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ci)==null||e.instant(ci.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new OC}},PK=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Uo();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ci)==null||e.instant(ci.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new OC}},IK=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],f2e=[...IK,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],nue(UBe())}});function YBe(e,t,r){const i=[];r=AZ(r,i);const a=Ds(e)?e:[e],o=t5(void 0,void 0,I,r,a,t,!0);return o.diagnostics=Ki(o.diagnostics,i),o}var ZBe=Bt({"src/services/transform.ts"(){Wr()}});function QR(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function KBe(e,t,r,i){let a;i&&(e.log(t),a=Uo());const o=r();if(i){const l=Uo();if(e.log(`${t} completed in ${l-a} msec`),$s(o)){let u=o;u.length>128&&(u=u.substring(0,128)+"..."),e.log(` result.length=${u.length}, result='${JSON.stringify(u)}'`)}}return o}function OK(e,t,r,i){return p2e(e,t,!0,r,i)}function p2e(e,t,r,i,a){try{const o=KBe(e,t,i,a);return r?JSON.stringify({result:o}):o}catch(o){return o instanceof OC?JSON.stringify({canceled:!0}):(QR(e,o),o.description=t,JSON.stringify({error:o}))}}function FK(e,t){return e.map(r=>eje(r,t))}function eje(e,t){return{message:y1(e.messageText,t),start:e.start,length:e.length,category:EI(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function LK(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var YR,d2e,MK,RK,ZR,m2e,g2e,h2e,y2e,tje=Bt({"src/services/shims.ts"(){Wr(),YR=function(){return this}(),d2e=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const t=e,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(r===null)return null;const i=JSON.parse(r);return mw(yl(i.span.start,i.span.length),i.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},MK=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,r)=>{const i=JSON.parse(this.shimHost.getModuleResolutionsForFile(r));return an(t,a=>{const o=R7(i,a);return o?{resolvedFileName:o,extension:Gb(o),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=t=>this.shimHost.directoryExists(t)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,r)=>{const i=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return an(t,a=>R7(i,$s(a)?a:Qp(a.fileName)))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(!!this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(e===null||e==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const t=this.shimHost.getScriptSnapshot(e);return t&&new d2e(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e==="")return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new PK(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,r,i,a){const o=O3(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},RK=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=t=>this.shimHost.directoryExists(t):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=t=>this.shimHost.realpath(t):this.realpath=void 0}readDirectory(e,t,r,i,a){const o=O3(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},ZR=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},m2e=class extends ZR{constructor(e,t,r){super(e),this.host=t,this.languageService=r,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return OK(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,YR&&YR.CollectGarbage&&(YR.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(e){const t=r0(this.host,void 0);return FK(e,t)}getSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSyntacticClassifications(e,yl(t,r)))}getSemanticClassifications(e,t,r){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSemanticClassifications(e,yl(t,r)))}getEncodedSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${r})`,()=>LK(this.languageService.getEncodedSyntacticClassifications(e,yl(t,r))))}getEncodedSemanticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${r})`,()=>LK(this.languageService.getEncodedSemanticClassifications(e,yl(t,r))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,()=>{const t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)})}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,()=>{const t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)})}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)})}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,()=>this.languageService.getQuickInfoAtPosition(e,t))}getNameOrDottedNameSpan(e,t,r){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${r})`,()=>this.languageService.getNameOrDottedNameSpan(e,t,r))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,()=>this.languageService.getBreakpointStatementAtPosition(e,t))}getSignatureHelpItems(e,t,r){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,()=>this.languageService.getSignatureHelpItems(e,t,r))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getDefinitionAtPosition(e,t))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,()=>this.languageService.getDefinitionAndBoundSpan(e,t))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getTypeDefinitionAtPosition(e,t))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,()=>this.languageService.getImplementationAtPosition(e,t))}getRenameInfo(e,t,r){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,()=>this.languageService.getRenameInfo(e,t,r))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,()=>this.languageService.getSmartSelectionRange(e,t))}findRenameLocations(e,t,r,i,a){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${r}, ${i})`,()=>this.languageService.findRenameLocations(e,t,r,i,a))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,()=>this.languageService.getBraceMatchingAtPosition(e,t))}isValidBraceCompletionAtPosition(e,t,r){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${r})`,()=>this.languageService.isValidBraceCompletionAtPosition(e,t,r))}getSpanOfEnclosingComment(e,t,r){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,()=>this.languageService.getSpanOfEnclosingComment(e,t,r))}getIndentationAtPosition(e,t,r){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,()=>{const i=JSON.parse(r);return this.languageService.getIndentationAtPosition(e,t,i)})}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,()=>this.languageService.getReferencesAtPosition(e,t))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,()=>this.languageService.findReferences(e,t))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,()=>this.languageService.getFileReferences(e))}getDocumentHighlights(e,t,r){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,()=>{const i=this.languageService.getDocumentHighlights(e,t,JSON.parse(r)),a=Qp(zl(e));return Vr(i,o=>Qp(zl(o.fileName))===a)})}getCompletionsAtPosition(e,t,r,i){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${r}, ${i})`,()=>this.languageService.getCompletionsAtPosition(e,t,r,i))}getCompletionEntryDetails(e,t,r,i,a,o,l){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${r}')`,()=>{const u=i===void 0?void 0:JSON.parse(i);return this.languageService.getCompletionEntryDetails(e,t,r,u,a,o,l)})}getFormattingEditsForRange(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${r})`,()=>{const a=JSON.parse(i);return this.languageService.getFormattingEditsForRange(e,t,r,a)})}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,()=>{const r=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,r)})}getFormattingEditsAfterKeystroke(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${r}')`,()=>{const a=JSON.parse(i);return this.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})}getDocCommentTemplateAtPosition(e,t,r,i){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,()=>this.languageService.getDocCommentTemplateAtPosition(e,t,r,i))}getNavigateToItems(e,t,r){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${r})`,()=>this.languageService.getNavigateToItems(e,t,r))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,()=>this.languageService.getNavigationBarItems(e))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,()=>this.languageService.getNavigationTree(e))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,()=>this.languageService.getOutliningSpans(e))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,()=>this.languageService.getTodoComments(e,JSON.parse(t)))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,()=>this.languageService.prepareCallHierarchy(e,t))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyIncomingCalls(e,t))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t))}provideInlayHints(e,t,r){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(r)})`,()=>this.languageService.provideInlayHints(e,t,r))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,()=>{const{diagnostics:t,...r}=this.languageService.getEmitOutput(e);return{...r,diagnostics:this.realizeDiagnostics(t)}})}getEmitOutputObject(e){return p2e(this.logger,`getEmitOutput('${e}')`,!1,()=>this.languageService.getEmitOutput(e),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleLineComment(e,t))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleMultilineComment(e,t))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.commentSelection(e,t))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.uncommentSelection(e,t))}},g2e=class extends ZR{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=j1e()}getEncodedLexicalClassifications(e,t,r=!1){return OK(this.logger,"getEncodedLexicalClassifications",()=>LK(this.classifier.getEncodedLexicalClassifications(e,t,r)),this.logPerformance)}getClassificationsForLine(e,t,r=!1){const i=this.classifier.getClassificationsForLine(e,t,r);let a="";for(const o of i.entries)a+=o.length+` + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return k}}function mve(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function gve(e,t,r){const i=Ui(e,t),a=In(i,mve);if(!a||Eo(a)&&a.body&&C5(a.body,t))return;const o=r.getTypeChecker(),l=a.symbol;if(!l)return;const u=l.declarations;if(Nn(u)<=1||!Xi(u,x=>Rn(x)===e)||!mve(u[0]))return;const f=u[0].kind;if(!Xi(u,x=>x.kind===f))return;const g=u;if(dt(g,x=>!!x.typeParameters||dt(x.parameters,k=>!!k.modifiers||!we(k.name))))return;const m=Hi(g,x=>o.getSignatureFromDeclaration(x));if(Nn(m)!==Nn(u))return;const y=o.getReturnTypeOfSignature(m[0]);if(!!Xi(m,x=>o.getReturnTypeOfSignature(x)===y))return g}var AR,rK,iK,WMe=Rt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){Wr(),Wd(),AR="Convert overload list to single signature",rK=ss(p.Convert_overload_list_to_single_signature),iK={name:AR,description:rK,kind:"refactor.rewrite.function.overloadList"},Dm(AR,{kinds:[iK.kind],getEditsForAction:UMe,getAvailableActions:VMe})}});function qMe(e){const{file:t,startPosition:r,triggerReason:i}=e,a=hve(t,r,i==="invoked");return a?ug(a)?e.preferences.provideRefactorNotApplicableReason?[{name:NR,description:sK,actions:[{...sN,notApplicableReason:a.error},{...sE,notApplicableReason:a.error}]}]:Ve:[{name:NR,description:sK,actions:[a.addBraces?sN:sE]}]:Ve}function HMe(e,t){const{file:r,startPosition:i}=e,a=hve(r,i);E.assert(a&&!ug(a),"Expected applicable refactor info");const{expression:o,returnStatement:l,func:u}=a;let f;if(t===sN.name){const m=I.createReturnStatement(o);f=I.createBlock([m],!0),A4(o,m,r,3,!0)}else if(t===sE.name&&l){const m=o||I.createVoidZero();f=jM(m)?I.createParenthesizedExpression(m):m,V5(l,f,r,3,!1),A4(l,f,r,3,!1),H8(l,f,r,3,!1)}else E.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:tr.ChangeTracker.with(e,m=>{m.replaceNode(r,u.body,f)})}}function hve(e,t,r=!0,i){const a=Ui(e,t),o=df(a);if(!o)return{error:ss(p.Could_not_find_a_containing_arrow_function)};if(!Po(o))return{error:ss(p.Containing_function_is_not_an_arrow_function)};if(!(!yf(o,a)||yf(o.body,a)&&!r)){if(C1(sN.kind,i)&&nt(o.body))return{func:o,addBraces:!0,expression:o.body};if(C1(sE.kind,i)&&vs(o.body)&&o.body.statements.length===1){const l=wa(o.body.statements);if(id(l))return{func:o,addBraces:!1,expression:l.expression,returnStatement:l}}}}var NR,sK,sN,sE,GMe=Rt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){Wr(),Wd(),NR="Add or remove braces in an arrow function",sK=ss(p.Add_or_remove_braces_in_an_arrow_function),sN={name:"Add braces to arrow function",description:ss(p.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},sE={name:"Remove braces from arrow function",description:ss(p.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},Dm(NR,{kinds:[sE.kind],getEditsForAction:HMe,getAvailableActions:qMe})}}),$Me={},XMe=Rt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){WMe(),GMe()}});function QMe(e){const{file:t,startPosition:r,program:i,kind:a}=e,o=vve(t,r,i);if(!o)return Ve;const{selectedVariableDeclaration:l,func:u}=o,f=[],g=[];if(C1(oE.kind,a)){const m=l||Po(u)&&Ri(u.parent)?void 0:ss(p.Could_not_convert_to_named_function);m?g.push({...oE,notApplicableReason:m}):f.push(oE)}if(C1(aE.kind,a)){const m=!l&&Po(u)?void 0:ss(p.Could_not_convert_to_anonymous_function);m?g.push({...aE,notApplicableReason:m}):f.push(aE)}if(C1(cE.kind,a)){const m=_o(u)?void 0:ss(p.Could_not_convert_to_arrow_function);m?g.push({...cE,notApplicableReason:m}):f.push(cE)}return[{name:aK,description:xve,actions:f.length===0&&e.preferences.provideRefactorNotApplicableReason?g:f}]}function YMe(e,t){const{file:r,startPosition:i,program:a}=e,o=vve(r,i,a);if(!o)return;const{func:l}=o,u=[];switch(t){case aE.name:u.push(...tRe(e,l));break;case oE.name:const f=eRe(l);if(!f)return;u.push(...nRe(e,l,f));break;case cE.name:if(!_o(l))return;u.push(...rRe(e,l));break;default:return E.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function yve(e){let t=!1;return e.forEachChild(function r(i){if(C4(i)){t=!0;return}!ni(i)&&!tl(i)&&!_o(i)&&bs(i,r)}),t}function vve(e,t,r){const i=Ui(e,t),a=r.getTypeChecker(),o=KMe(e,a,i.parent);if(o&&!yve(o.body)&&!a.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const l=df(i);if(l&&(_o(l)||Po(l))&&!yf(l.body,i)&&!yve(l.body)&&!a.containsArgumentsReference(l))return _o(l)&&Tve(e,a,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function ZMe(e){return Ri(e)||ml(e)&&e.declarations.length===1}function KMe(e,t,r){if(!ZMe(r))return;const a=(Ri(r)?r:wa(r.declarations)).initializer;if(a&&(Po(a)||_o(a)&&!Tve(e,t,a)))return a}function bve(e){if(nt(e)){const t=I.createReturnStatement(e),r=e.getSourceFile();return Ke(t,e),Bu(t),V5(e,t,r,void 0,!0),I.createBlock([t],!0)}else return e}function eRe(e){const t=e.parent;if(!Ri(t)||!i3(t))return;const r=t.parent,i=r.parent;if(!(!ml(r)||!ic(i)||!we(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function tRe(e,t){const{file:r}=e,i=bve(t.body),a=I.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return tr.ChangeTracker.with(e,o=>o.replaceNode(r,t,a))}function nRe(e,t,r){const{file:i}=e,a=bve(t.body),{variableDeclaration:o,variableDeclarationList:l,statement:u,name:f}=r;qY(u);const g=Hv(o)&1|I_(t),m=I.createModifiersFromModifierFlags(g),y=I.createFunctionDeclaration(Nn(m)?m:void 0,t.asteriskToken,f,t.typeParameters,t.parameters,t.type,a);return l.declarations.length===1?tr.ChangeTracker.with(e,x=>x.replaceNode(i,u,y)):tr.ChangeTracker.with(e,x=>{x.delete(i,o),x.insertNodeAfter(i,u,y)})}function rRe(e,t){const{file:r}=e,a=t.body.statements[0];let o;iRe(t.body,a)?(o=a.expression,Bu(o),kT(a,o)):o=t.body;const l=I.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,I.createToken(39),o);return tr.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function iRe(e,t){return e.statements.length===1&&id(t)&&!!t.expression}function Tve(e,t,r){return!!r.name&&Oo.Core.isSymbolReferencedInFile(r.name,t,e)}var aK,xve,aE,oE,cE,sRe=Rt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){Wr(),Wd(),aK="Convert arrow function or function expression",xve=ss(p.Convert_arrow_function_or_function_expression),aE={name:"Convert to anonymous function",description:ss(p.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},oE={name:"Convert to named function",description:ss(p.Convert_to_named_function),kind:"refactor.rewrite.function.named"},cE={name:"Convert to arrow function",description:ss(p.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Dm(aK,{kinds:[aE.kind,oE.kind,cE.kind],getEditsForAction:YMe,getAvailableActions:QMe})}}),aRe={},oRe=Rt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){sRe()}});function cRe(e){const{file:t,startPosition:r}=e;return P_(t)||!Cve(t,r,e.program.getTypeChecker())?Ve:[{name:oN,description:_K,actions:[uK]}]}function lRe(e,t){E.assert(t===oN,"Unexpected action name");const{file:r,startPosition:i,program:a,cancellationToken:o,host:l}=e,u=Cve(r,i,a.getTypeChecker());if(!u||!o)return;const f=uRe(u,a,o);return f.valid?{renameFilename:void 0,renameLocation:void 0,edits:tr.ChangeTracker.with(e,m=>_Re(r,a,l,m,u,f))}:{edits:[]}}function _Re(e,t,r,i,a,o){const l=o.signature,u=an(Ave(a,t,r),m=>Io(m));if(l){const m=an(Ave(l,t,r),y=>Io(y));g(l,m)}g(a,u);const f=M7(o.functionCalls,(m,y)=>Co(m.pos,y.pos));for(const m of f)if(m.arguments&&m.arguments.length){const y=Io(TRe(a,m.arguments),!0);i.replaceNodeRange(Rn(m),wa(m.arguments),ka(m.arguments),y,{leadingTriviaOption:tr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:tr.TrailingTriviaOption.Include})}function g(m,y){i.replaceNodeRangeWithNodes(e,wa(m.parameters),ka(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:tr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:tr.TrailingTriviaOption.Include})}}function uRe(e,t,r){const i=SRe(e),a=Cc(e)?xRe(e):[],o=Uk([...i,...a],ly),l=t.getTypeChecker(),u=Na(o,y=>Oo.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),f=g(u);return Xi(f.declarations,y=>ys(o,y))||(f.valid=!1),f;function g(y){const x={accessExpressions:[],typeUsages:[]},k={functionCalls:[],declarations:[],classReferences:x,valid:!0},C=an(i,m),N=an(a,m),D=Cc(e),M=an(i,V=>oK(V,l));for(const V of y){if(V.kind===Oo.EntryKind.Span){k.valid=!1;continue}if(ys(M,m(V.node))){if(mRe(V.node.parent)){k.signature=V.node.parent;continue}const Y=kve(V);if(Y){k.functionCalls.push(Y);continue}}const U=oK(V.node,l);if(U&&ys(M,U)){const Y=cK(V);if(Y){k.declarations.push(Y);continue}}if(ys(C,m(V.node))||R8(V.node)){if(Sve(V))continue;const j=cK(V);if(j){k.declarations.push(j);continue}const ee=kve(V);if(ee){k.functionCalls.push(ee);continue}}if(D&&ys(N,m(V.node))){if(Sve(V))continue;const j=cK(V);if(j){k.declarations.push(j);continue}const ee=fRe(V);if(ee){x.accessExpressions.push(ee);continue}if(Qc(e.parent)){const R=pRe(V);if(R){x.typeUsages.push(R);continue}}}k.valid=!1}return k}function m(y){const x=l.getSymbolAtLocation(y);return x&&d1e(x,l)}}function oK(e,t){const r=mN(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),a=i==null?void 0:i.getSymbol();if(a&&!(rc(a)&6))return a}}function Sve(e){const t=e.node;if(vu(t.parent)||Sm(t.parent)||Hl(t.parent)||d1(t.parent)||p_(t.parent)||fc(t.parent))return t}function cK(e){if(l_(e.node.parent))return e.node}function kve(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 213:case 214:const i=Hr(r,Ym);if(i&&i.expression===t)return i;break;case 211:const a=Hr(r,kr);if(a&&a.parent&&a.name===t){const l=Hr(a.parent,Ym);if(l&&l.expression===a)return l}break;case 212:const o=Hr(r,No);if(o&&o.parent&&o.argumentExpression===t){const l=Hr(o.parent,Ym);if(l&&l.expression===o)return l}break}}}function fRe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 211:const i=Hr(r,kr);if(i&&i.expression===t)return i;break;case 212:const a=Hr(r,No);if(a&&a.expression===t)return a;break}}}function pRe(e){const t=e.node;if(vT(t)===2||xD(t.parent))return t}function Cve(e,t,r){const i=J8(e,t),a=Gle(i);if(!dRe(i)&&a&&gRe(a,r)&&yf(a,i)&&!(a.body&&yf(a.body,i)))return a}function dRe(e){const t=In(e,o6);if(t){const r=In(t,i=>!o6(i));return!!r&&Eo(r)}return!1}function mRe(e){return ag(e)&&(f_(e.parent)||ef(e.parent))}function gRe(e,t){var r;if(!hRe(e.parameters,t))return!1;switch(e.kind){case 262:return Eve(e)&&aN(e,t);case 174:if(ha(e.parent)){const i=oK(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&aN(e,t)}return aN(e,t);case 176:return Qc(e.parent)?Eve(e.parent)&&aN(e,t):wve(e.parent.parent)&&aN(e,t);case 218:case 219:return wve(e.parent)}return!1}function aN(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function Eve(e){return e.name?!0:!!E4(e,90)}function hRe(e,t){return vRe(e)>=Nve&&Xi(e,r=>yRe(r,t))}function yRe(e,t){if(Zm(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&we(e.name)}function wve(e){return Ri(e)&&d6(e)&&we(e.name)&&!e.type}function lK(e){return e.length>0&&C4(e[0].name)}function vRe(e){return lK(e)?e.length-1:e.length}function Dve(e){return lK(e)&&(e=I.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function bRe(e,t){return we(t)&&Cp(t)===e?I.createShorthandPropertyAssignment(e):I.createPropertyAssignment(e,t)}function TRe(e,t){const r=Dve(e.parameters),i=Zm(ka(r)),a=i?t.slice(0,r.length-1):t,o=an(a,(u,f)=>{const g=PR(r[f]),m=bRe(g,u);return Bu(m.name),Ec(m)&&Bu(m.initializer),kT(u,m),m});if(i&&t.length>=r.length){const u=t.slice(r.length-1),f=I.createPropertyAssignment(PR(ka(r)),I.createArrayLiteralExpression(u));o.push(f)}return I.createObjectLiteralExpression(o,!1)}function Ave(e,t,r){const i=t.getTypeChecker(),a=Dve(e.parameters),o=an(a,m),l=I.createObjectBindingPattern(o),u=y(a);let f;Xi(a,C)&&(f=I.createObjectLiteralExpression());const g=I.createParameterDeclaration(void 0,void 0,l,void 0,u,f);if(lK(e.parameters)){const N=e.parameters[0],D=I.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return Bu(D.name),kT(N.name,D.name),N.type&&(Bu(D.type),kT(N.type,D.type)),I.createNodeArray([D,g])}return I.createNodeArray([g]);function m(N){const D=I.createBindingElement(void 0,void 0,PR(N),Zm(N)&&C(N)?I.createArrayLiteralExpression():N.initializer);return Bu(D),N.initializer&&D.initializer&&kT(N.initializer,D.initializer),D}function y(N){const D=an(N,x);return xm(I.createTypeLiteralNode(D),1)}function x(N){let D=N.type;!D&&(N.initializer||Zm(N))&&(D=k(N));const M=I.createPropertySignature(void 0,PR(N),C(N)?I.createToken(58):N.questionToken,D);return Bu(M),kT(N.name,M.name),N.type&&M.type&&kT(N.type,M.type),M}function k(N){const D=i.getTypeAtLocation(N);return $8(D,N,t,r)}function C(N){if(Zm(N)){const D=i.getTypeAtLocation(N);return!i.isTupleType(D)}return i.isOptionalParameter(N)}}function PR(e){return Cp(e.name)}function xRe(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[E.checkDefined(E4(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,a=e.parent.parent,o=i.name;return o?[o,a.name]:[a.name]}}function SRe(e){switch(e.kind){case 262:return e.name?[e.name]:[E.checkDefined(E4(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const r=E.checkDefined($a(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return E.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var oN,Nve,_K,uK,kRe=Rt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){Wr(),Wd(),oN="Convert parameters to destructured object",Nve=1,_K=ss(p.Convert_parameters_to_destructured_object),uK={name:oN,description:_K,kind:"refactor.rewrite.parameters.toDestructured"},Dm(oN,{kinds:[uK.kind],getEditsForAction:lRe,getAvailableActions:cRe})}}),CRe={},ERe=Rt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){kRe()}});function wRe(e){const{file:t,startPosition:r}=e,i=Pve(t,r),a=fK(i),o={name:IR,description:OR,actions:[]};return rr(a)&&pK(a).isValidConcatenation?(o.actions.push(FR),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push({...FR,notApplicableReason:ss(p.Can_only_convert_string_concatenation)}),[o]):Ve}function Pve(e,t){const r=Ui(e,t),i=fK(r);return!pK(i).isValidConcatenation&&yu(i.parent)&&rr(i.parent.parent)?i.parent.parent:r}function DRe(e,t){const{file:r,startPosition:i}=e,a=Pve(r,i);switch(t){case OR:return{edits:ARe(e,a)};default:return E.fail("invalid action")}}function ARe(e,t){const r=fK(t),i=e.file,a=IRe(pK(r),i),o=uy(i.text,r.end);if(o){const l=o[o.length-1],u={pos:o[0].pos,end:l.end};return tr.ChangeTracker.with(e,f=>{f.deleteRange(i,u),f.replaceNode(i,r,a)})}else return tr.ChangeTracker.with(e,l=>l.replaceNode(i,r,a))}function NRe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function fK(e){return In(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(rr(r.parent)&&NRe(r.parent));default:return"quit"}})||e}function pK(e){const t=l=>{if(!rr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:fa(l)||sS(l)};const{nodes:u,operators:f,hasString:g,validOperators:m}=t(l.left);if(!(g||fa(l.right)||hF(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const y=l.operatorToken.kind===40,x=m&&y;return u.push(l.right),f.push(l.operatorToken),{nodes:u,operators:f,hasString:!0,validOperators:x}},{nodes:r,operators:i,validOperators:a,hasString:o}=t(e);return{nodes:r,operators:i,isValidConcatenation:a&&o}}function PRe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function Ive(e){const t=$6(e)||yfe(e)?-2:-1;return el(e).slice(1,t)}function Ove(e,t){const r=[];let i="",a="";for(;e{Fve(U);const j=Y===x.templateSpans.length-1,ee=U.literal.text+(j?C:""),R=Ive(U.literal)+(j?N:"");return I.createTemplateSpan(U.expression,M&&j?I.createTemplateTail(ee,R):I.createTemplateMiddle(ee,R))});g.push(...V)}else{const V=M?I.createTemplateTail(C,N):I.createTemplateMiddle(C,N);a(D,V),g.push(I.createTemplateSpan(x,V))}}return I.createTemplateExpression(m,g)}function Fve(e){const t=e.getSourceFile();H8(e,e.expression,t,3,!1),V5(e.expression,e.expression,t,3,!1)}function ORe(e){return yu(e)&&(Fve(e),e=e.expression),e}var IR,OR,FR,Lve,Mve,FRe=Rt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){Wr(),Wd(),IR="Convert to template string",OR=ss(p.Convert_to_template_string),FR={name:IR,description:OR,kind:"refactor.rewrite.string"},Dm(IR,{kinds:[FR.kind],getEditsForAction:DRe,getAvailableActions:wRe}),Lve=(e,t)=>(r,i)=>{r(i,a)=>{for(;i.length>0;){const o=i.shift();H8(e[o],a,t,3,!1),r(o,a)}}}}),LRe={},MRe=Rt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){FRe()}});function RRe(e){const t=Rve(e,e.triggerReason==="invoked");return t?ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:cN,description:RR,actions:[{...BR,notApplicableReason:t.error}]}]:Ve:[{name:cN,description:RR,actions:[BR]}]:Ve}function BRe(e,t){const r=Rve(e);return E.assert(r&&!ug(r),"Expected applicable refactor info"),{edits:tr.ChangeTracker.with(e,a=>HRe(e.file,e.program.getTypeChecker(),a,r)),renameFilename:void 0,renameLocation:void 0}}function LR(e){return rr(e)||e4(e)}function jRe(e){return ql(e)||id(e)||ic(e)}function MR(e){return LR(e)||jRe(e)}function Rve(e,t=!0){const{file:r,program:i}=e,a=FS(e),o=a.length===0;if(o&&!t)return;const l=Ui(r,a.start),u=kM(r,a.start+a.length),f=ll(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),g=o?WRe(l):URe(l,f),m=g&&MR(g)?qRe(g):void 0;if(!m)return{error:ss(p.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return e4(m)?JRe(m,y):zRe(m)}function JRe(e,t){const r=e.condition,i=mK(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:ss(p.Could_not_find_convertible_access_expression)};if((kr(r)||we(r))&&dK(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(rr(r)){const a=Bve(i.expression,r);return a?{finalExpression:i,occurrences:a,expression:e}:{error:ss(p.Could_not_find_matching_access_expressions)}}}function zRe(e){if(e.operatorToken.kind!==56)return{error:ss(p.Can_only_convert_logical_AND_access_chains)};const t=mK(e.right);if(!t)return{error:ss(p.Could_not_find_convertible_access_expression)};const r=Bve(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:ss(p.Could_not_find_matching_access_expressions)}}function Bve(e,t){const r=[];for(;rr(t)&&t.operatorToken.kind===56;){const a=dK(lo(e),lo(t.right));if(!a)break;r.push(a),e=a,t=t.left}const i=dK(e,t);return i&&r.push(i),r.length>0?r:void 0}function dK(e,t){if(!(!we(t)&&!kr(t)&&!No(t)))return VRe(e,t)?t:void 0}function VRe(e,t){for(;(Js(e)||kr(e)||No(e))&&lE(e)!==lE(t);)e=e.expression;for(;kr(e)&&kr(t)||No(e)&&No(t);){if(lE(e)!==lE(t))return!1;e=e.expression,t=t.expression}return we(e)&&we(t)&&e.getText()===t.getText()}function lE(e){if(we(e)||Of(e))return e.getText();if(kr(e))return lE(e.name);if(No(e))return lE(e.argumentExpression)}function URe(e,t){for(;e.parent;){if(MR(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function WRe(e){for(;e.parent;){if(MR(e)&&!MR(e.parent))return e;e=e.parent}}function qRe(e){if(LR(e))return e;if(ic(e)){const t=C6(e),r=t==null?void 0:t.initializer;return r&&LR(r)?r:void 0}return e.expression&&LR(e.expression)?e.expression:void 0}function mK(e){if(e=lo(e),rr(e))return mK(e.left);if((kr(e)||No(e)||Js(e))&&!c_(e))return e}function jve(e,t,r){if(kr(t)||No(t)||Js(t)){const i=jve(e,t.expression,r),a=r.length>0?r[r.length-1]:void 0,o=(a==null?void 0:a.getText())===t.expression.getText();if(o&&r.pop(),Js(t))return o?I.createCallChain(i,I.createToken(29),t.typeArguments,t.arguments):I.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(kr(t))return o?I.createPropertyAccessChain(i,I.createToken(29),t.name):I.createPropertyAccessChain(i,t.questionDotToken,t.name);if(No(t))return o?I.createElementAccessChain(i,I.createToken(29),t.argumentExpression):I.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function HRe(e,t,r,i,a){const{finalExpression:o,occurrences:l,expression:u}=i,f=l[l.length-1],g=jve(t,o,l);g&&(kr(g)||No(g)||Js(g))&&(rr(u)?r.replaceNodeRange(e,f,o,g):e4(u)&&r.replaceNode(e,u,I.createBinaryExpression(g,I.createToken(61),u.whenFalse)))}var cN,RR,BR,GRe=Rt({"src/services/refactors/convertToOptionalChainExpression.ts"(){Wr(),Wd(),cN="Convert to optional chain expression",RR=ss(p.Convert_to_optional_chain_expression),BR={name:cN,description:RR,kind:"refactor.rewrite.expression.optionalChain"},Dm(cN,{kinds:[BR.kind],getEditsForAction:BRe,getAvailableActions:RRe})}}),$Re={},XRe=Rt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){GRe()}});function Jve(e){const t=e.kind,r=gK(e.file,FS(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Ve;const C=[];return C1(jS.kind,t)&&C.push({name:RS,description:jS.description,actions:[{...jS,notApplicableReason:k(r.errors)}]}),C1(BS.kind,t)&&C.push({name:RS,description:BS.description,actions:[{...BS,notApplicableReason:k(r.errors)}]}),C}const a=tBe(i,e);if(a===void 0)return Ve;const o=[],l=new Map;let u;const f=[],g=new Map;let m,y=0;for(const{functionExtraction:C,constantExtraction:N}of a){if(C1(jS.kind,t)){const D=C.description;C.errors.length===0?l.has(D)||(l.set(D,!0),o.push({description:D,name:`function_scope_${y}`,kind:jS.kind})):u||(u={description:D,name:`function_scope_${y}`,notApplicableReason:k(C.errors),kind:jS.kind})}if(C1(BS.kind,t)){const D=N.description;N.errors.length===0?g.has(D)||(g.set(D,!0),f.push({description:D,name:`constant_scope_${y}`,kind:BS.kind})):m||(m={description:D,name:`constant_scope_${y}`,notApplicableReason:k(N.errors),kind:BS.kind})}y++}const x=[];return o.length?x.push({name:RS,description:ss(p.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&u&&x.push({name:RS,description:ss(p.Extract_function),actions:[u]}),f.length?x.push({name:RS,description:ss(p.Extract_constant),actions:f}):e.preferences.provideRefactorNotApplicableReason&&m&&x.push({name:RS,description:ss(p.Extract_constant),actions:[m]}),x.length?x:Ve;function k(C){let N=C[0].messageText;return typeof N!="string"&&(N=N.messageText),N}}function zve(e,t){const i=gK(e.file,FS(e)).targetRange,a=/^function_scope_(\d+)$/.exec(t);if(a){const l=+a[1];return E.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),KRe(i,e,l)}const o=/^constant_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return E.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),eBe(i,e,l)}E.fail("Unrecognized action name")}function gK(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[vl(e,t.start,i,Ll.cannotExtractEmpty)]};const a=i===0&&r,o=Vhe(e,t.start),l=kM(e,Zl(t)),u=o&&l&&r?QRe(o,l,e):t,f=a?TBe(o):R5(o,e,u),g=a?f:R5(l,e,u);let m=0,y;if(!f||!g)return{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]};if(f.flags&16777216)return{errors:[vl(e,t.start,i,Ll.cannotExtractJSDoc)]};if(f.parent!==g.parent)return{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]};if(f!==g){if(!Uve(f.parent))return{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]};const V=[];for(const U of f.parent.statements){if(U===f||V.length){const Y=M(U);if(Y)return{errors:Y};V.push(U)}if(U===g)break}return V.length?{targetRange:{range:V,facts:m,thisNode:y}}:{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]}}if(id(f)&&!f.expression)return{errors:[vl(e,t.start,i,Ll.cannotExtractRange)]};const x=C(f),k=N(x)||M(x);if(k)return{errors:k};return{targetRange:{range:YRe(x),facts:m,thisNode:y}};function C(V){if(id(V)){if(V.expression)return V.expression}else if(ic(V)||ml(V)){const U=ic(V)?V.declarationList.declarations:V.declarations;let Y=0,j;for(const ee of U)ee.initializer&&(Y++,j=ee.initializer);if(Y===1)return j}else if(Ri(V)&&V.initializer)return V.initializer;return V}function N(V){if(we(ql(V)?V.expression:V))return[br(V,Ll.cannotExtractIdentifier)]}function D(V,U){let Y=V;for(;Y!==U;){if(Y.kind===172){Os(Y)&&(m|=32);break}else if(Y.kind===169){df(Y).kind===176&&(m|=32);break}else Y.kind===174&&Os(Y)&&(m|=32);Y=Y.parent}}function M(V){let U;if((oe=>{oe[oe.None=0]="None",oe[oe.Break=1]="Break",oe[oe.Continue=2]="Continue",oe[oe.Return=4]="Return"})(U||(U={})),E.assert(V.pos<=V.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),E.assert(!Rd(V.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Fi(V)&&!(Gg(V)&&Vve(V))&&!TK(V))return[br(V,Ll.statementOrExpressionExpected)];if(V.flags&33554432)return[br(V,Ll.cannotExtractAmbientBlock)];const Y=Pl(V);Y&&D(V,Y);let j,ee=4,R;if(Z(V),m&8){const oe=ru(V,!1,!1);(oe.kind===262||oe.kind===174&&oe.parent.kind===210||oe.kind===218)&&(m|=16)}return j;function Z(oe){if(j)return!0;if(l_(oe)){const X=oe.kind===260?oe.parent.parent:oe;if(Lr(X,1))return(j||(j=[])).push(br(oe,Ll.cannotExtractExportedEntity)),!0}switch(oe.kind){case 272:return(j||(j=[])).push(br(oe,Ll.cannotExtractImport)),!0;case 277:return(j||(j=[])).push(br(oe,Ll.cannotExtractExportedEntity)),!0;case 108:if(oe.parent.kind===213){const X=Pl(oe);if(X===void 0||X.pos=t.start+t.length)return(j||(j=[])).push(br(oe,Ll.cannotExtractSuper)),!0}else m|=8,y=oe;break;case 219:bs(oe,function X(H){if(C4(H))m|=8,y=oe;else{if(ni(H)||Cs(H)&&!Po(H))return!1;bs(H,X)}});case 263:case 262:Bi(oe.parent)&&oe.parent.externalModuleIndicator===void 0&&(j||(j=[])).push(br(oe,Ll.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const _e=ee;switch(oe.kind){case 245:ee&=-5;break;case 258:ee=0;break;case 241:oe.parent&&oe.parent.kind===258&&oe.parent.finallyBlock===oe&&(ee=4);break;case 297:case 296:ee|=1;break;default:n1(oe,!1)&&(ee|=3);break}switch(oe.kind){case 197:case 110:m|=8,y=oe;break;case 256:{const X=oe.label;(R||(R=[])).push(X.escapedText),bs(oe,Z),R.pop();break}case 252:case 251:{const X=oe.label;X?ys(R,X.escapedText)||(j||(j=[])).push(br(oe,Ll.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ee&(oe.kind===252?1:2)||(j||(j=[])).push(br(oe,Ll.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:ee&4?m|=1:(j||(j=[])).push(br(oe,Ll.cannotExtractRangeContainingConditionalReturnStatement));break;default:bs(oe,Z);break}ee=_e}}}function QRe(e,t,r){const i=e.getStart(r);let a=t.getEnd();return r.text.charCodeAt(a)===59&&a++,{start:i,length:a-i}}function YRe(e){if(Fi(e))return[e];if(Gg(e))return ql(e.parent)?[e.parent]:e;if(TK(e))return e}function hK(e){return Po(e)?fW(e.body):Eo(e)||Bi(e)||Jd(e)||ni(e)}function ZRe(e){let t=o0(e.range)?wa(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=Pl(t);if(i){const a=In(t,Eo);return a?[a,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===169&&(t=In(t,i=>Eo(i)).parent),hK(t)&&(r.push(t),t.kind===312))return r}function KRe(e,t,r){const{scopes:i,readsAndWrites:{target:a,usagesPerScope:o,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=yK(e,t);return E.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),oBe(a,i[r],o[r],u,e,t)}function eBe(e,t,r){const{scopes:i,readsAndWrites:{target:a,usagesPerScope:o,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=yK(e,t);E.assert(!l[r].length,"The extraction went missing? How?"),E.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const f=nt(a)?a:a.statements[0].expression;return cBe(f,i[r],o[r],e.facts,t)}function tBe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:a}}=yK(e,t);return r.map((l,u)=>{const f=nBe(l),g=rBe(l),m=Eo(l)?iBe(l):ni(l)?sBe(l):aBe(l);let y,x;return m===1?(y=rg(ss(p.Extract_to_0_in_1_scope),[f,"global"]),x=rg(ss(p.Extract_to_0_in_1_scope),[g,"global"])):m===0?(y=rg(ss(p.Extract_to_0_in_1_scope),[f,"module"]),x=rg(ss(p.Extract_to_0_in_1_scope),[g,"module"])):(y=rg(ss(p.Extract_to_0_in_1),[f,m]),x=rg(ss(p.Extract_to_0_in_1),[g,m])),u===0&&!ni(l)&&(x=rg(ss(p.Extract_to_0_in_enclosing_scope),[g])),{functionExtraction:{description:y,errors:i[u]},constantExtraction:{description:x,errors:a[u]}}})}function yK(e,t){const{file:r}=t,i=ZRe(e),a=vBe(e,r),o=bBe(e,i,a,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:o}}function nBe(e){return Eo(e)?"inner function":ni(e)?"method":"function"}function rBe(e){return ni(e)?"readonly field":"constant"}function iBe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:rR;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:E.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function sBe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function aBe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function oBe(e,t,{usages:r,typeParameterUsages:i,substitutions:a},o,l,u){const f=u.program.getTypeChecker(),g=Ia(u.program.getCompilerOptions()),m=n_.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),x=CT(ni(t)?"newMethod":"newFunction",y),k=Kn(t),C=I.createIdentifier(x);let N;const D=[],M=[];let V;r.forEach((be,xe)=>{let rt;if(!k){let pe=f.getTypeOfSymbolAtLocation(be.symbol,be.node);pe=f.getBaseTypeOfLiteralType(pe),rt=n_.typeToAutoImportableTypeNode(f,m,pe,t,g,1)}const ct=I.createParameterDeclaration(void 0,void 0,xe,void 0,rt);D.push(ct),be.usage===2&&(V||(V=[])).push(be),M.push(I.createIdentifier(xe))});const Y=ra(i.values(),be=>({type:be,declaration:_Be(be,u.startPosition)})).sort(uBe),j=Y.length===0?void 0:Hi(Y,({declaration:be})=>be),ee=j!==void 0?j.map(be=>I.createTypeReferenceNode(be.name,void 0)):void 0;if(nt(e)&&!k){const be=f.getContextualType(e);N=f.typeToTypeNode(be,t,1)}const{body:R,returnValueProperty:Z}=pBe(e,o,V,a,!!(l.facts&1));Bu(R);let oe;const _e=!!(l.facts&16);if(ni(t)){const be=k?[]:[I.createModifier(123)];l.facts&32&&be.push(I.createModifier(126)),l.facts&4&&be.push(I.createModifier(134)),oe=I.createMethodDeclaration(be.length?be:void 0,l.facts&2?I.createToken(42):void 0,C,void 0,j,D,N,R)}else _e&&D.unshift(I.createParameterDeclaration(void 0,void 0,"this",void 0,f.typeToTypeNode(f.getTypeAtLocation(l.thisNode),t,1),void 0)),oe=I.createFunctionDeclaration(l.facts&4?[I.createToken(134)]:void 0,l.facts&2?I.createToken(42):void 0,C,j,D,N,R);const X=tr.ChangeTracker.fromContext(u),H=(o0(l.range)?ka(l.range):l.range).end,Q=gBe(H,t);Q?X.insertNodeBefore(u.file,Q,oe,!0):X.insertNodeAtEndOfScope(u.file,t,oe),m.writeFixes(X);const ne=[],ue=fBe(t,l,x);_e&&M.unshift(I.createIdentifier("this"));let fe=I.createCallExpression(_e?I.createPropertyAccessExpression(ue,"call"):ue,ee,M);if(l.facts&2&&(fe=I.createYieldExpression(I.createToken(42),fe)),l.facts&4&&(fe=I.createAwaitExpression(fe)),bK(e)&&(fe=I.createJsxExpression(void 0,fe)),o.length&&!V)if(E.assert(!Z,"Expected no returnValueProperty"),E.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){const be=o[0];ne.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Io(be.name),void 0,Io(be.type),fe)],be.parent.flags)))}else{const be=[],xe=[];let rt=o[0].parent.flags,ct=!1;for(const Pe of o){be.push(I.createBindingElement(void 0,void 0,Io(Pe.name)));const Ge=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(Pe)),t,1);xe.push(I.createPropertySignature(void 0,Pe.symbol.name,void 0,Ge)),ct=ct||Pe.type!==void 0,rt=rt&Pe.parent.flags}const pe=ct?I.createTypeLiteralNode(xe):void 0;pe&&Xn(pe,1),ne.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(I.createObjectBindingPattern(be),void 0,pe,fe)],rt)))}else if(o.length||V){if(o.length)for(const xe of o){let rt=xe.parent.flags;rt&2&&(rt=rt&-3|1),ne.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(xe.symbol.name,void 0,ve(xe.type))],rt)))}Z&&ne.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Z,void 0,ve(N))],1)));const be=vK(o,V);Z&&be.unshift(I.createShorthandPropertyAssignment(Z)),be.length===1?(E.assert(!Z,"Shouldn't have returnValueProperty here"),ne.push(I.createExpressionStatement(I.createAssignment(be[0].name,fe))),l.facts&1&&ne.push(I.createReturnStatement())):(ne.push(I.createExpressionStatement(I.createAssignment(I.createObjectLiteralExpression(be),fe))),Z&&ne.push(I.createReturnStatement(I.createIdentifier(Z))))}else l.facts&1?ne.push(I.createReturnStatement(fe)):o0(l.range)?ne.push(I.createExpressionStatement(fe)):ne.push(fe);o0(l.range)?X.replaceNodeRangeWithNodes(u.file,wa(l.range),ka(l.range),ne):X.replaceNodeWithNodes(u.file,l.range,ne);const G=X.getChanges(),De=(o0(l.range)?wa(l.range):l.range).getSourceFile().fileName,Xe=z5(G,De,x,!1);return{renameFilename:De,renameLocation:Xe,edits:G};function ve(be){if(be===void 0)return;const xe=Io(be);let rt=xe;for(;_S(rt);)rt=rt.type;return cS(rt)&&Or(rt.types,ct=>ct.kind===157)?xe:I.createUnionTypeNode([xe,I.createKeywordTypeNode(157)])}}function cBe(e,t,{substitutions:r},i,a){const o=a.program.getTypeChecker(),l=t.getSourceFile(),u=kr(e)&&!ni(t)&&!o.resolveName(e.name.text,e,111551,!1)&&!Ei(e.name)&&!py(e.name)?e.name.text:CT(ni(t)?"newProperty":"newLocal",l),f=Kn(t);let g=f||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),m=dBe(lo(e),r);({variableType:g,initializer:m}=N(g,m)),Bu(m);const y=tr.ChangeTracker.fromContext(a);if(ni(t)){E.assert(!f,"Cannot extract to a JS class");const D=[];D.push(I.createModifier(123)),i&32&&D.push(I.createModifier(126)),D.push(I.createModifier(148));const M=I.createPropertyDeclaration(D,u,void 0,g,m);let V=I.createPropertyAccessExpression(i&32?I.createIdentifier(t.name.getText()):I.createThis(),I.createIdentifier(u));bK(e)&&(V=I.createJsxExpression(void 0,V));const U=e.pos,Y=hBe(U,t);y.insertNodeBefore(a.file,Y,M,!0),y.replaceNode(a.file,e,V)}else{const D=I.createVariableDeclaration(u,void 0,g,m),M=lBe(e,t);if(M){y.insertNodeBefore(a.file,M,D);const V=I.createIdentifier(u);y.replaceNode(a.file,e,V)}else if(e.parent.kind===244&&t===In(e,hK)){const V=I.createVariableStatement(void 0,I.createVariableDeclarationList([D],2));y.replaceNode(a.file,e.parent,V)}else{const V=I.createVariableStatement(void 0,I.createVariableDeclarationList([D],2)),U=yBe(e,t);if(U.pos===0?y.insertNodeAtTopOfFile(a.file,V,!1):y.insertNodeBefore(a.file,U,V,!1),e.parent.kind===244)y.delete(a.file,e.parent);else{let Y=I.createIdentifier(u);bK(e)&&(Y=I.createJsxExpression(void 0,Y)),y.replaceNode(a.file,e,Y)}}}const x=y.getChanges(),k=e.getSourceFile().fileName,C=z5(x,k,u,!0);return{renameFilename:k,renameLocation:C,edits:x};function N(D,M){if(D===void 0)return{variableType:D,initializer:M};if(!_o(M)&&!Po(M)||!!M.typeParameters)return{variableType:D,initializer:M};const V=o.getTypeAtLocation(e),U=om(o.getSignaturesOfType(V,0));if(!U)return{variableType:D,initializer:M};if(U.getTypeParameters())return{variableType:D,initializer:M};const Y=[];let j=!1;for(const ee of M.parameters)if(ee.type)Y.push(ee);else{const R=o.getTypeAtLocation(ee);R===o.getAnyType()&&(j=!0),Y.push(I.updateParameterDeclaration(ee,ee.modifiers,ee.dotDotDotToken,ee.name,ee.questionToken,ee.type||o.typeToTypeNode(R,t,1),ee.initializer))}if(j)return{variableType:D,initializer:M};if(D=void 0,Po(M))M=I.updateArrowFunction(M,Np(e)?Gv(e):void 0,M.typeParameters,Y,M.type||o.typeToTypeNode(U.getReturnType(),t,1),M.equalsGreaterThanToken,M.body);else{if(U&&!!U.thisParameter){const ee=wl(Y);if(!ee||we(ee.name)&&ee.name.escapedText!=="this"){const R=o.getTypeOfSymbolAtLocation(U.thisParameter,e);Y.splice(0,0,I.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(R,t,1)))}}M=I.updateFunctionExpression(M,Np(e)?Gv(e):void 0,M.asteriskToken,M.name,M.typeParameters,Y,M.type||o.typeToTypeNode(U.getReturnType(),t,1),M.body)}return{variableType:D,initializer:M}}}function lBe(e,t){let r;for(;e!==void 0&&e!==t;){if(Ri(e)&&e.initializer===r&&ml(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function _Be(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const a of i.declarations)(r===void 0||a.pos0;if(vs(e)&&!o&&i.size===0)return{body:I.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const f=I.createNodeArray(vs(e)?e.statements.slice(0):[Fi(e)?e:I.createReturnStatement(lo(e))]);if(o||i.size){const m=Dn(f,g,Fi).slice();if(o&&!a&&Fi(e)){const y=vK(t,r);y.length===1?m.push(I.createReturnStatement(y[0].name)):m.push(I.createReturnStatement(I.createObjectLiteralExpression(y)))}return{body:I.createBlock(m,!0),returnValueProperty:l}}else return{body:I.createBlock(f,!0),returnValueProperty:void 0};function g(m){if(!u&&id(m)&&o){const y=vK(t,r);return m.expression&&(l||(l="__return"),y.unshift(I.createPropertyAssignment(l,Ue(m.expression,g,nt)))),y.length===1?I.createReturnStatement(y[0].name):I.createReturnStatement(I.createObjectLiteralExpression(y))}else{const y=u;u=u||Eo(m)||ni(m);const x=i.get(Ra(m).toString()),k=x?Io(x):fn(m,g,i0);return u=y,k}}}function dBe(e,t){return t.size?r(e):e;function r(i){const a=t.get(Ra(i).toString());return a?Io(a):fn(i,r,i0)}}function mBe(e){if(Eo(e)){const t=e.body;if(vs(t))return t.statements}else{if(Jd(e)||Bi(e))return e.statements;if(ni(e))return e.members}return Ve}function gBe(e,t){return Or(mBe(t),r=>r.pos>=e&&Eo(r)&&!Cc(r))}function hBe(e,t){const r=t.members;E.assert(r.length>0,"Found no members");let i,a=!0;for(const o of r){if(o.pos>e)return i||r[0];if(a&&!Fs(o)){if(i!==void 0)return o;a=!1}i=o}return i===void 0?E.fail():i}function yBe(e,t){E.assert(!ni(t));let r;for(let i=e;i!==t;i=i.parent)hK(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(Uve(i)){let a;for(const o of i.statements){if(o.pos>e.pos)break;a=o}return!a&&t4(i)?(E.assert(cA(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):E.checkDefined(a,"prevStatement failed to get set")}E.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function vK(e,t){const r=an(e,a=>I.createShorthandPropertyAssignment(a.symbol.name)),i=an(t,a=>I.createShorthandPropertyAssignment(a.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function o0(e){return Ds(e)}function vBe(e,t){return o0(e.range)?{pos:wa(e.range).getStart(t),end:ka(e.range).getEnd()}:e.range}function bBe(e,t,r,i,a,o){const l=new Map,u=[],f=[],g=[],m=[],y=[],x=new Map,k=[];let C;const N=o0(e.range)?e.range.length===1&&ql(e.range[0])?e.range[0].expression:void 0:e.range;let D;if(N===void 0){const Q=e.range,ne=wa(Q).getStart(),ue=ka(Q).end;D=vl(i,ne,ue-ne,Ll.expressionExpected)}else a.getTypeAtLocation(N).flags&147456&&(D=br(N,Ll.uselessConstantType));for(const Q of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),f.push(new Map),g.push([]);const ne=[];D&&ne.push(D),ni(Q)&&Kn(Q)&&ne.push(br(Q,Ll.cannotExtractToJSClass)),Po(Q)&&!vs(Q.body)&&ne.push(br(Q,Ll.cannotExtractToExpressionArrowFunction)),m.push(ne)}const M=new Map,V=o0(e.range)?I.createBlock(e.range):e.range,U=o0(e.range)?wa(e.range):e.range,Y=j(U);if(R(V),Y&&!o0(e.range)&&!Vd(e.range)){const Q=a.getContextualType(e.range);ee(Q)}if(l.size>0){const Q=new Map;let ne=0;for(let ue=U;ue!==void 0&&ne{u[ne].typeParameterUsages.set(G,fe)}),ne++),RW(ue))for(const fe of Kh(ue)){const G=a.getTypeAtLocation(fe);l.has(G.id.toString())&&Q.set(G.id.toString(),G)}E.assert(ne===t.length,"Should have iterated all scopes")}if(y.length){const Q=MW(t[0],t[0].parent)?t[0]:mm(t[0]);bs(Q,_e)}for(let Q=0;Q0&&(ne.usages.size>0||ne.typeParameterUsages.size>0)){const G=o0(e.range)?e.range[0]:e.range;m[Q].push(br(G,Ll.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ni(t[Q])&&g[Q].push(br(e.thisNode,Ll.cannotExtractFunctionsContainingThisToMethod));let ue=!1,fe;if(u[Q].usages.forEach(G=>{G.usage===2&&(ue=!0,G.symbol.flags&106500&&G.symbol.valueDeclaration&&Iu(G.symbol.valueDeclaration,64)&&(fe=G.symbol.valueDeclaration))}),E.assert(o0(e.range)||k.length===0,"No variable declarations expected if something was extracted"),ue&&!o0(e.range)){const G=br(e.range,Ll.cannotWriteInExpression);g[Q].push(G),m[Q].push(G)}else if(fe&&Q>0){const G=br(fe,Ll.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[Q].push(G),m[Q].push(G)}else if(C){const G=br(C,Ll.cannotExtractExportedEntity);g[Q].push(G),m[Q].push(G)}}return{target:V,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:m,exposedVariableDeclarations:k};function j(Q){return!!In(Q,ne=>RW(ne)&&Kh(ne).length!==0)}function ee(Q){const ne=a.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:ue}=ne.walkType(Q);for(const fe of ue)fe.isTypeParameter()&&l.set(fe.id.toString(),fe)}function R(Q,ne=1){if(Y){const ue=a.getTypeAtLocation(Q);ee(ue)}if(l_(Q)&&Q.symbol&&y.push(Q),Kl(Q))R(Q.left,2),R(Q.right);else if(ile(Q))R(Q.operand,2);else if(kr(Q)||No(Q))bs(Q,R);else if(we(Q)){if(!Q.parent||hu(Q.parent)&&Q!==Q.parent.left||kr(Q.parent)&&Q!==Q.parent.expression)return;Z(Q,ne,Km(Q))}else bs(Q,R)}function Z(Q,ne,ue){const fe=oe(Q,ne,ue);if(fe)for(let G=0;G=ne)return G;if(M.set(G,ne),Ne){for(const ve of u)ve.usages.get(Q.text)&&ve.usages.set(Q.text,{usage:ne,symbol:fe,node:Q});return G}const De=fe.getDeclarations(),Xe=De&&Or(De,ve=>ve.getSourceFile()===i);if(!!Xe&&!w5(r,Xe.getStart(),Xe.end)){if(e.facts&2&&ne===2){const ve=br(Q,Ll.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const be of g)be.push(ve);for(const be of m)be.push(ve)}for(let ve=0;ve=0)return;const ne=we(Q)?X(Q):a.getSymbolAtLocation(Q);if(ne){const ue=Or(y,fe=>fe.symbol===ne);if(ue)if(Ri(ue)){const fe=ue.symbol.id.toString();x.has(fe)||(k.push(ue),x.set(fe,!0))}else C=C||ue}bs(Q,_e)}function X(Q){return Q.parent&&nf(Q.parent)&&Q.parent.name===Q?a.getShorthandAssignmentValueSymbol(Q.parent):a.getSymbolAtLocation(Q)}function H(Q,ne,ue){if(!Q)return;const fe=Q.getDeclarations();if(fe&&fe.some(Ne=>Ne.parent===ne))return I.createIdentifier(Q.name);const G=H(Q.parent,ne,ue);if(G!==void 0)return ue?I.createQualifiedName(G,I.createIdentifier(Q.name)):I.createPropertyAccessExpression(G,Q.name)}}function TBe(e){return In(e,t=>t.parent&&Vve(t)&&!rr(t.parent))}function Vve(e){const{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function Uve(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function bK(e){return TK(e)||(_g(e)||rT(e)||y2(e))&&(_g(e.parent)||y2(e.parent))}function TK(e){return fa(e)&&e.parent&&Vd(e.parent)}var RS,BS,jS,Ll,xK,xBe=Rt({"src/services/refactors/extractSymbol.ts"(){Wr(),Wd(),RS="Extract Symbol",BS={name:"Extract Constant",description:ss(p.Extract_constant),kind:"refactor.extract.constant"},jS={name:"Extract Function",description:ss(p.Extract_function),kind:"refactor.extract.function"},Dm(RS,{kinds:[BS.kind,jS.kind],getEditsForAction:zve,getAvailableActions:Jve}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Ll||(Ll={})),xK=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(xK||{})}}),Wve={};C_(Wve,{Messages:()=>Ll,RangeFacts:()=>xK,getRangeToExtract:()=>gK,getRefactorActionsToExtractSymbol:()=>Jve,getRefactorEditsToExtractSymbol:()=>zve});var SBe=Rt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){xBe()}}),lN,jR,JR,kBe=Rt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){Wr(),Wd(),lN="Generate 'get' and 'set' accessors",jR=ss(p.Generate_get_and_set_accessors),JR={name:lN,description:jR,kind:"refactor.rewrite.property.generateAccessors"},Dm(lN,{kinds:[JR.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=n_.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);E.assert(i&&!ug(i),"Expected applicable refactor info");const a=n_.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!a)return;const o=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,f=(we(l)?0:-1)+z5(a,o,l.text,rs(i.declaration));return{renameFilename:o,renameLocation:f,edits:a}},getAvailableActions(e){if(!e.endPosition)return Ve;const t=n_.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:lN,description:jR,actions:[{...JR,notApplicableReason:t.error}]}]:Ve:[{name:lN,description:jR,actions:[JR]}]:Ve}})}}),CBe={},EBe=Rt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){kBe()}});function wBe(e){const t=qve(e);if(t&&!ug(t))return{renameFilename:void 0,renameLocation:void 0,edits:tr.ChangeTracker.with(e,i=>ABe(e.file,i,t.declaration,t.returnTypeNode))}}function DBe(e){const t=qve(e);return t?ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:_N,description:zR,actions:[{...uN,notApplicableReason:t.error}]}]:Ve:[{name:_N,description:zR,actions:[uN]}]:Ve}function ABe(e,t,r,i){const a=$a(r,22,e),o=Po(r)&&a===void 0,l=o?wa(r.parameters):a;l&&(o&&(t.insertNodeBefore(e,l,I.createToken(21)),t.insertNodeAfter(e,l,I.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function qve(e){if(Kn(e.file)||!C1(uN.kind,e.kind))return;const t=Ui(e.file,e.startPosition),r=In(t,l=>vs(l)||l.parent&&Po(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":NBe(l));if(!r||!r.body||r.type)return{error:ss(p.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),a=PBe(i,r);if(!a)return{error:ss(p.Could_not_determine_function_return_type)};const o=i.typeToTypeNode(a,r,1);if(o)return{declaration:r,returnTypeNode:o}}function NBe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function PBe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Hi(i,a=>a.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var _N,zR,uN,IBe=Rt({"src/services/refactors/inferFunctionReturnType.ts"(){Wr(),Wd(),_N="Infer function return type",zR=ss(p.Infer_function_return_type),uN={name:_N,description:zR,kind:"refactor.rewrite.function.returnType"},Dm(_N,{kinds:[uN.kind],getEditsForAction:wBe,getAvailableActions:DBe})}}),OBe={},FBe=Rt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){IBe()}}),JS={};C_(JS,{addExportToChanges:()=>eK,addExports:()=>QZ,addNewFileToTsconfig:()=>qZ,addOrRemoveBracesToArrowFunction:()=>$Me,convertArrowFunctionOrFunctionExpression:()=>aRe,convertParamsToDestructuredObject:()=>CRe,convertStringOrTemplateLiteral:()=>LRe,convertToOptionalChainExpression:()=>$Re,createNewFileName:()=>tK,createOldFileImportsFromTargetFile:()=>XZ,deleteMovedStatements:()=>tN,deleteUnusedImports:()=>YZ,deleteUnusedOldImports:()=>HZ,doChangeNamedToNamespaceOrDefault:()=>Zye,extractSymbol:()=>Wve,filterImport:()=>rE,forEachImportInStatement:()=>nE,generateGetAccessorAndSetAccessor:()=>CBe,getApplicableRefactors:()=>XLe,getEditsForRefactor:()=>QLe,getStatementsToMove:()=>iE,getTopLevelDeclarationStatement:()=>CR,getUsageInfo:()=>ER,inferFunctionReturnType:()=>OBe,isRefactorErrorInfo:()=>ug,isTopLevelDeclaration:()=>rN,makeImportOrRequire:()=>nN,moduleSpecifierFromImport:()=>tE,nameOfTopLevelDeclaration:()=>KZ,refactorKindBeginsWith:()=>C1,registerRefactor:()=>Dm,updateImportsInOtherFiles:()=>GZ});var Wd=Rt({"src/services/_namespaces/ts.refactor.ts"(){Hye(),rMe(),cMe(),dMe(),mMe(),hMe(),TMe(),zMe(),XMe(),oRe(),ERe(),MRe(),XRe(),SBe(),EBe(),FBe()}});function Hve(e,t,r,i){const a=SK(e,t,r,i);E.assert(a.spans.length%3===0);const o=a.spans,l=[];for(let u=0;u{a.push(l.getStart(t),l.getWidth(t),(u+1<<8)+f)},i),a}function MBe(e,t,r,i,a){const o=e.getTypeChecker();let l=!1;function u(f){switch(f.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:a.throwIfCancellationRequested()}if(!f||!$I(r,f.pos,f.getFullWidth())||f.getFullWidth()===0)return;const g=l;if((_g(f)||rT(f))&&(l=!0),l8(f)&&(l=!1),we(f)&&!l&&!JBe(f)&&!U3(f.escapedText)){let m=o.getSymbolAtLocation(f);if(m){m.flags&2097152&&(m=o.getAliasedSymbol(m));let y=RBe(m,vT(f));if(y!==void 0){let x=0;f.parent&&(Oa(f.parent)||wK.get(f.parent.kind)===y)&&f.parent.name===f&&(x=1),y===6&&$ve(f)&&(y=9),y=BBe(o,f,y);const k=m.valueDeclaration;if(k){const C=Hv(k),N=W0(k);C&32&&(x|=2),C&512&&(x|=4),y!==0&&y!==2&&(C&64||N&2||m.getFlags()&8)&&(x|=8),(y===7||y===10)&&jBe(k,t)&&(x|=32),e.isSourceFileDefaultLibrary(k.getSourceFile())&&(x|=16)}else m.declarations&&m.declarations.some(C=>e.isSourceFileDefaultLibrary(C.getSourceFile()))&&(x|=16);i(f,y,x)}}}bs(f,u),l=g}u(t)}function RBe(e,t){const r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Oa(i)&&(i=Gve(i)),i&&wK.get(i.kind)}function BBe(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const a=o=>o(i)||i.isUnion()&&i.types.some(o);if(r!==6&&a(o=>o.getConstructSignatures().length>0))return 0;if(a(o=>o.getCallSignatures().length>0)&&!a(o=>o.getProperties().length>0)||zBe(t))return r===9?11:10}}return r}function jBe(e,t){return Oa(e)&&(e=Gve(e)),Ri(e)?(!Bi(e.parent.parent.parent)||Iy(e.parent))&&e.getSourceFile()===t:tl(e)?!Bi(e.parent)&&e.getSourceFile()===t:!1}function Gve(e){for(;;)if(Oa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function JBe(e){const t=e.parent;return t&&(Sm(t)||vu(t)||d1(t))}function zBe(e){for(;$ve(e);)e=e.parent;return Js(e.parent)&&e.parent.expression===e}function $ve(e){return hu(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e}var kK,CK,EK,wK,Xve=Rt({"src/services/classifier2020.ts"(){Wr(),kK=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(kK||{}),CK=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(CK||{}),EK=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(EK||{}),wK=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function Qve(e,t,r,i){const a=bw(e)?new HR(e,t,r):e===80?new $R(80,t,r):e===81?new XR(81,t,r):new PK(e,t,r);return a.parent=i,a.flags=i.flags&101441536,a}function VBe(e,t){if(!bw(e.kind))return Ve;const r=[];if(f9(e))return e.forEachChild(l=>{r.push(l)}),r;g_.setText((t||e.getSourceFile()).text);let i=e.pos;const a=l=>{fN(r,i,l.pos,e),r.push(l),i=l.end},o=l=>{fN(r,i,l.pos,e),r.push(UBe(l,e)),i=l.end};return pn(e.jsDoc,a),i=e.pos,e.forEachChild(a,o),fN(r,i,e.end,e),g_.setText(void 0),r}function fN(e,t,r,i){for(g_.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function VR(e,t){if(!e)return Ve;let r=Uy.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Yve))){const i=new Set;for(const a of e){const o=Zve(t,a,l=>{var u;if(!i.has(l))return i.add(l),a.kind===177||a.kind===178?l.getContextualJsDocTags(a,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags():void 0});o&&(r=[...o,...r])}}return r}function pN(e,t){if(!e)return Ve;let r=Uy.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Yve))){const i=new Set;for(const a of e){const o=Zve(t,a,l=>{if(!i.has(l))return i.add(l),a.kind===177||a.kind===178?l.getContextualDocumentationComment(a,t):l.getDocumentationComment(t)});o&&(r=r.length===0?o.slice():o.concat(D4(),r))}}return r}function Zve(e,t,r){var i;const a=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!a)return;const o=$c(t);return cc(f3(a),l=>{const u=e.getTypeAtLocation(l),f=o&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(f,t.symbol.name);return g?r(g):void 0})}function WBe(){return{getNodeConstructor:()=>HR,getTokenConstructor:()=>PK,getIdentifierConstructor:()=>$R,getPrivateIdentifierConstructor:()=>XR,getSourceFileConstructor:()=>o2e,getSymbolConstructor:()=>i2e,getTypeConstructor:()=>s2e,getSignatureConstructor:()=>a2e,getSourceMapSourceConstructor:()=>c2e}}function dN(e){let t=!0;for(const i in e)if(oo(e,i)&&!Kve(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(oo(e,i)){const a=Kve(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[a]=e[i]}return r}function Kve(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function e2e(e){return e?an(e,t=>t.text).join(""):""}function UR(){return{target:1,jsx:1}}function t2e(){return n_.getSupportedErrorCodes()}function n2e(e,t,r){e.version=r,e.scriptSnapshot=t}function WR(e,t,r,i,a,o){const l=SA(e,PM(t),r,a,o);return n2e(l,t,i),l}function DK(e,t,r,i,a){if(i&&r!==e.version){let l;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",f=Zl(i.span)!==e.text.length?e.text.substr(Zl(i.span)):"";if(i.newLength===0)l=u&&f?u+f:u||f;else{const m=t.getText(i.span.start,i.span.start+i.newLength);l=u&&f?u+m+f:u?u+m:m+f}const g=EG(e,l,i,a);return n2e(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return WR(e.fileName,t,o,r,!0,e.scriptKind)}function r2e(e,t=mZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let a;r===void 0?a=0:typeof r=="boolean"?a=r?2:0:a=r;const o=new l2e(e);let l,u,f=0;const g=e.getCancellationToken?new u2e(e.getCancellationToken()):_2e,m=e.getCurrentDirectory();iue((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(le){e.log&&e.log(le)}const x=yD(e),k=Ql(x),C=lye({useCaseSensitiveFileNames:()=>x,getCurrentDirectory:()=>m,getProgram:M,fileExists:Hs(e,e.fileExists),readFile:Hs(e,e.readFile),getDocumentPositionMapper:Hs(e,e.getDocumentPositionMapper),getSourceFileLike:Hs(e,e.getSourceFileLike),log:y});function N(le){const W=l.getSourceFile(le);if(!W){const ge=new Error(`Could not find source file: '${le}'.`);throw ge.ProgramFiles=l.getSourceFiles().map(F=>F.fileName),ge}return W}function D(){var le,W,ge;if(E.assert(a!==2),e.getProjectVersion){const qi=e.getProjectVersion();if(qi){if(u===qi&&!((le=e.hasChangedAutomaticTypeDirectiveNames)!=null&&le.call(e)))return;u=qi}}const F=e.getTypeRootsVersion?e.getTypeRootsVersion():0;f!==F&&(y("TypeRoots version has changed; provide new program"),l=void 0,f=F);const ye=e.getScriptFileNames().slice(),Oe=e.getCompilationSettings()||UR(),We=e.hasInvalidatedResolutions||j0,Tt=Hs(e,e.hasInvalidatedLibResolutions)||j0,It=Hs(e,e.hasChangedAutomaticTypeDirectiveNames),on=(W=e.getProjectReferences)==null?void 0:W.call(e);let kn,ir={getSourceFile:ln,getSourceFileByPath:tc,getCancellationToken:()=>g,getCanonicalFileName:k,useCaseSensitiveFileNames:()=>x,getNewLine:()=>K0(Oe),getDefaultLibFileName:qi=>e.getDefaultLibFileName(qi),writeFile:co,getCurrentDirectory:()=>m,fileExists:qi=>e.fileExists(qi),readFile:qi=>e.readFile&&e.readFile(qi),getSymlinkCache:Hs(e,e.getSymlinkCache),realpath:Hs(e,e.realpath),directoryExists:qi=>ed(qi,e),getDirectories:qi=>e.getDirectories?e.getDirectories(qi):[],readDirectory:(qi,Es,Ea,ro,za)=>(E.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(qi,Es,Ea,ro,za)),onReleaseOldSourceFile:di,onReleaseParsedCommandLine:Ms,hasInvalidatedResolutions:We,hasInvalidatedLibResolutions:Tt,hasChangedAutomaticTypeDirectiveNames:It,trace:Hs(e,e.trace),resolveModuleNames:Hs(e,e.resolveModuleNames),getModuleResolutionCache:Hs(e,e.getModuleResolutionCache),createHash:Hs(e,e.createHash),resolveTypeReferenceDirectives:Hs(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Hs(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Hs(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Hs(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Hs(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Yr};const ar=ir.getSourceFile,{getSourceFileWithCache:jn}=o5(ir,qi=>ho(qi,m,k),(...qi)=>ar.call(ir,...qi));ir.getSourceFile=jn,(ge=e.setCompilerHost)==null||ge.call(e,ir);const oi={useCaseSensitiveFileNames:x,fileExists:qi=>ir.fileExists(qi),readFile:qi=>ir.readFile(qi),directoryExists:qi=>ir.directoryExists(qi),getDirectories:qi=>ir.getDirectories(qi),realpath:ir.realpath,readDirectory:(...qi)=>ir.readDirectory(...qi),trace:ir.trace,getCurrentDirectory:ir.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:co},ea=t.getKeyForCompilationSettings(Oe);let gs=new Set;if(PX(l,ye,Oe,(qi,Es)=>e.getScriptVersion(Es),qi=>ir.fileExists(qi),We,Tt,It,Yr,on)){ir=void 0,kn=void 0,gs=void 0;return}l=HL({rootNames:ye,options:Oe,host:ir,oldProgram:l,projectReferences:on}),ir=void 0,kn=void 0,gs=void 0,C.clearCache(),l.getTypeChecker();return;function Yr(qi){const Es=ho(qi,m,k),Ea=kn==null?void 0:kn.get(Es);if(Ea!==void 0)return Ea||void 0;const ro=e.getParsedCommandLine?e.getParsedCommandLine(qi):cs(qi);return(kn||(kn=new Map)).set(Es,ro||!1),ro}function cs(qi){const Es=ln(qi,100);if(!!Es)return Es.path=ho(qi,m,k),Es.resolvedPath=Es.path,Es.originalFileName=Es.fileName,AA(Es,oi,ms(Ti(qi),m),void 0,ms(qi,m))}function Ms(qi,Es,Ea){var ro;e.getParsedCommandLine?(ro=e.onReleaseParsedCommandLine)==null||ro.call(e,qi,Es,Ea):Es&&di(Es.sourceFile,Ea)}function di(qi,Es){const Ea=t.getKeyForCompilationSettings(Es);t.releaseDocumentWithKey(qi.resolvedPath,Ea,qi.scriptKind,qi.impliedNodeFormat)}function ln(qi,Es,Ea,ro){return tc(qi,ho(qi,m,k),Es,Ea,ro)}function tc(qi,Es,Ea,ro,za){E.assert(ir,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const Pc=e.getScriptSnapshot(qi);if(!Pc)return;const ls=UY(qi,e),Li=e.getScriptVersion(qi);if(!za){const Vc=l&&l.getSourceFileByPath(Es);if(Vc){if(ls===Vc.scriptKind||gs.has(Vc.resolvedPath))return t.updateDocumentWithKey(qi,Es,e,ea,Pc,Li,ls,Ea);t.releaseDocumentWithKey(Vc.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Vc.scriptKind,Vc.impliedNodeFormat),gs.add(Vc.resolvedPath)}}return t.acquireDocumentWithKey(qi,Es,e,ea,Pc,Li,ls,Ea)}}function M(){if(a===2){E.assert(l===void 0);return}return D(),l}function V(){var le;return(le=e.getPackageJsonAutoImportProvider)==null?void 0:le.call(e)}function U(le,W){const ge=l.getTypeChecker(),F=ye();if(!F)return!1;for(const We of le)for(const Tt of We.references){const It=Oe(Tt);if(E.assertIsDefined(It),W.has(Tt)||Oo.isDeclarationOfSymbol(It,F)){W.add(Tt),Tt.isDefinition=!0;const on=BY(Tt,C,Hs(e,e.fileExists));on&&W.add(on)}else Tt.isDefinition=!1}return!0;function ye(){for(const We of le)for(const Tt of We.references){if(W.has(Tt)){const on=Oe(Tt);return E.assertIsDefined(on),ge.getSymbolAtLocation(on)}const It=BY(Tt,C,Hs(e,e.fileExists));if(It&&W.has(It)){const on=Oe(It);if(on)return ge.getSymbolAtLocation(on)}}}function Oe(We){const Tt=l.getSourceFile(We.fileName);if(!Tt)return;const It=af(Tt,We.textSpan.start);return Oo.Core.getAdjustedNode(It,{use:Oo.FindReferencesUse.References})}}function Y(){if(l){const le=t.getKeyForCompilationSettings(l.getCompilerOptions());pn(l.getSourceFiles(),W=>t.releaseDocumentWithKey(W.resolvedPath,le,W.scriptKind,W.impliedNodeFormat)),l=void 0}}function j(){Y(),e=void 0}function ee(le){return D(),l.getSyntacticDiagnostics(N(le),g).slice()}function R(le){D();const W=N(le),ge=l.getSemanticDiagnostics(W,g);if(!wp(l.getCompilerOptions()))return ge.slice();const F=l.getDeclarationDiagnostics(W,g);return[...ge,...F]}function Z(le){return D(),EZ(N(le),l,g)}function oe(){return D(),[...l.getOptionsDiagnostics(g),...l.getGlobalDiagnostics(g)]}function _e(le,W,ge=_p,F){const ye={...ge,includeCompletionsForModuleExports:ge.includeCompletionsForModuleExports||ge.includeExternalModuleExports,includeCompletionsWithInsertText:ge.includeCompletionsWithInsertText||ge.includeInsertTextCompletions};return D(),$S.getCompletionsAtPosition(e,l,y,N(le),W,ye,ge.triggerCharacter,ge.triggerKind,g,F&&gl.getFormatContext(F,e),ge.includeSymbol)}function X(le,W,ge,F,ye,Oe=_p,We){return D(),$S.getCompletionEntryDetails(l,y,N(le),W,{name:ge,source:ye,data:We},e,F&&gl.getFormatContext(F,e),Oe,g)}function H(le,W,ge,F,ye=_p){return D(),$S.getCompletionEntrySymbol(l,y,N(le),W,{name:ge,source:F},e,ye)}function Q(le,W){D();const ge=N(le),F=af(ge,W);if(F===ge)return;const ye=l.getTypeChecker(),Oe=ne(F),We=$Be(Oe,ye);if(!We||ye.isUnknownSymbol(We)){const ir=ue(ge,Oe,W)?ye.getTypeAtLocation(Oe):void 0;return ir&&{kind:"",kindModifiers:"",textSpan:cu(Oe,ge),displayParts:ye.runWithCancellationToken(g,ar=>j5(ar,ir,bT(Oe))),documentation:ir.symbol?ir.symbol.getDocumentationComment(ye):void 0,tags:ir.symbol?ir.symbol.getJsDocTags(ye):void 0}}const{symbolKind:Tt,displayParts:It,documentation:on,tags:kn}=ye.runWithCancellationToken(g,ir=>ph.getSymbolDisplayPartsDocumentationAndSymbolKind(ir,We,ge,bT(Oe),Oe));return{kind:Tt,kindModifiers:ph.getSymbolModifiers(ye,We),textSpan:cu(Oe,ge),displayParts:It,documentation:on,tags:kn}}function ne(le){return d2(le.parent)&&le.pos===le.parent.pos?le.parent.expression:r8(le.parent)&&le.pos===le.parent.pos||g6(le.parent)&&le.parent.name===le||sd(le.parent)?le.parent:le}function ue(le,W,ge){switch(W.kind){case 80:return!_Y(W)&&!uY(W)&&!qg(W.parent);case 211:case 166:return!lh(le,ge);case 110:case 197:case 108:case 202:return!0;case 236:return g6(W);default:return!1}}function fe(le,W,ge,F){return D(),xE.getDefinitionAtPosition(l,N(le),W,ge,F)}function G(le,W){return D(),xE.getDefinitionAndBoundSpan(l,N(le),W)}function Ne(le,W){return D(),xE.getTypeDefinitionAtPosition(l.getTypeChecker(),N(le),W)}function De(le,W){return D(),Oo.getImplementationsAtPosition(l,g,l.getSourceFiles(),N(le),W)}function Xe(le,W,ge){const F=ba(le);E.assert(ge.some(We=>ba(We)===F)),D();const ye=Hi(ge,We=>l.getSourceFile(We)),Oe=N(le);return aR.getDocumentHighlights(l,g,Oe,W,ye)}function ve(le,W,ge,F,ye){D();const Oe=N(le),We=SM(af(Oe,W));if(!!Hj.nodeIsEligibleForRename(We))if(we(We)&&(zd(We.parent)||h2(We.parent))&&P6(We.escapedText)){const{openingElement:Tt,closingElement:It}=We.parent.parent;return[Tt,It].map(on=>{const kn=cu(on.tagName,Oe);return{fileName:Oe.fileName,textSpan:kn,...Oo.toContextSpan(kn,Oe,on.parent)}})}else{const Tt=Rf(Oe,ye!=null?ye:_p),It=typeof ye=="boolean"?ye:ye==null?void 0:ye.providePrefixAndSuffixTextForRename;return xe(We,W,{findInStrings:ge,findInComments:F,providePrefixAndSuffixTextForRename:It,use:Oo.FindReferencesUse.Rename},(on,kn,ir)=>Oo.toRenameLocation(on,kn,ir,It||!1,Tt))}}function be(le,W){return D(),xe(af(N(le),W),W,{use:Oo.FindReferencesUse.References},Oo.toReferenceEntry)}function xe(le,W,ge,F){D();const ye=ge&&ge.use===Oo.FindReferencesUse.Rename?l.getSourceFiles().filter(Oe=>!l.isSourceFileDefaultLibrary(Oe)):l.getSourceFiles();return Oo.findReferenceOrRenameEntries(l,g,ye,le,W,ge,F)}function rt(le,W){return D(),Oo.findReferencedSymbols(l,g,l.getSourceFiles(),N(le),W)}function ct(le){return D(),Oo.Core.getReferencesForFileName(le,l,l.getSourceFiles()).map(Oo.toReferenceEntry)}function pe(le,W,ge,F=!1){D();const ye=ge?[N(ge)]:l.getSourceFiles();return bye(ye,l.getTypeChecker(),g,le,W,F)}function Pe(le,W,ge){D();const F=N(le),ye=e.getCustomTransformers&&e.getCustomTransformers();return e0e(l,F,!!W,g,ye,ge)}function Ge(le,W,{triggerReason:ge}=_p){D();const F=N(le);return zN.getSignatureHelpItems(l,F,W,ge,g)}function tt(le){return o.getCurrentSourceFile(le)}function mt(le,W,ge){const F=o.getCurrentSourceFile(le),ye=af(F,W);if(ye===F)return;switch(ye.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Oe=ye;for(;;)if(k4(Oe)||Ohe(Oe))Oe=Oe.parent;else if(pY(Oe))if(Oe.parent.parent.kind===267&&Oe.parent.parent.body===Oe.parent)Oe=Oe.parent.parent.name;else break;else break;return ll(Oe.getStart(),ye.getEnd())}function Je(le,W){const ge=o.getCurrentSourceFile(le);return jK.spanInSourceFileAtLocation(ge,W)}function ot(le){return kye(o.getCurrentSourceFile(le),g)}function Jt(le){return Cye(o.getCurrentSourceFile(le),g)}function Pt(le,W,ge){return D(),(ge||"original")==="2020"?Hve(l,g,N(le),W):J1e(l.getTypeChecker(),g,N(le),l.getClassifiableNames(),W)}function bt(le,W,ge){return D(),(ge||"original")==="original"?pZ(l.getTypeChecker(),g,N(le),l.getClassifiableNames(),W):SK(l,g,N(le),W)}function _r(le,W){return W1e(g,o.getCurrentSourceFile(le),W)}function xn(le,W){return dZ(g,o.getCurrentSourceFile(le),W)}function Bt(le){const W=o.getCurrentSourceFile(le);return Mne.collectElements(W,g)}const er=new Map(Object.entries({[19]:20,[21]:22,[23]:24,[32]:30}));er.forEach((le,W)=>er.set(le.toString(),Number(W)));function xr(le,W){const ge=o.getCurrentSourceFile(le),F=J8(ge,W),ye=F.getStart(ge)===W?er.get(F.kind.toString()):void 0,Oe=ye&&$a(F.parent,ye,ge);return Oe?[cu(F,ge),cu(Oe,ge)].sort((We,Tt)=>We.start-Tt.start):Ve}function pi(le,W,ge){let F=Wo();const ye=dN(ge),Oe=o.getCurrentSourceFile(le);y("getIndentationAtPosition: getCurrentSourceFile: "+(Wo()-F)),F=Wo();const We=gl.SmartIndenter.getIndentation(W,Oe,ye);return y("getIndentationAtPosition: computeIndentation : "+(Wo()-F)),We}function ki(le,W,ge,F){const ye=o.getCurrentSourceFile(le);return gl.formatSelection(W,ge,ye,gl.getFormatContext(dN(F),e))}function Nr(le,W){return gl.formatDocument(o.getCurrentSourceFile(le),gl.getFormatContext(dN(W),e))}function pt(le,W,ge,F){const ye=o.getCurrentSourceFile(le),Oe=gl.getFormatContext(dN(F),e);if(!lh(ye,W))switch(ge){case"{":return gl.formatOnOpeningCurly(W,ye,Oe);case"}":return gl.formatOnClosingCurly(W,ye,Oe);case";":return gl.formatOnSemicolon(W,ye,Oe);case` +`:return gl.formatOnEnter(W,ye,Oe)}return[]}function ur(le,W,ge,F,ye,Oe=_p){D();const We=N(le),Tt=ll(W,ge),It=gl.getFormatContext(ye,e);return Na(Uk(F,ly,Co),on=>(g.throwIfCancellationRequested(),n_.getFixes({errorCode:on,sourceFile:We,span:Tt,program:l,host:e,cancellationToken:g,formatContext:It,preferences:Oe})))}function hn(le,W,ge,F=_p){D(),E.assert(le.type==="file");const ye=N(le.fileName),Oe=gl.getFormatContext(ge,e);return n_.getAllFixes({fixId:W,sourceFile:ye,program:l,host:e,cancellationToken:g,formatContext:Oe,preferences:F})}function Ct(le,W,ge=_p){var We;D(),E.assert(le.type==="file");const F=N(le.fileName),ye=gl.getFormatContext(W,e),Oe=(We=le.mode)!=null?We:le.skipDestructiveCodeActions?"SortAndCombine":"All";return Fp.organizeImports(F,ye,e,l,ge,Oe)}function cn(le,W,ge,F=_p){return $1e(M(),le,W,e,gl.getFormatContext(ge,e),F,C)}function Pn(le,W){const ge=typeof le=="string"?W:le;return Ds(ge)?Promise.all(ge.map(F=>Sr(F))):Sr(ge)}function Sr(le){const W=ge=>ho(ge,m,k);return E.assertEqual(le.type,"install package"),e.installPackage?e.installPackage({fileName:W(le.file),packageName:le.packageName}):Promise.reject("Host does not implement `installPackage`")}function wi(le,W,ge,F){const ye=F?gl.getFormatContext(F,e).options:void 0;return Uy.getDocCommentTemplateAtPosition(s0(e,ye),o.getCurrentSourceFile(le),W,ge)}function Yt(le,W,ge){if(ge===60)return!1;const F=o.getCurrentSourceFile(le);if(xT(F,W))return!1;if(Whe(F,W))return ge===123;if(TY(F,W))return!1;switch(ge){case 39:case 34:case 96:return!lh(F,W)}return!0}function Gt(le,W){const ge=o.getCurrentSourceFile(le),F=rl(W,ge);if(!F)return;const ye=F.kind===32&&zd(F.parent)?F.parent.parent:iS(F)&&_g(F.parent)?F.parent:void 0;if(ye&&it(ye))return{newText:``};const Oe=F.kind===32&&gS(F.parent)?F.parent.parent:iS(F)&&y2(F.parent)?F.parent:void 0;if(Oe&&Vt(Oe))return{newText:""}}function Sn(le,W){const ge=o.getCurrentSourceFile(le),F=rl(W,ge);if(!F||F.parent.kind===312)return;const ye="[a-zA-Z0-9:\\-\\._$]*";if(y2(F.parent.parent)){const Oe=F.parent.parent.openingFragment,We=F.parent.parent.closingFragment;if(_6(Oe)||_6(We))return;const Tt=Oe.getStart(ge)+1,It=We.getStart(ge)+2;return W!==Tt&&W!==It?void 0:{ranges:[{start:Tt,length:0},{start:It,length:0}],wordPattern:ye}}else{const Oe=In(F.parent,jn=>!!(zd(jn)||h2(jn)));if(!Oe)return;E.assert(zd(Oe)||h2(Oe),"tag should be opening or closing element");const We=Oe.parent.openingElement,Tt=Oe.parent.closingElement,It=We.tagName.getStart(ge),on=We.tagName.end,kn=Tt.tagName.getStart(ge),ir=Tt.tagName.end;return!(It<=W&&W<=on||kn<=W&&W<=ir)||We.tagName.getText(ge)!==Tt.tagName.getText(ge)?void 0:{ranges:[{start:It,length:on-It},{start:kn,length:ir-kn}],wordPattern:ye}}}function Gr(le,W){return{lineStarts:le.getLineStarts(),firstLine:le.getLineAndCharacterOfPosition(W.pos).line,lastLine:le.getLineAndCharacterOfPosition(W.end).line}}function Er(le,W,ge){const F=o.getCurrentSourceFile(le),ye=[],{lineStarts:Oe,firstLine:We,lastLine:Tt}=Gr(F,W);let It=ge||!1,on=Number.MAX_VALUE;const kn=new Map,ir=new RegExp(/\S/),ar=CM(F,Oe[We]),jn=ar?"{/*":"//";for(let oi=We;oi<=Tt;oi++){const ea=F.text.substring(Oe[oi],F.getLineEndOfPosition(Oe[oi])),gs=ir.exec(ea);gs&&(on=Math.min(on,gs.index),kn.set(oi.toString(),gs.index),ea.substr(gs.index,jn.length)!==jn&&(It=ge===void 0||ge))}for(let oi=We;oi<=Tt;oi++){if(We!==Tt&&Oe[oi]===W.end)continue;const ea=kn.get(oi.toString());ea!==void 0&&(ar?ye.push.apply(ye,ze(le,{pos:Oe[oi]+on,end:F.getLineEndOfPosition(Oe[oi])},It,ar)):It?ye.push({newText:jn,span:{length:0,start:Oe[oi]+on}}):F.text.substr(Oe[oi]+ea,jn.length)===jn&&ye.push({newText:"",span:{length:jn.length,start:Oe[oi]+ea}}))}return ye}function ze(le,W,ge,F){var ye;const Oe=o.getCurrentSourceFile(le),We=[],{text:Tt}=Oe;let It=!1,on=ge||!1;const kn=[];let{pos:ir}=W;const ar=F!==void 0?F:CM(Oe,ir),jn=ar?"{/*":"/*",oi=ar?"*/}":"*/",ea=ar?"\\{\\/\\*":"\\/\\*",gs=ar?"\\*\\/\\}":"\\*\\/";for(;ir<=W.end;){const Us=Tt.substr(ir,jn.length)===jn?jn.length:0,Yr=lh(Oe,ir+Us);if(Yr)ar&&(Yr.pos--,Yr.end++),kn.push(Yr.pos),Yr.kind===3&&kn.push(Yr.end),It=!0,ir=Yr.end+1;else{const cs=Tt.substring(ir,W.end).search(`(${ea})|(${gs})`);on=ge!==void 0?ge:on||!i1e(Tt,ir,cs===-1?W.end:ir+cs),ir=cs===-1?W.end+1:ir+cs+oi.length}}if(on||!It){((ye=lh(Oe,W.pos))==null?void 0:ye.kind)!==2&&Hh(kn,W.pos,Co),Hh(kn,W.end,Co);const Us=kn[0];Tt.substr(Us,jn.length)!==jn&&We.push({newText:jn,span:{length:0,start:Us}});for(let Yr=1;Yr0?Us-oi.length:0,cs=Tt.substr(Yr,oi.length)===oi?oi.length:0;We.push({newText:"",span:{length:jn.length,start:Us-cs}})}return We}function ut(le,W){const ge=o.getCurrentSourceFile(le),{firstLine:F,lastLine:ye}=Gr(ge,W);return F===ye&&W.pos!==W.end?ze(le,W,!0):Er(le,W,!0)}function kt(le,W){const ge=o.getCurrentSourceFile(le),F=[],{pos:ye}=W;let{end:Oe}=W;ye===Oe&&(Oe+=CM(ge,ye)?2:1);for(let We=ye;We<=Oe;We++){const Tt=lh(ge,We);if(Tt){switch(Tt.kind){case 2:F.push.apply(F,Er(le,{end:Tt.end,pos:Tt.pos+1},!1));break;case 3:F.push.apply(F,ze(le,{end:Tt.end,pos:Tt.pos+1},!1))}We=Tt.end+1}}return F}function it({openingElement:le,closingElement:W,parent:ge}){return!My(le.tagName,W.tagName)||_g(ge)&&My(le.tagName,ge.openingElement.tagName)&&it(ge)}function Vt({closingFragment:le,parent:W}){return!!(le.flags&262144)||y2(W)&&Vt(W)}function ae(le,W,ge){const F=o.getCurrentSourceFile(le),ye=gl.getRangeOfEnclosingComment(F,W);return ye&&(!ge||ye.kind===3)?T1(ye):void 0}function Me(le,W){D();const ge=N(le);g.throwIfCancellationRequested();const F=ge.text,ye=[];if(W.length>0&&!It(ge.fileName)){const on=We();let kn;for(;kn=on.exec(F);){g.throwIfCancellationRequested();const ir=3;E.assert(kn.length===W.length+ir);const ar=kn[1],jn=kn.index+ar.length;if(!lh(ge,jn))continue;let oi;for(let gs=0;gs"("+Oe(Yr.text)+")").join("|")+")",oi=/(?:$|\*\/)/.source,ea=/(?:.*?)/.source,gs="("+jn+ea+")",Us=ar+gs+oi;return new RegExp(Us,"gim")}function Tt(on){return on>=97&&on<=122||on>=65&&on<=90||on>=48&&on<=57}function It(on){return Xl(on,"/node_modules/")}}function ke(le,W,ge){return D(),Hj.getRenameInfo(l,N(le),W,ge||{})}function ft(le,W,ge,F,ye,Oe){const[We,Tt]=typeof W=="number"?[W,void 0]:[W.pos,W.end];return{file:le,startPosition:We,endPosition:Tt,program:M(),host:e,formatContext:gl.getFormatContext(F,e),cancellationToken:g,preferences:ge,triggerReason:ye,kind:Oe}}function K(le,W,ge){return{file:le,program:M(),host:e,span:W,preferences:ge,cancellationToken:g}}function $e(le,W){return zne.getSmartSelectionRange(W,o.getCurrentSourceFile(le))}function Ae(le,W,ge=_p,F,ye,Oe){D();const We=N(le);return JS.getApplicableRefactors(ft(We,W,ge,_p,F,ye),Oe)}function ht(le,W,ge=_p){D();const F=N(le),ye=E.checkDefined(l.getSourceFiles()),Oe=Qb(le),We=Hi(ye,It=>!(l!=null&&l.isSourceFileFromExternalLibrary(F))&&!(F===N(It.fileName)||Oe===".ts"&&Qb(It.fileName)===".d.ts"||Oe===".d.ts"&&ns(Jl(It.fileName),"lib.")&&Qb(It.fileName)===".d.ts")&&Oe===Qb(It.fileName)?It.fileName:void 0);return{newFileName:tK(F,l,ft(F,W,ge,_p),e),files:We}}function _t(le,W,ge,F,ye,Oe=_p,We){D();const Tt=N(le);return JS.getEditsForRefactor(ft(Tt,ge,Oe,W),F,ye,We)}function jt(le,W){return W===0?{line:0,character:0}:C.toLineColumnOffset(le,W)}function Fn(le,W){D();const ge=VS.resolveCallHierarchyDeclaration(l,af(N(le),W));return ge&&D1e(ge,F=>VS.createCallHierarchyItem(l,F))}function Nt(le,W){D();const ge=N(le),F=tZ(VS.resolveCallHierarchyDeclaration(l,W===0?ge:af(ge,W)));return F?VS.getIncomingCalls(l,F,g):[]}function hi(le,W){D();const ge=N(le),F=tZ(VS.resolveCallHierarchyDeclaration(l,W===0?ge:af(ge,W)));return F?VS.getOutgoingCalls(l,F):[]}function z(le,W,ge=_p){D();const F=N(le);return Ene.provideInlayHints(K(F,W,ge))}const B={dispose:j,cleanupSemanticCache:Y,getSyntacticDiagnostics:ee,getSemanticDiagnostics:R,getSuggestionDiagnostics:Z,getCompilerOptionsDiagnostics:oe,getSyntacticClassifications:_r,getSemanticClassifications:Pt,getEncodedSyntacticClassifications:xn,getEncodedSemanticClassifications:bt,getCompletionsAtPosition:_e,getCompletionEntryDetails:X,getCompletionEntrySymbol:H,getSignatureHelpItems:Ge,getQuickInfoAtPosition:Q,getDefinitionAtPosition:fe,getDefinitionAndBoundSpan:G,getImplementationAtPosition:De,getTypeDefinitionAtPosition:Ne,getReferencesAtPosition:be,findReferences:rt,getFileReferences:ct,getDocumentHighlights:Xe,getNameOrDottedNameSpan:mt,getBreakpointStatementAtPosition:Je,getNavigateToItems:pe,getRenameInfo:ke,getSmartSelectionRange:$e,findRenameLocations:ve,getNavigationBarItems:ot,getNavigationTree:Jt,getOutliningSpans:Bt,getTodoComments:Me,getBraceMatchingAtPosition:xr,getIndentationAtPosition:pi,getFormattingEditsForRange:ki,getFormattingEditsForDocument:Nr,getFormattingEditsAfterKeystroke:pt,getDocCommentTemplateAtPosition:wi,isValidBraceCompletionAtPosition:Yt,getJsxClosingTagAtPosition:Gt,getLinkedEditingRangeAtPosition:Sn,getSpanOfEnclosingComment:ae,getCodeFixesAtPosition:ur,getCombinedCodeFix:hn,applyCodeActionCommand:Pn,organizeImports:Ct,getEditsForFileRename:cn,getEmitOutput:Pe,getNonBoundSourceFile:tt,getProgram:M,getCurrentProgram:()=>l,getAutoImportProvider:V,updateIsDefinitionOfReferencedSymbols:U,getApplicableRefactors:Ae,getEditsForRefactor:_t,getMoveToRefactoringFileSuggestions:ht,toLineColumnOffset:jt,getSourceMapper:()=>C,clearSourceMapperCache:()=>C.clearCache(),prepareCallHierarchy:Fn,provideCallHierarchyIncomingCalls:Nt,provideCallHierarchyOutgoingCalls:hi,toggleLineComment:Er,toggleMultilineComment:ze,commentSelection:ut,uncommentSelection:kt,provideInlayHints:z,getSupportedCodeFixes:t2e};switch(a){case 0:break;case 1:OK.forEach(le=>B[le]=()=>{throw new Error(`LanguageService Operation: ${le} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:f2e.forEach(le=>B[le]=()=>{throw new Error(`LanguageService Operation: ${le} not allowed in LanguageServiceMode.Syntactic`)});break;default:E.assertNever(a)}return B}function AK(e){return e.nameTable||qBe(e),e.nameTable}function qBe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(we(i)&&!uY(i)&&i.escapedText||Of(i)&&HBe(i)){const a=d3(i);t.set(a,t.get(a)===void 0?i.pos:-1)}else if(Ei(i)){const a=i.escapedText;t.set(a,t.get(a)===void 0?i.pos:-1)}if(bs(i,r),Qu(i))for(const a of i.jsDoc)bs(a,r)})}function HBe(e){return Xg(e)||e.parent.kind===283||XBe(e)||cD(e)}function mN(e){const t=GBe(e);return t&&(ha(t.parent)||v2(t.parent))?t:void 0}function GBe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return gW(e.parent.parent)?e.parent.parent:void 0;case 80:return gW(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function $Be(e,t){const r=mN(e);if(r){const i=t.getContextualType(r.parent),a=i&&qR(r,t,i,!1);if(a&&a.length===1)return wa(a)}return t.getSymbolAtLocation(e)}function qR(e,t,r,i){const a=L5(e.name);if(!a)return Ve;if(!r.isUnion()){const l=r.getProperty(a);return l?[l]:Ve}const o=Hi(r.types,l=>(ha(e.parent)||v2(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(l,e.parent)?void 0:l.getProperty(a));if(i&&(o.length===0||o.length===r.types.length)){const l=r.getProperty(a);if(l)return[l]}return o.length===0?Hi(r.types,l=>l.getProperty(a)):o}function XBe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function QBe(e){if(jl)return Ii(Ti(ba(jl.getExecutingFilePath())),GI(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var NK,HR,GR,i2e,PK,$R,XR,s2e,a2e,o2e,c2e,l2e,_2e,u2e,IK,OK,f2e,YBe=Rt({"src/services/services.ts"(){Wr(),Sye(),qye(),Wd(),H1e(),Xve(),NK="0.8",HR=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){E.assert(!Rd(this.pos)&&!Rd(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Rn(this)}getStart(e,t){return this.assertHasRealPosition(),Rb(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){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=VBe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=Or(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=jo(t);if(!!r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return bs(this,e,t)}},GR=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Rn(this)}getStart(e,t){return Rb(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Ve}getFirstToken(){}getLastToken(){}forEachChild(){}},i2e=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return bc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Ve,!this.declarations&&pm(this)&&this.links.target&&pm(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=pN([t],e)}else this.documentationComment=pN(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(r1(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=pN(zr(this.declarations,r1),t)),Nn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(G0(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=pN(zr(this.declarations,G0),t)),Nn(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=VR(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(r1(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=VR(zr(this.declarations,r1),t)),Nn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(G0(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=VR(zr(this.declarations,G0),t)),Nn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},PK=class extends GR{constructor(e,t,r){super(t,r),this.kind=e}},$R=class extends GR{constructor(e,t,r){super(t,r),this.kind=80}get text(){return lr(this)}},$R.prototype.kind=80,XR=class extends GR{constructor(e,t,r){super(t,r),this.kind=81}get text(){return lr(this)}},XR.prototype.kind=81,s2e=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Rr(this)&3)}isClass(){return!!(Rr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Rr(this)&4)return this.checker.getTypeArguments(this)}},a2e=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&W3(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=pN(Cb(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=VR(Cb(this.declaration),this.checker))}},o2e=class extends HR{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return EG(this,e,t)}getLineAndCharacterOfPosition(e){return yo(this,e)}getLineStarts(){return Ug(this)}getPositionOfLineAndCharacter(e,t,r){return zU(Ug(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const a=this.getFullText();return a[i]===` +`&&a[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=Xf();return this.forEachChild(a),e;function t(o){const l=i(o);l&&e.add(l,o)}function r(o){let l=e.get(o);return l||e.set(o,l=[]),l}function i(o){const l=YI(o);return l&&(Ga(l)&&kr(l.expression)?l.expression.name.text:Jc(l)?L5(l):void 0)}function a(o){switch(o.kind){case 262:case 218:case 174:case 173:const l=o,u=i(l);if(u){const m=r(u),y=jo(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}bs(o,a);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(o),bs(o,a);break;case 169:if(!Lr(o,16476))break;case 260:case 208:{const m=o;if(Ps(m.name)){bs(m.name,a);break}m.initializer&&a(m.initializer)}case 306:case 172:case 171:t(o);break;case 278:const f=o;f.exportClause&&(op(f.exportClause)?pn(f.exportClause.elements,a):a(f.exportClause.name));break;case 272:const g=o.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):pn(g.namedBindings.elements,a)));break;case 226:uc(o)!==0&&t(o);default:bs(o,a)}}}},c2e=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return yo(this,e)}},l2e=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,a,o,l,u,f;const g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");const m=UY(e,this.host),y=this.host.getScriptVersion(e);let x;if(this.currentFileName!==e){const k={languageVersion:99,impliedNodeFormat:u5(ho(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||Q0(this.host)),(f=(u=(l=(o=(a=this.host).getCompilerHost)==null?void 0:o.call(a))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:f.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:DD(this.host.getCompilationSettings())};x=WR(e,g,k,y,!0,m)}else if(this.currentFileVersion!==y){const k=g.getChangeRange(this.currentFileScriptSnapshot);x=DK(this.currentSourceFile,g,y,k)}return x&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=x),this.currentSourceFile}},_2e={isCancellationRequested:j0,throwIfCancellationRequested:co},u2e=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=li)==null||e.instant(li.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new LC}},IK=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Wo();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=li)==null||e.instant(li.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new LC}},OK=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],f2e=[...OK,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],nue(WBe())}});function ZBe(e,t,r){const i=[];r=NZ(r,i);const a=Ds(e)?e:[e],o=n5(void 0,void 0,I,r,a,t,!0);return o.diagnostics=es(o.diagnostics,i),o}var KBe=Rt({"src/services/transform.ts"(){Wr()}});function QR(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function eje(e,t,r,i){let a;i&&(e.log(t),a=Wo());const o=r();if(i){const l=Wo();if(e.log(`${t} completed in ${l-a} msec`),Gs(o)){let u=o;u.length>128&&(u=u.substring(0,128)+"..."),e.log(` result.length=${u.length}, result='${JSON.stringify(u)}'`)}}return o}function FK(e,t,r,i){return p2e(e,t,!0,r,i)}function p2e(e,t,r,i,a){try{const o=eje(e,t,i,a);return r?JSON.stringify({result:o}):o}catch(o){return o instanceof LC?JSON.stringify({canceled:!0}):(QR(e,o),o.description=t,JSON.stringify({error:o}))}}function LK(e,t){return e.map(r=>tje(r,t))}function tje(e,t){return{message:v1(e.messageText,t),start:e.start,length:e.length,category:EI(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function MK(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var YR,d2e,RK,BK,ZR,m2e,g2e,h2e,y2e,nje=Rt({"src/services/shims.ts"(){Wr(),YR=function(){return this}(),d2e=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const t=e,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(r===null)return null;const i=JSON.parse(r);return gw(yl(i.span.start,i.span.length),i.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},RK=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,r)=>{const i=JSON.parse(this.shimHost.getModuleResolutionsForFile(r));return an(t,a=>{const o=B7(i,a);return o?{resolvedFileName:o,extension:Qb(o),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=t=>this.shimHost.directoryExists(t)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,r)=>{const i=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return an(t,a=>B7(i,Gs(a)?a:Zp(a.fileName)))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(!!this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(e===null||e==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const t=this.shimHost.getScriptSnapshot(e);return t&&new d2e(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e==="")return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new IK(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,r,i,a){const o=L3(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},BK=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=t=>this.shimHost.directoryExists(t):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=t=>this.shimHost.realpath(t):this.realpath=void 0}readDirectory(e,t,r,i,a){const o=L3(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},ZR=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},m2e=class extends ZR{constructor(e,t,r){super(e),this.host=t,this.languageService=r,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return FK(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,YR&&YR.CollectGarbage&&(YR.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(e){const t=s0(this.host,void 0);return LK(e,t)}getSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSyntacticClassifications(e,yl(t,r)))}getSemanticClassifications(e,t,r){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSemanticClassifications(e,yl(t,r)))}getEncodedSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${r})`,()=>MK(this.languageService.getEncodedSyntacticClassifications(e,yl(t,r))))}getEncodedSemanticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${r})`,()=>MK(this.languageService.getEncodedSemanticClassifications(e,yl(t,r))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,()=>{const t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)})}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,()=>{const t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)})}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)})}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,()=>this.languageService.getQuickInfoAtPosition(e,t))}getNameOrDottedNameSpan(e,t,r){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${r})`,()=>this.languageService.getNameOrDottedNameSpan(e,t,r))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,()=>this.languageService.getBreakpointStatementAtPosition(e,t))}getSignatureHelpItems(e,t,r){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,()=>this.languageService.getSignatureHelpItems(e,t,r))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getDefinitionAtPosition(e,t))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,()=>this.languageService.getDefinitionAndBoundSpan(e,t))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getTypeDefinitionAtPosition(e,t))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,()=>this.languageService.getImplementationAtPosition(e,t))}getRenameInfo(e,t,r){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,()=>this.languageService.getRenameInfo(e,t,r))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,()=>this.languageService.getSmartSelectionRange(e,t))}findRenameLocations(e,t,r,i,a){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${r}, ${i})`,()=>this.languageService.findRenameLocations(e,t,r,i,a))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,()=>this.languageService.getBraceMatchingAtPosition(e,t))}isValidBraceCompletionAtPosition(e,t,r){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${r})`,()=>this.languageService.isValidBraceCompletionAtPosition(e,t,r))}getSpanOfEnclosingComment(e,t,r){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,()=>this.languageService.getSpanOfEnclosingComment(e,t,r))}getIndentationAtPosition(e,t,r){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,()=>{const i=JSON.parse(r);return this.languageService.getIndentationAtPosition(e,t,i)})}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,()=>this.languageService.getReferencesAtPosition(e,t))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,()=>this.languageService.findReferences(e,t))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,()=>this.languageService.getFileReferences(e))}getDocumentHighlights(e,t,r){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,()=>{const i=this.languageService.getDocumentHighlights(e,t,JSON.parse(r)),a=Zp(zl(e));return zr(i,o=>Zp(zl(o.fileName))===a)})}getCompletionsAtPosition(e,t,r,i){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${r}, ${i})`,()=>this.languageService.getCompletionsAtPosition(e,t,r,i))}getCompletionEntryDetails(e,t,r,i,a,o,l){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${r}')`,()=>{const u=i===void 0?void 0:JSON.parse(i);return this.languageService.getCompletionEntryDetails(e,t,r,u,a,o,l)})}getFormattingEditsForRange(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${r})`,()=>{const a=JSON.parse(i);return this.languageService.getFormattingEditsForRange(e,t,r,a)})}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,()=>{const r=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,r)})}getFormattingEditsAfterKeystroke(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${r}')`,()=>{const a=JSON.parse(i);return this.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})}getDocCommentTemplateAtPosition(e,t,r,i){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,()=>this.languageService.getDocCommentTemplateAtPosition(e,t,r,i))}getNavigateToItems(e,t,r){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${r})`,()=>this.languageService.getNavigateToItems(e,t,r))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,()=>this.languageService.getNavigationBarItems(e))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,()=>this.languageService.getNavigationTree(e))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,()=>this.languageService.getOutliningSpans(e))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,()=>this.languageService.getTodoComments(e,JSON.parse(t)))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,()=>this.languageService.prepareCallHierarchy(e,t))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyIncomingCalls(e,t))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t))}provideInlayHints(e,t,r){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(r)})`,()=>this.languageService.provideInlayHints(e,t,r))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,()=>{const{diagnostics:t,...r}=this.languageService.getEmitOutput(e);return{...r,diagnostics:this.realizeDiagnostics(t)}})}getEmitOutputObject(e){return p2e(this.logger,`getEmitOutput('${e}')`,!1,()=>this.languageService.getEmitOutput(e),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleLineComment(e,t))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleMultilineComment(e,t))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.commentSelection(e,t))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.uncommentSelection(e,t))}},g2e=class extends ZR{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=j1e()}getEncodedLexicalClassifications(e,t,r=!1){return FK(this.logger,"getEncodedLexicalClassifications",()=>MK(this.classifier.getEncodedLexicalClassifications(e,t,r)),this.logPerformance)}getClassificationsForLine(e,t,r=!1){const i=this.classifier.getClassificationsForLine(e,t,r);let a="";for(const o of i.entries)a+=o.length+` `,a+=o.classification+` -`;return a+=i.finalLexState,a}},h2e=class extends ZR{constructor(e,t,r){super(e),this.logger=t,this.host=r,this.logPerformance=!1}forwardJSONCall(e,t){return OK(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,r){return this.forwardJSONCall(`resolveModuleName('${e}')`,()=>{const i=JSON.parse(r),a=v8(t,zl(e),i,this.host);let o=a.resolvedModule?a.resolvedModule.resolvedFileName:void 0;return a.resolvedModule&&a.resolvedModule.extension!==".ts"&&a.resolvedModule.extension!==".tsx"&&a.resolvedModule.extension!==".d.ts"&&(o=void 0),{resolvedFileName:o,failedLookupLocations:a.failedLookupLocations,affectingLocations:a.affectingLocations}})}resolveTypeReferenceDirective(e,t,r){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,()=>{const i=JSON.parse(r),a=s$(t,zl(e),i,this.host);return{resolvedFileName:a.resolvedTypeReferenceDirective?a.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:a.resolvedTypeReferenceDirective?a.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:a.failedLookupLocations}})}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,()=>{const r=cye(PM(t),!0,!0);return{referencedFiles:this.convertFileReferences(r.referencedFiles),importedFiles:this.convertFileReferences(r.importedFiles),ambientExternalModules:r.ambientExternalModules,isLibFile:r.isLibFile,typeReferenceDirectives:this.convertFileReferences(r.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(r.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,()=>{const t=JSON.parse(e);return tL(t,this.host)})}convertFileReferences(e){if(!e)return;const t=[];for(const r of e)t.push({path:zl(r.fileName),position:r.pos,length:r.end-r.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,()=>{const r=SA(e,PM(t)),i=zl(e),a=DA(r,this.host,bi(i),{},i);return{options:a.options,typeAcquisition:a.typeAcquisition,files:a.fileNames,raw:a.raw,errors:FK([...r.parseDiagnostics,...a.errors],`\r -`)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>UR())}discoverTypings(e){const t=Ql(!1);return this.forwardJSONCall("discoverTypings()",()=>{const r=JSON.parse(e);return this.safeList===void 0&&(this.safeList=mT.loadSafeList(this.host,yo(r.safeListPath,r.safeListPath,t))),mT.discoverTypings(this.host,i=>this.logger.log(i),r.fileNames,yo(r.projectRootPath,r.projectRootPath,t),this.safeList,r.packageNameToTypingLocation,r.typeAcquisition,r.unresolvedImports,r.typesRegistry,lp)})}},y2e=class{constructor(){this._shims=[]}getServicesVersion(){return AK}createLanguageServiceShim(e){try{this.documentRegistry===void 0&&(this.documentRegistry=dZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const t=new MK(e),r=r2e(t,this.documentRegistry,!1);return new m2e(this,e,r)}catch(t){throw QR(e,t),t}}createClassifierShim(e){try{return new g2e(this,e)}catch(t){throw QR(e,t),t}}createCoreServicesShim(e){try{const t=new RK(e);return new h2e(this,e,t)}catch(t){throw QR(e,t),t}}close(){Wm(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;ti){const y=rl(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return m(r);function a(y,x){const k=iT(y)?hx(y.modifiers,Wl):void 0,C=k?ua(e.text,k.end):y.getStart(e);return ll(C,(x||y).getEnd())}function o(y,x){return a(y,yT(x,x.parent,e))}function l(y,x){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?m(y):m(x)}function u(y,x,k){if(y){const C=y.indexOf(x);if(C>=0){let N=C,D=C+1;for(;N>0&&k(y[N-1]);)N--;for(;D0)return m(Ne.declarations[0])}else return m(G.initializer)}function j(G){if(G.initializer)return Y(G);if(G.condition)return a(G.condition);if(G.incrementor)return a(G.incrementor)}function ee(G){const Ne=mn(G.elements,De=>De.kind!==232?De:void 0);return Ne?m(Ne):G.parent.kind===208?a(G.parent):x(G.parent)}function R(G){E.assert(G.kind!==207&&G.kind!==206);const Ne=G.kind===209?G.elements:G.properties,De=mn(Ne,Xe=>Xe.kind!==232?Xe:void 0);return De?m(De):a(G.parent.kind===226?G.parent:G)}function Z(G){switch(G.parent.kind){case 266:const Ne=G.parent;return l(rl(G.pos,e,G.parent),Ne.members.length?Ne.members[0]:Ne.getLastToken(e));case 263:const De=G.parent;return l(rl(G.pos,e,G.parent),De.members.length?De.members[0]:De.getLastToken(e));case 269:return l(G.parent.parent,G.parent.clauses[0])}return m(G.parent)}function oe(G){switch(G.parent.kind){case 268:if(t0(G.parent.parent)!==1)return;case 266:case 263:return a(G);case 241:if(e2(G.parent))return a(G);case 299:return m(Bo(G.parent.statements));case 269:const Ne=G.parent,De=Bo(Ne.clauses);return De?m(Bo(De.statements)):void 0;case 206:const Xe=G.parent;return m(Bo(Xe.elements)||Xe);default:if(lh(G.parent)){const ve=G.parent;return a(Bo(ve.properties)||ve)}return m(G.parent)}}function _e(G){switch(G.parent.kind){case 207:const Ne=G.parent;return a(Bo(Ne.elements)||Ne);default:if(lh(G.parent)){const De=G.parent;return a(Bo(De.elements)||De)}return m(G.parent)}}function X(G){return G.parent.kind===246||G.parent.kind===213||G.parent.kind===214?f(G):G.parent.kind===217?g(G):m(G.parent)}function H(G){switch(G.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return f(G);default:return m(G.parent)}}function Q(G){return ks(G.parent)||G.parent.kind===303||G.parent.kind===169?f(G):m(G.parent)}function re(G){return G.parent.kind===216?g(G):m(G.parent)}function ue(G){return G.parent.kind===246?o(G,G.parent.expression):m(G.parent)}function fe(G){return G.parent.kind===250?g(G):m(G.parent)}}}var rje=Bt({"src/services/breakpoints.ts"(){Wr()}}),BK={};C_(BK,{spanInSourceFileAtLocation:()=>nje});var ije=Bt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){rje()}});function sje(e){return(fo(e)||Fl(e))&&A_(e)}function cE(e){return(fo(e)||Po(e)||Fl(e))&&Mi(e.parent)&&e===e.parent.initializer&&we(e.parent.name)&&!!(U0(e.parent)&2)}function v2e(e){return Ri(e)||Nc(e)||tl(e)||fo(e)||Qc(e)||Fl(e)||ec(e)||Ec(e)||ig(e)||gf(e)||Fu(e)}function jS(e){return Ri(e)||Nc(e)&&we(e.name)||tl(e)||Qc(e)||ec(e)||Ec(e)||ig(e)||gf(e)||Fu(e)||sje(e)||cE(e)}function b2e(e){return Ri(e)?e:A_(e)?e.name:cE(e)?e.parent.name:E.checkDefined(e.modifiers&&Fr(e.modifiers,T2e))}function T2e(e){return e.kind===90}function x2e(e,t){const r=b2e(t);return r&&e.getSymbolAtLocation(r)}function aje(e,t){if(Ri(t))return{text:t.fileName,pos:0,end:0};if((tl(t)||Qc(t))&&!A_(t)){const a=t.modifiers&&Fr(t.modifiers,T2e);if(a)return{text:"default",pos:a.getStart(),end:a.getEnd()}}if(ec(t)){const a=t.getSourceFile(),o=ua(a.text,Ld(t).pos),l=o+6,u=e.getTypeChecker(),f=u.getSymbolAtLocation(t.parent);return{text:`${f?`${u.symbolToString(f,t.parent)} `:""}static {}`,pos:o,end:l}}const r=cE(t)?t.parent.name:E.checkDefined(os(t),"Expected call hierarchy item to have a name");let i=we(r)?lr(r):If(r)?r.text:Ga(r)&&If(r.expression)?r.expression.text:void 0;if(i===void 0){const a=e.getTypeChecker(),o=a.getSymbolAtLocation(r);o&&(i=a.symbolToString(o,t))}if(i===void 0){const a=i5();i=YC(o=>a.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function oje(e){var t,r;if(cE(e))return jd(e.parent.parent.parent.parent)&&we(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(t=GU(e.parent))==null?void 0:t.getText():(r=os(e.parent))==null?void 0:r.getText();case 262:case 263:case 267:if(jd(e.parent)&&we(e.parent.parent.name))return e.parent.parent.name.getText()}}function S2e(e,t){if(t.body)return t;if(wc(t))return eg(t.parent);if(tl(t)||Ec(t)){const r=x2e(e,t);return r&&r.valueDeclaration&&Eo(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function k2e(e,t){const r=x2e(e,t);let i;if(r&&r.declarations){const a=F7(r.declarations),o=an(r.declarations,f=>({file:f.getSourceFile().fileName,pos:f.pos}));a.sort((f,g)=>w_(o[f].file,o[g].file)||o[f].pos-o[g].pos);const l=an(a,f=>r.declarations[f]);let u;for(const f of l)jS(f)&&((!u||u.parent!==f.parent||u.end!==f.pos)&&(i=gn(i,f)),u=f)}return i}function KR(e,t){var r,i,a;return ec(t)?t:Eo(t)?(i=(r=S2e(e,t))!=null?r:k2e(e,t))!=null?i:t:(a=k2e(e,t))!=null?a:t}function C2e(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(jS(t))return KR(r,t);if(v2e(t)){const a=On(t,jS);return a&&KR(r,a)}if(Gg(t)){if(jS(t.parent))return KR(r,t.parent);if(v2e(t.parent)){const a=On(t.parent,jS);return a&&KR(r,a)}return Mi(t.parent)&&t.parent.initializer&&cE(t.parent.initializer)?t.parent.initializer:void 0}if(wc(t))return jS(t.parent)?t.parent:void 0;if(t.kind===126&&ec(t.parent)){t=t.parent;continue}if(Mi(t)&&t.initializer&&cE(t.initializer))return t.initializer;if(!i){let a=r.getSymbolAtLocation(t);if(a&&(a.flags&2097152&&(a=r.getAliasedSymbol(a)),a.valueDeclaration)){i=!0,t=a.valueDeclaration;continue}}return}}function jK(e,t){const r=t.getSourceFile(),i=aje(e,t),a=oje(t),o=w2(t),l=j8(t),u=ll(ua(r.text,t.getFullStart(),!1,!0),t.getEnd()),f=ll(i.pos,i.end);return{file:r.fileName,kind:o,kindModifiers:l,name:i.text,containerName:a,span:u,selectionSpan:f}}function cje(e){return e!==void 0}function lje(e){if(e.kind===Oo.EntryKind.Node){const{node:t}=e;if(oY(t,!0,!0)||Ahe(t,!0,!0)||Nhe(t,!0,!0)||Phe(t,!0,!0)||S4(t)||uY(t)){const r=t.getSourceFile();return{declaration:On(t,jS)||r,range:DY(t,r)}}}}function E2e(e){return Ba(e.declaration)}function _je(e,t){return{from:e,fromSpans:t}}function uje(e,t){return _je(jK(e,t[0].declaration),an(t,r=>b1(r.range)))}function fje(e,t,r){if(Ri(t)||Nc(t)||ec(t))return[];const i=b2e(t),a=Vr(Oo.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Oo.FindReferencesUse.References},lje),cje);return a?wC(a,E2e,o=>uje(e,o)):[]}function pje(e,t){function r(a){const o=Qb(a)?a.tag:V_(a)?a.tagName:Mo(a)||ec(a)?a:a.expression,l=C2e(e,o);if(l){const u=DY(o,a.getSourceFile());if(Ds(l))for(const f of l)t.push({declaration:f,range:u});else t.push({declaration:l,range:u})}}function i(a){if(!!a&&!(a.flags&33554432)){if(jS(a)){if(ei(a))for(const o of a.members)o.name&&Ga(o.name)&&i(o.name.expression);return}switch(a.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(a);return;case 216:case 234:i(a.expression);return;case 260:case 169:i(a.name),i(a.initializer);return;case 213:r(a),i(a.expression),mn(a.arguments,i);return;case 214:r(a),i(a.expression),mn(a.arguments,i);return;case 215:r(a),i(a.tag),i(a.template);return;case 286:case 285:r(a),i(a.tagName),i(a.attributes);return;case 170:r(a),i(a.expression);return;case 211:case 212:r(a),ys(a,i);break;case 238:i(a.expression);return}Ym(a)||ys(a,i)}}return i}function dje(e,t){mn(e.statements,t)}function mje(e,t){!Mr(e,2)&&e.body&&jd(e.body)&&mn(e.body.statements,t)}function gje(e,t,r){const i=S2e(e,t);i&&(mn(i.parameters,r),r(i.body))}function hje(e,t){t(e.body)}function yje(e,t){mn(e.modifiers,t);const r=r2(e);r&&t(r.expression);for(const i of e.members)Ap(i)&&mn(i.modifiers,t),Is(i)?t(i.initializer):wc(i)&&i.body?(mn(i.parameters,t),t(i.body)):ec(i)&&t(i)}function vje(e,t){const r=[],i=pje(e,r);switch(t.kind){case 312:dje(t,i);break;case 267:mje(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:gje(e.getTypeChecker(),t,i);break;case 263:case 231:yje(t,i);break;case 175:hje(t,i);break;default:E.assertNever(t)}return r}function bje(e,t){return{to:e,fromSpans:t}}function Tje(e,t){return bje(jK(e,t[0].declaration),an(t,r=>b1(r.range)))}function xje(e,t){return t.flags&33554432||ig(t)?[]:wC(vje(e,t),E2e,r=>Tje(e,r))}var Sje=Bt({"src/services/callHierarchy.ts"(){Wr()}}),JS={};C_(JS,{createCallHierarchyItem:()=>jK,getIncomingCalls:()=>fje,getOutgoingCalls:()=>xje,resolveCallHierarchyDeclaration:()=>C2e});var kje=Bt({"src/services/_namespaces/ts.CallHierarchy.ts"(){Sje()}}),w2e={};C_(w2e,{TokenEncodingConsts:()=>SK,TokenModifier:()=>CK,TokenType:()=>kK,getEncodedSemanticClassifications:()=>xK,getSemanticClassifications:()=>Hve});var Cje=Bt({"src/services/_namespaces/ts.classifier.v2020.ts"(){Xve()}}),D2e={};C_(D2e,{v2020:()=>w2e});var Eje=Bt({"src/services/_namespaces/ts.classifier.ts"(){Cje()}});function Ip(e,t,r){return zK(e,ST(r),t,void 0,void 0)}function Rs(e,t,r,i,a,o){return zK(e,ST(r),t,i,ST(a),o)}function JK(e,t,r,i,a,o){return zK(e,ST(r),t,i,a&&ST(a),o)}function zK(e,t,r,i,a,o){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:a,commands:o?[o]:void 0}}function Xs(e){for(const t of e.errorCodes)mN=void 0,eB.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)E.assert(!tB.has(t)),tB.set(t,e)}function wje(){return mN!=null?mN:mN=ia(eB.keys())}function Dje(e,t){const{errorCodes:r}=e;let i=0;for(const o of t)if(gs(r,o.code)&&i++,i>1)break;const a=i<2;return({fixId:o,fixAllDescription:l,...u})=>a?u:{...u,fixId:o,fixAllDescription:l}}function Aje(e){const t=N2e(e),r=eB.get(String(e.errorCode));return Na(r,i=>an(i.getCodeActions(e),Dje(i,t)))}function Nje(e){return tB.get(Ms(e.fixId,$s)).getAllCodeActions(e)}function zS(e,t){return{changes:e,commands:t}}function A2e(e,t){return{fileName:e,textChanges:t}}function Ya(e,t,r){const i=[],a=er.ChangeTracker.with(e,o=>VS(e,t,l=>r(o,l,i)));return zS(a,i.length===0?void 0:i)}function VS(e,t,r){for(const i of N2e(e))gs(t,i.code)&&r(i)}function N2e({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...CZ(t,e,r)]}var eB,tB,mN,Pje=Bt({"src/services/codeFixProvider.ts"(){Wr(),eB=$f(),tB=new Map}});function P2e(e,t,r){const i=sA(r)?I.createAsExpression(r.expression,I.createKeywordTypeNode(159)):I.createTypeAssertion(I.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function I2e(e,t){if(!Zn(e))return On(Vi(e,t),r=>sA(r)||Afe(r))}var nB,VK,Ije=Bt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){Wr(),Ks(),nB="addConvertToUnknownForNonOverlappingTypes",VK=[p.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],Xs({errorCodes:VK,getCodeActions:function(t){const r=I2e(t.sourceFile,t.span.start);if(r===void 0)return;const i=er.ChangeTracker.with(t,a=>P2e(a,t.sourceFile,r));return[Rs(nB,i,p.Add_unknown_conversion_for_non_overlapping_types,nB,p.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[nB],getAllCodeActions:e=>Ya(e,VK,(t,r)=>{const i=I2e(r.file,r.start);i&&P2e(t,r.file,i)})})}}),Oje=Bt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){Wr(),Ks(),Xs({errorCodes:[p.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,p.await_using_statements_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,p.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(t){const{sourceFile:r}=t,i=er.ChangeTracker.with(t,a=>{const o=I.createExportDeclaration(void 0,!1,I.createNamedExports([]),void 0);a.insertNodeAtEndOfScope(r,r,o)});return[Ip("addEmptyExportDeclaration",i,p.Add_export_to_make_this_file_into_a_module)]}})}});function O2e(e,t,r,i){const a=r(o=>Fje(o,e.sourceFile,t,i));return Rs(rB,a,p.Add_async_modifier_to_containing_function,rB,p.Add_all_missing_async_modifiers)}function Fje(e,t,r,i){if(i&&i.has(Ba(r)))return;i==null||i.add(Ba(r));const a=I.updateModifiers(Io(r,!0),I.createNodeArray(I.createModifiersFromModifierFlags(o1(r)|512)));e.replaceNode(t,r,a)}function F2e(e,t){if(!t)return;const r=Vi(e,t.start);return On(r,a=>a.getStart(e)Zl(t)?"quit":(Po(a)||Ec(a)||fo(a)||tl(a))&&E4(t,au(a,e)))}function Lje(e,t){return({start:r,length:i,relatedInformation:a,code:o})=>R0(r)&&R0(i)&&E4({start:r,length:i},e)&&o===t&&!!a&&dt(a,l=>l.code===p.Did_you_mean_to_mark_this_function_as_async.code)}var rB,UK,Mje=Bt({"src/services/codefixes/addMissingAsync.ts"(){Wr(),Ks(),rB="addMissingAsync",UK=[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_comparable_to_type_1.code],Xs({fixIds:[rB],errorCodes:UK,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:a,program:o,span:l}=t,u=Fr(o.getTypeChecker().getDiagnostics(r,a),Lje(l,i)),f=u&&u.relatedInformation&&Fr(u.relatedInformation,y=>y.code===p.Did_you_mean_to_mark_this_function_as_async.code),g=F2e(r,f);return g?[O2e(t,g,y=>er.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Ya(e,UK,(i,a)=>{const o=a.relatedInformation&&Fr(a.relatedInformation,f=>f.code===p.Did_you_mean_to_mark_this_function_as_async.code),l=F2e(t,o);return l?O2e(e,l,f=>(f(i),[]),r):void 0})}})}});function L2e(e,t,r,i,a){const o=KY(e,r);return o&&Rje(e,t,r,i,a)&&B2e(o)?o:void 0}function M2e(e,t,r,i,a,o){const{sourceFile:l,program:u,cancellationToken:f}=e,g=Bje(t,l,f,u,i);if(g){const m=a(y=>{mn(g.initializers,({expression:x})=>WK(y,r,l,i,x,o)),o&&g.needsSecondPassForFixAll&&WK(y,r,l,i,t,o)});return Ip("addMissingAwaitToInitializer",m,g.initializers.length===1?[p.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:p.Add_await_to_initializers)}}function R2e(e,t,r,i,a,o){const l=a(u=>WK(u,r,e.sourceFile,i,t,o));return Rs(iB,l,p.Add_await,iB,p.Fix_all_expressions_possibly_missing_await)}function Rje(e,t,r,i,a){const l=a.getTypeChecker().getDiagnostics(e,i);return dt(l,({start:u,length:f,relatedInformation:g,code:m})=>R0(u)&&R0(f)&&E4({start:u,length:f},r)&&m===t&&!!g&&dt(g,y=>y.code===p.Did_you_forget_to_use_await.code))}function Bje(e,t,r,i,a){const o=jje(e,a);if(!o)return;let l=o.isCompleteFix,u;for(const f of o.identifiers){const g=a.getSymbolAtLocation(f);if(!g)continue;const m=Hr(g.valueDeclaration,Mi),y=m&&Hr(m.name,we),x=vy(m,243);if(!m||!x||m.type||!m.initializer||x.getSourceFile()!==t||Mr(x,1)||!y||!B2e(m.initializer)){l=!1;continue}const k=i.getSemanticDiagnostics(t,r);if(Oo.Core.eachSymbolReferenceInFile(y,a,t,N=>f!==N&&!Jje(N,k,t,a))){l=!1;continue}(u||(u=[])).push({expression:m.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function jje(e,t){if(kr(e.parent)&&we(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(we(e))return{identifiers:[e],isCompleteFix:!0};if(rr(e)){let r,i=!0;for(const a of[e.left,e.right]){const o=t.getTypeAtLocation(a);if(t.getPromisedTypeOfPromise(o)){if(!we(a)){i=!1;continue}(r||(r=[])).push(a)}}return r&&{identifiers:r,isCompleteFix:i}}}function Jje(e,t,r,i){const a=kr(e.parent)?e.parent.name:rr(e.parent)?e.parent:e,o=Fr(t,l=>l.start===a.getStart(r)&&l.start+l.length===a.getEnd());return o&&gs(sB,o.code)||i.getTypeAtLocation(a).flags&1}function B2e(e){return e.kind&65536||!!On(e,t=>t.parent&&Po(t.parent)&&t.parent.body===t||hs(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function WK(e,t,r,i,a,o){if(aA(a.parent)&&!a.parent.awaitModifier){const l=i.getTypeAtLocation(a),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const f=a.parent;e.replaceNode(r,f,I.updateForOfStatement(f,I.createToken(135),f.initializer,f.expression,f.statement));return}}if(rr(a))for(const l of[a.left,a.right]){if(o&&we(l)){const g=i.getSymbolAtLocation(l);if(g&&o.has(ya(g)))continue}const u=i.getTypeAtLocation(l),f=i.getPromisedTypeOfPromise(u)?I.createAwaitExpression(l):l;e.replaceNode(r,l,f)}else if(t===qK&&kr(a.parent)){if(o&&we(a.parent.expression)){const l=i.getSymbolAtLocation(a.parent.expression);if(l&&o.has(ya(l)))return}e.replaceNode(r,a.parent.expression,I.createParenthesizedExpression(I.createAwaitExpression(a.parent.expression))),j2e(e,a.parent.expression,r)}else if(gs(HK,t)&&Xm(a.parent)){if(o&&we(a)){const l=i.getSymbolAtLocation(a);if(l&&o.has(ya(l)))return}e.replaceNode(r,a,I.createParenthesizedExpression(I.createAwaitExpression(a))),j2e(e,a,r)}else{if(o&&Mi(a.parent)&&we(a.parent.name)){const l=i.getSymbolAtLocation(a.parent.name);if(l&&!Lv(o,ya(l)))return}e.replaceNode(r,a,I.createAwaitExpression(a))}}function j2e(e,t,r){const i=rl(t.pos,r);i&&UM(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var iB,qK,HK,sB,zje=Bt({"src/services/codefixes/addMissingAwait.ts"(){Wr(),Ks(),iB="addMissingAwait",qK=p.Property_0_does_not_exist_on_type_1.code,HK=[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],sB=[p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.Operator_0_cannot_be_applied_to_type_1.code,p.Operator_0_cannot_be_applied_to_types_1_and_2.code,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,p.This_condition_will_always_return_true_since_this_0_is_always_defined.code,p.Type_0_is_not_an_array_type.code,p.Type_0_is_not_an_array_type_or_a_string_type.code,p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,qK,...HK],Xs({fixIds:[iB],errorCodes:sB,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:a,cancellationToken:o,program:l}=t,u=L2e(r,i,a,o,l);if(!u)return;const f=t.program.getTypeChecker(),g=m=>er.ChangeTracker.with(t,m);return M7([M2e(t,u,i,f,g),R2e(t,u,i,f,g)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,a=e.program.getTypeChecker(),o=new Set;return Ya(e,sB,(l,u)=>{const f=L2e(t,u.code,u,i,r);if(!f)return;const g=m=>(m(l),[]);return M2e(e,f,u.code,a,g,o)||R2e(e,f,u.code,a,g,o)})}})}});function J2e(e,t,r,i,a){const o=Vi(t,r),l=On(o,g=>i6(g.parent)?g.parent.initializer===g:Vje(g)?!1:"quit");if(l)return aB(e,l,t,a);const u=o.parent;if(rr(u)&&u.operatorToken.kind===64&&ql(u.parent))return aB(e,o,t,a);if(u_(u)){const g=i.getTypeChecker();return $i(u.elements,m=>Uje(m,g))?aB(e,u,t,a):void 0}const f=On(o,g=>ql(g.parent)?!0:Wje(g)?!1:"quit");if(f){const g=i.getTypeChecker();return z2e(f,g)?aB(e,f,t,a):void 0}}function aB(e,t,r,i){(!i||Lv(i,t))&&e.insertModifierBefore(r,87,t)}function Vje(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function Uje(e,t){const r=we(e)?e:Kl(e,!0)&&we(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function Wje(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function z2e(e,t){return rr(e)?e.operatorToken.kind===28?$i([e.left,e.right],r=>z2e(r,t)):e.operatorToken.kind===64&&we(e.left)&&!t.getSymbolAtLocation(e.left):!1}var oB,GK,qje=Bt({"src/services/codefixes/addMissingConst.ts"(){Wr(),Ks(),oB="addMissingConst",GK=[p.Cannot_find_name_0.code,p.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Xs({errorCodes:GK,getCodeActions:function(t){const r=er.ChangeTracker.with(t,i=>J2e(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[Rs(oB,r,p.Add_const_to_unresolved_variable,oB,p.Add_const_to_all_unresolved_variables)]},fixIds:[oB],getAllCodeActions:e=>{const t=new Set;return Ya(e,GK,(r,i)=>J2e(r,i.file,i.start,e.program,t))}})}});function V2e(e,t,r,i){const a=Vi(t,r);if(!we(a))return;const o=a.parent;o.kind===172&&(!i||Lv(i,o))&&e.insertModifierBefore(t,138,o)}var cB,$K,Hje=Bt({"src/services/codefixes/addMissingDeclareProperty.ts"(){Wr(),Ks(),cB="addMissingDeclareProperty",$K=[p.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],Xs({errorCodes:$K,getCodeActions:function(t){const r=er.ChangeTracker.with(t,i=>V2e(i,t.sourceFile,t.span.start));if(r.length>0)return[Rs(cB,r,p.Prefix_with_declare,cB,p.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[cB],getAllCodeActions:e=>{const t=new Set;return Ya(e,$K,(r,i)=>V2e(r,i.file,i.start,t))}})}});function U2e(e,t,r){const i=Vi(t,r),a=On(i,Wl);E.assert(!!a,"Expected position to be owned by a decorator.");const o=I.createCallExpression(a.expression,void 0,void 0);e.replaceNode(t,a.expression,o)}var lB,XK,Gje=Bt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){Wr(),Ks(),lB="addMissingInvocationForDecorator",XK=[p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Xs({errorCodes:XK,getCodeActions:function(t){const r=er.ChangeTracker.with(t,i=>U2e(i,t.sourceFile,t.span.start));return[Rs(lB,r,p.Call_decorator_expression,lB,p.Add_to_all_uncalled_decorators)]},fixIds:[lB],getAllCodeActions:e=>Ya(e,XK,(t,r)=>U2e(t,r.file,r.start))})}});function W2e(e,t,r){const i=Vi(t,r),a=i.parent;if(!ns(a))return E.fail("Tried to add a parameter name to a non-parameter: "+E.formatSyntaxKind(i.kind));const o=a.parent.parameters.indexOf(a);E.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),E.assert(o>-1,"Parameter not found in parent parameter list.");const l=I.createTypeReferenceNode(a.name,void 0),u=I.createParameterDeclaration(a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?I.createArrayTypeNode(l):l,a.initializer);e.replaceNode(t,a,u)}var _B,QK,$je=Bt({"src/services/codefixes/addNameToNamelessParameter.ts"(){Wr(),Ks(),_B="addNameToNamelessParameter",QK=[p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Xs({errorCodes:QK,getCodeActions:function(t){const r=er.ChangeTracker.with(t,i=>W2e(i,t.sourceFile,t.span.start));return[Rs(_B,r,p.Add_parameter_name,_B,p.Add_names_to_all_parameters_without_names)]},fixIds:[_B],getAllCodeActions:e=>Ya(e,QK,(t,r)=>W2e(t,r.file,r.start))})}});function Xje(e,t,r){var i,a;const o=q2e(KY(e,t),r);if(!o)return Ve;const{source:l,target:u}=o,f=Qje(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(a=(i=f.symbol)==null?void 0:i.declarations)!=null&&a.some(g=>Bn(g).fileName.match(/\.d\.ts$/))?Ve:r.getExactOptionalProperties(f)}function Qje(e,t,r){return kr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function q2e(e,t){var r;if(e){if(rr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Mi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(js(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!Nx(i.valueDeclaration.kind)||!nt(e))return;const a=e.parent.arguments.indexOf(e);if(a===-1)return;const o=i.valueDeclaration.parameters[a].name;if(we(o))return{source:e,target:o}}else if(Dc(e.parent)&&we(e.parent.name)||nf(e.parent)){const i=q2e(e.parent.parent,t);if(!i)return;const a=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),o=(r=a==null?void 0:a.declarations)==null?void 0:r[0];return o?{source:Dc(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function Yje(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(mf(i)||Is(i))&&i.type){const a=I.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],I.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,a)}}}var YK,H2e,Zje=Bt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){Wr(),Ks(),YK="addOptionalPropertyUndefined",H2e=[p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.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],Xs({errorCodes:H2e,getCodeActions(e){const t=e.program.getTypeChecker(),r=Xje(e.sourceFile,e.span,t);if(!r.length)return;const i=er.ChangeTracker.with(e,a=>Yje(a,r));return[Ip(YK,i,p.Add_undefined_to_optional_property_type)]},fixIds:[YK]})}});function G2e(e,t){const r=Vi(e,t);return Hr(ns(r.parent)?r.parent.parent:r.parent,$2e)}function $2e(e){return Kje(e)&&X2e(e)}function X2e(e){return Eo(e)?e.parameters.some(X2e)||!e.type&&!!hw(e):!e.type&&!!py(e)}function Q2e(e,t,r){if(Eo(r)&&(hw(r)||r.parameters.some(i=>!!py(i)))){if(!r.typeParameters){const a=nO(r);a.length&&e.insertTypeParameters(t,r,a)}const i=Po(r)&&!$a(r,21,t);i&&e.insertNodeBefore(t,wa(r.parameters),I.createToken(21));for(const a of r.parameters)if(!a.type){const o=py(a);o&&e.tryInsertTypeAnnotation(t,a,Ue(o,Jy,Di))}if(i&&e.insertNodeAfter(t,ka(r.parameters),I.createToken(22)),!r.type){const a=hw(r);a&&e.tryInsertTypeAnnotation(t,r,Ue(a,Jy,Di))}}else{const i=E.checkDefined(py(r),"A JSDocType for this declaration should exist");E.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,Ue(i,Jy,Di))}}function Kje(e){return Eo(e)||e.kind===260||e.kind===171||e.kind===172}function Jy(e){switch(e.kind){case 319:case 320:return I.createTypeReferenceNode("any",Ve);case 323:return tJe(e);case 322:return Jy(e.type);case 321:return nJe(e);case 325:return rJe(e);case 324:return iJe(e);case 183:return aJe(e);case 329:return eJe(e);default:const t=pn(e,Jy,n0);return Xn(t,1),t}}function eJe(e){const t=I.createTypeLiteralNode(an(e.jsDocPropertyTags,r=>I.createPropertySignature(void 0,we(r.name)?r.name:r.name.right,MD(r)?I.createToken(58):void 0,r.typeExpression&&Ue(r.typeExpression.type,Jy,Di)||I.createKeywordTypeNode(133))));return Xn(t,1),t}function tJe(e){return I.createUnionTypeNode([Ue(e.type,Jy,Di),I.createTypeReferenceNode("undefined",Ve)])}function nJe(e){return I.createUnionTypeNode([Ue(e.type,Jy,Di),I.createTypeReferenceNode("null",Ve)])}function rJe(e){return I.createArrayTypeNode(Ue(e.type,Jy,Di))}function iJe(e){var t;return I.createFunctionTypeNode(Ve,e.parameters.map(sJe),(t=e.type)!=null?t:I.createKeywordTypeNode(133))}function sJe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),a=r?I.createToken(26):e.dotDotDotToken;return I.createParameterDeclaration(e.modifiers,a,i,e.questionToken,Ue(e.type,Jy,Di),e.initializer)}function aJe(e){let t=e.typeName,r=e.typeArguments;if(we(e.typeName)){if(J9(e))return oJe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=I.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=I.createNodeArray([I.createTypeReferenceNode("any",Ve)]):r=An(e.typeArguments,Jy,Di)}return I.createTypeReferenceNode(t,r)}function oJe(e){const t=I.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,I.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=I.createTypeLiteralNode([I.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Xn(r,1),r}var uB,ZK,cJe=Bt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){Wr(),Ks(),uB="annotateWithTypeFromJSDoc",ZK=[p.JSDoc_types_may_be_moved_to_TypeScript_types.code],Xs({errorCodes:ZK,getCodeActions(e){const t=G2e(e.sourceFile,e.span.start);if(!t)return;const r=er.ChangeTracker.with(e,i=>Q2e(i,e.sourceFile,t));return[Rs(uB,r,p.Annotate_with_type_from_JSDoc,uB,p.Annotate_everything_with_types_from_JSDoc)]},fixIds:[uB],getAllCodeActions:e=>Ya(e,ZK,(t,r)=>{const i=G2e(r.file,r.start);i&&Q2e(t,r.file,i)})})}});function Y2e(e,t,r,i,a,o){const l=i.getSymbolAtLocation(Vi(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(tl(u)||fo(u))e.replaceNode(t,u,m(u));else if(Mi(u)){const y=g(u);if(!y)return;const x=u.parent.parent;dl(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,x,y)):e.replaceNode(t,x,y)}function f(y){const x=[];return y.exports&&y.exports.forEach(N=>{if(N.name==="prototype"&&N.declarations){const D=N.declarations[0];if(N.declarations.length===1&&kr(D)&&rr(D.parent)&&D.parent.operatorToken.kind===64&&ha(D.parent.right)){const M=D.parent.right;C(M.symbol,void 0,x)}}else C(N,[I.createToken(126)],x)}),y.members&&y.members.forEach((N,D)=>{var M,V,U,Y;if(D==="constructor"&&N.valueDeclaration){const j=(Y=(U=(V=(M=y.exports)==null?void 0:M.get("prototype"))==null?void 0:V.declarations)==null?void 0:U[0])==null?void 0:Y.parent;j&&rr(j)&&ha(j.right)&&dt(j.right.properties,pB)||e.delete(t,N.valueDeclaration.parent);return}C(N,void 0,x)}),x;function k(N,D){return Mo(N)?kr(N)&&pB(N)?!0:ks(D):$i(N.properties,M=>!!(Ec(M)||KI(M)||Dc(M)&&fo(M.initializer)&&!!M.name||pB(M)))}function C(N,D,M){if(!(N.flags&8192)&&!(N.flags&4096))return;const V=N.valueDeclaration,U=V.parent,Y=U.right;if(!k(V,Y)||dt(M,oe=>{const _e=os(oe);return!!(_e&&we(_e)&&lr(_e)===xc(N))}))return;const j=U.parent&&U.parent.kind===244?U.parent:U;if(e.delete(t,j),!Y){M.push(I.createPropertyDeclaration(D,N.name,void 0,void 0,void 0));return}if(Mo(V)&&(fo(Y)||Po(Y))){const oe=Mf(t,a),_e=lJe(V,o,oe);_e&&ee(M,Y,_e);return}else if(ha(Y)){mn(Y.properties,oe=>{(Ec(oe)||KI(oe))&&M.push(oe),Dc(oe)&&fo(oe.initializer)&&ee(M,oe.initializer,oe.name),pB(oe)});return}else{if(P_(t)||!kr(V))return;const oe=I.createPropertyDeclaration(D,V.name,void 0,void 0,Y);D4(U.parent,oe,t),M.push(oe);return}function ee(oe,_e,X){return fo(_e)?R(oe,_e,X):Z(oe,_e,X)}function R(oe,_e,X){const H=Ki(D,fB(_e,134)),Q=I.createMethodDeclaration(H,void 0,X,void 0,void 0,_e.parameters,void 0,_e.body);D4(U,Q,t),oe.push(Q)}function Z(oe,_e,X){const H=_e.body;let Q;H.kind===241?Q=H:Q=I.createBlock([I.createReturnStatement(H)]);const re=Ki(D,fB(_e,134)),ue=I.createMethodDeclaration(re,void 0,X,void 0,void 0,_e.parameters,void 0,Q);D4(U,ue,t),oe.push(ue)}}}function g(y){const x=y.initializer;if(!x||!fo(x)||!we(y.name))return;const k=f(y.symbol);x.body&&k.unshift(I.createConstructorDeclaration(void 0,x.parameters,x.body));const C=fB(y.parent.parent,95);return I.createClassDeclaration(C,y.name,void 0,void 0,k)}function m(y){const x=f(l);y.body&&x.unshift(I.createConstructorDeclaration(void 0,y.parameters,y.body));const k=fB(y,95);return I.createClassDeclaration(k,y.name,void 0,void 0,x)}}function fB(e,t){return Ap(e)?Vr(e.modifiers,r=>r.kind===t):void 0}function pB(e){return e.name?!!(we(e.name)&&e.name.text==="constructor"):!1}function lJe(e,t,r){if(kr(e))return e.name;const i=e.argumentExpression;if(Ou(i))return i;if(Qa(i))return pf(i.text,Oa(t))?I.createIdentifier(i.text):rS(i)?I.createStringLiteral(i.text,r===0):i}var dB,KK,_Je=Bt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){Wr(),Ks(),dB="convertFunctionToEs6Class",KK=[p.This_constructor_function_may_be_converted_to_a_class_declaration.code],Xs({errorCodes:KK,getCodeActions(e){const t=er.ChangeTracker.with(e,r=>Y2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[Rs(dB,t,p.Convert_function_to_an_ES2015_class,dB,p.Convert_all_constructor_functions_to_classes)]},fixIds:[dB],getAllCodeActions:e=>Ya(e,KK,(t,r)=>Y2e(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function Z2e(e,t,r,i){const a=Vi(t,r);let o;if(we(a)&&Mi(a.parent)&&a.parent.initializer&&Eo(a.parent.initializer)?o=a.parent.initializer:o=Hr(df(Vi(t,r)),DZ),!o)return;const l=new Map,u=Zn(o),f=fJe(o,i),g=pJe(o,i,l);if(!EZ(g,i))return;const m=g.body&&hs(g.body)?uJe(g.body,i):Ve,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:f,isInJSFile:u};if(!m.length)return;const x=ua(t.text,Ld(o).pos);e.insertModifierAt(t,x,134,{suffix:" "});for(const k of m)if(ys(k,function C(N){if(js(N)){const D=US(N,N,y,!1);if(CT())return!0;e.replaceNodeWithNodes(t,k,D)}else if(!ks(N)&&(ys(N,C),CT()))return!0}),CT())return}function uJe(e,t){const r=[];return Kv(e,i=>{_R(i,t)&&r.push(i)}),r}function fJe(e,t){if(!e.body)return new Set;const r=new Set;return ys(e.body,function i(a){lE(a,t,"then")?(r.add(Ba(a)),mn(a.arguments,i)):lE(a,t,"catch")||lE(a,t,"finally")?(r.add(Ba(a)),ys(a,i)):ebe(a,t)?r.add(Ba(a)):ys(a,i)}),r}function lE(e,t,r){if(!js(e))return!1;const a=x5(e,r)&&t.getTypeAtLocation(e);return!!(a&&t.getPromisedTypeOfPromise(a))}function K2e(e,t){return(Br(e)&4)!==0&&e.target===t}function mB(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(K2e(i,r.getPromiseType())||K2e(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===j0(e.arguments,0))return j0(e.typeArguments,0);if(t===j0(e.arguments,1))return j0(e.typeArguments,1)}else return j0(e.typeArguments,0)}function ebe(e,t){return nt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function pJe(e,t,r){const i=new Map,a=$f();return ys(e,function o(l){if(!we(l)){ys(l,o);return}const u=t.getSymbolAtLocation(l);if(u){const f=t.getTypeAtLocation(l),g=abe(f,t),m=ya(u).toString();if(g&&!ns(l.parent)&&!Eo(l.parent)&&!r.has(m)){const y=wl(g.parameters),x=(y==null?void 0:y.valueDeclaration)&&ns(y.valueDeclaration)&&Hr(y.valueDeclaration.name,we)||I.createUniqueName("result",16),k=tbe(x,a);r.set(m,k),a.add(x.text,u)}else if(l.parent&&(ns(l.parent)||Mi(l.parent)||Fa(l.parent))){const y=l.text,x=a.get(y);if(x&&x.some(k=>k!==u)){const k=tbe(l,a);i.set(m,k.identifier),r.set(m,k),a.add(y,u)}else{const k=Io(l);r.set(m,P4(k)),a.add(y,u)}}}}),j5(e,!0,o=>{if(Fa(o)&&we(o.name)&&td(o.parent)){const l=t.getSymbolAtLocation(o.name),u=l&&i.get(String(ya(l)));if(u&&u.text!==(o.name||o.propertyName).getText())return I.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,u,o.initializer)}else if(we(o)){const l=t.getSymbolAtLocation(o),u=l&&i.get(String(ya(l)));if(u)return I.createIdentifier(u.text)}})}function tbe(e,t){const r=(t.get(e.text)||Ve).length,i=r===0?e:I.createIdentifier(e.text+"_"+r);return P4(i)}function CT(){return!hN}function C1(){return hN=!1,Ve}function US(e,t,r,i,a){if(lE(t,r.checker,"then"))return gJe(t,j0(t.arguments,0),j0(t.arguments,1),r,i,a);if(lE(t,r.checker,"catch"))return ibe(t,j0(t.arguments,0),r,i,a);if(lE(t,r.checker,"finally"))return mJe(t,j0(t.arguments,0),r,i,a);if(kr(t))return US(e,t.expression,r,i,a);const o=r.checker.getTypeAtLocation(t);return o&&r.checker.getPromisedTypeOfPromise(o)?(E.assertNode(Ko(t).parent,kr),hJe(e,t,r,i,a)):C1()}function gB({checker:e},t){if(t.kind===106)return!0;if(we(t)&&!jo(t)&&lr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function dJe(e){const t=I.createUniqueName(e.identifier.text,16);return P4(t)}function nbe(e,t,r){let i;return r&&!uE(e,t)&&(_E(r)?(i=r,t.synthNamesMap.forEach((a,o)=>{if(a.identifier.text===r.identifier.text){const l=dJe(r);t.synthNamesMap.set(o,l)}})):i=P4(I.createUniqueName("result",16),r.types),ree(i)),i}function rbe(e,t,r,i,a){const o=[];let l;if(i&&!uE(e,t)){l=Io(ree(i));const u=i.types,f=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(f,void 0,void 0),m=[I.createVariableDeclaration(l,void 0,g)],y=I.createVariableStatement(void 0,I.createVariableDeclarationList(m,1));o.push(y)}return o.push(r),a&&l&&bJe(a)&&o.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Io(_be(a)),void 0,void 0,l)],2))),o}function mJe(e,t,r,i,a){if(!t||gB(r,t))return US(e,e.expression.expression,r,i,a);const o=nbe(e,r,a),l=US(e,e.expression.expression,r,!0,o);if(CT())return C1();const u=tee(t,i,void 0,void 0,e,r);if(CT())return C1();const f=I.createBlock(l),g=I.createBlock(u),m=I.createTryStatement(f,void 0,g);return rbe(e,r,m,o,a)}function ibe(e,t,r,i,a){if(!t||gB(r,t))return US(e,e.expression.expression,r,i,a);const o=cbe(t,r),l=nbe(e,r,a),u=US(e,e.expression.expression,r,!0,l);if(CT())return C1();const f=tee(t,i,l,o,e,r);if(CT())return C1();const g=I.createBlock(u),m=I.createCatchClause(o&&Io(gN(o)),I.createBlock(f)),y=I.createTryStatement(g,m,void 0);return rbe(e,r,y,l,a)}function gJe(e,t,r,i,a,o){if(!t||gB(i,t))return ibe(e,r,i,a,o);if(r&&!gB(i,r))return C1();const l=cbe(t,i),u=US(e.expression.expression,e.expression.expression,i,!0,l);if(CT())return C1();const f=tee(t,a,o,l,e,i);return CT()?C1():Ki(u,f)}function hJe(e,t,r,i,a){if(uE(e,r)){let o=Io(t);return i&&(o=I.createAwaitExpression(o)),[I.createReturnStatement(o)]}return hB(a,I.createAwaitExpression(t),void 0)}function hB(e,t,r){return!e||lbe(e)?[I.createExpressionStatement(t)]:_E(e)&&e.hasBeenDeclared?[I.createExpressionStatement(I.createAssignment(Io(nee(e)),t))]:[I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Io(gN(e)),void 0,r,t)],2))]}function eee(e,t){if(t&&e){const r=I.createUniqueName("result",16);return[...hB(P4(r),e,t),I.createReturnStatement(r)]}return[I.createReturnStatement(e)]}function tee(e,t,r,i,a,o){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=I.createCallExpression(Io(e),void 0,_E(i)?[nee(i)]:[]);if(uE(a,o))return eee(u,mB(a,e,o.checker));const f=o.checker.getTypeAtLocation(e),g=o.checker.getSignaturesOfType(f,0);if(!g.length)return C1();const m=g[0].getReturnType(),y=hB(r,I.createAwaitExpression(u),mB(a,e,o.checker));return r&&r.types.push(o.checker.getAwaitedType(m)||m),y;case 218:case 219:{const x=e.body,k=(l=abe(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:l.getReturnType();if(hs(x)){let C=[],N=!1;for(const D of x.statements)if(nd(D))if(N=!0,_R(D,o.checker))C=C.concat(obe(o,D,t,r));else{const M=k&&D.expression?sbe(o.checker,k,D.expression):D.expression;C.push(...eee(M,mB(a,e,o.checker)))}else{if(t&&Kv(D,sy))return C1();C.push(D)}return uE(a,o)?C.map(D=>Io(D)):yJe(C,r,o,N)}else{const C=wZ(x,o.checker)?obe(o,I.createReturnStatement(x),t,r):Ve;if(C.length>0)return C;if(k){const N=sbe(o.checker,k,x);if(uE(a,o))return eee(N,mB(a,e,o.checker));{const D=hB(r,N,void 0);return r&&r.types.push(o.checker.getAwaitedType(k)||k),D}}else return C1()}}default:return C1()}return Ve}function sbe(e,t,r){const i=Io(r);return e.getPromisedTypeOfPromise(t)?I.createAwaitExpression(i):i}function abe(e,t){const r=t.getSignaturesOfType(e,0);return Bo(r)}function yJe(e,t,r,i){const a=[];for(const o of e)if(nd(o)){if(o.expression){const l=ebe(o.expression,r.checker)?I.createAwaitExpression(o.expression):o.expression;t===void 0?a.push(I.createExpressionStatement(l)):_E(t)&&t.hasBeenDeclared?a.push(I.createExpressionStatement(I.createAssignment(nee(t),l))):a.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(gN(t),void 0,void 0,l)],2)))}}else a.push(Io(o));return!i&&t!==void 0&&a.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(gN(t),void 0,void 0,I.createIdentifier("undefined"))],2))),a}function obe(e,t,r,i){let a=[];return ys(t,function o(l){if(js(l)){const u=US(l,l,e,r,i);if(a=a.concat(u),a.length>0)return}else ks(l)||ys(l,o)}),a}function cbe(e,t){const r=[];let i;if(Eo(e)){if(e.parameters.length>0){const f=e.parameters[0].name;i=a(f)}}else we(e)?i=o(e):kr(e)&&we(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function a(f){if(we(f))return o(f);const g=Na(f.elements,m=>pl(m)?[]:[a(m.name)]);return vJe(f,g)}function o(f){const g=u(f),m=l(g);return m&&t.synthNamesMap.get(ya(m).toString())||P4(f,r)}function l(f){var m;var g;return(m=(g=Hr(f,Nd))==null?void 0:g.symbol)!=null?m:t.checker.getSymbolAtLocation(f)}function u(f){return f.original?f.original:f}}function lbe(e){return e?_E(e)?!e.identifier.text:$i(e.elements,lbe):!0}function P4(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function vJe(e,t=Ve,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function nee(e){return e.hasBeenReferenced=!0,e.identifier}function gN(e){return _E(e)?ree(e):_be(e)}function _be(e){for(const t of e.elements)gN(t);return e.bindingPattern}function ree(e){return e.hasBeenDeclared=!0,e.identifier}function _E(e){return e.kind===0}function bJe(e){return e.kind===1}function uE(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Ba(e.original))}var yB,iee,hN,TJe=Bt({"src/services/codefixes/convertToAsyncFunction.ts"(){Wr(),Ks(),yB="convertToAsyncFunction",iee=[p.This_may_be_converted_to_an_async_function.code],hN=!0,Xs({errorCodes:iee,getCodeActions(e){hN=!0;const t=er.ChangeTracker.with(e,r=>Z2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return hN?[Rs(yB,t,p.Convert_to_async_function,yB,p.Convert_all_to_async_functions)]:[]},fixIds:[yB],getAllCodeActions:e=>Ya(e,iee,(t,r)=>Z2e(t,r.file,r.start,e.program.getTypeChecker()))})}});function xJe(e,t,r,i){for(const a of e.imports){const o=Ox(e,a.text,op(e,a));if(!o||o.resolvedFileName!==t.fileName)continue;const l=Kw(a);switch(l.kind){case 271:r.replaceNode(e,l,_h(l.name,void 0,a,i));break;case 213:du(l,!1)&&r.replaceNode(e,l,I.createPropertyAccessExpression(Io(l),"default"));break}}}function SJe(e,t,r,i,a){const o={original:MJe(e),additional:new Set},l=kJe(e,t,o);CJe(e,l,r);let u=!1,f;for(const g of Vr(e.statements,ic)){const m=fbe(e,g,r,t,o,i,a);m&&m9(m,f!=null?f:f=new Map)}for(const g of Vr(e.statements,m=>!ic(m))){const m=EJe(e,g,t,r,o,i,l,f,a);u=u||m}return f==null||f.forEach((g,m)=>{r.replaceNode(e,m,g)}),u}function kJe(e,t,r){const i=new Map;return ube(e,a=>{const{text:o}=a.name;!i.has(o)&&(X9(a.name)||t.resolveName(o,a,111551,!0))&&i.set(o,vB(`_${o}`,r))}),i}function CJe(e,t,r){ube(e,(i,a)=>{if(a)return;const{text:o}=i.name;r.replaceNode(e,i,I.createIdentifier(t.get(o)||o))})}function ube(e,t){e.forEachChild(function r(i){if(kr(i)&&b2(e,i.expression)&&we(i.name)){const{parent:a}=i;t(i,rr(a)&&a.left===i&&a.operatorToken.kind===64)}i.forEachChild(r)})}function EJe(e,t,r,i,a,o,l,u,f){switch(t.kind){case 243:return fbe(e,t,i,r,a,o,f),!1;case 244:{const{expression:g}=t;switch(g.kind){case 213:return du(g,!0)&&i.replaceNode(e,t,_h(void 0,void 0,g.arguments[0],f)),!1;case 226:{const{operatorToken:m}=g;return m.kind===64&&DJe(e,r,g,i,l,u)}}}default:return!1}}function fbe(e,t,r,i,a,o,l){const{declarationList:u}=t;let f=!1;const g=an(u.declarations,m=>{const{name:y,initializer:x}=m;if(x){if(b2(e,x))return f=!0,I4([]);if(du(x,!0))return f=!0,FJe(y,x.arguments[0],i,a,o,l);if(kr(x)&&du(x.expression,!0))return f=!0,wJe(y,x.name.text,x.expression.arguments[0],a,l)}return I4([I.createVariableStatement(void 0,I.createVariableDeclarationList([m],u.flags))])});if(f){r.replaceNodeWithNodes(e,t,Na(g,y=>y.newImports));let m;return mn(g,y=>{y.useSitesToUnqualify&&m9(y.useSitesToUnqualify,m!=null?m:m=new Map)}),m}}function wJe(e,t,r,i,a){switch(e.kind){case 206:case 207:{const o=vB(t,i);return I4([gbe(o,t,r,a),bB(void 0,e,I.createIdentifier(o))])}case 80:return I4([gbe(e.text,t,r,a)]);default:return E.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function DJe(e,t,r,i,a,o){const{left:l,right:u}=r;if(!kr(l))return!1;if(b2(e,l))if(b2(e,u))i.delete(e,r.parent);else{const f=ha(u)?AJe(u,o):du(u,!0)?PJe(u.arguments[0],t):void 0;return f?(i.replaceNodeWithNodes(e,r.parent,f[0]),f[1]):(i.replaceRangeWithText(e,ep(l.getStart(e),u.pos),"export default"),!0)}else b2(e,l.expression)&&NJe(e,r,i,a);return!1}function AJe(e,t){const r=rV(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return we(i.name)?OJe(i.name.text,i.initializer,t):void 0;case 174:return we(i.name)?mbe(i.name.text,[I.createToken(95)],i,t):void 0;default:E.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function NJe(e,t,r,i){const{text:a}=t.left.name,o=i.get(a);if(o!==void 0){const l=[bB(void 0,o,t.right),oee([I.createExportSpecifier(!1,o,a)])];r.replaceNodeWithNodes(e,t.parent,l)}else IJe(t,e,r)}function PJe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),a=i?i.exports:bI;return a.has("export=")?[[see(r)],!0]:a.has("default")?a.size>1?[[pbe(r),see(r)],!0]:[[see(r)],!0]:[[pbe(r)],!1]}function pbe(e){return oee(void 0,e)}function see(e){return oee([I.createExportSpecifier(!1,void 0,"default")],e)}function IJe({left:e,right:t,parent:r},i,a){const o=e.name.text;if((fo(t)||Po(t)||Fl(t))&&(!t.name||t.name.text===o)){a.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},I.createToken(95),{suffix:" "}),t.name||a.insertName(i,t,o);const l=$a(r,27,i);l&&a.delete(i,l)}else a.replaceNodeRangeWithNodes(i,e.expression,$a(e,25,i),[I.createToken(95),I.createToken(87)],{joiner:" ",suffix:" "})}function OJe(e,t,r){const i=[I.createToken(95)];switch(t.kind){case 218:{const{name:o}=t;if(o&&o.text!==e)return a()}case 219:return mbe(e,i,t,r);case 231:return BJe(e,i,t,r);default:return a()}function a(){return bB(i,I.createIdentifier(e),aee(t,r))}}function aee(e,t){if(!t||!dt(ia(t.keys()),i=>yf(e,i)))return e;return Ds(e)?UY(e,!0,r):j5(e,!0,r);function r(i){if(i.kind===211){const a=t.get(i);return t.delete(i),a}}}function FJe(e,t,r,i,a,o){switch(e.kind){case 206:{const l=rV(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!we(u.propertyName)||!we(u.name)?void 0:hbe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return I4([_h(void 0,l,t,o)])}case 207:{const l=vB(vee(t.text,a),i);return I4([_h(I.createIdentifier(l),void 0,t,o),bB(void 0,Io(e),I.createIdentifier(l))])}case 80:return LJe(e,t,r,i,o);default:return E.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function LJe(e,t,r,i,a){const o=r.getSymbolAtLocation(e),l=new Map;let u=!1,f;for(const m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==o||m===e)continue;const{parent:y}=m;if(kr(y)){const{name:{text:x}}=y;if(x==="default"){u=!0;const k=m.getText();(f!=null?f:f=new Map).set(y,I.createIdentifier(k))}else{E.assert(y.expression===m,"Didn't expect expression === use");let k=l.get(x);k===void 0&&(k=vB(x,i),l.set(x,k)),(f!=null?f:f=new Map).set(y,I.createIdentifier(k))}}else u=!0}const g=l.size===0?void 0:ia(tV(l.entries(),([m,y])=>I.createImportSpecifier(!1,m===y?void 0:I.createIdentifier(m),I.createIdentifier(y))));return g||(u=!0),I4([_h(u?Io(e):void 0,g,t,a)],f)}function vB(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function MJe(e){const t=$f();return dbe(e,r=>t.add(r.text,r)),t}function dbe(e,t){we(e)&&RJe(e)&&t(e),e.forEachChild(r=>dbe(r,t))}function RJe(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function mbe(e,t,r,i){return I.createFunctionDeclaration(Ki(t,D2(r.modifiers)),Io(r.asteriskToken),e,D2(r.typeParameters),D2(r.parameters),Io(r.type),I.converters.convertToFunctionBlock(aee(r.body,i)))}function BJe(e,t,r,i){return I.createClassDeclaration(Ki(t,D2(r.modifiers)),e,D2(r.typeParameters),D2(r.heritageClauses),aee(r.members,i))}function gbe(e,t,r,i){return t==="default"?_h(I.createIdentifier(e),void 0,r,i):_h(void 0,[hbe(t,e)],r,i)}function hbe(e,t){return I.createImportSpecifier(!1,e!==void 0&&e!==t?I.createIdentifier(e):void 0,I.createIdentifier(t))}function bB(e,t,r){return I.createVariableStatement(e,I.createVariableDeclarationList([I.createVariableDeclaration(t,void 0,void 0,r)],2))}function oee(e,t){return I.createExportDeclaration(void 0,!1,e&&I.createNamedExports(e),t===void 0?void 0:I.createStringLiteral(t))}function I4(e,t){return{newImports:e,useSitesToUnqualify:t}}var jJe=Bt({"src/services/codefixes/convertToEsModule.ts"(){Wr(),Ks(),Xs({errorCodes:[p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,a=er.ChangeTracker.with(e,o=>{if(SJe(t,r.getTypeChecker(),o,Oa(r.getCompilerOptions()),Mf(t,i)))for(const u of r.getSourceFiles())xJe(u,t,o,Mf(u,i))});return[Ip("convertToEsModule",a,p.Convert_to_ES_module)]}})}});function ybe(e,t){const r=On(Vi(e,t),gu);return E.assert(!!r,"Expected position to be owned by a qualified name."),we(r.left)?r:void 0}function vbe(e,t,r){const i=r.right.text,a=I.createIndexedAccessTypeNode(I.createTypeReferenceNode(r.left,void 0),I.createLiteralTypeNode(I.createStringLiteral(i)));e.replaceNode(t,r,a)}var TB,cee,JJe=Bt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){Wr(),Ks(),TB="correctQualifiedNameToIndexedAccessType",cee=[p.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],Xs({errorCodes:cee,getCodeActions(e){const t=ybe(e.sourceFile,e.span.start);if(!t)return;const r=er.ChangeTracker.with(e,a=>vbe(a,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[Rs(TB,r,[p.Rewrite_as_the_indexed_access_type_0,i],TB,p.Rewrite_all_as_indexed_access_types)]},fixIds:[TB],getAllCodeActions:e=>Ya(e,cee,(t,r)=>{const i=ybe(r.file,r.start);i&&vbe(t,r.file,i)})})}});function bbe(e,t){return Hr(Vi(t,e.start).parent,p_)}function Tbe(e,t,r){if(!t)return;const i=t.parent,a=i.parent,o=zJe(t,r);if(o.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=I.updateExportDeclaration(a,a.modifiers,!1,I.updateNamedExports(i,Vr(i.elements,f=>!gs(o,f))),a.moduleSpecifier,void 0),u=I.createExportDeclaration(void 0,!0,I.createNamedExports(o),a.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,a,l,{leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,a,u)}}function zJe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=w1e(au(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Vr(r.elements,a=>{var o;return a===e||((o=E1e(a,i))==null?void 0:o.code)===xB[0]})}var xB,SB,VJe=Bt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){Wr(),Ks(),xB=[p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],SB="convertToTypeOnlyExport",Xs({errorCodes:xB,getCodeActions:function(t){const r=er.ChangeTracker.with(t,i=>Tbe(i,bbe(t.span,t.sourceFile),t));if(r.length)return[Rs(SB,r,p.Convert_to_type_only_export,SB,p.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[SB],getAllCodeActions:function(t){const r=new Map;return Ya(t,xB,(i,a)=>{const o=bbe(a,t.sourceFile);o&&Kp(r,Ba(o.parent.parent))&&Tbe(i,o,t)})}})}});function xbe(e,t){const{parent:r}=Vi(e,t);return yu(r)||bl(r)&&r.importClause?r:void 0}function Sbe(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(o=>!o.isTypeOnly);if(i.length===1)return!0;const a=r.getTypeChecker();for(const o of i)if(Oo.Core.eachSymbolReferenceInFile(o.name,a,t,u=>!ky(u)))return!1;return!0}function yN(e,t,r){var i;if(yu(r))e.replaceNode(t,r,I.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const a=r.importClause;if(a.name&&a.namedBindings)e.replaceNodeWithNodes(t,r,[I.createImportDeclaration(D2(r.modifiers,!0),I.createImportClause(!0,Io(a.name,!0),void 0),Io(r.moduleSpecifier,!0),Io(r.assertClause,!0)),I.createImportDeclaration(D2(r.modifiers,!0),I.createImportClause(!0,void 0,Io(a.namedBindings,!0)),Io(r.moduleSpecifier,!0),Io(r.assertClause,!0))]);else{const o=((i=a.namedBindings)==null?void 0:i.kind)===275?I.updateNamedImports(a.namedBindings,cl(a.namedBindings.elements,u=>I.updateImportSpecifier(u,!1,u.propertyName,u.name))):a.namedBindings,l=I.updateImportDeclaration(r,r.modifiers,I.updateImportClause(a,!0,a.name,o),r.moduleSpecifier,r.assertClause);e.replaceNode(t,r,l)}}}var lee,vN,UJe=Bt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){Wr(),Ks(),lee=[p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],vN="convertToTypeOnlyImport",Xs({errorCodes:lee,getCodeActions:function(t){var a;var r;const i=xbe(t.sourceFile,t.span.start);if(i){const o=er.ChangeTracker.with(t,f=>yN(f,t.sourceFile,i)),l=i.kind===276&&Sbe(i,t.sourceFile,t.program)?er.ChangeTracker.with(t,f=>yN(f,t.sourceFile,i.parent.parent.parent)):void 0,u=Rs(vN,o,i.kind===276?[p.Use_type_0,(a=(r=i.propertyName)==null?void 0:r.text)!=null?a:i.name.text]:p.Use_import_type,vN,p.Fix_all_with_type_only_imports);return dt(l)?[Ip(vN,l,p.Use_import_type),u]:[u]}},fixIds:[vN],getAllCodeActions:function(t){const r=new Set;return Ya(t,lee,(i,a)=>{const o=xbe(a.file,a.start);(o==null?void 0:o.kind)===272&&!r.has(o)?(yN(i,a.file,o),r.add(o)):(o==null?void 0:o.kind)===276&&!r.has(o.parent.parent.parent)&&Sbe(o,a.file,t.program)?(yN(i,a.file,o.parent.parent.parent),r.add(o.parent.parent.parent)):(o==null?void 0:o.kind)===276&&yN(i,a.file,o)})}})}});function kbe(e,t,r,i,a=!1){if(!s4(t))return;const o=qJe(t);if(!o)return;const l=t.parent,{leftSibling:u,rightSibling:f}=WJe(t);let g=l.getStart(),m="";!u&&l.comment&&(g=Cbe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),u&&(a&&s4(u)?(g=t.getStart(),m=""):(g=Cbe(l,u.getStart(),t.getStart()),m=`${i} */${i}`));let y=l.getEnd(),x="";f&&(a&&s4(f)?(y=f.getStart(),x=`${i}${i}`):(y=f.getStart(),x=`${i}/**${i} * `)),e.replaceRange(r,{pos:g,end:y},o,{prefix:m,suffix:x})}function WJe(e){const t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),a=i>0?t.getChildAt(i-1):void 0,o=i0;a--)if(!/[*/\s]/g.test(i.substring(a-1,a)))return t+a;return r}function qJe(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(!!i){if(r.kind===329)return HJe(i,r);if(r.kind===316)return GJe(i,r)}}function HJe(e,t){const r=Ebe(t);if(!!dt(r))return I.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function GJe(e,t){const r=Io(t.type);if(!!r)return I.createTypeAliasDeclaration(void 0,I.createIdentifier(e),void 0,r)}function Ebe(e){const t=e.jsDocPropertyTags;return dt(t)?qi(t,i=>{var a;const o=$Je(i),l=(a=i.typeExpression)==null?void 0:a.type,u=i.isBracketed;let f;if(l&&r4(l)){const g=Ebe(l);f=I.createTypeLiteralNode(g)}else l&&(f=Io(l));if(f&&o){const g=u?I.createToken(58):void 0;return I.createPropertySignature(void 0,o,g,f)}}):void 0}function $Je(e){return e.name.kind===80?e.name.text:e.name.right.text}function XJe(e){return Qu(e)?Na(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>s4(i))}):[]}var kB,_ee,QJe=Bt({"src/services/codefixes/convertTypedefToType.ts"(){Wr(),Ks(),kB="convertTypedefToType",_ee=[p.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Xs({fixIds:[kB],errorCodes:_ee,getCodeActions(e){const t=r0(e.host,e.formatContext.options),r=Vi(e.sourceFile,e.span.start);if(!r)return;const i=er.ChangeTracker.with(e,a=>kbe(a,r,e.sourceFile,t));if(i.length>0)return[Rs(kB,i,p.Convert_typedef_to_TypeScript_type,kB,p.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ya(e,_ee,(t,r)=>{const i=r0(e.host,e.formatContext.options),a=Vi(r.file,r.start),o=!0;a&&kbe(t,a,r.file,i,o)})})}});function wbe(e,t){const r=Vi(e,t);if(we(r)){const i=Ms(r.parent.parent,mf),a=r.getText(e);return{container:Ms(i.parent,ef),typeNode:i.type,constraint:a,name:a==="K"?"P":"K"}}}function Dbe(e,t,{container:r,typeNode:i,constraint:a,name:o}){e.replaceNode(t,r,I.createMappedTypeNode(void 0,I.createTypeParameterDeclaration(void 0,o,I.createTypeReferenceNode(a)),void 0,void 0,i,void 0))}var CB,uee,YJe=Bt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){Wr(),Ks(),CB="convertLiteralTypeToMappedType",uee=[p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Xs({errorCodes:uee,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=wbe(r,i.start);if(!a)return;const{name:o,constraint:l}=a,u=er.ChangeTracker.with(t,f=>Dbe(f,r,a));return[Rs(CB,u,[p.Convert_0_to_1_in_0,l,o],CB,p.Convert_all_type_literals_to_mapped_type)]},fixIds:[CB],getAllCodeActions:e=>Ya(e,uee,(t,r)=>{const i=wbe(r.file,r.start);i&&Dbe(t,r.file,i)})})}});function Abe(e,t){return E.checkDefined(Pl(Vi(e,t)),"There should be a containing class")}function Nbe(e){return!e.valueDeclaration||!(I_(e.valueDeclaration)&8)}function Pbe(e,t,r,i,a,o){const l=e.program.getTypeChecker(),u=ZJe(i,l),f=l.getTypeAtLocation(t),m=l.getPropertiesOfType(f).filter(hI(Nbe,D=>!u.has(D.escapedName))),y=l.getTypeAtLocation(i),x=Fr(i.members,D=>wc(D));y.getNumberIndexType()||C(f,1),y.getStringIndexType()||C(f,0);const k=ET(r,e.program,o,e.host);hte(i,m,r,e,o,k,D=>N(r,i,D)),k.writeFixes(a);function C(D,M){const V=l.getIndexInfoOfType(D,M);V&&N(r,i,l.indexInfoToIndexSignatureDeclaration(V,i,void 0,WS(e)))}function N(D,M,V){x?a.insertNodeAfter(D,x,V):a.insertMemberAtStart(D,M,V)}}function ZJe(e,t){const r=Id(e);if(!r)return Us();const i=t.getTypeAtLocation(r),a=t.getPropertiesOfType(i);return Us(a.filter(Nbe))}var fee,EB,KJe=Bt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){Wr(),Ks(),fee=[p.Class_0_incorrectly_implements_interface_1.code,p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],EB="fixClassIncorrectlyImplementsInterface",Xs({errorCodes:fee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=Abe(t,r.start);return qi(C6(i),a=>{const o=er.ChangeTracker.with(e,l=>Pbe(e,a,t,i,l,e.preferences));return o.length===0?void 0:Rs(EB,o,[p.Implement_interface_0,a.getText(t)],EB,p.Implement_all_unimplemented_interfaces)})},fixIds:[EB],getAllCodeActions(e){const t=new Map;return Ya(e,fee,(r,i)=>{const a=Abe(i.file,i.start);if(Kp(t,Ba(a)))for(const o of C6(a))Pbe(e,o,i.file,a,r,e.preferences)})}})}});function ET(e,t,r,i,a){return Ibe(e,t,!1,r,i,a)}function Ibe(e,t,r,i,a,o){const l=t.getCompilerOptions(),u=[],f=[],g=new Map,m=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:x,writeFixes:C,hasFixes:N};function y(D,M){const V=Bbe(M,D.code,D.start,r);!V||!V.length||k(wa(V))}function x(D,M){const V=E.checkDefined(D.parent),U=QM(D,Oa(l)),Y=t.getTypeChecker(),j=Y.getMergedSymbol(iu(D,Y)),ee=Lbe(e,j,U,V,!1,t,a,i,o),R=DB(e,t),Z=Obe(e,E.checkDefined(ee),t,void 0,!!M,R,a,i);Z&&k({fix:Z,symbolName:U,errorIdentifierText:void 0})}function k(D){var M,V;const{fix:U,symbolName:Y}=D;switch(U.kind){case 0:u.push(U);break;case 1:f.push(U);break;case 2:{const{importClauseOrBindingPattern:Z,importKind:oe,addAsTypeOnly:_e}=U,X=String(Ba(Z));let H=g.get(X);if(H||g.set(X,H={importClauseOrBindingPattern:Z,defaultImport:void 0,namedImports:new Map}),oe===0){const Q=H==null?void 0:H.namedImports.get(Y);H.namedImports.set(Y,j(Q,_e))}else E.assert(H.defaultImport===void 0||H.defaultImport.name===Y,"(Add to Existing) Default import should be missing or match symbolName"),H.defaultImport={name:Y,addAsTypeOnly:j((M=H.defaultImport)==null?void 0:M.addAsTypeOnly,_e)};break}case 3:{const{moduleSpecifier:Z,importKind:oe,useRequire:_e,addAsTypeOnly:X}=U,H=ee(Z,oe,_e,X);switch(E.assert(H.useRequire===_e,"(Add new) Tried to add an `import` and a `require` for the same module"),oe){case 1:E.assert(H.defaultImport===void 0||H.defaultImport.name===Y,"(Add new) Default import should be missing or match symbolName"),H.defaultImport={name:Y,addAsTypeOnly:j((V=H.defaultImport)==null?void 0:V.addAsTypeOnly,X)};break;case 0:const Q=(H.namedImports||(H.namedImports=new Map)).get(Y);H.namedImports.set(Y,j(Q,X));break;case 3:case 2:E.assert(H.namespaceLikeImport===void 0||H.namespaceLikeImport.name===Y,"Namespacelike import shoudl be missing or match symbolName"),H.namespaceLikeImport={importKind:oe,name:Y,addAsTypeOnly:X};break}break}case 4:break;default:E.assertNever(U,`fix wasn't never - got kind ${U.kind}`)}function j(Z,oe){return Math.max(Z!=null?Z:0,oe)}function ee(Z,oe,_e,X){const H=R(Z,!0),Q=R(Z,!1),re=m.get(H),ue=m.get(Q),fe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:_e};return oe===1&&X===2?re||(m.set(H,fe),fe):X===1&&(re||ue)?re||ue:ue||(m.set(Q,fe),fe)}function R(Z,oe){return`${oe?1:0}|${Z}`}}function C(D,M){let V;e.imports.length===0&&M!==void 0?V=M:V=Mf(e,i);for(const Y of u)hee(D,e,Y);for(const Y of f)qbe(D,e,Y,V);g.forEach(({importClauseOrBindingPattern:Y,defaultImport:j,namedImports:ee})=>{Wbe(D,e,Y,j,ia(ee.entries(),([R,Z])=>({addAsTypeOnly:Z,name:R})),i)});let U;m.forEach(({useRequire:Y,defaultImport:j,namedImports:ee,namespaceLikeImport:R},Z)=>{const oe=Z.slice(2),X=(Y?$be:Gbe)(oe,V,j,ee&&ia(ee.entries(),([H,Q])=>({addAsTypeOnly:Q,name:H})),R,l);U=Vk(U,X)}),U&&z8(D,e,U,!0,i)}function N(){return u.length>0||f.length>0||g.size>0||m.size>0}}function eze(e,t,r,i){const a=G8(e,i,r),o=Mbe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,f,g,m){const{fixes:y,computedWithoutCacheCount:x}=wB(u,f,g,!1,t,e,r,i,o,m),k=jbe(y,e,t,a,r);return k&&{...k,computedWithoutCacheCount:x}}}function tze(e,t,r,i,a,o,l,u,f,g,m,y){const x=u.getCompilerOptions();let k;r?(k=W5(i,l,u,m,y).get(i.path,r),E.assertIsDefined(k,"Some exportInfo should match the specified exportMapKey")):(k=OU(Cp(t.name))?[rze(e,a,t,u,l)]:Lbe(i,e,a,t,o,u,l,m,y),E.assertIsDefined(k,"Some exportInfo should match the specified symbol / moduleSymbol"));const C=DB(i,u),N=ky(Vi(i,g)),D=E.checkDefined(Obe(i,k,u,g,N,C,l,m));return{moduleSpecifier:D.moduleSpecifier,codeAction:Fbe(gee({host:l,formatContext:f,preferences:m},i,a,D,!1,x,m))}}function nze(e,t,r,i,a,o){const l=r.getCompilerOptions(),u=lV(mee(e,r.getTypeChecker(),t,l)),f=Vbe(e,t,u,r),g=u!==t.text;return f&&Fbe(gee({host:i,formatContext:a,preferences:o},e,u,f,g,l,o))}function Obe(e,t,r,i,a,o,l,u){const f=G8(e,u,l);return jbe(wB(t,i,a,o,r,e,l,u).fixes,e,r,f,l)}function Fbe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function Lbe(e,t,r,i,a,o,l,u,f){const g=Rbe(o,l);return W5(e,l,o,u,f).search(e.path,a,m=>m===r,m=>{if(iu(m[0].symbol,g(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function rze(e,t,r,i,a){var o,l;const u=i.getCompilerOptions(),f=m(i.getTypeChecker(),!1);if(f)return f;const g=(l=(o=a.getPackageJsonAutoImportProvider)==null?void 0:o.call(a))==null?void 0:l.getTypeChecker();return E.checkDefined(g&&m(g,!0),"Could not find symbol in specified module for code actions");function m(y,x){const k=iR(r,y,u);if(k&&iu(k.symbol,y)===e)return{symbol:k.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:k.exportKind,targetFlags:iu(e,y).flags,isFromPackageJson:x};const C=y.tryGetMemberInModuleExportsAndProperties(t,r);if(C&&iu(C,y)===e)return{symbol:C,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:iu(e,y).flags,isFromPackageJson:x}}}function wB(e,t,r,i,a,o,l,u,f=Mbe(a.getTypeChecker(),o,a.getCompilerOptions()),g){const m=a.getTypeChecker(),y=Na(e,f.getImportsForExportInfo),x=t!==void 0&&ize(y,t),k=aze(y,r,m,a.getCompilerOptions());if(k)return{computedWithoutCacheCount:0,fixes:[...x?[x]:Ve,k]};const{fixes:C,computedWithoutCacheCount:N=0}=cze(e,y,a,o,t,r,i,l,u,g);return{computedWithoutCacheCount:N,fixes:[...x?[x]:Ve,...C]}}function ize(e,t){return _c(e,({declaration:r,importKind:i})=>{var a;if(i!==0)return;const o=sze(r),l=o&&((a=c3(r))==null?void 0:a.text);if(l)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifier:l}})}function sze(e){var t,r,i;switch(e.kind){case 260:return(t=Hr(e.name,we))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=Hr((r=e.importClause)==null?void 0:r.namedBindings,p1))==null?void 0:i.name.text;default:return E.assertNever(e)}}function pee(e,t,r,i,a,o){return e?t&&o.importsNotUsedAsValues===2||Vq(o)&&(!(i&111551)||!!a.getTypeOnlyAliasDeclaration(r))?2:1:4}function aze(e,t,r,i){let a;for(const l of e){const u=o(l);if(!u)continue;const f=s9(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&f||u.addAsTypeOnly===4&&!f)return u;a!=null||(a=u)}return a;function o({declaration:l,importKind:u,symbol:f,targetFlags:g}){if(u===3||u===2||l.kind===271)return;if(l.kind===260)return(u===0||u===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:m}=l;if(!m||!Qa(l.moduleSpecifier))return;const{name:y,namedBindings:x}=m;if(m.isTypeOnly&&!(u===0&&x))return;const k=pee(t,!1,f,g,r,i);if(!(u===1&&(y||k===2&&x))&&!(u===0&&(x==null?void 0:x.kind)===274))return{kind:2,importClauseOrBindingPattern:m,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:k}}}function Mbe(e,t,r){let i;for(const a of t.imports){const o=Kw(a);if(QW(o.parent)){const l=e.resolveExternalModuleName(a);l&&(i||(i=$f())).add(ya(l),o.parent)}else if(o.kind===272||o.kind===271){const l=e.getSymbolAtLocation(a);l&&(i||(i=$f())).add(ya(l),o)}}return{getImportsForExportInfo:({moduleSymbol:a,exportKind:o,targetFlags:l,symbol:u})=>{if(!(l&111551)&&P_(t))return Ve;const f=i==null?void 0:i.get(ya(a));if(!f)return Ve;const g=dee(t,o,r);return f.map(m=>({declaration:m,importKind:g,symbol:u,targetFlags:l}))}}}function DB(e,t){if(!P_(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return Ul(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!P_(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function Rbe(e,t){return lm(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function oze(e,t,r,i,a,o,l,u,f){const g=P_(t),m=e.getCompilerOptions(),y=bT(e,l),x=Rbe(e,l),k=Cc(m),C=IM(k),N=f?V=>({moduleSpecifiers:T2.tryGetModuleSpecifiersFromCache(V,t,y,u),computedWithoutCache:!1}):(V,U)=>T2.getModuleSpecifiersWithCacheInfo(V,U,m,t,y,u);let D=0;const M=Na(o,(V,U)=>{const Y=x(V.isFromPackageJson),{computedWithoutCache:j,moduleSpecifiers:ee}=N(V.moduleSymbol,Y),R=!!(V.targetFlags&111551),Z=pee(i,!0,V.symbol,V.targetFlags,Y,m);return D+=j?1:0,qi(ee,oe=>{var _e;if(C&&TS(oe))return;if(!R&&g&&r!==void 0)return{kind:1,moduleSpecifier:oe,usagePosition:r,exportInfo:V,isReExport:U>0};const X=dee(t,V.exportKind,m);let H;if(r!==void 0&&X===3&&V.exportKind===0){const Q=Y.resolveExternalModuleSymbol(V.moduleSymbol);let re;Q!==V.moduleSymbol&&(re=(_e=sR(Q,Y,m))==null?void 0:_e.name),re||(re=yee(V.moduleSymbol,Oa(m),!1)),H={namespacePrefix:re,usagePosition:r}}return{kind:3,moduleSpecifier:oe,importKind:X,useRequire:a,addAsTypeOnly:Z,exportInfo:V,isReExport:U>0,qualification:H}})});return{computedWithoutCacheCount:D,fixes:M}}function cze(e,t,r,i,a,o,l,u,f,g){const m=_c(t,y=>lze(y,o,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:oze(r,i,a,o,l,e,u,f,g)}function lze({declaration:e,importKind:t,symbol:r,targetFlags:i},a,o,l,u){var f;const g=(f=c3(e))==null?void 0:f.text;if(g){const m=o?4:pee(a,!0,r,i,l,u);return{kind:3,moduleSpecifier:g,importKind:t,addAsTypeOnly:m,useRequire:o}}}function Bbe(e,t,r,i){const a=Vi(e.sourceFile,r);let o;if(t===p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=pze(e,a);else if(we(a))if(t===p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=lV(mee(e.sourceFile,e.program.getTypeChecker(),a,e.program.getCompilerOptions())),f=Vbe(e.sourceFile,a,u,e.program);return f&&[{fix:f,symbolName:u,errorIdentifierText:a.text}]}else o=gze(e,a,i);else return;const l=G8(e.sourceFile,e.preferences,e.host);return o&&_ze(o,e.sourceFile,e.program,l,e.host)}function _ze(e,t,r,i,a){const o=l=>yo(l,a.getCurrentDirectory(),X0(a));return EC(e,(l,u)=>Rv(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||Co(l.fix.kind,u.fix.kind)||Jbe(l.fix,u.fix,t,r,i.allowsImportingSpecifier,o))}function jbe(e,t,r,i,a){if(!!dt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((o,l)=>Jbe(l,o,t,r,i.allowsImportingSpecifier,u=>yo(u,a.getCurrentDirectory(),X0(a)))===-1?l:o)}function Jbe(e,t,r,i,a,o){return e.kind!==0&&t.kind!==0?Rv(a(t.moduleSpecifier),a(e.moduleSpecifier))||fze(e.moduleSpecifier,t.moduleSpecifier,r,i)||Rv(zbe(e,r,i.getCompilerOptions(),o),zbe(t,r,i.getCompilerOptions(),o))||PD(e.moduleSpecifier,t.moduleSpecifier):0}function zbe(e,t,r,i){var a;if(e.isReExport&&((a=e.exportInfo)==null?void 0:a.moduleFileName)&&Cc(r)===2&&uze(e.exportInfo.moduleFileName)){const o=i(bi(e.exportInfo.moduleFileName));return ts(t.path,o)}return!1}function uze(e){return Jl(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function fze(e,t,r,i){return ts(e,"node:")&&!ts(t,"node:")?ZM(r,i)?-1:1:ts(t,"node:")&&!ts(e,"node:")?ZM(r,i)?1:-1:0}function pze({sourceFile:e,program:t,host:r,preferences:i},a){const o=t.getTypeChecker(),l=dze(a,o);if(!l)return;const u=o.getAliasedSymbol(l),f=l.name,g=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],m=DB(e,t);return wB(g,void 0,!1,m,t,e,r,i).fixes.map(x=>{var k;return{fix:x,symbolName:f,errorIdentifierText:(k=Hr(a,we))==null?void 0:k.text}})}function dze(e,t){const r=we(e)?t.getSymbolAtLocation(e):void 0;if(cO(r))return r;const{parent:i}=e;if(V_(i)&&i.tagName===e||dS(i)){const a=t.resolveName(t.getJsxNamespace(i),V_(i)?e:i,111551,!1);if(cO(a))return a}}function dee(e,t,r,i){if(r.verbatimModuleSyntax&&(Ul(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return vze(e,r,!!i);case 3:return mze(e,r,!!i);default:return E.assertNever(t)}}function mze(e,t,r){if(Qx(t))return 1;const i=Ul(t);switch(i){case 2:case 1:case 3:return Zn(e)&&(zc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return E.assertNever(i,`Unexpected moduleKind ${i}`)}}function gze({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:a},o,l){const u=t.getTypeChecker(),f=t.getCompilerOptions();return Na(mee(e,u,o,f),g=>{if(g==="default")return;const m=ky(o),y=DB(e,t),x=yze(g,h6(o),gT(o),r,e,t,l,i,a);return ia(nV(x.values(),k=>wB(k,o.getStart(e),m,y,t,e,i,a).fixes),k=>({fix:k,symbolName:g,errorIdentifierText:o.text,isJsxNamespaceFix:g!==o.text}))})}function Vbe(e,t,r,i){const a=i.getTypeChecker(),o=a.resolveName(r,t,111551,!0);if(!o)return;const l=a.getTypeOnlyAliasDeclaration(o);if(!(!l||Bn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function mee(e,t,r,i){const a=r.parent;if((V_(a)||m2(a))&&a.tagName===r&&rZ(i.jsx)){const o=t.getJsxNamespace(e);if(hze(o,r,t))return!A6(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,o]:[o]}return[r.text]}function hze(e,t,r){if(A6(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||dt(i.declarations,Gv)&&!(i.flags&111551)}function yze(e,t,r,i,a,o,l,u,f){var g;const m=$f(),y=G8(a,f,u),x=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),k=lm(N=>bT(N?u.getPackageJsonAutoImportProvider():o,u));function C(N,D,M,V,U,Y){const j=k(Y);if(D&&cZ(U,a,D,f,y,j,x)||!D&&y.allowsImportingAmbientModule(N,j)){const ee=U.getTypeChecker();m.add(m1e(M,ee).toString(),{symbol:M,moduleSymbol:N,moduleFileName:D==null?void 0:D.fileName,exportKind:V,targetFlags:iu(M,ee).flags,isFromPackageJson:Y})}}return lZ(o,u,f,l,(N,D,M,V)=>{const U=M.getTypeChecker();i.throwIfCancellationRequested();const Y=M.getCompilerOptions(),j=iR(N,U,Y);j&&(j.name===e||yee(N,Oa(Y),t)===e)&&Qbe(j.resolvedSymbol,r)&&C(N,D,j.symbol,j.exportKind,M,V);const ee=U.tryGetMemberInModuleExportsAndProperties(e,N);ee&&Qbe(ee,r)&&C(N,D,ee,0,M,V)}),m}function vze(e,t,r){const i=Qx(t),a=Zn(e);if(!a&&Ul(t)>=5)return i?1:2;if(a)return zc(e)||r?i?1:2:3;for(const o of e.statements)if(Hl(o)&&!fc(o.moduleReference))return 3;return i?1:3}function gee(e,t,r,i,a,o,l){let u;const f=er.ChangeTracker.with(e,g=>{u=bze(g,t,r,i,a,o,l)});return Rs(bee,f,u,Tee,p.Add_all_missing_imports)}function bze(e,t,r,i,a,o,l){const u=Mf(t,l);switch(i.kind){case 0:return hee(e,t,i),[p.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return qbe(e,t,i,u),[p.Change_0_to_1,r,Hbe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:f,importKind:g,addAsTypeOnly:m,moduleSpecifier:y}=i;Wbe(e,t,f,g===1?{name:r,addAsTypeOnly:m}:void 0,g===0?[{name:r,addAsTypeOnly:m}]:Ve,l);const x=Cp(y);return a?[p.Import_0_from_1,r,x]:[p.Update_import_from_0,x]}case 3:{const{importKind:f,moduleSpecifier:g,addAsTypeOnly:m,useRequire:y,qualification:x}=i,k=y?$be:Gbe,C=f===1?{name:r,addAsTypeOnly:m}:void 0,N=f===0?[{name:r,addAsTypeOnly:m}]:void 0,D=f===2||f===3?{importKind:f,name:(x==null?void 0:x.namespacePrefix)||r,addAsTypeOnly:m}:void 0;return z8(e,t,k(g,u,C,N,D,o),!0,l),x&&hee(e,t,x),a?[p.Import_0_from_1,r,g]:[p.Add_import_from_0,g]}case 4:{const{typeOnlyAliasDeclaration:f}=i,g=Tze(e,f,o,t,l);return g.kind===276?[p.Remove_type_from_import_of_0_from_1,r,Ube(g.parent.parent)]:[p.Remove_type_from_import_declaration_from_0,Ube(g)]}default:return E.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function Ube(e){var t,r;return e.kind===271?((r=Hr((t=Hr(e.moduleReference,km))==null?void 0:t.expression,Qa))==null?void 0:r.text)||e.moduleReference.getText():Ms(e.parent.moduleSpecifier,pa).text}function Tze(e,t,r,i,a){const o=Vq(r);switch(t.kind){case 276:if(t.isTypeOnly){const u=Op.detectImportSpecifierSorting(t.parent.elements,a);if(t.parent.elements.length>1&&u){e.delete(i,t);const f=I.updateImportSpecifier(t,!1,t.propertyName,t.name),g=Op.getOrganizeImportsComparer(a,u===2),m=Op.getImportSpecifierInsertionIndex(t.parent.elements,f,g);e.insertImportSpecifierAtIndex(i,f,t.parent,m)}else e.deleteRange(i,t.getFirstToken());return t}else return E.assert(t.parent.parent.isTypeOnly),l(t.parent.parent),t.parent.parent;case 273:return l(t),t;case 274:return l(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:E.failBadSyntaxKind(t)}function l(u){if(e.delete(i,LY(u,i)),!r.allowImportingTsExtensions){const f=c3(u.parent),g=f&&Ox(i,f.text,op(i,f));if(g!=null&&g.resolvedUsingTsExtension){const m=rw(f.text,LL(f.text,r));e.replaceNode(i,f,I.createStringLiteral(m))}}if(o){const f=Hr(u.namedBindings,rh);if(f&&f.elements.length>1){Op.detectImportSpecifierSorting(f.elements,a)&&t.kind===276&&f.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,f,0));for(const g of f.elements)g!==t&&!g.isTypeOnly&&e.insertModifierBefore(i,156,g)}}}}function Wbe(e,t,r,i,a,o){var l;if(r.kind===206){i&&g(r,i.name,"default");for(const m of a)g(r,m.name,void 0);return}const u=r.isTypeOnly&&dt([i,...a],m=>(m==null?void 0:m.addAsTypeOnly)===4),f=r.namedBindings&&((l=Hr(r.namedBindings,rh))==null?void 0:l.elements);if(i&&(E.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),I.createIdentifier(i.name),{suffix:", "})),a.length){let m;if(typeof o.organizeImportsIgnoreCase=="boolean")m=o.organizeImportsIgnoreCase;else if(f){const C=Op.detectImportSpecifierSorting(f,o);C!==3&&(m=C===2)}m===void 0&&(m=Op.detectSorting(t,o)===2);const y=Op.getOrganizeImportsComparer(o,m),x=M0(a.map(C=>I.createImportSpecifier((!r.isTypeOnly||u)&&bN(C),void 0,I.createIdentifier(C.name))),(C,N)=>Op.compareImportOrExportSpecifiers(C,N,y)),k=(f==null?void 0:f.length)&&Op.detectImportSpecifierSorting(f,o);if(k&&!(m&&k===1))for(const C of x){const N=u&&!C.isTypeOnly?0:Op.getImportSpecifierInsertionIndex(f,C,y);e.insertImportSpecifierAtIndex(t,C,r.namedBindings,N)}else if(f!=null&&f.length)for(const C of x)e.insertNodeInListAfter(t,ka(f),C,f);else if(x.length){const C=I.createNamedImports(x);r.namedBindings?e.replaceNode(t,r.namedBindings,C):e.insertNodeAfter(t,E.checkDefined(r.name,"Import clause must have either named imports or a default import"),C)}}if(u&&(e.delete(t,LY(r,t)),f))for(const m of f)e.insertModifierBefore(t,156,m);function g(m,y,x){const k=I.createBindingElement(void 0,x,y);m.elements.length?e.insertNodeInListAfter(t,ka(m.elements),k):e.replaceNode(t,m,I.createObjectBindingPattern([k]))}}function hee(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function qbe(e,t,{moduleSpecifier:r,usagePosition:i},a){e.insertText(t,i,Hbe(r,a))}function Hbe(e,t){const r=FY(t);return`import(${r}${e}${r}).`}function bN({addAsTypeOnly:e}){return e===2}function Gbe(e,t,r,i,a,o){const l=PS(e,t);let u;if(r!==void 0||(i==null?void 0:i.length)){const f=(!r||bN(r))&&$i(i,bN)||o.verbatimModuleSyntax&&(r==null?void 0:r.addAsTypeOnly)!==4&&!dt(i,g=>g.addAsTypeOnly===4);u=Vk(u,_h(r&&I.createIdentifier(r.name),i==null?void 0:i.map(({addAsTypeOnly:g,name:m})=>I.createImportSpecifier(!f&&g===2,void 0,I.createIdentifier(m))),e,t,f))}if(a){const f=a.importKind===3?I.createImportEqualsDeclaration(void 0,bN(a),I.createIdentifier(a.name),I.createExternalModuleReference(l)):I.createImportDeclaration(void 0,I.createImportClause(bN(a),void 0,I.createNamespaceImport(I.createIdentifier(a.name))),l,void 0);u=Vk(u,f)}return E.checkDefined(u)}function $be(e,t,r,i,a){const o=PS(e,t);let l;if(r||(i==null?void 0:i.length)){const u=(i==null?void 0:i.map(({name:g})=>I.createBindingElement(void 0,void 0,g)))||[];r&&u.unshift(I.createBindingElement(void 0,"default",r.name));const f=Xbe(I.createObjectBindingPattern(u),o);l=Vk(l,f)}if(a){const u=Xbe(a.name,o);l=Vk(l,u)}return E.checkDefined(l)}function Xbe(e,t){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(typeof e=="string"?I.createIdentifier(e):e,void 0,void 0,I.createCallExpression(I.createIdentifier("require"),void 0,[t]))],2))}function Qbe({declarations:e},t){return dt(e,r=>!!(T5(r)&t))}function yee(e,t,r){return vee(mu(Cp(e.name)),t,r)}function vee(e,t,r){const i=Jl(Uk(e,"/index"));let a="",o=!0;const l=i.charCodeAt(0);Gm(l,t)?(a+=String.fromCharCode(l),r&&(a=a.toUpperCase())):o=!1;for(let u=1;ugee(e,i,f,u,f!==g,o.getCompilerOptions(),r))},fixIds:[Tee],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:a,cancellationToken:o}=e,l=Ibe(t,r,!0,i,a,o);return VS(e,xee,u=>l.addImportFromDiagnostic(u,e)),zS(er.ChangeTracker.with(e,l.writeFixes))}})}});function Ybe(e,t,r){const i=Fr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const a=Fr(i.relatedInformation,l=>l.code===p.This_type_parameter_might_need_an_extends_0_constraint.code);if(a===void 0||a.file===void 0||a.start===void 0||a.length===void 0)return;let o=kte(a.file,yl(a.start,a.length));if(o!==void 0&&(we(o)&&Ho(o.parent)&&(o=o.parent),Ho(o))){if(n8(o.parent))return;const l=Vi(t,r.start),u=e.getTypeChecker();return{constraint:kze(u,l)||Sze(a.messageText),declaration:o,token:l}}}function Zbe(e,t,r,i,a,o){const{declaration:l,constraint:u}=o,f=t.getTypeChecker();if($s(u))e.insertText(a,l.name.end,` extends ${u}`);else{const g=Oa(t.getCompilerOptions()),m=WS({program:t,host:i}),y=ET(a,t,r,i),x=uj(f,y,u,void 0,g,void 0,m);x&&(e.replaceNode(a,l,I.updateTypeParameterDeclaration(l,void 0,l.name,x,l.default)),y.writeFixes(e))}}function Sze(e){const[t,r]=y1(e,` -`,0).match(/`extends (.*)`/)||[];return r}function kze(e,t){return Di(t.parent)?e.getTypeArgumentConstraint(t.parent):(nt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var AB,See,Cze=Bt({"src/services/codefixes/fixAddMissingConstraint.ts"(){Wr(),Ks(),AB="addMissingConstraint",See=[p.Type_0_is_not_comparable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Type_0_is_not_assignable_to_type_1.code,p.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,p.Property_0_is_incompatible_with_index_signature.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Type_0_does_not_satisfy_the_constraint_1.code],Xs({errorCodes:See,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:a,host:o}=e,l=Ybe(i,t,r);if(l===void 0)return;const u=er.ChangeTracker.with(e,f=>Zbe(f,i,a,o,t,l));return[Rs(AB,u,p.Add_extends_constraint,AB,p.Add_extends_constraint_to_all_type_parameters)]},fixIds:[AB],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,a=new Map;return zS(er.ChangeTracker.with(e,o=>{VS(e,See,l=>{const u=Ybe(t,l.file,yl(l.start,l.length));if(u&&Kp(a,Ba(u.declaration)))return Zbe(o,t,r,i,l.file,u)})}))}})}});function Kbe(e,t,r,i){switch(r){case p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return Eze(e,t.sourceFile,i);case p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return wze(e,t.sourceFile,i);default:E.fail("Unexpected error code: "+r)}}function Eze(e,t,r){const i=tTe(t,r);if(P_(t)){e.addJSDocTags(t,i,[I.createJSDocOverrideTag(I.createIdentifier("override"))]);return}const a=i.modifiers||Ve,o=Fr(a,sS),l=Fr(a,kfe),u=Fr(a,y=>CY(y.kind)),f=hx(a,Wl),g=l?l.end:o?o.end:u?u.end:f?ua(t.text,f.end):i.getStart(t),m=u||o||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,m)}function wze(e,t,r){const i=tTe(t,r);if(P_(t)){e.filterJSDocTags(t,i,yI(kF));return}const a=Fr(i.modifiers,Cfe);E.assertIsDefined(a),e.deleteModifier(t,a)}function eTe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Du(e,e.parent);default:return!1}}function tTe(e,t){const r=Vi(e,t),i=On(r,a=>ei(a)?"quit":eTe(a));return E.assert(i&&eTe(i)),i}var kee,O4,fE,Cee,Eee,Dze=Bt({"src/services/codefixes/fixOverrideModifier.ts"(){Wr(),Ks(),kee="fixOverrideModifier",O4="fixAddOverrideModifier",fE="fixRemoveOverrideModifier",Cee=[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Eee={[p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:O4,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:O4,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:fE,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:fE,fixAllDescriptions:p.Remove_override_modifier},[p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:O4,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:O4,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:O4,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:fE,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:fE,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers}},Xs({errorCodes:Cee,getCodeActions:function(t){const{errorCode:r,span:i}=t,a=Eee[r];if(!a)return Ve;const{descriptions:o,fixId:l,fixAllDescriptions:u}=a,f=er.ChangeTracker.with(t,g=>Kbe(g,t,r,i.start));return[JK(kee,f,o,l,u)]},fixIds:[kee,O4,fE],getAllCodeActions:e=>Ya(e,Cee,(t,r)=>{const{code:i,start:a}=r,o=Eee[i];!o||o.fixId!==e.fixId||Kbe(t,e,i,a)})})}});function nTe(e,t,r,i){const a=Mf(t,i),o=I.createStringLiteral(r.name.text,a===0);e.replaceNode(t,r,e9(r)?I.createElementAccessChain(r.expression,r.questionDotToken,o):I.createElementAccessExpression(r.expression,o))}function rTe(e,t){return Ms(Vi(e,t).parent,kr)}var NB,wee,Aze=Bt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){Wr(),Ks(),NB="fixNoPropertyAccessFromIndexSignature",wee=[p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Xs({errorCodes:wee,fixIds:[NB],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,a=rTe(t,r.start),o=er.ChangeTracker.with(e,l=>nTe(l,e.sourceFile,a,i));return[Rs(NB,o,[p.Use_element_access_for_0,a.name.text],NB,p.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ya(e,wee,(t,r)=>nTe(t,r.file,rTe(r.file,r.start),e.preferences))})}});function iTe(e,t,r,i){const a=Vi(t,r);if(!k4(a))return;const o=tu(a,!1,!1);if(!(!tl(o)&&!fo(o))&&!Ri(tu(o,!1,!1))){const l=E.checkDefined($a(o,100,t)),{name:u}=o,f=E.checkDefined(o.body);return fo(o)?u&&Oo.Core.isSymbolReferencedInFile(u,i,t,f)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,f.pos," =>"),[p.Convert_function_expression_0_to_arrow_function,u?u.text:rR]):(e.replaceNode(t,l,I.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,f.pos," =>"),[p.Convert_function_declaration_0_to_arrow_function,u.text])}}var PB,Dee,Nze=Bt({"src/services/codefixes/fixImplicitThis.ts"(){Wr(),Ks(),PB="fixImplicitThis",Dee=[p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Xs({errorCodes:Dee,getCodeActions:function(t){const{sourceFile:r,program:i,span:a}=t;let o;const l=er.ChangeTracker.with(t,u=>{o=iTe(u,r,a.start,i.getTypeChecker())});return o?[Rs(PB,l,o,PB,p.Fix_all_implicit_this_errors)]:Ve},fixIds:[PB],getAllCodeActions:e=>Ya(e,Dee,(t,r)=>{iTe(t,r.file,r.start,e.program.getTypeChecker())})})}});function sTe(e,t,r){var i;const a=Vi(e,t);if(we(a)){const o=On(a,bl);if(o===void 0)return;const l=pa(o.moduleSpecifier)?o.moduleSpecifier.text:void 0;if(l===void 0)return;const u=Ox(e,l,void 0);if(u===void 0)return;const f=r.getSourceFile(u.resolvedFileName);if(f===void 0||$8(r,f))return;const g=f.symbol,m=(i=Hr(g.valueDeclaration,fm))==null?void 0:i.locals;if(m===void 0)return;const y=m.get(a.escapedText);if(y===void 0)return;const x=Ize(y);return x===void 0?void 0:{exportName:{node:a,isTypeOnly:J6(x)},node:x,moduleSourceFile:f,moduleSpecifier:l}}}function Pze(e,t,{exportName:r,node:i,moduleSourceFile:a}){const o=IB(a,r.isTypeOnly);o?aTe(e,t,a,o,[r]):LD(i)?e.insertExportModifier(a,i):oTe(e,t,a,[r])}function Aee(e,t,r,i,a){Pn(i)&&(a?aTe(e,t,r,a,i):oTe(e,t,r,i))}function IB(e,t){const r=i=>Yc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return hx(e.statements,r)}function aTe(e,t,r,i,a){const o=i.exportClause&&ap(i.exportClause)?i.exportClause.elements:I.createNodeArray([]),l=!i.isTypeOnly&&!!(ed(t.getCompilerOptions())||Fr(o,u=>u.isTypeOnly));e.replaceNode(r,i,I.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,I.createNamedExports(I.createNodeArray([...o,...cTe(a,l)],o.hasTrailingComma)),i.moduleSpecifier,i.assertClause))}function oTe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,I.createExportDeclaration(void 0,!1,I.createNamedExports(cTe(i,ed(t.getCompilerOptions()))),void 0,void 0))}function cTe(e,t){return I.createNodeArray(an(e,r=>I.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function Ize(e){if(e.valueDeclaration===void 0)return wl(e.declarations);const t=e.valueDeclaration,r=Mi(t)?Hr(t.parent.parent,ic):void 0;return r&&Pn(r.declarationList.declarations)===1?r:t}var OB,Nee,Oze=Bt({"src/services/codefixes/fixImportNonExportedMember.ts"(){Wr(),Ks(),OB="fixImportNonExportedMember",Nee=[p.Module_0_declares_1_locally_but_it_is_not_exported.code],Xs({errorCodes:Nee,fixIds:[OB],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,a=sTe(t,r.start,i);if(a===void 0)return;const o=er.ChangeTracker.with(e,l=>Pze(l,i,a));return[Rs(OB,o,[p.Export_0_from_module_1,a.exportName.node.text,a.moduleSpecifier],OB,p.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return zS(er.ChangeTracker.with(e,r=>{const i=new Map;VS(e,Nee,a=>{const o=sTe(a.file,a.start,t);if(o===void 0)return;const{exportName:l,node:u,moduleSourceFile:f}=o;if(IB(f,l.isTypeOnly)===void 0&&LD(u))r.insertExportModifier(f,u);else{const g=i.get(f)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?g.typeOnlyExports.push(l):g.exports.push(l),i.set(f,g)}}),i.forEach((a,o)=>{const l=IB(o,!0);l&&l.isTypeOnly?(Aee(r,t,o,a.typeOnlyExports,l),Aee(r,t,o,a.exports,IB(o,!1))):Aee(r,t,o,[...a.exports,...a.typeOnlyExports],l)})}))}})}});function Fze(e,t){const r=Vi(e,t);return On(r,i=>i.kind===202)}function Lze(e,t,r){if(!r)return;let i=r.type,a=!1,o=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?a=!0:i.kind===191&&(o=!0),i=i.type;const l=I.updateNamedTupleMember(r,r.dotDotDotToken||(o?I.createToken(26):void 0),r.name,r.questionToken||(a?I.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var FB,lTe,Mze=Bt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){Wr(),Ks(),FB="fixIncorrectNamedTupleSyntax",lTe=[p.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,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Xs({errorCodes:lTe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=Fze(r,i.start),o=er.ChangeTracker.with(t,l=>Lze(l,r,a));return[Rs(FB,o,p.Move_labeled_tuple_element_modifiers_to_labels,FB,p.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[FB]})}});function _Te(e,t,r,i){const a=Vi(e,t),o=a.parent;if((i===p.No_overload_matches_this_call.code||i===p.Type_0_is_not_assignable_to_type_1.code)&&!zd(o))return;const l=r.program.getTypeChecker();let u;if(kr(o)&&o.name===a){E.assert($m(a),"Expected an identifier for spelling (property access)");let f=l.getTypeAtLocation(o.expression);o.flags&64&&(f=l.getNonNullableType(f)),u=l.getSuggestedSymbolForNonexistentProperty(a,f)}else if(rr(o)&&o.operatorToken.kind===103&&o.left===a&&Ei(a)){const f=l.getTypeAtLocation(o.right);u=l.getSuggestedSymbolForNonexistentProperty(a,f)}else if(gu(o)&&o.right===a){const f=l.getSymbolAtLocation(o.left);f&&f.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(o.right,f))}else if(yu(o)&&o.name===a){E.assertNode(a,we,"Expected an identifier for spelling (import)");const f=On(a,bl),g=Bze(e,r,f);g&&g.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(a,g.symbol))}else if(zd(o)&&o.name===a){E.assertNode(a,we,"Expected an identifier for JSX attribute");const f=On(a,V_),g=l.getContextualTypeForArgumentAtIndex(f,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(a,g)}else if(Mr(o,16384)&&Nl(o)&&o.name===a){const f=On(a,ei),g=f?Id(f):void 0,m=g?l.getTypeAtLocation(g):void 0;m&&(u=l.getSuggestedSymbolForNonexistentClassMember(el(a),m))}else{const f=gT(a),g=el(a);E.assert(g!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(a,g,Rze(f))}return u===void 0?void 0:{node:a,suggestedSymbol:u}}function uTe(e,t,r,i,a){const o=xc(i);if(!pf(o,a)&&kr(r.parent)){const l=i.valueDeclaration;l&&A_(l)&&Ei(l.name)?e.replaceNode(t,r,I.createIdentifier(o)):e.replaceNode(t,r.parent,I.createElementAccessExpression(r.parent.expression,I.createStringLiteral(o)))}else e.replaceNode(t,r,I.createIdentifier(o))}function Rze(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function Bze(e,t,r){if(!r||!Qa(r.moduleSpecifier))return;const i=Ox(e,r.moduleSpecifier.text,op(e,r.moduleSpecifier));if(!!i)return t.program.getSourceFile(i.resolvedFileName)}var Pee,Iee,jze=Bt({"src/services/codefixes/fixSpelling.ts"(){Wr(),Ks(),Pee="fixSpelling",Iee=[p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,p.Cannot_find_name_0_Did_you_mean_1.code,p.Could_not_find_name_0_Did_you_mean_1.code,p.Cannot_find_namespace_0_Did_you_mean_1.code,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p._0_has_no_exported_member_named_1_Did_you_mean_2.code,p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,p.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,p.No_overload_matches_this_call.code,p.Type_0_is_not_assignable_to_type_1.code],Xs({errorCodes:Iee,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=_Te(t,e.span.start,e,r);if(!i)return;const{node:a,suggestedSymbol:o}=i,l=Oa(e.host.getCompilationSettings()),u=er.ChangeTracker.with(e,f=>uTe(f,t,a,o,l));return[Rs("spelling",u,[p.Change_spelling_to_0,xc(o)],Pee,p.Fix_all_detected_spelling_errors)]},fixIds:[Pee],getAllCodeActions:e=>Ya(e,Iee,(t,r)=>{const i=_Te(r.file,r.start,e,r.code),a=Oa(e.host.getCompilationSettings());i&&uTe(t,e.sourceFile,i.node,i.suggestedSymbol,a)})})}});function fTe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const a=Us([i]);return e.createAnonymousType(void 0,a,[],[],[])}function Oee(e,t,r,i){if(!t.body||!hs(t.body)||Pn(t.body.statements)!==1)return;const a=wa(t.body.statements);if(ql(a)&&Fee(e,t,e.getTypeAtLocation(a.expression),r,i))return{declaration:t,kind:0,expression:a.expression,statement:a,commentSource:a.expression};if(p2(a)&&ql(a.statement)){const o=I.createObjectLiteralExpression([I.createPropertyAssignment(a.label,a.statement.expression)]),l=fTe(e,a.label,a.statement.expression);if(Fee(e,t,l,r,i))return Po(t)?{declaration:t,kind:1,expression:o,statement:a,commentSource:a.statement.expression}:{declaration:t,kind:0,expression:o,statement:a,commentSource:a.statement.expression}}else if(hs(a)&&Pn(a.statements)===1){const o=wa(a.statements);if(p2(o)&&ql(o.statement)){const l=I.createObjectLiteralExpression([I.createPropertyAssignment(o.label,o.statement.expression)]),u=fTe(e,o.label,o.statement.expression);if(Fee(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:a,commentSource:o}}}}function Fee(e,t,r,i,a){if(a){const o=e.getSignatureFromDeclaration(t);if(o){Mr(t,512)&&(r=e.createPromiseType(r));const l=e.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=e.createAnonymousType(void 0,Us(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function pTe(e,t,r,i){const a=Vi(t,r);if(!a.parent)return;const o=On(a.parent,Eo);switch(i){case p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!yf(o.type,a)?void 0:Oee(e,o,e.getTypeFromTypeNode(o.type),!1);case p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!js(o.parent)||!o.body)return;const l=o.parent.arguments.indexOf(o);if(l===-1)return;const u=e.getContextualTypeForArgumentAtIndex(o.parent,l);return u?Oee(e,o,u,!0):void 0;case p.Type_0_is_not_assignable_to_type_1.code:if(!Gg(a)||!m6(a.parent)&&!zd(a.parent))return;const f=Jze(a.parent);return!f||!Eo(f)||!f.body?void 0:Oee(e,f,e.getTypeAtLocation(a.parent),!0)}}function Jze(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(o8(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function dTe(e,t,r,i){Bu(r);const a=V5(t);e.replaceNode(t,i,I.createReturnStatement(r),{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function mTe(e,t,r,i,a,o){const l=o||jM(i)?I.createParenthesizedExpression(i):i;Bu(a),TT(a,l),e.replaceNode(t,r.body,l)}function gTe(e,t,r,i){e.replaceNode(t,r.body,I.createParenthesizedExpression(i))}function zze(e,t,r){const i=er.ChangeTracker.with(e,a=>dTe(a,e.sourceFile,t,r));return Rs(LB,i,p.Add_a_return_statement,MB,p.Add_all_missing_return_statement)}function Vze(e,t,r,i){const a=er.ChangeTracker.with(e,o=>mTe(o,e.sourceFile,t,r,i,!1));return Rs(LB,a,p.Remove_braces_from_arrow_function_body,RB,p.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function Uze(e,t,r){const i=er.ChangeTracker.with(e,a=>gTe(a,e.sourceFile,t,r));return Rs(LB,i,p.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,BB,p.Wrap_all_object_literal_with_parentheses)}var LB,MB,RB,BB,Lee,Wze=Bt({"src/services/codefixes/returnValueCorrect.ts"(){Wr(),Ks(),LB="returnValueCorrect",MB="fixAddReturnStatement",RB="fixRemoveBracesFromArrowFunctionBody",BB="fixWrapTheBlockWithParen",Lee=[p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,p.Type_0_is_not_assignable_to_type_1.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Xs({errorCodes:Lee,fixIds:[MB,RB,BB],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:a},errorCode:o}=t,l=pTe(r.getTypeChecker(),i,a,o);if(!!l)return l.kind===0?gn([zze(t,l.expression,l.statement)],Po(l.declaration)?Vze(t,l.declaration,l.expression,l.commentSource):void 0):[Uze(t,l.declaration,l.expression)]},getAllCodeActions:e=>Ya(e,Lee,(t,r)=>{const i=pTe(e.program.getTypeChecker(),r.file,r.start,r.code);if(!!i)switch(e.fixId){case MB:dTe(t,r.file,i.expression,i.statement);break;case RB:if(!Po(i.declaration))return;mTe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case BB:if(!Po(i.declaration))return;gTe(t,r.file,i.declaration,i.expression);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function hTe(e,t,r,i,a){var o;const l=Vi(e,t),u=l.parent;if(r===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&ha(u)&&js(u.parent)))return;const k=qc(u.parent.arguments,M=>M===u);if(k<0)return;const C=i.getResolvedSignature(u.parent);if(!(C&&C.declaration&&C.parameters[k]))return;const N=C.parameters[k].valueDeclaration;if(!(N&&ns(N)&&we(N.name)))return;const D=ia(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(C,k),!1,!1));return Pn(D)?{kind:3,token:N.name,properties:D,parentDeclaration:u}:void 0}if(!$m(l))return;if(we(l)&&r1(u)&&u.initializer&&ha(u.initializer)){const k=i.getContextualType(l)||i.getTypeAtLocation(l),C=ia(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),k,!1,!1));return Pn(C)?{kind:3,token:l,properties:C,parentDeclaration:u.initializer}:void 0}if(we(l)&&V_(l.parent)){const k=Oa(a.getCompilerOptions()),C=Yze(i,k,l.parent);return Pn(C)?{kind:4,token:l,attributes:C,parentDeclaration:l.parent}:void 0}if(we(l)){const k=(o=i.getContextualType(l))==null?void 0:o.getNonNullableType();if(k&&Br(k)&16){const C=wl(i.getSignaturesOfType(k,0));return C===void 0?void 0:{kind:5,token:l,signature:C,sourceFile:e,parentDeclaration:DTe(l)}}if(js(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:DTe(l)}}if(!kr(u))return;const f=NY(i.getTypeAtLocation(u.expression)),g=f.symbol;if(!g||!g.declarations)return;if(we(l)&&js(u.parent)){const k=Fr(g.declarations,Nc),C=k==null?void 0:k.getSourceFile();if(k&&C&&!$8(a,C))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:1,parentDeclaration:k};const N=Fr(g.declarations,Ri);if(e.commonJsModuleIndicator)return;if(N&&!$8(a,N))return{kind:2,token:l,call:u.parent,sourceFile:N,modifierFlags:1,parentDeclaration:N}}const m=Fr(g.declarations,ei);if(!m&&Ei(l))return;const y=m||Fr(g.declarations,k=>f_(k)||ef(k));if(y&&!$8(a,y.getSourceFile())){const k=!ef(y)&&(f.target||f)!==i.getDeclaredTypeOfSymbol(g);if(k&&(Ei(l)||f_(y)))return;const C=y.getSourceFile(),N=ef(y)?0:(k?32:0)|(nZ(l.text)?8:0),D=P_(C),M=Hr(u.parent,js);return{kind:0,token:l,call:M,modifierFlags:N,parentDeclaration:y,declSourceFile:C,isJSFile:D}}const x=Fr(g.declarations,Ay);if(x&&!(f.flags&1056)&&!Ei(l)&&!$8(a,x.getSourceFile()))return{kind:1,token:l,parentDeclaration:x}}function qze(e,t){return t.isJSFile?xb(Hze(e,t)):Gze(e,t)}function Hze(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:a}){if(f_(t)||ef(t))return;const o=er.ChangeTracker.with(e,u=>yTe(u,r,t,a,!!(i&32)));if(o.length===0)return;const l=i&32?p.Initialize_static_property_0:Ei(a)?p.Declare_a_private_field_named_0:p.Initialize_property_0_in_the_constructor;return Rs(uh,o,[l,a.text],uh,p.Add_all_missing_members)}function yTe(e,t,r,i,a){const o=i.text;if(a){if(r.kind===231)return;const l=r.name.getText(),u=vTe(I.createIdentifier(l),o);e.insertNodeAfter(t,r,u)}else if(Ei(i)){const l=I.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),u=xTe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=eg(r);if(!l)return;const u=vTe(I.createThis(),o);e.insertNodeAtConstructorEnd(t,l,u)}}function vTe(e,t){return I.createExpressionStatement(I.createAssignment(I.createPropertyAccessExpression(e,t),wT()))}function Gze(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:a}){const o=a.text,l=i&32,u=bTe(e.program.getTypeChecker(),t,a),f=m=>er.ChangeTracker.with(e,y=>TTe(y,r,t,o,u,m)),g=[Rs(uh,f(i&32),[l?p.Declare_static_property_0:p.Declare_property_0,o],uh,p.Add_all_missing_members)];return l||Ei(a)||(i&8&&g.unshift(Ip(uh,f(8),[p.Declare_private_property_0,o])),g.push($ze(e,r,t,a.text,u))),g}function bTe(e,t,r){let i;if(r.parent.parent.kind===226){const a=r.parent.parent,o=r.parent===a.left?a.right:a.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));i=e.typeToTypeNode(l,t,1)}else{const a=e.getContextualType(r.parent);i=a?e.typeToTypeNode(a,void 0,1):void 0}return i||I.createKeywordTypeNode(133)}function TTe(e,t,r,i,a,o){const l=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,u=ei(r)?I.createPropertyDeclaration(l,i,void 0,a,void 0):I.createPropertySignature(void 0,i,void 0,a),f=xTe(r);f?e.insertNodeAfter(t,f,u):e.insertMemberAtStart(t,r,u)}function xTe(e){let t;for(const r of e.members){if(!Is(r))break;t=r}return t}function $ze(e,t,r,i,a){const o=I.createKeywordTypeNode(154),l=I.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),u=I.createIndexSignature(void 0,[l],a),f=er.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,r,u));return Ip(uh,f,[p.Add_index_signature_for_property_0,i])}function Xze(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:a,token:o,call:l}=t;if(l===void 0)return;const u=o.text,f=m=>er.ChangeTracker.with(e,y=>STe(e,y,l,o,m,r,i)),g=[Rs(uh,f(a&32),[a&32?p.Declare_static_method_0:p.Declare_method_0,u],uh,p.Add_all_missing_members)];return a&8&&g.unshift(Ip(uh,f(8),[p.Declare_private_method_0,u])),g}function STe(e,t,r,i,a,o,l){const u=ET(l,e.program,e.preferences,e.host),f=ei(o)?174:173,g=yte(f,e,u,r,i,a,o),m=Zze(o,r);m?t.insertNodeAfter(l,m,g):t.insertMemberAtStart(l,o,g),u.writeFixes(t)}function kTe(e,t,{token:r,parentDeclaration:i}){const a=dt(i.members,l=>{const u=t.getTypeAtLocation(l);return!!(u&&u.flags&402653316)}),o=I.createEnumMember(r,a?I.createStringLiteral(r.text):void 0);e.replaceNode(i.getSourceFile(),i,I.updateEnumDeclaration(i,i.modifiers,i.name,Ki(i.members,xb(o))),{leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Exclude})}function CTe(e,t,r){const i=Mf(t.sourceFile,t.preferences),a=ET(t.sourceFile,t.program,t.preferences,t.host),o=r.kind===2?yte(262,t,a,r.call,lr(r.token),r.modifierFlags,r.parentDeclaration):_j(262,t,i,r.signature,wN(p.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,a);o===void 0&&E.fail("fixMissingFunctionDeclaration codefix got unexpected error."),nd(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,o),a.writeFixes(e)}function ETe(e,t,r){const i=ET(t.sourceFile,t.program,t.preferences,t.host),a=Mf(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=dt(l.properties,mS),f=an(r.attributes,y=>{const x=jB(t,o,i,a,o.getTypeOfSymbol(y),r.parentDeclaration),k=I.createIdentifier(y.name),C=I.createJsxAttribute(k,I.createJsxExpression(void 0,x));return Ta(k,C),C}),g=I.createJsxAttributes(u?[...f,...l.properties]:[...l.properties,...f]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,g,m),i.writeFixes(e)}function wTe(e,t,r){const i=ET(t.sourceFile,t.program,t.preferences,t.host),a=Mf(t.sourceFile,t.preferences),o=Oa(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=an(r.properties,g=>{const m=jB(t,l,i,a,l.getTypeOfSymbol(g),r.parentDeclaration);return I.createPropertyAssignment(Kze(g,o,a,l),m)}),f={leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,I.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),f),i.writeFixes(e)}function jB(e,t,r,i,a,o){if(a.flags&3)return wT();if(a.flags&134217732)return I.createStringLiteral("",i===0);if(a.flags&8)return I.createNumericLiteral(0);if(a.flags&64)return I.createBigIntLiteral("0n");if(a.flags&16)return I.createFalse();if(a.flags&1056){const l=a.symbol.exports?_I(a.symbol.exports.values()):a.symbol,u=t.symbolToExpression(a.symbol.parent?a.symbol.parent:a.symbol,111551,void 0,void 0);return l===void 0||u===void 0?I.createNumericLiteral(0):I.createPropertyAccessExpression(u,t.symbolToString(l))}if(a.flags&256)return I.createNumericLiteral(a.value);if(a.flags&2048)return I.createBigIntLiteral(a.value);if(a.flags&128)return I.createStringLiteral(a.value,i===0);if(a.flags&512)return a===t.getFalseType()||a===t.getFalseType(!0)?I.createFalse():I.createTrue();if(a.flags&65536)return I.createNull();if(a.flags&1048576){const l=_c(a.types,u=>jB(e,t,r,i,u,o));return l!=null?l:wT()}if(t.isArrayLikeType(a))return I.createArrayLiteralExpression();if(Qze(a)){const l=an(t.getPropertiesOfType(a),u=>{const f=jB(e,t,r,i,t.getTypeOfSymbol(u),o);return I.createPropertyAssignment(u.name,f)});return I.createObjectLiteralExpression(l,!0)}if(Br(a)&16){if(Fr(a.symbol.declarations||Ve,Yp(sg,ig,Ec))===void 0)return wT();const u=t.getSignaturesOfType(a,0);if(u===void 0)return wT();const f=_j(218,e,i,u[0],wN(p.Function_not_implemented.message,i),void 0,void 0,void 0,o,r);return f!=null?f:wT()}if(Br(a)&1){const l=Xg(a.symbol);if(l===void 0||o2(l))return wT();const u=eg(l);return u&&Pn(u.parameters)?wT():I.createNewExpression(I.createIdentifier(a.symbol.name),void 0,void 0)}return wT()}function wT(){return I.createIdentifier("undefined")}function Qze(e){return e.flags&524288&&(Br(e)&128||e.symbol&&Hr(om(e.symbol.declarations),ef))}function Yze(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return Ve;const a=i.getProperties();if(!Pn(a))return Ve;const o=new Set;for(const l of r.attributes.properties)if(zd(l)&&o.add(U3(l.name)),mS(l)){const u=e.getTypeAtLocation(l.expression);for(const f of u.getProperties())o.add(f.escapedName)}return Vr(a,l=>pf(l.name,t,1)&&!(l.flags&16777216||rc(l)&48||o.has(l.escapedName)))}function Zze(e,t){if(ef(e))return;const r=On(t,i=>Ec(i)||wc(i));return r&&r.parent===e?r:void 0}function Kze(e,t,r,i){if(pm(e)){const a=i.symbolToNode(e,111551,void 0,1073741824);if(a&&Ga(a))return a}return EO(e.name,t,r===0)}function DTe(e){if(On(e,o8)){const t=On(e.parent,nd);if(t)return t}return Bn(e)}var uh,TN,xN,SN,Mee,eVe=Bt({"src/services/codefixes/fixAddMissingMember.ts"(){Wr(),Ks(),uh="fixMissingMember",TN="fixMissingProperties",xN="fixMissingAttributes",SN="fixMissingFunctionDeclaration",Mee=[p.Property_0_does_not_exist_on_type_1.code,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_is_missing_in_type_1_but_required_in_type_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Cannot_find_name_0.code],Xs({errorCodes:Mee,getCodeActions(e){const t=e.program.getTypeChecker(),r=hTe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(!!r){if(r.kind===3){const i=er.ChangeTracker.with(e,a=>wTe(a,e,r));return[Rs(TN,i,p.Add_missing_properties,TN,p.Add_all_missing_properties)]}if(r.kind===4){const i=er.ChangeTracker.with(e,a=>ETe(a,e,r));return[Rs(xN,i,p.Add_missing_attributes,xN,p.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=er.ChangeTracker.with(e,a=>CTe(a,e,r));return[Rs(SN,i,[p.Add_missing_function_declaration_0,r.token.text],SN,p.Add_all_missing_function_declarations)]}if(r.kind===1){const i=er.ChangeTracker.with(e,a=>kTe(a,e.program.getTypeChecker(),r));return[Rs(uh,i,[p.Add_missing_enum_member_0,r.token.text],uh,p.Add_all_missing_members)]}return Ki(Xze(e,r),qze(e,r))}},fixIds:[uh,SN,TN,xN],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),a=new Map,o=new Map;return zS(er.ChangeTracker.with(e,l=>{VS(e,Mee,u=>{const f=hTe(u.file,u.start,u.code,i,e.program);if(!(!f||!Kp(a,Ba(f.parentDeclaration)+"#"+f.token.text))){if(r===SN&&(f.kind===2||f.kind===5))CTe(l,e,f);else if(r===TN&&f.kind===3)wTe(l,e,f);else if(r===xN&&f.kind===4)ETe(l,e,f);else if(f.kind===1&&kTe(l,i,f),f.kind===0){const{parentDeclaration:g,token:m}=f,y=O7(o,g,()=>[]);y.some(x=>x.token.text===m.text)||y.push(f)}}}),o.forEach((u,f)=>{const g=ef(f)?void 0:Ete(f,i);for(const m of u){if(g!=null&&g.some(M=>{const V=o.get(M);return!!V&&V.some(({token:U})=>U.text===m.token.text)}))continue;const{parentDeclaration:y,declSourceFile:x,modifierFlags:k,token:C,call:N,isJSFile:D}=m;if(N&&!Ei(C))STe(e,l,N,C,k&32,y,x);else if(D&&!f_(y)&&!ef(y))yTe(l,x,y,C,!!(k&32));else{const M=bTe(i,y,C);TTe(l,x,y,C.text,M,k&32)}}})}))}})}});function ATe(e,t,r){const i=Ms(tVe(t,r),js),a=I.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,a)}function tVe(e,t){let r=Vi(e,t.start);const i=Zl(t);for(;r.endATe(a,t,r));return[Rs(JB,i,p.Add_missing_new_operator_to_call,JB,p.Add_missing_new_operator_to_all_calls)]},fixIds:[JB],getAllCodeActions:e=>Ya(e,Ree,(t,r)=>ATe(t,e.sourceFile,r))})}});function NTe(e,t){return{type:"install package",file:e,packageName:t}}function PTe(e,t){const r=Hr(Vi(e,t),pa);if(!r)return;const i=r.text,{packageName:a}=g$(i);return Al(a)?void 0:a}function ITe(e,t,r){var i;return r===Bee?mT.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?_L(e):void 0}var OTe,zB,Bee,jee,rVe=Bt({"src/services/codefixes/fixCannotFindModule.ts"(){Wr(),Ks(),OTe="fixCannotFindModule",zB="installTypesPackage",Bee=p.Cannot_find_module_0_or_its_corresponding_type_declarations.code,jee=[Bee,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Xs({errorCodes:jee,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:a}}=t,o=PTe(i,a);if(o===void 0)return;const l=ITe(o,r,t.errorCode);return l===void 0?[]:[Rs(OTe,[],[p.Install_0,l],zB,p.Install_all_missing_types_packages,NTe(i.fileName,l))]},fixIds:[zB],getAllCodeActions:e=>Ya(e,jee,(t,r,i)=>{const a=PTe(r.file,r.start);if(a!==void 0)switch(e.fixId){case zB:{const o=ITe(a,e.host,r.code);o&&i.push(NTe(r.file.fileName,o));break}default:E.fail(`Bad fixId: ${e.fixId}`)}})})}});function FTe(e,t){const r=Vi(e,t);return Ms(r.parent,ei)}function LTe(e,t,r,i,a){const o=Id(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(o),f=l.getPropertiesOfType(u).filter(iVe),g=ET(t,r.program,a,r.host);hte(e,f,t,r,a,g,m=>i.insertMemberAtStart(t,e,m)),g.writeFixes(i)}function iVe(e){const t=o1(wa(e.getDeclarations()));return!(t&8)&&!!(t&256)}var Jee,VB,sVe=Bt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){Wr(),Ks(),Jee=[p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],VB="fixClassDoesntImplementInheritedAbstractMember",Xs({errorCodes:Jee,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=er.ChangeTracker.with(t,o=>LTe(FTe(r,i.start),r,t,o,t.preferences));return a.length===0?void 0:[Rs(VB,a,p.Implement_inherited_abstract_class,VB,p.Implement_all_inherited_abstract_classes)]},fixIds:[VB],getAllCodeActions:function(t){const r=new Map;return Ya(t,Jee,(i,a)=>{const o=FTe(a.file,a.start);Kp(r,Ba(o))&<e(o,t.sourceFile,t,i,t.preferences)})}})}});function MTe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function RTe(e,t){const r=Vi(e,t);if(r.kind!==110)return;const i=df(r),a=BTe(i.body);return a&&!a.expression.arguments.some(o=>kr(o)&&o.expression===r)?{constructor:i,superCall:a}:void 0}function BTe(e){return ql(e)&&p6(e.expression)?e:ks(e)?void 0:ys(e,BTe)}var UB,zee,aVe=Bt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){Wr(),Ks(),UB="classSuperMustPrecedeThisAccess",zee=[p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Xs({errorCodes:zee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=RTe(t,r.start);if(!i)return;const{constructor:a,superCall:o}=i,l=er.ChangeTracker.with(e,u=>MTe(u,t,a,o));return[Rs(UB,l,p.Make_super_call_the_first_statement_in_the_constructor,UB,p.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[UB],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return Ya(e,zee,(i,a)=>{const o=RTe(a.file,a.start);if(!o)return;const{constructor:l,superCall:u}=o;Kp(r,Ba(l.parent))&&MTe(i,t,l,u)})}})}});function jTe(e,t){const r=Vi(e,t);return E.assert(wc(r.parent),"token should be at the constructor declaration"),r.parent}function JTe(e,t,r){const i=I.createExpressionStatement(I.createCallExpression(I.createSuper(),void 0,Ve));e.insertNodeAtConstructorStart(t,r,i)}var WB,Vee,oVe=Bt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){Wr(),Ks(),WB="constructorForDerivedNeedSuperCall",Vee=[p.Constructors_for_derived_classes_must_contain_a_super_call.code],Xs({errorCodes:Vee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=jTe(t,r.start),a=er.ChangeTracker.with(e,o=>JTe(o,t,i));return[Rs(WB,a,p.Add_missing_super_call,WB,p.Add_all_missing_super_calls)]},fixIds:[WB],getAllCodeActions:e=>Ya(e,Vee,(t,r)=>JTe(t,e.sourceFile,jTe(r.file,r.start)))})}});function zTe(e,t){xte(e,t,"jsx",I.createStringLiteral("react"))}var Uee,Wee,cVe=Bt({"src/services/codefixes/fixEnableJsxFlag.ts"(){Wr(),Ks(),Uee="fixEnableJsxFlag",Wee=[p.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Xs({errorCodes:Wee,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=er.ChangeTracker.with(t,a=>zTe(a,r));return[Ip(Uee,i,p.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Uee],getAllCodeActions:e=>Ya(e,Wee,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&zTe(t,r)})})}});function VTe(e,t,r){const i=Fr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const a=Fr(i.relatedInformation,l=>l.code===p.Did_you_mean_0.code);if(a===void 0||a.file===void 0||a.start===void 0||a.length===void 0)return;const o=kte(a.file,yl(a.start,a.length));if(o!==void 0&&nt(o)&&rr(o.parent))return{suggestion:lVe(a.messageText),expression:o.parent,arg:o}}function UTe(e,t,r,i){const a=I.createCallExpression(I.createPropertyAccessExpression(I.createIdentifier("Number"),I.createIdentifier("isNaN")),void 0,[r]),o=i.operatorToken.kind;e.replaceNode(t,i,o===38||o===36?I.createPrefixUnaryExpression(54,a):a)}function lVe(e){const[t,r]=y1(e,` -`,0).match(/'(.*)'/)||[];return r}var qB,qee,_Ve=Bt({"src/services/codefixes/fixNaNEquality.ts"(){Wr(),Ks(),qB="fixNaNEquality",qee=[p.This_condition_will_always_return_0.code],Xs({errorCodes:qee,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,a=VTe(i,t,r);if(a===void 0)return;const{suggestion:o,expression:l,arg:u}=a,f=er.ChangeTracker.with(e,g=>UTe(g,t,u,l));return[Rs(qB,f,[p.Use_0,o],qB,p.Use_Number_isNaN_in_all_conditions)]},fixIds:[qB],getAllCodeActions:e=>Ya(e,qee,(t,r)=>{const i=VTe(e.program,r.file,yl(r.start,r.length));i&&UTe(t,r.file,i.arg,i.expression)})})}}),uVe=Bt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){Wr(),Ks(),Xs({errorCodes:[p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const a=[],o=Ul(r);if(o>=5&&o<99){const g=er.ChangeTracker.with(t,m=>{xte(m,i,"module",I.createStringLiteral("esnext"))});a.push(Ip("fixModuleOption",g,[p.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=Oa(r);if(u<4||u>99){const g=er.ChangeTracker.with(t,m=>{if(!r3(i))return;const x=[["target",I.createStringLiteral("es2017")]];o===1&&x.push(["module",I.createStringLiteral("commonjs")]),Tte(m,i,x)});a.push(Ip("fixTargetOption",g,[p.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return a.length?a:void 0}})}});function WTe(e,t,r){e.replaceNode(t,r,I.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function qTe(e,t){return Ms(Vi(e,t).parent,nf)}var HB,Hee,fVe=Bt({"src/services/codefixes/fixPropertyAssignment.ts"(){Wr(),Ks(),HB="fixPropertyAssignment",Hee=[p.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],Xs({errorCodes:Hee,fixIds:[HB],getCodeActions(e){const{sourceFile:t,span:r}=e,i=qTe(t,r.start),a=er.ChangeTracker.with(e,o=>WTe(o,e.sourceFile,i));return[Rs(HB,a,[p.Change_0_to_1,"=",":"],HB,[p.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ya(e,Hee,(t,r)=>WTe(t,r.file,qTe(r.file,r.start)))})}});function HTe(e,t){const r=Vi(e,t),i=Pl(r).heritageClauses,a=i[0].getFirstToken();return a.kind===96?{extendsToken:a,heritageClauses:i}:void 0}function GTe(e,t,r,i){if(e.replaceNode(t,r,I.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const a=i[1].getFirstToken(),o=a.getFullStart();e.replaceRange(t,{pos:o,end:o},I.createToken(28));const l=t.text;let u=a.end;for(;uGTe(l,t,i,a));return[Rs(GB,o,p.Change_extends_to_implements,GB,p.Change_all_extended_interfaces_to_implements)]},fixIds:[GB],getAllCodeActions:e=>Ya(e,Gee,(t,r)=>{const i=HTe(r.file,r.start);i&>e(t,r.file,i.extendsToken,i.heritageClauses)})})}});function $Te(e,t,r){const i=Vi(e,t);if(we(i)||Ei(i))return{node:i,className:r===$ee?Pl(i).name.text:void 0}}function XTe(e,t,{node:r,className:i}){Bu(r),e.replaceNode(t,r,I.createPropertyAccessExpression(i?I.createIdentifier(i):I.createThis(),r))}var $B,$ee,Xee,dVe=Bt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){Wr(),Ks(),$B="forgottenThisPropertyAccess",$ee=p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Xee=[p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.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,$ee],Xs({errorCodes:Xee,getCodeActions(e){const{sourceFile:t}=e,r=$Te(t,e.span.start,e.errorCode);if(!r)return;const i=er.ChangeTracker.with(e,a=>XTe(a,t,r));return[Rs($B,i,[p.Add_0_to_unresolved_variable,r.className||"this"],$B,p.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[$B],getAllCodeActions:e=>Ya(e,Xee,(t,r)=>{const i=$Te(r.file,r.start,r.code);i&&XTe(t,e.sourceFile,i)})})}});function mVe(e){return lo(Zee,e)}function Qee(e,t,r,i,a){const o=r.getText()[i];if(!mVe(o))return;const l=a?Zee[o]:`{${q8(r,t,o)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var XB,kN,Yee,Zee,gVe=Bt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){Wr(),Ks(),XB="fixInvalidJsxCharacters_expression",kN="fixInvalidJsxCharacters_htmlEntity",Yee=[p.Unexpected_token_Did_you_mean_or_gt.code,p.Unexpected_token_Did_you_mean_or_rbrace.code],Xs({errorCodes:Yee,fixIds:[XB,kN],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,a=er.ChangeTracker.with(e,l=>Qee(l,r,t,i.start,!1)),o=er.ChangeTracker.with(e,l=>Qee(l,r,t,i.start,!0));return[Rs(XB,a,p.Wrap_invalid_character_in_an_expression_container,XB,p.Wrap_all_invalid_characters_in_an_expression_container),Rs(kN,o,p.Convert_invalid_character_to_its_html_entity_code,kN,p.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ya(e,Yee,(t,r)=>Qee(t,e.preferences,r.file,r.start,e.fixId===kN))}}),Zee={">":">","}":"}"}}});function hVe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const a=er.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,r,l=>l!==i));return Rs(CN,a,[p.Delete_unused_param_tag_0,t.getText(e.sourceFile)],CN,p.Delete_all_unused_param_tags)}function yVe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:a}){if(!Pn(i.parameters))return;const o=e.sourceFile,l=dy(i),u=new Set;for(const y of l)rd(y)&&we(y.name)&&u.add(y.name.escapedText);const f=_c(i.parameters,y=>we(y.name)&&!u.has(y.name.escapedText)?y.name.getText(o):void 0);if(f===void 0)return;const g=I.updateJSDocParameterTag(a,a.tagName,I.createIdentifier(f),a.isBracketed,a.typeExpression,a.isNameFirst,a.comment),m=er.ChangeTracker.with(e,y=>y.replaceJSDocComment(o,r,an(l,x=>x===a?g:x)));return Ip(Kee,m,[p.Rename_param_tag_name_0_to_1,t.getText(o),f])}function QTe(e,t){const r=Vi(e,t);if(r.parent&&rd(r.parent)&&we(r.parent.name)){const i=r.parent,a=zx(i),o=yy(i);if(a&&o)return{jsDocHost:a,signature:o,name:r.parent.name,jsDocParameterTag:i}}}var CN,Kee,ete,vVe=Bt({"src/services/codefixes/fixUnmatchedParameter.ts"(){Wr(),Ks(),CN="deleteUnmatchedParameter",Kee="renameUnmatchedParameter",ete=[p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Xs({fixIds:[CN,Kee],errorCodes:ete,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=[],o=QTe(r,i.start);if(o)return gn(a,hVe(t,o)),gn(a,yVe(t,o)),a},getAllCodeActions:function(t){const r=new Map;return zS(er.ChangeTracker.with(t,i=>{VS(t,ete,({file:a,start:o})=>{const l=QTe(a,o);l&&r.set(l.signature,gn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((a,o)=>{if(t.fixId===CN){const l=new Set(a);i.filterJSDocTags(o.getSourceFile(),o,u=>!l.has(u))}})}))}})}});function bVe(e,t,r){const i=Hr(Vi(e,r),we);if(!i||i.parent.kind!==183)return;const o=t.getTypeChecker().getSymbolAtLocation(i);return Fr((o==null?void 0:o.declarations)||Ve,Yp(Sm,yu,Hl))}function TVe(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}const a=r.kind===273?r:r.parent.parent;if(a.name&&a.namedBindings)return;const o=i.getTypeChecker();q9(a,u=>{if(iu(u.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,156,a)}function xVe(e,t,r,i){BS.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var QB,YTe,SVe=Bt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){Wr(),Ks(),QB="fixUnreferenceableDecoratorMetadata",YTe=[p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Xs({errorCodes:YTe,getCodeActions:e=>{const t=bVe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=er.ChangeTracker.with(e,o=>t.kind===276&&xVe(o,e.sourceFile,t,e.program)),i=er.ChangeTracker.with(e,o=>TVe(o,e.sourceFile,t,e.program));let a;return r.length&&(a=gn(a,Ip(QB,r,p.Convert_named_imports_to_namespace_import))),i.length&&(a=gn(a,Ip(QB,i,p.Use_import_type))),a},fixIds:[QB]})}});function ZTe(e,t,r){e.replaceNode(t,r.parent,I.createKeywordTypeNode(159))}function pE(e,t){return Rs(dE,e,t,KB,p.Delete_all_unused_declarations)}function KTe(e,t,r){e.delete(t,E.checkDefined(Ms(r.parent,RW).typeParameters,"The type parameter to delete should exist"))}function tte(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function exe(e){return e.kind===102?Hr(e.parent,bl):void 0}function txe(e,t){return dl(t.parent)&&wa(t.parent.getChildren(e))===t}function nxe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function kVe(e,t,r){mn(r.elements,i=>e.delete(t,i))}function CVe(e,t,r,{parent:i}){if(Mi(i)&&i.initializer&&$v(i.initializer))if(dl(i.parent)&&Pn(i.parent.declarations)>1){const a=i.parent.parent,o=a.getStart(r),l=a.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:r0(e.host,e.formatContext.options)+r.text.slice(BM(r.text,o-1),o),suffix:V5(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function rxe(e,t,r,i){t!==p.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Ms(i.parent,oS).typeParameter.name),we(i)&&EVe(i)&&(e.replaceNode(r,i,I.createIdentifier(`_${i.text}`)),ns(i.parent)&&Zk(i.parent).forEach(a=>{we(a.name)&&e.replaceNode(r,a.name,I.createIdentifier(`_${a.name.text}`))})))}function EVe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function YB(e,t,r,i,a,o,l,u){wVe(t,r,e,i,a,o,l,u),we(t)&&Oo.Core.eachSymbolReferenceInFile(t,i,e,f=>{kr(f.parent)&&f.parent.name===f&&(f=f.parent),!u&&PVe(f)&&r.delete(e,f.parent.parent)})}function wVe(e,t,r,i,a,o,l,u){const{parent:f}=e;if(ns(f))DVe(t,r,f,i,a,o,l,u);else if(!(u&&we(e)&&Oo.Core.isSymbolReferencedInFile(e,i,r))){const g=Sm(f)?e:Ga(f)?f.parent:f;E.assert(g!==r,"should not delete whole source file"),t.delete(r,g)}}function DVe(e,t,r,i,a,o,l,u=!1){if(AVe(i,t,r,a,o,l,u))if(r.modifiers&&r.modifiers.length>0&&(!we(r.name)||Oo.Core.isSymbolReferencedInFile(r.name,i,t)))for(const f of r.modifiers)Zs(f)&&e.deleteModifier(t,f);else!r.initializer&&ixe(r,i,a)&&e.delete(t,r)}function ixe(e,t,r){const i=e.parent.parameters.indexOf(e);return!Oo.Core.someSignatureUsage(e.parent,r,t,(a,o)=>!o||o.arguments.length>i)}function AVe(e,t,r,i,a,o,l){const{parent:u}=r;switch(u.kind){case 174:case 176:const f=u.parameters.indexOf(r),g=Ec(u)?u.name:u,m=Oo.Core.getReferencedSymbolsForNode(u.pos,g,a,i,o);if(m){for(const y of m)for(const x of y.references)if(x.kind===Oo.EntryKind.Node){const k=Z3(x.node)&&js(x.node.parent)&&x.node.parent.arguments.length>f,C=kr(x.node.parent)&&Z3(x.node.parent.expression)&&js(x.node.parent.parent)&&x.node.parent.parent.arguments.length>f,N=(Ec(x.node.parent)||ig(x.node.parent))&&x.node.parent!==r.parent&&x.node.parent.parameters.length>f;if(k||C||N)return!1}}return!0;case 262:return u.name&&NVe(e,t,u.name)?sxe(u,r,l):!0;case 218:case 219:return sxe(u,r,l);case 178:return!1;case 177:return!0;default:return E.failBadSyntaxKind(u)}}function NVe(e,t,r){return!!Oo.Core.eachSymbolReferenceInFile(r,e,t,i=>we(i)&&js(i.parent)&&i.parent.arguments.indexOf(i)>=0)}function sxe(e,t,r){const i=e.parameters,a=i.indexOf(t);return E.assert(a!==-1,"The parameter should already be in the list"),r?i.slice(a+1).every(o=>we(o.name)&&!o.symbol.isReferenced):a===i.length-1}function PVe(e){return(rr(e.parent)&&e.parent.left===e||(ZH(e.parent)||Dy(e.parent))&&e.parent.operand===e)&&ql(e.parent.parent)}var dE,ZB,KB,EN,ej,nte,IVe=Bt({"src/services/codefixes/fixUnusedIdentifier.ts"(){Wr(),Ks(),dE="unusedIdentifier",ZB="unusedIdentifier_prefix",KB="unusedIdentifier_delete",EN="unusedIdentifier_deleteImports",ej="unusedIdentifier_infer",nte=[p._0_is_declared_but_its_value_is_never_read.code,p._0_is_declared_but_never_used.code,p.Property_0_is_declared_but_its_value_is_never_read.code,p.All_imports_in_import_declaration_are_unused.code,p.All_destructured_elements_are_unused.code,p.All_variables_are_unused.code,p.All_type_parameters_are_unused.code],Xs({errorCodes:nte,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:a}=e,o=i.getTypeChecker(),l=i.getSourceFiles(),u=Vi(r,e.span.start);if(id(u))return[pE(er.ChangeTracker.with(e,y=>y.delete(r,u)),p.Remove_template_tag)];if(u.kind===30){const y=er.ChangeTracker.with(e,x=>KTe(x,r,u));return[pE(y,p.Remove_type_parameters)]}const f=exe(u);if(f){const y=er.ChangeTracker.with(e,x=>x.delete(r,f));return[Rs(dE,y,[p.Remove_import_from_0,Z_e(f)],EN,p.Delete_all_unused_imports)]}else if(tte(u)){const y=er.ChangeTracker.with(e,x=>YB(r,u,x,o,l,i,a,!1));if(y.length)return[Rs(dE,y,[p.Remove_unused_declaration_for_Colon_0,u.getText(r)],EN,p.Delete_all_unused_imports)]}if(td(u.parent)||uS(u.parent)){if(ns(u.parent.parent)){const y=u.parent.elements,x=[y.length>1?p.Remove_unused_declarations_for_Colon_0:p.Remove_unused_declaration_for_Colon_0,an(y,k=>k.getText(r)).join(", ")];return[pE(er.ChangeTracker.with(e,k=>kVe(k,r,u.parent)),x)]}return[pE(er.ChangeTracker.with(e,y=>CVe(e,y,r,u.parent)),p.Remove_unused_destructuring_declaration)]}if(txe(r,u))return[pE(er.ChangeTracker.with(e,y=>nxe(y,r,u.parent)),p.Remove_variable_statement)];const g=[];if(u.kind===140){const y=er.ChangeTracker.with(e,k=>ZTe(k,r,u)),x=Ms(u.parent,oS).typeParameter.name.text;g.push(Rs(dE,y,[p.Replace_infer_0_with_unknown,x],ej,p.Replace_all_unused_infer_with_unknown))}else{const y=er.ChangeTracker.with(e,x=>YB(r,u,x,o,l,i,a,!1));if(y.length){const x=Ga(u.parent)?u.parent:u;g.push(pE(y,[p.Remove_unused_declaration_for_Colon_0,x.getText(r)]))}}const m=er.ChangeTracker.with(e,y=>rxe(y,t,r,u));return m.length&&g.push(Rs(dE,m,[p.Prefix_0_with_an_underscore,u.getText(r)],ZB,p.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[ZB,KB,EN,ej],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,a=r.getTypeChecker(),o=r.getSourceFiles();return Ya(e,nte,(l,u)=>{const f=Vi(t,u.start);switch(e.fixId){case ZB:rxe(l,u.code,t,f);break;case EN:{const g=exe(f);g?l.delete(t,g):tte(f)&&YB(t,f,l,a,o,r,i,!0);break}case KB:{if(f.kind===140||tte(f))break;if(id(f))l.delete(t,f);else if(f.kind===30)KTe(l,t,f);else if(td(f.parent)){if(f.parent.parent.initializer)break;(!ns(f.parent.parent)||ixe(f.parent.parent,a,o))&&l.delete(t,f.parent.parent)}else{if(uS(f.parent.parent)&&f.parent.parent.parent.initializer)break;txe(t,f)?nxe(l,t,f.parent):YB(t,f,l,a,o,r,i,!0)}break}case ej:f.kind===140&&ZTe(l,t,f);break;default:E.fail(JSON.stringify(e.fixId))}})}})}});function axe(e,t,r,i,a){const o=Vi(t,r),l=On(o,Ii);if(l.getStart(t)!==o.getStart(t)){const f=JSON.stringify({statementKind:E.formatSyntaxKind(l.kind),tokenKind:E.formatSyntaxKind(o.kind),errorCode:a,start:r,length:i});E.fail("Token and statement should start at the same point. "+f)}const u=(hs(l.parent)?l.parent:l).parent;if(!hs(l.parent)||l===wa(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(hs(l.parent))break;e.replaceNode(t,l,I.createBlock(Ve));return}case 247:case 248:e.delete(t,u);return}if(hs(l.parent)){const f=r+i,g=E.checkDefined(OVe(Kq(l.parent.statements,l),m=>m.posaxe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[Rs(tj,r,p.Remove_unreachable_code,tj,p.Remove_all_unreachable_code)]},fixIds:[tj],getAllCodeActions:e=>Ya(e,rte,(t,r)=>axe(t,r.file,r.start,r.length,r.code))})}});function oxe(e,t,r){const i=Vi(t,r),a=Ms(i.parent,p2),o=i.getStart(t),l=a.statement.getStart(t),u=tp(o,l,t)?l:ua(t.text,$a(a,59,t).end,!0);e.deleteRange(t,{pos:o,end:u})}var nj,ite,LVe=Bt({"src/services/codefixes/fixUnusedLabel.ts"(){Wr(),Ks(),nj="fixUnusedLabel",ite=[p.Unused_label.code],Xs({errorCodes:ite,getCodeActions(e){const t=er.ChangeTracker.with(e,r=>oxe(r,e.sourceFile,e.span.start));return[Rs(nj,t,p.Remove_unused_label,nj,p.Remove_all_unused_labels)]},fixIds:[nj],getAllCodeActions:e=>Ya(e,ite,(t,r)=>oxe(t,r.file,r.start))})}});function cxe(e,t,r,i,a){e.replaceNode(t,r,a.typeToTypeNode(i,r,void 0))}function lxe(e,t,r){const i=On(Vi(e,t),MVe),a=i&&i.type;return a&&{typeNode:a,type:RVe(r,a)}}function MVe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function RVe(e,t){if(t4(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(gn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var ste,rj,ate,BVe=Bt({"src/services/codefixes/fixJSDocTypes.ts"(){Wr(),Ks(),ste="fixJSDocTypes_plain",rj="fixJSDocTypes_nullable",ate=[p.JSDoc_types_can_only_be_used_inside_documentation_comments.code,p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Xs({errorCodes:ate,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=lxe(t,e.span.start,r);if(!i)return;const{typeNode:a,type:o}=i,l=a.getText(t),u=[f(o,ste,p.Change_all_jsdoc_style_types_to_TypeScript)];return a.kind===321&&u.push(f(o,rj,p.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function f(g,m,y){const x=er.ChangeTracker.with(e,k=>cxe(k,t,a,g,r));return Rs("jdocTypes",x,[p.Change_0_to_1,l,r.typeToString(g)],m,y)}},fixIds:[ste,rj],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,a=r.getTypeChecker();return Ya(e,ate,(o,l)=>{const u=lxe(l.file,l.start,a);if(!u)return;const{typeNode:f,type:g}=u,m=f.kind===321&&t===rj?a.getNullableType(g,32768):g;cxe(o,i,f,m,a)})}})}});function _xe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function uxe(e,t){const r=Vi(e,t);if(kr(r.parent)){let i=r.parent;for(;kr(i.parent);)i=i.parent;return i.name}if(we(r))return r}var ij,ote,jVe=Bt({"src/services/codefixes/fixMissingCallParentheses.ts"(){Wr(),Ks(),ij="fixMissingCallParentheses",ote=[p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Xs({errorCodes:ote,fixIds:[ij],getCodeActions(e){const{sourceFile:t,span:r}=e,i=uxe(t,r.start);if(!i)return;const a=er.ChangeTracker.with(e,o=>_xe(o,e.sourceFile,i));return[Rs(ij,a,p.Add_missing_call_parentheses,ij,p.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ya(e,ote,(t,r)=>{const i=uxe(r.file,r.start);i&&_xe(t,r.file,i)})})}});function JVe(e){if(e.type)return e.type;if(Mi(e.parent)&&e.parent.type&&sg(e.parent.type))return e.parent.type.type}function fxe(e,t){const r=Vi(e,t),i=df(r);if(!i)return;let a;switch(i.kind){case 174:a=i.name;break;case 262:case 218:a=$a(i,100,e);break;case 219:const o=i.typeParameters?30:21;a=$a(i,o,e)||wa(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:JVe(i)}}function pxe(e,t,{insertBefore:r,returnType:i}){if(i){const a=zw(i);(!a||a.kind!==80||a.text!=="Promise")&&e.replaceNode(t,i,I.createTypeReferenceNode("Promise",I.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var sj,cte,zVe=Bt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){Wr(),Ks(),sj="fixAwaitInSyncFunction",cte=[p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Xs({errorCodes:cte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=fxe(t,r.start);if(!i)return;const a=er.ChangeTracker.with(e,o=>pxe(o,t,i));return[Rs(sj,a,p.Add_async_modifier_to_containing_function,sj,p.Add_all_missing_async_modifiers)]},fixIds:[sj],getAllCodeActions:function(t){const r=new Map;return Ya(t,cte,(i,a)=>{const o=fxe(a.file,a.start);!o||!Kp(r,Ba(o.insertBefore))||pxe(i,t.sourceFile,o)})}})}});function dxe(e,t,r,i,a){let o,l;if(i===p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,l=t+r;else if(i===p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=a.program.getTypeChecker(),f=Vi(e,t).parent;E.assert(e1(f),"error span of fixPropertyOverrideAccessor should only be on an accessor");const g=f.parent;E.assert(ei(g),"erroneous accessors should only be inside classes");const m=om(Ete(g,u));if(!m)return[];const y=Li(_6(f.name)),x=u.getPropertyOfType(u.getTypeAtLocation(m),y);if(!x||!x.valueDeclaration)return[];o=x.valueDeclaration.pos,l=x.valueDeclaration.end,e=Bn(x.valueDeclaration)}else E.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return Axe(e,a.program,o,l,a,p.Generate_get_and_set_accessors.message)}var lte,aj,VVe=Bt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){Wr(),Ks(),lte=[p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],aj="fixPropertyOverrideAccessor",Xs({errorCodes:lte,getCodeActions(e){const t=dxe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[Rs(aj,t,p.Generate_get_and_set_accessors,aj,p.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[aj],getAllCodeActions:e=>Ya(e,lte,(t,r)=>{const i=dxe(r.file,r.start,r.length,r.code,e);if(i)for(const a of i)t.pushRaw(e.sourceFile,a)})})}});function UVe(e,t){switch(e){case p.Parameter_0_implicitly_has_an_1_type.code:case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Fu(df(t))?p.Infer_type_of_0_from_usage:p.Infer_parameter_types_from_usage;case p.Rest_parameter_0_implicitly_has_an_any_type.code:case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Infer_parameter_types_from_usage;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return p.Infer_this_type_of_0_from_usage;default:return p.Infer_type_of_0_from_usage}}function WVe(e){switch(e){case p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_an_1_type.code;case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Parameter_0_implicitly_has_an_1_type.code;case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Rest_parameter_0_implicitly_has_an_any_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Member_0_implicitly_has_an_1_type.code}return e}function mxe(e,t,r,i,a,o,l,u,f){if(!$C(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:g}=r,m=ET(t,a,f,u);switch(i=WVe(i),i){case p.Member_0_implicitly_has_an_1_type.code:case p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Mi(g)&&l(g)||Is(g)||mf(g))return gxe(e,m,t,g,a,u,o),m.writeFixes(e),g;if(kr(g)){const k=mE(g.name,a,o),C=H8(k,g,a,u);if(C){const N=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(C),void 0);e.addJSDocTags(t,Ms(g.parent.parent,ql),[N])}return m.writeFixes(e),g}return;case p.Variable_0_implicitly_has_an_1_type.code:{const k=a.getTypeChecker().getSymbolAtLocation(r);return k&&k.valueDeclaration&&Mi(k.valueDeclaration)&&l(k.valueDeclaration)?(gxe(e,m,Bn(k.valueDeclaration),k.valueDeclaration,a,u,o),m.writeFixes(e),k.valueDeclaration):void 0}}const y=df(r);if(y===void 0)return;let x;switch(i){case p.Parameter_0_implicitly_has_an_1_type.code:if(Fu(y)){hxe(e,m,t,y,a,u,o),x=y;break}case p.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){const k=Ms(g,ns);qVe(e,m,t,k,y,a,u,o),x=k}break;case p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:gf(y)&&we(y.name)&&(oj(e,m,t,y,mE(y.name,a,o),a,u),x=y);break;case p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Fu(y)&&(hxe(e,m,t,y,a,u,o),x=y);break;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:er.isThisTypeAnnotatable(y)&&l(y)&&(HVe(e,t,y,a,u,o),x=y);break;default:return E.fail(String(i))}return m.writeFixes(e),x}function gxe(e,t,r,i,a,o,l){we(i.name)&&oj(e,t,r,i,mE(i.name,a,l),a,o)}function qVe(e,t,r,i,a,o,l,u){if(!we(i.name))return;const f=XVe(a,r,o,u);if(E.assert(a.parameters.length===f.length,"Parameter count and inference count should match"),Zn(a))yxe(e,r,f,o,l);else{const g=Po(a)&&!$a(a,21,r);g&&e.insertNodeBefore(r,wa(a.parameters),I.createToken(21));for(const{declaration:m,type:y}of f)m&&!m.type&&!m.initializer&&oj(e,t,r,m,y,o,l);g&&e.insertNodeAfter(r,ka(a.parameters),I.createToken(22))}}function HVe(e,t,r,i,a,o){const l=vxe(r,t,i,o);if(!l||!l.length)return;const u=ute(i,l,o).thisParameter(),f=H8(u,r,i,a);!f||(Zn(r)?GVe(e,t,r,f):e.tryInsertThisTypeAnnotation(t,r,f))}function GVe(e,t,r,i){e.addJSDocTags(t,r,[I.createJSDocThisTag(void 0,I.createJSDocTypeExpression(i))])}function hxe(e,t,r,i,a,o,l){const u=wl(i.parameters);if(u&&we(i.name)&&we(u.name)){let f=mE(i.name,a,l);f===a.getTypeChecker().getAnyType()&&(f=mE(u.name,a,l)),Zn(i)?yxe(e,r,[{declaration:u,type:f}],a,o):oj(e,t,r,u,f,a,o)}}function oj(e,t,r,i,a,o,l){const u=H8(a,i,o,l);if(u)if(Zn(r)&&i.kind!==171){const f=Mi(i)?Hr(i.parent.parent,ic):i;if(!f)return;const g=I.createJSDocTypeExpression(u),m=gf(i)?I.createJSDocReturnTag(void 0,g,void 0):I.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(r,f,[m])}else $Ve(u,i,r,e,t,Oa(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function $Ve(e,t,r,i,a,o){const l=DT(e,o);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(mn(l.symbols,u=>a.addImportFromExportedSymbol(u,!0)),!0):!1}function yxe(e,t,r,i,a){const o=r.length&&r[0].declaration.parent;if(!o)return;const l=qi(r,u=>{const f=u.declaration;if(f.initializer||py(f)||!we(f.name))return;const g=u.type&&H8(u.type,f,i,a);if(g){const m=I.cloneNode(f.name);return Xn(m,7168),{name:I.cloneNode(f.name),param:f,isOptional:!!u.isOptional,typeNode:g}}});if(!!l.length)if(Po(o)||fo(o)){const u=Po(o)&&!$a(o,21,t);u&&e.insertNodeBefore(t,wa(o.parameters),I.createToken(21)),mn(l,({typeNode:f,param:g})=>{const m=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(f)),y=I.createJSDocComment(void 0,[m]);e.insertNodeAt(t,g.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,ka(o.parameters),I.createToken(22))}else{const u=an(l,({name:f,typeNode:g,isOptional:m})=>I.createJSDocParameterTag(void 0,f,!!m,I.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,o,u)}}function _te(e,t,r){return qi(Oo.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Oo.EntryKind.Span?Hr(i.node,we):void 0)}function mE(e,t,r){const i=_te(e,t,r);return ute(t,i,r).single()}function XVe(e,t,r,i){const a=vxe(e,t,r,i);return a&&ute(r,a,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:we(o.name)?mE(o.name,r,i):r.getTypeChecker().getAnyType()}))}function vxe(e,t,r,i){let a;switch(e.kind){case 176:a=$a(e,137,t);break;case 219:case 218:const o=e.parent;a=(Mi(o)||Is(o))&&we(o.name)?o.name:e.name;break;case 262:case 174:case 173:a=e.name;break}if(!!a)return _te(a,r,i)}function ute(e,t,r){const i=e.getTypeChecker(),a={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:be=>i.createArrayType(be),Promise:be=>i.createPromiseType(be)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:f,parameters:g,thisParameter:m};function l(){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 u(be){const xe=new Map;for(const ct of be)ct.properties&&ct.properties.forEach((pe,Pe)=>{xe.has(Pe)||xe.set(Pe,[]),xe.get(Pe).push(pe)});const rt=new Map;return xe.forEach((ct,pe)=>{rt.set(pe,u(ct))}),{isNumber:be.some(ct=>ct.isNumber),isString:be.some(ct=>ct.isString),isNumberOrString:be.some(ct=>ct.isNumberOrString),candidateTypes:Na(be,ct=>ct.candidateTypes),properties:rt,calls:Na(be,ct=>ct.calls),constructs:Na(be,ct=>ct.constructs),numberIndex:mn(be,ct=>ct.numberIndex),stringIndex:mn(be,ct=>ct.stringIndex),candidateThisTypes:Na(be,ct=>ct.candidateThisTypes),inferredTypes:void 0}}function f(){return oe(y(t))}function g(be){if(t.length===0||!be.parameters)return;const xe=l();for(const ct of t)r.throwIfCancellationRequested(),x(ct,xe);const rt=[...xe.constructs||[],...xe.calls||[]];return be.parameters.map((ct,pe)=>{const Pe=[],Ge=Qm(ct);let tt=!1;for(const Je of rt)if(Je.argumentTypes.length<=pe)tt=Zn(be),Pe.push(i.getUndefinedType());else if(Ge)for(let at=pe;atrt.every(pe=>!pe(ct)))}function Z(be){return oe(X(be))}function oe(be){if(!be.length)return i.getAnyType();const xe=i.getUnionType([i.getStringType(),i.getNumberType()]);let ct=R(be,[{high:Pe=>Pe===i.getStringType()||Pe===i.getNumberType(),low:Pe=>Pe===xe},{high:Pe=>!(Pe.flags&16385),low:Pe=>!!(Pe.flags&16385)},{high:Pe=>!(Pe.flags&114689)&&!(Br(Pe)&16),low:Pe=>!!(Br(Pe)&16)}]);const pe=ct.filter(Pe=>Br(Pe)&16);return pe.length&&(ct=ct.filter(Pe=>!(Br(Pe)&16)),ct.push(_e(pe))),i.getWidenedType(i.getUnionType(ct.map(i.getBaseTypeOfLiteralType),2))}function _e(be){if(be.length===1)return be[0];const xe=[],rt=[],ct=[],pe=[];let Pe=!1,Ge=!1;const tt=$f();for(const at of be){for(const bt of i.getPropertiesOfType(at))tt.add(bt.escapedName,bt.valueDeclaration?i.getTypeOfSymbolAtLocation(bt,bt.valueDeclaration):i.getAnyType());xe.push(...i.getSignaturesOfType(at,0)),rt.push(...i.getSignaturesOfType(at,1));const zt=i.getIndexInfoOfType(at,0);zt&&(ct.push(zt.type),Pe=Pe||zt.isReadonly);const It=i.getIndexInfoOfType(at,1);It&&(pe.push(It.type),Ge=Ge||It.isReadonly)}const mt=eoe(tt,(at,zt)=>{const It=zt.lengthi.getBaseTypeOfLiteralType(tt)),Ge=(ct=be.calls)!=null&&ct.length?H(be):void 0;return Ge&&Pe?pe.push(i.getUnionType([Ge,...Pe],2)):(Ge&&pe.push(Ge),Pn(Pe)&&pe.push(...Pe)),pe.push(...Q(be)),pe}function H(be){const xe=new Map;be.properties&&be.properties.forEach((Pe,Ge)=>{const tt=i.createSymbol(4,Ge);tt.links.type=Z(Pe),xe.set(Ge,tt)});const rt=be.calls?[De(be.calls)]:[],ct=be.constructs?[De(be.constructs)]:[],pe=be.stringIndex?[i.createIndexInfo(i.getStringType(),Z(be.stringIndex),!1)]:[];return i.createAnonymousType(void 0,xe,rt,ct,pe)}function Q(be){if(!be.properties||!be.properties.size)return[];const xe=o.filter(rt=>re(rt,be));return 0ue(rt,be)):[]}function re(be,xe){return xe.properties?!Au(xe.properties,(rt,ct)=>{const pe=i.getTypeOfPropertyOfType(be,ct);return pe?rt.calls?!i.getSignaturesOfType(pe,0).length||!i.isTypeAssignableTo(pe,Ne(rt.calls)):!i.isTypeAssignableTo(pe,Z(rt)):!0}):!1}function ue(be,xe){if(!(Br(be)&4)||!xe.properties)return be;const rt=be.target,ct=om(rt.typeParameters);if(!ct)return be;const pe=[];return xe.properties.forEach((Pe,Ge)=>{const tt=i.getTypeOfPropertyOfType(rt,Ge);E.assert(!!tt,"generic should have all the properties of its reference."),pe.push(...fe(tt,Z(Pe),ct))}),a[be.symbol.escapedName](oe(pe))}function fe(be,xe,rt){if(be===rt)return[xe];if(be.flags&3145728)return Na(be.types,Pe=>fe(Pe,xe,rt));if(Br(be)&4&&Br(xe)&4){const Pe=i.getTypeArguments(be),Ge=i.getTypeArguments(xe),tt=[];if(Pe&&Ge)for(let mt=0;mtpe.argumentTypes.length));for(let pe=0;peGe.argumentTypes[pe]||i.getUndefinedType())),be.some(Ge=>Ge.argumentTypes[pe]===void 0)&&(Pe.flags|=16777216),xe.push(Pe)}const ct=Z(u(be.map(pe=>pe.return_)));return i.createSignature(void 0,void 0,void 0,xe,ct,void 0,rt,0)}function Xe(be,xe){xe&&!(xe.flags&1)&&!(xe.flags&131072)&&(be.candidateTypes||(be.candidateTypes=[])).push(xe)}function ve(be,xe){xe&&!(xe.flags&1)&&!(xe.flags&131072)&&(be.candidateThisTypes||(be.candidateThisTypes=[])).push(xe)}}var cj,fte,QVe=Bt({"src/services/codefixes/inferFromUsage.ts"(){Wr(),Ks(),cj="inferFromUsage",fte=[p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,p.Variable_0_implicitly_has_an_1_type.code,p.Parameter_0_implicitly_has_an_1_type.code,p.Rest_parameter_0_implicitly_has_an_any_type.code,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,p.Member_0_implicitly_has_an_1_type.code,p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Xs({errorCodes:fte,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:a,cancellationToken:o,host:l,preferences:u}=e,f=Vi(t,i);let g;const m=er.ChangeTracker.with(e,x=>{g=mxe(x,t,f,a,r,o,sy,l,u)}),y=g&&os(g);return!y||m.length===0?void 0:[Rs(cj,m,[UVe(a,f),el(y)],cj,p.Infer_all_types_from_usage)]},fixIds:[cj],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:a,preferences:o}=e,l=NS();return Ya(e,fte,(u,f)=>{mxe(u,t,Vi(f.file,f.start),f.code,r,i,l,a,o)})}})}});function bxe(e,t,r){if(Zn(e))return;const i=Vi(e,r),a=On(i,Eo),o=a==null?void 0:a.type;if(!o)return;const l=t.getTypeFromTypeNode(o),u=t.getAwaitedType(l)||t.getVoidType(),f=t.typeToTypeNode(u,o,void 0);if(f)return{returnTypeNode:o,returnType:l,promisedTypeNode:f,promisedType:u}}function Txe(e,t,r,i){e.replaceNode(t,r,I.createTypeReferenceNode("Promise",[i]))}var lj,pte,YVe=Bt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){Wr(),Ks(),lj="fixReturnTypeInAsyncFunction",pte=[p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Xs({errorCodes:pte,fixIds:[lj],getCodeActions:function(t){const{sourceFile:r,program:i,span:a}=t,o=i.getTypeChecker(),l=bxe(r,i.getTypeChecker(),a.start);if(!l)return;const{returnTypeNode:u,returnType:f,promisedTypeNode:g,promisedType:m}=l,y=er.ChangeTracker.with(t,x=>Txe(x,r,u,g));return[Rs(lj,y,[p.Replace_0_with_Promise_1,o.typeToString(f),o.typeToString(m)],lj,p.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ya(e,pte,(t,r)=>{const i=bxe(r.file,e.program.getTypeChecker(),r.start);i&&Txe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function xxe(e,t,r,i){const{line:a}=vo(t,r);(!i||Lv(i,a))&&e.insertCommentBeforeLine(t,a,r," @ts-ignore")}var dte,mte,gte,ZVe=Bt({"src/services/codefixes/disableJsDiagnostics.ts"(){Wr(),Ks(),dte="disableJsDiagnostics",mte="disableJsDiagnostics",gte=qi(Object.keys(p),e=>{const t=p[e];return t.category===1?t.code:void 0}),Xs({errorCodes:gte,getCodeActions:function(t){const{sourceFile:r,program:i,span:a,host:o,formatContext:l}=t;if(!Zn(r)||!FD(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":r0(o,l.options),f=[Ip(dte,[A2e(r.fileName,[P5(r.checkJsDirective?ll(r.checkJsDirective.pos,r.checkJsDirective.end):yl(0,0),`// @ts-nocheck${u}`)])],p.Disable_checking_for_this_file)];return er.isValidLocationToAddComment(r,a.start)&&f.unshift(Rs(dte,er.ChangeTracker.with(t,g=>xxe(g,r,a.start)),p.Ignore_this_error_message,mte,p.Add_ts_ignore_to_all_error_messages)),f},fixIds:[mte],getAllCodeActions:e=>{const t=new Set;return Ya(e,gte,(r,i)=>{er.isValidLocationToAddComment(i.file,i.start)&&xxe(r,i.file,i.start,t)})}})}});function hte(e,t,r,i,a,o,l){const u=e.symbol.members;for(const f of t)u.has(f.escapedName)||Sxe(f,e,r,i,a,o,l,void 0)}function WS(e){return{trackSymbol:()=>!1,moduleResolverHost:IY(e.program,e.host)}}function Sxe(e,t,r,i,a,o,l,u,f=3,g=!1){var re;const m=e.getDeclarations(),y=wl(m),x=i.program.getTypeChecker(),k=Oa(i.program.getCompilerOptions()),C=(re=y==null?void 0:y.kind)!=null?re:171,N=Q(e,y),D=y?I_(y):0;let M=D&32;M|=D&4?4:D&16?16:0,y&&eu(y)&&(M|=128);const V=Z(),U=x.getWidenedType(x.getTypeOfSymbolAtLocation(e,t)),Y=!!(e.flags&16777216),j=!!(t.flags&33554432)||g,ee=Mf(r,a);switch(C){case 171:case 172:const ue=ee===0?268435456:void 0;let fe=x.typeToTypeNode(U,t,ue,WS(i));if(o){const Ne=DT(fe,k);Ne&&(fe=Ne.typeNode,qS(o,Ne.symbols))}l(I.createPropertyDeclaration(V,y?_e(N):e.getName(),Y&&f&2?I.createToken(58):void 0,fe,void 0));break;case 177:case 178:{E.assertIsDefined(m);let Ne=x.typeToTypeNode(U,t,void 0,WS(i));const De=Ub(m,y),Xe=De.secondAccessor?[De.firstAccessor,De.secondAccessor]:[De.firstAccessor];if(o){const ve=DT(Ne,k);ve&&(Ne=ve.typeNode,qS(o,ve.symbols))}for(const ve of Xe)if(gf(ve))l(I.createGetAccessorDeclaration(V,_e(N),Ve,H(Ne),X(u,ee,j)));else{E.assertNode(ve,Fu,"The counterpart to a getter should be a setter");const be=y3(ve),xe=be&&we(be.name)?lr(be.name):void 0;l(I.createSetAccessorDeclaration(V,_e(N),vte(1,[xe],[H(Ne)],1,!1),X(u,ee,j)))}break}case 173:case 174:E.assertIsDefined(m);const G=U.isUnion()?Na(U.types,Ne=>Ne.getCallSignatures()):U.getCallSignatures();if(!dt(G))break;if(m.length===1){E.assert(G.length===1,"One declaration implies one signature");const Ne=G[0];R(ee,Ne,V,_e(N),X(u,ee,j));break}for(const Ne of G)R(ee,Ne,V,_e(N));if(!j)if(m.length>G.length){const Ne=x.getSignatureFromDeclaration(m[m.length-1]);R(ee,Ne,V,_e(N),X(u,ee))}else E.assert(m.length===G.length,"Declarations and signatures should match count"),l(tUe(x,i,t,G,_e(N),Y&&!!(f&1),V,ee,u));break}function R(ue,fe,G,Ne,De){const Xe=_j(174,i,ue,fe,De,Ne,G,Y&&!!(f&1),t,o);Xe&&l(Xe)}function Z(){let ue;return M&&(ue=Vk(ue,I.createModifiersFromModifierFlags(M))),oe()&&(ue=gn(ue,I.createToken(164))),ue&&I.createNodeArray(ue)}function oe(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&o2(y))}function _e(ue){return we(ue)&&ue.escapedText==="constructor"?I.createComputedPropertyName(I.createStringLiteral(lr(ue),ee===0)):Io(ue,!1)}function X(ue,fe,G){return G?void 0:Io(ue,!1)||bte(fe)}function H(ue){return Io(ue,!1)}function Q(ue,fe){if(rc(ue)&262144){const G=ue.links.nameType;if(G&&rp(G))return I.createIdentifier(Li(ip(G)))}return Io(os(fe),!1)}}function _j(e,t,r,i,a,o,l,u,f,g){const m=t.program,y=m.getTypeChecker(),x=Oa(m.getCompilerOptions()),k=Zn(f),C=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,f,C,WS(t));if(!N)return;let D=k?void 0:N.typeParameters,M=N.parameters,V=k?void 0:N.type;if(g){if(D){const ee=cl(D,R=>{let Z=R.constraint,oe=R.default;if(Z){const _e=DT(Z,x);_e&&(Z=_e.typeNode,qS(g,_e.symbols))}if(oe){const _e=DT(oe,x);_e&&(oe=_e.typeNode,qS(g,_e.symbols))}return I.updateTypeParameterDeclaration(R,R.modifiers,R.name,Z,oe)});D!==ee&&(D=Ke(I.createNodeArray(ee,D.hasTrailingComma),D))}const j=cl(M,ee=>{let R=k?void 0:ee.type;if(R){const Z=DT(R,x);Z&&(R=Z.typeNode,qS(g,Z.symbols))}return I.updateParameterDeclaration(ee,ee.modifiers,ee.dotDotDotToken,ee.name,k?void 0:ee.questionToken,R,ee.initializer)});if(M!==j&&(M=Ke(I.createNodeArray(j,M.hasTrailingComma),M)),V){const ee=DT(V,x);ee&&(V=ee.typeNode,qS(g,ee.symbols))}}const U=u?I.createToken(58):void 0,Y=N.asteriskToken;if(fo(N))return I.updateFunctionExpression(N,l,N.asteriskToken,Hr(o,we),D,M,V,a!=null?a:N.body);if(Po(N))return I.updateArrowFunction(N,l,D,M,V,N.equalsGreaterThanToken,a!=null?a:N.body);if(Ec(N))return I.updateMethodDeclaration(N,l,Y,o!=null?o:I.createIdentifier(""),U,D,M,V,a);if(tl(N))return I.updateFunctionDeclaration(N,l,N.asteriskToken,Hr(o,we),D,M,V,a!=null?a:N.body)}function yte(e,t,r,i,a,o,l){const u=Mf(t.sourceFile,t.preferences),f=Oa(t.program.getCompilerOptions()),g=WS(t),m=t.program.getTypeChecker(),y=Zn(l),{typeArguments:x,arguments:k,parent:C}=i,N=y?void 0:m.getContextualType(i),D=an(k,oe=>we(oe)?oe.text:kr(oe)&&we(oe.name)?oe.name.text:void 0),M=y?[]:an(k,oe=>m.getTypeAtLocation(oe)),{argumentTypeNodes:V,argumentTypeParameters:U}=Exe(m,r,M,l,f,1,g),Y=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,j=yF(C)?I.createToken(42):void 0,ee=y?void 0:KVe(m,U,x),R=vte(k.length,D,V,void 0,y),Z=y||N===void 0?void 0:m.typeToTypeNode(N,l,void 0,g);switch(e){case 174:return I.createMethodDeclaration(Y,j,a,void 0,ee,R,Z,bte(u));case 173:return I.createMethodSignature(Y,a,void 0,ee,R,Z===void 0?I.createKeywordTypeNode(159):Z);case 262:return E.assert(typeof a=="string"||we(a),"Unexpected name"),I.createFunctionDeclaration(Y,j,a,ee,R,Z,wN(p.Function_not_implemented.message,u));default:E.fail("Unexpected kind")}}function KVe(e,t,r){const i=new Set(t.map(o=>o[0])),a=new Map(t);if(r){const o=r.filter(u=>!t.some(f=>{var g;return e.getTypeAtLocation(u)===((g=f[1])==null?void 0:g.argumentType)})),l=i.size+o.length;for(let u=0;i.size{var l;return I.createTypeParameterDeclaration(void 0,o,(l=a.get(o))==null?void 0:l.constraint)})}function kxe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function uj(e,t,r,i,a,o,l){let u=e.typeToTypeNode(r,i,o,l);if(u&&ag(u)){const f=DT(u,a);f&&(qS(t,f.symbols),u=f.typeNode)}return Io(u)}function Cxe(e){return e.isUnionOrIntersection()?e.types.some(Cxe):e.flags&262144}function Exe(e,t,r,i,a,o,l){const u=[],f=new Map;for(let g=0;g=i?I.createToken(58):void 0,a?void 0:(r==null?void 0:r[u])||I.createKeywordTypeNode(159),void 0);o.push(m)}return o}function tUe(e,t,r,i,a,o,l,u,f){let g=i[0],m=i[0].minArgumentCount,y=!1;for(const N of i)m=Math.min(N.minArgumentCount,m),d_(N)&&(y=!0),N.parameters.length>=g.parameters.length&&(!d_(N)||d_(g))&&(g=N);const x=g.parameters.length-(d_(g)?1:0),k=g.parameters.map(N=>N.name),C=vte(x,k,void 0,m,!1);if(y){const N=I.createParameterDeclaration(void 0,I.createToken(26),k[x]||"rest",x>=m?I.createToken(58):void 0,I.createArrayTypeNode(I.createKeywordTypeNode(159)),void 0);C.push(N)}return rUe(l,a,o,void 0,C,nUe(i,e,t,r),u,f)}function nUe(e,t,r,i){if(Pn(e)){const a=t.getUnionType(an(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(a,i,1,WS(r))}}function rUe(e,t,r,i,a,o,l,u){return I.createMethodDeclaration(e,void 0,t,r?I.createToken(58):void 0,i,a,o,u||bte(l))}function bte(e){return wN(p.Method_not_implemented.message,e)}function wN(e,t){return I.createBlock([I.createThrowStatement(I.createNewExpression(I.createIdentifier("Error"),void 0,[I.createStringLiteral(e,t===0)]))],!0)}function Tte(e,t,r){const i=r3(t);if(!i)return;const a=Ste(i,"compilerOptions");if(a===void 0){e.insertNodeAtObjectStart(t,i,fj("compilerOptions",I.createObjectLiteralExpression(r.map(([l,u])=>fj(l,u)),!0)));return}const o=a.initializer;if(!!ha(o))for(const[l,u]of r){const f=Ste(o,l);f===void 0?e.insertNodeAtObjectStart(t,o,fj(l,u)):e.replaceNode(t,f.initializer,u)}}function xte(e,t,r,i){Tte(e,t,[[r,i]])}function fj(e,t){return I.createPropertyAssignment(I.createStringLiteral(e),t)}function Ste(e,t){return Fr(e.properties,r=>Dc(r)&&!!r.name&&pa(r.name)&&r.name.text===t)}function DT(e,t){let r;const i=Ue(e,a,Di);if(r&&i)return{typeNode:i,symbols:r};function a(o){if(my(o)&&o.qualifier){const l=Ku(o.qualifier),u=QM(l.symbol,t),f=u!==l.text?Dxe(o.qualifier,I.createIdentifier(u)):o.qualifier;r=gn(r,l.symbol);const g=An(o.typeArguments,a,Di);return I.createTypeReferenceNode(f,g)}return pn(o,a,n0)}}function Dxe(e,t){return e.kind===80?t:I.createQualifiedName(Dxe(e.left,t),e.right)}function qS(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function kte(e,t){const r=Zl(t);let i=Vi(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Cte||{})}});function Axe(e,t,r,i,a,o){const l=Ixe(e,t,r,i);if(!l||BS.isRefactorErrorInfo(l))return;const u=er.ChangeTracker.fromContext(a),{isStatic:f,isReadonly:g,fieldName:m,accessorName:y,originalName:x,type:k,container:C,declaration:N}=l;Bu(m),Bu(y),Bu(N),Bu(C);let D,M;if(ei(C)){const U=I_(N);if(P_(e)){const Y=I.createModifiersFromModifierFlags(U);D=Y,M=Y}else D=I.createModifiersFromModifierFlags(oUe(U)),M=I.createModifiersFromModifierFlags(cUe(U));iT(N)&&(M=Ki(Yh(N),M))}pUe(u,e,N,k,m,M);const V=lUe(m,y,k,D,f,C);if(Bu(V),Oxe(u,e,V,N,C),g){const U=eg(C);U&&dUe(u,e,U,m.text,x)}else{const U=_Ue(m,y,k,D,f,C);Bu(U),Oxe(u,e,U,N,C)}return u.getChanges()}function sUe(e){return we(e)||pa(e)}function aUe(e){return Du(e,e.parent)||Is(e)||Dc(e)}function Nxe(e,t){return we(t)?I.createIdentifier(e):I.createStringLiteral(e)}function Pxe(e,t,r){const i=t?r.name:I.createThis();return we(e)?I.createPropertyAccessExpression(i,e):I.createElementAccessExpression(i,I.createStringLiteralFromNode(e))}function oUe(e){return e&=-65,e&=-9,e&16||(e|=4),e}function cUe(e){return e&=-5,e&=-17,e|=8,e}function Ixe(e,t,r,i,a=!0){const o=Vi(e,r),l=r===i&&a,u=On(o.parent,aUe),f=124;if(!u||!(mY(u.name,e,r,i)||l))return{error:ss(p.Could_not_find_property_for_which_to_generate_accessor)};if(!sUe(u.name))return{error:ss(p.Name_is_not_valid)};if((I_(u)&126975|f)!==f)return{error:ss(p.Can_only_convert_property_with_modifier)};const g=u.name.text,m=nZ(g),y=Nxe(m?g:xT(`_${g}`,e),u.name),x=Nxe(m?xT(g.substring(1),e):g,u.name);return{isStatic:$c(u),isReadonly:v3(u),type:mUe(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:y,accessorName:x,renameAccessor:m}}function lUe(e,t,r,i,a,o){return I.createGetAccessorDeclaration(i,t,[],r,I.createBlock([I.createReturnStatement(Pxe(e,a,o))],!0))}function _Ue(e,t,r,i,a,o){return I.createSetAccessorDeclaration(i,t,[I.createParameterDeclaration(void 0,void 0,I.createIdentifier("value"),void 0,r)],I.createBlock([I.createExpressionStatement(I.createAssignment(Pxe(e,a,o),I.createIdentifier("value")))],!0))}function uUe(e,t,r,i,a,o){const l=I.updatePropertyDeclaration(r,o,a,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function fUe(e,t,r,i){let a=I.updatePropertyAssignment(r,i,r.initializer);(a.modifiers||a.questionToken||a.exclamationToken)&&(a===r&&(a=I.cloneNode(a)),a.modifiers=void 0,a.questionToken=void 0,a.exclamationToken=void 0),e.replacePropertyAssignment(t,r,a)}function pUe(e,t,r,i,a,o){Is(r)?uUe(e,t,r,i,a,o):Dc(r)?fUe(e,t,r,a):e.replaceNode(t,r,I.updateParameterDeclaration(r,o,r.dotDotDotToken,Ms(a,we),r.questionToken,r.type,r.initializer))}function Oxe(e,t,r,i,a){Du(i,i.parent)?e.insertMemberAtStart(t,a,r):Dc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function dUe(e,t,r,i,a){!r.body||r.body.forEachChild(function o(l){No(l)&&l.expression.kind===110&&pa(l.argumentExpression)&&l.argumentExpression.text===a&&w3(l)&&e.replaceNode(t,l.argumentExpression,I.createStringLiteral(i)),kr(l)&&l.expression.kind===110&&l.name.text===a&&w3(l)&&e.replaceNode(t,l.name,I.createIdentifier(i)),!ks(l)&&!ei(l)&&l.forEachChild(o)})}function mUe(e,t){const r=C_e(e);if(Is(e)&&r&&e.questionToken){const i=t.getTypeChecker(),a=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),a)){const o=aS(r)?r.types:[r];return I.createUnionTypeNode([...o,I.createKeywordTypeNode(157)])}}return r}function Ete(e,t){const r=[];for(;e;){const i=r2(e),a=i&&t.getSymbolAtLocation(i.expression);if(!a)break;const o=a.flags&2097152?t.getAliasedSymbol(a):a,l=o.declarations&&Fr(o.declarations,ei);if(!l)break;r.push(l),e=l}return r}var gUe=Bt({"src/services/codefixes/generateAccessors.ts"(){Wr()}});function hUe(e,t){const r=Bn(t),i=T6(t),a=e.program.getCompilerOptions(),o=[];return o.push(Fxe(e,r,t,_h(i.name,void 0,t.moduleSpecifier,Mf(r,e.preferences)))),Ul(a)===1&&o.push(Fxe(e,r,t,I.createImportEqualsDeclaration(void 0,!1,i.name,I.createExternalModuleReference(t.moduleSpecifier)))),o}function Fxe(e,t,r,i){const a=er.ChangeTracker.with(e,o=>o.replaceNode(t,r,i));return Ip(wte,a,[p.Replace_import_with_0,a[0].textChanges[0].newText])}function yUe(e){const t=e.sourceFile,r=p.This_expression_is_not_callable.code===e.errorCode?213:214,i=On(Vi(t,e.span.start),o=>o.kind===r);if(!i)return[];const a=i.expression;return Lxe(e,a)}function vUe(e){const t=e.sourceFile,r=On(Vi(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?Lxe(e,r):[]}function Lxe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&pm(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],a=r.symbol.links.originatingImport;if(Zu(a)||Lr(i,hUe(e,a)),nt(t)&&!(A_(t.parent)&&t.parent.name===t)){const o=e.sourceFile,l=er.ChangeTracker.with(e,u=>u.replaceNode(o,t,I.createPropertyAccessExpression(t,"default"),{}));i.push(Ip(wte,l,p.Use_synthetic_default_member))}return i}var wte,bUe=Bt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){Wr(),Ks(),wte="invalidImportSyntax",Xs({errorCodes:[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],getCodeActions:yUe}),Xs({errorCodes:[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_does_not_satisfy_the_constraint_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_predicate_0_is_not_assignable_to_1.code,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,p._0_index_type_1_is_not_assignable_to_2_index_type_3.code,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:vUe})}});function Mxe(e,t){const r=Vi(e,t);if(we(r)&&Is(r.parent)){const i=Vl(r.parent);if(i)return{type:i,prop:r.parent,isJs:Zn(r.parent)}}}function TUe(e,t){if(t.isJs)return;const r=er.ChangeTracker.with(e,i=>Rxe(i,e.sourceFile,t.prop));return Rs(pj,r,[p.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],dj,p.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Rxe(e,t,r){Bu(r);const i=I.updatePropertyDeclaration(r,r.modifiers,r.name,I.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function xUe(e,t){const r=er.ChangeTracker.with(e,i=>Bxe(i,e.sourceFile,t));return Rs(pj,r,[p.Add_undefined_type_to_property_0,t.prop.name.getText()],mj,p.Add_undefined_type_to_all_uninitialized_properties)}function Bxe(e,t,r){const i=I.createKeywordTypeNode(157),a=aS(r.type)?r.type.types.concat(i):[r.type,i],o=I.createUnionTypeNode(a);r.isJs?e.addJSDocTags(t,r.prop,[I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(o))]):e.replaceNode(t,r.type,o)}function SUe(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=Jxe(r,t.prop);if(!i)return;const a=er.ChangeTracker.with(e,o=>jxe(o,e.sourceFile,t.prop,i));return Rs(pj,a,[p.Add_initializer_to_property_0,t.prop.name.getText()],gj,p.Add_initializers_to_all_uninitialized_properties)}function jxe(e,t,r,i){Bu(r);const a=I.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,a)}function Jxe(e,t){return zxe(e,e.getTypeFromTypeNode(t.type))}function zxe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?I.createFalse():I.createTrue();if(t.isStringLiteral())return I.createStringLiteral(t.value);if(t.isNumberLiteral())return I.createNumericLiteral(t.value);if(t.flags&2048)return I.createBigIntLiteral(t.value);if(t.isUnion())return _c(t.types,r=>zxe(e,r));if(t.isClass()){const r=Xg(t.symbol);if(!r||Mr(r,256))return;const i=eg(r);return i&&i.parameters.length?void 0:I.createNewExpression(I.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return I.createArrayLiteralExpression()}var pj,dj,mj,gj,Dte,kUe=Bt({"src/services/codefixes/fixStrictClassInitialization.ts"(){Wr(),Ks(),pj="strictClassInitialization",dj="addMissingPropertyDefiniteAssignmentAssertions",mj="addMissingPropertyUndefinedType",gj="addMissingPropertyInitializer",Dte=[p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Xs({errorCodes:Dte,getCodeActions:function(t){const r=Mxe(t.sourceFile,t.span.start);if(!r)return;const i=[];return gn(i,xUe(t,r)),gn(i,TUe(t,r)),gn(i,SUe(t,r)),i},fixIds:[dj,mj,gj],getAllCodeActions:e=>Ya(e,Dte,(t,r)=>{const i=Mxe(r.file,r.start);if(!!i)switch(e.fixId){case dj:Rxe(t,r.file,i.prop);break;case mj:Bxe(t,r.file,i);break;case gj:const a=e.program.getTypeChecker(),o=Jxe(a,i.prop);if(!o)return;jxe(t,r.file,i.prop,o);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function Vxe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:a,namedImports:o,statement:l,required:u}=r;e.replaceNode(t,l,a&&!i?I.createImportEqualsDeclaration(void 0,!1,a,I.createExternalModuleReference(u)):I.createImportDeclaration(void 0,I.createImportClause(!1,a,o),u,void 0))}function Uxe(e,t,r){const{parent:i}=Vi(e,r);du(i,!0)||E.failBadSyntaxKind(i);const a=Ms(i.parent,Mi),o=Hr(a.name,we),l=td(a.name)?CUe(a.name):void 0;if(o||l)return{allowSyntheticDefaults:Qx(t.getCompilerOptions()),defaultImportName:o,namedImports:l,statement:Ms(a.parent.parent,ic),required:wa(i.arguments)}}function CUe(e){const t=[];for(const r of e.elements){if(!we(r.name)||r.initializer)return;t.push(I.createImportSpecifier(!1,Hr(r.propertyName,we),r.name))}if(t.length)return I.createNamedImports(t)}var hj,Ate,EUe=Bt({"src/services/codefixes/requireInTs.ts"(){Wr(),Ks(),hj="requireInTs",Ate=[p.require_call_may_be_converted_to_an_import.code],Xs({errorCodes:Ate,getCodeActions(e){const t=Uxe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=er.ChangeTracker.with(e,i=>Vxe(i,e.sourceFile,t));return[Rs(hj,r,p.Convert_require_to_import,hj,p.Convert_all_require_to_import)]},fixIds:[hj],getAllCodeActions:e=>Ya(e,Ate,(t,r)=>{const i=Uxe(r.file,e.program,r.start);i&&Vxe(t,e.sourceFile,i)})})}});function Wxe(e,t){const r=Vi(e,t);if(!we(r))return;const{parent:i}=r;if(Hl(i)&&km(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(p1(i)){const a=i.parent.parent;return{importNode:a,name:r,moduleSpecifier:a.moduleSpecifier}}}function qxe(e,t,r,i){e.replaceNode(t,r.importNode,_h(r.name,void 0,r.moduleSpecifier,Mf(t,i)))}var yj,Nte,wUe=Bt({"src/services/codefixes/useDefaultImport.ts"(){Wr(),Ks(),yj="useDefaultImport",Nte=[p.Import_may_be_converted_to_a_default_import.code],Xs({errorCodes:Nte,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=Wxe(t,r);if(!i)return;const a=er.ChangeTracker.with(e,o=>qxe(o,t,i,e.preferences));return[Rs(yj,a,p.Convert_to_default_import,yj,p.Convert_all_to_default_imports)]},fixIds:[yj],getAllCodeActions:e=>Ya(e,Nte,(t,r)=>{const i=Wxe(r.file,r.start);i&&qxe(t,r.file,i,e.preferences)})})}});function Hxe(e,t,r){const i=Hr(Vi(t,r.start),Ou);if(!i)return;const a=i.getText(t)+"n";e.replaceNode(t,i,I.createBigIntLiteral(a))}var vj,Pte,DUe=Bt({"src/services/codefixes/useBigintLiteral.ts"(){Wr(),Ks(),vj="useBigintLiteral",Pte=[p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Xs({errorCodes:Pte,getCodeActions:function(t){const r=er.ChangeTracker.with(t,i=>Hxe(i,t.sourceFile,t.span));if(r.length>0)return[Rs(vj,r,p.Convert_to_a_bigint_numeric_literal,vj,p.Convert_all_to_bigint_numeric_literals)]},fixIds:[vj],getAllCodeActions:e=>Ya(e,Pte,(t,r)=>Hxe(t,r.file,r))})}});function Gxe(e,t){const r=Vi(e,t);return E.assert(r.kind===102,"This token should be an ImportKeyword"),E.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function $xe(e,t,r){const i=I.updateImportTypeNode(r,r.argument,r.assertions,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var Xxe,bj,Ite,AUe=Bt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){Wr(),Ks(),Xxe="fixAddModuleReferTypeMissingTypeof",bj=Xxe,Ite=[p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Xs({errorCodes:Ite,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=Gxe(r,i.start),o=er.ChangeTracker.with(t,l=>$xe(l,r,a));return[Rs(bj,o,p.Add_missing_typeof,bj,p.Add_missing_typeof)]},fixIds:[bj],getAllCodeActions:e=>Ya(e,Ite,(t,r)=>$xe(t,e.sourceFile,Gxe(r.file,r.start)))})}});function Qxe(e,t){let a=Vi(e,t).parent.parent;if(!(!rr(a)&&(a=a.parent,!rr(a)))&&!!fc(a.operatorToken))return a}function Yxe(e,t,r){const i=NUe(r);i&&e.replaceNode(t,r,I.createJsxFragment(I.createJsxOpeningFragment(),i,I.createJsxJsxClosingFragment()))}function NUe(e){const t=[];let r=e;for(;;)if(rr(r)&&fc(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),Dw(r.right))return t.push(r.right),t;if(rr(r.right)){r=r.right;continue}else return}else return}var Tj,Ote,PUe=Bt({"src/services/codefixes/wrapJsxInFragment.ts"(){Wr(),Ks(),Tj="wrapJsxInFragment",Ote=[p.JSX_expressions_must_have_one_parent_element.code],Xs({errorCodes:Ote,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=Qxe(r,i.start);if(!a)return;const o=er.ChangeTracker.with(t,l=>Yxe(l,r,a));return[Rs(Tj,o,p.Wrap_in_JSX_fragment,Tj,p.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Tj],getAllCodeActions:e=>Ya(e,Ote,(t,r)=>{const i=Qxe(e.sourceFile,r.start);!i||Yxe(t,e.sourceFile,i)})})}});function Zxe(e,t){const r=Vi(e,t),i=Hr(r.parent.parent,Xb);if(!i)return;const a=f_(i.parent)?i.parent:Hr(i.parent.parent,wp);if(!!a)return{indexSignature:i,container:a}}function IUe(e,t){return I.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function Kxe(e,t,{indexSignature:r,container:i}){const o=(f_(i)?i.members:i.type.members).filter(m=>!Xb(m)),l=wa(r.parameters),u=I.createTypeParameterDeclaration(void 0,Ms(l.name,we),l.type),f=I.createMappedTypeNode(v3(r)?I.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),g=I.createIntersectionTypeNode([..._3(i),f,...o.length?[I.createTypeLiteralNode(o)]:Ve]);e.replaceNode(t,i,IUe(i,g))}var xj,Fte,OUe=Bt({"src/services/codefixes/convertToMappedObjectType.ts"(){Wr(),Ks(),xj="fixConvertToMappedObjectType",Fte=[p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Xs({errorCodes:Fte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=Zxe(r,i.start);if(!a)return;const o=er.ChangeTracker.with(t,u=>Kxe(u,r,a)),l=lr(a.container.name);return[Rs(xj,o,[p.Convert_0_to_mapped_object_type,l],xj,[p.Convert_0_to_mapped_object_type,l])]},fixIds:[xj],getAllCodeActions:e=>Ya(e,Fte,(t,r)=>{const i=Zxe(r.file,r.start);i&&Kxe(t,r.file,i)})})}}),Lte,eSe,FUe=Bt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){Wr(),Ks(),Lte="removeAccidentalCallParentheses",eSe=[p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Xs({errorCodes:eSe,getCodeActions(e){const t=On(Vi(e.sourceFile,e.span.start),js);if(!t)return;const r=er.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Ip(Lte,r,p.Remove_parentheses)]},fixIds:[Lte]})}});function tSe(e,t,r){const i=Hr(Vi(t,r.start),u=>u.kind===135),a=i&&Hr(i.parent,f1);if(!a)return;let o=a;if(hu(a.parent)){const u=A3(a.expression,!1);if(we(u)){const f=rl(a.parent.pos,t);f&&f.kind!==105&&(o=a.parent)}}e.replaceNode(t,o,a.expression)}var Sj,Mte,LUe=Bt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){Wr(),Ks(),Sj="removeUnnecessaryAwait",Mte=[p.await_has_no_effect_on_the_type_of_this_expression.code],Xs({errorCodes:Mte,getCodeActions:function(t){const r=er.ChangeTracker.with(t,i=>tSe(i,t.sourceFile,t.span));if(r.length>0)return[Rs(Sj,r,p.Remove_unnecessary_await,Sj,p.Remove_all_unnecessary_uses_of_await)]},fixIds:[Sj],getAllCodeActions:e=>Ya(e,Mte,(t,r)=>tSe(t,r.file,r))})}});function nSe(e,t){return On(Vi(e,t.start),bl)}function rSe(e,t,r){if(!t)return;const i=E.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,I.updateImportDeclaration(t,t.modifiers,I.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(r.sourceFile,t,I.createImportDeclaration(void 0,I.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.assertClause))}var Rte,kj,MUe=Bt({"src/services/codefixes/splitTypeOnlyImport.ts"(){Wr(),Ks(),Rte=[p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],kj="splitTypeOnlyImport",Xs({errorCodes:Rte,fixIds:[kj],getCodeActions:function(t){const r=er.ChangeTracker.with(t,i=>rSe(i,nSe(t.sourceFile,t.span),t));if(r.length)return[Rs(kj,r,p.Split_into_two_separate_import_declarations,kj,p.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ya(e,Rte,(t,r)=>{rSe(t,nSe(e.sourceFile,r),e)})})}});function iSe(e,t,r){var i;const o=r.getTypeChecker().getSymbolAtLocation(Vi(e,t));if(o===void 0)return;const l=Hr((i=o==null?void 0:o.valueDeclaration)==null?void 0:i.parent,dl);if(l===void 0)return;const u=$a(l,87,e);if(u!==void 0)return{symbol:o,token:u}}function sSe(e,t,r){e.replaceNode(t,r,I.createToken(121))}var Cj,Bte,RUe=Bt({"src/services/codefixes/convertConstToLet.ts"(){Wr(),Ks(),Cj="fixConvertConstToLet",Bte=[p.Cannot_assign_to_0_because_it_is_a_constant.code],Xs({errorCodes:Bte,getCodeActions:function(t){const{sourceFile:r,span:i,program:a}=t,o=iSe(r,i.start,a);if(o===void 0)return;const l=er.ChangeTracker.with(t,u=>sSe(u,r,o.token));return[JK(Cj,l,p.Convert_const_to_let,Cj,p.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return zS(er.ChangeTracker.with(e,i=>{VS(e,Bte,a=>{const o=iSe(a.file,a.start,t);if(o&&Kp(r,ya(o.symbol)))return sSe(i,a.file,o.token)})}))},fixIds:[Cj]})}});function aSe(e,t,r){const i=Vi(e,t);return i.kind===27&&i.parent&&(ha(i.parent)||u_(i.parent))?{node:i}:void 0}function oSe(e,t,{node:r}){const i=I.createToken(28);e.replaceNode(t,r,i)}var Ej,cSe,jte,BUe=Bt({"src/services/codefixes/fixExpectedComma.ts"(){Wr(),Ks(),Ej="fixExpectedComma",cSe=p._0_expected.code,jte=[cSe],Xs({errorCodes:jte,getCodeActions(e){const{sourceFile:t}=e,r=aSe(t,e.span.start,e.errorCode);if(!r)return;const i=er.ChangeTracker.with(e,a=>oSe(a,t,r));return[Rs(Ej,i,[p.Change_0_to_1,";",","],Ej,[p.Change_0_to_1,";",","])]},fixIds:[Ej],getAllCodeActions:e=>Ya(e,jte,(t,r)=>{const i=aSe(r.file,r.start,r.code);i&&oSe(t,e.sourceFile,i)})})}});function lSe(e,t,r,i,a){const o=Vi(t,r.start);if(!we(o)||!js(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(o),f=u==null?void 0:u.valueDeclaration;if(!f||!ns(f)||!f2(f.parent.parent)||a!=null&&a.has(f))return;a==null||a.add(f);const g=jUe(f.parent.parent);if(dt(g)){const m=g[0],y=!aS(m)&&!cS(m)&&cS(I.createUnionTypeNode([m,I.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,y?") | void":" | void")}else{const m=l.getResolvedSignature(o.parent),y=m==null?void 0:m.parameters[0],x=y&&l.getTypeOfSymbolAtLocation(y,f.parent.parent);Zn(f)?(!x||x.flags&3)&&(e.insertText(t,f.parent.parent.end,")"),e.insertText(t,ua(t.text,f.parent.parent.pos),"/** @type {Promise} */(")):(!x||x.flags&2)&&e.insertText(t,f.parent.parent.expression.end,"")}}function jUe(e){var t;if(Zn(e)){if(hu(e.parent)){const r=(t=fy(e.parent))==null?void 0:t.typeExpression.type;if(r&&sp(r)&&we(r.typeName)&&lr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var _Se,Jte,zte,JUe=Bt({"src/services/codefixes/fixAddVoidToPromise.ts"(){Wr(),Ks(),_Se="addVoidToPromise",Jte="addVoidToPromise",zte=[p.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,p.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Xs({errorCodes:zte,fixIds:[Jte],getCodeActions(e){const t=er.ChangeTracker.with(e,r=>lSe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[Rs(_Se,t,p.Add_void_to_Promise_resolved_without_a_value,Jte,p.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ya(e,zte,(t,r)=>lSe(t,r.file,r,e.program,new Set))}})}}),n_={};C_(n_,{PreserveOptionalFlags:()=>Cte,addNewNodeForMemberSymbol:()=>Sxe,codeFixAll:()=>Ya,createCodeFixAction:()=>Rs,createCodeFixActionMaybeFixAll:()=>JK,createCodeFixActionWithoutFixAll:()=>Ip,createCombinedCodeActions:()=>zS,createFileTextChanges:()=>A2e,createImportAdder:()=>ET,createImportSpecifierResolver:()=>eze,createJsonPropertyAssignment:()=>fj,createMissingMemberNodes:()=>hte,createSignatureDeclarationFromCallExpression:()=>yte,createSignatureDeclarationFromSignature:()=>_j,createStubbedBody:()=>wN,eachDiagnostic:()=>VS,findAncestorMatchingSpan:()=>kte,findJsonProperty:()=>Ste,generateAccessorFromProperty:()=>Axe,getAccessorConvertiblePropertyAtPosition:()=>Ixe,getAllFixes:()=>Nje,getAllSupers:()=>Ete,getArgumentTypesAndTypeParameters:()=>Exe,getFixes:()=>Aje,getImportCompletionAction:()=>tze,getImportKind:()=>dee,getJSDocTypedefNodes:()=>XJe,getNoopSymbolTrackerWithResolver:()=>WS,getPromoteTypeOnlyCompletionAction:()=>nze,getSupportedErrorCodes:()=>wje,importFixName:()=>bee,importSymbols:()=>qS,moduleSpecifierToValidIdentifier:()=>vee,moduleSymbolToValidIdentifier:()=>yee,parameterShouldGetTypeFromJSDoc:()=>$2e,registerCodeFix:()=>Xs,setJsonCompilerOptionValue:()=>xte,setJsonCompilerOptionValues:()=>Tte,tryGetAutoImportableReferenceFromTypeNode:()=>DT,typeToAutoImportableTypeNode:()=>uj});var Ks=Bt({"src/services/_namespaces/ts.codefix.ts"(){Pje(),Ije(),Oje(),Mje(),zje(),qje(),Hje(),Gje(),$je(),Zje(),cJe(),_Je(),TJe(),jJe(),JJe(),VJe(),UJe(),QJe(),YJe(),KJe(),xze(),Cze(),Dze(),Aze(),Nze(),Oze(),Mze(),jze(),Wze(),eVe(),nVe(),rVe(),sVe(),aVe(),oVe(),cVe(),_Ve(),uVe(),fVe(),pVe(),dVe(),gVe(),vVe(),SVe(),IVe(),FVe(),LVe(),BVe(),jVe(),zVe(),VVe(),QVe(),YVe(),ZVe(),iUe(),gUe(),bUe(),kUe(),EUe(),wUe(),DUe(),AUe(),PUe(),OUe(),FUe(),LUe(),MUe(),RUe(),BUe(),JUe()}});function zUe(e){return!!(e.kind&1)}function VUe(e){return!!(e.kind&2)}function DN(e){return!!(e&&e.kind&4)}function F4(e){return!!(e&&e.kind===32)}function UUe(e){return DN(e)||F4(e)||Vte(e)}function WUe(e){return(DN(e)||F4(e))&&!!e.isFromPackageJson}function qUe(e){return!!(e.kind&8)}function HUe(e){return!!(e.kind&16)}function uSe(e){return!!(e&&e.kind&64)}function fSe(e){return!!(e&&e.kind&128)}function GUe(e){return!!(e&&e.kind&256)}function Vte(e){return!!(e&&e.kind&512)}function pSe(e,t,r,i,a,o,l,u,f){var g,m,y;const x=Uo(),k=l||Yx(Cc(i.getCompilerOptions()));let C=!1,N=0,D=0,M=0,V=0;const U=f({tryResolve:j,skippedAny:()=>C,resolvedAny:()=>D>0,resolvedBeyondLimit:()=>D>Mj}),Y=V?` (${(M/V*100).toFixed(1)}% hit rate)`:"";return(g=t.log)==null||g.call(t,`${e}: resolved ${D} module specifiers, plus ${N} ambient and ${M} from cache${Y}`),(m=t.log)==null||m.call(t,`${e}: response is ${C?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${Uo()-x}`),U;function j(ee,R){if(R){const X=r.getModuleSpecifierForBestExportInfo(ee,a,u);return X&&N++,X||"failed"}const Z=k||o.allowIncompleteCompletions&&D{const C=qi(f.entries,N=>{var D;if(!N.hasAction||!N.source||!N.data||dSe(N.data))return N;if(!jSe(N.name,m))return;const{origin:M}=E.checkDefined(ESe(N.name,N.data,i,a)),V=y.get(t.path,N.data.exportMapKey),U=V&&k.tryResolve(V,!Al(Cp(M.moduleSymbol.name)));if(U==="skipped")return N;if(!U||U==="failed"){(D=a.log)==null||D.call(a,`Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`);return}const Y={...M,kind:32,moduleSpecifier:U.moduleSpecifier};return N.data=xSe(Y),N.source=qte(Y),N.sourceDisplay=[vf(Y.moduleSpecifier)],N});return k.skippedAny()||(f.isIncomplete=void 0),C});return f.entries=x,f.flags=(f.flags||0)|4,f.optionalReplacementSpan=ySe(g),f}function Ute(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function mSe(e,t,r,i,a,o){const l=Vi(e,t);if(!a6(l)&&!Dp(l))return[];const u=Dp(l)?l:l.parent;if(!Dp(u))return[];const f=u.parent;if(!ks(f))return[];const g=P_(e),m=a.includeCompletionsWithSnippetText||void 0,y=L0(u.tags,x=>rd(x)&&x.getEnd()<=t);return qi(f.parameters,x=>{if(!Zk(x).length){if(we(x.name)){const k={tabstop:1},C=x.name.text;let N=gE(C,x.initializer,x.dotDotDotToken,g,!1,!1,r,i,a),D=m?gE(C,x.initializer,x.dotDotDotToken,g,!1,!0,r,i,a,k):void 0;return o&&(N=N.slice(1),D&&(D=D.slice(1))),{name:N,kind:"parameter",sortText:Gl.LocationPriority,insertText:m?D:void 0,isSnippet:m}}else if(x.parent.parameters.indexOf(x)===y){const k=`param${y}`,C=gSe(k,x.name,x.initializer,x.dotDotDotToken,g,!1,r,i,a),N=m?gSe(k,x.name,x.initializer,x.dotDotDotToken,g,!0,r,i,a):void 0;let D=C.join(Z0(i)+"* "),M=N==null?void 0:N.join(Z0(i)+"* ");return o&&(D=D.slice(1),M&&(M=M.slice(1))),{name:D,kind:"parameter",sortText:Gl.LocationPriority,insertText:m?M:void 0,isSnippet:m}}}})}function gSe(e,t,r,i,a,o,l,u,f){if(!a)return[gE(e,r,i,a,!1,o,l,u,f,{tabstop:1})];return g(e,t,r,i,{tabstop:1});function g(y,x,k,C,N){if(td(x)&&!C){const M={tabstop:N.tabstop},V=gE(y,k,C,a,!0,o,l,u,f,M);let U=[];for(const Y of x.elements){const j=m(y,Y,M);if(j)U.push(...j);else{U=void 0;break}}if(U)return N.tabstop=M.tabstop,[V,...U]}return[gE(y,k,C,a,!1,o,l,u,f,N)]}function m(y,x,k){if(!x.propertyName&&we(x.name)||we(x.name)){const C=x.propertyName?t3(x.propertyName):x.name.text;if(!C)return;const N=`${y}.${C}`;return[gE(N,x.initializer,x.dotDotDotToken,a,!1,o,l,u,f,k)]}else if(x.propertyName){const C=t3(x.propertyName);return C&&g(`${y}.${C}`,x.name,x.initializer,x.dotDotDotToken,k)}}}function gE(e,t,r,i,a,o,l,u,f,g){if(o&&E.assertIsDefined(g),t&&(e=QUe(e,t)),o&&(e=_2(e)),i){let m="*";if(a)E.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){const k=l.getTypeAtLocation(t.parent);if(!(k.flags&16385)){const C=t.getSourceFile(),D=Mf(C,f)===0?268435456:0,M=l.typeToTypeNode(k,On(t,ks),D);if(M){const V=o?Aj({removeComments:!0,module:u.module,target:u.target}):Ly({removeComments:!0,module:u.module,target:u.target});Xn(M,1),m=V.printNode(4,M,C)}}}o&&m==="*"&&(m=`\${${g.tabstop++}:${m}}`)}const y=!a&&r?"...":"",x=o?`\${${g.tabstop++}}`:"";return`@param {${y}${m}} ${e} ${x}`}else{const m=o?`\${${g.tabstop++}}`:"";return`@param ${e} ${m}`}}function QUe(e,t){const r=t.getText().trim();return r.includes(` -`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function YUe(e){return{name:sa(e),kind:"keyword",kindModifiers:"",sortText:Gl.GlobalsOrKeywords}}function ZUe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function hSe(e,t,r){return{kind:4,keywordCompletions:wSe(e,t),isNewIdentifierLocation:r}}function KUe(e){switch(e){case 156:return 8;default:E.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function ySe(e){return(e==null?void 0:e.kind)===80?au(e):void 0}function eWe(e,t,r,i,a,o,l,u,f,g){const{symbols:m,contextToken:y,completionKind:x,isInSnippetScope:k,isNewIdentifierLocation:C,location:N,propertyAccessToConvert:D,keywordFilters:M,symbolToOriginInfoMap:V,recommendedCompletion:U,isJsxInitializer:Y,isTypeOnlyLocation:j,isJsxIdentifierExpected:ee,isRightOfOpenTag:R,isRightOfDotOrQuestionDot:Z,importStatementCompletion:oe,insideJsDocTagTypeExpression:_e,symbolToSortTextMap:X,hasUnresolvedAutoImports:H}=o;let Q=o.literals;const re=r.getTypeChecker();if(ED(e.scriptKind)===1){const Xe=nWe(N,e);if(Xe)return Xe}const ue=On(y,e4);if(ue&&(wfe(y)||n2(y,ue.expression))){const Xe=eR(re,ue.parent.clauses);Q=Q.filter(ve=>!Xe.hasValue(ve)),m.forEach((ve,be)=>{if(ve.valueDeclaration&&y2(ve.valueDeclaration)){const xe=re.getConstantValue(ve.valueDeclaration);xe!==void 0&&Xe.hasValue(xe)&&(V[be]={kind:256})}})}const fe=aV(),G=vSe(e,i);if(G&&!C&&(!m||m.length===0)&&M===0)return;const Ne=Hte(m,fe,void 0,y,N,f,e,t,r,Oa(i),a,x,l,i,u,j,D,ee,Y,oe,U,V,X,ee,R,g);if(M!==0)for(const Xe of wSe(M,!_e&&P_(e)))(j&&J8(Uv(Xe.name))||!Ne.has(Xe.name))&&(Ne.add(Xe.name),qh(fe,Xe,AN,!0));for(const Xe of kWe(y,f))Ne.has(Xe.name)||(Ne.add(Xe.name),qh(fe,Xe,AN,!0));for(const Xe of Q){const ve=iWe(e,l,Xe);Ne.add(ve.name),qh(fe,ve,AN,!0)}G||rWe(e,N.pos,Ne,Oa(i),fe);let De;if(l.includeCompletionsWithInsertText&&y&&!R&&!Z&&(De=On(y,a8))){const Xe=bSe(De,e,l,i,t,r,u);Xe&&fe.push(Xe.entry)}return{flags:o.flags,isGlobalCompletion:k,isIncomplete:l.allowIncompleteCompletions&&H?!0:void 0,isMemberCompletion:tWe(x),isNewIdentifierLocation:C,optionalReplacementSpan:ySe(N),entries:fe}}function vSe(e,t){return!P_(e)||!!FD(e,t)}function bSe(e,t,r,i,a,o,l){const u=e.clauses,f=o.getTypeChecker(),g=f.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&$i(g.types,m=>m.isLiteral())){const m=eR(f,u),y=Oa(i),x=Mf(t,r),k=n_.createImportAdder(t,o,r,a),C=[];for(const j of g.types)if(j.flags&1024){E.assert(j.symbol,"An enum member type should have a symbol"),E.assert(j.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const ee=j.symbol.valueDeclaration&&f.getConstantValue(j.symbol.valueDeclaration);if(ee!==void 0){if(m.hasValue(ee))continue;m.addValue(ee)}const R=n_.typeToAutoImportableTypeNode(f,k,j,e,y);if(!R)return;const Z=wj(R,y,x);if(!Z)return;C.push(Z)}else if(!m.hasValue(j.value))switch(typeof j.value){case"object":C.push(j.value.negative?I.createPrefixUnaryExpression(41,I.createBigIntLiteral({negative:!1,base10Value:j.value.base10Value})):I.createBigIntLiteral(j.value));break;case"number":C.push(j.value<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-j.value)):I.createNumericLiteral(j.value));break;case"string":C.push(I.createStringLiteral(j.value,x===0));break}if(C.length===0)return;const N=an(C,j=>I.createCaseClause(j,[])),D=r0(a,l==null?void 0:l.options),M=Aj({removeComments:!0,module:i.module,target:i.target,newLine:U5(D)}),V=l?j=>M.printAndFormatNode(4,j,t,l):j=>M.printNode(4,j,t),U=an(N,(j,ee)=>r.includeCompletionsWithSnippetText?`${V(j)}$${ee+1}`:`${V(j)}`).join(D);return{entry:{name:`${M.printNode(4,N[0],t)} ...`,kind:"",sortText:Gl.GlobalsOrKeywords,insertText:U,hasAction:k.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:k}}}function wj(e,t,r){switch(e.kind){case 183:const i=e.typeName;return Dj(i,t,r);case 199:const a=wj(e.objectType,t,r),o=wj(e.indexType,t,r);return a&&o&&I.createElementAccessExpression(a,o);case 201:const l=e.literal;switch(l.kind){case 11:return I.createStringLiteral(l.text,r===0);case 9:return I.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:const u=wj(e.type,t,r);return u&&(we(u)?u:I.createParenthesizedExpression(u));case 186:return Dj(e.exprName,t,r);case 205:E.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Dj(e,t,r){if(we(e))return e;const i=Li(e.right.escapedText);return oH(i,t)?I.createPropertyAccessExpression(Dj(e.left,t,r),i):I.createElementAccessExpression(Dj(e.left,t,r),I.createStringLiteral(i,r===0))}function tWe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function nWe(e,t){const r=On(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!$a(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=au(r.tagName),f={name:l,kind:"class",kindModifiers:void 0,sortText:Gl.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[f]}}}function rWe(e,t,r,i,a){DK(e).forEach((o,l)=>{if(o===t)return;const u=Li(l);!r.has(u)&&pf(u,i)&&(r.add(u),qh(a,{name:u,kind:"warning",kindModifiers:"",sortText:Gl.JavascriptIdentifiers,isFromUncheckedFile:!0},AN))})}function Wte(e,t,r){return typeof r=="object"?l2(r)+"n":$s(r)?q8(e,t,r):JSON.stringify(r)}function iWe(e,t,r){return{name:Wte(e,t,r),kind:"string",kindModifiers:"",sortText:Gl.LocationPriority}}function sWe(e,t,r,i,a,o,l,u,f,g,m,y,x,k,C,N,D,M,V,U,Y,j,ee,R){var Z,oe;let _e,X,H=EY(r),Q,re,ue=qte(y),fe,G,Ne;const De=f.getTypeChecker(),Xe=y&&HUe(y),ve=y&&VUe(y)||m;if(y&&zUe(y))_e=m?`this${Xe?"?.":""}[${SSe(l,V,g)}]`:`this${Xe?"?.":"."}${g}`;else if((ve||Xe)&&k){_e=ve?m?`[${SSe(l,V,g)}]`:`[${g}]`:g,(Xe||k.questionDotToken)&&(_e=`?.${_e}`);const xe=$a(k,25,l)||$a(k,29,l);if(!xe)return;const rt=ts(g,k.name.text)?k.name.end:xe.end;H=ll(xe.getStart(l),rt)}if(C&&(_e===void 0&&(_e=g),_e=`{${_e}}`,typeof C!="boolean"&&(H=au(C,l))),y&&qUe(y)&&k){_e===void 0&&(_e=g);const xe=rl(k.pos,l);let rt="";xe&&UM(xe.end,xe.parent,l)&&(rt=";"),rt+=`(await ${k.expression.getText()})`,_e=m?`${rt}${_e}`:`${rt}${Xe?"?.":"."}${_e}`;const pe=Hr(k.parent,f1)?k.parent:k.expression;H=ll(pe.getStart(l),k.end)}if(F4(y)&&(fe=[vf(y.moduleSpecifier)],N&&({insertText:_e,replacementSpan:H}=fWe(g,N,y,D,l,M,V),re=V.includeCompletionsWithSnippetText?!0:void 0)),(y==null?void 0:y.kind)===64&&(G=!0),U===0&&i&&((Z=rl(i.pos,l,i))==null?void 0:Z.kind)!==28&&(Ec(i.parent.parent)||gf(i.parent.parent)||Fu(i.parent.parent)||ih(i.parent)||((oe=On(i.parent,Dc))==null?void 0:oe.getLastToken(l))===i||nf(i.parent)&&vo(l,i.getEnd()).line!==vo(l,o).line)&&(ue="ObjectLiteralMemberWithComma/",G=!0),V.includeCompletionsWithClassMemberSnippets&&V.includeCompletionsWithInsertText&&U===3&&aWe(e,a,l)){let xe;const rt=TSe(u,f,M,V,g,e,a,o,i,Y);if(rt)({insertText:_e,filterText:X,isSnippet:re,importAdder:xe}=rt),xe!=null&&xe.hasFixes()&&(G=!0,ue="ClassMemberSnippet/");else return}if(y&&fSe(y)&&({insertText:_e,isSnippet:re,labelDetails:Ne}=y,V.useLabelDetailsInCompletionEntries||(g=g+Ne.detail,Ne=void 0),ue="ObjectLiteralMethodSnippet/",t=Gl.SortBelow(t)),j&&!ee&&V.includeCompletionsWithSnippetText&&V.jsxAttributeCompletionStyle&&V.jsxAttributeCompletionStyle!=="none"&&!(zd(a.parent)&&a.parent.initializer)){let xe=V.jsxAttributeCompletionStyle==="braces";const rt=De.getTypeOfSymbolAtLocation(e,a);V.jsxAttributeCompletionStyle==="auto"&&!(rt.flags&528)&&!(rt.flags&1048576&&Fr(rt.types,ct=>!!(ct.flags&528)))&&(rt.flags&402653316||rt.flags&1048576&&$i(rt.types,ct=>!!(ct.flags&402686084||Qhe(ct)))?(_e=`${_2(g)}=${q8(l,V,"$1")}`,re=!0):xe=!0),xe&&(_e=`${_2(g)}={$1}`,re=!0)}if(_e!==void 0&&!V.includeCompletionsWithInsertText)return;(DN(y)||F4(y))&&(Q=xSe(y),G=!N);const be=On(a,lO);if((be==null?void 0:be.kind)===275){const xe=Uv(g);be&&xe&&(xe===135||lq(xe))&&(_e=`${g} as ${g}_`)}return{name:g,kind:fh.getSymbolKind(De,e,a),kindModifiers:fh.getSymbolModifiers(De,e),sortText:t,source:ue,hasAction:G?!0:void 0,isRecommended:pWe(e,x,De)||void 0,insertText:_e,filterText:X,replacementSpan:H,sourceDisplay:fe,labelDetails:Ne,isSnippet:re,isPackageJsonImport:WUe(y)||void 0,isImportStatementCompletion:!!N||void 0,data:Q,...R?{symbol:e}:void 0}}function aWe(e,t,r){if(Zn(t))return!1;const i=106500;return!!(e.flags&i)&&(ei(t)||t.parent&&t.parent.parent&&Nl(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ei(t.parent.parent)||t.parent&&a4(t)&&ei(t.parent))}function TSe(e,t,r,i,a,o,l,u,f,g){const m=On(l,ei);if(!m)return;let y,x=a;const k=a,C=t.getTypeChecker(),N=l.getSourceFile(),D=Aj({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:U5(r0(e,g==null?void 0:g.options))}),M=n_.createImportAdder(N,t,i,e);let V;if(i.includeCompletionsWithSnippetText){y=!0;const oe=I.createEmptyStatement();V=I.createBlock([oe],!0),jH(oe,{kind:0,order:0})}else V=I.createBlock([],!0);let U=0;const{modifiers:Y,range:j,decorators:ee}=oWe(f,N,u),R=Y&256&&m.modifierFlagsCache&256;let Z=[];if(n_.addNewNodeForMemberSymbol(o,m,N,{program:t,host:e},i,M,oe=>{let _e=0;R&&(_e|=256),Nl(oe)&&C.getMemberOverrideModifierStatus(m,oe,o)===1&&(_e|=16384),Z.length||(U=oe.modifierFlagsCache|_e),oe=I.updateModifiers(oe,U),Z.push(oe)},V,n_.PreserveOptionalFlags.Property,!!R),Z.length){const oe=o.flags&8192;let _e=U|16384|4;oe?_e|=512:_e|=66;const X=Y&_e;if(Y&~_e)return;if(U&16&&X&4&&(U&=-17),X!==0&&!(X&4)&&(U&=-5),U|=X,Z=Z.map(Q=>I.updateModifiers(Q,U)),ee!=null&&ee.length){const Q=Z[Z.length-1];iT(Q)&&(Z[Z.length-1]=I.updateModifierLike(Q,ee.concat(qv(Q)||[])))}const H=131073;g?x=D.printAndFormatSnippetList(H,I.createNodeArray(Z),N,g):x=D.printSnippetList(H,I.createNodeArray(Z),N)}return{insertText:x,filterText:k,isSnippet:y,importAdder:M,eraseRange:j}}function oWe(e,t,r){if(!e||vo(t,r).line>vo(t,e.getEnd()).line)return{modifiers:0};let i=0,a,o;const l={pos:r,end:r};if(Is(e.parent)&&e.parent.modifiers&&(i|=Fd(e.parent.modifiers)&126975,a=e.parent.modifiers.filter(Wl)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),o=cWe(e)){const u=Gx(o);i&u||(i|=u,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:a,range:l.pos!==r?l:void 0}}function cWe(e){if(Zs(e))return e.kind;if(we(e)){const t=uy(e);if(t&&W0(t))return t}}function lWe(e,t,r,i,a,o,l,u){const f=l.includeCompletionsWithSnippetText||void 0;let g=t;const m=r.getSourceFile(),y=_We(e,r,m,i,a,l);if(!y)return;const x=Aj({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:U5(r0(a,u==null?void 0:u.options))});u?g=x.printAndFormatSnippetList(80,I.createNodeArray([y],!0),m,u):g=x.printSnippetList(80,I.createNodeArray([y],!0),m);const k=Ly({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),C=I.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),N={detail:k.printNode(4,C,m)};return{isSnippet:f,insertText:g,labelDetails:N}}function _We(e,t,r,i,a,o){const l=e.getDeclarations();if(!(l&&l.length))return;const u=i.getTypeChecker(),f=l[0],g=Io(os(f),!1),m=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),x=33554432|(Mf(r,o)===0?268435456:0);switch(f.kind){case 171:case 172:case 173:case 174:{let k=m.flags&1048576&&m.types.length<10?u.getUnionType(m.types,2):m;if(k.flags&1048576){const V=Vr(k.types,U=>u.getSignaturesOfType(U,0).length>0);if(V.length===1)k=V[0];else return}if(u.getSignaturesOfType(k,0).length!==1)return;const N=u.typeToTypeNode(k,t,x,n_.getNoopSymbolTrackerWithResolver({program:i,host:a}));if(!N||!sg(N))return;let D;if(o.includeCompletionsWithSnippetText){const V=I.createEmptyStatement();D=I.createBlock([V],!0),jH(V,{kind:0,order:0})}else D=I.createBlock([],!0);const M=N.parameters.map(V=>I.createParameterDeclaration(void 0,V.dotDotDotToken,V.name,void 0,void 0,V.initializer));return I.createMethodDeclaration(void 0,void 0,g,void 0,void 0,M,void 0,D)}default:return}}function Aj(e){let t;const r=er.createWriter(Z0(e)),i=Ly(e,r),a={...r,write:x=>o(x,()=>r.write(x)),nonEscapingWrite:r.write,writeLiteral:x=>o(x,()=>r.writeLiteral(x)),writeStringLiteral:x=>o(x,()=>r.writeStringLiteral(x)),writeSymbol:(x,k)=>o(x,()=>r.writeSymbol(x,k)),writeParameter:x=>o(x,()=>r.writeParameter(x)),writeComment:x=>o(x,()=>r.writeComment(x)),writeProperty:x=>o(x,()=>r.writeProperty(x))};return{printSnippetList:l,printAndFormatSnippetList:f,printNode:g,printAndFormatNode:y};function o(x,k){const C=_2(x);if(C!==x){const N=r.getTextPos();k();const D=r.getTextPos();t=gn(t||(t=[]),{newText:C,span:{start:N,length:D-N}})}else k()}function l(x,k,C){const N=u(x,k,C);return t?er.applyChanges(N,t):N}function u(x,k,C){return t=void 0,a.clear(),i.writeList(x,k,C,a),a.getText()}function f(x,k,C,N){const D={text:u(x,k,C),getLineAndCharacterOfPosition(Y){return vo(this,Y)}},M=KM(N,C),V=Na(k,Y=>{const j=er.assignPositionsToNode(Y);return ml.formatNodeGivenIndentation(j,D,C.languageVariant,0,0,{...N,options:M})}),U=t?M0(Ki(V,t),(Y,j)=>fI(Y.span,j.span)):V;return er.applyChanges(D.text,U)}function g(x,k,C){const N=m(x,k,C);return t?er.applyChanges(N,t):N}function m(x,k,C){return t=void 0,a.clear(),i.writeNode(x,k,C,a),a.getText()}function y(x,k,C,N){const D={text:m(x,k,C),getLineAndCharacterOfPosition(j){return vo(this,j)}},M=KM(N,C),V=er.assignPositionsToNode(k),U=ml.formatNodeGivenIndentation(V,D,C.languageVariant,0,0,{...N,options:M}),Y=t?M0(Ki(U,t),(j,ee)=>fI(j.span,ee.span)):U;return er.applyChanges(D.text,Y)}}function xSe(e){const t=e.fileName?void 0:Cp(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return F4(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Cp(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function uWe(e,t,r){const i=e.exportName==="default",a=!!e.isPackageJsonImport;return dSe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:a}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:a}}function fWe(e,t,r,i,a,o,l){const u=t.replacementSpan,f=_2(q8(a,l,r.moduleSpecifier)),g=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=n_.getImportKind(a,g,o,!0),x=t.couldBeTypeOnlyImportSpecifier,k=t.isTopLevelTypeOnly?` ${sa(156)} `:" ",C=x?`${sa(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${k}${_2(e)}${m} = require(${f})${N}`};case 1:return{replacementSpan:u,insertText:`import${k}${_2(e)}${m} from ${f}${N}`};case 2:return{replacementSpan:u,insertText:`import${k}* as ${_2(e)} from ${f}${N}`};case 0:return{replacementSpan:u,insertText:`import${k}{ ${C}${_2(e)}${m} } from ${f}${N}`}}}function SSe(e,t,r){return/^\d+$/.test(r)?r:q8(e,t,r)}function pWe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function qte(e){if(DN(e))return Cp(e.moduleSymbol.name);if(F4(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function Hte(e,t,r,i,a,o,l,u,f,g,m,y,x,k,C,N,D,M,V,U,Y,j,ee,R,Z,oe=!1){var fe;const _e=Uo(),X=FWe(i,a),H=V5(l),Q=f.getTypeChecker(),re=new Map;for(let G=0;GPe.getSourceFile()===a.getSourceFile()));re.set(ve,pe),qh(t,ct,AN,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Uo()-_e)),{has:G=>re.has(G),add:G=>re.set(G,!0)};function ue(G,Ne){var ve;var De;let Xe=G.flags;if(!Ri(a)){if(dc(a.parent))return!0;if(Hr(X,Mi)&&G.valueDeclaration===X)return!1;const be=(ve=G.valueDeclaration)!=null?ve:(De=G.declarations)==null?void 0:De[0];if(X&&be&&(Ho(X)&&Ho(be)||ns(X)&&ns(be))){const rt=be.pos,ct=ns(X)?X.parent.parameters:oS(X.parent)?void 0:X.parent.typeParameters;if(rt>=X.pos&&ct&&rtWte(r,l,U)===a.name);return V!==void 0?{type:"literal",literal:V}:_c(g,(U,Y)=>{const j=k[Y],ee=Pj(U,Oa(u),j,x,f.isJsxIdentifierExpected);return ee&&ee.name===a.name&&(a.source==="ClassMemberSnippet/"&&U.flags&106500||a.source==="ObjectLiteralMethodSnippet/"&&U.flags&8196||qte(j)===a.source||a.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:U,location:y,origin:j,contextToken:C,previousToken:N,isJsxInitializer:D,isTypeOnlyLocation:M}:void 0})||{type:"none"}}function gWe(e,t,r,i,a,o,l,u,f){const g=e.getTypeChecker(),m=e.getCompilerOptions(),{name:y,source:x,data:k}=a,{previousToken:C,contextToken:N}=Nj(i,r);if(vT(r,i,C))return Bj.getStringLiteralCompletionDetails(y,r,i,C,g,m,o,f,u);const D=kSe(e,t,r,i,a,o,u);switch(D.type){case"request":{const{request:M}=D;switch(M.kind){case 1:return zy.getJSDocTagNameCompletionDetails(y);case 2:return zy.getJSDocTagCompletionDetails(y);case 3:return zy.getJSDocParameterNameCompletionDetails(y);case 4:return dt(M.keywordCompletions,V=>V.name===y)?Gte(y,"keyword",5):void 0;default:return E.assertNever(M)}}case"symbol":{const{symbol:M,location:V,contextToken:U,origin:Y,previousToken:j}=D,{codeActions:ee,sourceDisplay:R}=hWe(y,V,U,Y,M,e,o,m,r,i,j,l,u,k,x,f),Z=Vte(Y)?Y.symbolName:M.name;return $te(M,Z,g,r,V,f,ee,R)}case"literal":{const{literal:M}=D;return Gte(Wte(r,u,M),"string",typeof M=="string"?8:7)}case"cases":{const{entry:M,importAdder:V}=bSe(N.parent,r,u,e.getCompilerOptions(),o,e,void 0);if(V.hasFixes()){const U=er.ChangeTracker.with({host:o,formatContext:l,preferences:u},V.writeFixes);return{name:M.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:U,description:ST([p.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:M.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return nne().some(M=>M.name===y)?Gte(y,"keyword",5):void 0;default:E.assertNever(D)}}function Gte(e,t,r){return NN(e,"",t,[vu(e,r)])}function $te(e,t,r,i,a,o,l,u){const{displayParts:f,documentation:g,symbolKind:m,tags:y}=r.runWithCancellationToken(o,x=>fh.getSymbolDisplayPartsDocumentationAndSymbolKind(x,e,i,a,a,7));return NN(t,fh.getSymbolModifiers(r,e),m,f,g,y,l,u)}function NN(e,t,r,i,a,o,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:a,tags:o,codeActions:l,source:u,sourceDisplay:u}}function hWe(e,t,r,i,a,o,l,u,f,g,m,y,x,k,C,N){if(k!=null&&k.moduleSpecifier&&m&&FSe(r||m,f).replacementSpan)return{codeActions:void 0,sourceDisplay:[vf(k.moduleSpecifier)]};if(C==="ClassMemberSnippet/"){const{importAdder:ee,eraseRange:R}=TSe(l,o,u,x,e,a,t,g,r,y);if(ee||R)return{sourceDisplay:void 0,codeActions:[{changes:er.ChangeTracker.with({host:l,formatContext:y,preferences:x},oe=>{ee&&ee.writeFixes(oe),R&&oe.deleteRange(f,R)}),description:ST([p.Includes_imports_of_types_referenced_by_0,e])}]}}if(uSe(i)){const ee=n_.getPromoteTypeOnlyCompletionAction(f,i.declaration.name,o,l,y,x);return E.assertIsDefined(ee,"Expected to have a code action for promoting type-only alias"),{codeActions:[ee],sourceDisplay:void 0}}if(C==="ObjectLiteralMemberWithComma/"&&r){const ee=er.ChangeTracker.with({host:l,formatContext:y,preferences:x},R=>R.insertText(f,r.end,","));if(ee)return{sourceDisplay:void 0,codeActions:[{changes:ee,description:ST([p.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(DN(i)||F4(i)))return{codeActions:void 0,sourceDisplay:void 0};const D=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:M}=i,V=D.getMergedSymbol(iu(a.exportSymbol||a,D)),U=(r==null?void 0:r.kind)===30&&V_(r.parent),{moduleSpecifier:Y,codeAction:j}=n_.getImportCompletionAction(V,M,k==null?void 0:k.exportMapKey,f,e,U,l,o,y,m&&we(m)?m.getStart(f):g,x,N);return E.assert(!(k!=null&&k.moduleSpecifier)||Y===k.moduleSpecifier),{sourceDisplay:[vf(Y)],codeActions:[j]}}function yWe(e,t,r,i,a,o,l){const u=kSe(e,t,r,i,a,o,l);return u.type==="symbol"?u.symbol:void 0}function vWe(e,t,r){return _c(t&&(t.isUnion()?t.types:[t]),i=>{const a=i&&i.symbol;return a&&a.flags&424&&!Y_e(a)?Xte(a,e,r):void 0})}function bWe(e,t,r,i){const{parent:a}=e;switch(e.kind){case 80:return JM(e,i);case 64:switch(a.kind){case 260:return i.getContextualType(a.initializer);case 226:return i.getTypeAtLocation(a.left);case 291:return i.getContextualTypeForJsxAttribute(a);default:return}case 105:return i.getContextualType(a);case 84:const o=Hr(a,e4);return o?$Y(o,i):void 0;case 19:return o8(a)&&!cg(a.parent)&&!g2(a.parent)?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:const l=JN.getArgumentInfoForCompletions(e,t,r);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex+(e.kind===28?1:0)):zM(e.kind)&&rr(a)&&zM(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Xte(e,t,r){const i=r.getAccessibleSymbolChain(e,t,67108863,!1);return i?wa(i):e.parent&&(TWe(e.parent)?e:Xte(e.parent,t,r))}function TWe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function CSe(e,t,r,i,a,o,l,u,f,g){const m=e.getTypeChecker(),y=vSe(r,i);let x=Uo(),k=Vi(r,a);t("getCompletionData: Get current token: "+(Uo()-x)),x=Uo();const C=ch(r,a,k);t("getCompletionData: Is inside comment: "+(Uo()-x));let N=!1,D=!1;if(C){if(Ghe(r,a)){if(r.text.charCodeAt(a-1)===64)return{kind:1};{const ye=_p(a,r);if(!/[^*|\s(/)]/.test(r.text.substring(ye,a)))return{kind:2}}}const F=CWe(k,a);if(F){if(F.tagName.pos<=a&&a<=F.tagName.end)return{kind:1};const ye=It(F);if(ye&&(k=Vi(r,a),(!k||!Gg(k)&&(k.parent.kind!==355||k.parent.name!==k))&&(N=ge(ye))),!N&&rd(F)&&(fc(F.name)||F.name.pos<=a&&a<=F.name.end))return{kind:3,tag:F}}if(!N){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}x=Uo();const M=!N&&P_(r),V=Nj(a,r),U=V.previousToken;let Y=V.contextToken;t("getCompletionData: Get previous token: "+(Uo()-x));let j=k,ee,R=!1,Z=!1,oe=!1,_e=!1,X=!1,H=!1,Q,re=af(r,a),ue=0,fe=!1,G=0;if(Y){const F=FSe(Y,r);if(F.keywordCompletion){if(F.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[YUe(F.keywordCompletion)],isNewIdentifierLocation:F.isNewIdentifierLocation};ue=KUe(F.keywordCompletion)}if(F.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(G|=2,Q=F,fe=F.isNewIdentifierLocation),!F.replacementSpan&&xn(Y))return t("Returning an empty list because completion was requested in an invalid position."),ue?hSe(ue,M,Er()):void 0;let ye=Y.parent;if(Y.kind===25||Y.kind===29)switch(R=Y.kind===25,Z=Y.kind===29,ye.kind){case 211:ee=ye,j=ee.expression;const Oe=D3(ee);if(fc(Oe)||(js(j)||ks(j))&&j.end===Y.pos&&j.getChildCount(r)&&ka(j.getChildren(r)).kind!==22)return;break;case 166:j=ye.left;break;case 267:j=ye.name;break;case 205:j=ye;break;case 236:j=ye.getFirstToken(r),E.assert(j.kind===102||j.kind===105);break;default:return}else if(!Q){if(ye&&ye.kind===211&&(Y=ye,ye=ye.parent),k.parent===re)switch(k.kind){case 32:(k.parent.kind===284||k.parent.kind===286)&&(re=k);break;case 44:k.parent.kind===285&&(re=k);break}switch(ye.kind){case 287:Y.kind===44&&(_e=!0,re=Y);break;case 226:if(!OSe(ye))break;case 285:case 284:case 286:H=!0,Y.kind===30&&(oe=!0,re=Y);break;case 294:case 293:(U.kind===20||U.kind===80&&U.parent.kind===291)&&(H=!0);break;case 291:if(ye.initializer===U&&U.endbT(F?u.getPackageJsonAutoImportProvider():e,u));if(R||Z)bt();else if(oe)be=m.getJsxIntrinsicTagNamesAt(re),E.assertEachIsDefined(be,"getJsxIntrinsicTagNames() should all be defined"),Kn(),De=1,ue=0;else if(_e){const F=Y.parent.parent.openingElement.tagName,ye=m.getSymbolAtLocation(F);ye&&(be=[ye]),De=1,ue=0}else if(!Kn())return ue?hSe(ue,M,fe):void 0;t("getCompletionData: Semantic work: "+(Uo()-Ne));const tt=U&&bWe(U,a,r,m),Je=!Hr(U,Qa)&&!H?qi(tt&&(tt.isUnion()?tt.types:[tt]),F=>F.isLiteral()&&!(F.flags&1024)?F.value:void 0):[],at=U&&tt&&vWe(U,tt,m);return{kind:0,symbols:be,completionKind:De,isInSnippetScope:D,propertyAccessToConvert:ee,isNewIdentifierLocation:fe,location:re,keywordFilters:ue,literals:Je,symbolToOriginInfoMap:rt,recommendedCompletion:at,previousToken:U,contextToken:Y,isJsxInitializer:X,insideJsDocTagTypeExpression:N,symbolToSortTextMap:ct,isTypeOnlyLocation:Pe,isJsxIdentifierExpected:H,isRightOfOpenTag:oe,isRightOfDotOrQuestionDot:R||Z,importStatementCompletion:Q,hasUnresolvedAutoImports:ve,flags:G};function zt(F){switch(F.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!F.constraint;default:return!1}}function It(F){if(zt(F)){const ye=id(F)?F.constraint:F.typeExpression;return ye&&ye.kind===316?ye:void 0}if(i4(F)||_G(F))return F.class}function bt(){De=2;const F=my(j),ye=F&&!j.isTypeOf||Ym(j.parent)||A5(Y,r,m),Oe=dM(j);if(Xu(j)||F||kr(j)){const We=Nc(j.parent);We&&(fe=!0);let Tt=m.getSymbolAtLocation(j);if(Tt&&(Tt=iu(Tt,m),Tt.flags&1920)){const Ot=m.getExportsOfModule(Tt);E.assertEachIsDefined(Ot,"getExportsOfModule() should all be defined");const on=ar=>m.isValidPropertyAccess(F?j:j.parent,ar.name),Sn=ar=>Yte(ar,m),ir=We?ar=>{var jn;return!!(ar.flags&1920)&&!((jn=ar.declarations)!=null&&jn.every(ai=>ai.parent===j.parent))}:Oe?ar=>Sn(ar)||on(ar):ye||N?Sn:on;for(const ar of Ot)ir(ar)&&be.push(ar);if(!ye&&!N&&Tt.declarations&&Tt.declarations.some(ar=>ar.kind!==312&&ar.kind!==267&&ar.kind!==266)){let ar=m.getTypeOfSymbolAtLocation(Tt,j).getNonOptionalType(),jn=!1;if(ar.isNullableType()){const ai=R&&!Z&&o.includeAutomaticOptionalChainCompletions!==!1;(ai||Z)&&(ar=ar.getNonNullableType(),ai&&(jn=!0))}_r(ar,!!(j.flags&65536),jn)}return}}if(!ye||Vb(j)){m.tryGetThisTypeAt(j,!1);let We=m.getTypeAtLocation(j).getNonOptionalType();if(ye)_r(We.getNonNullableType(),!1,!1);else{let Tt=!1;if(We.isNullableType()){const Ot=R&&!Z&&o.includeAutomaticOptionalChainCompletions!==!1;(Ot||Z)&&(We=We.getNonNullableType(),Ot&&(Tt=!0))}_r(We,!!(j.flags&65536),Tt)}}}function _r(F,ye,Oe){fe=!!F.getStringIndexType(),Z&&dt(F.getCallSignatures())&&(fe=!0);const We=j.kind===205?j:j.parent;if(y)for(const Tt of F.getApparentProperties())m.isValidPropertyAccessForCompletions(We,F,Tt)&&Tn(Tt,!1,Oe);else be.push(...Vr(Fj(F,m),Tt=>m.isValidPropertyAccessForCompletions(We,F,Tt)));if(ye&&o.includeCompletionsWithInsertText){const Tt=m.getPromisedTypeOfPromise(F);if(Tt)for(const Ot of Tt.getApparentProperties())m.isValidPropertyAccessForCompletions(We,Tt,Ot)&&Tn(Ot,!0,Oe)}}function Tn(F,ye,Oe){var We;const Tt=_c(F.declarations,ir=>Hr(os(ir),Ga));if(Tt){const ir=jt(Tt.expression),ar=ir&&m.getSymbolAtLocation(ir),jn=ar&&Xte(ar,Y,m),ai=jn&&ya(jn);if(ai&&Kp(pe,ai)){const ea=be.length;be.push(jn);const ps=jn.parent;if(!ps||!I5(ps)||m.tryGetMemberInModuleExportsAndProperties(jn.name,ps)!==jn)rt[ea]={kind:Sn(2)};else{const Ws=Al(Cp(ps.name))?(We=h9(ps))==null?void 0:We.fileName:void 0,{moduleSpecifier:Qr}=(xe||(xe=n_.createImportSpecifierResolver(r,e,u,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Ws,isFromPackageJson:!1,moduleSymbol:ps,symbol:jn,targetFlags:iu(jn,m).flags}],a,ky(re))||{};if(Qr){const cs={kind:Sn(6),moduleSymbol:ps,isDefaultExport:!1,symbolName:jn.name,exportName:jn.name,fileName:Ws,moduleSpecifier:Qr};rt[ea]=cs}}}else if(o.includeCompletionsWithInsertText){if(ai&&pe.has(ai))return;on(F),Ot(F),be.push(F)}}else on(F),Ot(F),be.push(F);function Ot(ir){PWe(ir)&&(ct[ya(ir)]=Gl.LocalDeclarationPriority)}function on(ir){o.includeCompletionsWithInsertText&&(ye&&Kp(pe,ya(ir))?rt[be.length]={kind:Sn(8)}:Oe&&(rt[be.length]={kind:16}))}function Sn(ir){return Oe?ir|16:ir}}function jt(F){return we(F)?F:kr(F)?jt(F.expression):void 0}function Kn(){return(ut()||kt()||Si()||st()||Ut()||br()||ae()||fi()||(Nr(),1))===1}function br(){return ke(Y)?(De=5,fe=!0,ue=4,1):0}function fi(){const F=K(Y),ye=F&&m.getContextualType(F.attributes);if(!ye)return 0;const Oe=F&&m.getContextualType(F.attributes,4);return be=Ki(be,W(Oj(ye,Oe,F.attributes,m),F.attributes.properties)),hi(),De=3,fe=!1,1}function Si(){return Q?(fe=!0,In(),1):0}function Nr(){ue=ft(Y)?5:1,De=1,fe=Er(),U!==Y&&E.assert(!!U,"Expected 'contextToken' to be defined when different from 'previousToken'.");const F=U!==Y?U.getStart():a,ye=Gt(Y,F,r)||r;D=ur(ye);const Oe=(Pe?0:111551)|788968|1920|2097152,We=U&&!ky(U);be=Ki(be,m.getSymbolsInScope(ye,Oe)),E.assertEachIsDefined(be,"getSymbolsInScope() should all be defined");for(let Tt=0;Tton.getSourceFile()===r)&&(ct[ya(Ot)]=Gl.GlobalsOrKeywords),We&&!(Ot.flags&111551)){const on=Ot.declarations&&Fr(Ot.declarations,s9);if(on){const Sn={kind:64,declaration:on};rt[Tt]=Sn}}}if(o.includeCompletionsWithInsertText&&ye.kind!==312){const Tt=m.tryGetThisTypeAt(ye,!1,ei(ye.parent)?ye:void 0);if(Tt&&!NWe(Tt,r,m))for(const Ot of Fj(Tt,m))rt[be.length]={kind:1},be.push(Ot),ct[ya(Ot)]=Gl.SuggestedClassMembers}In(),Pe&&(ue=Y&&Pb(Y.parent)?6:7)}function pt(){return Q?!0:Xe||!o.includeCompletionsForModuleExports?!1:r.externalModuleIndicator||r.commonJsModuleIndicator||PY(e.getCompilerOptions())?!0:t1e(e)}function ur(F){switch(F.kind){case 312:case 228:case 294:case 241:return!0;default:return Ii(F)}}function yn(){return N||!!Q&&Gv(re.parent)||!Ct(Y)&&(A5(Y,r,m)||Ym(re)||cn(Y))}function Ct(F){return F&&(F.kind===114&&(F.parent.kind===186||Z6(F.parent))||F.kind===131&&F.parent.kind===182)}function cn(F){if(F){const ye=F.parent.kind;switch(F.kind){case 59:return ye===172||ye===171||ye===169||ye===260||Nx(ye);case 64:return ye===265;case 130:return ye===234;case 30:return ye===183||ye===216;case 96:return ye===168;case 152:return ye===238}}return!1}function In(){var F,ye;if(!pt()||(E.assert(!(l!=null&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;G|=1;const We=U===Y&&Q?"":U&&we(U)?U.text.toLowerCase():"",Tt=(F=u.getModuleSpecifierCache)==null?void 0:F.call(u),Ot=W5(r,u,e,o,g),on=(ye=u.getPackageJsonAutoImportProvider)==null?void 0:ye.call(u),Sn=l?void 0:G8(r,o,u);pSe("collectAutoImports",u,xe||(xe=n_.createImportSpecifierResolver(r,e,u,o)),e,a,o,!!Q,ky(re),ar=>{Ot.search(r.path,oe,(jn,ai)=>{if(!pf(jn,Oa(u.getCompilationSettings()))||!l&&Vx(jn)||!Pe&&!Q&&!(ai&111551)||Pe&&!(ai&790504))return!1;const ea=jn.charCodeAt(0);return oe&&(ea<65||ea>90)?!1:l?!0:jSe(jn,We)},(jn,ai,ea,ps)=>{if(l&&!dt(jn,ln=>l.source===Cp(ln.moduleSymbol.name))||(jn=Vr(jn,ir),!jn.length))return;const Ws=ar.tryResolve(jn,ea)||{};if(Ws==="failed")return;let Qr=jn[0],cs;Ws!=="skipped"&&({exportInfo:Qr=jn[0],moduleSpecifier:cs}=Ws);const Fs=Qr.exportKind===1,pi=Fs&&I6(Qr.symbol)||Qr.symbol;xr(pi,{kind:cs?32:4,moduleSpecifier:cs,symbolName:ai,exportMapKey:ps,exportName:Qr.exportKind===2?"export=":Qr.symbol.name,fileName:Qr.moduleFileName,isDefaultExport:Fs,moduleSymbol:Qr.moduleSymbol,isFromPackageJson:Qr.isFromPackageJson})}),ve=ar.skippedAny(),G|=ar.resolvedAny()?8:0,G|=ar.resolvedBeyondLimit()?16:0});function ir(ar){const jn=Hr(ar.moduleSymbol.valueDeclaration,Ri);if(!jn){const ai=Cp(ar.moduleSymbol.name);return mT.nodeCoreModules.has(ai)&&ts(ai,"node:")!==ZM(r,e)?!1:Sn?Sn.allowsImportingAmbientModule(ar.moduleSymbol,Ge(ar.isFromPackageJson)):!0}return cZ(ar.isFromPackageJson?on:e,r,jn,o,Sn,Ge(ar.isFromPackageJson),Tt)}}function xr(F,ye){const Oe=ya(F);ct[Oe]!==Gl.GlobalsOrKeywords&&(rt[be.length]=ye,ct[Oe]=Q?Gl.LocationPriority:Gl.AutoImportSuggestions,be.push(F))}function wi(F,ye){Zn(re)||F.forEach(Oe=>{if(!Zt(Oe))return;const We=Pj(Oe,Oa(i),void 0,0,!1);if(!We)return;const{name:Tt}=We,Ot=lWe(Oe,Tt,ye,e,u,i,o,f);if(!Ot)return;const on={kind:128,...Ot};G|=32,rt[be.length]=on,be.push(Oe)})}function Zt(F){return!!(F.flags&8196)}function Gt(F,ye,Oe){let We=F;for(;We&&!gY(We,ye,Oe);)We=We.parent;return We}function xn(F){const ye=Uo(),Oe=ze(F)||$e(F)||_t(F)||Gr(F)||uF(F);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Uo()-ye)),Oe}function Gr(F){if(F.kind===12)return!0;if(F.kind===32&&F.parent){if(re===F.parent&&(re.kind===286||re.kind===285))return!1;if(F.parent.kind===286)return re.parent.kind!==286;if(F.parent.kind===287||F.parent.kind===285)return!!F.parent.parent&&F.parent.parent.kind===284}return!1}function Er(){if(Y){const F=Y.parent.kind,ye=Ij(Y);switch(ye){case 28:return F===213||F===176||F===214||F===209||F===226||F===184||F===210;case 21:return F===213||F===176||F===214||F===217||F===196;case 23:return F===209||F===181||F===167;case 144:case 145:case 102:return!0;case 25:return F===267;case 19:return F===263||F===210;case 64:return F===260||F===226;case 16:return F===228;case 17:return F===239;case 134:return F===174||F===304;case 42:return F===174}if(PN(ye))return!0}return!1}function ze(F){return(WH(F)||sW(F))&&(C5(F,a)||a===F.end&&(!!F.isUnterminated||WH(F)))}function ut(){const F=DWe(Y);if(!F)return 0;const Oe=(iA(F.parent)?F.parent:void 0)||F,We=ISe(Oe,m);if(!We)return 0;const Tt=m.getTypeFromTypeNode(Oe),Ot=Fj(We,m),on=Fj(Tt,m),Sn=new Set;return on.forEach(ir=>Sn.add(ir.escapedName)),be=Ki(be,Vr(Ot,ir=>!Sn.has(ir.escapedName))),De=0,fe=!0,1}function kt(){const F=be.length,ye=xWe(Y,a,r);if(!ye)return 0;De=0;let Oe,We;if(ye.kind===210){const Tt=IWe(ye,m);if(Tt===void 0)return ye.flags&67108864?2:(Xe=!0,0);const Ot=m.getContextualType(ye,4),on=(Ot||Tt).getStringIndexType(),Sn=(Ot||Tt).getNumberIndexType();if(fe=!!on||!!Sn,Oe=Oj(Tt,Ot,ye,m),We=ye.properties,Oe.length===0&&!Sn)return Xe=!0,0}else{E.assert(ye.kind===206),fe=!1;const Tt=hm(ye.parent);if(!m6(Tt))return E.fail("Root declaration is not variable-like.");let Ot=r1(Tt)||!!Vl(Tt)||Tt.parent.parent.kind===250;if(!Ot&&Tt.kind===169&&(nt(Tt.parent)?Ot=!!m.getContextualType(Tt.parent):(Tt.parent.kind===174||Tt.parent.kind===178)&&(Ot=nt(Tt.parent.parent)&&!!m.getContextualType(Tt.parent.parent))),Ot){const on=m.getTypeAtLocation(ye);if(!on)return 2;Oe=m.getPropertiesOfType(on).filter(Sn=>m.isPropertyAccessible(ye,!1,!1,on,Sn)),We=ye.elements}}if(Oe&&Oe.length>0){const Tt=Ln(Oe,E.checkDefined(We));be=Ki(be,Tt),hi(),ye.kind===210&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(B(F),wi(Tt,ye))}return 1}function st(){if(!Y)return 0;const F=Y.kind===19||Y.kind===28?Hr(Y.parent,lO):NM(Y)?Hr(Y.parent.parent,lO):void 0;if(!F)return 0;NM(Y)||(ue=8);const{moduleSpecifier:ye}=F.kind===275?F.parent.parent:F.parent;if(!ye)return fe=!0,F.kind===275?2:0;const Oe=m.getSymbolAtLocation(ye);if(!Oe)return fe=!0,2;De=3,fe=!1;const We=m.getExportsAndPropertiesOfModule(Oe),Tt=new Set(F.elements.filter(on=>!ge(on)).map(on=>(on.propertyName||on.name).escapedText)),Ot=We.filter(on=>on.escapedName!=="default"&&!Tt.has(on.escapedName));return be=Ki(be,Ot),Ot.length||(ue=0),1}function Ut(){var F;const ye=Y&&(Y.kind===19||Y.kind===28)?Hr(Y.parent,ap):void 0;if(!ye)return 0;const Oe=On(ye,Yp(Ri,Nc));return De=5,fe=!1,(F=Oe.locals)==null||F.forEach((We,Tt)=>{var Ot,on;be.push(We),(on=(Ot=Oe.symbol)==null?void 0:Ot.exports)!=null&&on.has(Tt)&&(ct[ya(We)]=Gl.OptionalMember)}),1}function ae(){const F=wWe(r,Y,re,a);if(!F)return 0;if(De=3,fe=!0,ue=Y.kind===42?0:ei(F)?2:3,!ei(F))return 1;const ye=Y.kind===27?Y.parent.parent:Y.parent;let Oe=Nl(ye)?I_(ye):0;if(Y.kind===80&&!ge(Y))switch(Y.getText()){case"private":Oe=Oe|8;break;case"static":Oe=Oe|32;break;case"override":Oe=Oe|16384;break}if(ec(ye)&&(Oe|=32),!(Oe&8)){const We=ei(F)&&Oe&16384?xb(Id(F)):_3(F),Tt=Na(We,Ot=>{const on=m.getTypeAtLocation(Ot);return Oe&32?(on==null?void 0:on.symbol)&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(on.symbol,F)):on&&m.getPropertiesOfType(on)});be=Ki(be,le(Tt,F.members,Oe)),mn(be,(Ot,on)=>{const Sn=Ot==null?void 0:Ot.valueDeclaration;if(Sn&&Nl(Sn)&&Sn.name&&Ga(Sn.name)){const ir={kind:512,symbolName:m.symbolToString(Ot)};rt[on]=ir}})}return 1}function Me(F){return!!F.parent&&ns(F.parent)&&wc(F.parent.parent)&&($C(F.kind)||Gg(F))}function ke(F){if(F){const ye=F.parent;switch(F.kind){case 21:case 28:return wc(F.parent)?F.parent:void 0;default:if(Me(F))return ye.parent}}}function ft(F){if(F){let ye;const Oe=On(F.parent,We=>ei(We)?"quit":Eo(We)&&ye===We.body?!0:(ye=We,!1));return Oe&&Oe}}function K(F){if(F){const ye=F.parent;switch(F.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(ye&&(ye.kind===285||ye.kind===286)){if(F.kind===32){const Oe=rl(F.pos,r,void 0);if(!ye.typeArguments||Oe&&Oe.kind===44)break}return ye}else if(ye.kind===291)return ye.parent.parent;break;case 11:if(ye&&(ye.kind===291||ye.kind===293))return ye.parent.parent;break;case 20:if(ye&&ye.kind===294&&ye.parent&&ye.parent.kind===291)return ye.parent.parent.parent;if(ye&&ye.kind===293)return ye.parent.parent;break}}}function $e(F){const ye=F.parent,Oe=ye.kind;switch(F.kind){case 28:return Oe===260||Jt(F)||Oe===243||Oe===266||yt(Oe)||Oe===264||Oe===207||Oe===265||ei(ye)&&!!ye.typeParameters&&ye.typeParameters.end>=F.pos;case 25:return Oe===207;case 59:return Oe===208;case 23:return Oe===207;case 21:return Oe===299||yt(Oe);case 19:return Oe===266;case 30:return Oe===263||Oe===231||Oe===264||Oe===265||Nx(Oe);case 126:return Oe===172&&!ei(ye.parent);case 26:return Oe===169||!!ye.parent&&ye.parent.kind===207;case 125:case 123:case 124:return Oe===169&&!wc(ye.parent);case 130:return Oe===276||Oe===281||Oe===274;case 139:case 153:return!Lj(F);case 80:if(Oe===276&&F===ye.name&&F.text==="type")return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Oe!==276;case 42:return ks(F.parent)&&!Ec(F.parent)}if(PN(Ij(F))&&Lj(F)||Me(F)&&(!we(F)||$C(Ij(F))||ge(F)))return!1;switch(Ij(F)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Is(F.parent)}if(On(F.parent,ei)&&F===U&&Ae(F,a))return!1;const Tt=vy(F.parent,172);if(Tt&&F!==U&&ei(U.parent.parent)&&a<=U.end){if(Ae(F,U.end))return!1;if(F.kind!==64&&(KA(Tt)||p9(Tt)))return!0}return Gg(F)&&!nf(F.parent)&&!zd(F.parent)&&!((ei(F.parent)||f_(F.parent)||Ho(F.parent))&&(F!==U||a>U.end))}function Ae(F,ye){return F.kind!==64&&(F.kind===27||!tp(F.end,ye,r))}function yt(F){return Nx(F)&&F!==176}function _t(F){if(F.kind===9){const ye=F.getFullText();return ye.charAt(ye.length-1)==="."}return!1}function Jt(F){return F.parent.kind===261&&!A5(F,r,m)}function Ln(F,ye){if(ye.length===0)return F;const Oe=new Set,We=new Set;for(const Ot of ye){if(Ot.kind!==303&&Ot.kind!==304&&Ot.kind!==208&&Ot.kind!==174&&Ot.kind!==177&&Ot.kind!==178&&Ot.kind!==305||ge(Ot))continue;let on;if(ih(Ot))Pt(Ot,Oe);else if(Fa(Ot)&&Ot.propertyName)Ot.propertyName.kind===80&&(on=Ot.propertyName.escapedText);else{const Sn=os(Ot);on=Sn&&Od(Sn)?f3(Sn):void 0}on!==void 0&&We.add(on)}const Tt=F.filter(Ot=>!We.has(Ot.escapedName));return z(Oe,Tt),Tt}function Pt(F,ye){const Oe=F.expression,We=m.getSymbolAtLocation(Oe),Tt=We&&m.getTypeOfSymbolAtLocation(We,Oe),Ot=Tt&&Tt.properties;Ot&&Ot.forEach(on=>{ye.add(on.name)})}function hi(){be.forEach(F=>{var ye;if(F.flags&16777216){const Oe=ya(F);ct[Oe]=(ye=ct[Oe])!=null?ye:Gl.OptionalMember}})}function z(F,ye){if(F.size!==0)for(const Oe of ye)F.has(Oe.name)&&(ct[ya(Oe)]=Gl.MemberDeclaredBySpreadAssignment)}function B(F){var ye;for(let Oe=F;Oe!We.has(Tt.escapedName)&&!!Tt.declarations&&!(Ff(Tt)&8)&&!(Tt.valueDeclaration&&N_(Tt.valueDeclaration)))}function W(F,ye){const Oe=new Set,We=new Set;for(const Ot of ye)ge(Ot)||(Ot.kind===291?Oe.add(U3(Ot.name)):mS(Ot)&&Pt(Ot,We));const Tt=F.filter(Ot=>!Oe.has(Ot.escapedName));return z(We,Tt),Tt}function ge(F){return F.getStart(r)<=a&&a<=F.getEnd()}}function xWe(e,t,r){var i;if(e){const{parent:a}=e;switch(e.kind){case 19:case 28:if(ha(a)||td(a))return a;break;case 42:return Ec(a)?Hr(a.parent,ha):void 0;case 134:return Hr(a.parent,ha);case 80:if(e.text==="async"&&nf(e.parent))return e.parent.parent;{if(ha(e.parent.parent)&&(ih(e.parent)||nf(e.parent)&&vo(r,e.getEnd()).line!==vo(r,t).line))return e.parent.parent;const l=On(a,Dc);if((l==null?void 0:l.getLastToken(r))===e&&ha(l.parent))return l.parent}break;default:if(((i=a.parent)==null?void 0:i.parent)&&(Ec(a.parent)||gf(a.parent)||Fu(a.parent))&&ha(a.parent.parent))return a.parent.parent;if(ih(a)&&ha(a.parent))return a.parent;const o=On(a,Dc);if(e.kind!==59&&(o==null?void 0:o.getLastToken(r))===e&&ha(o.parent))return o.parent}}}function Nj(e,t){const r=rl(e,t);return r&&e<=r.end&&($m(r)||ru(r.kind))?{contextToken:rl(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function ESe(e,t,r,i){const a=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,o=a.getTypeChecker(),l=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(E.checkDefined(a.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?o.resolveExternalModuleSymbol(l):o.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&I6(u)||u,{symbol:u,origin:uWe(t,e,l)}):void 0}function Pj(e,t,r,i,a){if(GUe(r))return;const o=UUe(r)?r.symbolName:e.name;if(o===void 0||e.flags&1536&&Ww(o.charCodeAt(0))||uD(e))return;const l={name:o,needsConvertPropertyAccess:!1};if(pf(o,t,a?1:0)||e.valueDeclaration&&N_(e.valueDeclaration))return l;switch(i){case 3:return Vte(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return o.charCodeAt(0)===32?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:E.assertNever(i)}}function wSe(e,t){if(!t)return DSe(e);const r=e+8+1;return IN[r]||(IN[r]=DSe(e).filter(i=>!SWe(Uv(i.name))))}function DSe(e){return IN[e]||(IN[e]=nne().filter(t=>{const r=Uv(t.name);switch(e){case 0:return!1;case 1:return NSe(r)||r===138||r===144||r===156||r===145||r===128||J8(r)&&r!==157;case 5:return NSe(r);case 2:return PN(r);case 3:return ASe(r);case 4:return $C(r);case 6:return J8(r)||r===87;case 7:return J8(r);case 8:return r===156;default:return E.assertNever(e)}}))}function SWe(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function ASe(e){return e===148}function PN(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return aW(e)}}function NSe(e){return e===134||e===135||e===130||e===152||e===156||!$9(e)&&!PN(e)}function Ij(e){var t;return we(e)?(t=uy(e))!=null?t:0:e.kind}function kWe(e,t){const r=[];if(e){const i=e.getSourceFile(),a=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(bl(a)||Yc(a)&&a.moduleSpecifier)&&e===a.moduleSpecifier&&o===l&&r.push({name:sa(132),kind:"keyword",kindModifiers:"",sortText:Gl.GlobalsOrKeywords})}return r}function CWe(e,t){return On(e,r=>a6(r)&&k5(r,t)?!0:Dp(r)?"quit":!1)}function Oj(e,t,r,i){const a=t&&t!==e,o=a&&!(t.flags&3)?i.getUnionType([e,t]):e,l=EWe(o,r,i);return o.isClass()&&PSe(l)?[]:a?Vr(l,u):l;function u(f){return Pn(f.declarations)?dt(f.declarations,g=>g.parent!==r):!0}}function EWe(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Vr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&PSe(i.getApparentProperties())))):e.getApparentProperties()}function PSe(e){return dt(e,t=>!!(Ff(t)&24))}function Fj(e,t){return e.isUnion()?E.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):E.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function wWe(e,t,r,i){var a;switch(r.kind){case 358:return Hr(r.parent,$x);case 1:const o=Hr(Bo(Ms(r.parent,Ri).statements),$x);if(o&&!$a(o,20,e))return o;break;case 81:if(Hr(r.parent,Is))return On(r,ei);break;case 80:{if(uy(r)||Is(r.parent)&&r.parent.initializer===r)return;if(Lj(r))return On(r,$x)}}if(!!t){if(r.kind===137||we(t)&&Is(t.parent)&&ei(r))return On(t,ei);switch(t.kind){case 64:return;case 27:case 20:return Lj(r)&&r.parent.name===r?r.parent.parent:Hr(r,$x);case 19:case 28:return Hr(t.parent,$x);default:if($x(r)){if(vo(e,t.getEnd()).line!==vo(e,i).line)return r;const o=ei(t.parent.parent)?PN:ASe;return o(t.kind)||t.kind===42||we(t)&&o((a=uy(t))!=null?a:0)?t.parent.parent:void 0}return}}}function DWe(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(ef(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&ef(t.parent))return t.parent;break}}function ISe(e,t){if(!e)return;if(Di(e)&&d9(e.parent))return t.getTypeArgumentConstraint(e);const r=ISe(e.parent,t);if(!!r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function Lj(e){return e.parent&&a9(e.parent)&&$x(e.parent.parent)}function AWe(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&v1e(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ei(r)&&!!Pl(r);case"<":return!!r&&r.kind===30&&(!rr(r.parent)||OSe(r.parent));case"/":return!!r&&(Qa(r)?!!eD(r):r.kind===44&&m2(r.parent));case" ":return!!r&&K3(r)&&r.parent.kind===312;default:return E.assertNever(t)}}function OSe({left:e}){return fc(e)}function NWe(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const a=r.resolveName("global",void 0,111551,!1);if(a&&r.getTypeOfSymbolAtLocation(a,t)===e)return!0;const o=r.resolveName("globalThis",void 0,111551,!1);return!!(o&&r.getTypeOfSymbolAtLocation(o,t)===e)}function PWe(e){return!!(e.valueDeclaration&&I_(e.valueDeclaration)&32&&ei(e.valueDeclaration.parent))}function IWe(e,t){const r=t.getContextualType(e);if(r)return r;const i=G0(e.parent);if(rr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(nt(i))return t.getContextualType(i)}function FSe(e,t){var r,i,a;let o,l=!1;const u=f();return{isKeywordOnlyCompletion:l,keywordCompletion:o,isNewIdentifierLocation:!!(u||o===156),isTopLevelTypeOnly:!!((i=(r=Hr(u,bl))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((a=Hr(u,Hl))!=null&&a.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&MSe(u,e),replacementSpan:OWe(u)};function f(){const g=e.parent;if(Hl(g)){const m=g.getLastToken(t);if(we(e)&&m!==e){o=161,l=!0;return}return o=e.kind===156?void 0:156,Qte(g.moduleReference)?g:void 0}if(MSe(g,e)&&RSe(g.parent))return g;if(rh(g)||p1(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(o=156),RSe(g))if(e.kind===20||e.kind===80)l=!0,o=161;else return g.parent.parent;return}if(K3(e)&&Ri(g))return o=156,e;if(K3(e)&&bl(g))return o=156,Qte(g.moduleSpecifier)?g:void 0}}function OWe(e){var l,u;var t;if(!e)return;const r=(l=On(e,Yp(bl,Hl)))!=null?l:e,i=r.getSourceFile();if(Wb(r,i))return au(r,i);E.assert(r.kind!==102&&r.kind!==276);const a=r.kind===272?(u=LSe((t=r.importClause)==null?void 0:t.namedBindings))!=null?u:r.moduleSpecifier:r.moduleReference,o={pos:r.getFirstToken().getStart(),end:a.pos};if(Wb(o,i))return b1(o)}function LSe(e){var t;return Fr((t=Hr(e,rh))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&Vx(r.name.text)&&((i=rl(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function MSe(e,t){return yu(e)&&(e.isTypeOnly||t===e.name&&NM(t))}function RSe(e){if(!Qte(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(rh(e)){const t=LSe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Qte(e){var t;return fc(e)?!0:!((t=Hr(km(e)?e.expression:e,Qa))!=null&&t.text)}function FWe(e,t){if(!e)return;const r=On(e,a=>e2(a)||BSe(a)||Ns(a)?"quit":(ns(a)||Ho(a))&&!Xb(a.parent)),i=On(t,a=>e2(a)||BSe(a)||Ns(a)?"quit":Mi(a));return r||i}function BSe(e){return e.parent&&Po(e.parent)&&(e.parent.body===e||e.kind===39)}function Yte(e,t,r=new Map){return i(e)||i(iu(e.exportSymbol||e,t));function i(a){return!!(a.flags&788968)||t.isUnknownSymbol(a)||!!(a.flags&1536)&&Kp(r,ya(a))&&t.getExportsOfModule(a).some(o=>Yte(o,t,r))}}function LWe(e,t){const r=iu(e,t).declarations;return!!Pn(r)&&$i(r,YM)}function jSe(e,t){if(t.length===0)return!0;let r=!1,i,a=0;const o=e.length;for(let l=0;l(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Kte||{}),ene=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(ene||{}),tne=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(tne||{}),IN=[],nne=wu(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:sa(t),kind:"keyword",kindModifiers:"",sortText:Gl.GlobalsOrKeywords});return e})}});function rne(){const e=new Map;function t(r){const i=e.get(r.name);(!i||cne[i.kind]({name:x.value,kindModifiers:"",kind:"string",sortText:Gl.LocationPriority,replacementSpan:EY(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:y}}default:return E.assertNever(e)}}function JWe(e,t,r,i,a,o,l,u,f){if(!i||!Qa(i))return;const g=VSe(t,i,r,a,o,l,f);return g&&zWe(e,i,g,t,a,u)}function zWe(e,t,r,i,a,o){switch(r.kind){case 0:{const l=Fr(r.paths,u=>u.name===e);return l&&NN(e,zSe(l.extension),l.kind,[vf(e)])}case 1:{const l=Fr(r.symbols,u=>u.name===e);return l&&$te(l,l.name,a,i,t,o)}case 2:return Fr(r.types,l=>l.value===e)?NN(e,"","string",[vf(e)]):void 0;default:return E.assertNever(r)}}function JSe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:a,kind:o,span:l,extension:u})=>({name:a,kind:o,kindModifiers:zSe(u),sortText:Gl.LocationPriority,replacementSpan:l}))}}function zSe(e){switch(e){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.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return E.assertNever(e)}}function VSe(e,t,r,i,a,o,l){const u=ine(t.parent);switch(u.kind){case 201:{const k=ine(u.parent);return k.kind===205?{kind:0,paths:HSe(e,t,a,o,i,l)}:f(k)}case 303:return ha(u.parent)&&u.name===t?UWe(i,u.parent):g()||g(0);case 212:{const{expression:k,argumentExpression:C}=u;return t===uo(C)?WSe(i.getTypeAtLocation(k)):void 0}case 213:case 214:case 291:if(!rqe(t)&&!Zu(u)){const k=JN.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e);return k&&(USe(k.invocation,t,k,i)||USe(k.invocation,t,k,i,0))||g(0)}case 272:case 278:case 283:return{kind:0,paths:HSe(e,t,a,o,i,l)};case 296:const m=eR(i,u.parent.clauses),y=g();return y?{kind:2,types:y.types.filter(k=>!m.hasValue(k.value)),isNewIdentifier:!1}:void 0;default:return g()||g(0)}function f(m){switch(m.kind){case 233:case 183:{const k=On(u,C=>C.parent===m);return k?{kind:2,types:Rj(i.getTypeArgumentConstraint(k)),isNewIdentifier:!1}:void 0}case 199:const{indexType:y,objectType:x}=m;return k5(y,r)?WSe(i.getTypeFromTypeNode(x)):void 0;case 192:{const k=f(ine(m.parent));if(!k)return;const C=VWe(m,u);return k.kind===1?{kind:1,symbols:k.symbols.filter(N=>!gs(C,N.name)),hasIndexSignature:k.hasIndexSignature}:{kind:2,types:k.types.filter(N=>!gs(C,N.value)),isNewIdentifier:!1}}default:return}}function g(m=4){const y=Rj(JM(t,i,m));if(!!y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function ine(e){switch(e.kind){case 196:return sD(e);case 217:return G0(e);default:return e}}function VWe(e,t){return qi(e.types,r=>r!==t&&wy(r)&&pa(r.literal)?r.literal.text:void 0)}function USe(e,t,r,i,a=32){let o=!1;const l=new Map,u=[],f=V_(e)?E.checkDefined(On(t.parent,zd)):t;i.getResolvedSignatureForStringLiteralCompletions(e,f,u,a);const g=Na(u,m=>{if(!d_(m)&&r.argumentCount>m.parameters.length)return;let y=m.getTypeParameterAtPosition(r.argumentIndex);if(V_(e)){const x=i.getTypeOfPropertyOfType(y,BD(f.name));x&&(y=x)}return o=o||!!(y.flags&4),Rj(y,l)});return Pn(g)?{kind:2,types:g,isNewIdentifier:o}:void 0}function WSe(e){return e&&{kind:1,symbols:Vr(e.getApparentProperties(),t=>!(t.valueDeclaration&&N_(t.valueDeclaration))),hasIndexSignature:GY(e)}}function UWe(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:Oj(r,i,t,e),hasIndexSignature:GY(r)}}function Rj(e,t=new Map){return e?(e=NY(e),e.isUnion()?Na(e.types,r=>Rj(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Kp(t,e.value)?[e]:Ve):Ve}function L4(e,t,r){return{name:e,kind:t,extension:r}}function sne(e){return L4(e,"directory",void 0)}function qSe(e,t,r){const i=tqe(e,t),a=e.length===0?void 0:yl(t,e.length);return r.map(({name:o,kind:l,extension:u})=>Math.max(o.indexOf(Wo),o.indexOf(sw))!==-1?{name:o,kind:l,extension:u,span:a}:{name:o,kind:l,extension:u,span:i})}function HSe(e,t,r,i,a,o){return qSe(t.text,t.getStart(e)+1,WWe(e,t,r,i,a,o))}function WWe(e,t,r,i,a,o){const l=zl(t.text),u=Qa(t)?op(e,t):void 0,f=e.path,g=bi(f),m=ane(r,1,e,a,o,u);return nqe(l)||!r.baseUrl&&!r.paths&&(Dd(l)||Koe(l))?qWe(l,g,r,i,f,m):XWe(l,g,u,r,i,m,a)}function ane(e,t,r,i,a,o){return{extensionsToSearch:vp(HWe(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:a==null?void 0:a.importModuleSpecifierEnding,resolutionMode:o}}function qWe(e,t,r,i,a,o){return r.rootDirs?$We(r.rootDirs,e,t,o,r,i,a):ia(hE(e,t,o,i,!0,a).values())}function HWe(e,t){const r=t?qi(t.getAmbientModules(),o=>{const l=o.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...F3(e),r],a=Cc(e);return IM(a)?ND(e,i):i}function GWe(e,t,r,i){e=e.map(o=>ba(Dd(o)?o:Pi(t,o)));const a=_c(e,o=>Xh(o,r,t,i)?r.substr(o.length):void 0);return zk([...e.map(o=>Pi(o,a)),r],Tx,w_)}function $We(e,t,r,i,a,o,l){const u=a.project||o.getCurrentDirectory(),f=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),g=GWe(e,u,r,f);return Na(g,m=>ia(hE(t,m,i,o,!0,l).values()))}function hE(e,t,r,i,a,o,l=rne()){var u;e===void 0&&(e=""),e=zl(e),z0(e)||(e=bi(e)),e===""&&(e="."+Wo),e=D_(e);const f=$h(t,e),g=z0(f)?f:bi(f);if(!a){const k=x1e(g,i);if(k){const N=S3(k,i).typesVersions;if(typeof N=="object"){const D=(u=eL(N))==null?void 0:u.paths;if(D){const M=bi(k),V=f.slice(D_(M).length);if($Se(l,V,M,r,i,D))return l}}}}const m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!HM(i,g))return l;const y=QY(i,g,r.extensionsToSearch,void 0,["./*"]);if(y)for(let k of y){if(k=ba(k),o&&Cb(k,o,t,m)===0)continue;const{name:C,extension:N}=GSe(Jl(k),i.getCompilationSettings(),r);l.add(L4(C,"script",N))}const x=WM(i,g);if(x)for(const k of x){const C=Jl(ba(k));C!=="@types"&&l.add(sne(C))}return l}function GSe(e,t,r){const i=T2.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:ng(i)};if(r.referenceKind===0)return{name:e,extension:ng(e)};const a=Yq(r.endingPreference,r.resolutionMode,t,r.importingSourceFile);if(a===3){if(Gc(e,UD))return{name:e,extension:ng(e)};const l=T2.tryGetJSExtensionForFile(e,t);return l?{name:Sy(e,l),extension:l}:{name:e,extension:ng(e)}}if((a===0||a===1)&&Gc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:mu(e),extension:ng(e)};const o=T2.tryGetJSExtensionForFile(e,t);return o?{name:Sy(e,o),extension:o}:{name:e,extension:ng(e)}}function $Se(e,t,r,i,a,o){const l=f=>o[f],u=(f,g)=>{const m=M6(f),y=M6(g),x=typeof m=="object"?m.prefix.length:f.length,k=typeof y=="object"?y.prefix.length:g.length;return Co(k,x)};return XSe(e,t,r,i,a,Bg(o),l,u)}function XSe(e,t,r,i,a,o,l,u){let f=[],g;for(const m of o){if(m===".")continue;const y=m.replace(/^\.\//,""),x=l(m);if(x){const k=M6(y);if(!k)continue;const C=typeof k=="object"&&gI(k,t);C&&(g===void 0||u(m,g)===-1)&&(g=m,f=f.filter(D=>!D.matchedPattern)),(typeof k=="string"||g===void 0||u(m,g)!==1)&&f.push({matchedPattern:C,results:QWe(y,x,t,r,i,a).map(({name:D,kind:M,extension:V})=>L4(D,M,V))})}}return f.forEach(m=>m.results.forEach(y=>e.add(y))),g!==void 0}function XWe(e,t,r,i,a,o,l){const{baseUrl:u,paths:f}=i,g=rne(),m=Cc(i);if(u){const x=ba(Pi(a.getCurrentDirectory(),u));hE(e,x,o,a,!1,void 0,g)}if(f){const x=eO(i,a);$Se(g,e,x,o,a,f)}const y=YSe(e);for(const x of ZWe(e,y,l))g.add(L4(x,"external module name",void 0));if(eke(a,i,t,y,o,g),IM(m)){let x=!1;if(y===void 0)for(const k of eqe(a,t)){const C=L4(k,"external module name",void 0);g.has(C.name)||(x=!0,g.add(C))}if(!x){let k=C=>{const N=Pi(C,"node_modules");HM(a,N)&&hE(e,N,o,a,!1,void 0,g)};if(y&&Uq(i)){const C=k;k=N=>{const D=Dl(e);D.shift();let M=D.shift();if(!M)return C(N);if(ts(M,"@")){const Y=D.shift();if(!Y)return C(N);M=Pi(M,Y)}const V=Pi(N,"node_modules",M),U=Pi(V,"package.json");if(qM(a,U)){const j=S3(U,a).exports;if(j){if(typeof j!="object"||j===null)return;const ee=Bg(j),R=D.join("/")+(D.length&&z0(e)?"/":""),Z=bS(i,r===99);XSe(g,R,V,o,a,ee,oe=>xb(QSe(j[oe],Z)),h$);return}}return C(N)}}Jg(t,k)}}return ia(g.values())}function QSe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Ds(e)){for(const r in e)if(r==="default"||t.indexOf(r)>-1||UA(t,r)){const i=e[r];return QSe(i,t)}}}function YSe(e){return one(e)?z0(e)?e:bi(e):void 0}function QWe(e,t,r,i,a,o){if(!Tc(e,"*"))return Xl(e,"*")?Ve:f(e,"script");const l=e.slice(0,e.length-1),u=hV(r,l);if(u===void 0)return e[e.length-2]==="/"?f(l,"directory"):Na(t,m=>{var y;return(y=ZSe("",i,m,a,o))==null?void 0:y.map(({name:x,...k})=>({name:l+x,...k}))});return Na(t,g=>ZSe(u,i,g,a,o));function f(g,m){return ts(g,r)?[{name:zv(g),kind:m,extension:void 0}]:Ve}}function ZSe(e,t,r,i,a){if(!a.readDirectory)return;const o=M6(r);if(o===void 0||$s(o))return;const l=$h(o.prefix),u=z0(o.prefix)?l:bi(l),f=z0(o.prefix)?"":Jl(l),g=one(e),m=g?z0(e)?e:bi(e):void 0,y=g?Pi(u,f+m):u,x=ba(o.suffix),k=x&&yD("_"+x),C=k?[Sy(x,k),x]:[x],N=ba(Pi(t,y)),D=g?N:D_(N)+f,M=x?C.map(j=>"**/*"+j):["./*"],V=qi(QY(a,N,i.extensionsToSearch,void 0,M),j=>{const ee=Y(j);if(ee){if(one(ee))return sne(Dl(KSe(ee))[1]);const{name:R,extension:Z}=GSe(ee,a.getCompilationSettings(),i);return L4(R,"script",Z)}}),U=x?Ve:qi(WM(a,N),j=>j==="node_modules"?void 0:sne(j));return[...V,...U];function Y(j){return _c(C,ee=>{const R=YWe(ba(j),D,ee);return R===void 0?void 0:KSe(R)})}}function YWe(e,t,r){return ts(e,t)&&Tc(e,r)?e.slice(t.length,e.length-r.length):void 0}function KSe(e){return e[0]===Wo?e.slice(1):e}function ZWe(e,t,r){const a=r.getAmbientModules().map(o=>Cp(o.name)).filter(o=>ts(o,e)&&o.indexOf("*")<0);if(t!==void 0){const o=D_(t);return a.map(l=>NC(l,o))}return a}function KWe(e,t,r,i){const a=Vi(e,t),o=Hm(e.text,a.pos),l=o&&Fr(o,C=>t>=C.pos&&t<=C.end);if(!l)return;const u=e.text.slice(l.pos,t),f=tke.exec(u);if(!f)return;const[,g,m,y]=f,x=bi(e.path),k=m==="path"?hE(y,x,ane(r,0,e),i,!0,e.path):m==="types"?eke(i,r,x,YSe(y),ane(r,1,e)):E.fail();return qSe(y,l.pos+g.length,ia(k.values()))}function eke(e,t,r,i,a,o=rne()){const l=new Map,u=GM(()=>jA(t,e))||Ve;for(const g of u)f(g);for(const g of YY(r,e)){const m=Pi(bi(g),"node_modules/@types");f(m)}return o;function f(g){if(!!HM(e,g))for(const m of WM(e,g)){const y=uL(m);if(!(t.types&&!gs(t.types,y)))if(i===void 0)l.has(y)||(o.add(L4(y,"external module name",void 0)),l.set(y,!0));else{const x=Pi(g,m),k=qq(i,y,X0(e));k!==void 0&&hE(k,x,a,e,!1,void 0,o)}}}}function eqe(e,t){if(!e.readFile||!e.fileExists)return Ve;const r=[];for(const i of YY(t,e)){const a=S3(i,e);for(const o of nke){const l=a[o];if(!!l)for(const u in l)lo(l,u)&&!ts(u,"@types/")&&r.push(u)}}return r}function tqe(e,t){const r=Math.max(e.lastIndexOf(Wo),e.lastIndexOf(sw)),i=r!==-1?r+1:0,a=e.length-i;return a===0||pf(e.substr(i,a),99)?void 0:yl(t+i,a)}function nqe(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function one(e){return Xl(e,Wo)}function rqe(e){return js(e.parent)&&wl(e.parent.arguments)===e&&we(e.parent.expression)&&e.parent.expression.escapedText==="require"}var cne,tke,nke,iqe=Bt({"src/services/stringCompletions.ts"(){Wr(),lne(),cne={directory:0,script:1,["external module name"]:2},tke=/^(\/\/\/\s*JWe,getStringLiteralCompletions:()=>BWe});var sqe=Bt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){iqe()}}),HS={};C_(HS,{CompletionKind:()=>tne,CompletionSource:()=>Kte,SortText:()=>Gl,StringCompletions:()=>Bj,SymbolOriginInfoKind:()=>ene,createCompletionDetails:()=>NN,createCompletionDetailsForSymbol:()=>$te,getCompletionEntriesFromSymbols:()=>Hte,getCompletionEntryDetails:()=>gWe,getCompletionEntrySymbol:()=>yWe,getCompletionsAtPosition:()=>$Ue,getPropertiesForObjectExpression:()=>Oj,moduleSpecifierResolutionCacheAttemptLimit:()=>Zte,moduleSpecifierResolutionLimit:()=>Mj});var lne=Bt({"src/services/_namespaces/ts.Completions.ts"(){RWe(),sqe()}});function _ne(e,t,r,i){const a=lqe(e,r,i);return(o,l,u)=>{const{directImports:f,indirectUsers:g}=aqe(e,t,a,l,r,i);return{indirectUsers:g,...oqe(f,o,l.exportKind,r,u)}}}function aqe(e,t,r,{exportingModuleSymbol:i,exportKind:a},o,l){const u=NS(),f=NS(),g=[],m=!!i.globalExports,y=m?void 0:[];return k(i),{directImports:g,indirectUsers:x()};function x(){if(m)return e;if(i.declarations)for(const U of i.declarations)Qv(U)&&t.has(U.getSourceFile().fileName)&&M(U);return y.map(Bn)}function k(U){const Y=V(U);if(Y){for(const j of Y)if(!!u(j))switch(l&&l.throwIfCancellationRequested(),j.kind){case 213:if(Zu(j)){C(j);break}if(!m){const R=j.parent;if(a===2&&R.kind===260){const{name:Z}=R;if(Z.kind===80){g.push(Z);break}}}break;case 80:break;case 271:D(j,j.name,Mr(j,1),!1);break;case 272:g.push(j);const ee=j.importClause&&j.importClause.namedBindings;ee&&ee.kind===274?D(j,ee.name,!1,!0):!m&&Bx(j)&&M(ON(j));break;case 278:j.exportClause?j.exportClause.kind===280?M(ON(j),!0):g.push(j):k(dqe(j,o));break;case 205:!m&&j.isTypeOf&&!j.qualifier&&N(j)&&M(j.getSourceFile(),!0),g.push(j);break;default:E.failBadSyntaxKind(j,"Unexpected import kind.")}}}function C(U){const Y=On(U,jj)||U.getSourceFile();M(Y,!!N(U,!0))}function N(U,Y=!1){return On(U,j=>Y&&jj(j)?"quit":Ap(j)&&dt(j.modifiers,iS))}function D(U,Y,j,ee){if(a===2)ee||g.push(U);else if(!m){const R=ON(U);E.assert(R.kind===312||R.kind===267),j||cqe(R,Y,o)?M(R,!0):M(R)}}function M(U,Y=!1){if(E.assert(!m),!f(U)||(y.push(U),!Y))return;const ee=o.getMergedSymbol(U.symbol);if(!ee)return;E.assert(!!(ee.flags&1536));const R=V(ee);if(R)for(const Z of R)ag(Z)||M(ON(Z),!0)}function V(U){return r.get(ya(U).toString())}}function oqe(e,t,r,i,a){const o=[],l=[];function u(x,k){o.push([x,k])}if(e)for(const x of e)f(x);return{importSearches:o,singleReferences:l};function f(x){if(x.kind===271){fne(x)&&g(x.name);return}if(x.kind===80){g(x);return}if(x.kind===205){if(x.qualifier){const N=Ku(x.qualifier);N.escapedText===xc(t)&&l.push(N)}else r===2&&l.push(x.argument.literal);return}if(x.moduleSpecifier.kind!==11)return;if(x.kind===278){x.exportClause&&ap(x.exportClause)&&m(x.exportClause);return}const{name:k,namedBindings:C}=x.importClause||{name:void 0,namedBindings:void 0};if(C)switch(C.kind){case 274:g(C.name);break;case 275:(r===0||r===1)&&m(C);break;default:E.assertNever(C)}if(k&&(r===1||r===2)&&(!a||k.escapedText===FM(t))){const N=i.getSymbolAtLocation(k);u(k,N)}}function g(x){r===2&&(!a||y(x.escapedText))&&u(x,i.getSymbolAtLocation(x))}function m(x){if(!!x)for(const k of x.elements){const{name:C,propertyName:N}=k;if(!!y((N||C).escapedText))if(N)l.push(N),(!a||C.escapedText===t.escapedName)&&u(C,i.getSymbolAtLocation(C));else{const D=k.kind===281&&k.propertyName?i.getExportSpecifierLocalTargetSymbol(k):i.getSymbolAtLocation(C);u(C,D)}}}function y(x){return x===t.escapedName||r!==0&&x==="default"}}function cqe(e,t,r){const i=r.getSymbolAtLocation(t);return!!ike(e,a=>{if(!Yc(a))return;const{exportClause:o,moduleSpecifier:l}=a;return!l&&o&&ap(o)&&o.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function rke(e,t,r){var i;const a=[],o=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if((u==null?void 0:u.kind)===312){for(const f of l.referencedFiles)e.getSourceFileFromReference(l,f)===u&&a.push({kind:"reference",referencingFile:l,ref:f});for(const f of l.typeReferenceDirectives){const g=(i=e.getResolvedTypeReferenceDirectives().get(f.fileName,f.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&a.push({kind:"reference",referencingFile:l,ref:f})}}ske(l,(f,g)=>{o.getSymbolAtLocation(g)===r&&a.push(Do(f)?{kind:"implicit",literal:g,referencingFile:l}:{kind:"import",literal:g})})}return a}function lqe(e,t,r){const i=new Map;for(const a of e)r&&r.throwIfCancellationRequested(),ske(a,(o,l)=>{const u=t.getSymbolAtLocation(l);if(u){const f=ya(u).toString();let g=i.get(f);g||i.set(f,g=[]),g.push(o)}});return i}function ike(e,t){return mn(e.kind===312?e.statements:e.body.statements,r=>t(r)||jj(r)&&mn(r.body&&r.body.statements,t))}function ske(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(Kw(r),r);else ike(e,r=>{switch(r.kind){case 278:case 272:{const i=r;i.moduleSpecifier&&pa(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=r;fne(i)&&t(i,i.moduleReference.expression);break}}})}function ake(e,t,r,i){return i?a():a()||o();function a(){var f;const{parent:g}=e,m=g.parent;if(t.exportSymbol)return g.kind===211?((f=t.declarations)==null?void 0:f.some(k=>k===g))&&rr(m)?x(m,!1):void 0:l(t.exportSymbol,u(g));{const k=uqe(g,e);if(k&&Mr(k,1))return Hl(k)&&k.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(k.name)}:l(t,u(k));if(og(g))return l(t,0);if(dc(g))return y(g);if(dc(m))return y(m);if(rr(g))return x(g,!0);if(rr(m))return x(m,!0);if(s4(g)||iG(g))return l(t,0)}function y(k){if(!k.symbol.parent)return;const C=k.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:k.symbol.parent,exportKind:C}}}function x(k,C){let N;switch(pc(k)){case 1:N=0;break;case 2:N=2;break;default:return}const D=C?r.getSymbolAtLocation(K_e(Ms(k.left,Mo))):t;return D&&l(D,N)}}function o(){if(!fqe(e))return;let g=r.getImmediateAliasedSymbol(t);if(!g||(g=pqe(g,r),g.escapedName==="export="&&(g=_qe(g,r),g===void 0)))return;const m=FM(g);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:g}}function l(f,g){const m=une(f,g,r);return m&&{kind:1,symbol:f,exportInfo:m}}function u(f){return Mr(f,1024)?1:0}}function _qe(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const a=E.checkDefined(e.valueDeclaration);if(dc(a))return(r=Hr(a.expression,Nd))==null?void 0:r.symbol;if(rr(a))return(i=Hr(a.right,Nd))==null?void 0:i.symbol;if(Ri(a))return a.symbol}function uqe(e,t){const r=Mi(e)?e:Fa(e)?Yk(e):void 0;return r?e.name!==t||Ny(r.parent)?void 0:ic(r.parent.parent)?r.parent.parent:void 0:e}function fqe(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&fne(t);case 276:return!t.propertyName;case 273:case 274:return E.assert(t.name===e),!0;case 208:return Zn(e)&&t2(t.parent.parent);default:return!1}}function une(e,t,r){const i=e.parent;if(!i)return;const a=r.getMergedSymbol(i);return I5(a)?{exportingModuleSymbol:a,exportKind:t}:void 0}function pqe(e,t){if(e.declarations)for(const r of e.declarations){if(p_(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(kr(r)&&Zm(r.expression)&&!Ei(r.name))return t.getSymbolAtLocation(r);if(nf(r)&&rr(r.parent.parent)&&pc(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function dqe(e,t){return t.getMergedSymbol(ON(e).symbol)}function ON(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(E.assert(t.kind===268),Ms(t.parent,jj))}function jj(e){return e.kind===267&&e.name.kind===11}function fne(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var pne,dne,mqe=Bt({"src/services/importTracker.ts"(){Wr(),pne=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(pne||{}),dne=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(dne||{})}});function Am(e,t=1){return{kind:t,node:e.name||e,context:gqe(e)}}function oke(e){return e&&e.kind===void 0}function gqe(e){if(l_(e))return A2(e);if(!!e.parent){if(!l_(e.parent)&&!dc(e.parent)){if(Zn(e)){const r=rr(e.parent)?e.parent:Mo(e.parent)&&rr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&pc(r)!==0)return A2(r)}if(Jd(e.parent)||m2(e.parent))return e.parent.parent;if(eT(e.parent)||p2(e.parent)||HC(e.parent))return e.parent;if(Qa(e)){const r=eD(e);if(r){const i=On(r,a=>l_(a)||Ii(a)||a6(a));return l_(i)?A2(i):i}}const t=On(e,Ga);return t?A2(t.parent):void 0}if(e.parent.name===e||wc(e.parent)||dc(e.parent)||(Ax(e.parent)||Fa(e.parent))&&e.parent.propertyName===e||e.kind===90&&Mr(e.parent,1025))return A2(e.parent)}}function A2(e){if(!!e)switch(e.kind){case 260:return!dl(e.parent)||e.parent.declarations.length!==1?e:ic(e.parent.parent)?e.parent.parent:i6(e.parent.parent)?A2(e.parent.parent):e.parent;case 208:return A2(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return ql(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return lh(e.parent)?A2(On(e.parent,t=>rr(t)||i6(t))):e;default:return e}}function mne(e,t,r){if(!r)return;const i=oke(r)?LN(r.start,t,r.end):LN(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function hqe(e,t,r,i,a){const o=af(i,a),l={use:1},u=AT.getReferencedSymbolsForNode(a,o,e,r,t,l),f=e.getTypeChecker(),g=AT.getAdjustedNode(o,l),m=yqe(g)?f.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:qi(u,({definition:y,references:x})=>y&&{definition:f.runWithCancellationToken(t,k=>Tqe(y,k,o)),references:x.map(k=>Sqe(k,m))})}function yqe(e){return e.kind===90||!!aD(e)||oD(e)||e.kind===137&&wc(e.parent)}function vqe(e,t,r,i,a){const o=af(i,a);let l;const u=cke(e,t,r,o,a);if(o.parent.kind===211||o.parent.kind===208||o.parent.kind===212||o.kind===108)l=u&&[...u];else if(u){const g=pV(u),m=new Map;for(;!g.isEmpty();){const y=g.dequeue();if(!Kp(m,Ba(y.node)))continue;l=gn(l,y);const x=cke(e,t,r,y.node,y.node.pos);x&&g.enqueue(...x)}}const f=e.getTypeChecker();return an(l,g=>Cqe(g,f))}function cke(e,t,r,i,a){if(i.kind===312)return;const o=e.getTypeChecker();if(i.parent.kind===304){const l=[];return AT.getReferenceEntriesForShorthandPropertyAssignment(i,o,u=>l.push(Am(u))),l}else if(i.kind===108||nu(i.parent)){const l=o.getSymbolAtLocation(i);return l.valueDeclaration&&[Am(l.valueDeclaration)]}else return lke(a,i,e,r,t,{implementations:!0,use:1})}function bqe(e,t,r,i,a,o,l){return an(_ke(AT.getReferencedSymbolsForNode(a,i,e,r,t,o)),u=>l(u,i,e.getTypeChecker()))}function lke(e,t,r,i,a,o={},l=new Set(i.map(u=>u.fileName))){return _ke(AT.getReferencedSymbolsForNode(e,t,r,i,a,o,l))}function _ke(e){return e&&Na(e,t=>t.references)}function Tqe(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:m}=e,{displayParts:y,kind:x}=uke(m,t,r),k=y.map(D=>D.text).join(""),C=m.declarations&&wl(m.declarations),N=C?os(C)||C:r;return{...FN(N),name:k,kind:x,displayParts:y,context:A2(C)}}case 1:{const{node:m}=e;return{...FN(m),name:m.text,kind:"label",displayParts:[vu(m.text,17)]}}case 2:{const{node:m}=e,y=sa(m.kind);return{...FN(m),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:m}=e,y=t.getSymbolAtLocation(m),x=y&&fh.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),hT(m),m).displayParts||[vf("this")];return{...FN(m),name:"this",kind:"var",displayParts:x}}case 4:{const{node:m}=e;return{...FN(m),name:m.text,kind:"var",displayParts:[vu(el(m),8)]}}case 5:return{textSpan:b1(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[vu(`"${e.reference.fileName}"`,8)]};default:return E.assertNever(e)}})(),{sourceFile:a,textSpan:o,name:l,kind:u,displayParts:f,context:g}=i;return{containerKind:"",containerName:"",fileName:a.fileName,kind:u,name:l,textSpan:o,displayParts:f,...mne(o,a,g)}}function FN(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:LN(Ga(e)?e.expression:e,t)}}function uke(e,t,r){const i=AT.getIntersectingMeaningFromDeclarations(r,e),a=e.declarations&&wl(e.declarations)||r,{displayParts:o,symbolKind:l}=fh.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,a.getSourceFile(),a,a,i);return{displayParts:o,kind:l}}function xqe(e,t,r,i,a){return{...Jj(e),...i&&kqe(e,t,r,a)}}function Sqe(e,t){const r=fke(e);return t?{...r,isDefinition:e.kind!==0&&pke(e.node,t)}:r}function fke(e){const t=Jj(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:hne(i),isInString:r===2?!0:void 0}}function Jj(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=LN(e.node,t);return{textSpan:r,fileName:t.fileName,...mne(r,t,e.context)}}}function kqe(e,t,r,i){if(e.kind!==0&&we(t)){const{node:a,kind:o}=e,l=a.parent,u=t.text,f=nf(l);if(f||L5(l)&&l.name===a&&l.dotDotDotToken===void 0){const g={prefixText:u+": "},m={suffixText:": "+u};if(o===3)return g;if(o===4)return m;if(f){const y=l.parent;return ha(y)&&rr(y.parent)&&Zm(y.parent.left)?g:m}else return g}else if(yu(l)&&!l.propertyName){const g=p_(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return gs(g.declarations,l)?{prefixText:u+" as "}:lp}else if(p_(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&Ou(e.node)&&Mo(e.node.parent)){const a=FY(i);return{prefixText:a,suffixText:a}}return lp}function Cqe(e,t){const r=Jj(e);if(e.kind!==0){const{node:i}=e;return{...r,...Eqe(i,t)}}else return{...r,kind:"",displayParts:[]}}function Eqe(e,t){const r=t.getSymbolAtLocation(l_(e)&&e.name?e.name:e);return r?uke(r,t,e):e.kind===210?{kind:"interface",displayParts:[m_(21),vf("object literal"),m_(22)]}:e.kind===231?{kind:"local class",displayParts:[m_(21),vf("anonymous local class"),m_(22)]}:{kind:w2(e),displayParts:[]}}function wqe(e){const t=Jj(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=hne(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function LN(e,t,r){let i=e.getStart(t),a=(r||e).getEnd();return Qa(e)&&a-i>2&&(E.assert(r===void 0),i+=1,a-=1),ll(i,a)}function gne(e){return e.kind===0?e.textSpan:LN(e.node,e.node.getSourceFile())}function hne(e){const t=aD(e);return!!t&&Dqe(t)||e.kind===90||w3(e)}function pke(e,t){var r;if(!t)return!1;const i=aD(e)||(e.kind===90?e.parent:oD(e)||e.kind===137&&wc(e.parent)?e.parent.parent:void 0),a=i&&rr(i)?i.left:void 0;return!!(i&&((r=t.declarations)==null?void 0:r.some(o=>o===i||o===a)))}function Dqe(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!lh(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||Ny(e.parent);case 173:case 171:case 355:case 348:return!1;default:return E.failBadSyntaxKind(e)}}var yne,vne,bne,AT,Aqe=Bt({"src/services/findAllReferences.ts"(){Wr(),dke(),yne=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(yne||{}),vne=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(vne||{}),bne=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(bne||{}),(e=>{function t(ze,ut,kt,st,Ut,ae={},Me=new Set(st.map(ke=>ke.fileName))){var ke,ft,K;if(ut=r(ut,ae),Ri(ut)){const Pt=bE.getReferenceAtPosition(ut,ze,kt);if(!(Pt!=null&&Pt.file))return;const hi=kt.getTypeChecker().getMergedSymbol(Pt.file.symbol);if(hi)return g(kt,hi,!1,st,Me);const z=kt.getFileIncludeReasons();return z?[{definition:{type:5,reference:Pt.reference,file:ut},references:a(Pt.file,z,kt)||Ve}]:void 0}if(!ae.implementations){const Pt=y(ut,st,Ut);if(Pt)return Pt}const $e=kt.getTypeChecker(),Ae=$e.getSymbolAtLocation(wc(ut)&&ut.parent.name||ut);if(!Ae){if(!ae.implementations&&Qa(ut)){if(LM(ut)){const Pt=kt.getFileIncludeReasons(),hi=(K=(ft=(ke=ut.getSourceFile().resolvedModules)==null?void 0:ke.get(ut.text,op(ut.getSourceFile(),ut)))==null?void 0:ft.resolvedModule)==null?void 0:K.resolvedFileName,z=hi?kt.getSourceFile(hi):void 0;if(z)return[{definition:{type:4,node:ut},references:a(z,Pt,kt)||Ve}]}return pt(ut,st,$e,Ut)}return}if(Ae.escapedName==="export=")return g(kt,Ae.parent,!1,st,Me);const yt=l(Ae,kt,st,Ut,ae,Me);if(yt&&!(Ae.flags&33554432))return yt;const _t=o(ut,Ae,$e),Jt=_t&&l(_t,kt,st,Ut,ae,Me),Ln=x(Ae,ut,st,Me,$e,Ut,ae);return u(kt,yt,Ln,Jt)}e.getReferencedSymbolsForNode=t;function r(ze,ut){return ut.use===1?ze=hY(ze):ut.use===2&&(ze=SM(ze)),ze}e.getAdjustedNode=r;function i(ze,ut,kt,st=new Set(kt.map(Ut=>Ut.fileName))){var Ut,ae;const Me=(Ut=ut.getSourceFile(ze))==null?void 0:Ut.symbol;if(Me)return((ae=g(ut,Me,!1,kt,st)[0])==null?void 0:ae.references)||Ve;const ke=ut.getFileIncludeReasons(),ft=ut.getSourceFile(ze);return ft&&ke&&a(ft,ke,ut)||Ve}e.getReferencesForFileName=i;function a(ze,ut,kt){let st;const Ut=ut.get(ze.path)||Ve;for(const ae of Ut)if(My(ae)){const Me=kt.getSourceFileByPath(ae.file),ke=I8(kt.getSourceFileByPath,ae);v4(ke)&&(st=gn(st,{kind:0,fileName:Me.fileName,textSpan:b1(ke)}))}return st}function o(ze,ut,kt){if(ze.parent&&cA(ze.parent)){const st=kt.getAliasedSymbol(ut),Ut=kt.getMergedSymbol(st);if(st!==Ut)return Ut}}function l(ze,ut,kt,st,Ut,ae){const Me=ze.flags&1536&&ze.declarations&&Fr(ze.declarations,Ri);if(!Me)return;const ke=ze.exports.get("export="),ft=g(ut,ze,!!ke,kt,ae);if(!ke||!ae.has(Me.fileName))return ft;const K=ut.getTypeChecker();return ze=iu(ke,K),u(ut,ft,x(ze,void 0,kt,ae,K,st,Ut))}function u(ze,...ut){let kt;for(const st of ut)if(!(!st||!st.length)){if(!kt){kt=st;continue}for(const Ut of st){if(!Ut.definition||Ut.definition.type!==0){kt.push(Ut);continue}const ae=Ut.definition.symbol,Me=qc(kt,ft=>!!ft.definition&&ft.definition.type===0&&ft.definition.symbol===ae);if(Me===-1){kt.push(Ut);continue}const ke=kt[Me];kt[Me]={definition:ke.definition,references:ke.references.concat(Ut.references).sort((ft,K)=>{const $e=f(ze,ft),Ae=f(ze,K);if($e!==Ae)return Co($e,Ae);const yt=gne(ft),_t=gne(K);return yt.start!==_t.start?Co(yt.start,_t.start):Co(yt.length,_t.length)})}}}return kt}function f(ze,ut){const kt=ut.kind===0?ze.getSourceFile(ut.fileName):ut.node.getSourceFile();return ze.getSourceFiles().indexOf(kt)}function g(ze,ut,kt,st,Ut){E.assert(!!ut.valueDeclaration);const ae=qi(rke(ze,st,ut),ke=>{if(ke.kind==="import"){const ft=ke.literal.parent;if(wy(ft)){const K=Ms(ft.parent,ag);if(kt&&!K.qualifier)return}return Am(ke.literal)}else if(ke.kind==="implicit"){const ft=ke.literal.text!==_1&&p8(ke.referencingFile,K=>K.transformFlags&2?cg(K)||eT(K)||g2(K)?K:void 0:"skip")||ke.referencingFile.statements[0]||ke.referencingFile;return Am(ft)}else return{kind:0,fileName:ke.referencingFile.fileName,textSpan:b1(ke.ref)}});if(ut.declarations)for(const ke of ut.declarations)switch(ke.kind){case 312:break;case 267:Ut.has(ke.getSourceFile().fileName)&&ae.push(Am(ke.name));break;default:E.assert(!!(ut.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const Me=ut.exports.get("export=");if(Me!=null&&Me.declarations)for(const ke of Me.declarations){const ft=ke.getSourceFile();if(Ut.has(ft.fileName)){const K=rr(ke)&&kr(ke.left)?ke.left.expression:dc(ke)?E.checkDefined($a(ke,95,ft)):os(ke)||ke;ae.push(Am(K))}}return ae.length?[{definition:{type:0,symbol:ut},references:ae}]:Ve}function m(ze){return ze.kind===148&&lS(ze.parent)&&ze.parent.operator===148}function y(ze,ut,kt){if(J8(ze.kind))return ze.kind===116&&Yb(ze.parent)||ze.kind===148&&!m(ze)?void 0:De(ut,ze.kind,kt,ze.kind===148?m:void 0);if(d6(ze.parent)&&ze.parent.name===ze)return Ne(ut,kt);if(sS(ze)&&ec(ze.parent))return[{definition:{type:2,node:ze},references:[Am(ze)]}];if(S5(ze)){const st=hM(ze.parent,ze.text);return st&&fe(st.parent,st)}else if(cY(ze))return fe(ze.parent,ze);if(k4(ze))return Nr(ze,ut,kt);if(ze.kind===108)return fi(ze)}function x(ze,ut,kt,st,Ut,ae,Me){const ke=ut&&N(ze,ut,Ut,!Er(Me))||ze,ft=ut?xr(ut,ke):7,K=[],$e=new V(kt,st,ut?C(ut):0,Ut,ae,ft,Me,K),Ae=!Er(Me)||!ke.declarations?void 0:Fr(ke.declarations,p_);if(Ae)rt(Ae.name,ke,Ae,$e.createSearch(ut,ze,void 0),$e,!0,!0);else if(ut&&ut.kind===90&&ke.escapedName==="default"&&ke.parent)tt(ut,ke,$e),U(ut,ke,{exportingModuleSymbol:ke.parent,exportKind:1},$e);else{const yt=$e.createSearch(ut,ke,void 0,{allSearchSymbols:ut?ur(ke,ut,Ut,Me.use===2,!!Me.providePrefixAndSuffixTextForRename,!!Me.implementations):[ke]});k(ke,$e,yt)}return K}function k(ze,ut,kt){const st=oe(ze);if(st)ve(st,st.getSourceFile(),kt,ut,!(Ri(st)&&!gs(ut.sourceFiles,st)));else for(const Ut of ut.sourceFiles)ut.cancellationToken.throwIfCancellationRequested(),R(Ut,kt,ut)}function C(ze){switch(ze.kind){case 176:case 137:return 1;case 80:if(ei(ze.parent))return E.assert(ze.parent.name===ze),2;default:return 0}}function N(ze,ut,kt,st){const{parent:Ut}=ut;return p_(Ut)&&st?ct(ut,ze,Ut,kt):_c(ze.declarations,ae=>{if(!ae.parent){if(ze.flags&33554432)return;E.fail(`Unexpected symbol at ${E.formatSyntaxKind(ut.kind)}: ${E.formatSymbol(ze)}`)}return ef(ae.parent)&&aS(ae.parent.parent)?kt.getPropertyOfType(kt.getTypeFromTypeNode(ae.parent.parent),ze.name):void 0})}let D;(ze=>{ze[ze.None=0]="None",ze[ze.Constructor=1]="Constructor",ze[ze.Class=2]="Class"})(D||(D={}));function M(ze){if(!(ze.flags&33555968))return;const ut=ze.declarations&&Fr(ze.declarations,kt=>!Ri(kt)&&!Nc(kt));return ut&&ut.symbol}class V{constructor(ut,kt,st,Ut,ae,Me,ke,ft){this.sourceFiles=ut,this.sourceFilesSet=kt,this.specialSearchKind=st,this.checker=Ut,this.cancellationToken=ae,this.searchMeaning=Me,this.options=ke,this.result=ft,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=NS(),this.markSeenReExportRHS=NS(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(ut){return this.sourceFilesSet.has(ut.fileName)}getImportSearches(ut,kt){return this.importTracker||(this.importTracker=_ne(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ut,kt,this.options.use===2)}createSearch(ut,kt,st,Ut={}){const{text:ae=Cp(xc(I6(kt)||M(kt)||kt)),allSearchSymbols:Me=[kt]}=Ut,ke=qo(ae),ft=this.options.implementations&&ut?Gr(ut,kt,this.checker):void 0;return{symbol:kt,comingFrom:st,text:ae,escapedText:ke,parents:ft,allSearchSymbols:Me,includes:K=>gs(Me,K)}}referenceAdder(ut){const kt=ya(ut);let st=this.symbolIdToReferences[kt];return st||(st=this.symbolIdToReferences[kt]=[],this.result.push({definition:{type:0,symbol:ut},references:st})),(Ut,ae)=>st.push(Am(Ut,ae))}addStringOrCommentReference(ut,kt){this.result.push({definition:void 0,references:[{kind:0,fileName:ut,textSpan:kt}]})}markSearchedSymbols(ut,kt){const st=Ba(ut),Ut=this.sourceFileToSeenSymbols[st]||(this.sourceFileToSeenSymbols[st]=new Set);let ae=!1;for(const Me of kt)ae=Lv(Ut,ya(Me))||ae;return ae}}function U(ze,ut,kt,st){const{importSearches:Ut,singleReferences:ae,indirectUsers:Me}=st.getImportSearches(ut,kt);if(ae.length){const ke=st.referenceAdder(ut);for(const ft of ae)j(ft,st)&&ke(ft)}for(const[ke,ft]of Ut)Xe(ke.getSourceFile(),st.createSearch(ke,ft,1),st);if(Me.length){let ke;switch(kt.exportKind){case 0:ke=st.createSearch(ze,ut,1);break;case 1:ke=st.options.use===2?void 0:st.createSearch(ze,ut,1,{text:"default"});break}if(ke)for(const ft of Me)R(ft,ke,st)}}function Y(ze,ut,kt,st,Ut,ae,Me,ke){const ft=_ne(ze,new Set(ze.map(yt=>yt.fileName)),ut,kt),{importSearches:K,indirectUsers:$e,singleReferences:Ae}=ft(st,{exportKind:Me?1:0,exportingModuleSymbol:Ut},!1);for(const[yt]of K)ke(yt);for(const yt of Ae)we(yt)&&ag(yt.parent)&&ke(yt);for(const yt of $e)for(const _t of re(yt,Me?"default":ae)){const Jt=ut.getSymbolAtLocation(_t),Ln=dt(Jt==null?void 0:Jt.declarations,Pt=>!!Hr(Pt,dc));we(_t)&&!Ax(_t.parent)&&(Jt===st||Ln)&&ke(_t)}}e.eachExportReference=Y;function j(ze,ut){return be(ze,ut)?ut.options.use!==2?!0:we(ze)?!(Ax(ze.parent)&&ze.escapedText==="default"):!1:!1}function ee(ze,ut){if(!!ze.declarations)for(const kt of ze.declarations){const st=kt.getSourceFile();Xe(st,ut.createSearch(kt,ze,0),ut,ut.includesSourceFile(st))}}function R(ze,ut,kt){DK(ze).get(ut.escapedText)!==void 0&&Xe(ze,ut,kt)}function Z(ze,ut){return lh(ze.parent.parent)?ut.getPropertySymbolOfDestructuringAssignment(ze):void 0}function oe(ze){const{declarations:ut,flags:kt,parent:st,valueDeclaration:Ut}=ze;if(Ut&&(Ut.kind===218||Ut.kind===231))return Ut;if(!ut)return;if(kt&8196){const ke=Fr(ut,ft=>Iu(ft,8)||N_(ft));return ke?vy(ke,263):void 0}if(ut.some(L5))return;const ae=st&&!(ze.flags&262144);if(ae&&!(I5(st)&&!st.globalExports))return;let Me;for(const ke of ut){const ft=hT(ke);if(Me&&Me!==ft||!ft||ft.kind===312&&!Yu(ft))return;if(Me=ft,fo(Me)){let K;for(;K=rq(Me);)Me=K}}return ae?Me.getSourceFile():Me}function _e(ze,ut,kt,st=kt){return X(ze,ut,kt,()=>!0,st)||!1}e.isSymbolReferencedInFile=_e;function X(ze,ut,kt,st,Ut=kt){const ae=Du(ze.parent,ze.parent.parent)?wa(ut.getSymbolsOfParameterPropertyDeclaration(ze.parent,ze.text)):ut.getSymbolAtLocation(ze);if(!!ae)for(const Me of re(kt,ae.name,Ut)){if(!we(Me)||Me===ze||Me.escapedText!==ze.escapedText)continue;const ke=ut.getSymbolAtLocation(Me);if(ke===ae||ut.getShorthandAssignmentValueSymbol(Me.parent)===ae||p_(Me.parent)&&ct(Me,ke,Me.parent,ut)===ae){const ft=st(Me);if(ft)return ft}}}e.eachSymbolReferenceInFile=X;function H(ze,ut){return Vr(re(ut,ze),Ut=>!!aD(Ut)).reduce((Ut,ae)=>{const Me=st(ae);return!dt(Ut.declarationNames)||Me===Ut.depth?(Ut.declarationNames.push(ae),Ut.depth=Me):Me$e===Ut)&&st(Me,ft))return!0}return!1}e.someSignatureUsage=Q;function re(ze,ut,kt=ze){return qi(ue(ze,ut,kt),st=>{const Ut=af(ze,st);return Ut===ze?void 0:Ut})}function ue(ze,ut,kt=ze){const st=[];if(!ut||!ut.length)return st;const Ut=ze.text,ae=Ut.length,Me=ut.length;let ke=Ut.indexOf(ut,kt.pos);for(;ke>=0&&!(ke>kt.end);){const ft=ke+Me;(ke===0||!_y(Ut.charCodeAt(ke-1),99))&&(ft===ae||!_y(Ut.charCodeAt(ft),99))&&st.push(ke),ke=Ut.indexOf(ut,ke+Me+1)}return st}function fe(ze,ut){const kt=ze.getSourceFile(),st=ut.text,Ut=qi(re(kt,st,ze),ae=>ae===ut||S5(ae)&&hM(ae,st)===ut?Am(ae):void 0);return[{definition:{type:1,node:ut},references:Ut}]}function G(ze,ut){switch(ze.kind){case 81:if(Py(ze.parent))return!0;case 80:return ze.text.length===ut.length;case 15:case 11:{const kt=ze;return(yM(kt)||fY(ze)||Fhe(ze)||js(ze.parent)&&Mx(ze.parent)&&ze.parent.arguments[1]===ze)&&kt.text.length===ut.length}case 9:return yM(ze)&&ze.text.length===ut.length;case 90:return ut.length===7;default:return!1}}function Ne(ze,ut){const kt=Na(ze,st=>(ut.throwIfCancellationRequested(),qi(re(st,"meta",st),Ut=>{const ae=Ut.parent;if(d6(ae))return Am(ae)})));return kt.length?[{definition:{type:2,node:kt[0].node},references:kt}]:void 0}function De(ze,ut,kt,st){const Ut=Na(ze,ae=>(kt.throwIfCancellationRequested(),qi(re(ae,sa(ut),ae),Me=>{if(Me.kind===ut&&(!st||st(Me)))return Am(Me)})));return Ut.length?[{definition:{type:2,node:Ut[0].node},references:Ut}]:void 0}function Xe(ze,ut,kt,st=!0){return kt.cancellationToken.throwIfCancellationRequested(),ve(ze,ze,ut,kt,st)}function ve(ze,ut,kt,st,Ut){if(!!st.markSearchedSymbols(ut,kt.allSearchSymbols))for(const ae of ue(ut,kt.text,ze))xe(ut,ae,kt,st,Ut)}function be(ze,ut){return!!(gT(ze)&ut.searchMeaning)}function xe(ze,ut,kt,st,Ut){const ae=af(ze,ut);if(!G(ae,kt.text)){!st.options.implementations&&(st.options.findInStrings&&vT(ze,ut)||st.options.findInComments&&Khe(ze,ut))&&st.addStringOrCommentReference(ze.fileName,yl(ut,kt.text.length));return}if(!be(ae,st))return;let Me=st.checker.getSymbolAtLocation(ae);if(!Me)return;const ke=ae.parent;if(yu(ke)&&ke.propertyName===ae)return;if(p_(ke)){E.assert(ae.kind===80),rt(ae,Me,ke,kt,st,Ut);return}const ft=In(kt,Me,ae,st);if(!ft){Ge(Me,kt,st);return}switch(st.specialSearchKind){case 0:Ut&&tt(ae,ft,st);break;case 1:mt(ae,ze,kt,st);break;case 2:Je(ae,kt,st);break;default:E.assertNever(st.specialSearchKind)}Zn(ae)&&Fa(ae.parent)&&t2(ae.parent.parent.parent)&&(Me=ae.parent.symbol,!Me)||Pe(ae,Me,kt,st)}function rt(ze,ut,kt,st,Ut,ae,Me){E.assert(!Me||!!Ut.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:ke,propertyName:ft,name:K}=kt,$e=ke.parent,Ae=ct(ze,ut,kt,Ut.checker);if(!Me&&!st.includes(Ae))return;if(ft?ze===ft?($e.moduleSpecifier||yt(),ae&&Ut.options.use!==2&&Ut.markSeenReExportRHS(K)&&tt(K,E.checkDefined(kt.symbol),Ut)):Ut.markSeenReExportRHS(ze)&&yt():Ut.options.use===2&&K.escapedText==="default"||yt(),!Er(Ut.options)||Me){const Jt=ze.escapedText==="default"||kt.name.escapedText==="default"?1:0,Ln=E.checkDefined(kt.symbol),Pt=une(Ln,Jt,Ut.checker);Pt&&U(ze,Ln,Pt,Ut)}if(st.comingFrom!==1&&$e.moduleSpecifier&&!ft&&!Er(Ut.options)){const _t=Ut.checker.getExportSpecifierLocalTargetSymbol(kt);_t&&ee(_t,Ut)}function yt(){ae&&tt(ze,Ae,Ut)}}function ct(ze,ut,kt,st){return pe(ze,kt)&&st.getExportSpecifierLocalTargetSymbol(kt)||ut}function pe(ze,ut){const{parent:kt,propertyName:st,name:Ut}=ut;return E.assert(st===ze||Ut===ze),st?st===ze:!kt.parent.moduleSpecifier}function Pe(ze,ut,kt,st){const Ut=ake(ze,ut,st.checker,kt.comingFrom===1);if(!Ut)return;const{symbol:ae}=Ut;Ut.kind===0?Er(st.options)||ee(ae,st):U(ze,ae,Ut.exportInfo,st)}function Ge({flags:ze,valueDeclaration:ut},kt,st){const Ut=st.checker.getShorthandAssignmentValueSymbol(ut),ae=ut&&os(ut);!(ze&33554432)&&ae&&kt.includes(Ut)&&tt(ae,Ut,st)}function tt(ze,ut,kt){const{kind:st,symbol:Ut}="kind"in ut?ut:{kind:void 0,symbol:ut};if(kt.options.use===2&&ze.kind===90)return;const ae=kt.referenceAdder(Ut);kt.options.implementations?Tn(ze,ae,kt):ae(ze,st)}function mt(ze,ut,kt,st){L8(ze)&&tt(ze,kt.symbol,st);const Ut=()=>st.referenceAdder(kt.symbol);if(ei(ze.parent))E.assert(ze.kind===90||ze.parent.name===ze),at(kt.symbol,ut,Ut());else{const ae=xn(ze);ae&&(It(ae,Ut()),_r(ae,st))}}function Je(ze,ut,kt){tt(ze,ut.symbol,kt);const st=ze.parent;if(kt.options.use===2||!ei(st))return;E.assert(st.name===ze);const Ut=kt.referenceAdder(ut.symbol);for(const ae of st.members)!(n6(ae)&&Ps(ae))||ae.body&&ae.body.forEachChild(function Me(ke){ke.kind===110?Ut(ke):!ks(ke)&&!ei(ke)&&ke.forEachChild(Me)})}function at(ze,ut,kt){const st=zt(ze);if(st&&st.declarations)for(const Ut of st.declarations){const ae=$a(Ut,137,ut);E.assert(Ut.kind===176&&!!ae),kt(ae)}ze.exports&&ze.exports.forEach(Ut=>{const ae=Ut.valueDeclaration;if(ae&&ae.kind===174){const Me=ae.body;Me&&Gt(Me,110,ke=>{L8(ke)&&kt(ke)})}})}function zt(ze){return ze.members&&ze.members.get("__constructor")}function It(ze,ut){const kt=zt(ze.symbol);if(!!(kt&&kt.declarations))for(const st of kt.declarations){E.assert(st.kind===176);const Ut=st.body;Ut&&Gt(Ut,108,ae=>{aY(ae)&&ut(ae)})}}function bt(ze){return!!zt(ze.symbol)}function _r(ze,ut){if(bt(ze))return;const kt=ze.symbol,st=ut.createSearch(void 0,kt,void 0);k(kt,ut,st)}function Tn(ze,ut,kt){if(Gg(ze)&&wi(ze.parent)){ut(ze);return}if(ze.kind!==80)return;ze.parent.kind===304&&Zt(ze,kt.checker,ut);const st=jt(ze);if(st){ut(st);return}const Ut=On(ze,ke=>!gu(ke.parent)&&!Di(ke.parent)&&!Nb(ke.parent)),ae=Ut.parent;if(p9(ae)&&ae.type===Ut&&kt.markSeenContainingTypeReference(ae))if(r1(ae))Me(ae.initializer);else if(ks(ae)&&ae.body){const ke=ae.body;ke.kind===241?Kv(ke,ft=>{ft.expression&&Me(ft.expression)}):Me(ke)}else Pb(ae)&&Me(ae.expression);function Me(ke){Kn(ke)&&ut(ke)}}function jt(ze){return we(ze)||kr(ze)?jt(ze.parent):nh(ze)?Hr(ze.parent.parent,Yp(ei,f_)):void 0}function Kn(ze){switch(ze.kind){case 217:return Kn(ze.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function br(ze,ut,kt,st){if(ze===ut)return!0;const Ut=ya(ze)+","+ya(ut),ae=kt.get(Ut);if(ae!==void 0)return ae;kt.set(Ut,!1);const Me=!!ze.declarations&&ze.declarations.some(ke=>_3(ke).some(ft=>{const K=st.getTypeAtLocation(ft);return!!K&&!!K.symbol&&br(K.symbol,ut,kt,st)}));return kt.set(Ut,Me),Me}function fi(ze){let ut=jw(ze,!1);if(!ut)return;let kt=32;switch(ut.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:kt&=o1(ut),ut=ut.parent;break;default:return}const st=ut.getSourceFile(),Ut=qi(re(st,"super",ut),ae=>{if(ae.kind!==108)return;const Me=jw(ae,!1);return Me&&Ps(Me)===!!kt&&Me.parent.symbol===ut.symbol?Am(ae):void 0});return[{definition:{type:0,symbol:ut.symbol},references:Ut}]}function Si(ze){return ze.kind===80&&ze.parent.kind===169&&ze.parent.name===ze}function Nr(ze,ut,kt){let st=tu(ze,!1,!1),Ut=32;switch(st.kind){case 174:case 173:if(Sp(st)){Ut&=o1(st),st=st.parent;break}case 172:case 171:case 176:case 177:case 178:Ut&=o1(st),st=st.parent;break;case 312:if(zc(st)||Si(ze))return;case 262:case 218:break;default:return}const ae=Na(st.kind===312?ut:[st.getSourceFile()],ke=>(kt.throwIfCancellationRequested(),re(ke,"this",Ri(st)?ke:st).filter(ft=>{if(!k4(ft))return!1;const K=tu(ft,!1,!1);if(!Nd(K))return!1;switch(st.kind){case 218:case 262:return st.symbol===K.symbol;case 174:case 173:return Sp(st)&&st.symbol===K.symbol;case 231:case 263:case 210:return K.parent&&Nd(K.parent)&&st.symbol===K.parent.symbol&&Ps(K)===!!Ut;case 312:return K.kind===312&&!zc(K)&&!Si(ft)}}))).map(ke=>Am(ke));return[{definition:{type:3,node:_c(ae,ke=>ns(ke.node.parent)?ke.node:void 0)||ze},references:ae}]}function pt(ze,ut,kt,st){const Ut=xM(ze,kt),ae=Na(ut,Me=>(st.throwIfCancellationRequested(),qi(re(Me,ze.text),ke=>{if(Qa(ke)&&ke.text===ze.text)if(Ut){const ft=xM(ke,kt);if(Ut!==kt.getStringType()&&Ut===ft)return Am(ke,2)}else return rS(ke)&&!Wb(ke,Me)?void 0:Am(ke,2)})));return[{definition:{type:4,node:ze},references:ae}]}function ur(ze,ut,kt,st,Ut,ae){const Me=[];return yn(ze,ut,kt,st,!(st&&Ut),(ke,ft,K)=>{K&&cn(ze)!==cn(K)&&(K=void 0),Me.push(K||ft||ke)},()=>!ae),Me}function yn(ze,ut,kt,st,Ut,ae,Me){const ke=dN(ut);if(ke){const Jt=kt.getShorthandAssignmentValueSymbol(ut.parent);if(Jt&&st)return ae(Jt,void 0,void 0,3);const Ln=kt.getContextualType(ke.parent),Pt=Ln&&_c(qR(ke,kt,Ln,!0),le=>yt(le,4));if(Pt)return Pt;const hi=Z(ut,kt),z=hi&&ae(hi,void 0,void 0,4);if(z)return z;const B=Jt&&ae(Jt,void 0,void 0,3);if(B)return B}const ft=o(ut,ze,kt);if(ft){const Jt=ae(ft,void 0,void 0,1);if(Jt)return Jt}const K=yt(ze);if(K)return K;if(ze.valueDeclaration&&Du(ze.valueDeclaration,ze.valueDeclaration.parent)){const Jt=kt.getSymbolsOfParameterPropertyDeclaration(Ms(ze.valueDeclaration,ns),ze.name);return E.assert(Jt.length===2&&!!(Jt[0].flags&1)&&!!(Jt[1].flags&4)),yt(ze.flags&1?Jt[1]:Jt[0])}const $e=uc(ze,281);if(!st||$e&&!$e.propertyName){const Jt=$e&&kt.getExportSpecifierLocalTargetSymbol($e);if(Jt){const Ln=ae(Jt,void 0,void 0,1);if(Ln)return Ln}}if(!st){let Jt;return Ut?Jt=L5(ut.parent)?MM(kt,ut.parent):void 0:Jt=_t(ze,kt),Jt&&yt(Jt,4)}if(E.assert(st),Ut){const Jt=_t(ze,kt);return Jt&&yt(Jt,4)}function yt(Jt,Ln){return _c(kt.getRootSymbols(Jt),Pt=>ae(Jt,Pt,void 0,Ln)||(Pt.parent&&Pt.parent.flags&96&&Me(Pt)?Ct(Pt.parent,Pt.name,kt,hi=>ae(Jt,Pt,hi,Ln)):void 0))}function _t(Jt,Ln){const Pt=uc(Jt,208);if(Pt&&L5(Pt))return MM(Ln,Pt)}}function Ct(ze,ut,kt,st){const Ut=new Map;return ae(ze);function ae(Me){if(!(!(Me.flags&96)||!Kp(Ut,ya(Me))))return _c(Me.declarations,ke=>_c(_3(ke),ft=>{const K=kt.getTypeAtLocation(ft),$e=K&&K.symbol&&kt.getPropertyOfType(K,ut);return K&&$e&&(_c(kt.getRootSymbols($e),st)||ae(K.symbol))}))}}function cn(ze){return ze.valueDeclaration?!!(I_(ze.valueDeclaration)&32):!1}function In(ze,ut,kt,st){const{checker:Ut}=st;return yn(ut,kt,Ut,!1,st.options.use!==2||!!st.options.providePrefixAndSuffixTextForRename,(ae,Me,ke,ft)=>(ke&&cn(ut)!==cn(ke)&&(ke=void 0),ze.includes(ke||Me||ae)?{symbol:Me&&!(rc(ae)&6)?Me:ae,kind:ft}:void 0),ae=>!(ze.parents&&!ze.parents.some(Me=>br(ae.parent,Me,st.inheritsFromCache,Ut))))}function xr(ze,ut){let kt=gT(ze);const{declarations:st}=ut;if(st){let Ut;do{Ut=kt;for(const ae of st){const Me=T5(ae);Me&kt&&(kt|=Me)}}while(kt!==Ut)}return kt}e.getIntersectingMeaningFromDeclarations=xr;function wi(ze){return ze.flags&33554432?!(f_(ze)||wp(ze)):m6(ze)?r1(ze):Eo(ze)?!!ze.body:ei(ze)||Ew(ze)}function Zt(ze,ut,kt){const st=ut.getSymbolAtLocation(ze),Ut=ut.getShorthandAssignmentValueSymbol(st.valueDeclaration);if(Ut)for(const ae of Ut.getDeclarations())T5(ae)&1&&kt(ae)}e.getReferenceEntriesForShorthandPropertyAssignment=Zt;function Gt(ze,ut,kt){ys(ze,st=>{st.kind===ut&&kt(st),Gt(st,ut,kt)})}function xn(ze){return Nq(gM(ze).parent)}function Gr(ze,ut,kt){const st=S4(ze)?ze.parent:void 0,Ut=st&&kt.getTypeAtLocation(st.expression),ae=qi(Ut&&(Ut.isUnionOrIntersection()?Ut.types:Ut.symbol===ut.parent?void 0:[Ut]),Me=>Me.symbol&&Me.symbol.flags&96?Me.symbol:void 0);return ae.length===0?void 0:ae}function Er(ze){return ze.use===2&&ze.providePrefixAndSuffixTextForRename}})(AT||(AT={}))}}),Oo={};C_(Oo,{Core:()=>AT,DefinitionKind:()=>yne,EntryKind:()=>vne,ExportKind:()=>pne,FindReferencesUse:()=>bne,ImportExport:()=>dne,createImportTracker:()=>_ne,findModuleReferences:()=>rke,findReferenceOrRenameEntries:()=>bqe,findReferencedSymbols:()=>hqe,getContextNode:()=>A2,getExportInfo:()=>une,getImplementationsAtPosition:()=>vqe,getImportOrExportSymbol:()=>ake,getReferenceEntriesForNode:()=>lke,getTextSpanOfEntry:()=>gne,isContextWithStartAndEndNode:()=>oke,isDeclarationOfSymbol:()=>pke,isWriteAccessForReference:()=>hne,nodeEntry:()=>Am,toContextSpan:()=>mne,toHighlightSpan:()=>wqe,toReferenceEntry:()=>fke,toRenameLocation:()=>xqe});var dke=Bt({"src/services/_namespaces/ts.FindAllReferences.ts"(){mqe(),Aqe()}});function mke(e,t,r,i,a){var o,l;const u=hke(t,r,e),f=u&&[Jqe(u.reference.fileName,u.fileName,u.unverified)]||Ve;if(u!=null&&u.file)return f;const g=af(t,r);if(g===t)return;const{parent:m}=g,y=e.getTypeChecker();if(g.kind===164||we(g)&&kF(m)&&m.tagName===g)return Pqe(y,g)||Ve;if(S5(g)){const M=hM(g.parent,g.text);return M?[Tne(y,M,"label",g.text,void 0)]:void 0}if(g.kind===107){const M=On(g.parent,V=>ec(V)?"quit":Eo(V));return M?[MN(y,M)]:void 0}if(g.kind===135){const M=On(g,U=>Eo(U));return M&&dt(M.modifiers,U=>U.kind===134)?[MN(y,M)]:void 0}if(g.kind===127){const M=On(g,U=>Eo(U));return M&&M.asteriskToken?[MN(y,M)]:void 0}if(sS(g)&&ec(g.parent)){const M=g.parent.parent,{symbol:V,failedAliasResolution:U}=zj(M,y,a),Y=Vr(M.members,ec),j=V?y.symbolToString(V,M):"",ee=g.getSourceFile();return an(Y,R=>{let{pos:Z}=Ld(R);return Z=ua(ee.text,Z),Tne(y,R,"constructor","static {}",j,!1,U,{start:Z,length:6})})}let{symbol:x,failedAliasResolution:k}=zj(g,y,a),C=g;if(i&&k){const M=mn([g,...(x==null?void 0:x.declarations)||Ve],U=>On(U,Ole)),V=M&&c3(M);V&&({symbol:x,failedAliasResolution:k}=zj(V,y,a),C=V)}if(!x&&LM(C)){const M=(l=(o=t.resolvedModules)==null?void 0:o.get(C.text,op(t,C)))==null?void 0:l.resolvedModule;if(M)return[{name:C.text,fileName:M.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:yl(0,0),failedAliasResolution:k,isAmbient:su(M.resolvedFileName),unverified:C!==g}]}if(!x)return Ki(f,Rqe(g,y));if(i&&$i(x.declarations,M=>M.getSourceFile().fileName===t.fileName))return;const N=Vqe(y,g);if(N&&!(V_(g.parent)&&Uqe(N))){const M=MN(y,N,k);if(y.getRootSymbols(x).some(V=>Nqe(V,N)))return[M];{const V=M4(y,x,g,k,N)||Ve;return g.kind===108?[M,...V]:[...V,M]}}if(g.parent.kind===304){const M=y.getShorthandAssignmentValueSymbol(x.valueDeclaration),V=M!=null&&M.declarations?M.declarations.map(U=>vE(U,y,M,g,!1,k)):Ve;return Ki(V,gke(y,g))}if(Jc(g)&&Fa(m)&&td(m.parent)&&g===(m.propertyName||m.name)){const M=F5(g),V=y.getTypeAtLocation(m.parent);return M===void 0?Ve:Na(V.isUnion()?V.types:[V],U=>{const Y=U.getProperty(M);return Y&&M4(y,Y,g)})}const D=gke(y,g);return Ki(f,D.length?D:M4(y,x,g,k))}function Nqe(e,t){var r;return e===t.symbol||e===t.symbol.parent||Kl(t.parent)||!$v(t.parent)&&e===((r=Hr(t.parent,Nd))==null?void 0:r.symbol)}function gke(e,t){const r=dN(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Na(qR(r,e,i,!1),a=>M4(e,a,t))}return Ve}function Pqe(e,t){const r=On(t,Nl);if(!(r&&r.name))return;const i=On(r,ei);if(!i)return;const a=Id(i);if(!a)return;const o=uo(a.expression),l=Fl(o)?o.symbol:e.getSymbolAtLocation(o);if(!l)return;const u=Li(_6(r.name)),f=$c(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(!!f)return M4(e,f,t)}function hke(e,t,r){var i,a,o,l;const u=R4(e.referencedFiles,t);if(u){const m=r.getSourceFileFromReference(e,u);return m&&{reference:u,fileName:m.fileName,file:m,unverified:!1}}const f=R4(e.typeReferenceDirectives,t);if(f){const m=(i=r.getResolvedTypeReferenceDirectives().get(f.fileName,f.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,y=m&&r.getSourceFile(m.resolvedFileName);return y&&{reference:f,fileName:y.fileName,file:y,unverified:!1}}const g=R4(e.libReferenceDirectives,t);if(g){const m=r.getLibFileFromReference(g);return m&&{reference:g,fileName:m.fileName,file:m,unverified:!1}}if((a=e.resolvedModules)!=null&&a.size()){const m=B8(e,t);if(LM(m)&&Al(m.text)&&e.resolvedModules.has(m.text,op(e,m))){const y=(l=(o=e.resolvedModules.get(m.text,op(e,m)))==null?void 0:o.resolvedModule)==null?void 0:l.resolvedFileName,x=y||$h(bi(e.fileName),m.text);return{file:r.getSourceFile(x),fileName:x,reference:{pos:m.getStart(),end:m.getEnd(),fileName:m.text},unverified:!y}}}}function Iqe(e,t){const r=t.symbol.name;if(!Sne.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function yke(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!Sne.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function Oqe(e,t,r,i){var a,o;if(!!(Br(t)&4)&&Iqe(e,t))return yE(e.getTypeArguments(t)[0],e,r,i);if(yke(e,t)&&t.aliasTypeArguments)return yE(t.aliasTypeArguments[0],e,r,i);if(Br(t)&32&&t.target&&yke(e,t.target)){const l=(o=(a=t.aliasSymbol)==null?void 0:a.declarations)==null?void 0:o[0];if(l&&wp(l)&&sp(l.type)&&l.type.typeArguments)return yE(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function Fqe(e,t,r){const i=af(t,r);if(i===t)return;if(d6(i.parent)&&i.parent.name===i)return yE(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:a,failedAliasResolution:o}=zj(i,e,!1);if(!a)return;const l=e.getTypeOfSymbolAtLocation(a,i),u=Lqe(a,l,e),f=u&&yE(u,e,i,o),[g,m]=f&&f.length!==0?[u,f]:[l,yE(l,e,i,o)];return m.length?[...Oqe(e,g,i,o),...m]:!(a.flags&111551)&&a.flags&788968?M4(e,iu(a,e),i,o):void 0}function yE(e,t,r,i){return Na(e.isUnion()&&!(e.flags&32)?e.types:[e],a=>a.symbol&&M4(t,a.symbol,r,i))}function Lqe(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Mi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(wa(i))}}function Mqe(e,t,r){const i=mke(e,t,r);if(!i||i.length===0)return;const a=R4(t.referencedFiles,r)||R4(t.typeReferenceDirectives,r)||R4(t.libReferenceDirectives,r);if(a)return{definitions:i,textSpan:b1(a)};const o=af(t,r),l=yl(o.getStart(),o.getWidth());return{definitions:i,textSpan:l}}function Rqe(e,t){return qi(t.getIndexInfosAtLocation(e),r=>r.declaration&&MN(t,r.declaration))}function zj(e,t,r){const i=t.getSymbolAtLocation(e);let a=!1;if((i==null?void 0:i.declarations)&&i.flags&2097152&&!r&&Bqe(e,i.declarations[0])){const o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};a=!0}return{symbol:i,failedAliasResolution:a}}function Bqe(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function jqe(e){if(!o3(e))return!1;const t=On(e,r=>Kl(r)?!0:o3(r)?!1:"quit");return!!t&&pc(t)===5}function M4(e,t,r,i,a){const o=Vr(t.declarations,y=>y!==a),l=Vr(o,y=>!jqe(y)),u=dt(l)?l:o;return f()||g()||an(u,y=>vE(y,e,t,r,!1,i));function f(){if(t.flags&32&&!(t.flags&19)&&(L8(r)||r.kind===137)){const y=Fr(o,ei)||E.fail("Expected declaration to have at least one class-like declaration");return m(y.members,!0)}}function g(){return oY(r)||pY(r)?m(o,!1):void 0}function m(y,x){if(!y)return;const k=y.filter(x?wc:ks),C=k.filter(N=>!!N.body);return k.length?C.length!==0?C.map(N=>vE(N,e,t,r)):[vE(ka(k),e,t,r,!1,i)]:void 0}}function vE(e,t,r,i,a,o){const l=t.symbolToString(r),u=fh.getSymbolKind(t,r,i),f=r.parent?t.symbolToString(r.parent,i):"";return Tne(t,e,u,l,f,a,o)}function Tne(e,t,r,i,a,o,l,u){const f=t.getSourceFile();if(!u){const g=os(t)||t;u=au(g,f)}return{fileName:f.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:a,...Oo.toContextSpan(u,f,Oo.getContextNode(t)),isLocal:!xne(e,t),isAmbient:!!(t.flags&33554432),unverified:o,failedAliasResolution:l}}function xne(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(r1(t.parent)&&t.parent.initializer===t)return xne(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(Iu(t,8))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return xne(e,t.parent);default:return!1}}function MN(e,t,r){return vE(t,e,t.symbol,t,!1,r)}function R4(e,t){return Fr(e,r=>dw(r,t))}function Jqe(e,t,r){return{fileName:t,textSpan:ll(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function zqe(e){const t=On(e,i=>!S4(i)),r=t==null?void 0:t.parent;return r&&$v(r)&&L9(r)===t?r:void 0}function Vqe(e,t){const r=zqe(t),i=r&&e.getResolvedSignature(r);return Hr(i&&i.declaration,a=>ks(a)&&!sg(a))}function Uqe(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var Sne,Wqe=Bt({"src/services/goToDefinition.ts"(){Wr(),Sne=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),bE={};C_(bE,{createDefinitionInfo:()=>vE,findReferenceInPosition:()=>R4,getDefinitionAndBoundSpan:()=>Mqe,getDefinitionAtPosition:()=>mke,getReferenceAtPosition:()=>hke,getTypeDefinitionAtPosition:()=>Fqe});var qqe=Bt({"src/services/_namespaces/ts.GoToDefinition.ts"(){Wqe()}});function Hqe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Gqe(e){return e.includeInlayParameterNameHints==="literals"}function vke(e){return e.interactiveInlayHints===!0}function $qe(e){const{file:t,program:r,span:i,cancellationToken:a,preferences:o}=e,l=t.text,u=r.getCompilerOptions(),f=r.getTypeChecker(),g=[];return m(t),g;function m(re){if(!(!re||re.getFullWidth()===0)){switch(re.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:a.throwIfCancellationRequested()}if(!!$I(i,re.pos,re.getFullWidth())&&!(Di(re)&&!nh(re)))return o.includeInlayVariableTypeHints&&Mi(re)||o.includeInlayPropertyDeclarationTypeHints&&Is(re)?M(re):o.includeInlayEnumMemberValueHints&&y2(re)?N(re):Hqe(o)&&(js(re)||f2(re))?V(re):(o.includeInlayFunctionParameterTypeHints&&Eo(re)&&CO(re)&&Z(re),o.includeInlayFunctionLikeReturnTypeHints&&y(re)&&ee(re)),ys(re,m)}}function y(re){return Po(re)||fo(re)||tl(re)||Ec(re)||gf(re)}function x(re,ue,fe,G,Ne){let De=`${G?"...":""}${re}`,Xe;vke(o)?(Xe=[Q(De,ue,Ne),{text:":"}],De=""):De+=":",g.push({text:De,position:fe,kind:"Parameter",whitespaceAfter:!0,displayParts:Xe})}function k(re,ue){g.push({text:`: ${re.length>kne?re.substr(0,kne-3)+"...":re}`,position:ue,kind:"Type",whitespaceBefore:!0})}function C(re,ue){g.push({text:`= ${re}`,position:ue,kind:"Enum",whitespaceBefore:!0})}function N(re){if(re.initializer)return;const ue=f.getConstantValue(re);ue!==void 0&&C(ue.toString(),re.end)}function D(re){return re.symbol&&re.symbol.flags&1536}function M(re){if(!re.initializer||Ns(re.name)||Mi(re)&&!H(re)||Vl(re))return;const fe=f.getTypeAtLocation(re);if(D(fe))return;const G=_e(fe);if(G){if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&bx(re.name.getText(),G))return;k(G,re.name.end)}}function V(re){const ue=re.arguments;if(!ue||!ue.length)return;const fe=[],G=f.getResolvedSignatureForSignatureHelp(re,fe);if(!G||!fe.length)return;let Ne=0;const De=vke(o)?re.getSourceFile():void 0;for(const Xe of ue){const ve=uo(Xe);if(Gqe(o)&&!j(ve))continue;let be=0;if(Bd(ve)){const rt=f.getTypeAtLocation(ve.expression);if(f.isTupleType(rt)){const{elementFlags:ct,fixedLength:pe}=rt.target;if(pe===0)continue;const Pe=qc(ct,tt=>!(tt&1));(Pe<0?pe:Pe)>0&&(be=Pe<0?pe:Pe)}}const xe=f.getParameterIdentifierInfoAtPosition(G,Ne);if(Ne=Ne+(be||1),xe){const{parameter:rt,parameterName:ct,isRestParameter:pe}=xe;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!U(ve,ct))&&!pe)continue;const Ge=Li(ct);if(Y(ve,Ge))continue;x(Ge,rt,Xe.getStart(),pe,De)}}}function U(re,ue){return we(re)?re.text===ue:kr(re)?re.name.text===ue:!1}function Y(re,ue){if(!pf(ue,u.target,ED(t.scriptKind)))return!1;const fe=Hm(l,re.pos);if(!(fe!=null&&fe.length))return!1;const G=bke(ue);return dt(fe,Ne=>G.test(l.substring(Ne.pos,Ne.end)))}function j(re){switch(re.kind){case 224:{const ue=re.operand;return wb(ue)||we(ue)&&z3(ue.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const ue=re.escapedText;return X(ue)||z3(ue)}}return wb(re)}function ee(re){if(Po(re)&&!$a(re,21,t)||Kf(re)||!re.body)return;const fe=f.getSignatureFromDeclaration(re);if(!fe)return;const G=f.getReturnTypeOfSignature(fe);if(D(G))return;const Ne=_e(G);!Ne||k(Ne,R(re))}function R(re){const ue=$a(re,22,t);return ue?ue.end:re.parameters.end}function Z(re){const ue=f.getSignatureFromDeclaration(re);if(!!ue)for(let fe=0;fe{const Ne=f.typeToTypeNode(re,void 0,71286784);E.assertIsDefined(Ne,"should always get typenode"),fe.writeNode(4,Ne,t,G)})}function X(re){return re==="undefined"}function H(re){if((Jb(re)||Mi(re)&&f6(re))&&re.initializer){const ue=uo(re.initializer);return!(j(ue)||f2(ue)||ha(ue)||Pb(ue))}return!0}function Q(re,ue,fe){return{text:re,span:au(ue,fe),file:fe.fileName}}}var kne,bke,Xqe=Bt({"src/services/inlayHints.ts"(){Wr(),kne=30,bke=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),Cne={};C_(Cne,{provideInlayHints:()=>$qe});var Qqe=Bt({"src/services/_namespaces/ts.InlayHints.ts"(){Xqe()}});function Yqe(e,t){const r=[];return MY(e,i=>{for(const a of Kqe(i)){const o=Dp(a)&&a.tags&&Fr(a.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(a.comment===void 0&&!o||Dp(a)&&i.kind!==353&&i.kind!==345&&a.tags&&a.tags.some(u=>u.kind===353||u.kind===345)&&!a.tags.some(u=>u.kind===348||u.kind===349))continue;let l=a.comment?GS(a.comment,t):[];o&&o.comment&&(l=l.concat(GS(o.comment,t))),gs(r,l,Zqe)||r.push(l)}}),vp(Kz(r,[w4()]))}function Zqe(e,t){return N7(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Kqe(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];default:return nq(e)}}function eHe(e,t){const r=[];return MY(e,i=>{const a=dy(i);if(!(a.some(o=>o.kind===353||o.kind===345)&&!a.some(o=>o.kind===348||o.kind===349)))for(const o of a)r.push({name:o.tagName.text,text:tHe(o,t)})}),r}function GS(e,t){return typeof e=="string"?[vf(e)]:Na(e,r=>r.kind===328?[vf(r.text)]:f1e(r,t))}function tHe(e,t){const{comment:r,kind:i}=e,a=nHe(i);switch(i){case 356:const u=e.typeExpression;return u?o(u):r===void 0?void 0:GS(r,t);case 336:return o(e.class);case 335:return o(e.class);case 352:const f=e,g=[];if(f.constraint&&g.push(vf(f.constraint.getText())),Pn(f.typeParameters)){Pn(g)&&g.push(sc());const y=f.typeParameters[f.typeParameters.length-1];mn(f.typeParameters,x=>{g.push(a(x.getText())),y!==x&&g.push(m_(28),sc())})}return r&&g.push(sc(),...GS(r,t)),g;case 351:case 357:return o(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:m}=e;return m?o(m):r===void 0?void 0:GS(r,t);default:return r===void 0?void 0:GS(r,t)}function o(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[vf(u),...GS(r,t)]:[a(u),sc(),...GS(r,t)]:[vf(u)]}}function nHe(e){switch(e){case 348:return o1e;case 355:return c1e;case 352:return _1e;case 353:case 345:return l1e;default:return vf}}function rHe(){return xke||(xke=an(wne,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:HS.SortText.LocationPriority})))}function iHe(){return Ske||(Ske=an(wne,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:HS.SortText.LocationPriority})))}function Tke(e){return{name:e,kind:"",kindModifiers:"",displayParts:[vf(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function sHe(e){if(!we(e.name))return Ve;const t=e.name.text,r=e.parent,i=r.parent;return ks(i)?qi(i.parameters,a=>{if(!we(a.name))return;const o=a.name.text;if(!(r.tags.some(l=>l!==e&&rd(l)&&we(l.name)&&l.name.escapedText===o)||t!==void 0&&!ts(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:HS.SortText.LocationPriority}}):[]}function aHe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[vf(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function oHe(e,t,r,i){const a=Vi(t,r),o=On(a,Dp);if(o&&(o.comment!==void 0||Pn(o.tags)))return;const l=a.getStart(t);if(!o&&l0;if(N&&!V){const U=D+e+k+" * ",Y=l===r?e+k:"";return{newText:U+e+N+k+M+Y,caretOffset:U.length}}return{newText:D+M,caretOffset:3}}function cHe(e,t){const{text:r}=e,i=_p(t,e);let a=i;for(;a<=t&&Ad(r.charCodeAt(a));a++);return r.slice(i,a)}function lHe(e,t,r,i){return e.map(({name:a,dotDotDotToken:o},l)=>{const u=a.kind===80?a.text:"param"+l;return`${r} * @param ${t?o?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function _He(e,t){return`${e} * @returns${t}`}function uHe(e,t){return hle(e,r=>Ene(r,t))}function Ene(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:RN(r,t)};case 303:return Ene(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const a=e;return a.type&&sg(a.type)?{commentOwner:e,parameters:a.type.parameters,hasReturn:RN(a.type,t)}:{commentOwner:e}}case 243:{const o=e.declarationList.declarations,l=o.length===1&&o[0].initializer?fHe(o[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:RN(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return Ene(e.expression,t);case 226:{const a=e;return pc(a)===0?"quit":ks(a.right)?{commentOwner:e,parameters:a.right.parameters,hasReturn:RN(a.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(fo(i)||Po(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:RN(i,t)}}}function RN(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(sg(e)||Po(e)&&nt(e.body)||Eo(e)&&e.body&&hs(e.body)&&!!Kv(e.body,r=>r))}function fHe(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Fr(e.members,wc)}}var wne,xke,Ske,kke,pHe=Bt({"src/services/jsDoc.ts"(){Wr(),wne=["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","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],kke=Tke}}),zy={};C_(zy,{getDocCommentTemplateAtPosition:()=>oHe,getJSDocParameterNameCompletionDetails:()=>aHe,getJSDocParameterNameCompletions:()=>sHe,getJSDocTagCompletionDetails:()=>Tke,getJSDocTagCompletions:()=>iHe,getJSDocTagNameCompletionDetails:()=>kke,getJSDocTagNameCompletions:()=>rHe,getJsDocCommentsFromDeclarations:()=>Yqe,getJsDocTagsFromDeclarations:()=>eHe});var dHe=Bt({"src/services/_namespaces/ts.JsDoc.ts"(){pHe()}});function mHe(e,t,r,i,a,o){const l=er.ChangeTracker.fromContext({host:r,formatContext:t,preferences:a}),u=o==="SortAndCombine"||o==="All",f=u,g=o==="RemoveUnused"||o==="All",m=Vj(e,e.statements.filter(bl)),y=IHe(a,u?()=>wke(m,a)===2:void 0),x=C=>(g&&(C=hHe(C,e,i)),f&&(C=Cke(C,y,e)),u&&(C=M0(C,(N,D)=>Ine(N,D,y))),C);m.forEach(C=>k(C,x)),o!=="RemoveUnused"&&OHe(e).forEach(C=>k(C,N=>Dne(N,y)));for(const C of e.statements.filter(__)){if(!C.body)continue;if(Vj(e,C.body.statements.filter(bl)).forEach(D=>k(D,x)),o!=="RemoveUnused"){const D=C.body.statements.filter(Yc);k(D,M=>Dne(M,y))}}return l.getChanges();function k(C,N){if(Pn(C)===0)return;Xn(C[0],1024);const D=f?wC(C,U=>BN(U.moduleSpecifier)):[C],M=u?M0(D,(U,Y)=>Nne(U[0].moduleSpecifier,Y[0].moduleSpecifier,y)):D,V=Na(M,U=>BN(U[0].moduleSpecifier)||U[0].moduleSpecifier===void 0?N(U):U);if(V.length===0)l.deleteNodes(e,C,{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Include},!0);else{const U={leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Include,suffix:r0(r,t.options)};l.replaceNodeWithNodes(e,C[0],V,U);const Y=l.nodeHasTrailingComment(e,C[0],U);l.deleteNodes(e,C.slice(1),{trailingTriviaOption:er.TrailingTriviaOption.Include},Y)}}}function Vj(e,t){const r=V0(e.languageVersion,!1,e.languageVariant),i=[];let a=0;for(const o of t)i[a]&&gHe(e,o,r)&&a++,i[a]||(i[a]=[]),i[a].push(o);return i}function gHe(e,t,r){const i=t.getFullStart(),a=t.getStart();r.setText(e.text,i,a-i);let o=0;for(;r.getTokenStart()=2))return!0;return!1}function hHe(e,t,r){const i=r.getTypeChecker(),a=r.getCompilerOptions(),o=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),f=[];for(const m of e){const{importClause:y,moduleSpecifier:x}=m;if(!y){f.push(m);continue}let{name:k,namedBindings:C}=y;if(k&&!g(k)&&(k=void 0),C)if(p1(C))g(C.name)||(C=void 0);else{const N=C.elements.filter(D=>g(D.name));N.lengthpa(i)&&i.text===r)}function BN(e){return e!==void 0&&Qa(e)?e.text:void 0}function vHe(e,t,r){const i=Uj(t);return Cke(e,i,r)}function Cke(e,t,r){if(e.length===0)return e;const{importWithoutClause:i,typeOnlyImports:a,regularImports:o}=bHe(e),l=[];i&&l.push(i);for(const u of[o,a]){const f=u===a,{defaultImports:g,namespaceImports:m,namedImports:y}=u;if(!f&&g.length===1&&m.length===1&&y.length===0){const Y=g[0];l.push(TE(Y,Y.importClause.name,m[0].importClause.namedBindings));continue}const x=M0(m,(Y,j)=>t(Y.importClause.namedBindings.name.text,j.importClause.namedBindings.name.text));for(const Y of x)l.push(TE(Y,void 0,Y.importClause.namedBindings));const k=wl(g),C=wl(y),N=k!=null?k:C;if(!N)continue;let D;const M=[];if(g.length===1)D=g[0].importClause.name;else for(const Y of g)M.push(I.createImportSpecifier(!1,I.createIdentifier("default"),Y.importClause.name));M.push(...DHe(y));const V=I.createNodeArray(Eke(M,t),C==null?void 0:C.importClause.namedBindings.elements.hasTrailingComma),U=V.length===0?D?void 0:I.createNamedImports(Ve):C?I.updateNamedImports(C.importClause.namedBindings,V):I.createNamedImports(V);r&&U&&(C==null?void 0:C.importClause.namedBindings)&&!Wb(C.importClause.namedBindings,r)&&Xn(U,2),f&&D&&U?(l.push(TE(N,D,void 0)),l.push(TE(C!=null?C:N,void 0,U))):l.push(TE(N,D,U))}return l}function bHe(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const a of e){if(a.importClause===void 0){t=t||a;continue}const o=a.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=a.importClause;l&&o.defaultImports.push(a),u&&(p1(u)?o.namespaceImports.push(a):o.namedImports.push(a))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function THe(e,t){const r=Uj(t);return Dne(e,r)}function Dne(e,t){if(e.length===0)return e;const{exportWithoutClause:r,namedExports:i,typeOnlyExports:a}=l(e),o=[];r&&o.push(r);for(const u of[i,a]){if(u.length===0)continue;const f=[];f.push(...Na(u,y=>y.exportClause&&ap(y.exportClause)?y.exportClause.elements:Ve));const g=Eke(f,t),m=u[0];o.push(I.updateExportDeclaration(m,m.modifiers,m.isTypeOnly,m.exportClause&&(ap(m.exportClause)?I.updateNamedExports(m.exportClause,g):I.updateNamespaceExport(m.exportClause,m.exportClause.name)),m.moduleSpecifier,m.assertClause))}return o;function l(u){let f;const g=[],m=[];for(const y of u)y.exportClause===void 0?f=f||y:y.isTypeOnly?m.push(y):g.push(y);return{exportWithoutClause:f,namedExports:g,typeOnlyExports:m}}}function TE(e,t,r){return I.updateImportDeclaration(e,e.modifiers,I.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.assertClause)}function Eke(e,t){return M0(e,(r,i)=>Ane(r,i,t))}function Ane(e,t,r){return Rv(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}function xHe(e,t,r){const i=Uj(!!r);return Nne(e,t,i)}function Nne(e,t,r){const i=e===void 0?void 0:BN(e),a=t===void 0?void 0:BN(t);return Rv(i===void 0,a===void 0)||Rv(Al(i),Al(a))||r(i,a)}function Pne(e){var t;switch(e.kind){case 271:return(t=Hr(e.moduleReference,km))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function SHe(e,t){return wke(Vj(e,e.statements.filter(bl)),t)}function wke(e,t){const r=$S(t,!1),i=$S(t,!0);let a=3,o=!1;for(const l of e){if(l.length>1){const f=lI(l,g=>{var y;var m;return(y=(m=Hr(g.moduleSpecifier,pa))==null?void 0:m.text)!=null?y:""},r,i);if(f&&(a&=f,o=!0),!a)return a}const u=Fr(l,f=>{var g,m;return((m=Hr((g=f.importClause)==null?void 0:g.namedBindings,rh))==null?void 0:m.elements.length)>1});if(u){const f=One(u.importClause.namedBindings.elements,t);if(f&&(a&=f,o=!0),!a)return a}if(a!==3)return a}return o?0:a}function kHe(e,t){const r=$S(t,!1),i=$S(t,!0);return lI(e,a=>BN(Pne(a))||"",r,i)}function CHe(e,t,r){const i=Hh(e,t,Zo,(a,o)=>Ine(a,o,r));return i<0?~i:i}function EHe(e,t,r){const i=Hh(e,t,Zo,(a,o)=>Ane(a,o,r));return i<0?~i:i}function Ine(e,t,r){return Nne(Pne(e),Pne(t),r)||wHe(e,t)}function wHe(e,t){return Co(Dke(e),Dke(t))}function Dke(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function DHe(e){return Na(e,t=>an(AHe(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?I.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function AHe(e){var t;return((t=e.importClause)==null?void 0:t.namedBindings)&&rh(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function Uj(e){return e?foe:w_}function NHe(e,t){var f,g,m;const r=PHe(t),i=(f=t.organizeImportsCaseFirst)!=null?f:!1,a=(g=t.organizeImportsNumericCollation)!=null?g:!1,o=(m=t.organizeImportsAccentCollation)!=null?m:!0,l=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:a}).compare}function PHe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=poe()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function $S(e,t){var i;return((i=e.organizeImportsCollation)!=null?i:"ordinal")==="unicode"?NHe(t,e):Uj(t)}function IHe(e,t){var i;const r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(i=t==null?void 0:t())!=null?i:!1;return $S(e,r)}function OHe(e){const t=[],r=e.statements,i=Pn(r);let a=0,o=0;for(;aVj(e,l))}var Ake,One,FHe=Bt({"src/services/organizeImports.ts"(){Wr(),Ake=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){var i;this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),(i=this._cache)!=null||(this._cache=new WeakMap),this._cache.set(e,r)}},One=_oe((e,t)=>{if(!toe(e,(a,o)=>Rv(a.isTypeOnly,o.isTypeOnly)))return 0;const r=$S(t,!1),i=$S(t,!0);return lI(e,a=>a.name.text,r,i)},new Ake)}}),Op={};C_(Op,{coalesceExports:()=>THe,coalesceImports:()=>vHe,compareImportOrExportSpecifiers:()=>Ane,compareImportsOrRequireStatements:()=>Ine,compareModuleSpecifiers:()=>xHe,detectImportDeclarationSorting:()=>kHe,detectImportSpecifierSorting:()=>One,detectSorting:()=>SHe,getImportDeclarationInsertionIndex:()=>CHe,getImportSpecifierInsertionIndex:()=>EHe,getOrganizeImportsComparer:()=>$S,organizeImports:()=>mHe});var LHe=Bt({"src/services/_namespaces/ts.OrganizeImports.ts"(){FHe()}});function MHe(e,t){const r=[];return RHe(e,t,r),BHe(e,r),r.sort((i,a)=>i.textSpan.start-a.textSpan.start)}function RHe(e,t,r){let i=40,a=0;const o=[...e.statements,e.endOfFileToken],l=o.length;for(;a1&&i.push(jN(o,l,"comment"))}}function Pke(e,t,r,i){nS(e)||Fne(e.pos,t,r,i)}function jN(e,t,r){return NT(ll(e,t),r)}function jHe(e,t){switch(e.kind){case 241:if(ks(e.parent))return JHe(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:const k=e.parent;if(k.tryBlock===e)return m(e.parent);if(k.finallyBlock===e){const C=$a(k,98,t);if(C)return m(C)}default:return NT(au(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!Q6(e.parent),23);case 296:case 297:return y(e.statements);case 210:return g(e);case 209:return g(e,23);case 284:return o(e);case 288:return l(e);case 285:case 286:return u(e.attributes);case 228:case 15:return f(e);case 207:return m(e,!1,!Fa(e.parent),23);case 219:return a(e);case 213:return i(e);case 217:return x(e);case 275:case 279:case 300:return r(e)}function r(k){if(!k.elements.length)return;const C=$a(k,19,t),N=$a(k,20,t);if(!(!C||!N||tp(C.pos,N.pos,t)))return Wj(C,N,k,t,!1,!1)}function i(k){if(!k.arguments.length)return;const C=$a(k,21,t),N=$a(k,22,t);if(!(!C||!N||tp(C.pos,N.pos,t)))return Wj(C,N,k,t,!1,!0)}function a(k){if(hs(k.body)||hu(k.body)||tp(k.body.getFullStart(),k.body.getEnd(),t))return;const C=ll(k.body.getFullStart(),k.body.getEnd());return NT(C,"code",au(k))}function o(k){const C=ll(k.openingElement.getStart(t),k.closingElement.getEnd()),N=k.openingElement.tagName.getText(t),D="<"+N+">...";return NT(C,"code",C,!1,D)}function l(k){const C=ll(k.openingFragment.getStart(t),k.closingFragment.getEnd());return NT(C,"code",C,!1,"<>...")}function u(k){if(k.properties.length!==0)return jN(k.getStart(t),k.getEnd(),"code")}function f(k){if(!(k.kind===15&&k.text.length===0))return jN(k.getStart(t),k.getEnd(),"code")}function g(k,C=19){return m(k,!1,!u_(k.parent)&&!js(k.parent),C)}function m(k,C=!1,N=!0,D=19,M=D===19?20:24){const V=$a(e,D,t),U=$a(e,M,t);return V&&U&&Wj(V,U,k,t,C,N)}function y(k){return k.length?NT(b1(k),"code"):void 0}function x(k){if(tp(k.getStart(),k.getEnd(),t))return;const C=ll(k.getStart(),k.getEnd());return NT(C,"code",au(k))}}function JHe(e,t,r){const i=zHe(e,t,r),a=$a(t,20,r);return i&&a&&Wj(i,a,e,r,e.kind!==219)}function Wj(e,t,r,i,a=!1,o=!0){const l=ll(o?e.getFullStart():e.getStart(i),t.getEnd());return NT(l,"code",au(r,i),a)}function NT(e,t,r=e,i=!1,a="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:a,autoCollapse:i}}function zHe(e,t,r){if($_e(e.parameters,r)){const i=$a(e,21,r);if(i)return i}return $a(t,19,r)}var Ike,VHe=Bt({"src/services/outliningElementsCollector.ts"(){Wr(),Ike=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Lne={};C_(Lne,{collectElements:()=>MHe});var UHe=Bt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){VHe()}});function WHe(e,t,r,i){const a=SM(af(t,r));if(Fke(a)){const o=qHe(a,e.getTypeChecker(),t,e,i);if(o)return o}return qj(p.You_cannot_rename_this_element)}function qHe(e,t,r,i,a){const o=t.getSymbolAtLocation(e);if(!o){if(Qa(e)){const x=xM(e,t);if(x&&(x.flags&128||x.flags&1048576&&$i(x.types,k=>!!(k.flags&128))))return Mne(e.text,e.text,"string","",e,r)}else if(lY(e)){const x=el(e);return Mne(x,x,"label","",e,r)}return}const{declarations:l}=o;if(!l||l.length===0)return;if(l.some(x=>HHe(i,x)))return qj(p.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(we(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if(Qa(e)&&eD(e))return a.allowRenameOfImportPath?$He(e,r,o):void 0;const u=GHe(r,o,t,a);if(u)return qj(u);const f=fh.getSymbolKind(t,o,e),g=p1e(e)||If(e)&&e.parent.kind===167?Cp(kp(e)):void 0,m=g||t.symbolToString(o),y=g||t.getFullyQualifiedName(o);return Mne(m,y,f,fh.getSymbolModifiers(t,o),e,r)}function HHe(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Hc(r.fileName,".d.ts")}function GHe(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&Fr(t.declarations,u=>yu(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:a}=t;if(!a)return;const o=Oke(e.path);if(o===void 0)return dt(a,l=>C1e(l.getSourceFile().path))?p.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of a){const u=Oke(l.getSourceFile().path);if(u){const f=Math.min(o.length,u.length);for(let g=0;g<=f;g++)if(w_(o[g],u[g])!==0)return p.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function Oke(e){const t=Dl(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function $He(e,t,r){if(!Al(e.text))return qj(p.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&Fr(r.declarations,Ri);if(!i)return;const a=Tc(e.text,"/index")||Tc(e.text,"/index.js")?void 0:goe(mu(i.fileName),"/index"),o=a===void 0?i.fileName:a,l=a===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,f=yl(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:o,kind:l,displayName:o,fullDisplayName:o,kindModifiers:"",triggerSpan:f}}function Mne(e,t,r,i,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:XHe(a,o)}}function qj(e){return{canRename:!1,localizedErrorMessage:ss(e)}}function XHe(e,t){let r=e.getStart(t),i=e.getWidth(t);return Qa(e)&&(r+=1,i-=2),yl(r,i)}function Fke(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return yM(e);default:return!1}}var QHe=Bt({"src/services/rename.ts"(){Wr()}}),Hj={};C_(Hj,{getRenameInfo:()=>WHe,nodeIsEligibleForRename:()=>Fke});var YHe=Bt({"src/services/_namespaces/ts.Rename.ts"(){QHe()}});function ZHe(e,t,r,i,a){const o=e.getTypeChecker(),l=kM(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(vT(t,r,l)||ch(t,r)))return;const f=!!i&&i.kind==="invoked",g=dGe(l,r,t,o,f);if(!g)return;a.throwIfCancellationRequested();const m=KHe(g,o,t,l,u);return a.throwIfCancellationRequested(),m?o.runWithCancellationToken(a,y=>m.kind===0?zke(m.candidates,m.resolvedSignature,g,t,y):gGe(m.symbol,g,t,y)):P_(t)?tGe(g,e,a):void 0}function KHe({invocation:e,argumentCount:t},r,i,a,o){switch(e.kind){case 0:{if(o&&!eGe(a,e.node,i))return;const l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{const{called:l}=e;if(o&&!Lke(a,i,we(l)?l.parent:l))return;const u=TY(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:wa(u)};const f=r.getSymbolAtLocation(l);return f&&{kind:1,symbol:f}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return E.assertNever(e)}}function eGe(e,t,r){if(!Xm(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return gs(i,e);case 28:{const a=TM(e);return!!a&&gs(i,a)}case 30:return Lke(e,r,t.expression);default:return!1}}function tGe(e,t,r){if(e.invocation.kind===2)return;const i=jke(e.invocation),a=kr(i)?i.name.text:void 0,o=t.getTypeChecker();return a===void 0?void 0:_c(t.getSourceFiles(),l=>_c(l.getNamedDeclarations().get(a),u=>{const f=u.symbol&&o.getTypeOfSymbolAtLocation(u.symbol,u),g=f&&f.getCallSignatures();if(g&&g.length)return o.runWithCancellationToken(r,m=>zke(g,g[0],e,l,m,!0))}))}function Lke(e,t,r){const i=e.getFullStart();let a=e.parent;for(;a;){const o=rl(i,t,a,!0);if(o)return yf(r,o);a=a.parent}return E.fail("Could not find preceding token")}function nGe(e,t,r){const i=Rke(e,t,r);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function Mke(e,t,r){const i=rGe(e,r);if(!i)return;const{list:a,argumentIndex:o}=i,l=_Ge(a,vT(r,t,e));o!==0&&E.assertLessThan(o,l);const u=fGe(a,r);return{list:a,argumentIndex:o,argumentCount:l,argumentsSpan:u}}function rGe(e,t){if(e.kind===30||e.kind===21)return{list:mGe(e.parent,e,t),argumentIndex:0};{const r=TM(e);return r&&{list:r,argumentIndex:lGe(r,e)}}}function Rke(e,t,r){const{parent:i}=e;if(Xm(i)){const a=i,o=Mke(e,t,r);if(!o)return;const{list:l,argumentIndex:u,argumentCount:f,argumentsSpan:g}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===l.pos,invocation:{kind:0,node:a},argumentsSpan:g,argumentIndex:u,argumentCount:f}}else{if(rS(e)&&Qb(i))return N5(e,t,r)?Bne(i,0,r):void 0;if(G6(e)&&i.parent.kind===215){const a=i,o=a.parent;E.assert(a.kind===228);const l=N5(e,t,r)?0:1;return Bne(o,l,r)}else if(s8(i)&&Qb(i.parent.parent)){const a=i,o=i.parent.parent;if(qH(e)&&!N5(e,t,r))return;const l=a.parent.templateSpans.indexOf(a),u=uGe(l,e,t,r);return Bne(o,u,r)}else if(V_(i)){const a=i.attributes.pos,o=ua(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:yl(a,o-a),argumentIndex:0,argumentCount:1}}else{const a=xY(e,r);if(a){const{called:o,nTypeArguments:l}=a,u={kind:1,called:o},f=ll(o.getStart(r),e.end);return{isTypeParameterList:!0,invocation:u,argumentsSpan:f,argumentIndex:l,argumentCount:l+1}}return}}}function iGe(e,t,r,i){return sGe(e,t,r,i)||Rke(e,t,r)}function Bke(e){return rr(e.parent)?Bke(e.parent):e}function Rne(e){return rr(e.left)?Rne(e.left)+1:2}function sGe(e,t,r,i){const a=aGe(e);if(a===void 0)return;const o=oGe(a,r,t,i);if(o===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:f,argumentsSpan:g}=o,m=l.getNonNullableType(),y=m.symbol;if(y===void 0)return;const x=Bo(m.getCallSignatures());return x===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:x,node:e,symbol:cGe(y)},argumentsSpan:g,argumentIndex:u,argumentCount:f}}function aGe(e){switch(e.kind){case 21:case 28:return e;default:return On(e.parent,t=>ns(t)?!0:Fa(t)||td(t)||uS(t)?!1:"quit")}}function oGe(e,t,r,i){const{parent:a}=e;switch(a.kind){case 217:case 174:case 218:case 219:const o=Mke(e,r,t);if(!o)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:f}=o,g=Ec(a)?i.getContextualTypeForObjectLiteralElement(a):i.getContextualType(a);return g&&{contextualType:g,argumentIndex:l,argumentCount:u,argumentsSpan:f};case 226:{const m=Bke(a),y=i.getContextualType(m),x=e.kind===21?0:Rne(a)-1,k=Rne(m);return y&&{contextualType:y,argumentIndex:x,argumentCount:k,argumentsSpan:au(a)}}default:return}}function cGe(e){return e.name==="__type"&&_c(e.declarations,t=>{var r;return sg(t)?(r=Hr(t.parent,Nd))==null?void 0:r.symbol:void 0})||e}function lGe(e,t){let r=0;for(const i of e.getChildren()){if(i===t)break;i.kind!==28&&r++}return r}function _Ge(e,t){const r=e.getChildren();let i=L0(r,a=>a.kind!==28);return!t&&r.length>0&&ka(r).kind===28&&i++,i}function uGe(e,t,r,i){return E.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Hce(t)?N5(t,r,i)?0:e+2:e+1}function Bne(e,t,r){const i=rS(e.template)?1:e.template.templateSpans.length+1;return t!==0&&E.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:pGe(e,r),argumentIndex:t,argumentCount:i}}function fGe(e,t){const r=e.getFullStart(),i=ua(t.text,e.getEnd(),!1);return yl(r,i-r)}function pGe(e,t){const r=e.template,i=r.getStart();let a=r.getEnd();return r.kind===228&&ka(r.templateSpans).literal.getFullWidth()===0&&(a=ua(t.text,a,!1)),yl(i,a-i)}function dGe(e,t,r,i,a){for(let o=e;!Ri(o)&&(a||!hs(o));o=o.parent){E.assert(yf(o.parent,o),"Not a subspan",()=>`Child: ${E.formatSyntaxKind(o.kind)}, parent: ${E.formatSyntaxKind(o.parent.kind)}`);const l=iGe(o,t,r,i);if(l)return l}}function mGe(e,t,r){const i=e.getChildren(r),a=i.indexOf(t);return E.assert(a>=0&&i.length>a+1),i[a+1]}function jke(e){return e.kind===0?L9(e.node):e.called}function Jke(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function zke(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:a,invocation:o,argumentIndex:l},u,f,g){var m;const y=Jke(o),x=o.kind===2?o.symbol:f.getSymbolAtLocation(jke(o))||g&&((m=t.declaration)==null?void 0:m.symbol),k=x?U8(f,x,g?u:void 0,void 0):Ve,C=an(e,U=>yGe(U,k,r,f,y,u));l!==0&&E.assertLessThan(l,i);let N=0,D=0;for(let U=0;U1)){let j=0;for(const ee of Y){if(ee.isVariadic||ee.parameters.length>=i){N=D+j;break}j++}}D+=Y.length}E.assert(N!==-1);const M={items:P7(C,Zo),applicableSpan:a,selectedItemIndex:N,argumentIndex:l,argumentCount:i},V=M.items[N];if(V.isVariadic){const U=qc(V.parameters,Y=>!!Y.isRest);-1Vke(y,r,i,a,l)),f=e.getDocumentationComment(r),g=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...o,m_(30)],suffixDisplayParts:[m_(32)],separatorDisplayParts:jne,parameters:u,documentation:f,tags:g}}function yGe(e,t,r,i,a,o){const l=(r?bGe:TGe)(e,i,a,o);return an(l,({isVariadic:u,parameters:f,prefix:g,suffix:m})=>{const y=[...t,...g],x=[...m,...vGe(e,a,i)],k=e.getDocumentationComment(i),C=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:x,separatorDisplayParts:jne,parameters:f,documentation:k,tags:C}})}function vGe(e,t,r){return T1(i=>{i.writePunctuation(":"),i.writeSpace(" ");const a=r.getTypePredicateOfSignature(e);a?r.writeTypePredicate(a,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function bGe(e,t,r,i){const a=(e.target||e).typeParameters,o=C2(),l=(a||Ve).map(f=>Vke(f,t,r,i,o)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,xE)]:[];return t.getExpandedParameters(e).map(f=>{const g=I.createNodeArray([...u,...an(f,y=>t.symbolToParameterDeclaration(y,r,xE))]),m=T1(y=>{o.writeList(2576,g,i,y)});return{isVariadic:!1,parameters:l,prefix:[m_(30)],suffix:[m_(32),...m]}})}function TGe(e,t,r,i){const a=C2(),o=T1(f=>{if(e.typeParameters&&e.typeParameters.length){const g=I.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,xE)));a.writeList(53776,g,i,f)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?f=>!0:f=>{var g;return!!(f.length&&((g=Hr(f[f.length-1],pm))==null?void 0:g.links.checkFlags)&32768)}:f=>!1;return l.map(f=>({isVariadic:u(f),parameters:f.map(g=>xGe(g,t,r,i,a)),prefix:[...o,m_(21)],suffix:[m_(22)]}))}function xGe(e,t,r,i,a){const o=T1(f=>{const g=t.symbolToParameterDeclaration(e,r,xE);a.writeNode(4,g,i,f)}),l=t.isOptionalParameter(e.valueDeclaration),u=pm(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:l,isRest:u}}function Vke(e,t,r,i,a){const o=T1(l=>{const u=t.typeParameterToDeclaration(e,r,xE);a.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var xE,jne,SGe=Bt({"src/services/signatureHelp.ts"(){Wr(),xE=70246400,jne=[m_(28),sc()]}}),JN={};C_(JN,{getArgumentInfoForCompletions:()=>nGe,getSignatureHelpItems:()=>ZHe});var kGe=Bt({"src/services/_namespaces/ts.SignatureHelp.ts"(){SGe()}});function CGe(e,t){var r,i;let a={textSpan:ll(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const f=wGe(o);if(!f.length)break;for(let g=0;ge)break e;const k=om(ly(t.text,y.end));if(k&&k.kind===2&&u(k.pos,k.end),EGe(t,e,y)){if(uW(y)&&Eo(o)&&!tp(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),hs(y)||s8(y)||G6(y)||qH(y)||m&&G6(m)||dl(y)&&ic(o)||a4(y)&&dl(o)||Mi(y)&&a4(o)&&f.length===1||nT(y)||Iy(y)||r4(y)){o=y;break}if(s8(o)&&x&&i9(x)){const M=y.getFullStart()-2,V=x.getStart()+1;l(M,V)}const C=a4(y)&&DGe(m)&&AGe(x)&&!tp(m.getStart(),x.getStart(),t);let N=C?m.getEnd():y.getStart();const D=C?x.getStart():NGe(t,y);if(Qu(y)&&((r=y.jsDoc)==null?void 0:r.length)&&l(wa(y.jsDoc).getStart(),D),a4(y)){const M=y.getChildren()[0];M&&Qu(M)&&((i=M.jsDoc)==null?void 0:i.length)&&M.getStart()!==y.pos&&(N=Math.min(N,wa(M.jsDoc).getStart()))}l(N,D),(pa(y)||r6(y))&&l(N+1,D-1),o=y;break}if(g===f.length-1)break e}}return a;function l(f,g){if(f!==g){const m=ll(f,g);(!a||!E4(m,a.textSpan)&&Sce(m,e))&&(a={textSpan:m,...a&&{parent:a}})}}function u(f,g){l(f,g);let m=f;for(;t.text.charCodeAt(m)===47;)m++;l(m,g)}}function EGe(e,t,r){return E.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=SE(o,({kind:u})=>u===23||u===168||u===24);return[r,kE(Gj(l,({kind:u})=>u===59)),a]}if(mf(e)){const r=SE(e.getChildren(),l=>l===e.name||gs(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,a=i?r.slice(1):r,o=Gj(a,({kind:l})=>l===59);return i?[i,kE(o)]:o}if(ns(e)){const r=SE(e.getChildren(),a=>a===e.dotDotDotToken||a===e.name),i=SE(r,a=>a===r[0]||a===e.questionToken);return Gj(i,({kind:a})=>a===64)}return Fa(e)?Gj(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function SE(e,t){const r=[];let i;for(const a of e)t(a)?(i=i||[],i.push(a)):(i&&(r.push(kE(i)),i=void 0),r.push(a));return i&&r.push(kE(i)),r}function Gj(e,t,r=!0){if(e.length<2)return e;const i=qc(e,t);if(i===-1)return e;const a=e.slice(0,i),o=e[i],l=ka(e),u=r&&l.kind===27,f=e.slice(i+1,u?e.length-1:void 0),g=M7([a.length?kE(a):void 0,o,f.length?kE(f):void 0]);return u?g.concat(l):g}function kE(e){return E.assertGreaterThanOrEqual(e.length,1),Tm(Cm.createSyntaxList(e),e[0].pos,ka(e).end)}function DGe(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function AGe(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function NGe(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Uke,PGe=Bt({"src/services/smartSelection.ts"(){Wr(),Uke=Yp(bl,Hl)}}),Jne={};C_(Jne,{getSmartSelectionRange:()=>CGe});var IGe=Bt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){PGe()}});function Wke(e,t,r){const i=qke(e,t,r);if(i!=="")return i;const a=E3(t);return a&32?uc(t,231)?"local class":"class":a&384?"enum":a&524288?"type":a&64?"interface":a&262144?"type parameter":a&8?"enum member":a&2097152?"alias":a&1536?"module":i}function qke(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&wa(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&nt(r)||qx(r))return"parameter";const a=E3(t);if(a&3)return BY(t)?"parameter":t.valueDeclaration&&f6(t.valueDeclaration)?"const":t.valueDeclaration&&Mw(t.valueDeclaration)?"using":t.valueDeclaration&&Lw(t.valueDeclaration)?"await using":mn(t.declarations,C9)?"let":$ke(t)?"local var":"var";if(a&16)return $ke(t)?"local function":"function";if(a&32768)return"getter";if(a&65536)return"setter";if(a&8192)return"method";if(a&16384)return"constructor";if(a&131072)return"index";if(a&4){if(a&33554432&&t.links.checkFlags&6){const o=mn(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return o||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function Hke(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Pn(r)&&YM(t)&&dt(r,o=>!YM(o))?8192:0,a=j8(t,i);if(a)return a.split(",")}return[]}function OGe(e,t){if(!t)return"";const r=new Set(Hke(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&mn(Hke(i),a=>{r.add(a)})}return t.flags&16777216&&r.add("optional"),r.size>0?ia(r.values()).join(","):""}function Gke(e,t,r,i,a,o,l,u){var f;const g=[];let m=[],y=[];const x=E3(t);let k=l&1?qke(e,t,a):"",C=!1;const N=a.kind===110&&R9(a)||qx(a);let D,M,V=!1;if(a.kind===110&&!N)return{displayParts:[Ru(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(k!==""||x&32||x&2097152){if(k==="getter"||k==="setter"){const re=Fr(t.declarations,ue=>ue.name===a);if(re)switch(re.kind){case 177:k="getter";break;case 178:k="setter";break;case 172:k="accessor";break;default:E.assertNever(re)}else k="property"}let H;if(o!=null||(o=N?e.getTypeAtLocation(a):e.getTypeOfSymbolAtLocation(t,a)),a.parent&&a.parent.kind===211){const re=a.parent.name;(re===a||re&&re.getFullWidth()===0)&&(a=a.parent)}let Q;if(Xm(a)?Q=a:(aY(a)||L8(a)||a.parent&&(V_(a.parent)||Qb(a.parent))&&ks(t.valueDeclaration))&&(Q=a.parent),Q){H=e.getResolvedSignature(Q);const re=Q.kind===214||js(Q)&&Q.expression.kind===108,ue=re?o.getConstructSignatures():o.getCallSignatures();if(H&&!gs(ue,H.target)&&!gs(ue,H)&&(H=ue.length?ue[0]:void 0),H){switch(re&&x&32?(k="constructor",Z(o.symbol,k)):x&2097152?(k="alias",oe(k),g.push(sc()),re&&(H.flags&4&&(g.push(Ru(128)),g.push(sc())),g.push(Ru(105)),g.push(sc())),R(t)):Z(t,k),k){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(m_(59)),g.push(sc()),!(Br(o)&16)&&o.symbol&&(Lr(g,U8(e,o.symbol,i,void 0,5)),g.push(w4())),re&&(H.flags&4&&(g.push(Ru(128)),g.push(sc())),g.push(Ru(105)),g.push(sc())),_e(H,ue,262144);break;default:_e(H,ue)}C=!0,V=ue.length>1}}else if(pY(a)&&!(x&98304)||a.kind===137&&a.parent.kind===176){const re=a.parent;if(t.declarations&&Fr(t.declarations,fe=>fe===(a.kind===137?re.parent:re))){const fe=re.kind===176?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(re)?H=fe[0]:H=e.getSignatureFromDeclaration(re),re.kind===176?(k="constructor",Z(o.symbol,k)):Z(re.kind===179&&!(o.symbol.flags&2048||o.symbol.flags&4096)?o.symbol:t,k),H&&_e(H,fe),C=!0,V=fe.length>1}}}if(x&32&&!C&&!N&&(j(),uc(t,231)?oe("local class"):g.push(Ru(86)),g.push(sc()),R(t),X(t,r)),x&64&&l&2&&(Y(),g.push(Ru(120)),g.push(sc()),R(t),X(t,r)),x&524288&&l&2&&(Y(),g.push(Ru(156)),g.push(sc()),R(t),X(t,r),g.push(sc()),g.push(V8(64)),g.push(sc()),Lr(g,B5(e,a.parent&&Ug(a.parent)?e.getTypeAtLocation(a.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),x&384&&(Y(),dt(t.declarations,H=>Ay(H)&&Zv(H))&&(g.push(Ru(87)),g.push(sc())),g.push(Ru(94)),g.push(sc()),R(t)),x&1536&&!N){Y();const H=uc(t,267),Q=H&&H.name&&H.name.kind===80;g.push(Ru(Q?145:144)),g.push(sc()),R(t)}if(x&262144&&l&2)if(Y(),g.push(m_(21)),g.push(vf("type parameter")),g.push(m_(22)),g.push(sc()),R(t),t.parent)ee(),R(t.parent,i),X(t.parent,i);else{const H=uc(t,168);if(H===void 0)return E.fail();const Q=H.parent;if(Q)if(ks(Q)){ee();const re=e.getSignatureFromDeclaration(Q);Q.kind===180?(g.push(Ru(105)),g.push(sc())):Q.kind!==179&&Q.name&&R(Q.symbol),Lr(g,zY(e,re,r,32))}else wp(Q)&&(ee(),g.push(Ru(156)),g.push(sc()),R(Q.symbol),X(Q.symbol,r))}if(x&8){k="enum member",Z(t,"enum member");const H=(f=t.declarations)==null?void 0:f[0];if((H==null?void 0:H.kind)===306){const Q=e.getConstantValue(H);Q!==void 0&&(g.push(sc()),g.push(V8(64)),g.push(sc()),g.push(vu(Ale(Q),typeof Q=="number"?7:8)))}}if(t.flags&2097152){if(Y(),!C||m.length===0&&y.length===0){const H=e.getAliasedSymbol(t);if(H!==t&&H.declarations&&H.declarations.length>0){const Q=H.declarations[0],re=os(Q);if(re&&!C){const ue=T9(Q)&&Mr(Q,2),fe=t.name!=="default"&&!ue,G=Gke(e,H,Bn(Q),Q,re,o,l,fe?t:H);g.push(...G.displayParts),g.push(w4()),D=G.documentation,M=G.tags}else D=H.getContextualDocumentationComment(Q,e),M=H.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:g.push(Ru(95)),g.push(sc()),g.push(Ru(145));break;case 277:g.push(Ru(95)),g.push(sc()),g.push(Ru(t.declarations[0].isExportEquals?64:90));break;case 281:g.push(Ru(95));break;default:g.push(Ru(102))}g.push(sc()),R(t),mn(t.declarations,H=>{if(H.kind===271){const Q=H;if(gy(Q))g.push(sc()),g.push(V8(64)),g.push(sc()),g.push(Ru(149)),g.push(m_(21)),g.push(vu(el(a3(Q)),8)),g.push(m_(22));else{const re=e.getSymbolAtLocation(Q.moduleReference);re&&(g.push(sc()),g.push(V8(64)),g.push(sc()),R(re,i))}return!0}})}if(!C)if(k!==""){if(o){if(N?(Y(),g.push(Ru(110))):Z(t,k),k==="property"||k==="accessor"||k==="getter"||k==="setter"||k==="JSX attribute"||x&3||k==="local var"||k==="index"||k==="using"||k==="await using"||N){if(g.push(m_(59)),g.push(sc()),o.symbol&&o.symbol.flags&262144&&k!=="index"){const H=T1(Q=>{const re=e.typeParameterToDeclaration(o,i,zne);U().writeNode(4,re,Bn(es(i)),Q)});Lr(g,H)}else Lr(g,B5(e,o,i));if(pm(t)&&t.links.target&&pm(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const H=t.links.target.links.tupleLabelDeclaration;E.assertNode(H.name,we),g.push(sc()),g.push(m_(21)),g.push(vf(lr(H.name))),g.push(m_(22))}}else if(x&16||x&8192||x&16384||x&131072||x&98304||k==="method"){const H=o.getNonNullableType().getCallSignatures();H.length&&(_e(H[0],H),V=H.length>1)}}}else k=Wke(e,t,a);if(m.length===0&&!V&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&x&4&&t.parent&&t.declarations&&mn(t.parent.declarations,H=>H.kind===312))for(const H of t.declarations){if(!H.parent||H.parent.kind!==226)continue;const Q=e.getSymbolAtLocation(H.parent.right);if(!!Q&&(m=Q.getDocumentationComment(e),y=Q.getJsDocTags(e),m.length>0))break}if(m.length===0&&we(a)&&t.valueDeclaration&&Fa(t.valueDeclaration)){const H=t.valueDeclaration,Q=H.parent;if(we(H.name)&&td(Q)){const re=kp(H.name),ue=e.getTypeAtLocation(Q);m=_c(ue.isUnion()?ue.types:[ue],fe=>{const G=fe.getProperty(re);return G?G.getDocumentationComment(e):void 0})||Ve}}return y.length===0&&!V&&(y=t.getContextualJsDocTags(i,e)),m.length===0&&D&&(m=D),y.length===0&&M&&(y=M),{displayParts:g,documentation:m,symbolKind:k,tags:y.length===0?void 0:y};function U(){return C2()}function Y(){g.length&&g.push(w4()),j()}function j(){u&&(oe("alias"),g.push(sc()))}function ee(){g.push(sc()),g.push(Ru(103)),g.push(sc())}function R(H,Q){let re;u&&H===t&&(H=u),k==="index"&&(re=e.getIndexInfosOfIndexSymbol(H));let ue=[];H.flags&131072&&re?(H.parent&&(ue=U8(e,H.parent)),ue.push(m_(23)),re.forEach((fe,G)=>{ue.push(...B5(e,fe.keyType)),G!==re.length-1&&(ue.push(sc()),ue.push(m_(52)),ue.push(sc()))}),ue.push(m_(24))):ue=U8(e,H,Q||r,void 0,7),Lr(g,ue),t.flags&16777216&&g.push(m_(58))}function Z(H,Q){Y(),Q&&(oe(Q),H&&!dt(H.declarations,re=>Po(re)||(fo(re)||Fl(re))&&!re.name)&&(g.push(sc()),R(H)))}function oe(H){switch(H){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":g.push(jY(H));return;default:g.push(m_(21)),g.push(jY(H)),g.push(m_(22));return}}function _e(H,Q,re=0){Lr(g,zY(e,H,i,re|32)),Q.length>1&&(g.push(sc()),g.push(m_(21)),g.push(V8(40)),g.push(vu((Q.length-1).toString(),7)),g.push(sc()),g.push(vf(Q.length===2?"overload":"overloads")),g.push(m_(22))),m=H.getDocumentationComment(e),y=H.getJsDocTags(),Q.length>1&&m.length===0&&y.length===0&&(m=Q[0].getDocumentationComment(e),y=Q[0].getJsDocTags().filter(ue=>ue.name!=="deprecated"))}function X(H,Q){const re=T1(ue=>{const fe=e.symbolToTypeParameterDeclarations(H,Q,zne);U().writeList(53776,fe,Bn(es(Q)),ue)});Lr(g,re)}}function FGe(e,t,r,i,a,o=gT(a),l){return Gke(e,t,r,i,a,void 0,o,l)}function $ke(e){return e.parent?!1:mn(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!e2(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var zne,LGe=Bt({"src/services/symbolDisplay.ts"(){Wr(),zne=70246400}}),fh={};C_(fh,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>FGe,getSymbolKind:()=>Wke,getSymbolModifiers:()=>OGe});var MGe=Bt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){LGe()}});function Xke(e){const t=e.__pos;return E.assert(typeof t=="number"),t}function Vne(e,t){E.assert(typeof t=="number"),e.__pos=t}function Qke(e){const t=e.__end;return E.assert(typeof t=="number"),t}function Une(e,t){E.assert(typeof t=="number"),e.__end=t}function Yke(e,t){return ua(e,t,!1,!0)}function RGe(e,t){let r=t;for(;r0?1:0;let x=s1(h3(e,g)+y,e);return x=Yke(e.text,x),s1(h3(e,x),e)}function Wne(e,t,r){const{end:i}=t,{trailingTriviaOption:a}=r;if(a===2){const o=ly(e.text,i);if(o){const l=h3(e,t.end);for(const u of o){if(u.kind===2||h3(e,u.pos)>l)break;if(h3(e,u.end)>l)return ua(e.text,u.end,!0,!0)}}}}function XS(e,t,r){var i;const{end:a}=t,{trailingTriviaOption:o}=r;if(o===0)return a;if(o===1){const f=Ki(ly(e.text,a),Hm(e.text,a)),g=(i=f==null?void 0:f[f.length-1])==null?void 0:i.end;return g||a}const l=Wne(e,t,r);if(l)return l;const u=ua(e.text,a,!0);return u!==a&&(o===2||Yl(e.text.charCodeAt(u-1)))?u:a}function $j(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function BGe(e){return fo(e)||tl(e)}function jGe(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function JGe(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const r=e,i=t;return we(r.name)&&we(i.name)&&r.name.escapedText===i.name.escapedText?I.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return I.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return I.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function qne(e,t){return ua(e.text,N2(e,t,{leadingTriviaOption:1}),!1,!0)}function zGe(e,t,r,i){const a=qne(e,i);if(r===void 0||tp(XS(e,t,{}),a,e))return a;const o=rl(i.getStart(e),e);if($j(t,o)){const l=rl(t.getStart(e),e);if($j(r,l)){const u=ua(e.text,o.getEnd(),!0,!0);if(tp(l.getStart(e),o.getStart(e),e))return Yl(e.text.charCodeAt(u-1))?u-1:u;if(Yl(e.text.charCodeAt(u)))return u}}return a}function VGe(e,t){const r=$a(e,19,t),i=$a(e,20,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function Xj(e){return ha(e)?e.properties:e.members}function Hne(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:a}=t[r];e=`${e.substring(0,i.start)}${a}${e.substring(Zl(i))}`}return e}function UGe(e){return ua(e,0)===e.length}function Qj(e){const t=pn(e,Qj,t6e,WGe,Qj),r=Do(t)?t:Object.create(t);return Tm(r,Xke(e),Qke(e)),r}function WGe(e,t,r,i,a){const o=An(e,t,r,i,a);if(!o)return o;E.assert(e);const l=o===e?I.createNodeArray(o.slice(0)):o;return Tm(l,Xke(e),Qke(e)),l}function Zke(e){let t=0;const r=gD(e),i=G=>{G&&Vne(G,t)},a=G=>{G&&Une(G,t)},o=G=>{G&&Vne(G,t)},l=G=>{G&&Une(G,t)},u=G=>{G&&Vne(G,t)},f=G=>{G&&Une(G,t)};function g(G,Ne){if(Ne||!UGe(G)){t=r.getTextPos();let De=0;for(;qm(G.charCodeAt(G.length-De-1));)De++;t-=De}}function m(G){r.write(G),g(G,!1)}function y(G){r.writeComment(G)}function x(G){r.writeKeyword(G),g(G,!1)}function k(G){r.writeOperator(G),g(G,!1)}function C(G){r.writePunctuation(G),g(G,!1)}function N(G){r.writeTrailingSemicolon(G),g(G,!1)}function D(G){r.writeParameter(G),g(G,!1)}function M(G){r.writeProperty(G),g(G,!1)}function V(G){r.writeSpace(G),g(G,!1)}function U(G){r.writeStringLiteral(G),g(G,!1)}function Y(G,Ne){r.writeSymbol(G,Ne),g(G,!1)}function j(G){r.writeLine(G)}function ee(){r.increaseIndent()}function R(){r.decreaseIndent()}function Z(){return r.getText()}function oe(G){r.rawWrite(G),g(G,!1)}function _e(G){r.writeLiteral(G),g(G,!0)}function X(){return r.getTextPos()}function H(){return r.getLine()}function Q(){return r.getColumn()}function re(){return r.getIndent()}function ue(){return r.isAtStartOfLine()}function fe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:a,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:f,write:m,writeComment:y,writeKeyword:x,writeOperator:k,writePunctuation:C,writeTrailingSemicolon:N,writeParameter:D,writeProperty:M,writeSpace:V,writeStringLiteral:U,writeSymbol:Y,writeLine:j,increaseIndent:ee,decreaseIndent:R,getText:Z,rawWrite:oe,writeLiteral:_e,getTextPos:X,getLine:H,getColumn:Q,getIndent:re,isAtStartOfLine:ue,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:fe}}function qGe(e){let t;for(const g of e.statements)if(xp(g))t=g;else break;let r=0;const i=e.text;if(t)return r=t.end,f(),r;const a=qI(i);a!==void 0&&(r=a.length,f());const o=Hm(i,r);if(!o)return r;let l,u;for(const g of o){if(g.kind===3){if(v9(i,g.pos)){l={range:g,pinnedOrTripleSlash:!0};continue}}else if(CW(i,g.pos,g.end)){l={range:g,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const m=e.getLineAndCharacterOfPosition(g.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const m=e.getLineAndCharacterOfPosition(g.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Gne||{}),$ne=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))($ne||{}),B4={leadingTriviaOption:0,trailingTriviaOption:0},e6e=class Xae{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Xae(r0(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=Xae.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){E.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:DM(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,CE(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},a){for(const o of r){const l=N2(t,o,i,a),u=XS(t,o,i);this.deleteRange(t,{pos:l,end:u}),a=!!Wne(t,o,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:ua(t.text,r.end,!0)})}deleteNodeRange(t,r,i,a={leadingTriviaOption:1}){const o=N2(t,r,a),l=XS(t,i,a);this.deleteRange(t,{pos:o,end:l})}deleteNodeRangeExcludingEnd(t,r,i,a={leadingTriviaOption:1}){const o=N2(t,r,a),l=i===void 0?t.text.length:N2(t,i,a);this.deleteRange(t,{pos:o,end:l})}replaceRange(t,r,i,a={}){this.changes.push({kind:1,sourceFile:t,range:r,options:a,node:i})}replaceNode(t,r,i,a=B4){this.replaceRange(t,CE(t,r,r,a),i,a)}replaceNodeRange(t,r,i,a,o=B4){this.replaceRange(t,CE(t,r,i,o),a,o)}replaceRangeWithNodes(t,r,i,a={}){this.changes.push({kind:2,sourceFile:t,range:r,options:a,nodes:i})}replaceNodeWithNodes(t,r,i,a=B4){this.replaceRangeWithNodes(t,CE(t,r,r,a),i,a)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,CE(t,r,r,B4),i)}replaceNodeRangeWithNodes(t,r,i,a,o=B4){this.replaceRangeWithNodes(t,CE(t,r,i,o),a,o)}nodeHasTrailingComment(t,r,i=B4){return!!Wne(t,r,i)}nextCommaToken(t,r){const i=yT(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const a=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:a})}insertNodeAt(t,r,i,a={}){this.replaceRange(t,ep(r),i,a)}insertNodesAt(t,r,i,a={}){this.replaceRangeWithNodes(t,ep(r),i,a)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){const a=qGe(t),o={prefix:a===0?void 0:this.newLineCharacter,suffix:(Yl(t.text.charCodeAt(a))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Ds(r)?this.insertNodesAt(t,a,r,o):this.insertNodeAt(t,a,r,o)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){const a=t.end+1,o={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,a,r,o)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=$f()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const a=wl(r);a?this.insertNodeBefore(t,a,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,a=!1,o={}){this.insertNodeAt(t,N2(t,r,o),i,this.getOptionsForInsertNodeBefore(r,i,a))}insertNodesBefore(t,r,i,a=!1,o={}){this.insertNodesAt(t,N2(t,r,o),i,this.getOptionsForInsertNodeBefore(r,wa(i),a))}insertModifierAt(t,r,i,a={}){this.insertNodeAt(t,r,I.createToken(i),a)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,a){const o=s1(r,t),l=g1e(t.text,o),u=Kke(t,l),f=B8(t,u?l:i),g=t.text.slice(o,l),m=`${u?"":this.newLineCharacter}//${a}${this.newLineCharacter}${g}`;this.insertText(t,f.getStart(t),m)}insertJsdocCommentBefore(t,r,i){const a=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:_p(u.getStart(t),t),end:XS(t,u,{})});const o=BM(t.text,a-1),l=t.text.slice(o,a);this.insertNodeAt(t,a,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=Na(r.jsDoc,o=>$s(o.comment)?I.createJSDocText(o.comment):o.comment),a=om(r.jsDoc);return a&&tp(a.pos,a.end,t)&&Pn(i)===0?void 0:I.createNodeArray(Kz(i,I.createJSDocText(` -`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,jGe(r),I.createJSDocComment(this.createJSDocText(t,r),I.createNodeArray(i)))}addJSDocTags(t,r,i){const a=P7(r.jsDoc,l=>l.tags),o=i.filter(l=>!a.some((u,f)=>{const g=JGe(u,l);return g&&(a[f]=g),!!g}));this.replaceJSDocComment(t,r,[...a,...o])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Vr(P7(r.jsDoc,a=>a.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,ep(r),i)}tryInsertTypeAnnotation(t,r,i){var o;let a;if(ks(r)){if(a=$a(r,22,t),!a){if(!Po(r))return!1;a=wa(r.parameters)}}else a=(o=r.kind===260?r.exclamationToken:r.questionToken)!=null?o:r.name;return this.insertNodeAt(t,a.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const a=$a(r,21,t).getStart(t)+1,o=r.parameters.length?", ":"";this.insertNodeAt(t,a,i,{prefix:"this: ",suffix:o})}insertTypeParameters(t,r,i){const a=($a(r,21,t)||wa(r.parameters)).getStart(t);this.insertNodesAt(t,a,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Ii(t)||Nl(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Mi(t)?{suffix:", "}:ns(t)?ns(r)?{suffix:", "}:{}:pa(t)&&bl(t.parent)||rh(t)?{suffix:", "}:yu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:E.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const a=wl(r.body.statements);!a||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,a,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const a=Fr(r.body.statements,o=>ql(o)&&p6(o.expression));!a||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,a,i)}insertNodeAtConstructorEnd(t,r,i){const a=Bo(r.body.statements);!a||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,a,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,I.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const a=N2(t,r.getLastToken(),{});this.insertNodeAt(t,a,i,{prefix:Yl(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){var o;const a=(o=this.guessIndentationFromExistingMembers(t,r))!=null?o:this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,Xj(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,a))}guessIndentationFromExistingMembers(t,r){let i,a=r;for(const o of Xj(r)){if(aO(a,o,t))return;const l=o.getStart(t),u=ml.SmartIndenter.findFirstNonWhitespaceColumn(_p(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;a=o}return i}computeIndentationForNewMember(t,r){var a;const i=r.getStart(t);return ml.SmartIndenter.findFirstNonWhitespaceColumn(_p(i,t),i,t,this.formatContext.options)+((a=this.formatContext.options.indentSize)!=null?a:4)}getInsertNodeAtStartInsertOptions(t,r,i){const o=Xj(r).length===0,l=Kp(this.classesWithNodesInsertedAtStart,Ba(r),{node:r,sourceFile:t}),u=ha(r)&&(!Yf(t)||!o),f=ha(r)&&Yf(t)&&o&&!l;return{indentation:i,prefix:(f?",":"")+this.newLineCharacter,suffix:u?",":f_(r)&&o?";":""}}insertNodeAfterComma(t,r,i){const a=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,a,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const a=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,a,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){const a=this.insertNodeAfterWorker(t,r,wa(i));this.insertNodesAt(t,a,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return HGe(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,ep(r.end),I.createToken(27)),XS(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Ii(r)?i.prefix?` +`;return a+=i.finalLexState,a}},h2e=class extends ZR{constructor(e,t,r){super(e),this.logger=t,this.host=r,this.logPerformance=!1}forwardJSONCall(e,t){return FK(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,r){return this.forwardJSONCall(`resolveModuleName('${e}')`,()=>{const i=JSON.parse(r),a=T8(t,zl(e),i,this.host);let o=a.resolvedModule?a.resolvedModule.resolvedFileName:void 0;return a.resolvedModule&&a.resolvedModule.extension!==".ts"&&a.resolvedModule.extension!==".tsx"&&a.resolvedModule.extension!==".d.ts"&&(o=void 0),{resolvedFileName:o,failedLookupLocations:a.failedLookupLocations,affectingLocations:a.affectingLocations}})}resolveTypeReferenceDirective(e,t,r){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,()=>{const i=JSON.parse(r),a=a$(t,zl(e),i,this.host);return{resolvedFileName:a.resolvedTypeReferenceDirective?a.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:a.resolvedTypeReferenceDirective?a.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:a.failedLookupLocations}})}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,()=>{const r=cye(PM(t),!0,!0);return{referencedFiles:this.convertFileReferences(r.referencedFiles),importedFiles:this.convertFileReferences(r.importedFiles),ambientExternalModules:r.ambientExternalModules,isLibFile:r.isLibFile,typeReferenceDirectives:this.convertFileReferences(r.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(r.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,()=>{const t=JSON.parse(e);return tL(t,this.host)})}convertFileReferences(e){if(!e)return;const t=[];for(const r of e)t.push({path:zl(r.fileName),position:r.pos,length:r.end-r.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,()=>{const r=kA(e,PM(t)),i=zl(e),a=AA(r,this.host,Ti(i),{},i);return{options:a.options,typeAcquisition:a.typeAcquisition,files:a.fileNames,raw:a.raw,errors:LK([...r.parseDiagnostics,...a.errors],`\r +`)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>UR())}discoverTypings(e){const t=Ql(!1);return this.forwardJSONCall("discoverTypings()",()=>{const r=JSON.parse(e);return this.safeList===void 0&&(this.safeList=yT.loadSafeList(this.host,ho(r.safeListPath,r.safeListPath,t))),yT.discoverTypings(this.host,i=>this.logger.log(i),r.fileNames,ho(r.projectRootPath,r.projectRootPath,t),this.safeList,r.packageNameToTypingLocation,r.typeAcquisition,r.unresolvedImports,r.typesRegistry,_p)})}},y2e=class{constructor(){this._shims=[]}getServicesVersion(){return NK}createLanguageServiceShim(e){try{this.documentRegistry===void 0&&(this.documentRegistry=mZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const t=new RK(e),r=r2e(t,this.documentRegistry,!1);return new m2e(this,e,r)}catch(t){throw QR(e,t),t}}createClassifierShim(e){try{return new g2e(this,e)}catch(t){throw QR(e,t),t}}createCoreServicesShim(e){try{const t=new BK(e);return new h2e(this,e,t)}catch(t){throw QR(e,t),t}}close(){Hm(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;ti){const y=rl(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return m(r);function a(y,x){const k=oT(y)?yx(y.modifiers,Wl):void 0,C=k?_a(e.text,k.end):y.getStart(e);return ll(C,(x||y).getEnd())}function o(y,x){return a(y,TT(x,x.parent,e))}function l(y,x){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?m(y):m(x)}function u(y,x,k){if(y){const C=y.indexOf(x);if(C>=0){let N=C,D=C+1;for(;N>0&&k(y[N-1]);)N--;for(;D0)return m(Ne.declarations[0])}else return m(G.initializer)}function j(G){if(G.initializer)return Y(G);if(G.condition)return a(G.condition);if(G.incrementor)return a(G.incrementor)}function ee(G){const Ne=pn(G.elements,De=>De.kind!==232?De:void 0);return Ne?m(Ne):G.parent.kind===208?a(G.parent):x(G.parent)}function R(G){E.assert(G.kind!==207&&G.kind!==206);const Ne=G.kind===209?G.elements:G.properties,De=pn(Ne,Xe=>Xe.kind!==232?Xe:void 0);return De?m(De):a(G.parent.kind===226?G.parent:G)}function Z(G){switch(G.parent.kind){case 266:const Ne=G.parent;return l(rl(G.pos,e,G.parent),Ne.members.length?Ne.members[0]:Ne.getLastToken(e));case 263:const De=G.parent;return l(rl(G.pos,e,G.parent),De.members.length?De.members[0]:De.getLastToken(e));case 269:return l(G.parent.parent,G.parent.clauses[0])}return m(G.parent)}function oe(G){switch(G.parent.kind){case 268:if(r0(G.parent.parent)!==1)return;case 266:case 263:return a(G);case 241:if(n2(G.parent))return a(G);case 299:return m(jo(G.parent.statements));case 269:const Ne=G.parent,De=jo(Ne.clauses);return De?m(jo(De.statements)):void 0;case 206:const Xe=G.parent;return m(jo(Xe.elements)||Xe);default:if(_h(G.parent)){const ve=G.parent;return a(jo(ve.properties)||ve)}return m(G.parent)}}function _e(G){switch(G.parent.kind){case 207:const Ne=G.parent;return a(jo(Ne.elements)||Ne);default:if(_h(G.parent)){const De=G.parent;return a(jo(De.elements)||De)}return m(G.parent)}}function X(G){return G.parent.kind===246||G.parent.kind===213||G.parent.kind===214?f(G):G.parent.kind===217?g(G):m(G.parent)}function H(G){switch(G.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return f(G);default:return m(G.parent)}}function Q(G){return Cs(G.parent)||G.parent.kind===303||G.parent.kind===169?f(G):m(G.parent)}function ne(G){return G.parent.kind===216?g(G):m(G.parent)}function ue(G){return G.parent.kind===246?o(G,G.parent.expression):m(G.parent)}function fe(G){return G.parent.kind===250?g(G):m(G.parent)}}}var ije=Rt({"src/services/breakpoints.ts"(){Wr()}}),jK={};C_(jK,{spanInSourceFileAtLocation:()=>rje});var sje=Rt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){ije()}});function aje(e){return(_o(e)||Fl(e))&&A_(e)}function _E(e){return(_o(e)||Po(e)||Fl(e))&&Ri(e.parent)&&e===e.parent.initializer&&we(e.parent.name)&&!!(W0(e.parent)&2)}function v2e(e){return Bi(e)||Ac(e)||tl(e)||_o(e)||Qc(e)||Fl(e)||ec(e)||kc(e)||ag(e)||gf(e)||Fu(e)}function zS(e){return Bi(e)||Ac(e)&&we(e.name)||tl(e)||Qc(e)||ec(e)||kc(e)||ag(e)||gf(e)||Fu(e)||aje(e)||_E(e)}function b2e(e){return Bi(e)?e:A_(e)?e.name:_E(e)?e.parent.name:E.checkDefined(e.modifiers&&Or(e.modifiers,T2e))}function T2e(e){return e.kind===90}function x2e(e,t){const r=b2e(t);return r&&e.getSymbolAtLocation(r)}function oje(e,t){if(Bi(t))return{text:t.fileName,pos:0,end:0};if((tl(t)||Qc(t))&&!A_(t)){const a=t.modifiers&&Or(t.modifiers,T2e);if(a)return{text:"default",pos:a.getStart(),end:a.getEnd()}}if(ec(t)){const a=t.getSourceFile(),o=_a(a.text,Md(t).pos),l=o+6,u=e.getTypeChecker(),f=u.getSymbolAtLocation(t.parent);return{text:`${f?`${u.symbolToString(f,t.parent)} `:""}static {}`,pos:o,end:l}}const r=_E(t)?t.parent.name:E.checkDefined(os(t),"Expected call hierarchy item to have a name");let i=we(r)?lr(r):Of(r)?r.text:Ga(r)&&Of(r.expression)?r.expression.text:void 0;if(i===void 0){const a=e.getTypeChecker(),o=a.getSymbolAtLocation(r);o&&(i=a.symbolToString(o,t))}if(i===void 0){const a=s5();i=KC(o=>a.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function cje(e){var t,r;if(_E(e))return Jd(e.parent.parent.parent.parent)&&we(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(t=$U(e.parent))==null?void 0:t.getText():(r=os(e.parent))==null?void 0:r.getText();case 262:case 263:case 267:if(Jd(e.parent)&&we(e.parent.parent.name))return e.parent.parent.name.getText()}}function S2e(e,t){if(t.body)return t;if(Cc(t))return ng(t.parent);if(tl(t)||kc(t)){const r=x2e(e,t);return r&&r.valueDeclaration&&Eo(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function k2e(e,t){const r=x2e(e,t);let i;if(r&&r.declarations){const a=L7(r.declarations),o=an(r.declarations,f=>({file:f.getSourceFile().fileName,pos:f.pos}));a.sort((f,g)=>w_(o[f].file,o[g].file)||o[f].pos-o[g].pos);const l=an(a,f=>r.declarations[f]);let u;for(const f of l)zS(f)&&((!u||u.parent!==f.parent||u.end!==f.pos)&&(i=dn(i,f)),u=f)}return i}function KR(e,t){var r,i,a;return ec(t)?t:Eo(t)?(i=(r=S2e(e,t))!=null?r:k2e(e,t))!=null?i:t:(a=k2e(e,t))!=null?a:t}function C2e(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(zS(t))return KR(r,t);if(v2e(t)){const a=In(t,zS);return a&&KR(r,a)}if(Xg(t)){if(zS(t.parent))return KR(r,t.parent);if(v2e(t.parent)){const a=In(t.parent,zS);return a&&KR(r,a)}return Ri(t.parent)&&t.parent.initializer&&_E(t.parent.initializer)?t.parent.initializer:void 0}if(Cc(t))return zS(t.parent)?t.parent:void 0;if(t.kind===126&&ec(t.parent)){t=t.parent;continue}if(Ri(t)&&t.initializer&&_E(t.initializer))return t.initializer;if(!i){let a=r.getSymbolAtLocation(t);if(a&&(a.flags&2097152&&(a=r.getAliasedSymbol(a)),a.valueDeclaration)){i=!0,t=a.valueDeclaration;continue}}return}}function JK(e,t){const r=t.getSourceFile(),i=oje(e,t),a=cje(t),o=A2(t),l=z8(t),u=ll(_a(r.text,t.getFullStart(),!1,!0),t.getEnd()),f=ll(i.pos,i.end);return{file:r.fileName,kind:o,kindModifiers:l,name:i.text,containerName:a,span:u,selectionSpan:f}}function lje(e){return e!==void 0}function _je(e){if(e.kind===Oo.EntryKind.Node){const{node:t}=e;if(cY(t,!0,!0)||Ahe(t,!0,!0)||Nhe(t,!0,!0)||Phe(t,!0,!0)||k4(t)||fY(t)){const r=t.getSourceFile();return{declaration:In(t,zS)||r,range:AY(t,r)}}}}function E2e(e){return Ra(e.declaration)}function uje(e,t){return{from:e,fromSpans:t}}function fje(e,t){return uje(JK(e,t[0].declaration),an(t,r=>T1(r.range)))}function pje(e,t,r){if(Bi(t)||Ac(t)||ec(t))return[];const i=b2e(t),a=zr(Oo.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Oo.FindReferencesUse.References},_je),lje);return a?AC(a,E2e,o=>fje(e,o)):[]}function dje(e,t){function r(a){const o=Kb(a)?a.tag:U_(a)?a.tagName:Mo(a)||ec(a)?a:a.expression,l=C2e(e,o);if(l){const u=AY(o,a.getSourceFile());if(Ds(l))for(const f of l)t.push({declaration:f,range:u});else t.push({declaration:l,range:u})}}function i(a){if(!!a&&!(a.flags&33554432)){if(zS(a)){if(ni(a))for(const o of a.members)o.name&&Ga(o.name)&&i(o.name.expression);return}switch(a.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(a);return;case 216:case 234:i(a.expression);return;case 260:case 169:i(a.name),i(a.initializer);return;case 213:r(a),i(a.expression),pn(a.arguments,i);return;case 214:r(a),i(a.expression),pn(a.arguments,i);return;case 215:r(a),i(a.tag),i(a.template);return;case 286:case 285:r(a),i(a.tagName),i(a.attributes);return;case 170:r(a),i(a.expression);return;case 211:case 212:r(a),bs(a,i);break;case 238:i(a.expression);return}Km(a)||bs(a,i)}}return i}function mje(e,t){pn(e.statements,t)}function gje(e,t){!Lr(e,2)&&e.body&&Jd(e.body)&&pn(e.body.statements,t)}function hje(e,t,r){const i=S2e(e,t);i&&(pn(i.parameters,r),r(i.body))}function yje(e,t){t(e.body)}function vje(e,t){pn(e.modifiers,t);const r=s2(e);r&&t(r.expression);for(const i of e.members)Np(i)&&pn(i.modifiers,t),Fs(i)?t(i.initializer):Cc(i)&&i.body?(pn(i.parameters,t),t(i.body)):ec(i)&&t(i)}function bje(e,t){const r=[],i=dje(e,r);switch(t.kind){case 312:mje(t,i);break;case 267:gje(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:hje(e.getTypeChecker(),t,i);break;case 263:case 231:vje(t,i);break;case 175:yje(t,i);break;default:E.assertNever(t)}return r}function Tje(e,t){return{to:e,fromSpans:t}}function xje(e,t){return Tje(JK(e,t[0].declaration),an(t,r=>T1(r.range)))}function Sje(e,t){return t.flags&33554432||ag(t)?[]:AC(bje(e,t),E2e,r=>xje(e,r))}var kje=Rt({"src/services/callHierarchy.ts"(){Wr()}}),VS={};C_(VS,{createCallHierarchyItem:()=>JK,getIncomingCalls:()=>pje,getOutgoingCalls:()=>Sje,resolveCallHierarchyDeclaration:()=>C2e});var Cje=Rt({"src/services/_namespaces/ts.CallHierarchy.ts"(){kje()}}),w2e={};C_(w2e,{TokenEncodingConsts:()=>kK,TokenModifier:()=>EK,TokenType:()=>CK,getEncodedSemanticClassifications:()=>SK,getSemanticClassifications:()=>Hve});var Eje=Rt({"src/services/_namespaces/ts.classifier.v2020.ts"(){Xve()}}),D2e={};C_(D2e,{v2020:()=>w2e});var wje=Rt({"src/services/_namespaces/ts.classifier.ts"(){Eje()}});function Op(e,t,r){return VK(e,ET(r),t,void 0,void 0)}function js(e,t,r,i,a,o){return VK(e,ET(r),t,i,ET(a),o)}function zK(e,t,r,i,a,o){return VK(e,ET(r),t,i,a&&ET(a),o)}function VK(e,t,r,i,a,o){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:a,commands:o?[o]:void 0}}function $s(e){for(const t of e.errorCodes)gN=void 0,eB.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)E.assert(!tB.has(t)),tB.set(t,e)}function Dje(){return gN!=null?gN:gN=ra(eB.keys())}function Aje(e,t){const{errorCodes:r}=e;let i=0;for(const o of t)if(ys(r,o.code)&&i++,i>1)break;const a=i<2;return({fixId:o,fixAllDescription:l,...u})=>a?u:{...u,fixId:o,fixAllDescription:l}}function Nje(e){const t=N2e(e),r=eB.get(String(e.errorCode));return Na(r,i=>an(i.getCodeActions(e),Aje(i,t)))}function Pje(e){return tB.get(Bs(e.fixId,Gs)).getAllCodeActions(e)}function US(e,t){return{changes:e,commands:t}}function A2e(e,t){return{fileName:e,textChanges:t}}function Ya(e,t,r){const i=[],a=tr.ChangeTracker.with(e,o=>WS(e,t,l=>r(o,l,i)));return US(a,i.length===0?void 0:i)}function WS(e,t,r){for(const i of N2e(e))ys(t,i.code)&&r(i)}function N2e({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...EZ(t,e,r)]}var eB,tB,gN,Ije=Rt({"src/services/codeFixProvider.ts"(){Wr(),eB=Xf(),tB=new Map}});function P2e(e,t,r){const i=aA(r)?I.createAsExpression(r.expression,I.createKeywordTypeNode(159)):I.createTypeAssertion(I.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function I2e(e,t){if(!Kn(e))return In(Ui(e,t),r=>aA(r)||Afe(r))}var nB,UK,Oje=Rt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){Wr(),Ks(),nB="addConvertToUnknownForNonOverlappingTypes",UK=[p.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],$s({errorCodes:UK,getCodeActions:function(t){const r=I2e(t.sourceFile,t.span.start);if(r===void 0)return;const i=tr.ChangeTracker.with(t,a=>P2e(a,t.sourceFile,r));return[js(nB,i,p.Add_unknown_conversion_for_non_overlapping_types,nB,p.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[nB],getAllCodeActions:e=>Ya(e,UK,(t,r)=>{const i=I2e(r.file,r.start);i&&P2e(t,r.file,i)})})}}),Fje=Rt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){Wr(),Ks(),$s({errorCodes:[p.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,p.await_using_statements_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,p.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(t){const{sourceFile:r}=t,i=tr.ChangeTracker.with(t,a=>{const o=I.createExportDeclaration(void 0,!1,I.createNamedExports([]),void 0);a.insertNodeAtEndOfScope(r,r,o)});return[Op("addEmptyExportDeclaration",i,p.Add_export_to_make_this_file_into_a_module)]}})}});function O2e(e,t,r,i){const a=r(o=>Lje(o,e.sourceFile,t,i));return js(rB,a,p.Add_async_modifier_to_containing_function,rB,p.Add_all_missing_async_modifiers)}function Lje(e,t,r,i){if(i&&i.has(Ra(r)))return;i==null||i.add(Ra(r));const a=I.updateModifiers(Io(r,!0),I.createNodeArray(I.createModifiersFromModifierFlags(c1(r)|512)));e.replaceNode(t,r,a)}function F2e(e,t){if(!t)return;const r=Ui(e,t.start);return In(r,a=>a.getStart(e)Zl(t)?"quit":(Po(a)||kc(a)||_o(a)||tl(a))&&w4(t,cu(a,e)))}function Mje(e,t){return({start:r,length:i,relatedInformation:a,code:o})=>B0(r)&&B0(i)&&w4({start:r,length:i},e)&&o===t&&!!a&&dt(a,l=>l.code===p.Did_you_mean_to_mark_this_function_as_async.code)}var rB,WK,Rje=Rt({"src/services/codefixes/addMissingAsync.ts"(){Wr(),Ks(),rB="addMissingAsync",WK=[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_comparable_to_type_1.code],$s({fixIds:[rB],errorCodes:WK,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:a,program:o,span:l}=t,u=Or(o.getTypeChecker().getDiagnostics(r,a),Mje(l,i)),f=u&&u.relatedInformation&&Or(u.relatedInformation,y=>y.code===p.Did_you_mean_to_mark_this_function_as_async.code),g=F2e(r,f);return g?[O2e(t,g,y=>tr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Ya(e,WK,(i,a)=>{const o=a.relatedInformation&&Or(a.relatedInformation,f=>f.code===p.Did_you_mean_to_mark_this_function_as_async.code),l=F2e(t,o);return l?O2e(e,l,f=>(f(i),[]),r):void 0})}})}});function L2e(e,t,r,i,a){const o=eZ(e,r);return o&&Bje(e,t,r,i,a)&&B2e(o)?o:void 0}function M2e(e,t,r,i,a,o){const{sourceFile:l,program:u,cancellationToken:f}=e,g=jje(t,l,f,u,i);if(g){const m=a(y=>{pn(g.initializers,({expression:x})=>qK(y,r,l,i,x,o)),o&&g.needsSecondPassForFixAll&&qK(y,r,l,i,t,o)});return Op("addMissingAwaitToInitializer",m,g.initializers.length===1?[p.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:p.Add_await_to_initializers)}}function R2e(e,t,r,i,a,o){const l=a(u=>qK(u,r,e.sourceFile,i,t,o));return js(iB,l,p.Add_await,iB,p.Fix_all_expressions_possibly_missing_await)}function Bje(e,t,r,i,a){const l=a.getTypeChecker().getDiagnostics(e,i);return dt(l,({start:u,length:f,relatedInformation:g,code:m})=>B0(u)&&B0(f)&&w4({start:u,length:f},r)&&m===t&&!!g&&dt(g,y=>y.code===p.Did_you_forget_to_use_await.code))}function jje(e,t,r,i,a){const o=Jje(e,a);if(!o)return;let l=o.isCompleteFix,u;for(const f of o.identifiers){const g=a.getSymbolAtLocation(f);if(!g)continue;const m=Hr(g.valueDeclaration,Ri),y=m&&Hr(m.name,we),x=Ty(m,243);if(!m||!x||m.type||!m.initializer||x.getSourceFile()!==t||Lr(x,1)||!y||!B2e(m.initializer)){l=!1;continue}const k=i.getSemanticDiagnostics(t,r);if(Oo.Core.eachSymbolReferenceInFile(y,a,t,N=>f!==N&&!zje(N,k,t,a))){l=!1;continue}(u||(u=[])).push({expression:m.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function Jje(e,t){if(kr(e.parent)&&we(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(we(e))return{identifiers:[e],isCompleteFix:!0};if(rr(e)){let r,i=!0;for(const a of[e.left,e.right]){const o=t.getTypeAtLocation(a);if(t.getPromisedTypeOfPromise(o)){if(!we(a)){i=!1;continue}(r||(r=[])).push(a)}}return r&&{identifiers:r,isCompleteFix:i}}}function zje(e,t,r,i){const a=kr(e.parent)?e.parent.name:rr(e.parent)?e.parent:e,o=Or(t,l=>l.start===a.getStart(r)&&l.start+l.length===a.getEnd());return o&&ys(sB,o.code)||i.getTypeAtLocation(a).flags&1}function B2e(e){return e.kind&65536||!!In(e,t=>t.parent&&Po(t.parent)&&t.parent.body===t||vs(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function qK(e,t,r,i,a,o){if(oA(a.parent)&&!a.parent.awaitModifier){const l=i.getTypeAtLocation(a),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const f=a.parent;e.replaceNode(r,f,I.updateForOfStatement(f,I.createToken(135),f.initializer,f.expression,f.statement));return}}if(rr(a))for(const l of[a.left,a.right]){if(o&&we(l)){const g=i.getSymbolAtLocation(l);if(g&&o.has(ya(g)))continue}const u=i.getTypeAtLocation(l),f=i.getPromisedTypeOfPromise(u)?I.createAwaitExpression(l):l;e.replaceNode(r,l,f)}else if(t===HK&&kr(a.parent)){if(o&&we(a.parent.expression)){const l=i.getSymbolAtLocation(a.parent.expression);if(l&&o.has(ya(l)))return}e.replaceNode(r,a.parent.expression,I.createParenthesizedExpression(I.createAwaitExpression(a.parent.expression))),j2e(e,a.parent.expression,r)}else if(ys(GK,t)&&Ym(a.parent)){if(o&&we(a)){const l=i.getSymbolAtLocation(a);if(l&&o.has(ya(l)))return}e.replaceNode(r,a,I.createParenthesizedExpression(I.createAwaitExpression(a))),j2e(e,a,r)}else{if(o&&Ri(a.parent)&&we(a.parent.name)){const l=i.getSymbolAtLocation(a.parent.name);if(l&&!Rv(o,ya(l)))return}e.replaceNode(r,a,I.createAwaitExpression(a))}}function j2e(e,t,r){const i=rl(t.pos,r);i&&UM(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var iB,HK,GK,sB,Vje=Rt({"src/services/codefixes/addMissingAwait.ts"(){Wr(),Ks(),iB="addMissingAwait",HK=p.Property_0_does_not_exist_on_type_1.code,GK=[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],sB=[p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.Operator_0_cannot_be_applied_to_type_1.code,p.Operator_0_cannot_be_applied_to_types_1_and_2.code,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,p.This_condition_will_always_return_true_since_this_0_is_always_defined.code,p.Type_0_is_not_an_array_type.code,p.Type_0_is_not_an_array_type_or_a_string_type.code,p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,HK,...GK],$s({fixIds:[iB],errorCodes:sB,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:a,cancellationToken:o,program:l}=t,u=L2e(r,i,a,o,l);if(!u)return;const f=t.program.getTypeChecker(),g=m=>tr.ChangeTracker.with(t,m);return R7([M2e(t,u,i,f,g),R2e(t,u,i,f,g)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,a=e.program.getTypeChecker(),o=new Set;return Ya(e,sB,(l,u)=>{const f=L2e(t,u.code,u,i,r);if(!f)return;const g=m=>(m(l),[]);return M2e(e,f,u.code,a,g,o)||R2e(e,f,u.code,a,g,o)})}})}});function J2e(e,t,r,i,a){const o=Ui(t,r),l=In(o,g=>a6(g.parent)?g.parent.initializer===g:Uje(g)?!1:"quit");if(l)return aB(e,l,t,a);const u=o.parent;if(rr(u)&&u.operatorToken.kind===64&&ql(u.parent))return aB(e,o,t,a);if(u_(u)){const g=i.getTypeChecker();return Xi(u.elements,m=>Wje(m,g))?aB(e,u,t,a):void 0}const f=In(o,g=>ql(g.parent)?!0:qje(g)?!1:"quit");if(f){const g=i.getTypeChecker();return z2e(f,g)?aB(e,f,t,a):void 0}}function aB(e,t,r,i){(!i||Rv(i,t))&&e.insertModifierBefore(r,87,t)}function Uje(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function Wje(e,t){const r=we(e)?e:Kl(e,!0)&&we(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function qje(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function z2e(e,t){return rr(e)?e.operatorToken.kind===28?Xi([e.left,e.right],r=>z2e(r,t)):e.operatorToken.kind===64&&we(e.left)&&!t.getSymbolAtLocation(e.left):!1}var oB,$K,Hje=Rt({"src/services/codefixes/addMissingConst.ts"(){Wr(),Ks(),oB="addMissingConst",$K=[p.Cannot_find_name_0.code,p.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],$s({errorCodes:$K,getCodeActions:function(t){const r=tr.ChangeTracker.with(t,i=>J2e(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[js(oB,r,p.Add_const_to_unresolved_variable,oB,p.Add_const_to_all_unresolved_variables)]},fixIds:[oB],getAllCodeActions:e=>{const t=new Set;return Ya(e,$K,(r,i)=>J2e(r,i.file,i.start,e.program,t))}})}});function V2e(e,t,r,i){const a=Ui(t,r);if(!we(a))return;const o=a.parent;o.kind===172&&(!i||Rv(i,o))&&e.insertModifierBefore(t,138,o)}var cB,XK,Gje=Rt({"src/services/codefixes/addMissingDeclareProperty.ts"(){Wr(),Ks(),cB="addMissingDeclareProperty",XK=[p.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],$s({errorCodes:XK,getCodeActions:function(t){const r=tr.ChangeTracker.with(t,i=>V2e(i,t.sourceFile,t.span.start));if(r.length>0)return[js(cB,r,p.Prefix_with_declare,cB,p.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[cB],getAllCodeActions:e=>{const t=new Set;return Ya(e,XK,(r,i)=>V2e(r,i.file,i.start,t))}})}});function U2e(e,t,r){const i=Ui(t,r),a=In(i,Wl);E.assert(!!a,"Expected position to be owned by a decorator.");const o=I.createCallExpression(a.expression,void 0,void 0);e.replaceNode(t,a.expression,o)}var lB,QK,$je=Rt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){Wr(),Ks(),lB="addMissingInvocationForDecorator",QK=[p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],$s({errorCodes:QK,getCodeActions:function(t){const r=tr.ChangeTracker.with(t,i=>U2e(i,t.sourceFile,t.span.start));return[js(lB,r,p.Call_decorator_expression,lB,p.Add_to_all_uncalled_decorators)]},fixIds:[lB],getAllCodeActions:e=>Ya(e,QK,(t,r)=>U2e(t,r.file,r.start))})}});function W2e(e,t,r){const i=Ui(t,r),a=i.parent;if(!rs(a))return E.fail("Tried to add a parameter name to a non-parameter: "+E.formatSyntaxKind(i.kind));const o=a.parent.parameters.indexOf(a);E.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),E.assert(o>-1,"Parameter not found in parent parameter list.");const l=I.createTypeReferenceNode(a.name,void 0),u=I.createParameterDeclaration(a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?I.createArrayTypeNode(l):l,a.initializer);e.replaceNode(t,a,u)}var _B,YK,Xje=Rt({"src/services/codefixes/addNameToNamelessParameter.ts"(){Wr(),Ks(),_B="addNameToNamelessParameter",YK=[p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],$s({errorCodes:YK,getCodeActions:function(t){const r=tr.ChangeTracker.with(t,i=>W2e(i,t.sourceFile,t.span.start));return[js(_B,r,p.Add_parameter_name,_B,p.Add_names_to_all_parameters_without_names)]},fixIds:[_B],getAllCodeActions:e=>Ya(e,YK,(t,r)=>W2e(t,r.file,r.start))})}});function Qje(e,t,r){var i,a;const o=q2e(eZ(e,t),r);if(!o)return Ve;const{source:l,target:u}=o,f=Yje(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(a=(i=f.symbol)==null?void 0:i.declarations)!=null&&a.some(g=>Rn(g).fileName.match(/\.d\.ts$/))?Ve:r.getExactOptionalProperties(f)}function Yje(e,t,r){return kr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function q2e(e,t){var r;if(e){if(rr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Ri(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Js(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!Px(i.valueDeclaration.kind)||!nt(e))return;const a=e.parent.arguments.indexOf(e);if(a===-1)return;const o=i.valueDeclaration.parameters[a].name;if(we(o))return{source:e,target:o}}else if(Ec(e.parent)&&we(e.parent.name)||nf(e.parent)){const i=q2e(e.parent.parent,t);if(!i)return;const a=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),o=(r=a==null?void 0:a.declarations)==null?void 0:r[0];return o?{source:Ec(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function Zje(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(mf(i)||Fs(i))&&i.type){const a=I.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],I.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,a)}}}var ZK,H2e,Kje=Rt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){Wr(),Ks(),ZK="addOptionalPropertyUndefined",H2e=[p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.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],$s({errorCodes:H2e,getCodeActions(e){const t=e.program.getTypeChecker(),r=Qje(e.sourceFile,e.span,t);if(!r.length)return;const i=tr.ChangeTracker.with(e,a=>Zje(a,r));return[Op(ZK,i,p.Add_undefined_to_optional_property_type)]},fixIds:[ZK]})}});function G2e(e,t){const r=Ui(e,t);return Hr(rs(r.parent)?r.parent.parent:r.parent,$2e)}function $2e(e){return eJe(e)&&X2e(e)}function X2e(e){return Eo(e)?e.parameters.some(X2e)||!e.type&&!!yw(e):!e.type&&!!my(e)}function Q2e(e,t,r){if(Eo(r)&&(yw(r)||r.parameters.some(i=>!!my(i)))){if(!r.typeParameters){const a=nO(r);a.length&&e.insertTypeParameters(t,r,a)}const i=Po(r)&&!$a(r,21,t);i&&e.insertNodeBefore(t,wa(r.parameters),I.createToken(21));for(const a of r.parameters)if(!a.type){const o=my(a);o&&e.tryInsertTypeAnnotation(t,a,Ue(o,Vy,Ai))}if(i&&e.insertNodeAfter(t,ka(r.parameters),I.createToken(22)),!r.type){const a=yw(r);a&&e.tryInsertTypeAnnotation(t,r,Ue(a,Vy,Ai))}}else{const i=E.checkDefined(my(r),"A JSDocType for this declaration should exist");E.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,Ue(i,Vy,Ai))}}function eJe(e){return Eo(e)||e.kind===260||e.kind===171||e.kind===172}function Vy(e){switch(e.kind){case 319:case 320:return I.createTypeReferenceNode("any",Ve);case 323:return nJe(e);case 322:return Vy(e.type);case 321:return rJe(e);case 325:return iJe(e);case 324:return sJe(e);case 183:return oJe(e);case 329:return tJe(e);default:const t=fn(e,Vy,i0);return Xn(t,1),t}}function tJe(e){const t=I.createTypeLiteralNode(an(e.jsDocPropertyTags,r=>I.createPropertySignature(void 0,we(r.name)?r.name:r.name.right,RD(r)?I.createToken(58):void 0,r.typeExpression&&Ue(r.typeExpression.type,Vy,Ai)||I.createKeywordTypeNode(133))));return Xn(t,1),t}function nJe(e){return I.createUnionTypeNode([Ue(e.type,Vy,Ai),I.createTypeReferenceNode("undefined",Ve)])}function rJe(e){return I.createUnionTypeNode([Ue(e.type,Vy,Ai),I.createTypeReferenceNode("null",Ve)])}function iJe(e){return I.createArrayTypeNode(Ue(e.type,Vy,Ai))}function sJe(e){var t;return I.createFunctionTypeNode(Ve,e.parameters.map(aJe),(t=e.type)!=null?t:I.createKeywordTypeNode(133))}function aJe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),a=r?I.createToken(26):e.dotDotDotToken;return I.createParameterDeclaration(e.modifiers,a,i,e.questionToken,Ue(e.type,Vy,Ai),e.initializer)}function oJe(e){let t=e.typeName,r=e.typeArguments;if(we(e.typeName)){if(J9(e))return cJe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=I.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=I.createNodeArray([I.createTypeReferenceNode("any",Ve)]):r=Dn(e.typeArguments,Vy,Ai)}return I.createTypeReferenceNode(t,r)}function cJe(e){const t=I.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,I.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=I.createTypeLiteralNode([I.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Xn(r,1),r}var uB,KK,lJe=Rt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){Wr(),Ks(),uB="annotateWithTypeFromJSDoc",KK=[p.JSDoc_types_may_be_moved_to_TypeScript_types.code],$s({errorCodes:KK,getCodeActions(e){const t=G2e(e.sourceFile,e.span.start);if(!t)return;const r=tr.ChangeTracker.with(e,i=>Q2e(i,e.sourceFile,t));return[js(uB,r,p.Annotate_with_type_from_JSDoc,uB,p.Annotate_everything_with_types_from_JSDoc)]},fixIds:[uB],getAllCodeActions:e=>Ya(e,KK,(t,r)=>{const i=G2e(r.file,r.start);i&&Q2e(t,r.file,i)})})}});function Y2e(e,t,r,i,a,o){const l=i.getSymbolAtLocation(Ui(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(tl(u)||_o(u))e.replaceNode(t,u,m(u));else if(Ri(u)){const y=g(u);if(!y)return;const x=u.parent.parent;ml(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,x,y)):e.replaceNode(t,x,y)}function f(y){const x=[];return y.exports&&y.exports.forEach(N=>{if(N.name==="prototype"&&N.declarations){const D=N.declarations[0];if(N.declarations.length===1&&kr(D)&&rr(D.parent)&&D.parent.operatorToken.kind===64&&ha(D.parent.right)){const M=D.parent.right;C(M.symbol,void 0,x)}}else C(N,[I.createToken(126)],x)}),y.members&&y.members.forEach((N,D)=>{var M,V,U,Y;if(D==="constructor"&&N.valueDeclaration){const j=(Y=(U=(V=(M=y.exports)==null?void 0:M.get("prototype"))==null?void 0:V.declarations)==null?void 0:U[0])==null?void 0:Y.parent;j&&rr(j)&&ha(j.right)&&dt(j.right.properties,pB)||e.delete(t,N.valueDeclaration.parent);return}C(N,void 0,x)}),x;function k(N,D){return Mo(N)?kr(N)&&pB(N)?!0:Cs(D):Xi(N.properties,M=>!!(kc(M)||KI(M)||Ec(M)&&_o(M.initializer)&&!!M.name||pB(M)))}function C(N,D,M){if(!(N.flags&8192)&&!(N.flags&4096))return;const V=N.valueDeclaration,U=V.parent,Y=U.right;if(!k(V,Y)||dt(M,oe=>{const _e=os(oe);return!!(_e&&we(_e)&&lr(_e)===bc(N))}))return;const j=U.parent&&U.parent.kind===244?U.parent:U;if(e.delete(t,j),!Y){M.push(I.createPropertyDeclaration(D,N.name,void 0,void 0,void 0));return}if(Mo(V)&&(_o(Y)||Po(Y))){const oe=Rf(t,a),_e=_Je(V,o,oe);_e&&ee(M,Y,_e);return}else if(ha(Y)){pn(Y.properties,oe=>{(kc(oe)||KI(oe))&&M.push(oe),Ec(oe)&&_o(oe.initializer)&&ee(M,oe.initializer,oe.name),pB(oe)});return}else{if(P_(t)||!kr(V))return;const oe=I.createPropertyDeclaration(D,V.name,void 0,void 0,Y);A4(U.parent,oe,t),M.push(oe);return}function ee(oe,_e,X){return _o(_e)?R(oe,_e,X):Z(oe,_e,X)}function R(oe,_e,X){const H=es(D,fB(_e,134)),Q=I.createMethodDeclaration(H,void 0,X,void 0,void 0,_e.parameters,void 0,_e.body);A4(U,Q,t),oe.push(Q)}function Z(oe,_e,X){const H=_e.body;let Q;H.kind===241?Q=H:Q=I.createBlock([I.createReturnStatement(H)]);const ne=es(D,fB(_e,134)),ue=I.createMethodDeclaration(ne,void 0,X,void 0,void 0,_e.parameters,void 0,Q);A4(U,ue,t),oe.push(ue)}}}function g(y){const x=y.initializer;if(!x||!_o(x)||!we(y.name))return;const k=f(y.symbol);x.body&&k.unshift(I.createConstructorDeclaration(void 0,x.parameters,x.body));const C=fB(y.parent.parent,95);return I.createClassDeclaration(C,y.name,void 0,void 0,k)}function m(y){const x=f(l);y.body&&x.unshift(I.createConstructorDeclaration(void 0,y.parameters,y.body));const k=fB(y,95);return I.createClassDeclaration(k,y.name,void 0,void 0,x)}}function fB(e,t){return Np(e)?zr(e.modifiers,r=>r.kind===t):void 0}function pB(e){return e.name?!!(we(e.name)&&e.name.text==="constructor"):!1}function _Je(e,t,r){if(kr(e))return e.name;const i=e.argumentExpression;if(Ou(i))return i;if(Qa(i))return pf(i.text,Ia(t))?I.createIdentifier(i.text):sS(i)?I.createStringLiteral(i.text,r===0):i}var dB,eee,uJe=Rt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){Wr(),Ks(),dB="convertFunctionToEs6Class",eee=[p.This_constructor_function_may_be_converted_to_a_class_declaration.code],$s({errorCodes:eee,getCodeActions(e){const t=tr.ChangeTracker.with(e,r=>Y2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[js(dB,t,p.Convert_function_to_an_ES2015_class,dB,p.Convert_all_constructor_functions_to_classes)]},fixIds:[dB],getAllCodeActions:e=>Ya(e,eee,(t,r)=>Y2e(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function Z2e(e,t,r,i){const a=Ui(t,r);let o;if(we(a)&&Ri(a.parent)&&a.parent.initializer&&Eo(a.parent.initializer)?o=a.parent.initializer:o=Hr(df(Ui(t,r)),AZ),!o)return;const l=new Map,u=Kn(o),f=pJe(o,i),g=dJe(o,i,l);if(!wZ(g,i))return;const m=g.body&&vs(g.body)?fJe(g.body,i):Ve,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:f,isInJSFile:u};if(!m.length)return;const x=_a(t.text,Md(o).pos);e.insertModifierAt(t,x,134,{suffix:" "});for(const k of m)if(bs(k,function C(N){if(Js(N)){const D=qS(N,N,y,!1);if(DT())return!0;e.replaceNodeWithNodes(t,k,D)}else if(!Cs(N)&&(bs(N,C),DT()))return!0}),DT())return}function fJe(e,t){const r=[];return t2(e,i=>{_R(i,t)&&r.push(i)}),r}function pJe(e,t){if(!e.body)return new Set;const r=new Set;return bs(e.body,function i(a){uE(a,t,"then")?(r.add(Ra(a)),pn(a.arguments,i)):uE(a,t,"catch")||uE(a,t,"finally")?(r.add(Ra(a)),bs(a,i)):ebe(a,t)?r.add(Ra(a)):bs(a,i)}),r}function uE(e,t,r){if(!Js(e))return!1;const a=S5(e,r)&&t.getTypeAtLocation(e);return!!(a&&t.getPromisedTypeOfPromise(a))}function K2e(e,t){return(Rr(e)&4)!==0&&e.target===t}function mB(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(K2e(i,r.getPromiseType())||K2e(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===J0(e.arguments,0))return J0(e.typeArguments,0);if(t===J0(e.arguments,1))return J0(e.typeArguments,1)}else return J0(e.typeArguments,0)}function ebe(e,t){return nt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function dJe(e,t,r){const i=new Map,a=Xf();return bs(e,function o(l){if(!we(l)){bs(l,o);return}const u=t.getSymbolAtLocation(l);if(u){const f=t.getTypeAtLocation(l),g=abe(f,t),m=ya(u).toString();if(g&&!rs(l.parent)&&!Eo(l.parent)&&!r.has(m)){const y=wl(g.parameters),x=(y==null?void 0:y.valueDeclaration)&&rs(y.valueDeclaration)&&Hr(y.valueDeclaration.name,we)||I.createUniqueName("result",16),k=tbe(x,a);r.set(m,k),a.add(x.text,u)}else if(l.parent&&(rs(l.parent)||Ri(l.parent)||Oa(l.parent))){const y=l.text,x=a.get(y);if(x&&x.some(k=>k!==u)){const k=tbe(l,a);i.set(m,k.identifier),r.set(m,k),a.add(y,u)}else{const k=Io(l);r.set(m,I4(k)),a.add(y,u)}}}}),J5(e,!0,o=>{if(Oa(o)&&we(o.name)&&rd(o.parent)){const l=t.getSymbolAtLocation(o.name),u=l&&i.get(String(ya(l)));if(u&&u.text!==(o.name||o.propertyName).getText())return I.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,u,o.initializer)}else if(we(o)){const l=t.getSymbolAtLocation(o),u=l&&i.get(String(ya(l)));if(u)return I.createIdentifier(u.text)}})}function tbe(e,t){const r=(t.get(e.text)||Ve).length,i=r===0?e:I.createIdentifier(e.text+"_"+r);return I4(i)}function DT(){return!yN}function E1(){return yN=!1,Ve}function qS(e,t,r,i,a){if(uE(t,r.checker,"then"))return hJe(t,J0(t.arguments,0),J0(t.arguments,1),r,i,a);if(uE(t,r.checker,"catch"))return ibe(t,J0(t.arguments,0),r,i,a);if(uE(t,r.checker,"finally"))return gJe(t,J0(t.arguments,0),r,i,a);if(kr(t))return qS(e,t.expression,r,i,a);const o=r.checker.getTypeAtLocation(t);return o&&r.checker.getPromisedTypeOfPromise(o)?(E.assertNode(Ko(t).parent,kr),yJe(e,t,r,i,a)):E1()}function gB({checker:e},t){if(t.kind===106)return!0;if(we(t)&&!Jo(t)&&lr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function mJe(e){const t=I.createUniqueName(e.identifier.text,16);return I4(t)}function nbe(e,t,r){let i;return r&&!pE(e,t)&&(fE(r)?(i=r,t.synthNamesMap.forEach((a,o)=>{if(a.identifier.text===r.identifier.text){const l=mJe(r);t.synthNamesMap.set(o,l)}})):i=I4(I.createUniqueName("result",16),r.types),iee(i)),i}function rbe(e,t,r,i,a){const o=[];let l;if(i&&!pE(e,t)){l=Io(iee(i));const u=i.types,f=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(f,void 0,void 0),m=[I.createVariableDeclaration(l,void 0,g)],y=I.createVariableStatement(void 0,I.createVariableDeclarationList(m,1));o.push(y)}return o.push(r),a&&l&&TJe(a)&&o.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Io(_be(a)),void 0,void 0,l)],2))),o}function gJe(e,t,r,i,a){if(!t||gB(r,t))return qS(e,e.expression.expression,r,i,a);const o=nbe(e,r,a),l=qS(e,e.expression.expression,r,!0,o);if(DT())return E1();const u=nee(t,i,void 0,void 0,e,r);if(DT())return E1();const f=I.createBlock(l),g=I.createBlock(u),m=I.createTryStatement(f,void 0,g);return rbe(e,r,m,o,a)}function ibe(e,t,r,i,a){if(!t||gB(r,t))return qS(e,e.expression.expression,r,i,a);const o=cbe(t,r),l=nbe(e,r,a),u=qS(e,e.expression.expression,r,!0,l);if(DT())return E1();const f=nee(t,i,l,o,e,r);if(DT())return E1();const g=I.createBlock(u),m=I.createCatchClause(o&&Io(hN(o)),I.createBlock(f)),y=I.createTryStatement(g,m,void 0);return rbe(e,r,y,l,a)}function hJe(e,t,r,i,a,o){if(!t||gB(i,t))return ibe(e,r,i,a,o);if(r&&!gB(i,r))return E1();const l=cbe(t,i),u=qS(e.expression.expression,e.expression.expression,i,!0,l);if(DT())return E1();const f=nee(t,a,o,l,e,i);return DT()?E1():es(u,f)}function yJe(e,t,r,i,a){if(pE(e,r)){let o=Io(t);return i&&(o=I.createAwaitExpression(o)),[I.createReturnStatement(o)]}return hB(a,I.createAwaitExpression(t),void 0)}function hB(e,t,r){return!e||lbe(e)?[I.createExpressionStatement(t)]:fE(e)&&e.hasBeenDeclared?[I.createExpressionStatement(I.createAssignment(Io(ree(e)),t))]:[I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Io(hN(e)),void 0,r,t)],2))]}function tee(e,t){if(t&&e){const r=I.createUniqueName("result",16);return[...hB(I4(r),e,t),I.createReturnStatement(r)]}return[I.createReturnStatement(e)]}function nee(e,t,r,i,a,o){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=I.createCallExpression(Io(e),void 0,fE(i)?[ree(i)]:[]);if(pE(a,o))return tee(u,mB(a,e,o.checker));const f=o.checker.getTypeAtLocation(e),g=o.checker.getSignaturesOfType(f,0);if(!g.length)return E1();const m=g[0].getReturnType(),y=hB(r,I.createAwaitExpression(u),mB(a,e,o.checker));return r&&r.types.push(o.checker.getAwaitedType(m)||m),y;case 218:case 219:{const x=e.body,k=(l=abe(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:l.getReturnType();if(vs(x)){let C=[],N=!1;for(const D of x.statements)if(id(D))if(N=!0,_R(D,o.checker))C=C.concat(obe(o,D,t,r));else{const M=k&&D.expression?sbe(o.checker,k,D.expression):D.expression;C.push(...tee(M,mB(a,e,o.checker)))}else{if(t&&t2(D,oy))return E1();C.push(D)}return pE(a,o)?C.map(D=>Io(D)):vJe(C,r,o,N)}else{const C=DZ(x,o.checker)?obe(o,I.createReturnStatement(x),t,r):Ve;if(C.length>0)return C;if(k){const N=sbe(o.checker,k,x);if(pE(a,o))return tee(N,mB(a,e,o.checker));{const D=hB(r,N,void 0);return r&&r.types.push(o.checker.getAwaitedType(k)||k),D}}else return E1()}}default:return E1()}return Ve}function sbe(e,t,r){const i=Io(r);return e.getPromisedTypeOfPromise(t)?I.createAwaitExpression(i):i}function abe(e,t){const r=t.getSignaturesOfType(e,0);return jo(r)}function vJe(e,t,r,i){const a=[];for(const o of e)if(id(o)){if(o.expression){const l=ebe(o.expression,r.checker)?I.createAwaitExpression(o.expression):o.expression;t===void 0?a.push(I.createExpressionStatement(l)):fE(t)&&t.hasBeenDeclared?a.push(I.createExpressionStatement(I.createAssignment(ree(t),l))):a.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(hN(t),void 0,void 0,l)],2)))}}else a.push(Io(o));return!i&&t!==void 0&&a.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(hN(t),void 0,void 0,I.createIdentifier("undefined"))],2))),a}function obe(e,t,r,i){let a=[];return bs(t,function o(l){if(Js(l)){const u=qS(l,l,e,r,i);if(a=a.concat(u),a.length>0)return}else Cs(l)||bs(l,o)}),a}function cbe(e,t){const r=[];let i;if(Eo(e)){if(e.parameters.length>0){const f=e.parameters[0].name;i=a(f)}}else we(e)?i=o(e):kr(e)&&we(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function a(f){if(we(f))return o(f);const g=Na(f.elements,m=>dl(m)?[]:[a(m.name)]);return bJe(f,g)}function o(f){const g=u(f),m=l(g);return m&&t.synthNamesMap.get(ya(m).toString())||I4(f,r)}function l(f){var m;var g;return(m=(g=Hr(f,Pd))==null?void 0:g.symbol)!=null?m:t.checker.getSymbolAtLocation(f)}function u(f){return f.original?f.original:f}}function lbe(e){return e?fE(e)?!e.identifier.text:Xi(e.elements,lbe):!0}function I4(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function bJe(e,t=Ve,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function ree(e){return e.hasBeenReferenced=!0,e.identifier}function hN(e){return fE(e)?iee(e):_be(e)}function _be(e){for(const t of e.elements)hN(t);return e.bindingPattern}function iee(e){return e.hasBeenDeclared=!0,e.identifier}function fE(e){return e.kind===0}function TJe(e){return e.kind===1}function pE(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Ra(e.original))}var yB,see,yN,xJe=Rt({"src/services/codefixes/convertToAsyncFunction.ts"(){Wr(),Ks(),yB="convertToAsyncFunction",see=[p.This_may_be_converted_to_an_async_function.code],yN=!0,$s({errorCodes:see,getCodeActions(e){yN=!0;const t=tr.ChangeTracker.with(e,r=>Z2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return yN?[js(yB,t,p.Convert_to_async_function,yB,p.Convert_all_to_async_functions)]:[]},fixIds:[yB],getAllCodeActions:e=>Ya(e,see,(t,r)=>Z2e(t,r.file,r.start,e.program.getTypeChecker()))})}});function SJe(e,t,r,i){for(const a of e.imports){const o=Fx(e,a.text,cp(e,a));if(!o||o.resolvedFileName!==t.fileName)continue;const l=eD(a);switch(l.kind){case 271:r.replaceNode(e,l,uh(l.name,void 0,a,i));break;case 213:mu(l,!1)&&r.replaceNode(e,l,I.createPropertyAccessExpression(Io(l),"default"));break}}}function kJe(e,t,r,i,a){const o={original:RJe(e),additional:new Set},l=CJe(e,t,o);EJe(e,l,r);let u=!1,f;for(const g of zr(e.statements,ic)){const m=fbe(e,g,r,t,o,i,a);m&&m9(m,f!=null?f:f=new Map)}for(const g of zr(e.statements,m=>!ic(m))){const m=wJe(e,g,t,r,o,i,l,f,a);u=u||m}return f==null||f.forEach((g,m)=>{r.replaceNode(e,m,g)}),u}function CJe(e,t,r){const i=new Map;return ube(e,a=>{const{text:o}=a.name;!i.has(o)&&(X9(a.name)||t.resolveName(o,a,111551,!0))&&i.set(o,vB(`_${o}`,r))}),i}function EJe(e,t,r){ube(e,(i,a)=>{if(a)return;const{text:o}=i.name;r.replaceNode(e,i,I.createIdentifier(t.get(o)||o))})}function ube(e,t){e.forEachChild(function r(i){if(kr(i)&&x2(e,i.expression)&&we(i.name)){const{parent:a}=i;t(i,rr(a)&&a.left===i&&a.operatorToken.kind===64)}i.forEachChild(r)})}function wJe(e,t,r,i,a,o,l,u,f){switch(t.kind){case 243:return fbe(e,t,i,r,a,o,f),!1;case 244:{const{expression:g}=t;switch(g.kind){case 213:return mu(g,!0)&&i.replaceNode(e,t,uh(void 0,void 0,g.arguments[0],f)),!1;case 226:{const{operatorToken:m}=g;return m.kind===64&&AJe(e,r,g,i,l,u)}}}default:return!1}}function fbe(e,t,r,i,a,o,l){const{declarationList:u}=t;let f=!1;const g=an(u.declarations,m=>{const{name:y,initializer:x}=m;if(x){if(x2(e,x))return f=!0,O4([]);if(mu(x,!0))return f=!0,LJe(y,x.arguments[0],i,a,o,l);if(kr(x)&&mu(x.expression,!0))return f=!0,DJe(y,x.name.text,x.expression.arguments[0],a,l)}return O4([I.createVariableStatement(void 0,I.createVariableDeclarationList([m],u.flags))])});if(f){r.replaceNodeWithNodes(e,t,Na(g,y=>y.newImports));let m;return pn(g,y=>{y.useSitesToUnqualify&&m9(y.useSitesToUnqualify,m!=null?m:m=new Map)}),m}}function DJe(e,t,r,i,a){switch(e.kind){case 206:case 207:{const o=vB(t,i);return O4([gbe(o,t,r,a),bB(void 0,e,I.createIdentifier(o))])}case 80:return O4([gbe(e.text,t,r,a)]);default:return E.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function AJe(e,t,r,i,a,o){const{left:l,right:u}=r;if(!kr(l))return!1;if(x2(e,l))if(x2(e,u))i.delete(e,r.parent);else{const f=ha(u)?NJe(u,o):mu(u,!0)?IJe(u.arguments[0],t):void 0;return f?(i.replaceNodeWithNodes(e,r.parent,f[0]),f[1]):(i.replaceRangeWithText(e,tp(l.getStart(e),u.pos),"export default"),!0)}else x2(e,l.expression)&&PJe(e,r,i,a);return!1}function NJe(e,t){const r=iV(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return we(i.name)?FJe(i.name.text,i.initializer,t):void 0;case 174:return we(i.name)?mbe(i.name.text,[I.createToken(95)],i,t):void 0;default:E.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function PJe(e,t,r,i){const{text:a}=t.left.name,o=i.get(a);if(o!==void 0){const l=[bB(void 0,o,t.right),cee([I.createExportSpecifier(!1,o,a)])];r.replaceNodeWithNodes(e,t.parent,l)}else OJe(t,e,r)}function IJe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),a=i?i.exports:bI;return a.has("export=")?[[aee(r)],!0]:a.has("default")?a.size>1?[[pbe(r),aee(r)],!0]:[[aee(r)],!0]:[[pbe(r)],!1]}function pbe(e){return cee(void 0,e)}function aee(e){return cee([I.createExportSpecifier(!1,void 0,"default")],e)}function OJe({left:e,right:t,parent:r},i,a){const o=e.name.text;if((_o(t)||Po(t)||Fl(t))&&(!t.name||t.name.text===o)){a.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},I.createToken(95),{suffix:" "}),t.name||a.insertName(i,t,o);const l=$a(r,27,i);l&&a.delete(i,l)}else a.replaceNodeRangeWithNodes(i,e.expression,$a(e,25,i),[I.createToken(95),I.createToken(87)],{joiner:" ",suffix:" "})}function FJe(e,t,r){const i=[I.createToken(95)];switch(t.kind){case 218:{const{name:o}=t;if(o&&o.text!==e)return a()}case 219:return mbe(e,i,t,r);case 231:return jJe(e,i,t,r);default:return a()}function a(){return bB(i,I.createIdentifier(e),oee(t,r))}}function oee(e,t){if(!t||!dt(ra(t.keys()),i=>yf(e,i)))return e;return Ds(e)?WY(e,!0,r):J5(e,!0,r);function r(i){if(i.kind===211){const a=t.get(i);return t.delete(i),a}}}function LJe(e,t,r,i,a,o){switch(e.kind){case 206:{const l=iV(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!we(u.propertyName)||!we(u.name)?void 0:hbe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return O4([uh(void 0,l,t,o)])}case 207:{const l=vB(bee(t.text,a),i);return O4([uh(I.createIdentifier(l),void 0,t,o),bB(void 0,Io(e),I.createIdentifier(l))])}case 80:return MJe(e,t,r,i,o);default:return E.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function MJe(e,t,r,i,a){const o=r.getSymbolAtLocation(e),l=new Map;let u=!1,f;for(const m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==o||m===e)continue;const{parent:y}=m;if(kr(y)){const{name:{text:x}}=y;if(x==="default"){u=!0;const k=m.getText();(f!=null?f:f=new Map).set(y,I.createIdentifier(k))}else{E.assert(y.expression===m,"Didn't expect expression === use");let k=l.get(x);k===void 0&&(k=vB(x,i),l.set(x,k)),(f!=null?f:f=new Map).set(y,I.createIdentifier(k))}}else u=!0}const g=l.size===0?void 0:ra(nV(l.entries(),([m,y])=>I.createImportSpecifier(!1,m===y?void 0:I.createIdentifier(m),I.createIdentifier(y))));return g||(u=!0),O4([uh(u?Io(e):void 0,g,t,a)],f)}function vB(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function RJe(e){const t=Xf();return dbe(e,r=>t.add(r.text,r)),t}function dbe(e,t){we(e)&&BJe(e)&&t(e),e.forEachChild(r=>dbe(r,t))}function BJe(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function mbe(e,t,r,i){return I.createFunctionDeclaration(es(t,N2(r.modifiers)),Io(r.asteriskToken),e,N2(r.typeParameters),N2(r.parameters),Io(r.type),I.converters.convertToFunctionBlock(oee(r.body,i)))}function jJe(e,t,r,i){return I.createClassDeclaration(es(t,N2(r.modifiers)),e,N2(r.typeParameters),N2(r.heritageClauses),oee(r.members,i))}function gbe(e,t,r,i){return t==="default"?uh(I.createIdentifier(e),void 0,r,i):uh(void 0,[hbe(t,e)],r,i)}function hbe(e,t){return I.createImportSpecifier(!1,e!==void 0&&e!==t?I.createIdentifier(e):void 0,I.createIdentifier(t))}function bB(e,t,r){return I.createVariableStatement(e,I.createVariableDeclarationList([I.createVariableDeclaration(t,void 0,void 0,r)],2))}function cee(e,t){return I.createExportDeclaration(void 0,!1,e&&I.createNamedExports(e),t===void 0?void 0:I.createStringLiteral(t))}function O4(e,t){return{newImports:e,useSitesToUnqualify:t}}var JJe=Rt({"src/services/codefixes/convertToEsModule.ts"(){Wr(),Ks(),$s({errorCodes:[p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,a=tr.ChangeTracker.with(e,o=>{if(kJe(t,r.getTypeChecker(),o,Ia(r.getCompilerOptions()),Rf(t,i)))for(const u of r.getSourceFiles())SJe(u,t,o,Rf(u,i))});return[Op("convertToEsModule",a,p.Convert_to_ES_module)]}})}});function ybe(e,t){const r=In(Ui(e,t),hu);return E.assert(!!r,"Expected position to be owned by a qualified name."),we(r.left)?r:void 0}function vbe(e,t,r){const i=r.right.text,a=I.createIndexedAccessTypeNode(I.createTypeReferenceNode(r.left,void 0),I.createLiteralTypeNode(I.createStringLiteral(i)));e.replaceNode(t,r,a)}var TB,lee,zJe=Rt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){Wr(),Ks(),TB="correctQualifiedNameToIndexedAccessType",lee=[p.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],$s({errorCodes:lee,getCodeActions(e){const t=ybe(e.sourceFile,e.span.start);if(!t)return;const r=tr.ChangeTracker.with(e,a=>vbe(a,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[js(TB,r,[p.Rewrite_as_the_indexed_access_type_0,i],TB,p.Rewrite_all_as_indexed_access_types)]},fixIds:[TB],getAllCodeActions:e=>Ya(e,lee,(t,r)=>{const i=ybe(r.file,r.start);i&&vbe(t,r.file,i)})})}});function bbe(e,t){return Hr(Ui(t,e.start).parent,p_)}function Tbe(e,t,r){if(!t)return;const i=t.parent,a=i.parent,o=VJe(t,r);if(o.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=I.updateExportDeclaration(a,a.modifiers,!1,I.updateNamedExports(i,zr(i.elements,f=>!ys(o,f))),a.moduleSpecifier,void 0),u=I.createExportDeclaration(void 0,!0,I.createNamedExports(o),a.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,a,l,{leadingTriviaOption:tr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:tr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,a,u)}}function VJe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=w1e(cu(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return zr(r.elements,a=>{var o;return a===e||((o=E1e(a,i))==null?void 0:o.code)===xB[0]})}var xB,SB,UJe=Rt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){Wr(),Ks(),xB=[p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],SB="convertToTypeOnlyExport",$s({errorCodes:xB,getCodeActions:function(t){const r=tr.ChangeTracker.with(t,i=>Tbe(i,bbe(t.span,t.sourceFile),t));if(r.length)return[js(SB,r,p.Convert_to_type_only_export,SB,p.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[SB],getAllCodeActions:function(t){const r=new Map;return Ya(t,xB,(i,a)=>{const o=bbe(a,t.sourceFile);o&&td(r,Ra(o.parent.parent))&&Tbe(i,o,t)})}})}});function xbe(e,t){const{parent:r}=Ui(e,t);return vu(r)||bl(r)&&r.importClause?r:void 0}function Sbe(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(o=>!o.isTypeOnly);if(i.length===1)return!0;const a=r.getTypeChecker();for(const o of i)if(Oo.Core.eachSymbolReferenceInFile(o.name,a,t,u=>!Ey(u)))return!1;return!0}function vN(e,t,r){var i;if(vu(r))e.replaceNode(t,r,I.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const a=r.importClause;if(a.name&&a.namedBindings)e.replaceNodeWithNodes(t,r,[I.createImportDeclaration(N2(r.modifiers,!0),I.createImportClause(!0,Io(a.name,!0),void 0),Io(r.moduleSpecifier,!0),Io(r.assertClause,!0)),I.createImportDeclaration(N2(r.modifiers,!0),I.createImportClause(!0,void 0,Io(a.namedBindings,!0)),Io(r.moduleSpecifier,!0),Io(r.assertClause,!0))]);else{const o=((i=a.namedBindings)==null?void 0:i.kind)===275?I.updateNamedImports(a.namedBindings,cl(a.namedBindings.elements,u=>I.updateImportSpecifier(u,!1,u.propertyName,u.name))):a.namedBindings,l=I.updateImportDeclaration(r,r.modifiers,I.updateImportClause(a,!0,a.name,o),r.moduleSpecifier,r.assertClause);e.replaceNode(t,r,l)}}}var _ee,bN,WJe=Rt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){Wr(),Ks(),_ee=[p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],bN="convertToTypeOnlyImport",$s({errorCodes:_ee,getCodeActions:function(t){var a;var r;const i=xbe(t.sourceFile,t.span.start);if(i){const o=tr.ChangeTracker.with(t,f=>vN(f,t.sourceFile,i)),l=i.kind===276&&Sbe(i,t.sourceFile,t.program)?tr.ChangeTracker.with(t,f=>vN(f,t.sourceFile,i.parent.parent.parent)):void 0,u=js(bN,o,i.kind===276?[p.Use_type_0,(a=(r=i.propertyName)==null?void 0:r.text)!=null?a:i.name.text]:p.Use_import_type,bN,p.Fix_all_with_type_only_imports);return dt(l)?[Op(bN,l,p.Use_import_type),u]:[u]}},fixIds:[bN],getAllCodeActions:function(t){const r=new Set;return Ya(t,_ee,(i,a)=>{const o=xbe(a.file,a.start);(o==null?void 0:o.kind)===272&&!r.has(o)?(vN(i,a.file,o),r.add(o)):(o==null?void 0:o.kind)===276&&!r.has(o.parent.parent.parent)&&Sbe(o,a.file,t.program)?(vN(i,a.file,o.parent.parent.parent),r.add(o.parent.parent.parent)):(o==null?void 0:o.kind)===276&&vN(i,a.file,o)})}})}});function kbe(e,t,r,i,a=!1){if(!a4(t))return;const o=HJe(t);if(!o)return;const l=t.parent,{leftSibling:u,rightSibling:f}=qJe(t);let g=l.getStart(),m="";!u&&l.comment&&(g=Cbe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),u&&(a&&a4(u)?(g=t.getStart(),m=""):(g=Cbe(l,u.getStart(),t.getStart()),m=`${i} */${i}`));let y=l.getEnd(),x="";f&&(a&&a4(f)?(y=f.getStart(),x=`${i}${i}`):(y=f.getStart(),x=`${i}/**${i} * `)),e.replaceRange(r,{pos:g,end:y},o,{prefix:m,suffix:x})}function qJe(e){const t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),a=i>0?t.getChildAt(i-1):void 0,o=i0;a--)if(!/[*/\s]/g.test(i.substring(a-1,a)))return t+a;return r}function HJe(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(!!i){if(r.kind===329)return GJe(i,r);if(r.kind===316)return $Je(i,r)}}function GJe(e,t){const r=Ebe(t);if(!!dt(r))return I.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function $Je(e,t){const r=Io(t.type);if(!!r)return I.createTypeAliasDeclaration(void 0,I.createIdentifier(e),void 0,r)}function Ebe(e){const t=e.jsDocPropertyTags;return dt(t)?Hi(t,i=>{var a;const o=XJe(i),l=(a=i.typeExpression)==null?void 0:a.type,u=i.isBracketed;let f;if(l&&i4(l)){const g=Ebe(l);f=I.createTypeLiteralNode(g)}else l&&(f=Io(l));if(f&&o){const g=u?I.createToken(58):void 0;return I.createPropertySignature(void 0,o,g,f)}}):void 0}function XJe(e){return e.name.kind===80?e.name.text:e.name.right.text}function QJe(e){return Qu(e)?Na(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>a4(i))}):[]}var kB,uee,YJe=Rt({"src/services/codefixes/convertTypedefToType.ts"(){Wr(),Ks(),kB="convertTypedefToType",uee=[p.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],$s({fixIds:[kB],errorCodes:uee,getCodeActions(e){const t=s0(e.host,e.formatContext.options),r=Ui(e.sourceFile,e.span.start);if(!r)return;const i=tr.ChangeTracker.with(e,a=>kbe(a,r,e.sourceFile,t));if(i.length>0)return[js(kB,i,p.Convert_typedef_to_TypeScript_type,kB,p.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ya(e,uee,(t,r)=>{const i=s0(e.host,e.formatContext.options),a=Ui(r.file,r.start),o=!0;a&&kbe(t,a,r.file,i,o)})})}});function wbe(e,t){const r=Ui(e,t);if(we(r)){const i=Bs(r.parent.parent,mf),a=r.getText(e);return{container:Bs(i.parent,ef),typeNode:i.type,constraint:a,name:a==="K"?"P":"K"}}}function Dbe(e,t,{container:r,typeNode:i,constraint:a,name:o}){e.replaceNode(t,r,I.createMappedTypeNode(void 0,I.createTypeParameterDeclaration(void 0,o,I.createTypeReferenceNode(a)),void 0,void 0,i,void 0))}var CB,fee,ZJe=Rt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){Wr(),Ks(),CB="convertLiteralTypeToMappedType",fee=[p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],$s({errorCodes:fee,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=wbe(r,i.start);if(!a)return;const{name:o,constraint:l}=a,u=tr.ChangeTracker.with(t,f=>Dbe(f,r,a));return[js(CB,u,[p.Convert_0_to_1_in_0,l,o],CB,p.Convert_all_type_literals_to_mapped_type)]},fixIds:[CB],getAllCodeActions:e=>Ya(e,fee,(t,r)=>{const i=wbe(r.file,r.start);i&&Dbe(t,r.file,i)})})}});function Abe(e,t){return E.checkDefined(Pl(Ui(e,t)),"There should be a containing class")}function Nbe(e){return!e.valueDeclaration||!(I_(e.valueDeclaration)&8)}function Pbe(e,t,r,i,a,o){const l=e.program.getTypeChecker(),u=KJe(i,l),f=l.getTypeAtLocation(t),m=l.getPropertiesOfType(f).filter(hI(Nbe,D=>!u.has(D.escapedName))),y=l.getTypeAtLocation(i),x=Or(i.members,D=>Cc(D));y.getNumberIndexType()||C(f,1),y.getStringIndexType()||C(f,0);const k=AT(r,e.program,o,e.host);yte(i,m,r,e,o,k,D=>N(r,i,D)),k.writeFixes(a);function C(D,M){const V=l.getIndexInfoOfType(D,M);V&&N(r,i,l.indexInfoToIndexSignatureDeclaration(V,i,void 0,HS(e)))}function N(D,M,V){x?a.insertNodeAfter(D,x,V):a.insertMemberAtStart(D,M,V)}}function KJe(e,t){const r=Od(e);if(!r)return Vs();const i=t.getTypeAtLocation(r),a=t.getPropertiesOfType(i);return Vs(a.filter(Nbe))}var pee,EB,eze=Rt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){Wr(),Ks(),pee=[p.Class_0_incorrectly_implements_interface_1.code,p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],EB="fixClassIncorrectlyImplementsInterface",$s({errorCodes:pee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=Abe(t,r.start);return Hi(w6(i),a=>{const o=tr.ChangeTracker.with(e,l=>Pbe(e,a,t,i,l,e.preferences));return o.length===0?void 0:js(EB,o,[p.Implement_interface_0,a.getText(t)],EB,p.Implement_all_unimplemented_interfaces)})},fixIds:[EB],getAllCodeActions(e){const t=new Map;return Ya(e,pee,(r,i)=>{const a=Abe(i.file,i.start);if(td(t,Ra(a)))for(const o of w6(a))Pbe(e,o,i.file,a,r,e.preferences)})}})}});function AT(e,t,r,i,a){return Ibe(e,t,!1,r,i,a)}function Ibe(e,t,r,i,a,o){const l=t.getCompilerOptions(),u=[],f=[],g=new Map,m=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:x,writeFixes:C,hasFixes:N};function y(D,M){const V=Bbe(M,D.code,D.start,r);!V||!V.length||k(wa(V))}function x(D,M){const V=E.checkDefined(D.parent),U=QM(D,Ia(l)),Y=t.getTypeChecker(),j=Y.getMergedSymbol(au(D,Y)),ee=Lbe(e,j,U,V,!1,t,a,i,o),R=DB(e,t),Z=Obe(e,E.checkDefined(ee),t,void 0,!!M,R,a,i);Z&&k({fix:Z,symbolName:U,errorIdentifierText:void 0})}function k(D){var M,V;const{fix:U,symbolName:Y}=D;switch(U.kind){case 0:u.push(U);break;case 1:f.push(U);break;case 2:{const{importClauseOrBindingPattern:Z,importKind:oe,addAsTypeOnly:_e}=U,X=String(Ra(Z));let H=g.get(X);if(H||g.set(X,H={importClauseOrBindingPattern:Z,defaultImport:void 0,namedImports:new Map}),oe===0){const Q=H==null?void 0:H.namedImports.get(Y);H.namedImports.set(Y,j(Q,_e))}else E.assert(H.defaultImport===void 0||H.defaultImport.name===Y,"(Add to Existing) Default import should be missing or match symbolName"),H.defaultImport={name:Y,addAsTypeOnly:j((M=H.defaultImport)==null?void 0:M.addAsTypeOnly,_e)};break}case 3:{const{moduleSpecifier:Z,importKind:oe,useRequire:_e,addAsTypeOnly:X}=U,H=ee(Z,oe,_e,X);switch(E.assert(H.useRequire===_e,"(Add new) Tried to add an `import` and a `require` for the same module"),oe){case 1:E.assert(H.defaultImport===void 0||H.defaultImport.name===Y,"(Add new) Default import should be missing or match symbolName"),H.defaultImport={name:Y,addAsTypeOnly:j((V=H.defaultImport)==null?void 0:V.addAsTypeOnly,X)};break;case 0:const Q=(H.namedImports||(H.namedImports=new Map)).get(Y);H.namedImports.set(Y,j(Q,X));break;case 3:case 2:E.assert(H.namespaceLikeImport===void 0||H.namespaceLikeImport.name===Y,"Namespacelike import shoudl be missing or match symbolName"),H.namespaceLikeImport={importKind:oe,name:Y,addAsTypeOnly:X};break}break}case 4:break;default:E.assertNever(U,`fix wasn't never - got kind ${U.kind}`)}function j(Z,oe){return Math.max(Z!=null?Z:0,oe)}function ee(Z,oe,_e,X){const H=R(Z,!0),Q=R(Z,!1),ne=m.get(H),ue=m.get(Q),fe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:_e};return oe===1&&X===2?ne||(m.set(H,fe),fe):X===1&&(ne||ue)?ne||ue:ue||(m.set(Q,fe),fe)}function R(Z,oe){return`${oe?1:0}|${Z}`}}function C(D,M){let V;e.imports.length===0&&M!==void 0?V=M:V=Rf(e,i);for(const Y of u)yee(D,e,Y);for(const Y of f)qbe(D,e,Y,V);g.forEach(({importClauseOrBindingPattern:Y,defaultImport:j,namedImports:ee})=>{Wbe(D,e,Y,j,ra(ee.entries(),([R,Z])=>({addAsTypeOnly:Z,name:R})),i)});let U;m.forEach(({useRequire:Y,defaultImport:j,namedImports:ee,namespaceLikeImport:R},Z)=>{const oe=Z.slice(2),X=(Y?$be:Gbe)(oe,V,j,ee&&ra(ee.entries(),([H,Q])=>({addAsTypeOnly:Q,name:H})),R,l);U=Wk(U,X)}),U&&U8(D,e,U,!0,i)}function N(){return u.length>0||f.length>0||g.size>0||m.size>0}}function tze(e,t,r,i){const a=X8(e,i,r),o=Mbe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,f,g,m){const{fixes:y,computedWithoutCacheCount:x}=wB(u,f,g,!1,t,e,r,i,o,m),k=jbe(y,e,t,a,r);return k&&{...k,computedWithoutCacheCount:x}}}function nze(e,t,r,i,a,o,l,u,f,g,m,y){const x=u.getCompilerOptions();let k;r?(k=q5(i,l,u,m,y).get(i.path,r),E.assertIsDefined(k,"Some exportInfo should match the specified exportMapKey")):(k=FU(Ep(t.name))?[ize(e,a,t,u,l)]:Lbe(i,e,a,t,o,u,l,m,y),E.assertIsDefined(k,"Some exportInfo should match the specified symbol / moduleSymbol"));const C=DB(i,u),N=Ey(Ui(i,g)),D=E.checkDefined(Obe(i,k,u,g,N,C,l,m));return{moduleSpecifier:D.moduleSpecifier,codeAction:Fbe(hee({host:l,formatContext:f,preferences:m},i,a,D,!1,x,m))}}function rze(e,t,r,i,a,o){const l=r.getCompilerOptions(),u=_V(gee(e,r.getTypeChecker(),t,l)),f=Vbe(e,t,u,r),g=u!==t.text;return f&&Fbe(hee({host:i,formatContext:a,preferences:o},e,u,f,g,l,o))}function Obe(e,t,r,i,a,o,l,u){const f=X8(e,u,l);return jbe(wB(t,i,a,o,r,e,l,u).fixes,e,r,f,l)}function Fbe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function Lbe(e,t,r,i,a,o,l,u,f){const g=Rbe(o,l);return q5(e,l,o,u,f).search(e.path,a,m=>m===r,m=>{if(au(m[0].symbol,g(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function ize(e,t,r,i,a){var o,l;const u=i.getCompilerOptions(),f=m(i.getTypeChecker(),!1);if(f)return f;const g=(l=(o=a.getPackageJsonAutoImportProvider)==null?void 0:o.call(a))==null?void 0:l.getTypeChecker();return E.checkDefined(g&&m(g,!0),"Could not find symbol in specified module for code actions");function m(y,x){const k=iR(r,y,u);if(k&&au(k.symbol,y)===e)return{symbol:k.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:k.exportKind,targetFlags:au(e,y).flags,isFromPackageJson:x};const C=y.tryGetMemberInModuleExportsAndProperties(t,r);if(C&&au(C,y)===e)return{symbol:C,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:au(e,y).flags,isFromPackageJson:x}}}function wB(e,t,r,i,a,o,l,u,f=Mbe(a.getTypeChecker(),o,a.getCompilerOptions()),g){const m=a.getTypeChecker(),y=Na(e,f.getImportsForExportInfo),x=t!==void 0&&sze(y,t),k=oze(y,r,m,a.getCompilerOptions());if(k)return{computedWithoutCacheCount:0,fixes:[...x?[x]:Ve,k]};const{fixes:C,computedWithoutCacheCount:N=0}=lze(e,y,a,o,t,r,i,l,u,g);return{computedWithoutCacheCount:N,fixes:[...x?[x]:Ve,...C]}}function sze(e,t){return cc(e,({declaration:r,importKind:i})=>{var a;if(i!==0)return;const o=aze(r),l=o&&((a=_3(r))==null?void 0:a.text);if(l)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifier:l}})}function aze(e){var t,r,i;switch(e.kind){case 260:return(t=Hr(e.name,we))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=Hr((r=e.importClause)==null?void 0:r.namedBindings,d1))==null?void 0:i.name.text;default:return E.assertNever(e)}}function dee(e,t,r,i,a,o){return e?t&&o.importsNotUsedAsValues===2||Uq(o)&&(!(i&111551)||!!a.getTypeOnlyAliasDeclaration(r))?2:1:4}function oze(e,t,r,i){let a;for(const l of e){const u=o(l);if(!u)continue;const f=s9(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&f||u.addAsTypeOnly===4&&!f)return u;a!=null||(a=u)}return a;function o({declaration:l,importKind:u,symbol:f,targetFlags:g}){if(u===3||u===2||l.kind===271)return;if(l.kind===260)return(u===0||u===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:m}=l;if(!m||!Qa(l.moduleSpecifier))return;const{name:y,namedBindings:x}=m;if(m.isTypeOnly&&!(u===0&&x))return;const k=dee(t,!1,f,g,r,i);if(!(u===1&&(y||k===2&&x))&&!(u===0&&(x==null?void 0:x.kind)===274))return{kind:2,importClauseOrBindingPattern:m,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:k}}}function Mbe(e,t,r){let i;for(const a of t.imports){const o=eD(a);if(YW(o.parent)){const l=e.resolveExternalModuleName(a);l&&(i||(i=Xf())).add(ya(l),o.parent)}else if(o.kind===272||o.kind===271){const l=e.getSymbolAtLocation(a);l&&(i||(i=Xf())).add(ya(l),o)}}return{getImportsForExportInfo:({moduleSymbol:a,exportKind:o,targetFlags:l,symbol:u})=>{if(!(l&111551)&&P_(t))return Ve;const f=i==null?void 0:i.get(ya(a));if(!f)return Ve;const g=mee(t,o,r);return f.map(m=>({declaration:m,importKind:g,symbol:u,targetFlags:l}))}}}function DB(e,t){if(!P_(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return Ul(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!P_(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function Rbe(e,t){return lm(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function cze(e,t,r,i,a,o,l,u,f){const g=P_(t),m=e.getCompilerOptions(),y=ST(e,l),x=Rbe(e,l),k=Sc(m),C=IM(k),N=f?V=>({moduleSpecifiers:S2.tryGetModuleSpecifiersFromCache(V,t,y,u),computedWithoutCache:!1}):(V,U)=>S2.getModuleSpecifiersWithCacheInfo(V,U,m,t,y,u);let D=0;const M=Na(o,(V,U)=>{const Y=x(V.isFromPackageJson),{computedWithoutCache:j,moduleSpecifiers:ee}=N(V.moduleSymbol,Y),R=!!(V.targetFlags&111551),Z=dee(i,!0,V.symbol,V.targetFlags,Y,m);return D+=j?1:0,Hi(ee,oe=>{var _e;if(C&&SS(oe))return;if(!R&&g&&r!==void 0)return{kind:1,moduleSpecifier:oe,usagePosition:r,exportInfo:V,isReExport:U>0};const X=mee(t,V.exportKind,m);let H;if(r!==void 0&&X===3&&V.exportKind===0){const Q=Y.resolveExternalModuleSymbol(V.moduleSymbol);let ne;Q!==V.moduleSymbol&&(ne=(_e=sR(Q,Y,m))==null?void 0:_e.name),ne||(ne=vee(V.moduleSymbol,Ia(m),!1)),H={namespacePrefix:ne,usagePosition:r}}return{kind:3,moduleSpecifier:oe,importKind:X,useRequire:a,addAsTypeOnly:Z,exportInfo:V,isReExport:U>0,qualification:H}})});return{computedWithoutCacheCount:D,fixes:M}}function lze(e,t,r,i,a,o,l,u,f,g){const m=cc(t,y=>_ze(y,o,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:cze(r,i,a,o,l,e,u,f,g)}function _ze({declaration:e,importKind:t,symbol:r,targetFlags:i},a,o,l,u){var f;const g=(f=_3(e))==null?void 0:f.text;if(g){const m=o?4:dee(a,!0,r,i,l,u);return{kind:3,moduleSpecifier:g,importKind:t,addAsTypeOnly:m,useRequire:o}}}function Bbe(e,t,r,i){const a=Ui(e.sourceFile,r);let o;if(t===p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=dze(e,a);else if(we(a))if(t===p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=_V(gee(e.sourceFile,e.program.getTypeChecker(),a,e.program.getCompilerOptions())),f=Vbe(e.sourceFile,a,u,e.program);return f&&[{fix:f,symbolName:u,errorIdentifierText:a.text}]}else o=hze(e,a,i);else return;const l=X8(e.sourceFile,e.preferences,e.host);return o&&uze(o,e.sourceFile,e.program,l,e.host)}function uze(e,t,r,i,a){const o=l=>ho(l,a.getCurrentDirectory(),Q0(a));return DC(e,(l,u)=>jv(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||Co(l.fix.kind,u.fix.kind)||Jbe(l.fix,u.fix,t,r,i.allowsImportingSpecifier,o))}function jbe(e,t,r,i,a){if(!!dt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((o,l)=>Jbe(l,o,t,r,i.allowsImportingSpecifier,u=>ho(u,a.getCurrentDirectory(),Q0(a)))===-1?l:o)}function Jbe(e,t,r,i,a,o){return e.kind!==0&&t.kind!==0?jv(a(t.moduleSpecifier),a(e.moduleSpecifier))||pze(e.moduleSpecifier,t.moduleSpecifier,r,i)||jv(zbe(e,r,i.getCompilerOptions(),o),zbe(t,r,i.getCompilerOptions(),o))||ID(e.moduleSpecifier,t.moduleSpecifier):0}function zbe(e,t,r,i){var a;if(e.isReExport&&((a=e.exportInfo)==null?void 0:a.moduleFileName)&&Sc(r)===2&&fze(e.exportInfo.moduleFileName)){const o=i(Ti(e.exportInfo.moduleFileName));return ns(t.path,o)}return!1}function fze(e){return Jl(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function pze(e,t,r,i){return ns(e,"node:")&&!ns(t,"node:")?ZM(r,i)?-1:1:ns(t,"node:")&&!ns(e,"node:")?ZM(r,i)?1:-1:0}function dze({sourceFile:e,program:t,host:r,preferences:i},a){const o=t.getTypeChecker(),l=mze(a,o);if(!l)return;const u=o.getAliasedSymbol(l),f=l.name,g=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],m=DB(e,t);return wB(g,void 0,!1,m,t,e,r,i).fixes.map(x=>{var k;return{fix:x,symbolName:f,errorIdentifierText:(k=Hr(a,we))==null?void 0:k.text}})}function mze(e,t){const r=we(e)?t.getSymbolAtLocation(e):void 0;if(cO(r))return r;const{parent:i}=e;if(U_(i)&&i.tagName===e||gS(i)){const a=t.resolveName(t.getJsxNamespace(i),U_(i)?e:i,111551,!1);if(cO(a))return a}}function mee(e,t,r,i){if(r.verbatimModuleSyntax&&(Ul(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return bze(e,r,!!i);case 3:return gze(e,r,!!i);default:return E.assertNever(t)}}function gze(e,t,r){if(Yx(t))return 1;const i=Ul(t);switch(i){case 2:case 1:case 3:return Kn(e)&&(zc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return E.assertNever(i,`Unexpected moduleKind ${i}`)}}function hze({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:a},o,l){const u=t.getTypeChecker(),f=t.getCompilerOptions();return Na(gee(e,u,o,f),g=>{if(g==="default")return;const m=Ey(o),y=DB(e,t),x=vze(g,v6(o),vT(o),r,e,t,l,i,a);return ra(rV(x.values(),k=>wB(k,o.getStart(e),m,y,t,e,i,a).fixes),k=>({fix:k,symbolName:g,errorIdentifierText:o.text,isJsxNamespaceFix:g!==o.text}))})}function Vbe(e,t,r,i){const a=i.getTypeChecker(),o=a.resolveName(r,t,111551,!0);if(!o)return;const l=a.getTypeOnlyAliasDeclaration(o);if(!(!l||Rn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function gee(e,t,r,i){const a=r.parent;if((U_(a)||h2(a))&&a.tagName===r&&iZ(i.jsx)){const o=t.getJsxNamespace(e);if(yze(o,r,t))return!P6(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,o]:[o]}return[r.text]}function yze(e,t,r){if(P6(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||dt(i.declarations,Xv)&&!(i.flags&111551)}function vze(e,t,r,i,a,o,l,u,f){var g;const m=Xf(),y=X8(a,f,u),x=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),k=lm(N=>ST(N?u.getPackageJsonAutoImportProvider():o,u));function C(N,D,M,V,U,Y){const j=k(Y);if(D&&lZ(U,a,D,f,y,j,x)||!D&&y.allowsImportingAmbientModule(N,j)){const ee=U.getTypeChecker();m.add(m1e(M,ee).toString(),{symbol:M,moduleSymbol:N,moduleFileName:D==null?void 0:D.fileName,exportKind:V,targetFlags:au(M,ee).flags,isFromPackageJson:Y})}}return _Z(o,u,f,l,(N,D,M,V)=>{const U=M.getTypeChecker();i.throwIfCancellationRequested();const Y=M.getCompilerOptions(),j=iR(N,U,Y);j&&(j.name===e||vee(N,Ia(Y),t)===e)&&Qbe(j.resolvedSymbol,r)&&C(N,D,j.symbol,j.exportKind,M,V);const ee=U.tryGetMemberInModuleExportsAndProperties(e,N);ee&&Qbe(ee,r)&&C(N,D,ee,0,M,V)}),m}function bze(e,t,r){const i=Yx(t),a=Kn(e);if(!a&&Ul(t)>=5)return i?1:2;if(a)return zc(e)||r?i?1:2:3;for(const o of e.statements)if(Hl(o)&&!_c(o.moduleReference))return 3;return i?1:3}function hee(e,t,r,i,a,o,l){let u;const f=tr.ChangeTracker.with(e,g=>{u=Tze(g,t,r,i,a,o,l)});return js(Tee,f,u,xee,p.Add_all_missing_imports)}function Tze(e,t,r,i,a,o,l){const u=Rf(t,l);switch(i.kind){case 0:return yee(e,t,i),[p.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return qbe(e,t,i,u),[p.Change_0_to_1,r,Hbe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:f,importKind:g,addAsTypeOnly:m,moduleSpecifier:y}=i;Wbe(e,t,f,g===1?{name:r,addAsTypeOnly:m}:void 0,g===0?[{name:r,addAsTypeOnly:m}]:Ve,l);const x=Ep(y);return a?[p.Import_0_from_1,r,x]:[p.Update_import_from_0,x]}case 3:{const{importKind:f,moduleSpecifier:g,addAsTypeOnly:m,useRequire:y,qualification:x}=i,k=y?$be:Gbe,C=f===1?{name:r,addAsTypeOnly:m}:void 0,N=f===0?[{name:r,addAsTypeOnly:m}]:void 0,D=f===2||f===3?{importKind:f,name:(x==null?void 0:x.namespacePrefix)||r,addAsTypeOnly:m}:void 0;return U8(e,t,k(g,u,C,N,D,o),!0,l),x&&yee(e,t,x),a?[p.Import_0_from_1,r,g]:[p.Add_import_from_0,g]}case 4:{const{typeOnlyAliasDeclaration:f}=i,g=xze(e,f,o,t,l);return g.kind===276?[p.Remove_type_from_import_of_0_from_1,r,Ube(g.parent.parent)]:[p.Remove_type_from_import_declaration_from_0,Ube(g)]}default:return E.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function Ube(e){var t,r;return e.kind===271?((r=Hr((t=Hr(e.moduleReference,km))==null?void 0:t.expression,Qa))==null?void 0:r.text)||e.moduleReference.getText():Bs(e.parent.moduleSpecifier,fa).text}function xze(e,t,r,i,a){const o=Uq(r);switch(t.kind){case 276:if(t.isTypeOnly){const u=Fp.detectImportSpecifierSorting(t.parent.elements,a);if(t.parent.elements.length>1&&u){e.delete(i,t);const f=I.updateImportSpecifier(t,!1,t.propertyName,t.name),g=Fp.getOrganizeImportsComparer(a,u===2),m=Fp.getImportSpecifierInsertionIndex(t.parent.elements,f,g);e.insertImportSpecifierAtIndex(i,f,t.parent,m)}else e.deleteRange(i,t.getFirstToken());return t}else return E.assert(t.parent.parent.isTypeOnly),l(t.parent.parent),t.parent.parent;case 273:return l(t),t;case 274:return l(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:E.failBadSyntaxKind(t)}function l(u){if(e.delete(i,MY(u,i)),!r.allowImportingTsExtensions){const f=_3(u.parent),g=f&&Fx(i,f.text,cp(i,f));if(g!=null&&g.resolvedUsingTsExtension){const m=iw(f.text,LL(f.text,r));e.replaceNode(i,f,I.createStringLiteral(m))}}if(o){const f=Hr(u.namedBindings,ih);if(f&&f.elements.length>1){Fp.detectImportSpecifierSorting(f.elements,a)&&t.kind===276&&f.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,f,0));for(const g of f.elements)g!==t&&!g.isTypeOnly&&e.insertModifierBefore(i,156,g)}}}}function Wbe(e,t,r,i,a,o){var l;if(r.kind===206){i&&g(r,i.name,"default");for(const m of a)g(r,m.name,void 0);return}const u=r.isTypeOnly&&dt([i,...a],m=>(m==null?void 0:m.addAsTypeOnly)===4),f=r.namedBindings&&((l=Hr(r.namedBindings,ih))==null?void 0:l.elements);if(i&&(E.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),I.createIdentifier(i.name),{suffix:", "})),a.length){let m;if(typeof o.organizeImportsIgnoreCase=="boolean")m=o.organizeImportsIgnoreCase;else if(f){const C=Fp.detectImportSpecifierSorting(f,o);C!==3&&(m=C===2)}m===void 0&&(m=Fp.detectSorting(t,o)===2);const y=Fp.getOrganizeImportsComparer(o,m),x=R0(a.map(C=>I.createImportSpecifier((!r.isTypeOnly||u)&&TN(C),void 0,I.createIdentifier(C.name))),(C,N)=>Fp.compareImportOrExportSpecifiers(C,N,y)),k=(f==null?void 0:f.length)&&Fp.detectImportSpecifierSorting(f,o);if(k&&!(m&&k===1))for(const C of x){const N=u&&!C.isTypeOnly?0:Fp.getImportSpecifierInsertionIndex(f,C,y);e.insertImportSpecifierAtIndex(t,C,r.namedBindings,N)}else if(f!=null&&f.length)for(const C of x)e.insertNodeInListAfter(t,ka(f),C,f);else if(x.length){const C=I.createNamedImports(x);r.namedBindings?e.replaceNode(t,r.namedBindings,C):e.insertNodeAfter(t,E.checkDefined(r.name,"Import clause must have either named imports or a default import"),C)}}if(u&&(e.delete(t,MY(r,t)),f))for(const m of f)e.insertModifierBefore(t,156,m);function g(m,y,x){const k=I.createBindingElement(void 0,x,y);m.elements.length?e.insertNodeInListAfter(t,ka(m.elements),k):e.replaceNode(t,m,I.createObjectBindingPattern([k]))}}function yee(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function qbe(e,t,{moduleSpecifier:r,usagePosition:i},a){e.insertText(t,i,Hbe(r,a))}function Hbe(e,t){const r=LY(t);return`import(${r}${e}${r}).`}function TN({addAsTypeOnly:e}){return e===2}function Gbe(e,t,r,i,a,o){const l=OS(e,t);let u;if(r!==void 0||(i==null?void 0:i.length)){const f=(!r||TN(r))&&Xi(i,TN)||o.verbatimModuleSyntax&&(r==null?void 0:r.addAsTypeOnly)!==4&&!dt(i,g=>g.addAsTypeOnly===4);u=Wk(u,uh(r&&I.createIdentifier(r.name),i==null?void 0:i.map(({addAsTypeOnly:g,name:m})=>I.createImportSpecifier(!f&&g===2,void 0,I.createIdentifier(m))),e,t,f))}if(a){const f=a.importKind===3?I.createImportEqualsDeclaration(void 0,TN(a),I.createIdentifier(a.name),I.createExternalModuleReference(l)):I.createImportDeclaration(void 0,I.createImportClause(TN(a),void 0,I.createNamespaceImport(I.createIdentifier(a.name))),l,void 0);u=Wk(u,f)}return E.checkDefined(u)}function $be(e,t,r,i,a){const o=OS(e,t);let l;if(r||(i==null?void 0:i.length)){const u=(i==null?void 0:i.map(({name:g})=>I.createBindingElement(void 0,void 0,g)))||[];r&&u.unshift(I.createBindingElement(void 0,"default",r.name));const f=Xbe(I.createObjectBindingPattern(u),o);l=Wk(l,f)}if(a){const u=Xbe(a.name,o);l=Wk(l,u)}return E.checkDefined(l)}function Xbe(e,t){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(typeof e=="string"?I.createIdentifier(e):e,void 0,void 0,I.createCallExpression(I.createIdentifier("require"),void 0,[t]))],2))}function Qbe({declarations:e},t){return dt(e,r=>!!(x5(r)&t))}function vee(e,t,r){return bee(gu(Ep(e.name)),t,r)}function bee(e,t,r){const i=Jl(qk(e,"/index"));let a="",o=!0;const l=i.charCodeAt(0);Xm(l,t)?(a+=String.fromCharCode(l),r&&(a=a.toUpperCase())):o=!1;for(let u=1;uhee(e,i,f,u,f!==g,o.getCompilerOptions(),r))},fixIds:[xee],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:a,cancellationToken:o}=e,l=Ibe(t,r,!0,i,a,o);return WS(e,See,u=>l.addImportFromDiagnostic(u,e)),US(tr.ChangeTracker.with(e,l.writeFixes))}})}});function Ybe(e,t,r){const i=Or(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const a=Or(i.relatedInformation,l=>l.code===p.This_type_parameter_might_need_an_extends_0_constraint.code);if(a===void 0||a.file===void 0||a.start===void 0||a.length===void 0)return;let o=Cte(a.file,yl(a.start,a.length));if(o!==void 0&&(we(o)&&Go(o.parent)&&(o=o.parent),Go(o))){if(i8(o.parent))return;const l=Ui(t,r.start),u=e.getTypeChecker();return{constraint:Cze(u,l)||kze(a.messageText),declaration:o,token:l}}}function Zbe(e,t,r,i,a,o){const{declaration:l,constraint:u}=o,f=t.getTypeChecker();if(Gs(u))e.insertText(a,l.name.end,` extends ${u}`);else{const g=Ia(t.getCompilerOptions()),m=HS({program:t,host:i}),y=AT(a,t,r,i),x=uj(f,y,u,void 0,g,void 0,m);x&&(e.replaceNode(a,l,I.updateTypeParameterDeclaration(l,void 0,l.name,x,l.default)),y.writeFixes(e))}}function kze(e){const[t,r]=v1(e,` +`,0).match(/`extends (.*)`/)||[];return r}function Cze(e,t){return Ai(t.parent)?e.getTypeArgumentConstraint(t.parent):(nt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var AB,kee,Eze=Rt({"src/services/codefixes/fixAddMissingConstraint.ts"(){Wr(),Ks(),AB="addMissingConstraint",kee=[p.Type_0_is_not_comparable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Type_0_is_not_assignable_to_type_1.code,p.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,p.Property_0_is_incompatible_with_index_signature.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Type_0_does_not_satisfy_the_constraint_1.code],$s({errorCodes:kee,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:a,host:o}=e,l=Ybe(i,t,r);if(l===void 0)return;const u=tr.ChangeTracker.with(e,f=>Zbe(f,i,a,o,t,l));return[js(AB,u,p.Add_extends_constraint,AB,p.Add_extends_constraint_to_all_type_parameters)]},fixIds:[AB],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,a=new Map;return US(tr.ChangeTracker.with(e,o=>{WS(e,kee,l=>{const u=Ybe(t,l.file,yl(l.start,l.length));if(u&&td(a,Ra(u.declaration)))return Zbe(o,t,r,i,l.file,u)})}))}})}});function Kbe(e,t,r,i){switch(r){case p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return wze(e,t.sourceFile,i);case p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return Dze(e,t.sourceFile,i);default:E.fail("Unexpected error code: "+r)}}function wze(e,t,r){const i=tTe(t,r);if(P_(t)){e.addJSDocTags(t,i,[I.createJSDocOverrideTag(I.createIdentifier("override"))]);return}const a=i.modifiers||Ve,o=Or(a,oS),l=Or(a,kfe),u=Or(a,y=>EY(y.kind)),f=yx(a,Wl),g=l?l.end:o?o.end:u?u.end:f?_a(t.text,f.end):i.getStart(t),m=u||o||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,m)}function Dze(e,t,r){const i=tTe(t,r);if(P_(t)){e.filterJSDocTags(t,i,yI(kF));return}const a=Or(i.modifiers,Cfe);E.assertIsDefined(a),e.deleteModifier(t,a)}function eTe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Du(e,e.parent);default:return!1}}function tTe(e,t){const r=Ui(e,t),i=In(r,a=>ni(a)?"quit":eTe(a));return E.assert(i&&eTe(i)),i}var Cee,F4,dE,Eee,wee,Aze=Rt({"src/services/codefixes/fixOverrideModifier.ts"(){Wr(),Ks(),Cee="fixOverrideModifier",F4="fixAddOverrideModifier",dE="fixRemoveOverrideModifier",Eee=[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],wee={[p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:F4,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:F4,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:dE,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:dE,fixAllDescriptions:p.Remove_override_modifier},[p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:F4,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:F4,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:F4,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:dE,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:dE,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers}},$s({errorCodes:Eee,getCodeActions:function(t){const{errorCode:r,span:i}=t,a=wee[r];if(!a)return Ve;const{descriptions:o,fixId:l,fixAllDescriptions:u}=a,f=tr.ChangeTracker.with(t,g=>Kbe(g,t,r,i.start));return[zK(Cee,f,o,l,u)]},fixIds:[Cee,F4,dE],getAllCodeActions:e=>Ya(e,Eee,(t,r)=>{const{code:i,start:a}=r,o=wee[i];!o||o.fixId!==e.fixId||Kbe(t,e,i,a)})})}});function nTe(e,t,r,i){const a=Rf(t,i),o=I.createStringLiteral(r.name.text,a===0);e.replaceNode(t,r,e9(r)?I.createElementAccessChain(r.expression,r.questionDotToken,o):I.createElementAccessExpression(r.expression,o))}function rTe(e,t){return Bs(Ui(e,t).parent,kr)}var NB,Dee,Nze=Rt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){Wr(),Ks(),NB="fixNoPropertyAccessFromIndexSignature",Dee=[p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],$s({errorCodes:Dee,fixIds:[NB],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,a=rTe(t,r.start),o=tr.ChangeTracker.with(e,l=>nTe(l,e.sourceFile,a,i));return[js(NB,o,[p.Use_element_access_for_0,a.name.text],NB,p.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ya(e,Dee,(t,r)=>nTe(t,r.file,rTe(r.file,r.start),e.preferences))})}});function iTe(e,t,r,i){const a=Ui(t,r);if(!C4(a))return;const o=ru(a,!1,!1);if(!(!tl(o)&&!_o(o))&&!Bi(ru(o,!1,!1))){const l=E.checkDefined($a(o,100,t)),{name:u}=o,f=E.checkDefined(o.body);return _o(o)?u&&Oo.Core.isSymbolReferencedInFile(u,i,t,f)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,f.pos," =>"),[p.Convert_function_expression_0_to_arrow_function,u?u.text:rR]):(e.replaceNode(t,l,I.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,f.pos," =>"),[p.Convert_function_declaration_0_to_arrow_function,u.text])}}var PB,Aee,Pze=Rt({"src/services/codefixes/fixImplicitThis.ts"(){Wr(),Ks(),PB="fixImplicitThis",Aee=[p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],$s({errorCodes:Aee,getCodeActions:function(t){const{sourceFile:r,program:i,span:a}=t;let o;const l=tr.ChangeTracker.with(t,u=>{o=iTe(u,r,a.start,i.getTypeChecker())});return o?[js(PB,l,o,PB,p.Fix_all_implicit_this_errors)]:Ve},fixIds:[PB],getAllCodeActions:e=>Ya(e,Aee,(t,r)=>{iTe(t,r.file,r.start,e.program.getTypeChecker())})})}});function sTe(e,t,r){var i;const a=Ui(e,t);if(we(a)){const o=In(a,bl);if(o===void 0)return;const l=fa(o.moduleSpecifier)?o.moduleSpecifier.text:void 0;if(l===void 0)return;const u=Fx(e,l,void 0);if(u===void 0)return;const f=r.getSourceFile(u.resolvedFileName);if(f===void 0||Q8(r,f))return;const g=f.symbol,m=(i=Hr(g.valueDeclaration,fm))==null?void 0:i.locals;if(m===void 0)return;const y=m.get(a.escapedText);if(y===void 0)return;const x=Oze(y);return x===void 0?void 0:{exportName:{node:a,isTypeOnly:V6(x)},node:x,moduleSourceFile:f,moduleSpecifier:l}}}function Ize(e,t,{exportName:r,node:i,moduleSourceFile:a}){const o=IB(a,r.isTypeOnly);o?aTe(e,t,a,o,[r]):MD(i)?e.insertExportModifier(a,i):oTe(e,t,a,[r])}function Nee(e,t,r,i,a){Nn(i)&&(a?aTe(e,t,r,a,i):oTe(e,t,r,i))}function IB(e,t){const r=i=>Yc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return yx(e.statements,r)}function aTe(e,t,r,i,a){const o=i.exportClause&&op(i.exportClause)?i.exportClause.elements:I.createNodeArray([]),l=!i.isTypeOnly&&!!(nd(t.getCompilerOptions())||Or(o,u=>u.isTypeOnly));e.replaceNode(r,i,I.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,I.createNamedExports(I.createNodeArray([...o,...cTe(a,l)],o.hasTrailingComma)),i.moduleSpecifier,i.assertClause))}function oTe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,I.createExportDeclaration(void 0,!1,I.createNamedExports(cTe(i,nd(t.getCompilerOptions()))),void 0,void 0))}function cTe(e,t){return I.createNodeArray(an(e,r=>I.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function Oze(e){if(e.valueDeclaration===void 0)return wl(e.declarations);const t=e.valueDeclaration,r=Ri(t)?Hr(t.parent.parent,ic):void 0;return r&&Nn(r.declarationList.declarations)===1?r:t}var OB,Pee,Fze=Rt({"src/services/codefixes/fixImportNonExportedMember.ts"(){Wr(),Ks(),OB="fixImportNonExportedMember",Pee=[p.Module_0_declares_1_locally_but_it_is_not_exported.code],$s({errorCodes:Pee,fixIds:[OB],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,a=sTe(t,r.start,i);if(a===void 0)return;const o=tr.ChangeTracker.with(e,l=>Ize(l,i,a));return[js(OB,o,[p.Export_0_from_module_1,a.exportName.node.text,a.moduleSpecifier],OB,p.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return US(tr.ChangeTracker.with(e,r=>{const i=new Map;WS(e,Pee,a=>{const o=sTe(a.file,a.start,t);if(o===void 0)return;const{exportName:l,node:u,moduleSourceFile:f}=o;if(IB(f,l.isTypeOnly)===void 0&&MD(u))r.insertExportModifier(f,u);else{const g=i.get(f)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?g.typeOnlyExports.push(l):g.exports.push(l),i.set(f,g)}}),i.forEach((a,o)=>{const l=IB(o,!0);l&&l.isTypeOnly?(Nee(r,t,o,a.typeOnlyExports,l),Nee(r,t,o,a.exports,IB(o,!1))):Nee(r,t,o,[...a.exports,...a.typeOnlyExports],l)})}))}})}});function Lze(e,t){const r=Ui(e,t);return In(r,i=>i.kind===202)}function Mze(e,t,r){if(!r)return;let i=r.type,a=!1,o=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?a=!0:i.kind===191&&(o=!0),i=i.type;const l=I.updateNamedTupleMember(r,r.dotDotDotToken||(o?I.createToken(26):void 0),r.name,r.questionToken||(a?I.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var FB,lTe,Rze=Rt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){Wr(),Ks(),FB="fixIncorrectNamedTupleSyntax",lTe=[p.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,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],$s({errorCodes:lTe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=Lze(r,i.start),o=tr.ChangeTracker.with(t,l=>Mze(l,r,a));return[js(FB,o,p.Move_labeled_tuple_element_modifiers_to_labels,FB,p.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[FB]})}});function _Te(e,t,r,i){const a=Ui(e,t),o=a.parent;if((i===p.No_overload_matches_this_call.code||i===p.Type_0_is_not_assignable_to_type_1.code)&&!Vd(o))return;const l=r.program.getTypeChecker();let u;if(kr(o)&&o.name===a){E.assert(Qm(a),"Expected an identifier for spelling (property access)");let f=l.getTypeAtLocation(o.expression);o.flags&64&&(f=l.getNonNullableType(f)),u=l.getSuggestedSymbolForNonexistentProperty(a,f)}else if(rr(o)&&o.operatorToken.kind===103&&o.left===a&&Ei(a)){const f=l.getTypeAtLocation(o.right);u=l.getSuggestedSymbolForNonexistentProperty(a,f)}else if(hu(o)&&o.right===a){const f=l.getSymbolAtLocation(o.left);f&&f.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(o.right,f))}else if(vu(o)&&o.name===a){E.assertNode(a,we,"Expected an identifier for spelling (import)");const f=In(a,bl),g=jze(e,r,f);g&&g.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(a,g.symbol))}else if(Vd(o)&&o.name===a){E.assertNode(a,we,"Expected an identifier for JSX attribute");const f=In(a,U_),g=l.getContextualTypeForArgumentAtIndex(f,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(a,g)}else if(Lr(o,16384)&&Nl(o)&&o.name===a){const f=In(a,ni),g=f?Od(f):void 0,m=g?l.getTypeAtLocation(g):void 0;m&&(u=l.getSuggestedSymbolForNonexistentClassMember(el(a),m))}else{const f=vT(a),g=el(a);E.assert(g!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(a,g,Bze(f))}return u===void 0?void 0:{node:a,suggestedSymbol:u}}function uTe(e,t,r,i,a){const o=bc(i);if(!pf(o,a)&&kr(r.parent)){const l=i.valueDeclaration;l&&A_(l)&&Ei(l.name)?e.replaceNode(t,r,I.createIdentifier(o)):e.replaceNode(t,r.parent,I.createElementAccessExpression(r.parent.expression,I.createStringLiteral(o)))}else e.replaceNode(t,r,I.createIdentifier(o))}function Bze(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function jze(e,t,r){if(!r||!Qa(r.moduleSpecifier))return;const i=Fx(e,r.moduleSpecifier.text,cp(e,r.moduleSpecifier));if(!!i)return t.program.getSourceFile(i.resolvedFileName)}var Iee,Oee,Jze=Rt({"src/services/codefixes/fixSpelling.ts"(){Wr(),Ks(),Iee="fixSpelling",Oee=[p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,p.Cannot_find_name_0_Did_you_mean_1.code,p.Could_not_find_name_0_Did_you_mean_1.code,p.Cannot_find_namespace_0_Did_you_mean_1.code,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p._0_has_no_exported_member_named_1_Did_you_mean_2.code,p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,p.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,p.No_overload_matches_this_call.code,p.Type_0_is_not_assignable_to_type_1.code],$s({errorCodes:Oee,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=_Te(t,e.span.start,e,r);if(!i)return;const{node:a,suggestedSymbol:o}=i,l=Ia(e.host.getCompilationSettings()),u=tr.ChangeTracker.with(e,f=>uTe(f,t,a,o,l));return[js("spelling",u,[p.Change_spelling_to_0,bc(o)],Iee,p.Fix_all_detected_spelling_errors)]},fixIds:[Iee],getAllCodeActions:e=>Ya(e,Oee,(t,r)=>{const i=_Te(r.file,r.start,e,r.code),a=Ia(e.host.getCompilationSettings());i&&uTe(t,e.sourceFile,i.node,i.suggestedSymbol,a)})})}});function fTe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const a=Vs([i]);return e.createAnonymousType(void 0,a,[],[],[])}function Fee(e,t,r,i){if(!t.body||!vs(t.body)||Nn(t.body.statements)!==1)return;const a=wa(t.body.statements);if(ql(a)&&Lee(e,t,e.getTypeAtLocation(a.expression),r,i))return{declaration:t,kind:0,expression:a.expression,statement:a,commentSource:a.expression};if(m2(a)&&ql(a.statement)){const o=I.createObjectLiteralExpression([I.createPropertyAssignment(a.label,a.statement.expression)]),l=fTe(e,a.label,a.statement.expression);if(Lee(e,t,l,r,i))return Po(t)?{declaration:t,kind:1,expression:o,statement:a,commentSource:a.statement.expression}:{declaration:t,kind:0,expression:o,statement:a,commentSource:a.statement.expression}}else if(vs(a)&&Nn(a.statements)===1){const o=wa(a.statements);if(m2(o)&&ql(o.statement)){const l=I.createObjectLiteralExpression([I.createPropertyAssignment(o.label,o.statement.expression)]),u=fTe(e,o.label,o.statement.expression);if(Lee(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:a,commentSource:o}}}}function Lee(e,t,r,i,a){if(a){const o=e.getSignatureFromDeclaration(t);if(o){Lr(t,512)&&(r=e.createPromiseType(r));const l=e.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=e.createAnonymousType(void 0,Vs(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function pTe(e,t,r,i){const a=Ui(t,r);if(!a.parent)return;const o=In(a.parent,Eo);switch(i){case p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!yf(o.type,a)?void 0:Fee(e,o,e.getTypeFromTypeNode(o.type),!1);case p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!Js(o.parent)||!o.body)return;const l=o.parent.arguments.indexOf(o);if(l===-1)return;const u=e.getContextualTypeForArgumentAtIndex(o.parent,l);return u?Fee(e,o,u,!0):void 0;case p.Type_0_is_not_assignable_to_type_1.code:if(!Xg(a)||!h6(a.parent)&&!Vd(a.parent))return;const f=zze(a.parent);return!f||!Eo(f)||!f.body?void 0:Fee(e,f,e.getTypeAtLocation(a.parent),!0)}}function zze(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(l8(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function dTe(e,t,r,i){Bu(r);const a=U5(t);e.replaceNode(t,i,I.createReturnStatement(r),{leadingTriviaOption:tr.LeadingTriviaOption.Exclude,trailingTriviaOption:tr.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function mTe(e,t,r,i,a,o){const l=o||jM(i)?I.createParenthesizedExpression(i):i;Bu(a),kT(a,l),e.replaceNode(t,r.body,l)}function gTe(e,t,r,i){e.replaceNode(t,r.body,I.createParenthesizedExpression(i))}function Vze(e,t,r){const i=tr.ChangeTracker.with(e,a=>dTe(a,e.sourceFile,t,r));return js(LB,i,p.Add_a_return_statement,MB,p.Add_all_missing_return_statement)}function Uze(e,t,r,i){const a=tr.ChangeTracker.with(e,o=>mTe(o,e.sourceFile,t,r,i,!1));return js(LB,a,p.Remove_braces_from_arrow_function_body,RB,p.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function Wze(e,t,r){const i=tr.ChangeTracker.with(e,a=>gTe(a,e.sourceFile,t,r));return js(LB,i,p.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,BB,p.Wrap_all_object_literal_with_parentheses)}var LB,MB,RB,BB,Mee,qze=Rt({"src/services/codefixes/returnValueCorrect.ts"(){Wr(),Ks(),LB="returnValueCorrect",MB="fixAddReturnStatement",RB="fixRemoveBracesFromArrowFunctionBody",BB="fixWrapTheBlockWithParen",Mee=[p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,p.Type_0_is_not_assignable_to_type_1.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],$s({errorCodes:Mee,fixIds:[MB,RB,BB],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:a},errorCode:o}=t,l=pTe(r.getTypeChecker(),i,a,o);if(!!l)return l.kind===0?dn([Vze(t,l.expression,l.statement)],Po(l.declaration)?Uze(t,l.declaration,l.expression,l.commentSource):void 0):[Wze(t,l.declaration,l.expression)]},getAllCodeActions:e=>Ya(e,Mee,(t,r)=>{const i=pTe(e.program.getTypeChecker(),r.file,r.start,r.code);if(!!i)switch(e.fixId){case MB:dTe(t,r.file,i.expression,i.statement);break;case RB:if(!Po(i.declaration))return;mTe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case BB:if(!Po(i.declaration))return;gTe(t,r.file,i.declaration,i.expression);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function hTe(e,t,r,i,a){var o;const l=Ui(e,t),u=l.parent;if(r===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&ha(u)&&Js(u.parent)))return;const k=qc(u.parent.arguments,M=>M===u);if(k<0)return;const C=i.getResolvedSignature(u.parent);if(!(C&&C.declaration&&C.parameters[k]))return;const N=C.parameters[k].valueDeclaration;if(!(N&&rs(N)&&we(N.name)))return;const D=ra(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(C,k),!1,!1));return Nn(D)?{kind:3,token:N.name,properties:D,parentDeclaration:u}:void 0}if(!Qm(l))return;if(we(l)&&i1(u)&&u.initializer&&ha(u.initializer)){const k=i.getContextualType(l)||i.getTypeAtLocation(l),C=ra(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),k,!1,!1));return Nn(C)?{kind:3,token:l,properties:C,parentDeclaration:u.initializer}:void 0}if(we(l)&&U_(l.parent)){const k=Ia(a.getCompilerOptions()),C=Zze(i,k,l.parent);return Nn(C)?{kind:4,token:l,attributes:C,parentDeclaration:l.parent}:void 0}if(we(l)){const k=(o=i.getContextualType(l))==null?void 0:o.getNonNullableType();if(k&&Rr(k)&16){const C=wl(i.getSignaturesOfType(k,0));return C===void 0?void 0:{kind:5,token:l,signature:C,sourceFile:e,parentDeclaration:DTe(l)}}if(Js(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:DTe(l)}}if(!kr(u))return;const f=PY(i.getTypeAtLocation(u.expression)),g=f.symbol;if(!g||!g.declarations)return;if(we(l)&&Js(u.parent)){const k=Or(g.declarations,Ac),C=k==null?void 0:k.getSourceFile();if(k&&C&&!Q8(a,C))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:1,parentDeclaration:k};const N=Or(g.declarations,Bi);if(e.commonJsModuleIndicator)return;if(N&&!Q8(a,N))return{kind:2,token:l,call:u.parent,sourceFile:N,modifierFlags:1,parentDeclaration:N}}const m=Or(g.declarations,ni);if(!m&&Ei(l))return;const y=m||Or(g.declarations,k=>f_(k)||ef(k));if(y&&!Q8(a,y.getSourceFile())){const k=!ef(y)&&(f.target||f)!==i.getDeclaredTypeOfSymbol(g);if(k&&(Ei(l)||f_(y)))return;const C=y.getSourceFile(),N=ef(y)?0:(k?32:0)|(rZ(l.text)?8:0),D=P_(C),M=Hr(u.parent,Js);return{kind:0,token:l,call:M,modifierFlags:N,parentDeclaration:y,declSourceFile:C,isJSFile:D}}const x=Or(g.declarations,Py);if(x&&!(f.flags&1056)&&!Ei(l)&&!Q8(a,x.getSourceFile()))return{kind:1,token:l,parentDeclaration:x}}function Hze(e,t){return t.isJSFile?Cb(Gze(e,t)):$ze(e,t)}function Gze(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:a}){if(f_(t)||ef(t))return;const o=tr.ChangeTracker.with(e,u=>yTe(u,r,t,a,!!(i&32)));if(o.length===0)return;const l=i&32?p.Initialize_static_property_0:Ei(a)?p.Declare_a_private_field_named_0:p.Initialize_property_0_in_the_constructor;return js(fh,o,[l,a.text],fh,p.Add_all_missing_members)}function yTe(e,t,r,i,a){const o=i.text;if(a){if(r.kind===231)return;const l=r.name.getText(),u=vTe(I.createIdentifier(l),o);e.insertNodeAfter(t,r,u)}else if(Ei(i)){const l=I.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),u=xTe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=ng(r);if(!l)return;const u=vTe(I.createThis(),o);e.insertNodeAtConstructorEnd(t,l,u)}}function vTe(e,t){return I.createExpressionStatement(I.createAssignment(I.createPropertyAccessExpression(e,t),NT()))}function $ze(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:a}){const o=a.text,l=i&32,u=bTe(e.program.getTypeChecker(),t,a),f=m=>tr.ChangeTracker.with(e,y=>TTe(y,r,t,o,u,m)),g=[js(fh,f(i&32),[l?p.Declare_static_property_0:p.Declare_property_0,o],fh,p.Add_all_missing_members)];return l||Ei(a)||(i&8&&g.unshift(Op(fh,f(8),[p.Declare_private_property_0,o])),g.push(Xze(e,r,t,a.text,u))),g}function bTe(e,t,r){let i;if(r.parent.parent.kind===226){const a=r.parent.parent,o=r.parent===a.left?a.right:a.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));i=e.typeToTypeNode(l,t,1)}else{const a=e.getContextualType(r.parent);i=a?e.typeToTypeNode(a,void 0,1):void 0}return i||I.createKeywordTypeNode(133)}function TTe(e,t,r,i,a,o){const l=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,u=ni(r)?I.createPropertyDeclaration(l,i,void 0,a,void 0):I.createPropertySignature(void 0,i,void 0,a),f=xTe(r);f?e.insertNodeAfter(t,f,u):e.insertMemberAtStart(t,r,u)}function xTe(e){let t;for(const r of e.members){if(!Fs(r))break;t=r}return t}function Xze(e,t,r,i,a){const o=I.createKeywordTypeNode(154),l=I.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),u=I.createIndexSignature(void 0,[l],a),f=tr.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,r,u));return Op(fh,f,[p.Add_index_signature_for_property_0,i])}function Qze(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:a,token:o,call:l}=t;if(l===void 0)return;const u=o.text,f=m=>tr.ChangeTracker.with(e,y=>STe(e,y,l,o,m,r,i)),g=[js(fh,f(a&32),[a&32?p.Declare_static_method_0:p.Declare_method_0,u],fh,p.Add_all_missing_members)];return a&8&&g.unshift(Op(fh,f(8),[p.Declare_private_method_0,u])),g}function STe(e,t,r,i,a,o,l){const u=AT(l,e.program,e.preferences,e.host),f=ni(o)?174:173,g=vte(f,e,u,r,i,a,o),m=Kze(o,r);m?t.insertNodeAfter(l,m,g):t.insertMemberAtStart(l,o,g),u.writeFixes(t)}function kTe(e,t,{token:r,parentDeclaration:i}){const a=dt(i.members,l=>{const u=t.getTypeAtLocation(l);return!!(u&&u.flags&402653316)}),o=I.createEnumMember(r,a?I.createStringLiteral(r.text):void 0);e.replaceNode(i.getSourceFile(),i,I.updateEnumDeclaration(i,i.modifiers,i.name,es(i.members,Cb(o))),{leadingTriviaOption:tr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:tr.TrailingTriviaOption.Exclude})}function CTe(e,t,r){const i=Rf(t.sourceFile,t.preferences),a=AT(t.sourceFile,t.program,t.preferences,t.host),o=r.kind===2?vte(262,t,a,r.call,lr(r.token),r.modifierFlags,r.parentDeclaration):_j(262,t,i,r.signature,DN(p.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,a);o===void 0&&E.fail("fixMissingFunctionDeclaration codefix got unexpected error."),id(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,o),a.writeFixes(e)}function ETe(e,t,r){const i=AT(t.sourceFile,t.program,t.preferences,t.host),a=Rf(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=dt(l.properties,hS),f=an(r.attributes,y=>{const x=jB(t,o,i,a,o.getTypeOfSymbol(y),r.parentDeclaration),k=I.createIdentifier(y.name),C=I.createJsxAttribute(k,I.createJsxExpression(void 0,x));return Ta(k,C),C}),g=I.createJsxAttributes(u?[...f,...l.properties]:[...l.properties,...f]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,g,m),i.writeFixes(e)}function wTe(e,t,r){const i=AT(t.sourceFile,t.program,t.preferences,t.host),a=Rf(t.sourceFile,t.preferences),o=Ia(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=an(r.properties,g=>{const m=jB(t,l,i,a,l.getTypeOfSymbol(g),r.parentDeclaration);return I.createPropertyAssignment(eVe(g,o,a,l),m)}),f={leadingTriviaOption:tr.LeadingTriviaOption.Exclude,trailingTriviaOption:tr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,I.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),f),i.writeFixes(e)}function jB(e,t,r,i,a,o){if(a.flags&3)return NT();if(a.flags&134217732)return I.createStringLiteral("",i===0);if(a.flags&8)return I.createNumericLiteral(0);if(a.flags&64)return I.createBigIntLiteral("0n");if(a.flags&16)return I.createFalse();if(a.flags&1056){const l=a.symbol.exports?_I(a.symbol.exports.values()):a.symbol,u=t.symbolToExpression(a.symbol.parent?a.symbol.parent:a.symbol,111551,void 0,void 0);return l===void 0||u===void 0?I.createNumericLiteral(0):I.createPropertyAccessExpression(u,t.symbolToString(l))}if(a.flags&256)return I.createNumericLiteral(a.value);if(a.flags&2048)return I.createBigIntLiteral(a.value);if(a.flags&128)return I.createStringLiteral(a.value,i===0);if(a.flags&512)return a===t.getFalseType()||a===t.getFalseType(!0)?I.createFalse():I.createTrue();if(a.flags&65536)return I.createNull();if(a.flags&1048576){const l=cc(a.types,u=>jB(e,t,r,i,u,o));return l!=null?l:NT()}if(t.isArrayLikeType(a))return I.createArrayLiteralExpression();if(Yze(a)){const l=an(t.getPropertiesOfType(a),u=>{const f=jB(e,t,r,i,t.getTypeOfSymbol(u),o);return I.createPropertyAssignment(u.name,f)});return I.createObjectLiteralExpression(l,!0)}if(Rr(a)&16){if(Or(a.symbol.declarations||Ve,Kp(og,ag,kc))===void 0)return NT();const u=t.getSignaturesOfType(a,0);if(u===void 0)return NT();const f=_j(218,e,i,u[0],DN(p.Function_not_implemented.message,i),void 0,void 0,void 0,o,r);return f!=null?f:NT()}if(Rr(a)&1){const l=Yg(a.symbol);if(l===void 0||l2(l))return NT();const u=ng(l);return u&&Nn(u.parameters)?NT():I.createNewExpression(I.createIdentifier(a.symbol.name),void 0,void 0)}return NT()}function NT(){return I.createIdentifier("undefined")}function Yze(e){return e.flags&524288&&(Rr(e)&128||e.symbol&&Hr(om(e.symbol.declarations),ef))}function Zze(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return Ve;const a=i.getProperties();if(!Nn(a))return Ve;const o=new Set;for(const l of r.attributes.properties)if(Vd(l)&&o.add(q3(l.name)),hS(l)){const u=e.getTypeAtLocation(l.expression);for(const f of u.getProperties())o.add(f.escapedName)}return zr(a,l=>pf(l.name,t,1)&&!(l.flags&16777216||rc(l)&48||o.has(l.escapedName)))}function Kze(e,t){if(ef(e))return;const r=In(t,i=>kc(i)||Cc(i));return r&&r.parent===e?r:void 0}function eVe(e,t,r,i){if(pm(e)){const a=i.symbolToNode(e,111551,void 0,1073741824);if(a&&Ga(a))return a}return EO(e.name,t,r===0)}function DTe(e){if(In(e,l8)){const t=In(e.parent,id);if(t)return t}return Rn(e)}var fh,xN,SN,kN,Ree,tVe=Rt({"src/services/codefixes/fixAddMissingMember.ts"(){Wr(),Ks(),fh="fixMissingMember",xN="fixMissingProperties",SN="fixMissingAttributes",kN="fixMissingFunctionDeclaration",Ree=[p.Property_0_does_not_exist_on_type_1.code,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_is_missing_in_type_1_but_required_in_type_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Cannot_find_name_0.code],$s({errorCodes:Ree,getCodeActions(e){const t=e.program.getTypeChecker(),r=hTe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(!!r){if(r.kind===3){const i=tr.ChangeTracker.with(e,a=>wTe(a,e,r));return[js(xN,i,p.Add_missing_properties,xN,p.Add_all_missing_properties)]}if(r.kind===4){const i=tr.ChangeTracker.with(e,a=>ETe(a,e,r));return[js(SN,i,p.Add_missing_attributes,SN,p.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=tr.ChangeTracker.with(e,a=>CTe(a,e,r));return[js(kN,i,[p.Add_missing_function_declaration_0,r.token.text],kN,p.Add_all_missing_function_declarations)]}if(r.kind===1){const i=tr.ChangeTracker.with(e,a=>kTe(a,e.program.getTypeChecker(),r));return[js(fh,i,[p.Add_missing_enum_member_0,r.token.text],fh,p.Add_all_missing_members)]}return es(Qze(e,r),Hze(e,r))}},fixIds:[fh,kN,xN,SN],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),a=new Map,o=new Map;return US(tr.ChangeTracker.with(e,l=>{WS(e,Ree,u=>{const f=hTe(u.file,u.start,u.code,i,e.program);if(!(!f||!td(a,Ra(f.parentDeclaration)+"#"+f.token.text))){if(r===kN&&(f.kind===2||f.kind===5))CTe(l,e,f);else if(r===xN&&f.kind===3)wTe(l,e,f);else if(r===SN&&f.kind===4)ETe(l,e,f);else if(f.kind===1&&kTe(l,i,f),f.kind===0){const{parentDeclaration:g,token:m}=f,y=F7(o,g,()=>[]);y.some(x=>x.token.text===m.text)||y.push(f)}}}),o.forEach((u,f)=>{const g=ef(f)?void 0:wte(f,i);for(const m of u){if(g!=null&&g.some(M=>{const V=o.get(M);return!!V&&V.some(({token:U})=>U.text===m.token.text)}))continue;const{parentDeclaration:y,declSourceFile:x,modifierFlags:k,token:C,call:N,isJSFile:D}=m;if(N&&!Ei(C))STe(e,l,N,C,k&32,y,x);else if(D&&!f_(y)&&!ef(y))yTe(l,x,y,C,!!(k&32));else{const M=bTe(i,y,C);TTe(l,x,y,C.text,M,k&32)}}})}))}})}});function ATe(e,t,r){const i=Bs(nVe(t,r),Js),a=I.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,a)}function nVe(e,t){let r=Ui(e,t.start);const i=Zl(t);for(;r.endATe(a,t,r));return[js(JB,i,p.Add_missing_new_operator_to_call,JB,p.Add_missing_new_operator_to_all_calls)]},fixIds:[JB],getAllCodeActions:e=>Ya(e,Bee,(t,r)=>ATe(t,e.sourceFile,r))})}});function NTe(e,t){return{type:"install package",file:e,packageName:t}}function PTe(e,t){const r=Hr(Ui(e,t),fa);if(!r)return;const i=r.text,{packageName:a}=h$(i);return Al(a)?void 0:a}function ITe(e,t,r){var i;return r===jee?yT.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?_L(e):void 0}var OTe,zB,jee,Jee,iVe=Rt({"src/services/codefixes/fixCannotFindModule.ts"(){Wr(),Ks(),OTe="fixCannotFindModule",zB="installTypesPackage",jee=p.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Jee=[jee,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],$s({errorCodes:Jee,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:a}}=t,o=PTe(i,a);if(o===void 0)return;const l=ITe(o,r,t.errorCode);return l===void 0?[]:[js(OTe,[],[p.Install_0,l],zB,p.Install_all_missing_types_packages,NTe(i.fileName,l))]},fixIds:[zB],getAllCodeActions:e=>Ya(e,Jee,(t,r,i)=>{const a=PTe(r.file,r.start);if(a!==void 0)switch(e.fixId){case zB:{const o=ITe(a,e.host,r.code);o&&i.push(NTe(r.file.fileName,o));break}default:E.fail(`Bad fixId: ${e.fixId}`)}})})}});function FTe(e,t){const r=Ui(e,t);return Bs(r.parent,ni)}function LTe(e,t,r,i,a){const o=Od(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(o),f=l.getPropertiesOfType(u).filter(sVe),g=AT(t,r.program,a,r.host);yte(e,f,t,r,a,g,m=>i.insertMemberAtStart(t,e,m)),g.writeFixes(i)}function sVe(e){const t=c1(wa(e.getDeclarations()));return!(t&8)&&!!(t&256)}var zee,VB,aVe=Rt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){Wr(),Ks(),zee=[p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],VB="fixClassDoesntImplementInheritedAbstractMember",$s({errorCodes:zee,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=tr.ChangeTracker.with(t,o=>LTe(FTe(r,i.start),r,t,o,t.preferences));return a.length===0?void 0:[js(VB,a,p.Implement_inherited_abstract_class,VB,p.Implement_all_inherited_abstract_classes)]},fixIds:[VB],getAllCodeActions:function(t){const r=new Map;return Ya(t,zee,(i,a)=>{const o=FTe(a.file,a.start);td(r,Ra(o))&<e(o,t.sourceFile,t,i,t.preferences)})}})}});function MTe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function RTe(e,t){const r=Ui(e,t);if(r.kind!==110)return;const i=df(r),a=BTe(i.body);return a&&!a.expression.arguments.some(o=>kr(o)&&o.expression===r)?{constructor:i,superCall:a}:void 0}function BTe(e){return ql(e)&&m6(e.expression)?e:Cs(e)?void 0:bs(e,BTe)}var UB,Vee,oVe=Rt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){Wr(),Ks(),UB="classSuperMustPrecedeThisAccess",Vee=[p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],$s({errorCodes:Vee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=RTe(t,r.start);if(!i)return;const{constructor:a,superCall:o}=i,l=tr.ChangeTracker.with(e,u=>MTe(u,t,a,o));return[js(UB,l,p.Make_super_call_the_first_statement_in_the_constructor,UB,p.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[UB],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return Ya(e,Vee,(i,a)=>{const o=RTe(a.file,a.start);if(!o)return;const{constructor:l,superCall:u}=o;td(r,Ra(l.parent))&&MTe(i,t,l,u)})}})}});function jTe(e,t){const r=Ui(e,t);return E.assert(Cc(r.parent),"token should be at the constructor declaration"),r.parent}function JTe(e,t,r){const i=I.createExpressionStatement(I.createCallExpression(I.createSuper(),void 0,Ve));e.insertNodeAtConstructorStart(t,r,i)}var WB,Uee,cVe=Rt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){Wr(),Ks(),WB="constructorForDerivedNeedSuperCall",Uee=[p.Constructors_for_derived_classes_must_contain_a_super_call.code],$s({errorCodes:Uee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=jTe(t,r.start),a=tr.ChangeTracker.with(e,o=>JTe(o,t,i));return[js(WB,a,p.Add_missing_super_call,WB,p.Add_all_missing_super_calls)]},fixIds:[WB],getAllCodeActions:e=>Ya(e,Uee,(t,r)=>JTe(t,e.sourceFile,jTe(r.file,r.start)))})}});function zTe(e,t){Ste(e,t,"jsx",I.createStringLiteral("react"))}var Wee,qee,lVe=Rt({"src/services/codefixes/fixEnableJsxFlag.ts"(){Wr(),Ks(),Wee="fixEnableJsxFlag",qee=[p.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],$s({errorCodes:qee,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=tr.ChangeTracker.with(t,a=>zTe(a,r));return[Op(Wee,i,p.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Wee],getAllCodeActions:e=>Ya(e,qee,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&zTe(t,r)})})}});function VTe(e,t,r){const i=Or(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const a=Or(i.relatedInformation,l=>l.code===p.Did_you_mean_0.code);if(a===void 0||a.file===void 0||a.start===void 0||a.length===void 0)return;const o=Cte(a.file,yl(a.start,a.length));if(o!==void 0&&nt(o)&&rr(o.parent))return{suggestion:_Ve(a.messageText),expression:o.parent,arg:o}}function UTe(e,t,r,i){const a=I.createCallExpression(I.createPropertyAccessExpression(I.createIdentifier("Number"),I.createIdentifier("isNaN")),void 0,[r]),o=i.operatorToken.kind;e.replaceNode(t,i,o===38||o===36?I.createPrefixUnaryExpression(54,a):a)}function _Ve(e){const[t,r]=v1(e,` +`,0).match(/'(.*)'/)||[];return r}var qB,Hee,uVe=Rt({"src/services/codefixes/fixNaNEquality.ts"(){Wr(),Ks(),qB="fixNaNEquality",Hee=[p.This_condition_will_always_return_0.code],$s({errorCodes:Hee,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,a=VTe(i,t,r);if(a===void 0)return;const{suggestion:o,expression:l,arg:u}=a,f=tr.ChangeTracker.with(e,g=>UTe(g,t,u,l));return[js(qB,f,[p.Use_0,o],qB,p.Use_Number_isNaN_in_all_conditions)]},fixIds:[qB],getAllCodeActions:e=>Ya(e,Hee,(t,r)=>{const i=VTe(e.program,r.file,yl(r.start,r.length));i&&UTe(t,r.file,i.arg,i.expression)})})}}),fVe=Rt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){Wr(),Ks(),$s({errorCodes:[p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const a=[],o=Ul(r);if(o>=5&&o<99){const g=tr.ChangeTracker.with(t,m=>{Ste(m,i,"module",I.createStringLiteral("esnext"))});a.push(Op("fixModuleOption",g,[p.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=Ia(r);if(u<4||u>99){const g=tr.ChangeTracker.with(t,m=>{if(!s3(i))return;const x=[["target",I.createStringLiteral("es2017")]];o===1&&x.push(["module",I.createStringLiteral("commonjs")]),xte(m,i,x)});a.push(Op("fixTargetOption",g,[p.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return a.length?a:void 0}})}});function WTe(e,t,r){e.replaceNode(t,r,I.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function qTe(e,t){return Bs(Ui(e,t).parent,nf)}var HB,Gee,pVe=Rt({"src/services/codefixes/fixPropertyAssignment.ts"(){Wr(),Ks(),HB="fixPropertyAssignment",Gee=[p.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],$s({errorCodes:Gee,fixIds:[HB],getCodeActions(e){const{sourceFile:t,span:r}=e,i=qTe(t,r.start),a=tr.ChangeTracker.with(e,o=>WTe(o,e.sourceFile,i));return[js(HB,a,[p.Change_0_to_1,"=",":"],HB,[p.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ya(e,Gee,(t,r)=>WTe(t,r.file,qTe(r.file,r.start)))})}});function HTe(e,t){const r=Ui(e,t),i=Pl(r).heritageClauses,a=i[0].getFirstToken();return a.kind===96?{extendsToken:a,heritageClauses:i}:void 0}function GTe(e,t,r,i){if(e.replaceNode(t,r,I.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const a=i[1].getFirstToken(),o=a.getFullStart();e.replaceRange(t,{pos:o,end:o},I.createToken(28));const l=t.text;let u=a.end;for(;uGTe(l,t,i,a));return[js(GB,o,p.Change_extends_to_implements,GB,p.Change_all_extended_interfaces_to_implements)]},fixIds:[GB],getAllCodeActions:e=>Ya(e,$ee,(t,r)=>{const i=HTe(r.file,r.start);i&>e(t,r.file,i.extendsToken,i.heritageClauses)})})}});function $Te(e,t,r){const i=Ui(e,t);if(we(i)||Ei(i))return{node:i,className:r===Xee?Pl(i).name.text:void 0}}function XTe(e,t,{node:r,className:i}){Bu(r),e.replaceNode(t,r,I.createPropertyAccessExpression(i?I.createIdentifier(i):I.createThis(),r))}var $B,Xee,Qee,mVe=Rt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){Wr(),Ks(),$B="forgottenThisPropertyAccess",Xee=p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Qee=[p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.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,Xee],$s({errorCodes:Qee,getCodeActions(e){const{sourceFile:t}=e,r=$Te(t,e.span.start,e.errorCode);if(!r)return;const i=tr.ChangeTracker.with(e,a=>XTe(a,t,r));return[js($B,i,[p.Add_0_to_unresolved_variable,r.className||"this"],$B,p.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[$B],getAllCodeActions:e=>Ya(e,Qee,(t,r)=>{const i=$Te(r.file,r.start,r.code);i&&XTe(t,e.sourceFile,i)})})}});function gVe(e){return oo(Kee,e)}function Yee(e,t,r,i,a){const o=r.getText()[i];if(!gVe(o))return;const l=a?Kee[o]:`{${G8(r,t,o)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var XB,CN,Zee,Kee,hVe=Rt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){Wr(),Ks(),XB="fixInvalidJsxCharacters_expression",CN="fixInvalidJsxCharacters_htmlEntity",Zee=[p.Unexpected_token_Did_you_mean_or_gt.code,p.Unexpected_token_Did_you_mean_or_rbrace.code],$s({errorCodes:Zee,fixIds:[XB,CN],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,a=tr.ChangeTracker.with(e,l=>Yee(l,r,t,i.start,!1)),o=tr.ChangeTracker.with(e,l=>Yee(l,r,t,i.start,!0));return[js(XB,a,p.Wrap_invalid_character_in_an_expression_container,XB,p.Wrap_all_invalid_characters_in_an_expression_container),js(CN,o,p.Convert_invalid_character_to_its_html_entity_code,CN,p.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ya(e,Zee,(t,r)=>Yee(t,e.preferences,r.file,r.start,e.fixId===CN))}}),Kee={">":">","}":"}"}}});function yVe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const a=tr.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,r,l=>l!==i));return js(EN,a,[p.Delete_unused_param_tag_0,t.getText(e.sourceFile)],EN,p.Delete_all_unused_param_tags)}function vVe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:a}){if(!Nn(i.parameters))return;const o=e.sourceFile,l=gy(i),u=new Set;for(const y of l)ad(y)&&we(y.name)&&u.add(y.name.escapedText);const f=cc(i.parameters,y=>we(y.name)&&!u.has(y.name.escapedText)?y.name.getText(o):void 0);if(f===void 0)return;const g=I.updateJSDocParameterTag(a,a.tagName,I.createIdentifier(f),a.isBracketed,a.typeExpression,a.isNameFirst,a.comment),m=tr.ChangeTracker.with(e,y=>y.replaceJSDocComment(o,r,an(l,x=>x===a?g:x)));return Op(ete,m,[p.Rename_param_tag_name_0_to_1,t.getText(o),f])}function QTe(e,t){const r=Ui(e,t);if(r.parent&&ad(r.parent)&&we(r.parent.name)){const i=r.parent,a=Vx(i),o=by(i);if(a&&o)return{jsDocHost:a,signature:o,name:r.parent.name,jsDocParameterTag:i}}}var EN,ete,tte,bVe=Rt({"src/services/codefixes/fixUnmatchedParameter.ts"(){Wr(),Ks(),EN="deleteUnmatchedParameter",ete="renameUnmatchedParameter",tte=[p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],$s({fixIds:[EN,ete],errorCodes:tte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=[],o=QTe(r,i.start);if(o)return dn(a,yVe(t,o)),dn(a,vVe(t,o)),a},getAllCodeActions:function(t){const r=new Map;return US(tr.ChangeTracker.with(t,i=>{WS(t,tte,({file:a,start:o})=>{const l=QTe(a,o);l&&r.set(l.signature,dn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((a,o)=>{if(t.fixId===EN){const l=new Set(a);i.filterJSDocTags(o.getSourceFile(),o,u=>!l.has(u))}})}))}})}});function TVe(e,t,r){const i=Hr(Ui(e,r),we);if(!i||i.parent.kind!==183)return;const o=t.getTypeChecker().getSymbolAtLocation(i);return Or((o==null?void 0:o.declarations)||Ve,Kp(Sm,vu,Hl))}function xVe(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}const a=r.kind===273?r:r.parent.parent;if(a.name&&a.namedBindings)return;const o=i.getTypeChecker();q9(a,u=>{if(au(u.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,156,a)}function SVe(e,t,r,i){JS.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var QB,YTe,kVe=Rt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){Wr(),Ks(),QB="fixUnreferenceableDecoratorMetadata",YTe=[p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],$s({errorCodes:YTe,getCodeActions:e=>{const t=TVe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=tr.ChangeTracker.with(e,o=>t.kind===276&&SVe(o,e.sourceFile,t,e.program)),i=tr.ChangeTracker.with(e,o=>xVe(o,e.sourceFile,t,e.program));let a;return r.length&&(a=dn(a,Op(QB,r,p.Convert_named_imports_to_namespace_import))),i.length&&(a=dn(a,Op(QB,i,p.Use_import_type))),a},fixIds:[QB]})}});function ZTe(e,t,r){e.replaceNode(t,r.parent,I.createKeywordTypeNode(159))}function mE(e,t){return js(gE,e,t,KB,p.Delete_all_unused_declarations)}function KTe(e,t,r){e.delete(t,E.checkDefined(Bs(r.parent,BW).typeParameters,"The type parameter to delete should exist"))}function nte(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function exe(e){return e.kind===102?Hr(e.parent,bl):void 0}function txe(e,t){return ml(t.parent)&&wa(t.parent.getChildren(e))===t}function nxe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function CVe(e,t,r){pn(r.elements,i=>e.delete(t,i))}function EVe(e,t,r,{parent:i}){if(Ri(i)&&i.initializer&&Qv(i.initializer))if(ml(i.parent)&&Nn(i.parent.declarations)>1){const a=i.parent.parent,o=a.getStart(r),l=a.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:s0(e.host,e.formatContext.options)+r.text.slice(BM(r.text,o-1),o),suffix:U5(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function rxe(e,t,r,i){t!==p.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Bs(i.parent,lS).typeParameter.name),we(i)&&wVe(i)&&(e.replaceNode(r,i,I.createIdentifier(`_${i.text}`)),rs(i.parent)&&e6(i.parent).forEach(a=>{we(a.name)&&e.replaceNode(r,a.name,I.createIdentifier(`_${a.name.text}`))})))}function wVe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function YB(e,t,r,i,a,o,l,u){DVe(t,r,e,i,a,o,l,u),we(t)&&Oo.Core.eachSymbolReferenceInFile(t,i,e,f=>{kr(f.parent)&&f.parent.name===f&&(f=f.parent),!u&&IVe(f)&&r.delete(e,f.parent.parent)})}function DVe(e,t,r,i,a,o,l,u){const{parent:f}=e;if(rs(f))AVe(t,r,f,i,a,o,l,u);else if(!(u&&we(e)&&Oo.Core.isSymbolReferencedInFile(e,i,r))){const g=Sm(f)?e:Ga(f)?f.parent:f;E.assert(g!==r,"should not delete whole source file"),t.delete(r,g)}}function AVe(e,t,r,i,a,o,l,u=!1){if(NVe(i,t,r,a,o,l,u))if(r.modifiers&&r.modifiers.length>0&&(!we(r.name)||Oo.Core.isSymbolReferencedInFile(r.name,i,t)))for(const f of r.modifiers)Zs(f)&&e.deleteModifier(t,f);else!r.initializer&&ixe(r,i,a)&&e.delete(t,r)}function ixe(e,t,r){const i=e.parent.parameters.indexOf(e);return!Oo.Core.someSignatureUsage(e.parent,r,t,(a,o)=>!o||o.arguments.length>i)}function NVe(e,t,r,i,a,o,l){const{parent:u}=r;switch(u.kind){case 174:case 176:const f=u.parameters.indexOf(r),g=kc(u)?u.name:u,m=Oo.Core.getReferencedSymbolsForNode(u.pos,g,a,i,o);if(m){for(const y of m)for(const x of y.references)if(x.kind===Oo.EntryKind.Node){const k=e8(x.node)&&Js(x.node.parent)&&x.node.parent.arguments.length>f,C=kr(x.node.parent)&&e8(x.node.parent.expression)&&Js(x.node.parent.parent)&&x.node.parent.parent.arguments.length>f,N=(kc(x.node.parent)||ag(x.node.parent))&&x.node.parent!==r.parent&&x.node.parent.parameters.length>f;if(k||C||N)return!1}}return!0;case 262:return u.name&&PVe(e,t,u.name)?sxe(u,r,l):!0;case 218:case 219:return sxe(u,r,l);case 178:return!1;case 177:return!0;default:return E.failBadSyntaxKind(u)}}function PVe(e,t,r){return!!Oo.Core.eachSymbolReferenceInFile(r,e,t,i=>we(i)&&Js(i.parent)&&i.parent.arguments.indexOf(i)>=0)}function sxe(e,t,r){const i=e.parameters,a=i.indexOf(t);return E.assert(a!==-1,"The parameter should already be in the list"),r?i.slice(a+1).every(o=>we(o.name)&&!o.symbol.isReferenced):a===i.length-1}function IVe(e){return(rr(e.parent)&&e.parent.left===e||(KH(e.parent)||Ny(e.parent))&&e.parent.operand===e)&&ql(e.parent.parent)}var gE,ZB,KB,wN,ej,rte,OVe=Rt({"src/services/codefixes/fixUnusedIdentifier.ts"(){Wr(),Ks(),gE="unusedIdentifier",ZB="unusedIdentifier_prefix",KB="unusedIdentifier_delete",wN="unusedIdentifier_deleteImports",ej="unusedIdentifier_infer",rte=[p._0_is_declared_but_its_value_is_never_read.code,p._0_is_declared_but_never_used.code,p.Property_0_is_declared_but_its_value_is_never_read.code,p.All_imports_in_import_declaration_are_unused.code,p.All_destructured_elements_are_unused.code,p.All_variables_are_unused.code,p.All_type_parameters_are_unused.code],$s({errorCodes:rte,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:a}=e,o=i.getTypeChecker(),l=i.getSourceFiles(),u=Ui(r,e.span.start);if(od(u))return[mE(tr.ChangeTracker.with(e,y=>y.delete(r,u)),p.Remove_template_tag)];if(u.kind===30){const y=tr.ChangeTracker.with(e,x=>KTe(x,r,u));return[mE(y,p.Remove_type_parameters)]}const f=exe(u);if(f){const y=tr.ChangeTracker.with(e,x=>x.delete(r,f));return[js(gE,y,[p.Remove_import_from_0,Z_e(f)],wN,p.Delete_all_unused_imports)]}else if(nte(u)){const y=tr.ChangeTracker.with(e,x=>YB(r,u,x,o,l,i,a,!1));if(y.length)return[js(gE,y,[p.Remove_unused_declaration_for_Colon_0,u.getText(r)],wN,p.Delete_all_unused_imports)]}if(rd(u.parent)||pS(u.parent)){if(rs(u.parent.parent)){const y=u.parent.elements,x=[y.length>1?p.Remove_unused_declarations_for_Colon_0:p.Remove_unused_declaration_for_Colon_0,an(y,k=>k.getText(r)).join(", ")];return[mE(tr.ChangeTracker.with(e,k=>CVe(k,r,u.parent)),x)]}return[mE(tr.ChangeTracker.with(e,y=>EVe(e,y,r,u.parent)),p.Remove_unused_destructuring_declaration)]}if(txe(r,u))return[mE(tr.ChangeTracker.with(e,y=>nxe(y,r,u.parent)),p.Remove_variable_statement)];const g=[];if(u.kind===140){const y=tr.ChangeTracker.with(e,k=>ZTe(k,r,u)),x=Bs(u.parent,lS).typeParameter.name.text;g.push(js(gE,y,[p.Replace_infer_0_with_unknown,x],ej,p.Replace_all_unused_infer_with_unknown))}else{const y=tr.ChangeTracker.with(e,x=>YB(r,u,x,o,l,i,a,!1));if(y.length){const x=Ga(u.parent)?u.parent:u;g.push(mE(y,[p.Remove_unused_declaration_for_Colon_0,x.getText(r)]))}}const m=tr.ChangeTracker.with(e,y=>rxe(y,t,r,u));return m.length&&g.push(js(gE,m,[p.Prefix_0_with_an_underscore,u.getText(r)],ZB,p.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[ZB,KB,wN,ej],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,a=r.getTypeChecker(),o=r.getSourceFiles();return Ya(e,rte,(l,u)=>{const f=Ui(t,u.start);switch(e.fixId){case ZB:rxe(l,u.code,t,f);break;case wN:{const g=exe(f);g?l.delete(t,g):nte(f)&&YB(t,f,l,a,o,r,i,!0);break}case KB:{if(f.kind===140||nte(f))break;if(od(f))l.delete(t,f);else if(f.kind===30)KTe(l,t,f);else if(rd(f.parent)){if(f.parent.parent.initializer)break;(!rs(f.parent.parent)||ixe(f.parent.parent,a,o))&&l.delete(t,f.parent.parent)}else{if(pS(f.parent.parent)&&f.parent.parent.parent.initializer)break;txe(t,f)?nxe(l,t,f.parent):YB(t,f,l,a,o,r,i,!0)}break}case ej:f.kind===140&&ZTe(l,t,f);break;default:E.fail(JSON.stringify(e.fixId))}})}})}});function axe(e,t,r,i,a){const o=Ui(t,r),l=In(o,Fi);if(l.getStart(t)!==o.getStart(t)){const f=JSON.stringify({statementKind:E.formatSyntaxKind(l.kind),tokenKind:E.formatSyntaxKind(o.kind),errorCode:a,start:r,length:i});E.fail("Token and statement should start at the same point. "+f)}const u=(vs(l.parent)?l.parent:l).parent;if(!vs(l.parent)||l===wa(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(vs(l.parent))break;e.replaceNode(t,l,I.createBlock(Ve));return}case 247:case 248:e.delete(t,u);return}if(vs(l.parent)){const f=r+i,g=E.checkDefined(FVe(eH(l.parent.statements,l),m=>m.posaxe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[js(tj,r,p.Remove_unreachable_code,tj,p.Remove_all_unreachable_code)]},fixIds:[tj],getAllCodeActions:e=>Ya(e,ite,(t,r)=>axe(t,r.file,r.start,r.length,r.code))})}});function oxe(e,t,r){const i=Ui(t,r),a=Bs(i.parent,m2),o=i.getStart(t),l=a.statement.getStart(t),u=np(o,l,t)?l:_a(t.text,$a(a,59,t).end,!0);e.deleteRange(t,{pos:o,end:u})}var nj,ste,MVe=Rt({"src/services/codefixes/fixUnusedLabel.ts"(){Wr(),Ks(),nj="fixUnusedLabel",ste=[p.Unused_label.code],$s({errorCodes:ste,getCodeActions(e){const t=tr.ChangeTracker.with(e,r=>oxe(r,e.sourceFile,e.span.start));return[js(nj,t,p.Remove_unused_label,nj,p.Remove_all_unused_labels)]},fixIds:[nj],getAllCodeActions:e=>Ya(e,ste,(t,r)=>oxe(t,r.file,r.start))})}});function cxe(e,t,r,i,a){e.replaceNode(t,r,a.typeToTypeNode(i,r,void 0))}function lxe(e,t,r){const i=In(Ui(e,t),RVe),a=i&&i.type;return a&&{typeNode:a,type:BVe(r,a)}}function RVe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function BVe(e,t){if(n4(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(dn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var ate,rj,ote,jVe=Rt({"src/services/codefixes/fixJSDocTypes.ts"(){Wr(),Ks(),ate="fixJSDocTypes_plain",rj="fixJSDocTypes_nullable",ote=[p.JSDoc_types_can_only_be_used_inside_documentation_comments.code,p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],$s({errorCodes:ote,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=lxe(t,e.span.start,r);if(!i)return;const{typeNode:a,type:o}=i,l=a.getText(t),u=[f(o,ate,p.Change_all_jsdoc_style_types_to_TypeScript)];return a.kind===321&&u.push(f(o,rj,p.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function f(g,m,y){const x=tr.ChangeTracker.with(e,k=>cxe(k,t,a,g,r));return js("jdocTypes",x,[p.Change_0_to_1,l,r.typeToString(g)],m,y)}},fixIds:[ate,rj],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,a=r.getTypeChecker();return Ya(e,ote,(o,l)=>{const u=lxe(l.file,l.start,a);if(!u)return;const{typeNode:f,type:g}=u,m=f.kind===321&&t===rj?a.getNullableType(g,32768):g;cxe(o,i,f,m,a)})}})}});function _xe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function uxe(e,t){const r=Ui(e,t);if(kr(r.parent)){let i=r.parent;for(;kr(i.parent);)i=i.parent;return i.name}if(we(r))return r}var ij,cte,JVe=Rt({"src/services/codefixes/fixMissingCallParentheses.ts"(){Wr(),Ks(),ij="fixMissingCallParentheses",cte=[p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],$s({errorCodes:cte,fixIds:[ij],getCodeActions(e){const{sourceFile:t,span:r}=e,i=uxe(t,r.start);if(!i)return;const a=tr.ChangeTracker.with(e,o=>_xe(o,e.sourceFile,i));return[js(ij,a,p.Add_missing_call_parentheses,ij,p.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ya(e,cte,(t,r)=>{const i=uxe(r.file,r.start);i&&_xe(t,r.file,i)})})}});function zVe(e){if(e.type)return e.type;if(Ri(e.parent)&&e.parent.type&&og(e.parent.type))return e.parent.type.type}function fxe(e,t){const r=Ui(e,t),i=df(r);if(!i)return;let a;switch(i.kind){case 174:a=i.name;break;case 262:case 218:a=$a(i,100,e);break;case 219:const o=i.typeParameters?30:21;a=$a(i,o,e)||wa(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:zVe(i)}}function pxe(e,t,{insertBefore:r,returnType:i}){if(i){const a=Vw(i);(!a||a.kind!==80||a.text!=="Promise")&&e.replaceNode(t,i,I.createTypeReferenceNode("Promise",I.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var sj,lte,VVe=Rt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){Wr(),Ks(),sj="fixAwaitInSyncFunction",lte=[p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],$s({errorCodes:lte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=fxe(t,r.start);if(!i)return;const a=tr.ChangeTracker.with(e,o=>pxe(o,t,i));return[js(sj,a,p.Add_async_modifier_to_containing_function,sj,p.Add_all_missing_async_modifiers)]},fixIds:[sj],getAllCodeActions:function(t){const r=new Map;return Ya(t,lte,(i,a)=>{const o=fxe(a.file,a.start);!o||!td(r,Ra(o.insertBefore))||pxe(i,t.sourceFile,o)})}})}});function dxe(e,t,r,i,a){let o,l;if(i===p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,l=t+r;else if(i===p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=a.program.getTypeChecker(),f=Ui(e,t).parent;E.assert(t1(f),"error span of fixPropertyOverrideAccessor should only be on an accessor");const g=f.parent;E.assert(ni(g),"erroneous accessors should only be inside classes");const m=om(wte(g,u));if(!m)return[];const y=Oi(f6(f.name)),x=u.getPropertyOfType(u.getTypeAtLocation(m),y);if(!x||!x.valueDeclaration)return[];o=x.valueDeclaration.pos,l=x.valueDeclaration.end,e=Rn(x.valueDeclaration)}else E.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return Axe(e,a.program,o,l,a,p.Generate_get_and_set_accessors.message)}var _te,aj,UVe=Rt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){Wr(),Ks(),_te=[p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],aj="fixPropertyOverrideAccessor",$s({errorCodes:_te,getCodeActions(e){const t=dxe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[js(aj,t,p.Generate_get_and_set_accessors,aj,p.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[aj],getAllCodeActions:e=>Ya(e,_te,(t,r)=>{const i=dxe(r.file,r.start,r.length,r.code,e);if(i)for(const a of i)t.pushRaw(e.sourceFile,a)})})}});function WVe(e,t){switch(e){case p.Parameter_0_implicitly_has_an_1_type.code:case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Fu(df(t))?p.Infer_type_of_0_from_usage:p.Infer_parameter_types_from_usage;case p.Rest_parameter_0_implicitly_has_an_any_type.code:case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Infer_parameter_types_from_usage;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return p.Infer_this_type_of_0_from_usage;default:return p.Infer_type_of_0_from_usage}}function qVe(e){switch(e){case p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_an_1_type.code;case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Parameter_0_implicitly_has_an_1_type.code;case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Rest_parameter_0_implicitly_has_an_any_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Member_0_implicitly_has_an_1_type.code}return e}function mxe(e,t,r,i,a,o,l,u,f){if(!QC(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:g}=r,m=AT(t,a,f,u);switch(i=qVe(i),i){case p.Member_0_implicitly_has_an_1_type.code:case p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Ri(g)&&l(g)||Fs(g)||mf(g))return gxe(e,m,t,g,a,u,o),m.writeFixes(e),g;if(kr(g)){const k=hE(g.name,a,o),C=$8(k,g,a,u);if(C){const N=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(C),void 0);e.addJSDocTags(t,Bs(g.parent.parent,ql),[N])}return m.writeFixes(e),g}return;case p.Variable_0_implicitly_has_an_1_type.code:{const k=a.getTypeChecker().getSymbolAtLocation(r);return k&&k.valueDeclaration&&Ri(k.valueDeclaration)&&l(k.valueDeclaration)?(gxe(e,m,Rn(k.valueDeclaration),k.valueDeclaration,a,u,o),m.writeFixes(e),k.valueDeclaration):void 0}}const y=df(r);if(y===void 0)return;let x;switch(i){case p.Parameter_0_implicitly_has_an_1_type.code:if(Fu(y)){hxe(e,m,t,y,a,u,o),x=y;break}case p.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){const k=Bs(g,rs);HVe(e,m,t,k,y,a,u,o),x=k}break;case p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:gf(y)&&we(y.name)&&(oj(e,m,t,y,hE(y.name,a,o),a,u),x=y);break;case p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Fu(y)&&(hxe(e,m,t,y,a,u,o),x=y);break;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:tr.isThisTypeAnnotatable(y)&&l(y)&&(GVe(e,t,y,a,u,o),x=y);break;default:return E.fail(String(i))}return m.writeFixes(e),x}function gxe(e,t,r,i,a,o,l){we(i.name)&&oj(e,t,r,i,hE(i.name,a,l),a,o)}function HVe(e,t,r,i,a,o,l,u){if(!we(i.name))return;const f=QVe(a,r,o,u);if(E.assert(a.parameters.length===f.length,"Parameter count and inference count should match"),Kn(a))yxe(e,r,f,o,l);else{const g=Po(a)&&!$a(a,21,r);g&&e.insertNodeBefore(r,wa(a.parameters),I.createToken(21));for(const{declaration:m,type:y}of f)m&&!m.type&&!m.initializer&&oj(e,t,r,m,y,o,l);g&&e.insertNodeAfter(r,ka(a.parameters),I.createToken(22))}}function GVe(e,t,r,i,a,o){const l=vxe(r,t,i,o);if(!l||!l.length)return;const u=fte(i,l,o).thisParameter(),f=$8(u,r,i,a);!f||(Kn(r)?$Ve(e,t,r,f):e.tryInsertThisTypeAnnotation(t,r,f))}function $Ve(e,t,r,i){e.addJSDocTags(t,r,[I.createJSDocThisTag(void 0,I.createJSDocTypeExpression(i))])}function hxe(e,t,r,i,a,o,l){const u=wl(i.parameters);if(u&&we(i.name)&&we(u.name)){let f=hE(i.name,a,l);f===a.getTypeChecker().getAnyType()&&(f=hE(u.name,a,l)),Kn(i)?yxe(e,r,[{declaration:u,type:f}],a,o):oj(e,t,r,u,f,a,o)}}function oj(e,t,r,i,a,o,l){const u=$8(a,i,o,l);if(u)if(Kn(r)&&i.kind!==171){const f=Ri(i)?Hr(i.parent.parent,ic):i;if(!f)return;const g=I.createJSDocTypeExpression(u),m=gf(i)?I.createJSDocReturnTag(void 0,g,void 0):I.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(r,f,[m])}else XVe(u,i,r,e,t,Ia(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function XVe(e,t,r,i,a,o){const l=PT(e,o);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(pn(l.symbols,u=>a.addImportFromExportedSymbol(u,!0)),!0):!1}function yxe(e,t,r,i,a){const o=r.length&&r[0].declaration.parent;if(!o)return;const l=Hi(r,u=>{const f=u.declaration;if(f.initializer||my(f)||!we(f.name))return;const g=u.type&&$8(u.type,f,i,a);if(g){const m=I.cloneNode(f.name);return Xn(m,7168),{name:I.cloneNode(f.name),param:f,isOptional:!!u.isOptional,typeNode:g}}});if(!!l.length)if(Po(o)||_o(o)){const u=Po(o)&&!$a(o,21,t);u&&e.insertNodeBefore(t,wa(o.parameters),I.createToken(21)),pn(l,({typeNode:f,param:g})=>{const m=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(f)),y=I.createJSDocComment(void 0,[m]);e.insertNodeAt(t,g.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,ka(o.parameters),I.createToken(22))}else{const u=an(l,({name:f,typeNode:g,isOptional:m})=>I.createJSDocParameterTag(void 0,f,!!m,I.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,o,u)}}function ute(e,t,r){return Hi(Oo.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Oo.EntryKind.Span?Hr(i.node,we):void 0)}function hE(e,t,r){const i=ute(e,t,r);return fte(t,i,r).single()}function QVe(e,t,r,i){const a=vxe(e,t,r,i);return a&&fte(r,a,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:we(o.name)?hE(o.name,r,i):r.getTypeChecker().getAnyType()}))}function vxe(e,t,r,i){let a;switch(e.kind){case 176:a=$a(e,137,t);break;case 219:case 218:const o=e.parent;a=(Ri(o)||Fs(o))&&we(o.name)?o.name:e.name;break;case 262:case 174:case 173:a=e.name;break}if(!!a)return ute(a,r,i)}function fte(e,t,r){const i=e.getTypeChecker(),a={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:be=>i.createArrayType(be),Promise:be=>i.createPromiseType(be)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:f,parameters:g,thisParameter:m};function l(){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 u(be){const xe=new Map;for(const ct of be)ct.properties&&ct.properties.forEach((pe,Pe)=>{xe.has(Pe)||xe.set(Pe,[]),xe.get(Pe).push(pe)});const rt=new Map;return xe.forEach((ct,pe)=>{rt.set(pe,u(ct))}),{isNumber:be.some(ct=>ct.isNumber),isString:be.some(ct=>ct.isString),isNumberOrString:be.some(ct=>ct.isNumberOrString),candidateTypes:Na(be,ct=>ct.candidateTypes),properties:rt,calls:Na(be,ct=>ct.calls),constructs:Na(be,ct=>ct.constructs),numberIndex:pn(be,ct=>ct.numberIndex),stringIndex:pn(be,ct=>ct.stringIndex),candidateThisTypes:Na(be,ct=>ct.candidateThisTypes),inferredTypes:void 0}}function f(){return oe(y(t))}function g(be){if(t.length===0||!be.parameters)return;const xe=l();for(const ct of t)r.throwIfCancellationRequested(),x(ct,xe);const rt=[...xe.constructs||[],...xe.calls||[]];return be.parameters.map((ct,pe)=>{const Pe=[],Ge=Zm(ct);let tt=!1;for(const Je of rt)if(Je.argumentTypes.length<=pe)tt=Kn(be),Pe.push(i.getUndefinedType());else if(Ge)for(let ot=pe;otrt.every(pe=>!pe(ct)))}function Z(be){return oe(X(be))}function oe(be){if(!be.length)return i.getAnyType();const xe=i.getUnionType([i.getStringType(),i.getNumberType()]);let ct=R(be,[{high:Pe=>Pe===i.getStringType()||Pe===i.getNumberType(),low:Pe=>Pe===xe},{high:Pe=>!(Pe.flags&16385),low:Pe=>!!(Pe.flags&16385)},{high:Pe=>!(Pe.flags&114689)&&!(Rr(Pe)&16),low:Pe=>!!(Rr(Pe)&16)}]);const pe=ct.filter(Pe=>Rr(Pe)&16);return pe.length&&(ct=ct.filter(Pe=>!(Rr(Pe)&16)),ct.push(_e(pe))),i.getWidenedType(i.getUnionType(ct.map(i.getBaseTypeOfLiteralType),2))}function _e(be){if(be.length===1)return be[0];const xe=[],rt=[],ct=[],pe=[];let Pe=!1,Ge=!1;const tt=Xf();for(const ot of be){for(const bt of i.getPropertiesOfType(ot))tt.add(bt.escapedName,bt.valueDeclaration?i.getTypeOfSymbolAtLocation(bt,bt.valueDeclaration):i.getAnyType());xe.push(...i.getSignaturesOfType(ot,0)),rt.push(...i.getSignaturesOfType(ot,1));const Jt=i.getIndexInfoOfType(ot,0);Jt&&(ct.push(Jt.type),Pe=Pe||Jt.isReadonly);const Pt=i.getIndexInfoOfType(ot,1);Pt&&(pe.push(Pt.type),Ge=Ge||Pt.isReadonly)}const mt=eoe(tt,(ot,Jt)=>{const Pt=Jt.lengthi.getBaseTypeOfLiteralType(tt)),Ge=(ct=be.calls)!=null&&ct.length?H(be):void 0;return Ge&&Pe?pe.push(i.getUnionType([Ge,...Pe],2)):(Ge&&pe.push(Ge),Nn(Pe)&&pe.push(...Pe)),pe.push(...Q(be)),pe}function H(be){const xe=new Map;be.properties&&be.properties.forEach((Pe,Ge)=>{const tt=i.createSymbol(4,Ge);tt.links.type=Z(Pe),xe.set(Ge,tt)});const rt=be.calls?[De(be.calls)]:[],ct=be.constructs?[De(be.constructs)]:[],pe=be.stringIndex?[i.createIndexInfo(i.getStringType(),Z(be.stringIndex),!1)]:[];return i.createAnonymousType(void 0,xe,rt,ct,pe)}function Q(be){if(!be.properties||!be.properties.size)return[];const xe=o.filter(rt=>ne(rt,be));return 0ue(rt,be)):[]}function ne(be,xe){return xe.properties?!Au(xe.properties,(rt,ct)=>{const pe=i.getTypeOfPropertyOfType(be,ct);return pe?rt.calls?!i.getSignaturesOfType(pe,0).length||!i.isTypeAssignableTo(pe,Ne(rt.calls)):!i.isTypeAssignableTo(pe,Z(rt)):!0}):!1}function ue(be,xe){if(!(Rr(be)&4)||!xe.properties)return be;const rt=be.target,ct=om(rt.typeParameters);if(!ct)return be;const pe=[];return xe.properties.forEach((Pe,Ge)=>{const tt=i.getTypeOfPropertyOfType(rt,Ge);E.assert(!!tt,"generic should have all the properties of its reference."),pe.push(...fe(tt,Z(Pe),ct))}),a[be.symbol.escapedName](oe(pe))}function fe(be,xe,rt){if(be===rt)return[xe];if(be.flags&3145728)return Na(be.types,Pe=>fe(Pe,xe,rt));if(Rr(be)&4&&Rr(xe)&4){const Pe=i.getTypeArguments(be),Ge=i.getTypeArguments(xe),tt=[];if(Pe&&Ge)for(let mt=0;mtpe.argumentTypes.length));for(let pe=0;peGe.argumentTypes[pe]||i.getUndefinedType())),be.some(Ge=>Ge.argumentTypes[pe]===void 0)&&(Pe.flags|=16777216),xe.push(Pe)}const ct=Z(u(be.map(pe=>pe.return_)));return i.createSignature(void 0,void 0,void 0,xe,ct,void 0,rt,0)}function Xe(be,xe){xe&&!(xe.flags&1)&&!(xe.flags&131072)&&(be.candidateTypes||(be.candidateTypes=[])).push(xe)}function ve(be,xe){xe&&!(xe.flags&1)&&!(xe.flags&131072)&&(be.candidateThisTypes||(be.candidateThisTypes=[])).push(xe)}}var cj,pte,YVe=Rt({"src/services/codefixes/inferFromUsage.ts"(){Wr(),Ks(),cj="inferFromUsage",pte=[p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,p.Variable_0_implicitly_has_an_1_type.code,p.Parameter_0_implicitly_has_an_1_type.code,p.Rest_parameter_0_implicitly_has_an_any_type.code,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,p.Member_0_implicitly_has_an_1_type.code,p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],$s({errorCodes:pte,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:a,cancellationToken:o,host:l,preferences:u}=e,f=Ui(t,i);let g;const m=tr.ChangeTracker.with(e,x=>{g=mxe(x,t,f,a,r,o,oy,l,u)}),y=g&&os(g);return!y||m.length===0?void 0:[js(cj,m,[WVe(a,f),el(y)],cj,p.Infer_all_types_from_usage)]},fixIds:[cj],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:a,preferences:o}=e,l=IS();return Ya(e,pte,(u,f)=>{mxe(u,t,Ui(f.file,f.start),f.code,r,i,l,a,o)})}})}});function bxe(e,t,r){if(Kn(e))return;const i=Ui(e,r),a=In(i,Eo),o=a==null?void 0:a.type;if(!o)return;const l=t.getTypeFromTypeNode(o),u=t.getAwaitedType(l)||t.getVoidType(),f=t.typeToTypeNode(u,o,void 0);if(f)return{returnTypeNode:o,returnType:l,promisedTypeNode:f,promisedType:u}}function Txe(e,t,r,i){e.replaceNode(t,r,I.createTypeReferenceNode("Promise",[i]))}var lj,dte,ZVe=Rt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){Wr(),Ks(),lj="fixReturnTypeInAsyncFunction",dte=[p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],$s({errorCodes:dte,fixIds:[lj],getCodeActions:function(t){const{sourceFile:r,program:i,span:a}=t,o=i.getTypeChecker(),l=bxe(r,i.getTypeChecker(),a.start);if(!l)return;const{returnTypeNode:u,returnType:f,promisedTypeNode:g,promisedType:m}=l,y=tr.ChangeTracker.with(t,x=>Txe(x,r,u,g));return[js(lj,y,[p.Replace_0_with_Promise_1,o.typeToString(f),o.typeToString(m)],lj,p.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ya(e,dte,(t,r)=>{const i=bxe(r.file,e.program.getTypeChecker(),r.start);i&&Txe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function xxe(e,t,r,i){const{line:a}=yo(t,r);(!i||Rv(i,a))&&e.insertCommentBeforeLine(t,a,r," @ts-ignore")}var mte,gte,hte,KVe=Rt({"src/services/codefixes/disableJsDiagnostics.ts"(){Wr(),Ks(),mte="disableJsDiagnostics",gte="disableJsDiagnostics",hte=Hi(Object.keys(p),e=>{const t=p[e];return t.category===1?t.code:void 0}),$s({errorCodes:hte,getCodeActions:function(t){const{sourceFile:r,program:i,span:a,host:o,formatContext:l}=t;if(!Kn(r)||!LD(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":s0(o,l.options),f=[Op(mte,[A2e(r.fileName,[I5(r.checkJsDirective?ll(r.checkJsDirective.pos,r.checkJsDirective.end):yl(0,0),`// @ts-nocheck${u}`)])],p.Disable_checking_for_this_file)];return tr.isValidLocationToAddComment(r,a.start)&&f.unshift(js(mte,tr.ChangeTracker.with(t,g=>xxe(g,r,a.start)),p.Ignore_this_error_message,gte,p.Add_ts_ignore_to_all_error_messages)),f},fixIds:[gte],getAllCodeActions:e=>{const t=new Set;return Ya(e,hte,(r,i)=>{tr.isValidLocationToAddComment(i.file,i.start)&&xxe(r,i.file,i.start,t)})}})}});function yte(e,t,r,i,a,o,l){const u=e.symbol.members;for(const f of t)u.has(f.escapedName)||Sxe(f,e,r,i,a,o,l,void 0)}function HS(e){return{trackSymbol:()=>!1,moduleResolverHost:OY(e.program,e.host)}}function Sxe(e,t,r,i,a,o,l,u,f=3,g=!1){var ne;const m=e.getDeclarations(),y=wl(m),x=i.program.getTypeChecker(),k=Ia(i.program.getCompilerOptions()),C=(ne=y==null?void 0:y.kind)!=null?ne:171,N=Q(e,y),D=y?I_(y):0;let M=D&32;M|=D&4?4:D&16?16:0,y&&nu(y)&&(M|=128);const V=Z(),U=x.getWidenedType(x.getTypeOfSymbolAtLocation(e,t)),Y=!!(e.flags&16777216),j=!!(t.flags&33554432)||g,ee=Rf(r,a);switch(C){case 171:case 172:const ue=ee===0?268435456:void 0;let fe=x.typeToTypeNode(U,t,ue,HS(i));if(o){const Ne=PT(fe,k);Ne&&(fe=Ne.typeNode,GS(o,Ne.symbols))}l(I.createPropertyDeclaration(V,y?_e(N):e.getName(),Y&&f&2?I.createToken(58):void 0,fe,void 0));break;case 177:case 178:{E.assertIsDefined(m);let Ne=x.typeToTypeNode(U,t,void 0,HS(i));const De=Hb(m,y),Xe=De.secondAccessor?[De.firstAccessor,De.secondAccessor]:[De.firstAccessor];if(o){const ve=PT(Ne,k);ve&&(Ne=ve.typeNode,GS(o,ve.symbols))}for(const ve of Xe)if(gf(ve))l(I.createGetAccessorDeclaration(V,_e(N),Ve,H(Ne),X(u,ee,j)));else{E.assertNode(ve,Fu,"The counterpart to a getter should be a setter");const be=b3(ve),xe=be&&we(be.name)?lr(be.name):void 0;l(I.createSetAccessorDeclaration(V,_e(N),bte(1,[xe],[H(Ne)],1,!1),X(u,ee,j)))}break}case 173:case 174:E.assertIsDefined(m);const G=U.isUnion()?Na(U.types,Ne=>Ne.getCallSignatures()):U.getCallSignatures();if(!dt(G))break;if(m.length===1){E.assert(G.length===1,"One declaration implies one signature");const Ne=G[0];R(ee,Ne,V,_e(N),X(u,ee,j));break}for(const Ne of G)R(ee,Ne,V,_e(N));if(!j)if(m.length>G.length){const Ne=x.getSignatureFromDeclaration(m[m.length-1]);R(ee,Ne,V,_e(N),X(u,ee))}else E.assert(m.length===G.length,"Declarations and signatures should match count"),l(nUe(x,i,t,G,_e(N),Y&&!!(f&1),V,ee,u));break}function R(ue,fe,G,Ne,De){const Xe=_j(174,i,ue,fe,De,Ne,G,Y&&!!(f&1),t,o);Xe&&l(Xe)}function Z(){let ue;return M&&(ue=Wk(ue,I.createModifiersFromModifierFlags(M))),oe()&&(ue=dn(ue,I.createToken(164))),ue&&I.createNodeArray(ue)}function oe(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&l2(y))}function _e(ue){return we(ue)&&ue.escapedText==="constructor"?I.createComputedPropertyName(I.createStringLiteral(lr(ue),ee===0)):Io(ue,!1)}function X(ue,fe,G){return G?void 0:Io(ue,!1)||Tte(fe)}function H(ue){return Io(ue,!1)}function Q(ue,fe){if(rc(ue)&262144){const G=ue.links.nameType;if(G&&ip(G))return I.createIdentifier(Oi(sp(G)))}return Io(os(fe),!1)}}function _j(e,t,r,i,a,o,l,u,f,g){const m=t.program,y=m.getTypeChecker(),x=Ia(m.getCompilerOptions()),k=Kn(f),C=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,f,C,HS(t));if(!N)return;let D=k?void 0:N.typeParameters,M=N.parameters,V=k?void 0:N.type;if(g){if(D){const ee=cl(D,R=>{let Z=R.constraint,oe=R.default;if(Z){const _e=PT(Z,x);_e&&(Z=_e.typeNode,GS(g,_e.symbols))}if(oe){const _e=PT(oe,x);_e&&(oe=_e.typeNode,GS(g,_e.symbols))}return I.updateTypeParameterDeclaration(R,R.modifiers,R.name,Z,oe)});D!==ee&&(D=Ke(I.createNodeArray(ee,D.hasTrailingComma),D))}const j=cl(M,ee=>{let R=k?void 0:ee.type;if(R){const Z=PT(R,x);Z&&(R=Z.typeNode,GS(g,Z.symbols))}return I.updateParameterDeclaration(ee,ee.modifiers,ee.dotDotDotToken,ee.name,k?void 0:ee.questionToken,R,ee.initializer)});if(M!==j&&(M=Ke(I.createNodeArray(j,M.hasTrailingComma),M)),V){const ee=PT(V,x);ee&&(V=ee.typeNode,GS(g,ee.symbols))}}const U=u?I.createToken(58):void 0,Y=N.asteriskToken;if(_o(N))return I.updateFunctionExpression(N,l,N.asteriskToken,Hr(o,we),D,M,V,a!=null?a:N.body);if(Po(N))return I.updateArrowFunction(N,l,D,M,V,N.equalsGreaterThanToken,a!=null?a:N.body);if(kc(N))return I.updateMethodDeclaration(N,l,Y,o!=null?o:I.createIdentifier(""),U,D,M,V,a);if(tl(N))return I.updateFunctionDeclaration(N,l,N.asteriskToken,Hr(o,we),D,M,V,a!=null?a:N.body)}function vte(e,t,r,i,a,o,l){const u=Rf(t.sourceFile,t.preferences),f=Ia(t.program.getCompilerOptions()),g=HS(t),m=t.program.getTypeChecker(),y=Kn(l),{typeArguments:x,arguments:k,parent:C}=i,N=y?void 0:m.getContextualType(i),D=an(k,oe=>we(oe)?oe.text:kr(oe)&&we(oe.name)?oe.name.text:void 0),M=y?[]:an(k,oe=>m.getTypeAtLocation(oe)),{argumentTypeNodes:V,argumentTypeParameters:U}=Exe(m,r,M,l,f,1,g),Y=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,j=yF(C)?I.createToken(42):void 0,ee=y?void 0:eUe(m,U,x),R=bte(k.length,D,V,void 0,y),Z=y||N===void 0?void 0:m.typeToTypeNode(N,l,void 0,g);switch(e){case 174:return I.createMethodDeclaration(Y,j,a,void 0,ee,R,Z,Tte(u));case 173:return I.createMethodSignature(Y,a,void 0,ee,R,Z===void 0?I.createKeywordTypeNode(159):Z);case 262:return E.assert(typeof a=="string"||we(a),"Unexpected name"),I.createFunctionDeclaration(Y,j,a,ee,R,Z,DN(p.Function_not_implemented.message,u));default:E.fail("Unexpected kind")}}function eUe(e,t,r){const i=new Set(t.map(o=>o[0])),a=new Map(t);if(r){const o=r.filter(u=>!t.some(f=>{var g;return e.getTypeAtLocation(u)===((g=f[1])==null?void 0:g.argumentType)})),l=i.size+o.length;for(let u=0;i.size{var l;return I.createTypeParameterDeclaration(void 0,o,(l=a.get(o))==null?void 0:l.constraint)})}function kxe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function uj(e,t,r,i,a,o,l){let u=e.typeToTypeNode(r,i,o,l);if(u&&cg(u)){const f=PT(u,a);f&&(GS(t,f.symbols),u=f.typeNode)}return Io(u)}function Cxe(e){return e.isUnionOrIntersection()?e.types.some(Cxe):e.flags&262144}function Exe(e,t,r,i,a,o,l){const u=[],f=new Map;for(let g=0;g=i?I.createToken(58):void 0,a?void 0:(r==null?void 0:r[u])||I.createKeywordTypeNode(159),void 0);o.push(m)}return o}function nUe(e,t,r,i,a,o,l,u,f){let g=i[0],m=i[0].minArgumentCount,y=!1;for(const N of i)m=Math.min(N.minArgumentCount,m),d_(N)&&(y=!0),N.parameters.length>=g.parameters.length&&(!d_(N)||d_(g))&&(g=N);const x=g.parameters.length-(d_(g)?1:0),k=g.parameters.map(N=>N.name),C=bte(x,k,void 0,m,!1);if(y){const N=I.createParameterDeclaration(void 0,I.createToken(26),k[x]||"rest",x>=m?I.createToken(58):void 0,I.createArrayTypeNode(I.createKeywordTypeNode(159)),void 0);C.push(N)}return iUe(l,a,o,void 0,C,rUe(i,e,t,r),u,f)}function rUe(e,t,r,i){if(Nn(e)){const a=t.getUnionType(an(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(a,i,1,HS(r))}}function iUe(e,t,r,i,a,o,l,u){return I.createMethodDeclaration(e,void 0,t,r?I.createToken(58):void 0,i,a,o,u||Tte(l))}function Tte(e){return DN(p.Method_not_implemented.message,e)}function DN(e,t){return I.createBlock([I.createThrowStatement(I.createNewExpression(I.createIdentifier("Error"),void 0,[I.createStringLiteral(e,t===0)]))],!0)}function xte(e,t,r){const i=s3(t);if(!i)return;const a=kte(i,"compilerOptions");if(a===void 0){e.insertNodeAtObjectStart(t,i,fj("compilerOptions",I.createObjectLiteralExpression(r.map(([l,u])=>fj(l,u)),!0)));return}const o=a.initializer;if(!!ha(o))for(const[l,u]of r){const f=kte(o,l);f===void 0?e.insertNodeAtObjectStart(t,o,fj(l,u)):e.replaceNode(t,f.initializer,u)}}function Ste(e,t,r,i){xte(e,t,[[r,i]])}function fj(e,t){return I.createPropertyAssignment(I.createStringLiteral(e),t)}function kte(e,t){return Or(e.properties,r=>Ec(r)&&!!r.name&&fa(r.name)&&r.name.text===t)}function PT(e,t){let r;const i=Ue(e,a,Ai);if(r&&i)return{typeNode:i,symbols:r};function a(o){if(hy(o)&&o.qualifier){const l=Ku(o.qualifier),u=QM(l.symbol,t),f=u!==l.text?Dxe(o.qualifier,I.createIdentifier(u)):o.qualifier;r=dn(r,l.symbol);const g=Dn(o.typeArguments,a,Ai);return I.createTypeReferenceNode(f,g)}return fn(o,a,i0)}}function Dxe(e,t){return e.kind===80?t:I.createQualifiedName(Dxe(e.left,t),e.right)}function GS(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Cte(e,t){const r=Zl(t);let i=Ui(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Ete||{})}});function Axe(e,t,r,i,a,o){const l=Ixe(e,t,r,i);if(!l||JS.isRefactorErrorInfo(l))return;const u=tr.ChangeTracker.fromContext(a),{isStatic:f,isReadonly:g,fieldName:m,accessorName:y,originalName:x,type:k,container:C,declaration:N}=l;Bu(m),Bu(y),Bu(N),Bu(C);let D,M;if(ni(C)){const U=I_(N);if(P_(e)){const Y=I.createModifiersFromModifierFlags(U);D=Y,M=Y}else D=I.createModifiersFromModifierFlags(cUe(U)),M=I.createModifiersFromModifierFlags(lUe(U));oT(N)&&(M=es(Zh(N),M))}dUe(u,e,N,k,m,M);const V=_Ue(m,y,k,D,f,C);if(Bu(V),Oxe(u,e,V,N,C),g){const U=ng(C);U&&mUe(u,e,U,m.text,x)}else{const U=uUe(m,y,k,D,f,C);Bu(U),Oxe(u,e,U,N,C)}return u.getChanges()}function aUe(e){return we(e)||fa(e)}function oUe(e){return Du(e,e.parent)||Fs(e)||Ec(e)}function Nxe(e,t){return we(t)?I.createIdentifier(e):I.createStringLiteral(e)}function Pxe(e,t,r){const i=t?r.name:I.createThis();return we(e)?I.createPropertyAccessExpression(i,e):I.createElementAccessExpression(i,I.createStringLiteralFromNode(e))}function cUe(e){return e&=-65,e&=-9,e&16||(e|=4),e}function lUe(e){return e&=-5,e&=-17,e|=8,e}function Ixe(e,t,r,i,a=!0){const o=Ui(e,r),l=r===i&&a,u=In(o.parent,oUe),f=124;if(!u||!(gY(u.name,e,r,i)||l))return{error:ss(p.Could_not_find_property_for_which_to_generate_accessor)};if(!aUe(u.name))return{error:ss(p.Name_is_not_valid)};if((I_(u)&126975|f)!==f)return{error:ss(p.Can_only_convert_property_with_modifier)};const g=u.name.text,m=rZ(g),y=Nxe(m?g:CT(`_${g}`,e),u.name),x=Nxe(m?CT(g.substring(1),e):g,u.name);return{isStatic:$c(u),isReadonly:T3(u),type:gUe(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:y,accessorName:x,renameAccessor:m}}function _Ue(e,t,r,i,a,o){return I.createGetAccessorDeclaration(i,t,[],r,I.createBlock([I.createReturnStatement(Pxe(e,a,o))],!0))}function uUe(e,t,r,i,a,o){return I.createSetAccessorDeclaration(i,t,[I.createParameterDeclaration(void 0,void 0,I.createIdentifier("value"),void 0,r)],I.createBlock([I.createExpressionStatement(I.createAssignment(Pxe(e,a,o),I.createIdentifier("value")))],!0))}function fUe(e,t,r,i,a,o){const l=I.updatePropertyDeclaration(r,o,a,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function pUe(e,t,r,i){let a=I.updatePropertyAssignment(r,i,r.initializer);(a.modifiers||a.questionToken||a.exclamationToken)&&(a===r&&(a=I.cloneNode(a)),a.modifiers=void 0,a.questionToken=void 0,a.exclamationToken=void 0),e.replacePropertyAssignment(t,r,a)}function dUe(e,t,r,i,a,o){Fs(r)?fUe(e,t,r,i,a,o):Ec(r)?pUe(e,t,r,a):e.replaceNode(t,r,I.updateParameterDeclaration(r,o,r.dotDotDotToken,Bs(a,we),r.questionToken,r.type,r.initializer))}function Oxe(e,t,r,i,a){Du(i,i.parent)?e.insertMemberAtStart(t,a,r):Ec(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function mUe(e,t,r,i,a){!r.body||r.body.forEachChild(function o(l){No(l)&&l.expression.kind===110&&fa(l.argumentExpression)&&l.argumentExpression.text===a&&A3(l)&&e.replaceNode(t,l.argumentExpression,I.createStringLiteral(i)),kr(l)&&l.expression.kind===110&&l.name.text===a&&A3(l)&&e.replaceNode(t,l.name,I.createIdentifier(i)),!Cs(l)&&!ni(l)&&l.forEachChild(o)})}function gUe(e,t){const r=C_e(e);if(Fs(e)&&r&&e.questionToken){const i=t.getTypeChecker(),a=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),a)){const o=cS(r)?r.types:[r];return I.createUnionTypeNode([...o,I.createKeywordTypeNode(157)])}}return r}function wte(e,t){const r=[];for(;e;){const i=s2(e),a=i&&t.getSymbolAtLocation(i.expression);if(!a)break;const o=a.flags&2097152?t.getAliasedSymbol(a):a,l=o.declarations&&Or(o.declarations,ni);if(!l)break;r.push(l),e=l}return r}var hUe=Rt({"src/services/codefixes/generateAccessors.ts"(){Wr()}});function yUe(e,t){const r=Rn(t),i=S6(t),a=e.program.getCompilerOptions(),o=[];return o.push(Fxe(e,r,t,uh(i.name,void 0,t.moduleSpecifier,Rf(r,e.preferences)))),Ul(a)===1&&o.push(Fxe(e,r,t,I.createImportEqualsDeclaration(void 0,!1,i.name,I.createExternalModuleReference(t.moduleSpecifier)))),o}function Fxe(e,t,r,i){const a=tr.ChangeTracker.with(e,o=>o.replaceNode(t,r,i));return Op(Dte,a,[p.Replace_import_with_0,a[0].textChanges[0].newText])}function vUe(e){const t=e.sourceFile,r=p.This_expression_is_not_callable.code===e.errorCode?213:214,i=In(Ui(t,e.span.start),o=>o.kind===r);if(!i)return[];const a=i.expression;return Lxe(e,a)}function bUe(e){const t=e.sourceFile,r=In(Ui(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?Lxe(e,r):[]}function Lxe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&pm(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],a=r.symbol.links.originatingImport;if(Zu(a)||Fr(i,yUe(e,a)),nt(t)&&!(A_(t.parent)&&t.parent.name===t)){const o=e.sourceFile,l=tr.ChangeTracker.with(e,u=>u.replaceNode(o,t,I.createPropertyAccessExpression(t,"default"),{}));i.push(Op(Dte,l,p.Use_synthetic_default_member))}return i}var Dte,TUe=Rt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){Wr(),Ks(),Dte="invalidImportSyntax",$s({errorCodes:[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],getCodeActions:vUe}),$s({errorCodes:[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_does_not_satisfy_the_constraint_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_predicate_0_is_not_assignable_to_1.code,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,p._0_index_type_1_is_not_assignable_to_2_index_type_3.code,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:bUe})}});function Mxe(e,t){const r=Ui(e,t);if(we(r)&&Fs(r.parent)){const i=Vl(r.parent);if(i)return{type:i,prop:r.parent,isJs:Kn(r.parent)}}}function xUe(e,t){if(t.isJs)return;const r=tr.ChangeTracker.with(e,i=>Rxe(i,e.sourceFile,t.prop));return js(pj,r,[p.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],dj,p.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Rxe(e,t,r){Bu(r);const i=I.updatePropertyDeclaration(r,r.modifiers,r.name,I.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function SUe(e,t){const r=tr.ChangeTracker.with(e,i=>Bxe(i,e.sourceFile,t));return js(pj,r,[p.Add_undefined_type_to_property_0,t.prop.name.getText()],mj,p.Add_undefined_type_to_all_uninitialized_properties)}function Bxe(e,t,r){const i=I.createKeywordTypeNode(157),a=cS(r.type)?r.type.types.concat(i):[r.type,i],o=I.createUnionTypeNode(a);r.isJs?e.addJSDocTags(t,r.prop,[I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(o))]):e.replaceNode(t,r.type,o)}function kUe(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=Jxe(r,t.prop);if(!i)return;const a=tr.ChangeTracker.with(e,o=>jxe(o,e.sourceFile,t.prop,i));return js(pj,a,[p.Add_initializer_to_property_0,t.prop.name.getText()],gj,p.Add_initializers_to_all_uninitialized_properties)}function jxe(e,t,r,i){Bu(r);const a=I.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,a)}function Jxe(e,t){return zxe(e,e.getTypeFromTypeNode(t.type))}function zxe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?I.createFalse():I.createTrue();if(t.isStringLiteral())return I.createStringLiteral(t.value);if(t.isNumberLiteral())return I.createNumericLiteral(t.value);if(t.flags&2048)return I.createBigIntLiteral(t.value);if(t.isUnion())return cc(t.types,r=>zxe(e,r));if(t.isClass()){const r=Yg(t.symbol);if(!r||Lr(r,256))return;const i=ng(r);return i&&i.parameters.length?void 0:I.createNewExpression(I.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return I.createArrayLiteralExpression()}var pj,dj,mj,gj,Ate,CUe=Rt({"src/services/codefixes/fixStrictClassInitialization.ts"(){Wr(),Ks(),pj="strictClassInitialization",dj="addMissingPropertyDefiniteAssignmentAssertions",mj="addMissingPropertyUndefinedType",gj="addMissingPropertyInitializer",Ate=[p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],$s({errorCodes:Ate,getCodeActions:function(t){const r=Mxe(t.sourceFile,t.span.start);if(!r)return;const i=[];return dn(i,SUe(t,r)),dn(i,xUe(t,r)),dn(i,kUe(t,r)),i},fixIds:[dj,mj,gj],getAllCodeActions:e=>Ya(e,Ate,(t,r)=>{const i=Mxe(r.file,r.start);if(!!i)switch(e.fixId){case dj:Rxe(t,r.file,i.prop);break;case mj:Bxe(t,r.file,i);break;case gj:const a=e.program.getTypeChecker(),o=Jxe(a,i.prop);if(!o)return;jxe(t,r.file,i.prop,o);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function Vxe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:a,namedImports:o,statement:l,required:u}=r;e.replaceNode(t,l,a&&!i?I.createImportEqualsDeclaration(void 0,!1,a,I.createExternalModuleReference(u)):I.createImportDeclaration(void 0,I.createImportClause(!1,a,o),u,void 0))}function Uxe(e,t,r){const{parent:i}=Ui(e,r);mu(i,!0)||E.failBadSyntaxKind(i);const a=Bs(i.parent,Ri),o=Hr(a.name,we),l=rd(a.name)?EUe(a.name):void 0;if(o||l)return{allowSyntheticDefaults:Yx(t.getCompilerOptions()),defaultImportName:o,namedImports:l,statement:Bs(a.parent.parent,ic),required:wa(i.arguments)}}function EUe(e){const t=[];for(const r of e.elements){if(!we(r.name)||r.initializer)return;t.push(I.createImportSpecifier(!1,Hr(r.propertyName,we),r.name))}if(t.length)return I.createNamedImports(t)}var hj,Nte,wUe=Rt({"src/services/codefixes/requireInTs.ts"(){Wr(),Ks(),hj="requireInTs",Nte=[p.require_call_may_be_converted_to_an_import.code],$s({errorCodes:Nte,getCodeActions(e){const t=Uxe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=tr.ChangeTracker.with(e,i=>Vxe(i,e.sourceFile,t));return[js(hj,r,p.Convert_require_to_import,hj,p.Convert_all_require_to_import)]},fixIds:[hj],getAllCodeActions:e=>Ya(e,Nte,(t,r)=>{const i=Uxe(r.file,e.program,r.start);i&&Vxe(t,e.sourceFile,i)})})}});function Wxe(e,t){const r=Ui(e,t);if(!we(r))return;const{parent:i}=r;if(Hl(i)&&km(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(d1(i)){const a=i.parent.parent;return{importNode:a,name:r,moduleSpecifier:a.moduleSpecifier}}}function qxe(e,t,r,i){e.replaceNode(t,r.importNode,uh(r.name,void 0,r.moduleSpecifier,Rf(t,i)))}var yj,Pte,DUe=Rt({"src/services/codefixes/useDefaultImport.ts"(){Wr(),Ks(),yj="useDefaultImport",Pte=[p.Import_may_be_converted_to_a_default_import.code],$s({errorCodes:Pte,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=Wxe(t,r);if(!i)return;const a=tr.ChangeTracker.with(e,o=>qxe(o,t,i,e.preferences));return[js(yj,a,p.Convert_to_default_import,yj,p.Convert_all_to_default_imports)]},fixIds:[yj],getAllCodeActions:e=>Ya(e,Pte,(t,r)=>{const i=Wxe(r.file,r.start);i&&qxe(t,r.file,i,e.preferences)})})}});function Hxe(e,t,r){const i=Hr(Ui(t,r.start),Ou);if(!i)return;const a=i.getText(t)+"n";e.replaceNode(t,i,I.createBigIntLiteral(a))}var vj,Ite,AUe=Rt({"src/services/codefixes/useBigintLiteral.ts"(){Wr(),Ks(),vj="useBigintLiteral",Ite=[p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],$s({errorCodes:Ite,getCodeActions:function(t){const r=tr.ChangeTracker.with(t,i=>Hxe(i,t.sourceFile,t.span));if(r.length>0)return[js(vj,r,p.Convert_to_a_bigint_numeric_literal,vj,p.Convert_all_to_bigint_numeric_literals)]},fixIds:[vj],getAllCodeActions:e=>Ya(e,Ite,(t,r)=>Hxe(t,r.file,r))})}});function Gxe(e,t){const r=Ui(e,t);return E.assert(r.kind===102,"This token should be an ImportKeyword"),E.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function $xe(e,t,r){const i=I.updateImportTypeNode(r,r.argument,r.assertions,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var Xxe,bj,Ote,NUe=Rt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){Wr(),Ks(),Xxe="fixAddModuleReferTypeMissingTypeof",bj=Xxe,Ote=[p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],$s({errorCodes:Ote,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=Gxe(r,i.start),o=tr.ChangeTracker.with(t,l=>$xe(l,r,a));return[js(bj,o,p.Add_missing_typeof,bj,p.Add_missing_typeof)]},fixIds:[bj],getAllCodeActions:e=>Ya(e,Ote,(t,r)=>$xe(t,e.sourceFile,Gxe(r.file,r.start)))})}});function Qxe(e,t){let a=Ui(e,t).parent.parent;if(!(!rr(a)&&(a=a.parent,!rr(a)))&&!!_c(a.operatorToken))return a}function Yxe(e,t,r){const i=PUe(r);i&&e.replaceNode(t,r,I.createJsxFragment(I.createJsxOpeningFragment(),i,I.createJsxJsxClosingFragment()))}function PUe(e){const t=[];let r=e;for(;;)if(rr(r)&&_c(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),Aw(r.right))return t.push(r.right),t;if(rr(r.right)){r=r.right;continue}else return}else return}var Tj,Fte,IUe=Rt({"src/services/codefixes/wrapJsxInFragment.ts"(){Wr(),Ks(),Tj="wrapJsxInFragment",Fte=[p.JSX_expressions_must_have_one_parent_element.code],$s({errorCodes:Fte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=Qxe(r,i.start);if(!a)return;const o=tr.ChangeTracker.with(t,l=>Yxe(l,r,a));return[js(Tj,o,p.Wrap_in_JSX_fragment,Tj,p.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Tj],getAllCodeActions:e=>Ya(e,Fte,(t,r)=>{const i=Qxe(e.sourceFile,r.start);!i||Yxe(t,e.sourceFile,i)})})}});function Zxe(e,t){const r=Ui(e,t),i=Hr(r.parent.parent,Zb);if(!i)return;const a=f_(i.parent)?i.parent:Hr(i.parent.parent,Dp);if(!!a)return{indexSignature:i,container:a}}function OUe(e,t){return I.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function Kxe(e,t,{indexSignature:r,container:i}){const o=(f_(i)?i.members:i.type.members).filter(m=>!Zb(m)),l=wa(r.parameters),u=I.createTypeParameterDeclaration(void 0,Bs(l.name,we),l.type),f=I.createMappedTypeNode(T3(r)?I.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),g=I.createIntersectionTypeNode([...f3(i),f,...o.length?[I.createTypeLiteralNode(o)]:Ve]);e.replaceNode(t,i,OUe(i,g))}var xj,Lte,FUe=Rt({"src/services/codefixes/convertToMappedObjectType.ts"(){Wr(),Ks(),xj="fixConvertToMappedObjectType",Lte=[p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],$s({errorCodes:Lte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,a=Zxe(r,i.start);if(!a)return;const o=tr.ChangeTracker.with(t,u=>Kxe(u,r,a)),l=lr(a.container.name);return[js(xj,o,[p.Convert_0_to_mapped_object_type,l],xj,[p.Convert_0_to_mapped_object_type,l])]},fixIds:[xj],getAllCodeActions:e=>Ya(e,Lte,(t,r)=>{const i=Zxe(r.file,r.start);i&&Kxe(t,r.file,i)})})}}),Mte,eSe,LUe=Rt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){Wr(),Ks(),Mte="removeAccidentalCallParentheses",eSe=[p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],$s({errorCodes:eSe,getCodeActions(e){const t=In(Ui(e.sourceFile,e.span.start),Js);if(!t)return;const r=tr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Op(Mte,r,p.Remove_parentheses)]},fixIds:[Mte]})}});function tSe(e,t,r){const i=Hr(Ui(t,r.start),u=>u.kind===135),a=i&&Hr(i.parent,p1);if(!a)return;let o=a;if(yu(a.parent)){const u=P3(a.expression,!1);if(we(u)){const f=rl(a.parent.pos,t);f&&f.kind!==105&&(o=a.parent)}}e.replaceNode(t,o,a.expression)}var Sj,Rte,MUe=Rt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){Wr(),Ks(),Sj="removeUnnecessaryAwait",Rte=[p.await_has_no_effect_on_the_type_of_this_expression.code],$s({errorCodes:Rte,getCodeActions:function(t){const r=tr.ChangeTracker.with(t,i=>tSe(i,t.sourceFile,t.span));if(r.length>0)return[js(Sj,r,p.Remove_unnecessary_await,Sj,p.Remove_all_unnecessary_uses_of_await)]},fixIds:[Sj],getAllCodeActions:e=>Ya(e,Rte,(t,r)=>tSe(t,r.file,r))})}});function nSe(e,t){return In(Ui(e,t.start),bl)}function rSe(e,t,r){if(!t)return;const i=E.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,I.updateImportDeclaration(t,t.modifiers,I.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(r.sourceFile,t,I.createImportDeclaration(void 0,I.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.assertClause))}var Bte,kj,RUe=Rt({"src/services/codefixes/splitTypeOnlyImport.ts"(){Wr(),Ks(),Bte=[p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],kj="splitTypeOnlyImport",$s({errorCodes:Bte,fixIds:[kj],getCodeActions:function(t){const r=tr.ChangeTracker.with(t,i=>rSe(i,nSe(t.sourceFile,t.span),t));if(r.length)return[js(kj,r,p.Split_into_two_separate_import_declarations,kj,p.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ya(e,Bte,(t,r)=>{rSe(t,nSe(e.sourceFile,r),e)})})}});function iSe(e,t,r){var i;const o=r.getTypeChecker().getSymbolAtLocation(Ui(e,t));if(o===void 0)return;const l=Hr((i=o==null?void 0:o.valueDeclaration)==null?void 0:i.parent,ml);if(l===void 0)return;const u=$a(l,87,e);if(u!==void 0)return{symbol:o,token:u}}function sSe(e,t,r){e.replaceNode(t,r,I.createToken(121))}var Cj,jte,BUe=Rt({"src/services/codefixes/convertConstToLet.ts"(){Wr(),Ks(),Cj="fixConvertConstToLet",jte=[p.Cannot_assign_to_0_because_it_is_a_constant.code],$s({errorCodes:jte,getCodeActions:function(t){const{sourceFile:r,span:i,program:a}=t,o=iSe(r,i.start,a);if(o===void 0)return;const l=tr.ChangeTracker.with(t,u=>sSe(u,r,o.token));return[zK(Cj,l,p.Convert_const_to_let,Cj,p.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return US(tr.ChangeTracker.with(e,i=>{WS(e,jte,a=>{const o=iSe(a.file,a.start,t);if(o&&td(r,ya(o.symbol)))return sSe(i,a.file,o.token)})}))},fixIds:[Cj]})}});function aSe(e,t,r){const i=Ui(e,t);return i.kind===27&&i.parent&&(ha(i.parent)||u_(i.parent))?{node:i}:void 0}function oSe(e,t,{node:r}){const i=I.createToken(28);e.replaceNode(t,r,i)}var Ej,cSe,Jte,jUe=Rt({"src/services/codefixes/fixExpectedComma.ts"(){Wr(),Ks(),Ej="fixExpectedComma",cSe=p._0_expected.code,Jte=[cSe],$s({errorCodes:Jte,getCodeActions(e){const{sourceFile:t}=e,r=aSe(t,e.span.start,e.errorCode);if(!r)return;const i=tr.ChangeTracker.with(e,a=>oSe(a,t,r));return[js(Ej,i,[p.Change_0_to_1,";",","],Ej,[p.Change_0_to_1,";",","])]},fixIds:[Ej],getAllCodeActions:e=>Ya(e,Jte,(t,r)=>{const i=aSe(r.file,r.start,r.code);i&&oSe(t,e.sourceFile,i)})})}});function lSe(e,t,r,i,a){const o=Ui(t,r.start);if(!we(o)||!Js(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(o),f=u==null?void 0:u.valueDeclaration;if(!f||!rs(f)||!d2(f.parent.parent)||a!=null&&a.has(f))return;a==null||a.add(f);const g=JUe(f.parent.parent);if(dt(g)){const m=g[0],y=!cS(m)&&!_S(m)&&_S(I.createUnionTypeNode([m,I.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,y?") | void":" | void")}else{const m=l.getResolvedSignature(o.parent),y=m==null?void 0:m.parameters[0],x=y&&l.getTypeOfSymbolAtLocation(y,f.parent.parent);Kn(f)?(!x||x.flags&3)&&(e.insertText(t,f.parent.parent.end,")"),e.insertText(t,_a(t.text,f.parent.parent.pos),"/** @type {Promise} */(")):(!x||x.flags&2)&&e.insertText(t,f.parent.parent.expression.end,"")}}function JUe(e){var t;if(Kn(e)){if(yu(e.parent)){const r=(t=dy(e.parent))==null?void 0:t.typeExpression.type;if(r&&ap(r)&&we(r.typeName)&&lr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var _Se,zte,Vte,zUe=Rt({"src/services/codefixes/fixAddVoidToPromise.ts"(){Wr(),Ks(),_Se="addVoidToPromise",zte="addVoidToPromise",Vte=[p.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,p.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],$s({errorCodes:Vte,fixIds:[zte],getCodeActions(e){const t=tr.ChangeTracker.with(e,r=>lSe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[js(_Se,t,p.Add_void_to_Promise_resolved_without_a_value,zte,p.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ya(e,Vte,(t,r)=>lSe(t,r.file,r,e.program,new Set))}})}}),n_={};C_(n_,{PreserveOptionalFlags:()=>Ete,addNewNodeForMemberSymbol:()=>Sxe,codeFixAll:()=>Ya,createCodeFixAction:()=>js,createCodeFixActionMaybeFixAll:()=>zK,createCodeFixActionWithoutFixAll:()=>Op,createCombinedCodeActions:()=>US,createFileTextChanges:()=>A2e,createImportAdder:()=>AT,createImportSpecifierResolver:()=>tze,createJsonPropertyAssignment:()=>fj,createMissingMemberNodes:()=>yte,createSignatureDeclarationFromCallExpression:()=>vte,createSignatureDeclarationFromSignature:()=>_j,createStubbedBody:()=>DN,eachDiagnostic:()=>WS,findAncestorMatchingSpan:()=>Cte,findJsonProperty:()=>kte,generateAccessorFromProperty:()=>Axe,getAccessorConvertiblePropertyAtPosition:()=>Ixe,getAllFixes:()=>Pje,getAllSupers:()=>wte,getArgumentTypesAndTypeParameters:()=>Exe,getFixes:()=>Nje,getImportCompletionAction:()=>nze,getImportKind:()=>mee,getJSDocTypedefNodes:()=>QJe,getNoopSymbolTrackerWithResolver:()=>HS,getPromoteTypeOnlyCompletionAction:()=>rze,getSupportedErrorCodes:()=>Dje,importFixName:()=>Tee,importSymbols:()=>GS,moduleSpecifierToValidIdentifier:()=>bee,moduleSymbolToValidIdentifier:()=>vee,parameterShouldGetTypeFromJSDoc:()=>$2e,registerCodeFix:()=>$s,setJsonCompilerOptionValue:()=>Ste,setJsonCompilerOptionValues:()=>xte,tryGetAutoImportableReferenceFromTypeNode:()=>PT,typeToAutoImportableTypeNode:()=>uj});var Ks=Rt({"src/services/_namespaces/ts.codefix.ts"(){Ije(),Oje(),Fje(),Rje(),Vje(),Hje(),Gje(),$je(),Xje(),Kje(),lJe(),uJe(),xJe(),JJe(),zJe(),UJe(),WJe(),YJe(),ZJe(),eze(),Sze(),Eze(),Aze(),Nze(),Pze(),Fze(),Rze(),Jze(),qze(),tVe(),rVe(),iVe(),aVe(),oVe(),cVe(),lVe(),uVe(),fVe(),pVe(),dVe(),mVe(),hVe(),bVe(),kVe(),OVe(),LVe(),MVe(),jVe(),JVe(),VVe(),UVe(),YVe(),ZVe(),KVe(),sUe(),hUe(),TUe(),CUe(),wUe(),DUe(),AUe(),NUe(),IUe(),FUe(),LUe(),MUe(),RUe(),BUe(),jUe(),zUe()}});function VUe(e){return!!(e.kind&1)}function UUe(e){return!!(e.kind&2)}function AN(e){return!!(e&&e.kind&4)}function L4(e){return!!(e&&e.kind===32)}function WUe(e){return AN(e)||L4(e)||Ute(e)}function qUe(e){return(AN(e)||L4(e))&&!!e.isFromPackageJson}function HUe(e){return!!(e.kind&8)}function GUe(e){return!!(e.kind&16)}function uSe(e){return!!(e&&e.kind&64)}function fSe(e){return!!(e&&e.kind&128)}function $Ue(e){return!!(e&&e.kind&256)}function Ute(e){return!!(e&&e.kind&512)}function pSe(e,t,r,i,a,o,l,u,f){var g,m,y;const x=Wo(),k=l||Zx(Sc(i.getCompilerOptions()));let C=!1,N=0,D=0,M=0,V=0;const U=f({tryResolve:j,skippedAny:()=>C,resolvedAny:()=>D>0,resolvedBeyondLimit:()=>D>Mj}),Y=V?` (${(M/V*100).toFixed(1)}% hit rate)`:"";return(g=t.log)==null||g.call(t,`${e}: resolved ${D} module specifiers, plus ${N} ambient and ${M} from cache${Y}`),(m=t.log)==null||m.call(t,`${e}: response is ${C?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${Wo()-x}`),U;function j(ee,R){if(R){const X=r.getModuleSpecifierForBestExportInfo(ee,a,u);return X&&N++,X||"failed"}const Z=k||o.allowIncompleteCompletions&&D{const C=Hi(f.entries,N=>{var D;if(!N.hasAction||!N.source||!N.data||dSe(N.data))return N;if(!jSe(N.name,m))return;const{origin:M}=E.checkDefined(ESe(N.name,N.data,i,a)),V=y.get(t.path,N.data.exportMapKey),U=V&&k.tryResolve(V,!Al(Ep(M.moduleSymbol.name)));if(U==="skipped")return N;if(!U||U==="failed"){(D=a.log)==null||D.call(a,`Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`);return}const Y={...M,kind:32,moduleSpecifier:U.moduleSpecifier};return N.data=xSe(Y),N.source=Hte(Y),N.sourceDisplay=[vf(Y.moduleSpecifier)],N});return k.skippedAny()||(f.isIncomplete=void 0),C});return f.entries=x,f.flags=(f.flags||0)|4,f.optionalReplacementSpan=ySe(g),f}function Wte(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function mSe(e,t,r,i,a,o){const l=Ui(e,t);if(!c6(l)&&!Ap(l))return[];const u=Ap(l)?l:l.parent;if(!Ap(u))return[];const f=u.parent;if(!Cs(f))return[];const g=P_(e),m=a.includeCompletionsWithSnippetText||void 0,y=M0(u.tags,x=>ad(x)&&x.getEnd()<=t);return Hi(f.parameters,x=>{if(!e6(x).length){if(we(x.name)){const k={tabstop:1},C=x.name.text;let N=yE(C,x.initializer,x.dotDotDotToken,g,!1,!1,r,i,a),D=m?yE(C,x.initializer,x.dotDotDotToken,g,!1,!0,r,i,a,k):void 0;return o&&(N=N.slice(1),D&&(D=D.slice(1))),{name:N,kind:"parameter",sortText:Gl.LocationPriority,insertText:m?D:void 0,isSnippet:m}}else if(x.parent.parameters.indexOf(x)===y){const k=`param${y}`,C=gSe(k,x.name,x.initializer,x.dotDotDotToken,g,!1,r,i,a),N=m?gSe(k,x.name,x.initializer,x.dotDotDotToken,g,!0,r,i,a):void 0;let D=C.join(K0(i)+"* "),M=N==null?void 0:N.join(K0(i)+"* ");return o&&(D=D.slice(1),M&&(M=M.slice(1))),{name:D,kind:"parameter",sortText:Gl.LocationPriority,insertText:m?M:void 0,isSnippet:m}}}})}function gSe(e,t,r,i,a,o,l,u,f){if(!a)return[yE(e,r,i,a,!1,o,l,u,f,{tabstop:1})];return g(e,t,r,i,{tabstop:1});function g(y,x,k,C,N){if(rd(x)&&!C){const M={tabstop:N.tabstop},V=yE(y,k,C,a,!0,o,l,u,f,M);let U=[];for(const Y of x.elements){const j=m(y,Y,M);if(j)U.push(...j);else{U=void 0;break}}if(U)return N.tabstop=M.tabstop,[V,...U]}return[yE(y,k,C,a,!1,o,l,u,f,N)]}function m(y,x,k){if(!x.propertyName&&we(x.name)||we(x.name)){const C=x.propertyName?r3(x.propertyName):x.name.text;if(!C)return;const N=`${y}.${C}`;return[yE(N,x.initializer,x.dotDotDotToken,a,!1,o,l,u,f,k)]}else if(x.propertyName){const C=r3(x.propertyName);return C&&g(`${y}.${C}`,x.name,x.initializer,x.dotDotDotToken,k)}}}function yE(e,t,r,i,a,o,l,u,f,g){if(o&&E.assertIsDefined(g),t&&(e=YUe(e,t)),o&&(e=f2(e)),i){let m="*";if(a)E.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){const k=l.getTypeAtLocation(t.parent);if(!(k.flags&16385)){const C=t.getSourceFile(),D=Rf(C,f)===0?268435456:0,M=l.typeToTypeNode(k,In(t,Cs),D);if(M){const V=o?Aj({removeComments:!0,module:u.module,target:u.target}):Ry({removeComments:!0,module:u.module,target:u.target});Xn(M,1),m=V.printNode(4,M,C)}}}o&&m==="*"&&(m=`\${${g.tabstop++}:${m}}`)}const y=!a&&r?"...":"",x=o?`\${${g.tabstop++}}`:"";return`@param {${y}${m}} ${e} ${x}`}else{const m=o?`\${${g.tabstop++}}`:"";return`@param ${e} ${m}`}}function YUe(e,t){const r=t.getText().trim();return r.includes(` +`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function ZUe(e){return{name:ia(e),kind:"keyword",kindModifiers:"",sortText:Gl.GlobalsOrKeywords}}function KUe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function hSe(e,t,r){return{kind:4,keywordCompletions:wSe(e,t),isNewIdentifierLocation:r}}function eWe(e){switch(e){case 156:return 8;default:E.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function ySe(e){return(e==null?void 0:e.kind)===80?cu(e):void 0}function tWe(e,t,r,i,a,o,l,u,f,g){const{symbols:m,contextToken:y,completionKind:x,isInSnippetScope:k,isNewIdentifierLocation:C,location:N,propertyAccessToConvert:D,keywordFilters:M,symbolToOriginInfoMap:V,recommendedCompletion:U,isJsxInitializer:Y,isTypeOnlyLocation:j,isJsxIdentifierExpected:ee,isRightOfOpenTag:R,isRightOfDotOrQuestionDot:Z,importStatementCompletion:oe,insideJsDocTagTypeExpression:_e,symbolToSortTextMap:X,hasUnresolvedAutoImports:H}=o;let Q=o.literals;const ne=r.getTypeChecker();if(wD(e.scriptKind)===1){const Xe=rWe(N,e);if(Xe)return Xe}const ue=In(y,t4);if(ue&&(wfe(y)||i2(y,ue.expression))){const Xe=eR(ne,ue.parent.clauses);Q=Q.filter(ve=>!Xe.hasValue(ve)),m.forEach((ve,be)=>{if(ve.valueDeclaration&&b2(ve.valueDeclaration)){const xe=ne.getConstantValue(ve.valueDeclaration);xe!==void 0&&Xe.hasValue(xe)&&(V[be]={kind:256})}})}const fe=oV(),G=vSe(e,i);if(G&&!C&&(!m||m.length===0)&&M===0)return;const Ne=Gte(m,fe,void 0,y,N,f,e,t,r,Ia(i),a,x,l,i,u,j,D,ee,Y,oe,U,V,X,ee,R,g);if(M!==0)for(const Xe of wSe(M,!_e&&P_(e)))(j&&V8(qv(Xe.name))||!Ne.has(Xe.name))&&(Ne.add(Xe.name),Hh(fe,Xe,NN,!0));for(const Xe of CWe(y,f))Ne.has(Xe.name)||(Ne.add(Xe.name),Hh(fe,Xe,NN,!0));for(const Xe of Q){const ve=sWe(e,l,Xe);Ne.add(ve.name),Hh(fe,ve,NN,!0)}G||iWe(e,N.pos,Ne,Ia(i),fe);let De;if(l.includeCompletionsWithInsertText&&y&&!R&&!Z&&(De=In(y,c8))){const Xe=bSe(De,e,l,i,t,r,u);Xe&&fe.push(Xe.entry)}return{flags:o.flags,isGlobalCompletion:k,isIncomplete:l.allowIncompleteCompletions&&H?!0:void 0,isMemberCompletion:nWe(x),isNewIdentifierLocation:C,optionalReplacementSpan:ySe(N),entries:fe}}function vSe(e,t){return!P_(e)||!!LD(e,t)}function bSe(e,t,r,i,a,o,l){const u=e.clauses,f=o.getTypeChecker(),g=f.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Xi(g.types,m=>m.isLiteral())){const m=eR(f,u),y=Ia(i),x=Rf(t,r),k=n_.createImportAdder(t,o,r,a),C=[];for(const j of g.types)if(j.flags&1024){E.assert(j.symbol,"An enum member type should have a symbol"),E.assert(j.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const ee=j.symbol.valueDeclaration&&f.getConstantValue(j.symbol.valueDeclaration);if(ee!==void 0){if(m.hasValue(ee))continue;m.addValue(ee)}const R=n_.typeToAutoImportableTypeNode(f,k,j,e,y);if(!R)return;const Z=wj(R,y,x);if(!Z)return;C.push(Z)}else if(!m.hasValue(j.value))switch(typeof j.value){case"object":C.push(j.value.negative?I.createPrefixUnaryExpression(41,I.createBigIntLiteral({negative:!1,base10Value:j.value.base10Value})):I.createBigIntLiteral(j.value));break;case"number":C.push(j.value<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-j.value)):I.createNumericLiteral(j.value));break;case"string":C.push(I.createStringLiteral(j.value,x===0));break}if(C.length===0)return;const N=an(C,j=>I.createCaseClause(j,[])),D=s0(a,l==null?void 0:l.options),M=Aj({removeComments:!0,module:i.module,target:i.target,newLine:W5(D)}),V=l?j=>M.printAndFormatNode(4,j,t,l):j=>M.printNode(4,j,t),U=an(N,(j,ee)=>r.includeCompletionsWithSnippetText?`${V(j)}$${ee+1}`:`${V(j)}`).join(D);return{entry:{name:`${M.printNode(4,N[0],t)} ...`,kind:"",sortText:Gl.GlobalsOrKeywords,insertText:U,hasAction:k.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:k}}}function wj(e,t,r){switch(e.kind){case 183:const i=e.typeName;return Dj(i,t,r);case 199:const a=wj(e.objectType,t,r),o=wj(e.indexType,t,r);return a&&o&&I.createElementAccessExpression(a,o);case 201:const l=e.literal;switch(l.kind){case 11:return I.createStringLiteral(l.text,r===0);case 9:return I.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:const u=wj(e.type,t,r);return u&&(we(u)?u:I.createParenthesizedExpression(u));case 186:return Dj(e.exprName,t,r);case 205:E.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Dj(e,t,r){if(we(e))return e;const i=Oi(e.right.escapedText);return cH(i,t)?I.createPropertyAccessExpression(Dj(e.left,t,r),i):I.createElementAccessExpression(Dj(e.left,t,r),I.createStringLiteral(i,r===0))}function nWe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function rWe(e,t){const r=In(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!$a(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=cu(r.tagName),f={name:l,kind:"class",kindModifiers:void 0,sortText:Gl.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[f]}}}function iWe(e,t,r,i,a){AK(e).forEach((o,l)=>{if(o===t)return;const u=Oi(l);!r.has(u)&&pf(u,i)&&(r.add(u),Hh(a,{name:u,kind:"warning",kindModifiers:"",sortText:Gl.JavascriptIdentifiers,isFromUncheckedFile:!0},NN))})}function qte(e,t,r){return typeof r=="object"?u2(r)+"n":Gs(r)?G8(e,t,r):JSON.stringify(r)}function sWe(e,t,r){return{name:qte(e,t,r),kind:"string",kindModifiers:"",sortText:Gl.LocationPriority}}function aWe(e,t,r,i,a,o,l,u,f,g,m,y,x,k,C,N,D,M,V,U,Y,j,ee,R){var Z,oe;let _e,X,H=wY(r),Q,ne,ue=Hte(y),fe,G,Ne;const De=f.getTypeChecker(),Xe=y&&GUe(y),ve=y&&UUe(y)||m;if(y&&VUe(y))_e=m?`this${Xe?"?.":""}[${SSe(l,V,g)}]`:`this${Xe?"?.":"."}${g}`;else if((ve||Xe)&&k){_e=ve?m?`[${SSe(l,V,g)}]`:`[${g}]`:g,(Xe||k.questionDotToken)&&(_e=`?.${_e}`);const xe=$a(k,25,l)||$a(k,29,l);if(!xe)return;const rt=ns(g,k.name.text)?k.name.end:xe.end;H=ll(xe.getStart(l),rt)}if(C&&(_e===void 0&&(_e=g),_e=`{${_e}}`,typeof C!="boolean"&&(H=cu(C,l))),y&&HUe(y)&&k){_e===void 0&&(_e=g);const xe=rl(k.pos,l);let rt="";xe&&UM(xe.end,xe.parent,l)&&(rt=";"),rt+=`(await ${k.expression.getText()})`,_e=m?`${rt}${_e}`:`${rt}${Xe?"?.":"."}${_e}`;const pe=Hr(k.parent,p1)?k.parent:k.expression;H=ll(pe.getStart(l),k.end)}if(L4(y)&&(fe=[vf(y.moduleSpecifier)],N&&({insertText:_e,replacementSpan:H}=pWe(g,N,y,D,l,M,V),ne=V.includeCompletionsWithSnippetText?!0:void 0)),(y==null?void 0:y.kind)===64&&(G=!0),U===0&&i&&((Z=rl(i.pos,l,i))==null?void 0:Z.kind)!==28&&(kc(i.parent.parent)||gf(i.parent.parent)||Fu(i.parent.parent)||sh(i.parent)||((oe=In(i.parent,Ec))==null?void 0:oe.getLastToken(l))===i||nf(i.parent)&&yo(l,i.getEnd()).line!==yo(l,o).line)&&(ue="ObjectLiteralMemberWithComma/",G=!0),V.includeCompletionsWithClassMemberSnippets&&V.includeCompletionsWithInsertText&&U===3&&oWe(e,a,l)){let xe;const rt=TSe(u,f,M,V,g,e,a,o,i,Y);if(rt)({insertText:_e,filterText:X,isSnippet:ne,importAdder:xe}=rt),xe!=null&&xe.hasFixes()&&(G=!0,ue="ClassMemberSnippet/");else return}if(y&&fSe(y)&&({insertText:_e,isSnippet:ne,labelDetails:Ne}=y,V.useLabelDetailsInCompletionEntries||(g=g+Ne.detail,Ne=void 0),ue="ObjectLiteralMethodSnippet/",t=Gl.SortBelow(t)),j&&!ee&&V.includeCompletionsWithSnippetText&&V.jsxAttributeCompletionStyle&&V.jsxAttributeCompletionStyle!=="none"&&!(Vd(a.parent)&&a.parent.initializer)){let xe=V.jsxAttributeCompletionStyle==="braces";const rt=De.getTypeOfSymbolAtLocation(e,a);V.jsxAttributeCompletionStyle==="auto"&&!(rt.flags&528)&&!(rt.flags&1048576&&Or(rt.types,ct=>!!(ct.flags&528)))&&(rt.flags&402653316||rt.flags&1048576&&Xi(rt.types,ct=>!!(ct.flags&402686084||Qhe(ct)))?(_e=`${f2(g)}=${G8(l,V,"$1")}`,ne=!0):xe=!0),xe&&(_e=`${f2(g)}={$1}`,ne=!0)}if(_e!==void 0&&!V.includeCompletionsWithInsertText)return;(AN(y)||L4(y))&&(Q=xSe(y),G=!N);const be=In(a,lO);if((be==null?void 0:be.kind)===275){const xe=qv(g);be&&xe&&(xe===135||_q(xe))&&(_e=`${g} as ${g}_`)}return{name:g,kind:ph.getSymbolKind(De,e,a),kindModifiers:ph.getSymbolModifiers(De,e),sortText:t,source:ue,hasAction:G?!0:void 0,isRecommended:dWe(e,x,De)||void 0,insertText:_e,filterText:X,replacementSpan:H,sourceDisplay:fe,labelDetails:Ne,isSnippet:ne,isPackageJsonImport:qUe(y)||void 0,isImportStatementCompletion:!!N||void 0,data:Q,...R?{symbol:e}:void 0}}function oWe(e,t,r){if(Kn(t))return!1;const i=106500;return!!(e.flags&i)&&(ni(t)||t.parent&&t.parent.parent&&Nl(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ni(t.parent.parent)||t.parent&&o4(t)&&ni(t.parent))}function TSe(e,t,r,i,a,o,l,u,f,g){const m=In(l,ni);if(!m)return;let y,x=a;const k=a,C=t.getTypeChecker(),N=l.getSourceFile(),D=Aj({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:W5(s0(e,g==null?void 0:g.options))}),M=n_.createImportAdder(N,t,i,e);let V;if(i.includeCompletionsWithSnippetText){y=!0;const oe=I.createEmptyStatement();V=I.createBlock([oe],!0),JH(oe,{kind:0,order:0})}else V=I.createBlock([],!0);let U=0;const{modifiers:Y,range:j,decorators:ee}=cWe(f,N,u),R=Y&256&&m.modifierFlagsCache&256;let Z=[];if(n_.addNewNodeForMemberSymbol(o,m,N,{program:t,host:e},i,M,oe=>{let _e=0;R&&(_e|=256),Nl(oe)&&C.getMemberOverrideModifierStatus(m,oe,o)===1&&(_e|=16384),Z.length||(U=oe.modifierFlagsCache|_e),oe=I.updateModifiers(oe,U),Z.push(oe)},V,n_.PreserveOptionalFlags.Property,!!R),Z.length){const oe=o.flags&8192;let _e=U|16384|4;oe?_e|=512:_e|=66;const X=Y&_e;if(Y&~_e)return;if(U&16&&X&4&&(U&=-17),X!==0&&!(X&4)&&(U&=-5),U|=X,Z=Z.map(Q=>I.updateModifiers(Q,U)),ee!=null&&ee.length){const Q=Z[Z.length-1];oT(Q)&&(Z[Z.length-1]=I.updateModifierLike(Q,ee.concat(Gv(Q)||[])))}const H=131073;g?x=D.printAndFormatSnippetList(H,I.createNodeArray(Z),N,g):x=D.printSnippetList(H,I.createNodeArray(Z),N)}return{insertText:x,filterText:k,isSnippet:y,importAdder:M,eraseRange:j}}function cWe(e,t,r){if(!e||yo(t,r).line>yo(t,e.getEnd()).line)return{modifiers:0};let i=0,a,o;const l={pos:r,end:r};if(Fs(e.parent)&&e.parent.modifiers&&(i|=Ld(e.parent.modifiers)&126975,a=e.parent.modifiers.filter(Wl)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),o=lWe(e)){const u=$x(o);i&u||(i|=u,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:a,range:l.pos!==r?l:void 0}}function lWe(e){if(Zs(e))return e.kind;if(we(e)){const t=py(e);if(t&&q0(t))return t}}function _We(e,t,r,i,a,o,l,u){const f=l.includeCompletionsWithSnippetText||void 0;let g=t;const m=r.getSourceFile(),y=uWe(e,r,m,i,a,l);if(!y)return;const x=Aj({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:W5(s0(a,u==null?void 0:u.options))});u?g=x.printAndFormatSnippetList(80,I.createNodeArray([y],!0),m,u):g=x.printSnippetList(80,I.createNodeArray([y],!0),m);const k=Ry({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),C=I.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),N={detail:k.printNode(4,C,m)};return{isSnippet:f,insertText:g,labelDetails:N}}function uWe(e,t,r,i,a,o){const l=e.getDeclarations();if(!(l&&l.length))return;const u=i.getTypeChecker(),f=l[0],g=Io(os(f),!1),m=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),x=33554432|(Rf(r,o)===0?268435456:0);switch(f.kind){case 171:case 172:case 173:case 174:{let k=m.flags&1048576&&m.types.length<10?u.getUnionType(m.types,2):m;if(k.flags&1048576){const V=zr(k.types,U=>u.getSignaturesOfType(U,0).length>0);if(V.length===1)k=V[0];else return}if(u.getSignaturesOfType(k,0).length!==1)return;const N=u.typeToTypeNode(k,t,x,n_.getNoopSymbolTrackerWithResolver({program:i,host:a}));if(!N||!og(N))return;let D;if(o.includeCompletionsWithSnippetText){const V=I.createEmptyStatement();D=I.createBlock([V],!0),JH(V,{kind:0,order:0})}else D=I.createBlock([],!0);const M=N.parameters.map(V=>I.createParameterDeclaration(void 0,V.dotDotDotToken,V.name,void 0,void 0,V.initializer));return I.createMethodDeclaration(void 0,void 0,g,void 0,void 0,M,void 0,D)}default:return}}function Aj(e){let t;const r=tr.createWriter(K0(e)),i=Ry(e,r),a={...r,write:x=>o(x,()=>r.write(x)),nonEscapingWrite:r.write,writeLiteral:x=>o(x,()=>r.writeLiteral(x)),writeStringLiteral:x=>o(x,()=>r.writeStringLiteral(x)),writeSymbol:(x,k)=>o(x,()=>r.writeSymbol(x,k)),writeParameter:x=>o(x,()=>r.writeParameter(x)),writeComment:x=>o(x,()=>r.writeComment(x)),writeProperty:x=>o(x,()=>r.writeProperty(x))};return{printSnippetList:l,printAndFormatSnippetList:f,printNode:g,printAndFormatNode:y};function o(x,k){const C=f2(x);if(C!==x){const N=r.getTextPos();k();const D=r.getTextPos();t=dn(t||(t=[]),{newText:C,span:{start:N,length:D-N}})}else k()}function l(x,k,C){const N=u(x,k,C);return t?tr.applyChanges(N,t):N}function u(x,k,C){return t=void 0,a.clear(),i.writeList(x,k,C,a),a.getText()}function f(x,k,C,N){const D={text:u(x,k,C),getLineAndCharacterOfPosition(Y){return yo(this,Y)}},M=KM(N,C),V=Na(k,Y=>{const j=tr.assignPositionsToNode(Y);return gl.formatNodeGivenIndentation(j,D,C.languageVariant,0,0,{...N,options:M})}),U=t?R0(es(V,t),(Y,j)=>fI(Y.span,j.span)):V;return tr.applyChanges(D.text,U)}function g(x,k,C){const N=m(x,k,C);return t?tr.applyChanges(N,t):N}function m(x,k,C){return t=void 0,a.clear(),i.writeNode(x,k,C,a),a.getText()}function y(x,k,C,N){const D={text:m(x,k,C),getLineAndCharacterOfPosition(j){return yo(this,j)}},M=KM(N,C),V=tr.assignPositionsToNode(k),U=gl.formatNodeGivenIndentation(V,D,C.languageVariant,0,0,{...N,options:M}),Y=t?R0(es(U,t),(j,ee)=>fI(j.span,ee.span)):U;return tr.applyChanges(D.text,Y)}}function xSe(e){const t=e.fileName?void 0:Ep(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return L4(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Ep(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function fWe(e,t,r){const i=e.exportName==="default",a=!!e.isPackageJsonImport;return dSe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:a}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:a}}function pWe(e,t,r,i,a,o,l){const u=t.replacementSpan,f=f2(G8(a,l,r.moduleSpecifier)),g=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=n_.getImportKind(a,g,o,!0),x=t.couldBeTypeOnlyImportSpecifier,k=t.isTopLevelTypeOnly?` ${ia(156)} `:" ",C=x?`${ia(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${k}${f2(e)}${m} = require(${f})${N}`};case 1:return{replacementSpan:u,insertText:`import${k}${f2(e)}${m} from ${f}${N}`};case 2:return{replacementSpan:u,insertText:`import${k}* as ${f2(e)} from ${f}${N}`};case 0:return{replacementSpan:u,insertText:`import${k}{ ${C}${f2(e)}${m} } from ${f}${N}`}}}function SSe(e,t,r){return/^\d+$/.test(r)?r:G8(e,t,r)}function dWe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Hte(e){if(AN(e))return Ep(e.moduleSymbol.name);if(L4(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function Gte(e,t,r,i,a,o,l,u,f,g,m,y,x,k,C,N,D,M,V,U,Y,j,ee,R,Z,oe=!1){var fe;const _e=Wo(),X=LWe(i,a),H=U5(l),Q=f.getTypeChecker(),ne=new Map;for(let G=0;GPe.getSourceFile()===a.getSourceFile()));ne.set(ve,pe),Hh(t,ct,NN,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Wo()-_e)),{has:G=>ne.has(G),add:G=>ne.set(G,!0)};function ue(G,Ne){var ve;var De;let Xe=G.flags;if(!Bi(a)){if(fc(a.parent))return!0;if(Hr(X,Ri)&&G.valueDeclaration===X)return!1;const be=(ve=G.valueDeclaration)!=null?ve:(De=G.declarations)==null?void 0:De[0];if(X&&be&&(Go(X)&&Go(be)||rs(X)&&rs(be))){const rt=be.pos,ct=rs(X)?X.parent.parameters:lS(X.parent)?void 0:X.parent.typeParameters;if(rt>=X.pos&&ct&&rtqte(r,l,U)===a.name);return V!==void 0?{type:"literal",literal:V}:cc(g,(U,Y)=>{const j=k[Y],ee=Pj(U,Ia(u),j,x,f.isJsxIdentifierExpected);return ee&&ee.name===a.name&&(a.source==="ClassMemberSnippet/"&&U.flags&106500||a.source==="ObjectLiteralMethodSnippet/"&&U.flags&8196||Hte(j)===a.source||a.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:U,location:y,origin:j,contextToken:C,previousToken:N,isJsxInitializer:D,isTypeOnlyLocation:M}:void 0})||{type:"none"}}function hWe(e,t,r,i,a,o,l,u,f){const g=e.getTypeChecker(),m=e.getCompilerOptions(),{name:y,source:x,data:k}=a,{previousToken:C,contextToken:N}=Nj(i,r);if(xT(r,i,C))return Bj.getStringLiteralCompletionDetails(y,r,i,C,g,m,o,f,u);const D=kSe(e,t,r,i,a,o,u);switch(D.type){case"request":{const{request:M}=D;switch(M.kind){case 1:return Uy.getJSDocTagNameCompletionDetails(y);case 2:return Uy.getJSDocTagCompletionDetails(y);case 3:return Uy.getJSDocParameterNameCompletionDetails(y);case 4:return dt(M.keywordCompletions,V=>V.name===y)?$te(y,"keyword",5):void 0;default:return E.assertNever(M)}}case"symbol":{const{symbol:M,location:V,contextToken:U,origin:Y,previousToken:j}=D,{codeActions:ee,sourceDisplay:R}=yWe(y,V,U,Y,M,e,o,m,r,i,j,l,u,k,x,f),Z=Ute(Y)?Y.symbolName:M.name;return Xte(M,Z,g,r,V,f,ee,R)}case"literal":{const{literal:M}=D;return $te(qte(r,u,M),"string",typeof M=="string"?8:7)}case"cases":{const{entry:M,importAdder:V}=bSe(N.parent,r,u,e.getCompilerOptions(),o,e,void 0);if(V.hasFixes()){const U=tr.ChangeTracker.with({host:o,formatContext:l,preferences:u},V.writeFixes);return{name:M.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:U,description:ET([p.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:M.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return rne().some(M=>M.name===y)?$te(y,"keyword",5):void 0;default:E.assertNever(D)}}function $te(e,t,r){return PN(e,"",t,[bu(e,r)])}function Xte(e,t,r,i,a,o,l,u){const{displayParts:f,documentation:g,symbolKind:m,tags:y}=r.runWithCancellationToken(o,x=>ph.getSymbolDisplayPartsDocumentationAndSymbolKind(x,e,i,a,a,7));return PN(t,ph.getSymbolModifiers(r,e),m,f,g,y,l,u)}function PN(e,t,r,i,a,o,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:a,tags:o,codeActions:l,source:u,sourceDisplay:u}}function yWe(e,t,r,i,a,o,l,u,f,g,m,y,x,k,C,N){if(k!=null&&k.moduleSpecifier&&m&&FSe(r||m,f).replacementSpan)return{codeActions:void 0,sourceDisplay:[vf(k.moduleSpecifier)]};if(C==="ClassMemberSnippet/"){const{importAdder:ee,eraseRange:R}=TSe(l,o,u,x,e,a,t,g,r,y);if(ee||R)return{sourceDisplay:void 0,codeActions:[{changes:tr.ChangeTracker.with({host:l,formatContext:y,preferences:x},oe=>{ee&&ee.writeFixes(oe),R&&oe.deleteRange(f,R)}),description:ET([p.Includes_imports_of_types_referenced_by_0,e])}]}}if(uSe(i)){const ee=n_.getPromoteTypeOnlyCompletionAction(f,i.declaration.name,o,l,y,x);return E.assertIsDefined(ee,"Expected to have a code action for promoting type-only alias"),{codeActions:[ee],sourceDisplay:void 0}}if(C==="ObjectLiteralMemberWithComma/"&&r){const ee=tr.ChangeTracker.with({host:l,formatContext:y,preferences:x},R=>R.insertText(f,r.end,","));if(ee)return{sourceDisplay:void 0,codeActions:[{changes:ee,description:ET([p.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(AN(i)||L4(i)))return{codeActions:void 0,sourceDisplay:void 0};const D=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:M}=i,V=D.getMergedSymbol(au(a.exportSymbol||a,D)),U=(r==null?void 0:r.kind)===30&&U_(r.parent),{moduleSpecifier:Y,codeAction:j}=n_.getImportCompletionAction(V,M,k==null?void 0:k.exportMapKey,f,e,U,l,o,y,m&&we(m)?m.getStart(f):g,x,N);return E.assert(!(k!=null&&k.moduleSpecifier)||Y===k.moduleSpecifier),{sourceDisplay:[vf(Y)],codeActions:[j]}}function vWe(e,t,r,i,a,o,l){const u=kSe(e,t,r,i,a,o,l);return u.type==="symbol"?u.symbol:void 0}function bWe(e,t,r){return cc(t&&(t.isUnion()?t.types:[t]),i=>{const a=i&&i.symbol;return a&&a.flags&424&&!Y_e(a)?Qte(a,e,r):void 0})}function TWe(e,t,r,i){const{parent:a}=e;switch(e.kind){case 80:return JM(e,i);case 64:switch(a.kind){case 260:return i.getContextualType(a.initializer);case 226:return i.getTypeAtLocation(a.left);case 291:return i.getContextualTypeForJsxAttribute(a);default:return}case 105:return i.getContextualType(a);case 84:const o=Hr(a,t4);return o?XY(o,i):void 0;case 19:return l8(a)&&!_g(a.parent)&&!y2(a.parent)?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:const l=zN.getArgumentInfoForCompletions(e,t,r);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex+(e.kind===28?1:0)):zM(e.kind)&&rr(a)&&zM(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Qte(e,t,r){const i=r.getAccessibleSymbolChain(e,t,67108863,!1);return i?wa(i):e.parent&&(xWe(e.parent)?e:Qte(e.parent,t,r))}function xWe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function CSe(e,t,r,i,a,o,l,u,f,g){const m=e.getTypeChecker(),y=vSe(r,i);let x=Wo(),k=Ui(r,a);t("getCompletionData: Get current token: "+(Wo()-x)),x=Wo();const C=lh(r,a,k);t("getCompletionData: Is inside comment: "+(Wo()-x));let N=!1,D=!1;if(C){if(Ghe(r,a)){if(r.text.charCodeAt(a-1)===64)return{kind:1};{const ye=up(a,r);if(!/[^*|\s(/)]/.test(r.text.substring(ye,a)))return{kind:2}}}const F=EWe(k,a);if(F){if(F.tagName.pos<=a&&a<=F.tagName.end)return{kind:1};const ye=Pt(F);if(ye&&(k=Ui(r,a),(!k||!Xg(k)&&(k.parent.kind!==355||k.parent.name!==k))&&(N=ge(ye))),!N&&ad(F)&&(_c(F.name)||F.name.pos<=a&&a<=F.name.end))return{kind:3,tag:F}}if(!N){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}x=Wo();const M=!N&&P_(r),V=Nj(a,r),U=V.previousToken;let Y=V.contextToken;t("getCompletionData: Get previous token: "+(Wo()-x));let j=k,ee,R=!1,Z=!1,oe=!1,_e=!1,X=!1,H=!1,Q,ne=af(r,a),ue=0,fe=!1,G=0;if(Y){const F=FSe(Y,r);if(F.keywordCompletion){if(F.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[ZUe(F.keywordCompletion)],isNewIdentifierLocation:F.isNewIdentifierLocation};ue=eWe(F.keywordCompletion)}if(F.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(G|=2,Q=F,fe=F.isNewIdentifierLocation),!F.replacementSpan&&Sn(Y))return t("Returning an empty list because completion was requested in an invalid position."),ue?hSe(ue,M,Er()):void 0;let ye=Y.parent;if(Y.kind===25||Y.kind===29)switch(R=Y.kind===25,Z=Y.kind===29,ye.kind){case 211:ee=ye,j=ee.expression;const Oe=N3(ee);if(_c(Oe)||(Js(j)||Cs(j))&&j.end===Y.pos&&j.getChildCount(r)&&ka(j.getChildren(r)).kind!==22)return;break;case 166:j=ye.left;break;case 267:j=ye.name;break;case 205:j=ye;break;case 236:j=ye.getFirstToken(r),E.assert(j.kind===102||j.kind===105);break;default:return}else if(!Q){if(ye&&ye.kind===211&&(Y=ye,ye=ye.parent),k.parent===ne)switch(k.kind){case 32:(k.parent.kind===284||k.parent.kind===286)&&(ne=k);break;case 44:k.parent.kind===285&&(ne=k);break}switch(ye.kind){case 287:Y.kind===44&&(_e=!0,ne=Y);break;case 226:if(!OSe(ye))break;case 285:case 284:case 286:H=!0,Y.kind===30&&(oe=!0,ne=Y);break;case 294:case 293:(U.kind===20||U.kind===80&&U.parent.kind===291)&&(H=!0);break;case 291:if(ye.initializer===U&&U.endST(F?u.getPackageJsonAutoImportProvider():e,u));if(R||Z)bt();else if(oe)be=m.getJsxIntrinsicTagNamesAt(ne),E.assertEachIsDefined(be,"getJsxIntrinsicTagNames() should all be defined"),er(),De=1,ue=0;else if(_e){const F=Y.parent.parent.openingElement.tagName,ye=m.getSymbolAtLocation(F);ye&&(be=[ye]),De=1,ue=0}else if(!er())return ue?hSe(ue,M,fe):void 0;t("getCompletionData: Semantic work: "+(Wo()-Ne));const tt=U&&TWe(U,a,r,m),Je=!Hr(U,Qa)&&!H?Hi(tt&&(tt.isUnion()?tt.types:[tt]),F=>F.isLiteral()&&!(F.flags&1024)?F.value:void 0):[],ot=U&&tt&&bWe(U,tt,m);return{kind:0,symbols:be,completionKind:De,isInSnippetScope:D,propertyAccessToConvert:ee,isNewIdentifierLocation:fe,location:ne,keywordFilters:ue,literals:Je,symbolToOriginInfoMap:rt,recommendedCompletion:ot,previousToken:U,contextToken:Y,isJsxInitializer:X,insideJsDocTagTypeExpression:N,symbolToSortTextMap:ct,isTypeOnlyLocation:Pe,isJsxIdentifierExpected:H,isRightOfOpenTag:oe,isRightOfDotOrQuestionDot:R||Z,importStatementCompletion:Q,hasUnresolvedAutoImports:ve,flags:G};function Jt(F){switch(F.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!F.constraint;default:return!1}}function Pt(F){if(Jt(F)){const ye=od(F)?F.constraint:F.typeExpression;return ye&&ye.kind===316?ye:void 0}if(s4(F)||uG(F))return F.class}function bt(){De=2;const F=hy(j),ye=F&&!j.isTypeOf||Km(j.parent)||N5(Y,r,m),Oe=dM(j);if(Xu(j)||F||kr(j)){const We=Ac(j.parent);We&&(fe=!0);let Tt=m.getSymbolAtLocation(j);if(Tt&&(Tt=au(Tt,m),Tt.flags&1920)){const It=m.getExportsOfModule(Tt);E.assertEachIsDefined(It,"getExportsOfModule() should all be defined");const on=ar=>m.isValidPropertyAccess(F?j:j.parent,ar.name),kn=ar=>Zte(ar,m),ir=We?ar=>{var jn;return!!(ar.flags&1920)&&!((jn=ar.declarations)!=null&&jn.every(oi=>oi.parent===j.parent))}:Oe?ar=>kn(ar)||on(ar):ye||N?kn:on;for(const ar of It)ir(ar)&&be.push(ar);if(!ye&&!N&&Tt.declarations&&Tt.declarations.some(ar=>ar.kind!==312&&ar.kind!==267&&ar.kind!==266)){let ar=m.getTypeOfSymbolAtLocation(Tt,j).getNonOptionalType(),jn=!1;if(ar.isNullableType()){const oi=R&&!Z&&o.includeAutomaticOptionalChainCompletions!==!1;(oi||Z)&&(ar=ar.getNonNullableType(),oi&&(jn=!0))}_r(ar,!!(j.flags&65536),jn)}return}}if(!ye||qb(j)){m.tryGetThisTypeAt(j,!1);let We=m.getTypeAtLocation(j).getNonOptionalType();if(ye)_r(We.getNonNullableType(),!1,!1);else{let Tt=!1;if(We.isNullableType()){const It=R&&!Z&&o.includeAutomaticOptionalChainCompletions!==!1;(It||Z)&&(We=We.getNonNullableType(),It&&(Tt=!0))}_r(We,!!(j.flags&65536),Tt)}}}function _r(F,ye,Oe){fe=!!F.getStringIndexType(),Z&&dt(F.getCallSignatures())&&(fe=!0);const We=j.kind===205?j:j.parent;if(y)for(const Tt of F.getApparentProperties())m.isValidPropertyAccessForCompletions(We,F,Tt)&&xn(Tt,!1,Oe);else be.push(...zr(Fj(F,m),Tt=>m.isValidPropertyAccessForCompletions(We,F,Tt)));if(ye&&o.includeCompletionsWithInsertText){const Tt=m.getPromisedTypeOfPromise(F);if(Tt)for(const It of Tt.getApparentProperties())m.isValidPropertyAccessForCompletions(We,Tt,It)&&xn(It,!0,Oe)}}function xn(F,ye,Oe){var We;const Tt=cc(F.declarations,ir=>Hr(os(ir),Ga));if(Tt){const ir=Bt(Tt.expression),ar=ir&&m.getSymbolAtLocation(ir),jn=ar&&Qte(ar,Y,m),oi=jn&&ya(jn);if(oi&&td(pe,oi)){const ea=be.length;be.push(jn);const gs=jn.parent;if(!gs||!O5(gs)||m.tryGetMemberInModuleExportsAndProperties(jn.name,gs)!==jn)rt[ea]={kind:kn(2)};else{const Us=Al(Ep(gs.name))?(We=h9(gs))==null?void 0:We.fileName:void 0,{moduleSpecifier:Yr}=(xe||(xe=n_.createImportSpecifierResolver(r,e,u,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Us,isFromPackageJson:!1,moduleSymbol:gs,symbol:jn,targetFlags:au(jn,m).flags}],a,Ey(ne))||{};if(Yr){const cs={kind:kn(6),moduleSymbol:gs,isDefaultExport:!1,symbolName:jn.name,exportName:jn.name,fileName:Us,moduleSpecifier:Yr};rt[ea]=cs}}}else if(o.includeCompletionsWithInsertText){if(oi&&pe.has(oi))return;on(F),It(F),be.push(F)}}else on(F),It(F),be.push(F);function It(ir){IWe(ir)&&(ct[ya(ir)]=Gl.LocalDeclarationPriority)}function on(ir){o.includeCompletionsWithInsertText&&(ye&&td(pe,ya(ir))?rt[be.length]={kind:kn(8)}:Oe&&(rt[be.length]={kind:16}))}function kn(ir){return Oe?ir|16:ir}}function Bt(F){return we(F)?F:kr(F)?Bt(F.expression):void 0}function er(){return(ut()||kt()||ki()||it()||Vt()||xr()||ae()||pi()||(Nr(),1))===1}function xr(){return ke(Y)?(De=5,fe=!0,ue=4,1):0}function pi(){const F=K(Y),ye=F&&m.getContextualType(F.attributes);if(!ye)return 0;const Oe=F&&m.getContextualType(F.attributes,4);return be=es(be,W(Oj(ye,Oe,F.attributes,m),F.attributes.properties)),hi(),De=3,fe=!1,1}function ki(){return Q?(fe=!0,Pn(),1):0}function Nr(){ue=ft(Y)?5:1,De=1,fe=Er(),U!==Y&&E.assert(!!U,"Expected 'contextToken' to be defined when different from 'previousToken'.");const F=U!==Y?U.getStart():a,ye=Gt(Y,F,r)||r;D=ur(ye);const Oe=(Pe?0:111551)|788968|1920|2097152,We=U&&!Ey(U);be=es(be,m.getSymbolsInScope(ye,Oe)),E.assertEachIsDefined(be,"getSymbolsInScope() should all be defined");for(let Tt=0;Tton.getSourceFile()===r)&&(ct[ya(It)]=Gl.GlobalsOrKeywords),We&&!(It.flags&111551)){const on=It.declarations&&Or(It.declarations,s9);if(on){const kn={kind:64,declaration:on};rt[Tt]=kn}}}if(o.includeCompletionsWithInsertText&&ye.kind!==312){const Tt=m.tryGetThisTypeAt(ye,!1,ni(ye.parent)?ye:void 0);if(Tt&&!PWe(Tt,r,m))for(const It of Fj(Tt,m))rt[be.length]={kind:1},be.push(It),ct[ya(It)]=Gl.SuggestedClassMembers}Pn(),Pe&&(ue=Y&&Fb(Y.parent)?6:7)}function pt(){return Q?!0:Xe||!o.includeCompletionsForModuleExports?!1:r.externalModuleIndicator||r.commonJsModuleIndicator||IY(e.getCompilerOptions())?!0:t1e(e)}function ur(F){switch(F.kind){case 312:case 228:case 294:case 241:return!0;default:return Fi(F)}}function hn(){return N||!!Q&&Xv(ne.parent)||!Ct(Y)&&(N5(Y,r,m)||Km(ne)||cn(Y))}function Ct(F){return F&&(F.kind===114&&(F.parent.kind===186||K6(F.parent))||F.kind===131&&F.parent.kind===182)}function cn(F){if(F){const ye=F.parent.kind;switch(F.kind){case 59:return ye===172||ye===171||ye===169||ye===260||Px(ye);case 64:return ye===265;case 130:return ye===234;case 30:return ye===183||ye===216;case 96:return ye===168;case 152:return ye===238}}return!1}function Pn(){var F,ye;if(!pt()||(E.assert(!(l!=null&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;G|=1;const We=U===Y&&Q?"":U&&we(U)?U.text.toLowerCase():"",Tt=(F=u.getModuleSpecifierCache)==null?void 0:F.call(u),It=q5(r,u,e,o,g),on=(ye=u.getPackageJsonAutoImportProvider)==null?void 0:ye.call(u),kn=l?void 0:X8(r,o,u);pSe("collectAutoImports",u,xe||(xe=n_.createImportSpecifierResolver(r,e,u,o)),e,a,o,!!Q,Ey(ne),ar=>{It.search(r.path,oe,(jn,oi)=>{if(!pf(jn,Ia(u.getCompilationSettings()))||!l&&Ux(jn)||!Pe&&!Q&&!(oi&111551)||Pe&&!(oi&790504))return!1;const ea=jn.charCodeAt(0);return oe&&(ea<65||ea>90)?!1:l?!0:jSe(jn,We)},(jn,oi,ea,gs)=>{if(l&&!dt(jn,ln=>l.source===Ep(ln.moduleSymbol.name))||(jn=zr(jn,ir),!jn.length))return;const Us=ar.tryResolve(jn,ea)||{};if(Us==="failed")return;let Yr=jn[0],cs;Us!=="skipped"&&({exportInfo:Yr=jn[0],moduleSpecifier:cs}=Us);const Ms=Yr.exportKind===1,di=Ms&&F6(Yr.symbol)||Yr.symbol;Sr(di,{kind:cs?32:4,moduleSpecifier:cs,symbolName:oi,exportMapKey:gs,exportName:Yr.exportKind===2?"export=":Yr.symbol.name,fileName:Yr.moduleFileName,isDefaultExport:Ms,moduleSymbol:Yr.moduleSymbol,isFromPackageJson:Yr.isFromPackageJson})}),ve=ar.skippedAny(),G|=ar.resolvedAny()?8:0,G|=ar.resolvedBeyondLimit()?16:0});function ir(ar){const jn=Hr(ar.moduleSymbol.valueDeclaration,Bi);if(!jn){const oi=Ep(ar.moduleSymbol.name);return yT.nodeCoreModules.has(oi)&&ns(oi,"node:")!==ZM(r,e)?!1:kn?kn.allowsImportingAmbientModule(ar.moduleSymbol,Ge(ar.isFromPackageJson)):!0}return lZ(ar.isFromPackageJson?on:e,r,jn,o,kn,Ge(ar.isFromPackageJson),Tt)}}function Sr(F,ye){const Oe=ya(F);ct[Oe]!==Gl.GlobalsOrKeywords&&(rt[be.length]=ye,ct[Oe]=Q?Gl.LocationPriority:Gl.AutoImportSuggestions,be.push(F))}function wi(F,ye){Kn(ne)||F.forEach(Oe=>{if(!Yt(Oe))return;const We=Pj(Oe,Ia(i),void 0,0,!1);if(!We)return;const{name:Tt}=We,It=_We(Oe,Tt,ye,e,u,i,o,f);if(!It)return;const on={kind:128,...It};G|=32,rt[be.length]=on,be.push(Oe)})}function Yt(F){return!!(F.flags&8196)}function Gt(F,ye,Oe){let We=F;for(;We&&!hY(We,ye,Oe);)We=We.parent;return We}function Sn(F){const ye=Wo(),Oe=ze(F)||$e(F)||_t(F)||Gr(F)||uF(F);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Wo()-ye)),Oe}function Gr(F){if(F.kind===12)return!0;if(F.kind===32&&F.parent){if(ne===F.parent&&(ne.kind===286||ne.kind===285))return!1;if(F.parent.kind===286)return ne.parent.kind!==286;if(F.parent.kind===287||F.parent.kind===285)return!!F.parent.parent&&F.parent.parent.kind===284}return!1}function Er(){if(Y){const F=Y.parent.kind,ye=Ij(Y);switch(ye){case 28:return F===213||F===176||F===214||F===209||F===226||F===184||F===210;case 21:return F===213||F===176||F===214||F===217||F===196;case 23:return F===209||F===181||F===167;case 144:case 145:case 102:return!0;case 25:return F===267;case 19:return F===263||F===210;case 64:return F===260||F===226;case 16:return F===228;case 17:return F===239;case 134:return F===174||F===304;case 42:return F===174}if(IN(ye))return!0}return!1}function ze(F){return(qH(F)||aW(F))&&(E5(F,a)||a===F.end&&(!!F.isUnterminated||qH(F)))}function ut(){const F=AWe(Y);if(!F)return 0;const Oe=(sA(F.parent)?F.parent:void 0)||F,We=ISe(Oe,m);if(!We)return 0;const Tt=m.getTypeFromTypeNode(Oe),It=Fj(We,m),on=Fj(Tt,m),kn=new Set;return on.forEach(ir=>kn.add(ir.escapedName)),be=es(be,zr(It,ir=>!kn.has(ir.escapedName))),De=0,fe=!0,1}function kt(){const F=be.length,ye=SWe(Y,a,r);if(!ye)return 0;De=0;let Oe,We;if(ye.kind===210){const Tt=OWe(ye,m);if(Tt===void 0)return ye.flags&67108864?2:(Xe=!0,0);const It=m.getContextualType(ye,4),on=(It||Tt).getStringIndexType(),kn=(It||Tt).getNumberIndexType();if(fe=!!on||!!kn,Oe=Oj(Tt,It,ye,m),We=ye.properties,Oe.length===0&&!kn)return Xe=!0,0}else{E.assert(ye.kind===206),fe=!1;const Tt=hm(ye.parent);if(!h6(Tt))return E.fail("Root declaration is not variable-like.");let It=i1(Tt)||!!Vl(Tt)||Tt.parent.parent.kind===250;if(!It&&Tt.kind===169&&(nt(Tt.parent)?It=!!m.getContextualType(Tt.parent):(Tt.parent.kind===174||Tt.parent.kind===178)&&(It=nt(Tt.parent.parent)&&!!m.getContextualType(Tt.parent.parent))),It){const on=m.getTypeAtLocation(ye);if(!on)return 2;Oe=m.getPropertiesOfType(on).filter(kn=>m.isPropertyAccessible(ye,!1,!1,on,kn)),We=ye.elements}}if(Oe&&Oe.length>0){const Tt=Fn(Oe,E.checkDefined(We));be=es(be,Tt),hi(),ye.kind===210&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(B(F),wi(Tt,ye))}return 1}function it(){if(!Y)return 0;const F=Y.kind===19||Y.kind===28?Hr(Y.parent,lO):NM(Y)?Hr(Y.parent.parent,lO):void 0;if(!F)return 0;NM(Y)||(ue=8);const{moduleSpecifier:ye}=F.kind===275?F.parent.parent:F.parent;if(!ye)return fe=!0,F.kind===275?2:0;const Oe=m.getSymbolAtLocation(ye);if(!Oe)return fe=!0,2;De=3,fe=!1;const We=m.getExportsAndPropertiesOfModule(Oe),Tt=new Set(F.elements.filter(on=>!ge(on)).map(on=>(on.propertyName||on.name).escapedText)),It=We.filter(on=>on.escapedName!=="default"&&!Tt.has(on.escapedName));return be=es(be,It),It.length||(ue=0),1}function Vt(){var F;const ye=Y&&(Y.kind===19||Y.kind===28)?Hr(Y.parent,op):void 0;if(!ye)return 0;const Oe=In(ye,Kp(Bi,Ac));return De=5,fe=!1,(F=Oe.locals)==null||F.forEach((We,Tt)=>{var It,on;be.push(We),(on=(It=Oe.symbol)==null?void 0:It.exports)!=null&&on.has(Tt)&&(ct[ya(We)]=Gl.OptionalMember)}),1}function ae(){const F=DWe(r,Y,ne,a);if(!F)return 0;if(De=3,fe=!0,ue=Y.kind===42?0:ni(F)?2:3,!ni(F))return 1;const ye=Y.kind===27?Y.parent.parent:Y.parent;let Oe=Nl(ye)?I_(ye):0;if(Y.kind===80&&!ge(Y))switch(Y.getText()){case"private":Oe=Oe|8;break;case"static":Oe=Oe|32;break;case"override":Oe=Oe|16384;break}if(ec(ye)&&(Oe|=32),!(Oe&8)){const We=ni(F)&&Oe&16384?Cb(Od(F)):f3(F),Tt=Na(We,It=>{const on=m.getTypeAtLocation(It);return Oe&32?(on==null?void 0:on.symbol)&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(on.symbol,F)):on&&m.getPropertiesOfType(on)});be=es(be,le(Tt,F.members,Oe)),pn(be,(It,on)=>{const kn=It==null?void 0:It.valueDeclaration;if(kn&&Nl(kn)&&kn.name&&Ga(kn.name)){const ir={kind:512,symbolName:m.symbolToString(It)};rt[on]=ir}})}return 1}function Me(F){return!!F.parent&&rs(F.parent)&&Cc(F.parent.parent)&&(QC(F.kind)||Xg(F))}function ke(F){if(F){const ye=F.parent;switch(F.kind){case 21:case 28:return Cc(F.parent)?F.parent:void 0;default:if(Me(F))return ye.parent}}}function ft(F){if(F){let ye;const Oe=In(F.parent,We=>ni(We)?"quit":Eo(We)&&ye===We.body?!0:(ye=We,!1));return Oe&&Oe}}function K(F){if(F){const ye=F.parent;switch(F.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(ye&&(ye.kind===285||ye.kind===286)){if(F.kind===32){const Oe=rl(F.pos,r,void 0);if(!ye.typeArguments||Oe&&Oe.kind===44)break}return ye}else if(ye.kind===291)return ye.parent.parent;break;case 11:if(ye&&(ye.kind===291||ye.kind===293))return ye.parent.parent;break;case 20:if(ye&&ye.kind===294&&ye.parent&&ye.parent.kind===291)return ye.parent.parent.parent;if(ye&&ye.kind===293)return ye.parent.parent;break}}}function $e(F){const ye=F.parent,Oe=ye.kind;switch(F.kind){case 28:return Oe===260||jt(F)||Oe===243||Oe===266||ht(Oe)||Oe===264||Oe===207||Oe===265||ni(ye)&&!!ye.typeParameters&&ye.typeParameters.end>=F.pos;case 25:return Oe===207;case 59:return Oe===208;case 23:return Oe===207;case 21:return Oe===299||ht(Oe);case 19:return Oe===266;case 30:return Oe===263||Oe===231||Oe===264||Oe===265||Px(Oe);case 126:return Oe===172&&!ni(ye.parent);case 26:return Oe===169||!!ye.parent&&ye.parent.kind===207;case 125:case 123:case 124:return Oe===169&&!Cc(ye.parent);case 130:return Oe===276||Oe===281||Oe===274;case 139:case 153:return!Lj(F);case 80:if(Oe===276&&F===ye.name&&F.text==="type")return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Oe!==276;case 42:return Cs(F.parent)&&!kc(F.parent)}if(IN(Ij(F))&&Lj(F)||Me(F)&&(!we(F)||QC(Ij(F))||ge(F)))return!1;switch(Ij(F)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Fs(F.parent)}if(In(F.parent,ni)&&F===U&&Ae(F,a))return!1;const Tt=Ty(F.parent,172);if(Tt&&F!==U&&ni(U.parent.parent)&&a<=U.end){if(Ae(F,U.end))return!1;if(F.kind!==64&&(e5(Tt)||p9(Tt)))return!0}return Xg(F)&&!nf(F.parent)&&!Vd(F.parent)&&!((ni(F.parent)||f_(F.parent)||Go(F.parent))&&(F!==U||a>U.end))}function Ae(F,ye){return F.kind!==64&&(F.kind===27||!np(F.end,ye,r))}function ht(F){return Px(F)&&F!==176}function _t(F){if(F.kind===9){const ye=F.getFullText();return ye.charAt(ye.length-1)==="."}return!1}function jt(F){return F.parent.kind===261&&!N5(F,r,m)}function Fn(F,ye){if(ye.length===0)return F;const Oe=new Set,We=new Set;for(const It of ye){if(It.kind!==303&&It.kind!==304&&It.kind!==208&&It.kind!==174&&It.kind!==177&&It.kind!==178&&It.kind!==305||ge(It))continue;let on;if(sh(It))Nt(It,Oe);else if(Oa(It)&&It.propertyName)It.propertyName.kind===80&&(on=It.propertyName.escapedText);else{const kn=os(It);on=kn&&Fd(kn)?d3(kn):void 0}on!==void 0&&We.add(on)}const Tt=F.filter(It=>!We.has(It.escapedName));return z(Oe,Tt),Tt}function Nt(F,ye){const Oe=F.expression,We=m.getSymbolAtLocation(Oe),Tt=We&&m.getTypeOfSymbolAtLocation(We,Oe),It=Tt&&Tt.properties;It&&It.forEach(on=>{ye.add(on.name)})}function hi(){be.forEach(F=>{var ye;if(F.flags&16777216){const Oe=ya(F);ct[Oe]=(ye=ct[Oe])!=null?ye:Gl.OptionalMember}})}function z(F,ye){if(F.size!==0)for(const Oe of ye)F.has(Oe.name)&&(ct[ya(Oe)]=Gl.MemberDeclaredBySpreadAssignment)}function B(F){var ye;for(let Oe=F;Oe!We.has(Tt.escapedName)&&!!Tt.declarations&&!(Lf(Tt)&8)&&!(Tt.valueDeclaration&&N_(Tt.valueDeclaration)))}function W(F,ye){const Oe=new Set,We=new Set;for(const It of ye)ge(It)||(It.kind===291?Oe.add(q3(It.name)):hS(It)&&Nt(It,We));const Tt=F.filter(It=>!Oe.has(It.escapedName));return z(We,Tt),Tt}function ge(F){return F.getStart(r)<=a&&a<=F.getEnd()}}function SWe(e,t,r){var i;if(e){const{parent:a}=e;switch(e.kind){case 19:case 28:if(ha(a)||rd(a))return a;break;case 42:return kc(a)?Hr(a.parent,ha):void 0;case 134:return Hr(a.parent,ha);case 80:if(e.text==="async"&&nf(e.parent))return e.parent.parent;{if(ha(e.parent.parent)&&(sh(e.parent)||nf(e.parent)&&yo(r,e.getEnd()).line!==yo(r,t).line))return e.parent.parent;const l=In(a,Ec);if((l==null?void 0:l.getLastToken(r))===e&&ha(l.parent))return l.parent}break;default:if(((i=a.parent)==null?void 0:i.parent)&&(kc(a.parent)||gf(a.parent)||Fu(a.parent))&&ha(a.parent.parent))return a.parent.parent;if(sh(a)&&ha(a.parent))return a.parent;const o=In(a,Ec);if(e.kind!==59&&(o==null?void 0:o.getLastToken(r))===e&&ha(o.parent))return o.parent}}}function Nj(e,t){const r=rl(e,t);return r&&e<=r.end&&(Qm(r)||su(r.kind))?{contextToken:rl(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function ESe(e,t,r,i){const a=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,o=a.getTypeChecker(),l=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(E.checkDefined(a.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?o.resolveExternalModuleSymbol(l):o.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&F6(u)||u,{symbol:u,origin:fWe(t,e,l)}):void 0}function Pj(e,t,r,i,a){if($Ue(r))return;const o=WUe(r)?r.symbolName:e.name;if(o===void 0||e.flags&1536&&qw(o.charCodeAt(0))||fD(e))return;const l={name:o,needsConvertPropertyAccess:!1};if(pf(o,t,a?1:0)||e.valueDeclaration&&N_(e.valueDeclaration))return l;switch(i){case 3:return Ute(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return o.charCodeAt(0)===32?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:E.assertNever(i)}}function wSe(e,t){if(!t)return DSe(e);const r=e+8+1;return ON[r]||(ON[r]=DSe(e).filter(i=>!kWe(qv(i.name))))}function DSe(e){return ON[e]||(ON[e]=rne().filter(t=>{const r=qv(t.name);switch(e){case 0:return!1;case 1:return NSe(r)||r===138||r===144||r===156||r===145||r===128||V8(r)&&r!==157;case 5:return NSe(r);case 2:return IN(r);case 3:return ASe(r);case 4:return QC(r);case 6:return V8(r)||r===87;case 7:return V8(r);case 8:return r===156;default:return E.assertNever(e)}}))}function kWe(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function ASe(e){return e===148}function IN(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return oW(e)}}function NSe(e){return e===134||e===135||e===130||e===152||e===156||!$9(e)&&!IN(e)}function Ij(e){var t;return we(e)?(t=py(e))!=null?t:0:e.kind}function CWe(e,t){const r=[];if(e){const i=e.getSourceFile(),a=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(bl(a)||Yc(a)&&a.moduleSpecifier)&&e===a.moduleSpecifier&&o===l&&r.push({name:ia(132),kind:"keyword",kindModifiers:"",sortText:Gl.GlobalsOrKeywords})}return r}function EWe(e,t){return In(e,r=>c6(r)&&C5(r,t)?!0:Ap(r)?"quit":!1)}function Oj(e,t,r,i){const a=t&&t!==e,o=a&&!(t.flags&3)?i.getUnionType([e,t]):e,l=wWe(o,r,i);return o.isClass()&&PSe(l)?[]:a?zr(l,u):l;function u(f){return Nn(f.declarations)?dt(f.declarations,g=>g.parent!==r):!0}}function wWe(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(zr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&PSe(i.getApparentProperties())))):e.getApparentProperties()}function PSe(e){return dt(e,t=>!!(Lf(t)&24))}function Fj(e,t){return e.isUnion()?E.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):E.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function DWe(e,t,r,i){var a;switch(r.kind){case 358:return Hr(r.parent,Xx);case 1:const o=Hr(jo(Bs(r.parent,Bi).statements),Xx);if(o&&!$a(o,20,e))return o;break;case 81:if(Hr(r.parent,Fs))return In(r,ni);break;case 80:{if(py(r)||Fs(r.parent)&&r.parent.initializer===r)return;if(Lj(r))return In(r,Xx)}}if(!!t){if(r.kind===137||we(t)&&Fs(t.parent)&&ni(r))return In(t,ni);switch(t.kind){case 64:return;case 27:case 20:return Lj(r)&&r.parent.name===r?r.parent.parent:Hr(r,Xx);case 19:case 28:return Hr(t.parent,Xx);default:if(Xx(r)){if(yo(e,t.getEnd()).line!==yo(e,i).line)return r;const o=ni(t.parent.parent)?IN:ASe;return o(t.kind)||t.kind===42||we(t)&&o((a=py(t))!=null?a:0)?t.parent.parent:void 0}return}}}function AWe(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(ef(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&ef(t.parent))return t.parent;break}}function ISe(e,t){if(!e)return;if(Ai(e)&&d9(e.parent))return t.getTypeArgumentConstraint(e);const r=ISe(e.parent,t);if(!!r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function Lj(e){return e.parent&&a9(e.parent)&&Xx(e.parent.parent)}function NWe(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&v1e(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ei(r)&&!!Pl(r);case"<":return!!r&&r.kind===30&&(!rr(r.parent)||OSe(r.parent));case"/":return!!r&&(Qa(r)?!!tD(r):r.kind===44&&h2(r.parent));case" ":return!!r&&t8(r)&&r.parent.kind===312;default:return E.assertNever(t)}}function OSe({left:e}){return _c(e)}function PWe(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const a=r.resolveName("global",void 0,111551,!1);if(a&&r.getTypeOfSymbolAtLocation(a,t)===e)return!0;const o=r.resolveName("globalThis",void 0,111551,!1);return!!(o&&r.getTypeOfSymbolAtLocation(o,t)===e)}function IWe(e){return!!(e.valueDeclaration&&I_(e.valueDeclaration)&32&&ni(e.valueDeclaration.parent))}function OWe(e,t){const r=t.getContextualType(e);if(r)return r;const i=$0(e.parent);if(rr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(nt(i))return t.getContextualType(i)}function FSe(e,t){var r,i,a;let o,l=!1;const u=f();return{isKeywordOnlyCompletion:l,keywordCompletion:o,isNewIdentifierLocation:!!(u||o===156),isTopLevelTypeOnly:!!((i=(r=Hr(u,bl))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((a=Hr(u,Hl))!=null&&a.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&MSe(u,e),replacementSpan:FWe(u)};function f(){const g=e.parent;if(Hl(g)){const m=g.getLastToken(t);if(we(e)&&m!==e){o=161,l=!0;return}return o=e.kind===156?void 0:156,Yte(g.moduleReference)?g:void 0}if(MSe(g,e)&&RSe(g.parent))return g;if(ih(g)||d1(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(o=156),RSe(g))if(e.kind===20||e.kind===80)l=!0,o=161;else return g.parent.parent;return}if(t8(e)&&Bi(g))return o=156,e;if(t8(e)&&bl(g))return o=156,Yte(g.moduleSpecifier)?g:void 0}}function FWe(e){var l,u;var t;if(!e)return;const r=(l=In(e,Kp(bl,Hl)))!=null?l:e,i=r.getSourceFile();if(Gb(r,i))return cu(r,i);E.assert(r.kind!==102&&r.kind!==276);const a=r.kind===272?(u=LSe((t=r.importClause)==null?void 0:t.namedBindings))!=null?u:r.moduleSpecifier:r.moduleReference,o={pos:r.getFirstToken().getStart(),end:a.pos};if(Gb(o,i))return T1(o)}function LSe(e){var t;return Or((t=Hr(e,ih))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&Ux(r.name.text)&&((i=rl(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function MSe(e,t){return vu(e)&&(e.isTypeOnly||t===e.name&&NM(t))}function RSe(e){if(!Yte(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(ih(e)){const t=LSe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Yte(e){var t;return _c(e)?!0:!((t=Hr(km(e)?e.expression:e,Qa))!=null&&t.text)}function LWe(e,t){if(!e)return;const r=In(e,a=>n2(a)||BSe(a)||Ps(a)?"quit":(rs(a)||Go(a))&&!Zb(a.parent)),i=In(t,a=>n2(a)||BSe(a)||Ps(a)?"quit":Ri(a));return r||i}function BSe(e){return e.parent&&Po(e.parent)&&(e.parent.body===e||e.kind===39)}function Zte(e,t,r=new Map){return i(e)||i(au(e.exportSymbol||e,t));function i(a){return!!(a.flags&788968)||t.isUnknownSymbol(a)||!!(a.flags&1536)&&td(r,ya(a))&&t.getExportsOfModule(a).some(o=>Zte(o,t,r))}}function MWe(e,t){const r=au(e,t).declarations;return!!Nn(r)&&Xi(r,YM)}function jSe(e,t){if(t.length===0)return!0;let r=!1,i,a=0;const o=e.length;for(let l=0;l(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(ene||{}),tne=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(tne||{}),nne=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(nne||{}),ON=[],rne=wu(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:ia(t),kind:"keyword",kindModifiers:"",sortText:Gl.GlobalsOrKeywords});return e})}});function ine(){const e=new Map;function t(r){const i=e.get(r.name);(!i||lne[i.kind]({name:x.value,kindModifiers:"",kind:"string",sortText:Gl.LocationPriority,replacementSpan:wY(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:y}}default:return E.assertNever(e)}}function zWe(e,t,r,i,a,o,l,u,f){if(!i||!Qa(i))return;const g=VSe(t,i,r,a,o,l,f);return g&&VWe(e,i,g,t,a,u)}function VWe(e,t,r,i,a,o){switch(r.kind){case 0:{const l=Or(r.paths,u=>u.name===e);return l&&PN(e,zSe(l.extension),l.kind,[vf(e)])}case 1:{const l=Or(r.symbols,u=>u.name===e);return l&&Xte(l,l.name,a,i,t,o)}case 2:return Or(r.types,l=>l.value===e)?PN(e,"","string",[vf(e)]):void 0;default:return E.assertNever(r)}}function JSe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:a,kind:o,span:l,extension:u})=>({name:a,kind:o,kindModifiers:zSe(u),sortText:Gl.LocationPriority,replacementSpan:l}))}}function zSe(e){switch(e){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.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return E.assertNever(e)}}function VSe(e,t,r,i,a,o,l){const u=sne(t.parent);switch(u.kind){case 201:{const k=sne(u.parent);return k.kind===205?{kind:0,paths:HSe(e,t,a,o,i,l)}:f(k)}case 303:return ha(u.parent)&&u.name===t?WWe(i,u.parent):g()||g(0);case 212:{const{expression:k,argumentExpression:C}=u;return t===lo(C)?WSe(i.getTypeAtLocation(k)):void 0}case 213:case 214:case 291:if(!iqe(t)&&!Zu(u)){const k=zN.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e);return k&&(USe(k.invocation,t,k,i)||USe(k.invocation,t,k,i,0))||g(0)}case 272:case 278:case 283:return{kind:0,paths:HSe(e,t,a,o,i,l)};case 296:const m=eR(i,u.parent.clauses),y=g();return y?{kind:2,types:y.types.filter(k=>!m.hasValue(k.value)),isNewIdentifier:!1}:void 0;default:return g()||g(0)}function f(m){switch(m.kind){case 233:case 183:{const k=In(u,C=>C.parent===m);return k?{kind:2,types:Rj(i.getTypeArgumentConstraint(k)),isNewIdentifier:!1}:void 0}case 199:const{indexType:y,objectType:x}=m;return C5(y,r)?WSe(i.getTypeFromTypeNode(x)):void 0;case 192:{const k=f(sne(m.parent));if(!k)return;const C=UWe(m,u);return k.kind===1?{kind:1,symbols:k.symbols.filter(N=>!ys(C,N.name)),hasIndexSignature:k.hasIndexSignature}:{kind:2,types:k.types.filter(N=>!ys(C,N.value)),isNewIdentifier:!1}}default:return}}function g(m=4){const y=Rj(JM(t,i,m));if(!!y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function sne(e){switch(e.kind){case 196:return aD(e);case 217:return $0(e);default:return e}}function UWe(e,t){return Hi(e.types,r=>r!==t&&Ay(r)&&fa(r.literal)?r.literal.text:void 0)}function USe(e,t,r,i,a=32){let o=!1;const l=new Map,u=[],f=U_(e)?E.checkDefined(In(t.parent,Vd)):t;i.getResolvedSignatureForStringLiteralCompletions(e,f,u,a);const g=Na(u,m=>{if(!d_(m)&&r.argumentCount>m.parameters.length)return;let y=m.getTypeParameterAtPosition(r.argumentIndex);if(U_(e)){const x=i.getTypeOfPropertyOfType(y,jD(f.name));x&&(y=x)}return o=o||!!(y.flags&4),Rj(y,l)});return Nn(g)?{kind:2,types:g,isNewIdentifier:o}:void 0}function WSe(e){return e&&{kind:1,symbols:zr(e.getApparentProperties(),t=>!(t.valueDeclaration&&N_(t.valueDeclaration))),hasIndexSignature:$Y(e)}}function WWe(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:Oj(r,i,t,e),hasIndexSignature:$Y(r)}}function Rj(e,t=new Map){return e?(e=PY(e),e.isUnion()?Na(e.types,r=>Rj(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&td(t,e.value)?[e]:Ve):Ve}function M4(e,t,r){return{name:e,kind:t,extension:r}}function ane(e){return M4(e,"directory",void 0)}function qSe(e,t,r){const i=nqe(e,t),a=e.length===0?void 0:yl(t,e.length);return r.map(({name:o,kind:l,extension:u})=>Math.max(o.indexOf(qo),o.indexOf(aw))!==-1?{name:o,kind:l,extension:u,span:a}:{name:o,kind:l,extension:u,span:i})}function HSe(e,t,r,i,a,o){return qSe(t.text,t.getStart(e)+1,qWe(e,t,r,i,a,o))}function qWe(e,t,r,i,a,o){const l=zl(t.text),u=Qa(t)?cp(e,t):void 0,f=e.path,g=Ti(f),m=one(r,1,e,a,o,u);return rqe(l)||!r.baseUrl&&!r.paths&&(Ad(l)||Koe(l))?HWe(l,g,r,i,f,m):QWe(l,g,u,r,i,m,a)}function one(e,t,r,i,a,o){return{extensionsToSearch:bp(GWe(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:a==null?void 0:a.importModuleSpecifierEnding,resolutionMode:o}}function HWe(e,t,r,i,a,o){return r.rootDirs?XWe(r.rootDirs,e,t,o,r,i,a):ra(vE(e,t,o,i,!0,a).values())}function GWe(e,t){const r=t?Hi(t.getAmbientModules(),o=>{const l=o.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...M3(e),r],a=Sc(e);return IM(a)?PD(e,i):i}function $We(e,t,r,i){e=e.map(o=>ba(Ad(o)?o:Ii(t,o)));const a=cc(e,o=>Qh(o,r,t,i)?r.substr(o.length):void 0);return Uk([...e.map(o=>Ii(o,a)),r],xx,w_)}function XWe(e,t,r,i,a,o,l){const u=a.project||o.getCurrentDirectory(),f=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),g=$We(e,u,r,f);return Na(g,m=>ra(vE(t,m,i,o,!0,l).values()))}function vE(e,t,r,i,a,o,l=ine()){var u;e===void 0&&(e=""),e=zl(e),V0(e)||(e=Ti(e)),e===""&&(e="."+qo),e=D_(e);const f=Xh(t,e),g=V0(f)?f:Ti(f);if(!a){const k=x1e(g,i);if(k){const N=C3(k,i).typesVersions;if(typeof N=="object"){const D=(u=eL(N))==null?void 0:u.paths;if(D){const M=Ti(k),V=f.slice(D_(M).length);if($Se(l,V,M,r,i,D))return l}}}}const m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!HM(i,g))return l;const y=YY(i,g,r.extensionsToSearch,void 0,["./*"]);if(y)for(let k of y){if(k=ba(k),o&&Db(k,o,t,m)===0)continue;const{name:C,extension:N}=GSe(Jl(k),i.getCompilationSettings(),r);l.add(M4(C,"script",N))}const x=WM(i,g);if(x)for(const k of x){const C=Jl(ba(k));C!=="@types"&&l.add(ane(C))}return l}function GSe(e,t,r){const i=S2.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:ig(i)};if(r.referenceKind===0)return{name:e,extension:ig(e)};const a=Zq(r.endingPreference,r.resolutionMode,t,r.importingSourceFile);if(a===3){if(Gc(e,WD))return{name:e,extension:ig(e)};const l=S2.tryGetJSExtensionForFile(e,t);return l?{name:Cy(e,l),extension:l}:{name:e,extension:ig(e)}}if((a===0||a===1)&&Gc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:gu(e),extension:ig(e)};const o=S2.tryGetJSExtensionForFile(e,t);return o?{name:Cy(e,o),extension:o}:{name:e,extension:ig(e)}}function $Se(e,t,r,i,a,o){const l=f=>o[f],u=(f,g)=>{const m=B6(f),y=B6(g),x=typeof m=="object"?m.prefix.length:f.length,k=typeof y=="object"?y.prefix.length:g.length;return Co(k,x)};return XSe(e,t,r,i,a,Jg(o),l,u)}function XSe(e,t,r,i,a,o,l,u){let f=[],g;for(const m of o){if(m===".")continue;const y=m.replace(/^\.\//,""),x=l(m);if(x){const k=B6(y);if(!k)continue;const C=typeof k=="object"&&gI(k,t);C&&(g===void 0||u(m,g)===-1)&&(g=m,f=f.filter(D=>!D.matchedPattern)),(typeof k=="string"||g===void 0||u(m,g)!==1)&&f.push({matchedPattern:C,results:YWe(y,x,t,r,i,a).map(({name:D,kind:M,extension:V})=>M4(D,M,V))})}}return f.forEach(m=>m.results.forEach(y=>e.add(y))),g!==void 0}function QWe(e,t,r,i,a,o,l){const{baseUrl:u,paths:f}=i,g=ine(),m=Sc(i);if(u){const x=ba(Ii(a.getCurrentDirectory(),u));vE(e,x,o,a,!1,void 0,g)}if(f){const x=eO(i,a);$Se(g,e,x,o,a,f)}const y=YSe(e);for(const x of KWe(e,y,l))g.add(M4(x,"external module name",void 0));if(eke(a,i,t,y,o,g),IM(m)){let x=!1;if(y===void 0)for(const k of tqe(a,t)){const C=M4(k,"external module name",void 0);g.has(C.name)||(x=!0,g.add(C))}if(!x){let k=C=>{const N=Ii(C,"node_modules");HM(a,N)&&vE(e,N,o,a,!1,void 0,g)};if(y&&Wq(i)){const C=k;k=N=>{const D=Dl(e);D.shift();let M=D.shift();if(!M)return C(N);if(ns(M,"@")){const Y=D.shift();if(!Y)return C(N);M=Ii(M,Y)}const V=Ii(N,"node_modules",M),U=Ii(V,"package.json");if(qM(a,U)){const j=C3(U,a).exports;if(j){if(typeof j!="object"||j===null)return;const ee=Jg(j),R=D.join("/")+(D.length&&V0(e)?"/":""),Z=xS(i,r===99);XSe(g,R,V,o,a,ee,oe=>Cb(QSe(j[oe],Z)),y$);return}}return C(N)}}Vg(t,k)}}return ra(g.values())}function QSe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Ds(e)){for(const r in e)if(r==="default"||t.indexOf(r)>-1||WA(t,r)){const i=e[r];return QSe(i,t)}}}function YSe(e){return cne(e)?V0(e)?e:Ti(e):void 0}function YWe(e,t,r,i,a,o){if(!vc(e,"*"))return Xl(e,"*")?Ve:f(e,"script");const l=e.slice(0,e.length-1),u=yV(r,l);if(u===void 0)return e[e.length-2]==="/"?f(l,"directory"):Na(t,m=>{var y;return(y=ZSe("",i,m,a,o))==null?void 0:y.map(({name:x,...k})=>({name:l+x,...k}))});return Na(t,g=>ZSe(u,i,g,a,o));function f(g,m){return ns(g,r)?[{name:Uv(g),kind:m,extension:void 0}]:Ve}}function ZSe(e,t,r,i,a){if(!a.readDirectory)return;const o=B6(r);if(o===void 0||Gs(o))return;const l=Xh(o.prefix),u=V0(o.prefix)?l:Ti(l),f=V0(o.prefix)?"":Jl(l),g=cne(e),m=g?V0(e)?e:Ti(e):void 0,y=g?Ii(u,f+m):u,x=ba(o.suffix),k=x&&vD("_"+x),C=k?[Cy(x,k),x]:[x],N=ba(Ii(t,y)),D=g?N:D_(N)+f,M=x?C.map(j=>"**/*"+j):["./*"],V=Hi(YY(a,N,i.extensionsToSearch,void 0,M),j=>{const ee=Y(j);if(ee){if(cne(ee))return ane(Dl(KSe(ee))[1]);const{name:R,extension:Z}=GSe(ee,a.getCompilationSettings(),i);return M4(R,"script",Z)}}),U=x?Ve:Hi(WM(a,N),j=>j==="node_modules"?void 0:ane(j));return[...V,...U];function Y(j){return cc(C,ee=>{const R=ZWe(ba(j),D,ee);return R===void 0?void 0:KSe(R)})}}function ZWe(e,t,r){return ns(e,t)&&vc(e,r)?e.slice(t.length,e.length-r.length):void 0}function KSe(e){return e[0]===qo?e.slice(1):e}function KWe(e,t,r){const a=r.getAmbientModules().map(o=>Ep(o.name)).filter(o=>ns(o,e)&&o.indexOf("*")<0);if(t!==void 0){const o=D_(t);return a.map(l=>IC(l,o))}return a}function eqe(e,t,r,i){const a=Ui(e,t),o=$m(e.text,a.pos),l=o&&Or(o,C=>t>=C.pos&&t<=C.end);if(!l)return;const u=e.text.slice(l.pos,t),f=tke.exec(u);if(!f)return;const[,g,m,y]=f,x=Ti(e.path),k=m==="path"?vE(y,x,one(r,0,e),i,!0,e.path):m==="types"?eke(i,r,x,YSe(y),one(r,1,e)):E.fail();return qSe(y,l.pos+g.length,ra(k.values()))}function eke(e,t,r,i,a,o=ine()){const l=new Map,u=GM(()=>JA(t,e))||Ve;for(const g of u)f(g);for(const g of ZY(r,e)){const m=Ii(Ti(g),"node_modules/@types");f(m)}return o;function f(g){if(!!HM(e,g))for(const m of WM(e,g)){const y=uL(m);if(!(t.types&&!ys(t.types,y)))if(i===void 0)l.has(y)||(o.add(M4(y,"external module name",void 0)),l.set(y,!0));else{const x=Ii(g,m),k=Hq(i,y,Q0(e));k!==void 0&&vE(k,x,a,e,!1,void 0,o)}}}}function tqe(e,t){if(!e.readFile||!e.fileExists)return Ve;const r=[];for(const i of ZY(t,e)){const a=C3(i,e);for(const o of nke){const l=a[o];if(!!l)for(const u in l)oo(l,u)&&!ns(u,"@types/")&&r.push(u)}}return r}function nqe(e,t){const r=Math.max(e.lastIndexOf(qo),e.lastIndexOf(aw)),i=r!==-1?r+1:0,a=e.length-i;return a===0||pf(e.substr(i,a),99)?void 0:yl(t+i,a)}function rqe(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function cne(e){return Xl(e,qo)}function iqe(e){return Js(e.parent)&&wl(e.parent.arguments)===e&&we(e.parent.expression)&&e.parent.expression.escapedText==="require"}var lne,tke,nke,sqe=Rt({"src/services/stringCompletions.ts"(){Wr(),_ne(),lne={directory:0,script:1,["external module name"]:2},tke=/^(\/\/\/\s*zWe,getStringLiteralCompletions:()=>jWe});var aqe=Rt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){sqe()}}),$S={};C_($S,{CompletionKind:()=>nne,CompletionSource:()=>ene,SortText:()=>Gl,StringCompletions:()=>Bj,SymbolOriginInfoKind:()=>tne,createCompletionDetails:()=>PN,createCompletionDetailsForSymbol:()=>Xte,getCompletionEntriesFromSymbols:()=>Gte,getCompletionEntryDetails:()=>hWe,getCompletionEntrySymbol:()=>vWe,getCompletionsAtPosition:()=>XUe,getPropertiesForObjectExpression:()=>Oj,moduleSpecifierResolutionCacheAttemptLimit:()=>Kte,moduleSpecifierResolutionLimit:()=>Mj});var _ne=Rt({"src/services/_namespaces/ts.Completions.ts"(){BWe(),aqe()}});function une(e,t,r,i){const a=_qe(e,r,i);return(o,l,u)=>{const{directImports:f,indirectUsers:g}=oqe(e,t,a,l,r,i);return{indirectUsers:g,...cqe(f,o,l.exportKind,r,u)}}}function oqe(e,t,r,{exportingModuleSymbol:i,exportKind:a},o,l){const u=IS(),f=IS(),g=[],m=!!i.globalExports,y=m?void 0:[];return k(i),{directImports:g,indirectUsers:x()};function x(){if(m)return e;if(i.declarations)for(const U of i.declarations)Zv(U)&&t.has(U.getSourceFile().fileName)&&M(U);return y.map(Rn)}function k(U){const Y=V(U);if(Y){for(const j of Y)if(!!u(j))switch(l&&l.throwIfCancellationRequested(),j.kind){case 213:if(Zu(j)){C(j);break}if(!m){const R=j.parent;if(a===2&&R.kind===260){const{name:Z}=R;if(Z.kind===80){g.push(Z);break}}}break;case 80:break;case 271:D(j,j.name,Lr(j,1),!1);break;case 272:g.push(j);const ee=j.importClause&&j.importClause.namedBindings;ee&&ee.kind===274?D(j,ee.name,!1,!0):!m&&jx(j)&&M(FN(j));break;case 278:j.exportClause?j.exportClause.kind===280?M(FN(j),!0):g.push(j):k(mqe(j,o));break;case 205:!m&&j.isTypeOf&&!j.qualifier&&N(j)&&M(j.getSourceFile(),!0),g.push(j);break;default:E.failBadSyntaxKind(j,"Unexpected import kind.")}}}function C(U){const Y=In(U,jj)||U.getSourceFile();M(Y,!!N(U,!0))}function N(U,Y=!1){return In(U,j=>Y&&jj(j)?"quit":Np(j)&&dt(j.modifiers,aS))}function D(U,Y,j,ee){if(a===2)ee||g.push(U);else if(!m){const R=FN(U);E.assert(R.kind===312||R.kind===267),j||lqe(R,Y,o)?M(R,!0):M(R)}}function M(U,Y=!1){if(E.assert(!m),!f(U)||(y.push(U),!Y))return;const ee=o.getMergedSymbol(U.symbol);if(!ee)return;E.assert(!!(ee.flags&1536));const R=V(ee);if(R)for(const Z of R)cg(Z)||M(FN(Z),!0)}function V(U){return r.get(ya(U).toString())}}function cqe(e,t,r,i,a){const o=[],l=[];function u(x,k){o.push([x,k])}if(e)for(const x of e)f(x);return{importSearches:o,singleReferences:l};function f(x){if(x.kind===271){pne(x)&&g(x.name);return}if(x.kind===80){g(x);return}if(x.kind===205){if(x.qualifier){const N=Ku(x.qualifier);N.escapedText===bc(t)&&l.push(N)}else r===2&&l.push(x.argument.literal);return}if(x.moduleSpecifier.kind!==11)return;if(x.kind===278){x.exportClause&&op(x.exportClause)&&m(x.exportClause);return}const{name:k,namedBindings:C}=x.importClause||{name:void 0,namedBindings:void 0};if(C)switch(C.kind){case 274:g(C.name);break;case 275:(r===0||r===1)&&m(C);break;default:E.assertNever(C)}if(k&&(r===1||r===2)&&(!a||k.escapedText===FM(t))){const N=i.getSymbolAtLocation(k);u(k,N)}}function g(x){r===2&&(!a||y(x.escapedText))&&u(x,i.getSymbolAtLocation(x))}function m(x){if(!!x)for(const k of x.elements){const{name:C,propertyName:N}=k;if(!!y((N||C).escapedText))if(N)l.push(N),(!a||C.escapedText===t.escapedName)&&u(C,i.getSymbolAtLocation(C));else{const D=k.kind===281&&k.propertyName?i.getExportSpecifierLocalTargetSymbol(k):i.getSymbolAtLocation(C);u(C,D)}}}function y(x){return x===t.escapedName||r!==0&&x==="default"}}function lqe(e,t,r){const i=r.getSymbolAtLocation(t);return!!ike(e,a=>{if(!Yc(a))return;const{exportClause:o,moduleSpecifier:l}=a;return!l&&o&&op(o)&&o.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function rke(e,t,r){var i;const a=[],o=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if((u==null?void 0:u.kind)===312){for(const f of l.referencedFiles)e.getSourceFileFromReference(l,f)===u&&a.push({kind:"reference",referencingFile:l,ref:f});for(const f of l.typeReferenceDirectives){const g=(i=e.getResolvedTypeReferenceDirectives().get(f.fileName,f.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&a.push({kind:"reference",referencingFile:l,ref:f})}}ske(l,(f,g)=>{o.getSymbolAtLocation(g)===r&&a.push(Do(f)?{kind:"implicit",literal:g,referencingFile:l}:{kind:"import",literal:g})})}return a}function _qe(e,t,r){const i=new Map;for(const a of e)r&&r.throwIfCancellationRequested(),ske(a,(o,l)=>{const u=t.getSymbolAtLocation(l);if(u){const f=ya(u).toString();let g=i.get(f);g||i.set(f,g=[]),g.push(o)}});return i}function ike(e,t){return pn(e.kind===312?e.statements:e.body.statements,r=>t(r)||jj(r)&&pn(r.body&&r.body.statements,t))}function ske(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(eD(r),r);else ike(e,r=>{switch(r.kind){case 278:case 272:{const i=r;i.moduleSpecifier&&fa(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=r;pne(i)&&t(i,i.moduleReference.expression);break}}})}function ake(e,t,r,i){return i?a():a()||o();function a(){var f;const{parent:g}=e,m=g.parent;if(t.exportSymbol)return g.kind===211?((f=t.declarations)==null?void 0:f.some(k=>k===g))&&rr(m)?x(m,!1):void 0:l(t.exportSymbol,u(g));{const k=fqe(g,e);if(k&&Lr(k,1))return Hl(k)&&k.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(k.name)}:l(t,u(k));if(lg(g))return l(t,0);if(fc(g))return y(g);if(fc(m))return y(m);if(rr(g))return x(g,!0);if(rr(m))return x(m,!0);if(a4(g)||sG(g))return l(t,0)}function y(k){if(!k.symbol.parent)return;const C=k.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:k.symbol.parent,exportKind:C}}}function x(k,C){let N;switch(uc(k)){case 1:N=0;break;case 2:N=2;break;default:return}const D=C?r.getSymbolAtLocation(K_e(Bs(k.left,Mo))):t;return D&&l(D,N)}}function o(){if(!pqe(e))return;let g=r.getImmediateAliasedSymbol(t);if(!g||(g=dqe(g,r),g.escapedName==="export="&&(g=uqe(g,r),g===void 0)))return;const m=FM(g);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:g}}function l(f,g){const m=fne(f,g,r);return m&&{kind:1,symbol:f,exportInfo:m}}function u(f){return Lr(f,1024)?1:0}}function uqe(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const a=E.checkDefined(e.valueDeclaration);if(fc(a))return(r=Hr(a.expression,Pd))==null?void 0:r.symbol;if(rr(a))return(i=Hr(a.right,Pd))==null?void 0:i.symbol;if(Bi(a))return a.symbol}function fqe(e,t){const r=Ri(e)?e:Oa(e)?Kk(e):void 0;return r?e.name!==t||Iy(r.parent)?void 0:ic(r.parent.parent)?r.parent.parent:void 0:e}function pqe(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&pne(t);case 276:return!t.propertyName;case 273:case 274:return E.assert(t.name===e),!0;case 208:return Kn(e)&&r2(t.parent.parent);default:return!1}}function fne(e,t,r){const i=e.parent;if(!i)return;const a=r.getMergedSymbol(i);return O5(a)?{exportingModuleSymbol:a,exportKind:t}:void 0}function dqe(e,t){if(e.declarations)for(const r of e.declarations){if(p_(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(kr(r)&&eg(r.expression)&&!Ei(r.name))return t.getSymbolAtLocation(r);if(nf(r)&&rr(r.parent.parent)&&uc(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function mqe(e,t){return t.getMergedSymbol(FN(e).symbol)}function FN(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(E.assert(t.kind===268),Bs(t.parent,jj))}function jj(e){return e.kind===267&&e.name.kind===11}function pne(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var dne,mne,gqe=Rt({"src/services/importTracker.ts"(){Wr(),dne=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(dne||{}),mne=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(mne||{})}});function Am(e,t=1){return{kind:t,node:e.name||e,context:hqe(e)}}function oke(e){return e&&e.kind===void 0}function hqe(e){if(l_(e))return P2(e);if(!!e.parent){if(!l_(e.parent)&&!fc(e.parent)){if(Kn(e)){const r=rr(e.parent)?e.parent:Mo(e.parent)&&rr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&uc(r)!==0)return P2(r)}if(zd(e.parent)||h2(e.parent))return e.parent.parent;if(rT(e.parent)||m2(e.parent)||$C(e.parent))return e.parent;if(Qa(e)){const r=tD(e);if(r){const i=In(r,a=>l_(a)||Fi(a)||c6(a));return l_(i)?P2(i):i}}const t=In(e,Ga);return t?P2(t.parent):void 0}if(e.parent.name===e||Cc(e.parent)||fc(e.parent)||(Nx(e.parent)||Oa(e.parent))&&e.parent.propertyName===e||e.kind===90&&Lr(e.parent,1025))return P2(e.parent)}}function P2(e){if(!!e)switch(e.kind){case 260:return!ml(e.parent)||e.parent.declarations.length!==1?e:ic(e.parent.parent)?e.parent.parent:a6(e.parent.parent)?P2(e.parent.parent):e.parent;case 208:return P2(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return ql(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return _h(e.parent)?P2(In(e.parent,t=>rr(t)||a6(t))):e;default:return e}}function gne(e,t,r){if(!r)return;const i=oke(r)?MN(r.start,t,r.end):MN(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function yqe(e,t,r,i,a){const o=af(i,a),l={use:1},u=IT.getReferencedSymbolsForNode(a,o,e,r,t,l),f=e.getTypeChecker(),g=IT.getAdjustedNode(o,l),m=vqe(g)?f.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:Hi(u,({definition:y,references:x})=>y&&{definition:f.runWithCancellationToken(t,k=>xqe(y,k,o)),references:x.map(k=>kqe(k,m))})}function vqe(e){return e.kind===90||!!oD(e)||cD(e)||e.kind===137&&Cc(e.parent)}function bqe(e,t,r,i,a){const o=af(i,a);let l;const u=cke(e,t,r,o,a);if(o.parent.kind===211||o.parent.kind===208||o.parent.kind===212||o.kind===108)l=u&&[...u];else if(u){const g=dV(u),m=new Map;for(;!g.isEmpty();){const y=g.dequeue();if(!td(m,Ra(y.node)))continue;l=dn(l,y);const x=cke(e,t,r,y.node,y.node.pos);x&&g.enqueue(...x)}}const f=e.getTypeChecker();return an(l,g=>Eqe(g,f))}function cke(e,t,r,i,a){if(i.kind===312)return;const o=e.getTypeChecker();if(i.parent.kind===304){const l=[];return IT.getReferenceEntriesForShorthandPropertyAssignment(i,o,u=>l.push(Am(u))),l}else if(i.kind===108||iu(i.parent)){const l=o.getSymbolAtLocation(i);return l.valueDeclaration&&[Am(l.valueDeclaration)]}else return lke(a,i,e,r,t,{implementations:!0,use:1})}function Tqe(e,t,r,i,a,o,l){return an(_ke(IT.getReferencedSymbolsForNode(a,i,e,r,t,o)),u=>l(u,i,e.getTypeChecker()))}function lke(e,t,r,i,a,o={},l=new Set(i.map(u=>u.fileName))){return _ke(IT.getReferencedSymbolsForNode(e,t,r,i,a,o,l))}function _ke(e){return e&&Na(e,t=>t.references)}function xqe(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:m}=e,{displayParts:y,kind:x}=uke(m,t,r),k=y.map(D=>D.text).join(""),C=m.declarations&&wl(m.declarations),N=C?os(C)||C:r;return{...LN(N),name:k,kind:x,displayParts:y,context:P2(C)}}case 1:{const{node:m}=e;return{...LN(m),name:m.text,kind:"label",displayParts:[bu(m.text,17)]}}case 2:{const{node:m}=e,y=ia(m.kind);return{...LN(m),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:m}=e,y=t.getSymbolAtLocation(m),x=y&&ph.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),bT(m),m).displayParts||[vf("this")];return{...LN(m),name:"this",kind:"var",displayParts:x}}case 4:{const{node:m}=e;return{...LN(m),name:m.text,kind:"var",displayParts:[bu(el(m),8)]}}case 5:return{textSpan:T1(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[bu(`"${e.reference.fileName}"`,8)]};default:return E.assertNever(e)}})(),{sourceFile:a,textSpan:o,name:l,kind:u,displayParts:f,context:g}=i;return{containerKind:"",containerName:"",fileName:a.fileName,kind:u,name:l,textSpan:o,displayParts:f,...gne(o,a,g)}}function LN(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:MN(Ga(e)?e.expression:e,t)}}function uke(e,t,r){const i=IT.getIntersectingMeaningFromDeclarations(r,e),a=e.declarations&&wl(e.declarations)||r,{displayParts:o,symbolKind:l}=ph.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,a.getSourceFile(),a,a,i);return{displayParts:o,kind:l}}function Sqe(e,t,r,i,a){return{...Jj(e),...i&&Cqe(e,t,r,a)}}function kqe(e,t){const r=fke(e);return t?{...r,isDefinition:e.kind!==0&&pke(e.node,t)}:r}function fke(e){const t=Jj(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:yne(i),isInString:r===2?!0:void 0}}function Jj(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=MN(e.node,t);return{textSpan:r,fileName:t.fileName,...gne(r,t,e.context)}}}function Cqe(e,t,r,i){if(e.kind!==0&&we(t)){const{node:a,kind:o}=e,l=a.parent,u=t.text,f=nf(l);if(f||M5(l)&&l.name===a&&l.dotDotDotToken===void 0){const g={prefixText:u+": "},m={suffixText:": "+u};if(o===3)return g;if(o===4)return m;if(f){const y=l.parent;return ha(y)&&rr(y.parent)&&eg(y.parent.left)?g:m}else return g}else if(vu(l)&&!l.propertyName){const g=p_(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return ys(g.declarations,l)?{prefixText:u+" as "}:_p}else if(p_(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&Ou(e.node)&&Mo(e.node.parent)){const a=LY(i);return{prefixText:a,suffixText:a}}return _p}function Eqe(e,t){const r=Jj(e);if(e.kind!==0){const{node:i}=e;return{...r,...wqe(i,t)}}else return{...r,kind:"",displayParts:[]}}function wqe(e,t){const r=t.getSymbolAtLocation(l_(e)&&e.name?e.name:e);return r?uke(r,t,e):e.kind===210?{kind:"interface",displayParts:[m_(21),vf("object literal"),m_(22)]}:e.kind===231?{kind:"local class",displayParts:[m_(21),vf("anonymous local class"),m_(22)]}:{kind:A2(e),displayParts:[]}}function Dqe(e){const t=Jj(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=yne(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function MN(e,t,r){let i=e.getStart(t),a=(r||e).getEnd();return Qa(e)&&a-i>2&&(E.assert(r===void 0),i+=1,a-=1),ll(i,a)}function hne(e){return e.kind===0?e.textSpan:MN(e.node,e.node.getSourceFile())}function yne(e){const t=oD(e);return!!t&&Aqe(t)||e.kind===90||A3(e)}function pke(e,t){var r;if(!t)return!1;const i=oD(e)||(e.kind===90?e.parent:cD(e)||e.kind===137&&Cc(e.parent)?e.parent.parent:void 0),a=i&&rr(i)?i.left:void 0;return!!(i&&((r=t.declarations)==null?void 0:r.some(o=>o===i||o===a)))}function Aqe(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!_h(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||Iy(e.parent);case 173:case 171:case 355:case 348:return!1;default:return E.failBadSyntaxKind(e)}}var vne,bne,Tne,IT,Nqe=Rt({"src/services/findAllReferences.ts"(){Wr(),dke(),vne=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(vne||{}),bne=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(bne||{}),Tne=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Tne||{}),(e=>{function t(ze,ut,kt,it,Vt,ae={},Me=new Set(it.map(ke=>ke.fileName))){var ke,ft,K;if(ut=r(ut,ae),Bi(ut)){const Nt=xE.getReferenceAtPosition(ut,ze,kt);if(!(Nt!=null&&Nt.file))return;const hi=kt.getTypeChecker().getMergedSymbol(Nt.file.symbol);if(hi)return g(kt,hi,!1,it,Me);const z=kt.getFileIncludeReasons();return z?[{definition:{type:5,reference:Nt.reference,file:ut},references:a(Nt.file,z,kt)||Ve}]:void 0}if(!ae.implementations){const Nt=y(ut,it,Vt);if(Nt)return Nt}const $e=kt.getTypeChecker(),Ae=$e.getSymbolAtLocation(Cc(ut)&&ut.parent.name||ut);if(!Ae){if(!ae.implementations&&Qa(ut)){if(LM(ut)){const Nt=kt.getFileIncludeReasons(),hi=(K=(ft=(ke=ut.getSourceFile().resolvedModules)==null?void 0:ke.get(ut.text,cp(ut.getSourceFile(),ut)))==null?void 0:ft.resolvedModule)==null?void 0:K.resolvedFileName,z=hi?kt.getSourceFile(hi):void 0;if(z)return[{definition:{type:4,node:ut},references:a(z,Nt,kt)||Ve}]}return pt(ut,it,$e,Vt)}return}if(Ae.escapedName==="export=")return g(kt,Ae.parent,!1,it,Me);const ht=l(Ae,kt,it,Vt,ae,Me);if(ht&&!(Ae.flags&33554432))return ht;const _t=o(ut,Ae,$e),jt=_t&&l(_t,kt,it,Vt,ae,Me),Fn=x(Ae,ut,it,Me,$e,Vt,ae);return u(kt,ht,Fn,jt)}e.getReferencedSymbolsForNode=t;function r(ze,ut){return ut.use===1?ze=yY(ze):ut.use===2&&(ze=SM(ze)),ze}e.getAdjustedNode=r;function i(ze,ut,kt,it=new Set(kt.map(Vt=>Vt.fileName))){var Vt,ae;const Me=(Vt=ut.getSourceFile(ze))==null?void 0:Vt.symbol;if(Me)return((ae=g(ut,Me,!1,kt,it)[0])==null?void 0:ae.references)||Ve;const ke=ut.getFileIncludeReasons(),ft=ut.getSourceFile(ze);return ft&&ke&&a(ft,ke,ut)||Ve}e.getReferencesForFileName=i;function a(ze,ut,kt){let it;const Vt=ut.get(ze.path)||Ve;for(const ae of Vt)if(By(ae)){const Me=kt.getSourceFileByPath(ae.file),ke=F8(kt.getSourceFileByPath,ae);b4(ke)&&(it=dn(it,{kind:0,fileName:Me.fileName,textSpan:T1(ke)}))}return it}function o(ze,ut,kt){if(ze.parent&&lA(ze.parent)){const it=kt.getAliasedSymbol(ut),Vt=kt.getMergedSymbol(it);if(it!==Vt)return Vt}}function l(ze,ut,kt,it,Vt,ae){const Me=ze.flags&1536&&ze.declarations&&Or(ze.declarations,Bi);if(!Me)return;const ke=ze.exports.get("export="),ft=g(ut,ze,!!ke,kt,ae);if(!ke||!ae.has(Me.fileName))return ft;const K=ut.getTypeChecker();return ze=au(ke,K),u(ut,ft,x(ze,void 0,kt,ae,K,it,Vt))}function u(ze,...ut){let kt;for(const it of ut)if(!(!it||!it.length)){if(!kt){kt=it;continue}for(const Vt of it){if(!Vt.definition||Vt.definition.type!==0){kt.push(Vt);continue}const ae=Vt.definition.symbol,Me=qc(kt,ft=>!!ft.definition&&ft.definition.type===0&&ft.definition.symbol===ae);if(Me===-1){kt.push(Vt);continue}const ke=kt[Me];kt[Me]={definition:ke.definition,references:ke.references.concat(Vt.references).sort((ft,K)=>{const $e=f(ze,ft),Ae=f(ze,K);if($e!==Ae)return Co($e,Ae);const ht=hne(ft),_t=hne(K);return ht.start!==_t.start?Co(ht.start,_t.start):Co(ht.length,_t.length)})}}}return kt}function f(ze,ut){const kt=ut.kind===0?ze.getSourceFile(ut.fileName):ut.node.getSourceFile();return ze.getSourceFiles().indexOf(kt)}function g(ze,ut,kt,it,Vt){E.assert(!!ut.valueDeclaration);const ae=Hi(rke(ze,it,ut),ke=>{if(ke.kind==="import"){const ft=ke.literal.parent;if(Ay(ft)){const K=Bs(ft.parent,cg);if(kt&&!K.qualifier)return}return Am(ke.literal)}else if(ke.kind==="implicit"){const ft=ke.literal.text!==u1&&m8(ke.referencingFile,K=>K.transformFlags&2?_g(K)||rT(K)||y2(K)?K:void 0:"skip")||ke.referencingFile.statements[0]||ke.referencingFile;return Am(ft)}else return{kind:0,fileName:ke.referencingFile.fileName,textSpan:T1(ke.ref)}});if(ut.declarations)for(const ke of ut.declarations)switch(ke.kind){case 312:break;case 267:Vt.has(ke.getSourceFile().fileName)&&ae.push(Am(ke.name));break;default:E.assert(!!(ut.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const Me=ut.exports.get("export=");if(Me!=null&&Me.declarations)for(const ke of Me.declarations){const ft=ke.getSourceFile();if(Vt.has(ft.fileName)){const K=rr(ke)&&kr(ke.left)?ke.left.expression:fc(ke)?E.checkDefined($a(ke,95,ft)):os(ke)||ke;ae.push(Am(K))}}return ae.length?[{definition:{type:0,symbol:ut},references:ae}]:Ve}function m(ze){return ze.kind===148&&uS(ze.parent)&&ze.parent.operator===148}function y(ze,ut,kt){if(V8(ze.kind))return ze.kind===116&&eT(ze.parent)||ze.kind===148&&!m(ze)?void 0:De(ut,ze.kind,kt,ze.kind===148?m:void 0);if(g6(ze.parent)&&ze.parent.name===ze)return Ne(ut,kt);if(oS(ze)&&ec(ze.parent))return[{definition:{type:2,node:ze},references:[Am(ze)]}];if(k5(ze)){const it=hM(ze.parent,ze.text);return it&&fe(it.parent,it)}else if(lY(ze))return fe(ze.parent,ze);if(C4(ze))return Nr(ze,ut,kt);if(ze.kind===108)return pi(ze)}function x(ze,ut,kt,it,Vt,ae,Me){const ke=ut&&N(ze,ut,Vt,!Er(Me))||ze,ft=ut?Sr(ut,ke):7,K=[],$e=new V(kt,it,ut?C(ut):0,Vt,ae,ft,Me,K),Ae=!Er(Me)||!ke.declarations?void 0:Or(ke.declarations,p_);if(Ae)rt(Ae.name,ke,Ae,$e.createSearch(ut,ze,void 0),$e,!0,!0);else if(ut&&ut.kind===90&&ke.escapedName==="default"&&ke.parent)tt(ut,ke,$e),U(ut,ke,{exportingModuleSymbol:ke.parent,exportKind:1},$e);else{const ht=$e.createSearch(ut,ke,void 0,{allSearchSymbols:ut?ur(ke,ut,Vt,Me.use===2,!!Me.providePrefixAndSuffixTextForRename,!!Me.implementations):[ke]});k(ke,$e,ht)}return K}function k(ze,ut,kt){const it=oe(ze);if(it)ve(it,it.getSourceFile(),kt,ut,!(Bi(it)&&!ys(ut.sourceFiles,it)));else for(const Vt of ut.sourceFiles)ut.cancellationToken.throwIfCancellationRequested(),R(Vt,kt,ut)}function C(ze){switch(ze.kind){case 176:case 137:return 1;case 80:if(ni(ze.parent))return E.assert(ze.parent.name===ze),2;default:return 0}}function N(ze,ut,kt,it){const{parent:Vt}=ut;return p_(Vt)&&it?ct(ut,ze,Vt,kt):cc(ze.declarations,ae=>{if(!ae.parent){if(ze.flags&33554432)return;E.fail(`Unexpected symbol at ${E.formatSyntaxKind(ut.kind)}: ${E.formatSymbol(ze)}`)}return ef(ae.parent)&&cS(ae.parent.parent)?kt.getPropertyOfType(kt.getTypeFromTypeNode(ae.parent.parent),ze.name):void 0})}let D;(ze=>{ze[ze.None=0]="None",ze[ze.Constructor=1]="Constructor",ze[ze.Class=2]="Class"})(D||(D={}));function M(ze){if(!(ze.flags&33555968))return;const ut=ze.declarations&&Or(ze.declarations,kt=>!Bi(kt)&&!Ac(kt));return ut&&ut.symbol}class V{constructor(ut,kt,it,Vt,ae,Me,ke,ft){this.sourceFiles=ut,this.sourceFilesSet=kt,this.specialSearchKind=it,this.checker=Vt,this.cancellationToken=ae,this.searchMeaning=Me,this.options=ke,this.result=ft,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=IS(),this.markSeenReExportRHS=IS(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(ut){return this.sourceFilesSet.has(ut.fileName)}getImportSearches(ut,kt){return this.importTracker||(this.importTracker=une(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ut,kt,this.options.use===2)}createSearch(ut,kt,it,Vt={}){const{text:ae=Ep(bc(F6(kt)||M(kt)||kt)),allSearchSymbols:Me=[kt]}=Vt,ke=Ho(ae),ft=this.options.implementations&&ut?Gr(ut,kt,this.checker):void 0;return{symbol:kt,comingFrom:it,text:ae,escapedText:ke,parents:ft,allSearchSymbols:Me,includes:K=>ys(Me,K)}}referenceAdder(ut){const kt=ya(ut);let it=this.symbolIdToReferences[kt];return it||(it=this.symbolIdToReferences[kt]=[],this.result.push({definition:{type:0,symbol:ut},references:it})),(Vt,ae)=>it.push(Am(Vt,ae))}addStringOrCommentReference(ut,kt){this.result.push({definition:void 0,references:[{kind:0,fileName:ut,textSpan:kt}]})}markSearchedSymbols(ut,kt){const it=Ra(ut),Vt=this.sourceFileToSeenSymbols[it]||(this.sourceFileToSeenSymbols[it]=new Set);let ae=!1;for(const Me of kt)ae=Rv(Vt,ya(Me))||ae;return ae}}function U(ze,ut,kt,it){const{importSearches:Vt,singleReferences:ae,indirectUsers:Me}=it.getImportSearches(ut,kt);if(ae.length){const ke=it.referenceAdder(ut);for(const ft of ae)j(ft,it)&&ke(ft)}for(const[ke,ft]of Vt)Xe(ke.getSourceFile(),it.createSearch(ke,ft,1),it);if(Me.length){let ke;switch(kt.exportKind){case 0:ke=it.createSearch(ze,ut,1);break;case 1:ke=it.options.use===2?void 0:it.createSearch(ze,ut,1,{text:"default"});break}if(ke)for(const ft of Me)R(ft,ke,it)}}function Y(ze,ut,kt,it,Vt,ae,Me,ke){const ft=une(ze,new Set(ze.map(ht=>ht.fileName)),ut,kt),{importSearches:K,indirectUsers:$e,singleReferences:Ae}=ft(it,{exportKind:Me?1:0,exportingModuleSymbol:Vt},!1);for(const[ht]of K)ke(ht);for(const ht of Ae)we(ht)&&cg(ht.parent)&&ke(ht);for(const ht of $e)for(const _t of ne(ht,Me?"default":ae)){const jt=ut.getSymbolAtLocation(_t),Fn=dt(jt==null?void 0:jt.declarations,Nt=>!!Hr(Nt,fc));we(_t)&&!Nx(_t.parent)&&(jt===it||Fn)&&ke(_t)}}e.eachExportReference=Y;function j(ze,ut){return be(ze,ut)?ut.options.use!==2?!0:we(ze)?!(Nx(ze.parent)&&ze.escapedText==="default"):!1:!1}function ee(ze,ut){if(!!ze.declarations)for(const kt of ze.declarations){const it=kt.getSourceFile();Xe(it,ut.createSearch(kt,ze,0),ut,ut.includesSourceFile(it))}}function R(ze,ut,kt){AK(ze).get(ut.escapedText)!==void 0&&Xe(ze,ut,kt)}function Z(ze,ut){return _h(ze.parent.parent)?ut.getPropertySymbolOfDestructuringAssignment(ze):void 0}function oe(ze){const{declarations:ut,flags:kt,parent:it,valueDeclaration:Vt}=ze;if(Vt&&(Vt.kind===218||Vt.kind===231))return Vt;if(!ut)return;if(kt&8196){const ke=Or(ut,ft=>Iu(ft,8)||N_(ft));return ke?Ty(ke,263):void 0}if(ut.some(M5))return;const ae=it&&!(ze.flags&262144);if(ae&&!(O5(it)&&!it.globalExports))return;let Me;for(const ke of ut){const ft=bT(ke);if(Me&&Me!==ft||!ft||ft.kind===312&&!Yu(ft))return;if(Me=ft,_o(Me)){let K;for(;K=iq(Me);)Me=K}}return ae?Me.getSourceFile():Me}function _e(ze,ut,kt,it=kt){return X(ze,ut,kt,()=>!0,it)||!1}e.isSymbolReferencedInFile=_e;function X(ze,ut,kt,it,Vt=kt){const ae=Du(ze.parent,ze.parent.parent)?wa(ut.getSymbolsOfParameterPropertyDeclaration(ze.parent,ze.text)):ut.getSymbolAtLocation(ze);if(!!ae)for(const Me of ne(kt,ae.name,Vt)){if(!we(Me)||Me===ze||Me.escapedText!==ze.escapedText)continue;const ke=ut.getSymbolAtLocation(Me);if(ke===ae||ut.getShorthandAssignmentValueSymbol(Me.parent)===ae||p_(Me.parent)&&ct(Me,ke,Me.parent,ut)===ae){const ft=it(Me);if(ft)return ft}}}e.eachSymbolReferenceInFile=X;function H(ze,ut){return zr(ne(ut,ze),Vt=>!!oD(Vt)).reduce((Vt,ae)=>{const Me=it(ae);return!dt(Vt.declarationNames)||Me===Vt.depth?(Vt.declarationNames.push(ae),Vt.depth=Me):Me$e===Vt)&&it(Me,ft))return!0}return!1}e.someSignatureUsage=Q;function ne(ze,ut,kt=ze){return Hi(ue(ze,ut,kt),it=>{const Vt=af(ze,it);return Vt===ze?void 0:Vt})}function ue(ze,ut,kt=ze){const it=[];if(!ut||!ut.length)return it;const Vt=ze.text,ae=Vt.length,Me=ut.length;let ke=Vt.indexOf(ut,kt.pos);for(;ke>=0&&!(ke>kt.end);){const ft=ke+Me;(ke===0||!fy(Vt.charCodeAt(ke-1),99))&&(ft===ae||!fy(Vt.charCodeAt(ft),99))&&it.push(ke),ke=Vt.indexOf(ut,ke+Me+1)}return it}function fe(ze,ut){const kt=ze.getSourceFile(),it=ut.text,Vt=Hi(ne(kt,it,ze),ae=>ae===ut||k5(ae)&&hM(ae,it)===ut?Am(ae):void 0);return[{definition:{type:1,node:ut},references:Vt}]}function G(ze,ut){switch(ze.kind){case 81:if(Oy(ze.parent))return!0;case 80:return ze.text.length===ut.length;case 15:case 11:{const kt=ze;return(yM(kt)||pY(ze)||Fhe(ze)||Js(ze.parent)&&Rx(ze.parent)&&ze.parent.arguments[1]===ze)&&kt.text.length===ut.length}case 9:return yM(ze)&&ze.text.length===ut.length;case 90:return ut.length===7;default:return!1}}function Ne(ze,ut){const kt=Na(ze,it=>(ut.throwIfCancellationRequested(),Hi(ne(it,"meta",it),Vt=>{const ae=Vt.parent;if(g6(ae))return Am(ae)})));return kt.length?[{definition:{type:2,node:kt[0].node},references:kt}]:void 0}function De(ze,ut,kt,it){const Vt=Na(ze,ae=>(kt.throwIfCancellationRequested(),Hi(ne(ae,ia(ut),ae),Me=>{if(Me.kind===ut&&(!it||it(Me)))return Am(Me)})));return Vt.length?[{definition:{type:2,node:Vt[0].node},references:Vt}]:void 0}function Xe(ze,ut,kt,it=!0){return kt.cancellationToken.throwIfCancellationRequested(),ve(ze,ze,ut,kt,it)}function ve(ze,ut,kt,it,Vt){if(!!it.markSearchedSymbols(ut,kt.allSearchSymbols))for(const ae of ue(ut,kt.text,ze))xe(ut,ae,kt,it,Vt)}function be(ze,ut){return!!(vT(ze)&ut.searchMeaning)}function xe(ze,ut,kt,it,Vt){const ae=af(ze,ut);if(!G(ae,kt.text)){!it.options.implementations&&(it.options.findInStrings&&xT(ze,ut)||it.options.findInComments&&Khe(ze,ut))&&it.addStringOrCommentReference(ze.fileName,yl(ut,kt.text.length));return}if(!be(ae,it))return;let Me=it.checker.getSymbolAtLocation(ae);if(!Me)return;const ke=ae.parent;if(vu(ke)&&ke.propertyName===ae)return;if(p_(ke)){E.assert(ae.kind===80),rt(ae,Me,ke,kt,it,Vt);return}const ft=Pn(kt,Me,ae,it);if(!ft){Ge(Me,kt,it);return}switch(it.specialSearchKind){case 0:Vt&&tt(ae,ft,it);break;case 1:mt(ae,ze,kt,it);break;case 2:Je(ae,kt,it);break;default:E.assertNever(it.specialSearchKind)}Kn(ae)&&Oa(ae.parent)&&r2(ae.parent.parent.parent)&&(Me=ae.parent.symbol,!Me)||Pe(ae,Me,kt,it)}function rt(ze,ut,kt,it,Vt,ae,Me){E.assert(!Me||!!Vt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:ke,propertyName:ft,name:K}=kt,$e=ke.parent,Ae=ct(ze,ut,kt,Vt.checker);if(!Me&&!it.includes(Ae))return;if(ft?ze===ft?($e.moduleSpecifier||ht(),ae&&Vt.options.use!==2&&Vt.markSeenReExportRHS(K)&&tt(K,E.checkDefined(kt.symbol),Vt)):Vt.markSeenReExportRHS(ze)&&ht():Vt.options.use===2&&K.escapedText==="default"||ht(),!Er(Vt.options)||Me){const jt=ze.escapedText==="default"||kt.name.escapedText==="default"?1:0,Fn=E.checkDefined(kt.symbol),Nt=fne(Fn,jt,Vt.checker);Nt&&U(ze,Fn,Nt,Vt)}if(it.comingFrom!==1&&$e.moduleSpecifier&&!ft&&!Er(Vt.options)){const _t=Vt.checker.getExportSpecifierLocalTargetSymbol(kt);_t&&ee(_t,Vt)}function ht(){ae&&tt(ze,Ae,Vt)}}function ct(ze,ut,kt,it){return pe(ze,kt)&&it.getExportSpecifierLocalTargetSymbol(kt)||ut}function pe(ze,ut){const{parent:kt,propertyName:it,name:Vt}=ut;return E.assert(it===ze||Vt===ze),it?it===ze:!kt.parent.moduleSpecifier}function Pe(ze,ut,kt,it){const Vt=ake(ze,ut,it.checker,kt.comingFrom===1);if(!Vt)return;const{symbol:ae}=Vt;Vt.kind===0?Er(it.options)||ee(ae,it):U(ze,ae,Vt.exportInfo,it)}function Ge({flags:ze,valueDeclaration:ut},kt,it){const Vt=it.checker.getShorthandAssignmentValueSymbol(ut),ae=ut&&os(ut);!(ze&33554432)&&ae&&kt.includes(Vt)&&tt(ae,Vt,it)}function tt(ze,ut,kt){const{kind:it,symbol:Vt}="kind"in ut?ut:{kind:void 0,symbol:ut};if(kt.options.use===2&&ze.kind===90)return;const ae=kt.referenceAdder(Vt);kt.options.implementations?xn(ze,ae,kt):ae(ze,it)}function mt(ze,ut,kt,it){R8(ze)&&tt(ze,kt.symbol,it);const Vt=()=>it.referenceAdder(kt.symbol);if(ni(ze.parent))E.assert(ze.kind===90||ze.parent.name===ze),ot(kt.symbol,ut,Vt());else{const ae=Sn(ze);ae&&(Pt(ae,Vt()),_r(ae,it))}}function Je(ze,ut,kt){tt(ze,ut.symbol,kt);const it=ze.parent;if(kt.options.use===2||!ni(it))return;E.assert(it.name===ze);const Vt=kt.referenceAdder(ut.symbol);for(const ae of it.members)!(i6(ae)&&Os(ae))||ae.body&&ae.body.forEachChild(function Me(ke){ke.kind===110?Vt(ke):!Cs(ke)&&!ni(ke)&&ke.forEachChild(Me)})}function ot(ze,ut,kt){const it=Jt(ze);if(it&&it.declarations)for(const Vt of it.declarations){const ae=$a(Vt,137,ut);E.assert(Vt.kind===176&&!!ae),kt(ae)}ze.exports&&ze.exports.forEach(Vt=>{const ae=Vt.valueDeclaration;if(ae&&ae.kind===174){const Me=ae.body;Me&&Gt(Me,110,ke=>{R8(ke)&&kt(ke)})}})}function Jt(ze){return ze.members&&ze.members.get("__constructor")}function Pt(ze,ut){const kt=Jt(ze.symbol);if(!!(kt&&kt.declarations))for(const it of kt.declarations){E.assert(it.kind===176);const Vt=it.body;Vt&&Gt(Vt,108,ae=>{oY(ae)&&ut(ae)})}}function bt(ze){return!!Jt(ze.symbol)}function _r(ze,ut){if(bt(ze))return;const kt=ze.symbol,it=ut.createSearch(void 0,kt,void 0);k(kt,ut,it)}function xn(ze,ut,kt){if(Xg(ze)&&wi(ze.parent)){ut(ze);return}if(ze.kind!==80)return;ze.parent.kind===304&&Yt(ze,kt.checker,ut);const it=Bt(ze);if(it){ut(it);return}const Vt=In(ze,ke=>!hu(ke.parent)&&!Ai(ke.parent)&&!Ob(ke.parent)),ae=Vt.parent;if(p9(ae)&&ae.type===Vt&&kt.markSeenContainingTypeReference(ae))if(i1(ae))Me(ae.initializer);else if(Cs(ae)&&ae.body){const ke=ae.body;ke.kind===241?t2(ke,ft=>{ft.expression&&Me(ft.expression)}):Me(ke)}else Fb(ae)&&Me(ae.expression);function Me(ke){er(ke)&&ut(ke)}}function Bt(ze){return we(ze)||kr(ze)?Bt(ze.parent):rh(ze)?Hr(ze.parent.parent,Kp(ni,f_)):void 0}function er(ze){switch(ze.kind){case 217:return er(ze.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function xr(ze,ut,kt,it){if(ze===ut)return!0;const Vt=ya(ze)+","+ya(ut),ae=kt.get(Vt);if(ae!==void 0)return ae;kt.set(Vt,!1);const Me=!!ze.declarations&&ze.declarations.some(ke=>f3(ke).some(ft=>{const K=it.getTypeAtLocation(ft);return!!K&&!!K.symbol&&xr(K.symbol,ut,kt,it)}));return kt.set(Vt,Me),Me}function pi(ze){let ut=Jw(ze,!1);if(!ut)return;let kt=32;switch(ut.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:kt&=c1(ut),ut=ut.parent;break;default:return}const it=ut.getSourceFile(),Vt=Hi(ne(it,"super",ut),ae=>{if(ae.kind!==108)return;const Me=Jw(ae,!1);return Me&&Os(Me)===!!kt&&Me.parent.symbol===ut.symbol?Am(ae):void 0});return[{definition:{type:0,symbol:ut.symbol},references:Vt}]}function ki(ze){return ze.kind===80&&ze.parent.kind===169&&ze.parent.name===ze}function Nr(ze,ut,kt){let it=ru(ze,!1,!1),Vt=32;switch(it.kind){case 174:case 173:if(kp(it)){Vt&=c1(it),it=it.parent;break}case 172:case 171:case 176:case 177:case 178:Vt&=c1(it),it=it.parent;break;case 312:if(zc(it)||ki(ze))return;case 262:case 218:break;default:return}const ae=Na(it.kind===312?ut:[it.getSourceFile()],ke=>(kt.throwIfCancellationRequested(),ne(ke,"this",Bi(it)?ke:it).filter(ft=>{if(!C4(ft))return!1;const K=ru(ft,!1,!1);if(!Pd(K))return!1;switch(it.kind){case 218:case 262:return it.symbol===K.symbol;case 174:case 173:return kp(it)&&it.symbol===K.symbol;case 231:case 263:case 210:return K.parent&&Pd(K.parent)&&it.symbol===K.parent.symbol&&Os(K)===!!Vt;case 312:return K.kind===312&&!zc(K)&&!ki(ft)}}))).map(ke=>Am(ke));return[{definition:{type:3,node:cc(ae,ke=>rs(ke.node.parent)?ke.node:void 0)||ze},references:ae}]}function pt(ze,ut,kt,it){const Vt=xM(ze,kt),ae=Na(ut,Me=>(it.throwIfCancellationRequested(),Hi(ne(Me,ze.text),ke=>{if(Qa(ke)&&ke.text===ze.text)if(Vt){const ft=xM(ke,kt);if(Vt!==kt.getStringType()&&Vt===ft)return Am(ke,2)}else return sS(ke)&&!Gb(ke,Me)?void 0:Am(ke,2)})));return[{definition:{type:4,node:ze},references:ae}]}function ur(ze,ut,kt,it,Vt,ae){const Me=[];return hn(ze,ut,kt,it,!(it&&Vt),(ke,ft,K)=>{K&&cn(ze)!==cn(K)&&(K=void 0),Me.push(K||ft||ke)},()=>!ae),Me}function hn(ze,ut,kt,it,Vt,ae,Me){const ke=mN(ut);if(ke){const jt=kt.getShorthandAssignmentValueSymbol(ut.parent);if(jt&&it)return ae(jt,void 0,void 0,3);const Fn=kt.getContextualType(ke.parent),Nt=Fn&&cc(qR(ke,kt,Fn,!0),le=>ht(le,4));if(Nt)return Nt;const hi=Z(ut,kt),z=hi&&ae(hi,void 0,void 0,4);if(z)return z;const B=jt&&ae(jt,void 0,void 0,3);if(B)return B}const ft=o(ut,ze,kt);if(ft){const jt=ae(ft,void 0,void 0,1);if(jt)return jt}const K=ht(ze);if(K)return K;if(ze.valueDeclaration&&Du(ze.valueDeclaration,ze.valueDeclaration.parent)){const jt=kt.getSymbolsOfParameterPropertyDeclaration(Bs(ze.valueDeclaration,rs),ze.name);return E.assert(jt.length===2&&!!(jt[0].flags&1)&&!!(jt[1].flags&4)),ht(ze.flags&1?jt[1]:jt[0])}const $e=lc(ze,281);if(!it||$e&&!$e.propertyName){const jt=$e&&kt.getExportSpecifierLocalTargetSymbol($e);if(jt){const Fn=ae(jt,void 0,void 0,1);if(Fn)return Fn}}if(!it){let jt;return Vt?jt=M5(ut.parent)?MM(kt,ut.parent):void 0:jt=_t(ze,kt),jt&&ht(jt,4)}if(E.assert(it),Vt){const jt=_t(ze,kt);return jt&&ht(jt,4)}function ht(jt,Fn){return cc(kt.getRootSymbols(jt),Nt=>ae(jt,Nt,void 0,Fn)||(Nt.parent&&Nt.parent.flags&96&&Me(Nt)?Ct(Nt.parent,Nt.name,kt,hi=>ae(jt,Nt,hi,Fn)):void 0))}function _t(jt,Fn){const Nt=lc(jt,208);if(Nt&&M5(Nt))return MM(Fn,Nt)}}function Ct(ze,ut,kt,it){const Vt=new Map;return ae(ze);function ae(Me){if(!(!(Me.flags&96)||!td(Vt,ya(Me))))return cc(Me.declarations,ke=>cc(f3(ke),ft=>{const K=kt.getTypeAtLocation(ft),$e=K&&K.symbol&&kt.getPropertyOfType(K,ut);return K&&$e&&(cc(kt.getRootSymbols($e),it)||ae(K.symbol))}))}}function cn(ze){return ze.valueDeclaration?!!(I_(ze.valueDeclaration)&32):!1}function Pn(ze,ut,kt,it){const{checker:Vt}=it;return hn(ut,kt,Vt,!1,it.options.use!==2||!!it.options.providePrefixAndSuffixTextForRename,(ae,Me,ke,ft)=>(ke&&cn(ut)!==cn(ke)&&(ke=void 0),ze.includes(ke||Me||ae)?{symbol:Me&&!(rc(ae)&6)?Me:ae,kind:ft}:void 0),ae=>!(ze.parents&&!ze.parents.some(Me=>xr(ae.parent,Me,it.inheritsFromCache,Vt))))}function Sr(ze,ut){let kt=vT(ze);const{declarations:it}=ut;if(it){let Vt;do{Vt=kt;for(const ae of it){const Me=x5(ae);Me&kt&&(kt|=Me)}}while(kt!==Vt)}return kt}e.getIntersectingMeaningFromDeclarations=Sr;function wi(ze){return ze.flags&33554432?!(f_(ze)||Dp(ze)):h6(ze)?i1(ze):Eo(ze)?!!ze.body:ni(ze)||ww(ze)}function Yt(ze,ut,kt){const it=ut.getSymbolAtLocation(ze),Vt=ut.getShorthandAssignmentValueSymbol(it.valueDeclaration);if(Vt)for(const ae of Vt.getDeclarations())x5(ae)&1&&kt(ae)}e.getReferenceEntriesForShorthandPropertyAssignment=Yt;function Gt(ze,ut,kt){bs(ze,it=>{it.kind===ut&&kt(it),Gt(it,ut,kt)})}function Sn(ze){return Pq(gM(ze).parent)}function Gr(ze,ut,kt){const it=k4(ze)?ze.parent:void 0,Vt=it&&kt.getTypeAtLocation(it.expression),ae=Hi(Vt&&(Vt.isUnionOrIntersection()?Vt.types:Vt.symbol===ut.parent?void 0:[Vt]),Me=>Me.symbol&&Me.symbol.flags&96?Me.symbol:void 0);return ae.length===0?void 0:ae}function Er(ze){return ze.use===2&&ze.providePrefixAndSuffixTextForRename}})(IT||(IT={}))}}),Oo={};C_(Oo,{Core:()=>IT,DefinitionKind:()=>vne,EntryKind:()=>bne,ExportKind:()=>dne,FindReferencesUse:()=>Tne,ImportExport:()=>mne,createImportTracker:()=>une,findModuleReferences:()=>rke,findReferenceOrRenameEntries:()=>Tqe,findReferencedSymbols:()=>yqe,getContextNode:()=>P2,getExportInfo:()=>fne,getImplementationsAtPosition:()=>bqe,getImportOrExportSymbol:()=>ake,getReferenceEntriesForNode:()=>lke,getTextSpanOfEntry:()=>hne,isContextWithStartAndEndNode:()=>oke,isDeclarationOfSymbol:()=>pke,isWriteAccessForReference:()=>yne,nodeEntry:()=>Am,toContextSpan:()=>gne,toHighlightSpan:()=>Dqe,toReferenceEntry:()=>fke,toRenameLocation:()=>Sqe});var dke=Rt({"src/services/_namespaces/ts.FindAllReferences.ts"(){gqe(),Nqe()}});function mke(e,t,r,i,a){var o,l;const u=hke(t,r,e),f=u&&[zqe(u.reference.fileName,u.fileName,u.unverified)]||Ve;if(u!=null&&u.file)return f;const g=af(t,r);if(g===t)return;const{parent:m}=g,y=e.getTypeChecker();if(g.kind===164||we(g)&&kF(m)&&m.tagName===g)return Iqe(y,g)||Ve;if(k5(g)){const M=hM(g.parent,g.text);return M?[xne(y,M,"label",g.text,void 0)]:void 0}if(g.kind===107){const M=In(g.parent,V=>ec(V)?"quit":Eo(V));return M?[RN(y,M)]:void 0}if(g.kind===135){const M=In(g,U=>Eo(U));return M&&dt(M.modifiers,U=>U.kind===134)?[RN(y,M)]:void 0}if(g.kind===127){const M=In(g,U=>Eo(U));return M&&M.asteriskToken?[RN(y,M)]:void 0}if(oS(g)&&ec(g.parent)){const M=g.parent.parent,{symbol:V,failedAliasResolution:U}=zj(M,y,a),Y=zr(M.members,ec),j=V?y.symbolToString(V,M):"",ee=g.getSourceFile();return an(Y,R=>{let{pos:Z}=Md(R);return Z=_a(ee.text,Z),xne(y,R,"constructor","static {}",j,!1,U,{start:Z,length:6})})}let{symbol:x,failedAliasResolution:k}=zj(g,y,a),C=g;if(i&&k){const M=pn([g,...(x==null?void 0:x.declarations)||Ve],U=>In(U,Ole)),V=M&&_3(M);V&&({symbol:x,failedAliasResolution:k}=zj(V,y,a),C=V)}if(!x&&LM(C)){const M=(l=(o=t.resolvedModules)==null?void 0:o.get(C.text,cp(t,C)))==null?void 0:l.resolvedModule;if(M)return[{name:C.text,fileName:M.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:yl(0,0),failedAliasResolution:k,isAmbient:ou(M.resolvedFileName),unverified:C!==g}]}if(!x)return es(f,Bqe(g,y));if(i&&Xi(x.declarations,M=>M.getSourceFile().fileName===t.fileName))return;const N=Uqe(y,g);if(N&&!(U_(g.parent)&&Wqe(N))){const M=RN(y,N,k);if(y.getRootSymbols(x).some(V=>Pqe(V,N)))return[M];{const V=R4(y,x,g,k,N)||Ve;return g.kind===108?[M,...V]:[...V,M]}}if(g.parent.kind===304){const M=y.getShorthandAssignmentValueSymbol(x.valueDeclaration),V=M!=null&&M.declarations?M.declarations.map(U=>TE(U,y,M,g,!1,k)):Ve;return es(V,gke(y,g))}if(Jc(g)&&Oa(m)&&rd(m.parent)&&g===(m.propertyName||m.name)){const M=L5(g),V=y.getTypeAtLocation(m.parent);return M===void 0?Ve:Na(V.isUnion()?V.types:[V],U=>{const Y=U.getProperty(M);return Y&&R4(y,Y,g)})}const D=gke(y,g);return es(f,D.length?D:R4(y,x,g,k))}function Pqe(e,t){var r;return e===t.symbol||e===t.symbol.parent||Kl(t.parent)||!Qv(t.parent)&&e===((r=Hr(t.parent,Pd))==null?void 0:r.symbol)}function gke(e,t){const r=mN(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Na(qR(r,e,i,!1),a=>R4(e,a,t))}return Ve}function Iqe(e,t){const r=In(t,Nl);if(!(r&&r.name))return;const i=In(r,ni);if(!i)return;const a=Od(i);if(!a)return;const o=lo(a.expression),l=Fl(o)?o.symbol:e.getSymbolAtLocation(o);if(!l)return;const u=Oi(f6(r.name)),f=$c(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(!!f)return R4(e,f,t)}function hke(e,t,r){var i,a,o,l;const u=B4(e.referencedFiles,t);if(u){const m=r.getSourceFileFromReference(e,u);return m&&{reference:u,fileName:m.fileName,file:m,unverified:!1}}const f=B4(e.typeReferenceDirectives,t);if(f){const m=(i=r.getResolvedTypeReferenceDirectives().get(f.fileName,f.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,y=m&&r.getSourceFile(m.resolvedFileName);return y&&{reference:f,fileName:y.fileName,file:y,unverified:!1}}const g=B4(e.libReferenceDirectives,t);if(g){const m=r.getLibFileFromReference(g);return m&&{reference:g,fileName:m.fileName,file:m,unverified:!1}}if((a=e.resolvedModules)!=null&&a.size()){const m=J8(e,t);if(LM(m)&&Al(m.text)&&e.resolvedModules.has(m.text,cp(e,m))){const y=(l=(o=e.resolvedModules.get(m.text,cp(e,m)))==null?void 0:o.resolvedModule)==null?void 0:l.resolvedFileName,x=y||Xh(Ti(e.fileName),m.text);return{file:r.getSourceFile(x),fileName:x,reference:{pos:m.getStart(),end:m.getEnd(),fileName:m.text},unverified:!y}}}}function Oqe(e,t){const r=t.symbol.name;if(!kne.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function yke(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!kne.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function Fqe(e,t,r,i){var a,o;if(!!(Rr(t)&4)&&Oqe(e,t))return bE(e.getTypeArguments(t)[0],e,r,i);if(yke(e,t)&&t.aliasTypeArguments)return bE(t.aliasTypeArguments[0],e,r,i);if(Rr(t)&32&&t.target&&yke(e,t.target)){const l=(o=(a=t.aliasSymbol)==null?void 0:a.declarations)==null?void 0:o[0];if(l&&Dp(l)&&ap(l.type)&&l.type.typeArguments)return bE(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function Lqe(e,t,r){const i=af(t,r);if(i===t)return;if(g6(i.parent)&&i.parent.name===i)return bE(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:a,failedAliasResolution:o}=zj(i,e,!1);if(!a)return;const l=e.getTypeOfSymbolAtLocation(a,i),u=Mqe(a,l,e),f=u&&bE(u,e,i,o),[g,m]=f&&f.length!==0?[u,f]:[l,bE(l,e,i,o)];return m.length?[...Fqe(e,g,i,o),...m]:!(a.flags&111551)&&a.flags&788968?R4(e,au(a,e),i,o):void 0}function bE(e,t,r,i){return Na(e.isUnion()&&!(e.flags&32)?e.types:[e],a=>a.symbol&&R4(t,a.symbol,r,i))}function Mqe(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Ri(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(wa(i))}}function Rqe(e,t,r){const i=mke(e,t,r);if(!i||i.length===0)return;const a=B4(t.referencedFiles,r)||B4(t.typeReferenceDirectives,r)||B4(t.libReferenceDirectives,r);if(a)return{definitions:i,textSpan:T1(a)};const o=af(t,r),l=yl(o.getStart(),o.getWidth());return{definitions:i,textSpan:l}}function Bqe(e,t){return Hi(t.getIndexInfosAtLocation(e),r=>r.declaration&&RN(t,r.declaration))}function zj(e,t,r){const i=t.getSymbolAtLocation(e);let a=!1;if((i==null?void 0:i.declarations)&&i.flags&2097152&&!r&&jqe(e,i.declarations[0])){const o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};a=!0}return{symbol:i,failedAliasResolution:a}}function jqe(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function Jqe(e){if(!l3(e))return!1;const t=In(e,r=>Kl(r)?!0:l3(r)?!1:"quit");return!!t&&uc(t)===5}function R4(e,t,r,i,a){const o=zr(t.declarations,y=>y!==a),l=zr(o,y=>!Jqe(y)),u=dt(l)?l:o;return f()||g()||an(u,y=>TE(y,e,t,r,!1,i));function f(){if(t.flags&32&&!(t.flags&19)&&(R8(r)||r.kind===137)){const y=Or(o,ni)||E.fail("Expected declaration to have at least one class-like declaration");return m(y.members,!0)}}function g(){return cY(r)||dY(r)?m(o,!1):void 0}function m(y,x){if(!y)return;const k=y.filter(x?Cc:Cs),C=k.filter(N=>!!N.body);return k.length?C.length!==0?C.map(N=>TE(N,e,t,r)):[TE(ka(k),e,t,r,!1,i)]:void 0}}function TE(e,t,r,i,a,o){const l=t.symbolToString(r),u=ph.getSymbolKind(t,r,i),f=r.parent?t.symbolToString(r.parent,i):"";return xne(t,e,u,l,f,a,o)}function xne(e,t,r,i,a,o,l,u){const f=t.getSourceFile();if(!u){const g=os(t)||t;u=cu(g,f)}return{fileName:f.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:a,...Oo.toContextSpan(u,f,Oo.getContextNode(t)),isLocal:!Sne(e,t),isAmbient:!!(t.flags&33554432),unverified:o,failedAliasResolution:l}}function Sne(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(i1(t.parent)&&t.parent.initializer===t)return Sne(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(Iu(t,8))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Sne(e,t.parent);default:return!1}}function RN(e,t,r){return TE(t,e,t.symbol,t,!1,r)}function B4(e,t){return Or(e,r=>mw(r,t))}function zqe(e,t,r){return{fileName:t,textSpan:ll(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function Vqe(e){const t=In(e,i=>!k4(i)),r=t==null?void 0:t.parent;return r&&Qv(r)&&L9(r)===t?r:void 0}function Uqe(e,t){const r=Vqe(t),i=r&&e.getResolvedSignature(r);return Hr(i&&i.declaration,a=>Cs(a)&&!og(a))}function Wqe(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var kne,qqe=Rt({"src/services/goToDefinition.ts"(){Wr(),kne=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),xE={};C_(xE,{createDefinitionInfo:()=>TE,findReferenceInPosition:()=>B4,getDefinitionAndBoundSpan:()=>Rqe,getDefinitionAtPosition:()=>mke,getReferenceAtPosition:()=>hke,getTypeDefinitionAtPosition:()=>Lqe});var Hqe=Rt({"src/services/_namespaces/ts.GoToDefinition.ts"(){qqe()}});function Gqe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function $qe(e){return e.includeInlayParameterNameHints==="literals"}function vke(e){return e.interactiveInlayHints===!0}function Xqe(e){const{file:t,program:r,span:i,cancellationToken:a,preferences:o}=e,l=t.text,u=r.getCompilerOptions(),f=r.getTypeChecker(),g=[];return m(t),g;function m(ne){if(!(!ne||ne.getFullWidth()===0)){switch(ne.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:a.throwIfCancellationRequested()}if(!!$I(i,ne.pos,ne.getFullWidth())&&!(Ai(ne)&&!rh(ne)))return o.includeInlayVariableTypeHints&&Ri(ne)||o.includeInlayPropertyDeclarationTypeHints&&Fs(ne)?M(ne):o.includeInlayEnumMemberValueHints&&b2(ne)?N(ne):Gqe(o)&&(Js(ne)||d2(ne))?V(ne):(o.includeInlayFunctionParameterTypeHints&&Eo(ne)&&CO(ne)&&Z(ne),o.includeInlayFunctionLikeReturnTypeHints&&y(ne)&&ee(ne)),bs(ne,m)}}function y(ne){return Po(ne)||_o(ne)||tl(ne)||kc(ne)||gf(ne)}function x(ne,ue,fe,G,Ne){let De=`${G?"...":""}${ne}`,Xe;vke(o)?(Xe=[Q(De,ue,Ne),{text:":"}],De=""):De+=":",g.push({text:De,position:fe,kind:"Parameter",whitespaceAfter:!0,displayParts:Xe})}function k(ne,ue){g.push({text:`: ${ne.length>Cne?ne.substr(0,Cne-3)+"...":ne}`,position:ue,kind:"Type",whitespaceBefore:!0})}function C(ne,ue){g.push({text:`= ${ne}`,position:ue,kind:"Enum",whitespaceBefore:!0})}function N(ne){if(ne.initializer)return;const ue=f.getConstantValue(ne);ue!==void 0&&C(ue.toString(),ne.end)}function D(ne){return ne.symbol&&ne.symbol.flags&1536}function M(ne){if(!ne.initializer||Ps(ne.name)||Ri(ne)&&!H(ne)||Vl(ne))return;const fe=f.getTypeAtLocation(ne);if(D(fe))return;const G=_e(fe);if(G){if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&Tx(ne.name.getText(),G))return;k(G,ne.name.end)}}function V(ne){const ue=ne.arguments;if(!ue||!ue.length)return;const fe=[],G=f.getResolvedSignatureForSignatureHelp(ne,fe);if(!G||!fe.length)return;let Ne=0;const De=vke(o)?ne.getSourceFile():void 0;for(const Xe of ue){const ve=lo(Xe);if($qe(o)&&!j(ve))continue;let be=0;if(jd(ve)){const rt=f.getTypeAtLocation(ve.expression);if(f.isTupleType(rt)){const{elementFlags:ct,fixedLength:pe}=rt.target;if(pe===0)continue;const Pe=qc(ct,tt=>!(tt&1));(Pe<0?pe:Pe)>0&&(be=Pe<0?pe:Pe)}}const xe=f.getParameterIdentifierInfoAtPosition(G,Ne);if(Ne=Ne+(be||1),xe){const{parameter:rt,parameterName:ct,isRestParameter:pe}=xe;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!U(ve,ct))&&!pe)continue;const Ge=Oi(ct);if(Y(ve,Ge))continue;x(Ge,rt,Xe.getStart(),pe,De)}}}function U(ne,ue){return we(ne)?ne.text===ue:kr(ne)?ne.name.text===ue:!1}function Y(ne,ue){if(!pf(ue,u.target,wD(t.scriptKind)))return!1;const fe=$m(l,ne.pos);if(!(fe!=null&&fe.length))return!1;const G=bke(ue);return dt(fe,Ne=>G.test(l.substring(Ne.pos,Ne.end)))}function j(ne){switch(ne.kind){case 224:{const ue=ne.operand;return Nb(ue)||we(ue)&&U3(ue.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const ue=ne.escapedText;return X(ue)||U3(ue)}}return Nb(ne)}function ee(ne){if(Po(ne)&&!$a(ne,21,t)||ep(ne)||!ne.body)return;const fe=f.getSignatureFromDeclaration(ne);if(!fe)return;const G=f.getReturnTypeOfSignature(fe);if(D(G))return;const Ne=_e(G);!Ne||k(Ne,R(ne))}function R(ne){const ue=$a(ne,22,t);return ue?ue.end:ne.parameters.end}function Z(ne){const ue=f.getSignatureFromDeclaration(ne);if(!!ue)for(let fe=0;fe{const Ne=f.typeToTypeNode(ne,void 0,71286784);E.assertIsDefined(Ne,"should always get typenode"),fe.writeNode(4,Ne,t,G)})}function X(ne){return ne==="undefined"}function H(ne){if((Ub(ne)||Ri(ne)&&d6(ne))&&ne.initializer){const ue=lo(ne.initializer);return!(j(ue)||d2(ue)||ha(ue)||Fb(ue))}return!0}function Q(ne,ue,fe){return{text:ne,span:cu(ue,fe),file:fe.fileName}}}var Cne,bke,Qqe=Rt({"src/services/inlayHints.ts"(){Wr(),Cne=30,bke=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),Ene={};C_(Ene,{provideInlayHints:()=>Xqe});var Yqe=Rt({"src/services/_namespaces/ts.InlayHints.ts"(){Qqe()}});function Zqe(e,t){const r=[];return RY(e,i=>{for(const a of eHe(i)){const o=Ap(a)&&a.tags&&Or(a.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(a.comment===void 0&&!o||Ap(a)&&i.kind!==353&&i.kind!==345&&a.tags&&a.tags.some(u=>u.kind===353||u.kind===345)&&!a.tags.some(u=>u.kind===348||u.kind===349))continue;let l=a.comment?XS(a.comment,t):[];o&&o.comment&&(l=l.concat(XS(o.comment,t))),ys(r,l,Kqe)||r.push(l)}}),bp(eV(r,[D4()]))}function Kqe(e,t){return P7(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function eHe(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];default:return rq(e)}}function tHe(e,t){const r=[];return RY(e,i=>{const a=gy(i);if(!(a.some(o=>o.kind===353||o.kind===345)&&!a.some(o=>o.kind===348||o.kind===349)))for(const o of a)r.push({name:o.tagName.text,text:nHe(o,t)})}),r}function XS(e,t){return typeof e=="string"?[vf(e)]:Na(e,r=>r.kind===328?[vf(r.text)]:f1e(r,t))}function nHe(e,t){const{comment:r,kind:i}=e,a=rHe(i);switch(i){case 356:const u=e.typeExpression;return u?o(u):r===void 0?void 0:XS(r,t);case 336:return o(e.class);case 335:return o(e.class);case 352:const f=e,g=[];if(f.constraint&&g.push(vf(f.constraint.getText())),Nn(f.typeParameters)){Nn(g)&&g.push(sc());const y=f.typeParameters[f.typeParameters.length-1];pn(f.typeParameters,x=>{g.push(a(x.getText())),y!==x&&g.push(m_(28),sc())})}return r&&g.push(sc(),...XS(r,t)),g;case 351:case 357:return o(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:m}=e;return m?o(m):r===void 0?void 0:XS(r,t);default:return r===void 0?void 0:XS(r,t)}function o(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[vf(u),...XS(r,t)]:[a(u),sc(),...XS(r,t)]:[vf(u)]}}function rHe(e){switch(e){case 348:return o1e;case 355:return c1e;case 352:return _1e;case 353:case 345:return l1e;default:return vf}}function iHe(){return xke||(xke=an(Dne,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:$S.SortText.LocationPriority})))}function sHe(){return Ske||(Ske=an(Dne,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:$S.SortText.LocationPriority})))}function Tke(e){return{name:e,kind:"",kindModifiers:"",displayParts:[vf(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function aHe(e){if(!we(e.name))return Ve;const t=e.name.text,r=e.parent,i=r.parent;return Cs(i)?Hi(i.parameters,a=>{if(!we(a.name))return;const o=a.name.text;if(!(r.tags.some(l=>l!==e&&ad(l)&&we(l.name)&&l.name.escapedText===o)||t!==void 0&&!ns(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:$S.SortText.LocationPriority}}):[]}function oHe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[vf(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function cHe(e,t,r,i){const a=Ui(t,r),o=In(a,Ap);if(o&&(o.comment!==void 0||Nn(o.tags)))return;const l=a.getStart(t);if(!o&&l0;if(N&&!V){const U=D+e+k+" * ",Y=l===r?e+k:"";return{newText:U+e+N+k+M+Y,caretOffset:U.length}}return{newText:D+M,caretOffset:3}}function lHe(e,t){const{text:r}=e,i=up(t,e);let a=i;for(;a<=t&&Nd(r.charCodeAt(a));a++);return r.slice(i,a)}function _He(e,t,r,i){return e.map(({name:a,dotDotDotToken:o},l)=>{const u=a.kind===80?a.text:"param"+l;return`${r} * @param ${t?o?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function uHe(e,t){return`${e} * @returns${t}`}function fHe(e,t){return hle(e,r=>wne(r,t))}function wne(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:BN(r,t)};case 303:return wne(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const a=e;return a.type&&og(a.type)?{commentOwner:e,parameters:a.type.parameters,hasReturn:BN(a.type,t)}:{commentOwner:e}}case 243:{const o=e.declarationList.declarations,l=o.length===1&&o[0].initializer?pHe(o[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:BN(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return wne(e.expression,t);case 226:{const a=e;return uc(a)===0?"quit":Cs(a.right)?{commentOwner:e,parameters:a.right.parameters,hasReturn:BN(a.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(_o(i)||Po(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:BN(i,t)}}}function BN(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(og(e)||Po(e)&&nt(e.body)||Eo(e)&&e.body&&vs(e.body)&&!!t2(e.body,r=>r))}function pHe(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Or(e.members,Cc)}}var Dne,xke,Ske,kke,dHe=Rt({"src/services/jsDoc.ts"(){Wr(),Dne=["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","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],kke=Tke}}),Uy={};C_(Uy,{getDocCommentTemplateAtPosition:()=>cHe,getJSDocParameterNameCompletionDetails:()=>oHe,getJSDocParameterNameCompletions:()=>aHe,getJSDocTagCompletionDetails:()=>Tke,getJSDocTagCompletions:()=>sHe,getJSDocTagNameCompletionDetails:()=>kke,getJSDocTagNameCompletions:()=>iHe,getJsDocCommentsFromDeclarations:()=>Zqe,getJsDocTagsFromDeclarations:()=>tHe});var mHe=Rt({"src/services/_namespaces/ts.JsDoc.ts"(){dHe()}});function gHe(e,t,r,i,a,o){const l=tr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:a}),u=o==="SortAndCombine"||o==="All",f=u,g=o==="RemoveUnused"||o==="All",m=Vj(e,e.statements.filter(bl)),y=OHe(a,u?()=>wke(m,a)===2:void 0),x=C=>(g&&(C=yHe(C,e,i)),f&&(C=Cke(C,y,e)),u&&(C=R0(C,(N,D)=>One(N,D,y))),C);m.forEach(C=>k(C,x)),o!=="RemoveUnused"&&FHe(e).forEach(C=>k(C,N=>Ane(N,y)));for(const C of e.statements.filter(__)){if(!C.body)continue;if(Vj(e,C.body.statements.filter(bl)).forEach(D=>k(D,x)),o!=="RemoveUnused"){const D=C.body.statements.filter(Yc);k(D,M=>Ane(M,y))}}return l.getChanges();function k(C,N){if(Nn(C)===0)return;Xn(C[0],1024);const D=f?AC(C,U=>jN(U.moduleSpecifier)):[C],M=u?R0(D,(U,Y)=>Pne(U[0].moduleSpecifier,Y[0].moduleSpecifier,y)):D,V=Na(M,U=>jN(U[0].moduleSpecifier)||U[0].moduleSpecifier===void 0?N(U):U);if(V.length===0)l.deleteNodes(e,C,{leadingTriviaOption:tr.LeadingTriviaOption.Exclude,trailingTriviaOption:tr.TrailingTriviaOption.Include},!0);else{const U={leadingTriviaOption:tr.LeadingTriviaOption.Exclude,trailingTriviaOption:tr.TrailingTriviaOption.Include,suffix:s0(r,t.options)};l.replaceNodeWithNodes(e,C[0],V,U);const Y=l.nodeHasTrailingComment(e,C[0],U);l.deleteNodes(e,C.slice(1),{trailingTriviaOption:tr.TrailingTriviaOption.Include},Y)}}}function Vj(e,t){const r=U0(e.languageVersion,!1,e.languageVariant),i=[];let a=0;for(const o of t)i[a]&&hHe(e,o,r)&&a++,i[a]||(i[a]=[]),i[a].push(o);return i}function hHe(e,t,r){const i=t.getFullStart(),a=t.getStart();r.setText(e.text,i,a-i);let o=0;for(;r.getTokenStart()=2))return!0;return!1}function yHe(e,t,r){const i=r.getTypeChecker(),a=r.getCompilerOptions(),o=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),f=[];for(const m of e){const{importClause:y,moduleSpecifier:x}=m;if(!y){f.push(m);continue}let{name:k,namedBindings:C}=y;if(k&&!g(k)&&(k=void 0),C)if(d1(C))g(C.name)||(C=void 0);else{const N=C.elements.filter(D=>g(D.name));N.lengthfa(i)&&i.text===r)}function jN(e){return e!==void 0&&Qa(e)?e.text:void 0}function bHe(e,t,r){const i=Uj(t);return Cke(e,i,r)}function Cke(e,t,r){if(e.length===0)return e;const{importWithoutClause:i,typeOnlyImports:a,regularImports:o}=THe(e),l=[];i&&l.push(i);for(const u of[o,a]){const f=u===a,{defaultImports:g,namespaceImports:m,namedImports:y}=u;if(!f&&g.length===1&&m.length===1&&y.length===0){const Y=g[0];l.push(SE(Y,Y.importClause.name,m[0].importClause.namedBindings));continue}const x=R0(m,(Y,j)=>t(Y.importClause.namedBindings.name.text,j.importClause.namedBindings.name.text));for(const Y of x)l.push(SE(Y,void 0,Y.importClause.namedBindings));const k=wl(g),C=wl(y),N=k!=null?k:C;if(!N)continue;let D;const M=[];if(g.length===1)D=g[0].importClause.name;else for(const Y of g)M.push(I.createImportSpecifier(!1,I.createIdentifier("default"),Y.importClause.name));M.push(...AHe(y));const V=I.createNodeArray(Eke(M,t),C==null?void 0:C.importClause.namedBindings.elements.hasTrailingComma),U=V.length===0?D?void 0:I.createNamedImports(Ve):C?I.updateNamedImports(C.importClause.namedBindings,V):I.createNamedImports(V);r&&U&&(C==null?void 0:C.importClause.namedBindings)&&!Gb(C.importClause.namedBindings,r)&&Xn(U,2),f&&D&&U?(l.push(SE(N,D,void 0)),l.push(SE(C!=null?C:N,void 0,U))):l.push(SE(N,D,U))}return l}function THe(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const a of e){if(a.importClause===void 0){t=t||a;continue}const o=a.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=a.importClause;l&&o.defaultImports.push(a),u&&(d1(u)?o.namespaceImports.push(a):o.namedImports.push(a))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function xHe(e,t){const r=Uj(t);return Ane(e,r)}function Ane(e,t){if(e.length===0)return e;const{exportWithoutClause:r,namedExports:i,typeOnlyExports:a}=l(e),o=[];r&&o.push(r);for(const u of[i,a]){if(u.length===0)continue;const f=[];f.push(...Na(u,y=>y.exportClause&&op(y.exportClause)?y.exportClause.elements:Ve));const g=Eke(f,t),m=u[0];o.push(I.updateExportDeclaration(m,m.modifiers,m.isTypeOnly,m.exportClause&&(op(m.exportClause)?I.updateNamedExports(m.exportClause,g):I.updateNamespaceExport(m.exportClause,m.exportClause.name)),m.moduleSpecifier,m.assertClause))}return o;function l(u){let f;const g=[],m=[];for(const y of u)y.exportClause===void 0?f=f||y:y.isTypeOnly?m.push(y):g.push(y);return{exportWithoutClause:f,namedExports:g,typeOnlyExports:m}}}function SE(e,t,r){return I.updateImportDeclaration(e,e.modifiers,I.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.assertClause)}function Eke(e,t){return R0(e,(r,i)=>Nne(r,i,t))}function Nne(e,t,r){return jv(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}function SHe(e,t,r){const i=Uj(!!r);return Pne(e,t,i)}function Pne(e,t,r){const i=e===void 0?void 0:jN(e),a=t===void 0?void 0:jN(t);return jv(i===void 0,a===void 0)||jv(Al(i),Al(a))||r(i,a)}function Ine(e){var t;switch(e.kind){case 271:return(t=Hr(e.moduleReference,km))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function kHe(e,t){return wke(Vj(e,e.statements.filter(bl)),t)}function wke(e,t){const r=QS(t,!1),i=QS(t,!0);let a=3,o=!1;for(const l of e){if(l.length>1){const f=lI(l,g=>{var y;var m;return(y=(m=Hr(g.moduleSpecifier,fa))==null?void 0:m.text)!=null?y:""},r,i);if(f&&(a&=f,o=!0),!a)return a}const u=Or(l,f=>{var g,m;return((m=Hr((g=f.importClause)==null?void 0:g.namedBindings,ih))==null?void 0:m.elements.length)>1});if(u){const f=Fne(u.importClause.namedBindings.elements,t);if(f&&(a&=f,o=!0),!a)return a}if(a!==3)return a}return o?0:a}function CHe(e,t){const r=QS(t,!1),i=QS(t,!0);return lI(e,a=>jN(Ine(a))||"",r,i)}function EHe(e,t,r){const i=Gh(e,t,Zo,(a,o)=>One(a,o,r));return i<0?~i:i}function wHe(e,t,r){const i=Gh(e,t,Zo,(a,o)=>Nne(a,o,r));return i<0?~i:i}function One(e,t,r){return Pne(Ine(e),Ine(t),r)||DHe(e,t)}function DHe(e,t){return Co(Dke(e),Dke(t))}function Dke(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function AHe(e){return Na(e,t=>an(NHe(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?I.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function NHe(e){var t;return((t=e.importClause)==null?void 0:t.namedBindings)&&ih(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function Uj(e){return e?foe:w_}function PHe(e,t){var f,g,m;const r=IHe(t),i=(f=t.organizeImportsCaseFirst)!=null?f:!1,a=(g=t.organizeImportsNumericCollation)!=null?g:!1,o=(m=t.organizeImportsAccentCollation)!=null?m:!0,l=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:a}).compare}function IHe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=poe()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function QS(e,t){var i;return((i=e.organizeImportsCollation)!=null?i:"ordinal")==="unicode"?PHe(t,e):Uj(t)}function OHe(e,t){var i;const r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(i=t==null?void 0:t())!=null?i:!1;return QS(e,r)}function FHe(e){const t=[],r=e.statements,i=Nn(r);let a=0,o=0;for(;aVj(e,l))}var Ake,Fne,LHe=Rt({"src/services/organizeImports.ts"(){Wr(),Ake=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){var i;this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),(i=this._cache)!=null||(this._cache=new WeakMap),this._cache.set(e,r)}},Fne=_oe((e,t)=>{if(!toe(e,(a,o)=>jv(a.isTypeOnly,o.isTypeOnly)))return 0;const r=QS(t,!1),i=QS(t,!0);return lI(e,a=>a.name.text,r,i)},new Ake)}}),Fp={};C_(Fp,{coalesceExports:()=>xHe,coalesceImports:()=>bHe,compareImportOrExportSpecifiers:()=>Nne,compareImportsOrRequireStatements:()=>One,compareModuleSpecifiers:()=>SHe,detectImportDeclarationSorting:()=>CHe,detectImportSpecifierSorting:()=>Fne,detectSorting:()=>kHe,getImportDeclarationInsertionIndex:()=>EHe,getImportSpecifierInsertionIndex:()=>wHe,getOrganizeImportsComparer:()=>QS,organizeImports:()=>gHe});var MHe=Rt({"src/services/_namespaces/ts.OrganizeImports.ts"(){LHe()}});function RHe(e,t){const r=[];return BHe(e,t,r),jHe(e,r),r.sort((i,a)=>i.textSpan.start-a.textSpan.start)}function BHe(e,t,r){let i=40,a=0;const o=[...e.statements,e.endOfFileToken],l=o.length;for(;a1&&i.push(JN(o,l,"comment"))}}function Pke(e,t,r,i){iS(e)||Lne(e.pos,t,r,i)}function JN(e,t,r){return OT(ll(e,t),r)}function JHe(e,t){switch(e.kind){case 241:if(Cs(e.parent))return zHe(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:const k=e.parent;if(k.tryBlock===e)return m(e.parent);if(k.finallyBlock===e){const C=$a(k,98,t);if(C)return m(C)}default:return OT(cu(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!Y6(e.parent),23);case 296:case 297:return y(e.statements);case 210:return g(e);case 209:return g(e,23);case 284:return o(e);case 288:return l(e);case 285:case 286:return u(e.attributes);case 228:case 15:return f(e);case 207:return m(e,!1,!Oa(e.parent),23);case 219:return a(e);case 213:return i(e);case 217:return x(e);case 275:case 279:case 300:return r(e)}function r(k){if(!k.elements.length)return;const C=$a(k,19,t),N=$a(k,20,t);if(!(!C||!N||np(C.pos,N.pos,t)))return Wj(C,N,k,t,!1,!1)}function i(k){if(!k.arguments.length)return;const C=$a(k,21,t),N=$a(k,22,t);if(!(!C||!N||np(C.pos,N.pos,t)))return Wj(C,N,k,t,!1,!0)}function a(k){if(vs(k.body)||yu(k.body)||np(k.body.getFullStart(),k.body.getEnd(),t))return;const C=ll(k.body.getFullStart(),k.body.getEnd());return OT(C,"code",cu(k))}function o(k){const C=ll(k.openingElement.getStart(t),k.closingElement.getEnd()),N=k.openingElement.tagName.getText(t),D="<"+N+">...";return OT(C,"code",C,!1,D)}function l(k){const C=ll(k.openingFragment.getStart(t),k.closingFragment.getEnd());return OT(C,"code",C,!1,"<>...")}function u(k){if(k.properties.length!==0)return JN(k.getStart(t),k.getEnd(),"code")}function f(k){if(!(k.kind===15&&k.text.length===0))return JN(k.getStart(t),k.getEnd(),"code")}function g(k,C=19){return m(k,!1,!u_(k.parent)&&!Js(k.parent),C)}function m(k,C=!1,N=!0,D=19,M=D===19?20:24){const V=$a(e,D,t),U=$a(e,M,t);return V&&U&&Wj(V,U,k,t,C,N)}function y(k){return k.length?OT(T1(k),"code"):void 0}function x(k){if(np(k.getStart(),k.getEnd(),t))return;const C=ll(k.getStart(),k.getEnd());return OT(C,"code",cu(k))}}function zHe(e,t,r){const i=VHe(e,t,r),a=$a(t,20,r);return i&&a&&Wj(i,a,e,r,e.kind!==219)}function Wj(e,t,r,i,a=!1,o=!0){const l=ll(o?e.getFullStart():e.getStart(i),t.getEnd());return OT(l,"code",cu(r,i),a)}function OT(e,t,r=e,i=!1,a="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:a,autoCollapse:i}}function VHe(e,t,r){if($_e(e.parameters,r)){const i=$a(e,21,r);if(i)return i}return $a(t,19,r)}var Ike,UHe=Rt({"src/services/outliningElementsCollector.ts"(){Wr(),Ike=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Mne={};C_(Mne,{collectElements:()=>RHe});var WHe=Rt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){UHe()}});function qHe(e,t,r,i){const a=SM(af(t,r));if(Fke(a)){const o=HHe(a,e.getTypeChecker(),t,e,i);if(o)return o}return qj(p.You_cannot_rename_this_element)}function HHe(e,t,r,i,a){const o=t.getSymbolAtLocation(e);if(!o){if(Qa(e)){const x=xM(e,t);if(x&&(x.flags&128||x.flags&1048576&&Xi(x.types,k=>!!(k.flags&128))))return Rne(e.text,e.text,"string","",e,r)}else if(_Y(e)){const x=el(e);return Rne(x,x,"label","",e,r)}return}const{declarations:l}=o;if(!l||l.length===0)return;if(l.some(x=>GHe(i,x)))return qj(p.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(we(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if(Qa(e)&&tD(e))return a.allowRenameOfImportPath?XHe(e,r,o):void 0;const u=$He(r,o,t,a);if(u)return qj(u);const f=ph.getSymbolKind(t,o,e),g=p1e(e)||Of(e)&&e.parent.kind===167?Ep(Cp(e)):void 0,m=g||t.symbolToString(o),y=g||t.getFullyQualifiedName(o);return Rne(m,y,f,ph.getSymbolModifiers(t,o),e,r)}function GHe(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Hc(r.fileName,".d.ts")}function $He(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&Or(t.declarations,u=>vu(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:a}=t;if(!a)return;const o=Oke(e.path);if(o===void 0)return dt(a,l=>C1e(l.getSourceFile().path))?p.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of a){const u=Oke(l.getSourceFile().path);if(u){const f=Math.min(o.length,u.length);for(let g=0;g<=f;g++)if(w_(o[g],u[g])!==0)return p.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function Oke(e){const t=Dl(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function XHe(e,t,r){if(!Al(e.text))return qj(p.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&Or(r.declarations,Bi);if(!i)return;const a=vc(e.text,"/index")||vc(e.text,"/index.js")?void 0:goe(gu(i.fileName),"/index"),o=a===void 0?i.fileName:a,l=a===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,f=yl(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:o,kind:l,displayName:o,fullDisplayName:o,kindModifiers:"",triggerSpan:f}}function Rne(e,t,r,i,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:QHe(a,o)}}function qj(e){return{canRename:!1,localizedErrorMessage:ss(e)}}function QHe(e,t){let r=e.getStart(t),i=e.getWidth(t);return Qa(e)&&(r+=1,i-=2),yl(r,i)}function Fke(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return yM(e);default:return!1}}var YHe=Rt({"src/services/rename.ts"(){Wr()}}),Hj={};C_(Hj,{getRenameInfo:()=>qHe,nodeIsEligibleForRename:()=>Fke});var ZHe=Rt({"src/services/_namespaces/ts.Rename.ts"(){YHe()}});function KHe(e,t,r,i,a){const o=e.getTypeChecker(),l=kM(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(xT(t,r,l)||lh(t,r)))return;const f=!!i&&i.kind==="invoked",g=mGe(l,r,t,o,f);if(!g)return;a.throwIfCancellationRequested();const m=eGe(g,o,t,l,u);return a.throwIfCancellationRequested(),m?o.runWithCancellationToken(a,y=>m.kind===0?zke(m.candidates,m.resolvedSignature,g,t,y):hGe(m.symbol,g,t,y)):P_(t)?nGe(g,e,a):void 0}function eGe({invocation:e,argumentCount:t},r,i,a,o){switch(e.kind){case 0:{if(o&&!tGe(a,e.node,i))return;const l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{const{called:l}=e;if(o&&!Lke(a,i,we(l)?l.parent:l))return;const u=xY(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:wa(u)};const f=r.getSymbolAtLocation(l);return f&&{kind:1,symbol:f}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return E.assertNever(e)}}function tGe(e,t,r){if(!Ym(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return ys(i,e);case 28:{const a=TM(e);return!!a&&ys(i,a)}case 30:return Lke(e,r,t.expression);default:return!1}}function nGe(e,t,r){if(e.invocation.kind===2)return;const i=jke(e.invocation),a=kr(i)?i.name.text:void 0,o=t.getTypeChecker();return a===void 0?void 0:cc(t.getSourceFiles(),l=>cc(l.getNamedDeclarations().get(a),u=>{const f=u.symbol&&o.getTypeOfSymbolAtLocation(u.symbol,u),g=f&&f.getCallSignatures();if(g&&g.length)return o.runWithCancellationToken(r,m=>zke(g,g[0],e,l,m,!0))}))}function Lke(e,t,r){const i=e.getFullStart();let a=e.parent;for(;a;){const o=rl(i,t,a,!0);if(o)return yf(r,o);a=a.parent}return E.fail("Could not find preceding token")}function rGe(e,t,r){const i=Rke(e,t,r);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function Mke(e,t,r){const i=iGe(e,r);if(!i)return;const{list:a,argumentIndex:o}=i,l=uGe(a,xT(r,t,e));o!==0&&E.assertLessThan(o,l);const u=pGe(a,r);return{list:a,argumentIndex:o,argumentCount:l,argumentsSpan:u}}function iGe(e,t){if(e.kind===30||e.kind===21)return{list:gGe(e.parent,e,t),argumentIndex:0};{const r=TM(e);return r&&{list:r,argumentIndex:_Ge(r,e)}}}function Rke(e,t,r){const{parent:i}=e;if(Ym(i)){const a=i,o=Mke(e,t,r);if(!o)return;const{list:l,argumentIndex:u,argumentCount:f,argumentsSpan:g}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===l.pos,invocation:{kind:0,node:a},argumentsSpan:g,argumentIndex:u,argumentCount:f}}else{if(sS(e)&&Kb(i))return P5(e,t,r)?jne(i,0,r):void 0;if($6(e)&&i.parent.kind===215){const a=i,o=a.parent;E.assert(a.kind===228);const l=P5(e,t,r)?0:1;return jne(o,l,r)}else if(o8(i)&&Kb(i.parent.parent)){const a=i,o=i.parent.parent;if(HH(e)&&!P5(e,t,r))return;const l=a.parent.templateSpans.indexOf(a),u=fGe(l,e,t,r);return jne(o,u,r)}else if(U_(i)){const a=i.attributes.pos,o=_a(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:yl(a,o-a),argumentIndex:0,argumentCount:1}}else{const a=SY(e,r);if(a){const{called:o,nTypeArguments:l}=a,u={kind:1,called:o},f=ll(o.getStart(r),e.end);return{isTypeParameterList:!0,invocation:u,argumentsSpan:f,argumentIndex:l,argumentCount:l+1}}return}}}function sGe(e,t,r,i){return aGe(e,t,r,i)||Rke(e,t,r)}function Bke(e){return rr(e.parent)?Bke(e.parent):e}function Bne(e){return rr(e.left)?Bne(e.left)+1:2}function aGe(e,t,r,i){const a=oGe(e);if(a===void 0)return;const o=cGe(a,r,t,i);if(o===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:f,argumentsSpan:g}=o,m=l.getNonNullableType(),y=m.symbol;if(y===void 0)return;const x=jo(m.getCallSignatures());return x===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:x,node:e,symbol:lGe(y)},argumentsSpan:g,argumentIndex:u,argumentCount:f}}function oGe(e){switch(e.kind){case 21:case 28:return e;default:return In(e.parent,t=>rs(t)?!0:Oa(t)||rd(t)||pS(t)?!1:"quit")}}function cGe(e,t,r,i){const{parent:a}=e;switch(a.kind){case 217:case 174:case 218:case 219:const o=Mke(e,r,t);if(!o)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:f}=o,g=kc(a)?i.getContextualTypeForObjectLiteralElement(a):i.getContextualType(a);return g&&{contextualType:g,argumentIndex:l,argumentCount:u,argumentsSpan:f};case 226:{const m=Bke(a),y=i.getContextualType(m),x=e.kind===21?0:Bne(a)-1,k=Bne(m);return y&&{contextualType:y,argumentIndex:x,argumentCount:k,argumentsSpan:cu(a)}}default:return}}function lGe(e){return e.name==="__type"&&cc(e.declarations,t=>{var r;return og(t)?(r=Hr(t.parent,Pd))==null?void 0:r.symbol:void 0})||e}function _Ge(e,t){let r=0;for(const i of e.getChildren()){if(i===t)break;i.kind!==28&&r++}return r}function uGe(e,t){const r=e.getChildren();let i=M0(r,a=>a.kind!==28);return!t&&r.length>0&&ka(r).kind===28&&i++,i}function fGe(e,t,r,i){return E.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Hce(t)?P5(t,r,i)?0:e+2:e+1}function jne(e,t,r){const i=sS(e.template)?1:e.template.templateSpans.length+1;return t!==0&&E.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:dGe(e,r),argumentIndex:t,argumentCount:i}}function pGe(e,t){const r=e.getFullStart(),i=_a(t.text,e.getEnd(),!1);return yl(r,i-r)}function dGe(e,t){const r=e.template,i=r.getStart();let a=r.getEnd();return r.kind===228&&ka(r.templateSpans).literal.getFullWidth()===0&&(a=_a(t.text,a,!1)),yl(i,a-i)}function mGe(e,t,r,i,a){for(let o=e;!Bi(o)&&(a||!vs(o));o=o.parent){E.assert(yf(o.parent,o),"Not a subspan",()=>`Child: ${E.formatSyntaxKind(o.kind)}, parent: ${E.formatSyntaxKind(o.parent.kind)}`);const l=sGe(o,t,r,i);if(l)return l}}function gGe(e,t,r){const i=e.getChildren(r),a=i.indexOf(t);return E.assert(a>=0&&i.length>a+1),i[a+1]}function jke(e){return e.kind===0?L9(e.node):e.called}function Jke(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function zke(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:a,invocation:o,argumentIndex:l},u,f,g){var m;const y=Jke(o),x=o.kind===2?o.symbol:f.getSymbolAtLocation(jke(o))||g&&((m=t.declaration)==null?void 0:m.symbol),k=x?q8(f,x,g?u:void 0,void 0):Ve,C=an(e,U=>vGe(U,k,r,f,y,u));l!==0&&E.assertLessThan(l,i);let N=0,D=0;for(let U=0;U1)){let j=0;for(const ee of Y){if(ee.isVariadic||ee.parameters.length>=i){N=D+j;break}j++}}D+=Y.length}E.assert(N!==-1);const M={items:I7(C,Zo),applicableSpan:a,selectedItemIndex:N,argumentIndex:l,argumentCount:i},V=M.items[N];if(V.isVariadic){const U=qc(V.parameters,Y=>!!Y.isRest);-1Vke(y,r,i,a,l)),f=e.getDocumentationComment(r),g=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...o,m_(30)],suffixDisplayParts:[m_(32)],separatorDisplayParts:Jne,parameters:u,documentation:f,tags:g}}function vGe(e,t,r,i,a,o){const l=(r?TGe:xGe)(e,i,a,o);return an(l,({isVariadic:u,parameters:f,prefix:g,suffix:m})=>{const y=[...t,...g],x=[...m,...bGe(e,a,i)],k=e.getDocumentationComment(i),C=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:x,separatorDisplayParts:Jne,parameters:f,documentation:k,tags:C}})}function bGe(e,t,r){return x1(i=>{i.writePunctuation(":"),i.writeSpace(" ");const a=r.getTypePredicateOfSignature(e);a?r.writeTypePredicate(a,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function TGe(e,t,r,i){const a=(e.target||e).typeParameters,o=w2(),l=(a||Ve).map(f=>Vke(f,t,r,i,o)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,kE)]:[];return t.getExpandedParameters(e).map(f=>{const g=I.createNodeArray([...u,...an(f,y=>t.symbolToParameterDeclaration(y,r,kE))]),m=x1(y=>{o.writeList(2576,g,i,y)});return{isVariadic:!1,parameters:l,prefix:[m_(30)],suffix:[m_(32),...m]}})}function xGe(e,t,r,i){const a=w2(),o=x1(f=>{if(e.typeParameters&&e.typeParameters.length){const g=I.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,kE)));a.writeList(53776,g,i,f)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?f=>!0:f=>{var g;return!!(f.length&&((g=Hr(f[f.length-1],pm))==null?void 0:g.links.checkFlags)&32768)}:f=>!1;return l.map(f=>({isVariadic:u(f),parameters:f.map(g=>SGe(g,t,r,i,a)),prefix:[...o,m_(21)],suffix:[m_(22)]}))}function SGe(e,t,r,i,a){const o=x1(f=>{const g=t.symbolToParameterDeclaration(e,r,kE);a.writeNode(4,g,i,f)}),l=t.isOptionalParameter(e.valueDeclaration),u=pm(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:l,isRest:u}}function Vke(e,t,r,i,a){const o=x1(l=>{const u=t.typeParameterToDeclaration(e,r,kE);a.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var kE,Jne,kGe=Rt({"src/services/signatureHelp.ts"(){Wr(),kE=70246400,Jne=[m_(28),sc()]}}),zN={};C_(zN,{getArgumentInfoForCompletions:()=>rGe,getSignatureHelpItems:()=>KHe});var CGe=Rt({"src/services/_namespaces/ts.SignatureHelp.ts"(){kGe()}});function EGe(e,t){var r,i;let a={textSpan:ll(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const f=DGe(o);if(!f.length)break;for(let g=0;ge)break e;const k=om(uy(t.text,y.end));if(k&&k.kind===2&&u(k.pos,k.end),wGe(t,e,y)){if(fW(y)&&Eo(o)&&!np(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),vs(y)||o8(y)||$6(y)||HH(y)||m&&$6(m)||ml(y)&&ic(o)||o4(y)&&ml(o)||Ri(y)&&o4(o)&&f.length===1||sT(y)||Fy(y)||i4(y)){o=y;break}if(o8(o)&&x&&i9(x)){const M=y.getFullStart()-2,V=x.getStart()+1;l(M,V)}const C=o4(y)&&AGe(m)&&NGe(x)&&!np(m.getStart(),x.getStart(),t);let N=C?m.getEnd():y.getStart();const D=C?x.getStart():PGe(t,y);if(Qu(y)&&((r=y.jsDoc)==null?void 0:r.length)&&l(wa(y.jsDoc).getStart(),D),o4(y)){const M=y.getChildren()[0];M&&Qu(M)&&((i=M.jsDoc)==null?void 0:i.length)&&M.getStart()!==y.pos&&(N=Math.min(N,wa(M.jsDoc).getStart()))}l(N,D),(fa(y)||s6(y))&&l(N+1,D-1),o=y;break}if(g===f.length-1)break e}}return a;function l(f,g){if(f!==g){const m=ll(f,g);(!a||!w4(m,a.textSpan)&&Sce(m,e))&&(a={textSpan:m,...a&&{parent:a}})}}function u(f,g){l(f,g);let m=f;for(;t.text.charCodeAt(m)===47;)m++;l(m,g)}}function wGe(e,t,r){return E.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=CE(o,({kind:u})=>u===23||u===168||u===24);return[r,EE(Gj(l,({kind:u})=>u===59)),a]}if(mf(e)){const r=CE(e.getChildren(),l=>l===e.name||ys(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,a=i?r.slice(1):r,o=Gj(a,({kind:l})=>l===59);return i?[i,EE(o)]:o}if(rs(e)){const r=CE(e.getChildren(),a=>a===e.dotDotDotToken||a===e.name),i=CE(r,a=>a===r[0]||a===e.questionToken);return Gj(i,({kind:a})=>a===64)}return Oa(e)?Gj(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function CE(e,t){const r=[];let i;for(const a of e)t(a)?(i=i||[],i.push(a)):(i&&(r.push(EE(i)),i=void 0),r.push(a));return i&&r.push(EE(i)),r}function Gj(e,t,r=!0){if(e.length<2)return e;const i=qc(e,t);if(i===-1)return e;const a=e.slice(0,i),o=e[i],l=ka(e),u=r&&l.kind===27,f=e.slice(i+1,u?e.length-1:void 0),g=R7([a.length?EE(a):void 0,o,f.length?EE(f):void 0]);return u?g.concat(l):g}function EE(e){return E.assertGreaterThanOrEqual(e.length,1),Tm(Cm.createSyntaxList(e),e[0].pos,ka(e).end)}function AGe(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function NGe(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function PGe(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Uke,IGe=Rt({"src/services/smartSelection.ts"(){Wr(),Uke=Kp(bl,Hl)}}),zne={};C_(zne,{getSmartSelectionRange:()=>EGe});var OGe=Rt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){IGe()}});function Wke(e,t,r){const i=qke(e,t,r);if(i!=="")return i;const a=D3(t);return a&32?lc(t,231)?"local class":"class":a&384?"enum":a&524288?"type":a&64?"interface":a&262144?"type parameter":a&8?"enum member":a&2097152?"alias":a&1536?"module":i}function qke(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&wa(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&nt(r)||Hx(r))return"parameter";const a=D3(t);if(a&3)return jY(t)?"parameter":t.valueDeclaration&&d6(t.valueDeclaration)?"const":t.valueDeclaration&&Rw(t.valueDeclaration)?"using":t.valueDeclaration&&Mw(t.valueDeclaration)?"await using":pn(t.declarations,C9)?"let":$ke(t)?"local var":"var";if(a&16)return $ke(t)?"local function":"function";if(a&32768)return"getter";if(a&65536)return"setter";if(a&8192)return"method";if(a&16384)return"constructor";if(a&131072)return"index";if(a&4){if(a&33554432&&t.links.checkFlags&6){const o=pn(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return o||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function Hke(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Nn(r)&&YM(t)&&dt(r,o=>!YM(o))?8192:0,a=z8(t,i);if(a)return a.split(",")}return[]}function FGe(e,t){if(!t)return"";const r=new Set(Hke(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&pn(Hke(i),a=>{r.add(a)})}return t.flags&16777216&&r.add("optional"),r.size>0?ra(r.values()).join(","):""}function Gke(e,t,r,i,a,o,l,u){var f;const g=[];let m=[],y=[];const x=D3(t);let k=l&1?qke(e,t,a):"",C=!1;const N=a.kind===110&&R9(a)||Hx(a);let D,M,V=!1;if(a.kind===110&&!N)return{displayParts:[Ru(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(k!==""||x&32||x&2097152){if(k==="getter"||k==="setter"){const ne=Or(t.declarations,ue=>ue.name===a);if(ne)switch(ne.kind){case 177:k="getter";break;case 178:k="setter";break;case 172:k="accessor";break;default:E.assertNever(ne)}else k="property"}let H;if(o!=null||(o=N?e.getTypeAtLocation(a):e.getTypeOfSymbolAtLocation(t,a)),a.parent&&a.parent.kind===211){const ne=a.parent.name;(ne===a||ne&&ne.getFullWidth()===0)&&(a=a.parent)}let Q;if(Ym(a)?Q=a:(oY(a)||R8(a)||a.parent&&(U_(a.parent)||Kb(a.parent))&&Cs(t.valueDeclaration))&&(Q=a.parent),Q){H=e.getResolvedSignature(Q);const ne=Q.kind===214||Js(Q)&&Q.expression.kind===108,ue=ne?o.getConstructSignatures():o.getCallSignatures();if(H&&!ys(ue,H.target)&&!ys(ue,H)&&(H=ue.length?ue[0]:void 0),H){switch(ne&&x&32?(k="constructor",Z(o.symbol,k)):x&2097152?(k="alias",oe(k),g.push(sc()),ne&&(H.flags&4&&(g.push(Ru(128)),g.push(sc())),g.push(Ru(105)),g.push(sc())),R(t)):Z(t,k),k){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(m_(59)),g.push(sc()),!(Rr(o)&16)&&o.symbol&&(Fr(g,q8(e,o.symbol,i,void 0,5)),g.push(D4())),ne&&(H.flags&4&&(g.push(Ru(128)),g.push(sc())),g.push(Ru(105)),g.push(sc())),_e(H,ue,262144);break;default:_e(H,ue)}C=!0,V=ue.length>1}}else if(dY(a)&&!(x&98304)||a.kind===137&&a.parent.kind===176){const ne=a.parent;if(t.declarations&&Or(t.declarations,fe=>fe===(a.kind===137?ne.parent:ne))){const fe=ne.kind===176?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(ne)?H=fe[0]:H=e.getSignatureFromDeclaration(ne),ne.kind===176?(k="constructor",Z(o.symbol,k)):Z(ne.kind===179&&!(o.symbol.flags&2048||o.symbol.flags&4096)?o.symbol:t,k),H&&_e(H,fe),C=!0,V=fe.length>1}}}if(x&32&&!C&&!N&&(j(),lc(t,231)?oe("local class"):g.push(Ru(86)),g.push(sc()),R(t),X(t,r)),x&64&&l&2&&(Y(),g.push(Ru(120)),g.push(sc()),R(t),X(t,r)),x&524288&&l&2&&(Y(),g.push(Ru(156)),g.push(sc()),R(t),X(t,r),g.push(sc()),g.push(W8(64)),g.push(sc()),Fr(g,j5(e,a.parent&&qg(a.parent)?e.getTypeAtLocation(a.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),x&384&&(Y(),dt(t.declarations,H=>Py(H)&&e2(H))&&(g.push(Ru(87)),g.push(sc())),g.push(Ru(94)),g.push(sc()),R(t)),x&1536&&!N){Y();const H=lc(t,267),Q=H&&H.name&&H.name.kind===80;g.push(Ru(Q?145:144)),g.push(sc()),R(t)}if(x&262144&&l&2)if(Y(),g.push(m_(21)),g.push(vf("type parameter")),g.push(m_(22)),g.push(sc()),R(t),t.parent)ee(),R(t.parent,i),X(t.parent,i);else{const H=lc(t,168);if(H===void 0)return E.fail();const Q=H.parent;if(Q)if(Cs(Q)){ee();const ne=e.getSignatureFromDeclaration(Q);Q.kind===180?(g.push(Ru(105)),g.push(sc())):Q.kind!==179&&Q.name&&R(Q.symbol),Fr(g,VY(e,ne,r,32))}else Dp(Q)&&(ee(),g.push(Ru(156)),g.push(sc()),R(Q.symbol),X(Q.symbol,r))}if(x&8){k="enum member",Z(t,"enum member");const H=(f=t.declarations)==null?void 0:f[0];if((H==null?void 0:H.kind)===306){const Q=e.getConstantValue(H);Q!==void 0&&(g.push(sc()),g.push(W8(64)),g.push(sc()),g.push(bu(Ale(Q),typeof Q=="number"?7:8)))}}if(t.flags&2097152){if(Y(),!C||m.length===0&&y.length===0){const H=e.getAliasedSymbol(t);if(H!==t&&H.declarations&&H.declarations.length>0){const Q=H.declarations[0],ne=os(Q);if(ne&&!C){const ue=T9(Q)&&Lr(Q,2),fe=t.name!=="default"&&!ue,G=Gke(e,H,Rn(Q),Q,ne,o,l,fe?t:H);g.push(...G.displayParts),g.push(D4()),D=G.documentation,M=G.tags}else D=H.getContextualDocumentationComment(Q,e),M=H.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:g.push(Ru(95)),g.push(sc()),g.push(Ru(145));break;case 277:g.push(Ru(95)),g.push(sc()),g.push(Ru(t.declarations[0].isExportEquals?64:90));break;case 281:g.push(Ru(95));break;default:g.push(Ru(102))}g.push(sc()),R(t),pn(t.declarations,H=>{if(H.kind===271){const Q=H;if(yy(Q))g.push(sc()),g.push(W8(64)),g.push(sc()),g.push(Ru(149)),g.push(m_(21)),g.push(bu(el(c3(Q)),8)),g.push(m_(22));else{const ne=e.getSymbolAtLocation(Q.moduleReference);ne&&(g.push(sc()),g.push(W8(64)),g.push(sc()),R(ne,i))}return!0}})}if(!C)if(k!==""){if(o){if(N?(Y(),g.push(Ru(110))):Z(t,k),k==="property"||k==="accessor"||k==="getter"||k==="setter"||k==="JSX attribute"||x&3||k==="local var"||k==="index"||k==="using"||k==="await using"||N){if(g.push(m_(59)),g.push(sc()),o.symbol&&o.symbol.flags&262144&&k!=="index"){const H=x1(Q=>{const ne=e.typeParameterToDeclaration(o,i,Vne);U().writeNode(4,ne,Rn(ts(i)),Q)});Fr(g,H)}else Fr(g,j5(e,o,i));if(pm(t)&&t.links.target&&pm(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const H=t.links.target.links.tupleLabelDeclaration;E.assertNode(H.name,we),g.push(sc()),g.push(m_(21)),g.push(vf(lr(H.name))),g.push(m_(22))}}else if(x&16||x&8192||x&16384||x&131072||x&98304||k==="method"){const H=o.getNonNullableType().getCallSignatures();H.length&&(_e(H[0],H),V=H.length>1)}}}else k=Wke(e,t,a);if(m.length===0&&!V&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&x&4&&t.parent&&t.declarations&&pn(t.parent.declarations,H=>H.kind===312))for(const H of t.declarations){if(!H.parent||H.parent.kind!==226)continue;const Q=e.getSymbolAtLocation(H.parent.right);if(!!Q&&(m=Q.getDocumentationComment(e),y=Q.getJsDocTags(e),m.length>0))break}if(m.length===0&&we(a)&&t.valueDeclaration&&Oa(t.valueDeclaration)){const H=t.valueDeclaration,Q=H.parent;if(we(H.name)&&rd(Q)){const ne=Cp(H.name),ue=e.getTypeAtLocation(Q);m=cc(ue.isUnion()?ue.types:[ue],fe=>{const G=fe.getProperty(ne);return G?G.getDocumentationComment(e):void 0})||Ve}}return y.length===0&&!V&&(y=t.getContextualJsDocTags(i,e)),m.length===0&&D&&(m=D),y.length===0&&M&&(y=M),{displayParts:g,documentation:m,symbolKind:k,tags:y.length===0?void 0:y};function U(){return w2()}function Y(){g.length&&g.push(D4()),j()}function j(){u&&(oe("alias"),g.push(sc()))}function ee(){g.push(sc()),g.push(Ru(103)),g.push(sc())}function R(H,Q){let ne;u&&H===t&&(H=u),k==="index"&&(ne=e.getIndexInfosOfIndexSymbol(H));let ue=[];H.flags&131072&&ne?(H.parent&&(ue=q8(e,H.parent)),ue.push(m_(23)),ne.forEach((fe,G)=>{ue.push(...j5(e,fe.keyType)),G!==ne.length-1&&(ue.push(sc()),ue.push(m_(52)),ue.push(sc()))}),ue.push(m_(24))):ue=q8(e,H,Q||r,void 0,7),Fr(g,ue),t.flags&16777216&&g.push(m_(58))}function Z(H,Q){Y(),Q&&(oe(Q),H&&!dt(H.declarations,ne=>Po(ne)||(_o(ne)||Fl(ne))&&!ne.name)&&(g.push(sc()),R(H)))}function oe(H){switch(H){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":g.push(JY(H));return;default:g.push(m_(21)),g.push(JY(H)),g.push(m_(22));return}}function _e(H,Q,ne=0){Fr(g,VY(e,H,i,ne|32)),Q.length>1&&(g.push(sc()),g.push(m_(21)),g.push(W8(40)),g.push(bu((Q.length-1).toString(),7)),g.push(sc()),g.push(vf(Q.length===2?"overload":"overloads")),g.push(m_(22))),m=H.getDocumentationComment(e),y=H.getJsDocTags(),Q.length>1&&m.length===0&&y.length===0&&(m=Q[0].getDocumentationComment(e),y=Q[0].getJsDocTags().filter(ue=>ue.name!=="deprecated"))}function X(H,Q){const ne=x1(ue=>{const fe=e.symbolToTypeParameterDeclarations(H,Q,Vne);U().writeList(53776,fe,Rn(ts(Q)),ue)});Fr(g,ne)}}function LGe(e,t,r,i,a,o=vT(a),l){return Gke(e,t,r,i,a,void 0,o,l)}function $ke(e){return e.parent?!1:pn(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!n2(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var Vne,MGe=Rt({"src/services/symbolDisplay.ts"(){Wr(),Vne=70246400}}),ph={};C_(ph,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>LGe,getSymbolKind:()=>Wke,getSymbolModifiers:()=>FGe});var RGe=Rt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){MGe()}});function Xke(e){const t=e.__pos;return E.assert(typeof t=="number"),t}function Une(e,t){E.assert(typeof t=="number"),e.__pos=t}function Qke(e){const t=e.__end;return E.assert(typeof t=="number"),t}function Wne(e,t){E.assert(typeof t=="number"),e.__end=t}function Yke(e,t){return _a(e,t,!1,!0)}function BGe(e,t){let r=t;for(;r0?1:0;let x=a1(v3(e,g)+y,e);return x=Yke(e.text,x),a1(v3(e,x),e)}function qne(e,t,r){const{end:i}=t,{trailingTriviaOption:a}=r;if(a===2){const o=uy(e.text,i);if(o){const l=v3(e,t.end);for(const u of o){if(u.kind===2||v3(e,u.pos)>l)break;if(v3(e,u.end)>l)return _a(e.text,u.end,!0,!0)}}}}function YS(e,t,r){var i;const{end:a}=t,{trailingTriviaOption:o}=r;if(o===0)return a;if(o===1){const f=es(uy(e.text,a),$m(e.text,a)),g=(i=f==null?void 0:f[f.length-1])==null?void 0:i.end;return g||a}const l=qne(e,t,r);if(l)return l;const u=_a(e.text,a,!0);return u!==a&&(o===2||Yl(e.text.charCodeAt(u-1)))?u:a}function $j(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function jGe(e){return _o(e)||tl(e)}function JGe(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function zGe(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const r=e,i=t;return we(r.name)&&we(i.name)&&r.name.escapedText===i.name.escapedText?I.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return I.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return I.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function Hne(e,t){return _a(e.text,I2(e,t,{leadingTriviaOption:1}),!1,!0)}function VGe(e,t,r,i){const a=Hne(e,i);if(r===void 0||np(YS(e,t,{}),a,e))return a;const o=rl(i.getStart(e),e);if($j(t,o)){const l=rl(t.getStart(e),e);if($j(r,l)){const u=_a(e.text,o.getEnd(),!0,!0);if(np(l.getStart(e),o.getStart(e),e))return Yl(e.text.charCodeAt(u-1))?u-1:u;if(Yl(e.text.charCodeAt(u)))return u}}return a}function UGe(e,t){const r=$a(e,19,t),i=$a(e,20,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function Xj(e){return ha(e)?e.properties:e.members}function Gne(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:a}=t[r];e=`${e.substring(0,i.start)}${a}${e.substring(Zl(i))}`}return e}function WGe(e){return _a(e,0)===e.length}function Qj(e){const t=fn(e,Qj,t6e,qGe,Qj),r=Do(t)?t:Object.create(t);return Tm(r,Xke(e),Qke(e)),r}function qGe(e,t,r,i,a){const o=Dn(e,t,r,i,a);if(!o)return o;E.assert(e);const l=o===e?I.createNodeArray(o.slice(0)):o;return Tm(l,Xke(e),Qke(e)),l}function Zke(e){let t=0;const r=hD(e),i=G=>{G&&Une(G,t)},a=G=>{G&&Wne(G,t)},o=G=>{G&&Une(G,t)},l=G=>{G&&Wne(G,t)},u=G=>{G&&Une(G,t)},f=G=>{G&&Wne(G,t)};function g(G,Ne){if(Ne||!WGe(G)){t=r.getTextPos();let De=0;for(;Gm(G.charCodeAt(G.length-De-1));)De++;t-=De}}function m(G){r.write(G),g(G,!1)}function y(G){r.writeComment(G)}function x(G){r.writeKeyword(G),g(G,!1)}function k(G){r.writeOperator(G),g(G,!1)}function C(G){r.writePunctuation(G),g(G,!1)}function N(G){r.writeTrailingSemicolon(G),g(G,!1)}function D(G){r.writeParameter(G),g(G,!1)}function M(G){r.writeProperty(G),g(G,!1)}function V(G){r.writeSpace(G),g(G,!1)}function U(G){r.writeStringLiteral(G),g(G,!1)}function Y(G,Ne){r.writeSymbol(G,Ne),g(G,!1)}function j(G){r.writeLine(G)}function ee(){r.increaseIndent()}function R(){r.decreaseIndent()}function Z(){return r.getText()}function oe(G){r.rawWrite(G),g(G,!1)}function _e(G){r.writeLiteral(G),g(G,!0)}function X(){return r.getTextPos()}function H(){return r.getLine()}function Q(){return r.getColumn()}function ne(){return r.getIndent()}function ue(){return r.isAtStartOfLine()}function fe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:a,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:f,write:m,writeComment:y,writeKeyword:x,writeOperator:k,writePunctuation:C,writeTrailingSemicolon:N,writeParameter:D,writeProperty:M,writeSpace:V,writeStringLiteral:U,writeSymbol:Y,writeLine:j,increaseIndent:ee,decreaseIndent:R,getText:Z,rawWrite:oe,writeLiteral:_e,getTextPos:X,getLine:H,getColumn:Q,getIndent:ne,isAtStartOfLine:ue,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:fe}}function HGe(e){let t;for(const g of e.statements)if(Sp(g))t=g;else break;let r=0;const i=e.text;if(t)return r=t.end,f(),r;const a=qI(i);a!==void 0&&(r=a.length,f());const o=$m(i,r);if(!o)return r;let l,u;for(const g of o){if(g.kind===3){if(v9(i,g.pos)){l={range:g,pinnedOrTripleSlash:!0};continue}}else if(EW(i,g.pos,g.end)){l={range:g,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const m=e.getLineAndCharacterOfPosition(g.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const m=e.getLineAndCharacterOfPosition(g.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))($ne||{}),Xne=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Xne||{}),j4={leadingTriviaOption:0,trailingTriviaOption:0},e6e=class Xae{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Xae(s0(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=Xae.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){E.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:DM(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,wE(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},a){for(const o of r){const l=I2(t,o,i,a),u=YS(t,o,i);this.deleteRange(t,{pos:l,end:u}),a=!!qne(t,o,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:_a(t.text,r.end,!0)})}deleteNodeRange(t,r,i,a={leadingTriviaOption:1}){const o=I2(t,r,a),l=YS(t,i,a);this.deleteRange(t,{pos:o,end:l})}deleteNodeRangeExcludingEnd(t,r,i,a={leadingTriviaOption:1}){const o=I2(t,r,a),l=i===void 0?t.text.length:I2(t,i,a);this.deleteRange(t,{pos:o,end:l})}replaceRange(t,r,i,a={}){this.changes.push({kind:1,sourceFile:t,range:r,options:a,node:i})}replaceNode(t,r,i,a=j4){this.replaceRange(t,wE(t,r,r,a),i,a)}replaceNodeRange(t,r,i,a,o=j4){this.replaceRange(t,wE(t,r,i,o),a,o)}replaceRangeWithNodes(t,r,i,a={}){this.changes.push({kind:2,sourceFile:t,range:r,options:a,nodes:i})}replaceNodeWithNodes(t,r,i,a=j4){this.replaceRangeWithNodes(t,wE(t,r,r,a),i,a)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,wE(t,r,r,j4),i)}replaceNodeRangeWithNodes(t,r,i,a,o=j4){this.replaceRangeWithNodes(t,wE(t,r,i,o),a,o)}nodeHasTrailingComment(t,r,i=j4){return!!qne(t,r,i)}nextCommaToken(t,r){const i=TT(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const a=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:a})}insertNodeAt(t,r,i,a={}){this.replaceRange(t,tp(r),i,a)}insertNodesAt(t,r,i,a={}){this.replaceRangeWithNodes(t,tp(r),i,a)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){const a=HGe(t),o={prefix:a===0?void 0:this.newLineCharacter,suffix:(Yl(t.text.charCodeAt(a))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Ds(r)?this.insertNodesAt(t,a,r,o):this.insertNodeAt(t,a,r,o)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){const a=t.end+1,o={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,a,r,o)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=Xf()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const a=wl(r);a?this.insertNodeBefore(t,a,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,a=!1,o={}){this.insertNodeAt(t,I2(t,r,o),i,this.getOptionsForInsertNodeBefore(r,i,a))}insertNodesBefore(t,r,i,a=!1,o={}){this.insertNodesAt(t,I2(t,r,o),i,this.getOptionsForInsertNodeBefore(r,wa(i),a))}insertModifierAt(t,r,i,a={}){this.insertNodeAt(t,r,I.createToken(i),a)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,a){const o=a1(r,t),l=g1e(t.text,o),u=Kke(t,l),f=J8(t,u?l:i),g=t.text.slice(o,l),m=`${u?"":this.newLineCharacter}//${a}${this.newLineCharacter}${g}`;this.insertText(t,f.getStart(t),m)}insertJsdocCommentBefore(t,r,i){const a=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:up(u.getStart(t),t),end:YS(t,u,{})});const o=BM(t.text,a-1),l=t.text.slice(o,a);this.insertNodeAt(t,a,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=Na(r.jsDoc,o=>Gs(o.comment)?I.createJSDocText(o.comment):o.comment),a=om(r.jsDoc);return a&&np(a.pos,a.end,t)&&Nn(i)===0?void 0:I.createNodeArray(eV(i,I.createJSDocText(` +`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,JGe(r),I.createJSDocComment(this.createJSDocText(t,r),I.createNodeArray(i)))}addJSDocTags(t,r,i){const a=I7(r.jsDoc,l=>l.tags),o=i.filter(l=>!a.some((u,f)=>{const g=zGe(u,l);return g&&(a[f]=g),!!g}));this.replaceJSDocComment(t,r,[...a,...o])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,zr(I7(r.jsDoc,a=>a.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,tp(r),i)}tryInsertTypeAnnotation(t,r,i){var o;let a;if(Cs(r)){if(a=$a(r,22,t),!a){if(!Po(r))return!1;a=wa(r.parameters)}}else a=(o=r.kind===260?r.exclamationToken:r.questionToken)!=null?o:r.name;return this.insertNodeAt(t,a.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const a=$a(r,21,t).getStart(t)+1,o=r.parameters.length?", ":"";this.insertNodeAt(t,a,i,{prefix:"this: ",suffix:o})}insertTypeParameters(t,r,i){const a=($a(r,21,t)||wa(r.parameters)).getStart(t);this.insertNodesAt(t,a,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Fi(t)||Nl(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Ri(t)?{suffix:", "}:rs(t)?rs(r)?{suffix:", "}:{}:fa(t)&&bl(t.parent)||ih(t)?{suffix:", "}:vu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:E.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const a=wl(r.body.statements);!a||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,a,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const a=Or(r.body.statements,o=>ql(o)&&m6(o.expression));!a||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,a,i)}insertNodeAtConstructorEnd(t,r,i){const a=jo(r.body.statements);!a||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,a,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,I.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const a=I2(t,r.getLastToken(),{});this.insertNodeAt(t,a,i,{prefix:Yl(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){var o;const a=(o=this.guessIndentationFromExistingMembers(t,r))!=null?o:this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,Xj(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,a))}guessIndentationFromExistingMembers(t,r){let i,a=r;for(const o of Xj(r)){if(aO(a,o,t))return;const l=o.getStart(t),u=gl.SmartIndenter.findFirstNonWhitespaceColumn(up(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;a=o}return i}computeIndentationForNewMember(t,r){var a;const i=r.getStart(t);return gl.SmartIndenter.findFirstNonWhitespaceColumn(up(i,t),i,t,this.formatContext.options)+((a=this.formatContext.options.indentSize)!=null?a:4)}getInsertNodeAtStartInsertOptions(t,r,i){const o=Xj(r).length===0,l=td(this.classesWithNodesInsertedAtStart,Ra(r),{node:r,sourceFile:t}),u=ha(r)&&(!Zf(t)||!o),f=ha(r)&&Zf(t)&&o&&!l;return{indentation:i,prefix:(f?",":"")+this.newLineCharacter,suffix:u?",":f_(r)&&o?";":""}}insertNodeAfterComma(t,r,i){const a=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,a,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const a=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,a,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){const a=this.insertNodeAfterWorker(t,r,wa(i));this.insertNodesAt(t,a,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return GGe(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,tp(r.end),I.createToken(27)),YS(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Fi(r)?i.prefix?` ${i.prefix}`:` -`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return E.assert(Ii(t)||a9(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(E.assert(!r.name),r.kind===219){const a=$a(r,39,t),o=$a(r,21,t);o?(this.insertNodesAt(t,o.getStart(t),[I.createToken(100),I.createIdentifier(i)],{joiner:" "}),_g(this,t,a)):(this.insertText(t,wa(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,a,I.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[I.createToken(19),I.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[I.createToken(27),I.createToken(20)],{joiner:" "}))}else{const a=$a(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,a,I.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,a){const o=i.elements[a-1];o?this.insertNodeInListAfter(t,o,r):this.insertNodeBefore(t,i.elements[0],r,!tp(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,a=ml.SmartIndenter.getContainingList(r,t)){if(!a){E.fail("node is not a list element");return}const o=l6(a,r);if(o<0)return;const l=r.getEnd();if(o!==a.length-1){const u=Vi(t,r.end);if(u&&$j(r,u)){const f=a[o+1],g=Yke(t.text,f.getFullStart()),m=`${sa(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:m})}}else{const u=r.getStart(t),f=_p(u,t);let g,m=!1;if(a.length===1)g=28;else{const y=rl(r.pos,t);g=$j(r,y)?y.kind:28,m=_p(a[o-1].getStart(t),t)!==f}if(RGe(t.text,r.end)&&(m=!0),m){this.replaceRange(t,ep(l),I.createToken(g));const y=ml.SmartIndenter.findFirstNonWhitespaceColumn(f,u,t,this.formatContext.options);let x=ua(t.text,l,!0,!1);for(;x!==l&&Yl(t.text.charCodeAt(x-1));)x--;this.replaceRange(t,ep(x),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,ep(l),i,{prefix:`${sa(g)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,eH(r),I.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,a]=VGe(t,r);if(i!==void 0&&a!==void 0){const o=Xj(t).length===0,l=tp(i,a,r);o&&l&&i!==a-1&&this.deleteRange(r,ep(i,a-1)),l&&this.insertText(r,a-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(a=>a.sourceFile===r&&Lhe(a.node,i))||(Ds(i)?this.deleteRange(r,tH(r,i)):Xne.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),a=ml.SmartIndenter.getContainingList(r,i);if(r!==ka(a))return;const o=cI(a,l=>!t.has(l),a.length-2);o!==-1&&this.deleteRange(i,{pos:a[o].end,end:qne(i,a[o+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=Yj.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,a)=>{r.push(Yj.newFileChanges(a,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,f,g,m){return qi(wC(u,y=>y.sourceFile.path),y=>{const x=y[0].sourceFile,k=M0(y,(N,D)=>N.range.pos-D.range.pos||N.range.end-D.range.end);for(let N=0;N`${JSON.stringify(k[N].range)} and ${JSON.stringify(k[N+1].range)}`);const C=qi(k,N=>{var U,Y;const D=b1(N.range),M=N.kind===1?(U=Bn(Ko(N.node)))!=null?U:N.sourceFile:N.kind===2&&(Y=Bn(Ko(N.nodes[0])))!=null?Y:N.sourceFile,V=a(N,M,x,f,g,m);if(!(D.length===V.length&&I1e(M.text,V,D.start)))return P5(D,V)});return C.length>0?{fileName:x.fileName,textChanges:C}:void 0})}e.getTextChangesFromChanges=t;function r(u,f,g,m){const y=i(Qq(u),f,g,m);return{fileName:u,textChanges:[P5(yl(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(u,f,g,m){const y=Na(f,C=>C.statements.map(N=>N===4?"":l(N,C.oldFile,g).text)).join(g),x=xA("any file name",y,99,!0,u),k=ml.formatDocument(x,m);return Hne(y,k)+g}e.newFileChangesWorker=i;function a(u,f,g,m,y,x){var k;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:C={},range:{pos:N}}=u,D=U=>o(U,f,g,N,C,m,y,x),M=u.kind===2?u.nodes.map(U=>Uk(D(U),m)).join(((k=u.options)==null?void 0:k.joiner)||m):D(u.node),V=C.indentation!==void 0||_p(N,f)===N?M:M.replace(/^\s+/,"");return(C.prefix||"")+V+(!C.suffix||Tc(V,C.suffix)?"":C.suffix)}function o(u,f,g,m,{indentation:y,prefix:x,delta:k},C,N,D){const{node:M,text:V}=l(u,f,C);D&&D(M,V);const U=KM(N,f),Y=y!==void 0?y:ml.SmartIndenter.getIndentation(m,g,U,x===C||_p(m,f)===m);k===void 0&&(k=ml.SmartIndenter.shouldIndentChildNode(U,u)&&U.indentSize||0);const j={text:V,getLineAndCharacterOfPosition(R){return vo(this,R)}},ee=ml.formatNodeGivenIndentation(M,j,f.languageVariant,Y,k,{...N,options:U});return Hne(V,ee)}function l(u,f,g){const m=Zke(g),y=U5(g);return Ly({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,u,f,m),{text:m.getText(),node:Qj(u)}}e.getNonformattedText=l})(Yj||(Yj={})),t6e={...n0,factory:qD(n0.factory.flags|1,n0.factory.baseFactory)},(e=>{function t(o,l,u,f){switch(f.kind){case 169:{const k=f.parent;Po(k)&&k.parameters.length===1&&!$a(k,21,u)?o.replaceNodeWithText(u,f,"()"):EE(o,l,u,f);break}case 272:case 271:const g=u.imports.length&&f===wa(u.imports).parent||f===Fr(u.statements,Lb);_g(o,u,f,{leadingTriviaOption:g?0:Qu(f)?2:3});break;case 208:const m=f.parent;m.kind===207&&f!==ka(m.elements)?_g(o,u,f):EE(o,l,u,f);break;case 260:a(o,l,u,f);break;case 168:EE(o,l,u,f);break;case 276:const x=f.parent;x.elements.length===1?i(o,u,x):EE(o,l,u,f);break;case 274:i(o,u,f);break;case 27:_g(o,u,f,{trailingTriviaOption:0});break;case 100:_g(o,u,f,{leadingTriviaOption:0});break;case 263:case 262:_g(o,u,f,{leadingTriviaOption:Qu(f)?2:3});break;default:f.parent?Sm(f.parent)&&f.parent.name===f?r(o,u,f.parent):js(f.parent)&&gs(f.parent.arguments,f)?EE(o,l,u,f):_g(o,u,f):_g(o,u,f)}}e.deleteDeclaration=t;function r(o,l,u){if(!u.namedBindings)_g(o,l,u.parent);else{const f=u.name.getStart(l),g=Vi(l,u.name.end);if(g&&g.kind===28){const m=ua(l.text,g.end,!1,!0);o.deleteRange(l,{pos:f,end:m})}else _g(o,l,u.name)}}function i(o,l,u){if(u.parent.name){const f=E.checkDefined(Vi(l,u.pos-1));o.deleteRange(l,{pos:f.getStart(l),end:u.end})}else{const f=vy(u,272);_g(o,l,f)}}function a(o,l,u,f){const{parent:g}=f;if(g.kind===299){o.deleteNodeRange(u,$a(g,21,u),$a(g,22,u));return}if(g.declarations.length!==1){EE(o,l,u,f);return}const m=g.parent;switch(m.kind){case 250:case 249:o.replaceNode(u,f,I.createObjectLiteralExpression());break;case 248:_g(o,u,g);break;case 243:_g(o,u,m,{leadingTriviaOption:Qu(m)?2:3});break;default:E.assertNever(m)}}})(Xne||(Xne={}))}}),er={};C_(er,{ChangeTracker:()=>e6e,LeadingTriviaOption:()=>Gne,TrailingTriviaOption:()=>$ne,applyChanges:()=>Hne,assignPositionsToNode:()=>Qj,createWriter:()=>Zke,deleteNode:()=>_g,isThisTypeAnnotatable:()=>BGe,isValidLocationToAddComment:()=>Kke});var $Ge=Bt({"src/services/_namespaces/ts.textChanges.ts"(){GGe()}}),Qne,Yne,XGe=Bt({"src/services/formatting/formattingContext.ts"(){Wr(),Qne=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(Qne||{}),Yne=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,a){this.currentTokenSpan=E.checkDefined(e),this.currentTokenParent=E.checkDefined(t),this.nextTokenSpan=E.checkDefined(r),this.nextTokenParent=E.checkDefined(i),this.contextNode=E.checkDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=$a(e,19,this.sourceFile),r=$a(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,a=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===a}return!1}}}});function Zne(e,t,r,i,a){const o=t===1?r6e:n6e;o.setText(e),o.resetTokenState(r);let l=!0,u,f,g,m,y;const x=a({advance:k,readTokenInfo:j,readEOFTokenRange:R,isOnToken:Z,isOnEOF:oe,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:X,skipToStartOf:H,getTokenFullStart:()=>{var Q;return(Q=y==null?void 0:y.token.pos)!=null?Q:o.getTokenStart()},getStartPos:()=>{var Q;return(Q=y==null?void 0:y.token.pos)!=null?Q:o.getTokenStart()}});return y=void 0,o.setText(void 0),x;function k(){y=void 0,o.getTokenFullStart()!==r?l=!!f&&ka(f).kind===4:o.scan(),u=void 0,f=void 0;let re=o.getTokenFullStart();for(;re(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(Kne||{}),ere=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(ere||{})}});function i6e(){const e=[];for(let ee=0;ee<=165;ee++)ee!==1&&e.push(ee);function t(...ee){return{tokens:e.filter(R=>!ee.some(Z=>Z===R)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=j4([...e,3]),a=j4([...e,1]),o=a6e(83,165),l=a6e(30,79),u=[103,104,165,130,142,152],f=[46,47,55,54],g=[9,10,80,21,23,19,110,105],m=[80,21,110,105],y=[80,22,24,105],x=[80,21,110,105],k=[80,22,24,105],C=[2,3],N=[80,...tR],D=i,M=j4([80,3,86,95,102]),V=j4([22,3,92,113,98,93]),U=[Rr("IgnoreBeforeComment",r,C,zN,1),Rr("IgnoreAfterLineComment",2,r,zN,1),Rr("NotSpaceBeforeColon",r,59,[xi,VN,l6e],16),Rr("SpaceAfterColon",59,r,[xi,VN],4),Rr("NoSpaceBeforeQuestionMark",r,58,[xi,VN,l6e],16),Rr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[xi,KGe],4),Rr("NoSpaceAfterQuestionMark",58,r,[xi],16),Rr("NoSpaceBeforeDot",r,[25,29],[xi,k$e],16),Rr("NoSpaceAfterDot",[25,29],r,[xi],16),Rr("NoSpaceBetweenImportParenInImportType",102,21,[xi,_$e],16),Rr("NoSpaceAfterUnaryPrefixOperator",f,g,[xi,VN],16),Rr("NoSpaceAfterUnaryPreincrementOperator",46,m,[xi],16),Rr("NoSpaceAfterUnaryPredecrementOperator",47,x,[xi],16),Rr("NoSpaceBeforeUnaryPostincrementOperator",y,46,[xi,k6e],16),Rr("NoSpaceBeforeUnaryPostdecrementOperator",k,47,[xi,k6e],16),Rr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[xi,ph],4),Rr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[xi,ph],4),Rr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[xi,ph],4),Rr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[xi,ph],4),Rr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[xi,ph],4),Rr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[xi,ph],4),Rr("NoSpaceAfterCloseBrace",20,[28,27],[xi],16),Rr("NewLineBeforeCloseBraceInBlockContext",i,20,[u6e],8),Rr("SpaceAfterCloseBrace",20,t(22),[xi,n$e],4),Rr("SpaceBetweenCloseBraceAndElse",20,93,[xi],4),Rr("SpaceBetweenCloseBraceAndWhile",20,117,[xi],4),Rr("NoSpaceBetweenEmptyBraceBrackets",19,20,[xi,h6e],16),Rr("SpaceAfterConditionalClosingParen",22,23,[UN],4),Rr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[d6e],16),Rr("SpaceAfterStarInGeneratorDeclaration",42,80,[d6e],4),Rr("SpaceAfterFunctionInFuncDecl",100,r,[P2],4),Rr("NewLineAfterOpenBraceInBlockContext",19,r,[u6e],8),Rr("SpaceAfterGetSetInMember",[139,153],80,[P2],4),Rr("NoSpaceBetweenYieldKeywordAndStar",127,42,[xi,S6e],16),Rr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[xi,S6e],4),Rr("NoSpaceBetweenReturnAndSemicolon",107,27,[xi],16),Rr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[xi],4),Rr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[xi,d$e],4),Rr("NoSpaceBeforeOpenParenInFuncCall",r,21,[xi,s$e,a$e],16),Rr("SpaceBeforeBinaryKeywordOperator",r,u,[xi,ph],4),Rr("SpaceAfterBinaryKeywordOperator",u,r,[xi,ph],4),Rr("SpaceAfterVoidOperator",116,r,[xi,v$e],4),Rr("SpaceBetweenAsyncAndOpenParen",134,21,[l$e,xi],4),Rr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[xi],4),Rr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[xi],16),Rr("SpaceBeforeJsxAttribute",r,80,[u$e,xi],4),Rr("SpaceBeforeSlashInJsxOpeningElement",r,44,[b6e,xi],4),Rr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[b6e,xi],16),Rr("NoSpaceBeforeEqualInJsxAttribute",r,64,[v6e,xi],16),Rr("NoSpaceAfterEqualInJsxAttribute",64,r,[v6e,xi],16),Rr("NoSpaceAfterModuleImport",[144,149],21,[xi],16),Rr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[xi],4),Rr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[xi],4),Rr("SpaceAfterModuleName",11,19,[m$e],4),Rr("SpaceBeforeArrow",r,39,[xi],4),Rr("SpaceAfterArrow",39,r,[xi],4),Rr("NoSpaceAfterEllipsis",26,80,[xi],16),Rr("NoSpaceAfterOptionalParameters",58,[22,28],[xi,VN],16),Rr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[xi,g$e],16),Rr("NoSpaceBeforeOpenAngularBracket",N,30,[xi,WN],16),Rr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[xi,WN],16),Rr("NoSpaceAfterOpenAngularBracket",30,r,[xi,WN],16),Rr("NoSpaceBeforeCloseAngularBracket",r,32,[xi,WN],16),Rr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[xi,WN,t$e,y$e],16),Rr("SpaceBeforeAt",[22,80],60,[xi],4),Rr("NoSpaceAfterAt",60,r,[xi],16),Rr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[p$e],4),Rr("NoSpaceBeforeNonNullAssertionOperator",r,54,[xi,b$e],16),Rr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[xi,h$e],16),Rr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[xi],4)],Y=[Rr("SpaceAfterConstructor",137,21,[of("insertSpaceAfterConstructor"),xi],4),Rr("NoSpaceAfterConstructor",137,21,[ad("insertSpaceAfterConstructor"),xi],16),Rr("SpaceAfterComma",28,r,[of("insertSpaceAfterCommaDelimiter"),xi,ore,o$e,c$e],4),Rr("NoSpaceAfterComma",28,r,[ad("insertSpaceAfterCommaDelimiter"),xi,ore],16),Rr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[of("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),P2],4),Rr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[ad("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),P2],16),Rr("SpaceAfterKeywordInControl",o,21,[of("insertSpaceAfterKeywordsInControlFlowStatements"),UN],4),Rr("NoSpaceAfterKeywordInControl",o,21,[ad("insertSpaceAfterKeywordsInControlFlowStatements"),UN],16),Rr("SpaceAfterOpenParen",21,r,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),xi],4),Rr("SpaceBeforeCloseParen",r,22,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),xi],4),Rr("SpaceBetweenOpenParens",21,21,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),xi],4),Rr("NoSpaceBetweenParens",21,22,[xi],16),Rr("NoSpaceAfterOpenParen",21,r,[ad("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),xi],16),Rr("NoSpaceBeforeCloseParen",r,22,[ad("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),xi],16),Rr("SpaceAfterOpenBracket",23,r,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),xi],4),Rr("SpaceBeforeCloseBracket",r,24,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),xi],4),Rr("NoSpaceBetweenBrackets",23,24,[xi],16),Rr("NoSpaceAfterOpenBracket",23,r,[ad("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),xi],16),Rr("NoSpaceBeforeCloseBracket",r,24,[ad("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),xi],16),Rr("SpaceAfterOpenBrace",19,r,[c6e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),_6e],4),Rr("SpaceBeforeCloseBrace",r,20,[c6e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),_6e],4),Rr("NoSpaceBetweenEmptyBraceBrackets",19,20,[xi,h6e],16),Rr("NoSpaceAfterOpenBrace",19,r,[tre("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),xi],16),Rr("NoSpaceBeforeCloseBrace",r,20,[tre("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),xi],16),Rr("SpaceBetweenEmptyBraceBrackets",19,20,[of("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Rr("NoSpaceBetweenEmptyBraceBrackets",19,20,[tre("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),xi],16),Rr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[of("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),y6e],4,1),Rr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[of("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),xi],4),Rr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[ad("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),y6e],16,1),Rr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[ad("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),xi],16),Rr("SpaceAfterOpenBraceInJsxExpression",19,r,[of("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),xi,Kj],4),Rr("SpaceBeforeCloseBraceInJsxExpression",r,20,[of("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),xi,Kj],4),Rr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[ad("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),xi,Kj],16),Rr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[ad("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),xi,Kj],16),Rr("SpaceAfterSemicolonInFor",27,r,[of("insertSpaceAfterSemicolonInForStatements"),xi,rre],4),Rr("NoSpaceAfterSemicolonInFor",27,r,[ad("insertSpaceAfterSemicolonInForStatements"),xi,rre],16),Rr("SpaceBeforeBinaryOperator",r,l,[of("insertSpaceBeforeAndAfterBinaryOperators"),xi,ph],4),Rr("SpaceAfterBinaryOperator",l,r,[of("insertSpaceBeforeAndAfterBinaryOperators"),xi,ph],4),Rr("NoSpaceBeforeBinaryOperator",r,l,[ad("insertSpaceBeforeAndAfterBinaryOperators"),xi,ph],16),Rr("NoSpaceAfterBinaryOperator",l,r,[ad("insertSpaceBeforeAndAfterBinaryOperators"),xi,ph],16),Rr("SpaceBeforeOpenParenInFuncDecl",r,21,[of("insertSpaceBeforeFunctionParenthesis"),xi,P2],4),Rr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[ad("insertSpaceBeforeFunctionParenthesis"),xi,P2],16),Rr("NewLineBeforeOpenBraceInControl",V,19,[of("placeOpenBraceOnNewLineForControlBlocks"),UN,are],8,1),Rr("NewLineBeforeOpenBraceInFunction",D,19,[of("placeOpenBraceOnNewLineForFunctions"),P2,are],8,1),Rr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",M,19,[of("placeOpenBraceOnNewLineForFunctions"),m6e,are],8,1),Rr("SpaceAfterTypeAssertion",32,r,[of("insertSpaceAfterTypeAssertion"),xi,lre],4),Rr("NoSpaceAfterTypeAssertion",32,r,[ad("insertSpaceAfterTypeAssertion"),xi,lre],16),Rr("SpaceBeforeTypeAnnotation",r,[58,59],[of("insertSpaceBeforeTypeAnnotation"),xi,ire],4),Rr("NoSpaceBeforeTypeAnnotation",r,[58,59],[ad("insertSpaceBeforeTypeAnnotation"),xi,ire],16),Rr("NoOptionalSemicolon",27,a,[o6e("semicolons","remove"),x$e],32),Rr("OptionalSemicolon",r,a,[o6e("semicolons","insert"),S$e],64)],j=[Rr("NoSpaceBeforeSemicolon",r,27,[xi],16),Rr("SpaceBeforeOpenBraceInControl",V,19,[nre("placeOpenBraceOnNewLineForControlBlocks"),UN,cre,sre],4,1),Rr("SpaceBeforeOpenBraceInFunction",D,19,[nre("placeOpenBraceOnNewLineForFunctions"),P2,Zj,cre,sre],4,1),Rr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",M,19,[nre("placeOpenBraceOnNewLineForFunctions"),m6e,cre,sre],4,1),Rr("NoSpaceBeforeComma",r,28,[xi],16),Rr("NoSpaceBeforeOpenBracket",t(134,84),23,[xi],16),Rr("NoSpaceAfterCloseBracket",24,r,[xi,f$e],16),Rr("SpaceAfterSemicolon",27,r,[xi],4),Rr("SpaceBetweenForAndAwaitKeyword",99,135,[xi],4),Rr("SpaceBetweenStatements",[22,92,93,84],r,[xi,ore,ZGe],4),Rr("SpaceAfterTryCatchFinally",[113,85,98],19,[xi],4)];return[...U,...Y,...j]}function Rr(e,t,r,i,a,o=0){return{leftTokenRange:s6e(t),rightTokenRange:s6e(r),rule:{debugName:e,context:i,action:a,flags:o}}}function j4(e){return{tokens:e,isSpecific:!0}}function s6e(e){return typeof e=="number"?j4([e]):Ds(e)?j4(e):e}function a6e(e,t,r=[]){const i=[];for(let a=e;a<=t;a++)gs(r,a)||i.push(a);return j4(i)}function o6e(e,t){return r=>r.options&&r.options[e]===t}function of(e){return t=>t.options&&lo(t.options,e)&&!!t.options[e]}function tre(e){return t=>t.options&&lo(t.options,e)&&!t.options[e]}function ad(e){return t=>!t.options||!lo(t.options,e)||!t.options[e]}function nre(e){return t=>!t.options||!lo(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function c6e(e){return t=>!t.options||!lo(t.options,e)||!!t.options[e]}function rre(e){return e.contextNode.kind===248}function ZGe(e){return!rre(e)}function ph(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function VN(e){return!ph(e)}function l6e(e){return!ire(e)}function ire(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||Nx(t)}function KGe(e){return e.contextNode.kind===227||e.contextNode.kind===194}function sre(e){return e.TokensAreOnSameLine()||Zj(e)}function _6e(e){return e.contextNode.kind===206||e.contextNode.kind===200||e$e(e)}function are(e){return Zj(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function u6e(e){return f6e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function e$e(e){return f6e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function f6e(e){return p6e(e.contextNode)}function Zj(e){return p6e(e.nextTokenParent)}function p6e(e){if(g6e(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function P2(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function t$e(e){return!P2(e)}function d6e(e){return e.contextNode.kind===262||e.contextNode.kind===218}function m6e(e){return g6e(e.contextNode)}function g6e(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function n$e(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function UN(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function h6e(e){return e.contextNode.kind===210}function r$e(e){return e.contextNode.kind===213}function i$e(e){return e.contextNode.kind===214}function s$e(e){return r$e(e)||i$e(e)}function a$e(e){return e.currentTokenSpan.kind!==28}function o$e(e){return e.nextTokenSpan.kind!==24}function c$e(e){return e.nextTokenSpan.kind!==22}function l$e(e){return e.contextNode.kind===219}function _$e(e){return e.contextNode.kind===205}function xi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function y6e(e){return e.contextNode.kind!==12}function ore(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function Kj(e){return e.contextNode.kind===294||e.contextNode.kind===293}function u$e(e){return e.nextTokenParent.kind===291}function v6e(e){return e.contextNode.kind===291}function b6e(e){return e.contextNode.kind===285}function f$e(e){return!P2(e)&&!Zj(e)}function p$e(e){return e.TokensAreOnSameLine()&&Of(e.contextNode)&&T6e(e.currentTokenParent)&&!T6e(e.nextTokenParent)}function T6e(e){for(;e&&nt(e);)e=e.parent;return e&&e.kind===170}function d$e(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function cre(e){return e.formattingRequestKind!==2}function m$e(e){return e.contextNode.kind===267}function g$e(e){return e.contextNode.kind===187}function h$e(e){return e.contextNode.kind===180}function x6e(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function WN(e){return x6e(e.currentTokenSpan,e.currentTokenParent)||x6e(e.nextTokenSpan,e.nextTokenParent)}function lre(e){return e.contextNode.kind===216}function y$e(e){return!lre(e)}function v$e(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function S6e(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function b$e(e){return e.contextNode.kind===235}function k6e(e){return!T$e(e)}function T$e(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function x$e(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(E6(t)){const o=e.nextTokenParent===e.currentTokenParent?yT(e.currentTokenParent,On(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!o)return!0;t=o.kind,r=o.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,a=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===a?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!mf(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Is(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function S$e(e){return UM(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function k$e(e){return!kr(e.contextNode)||!Ou(e.contextNode.expression)||e.contextNode.expression.getText().indexOf(".")!==-1}var C$e=Bt({"src/services/formatting/rules.ts"(){Wr(),AE()}});function E$e(e,t){return{options:e,getRules:w$e(),host:t}}function w$e(){return _re===void 0&&(_re=A$e(i6e())),_re}function D$e(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function A$e(e){const t=N$e(e);return r=>{const i=t[C6e(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const a=[];let o=0;for(const l of i){const u=~D$e(o);l.action&u&&$i(l.context,f=>f(r))&&(a.push(l),o|=l.action)}if(a.length)return a}}}function N$e(e){const t=new Array(eJ*eJ),r=new Array(t.length);for(const i of e){const a=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const o of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const u=C6e(o,l);let f=t[u];f===void 0&&(f=t[u]=[]),P$e(f,i.rule,a,r,u)}}return t}function C6e(e,t){return E.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*eJ+t}function P$e(e,t,r,i,a){const o=t.action&3?r?0:J4.StopRulesAny:t.context!==zN?r?J4.ContextRulesSpecific:J4.ContextRulesAny:r?J4.NoContextRulesSpecific:J4.NoContextRulesAny,l=i[a]||0;e.splice(I$e(l,o),0,t),i[a]=O$e(l,o)}function I$e(e,t){let r=0;for(let i=0;i<=t;i+=QS)r+=e&qN,e>>=QS;return r}function O$e(e,t){const r=(e>>t&qN)+1;return E.assert((r&qN)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(qN<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=QS*1]="StopRulesAny",e[e.ContextRulesSpecific=QS*2]="ContextRulesSpecific",e[e.ContextRulesAny=QS*3]="ContextRulesAny",e[e.NoContextRulesSpecific=QS*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=QS*5]="NoContextRulesAny",e))(J4||{})}});function tJ(e,t,r){const i={pos:e,end:t,kind:r};return E.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>E.formatSyntaxKind(r)}),i}function L$e(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let a=Pw(i,t);for(;Ad(t.text.charCodeAt(a));)a--;Yl(t.text.charCodeAt(a))&&a--;const o={pos:s1(i-1,t),end:a+1};return HN(o,t,r,2)}function M$e(e,t,r){const i=ure(e,27,t);return E6e(fre(i),t,r,3)}function R$e(e,t,r){const i=ure(e,19,t);if(!i)return[];const a=i.parent,o=fre(a),l={pos:_p(o.getStart(t),t),end:e};return HN(l,t,r,4)}function B$e(e,t,r){const i=ure(e,20,t);return E6e(fre(i),t,r,5)}function j$e(e,t){const r={pos:0,end:e.text.length};return HN(r,e,t,0)}function J$e(e,t,r,i){const a={pos:_p(e,r),end:t};return HN(a,r,i,1)}function ure(e,t,r){const i=rl(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function fre(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!z$e(t.parent,t);)t=t.parent;return t}function z$e(e,t){switch(e.kind){case 263:case 264:return yf(e.members,t);case 267:const r=e.body;return!!r&&r.kind===268&&yf(r.statements,t);case 312:case 241:case 268:return yf(e.statements,t);case 299:return yf(e.block.statements,t)}return!1}function V$e(e,t){return r(t);function r(i){const a=ys(i,o=>dY(o.getStart(t),o.end,e)&&o);if(a){const o=r(a);if(o)return o}return i}}function U$e(e,t){if(!e.length)return a;const r=e.filter(o=>R8(t,o.start,o.start+o.length)).sort((o,l)=>o.start-l.start);if(!r.length)return a;let i=0;return o=>{for(;;){if(i>=r.length)return!1;const l=r[i];if(o.end<=l.start)return!1;if(vM(o.pos,o.end,l.start,l.start+l.length))return!0;i++}};function a(){return!1}}function W$e(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const a=rl(t.pos,r);return!a||a.end>=t.pos?e.pos:a.end}function q$e(e,t,r){let i=-1,a;for(;e;){const o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&o!==i)break;if(od.shouldIndentChildNode(t,e,a,r))return t.indentSize;i=o,a=e,e=e.parent}return 0}function H$e(e,t,r,i,a,o){const l={pos:e.pos,end:e.end};return Zne(t.text,r,l.pos,l.end,u=>w6e(l,e,i,a,u,o,1,f=>!1,t))}function E6e(e,t,r,i){if(!e)return[];const a={pos:_p(e.getStart(t),t),end:e.end};return HN(a,t,r,i)}function HN(e,t,r,i){const a=V$e(e,t);return Zne(t.text,t.languageVariant,W$e(a,e,t),e.end,o=>w6e(e,a,od.getIndentationForNode(a,e,t,r.options),q$e(a,r.options,t),o,r,i,U$e(t.parseDiagnostics,e),t))}function w6e(e,t,r,i,a,{options:o,getRules:l,host:u},f,g,m){var y;const x=new Yne(m,f,o);let k,C,N,D,M,V=-1;const U=[];if(a.advance(),a.isOnToken()){const pe=m.getLineAndCharacterOfPosition(t.getStart(m)).line;let Pe=pe;Of(t)&&(Pe=m.getLineAndCharacterOfPosition(EW(t,m)).line),oe(t,t,pe,Pe,r,i)}const Y=a.getCurrentLeadingTrivia();if(Y){const pe=od.nodeWillIndentChild(o,t,void 0,m,!1)?r+o.indentSize:r;_e(Y,pe,!0,Pe=>{H(Pe,m.getLineAndCharacterOfPosition(Pe.pos),t,t,void 0),re(Pe.pos,pe,!1)}),o.trimTrailingWhitespace!==!1&&Xe(Y)}if(C&&a.getTokenFullStart()>=e.end){const pe=a.isOnEOF()?a.readEOFTokenRange():a.isOnToken()?a.readTokenInfo(t).token:void 0;if(pe&&pe.pos===k){const Pe=((y=rl(pe.end,m,t))==null?void 0:y.parent)||N;Q(pe,m.getLineAndCharacterOfPosition(pe.pos).line,Pe,C,D,N,Pe,void 0)}}return U;function j(pe,Pe,Ge,tt,mt){if(R8(tt,pe,Pe)||E5(tt,pe,Pe)){if(mt!==-1)return mt}else{const Je=m.getLineAndCharacterOfPosition(pe).line,at=_p(pe,m),zt=od.findFirstNonWhitespaceColumn(at,pe,m,o);if(Je!==Ge||pe===zt){const It=od.getBaseIndentation(o);return It>zt?It:zt}}return-1}function ee(pe,Pe,Ge,tt,mt,Je){const at=od.shouldIndentChildNode(o,pe)?o.indentSize:0;return Je===Pe?{indentation:Pe===M?V:mt.getIndentation(),delta:Math.min(o.indentSize,mt.getDelta(pe)+at)}:Ge===-1?pe.kind===21&&Pe===M?{indentation:V,delta:mt.getDelta(pe)}:od.childStartsOnTheSameLineWithElseInIfStatement(tt,pe,Pe,m)||od.childIsUnindentedBranchOfConditionalExpression(tt,pe,Pe,m)||od.argumentStartsOnSameLineAsPreviousArgument(tt,pe,Pe,m)?{indentation:mt.getIndentation(),delta:at}:{indentation:mt.getIndentation()+mt.getDelta(pe),delta:at}:{indentation:Ge,delta:at}}function R(pe){if(Ap(pe)){const Pe=Fr(pe.modifiers,Zs,qc(pe.modifiers,Wl));if(Pe)return Pe.kind}switch(pe.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(pe.asteriskToken)return 42;case 172:case 169:const Pe=os(pe);if(Pe)return Pe.kind}}function Z(pe,Pe,Ge,tt){return{getIndentationForComment:(at,zt,It)=>{switch(at){case 20:case 24:case 22:return Ge+Je(It)}return zt!==-1?zt:Ge},getIndentationForToken:(at,zt,It,bt)=>!bt&&mt(at,zt,It)?Ge+Je(It):Ge,getIndentation:()=>Ge,getDelta:Je,recomputeIndentation:(at,zt)=>{od.shouldIndentChildNode(o,zt,pe,m)&&(Ge+=at?o.indentSize:-o.indentSize,tt=od.shouldIndentChildNode(o,pe)?o.indentSize:0)}};function mt(at,zt,It){switch(zt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(It.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(It.kind!==200)return!1;break}return Pe!==at&&!(Of(pe)&&zt===R(pe))}function Je(at){return od.nodeWillIndentChild(o,pe,at,m,!0)?tt:0}}function oe(pe,Pe,Ge,tt,mt,Je){if(!R8(e,pe.getStart(m),pe.getEnd()))return;const at=Z(pe,Ge,mt,Je);let zt=Pe;for(ys(pe,Tn=>{It(Tn,-1,pe,at,Ge,tt,!1)},Tn=>{bt(Tn,pe,Ge,at)});a.isOnToken()&&a.getTokenFullStart()Math.min(pe.end,e.end))break;_r(Tn,pe,at,pe)}function It(Tn,jt,Kn,br,fi,Si,Nr,pt){if(E.assert(!Do(Tn)),fc(Tn)||Sle(Kn,Tn))return jt;const ur=Tn.getStart(m),yn=m.getLineAndCharacterOfPosition(ur).line;let Ct=yn;Of(Tn)&&(Ct=m.getLineAndCharacterOfPosition(EW(Tn,m)).line);let cn=-1;if(Nr&&yf(e,Kn)&&(cn=j(ur,Tn.end,fi,e,jt),cn!==-1&&(jt=cn)),!R8(e,Tn.pos,Tn.end))return Tn.ende.end)return jt;if(wi.token.end>ur){wi.token.pos>ur&&a.skipToStartOf(Tn);break}_r(wi,pe,br,pe)}if(!a.isOnToken()||a.getTokenFullStart()>=e.end)return jt;if(Dx(Tn)){const wi=a.readTokenInfo(Tn);if(Tn.kind!==12)return E.assert(wi.token.end===Tn.end,"Token end is child end"),_r(wi,pe,br,Tn),jt}const In=Tn.kind===170?yn:Si,xr=ee(Tn,yn,cn,pe,br,In);return oe(Tn,zt,yn,Ct,xr.indentation,xr.delta),zt=pe,pt&&Kn.kind===209&&jt===-1&&(jt=xr.indentation),jt}function bt(Tn,jt,Kn,br){E.assert(Hv(Tn)),E.assert(!Do(Tn));const fi=G$e(jt,Tn);let Si=br,Nr=Kn;if(!R8(e,Tn.pos,Tn.end)){Tn.endTn.pos)break;if(yn.token.kind===fi){Nr=m.getLineAndCharacterOfPosition(yn.token.pos).line,_r(yn,jt,br,jt);let Ct;if(V!==-1)Ct=V;else{const cn=_p(yn.token.pos,m);Ct=od.findFirstNonWhitespaceColumn(cn,yn.token.pos,m,o)}Si=Z(jt,Kn,Ct,o.indentSize)}else _r(yn,jt,br,jt)}let pt=-1;for(let yn=0;ynre(xr.pos,In,!1))}Ct!==-1&&cn&&(re(Tn.token.pos,Ct,pt===1),M=yn.line,V=Ct)}a.advance(),zt=jt}}function _e(pe,Pe,Ge,tt){for(const mt of pe){const Je=yf(e,mt);switch(mt.kind){case 3:Je&&G(mt,Pe,!Ge),Ge=!1;break;case 2:Ge&&Je&&tt(mt),Ge=!1;break;case 4:Ge=!0;break}}return Ge}function X(pe,Pe,Ge,tt){for(const mt of pe)if(wM(mt.kind)&&yf(e,mt)){const Je=m.getLineAndCharacterOfPosition(mt.pos);H(mt,Je,Pe,Ge,tt)}}function H(pe,Pe,Ge,tt,mt){const Je=g(pe);let at=0;if(!Je)if(C)at=Q(pe,Pe.line,Ge,C,D,N,tt,mt);else{const zt=m.getLineAndCharacterOfPosition(e.pos);Ne(zt.line,Pe.line)}return C=pe,k=pe.end,N=Ge,D=Pe.line,at}function Q(pe,Pe,Ge,tt,mt,Je,at,zt){x.updateContext(tt,Je,pe,Ge,at);const It=l(x);let bt=x.options.trimTrailingWhitespace!==!1,_r=0;return It?Yae(It,Tn=>{if(_r=ct(Tn,tt,mt,pe,Pe),zt)switch(_r){case 2:Ge.getStart(m)===pe.pos&&zt.recomputeIndentation(!1,at);break;case 1:Ge.getStart(m)===pe.pos&&zt.recomputeIndentation(!0,at);break;default:E.assert(_r===0)}bt=bt&&!(Tn.action&16)&&Tn.flags!==1}):bt=bt&&pe.kind!==1,Pe!==mt&&bt&&Ne(mt,Pe,tt),_r}function re(pe,Pe,Ge){const tt=pre(Pe,o);if(Ge)xe(pe,0,tt);else{const mt=m.getLineAndCharacterOfPosition(pe),Je=s1(mt.line,m);(Pe!==ue(Je,mt.character)||fe(tt,Je))&&xe(Je,mt.character,tt)}}function ue(pe,Pe){let Ge=0;for(let tt=0;tt0){const Si=pre(fi,o);xe(Kn,br.character,Si)}else be(Kn,br.character)}}function Ne(pe,Pe,Ge){for(let tt=pe;ttJe)continue;const at=De(mt,Je);at!==-1&&(E.assert(at===mt||!Ad(m.text.charCodeAt(at-1))),be(at,Je+1-at))}}function De(pe,Pe){let Ge=Pe;for(;Ge>=pe&&Ad(m.text.charCodeAt(Ge));)Ge--;return Ge!==Pe?Ge+1:-1}function Xe(pe){let Pe=C?C.end:e.pos;for(const Ge of pe)wM(Ge.kind)&&(PeC5(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function G$e(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function $$e(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function pre(e,t){if((!nJ||nJ.tabSize!==t.tabSize||nJ.indentSize!==t.indentSize)&&(nJ={tabSize:t.tabSize,indentSize:t.indentSize},wE=DE=void 0),t.convertTabsToSpaces){let i;const a=Math.floor(e/t.indentSize),o=e%t.indentSize;return DE||(DE=[]),DE[a]===void 0?(i=O5(" ",t.indentSize*a),DE[a]=i):i=DE[a],o?i+O5(" ",o):i}else{const i=Math.floor(e/t.tabSize),a=e-i*t.tabSize;let o;return wE||(wE=[]),wE[i]===void 0?wE[i]=o=O5(" ",i):o=wE[i],a?o+O5(" ",a):o}}var nJ,wE,DE,X$e=Bt({"src/services/formatting/formatting.ts"(){Wr(),AE()}}),od,Q$e=Bt({"src/services/formatting/smartIndenter.ts"(){Wr(),AE(),(e=>{let t;(G=>{G[G.Unknown=-1]="Unknown"})(t||(t={}));function r(G,Ne,De,Xe=!1){if(G>Ne.text.length)return u(De);if(De.indentStyle===0)return 0;const ve=rl(G,Ne,void 0,!0),be=D6e(Ne,G,ve||null);if(be&&be.kind===3)return i(Ne,G,De,be);if(!ve)return u(De);if(kY(ve.kind)&&ve.getStart(Ne)<=G&&G=0),ve<=be)return H(s1(be,G),Ne,G,De);const xe=s1(ve,G),{column:rt,character:ct}=X(xe,Ne,G,De);return rt===0?rt:G.text.charCodeAt(xe+ct)===42?rt-1:rt}function a(G,Ne,De){let Xe=Ne;for(;Xe>0;){const be=G.text.charCodeAt(Xe);if(!qm(be))break;Xe--}const ve=_p(Xe,G);return H(ve,Xe,G,De)}function o(G,Ne,De,Xe,ve,be){let xe,rt=De;for(;rt;){if(gY(rt,Ne,G)&&ue(be,rt,xe,G,!0)){const pe=C(rt,G),Pe=k(De,rt,Xe,G),Ge=Pe!==0?ve&&Pe===2?be.indentSize:0:Xe!==pe.line?be.indentSize:0;return f(rt,pe,void 0,Ge,G,!0,be)}const ct=Z(rt,G,be,!0);if(ct!==-1)return ct;xe=rt,rt=rt.parent}return u(be)}function l(G,Ne,De,Xe){const ve=De.getLineAndCharacterOfPosition(G.getStart(De));return f(G,ve,Ne,0,De,!1,Xe)}e.getIndentationForNode=l;function u(G){return G.baseIndentSize||0}e.getBaseIndentation=u;function f(G,Ne,De,Xe,ve,be,xe){var rt;let ct=G.parent;for(;ct;){let pe=!0;if(De){const mt=G.getStart(ve);pe=mtDe.end}const Pe=g(ct,G,ve),Ge=Pe.line===Ne.line||D(ct,G,Ne.line,ve);if(pe){const mt=(rt=U(G,ve))==null?void 0:rt[0],Je=!!mt&&C(mt,ve).line>Pe.line;let at=Z(G,ve,xe,Je);if(at!==-1||(at=y(G,ct,Ne,Ge,ve,xe),at!==-1))return at+Xe}ue(xe,ct,G,ve,be)&&!Ge&&(Xe+=xe.indentSize);const tt=N(ct,G,Ne.line,ve);G=ct,ct=G.parent,Ne=tt?ve.getLineAndCharacterOfPosition(G.getStart(ve)):Pe}return Xe+u(xe)}function g(G,Ne,De){const Xe=U(Ne,De),ve=Xe?Xe.pos:G.getStart(De);return De.getLineAndCharacterOfPosition(ve)}function m(G,Ne,De){const Xe=Mhe(G);return Xe&&Xe.listItemIndex>0?oe(Xe.list.getChildren(),Xe.listItemIndex-1,Ne,De):-1}function y(G,Ne,De,Xe,ve,be){return(l_(G)||ww(G))&&(Ne.kind===312||!Xe)?_e(De,ve,be):-1}let x;(G=>{G[G.Unknown=0]="Unknown",G[G.OpenBrace=1]="OpenBrace",G[G.CloseBrace=2]="CloseBrace"})(x||(x={}));function k(G,Ne,De,Xe){const ve=yT(G,Ne,Xe);if(!ve)return 0;if(ve.kind===19)return 1;if(ve.kind===20){const be=C(ve,Xe).line;return De===be?2:0}return 0}function C(G,Ne){return Ne.getLineAndCharacterOfPosition(G.getStart(Ne))}function N(G,Ne,De,Xe){if(!(js(G)&&gs(G.arguments,Ne)))return!1;const ve=G.expression.getEnd();return vo(Xe,ve).line===De}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function D(G,Ne,De,Xe){if(G.kind===245&&G.elseStatement===Ne){const ve=$a(G,93,Xe);return E.assert(ve!==void 0),C(ve,Xe).line===De}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=D;function M(G,Ne,De,Xe){if(K6(G)&&(Ne===G.whenTrue||Ne===G.whenFalse)){const ve=vo(Xe,G.condition.end).line;if(Ne===G.whenTrue)return De===ve;{const be=C(G.whenTrue,Xe).line,xe=vo(Xe,G.whenTrue.end).line;return ve===be&&xe===De}}return!1}e.childIsUnindentedBranchOfConditionalExpression=M;function V(G,Ne,De,Xe){if(Xm(G)){if(!G.arguments)return!1;const ve=Fr(G.arguments,ct=>ct.pos===Ne.pos);if(!ve)return!1;const be=G.arguments.indexOf(ve);if(be===0)return!1;const xe=G.arguments[be-1],rt=vo(Xe,xe.getEnd()).line;if(De===rt)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=V;function U(G,Ne){return G.parent&&j(G.getStart(Ne),G.getEnd(),G.parent,Ne)}e.getContainingList=U;function Y(G,Ne,De){return Ne&&j(G,G,Ne,De)}function j(G,Ne,De,Xe){switch(De.kind){case 183:return ve(De.typeArguments);case 210:return ve(De.properties);case 209:return ve(De.elements);case 187:return ve(De.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return ve(De.typeParameters)||ve(De.parameters);case 177:return ve(De.parameters);case 263:case 231:case 264:case 265:case 352:return ve(De.typeParameters);case 214:case 213:return ve(De.typeArguments)||ve(De.arguments);case 261:return ve(De.declarations);case 275:case 279:return ve(De.elements);case 206:case 207:return ve(De.elements)}function ve(be){return be&&E5(ee(De,be,Xe),G,Ne)?be:void 0}}function ee(G,Ne,De){const Xe=G.getChildren(De);for(let ve=1;ve=0&&Ne=0;xe--){if(G[xe].kind===28)continue;if(De.getLineAndCharacterOfPosition(G[xe].end).line!==be.line)return _e(be,De,Xe);be=C(G[xe],De)}return-1}function _e(G,Ne,De){const Xe=Ne.getPositionOfLineAndCharacter(G.line,0);return H(Xe,Xe+G.character,Ne,De)}function X(G,Ne,De,Xe){let ve=0,be=0;for(let xe=G;xeYne,FormattingRequestKind:()=>Qne,RuleAction:()=>Kne,RuleFlags:()=>ere,SmartIndenter:()=>od,anyContext:()=>zN,createTextRangeWithKind:()=>tJ,formatDocument:()=>j$e,formatNodeGivenIndentation:()=>H$e,formatOnClosingCurly:()=>B$e,formatOnEnter:()=>L$e,formatOnOpeningCurly:()=>R$e,formatOnSemicolon:()=>M$e,formatSelection:()=>J$e,getAllRules:()=>i6e,getFormatContext:()=>E$e,getFormattingScanner:()=>Zne,getIndentationString:()=>pre,getRangeOfEnclosingComment:()=>D6e});var AE=Bt({"src/services/_namespaces/ts.formatting.ts"(){XGe(),QGe(),YGe(),C$e(),F$e(),X$e(),Q$e()}}),Wr=Bt({"src/services/_namespaces/ts.ts"(){Os(),pM(),_Fe(),BFe(),VFe(),H1e(),eLe(),tLe(),cLe(),yLe(),vLe(),TLe(),ALe(),PLe(),QBe(),ZBe(),tje(),ije(),kje(),Eje(),Ks(),lne(),dke(),qqe(),Qqe(),dHe(),Sye(),qye(),LHe(),UHe(),Wd(),YHe(),kGe(),IGe(),MGe(),$Ge(),AE()}});function Y$e(){return rJ!=null?rJ:rJ=new Ed(F0)}function A6e(e,t,r,i,a){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=i?`has been deprecated since v${i}`:"is deprecated",o+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",o+=a?` ${tg(a,[e],0)}`:"",o}function Z$e(e,t,r,i){const a=A6e(e,!0,t,r,i);return()=>{throw new TypeError(a)}}function K$e(e,t,r,i){let a=!1;return()=>{N6e&&!a&&(E.log.warn(A6e(e,!1,t,r,i)),a=!0)}}function eXe(e,t={}){var f,g;const r=typeof t.typeScriptVersion=="string"?new Ed(t.typeScriptVersion):(f=t.typeScriptVersion)!=null?f:Y$e(),i=typeof t.errorAfter=="string"?new Ed(t.errorAfter):t.errorAfter,a=typeof t.warnAfter=="string"?new Ed(t.warnAfter):t.warnAfter,o=typeof t.since=="string"?new Ed(t.since):(g=t.since)!=null?g:a,l=t.error||i&&r.compareTo(i)>=0,u=!a||r.compareTo(a)>=0;return l?Z$e(e,i,o,t.message):u?K$e(e,i,o,t.message):_o}function tXe(e,t){return function(){return e(),t.apply(this,arguments)}}function dre(e,t){var i;const r=eXe((i=t==null?void 0:t.name)!=null?i:E.getFunctionName(e),t);return tXe(r,e)}var N6e,rJ,P6e=Bt({"src/deprecatedCompat/deprecate.ts"(){iJ(),N6e=!0}});function mre(e,t,r,i){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),i)for(const l of Object.keys(i)){const u=+l;!isNaN(u)&&lo(t,`${u}`)&&(t[u]=dre(t[u],{...i[u],name:e}))}const a=nXe(t,r);return o;function o(...l){const u=a(l),f=u!==void 0?t[u]:void 0;if(typeof f=="function")return f(...l);throw new TypeError("Invalid arguments")}}function nXe(e,t){return r=>{for(let i=0;lo(e,`${i}`)&&lo(t,`${i}`);i++){const a=t[i];if(a(r))return i}}}function rXe(e){return{overload:t=>({bind:r=>({finish:()=>mre(e,t,r),deprecate:i=>({finish:()=>mre(e,t,r,i)})})})}}var iXe=Bt({"src/deprecatedCompat/deprecations.ts"(){iJ(),P6e()}}),sXe=Bt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){iJ(),P6e(),tue(e=>{const t=e.getIdentifierConstructor();lo(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:dre(function(){return uy(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),lo(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:dre(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),iJ=Bt({"src/deprecatedCompat/_namespaces/ts.ts"(){Os(),iXe(),sXe()}}),I6e={};C_(I6e,{ANONYMOUS:()=>rR,AccessFlags:()=>YV,AssertionLevel:()=>TV,AssignmentDeclarationKind:()=>aU,AssignmentKind:()=>mH,Associativity:()=>hH,BreakpointResolver:()=>BK,BuilderFileEmit:()=>QX,BuilderProgramKind:()=>YX,BuilderState:()=>wm,BundleFileSectionKind:()=>kU,CallHierarchy:()=>JS,CharacterCodes:()=>hU,CheckFlags:()=>HV,CheckMode:()=>bL,ClassificationType:()=>sY,ClassificationTypeNames:()=>iY,CommentDirectiveType:()=>NV,Comparison:()=>Yz,CompletionInfoFlags:()=>YQ,CompletionTriggerKind:()=>HQ,Completions:()=>HS,ConfigFileProgramReloadLevel:()=>vX,ContainerFlags:()=>k$,ContextFlags:()=>RV,CoreServicesShimHostAdapter:()=>RK,Debug:()=>E,DiagnosticCategory:()=>H7,Diagnostics:()=>p,DocumentHighlights:()=>aR,ElementFlags:()=>QV,EmitFlags:()=>JI,EmitHint:()=>TU,EmitOnly:()=>IV,EndOfLineState:()=>eY,EnumKind:()=>qV,ExitStatus:()=>FV,ExportKind:()=>uZ,Extension:()=>yU,ExternalEmitHelpers:()=>bU,FileIncludeKind:()=>II,FilePreprocessingDiagnosticsKind:()=>PV,FileSystemEntryKind:()=>NU,FileWatcherEventKind:()=>DU,FindAllReferences:()=>Oo,FlattenLevel:()=>X$,FlowFlags:()=>q7,ForegroundColorEscapeSequences:()=>LX,FunctionFlags:()=>gH,GeneratedIdentifierFlags:()=>PI,GetLiteralTextFlags:()=>fH,GoToDefinition:()=>bE,HighlightSpanKind:()=>$Q,IdentifierNameMap:()=>SS,IdentifierNameMultiMap:()=>H$,ImportKind:()=>_Z,ImportsNotUsedAsValues:()=>fU,IndentStyle:()=>XQ,IndexFlags:()=>ZV,IndexKind:()=>tU,InferenceFlags:()=>iU,InferencePriority:()=>rU,InlayHintKind:()=>GQ,InlayHints:()=>Cne,InternalEmitFlags:()=>vU,InternalSymbolName:()=>GV,InvalidatedProjectKind:()=>PQ,JsDoc:()=>zy,JsTyping:()=>mT,JsxEmit:()=>uU,JsxFlags:()=>DV,JsxReferenceKind:()=>KV,LanguageServiceMode:()=>UQ,LanguageServiceShimHostAdapter:()=>MK,LanguageVariant:()=>mU,LexicalEnvironmentFlags:()=>SU,ListFormat:()=>CU,LogLevel:()=>SV,MemberOverrideStatus:()=>LV,ModifierFlags:()=>AI,ModuleDetectionKind:()=>oU,ModuleInstanceState:()=>S$,ModuleKind:()=>FC,ModuleResolutionKind:()=>qk,ModuleSpecifierEnding:()=>DH,NavigateTo:()=>xye,NavigationBar:()=>Wye,NewLineKind:()=>pU,NodeBuilderFlags:()=>BV,NodeCheckFlags:()=>$V,NodeFactoryFlags:()=>FH,NodeFlags:()=>DI,NodeResolutionFeatures:()=>b$,ObjectFlags:()=>LI,OperationCanceledException:()=>OC,OperatorPrecedence:()=>yH,OrganizeImports:()=>Op,OrganizeImportsMode:()=>qQ,OuterExpressionKinds:()=>xU,OutliningElementsCollector:()=>Lne,OutliningSpanKind:()=>ZQ,OutputFileType:()=>KQ,PackageJsonAutoImportPreference:()=>VQ,PackageJsonDependencyGroup:()=>zQ,PatternMatchKind:()=>lR,PollingInterval:()=>zI,PollingWatchKind:()=>_U,PragmaKindFlags:()=>EU,PrivateIdentifierKind:()=>UH,ProcessLevel:()=>tX,QuotePreference:()=>aZ,RelationComparisonResult:()=>NI,Rename:()=>Hj,ScriptElementKind:()=>nY,ScriptElementKindModifier:()=>rY,ScriptKind:()=>RI,ScriptSnapshot:()=>JQ,ScriptTarget:()=>dU,SemanticClassificationFormat:()=>WQ,SemanticMeaning:()=>sZ,SemicolonPreference:()=>QQ,SignatureCheckMode:()=>TL,SignatureFlags:()=>MI,SignatureHelp:()=>JN,SignatureKind:()=>eU,SmartSelectionRange:()=>Jne,SnippetKind:()=>jI,SortKind:()=>vV,StructureIsReused:()=>OV,SymbolAccessibility:()=>zV,SymbolDisplay:()=>fh,SymbolDisplayPartKind:()=>b5,SymbolFlags:()=>OI,SymbolFormatFlags:()=>JV,SyntaxKind:()=>wI,SyntheticSymbolKind:()=>VV,Ternary:()=>sU,ThrottledCancellationToken:()=>PK,TokenClass:()=>tY,TokenFlags:()=>AV,TransformFlags:()=>BI,TypeFacts:()=>yL,TypeFlags:()=>FI,TypeFormatFlags:()=>jV,TypeMapKind:()=>nU,TypePredicateKind:()=>UV,TypeReferenceSerializationKind:()=>WV,TypeScriptServicesFactory:()=>y2e,UnionReduction:()=>MV,UpToDateStatusType:()=>gQ,VarianceFlags:()=>XV,Version:()=>Ed,VersionRange:()=>V7,WatchDirectoryFlags:()=>gU,WatchDirectoryKind:()=>lU,WatchFileKind:()=>cU,WatchLogLevel:()=>bX,WatchType:()=>cp,accessPrivateIdentifier:()=>$me,addDisposableResourceHelper:()=>lF,addEmitFlags:()=>xm,addEmitHelper:()=>eS,addEmitHelpers:()=>Yg,addInternalEmitFlags:()=>Zx,addNodeFactoryPatcher:()=>n5e,addObjectAllocatorPatcher:()=>tue,addRange:()=>Lr,addRelatedInfo:()=>fa,addSyntheticLeadingComment:()=>X3,addSyntheticTrailingComment:()=>MO,addToSeen:()=>Kp,advancedAsyncSuperHelper:()=>eA,affectsDeclarationPathOptionDeclarations:()=>XG,affectsEmitOptionDeclarations:()=>$G,allKeysStartWithDot:()=>cL,altDirectorySeparator:()=>sw,and:()=>hI,append:()=>gn,appendIfUnique:()=>Rg,arrayFrom:()=>ia,arrayIsEqualTo:()=>kd,arrayIsHomogeneous:()=>wue,arrayIsSorted:()=>toe,arrayOf:()=>soe,arrayReverseIterator:()=>rwe,arrayToMap:()=>Mv,arrayToMultiMap:()=>j7,arrayToNumericMap:()=>ooe,arraysEqual:()=>N7,assertType:()=>fwe,assign:()=>B7,assignHelper:()=>UO,asyncDelegator:()=>qO,asyncGeneratorHelper:()=>WO,asyncSuperHelper:()=>KD,asyncValues:()=>HO,attachFileToDiagnostics:()=>Xx,awaitHelper:()=>tS,awaiterHelper:()=>$O,base64decode:()=>q_e,base64encode:()=>W_e,binarySearch:()=>Hh,binarySearchKey:()=>yx,bindSourceFile:()=>sme,breakIntoCharacterSpans:()=>rye,breakIntoWordSpans:()=>iye,buildLinkParts:()=>f1e,buildOpts:()=>$F,buildOverload:()=>rXe,bundlerModuleNameResolver:()=>jde,canBeConvertedToAsync:()=>DZ,canHaveDecorators:()=>iT,canHaveExportModifier:()=>LD,canHaveFlowNode:()=>nD,canHaveIllegalDecorators:()=>TG,canHaveIllegalModifiers:()=>epe,canHaveIllegalType:()=>W5e,canHaveIllegalTypeParameters:()=>Kfe,canHaveJSDoc:()=>rD,canHaveLocals:()=>fm,canHaveModifiers:()=>Ap,canHaveSymbol:()=>Nd,canJsonReportNoInputFiles:()=>AA,canProduceDiagnostics:()=>FL,canUsePropertyAccess:()=>oH,canWatchAffectingLocation:()=>x0e,canWatchAtTypes:()=>v0e,canWatchDirectoryOrFile:()=>y0e,cartesianProduct:()=>Toe,cast:()=>Ms,chainBundle:()=>Np,chainDiagnosticMessages:()=>_s,changeAnyExtension:()=>rw,changeCompilerHostLikeToUseCache:()=>a5,changeExtension:()=>Sy,changesAffectModuleResolution:()=>bW,changesAffectingProgramStructure:()=>gle,childIsDecorated:()=>s3,classElementOrClassElementParameterIsDecorated:()=>HW,classHasClassThisAssignment:()=>Q$,classHasDeclaredOrExplicitlyAssignedName:()=>Y$,classHasExplicitlyAssignedName:()=>NL,classOrConstructorParameterIsDecorated:()=>a1,classPrivateFieldGetHelper:()=>aF,classPrivateFieldInHelper:()=>cF,classPrivateFieldSetHelper:()=>oF,classicNameResolver:()=>tme,classifier:()=>D2e,cleanExtendedConfigCache:()=>yX,clear:()=>Wm,clearMap:()=>Lf,clearSharedExtendedConfigFileWatcher:()=>jge,climbPastPropertyAccess:()=>gM,climbPastPropertyOrElementAccess:()=>Ihe,clone:()=>uV,cloneCompilerOptions:()=>Yhe,closeFileWatcher:()=>vm,closeFileWatcherOf:()=>Em,codefix:()=>n_,collapseTextChangeRangesAcrossMultipleVersions:()=>dDe,collectExternalModuleInfo:()=>J$,combine:()=>Vk,combinePaths:()=>Pi,commentPragmas:()=>G7,commonOptionsWithBuild:()=>FA,commonPackageFolders:()=>TH,compact:()=>M7,compareBooleans:()=>Rv,compareDataObjects:()=>Rq,compareDiagnostics:()=>N3,compareDiagnosticsSkipRelatedInformation:()=>uO,compareEmitHelpers:()=>gfe,compareNumberOfDirectorySeparators:()=>PD,comparePaths:()=>Cb,comparePathsCaseInsensitive:()=>iDe,comparePathsCaseSensitive:()=>rDe,comparePatternKeys:()=>h$,compareProperties:()=>moe,compareStringsCaseInsensitive:()=>pI,compareStringsCaseInsensitiveEslintCompatible:()=>foe,compareStringsCaseSensitive:()=>w_,compareStringsCaseSensitiveUI:()=>z7,compareTextSpans:()=>fI,compareValues:()=>Co,compileOnSaveCommandLineOption:()=>PA,compilerOptionsAffectDeclarationPath:()=>gue,compilerOptionsAffectEmit:()=>mue,compilerOptionsAffectSemanticDiagnostics:()=>due,compilerOptionsDidYouMeanDiagnostics:()=>MA,compilerOptionsIndicateEsModules:()=>PY,compose:()=>lwe,computeCommonSourceDirectoryOfFilenames:()=>Wge,computeLineAndCharacterOfPosition:()=>lw,computeLineOfPosition:()=>BC,computeLineStarts:()=>ow,computePositionOfLineAndCharacter:()=>JU,computeSignature:()=>pT,computeSignatureWithDiagnostics:()=>qX,computeSuggestionDiagnostics:()=>CZ,concatenate:()=>Ki,concatenateDiagnosticMessageChains:()=>aue,consumesNodeCoreModules:()=>XM,contains:()=>gs,containsIgnoredPath:()=>J3,containsObjectRestOrSpread:()=>bA,containsParseError:()=>c6,containsPath:()=>Xh,convertCompilerOptionsForTelemetry:()=>ZNe,convertCompilerOptionsFromJson:()=>WNe,convertJsonOption:()=>vS,convertToBase64:()=>U_e,convertToJson:()=>wA,convertToObject:()=>Qpe,convertToOptionsWithAbsolutePaths:()=>RG,convertToRelativePath:()=>MC,convertToTSConfig:()=>NNe,convertTypeAcquisitionFromJson:()=>qNe,copyComments:()=>TT,copyEntries:()=>m9,copyLeadingComments:()=>D4,copyProperties:()=>fV,copyTrailingAsLeadingComments:()=>z5,copyTrailingComments:()=>W8,couldStartTrivia:()=>sce,countWhere:()=>L0,createAbstractBuilder:()=>pOe,createAccessorPropertyBackingField:()=>xG,createAccessorPropertyGetRedirector:()=>lpe,createAccessorPropertySetRedirector:()=>_pe,createBaseNodeFactory:()=>Kue,createBinaryExpressionTrampoline:()=>OF,createBindingHelper:()=>H6,createBuildInfo:()=>r5,createBuilderProgram:()=>HX,createBuilderProgramUsingProgramBuildInfo:()=>h0e,createBuilderStatusReporter:()=>j0e,createCacheWithRedirects:()=>l$,createCacheableExportInfoMap:()=>M1e,createCachedDirectoryStructureHost:()=>Bge,createClassNamedEvaluationHelperBlock:()=>Kme,createClassThisAssignmentBlock:()=>Qme,createClassifier:()=>j1e,createCommentDirectivesMap:()=>wle,createCompilerDiagnostic:()=>kc,createCompilerDiagnosticForInvalidCustomType:()=>Bpe,createCompilerDiagnosticFromMessageChain:()=>_O,createCompilerHost:()=>qge,createCompilerHostFromProgramHost:()=>uQ,createCompilerHostWorker:()=>SX,createDetachedDiagnostic:()=>L6,createDiagnosticCollection:()=>D6,createDiagnosticForFileFromMessageChain:()=>JW,createDiagnosticForNode:()=>yr,createDiagnosticForNodeArray:()=>u6,createDiagnosticForNodeArrayFromMessageChain:()=>Fw,createDiagnosticForNodeFromMessageChain:()=>Wg,createDiagnosticForNodeInSourceFile:()=>Qf,createDiagnosticForRange:()=>zW,createDiagnosticMessageChainFromDiagnostic:()=>Rle,createDiagnosticReporter:()=>p5,createDocumentPositionMapper:()=>jme,createDocumentRegistry:()=>dZ,createDocumentRegistryInternal:()=>G1e,createEmitAndSemanticDiagnosticsBuilderProgram:()=>ZX,createEmitHelperFactory:()=>mfe,createEmptyExports:()=>uA,createExpressionForJsxElement:()=>Wfe,createExpressionForJsxFragment:()=>qfe,createExpressionForObjectLiteralElementLike:()=>Hfe,createExpressionForPropertyName:()=>mG,createExpressionFromEntityName:()=>fA,createExternalHelpersImportDeclarationIfNeeded:()=>yG,createFileDiagnostic:()=>vl,createFileDiagnosticFromMessageChain:()=>S9,createForOfBindingStatement:()=>dG,createGetCanonicalFileName:()=>Ql,createGetSourceFile:()=>TX,createGetSymbolAccessibilityDiagnosticForNode:()=>ah,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Sge,createGetSymbolWalker:()=>cme,createIncrementalCompilerHost:()=>dQ,createIncrementalProgram:()=>B0e,createInputFiles:()=>l5e,createInputFilesWithFilePaths:()=>IH,createInputFilesWithFileTexts:()=>OH,createJsxFactoryExpression:()=>pG,createLanguageService:()=>r2e,createLanguageServiceSourceFile:()=>WR,createMemberAccessForPropertyName:()=>rT,createModeAwareCache:()=>oT,createModeAwareCacheKey:()=>y8,createModuleNotFoundChain:()=>xW,createModuleResolutionCache:()=>d4,createModuleResolutionLoader:()=>AX,createModuleSpecifierResolutionHost:()=>bT,createMultiMap:()=>$f,createNodeConverters:()=>tfe,createNodeFactory:()=>qD,createOptionNameMap:()=>BF,createOverload:()=>mre,createPackageJsonImportFilter:()=>G8,createPackageJsonInfo:()=>k1e,createParenthesizerRules:()=>efe,createPatternMatcher:()=>Y1e,createPrependNodes:()=>OX,createPrinter:()=>Ly,createPrinterWithDefaults:()=>mX,createPrinterWithRemoveComments:()=>C2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>gX,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>i5,createProgram:()=>HL,createProgramHost:()=>fQ,createPropertyNameNodeForIdentifierOrLiteral:()=>EO,createQueue:()=>pV,createRange:()=>ep,createRedirectedBuilderProgram:()=>XX,createResolutionCache:()=>E0e,createRuntimeTypeSerializer:()=>rge,createScanner:()=>V0,createSemanticDiagnosticsBuilderProgram:()=>fOe,createSet:()=>owe,createSolutionBuilder:()=>POe,createSolutionBuilderHost:()=>DOe,createSolutionBuilderWithWatch:()=>IOe,createSolutionBuilderWithWatchHost:()=>AOe,createSortedArray:()=>aV,createSourceFile:()=>xA,createSourceMapGenerator:()=>Ime,createSourceMapSource:()=>_5e,createSuperAccessVariableStatement:()=>IL,createSymbolTable:()=>Us,createSymlinkCache:()=>hue,createSystemWatchFunctions:()=>Yoe,createTextChange:()=>P5,createTextChangeFromStartLength:()=>AM,createTextChangeRange:()=>mw,createTextRangeFromNode:()=>DY,createTextRangeFromSpan:()=>DM,createTextSpan:()=>yl,createTextSpanFromBounds:()=>ll,createTextSpanFromNode:()=>au,createTextSpanFromRange:()=>b1,createTextSpanFromStringLiteralLikeContent:()=>wY,createTextWriter:()=>gD,createTokenRange:()=>Fq,createTypeChecker:()=>Cme,createTypeReferenceDirectiveResolutionCache:()=>nL,createTypeReferenceResolutionLoader:()=>WL,createUnparsedSourceFile:()=>PH,createWatchCompilerHost:()=>SOe,createWatchCompilerHostOfConfigFile:()=>M0e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>R0e,createWatchFactory:()=>_Q,createWatchHost:()=>lQ,createWatchProgram:()=>kOe,createWatchStatusReporter:()=>D0e,createWriteFileMeasuringIO:()=>xX,declarationNameToString:()=>no,decodeMappings:()=>R$,decodedTextSpanIntersectsWith:()=>XI,decorateHelper:()=>BO,deduplicate:()=>zk,defaultIncludeSpec:()=>YF,defaultInitCompilerOptions:()=>QF,defaultMaximumTruncationLength:()=>jD,detectSortCaseSensitivity:()=>lI,diagnosticCategoryName:()=>EI,diagnosticToString:()=>ST,directoryProbablyExists:()=>Zp,directorySeparator:()=>Wo,displayPart:()=>vu,displayPartsToString:()=>e2e,disposeEmitNodes:()=>RH,disposeResourcesHelper:()=>_F,documentSpansEqual:()=>EFe,dumpTracingLegend:()=>Uoe,elementAt:()=>j0,elideNodes:()=>cpe,emitComments:()=>N_e,emitDetachedComments:()=>P_e,emitFiles:()=>RL,emitFilesAndReportErrors:()=>iM,emitFilesAndReportErrorsAndGetExitStatus:()=>O0e,emitModuleKindIsNonNodeESM:()=>fO,emitNewLineBeforeLeadingCommentOfPosition:()=>A_e,emitNewLineBeforeLeadingComments:()=>w_e,emitNewLineBeforeLeadingCommentsOfPosition:()=>D_e,emitSkippedWithNoDiagnostics:()=>KL,emitUsingBuildInfo:()=>Rge,emptyArray:()=>Ve,emptyFileSystemEntries:()=>OO,emptyMap:()=>bI,emptyOptions:()=>lp,emptySet:()=>koe,endsWith:()=>Tc,ensurePathIsNonModuleName:()=>Vv,ensureScriptKind:()=>TO,ensureTrailingDirectorySeparator:()=>D_,entityNameToString:()=>Nu,enumerateInsertsAndDeletes:()=>boe,equalOwnProperties:()=>aoe,equateStringsCaseInsensitive:()=>bx,equateStringsCaseSensitive:()=>Tx,equateValues:()=>oy,esDecorateHelper:()=>zO,escapeJsxAttributeString:()=>hq,escapeLeadingUnderscores:()=>qo,escapeNonAsciiString:()=>dD,escapeSnippetText:()=>_2,escapeString:()=>Ux,every:()=>$i,expandPreOrPostfixIncrementOrDecrementExpression:()=>wF,explainFiles:()=>I0e,explainIfFileIsRedirectAndImpliedFormat:()=>sQ,exportAssignmentIsAlias:()=>k6,exportStarHelper:()=>sF,expressionResultIsUnused:()=>Aue,extend:()=>uI,extendsHelper:()=>XO,extensionFromPath:()=>Gb,extensionIsTS:()=>SO,extensionsNotSupportingExtensionlessResolution:()=>WD,externalHelpersModuleNameText:()=>_1,factory:()=>I,fileExtensionIs:()=>Hc,fileExtensionIsOneOf:()=>Gc,fileIncludeReasonToDiagnostics:()=>cQ,fileShouldUseJavaScriptRequire:()=>iZ,filter:()=>Vr,filterMutate:()=>eV,filterSemanticDiagnostics:()=>GL,find:()=>Fr,findAncestor:()=>On,findBestPatternMatch:()=>gV,findChildOfKind:()=>$a,findComputedPropertyNameCacheAssignment:()=>FF,findConfigFile:()=>Uge,findContainingList:()=>TM,findDiagnosticForNode:()=>E1e,findFirstNonJsxWhitespaceToken:()=>Vhe,findIndex:()=>qc,findLast:()=>hx,findLastIndex:()=>cI,findListItemInfo:()=>Mhe,findMap:()=>Q7e,findModifier:()=>C4,findNextToken:()=>yT,findPackageJson:()=>x1e,findPackageJsons:()=>YY,findPrecedingMatchingToken:()=>EM,findPrecedingToken:()=>rl,findSuperStatementIndexPath:()=>ZA,findTokenOnLeftOfPosition:()=>kM,findUseStrictPrologue:()=>hG,first:()=>wa,firstDefined:()=>_c,firstDefinedIterator:()=>A7,firstIterator:()=>ioe,firstOrOnly:()=>eZ,firstOrUndefined:()=>wl,firstOrUndefinedIterator:()=>_I,fixupCompilerOptions:()=>AZ,flatMap:()=>Na,flatMapIterator:()=>nV,flatMapToMutable:()=>P7,flatten:()=>vp,flattenCommaList:()=>upe,flattenDestructuringAssignment:()=>_T,flattenDestructuringBinding:()=>S2,flattenDiagnosticMessageText:()=>y1,forEach:()=>mn,forEachAncestor:()=>hle,forEachAncestorDirectory:()=>Jg,forEachChild:()=>ys,forEachChildRecursively:()=>p8,forEachEmittedFile:()=>fX,forEachEnclosingBlockScopeContainer:()=>Lle,forEachEntry:()=>Au,forEachExternalModuleToImportFrom:()=>lZ,forEachImportClauseDeclaration:()=>q9,forEachKey:()=>Ix,forEachLeadingCommentRange:()=>_w,forEachNameInAccessChainWalkingLeft:()=>EAe,forEachPropertyAssignment:()=>g6,forEachResolvedProjectReference:()=>Xge,forEachReturnStatement:()=>Kv,forEachRight:()=>Yae,forEachTrailingCommentRange:()=>uw,forEachTsConfigPropArray:()=>Bw,forEachUnique:()=>MY,forEachYieldExpression:()=>jle,forSomeAncestorDirectory:()=>CAe,formatColorAndReset:()=>E2,formatDiagnostic:()=>kX,formatDiagnostics:()=>U9e,formatDiagnosticsWithColorAndContext:()=>$ge,formatGeneratedName:()=>Oy,formatGeneratedNamePart:()=>l4,formatLocation:()=>CX,formatMessage:()=>zq,formatStringFromArgs:()=>tg,formatting:()=>ml,fullTripleSlashAMDReferencePathRegEx:()=>dH,fullTripleSlashReferencePathRegEx:()=>pH,generateDjb2Hash:()=>$7,generateTSConfig:()=>LNe,generatorHelper:()=>nF,getAdjustedReferenceLocation:()=>hY,getAdjustedRenameLocation:()=>SM,getAliasDeclarationFromName:()=>aq,getAllAccessorDeclarations:()=>Ub,getAllDecoratorsOfClass:()=>W$,getAllDecoratorsOfClassElement:()=>AL,getAllJSDocTags:()=>ZU,getAllJSDocTagsOfKind:()=>kDe,getAllKeys:()=>iwe,getAllProjectOutputs:()=>ML,getAllSuperTypeNodes:()=>_3,getAllUnscopedEmitHelpers:()=>VH,getAllowJSCompilerOption:()=>P3,getAllowSyntheticDefaultImports:()=>Qx,getAncestor:()=>vy,getAnyExtensionFromPath:()=>tw,getAreDeclarationMapsEnabled:()=>dO,getAssignedExpandoInitializer:()=>Lx,getAssignedName:()=>GU,getAssignedNameOfIdentifier:()=>E8,getAssignmentDeclarationKind:()=>pc,getAssignmentDeclarationPropertyAccessKind:()=>Qw,getAssignmentTargetKind:()=>jb,getAutomaticTypeDirectiveNames:()=>tL,getBaseFileName:()=>Jl,getBinaryOperatorPrecedence:()=>pD,getBuildInfo:()=>BL,getBuildInfoFileVersionMap:()=>$X,getBuildInfoText:()=>Mge,getBuildOrderFromAnyBuildOrder:()=>lM,getBuilderCreationParameters:()=>tM,getBuilderFileEmit:()=>v1,getCheckFlags:()=>rc,getClassExtendsHeritageElement:()=>r2,getClassLikeDeclarationOfSymbol:()=>Xg,getCombinedLocalAndExportSymbolFlags:()=>E3,getCombinedModifierFlags:()=>Wv,getCombinedNodeFlags:()=>U0,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>HU,getCommentRange:()=>Rd,getCommonSourceDirectory:()=>n5,getCommonSourceDirectoryOfConfig:()=>P8,getCompilerOptionValue:()=>gO,getCompilerOptionsDiffValue:()=>FNe,getConditions:()=>bS,getConfigFileParsingDiagnostics:()=>fT,getConstantValue:()=>cfe,getContainerFlags:()=>x$,getContainerNode:()=>hT,getContainingClass:()=>Pl,getContainingClassExcludingClassDecorators:()=>I9,getContainingClassStaticBlock:()=>$le,getContainingFunction:()=>df,getContainingFunctionDeclaration:()=>Gle,getContainingFunctionOrClassStaticBlock:()=>P9,getContainingNodeArray:()=>Nue,getContainingObjectLiteralElement:()=>dN,getContextualTypeFromParent:()=>JM,getContextualTypeFromParentOrAncestorTypeNode:()=>xM,getCurrentTime:()=>g5,getDeclarationDiagnostics:()=>kge,getDeclarationEmitExtensionForPath:()=>yD,getDeclarationEmitOutputFilePath:()=>T_e,getDeclarationEmitOutputFilePathWorker:()=>bq,getDeclarationFromName:()=>aD,getDeclarationModifierFlagsFromSymbol:()=>Ff,getDeclarationOfKind:()=>uc,getDeclarationsOfKind:()=>dle,getDeclaredExpandoInitializer:()=>Hw,getDecorators:()=>Yh,getDefaultCompilerOptions:()=>UR,getDefaultExportInfoWorker:()=>sR,getDefaultFormatCodeSettings:()=>whe,getDefaultLibFileName:()=>GI,getDefaultLibFilePath:()=>XBe,getDefaultLikeExportInfo:()=>iR,getDiagnosticText:()=>DNe,getDiagnosticsWithinSpan:()=>w1e,getDirectoryPath:()=>bi,getDirectoryToWatchFailedLookupLocation:()=>tQ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>k0e,getDocumentPositionMapper:()=>_ye,getESModuleInterop:()=>bm,getEditsForFileRename:()=>$1e,getEffectiveBaseTypeNode:()=>Id,getEffectiveConstraintOfTypeParameter:()=>Kk,getEffectiveContainerForJSDocTemplateTag:()=>H9,getEffectiveImplementsTypeNodes:()=>C6,getEffectiveInitializer:()=>qw,getEffectiveJSDocHost:()=>Jx,getEffectiveModifierFlags:()=>I_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>L_e,getEffectiveModifierFlagsNoCache:()=>R_e,getEffectiveReturnTypeNode:()=>Kf,getEffectiveSetAccessorTypeAnnotationNode:()=>E_e,getEffectiveTypeAnnotationNode:()=>Vl,getEffectiveTypeParameterDeclarations:()=>Zh,getEffectiveTypeRoots:()=>jA,getElementOrPropertyAccessArgumentExpressionOrName:()=>W9,getElementOrPropertyAccessName:()=>Hg,getElementsOfBindingOrAssignmentPattern:()=>c4,getEmitDeclarations:()=>Ep,getEmitFlags:()=>ma,getEmitHelpers:()=>RO,getEmitModuleDetectionKind:()=>_ue,getEmitModuleKind:()=>Ul,getEmitModuleResolutionKind:()=>Cc,getEmitScriptTarget:()=>Oa,getEmitStandardClassFields:()=>pue,getEnclosingBlockScopeContainer:()=>mm,getEnclosingContainer:()=>BW,getEncodedSemanticClassifications:()=>fZ,getEncodedSyntacticClassifications:()=>pZ,getEndLinePosition:()=>Pw,getEntityNameFromTypeNode:()=>zw,getEntrypointsFromPackageJsonInfo:()=>xPe,getErrorCountForSummary:()=>nM,getErrorSpanForNode:()=>Yv,getErrorSummaryText:()=>N0e,getEscapedTextOfIdentifierOrLiteral:()=>f3,getEscapedTextOfJsxAttributeName:()=>U3,getEscapedTextOfJsxNamespacedName:()=>z6,getExpandoInitializer:()=>hy,getExportAssignmentExpression:()=>oq,getExportInfoMap:()=>W5,getExportNeedsImportStarHelper:()=>zme,getExpressionAssociativity:()=>pq,getExpressionPrecedence:()=>d3,getExternalHelpersModuleName:()=>dA,getExternalModuleImportEqualsDeclarationExpression:()=>a3,getExternalModuleName:()=>b6,getExternalModuleNameFromDeclaration:()=>v_e,getExternalModuleNameFromPath:()=>vq,getExternalModuleNameLiteral:()=>gS,getExternalModuleRequireArgument:()=>$W,getFallbackOptions:()=>s5,getFileEmitOutput:()=>e0e,getFileMatcherPatterns:()=>O3,getFileNamesFromConfigSpecs:()=>NA,getFileWatcherEventKind:()=>Goe,getFilesInErrorForSummary:()=>rM,getFirstConstructorWithBody:()=>eg,getFirstIdentifier:()=>Ku,getFirstNonSpaceCharacterPosition:()=>g1e,getFirstProjectOutput:()=>pX,getFixableErrorSpanExpression:()=>KY,getFormatCodeSettingsForWriting:()=>KM,getFullWidth:()=>Aw,getFunctionFlags:()=>Il,getHeritageClause:()=>lD,getHostSignatureFromJSDoc:()=>yy,getIdentifierAutoGenerate:()=>g5e,getIdentifierGeneratedImportReference:()=>dfe,getIdentifierTypeArguments:()=>$b,getImmediatelyInvokedFunctionExpression:()=>Mb,getImpliedNodeFormatForFile:()=>_5,getImpliedNodeFormatForFileWorker:()=>PX,getImportNeedsImportDefaultHelper:()=>j$,getImportNeedsImportStarHelper:()=>wL,getIndentSize:()=>N6,getIndentString:()=>Z9,getInferredLibraryNameResolveFrom:()=>qL,getInitializedVariables:()=>C3,getInitializerOfBinaryExpression:()=>eq,getInitializerOfBindingOrAssignmentElement:()=>gA,getInterfaceBaseTypeNodes:()=>u3,getInternalEmitFlags:()=>Tp,getInvokedExpression:()=>L9,getIsolatedModules:()=>ed,getJSDocAugmentsTag:()=>Mce,getJSDocClassTag:()=>$U,getJSDocCommentRanges:()=>UW,getJSDocCommentsAndTags:()=>nq,getJSDocDeprecatedTag:()=>XU,getJSDocDeprecatedTagNoCache:()=>Uce,getJSDocEnumTag:()=>QU,getJSDocHost:()=>zx,getJSDocImplementsTags:()=>Rce,getJSDocOverrideTagNoCache:()=>Vce,getJSDocParameterTags:()=>Zk,getJSDocParameterTagsNoCache:()=>Pce,getJSDocPrivateTag:()=>vDe,getJSDocPrivateTagNoCache:()=>jce,getJSDocProtectedTag:()=>bDe,getJSDocProtectedTagNoCache:()=>Jce,getJSDocPublicTag:()=>yDe,getJSDocPublicTagNoCache:()=>Bce,getJSDocReadonlyTag:()=>TDe,getJSDocReadonlyTagNoCache:()=>zce,getJSDocReturnTag:()=>Wce,getJSDocReturnType:()=>hw,getJSDocRoot:()=>l3,getJSDocSatisfiesExpressionType:()=>_H,getJSDocSatisfiesTag:()=>YU,getJSDocTags:()=>dy,getJSDocTagsNoCache:()=>SDe,getJSDocTemplateTag:()=>xDe,getJSDocThisTag:()=>ZI,getJSDocType:()=>py,getJSDocTypeAliasName:()=>bG,getJSDocTypeAssertionType:()=>AF,getJSDocTypeParameterDeclarations:()=>nO,getJSDocTypeParameterTags:()=>Oce,getJSDocTypeParameterTagsNoCache:()=>Fce,getJSDocTypeTag:()=>fy,getJSXImplicitImportBase:()=>yO,getJSXRuntimeImport:()=>vO,getJSXTransformEnabled:()=>hO,getKeyForCompilerOptions:()=>c$,getLanguageVariant:()=>ED,getLastChild:()=>Bq,getLeadingCommentRanges:()=>Hm,getLeadingCommentRangesOfNode:()=>VW,getLeftmostAccessExpression:()=>D3,getLeftmostExpression:()=>A3,getLineAndCharacterOfPosition:()=>vo,getLineInfo:()=>Ome,getLineOfLocalPosition:()=>h3,getLineOfLocalPositionFromLineMap:()=>zb,getLineStartPositionForPosition:()=>_p,getLineStarts:()=>zg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Q_e,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>X_e,getLinesBetweenPositions:()=>jC,getLinesBetweenRangeEndAndRangeStart:()=>Lq,getLinesBetweenRangeEndPositions:()=>TAe,getLiteralText:()=>Dle,getLocalNameForExternalImport:()=>o4,getLocalSymbolForExportDefault:()=>I6,getLocaleSpecificMessage:()=>ss,getLocaleTimeString:()=>d5,getMappedContextSpan:()=>s1e,getMappedDocumentSpan:()=>RY,getMappedLocation:()=>R5,getMatchedFileSpec:()=>aQ,getMatchedIncludeSpec:()=>oQ,getMeaningFromDeclaration:()=>T5,getMeaningFromLocation:()=>gT,getMembersOfDeclaration:()=>Jle,getModeForFileReference:()=>o5,getModeForResolutionAtIndex:()=>EX,getModeForUsageLocation:()=>op,getModifiedTime:()=>Ex,getModifiers:()=>qv,getModuleInstanceState:()=>t0,getModuleNameStringLiteralAt:()=>XL,getModuleSpecifierEndingPreference:()=>Yq,getModuleSpecifierResolverHost:()=>IY,getNameForExportedSymbol:()=>QM,getNameFromIndexInfo:()=>Mle,getNameFromPropertyName:()=>F5,getNameOfAccessExpression:()=>K_e,getNameOfCompilerOptionValue:()=>LG,getNameOfDeclaration:()=>os,getNameOfExpando:()=>ZW,getNameOfJSDocTypedef:()=>Ace,getNameOrArgument:()=>Xw,getNameTable:()=>DK,getNamesForExportedSymbol:()=>A1e,getNamespaceDeclarationNode:()=>T6,getNewLineCharacter:()=>Z0,getNewLineKind:()=>U5,getNewLineOrDefaultFromHost:()=>r0,getNewTargetContainer:()=>Qle,getNextJSDocCommentLocation:()=>rq,getNodeForGeneratedName:()=>yA,getNodeId:()=>Ba,getNodeKind:()=>w2,getNodeModifiers:()=>j8,getNodeModulePathParts:()=>aH,getNonAssignedNameOfDeclaration:()=>YI,getNonAssignmentOperatorForCompoundAssignment:()=>k8,getNonAugmentationDeclaration:()=>IW,getNonDecoratorTokenPosOfNode:()=>EW,getNormalizedAbsolutePath:()=>fs,getNormalizedAbsolutePathWithoutRoot:()=>FU,getNormalizedPathComponents:()=>nw,getObjectFlags:()=>Br,getOperator:()=>mq,getOperatorAssociativity:()=>dq,getOperatorPrecedence:()=>fD,getOptionFromName:()=>PG,getOptionsForLibraryResolution:()=>u$,getOptionsNameMap:()=>f4,getOrCreateEmitNode:()=>e_,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Yfe,getOrUpdate:()=>O7,getOriginalNode:()=>Ko,getOriginalNodeId:()=>t_,getOriginalSourceFile:()=>cAe,getOutputDeclarationFileName:()=>N8,getOutputExtension:()=>LL,getOutputFileNames:()=>D9e,getOutputPathsFor:()=>A8,getOutputPathsForBundle:()=>D8,getOwnEmitOutputFilePath:()=>b_e,getOwnKeys:()=>Bg,getOwnValues:()=>vx,getPackageJsonInfo:()=>v2,getPackageJsonTypesVersionsPaths:()=>eL,getPackageJsonsVisibleToFile:()=>S1e,getPackageNameFromTypesPackageName:()=>WA,getPackageScopeForPath:()=>aL,getParameterSymbolFromJSDoc:()=>iD,getParameterTypeNode:()=>YAe,getParentNodeInSpan:()=>M5,getParseTreeNode:()=>es,getParsedCommandLineOfConfigFile:()=>kA,getPathComponents:()=>Dl,getPathComponentsRelativeTo:()=>RU,getPathFromPathComponents:()=>Gh,getPathUpdater:()=>gZ,getPathsBasePath:()=>eO,getPatternFromSpec:()=>Gq,getPendingEmitKind:()=>b4,getPositionOfLineAndCharacter:()=>cw,getPossibleGenericSignatures:()=>TY,getPossibleOriginalInputExtensionForExtension:()=>x_e,getPossibleTypeArgumentsInfo:()=>xY,getPreEmitDiagnostics:()=>V9e,getPrecedingNonSpaceCharacterPosition:()=>BM,getPrivateIdentifier:()=>q$,getProperties:()=>V$,getProperty:()=>R7,getPropertyArrayElementValue:()=>Hle,getPropertyAssignmentAliasLikeExpression:()=>d_e,getPropertyNameForPropertyNameNode:()=>by,getPropertyNameForUniqueESSymbol:()=>aAe,getPropertyNameFromType:()=>ip,getPropertyNameOfBindingOrAssignmentElement:()=>vG,getPropertySymbolFromBindingElement:()=>MM,getPropertySymbolsFromContextualType:()=>qR,getQuoteFromPreference:()=>FY,getQuotePreference:()=>Mf,getRangesWhere:()=>sV,getRefactorContextSpan:()=>IS,getReferencedFileLocation:()=>I8,getRegexFromPattern:()=>c1,getRegularExpressionForWildcard:()=>I3,getRegularExpressionsForWildcards:()=>bO,getRelativePathFromDirectory:()=>um,getRelativePathFromFile:()=>iw,getRelativePathToDirectoryOrUrl:()=>wx,getRenameLocation:()=>J5,getReplacementSpanForContextToken:()=>EY,getResolutionDiagnostic:()=>FX,getResolutionModeOverrideForClause:()=>ES,getResolveJsonModule:()=>qb,getResolvePackageJsonExports:()=>Uq,getResolvePackageJsonImports:()=>RAe,getResolvedExternalModuleName:()=>K9,getResolvedModule:()=>Ox,getResolvedTypeReferenceDirective:()=>LDe,getRestIndicatorOfBindingOrAssignmentElement:()=>PF,getRestParameterElementType:()=>WW,getRightMostAssignedExpression:()=>Gw,getRootDeclaration:()=>hm,getRootDirectoryOfResolutionCache:()=>C0e,getRootLength:()=>_m,getRootPathSplitLength:()=>mOe,getScriptKind:()=>VY,getScriptKindFromFileName:()=>Qq,getScriptTargetFeatures:()=>wW,getSelectedEffectiveModifierFlags:()=>Hx,getSelectedSyntacticModifierFlags:()=>F_e,getSemanticClassifications:()=>J1e,getSemanticJsxChildren:()=>m3,getSetAccessorTypeAnnotationNode:()=>k_e,getSetAccessorValueParameter:()=>y3,getSetExternalModuleIndicator:()=>wD,getShebang:()=>qI,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>tq,getSingleVariableOfVariableStatement:()=>S6,getSnapshotText:()=>PM,getSnippetElement:()=>BH,getSourceFileOfModule:()=>h9,getSourceFileOfNode:()=>Bn,getSourceFilePathInNewDir:()=>tO,getSourceFilePathInNewDirWorker:()=>xq,getSourceFileVersionAsHashFromText:()=>sM,getSourceFilesToEmit:()=>Tq,getSourceMapRange:()=>Cy,getSourceMapper:()=>lye,getSourceTextOfNodeFromSourceFile:()=>Xv,getSpanOfTokenAtPosition:()=>gm,getSpellingSuggestion:()=>DC,getStartPositionOfLine:()=>s1,getStartPositionOfRange:()=>k3,getStartsOnNewLine:()=>$3,getStaticPropertiesAndClassStaticBlock:()=>DL,getStrictOptionValue:()=>np,getStringComparer:()=>dI,getSuperCallFromStatement:()=>z$,getSuperContainer:()=>jw,getSupportedCodeFixes:()=>t2e,getSupportedExtensions:()=>F3,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>ND,getSwitchedType:()=>$Y,getSymbolId:()=>ya,getSymbolNameForPrivateIdentifier:()=>_D,getSymbolTarget:()=>d1e,getSyntacticClassifications:()=>W1e,getSyntacticModifierFlags:()=>o1,getSyntacticModifierFlagsNoCache:()=>Dq,getSynthesizedDeepClone:()=>Io,getSynthesizedDeepCloneWithReplacements:()=>j5,getSynthesizedDeepClones:()=>D2,getSynthesizedDeepClonesWithReplacements:()=>UY,getSyntheticLeadingComments:()=>q6,getSyntheticTrailingComments:()=>QD,getTargetLabel:()=>hM,getTargetOfBindingOrAssignmentElement:()=>d1,getTemporaryModuleResolutionState:()=>sL,getTextOfConstantValue:()=>Ale,getTextOfIdentifierOrLiteral:()=>kp,getTextOfJSDocComment:()=>yw,getTextOfJsxAttributeName:()=>BD,getTextOfJsxNamespacedName:()=>W3,getTextOfNode:()=>el,getTextOfNodeFromSourceText:()=>KC,getTextOfPropertyName:()=>_6,getThisContainer:()=>tu,getThisParameter:()=>i2,getTokenAtPosition:()=>Vi,getTokenPosOfNode:()=>Fb,getTokenSourceMapRange:()=>d5e,getTouchingPropertyName:()=>af,getTouchingToken:()=>B8,getTrailingCommentRanges:()=>ly,getTrailingSemicolonDeferringWriter:()=>yq,getTransformFlagsSubtreeExclusions:()=>rfe,getTransformers:()=>_X,getTsBuildInfoEmitOutputFilePath:()=>oh,getTsConfigObjectLiteralExpression:()=>r3,getTsConfigPropArrayElementValue:()=>N9,getTypeAnnotationNode:()=>C_e,getTypeArgumentOrTypeParameterList:()=>$he,getTypeKeywordOfTypeOnlyImport:()=>LY,getTypeNode:()=>ffe,getTypeNodeIfAccessible:()=>H8,getTypeParameterFromJsDoc:()=>c_e,getTypeParameterOwner:()=>mDe,getTypesPackageName:()=>_L,getUILocale:()=>poe,getUniqueName:()=>xT,getUniqueSymbolId:()=>m1e,getUseDefineForClassFields:()=>AD,getWatchErrorSummaryDiagnosticMessage:()=>rQ,getWatchFactory:()=>Vge,group:()=>wC,groupBy:()=>coe,guessIndentation:()=>ple,handleNoEmitOptions:()=>IX,hasAbstractModifier:()=>o2,hasAccessorModifier:()=>ym,hasAmbientModifier:()=>Eq,hasChangesInResolutions:()=>SW,hasChildOfKind:()=>w5,hasContextSensitiveParameters:()=>CO,hasDecorators:()=>Of,hasDocComment:()=>Ghe,hasDynamicName:()=>$0,hasEffectiveModifier:()=>Iu,hasEffectiveModifiers:()=>rO,hasEffectiveReadonlyModifier:()=>v3,hasExtension:()=>Hk,hasIndexSignature:()=>GY,hasInitializer:()=>r1,hasInvalidEscape:()=>gq,hasJSDocNodes:()=>Qu,hasJSDocParameterTags:()=>Lce,hasJSFileExtension:()=>c2,hasJsonModuleEmitEnabled:()=>pO,hasOnlyExpressionInitializer:()=>Ib,hasOverrideModifier:()=>Cq,hasPossibleExternalModuleReference:()=>Fle,hasProperty:()=>lo,hasPropertyAccessExpressionWithName:()=>x5,hasQuestionToken:()=>jx,hasRecordedExternalHelpers:()=>Qfe,hasRestParameter:()=>gW,hasScopeMarker:()=>ole,hasStaticModifier:()=>$c,hasSyntacticModifier:()=>Mr,hasSyntacticModifiers:()=>O_e,hasTSFileExtension:()=>L3,hasTabstop:()=>Iue,hasTrailingDirectorySeparator:()=>z0,hasType:()=>p9,hasTypeArguments:()=>nAe,hasZeroOrOneAsteriskCharacter:()=>Wq,helperString:()=>zH,hostGetCanonicalFileName:()=>X0,hostUsesCaseSensitiveFileNames:()=>hD,idText:()=>lr,identifierIsThisKeyword:()=>kq,identifierToKeywordKind:()=>uy,identity:()=>Zo,identitySourceMapConsumer:()=>EL,ignoreSourceNewlines:()=>JH,ignoredPaths:()=>K7,importDefaultHelper:()=>iF,importFromModuleSpecifier:()=>Kw,importNameElisionDisabled:()=>Vq,importStarHelper:()=>ZD,indexOfAnyCharCode:()=>Zae,indexOfNode:()=>l6,indicesOf:()=>F7,inferredTypesContainingFile:()=>f5,injectClassNamedEvaluationHelperBlockIfMissing:()=>PL,injectClassThisAssignmentIfMissing:()=>Yme,insertImports:()=>z8,insertLeadingStatement:()=>M5e,insertSorted:()=>qh,insertStatementAfterCustomPrologue:()=>Ob,insertStatementAfterStandardPrologue:()=>jDe,insertStatementsAfterCustomPrologue:()=>kW,insertStatementsAfterStandardPrologue:()=>dm,intersperse:()=>Kz,intrinsicTagNameToString:()=>uH,introducesArgumentsExoticObject:()=>Wle,inverseJsxOptionMap:()=>m8,isAbstractConstructorSymbol:()=>Y_e,isAbstractModifier:()=>kfe,isAccessExpression:()=>Mo,isAccessibilityModifier:()=>CY,isAccessor:()=>e1,isAccessorModifier:()=>Efe,isAliasSymbolDeclaration:()=>rAe,isAliasableExpression:()=>cD,isAmbientModule:()=>__,isAmbientPropertyDeclaration:()=>FW,isAnonymousFunctionDefinition:()=>p3,isAnyDirectorySeparator:()=>PU,isAnyImportOrBareOrAccessedRequire:()=>Ole,isAnyImportOrReExport:()=>Iw,isAnyImportSyntax:()=>Lb,isAnySupportedFileExtension:()=>HAe,isApplicableVersionedTypesKey:()=>UA,isArgumentExpressionOfElementAccess:()=>uY,isArray:()=>Ds,isArrayBindingElement:()=>o9,isArrayBindingOrAssignmentElement:()=>kw,isArrayBindingOrAssignmentPattern:()=>lW,isArrayBindingPattern:()=>uS,isArrayLiteralExpression:()=>u_,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>lh,isArrayTypeNode:()=>XH,isArrowFunction:()=>Po,isAsExpression:()=>sA,isAssertClause:()=>TF,isAssertEntry:()=>Ffe,isAssertionExpression:()=>Pb,isAssertionKey:()=>$ce,isAssertsKeyword:()=>xfe,isAssignmentDeclaration:()=>o3,isAssignmentExpression:()=>Kl,isAssignmentOperator:()=>Q0,isAssignmentPattern:()=>XC,isAssignmentTarget:()=>Km,isAsteriskToken:()=>tA,isAsyncFunction:()=>w6,isAsyncModifier:()=>Y3,isAutoAccessorPropertyDeclaration:()=>eu,isAwaitExpression:()=>f1,isAwaitKeyword:()=>$H,isBigIntLiteral:()=>uF,isBinaryExpression:()=>rr,isBinaryOperatorToken:()=>ape,isBindableObjectDefinePropertyCall:()=>Mx,isBindableStaticAccessExpression:()=>Bb,isBindableStaticElementAccessExpression:()=>U9,isBindableStaticNameExpression:()=>Rx,isBindingElement:()=>Fa,isBindingElementOfBareOrAccessedRequire:()=>Kle,isBindingName:()=>Ab,isBindingOrAssignmentElement:()=>Kce,isBindingOrAssignmentPattern:()=>xw,isBindingPattern:()=>Ns,isBlock:()=>hs,isBlockOrCatchScoped:()=>DW,isBlockScope:()=>LW,isBlockScopedContainerTopLevel:()=>Ile,isBooleanLiteral:()=>Xce,isBreakOrContinueStatement:()=>HC,isBreakStatement:()=>C5e,isBuildInfoFile:()=>Age,isBuilderProgram:()=>P0e,isBundle:()=>nG,isBundleFileTextLike:()=>eue,isCallChain:()=>Eb,isCallExpression:()=>js,isCallExpressionTarget:()=>aY,isCallLikeExpression:()=>$v,isCallOrNewExpression:()=>Xm,isCallOrNewExpressionTarget:()=>oY,isCallSignatureDeclaration:()=>$6,isCallToHelper:()=>Q3,isCaseBlock:()=>a8,isCaseClause:()=>e4,isCaseKeyword:()=>wfe,isCaseOrDefaultClause:()=>u9,isCatchClause:()=>Ny,isCatchClauseVariableDeclaration:()=>Pue,isCatchClauseVariableDeclarationOrBindingElement:()=>AW,isCheckJsEnabledForFile:()=>FD,isChildOfNodeWithKind:()=>GDe,isCircularBuildOrder:()=>AS,isClassDeclaration:()=>Qc,isClassElement:()=>Nl,isClassExpression:()=>Fl,isClassLike:()=>ei,isClassMemberModifier:()=>aW,isClassNamedEvaluationHelperBlock:()=>kS,isClassOrTypeElement:()=>a9,isClassStaticBlockDeclaration:()=>ec,isClassThisAssignmentBlock:()=>C8,isCollapsedRange:()=>bAe,isColonToken:()=>bfe,isCommaExpression:()=>pA,isCommaListExpression:()=>i8,isCommaSequence:()=>u8,isCommaToken:()=>vfe,isComment:()=>wM,isCommonJsExportPropertyAssignment:()=>D9,isCommonJsExportedExpression:()=>Vle,isCompoundAssignment:()=>S8,isComputedNonLiteralName:()=>Ow,isComputedPropertyName:()=>Ga,isConciseBody:()=>l9,isConditionalExpression:()=>K6,isConditionalTypeNode:()=>Y6,isConstTypeReference:()=>Ug,isConstructSignatureDeclaration:()=>rA,isConstructorDeclaration:()=>wc,isConstructorTypeNode:()=>e8,isContextualKeyword:()=>$9,isContinueStatement:()=>k5e,isCustomPrologue:()=>Rw,isDebuggerStatement:()=>E5e,isDeclaration:()=>l_,isDeclarationBindingElement:()=>Tw,isDeclarationFileName:()=>su,isDeclarationName:()=>Gg,isDeclarationNameOfEnumOrNamespace:()=>Mq,isDeclarationReadonly:()=>k9,isDeclarationStatement:()=>lle,isDeclarationWithTypeParameterChildren:()=>RW,isDeclarationWithTypeParameters:()=>MW,isDecorator:()=>Wl,isDecoratorTarget:()=>Nhe,isDefaultClause:()=>lA,isDefaultImport:()=>Bx,isDefaultModifier:()=>dF,isDefaultedExpandoInitializer:()=>t_e,isDeleteExpression:()=>Nfe,isDeleteTarget:()=>sq,isDeprecatedDeclaration:()=>YM,isDestructuringAssignment:()=>Y0,isDiagnosticWithLocation:()=>ZY,isDiskPathRoot:()=>IU,isDoStatement:()=>x5e,isDocumentRegistryEntry:()=>q5,isDotDotDotToken:()=>fF,isDottedName:()=>T3,isDynamicName:()=>Y9,isESSymbolIdentifier:()=>oAe,isEffectiveExternalModule:()=>Fx,isEffectiveModuleDeclaration:()=>Ple,isEffectiveStrictModeSourceFile:()=>OW,isElementAccessChain:()=>KU,isElementAccessExpression:()=>No,isEmittedFileOfProgram:()=>zge,isEmptyArrayLiteral:()=>V_e,isEmptyBindingElement:()=>wce,isEmptyBindingPattern:()=>Ece,isEmptyObjectLiteral:()=>Iq,isEmptyStatement:()=>KH,isEmptyStringLiteral:()=>GW,isEntityName:()=>Xu,isEntityNameExpression:()=>Sc,isEnumConst:()=>Zv,isEnumDeclaration:()=>Ay,isEnumMember:()=>y2,isEqualityOperatorKind:()=>zM,isEqualsGreaterThanToken:()=>Tfe,isExclamationToken:()=>nA,isExcludedFile:()=>pde,isExclusivelyTypeOnlyImportOrExport:()=>wX,isExportAssignment:()=>dc,isExportDeclaration:()=>Yc,isExportModifier:()=>iS,isExportName:()=>DF,isExportNamespaceAsDefaultDeclaration:()=>b9,isExportOrDefaultModifier:()=>hA,isExportSpecifier:()=>p_,isExportsIdentifier:()=>Rb,isExportsOrModuleExportsOrAlias:()=>b2,isExpression:()=>nt,isExpressionNode:()=>qg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Fhe,isExpressionOfOptionalChainRoot:()=>t9,isExpressionStatement:()=>ql,isExpressionWithTypeArguments:()=>nh,isExpressionWithTypeArgumentsInClassExtendsClause:()=>TD,isExternalModule:()=>zc,isExternalModuleAugmentation:()=>Qv,isExternalModuleImportEqualsDeclaration:()=>gy,isExternalModuleIndicator:()=>Cw,isExternalModuleNameRelative:()=>Al,isExternalModuleReference:()=>km,isExternalModuleSymbol:()=>I5,isExternalOrCommonJsModule:()=>Yu,isFileLevelReservedGeneratedIdentifier:()=>bw,isFileLevelUniqueName:()=>y9,isFileProbablyExternalModule:()=>TA,isFirstDeclarationOfSymbolParameter:()=>BY,isFixablePromiseHandler:()=>wZ,isForInOrOfStatement:()=>i6,isForInStatement:()=>bF,isForInitializer:()=>Pf,isForOfStatement:()=>aA,isForStatement:()=>Kb,isFunctionBlock:()=>e2,isFunctionBody:()=>uW,isFunctionDeclaration:()=>tl,isFunctionExpression:()=>fo,isFunctionExpressionOrArrowFunction:()=>j6,isFunctionLike:()=>ks,isFunctionLikeDeclaration:()=>Eo,isFunctionLikeKind:()=>Nx,isFunctionLikeOrClassStaticBlockDeclaration:()=>t6,isFunctionOrConstructorTypeNode:()=>Zce,isFunctionOrModuleBlock:()=>oW,isFunctionSymbol:()=>r_e,isFunctionTypeNode:()=>sg,isFutureReservedKeyword:()=>iAe,isGeneratedIdentifier:()=>jo,isGeneratedPrivateIdentifier:()=>Db,isGetAccessor:()=>n1,isGetAccessorDeclaration:()=>gf,isGetOrSetAccessorDeclaration:()=>KI,isGlobalDeclaration:()=>RFe,isGlobalScopeAugmentation:()=>Pd,isGrammarError:()=>Sle,isHeritageClause:()=>tf,isHoistedFunction:()=>E9,isHoistedVariableStatement:()=>w9,isIdentifier:()=>we,isIdentifierANonContextualKeyword:()=>X9,isIdentifierName:()=>p_e,isIdentifierOrThisTypeNode:()=>npe,isIdentifierPart:()=>_y,isIdentifierStart:()=>Gm,isIdentifierText:()=>pf,isIdentifierTypePredicate:()=>qle,isIdentifierTypeReference:()=>Eue,isIfStatement:()=>Zb,isIgnoredFileFromWildCardWatching:()=>zL,isImplicitGlob:()=>Hq,isImportCall:()=>Zu,isImportClause:()=>Sm,isImportDeclaration:()=>bl,isImportEqualsDeclaration:()=>Hl,isImportKeyword:()=>K3,isImportMeta:()=>d6,isImportOrExportSpecifier:()=>Ax,isImportOrExportSpecifierName:()=>p1e,isImportSpecifier:()=>yu,isImportTypeAssertionContainer:()=>Ofe,isImportTypeNode:()=>ag,isImportableFile:()=>cZ,isInComment:()=>ch,isInExpressionContext:()=>R9,isInJSDoc:()=>Uw,isInJSFile:()=>Zn,isInJSXText:()=>qhe,isInJsonFile:()=>j9,isInNonReferenceComment:()=>Khe,isInReferenceComment:()=>Zhe,isInRightSideOfInternalImportEqualsDeclaration:()=>dM,isInString:()=>vT,isInTemplateString:()=>bY,isInTopLevelContext:()=>O9,isInTypeQuery:()=>Vb,isIncrementalCompilation:()=>DD,isIndexSignatureDeclaration:()=>Xb,isIndexedAccessTypeNode:()=>_S,isInferTypeNode:()=>oS,isInfinityOrNaNString:()=>z3,isInitializedProperty:()=>KA,isInitializedVariable:()=>CD,isInsideJsxElement:()=>CM,isInsideJsxElementOrAttribute:()=>Whe,isInsideNodeModules:()=>C1e,isInsideTemplateLiteral:()=>N5,isInstantiatedModule:()=>A$,isInterfaceDeclaration:()=>f_,isInternalDeclaration:()=>oX,isInternalModuleImportEqualsDeclaration:()=>y6,isInternalName:()=>gG,isIntersectionTypeNode:()=>iA,isIntrinsicJsxName:()=>A6,isIterationStatement:()=>t1,isJSDoc:()=>Dp,isJSDocAllType:()=>jfe,isJSDocAugmentsTag:()=>i4,isJSDocAuthorTag:()=>N5e,isJSDocCallbackTag:()=>iG,isJSDocClassTag:()=>zfe,isJSDocCommentContainingNode:()=>f9,isJSDocConstructSignature:()=>x6,isJSDocDeprecatedTag:()=>lG,isJSDocEnumTag:()=>_A,isJSDocFunctionType:()=>n4,isJSDocImplementsTag:()=>_G,isJSDocIndexSignature:()=>J9,isJSDocLikeText:()=>SG,isJSDocLink:()=>Rfe,isJSDocLinkCode:()=>Bfe,isJSDocLinkLike:()=>Px,isJSDocLinkPlain:()=>D5e,isJSDocMemberName:()=>Py,isJSDocNameReference:()=>c8,isJSDocNamepathType:()=>A5e,isJSDocNamespaceBody:()=>NDe,isJSDocNode:()=>s6,isJSDocNonNullableType:()=>xF,isJSDocNullableType:()=>t4,isJSDocOptionalParameter:()=>RD,isJSDocOptionalType:()=>rG,isJSDocOverloadTag:()=>l8,isJSDocOverrideTag:()=>kF,isJSDocParameterTag:()=>rd,isJSDocPrivateTag:()=>aG,isJSDocPropertyLikeTag:()=>r9,isJSDocPropertyTag:()=>Ufe,isJSDocProtectedTag:()=>oG,isJSDocPublicTag:()=>sG,isJSDocReadonlyTag:()=>cG,isJSDocReturnTag:()=>CF,isJSDocSatisfiesExpression:()=>lH,isJSDocSatisfiesTag:()=>EF,isJSDocSeeTag:()=>P5e,isJSDocSignature:()=>Iy,isJSDocTag:()=>a6,isJSDocTemplateTag:()=>id,isJSDocThisTag:()=>Vfe,isJSDocThrowsTag:()=>O5e,isJSDocTypeAlias:()=>Zf,isJSDocTypeAssertion:()=>f8,isJSDocTypeExpression:()=>nT,isJSDocTypeLiteral:()=>r4,isJSDocTypeTag:()=>_8,isJSDocTypedefTag:()=>s4,isJSDocUnknownTag:()=>I5e,isJSDocUnknownType:()=>Jfe,isJSDocVariadicType:()=>SF,isJSXTagName:()=>h6,isJsonEqual:()=>nH,isJsonSourceFile:()=>Yf,isJsxAttribute:()=>zd,isJsxAttributeLike:()=>_9,isJsxAttributeName:()=>Fue,isJsxAttributes:()=>h2,isJsxChild:()=>Dw,isJsxClosingElement:()=>m2,isJsxClosingFragment:()=>Lfe,isJsxElement:()=>cg,isJsxExpression:()=>o8,isJsxFragment:()=>g2,isJsxNamespacedName:()=>Vd,isJsxOpeningElement:()=>Jd,isJsxOpeningFragment:()=>dS,isJsxOpeningLikeElement:()=>V_,isJsxOpeningLikeElementTagName:()=>Phe,isJsxSelfClosingElement:()=>eT,isJsxSpreadAttribute:()=>mS,isJsxTagNameExpression:()=>QC,isJsxText:()=>nS,isJumpStatementTarget:()=>S5,isKeyword:()=>ru,isKeywordOrPunctuation:()=>G9,isKnownSymbol:()=>uD,isLabelName:()=>lY,isLabelOfLabeledStatement:()=>cY,isLabeledStatement:()=>p2,isLateVisibilityPaintedStatement:()=>x9,isLeftHandSideExpression:()=>pu,isLeftHandSideOfAssignment:()=>gAe,isLet:()=>C9,isLineBreak:()=>Yl,isLiteralComputedPropertyDeclarationName:()=>oD,isLiteralExpression:()=>wb,isLiteralExpressionOfObject:()=>iW,isLiteralImportTypeNode:()=>my,isLiteralKind:()=>GC,isLiteralLikeAccess:()=>V9,isLiteralLikeElementAccess:()=>$w,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>yM,isLiteralTypeLikeExpression:()=>q5e,isLiteralTypeLiteral:()=>sle,isLiteralTypeNode:()=>wy,isLocalName:()=>Zg,isLogicalOperator:()=>j_e,isLogicalOrCoalescingAssignmentExpression:()=>Aq,isLogicalOrCoalescingAssignmentOperator:()=>b3,isLogicalOrCoalescingBinaryExpression:()=>bD,isLogicalOrCoalescingBinaryOperator:()=>vD,isMappedTypeNode:()=>n8,isMemberName:()=>$m,isMetaProperty:()=>r8,isMethodDeclaration:()=>Ec,isMethodOrAccessor:()=>n6,isMethodSignature:()=>ig,isMinusToken:()=>GH,isMissingDeclaration:()=>w5e,isModifier:()=>Zs,isModifierKind:()=>W0,isModifierLike:()=>wo,isModuleAugmentationExternal:()=>PW,isModuleBlock:()=>jd,isModuleBody:()=>cle,isModuleDeclaration:()=>Nc,isModuleExportsAccessExpression:()=>Zm,isModuleIdentifier:()=>KW,isModuleName:()=>spe,isModuleOrEnumDeclaration:()=>Ew,isModuleReference:()=>ule,isModuleSpecifierLike:()=>LM,isModuleWithStringLiteralName:()=>T9,isNameOfFunctionDeclaration:()=>pY,isNameOfModuleDeclaration:()=>fY,isNamedClassElement:()=>Yce,isNamedDeclaration:()=>A_,isNamedEvaluation:()=>Pu,isNamedEvaluationSource:()=>_q,isNamedExportBindings:()=>tW,isNamedExports:()=>ap,isNamedImportBindings:()=>fW,isNamedImports:()=>rh,isNamedImportsOrExports:()=>lO,isNamedTupleMember:()=>t8,isNamespaceBody:()=>ADe,isNamespaceExport:()=>og,isNamespaceExportDeclaration:()=>cA,isNamespaceImport:()=>p1,isNamespaceReexportDeclaration:()=>Zle,isNewExpression:()=>f2,isNewExpressionTarget:()=>L8,isNightly:()=>mD,isNoSubstitutionTemplateLiteral:()=>rS,isNode:()=>EDe,isNodeArray:()=>Hv,isNodeArrayMultiLine:()=>$_e,isNodeDescendantOf:()=>n2,isNodeKind:()=>vw,isNodeLikeSystem:()=>yV,isNodeModulesDirectory:()=>BU,isNodeWithPossibleHoistedDeclaration:()=>l_e,isNonContextualKeyword:()=>lq,isNonExportDefaultModifier:()=>lNe,isNonGlobalAmbientModule:()=>NW,isNonGlobalDeclaration:()=>O1e,isNonNullAccess:()=>Oue,isNonNullChain:()=>n9,isNonNullExpression:()=>fS,isNonStaticMethodOrAccessorWithPrivateName:()=>Wme,isNotEmittedOrPartiallyEmittedNode:()=>DDe,isNotEmittedStatement:()=>tG,isNullishCoalesce:()=>eW,isNumber:()=>R0,isNumericLiteral:()=>Ou,isNumericLiteralName:()=>rg,isObjectBindingElementWithoutPropertyName:()=>L5,isObjectBindingOrAssignmentElement:()=>Sw,isObjectBindingOrAssignmentPattern:()=>cW,isObjectBindingPattern:()=>td,isObjectLiteralElement:()=>mW,isObjectLiteralElementLike:()=>q0,isObjectLiteralExpression:()=>ha,isObjectLiteralMethod:()=>Sp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>A9,isObjectTypeDeclaration:()=>$x,isOctalDigit:()=>UI,isOmittedExpression:()=>pl,isOptionalChain:()=>c_,isOptionalChainRoot:()=>WC,isOptionalDeclaration:()=>cH,isOptionalJSDocPropertyLikeTag:()=>MD,isOptionalTypeNode:()=>QH,isOuterExpression:()=>NF,isOutermostOptionalChain:()=>qC,isOverrideModifier:()=>Cfe,isPackedArrayLiteral:()=>iH,isParameter:()=>ns,isParameterDeclaration:()=>Jb,isParameterOrCatchClauseVariable:()=>sH,isParameterPropertyDeclaration:()=>Du,isParameterPropertyModifier:()=>$C,isParenthesizedExpression:()=>hu,isParenthesizedTypeNode:()=>cS,isParseTreeNode:()=>VC,isPartOfTypeNode:()=>Ym,isPartOfTypeQuery:()=>B9,isPartiallyEmittedExpression:()=>vF,isPatternMatch:()=>gI,isPinnedComment:()=>v9,isPlainJsFile:()=>Nw,isPlusToken:()=>HH,isPossiblyTypeArgumentPosition:()=>A5,isPostfixUnaryExpression:()=>ZH,isPrefixUnaryExpression:()=>Dy,isPrivateIdentifier:()=>Ei,isPrivateIdentifierClassElementDeclaration:()=>N_,isPrivateIdentifierPropertyAccessExpression:()=>e6,isPrivateIdentifierSymbol:()=>m_e,isProgramBundleEmitBuildInfo:()=>_0e,isProgramUptoDate:()=>NX,isPrologueDirective:()=>xp,isPropertyAccessChain:()=>e9,isPropertyAccessEntityNameExpression:()=>xD,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>tle,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ele,isPropertyAssignment:()=>Dc,isPropertyDeclaration:()=>Is,isPropertyName:()=>Jc,isPropertyNameLiteral:()=>Od,isPropertySignature:()=>mf,isProtoSetter:()=>g_e,isPrototypeAccess:()=>Ty,isPrototypePropertyAssignment:()=>Yw,isPunctuation:()=>cq,isPushOrUnshiftIdentifier:()=>uq,isQualifiedName:()=>gu,isQuestionDotToken:()=>pF,isQuestionOrExclamationToken:()=>tpe,isQuestionOrPlusOrMinusToken:()=>ipe,isQuestionToken:()=>u1,isRawSourceMap:()=>Lme,isReadonlyKeyword:()=>Sfe,isReadonlyKeywordOrPlusOrMinusToken:()=>rpe,isRecognizedTripleSlashComment:()=>CW,isReferenceFileLocation:()=>v4,isReferencedFile:()=>My,isRegularExpressionLiteral:()=>WH,isRequireCall:()=>du,isRequireVariableStatement:()=>YW,isRestParameter:()=>Qm,isRestTypeNode:()=>YH,isReturnStatement:()=>nd,isReturnStatementWithFixablePromiseHandler:()=>_R,isRightSideOfAccessExpression:()=>J_e,isRightSideOfPropertyAccess:()=>S4,isRightSideOfQualifiedName:()=>Ohe,isRightSideOfQualifiedNameOrPropertyAccess:()=>x3,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>z_e,isRootedDiskPath:()=>Dd,isSameEntityName:()=>v6,isSatisfiesExpression:()=>b5e,isScopeMarker:()=>ale,isSemicolonClassElement:()=>Pfe,isSetAccessor:()=>H0,isSetAccessorDeclaration:()=>Fu,isShebangTrivia:()=>zU,isShorthandAmbientModuleSymbol:()=>e3,isShorthandPropertyAssignment:()=>nf,isSignedNumericLiteral:()=>Q9,isSimpleCopiableExpression:()=>x2,isSimpleInlineableExpression:()=>Ud,isSingleOrDoubleQuote:()=>Ww,isSourceFile:()=>Ri,isSourceFileFromLibrary:()=>$8,isSourceFileJS:()=>P_,isSourceFileNotJS:()=>QDe,isSourceFileNotJson:()=>XW,isSourceMapping:()=>Mme,isSpecialPropertyDeclaration:()=>n_e,isSpreadAssignment:()=>ih,isSpreadElement:()=>Bd,isStatement:()=>Ii,isStatementButNotDeclaration:()=>ww,isStatementOrBlock:()=>_le,isStatementWithLocals:()=>xle,isStatic:()=>Ps,isStaticModifier:()=>sS,isString:()=>$s,isStringAKeyword:()=>sAe,isStringANonContextualKeyword:()=>Vx,isStringAndEmptyAnonymousObjectIntersection:()=>Qhe,isStringDoubleQuoted:()=>z9,isStringLiteral:()=>pa,isStringLiteralLike:()=>Qa,isStringLiteralOrJsxExpression:()=>fle,isStringLiteralOrTemplate:()=>v1e,isStringOrNumericLiteralLike:()=>If,isStringOrRegularExpressionOrTemplateLiteral:()=>kY,isStringTextContainingNode:()=>sW,isSuperCall:()=>p6,isSuperKeyword:()=>Z3,isSuperOrSuperProperty:()=>XDe,isSuperProperty:()=>nu,isSupportedSourceFileName:()=>Tue,isSwitchStatement:()=>oA,isSyntaxList:()=>a4,isSyntheticExpression:()=>T5e,isSyntheticReference:()=>pS,isTagName:()=>_Y,isTaggedTemplateExpression:()=>Qb,isTaggedTemplateTag:()=>Ahe,isTemplateExpression:()=>hF,isTemplateHead:()=>G6,isTemplateLiteral:()=>r6,isTemplateLiteralKind:()=>Kh,isTemplateLiteralToken:()=>Hce,isTemplateLiteralTypeNode:()=>v5e,isTemplateLiteralTypeSpan:()=>Dfe,isTemplateMiddle:()=>yfe,isTemplateMiddleOrTemplateTail:()=>i9,isTemplateSpan:()=>s8,isTemplateTail:()=>qH,isTextWhiteSpaceLike:()=>i1e,isThis:()=>k4,isThisContainerOrFunctionBlock:()=>Xle,isThisIdentifier:()=>a2,isThisInTypeQuery:()=>qx,isThisInitializedDeclaration:()=>F9,isThisInitializedObjectBindingExpression:()=>Yle,isThisProperty:()=>Jw,isThisTypeNode:()=>gF,isThisTypeParameter:()=>V3,isThisTypePredicate:()=>$De,isThrowStatement:()=>eG,isToken:()=>Dx,isTokenKind:()=>rW,isTraceEnabled:()=>e0,isTransientSymbol:()=>pm,isTrivia:()=>E6,isTryStatement:()=>d2,isTupleTypeNode:()=>Q6,isTypeAlias:()=>tD,isTypeAliasDeclaration:()=>wp,isTypeAssertionExpression:()=>Afe,isTypeDeclaration:()=>J6,isTypeElement:()=>Nb,isTypeKeyword:()=>J8,isTypeKeywordToken:()=>AY,isTypeKeywordTokenOrIdentifier:()=>NM,isTypeLiteralNode:()=>ef,isTypeNode:()=>Di,isTypeNodeKind:()=>jq,isTypeOfExpression:()=>Z6,isTypeOnlyExportDeclaration:()=>Gce,isTypeOnlyImportDeclaration:()=>s9,isTypeOnlyImportOrExportDeclaration:()=>Gv,isTypeOperatorNode:()=>lS,isTypeParameterDeclaration:()=>Ho,isTypePredicateNode:()=>mF,isTypeQueryNode:()=>X6,isTypeReferenceNode:()=>sp,isTypeReferenceType:()=>d9,isTypeUsableAsPropertyName:()=>rp,isUMDExportSymbol:()=>cO,isUnaryExpression:()=>_W,isUnaryExpressionWithWrite:()=>ile,isUnicodeIdentifierStart:()=>VI,isUnionTypeNode:()=>aS,isUnparsedNode:()=>nW,isUnparsedPrepend:()=>Mfe,isUnparsedSource:()=>tT,isUnparsedTextLike:()=>qce,isUrl:()=>Koe,isValidBigIntString:()=>kO,isValidESSymbolDeclaration:()=>Ule,isValidTypeOnlyAliasUseSite:()=>ky,isValueSignatureDeclaration:()=>__e,isVarAwaitUsing:()=>Lw,isVarConst:()=>f6,isVarUsing:()=>Mw,isVariableDeclaration:()=>Mi,isVariableDeclarationInVariableStatement:()=>n3,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>t2,isVariableDeclarationInitializedToRequire:()=>QW,isVariableDeclarationList:()=>dl,isVariableLike:()=>m6,isVariableLikeOrAccessor:()=>zle,isVariableStatement:()=>ic,isVoidExpression:()=>Yb,isWatchSet:()=>SAe,isWhileStatement:()=>S5e,isWhiteSpaceLike:()=>qm,isWhiteSpaceSingleLine:()=>Ad,isWithStatement:()=>Ife,isWriteAccess:()=>w3,isWriteOnlyAccess:()=>oO,isYieldExpression:()=>yF,jsxModeNeedsExplicitImport:()=>rZ,keywordPart:()=>Ru,last:()=>ka,lastOrUndefined:()=>Bo,length:()=>Pn,libMap:()=>WF,libs:()=>IA,lineBreakPart:()=>w4,linkNamePart:()=>u1e,linkPart:()=>JY,linkTextPart:()=>RM,listFiles:()=>iQ,loadModuleFromGlobalCache:()=>rme,loadWithModeAwareCache:()=>c5,makeIdentifierFromModuleName:()=>Nle,makeImport:()=>_h,makeImportIfNecessary:()=>r1e,makeStringLiteral:()=>PS,mangleScopedPackageName:()=>T8,map:()=>an,mapAllOrFail:()=>rV,mapDefined:()=>qi,mapDefinedEntries:()=>Y7e,mapDefinedIterator:()=>I7,mapEntries:()=>eoe,mapIterator:()=>tV,mapOneOrMany:()=>D1e,mapToDisplayParts:()=>T1,matchFiles:()=>Xq,matchPatternOrExact:()=>Zq,matchedText:()=>voe,matchesExclude:()=>UF,maybeBind:()=>Gs,maybeSetLocalizedDiagnosticMessages:()=>iue,memoize:()=>wu,memoizeCached:()=>_oe,memoizeOne:()=>lm,memoizeWeak:()=>cwe,metadataHelper:()=>jO,min:()=>dV,minAndMax:()=>kue,missingFileModifiedTime:()=>jg,modifierToFlag:()=>Gx,modifiersToFlags:()=>Fd,moduleOptionDeclaration:()=>HG,moduleResolutionIsEqualTo:()=>ble,moduleResolutionNameAndModeGetter:()=>F8,moduleResolutionOptionDeclarations:()=>HF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Yx,moduleResolutionUsesNodeModules:()=>IM,moduleSpecifiers:()=>T2,moveEmitHelpers:()=>_fe,moveRangeEnd:()=>sO,moveRangePastDecorators:()=>K0,moveRangePastModifiers:()=>Ld,moveRangePos:()=>xy,moveSyntheticComments:()=>ofe,mutateMap:()=>F6,mutateMapSkippingNewValues:()=>$g,needsParentheses:()=>jM,needsScopeMarker:()=>c9,newCaseClauseTracker:()=>eR,newPrivateEnvironment:()=>Gme,noEmitNotification:()=>e5,noEmitSubstitution:()=>w8,noTransformers:()=>uX,noTruncationMaximumTruncationLength:()=>AO,nodeCanBeDecorated:()=>M9,nodeHasName:()=>gw,nodeIsDecorated:()=>i3,nodeIsMissing:()=>fc,nodeIsPresent:()=>Xf,nodeIsSynthesized:()=>Do,nodeModuleNameResolver:()=>Jde,nodeModulesPathPart:()=>sh,nodeNextJsonConfigResolver:()=>zde,nodeOrChildIsDecorated:()=>Vw,nodeOverlapsWithStartEnd:()=>mY,nodePosToString:()=>BDe,nodeSeenTracker:()=>NS,nodeStartsNewLexicalEnvironment:()=>fq,nodeToDisplayParts:()=>NFe,noop:()=>_o,noopFileWatcher:()=>DS,normalizePath:()=>ba,normalizeSlashes:()=>zl,not:()=>yI,notImplemented:()=>Ss,notImplementedResolver:()=>jL,nullNodeConverters:()=>NH,nullParenthesizerRules:()=>AH,nullTransformationContext:()=>n0,objectAllocator:()=>Ol,operatorPart:()=>V8,optionDeclarations:()=>Kg,optionMapToObject:()=>FG,optionsAffectingProgramStructure:()=>QG,optionsForBuild:()=>ZG,optionsForWatch:()=>OA,optionsHaveChanges:()=>o6,optionsHaveModuleResolutionChanges:()=>mle,or:()=>Yp,orderedRemoveItem:()=>mI,orderedRemoveItemAt:()=>cy,outFile:()=>Ao,packageIdToPackageName:()=>g9,packageIdToString:()=>i1,padLeft:()=>Sb,padRight:()=>pwe,paramHelper:()=>JO,parameterIsThisKeyword:()=>s2,parameterNamePart:()=>o1e,parseBaseNodeFactory:()=>DG,parseBigInt:()=>Cue,parseBuildCommand:()=>wNe,parseCommandLine:()=>ENe,parseCommandLineWorker:()=>NG,parseConfigFileTextToJson:()=>OG,parseConfigFileWithSystem:()=>vOe,parseConfigHostFromCompilerHostLike:()=>$L,parseCustomTypeOption:()=>jF,parseIsolatedEntityName:()=>yS,parseIsolatedJSDocComment:()=>Dpe,parseJSDocTypeExpressionForTests:()=>bNe,parseJsonConfigFileContent:()=>RNe,parseJsonSourceFileConfigFileContent:()=>DA,parseJsonText:()=>SA,parseListTypeOption:()=>Jpe,parseNodeFactory:()=>Cm,parseNodeModuleFromPath:()=>JA,parsePackageName:()=>g$,parsePseudoBigInt:()=>R3,parseValidBigInt:()=>rH,patchWriteFileEnsuringDirectory:()=>Zoe,pathContainsNodeModules:()=>TS,pathIsAbsolute:()=>LC,pathIsBareSpecifier:()=>OU,pathIsRelative:()=>$u,patternText:()=>yoe,perfLogger:()=>wd,performIncrementalCompilation:()=>TOe,performance:()=>zoe,plainJSErrors:()=>ZL,positionBelongsToNode:()=>gY,positionIsASICandidate:()=>UM,positionIsSynthesized:()=>Md,positionsAreOnSameLine:()=>tp,preProcessFile:()=>cye,probablyUsesSemicolons:()=>V5,processCommentPragmas:()=>EG,processPragmasIntoFields:()=>wG,processTaggedTemplateExpression:()=>Z$,programContainsEsModules:()=>n1e,programContainsModules:()=>t1e,projectReferenceIsEqualTo:()=>TW,propKeyHelper:()=>KO,propertyNamePart:()=>c1e,pseudoBigIntToString:()=>l2,punctuationPart:()=>m_,pushIfUnique:()=>Gf,quote:()=>q8,quotePreferenceFromString:()=>OY,rangeContainsPosition:()=>k5,rangeContainsPositionExclusive:()=>C5,rangeContainsRange:()=>yf,rangeContainsRangeExclusive:()=>Lhe,rangeContainsStartEnd:()=>E5,rangeEndIsOnSameLineAsRangeStart:()=>kD,rangeEndPositionsAreOnSameLine:()=>H_e,rangeEquals:()=>cV,rangeIsOnSingleLine:()=>Wb,rangeOfNode:()=>eH,rangeOfTypeParameters:()=>tH,rangeOverlapsWithStartEnd:()=>R8,rangeStartIsOnSameLineAsRangeEnd:()=>G_e,rangeStartPositionsAreOnSameLine:()=>aO,readBuilderProgram:()=>cM,readConfigFile:()=>CA,readHelper:()=>YO,readJson:()=>S3,readJsonConfigFile:()=>Wpe,readJsonOrUndefined:()=>Oq,realizeDiagnostics:()=>FK,reduceEachLeadingCommentRange:()=>ace,reduceEachTrailingCommentRange:()=>oce,reduceLeft:()=>E_,reduceLeftIterator:()=>X7e,reducePathComponents:()=>kb,refactor:()=>BS,regExpEscape:()=>JAe,relativeComplement:()=>noe,removeAllComments:()=>$D,removeEmitHelper:()=>m5e,removeExtension:()=>ID,removeFileExtension:()=>mu,removeIgnoredPath:()=>KX,removeMinAndVersionNumbers:()=>hoe,removeOptionality:()=>Hhe,removePrefix:()=>NC,removeSuffix:()=>Uk,removeTrailingDirectorySeparator:()=>zv,repeatString:()=>O5,replaceElement:()=>_V,resolutionExtensionIsTSOrJson:()=>OD,resolveConfigFileProjectName:()=>mQ,resolveJSModule:()=>Rde,resolveLibrary:()=>rL,resolveModuleName:()=>v8,resolveModuleNameFromCache:()=>dPe,resolvePackageNameToPackageJson:()=>cPe,resolvePath:()=>$h,resolveProjectReferencePath:()=>O8,resolveTripleslashReference:()=>VL,resolveTypeReferenceDirective:()=>s$,resolvingEmptyArray:()=>DO,restHelper:()=>GO,returnFalse:()=>B0,returnNoopFileWatcher:()=>m5,returnTrue:()=>sy,returnUndefined:()=>ay,returnsPromise:()=>EZ,runInitializersHelper:()=>VO,sameFlatMap:()=>Kae,sameMap:()=>cl,sameMapping:()=>tIe,scanShebangTrivia:()=>VU,scanTokenAtPosition:()=>Ble,scanner:()=>g_,screenStartingMessageCodes:()=>oM,semanticDiagnosticsOptionDeclarations:()=>GG,serializeCompilerOptions:()=>MG,server:()=>Ehe,servicesVersion:()=>AK,setCommentRange:()=>Xc,setConfigFileInOptions:()=>BG,setConstantValue:()=>lfe,setEachParent:()=>B6,setEmitFlags:()=>Xn,setFunctionNameHelper:()=>eF,setGetSourceFileAsHashVersioned:()=>aM,setIdentifierAutoGenerate:()=>YD,setIdentifierGeneratedImportReference:()=>pfe,setIdentifierTypeArguments:()=>th,setInternalEmitFlags:()=>XD,setLocalizedDiagnosticMessages:()=>rue,setModuleDefaultHelper:()=>rF,setNodeFlags:()=>Due,setObjectAllocator:()=>nue,setOriginalNode:()=>or,setParent:()=>Ta,setParentRecursive:()=>l1,setPrivateIdentifier:()=>lT,setResolvedModule:()=>yle,setResolvedTypeReferenceDirective:()=>vle,setSnippetElement:()=>jH,setSourceMapRange:()=>Ca,setStackTraceLimit:()=>Vwe,setStartsOnNewLine:()=>LO,setSyntheticLeadingComments:()=>Ey,setSyntheticTrailingComments:()=>Kx,setSys:()=>Ywe,setSysLog:()=>$oe,setTextRange:()=>Ke,setTextRangeEnd:()=>R6,setTextRangePos:()=>B3,setTextRangePosEnd:()=>Tm,setTextRangePosWidth:()=>j3,setTokenSourceMapRange:()=>afe,setTypeNode:()=>ufe,setUILocale:()=>doe,setValueDeclaration:()=>Zw,shouldAllowImportingTsExtension:()=>m4,shouldPreserveConstEnums:()=>Hb,shouldResolveJsRequire:()=>mO,shouldUseUriStyleNodeCoreModules:()=>ZM,showModuleSpecifier:()=>Z_e,signatureHasLiteralTypes:()=>N$,signatureHasRestParameter:()=>d_,signatureToDisplayParts:()=>zY,single:()=>lV,singleElementArray:()=>xb,singleIterator:()=>Z7e,singleOrMany:()=>cm,singleOrUndefined:()=>om,skipAlias:()=>iu,skipAssertions:()=>z5e,skipConstraint:()=>NY,skipOuterExpressions:()=>nl,skipParentheses:()=>uo,skipPartiallyEmittedExpressions:()=>bp,skipTrivia:()=>ua,skipTypeChecking:()=>M3,skipTypeParentheses:()=>iq,skipWhile:()=>Soe,sliceAfter:()=>Kq,some:()=>dt,sort:()=>EC,sortAndDeduplicate:()=>L7,sortAndDeduplicateDiagnostics:()=>Qk,sourceFileAffectingCompilerOptions:()=>GF,sourceFileMayBeEmitted:()=>Wx,sourceMapCommentRegExp:()=>kL,sourceMapCommentRegExpDontCareLineStart:()=>B$,spacePart:()=>sc,spanMap:()=>iV,spreadArrayHelper:()=>ZO,stableSort:()=>M0,startEndContainsRange:()=>dY,startEndOverlapsWithStartEnd:()=>vM,startOnNewLine:()=>O_,startTracing:()=>Voe,startsWith:()=>ts,startsWithDirectory:()=>MU,startsWithUnderscore:()=>nZ,startsWithUseStrict:()=>$fe,stringContains:()=>Xl,stringContainsAt:()=>I1e,stringToToken:()=>Uv,stripQuotes:()=>Cp,supportedDeclarationExtensions:()=>VD,supportedJSExtensions:()=>wH,supportedJSExtensionsFlat:()=>W6,supportedLocaleDirectories:()=>yW,supportedTSExtensions:()=>U6,supportedTSExtensionsFlat:()=>EH,supportedTSImplementationExtensions:()=>UD,suppressLeadingAndTrailingTrivia:()=>Bu,suppressLeadingTrivia:()=>WY,suppressTrailingTrivia:()=>y1e,symbolEscapedNameNoDefault:()=>FM,symbolName:()=>xc,symbolNameNoDefault:()=>OM,symbolPart:()=>a1e,symbolToDisplayParts:()=>U8,syntaxMayBeASICandidate:()=>oZ,syntaxRequiresTrailingSemicolonOrASI:()=>VM,sys:()=>jl,sysLog:()=>X7,tagNamesAreEquivalent:()=>Fy,takeWhile:()=>vI,targetOptionDeclaration:()=>LA,templateObjectHelper:()=>QO,testFormatSettings:()=>Dhe,textChangeRangeIsUnchanged:()=>Cce,textChangeRangeNewSpan:()=>zC,textChanges:()=>er,textOrKeywordPart:()=>jY,textPart:()=>vf,textRangeContainsPositionInclusive:()=>dw,textSpanContainsPosition:()=>WU,textSpanContainsTextSpan:()=>Tce,textSpanEnd:()=>Zl,textSpanIntersection:()=>kce,textSpanIntersectsWith:()=>$I,textSpanIntersectsWithPosition:()=>Sce,textSpanIntersectsWithTextSpan:()=>pDe,textSpanIsEmpty:()=>bce,textSpanOverlap:()=>xce,textSpanOverlapsWith:()=>fDe,textSpansEqual:()=>E4,textToKeywordObj:()=>fw,timestamp:()=>Uo,toArray:()=>J7,toBuilderFileEmit:()=>m0e,toBuilderStateFileInfoForMultiEmit:()=>d0e,toEditorSettings:()=>pN,toFileNameLowerCase:()=>Qp,toLowerCase:()=>loe,toPath:()=>yo,toProgramEmitPending:()=>g0e,tokenIsIdentifierOrKeyword:()=>z_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>rce,tokenToString:()=>sa,trace:()=>Gi,tracing:()=>ci,tracingEnabled:()=>W7,transform:()=>YBe,transformClassFields:()=>nge,transformDeclarations:()=>cX,transformECMAScriptModule:()=>aX,transformES2015:()=>hge,transformES2016:()=>mge,transformES2017:()=>age,transformES2018:()=>oge,transformES2019:()=>cge,transformES2020:()=>lge,transformES2021:()=>_ge,transformES5:()=>yge,transformESDecorators:()=>sge,transformESNext:()=>uge,transformGenerators:()=>vge,transformJsx:()=>pge,transformLegacyDecorators:()=>ige,transformModule:()=>sX,transformNamedEvaluation:()=>Lu,transformNodeModule:()=>xge,transformNodes:()=>t5,transformSystemModule:()=>Tge,transformTypeScript:()=>ege,transpile:()=>NLe,transpileModule:()=>yye,transpileOptionValueCompilerOptions:()=>YG,trimString:()=>Bv,trimStringEnd:()=>xx,trimStringStart:()=>PC,tryAddToSet:()=>Lv,tryAndIgnoreErrors:()=>GM,tryCast:()=>Hr,tryDirectoryExists:()=>HM,tryExtractTSExtension:()=>iO,tryFileExists:()=>qM,tryGetClassExtendingExpressionWithTypeArguments:()=>Nq,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Pq,tryGetDirectories:()=>WM,tryGetExtensionFromPath:()=>ng,tryGetImportFromModuleSpecifier:()=>eD,tryGetJSDocSatisfiesTypeNode:()=>wO,tryGetModuleNameFromFile:()=>mA,tryGetModuleSpecifierFromDeclaration:()=>c3,tryGetNativePerformanceHooks:()=>joe,tryGetPropertyAccessOrIdentifierToString:()=>SD,tryGetPropertyNameOfBindingOrAssignmentElement:()=>IF,tryGetSourceMappingURL:()=>Fme,tryGetTextOfPropertyName:()=>t3,tryIOAndConsumeErrors:()=>$M,tryParsePattern:()=>M6,tryParsePatterns:()=>xO,tryParseRawSourceMap:()=>M$,tryReadDirectory:()=>QY,tryReadFile:()=>EA,tryRemoveDirectoryPrefix:()=>qq,tryRemoveExtension:()=>Sue,tryRemovePrefix:()=>hV,tryRemoveSuffix:()=>goe,typeAcquisitionDeclarations:()=>XF,typeAliasNamePart:()=>l1e,typeDirectiveIsEqualTo:()=>Tle,typeKeywords:()=>tR,typeParameterNamePart:()=>_1e,typeReferenceResolutionNameAndModeGetter:()=>u5,typeToDisplayParts:()=>B5,unchangedPollThresholds:()=>Z7,unchangedTextChangeRange:()=>hW,unescapeLeadingUnderscores:()=>Li,unmangleScopedPackageName:()=>uL,unorderedRemoveItem:()=>AC,unorderedRemoveItemAt:()=>mV,unreachableCodeIsError:()=>uue,unusedLabelIsError:()=>fue,unwrapInnermostStatementOfLabel:()=>qW,updateErrorForNoInputFiles:()=>jG,updateLanguageServiceSourceFile:()=>wK,updateMissingFilePathsWatch:()=>Jge,updatePackageJsonWatch:()=>j9e,updateResolutionField:()=>p4,updateSharedExtendedConfigFileWatcher:()=>hX,updateSourceFile:()=>CG,updateWatchingWildcardDirectories:()=>JL,usesExtensionsOnImports:()=>bue,usingSingleLineStringWriter:()=>YC,utf16EncodeAsString:()=>Xk,validateLocaleAndSetLanguage:()=>hDe,valuesHelper:()=>tF,version:()=>F0,versionMajorMinor:()=>CC,visitArray:()=>QA,visitCommaListElements:()=>YA,visitEachChild:()=>pn,visitFunctionBody:()=>hf,visitIterationBody:()=>U_,visitLexicalEnvironment:()=>SL,visitNode:()=>Ue,visitNodes:()=>An,visitParameterList:()=>Pc,walkUpBindingElementsAndPatterns:()=>Yk,walkUpLexicalEnvironments:()=>Hme,walkUpOuterExpressions:()=>Xfe,walkUpParenthesizedExpressions:()=>G0,walkUpParenthesizedTypes:()=>sD,walkUpParenthesizedTypesAndGetParentAndChild:()=>f_e,whitespaceOrMapCommentRegExp:()=>CL,writeCommentRange:()=>P6,writeFile:()=>g3,writeFileEnsuringDirectories:()=>Sq,zipToModeAwareCache:()=>_$,zipWith:()=>Zz});var O6e=Bt({"src/typescript/_namespaces/ts.ts"(){Os(),pM(),Wr(),iJ()}}),aXe=D7({"src/typescript/typescript.ts"(e,t){O6e(),O6e(),typeof console<"u"&&(E.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=I6e}});return aXe()})();kC.exports&&(kC.exports=oI)})(Qae);const yot=got(Qae.exports),xot=hot({__proto__:null,default:yot},[Qae.exports]);export{xot as t}; +`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return E.assert(Fi(t)||a9(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(E.assert(!r.name),r.kind===219){const a=$a(r,39,t),o=$a(r,21,t);o?(this.insertNodesAt(t,o.getStart(t),[I.createToken(100),I.createIdentifier(i)],{joiner:" "}),fg(this,t,a)):(this.insertText(t,wa(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,a,I.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[I.createToken(19),I.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[I.createToken(27),I.createToken(20)],{joiner:" "}))}else{const a=$a(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,a,I.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,a){const o=i.elements[a-1];o?this.insertNodeInListAfter(t,o,r):this.insertNodeBefore(t,i.elements[0],r,!np(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,a=gl.SmartIndenter.getContainingList(r,t)){if(!a){E.fail("node is not a list element");return}const o=u6(a,r);if(o<0)return;const l=r.getEnd();if(o!==a.length-1){const u=Ui(t,r.end);if(u&&$j(r,u)){const f=a[o+1],g=Yke(t.text,f.getFullStart()),m=`${ia(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:m})}}else{const u=r.getStart(t),f=up(u,t);let g,m=!1;if(a.length===1)g=28;else{const y=rl(r.pos,t);g=$j(r,y)?y.kind:28,m=up(a[o-1].getStart(t),t)!==f}if(BGe(t.text,r.end)&&(m=!0),m){this.replaceRange(t,tp(l),I.createToken(g));const y=gl.SmartIndenter.findFirstNonWhitespaceColumn(f,u,t,this.formatContext.options);let x=_a(t.text,l,!0,!1);for(;x!==l&&Yl(t.text.charCodeAt(x-1));)x--;this.replaceRange(t,tp(x),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,tp(l),i,{prefix:`${ia(g)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,tH(r),I.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,a]=UGe(t,r);if(i!==void 0&&a!==void 0){const o=Xj(t).length===0,l=np(i,a,r);o&&l&&i!==a-1&&this.deleteRange(r,tp(i,a-1)),l&&this.insertText(r,a-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(a=>a.sourceFile===r&&Lhe(a.node,i))||(Ds(i)?this.deleteRange(r,nH(r,i)):Qne.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),a=gl.SmartIndenter.getContainingList(r,i);if(r!==ka(a))return;const o=cI(a,l=>!t.has(l),a.length-2);o!==-1&&this.deleteRange(i,{pos:a[o].end,end:Hne(i,a[o+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=Yj.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,a)=>{r.push(Yj.newFileChanges(a,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,f,g,m){return Hi(AC(u,y=>y.sourceFile.path),y=>{const x=y[0].sourceFile,k=R0(y,(N,D)=>N.range.pos-D.range.pos||N.range.end-D.range.end);for(let N=0;N`${JSON.stringify(k[N].range)} and ${JSON.stringify(k[N+1].range)}`);const C=Hi(k,N=>{var U,Y;const D=T1(N.range),M=N.kind===1?(U=Rn(Ko(N.node)))!=null?U:N.sourceFile:N.kind===2&&(Y=Rn(Ko(N.nodes[0])))!=null?Y:N.sourceFile,V=a(N,M,x,f,g,m);if(!(D.length===V.length&&I1e(M.text,V,D.start)))return I5(D,V)});return C.length>0?{fileName:x.fileName,textChanges:C}:void 0})}e.getTextChangesFromChanges=t;function r(u,f,g,m){const y=i(Yq(u),f,g,m);return{fileName:u,textChanges:[I5(yl(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(u,f,g,m){const y=Na(f,C=>C.statements.map(N=>N===4?"":l(N,C.oldFile,g).text)).join(g),x=SA("any file name",y,99,!0,u),k=gl.formatDocument(x,m);return Gne(y,k)+g}e.newFileChangesWorker=i;function a(u,f,g,m,y,x){var k;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:C={},range:{pos:N}}=u,D=U=>o(U,f,g,N,C,m,y,x),M=u.kind===2?u.nodes.map(U=>qk(D(U),m)).join(((k=u.options)==null?void 0:k.joiner)||m):D(u.node),V=C.indentation!==void 0||up(N,f)===N?M:M.replace(/^\s+/,"");return(C.prefix||"")+V+(!C.suffix||vc(V,C.suffix)?"":C.suffix)}function o(u,f,g,m,{indentation:y,prefix:x,delta:k},C,N,D){const{node:M,text:V}=l(u,f,C);D&&D(M,V);const U=KM(N,f),Y=y!==void 0?y:gl.SmartIndenter.getIndentation(m,g,U,x===C||up(m,f)===m);k===void 0&&(k=gl.SmartIndenter.shouldIndentChildNode(U,u)&&U.indentSize||0);const j={text:V,getLineAndCharacterOfPosition(R){return yo(this,R)}},ee=gl.formatNodeGivenIndentation(M,j,f.languageVariant,Y,k,{...N,options:U});return Gne(V,ee)}function l(u,f,g){const m=Zke(g),y=W5(g);return Ry({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,u,f,m),{text:m.getText(),node:Qj(u)}}e.getNonformattedText=l})(Yj||(Yj={})),t6e={...i0,factory:HD(i0.factory.flags|1,i0.factory.baseFactory)},(e=>{function t(o,l,u,f){switch(f.kind){case 169:{const k=f.parent;Po(k)&&k.parameters.length===1&&!$a(k,21,u)?o.replaceNodeWithText(u,f,"()"):DE(o,l,u,f);break}case 272:case 271:const g=u.imports.length&&f===wa(u.imports).parent||f===Or(u.statements,Bb);fg(o,u,f,{leadingTriviaOption:g?0:Qu(f)?2:3});break;case 208:const m=f.parent;m.kind===207&&f!==ka(m.elements)?fg(o,u,f):DE(o,l,u,f);break;case 260:a(o,l,u,f);break;case 168:DE(o,l,u,f);break;case 276:const x=f.parent;x.elements.length===1?i(o,u,x):DE(o,l,u,f);break;case 274:i(o,u,f);break;case 27:fg(o,u,f,{trailingTriviaOption:0});break;case 100:fg(o,u,f,{leadingTriviaOption:0});break;case 263:case 262:fg(o,u,f,{leadingTriviaOption:Qu(f)?2:3});break;default:f.parent?Sm(f.parent)&&f.parent.name===f?r(o,u,f.parent):Js(f.parent)&&ys(f.parent.arguments,f)?DE(o,l,u,f):fg(o,u,f):fg(o,u,f)}}e.deleteDeclaration=t;function r(o,l,u){if(!u.namedBindings)fg(o,l,u.parent);else{const f=u.name.getStart(l),g=Ui(l,u.name.end);if(g&&g.kind===28){const m=_a(l.text,g.end,!1,!0);o.deleteRange(l,{pos:f,end:m})}else fg(o,l,u.name)}}function i(o,l,u){if(u.parent.name){const f=E.checkDefined(Ui(l,u.pos-1));o.deleteRange(l,{pos:f.getStart(l),end:u.end})}else{const f=Ty(u,272);fg(o,l,f)}}function a(o,l,u,f){const{parent:g}=f;if(g.kind===299){o.deleteNodeRange(u,$a(g,21,u),$a(g,22,u));return}if(g.declarations.length!==1){DE(o,l,u,f);return}const m=g.parent;switch(m.kind){case 250:case 249:o.replaceNode(u,f,I.createObjectLiteralExpression());break;case 248:fg(o,u,g);break;case 243:fg(o,u,m,{leadingTriviaOption:Qu(m)?2:3});break;default:E.assertNever(m)}}})(Qne||(Qne={}))}}),tr={};C_(tr,{ChangeTracker:()=>e6e,LeadingTriviaOption:()=>$ne,TrailingTriviaOption:()=>Xne,applyChanges:()=>Gne,assignPositionsToNode:()=>Qj,createWriter:()=>Zke,deleteNode:()=>fg,isThisTypeAnnotatable:()=>jGe,isValidLocationToAddComment:()=>Kke});var XGe=Rt({"src/services/_namespaces/ts.textChanges.ts"(){$Ge()}}),Yne,Zne,QGe=Rt({"src/services/formatting/formattingContext.ts"(){Wr(),Yne=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(Yne||{}),Zne=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,a){this.currentTokenSpan=E.checkDefined(e),this.currentTokenParent=E.checkDefined(t),this.nextTokenSpan=E.checkDefined(r),this.nextTokenParent=E.checkDefined(i),this.contextNode=E.checkDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=$a(e,19,this.sourceFile),r=$a(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,a=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===a}return!1}}}});function Kne(e,t,r,i,a){const o=t===1?r6e:n6e;o.setText(e),o.resetTokenState(r);let l=!0,u,f,g,m,y;const x=a({advance:k,readTokenInfo:j,readEOFTokenRange:R,isOnToken:Z,isOnEOF:oe,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:X,skipToStartOf:H,getTokenFullStart:()=>{var Q;return(Q=y==null?void 0:y.token.pos)!=null?Q:o.getTokenStart()},getStartPos:()=>{var Q;return(Q=y==null?void 0:y.token.pos)!=null?Q:o.getTokenStart()}});return y=void 0,o.setText(void 0),x;function k(){y=void 0,o.getTokenFullStart()!==r?l=!!f&&ka(f).kind===4:o.scan(),u=void 0,f=void 0;let ne=o.getTokenFullStart();for(;ne(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(ere||{}),tre=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(tre||{})}});function i6e(){const e=[];for(let ee=0;ee<=165;ee++)ee!==1&&e.push(ee);function t(...ee){return{tokens:e.filter(R=>!ee.some(Z=>Z===R)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=J4([...e,3]),a=J4([...e,1]),o=a6e(83,165),l=a6e(30,79),u=[103,104,165,130,142,152],f=[46,47,55,54],g=[9,10,80,21,23,19,110,105],m=[80,21,110,105],y=[80,22,24,105],x=[80,21,110,105],k=[80,22,24,105],C=[2,3],N=[80,...tR],D=i,M=J4([80,3,86,95,102]),V=J4([22,3,92,113,98,93]),U=[Mr("IgnoreBeforeComment",r,C,VN,1),Mr("IgnoreAfterLineComment",2,r,VN,1),Mr("NotSpaceBeforeColon",r,59,[Si,UN,l6e],16),Mr("SpaceAfterColon",59,r,[Si,UN],4),Mr("NoSpaceBeforeQuestionMark",r,58,[Si,UN,l6e],16),Mr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Si,e$e],4),Mr("NoSpaceAfterQuestionMark",58,r,[Si],16),Mr("NoSpaceBeforeDot",r,[25,29],[Si,C$e],16),Mr("NoSpaceAfterDot",[25,29],r,[Si],16),Mr("NoSpaceBetweenImportParenInImportType",102,21,[Si,u$e],16),Mr("NoSpaceAfterUnaryPrefixOperator",f,g,[Si,UN],16),Mr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Si],16),Mr("NoSpaceAfterUnaryPredecrementOperator",47,x,[Si],16),Mr("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Si,k6e],16),Mr("NoSpaceBeforeUnaryPostdecrementOperator",k,47,[Si,k6e],16),Mr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Si,dh],4),Mr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Si,dh],4),Mr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Si,dh],4),Mr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Si,dh],4),Mr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Si,dh],4),Mr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Si,dh],4),Mr("NoSpaceAfterCloseBrace",20,[28,27],[Si],16),Mr("NewLineBeforeCloseBraceInBlockContext",i,20,[u6e],8),Mr("SpaceAfterCloseBrace",20,t(22),[Si,r$e],4),Mr("SpaceBetweenCloseBraceAndElse",20,93,[Si],4),Mr("SpaceBetweenCloseBraceAndWhile",20,117,[Si],4),Mr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Si,h6e],16),Mr("SpaceAfterConditionalClosingParen",22,23,[WN],4),Mr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[d6e],16),Mr("SpaceAfterStarInGeneratorDeclaration",42,80,[d6e],4),Mr("SpaceAfterFunctionInFuncDecl",100,r,[O2],4),Mr("NewLineAfterOpenBraceInBlockContext",19,r,[u6e],8),Mr("SpaceAfterGetSetInMember",[139,153],80,[O2],4),Mr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Si,S6e],16),Mr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Si,S6e],4),Mr("NoSpaceBetweenReturnAndSemicolon",107,27,[Si],16),Mr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Si],4),Mr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Si,m$e],4),Mr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Si,a$e,o$e],16),Mr("SpaceBeforeBinaryKeywordOperator",r,u,[Si,dh],4),Mr("SpaceAfterBinaryKeywordOperator",u,r,[Si,dh],4),Mr("SpaceAfterVoidOperator",116,r,[Si,b$e],4),Mr("SpaceBetweenAsyncAndOpenParen",134,21,[_$e,Si],4),Mr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Si],4),Mr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Si],16),Mr("SpaceBeforeJsxAttribute",r,80,[f$e,Si],4),Mr("SpaceBeforeSlashInJsxOpeningElement",r,44,[b6e,Si],4),Mr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[b6e,Si],16),Mr("NoSpaceBeforeEqualInJsxAttribute",r,64,[v6e,Si],16),Mr("NoSpaceAfterEqualInJsxAttribute",64,r,[v6e,Si],16),Mr("NoSpaceAfterModuleImport",[144,149],21,[Si],16),Mr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Si],4),Mr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Si],4),Mr("SpaceAfterModuleName",11,19,[g$e],4),Mr("SpaceBeforeArrow",r,39,[Si],4),Mr("SpaceAfterArrow",39,r,[Si],4),Mr("NoSpaceAfterEllipsis",26,80,[Si],16),Mr("NoSpaceAfterOptionalParameters",58,[22,28],[Si,UN],16),Mr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Si,h$e],16),Mr("NoSpaceBeforeOpenAngularBracket",N,30,[Si,qN],16),Mr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Si,qN],16),Mr("NoSpaceAfterOpenAngularBracket",30,r,[Si,qN],16),Mr("NoSpaceBeforeCloseAngularBracket",r,32,[Si,qN],16),Mr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Si,qN,n$e,v$e],16),Mr("SpaceBeforeAt",[22,80],60,[Si],4),Mr("NoSpaceAfterAt",60,r,[Si],16),Mr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[d$e],4),Mr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Si,T$e],16),Mr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Si,y$e],16),Mr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Si],4)],Y=[Mr("SpaceAfterConstructor",137,21,[of("insertSpaceAfterConstructor"),Si],4),Mr("NoSpaceAfterConstructor",137,21,[ld("insertSpaceAfterConstructor"),Si],16),Mr("SpaceAfterComma",28,r,[of("insertSpaceAfterCommaDelimiter"),Si,cre,c$e,l$e],4),Mr("NoSpaceAfterComma",28,r,[ld("insertSpaceAfterCommaDelimiter"),Si,cre],16),Mr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[of("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),O2],4),Mr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[ld("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),O2],16),Mr("SpaceAfterKeywordInControl",o,21,[of("insertSpaceAfterKeywordsInControlFlowStatements"),WN],4),Mr("NoSpaceAfterKeywordInControl",o,21,[ld("insertSpaceAfterKeywordsInControlFlowStatements"),WN],16),Mr("SpaceAfterOpenParen",21,r,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Si],4),Mr("SpaceBeforeCloseParen",r,22,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Si],4),Mr("SpaceBetweenOpenParens",21,21,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Si],4),Mr("NoSpaceBetweenParens",21,22,[Si],16),Mr("NoSpaceAfterOpenParen",21,r,[ld("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Si],16),Mr("NoSpaceBeforeCloseParen",r,22,[ld("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Si],16),Mr("SpaceAfterOpenBracket",23,r,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Si],4),Mr("SpaceBeforeCloseBracket",r,24,[of("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Si],4),Mr("NoSpaceBetweenBrackets",23,24,[Si],16),Mr("NoSpaceAfterOpenBracket",23,r,[ld("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Si],16),Mr("NoSpaceBeforeCloseBracket",r,24,[ld("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Si],16),Mr("SpaceAfterOpenBrace",19,r,[c6e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),_6e],4),Mr("SpaceBeforeCloseBrace",r,20,[c6e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),_6e],4),Mr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Si,h6e],16),Mr("NoSpaceAfterOpenBrace",19,r,[nre("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Si],16),Mr("NoSpaceBeforeCloseBrace",r,20,[nre("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Si],16),Mr("SpaceBetweenEmptyBraceBrackets",19,20,[of("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Mr("NoSpaceBetweenEmptyBraceBrackets",19,20,[nre("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Si],16),Mr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[of("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),y6e],4,1),Mr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[of("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Si],4),Mr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[ld("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),y6e],16,1),Mr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[ld("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Si],16),Mr("SpaceAfterOpenBraceInJsxExpression",19,r,[of("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Si,Kj],4),Mr("SpaceBeforeCloseBraceInJsxExpression",r,20,[of("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Si,Kj],4),Mr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[ld("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Si,Kj],16),Mr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[ld("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Si,Kj],16),Mr("SpaceAfterSemicolonInFor",27,r,[of("insertSpaceAfterSemicolonInForStatements"),Si,ire],4),Mr("NoSpaceAfterSemicolonInFor",27,r,[ld("insertSpaceAfterSemicolonInForStatements"),Si,ire],16),Mr("SpaceBeforeBinaryOperator",r,l,[of("insertSpaceBeforeAndAfterBinaryOperators"),Si,dh],4),Mr("SpaceAfterBinaryOperator",l,r,[of("insertSpaceBeforeAndAfterBinaryOperators"),Si,dh],4),Mr("NoSpaceBeforeBinaryOperator",r,l,[ld("insertSpaceBeforeAndAfterBinaryOperators"),Si,dh],16),Mr("NoSpaceAfterBinaryOperator",l,r,[ld("insertSpaceBeforeAndAfterBinaryOperators"),Si,dh],16),Mr("SpaceBeforeOpenParenInFuncDecl",r,21,[of("insertSpaceBeforeFunctionParenthesis"),Si,O2],4),Mr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[ld("insertSpaceBeforeFunctionParenthesis"),Si,O2],16),Mr("NewLineBeforeOpenBraceInControl",V,19,[of("placeOpenBraceOnNewLineForControlBlocks"),WN,ore],8,1),Mr("NewLineBeforeOpenBraceInFunction",D,19,[of("placeOpenBraceOnNewLineForFunctions"),O2,ore],8,1),Mr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",M,19,[of("placeOpenBraceOnNewLineForFunctions"),m6e,ore],8,1),Mr("SpaceAfterTypeAssertion",32,r,[of("insertSpaceAfterTypeAssertion"),Si,_re],4),Mr("NoSpaceAfterTypeAssertion",32,r,[ld("insertSpaceAfterTypeAssertion"),Si,_re],16),Mr("SpaceBeforeTypeAnnotation",r,[58,59],[of("insertSpaceBeforeTypeAnnotation"),Si,sre],4),Mr("NoSpaceBeforeTypeAnnotation",r,[58,59],[ld("insertSpaceBeforeTypeAnnotation"),Si,sre],16),Mr("NoOptionalSemicolon",27,a,[o6e("semicolons","remove"),S$e],32),Mr("OptionalSemicolon",r,a,[o6e("semicolons","insert"),k$e],64)],j=[Mr("NoSpaceBeforeSemicolon",r,27,[Si],16),Mr("SpaceBeforeOpenBraceInControl",V,19,[rre("placeOpenBraceOnNewLineForControlBlocks"),WN,lre,are],4,1),Mr("SpaceBeforeOpenBraceInFunction",D,19,[rre("placeOpenBraceOnNewLineForFunctions"),O2,Zj,lre,are],4,1),Mr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",M,19,[rre("placeOpenBraceOnNewLineForFunctions"),m6e,lre,are],4,1),Mr("NoSpaceBeforeComma",r,28,[Si],16),Mr("NoSpaceBeforeOpenBracket",t(134,84),23,[Si],16),Mr("NoSpaceAfterCloseBracket",24,r,[Si,p$e],16),Mr("SpaceAfterSemicolon",27,r,[Si],4),Mr("SpaceBetweenForAndAwaitKeyword",99,135,[Si],4),Mr("SpaceBetweenStatements",[22,92,93,84],r,[Si,cre,KGe],4),Mr("SpaceAfterTryCatchFinally",[113,85,98],19,[Si],4)];return[...U,...Y,...j]}function Mr(e,t,r,i,a,o=0){return{leftTokenRange:s6e(t),rightTokenRange:s6e(r),rule:{debugName:e,context:i,action:a,flags:o}}}function J4(e){return{tokens:e,isSpecific:!0}}function s6e(e){return typeof e=="number"?J4([e]):Ds(e)?J4(e):e}function a6e(e,t,r=[]){const i=[];for(let a=e;a<=t;a++)ys(r,a)||i.push(a);return J4(i)}function o6e(e,t){return r=>r.options&&r.options[e]===t}function of(e){return t=>t.options&&oo(t.options,e)&&!!t.options[e]}function nre(e){return t=>t.options&&oo(t.options,e)&&!t.options[e]}function ld(e){return t=>!t.options||!oo(t.options,e)||!t.options[e]}function rre(e){return t=>!t.options||!oo(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function c6e(e){return t=>!t.options||!oo(t.options,e)||!!t.options[e]}function ire(e){return e.contextNode.kind===248}function KGe(e){return!ire(e)}function dh(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function UN(e){return!dh(e)}function l6e(e){return!sre(e)}function sre(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||Px(t)}function e$e(e){return e.contextNode.kind===227||e.contextNode.kind===194}function are(e){return e.TokensAreOnSameLine()||Zj(e)}function _6e(e){return e.contextNode.kind===206||e.contextNode.kind===200||t$e(e)}function ore(e){return Zj(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function u6e(e){return f6e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function t$e(e){return f6e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function f6e(e){return p6e(e.contextNode)}function Zj(e){return p6e(e.nextTokenParent)}function p6e(e){if(g6e(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function O2(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function n$e(e){return!O2(e)}function d6e(e){return e.contextNode.kind===262||e.contextNode.kind===218}function m6e(e){return g6e(e.contextNode)}function g6e(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function r$e(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function WN(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function h6e(e){return e.contextNode.kind===210}function i$e(e){return e.contextNode.kind===213}function s$e(e){return e.contextNode.kind===214}function a$e(e){return i$e(e)||s$e(e)}function o$e(e){return e.currentTokenSpan.kind!==28}function c$e(e){return e.nextTokenSpan.kind!==24}function l$e(e){return e.nextTokenSpan.kind!==22}function _$e(e){return e.contextNode.kind===219}function u$e(e){return e.contextNode.kind===205}function Si(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function y6e(e){return e.contextNode.kind!==12}function cre(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function Kj(e){return e.contextNode.kind===294||e.contextNode.kind===293}function f$e(e){return e.nextTokenParent.kind===291}function v6e(e){return e.contextNode.kind===291}function b6e(e){return e.contextNode.kind===285}function p$e(e){return!O2(e)&&!Zj(e)}function d$e(e){return e.TokensAreOnSameLine()&&Ff(e.contextNode)&&T6e(e.currentTokenParent)&&!T6e(e.nextTokenParent)}function T6e(e){for(;e&&nt(e);)e=e.parent;return e&&e.kind===170}function m$e(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function lre(e){return e.formattingRequestKind!==2}function g$e(e){return e.contextNode.kind===267}function h$e(e){return e.contextNode.kind===187}function y$e(e){return e.contextNode.kind===180}function x6e(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function qN(e){return x6e(e.currentTokenSpan,e.currentTokenParent)||x6e(e.nextTokenSpan,e.nextTokenParent)}function _re(e){return e.contextNode.kind===216}function v$e(e){return!_re(e)}function b$e(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function S6e(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function T$e(e){return e.contextNode.kind===235}function k6e(e){return!x$e(e)}function x$e(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function S$e(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(D6(t)){const o=e.nextTokenParent===e.currentTokenParent?TT(e.currentTokenParent,In(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!o)return!0;t=o.kind,r=o.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,a=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===a?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!mf(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Fs(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function k$e(e){return UM(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function C$e(e){return!kr(e.contextNode)||!Ou(e.contextNode.expression)||e.contextNode.expression.getText().indexOf(".")!==-1}var E$e=Rt({"src/services/formatting/rules.ts"(){Wr(),PE()}});function w$e(e,t){return{options:e,getRules:D$e(),host:t}}function D$e(){return ure===void 0&&(ure=N$e(i6e())),ure}function A$e(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function N$e(e){const t=P$e(e);return r=>{const i=t[C6e(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const a=[];let o=0;for(const l of i){const u=~A$e(o);l.action&u&&Xi(l.context,f=>f(r))&&(a.push(l),o|=l.action)}if(a.length)return a}}}function P$e(e){const t=new Array(eJ*eJ),r=new Array(t.length);for(const i of e){const a=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const o of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const u=C6e(o,l);let f=t[u];f===void 0&&(f=t[u]=[]),I$e(f,i.rule,a,r,u)}}return t}function C6e(e,t){return E.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*eJ+t}function I$e(e,t,r,i,a){const o=t.action&3?r?0:z4.StopRulesAny:t.context!==VN?r?z4.ContextRulesSpecific:z4.ContextRulesAny:r?z4.NoContextRulesSpecific:z4.NoContextRulesAny,l=i[a]||0;e.splice(O$e(l,o),0,t),i[a]=F$e(l,o)}function O$e(e,t){let r=0;for(let i=0;i<=t;i+=ZS)r+=e&HN,e>>=ZS;return r}function F$e(e,t){const r=(e>>t&HN)+1;return E.assert((r&HN)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(HN<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=ZS*1]="StopRulesAny",e[e.ContextRulesSpecific=ZS*2]="ContextRulesSpecific",e[e.ContextRulesAny=ZS*3]="ContextRulesAny",e[e.NoContextRulesSpecific=ZS*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=ZS*5]="NoContextRulesAny",e))(z4||{})}});function tJ(e,t,r){const i={pos:e,end:t,kind:r};return E.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>E.formatSyntaxKind(r)}),i}function M$e(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let a=Iw(i,t);for(;Nd(t.text.charCodeAt(a));)a--;Yl(t.text.charCodeAt(a))&&a--;const o={pos:a1(i-1,t),end:a+1};return GN(o,t,r,2)}function R$e(e,t,r){const i=fre(e,27,t);return E6e(pre(i),t,r,3)}function B$e(e,t,r){const i=fre(e,19,t);if(!i)return[];const a=i.parent,o=pre(a),l={pos:up(o.getStart(t),t),end:e};return GN(l,t,r,4)}function j$e(e,t,r){const i=fre(e,20,t);return E6e(pre(i),t,r,5)}function J$e(e,t){const r={pos:0,end:e.text.length};return GN(r,e,t,0)}function z$e(e,t,r,i){const a={pos:up(e,r),end:t};return GN(a,r,i,1)}function fre(e,t,r){const i=rl(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function pre(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!V$e(t.parent,t);)t=t.parent;return t}function V$e(e,t){switch(e.kind){case 263:case 264:return yf(e.members,t);case 267:const r=e.body;return!!r&&r.kind===268&&yf(r.statements,t);case 312:case 241:case 268:return yf(e.statements,t);case 299:return yf(e.block.statements,t)}return!1}function U$e(e,t){return r(t);function r(i){const a=bs(i,o=>mY(o.getStart(t),o.end,e)&&o);if(a){const o=r(a);if(o)return o}return i}}function W$e(e,t){if(!e.length)return a;const r=e.filter(o=>j8(t,o.start,o.start+o.length)).sort((o,l)=>o.start-l.start);if(!r.length)return a;let i=0;return o=>{for(;;){if(i>=r.length)return!1;const l=r[i];if(o.end<=l.start)return!1;if(vM(o.pos,o.end,l.start,l.start+l.length))return!0;i++}};function a(){return!1}}function q$e(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const a=rl(t.pos,r);return!a||a.end>=t.pos?e.pos:a.end}function H$e(e,t,r){let i=-1,a;for(;e;){const o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&o!==i)break;if(_d.shouldIndentChildNode(t,e,a,r))return t.indentSize;i=o,a=e,e=e.parent}return 0}function G$e(e,t,r,i,a,o){const l={pos:e.pos,end:e.end};return Kne(t.text,r,l.pos,l.end,u=>w6e(l,e,i,a,u,o,1,f=>!1,t))}function E6e(e,t,r,i){if(!e)return[];const a={pos:up(e.getStart(t),t),end:e.end};return GN(a,t,r,i)}function GN(e,t,r,i){const a=U$e(e,t);return Kne(t.text,t.languageVariant,q$e(a,e,t),e.end,o=>w6e(e,a,_d.getIndentationForNode(a,e,t,r.options),H$e(a,r.options,t),o,r,i,W$e(t.parseDiagnostics,e),t))}function w6e(e,t,r,i,a,{options:o,getRules:l,host:u},f,g,m){var y;const x=new Zne(m,f,o);let k,C,N,D,M,V=-1;const U=[];if(a.advance(),a.isOnToken()){const pe=m.getLineAndCharacterOfPosition(t.getStart(m)).line;let Pe=pe;Ff(t)&&(Pe=m.getLineAndCharacterOfPosition(wW(t,m)).line),oe(t,t,pe,Pe,r,i)}const Y=a.getCurrentLeadingTrivia();if(Y){const pe=_d.nodeWillIndentChild(o,t,void 0,m,!1)?r+o.indentSize:r;_e(Y,pe,!0,Pe=>{H(Pe,m.getLineAndCharacterOfPosition(Pe.pos),t,t,void 0),ne(Pe.pos,pe,!1)}),o.trimTrailingWhitespace!==!1&&Xe(Y)}if(C&&a.getTokenFullStart()>=e.end){const pe=a.isOnEOF()?a.readEOFTokenRange():a.isOnToken()?a.readTokenInfo(t).token:void 0;if(pe&&pe.pos===k){const Pe=((y=rl(pe.end,m,t))==null?void 0:y.parent)||N;Q(pe,m.getLineAndCharacterOfPosition(pe.pos).line,Pe,C,D,N,Pe,void 0)}}return U;function j(pe,Pe,Ge,tt,mt){if(j8(tt,pe,Pe)||w5(tt,pe,Pe)){if(mt!==-1)return mt}else{const Je=m.getLineAndCharacterOfPosition(pe).line,ot=up(pe,m),Jt=_d.findFirstNonWhitespaceColumn(ot,pe,m,o);if(Je!==Ge||pe===Jt){const Pt=_d.getBaseIndentation(o);return Pt>Jt?Pt:Jt}}return-1}function ee(pe,Pe,Ge,tt,mt,Je){const ot=_d.shouldIndentChildNode(o,pe)?o.indentSize:0;return Je===Pe?{indentation:Pe===M?V:mt.getIndentation(),delta:Math.min(o.indentSize,mt.getDelta(pe)+ot)}:Ge===-1?pe.kind===21&&Pe===M?{indentation:V,delta:mt.getDelta(pe)}:_d.childStartsOnTheSameLineWithElseInIfStatement(tt,pe,Pe,m)||_d.childIsUnindentedBranchOfConditionalExpression(tt,pe,Pe,m)||_d.argumentStartsOnSameLineAsPreviousArgument(tt,pe,Pe,m)?{indentation:mt.getIndentation(),delta:ot}:{indentation:mt.getIndentation()+mt.getDelta(pe),delta:ot}:{indentation:Ge,delta:ot}}function R(pe){if(Np(pe)){const Pe=Or(pe.modifiers,Zs,qc(pe.modifiers,Wl));if(Pe)return Pe.kind}switch(pe.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(pe.asteriskToken)return 42;case 172:case 169:const Pe=os(pe);if(Pe)return Pe.kind}}function Z(pe,Pe,Ge,tt){return{getIndentationForComment:(ot,Jt,Pt)=>{switch(ot){case 20:case 24:case 22:return Ge+Je(Pt)}return Jt!==-1?Jt:Ge},getIndentationForToken:(ot,Jt,Pt,bt)=>!bt&&mt(ot,Jt,Pt)?Ge+Je(Pt):Ge,getIndentation:()=>Ge,getDelta:Je,recomputeIndentation:(ot,Jt)=>{_d.shouldIndentChildNode(o,Jt,pe,m)&&(Ge+=ot?o.indentSize:-o.indentSize,tt=_d.shouldIndentChildNode(o,pe)?o.indentSize:0)}};function mt(ot,Jt,Pt){switch(Jt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Pt.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(Pt.kind!==200)return!1;break}return Pe!==ot&&!(Ff(pe)&&Jt===R(pe))}function Je(ot){return _d.nodeWillIndentChild(o,pe,ot,m,!0)?tt:0}}function oe(pe,Pe,Ge,tt,mt,Je){if(!j8(e,pe.getStart(m),pe.getEnd()))return;const ot=Z(pe,Ge,mt,Je);let Jt=Pe;for(bs(pe,xn=>{Pt(xn,-1,pe,ot,Ge,tt,!1)},xn=>{bt(xn,pe,Ge,ot)});a.isOnToken()&&a.getTokenFullStart()Math.min(pe.end,e.end))break;_r(xn,pe,ot,pe)}function Pt(xn,Bt,er,xr,pi,ki,Nr,pt){if(E.assert(!Do(xn)),_c(xn)||Sle(er,xn))return Bt;const ur=xn.getStart(m),hn=m.getLineAndCharacterOfPosition(ur).line;let Ct=hn;Ff(xn)&&(Ct=m.getLineAndCharacterOfPosition(wW(xn,m)).line);let cn=-1;if(Nr&&yf(e,er)&&(cn=j(ur,xn.end,pi,e,Bt),cn!==-1&&(Bt=cn)),!j8(e,xn.pos,xn.end))return xn.ende.end)return Bt;if(wi.token.end>ur){wi.token.pos>ur&&a.skipToStartOf(xn);break}_r(wi,pe,xr,pe)}if(!a.isOnToken()||a.getTokenFullStart()>=e.end)return Bt;if(Ax(xn)){const wi=a.readTokenInfo(xn);if(xn.kind!==12)return E.assert(wi.token.end===xn.end,"Token end is child end"),_r(wi,pe,xr,xn),Bt}const Pn=xn.kind===170?hn:ki,Sr=ee(xn,hn,cn,pe,xr,Pn);return oe(xn,Jt,hn,Ct,Sr.indentation,Sr.delta),Jt=pe,pt&&er.kind===209&&Bt===-1&&(Bt=Sr.indentation),Bt}function bt(xn,Bt,er,xr){E.assert($v(xn)),E.assert(!Do(xn));const pi=$$e(Bt,xn);let ki=xr,Nr=er;if(!j8(e,xn.pos,xn.end)){xn.endxn.pos)break;if(hn.token.kind===pi){Nr=m.getLineAndCharacterOfPosition(hn.token.pos).line,_r(hn,Bt,xr,Bt);let Ct;if(V!==-1)Ct=V;else{const cn=up(hn.token.pos,m);Ct=_d.findFirstNonWhitespaceColumn(cn,hn.token.pos,m,o)}ki=Z(Bt,er,Ct,o.indentSize)}else _r(hn,Bt,xr,Bt)}let pt=-1;for(let hn=0;hnne(Sr.pos,Pn,!1))}Ct!==-1&&cn&&(ne(xn.token.pos,Ct,pt===1),M=hn.line,V=Ct)}a.advance(),Jt=Bt}}function _e(pe,Pe,Ge,tt){for(const mt of pe){const Je=yf(e,mt);switch(mt.kind){case 3:Je&&G(mt,Pe,!Ge),Ge=!1;break;case 2:Ge&&Je&&tt(mt),Ge=!1;break;case 4:Ge=!0;break}}return Ge}function X(pe,Pe,Ge,tt){for(const mt of pe)if(wM(mt.kind)&&yf(e,mt)){const Je=m.getLineAndCharacterOfPosition(mt.pos);H(mt,Je,Pe,Ge,tt)}}function H(pe,Pe,Ge,tt,mt){const Je=g(pe);let ot=0;if(!Je)if(C)ot=Q(pe,Pe.line,Ge,C,D,N,tt,mt);else{const Jt=m.getLineAndCharacterOfPosition(e.pos);Ne(Jt.line,Pe.line)}return C=pe,k=pe.end,N=Ge,D=Pe.line,ot}function Q(pe,Pe,Ge,tt,mt,Je,ot,Jt){x.updateContext(tt,Je,pe,Ge,ot);const Pt=l(x);let bt=x.options.trimTrailingWhitespace!==!1,_r=0;return Pt?Yae(Pt,xn=>{if(_r=ct(xn,tt,mt,pe,Pe),Jt)switch(_r){case 2:Ge.getStart(m)===pe.pos&&Jt.recomputeIndentation(!1,ot);break;case 1:Ge.getStart(m)===pe.pos&&Jt.recomputeIndentation(!0,ot);break;default:E.assert(_r===0)}bt=bt&&!(xn.action&16)&&xn.flags!==1}):bt=bt&&pe.kind!==1,Pe!==mt&&bt&&Ne(mt,Pe,tt),_r}function ne(pe,Pe,Ge){const tt=dre(Pe,o);if(Ge)xe(pe,0,tt);else{const mt=m.getLineAndCharacterOfPosition(pe),Je=a1(mt.line,m);(Pe!==ue(Je,mt.character)||fe(tt,Je))&&xe(Je,mt.character,tt)}}function ue(pe,Pe){let Ge=0;for(let tt=0;tt0){const ki=dre(pi,o);xe(er,xr.character,ki)}else be(er,xr.character)}}function Ne(pe,Pe,Ge){for(let tt=pe;ttJe)continue;const ot=De(mt,Je);ot!==-1&&(E.assert(ot===mt||!Nd(m.text.charCodeAt(ot-1))),be(ot,Je+1-ot))}}function De(pe,Pe){let Ge=Pe;for(;Ge>=pe&&Nd(m.text.charCodeAt(Ge));)Ge--;return Ge!==Pe?Ge+1:-1}function Xe(pe){let Pe=C?C.end:e.pos;for(const Ge of pe)wM(Ge.kind)&&(PeE5(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function $$e(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function X$e(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function dre(e,t){if((!nJ||nJ.tabSize!==t.tabSize||nJ.indentSize!==t.indentSize)&&(nJ={tabSize:t.tabSize,indentSize:t.indentSize},AE=NE=void 0),t.convertTabsToSpaces){let i;const a=Math.floor(e/t.indentSize),o=e%t.indentSize;return NE||(NE=[]),NE[a]===void 0?(i=F5(" ",t.indentSize*a),NE[a]=i):i=NE[a],o?i+F5(" ",o):i}else{const i=Math.floor(e/t.tabSize),a=e-i*t.tabSize;let o;return AE||(AE=[]),AE[i]===void 0?AE[i]=o=F5(" ",i):o=AE[i],a?o+F5(" ",a):o}}var nJ,AE,NE,Q$e=Rt({"src/services/formatting/formatting.ts"(){Wr(),PE()}}),_d,Y$e=Rt({"src/services/formatting/smartIndenter.ts"(){Wr(),PE(),(e=>{let t;(G=>{G[G.Unknown=-1]="Unknown"})(t||(t={}));function r(G,Ne,De,Xe=!1){if(G>Ne.text.length)return u(De);if(De.indentStyle===0)return 0;const ve=rl(G,Ne,void 0,!0),be=D6e(Ne,G,ve||null);if(be&&be.kind===3)return i(Ne,G,De,be);if(!ve)return u(De);if(CY(ve.kind)&&ve.getStart(Ne)<=G&&G=0),ve<=be)return H(a1(be,G),Ne,G,De);const xe=a1(ve,G),{column:rt,character:ct}=X(xe,Ne,G,De);return rt===0?rt:G.text.charCodeAt(xe+ct)===42?rt-1:rt}function a(G,Ne,De){let Xe=Ne;for(;Xe>0;){const be=G.text.charCodeAt(Xe);if(!Gm(be))break;Xe--}const ve=up(Xe,G);return H(ve,Xe,G,De)}function o(G,Ne,De,Xe,ve,be){let xe,rt=De;for(;rt;){if(hY(rt,Ne,G)&&ue(be,rt,xe,G,!0)){const pe=C(rt,G),Pe=k(De,rt,Xe,G),Ge=Pe!==0?ve&&Pe===2?be.indentSize:0:Xe!==pe.line?be.indentSize:0;return f(rt,pe,void 0,Ge,G,!0,be)}const ct=Z(rt,G,be,!0);if(ct!==-1)return ct;xe=rt,rt=rt.parent}return u(be)}function l(G,Ne,De,Xe){const ve=De.getLineAndCharacterOfPosition(G.getStart(De));return f(G,ve,Ne,0,De,!1,Xe)}e.getIndentationForNode=l;function u(G){return G.baseIndentSize||0}e.getBaseIndentation=u;function f(G,Ne,De,Xe,ve,be,xe){var rt;let ct=G.parent;for(;ct;){let pe=!0;if(De){const mt=G.getStart(ve);pe=mtDe.end}const Pe=g(ct,G,ve),Ge=Pe.line===Ne.line||D(ct,G,Ne.line,ve);if(pe){const mt=(rt=U(G,ve))==null?void 0:rt[0],Je=!!mt&&C(mt,ve).line>Pe.line;let ot=Z(G,ve,xe,Je);if(ot!==-1||(ot=y(G,ct,Ne,Ge,ve,xe),ot!==-1))return ot+Xe}ue(xe,ct,G,ve,be)&&!Ge&&(Xe+=xe.indentSize);const tt=N(ct,G,Ne.line,ve);G=ct,ct=G.parent,Ne=tt?ve.getLineAndCharacterOfPosition(G.getStart(ve)):Pe}return Xe+u(xe)}function g(G,Ne,De){const Xe=U(Ne,De),ve=Xe?Xe.pos:G.getStart(De);return De.getLineAndCharacterOfPosition(ve)}function m(G,Ne,De){const Xe=Mhe(G);return Xe&&Xe.listItemIndex>0?oe(Xe.list.getChildren(),Xe.listItemIndex-1,Ne,De):-1}function y(G,Ne,De,Xe,ve,be){return(l_(G)||Dw(G))&&(Ne.kind===312||!Xe)?_e(De,ve,be):-1}let x;(G=>{G[G.Unknown=0]="Unknown",G[G.OpenBrace=1]="OpenBrace",G[G.CloseBrace=2]="CloseBrace"})(x||(x={}));function k(G,Ne,De,Xe){const ve=TT(G,Ne,Xe);if(!ve)return 0;if(ve.kind===19)return 1;if(ve.kind===20){const be=C(ve,Xe).line;return De===be?2:0}return 0}function C(G,Ne){return Ne.getLineAndCharacterOfPosition(G.getStart(Ne))}function N(G,Ne,De,Xe){if(!(Js(G)&&ys(G.arguments,Ne)))return!1;const ve=G.expression.getEnd();return yo(Xe,ve).line===De}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function D(G,Ne,De,Xe){if(G.kind===245&&G.elseStatement===Ne){const ve=$a(G,93,Xe);return E.assert(ve!==void 0),C(ve,Xe).line===De}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=D;function M(G,Ne,De,Xe){if(e4(G)&&(Ne===G.whenTrue||Ne===G.whenFalse)){const ve=yo(Xe,G.condition.end).line;if(Ne===G.whenTrue)return De===ve;{const be=C(G.whenTrue,Xe).line,xe=yo(Xe,G.whenTrue.end).line;return ve===be&&xe===De}}return!1}e.childIsUnindentedBranchOfConditionalExpression=M;function V(G,Ne,De,Xe){if(Ym(G)){if(!G.arguments)return!1;const ve=Or(G.arguments,ct=>ct.pos===Ne.pos);if(!ve)return!1;const be=G.arguments.indexOf(ve);if(be===0)return!1;const xe=G.arguments[be-1],rt=yo(Xe,xe.getEnd()).line;if(De===rt)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=V;function U(G,Ne){return G.parent&&j(G.getStart(Ne),G.getEnd(),G.parent,Ne)}e.getContainingList=U;function Y(G,Ne,De){return Ne&&j(G,G,Ne,De)}function j(G,Ne,De,Xe){switch(De.kind){case 183:return ve(De.typeArguments);case 210:return ve(De.properties);case 209:return ve(De.elements);case 187:return ve(De.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return ve(De.typeParameters)||ve(De.parameters);case 177:return ve(De.parameters);case 263:case 231:case 264:case 265:case 352:return ve(De.typeParameters);case 214:case 213:return ve(De.typeArguments)||ve(De.arguments);case 261:return ve(De.declarations);case 275:case 279:return ve(De.elements);case 206:case 207:return ve(De.elements)}function ve(be){return be&&w5(ee(De,be,Xe),G,Ne)?be:void 0}}function ee(G,Ne,De){const Xe=G.getChildren(De);for(let ve=1;ve=0&&Ne=0;xe--){if(G[xe].kind===28)continue;if(De.getLineAndCharacterOfPosition(G[xe].end).line!==be.line)return _e(be,De,Xe);be=C(G[xe],De)}return-1}function _e(G,Ne,De){const Xe=Ne.getPositionOfLineAndCharacter(G.line,0);return H(Xe,Xe+G.character,Ne,De)}function X(G,Ne,De,Xe){let ve=0,be=0;for(let xe=G;xeZne,FormattingRequestKind:()=>Yne,RuleAction:()=>ere,RuleFlags:()=>tre,SmartIndenter:()=>_d,anyContext:()=>VN,createTextRangeWithKind:()=>tJ,formatDocument:()=>J$e,formatNodeGivenIndentation:()=>G$e,formatOnClosingCurly:()=>j$e,formatOnEnter:()=>M$e,formatOnOpeningCurly:()=>B$e,formatOnSemicolon:()=>R$e,formatSelection:()=>z$e,getAllRules:()=>i6e,getFormatContext:()=>w$e,getFormattingScanner:()=>Kne,getIndentationString:()=>dre,getRangeOfEnclosingComment:()=>D6e});var PE=Rt({"src/services/_namespaces/ts.formatting.ts"(){QGe(),YGe(),ZGe(),E$e(),L$e(),Q$e(),Y$e()}}),Wr=Rt({"src/services/_namespaces/ts.ts"(){Ls(),pM(),uFe(),jFe(),UFe(),H1e(),tLe(),nLe(),lLe(),vLe(),bLe(),xLe(),NLe(),ILe(),YBe(),KBe(),nje(),sje(),Cje(),wje(),Ks(),_ne(),dke(),Hqe(),Yqe(),mHe(),Sye(),qye(),MHe(),WHe(),Wd(),ZHe(),CGe(),OGe(),RGe(),XGe(),PE()}});function Z$e(){return rJ!=null?rJ:rJ=new wd(L0)}function A6e(e,t,r,i,a){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=i?`has been deprecated since v${i}`:"is deprecated",o+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",o+=a?` ${rg(a,[e],0)}`:"",o}function K$e(e,t,r,i){const a=A6e(e,!0,t,r,i);return()=>{throw new TypeError(a)}}function eXe(e,t,r,i){let a=!1;return()=>{N6e&&!a&&(E.log.warn(A6e(e,!1,t,r,i)),a=!0)}}function tXe(e,t={}){var f,g;const r=typeof t.typeScriptVersion=="string"?new wd(t.typeScriptVersion):(f=t.typeScriptVersion)!=null?f:Z$e(),i=typeof t.errorAfter=="string"?new wd(t.errorAfter):t.errorAfter,a=typeof t.warnAfter=="string"?new wd(t.warnAfter):t.warnAfter,o=typeof t.since=="string"?new wd(t.since):(g=t.since)!=null?g:a,l=t.error||i&&r.compareTo(i)>=0,u=!a||r.compareTo(a)>=0;return l?K$e(e,i,o,t.message):u?eXe(e,i,o,t.message):co}function nXe(e,t){return function(){return e(),t.apply(this,arguments)}}function mre(e,t){var i;const r=tXe((i=t==null?void 0:t.name)!=null?i:E.getFunctionName(e),t);return nXe(r,e)}var N6e,rJ,P6e=Rt({"src/deprecatedCompat/deprecate.ts"(){iJ(),N6e=!0}});function gre(e,t,r,i){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),i)for(const l of Object.keys(i)){const u=+l;!isNaN(u)&&oo(t,`${u}`)&&(t[u]=mre(t[u],{...i[u],name:e}))}const a=rXe(t,r);return o;function o(...l){const u=a(l),f=u!==void 0?t[u]:void 0;if(typeof f=="function")return f(...l);throw new TypeError("Invalid arguments")}}function rXe(e,t){return r=>{for(let i=0;oo(e,`${i}`)&&oo(t,`${i}`);i++){const a=t[i];if(a(r))return i}}}function iXe(e){return{overload:t=>({bind:r=>({finish:()=>gre(e,t,r),deprecate:i=>({finish:()=>gre(e,t,r,i)})})})}}var sXe=Rt({"src/deprecatedCompat/deprecations.ts"(){iJ(),P6e()}}),aXe=Rt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){iJ(),P6e(),tue(e=>{const t=e.getIdentifierConstructor();oo(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:mre(function(){return py(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),oo(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:mre(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),iJ=Rt({"src/deprecatedCompat/_namespaces/ts.ts"(){Ls(),sXe(),aXe()}}),I6e={};C_(I6e,{ANONYMOUS:()=>rR,AccessFlags:()=>ZV,AssertionLevel:()=>xV,AssignmentDeclarationKind:()=>oU,AssignmentKind:()=>gH,Associativity:()=>yH,BreakpointResolver:()=>jK,BuilderFileEmit:()=>YX,BuilderProgramKind:()=>ZX,BuilderState:()=>wm,BundleFileSectionKind:()=>CU,CallHierarchy:()=>VS,CharacterCodes:()=>yU,CheckFlags:()=>GV,CheckMode:()=>bL,ClassificationType:()=>aY,ClassificationTypeNames:()=>sY,CommentDirectiveType:()=>PV,Comparison:()=>Zz,CompletionInfoFlags:()=>ZQ,CompletionTriggerKind:()=>GQ,Completions:()=>$S,ConfigFileProgramReloadLevel:()=>bX,ContainerFlags:()=>C$,ContextFlags:()=>BV,CoreServicesShimHostAdapter:()=>BK,Debug:()=>E,DiagnosticCategory:()=>G7,Diagnostics:()=>p,DocumentHighlights:()=>aR,ElementFlags:()=>YV,EmitFlags:()=>JI,EmitHint:()=>xU,EmitOnly:()=>OV,EndOfLineState:()=>tY,EnumKind:()=>HV,ExitStatus:()=>LV,ExportKind:()=>fZ,Extension:()=>vU,ExternalEmitHelpers:()=>TU,FileIncludeKind:()=>II,FilePreprocessingDiagnosticsKind:()=>IV,FileSystemEntryKind:()=>PU,FileWatcherEventKind:()=>AU,FindAllReferences:()=>Oo,FlattenLevel:()=>Q$,FlowFlags:()=>H7,ForegroundColorEscapeSequences:()=>MX,FunctionFlags:()=>hH,GeneratedIdentifierFlags:()=>PI,GetLiteralTextFlags:()=>pH,GoToDefinition:()=>xE,HighlightSpanKind:()=>XQ,IdentifierNameMap:()=>CS,IdentifierNameMultiMap:()=>G$,ImportKind:()=>uZ,ImportsNotUsedAsValues:()=>pU,IndentStyle:()=>QQ,IndexFlags:()=>KV,IndexKind:()=>nU,InferenceFlags:()=>sU,InferencePriority:()=>iU,InlayHintKind:()=>$Q,InlayHints:()=>Ene,InternalEmitFlags:()=>bU,InternalSymbolName:()=>$V,InvalidatedProjectKind:()=>IQ,JsDoc:()=>Uy,JsTyping:()=>yT,JsxEmit:()=>fU,JsxFlags:()=>AV,JsxReferenceKind:()=>eU,LanguageServiceMode:()=>WQ,LanguageServiceShimHostAdapter:()=>RK,LanguageVariant:()=>gU,LexicalEnvironmentFlags:()=>kU,ListFormat:()=>EU,LogLevel:()=>kV,MemberOverrideStatus:()=>MV,ModifierFlags:()=>AI,ModuleDetectionKind:()=>cU,ModuleInstanceState:()=>k$,ModuleKind:()=>MC,ModuleResolutionKind:()=>Gk,ModuleSpecifierEnding:()=>AH,NavigateTo:()=>xye,NavigationBar:()=>Wye,NewLineKind:()=>dU,NodeBuilderFlags:()=>jV,NodeCheckFlags:()=>XV,NodeFactoryFlags:()=>LH,NodeFlags:()=>DI,NodeResolutionFeatures:()=>T$,ObjectFlags:()=>LI,OperationCanceledException:()=>LC,OperatorPrecedence:()=>vH,OrganizeImports:()=>Fp,OrganizeImportsMode:()=>HQ,OuterExpressionKinds:()=>SU,OutliningElementsCollector:()=>Mne,OutliningSpanKind:()=>KQ,OutputFileType:()=>eY,PackageJsonAutoImportPreference:()=>UQ,PackageJsonDependencyGroup:()=>VQ,PatternMatchKind:()=>lR,PollingInterval:()=>zI,PollingWatchKind:()=>uU,PragmaKindFlags:()=>wU,PrivateIdentifierKind:()=>WH,ProcessLevel:()=>nX,QuotePreference:()=>oZ,RelationComparisonResult:()=>NI,Rename:()=>Hj,ScriptElementKind:()=>rY,ScriptElementKindModifier:()=>iY,ScriptKind:()=>RI,ScriptSnapshot:()=>zQ,ScriptTarget:()=>mU,SemanticClassificationFormat:()=>qQ,SemanticMeaning:()=>aZ,SemicolonPreference:()=>YQ,SignatureCheckMode:()=>TL,SignatureFlags:()=>MI,SignatureHelp:()=>zN,SignatureKind:()=>tU,SmartSelectionRange:()=>zne,SnippetKind:()=>jI,SortKind:()=>bV,StructureIsReused:()=>FV,SymbolAccessibility:()=>VV,SymbolDisplay:()=>ph,SymbolDisplayPartKind:()=>T5,SymbolFlags:()=>OI,SymbolFormatFlags:()=>zV,SyntaxKind:()=>wI,SyntheticSymbolKind:()=>UV,Ternary:()=>aU,ThrottledCancellationToken:()=>IK,TokenClass:()=>nY,TokenFlags:()=>NV,TransformFlags:()=>BI,TypeFacts:()=>yL,TypeFlags:()=>FI,TypeFormatFlags:()=>JV,TypeMapKind:()=>rU,TypePredicateKind:()=>WV,TypeReferenceSerializationKind:()=>qV,TypeScriptServicesFactory:()=>y2e,UnionReduction:()=>RV,UpToDateStatusType:()=>hQ,VarianceFlags:()=>QV,Version:()=>wd,VersionRange:()=>U7,WatchDirectoryFlags:()=>hU,WatchDirectoryKind:()=>_U,WatchFileKind:()=>lU,WatchLogLevel:()=>TX,WatchType:()=>lp,accessPrivateIdentifier:()=>$me,addDisposableResourceHelper:()=>lF,addEmitFlags:()=>xm,addEmitHelper:()=>nS,addEmitHelpers:()=>Kg,addInternalEmitFlags:()=>eS,addNodeFactoryPatcher:()=>r5e,addObjectAllocatorPatcher:()=>tue,addRange:()=>Fr,addRelatedInfo:()=>ua,addSyntheticLeadingComment:()=>Y3,addSyntheticTrailingComment:()=>MO,addToSeen:()=>td,advancedAsyncSuperHelper:()=>tA,affectsDeclarationPathOptionDeclarations:()=>QG,affectsEmitOptionDeclarations:()=>XG,allKeysStartWithDot:()=>cL,altDirectorySeparator:()=>aw,and:()=>hI,append:()=>dn,appendIfUnique:()=>jg,arrayFrom:()=>ra,arrayIsEqualTo:()=>Cd,arrayIsHomogeneous:()=>wue,arrayIsSorted:()=>toe,arrayOf:()=>soe,arrayReverseIterator:()=>iwe,arrayToMap:()=>Bv,arrayToMultiMap:()=>J7,arrayToNumericMap:()=>ooe,arraysEqual:()=>P7,assertType:()=>pwe,assign:()=>j7,assignHelper:()=>UO,asyncDelegator:()=>qO,asyncGeneratorHelper:()=>WO,asyncSuperHelper:()=>eA,asyncValues:()=>HO,attachFileToDiagnostics:()=>Qx,awaitHelper:()=>rS,awaiterHelper:()=>$O,base64decode:()=>q_e,base64encode:()=>W_e,binarySearch:()=>Gh,binarySearchKey:()=>vx,bindSourceFile:()=>sme,breakIntoCharacterSpans:()=>rye,breakIntoWordSpans:()=>iye,buildLinkParts:()=>f1e,buildOpts:()=>$F,buildOverload:()=>iXe,bundlerModuleNameResolver:()=>jde,canBeConvertedToAsync:()=>AZ,canHaveDecorators:()=>oT,canHaveExportModifier:()=>MD,canHaveFlowNode:()=>rD,canHaveIllegalDecorators:()=>xG,canHaveIllegalModifiers:()=>epe,canHaveIllegalType:()=>q5e,canHaveIllegalTypeParameters:()=>Kfe,canHaveJSDoc:()=>iD,canHaveLocals:()=>fm,canHaveModifiers:()=>Np,canHaveSymbol:()=>Pd,canJsonReportNoInputFiles:()=>NA,canProduceDiagnostics:()=>FL,canUsePropertyAccess:()=>cH,canWatchAffectingLocation:()=>x0e,canWatchAtTypes:()=>v0e,canWatchDirectoryOrFile:()=>y0e,cartesianProduct:()=>Toe,cast:()=>Bs,chainBundle:()=>Pp,chainDiagnosticMessages:()=>us,changeAnyExtension:()=>iw,changeCompilerHostLikeToUseCache:()=>o5,changeExtension:()=>Cy,changesAffectModuleResolution:()=>TW,changesAffectingProgramStructure:()=>gle,childIsDecorated:()=>o3,classElementOrClassElementParameterIsDecorated:()=>GW,classHasClassThisAssignment:()=>Y$,classHasDeclaredOrExplicitlyAssignedName:()=>Z$,classHasExplicitlyAssignedName:()=>NL,classOrConstructorParameterIsDecorated:()=>o1,classPrivateFieldGetHelper:()=>aF,classPrivateFieldInHelper:()=>cF,classPrivateFieldSetHelper:()=>oF,classicNameResolver:()=>tme,classifier:()=>D2e,cleanExtendedConfigCache:()=>vX,clear:()=>Hm,clearMap:()=>Mf,clearSharedExtendedConfigFileWatcher:()=>jge,climbPastPropertyAccess:()=>gM,climbPastPropertyOrElementAccess:()=>Ihe,clone:()=>fV,cloneCompilerOptions:()=>Yhe,closeFileWatcher:()=>vm,closeFileWatcherOf:()=>Em,codefix:()=>n_,collapseTextChangeRangesAcrossMultipleVersions:()=>mDe,collectExternalModuleInfo:()=>z$,combine:()=>Wk,combinePaths:()=>Ii,commentPragmas:()=>$7,commonOptionsWithBuild:()=>LA,commonPackageFolders:()=>xH,compact:()=>R7,compareBooleans:()=>jv,compareDataObjects:()=>Bq,compareDiagnostics:()=>I3,compareDiagnosticsSkipRelatedInformation:()=>uO,compareEmitHelpers:()=>gfe,compareNumberOfDirectorySeparators:()=>ID,comparePaths:()=>Db,comparePathsCaseInsensitive:()=>sDe,comparePathsCaseSensitive:()=>iDe,comparePatternKeys:()=>y$,compareProperties:()=>moe,compareStringsCaseInsensitive:()=>pI,compareStringsCaseInsensitiveEslintCompatible:()=>foe,compareStringsCaseSensitive:()=>w_,compareStringsCaseSensitiveUI:()=>V7,compareTextSpans:()=>fI,compareValues:()=>Co,compileOnSaveCommandLineOption:()=>IA,compilerOptionsAffectDeclarationPath:()=>gue,compilerOptionsAffectEmit:()=>mue,compilerOptionsAffectSemanticDiagnostics:()=>due,compilerOptionsDidYouMeanDiagnostics:()=>RA,compilerOptionsIndicateEsModules:()=>IY,compose:()=>_we,computeCommonSourceDirectoryOfFilenames:()=>Wge,computeLineAndCharacterOfPosition:()=>_w,computeLineOfPosition:()=>JC,computeLineStarts:()=>cw,computePositionOfLineAndCharacter:()=>zU,computeSignature:()=>gT,computeSignatureWithDiagnostics:()=>HX,computeSuggestionDiagnostics:()=>EZ,concatenate:()=>es,concatenateDiagnosticMessageChains:()=>aue,consumesNodeCoreModules:()=>XM,contains:()=>ys,containsIgnoredPath:()=>V3,containsObjectRestOrSpread:()=>TA,containsParseError:()=>_6,containsPath:()=>Qh,convertCompilerOptionsForTelemetry:()=>KNe,convertCompilerOptionsFromJson:()=>qNe,convertJsonOption:()=>TS,convertToBase64:()=>U_e,convertToJson:()=>DA,convertToObject:()=>Qpe,convertToOptionsWithAbsolutePaths:()=>BG,convertToRelativePath:()=>BC,convertToTSConfig:()=>PNe,convertTypeAcquisitionFromJson:()=>HNe,copyComments:()=>kT,copyEntries:()=>m9,copyLeadingComments:()=>A4,copyProperties:()=>pV,copyTrailingAsLeadingComments:()=>V5,copyTrailingComments:()=>H8,couldStartTrivia:()=>sce,countWhere:()=>M0,createAbstractBuilder:()=>dOe,createAccessorPropertyBackingField:()=>SG,createAccessorPropertyGetRedirector:()=>lpe,createAccessorPropertySetRedirector:()=>_pe,createBaseNodeFactory:()=>Kue,createBinaryExpressionTrampoline:()=>OF,createBindingHelper:()=>G6,createBuildInfo:()=>i5,createBuilderProgram:()=>GX,createBuilderProgramUsingProgramBuildInfo:()=>h0e,createBuilderStatusReporter:()=>j0e,createCacheWithRedirects:()=>_$,createCacheableExportInfoMap:()=>M1e,createCachedDirectoryStructureHost:()=>Bge,createClassNamedEvaluationHelperBlock:()=>Kme,createClassThisAssignmentBlock:()=>Qme,createClassifier:()=>j1e,createCommentDirectivesMap:()=>wle,createCompilerDiagnostic:()=>xc,createCompilerDiagnosticForInvalidCustomType:()=>Bpe,createCompilerDiagnosticFromMessageChain:()=>_O,createCompilerHost:()=>qge,createCompilerHostFromProgramHost:()=>fQ,createCompilerHostWorker:()=>kX,createDetachedDiagnostic:()=>R6,createDiagnosticCollection:()=>N6,createDiagnosticForFileFromMessageChain:()=>zW,createDiagnosticForNode:()=>br,createDiagnosticForNodeArray:()=>p6,createDiagnosticForNodeArrayFromMessageChain:()=>Lw,createDiagnosticForNodeFromMessageChain:()=>Hg,createDiagnosticForNodeInSourceFile:()=>Yf,createDiagnosticForRange:()=>VW,createDiagnosticMessageChainFromDiagnostic:()=>Rle,createDiagnosticReporter:()=>d5,createDocumentPositionMapper:()=>jme,createDocumentRegistry:()=>mZ,createDocumentRegistryInternal:()=>G1e,createEmitAndSemanticDiagnosticsBuilderProgram:()=>KX,createEmitHelperFactory:()=>mfe,createEmptyExports:()=>fA,createExpressionForJsxElement:()=>Wfe,createExpressionForJsxFragment:()=>qfe,createExpressionForObjectLiteralElementLike:()=>Hfe,createExpressionForPropertyName:()=>gG,createExpressionFromEntityName:()=>pA,createExternalHelpersImportDeclarationIfNeeded:()=>vG,createFileDiagnostic:()=>vl,createFileDiagnosticFromMessageChain:()=>S9,createForOfBindingStatement:()=>mG,createGetCanonicalFileName:()=>Ql,createGetSourceFile:()=>xX,createGetSymbolAccessibilityDiagnosticForNode:()=>oh,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Sge,createGetSymbolWalker:()=>cme,createIncrementalCompilerHost:()=>mQ,createIncrementalProgram:()=>B0e,createInputFiles:()=>_5e,createInputFilesWithFilePaths:()=>OH,createInputFilesWithFileTexts:()=>FH,createJsxFactoryExpression:()=>dG,createLanguageService:()=>r2e,createLanguageServiceSourceFile:()=>WR,createMemberAccessForPropertyName:()=>aT,createModeAwareCache:()=>_T,createModeAwareCacheKey:()=>b8,createModuleNotFoundChain:()=>SW,createModuleResolutionCache:()=>m4,createModuleResolutionLoader:()=>NX,createModuleSpecifierResolutionHost:()=>ST,createMultiMap:()=>Xf,createNodeConverters:()=>tfe,createNodeFactory:()=>HD,createOptionNameMap:()=>BF,createOverload:()=>gre,createPackageJsonImportFilter:()=>X8,createPackageJsonInfo:()=>k1e,createParenthesizerRules:()=>efe,createPatternMatcher:()=>Y1e,createPrependNodes:()=>FX,createPrinter:()=>Ry,createPrinterWithDefaults:()=>gX,createPrinterWithRemoveComments:()=>w2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>hX,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>s5,createProgram:()=>HL,createProgramHost:()=>pQ,createPropertyNameNodeForIdentifierOrLiteral:()=>EO,createQueue:()=>dV,createRange:()=>tp,createRedirectedBuilderProgram:()=>QX,createResolutionCache:()=>E0e,createRuntimeTypeSerializer:()=>rge,createScanner:()=>U0,createSemanticDiagnosticsBuilderProgram:()=>pOe,createSet:()=>cwe,createSolutionBuilder:()=>IOe,createSolutionBuilderHost:()=>AOe,createSolutionBuilderWithWatch:()=>OOe,createSolutionBuilderWithWatchHost:()=>NOe,createSortedArray:()=>oV,createSourceFile:()=>SA,createSourceMapGenerator:()=>Ime,createSourceMapSource:()=>u5e,createSuperAccessVariableStatement:()=>IL,createSymbolTable:()=>Vs,createSymlinkCache:()=>hue,createSystemWatchFunctions:()=>Yoe,createTextChange:()=>I5,createTextChangeFromStartLength:()=>AM,createTextChangeRange:()=>gw,createTextRangeFromNode:()=>AY,createTextRangeFromSpan:()=>DM,createTextSpan:()=>yl,createTextSpanFromBounds:()=>ll,createTextSpanFromNode:()=>cu,createTextSpanFromRange:()=>T1,createTextSpanFromStringLiteralLikeContent:()=>DY,createTextWriter:()=>hD,createTokenRange:()=>Lq,createTypeChecker:()=>Cme,createTypeReferenceDirectiveResolutionCache:()=>nL,createTypeReferenceResolutionLoader:()=>WL,createUnparsedSourceFile:()=>IH,createWatchCompilerHost:()=>kOe,createWatchCompilerHostOfConfigFile:()=>M0e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>R0e,createWatchFactory:()=>uQ,createWatchHost:()=>_Q,createWatchProgram:()=>COe,createWatchStatusReporter:()=>D0e,createWriteFileMeasuringIO:()=>SX,declarationNameToString:()=>no,decodeMappings:()=>B$,decodedTextSpanIntersectsWith:()=>XI,decorateHelper:()=>BO,deduplicate:()=>Uk,defaultIncludeSpec:()=>YF,defaultInitCompilerOptions:()=>QF,defaultMaximumTruncationLength:()=>JD,detectSortCaseSensitivity:()=>lI,diagnosticCategoryName:()=>EI,diagnosticToString:()=>ET,directoryProbablyExists:()=>ed,directorySeparator:()=>qo,displayPart:()=>bu,displayPartsToString:()=>e2e,disposeEmitNodes:()=>BH,disposeResourcesHelper:()=>_F,documentSpansEqual:()=>wFe,dumpTracingLegend:()=>Uoe,elementAt:()=>J0,elideNodes:()=>cpe,emitComments:()=>N_e,emitDetachedComments:()=>P_e,emitFiles:()=>RL,emitFilesAndReportErrors:()=>iM,emitFilesAndReportErrorsAndGetExitStatus:()=>O0e,emitModuleKindIsNonNodeESM:()=>fO,emitNewLineBeforeLeadingCommentOfPosition:()=>A_e,emitNewLineBeforeLeadingComments:()=>w_e,emitNewLineBeforeLeadingCommentsOfPosition:()=>D_e,emitSkippedWithNoDiagnostics:()=>KL,emitUsingBuildInfo:()=>Rge,emptyArray:()=>Ve,emptyFileSystemEntries:()=>OO,emptyMap:()=>bI,emptyOptions:()=>_p,emptySet:()=>koe,endsWith:()=>vc,ensurePathIsNonModuleName:()=>Wv,ensureScriptKind:()=>TO,ensureTrailingDirectorySeparator:()=>D_,entityNameToString:()=>Nu,enumerateInsertsAndDeletes:()=>boe,equalOwnProperties:()=>aoe,equateStringsCaseInsensitive:()=>Tx,equateStringsCaseSensitive:()=>xx,equateValues:()=>ly,esDecorateHelper:()=>zO,escapeJsxAttributeString:()=>yq,escapeLeadingUnderscores:()=>Ho,escapeNonAsciiString:()=>mD,escapeSnippetText:()=>f2,escapeString:()=>Wx,every:()=>Xi,expandPreOrPostfixIncrementOrDecrementExpression:()=>wF,explainFiles:()=>I0e,explainIfFileIsRedirectAndImpliedFormat:()=>aQ,exportAssignmentIsAlias:()=>E6,exportStarHelper:()=>sF,expressionResultIsUnused:()=>Aue,extend:()=>uI,extendsHelper:()=>XO,extensionFromPath:()=>Qb,extensionIsTS:()=>SO,extensionsNotSupportingExtensionlessResolution:()=>qD,externalHelpersModuleNameText:()=>u1,factory:()=>I,fileExtensionIs:()=>Hc,fileExtensionIsOneOf:()=>Gc,fileIncludeReasonToDiagnostics:()=>lQ,fileShouldUseJavaScriptRequire:()=>sZ,filter:()=>zr,filterMutate:()=>tV,filterSemanticDiagnostics:()=>GL,find:()=>Or,findAncestor:()=>In,findBestPatternMatch:()=>hV,findChildOfKind:()=>$a,findComputedPropertyNameCacheAssignment:()=>FF,findConfigFile:()=>Uge,findContainingList:()=>TM,findDiagnosticForNode:()=>E1e,findFirstNonJsxWhitespaceToken:()=>Vhe,findIndex:()=>qc,findLast:()=>yx,findLastIndex:()=>cI,findListItemInfo:()=>Mhe,findMap:()=>Y7e,findModifier:()=>E4,findNextToken:()=>TT,findPackageJson:()=>x1e,findPackageJsons:()=>ZY,findPrecedingMatchingToken:()=>EM,findPrecedingToken:()=>rl,findSuperStatementIndexPath:()=>KA,findTokenOnLeftOfPosition:()=>kM,findUseStrictPrologue:()=>yG,first:()=>wa,firstDefined:()=>cc,firstDefinedIterator:()=>N7,firstIterator:()=>ioe,firstOrOnly:()=>tZ,firstOrUndefined:()=>wl,firstOrUndefinedIterator:()=>_I,fixupCompilerOptions:()=>NZ,flatMap:()=>Na,flatMapIterator:()=>rV,flatMapToMutable:()=>I7,flatten:()=>bp,flattenCommaList:()=>upe,flattenDestructuringAssignment:()=>pT,flattenDestructuringBinding:()=>C2,flattenDiagnosticMessageText:()=>v1,forEach:()=>pn,forEachAncestor:()=>hle,forEachAncestorDirectory:()=>Vg,forEachChild:()=>bs,forEachChildRecursively:()=>m8,forEachEmittedFile:()=>pX,forEachEnclosingBlockScopeContainer:()=>Lle,forEachEntry:()=>Au,forEachExternalModuleToImportFrom:()=>_Z,forEachImportClauseDeclaration:()=>q9,forEachKey:()=>Ox,forEachLeadingCommentRange:()=>uw,forEachNameInAccessChainWalkingLeft:()=>wAe,forEachPropertyAssignment:()=>y6,forEachResolvedProjectReference:()=>Xge,forEachReturnStatement:()=>t2,forEachRight:()=>Yae,forEachTrailingCommentRange:()=>fw,forEachTsConfigPropArray:()=>jw,forEachUnique:()=>RY,forEachYieldExpression:()=>jle,forSomeAncestorDirectory:()=>EAe,formatColorAndReset:()=>D2,formatDiagnostic:()=>CX,formatDiagnostics:()=>W9e,formatDiagnosticsWithColorAndContext:()=>$ge,formatGeneratedName:()=>Ly,formatGeneratedNamePart:()=>_4,formatLocation:()=>EX,formatMessage:()=>Vq,formatStringFromArgs:()=>rg,formatting:()=>gl,fullTripleSlashAMDReferencePathRegEx:()=>mH,fullTripleSlashReferencePathRegEx:()=>dH,generateDjb2Hash:()=>X7,generateTSConfig:()=>MNe,generatorHelper:()=>nF,getAdjustedReferenceLocation:()=>yY,getAdjustedRenameLocation:()=>SM,getAliasDeclarationFromName:()=>oq,getAllAccessorDeclarations:()=>Hb,getAllDecoratorsOfClass:()=>q$,getAllDecoratorsOfClassElement:()=>AL,getAllJSDocTags:()=>KU,getAllJSDocTagsOfKind:()=>CDe,getAllKeys:()=>swe,getAllProjectOutputs:()=>ML,getAllSuperTypeNodes:()=>f3,getAllUnscopedEmitHelpers:()=>UH,getAllowJSCompilerOption:()=>O3,getAllowSyntheticDefaultImports:()=>Yx,getAncestor:()=>Ty,getAnyExtensionFromPath:()=>nw,getAreDeclarationMapsEnabled:()=>dO,getAssignedExpandoInitializer:()=>Mx,getAssignedName:()=>$U,getAssignedNameOfIdentifier:()=>D8,getAssignmentDeclarationKind:()=>uc,getAssignmentDeclarationPropertyAccessKind:()=>Yw,getAssignmentTargetKind:()=>Vb,getAutomaticTypeDirectiveNames:()=>tL,getBaseFileName:()=>Jl,getBinaryOperatorPrecedence:()=>dD,getBuildInfo:()=>BL,getBuildInfoFileVersionMap:()=>XX,getBuildInfoText:()=>Mge,getBuildOrderFromAnyBuildOrder:()=>lM,getBuilderCreationParameters:()=>tM,getBuilderFileEmit:()=>b1,getCheckFlags:()=>rc,getClassExtendsHeritageElement:()=>s2,getClassLikeDeclarationOfSymbol:()=>Yg,getCombinedLocalAndExportSymbolFlags:()=>D3,getCombinedModifierFlags:()=>Hv,getCombinedNodeFlags:()=>W0,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>GU,getCommentRange:()=>Bd,getCommonSourceDirectory:()=>r5,getCommonSourceDirectoryOfConfig:()=>O8,getCompilerOptionValue:()=>gO,getCompilerOptionsDiffValue:()=>LNe,getConditions:()=>xS,getConfigFileParsingDiagnostics:()=>mT,getConstantValue:()=>cfe,getContainerFlags:()=>S$,getContainerNode:()=>bT,getContainingClass:()=>Pl,getContainingClassExcludingClassDecorators:()=>I9,getContainingClassStaticBlock:()=>$le,getContainingFunction:()=>df,getContainingFunctionDeclaration:()=>Gle,getContainingFunctionOrClassStaticBlock:()=>P9,getContainingNodeArray:()=>Nue,getContainingObjectLiteralElement:()=>mN,getContextualTypeFromParent:()=>JM,getContextualTypeFromParentOrAncestorTypeNode:()=>xM,getCurrentTime:()=>h5,getDeclarationDiagnostics:()=>kge,getDeclarationEmitExtensionForPath:()=>vD,getDeclarationEmitOutputFilePath:()=>T_e,getDeclarationEmitOutputFilePathWorker:()=>Tq,getDeclarationFromName:()=>oD,getDeclarationModifierFlagsFromSymbol:()=>Lf,getDeclarationOfKind:()=>lc,getDeclarationsOfKind:()=>dle,getDeclaredExpandoInitializer:()=>Gw,getDecorators:()=>Zh,getDefaultCompilerOptions:()=>UR,getDefaultExportInfoWorker:()=>sR,getDefaultFormatCodeSettings:()=>whe,getDefaultLibFileName:()=>GI,getDefaultLibFilePath:()=>QBe,getDefaultLikeExportInfo:()=>iR,getDiagnosticText:()=>ANe,getDiagnosticsWithinSpan:()=>w1e,getDirectoryPath:()=>Ti,getDirectoryToWatchFailedLookupLocation:()=>nQ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>k0e,getDocumentPositionMapper:()=>_ye,getESModuleInterop:()=>bm,getEditsForFileRename:()=>$1e,getEffectiveBaseTypeNode:()=>Od,getEffectiveConstraintOfTypeParameter:()=>t6,getEffectiveContainerForJSDocTemplateTag:()=>H9,getEffectiveImplementsTypeNodes:()=>w6,getEffectiveInitializer:()=>Hw,getEffectiveJSDocHost:()=>zx,getEffectiveModifierFlags:()=>I_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>L_e,getEffectiveModifierFlagsNoCache:()=>R_e,getEffectiveReturnTypeNode:()=>ep,getEffectiveSetAccessorTypeAnnotationNode:()=>E_e,getEffectiveTypeAnnotationNode:()=>Vl,getEffectiveTypeParameterDeclarations:()=>Kh,getEffectiveTypeRoots:()=>JA,getElementOrPropertyAccessArgumentExpressionOrName:()=>W9,getElementOrPropertyAccessName:()=>$g,getElementsOfBindingOrAssignmentPattern:()=>l4,getEmitDeclarations:()=>wp,getEmitFlags:()=>ma,getEmitHelpers:()=>RO,getEmitModuleDetectionKind:()=>_ue,getEmitModuleKind:()=>Ul,getEmitModuleResolutionKind:()=>Sc,getEmitScriptTarget:()=>Ia,getEmitStandardClassFields:()=>pue,getEnclosingBlockScopeContainer:()=>mm,getEnclosingContainer:()=>jW,getEncodedSemanticClassifications:()=>pZ,getEncodedSyntacticClassifications:()=>dZ,getEndLinePosition:()=>Iw,getEntityNameFromTypeNode:()=>Vw,getEntrypointsFromPackageJsonInfo:()=>SPe,getErrorCountForSummary:()=>nM,getErrorSpanForNode:()=>Kv,getErrorSummaryText:()=>N0e,getEscapedTextOfIdentifierOrLiteral:()=>d3,getEscapedTextOfJsxAttributeName:()=>q3,getEscapedTextOfJsxNamespacedName:()=>Kx,getExpandoInitializer:()=>vy,getExportAssignmentExpression:()=>cq,getExportInfoMap:()=>q5,getExportNeedsImportStarHelper:()=>zme,getExpressionAssociativity:()=>dq,getExpressionPrecedence:()=>g3,getExternalHelpersModuleName:()=>mA,getExternalModuleImportEqualsDeclarationExpression:()=>c3,getExternalModuleName:()=>x6,getExternalModuleNameFromDeclaration:()=>v_e,getExternalModuleNameFromPath:()=>bq,getExternalModuleNameLiteral:()=>yS,getExternalModuleRequireArgument:()=>XW,getFallbackOptions:()=>a5,getFileEmitOutput:()=>e0e,getFileMatcherPatterns:()=>L3,getFileNamesFromConfigSpecs:()=>PA,getFileWatcherEventKind:()=>Goe,getFilesInErrorForSummary:()=>rM,getFirstConstructorWithBody:()=>ng,getFirstIdentifier:()=>Ku,getFirstNonSpaceCharacterPosition:()=>g1e,getFirstProjectOutput:()=>dX,getFixableErrorSpanExpression:()=>eZ,getFormatCodeSettingsForWriting:()=>KM,getFullWidth:()=>Nw,getFunctionFlags:()=>Il,getHeritageClause:()=>_D,getHostSignatureFromJSDoc:()=>by,getIdentifierAutoGenerate:()=>h5e,getIdentifierGeneratedImportReference:()=>dfe,getIdentifierTypeArguments:()=>Yb,getImmediatelyInvokedFunctionExpression:()=>jb,getImpliedNodeFormatForFile:()=>u5,getImpliedNodeFormatForFileWorker:()=>IX,getImportNeedsImportDefaultHelper:()=>J$,getImportNeedsImportStarHelper:()=>wL,getIndentSize:()=>I6,getIndentString:()=>Z9,getInferredLibraryNameResolveFrom:()=>qL,getInitializedVariables:()=>w3,getInitializerOfBinaryExpression:()=>tq,getInitializerOfBindingOrAssignmentElement:()=>hA,getInterfaceBaseTypeNodes:()=>p3,getInternalEmitFlags:()=>xp,getInvokedExpression:()=>L9,getIsolatedModules:()=>nd,getJSDocAugmentsTag:()=>Mce,getJSDocClassTag:()=>XU,getJSDocCommentRanges:()=>WW,getJSDocCommentsAndTags:()=>rq,getJSDocDeprecatedTag:()=>QU,getJSDocDeprecatedTagNoCache:()=>Uce,getJSDocEnumTag:()=>YU,getJSDocHost:()=>Vx,getJSDocImplementsTags:()=>Rce,getJSDocOverrideTagNoCache:()=>Vce,getJSDocParameterTags:()=>e6,getJSDocParameterTagsNoCache:()=>Pce,getJSDocPrivateTag:()=>bDe,getJSDocPrivateTagNoCache:()=>jce,getJSDocProtectedTag:()=>TDe,getJSDocProtectedTagNoCache:()=>Jce,getJSDocPublicTag:()=>vDe,getJSDocPublicTagNoCache:()=>Bce,getJSDocReadonlyTag:()=>xDe,getJSDocReadonlyTagNoCache:()=>zce,getJSDocReturnTag:()=>Wce,getJSDocReturnType:()=>yw,getJSDocRoot:()=>u3,getJSDocSatisfiesExpressionType:()=>uH,getJSDocSatisfiesTag:()=>ZU,getJSDocTags:()=>gy,getJSDocTagsNoCache:()=>kDe,getJSDocTemplateTag:()=>SDe,getJSDocThisTag:()=>ZI,getJSDocType:()=>my,getJSDocTypeAliasName:()=>TG,getJSDocTypeAssertionType:()=>AF,getJSDocTypeParameterDeclarations:()=>nO,getJSDocTypeParameterTags:()=>Oce,getJSDocTypeParameterTagsNoCache:()=>Fce,getJSDocTypeTag:()=>dy,getJSXImplicitImportBase:()=>yO,getJSXRuntimeImport:()=>vO,getJSXTransformEnabled:()=>hO,getKeyForCompilerOptions:()=>l$,getLanguageVariant:()=>wD,getLastChild:()=>jq,getLeadingCommentRanges:()=>$m,getLeadingCommentRangesOfNode:()=>UW,getLeftmostAccessExpression:()=>N3,getLeftmostExpression:()=>P3,getLineAndCharacterOfPosition:()=>yo,getLineInfo:()=>Ome,getLineOfLocalPosition:()=>v3,getLineOfLocalPositionFromLineMap:()=>Wb,getLineStartPositionForPosition:()=>up,getLineStarts:()=>Ug,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Q_e,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>X_e,getLinesBetweenPositions:()=>zC,getLinesBetweenRangeEndAndRangeStart:()=>Mq,getLinesBetweenRangeEndPositions:()=>xAe,getLiteralText:()=>Dle,getLocalNameForExternalImport:()=>c4,getLocalSymbolForExportDefault:()=>F6,getLocaleSpecificMessage:()=>ss,getLocaleTimeString:()=>m5,getMappedContextSpan:()=>s1e,getMappedDocumentSpan:()=>BY,getMappedLocation:()=>B5,getMatchedFileSpec:()=>oQ,getMatchedIncludeSpec:()=>cQ,getMeaningFromDeclaration:()=>x5,getMeaningFromLocation:()=>vT,getMembersOfDeclaration:()=>Jle,getModeForFileReference:()=>c5,getModeForResolutionAtIndex:()=>wX,getModeForUsageLocation:()=>cp,getModifiedTime:()=>wx,getModifiers:()=>Gv,getModuleInstanceState:()=>r0,getModuleNameStringLiteralAt:()=>XL,getModuleSpecifierEndingPreference:()=>Zq,getModuleSpecifierResolverHost:()=>OY,getNameForExportedSymbol:()=>QM,getNameFromIndexInfo:()=>Mle,getNameFromPropertyName:()=>L5,getNameOfAccessExpression:()=>K_e,getNameOfCompilerOptionValue:()=>MG,getNameOfDeclaration:()=>os,getNameOfExpando:()=>KW,getNameOfJSDocTypedef:()=>Ace,getNameOrArgument:()=>Qw,getNameTable:()=>AK,getNamesForExportedSymbol:()=>A1e,getNamespaceDeclarationNode:()=>S6,getNewLineCharacter:()=>K0,getNewLineKind:()=>W5,getNewLineOrDefaultFromHost:()=>s0,getNewTargetContainer:()=>Qle,getNextJSDocCommentLocation:()=>iq,getNodeForGeneratedName:()=>vA,getNodeId:()=>Ra,getNodeKind:()=>A2,getNodeModifiers:()=>z8,getNodeModulePathParts:()=>oH,getNonAssignedNameOfDeclaration:()=>YI,getNonAssignmentOperatorForCompoundAssignment:()=>E8,getNonAugmentationDeclaration:()=>OW,getNonDecoratorTokenPosOfNode:()=>wW,getNormalizedAbsolutePath:()=>ms,getNormalizedAbsolutePathWithoutRoot:()=>LU,getNormalizedPathComponents:()=>rw,getObjectFlags:()=>Rr,getOperator:()=>gq,getOperatorAssociativity:()=>mq,getOperatorPrecedence:()=>pD,getOptionFromName:()=>IG,getOptionsForLibraryResolution:()=>f$,getOptionsNameMap:()=>p4,getOrCreateEmitNode:()=>e_,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Yfe,getOrUpdate:()=>F7,getOriginalNode:()=>Ko,getOriginalNodeId:()=>t_,getOriginalSourceFile:()=>lAe,getOutputDeclarationFileName:()=>I8,getOutputExtension:()=>LL,getOutputFileNames:()=>A9e,getOutputPathsFor:()=>P8,getOutputPathsForBundle:()=>N8,getOwnEmitOutputFilePath:()=>b_e,getOwnKeys:()=>Jg,getOwnValues:()=>bx,getPackageJsonInfo:()=>T2,getPackageJsonTypesVersionsPaths:()=>eL,getPackageJsonsVisibleToFile:()=>S1e,getPackageNameFromTypesPackageName:()=>qA,getPackageScopeForPath:()=>aL,getParameterSymbolFromJSDoc:()=>sD,getParameterTypeNode:()=>ZAe,getParentNodeInSpan:()=>R5,getParseTreeNode:()=>ts,getParsedCommandLineOfConfigFile:()=>CA,getPathComponents:()=>Dl,getPathComponentsRelativeTo:()=>BU,getPathFromPathComponents:()=>$h,getPathUpdater:()=>hZ,getPathsBasePath:()=>eO,getPatternFromSpec:()=>$q,getPendingEmitKind:()=>T4,getPositionOfLineAndCharacter:()=>lw,getPossibleGenericSignatures:()=>xY,getPossibleOriginalInputExtensionForExtension:()=>x_e,getPossibleTypeArgumentsInfo:()=>SY,getPreEmitDiagnostics:()=>U9e,getPrecedingNonSpaceCharacterPosition:()=>BM,getPrivateIdentifier:()=>H$,getProperties:()=>U$,getProperty:()=>B7,getPropertyArrayElementValue:()=>Hle,getPropertyAssignmentAliasLikeExpression:()=>d_e,getPropertyNameForPropertyNameNode:()=>xy,getPropertyNameForUniqueESSymbol:()=>oAe,getPropertyNameFromType:()=>sp,getPropertyNameOfBindingOrAssignmentElement:()=>bG,getPropertySymbolFromBindingElement:()=>MM,getPropertySymbolsFromContextualType:()=>qR,getQuoteFromPreference:()=>LY,getQuotePreference:()=>Rf,getRangesWhere:()=>aV,getRefactorContextSpan:()=>FS,getReferencedFileLocation:()=>F8,getRegexFromPattern:()=>l1,getRegularExpressionForWildcard:()=>F3,getRegularExpressionsForWildcards:()=>bO,getRelativePathFromDirectory:()=>um,getRelativePathFromFile:()=>sw,getRelativePathToDirectoryOrUrl:()=>Dx,getRenameLocation:()=>z5,getReplacementSpanForContextToken:()=>wY,getResolutionDiagnostic:()=>LX,getResolutionModeOverrideForClause:()=>DS,getResolveJsonModule:()=>$b,getResolvePackageJsonExports:()=>Wq,getResolvePackageJsonImports:()=>BAe,getResolvedExternalModuleName:()=>K9,getResolvedModule:()=>Fx,getResolvedTypeReferenceDirective:()=>MDe,getRestIndicatorOfBindingOrAssignmentElement:()=>PF,getRestParameterElementType:()=>qW,getRightMostAssignedExpression:()=>$w,getRootDeclaration:()=>hm,getRootDirectoryOfResolutionCache:()=>C0e,getRootLength:()=>_m,getRootPathSplitLength:()=>gOe,getScriptKind:()=>UY,getScriptKindFromFileName:()=>Yq,getScriptTargetFeatures:()=>DW,getSelectedEffectiveModifierFlags:()=>Gx,getSelectedSyntacticModifierFlags:()=>F_e,getSemanticClassifications:()=>J1e,getSemanticJsxChildren:()=>h3,getSetAccessorTypeAnnotationNode:()=>k_e,getSetAccessorValueParameter:()=>b3,getSetExternalModuleIndicator:()=>DD,getShebang:()=>qI,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>nq,getSingleVariableOfVariableStatement:()=>C6,getSnapshotText:()=>PM,getSnippetElement:()=>jH,getSourceFileOfModule:()=>h9,getSourceFileOfNode:()=>Rn,getSourceFilePathInNewDir:()=>tO,getSourceFilePathInNewDirWorker:()=>Sq,getSourceFileVersionAsHashFromText:()=>sM,getSourceFilesToEmit:()=>xq,getSourceMapRange:()=>wy,getSourceMapper:()=>lye,getSourceTextOfNodeFromSourceFile:()=>Yv,getSpanOfTokenAtPosition:()=>gm,getSpellingSuggestion:()=>NC,getStartPositionOfLine:()=>a1,getStartPositionOfRange:()=>E3,getStartsOnNewLine:()=>Q3,getStaticPropertiesAndClassStaticBlock:()=>DL,getStrictOptionValue:()=>rp,getStringComparer:()=>dI,getSuperCallFromStatement:()=>V$,getSuperContainer:()=>Jw,getSupportedCodeFixes:()=>t2e,getSupportedExtensions:()=>M3,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>PD,getSwitchedType:()=>XY,getSymbolId:()=>ya,getSymbolNameForPrivateIdentifier:()=>uD,getSymbolTarget:()=>d1e,getSyntacticClassifications:()=>W1e,getSyntacticModifierFlags:()=>c1,getSyntacticModifierFlagsNoCache:()=>Aq,getSynthesizedDeepClone:()=>Io,getSynthesizedDeepCloneWithReplacements:()=>J5,getSynthesizedDeepClones:()=>N2,getSynthesizedDeepClonesWithReplacements:()=>WY,getSyntheticLeadingComments:()=>H6,getSyntheticTrailingComments:()=>YD,getTargetLabel:()=>hM,getTargetOfBindingOrAssignmentElement:()=>m1,getTemporaryModuleResolutionState:()=>sL,getTextOfConstantValue:()=>Ale,getTextOfIdentifierOrLiteral:()=>Cp,getTextOfJSDocComment:()=>vw,getTextOfJsxAttributeName:()=>jD,getTextOfJsxNamespacedName:()=>H3,getTextOfNode:()=>el,getTextOfNodeFromSourceText:()=>t3,getTextOfPropertyName:()=>f6,getThisContainer:()=>ru,getThisParameter:()=>a2,getTokenAtPosition:()=>Ui,getTokenPosOfNode:()=>Rb,getTokenSourceMapRange:()=>m5e,getTouchingPropertyName:()=>af,getTouchingToken:()=>J8,getTrailingCommentRanges:()=>uy,getTrailingSemicolonDeferringWriter:()=>vq,getTransformFlagsSubtreeExclusions:()=>rfe,getTransformers:()=>uX,getTsBuildInfoEmitOutputFilePath:()=>ch,getTsConfigObjectLiteralExpression:()=>s3,getTsConfigPropArrayElementValue:()=>N9,getTypeAnnotationNode:()=>C_e,getTypeArgumentOrTypeParameterList:()=>$he,getTypeKeywordOfTypeOnlyImport:()=>MY,getTypeNode:()=>ffe,getTypeNodeIfAccessible:()=>$8,getTypeParameterFromJsDoc:()=>c_e,getTypeParameterOwner:()=>gDe,getTypesPackageName:()=>_L,getUILocale:()=>poe,getUniqueName:()=>CT,getUniqueSymbolId:()=>m1e,getUseDefineForClassFields:()=>ND,getWatchErrorSummaryDiagnosticMessage:()=>iQ,getWatchFactory:()=>Vge,group:()=>AC,groupBy:()=>coe,guessIndentation:()=>ple,handleNoEmitOptions:()=>OX,hasAbstractModifier:()=>l2,hasAccessorModifier:()=>ym,hasAmbientModifier:()=>wq,hasChangesInResolutions:()=>kW,hasChildOfKind:()=>D5,hasContextSensitiveParameters:()=>CO,hasDecorators:()=>Ff,hasDocComment:()=>Ghe,hasDynamicName:()=>X0,hasEffectiveModifier:()=>Iu,hasEffectiveModifiers:()=>rO,hasEffectiveReadonlyModifier:()=>T3,hasExtension:()=>$k,hasIndexSignature:()=>$Y,hasInitializer:()=>i1,hasInvalidEscape:()=>hq,hasJSDocNodes:()=>Qu,hasJSDocParameterTags:()=>Lce,hasJSFileExtension:()=>_2,hasJsonModuleEmitEnabled:()=>pO,hasOnlyExpressionInitializer:()=>Lb,hasOverrideModifier:()=>Eq,hasPossibleExternalModuleReference:()=>Fle,hasProperty:()=>oo,hasPropertyAccessExpressionWithName:()=>S5,hasQuestionToken:()=>Jx,hasRecordedExternalHelpers:()=>Qfe,hasRestParameter:()=>hW,hasScopeMarker:()=>ole,hasStaticModifier:()=>$c,hasSyntacticModifier:()=>Lr,hasSyntacticModifiers:()=>O_e,hasTSFileExtension:()=>R3,hasTabstop:()=>Iue,hasTrailingDirectorySeparator:()=>V0,hasType:()=>p9,hasTypeArguments:()=>rAe,hasZeroOrOneAsteriskCharacter:()=>qq,helperString:()=>VH,hostGetCanonicalFileName:()=>Q0,hostUsesCaseSensitiveFileNames:()=>yD,idText:()=>lr,identifierIsThisKeyword:()=>Cq,identifierToKeywordKind:()=>py,identity:()=>Zo,identitySourceMapConsumer:()=>EL,ignoreSourceNewlines:()=>zH,ignoredPaths:()=>ew,importDefaultHelper:()=>iF,importFromModuleSpecifier:()=>eD,importNameElisionDisabled:()=>Uq,importStarHelper:()=>KD,indexOfAnyCharCode:()=>Zae,indexOfNode:()=>u6,indicesOf:()=>L7,inferredTypesContainingFile:()=>p5,injectClassNamedEvaluationHelperBlockIfMissing:()=>PL,injectClassThisAssignmentIfMissing:()=>Yme,insertImports:()=>U8,insertLeadingStatement:()=>R5e,insertSorted:()=>Hh,insertStatementAfterCustomPrologue:()=>Mb,insertStatementAfterStandardPrologue:()=>JDe,insertStatementsAfterCustomPrologue:()=>CW,insertStatementsAfterStandardPrologue:()=>dm,intersperse:()=>eV,intrinsicTagNameToString:()=>fH,introducesArgumentsExoticObject:()=>Wle,inverseJsxOptionMap:()=>h8,isAbstractConstructorSymbol:()=>Y_e,isAbstractModifier:()=>kfe,isAccessExpression:()=>Mo,isAccessibilityModifier:()=>EY,isAccessor:()=>t1,isAccessorModifier:()=>Efe,isAliasSymbolDeclaration:()=>iAe,isAliasableExpression:()=>lD,isAmbientModule:()=>__,isAmbientPropertyDeclaration:()=>LW,isAnonymousFunctionDefinition:()=>m3,isAnyDirectorySeparator:()=>IU,isAnyImportOrBareOrAccessedRequire:()=>Ole,isAnyImportOrReExport:()=>Ow,isAnyImportSyntax:()=>Bb,isAnySupportedFileExtension:()=>GAe,isApplicableVersionedTypesKey:()=>WA,isArgumentExpressionOfElementAccess:()=>fY,isArray:()=>Ds,isArrayBindingElement:()=>o9,isArrayBindingOrAssignmentElement:()=>Cw,isArrayBindingOrAssignmentPattern:()=>_W,isArrayBindingPattern:()=>pS,isArrayLiteralExpression:()=>u_,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>_h,isArrayTypeNode:()=>QH,isArrowFunction:()=>Po,isAsExpression:()=>aA,isAssertClause:()=>TF,isAssertEntry:()=>Ffe,isAssertionExpression:()=>Fb,isAssertionKey:()=>$ce,isAssertsKeyword:()=>xfe,isAssignmentDeclaration:()=>l3,isAssignmentExpression:()=>Kl,isAssignmentOperator:()=>Y0,isAssignmentPattern:()=>YC,isAssignmentTarget:()=>tg,isAsteriskToken:()=>nA,isAsyncFunction:()=>A6,isAsyncModifier:()=>K3,isAutoAccessorPropertyDeclaration:()=>nu,isAwaitExpression:()=>p1,isAwaitKeyword:()=>XH,isBigIntLiteral:()=>uF,isBinaryExpression:()=>rr,isBinaryOperatorToken:()=>ape,isBindableObjectDefinePropertyCall:()=>Rx,isBindableStaticAccessExpression:()=>zb,isBindableStaticElementAccessExpression:()=>U9,isBindableStaticNameExpression:()=>Bx,isBindingElement:()=>Oa,isBindingElementOfBareOrAccessedRequire:()=>Kle,isBindingName:()=>Ib,isBindingOrAssignmentElement:()=>Kce,isBindingOrAssignmentPattern:()=>Sw,isBindingPattern:()=>Ps,isBlock:()=>vs,isBlockOrCatchScoped:()=>AW,isBlockScope:()=>MW,isBlockScopedContainerTopLevel:()=>Ile,isBooleanLiteral:()=>Xce,isBreakOrContinueStatement:()=>$C,isBreakStatement:()=>E5e,isBuildInfoFile:()=>Age,isBuilderProgram:()=>P0e,isBundle:()=>rG,isBundleFileTextLike:()=>eue,isCallChain:()=>Ab,isCallExpression:()=>Js,isCallExpressionTarget:()=>oY,isCallLikeExpression:()=>Qv,isCallOrNewExpression:()=>Ym,isCallOrNewExpressionTarget:()=>cY,isCallSignatureDeclaration:()=>X6,isCallToHelper:()=>Z3,isCaseBlock:()=>c8,isCaseClause:()=>t4,isCaseKeyword:()=>wfe,isCaseOrDefaultClause:()=>u9,isCatchClause:()=>Iy,isCatchClauseVariableDeclaration:()=>Pue,isCatchClauseVariableDeclarationOrBindingElement:()=>NW,isCheckJsEnabledForFile:()=>LD,isChildOfNodeWithKind:()=>$De,isCircularBuildOrder:()=>PS,isClassDeclaration:()=>Qc,isClassElement:()=>Nl,isClassExpression:()=>Fl,isClassLike:()=>ni,isClassMemberModifier:()=>oW,isClassNamedEvaluationHelperBlock:()=>ES,isClassOrTypeElement:()=>a9,isClassStaticBlockDeclaration:()=>ec,isClassThisAssignmentBlock:()=>w8,isCollapsedRange:()=>TAe,isColonToken:()=>bfe,isCommaExpression:()=>dA,isCommaListExpression:()=>a8,isCommaSequence:()=>p8,isCommaToken:()=>vfe,isComment:()=>wM,isCommonJsExportPropertyAssignment:()=>D9,isCommonJsExportedExpression:()=>Vle,isCompoundAssignment:()=>C8,isComputedNonLiteralName:()=>Fw,isComputedPropertyName:()=>Ga,isConciseBody:()=>l9,isConditionalExpression:()=>e4,isConditionalTypeNode:()=>Z6,isConstTypeReference:()=>qg,isConstructSignatureDeclaration:()=>iA,isConstructorDeclaration:()=>Cc,isConstructorTypeNode:()=>n8,isContextualKeyword:()=>$9,isContinueStatement:()=>C5e,isCustomPrologue:()=>Bw,isDebuggerStatement:()=>w5e,isDeclaration:()=>l_,isDeclarationBindingElement:()=>xw,isDeclarationFileName:()=>ou,isDeclarationName:()=>Xg,isDeclarationNameOfEnumOrNamespace:()=>Rq,isDeclarationReadonly:()=>k9,isDeclarationStatement:()=>lle,isDeclarationWithTypeParameterChildren:()=>BW,isDeclarationWithTypeParameters:()=>RW,isDecorator:()=>Wl,isDecoratorTarget:()=>Nhe,isDefaultClause:()=>_A,isDefaultImport:()=>jx,isDefaultModifier:()=>dF,isDefaultedExpandoInitializer:()=>t_e,isDeleteExpression:()=>Nfe,isDeleteTarget:()=>aq,isDeprecatedDeclaration:()=>YM,isDestructuringAssignment:()=>Z0,isDiagnosticWithLocation:()=>KY,isDiskPathRoot:()=>OU,isDoStatement:()=>S5e,isDocumentRegistryEntry:()=>H5,isDotDotDotToken:()=>fF,isDottedName:()=>S3,isDynamicName:()=>Y9,isESSymbolIdentifier:()=>cAe,isEffectiveExternalModule:()=>Lx,isEffectiveModuleDeclaration:()=>Ple,isEffectiveStrictModeSourceFile:()=>FW,isElementAccessChain:()=>eW,isElementAccessExpression:()=>No,isEmittedFileOfProgram:()=>zge,isEmptyArrayLiteral:()=>V_e,isEmptyBindingElement:()=>wce,isEmptyBindingPattern:()=>Ece,isEmptyObjectLiteral:()=>Oq,isEmptyStatement:()=>eG,isEmptyStringLiteral:()=>$W,isEntityName:()=>Xu,isEntityNameExpression:()=>Tc,isEnumConst:()=>e2,isEnumDeclaration:()=>Py,isEnumMember:()=>b2,isEqualityOperatorKind:()=>zM,isEqualsGreaterThanToken:()=>Tfe,isExclamationToken:()=>rA,isExcludedFile:()=>pde,isExclusivelyTypeOnlyImportOrExport:()=>DX,isExportAssignment:()=>fc,isExportDeclaration:()=>Yc,isExportModifier:()=>aS,isExportName:()=>DF,isExportNamespaceAsDefaultDeclaration:()=>b9,isExportOrDefaultModifier:()=>yA,isExportSpecifier:()=>p_,isExportsIdentifier:()=>Jb,isExportsOrModuleExportsOrAlias:()=>x2,isExpression:()=>nt,isExpressionNode:()=>Gg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Fhe,isExpressionOfOptionalChainRoot:()=>t9,isExpressionStatement:()=>ql,isExpressionWithTypeArguments:()=>rh,isExpressionWithTypeArgumentsInClassExtendsClause:()=>xD,isExternalModule:()=>zc,isExternalModuleAugmentation:()=>Zv,isExternalModuleImportEqualsDeclaration:()=>yy,isExternalModuleIndicator:()=>Ew,isExternalModuleNameRelative:()=>Al,isExternalModuleReference:()=>km,isExternalModuleSymbol:()=>O5,isExternalOrCommonJsModule:()=>Yu,isFileLevelReservedGeneratedIdentifier:()=>Tw,isFileLevelUniqueName:()=>y9,isFileProbablyExternalModule:()=>xA,isFirstDeclarationOfSymbolParameter:()=>jY,isFixablePromiseHandler:()=>DZ,isForInOrOfStatement:()=>a6,isForInStatement:()=>bF,isForInitializer:()=>If,isForOfStatement:()=>oA,isForStatement:()=>nT,isFunctionBlock:()=>n2,isFunctionBody:()=>fW,isFunctionDeclaration:()=>tl,isFunctionExpression:()=>_o,isFunctionExpressionOrArrowFunction:()=>z6,isFunctionLike:()=>Cs,isFunctionLikeDeclaration:()=>Eo,isFunctionLikeKind:()=>Px,isFunctionLikeOrClassStaticBlockDeclaration:()=>r6,isFunctionOrConstructorTypeNode:()=>Zce,isFunctionOrModuleBlock:()=>cW,isFunctionSymbol:()=>r_e,isFunctionTypeNode:()=>og,isFutureReservedKeyword:()=>sAe,isGeneratedIdentifier:()=>Jo,isGeneratedPrivateIdentifier:()=>Pb,isGetAccessor:()=>r1,isGetAccessorDeclaration:()=>gf,isGetOrSetAccessorDeclaration:()=>KI,isGlobalDeclaration:()=>BFe,isGlobalScopeAugmentation:()=>Id,isGrammarError:()=>Sle,isHeritageClause:()=>tf,isHoistedFunction:()=>E9,isHoistedVariableStatement:()=>w9,isIdentifier:()=>we,isIdentifierANonContextualKeyword:()=>X9,isIdentifierName:()=>p_e,isIdentifierOrThisTypeNode:()=>npe,isIdentifierPart:()=>fy,isIdentifierStart:()=>Xm,isIdentifierText:()=>pf,isIdentifierTypePredicate:()=>qle,isIdentifierTypeReference:()=>Eue,isIfStatement:()=>tT,isIgnoredFileFromWildCardWatching:()=>zL,isImplicitGlob:()=>Gq,isImportCall:()=>Zu,isImportClause:()=>Sm,isImportDeclaration:()=>bl,isImportEqualsDeclaration:()=>Hl,isImportKeyword:()=>t8,isImportMeta:()=>g6,isImportOrExportSpecifier:()=>Nx,isImportOrExportSpecifierName:()=>p1e,isImportSpecifier:()=>vu,isImportTypeAssertionContainer:()=>Ofe,isImportTypeNode:()=>cg,isImportableFile:()=>lZ,isInComment:()=>lh,isInExpressionContext:()=>R9,isInJSDoc:()=>Ww,isInJSFile:()=>Kn,isInJSXText:()=>qhe,isInJsonFile:()=>j9,isInNonReferenceComment:()=>Khe,isInReferenceComment:()=>Zhe,isInRightSideOfInternalImportEqualsDeclaration:()=>dM,isInString:()=>xT,isInTemplateString:()=>TY,isInTopLevelContext:()=>O9,isInTypeQuery:()=>qb,isIncrementalCompilation:()=>AD,isIndexSignatureDeclaration:()=>Zb,isIndexedAccessTypeNode:()=>fS,isInferTypeNode:()=>lS,isInfinityOrNaNString:()=>U3,isInitializedProperty:()=>e5,isInitializedVariable:()=>ED,isInsideJsxElement:()=>CM,isInsideJsxElementOrAttribute:()=>Whe,isInsideNodeModules:()=>C1e,isInsideTemplateLiteral:()=>P5,isInstantiatedModule:()=>N$,isInterfaceDeclaration:()=>f_,isInternalDeclaration:()=>cX,isInternalModuleImportEqualsDeclaration:()=>b6,isInternalName:()=>hG,isIntersectionTypeNode:()=>sA,isIntrinsicJsxName:()=>P6,isIterationStatement:()=>n1,isJSDoc:()=>Ap,isJSDocAllType:()=>jfe,isJSDocAugmentsTag:()=>s4,isJSDocAuthorTag:()=>P5e,isJSDocCallbackTag:()=>sG,isJSDocClassTag:()=>zfe,isJSDocCommentContainingNode:()=>f9,isJSDocConstructSignature:()=>k6,isJSDocDeprecatedTag:()=>_G,isJSDocEnumTag:()=>uA,isJSDocFunctionType:()=>r4,isJSDocImplementsTag:()=>uG,isJSDocIndexSignature:()=>J9,isJSDocLikeText:()=>kG,isJSDocLink:()=>Rfe,isJSDocLinkCode:()=>Bfe,isJSDocLinkLike:()=>Ix,isJSDocLinkPlain:()=>A5e,isJSDocMemberName:()=>Oy,isJSDocNameReference:()=>_8,isJSDocNamepathType:()=>N5e,isJSDocNamespaceBody:()=>PDe,isJSDocNode:()=>o6,isJSDocNonNullableType:()=>xF,isJSDocNullableType:()=>n4,isJSDocOptionalParameter:()=>BD,isJSDocOptionalType:()=>iG,isJSDocOverloadTag:()=>u8,isJSDocOverrideTag:()=>kF,isJSDocParameterTag:()=>ad,isJSDocPrivateTag:()=>oG,isJSDocPropertyLikeTag:()=>r9,isJSDocPropertyTag:()=>Ufe,isJSDocProtectedTag:()=>cG,isJSDocPublicTag:()=>aG,isJSDocReadonlyTag:()=>lG,isJSDocReturnTag:()=>CF,isJSDocSatisfiesExpression:()=>_H,isJSDocSatisfiesTag:()=>EF,isJSDocSeeTag:()=>I5e,isJSDocSignature:()=>Fy,isJSDocTag:()=>c6,isJSDocTemplateTag:()=>od,isJSDocThisTag:()=>Vfe,isJSDocThrowsTag:()=>F5e,isJSDocTypeAlias:()=>Kf,isJSDocTypeAssertion:()=>d8,isJSDocTypeExpression:()=>sT,isJSDocTypeLiteral:()=>i4,isJSDocTypeTag:()=>f8,isJSDocTypedefTag:()=>a4,isJSDocUnknownTag:()=>O5e,isJSDocUnknownType:()=>Jfe,isJSDocVariadicType:()=>SF,isJSXTagName:()=>v6,isJsonEqual:()=>rH,isJsonSourceFile:()=>Zf,isJsxAttribute:()=>Vd,isJsxAttributeLike:()=>_9,isJsxAttributeName:()=>Fue,isJsxAttributes:()=>v2,isJsxChild:()=>Aw,isJsxClosingElement:()=>h2,isJsxClosingFragment:()=>Lfe,isJsxElement:()=>_g,isJsxExpression:()=>l8,isJsxFragment:()=>y2,isJsxNamespacedName:()=>sd,isJsxOpeningElement:()=>zd,isJsxOpeningFragment:()=>gS,isJsxOpeningLikeElement:()=>U_,isJsxOpeningLikeElementTagName:()=>Phe,isJsxSelfClosingElement:()=>rT,isJsxSpreadAttribute:()=>hS,isJsxTagNameExpression:()=>ZC,isJsxText:()=>iS,isJumpStatementTarget:()=>k5,isKeyword:()=>su,isKeywordOrPunctuation:()=>G9,isKnownSymbol:()=>fD,isLabelName:()=>_Y,isLabelOfLabeledStatement:()=>lY,isLabeledStatement:()=>m2,isLateVisibilityPaintedStatement:()=>x9,isLeftHandSideExpression:()=>du,isLeftHandSideOfAssignment:()=>hAe,isLet:()=>C9,isLineBreak:()=>Yl,isLiteralComputedPropertyDeclarationName:()=>cD,isLiteralExpression:()=>Nb,isLiteralExpressionOfObject:()=>sW,isLiteralImportTypeNode:()=>hy,isLiteralKind:()=>XC,isLiteralLikeAccess:()=>V9,isLiteralLikeElementAccess:()=>Xw,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>yM,isLiteralTypeLikeExpression:()=>H5e,isLiteralTypeLiteral:()=>sle,isLiteralTypeNode:()=>Ay,isLocalName:()=>e0,isLogicalOperator:()=>j_e,isLogicalOrCoalescingAssignmentExpression:()=>Nq,isLogicalOrCoalescingAssignmentOperator:()=>x3,isLogicalOrCoalescingBinaryExpression:()=>TD,isLogicalOrCoalescingBinaryOperator:()=>bD,isMappedTypeNode:()=>i8,isMemberName:()=>Qm,isMetaProperty:()=>s8,isMethodDeclaration:()=>kc,isMethodOrAccessor:()=>i6,isMethodSignature:()=>ag,isMinusToken:()=>$H,isMissingDeclaration:()=>D5e,isModifier:()=>Zs,isModifierKind:()=>q0,isModifierLike:()=>wo,isModuleAugmentationExternal:()=>IW,isModuleBlock:()=>Jd,isModuleBody:()=>cle,isModuleDeclaration:()=>Ac,isModuleExportsAccessExpression:()=>eg,isModuleIdentifier:()=>eq,isModuleName:()=>spe,isModuleOrEnumDeclaration:()=>ww,isModuleReference:()=>ule,isModuleSpecifierLike:()=>LM,isModuleWithStringLiteralName:()=>T9,isNameOfFunctionDeclaration:()=>dY,isNameOfModuleDeclaration:()=>pY,isNamedClassElement:()=>Yce,isNamedDeclaration:()=>A_,isNamedEvaluation:()=>Pu,isNamedEvaluationSource:()=>uq,isNamedExportBindings:()=>nW,isNamedExports:()=>op,isNamedImportBindings:()=>pW,isNamedImports:()=>ih,isNamedImportsOrExports:()=>lO,isNamedTupleMember:()=>r8,isNamespaceBody:()=>NDe,isNamespaceExport:()=>lg,isNamespaceExportDeclaration:()=>lA,isNamespaceImport:()=>d1,isNamespaceReexportDeclaration:()=>Zle,isNewExpression:()=>d2,isNewExpressionTarget:()=>R8,isNightly:()=>gD,isNoSubstitutionTemplateLiteral:()=>sS,isNode:()=>wDe,isNodeArray:()=>$v,isNodeArrayMultiLine:()=>$_e,isNodeDescendantOf:()=>i2,isNodeKind:()=>bw,isNodeLikeSystem:()=>vV,isNodeModulesDirectory:()=>jU,isNodeWithPossibleHoistedDeclaration:()=>l_e,isNonContextualKeyword:()=>_q,isNonExportDefaultModifier:()=>_Ne,isNonGlobalAmbientModule:()=>PW,isNonGlobalDeclaration:()=>O1e,isNonNullAccess:()=>Oue,isNonNullChain:()=>n9,isNonNullExpression:()=>dS,isNonStaticMethodOrAccessorWithPrivateName:()=>Wme,isNotEmittedOrPartiallyEmittedNode:()=>ADe,isNotEmittedStatement:()=>nG,isNullishCoalesce:()=>tW,isNumber:()=>B0,isNumericLiteral:()=>Ou,isNumericLiteralName:()=>sg,isObjectBindingElementWithoutPropertyName:()=>M5,isObjectBindingOrAssignmentElement:()=>kw,isObjectBindingOrAssignmentPattern:()=>lW,isObjectBindingPattern:()=>rd,isObjectLiteralElement:()=>gW,isObjectLiteralElementLike:()=>H0,isObjectLiteralExpression:()=>ha,isObjectLiteralMethod:()=>kp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>A9,isObjectTypeDeclaration:()=>Xx,isOctalDigit:()=>UI,isOmittedExpression:()=>dl,isOptionalChain:()=>c_,isOptionalChainRoot:()=>HC,isOptionalDeclaration:()=>lH,isOptionalJSDocPropertyLikeTag:()=>RD,isOptionalTypeNode:()=>YH,isOuterExpression:()=>NF,isOutermostOptionalChain:()=>GC,isOverrideModifier:()=>Cfe,isPackedArrayLiteral:()=>sH,isParameter:()=>rs,isParameterDeclaration:()=>Ub,isParameterOrCatchClauseVariable:()=>aH,isParameterPropertyDeclaration:()=>Du,isParameterPropertyModifier:()=>QC,isParenthesizedExpression:()=>yu,isParenthesizedTypeNode:()=>_S,isParseTreeNode:()=>WC,isPartOfTypeNode:()=>Km,isPartOfTypeQuery:()=>B9,isPartiallyEmittedExpression:()=>vF,isPatternMatch:()=>gI,isPinnedComment:()=>v9,isPlainJsFile:()=>Pw,isPlusToken:()=>GH,isPossiblyTypeArgumentPosition:()=>N5,isPostfixUnaryExpression:()=>KH,isPrefixUnaryExpression:()=>Ny,isPrivateIdentifier:()=>Ei,isPrivateIdentifierClassElementDeclaration:()=>N_,isPrivateIdentifierPropertyAccessExpression:()=>n6,isPrivateIdentifierSymbol:()=>m_e,isProgramBundleEmitBuildInfo:()=>_0e,isProgramUptoDate:()=>PX,isPrologueDirective:()=>Sp,isPropertyAccessChain:()=>e9,isPropertyAccessEntityNameExpression:()=>SD,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>tle,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ele,isPropertyAssignment:()=>Ec,isPropertyDeclaration:()=>Fs,isPropertyName:()=>Jc,isPropertyNameLiteral:()=>Fd,isPropertySignature:()=>mf,isProtoSetter:()=>g_e,isPrototypeAccess:()=>Sy,isPrototypePropertyAssignment:()=>Zw,isPunctuation:()=>lq,isPushOrUnshiftIdentifier:()=>fq,isQualifiedName:()=>hu,isQuestionDotToken:()=>pF,isQuestionOrExclamationToken:()=>tpe,isQuestionOrPlusOrMinusToken:()=>ipe,isQuestionToken:()=>f1,isRawSourceMap:()=>Lme,isReadonlyKeyword:()=>Sfe,isReadonlyKeywordOrPlusOrMinusToken:()=>rpe,isRecognizedTripleSlashComment:()=>EW,isReferenceFileLocation:()=>b4,isReferencedFile:()=>By,isRegularExpressionLiteral:()=>qH,isRequireCall:()=>mu,isRequireVariableStatement:()=>ZW,isRestParameter:()=>Zm,isRestTypeNode:()=>ZH,isReturnStatement:()=>id,isReturnStatementWithFixablePromiseHandler:()=>_R,isRightSideOfAccessExpression:()=>J_e,isRightSideOfPropertyAccess:()=>k4,isRightSideOfQualifiedName:()=>Ohe,isRightSideOfQualifiedNameOrPropertyAccess:()=>k3,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>z_e,isRootedDiskPath:()=>Ad,isSameEntityName:()=>T6,isSatisfiesExpression:()=>T5e,isScopeMarker:()=>ale,isSemicolonClassElement:()=>Pfe,isSetAccessor:()=>G0,isSetAccessorDeclaration:()=>Fu,isShebangTrivia:()=>VU,isShorthandAmbientModuleSymbol:()=>n3,isShorthandPropertyAssignment:()=>nf,isSignedNumericLiteral:()=>Q9,isSimpleCopiableExpression:()=>k2,isSimpleInlineableExpression:()=>Ud,isSingleOrDoubleQuote:()=>qw,isSourceFile:()=>Bi,isSourceFileFromLibrary:()=>Q8,isSourceFileJS:()=>P_,isSourceFileNotJS:()=>YDe,isSourceFileNotJson:()=>QW,isSourceMapping:()=>Mme,isSpecialPropertyDeclaration:()=>n_e,isSpreadAssignment:()=>sh,isSpreadElement:()=>jd,isStatement:()=>Fi,isStatementButNotDeclaration:()=>Dw,isStatementOrBlock:()=>_le,isStatementWithLocals:()=>xle,isStatic:()=>Os,isStaticModifier:()=>oS,isString:()=>Gs,isStringAKeyword:()=>aAe,isStringANonContextualKeyword:()=>Ux,isStringAndEmptyAnonymousObjectIntersection:()=>Qhe,isStringDoubleQuoted:()=>z9,isStringLiteral:()=>fa,isStringLiteralLike:()=>Qa,isStringLiteralOrJsxExpression:()=>fle,isStringLiteralOrTemplate:()=>v1e,isStringOrNumericLiteralLike:()=>Of,isStringOrRegularExpressionOrTemplateLiteral:()=>CY,isStringTextContainingNode:()=>aW,isSuperCall:()=>m6,isSuperKeyword:()=>e8,isSuperOrSuperProperty:()=>QDe,isSuperProperty:()=>iu,isSupportedSourceFileName:()=>Tue,isSwitchStatement:()=>cA,isSyntaxList:()=>o4,isSyntheticExpression:()=>x5e,isSyntheticReference:()=>mS,isTagName:()=>uY,isTaggedTemplateExpression:()=>Kb,isTaggedTemplateTag:()=>Ahe,isTemplateExpression:()=>hF,isTemplateHead:()=>$6,isTemplateLiteral:()=>s6,isTemplateLiteralKind:()=>e1,isTemplateLiteralToken:()=>Hce,isTemplateLiteralTypeNode:()=>b5e,isTemplateLiteralTypeSpan:()=>Dfe,isTemplateMiddle:()=>yfe,isTemplateMiddleOrTemplateTail:()=>i9,isTemplateSpan:()=>o8,isTemplateTail:()=>HH,isTextWhiteSpaceLike:()=>i1e,isThis:()=>C4,isThisContainerOrFunctionBlock:()=>Xle,isThisIdentifier:()=>c2,isThisInTypeQuery:()=>Hx,isThisInitializedDeclaration:()=>F9,isThisInitializedObjectBindingExpression:()=>Yle,isThisProperty:()=>zw,isThisTypeNode:()=>gF,isThisTypeParameter:()=>W3,isThisTypePredicate:()=>XDe,isThrowStatement:()=>tG,isToken:()=>Ax,isTokenKind:()=>iW,isTraceEnabled:()=>n0,isTransientSymbol:()=>pm,isTrivia:()=>D6,isTryStatement:()=>g2,isTupleTypeNode:()=>Y6,isTypeAlias:()=>nD,isTypeAliasDeclaration:()=>Dp,isTypeAssertionExpression:()=>Afe,isTypeDeclaration:()=>V6,isTypeElement:()=>Ob,isTypeKeyword:()=>V8,isTypeKeywordToken:()=>NY,isTypeKeywordTokenOrIdentifier:()=>NM,isTypeLiteralNode:()=>ef,isTypeNode:()=>Ai,isTypeNodeKind:()=>Jq,isTypeOfExpression:()=>K6,isTypeOnlyExportDeclaration:()=>Gce,isTypeOnlyImportDeclaration:()=>s9,isTypeOnlyImportOrExportDeclaration:()=>Xv,isTypeOperatorNode:()=>uS,isTypeParameterDeclaration:()=>Go,isTypePredicateNode:()=>mF,isTypeQueryNode:()=>Q6,isTypeReferenceNode:()=>ap,isTypeReferenceType:()=>d9,isTypeUsableAsPropertyName:()=>ip,isUMDExportSymbol:()=>cO,isUnaryExpression:()=>uW,isUnaryExpressionWithWrite:()=>ile,isUnicodeIdentifierStart:()=>VI,isUnionTypeNode:()=>cS,isUnparsedNode:()=>rW,isUnparsedPrepend:()=>Mfe,isUnparsedSource:()=>iT,isUnparsedTextLike:()=>qce,isUrl:()=>Koe,isValidBigIntString:()=>kO,isValidESSymbolDeclaration:()=>Ule,isValidTypeOnlyAliasUseSite:()=>Ey,isValueSignatureDeclaration:()=>__e,isVarAwaitUsing:()=>Mw,isVarConst:()=>d6,isVarUsing:()=>Rw,isVariableDeclaration:()=>Ri,isVariableDeclarationInVariableStatement:()=>i3,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>r2,isVariableDeclarationInitializedToRequire:()=>YW,isVariableDeclarationList:()=>ml,isVariableLike:()=>h6,isVariableLikeOrAccessor:()=>zle,isVariableStatement:()=>ic,isVoidExpression:()=>eT,isWatchSet:()=>kAe,isWhileStatement:()=>k5e,isWhiteSpaceLike:()=>Gm,isWhiteSpaceSingleLine:()=>Nd,isWithStatement:()=>Ife,isWriteAccess:()=>A3,isWriteOnlyAccess:()=>oO,isYieldExpression:()=>yF,jsxModeNeedsExplicitImport:()=>iZ,keywordPart:()=>Ru,last:()=>ka,lastOrUndefined:()=>jo,length:()=>Nn,libMap:()=>WF,libs:()=>OA,lineBreakPart:()=>D4,linkNamePart:()=>u1e,linkPart:()=>zY,linkTextPart:()=>RM,listFiles:()=>sQ,loadModuleFromGlobalCache:()=>rme,loadWithModeAwareCache:()=>l5,makeIdentifierFromModuleName:()=>Nle,makeImport:()=>uh,makeImportIfNecessary:()=>r1e,makeStringLiteral:()=>OS,mangleScopedPackageName:()=>S8,map:()=>an,mapAllOrFail:()=>iV,mapDefined:()=>Hi,mapDefinedEntries:()=>Z7e,mapDefinedIterator:()=>O7,mapEntries:()=>eoe,mapIterator:()=>nV,mapOneOrMany:()=>D1e,mapToDisplayParts:()=>x1,matchFiles:()=>Qq,matchPatternOrExact:()=>Kq,matchedText:()=>voe,matchesExclude:()=>UF,maybeBind:()=>Hs,maybeSetLocalizedDiagnosticMessages:()=>iue,memoize:()=>wu,memoizeCached:()=>_oe,memoizeOne:()=>lm,memoizeWeak:()=>lwe,metadataHelper:()=>jO,min:()=>mV,minAndMax:()=>kue,missingFileModifiedTime:()=>zg,modifierToFlag:()=>$x,modifiersToFlags:()=>Ld,moduleOptionDeclaration:()=>GG,moduleResolutionIsEqualTo:()=>ble,moduleResolutionNameAndModeGetter:()=>M8,moduleResolutionOptionDeclarations:()=>HF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Zx,moduleResolutionUsesNodeModules:()=>IM,moduleSpecifiers:()=>S2,moveEmitHelpers:()=>_fe,moveRangeEnd:()=>sO,moveRangePastDecorators:()=>eh,moveRangePastModifiers:()=>Md,moveRangePos:()=>ky,moveSyntheticComments:()=>ofe,mutateMap:()=>M6,mutateMapSkippingNewValues:()=>Qg,needsParentheses:()=>jM,needsScopeMarker:()=>c9,newCaseClauseTracker:()=>eR,newPrivateEnvironment:()=>Gme,noEmitNotification:()=>t5,noEmitSubstitution:()=>A8,noTransformers:()=>fX,noTruncationMaximumTruncationLength:()=>AO,nodeCanBeDecorated:()=>M9,nodeHasName:()=>hw,nodeIsDecorated:()=>a3,nodeIsMissing:()=>_c,nodeIsPresent:()=>Qf,nodeIsSynthesized:()=>Do,nodeModuleNameResolver:()=>Jde,nodeModulesPathPart:()=>ah,nodeNextJsonConfigResolver:()=>zde,nodeOrChildIsDecorated:()=>Uw,nodeOverlapsWithStartEnd:()=>gY,nodePosToString:()=>jDe,nodeSeenTracker:()=>IS,nodeStartsNewLexicalEnvironment:()=>pq,nodeToDisplayParts:()=>PFe,noop:()=>co,noopFileWatcher:()=>NS,normalizePath:()=>ba,normalizeSlashes:()=>zl,not:()=>yI,notImplemented:()=>ks,notImplementedResolver:()=>jL,nullNodeConverters:()=>PH,nullParenthesizerRules:()=>NH,nullTransformationContext:()=>i0,objectAllocator:()=>Ol,operatorPart:()=>W8,optionDeclarations:()=>t0,optionMapToObject:()=>LG,optionsAffectingProgramStructure:()=>YG,optionsForBuild:()=>KG,optionsForWatch:()=>FA,optionsHaveChanges:()=>l6,optionsHaveModuleResolutionChanges:()=>mle,or:()=>Kp,orderedRemoveItem:()=>mI,orderedRemoveItemAt:()=>_y,outFile:()=>Ao,packageIdToPackageName:()=>g9,packageIdToString:()=>s1,padLeft:()=>Eb,padRight:()=>dwe,paramHelper:()=>JO,parameterIsThisKeyword:()=>o2,parameterNamePart:()=>o1e,parseBaseNodeFactory:()=>AG,parseBigInt:()=>Cue,parseBuildCommand:()=>DNe,parseCommandLine:()=>wNe,parseCommandLineWorker:()=>PG,parseConfigFileTextToJson:()=>FG,parseConfigFileWithSystem:()=>bOe,parseConfigHostFromCompilerHostLike:()=>$L,parseCustomTypeOption:()=>jF,parseIsolatedEntityName:()=>bS,parseIsolatedJSDocComment:()=>Dpe,parseJSDocTypeExpressionForTests:()=>TNe,parseJsonConfigFileContent:()=>BNe,parseJsonSourceFileConfigFileContent:()=>AA,parseJsonText:()=>kA,parseListTypeOption:()=>Jpe,parseNodeFactory:()=>Cm,parseNodeModuleFromPath:()=>zA,parsePackageName:()=>h$,parsePseudoBigInt:()=>j3,parseValidBigInt:()=>iH,patchWriteFileEnsuringDirectory:()=>Zoe,pathContainsNodeModules:()=>SS,pathIsAbsolute:()=>RC,pathIsBareSpecifier:()=>FU,pathIsRelative:()=>$u,patternText:()=>yoe,perfLogger:()=>Dd,performIncrementalCompilation:()=>xOe,performance:()=>zoe,plainJSErrors:()=>ZL,positionBelongsToNode:()=>hY,positionIsASICandidate:()=>UM,positionIsSynthesized:()=>Rd,positionsAreOnSameLine:()=>np,preProcessFile:()=>cye,probablyUsesSemicolons:()=>U5,processCommentPragmas:()=>wG,processPragmasIntoFields:()=>DG,processTaggedTemplateExpression:()=>K$,programContainsEsModules:()=>n1e,programContainsModules:()=>t1e,projectReferenceIsEqualTo:()=>xW,propKeyHelper:()=>KO,propertyNamePart:()=>c1e,pseudoBigIntToString:()=>u2,punctuationPart:()=>m_,pushIfUnique:()=>$f,quote:()=>G8,quotePreferenceFromString:()=>FY,rangeContainsPosition:()=>C5,rangeContainsPositionExclusive:()=>E5,rangeContainsRange:()=>yf,rangeContainsRangeExclusive:()=>Lhe,rangeContainsStartEnd:()=>w5,rangeEndIsOnSameLineAsRangeStart:()=>CD,rangeEndPositionsAreOnSameLine:()=>H_e,rangeEquals:()=>lV,rangeIsOnSingleLine:()=>Gb,rangeOfNode:()=>tH,rangeOfTypeParameters:()=>nH,rangeOverlapsWithStartEnd:()=>j8,rangeStartIsOnSameLineAsRangeEnd:()=>G_e,rangeStartPositionsAreOnSameLine:()=>aO,readBuilderProgram:()=>cM,readConfigFile:()=>EA,readHelper:()=>YO,readJson:()=>C3,readJsonConfigFile:()=>Wpe,readJsonOrUndefined:()=>Fq,realizeDiagnostics:()=>LK,reduceEachLeadingCommentRange:()=>ace,reduceEachTrailingCommentRange:()=>oce,reduceLeft:()=>E_,reduceLeftIterator:()=>Q7e,reducePathComponents:()=>wb,refactor:()=>JS,regExpEscape:()=>zAe,relativeComplement:()=>noe,removeAllComments:()=>XD,removeEmitHelper:()=>g5e,removeExtension:()=>OD,removeFileExtension:()=>gu,removeIgnoredPath:()=>eQ,removeMinAndVersionNumbers:()=>hoe,removeOptionality:()=>Hhe,removePrefix:()=>IC,removeSuffix:()=>qk,removeTrailingDirectorySeparator:()=>Uv,repeatString:()=>F5,replaceElement:()=>uV,resolutionExtensionIsTSOrJson:()=>FD,resolveConfigFileProjectName:()=>gQ,resolveJSModule:()=>Rde,resolveLibrary:()=>rL,resolveModuleName:()=>T8,resolveModuleNameFromCache:()=>mPe,resolvePackageNameToPackageJson:()=>lPe,resolvePath:()=>Xh,resolveProjectReferencePath:()=>L8,resolveTripleslashReference:()=>VL,resolveTypeReferenceDirective:()=>a$,resolvingEmptyArray:()=>DO,restHelper:()=>GO,returnFalse:()=>j0,returnNoopFileWatcher:()=>g5,returnTrue:()=>oy,returnUndefined:()=>cy,returnsPromise:()=>wZ,runInitializersHelper:()=>VO,sameFlatMap:()=>Kae,sameMap:()=>cl,sameMapping:()=>nIe,scanShebangTrivia:()=>UU,scanTokenAtPosition:()=>Ble,scanner:()=>g_,screenStartingMessageCodes:()=>oM,semanticDiagnosticsOptionDeclarations:()=>$G,serializeCompilerOptions:()=>RG,server:()=>Ehe,servicesVersion:()=>NK,setCommentRange:()=>Xc,setConfigFileInOptions:()=>jG,setConstantValue:()=>lfe,setEachParent:()=>J6,setEmitFlags:()=>Xn,setFunctionNameHelper:()=>eF,setGetSourceFileAsHashVersioned:()=>aM,setIdentifierAutoGenerate:()=>ZD,setIdentifierGeneratedImportReference:()=>pfe,setIdentifierTypeArguments:()=>nh,setInternalEmitFlags:()=>QD,setLocalizedDiagnosticMessages:()=>rue,setModuleDefaultHelper:()=>rF,setNodeFlags:()=>Due,setObjectAllocator:()=>nue,setOriginalNode:()=>or,setParent:()=>Ta,setParentRecursive:()=>_1,setPrivateIdentifier:()=>fT,setResolvedModule:()=>yle,setResolvedTypeReferenceDirective:()=>vle,setSnippetElement:()=>JH,setSourceMapRange:()=>Ca,setStackTraceLimit:()=>Uwe,setStartsOnNewLine:()=>LO,setSyntheticLeadingComments:()=>Dy,setSyntheticTrailingComments:()=>tS,setSys:()=>Zwe,setSysLog:()=>$oe,setTextRange:()=>Ke,setTextRangeEnd:()=>j6,setTextRangePos:()=>J3,setTextRangePosEnd:()=>Tm,setTextRangePosWidth:()=>z3,setTokenSourceMapRange:()=>afe,setTypeNode:()=>ufe,setUILocale:()=>doe,setValueDeclaration:()=>Kw,shouldAllowImportingTsExtension:()=>g4,shouldPreserveConstEnums:()=>Xb,shouldResolveJsRequire:()=>mO,shouldUseUriStyleNodeCoreModules:()=>ZM,showModuleSpecifier:()=>Z_e,signatureHasLiteralTypes:()=>P$,signatureHasRestParameter:()=>d_,signatureToDisplayParts:()=>VY,single:()=>_V,singleElementArray:()=>Cb,singleIterator:()=>K7e,singleOrMany:()=>cm,singleOrUndefined:()=>om,skipAlias:()=>au,skipAssertions:()=>V5e,skipConstraint:()=>PY,skipOuterExpressions:()=>nl,skipParentheses:()=>lo,skipPartiallyEmittedExpressions:()=>Tp,skipTrivia:()=>_a,skipTypeChecking:()=>B3,skipTypeParentheses:()=>sq,skipWhile:()=>Soe,sliceAfter:()=>eH,some:()=>dt,sort:()=>DC,sortAndDeduplicate:()=>M7,sortAndDeduplicateDiagnostics:()=>Zk,sourceFileAffectingCompilerOptions:()=>GF,sourceFileMayBeEmitted:()=>qx,sourceMapCommentRegExp:()=>kL,sourceMapCommentRegExpDontCareLineStart:()=>j$,spacePart:()=>sc,spanMap:()=>sV,spreadArrayHelper:()=>ZO,stableSort:()=>R0,startEndContainsRange:()=>mY,startEndOverlapsWithStartEnd:()=>vM,startOnNewLine:()=>O_,startTracing:()=>Voe,startsWith:()=>ns,startsWithDirectory:()=>RU,startsWithUnderscore:()=>rZ,startsWithUseStrict:()=>$fe,stringContains:()=>Xl,stringContainsAt:()=>I1e,stringToToken:()=>qv,stripQuotes:()=>Ep,supportedDeclarationExtensions:()=>UD,supportedJSExtensions:()=>DH,supportedJSExtensionsFlat:()=>q6,supportedLocaleDirectories:()=>vW,supportedTSExtensions:()=>W6,supportedTSExtensionsFlat:()=>wH,supportedTSImplementationExtensions:()=>WD,suppressLeadingAndTrailingTrivia:()=>Bu,suppressLeadingTrivia:()=>qY,suppressTrailingTrivia:()=>y1e,symbolEscapedNameNoDefault:()=>FM,symbolName:()=>bc,symbolNameNoDefault:()=>OM,symbolPart:()=>a1e,symbolToDisplayParts:()=>q8,syntaxMayBeASICandidate:()=>cZ,syntaxRequiresTrailingSemicolonOrASI:()=>VM,sys:()=>jl,sysLog:()=>Q7,tagNamesAreEquivalent:()=>My,takeWhile:()=>vI,targetOptionDeclaration:()=>MA,templateObjectHelper:()=>QO,testFormatSettings:()=>Dhe,textChangeRangeIsUnchanged:()=>Cce,textChangeRangeNewSpan:()=>UC,textChanges:()=>tr,textOrKeywordPart:()=>JY,textPart:()=>vf,textRangeContainsPositionInclusive:()=>mw,textSpanContainsPosition:()=>qU,textSpanContainsTextSpan:()=>Tce,textSpanEnd:()=>Zl,textSpanIntersection:()=>kce,textSpanIntersectsWith:()=>$I,textSpanIntersectsWithPosition:()=>Sce,textSpanIntersectsWithTextSpan:()=>dDe,textSpanIsEmpty:()=>bce,textSpanOverlap:()=>xce,textSpanOverlapsWith:()=>pDe,textSpansEqual:()=>w4,textToKeywordObj:()=>pw,timestamp:()=>Wo,toArray:()=>z7,toBuilderFileEmit:()=>m0e,toBuilderStateFileInfoForMultiEmit:()=>d0e,toEditorSettings:()=>dN,toFileNameLowerCase:()=>Zp,toLowerCase:()=>loe,toPath:()=>ho,toProgramEmitPending:()=>g0e,tokenIsIdentifierOrKeyword:()=>V_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>rce,tokenToString:()=>ia,trace:()=>$i,tracing:()=>li,tracingEnabled:()=>q7,transform:()=>ZBe,transformClassFields:()=>nge,transformDeclarations:()=>lX,transformECMAScriptModule:()=>oX,transformES2015:()=>hge,transformES2016:()=>mge,transformES2017:()=>age,transformES2018:()=>oge,transformES2019:()=>cge,transformES2020:()=>lge,transformES2021:()=>_ge,transformES5:()=>yge,transformESDecorators:()=>sge,transformESNext:()=>uge,transformGenerators:()=>vge,transformJsx:()=>pge,transformLegacyDecorators:()=>ige,transformModule:()=>aX,transformNamedEvaluation:()=>Lu,transformNodeModule:()=>xge,transformNodes:()=>n5,transformSystemModule:()=>Tge,transformTypeScript:()=>ege,transpile:()=>PLe,transpileModule:()=>yye,transpileOptionValueCompilerOptions:()=>ZG,trimString:()=>Jv,trimStringEnd:()=>Sx,trimStringStart:()=>OC,tryAddToSet:()=>Rv,tryAndIgnoreErrors:()=>GM,tryCast:()=>Hr,tryDirectoryExists:()=>HM,tryExtractTSExtension:()=>iO,tryFileExists:()=>qM,tryGetClassExtendingExpressionWithTypeArguments:()=>Pq,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Iq,tryGetDirectories:()=>WM,tryGetExtensionFromPath:()=>ig,tryGetImportFromModuleSpecifier:()=>tD,tryGetJSDocSatisfiesTypeNode:()=>wO,tryGetModuleNameFromFile:()=>gA,tryGetModuleSpecifierFromDeclaration:()=>_3,tryGetNativePerformanceHooks:()=>joe,tryGetPropertyAccessOrIdentifierToString:()=>kD,tryGetPropertyNameOfBindingOrAssignmentElement:()=>IF,tryGetSourceMappingURL:()=>Fme,tryGetTextOfPropertyName:()=>r3,tryIOAndConsumeErrors:()=>$M,tryParsePattern:()=>B6,tryParsePatterns:()=>xO,tryParseRawSourceMap:()=>R$,tryReadDirectory:()=>YY,tryReadFile:()=>wA,tryRemoveDirectoryPrefix:()=>Hq,tryRemoveExtension:()=>Sue,tryRemovePrefix:()=>yV,tryRemoveSuffix:()=>goe,typeAcquisitionDeclarations:()=>XF,typeAliasNamePart:()=>l1e,typeDirectiveIsEqualTo:()=>Tle,typeKeywords:()=>tR,typeParameterNamePart:()=>_1e,typeReferenceResolutionNameAndModeGetter:()=>f5,typeToDisplayParts:()=>j5,unchangedPollThresholds:()=>K7,unchangedTextChangeRange:()=>yW,unescapeLeadingUnderscores:()=>Oi,unmangleScopedPackageName:()=>uL,unorderedRemoveItem:()=>PC,unorderedRemoveItemAt:()=>gV,unreachableCodeIsError:()=>uue,unusedLabelIsError:()=>fue,unwrapInnermostStatementOfLabel:()=>HW,updateErrorForNoInputFiles:()=>JG,updateLanguageServiceSourceFile:()=>DK,updateMissingFilePathsWatch:()=>Jge,updatePackageJsonWatch:()=>J9e,updateResolutionField:()=>d4,updateSharedExtendedConfigFileWatcher:()=>yX,updateSourceFile:()=>EG,updateWatchingWildcardDirectories:()=>JL,usesExtensionsOnImports:()=>bue,usingSingleLineStringWriter:()=>KC,utf16EncodeAsString:()=>Yk,validateLocaleAndSetLanguage:()=>yDe,valuesHelper:()=>tF,version:()=>L0,versionMajorMinor:()=>wC,visitArray:()=>YA,visitCommaListElements:()=>ZA,visitEachChild:()=>fn,visitFunctionBody:()=>hf,visitIterationBody:()=>W_,visitLexicalEnvironment:()=>SL,visitNode:()=>Ue,visitNodes:()=>Dn,visitParameterList:()=>Nc,walkUpBindingElementsAndPatterns:()=>Kk,walkUpLexicalEnvironments:()=>Hme,walkUpOuterExpressions:()=>Xfe,walkUpParenthesizedExpressions:()=>$0,walkUpParenthesizedTypes:()=>aD,walkUpParenthesizedTypesAndGetParentAndChild:()=>f_e,whitespaceOrMapCommentRegExp:()=>CL,writeCommentRange:()=>O6,writeFile:()=>y3,writeFileEnsuringDirectories:()=>kq,zipToModeAwareCache:()=>u$,zipWith:()=>Kz});var O6e=Rt({"src/typescript/_namespaces/ts.ts"(){Ls(),pM(),Wr(),iJ()}}),oXe=A7({"src/typescript/typescript.ts"(e,t){O6e(),O6e(),typeof console<"u"&&(E.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=I6e}});return oXe()})();EC.exports&&(EC.exports=oI)})(Qae);const vot=hot(Qae.exports),Sot=yot({__proto__:null,default:vot},[Qae.exports]);export{Sot as t}; diff --git a/assets/typescript.d0c1d37a.js b/assets/typescript.326ce523.js similarity index 99% rename from assets/typescript.d0c1d37a.js rename to assets/typescript.326ce523.js index 538182deb..9a6e5b14c 100644 --- a/assets/typescript.d0c1d37a.js +++ b/assets/typescript.326ce523.js @@ -1,4 +1,4 @@ -import{g as II,c as Hl}from"./index.96709b2a.js";import{c as d0,r as Wp}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function wI(lm,Pn){for(var Si=0;SiVp[C_]})}}}return Object.freeze(Object.defineProperty(lm,Symbol.toStringTag,{value:"Module"}))}var RD={exports:{}};/*! ***************************************************************************** +import{g as II,c as Hl}from"./index.01cc2733.js";import{c as d0,r as Wp}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function wI(lm,Pn){for(var Si=0;SiVp[C_]})}}}return Object.freeze(Object.defineProperty(lm,Symbol.toStringTag,{value:"Module"}))}var RD={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/assets/typescript.1da25d1f.js b/assets/typescript.4d29f48d.js similarity index 99% rename from assets/typescript.1da25d1f.js rename to assets/typescript.4d29f48d.js index 761abe483..0e3a93374 100644 --- a/assets/typescript.1da25d1f.js +++ b/assets/typescript.4d29f48d.js @@ -1,4 +1,4 @@ -import{g as Ost,c as I7e}from"./index.96709b2a.js";import{c as O7e,r as nx}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function Fst(oC,wP){for(var tE=0;tErx[Rt]})}}}return Object.freeze(Object.defineProperty(oC,Symbol.toStringTag,{value:"Module"}))}var tae={exports:{}};/*! ***************************************************************************** +import{g as Ost,c as I7e}from"./index.01cc2733.js";import{c as O7e,r as nx}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function Fst(oC,wP){for(var tE=0;tErx[Rt]})}}}return Object.freeze(Object.defineProperty(oC,Symbol.toStringTag,{value:"Module"}))}var tae={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/assets/typescript.7decd24f.js b/assets/typescript.53d864e6.js similarity index 99% rename from assets/typescript.7decd24f.js rename to assets/typescript.53d864e6.js index 66ab6a419..60344a2a6 100644 --- a/assets/typescript.7decd24f.js +++ b/assets/typescript.53d864e6.js @@ -1,4 +1,4 @@ -import{g as fit,c as u8e}from"./index.96709b2a.js";import{c as f8e,r as OT}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function pit(V4,rP){for(var P7=0;P7FT[Lt]})}}}return Object.freeze(Object.defineProperty(V4,Symbol.toStringTag,{value:"Module"}))}var ese={exports:{}};/*! ***************************************************************************** +import{g as fit,c as u8e}from"./index.01cc2733.js";import{c as f8e,r as OT}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function pit(V4,rP){for(var P7=0;P7FT[Lt]})}}}return Object.freeze(Object.defineProperty(V4,Symbol.toStringTag,{value:"Module"}))}var ese={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/assets/typescript.62ec5a29.js b/assets/typescript.5bbad206.js similarity index 99% rename from assets/typescript.62ec5a29.js rename to assets/typescript.5bbad206.js index f6492626a..aaa9ae4aa 100644 --- a/assets/typescript.62ec5a29.js +++ b/assets/typescript.5bbad206.js @@ -1,4 +1,4 @@ -import{g as aI,c as Bl}from"./index.96709b2a.js";import{c as n0,r as Id}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function oI(rm,On){for(var Ci=0;Ciwd[v_]})}}}return Object.freeze(Object.defineProperty(rm,Symbol.toStringTag,{value:"Module"}))}var gD={exports:{}};/*! ***************************************************************************** +import{g as aI,c as Bl}from"./index.01cc2733.js";import{c as n0,r as Id}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function oI(rm,On){for(var Ci=0;Ciwd[v_]})}}}return Object.freeze(Object.defineProperty(rm,Symbol.toStringTag,{value:"Module"}))}var gD={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/assets/typescript.0eb66ece.js b/assets/typescript.684259df.js similarity index 99% rename from assets/typescript.0eb66ece.js rename to assets/typescript.684259df.js index 4952212de..7577b737b 100644 --- a/assets/typescript.0eb66ece.js +++ b/assets/typescript.684259df.js @@ -1,4 +1,4 @@ -import{g as n5,c as bf}from"./index.96709b2a.js";import{c as kh,r as fd}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function i5(Ig,Mn){for(var bi=0;bi_d[Xf]})}}}return Object.freeze(Object.defineProperty(Ig,Symbol.toStringTag,{value:"Module"}))}var w2={exports:{}};/*! ***************************************************************************** +import{g as n5,c as bf}from"./index.01cc2733.js";import{c as kh,r as fd}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function i5(Ig,Mn){for(var bi=0;bi_d[Xf]})}}}return Object.freeze(Object.defineProperty(Ig,Symbol.toStringTag,{value:"Module"}))}var w2={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/assets/typescript.df277397.js b/assets/typescript.aa417aa0.js similarity index 99% rename from assets/typescript.df277397.js rename to assets/typescript.aa417aa0.js index 69b613472..d416970a7 100644 --- a/assets/typescript.df277397.js +++ b/assets/typescript.aa417aa0.js @@ -1,4 +1,4 @@ -import{g as v7,c as lf}from"./index.96709b2a.js";import{c as F0,r as _g}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function y7(Im,Jn){for(var Ii=0;Iidg[L_]})}}}return Object.freeze(Object.defineProperty(Im,Symbol.toStringTag,{value:"Module"}))}var nb={exports:{}};/*! ***************************************************************************** +import{g as v7,c as lf}from"./index.01cc2733.js";import{c as F0,r as _g}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function y7(Im,Jn){for(var Ii=0;Iidg[L_]})}}}return Object.freeze(Object.defineProperty(Im,Symbol.toStringTag,{value:"Module"}))}var nb={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/assets/typescript.08b0037e.js b/assets/typescript.bbf6e997.js similarity index 99% rename from assets/typescript.08b0037e.js rename to assets/typescript.bbf6e997.js index 07b1926cf..026784bdf 100644 --- a/assets/typescript.08b0037e.js +++ b/assets/typescript.bbf6e997.js @@ -1,4 +1,4 @@ -import{g as a7,c as tf}from"./index.96709b2a.js";import{c as E0,r as tg}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function o7(xm,jn){for(var xi=0;xiag[P_]})}}}return Object.freeze(Object.defineProperty(xm,Symbol.toStringTag,{value:"Module"}))}var qD={exports:{}};/*! ***************************************************************************** +import{g as a7,c as tf}from"./index.01cc2733.js";import{c as E0,r as tg}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function o7(xm,jn){for(var xi=0;xiag[P_]})}}}return Object.freeze(Object.defineProperty(xm,Symbol.toStringTag,{value:"Module"}))}var qD={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/assets/typescript.f4da1101.js b/assets/typescript.bfdd8171.js similarity index 99% rename from assets/typescript.f4da1101.js rename to assets/typescript.bfdd8171.js index adcce648d..d4fc975c7 100644 --- a/assets/typescript.f4da1101.js +++ b/assets/typescript.bfdd8171.js @@ -1,4 +1,4 @@ -import{g as gP,c as cl}from"./index.96709b2a.js";import{c as rh,r as Qp}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function mP(fg,Ln){for(var Ci=0;CiXp[Ml]})}}}return Object.freeze(Object.defineProperty(fg,Symbol.toStringTag,{value:"Module"}))}var o2={exports:{}};/*! ***************************************************************************** +import{g as gP,c as cl}from"./index.01cc2733.js";import{c as rh,r as Qp}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function mP(fg,Ln){for(var Ci=0;CiXp[Ml]})}}}return Object.freeze(Object.defineProperty(fg,Symbol.toStringTag,{value:"Module"}))}var o2={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/assets/typescript.3ceb0618.js b/assets/typescript.fac4ef32.js similarity index 99% rename from assets/typescript.3ceb0618.js rename to assets/typescript.fac4ef32.js index 17fd3153a..2b4ecbb0f 100644 --- a/assets/typescript.3ceb0618.js +++ b/assets/typescript.fac4ef32.js @@ -1,4 +1,4 @@ -import{g as Z5,c as Lf}from"./index.96709b2a.js";import{c as Qh,r as Nd}from"./___vite-browser-external_commonjs-proxy.832ddc27.js";function $5(Qg,Rn){for(var Ei=0;EiPd[d_]})}}}return Object.freeze(Object.defineProperty(Qg,Symbol.toStringTag,{value:"Module"}))}var sD={exports:{}};/*! ***************************************************************************** +import{g as Z5,c as Lf}from"./index.01cc2733.js";import{c as Qh,r as Nd}from"./___vite-browser-external_commonjs-proxy.8e88a877.js";function $5(Qg,Rn){for(var Ei=0;EiPd[d_]})}}}return Object.freeze(Object.defineProperty(Qg,Symbol.toStringTag,{value:"Module"}))}var sD={exports:{}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/index.html b/index.html index dfc9d0c08..b4a88db6f 100644 --- a/index.html +++ b/index.html @@ -43,7 +43,7 @@ TypeScript AST Viewer - +