var ote=(R=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(R,{get:(M,ee)=>(typeof require<"u"?require:M)[ee]}):R)(function(R){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+R+'" is not supported')});var Ugt=(R,M)=>()=>(R&&(M=R(R=0)),M);var pyt={};var U4e=Ugt(()=>{define("vs/language/typescript/tsWorker",["require"],R=>{"use strict";var M=(()=>{var ee=Object.defineProperty,le=Object.getOwnPropertyDescriptor,Ie=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,ft=(th,Ni)=>{for(var bt in Ni)ee(th,bt,{get:Ni[bt],enumerable:!0})},Mt=(th,Ni,bt,Cs)=>{if(Ni&&typeof Ni=="object"||typeof Ni=="function")for(let xa of Ie(Ni))!Oe.call(th,xa)&&xa!==bt&&ee(th,xa,{get:()=>Ni[xa],enumerable:!(Cs=le(Ni,xa))||Cs.enumerable});return th},Yt=th=>Mt(ee({},"__esModule",{value:!0}),th),qt={};ft(qt,{TypeScriptWorker:()=>QS,create:()=>yL});var vr={};ft(vr,{EndOfLineState:()=>Us,IndentStyle:()=>Fc,ScriptKind:()=>Nc,ScriptTarget:()=>$S,TokenClass:()=>yx,createClassifier:()=>jo,createLanguageService:()=>_o,displayPartsToString:()=>Fa,flattenDiagnosticMessageText:()=>yl,typescript:()=>Cl});var _i=void 0,ti={exports:{}},Dr=(()=>{var th=Object.defineProperty,Ni=Object.getOwnPropertyNames,bt=(e,t)=>function(){return e&&(t=(0,e[Ni(e)[0]])(e=0)),t},Cs=(e,t)=>function(){return t||(0,e[Ni(e)[0]])((t={exports:{}}).exports,t),t.exports},xa=(e,t)=>{for(var r in t)th(e,r,{get:t[r],enumerable:!0})},g_,Jp,xG,Aze=bt({"src/compiler/corePublic.ts"(){"use strict";g_="5.4",Jp="5.4.5",xG=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(xG||{})}});function Nn(e){return e?e.length:0}function gn(e,t){if(e)for(let r=0;r=0;r--){let i=t(e[r],r);if(i)return i}}function Wl(e,t){if(e!==void 0)for(let r=0;r=0;i--){let o=e[i];if(t(o,i))return o}}function Kl(e,t,r){if(e===void 0)return-1;for(let i=r??0;i=0;i--)if(t(e[i],i))return i;return-1}function aEe(e,t){for(let r=0;rr(i,t[o]))}function Ute(e,t,r){for(let i=r||0;i{let s=t(o,i);if(s!==void 0){let[l,d]=s;l!==void 0&&d!==void 0&&r.set(l,d)}}),r}function WC(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function Kb(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Jte(e){yield e}function MG(e,t,r){let i;if(e){i=[];let o=e.length,s,l,d=0,p=0;for(;d{let[s,l]=t(o,i);r.set(s,l)}),r}function gt(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function LG(e,t,r){let i;for(let o=0;oe[l])}function Rze(e,t){let r=[];for(let i of e)yf(r,i,t);return r}function m0(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?xze(e,t,r):Rze(e,t)}function Dze(e,t){if(e.length===0)return Xe;let r=e[0],i=[r];for(let o=1;o0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Gm(e,t,r=Ty){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&x.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;ol&&x.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function Tn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function vx(e,t){return e===void 0?t:t===void 0?e:To(e)?To(t)?Eo(e,t):Tn(e,t):To(t)?Tn(t,e):[e,t]}function Yte(e,t){return t<0?e.length+t:t}function Hr(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:Yte(t,r),i=i===void 0?t.length:Yte(t,i);for(let o=r;or(e[i],e[o])||Zs(i,o))}function ZS(e,t){return e.length===0?e:e.slice().sort(t)}function*wG(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function vy(e,t){let r=EL(e);return sEe(e,r,t),r.map(i=>e[i])}function OG(e,t,r,i){for(;r>1),p=r(e[d],d);switch(i(p,t)){case-1:s=d+1;break;case 0:return d;case 1:l=d-1;break}}return~s}function tu(e,t,r,i,o){if(e&&e.length>0){let s=e.length;if(s>0){let l=i===void 0||i<0?0:i,d=o===void 0||l+o>s-1?s-1:l+o,p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=d;)p=t(p,e[l],l),l++;return p}}return r}function Ss(e,t){return Sv.call(e,t)}function _W(e,t){return Sv.call(e,t)?e[t]:void 0}function Vh(e){let t=[];for(let r in e)Sv.call(e,r)&&t.push(r);return t}function lEe(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let i of r)yf(t,i)}while(e=Object.getPrototypeOf(e));return t}function cI(e){let t=[];for(let r in e)Sv.call(e,r)&&t.push(e[r]);return t}function $te(e,t){let r=new Array(e);for(let i=0;i100&&r>t.length>>1){let d=t.length-r;t.copyWithin(0,r),t.length=d,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function VG(e,t){let r=new Map,i=0;function*o(){for(let l of r.values())To(l)?yield*l:yield l}let s={has(l){let d=e(l);if(!r.has(d))return!1;let p=r.get(d);if(!To(p))return t(p,l);for(let h of p)if(t(h,l))return!0;return!1},add(l){let d=e(l);if(r.has(d)){let p=r.get(d);if(To(p))Bo(p,l,t)||(p.push(l),i++);else{let h=p;t(h,l)||(r.set(d,[h,l]),i++)}}else r.set(d,l),i++;return this},delete(l){let d=e(l);if(!r.has(d))return!1;let p=r.get(d);if(To(p)){for(let h=0;ho(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function To(e){return Array.isArray(e)}function dI(e){return To(e)?e:[e]}function No(e){return typeof e=="string"}function Ey(e){return typeof e=="number"}function ri(e,t){return e!==void 0&&t(e)?e:void 0}function na(e,t){return e!==void 0&&t(e)?e:x.fail(`Invalid cast. The supplied value ${e} did not pass the test '${x.getFunctionName(t)}'.`)}function qa(e){}function Vm(){return!1}function Sy(){return!0}function Jb(){}function Qs(e){return e}function ene(e){return e.toLowerCase()}function ih(e){return pne.test(e)?e.replace(pne,ene):e}function Ho(){throw new Error("Not implemented")}function vu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function oh(e){let t=new Map;return r=>{let i=`${typeof r}:${r}`,o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function cEe(e){let 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 tne(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 dEe(e,t,r,i,o){if(o){let s=[];for(let l=0;ltu(s,(d,p)=>p(d),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Ty(e,t){return e===t}function qb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function eT(e,t){return Ty(e,t)}function uEe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function vW(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function nne(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Vd(e,t){return uEe(e,t)}function Ex(e){return e?vW:Vd}function rne(){return $G}function ine(e){$G!==e&&($G=e,fne=void 0)}function IL(e,t){return(fne||(fne=mEe($G)))(e,t)}function one(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function bv(e,t){return Zs(e?1:0,t?1:0)}function GC(e,t,r){let i=Math.max(2,Math.floor(e.length*.34)),o=Math.floor(e.length*.4)+1,s;for(let l of t){let d=r(l);if(d!==void 0&&Math.abs(d.length-e.length)<=i){if(d===e||d.length<3&&d.toLowerCase()!==e.toLowerCase())continue;let p=Pze(e,d,o-.1);if(p===void 0)continue;x.assert(pr?d-r:1),m=Math.floor(t.length>r+d?r+d:t.length);o[0]=d;let y=d;for(let S=1;Sr)return;let E=i;i=o,o=E}let l=i[t.length];return l>r?void 0:l}function El(e,t,r){let i=e.length-t.length;return i>=0&&(r?qb(e.slice(i),t):e.indexOf(t,i)===i)}function Sx(e,t){return El(e,t)?e.slice(0,e.length-t.length):e}function ane(e,t){return El(e,t)?e.slice(0,e.length-t.length):void 0}function UG(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 Tx(e,t){for(let r=0;rr===t)}function Mze(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function ao(e,t,r){return r?qb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function VC(e,t){return ao(e,t)?e.substr(t.length):e}function JG(e,t,r=Qs){return ao(r(e),r(t))?e.substring(t.length):void 0}function bW({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&ao(r,e)&&El(r,t)}function EW(e,t){return r=>e(r)&&t(r)}function jm(...e){return(...t)=>{let r;for(let i of e)if(r=i(...t),r)return r;return r}}function SW(e){return(...t)=>!e(...t)}function pEe(e){}function pI(e){return e===void 0?void 0:[e]}function TW(e,t,r,i,o,s){s=s||qa;let l=0,d=0,p=e.length,h=t.length,m=!1;for(;l(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(XG||{}),Ay=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=Yte(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(YG||{}),mEe=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;let s=o(r,i);return s<0?-1:s>0?1:0}function t(r){let i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),QG,x,kze=bt({"src/compiler/debug.ts"(){"use strict";ea(),ea(),QG=(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))(QG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(on){return e.currentLogLevel<=on}e.shouldLog=r;function i(on,Ye){e.loggingHost&&r(on)&&e.loggingHost.log(on,Ye)}function o(on){i(3,on)}e.log=o,(on=>{function Ye(yi){i(1,yi)}on.error=Ye;function Ot(yi){i(2,yi)}on.warn=Ot;function In(yi){i(3,yi)}on.log=In;function si(yi){i(4,yi)}on.trace=si})(o=e.log||(e.log={}));let s={};function l(){return t}e.getAssertionLevel=l;function d(on){let Ye=t;if(t=on,on>Ye)for(let Ot of Vh(s)){let In=s[Ot];In!==void 0&&e[Ot]!==In.assertion&&on>=In.level&&(e[Ot]=In,s[Ot]=void 0)}}e.setAssertionLevel=d;function p(on){return t>=on}e.shouldAssert=p;function h(on,Ye){return p(on)?!0:(s[Ye]={level:on,assertion:e[Ye]},e[Ye]=qa,!1)}function m(on,Ye){let Ot=new Error(on?`Debug Failure. ${on}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Ot,Ye||m),Ot}e.fail=m;function y(on,Ye,Ot){return m(`${Ye||"Unexpected node."}\r Node ${he(on.kind)} was unexpected.`,Ot||y)}e.failBadSyntaxKind=y;function E(on,Ye,Ot,In){on||(Ye=Ye?`False expression: ${Ye}`:"False expression.",Ot&&(Ye+=`\r Verbose Debug Information: `+(typeof Ot=="string"?Ot:Ot())),m(Ye,In||E))}e.assert=E;function S(on,Ye,Ot,In,si){if(on!==Ye){let yi=Ot?In?`${Ot} ${In}`:Ot:"";m(`Expected ${on} === ${Ye}. ${yi}`,si||S)}}e.assertEqual=S;function A(on,Ye,Ot,In){on>=Ye&&m(`Expected ${on} < ${Ye}. ${Ot||""}`,In||A)}e.assertLessThan=A;function N(on,Ye,Ot){on>Ye&&m(`Expected ${on} <= ${Ye}`,Ot||N)}e.assertLessThanOrEqual=N;function D(on,Ye,Ot){on= ${Ye}`,Ot||D)}e.assertGreaterThanOrEqual=D;function w(on,Ye,Ot){on==null&&m(Ye,Ot||w)}e.assertIsDefined=w;function j(on,Ye,Ot){return w(on,Ye,Ot||j),on}e.checkDefined=j;function K(on,Ye,Ot){for(let In of on)w(In,Ye,Ot||K)}e.assertEachIsDefined=K;function Y(on,Ye,Ot){return K(on,Ye,Ot||Y),on}e.checkEachDefined=Y;function B(on,Ye="Illegal value:",Ot){let In=typeof on=="object"&&Ss(on,"kind")&&Ss(on,"pos")?"SyntaxKind: "+he(on.kind):JSON.stringify(on);return m(`${Ye} ${In}`,Ot||B)}e.assertNever=B;function ce(on,Ye,Ot,In){h(1,"assertEachNode")&&E(Ye===void 0||oo(on,Ye),Ot||"Unexpected node.",()=>`Node array did not pass test '${re(Ye)}'.`,In||ce)}e.assertEachNode=ce;function z(on,Ye,Ot,In){h(1,"assertNode")&&E(on!==void 0&&(Ye===void 0||Ye(on)),Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re(Ye)}'.`,In||z)}e.assertNode=z;function Z(on,Ye,Ot,In){h(1,"assertNotNode")&&E(on===void 0||Ye===void 0||!Ye(on),Ot||"Unexpected node.",()=>`Node ${he(on.kind)} should not have passed test '${re(Ye)}'.`,In||Z)}e.assertNotNode=Z;function me(on,Ye,Ot,In){h(1,"assertOptionalNode")&&E(Ye===void 0||on===void 0||Ye(on),Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re(Ye)}'.`,In||me)}e.assertOptionalNode=me;function ge(on,Ye,Ot,In){h(1,"assertOptionalToken")&&E(Ye===void 0||on===void 0||on.kind===Ye,Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} was not a '${he(Ye)}' token.`,In||ge)}e.assertOptionalToken=ge;function q(on,Ye,Ot){h(1,"assertMissingNode")&&E(on===void 0,Ye||"Unexpected node.",()=>`Node ${he(on.kind)} was unexpected'.`,Ot||q)}e.assertMissingNode=q;function J(on){}e.type=J;function re(on){if(typeof on!="function")return"";if(Ss(on,"name"))return on.name;{let Ye=Function.prototype.toString.call(on),Ot=/^function\s+([\w$]+)\s*\(/.exec(Ye);return Ot?Ot[1]:""}}e.getFunctionName=re;function pe(on){return`{ name: ${Vi(on.escapedName)}; flags: ${Et(on.flags)}; declarations: ${mn(on.declarations,Ye=>he(Ye.kind))} }`}e.formatSymbol=pe;function xe(on=0,Ye,Ot){let In=ne(Ye);if(on===0)return In.length>0&&In[0][0]===0?In[0][1]:"0";if(Ot){let si=[],yi=on;for(let[$i,Io]of In){if($i>on)break;$i!==0&&$i&on&&(si.push(Io),yi&=~$i)}if(yi===0)return si.join("|")}else for(let[si,yi]of In)if(si===on)return yi;return on.toString()}e.formatEnum=xe;let fe=new Map;function ne(on){let Ye=fe.get(on);if(Ye)return Ye;let Ot=[];for(let si in on){let yi=on[si];typeof yi=="number"&&Ot.push([yi,si])}let In=vy(Ot,(si,yi)=>Zs(si[0],yi[0]));return fe.set(on,In),In}function he(on){return xe(on,RW,!1)}e.formatSyntaxKind=he;function Ce(on){return xe(on,BW,!1)}e.formatSnippetKind=Ce;function Ge(on){return xe(on,FW,!1)}e.formatScriptKind=Ge;function ve(on){return xe(on,DW,!0)}e.formatNodeFlags=ve;function Ae(on){return xe(on,CW,!0)}e.formatModifierFlags=Ae;function De(on){return xe(on,zW,!0)}e.formatTransformFlags=De;function Le(on){return xe(on,GW,!0)}e.formatEmitFlags=Le;function Et(on){return xe(on,kW,!0)}e.formatSymbolFlags=Et;function be(on){return xe(on,wW,!0)}e.formatTypeFlags=be;function ze(on){return xe(on,WW,!0)}e.formatSignatureFlags=ze;function tt(on){return xe(on,OW,!0)}e.formatObjectFlags=tt;function Wt(on){return xe(on,CL,!0)}e.formatFlowFlags=Wt;function _t(on){return xe(on,NW,!0)}e.formatRelationComparisonResult=_t;function Je(on){return xe(on,P3,!0)}e.formatCheckMode=Je;function pt(on){return xe(on,M3,!0)}e.formatSignatureCheckMode=pt;function Zt(on){return xe(on,N3,!0)}e.formatTypeFacts=Zt;let en=!1,Dn;function Kn(on){"__debugFlowFlags"in on||Object.defineProperties(on,{__tsDebuggerDisplay:{value(){let Ye=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",Ot=this.flags&-2048;return`${Ye}${Ot?` (${Wt(Ot)})`:""}`}},__debugFlowFlags:{get(){return xe(this.flags,CL,!0)}},__debugToString:{value(){return Er(this)}}})}function pn(on){en&&(typeof Object.setPrototypeOf=="function"?(Dn||(Dn=Object.create(Object.prototype),Kn(Dn)),Object.setPrototypeOf(on,Dn)):Kn(on))}e.attachFlowNodeDebugInfo=pn;let Xt;function Kt(on){"__tsDebuggerDisplay"in on||Object.defineProperties(on,{__tsDebuggerDisplay:{value(Ye){return Ye=String(Ye).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Ye}`}}})}function hi(on){en&&(typeof Object.setPrototypeOf=="function"?(Xt||(Xt=Object.create(Array.prototype),Kt(Xt)),Object.setPrototypeOf(on,Xt)):Kt(on))}e.attachNodeArrayDebugInfo=hi;function uo(){if(en)return;let on=new WeakMap,Ye=new WeakMap;Object.defineProperties(sd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let In=this.flags&33554432?"TransientSymbol":"Symbol",si=this.flags&-33554433;return`${In} '${vl(this)}'${si?` (${Et(si)})`:""}`}},__debugFlags:{get(){return Et(this.flags)}}}),Object.defineProperties(sd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let In=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`: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&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",si=this.flags&524288?this.objectFlags&-1344:0;return`${In}${this.symbol?` '${vl(this.symbol)}'`:""}${si?` (${tt(si)})`:""}`}},__debugFlags:{get(){return be(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?tt(this.objectFlags):""}},__debugTypeToString:{value(){let In=on.get(this);return In===void 0&&(In=this.checker.typeToString(this),on.set(this,In)),In}}}),Object.defineProperties(sd.getSignatureConstructor().prototype,{__debugFlags:{get(){return ze(this.flags)}},__debugSignatureToString:{value(){var In;return(In=this.checker)==null?void 0:In.signatureToString(this)}}});let Ot=[sd.getNodeConstructor(),sd.getIdentifierConstructor(),sd.getTokenConstructor(),sd.getSourceFileConstructor()];for(let In of Ot)Ss(In.prototype,"__debugKind")||Object.defineProperties(In.prototype,{__tsDebuggerDisplay:{value(){return`${rl(this)?"GeneratedIdentifier":Fe(this)?`Identifier '${gr(this)}'`:Ki(this)?`PrivateIdentifier '${gr(this)}'`:Da(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:mp(this)?`NumericLiteral ${this.text}`:P4(this)?`BigIntLiteral ${this.text}n`:fl(this)?"TypeParameterDeclaration":Ao(this)?"ParameterDeclaration":Pl(this)?"ConstructorDeclaration":Qp(this)?"GetAccessorDeclaration":hp(this)?"SetAccessorDeclaration":XI(this)?"CallSignatureDeclaration":Mk(this)?"ConstructSignatureDeclaration":G0(this)?"IndexSignatureDeclaration":Lk(this)?"TypePredicateNode":If(this)?"TypeReferenceNode":hh(this)?"FunctionTypeNode":RR(this)?"ConstructorTypeNode":YI(this)?"TypeQueryNode":gp(this)?"TypeLiteralNode":kk(this)?"ArrayTypeNode":$I(this)?"TupleTypeNode":O4(this)?"OptionalTypeNode":W4(this)?"RestTypeNode":Hv(this)?"UnionTypeNode":QI(this)?"IntersectionTypeNode":ZI(this)?"ConditionalTypeNode":CT(this)?"InferTypeNode":NT(this)?"ParenthesizedTypeNode":wk(this)?"ThisTypeNode":PT(this)?"TypeOperatorNode":MT(this)?"IndexedAccessTypeNode":CR(this)?"MappedTypeNode":Kv(this)?"LiteralTypeNode":DR(this)?"NamedTupleMember":rg(this)?"ImportTypeNode":he(this.kind)}${this.flags?` (${ve(this.flags)})`:""}`}},__debugKind:{get(){return he(this.kind)}},__debugNodeFlags:{get(){return ve(this.flags)}},__debugModifierFlags:{get(){return Ae(Bie(this))}},__debugTransformFlags:{get(){return De(this.transformFlags)}},__debugIsParseTreeNode:{get(){return ZC(this)}},__debugEmitFlags:{get(){return Le(za(this))}},__debugGetText:{value(si){if(Ks(this))return"";let yi=Ye.get(this);if(yi===void 0){let $i=Do(this),Io=$i&&Gn($i);yi=Io?S0(Io,$i,si):"",Ye.set(this,yi)}return yi}}});en=!0}e.enableDebugInfo=uo;function Li(on){let Ye=on&7,Ot=Ye===0?"in out":Ye===3?"[bivariant]":Ye===2?"in":Ye===1?"out":Ye===4?"[independent]":"";return on&8?Ot+=" (unmeasurable)":on&16&&(Ot+=" (unreliable)"),Ot}e.formatVariance=Li;class So{__debugToString(){var Ye;switch(this.kind){case 3:return((Ye=this.debugInfo)==null?void 0:Ye.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return RG(this.sources,this.targets||mn(this.sources,()=>"any"),(Ot,In)=>`${Ot.__debugTypeToString()} -> ${typeof In=="string"?In:In.__debugTypeToString()}`).join(", ");case 2:return RG(this.sources,this.targets,(Ot,In)=>`${Ot.__debugTypeToString()} -> ${In().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return B(this)}}}e.DebugTypeMapper=So;function Qn(on){return e.isDebugging?Object.setPrototypeOf(on,So.prototype):on}e.attachDebugPrototypeIfDebug=Qn;function Ur(on){return console.log(Er(on))}e.printControlFlowGraph=Ur;function Er(on){let Ye=-1;function Ot(ie){return ie.id||(ie.id=Ye,Ye--),ie.id}let In;(ie=>{ie.lr="\u2500",ie.ud="\u2502",ie.dr="\u256D",ie.dl="\u256E",ie.ul="\u256F",ie.ur="\u2570",ie.udr="\u251C",ie.udl="\u2524",ie.dlr="\u252C",ie.ulr="\u2534",ie.udlr="\u256B"})(In||(In={}));let si;(ie=>{ie[ie.None=0]="None",ie[ie.Up=1]="Up",ie[ie.Down=2]="Down",ie[ie.Left=4]="Left",ie[ie.Right=8]="Right",ie[ie.UpDown=3]="UpDown",ie[ie.LeftRight=12]="LeftRight",ie[ie.UpLeft=5]="UpLeft",ie[ie.UpRight=9]="UpRight",ie[ie.DownLeft=6]="DownLeft",ie[ie.DownRight=10]="DownRight",ie[ie.UpDownLeft=7]="UpDownLeft",ie[ie.UpDownRight=11]="UpDownRight",ie[ie.UpLeftRight=13]="UpLeftRight",ie[ie.DownLeftRight=14]="DownLeftRight",ie[ie.UpDownLeftRight=15]="UpDownLeftRight",ie[ie.NoChildren=16]="NoChildren"})(si||(si={}));let yi=2032,$i=882,Io=Object.create(null),ua=[],Ba=[],vn=G(on,new Set);for(let ie of ua)ie.text=un(ie.flowNode,ie.circular),Tt(ie);let kn=He(vn),Be=ut(kn);return Ft(vn,0),U();function ct(ie){return!!(ie.flags&128)}function lt(ie){return!!(ie.flags&12)&&!!ie.antecedents}function Rt(ie){return!!(ie.flags&yi)}function ae(ie){return!!(ie.flags&$i)}function ke(ie){let H=[];for(let ue of ie.edges)ue.source===ie&&H.push(ue.target);return H}function st(ie){let H=[];for(let ue of ie.edges)ue.target===ie&&H.push(ue.source);return H}function G(ie,H){let ue=Ot(ie),We=Io[ue];if(We&&H.has(ie))return We.circular=!0,We={id:-1,flowNode:ie,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},ua.push(We),We;if(H.add(ie),!We)if(Io[ue]=We={id:ue,flowNode:ie,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},ua.push(We),lt(ie))for(let Ne of ie.antecedents)et(We,Ne,H);else Rt(ie)&&et(We,ie.antecedent,H);return H.delete(ie),We}function et(ie,H,ue){let We=G(H,ue),Ne={source:ie,target:We};Ba.push(Ne),ie.edges.push(Ne),We.edges.push(Ne)}function Tt(ie){if(ie.level!==-1)return ie.level;let H=0;for(let ue of st(ie))H=Math.max(H,Tt(ue)+1);return ie.level=H}function He(ie){let H=0;for(let ue of ke(ie))H=Math.max(H,He(ue));return H+1}function ut(ie){let H=Nt(Array(ie),0);for(let ue of ua)H[ue.level]=Math.max(H[ue.level],ue.text.length);return H}function Ft(ie,H){if(ie.lane===-1){ie.lane=H,ie.endLane=H;let ue=ke(ie);for(let We=0;We0&&H++;let Ne=ue[We];Ft(Ne,H),Ne.endLane>ie.endLane&&(H=Ne.endLane)}ie.endLane=H}}function hn(ie){if(ie&2)return"Start";if(ie&4)return"Branch";if(ie&8)return"Loop";if(ie&16)return"Assignment";if(ie&32)return"True";if(ie&64)return"False";if(ie&128)return"SwitchClause";if(ie&256)return"ArrayMutation";if(ie&512)return"Call";if(ie&1024)return"ReduceLabel";if(ie&1)return"Unreachable";throw new Error}function dn(ie){let H=Gn(ie);return S0(H,ie,!1)}function un(ie,H){let ue=hn(ie.flags);if(H&&(ue=`${ue}#${Ot(ie)}`),ae(ie))ie.node&&(ue+=` (${dn(ie.node)})`);else if(ct(ie)){let We=[];for(let Ne=ie.clauseStart;NeMath.max(Dt,Ut.lane),0)+1,ue=Nt(Array(H),""),We=Be.map(()=>Array(H)),Ne=Be.map(()=>Nt(Array(H),0));for(let Dt of ua){We[Dt.level][Dt.lane]=Dt;let Ut=ke(Dt);for(let wn=0;wn0&&(gi|=1),wn0&&(gi|=1),wn0?Ne[Dt-1][Ut]:0,wn=Ut>0?Ne[Dt][Ut-1]:0,Bn=Ne[Dt][Ut];Bn||(En&8&&(Bn|=12),wn&2&&(Bn|=3),Ne[Dt][Ut]=Bn)}for(let Dt=0;Dt0?ie.repeat(H):"";let ue="";for(;ue.length=",i.version)),jf(o.major)||r.push(jf(o.minor)?ah("<",o.version.increment("major")):jf(o.patch)?ah("<",o.version.increment("minor")):ah("<=",o.version)),!0):!1}function Wze(e,t,r){let i=mne(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:d}=i;if(jf(s))(e==="<"||e===">")&&r.push(ah("<",fm.zero));else switch(e){case"~":r.push(ah(">=",o)),r.push(ah("<",o.increment(jf(l)?"major":"minor")));break;case"^":r.push(ah(">=",o)),r.push(ah("<",o.increment(o.major>0||jf(l)?"major":o.minor>0||jf(d)?"minor":"patch")));break;case"<":case">=":r.push(jf(l)||jf(d)?ah(e,o.with({prerelease:"0"})):ah(e,o));break;case"<=":case">":r.push(jf(l)?ah(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):jf(d)?ah(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):ah(e,o));break;case"=":case void 0:jf(l)||jf(d)?(r.push(ah(">=",o.with({prerelease:"0"}))),r.push(ah("<",o.increment(jf(l)?"major":"minor").with({prerelease:"0"})))):r.push(ah("=",o));break;default:return!1}return!0}function jf(e){return e==="*"||e==="x"||e==="X"}function ah(e,t){return{operator:e,operand:t}}function Fze(e,t){if(t.length===0)return!0;for(let r of t)if(zze(e,r))return!0;return!1}function zze(e,t){for(let r of t)if(!Bze(e,r.operator,r.operand))return!1;return!0}function Bze(e,t,r){let 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 x.assertNever(t)}}function Gze(e){return mn(e,Vze).join(" || ")||"*"}function Vze(e){return mn(e,jze).join(" ")}function jze(e){return`${e.operator}${e.operand}`}var gEe,yEe,vEe,bEe,EEe,_ne,ZG,fm,xL,SEe,TEe,AEe,IEe,xEe,Uze=bt({"src/compiler/semver.ts"(){"use strict";ea(),gEe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,yEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,vEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,bEe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,EEe=/^[a-z0-9-]+$/i,_ne=/^(0|[1-9]\d*)$/,ZG=class tW{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=x.checkDefined(_Ee(t),"Invalid version")),x.assert(t>=0,"Invalid argument: major"),x.assert(r>=0,"Invalid argument: minor"),x.assert(i>=0,"Invalid argument: patch");let l=o?To(o)?o:o.split("."):Xe,d=s?To(s)?s:s.split("."):Xe;x.assert(oo(l,p=>vEe.test(p)),"Invalid argument: prerelease"),x.assert(oo(d,p=>EEe.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=d}static tryParse(t){let r=_Ee(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:d}=r;return new tW(i,o,s,l,d)}compareTo(t){return this===t?0:t===void 0?1:Zs(this.major,t.major)||Zs(this.minor,t.minor)||Zs(this.patch,t.patch)||wze(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new tW(this.major+1,0,0);case"minor":return new tW(this.major,this.minor+1,0);case"patch":return new tW(this.major,this.minor,this.patch+1);default:return x.assertNever(t)}}with(t){let{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new tW(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return gt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),gt(this.build)&&(t+=`+${this.build.join(".")}`),t}},ZG.zero=new ZG(0,0,0,["0"]),fm=ZG,xL=class W4e{constructor(t){this._alternatives=t?x.checkDefined(hEe(t),"Invalid range spec."):Xe}static tryParse(t){let r=hEe(t);if(r){let i=new W4e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new fm(t)),Fze(t,this._alternatives)}toString(){return Gze(this._alternatives)}},SEe=/\|\|/g,TEe=/\s+/g,AEe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,IEe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,xEe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function REe(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 Hze(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&REe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Kze(){if(qG())try{let{performance:e,PerformanceObserver:t}=_i("perf_hooks");if(REe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function hne(){return e9}var e9,gne,Hs,Jze=bt({"src/compiler/performanceCore.ts"(){"use strict";ea(),e9=Hze()||Kze(),gne=e9?.performance,Hs=gne?()=>gne.now():Date.now?Date.now:()=>+new Date}}),xW,nu,qze=bt({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";xW=_i(e)}catch{xW=void 0}nu=xW?.logEvent?xW:void 0}});function DEe(e,t,r,i){return e?t9(t,r,i):n9}function t9(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&el(t)}function s(){--i===0?(el(r),Xp(e,t,r)):i<0&&x.fail("enter/exit count does not match.")}}function el(e){if(Ax){let t=jC.get(e)??0;jC.set(e,t+1),Ix.set(e,Hs()),tT?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Xp(e,t,r){if(Ax){let i=(r!==void 0?Ix.get(r):void 0)??Hs(),o=(t!==void 0?Ix.get(t):void 0)??yne,s=xx.get(e)||0;xx.set(e,s+(i-o)),tT?.measure(e,t,r)}}function Xze(e){return jC.get(e)||0}function Yze(e){return xx.get(e)||0}function $ze(e){xx.forEach((t,r)=>e(r,t))}function Qze(e){Ix.forEach((t,r)=>e(r))}function Zze(e){e!==void 0?xx.delete(e):xx.clear(),tT?.clearMeasures(e)}function e7e(e){e!==void 0?(jC.delete(e),Ix.delete(e)):(jC.clear(),Ix.clear()),tT?.clearMarks(e)}function t7e(){return Ax}function n7e(e=hd){var t;return Ax||(Ax=!0,RL||(RL=hne()),RL&&(yne=RL.performance.timeOrigin,(RL.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(tT=RL.performance))),!0}function r7e(){Ax&&(Ix.clear(),jC.clear(),xx.clear(),tT=void 0,Ax=!1)}var RL,tT,n9,Ax,yne,Ix,jC,xx,i7e=bt({"src/compiler/performance.ts"(){"use strict";ea(),n9={enter:qa,exit:qa},Ax=!1,yne=Hs(),Ix=new Map,jC=new Map,xx=new Map}}),vne={};xa(vne,{clearMarks:()=>e7e,clearMeasures:()=>Zze,createTimer:()=>t9,createTimerIf:()=>DEe,disable:()=>r7e,enable:()=>n7e,forEachMark:()=>Qze,forEachMeasure:()=>$ze,getCount:()=>Xze,getDuration:()=>Yze,isEnabled:()=>t7e,mark:()=>el,measure:()=>Xp,nullTimer:()=>n9});var nT=bt({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";i7e()}}),rr,DL,bne,Ene,o7e=bt({"src/compiler/tracing.ts"(){"use strict";ea(),nT(),(e=>{let t,r=0,i=0,o,s=[],l,d=[];function p(z,Z,me){if(x.assert(!rr,"Tracing already started"),t===void 0)try{t=_i("fs")}catch(pe){throw new Error(`tracing requires having fs (original error: ${pe.message||pe})`)}o=z,s.length=0,l===void 0&&(l=Yr(Z,"legend.json")),t.existsSync(Z)||t.mkdirSync(Z,{recursive:!0});let ge=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",q=Yr(Z,`trace${ge}.json`),J=Yr(Z,`types${ge}.json`);d.push({configFilePath:me,tracePath:q,typesPath:J}),i=t.openSync(q,"w"),rr=e;let re={cat:"__metadata",ph:"M",ts:1e3*Hs(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...re},{name:"thread_name",args:{name:"Main"},...re},{name:"TracingStartedInBrowser",...re,cat:"disabled-by-default-devtools.timeline"}].map(pe=>JSON.stringify(pe)).join(`, `))}e.startTracing=p;function h(){x.assert(rr,"Tracing is not in progress"),x.assert(!!s.length==(o!=="server")),t.writeSync(i,` ] `),t.closeSync(i),rr=void 0,s.length?B(s):d[d.length-1].typesPath=void 0}e.stopTracing=h;function m(z){o!=="server"&&s.push(z)}e.recordType=m;let y;(z=>{z.Parse="parse",z.Program="program",z.Bind="bind",z.Check="check",z.CheckTypes="checkTypes",z.Emit="emit",z.Session="session"})(y=e.Phase||(e.Phase={}));function E(z,Z,me){K("I",z,Z,me,'"s":"g"')}e.instant=E;let S=[];function A(z,Z,me,ge=!1){ge&&K("B",z,Z,me),S.push({phase:z,name:Z,args:me,time:1e3*Hs(),separateBeginAndEnd:ge})}e.push=A;function N(z){x.assert(S.length>0),j(S.length-1,1e3*Hs(),z),S.length--}e.pop=N;function D(){let z=1e3*Hs();for(let Z=S.length-1;Z>=0;Z--)j(Z,z);S.length=0}e.popAll=D;let w=1e3*10;function j(z,Z,me){let{phase:ge,name:q,args:J,time:re,separateBeginAndEnd:pe}=S[z];pe?(x.assert(!me,"`results` are not supported for events with `separateBeginAndEnd`"),K("E",ge,q,J,void 0,Z)):w-re%w<=Z-re&&K("X",ge,q,{...J,results:me},`"dur":${Z-re}`,re)}function K(z,Z,me,ge,q,J=1e3*Hs()){o==="server"&&Z==="checkTypes"||(el("beginTracing"),t.writeSync(i,`, {"pid":1,"tid":1,"ph":"${z}","cat":"${Z}","ts":${J},"name":"${me}"`),q&&t.writeSync(i,`,${q}`),ge&&t.writeSync(i,`,"args":${JSON.stringify(ge)}`),t.writeSync(i,"}"),el("endTracing"),Xp("Tracing","beginTracing","endTracing"))}function Y(z){let Z=Gn(z);return Z?{path:Z.path,start:me(hs(Z,z.pos)),end:me(hs(Z,z.end))}:void 0;function me(ge){return{line:ge.line+1,character:ge.character+1}}}function B(z){var Z,me,ge,q,J,re,pe,xe,fe,ne,he,Ce,Ge,ve,Ae,De,Le,Et,be;el("beginDumpTypes");let ze=d[d.length-1].typesPath,tt=t.openSync(ze,"w"),Wt=new Map;t.writeSync(tt,"[");let _t=z.length;for(let Je=0;Je<_t;Je++){let pt=z[Je],Zt=pt.objectFlags,en=pt.aliasSymbol??pt.symbol,Dn;if(Zt&16|pt.flags&2944)try{Dn=(Z=pt.checker)==null?void 0:Z.typeToString(pt)}catch{Dn=void 0}let Kn={};if(pt.flags&8388608){let Ur=pt;Kn={indexedAccessObjectType:(me=Ur.objectType)==null?void 0:me.id,indexedAccessIndexType:(ge=Ur.indexType)==null?void 0:ge.id}}let pn={};if(Zt&4){let Ur=pt;pn={instantiatedType:(q=Ur.target)==null?void 0:q.id,typeArguments:(J=Ur.resolvedTypeArguments)==null?void 0:J.map(Er=>Er.id),referenceLocation:Y(Ur.node)}}let Xt={};if(pt.flags&16777216){let Ur=pt;Xt={conditionalCheckType:(re=Ur.checkType)==null?void 0:re.id,conditionalExtendsType:(pe=Ur.extendsType)==null?void 0:pe.id,conditionalTrueType:((xe=Ur.resolvedTrueType)==null?void 0:xe.id)??-1,conditionalFalseType:((fe=Ur.resolvedFalseType)==null?void 0:fe.id)??-1}}let Kt={};if(pt.flags&33554432){let Ur=pt;Kt={substitutionBaseType:(ne=Ur.baseType)==null?void 0:ne.id,constraintType:(he=Ur.constraint)==null?void 0:he.id}}let hi={};if(Zt&1024){let Ur=pt;hi={reverseMappedSourceType:(Ce=Ur.source)==null?void 0:Ce.id,reverseMappedMappedType:(Ge=Ur.mappedType)==null?void 0:Ge.id,reverseMappedConstraintType:(ve=Ur.constraintType)==null?void 0:ve.id}}let uo={};if(Zt&256){let Ur=pt;uo={evolvingArrayElementType:Ur.elementType.id,evolvingArrayFinalType:(Ae=Ur.finalArrayType)==null?void 0:Ae.id}}let Li,So=pt.checker.getRecursionIdentity(pt);So&&(Li=Wt.get(So),Li||(Li=Wt.size,Wt.set(So,Li)));let Qn={id:pt.id,intrinsicName:pt.intrinsicName,symbolName:en?.escapedName&&Vi(en.escapedName),recursionId:Li,isTuple:Zt&8?!0:void 0,unionTypes:pt.flags&1048576?(De=pt.types)==null?void 0:De.map(Ur=>Ur.id):void 0,intersectionTypes:pt.flags&2097152?pt.types.map(Ur=>Ur.id):void 0,aliasTypeArguments:(Le=pt.aliasTypeArguments)==null?void 0:Le.map(Ur=>Ur.id),keyofType:pt.flags&4194304?(Et=pt.type)==null?void 0:Et.id:void 0,...Kn,...pn,...Xt,...Kt,...hi,...uo,destructuringPattern:Y(pt.pattern),firstDeclaration:Y((be=en?.declarations)==null?void 0:be[0]),flags:x.formatTypeFlags(pt.flags).split("|"),display:Dn};t.writeSync(tt,JSON.stringify(Qn)),Je<_t-1&&t.writeSync(tt,`, `)}t.writeSync(tt,`] `),t.closeSync(tt),el("endDumpTypes"),Xp("Dump types","beginDumpTypes","endDumpTypes")}function ce(){l&&t.writeFileSync(l,JSON.stringify(d))}e.dumpLegend=ce})(DL||(DL={})),bne=DL.startTracing,Ene=DL.dumpLegend}});function rT(e,t=!0){let r=NL[e.category];return t?r.toLowerCase():r}var RW,DW,CW,r9,NW,PW,i9,CL,o9,Rx,MW,a9,s9,LW,l9,c9,d9,u9,p9,f9,m9,_9,h9,g9,y9,kW,v9,b9,E9,S9,wW,OW,T9,A9,I9,x9,R9,D9,WW,C9,N9,P9,M9,L9,k9,NL,Dx,w9,O9,W9,F9,UC,z9,B9,G9,FW,V9,j9,U9,H9,K9,zW,BW,GW,J9,q9,X9,Y9,$9,Q9,Z9,eV,PL,tV,CEe=bt({"src/compiler/types.ts"(){"use strict";RW=(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.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",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))(RW||{}),DW=(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))(DW||{}),CW=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(CW||{}),r9=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(r9||{}),NW=(e=>(e[e.None=0]="None",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))(NW||{}),PW=(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))(PW||{}),i9=(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))(i9||{}),CL=(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))(CL||{}),o9=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(o9||{}),Rx=class{},MW=(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))(MW||{}),a9=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(a9||{}),s9=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(s9||{}),LW=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(LW||{}),l9=(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))(l9||{}),c9=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(c9||{}),d9=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(d9||{}),u9=(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))(u9||{}),p9=(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))(p9||{}),f9=(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.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=848330095]="NodeBuilderFlagsMask",e))(f9||{}),m9=(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))(m9||{}),_9=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(_9||{}),h9=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(h9||{}),g9=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(g9||{}),y9=(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))(y9||{}),kW=(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=-1]="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))(kW||{}),v9=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(v9||{}),b9=(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))(b9||{}),E9=(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.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(E9||{}),S9=(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))(S9||{}),wW=(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.Reserved1=536870912]="Reserved1",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=3899393]="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.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(wW||{}),OW=(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.InstantiatedMapped=96]="InstantiatedMapped",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[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(OW||{}),T9=(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))(T9||{}),A9=(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))(A9||{}),I9=(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))(I9||{}),x9=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(x9||{}),R9=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(R9||{}),D9=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(D9||{}),WW=(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))(WW||{}),C9=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(C9||{}),N9=(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))(N9||{}),P9=(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))(P9||{}),M9=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(M9||{}),L9=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(L9||{}),k9=(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))(k9||{}),NL=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(NL||{}),Dx=(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))(Dx||{}),w9=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(w9||{}),O9=(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))(O9||{}),W9=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(W9||{}),F9=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(F9||{}),UC=(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[e.Preserve=200]="Preserve",e))(UC||{}),z9=(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))(z9||{}),B9=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(B9||{}),G9=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(G9||{}),FW=(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))(FW||{}),V9=(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))(V9||{}),j9=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(j9||{}),U9=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(U9||{}),H9=(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._=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))(H9||{}),K9=(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))(K9||{}),zW=(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))(zW||{}),BW=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(BW||{}),GW=(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))(GW||{}),J9=(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))(J9||{}),q9=(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))(q9||{}),X9=(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[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(X9||{}),Y9=(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))(Y9||{}),$9=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))($9||{}),Q9=(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))(Q9||{}),Z9=(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.ImportAttributes=526226]="ImportAttributes",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))(Z9||{}),eV=(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))(eV||{}),PL={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}},tV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(tV||{})}});function HC(e){let t=5381;for(let r=0;r{K.isClosed=!0,uI(t,K)}}}function d(D){let w=[];return w.pollingInterval=D,w.pollIndex=0,w.pollScheduled=!1,w}function p(D,w){w.pollIndex=m(w,w.pollingInterval,w.pollIndex,UW[w.pollingInterval]),w.length?N(w.pollingInterval):(x.assert(w.pollIndex===0),w.pollScheduled=!1)}function h(D,w){m(r,250,0,r.length),p(D,w),!w.pollScheduled&&r.length&&N(250)}function m(D,w,j,K){return PEe(e,D,j,K,Y);function Y(B,ce,z){z?(B.unchangedPolls=0,D!==r&&(D[ce]=void 0,S(B))):B.unchangedPolls!==LL[w]?B.unchangedPolls++:D===r?(B.unchangedPolls=1,D[ce]=void 0,E(B,250)):w!==2e3&&(B.unchangedPolls++,D[ce]=void 0,E(B,w===250?500:2e3))}}function y(D){switch(D){case 250:return i;case 500:return o;case 2e3:return s}}function E(D,w){y(w).push(D),A(w)}function S(D){r.push(D),A(250)}function A(D){y(D).pollScheduled||N(D)}function N(D){y(D).pollScheduled=e.setTimeout(D===250?h:p,D,D===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(D))}}function l7e(e,t,r,i){let o=qp(),s=i?new Map:void 0,l=new Map,d=Nd(t);return p;function p(m,y,E,S){let A=d(m);o.add(A,y).length===1&&s&&s.set(A,r(m)||Mp);let N=oi(A)||".",D=l.get(N)||h(oi(m)||".",N,S);return D.referenceCount++,{close:()=>{D.referenceCount===1?(D.close(),l.delete(N)):D.referenceCount--,o.remove(A,y)}}}function h(m,y,E){let S=e(m,1,(A,N)=>{if(!No(N))return;let D=ho(N,m),w=d(D),j=D&&o.get(w);if(j){let K,Y=1;if(s){let B=s.get(w);if(A==="change"&&(K=r(D)||Mp,K.getTime()===B.getTime()))return;K||(K=r(D)||Mp),s.set(w,K),B===Mp?Y=0:K===Mp&&(Y=2)}for(let B of j)B(D,Y,K)}},!1,500,E);return S.referenceCount=0,l.set(y,S),S}}function c7e(e){let t=[],r=0,i;return o;function o(d,p){let h={fileName:d,callback:p,mtime:fI(e,d)};return t.push(h),l(),{close:()=>{h.isClosed=!0,uI(t,h)}}}function s(){i=void 0,r=PEe(e,t,r,UW[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function MEe(e,t,r,i,o){let l=Nd(t)(r),d=e.get(l);return d?d.callbacks.push(i):e.set(l,{watcher:o((p,h,m)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(E=>E(p,h,m))}),callbacks:[i]}),{close:()=>{let p=e.get(l);p&&(!Tx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Rf(p)))}}}function d7e(e,t){let r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,nV(r,i),t),!0):!1}function nV(e,t){return e===0?0:t===0?2:1}function ML(e){return xne(e)}function Tne(e){xne=e}function u7e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:d}){let p=new Map,h=qp(),m=new Map,y,E=Ex(!t),S=Nd(t);return(z,Z,me,ge)=>me?A(z,ge,Z):e(z,Z,me,ge);function A(z,Z,me){let ge=S(z),q=p.get(ge);q?q.refCount++:(q={watcher:e(z,re=>{B(re,Z)||(Z?.synchronousWatchDirectory?(N(ge,re),Y(z,ge,Z)):D(z,ge,re,Z))},!1,Z),refCount:1,childWatches:Xe},p.set(ge,q),Y(z,ge,Z));let J=me&&{dirName:z,callback:me};return J&&h.add(ge,J),{dirName:z,close:()=>{let re=x.checkDefined(p.get(ge));J&&h.remove(ge,J),re.refCount--,!re.refCount&&(p.delete(ge),Rf(re),re.childWatches.forEach(Hm))}}}function N(z,Z,me){let ge,q;No(Z)?ge=Z:q=Z,h.forEach((J,re)=>{if(!(q&&q.get(re)===!0)&&(re===z||ao(z,re)&&z[re.length]===nl))if(q)if(me){let pe=q.get(re);pe?pe.push(...me):q.set(re,me.slice())}else q.set(re,!0);else J.forEach(({callback:pe})=>pe(ge))})}function D(z,Z,me,ge){let q=p.get(Z);if(q&&o(z,1)){w(z,Z,me,ge);return}N(Z,me),K(q)}function w(z,Z,me,ge){let q=m.get(Z);q?q.fileNames.push(me):m.set(Z,{dirName:z,options:ge,fileNames:[me]}),y&&(d(y),y=void 0),y=l(j,1e3,"timerToUpdateChildWatches")}function j(){y=void 0,ML(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let z=Hs(),Z=new Map;for(;!y&&m.size;){let ge=m.entries().next();x.assert(!ge.done);let{value:[q,{dirName:J,options:re,fileNames:pe}]}=ge;m.delete(q);let xe=Y(J,q,re);N(q,Z,xe?void 0:pe)}ML(`sysLog:: invokingWatchers:: Elapsed:: ${Hs()-z}ms:: ${m.size}`),h.forEach((ge,q)=>{let J=Z.get(q);J&&ge.forEach(({callback:re,dirName:pe})=>{To(J)?J.forEach(re):re(pe)})});let me=Hs()-z;ML(`sysLog:: Elapsed:: ${me}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function K(z){if(!z)return;let Z=z.childWatches;z.childWatches=Xe;for(let me of Z)me.close(),K(p.get(S(me.dirName)))}function Y(z,Z,me){let ge=p.get(Z);if(!ge)return!1;let q,J=TW(o(z,1)?to(i(z),xe=>{let fe=ho(xe,z);return!B(fe,me)&&E(fe,ma(s(fe)))===0?fe:void 0}):Xe,ge.childWatches,(xe,fe)=>E(xe,fe.dirName),re,Hm,pe);return ge.childWatches=q||Xe,J;function re(xe){let fe=A(xe,me);pe(fe)}function pe(xe){(q||(q=[])).push(xe)}}function B(z,Z){return gt(kL,me=>ce(z,me))||LEe(z,Z,t,r)}function ce(z,Z){return z.includes(Z)?!0:t?!1:S(z).includes(Z)}}function p7e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function f7e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Mp),t(e,s!==Mp?0:2,s)):t(e,1,s)}}function LEe(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(l3(e,t?.excludeFiles,r,i())||l3(e,t?.excludeDirectories,r,i()))}function kEe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let d=l?ma(Yr(e,l)):e;(!l||!LEe(d,r,i,o))&&t(d)}}}function Ane({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:d,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:h,realpath:m,tscWatchFile:y,useNonPollingWatchers:E,tscWatchDirectory:S,inodeWatching:A,fsWatchWithTimestamp:N,sysLog:D}){let w=new Map,j=new Map,K=new Map,Y,B,ce,z,Z=!1;return{watchFile:me,watchDirectory:pe};function me(ve,Ae,De,Le){Le=J(Le,E);let Et=x.checkDefined(Le.watchFile);switch(Et){case 0:return ne(ve,Ae,250,void 0);case 1:return ne(ve,Ae,De,void 0);case 2:return ge()(ve,Ae,De,void 0);case 3:return q()(ve,Ae,void 0,void 0);case 4:return he(ve,0,f7e(ve,Ae,t),!1,De,Cw(Le));case 5:return ce||(ce=l7e(he,l,t,N)),ce(ve,Ae,De,Cw(Le));default:x.assertNever(Et)}}function ge(){return Y||(Y=s7e({getModifiedTime:t,setTimeout:r}))}function q(){return B||(B=c7e({getModifiedTime:t,setTimeout:r}))}function J(ve,Ae){if(ve&&ve.watchFile!==void 0)return ve;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return re(4,1,ve);case"UseFsEventsWithFallbackDynamicPolling":return re(4,2,ve);case"UseFsEventsOnParentDirectory":Ae=!0;default:return Ae?re(5,1,ve):{watchFile:4}}}function re(ve,Ae,De){let Le=De?.fallbackPolling;return{watchFile:ve,fallbackPolling:Le===void 0?Ae:Le}}function pe(ve,Ae,De,Le){return p?he(ve,1,kEe(ve,Ae,Le,l,d),De,500,Cw(Le)):(z||(z=u7e({useCaseSensitiveFileNames:l,getCurrentDirectory:d,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:xe,realpath:m,setTimeout:r,clearTimeout:i})),z(ve,Ae,De,Le))}function xe(ve,Ae,De,Le){x.assert(!De);let Et=fe(Le),be=x.checkDefined(Et.watchDirectory);switch(be){case 1:return ne(ve,()=>Ae(ve),500,void 0);case 2:return ge()(ve,()=>Ae(ve),500,void 0);case 3:return q()(ve,()=>Ae(ve),void 0,void 0);case 0:return he(ve,1,kEe(ve,Ae,Le,l,d),De,500,Cw(Et));default:x.assertNever(be)}}function fe(ve){if(ve&&ve.watchDirectory!==void 0)return ve;switch(S){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Ae=ve?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ae!==void 0?Ae:void 0}}}function ne(ve,Ae,De,Le){return MEe(w,l,ve,Ae,Et=>e(ve,Et,De,Le))}function he(ve,Ae,De,Le,Et,be){return MEe(Le?K:j,l,ve,De,ze=>Ce(ve,Ae,ze,Le,Et,be))}function Ce(ve,Ae,De,Le,Et,be){let ze,tt;A&&(ze=ve.substring(ve.lastIndexOf(nl)),tt=ze.slice(nl.length));let Wt=s(ve,Ae)?Je():en();return{close:()=>{Wt&&(Wt.close(),Wt=void 0)}};function _t(Dn){Wt&&(D(`sysLog:: ${ve}:: Changing watcher to ${Dn===Je?"Present":"Missing"}FileSystemEntryWatcher`),Wt.close(),Wt=Dn())}function Je(){if(Z)return D(`sysLog:: ${ve}:: Defaulting to watchFile`),Zt();try{let Dn=(Ae===1||!N?o:Ge)(ve,Le,A?pt:De);return Dn.on("error",()=>{De("rename",""),_t(en)}),Dn}catch(Dn){return Z||(Z=Dn.code==="ENOSPC"),D(`sysLog:: ${ve}:: Changing to watchFile`),Zt()}}function pt(Dn,Kn){let pn;if(Kn&&El(Kn,"~")&&(pn=Kn,Kn=Kn.slice(0,Kn.length-1)),Dn==="rename"&&(!Kn||Kn===tt||El(Kn,ze))){let Xt=t(ve)||Mp;pn&&De(Dn,pn,Xt),De(Dn,Kn,Xt),A?_t(Xt===Mp?en:Je):Xt===Mp&&_t(en)}else pn&&De(Dn,pn),De(Dn,Kn)}function Zt(){return me(ve,p7e(De),Et,be)}function en(){return me(ve,(Dn,Kn,pn)=>{Kn===0&&(pn||(pn=t(ve)||Mp),pn!==Mp&&(De("rename","",pn),_t(Je)))},Et,be)}}function Ge(ve,Ae,De){let Le=t(ve)||Mp;return o(ve,Ae,(Et,be,ze)=>{Et==="change"&&(ze||(ze=t(ve)||Mp),ze.getTime()===Le.getTime())||(Le=ze||t(ve)||Mp,De(Et,be,Le))})}}function Ine(e){let t=e.writeFile;e.writeFile=(r,i,o)=>zj(r,i,!!o,(s,l,d)=>t.call(e,s,l,d),s=>e.createDirectory(s),s=>e.directoryExists(s))}function wEe(e){hd=e}var rV,VW,Mp,jW,UW,LL,kL,xne,iV,hd,m7e=bt({"src/compiler/sys.ts"(){"use strict";ea(),rV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(rV||{}),VW=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(VW||{}),Mp=new Date(0),jW={Low:32,Medium:64,High:256},UW=Sne(jW),LL=Sne(jW),kL=["/node_modules/.","/.git","/.#"],xne=qa,iV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(iV||{}),hd=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=_i("fs"),s=_i("path"),l=_i("os"),d;try{d=_i("crypto")}catch{d=void 0}let p,h="./profile.cpuprofile",m=_i("buffer").Buffer,y=process.platform==="darwin",E=process.platform==="linux"||y,S=l.platform(),A=q(),N=o.realpathSync.native?process.platform==="win32"?Le:o.realpathSync.native:o.realpathSync,D=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,w=process.platform==="win32"||y,j=vu(()=>process.cwd()),{watchFile:K,watchDirectory:Y}=Ane({pollingWatchFileWorker:re,getModifiedTime:be,setTimeout,clearTimeout,fsWatchWorker:pe,useCaseSensitiveFileNames:A,getCurrentDirectory:j,fileSystemEntryExists:Ge,fsSupportsRecursiveFsWatch:w,getAccessibleSortedChildDirectories:_t=>he(_t).directories,realpath:Et,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:E,fsWatchWithTimestamp:y,sysLog:ML}),B={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:A,write(_t){process.stdout.write(_t)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:fe,writeFile:ne,watchFile:K,watchDirectory:Y,resolvePath:_t=>s.resolve(_t),fileExists:ve,directoryExists:Ae,getAccessibleFileSystemEntries:he,createDirectory(_t){if(!B.directoryExists(_t))try{o.mkdirSync(_t)}catch(Je){if(Je.code!=="EEXIST")throw Je}},getExecutingFilePath(){return D},getCurrentDirectory:j,getDirectories:De,getEnvironmentVariable(_t){return process.env[_t]||""},readDirectory:Ce,getModifiedTime:be,setModifiedTime:ze,deleteFile:tt,createHash:d?Wt:HC,createSHA256Hash:d?Wt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(_t){try{let Je=ce(_t);if(Je?.isFile())return Je.size}catch{}return 0},exit(_t){me(()=>process.exit(_t))},enableCPUProfiler:z,disableCPUProfiler:me,cpuProfilingEnabled:()=>!!p||Bo(process.execArgv,"--cpu-prof")||Bo(process.execArgv,"--prof"),realpath:Et,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||gt(process.execArgv,_t=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(_t))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{_i("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var _t;let Je=(_t=process.stdout)==null?void 0:_t._handle;Je&&Je.setBlocking&&Je.setBlocking(!0)},bufferFrom:ge,base64decode:_t=>ge(_t,"base64").toString("utf8"),base64encode:_t=>ge(_t).toString("base64"),require:(_t,Je)=>{try{let pt=bse(Je,_t,B);return{module:_i(pt),modulePath:pt,error:void 0}}catch(pt){return{module:void 0,modulePath:void 0,error:pt}}}};return B;function ce(_t){return o.statSync(_t,{throwIfNoEntry:!1})}function z(_t,Je){if(p)return Je(),!1;let pt=_i("inspector");if(!pt||!pt.Session)return Je(),!1;let Zt=new pt.Session;return Zt.connect(),Zt.post("Profiler.enable",()=>{Zt.post("Profiler.start",()=>{p=Zt,h=_t,Je()})}),!0}function Z(_t){let Je=0,pt=new Map,Zt=Pd(s.dirname(D)),en=`file://${sh(Zt)===1?"":"/"}${Zt}`;for(let Dn of _t.nodes)if(Dn.callFrame.url){let Kn=Pd(Dn.callFrame.url);mm(en,Kn,A)?Dn.callFrame.url=_I(en,Kn,en,Nd(A),!0):i.test(Kn)||(Dn.callFrame.url=(pt.has(Kn)?pt:pt.set(Kn,`external${Je}.js`)).get(Kn),Je++)}return _t}function me(_t){if(p&&p!=="stopping"){let Je=p;return p.post("Profiler.stop",(pt,{profile:Zt})=>{var en;if(!pt){try{(en=ce(h))!=null&&en.isDirectory()&&(h=s.join(h,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(h),{recursive:!0})}catch{}o.writeFileSync(h,JSON.stringify(Z(Zt)))}p=void 0,Je.disconnect(),_t()}),p="stopping",!0}else return _t(),!1}function ge(_t,Je){return m.from&&m.from!==Int8Array.from?m.from(_t,Je):new m(_t,Je)}function q(){return S==="win32"||S==="win64"?!1:!ve(J(__filename))}function J(_t){return _t.replace(/\w/g,Je=>{let pt=Je.toUpperCase();return Je===pt?Je.toLowerCase():pt})}function re(_t,Je,pt){o.watchFile(_t,{persistent:!0,interval:pt},en);let Zt;return{close:()=>o.unwatchFile(_t,en)};function en(Dn,Kn){let pn=+Kn.mtime==0||Zt===2;if(+Dn.mtime==0){if(pn)return;Zt=2}else if(pn)Zt=0;else{if(+Dn.mtime==+Kn.mtime)return;Zt=1}Je(_t,Zt,Dn.mtime)}}function pe(_t,Je,pt){return o.watch(_t,w?{persistent:!0,recursive:!!Je}:{persistent:!0},pt)}function xe(_t,Je){let pt;try{pt=o.readFileSync(_t)}catch{return}let Zt=pt.length;if(Zt>=2&&pt[0]===254&&pt[1]===255){Zt&=-2;for(let en=0;en=2&&pt[0]===255&&pt[1]===254?pt.toString("utf16le",2):Zt>=3&&pt[0]===239&&pt[1]===187&&pt[2]===191?pt.toString("utf8",3):pt.toString("utf8")}function fe(_t,Je){var pt,Zt;(pt=nu)==null||pt.logStartReadFile(_t);let en=xe(_t,Je);return(Zt=nu)==null||Zt.logStopReadFile(),en}function ne(_t,Je,pt){var Zt;(Zt=nu)==null||Zt.logEvent("WriteFile: "+_t),pt&&(Je=e+Je);let en;try{en=o.openSync(_t,"w"),o.writeSync(en,Je,void 0,"utf8")}finally{en!==void 0&&o.closeSync(en)}}function he(_t){var Je;(Je=nu)==null||Je.logEvent("ReadDir: "+(_t||"."));try{let pt=o.readdirSync(_t||".",{withFileTypes:!0}),Zt=[],en=[];for(let Dn of pt){let Kn=typeof Dn=="string"?Dn:Dn.name;if(Kn==="."||Kn==="..")continue;let pn;if(typeof Dn=="string"||Dn.isSymbolicLink()){let Xt=Yr(_t,Kn);try{if(pn=ce(Xt),!pn)continue}catch{continue}}else pn=Dn;pn.isFile()?Zt.push(Kn):pn.isDirectory()&&en.push(Kn)}return Zt.sort(),en.sort(),{files:Zt,directories:en}}catch{return Q6}}function Ce(_t,Je,pt,Zt,en){return lU(_t,Je,pt,Zt,A,process.cwd(),en,he,Et)}function Ge(_t,Je){let pt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let Zt=ce(_t);if(!Zt)return!1;switch(Je){case 0:return Zt.isFile();case 1:return Zt.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=pt}}function ve(_t){return Ge(_t,0)}function Ae(_t){return Ge(_t,1)}function De(_t){return he(_t).directories.slice()}function Le(_t){return _t.length<260?o.realpathSync.native(_t):o.realpathSync(_t)}function Et(_t){try{return N(_t)}catch{return _t}}function be(_t){var Je;let pt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Je=ce(_t))==null?void 0:Je.mtime}catch{return}finally{Error.stackTraceLimit=pt}}function ze(_t,Je){try{o.utimesSync(_t,Je,Je)}catch{return}}function tt(_t){try{return o.unlinkSync(_t)}catch{return}}function Wt(_t){let Je=d.createHash("sha256");return Je.update(_t),Je.digest("hex")}}let r;return qG()&&(r=t()),r&&Ine(r),r})(),hd&&hd.getEnvironmentVariable&&(a7e(hd),x.setAssertionLevel(/^development$/i.test(hd.getEnvironmentVariable("NODE_ENV"))?1:0)),hd&&hd.debugMode&&(x.isDebugging=!0)}});function oV(e){return e===47||e===92}function Rne(e){return HW(e)<0}function cp(e){return HW(e)>0}function aV(e){let t=HW(e);return t>0&&t===e.length}function KC(e){return HW(e)!==0}function Lp(e){return/^\.\.?($|[\\/])/.test(e)}function sV(e){return!KC(e)&&!Lp(e)}function mI(e){return nc(e).includes(".")}function Sl(e,t){return e.length>t.length&&El(e,t)}function bc(e,t){for(let r of t)if(Sl(e,r))return!0;return!1}function Iy(e){return e.length>0&&oV(e.charCodeAt(e.length-1))}function OEe(e){return e>=97&&e<=122||e>=65&&e<=90}function _7e(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function HW(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?nl:FL,2);return i<0?e.length:i+1}if(OEe(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Nne);if(r!==-1){let i=r+Nne.length,o=e.indexOf(nl,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&OEe(e.charCodeAt(o+1))){let d=_7e(e,o+2);if(d!==-1){if(e.charCodeAt(d)===47)return~(d+1);if(d===e.length)return~d}}return~(o+1)}return~e.length}return 0}function sh(e){let t=HW(e);return t<0?~t:t}function oi(e){e=Pd(e);let t=sh(e);return t===e.length?e:(e=Xb(e),e.slice(0,Math.max(t,e.lastIndexOf(nl))))}function nc(e,t,r){if(e=Pd(e),sh(e)===e.length)return"";e=Xb(e);let o=e.slice(Math.max(sh(e),e.lastIndexOf(nl)+1)),s=t!==void 0&&r!==void 0?Cx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function WEe(e,t,r){if(ao(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(r(i,t))return i}}function h7e(e,t,r){if(typeof t=="string")return WEe(e,t,r)||"";for(let i of t){let o=WEe(e,i,r);if(o)return o}return""}function Cx(e,t,r){if(t)return h7e(Xb(e),t,r?qb:eT);let i=nc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function g7e(e,t){let r=e.substring(0,t),i=e.substring(t).split(nl);return i.length&&!$s(i)&&i.pop(),[r,...i]}function zc(e,t=""){return e=Yr(t,e),g7e(e,sh(e))}function Tv(e,t){return e.length===0?"":(e[0]&&Bc(e[0]))+e.slice(1,t).join(nl)}function Pd(e){return e.includes("\\")?e.replace(BEe,nl):e}function iT(e){if(!gt(e))return[];let 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 Yr(e,...t){e&&(e=Pd(e));for(let r of t)r&&(r=Pd(r),!e||sh(r)!==0?e=r:e=Bc(e)+r);return e}function Av(e,...t){return ma(gt(t)?Yr(e,...t):Pd(e))}function wL(e,t){return iT(zc(e,t))}function ho(e,t){return Tv(wL(e,t))}function ma(e){if(e=Pd(e),!JW.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!JW.test(e)))return e;let r=Tv(iT(zc(e)));return r&&Iy(e)?Bc(r):r}function y7e(e){return e.length===0?"":e.slice(1).join(nl)}function lV(e,t){return y7e(wL(e,t))}function tl(e,t,r){let i=cp(e)?ma(e):ho(e,t);return r(i)}function Xb(e){return Iy(e)?e.substr(0,e.length-1):e}function Bc(e){return Iy(e)?e:e+nl}function h0(e){return!KC(e)&&!Lp(e)?"./"+e:e}function OL(e,t,r,i){let o=r!==void 0&&i!==void 0?Cx(e,r,i):Cx(e);return o?e.slice(0,e.length-o.length)+(ao(t,".")?t:"."+t):e}function Dne(e,t){let r=CH(e);return r?e.slice(0,e.length-r.length)+(ao(t,".")?t:"."+t):OL(e,t)}function Cne(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,sh(e)),o=t.substring(0,sh(t)),s=vW(i,o);if(s!==0)return s;let l=e.substring(i.length),d=t.substring(o.length);if(!JW.test(l)&&!JW.test(d))return r(l,d);let p=iT(zc(e)),h=iT(zc(t)),m=Math.min(p.length,h.length);for(let y=1;y0==sh(t)>0,"Paths must either both be absolute or both be relative");let s=dV(e,t,(typeof r=="boolean"?r:!1)?qb:eT,typeof r=="function"?r:Qs);return Tv(s)}function JC(e,t,r){return cp(e)?_I(t,e,t,r,!1):e}function WL(e,t,r){return h0(_m(oi(e),t,r))}function _I(e,t,r,i,o){let s=dV(Av(r,e),Av(r,t),eT,i),l=s[0];if(o&&cp(l)){let d=l.charAt(0)===nl?"file://":"file:///";s[0]=d+l}return Tv(s)}function hm(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let i=oi(e);if(i===e)return;e=i}}function KW(e){return El(e,"/node_modules")}var nl,FL,Nne,BEe,JW,v7e=bt({"src/compiler/path.ts"(){"use strict";ea(),nl="/",FL="\\",Nne="://",BEe=/\\/g,JW=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f,b7e=bt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";CEe(),f={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."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),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_nodenext_or_preserve_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', 'nodenext', or 'preserve', 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_nodenext_or_preserve_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', 'nodenext', or 'preserve', 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_set_of_attributes_as_arguments:b(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes 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_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"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:b(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),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."),Identifier_string_literal_or_number_literal_expected:b(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:b(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),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_nodenext_or_preserve:b(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),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."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:b(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),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_compile_to_CommonJS_require_calls:b(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile 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_It_can_only_extend_other_named_object_types:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_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_nodenext_or_preserve_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', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:b(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:b(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:b(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:b(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:b(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:b(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:b(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:b(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:b(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:b(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:b(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),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'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:b(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:b(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),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_cannot_be_specified_when_module_is_set_to_none_system_or_umd:b(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),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_preserve_or_to_es2015_or_later:b(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or 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."),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.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:b(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:b(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),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}'?"),Unicode_escape_sequence_cannot_appear_here:b(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),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_concatenations_and_string_literals:b(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),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}'."),Add_missing_parameter_to_0:b(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:b(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:b(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:b(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:b(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:b(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),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 ru(e){return e>=80}function Pne(e){return e===32||ru(e)}function zL(e,t){if(e=2?zL(e,qEe):t===1?zL(e,KEe):zL(e,UEe)}function E7e(e,t){return t>=2?zL(e,XEe):t===1?zL(e,JEe):zL(e,HEe)}function S7e(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function da(e){return ZEe[e]}function g0(e){return wne.get(e)}function hI(e){let t=[],r=0,i=0;for(;r127&&jd(o)&&(t.push(i),i=r);break}}return t.push(i),t}function BL(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):XW(Dg(e),t,r,e.text,i)}function XW(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:x.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?bL(e,hI(i)):"unknown"}`));let s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function jd(e){return e===10||e===13||e===8232||e===8233}function YC(e){return e>=48&&e<=57}function GEe(e){return YC(e)||e>=65&&e<=70||e>=97&&e<=102}function T7e(e){return e<=1114111}function YW(e){return e>=48&&e<=55}function Mne(e,t){let 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 Na(e,t,r,i,o){if(Km(t))return t;let s=!1;for(;;){let l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;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&&Cg(l)){t++;continue}break}return t}}function $C(e,t){if(x.assert(t>=0),t===0||jd(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+QW=0&&r127&&Cg(A)){y&&jd(A)&&(m=!0),r++;continue}break e}}return y&&(S=o(d,p,h,m,s,S)),S}function VL(e,t,r,i){return fV(!1,e,t,!1,r,i)}function jL(e,t,r,i){return fV(!1,e,t,!0,r,i)}function Lne(e,t,r,i,o){return fV(!0,e,t,!1,r,i,o)}function kne(e,t,r,i,o){return fV(!0,e,t,!0,r,i,o)}function VEe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function jh(e,t){return Lne(e,t,VEe,void 0,void 0)}function Yb(e,t){return kne(e,t,VEe,void 0,void 0)}function $W(e){let t=mV.exec(e);if(t)return t[0]}function Uh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&qW(e,t)}function $b(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&&E7e(e,t)}function Yp(e,t,r){let i=Iv(e,0);if(!Uh(i,t))return!1;for(let o=Qb(i);om,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>E,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>d.substring(y,p),getTokenValue:()=>S,hasUnicodeEscape:()=>(A&1024)!==0,hasExtendedUnicodeEscape:()=>(A&8)!==0,hasPrecedingLineBreak:()=>(A&1)!==0,hasPrecedingJSDocComment:()=>(A&2)!==0,isIdentifier:()=>E===80||E>118,isReservedWord:()=>E>=83&&E<=118,isUnterminated:()=>(A&4)!==0,getCommentDirectives:()=>N,getNumericLiteralFlags:()=>A&25584,getTokenFlags:()=>A,reScanGreaterToken:be,reScanAsteriskEqualsToken:ze,reScanSlashToken:tt,reScanTemplateToken:Je,reScanTemplateHeadOrNoSubstitutionTemplate:pt,scanJsxIdentifier:Xt,scanJsxAttributeValue:Kt,reScanJsxAttributeValue:hi,reScanJsxToken:Zt,reScanLessThanToken:en,reScanHashToken:Dn,reScanQuestionToken:Kn,reScanInvalidIdentifier:Le,scanJsxToken:pn,scanJsDocToken:Li,scanJSDocCommentTextToken:uo,scan:Ae,getText:on,clearCommentDirectives:Ye,setText:Ot,setScriptTarget:si,setLanguageVariant:yi,setScriptKind:$i,setJSDocParsingMode:Io,setOnError:In,resetTokenState:ua,setTextPos:ua,setInJSDocType:Ba,tryScan:Er,lookAhead:Ur,scanRange:Qn};return x.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{let vn=K.getText();return vn.slice(0,K.getTokenFullStart())+"\u2551"+vn.slice(K.getTokenFullStart())}}),K;function Y(vn,kn=p,Be,ct){if(o){let lt=p;p=kn,o(vn,Be||0,ct),p=lt}}function B(){let vn=p,kn=!1,Be=!1,ct="";for(;;){let lt=d.charCodeAt(p);if(lt===95){A|=512,kn?(kn=!1,Be=!0,ct+=d.substring(vn,p)):(A|=16384,Y(Be?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,vn=p;continue}if(YC(lt)){kn=!0,Be=!1,p++;continue}break}return d.charCodeAt(p-1)===95&&(A|=16384,Y(f.Numeric_separators_are_not_allowed_here,p-1,1)),ct+d.substring(vn,p)}function ce(){let vn=p,kn;if(d.charCodeAt(p)===48)if(p++,d.charCodeAt(p)===95)A|=16896,Y(f.Numeric_separators_are_not_allowed_here,p,1),p--,kn=B();else if(!Z())A|=8192,kn=""+ +S;else if(!S)kn="0";else{S=""+parseInt(S,8),A|=32;let ae=E===41,ke=(ae?"-":"")+"0o"+(+S).toString(8);return ae&&vn--,Y(f.Octal_literals_are_not_allowed_Use_the_syntax_0,vn,p-vn,ke),9}else kn=B();let Be,ct;d.charCodeAt(p)===46&&(p++,Be=B());let lt=p;if(d.charCodeAt(p)===69||d.charCodeAt(p)===101){p++,A|=16,(d.charCodeAt(p)===43||d.charCodeAt(p)===45)&&p++;let ae=p,ke=B();ke?(ct=d.substring(lt,ae)+ke,lt=p):Y(f.Digit_expected)}let Rt;if(A&512?(Rt=kn,Be&&(Rt+="."+Be),ct&&(Rt+=ct)):Rt=d.substring(vn,lt),A&8192)return Y(f.Decimals_with_leading_zeros_are_not_allowed,vn,lt-vn),S=""+ +Rt,9;if(Be!==void 0||A&16)return z(vn,Be===void 0&&!!(A&16)),S=""+ +Rt,9;{S=Rt;let ae=ve();return z(vn),ae}}function z(vn,kn){if(!Uh(Iv(d,p),e))return;let Be=p,{length:ct}=he();ct===1&&d[Be]==="n"?Y(kn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,vn,Be-vn+1):(Y(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Be,ct),p=Be)}function Z(){let vn=p,kn=!0;for(;YC(d.charCodeAt(p));)YW(d.charCodeAt(p))||(kn=!1),p++;return S=d.substring(vn,p),kn}function me(vn,kn){let Be=q(vn,!1,kn);return Be?parseInt(Be,16):-1}function ge(vn,kn){return q(vn,!0,kn)}function q(vn,kn,Be){let ct=[],lt=!1,Rt=!1;for(;ct.length=65&&ae<=70)ae+=32;else if(!(ae>=48&&ae<=57||ae>=97&&ae<=102))break;ct.push(ae),p++,Rt=!1}return ct.length=h){Be+=d.substring(ct,p),A|=4,Y(f.Unterminated_string_literal);break}let lt=d.charCodeAt(p);if(lt===kn){Be+=d.substring(ct,p),p++;break}if(lt===92&&!vn){Be+=d.substring(ct,p),Be+=pe(!0),ct=p;continue}if((lt===10||lt===13)&&!vn){Be+=d.substring(ct,p),A|=4,Y(f.Unterminated_string_literal);break}p++}return Be}function re(vn){let kn=d.charCodeAt(p)===96;p++;let Be=p,ct="",lt;for(;;){if(p>=h){ct+=d.substring(Be,p),A|=4,Y(f.Unterminated_template_literal),lt=kn?15:18;break}let Rt=d.charCodeAt(p);if(Rt===96){ct+=d.substring(Be,p),p++,lt=kn?15:18;break}if(Rt===36&&p+1=h)return Y(f.Unexpected_end_of_text),"";let Be=d.charCodeAt(p);switch(p++,Be){case 48:if(p>=h||!YC(d.charCodeAt(p)))return"\0";case 49:case 50:case 51:p=h?(A|=2048,vn&&Y(f.Unexpected_end_of_text),d.substring(kn,p)):d.charCodeAt(p)!==125?(A|=2048,vn&&Y(f.Unterminated_Unicode_escape_sequence),d.substring(kn,p)):(p++,A|=8,Px(lt)):(A|=2048,vn&&Y(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),d.substring(kn,p))}for(;p1114111&&(Y(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Be=!0),p>=h?(Y(f.Unexpected_end_of_text),Be=!0):d.charCodeAt(p)===125?p++:(Y(f.Unterminated_Unicode_escape_sequence),Be=!0),Be?"":Px(kn)}function fe(){if(p+5=0&&$b(Be,e)){p+=3,A|=8,vn+=xe(),kn=p;continue}if(Be=fe(),!(Be>=0&&$b(Be,e)))break;A|=1024,vn+=d.substring(kn,p),vn+=Px(Be),p+=6,kn=p}else break}return vn+=d.substring(kn,p),vn}function Ce(){let vn=S.length;if(vn>=2&&vn<=12){let kn=S.charCodeAt(0);if(kn>=97&&kn<=122){let Be=jEe.get(S);if(Be!==void 0)return E=Be}}return E=80}function Ge(vn){let kn="",Be=!1,ct=!1;for(;;){let lt=d.charCodeAt(p);if(lt===95){A|=512,Be?(Be=!1,ct=!0):Y(ct?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(Be=!0,!YC(lt)||lt-48>=vn)break;kn+=d[p],p++,ct=!1}return d.charCodeAt(p-1)===95&&Y(f.Numeric_separators_are_not_allowed_here,p-1,1),kn}function ve(){return d.charCodeAt(p)===110?(S+="n",A&384&&(S=UN(S)+"n"),p++,10):(S=""+(A&128?parseInt(S.slice(2),2):A&256?parseInt(S.slice(2),8):+S),9)}function Ae(){m=p,A=0;let vn=!1;for(;;){if(y=p,p>=h)return E=1;let kn=Iv(d,p);if(p===0){if(d.slice(0,256).includes("\uFFFD"))return Y(f.File_appears_to_be_binary),p=h,E=8;if(kn===35&&uV(d,p)){if(p=pV(d,p),t)continue;return E=6}}switch(kn){case 10:case 13:if(A|=1,t){p++;continue}else return kn===13&&p+1=0&&Uh(Be,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let ct=fe();return ct>=0&&Uh(ct,e)?(p+=6,A|=1024,S=String.fromCharCode(ct)+he(),E=Ce()):(Y(f.Invalid_character),p++,E=0);case 35:if(p!==0&&d[p+1]==="!")return Y(f.can_only_be_used_at_the_start_of_a_file),p++,E=0;let lt=Iv(d,p+1);if(lt===92){p++;let ke=ne();if(ke>=0&&Uh(ke,e))return p+=3,A|=8,S="#"+xe()+he(),E=81;let st=fe();if(st>=0&&Uh(st,e))return p+=6,A|=1024,S="#"+String.fromCharCode(st)+he(),E=81;p--}return Uh(lt,e)?(p++,Et(lt,e)):(S="#",Y(f.Invalid_character,p++,Qb(kn))),E=81;default:let Rt=Et(kn,e);if(Rt)return E=Rt;if(y_(kn)){p+=Qb(kn);continue}else if(jd(kn)){A|=1,p+=Qb(kn);continue}let ae=Qb(kn);return Y(f.Invalid_character,p,ae),p+=ae,E=0}}}function De(){switch(j){case 0:return!0;case 1:return!1}return w!==3&&w!==4?!0:j===3?!1:QEe.test(d.slice(m,p))}function Le(){x.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=y=m,A=0;let vn=Iv(d,p),kn=Et(vn,99);return kn?E=kn:(p+=Qb(vn),E)}function Et(vn,kn){let Be=vn;if(Uh(Be,kn)){for(p+=Qb(Be);p=h)return E=1;let kn=d.charCodeAt(p);if(kn===60)return d.charCodeAt(p+1)===47?(p+=2,E=31):(p++,E=30);if(kn===123)return p++,E=19;let Be=0;for(;p0)break;Cg(kn)||(Be=p)}p++}return S=d.substring(m,p),Be===-1?13:12}function Xt(){if(ru(E)){for(;p=h)return E=1;for(let kn=d.charCodeAt(p);p=0&&y_(d.charCodeAt(p-1))&&!(p+1=h)return E=1;let vn=Iv(d,p);switch(p+=Qb(vn),vn){case 9:case 11:case 12:case 32:for(;p=0&&Uh(kn,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let Be=fe();return Be>=0&&Uh(Be,e)?(p+=6,A|=1024,S=String.fromCharCode(Be)+he(),E=Ce()):(p++,E=0)}if(Uh(vn,e)){let kn=vn;for(;p=0),p=vn,m=vn,y=vn,E=0,S=void 0,A=0}function Ba(vn){D+=vn?1:-1}}function Iv(e,t){return e.codePointAt(t)}function Qb(e){return e>=65536?2:1}function A7e(e){if(x.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Px(e){return e0e(e)}var UL,jEe,wne,UEe,HEe,KEe,JEe,qEe,XEe,YEe,$Ee,QEe,ZEe,QW,mV,e0e,I7e=bt({"src/compiler/scanner.ts"(){"use strict";ea(),UL={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},jEe=new Map(Object.entries(UL)),wne=new Map(Object.entries({...UL,"{":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})),UEe=[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],HEe=[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],KEe=[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],JEe=[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],qEe=[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],XEe=[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],YEe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,$Ee=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,QEe=/@(?:see|link)/i,ZEe=S7e(wne),QW=7,mV=/^#!.*/,e0e=String.fromCodePoint?e=>String.fromCodePoint(e):A7e}});function Yc(e){return Lp(e)||cp(e)}function Mx(e){return FC(e,FN)}function HL(e){switch(ns(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 Jl(e){return e.start+e.length}function One(e){return e.length===0}function _V(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Wne(e,t){return t.start>=e.start&&Jl(t)<=Jl(e)}function t0e(e,t){return Fne(e,t)!==void 0}function Fne(e,t){let r=Bne(e,t);return r&&r.length===0?void 0:r}function n0e(e,t){return JL(e.start,e.length,t.start,t.length)}function ZW(e,t,r){return JL(e.start,e.length,t,r)}function JL(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function zne(e,t){return t<=Jl(e)&&t>=e.start}function Bne(e,t){let r=Math.max(e.start,t.start),i=Math.min(Jl(e),Jl(t));return r<=i?dc(r,i):void 0}function gd(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function dc(e,t){return gd(e,t-e)}function QC(e){return gd(e.span.start,e.newLength)}function Gne(e){return One(e.span)&&e.newLength===0}function qL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Vne(e){if(e.length===0)return d2;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=Jl(t.span),o=r+t.newLength;for(let s=1;s=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Vi(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function gr(e){return Vi(e.escapedText)}function eE(e){let t=g0(e.escapedText);return t?ri(t,wu):void 0}function vl(e){return e.valueDeclaration&&ou(e.valueDeclaration)?gr(e.valueDeclaration.name):Vi(e.escapedName)}function o0e(e){let t=e.parent.parent;if(t){if(Hd(t))return gV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return gV(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:let i=r.argumentExpression;if(Fe(i))return i}break;case 217:return gV(t.expression);case 256:{if(Hd(t.statement)||ht(t.statement))return gV(t.statement);break}}}}function gV(e){let t=Po(e);return t&&Fe(t)?t:void 0}function XL(e,t){return!!(iu(e)&&Fe(e.name)&&gr(e.name)===gr(t)||Ml(e)&>(e.declarationList.declarations,r=>XL(r,t)))}function Kne(e){return e.name||o0e(e)}function iu(e){return!!e.name}function eF(e){switch(e.kind){case 80:return e;case 355:case 348:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(zl(r)){case 1:case 4:case 5:case 3:return YF(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return Kne(e);case 347:return o0e(e);case 277:{let{expression:r}=e;return Fe(r)?r:void 0}case 212:let t=e;if(XF(t))return t.argumentExpression}return e.name}function Po(e){if(e!==void 0)return eF(e)||(Ps(e)||Os(e)||Zc(e)?tF(e):void 0)}function tF(e){if(e.parent){if(mc(e.parent)||Xa(e.parent))return e.parent.name;if(dr(e.parent)&&e===e.parent.right){if(Fe(e.parent.left))return e.parent.left;if(Ns(e.parent.left))return YF(e.parent.left)}else if(wi(e.parent)&&Fe(e.parent.name))return e.parent.name}else return}function xv(e){if(bf(e))return jr(e.modifiers,bd)}function y0(e){if($r(e,98303))return jr(e.modifiers,Sa)}function a0e(e,t){if(e.name)if(Fe(e.name)){let r=e.name.escapedText;return $L(e.parent,t).filter(i=>Ym(i)&&Fe(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);x.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=$L(e.parent,t).filter(Ym);if(rnm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function qne(e){return s0e(e,!1)}function Xne(e){return s0e(e,!0)}function Yne(e){return!!Uf(e,Ym)}function $ne(e){return Uf(e,a1)}function Qne(e){return rF(e,K4)}function yV(e){return Uf(e,Tae)}function l0e(e){return Uf(e,cH)}function Zne(e){return Uf(e,cH,!0)}function c0e(e){return Uf(e,dH)}function ere(e){return Uf(e,dH,!0)}function d0e(e){return Uf(e,uH)}function tre(e){return Uf(e,uH,!0)}function u0e(e){return Uf(e,pH)}function nre(e){return Uf(e,pH,!0)}function rre(e){return Uf(e,U4,!0)}function vV(e){return Uf(e,fH)}function ire(e){return Uf(e,fH,!0)}function bV(e){return Uf(e,zk)}function nF(e){return Uf(e,mH)}function ore(e){return Uf(e,H4)}function p0e(e){return Uf(e,nm)}function EV(e){return Uf(e,J4)}function tE(e){let t=Uf(e,hP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function nE(e){let t=Uf(e,hP);return!t&&Ao(e)&&(t=Vr(kx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function YL(e){let t=ore(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=tE(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(gp(i)){let o=Vr(i.members,XI);return o&&o.type}if(hh(i)||kR(i))return i.type}}function $L(e,t){var r;if(!z2(e))return Xe;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=gj(e,t);x.assert(o.length<2||o[0]!==o[1]),i=va(o,s=>Xm(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function rE(e){return $L(e,!1)}function f0e(e){return $L(e,!0)}function Uf(e,t,r){return Vr($L(e,r),t)}function rF(e,t){return rE(e).filter(t)}function m0e(e,t){return rE(e).filter(r=>r.kind===t)}function QL(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:R7e(t)).join("")}function R7e(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?up(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Rv(e){if(yE(e)){if(wR(e.parent)){let t=iR(e.parent);if(t&&Nn(t.tags))return va(t.tags,r=>nm(r)?r.typeParameters:void 0)}return Xe}if(qf(e))return x.assert(e.parent.kind===327),va(e.parent.tags,t=>nm(t)?t.typeParameters:void 0);if(e.typeParameters||kae(e)&&e.typeParameters)return e.typeParameters;if(ir(e)){let t=d6(e);if(t.length)return t;let r=nE(e);if(r&&hh(r)&&r.typeParameters)return r.typeParameters}return Xe}function wx(e){return e.constraint?e.constraint:nm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Hh(e){return e.kind===80||e.kind===81}function iF(e){return e.kind===178||e.kind===177}function oF(e){return kr(e)&&!!(e.flags&64)}function SV(e){return Js(e)&&!!(e.flags&64)}function oT(e){return ia(e)&&!!(e.flags&64)}function Ud(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function eN(e){return Ud(e)&&!t1(e)&&!!e.questionDotToken}function aF(e){return eN(e.parent)&&e.parent.expression===e}function tN(e){return!Ud(e.parent)||eN(e.parent)||e!==e.parent.expression}function TV(e){return e.kind===226&&e.operatorToken.kind===61}function Ng(e){return If(e)&&Fe(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function gm(e){return Yl(e,8)}function sF(e){return t1(e)&&!!(e.flags&64)}function nN(e){return e.kind===252||e.kind===251}function AV(e){return e.kind===280||e.kind===279}function are(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function IV(e){return are(e)||e.kind===307||e.kind===311}function rN(e){return e.kind===355||e.kind===348}function _0e(e){return ZL(e.kind)}function ZL(e){return e>=166}function xV(e){return e>=0&&e<=165}function gI(e){return xV(e.kind)}function v0(e){return Ss(e,"pos")&&Ss(e,"end")}function iN(e){return 9<=e&&e<=15}function b0(e){return iN(e.kind)}function RV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Dv(e){return 15<=e&&e<=18}function sre(e){return Dv(e.kind)}function lF(e){let t=e.kind;return t===17||t===18}function yI(e){return Qu(e)||Kd(e)}function e2(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 lre(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 iE(e){return e2(e)||lre(e)}function DV(e){return e.kind===11||Dv(e.kind)}function cre(e){return Da(e)||Fe(e)}function rl(e){var t;return Fe(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function aT(e){var t;return Ki(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function t2(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function ou(e){return(Uo(e)||bI(e))&&Ki(e.name)}function Ox(e){return kr(e)&&Ki(e.name)}function Dy(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 oN(e){return!!(MI(e)&31)}function CV(e){return oN(e)||e===126||e===164||e===129}function Sa(e){return Dy(e.kind)}function Xu(e){let t=e.kind;return t===166||t===80}function rc(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function sT(e){let t=e.kind;return t===80||t===206||t===207}function $o(e){return!!e&&vI(e.kind)}function Wx(e){return!!e&&(vI(e.kind)||Al(e))}function ws(e){return e&&h0e(e.kind)}function aN(e){return e.kind===112||e.kind===97}function h0e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function vI(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return h0e(e)}}function NV(e){return Yi(e)||N_(e)||Ko(e)&&$o(e.parent)}function $c(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function ci(e){return e&&(e.kind===263||e.kind===231)}function Cv(e){return e&&(e.kind===177||e.kind===178)}function Mu(e){return Uo(e)&&I_(e)}function dre(e){return ir(e)&&j6(e)?(!D0(e)||!Fv(e.expression))&&!yT(e,!0):e.parent&&ci(e.parent)&&Uo(e)&&!I_(e)}function bI(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function g0e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function il(e){return Sa(e)||bd(e)}function lT(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function cF(e){return lT(e)||$c(e)}function Pg(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function ji(e){return eU(e.kind)}function ure(e){switch(e.kind){case 184:case 185:return!0}return!1}function Qo(e){if(e){let t=e.kind;return t===207||t===206}return!1}function sN(e){let t=e.kind;return t===209||t===210}function dF(e){let t=e.kind;return t===208||t===232}function n2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function pre(e){return wi(e)||Ao(e)||i2(e)||o2(e)}function r2(e){return PV(e)||MV(e)}function PV(e){switch(e.kind){case 206:case 210:return!0}return!1}function i2(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function MV(e){switch(e.kind){case 207:case 209:return!0}return!1}function o2(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Mc(e,!0)}function fre(e){let t=e.kind;return t===211||t===166||t===205}function mre(e){let t=e.kind;return t===211||t===166}function LV(e){return E0(e)||F0(e)}function E0(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function v_(e){return e.kind===213||e.kind===214}function EI(e){let t=e.kind;return t===228||t===15}function Yu(e){return y0e(gm(e).kind)}function y0e(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 kV(e){return v0e(gm(e).kind)}function v0e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return y0e(e)}}function _re(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function hre(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return b0(e)}}function ht(e){return D7e(gm(e).kind)}function D7e(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 v0e(e)}}function cT(e){let t=e.kind;return t===216||t===234}function b0e(e){return oH(e)||B4(e)}function Nv(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Nv(e.statement,t)}return!1}function gre(e){return Ll(e)||Xl(e)}function yre(e){return gt(e,gre)}function uF(e){return!_2(e)&&!Ll(e)&&!$r(e,32)&&!Md(e)}function a2(e){return _2(e)||Ll(e)||$r(e,32)}function Fx(e){return e.kind===249||e.kind===250}function pF(e){return Ko(e)||ht(e)}function wV(e){return Ko(e)}function vf(e){return Uc(e)||ht(e)}function vre(e){let t=e.kind;return t===268||t===267||t===80}function E0e(e){let t=e.kind;return t===268||t===267}function S0e(e){let t=e.kind;return t===80||t===267}function OV(e){let t=e.kind;return t===275||t===274}function s2(e){return e.kind===267||e.kind===266}function b_(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 lh(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 C7e(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 bre(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 Ere(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 Hd(e){return e.kind===168?e.parent&&e.parent.kind!==352||ir(e):C7e(e.kind)}function Sre(e){return bre(e.kind)}function l2(e){return Ere(e.kind)}function Hi(e){let t=e.kind;return Ere(t)||bre(t)||N7e(e)}function N7e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!x0(e)}function Tre(e){let t=e.kind;return Ere(t)||bre(t)||t===241}function Are(e){let t=e.kind;return t===283||t===166||t===80}function lN(e){let t=e.kind;return t===110||t===80||t===211||t===295}function c2(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function fF(e){let t=e.kind;return t===291||t===293}function Ire(e){let t=e.kind;return t===11||t===294}function au(e){let t=e.kind;return t===286||t===285}function mF(e){let t=e.kind;return t===296||t===297}function zx(e){return e.kind>=316&&e.kind<=357}function _F(e){return e.kind===327||e.kind===326||e.kind===328||SI(e)||Bx(e)||FT(e)||yE(e)}function Bx(e){return e.kind>=334&&e.kind<=357}function Cy(e){return e.kind===178}function Pv(e){return e.kind===177}function kp(e){if(!z2(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function hF(e){return!!e.type}function Mv(e){return!!e.initializer}function dT(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function WV(e){return e.kind===291||e.kind===293||Pg(e)}function gF(e){return e.kind===183||e.kind===233}function xre(e){let t=Rre;for(let r of e){if(!r.length)continue;let i=0;for(;i0?r.parent.parameters[o-1]:void 0,l=t.text,d=s?Eo(Yb(l,Na(l,s.end+1,!1,!0)),jh(l,e.pos)):Yb(l,Na(l,e.pos,!1,!0));return gt(d)&&T0e(Ja(d),t)}let i=r&&ij(r,t);return!!gn(i,o=>T0e(o,t))}var d2,BV,Rre,P7e=bt({"src/compiler/utilitiesPublic.ts"(){"use strict";ea(),d2=qL(gd(0,0),0),BV=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Rre=1073741823}});function cl(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function Dre(e,t){return jr(e.declarations||Xe,r=>r.kind===t)}function aa(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function ch(e){return(e.flags&33554432)!==0}function M7e(){var e="";let 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&&Cg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:qa,decreaseIndent:qa,clear:()=>e=""}}function yF(e,t){return e.configFilePath!==t.configFilePath||Cre(e,t)}function Cre(e,t){return Gx(e,t,d3)}function Nre(e,t){return Gx(e,t,XH)}function Gx(e,t,r){return e!==t&&r.some(i=>!W6(x6(e,i),x6(t,i)))}function Pre(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Yi(e))return;e=e.parent}}function Gc(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function dh(e,t){let r=e.keys();for(let i of r){let o=t(i);if(o)return o}}function vF(e,t){e.forEach((r,i)=>{t.set(i,r)})}function cN(e){let t=_k.getText();try{return e(_k),_k.getText()}finally{_k.clear(),_k.writeKeyword(t)}}function u2(e){return e.end-e.pos}function GV(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Mre(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&&L7e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function bF(e,t,r,i,o){var s;let l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,d=l&&(du(t.getCompilerOptions())===2?[f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[f.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,[l,l.includes(Eh+"@types/")?`@types/${qR(o)}`:o]]),p=d?zo(void 0,d[0],...d[1]):t.typesPackageExists(o)?zo(void 0,f.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,o,qR(o)):t.packageBundlesTypes(o)?zo(void 0,f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):zo(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,qR(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function L7e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function EF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Lv(e){return`${EF(e)}@${e.version}`}function Lre(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 VV(e,t,r,i){x.assert(e.length===t.length);for(let o=0;o=0),Dg(t)[e]}function A0e(e){let t=Gn(e),r=hs(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function f2(e,t){x.assert(e>=0);let r=Dg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{let s=r[i],l=r[i+1]-1;for(x.assert(jd(o.charCodeAt(l)));s<=l&&jd(o.charCodeAt(l));)l--;return l}}function TF(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Fl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Hf(e){return!Fl(e)}function wre(e,t){return fl(e)?t===e.expression:Al(e)?t===e.modifiers:_p(e)?t===e.initializer:Uo(e)?t===e.questionToken&&Mu(e):mc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||m2(e.modifiers,t,il):Zu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||m2(e.modifiers,t,il):Ul(e)?t===e.exclamationToken:Pl(e)?t===e.typeParameters||t===e.type||m2(e.typeParameters,t,fl):Qp(e)?t===e.typeParameters||m2(e.typeParameters,t,fl):hp(e)?t===e.typeParameters||t===e.type||m2(e.typeParameters,t,fl):Fk(e)?t===e.modifiers||m2(e.modifiers,t,il):!1}function m2(e,t,r){return!e||To(t)||!r(t)?!1:Bo(e,t)}function I0e(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${hs(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Wo(r.entries()).filter(([l,d])=>d.type===0&&!i.get(l)).map(([l,d])=>d)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function oE(e,t,r){return Fl(e)?e.pos:zx(e)||e.kind===12?Na((t||Gn(e)).text,e.pos,!1,!0):r&&kp(e)?oE(e.jsDoc[0],t):e.kind===358&&e._children.length>0?oE(e._children[0],t,r):Na((t||Gn(e)).text,e.pos,!1,!1,x2(e))}function HV(e,t){let r=!Fl(e)&&Am(e)?sI(e.modifiers,bd):void 0;return r?Na((t||Gn(e)).text,r.end):oE(e,t)}function S0(e,t,r=!1){return dN(e.text,t,r)}function w7e(e){return!!Fn(e,$0)}function IF(e){return!!(Xl(e)&&e.exportClause&&yh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function dN(e,t,r=!1){if(Fl(t))return"";let i=e.substring(r?t.pos:Na(e,t.pos),t.end);return w7e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` `)),i}function uc(e,t=!1){return S0(Gn(e),e,t)}function O7e(e){return e.pos}function jx(e,t){return by(e,t,O7e,Zs)}function za(e){let t=e.emitNode;return t&&t.flags||0}function ym(e){let t=e.emitNode;return t&&t.internalFlags||0}function Wre(e,t,r){if(t&&W7e(e,r))return S0(t,e);switch(e.kind){case 11:{let i=r&2?wj:r&1||za(e)&16777216?Qh:Y2;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=r&1||za(e)&16777216?Qh:Y2,o=e.rawText??Lj(i(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 x.fail(`Literal kind '${e.kind}' not accounted for.`)}function W7e(e,t){if(Ks(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(mp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!P4(e)}function Fre(e){return No(e)?'"'+Y2(e)+'"':""+e}function zre(e){return nc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function KV(e){return(Ry(e)&7)!==0||JV(e)}function JV(e){let t=A_(e);return t.kind===260&&t.parent.kind===299}function Md(e){return ql(e)&&(e.name.kind===11||E_(e))}function xF(e){return ql(e)&&e.name.kind===11}function qV(e){return ql(e)&&Da(e.name)}function Bre(e){return ql(e)||Fe(e)}function uN(e){return F7e(e.valueDeclaration)}function F7e(e){return!!e&&e.kind===267&&!e.body}function Gre(e){return e.kind===312||e.kind===267||Wx(e)}function E_(e){return!!(e.flags&2048)}function T0(e){return Md(e)&&XV(e)}function XV(e){switch(e.parent.kind){case 312:return oc(e.parent);case 268:return Md(e.parent.parent)&&Yi(e.parent.parent.parent)&&!oc(e.parent.parent.parent)}return!1}function YV(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!T0(r)&&!(ql(r)&&E_(r)))}function z7e(e){return e===1||e===100||e===199}function TI(e,t){return oc(e)||z7e(Ld(t))&&!!e.commonJsModuleIndicator}function $V(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:cu(t,"alwaysStrict")||Nae(e.statements)?!0:oc(e)||em(t)?Ld(t)>=5?!0:!t.noImplicitUseStrict:!1}function QV(e){return!!(e.flags&33554432)||$r(e,128)}function ZV(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!Wx(t)}return!1}function ej(e){switch(x.type(e),e.kind){case 345:case 353:case 330:return!0;default:return tj(e)}}function tj(e){switch(x.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 pT(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Vre(e){return pT(e)||R0(e)}function RF(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 jre(e){return _2(e)||ql(e)||rg(e)||Op(e)}function _2(e){return pT(e)||Xl(e)}function nj(e){return Fn(e.parent,t=>!!(mK(t)&1))}function uh(e){return Fn(e.parent,t=>ZV(t,t.parent))}function Ure(e,t){let r=uh(e);for(;r;)t(r),r=uh(r)}function Ts(e){return!e||u2(e)===0?"(Missing)":uc(e)}function Hre(e){return e.declaration?Ts(e.declaration.parameters[0].name):void 0}function h2(e){return e.kind===167&&!$p(e.expression)}function pN(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 pl(e.text);case 167:return $p(e.expression)?pl(e.expression.text):void 0;case 295:return FI(e);default:return x.assertNever(e)}}function Ux(e){return x.checkDefined(pN(e))}function up(e){switch(e.kind){case 110:return"this";case 81:case 80:return u2(e)===0?gr(e):uc(e);case 166:return up(e.left)+"."+up(e.right);case 211:return Fe(e.name)||Ki(e.name)?up(e.expression)+"."+up(e.name):x.assertNever(e.name);case 318:return up(e.left)+up(e.right);case 295:return up(e.namespace)+":"+up(e.name);default:return x.assertNever(e)}}function Pr(e,t,...r){let i=Gn(e);return Kf(i,e,t,...r)}function Hx(e,t,r,...i){let o=Na(e.text,t.pos);return Qc(e,o,t.end-o,r,...i)}function Kf(e,t,r,...i){let o=fT(e,t);return Qc(e,o.start,o.length,r,...i)}function Mg(e,t,r,i){let o=fT(e,t);return DF(e,o.start,o.length,r,i)}function g2(e,t,r,i){let o=Na(e.text,t.pos);return DF(e,o,t.end-o,r,i)}function Kre(e,t,r){x.assertGreaterThanOrEqual(t,0),x.assertGreaterThanOrEqual(r,0),x.assertLessThanOrEqual(t,e.length),x.assertLessThanOrEqual(t+r,e.length)}function DF(e,t,r,i,o){return Kre(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function rj(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 Jre(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function qre(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function ph(e,t){let r=xy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return dc(i,r.getTokenEnd())}function Xre(e,t){let r=xy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function B7e(e,t){let r=Na(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=hs(e,t.body.pos),{line:o}=hs(e,t.body.end);if(i0?t.statements[0].pos:t.end;return dc(s,l)}case 253:case 229:{let s=Na(e.text,t.pos);return ph(e,s)}case 238:{let s=Na(e.text,t.expression.end);return ph(e,s)}case 357:{let s=Na(e.text,t.tagName.pos);return ph(e,s)}}if(r===void 0)return ph(e,t.pos);x.assert(!Xm(r));let i=Fl(r),o=i||UI(t)?r.pos:Na(e.text,r.pos);return i?(x.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),x.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(x.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),x.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),dc(o,r.end)}function wp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Jf(e){return e.scriptKind===6}function A0(e){return!!(Zb(e)&4096)}function CF(e){return!!(Zb(e)&8&&!dp(e,e.parent))}function y2(e){return(Ry(e)&7)===6}function v2(e){return(Ry(e)&7)===4}function Kx(e){return(Ry(e)&7)===2}function NF(e){return(Ry(e)&7)===1}function mT(e){return e.kind===213&&e.expression.kind===108}function Op(e){return e.kind===213&&e.expression.kind===102}function Jx(e){return lP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function wv(e){return rg(e)&&Kv(e.argument)&&Da(e.argument.literal)}function vm(e){return e.kind===244&&e.expression.kind===11}function b2(e){return!!(za(e)&2097152)}function PF(e){return b2(e)&&Ec(e)}function G7e(e){return Fe(e.name)&&!e.initializer}function MF(e){return b2(e)&&Ml(e)&&oo(e.declarationList.declarations,G7e)}function ij(e,t){return e.kind!==12?jh(t.text,e.pos):void 0}function oj(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Eo(Yb(t,e.pos),jh(t,e.pos)):jh(t,e.pos);return jr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function qh(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 C0e(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),x.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:{let{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 C0e(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 Bo(t.typeArguments,e)}}}return!1}function C0e(e){return K4(e.parent)||a1(e.parent)||Zp(e.parent)&&!f6(e)}function N0e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function I0(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 Go(i,r)}}}function Yre(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);let o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if($o(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else qh(i)||Go(i,r)}}}function aj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?nh(e.typeArguments):void 0}function $re(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function qx(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 Qre(e){return qx(e)||Cv(e)}function fN(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Zre(e){return ir(e)?Ma(e.parent)&&dr(e.parent.parent)&&zl(e.parent.parent)===2||LF(e.parent):!1}function LF(e){return ir(e)?dr(e)&&zl(e)===1:!1}function eie(e){return(wi(e)?Kx(e)&&Fe(e.name)&&fN(e):Uo(e)?CN(e)&&pc(e):_p(e)&&CN(e))||LF(e)}function tie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function sj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function x0(e){return e&&e.kind===241&&$o(e.parent)}function bm(e){return e&&e.kind===174&&e.parent.kind===210}function kF(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function nie(e){return e&&e.kind===1}function P0e(e){return e&&e.kind===0}function Xx(e,t,r,i){return gn(e?.properties,o=>{if(!mc(o))return;let s=pN(o.name);return t===s||i&&i===s?r(o):void 0})}function rie(e,t,r){return Xx(e,t,i=>uu(i.initializer)?Vr(i.initializer.elements,o=>Da(o)&&o.text===r):void 0)}function mN(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ri(t,Ma)}}function wF(e,t,r){return E2(e,t,i=>uu(i.initializer)?Vr(i.initializer.elements,o=>Da(o)&&o.text===r):void 0)}function E2(e,t,r){return Xx(mN(e),t,r)}function Wp(e){return Fn(e.parent,$o)}function iie(e){return Fn(e.parent,ws)}function ad(e){return Fn(e.parent,ci)}function oie(e){return Fn(e.parent,t=>ci(t)||$o(t)?"quit":Al(t))}function OF(e){return Fn(e.parent,Wx)}function WF(e){let t=Fn(e.parent,r=>ci(r)?"quit":bd(r));return t&&ci(t.parent)?ad(t.parent):ad(t??e)}function Lu(e,t,r){for(x.assert(e.kind!==312);;){if(e=e.parent,!e)return x.fail();switch(e.kind){case 167:if(r&&ci(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&$c(e.parent.parent)?e=e.parent.parent:$c(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 aie(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 FF(e){Fe(e)&&(Sc(e.parent)||Ec(e.parent))&&e.parent.name===e&&(e=e.parent);let t=Lu(e,!0,!1);return Yi(t)}function sie(e){let t=Lu(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function S2(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&&$c(e.parent.parent)?e=e.parent.parent:$c(e.parent)&&(e=e.parent);break}}}function _T(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 M0e(e){return e.kind===108||ku(e)}function ku(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function T2(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function zF(e){var t;return!!e&&wi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function lie(e){return!!e&&(Zu(e)||mc(e))&&dr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function A2(e){switch(e.kind){case 183:return e.typeName;case 233:return Bl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function BF(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function GF(e,t,r,i){if(e&&iu(t)&&Ki(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Sc(r):ci(r)&&!w0(t)&&!Gj(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Sc(r):ci(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&M0(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function Yx(e,t,r,i){return bf(t)&&GF(e,t,r,i)}function I2(e,t,r,i){return Yx(e,t,r,i)||_N(e,t,r)}function _N(e,t,r){switch(t.kind){case 263:return gt(t.members,i=>I2(e,i,t,r));case 231:return!e&>(t.members,i=>I2(e,i,t,r));case 174:case 178:case 176:return gt(t.parameters,i=>Yx(e,i,t,r));default:return!1}}function Ny(e,t){if(Yx(e,t))return!0;let r=Zh(t);return!!r&&_N(e,r,t)}function lj(e,t,r){let i;if(Cv(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=AT(r.members,t),d=bf(o)?o:s&&bf(s)?s:void 0;if(!d||t!==d)return!1;i=l?.parameters}else Ul(t)&&(i=t.parameters);if(Yx(e,t,r))return!0;if(i){for(let o of i)if(!L0(o)&&Yx(e,o,t,r))return!0}return!1}function cj(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return cj(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function $x(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Xh(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!Zp(e.parent)&&!a1(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||SI(e.parent)||_P(e.parent)||gE(e.parent)||$x(e);case 318:for(;gE(e.parent);)e=e.parent;return e.parent.kind===186||SI(e.parent)||_P(e.parent)||gE(e.parent)||$x(e);case 81:return dr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||SI(e.parent)||_P(e.parent)||gE(e.parent)||$x(e))return!0;case 9:case 10:case 11:case 15:case 110:return VF(e);default:return!1}}function VF(e){let{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:let r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:let 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&&!qh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Xh(t)}}function jF(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function cie(e){return yh(e)&&!!e.parent.moduleSpecifier}function aE(e){return e.kind===271&&e.moduleReference.kind===283}function hN(e){return x.assert(aE(e)),e.moduleReference.expression}function dj(e){return R0(e)&&hR(e.initializer).arguments[0]}function Qx(e){return e.kind===271&&e.moduleReference.kind!==283}function su(e){return ir(e)}function L0e(e){return!ir(e)}function ir(e){return!!e&&!!(e.flags&524288)}function UF(e){return!!e&&!!(e.flags&134217728)}function uj(e){return!Jf(e)}function x2(e){return!!e&&!!(e.flags&16777216)}function HF(e){return If(e)&&Fe(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function bu(e,t){if(e.kind!==213)return!1;let{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;let o=i[0];return!t||as(o)}function KF(e){return k0e(e,!1)}function R0(e){return k0e(e,!0)}function die(e){return Xa(e)&&R0(e.parent.parent)}function k0e(e,t){return wi(e)&&!!e.initializer&&bu(t?hR(e.initializer):e.initializer,!0)}function pj(e){return Ml(e)&&e.declarationList.declarations.length>0&&oo(e.declarationList.declarations,t=>KF(t))}function R2(e){return e===39||e===34}function JF(e,t){return S0(t,e).charCodeAt(0)===34}function gN(e){return dr(e)||Ns(e)||Fe(e)||ia(e)}function D2(e){return ir(e)&&e.initializer&&dr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Bl(e.name)&&Zx(e.name,e.initializer.left)?e.initializer.right:e.initializer}function C2(e){let t=D2(e);return t&&sE(t,Fv(e.name))}function V7e(e,t){return gn(e.properties,r=>mc(r)&&Fe(r.name)&&r.name.escapedText==="value"&&r.initializer&&sE(r.initializer,t))}function AI(e){if(e&&e.parent&&dr(e.parent)&&e.parent.operatorToken.kind===64){let t=Fv(e.parent.left);return sE(e.parent.right,t)||j7e(e.parent.left,e.parent.right,t)}if(e&&ia(e)&&gT(e)){let t=V7e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function sE(e,t){if(ia(e)){let r=fs(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||Ma(e)&&(e.properties.length===0||t))return e}function j7e(e,t,r){let i=dr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&sE(t.right,r);if(i&&Zx(e,t.left))return i}function uie(e){let t=wi(e.parent)?e.parent.name:dr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&sE(e.right,Fv(t))&&Bl(t)&&Zx(t,e.left)}function fj(e){if(dr(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&dr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Fe(t.left))return t.left}else if(wi(e.parent))return e.parent.name}function Zx(e,t){return T_(e)&&T_(t)?Xf(e)===Xf(t):Hh(e)&&qF(t)&&(t.expression.kind===110||Fe(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?Zx(e,M2(t)):qF(e)&&qF(t)?Lg(e)===Lg(t)&&Zx(e.expression,t.expression):!1}function N2(e){for(;Mc(e,!0);)e=e.right;return e}function hT(e){return Fe(e)&&e.escapedText==="exports"}function mj(e){return Fe(e)&&e.escapedText==="module"}function Yh(e){return(kr(e)||P2(e))&&mj(e.expression)&&Lg(e)==="exports"}function zl(e){let t=U7e(e);return t===5||ir(e)?t:0}function gT(e){return Nn(e.arguments)===3&&kr(e.expression)&&Fe(e.expression.expression)&&gr(e.expression.expression)==="Object"&&gr(e.expression.name)==="defineProperty"&&$p(e.arguments[1])&&yT(e.arguments[0],!0)}function qF(e){return kr(e)||P2(e)}function P2(e){return Js(e)&&$p(e.argumentExpression)}function D0(e,t){return kr(e)&&(!t&&e.expression.kind===110||Fe(e.name)&&yT(e.expression,!0))||XF(e,t)}function XF(e,t){return P2(e)&&(!t&&e.expression.kind===110||Bl(e.expression)||D0(e.expression,!0))}function yT(e,t){return Bl(e)||D0(e,t)}function M2(e){return kr(e)?e.name:e.argumentExpression}function U7e(e){if(ia(e)){if(!gT(e))return 0;let t=e.arguments[0];return hT(t)||Yh(t)?8:D0(t)&&Lg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ns(e.left)||H7e(N2(e))?0:yT(e.left.expression,!0)&&Lg(e.left)==="prototype"&&Ma(_j(e))?6:L2(e.left)}function H7e(e){return e1(e)&&mp(e.expression)&&e.expression.text==="0"}function YF(e){if(kr(e))return e.name;let t=fs(e.argumentExpression);return mp(t)||as(t)?t:e}function Lg(e){let t=YF(e);if(t){if(Fe(t))return t.escapedText;if(as(t)||mp(t))return pl(t.text)}}function L2(e){if(e.expression.kind===110)return 4;if(Yh(e))return 2;if(yT(e.expression,!0)){if(Fv(e.expression))return 3;let t=e;for(;!Fe(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Lg(t)==="exports")&&D0(e))return 1;if(yT(e,!0)||Js(e)&&n6(e))return 5}return 0}function _j(e){for(;dr(e.right);)e=e.right;return e.right}function k2(e){return dr(e)&&zl(e)===3}function pie(e){return ir(e)&&e.parent&&e.parent.kind===244&&(!Js(e)||P2(e))&&!!tE(e.parent)}function w2(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!ir(t)&&!(r.flags&33554432))&&gN(r)&&!gN(t)||r.kind!==t.kind&&Bre(r))&&(e.valueDeclaration=t)}function fie(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||wi(t)&&t.initializer&&$o(t.initializer)}function eR(e){var t,r;switch(e.kind){case 260:case 208:return(t=Fn(e.initializer,i=>bu(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ri(e.moduleSpecifier,as);case 271:return ri((r=ri(e.moduleReference,vh))==null?void 0:r.expression,as);case 273:case 280:return ri(e.parent.moduleSpecifier,as);case 274:case 281:return ri(e.parent.parent.moduleSpecifier,as);case 276:return ri(e.parent.parent.parent.moduleSpecifier,as);case 205:return wv(e)?e.argument.literal:void 0;default:x.assertNever(e)}}function yN(e){return O2(e)||x.failBadSyntaxKind(e.parent)}function O2(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Op(e.parent)||bu(e.parent,!1)?e.parent:void 0;case 201:return x.assert(Da(e)),ri(e.parent.parent,rg);default:return}}function tR(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 wv(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 x.assertNever(e)}}function nR(e){switch(e.kind){case 272:return e.importClause&&ri(e.importClause.namedBindings,Xv);case 271:return e;case 278:return e.exportClause&&ri(e.exportClause,yh);default:return x.assertNever(e)}}function II(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function $F(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=Xv(e.namedBindings)?t(e.namedBindings):gn(e.namedBindings.elements,t);if(r)return r}}function xI(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 rR(e){let t=kR(e)?Xc(e.parameters):void 0,r=ri(t&&t.name,Fe);return!!r&&r.escapedText==="new"}function qf(e){return e.kind===353||e.kind===345||e.kind===347}function W2(e){return qf(e)||Tm(e)}function K7e(e){return ed(e)&&dr(e.expression)&&e.expression.operatorToken.kind===64?N2(e.expression):void 0}function w0e(e){return ed(e)&&dr(e.expression)&&zl(e.expression)!==0&&dr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function hj(e){switch(e.kind){case 243:let t=RI(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function RI(e){return Ml(e)?Xc(e.declarationList.declarations):void 0}function O0e(e){return ql(e)&&e.body&&e.body.kind===267?e.body:void 0}function F2(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 z2(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 gj(e,t){let r;qx(e)&&Mv(e)&&kp(e.initializer)&&(r=Hr(r,W0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(kp(i)&&(r=Hr(r,W0e(e,i.jsDoc))),i.kind===169){r=Hr(r,(t?Jne:kx)(i));break}if(i.kind===168){r=Hr(r,(t?Xne:qne)(i));break}i=yj(i)}return r||Xe}function W0e(e,t){let r=Ja(t);return va(t,i=>{if(i===r){let o=jr(i.tags,s=>J7e(e,s));return i.tags===o?[i]:o}else return jr(i.tags,wR)})}function J7e(e,t){return!(hP(t)||J4(t))||!t.parent||!Xm(t.parent)||!Ou(t.parent.parent)||t.parent.parent===e}function yj(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||O0e(t)||Mc(e))return t;if(t.parent&&(RI(t.parent)===e||Mc(t)))return t.parent;if(t.parent&&t.parent.parent&&(RI(t.parent.parent)||hj(t.parent.parent)===e||w0e(t.parent.parent)))return t.parent.parent}function B2(e){if(e.symbol)return e.symbol;if(!Fe(e.name))return;let t=e.name.escapedText,r=lE(e);if(!r)return;let i=Vr(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function QF(e){if(Xm(e.parent)&&e.parent.tags){let t=Vr(e.parent.tags,qf);if(t)return t}return lE(e)}function vj(e){return rF(e,wR)}function lE(e){let t=cE(e);if(t)return _p(t)&&t.type&&$o(t.type)?t.type:$o(t)?t:void 0}function cE(e){let t=vT(e);if(t)return w0e(t)||K7e(t)||hj(t)||RI(t)||O0e(t)||t}function vT(e){let t=iR(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===$s(r.jsDoc))return r}function iR(e){return Fn(e.parent,Xm)}function mie(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Vr(r,i=>i.name.escapedText===t)}function F0e(e){return!!e.typeArguments}function _ie(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t,i=r.operatorToken.kind;return Ly(i)&&r.left===e?r:void 0;case 224:case 225:let o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:let l=t;return l.initializer===e?l:void 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;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function DI(e){let t=_ie(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||NN(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function $h(e){return!!_ie(e)}function q7e(e){let t=fs(e.right);return t.kind===226&&AH(t.operatorToken.kind)}function bj(e){let t=_ie(e);return!!t&&Mc(t,!0)&&q7e(t)}function hie(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 gie(e){return Ps(e)||Os(e)||bI(e)||Ec(e)||Pl(e)}function z0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function G2(e){return z0e(e,196)}function Py(e){return z0e(e,217)}function yie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function V2(e){for(;NT(e);)e=e.type;return e}function fs(e,t){return Yl(e,t?17:1)}function Ej(e){return e.kind!==211&&e.kind!==212?!1:(e=Py(e.parent),e&&e.kind===220)}function C0(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function kg(e){return!Yi(e)&&!Qo(e)&&Hd(e.parent)&&e.parent.name===e}function vN(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Ya(t))return t.parent;case 80:if(Hd(t))return t.name===e?t:void 0;if(Su(t)){let r=t.parent;return Ym(r)&&r.name===t?r:void 0}else{let r=t.parent;return dr(r)&&zl(r)!==0&&(r.left.symbol||r.symbol)&&Po(r)===e?r:void 0}case 81:return Hd(t)&&t.name===e?t:void 0;default:return}}function j2(e){return $p(e)&&e.parent.kind===167&&Hd(e.parent.parent)}function vie(e){let 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 B0e(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&&oR(e)?!0:ir(e)&&(dr(e)&&zl(e)===2&&oR(e)||kr(e)&&dr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&U2(e.parent.right))}function Sj(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 Sj(e)}}function U2(e){return Bl(e)||Zc(e)}function oR(e){let t=Tj(e);return U2(t)}function Tj(e){return Ll(e)?e.expression:e.right}function bie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function S_(e){let t=N0(e);if(t&&ir(e)){let r=$ne(e);if(r)return r.class}return t}function N0(e){let t=H2(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function aR(e){if(ir(e))return Qne(e).map(t=>t.class);{let t=H2(e.heritageClauses,119);return t?.types}}function bN(e){return pu(e)?EN(e)||Xe:ci(e)&&Eo(pI(S_(e)),aR(e))||Xe}function EN(e){let t=H2(e.heritageClauses,96);return t?t.types:void 0}function H2(e,t){if(e){for(let r of e)if(r.token===t)return r}}function dE(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function wu(e){return 83<=e&&e<=165}function Aj(e){return 19<=e&&e<=79}function ZF(e){return wu(e)||Aj(e)}function e6(e){return 128<=e&&e<=165}function Ij(e){return wu(e)&&!e6(e)}function G0e(e){return 119<=e&&e<=127}function CI(e){let t=g0(e);return t!==void 0&&Ij(t)}function V0e(e){let t=g0(e);return t!==void 0&&wu(t)}function xj(e){let t=eE(e);return!!t&&!e6(t)}function sR(e){return 2<=e&&e<=7}function Vc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:$r(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function SN(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&$r(e,1024)}return!1}function $p(e){return as(e)||mp(e)}function t6(e){return qv(e)&&(e.operator===40||e.operator===41)&&mp(e.operand)}function Ov(e){let t=Po(e);return!!t&&n6(t)}function n6(e){if(!(e.kind===167||e.kind===212))return!1;let t=Js(e)?fs(e.argumentExpression):e.expression;return!$p(t)&&!t6(t)}function bT(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return pl(e.text);case 167:let t=e.expression;return $p(t)?pl(t.text):t6(t)?t.operator===41?da(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return FI(e);default:return x.assertNever(e)}}function T_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Xf(e){return Hh(e)?gr(e):qm(e)?QN(e):e.text}function TN(e){return Hh(e)?e.escapedText:qm(e)?FI(e):pl(e.text)}function j0e(e){return`__@${ba(e)}@${e.escapedName}`}function K2(e,t){return`__#${ba(e)}@${t}`}function J2(e){return ao(e.escapedName,"__@")}function Eie(e){return ao(e.escapedName,"__#")}function U0e(e){return e.kind===80&&e.escapedText==="Symbol"}function Sie(e){return Fe(e)?gr(e)==="__proto__":Da(e)&&e.text==="__proto__"}function AN(e,t){switch(e=Yl(e),e.kind){case 231:if(OK(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 Rj(e){switch(e.kind){case 303:return!Sie(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Fe(e.name)&&!!e.initializer;case 169:return Fe(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Fe(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 Fe(e.left)}break;case 277:return!0}return!1}function pp(e,t){if(!Rj(e))return!1;switch(e.kind){case 303:return AN(e.initializer,t);case 304:return AN(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return AN(e.initializer,t);case 226:return AN(e.right,t);case 277:return AN(e.expression,t)}}function Dj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function P0(e){return A_(e).kind===169}function A_(e){for(;e.kind===208;)e=e.parent.parent;return e}function Cj(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Ks(e){return Km(e.pos)||Km(e.end)}function H0e(e){return Do(e,Yi)||e}function Nj(e){let t=Mj(e),r=e.kind===214&&e.arguments!==void 0;return Pj(e.kind,t,r)}function Pj(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 IN(e){let t=Mj(e),r=e.kind===214&&e.arguments!==void 0;return q2(e.kind,t,r)}function Mj(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function q2(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 X2(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 X2(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 lR(e){return jr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function cR(){let e=[],t=[],r=new Map,i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:d};function o(p){let h;if(p.file?h=r.get(p.file.fileName):h=e,!h)return;let m=by(h,p,Qs,T6);if(m>=0)return h[m]}function s(p){let h;p.file?(h=r.get(p.file.fileName),h||(h=[],r.set(p.file.fileName,h),vv(t,p.file.fileName,Vd))):(i&&(i=!1,e=e.slice()),h=e),vv(h,p,T6)}function l(){return i=!0,e}function d(p){if(p)return r.get(p)||[];let h=wC(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function Lj(e){return e.replace(gSe,"\\${")}function Tie(e){return!!((e.templateFlags||0)&2048)}function kj(e){return e&&!!(HI(e)?Tie(e):Tie(e.head)||gt(e.templateSpans,t=>Tie(t.literal)))}function K0e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function X7e(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return ESe.get(e)||K0e(e.charCodeAt(0))}function Qh(e,t){let r=t===96?bSe:t===39?vSe:ySe;return e.replace(r,X7e)}function Y2(e,t){return e=Qh(e,t),Loe.test(e)?e.replace(Loe,r=>K0e(r.charCodeAt(0))):e}function Y7e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $7e(e){return e.charCodeAt(0)===0?"�":ASe.get(e)||Y7e(e.charCodeAt(0))}function wj(e,t){let r=t===39?TSe:SSe;return e.replace(r,$7e)}function Yf(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&Q7e(e.charCodeAt(0))?e.substring(1,t-1):e}function Q7e(e){return e===39||e===34||e===96}function dR(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function r6(e){let t=ZN[1];for(let r=ZN.length;r<=e;r++)ZN.push(ZN[r-1]+t);return ZN[e]}function uR(){return ZN[1].length}function $2(e){var t,r,i,o,s,l=!1;function d(D){let w=hI(D);w.length>1?(o=o+w.length-1,s=t.length-D.length+Ja(w),i=s-t.length===0):i=!1}function p(D){D&&D.length&&(i&&(D=r6(r)+D,i=!1),t+=D,d(D))}function h(D){D&&(l=!1),p(D)}function m(D){D&&(l=!0),p(D)}function y(){t="",r=0,i=!0,o=0,s=0,l=!1}function E(D){D!==void 0&&(t+=D,d(D),l=!1)}function S(D){D&&D.length&&h(D)}function A(D){(!i||D)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function N(){return i?t.length:t.length+e.length}return y(),{write:h,rawWrite:E,writeLiteral:S,writeLine:A,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*uR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Cg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(D,w)=>h(D),writeTrailingSemicolon:h,writeComment:m,getTextPosWithWriteLine:N}}function Oj(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,o){r(),e.writeSymbol(i,o)},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 pR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function My(e){return Nd(pR(e))}function i6(e,t,r){return t.moduleName||Wj(e,t.fileName,r&&r.fileName)}function J0e(e,t){return e.getCanonicalFileName(ho(t,e.getCurrentDirectory()))}function Aie(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=tR(r);if(!(o&&as(o)&&!Lp(o.text)&&!J0e(e,i.path).includes(J0e(e,Bc(e.getCommonSourceDirectory())))))return i6(e,i)}function Wj(e,t,r){let i=p=>e.getCanonicalFileName(p),o=tl(r?oi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=ho(t,e.getCurrentDirectory()),l=_I(o,s,o,i,!1),d=Eu(l);return r?h0(d):d}function Iie(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=Eu(l6(e,t,i.outDir)):o=Eu(e),o+r}function xie(e,t){return o6(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function o6(e,t,r,i,o){let s=t.declarationDir||t.outDir,l=s?c6(e,s,r,i,o):e,d=a6(l);return Eu(l)+d}function a6(e){return bc(e,[".mjs",".mts"])?".d.mts":bc(e,[".cjs",".cts"])?".d.cts":bc(e,[".json"])?".d.json.ts":".d.ts"}function Rie(e){return bc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:bc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:bc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function xs(e){return e.outFile||e.out}function s6(e,t){var r;if(e.paths)return e.baseUrl??x.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Fj(e,t,r){let i=e.getCompilerOptions();if(xs(i)){let o=Ld(i),s=i.emitDeclarationOnly||o===2||o===4;return jr(e.getSourceFiles(),l=>(s||!oc(l))&&ET(l,e,r))}else{let o=t===void 0?e.getSourceFiles():[t];return jr(o,s=>ET(s,e,r))}}function ET(e,t,r){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&su(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Jf(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(xs(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let o=ho(GP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=c6(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Rg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function l6(e,t,r){return c6(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function c6(e,t,r,i,o){let s=ho(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Yr(t,s)}function xN(e,t,r,i,o,s,l){e.writeFile(r,i,o,d=>{t.add(jl(f.Could_not_write_file_0_Colon_1,r,d))},s,l)}function q0e(e,t,r){if(e.length>sh(e)&&!r(e)){let i=oi(e);q0e(i,t,r),t(e)}}function zj(e,t,r,i,o,s){try{i(e,t,r)}catch{q0e(oi(ma(e)),o,s),i(e,t,r)}}function RN(e,t){let r=Dg(e);return qC(r,t)}function ST(e,t){return qC(e,t)}function Zh(e){return Vr(e.members,t=>Pl(t)&&Hf(t.body))}function DN(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&L0(e.parameters[0]);return e.parameters[t?1:0]}}function Die(e){let t=DN(e);return t&&t.type}function M0(e){if(e.parameters.length&&!yE(e)){let t=e.parameters[0];if(L0(t))return t}}function L0(e){return k0(e.name)}function k0(e){return!!e&&e.kind===80&&Bj(e)}function TT(e){return!!Fn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function NI(e){if(!k0(e))return!1;for(;Su(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function Bj(e){return e.escapedText==="this"}function AT(e,t){let r,i,o,s;return Ov(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:x.fail("Accessor has wrong kind")):gn(e,l=>{if(Cv(l)&&ra(l)===ra(t)){let d=bT(l.name),p=bT(t.name);d===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function yd(e){if(!ir(e)&&Ec(e))return;let t=e.type;return t||!ir(e)?t:rN(e)?e.typeExpression&&e.typeExpression.type:nE(e)}function Cie(e){return e.type}function $f(e){return yE(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(ir(e)?YL(e):void 0)}function d6(e){return va(rE(e),t=>Z7e(t)?t.typeParameters:void 0)}function Z7e(e){return nm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(qf)||e.parent.tags.some(wR)))}function Nie(e){let t=DN(e);return t&&yd(t)}function Pie(e,t,r,i){Mie(e,t,r.pos,i)}function Mie(e,t,r,i){i&&i.length&&r!==i[0].pos&&ST(e,r)!==ST(e,i[0].pos)&&t.writeLine()}function Lie(e,t,r,i){r!==i&&ST(e,r)!==ST(e,i)&&t.writeLine()}function kie(e,t,r,i,o,s,l,d){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(let h of i)p&&(r.writeSpace(" "),p=!1),d(e,t,r,h.pos,h.end,l),h.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function wie(e,t,r,i,o,s,l){let d,p;if(l?o.pos===0&&(d=jr(jh(e,o.pos),h)):d=jh(e,o.pos),d){let m=[],y;for(let E of d){if(y){let S=ST(t,y.end);if(ST(t,E.pos)>=S+2)break}m.push(E),y=E}if(m.length){let E=ST(t,Ja(m).end);ST(t,Na(e,o.pos))>=E+2&&(Pie(t,r,o,d),kie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Ja(m).end})}}return p;function h(m){return AF(e,m.pos)}}function fR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=Nx(t,i),d=t.length,p;for(let h=i,m=l.line;h0){let A=S%uR(),N=r6((S-A)/uR());for(r.rawWrite(N);A;)r.rawWrite(" "),A--}else r.rawWrite("")}eBe(e,o,r,s,h,y),h=y}}else r.writeComment(e.substring(i,o))}function eBe(e,t,r,i,o,s){let l=Math.min(t,s-1),d=e.substring(o,l).trim();d?(r.writeComment(d),l!==t&&r.writeLine()):r.rawWrite(i)}function X0e(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Vj(e)|536870912),r||t&&ir(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=Y0e(e)|268435456),$0e(e.modifierFlagsCache)):tBe(e.modifierFlagsCache))}function lu(e){return Fie(e,!0)}function zie(e){return Fie(e,!0,!0)}function Wv(e){return Fie(e,!1)}function Y0e(e){let t=0;return e.parent&&!Ao(e)&&(ir(e)&&(Zne(e)&&(t|=8388608),ere(e)&&(t|=16777216),tre(e)&&(t|=33554432),nre(e)&&(t|=67108864),rre(e)&&(t|=134217728)),ire(e)&&(t|=65536)),t}function tBe(e){return e&65535}function $0e(e){return e&131071|(e&260046848)>>>23}function nBe(e){return $0e(Y0e(e))}function Bie(e){return Vj(e)|nBe(e)}function Vj(e){let t=Am(e)?x_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function x_(e){let t=0;if(e)for(let r of e)t|=MI(r.kind);return t}function MI(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function Q0e(e){return e===57||e===56}function Gie(e){return Q0e(e)||e===54}function NN(e){return e===76||e===77||e===78}function jj(e){return dr(e)&&NN(e.operatorToken.kind)}function Q2(e){return Q0e(e)||e===61}function Z2(e){return dr(e)&&Q2(e.operatorToken.kind)}function Ly(e){return e>=64&&e<=79}function Uj(e){let t=Hj(e);return t&&!t.isImplements?t.class:void 0}function Hj(e){if(zy(e)){if(Zp(e.parent)&&ci(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(a1(e.parent)){let t=cE(e.parent);if(t&&ci(t))return{class:t,isImplements:!1}}}}function Mc(e,t){return dr(e)&&(t?e.operatorToken.kind===64:Ly(e.operatorToken.kind))&&Yu(e.left)}function Z0e(e){return Mc(e.parent)&&e.parent.left===e}function ky(e){if(Mc(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function f6(e){return Uj(e)!==void 0}function Bl(e){return e.kind===80||ek(e)}function Fp(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 PN(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&PN(e.expression)||e.kind===217&&PN(e.expression)}function ek(e){return kr(e)&&Fe(e.name)&&Bl(e.expression)}function tk(e){if(kr(e)){let t=tk(e.expression);if(t!==void 0)return t+"."+up(e.name)}else if(Js(e)){let t=tk(e.expression);if(t!==void 0&&rc(e.argumentExpression))return t+"."+bT(e.argumentExpression)}else{if(Fe(e))return Vi(e.escapedText);if(qm(e))return QN(e)}}function Fv(e){return D0(e)&&Lg(e)==="prototype"}function MN(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 Kj(e){return!!e.parent&&(kr(e.parent)&&e.parent.name===e||Js(e.parent)&&e.parent.argumentExpression===e)}function Vie(e){return Su(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e||gE(e.parent)&&e.parent.right===e}function m6(e){return dr(e)&&e.operatorToken.kind===104}function jie(e){return m6(e.parent)&&e===e.parent.right}function Jj(e){return e.kind===210&&e.properties.length===0}function Uie(e){return e.kind===209&&e.elements.length===0}function mR(e){if(!(!rBe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function rBe(e){return e&&Nn(e.declarations)>0&&$r(e.declarations[0],2048)}function _6(e){return Vr(CSe,t=>Sl(e,t))}function iBe(e){let t=[],r=e.length;for(let i=0;i>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):x.assert(!1,"Unexpected code point")}return t}function Hie(e){let t="",r=iBe(e),i=0,o=r.length,s,l,d,p;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,d=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?d=p=64:i+2>=o&&(p=64),t+=xT.charAt(s)+xT.charAt(l)+xT.charAt(d)+xT.charAt(p),i+=3;return t}function oBe(e){let t="",r=0,i=e.length;for(;r>4&3,m=(l&15)<<4|d>>2&15,y=(d&3)<<6|p&63;m===0&&d!==0?i.push(h):y===0&&p!==0?i.push(h,m):i.push(h,m,y),o+=4}return oBe(i)}function qj(e,t){let r=No(t)?t:t.readFile(e);if(!r)return;let i=WH(e,r);return i.error?void 0:i.config}function LN(e,t){return qj(e,t)||{}}function h6(e){try{return JSON.parse(e)}catch{return}}function Um(e,t){return!t.directoryExists||t.directoryExists(e)}function wy(e){switch(e.newLine){case 0:return ISe;case 1:case void 0:return xSe}}function Ef(e,t=e){return x.assert(t>=e||t===-1),{pos:e,end:t}}function g6(e,t){return Ef(e.pos,t)}function uE(e,t){return Ef(t,e.end)}function wg(e){let t=Am(e)?sI(e.modifiers,bd):void 0;return t&&!Km(t.end)?uE(e,t.end):e}function R_(e){if(Uo(e)||Ul(e))return uE(e,e.name.pos);let t=Am(e)?$s(e.modifiers):void 0;return t&&!Km(t.end)?uE(e,t.end):wg(e)}function eSe(e){return e.pos===e.end}function Xj(e,t){return Ef(e,e+da(t).length)}function IT(e,t){return Xie(e,e,t)}function y6(e,t,r){return Sf(kN(e,r,!1),kN(t,r,!1),r)}function qie(e,t,r){return Sf(e.end,t.end,r)}function Xie(e,t,r){return Sf(kN(e,r,!1),t.end,r)}function nk(e,t,r){return Sf(e.end,kN(t,r,!1),r)}function Yj(e,t,r,i){let o=kN(t,r,i);return XC(r,e.end,o)}function tSe(e,t,r){return XC(r,e.end,t.end)}function Yie(e,t){return!Sf(e.pos,e.end,t)}function Sf(e,t,r){return XC(r,e,t)===0}function kN(e,t,r){return Km(e.pos)?-1:Na(t.text,e.pos,!1,r)}function $ie(e,t,r,i){let o=Na(r.text,e,!1,i),s=aBe(o,t,r);return XC(r,s??t,o)}function Qie(e,t,r,i){let o=Na(r.text,e,!1,i);return XC(r,e,Math.min(t,o))}function aBe(e,t=0,r){for(;e-- >t;)if(!Cg(r.text.charCodeAt(e)))return e}function $j(e){let t=Do(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function wN(e){return jr(e.declarations,rk)}function rk(e){return wi(e)&&e.initializer!==void 0}function nSe(e){return e.watch&&Ss(e,"watch")}function Hm(e){e.close()}function Tl(e){return e.flags&33554432?e.links.checkFlags:0}function Tf(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&Vr(e.declarations,hp)||e.flags&32768&&Vr(e.declarations,Qp)||e.valueDeclaration,i=Zb(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Tl(e)&6){let r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function vd(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function _R(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function v6(e){return ON(e)===1}function LI(e){return ON(e)!==0}function ON(e){let{parent:t}=e;switch(t?.kind){case 217:return ON(t);case 225:case 224:let{operator:r}=t;return r===46||r===47?2:0;case 226:let{left:i,operatorToken:o}=t;return i===e&&Ly(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:ON(t);case 303:{let s=ON(t.parent);return e===t.name?sBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:ON(t.parent);case 209:return ON(t);default:return 0}}function sBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return x.assertNever(e)}}function Qj(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!Qj(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function $u(e,t){e.forEach(t),e.clear()}function eg(e,t,r){let{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var d;t?.has(l)?o&&o(s,(d=t.get)==null?void 0:d.call(t,l),l):(e.delete(l),i(s,l))})}function WN(e,t,r){eg(e,t,r);let{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Zie(e){if(e.flags&32){let t=Og(e);return!!t&&$r(t,64)}return!1}function Og(e){var t;return(t=e.declarations)==null?void 0:t.find(ci)}function Lr(e){return e.flags&3899393?e.objectFlags:0}function rSe(e,t){return!!hm(e,r=>t(r)?!0:void 0)}function b6(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Fk(e.declarations[0])}function eoe({moduleSpecifier:e}){return Da(e)?e.text:uc(e)}function Zj(e){let t;return Go(e,r=>{Hf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Hf(r[i])){t=r[i];break}}),t}function Em(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function kI(e){return ci(e)||pu(e)||gp(e)}function eU(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 Ns(e){return e.kind===211||e.kind===212}function tU(e){return e.kind===211?e.name:(x.assert(e.kind===212),e.argumentExpression)}function toe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function E6(e){return e.kind===275||e.kind===279}function hR(e){for(;Ns(e);)e=e.expression;return e}function noe(e,t){if(Ns(e.parent)&&Kj(e))return r(e.parent);function r(i){if(i.kind===211){let o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Fe(i.argumentExpression)||as(i.argumentExpression)){let o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(Ns(i.expression))return r(i.expression);if(Fe(i.expression))return t(i.expression)}}function gR(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 lBe(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.lastAssignmentPos=void 0,this.links=void 0}function cBe(e,t){this.flags=t,(x.isDebugging||rr)&&(this.checker=e)}function dBe(e,t){this.flags=t,x.isDebugging&&(this.checker=e)}function roe(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 uBe(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 pBe(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 fBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function ioe(e){koe.push(e),e(sd)}function ooe(e){Object.assign(sd,e),gn(koe,t=>t(sd))}function tg(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+x.checkDefined(t[+i]))}function aoe(e){q6=e}function soe(e){!q6&&e&&(q6=e())}function wo(e){return q6&&q6[e.key]||e.message}function yR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),Kre(t,r,i);let l=wo(o);return gt(s)&&(l=tg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function mBe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function iSe(e,t){let r=t.fileName||"",i=t.text.length;x.assertEqual(e.fileName,r),x.assertLessThanOrEqual(e.start,i),x.assertLessThanOrEqual(e.start+e.length,i);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let s of e.relatedInformation)mBe(s)&&s.fileName===r?(x.assertLessThanOrEqual(s.start,i),x.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(iSe(s,t))):o.relatedInformation.push(s)}return o}function wI(e,t){let r=[];for(let i of e)r.push(iSe(i,t));return r}function Qc(e,t,r,i,...o){Kre(e.text,t,r);let s=wo(i);return gt(o)&&(s=tg(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function nU(e,...t){let r=wo(e);return gt(t)&&(r=tg(r,t)),r}function jl(e,...t){let r=wo(e);return gt(t)&&(r=tg(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function S6(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 zo(e,t,...r){let i=wo(t);return gt(r)&&(i=tg(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function loe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function oSe(e){return e.file?e.file.path:void 0}function FN(e,t){return T6(e,t)||_Be(e,t)||0}function T6(e,t){return Vd(oSe(e),oSe(t))||Zs(e.start,t.start)||Zs(e.length,t.length)||Zs(e.code,t.code)||aSe(e.messageText,t.messageText)||0}function _Be(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Zs(e.relatedInformation.length,t.relatedInformation.length)||gn(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return FN(r,o)})||0:e.relatedInformation?-1:1}function aSe(e,t){if(typeof e=="string"&&typeof t=="string")return Vd(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Vd(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;let i=Math.min(e.next.length,t.next.length);for(let o=0;ot.next.length?1:0}function ik(e){return e===4||e===2||e===1||e===6?1:0}function sSe(e){if(e.transformFlags&2)return au(e)||J0(e)?e:Go(e,sSe)}function hBe(e){return e.isDeclarationFile?void 0:sSe(e)}function gBe(e){return(e.impliedNodeFormat===99||bc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function ok(e){switch(xU(e)){case 3:return o=>{o.externalModuleIndicator=Xk(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=Xk(o)};case 2:let t=[Xk];(e.jsx===4||e.jsx===5)&&t.push(hBe),t.push(gBe);let r=jm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function Xvt(e){return e}function A6(e){return e>=5&&e<=99}function I6(e){switch(Ld(e)){case 0:case 4:case 3:return!1}return!0}function rU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function coe(e){return e.allowUnreachableCode===!1}function doe(e){return e.allowUnusedLabels===!1}function OI(e){return e>=3&&e<=99||e===100}function cu(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function uoe(e){return e.useDefineForClassFields!==!1&&ns(e)>=9}function poe(e,t){return Gx(t,e,KH)}function foe(e,t){return Gx(t,e,JH)}function moe(e,t){return Gx(t,e,qH)}function x6(e,t){return t.strictFlag?cu(e,t.name):t.allowJsFlag?Vv(e):e[t.name]}function R6(e){let t=e.jsx;return t===2||t===4||t===5}function D6(e,t){let r=t?.pragmas.get("jsximportsource"),i=To(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function C6(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function iU(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(d,p)=>(o||(o=new Map)).set(d,p),setSymlinkedDirectory:(d,p)=>{let h=tl(d,e,t);JN(h)||(h=Bc(h),p!==!1&&!r?.has(h)&&(i||(i=qp())).add(p.realPath,d),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(d,p,h){x.assert(!s),s=!0,d(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),h.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(d,p){if(!p||!p.originalPath||!p.resolvedFileName)return;let{resolvedFileName:h,originalPath:m}=p;d.setSymlinkedFile(tl(m,e,t),h);let[y,E]=yBe(h,m,e,t)||Xe;y&&E&&d.setSymlinkedDirectory(E,{real:Bc(y),realPath:Bc(tl(y,e,t))})}}function yBe(e,t,r,i){let o=zc(ho(e,r)),s=zc(ho(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!lSe(o[o.length-2],i)&&!lSe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Tv(o),Tv(s)]:void 0}function lSe(e,t){return e!==void 0&&(t(e)==="node_modules"||ao(e,"@"))}function vBe(e){return oV(e.charCodeAt(0))?e.slice(1):void 0}function aU(e,t,r){let i=JG(e,t,r);return i===void 0?void 0:vBe(i)}function cSe(e){return e.replace(RU,bBe)}function bBe(e){return"\\"+e}function zN(e,t,r){let i=N6(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function N6(e,t,r){if(!(e===void 0||e.length===0))return va(e,i=>i&&P6(i,t,r,NU[r]))}function sU(e){return!/[.*?]/.test(e)}function _oe(e,t,r){let i=e&&P6(e,t,r,NU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function P6(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=NU[r]){let l="",d=!1,p=wL(e,t),h=Ja(p);if(r!=="exclude"&&h==="**")return;p[0]=Xb(p[0]),sU(h)&&p.push("**","*");let m=0;for(let y of p){if(y==="**")l+=o;else if(r==="directories"&&(l+="(",m++),d&&(l+=nl),r!=="exclude"){let E="";y.charCodeAt(0)===42?(E+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(E+="[^./]",y=y.substr(1)),E+=y.replace(RU,s),E!==y&&(l+=CU),l+=E}else l+=y.replace(RU,s);d=!0}for(;m>0;)l+=")?",m--;return l}function hoe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function M6(e,t,r,i,o){e=ma(e),o=ma(o);let s=Yr(o,e);return{includeFilePatterns:mn(N6(r,s,"files"),l=>`^${l}$`),includeFilePattern:zN(r,s,"files"),includeDirectoryPattern:zN(r,s,"directories"),excludePattern:zN(t,s,"exclude"),basePaths:EBe(e,r,i)}}function zv(e,t){return new RegExp(e,t?"":"i")}function lU(e,t,r,i,o,s,l,d,p){e=ma(e),s=ma(s);let h=M6(e,r,i,o,s),m=h.includeFilePatterns&&h.includeFilePatterns.map(w=>zv(w,o)),y=h.includeDirectoryPattern&&zv(h.includeDirectoryPattern,o),E=h.excludePattern&&zv(h.excludePattern,o),S=m?m.map(()=>[]):[[]],A=new Map,N=Nd(o);for(let w of h.basePaths)D(w,Yr(s,w),l);return pm(S);function D(w,j,K){let Y=N(p(j));if(A.has(Y))return;A.set(Y,!0);let{files:B,directories:ce}=d(w);for(let z of ZS(B,Vd)){let Z=Yr(w,z),me=Yr(j,z);if(!(t&&!bc(Z,t))&&!(E&&E.test(me)))if(!m)S[0].push(Z);else{let ge=Kl(m,q=>q.test(me));ge!==-1&&S[ge].push(Z)}}if(!(K!==void 0&&(K--,K===0)))for(let z of ZS(ce,Vd)){let Z=Yr(w,z),me=Yr(j,z);(!y||y.test(me))&&(!E||!E.test(me))&&D(Z,me,K)}}}function EBe(e,t,r){let i=[e];if(t){let o=[];for(let s of t){let l=cp(s)?s:ma(Yr(e,s));o.push(SBe(l))}o.sort(Ex(!r));for(let s of o)oo(i,l=>!mm(l,s,e,!r))&&i.push(s)}return i}function SBe(e){let t=Ute(e,RSe);return t<0?mI(e)?Xb(oi(e)):e:e.substring(0,e.lastIndexOf(nl,t))}function L6(e,t){return t||k6(e)||3}function k6(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 BN(e,t){let r=e&&Vv(e);if(!t||t.length===0)return r?$6:TR;let i=r?$6:TR,o=pm(i);return[...i,...to(t,l=>l.scriptKind===7||r&&TBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function ak(e,t){return!e||!mE(e)?t:t===$6?NSe:t===TR?DSe:[...t,[".json"]]}function TBe(e){return e===1||e===2}function O0(e){return gt(AR,t=>Sl(e,t))}function WI(e){return gt(PU,t=>Sl(e,t))}function goe({imports:e},t=jm(O0,WI)){return Wl(e,({text:r})=>Lp(r)&&!bc(r,vk)?t(r):void 0)||!1}function yoe(e,t,r,i){let o=du(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return XR(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!XR(r))return goe(i)?2:0;return l();function l(){let d=!1,p=i.imports.length?i.imports:su(i)?ABe(i).map(h=>h.arguments[0]):Xe;for(let h of p)if(Lp(h.text)){if(s&&t===1&&lJ(i,h,r)===99||bc(h.text,vk))continue;if(WI(h.text))return 3;O0(h.text)&&(d=!0)}return d?2:0}}function ABe(e){let t=0,r;for(let i of e.statements){if(t>3)break;pj(i)?r=Eo(r,i.declarationList.declarations.map(o=>o.initializer)):ed(i)&&bu(i.expression,!0)?r=Tn(r,i.expression):t++}return r||Xe}function voe(e,t,r){if(!e)return!1;let i=BN(t,r);for(let o of pm(ak(t,i)))if(Sl(e,o))return!0;return!1}function dSe(e){let t=e.match(/\//g);return t?t.length:0}function sk(e,t){return Zs(dSe(e),dSe(t))}function Eu(e){for(let t of kU){let r=boe(e,t);if(r!==void 0)return r}return e}function boe(e,t){return Sl(e,t)?lk(e,t):void 0}function lk(e,t){return e.substring(0,e.length-t.length)}function pE(e,t){return OL(e,t,kU,!1)}function vR(e){let 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 w6(e){return to(Vh(e),t=>vR(t))}function Km(e){return!(e>=0)}function O6(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||ao(e,".d.")&&El(e,".ts")}function GN(e){return O6(e)||e===".json"}function VN(e){let t=Wg(e);return t!==void 0?t:x.fail(`File ${e} has unknown extension.`)}function uSe(e){return Wg(e)!==void 0}function Wg(e){return Vr(kU,t=>Sl(e,t))}function ck(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function cU(e,t){let r=[];for(let i of e){if(i===t)return t;No(i)||r.push(i)}return KG(r,i=>i,t)}function dU(e,t){let r=e.indexOf(t);return x.assert(r!==-1),e.slice(r)}function Pa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),x.assert(e.relatedInformation!==Xe,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Eoe(e,t){x.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;oi&&(i=s)}return{min:r,max:i}}function uU(e){return{pos:oE(e),end:e.end}}function pU(e,t){let r=t.pos-1,i=Math.min(e.text.length,Na(e.text,t.end)+1);return{pos:r,end:i}}function jN(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function W6(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Qte(e,t,W6)}function UN(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:let h=e.length-1,m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,h)||"0"}let r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let h=i-1,m=0;h>=r;h--,m+=t){let y=m>>>4,E=e.charCodeAt(h),A=(E<=57?E-48:10+E-(E<=70?65:97))<<(m&15);s[y]|=A;let N=A>>>16;N&&(s[y+1]|=N)}let l="",d=s.length-1,p=!0;for(;p;){let h=0;p=!1;for(let m=d;m>=0;m--){let y=h<<16|s[m],E=y/10|0;s[m]=E,h=y-E*10,E&&!p&&(d=m,p=!0)}l=h+l}return l}function W0({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Soe(e){if(F6(e,!1))return fU(e)}function fU(e){let t=e.startsWith("-"),r=UN(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function F6(e,t){if(e==="")return!1;let r=xy(99,!1),i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan(),s=o===41;s&&(o=r.scan());let l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===W0({negative:s,base10Value:UN(r.getTokenValue())}))}function fE(e){return!!(e.flags&33554432)||jF(e)||RBe(e)||xBe(e)||!(Xh(e)||IBe(e))}function IBe(e){return Fe(e)&&Zu(e.parent)&&e.parent.name===e}function xBe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if($r(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function RBe(e){if(e.kind!==80)return!1;let t=Fn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function Toe(e){return If(e)&&Fe(e.typeName)}function Aoe(e,t=Ty){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;ie.includes(t))}function Roe(e){if(!e.parent)return;switch(e.kind){case 168:let{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:{let{parent:i}=e;return GT(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(Bx(e))return FT(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return lT(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 ji(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return c2(e)?t.children:void 0;case 286:case 285:return ji(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 $c(e)?t.members:void 0;case 266:return Y0(e)?t.members:void 0;case 312:return t.statements}}function z6(e){if(!e.typeParameters){if(gt(e.parameters,t=>!yd(t)))return!0;if(e.kind!==219){let t=Xc(e.parameters);if(!(t&&L0(t)))return!0}}return!1}function qN(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Doe(e){return e.kind===260&&e.parent.kind===299}function F0(e){return e.kind===218||e.kind===219}function z0(e){return e.replace(/\$/gm,()=>"\\$")}function ng(e){return(+e).toString()===e}function B6(e,t,r,i,o){let s=o&&e==="new";return!s&&Yp(e,t)?L.createIdentifier(e):!i&&!s&&ng(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function XN(e){return!!(e.flags&262144&&e.isThisType)}function G6(e){let t=0,r=0,i=0,o=0,s;(h=>{h[h.BeforeNodeModules=0]="BeforeNodeModules",h[h.NodeModules=1]="NodeModules",h[h.Scope=2]="Scope",h[h.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,d=0,p=0;for(;d>=0;)switch(l=d,d=e.indexOf("/",l+1),p){case 0:e.indexOf(Eh,l)===l&&(t=l,r=d,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=d,p=3);break;case 3:e.indexOf(Eh,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function pSe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function SR(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 dk(e){return hE(e)||Ml(e)||Ec(e)||Sc(e)||pu(e)||SR(e)||ql(e)&&!T0(e)&&!E_(e)}function uk(e){if(!rN(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function _U(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&Uh(e.charCodeAt(1),t):Uh(r,t)}function Coe(e){var t;return((t=jU(e))==null?void 0:t.kind)===0}function pk(e){return ir(e)&&(e.type&&e.type.kind===323||kx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function YN(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||pk(e);case 355:case 348:return uk(e);default:return!1}}function Noe(e){let t=e.kind;return(t===211||t===212)&&t1(e.expression)}function hU(e){return ir(e)&&Ou(e)&&kp(e)&&!!EV(e)}function gU(e){return x.checkDefined(V6(e))}function V6(e){let t=EV(e);return t&&t.typeExpression&&t.typeExpression.type}function $N(e){return Fe(e)?e.escapedText:FI(e)}function fk(e){return Fe(e)?gr(e):QN(e)}function Poe(e){let t=e.kind;return t===80||t===295}function FI(e){return`${e.namespace.escapedText}:${gr(e.name)}`}function QN(e){return`${gr(e.namespace)}:${gr(e.name)}`}function yU(e){return Fe(e)?gr(e):QN(e)}function Qf(e){return!!(e.flags&8576)}function Zf(e){return e.flags&8192?e.escapedName:e.flags&384?pl(""+e.value):x.fail()}function j6(e){return!!e&&(kr(e)||Js(e)||dr(e))}function Moe(e){return e===void 0?!1:!!QR(e.attributes)}function zI(e,t){return PSe.call(e,"*",t)}function U6(e){return Fe(e.name)?e.name.escapedText:pl(e.name.text)}var H6,Gv,mk,K6,_k,J6,vU,bU,fSe,mSe,EU,_Se,hSe,SU,TU,AU,IU,gSe,ySe,vSe,bSe,ESe,Loe,SSe,TSe,ASe,ZN,xT,ISe,xSe,sd,koe,q6,fc,ns,Ld,du,xU,em,mh,RT,X6,Y6,mE,Af,B0,eP,hk,Vv,tP,RU,RSe,DU,CU,woe,Ooe,Woe,NU,TR,PU,DSe,CSe,MU,AR,$6,NSe,gk,yk,vk,LU,kU,Q6,PSe,CBe=bt({"src/compiler/utilities.ts"(){"use strict";ea(),H6=[],Gv="tslib",mk=160,K6=1e6,_k=M7e(),J6=vu(()=>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:Xe})),AsyncIterator:new Map(Object.entries({es2015:Xe})),Atomics:new Map(Object.entries({es2017:Xe})),SharedArrayBuffer:new Map(Object.entries({es2017:Xe})),AsyncIterable:new Map(Object.entries({es2018:Xe})),AsyncIterableIterator:new Map(Object.entries({es2018:Xe})),AsyncGenerator:new Map(Object.entries({es2018:Xe})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Xe})),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:Xe,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:Xe})),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:Xe,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Xe,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),vU=(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))(vU||{}),bU=/^(\/\/\/\s*/,fSe=/^(\/\/\/\s*/,mSe=/^(\/\/\/\s*/,EU=/^(\/\/\/\s*/,_Se=/^\/\/\/\s*/,hSe=/^(\/\/\/\s*/,SU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(SU||{}),TU=(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))(TU||{}),AU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(AU||{}),IU=(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))(IU||{}),gSe=/\$\{/g,ySe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,vSe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,bSe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,ESe=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"})),Loe=/[^\u0000-\u007F]/g,SSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,TSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,ASe=new Map(Object.entries({'"':""","'":"'"})),ZN=[""," "],xT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ISe=`\r `,xSe=` `,sd={getNodeConstructor:()=>roe,getTokenConstructor:()=>uBe,getIdentifierConstructor:()=>pBe,getPrivateIdentifierConstructor:()=>roe,getSourceFileConstructor:()=>roe,getSymbolConstructor:()=>lBe,getTypeConstructor:()=>cBe,getSignatureConstructor:()=>dBe,getSourceMapSourceConstructor:()=>fBe},koe=[],fc={target:{dependencies:["module"],computeValue:e=>e.target??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:fc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(fc.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(fc.module.computeValue(e)===100||fc.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(fc.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:fc.esModuleInterop.computeValue(e)||fc.module.computeValue(e)===4||fc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=fc.moduleResolution.computeValue(e);if(!OI(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=fc.moduleResolution.computeValue(e);if(!OI(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:fc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||fc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&fc.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?fc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>cu(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>cu(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>cu(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>cu(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>cu(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>cu(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>cu(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>cu(e,"useUnknownInCatchVariables")}},ns=fc.target.computeValue,Ld=fc.module.computeValue,du=fc.moduleResolution.computeValue,xU=fc.moduleDetection.computeValue,em=fc.isolatedModules.computeValue,mh=fc.esModuleInterop.computeValue,RT=fc.allowSyntheticDefaultImports.computeValue,X6=fc.resolvePackageJsonExports.computeValue,Y6=fc.resolvePackageJsonImports.computeValue,mE=fc.resolveJsonModule.computeValue,Af=fc.declaration.computeValue,B0=fc.preserveConstEnums.computeValue,eP=fc.incremental.computeValue,hk=fc.declarationMap.computeValue,Vv=fc.allowJs.computeValue,tP=fc.useDefineForClassFields.computeValue,RU=/[^\w\s/]/g,RSe=[42,63],DU=["node_modules","bower_components","jspm_packages"],CU=`(?!(${DU.join("|")})(/|$))`,woe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>hoe(e,woe.singleAsteriskRegexFragment)},Ooe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>hoe(e,Ooe.singleAsteriskRegexFragment)},Woe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>hoe(e,Woe.singleAsteriskRegexFragment)},NU={files:woe,directories:Ooe,exclude:Woe},TR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],PU=pm(TR),DSe=[...TR,[".json"]],CSe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],MU=[[".js",".jsx"],[".mjs"],[".cjs"]],AR=pm(MU),$6=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],NSe=[...$6,[".json"]],gk=[".d.ts",".d.cts",".d.mts"],yk=[".ts",".cts",".mts",".tsx"],vk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],LU=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(LU||{}),kU=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],Q6={files:Xe,directories:Xe},PSe=String.prototype.replace}});function Foe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:d,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=sd.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=sd.getIdentifierConstructor()))(m,-1,-1)}function d(m){return new(i||(i=sd.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=sd.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=sd.getNodeConstructor()))(m,-1,-1)}}var NBe=bt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";ea()}});function zoe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:E,parenthesizeBranchOfConditionalExpression:S,parenthesizeExpressionOfExportDefault:A,parenthesizeExpressionOfNew:N,parenthesizeLeftSideOfAccess:D,parenthesizeOperandOfPostfixUnary:w,parenthesizeOperandOfPrefixUnary:j,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:Y,parenthesizeExpressionOfExpressionStatement:B,parenthesizeConciseBodyOfArrowFunction:ce,parenthesizeCheckTypeOfConditionalType:z,parenthesizeExtendsTypeOfConditionalType:Z,parenthesizeConstituentTypesOfUnionType:ge,parenthesizeConstituentTypeOfUnionType:me,parenthesizeConstituentTypesOfIntersectionType:J,parenthesizeConstituentTypeOfIntersectionType:q,parenthesizeOperandOfTypeOperator:re,parenthesizeOperandOfReadonlyTypeOperator:pe,parenthesizeNonArrayTypeOfPostfixType:xe,parenthesizeElementTypesOfTupleType:fe,parenthesizeElementTypeOfTupleType:ne,parenthesizeTypeOfOptionalType:Ce,parenthesizeTypeArguments:Ae,parenthesizeLeadingTypeArgument:Ge};function i(De){t||(t=new Map);let Le=t.get(De);return Le||(Le=Et=>h(De,Et),t.set(De,Le)),Le}function o(De){r||(r=new Map);let Le=r.get(De);return Le||(Le=Et=>m(De,void 0,Et),r.set(De,Le)),Le}function s(De,Le,Et,be){let ze=q2(226,De),tt=Pj(226,De),Wt=gm(Le);if(!Et&&Le.kind===219&&ze>3)return!0;let _t=IN(Wt);switch(Zs(_t,ze)){case-1:return!(!Et&&tt===1&&Le.kind===229);case 1:return!1;case 0:if(Et)return tt===1;if(dr(Wt)&&Wt.operatorToken.kind===De){if(l(De))return!1;if(De===40){let pt=be?d(be):0;if(iN(pt)&&pt===d(Wt))return!1}}return Nj(Wt)===0}}function l(De){return De===42||De===52||De===51||De===53||De===28}function d(De){if(De=gm(De),iN(De.kind))return De.kind;if(De.kind===226&&De.operatorToken.kind===40){if(De.cachedLiteralKind!==void 0)return De.cachedLiteralKind;let Le=d(De.left),Et=iN(Le)&&Le===d(De.right)?Le:0;return De.cachedLiteralKind=Et,Et}return 0}function p(De,Le,Et,be){return gm(Le).kind===217?Le:s(De,Le,Et,be)?e.createParenthesizedExpression(Le):Le}function h(De,Le){return p(De,Le,!0)}function m(De,Le,Et){return p(De,Et,!1,Le)}function y(De){return gP(De)?e.createParenthesizedExpression(De):De}function E(De){let Le=q2(227,58),Et=gm(De),be=IN(Et);return Zs(be,Le)!==1?e.createParenthesizedExpression(De):De}function S(De){let Le=gm(De);return gP(Le)?e.createParenthesizedExpression(De):De}function A(De){let Le=gm(De),Et=gP(Le);if(!Et)switch(gR(Le,!1).kind){case 231:case 218:Et=!0}return Et?e.createParenthesizedExpression(De):De}function N(De){let Le=gR(De,!0);switch(Le.kind){case 213:return e.createParenthesizedExpression(De);case 214:return Le.arguments?De:e.createParenthesizedExpression(De)}return D(De)}function D(De,Le){let Et=gm(De);return Yu(Et)&&(Et.kind!==214||Et.arguments)&&(Le||!Ud(Et))?De:at(e.createParenthesizedExpression(De),De)}function w(De){return Yu(De)?De:at(e.createParenthesizedExpression(De),De)}function j(De){return kV(De)?De:at(e.createParenthesizedExpression(De),De)}function K(De){let Le=Pc(De,Y);return at(e.createNodeArray(Le,De.hasTrailingComma),De)}function Y(De){let Le=gm(De),Et=IN(Le),be=q2(226,28);return Et>be?De:at(e.createParenthesizedExpression(De),De)}function B(De){let Le=gm(De);if(ia(Le)){let be=Le.expression,ze=gm(be).kind;if(ze===218||ze===219){let tt=e.updateCallExpression(Le,at(e.createParenthesizedExpression(be),be),Le.typeArguments,Le.arguments);return e.restoreOuterExpressions(De,tt,8)}}let Et=gR(Le,!1).kind;return Et===210||Et===218?at(e.createParenthesizedExpression(De),De):De}function ce(De){return!Ko(De)&&(gP(De)||gR(De,!1).kind===210)?at(e.createParenthesizedExpression(De),De):De}function z(De){switch(De.kind){case 184:case 185:case 194:return e.createParenthesizedType(De)}return De}function Z(De){switch(De.kind){case 194:return e.createParenthesizedType(De)}return De}function me(De){switch(De.kind){case 192:case 193:return e.createParenthesizedType(De)}return z(De)}function ge(De){return e.createNodeArray(Pc(De,me))}function q(De){switch(De.kind){case 192:case 193:return e.createParenthesizedType(De)}return me(De)}function J(De){return e.createNodeArray(Pc(De,q))}function re(De){switch(De.kind){case 193:return e.createParenthesizedType(De)}return q(De)}function pe(De){switch(De.kind){case 198:return e.createParenthesizedType(De)}return re(De)}function xe(De){switch(De.kind){case 195:case 198:case 186:return e.createParenthesizedType(De)}return re(De)}function fe(De){return e.createNodeArray(Pc(De,ne))}function ne(De){return he(De)?e.createParenthesizedType(De):De}function he(De){return LR(De)?De.postfix:DR(De)||hh(De)||RR(De)||PT(De)?he(De.type):ZI(De)?he(De.falseType):Hv(De)||QI(De)?he(Ja(De.types)):CT(De)?!!De.typeParameter.constraint&&he(De.typeParameter.constraint):!1}function Ce(De){return he(De)?e.createParenthesizedType(De):xe(De)}function Ge(De){return ure(De)&&De.typeParameters?e.createParenthesizedType(De):De}function ve(De,Le){return Le===0?Ge(De):De}function Ae(De){if(gt(De))return e.createNodeArray(Pc(De,ve))}}var wU,PBe=bt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";ea(),wU={getParenthesizeLeftSideOfBinaryForOperator:e=>Qs,getParenthesizeRightSideOfBinaryForOperator:e=>Qs,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Qs,parenthesizeConditionOfConditionalExpression:Qs,parenthesizeBranchOfConditionalExpression:Qs,parenthesizeExpressionOfExportDefault:Qs,parenthesizeExpressionOfNew:e=>na(e,Yu),parenthesizeLeftSideOfAccess:e=>na(e,Yu),parenthesizeOperandOfPostfixUnary:e=>na(e,Yu),parenthesizeOperandOfPrefixUnary:e=>na(e,kV),parenthesizeExpressionsOfCommaDelimitedList:e=>na(e,v0),parenthesizeExpressionForDisallowedComma:Qs,parenthesizeExpressionOfExpressionStatement:Qs,parenthesizeConciseBodyOfArrowFunction:Qs,parenthesizeCheckTypeOfConditionalType:Qs,parenthesizeExtendsTypeOfConditionalType:Qs,parenthesizeConstituentTypesOfUnionType:e=>na(e,v0),parenthesizeConstituentTypeOfUnionType:Qs,parenthesizeConstituentTypesOfIntersectionType:e=>na(e,v0),parenthesizeConstituentTypeOfIntersectionType:Qs,parenthesizeOperandOfTypeOperator:Qs,parenthesizeOperandOfReadonlyTypeOperator:Qs,parenthesizeNonArrayTypeOfPostfixType:Qs,parenthesizeElementTypesOfTupleType:e=>na(e,v0),parenthesizeElementTypeOfTupleType:Qs,parenthesizeTypeOfOptionalType:Qs,parenthesizeTypeArguments:e=>e&&na(e,v0),parenthesizeLeadingTypeArgument:Qs}}});function Boe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:d,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:h};function t(m,y){if(Ko(m))return m;let E=e.createReturnStatement(m);at(E,m);let S=e.createBlock([E],y);return at(S,m),S}function r(m){var y;if(!m.body)return x.fail("Cannot convert a FunctionDeclaration without a body");let E=e.createFunctionExpression((y=y0(m))==null?void 0:y.filter(S=>!JI(S)&&!w4(S)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return xr(E,m),at(E,m),nP(m)&&t4(E,!0),E}function i(m){var y;let E=e.createClassExpression((y=m.modifiers)==null?void 0:y.filter(S=>!JI(S)&&!w4(S)),m.name,m.typeParameters,m.heritageClauses,m.members);return xr(E,m),at(E,m),nP(m)&&t4(E,!0),E}function o(m){if(Xa(m)){if(m.dotDotDotToken)return x.assertNode(m.name,Fe),xr(at(e.createSpreadElement(m.name),m),m);let y=h(m.name);return m.initializer?xr(at(e.createAssignment(y,m.initializer),m),m):y}return na(m,ht)}function s(m){if(Xa(m)){if(m.dotDotDotToken)return x.assertNode(m.name,Fe),xr(at(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){let y=h(m.name);return xr(at(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(y,m.initializer):y),m),m)}return x.assertNode(m.name,Fe),xr(at(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return na(m,Pg)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return d(m)}}function d(m){return tm(m)?xr(at(e.createObjectLiteralExpression(mn(m.elements,s)),m),m):na(m,Ma)}function p(m){return V0(m)?xr(at(e.createArrayLiteralExpression(mn(m.elements,o)),m),m):na(m,uu)}function h(m){return Qo(m)?l(m):na(m,ht)}}var OU,MBe=bt({"src/compiler/factory/nodeConverters.ts"(){"use strict";ea(),OU={convertToFunctionBlock:Ho,convertToFunctionExpression:Ho,convertToClassExpression:Ho,convertToArrayAssignmentElement:Ho,convertToObjectAssignmentElement:Ho,convertToAssignmentPattern:Ho,convertToObjectAssignmentPattern:Ho,convertToArrayAssignmentPattern:Ho,convertToAssignmentElementTarget:Ho}}});function MSe(e){Voe.push(e)}function bk(e,t){let r=e&8?Qs:xr,i=vu(()=>e&1?wU:zoe(w)),o=vu(()=>e&2?OU:Boe(w)),s=oh(v=>(C,F)=>Ee(C,v,F)),l=oh(v=>C=>rt(v,C)),d=oh(v=>C=>zt(C,v)),p=oh(v=>()=>VD(v)),h=oh(v=>C=>mA(v,C)),m=oh(v=>(C,F)=>vS(v,C,F)),y=oh(v=>(C,F)=>jD(v,C,F)),E=oh(v=>(C,F)=>qs(v,C,F)),S=oh(v=>(C,F)=>jE(v,C,F)),A=oh(v=>(C,F,se)=>Lf(v,C,F,se)),N=oh(v=>(C,F,se)=>_b(v,C,F,se)),D=oh(v=>(C,F,se,Ke)=>hb(v,C,F,se,Ke)),w={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:j,createNumericLiteral:ce,createBigIntLiteral:z,createStringLiteral:me,createStringLiteralFromNode:ge,createRegularExpressionLiteral:q,createLiteralLikeNode:J,createIdentifier:xe,createTempVariable:fe,createLoopVariable:ne,createUniqueName:he,getGeneratedNameForNode:Ce,createPrivateIdentifier:ve,createUniquePrivateName:De,getGeneratedPrivateNameForNode:Le,createToken:be,createSuper:ze,createThis:tt,createNull:Wt,createTrue:_t,createFalse:Je,createModifier:pt,createModifiersFromModifierFlags:Zt,createQualifiedName:en,updateQualifiedName:Dn,createComputedPropertyName:Kn,updateComputedPropertyName:pn,createTypeParameterDeclaration:Xt,updateTypeParameterDeclaration:Kt,createParameterDeclaration:hi,updateParameterDeclaration:uo,createDecorator:Li,updateDecorator:So,createPropertySignature:Qn,updatePropertySignature:Ur,createPropertyDeclaration:on,updatePropertyDeclaration:Ye,createMethodSignature:Ot,updateMethodSignature:In,createMethodDeclaration:si,updateMethodDeclaration:yi,createConstructorDeclaration:vn,updateConstructorDeclaration:kn,createGetAccessorDeclaration:ct,updateGetAccessorDeclaration:lt,createSetAccessorDeclaration:ae,updateSetAccessorDeclaration:ke,createCallSignature:G,updateCallSignature:et,createConstructSignature:Tt,updateConstructSignature:He,createIndexSignature:ut,updateIndexSignature:Ft,createClassStaticBlockDeclaration:Io,updateClassStaticBlockDeclaration:ua,createTemplateLiteralTypeSpan:hn,updateTemplateLiteralTypeSpan:dn,createKeywordTypeNode:un,createTypePredicateNode:U,updateTypePredicateNode:Me,createTypeReferenceNode:Nt,updateTypeReferenceNode:k,createFunctionTypeNode:ie,updateFunctionTypeNode:H,createConstructorTypeNode:We,updateConstructorTypeNode:Dt,createTypeQueryNode:wn,updateTypeQueryNode:Bn,createTypeLiteralNode:gi,updateTypeLiteralNode:xi,createArrayTypeNode:er,updateArrayTypeNode:Fr,createTupleTypeNode:go,updateTupleTypeNode:Pi,createNamedTupleMember:Ri,updateNamedTupleMember:Kr,createOptionalTypeNode:xo,updateOptionalTypeNode:xn,createRestTypeNode:Ls,updateRestTypeNode:$l,createUnionTypeNode:Ws,updateUnionTypeNode:ml,createIntersectionTypeNode:cd,updateIntersectionTypeNode:mo,createConditionalTypeNode:la,updateConditionalTypeNode:dd,createInferTypeNode:bs,updateInferTypeNode:Ca,createImportTypeNode:ac,updateImportTypeNode:xl,createParenthesizedType:al,updateParenthesizedType:Lo,createThisTypeNode:tn,createTypeOperatorNode:Fs,updateTypeOperatorNode:nd,createIndexedAccessTypeNode:ud,updateIndexedAccessTypeNode:Ep,createMappedTypeNode:Rs,updateMappedTypeNode:Ac,createLiteralTypeNode:de,updateLiteralTypeNode:$,createTemplateLiteralType:ul,updateTemplateLiteralType:Nf,createObjectBindingPattern:Pe,updateObjectBindingPattern:yt,createArrayBindingPattern:cn,updateArrayBindingPattern:yr,createBindingElement:pr,updateBindingElement:zr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:Cr,createObjectLiteralExpression:qo,updateObjectLiteralExpression:bl,createPropertyAccessExpression:e&4?(v,C)=>lr(zs(v,C),262144):zs,updatePropertyAccessExpression:hc,createPropertyAccessChain:e&4?(v,C,F)=>lr(ys(v,C,F),262144):ys,updatePropertyAccessChain:Kc,createElementAccessExpression:Oc,updateElementAccessExpression:im,createElementAccessChain:fu,updateElementAccessChain:Re,createCallExpression:Un,updateCallExpression:yo,createCallChain:Xo,updateCallChain:Zo,createNewExpression:Ql,updateNewExpression:gc,createTaggedTemplateExpression:sl,updateTaggedTemplateExpression:_l,createTypeAssertion:Gl,updateTypeAssertion:Zl,createParenthesizedExpression:Jc,updateParenthesizedExpression:lf,createFunctionExpression:Fu,updateFunctionExpression:xu,createArrowFunction:Pf,updateArrowFunction:z_,createDeleteExpression:Ah,updateDeleteExpression:Hg,createTypeOfExpression:Fd,updateTypeOfExpression:Kg,createVoidExpression:Sp,updateVoidExpression:lg,createAwaitExpression:zu,updateAwaitExpression:Q,createPrefixUnaryExpression:rt,updatePrefixUnaryExpression:wt,createPostfixUnaryExpression:zt,updatePostfixUnaryExpression:O,createBinaryExpression:Ee,updateBinaryExpression:Gt,createConditionalExpression:Zn,updateConditionalExpression:ii,createTemplateExpression:Xr,updateTemplateExpression:no,createTemplateHead:Tp,createTemplateMiddle:Bu,createTemplateTail:ob,createNoSubstitutionTemplateLiteral:ls,createTemplateLiteralLikeNode:Ic,createYieldExpression:Dm,updateYieldExpression:Cm,createSpreadElement:Ui,updateSpreadElement:Jg,createClassExpression:$y,updateClassExpression:Nm,createOmittedExpression:pS,createExpressionWithTypeArguments:fS,updateExpressionWithTypeArguments:cf,createAsExpression:B_,updateAsExpression:df,createNonNullExpression:qg,updateNonNullExpression:we,createSatisfiesExpression:qe,updateSatisfiesExpression:Pt,createNonNullChain:Bt,updateNonNullChain:_n,createMetaProperty:Jn,updateMetaProperty:fn,createTemplateSpan:qn,updateTemplateSpan:fi,createSemicolonClassElement:or,createBlock:ni,updateBlock:cr,createVariableStatement:Yo,updateVariableStatement:Ha,createEmptyStatement:$d,createExpressionStatement:fd,updateExpressionStatement:Xg,createIfStatement:LE,updateIfStatement:w1,createDoStatement:kE,updateDoStatement:kD,createWhileStatement:wD,updateWhileStatement:OD,createForStatement:oA,updateForStatement:mS,createForInStatement:O1,updateForInStatement:WD,createForOfStatement:W1,updateForOfStatement:F1,createContinueStatement:z1,updateContinueStatement:B1,createBreakStatement:aA,updateBreakStatement:G1,createReturnStatement:_S,updateReturnStatement:hS,createWithStatement:ab,updateWithStatement:sb,createSwitchStatement:cg,updateSwitchStatement:wE,createLabeledStatement:Qa,updateLabeledStatement:sA,createThrowStatement:FD,updateThrowStatement:OE,createTryStatement:Yg,updateTryStatement:Ih,createDebuggerStatement:Mf,createVariableDeclaration:Gu,updateVariableDeclaration:Ap,createVariableDeclarationList:np,updateVariableDeclarationList:Qy,createFunctionDeclaration:lA,updateFunctionDeclaration:zD,createClassDeclaration:lb,updateClassDeclaration:WE,createInterfaceDeclaration:j1,updateInterfaceDeclaration:yc,createTypeAliasDeclaration:Zy,updateTypeAliasDeclaration:U1,createEnumDeclaration:Zm,updateEnumDeclaration:cA,createModuleDeclaration:Ve,updateModuleDeclaration:e_,createModuleBlock:md,updateModuleBlock:FE,createCaseBlock:H1,updateCaseBlock:cb,createNamespaceExportDeclaration:ev,updateNamespaceExportDeclaration:tv,createImportEqualsDeclaration:Ka,updateImportEqualsDeclaration:t_,createImportDeclaration:dA,updateImportDeclaration:uA,createImportClause:zE,updateImportClause:pA,createAssertClause:om,updateAssertClause:am,createAssertEntry:$g,updateAssertEntry:K1,createImportTypeAssertionContainer:n_,updateImportTypeAssertionContainer:BD,createImportAttributes:gS,updateImportAttributes:qi,createImportAttribute:Qr,updateImportAttribute:xh,createNamespaceImport:Vu,updateNamespaceImport:SM,createNamespaceExport:Qg,updateNamespaceExport:TM,createNamedImports:db,updateNamedImports:hl,createImportSpecifier:Bp,updateImportSpecifier:dg,createExportAssignment:sm,updateExportAssignment:ub,createExportDeclaration:Pm,updateExportDeclaration:Zg,createNamedExports:fA,updateNamedExports:ug,createExportSpecifier:J1,updateExportSpecifier:pg,createMissingDeclaration:G_,createExternalModuleReference:nv,updateExternalModuleReference:GD,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return E(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return E(321)},get createJSDocOptionalType(){return h(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return h(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return h(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:_A,updateJSDocFunctionType:Mm,createJSDocTypeLiteral:pb,updateJSDocTypeLiteral:UD,createJSDocTypeExpression:hA,updateJSDocTypeExpression:AM,createJSDocSignature:fr,updateJSDocSignature:rd,createJSDocTemplateTag:V_,updateJSDocTemplateTag:ar,createJSDocTypedefTag:gA,updateJSDocTypedefTag:BE,createJSDocParameterTag:qc,updateJSDocParameterTag:Rh,createJSDocPropertyTag:Lm,updateJSDocPropertyTag:bS,createJSDocCallbackTag:ES,updateJSDocCallbackTag:fb,createJSDocOverloadTag:ey,updateJSDocOverloadTag:yA,createJSDocAugmentsTag:km,updateJSDocAugmentsTag:GE,createJSDocImplementsTag:fg,updateJSDocImplementsTag:rp,createJSDocSeeTag:mb,updateJSDocSeeTag:q1,createJSDocNameReference:VE,updateJSDocNameReference:HD,createJSDocMemberName:SS,updateJSDocMemberName:vA,createJSDocLink:Gp,updateJSDocLink:bA,createJSDocLinkCode:Vl,updateJSDocLinkCode:Wc,createJSDocLinkPlain:EA,updateJSDocLinkPlain:Td,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 S(337)},get updateJSDocAuthorTag(){return A(337)},get createJSDocClassTag(){return S(339)},get updateJSDocClassTag(){return A(339)},get createJSDocPublicTag(){return S(340)},get updateJSDocPublicTag(){return A(340)},get createJSDocPrivateTag(){return S(341)},get updateJSDocPrivateTag(){return A(341)},get createJSDocProtectedTag(){return S(342)},get updateJSDocProtectedTag(){return A(342)},get createJSDocReadonlyTag(){return S(343)},get updateJSDocReadonlyTag(){return A(343)},get createJSDocOverrideTag(){return S(344)},get updateJSDocOverrideTag(){return A(344)},get createJSDocDeprecatedTag(){return S(338)},get updateJSDocDeprecatedTag(){return A(338)},get createJSDocThrowsTag(){return N(356)},get updateJSDocThrowsTag(){return D(356)},get createJSDocSatisfiesTag(){return N(357)},get updateJSDocSatisfiesTag(){return D(357)},createJSDocEnumTag:Vp,updateJSDocEnumTag:SA,createJSDocUnknownTag:id,updateJSDocUnknownTag:X1,createJSDocText:TA,updateJSDocText:Bs,createJSDocComment:KD,updateJSDocComment:UE,createJsxElement:TS,updateJsxElement:IM,createJsxSelfClosingElement:mu,updateJsxSelfClosingElement:ty,createJsxOpeningElement:j_,updateJsxOpeningElement:Y1,createJsxClosingElement:Ip,updateJsxClosingElement:$1,createJsxFragment:ip,createJsxText:iv,updateJsxText:AA,createJsxOpeningFragment:JD,createJsxJsxClosingFragment:qD,updateJsxFragment:Q1,createJsxAttribute:IA,updateJsxAttribute:XD,createJsxAttributes:gb,updateJsxAttributes:xp,createJsxSpreadAttribute:Dh,updateJsxSpreadAttribute:YD,createJsxExpression:xA,updateJsxExpression:es,createJsxNamespacedName:Sr,updateJsxNamespacedName:pf,createCaseClause:Ru,updateCaseClause:AS,createDefaultClause:$D,updateDefaultClause:HE,createHeritageClause:IS,updateHeritageClause:RA,createCatchClause:mg,updateCatchClause:r_,createPropertyAssignment:ff,updatePropertyAssignment:wm,createShorthandPropertyAssignment:_g,updateShorthandPropertyAssignment:hg,createSpreadAssignment:sc,updateSpreadAssignment:QD,createEnumMember:kf,updateEnumMember:Ch,createSourceFile:mf,updateSourceFile:Ds,createRedirectedSourceFile:xS,createBundle:RS,updateBundle:DS,createUnparsedSource:ry,createUnparsedPrologue:JE,createUnparsedPrepend:I,createUnparsedTextLike:oe,createUnparsedSyntheticReference:dt,createInputFiles:nn,createSyntheticExpression:Mr,createSyntaxList:ki,createNotEmittedStatement:vi,createPartiallyEmittedExpression:Zi,updatePartiallyEmittedExpression:_a,createCommaListExpression:Du,updateCommaListExpression:wf,createSyntheticReferenceExpression:vb,updateSyntheticReferenceExpression:Si,cloneNode:Eb,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(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 d(46)},get createPostfixDecrement(){return d(47)},createImmediatelyInvokedFunctionExpression:CA,createImmediatelyInvokedArrowFunction:CS,createVoidZero:U_,createExportDefault:Ph,createExternalModuleExport:ZD,createTypeCheck:NA,createIsNotTypeCheck:UB,createMethodCall:Sb,createGlobalMethodCall:i_,createFunctionBindCall:l8,createFunctionCallCall:c8,createFunctionApplyCall:qE,createArraySliceCall:xM,createArrayConcatCall:Mh,createObjectDefinePropertyCall:nx,createObjectGetOwnPropertyDescriptorCall:d8,createReflectGetCall:H_,createReflectSetCall:X,createPropertyDescriptor:Ue,createCallBinding:Ci,createAssignmentTargetWrapper:mi,inlineExpressions:Xi,getInternalName:As,getLocalName:$a,getExportName:Of,getDeclarationName:K_,getNamespaceMemberName:gg,getExternalModuleOrNamespaceExportName:iy,restoreOuterExpressions:Vt,restoreEnclosingLabel:wr,createUseStrictPrologue:op,copyPrologue:oy,copyStandardPrologue:PA,copyCustomPrologue:eC,ensureUseStrict:RM,liftToBlock:DM,mergeLexicalEnvironment:ay,replaceModifiers:Ab,replaceDecoratorsAndModifiers:tC,replacePropertyName:jp};return gn(Voe,v=>v(w)),w;function j(v,C){if(v===void 0||v===Xe)v=[];else if(v0(v)){if(C===void 0||v.hasTrailingComma===C)return v.transformFlags===void 0&&LSe(v),x.attachNodeArrayDebugInfo(v),v;let Ke=v.slice();return Ke.pos=v.pos,Ke.end=v.end,Ke.hasTrailingComma=C,Ke.transformFlags=v.transformFlags,x.attachNodeArrayDebugInfo(Ke),Ke}let F=v.length,se=F>=1&&F<=4?v.slice():v;return se.pos=-1,se.end=-1,se.hasTrailingComma=!!C,se.transformFlags=0,LSe(se),x.attachNodeArrayDebugInfo(se),se}function K(v){return t.createBaseNode(v)}function Y(v){let C=K(v);return C.symbol=void 0,C.localSymbol=void 0,C}function B(v,C){return v!==C&&(v.typeArguments=C.typeArguments),tr(v,C)}function ce(v,C=0){let F=typeof v=="number"?v+"":v;x.assert(F.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let se=Y(9);return se.text=F,se.numericLiteralFlags=C,C&384&&(se.transformFlags|=1024),se}function z(v){let C=Et(10);return C.text=typeof v=="string"?v:W0(v)+"n",C.transformFlags|=32,C}function Z(v,C){let F=Y(11);return F.text=v,F.singleQuote=C,F}function me(v,C,F){let se=Z(v,C);return se.hasExtendedUnicodeEscape=F,F&&(se.transformFlags|=1024),se}function ge(v){let C=Z(Xf(v),void 0);return C.textSourceNode=v,C}function q(v){let C=Et(14);return C.text=v,C}function J(v,C){switch(v){case 9:return ce(C,0);case 10:return z(C);case 11:return me(C,void 0);case 12:return iv(C,!1);case 13:return iv(C,!0);case 14:return q(C);case 15:return Ic(v,C,void 0,0)}}function re(v){let C=t.createBaseIdentifierNode(80);return C.escapedText=v,C.jsDoc=void 0,C.flowNode=void 0,C.symbol=void 0,C}function pe(v,C,F,se){let Ke=re(pl(v));return xk(Ke,{flags:C,id:e4,prefix:F,suffix:se}),e4++,Ke}function xe(v,C,F){C===void 0&&v&&(C=g0(v)),C===80&&(C=void 0);let se=re(pl(v));return F&&(se.flags|=256),se.escapedText==="await"&&(se.transformFlags|=67108864),se.flags&256&&(se.transformFlags|=1024),se}function fe(v,C,F,se){let Ke=1;C&&(Ke|=8);let jt=pe("",Ke,F,se);return v&&v(jt),jt}function ne(v){let C=2;return v&&(C|=8),pe("",C,void 0,void 0)}function he(v,C=0,F,se){return x.assert(!(C&7),"Argument out of range: flags"),x.assert((C&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),pe(v,3|C,F,se)}function Ce(v,C=0,F,se){x.assert(!(C&7),"Argument out of range: flags");let Ke=v?Hh(v)?vE(!1,F,v,se,gr):`generated@${rs(v)}`:"";(F||se)&&(C|=16);let jt=pe(Ke,4|C,F,se);return jt.original=v,jt}function Ge(v){let C=t.createBasePrivateIdentifierNode(81);return C.escapedText=v,C.transformFlags|=16777216,C}function ve(v){return ao(v,"#")||x.fail("First character of private identifier must be #: "+v),Ge(pl(v))}function Ae(v,C,F,se){let Ke=Ge(pl(v));return xk(Ke,{flags:C,id:e4,prefix:F,suffix:se}),e4++,Ke}function De(v,C,F){v&&!ao(v,"#")&&x.fail("First character of private identifier must be #: "+v);let se=8|(v?3:1);return Ae(v??"",se,C,F)}function Le(v,C,F){let se=Hh(v)?vE(!0,C,v,F,gr):`#generated@${rs(v)}`,jt=Ae(se,4|(C||F?16:0),C,F);return jt.original=v,jt}function Et(v){return t.createBaseTokenNode(v)}function be(v){x.assert(v>=0&&v<=165,"Invalid token"),x.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),x.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),x.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let C=Et(v),F=0;switch(v){case 134:F=384;break;case 160:F=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:F=1;break;case 108:F=134218752,C.flowNode=void 0;break;case 126:F=1024;break;case 129:F=16777216;break;case 110:F=16384,C.flowNode=void 0;break}return F&&(C.transformFlags|=F),C}function ze(){return be(108)}function tt(){return be(110)}function Wt(){return be(106)}function _t(){return be(112)}function Je(){return be(97)}function pt(v){return be(v)}function Zt(v){let C=[];return v&32&&C.push(pt(95)),v&128&&C.push(pt(138)),v&2048&&C.push(pt(90)),v&4096&&C.push(pt(87)),v&1&&C.push(pt(125)),v&2&&C.push(pt(123)),v&4&&C.push(pt(124)),v&64&&C.push(pt(128)),v&256&&C.push(pt(126)),v&16&&C.push(pt(164)),v&8&&C.push(pt(148)),v&512&&C.push(pt(129)),v&1024&&C.push(pt(134)),v&8192&&C.push(pt(103)),v&16384&&C.push(pt(147)),C.length?C:void 0}function en(v,C){let F=K(166);return F.left=v,F.right=lc(C),F.transformFlags|=br(F.left)|Ek(F.right),F.flowNode=void 0,F}function Dn(v,C,F){return v.left!==C||v.right!==F?tr(en(C,F),v):v}function Kn(v){let C=K(167);return C.expression=i().parenthesizeExpressionOfComputedPropertyName(v),C.transformFlags|=br(C.expression)|1024|131072,C}function pn(v,C){return v.expression!==C?tr(Kn(C),v):v}function Xt(v,C,F,se){let Ke=Y(168);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.constraint=F,Ke.default=se,Ke.transformFlags=1,Ke.expression=void 0,Ke.jsDoc=void 0,Ke}function Kt(v,C,F,se,Ke){return v.modifiers!==C||v.name!==F||v.constraint!==se||v.default!==Ke?tr(Xt(C,F,se,Ke),v):v}function hi(v,C,F,se,Ke,jt){let _r=Y(169);return _r.modifiers=Ga(v),_r.dotDotDotToken=C,_r.name=lc(F),_r.questionToken=se,_r.type=Ke,_r.initializer=rx(jt),k0(_r.name)?_r.transformFlags=1:_r.transformFlags=Ua(_r.modifiers)|br(_r.dotDotDotToken)|jv(_r.name)|br(_r.questionToken)|br(_r.initializer)|(_r.questionToken??_r.type?1:0)|(_r.dotDotDotToken??_r.initializer?1024:0)|(x_(_r.modifiers)&31?8192:0),_r.jsDoc=void 0,_r}function uo(v,C,F,se,Ke,jt,_r){return v.modifiers!==C||v.dotDotDotToken!==F||v.name!==se||v.questionToken!==Ke||v.type!==jt||v.initializer!==_r?tr(hi(C,F,se,Ke,jt,_r),v):v}function Li(v){let C=K(170);return C.expression=i().parenthesizeLeftSideOfAccess(v,!1),C.transformFlags|=br(C.expression)|1|8192|33554432,C}function So(v,C){return v.expression!==C?tr(Li(C),v):v}function Qn(v,C,F,se){let Ke=Y(171);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.type=se,Ke.questionToken=F,Ke.transformFlags=1,Ke.initializer=void 0,Ke.jsDoc=void 0,Ke}function Ur(v,C,F,se,Ke){return v.modifiers!==C||v.name!==F||v.questionToken!==se||v.type!==Ke?Er(Qn(C,F,se,Ke),v):v}function Er(v,C){return v!==C&&(v.initializer=C.initializer),tr(v,C)}function on(v,C,F,se,Ke){let jt=Y(172);jt.modifiers=Ga(v),jt.name=lc(C),jt.questionToken=F&&Uv(F)?F:void 0,jt.exclamationToken=F&&Pk(F)?F:void 0,jt.type=se,jt.initializer=rx(Ke);let _r=jt.flags&33554432||x_(jt.modifiers)&128;return jt.transformFlags=Ua(jt.modifiers)|jv(jt.name)|br(jt.initializer)|(_r||jt.questionToken||jt.exclamationToken||jt.type?1:0)|(Ya(jt.name)||x_(jt.modifiers)&256&&jt.initializer?8192:0)|16777216,jt.jsDoc=void 0,jt}function Ye(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.questionToken!==(se!==void 0&&Uv(se)?se:void 0)||v.exclamationToken!==(se!==void 0&&Pk(se)?se:void 0)||v.type!==Ke||v.initializer!==jt?tr(on(C,F,se,Ke,jt),v):v}function Ot(v,C,F,se,Ke,jt){let _r=Y(173);return _r.modifiers=Ga(v),_r.name=lc(C),_r.questionToken=F,_r.typeParameters=Ga(se),_r.parameters=Ga(Ke),_r.type=jt,_r.transformFlags=1,_r.jsDoc=void 0,_r.locals=void 0,_r.nextContainer=void 0,_r.typeArguments=void 0,_r}function In(v,C,F,se,Ke,jt,_r){return v.modifiers!==C||v.name!==F||v.questionToken!==se||v.typeParameters!==Ke||v.parameters!==jt||v.type!==_r?B(Ot(C,F,se,Ke,jt,_r),v):v}function si(v,C,F,se,Ke,jt,_r,eo){let Gs=Y(174);if(Gs.modifiers=Ga(v),Gs.asteriskToken=C,Gs.name=lc(F),Gs.questionToken=se,Gs.exclamationToken=void 0,Gs.typeParameters=Ga(Ke),Gs.parameters=j(jt),Gs.type=_r,Gs.body=eo,!Gs.body)Gs.transformFlags=1;else{let o_=x_(Gs.modifiers)&1024,xb=!!Gs.asteriskToken,Om=o_&&xb;Gs.transformFlags=Ua(Gs.modifiers)|br(Gs.asteriskToken)|jv(Gs.name)|br(Gs.questionToken)|Ua(Gs.typeParameters)|Ua(Gs.parameters)|br(Gs.type)|br(Gs.body)&-67108865|(Om?128:o_?256:xb?2048:0)|(Gs.questionToken||Gs.typeParameters||Gs.type?1:0)|1024}return Gs.typeArguments=void 0,Gs.jsDoc=void 0,Gs.locals=void 0,Gs.nextContainer=void 0,Gs.flowNode=void 0,Gs.endFlowNode=void 0,Gs.returnFlowNode=void 0,Gs}function yi(v,C,F,se,Ke,jt,_r,eo,Gs){return v.modifiers!==C||v.asteriskToken!==F||v.name!==se||v.questionToken!==Ke||v.typeParameters!==jt||v.parameters!==_r||v.type!==eo||v.body!==Gs?$i(si(C,F,se,Ke,jt,_r,eo,Gs),v):v}function $i(v,C){return v!==C&&(v.exclamationToken=C.exclamationToken),tr(v,C)}function Io(v){let C=Y(175);return C.body=v,C.transformFlags=br(v)|16777216,C.modifiers=void 0,C.jsDoc=void 0,C.locals=void 0,C.nextContainer=void 0,C.endFlowNode=void 0,C.returnFlowNode=void 0,C}function ua(v,C){return v.body!==C?Ba(Io(C),v):v}function Ba(v,C){return v!==C&&(v.modifiers=C.modifiers),tr(v,C)}function vn(v,C,F){let se=Y(176);return se.modifiers=Ga(v),se.parameters=j(C),se.body=F,se.transformFlags=Ua(se.modifiers)|Ua(se.parameters)|br(se.body)&-67108865|1024,se.typeParameters=void 0,se.type=void 0,se.typeArguments=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.returnFlowNode=void 0,se}function kn(v,C,F,se){return v.modifiers!==C||v.parameters!==F||v.body!==se?Be(vn(C,F,se),v):v}function Be(v,C){return v!==C&&(v.typeParameters=C.typeParameters,v.type=C.type),B(v,C)}function ct(v,C,F,se,Ke){let jt=Y(177);return jt.modifiers=Ga(v),jt.name=lc(C),jt.parameters=j(F),jt.type=se,jt.body=Ke,jt.body?jt.transformFlags=Ua(jt.modifiers)|jv(jt.name)|Ua(jt.parameters)|br(jt.type)|br(jt.body)&-67108865|(jt.type?1:0):jt.transformFlags=1,jt.typeArguments=void 0,jt.typeParameters=void 0,jt.jsDoc=void 0,jt.locals=void 0,jt.nextContainer=void 0,jt.flowNode=void 0,jt.endFlowNode=void 0,jt.returnFlowNode=void 0,jt}function lt(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.parameters!==se||v.type!==Ke||v.body!==jt?Rt(ct(C,F,se,Ke,jt),v):v}function Rt(v,C){return v!==C&&(v.typeParameters=C.typeParameters),B(v,C)}function ae(v,C,F,se){let Ke=Y(178);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.parameters=j(F),Ke.body=se,Ke.body?Ke.transformFlags=Ua(Ke.modifiers)|jv(Ke.name)|Ua(Ke.parameters)|br(Ke.body)&-67108865|(Ke.type?1:0):Ke.transformFlags=1,Ke.typeArguments=void 0,Ke.typeParameters=void 0,Ke.type=void 0,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke.endFlowNode=void 0,Ke.returnFlowNode=void 0,Ke}function ke(v,C,F,se,Ke){return v.modifiers!==C||v.name!==F||v.parameters!==se||v.body!==Ke?st(ae(C,F,se,Ke),v):v}function st(v,C){return v!==C&&(v.typeParameters=C.typeParameters,v.type=C.type),B(v,C)}function G(v,C,F){let se=Y(179);return se.typeParameters=Ga(v),se.parameters=Ga(C),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function et(v,C,F,se){return v.typeParameters!==C||v.parameters!==F||v.type!==se?B(G(C,F,se),v):v}function Tt(v,C,F){let se=Y(180);return se.typeParameters=Ga(v),se.parameters=Ga(C),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function He(v,C,F,se){return v.typeParameters!==C||v.parameters!==F||v.type!==se?B(Tt(C,F,se),v):v}function ut(v,C,F){let se=Y(181);return se.modifiers=Ga(v),se.parameters=Ga(C),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Ft(v,C,F,se){return v.parameters!==F||v.type!==se||v.modifiers!==C?B(ut(C,F,se),v):v}function hn(v,C){let F=K(204);return F.type=v,F.literal=C,F.transformFlags=1,F}function dn(v,C,F){return v.type!==C||v.literal!==F?tr(hn(C,F),v):v}function un(v){return be(v)}function U(v,C,F){let se=K(182);return se.assertsModifier=v,se.parameterName=lc(C),se.type=F,se.transformFlags=1,se}function Me(v,C,F,se){return v.assertsModifier!==C||v.parameterName!==F||v.type!==se?tr(U(C,F,se),v):v}function Nt(v,C){let F=K(183);return F.typeName=lc(v),F.typeArguments=C&&i().parenthesizeTypeArguments(j(C)),F.transformFlags=1,F}function k(v,C,F){return v.typeName!==C||v.typeArguments!==F?tr(Nt(C,F),v):v}function ie(v,C,F){let se=Y(184);return se.typeParameters=Ga(v),se.parameters=Ga(C),se.type=F,se.transformFlags=1,se.modifiers=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function H(v,C,F,se){return v.typeParameters!==C||v.parameters!==F||v.type!==se?ue(ie(C,F,se),v):v}function ue(v,C){return v!==C&&(v.modifiers=C.modifiers),B(v,C)}function We(...v){return v.length===4?Ne(...v):v.length===3?It(...v):x.fail("Incorrect number of arguments specified.")}function Ne(v,C,F,se){let Ke=Y(185);return Ke.modifiers=Ga(v),Ke.typeParameters=Ga(C),Ke.parameters=Ga(F),Ke.type=se,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.typeArguments=void 0,Ke}function It(v,C,F){return Ne(void 0,v,C,F)}function Dt(...v){return v.length===5?Ut(...v):v.length===4?En(...v):x.fail("Incorrect number of arguments specified.")}function Ut(v,C,F,se,Ke){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==se||v.type!==Ke?B(We(C,F,se,Ke),v):v}function En(v,C,F,se){return Ut(v,v.modifiers,C,F,se)}function wn(v,C){let F=K(186);return F.exprName=v,F.typeArguments=C&&i().parenthesizeTypeArguments(C),F.transformFlags=1,F}function Bn(v,C,F){return v.exprName!==C||v.typeArguments!==F?tr(wn(C,F),v):v}function gi(v){let C=Y(187);return C.members=j(v),C.transformFlags=1,C}function xi(v,C){return v.members!==C?tr(gi(C),v):v}function er(v){let C=K(188);return C.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),C.transformFlags=1,C}function Fr(v,C){return v.elementType!==C?tr(er(C),v):v}function go(v){let C=K(189);return C.elements=j(i().parenthesizeElementTypesOfTupleType(v)),C.transformFlags=1,C}function Pi(v,C){return v.elements!==C?tr(go(C),v):v}function Ri(v,C,F,se){let Ke=Y(202);return Ke.dotDotDotToken=v,Ke.name=C,Ke.questionToken=F,Ke.type=se,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke}function Kr(v,C,F,se,Ke){return v.dotDotDotToken!==C||v.name!==F||v.questionToken!==se||v.type!==Ke?tr(Ri(C,F,se,Ke),v):v}function xo(v){let C=K(190);return C.type=i().parenthesizeTypeOfOptionalType(v),C.transformFlags=1,C}function xn(v,C){return v.type!==C?tr(xo(C),v):v}function Ls(v){let C=K(191);return C.type=v,C.transformFlags=1,C}function $l(v,C){return v.type!==C?tr(Ls(C),v):v}function Mo(v,C,F){let se=K(v);return se.types=w.createNodeArray(F(C)),se.transformFlags=1,se}function ss(v,C,F){return v.types!==C?tr(Mo(v.kind,C,F),v):v}function Ws(v){return Mo(192,v,i().parenthesizeConstituentTypesOfUnionType)}function ml(v,C){return ss(v,C,i().parenthesizeConstituentTypesOfUnionType)}function cd(v){return Mo(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function mo(v,C){return ss(v,C,i().parenthesizeConstituentTypesOfIntersectionType)}function la(v,C,F,se){let Ke=K(194);return Ke.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Ke.extendsType=i().parenthesizeExtendsTypeOfConditionalType(C),Ke.trueType=F,Ke.falseType=se,Ke.transformFlags=1,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function dd(v,C,F,se,Ke){return v.checkType!==C||v.extendsType!==F||v.trueType!==se||v.falseType!==Ke?tr(la(C,F,se,Ke),v):v}function bs(v){let C=K(195);return C.typeParameter=v,C.transformFlags=1,C}function Ca(v,C){return v.typeParameter!==C?tr(bs(C),v):v}function ul(v,C){let F=K(203);return F.head=v,F.templateSpans=j(C),F.transformFlags=1,F}function Nf(v,C,F){return v.head!==C||v.templateSpans!==F?tr(ul(C,F),v):v}function ac(v,C,F,se,Ke=!1){let jt=K(205);return jt.argument=v,jt.attributes=C,jt.assertions&&jt.assertions.assertClause&&jt.attributes&&(jt.assertions.assertClause=jt.attributes),jt.qualifier=F,jt.typeArguments=se&&i().parenthesizeTypeArguments(se),jt.isTypeOf=Ke,jt.transformFlags=1,jt}function xl(v,C,F,se,Ke,jt=v.isTypeOf){return v.argument!==C||v.attributes!==F||v.qualifier!==se||v.typeArguments!==Ke||v.isTypeOf!==jt?tr(ac(C,F,se,Ke,jt),v):v}function al(v){let C=K(196);return C.type=v,C.transformFlags=1,C}function Lo(v,C){return v.type!==C?tr(al(C),v):v}function tn(){let v=K(197);return v.transformFlags=1,v}function Fs(v,C){let F=K(198);return F.operator=v,F.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(C):i().parenthesizeOperandOfTypeOperator(C),F.transformFlags=1,F}function nd(v,C){return v.type!==C?tr(Fs(v.operator,C),v):v}function ud(v,C){let F=K(199);return F.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),F.indexType=C,F.transformFlags=1,F}function Ep(v,C,F){return v.objectType!==C||v.indexType!==F?tr(ud(C,F),v):v}function Rs(v,C,F,se,Ke,jt){let _r=Y(200);return _r.readonlyToken=v,_r.typeParameter=C,_r.nameType=F,_r.questionToken=se,_r.type=Ke,_r.members=jt&&j(jt),_r.transformFlags=1,_r.locals=void 0,_r.nextContainer=void 0,_r}function Ac(v,C,F,se,Ke,jt,_r){return v.readonlyToken!==C||v.typeParameter!==F||v.nameType!==se||v.questionToken!==Ke||v.type!==jt||v.members!==_r?tr(Rs(C,F,se,Ke,jt,_r),v):v}function de(v){let C=K(201);return C.literal=v,C.transformFlags=1,C}function $(v,C){return v.literal!==C?tr(de(C),v):v}function Pe(v){let C=K(206);return C.elements=j(v),C.transformFlags|=Ua(C.elements)|1024|524288,C.transformFlags&32768&&(C.transformFlags|=65664),C}function yt(v,C){return v.elements!==C?tr(Pe(C),v):v}function cn(v){let C=K(207);return C.elements=j(v),C.transformFlags|=Ua(C.elements)|1024|524288,C}function yr(v,C){return v.elements!==C?tr(cn(C),v):v}function pr(v,C,F,se){let Ke=Y(208);return Ke.dotDotDotToken=v,Ke.propertyName=lc(C),Ke.name=lc(F),Ke.initializer=rx(se),Ke.transformFlags|=br(Ke.dotDotDotToken)|jv(Ke.propertyName)|jv(Ke.name)|br(Ke.initializer)|(Ke.dotDotDotToken?32768:0)|1024,Ke.flowNode=void 0,Ke}function zr(v,C,F,se,Ke){return v.propertyName!==F||v.dotDotDotToken!==C||v.name!==se||v.initializer!==Ke?tr(pr(C,F,se,Ke),v):v}function Di(v,C){let F=K(209),se=v&&$s(v),Ke=j(v,se&&jc(se)?!0:void 0);return F.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Ke),F.multiLine=C,F.transformFlags|=Ua(F.elements),F}function Cr(v,C){return v.elements!==C?tr(Di(C,v.multiLine),v):v}function qo(v,C){let F=Y(210);return F.properties=j(v),F.multiLine=C,F.transformFlags|=Ua(F.properties),F.jsDoc=void 0,F}function bl(v,C){return v.properties!==C?tr(qo(C,v.multiLine),v):v}function Hc(v,C,F){let se=Y(211);return se.expression=v,se.questionDotToken=C,se.name=F,se.transformFlags=br(se.expression)|br(se.questionDotToken)|(Fe(se.name)?Ek(se.name):br(se.name)|536870912),se.jsDoc=void 0,se.flowNode=void 0,se}function zs(v,C){let F=Hc(i().parenthesizeLeftSideOfAccess(v,!1),void 0,lc(C));return aP(v)&&(F.transformFlags|=384),F}function hc(v,C,F){return oF(v)?Kc(v,C,v.questionDotToken,na(F,Fe)):v.expression!==C||v.name!==F?tr(zs(C,F),v):v}function ys(v,C,F){let se=Hc(i().parenthesizeLeftSideOfAccess(v,!0),C,lc(F));return se.flags|=64,se.transformFlags|=32,se}function Kc(v,C,F,se){return x.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==C||v.questionDotToken!==F||v.name!==se?tr(ys(C,F,se),v):v}function tp(v,C,F){let se=Y(212);return se.expression=v,se.questionDotToken=C,se.argumentExpression=F,se.transformFlags|=br(se.expression)|br(se.questionDotToken)|br(se.argumentExpression),se.jsDoc=void 0,se.flowNode=void 0,se}function Oc(v,C){let F=tp(i().parenthesizeLeftSideOfAccess(v,!1),void 0,YE(C));return aP(v)&&(F.transformFlags|=384),F}function im(v,C,F){return SV(v)?Re(v,C,v.questionDotToken,F):v.expression!==C||v.argumentExpression!==F?tr(Oc(C,F),v):v}function fu(v,C,F){let se=tp(i().parenthesizeLeftSideOfAccess(v,!0),C,YE(F));return se.flags|=64,se.transformFlags|=32,se}function Re(v,C,F,se){return x.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==C||v.questionDotToken!==F||v.argumentExpression!==se?tr(fu(C,F,se),v):v}function Lt(v,C,F,se){let Ke=Y(213);return Ke.expression=v,Ke.questionDotToken=C,Ke.typeArguments=F,Ke.arguments=se,Ke.transformFlags|=br(Ke.expression)|br(Ke.questionDotToken)|Ua(Ke.typeArguments)|Ua(Ke.arguments),Ke.typeArguments&&(Ke.transformFlags|=1),ku(Ke.expression)&&(Ke.transformFlags|=16384),Ke}function Un(v,C,F){let se=Lt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Ga(C),i().parenthesizeExpressionsOfCommaDelimitedList(j(F)));return sP(se.expression)&&(se.transformFlags|=8388608),se}function yo(v,C,F,se){return oT(v)?Zo(v,C,v.questionDotToken,F,se):v.expression!==C||v.typeArguments!==F||v.arguments!==se?tr(Un(C,F,se),v):v}function Xo(v,C,F,se){let Ke=Lt(i().parenthesizeLeftSideOfAccess(v,!0),C,Ga(F),i().parenthesizeExpressionsOfCommaDelimitedList(j(se)));return Ke.flags|=64,Ke.transformFlags|=32,Ke}function Zo(v,C,F,se,Ke){return x.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==C||v.questionDotToken!==F||v.typeArguments!==se||v.arguments!==Ke?tr(Xo(C,F,se,Ke),v):v}function Ql(v,C,F){let se=Y(214);return se.expression=i().parenthesizeExpressionOfNew(v),se.typeArguments=Ga(C),se.arguments=F?i().parenthesizeExpressionsOfCommaDelimitedList(F):void 0,se.transformFlags|=br(se.expression)|Ua(se.typeArguments)|Ua(se.arguments)|32,se.typeArguments&&(se.transformFlags|=1),se}function gc(v,C,F,se){return v.expression!==C||v.typeArguments!==F||v.arguments!==se?tr(Ql(C,F,se),v):v}function sl(v,C,F){let se=K(215);return se.tag=i().parenthesizeLeftSideOfAccess(v,!1),se.typeArguments=Ga(C),se.template=F,se.transformFlags|=br(se.tag)|Ua(se.typeArguments)|br(se.template)|1024,se.typeArguments&&(se.transformFlags|=1),kj(se.template)&&(se.transformFlags|=128),se}function _l(v,C,F,se){return v.tag!==C||v.typeArguments!==F||v.template!==se?tr(sl(C,F,se),v):v}function Gl(v,C){let F=K(216);return F.expression=i().parenthesizeOperandOfPrefixUnary(C),F.type=v,F.transformFlags|=br(F.expression)|br(F.type)|1,F}function Zl(v,C,F){return v.type!==C||v.expression!==F?tr(Gl(C,F),v):v}function Jc(v){let C=K(217);return C.expression=v,C.transformFlags=br(C.expression),C.jsDoc=void 0,C}function lf(v,C){return v.expression!==C?tr(Jc(C),v):v}function Fu(v,C,F,se,Ke,jt,_r){let eo=Y(218);eo.modifiers=Ga(v),eo.asteriskToken=C,eo.name=lc(F),eo.typeParameters=Ga(se),eo.parameters=j(Ke),eo.type=jt,eo.body=_r;let Gs=x_(eo.modifiers)&1024,o_=!!eo.asteriskToken,xb=Gs&&o_;return eo.transformFlags=Ua(eo.modifiers)|br(eo.asteriskToken)|jv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|br(eo.type)|br(eo.body)&-67108865|(xb?128:Gs?256:o_?2048:0)|(eo.typeParameters||eo.type?1:0)|4194304,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 xu(v,C,F,se,Ke,jt,_r,eo){return v.name!==se||v.modifiers!==C||v.asteriskToken!==F||v.typeParameters!==Ke||v.parameters!==jt||v.type!==_r||v.body!==eo?B(Fu(C,F,se,Ke,jt,_r,eo),v):v}function Pf(v,C,F,se,Ke,jt){let _r=Y(219);_r.modifiers=Ga(v),_r.typeParameters=Ga(C),_r.parameters=j(F),_r.type=se,_r.equalsGreaterThanToken=Ke??be(39),_r.body=i().parenthesizeConciseBodyOfArrowFunction(jt);let eo=x_(_r.modifiers)&1024;return _r.transformFlags=Ua(_r.modifiers)|Ua(_r.typeParameters)|Ua(_r.parameters)|br(_r.type)|br(_r.equalsGreaterThanToken)|br(_r.body)&-67108865|(_r.typeParameters||_r.type?1:0)|(eo?16640:0)|1024,_r.typeArguments=void 0,_r.jsDoc=void 0,_r.locals=void 0,_r.nextContainer=void 0,_r.flowNode=void 0,_r.endFlowNode=void 0,_r.returnFlowNode=void 0,_r}function z_(v,C,F,se,Ke,jt,_r){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==se||v.type!==Ke||v.equalsGreaterThanToken!==jt||v.body!==_r?B(Pf(C,F,se,Ke,jt,_r),v):v}function Ah(v){let C=K(220);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function Hg(v,C){return v.expression!==C?tr(Ah(C),v):v}function Fd(v){let C=K(221);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function Kg(v,C){return v.expression!==C?tr(Fd(C),v):v}function Sp(v){let C=K(222);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function lg(v,C){return v.expression!==C?tr(Sp(C),v):v}function zu(v){let C=K(223);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression)|256|128|2097152,C}function Q(v,C){return v.expression!==C?tr(zu(C),v):v}function rt(v,C){let F=K(224);return F.operator=v,F.operand=i().parenthesizeOperandOfPrefixUnary(C),F.transformFlags|=br(F.operand),(v===46||v===47)&&Fe(F.operand)&&!rl(F.operand)&&!Bg(F.operand)&&(F.transformFlags|=268435456),F}function wt(v,C){return v.operand!==C?tr(rt(v.operator,C),v):v}function zt(v,C){let F=K(225);return F.operator=C,F.operand=i().parenthesizeOperandOfPostfixUnary(v),F.transformFlags|=br(F.operand),Fe(F.operand)&&!rl(F.operand)&&!Bg(F.operand)&&(F.transformFlags|=268435456),F}function O(v,C){return v.operand!==C?tr(zt(C,v.operator),v):v}function Ee(v,C,F){let se=Y(226),Ke=CM(C),jt=Ke.kind;return se.left=i().parenthesizeLeftSideOfBinary(jt,v),se.operatorToken=Ke,se.right=i().parenthesizeRightSideOfBinary(jt,se.left,F),se.transformFlags|=br(se.left)|br(se.operatorToken)|br(se.right),jt===61?se.transformFlags|=32:jt===64?Ma(se.left)?se.transformFlags|=5248|nt(se.left):uu(se.left)&&(se.transformFlags|=5120|nt(se.left)):jt===43||jt===68?se.transformFlags|=512:NN(jt)&&(se.transformFlags|=16),jt===103&&Ki(se.left)&&(se.transformFlags|=536870912),se.jsDoc=void 0,se}function nt(v){return qk(v)?65536:0}function Gt(v,C,F,se){return v.left!==C||v.operatorToken!==F||v.right!==se?tr(Ee(C,F,se),v):v}function Zn(v,C,F,se,Ke){let jt=K(227);return jt.condition=i().parenthesizeConditionOfConditionalExpression(v),jt.questionToken=C??be(58),jt.whenTrue=i().parenthesizeBranchOfConditionalExpression(F),jt.colonToken=se??be(59),jt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Ke),jt.transformFlags|=br(jt.condition)|br(jt.questionToken)|br(jt.whenTrue)|br(jt.colonToken)|br(jt.whenFalse),jt}function ii(v,C,F,se,Ke,jt){return v.condition!==C||v.questionToken!==F||v.whenTrue!==se||v.colonToken!==Ke||v.whenFalse!==jt?tr(Zn(C,F,se,Ke,jt),v):v}function Xr(v,C){let F=K(228);return F.head=v,F.templateSpans=j(C),F.transformFlags|=br(F.head)|Ua(F.templateSpans)|1024,F}function no(v,C,F){return v.head!==C||v.templateSpans!==F?tr(Xr(C,F),v):v}function La(v,C,F,se=0){x.assert(!(se&-7177),"Unsupported template flags.");let Ke;if(F!==void 0&&F!==C&&(Ke=LBe(v,F),typeof Ke=="object"))return x.fail("Invalid raw text");if(C===void 0){if(Ke===void 0)return x.fail("Arguments 'text' and 'rawText' may not both be undefined.");C=Ke}else Ke!==void 0&&x.assert(C===Ke,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return C}function ka(v){let C=1024;return v&&(C|=128),C}function wl(v,C,F,se){let Ke=Et(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=se&7176,Ke.transformFlags=ka(Ke.templateFlags),Ke}function pd(v,C,F,se){let Ke=Y(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=se&7176,Ke.transformFlags=ka(Ke.templateFlags),Ke}function Ic(v,C,F,se){return v===15?pd(v,C,F,se):wl(v,C,F,se)}function Tp(v,C,F){return v=La(16,v,C,F),Ic(16,v,C,F)}function Bu(v,C,F){return v=La(16,v,C,F),Ic(17,v,C,F)}function ob(v,C,F){return v=La(16,v,C,F),Ic(18,v,C,F)}function ls(v,C,F){return v=La(16,v,C,F),pd(15,v,C,F)}function Dm(v,C){x.assert(!v||!!C,"A `YieldExpression` with an asteriskToken must have an expression.");let F=K(229);return F.expression=C&&i().parenthesizeExpressionForDisallowedComma(C),F.asteriskToken=v,F.transformFlags|=br(F.expression)|br(F.asteriskToken)|1024|128|1048576,F}function Cm(v,C,F){return v.expression!==F||v.asteriskToken!==C?tr(Dm(C,F),v):v}function Ui(v){let C=K(230);return C.expression=i().parenthesizeExpressionForDisallowedComma(v),C.transformFlags|=br(C.expression)|1024|32768,C}function Jg(v,C){return v.expression!==C?tr(Ui(C),v):v}function $y(v,C,F,se,Ke){let jt=Y(231);return jt.modifiers=Ga(v),jt.name=lc(C),jt.typeParameters=Ga(F),jt.heritageClauses=Ga(se),jt.members=j(Ke),jt.transformFlags|=Ua(jt.modifiers)|jv(jt.name)|Ua(jt.typeParameters)|Ua(jt.heritageClauses)|Ua(jt.members)|(jt.typeParameters?1:0)|1024,jt.jsDoc=void 0,jt}function Nm(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.typeParameters!==se||v.heritageClauses!==Ke||v.members!==jt?tr($y(C,F,se,Ke,jt),v):v}function pS(){return K(232)}function fS(v,C){let F=K(233);return F.expression=i().parenthesizeLeftSideOfAccess(v,!1),F.typeArguments=C&&i().parenthesizeTypeArguments(C),F.transformFlags|=br(F.expression)|Ua(F.typeArguments)|1024,F}function cf(v,C,F){return v.expression!==C||v.typeArguments!==F?tr(fS(C,F),v):v}function B_(v,C){let F=K(234);return F.expression=v,F.type=C,F.transformFlags|=br(F.expression)|br(F.type)|1,F}function df(v,C,F){return v.expression!==C||v.type!==F?tr(B_(C,F),v):v}function qg(v){let C=K(235);return C.expression=i().parenthesizeLeftSideOfAccess(v,!1),C.transformFlags|=br(C.expression)|1,C}function we(v,C){return sF(v)?_n(v,C):v.expression!==C?tr(qg(C),v):v}function qe(v,C){let F=K(238);return F.expression=v,F.type=C,F.transformFlags|=br(F.expression)|br(F.type)|1,F}function Pt(v,C,F){return v.expression!==C||v.type!==F?tr(qe(C,F),v):v}function Bt(v){let C=K(235);return C.flags|=64,C.expression=i().parenthesizeLeftSideOfAccess(v,!0),C.transformFlags|=br(C.expression)|1,C}function _n(v,C){return x.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==C?tr(Bt(C),v):v}function Jn(v,C){let F=K(236);switch(F.keywordToken=v,F.name=C,F.transformFlags|=br(F.name),v){case 105:F.transformFlags|=1024;break;case 102:F.transformFlags|=32;break;default:return x.assertNever(v)}return F.flowNode=void 0,F}function fn(v,C){return v.name!==C?tr(Jn(v.keywordToken,C),v):v}function qn(v,C){let F=K(239);return F.expression=v,F.literal=C,F.transformFlags|=br(F.expression)|br(F.literal)|1024,F}function fi(v,C,F){return v.expression!==C||v.literal!==F?tr(qn(C,F),v):v}function or(){let v=K(240);return v.transformFlags|=1024,v}function ni(v,C){let F=K(241);return F.statements=j(v),F.multiLine=C,F.transformFlags|=Ua(F.statements),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F}function cr(v,C){return v.statements!==C?tr(ni(C,v.multiLine),v):v}function Yo(v,C){let F=K(243);return F.modifiers=Ga(v),F.declarationList=To(C)?np(C):C,F.transformFlags|=Ua(F.modifiers)|br(F.declarationList),x_(F.modifiers)&128&&(F.transformFlags=1),F.jsDoc=void 0,F.flowNode=void 0,F}function Ha(v,C,F){return v.modifiers!==C||v.declarationList!==F?tr(Yo(C,F),v):v}function $d(){let v=K(242);return v.jsDoc=void 0,v}function fd(v){let C=K(244);return C.expression=i().parenthesizeExpressionOfExpressionStatement(v),C.transformFlags|=br(C.expression),C.jsDoc=void 0,C.flowNode=void 0,C}function Xg(v,C){return v.expression!==C?tr(fd(C),v):v}function LE(v,C,F){let se=K(245);return se.expression=v,se.thenStatement=Ib(C),se.elseStatement=Ib(F),se.transformFlags|=br(se.expression)|br(se.thenStatement)|br(se.elseStatement),se.jsDoc=void 0,se.flowNode=void 0,se}function w1(v,C,F,se){return v.expression!==C||v.thenStatement!==F||v.elseStatement!==se?tr(LE(C,F,se),v):v}function kE(v,C){let F=K(246);return F.statement=Ib(v),F.expression=C,F.transformFlags|=br(F.statement)|br(F.expression),F.jsDoc=void 0,F.flowNode=void 0,F}function kD(v,C,F){return v.statement!==C||v.expression!==F?tr(kE(C,F),v):v}function wD(v,C){let F=K(247);return F.expression=v,F.statement=Ib(C),F.transformFlags|=br(F.expression)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function OD(v,C,F){return v.expression!==C||v.statement!==F?tr(wD(C,F),v):v}function oA(v,C,F,se){let Ke=K(248);return Ke.initializer=v,Ke.condition=C,Ke.incrementor=F,Ke.statement=Ib(se),Ke.transformFlags|=br(Ke.initializer)|br(Ke.condition)|br(Ke.incrementor)|br(Ke.statement),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function mS(v,C,F,se,Ke){return v.initializer!==C||v.condition!==F||v.incrementor!==se||v.statement!==Ke?tr(oA(C,F,se,Ke),v):v}function O1(v,C,F){let se=K(249);return se.initializer=v,se.expression=C,se.statement=Ib(F),se.transformFlags|=br(se.initializer)|br(se.expression)|br(se.statement),se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.flowNode=void 0,se}function WD(v,C,F,se){return v.initializer!==C||v.expression!==F||v.statement!==se?tr(O1(C,F,se),v):v}function W1(v,C,F,se){let Ke=K(250);return Ke.awaitModifier=v,Ke.initializer=C,Ke.expression=i().parenthesizeExpressionForDisallowedComma(F),Ke.statement=Ib(se),Ke.transformFlags|=br(Ke.awaitModifier)|br(Ke.initializer)|br(Ke.expression)|br(Ke.statement)|1024,v&&(Ke.transformFlags|=128),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function F1(v,C,F,se,Ke){return v.awaitModifier!==C||v.initializer!==F||v.expression!==se||v.statement!==Ke?tr(W1(C,F,se,Ke),v):v}function z1(v){let C=K(251);return C.label=lc(v),C.transformFlags|=br(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function B1(v,C){return v.label!==C?tr(z1(C),v):v}function aA(v){let C=K(252);return C.label=lc(v),C.transformFlags|=br(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function G1(v,C){return v.label!==C?tr(aA(C),v):v}function _S(v){let C=K(253);return C.expression=v,C.transformFlags|=br(C.expression)|128|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function hS(v,C){return v.expression!==C?tr(_S(C),v):v}function ab(v,C){let F=K(254);return F.expression=v,F.statement=Ib(C),F.transformFlags|=br(F.expression)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function sb(v,C,F){return v.expression!==C||v.statement!==F?tr(ab(C,F),v):v}function cg(v,C){let F=K(255);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.caseBlock=C,F.transformFlags|=br(F.expression)|br(F.caseBlock),F.jsDoc=void 0,F.flowNode=void 0,F.possiblyExhaustive=!1,F}function wE(v,C,F){return v.expression!==C||v.caseBlock!==F?tr(cg(C,F),v):v}function Qa(v,C){let F=K(256);return F.label=lc(v),F.statement=Ib(C),F.transformFlags|=br(F.label)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function sA(v,C,F){return v.label!==C||v.statement!==F?tr(Qa(C,F),v):v}function FD(v){let C=K(257);return C.expression=v,C.transformFlags|=br(C.expression),C.jsDoc=void 0,C.flowNode=void 0,C}function OE(v,C){return v.expression!==C?tr(FD(C),v):v}function Yg(v,C,F){let se=K(258);return se.tryBlock=v,se.catchClause=C,se.finallyBlock=F,se.transformFlags|=br(se.tryBlock)|br(se.catchClause)|br(se.finallyBlock),se.jsDoc=void 0,se.flowNode=void 0,se}function Ih(v,C,F,se){return v.tryBlock!==C||v.catchClause!==F||v.finallyBlock!==se?tr(Yg(C,F,se),v):v}function Mf(){let v=K(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function Gu(v,C,F,se){let Ke=Y(260);return Ke.name=lc(v),Ke.exclamationToken=C,Ke.type=F,Ke.initializer=rx(se),Ke.transformFlags|=jv(Ke.name)|br(Ke.initializer)|(Ke.exclamationToken??Ke.type?1:0),Ke.jsDoc=void 0,Ke}function Ap(v,C,F,se,Ke){return v.name!==C||v.type!==se||v.exclamationToken!==F||v.initializer!==Ke?tr(Gu(C,F,se,Ke),v):v}function np(v,C=0){let F=K(261);return F.flags|=C&7,F.declarations=j(v),F.transformFlags|=Ua(F.declarations)|4194304,C&7&&(F.transformFlags|=263168),C&4&&(F.transformFlags|=4),F}function Qy(v,C){return v.declarations!==C?tr(np(C,v.flags),v):v}function lA(v,C,F,se,Ke,jt,_r){let eo=Y(262);if(eo.modifiers=Ga(v),eo.asteriskToken=C,eo.name=lc(F),eo.typeParameters=Ga(se),eo.parameters=j(Ke),eo.type=jt,eo.body=_r,!eo.body||x_(eo.modifiers)&128)eo.transformFlags=1;else{let Gs=x_(eo.modifiers)&1024,o_=!!eo.asteriskToken,xb=Gs&&o_;eo.transformFlags=Ua(eo.modifiers)|br(eo.asteriskToken)|jv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|br(eo.type)|br(eo.body)&-67108865|(xb?128:Gs?256:o_?2048:0)|(eo.typeParameters||eo.type?1:0)|4194304}return eo.typeArguments=void 0,eo.jsDoc=void 0,eo.locals=void 0,eo.nextContainer=void 0,eo.endFlowNode=void 0,eo.returnFlowNode=void 0,eo}function zD(v,C,F,se,Ke,jt,_r,eo){return v.modifiers!==C||v.asteriskToken!==F||v.name!==se||v.typeParameters!==Ke||v.parameters!==jt||v.type!==_r||v.body!==eo?V1(lA(C,F,se,Ke,jt,_r,eo),v):v}function V1(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),B(v,C)}function lb(v,C,F,se,Ke){let jt=Y(263);return jt.modifiers=Ga(v),jt.name=lc(C),jt.typeParameters=Ga(F),jt.heritageClauses=Ga(se),jt.members=j(Ke),x_(jt.modifiers)&128?jt.transformFlags=1:(jt.transformFlags|=Ua(jt.modifiers)|jv(jt.name)|Ua(jt.typeParameters)|Ua(jt.heritageClauses)|Ua(jt.members)|(jt.typeParameters?1:0)|1024,jt.transformFlags&8192&&(jt.transformFlags|=1)),jt.jsDoc=void 0,jt}function WE(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.typeParameters!==se||v.heritageClauses!==Ke||v.members!==jt?tr(lb(C,F,se,Ke,jt),v):v}function j1(v,C,F,se,Ke){let jt=Y(264);return jt.modifiers=Ga(v),jt.name=lc(C),jt.typeParameters=Ga(F),jt.heritageClauses=Ga(se),jt.members=j(Ke),jt.transformFlags=1,jt.jsDoc=void 0,jt}function yc(v,C,F,se,Ke,jt){return v.modifiers!==C||v.name!==F||v.typeParameters!==se||v.heritageClauses!==Ke||v.members!==jt?tr(j1(C,F,se,Ke,jt),v):v}function Zy(v,C,F,se){let Ke=Y(265);return Ke.modifiers=Ga(v),Ke.name=lc(C),Ke.typeParameters=Ga(F),Ke.type=se,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function U1(v,C,F,se,Ke){return v.modifiers!==C||v.name!==F||v.typeParameters!==se||v.type!==Ke?tr(Zy(C,F,se,Ke),v):v}function Zm(v,C,F){let se=Y(266);return se.modifiers=Ga(v),se.name=lc(C),se.members=j(F),se.transformFlags|=Ua(se.modifiers)|br(se.name)|Ua(se.members)|1,se.transformFlags&=-67108865,se.jsDoc=void 0,se}function cA(v,C,F,se){return v.modifiers!==C||v.name!==F||v.members!==se?tr(Zm(C,F,se),v):v}function Ve(v,C,F,se=0){let Ke=Y(267);return Ke.modifiers=Ga(v),Ke.flags|=se&2088,Ke.name=C,Ke.body=F,x_(Ke.modifiers)&128?Ke.transformFlags=1:Ke.transformFlags|=Ua(Ke.modifiers)|br(Ke.name)|br(Ke.body)|1,Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function e_(v,C,F,se){return v.modifiers!==C||v.name!==F||v.body!==se?tr(Ve(C,F,se,v.flags),v):v}function md(v){let C=K(268);return C.statements=j(v),C.transformFlags|=Ua(C.statements),C.jsDoc=void 0,C}function FE(v,C){return v.statements!==C?tr(md(C),v):v}function H1(v){let C=K(269);return C.clauses=j(v),C.transformFlags|=Ua(C.clauses),C.locals=void 0,C.nextContainer=void 0,C}function cb(v,C){return v.clauses!==C?tr(H1(C),v):v}function ev(v){let C=Y(270);return C.name=lc(v),C.transformFlags|=Ek(C.name)|1,C.modifiers=void 0,C.jsDoc=void 0,C}function tv(v,C){return v.name!==C?EM(ev(C),v):v}function EM(v,C){return v!==C&&(v.modifiers=C.modifiers),tr(v,C)}function Ka(v,C,F,se){let Ke=Y(271);return Ke.modifiers=Ga(v),Ke.name=lc(F),Ke.isTypeOnly=C,Ke.moduleReference=se,Ke.transformFlags|=Ua(Ke.modifiers)|Ek(Ke.name)|br(Ke.moduleReference),vh(Ke.moduleReference)||(Ke.transformFlags|=1),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function t_(v,C,F,se,Ke){return v.modifiers!==C||v.isTypeOnly!==F||v.name!==se||v.moduleReference!==Ke?tr(Ka(C,F,se,Ke),v):v}function dA(v,C,F,se){let Ke=K(272);return Ke.modifiers=Ga(v),Ke.importClause=C,Ke.moduleSpecifier=F,Ke.attributes=Ke.assertClause=se,Ke.transformFlags|=br(Ke.importClause)|br(Ke.moduleSpecifier),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function uA(v,C,F,se,Ke){return v.modifiers!==C||v.importClause!==F||v.moduleSpecifier!==se||v.attributes!==Ke?tr(dA(C,F,se,Ke),v):v}function zE(v,C,F){let se=Y(273);return se.isTypeOnly=v,se.name=C,se.namedBindings=F,se.transformFlags|=br(se.name)|br(se.namedBindings),v&&(se.transformFlags|=1),se.transformFlags&=-67108865,se}function pA(v,C,F,se){return v.isTypeOnly!==C||v.name!==F||v.namedBindings!==se?tr(zE(C,F,se),v):v}function om(v,C){let F=K(300);return F.elements=j(v),F.multiLine=C,F.token=132,F.transformFlags|=4,F}function am(v,C,F){return v.elements!==C||v.multiLine!==F?tr(om(C,F),v):v}function $g(v,C){let F=K(301);return F.name=v,F.value=C,F.transformFlags|=4,F}function K1(v,C,F){return v.name!==C||v.value!==F?tr($g(C,F),v):v}function n_(v,C){let F=K(302);return F.assertClause=v,F.multiLine=C,F}function BD(v,C,F){return v.assertClause!==C||v.multiLine!==F?tr(n_(C,F),v):v}function gS(v,C,F){let se=K(300);return se.token=F??118,se.elements=j(v),se.multiLine=C,se.transformFlags|=4,se}function qi(v,C,F){return v.elements!==C||v.multiLine!==F?tr(gS(C,F,v.token),v):v}function Qr(v,C){let F=K(301);return F.name=v,F.value=C,F.transformFlags|=4,F}function xh(v,C,F){return v.name!==C||v.value!==F?tr(Qr(C,F),v):v}function Vu(v){let C=Y(274);return C.name=v,C.transformFlags|=br(C.name),C.transformFlags&=-67108865,C}function SM(v,C){return v.name!==C?tr(Vu(C),v):v}function Qg(v){let C=Y(280);return C.name=v,C.transformFlags|=br(C.name)|32,C.transformFlags&=-67108865,C}function TM(v,C){return v.name!==C?tr(Qg(C),v):v}function db(v){let C=K(275);return C.elements=j(v),C.transformFlags|=Ua(C.elements),C.transformFlags&=-67108865,C}function hl(v,C){return v.elements!==C?tr(db(C),v):v}function Bp(v,C,F){let se=Y(276);return se.isTypeOnly=v,se.propertyName=C,se.name=F,se.transformFlags|=br(se.propertyName)|br(se.name),se.transformFlags&=-67108865,se}function dg(v,C,F,se){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==se?tr(Bp(C,F,se),v):v}function sm(v,C,F){let se=Y(277);return se.modifiers=Ga(v),se.isExportEquals=C,se.expression=C?i().parenthesizeRightSideOfBinary(64,void 0,F):i().parenthesizeExpressionOfExportDefault(F),se.transformFlags|=Ua(se.modifiers)|br(se.expression),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function ub(v,C,F){return v.modifiers!==C||v.expression!==F?tr(sm(C,v.isExportEquals,F),v):v}function Pm(v,C,F,se,Ke){let jt=Y(278);return jt.modifiers=Ga(v),jt.isTypeOnly=C,jt.exportClause=F,jt.moduleSpecifier=se,jt.attributes=jt.assertClause=Ke,jt.transformFlags|=Ua(jt.modifiers)|br(jt.exportClause)|br(jt.moduleSpecifier),jt.transformFlags&=-67108865,jt.jsDoc=void 0,jt}function Zg(v,C,F,se,Ke,jt){return v.modifiers!==C||v.isTypeOnly!==F||v.exportClause!==se||v.moduleSpecifier!==Ke||v.attributes!==jt?yS(Pm(C,F,se,Ke,jt),v):v}function yS(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),tr(v,C)}function fA(v){let C=K(279);return C.elements=j(v),C.transformFlags|=Ua(C.elements),C.transformFlags&=-67108865,C}function ug(v,C){return v.elements!==C?tr(fA(C),v):v}function J1(v,C,F){let se=K(281);return se.isTypeOnly=v,se.propertyName=lc(C),se.name=lc(F),se.transformFlags|=br(se.propertyName)|br(se.name),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function pg(v,C,F,se){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==se?tr(J1(C,F,se),v):v}function G_(){let v=Y(282);return v.jsDoc=void 0,v}function nv(v){let C=K(283);return C.expression=v,C.transformFlags|=br(C.expression),C.transformFlags&=-67108865,C}function GD(v,C){return v.expression!==C?tr(nv(C),v):v}function VD(v){return K(v)}function jD(v,C,F=!1){let se=mA(v,F?C&&i().parenthesizeNonArrayTypeOfPostfixType(C):C);return se.postfix=F,se}function mA(v,C){let F=K(v);return F.type=C,F}function qs(v,C,F){return C.type!==F?tr(jD(v,F,C.postfix),C):C}function vS(v,C,F){return C.type!==F?tr(mA(v,F),C):C}function _A(v,C){let F=Y(324);return F.parameters=Ga(v),F.type=C,F.transformFlags=Ua(F.parameters)|(F.type?1:0),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function Mm(v,C,F){return v.parameters!==C||v.type!==F?tr(_A(C,F),v):v}function pb(v,C=!1){let F=Y(329);return F.jsDocPropertyTags=Ga(v),F.isArrayType=C,F}function UD(v,C,F){return v.jsDocPropertyTags!==C||v.isArrayType!==F?tr(pb(C,F),v):v}function hA(v){let C=K(316);return C.type=v,C}function AM(v,C){return v.type!==C?tr(hA(C),v):v}function fr(v,C,F){let se=Y(330);return se.typeParameters=Ga(v),se.parameters=j(C),se.type=F,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se}function rd(v,C,F,se){return v.typeParameters!==C||v.parameters!==F||v.type!==se?tr(fr(C,F,se),v):v}function Qi(v){let C=WU(v.kind);return v.tagName.escapedText===pl(C)?v.tagName:xe(C)}function uf(v,C,F){let se=K(v);return se.tagName=C,se.comment=F,se}function rv(v,C,F){let se=Y(v);return se.tagName=C,se.comment=F,se}function V_(v,C,F,se){let Ke=uf(352,v??xe("template"),se);return Ke.constraint=C,Ke.typeParameters=j(F),Ke}function ar(v,C=Qi(v),F,se,Ke){return v.tagName!==C||v.constraint!==F||v.typeParameters!==se||v.comment!==Ke?tr(V_(C,F,se,Ke),v):v}function gA(v,C,F,se){let Ke=rv(353,v??xe("typedef"),se);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function BE(v,C=Qi(v),F,se,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==se||v.comment!==Ke?tr(gA(C,F,se,Ke),v):v}function qc(v,C,F,se,Ke,jt){let _r=rv(348,v??xe("param"),jt);return _r.typeExpression=se,_r.name=C,_r.isNameFirst=!!Ke,_r.isBracketed=F,_r}function Rh(v,C=Qi(v),F,se,Ke,jt,_r){return v.tagName!==C||v.name!==F||v.isBracketed!==se||v.typeExpression!==Ke||v.isNameFirst!==jt||v.comment!==_r?tr(qc(C,F,se,Ke,jt,_r),v):v}function Lm(v,C,F,se,Ke,jt){let _r=rv(355,v??xe("prop"),jt);return _r.typeExpression=se,_r.name=C,_r.isNameFirst=!!Ke,_r.isBracketed=F,_r}function bS(v,C=Qi(v),F,se,Ke,jt,_r){return v.tagName!==C||v.name!==F||v.isBracketed!==se||v.typeExpression!==Ke||v.isNameFirst!==jt||v.comment!==_r?tr(Lm(C,F,se,Ke,jt,_r),v):v}function ES(v,C,F,se){let Ke=rv(345,v??xe("callback"),se);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function fb(v,C=Qi(v),F,se,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==se||v.comment!==Ke?tr(ES(C,F,se,Ke),v):v}function ey(v,C,F){let se=uf(346,v??xe("overload"),F);return se.typeExpression=C,se}function yA(v,C=Qi(v),F,se){return v.tagName!==C||v.typeExpression!==F||v.comment!==se?tr(ey(C,F,se),v):v}function km(v,C,F){let se=uf(335,v??xe("augments"),F);return se.class=C,se}function GE(v,C=Qi(v),F,se){return v.tagName!==C||v.class!==F||v.comment!==se?tr(km(C,F,se),v):v}function fg(v,C,F){let se=uf(336,v??xe("implements"),F);return se.class=C,se}function mb(v,C,F){let se=uf(354,v??xe("see"),F);return se.name=C,se}function q1(v,C,F,se){return v.tagName!==C||v.name!==F||v.comment!==se?tr(mb(C,F,se),v):v}function VE(v){let C=K(317);return C.name=v,C}function HD(v,C){return v.name!==C?tr(VE(C),v):v}function SS(v,C){let F=K(318);return F.left=v,F.right=C,F.transformFlags|=br(F.left)|br(F.right),F}function vA(v,C,F){return v.left!==C||v.right!==F?tr(SS(C,F),v):v}function Gp(v,C){let F=K(331);return F.name=v,F.text=C,F}function bA(v,C,F){return v.name!==C?tr(Gp(C,F),v):v}function Vl(v,C){let F=K(332);return F.name=v,F.text=C,F}function Wc(v,C,F){return v.name!==C?tr(Vl(C,F),v):v}function EA(v,C){let F=K(333);return F.name=v,F.text=C,F}function Td(v,C,F){return v.name!==C?tr(EA(C,F),v):v}function rp(v,C=Qi(v),F,se){return v.tagName!==C||v.class!==F||v.comment!==se?tr(fg(C,F,se),v):v}function jE(v,C,F){return uf(v,C??xe(WU(v)),F)}function Lf(v,C,F=Qi(C),se){return C.tagName!==F||C.comment!==se?tr(jE(v,F,se),C):C}function _b(v,C,F,se){let Ke=uf(v,C??xe(WU(v)),se);return Ke.typeExpression=F,Ke}function hb(v,C,F=Qi(C),se,Ke){return C.tagName!==F||C.typeExpression!==se||C.comment!==Ke?tr(_b(v,F,se,Ke),C):C}function id(v,C){return uf(334,v,C)}function X1(v,C,F){return v.tagName!==C||v.comment!==F?tr(id(C,F),v):v}function Vp(v,C,F){let se=rv(347,v??xe(WU(347)),F);return se.typeExpression=C,se.locals=void 0,se.nextContainer=void 0,se}function SA(v,C=Qi(v),F,se){return v.tagName!==C||v.typeExpression!==F||v.comment!==se?tr(Vp(C,F,se),v):v}function TA(v){let C=K(328);return C.text=v,C}function Bs(v,C){return v.text!==C?tr(TA(C),v):v}function KD(v,C){let F=K(327);return F.comment=v,F.tags=Ga(C),F}function UE(v,C,F){return v.comment!==C||v.tags!==F?tr(KD(C,F),v):v}function TS(v,C,F){let se=K(284);return se.openingElement=v,se.children=j(C),se.closingElement=F,se.transformFlags|=br(se.openingElement)|Ua(se.children)|br(se.closingElement)|2,se}function IM(v,C,F,se){return v.openingElement!==C||v.children!==F||v.closingElement!==se?tr(TS(C,F,se),v):v}function mu(v,C,F){let se=K(285);return se.tagName=v,se.typeArguments=Ga(C),se.attributes=F,se.transformFlags|=br(se.tagName)|Ua(se.typeArguments)|br(se.attributes)|2,se.typeArguments&&(se.transformFlags|=1),se}function ty(v,C,F,se){return v.tagName!==C||v.typeArguments!==F||v.attributes!==se?tr(mu(C,F,se),v):v}function j_(v,C,F){let se=K(286);return se.tagName=v,se.typeArguments=Ga(C),se.attributes=F,se.transformFlags|=br(se.tagName)|Ua(se.typeArguments)|br(se.attributes)|2,C&&(se.transformFlags|=1),se}function Y1(v,C,F,se){return v.tagName!==C||v.typeArguments!==F||v.attributes!==se?tr(j_(C,F,se),v):v}function Ip(v){let C=K(287);return C.tagName=v,C.transformFlags|=br(C.tagName)|2,C}function $1(v,C){return v.tagName!==C?tr(Ip(C),v):v}function ip(v,C,F){let se=K(288);return se.openingFragment=v,se.children=j(C),se.closingFragment=F,se.transformFlags|=br(se.openingFragment)|Ua(se.children)|br(se.closingFragment)|2,se}function Q1(v,C,F,se){return v.openingFragment!==C||v.children!==F||v.closingFragment!==se?tr(ip(C,F,se),v):v}function iv(v,C){let F=K(12);return F.text=v,F.containsOnlyTriviaWhiteSpaces=!!C,F.transformFlags|=2,F}function AA(v,C,F){return v.text!==C||v.containsOnlyTriviaWhiteSpaces!==F?tr(iv(C,F),v):v}function JD(){let v=K(289);return v.transformFlags|=2,v}function qD(){let v=K(290);return v.transformFlags|=2,v}function IA(v,C){let F=Y(291);return F.name=v,F.initializer=C,F.transformFlags|=br(F.name)|br(F.initializer)|2,F}function XD(v,C,F){return v.name!==C||v.initializer!==F?tr(IA(C,F),v):v}function gb(v){let C=Y(292);return C.properties=j(v),C.transformFlags|=Ua(C.properties)|2,C}function xp(v,C){return v.properties!==C?tr(gb(C),v):v}function Dh(v){let C=K(293);return C.expression=v,C.transformFlags|=br(C.expression)|2,C}function YD(v,C){return v.expression!==C?tr(Dh(C),v):v}function xA(v,C){let F=K(294);return F.dotDotDotToken=v,F.expression=C,F.transformFlags|=br(F.dotDotDotToken)|br(F.expression)|2,F}function es(v,C){return v.expression!==C?tr(xA(v.dotDotDotToken,C),v):v}function Sr(v,C){let F=K(295);return F.namespace=v,F.name=C,F.transformFlags|=br(F.namespace)|br(F.name)|2,F}function pf(v,C,F){return v.namespace!==C||v.name!==F?tr(Sr(C,F),v):v}function Ru(v,C){let F=K(296);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.statements=j(C),F.transformFlags|=br(F.expression)|Ua(F.statements),F.jsDoc=void 0,F}function AS(v,C,F){return v.expression!==C||v.statements!==F?tr(Ru(C,F),v):v}function $D(v){let C=K(297);return C.statements=j(v),C.transformFlags=Ua(C.statements),C}function HE(v,C){return v.statements!==C?tr($D(C),v):v}function IS(v,C){let F=K(298);switch(F.token=v,F.types=j(C),F.transformFlags|=Ua(F.types),v){case 96:F.transformFlags|=1024;break;case 119:F.transformFlags|=1;break;default:return x.assertNever(v)}return F}function RA(v,C){return v.types!==C?tr(IS(v.token,C),v):v}function mg(v,C){let F=K(299);return F.variableDeclaration=NM(v),F.block=C,F.transformFlags|=br(F.variableDeclaration)|br(F.block)|(v?0:64),F.locals=void 0,F.nextContainer=void 0,F}function r_(v,C,F){return v.variableDeclaration!==C||v.block!==F?tr(mg(C,F),v):v}function ff(v,C){let F=Y(303);return F.name=lc(v),F.initializer=i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=jv(F.name)|br(F.initializer),F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function wm(v,C,F){return v.name!==C||v.initializer!==F?ny(ff(C,F),v):v}function ny(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken),tr(v,C)}function _g(v,C){let F=Y(304);return F.name=lc(v),F.objectAssignmentInitializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Ek(F.name)|br(F.objectAssignmentInitializer)|1024,F.equalsToken=void 0,F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function hg(v,C,F){return v.name!==C||v.objectAssignmentInitializer!==F?Z1(_g(C,F),v):v}function Z1(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken,v.equalsToken=C.equalsToken),tr(v,C)}function sc(v){let C=Y(305);return C.expression=i().parenthesizeExpressionForDisallowedComma(v),C.transformFlags|=br(C.expression)|128|65536,C.jsDoc=void 0,C}function QD(v,C){return v.expression!==C?tr(sc(C),v):v}function kf(v,C){let F=Y(306);return F.name=lc(v),F.initializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=br(F.name)|br(F.initializer)|1,F.jsDoc=void 0,F}function Ch(v,C,F){return v.name!==C||v.initializer!==F?tr(kf(C,F),v):v}function mf(v,C,F){let se=t.createBaseSourceFileNode(312);return se.statements=j(v),se.endOfFileToken=C,se.flags|=F,se.text="",se.fileName="",se.path="",se.resolvedPath="",se.originalFileName="",se.languageVersion=0,se.languageVariant=0,se.scriptKind=0,se.isDeclarationFile=!1,se.hasNoDefaultLib=!1,se.transformFlags|=Ua(se.statements)|br(se.endOfFileToken),se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.nodeCount=0,se.identifierCount=0,se.symbolCount=0,se.parseDiagnostics=void 0,se.bindDiagnostics=void 0,se.bindSuggestionDiagnostics=void 0,se.lineMap=void 0,se.externalModuleIndicator=void 0,se.setExternalModuleIndicator=void 0,se.pragmas=void 0,se.checkJsDirective=void 0,se.referencedFiles=void 0,se.typeReferenceDirectives=void 0,se.libReferenceDirectives=void 0,se.amdDependencies=void 0,se.commentDirectives=void 0,se.identifiers=void 0,se.packageJsonLocations=void 0,se.packageJsonScope=void 0,se.imports=void 0,se.moduleAugmentations=void 0,se.ambientModuleNames=void 0,se.classifiableNames=void 0,se.impliedNodeFormat=void 0,se}function xS(v){let C=Object.create(v.redirectTarget);return Object.defineProperties(C,{id:{get(){return this.redirectInfo.redirectTarget.id},set(F){this.redirectInfo.redirectTarget.id=F}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(F){this.redirectInfo.redirectTarget.symbol=F}}}),C.redirectInfo=v,C}function KE(v){let C=xS(v.redirectInfo);return C.flags|=v.flags&-17,C.fileName=v.fileName,C.path=v.path,C.resolvedPath=v.resolvedPath,C.originalFileName=v.originalFileName,C.packageJsonLocations=v.packageJsonLocations,C.packageJsonScope=v.packageJsonScope,C.emitNode=void 0,C}function ex(v){let C=t.createBaseSourceFileNode(312);C.flags|=v.flags&-17;for(let F in v)if(!(Ss(C,F)||!Ss(v,F))){if(F==="emitNode"){C.emitNode=void 0;continue}C[F]=v[F]}return C}function DA(v){let C=v.redirectInfo?KE(v):ex(v);return r(C,v),C}function _f(v,C,F,se,Ke,jt,_r){let eo=DA(v);return eo.statements=j(C),eo.isDeclarationFile=F,eo.referencedFiles=se,eo.typeReferenceDirectives=Ke,eo.hasNoDefaultLib=jt,eo.libReferenceDirectives=_r,eo.transformFlags=Ua(eo.statements)|br(eo.endOfFileToken),eo}function Ds(v,C,F=v.isDeclarationFile,se=v.referencedFiles,Ke=v.typeReferenceDirectives,jt=v.hasNoDefaultLib,_r=v.libReferenceDirectives){return v.statements!==C||v.isDeclarationFile!==F||v.referencedFiles!==se||v.typeReferenceDirectives!==Ke||v.hasNoDefaultLib!==jt||v.libReferenceDirectives!==_r?tr(_f(v,C,F,se,Ke,jt,_r),v):v}function RS(v,C=Xe){let F=K(313);return F.prepends=C,F.sourceFiles=v,F.syntheticFileReferences=void 0,F.syntheticTypeReferences=void 0,F.syntheticLibReferences=void 0,F.hasNoDefaultLib=void 0,F}function DS(v,C,F=Xe){return v.sourceFiles!==C||v.prepends!==F?tr(RS(C,F),v):v}function ry(v,C,F){let se=K(314);return se.prologues=v,se.syntheticReferences=C,se.texts=F,se.fileName="",se.text="",se.referencedFiles=Xe,se.libReferenceDirectives=Xe,se.getLineAndCharacterOfPosition=Ke=>hs(se,Ke),se}function yb(v,C){let F=K(v);return F.data=C,F}function JE(v){return yb(307,v)}function I(v,C){let F=yb(308,v);return F.texts=C,F}function oe(v,C){return yb(C?310:309,v)}function dt(v){let C=K(311);return C.data=v.data,C.section=v,C}function nn(){let v=K(315);return v.javascriptText="",v.declarationText="",v}function Mr(v,C=!1,F){let se=K(237);return se.type=v,se.isSpread=C,se.tupleNameSource=F,se}function ki(v){let C=K(358);return C._children=v,C}function vi(v){let C=K(359);return C.original=v,at(C,v),C}function Zi(v,C){let F=K(360);return F.expression=v,F.original=C,F.transformFlags|=br(F.expression)|1,at(F,C),F}function _a(v,C){return v.expression!==C?tr(Zi(C,v.original),v):v}function Qd(v){if(Ks(v)&&!ZC(v)&&!v.original&&!v.emitNode&&!v.id){if(cP(v))return v.elements;if(dr(v)&&tae(v.operatorToken))return[v.left,v.right]}return v}function Du(v){let C=K(361);return C.elements=j(Hte(v,Qd)),C.transformFlags|=Ua(C.elements),C}function wf(v,C){return v.elements!==C?tr(Du(C),v):v}function vb(v,C){let F=K(362);return F.expression=v,F.thisArg=C,F.transformFlags|=br(F.expression)|br(F.thisArg),F}function Si(v,C,F){return v.expression!==C||v.thisArg!==F?tr(vb(C,F),v):v}function Nh(v){let C=re(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),xk(C,{...v.emitNode.autoGenerate}),C}function Vn(v){let C=re(v.escapedText);C.flags|=v.flags&-17,C.jsDoc=v.jsDoc,C.flowNode=v.flowNode,C.symbol=v.symbol,C.transformFlags=v.transformFlags,r(C,v);let F=DT(v);return F&&Fy(C,F),C}function tx(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),xk(C,{...v.emitNode.autoGenerate}),C}function bb(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),C}function Eb(v){if(v===void 0)return v;if(Yi(v))return DA(v);if(rl(v))return Nh(v);if(Fe(v))return Vn(v);if(aT(v))return tx(v);if(Ki(v))return bb(v);let C=ZL(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v);for(let F in v)Ss(C,F)||!Ss(v,F)||(C[F]=v[F]);return C}function CA(v,C,F){return Un(Fu(void 0,void 0,void 0,void 0,C?[C]:[],void 0,ni(v,!0)),void 0,F?[F]:[])}function CS(v,C,F){return Un(Pf(void 0,void 0,C?[C]:[],void 0,void 0,ni(v,!0)),void 0,F?[F]:[])}function U_(){return Sp(ce("0"))}function Ph(v){return sm(void 0,!1,v)}function ZD(v){return Pm(void 0,!1,fA([J1(!1,void 0,v)]))}function NA(v,C){return C==="null"?w.createStrictEquality(v,Wt()):C==="undefined"?w.createStrictEquality(v,U_()):w.createStrictEquality(Fd(v),me(C))}function UB(v,C){return C==="null"?w.createStrictInequality(v,Wt()):C==="undefined"?w.createStrictInequality(v,U_()):w.createStrictInequality(Fd(v),me(C))}function Sb(v,C,F){return oT(v)?Xo(ys(v,void 0,C),void 0,void 0,F):Un(zs(v,C),void 0,F)}function l8(v,C,F){return Sb(v,"bind",[C,...F])}function c8(v,C,F){return Sb(v,"call",[C,...F])}function qE(v,C,F){return Sb(v,"apply",[C,F])}function i_(v,C,F){return Sb(xe(v),C,F)}function xM(v,C){return Sb(v,"slice",C===void 0?[]:[YE(C)])}function Mh(v,C){return Sb(v,"concat",C)}function nx(v,C,F){return i_("Object","defineProperty",[v,YE(C),F])}function d8(v,C){return i_("Object","getOwnPropertyDescriptor",[v,YE(C)])}function H_(v,C,F){return i_("Reflect","get",F?[v,C,F]:[v,C])}function X(v,C,F,se){return i_("Reflect","set",se?[v,C,F,se]:[v,C,F])}function Te(v,C,F){return F?(v.push(ff(C,F)),!0):!1}function Ue(v,C){let F=[];Te(F,"enumerable",YE(v.enumerable)),Te(F,"configurable",YE(v.configurable));let se=Te(F,"writable",YE(v.writable));se=Te(F,"value",v.value)||se;let Ke=Te(F,"get",v.get);return Ke=Te(F,"set",v.set)||Ke,x.assert(!(se&&Ke),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),qo(F,!C)}function St(v,C){switch(v.kind){case 217:return lf(v,C);case 216:return Zl(v,v.type,C);case 234:return df(v,C,v.type);case 238:return Pt(v,C,v.type);case 235:return we(v,C);case 360:return _a(v,C)}}function xt(v){return Ou(v)&&Ks(v)&&Ks(Wy(v))&&Ks(C_(v))&&!gt(IR(v))&&!gt(Ik(v))}function Vt(v,C,F=15){return v&&$4(v,F)&&!xt(v)?St(v,Vt(v.expression,C)):C}function wr(v,C,F){if(!C)return v;let se=sA(C,C.label,H0(C.statement)?wr(v,C.statement):v);return F&&F(C),se}function Oi(v,C){let F=fs(v);switch(F.kind){case 80:return C;case 110:case 9:case 10:case 11:return!1;case 209:return F.elements.length!==0;case 210:return F.properties.length>0;default:return!0}}function Ci(v,C,F,se=!1){let Ke=Yl(v,15),jt,_r;return ku(Ke)?(jt=tt(),_r=Ke):aP(Ke)?(jt=tt(),_r=F!==void 0&&F<2?at(xe("_super"),Ke):Ke):za(Ke)&8192?(jt=U_(),_r=i().parenthesizeLeftSideOfAccess(Ke,!1)):kr(Ke)?Oi(Ke.expression,se)?(jt=fe(C),_r=zs(at(w.createAssignment(jt,Ke.expression),Ke.expression),Ke.name),at(_r,Ke)):(jt=Ke.expression,_r=Ke):Js(Ke)?Oi(Ke.expression,se)?(jt=fe(C),_r=Oc(at(w.createAssignment(jt,Ke.expression),Ke.expression),Ke.argumentExpression),at(_r,Ke)):(jt=Ke.expression,_r=Ke):(jt=U_(),_r=i().parenthesizeLeftSideOfAccess(v,!1)),{target:_r,thisArg:jt}}function mi(v,C){return zs(Jc(qo([ae(void 0,"value",[hi(void 0,void 0,v,void 0,void 0,void 0)],ni([fd(C)]))])),"value")}function Xi(v){return v.length>10?Du(v):tu(v,w.createComma)}function cs(v,C,F,se=0,Ke){let jt=Ke?v&&eF(v):Po(v);if(jt&&Fe(jt)&&!rl(jt)){let _r=ja(at(Eb(jt),jt),jt.parent);return se|=za(jt),F||(se|=96),C||(se|=3072),se&&lr(_r,se),_r}return Ce(v)}function As(v,C,F){return cs(v,C,F,98304)}function $a(v,C,F,se){return cs(v,C,F,32768,se)}function Of(v,C,F){return cs(v,C,F,16384)}function K_(v,C,F){return cs(v,C,F)}function gg(v,C,F,se){let Ke=zs(v,Ks(C)?C:Eb(C));at(Ke,C);let jt=0;return se||(jt|=96),F||(jt|=3072),jt&&lr(Ke,jt),Ke}function iy(v,C,F,se){return v&&$r(C,32)?gg(v,cs(C),F,se):Of(C,F,se)}function oy(v,C,F,se){let Ke=PA(v,C,0,F);return eC(v,C,Ke,se)}function Tb(v){return Da(v.expression)&&v.expression.text==="use strict"}function op(){return Jd(fd(me("use strict")))}function PA(v,C,F=0,se){x.assert(C.length===0,"Prologue directives should be at the first statement in the target statements array");let Ke=!1,jt=v.length;for(;Feo&&o_.splice(Ke,0,...C.slice(eo,Gs)),eo>_r&&o_.splice(se,0,...C.slice(_r,eo)),_r>jt&&o_.splice(F,0,...C.slice(jt,_r)),jt>0)if(F===0)o_.splice(0,0,...C.slice(0,jt));else{let xb=new Map;for(let Om=0;Om=0;Om--){let $E=C[Om];xb.has($E.expression.text)||o_.unshift($E)}}return v0(v)?at(j(o_,v.hasTrailingComma),v):v}function Ab(v,C){let F;return typeof C=="number"?F=Zt(C):F=C,fl(v)?Kt(v,F,v.name,v.constraint,v.default):Ao(v)?uo(v,F,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):RR(v)?Ut(v,F,v.typeParameters,v.parameters,v.type):_p(v)?Ur(v,F,v.name,v.questionToken,v.type):Uo(v)?Ye(v,F,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):_h(v)?In(v,F,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):Ul(v)?yi(v,F,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Pl(v)?kn(v,F,v.parameters,v.body):Qp(v)?lt(v,F,v.name,v.parameters,v.type,v.body):hp(v)?ke(v,F,v.name,v.parameters,v.body):G0(v)?Ft(v,F,v.parameters,v.type):Ps(v)?xu(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Os(v)?z_(v,F,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):Zc(v)?Nm(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Ml(v)?Ha(v,F,v.declarationList):Ec(v)?zD(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Sc(v)?WE(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):pu(v)?yc(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Tm(v)?U1(v,F,v.name,v.typeParameters,v.type):hE(v)?cA(v,F,v.name,v.members):ql(v)?e_(v,F,v.name,v.body):td(v)?t_(v,F,v.isTypeOnly,v.name,v.moduleReference):Lc(v)?uA(v,F,v.importClause,v.moduleSpecifier,v.attributes):Ll(v)?ub(v,F,v.expression):Xl(v)?Zg(v,F,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):x.assertNever(v)}function tC(v,C){return Ao(v)?uo(v,C,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):Uo(v)?Ye(v,C,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):Ul(v)?yi(v,C,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Qp(v)?lt(v,C,v.name,v.parameters,v.type,v.body):hp(v)?ke(v,C,v.name,v.parameters,v.body):Zc(v)?Nm(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):Sc(v)?WE(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):x.assertNever(v)}function jp(v,C){switch(v.kind){case 177:return lt(v,v.modifiers,C,v.parameters,v.type,v.body);case 178:return ke(v,v.modifiers,C,v.parameters,v.body);case 174:return yi(v,v.modifiers,v.asteriskToken,C,v.questionToken,v.typeParameters,v.parameters,v.type,v.body);case 173:return In(v,v.modifiers,C,v.questionToken,v.typeParameters,v.parameters,v.type);case 172:return Ye(v,v.modifiers,C,v.questionToken??v.exclamationToken,v.type,v.initializer);case 171:return Ur(v,v.modifiers,C,v.questionToken,v.type);case 303:return wm(v,C,v.initializer)}}function Ga(v){return v?j(v):void 0}function lc(v){return typeof v=="string"?xe(v):v}function YE(v){return typeof v=="string"?me(v):typeof v=="number"?ce(v):typeof v=="boolean"?v?_t():Je():v}function rx(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function CM(v){return typeof v=="number"?be(v):v}function Ib(v){return v&&oH(v)?at(r($d(),v),v):v}function NM(v){return typeof v=="string"||v&&!wi(v)?Gu(v,void 0,void 0,void 0):v}function tr(v,C){return v!==C&&(r(v,C),at(v,C)),v}}function WU(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 x.fail(`Unsupported kind: ${x.formatSyntaxKind(e)}`)}}function LBe(e,t){switch(Oy||(Oy=xy(99,!1,0)),e){case 15:Oy.setText("`"+t+"`");break;case 16:Oy.setText("`"+t+"${");break;case 17:Oy.setText("}"+t+"${");break;case 18:Oy.setText("}"+t+"`");break}let r=Oy.scan();if(r===20&&(r=Oy.reScanTemplateToken(!1)),Oy.isUnterminated())return Oy.setText(void 0),joe;let i;switch(r){case 15:case 16:case 17:case 18:i=Oy.getTokenValue();break}return i===void 0||Oy.scan()!==1?(Oy.setText(void 0),joe):(Oy.setText(void 0),i)}function jv(e){return e&&Fe(e)?Ek(e):br(e)}function Ek(e){return br(e)&-67108865}function kBe(e,t){return t|e.transformFlags&134234112}function br(e){if(!e)return 0;let t=e.transformFlags&~Goe(e.kind);return iu(e)&&rc(e.name)?kBe(e.name,t):t}function Ua(e){return e?e.transformFlags:0}function LSe(e){let t=0;for(let r of e)t|=br(r);e.transformFlags=t}function Goe(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 Z6(e){return e.flags|=16,e}function FU(e,t,r){let i,o,s,l,d,p,h,m,y,E;No(e)?(s="",l=e,d=e.length,p=t,h=r):(x.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,d=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(x.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,E=e.oldFileOfCurrentEmit));let S=E?OBe(x.checkDefined(o)):wBe(o,i,d);return S.fileName=s,S.sourceMapPath=p,S.oldFileOfCurrentEmit=E,m&&y?(Object.defineProperty(S,"text",{get:m}),Object.defineProperty(S,"sourceMapText",{get:y})):(x.assert(!E),S.text=l??"",S.sourceMapText=h),S}function wBe(e,t,r){let i,o,s,l,d,p,h,m;for(let E of e?e.sections:Xe)switch(E.kind){case"prologue":i=Tn(i,at(L.createUnparsedPrologue(E.data),E));break;case"emitHelpers":o=Tn(o,JU().get(E.data));break;case"no-default-lib":m=!0;break;case"reference":s=Tn(s,{pos:-1,end:-1,fileName:E.data});break;case"type":l=Tn(l,{pos:-1,end:-1,fileName:E.data});break;case"type-import":l=Tn(l,{pos:-1,end:-1,fileName:E.data,resolutionMode:99});break;case"type-require":l=Tn(l,{pos:-1,end:-1,fileName:E.data,resolutionMode:1});break;case"lib":d=Tn(d,{pos:-1,end:-1,fileName:E.data});break;case"prepend":let S;for(let A of E.texts)(!t||A.kind!=="internal")&&(S=Tn(S,at(L.createUnparsedTextLike(A.data,A.kind==="internal"),A)));p=Hr(p,S),h=Tn(h,L.createUnparsedPrepend(E.data,S??Xe));break;case"internal":if(t){h||(h=[]);break}case"text":h=Tn(h,at(L.createUnparsedTextLike(E.data,E.kind==="internal"),E));break;default:x.assertNever(E)}if(!h){let E=L.createUnparsedTextLike(void 0,!1);KN(E,0,typeof r=="function"?r():r),h=[E]}let y=bh.createUnparsedSource(i??Xe,void 0,h);return ER(i,y),ER(h,y),ER(p,y),y.hasNoDefaultLib=m,y.helpers=o,y.referencedFiles=s||Xe,y.typeReferenceDirectives=l,y.libReferenceDirectives=d||Xe,y}function OBe(e){let t,r;for(let o of e.sections)switch(o.kind){case"internal":case"text":t=Tn(t,at(L.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Tn(r,at(L.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:x.assertNever(o)}let i=L.createUnparsedSource(Xe,r,t??Xe);return ER(r,i),ER(t,i),i.helpers=mn(e.sources&&e.sources.helpers,o=>JU().get(o)),i}function kSe(e,t,r,i,o,s){return No(e)?BU(void 0,e,r,i,void 0,t,o,s):zU(e,t,r,i,o,s)}function zU(e,t,r,i,o,s,l,d){let p=bh.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;let h=new Map,m=A=>{if(A===void 0)return;let N=h.get(A);return N===void 0&&(N=e(A),h.set(A,N!==void 0?N:!1)),N!==!1?N:void 0},y=A=>{let N=m(A);return N!==void 0?N:`/* Input file ${A} was missing */\r `},E;return Object.defineProperties(p,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>y(x.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(E===void 0&&s)if(l?.getBuildInfo)E=l.getBuildInfo(s,d.configFilePath)??!1;else{let A=m(s);E=A!==void 0?X3(s,A)??!1:!1}return E||void 0}}}),p}function BU(e,t,r,i,o,s,l,d,p,h,m){let y=bh.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=r,y.javascriptMapText=i,y.declarationPath=o,y.declarationText=s,y.declarationMapPath=l,y.declarationMapText=d,y.buildInfoPath=p,y.buildInfo=h,y.oldFileOfCurrentEmit=m,y}function wSe(e,t,r){return new(WSe||(WSe=sd.getSourceMapSourceConstructor()))(e,t,r)}function xr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=WBe(r,e.emitNode))}return e}function WBe(e,t){let{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:d,tokenSourceMapRanges:p,constantValue:h,helpers:m,startsOnNewLine:y,snippetElement:E,classThis:S,assignedName:A}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Hr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Hr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),d&&(t.sourceMapRange=d),p&&(t.tokenSourceMapRanges=FBe(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(let N of m)t.helpers=xg(t.helpers,N);return y!==void 0&&(t.startsOnNewLine=y),E!==void 0&&(t.snippetElement=E),S&&(t.classThis=S),A&&(t.assignedName=A),t}function FBe(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var e4,GU,Voe,Oy,joe,Sk,OSe,L,WSe,zBe=bt({"src/compiler/factory/nodeFactory.ts"(){"use strict";ea(),e4=0,GU=(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))(GU||{}),Voe=[],joe={},Sk=Foe(),OSe={createBaseSourceFileNode:e=>Z6(Sk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Z6(Sk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Z6(Sk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Z6(Sk.createBaseTokenNode(e)),createBaseNode:e=>Z6(Sk.createBaseNode(e))},L=bk(4,OSe)}});function kd(e){if(e.emitNode)x.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(ZC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Gn(Do(Gn(e)))??x.fail("Could not determine parsed source file.");kd(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function VU(e){var t,r;let i=(r=(t=Gn(Do(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function Tk(e){let t=kd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function lr(e,t){return kd(e).flags=t,e}function D_(e,t){let r=kd(e);return r.flags=r.flags|t,e}function Ak(e,t){return kd(e).internalFlags=t,e}function BI(e,t){let r=kd(e);return r.internalFlags=r.internalFlags|t,e}function Wy(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ra(e,t){return kd(e).sourceMapRange=t,e}function FSe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Uoe(e,t,r){let i=kd(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function nP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function t4(e,t){return kd(e).startsOnNewLine=t,e}function C_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function ic(e,t){return kd(e).commentRange=t,e}function IR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function _E(e,t){return kd(e).leadingComments=t,e}function rP(e,t,r,i){return _E(e,Tn(IR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Ik(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function GI(e,t){return kd(e).trailingComments=t,e}function n4(e,t,r,i){return GI(e,Tn(Ik(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Hoe(e,t){_E(e,IR(t)),GI(e,Ik(t));let r=kd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Koe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Joe(e,t){let r=kd(e);return r.constantValue=t,e}function VI(e,t){let r=kd(e);return r.helpers=Tn(r.helpers,t),e}function Fg(e,t){if(gt(t)){let r=kd(e);for(let i of t)r.helpers=xg(r.helpers,i)}return e}function zSe(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?Tx(i,t):!1}function r4(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function qoe(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!gt(o))return;let s=kd(t),l=0;for(let d=0;d0&&(o[d-l]=p)}l>0&&(o.length-=l)}function jU(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function UU(e,t){let r=kd(e);return r.snippetElement=t,e}function HU(e){return kd(e).internalFlags|=4,e}function Xoe(e,t){let r=kd(e);return r.typeNode=t,e}function Yoe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Fy(e,t){return kd(e).identifierTypeArguments=t,e}function DT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function xk(e,t){return kd(e).autoGenerate=t,e}function BSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function $oe(e,t){return kd(e).generatedImportReference=t,e}function Qoe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var BBe=bt({"src/compiler/factory/emitNode.ts"(){"use strict";ea()}});function Zoe(e){let t=e.factory,r=vu(()=>Ak(t.createTrue(),8)),i=vu(()=>Ak(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:d,createESDecorateHelper:N,createRunInitializersHelper:D,createAssignHelper:w,createAwaitHelper:j,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:Y,createAsyncValuesHelper:B,createRestHelper:ce,createAwaiterHelper:z,createExtendsHelper:Z,createTemplateObjectHelper:me,createSpreadArrayHelper:ge,createPropKeyHelper:q,createSetFunctionNameHelper:J,createValuesHelper:re,createReadHelper:pe,createGeneratorHelper:xe,createCreateBindingHelper:fe,createImportStarHelper:ne,createImportStarCallbackHelper:he,createImportDefaultHelper:Ce,createExportStarHelper:Ge,createClassPrivateFieldGetHelper:ve,createClassPrivateFieldSetHelper:Ae,createClassPrivateFieldInHelper:De,createAddDisposableResourceHelper:Le,createDisposeResourcesHelper:Et};function o(be){return lr(t.createIdentifier(be),8196)}function s(be,ze,tt,Wt){e.requestEmitHelper(i4);let _t=[];return _t.push(t.createArrayLiteralExpression(be,!0)),_t.push(ze),tt&&(_t.push(tt),Wt&&_t.push(Wt)),t.createCallExpression(o("__decorate"),void 0,_t)}function l(be,ze){return e.requestEmitHelper(o4),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(be),ze])}function d(be,ze,tt){return e.requestEmitHelper(a4),at(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(ze+""),be]),tt)}function p(be){let ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),be.name),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(ze)}function h(be){let ze=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,ze))}function m(be){let ze=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.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(ze,t.createIdentifier("value")))])))}function y(be){let ze=be.computed?be.name:Fe(be.name)?t.createStringLiteralFromNode(be.name):be.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(ze,103,t.createIdentifier("obj"))))}function E(be,ze){let tt=[];return tt.push(y(be)),ze.get&&tt.push(h(be)),ze.set&&tt.push(m(be)),t.createObjectLiteralExpression(tt)}function S(be){let ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(be.kind)),t.createPropertyAssignment(t.createIdentifier("name"),be.name.computed?be.name.name:t.createStringLiteralFromNode(be.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),be.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),be.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),E(be.name,be.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(ze)}function A(be){return be.kind==="class"?p(be):S(be)}function N(be,ze,tt,Wt,_t,Je){return e.requestEmitHelper(s4),t.createCallExpression(o("__esDecorate"),void 0,[be??t.createNull(),ze??t.createNull(),tt,A(Wt),_t,Je])}function D(be,ze,tt){return e.requestEmitHelper(l4),t.createCallExpression(o("__runInitializers"),void 0,tt?[be,ze,tt]:[be,ze])}function w(be){return ns(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,be):(e.requestEmitHelper(c4),t.createCallExpression(o("__assign"),void 0,be))}function j(be){return e.requestEmitHelper(jI),t.createCallExpression(o("__await"),void 0,[be])}function K(be,ze){return e.requestEmitHelper(jI),e.requestEmitHelper(d4),(be.emitNode||(be.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[ze?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),be])}function Y(be){return e.requestEmitHelper(jI),e.requestEmitHelper(u4),t.createCallExpression(o("__asyncDelegator"),void 0,[be])}function B(be){return e.requestEmitHelper(p4),t.createCallExpression(o("__asyncValues"),void 0,[be])}function ce(be,ze,tt,Wt){e.requestEmitHelper(f4);let _t=[],Je=0;for(let pt=0;pt{let i="";for(let o=0;oe.name))}function iP(e,t){return ia(e)&&Fe(e.expression)&&(za(e.expression)&8192)!==0&&e.expression.escapedText===t}var qU,i4,o4,a4,s4,l4,c4,jI,d4,u4,p4,f4,m4,_4,h4,g4,y4,v4,b4,E4,S4,xR,T4,Rk,A4,I4,x4,R4,D4,C4,N4,GSe,Dk,Ck,GBe=bt({"src/compiler/factory/emitHelpers.ts"(){"use strict";ea(),qU=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(qU||{}),i4={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; };`},o4={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); };`},a4={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } };`},s4={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); var _, done = false; for (var i = decorators.length - 1; i >= 0; i--) { var context = {}; for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; for (var p in contextIn.access) context.access[p] = contextIn.access[p]; context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); if (kind === "accessor") { if (result === void 0) continue; if (result === null || typeof result !== "object") throw new TypeError("Object expected"); if (_ = accept(result.get)) descriptor.get = _; if (_ = accept(result.set)) descriptor.set = _; if (_ = accept(result.init)) initializers.unshift(_); } else if (_ = accept(result)) { if (kind === "field") initializers.unshift(_); else descriptor[key] = _; } } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; };`},l4={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); } return useValue ? value : void 0; };`},c4={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); };`},jI={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); }`},d4={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[jI],text:` var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } };`},u4={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[jI],text:` var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } };`},p4={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` var __asyncValues = (this && this.__asyncValues) || function (o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } };`},f4={name:"typescript:rest",importName:"__rest",scoped:!1,text:` var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; };`},m4={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); };`},_4={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })();`},h4={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; };`},g4={name:"typescript:read",importName:"__read",scoped:!1,text:` var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; };`},y4={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { if (ar || !(i in from)) { if (!ar) ar = Array.prototype.slice.call(from, 0, i); ar[i] = from[i]; } } return to.concat(ar || Array.prototype.slice.call(from)); };`},v4={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };`},b4={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); };`},E4={name:"typescript:values",importName:"__values",scoped:!1,text:` var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); };`},S4={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (g && (g = 0, op[0] && (_ = 0)), _) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } };`},xR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; }));`},T4={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; });`},Rk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[xR,T4],priority:2,text:` var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; };`},A4={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };`},I4={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[xR],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); };`},x4={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); };`},R4={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; };`},D4={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); return typeof state === "function" ? receiver === state : state.has(receiver); };`},C4={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); var dispose; if (async) { if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); dispose = value[Symbol.asyncDispose]; } if (dispose === void 0) { if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); dispose = value[Symbol.dispose]; } if (typeof dispose !== "function") throw new TypeError("Object not disposable."); env.stack.push({ value: value, dispose: dispose, async: async }); } else if (async) { env.stack.push({ async: true }); } return value; };`},N4={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; env.hasError = true; } function next() { while (env.stack.length) { var rec = env.stack.pop(); try { var result = rec.dispose && rec.dispose.call(rec.value); if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); } catch (e) { fail(e); } } if (env.hasError) throw env.error; } return next(); }; })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; });`},Dk={name:"typescript:async-super",scoped:!0,text:KU` const ${"_superIndex"} = name => super[name];`},Ck={name:"typescript:advanced-async-super",scoped:!0,text:KU` 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 mp(e){return e.kind===9}function P4(e){return e.kind===10}function Da(e){return e.kind===11}function UI(e){return e.kind===12}function XU(e){return e.kind===14}function HI(e){return e.kind===15}function KI(e){return e.kind===16}function YU(e){return e.kind===17}function M4(e){return e.kind===18}function L4(e){return e.kind===26}function tae(e){return e.kind===28}function $U(e){return e.kind===40}function QU(e){return e.kind===41}function Nk(e){return e.kind===42}function Pk(e){return e.kind===54}function Uv(e){return e.kind===58}function nae(e){return e.kind===59}function k4(e){return e.kind===29}function rae(e){return e.kind===39}function Fe(e){return e.kind===80}function Ki(e){return e.kind===81}function JI(e){return e.kind===95}function w4(e){return e.kind===90}function oP(e){return e.kind===134}function iae(e){return e.kind===131}function ZU(e){return e.kind===135}function oae(e){return e.kind===148}function qI(e){return e.kind===126}function aae(e){return e.kind===128}function sae(e){return e.kind===164}function lae(e){return e.kind===129}function aP(e){return e.kind===108}function sP(e){return e.kind===102}function cae(e){return e.kind===84}function Su(e){return e.kind===166}function Ya(e){return e.kind===167}function fl(e){return e.kind===168}function Ao(e){return e.kind===169}function bd(e){return e.kind===170}function _p(e){return e.kind===171}function Uo(e){return e.kind===172}function _h(e){return e.kind===173}function Ul(e){return e.kind===174}function Al(e){return e.kind===175}function Pl(e){return e.kind===176}function Qp(e){return e.kind===177}function hp(e){return e.kind===178}function XI(e){return e.kind===179}function Mk(e){return e.kind===180}function G0(e){return e.kind===181}function Lk(e){return e.kind===182}function If(e){return e.kind===183}function hh(e){return e.kind===184}function RR(e){return e.kind===185}function YI(e){return e.kind===186}function gp(e){return e.kind===187}function kk(e){return e.kind===188}function $I(e){return e.kind===189}function DR(e){return e.kind===202}function O4(e){return e.kind===190}function W4(e){return e.kind===191}function Hv(e){return e.kind===192}function QI(e){return e.kind===193}function ZI(e){return e.kind===194}function CT(e){return e.kind===195}function NT(e){return e.kind===196}function wk(e){return e.kind===197}function PT(e){return e.kind===198}function MT(e){return e.kind===199}function CR(e){return e.kind===200}function Kv(e){return e.kind===201}function rg(e){return e.kind===205}function eH(e){return e.kind===204}function dae(e){return e.kind===203}function tm(e){return e.kind===206}function V0(e){return e.kind===207}function Xa(e){return e.kind===208}function uu(e){return e.kind===209}function Ma(e){return e.kind===210}function kr(e){return e.kind===211}function Js(e){return e.kind===212}function ia(e){return e.kind===213}function j0(e){return e.kind===214}function U0(e){return e.kind===215}function uae(e){return e.kind===216}function Ou(e){return e.kind===217}function Ps(e){return e.kind===218}function Os(e){return e.kind===219}function pae(e){return e.kind===220}function NR(e){return e.kind===221}function e1(e){return e.kind===222}function Jv(e){return e.kind===223}function qv(e){return e.kind===224}function tH(e){return e.kind===225}function dr(e){return e.kind===226}function PR(e){return e.kind===227}function F4(e){return e.kind===228}function z4(e){return e.kind===229}function Jm(e){return e.kind===230}function Zc(e){return e.kind===231}function jc(e){return e.kind===232}function zy(e){return e.kind===233}function Ok(e){return e.kind===234}function nH(e){return e.kind===238}function t1(e){return e.kind===235}function lP(e){return e.kind===236}function VSe(e){return e.kind===237}function B4(e){return e.kind===360}function cP(e){return e.kind===361}function dP(e){return e.kind===239}function fae(e){return e.kind===240}function Ko(e){return e.kind===241}function Ml(e){return e.kind===243}function rH(e){return e.kind===242}function ed(e){return e.kind===244}function LT(e){return e.kind===245}function jSe(e){return e.kind===246}function USe(e){return e.kind===247}function kT(e){return e.kind===248}function G4(e){return e.kind===249}function Wk(e){return e.kind===250}function HSe(e){return e.kind===251}function KSe(e){return e.kind===252}function Sm(e){return e.kind===253}function mae(e){return e.kind===254}function uP(e){return e.kind===255}function H0(e){return e.kind===256}function iH(e){return e.kind===257}function wT(e){return e.kind===258}function JSe(e){return e.kind===259}function wi(e){return e.kind===260}function Uc(e){return e.kind===261}function Ec(e){return e.kind===262}function Sc(e){return e.kind===263}function pu(e){return e.kind===264}function Tm(e){return e.kind===265}function hE(e){return e.kind===266}function ql(e){return e.kind===267}function N_(e){return e.kind===268}function pP(e){return e.kind===269}function Fk(e){return e.kind===270}function td(e){return e.kind===271}function Lc(e){return e.kind===272}function gh(e){return e.kind===273}function qSe(e){return e.kind===302}function _ae(e){return e.kind===300}function XSe(e){return e.kind===301}function n1(e){return e.kind===300}function hae(e){return e.kind===301}function Xv(e){return e.kind===274}function yh(e){return e.kind===280}function zg(e){return e.kind===275}function Qu(e){return e.kind===276}function Ll(e){return e.kind===277}function Xl(e){return e.kind===278}function xf(e){return e.kind===279}function Kd(e){return e.kind===281}function YSe(e){return e.kind===282}function oH(e){return e.kind===359}function r1(e){return e.kind===362}function vh(e){return e.kind===283}function ig(e){return e.kind===284}function OT(e){return e.kind===285}function P_(e){return e.kind===286}function K0(e){return e.kind===287}function J0(e){return e.kind===288}function i1(e){return e.kind===289}function gae(e){return e.kind===290}function M_(e){return e.kind===291}function q0(e){return e.kind===292}function o1(e){return e.kind===293}function fP(e){return e.kind===294}function qm(e){return e.kind===295}function MR(e){return e.kind===296}function mP(e){return e.kind===297}function Zp(e){return e.kind===298}function X0(e){return e.kind===299}function mc(e){return e.kind===303}function Zu(e){return e.kind===304}function By(e){return e.kind===305}function Y0(e){return e.kind===306}function yae(e){return e.kind===308}function Yi(e){return e.kind===312}function aH(e){return e.kind===313}function WT(e){return e.kind===314}function $0(e){return e.kind===316}function _P(e){return e.kind===317}function gE(e){return e.kind===318}function vae(e){return e.kind===331}function bae(e){return e.kind===332}function $Se(e){return e.kind===333}function Eae(e){return e.kind===319}function Sae(e){return e.kind===320}function LR(e){return e.kind===321}function V4(e){return e.kind===322}function sH(e){return e.kind===323}function kR(e){return e.kind===324}function j4(e){return e.kind===325}function QSe(e){return e.kind===326}function Xm(e){return e.kind===327}function FT(e){return e.kind===329}function yE(e){return e.kind===330}function a1(e){return e.kind===335}function ZSe(e){return e.kind===337}function Tae(e){return e.kind===339}function lH(e){return e.kind===345}function cH(e){return e.kind===340}function dH(e){return e.kind===341}function uH(e){return e.kind===342}function pH(e){return e.kind===343}function U4(e){return e.kind===344}function wR(e){return e.kind===346}function fH(e){return e.kind===338}function eTe(e){return e.kind===354}function zk(e){return e.kind===347}function Ym(e){return e.kind===348}function H4(e){return e.kind===349}function mH(e){return e.kind===350}function hP(e){return e.kind===351}function nm(e){return e.kind===352}function zT(e){return e.kind===353}function tTe(e){return e.kind===334}function Aae(e){return e.kind===355}function K4(e){return e.kind===336}function J4(e){return e.kind===357}function nTe(e){return e.kind===356}function OR(e){return e.kind===358}var VBe=bt({"src/compiler/factory/nodeTests.ts"(){"use strict";ea()}});function Bk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function BT(e,t,r,i){if(Ya(r))return at(e.createElementAccessExpression(t,r.expression),i);{let o=at(Hh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return D_(o,128),o}}function Iae(e,t){let r=bh.createIdentifier(e||"React");return ja(r,Do(t)),r}function xae(e,t,r){if(Su(t)){let i=xae(e,t.left,r),o=e.createIdentifier(gr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Iae(gr(t),r)}function _H(e,t,r,i){return t?xae(e,t,i):e.createPropertyAccessExpression(Iae(r,i),"createElement")}function jBe(e,t,r,i){return t?xae(e,t,i):e.createPropertyAccessExpression(Iae(r,i),"Fragment")}function Rae(e,t,r,i,o,s){let l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(let d of o)Jd(d),l.push(d);else l.push(o[0]);return at(e.createCallExpression(t,void 0,l),s)}function Dae(e,t,r,i,o,s,l){let p=[jBe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(let h of o)Jd(h),p.push(h);else p.push(o[0]);return at(e.createCallExpression(_H(e,t,i,s),void 0,p),l)}function hH(e,t,r){if(Uc(t)){let i=Va(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return at(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{let i=at(e.createAssignment(t,r),t);return at(e.createExpressionStatement(i),t)}}function rTe(e,t,r){return Ko(t)?e.updateBlock(t,at(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Gk(e,t){if(Su(t)){let r=Gk(e,t.left),i=ja(at(e.cloneNode(t.right),t.right),t.right.parent);return at(e.createPropertyAccessExpression(r,i),t)}else return ja(at(e.cloneNode(t),t),t.parent)}function gH(e,t){return Fe(t)?e.createStringLiteralFromNode(t):Ya(t)?ja(at(e.cloneNode(t.expression),t.expression),t.expression.parent):ja(at(e.cloneNode(t),t),t.parent)}function UBe(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:d}=AT(t,r);if(r===s)return at(e.createObjectDefinePropertyCall(i,gH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&at(xr(e.createFunctionExpression(y0(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:d&&at(xr(e.createFunctionExpression(y0(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d)},!o)),s)}function HBe(e,t,r){return xr(at(e.createAssignment(BT(e,r,t.name,t.name),t.initializer),t),t)}function KBe(e,t,r){return xr(at(e.createAssignment(BT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function JBe(e,t,r){return xr(at(e.createAssignment(BT(e,r,t.name,t.name),xr(at(e.createFunctionExpression(y0(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Cae(e,t,r,i){switch(r.name&&Ki(r.name)&&x.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return UBe(e,t.properties,r,i,!!t.multiLine);case 303:return HBe(e,r,i);case 304:return KBe(e,r,i);case 174:return JBe(e,r,i)}}function q4(e,t,r,i,o){let s=t.operator;x.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let l=e.createTempVariable(i);r=e.createAssignment(l,r),at(r,t.operand);let d=qv(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return at(d,t),o&&(d=e.createAssignment(o,d),at(d,t)),r=e.createComma(r,d),at(r,t),tH(t)&&(r=e.createComma(r,l),at(r,t)),r}function yH(e){return(za(e)&65536)!==0}function Bg(e){return(za(e)&32768)!==0}function X4(e){return(za(e)&16384)!==0}function iTe(e){return Da(e.expression)&&e.expression.text==="use strict"}function vH(e){for(let t of e)if(vm(t)){if(iTe(t))return t}else break}function Nae(e){let t=Xc(e);return t!==void 0&&vm(t)&&iTe(t)}function Vk(e){return e.kind===226&&e.operatorToken.kind===28}function gP(e){return Vk(e)||cP(e)}function WR(e){return Ou(e)&&ir(e)&&!!tE(e)}function Y4(e){let t=nE(e);return x.assertIsDefined(t),t}function $4(e,t=15){switch(e.kind){case 217:return t&16&&WR(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 Yl(e,t=15){for(;$4(e,t);)e=e.expression;return e}function Pae(e,t=15){let r=e.parent;for(;$4(r,t);)r=r.parent,x.assert(r);return r}function oTe(e){return Yl(e,6)}function Jd(e){return t4(e,!0)}function jk(e){let t=Nl(e,Yi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Mae(e){let t=Nl(e,Yi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function bH(e,t,r,i,o,s,l){if(i.importHelpers&&TI(r,i)){let d,p=Ld(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){let h=r4(r);if(h){let m=[];for(let y of h)if(!y.scoped){let E=y.importName;E&&yf(m,E)}if(gt(m)){m.sort(Vd),d=e.createNamedImports(mn(m,S=>TF(r,S)?e.createImportSpecifier(!1,void 0,e.createIdentifier(S)):e.createImportSpecifier(!1,e.createIdentifier(S),t.getUnscopedHelperName(S))));let y=Nl(r,Yi),E=kd(y);E.externalHelpers=!0}}}else{let h=Lae(e,r,i,o,s||l);h&&(d=e.createNamespaceImport(h))}if(d){let h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,d),e.createStringLiteral(Gv),void 0);return BI(h,2),h}}}function Lae(e,t,r,i,o){if(r.importHelpers&&TI(t,r)){let s=jk(t);if(s)return s;let l=Ld(r),d=(i||mh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!d){let p=r4(t);if(p){for(let h of p)if(!h.scoped){d=!0;break}}}if(d){let p=Nl(t,Yi),h=kd(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(Gv))}}}function FR(e,t,r){let i=nR(t);if(i&&!II(t)&&!IF(t)){let o=i.name;return rl(o)?o:e.createIdentifier(S0(r,o)||gr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function s1(e,t,r,i,o,s){let l=tR(t);if(l&&Da(l))return XBe(t,i,e,o,s)||qBe(e,l,r)||e.cloneNode(l)}function qBe(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Uk(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&xs(i))return e.createStringLiteral(Wj(r,t.fileName))}}function XBe(e,t,r,i,o){return Uk(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Hk(e){if(n2(e))return e.initializer;if(mc(e)){let t=e.initializer;return Mc(t,!0)?t.right:void 0}if(Zu(e))return e.objectAssignmentInitializer;if(Mc(e,!0))return e.right;if(Jm(e))return Hk(e.expression)}function Yv(e){if(n2(e))return e.name;if(Pg(e)){switch(e.kind){case 303:return Yv(e.initializer);case 304:return e.name;case 305:return Yv(e.expression)}return}return Mc(e,!0)?Yv(e.left):Jm(e)?Yv(e.expression):e}function Q4(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function EH(e){let t=Z4(e);return x.assert(!!t||By(e),"Invalid property name for binding element."),t}function Z4(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return Ki(r)?x.failBadSyntaxKind(r):Ya(r)&&aTe(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return Ki(r)?x.failBadSyntaxKind(r):Ya(r)&&aTe(r.expression)?r.expression:r}break;case 305:return e.name&&Ki(e.name)?x.failBadSyntaxKind(e.name):e.name}let t=Yv(e);if(t&&rc(t))return t}function aTe(e){let t=e.kind;return t===11||t===9}function zR(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function SH(e){if(e){let t=e;for(;;){if(Fe(t)||!t.body)return Fe(t)?t:t.name;t=t.body}}}function sTe(e){let t=e.kind;return t===176||t===178}function kae(e){let t=e.kind;return t===176||t===177||t===178}function TH(e){let 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 wae(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Oae(e){return Uv(e)||Pk(e)}function Wae(e){return Fe(e)||wk(e)}function Fae(e){return oae(e)||$U(e)||QU(e)}function zae(e){return Uv(e)||$U(e)||QU(e)}function Bae(e){return Fe(e)||Da(e)}function lTe(e){let t=e.kind;return t===106||t===112||t===97||b0(e)||qv(e)}function YBe(e){return e===43}function $Be(e){return e===42||e===44||e===45}function QBe(e){return YBe(e)||$Be(e)}function ZBe(e){return e===40||e===41}function e5e(e){return ZBe(e)||QBe(e)}function t5e(e){return e===48||e===49||e===50}function AH(e){return t5e(e)||e5e(e)}function n5e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function r5e(e){return n5e(e)||AH(e)}function i5e(e){return e===35||e===37||e===36||e===38}function o5e(e){return i5e(e)||r5e(e)}function a5e(e){return e===51||e===52||e===53}function s5e(e){return a5e(e)||o5e(e)}function l5e(e){return e===56||e===57}function c5e(e){return l5e(e)||s5e(e)}function d5e(e){return e===61||c5e(e)||Ly(e)}function u5e(e){return d5e(e)||e===28}function Gae(e){return u5e(e.kind)}function e3(e,t,r,i,o,s){let l=new uTe(e,t,r,i,o,s);return d;function d(p,h){let m={value:void 0},y=[xH.enter],E=[p],S=[void 0],A=0;for(;y[A]!==xH.done;)A=y[A](l,A,y,E,S,m,h);return x.assertEqual(A,0),m.value}}function cTe(e){return e===95||e===90}function Kk(e){let t=e.kind;return cTe(t)}function dTe(e){let t=e.kind;return Dy(t)&&!cTe(t)}function Vae(e,t){if(t!==void 0)return t.length===0?t:at(e.createNodeArray([],t.hasTrailingComma),t)}function Jk(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let i=r.id,o=e,s=o.original;for(;s;){o=s;let l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Hh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function BR(e,t){return typeof e=="object"?vE(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function p5e(e,t){return typeof e=="string"?e:f5e(e,x.checkDefined(t))}function f5e(e,t){return aT(e)?t(e).slice(1):rl(e)?t(e):Ki(e)?e.escapedText.slice(1):gr(e)}function vE(e,t,r,i,o){return t=BR(t,o),i=BR(i,o),r=p5e(r,o),`${e?"#":""}${t}${r}${i}`}function IH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function jae(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Uae(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function t3(e){let t=e.expression;for(;;){if(t=Yl(t),cP(t)){t=Ja(t.elements);continue}if(Vk(t)){t=t.right;continue}if(Mc(t,!0)&&rl(t.left))return t;break}}function m5e(e){return Ou(e)&&Ks(e)&&!e.emitNode}function n3(e,t){if(m5e(e))n3(e.expression,t);else if(Vk(e))n3(e.left,t),n3(e.right,t);else if(cP(e))for(let r of e.elements)n3(r,t);else t.push(e)}function Hae(e){let t=[];return n3(e,t),t}function qk(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of zR(e)){let r=Yv(t);if(r&&sN(r)&&(r.transformFlags&65536||r.transformFlags&128&&qk(r)))return!0}return!1}var xH,uTe,_5e=bt({"src/compiler/factory/utilities.ts"(){"use strict";ea(),(e=>{function t(m,y,E,S,A,N,D){let w=y>0?A[y-1]:void 0;return x.assertEqual(E[y],t),A[y]=m.onEnter(S[y],w,D),E[y]=d(m,t),y}e.enter=t;function r(m,y,E,S,A,N,D){x.assertEqual(E[y],r),x.assertIsDefined(m.onLeft),E[y]=d(m,r);let w=m.onLeft(S[y].left,A[y],S[y]);return w?(h(y,S,w),p(y,E,S,A,w)):y}e.left=r;function i(m,y,E,S,A,N,D){return x.assertEqual(E[y],i),x.assertIsDefined(m.onOperator),E[y]=d(m,i),m.onOperator(S[y].operatorToken,A[y],S[y]),y}e.operator=i;function o(m,y,E,S,A,N,D){x.assertEqual(E[y],o),x.assertIsDefined(m.onRight),E[y]=d(m,o);let w=m.onRight(S[y].right,A[y],S[y]);return w?(h(y,S,w),p(y,E,S,A,w)):y}e.right=o;function s(m,y,E,S,A,N,D){x.assertEqual(E[y],s),E[y]=d(m,s);let w=m.onExit(S[y],A[y]);if(y>0){if(y--,m.foldState){let j=E[y]===s?"right":"left";A[y]=m.foldState(A[y],w,j)}}else N.value=w;return y}e.exit=s;function l(m,y,E,S,A,N,D){return x.assertEqual(E[y],l),y}e.done=l;function d(m,y){switch(y){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return o;case o:return s;case s:return l;case l:return l;default:x.fail("Invalid state")}}e.nextState=d;function p(m,y,E,S,A){return m++,y[m]=t,E[m]=A,S[m]=void 0,m}function h(m,y,E){if(x.shouldAssert(2))for(;m>=0;)x.assert(y[m]!==E,"Circular traversal detected."),m--}})(xH||(xH={})),uTe=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function at(e,t){return t?fh(e,t.pos,t.end):e}function Am(e){let 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 GT(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var h5e=bt({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";ea()}});function Ht(e,t){return t&&e(t)}function zi(e,t,r){if(r){if(t)return t(r);for(let i of r){let o=e(i);if(o)return o}}}function RH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function Xk(e){return gn(e.statements,g5e)||y5e(e)}function g5e(e){return Am(e)&&v5e(e,95)||td(e)&&vh(e.moduleReference)||Lc(e)||Ll(e)||Xl(e)?e:void 0}function y5e(e){return e.flags&8388608?pTe(e):void 0}function pTe(e){return b5e(e)?e:Go(e,pTe)}function v5e(e,t){return gt(e.modifiers,r=>r.kind===t)}function b5e(e){return lP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function fTe(e,t,r){return zi(t,r,e.typeParameters)||zi(t,r,e.parameters)||Ht(t,e.type)}function mTe(e,t,r){return zi(t,r,e.types)}function _Te(e,t,r){return Ht(t,e.type)}function hTe(e,t,r){return zi(t,r,e.elements)}function gTe(e,t,r){return Ht(t,e.expression)||Ht(t,e.questionDotToken)||zi(t,r,e.typeArguments)||zi(t,r,e.arguments)}function yTe(e,t,r){return zi(t,r,e.statements)}function vTe(e,t,r){return Ht(t,e.label)}function bTe(e,t,r){return zi(t,r,e.modifiers)||Ht(t,e.name)||zi(t,r,e.typeParameters)||zi(t,r,e.heritageClauses)||zi(t,r,e.members)}function ETe(e,t,r){return zi(t,r,e.elements)}function STe(e,t,r){return Ht(t,e.propertyName)||Ht(t,e.name)}function TTe(e,t,r){return Ht(t,e.tagName)||zi(t,r,e.typeArguments)||Ht(t,e.attributes)}function yP(e,t,r){return Ht(t,e.type)}function ATe(e,t,r){return Ht(t,e.tagName)||(e.isNameFirst?Ht(t,e.name)||Ht(t,e.typeExpression):Ht(t,e.typeExpression)||Ht(t,e.name))||(typeof e.comment=="string"?void 0:zi(t,r,e.comment))}function vP(e,t,r){return Ht(t,e.tagName)||Ht(t,e.typeExpression)||(typeof e.comment=="string"?void 0:zi(t,r,e.comment))}function Kae(e,t,r){return Ht(t,e.name)}function GR(e,t,r){return Ht(t,e.tagName)||(typeof e.comment=="string"?void 0:zi(t,r,e.comment))}function E5e(e,t,r){return Ht(t,e.expression)}function Go(e,t,r){if(e===void 0||e.kind<=165)return;let i=kTe[e.kind];return i===void 0?void 0:i(e,t,r)}function bP(e,t,r){let i=ITe(e),o=[];for(;o.length=0;--d)i.push(s[d]),o.push(l)}else{let d=t(s,l);if(d){if(d==="skip")continue;return d}if(s.kind>=166)for(let p of ITe(s))i.push(p),o.push(s)}}}function ITe(e){let t=[];return Go(e,r,r),t;function r(i){t.unshift(i)}}function xTe(e){e.externalModuleIndicator=Xk(e)}function Yk(e,t,r,i=!1,o){var s,l,d,p;(s=rr)==null||s.push(rr.Phase.Parse,"createSourceFile",{path:e},!0),el("beforeParse");let h;(l=nu)==null||l.logStartParseSourceFile(e);let{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:E,jsDocParsingMode:S}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=EE.parseSourceFile(e,t,m,void 0,i,6,qa,S);else{let A=E===void 0?y:N=>(N.impliedNodeFormat=E,(y||xTe)(N));h=EE.parseSourceFile(e,t,m,void 0,i,o,A,S)}return(d=nu)==null||d.logStopParseSourceFile(),el("afterParse"),Xp("Parse","beforeParse","afterParse"),(p=rr)==null||p.pop(),h}function l1(e,t){return EE.parseIsolatedEntityName(e,t)}function $k(e,t){return EE.parseJsonText(e,t)}function oc(e){return e.externalModuleIndicator!==void 0}function DH(e,t,r,i=!1){let o=LH.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Jae(e,t,r){let i=EE.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&EE.fixupParentReferences(i.jsDoc),i}function RTe(e,t,r){return EE.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Ed(e){return CH(e)!==void 0}function CH(e){let t=Cx(e,gk,!1);if(t)return t;if(Sl(e,".ts")){let r=nc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function S5e(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,f.resolution_mode_should_be_either_require_or_import)}}function NH(e,t){let r=[];for(let i of jh(t,0)||Xe){let o=t.substring(i.pos,i.end);A5e(r,i,o)}e.pragmas=new Map;for(let i of r){if(e.pragmas.has(i.name)){let o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function PH(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":{let o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;gn(dI(r),d=>{let{types:p,lib:h,path:m,["resolution-mode"]:y}=d.arguments;if(d.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){let E=S5e(y,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...E?{resolutionMode:E}:{}})}else h?l.push({pos:h.pos,end:h.end,fileName:h.value}):m?o.push({pos:m.pos,end:m.end,fileName:m.value}):t(d.range.pos,d.range.end-d.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=mn(dI(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,f.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{gn(dI(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:x.fail("Unhandled pragma kind")}})}function T5e(e){if(kH.has(e))return kH.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return kH.set(e,t),t}function A5e(e,t,r){let i=t.kind===2&&wTe.exec(r);if(i){let s=i[1].toLowerCase(),l=PL[s];if(!l||!(l.kind&1))return;if(l.args){let d={};for(let p of l.args){let m=T5e(p.name).exec(r);if(!m&&!p.optional)return;if(m){let y=m[2]||m[3];if(p.captureSpan){let E=t.pos+m.index+m[1].length+1;d[p.name]={value:y,pos:E,end:E+y.length}}else d[p.name]=y}}e.push({name:s,args:{arguments:d,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}let o=t.kind===2&&OTe.exec(r);if(o)return DTe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)DTe(e,t,4,l)}}function DTe(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=PL[o];if(!s||!(s.kind&r))return;let l=i[2],d=I5e(s,l);d!=="fail"&&e.push({name:o,args:{arguments:d,range:t}})}function I5e(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;onew(LTe||(LTe=sd.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(PTe||(PTe=sd.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(MTe||(MTe=sd.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(NTe||(NTe=sd.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(CTe||(CTe=sd.getNodeConstructor()))(e,-1,-1)},bh=bk(1,MH),kTe={166:function(t,r,i){return Ht(r,t.left)||Ht(r,t.right)},168:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.constraint)||Ht(r,t.default)||Ht(r,t.expression)},304:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.exclamationToken)||Ht(r,t.equalsToken)||Ht(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Ht(r,t.expression)},169:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.dotDotDotToken)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.type)||Ht(r,t.initializer)},172:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.exclamationToken)||Ht(r,t.type)||Ht(r,t.initializer)},171:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.type)||Ht(r,t.initializer)},303:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.exclamationToken)||Ht(r,t.initializer)},260:function(t,r,i){return Ht(r,t.name)||Ht(r,t.exclamationToken)||Ht(r,t.type)||Ht(r,t.initializer)},208:function(t,r,i){return Ht(r,t.dotDotDotToken)||Ht(r,t.propertyName)||Ht(r,t.name)||Ht(r,t.initializer)},181:function(t,r,i){return zi(r,i,t.modifiers)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)},185:function(t,r,i){return zi(r,i,t.modifiers)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)},184:function(t,r,i){return zi(r,i,t.modifiers)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)},179:fTe,180:fTe,174:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.asteriskToken)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.exclamationToken)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},173:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.questionToken)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)},176:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},177:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},178:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},262:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.asteriskToken)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},218:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.asteriskToken)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.body)},219:function(t,r,i){return zi(r,i,t.modifiers)||zi(r,i,t.typeParameters)||zi(r,i,t.parameters)||Ht(r,t.type)||Ht(r,t.equalsGreaterThanToken)||Ht(r,t.body)},175:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.body)},183:function(t,r,i){return Ht(r,t.typeName)||zi(r,i,t.typeArguments)},182:function(t,r,i){return Ht(r,t.assertsModifier)||Ht(r,t.parameterName)||Ht(r,t.type)},186:function(t,r,i){return Ht(r,t.exprName)||zi(r,i,t.typeArguments)},187:function(t,r,i){return zi(r,i,t.members)},188:function(t,r,i){return Ht(r,t.elementType)},189:function(t,r,i){return zi(r,i,t.elements)},192:mTe,193:mTe,194:function(t,r,i){return Ht(r,t.checkType)||Ht(r,t.extendsType)||Ht(r,t.trueType)||Ht(r,t.falseType)},195:function(t,r,i){return Ht(r,t.typeParameter)},205:function(t,r,i){return Ht(r,t.argument)||Ht(r,t.attributes)||Ht(r,t.qualifier)||zi(r,i,t.typeArguments)},302:function(t,r,i){return Ht(r,t.assertClause)},196:_Te,198:_Te,199:function(t,r,i){return Ht(r,t.objectType)||Ht(r,t.indexType)},200:function(t,r,i){return Ht(r,t.readonlyToken)||Ht(r,t.typeParameter)||Ht(r,t.nameType)||Ht(r,t.questionToken)||Ht(r,t.type)||zi(r,i,t.members)},201:function(t,r,i){return Ht(r,t.literal)},202:function(t,r,i){return Ht(r,t.dotDotDotToken)||Ht(r,t.name)||Ht(r,t.questionToken)||Ht(r,t.type)},206:hTe,207:hTe,209:function(t,r,i){return zi(r,i,t.elements)},210:function(t,r,i){return zi(r,i,t.properties)},211:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.questionDotToken)||Ht(r,t.name)},212:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.questionDotToken)||Ht(r,t.argumentExpression)},213:gTe,214:gTe,215:function(t,r,i){return Ht(r,t.tag)||Ht(r,t.questionDotToken)||zi(r,i,t.typeArguments)||Ht(r,t.template)},216:function(t,r,i){return Ht(r,t.type)||Ht(r,t.expression)},217:function(t,r,i){return Ht(r,t.expression)},220:function(t,r,i){return Ht(r,t.expression)},221:function(t,r,i){return Ht(r,t.expression)},222:function(t,r,i){return Ht(r,t.expression)},224:function(t,r,i){return Ht(r,t.operand)},229:function(t,r,i){return Ht(r,t.asteriskToken)||Ht(r,t.expression)},223:function(t,r,i){return Ht(r,t.expression)},225:function(t,r,i){return Ht(r,t.operand)},226:function(t,r,i){return Ht(r,t.left)||Ht(r,t.operatorToken)||Ht(r,t.right)},234:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.type)},235:function(t,r,i){return Ht(r,t.expression)},238:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.type)},236:function(t,r,i){return Ht(r,t.name)},227:function(t,r,i){return Ht(r,t.condition)||Ht(r,t.questionToken)||Ht(r,t.whenTrue)||Ht(r,t.colonToken)||Ht(r,t.whenFalse)},230:function(t,r,i){return Ht(r,t.expression)},241:yTe,268:yTe,312:function(t,r,i){return zi(r,i,t.statements)||Ht(r,t.endOfFileToken)},243:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.declarationList)},261:function(t,r,i){return zi(r,i,t.declarations)},244:function(t,r,i){return Ht(r,t.expression)},245:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.thenStatement)||Ht(r,t.elseStatement)},246:function(t,r,i){return Ht(r,t.statement)||Ht(r,t.expression)},247:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.statement)},248:function(t,r,i){return Ht(r,t.initializer)||Ht(r,t.condition)||Ht(r,t.incrementor)||Ht(r,t.statement)},249:function(t,r,i){return Ht(r,t.initializer)||Ht(r,t.expression)||Ht(r,t.statement)},250:function(t,r,i){return Ht(r,t.awaitModifier)||Ht(r,t.initializer)||Ht(r,t.expression)||Ht(r,t.statement)},251:vTe,252:vTe,253:function(t,r,i){return Ht(r,t.expression)},254:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.statement)},255:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.caseBlock)},269:function(t,r,i){return zi(r,i,t.clauses)},296:function(t,r,i){return Ht(r,t.expression)||zi(r,i,t.statements)},297:function(t,r,i){return zi(r,i,t.statements)},256:function(t,r,i){return Ht(r,t.label)||Ht(r,t.statement)},257:function(t,r,i){return Ht(r,t.expression)},258:function(t,r,i){return Ht(r,t.tryBlock)||Ht(r,t.catchClause)||Ht(r,t.finallyBlock)},299:function(t,r,i){return Ht(r,t.variableDeclaration)||Ht(r,t.block)},170:function(t,r,i){return Ht(r,t.expression)},263:bTe,231:bTe,264:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||zi(r,i,t.heritageClauses)||zi(r,i,t.members)},265:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.typeParameters)||Ht(r,t.type)},266:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||zi(r,i,t.members)},306:function(t,r,i){return Ht(r,t.name)||Ht(r,t.initializer)},267:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.body)},271:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)||Ht(r,t.moduleReference)},272:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.importClause)||Ht(r,t.moduleSpecifier)||Ht(r,t.attributes)},273:function(t,r,i){return Ht(r,t.name)||Ht(r,t.namedBindings)},300:function(t,r,i){return zi(r,i,t.elements)},301:function(t,r,i){return Ht(r,t.name)||Ht(r,t.value)},270:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.name)},274:function(t,r,i){return Ht(r,t.name)},280:function(t,r,i){return Ht(r,t.name)},275:ETe,279:ETe,278:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.exportClause)||Ht(r,t.moduleSpecifier)||Ht(r,t.attributes)},276:STe,281:STe,277:function(t,r,i){return zi(r,i,t.modifiers)||Ht(r,t.expression)},228:function(t,r,i){return Ht(r,t.head)||zi(r,i,t.templateSpans)},239:function(t,r,i){return Ht(r,t.expression)||Ht(r,t.literal)},203:function(t,r,i){return Ht(r,t.head)||zi(r,i,t.templateSpans)},204:function(t,r,i){return Ht(r,t.type)||Ht(r,t.literal)},167:function(t,r,i){return Ht(r,t.expression)},298:function(t,r,i){return zi(r,i,t.types)},233:function(t,r,i){return Ht(r,t.expression)||zi(r,i,t.typeArguments)},283:function(t,r,i){return Ht(r,t.expression)},282:function(t,r,i){return zi(r,i,t.modifiers)},361:function(t,r,i){return zi(r,i,t.elements)},284:function(t,r,i){return Ht(r,t.openingElement)||zi(r,i,t.children)||Ht(r,t.closingElement)},288:function(t,r,i){return Ht(r,t.openingFragment)||zi(r,i,t.children)||Ht(r,t.closingFragment)},285:TTe,286:TTe,292:function(t,r,i){return zi(r,i,t.properties)},291:function(t,r,i){return Ht(r,t.name)||Ht(r,t.initializer)},293:function(t,r,i){return Ht(r,t.expression)},294:function(t,r,i){return Ht(r,t.dotDotDotToken)||Ht(r,t.expression)},287:function(t,r,i){return Ht(r,t.tagName)},295:function(t,r,i){return Ht(r,t.namespace)||Ht(r,t.name)},190:yP,191:yP,316:yP,322:yP,321:yP,323:yP,325:yP,324:function(t,r,i){return zi(r,i,t.parameters)||Ht(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:zi(r,i,t.comment))||zi(r,i,t.tags)},354:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.name)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},317:function(t,r,i){return Ht(r,t.name)},318:function(t,r,i){return Ht(r,t.left)||Ht(r,t.right)},348:ATe,355:ATe,337:function(t,r,i){return Ht(r,t.tagName)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},336:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.class)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},335:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.class)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},352:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.constraint)||zi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},353:function(t,r,i){return Ht(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Ht(r,t.typeExpression)||Ht(r,t.fullName)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment)):Ht(r,t.fullName)||Ht(r,t.typeExpression)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment)))},345:function(t,r,i){return Ht(r,t.tagName)||Ht(r,t.fullName)||Ht(r,t.typeExpression)||(typeof t.comment=="string"?void 0:zi(r,i,t.comment))},349:vP,351:vP,350:vP,347:vP,357:vP,356:vP,346:vP,330:function(t,r,i){return gn(t.typeParameters,r)||gn(t.parameters,r)||Ht(r,t.type)},331:Kae,332:Kae,333:Kae,329:function(t,r,i){return gn(t.jsDocPropertyTags,r)},334:GR,339:GR,340:GR,341:GR,342:GR,343:GR,338:GR,344:GR,360:E5e},(e=>{var t=xy(99,!0),r=40960,i,o,s,l,d;function p(X){return Je++,X}var h={createBaseSourceFileNode:X=>p(new d(X,0,0)),createBaseIdentifierNode:X=>p(new s(X,0,0)),createBasePrivateIdentifierNode:X=>p(new l(X,0,0)),createBaseTokenNode:X=>p(new o(X,0,0)),createBaseNode:X=>p(new i(X,0,0))},m=bk(11,h),{createNodeArray:y,createNumericLiteral:E,createStringLiteral:S,createLiteralLikeNode:A,createIdentifier:N,createPrivateIdentifier:D,createToken:w,createArrayLiteralExpression:j,createObjectLiteralExpression:K,createPropertyAccessExpression:Y,createPropertyAccessChain:B,createElementAccessExpression:ce,createElementAccessChain:z,createCallExpression:Z,createCallChain:me,createNewExpression:ge,createParenthesizedExpression:q,createBlock:J,createVariableStatement:re,createExpressionStatement:pe,createIfStatement:xe,createWhileStatement:fe,createForStatement:ne,createForOfStatement:he,createVariableDeclaration:Ce,createVariableDeclarationList:Ge}=m,ve,Ae,De,Le,Et,be,ze,tt,Wt,_t,Je,pt,Zt,en,Dn,Kn,pn=!0,Xt=!1;function Kt(X,Te,Ue,St,xt=!1,Vt,wr,Oi=0){var Ci;if(Vt=L6(X,Vt),Vt===6){let Xi=uo(X,Te,Ue,St,xt);return ew(Xi,(Ci=Xi.statements[0])==null?void 0:Ci.expression,Xi.parseDiagnostics,!1,void 0),Xi.referencedFiles=Xe,Xi.typeReferenceDirectives=Xe,Xi.libReferenceDirectives=Xe,Xi.amdDependencies=Xe,Xi.hasNoDefaultLib=!1,Xi.pragmas=IW,Xi}Li(X,Te,Ue,St,Vt,Oi);let mi=Qn(Ue,xt,Vt,wr||xTe,Oi);return So(),mi}e.parseSourceFile=Kt;function hi(X,Te){Li("",X,Te,void 0,1,0),Ne();let Ue=Q(!0),St=H()===1&&!ze.length;return So(),St?Ue:void 0}e.parseIsolatedEntityName=hi;function uo(X,Te,Ue=2,St,xt=!1){Li(X,Te,Ue,St,6,0),Ae=Kn,Ne();let Vt=k(),wr,Oi;if(H()===1)wr=Lo([],Vt,Vt),Oi=ul();else{let Xi;for(;H()!==1;){let $a;switch(H()){case 23:$a=ES();break;case 112:case 97:case 106:$a=ul();break;case 41:Pi(()=>Ne()===9&&Ne()!==59)?$a=Qr():$a=ey();break;case 9:case 11:if(Pi(()=>Ne()!==59)){$a=Xr();break}default:$a=ey();break}Xi&&To(Xi)?Xi.push($a):Xi?Xi=[Xi,$a]:(Xi=$a,H()!==1&&dn(f.Unexpected_token))}let cs=To(Xi)?tn(j(Xi),Vt):x.checkDefined(Xi),As=pe(cs);tn(As,Vt),wr=Lo([As],Vt),Oi=bs(1,f.Unexpected_token)}let Ci=Ot(X,2,6,!1,wr,Oi,Ae,qa);xt&&Ye(Ci),Ci.nodeCount=Je,Ci.identifierCount=Zt,Ci.identifiers=pt,Ci.parseDiagnostics=wI(ze,Ci),tt&&(Ci.jsDocDiagnostics=wI(tt,Ci));let mi=Ci;return So(),mi}e.parseJsonText=uo;function Li(X,Te,Ue,St,xt,Vt){switch(i=sd.getNodeConstructor(),o=sd.getTokenConstructor(),s=sd.getIdentifierConstructor(),l=sd.getPrivateIdentifierConstructor(),d=sd.getSourceFileConstructor(),ve=ma(X),De=Te,Le=Ue,Wt=St,Et=xt,be=ik(xt),ze=[],en=0,pt=new Map,Zt=0,Je=0,Ae=0,pn=!0,Et){case 1:case 2:Kn=524288;break;case 6:Kn=134742016;break;default:Kn=0;break}Xt=!1,t.setText(De),t.setOnError(Nt),t.setScriptTarget(Le),t.setLanguageVariant(be),t.setScriptKind(Et),t.setJSDocParsingMode(Vt)}function So(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),De=void 0,Le=void 0,Wt=void 0,Et=void 0,be=void 0,Ae=0,ze=void 0,tt=void 0,en=0,pt=void 0,Dn=void 0,pn=!0}function Qn(X,Te,Ue,St,xt){let Vt=Ed(ve);Vt&&(Kn|=33554432),Ae=Kn,Ne();let wr=Zo(0,ip);x.assert(H()===1);let Oi=ie(),Ci=Er(ul(),Oi),mi=Ot(ve,X,Ue,Vt,wr,Ci,Ae,St);return NH(mi,De),PH(mi,Xi),mi.commentDirectives=t.getCommentDirectives(),mi.nodeCount=Je,mi.identifierCount=Zt,mi.identifiers=pt,mi.parseDiagnostics=wI(ze,mi),mi.jsDocParsingMode=xt,tt&&(mi.jsDocDiagnostics=wI(tt,mi)),Te&&Ye(mi),mi;function Xi(cs,As,$a){ze.push(yR(ve,De,cs,As,$a))}}let Ur=!1;function Er(X,Te){if(!Te)return X;x.assert(!X.jsDoc);let Ue=to(oj(X,De),St=>H_.parseJSDocComment(X,St.pos,St.end-St.pos));return Ue.length&&(X.jsDoc=Ue),Ur&&(Ur=!1,X.flags|=536870912),X}function on(X){let Te=Wt,Ue=LH.createSyntaxCursor(X);Wt={currentNode:Xi};let St=[],xt=ze;ze=[];let Vt=0,wr=Ci(X.statements,0);for(;wr!==-1;){let cs=X.statements[Vt],As=X.statements[wr];Hr(St,X.statements,Vt,wr),Vt=mi(X.statements,wr);let $a=Kl(xt,K_=>K_.start>=cs.pos),Of=$a>=0?Kl(xt,K_=>K_.start>=As.pos,$a):-1;$a>=0&&Hr(ze,xt,$a,Of>=0?Of:void 0),go(()=>{let K_=Kn;for(Kn|=65536,t.resetTokenState(As.pos),Ne();H()!==1;){let gg=t.getTokenFullStart(),iy=Ql(0,ip);if(St.push(iy),gg===t.getTokenFullStart()&&Ne(),Vt>=0){let oy=X.statements[Vt];if(iy.end===oy.pos)break;iy.end>oy.pos&&(Vt=mi(X.statements,Vt+1))}}Kn=K_},2),wr=Vt>=0?Ci(X.statements,Vt):-1}if(Vt>=0){let cs=X.statements[Vt];Hr(St,X.statements,Vt);let As=Kl(xt,$a=>$a.start>=cs.pos);As>=0&&Hr(ze,xt,As)}return Wt=Te,m.updateSourceFile(X,at(y(St),X.statements));function Oi(cs){return!(cs.flags&65536)&&!!(cs.transformFlags&67108864)}function Ci(cs,As){for(let $a=As;$a118}function xo(){return H()===80?!0:H()===127&&Tt()||H()===135&&hn()?!1:H()>118}function xn(X,Te,Ue=!0){return H()===X?(Ue&&Ne(),!0):(Te?dn(Te):dn(f._0_expected,da(X)),!1)}let Ls=Object.keys(UL).filter(X=>X.length>2);function $l(X){if(U0(X)){U(Na(De,X.template.pos),X.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}let Te=Fe(X)?gr(X):void 0;if(!Te||!Yp(Te,Le)){dn(f._0_expected,da(27));return}let Ue=Na(De,X.pos);switch(Te){case"const":case"let":case"var":U(Ue,X.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Mo(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":U(Ue,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Mo(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":Mo(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}let St=GC(Te,Ls,xt=>xt)??ss(Te);if(St){U(Ue,X.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,St);return}H()!==0&&U(Ue,X.end,f.Unexpected_keyword_or_identifier)}function Mo(X,Te,Ue){H()===Ue?dn(Te):dn(X,t.getTokenValue())}function ss(X){for(let Te of Ls)if(X.length>Te.length+2&&ao(X,Te))return`${Te} ${X.slice(Te.length)}`}function Ws(X,Te,Ue){if(H()===60&&!t.hasPrecedingLineBreak()){dn(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(H()===21){dn(f.Cannot_start_a_function_call_in_a_type_annotation),Ne();return}if(Te&&!ac()){Ue?dn(f._0_expected,da(27)):dn(f.Expected_for_property_initializer);return}if(!xl()){if(Ue){dn(f._0_expected,da(27));return}$l(X)}}function ml(X){return H()===X?(It(),!0):(x.assert(ZF(X)),dn(f._0_expected,da(X)),!1)}function cd(X,Te,Ue,St){if(H()===Te){Ne();return}let xt=dn(f._0_expected,da(Te));Ue&&xt&&Pa(xt,yR(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,da(X),da(Te)))}function mo(X){return H()===X?(Ne(),!0):!1}function la(X){if(H()===X)return ul()}function dd(X){if(H()===X)return Nf()}function bs(X,Te,Ue){return la(X)||Fs(X,!1,Te||f._0_expected,Ue||da(X))}function Ca(X){let Te=dd(X);return Te||(x.assert(ZF(X)),Fs(X,!1,f._0_expected,da(X)))}function ul(){let X=k(),Te=H();return Ne(),tn(w(Te),X)}function Nf(){let X=k(),Te=H();return It(),tn(w(Te),X)}function ac(){return H()===27?!0:H()===20||H()===1||t.hasPrecedingLineBreak()}function xl(){return ac()?(H()===27&&Ne(),!0):!1}function al(){return xl()||xn(27)}function Lo(X,Te,Ue,St){let xt=y(X,St);return fh(xt,Te,Ue??t.getTokenFullStart()),xt}function tn(X,Te,Ue){return fh(X,Te,Ue??t.getTokenFullStart()),Kn&&(X.flags|=Kn),Xt&&(Xt=!1,X.flags|=262144),X}function Fs(X,Te,Ue,...St){Te?un(t.getTokenFullStart(),0,Ue,...St):Ue&&dn(Ue,...St);let xt=k(),Vt=X===80?N("",void 0):Dv(X)?m.createTemplateLiteralLikeNode(X,"","",void 0):X===9?E("",void 0):X===11?S("",void 0):X===282?m.createMissingDeclaration():w(X);return tn(Vt,xt)}function nd(X){let Te=pt.get(X);return Te===void 0&&pt.set(X,Te=X),Te}function ud(X,Te,Ue){if(X){Zt++;let Oi=k(),Ci=H(),mi=nd(t.getTokenValue()),Xi=t.hasExtendedUnicodeEscape();return ue(),tn(N(mi,Ci,Xi),Oi)}if(H()===81)return dn(Ue||f.Private_identifiers_are_not_allowed_outside_class_bodies),ud(!0);if(H()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return ud(!0);Zt++;let St=H()===1,xt=t.isReservedWord(),Vt=t.getTokenText(),wr=xt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return Fs(80,St,Te||wr,Vt)}function Ep(X){return ud(Kr(),void 0,X)}function Rs(X,Te){return ud(xo(),X,Te)}function Ac(X){return ud(ru(H()),X)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&dn(f.Unicode_escape_sequence_cannot_appear_here),ud(ru(H()))}function $(){return ru(H())||H()===11||H()===9}function Pe(){return ru(H())||H()===11}function yt(X){if(H()===11||H()===9){let Te=Xr();return Te.text=nd(Te.text),Te}return X&&H()===23?yr():H()===81?pr():Ac()}function cn(){return yt(!0)}function yr(){let X=k();xn(23);let Te=vn(Ve);return xn(24),tn(m.createComputedPropertyName(Te),X)}function pr(){let X=k(),Te=D(nd(t.getTokenValue()));return Ne(),tn(Te,X)}function zr(X){return H()===X&&Ri(Cr)}function Di(){return Ne(),t.hasPrecedingLineBreak()?!1:zs()}function Cr(){switch(H()){case 87:return Ne()===94;case 95:return Ne(),H()===90?Pi(hc):H()===156?Pi(bl):qo();case 90:return hc();case 126:case 139:case 153:return Ne(),zs();default:return Di()}}function qo(){return H()===60||H()!==42&&H()!==130&&H()!==19&&zs()}function bl(){return Ne(),qo()}function Hc(){return Dy(H())&&Ri(Cr)}function zs(){return H()===23||H()===19||H()===42||H()===26||$()}function hc(){return Ne(),H()===86||H()===100||H()===120||H()===60||H()===128&&Pi(SA)||H()===134&&Pi(TA)}function ys(X,Te){if(gc(X))return!0;switch(X){case 0:case 1:case 3:return!(H()===27&&Te)&&TS();case 2:return H()===84||H()===90;case 4:return Pi(Ha);case 5:return Pi(_g)||H()===27&&!Te;case 6:return H()===23||$();case 12:switch(H()){case 23:case 42:case 26:case 25:return!0;default:return $()}case 18:return $();case 9:return H()===23||H()===26||$();case 24:return Pe();case 7:return H()===19?Pi(Kc):Te?xo()&&!fu():U1()&&!fu();case 8:return es();case 10:return H()===28||H()===26||es();case 19:return H()===103||H()===87||xo();case 15:switch(H()){case 28:case 25:return!0}case 11:return H()===26||Zm();case 16:return B_(!1);case 17:return B_(!0);case 20:case 21:return H()===28||cg();case 22:return I();case 23:return H()===161&&Pi(qD)?!1:ru(H());case 13:return ru(H())||H()===19;case 14:return!0;case 25:return!0;case 26:return x.fail("ParsingContext.Count used as a context");default:x.assertNever(X,"Non-exhaustive case in 'isListElement'.")}}function Kc(){if(x.assert(H()===19),Ne()===20){let X=Ne();return X===28||X===19||X===96||X===119}return!0}function tp(){return Ne(),xo()}function Oc(){return Ne(),ru(H())}function im(){return Ne(),Pne(H())}function fu(){return H()===119||H()===96?Pi(Re):!1}function Re(){return Ne(),Zm()}function Lt(){return Ne(),cg()}function Un(X){if(H()===1)return!0;switch(X){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return H()===20;case 3:return H()===20||H()===84||H()===90;case 7:return H()===19||H()===96||H()===119;case 8:return yo();case 19:return H()===32||H()===21||H()===19||H()===96||H()===119;case 11:return H()===22||H()===27;case 15:case 21:case 10:return H()===24;case 17:case 16:case 18:return H()===22||H()===24;case 20:return H()!==28;case 22:return H()===19||H()===20;case 13:return H()===32||H()===44;case 14:return H()===30&&Pi(Si);default:return!1}}function yo(){return!!(ac()||$g(H())||H()===39)}function Xo(){x.assert(en,"Missing parsing context");for(let X=0;X<26;X++)if(en&1<=0)}function Kg(X){return X===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Sp(){let X=Lo([],k());return X.isMissingList=!0,X}function lg(X){return!!X.isMissingList}function zu(X,Te,Ue,St){if(xn(Ue)){let xt=Fd(X,Te);return xn(St),xt}return Sp()}function Q(X,Te){let Ue=k(),St=X?Ac(Te):Rs(Te);for(;mo(25)&&H()!==30;)St=tn(m.createQualifiedName(St,wt(X,!1,!0)),Ue);return St}function rt(X,Te){return tn(m.createQualifiedName(X,Te),X.pos)}function wt(X,Te,Ue){if(t.hasPrecedingLineBreak()&&ru(H())&&Pi(Vp))return Fs(80,!0,f.Identifier_expected);if(H()===81){let St=pr();return Te?St:Fs(80,!0,f.Identifier_expected)}return X?Ue?Ac():de():Rs()}function zt(X){let Te=k(),Ue=[],St;do St=ii(X),Ue.push(St);while(St.literal.kind===17);return Lo(Ue,Te)}function O(X){let Te=k();return tn(m.createTemplateExpression(no(X),zt(X)),Te)}function Ee(){let X=k();return tn(m.createTemplateLiteralType(no(!1),nt()),X)}function nt(){let X=k(),Te=[],Ue;do Ue=Gt(),Te.push(Ue);while(Ue.literal.kind===17);return Lo(Te,X)}function Gt(){let X=k();return tn(m.createTemplateLiteralTypeSpan(yc(),Zn(!1)),X)}function Zn(X){return H()===20?(wn(X),La()):bs(18,f._0_expected,da(20))}function ii(X){let Te=k();return tn(m.createTemplateSpan(vn(Ve),Zn(X)),Te)}function Xr(){return wl(H())}function no(X){!X&&t.getTokenFlags()&26656&&wn(!1);let Te=wl(H());return x.assert(Te.kind===16,"Template head has wrong token kind"),Te}function La(){let X=wl(H());return x.assert(X.kind===17||X.kind===18,"Template fragment has wrong token kind"),X}function ka(X){let Te=X===15||X===18,Ue=t.getTokenText();return Ue.substring(1,Ue.length-(t.isUnterminated()?0:Te?1:2))}function wl(X){let Te=k(),Ue=Dv(X)?m.createTemplateLiteralLikeNode(X,t.getTokenValue(),ka(X),t.getTokenFlags()&7176):X===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):X===11?S(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):iN(X)?A(X,t.getTokenValue()):x.fail();return t.hasExtendedUnicodeEscape()&&(Ue.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ue.isUnterminated=!0),Ne(),tn(Ue,Te)}function pd(){return Q(!0,f.Type_expected)}function Ic(){if(!t.hasPrecedingLineBreak()&&Bn()===30)return zu(20,yc,30,32)}function Tp(){let X=k();return tn(m.createTypeReferenceNode(pd(),Ic()),X)}function Bu(X){switch(X.kind){case 183:return Fl(X.typeName);case 184:case 185:{let{parameters:Te,type:Ue}=X;return lg(Te)||Bu(Ue)}case 196:return Bu(X.type);default:return!1}}function ob(X){return Ne(),tn(m.createTypePredicateNode(void 0,X,yc()),X.pos)}function ls(){let X=k();return Ne(),tn(m.createThisTypeNode(),X)}function Dm(){let X=k();return Ne(),tn(m.createJSDocAllType(),X)}function Cm(){let X=k();return Ne(),tn(m.createJSDocNonNullableType(sb(),!1),X)}function Ui(){let X=k();return Ne(),H()===28||H()===20||H()===22||H()===32||H()===64||H()===52?tn(m.createJSDocUnknownType(),X):tn(m.createJSDocNullableType(yc(),!1),X)}function Jg(){let X=k(),Te=ie();if(Ri(wf)){let Ue=fn(36),St=Bt(59,!1);return Er(tn(m.createJSDocFunctionType(Ue,St),X),Te)}return tn(m.createTypeReferenceNode(Ac(),void 0),X)}function $y(){let X=k(),Te;return(H()===110||H()===105)&&(Te=Ac(),xn(59)),tn(m.createParameterDeclaration(void 0,void 0,Te,void 0,Nm(),void 0),X)}function Nm(){t.setInJSDocType(!0);let X=k();if(mo(144)){let St=m.createJSDocNamepathType(void 0);e:for(;;)switch(H()){case 20:case 1:case 28:case 5:break e;default:It()}return t.setInJSDocType(!1),tn(St,X)}let Te=mo(26),Ue=lb();return t.setInJSDocType(!1),Te&&(Ue=tn(m.createJSDocVariadicType(Ue),X)),H()===64?(Ne(),tn(m.createJSDocOptionalType(Ue),X)):Ue}function pS(){let X=k();xn(114);let Te=Q(!0),Ue=t.hasPrecedingLineBreak()?void 0:JE();return tn(m.createTypeQueryNode(Te,Ue),X)}function fS(){let X=k(),Te=Ch(!1,!0),Ue=Rs(),St,xt;mo(96)&&(cg()||!Zm()?St=yc():xt=db());let Vt=mo(64)?yc():void 0,wr=m.createTypeParameterDeclaration(Te,Ue,St,Vt);return wr.expression=xt,tn(wr,X)}function cf(){if(H()===30)return zu(19,fS,30,32)}function B_(X){return H()===26||es()||Dy(H())||H()===60||cg(!X)}function df(X){let Te=Sr(f.Private_identifiers_cannot_be_used_as_parameters);return u2(Te)===0&&!gt(X)&&Dy(H())&&Ne(),Te}function qg(){return Kr()||H()===23||H()===19}function we(X){return Pt(X)}function qe(X){return Pt(X,!1)}function Pt(X,Te=!0){let Ue=k(),St=ie(),xt=X?ae(()=>Ch(!0)):ke(()=>Ch(!0));if(H()===110){let Ci=m.createParameterDeclaration(xt,void 0,ud(!0),void 0,Zy(),void 0),mi=Xc(xt);return mi&&Me(mi,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Er(tn(Ci,Ue),St)}let Vt=pn;pn=!1;let wr=la(26);if(!Te&&!qg())return;let Oi=Er(tn(m.createParameterDeclaration(xt,wr,df(xt),la(58),Zy(),e_()),Ue),St);return pn=Vt,Oi}function Bt(X,Te){if(_n(X,Te))return Be(lb)}function _n(X,Te){return X===39?(xn(X),!0):mo(59)?!0:Te&&H()===39?(dn(f._0_expected,da(59)),Ne(),!0):!1}function Jn(X,Te){let Ue=Tt(),St=hn();yi(!!(X&1)),Io(!!(X&2));let xt=X&32?Fd(17,$y):Fd(16,()=>Te?we(St):qe(St));return yi(Ue),Io(St),xt}function fn(X){if(!xn(21))return Sp();let Te=Jn(X,!0);return xn(22),Te}function qn(){mo(28)||al()}function fi(X){let Te=k(),Ue=ie();X===180&&xn(105);let St=cf(),xt=fn(4),Vt=Bt(59,!0);qn();let wr=X===179?m.createCallSignature(St,xt,Vt):m.createConstructSignature(St,xt,Vt);return Er(tn(wr,Te),Ue)}function or(){return H()===23&&Pi(ni)}function ni(){if(Ne(),H()===26||H()===24)return!0;if(Dy(H())){if(Ne(),xo())return!0}else if(xo())Ne();else return!1;return H()===59||H()===28?!0:H()!==58?!1:(Ne(),H()===59||H()===28||H()===24)}function cr(X,Te,Ue){let St=zu(16,()=>we(!1),23,24),xt=Zy();qn();let Vt=m.createIndexSignature(Ue,St,xt);return Er(tn(Vt,X),Te)}function Yo(X,Te,Ue){let St=cn(),xt=la(58),Vt;if(H()===21||H()===30){let wr=cf(),Oi=fn(4),Ci=Bt(59,!0);Vt=m.createMethodSignature(Ue,St,xt,wr,Oi,Ci)}else{let wr=Zy();Vt=m.createPropertySignature(Ue,St,xt,wr),H()===64&&(Vt.initializer=e_())}return qn(),Er(tn(Vt,X),Te)}function Ha(){if(H()===21||H()===30||H()===139||H()===153)return!0;let X=!1;for(;Dy(H());)X=!0,Ne();return H()===23?!0:($()&&(X=!0,Ne()),X?H()===21||H()===30||H()===58||H()===59||H()===28||ac():!1)}function $d(){if(H()===21||H()===30)return fi(179);if(H()===105&&Pi(fd))return fi(180);let X=k(),Te=ie(),Ue=Ch(!1);return zr(139)?ny(X,Te,Ue,177,4):zr(153)?ny(X,Te,Ue,178,4):or()?cr(X,Te,Ue):Yo(X,Te,Ue)}function fd(){return Ne(),H()===21||H()===30}function Xg(){return Ne()===25}function LE(){switch(Ne()){case 21:case 30:case 25:return!0}return!1}function w1(){let X=k();return tn(m.createTypeLiteralNode(kE()),X)}function kE(){let X;return xn(19)?(X=Zo(4,$d),xn(20)):X=Sp(),X}function kD(){return Ne(),H()===40||H()===41?Ne()===148:(H()===148&&Ne(),H()===23&&tp()&&Ne()===103)}function wD(){let X=k(),Te=Ac();xn(103);let Ue=yc();return tn(m.createTypeParameterDeclaration(void 0,Te,Ue,void 0),X)}function OD(){let X=k();xn(19);let Te;(H()===148||H()===40||H()===41)&&(Te=ul(),Te.kind!==148&&xn(148)),xn(23);let Ue=wD(),St=mo(130)?yc():void 0;xn(24);let xt;(H()===58||H()===40||H()===41)&&(xt=ul(),xt.kind!==58&&xn(58));let Vt=Zy();al();let wr=Zo(4,$d);return xn(20),tn(m.createMappedTypeNode(Te,Ue,St,xt,Vt,wr),X)}function oA(){let X=k();if(mo(26))return tn(m.createRestTypeNode(yc()),X);let Te=yc();if(LR(Te)&&Te.pos===Te.type.pos){let Ue=m.createOptionalTypeNode(Te.type);return at(Ue,Te),Ue.flags=Te.flags,Ue}return Te}function mS(){return Ne()===59||H()===58&&Ne()===59}function O1(){return H()===26?ru(Ne())&&mS():ru(H())&&mS()}function WD(){if(Pi(O1)){let X=k(),Te=ie(),Ue=la(26),St=Ac(),xt=la(58);xn(59);let Vt=oA(),wr=m.createNamedTupleMember(Ue,St,xt,Vt);return Er(tn(wr,X),Te)}return oA()}function W1(){let X=k();return tn(m.createTupleTypeNode(zu(21,WD,23,24)),X)}function F1(){let X=k();xn(21);let Te=yc();return xn(22),tn(m.createParenthesizedType(Te),X)}function z1(){let X;if(H()===128){let Te=k();Ne();let Ue=tn(w(128),Te);X=Lo([Ue],Te)}return X}function B1(){let X=k(),Te=ie(),Ue=z1(),St=mo(105);x.assert(!Ue||St,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let xt=cf(),Vt=fn(4),wr=Bt(39,!1),Oi=St?m.createConstructorTypeNode(Ue,xt,Vt,wr):m.createFunctionTypeNode(xt,Vt,wr);return Er(tn(Oi,X),Te)}function aA(){let X=ul();return H()===25?void 0:X}function G1(X){let Te=k();X&&Ne();let Ue=H()===112||H()===97||H()===106?ul():wl(H());return X&&(Ue=tn(m.createPrefixUnaryExpression(41,Ue),Te)),tn(m.createLiteralTypeNode(Ue),Te)}function _S(){return Ne(),H()===102}function hS(){Ae|=4194304;let X=k(),Te=mo(114);xn(102),xn(21);let Ue=yc(),St;if(mo(28)){let wr=t.getTokenStart();xn(19);let Oi=H();if(Oi===118||Oi===132?Ne():dn(f._0_expected,da(118)),xn(59),St=bb(Oi,!0),!xn(20)){let Ci=$s(ze);Ci&&Ci.code===f._0_expected.code&&Pa(Ci,yR(ve,De,wr,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}xn(22);let xt=mo(25)?pd():void 0,Vt=Ic();return tn(m.createImportTypeNode(Ue,St,xt,Vt,Te),X)}function ab(){return Ne(),H()===9||H()===10}function sb(){switch(H()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ri(aA)||Tp();case 67:t.reScanAsteriskEqualsToken();case 42:return Dm();case 61:t.reScanQuestionToken();case 58:return Ui();case 100:return Jg();case 54:return Cm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return G1();case 41:return Pi(ab)?G1(!0):Tp();case 116:return ul();case 110:{let X=ls();return H()===142&&!t.hasPrecedingLineBreak()?ob(X):X}case 114:return Pi(_S)?hS():pS();case 19:return Pi(kD)?OD():w1();case 23:return W1();case 21:return F1();case 102:return hS();case 131:return Pi(Vp)?j1():Tp();case 16:return Ee();default:return Tp()}}function cg(X){switch(H()){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!X;case 41:return!X&&Pi(ab);case 21:return!X&&Pi(wE);default:return xo()}}function wE(){return Ne(),H()===22||B_(!1)||cg()}function Qa(){let X=k(),Te=sb();for(;!t.hasPrecedingLineBreak();)switch(H()){case 54:Ne(),Te=tn(m.createJSDocNonNullableType(Te,!0),X);break;case 58:if(Pi(Lt))return Te;Ne(),Te=tn(m.createJSDocNullableType(Te,!0),X);break;case 23:if(xn(23),cg()){let Ue=yc();xn(24),Te=tn(m.createIndexedAccessTypeNode(Te,Ue),X)}else xn(24),Te=tn(m.createArrayTypeNode(Te),X);break;default:return Te}return Te}function sA(X){let Te=k();return xn(X),tn(m.createTypeOperatorNode(X,Ih()),Te)}function FD(){if(mo(96)){let X=ct(yc);if(ut()||H()!==58)return X}}function OE(){let X=k(),Te=Rs(),Ue=Ri(FD),St=m.createTypeParameterDeclaration(void 0,Te,Ue);return tn(St,X)}function Yg(){let X=k();return xn(140),tn(m.createInferTypeNode(OE()),X)}function Ih(){let X=H();switch(X){case 143:case 158:case 148:return sA(X);case 140:return Yg()}return Be(Qa)}function Mf(X){if(lA()){let Te=B1(),Ue;return hh(Te)?Ue=X?f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ue=X?f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Me(Te,Ue),Te}}function Gu(X,Te,Ue){let St=k(),xt=X===52,Vt=mo(X),wr=Vt&&Mf(xt)||Te();if(H()===X||Vt){let Oi=[wr];for(;mo(X);)Oi.push(Mf(xt)||Te());wr=tn(Ue(Lo(Oi,St)),St)}return wr}function Ap(){return Gu(51,Ih,m.createIntersectionTypeNode)}function np(){return Gu(52,Ap,m.createUnionTypeNode)}function Qy(){return Ne(),H()===105}function lA(){return H()===30||H()===21&&Pi(V1)?!0:H()===105||H()===128&&Pi(Qy)}function zD(){if(Dy(H())&&Ch(!1),xo()||H()===110)return Ne(),!0;if(H()===23||H()===19){let X=ze.length;return Sr(),X===ze.length}return!1}function V1(){return Ne(),!!(H()===22||H()===26||zD()&&(H()===59||H()===28||H()===58||H()===64||H()===22&&(Ne(),H()===39)))}function lb(){let X=k(),Te=xo()&&Ri(WE),Ue=yc();return Te?tn(m.createTypePredicateNode(void 0,Te,Ue),X):Ue}function WE(){let X=Rs();if(H()===142&&!t.hasPrecedingLineBreak())return Ne(),X}function j1(){let X=k(),Te=bs(131),Ue=H()===110?ls():Rs(),St=mo(142)?yc():void 0;return tn(m.createTypePredicateNode(Te,Ue,St),X)}function yc(){if(Kn&81920)return ua(81920,yc);if(lA())return B1();let X=k(),Te=np();if(!ut()&&!t.hasPrecedingLineBreak()&&mo(96)){let Ue=ct(yc);xn(58);let St=Be(yc);xn(59);let xt=Be(yc);return tn(m.createConditionalTypeNode(Te,Ue,St,xt),X)}return Te}function Zy(){return mo(59)?yc():void 0}function U1(){switch(H()){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 Pi(LE);default:return xo()}}function Zm(){if(U1())return!0;switch(H()){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 n_()?!0:xo()}}function cA(){return H()!==19&&H()!==100&&H()!==86&&H()!==60&&Zm()}function Ve(){let X=Ft();X&&$i(!1);let Te=k(),Ue=md(!0),St;for(;St=la(28);)Ue=gS(Ue,St,md(!0),Te);return X&&$i(!0),Ue}function e_(){return mo(64)?md(!0):void 0}function md(X){if(FE())return cb();let Te=tv(X)||dA(X);if(Te)return Te;let Ue=k(),St=ie(),xt=am(0);return xt.kind===80&&H()===39?ev(Ue,xt,X,St,void 0):Yu(xt)&&Ly(Ut())?gS(xt,ul(),md(X),Ue):om(xt,Ue,X)}function FE(){return H()===127?Tt()?!0:Pi(Bs):!1}function H1(){return Ne(),!t.hasPrecedingLineBreak()&&xo()}function cb(){let X=k();return Ne(),!t.hasPrecedingLineBreak()&&(H()===42||Zm())?tn(m.createYieldExpression(la(42),md(!0)),X):tn(m.createYieldExpression(void 0,void 0),X)}function ev(X,Te,Ue,St,xt){x.assert(H()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Vt=m.createParameterDeclaration(void 0,void 0,Te,void 0,void 0,void 0);tn(Vt,Te.pos);let wr=Lo([Vt],Vt.pos,Vt.end),Oi=bs(39),Ci=pA(!!xt,Ue),mi=m.createArrowFunction(xt,void 0,wr,void 0,Oi,Ci);return Er(tn(mi,X),St)}function tv(X){let Te=EM();if(Te!==0)return Te===1?zE(!0,!0):Ri(()=>t_(X))}function EM(){return H()===21||H()===30||H()===134?Pi(Ka):H()===39?1:0}function Ka(){if(H()===134&&(Ne(),t.hasPrecedingLineBreak()||H()!==21&&H()!==30))return 0;let X=H(),Te=Ne();if(X===21){if(Te===22)switch(Ne()){case 39:case 59:case 19:return 1;default:return 0}if(Te===23||Te===19)return 2;if(Te===26)return 1;if(Dy(Te)&&Te!==134&&Pi(tp))return Ne()===130?0:1;if(!xo()&&Te!==110)return 0;switch(Ne()){case 59:return 1;case 58:return Ne(),H()===59||H()===28||H()===64||H()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return x.assert(X===30),!xo()&&H()!==87?0:be===1?Pi(()=>{mo(87);let St=Ne();if(St===96)switch(Ne()){case 64:case 32:case 44:return!1;default:return!0}else if(St===28||St===64)return!0;return!1})?1:0:2}function t_(X){let Te=t.getTokenStart();if(Dn?.has(Te))return;let Ue=zE(!1,X);return Ue||(Dn||(Dn=new Set)).add(Te),Ue}function dA(X){if(H()===134&&Pi(uA)===1){let Te=k(),Ue=ie(),St=mf(),xt=am(0);return ev(Te,xt,X,Ue,St)}}function uA(){if(H()===134){if(Ne(),t.hasPrecedingLineBreak()||H()===39)return 0;let X=am(0);if(!t.hasPrecedingLineBreak()&&X.kind===80&&H()===39)return 1}return 0}function zE(X,Te){let Ue=k(),St=ie(),xt=mf(),Vt=gt(xt,oP)?2:0,wr=cf(),Oi;if(xn(21)){if(X)Oi=Jn(Vt,X);else{let gg=Jn(Vt,X);if(!gg)return;Oi=gg}if(!xn(22)&&!X)return}else{if(!X)return;Oi=Sp()}let Ci=H()===59,mi=Bt(59,!1);if(mi&&!X&&Bu(mi))return;let Xi=mi;for(;Xi?.kind===196;)Xi=Xi.type;let cs=Xi&&kR(Xi);if(!X&&H()!==39&&(cs||H()!==19))return;let As=H(),$a=bs(39),Of=As===39||As===19?pA(gt(xt,oP),Te):Rs();if(!Te&&Ci&&H()!==59)return;let K_=m.createArrowFunction(xt,wr,Oi,mi,$a,Of);return Er(tn(K_,Ue),St)}function pA(X,Te){if(H()===19)return mb(X?2:0);if(H()!==27&&H()!==100&&H()!==86&&TS()&&!cA())return mb(16|(X?2:0));let Ue=pn;pn=!1;let St=X?ae(()=>md(Te)):ke(()=>md(Te));return pn=Ue,St}function om(X,Te,Ue){let St=la(58);if(!St)return X;let xt;return tn(m.createConditionalExpression(X,St,ua(r,()=>md(!1)),xt=bs(59),Hf(xt)?md(Ue):Fs(80,!1,f._0_expected,da(59))),Te)}function am(X){let Te=k(),Ue=db();return K1(X,Ue,Te)}function $g(X){return X===103||X===165}function K1(X,Te,Ue){for(;;){Ut();let St=X2(H());if(!(H()===43?St>=X:St>X)||H()===103&&He())break;if(H()===130||H()===152){if(t.hasPrecedingLineBreak())break;{let Vt=H();Ne(),Te=Vt===152?BD(Te,yc()):qi(Te,yc())}}else Te=gS(Te,ul(),am(St),Ue)}return Te}function n_(){return He()&&H()===103?!1:X2(H())>0}function BD(X,Te){return tn(m.createSatisfiesExpression(X,Te),X.pos)}function gS(X,Te,Ue,St){return tn(m.createBinaryExpression(X,Te,Ue),St)}function qi(X,Te){return tn(m.createAsExpression(X,Te),X.pos)}function Qr(){let X=k();return tn(m.createPrefixUnaryExpression(H(),We(hl)),X)}function xh(){let X=k();return tn(m.createDeleteExpression(We(hl)),X)}function Vu(){let X=k();return tn(m.createTypeOfExpression(We(hl)),X)}function SM(){let X=k();return tn(m.createVoidExpression(We(hl)),X)}function Qg(){return H()===135?hn()?!0:Pi(Bs):!1}function TM(){let X=k();return tn(m.createAwaitExpression(We(hl)),X)}function db(){if(Bp()){let Ue=k(),St=dg();return H()===43?K1(X2(H()),St,Ue):St}let X=H(),Te=hl();if(H()===43){let Ue=Na(De,Te.pos),{end:St}=Te;Te.kind===216?U(Ue,St,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(x.assert(ZF(X)),U(Ue,St,f.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,da(X)))}return Te}function hl(){switch(H()){case 40:case 41:case 55:case 54:return Qr();case 91:return xh();case 114:return Vu();case 116:return SM();case 30:return be===1?Zg(!0,void 0,void 0,!0):Mm();case 135:if(Qg())return TM();default:return dg()}}function Bp(){switch(H()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(be!==1)return!1;default:return!0}}function dg(){if(H()===46||H()===47){let Te=k();return tn(m.createPrefixUnaryExpression(H(),We(sm)),Te)}else if(be===1&&H()===30&&Pi(im))return Zg(!0);let X=sm();if(x.assert(Yu(X)),(H()===46||H()===47)&&!t.hasPrecedingLineBreak()){let Te=H();return Ne(),tn(m.createPostfixUnaryExpression(X,Te),X.pos)}return X}function sm(){let X=k(),Te;return H()===102?Pi(fd)?(Ae|=4194304,Te=ul()):Pi(Xg)?(Ne(),Ne(),Te=tn(m.createMetaProperty(102,Ac()),X),Ae|=8388608):Te=ub():Te=H()===108?Pm():ub(),rv(X,Te)}function ub(){let X=k(),Te=BE();return rd(X,Te,!0)}function Pm(){let X=k(),Te=ul();if(H()===30){let Ue=k(),St=Ri(ar);St!==void 0&&(U(Ue,k(),f.super_may_not_use_type_arguments),Qi()||(Te=m.createExpressionWithTypeArguments(Te,St)))}return H()===21||H()===25||H()===23?Te:(bs(25,f.super_must_be_followed_by_an_argument_list_or_member_access),tn(Y(Te,wt(!0,!0,!0)),X))}function Zg(X,Te,Ue,St=!1){let xt=k(),Vt=pg(X),wr;if(Vt.kind===286){let Oi=ug(Vt),Ci,mi=Oi[Oi.length-1];if(mi?.kind===284&&!bE(mi.openingElement.tagName,mi.closingElement.tagName)&&bE(Vt.tagName,mi.closingElement.tagName)){let Xi=mi.children.end,cs=tn(m.createJsxElement(mi.openingElement,mi.children,tn(m.createJsxClosingElement(tn(N(""),Xi,Xi)),Xi,Xi)),mi.openingElement.pos,Xi);Oi=Lo([...Oi.slice(0,Oi.length-1),cs],Oi.pos,Xi),Ci=mi.closingElement}else Ci=vS(Vt,X),bE(Vt.tagName,Ci.tagName)||(Ue&&P_(Ue)&&bE(Ci.tagName,Ue.tagName)?Me(Vt.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,dN(De,Vt.tagName)):Me(Ci.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,dN(De,Vt.tagName)));wr=tn(m.createJsxElement(Vt,Oi,Ci),xt)}else Vt.kind===289?wr=tn(m.createJsxFragment(Vt,ug(Vt),_A(X)),xt):(x.assert(Vt.kind===285),wr=Vt);if(!St&&X&&H()===30){let Oi=typeof Te>"u"?wr.pos:Te,Ci=Ri(()=>Zg(!0,Oi));if(Ci){let mi=Fs(28,!1);return KN(mi,Ci.pos,0),U(Na(De,Oi),Ci.end,f.JSX_expressions_must_have_one_parent_element),tn(m.createBinaryExpression(wr,mi,Ci),xt)}}return wr}function yS(){let X=k(),Te=m.createJsxText(t.getTokenValue(),_t===13);return _t=t.scanJsxToken(),tn(Te,X)}function fA(X,Te){switch(Te){case 1:if(i1(X))Me(X,f.JSX_fragment_has_no_corresponding_closing_tag);else{let Ue=X.tagName,St=Math.min(Na(De,Ue.pos),Ue.end);U(St,Ue.end,f.JSX_element_0_has_no_corresponding_closing_tag,dN(De,X.tagName))}return;case 31:case 7:return;case 12:case 13:return yS();case 19:return GD(!1);case 30:return Zg(!1,void 0,X);default:return x.assertNever(Te)}}function ug(X){let Te=[],Ue=k(),St=en;for(en|=16384;;){let xt=fA(X,_t=t.reScanJsxToken());if(!xt||(Te.push(xt),P_(X)&&xt?.kind===284&&!bE(xt.openingElement.tagName,xt.closingElement.tagName)&&bE(X.tagName,xt.closingElement.tagName)))break}return en=St,Lo(Te,Ue)}function J1(){let X=k();return tn(m.createJsxAttributes(Zo(13,VD)),X)}function pg(X){let Te=k();if(xn(30),H()===32)return er(),tn(m.createJsxOpeningFragment(),Te);let Ue=G_(),St=Kn&524288?void 0:JE(),xt=J1(),Vt;return H()===32?(er(),Vt=m.createJsxOpeningElement(Ue,St,xt)):(xn(44),xn(32,void 0,!1)&&(X?Ne():er()),Vt=m.createJsxSelfClosingElement(Ue,St,xt)),tn(Vt,Te)}function G_(){let X=k(),Te=nv();if(qm(Te))return Te;let Ue=Te;for(;mo(25);)Ue=tn(Y(Ue,wt(!0,!1,!1)),X);return Ue}function nv(){let X=k();xi();let Te=H()===110,Ue=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Ue,de()),X)):Te?tn(m.createToken(110),X):Ue}function GD(X){let Te=k();if(!xn(19))return;let Ue,St;return H()!==20&&(X||(Ue=la(26)),St=Ve()),X?xn(20):xn(20,void 0,!1)&&er(),tn(m.createJsxExpression(Ue,St),Te)}function VD(){if(H()===19)return qs();let X=k();return tn(m.createJsxAttribute(mA(),jD()),X)}function jD(){if(H()===64){if(Fr()===11)return Xr();if(H()===19)return GD(!0);if(H()===30)return Zg(!0);dn(f.or_JSX_element_expected)}}function mA(){let X=k();xi();let Te=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Te,de()),X)):Te}function qs(){let X=k();xn(19),xn(26);let Te=Ve();return xn(20),tn(m.createJsxSpreadAttribute(Te),X)}function vS(X,Te){let Ue=k();xn(31);let St=G_();return xn(32,void 0,!1)&&(Te||!bE(X.tagName,St)?Ne():er()),tn(m.createJsxClosingElement(St),Ue)}function _A(X){let Te=k();return xn(31),xn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(X?Ne():er()),tn(m.createJsxJsxClosingFragment(),Te)}function Mm(){x.assert(be!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let X=k();xn(30);let Te=yc();xn(32);let Ue=hl();return tn(m.createTypeAssertion(Te,Ue),X)}function pb(){return Ne(),ru(H())||H()===23||Qi()}function UD(){return H()===29&&Pi(pb)}function hA(X){if(X.flags&64)return!0;if(t1(X)){let Te=X.expression;for(;t1(Te)&&!(Te.flags&64);)Te=Te.expression;if(Te.flags&64){for(;t1(X);)X.flags|=64,X=X.expression;return!0}}return!1}function AM(X,Te,Ue){let St=wt(!0,!0,!0),xt=Ue||hA(Te),Vt=xt?B(Te,Ue,St):Y(Te,St);if(xt&&Ki(Vt.name)&&Me(Vt.name,f.An_optional_chain_cannot_contain_private_identifiers),zy(Te)&&Te.typeArguments){let wr=Te.typeArguments.pos-1,Oi=Na(De,Te.typeArguments.end)+1;U(wr,Oi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return tn(Vt,X)}function fr(X,Te,Ue){let St;if(H()===24)St=Fs(80,!0,f.An_element_access_expression_should_take_an_argument);else{let Vt=vn(Ve);$p(Vt)&&(Vt.text=nd(Vt.text)),St=Vt}xn(24);let xt=Ue||hA(Te)?z(Te,Ue,St):ce(Te,St);return tn(xt,X)}function rd(X,Te,Ue){for(;;){let St,xt=!1;if(Ue&&UD()?(St=bs(29),xt=ru(H())):xt=mo(25),xt){Te=AM(X,Te,St);continue}if((St||!Ft())&&mo(23)){Te=fr(X,Te,St);continue}if(Qi()){Te=!St&&Te.kind===233?uf(X,Te.expression,St,Te.typeArguments):uf(X,Te,St,void 0);continue}if(!St){if(H()===54&&!t.hasPrecedingLineBreak()){Ne(),Te=tn(m.createNonNullExpression(Te),X);continue}let Vt=Ri(ar);if(Vt){Te=tn(m.createExpressionWithTypeArguments(Te,Vt),X);continue}}return Te}}function Qi(){return H()===15||H()===16}function uf(X,Te,Ue,St){let xt=m.createTaggedTemplateExpression(Te,St,H()===15?(wn(!0),Xr()):O(!0));return(Ue||Te.flags&64)&&(xt.flags|=64),xt.questionDotToken=Ue,tn(xt,X)}function rv(X,Te){for(;;){Te=rd(X,Te,!0);let Ue,St=la(29);if(St&&(Ue=Ri(ar),Qi())){Te=uf(X,Te,St,Ue);continue}if(Ue||H()===21){!St&&Te.kind===233&&(Ue=Te.typeArguments,Te=Te.expression);let xt=V_(),Vt=St||hA(Te)?me(Te,St,Ue,xt):Z(Te,Ue,xt);Te=tn(Vt,X);continue}if(St){let xt=Fs(80,!1,f.Identifier_expected);Te=tn(B(Te,St,xt),X)}break}return Te}function V_(){xn(21);let X=Fd(11,bS);return xn(22),X}function ar(){if(Kn&524288||Bn()!==30)return;Ne();let X=Fd(20,yc);if(Ut()===32)return Ne(),X&&gA()?X:void 0}function gA(){switch(H()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||n_()||!Zm()}function BE(){switch(H()){case 15:t.getTokenFlags()&26656&&wn(!1);case 9:case 10:case 11:return Xr();case 110:case 108:case 106:case 112:case 97:return ul();case 21:return qc();case 23:return ES();case 19:return ey();case 134:if(!Pi(TA))break;return yA();case 60:return KE();case 86:return ex();case 100:return yA();case 105:return GE();case 44:case 69:if(En()===14)return Xr();break;case 16:return O(!1);case 81:return pr()}return Rs(f.Expression_expected)}function qc(){let X=k(),Te=ie();xn(21);let Ue=vn(Ve);return xn(22),Er(tn(q(Ue),X),Te)}function Rh(){let X=k();xn(26);let Te=md(!0);return tn(m.createSpreadElement(Te),X)}function Lm(){return H()===26?Rh():H()===28?tn(m.createOmittedExpression(),k()):md(!0)}function bS(){return ua(r,Lm)}function ES(){let X=k(),Te=t.getTokenStart(),Ue=xn(23),St=t.hasPrecedingLineBreak(),xt=Fd(15,Lm);return cd(23,24,Ue,Te),tn(j(xt,St),X)}function fb(){let X=k(),Te=ie();if(la(26)){let Xi=md(!0);return Er(tn(m.createSpreadAssignment(Xi),X),Te)}let Ue=Ch(!0);if(zr(139))return ny(X,Te,Ue,177,0);if(zr(153))return ny(X,Te,Ue,178,0);let St=la(42),xt=xo(),Vt=cn(),wr=la(58),Oi=la(54);if(St||H()===21||H()===30)return r_(X,Te,Ue,St,Vt,wr,Oi);let Ci;if(xt&&H()!==59){let Xi=la(64),cs=Xi?vn(()=>md(!0)):void 0;Ci=m.createShorthandPropertyAssignment(Vt,cs),Ci.equalsToken=Xi}else{xn(59);let Xi=vn(()=>md(!0));Ci=m.createPropertyAssignment(Vt,Xi)}return Ci.modifiers=Ue,Ci.questionToken=wr,Ci.exclamationToken=Oi,Er(tn(Ci,X),Te)}function ey(){let X=k(),Te=t.getTokenStart(),Ue=xn(19),St=t.hasPrecedingLineBreak(),xt=Fd(12,fb,!0);return cd(19,20,Ue,Te),tn(K(xt,St),X)}function yA(){let X=Ft();$i(!1);let Te=k(),Ue=ie(),St=Ch(!1);xn(100);let xt=la(42),Vt=xt?1:0,wr=gt(St,oP)?2:0,Oi=Vt&&wr?st(km):Vt?lt(km):wr?ae(km):km(),Ci=cf(),mi=fn(Vt|wr),Xi=Bt(59,!1),cs=mb(Vt|wr);$i(X);let As=m.createFunctionExpression(St,xt,Oi,Ci,mi,Xi,cs);return Er(tn(As,Te),Ue)}function km(){return Kr()?Ep():void 0}function GE(){let X=k();if(xn(105),mo(25)){let Vt=Ac();return tn(m.createMetaProperty(105,Vt),X)}let Te=k(),Ue=rd(Te,BE(),!1),St;Ue.kind===233&&(St=Ue.typeArguments,Ue=Ue.expression),H()===29&&dn(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,dN(De,Ue));let xt=H()===21?V_():void 0;return tn(ge(Ue,St,xt),X)}function fg(X,Te){let Ue=k(),St=ie(),xt=t.getTokenStart(),Vt=xn(19,Te);if(Vt||X){let wr=t.hasPrecedingLineBreak(),Oi=Zo(1,ip);cd(19,20,Vt,xt);let Ci=Er(tn(J(Oi,wr),Ue),St);return H()===64&&(dn(f.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),Ne()),Ci}else{let wr=Sp();return Er(tn(J(wr,void 0),Ue),St)}}function mb(X,Te){let Ue=Tt();yi(!!(X&1));let St=hn();Io(!!(X&2));let xt=pn;pn=!1;let Vt=Ft();Vt&&$i(!1);let wr=fg(!!(X&16),Te);return Vt&&$i(!0),pn=xt,yi(Ue),Io(St),wr}function q1(){let X=k(),Te=ie();return xn(27),Er(tn(m.createEmptyStatement(),X),Te)}function VE(){let X=k(),Te=ie();xn(101);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);cd(21,22,St,Ue);let Vt=ip(),wr=mo(93)?ip():void 0;return Er(tn(xe(xt,Vt,wr),X),Te)}function HD(){let X=k(),Te=ie();xn(92);let Ue=ip();xn(117);let St=t.getTokenStart(),xt=xn(21),Vt=vn(Ve);return cd(21,22,xt,St),mo(27),Er(tn(m.createDoStatement(Ue,Vt),X),Te)}function SS(){let X=k(),Te=ie();xn(117);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);cd(21,22,St,Ue);let Vt=ip();return Er(tn(fe(xt,Vt),X),Te)}function vA(){let X=k(),Te=ie();xn(99);let Ue=la(135);xn(21);let St;H()!==27&&(H()===115||H()===121||H()===87||H()===160&&Pi(ty)||H()===135&&Pi(Ip)?St=AS(!0):St=kn(Ve));let xt;if(Ue?xn(165):mo(165)){let Vt=vn(()=>md(!0));xn(22),xt=he(Ue,St,Vt,ip())}else if(mo(103)){let Vt=vn(Ve);xn(22),xt=m.createForInStatement(St,Vt,ip())}else{xn(27);let Vt=H()!==27&&H()!==22?vn(Ve):void 0;xn(27);let wr=H()!==22?vn(Ve):void 0;xn(22),xt=ne(St,Vt,wr,ip())}return Er(tn(xt,X),Te)}function Gp(X){let Te=k(),Ue=ie();xn(X===252?83:88);let St=ac()?void 0:Rs();al();let xt=X===252?m.createBreakStatement(St):m.createContinueStatement(St);return Er(tn(xt,Te),Ue)}function bA(){let X=k(),Te=ie();xn(107);let Ue=ac()?void 0:vn(Ve);return al(),Er(tn(m.createReturnStatement(Ue),X),Te)}function Vl(){let X=k(),Te=ie();xn(118);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);cd(21,22,St,Ue);let Vt=Ba(67108864,ip);return Er(tn(m.createWithStatement(xt,Vt),X),Te)}function Wc(){let X=k(),Te=ie();xn(84);let Ue=vn(Ve);xn(59);let St=Zo(3,ip);return Er(tn(m.createCaseClause(Ue,St),X),Te)}function EA(){let X=k();xn(90),xn(59);let Te=Zo(3,ip);return tn(m.createDefaultClause(Te),X)}function Td(){return H()===84?Wc():EA()}function rp(){let X=k();xn(19);let Te=Zo(2,Td);return xn(20),tn(m.createCaseBlock(Te),X)}function jE(){let X=k(),Te=ie();xn(109),xn(21);let Ue=vn(Ve);xn(22);let St=rp();return Er(tn(m.createSwitchStatement(Ue,St),X),Te)}function Lf(){let X=k(),Te=ie();xn(111);let Ue=t.hasPrecedingLineBreak()?void 0:vn(Ve);return Ue===void 0&&(Zt++,Ue=tn(N(""),k())),xl()||$l(Ue),Er(tn(m.createThrowStatement(Ue),X),Te)}function _b(){let X=k(),Te=ie();xn(113);let Ue=fg(!1),St=H()===85?hb():void 0,xt;return(!St||H()===98)&&(xn(98,f.catch_or_finally_expected),xt=fg(!1)),Er(tn(m.createTryStatement(Ue,St,xt),X),Te)}function hb(){let X=k();xn(85);let Te;mo(21)?(Te=Ru(),xn(22)):Te=void 0;let Ue=fg(!1);return tn(m.createCatchClause(Te,Ue),X)}function id(){let X=k(),Te=ie();return xn(89),al(),Er(tn(m.createDebuggerStatement(),X),Te)}function X1(){let X=k(),Te=ie(),Ue,St=H()===21,xt=vn(Ve);return Fe(xt)&&mo(59)?Ue=m.createLabeledStatement(xt,ip()):(xl()||$l(xt),Ue=pe(xt),St&&(Te=!1)),Er(tn(Ue,X),Te)}function Vp(){return Ne(),ru(H())&&!t.hasPrecedingLineBreak()}function SA(){return Ne(),H()===86&&!t.hasPrecedingLineBreak()}function TA(){return Ne(),H()===100&&!t.hasPrecedingLineBreak()}function Bs(){return Ne(),(ru(H())||H()===9||H()===10||H()===11)&&!t.hasPrecedingLineBreak()}function KD(){for(;;)switch(H()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Y1();case 135:return $1();case 120:case 156:return H1();case 144:case 145:return XD();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let X=H();if(Ne(),t.hasPrecedingLineBreak())return!1;if(X===138&&H()===156)return!0;continue;case 162:return Ne(),H()===19||H()===80||H()===95;case 102:return Ne(),H()===11||H()===42||H()===19||ru(H());case 95:let Te=Ne();if(Te===156&&(Te=Pi(Ne)),Te===64||Te===42||Te===19||Te===90||Te===130||Te===60)return!0;continue;case 126:Ne();continue;default:return!1}}function UE(){return Pi(KD)}function TS(){switch(H()){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 UE()||Pi(LE);case 87:case 95:return UE();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 UE()||!Pi(Vp);default:return Zm()}}function IM(){return Ne(),Kr()||H()===19||H()===23}function mu(){return Pi(IM)}function ty(){return j_(!0)}function j_(X){return Ne(),X&&H()===165?!1:(Kr()||H()===19)&&!t.hasPrecedingLineBreak()}function Y1(){return Pi(j_)}function Ip(X){return Ne()===160?j_(X):!1}function $1(){return Pi(Ip)}function ip(){switch(H()){case 27:return q1();case 19:return fg(!1);case 115:return HE(k(),ie(),void 0);case 121:if(mu())return HE(k(),ie(),void 0);break;case 135:if($1())return HE(k(),ie(),void 0);break;case 160:if(Y1())return HE(k(),ie(),void 0);break;case 100:return IS(k(),ie(),void 0);case 86:return DA(k(),ie(),void 0);case 101:return VE();case 92:return HD();case 117:return SS();case 99:return vA();case 88:return Gp(251);case 83:return Gp(252);case 107:return bA();case 118:return Vl();case 109:return jE();case 111:return Lf();case 113:case 85:case 98:return _b();case 89:return id();case 60:return iv();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(UE())return iv();break}return X1()}function Q1(X){return X.kind===138}function iv(){let X=k(),Te=ie(),Ue=Ch(!0);if(gt(Ue,Q1)){let xt=AA(X);if(xt)return xt;for(let Vt of Ue)Vt.flags|=33554432;return Ba(33554432,()=>JD(X,Te,Ue))}else return JD(X,Te,Ue)}function AA(X){return Ba(33554432,()=>{let Te=gc(en,X);if(Te)return sl(Te)})}function JD(X,Te,Ue){switch(H()){case 115:case 121:case 87:case 160:case 135:return HE(X,Te,Ue);case 100:return IS(X,Te,Ue);case 86:return DA(X,Te,Ue);case 120:return dt(X,Te,Ue);case 156:return nn(X,Te,Ue);case 94:return ki(X,Te,Ue);case 162:case 144:case 145:return Qd(X,Te,Ue);case 102:return Vn(X,Te,Ue);case 95:switch(Ne(),H()){case 90:case 64:return Mh(X,Te,Ue);case 130:return Nh(X,Te,Ue);default:return xM(X,Te,Ue)}default:if(Ue){let St=Fs(282,!0,f.Declaration_expected);return HN(St,X),St.modifiers=Ue,St}return}}function qD(){return Ne()===11}function IA(){return Ne(),H()===161||H()===64}function XD(){return Ne(),!t.hasPrecedingLineBreak()&&(xo()||H()===11)}function gb(X,Te){if(H()!==19){if(X&4){qn();return}if(ac()){al();return}}return mb(X,Te)}function xp(){let X=k();if(H()===28)return tn(m.createOmittedExpression(),X);let Te=la(26),Ue=Sr(),St=e_();return tn(m.createBindingElement(Te,void 0,Ue,St),X)}function Dh(){let X=k(),Te=la(26),Ue=Kr(),St=cn(),xt;Ue&&H()!==59?(xt=St,St=void 0):(xn(59),xt=Sr());let Vt=e_();return tn(m.createBindingElement(Te,St,xt,Vt),X)}function YD(){let X=k();xn(19);let Te=vn(()=>Fd(9,Dh));return xn(20),tn(m.createObjectBindingPattern(Te),X)}function xA(){let X=k();xn(23);let Te=vn(()=>Fd(10,xp));return xn(24),tn(m.createArrayBindingPattern(Te),X)}function es(){return H()===19||H()===23||H()===81||Kr()}function Sr(X){return H()===23?xA():H()===19?YD():Ep(X)}function pf(){return Ru(!0)}function Ru(X){let Te=k(),Ue=ie(),St=Sr(f.Private_identifiers_are_not_allowed_in_variable_declarations),xt;X&&St.kind===80&&H()===54&&!t.hasPrecedingLineBreak()&&(xt=ul());let Vt=Zy(),wr=$g(H())?void 0:e_(),Oi=Ce(St,xt,Vt,wr);return Er(tn(Oi,Te),Ue)}function AS(X){let Te=k(),Ue=0;switch(H()){case 115:break;case 121:Ue|=1;break;case 87:Ue|=2;break;case 160:Ue|=4;break;case 135:x.assert($1()),Ue|=6,Ne();break;default:x.fail()}Ne();let St;if(H()===165&&Pi($D))St=Sp();else{let xt=He();si(X),St=Fd(8,X?Ru:pf),si(xt)}return tn(Ge(St,Ue),Te)}function $D(){return tp()&&Ne()===22}function HE(X,Te,Ue){let St=AS(!1);al();let xt=re(Ue,St);return Er(tn(xt,X),Te)}function IS(X,Te,Ue){let St=hn(),xt=x_(Ue);xn(100);let Vt=la(42),wr=xt&2048?km():Ep(),Oi=Vt?1:0,Ci=xt&1024?2:0,mi=cf();xt&32&&Io(!0);let Xi=fn(Oi|Ci),cs=Bt(59,!1),As=gb(Oi|Ci,f.or_expected);Io(St);let $a=m.createFunctionDeclaration(Ue,Vt,wr,mi,Xi,cs,As);return Er(tn($a,X),Te)}function RA(){if(H()===137)return xn(137);if(H()===11&&Pi(Ne)===21)return Ri(()=>{let X=Xr();return X.text==="constructor"?X:void 0})}function mg(X,Te,Ue){return Ri(()=>{if(RA()){let St=cf(),xt=fn(0),Vt=Bt(59,!1),wr=gb(0,f.or_expected),Oi=m.createConstructorDeclaration(Ue,xt,wr);return Oi.typeParameters=St,Oi.type=Vt,Er(tn(Oi,X),Te)}})}function r_(X,Te,Ue,St,xt,Vt,wr,Oi){let Ci=St?1:0,mi=gt(Ue,oP)?2:0,Xi=cf(),cs=fn(Ci|mi),As=Bt(59,!1),$a=gb(Ci|mi,Oi),Of=m.createMethodDeclaration(Ue,St,xt,Vt,Xi,cs,As,$a);return Of.exclamationToken=wr,Er(tn(Of,X),Te)}function ff(X,Te,Ue,St,xt){let Vt=!xt&&!t.hasPrecedingLineBreak()?la(54):void 0,wr=Zy(),Oi=ua(90112,e_);Ws(St,wr,Oi);let Ci=m.createPropertyDeclaration(Ue,St,xt||Vt,wr,Oi);return Er(tn(Ci,X),Te)}function wm(X,Te,Ue){let St=la(42),xt=cn(),Vt=la(58);return St||H()===21||H()===30?r_(X,Te,Ue,St,xt,Vt,void 0,f.or_expected):ff(X,Te,Ue,xt,Vt)}function ny(X,Te,Ue,St,xt){let Vt=cn(),wr=cf(),Oi=fn(0),Ci=Bt(59,!1),mi=gb(xt),Xi=St===177?m.createGetAccessorDeclaration(Ue,Vt,Oi,Ci,mi):m.createSetAccessorDeclaration(Ue,Vt,Oi,mi);return Xi.typeParameters=wr,hp(Xi)&&(Xi.type=Ci),Er(tn(Xi,X),Te)}function _g(){let X;if(H()===60)return!0;for(;Dy(H());){if(X=H(),CV(X))return!0;Ne()}if(H()===42||($()&&(X=H(),Ne()),H()===23))return!0;if(X!==void 0){if(!wu(X)||X===153||X===139)return!0;switch(H()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ac()}}return!1}function hg(X,Te,Ue){bs(126);let St=Z1(),xt=Er(tn(m.createClassStaticBlockDeclaration(St),X),Te);return xt.modifiers=Ue,xt}function Z1(){let X=Tt(),Te=hn();yi(!1),Io(!0);let Ue=fg(!1);return yi(X),Io(Te),Ue}function sc(){if(hn()&&H()===135){let X=k(),Te=Rs(f.Expression_expected);Ne();let Ue=rd(X,Te,!0);return rv(X,Ue)}return sm()}function QD(){let X=k();if(!mo(60))return;let Te=Rt(sc);return tn(m.createDecorator(Te),X)}function kf(X,Te,Ue){let St=k(),xt=H();if(H()===87&&Te){if(!Ri(Di))return}else{if(Ue&&H()===126&&Pi(vb))return;if(X&&H()===126)return;if(!Hc())return}return tn(w(xt),St)}function Ch(X,Te,Ue){let St=k(),xt,Vt,wr,Oi=!1,Ci=!1,mi=!1;if(X&&H()===60)for(;Vt=QD();)xt=Tn(xt,Vt);for(;wr=kf(Oi,Te,Ue);)wr.kind===126&&(Oi=!0),xt=Tn(xt,wr),Ci=!0;if(Ci&&X&&H()===60)for(;Vt=QD();)xt=Tn(xt,Vt),mi=!0;if(mi)for(;wr=kf(Oi,Te,Ue);)wr.kind===126&&(Oi=!0),xt=Tn(xt,wr);return xt&&Lo(xt,St)}function mf(){let X;if(H()===134){let Te=k();Ne();let Ue=tn(w(134),Te);X=Lo([Ue],Te)}return X}function xS(){let X=k(),Te=ie();if(H()===27)return Ne(),Er(tn(m.createSemicolonClassElement(),X),Te);let Ue=Ch(!0,!0,!0);if(H()===126&&Pi(vb))return hg(X,Te,Ue);if(zr(139))return ny(X,Te,Ue,177,0);if(zr(153))return ny(X,Te,Ue,178,0);if(H()===137||H()===11){let St=mg(X,Te,Ue);if(St)return St}if(or())return cr(X,Te,Ue);if(ru(H())||H()===11||H()===9||H()===42||H()===23)if(gt(Ue,Q1)){for(let xt of Ue)xt.flags|=33554432;return Ba(33554432,()=>wm(X,Te,Ue))}else return wm(X,Te,Ue);if(Ue){let St=Fs(80,!0,f.Declaration_expected);return ff(X,Te,Ue,St,void 0)}return x.fail("Should not have attempted to parse class member declaration.")}function KE(){let X=k(),Te=ie(),Ue=Ch(!0);if(H()===86)return _f(X,Te,Ue,231);let St=Fs(282,!0,f.Expression_expected);return HN(St,X),St.modifiers=Ue,St}function ex(){return _f(k(),ie(),void 0,231)}function DA(X,Te,Ue){return _f(X,Te,Ue,263)}function _f(X,Te,Ue,St){let xt=hn();xn(86);let Vt=Ds(),wr=cf();gt(Ue,JI)&&Io(!0);let Oi=DS(),Ci;xn(19)?(Ci=oe(),xn(20)):Ci=Sp(),Io(xt);let mi=St===263?m.createClassDeclaration(Ue,Vt,wr,Oi,Ci):m.createClassExpression(Ue,Vt,wr,Oi,Ci);return Er(tn(mi,X),Te)}function Ds(){return Kr()&&!RS()?ud(Kr()):void 0}function RS(){return H()===119&&Pi(Oc)}function DS(){if(I())return Zo(22,ry)}function ry(){let X=k(),Te=H();x.assert(Te===96||Te===119),Ne();let Ue=Fd(7,yb);return tn(m.createHeritageClause(Te,Ue),X)}function yb(){let X=k(),Te=sm();if(Te.kind===233)return Te;let Ue=JE();return tn(m.createExpressionWithTypeArguments(Te,Ue),X)}function JE(){return H()===30?zu(20,yc,30,32):void 0}function I(){return H()===96||H()===119}function oe(){return Zo(5,xS)}function dt(X,Te,Ue){xn(120);let St=Rs(),xt=cf(),Vt=DS(),wr=kE(),Oi=m.createInterfaceDeclaration(Ue,St,xt,Vt,wr);return Er(tn(Oi,X),Te)}function nn(X,Te,Ue){xn(156),t.hasPrecedingLineBreak()&&dn(f.Line_break_not_permitted_here);let St=Rs(),xt=cf();xn(64);let Vt=H()===141&&Ri(aA)||yc();al();let wr=m.createTypeAliasDeclaration(Ue,St,xt,Vt);return Er(tn(wr,X),Te)}function Mr(){let X=k(),Te=ie(),Ue=cn(),St=vn(e_);return Er(tn(m.createEnumMember(Ue,St),X),Te)}function ki(X,Te,Ue){xn(94);let St=Rs(),xt;xn(19)?(xt=G(()=>Fd(6,Mr)),xn(20)):xt=Sp();let Vt=m.createEnumDeclaration(Ue,St,xt);return Er(tn(Vt,X),Te)}function vi(){let X=k(),Te;return xn(19)?(Te=Zo(1,ip),xn(20)):Te=Sp(),tn(m.createModuleBlock(Te),X)}function Zi(X,Te,Ue,St){let xt=St&32,Vt=St&8?Ac():Rs(),wr=mo(25)?Zi(k(),!1,void 0,8|xt):vi(),Oi=m.createModuleDeclaration(Ue,Vt,wr,St);return Er(tn(Oi,X),Te)}function _a(X,Te,Ue){let St=0,xt;H()===162?(xt=Rs(),St|=2048):(xt=Xr(),xt.text=nd(xt.text));let Vt;H()===19?Vt=vi():al();let wr=m.createModuleDeclaration(Ue,xt,Vt,St);return Er(tn(wr,X),Te)}function Qd(X,Te,Ue){let St=0;if(H()===162)return _a(X,Te,Ue);if(mo(145))St|=32;else if(xn(144),H()===11)return _a(X,Te,Ue);return Zi(X,Te,Ue,St)}function Du(){return H()===149&&Pi(wf)}function wf(){return Ne()===21}function vb(){return Ne()===19}function Si(){return Ne()===44}function Nh(X,Te,Ue){xn(130),xn(145);let St=Rs();al();let xt=m.createNamespaceExportDeclaration(St);return xt.modifiers=Ue,Er(tn(xt,X),Te)}function Vn(X,Te,Ue){xn(102);let St=t.getTokenFullStart(),xt;xo()&&(xt=Rs());let Vt=!1;if(xt?.escapedText==="type"&&(H()!==161||xo()&&Pi(IA))&&(xo()||Eb())&&(Vt=!0,xt=xo()?Rs():void 0),xt&&!CA())return CS(X,Te,Ue,xt,Vt);let wr;(xt||H()===42||H()===19)&&(wr=U_(xt,St,Vt),xn(161));let Oi=NA(),Ci=H(),mi;(Ci===118||Ci===132)&&!t.hasPrecedingLineBreak()&&(mi=bb(Ci)),al();let Xi=m.createImportDeclaration(Ue,wr,Oi,mi);return Er(tn(Xi,X),Te)}function tx(){let X=k(),Te=ru(H())?Ac():wl(11);xn(59);let Ue=md(!0);return tn(m.createImportAttribute(Te,Ue),X)}function bb(X,Te){let Ue=k();Te||xn(X);let St=t.getTokenStart();if(xn(19)){let xt=t.hasPrecedingLineBreak(),Vt=Fd(24,tx,!0);if(!xn(20)){let wr=$s(ze);wr&&wr.code===f._0_expected.code&&Pa(wr,yR(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return tn(m.createImportAttributes(Vt,xt,X),Ue)}else{let xt=Lo([],k(),void 0,!1);return tn(m.createImportAttributes(xt,!1,X),Ue)}}function Eb(){return H()===42||H()===19}function CA(){return H()===28||H()===161}function CS(X,Te,Ue,St,xt){xn(64);let Vt=Ph();al();let wr=m.createImportEqualsDeclaration(Ue,xt,St,Vt);return Er(tn(wr,X),Te)}function U_(X,Te,Ue){let St;return(!X||mo(28))&&(St=H()===42?UB():Sb(275)),tn(m.createImportClause(Ue,X,St),Te)}function Ph(){return Du()?ZD():Q(!1)}function ZD(){let X=k();xn(149),xn(21);let Te=NA();return xn(22),tn(m.createExternalModuleReference(Te),X)}function NA(){if(H()===11){let X=Xr();return X.text=nd(X.text),X}else return Ve()}function UB(){let X=k();xn(42),xn(130);let Te=Rs();return tn(m.createNamespaceImport(Te),X)}function Sb(X){let Te=k(),Ue=X===275?m.createNamedImports(zu(23,c8,19,20)):m.createNamedExports(zu(23,l8,19,20));return tn(Ue,Te)}function l8(){let X=ie();return Er(qE(281),X)}function c8(){return qE(276)}function qE(X){let Te=k(),Ue=wu(H())&&!xo(),St=t.getTokenStart(),xt=t.getTokenEnd(),Vt=!1,wr,Oi=!0,Ci=Ac();if(Ci.escapedText==="type")if(H()===130){let cs=Ac();if(H()===130){let As=Ac();ru(H())?(Vt=!0,wr=cs,Ci=Xi(),Oi=!1):(wr=Ci,Ci=As,Oi=!1)}else ru(H())?(wr=Ci,Oi=!1,Ci=Xi()):(Vt=!0,Ci=cs)}else ru(H())&&(Vt=!0,Ci=Xi());Oi&&H()===130&&(wr=Ci,xn(130),Ci=Xi()),X===276&&Ue&&U(St,xt,f.Identifier_expected);let mi=X===276?m.createImportSpecifier(Vt,wr,Ci):m.createExportSpecifier(Vt,wr,Ci);return tn(mi,Te);function Xi(){return Ue=wu(H())&&!xo(),St=t.getTokenStart(),xt=t.getTokenEnd(),Ac()}}function i_(X){return tn(m.createNamespaceExport(Ac()),X)}function xM(X,Te,Ue){let St=hn();Io(!0);let xt,Vt,wr,Oi=mo(156),Ci=k();mo(42)?(mo(130)&&(xt=i_(Ci)),xn(161),Vt=NA()):(xt=Sb(279),(H()===161||H()===11&&!t.hasPrecedingLineBreak())&&(xn(161),Vt=NA()));let mi=H();Vt&&(mi===118||mi===132)&&!t.hasPrecedingLineBreak()&&(wr=bb(mi)),al(),Io(St);let Xi=m.createExportDeclaration(Ue,Oi,xt,Vt,wr);return Er(tn(Xi,X),Te)}function Mh(X,Te,Ue){let St=hn();Io(!0);let xt;mo(64)?xt=!0:xn(90);let Vt=md(!0);al(),Io(St);let wr=m.createExportAssignment(Ue,xt,Vt);return Er(tn(wr,X),Te)}let nx;(X=>{X[X.SourceElements=0]="SourceElements",X[X.BlockStatements=1]="BlockStatements",X[X.SwitchClauses=2]="SwitchClauses",X[X.SwitchClauseStatements=3]="SwitchClauseStatements",X[X.TypeMembers=4]="TypeMembers",X[X.ClassMembers=5]="ClassMembers",X[X.EnumMembers=6]="EnumMembers",X[X.HeritageClauseElement=7]="HeritageClauseElement",X[X.VariableDeclarations=8]="VariableDeclarations",X[X.ObjectBindingElements=9]="ObjectBindingElements",X[X.ArrayBindingElements=10]="ArrayBindingElements",X[X.ArgumentExpressions=11]="ArgumentExpressions",X[X.ObjectLiteralMembers=12]="ObjectLiteralMembers",X[X.JsxAttributes=13]="JsxAttributes",X[X.JsxChildren=14]="JsxChildren",X[X.ArrayLiteralMembers=15]="ArrayLiteralMembers",X[X.Parameters=16]="Parameters",X[X.JSDocParameters=17]="JSDocParameters",X[X.RestProperties=18]="RestProperties",X[X.TypeParameters=19]="TypeParameters",X[X.TypeArguments=20]="TypeArguments",X[X.TupleElementTypes=21]="TupleElementTypes",X[X.HeritageClauses=22]="HeritageClauses",X[X.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",X[X.ImportAttributes=24]="ImportAttributes",X[X.JSDocComment=25]="JSDocComment",X[X.Count=26]="Count"})(nx||(nx={}));let d8;(X=>{X[X.False=0]="False",X[X.True=1]="True",X[X.Unknown=2]="Unknown"})(d8||(d8={}));let H_;(X=>{function Te(mi,Xi,cs){Li("file.js",mi,99,void 0,1,0),t.setText(mi,Xi,cs),_t=t.scan();let As=Ue(),$a=Ot("file.js",99,1,!1,[],w(1),0,qa),Of=wI(ze,$a);return tt&&($a.jsDocDiagnostics=wI(tt,$a)),So(),As?{jsDocTypeExpression:As,diagnostics:Of}:void 0}X.parseJSDocTypeExpressionForTests=Te;function Ue(mi){let Xi=k(),cs=(mi?mo:xn)(19),As=Ba(16777216,Nm);(!mi||cs)&&ml(20);let $a=m.createJSDocTypeExpression(As);return Ye($a),tn($a,Xi)}X.parseJSDocTypeExpression=Ue;function St(){let mi=k(),Xi=mo(19),cs=k(),As=Q(!1);for(;H()===81;)gi(),It(),As=tn(m.createJSDocMemberName(As,Rs()),cs);Xi&&ml(20);let $a=m.createJSDocNameReference(As);return Ye($a),tn($a,mi)}X.parseJSDocNameReference=St;function xt(mi,Xi,cs){Li("",mi,99,void 0,1,0);let As=Ba(16777216,()=>Ci(Xi,cs)),Of=wI(ze,{languageVariant:0,text:mi});return So(),As?{jsDoc:As,diagnostics:Of}:void 0}X.parseIsolatedJSDocComment=xt;function Vt(mi,Xi,cs){let As=_t,$a=ze.length,Of=Xt,K_=Ba(16777216,()=>Ci(Xi,cs));return ja(K_,mi),Kn&524288&&(tt||(tt=[]),Hr(tt,ze,$a)),_t=As,ze.length=$a,Xt=Of,K_}X.parseJSDocComment=Vt;let wr;(mi=>{mi[mi.BeginningOfLine=0]="BeginningOfLine",mi[mi.SawAsterisk=1]="SawAsterisk",mi[mi.SavingComments=2]="SavingComments",mi[mi.SavingBackticks=3]="SavingBackticks"})(wr||(wr={}));let Oi;(mi=>{mi[mi.Property=1]="Property",mi[mi.Parameter=2]="Parameter",mi[mi.CallbackParameter=4]="CallbackParameter"})(Oi||(Oi={}));function Ci(mi=0,Xi){let cs=De,As=Xi===void 0?cs.length:mi+Xi;if(Xi=As-mi,x.assert(mi>=0),x.assert(mi<=As),x.assert(As<=cs.length),!RH(cs,mi))return;let $a,Of,K_,gg,iy,oy=[],Tb=[],op=en;en|=1<<25;let PA=t.scanRange(mi+3,Xi-5,eC);return en=op,PA;function eC(){let Rn=1,Or,Nr=mi-(cs.lastIndexOf(` `,mi)+1)+4;function Wi(Es){Or||(Or=Nr),oy.push(Es),Nr+=Es.length}for(It();ov(5););ov(4)&&(Rn=0,Nr=0);e:for(;;){switch(H()){case 60:DM(oy),iy||(iy=k()),NM(tC(Nr)),Rn=0,Or=void 0;break;case 4:oy.push(t.getTokenText()),Rn=0,Nr=0;break;case 42:let Es=t.getTokenText();Rn===1?(Rn=2,Wi(Es)):(x.assert(Rn===0),Rn=1,Nr+=Es.length);break;case 5:x.assert(Rn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Zd=t.getTokenText();Or!==void 0&&Nr+Zd.length>Or&&oy.push(Zd.slice(Or-Nr)),Nr+=Zd.length;break;case 1:break e;case 82:Rn=2,Wi(t.getTokenValue());break;case 19:Rn=2;let Lh=t.getTokenFullStart(),Rp=t.getTokenEnd()-1,a_=lc(Rp);if(a_){gg||RM(oy),Tb.push(tn(m.createJSDocText(oy.join("")),gg??mi,Lh)),Tb.push(a_),oy=[],gg=t.getTokenEnd();break}default:Rn=2,Wi(t.getTokenText());break}Rn===2?Dt(!1):It()}let Mi=oy.join("").trimEnd();Tb.length&&Mi.length&&Tb.push(tn(m.createJSDocText(Mi),gg??mi,iy)),Tb.length&&$a&&x.assertIsDefined(iy,"having parsed tags implies that the end of the comment span should be set");let ts=$a&&Lo($a,Of,K_);return tn(m.createJSDocComment(Tb.length?Lo(Tb,mi,iy):Mi.length?Mi:void 0,ts),mi,As)}function RM(Rn){for(;Rn.length&&(Rn[0]===` `||Rn[0]==="\r");)Rn.shift()}function DM(Rn){for(;Rn.length;){let Or=Rn[Rn.length-1].trimEnd();if(Or==="")Rn.pop();else if(Or.lengthZd&&(Wi.push(sy.slice(Zd-Rn)),Es=2),Rn+=sy.length;break;case 19:Es=2;let Dp=t.getTokenFullStart(),iC=t.getTokenEnd()-1,u8=lc(iC);u8?(Mi.push(tn(m.createJSDocText(Wi.join("")),ts??Nr,Dp)),Mi.push(u8),Wi=[],ts=t.getTokenEnd()):Lh(t.getTokenText());break;case 62:Es===3?Es=2:Es=3,Lh(t.getTokenText());break;case 82:Es!==3&&(Es=2),Lh(t.getTokenValue());break;case 42:if(Es===0){Es=1,Rn+=1;break}default:Es!==3&&(Es=2),Lh(t.getTokenText());break}Es===2||Es===3?Rp=Dt(Es===3):Rp=It()}RM(Wi);let a_=Wi.join("").trimEnd();if(Mi.length)return a_.length&&Mi.push(tn(m.createJSDocText(a_),ts??Nr)),Lo(Mi,Nr,t.getTokenEnd());if(a_.length)return a_}function lc(Rn){let Or=Ri(rx);if(!Or)return;It(),ay();let Nr=YE(),Wi=[];for(;H()!==20&&H()!==4&&H()!==1;)Wi.push(t.getTokenText()),It();let Mi=Or==="link"?m.createJSDocLink:Or==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return tn(Mi(Nr,Wi.join("")),Rn,t.getTokenEnd())}function YE(){if(ru(H())){let Rn=k(),Or=Ac();for(;mo(25);)Or=tn(m.createQualifiedName(Or,H()===81?Fs(80,!1):Rs()),Rn);for(;H()===81;)gi(),It(),Or=tn(m.createJSDocMemberName(Or,Rs()),Rn);return Or}}function rx(){if(Ab(),H()===19&&It()===60&&ru(It())){let Rn=t.getTokenValue();if(CM(Rn))return Rn}}function CM(Rn){return Rn==="link"||Rn==="linkcode"||Rn==="linkplain"}function Ib(Rn,Or,Nr,Wi){return tn(m.createJSDocUnknownTag(Or,jp(Rn,k(),Nr,Wi)),Rn)}function NM(Rn){Rn&&($a?$a.push(Rn):($a=[Rn],Of=Rn.pos),K_=Rn.end)}function tr(){return Ab(),H()===19?Ue():void 0}function v(){let Rn=ov(23);Rn&&ay();let Or=ov(62),Nr=rC();return Or&&Ca(62),Rn&&(ay(),la(64)&&Ve(),xn(24)),{name:Nr,isBracketed:Rn}}function C(Rn){switch(Rn.kind){case 151:return!0;case 188:return C(Rn.elementType);default:return If(Rn)&&Fe(Rn.typeName)&&Rn.typeName.escapedText==="Object"&&!Rn.typeArguments}}function F(Rn,Or,Nr,Wi){let Mi=tr(),ts=!Mi;Ab();let{name:Es,isBracketed:Zd}=v(),Lh=Ab();ts&&!Pi(rx)&&(Mi=tr());let Rp=jp(Rn,k(),Wi,Lh),a_=se(Mi,Es,Nr,Wi);a_&&(Mi=a_,ts=!0);let sy=Nr===1?m.createJSDocPropertyTag(Or,Es,Zd,Mi,ts,Rp):m.createJSDocParameterTag(Or,Es,Zd,Mi,ts,Rp);return tn(sy,Rn)}function se(Rn,Or,Nr,Wi){if(Rn&&C(Rn.type)){let Mi=k(),ts,Es;for(;ts=Ri(()=>JB(Nr,Wi,Or));)ts.kind===348||ts.kind===355?Es=Tn(Es,ts):ts.kind===352&&Me(ts.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Es){let Zd=tn(m.createJSDocTypeLiteral(Es,Rn.type.kind===188),Mi);return tn(m.createJSDocTypeExpression(Zd),Mi)}}}function Ke(Rn,Or,Nr,Wi){gt($a,H4)&&U(Or.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Or.escapedText));let Mi=tr();return tn(m.createJSDocReturnTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function jt(Rn,Or,Nr,Wi){gt($a,hP)&&U(Or.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Or.escapedText));let Mi=Ue(!0),ts=Nr!==void 0&&Wi!==void 0?jp(Rn,k(),Nr,Wi):void 0;return tn(m.createJSDocTypeTag(Or,Mi,ts),Rn)}function _r(Rn,Or,Nr,Wi){let ts=H()===23||Pi(()=>It()===60&&ru(It())&&CM(t.getTokenValue()))?void 0:St(),Es=Nr!==void 0&&Wi!==void 0?jp(Rn,k(),Nr,Wi):void 0;return tn(m.createJSDocSeeTag(Or,ts,Es),Rn)}function eo(Rn,Or,Nr,Wi){let Mi=tr(),ts=jp(Rn,k(),Nr,Wi);return tn(m.createJSDocThrowsTag(Or,Mi,ts),Rn)}function Gs(Rn,Or,Nr,Wi){let Mi=k(),ts=o_(),Es=t.getTokenFullStart(),Zd=jp(Rn,Es,Nr,Wi);Zd||(Es=t.getTokenFullStart());let Lh=typeof Zd!="string"?Lo(Eo([tn(ts,Mi,Es)],Zd),Mi):ts.text+Zd;return tn(m.createJSDocAuthorTag(Or,Lh),Rn)}function o_(){let Rn=[],Or=!1,Nr=t.getToken();for(;Nr!==1&&Nr!==4;){if(Nr===30)Or=!0;else{if(Nr===60&&!Or)break;if(Nr===32&&Or){Rn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Rn.push(t.getTokenText()),Nr=It()}return m.createJSDocText(Rn.join(""))}function xb(Rn,Or,Nr,Wi){let Mi=sZ();return tn(m.createJSDocImplementsTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function Om(Rn,Or,Nr,Wi){let Mi=sZ();return tn(m.createJSDocAugmentsTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function $E(Rn,Or,Nr,Wi){let Mi=Ue(!1),ts=Nr!==void 0&&Wi!==void 0?jp(Rn,k(),Nr,Wi):void 0;return tn(m.createJSDocSatisfiesTag(Or,Mi,ts),Rn)}function sZ(){let Rn=mo(19),Or=k(),Nr=zhe();t.setInJSDocType(!0);let Wi=JE();t.setInJSDocType(!1);let Mi=m.createExpressionWithTypeArguments(Nr,Wi),ts=tn(Mi,Or);return Rn&&xn(20),ts}function zhe(){let Rn=k(),Or=ZE();for(;mo(25);){let Nr=ZE();Or=tn(Y(Or,Nr),Rn)}return Or}function QE(Rn,Or,Nr,Wi,Mi){return tn(Or(Nr,jp(Rn,k(),Wi,Mi)),Rn)}function HB(Rn,Or,Nr,Wi){let Mi=Ue(!0);return ay(),tn(m.createJSDocThisTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function lZ(Rn,Or,Nr,Wi){let Mi=Ue(!0);return ay(),tn(m.createJSDocEnumTag(Or,Mi,jp(Rn,k(),Nr,Wi)),Rn)}function PM(Rn,Or,Nr,Wi){let Mi=tr();Ab();let ts=KB();ay();let Es=Ga(Nr),Zd;if(!Mi||C(Mi.type)){let Rp,a_,sy,Dp=!1;for(;(Rp=Ri(()=>uZ(Nr)))&&Rp.kind!==352;)if(Dp=!0,Rp.kind===351)if(a_){let iC=dn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);iC&&Pa(iC,yR(ve,De,0,0,f.The_tag_was_first_specified_here));break}else a_=Rp;else sy=Tn(sy,Rp);if(Dp){let iC=Mi&&Mi.type.kind===188,u8=m.createJSDocTypeLiteral(sy,iC);Mi=a_&&a_.typeExpression&&!C(a_.typeExpression.type)?a_.typeExpression:tn(u8,Rn),Zd=Mi.end}}Zd=Zd||Es!==void 0?k():(ts??Mi??Or).end,Es||(Es=jp(Rn,Zd,Nr,Wi));let Lh=m.createJSDocTypedefTag(Or,Mi,ts,Es);return tn(Lh,Rn,Zd)}function KB(Rn){let Or=t.getTokenStart();if(!ru(H()))return;let Nr=ZE();if(mo(25)){let Wi=KB(!0),Mi=m.createModuleDeclaration(void 0,Nr,Wi,Rn?8:void 0);return tn(Mi,Or)}return Rn&&(Nr.flags|=4096),Nr}function cZ(Rn){let Or=k(),Nr,Wi;for(;Nr=Ri(()=>JB(4,Rn));){if(Nr.kind===352){Me(Nr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Wi=Tn(Wi,Nr)}return Lo(Wi||[],Or)}function dZ(Rn,Or){let Nr=cZ(Or),Wi=Ri(()=>{if(ov(60)){let Mi=tC(Or);if(Mi&&Mi.kind===349)return Mi}});return tn(m.createJSDocSignature(void 0,Nr,Wi),Rn)}function Bhe(Rn,Or,Nr,Wi){let Mi=KB();ay();let ts=Ga(Nr),Es=dZ(Rn,Nr);ts||(ts=jp(Rn,k(),Nr,Wi));let Zd=ts!==void 0?k():Es.end;return tn(m.createJSDocCallbackTag(Or,Es,Mi,ts),Rn,Zd)}function Ghe(Rn,Or,Nr,Wi){ay();let Mi=Ga(Nr),ts=dZ(Rn,Nr);Mi||(Mi=jp(Rn,k(),Nr,Wi));let Es=Mi!==void 0?k():ts.end;return tn(m.createJSDocOverloadTag(Or,ts,Mi),Rn,Es)}function nC(Rn,Or){for(;!Fe(Rn)||!Fe(Or);)if(!Fe(Rn)&&!Fe(Or)&&Rn.right.escapedText===Or.right.escapedText)Rn=Rn.left,Or=Or.left;else return!1;return Rn.escapedText===Or.escapedText}function uZ(Rn){return JB(1,Rn)}function JB(Rn,Or,Nr){let Wi=!0,Mi=!1;for(;;)switch(It()){case 60:if(Wi){let ts=NS(Rn,Or);return ts&&(ts.kind===348||ts.kind===355)&&Nr&&(Fe(ts.name)||!nC(Nr,ts.name.left))?!1:ts}Mi=!1;break;case 4:Wi=!0,Mi=!1;break;case 42:Mi&&(Wi=!1),Mi=!0;break;case 80:Wi=!1;break;case 1:return!1}}function NS(Rn,Or){x.assert(H()===60);let Nr=t.getTokenFullStart();It();let Wi=ZE(),Mi=Ab(),ts;switch(Wi.escapedText){case"type":return Rn===1&&jt(Nr,Wi);case"prop":case"property":ts=1;break;case"arg":case"argument":case"param":ts=6;break;case"template":return Db(Nr,Wi,Or,Mi);case"this":return HB(Nr,Wi,Or,Mi);default:return!1}return Rn&ts?F(Nr,Wi,Rn,Or):!1}function sr(){let Rn=k(),Or=ov(23);Or&&ay();let Nr=Ch(!1,!0),Wi=ZE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Mi;if(Or&&(ay(),xn(64),Mi=Ba(16777216,Nm),xn(24)),!Fl(Wi))return tn(m.createTypeParameterDeclaration(Nr,Wi,void 0,Mi),Rn)}function Rb(){let Rn=k(),Or=[];do{ay();let Nr=sr();Nr!==void 0&&Or.push(Nr),Ab()}while(ov(28));return Lo(Or,Rn)}function Db(Rn,Or,Nr,Wi){let Mi=H()===19?Ue():void 0,ts=Rb();return tn(m.createJSDocTemplateTag(Or,Mi,ts,jp(Rn,k(),Nr,Wi)),Rn)}function ov(Rn){return H()===Rn?(It(),!0):!1}function rC(){let Rn=ZE();for(mo(23)&&xn(24);mo(25);){let Or=ZE();mo(23)&&xn(24),Rn=rt(Rn,Or)}return Rn}function ZE(Rn){if(!ru(H()))return Fs(80,!Rn,Rn||f.Identifier_expected);Zt++;let Or=t.getTokenStart(),Nr=t.getTokenEnd(),Wi=H(),Mi=nd(t.getTokenValue()),ts=tn(N(Mi,Wi),Or,Nr);return It(),ts}}})(H_=e.JSDocParser||(e.JSDocParser={}))})(EE||(EE={})),(e=>{function t(S,A,N,D){if(D=D||x.shouldAssert(2),m(S,A,N,D),Gne(N))return S;if(S.statements.length===0)return EE.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let w=S;x.assert(!w.hasBeenIncrementallyParsed),w.hasBeenIncrementallyParsed=!0,EE.fixupParentReferences(w);let j=S.text,K=y(S),Y=p(S,N);m(S,A,Y,D),x.assert(Y.span.start<=N.span.start),x.assert(Jl(Y.span)===Jl(N.span)),x.assert(Jl(QC(Y))===Jl(QC(N)));let B=QC(Y).length-Y.span.length;d(w,Y.span.start,Jl(Y.span),Jl(QC(Y)),B,j,A,D);let ce=EE.parseSourceFile(S.fileName,A,S.languageVersion,K,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return ce.commentDirectives=r(S.commentDirectives,ce.commentDirectives,Y.span.start,Jl(Y.span),B,j,A,D),ce.impliedNodeFormat=S.impliedNodeFormat,ce}e.updateSourceFile=t;function r(S,A,N,D,w,j,K,Y){if(!S)return A;let B,ce=!1;for(let Z of S){let{range:me,type:ge}=Z;if(me.endD){z();let q={range:{pos:me.pos+w,end:me.end+w},type:ge};B=Tn(B,q),Y&&x.assert(j.substring(me.pos,me.end)===K.substring(q.range.pos,q.range.end))}}return z(),B;function z(){ce||(ce=!0,B?A&&B.push(...A):B=A)}}function i(S,A,N,D,w,j){A?Y(S):K(S);return;function K(B){let ce="";if(j&&o(B)&&(ce=D.substring(B.pos,B.end)),B._children&&(B._children=void 0),fh(B,B.pos+N,B.end+N),j&&o(B)&&x.assert(ce===w.substring(B.pos,B.end)),Go(B,K,Y),kp(B))for(let z of B.jsDoc)K(z);l(B,j)}function Y(B){B._children=void 0,fh(B,B.pos+N,B.end+N);for(let ce of B)K(ce)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,N,D,w){x.assert(S.end>=A,"Adjusting an element that was entirely before the change range"),x.assert(S.pos<=N,"Adjusting an element that was entirely after the change range"),x.assert(S.pos<=S.end);let j=Math.min(S.pos,D),K=S.end>=N?S.end+w:Math.min(S.end,D);x.assert(j<=K),S.parent&&(x.assertGreaterThanOrEqual(j,S.parent.pos),x.assertLessThanOrEqual(K,S.parent.end)),fh(S,j,K)}function l(S,A){if(A){let N=S.pos,D=w=>{x.assert(w.pos>=N),N=w.end};if(kp(S))for(let w of S.jsDoc)D(w);Go(S,D),x.assert(N<=S.end)}}function d(S,A,N,D,w,j,K,Y){B(S);return;function B(z){if(x.assert(z.pos<=z.end),z.pos>N){i(z,!1,w,j,K,Y);return}let Z=z.end;if(Z>=A){if(z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w),Go(z,B,ce),kp(z))for(let me of z.jsDoc)B(me);l(z,Y);return}x.assert(ZN){i(z,!0,w,j,K,Y);return}let Z=z.end;if(Z>=A){z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w);for(let me of z)B(me);return}x.assert(Z0&&K<=1;K++){let Y=h(S,D);x.assert(Y.pos<=D);let B=Y.pos;D=Math.max(0,B-1)}let w=dc(D,Jl(A.span)),j=A.newLength+(A.span.start-D);return qL(w,j)}function h(S,A){let N=S,D;if(Go(S,j),D){let K=w(D);K.pos>N.pos&&(N=K)}return N;function w(K){for(;;){let Y=Zj(K);if(Y)K=Y;else return K}}function j(K){if(!Fl(K))if(K.pos<=A){if(K.pos>=N.pos&&(N=K),AA),!0}}function m(S,A,N,D){let w=S.text;if(N&&(x.assert(w.length-N.span.length+N.newLength===A.length),D||x.shouldAssert(3))){let j=w.substr(0,N.span.start),K=A.substr(0,N.span.start);x.assert(j===K);let Y=w.substring(Jl(N.span),w.length),B=A.substring(Jl(QC(N)),A.length);x.assert(Y===B)}}function y(S){let A=S.statements,N=0;x.assert(N=ce.pos&&K=ce.pos&&K{S[S.Value=-1]="Value"})(E||(E={}))})(LH||(LH={})),kH=new Map,wTe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,OTe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function r3(e){let t=new Map,r=new Map;return gn(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function VR(){return bAe||(bAe=r3(og))}function qae(e){return WTe(e,jl)}function WTe(e,t){let r=Wo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function i3(e,t,r){return _Ae(e,(t??"").trim(),r)}function Xae(e,t="",r){if(t=t.trim(),ao(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return c1(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return to(i,o=>c1(e.element,parseInt(o),r));case"string":return to(i,o=>c1(e.element,o||"",r));case"boolean":case"object":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return to(i,o=>i3(e.element,o,r))}}function FTe(e){return e.name}function Yae(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return SE(o,i,t.alternateMode.diagnostic,e);let l=GC(e,t.optionDeclarations,FTe);return l?SE(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):SE(o,i,t.unknownOptionDiagnostic,r||e)}function wH(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;mhd.readFile(S)));if(!No(m)){l.push(m);return}let y=[],E=0;for(;;){for(;E=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E32;)E++;y.push(m.substring(S,E))}}d(y)}}function zTe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=c1(i,!1,s),t++):(l==="true"&&t++,s.push(jl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(jl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!ao(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(jl(r.optionTypeMismatchDiagnostic,i.name,zH(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=c1(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=c1(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=c1(i,e[t]||"",s),t++;break;case"list":let d=Xae(i,e[t],s);o[i.name]=d||[],d&&t++;break;case"listOrElement":x.fail("listOrElement not supported here");break;default:o[i.name]=i3(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function BTe(e,t){return wH(lw,e,t)}function OH(e,t){return $ae(VR,e,t)}function $ae(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function GTe(){return SAe||(SAe=r3(p3))}function VTe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=wH(AAe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(jl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function jTe(e,...t){return na(jl(e,...t).messageText,No)}function Qk(e,t,r,i,o,s){let l=EP(e,h=>r.readFile(h));if(!No(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=$k(e,l),p=r.getCurrentDirectory();return d.path=tl(e,p,Nd(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,tw(d,r,ho(oi(e),p),t,ho(e,p),void 0,s,i,o)}function Zk(e,t){let r=EP(e,t);return No(r)?WH(e,r):{config:{},error:r}}function WH(e,t){let r=$k(e,t);return{config:qTe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Qae(e,t){let r=EP(e,t);return No(r)?$k(e,r):{fileName:e,parseDiagnostics:[r]}}function EP(e,t){let r;try{r=t(e)}catch(i){return jl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?jl(f.Cannot_read_file_0,e):r}function FH(e){return _0(e,FTe)}function UTe(){return IAe||(IAe=r3(jR))}function HTe(){return xAe||(xAe=FH(og))}function KTe(){return RAe||(RAe=FH(jR))}function JTe(){return DAe||(DAe=FH(sw))}function R5e(){return fse===void 0&&(fse={name:void 0,type:"object",elementOptions:FH([dse,use,pse,cw,{name:"references",type:"list",element:{name:"references",type:"object"},category:f.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:f.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},rw])}),fse}function qTe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(Kf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,nc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),uu(o)){let s=Vr(o.elements,Ma);if(s)return ew(e,s,t,!0,r)}return{}}return ew(e,o,t,!0,r)}function Zae(e,t){var r;return ew(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function ew(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var y;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(Kf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(Kf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(S.name)||r.push(Kf(e,S.name,f.String_literal_with_double_quotes_expected));let A=h2(S.name)?void 0:Ux(S.name),N=A&&Vi(A),D=N?(y=m?.elementOptions)==null?void 0:y.get(N):void 0,w=d(S.initializer,D);typeof N<"u"&&(i&&(E[N]=w),o?.onPropertySet(N,w,S,m,D))}return E}function l(h,m){if(!i){h.forEach(y=>d(y,m));return}return jr(h.map(y=>d(y,m)),y=>y!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(Kf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(Kf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,zH(m))):r.push(Kf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return Da(h)&&JF(h,e)}}function zH(e){return e.type==="listOrElement"?`${zH(e.element)} or Array`:e.type==="list"?"Array":No(e.type)?e.type:"string"}function XTe(e,t){if(e){if(nw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return To(t);if(e.type==="listOrElement")return To(t)||XTe(e.element,t);let r=No(e.type)?e.type:"string";return typeof t===r}return!1}function YTe(e,t,r){var i,o,s;let l=Nd(r.useCaseSensitiveFileNames),d=mn(jr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C5e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Sy),A=>WL(ho(t,r.getCurrentDirectory()),ho(A,r.getCurrentDirectory()),l)),p={configFilePath:ho(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=a3(e.options,p),m=e.watchOptions&&N5e(e.watchOptions),y={compilerOptions:{...o3(h),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:m&&o3(m),references:mn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:"",originalPath:void 0})),files:Nn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D5e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in fc)if(!E.has(A)&>(fc[A].dependencies,N=>E.has(N))){let N=fc[A].computeValue(e.options),D=fc[A].computeValue({});N!==D&&(S[A]=fc[A].computeValue(e.options))}return bx(y.compilerOptions,o3(a3(S,p))),y}function o3(e){return{...Wo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D5e(e){if(Nn(e)){if(Nn(e)!==1)return e;if(e[0]!==_3)return e}}function C5e(e,t,r,i){if(!t)return Sy;let o=M6(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&zv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&zv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Sy}function $Te(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return $Te(e.element);default:return e.type}}function BH(e,t){return Gc(t,(r,i)=>{if(r===e)return i})}function a3(e,t){return QTe(e,VR(),t)}function N5e(e){return QTe(e,UTe())}function QTe(e,{optionsNameMap:t},r){let i=new Map,o=r&&Nd(r.useCaseSensitiveFileNames);for(let s in e)if(Ss(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!=="listOrElement");let p=$Te(d);p?d.type==="list"?i.set(s,l.map(h=>BH(h,p))):i.set(s,BH(l,p)):r&&d.isFilePath?i.set(s,WL(r.configFilePath,ho(l,oi(r.configFilePath)),o)):i.set(s,l)}}return i}function ZTe(e,t){let r=eAe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){let s=[],l=i(2);return HH.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=ase(d);p!==h?s.push(`${l}${d.name}: ${p}`):Ss(f3,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function eAe(e){let t=gW(e,f3);return a3(t)}function tAe(e,t,r){let i=eAe(e);return l();function o(d){return Array(d+1).join(" ")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of og)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${wo(A)} */`});for(let N of S){let D;i.has(N.name)?D=`"${N.name}": ${JSON.stringify(i.get(N.name))}${(h+=1)===i.size?"":","}`:D=`// "${N.name}": ${JSON.stringify(ase(N))},`,m.push({value:D,description:`/* ${N.description&&wo(N.description)||N.name} */`}),p=Math.max(D.length,p)}});let y=o(2),E=[];E.push("{"),E.push(`${y}"compilerOptions": {`),E.push(`${y}${y}/* ${wo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push("");for(let S of m){let{value:A,description:N=""}=S;E.push(A&&`${y}${y}${A}${N&&o(p-A.length+2)+N}`)}if(t.length){E.push(`${y}},`),E.push(`${y}"files": [`);for(let S=0;Stypeof fe=="object","object"),me=Y(B("files"));if(me){let fe=Z==="no-prop"||To(Z)&&Z.length===0,ne=Ss(E,"extends");if(me.length===0&&fe&&!ne)if(t){let he=l||"tsconfig.json",Ce=f.The_files_list_in_config_file_0_is_empty,Ge=E2(t,"files",Ae=>Ae.initializer),ve=SE(t,Ge,Ce,he);m.push(ve)}else z(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ge=Y(B("include")),q=B("exclude"),J=!1,re=Y(q);if(q==="no-prop"&&E.compilerOptions){let fe=E.compilerOptions.outDir,ne=E.compilerOptions.declarationDir;(fe||ne)&&(re=[fe,ne].filter(he=>!!he))}me===void 0&&ge===void 0&&(ge=[_3],J=!0);let pe,xe;return ge&&(pe=vAe(ge,m,!0,t,"include")),re&&(xe=vAe(re,m,!1,t,"exclude")),{filesSpecs:me,includeSpecs:ge,excludeSpecs:re,validatedFilesSpec:jr(me,No),validatedIncludeSpecs:pe,validatedExcludeSpecs:xe,pathPatterns:void 0,isDefaultIncludeSpec:J}}function j(Z){let me=TP(N,Z,S,r,p);return aAe(me,SP(E),d)&&m.push(oAe(N,l)),me}function K(Z){let me,ge=ce("references",q=>typeof q=="object","object");if(To(ge))for(let q of ge)typeof q.path!="string"?z(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(me||(me=[])).push({path:ho(q.path,Z),originalPath:q.path,prepend:q.prepend,circular:q.circular});return me}function Y(Z){return To(Z)?Z:void 0}function B(Z){return ce(Z,No,"string")}function ce(Z,me,ge){if(Ss(E,Z)&&!nw(E[Z]))if(To(E[Z])){let q=E[Z];return!t&&!oo(q,me)&&m.push(jl(f.Compiler_option_0_requires_a_value_of_type_1,Z,ge)),q}else return z(f.Compiler_option_0_requires_a_value_of_type_1,Z,"Array"),"not-array";return"no-prop"}function z(Z,...me){t||m.push(jl(Z,...me))}}function M5e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function oAe({includeSpecs:e,excludeSpecs:t},r){return jl(f.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 aAe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function SP(e){return!Ss(e,"files")&&!Ss(e,"references")}function s3(e,t,r,i,o){let s=i.length;return aAe(e,o)?i.push(oAe(r,t)):CG(i,l=>!M5e(l)),s!==i.length}function L5e(e){return!!e.options}function sAe(e,t,r,i,o,s,l,d){var p;i=Pd(i);let h=ho(o||"",i);if(s.includes(h))return l.push(jl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||Zae(t,l)};let m=e?k5e(e,r,i,o,l):w5e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};No(m.extendedConfigPath)?y(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>y(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=Wo(E.extendedSourceFiles.keys())),m.options=bx(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?bx(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function y(E,S){let A=O5e(t,S,r,s,l,d,E);if(A&&L5e(A)){let N=A.raw,D,w=j=>{N[j]&&(E[j]=mn(N[j],K=>cp(K)?K:Yr(D||(D=JC(oi(S),i,Nd(r.useCaseSensitiveFileNames))),K)))};w("include"),w("exclude"),w("files"),N.compileOnSave!==void 0&&(E.compileOnSave=N.compileOnSave),bx(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?bx({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k5e(e,t,r,i,o){Ss(e,"excludes")&&o.push(jl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=fAe(e.compilerOptions,r,o,i),l=mAe(e.typeAcquisition,r,o,i),d=F5e(e.watchOptions,r,o);e.compileOnSave=W5e(e,r,o);let p=e.extends||e.extends===""?lAe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function lAe(e,t,r,i,o,s,l,d){let p,h=i?rAe(i,r):r;if(No(e))p=cAe(e,t,h,o,l,d);else if(To(e)){p=[];for(let m=0;mj.name===S)&&(h=Tn(h,N.name))))}}function cAe(e,t,r,i,o,s){if(e=Pd(e),cp(e)||ao(e,"./")||ao(e,"../")){let d=ho(e,r);if(!t.fileExists(d)&&!El(d,".json")&&(d=`${d}.json`,!t.fileExists(d))){i.push(SE(s,o,f.File_0_not_found,e));return}return d}let l=Tse(e,Yr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(SE(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(SE(s,o,f.File_0_not_found,e))}function O5e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:ih(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=Qae(t,y=>r.readFile(y)),h.parseDiagnostics.length||(m=sAe(void 0,h,r,oi(t),nc(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let y of h.extendedSourceFiles)l.extendedSourceFiles.add(y);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W5e(e,t,r){if(!Ss(e,rw.name))return!1;let i=VT(rw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function dAe(e,t,r){let i=[];return{options:fAe(e,t,i,r),errors:i}}function uAe(e,t,r){let i=[];return{options:mAe(e,t,i,r),errors:i}}function pAe(e){return e&&nc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function fAe(e,t,r,i){let o=pAe(i);return ese(HTe(),e,t,o,lw,r),i&&(o.configFilePath=Pd(i)),o}function jH(e){return{enable:!!e&&nc(e)==="jsconfig.json",include:[],exclude:[]}}function mAe(e,t,r,i){let o=jH(i);return ese(JTe(),e,t,o,cse,r),o}function F5e(e,t,r){return ese(KTe(),e,t,void 0,m3,r)}function ese(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=VT(d,t[l],r,s):s.push(Yae(l,o))}return i}}function SE(e,t,r,...i){return e&&t?Kf(e,t,r,...i):jl(r,...i)}function VT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(SE(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(XTe(e,t)){let d=e.type;if(d==="list"&&To(t))return hAe(e,t,r,i,o,s,l);if(d==="listOrElement")return To(t)?hAe(e,t,r,i,o,s,l):VT(e.element,t,r,i,o,s,l);if(!No(e.type))return _Ae(e,t,i,s,l);let p=c1(e,t,i,s,l);return nw(p)?p:z5e(e,r,p)}else i.push(SE(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,zH(e)))}function z5e(e,t,r){return e.isFilePath&&(r=ho(r,t),r===""&&(r=".")),r}function c1(e,t,r,i,o){var s;if(nw(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(SE(o,i,...l))}function _Ae(e,t,r,i,o){if(nw(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return c1(e,l,r,i,o);r.push(WTe(e,(d,...p)=>SE(o,i,d,...p)))}function hAe(e,t,r,i,o,s,l){return jr(mn(t,(d,p)=>VT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function TP(e,t,r,i,o=Xe){t=ma(t);let s=Nd(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,E=BN(r,o),S=ak(r,E);if(h)for(let w of h){let j=ho(w,t);l.set(s(j),j)}let A;if(m&&m.length>0)for(let w of i.readDirectory(t,pm(S),y,m,void 0)){if(Sl(w,".json")){if(!A){let Y=m.filter(ce=>El(ce,".json")),B=mn(N6(Y,t,"files"),ce=>`^${ce}$`);A=B?B.map(ce=>zv(ce,i.useCaseSensitiveFileNames)):Xe}if(Kl(A,Y=>Y.test(w))!==-1){let Y=s(w);!l.has(Y)&&!p.has(Y)&&p.set(Y,w)}continue}if(V5e(w,l,d,E,s))continue;j5e(w,d,E,s);let j=s(w);!l.has(j)&&!d.has(j)&&d.set(j,w)}let N=Wo(l.values()),D=Wo(d.values());return N.concat(D,Wo(p.values()))}function tse(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!Nn(l)||!Nn(d))return!1;r=ma(r);let p=Nd(i);if(s){for(let h of s)if(p(ho(h,r))===e)return!1}return yAe(e,d,i,o,r)}function gAe(e){let t=ao(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(El(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function l3(e,t,r,i){return yAe(e,jr(t,o=>!gAe(o)),r,i)}function yAe(e,t,r,i,o){let s=zN(t,Yr(ma(i),o),"exclude"),l=s&&zv(s,r);return l?l.test(e)?!0:!mI(e)&&l.test(Bc(e)):!1}function vAe(e,t,r,i,o){return e.filter(l=>{if(!No(l))return!1;let d=nse(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=wF(i,o,d);return SE(i,p,l,d)}}function nse(e,t){if(x.assert(typeof e=="string"),t&&CAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(gAe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B5e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=zN(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=ma(Yr(r,h));if(s&&s.test(m))continue;let y=G5e(m,i);if(y){let{key:E,path:S,flags:A}=y,N=d.get(E),D=N!==void 0?l[N]:void 0;(D===void 0||Dbc(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(Sl(e,l)&&(l!==".ts"||!Sl(e,".d.ts")))return!1;let d=o(pE(e,l));if(t.has(d)||r.has(d)){if(l===".d.ts"&&(Sl(e,".js")||Sl(e,".jsx")))continue;return!0}}return!1}function j5e(e,t,r,i){let o=gn(r,s=>bc(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(Sl(e,l))return;let d=i(pE(e,l));t.delete(d)}}function ise(e){let t={};for(let r in e)if(Ss(e,r)){let i=OH(r);i!==void 0&&(t[r]=ose(e[r],i))}return t}function ose(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(!To(e))return ose(e,t.element);case"list":let r=t.element;return To(e)?to(e,i=>ose(i,r)):"";default:return Gc(t.type,(i,o)=>{if(i===e)return o})}}function ase(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return ase(e.element);case"object":return{};default:let r=mW(e.type.keys());return r!==void 0?r:x.fail("Expected 'option.type' to have entries.")}}var rw,sse,AP,lse,iw,c3,jR,ow,aw,UH,HH,og,KH,JH,qH,d3,u3,XH,YH,$H,p3,sw,bAe,EAe,f3,lw,SAe,TAe,AAe,cse,IAe,m3,xAe,RAe,DAe,cw,dse,use,pse,fse,_3,CAe,NAe,U5e=bt({"src/compiler/commandLineParser.ts"(){"use strict";ea(),rw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},sse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),AP=new Map(kC(sse.entries(),([e,t])=>[""+t,e])),lse=[["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"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.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"],["es2016.intl","lib.es2016.intl.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.esnext.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.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],iw=lse.map(e=>e[0]),c3=new Map(lse),jR=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.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:f.Watch_and_Build_Modes,description:f.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:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:f.Watch_and_Build_Modes,description:f.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:nse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:nse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],ow=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.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:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],aw={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,deprecatedKeys:new Set(["es3"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},UH={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,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},HH=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.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:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},aw,UH,{name:"lib",type:"list",element:{name:"lib",type:c3,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.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,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:sse,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.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:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.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:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:f.Interop_Constraints,description:f.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:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.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:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.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:f.Type_Checking,description:f.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"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.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:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.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:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:f.Interop_Constraints,description:f.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:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.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:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:f.Language_and_Environment,description:f.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:f.Language_and_Environment,description:f.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:f.Language_and_Environment,description:f.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:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:f.Modules,description:f.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:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:f.Backwards_Compatibility,description:f.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:f.Emit,description:f.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:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.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:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:f.Editor_Support,description:f.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:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.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:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:f.Backwards_Compatibility,description:f.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:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.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}],og=[...ow,...HH],KH=og.filter(e=>!!e.affectsSemanticDiagnostics),JH=og.filter(e=>!!e.affectsEmit),qH=og.filter(e=>!!e.affectsDeclarationPath),d3=og.filter(e=>!!e.affectsModuleResolution),u3=og.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),XH=og.filter(e=>!!e.affectsProgramStructure),YH=og.filter(e=>Ss(e,"transpileOptionValue")),$H=[{name:"verbose",shortName:"v",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],p3=[...ow,...$H],sw=[{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}],EAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:GTe},f3={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},lw={alternateMode:EAe,getOptionsNameMap:VR,optionDeclarations:og,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},TAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:VR},AAe={alternateMode:TAe,getOptionsNameMap:GTe,optionDeclarations:p3,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},cse={optionDeclarations:sw,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},m3={getOptionsNameMap:UTe,optionDeclarations:jR,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},cw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},dse={name:"compilerOptions",type:"object",elementOptions:HTe(),extraKeyDiagnostics:lw},use={name:"watchOptions",type:"object",elementOptions:KTe(),extraKeyDiagnostics:m3},pse={name:"typeAcquisition",type:"object",elementOptions:JTe(),extraKeyDiagnostics:cse},_3="**/*",CAe=/(^|\/)\*\*\/?$/,NAe=/^[^*?]*(?=\/[^/]*[*?])/}});function vo(e,t,...r){e.trace(nU(t,...r))}function Gg(e,t){return!!e.traceResolution&&t.trace!==void 0}function d1(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+nl.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function QH(e){return d1(void 0,e)}function PAe(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function h3(e){let 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 H5e(e){let t=[];return e&1&&t.push(...yk),e&2&&t.push(...AR),e&4&&t.push(...gk),e&8&&t.push(".json"),t}function mse(e){if(e)return x.assert(O6(e.extension)),{fileName:e.path,packageId:e.packageId}}function MAe(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Yc(e)){let{resolvedFileName:h,originalPath:m}=wAe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return LAe(t,r,i,o,s,l.resultFromCache,d,p)}function LAe(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:_se(s.failedLookupLocations,r),affectingLocations:_se(s.affectingLocations,i),resolutionDiagnostics:_se(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=UR(s.failedLookupLocations,r),s.affectingLocations=UR(s.affectingLocations,i),s.resolutionDiagnostics=UR(s.resolutionDiagnostics,o),s):{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:IP(r),affectingLocations:IP(i),resolutionDiagnostics:IP(o),alternateResult:d}}function IP(e){return e.length?e:void 0}function UR(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function _se(e,t){return e?.length?t.length?[...e,...t]:e.slice():IP(t)}function kAe(e,t,r,i){if(!Ss(e,t)){i.traceEnabled&&vo(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&vo(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function ZH(e,t,r,i){let o=kAe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&vo(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=ma(Yr(r,o));return i.traceEnabled&&vo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function K5e(e,t,r){return ZH(e,"typings",t,r)||ZH(e,"types",t,r)}function J5e(e,t,r){return ZH(e,"tsconfig",t,r)}function q5e(e,t,r){return ZH(e,"main",t,r)}function X5e(e,t){let r=kAe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&vo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y5e(e,t){let r=X5e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)Ss(r,l)&&!xL.tryParse(l)&&vo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=g3(r);if(!i){t.traceEnabled&&vo(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,g_);return}let{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&vo(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function g3(e){Cse||(Cse=new fm(Jp));for(let t in e){if(!Ss(e,t))continue;let r=xL.tryParse(t);if(r!==void 0&&r.test(Cse))return{version:t,paths:e[t]}}}function xP(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=oi(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $5e(r)}function $5e(e){let t;return hm(ma(e),r=>{let i=Yr(r,rIe);(t??(t=[])).push(i)}),t}function Q5e(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Rg(e,t,!i)===0}function wAe(e,t,r){let i=dGe(e,t,r),o=Q5e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function OAe(e,t,r){let i=El(e,"/node_modules/@types")||El(e,"/node_modules/@types/")?eIe(t,r):t;return Yr(e,i)}function hse(e,t,r,i,o,s,l){x.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.");let d=Gg(r,i);o&&(r=o.commandLine.options);let p=t?oi(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Yc(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(vo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&vo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),vo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),B(h)),h;let m=xP(r,i);d&&(t===void 0?m===void 0?vo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):vo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?vo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):vo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&vo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let y=[],E=[],S=gse(r);l!==void 0&&(S|=30);let A=du(r);l===99&&3<=A&&A<=99&&(S|=32);let N=S&8?$v(r,l):[],D=[],w={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:y,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:N,requestContainingDirectory:p,reportDiagnostic:Z=>void D.push(Z),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},j=ce(),K=!0;j||(j=z(),K=!1);let Y;if(j){let{fileName:Z,packageId:me}=j,ge=Z,q;r.preserveSymlinks||({resolvedFileName:ge,originalPath:q}=wAe(Z,i,d)),Y={primary:K,resolvedFileName:ge,originalPath:q,packageId:me,isExternalLibraryImport:TE(Z)}}return h={resolvedTypeReferenceDirective:Y,failedLookupLocations:IP(y),affectingLocations:IP(E),resolutionDiagnostics:IP(D)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Yc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&B(h),h;function B(Z){var me;(me=Z.resolvedTypeReferenceDirective)!=null&&me.resolvedFileName?Z.resolvedTypeReferenceDirective.packageId?vo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,Z.resolvedTypeReferenceDirective.resolvedFileName,Lv(Z.resolvedTypeReferenceDirective.packageId),Z.resolvedTypeReferenceDirective.primary):vo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,Z.resolvedTypeReferenceDirective.resolvedFileName,Z.resolvedTypeReferenceDirective.primary):vo(i,f.Type_reference_directive_0_was_not_resolved,e)}function ce(){if(m&&m.length)return d&&vo(i,f.Resolving_with_primary_search_path_0,m.join(", ")),Wl(m,Z=>{let me=OAe(Z,e,w),ge=Um(Z,i);if(!ge&&d&&vo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,Z),r.typeRoots){let q=JR(4,me,!ge,w);if(q){let J=uw(q.path),re=J?Q0(J,!1,w):void 0;return mse(d1(re,q))}}return mse(Ise(4,me,!ge,w))});d&&vo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function z(){let Z=t&&oi(t);if(Z!==void 0){let me;if(!r.typeRoots||!El(t,tD))if(d&&vo(i,f.Looking_up_in_node_modules_folder_initial_location_0,Z),Yc(e)){let{path:ge}=VAe(Z,e);me=iK(4,ge,!1,w,!0)}else{let ge=YAe(4,e,Z,w,void 0,void 0);me=ge&&ge.value}else d&&vo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return mse(me)}else d&&vo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function gse(e){let t=0;switch(du(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 $v(e,t){let r=du(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),Eo(i,e.customConditions)}function eK(e,t,r,i,o){let s=pw(o?.getPackageJsonInfoCache(),i,r);return hm(t,l=>{if(nc(l)!=="node_modules"){let d=Yr(l,"node_modules"),p=Yr(d,e);return Q0(p,!1,s)}})}function y3(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=xP(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=ma(s),d=Yr(o,l,"package.json");if(!(t.fileExists(d)&&LN(d,t).typings===null)){let h=nc(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function v3(e){return!!e?.contents}function yse(e){return!!e&&!e.contents}function vse(e){var t;if(e===null||typeof e!="object")return""+e;if(To(e))return`[${(t=e.map(i=>vse(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)Ss(e,i)&&(r+=`${i}: ${vse(e[i])}`);return r+"}"}function tK(e,t){return t.map(r=>vse(x6(e,r))).join("|")+`|${e.pathsBasePath}`}function nK(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(y){return y?p(y.commandLine.options,!1):o}function l(y){return y?p(y.commandLine.options,!0):o}function d(y){e!==y&&(e?o=p(y,!0):r.set(y,o),e=y)}function p(y,E){let S=r.get(y);if(S)return S;let A=m(y);if(S=i.get(A),!S){if(e){let N=m(e);N===A?S=o:i.has(N)||i.set(N,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(y,S),S}function h(){let y=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),r.set(e,o))}function m(y){let E=t.get(y);return E||t.set(y,E=tK(y,d3)),E}}function Z5e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(tl(d,e,t))}function o(d,p){(r||(r=new Map)).set(tl(d,e,t),p)}function s(){r=void 0}function l(){return r}}function WAe(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function eGe(e,t,r,i){let o=nK(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let y=tl(h,e,t);return WAe(o,m,y,()=>u1())}function p(h,m,y,E){var S,A;let N=tl(y,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(N))==null?void 0:A.get(h,m)}}function RP(e,t){return t===void 0?e:`${t}|${e}`}function u1(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=RP(o,s);return t.set(l,[o,s]),l}}function tGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function nGe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function rGe(e,t,r,i,o){let s=nK(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(y){s.update(y)}function p(y,E,S,A){var N,D;return x.assert(!Yc(y)),(D=(N=s.getMapOfCacheRedirects(A))==null?void 0:N.get(RP(y,E)))==null?void 0:D.get(S)}function h(y,E,S){return x.assert(!Yc(y)),WAe(s,S,RP(y,E),m)}function m(){let y=new Map;return{get:E,set:S};function E(N){return y.get(tl(N,e,t))}function S(N,D){let w=tl(N,e,t);if(y.has(w))return;y.set(w,D);let j=i(D),K=j&&A(w,j),Y=w;for(;Y!==K;){let B=oi(Y);if(B===Y||y.has(B))break;y.set(B,D),Y=B}}function A(N,D){let w=tl(oi(D),e,t),j=0,K=Math.min(N.length,w.length);for(;ji,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(y){l.update(y),d.update(y)}}function HR(e,t,r,i,o){let s=FAe(e,t,r,i,tGe,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function b3(e,t,r,i,o){return FAe(e,t,r,i,nGe,o)}function rK(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function E3(e,t,r,i,o){return KR(e,t,rK(r),i,o)}function zAe(e,t,r,i){let o=oi(t);return r.getFromDirectoryCache(e,i,o,void 0)}function KR(e,t,r,i,o,s,l){var d,p,h;let m=Gg(r,i);s&&(r=s.commandLine.options),m&&(vo(i,f.Resolving_module_0_from_1,e,t),s&&vo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let y=oi(t),E=o?.getFromDirectoryCache(e,l,y,s);if(E)m&&vo(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let S=r.moduleResolution;switch(S===void 0?(S=du(r),m&&vo(i,f.Module_resolution_kind_is_not_specified_using_0,Dx[S])):m&&vo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Dx[S]),(d=nu)==null||d.logStartResolveModule(e),S){case 3:E=sGe(e,t,r,i,o,s,l);break;case 99:E=lGe(e,t,r,i,o,s,l);break;case 2:E=Sse(e,t,r,i,o,s,l?$v(r,l):void 0);break;case 1:E=Rse(e,t,r,i,o,s);break;case 100:E=Ese(e,t,r,i,o,s,l?$v(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=nu)==null||p.logInfoEvent(`Module "${e}" resolved to "${E.resolvedModule.resolvedFileName}"`)),(h=nu)==null||h.logStopResolveModule(E&&E.resolvedModule?""+E.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(y,s).set(e,l,E),Yc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(y,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?vo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Lv(E.resolvedModule.packageId)):vo(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):vo(i,f.Module_name_0_was_not_resolved,e)),E}function BAe(e,t,r,i,o){let s=iGe(e,t,i,o);return s?s.value:Yc(t)?oGe(e,t,r,i,o):aGe(e,t,i,o)}function iGe(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!Lp(t)){i.traceEnabled&&(s&&vo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),vo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=s6(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=w6(l)):void 0;return xse(e,t,p,l,h,r,!1,i)}}function oGe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&vo(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=ma(Yr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=ma(p);El(h,nl)||(h+=nl);let m=ao(s,h)&&(d===void 0||d.lengthvoid K.push(Z),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&OI(j)&&vo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Y.conditions.map(Z=>`'${Z}'`).join(", "));let B;if(j===2){let Z=l&5,me=l&-6;B=Z&&z(Z,Y)||me&&z(me,Y)||void 0}else B=z(l,Y);let ce;if(Y.resolvedPackageDirectory&&!d&&!Yc(t)){let Z=B?.value&&l&5&&!JAe(5,B.value.resolved.extension);if((m=B?.value)!=null&&m.isExternalLibraryImport&&Z&&e&8&&h?.includes("import")){Qv(Y,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let me={...Y,features:Y.features&-9,reportDiagnostic:qa},ge=z(l&5,me);(y=ge?.value)!=null&&y.isExternalLibraryImport&&(ce=ge.value.resolved.path)}else if((!B?.value||Z)&&j===2){Qv(Y,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let me={...Y.compilerOptions,moduleResolution:100},ge={...Y,compilerOptions:me,features:30,conditions:$v(me),reportDiagnostic:qa},q=z(l&5,ge);(E=q?.value)!=null&&E.isExternalLibraryImport&&(ce=q.value.resolved.path)}}return MAe(t,(S=B?.value)==null?void 0:S.resolved,(A=B?.value)==null?void 0:A.isExternalLibraryImport,D,w,K,Y,s,ce);function z(Z,me){let q=BAe(Z,t,r,(J,re,pe,xe)=>iK(J,re,pe,xe,!0),me);if(q)return ef({resolved:q,isExternalLibraryImport:TE(q.path)});if(Yc(t)){let{path:J,parts:re}=VAe(r,t),pe=iK(Z,J,!1,me,!0);return pe&&ef({resolved:pe,isExternalLibraryImport:Bo(re,"node_modules")})}else{let J;if(e&2&&ao(t,"#")&&(J=mGe(Z,t,r,me,s,p)),!J&&e&4&&(J=fGe(Z,t,r,me,s,p)),!J){if(t.includes(":")){N&&vo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,h3(Z));return}N&&vo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,h3(Z)),J=YAe(Z,t,r,me,s,p)}return Z&4&&(J??(J=nIe(t,me))),J&&{value:J.value&&{resolved:J.value,isExternalLibraryImport:!0}}}}}function VAe(e,t){let r=Yr(e,t),i=zc(r),o=$s(i);return{path:o==="."||o===".."?Bc(ma(r)):ma(r),parts:i}}function dGe(e,t,r){if(!t.realpath)return e;let i=ma(t.realpath(e));return r&&vo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function iK(e,t,r,i,o){if(i.traceEnabled&&vo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,h3(e)),!Iy(t)){if(!r){let l=oi(t);Um(l,i.host)||(i.traceEnabled&&vo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=JR(e,t,r,i);if(s){let l=o?uw(s.path):void 0,d=l?Q0(l,!1,i):void 0;return d1(d,s)}}if(r||Um(t,i.host)||(i.traceEnabled&&vo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Ise(e,t,r,i,o)}function TE(e){return e.includes(Eh)}function uw(e,t){let r=ma(e),i=r.lastIndexOf(Eh);if(i===-1)return;let o=i+Eh.length,s=jAe(r,o,t);return r.charCodeAt(o)===64&&(s=jAe(r,s,t)),r.slice(0,s)}function jAe(e,t,r){let i=e.indexOf(nl,t+1);return i===-1?r?e.length:t:i}function Ase(e,t,r,i){return QH(JR(e,t,r,i))}function JR(e,t,r,i){let o=UAe(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=HAe(t,e,"",r,i);if(s)return s}}function UAe(e,t,r,i){if(!nc(t).includes("."))return;let s=Eu(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&vo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),HAe(s,e,l,r,i)}function oK(e,t,r,i){return e&1&&bc(t,yk)||e&4&&bc(t,gk)?aK(t,r,i)!==void 0?{path:t,ext:_6(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Sl(t,".json")?aK(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:UAe(e,t,r,i)}function HAe(e,t,r,i,o){if(!i){let l=oi(e);l&&(i=!Um(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Ed(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=aK(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function aK(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return KAe(e,t,r);let o=Wg(e)??"",s=o?lk(e,o):e;return gn(r.compilerOptions.moduleSuffixes,l=>KAe(s+l+o,t,r))}function KAe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&vo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&vo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Ise(e,t,r,i,o=!0){let s=o?Q0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&S3(s,i);return d1(s,lK(e,t,r,i,l,d))}function sK(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=gse(t),p=pw(i?.getPackageJsonInfoCache(),r,t);p.conditions=$v(t),p.requestContainingDirectory=e.packageDirectory;let h=lK(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,S3(e,p));if(s=Tn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=m0([$v(t,99),$v(t,1)],Gm);for(let y of m){let E={...p,failedLookupLocations:[],conditions:y,host:r},S=uGe(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=xg(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function uGe(e,t,r,i){let o;if(To(t))for(let l of t)s(l);else if(typeof t=="object"&&t!==null&&T3(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l=="string"&&ao(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,H5e(i),void 0,[Dne(zI(l,"**/*"),".*")]).forEach(h=>{o=xg(o,{path:h,ext:Cx(h),resolvedUsingTsExtension:void 0})})}else{let h=zc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;let m=Yr(e.packageDirectory,l),y=ho(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=oK(i,y,!1,r);if(E)return o=xg(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l=="object"&&l!==null)return gn(Vh(l),h=>{if(h==="default"||Bo(r.conditions,h)||_w(r.conditions,h))return s(l[h]),!0})}}function pw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Gg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Xe,requestContainingDirectory:void 0,reportDiagnostic:qa,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function fw(e,t){let r=zc(e);for(r.pop();r.length>0;){let i=Q0(Tv(r),!1,t);if(i)return i;r.pop()}}function S3(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y5e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function Q0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,y=Yr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(y);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(y);if(E!==void 0){if(v3(E))return m&&vo(h,f.File_0_exists_according_to_earlier_cached_lookups,y),(s=r.affectingLocations)==null||s.push(y),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&vo(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}let S=Um(e,h);if(S&&h.fileExists(y)){let A=LN(y,h);m&&vo(h,f.Found_package_json_at_0,y);let N={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,N),(d=r.affectingLocations)==null||d.push(y),N}else S&&m&&vo(h,f.File_0_does_not_exist,y),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(y)}function lK(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J5e(o,t,i):l=e&4&&K5e(o,t,i)||e&7&&q5e(o,t,i)||void 0);let d=(E,S,A,N)=>{let D=oK(E,S,A,N);if(D)return QH(D);let w=E===4?5:E,j=N.features,K=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(N.features&=-33);let Y=iK(w,S,A,N,!1);return N.features=j,N.candidateIsFromPackageJsonField=K,Y},p=l?!Um(oi(l),i.host):void 0,h=r||!Um(t,i.host),m=Yr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||mm(t,l))){let E=_m(t,l||m,!1);i.traceEnabled&&vo(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Jp,E);let S=xse(e,E,t,s.paths,void 0,d,p||h,i);if(S)return PAe(S.value)}let y=l&&PAe(d(e,l,p,i));if(y)return y;if(!(i.features&32))return JR(e,m,h,i)}function JAe(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 mw(e){let t=e.indexOf(nl);return e[0]==="@"&&(t=e.indexOf(nl,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function T3(e){return oo(Vh(e),t=>ao(t,"."))}function pGe(e){return!gt(Vh(e),t=>ao(t,"."))}function fGe(e,t,r,i,o,s){var l,d;let p=ho(Yr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=fw(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;let m=zc(t),y=zc(h.contents.packageJsonContent.name);if(!oo(y,(D,w)=>m[w]===D))return;let E=m.slice(y.length),S=Nn(E)?`.${nl}${E.join(nl)}`:".";if(Vv(i.compilerOptions)&&!TE(r))return cK(h,e,S,i,o,s);let A=e&5,N=e&-6;return cK(h,A,S,i,o,s)||cK(h,N,S,i,o,s)}function cK(e,t,r,i,o,s){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"&&pGe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Ss(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return XAe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(T3(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&vo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),ef(void 0);let l=qAe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&vo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),ef(void 0)}}function mGe(e,t,r,i,o,s){var l,d;if(t==="#"||ao(t,"#/"))return i.traceEnabled&&vo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),ef(void 0);let p=ho(Yr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=fw(p,i);if(!h)return i.traceEnabled&&vo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),ef(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&vo(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),ef(void 0);let m=qAe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&vo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),ef(void 0))}function dK(e,t){let r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function qAe(e,t,r,i,o,s,l,d){let p=XAe(e,t,r,i,o,l,d);if(!El(o,nl)&&!o.includes("*")&&Ss(s,o)){let y=s[o];return p(y,"",!1,o)}let h=ZS(jr(Vh(s),y=>y.includes("*")||El(y,"/")),dK);for(let y of h)if(t.features&16&&m(y,o)){let E=s[y],S=y.indexOf("*"),A=o.substring(y.substring(0,S).length,o.length-(y.length-1-S));return p(E,A,!0,y)}else if(El(y,"*")&&ao(o,y.substring(0,y.length-1))){let E=s[y],S=o.substring(y.length-1);return p(E,S,!0,y)}else if(ao(o,y)){let E=s[y],S=o.substring(y.length);return p(E,S,!1,y)}function m(y,E){if(El(y,"*"))return!1;let S=y.indexOf("*");return S===-1?!1:ao(E,y.substring(0,S))&&El(E,y.substring(S+1))}}function XAe(e,t,r,i,o,s,l){return d;function d(p,h,m,y){if(typeof p=="string"){if(!m&&h.length>0&&!El(p,"/"))return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);if(!ao(p,"./")){if(l&&!ao(p,"../")&&!ao(p,"/")&&!cp(p)){let B=m?p.replace(/\*/g,h):p+h;Qv(t,f.Using_0_subpath_1_with_target_2,"imports",y,B),Qv(t,f.Resolving_module_0_from_1,B,s.packageDirectory+"/");let ce=dw(t.features,B,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return ef(ce.resolvedModule?{path:ce.resolvedModule.resolvedFileName,extension:ce.resolvedModule.extension,packageId:ce.resolvedModule.packageId,originalPath:ce.resolvedModule.originalPath,resolvedUsingTsExtension:ce.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0)}let D=(Lp(p)?zc(p).slice(1):zc(p)).slice(1);if(D.includes("..")||D.includes(".")||D.includes("node_modules"))return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);let w=Yr(s.packageDirectory,p),j=zc(h);if(j.includes("..")||j.includes(".")||j.includes("node_modules"))return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);t.traceEnabled&&vo(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,m?p.replace(/\*/g,h):p+h);let K=E(m?w.replace(/\*/g,h):w+h),Y=A(K,h,Yr(s.packageDirectory,"package.json"),l);return Y||ef(d1(s,oK(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Nn(p))return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);for(let N of p){let D=d(N,h,m,y);if(D)return D}}else{Qv(t,f.Entering_conditional_exports);for(let N of Vh(p))if(N==="default"||t.conditions.includes(N)||_w(t.conditions,N)){Qv(t,f.Matched_0_condition_1,l?"imports":"exports",N);let D=p[N],w=d(D,h,m,y);if(w)return Qv(t,f.Resolved_under_condition_0,N),Qv(t,f.Exiting_conditional_exports),w;Qv(t,f.Failed_to_resolve_under_condition_0,N)}else Qv(t,f.Saw_non_matching_condition_0,N);Qv(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&vo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),ef(void 0);return t.traceEnabled&&vo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);function E(N){var D,w;return N===void 0?N:ho(N,(w=(D=t.host).getCurrentDirectory)==null?void 0:w.call(D))}function S(N,D){return Bc(Yr(N,D))}function A(N,D,w,j){var K,Y,B,ce;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!N.includes("/node_modules/")&&(!t.compilerOptions.configFile||mm(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!uK(t)))){let Z=My({useCaseSensitiveFileNames:()=>uK(t)}),me=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ge=E(GP(t.compilerOptions,()=>[],((Y=(K=t.host).getCurrentDirectory)==null?void 0:Y.call(K))||"",Z));me.push(ge)}else if(t.requestContainingDirectory){let ge=E(Yr(t.requestContainingDirectory,"index.ts")),q=E(GP(t.compilerOptions,()=>[ge,E(w)],((ce=(B=t.host).getCurrentDirectory)==null?void 0:ce.call(B))||"",Z));me.push(q);let J=Bc(q);for(;J&&J.length>1;){let re=zc(J);re.pop();let pe=Tv(re);me.unshift(pe),J=Bc(pe)}}me.length>1&&t.reportDiagnostic(jl(j?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.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,w));for(let ge of me){let q=z(ge);for(let J of q)if(mm(J,N,!uK(t))){let re=N.slice(J.length+1),pe=Yr(ge,re),xe=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let fe of xe)if(Sl(pe,fe)){let ne=Rie(pe);for(let he of ne){if(!JAe(e,he))continue;let Ce=OL(pe,he,fe,!uK(t));if(t.host.fileExists(Ce))return ef(d1(s,oK(e,Ce,!1,t)))}}}}}return;function z(Z){var me,ge;let q=t.compilerOptions.configFile?((ge=(me=t.host).getCurrentDirectory)==null?void 0:ge.call(me))||"":Z,J=[];return t.compilerOptions.declarationDir&&J.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&J.push(E(S(q,t.compilerOptions.outDir))),J}}}}function _w(e,t){if(!e.includes("types")||!ao(t,"types@"))return!1;let r=xL.tryParse(t.substring(6));return r?r.test(Jp):!1}function YAe(e,t,r,i,o,s){return $Ae(e,t,r,i,!1,o,s)}function _Ge(e,t,r){return $Ae(4,e,t,r,!0,void 0,void 0)}function $Ae(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){Qv(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,h3(p));let y=m(p);if(y)return y}if(h&&!o)return Qv(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,h3(h)),m(h);function m(y){return hm(Pd(r),E=>{if(nc(E)!=="node_modules"){let S=tIe(s,t,d,E,l,i);return S||ef(QAe(y,t,E,i,o,s,l))}})}}function QAe(e,t,r,i,o,s,l){let d=Yr(r,"node_modules"),p=Um(d,i.host);if(!p&&i.traceEnabled&&vo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=ZAe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=Yr(d,"@types"),m=p;return p&&!Um(h,i.host)&&(i.traceEnabled&&vo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),ZAe(4,eIe(t,i),h,m,i,s,l)}}function ZAe(e,t,r,i,o,s,l){var d,p;let h=ma(Yr(r,t)),{packageName:m,rest:y}=mw(t),E=Yr(r,m),S,A=Q0(h,!i,o);if(y!==""&&A&&(!(o.features&8)||!Ss(((d=S=Q0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??Xe,"exports"))){let w=JR(e,h,!i,o);if(w)return QH(w);let j=lK(e,h,!i,o,A.contents.packageJsonContent,S3(A,o));return d1(A,j)}let N=(w,j,K,Y)=>{let B=(y||!(Y.features&32))&&JR(w,j,K,Y)||lK(w,j,K,Y,A&&A.contents.packageJsonContent,A&&S3(A,Y));return!B&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&Y.features&32&&(B=JR(w,Yr(j,"index.js"),K,Y)),d1(A,B)};if(y!==""&&(A=S??Q0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=cK(A,e,Yr(".",y),o,s,l))==null?void 0:p.value;let D=y!==""&&A?S3(A,o):void 0;if(D){o.traceEnabled&&vo(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,D.version,Jp,y);let w=i&&Um(E,o.host),j=xse(e,y,E,D.paths,void 0,N,!w,o);if(j)return j.value}return N(e,h,!i,o)}function xse(e,t,r,i,o,s,l,d){o||(o=w6(i));let p=cU(o,t);if(p){let h=No(p)?void 0:lne(p,t),m=No(p)?p:sne(p);return d.traceEnabled&&vo(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:gn(i[m],E=>{let S=h?zI(E,h):E,A=ma(Yr(r,S));d.traceEnabled&&vo(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let N=Wg(E);if(N!==void 0){let D=aK(A,l,d);if(D!==void 0)return QH({path:D,ext:N,resolvedUsingTsExtension:void 0})}return s(e,A,l||!Um(oi(A),d.host),d)})}}}function eIe(e,t){let r=qR(e);return t.traceEnabled&&r!==e&&vo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function A3(e){return`@types/${qR(e)}`}function qR(e){if(ao(e,"@")){let t=e.replace(nl,fK);if(t!==e)return t.slice(1)}return e}function DP(e){let t=VC(e,"@types/");return t!==e?hw(t):e}function hw(e){return e.includes(fK)?"@"+e.replace(fK,nl):e}function tIe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&vo(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.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 Rse(e,t,r,i,o,s){let l=Gg(r,i),d=[],p=[],h=oi(t),m=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return MAe(e,E&&E.value,E?.value&&TE(E.value.path),d,p,m,y,o);function S(A){let N=BAe(A,e,h,Ase,y);if(N)return{value:N};if(Yc(e)){let D=ma(Yr(h,e));return ef(Ase(A,D,!1,y))}else{let D=hm(h,w=>{let j=tIe(o,e,void 0,w,s,y);if(j)return j;let K=ma(Yr(w,e));return ef(Ase(A,K,!1,y))});if(D)return D;if(A&5){let w=_Ge(e,h,y);return A&4&&(w??(w=nIe(e,y))),w}}}}function nIe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=OAe(r,e,t),o=Um(r,t.host);!o&&t.traceEnabled&&vo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=JR(4,i,!o,t);if(s){let d=uw(s.path),p=d?Q0(d,!1,t):void 0;return ef(d1(p,s))}let l=Ise(4,i,!o,t);if(l)return ef(l)}}function XR(e,t){return!!e.allowImportingTsExtensions||t&&Ed(t)}function Dse(e,t,r,i,o,s){let l=Gg(r,i);l&&vo(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=QAe(4,e,o,m,!1,void 0,void 0);return LAe(y,!0,d,p,h,m.resultFromCache,void 0)}function ef(e){return e!==void 0?{value:e}:void 0}function Qv(e,t,...r){e.traceEnabled&&vo(e.host,t,...r)}function uK(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Cse,rIe,pK,Eh,fK,hGe=bt({"src/compiler/moduleNameResolver.ts"(){"use strict";ea(),rIe=Yr("node_modules","@types"),pK=(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))(pK||{}),Eh="/node_modules/",fK="__"}});function Vg(e,t){return e.body&&!e.body.parent&&(ja(e.body,e),Bv(e.body,!1)),e.body?Nse(e.body,t):1}function Nse(e,t=new Map){let r=rs(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=gGe(e,t);return t.set(r,i),i}function gGe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(A0(e))return 2;break;case 272:case 271:if(!$r(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=yGe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Go(e,o=>{let s=Nse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return Vg(e,t);case 80:if(e.flags&4096)return 0}return 1}function yGe(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Ko(i)||N_(i)||Yi(i)){let o=i.statements,s;for(let l of o)if(XL(l,r)){l.parent||(ja(l,i),Bv(l,!1));let d=Nse(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function p1(e){return x.attachFlowNodeDebugInfo(e),e}function Pse(e,t){var r,i;el("beforeBind"),(r=nu)==null||r.logStartBindFile(""+e.fileName),oIe(e,t),(i=nu)==null||i.logStopBindFile(),el("afterBind"),Xp("Bind","beforeBind","afterBind")}function vGe(){var e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce=!1,z=0,Z,me,ge={flags:1},q={flags:1},J=U();return pe;function re(O,Ee,...nt){return Kf(Gn(O)||e,O,Ee,...nt)}function pe(O,Ee){var nt,Gt;e=O,t=Ee,r=ns(t),B=xe(e,Ee),me=new Set,z=0,Z=sd.getSymbolConstructor(),x.attachFlowNodeDebugInfo(ge),x.attachFlowNodeDebugInfo(q),e.locals||((nt=rr)==null||nt.push(rr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Pe(e),(Gt=rr)==null||Gt.pop(),e.symbolCount=z,e.classifiableNames=me,cd()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,y=void 0,E=void 0,S=void 0,A=void 0,N=void 0,D=void 0,j=void 0,K=!1,ce=!1,Y=0}function xe(O,Ee){return cu(Ee,"alwaysStrict")&&!O.isDeclarationFile?!0:!!O.externalModuleIndicator}function fe(O,Ee){return z++,new Z(O,Ee)}function ne(O,Ee,nt){O.flags|=nt,Ee.symbol=O,O.declarations=xg(O.declarations,Ee),nt&1955&&!O.exports&&(O.exports=aa()),nt&6240&&!O.members&&(O.members=aa()),O.constEnumOnlyModule&&O.flags&304&&(O.constEnumOnlyModule=!1),nt&111551&&w2(O,Ee)}function he(O){if(O.kind===277)return O.isExportEquals?"export=":"default";let Ee=Po(O);if(Ee){if(Md(O)){let nt=Xf(Ee);return E_(O)?"__global":`"${nt}"`}if(Ee.kind===167){let nt=Ee.expression;if($p(nt))return pl(nt.text);if(t6(nt))return da(nt.operator)+nt.operand.text;x.fail("Only computed properties with literal names have declaration names")}if(Ki(Ee)){let nt=ad(O);if(!nt)return;let Gt=nt.symbol;return K2(Gt,Ee.escapedText)}return qm(Ee)?FI(Ee):T_(Ee)?TN(Ee):void 0}switch(O.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(zl(O)===2)return"export=";x.fail("Unknown binary declaration kind");break;case 324:return rR(O)?"__new":"__call";case 169:return x.assert(O.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${x.formatSyntaxKind(O.parent.kind)}, expected JSDocFunctionType`),"arg"+O.parent.parameters.indexOf(O)}}function Ce(O){return iu(O)?Ts(O.name):Vi(x.checkDefined(he(O)))}function Ge(O,Ee,nt,Gt,Zn,ii,Xr){x.assert(Xr||!Ov(nt));let no=$r(nt,2048)||Kd(nt)&&nt.name.escapedText==="default",La=Xr?"__computed":no&&Ee?"default":he(nt),ka;if(La===void 0)ka=fe(0,"__missing");else if(ka=O.get(La),Gt&2885600&&me.add(La),!ka)O.set(La,ka=fe(0,La)),ii&&(ka.isReplaceableByMethod=!0);else{if(ii&&!ka.isReplaceableByMethod)return ka;if(ka.flags&Zn){if(ka.isReplaceableByMethod)O.set(La,ka=fe(0,La));else if(!(Gt&3&&ka.flags&67108864)){iu(nt)&&ja(nt.name,nt);let wl=ka.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,pd=!0;(ka.flags&384||Gt&384)&&(wl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,pd=!1);let Ic=!1;Nn(ka.declarations)&&(no||ka.declarations&&ka.declarations.length&&nt.kind===277&&!nt.isExportEquals)&&(wl=f.A_module_cannot_have_multiple_default_exports,pd=!1,Ic=!0);let Tp=[];Tm(nt)&&Fl(nt.type)&&$r(nt,32)&&ka.flags&2887656&&Tp.push(re(nt,f.Did_you_mean_0,`export type { ${Vi(nt.name.escapedText)} }`));let Bu=Po(nt)||nt;gn(ka.declarations,(ls,Dm)=>{let Cm=Po(ls)||ls,Ui=pd?re(Cm,wl,Ce(ls)):re(Cm,wl);e.bindDiagnostics.push(Ic?Pa(Ui,re(Bu,Dm===0?f.Another_export_default_is_here:f.and_here)):Ui),Ic&&Tp.push(re(Cm,f.The_first_export_default_is_here))});let ob=pd?re(Bu,wl,Ce(nt)):re(Bu,wl);e.bindDiagnostics.push(Pa(ob,...Tp)),ka=fe(0,La)}}}return ne(ka,nt,Gt),ka.parent?x.assert(ka.parent===Ee,"Existing symbol parent should match new one"):ka.parent=Ee,ka}function ve(O,Ee,nt){let Gt=!!(Zb(O)&32)||Ae(O);if(Ee&2097152)return O.kind===281||O.kind===271&&Gt?Ge(o.symbol.exports,o.symbol,O,Ee,nt):(x.assertNode(o,lh),Ge(o.locals,void 0,O,Ee,nt));if(qf(O)&&x.assert(ir(O)),!Md(O)&&(Gt||o.flags&128)){if(!lh(o)||!o.locals||$r(O,2048)&&!he(O))return Ge(o.symbol.exports,o.symbol,O,Ee,nt);let Zn=Ee&111551?1048576:0,ii=Ge(o.locals,void 0,O,Zn,nt);return ii.exportSymbol=Ge(o.symbol.exports,o.symbol,O,Ee,nt),O.localSymbol=ii,ii}else return x.assertNode(o,lh),Ge(o.locals,void 0,O,Ee,nt)}function Ae(O){if(O.parent&&ql(O)&&(O=O.parent),!qf(O))return!1;if(!zk(O)&&O.fullName)return!0;let Ee=Po(O);return Ee?!!(ek(Ee.parent)&&Zl(Ee.parent)||Hd(Ee.parent)&&Zb(Ee.parent)&32):!1}function De(O,Ee){let nt=o,Gt=s,Zn=l;if(Ee&1?(O.kind!==219&&(s=o),o=l=O,Ee&32&&(o.locals=aa(),er(o))):Ee&2&&(l=O,Ee&32&&(l.locals=void 0)),Ee&4){let ii=m,Xr=y,no=E,La=S,ka=D,wl=j,pd=K,Ic=Ee&16&&!$r(O,1024)&&!O.asteriskToken&&!!_T(O)||O.kind===175;Ic||(m=p1({flags:2}),Ee&144&&(m.node=O)),S=Ic||O.kind===176||ir(O)&&(O.kind===262||O.kind===218)?Dn():void 0,D=void 0,y=void 0,E=void 0,j=void 0,K=!1,ze(O),O.flags&=-5633,!(m.flags&1)&&Ee&8&&Hf(O.body)&&(O.flags|=512,K&&(O.flags|=1024),O.endFlowNode=m),O.kind===312&&(O.flags|=Y,O.endFlowNode=m),S&&(Kt(S,m),m=Qn(S),(O.kind===176||O.kind===175||ir(O)&&(O.kind===262||O.kind===218))&&(O.returnFlowNode=m)),Ic||(m=ii),y=Xr,E=no,S=La,D=ka,j=wl,K=pd}else Ee&64?(h=!1,ze(O),x.assertNotNode(O,Fe),O.flags=h?O.flags|256:O.flags&-257):ze(O);o=nt,s=Gt,l=Zn}function Le(O){Et(O,Ee=>Ee.kind===262?Pe(Ee):void 0),Et(O,Ee=>Ee.kind!==262?Pe(Ee):void 0)}function Et(O,Ee=Pe){O!==void 0&&gn(O,Ee)}function be(O){Go(O,Pe,Et)}function ze(O){let Ee=ce;if(ce=!1,zt(O)){be(O),yt(O),ce=Ee;return}switch(O.kind>=243&&O.kind<=259&&!t.allowUnreachableCode&&(O.flowNode=m),O.kind){case 247:$i(O);break;case 246:Io(O);break;case 248:ua(O);break;case 249:case 250:Ba(O);break;case 245:vn(O);break;case 253:case 257:kn(O);break;case 252:case 251:lt(O);break;case 258:Rt(O);break;case 255:ae(O);break;case 269:ke(O);break;case 296:st(O);break;case 244:G(O);break;case 256:Tt(O);break;case 224:hn(O);break;case 225:dn(O);break;case 226:if(ky(O)){ce=Ee,un(O);return}J(O);break;case 220:Me(O);break;case 227:Nt(O);break;case 260:ie(O);break;case 211:case 212:gi(O);break;case 213:xi(O);break;case 235:Bn(O);break;case 353:case 345:case 347:Ne(O);break;case 312:{Le(O.statements),Pe(O.endOfFileToken);break}case 241:case 268:Le(O.statements);break;case 208:H(O);break;case 169:ue(O);break;case 210:case 209:case 303:case 230:ce=Ee;default:be(O);break}yt(O),ce=Ee}function tt(O){switch(O.kind){case 80:case 81:case 110:case 211:case 212:return _t(O);case 213:return Je(O);case 217:if(WR(O))return!1;case 235:return tt(O.expression);case 226:return Zt(O);case 224:return O.operator===54&&tt(O.operand);case 221:return tt(O.expression)}return!1}function Wt(O){return PN(O)||(kr(O)||t1(O)||Ou(O))&&Wt(O.expression)||dr(O)&&O.operatorToken.kind===28&&Wt(O.right)||Js(O)&&($p(O.argumentExpression)||Bl(O.argumentExpression))&&Wt(O.expression)||Mc(O)&&Wt(O.left)}function _t(O){return Wt(O)||Ud(O)&&_t(O.expression)}function Je(O){if(O.arguments){for(let Ee of O.arguments)if(_t(Ee))return!0}return!!(O.expression.kind===211&&_t(O.expression.expression))}function pt(O,Ee){return NR(O)&&en(O.expression)&&as(Ee)}function Zt(O){switch(O.operatorToken.kind){case 64:case 76:case 77:case 78:return _t(O.left);case 35:case 36:case 37:case 38:return en(O.left)||en(O.right)||pt(O.right,O.left)||pt(O.left,O.right)||aN(O.right)&&tt(O.left)||aN(O.left)&&tt(O.right);case 104:return en(O.left);case 103:return tt(O.right);case 28:return tt(O.right)}return!1}function en(O){switch(O.kind){case 217:return en(O.expression);case 226:switch(O.operatorToken.kind){case 64:return en(O.left);case 28:return en(O.right)}}return _t(O)}function Dn(){return p1({flags:4,antecedents:void 0})}function Kn(){return p1({flags:8,antecedents:void 0})}function pn(O,Ee,nt){return p1({flags:1024,target:O,antecedents:Ee,antecedent:nt})}function Xt(O){O.flags|=O.flags&2048?4096:2048}function Kt(O,Ee){!(Ee.flags&1)&&!Bo(O.antecedents,Ee)&&((O.antecedents||(O.antecedents=[])).push(Ee),Xt(Ee))}function hi(O,Ee,nt){return Ee.flags&1?Ee:nt?(nt.kind===112&&O&64||nt.kind===97&&O&32)&&!aF(nt)&&!TV(nt.parent)?ge:tt(nt)?(Xt(Ee),p1({flags:O,antecedent:Ee,node:nt})):Ee:O&32?Ee:ge}function uo(O,Ee,nt,Gt){return Xt(O),p1({flags:128,antecedent:O,switchStatement:Ee,clauseStart:nt,clauseEnd:Gt})}function Li(O,Ee,nt){Xt(Ee);let Gt=p1({flags:O,antecedent:Ee,node:nt});return D&&Kt(D,Gt),Gt}function So(O,Ee){return Xt(O),p1({flags:512,antecedent:O,node:Ee})}function Qn(O){let Ee=O.antecedents;return Ee?Ee.length===1?Ee[0]:O:ge}function Ur(O){let Ee=O.parent;switch(Ee.kind){case 245:case 247:case 246:return Ee.expression===O;case 248:case 227:return Ee.condition===O}return!1}function Er(O){for(;;)if(O.kind===217)O=O.expression;else if(O.kind===224&&O.operator===54)O=O.operand;else return Z2(O)}function on(O){return jj(fs(O))}function Ye(O){for(;Ou(O.parent)||qv(O.parent)&&O.parent.operator===54;)O=O.parent;return!Ur(O)&&!Er(O.parent)&&!(Ud(O.parent)&&O.parent.expression===O)}function Ot(O,Ee,nt,Gt){let Zn=A,ii=N;A=nt,N=Gt,O(Ee),A=Zn,N=ii}function In(O,Ee,nt){Ot(Pe,O,Ee,nt),(!O||!on(O)&&!Er(O)&&!(Ud(O)&&tN(O)))&&(Kt(Ee,hi(32,m,O)),Kt(nt,hi(64,m,O)))}function si(O,Ee,nt){let Gt=y,Zn=E;y=Ee,E=nt,Pe(O),y=Gt,E=Zn}function yi(O,Ee){let nt=j;for(;nt&&O.parent.kind===256;)nt.continueTarget=Ee,nt=nt.next,O=O.parent;return Ee}function $i(O){let Ee=yi(O,Kn()),nt=Dn(),Gt=Dn();Kt(Ee,m),m=Ee,In(O.expression,nt,Gt),m=Qn(nt),si(O.statement,Gt,Ee),Kt(Ee,m),m=Qn(Gt)}function Io(O){let Ee=Kn(),nt=yi(O,Dn()),Gt=Dn();Kt(Ee,m),m=Ee,si(O.statement,Gt,nt),Kt(nt,m),m=Qn(nt),In(O.expression,Ee,Gt),m=Qn(Gt)}function ua(O){let Ee=yi(O,Kn()),nt=Dn(),Gt=Dn();Pe(O.initializer),Kt(Ee,m),m=Ee,In(O.condition,nt,Gt),m=Qn(nt),si(O.statement,Gt,Ee),Pe(O.incrementor),Kt(Ee,m),m=Qn(Gt)}function Ba(O){let Ee=yi(O,Kn()),nt=Dn();Pe(O.expression),Kt(Ee,m),m=Ee,O.kind===250&&Pe(O.awaitModifier),Kt(nt,m),Pe(O.initializer),O.initializer.kind!==261&&ut(O.initializer),si(O.statement,nt,Ee),Kt(Ee,m),m=Qn(nt)}function vn(O){let Ee=Dn(),nt=Dn(),Gt=Dn();In(O.expression,Ee,nt),m=Qn(Ee),Pe(O.thenStatement),Kt(Gt,m),m=Qn(nt),Pe(O.elseStatement),Kt(Gt,m),m=Qn(Gt)}function kn(O){Pe(O.expression),O.kind===253&&(K=!0,S&&Kt(S,m)),m=ge}function Be(O){for(let Ee=j;Ee;Ee=Ee.next)if(Ee.name===O)return Ee}function ct(O,Ee,nt){let Gt=O.kind===252?Ee:nt;Gt&&(Kt(Gt,m),m=ge)}function lt(O){if(Pe(O.label),O.label){let Ee=Be(O.label.escapedText);Ee&&(Ee.referenced=!0,ct(O,Ee.breakTarget,Ee.continueTarget))}else ct(O,y,E)}function Rt(O){let Ee=S,nt=D,Gt=Dn(),Zn=Dn(),ii=Dn();if(O.finallyBlock&&(S=Zn),Kt(ii,m),D=ii,Pe(O.tryBlock),Kt(Gt,m),O.catchClause&&(m=Qn(ii),ii=Dn(),Kt(ii,m),D=ii,Pe(O.catchClause),Kt(Gt,m)),S=Ee,D=nt,O.finallyBlock){let Xr=Dn();Xr.antecedents=Eo(Eo(Gt.antecedents,ii.antecedents),Zn.antecedents),m=Xr,Pe(O.finallyBlock),m.flags&1?m=ge:(S&&Zn.antecedents&&Kt(S,pn(Xr,Zn.antecedents,m)),D&&ii.antecedents&&Kt(D,pn(Xr,ii.antecedents,m)),m=Gt.antecedents?pn(Xr,Gt.antecedents,m):ge)}else m=Qn(Gt)}function ae(O){let Ee=Dn();Pe(O.expression);let nt=y,Gt=w;y=Ee,w=m,Pe(O.caseBlock),Kt(Ee,m);let Zn=gn(O.caseBlock.clauses,ii=>ii.kind===297);O.possiblyExhaustive=!Zn&&!Ee.antecedents,Zn||Kt(Ee,uo(w,O,0,0)),y=nt,w=Gt,m=Qn(Ee)}function ke(O){let Ee=O.clauses,nt=O.parent.expression.kind===112||tt(O.parent.expression),Gt=ge;for(let Zn=0;ZnXl(nt)||Ll(nt))}function Kr(O){O.flags&33554432&&!Ri(O)?O.flags|=128:O.flags&=-129}function xo(O){if(Kr(O),Md(O))if($r(O,32)&&Rs(O,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),XV(O))xn(O);else{let Ee;if(O.name.kind===11){let{text:Gt}=O.name;Ee=vR(Gt),Ee===void 0&&Rs(O.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Gt)}let nt=Fr(O,512,110735);e.patternAmbientModules=Tn(e.patternAmbientModules,Ee&&!No(Ee)?{pattern:Ee,symbol:nt}:void 0)}else{let Ee=xn(O);if(Ee!==0){let{symbol:nt}=O;nt.constEnumOnlyModule=!(nt.flags&304)&&Ee===2&&nt.constEnumOnlyModule!==!1}}}function xn(O){let Ee=Vg(O),nt=Ee!==0;return Fr(O,nt?512:1024,nt?110735:0),Ee}function Ls(O){let Ee=fe(131072,he(O));ne(Ee,O,131072);let nt=fe(2048,"__type");ne(nt,O,2048),nt.members=aa(),nt.members.set(Ee.escapedName,Ee)}function $l(O){return Ws(O,4096,"__object")}function Mo(O){return Ws(O,4096,"__jsxAttributes")}function ss(O,Ee,nt){return Fr(O,Ee,nt)}function Ws(O,Ee,nt){let Gt=fe(Ee,nt);return Ee&106508&&(Gt.parent=o.symbol),ne(Gt,O,Ee),Gt}function ml(O,Ee,nt){switch(l.kind){case 267:ve(O,Ee,nt);break;case 312:if(wp(o)){ve(O,Ee,nt);break}default:x.assertNode(l,lh),l.locals||(l.locals=aa(),er(l)),Ge(l.locals,void 0,O,Ee,nt)}}function cd(){if(!p)return;let O=o,Ee=d,nt=l,Gt=i,Zn=m;for(let ii of p){let Xr=ii.parent.parent;o=nj(Xr)||e,l=uh(Xr)||e,m=p1({flags:2}),i=ii,Pe(ii.typeExpression);let no=Po(ii);if((zk(ii)||!ii.fullName)&&no&&ek(no.parent)){let La=Zl(no.parent);if(La){_l(e.symbol,no.parent,La,!!Fn(no,wl=>kr(wl)&&wl.name.escapedText==="prototype"),!1);let ka=o;switch(L2(no.parent)){case 1:case 2:wp(e)?o=e:o=void 0;break;case 4:o=no.parent.expression;break;case 3:o=no.parent.expression.name;break;case 5:o=Z0(e,no.parent.expression)?e:kr(no.parent.expression)?no.parent.expression.name:no.parent.expression;break;case 0:return x.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&ve(ii,524288,788968),o=ka}}else zk(ii)||!ii.fullName||ii.fullName.kind===80?(i=ii.parent,ml(ii,524288,788968)):Pe(ii.fullName)}o=O,d=Ee,l=nt,i=Gt,m=Zn}function mo(O){if(!e.parseDiagnostics.length&&!(O.flags&33554432)&&!(O.flags&16777216)&&!vie(O)){let Ee=eE(O);if(Ee===void 0)return;B&&Ee>=119&&Ee<=127?e.bindDiagnostics.push(re(O,la(O),Ts(O))):Ee===135?oc(e)&&FF(O)?e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ts(O))):O.flags&65536&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ts(O))):Ee===127&&O.flags&16384&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ts(O)))}}function la(O){return ad(O)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function dd(O){O.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(re(O,f.constructor_is_a_reserved_word,Ts(O))))}function bs(O){B&&Yu(O.left)&&Ly(O.operatorToken.kind)&&ac(O,O.left)}function Ca(O){B&&O.variableDeclaration&&ac(O,O.variableDeclaration.name)}function ul(O){if(B&&O.expression.kind===80){let Ee=fT(e,O.expression);e.bindDiagnostics.push(Qc(e,Ee.start,Ee.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Nf(O){return Fe(O)&&(O.escapedText==="eval"||O.escapedText==="arguments")}function ac(O,Ee){if(Ee&&Ee.kind===80){let nt=Ee;if(Nf(nt)){let Gt=fT(e,Ee);e.bindDiagnostics.push(Qc(e,Gt.start,Gt.length,xl(O),gr(nt)))}}}function xl(O){return ad(O)?f.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?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function al(O){B&&ac(O,O.name)}function Lo(O){return ad(O)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function tn(O){if(r<2&&l.kind!==312&&l.kind!==267&&!Wx(l)){let Ee=fT(e,O);e.bindDiagnostics.push(Qc(e,Ee.start,Ee.length,Lo(O)))}}function Fs(O){B&&ac(O,O.operand)}function nd(O){B&&(O.operator===46||O.operator===47)&&ac(O,O.operand)}function ud(O){B&&Rs(O,f.with_statements_are_not_allowed_in_strict_mode)}function Ep(O){B&&ns(t)>=2&&(Sre(O.statement)||Ml(O.statement))&&Rs(O.label,f.A_label_is_not_allowed_here)}function Rs(O,Ee,...nt){let Gt=ph(e,O.pos);e.bindDiagnostics.push(Qc(e,Gt.start,Gt.length,Ee,...nt))}function Ac(O,Ee,nt){de(O,Ee,Ee,nt)}function de(O,Ee,nt,Gt){$(O,{pos:oE(Ee,e),end:nt.end},Gt)}function $(O,Ee,nt){let Gt=Qc(e,Ee.pos,Ee.end-Ee.pos,nt);O?e.bindDiagnostics.push(Gt):e.bindSuggestionDiagnostics=Tn(e.bindSuggestionDiagnostics,{...Gt,category:2})}function Pe(O){if(!O)return;ja(O,i),rr&&(O.tracingPath=e.path);let Ee=B;if(pr(O),O.kind>165){let nt=i;i=O;let Gt=mK(O);Gt===0?ze(O):De(O,Gt),i=nt}else{let nt=i;O.kind===1&&(i=O),yt(O),i=nt}B=Ee}function yt(O){if(kp(O))if(ir(O))for(let Ee of O.jsDoc)Pe(Ee);else for(let Ee of O.jsDoc)ja(Ee,O),Bv(Ee,!1)}function cn(O){if(!B)for(let Ee of O){if(!vm(Ee))return;if(yr(Ee)){B=!0;return}}}function yr(O){let Ee=S0(e,O.expression);return Ee==='"use strict"'||Ee==="'use strict'"}function pr(O){switch(O.kind){case 80:if(O.flags&4096){let Xr=O.parent;for(;Xr&&!qf(Xr);)Xr=Xr.parent;ml(Xr,524288,788968);break}case 110:return m&&(ht(O)||i.kind===304)&&(O.flowNode=m),mo(O);case 166:m&&jF(O)&&(O.flowNode=m);break;case 236:case 108:O.flowNode=m;break;case 81:return dd(O);case 211:case 212:let Ee=O;m&&Wt(Ee)&&(Ee.flowNode=m),pie(Ee)&&Un(Ee),ir(Ee)&&e.commonJsModuleIndicator&&Yh(Ee)&&!I3(l,"module")&&Ge(e.locals,void 0,Ee.expression,134217729,111550);break;case 226:switch(zl(O)){case 1:tp(O);break;case 2:Oc(O);break;case 3:Zo(O.left,O);break;case 6:yo(O);break;case 4:fu(O);break;case 5:let Xr=O.left.expression;if(ir(O)&&Fe(Xr)){let no=I3(l,Xr.escapedText);if(zF(no?.valueDeclaration)){fu(O);break}}gc(O);break;case 0:break;default:x.fail("Unknown binary expression special property assignment kind")}return bs(O);case 299:return Ca(O);case 220:return ul(O);case 225:return Fs(O);case 224:return nd(O);case 254:return ud(O);case 256:return Ep(O);case 197:h=!0;return;case 182:break;case 168:return rt(O);case 169:return Kg(O);case 260:return Fd(O);case 208:return O.flowNode=m,Fd(O);case 172:case 171:return zr(O);case 303:case 304:return zu(O,4,0);case 306:return zu(O,8,900095);case 179:case 180:case 181:return Fr(O,131072,0);case 174:case 173:return zu(O,8192|(O.questionToken?16777216:0),bm(O)?0:103359);case 262:return Sp(O);case 176:return Fr(O,16384,0);case 177:return zu(O,32768,46015);case 178:return zu(O,65536,78783);case 184:case 324:case 330:case 185:return Ls(O);case 187:case 329:case 200:return Di(O);case 339:return It(O);case 210:return $l(O);case 218:case 219:return lg(O);case 213:switch(zl(O)){case 7:return Ql(O);case 8:return Kc(O);case 9:return Xo(O);case 0:break;default:return x.fail("Unknown call expression assignment declaration kind")}ir(O)&&z_(O);break;case 231:case 263:return B=!0,Ah(O);case 264:return ml(O,64,788872);case 265:return ml(O,524288,788968);case 266:return Hg(O);case 267:return xo(O);case 292:return Mo(O);case 291:return ss(O,4,0);case 271:case 274:case 276:case 281:return Fr(O,2097152,2097152);case 270:return Hc(O);case 273:return hc(O);case 278:return zs(O);case 277:return bl(O);case 312:return cn(O.statements),Cr();case 241:if(!Wx(O.parent))return;case 268:return cn(O.statements);case 348:if(O.parent.kind===330)return Kg(O);if(O.parent.kind!==329)break;case 355:let Zn=O,ii=Zn.isBracketed||Zn.typeExpression&&Zn.typeExpression.type.kind===323?16777220:4;return Fr(Zn,ii,0);case 353:case 345:case 347:return(p||(p=[])).push(O);case 346:return Pe(O.typeExpression)}}function zr(O){let Ee=Mu(O),nt=Ee?98304:4,Gt=Ee?13247:0;return zu(O,nt|(O.questionToken?16777216:0),Gt)}function Di(O){return Ws(O,2048,"__type")}function Cr(){if(Kr(e),oc(e))qo();else if(Jf(e)){qo();let O=e.symbol;Ge(e.symbol.exports,e.symbol,e,4,-1),e.symbol=O}}function qo(){Ws(e,512,`"${Eu(e.fileName)}"`)}function bl(O){if(!o.symbol||!o.symbol.exports)Ws(O,111551,he(O));else{let Ee=oR(O)?2097152:4,nt=Ge(o.symbol.exports,o.symbol,O,Ee,-1);O.isExportEquals&&w2(nt,O)}}function Hc(O){gt(O.modifiers)&&e.bindDiagnostics.push(re(O,f.Modifiers_cannot_appear_here));let Ee=Yi(O.parent)?oc(O.parent)?O.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;Ee?e.bindDiagnostics.push(re(O,Ee)):(e.symbol.globalExports=e.symbol.globalExports||aa(),Ge(e.symbol.globalExports,e.symbol,O,2097152,2097152))}function zs(O){!o.symbol||!o.symbol.exports?Ws(O,8388608,he(O)):O.exportClause?yh(O.exportClause)&&(ja(O.exportClause,O),Ge(o.symbol.exports,o.symbol,O.exportClause,2097152,2097152)):Ge(o.symbol.exports,o.symbol,O,8388608,0)}function hc(O){O.name&&Fr(O,2097152,2097152)}function ys(O){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=O,e.externalModuleIndicator||qo()),!0)}function Kc(O){if(!ys(O))return;let Ee=Pf(O.arguments[0],void 0,(nt,Gt)=>(Gt&&ne(Gt,nt,67110400),Gt));Ee&&Ge(Ee.exports,Ee,O,1048580,0)}function tp(O){if(!ys(O))return;let Ee=Pf(O.left.expression,void 0,(nt,Gt)=>(Gt&&ne(Gt,nt,67110400),Gt));if(Ee){let Gt=U2(O.right)&&(hT(O.left.expression)||Yh(O.left.expression))?2097152:1048580;ja(O.left,O),Ge(Ee.exports,Ee,O.left,Gt,0)}}function Oc(O){if(!ys(O))return;let Ee=N2(O.right);if(Jj(Ee)||o===e&&Z0(e,Ee))return;if(Ma(Ee)&&oo(Ee.properties,Zu)){gn(Ee.properties,im);return}let nt=oR(O)?2097152:1049092,Gt=Ge(e.symbol.exports,e.symbol,O,nt|67108864,0);w2(Gt,O)}function im(O){Ge(e.symbol.exports,e.symbol,O,69206016,0)}function fu(O){if(x.assert(ir(O)),dr(O)&&kr(O.left)&&Ki(O.left.name)||kr(O)&&Ki(O.name))return;let nt=Lu(O,!1,!1);switch(nt.kind){case 262:case 218:let Gt=nt.symbol;if(dr(nt.parent)&&nt.parent.operatorToken.kind===64){let Xr=nt.parent.left;D0(Xr)&&Fv(Xr.expression)&&(Gt=xu(Xr.expression.expression,s))}Gt&&Gt.valueDeclaration&&(Gt.members=Gt.members||aa(),Ov(O)?Re(O,Gt,Gt.members):Ge(Gt.members,Gt,O,67108868,0),ne(Gt,Gt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Zn=nt.parent,ii=ra(nt)?Zn.symbol.exports:Zn.symbol.members;Ov(O)?Re(O,Zn.symbol,ii):Ge(ii,Zn.symbol,O,67108868,0,!0);break;case 312:if(Ov(O))break;nt.commonJsModuleIndicator?Ge(nt.symbol.exports,nt.symbol,O,1048580,0):Fr(O,1,111550);break;case 267:break;default:x.failBadSyntaxKind(nt)}}function Re(O,Ee,nt){Ge(nt,Ee,O,4,0,!0,!0),Lt(O,Ee)}function Lt(O,Ee){Ee&&(Ee.assignmentDeclarationMembers||(Ee.assignmentDeclarationMembers=new Map)).set(rs(O),O)}function Un(O){O.expression.kind===110?fu(O):D0(O)&&O.parent.parent.kind===312&&(Fv(O.expression)?Zo(O,O.parent):sl(O))}function yo(O){ja(O.left,O),ja(O.right,O),Jc(O.left.expression,O.left,!1,!0)}function Xo(O){let Ee=xu(O.arguments[0].expression);Ee&&Ee.valueDeclaration&&ne(Ee,Ee.valueDeclaration,32),Gl(O,Ee,!0)}function Zo(O,Ee){let nt=O.expression,Gt=nt.expression;ja(Gt,nt),ja(nt,O),ja(O,Ee),Jc(Gt,O,!0,!0)}function Ql(O){let Ee=xu(O.arguments[0]),nt=O.parent.parent.kind===312;Ee=_l(Ee,O.arguments[0],nt,!1,!1),Gl(O,Ee,!1)}function gc(O){var Ee;let nt=xu(O.left.expression,l)||xu(O.left.expression,o);if(!ir(O)&&!fie(nt))return;let Gt=hR(O.left);if(!(Fe(Gt)&&((Ee=I3(o,Gt.escapedText))==null?void 0:Ee.flags)&2097152))if(ja(O.left,O),ja(O.right,O),Fe(O.left.expression)&&o===e&&Z0(e,O.left.expression))tp(O);else if(Ov(O)){Ws(O,67108868,"__computed");let Zn=_l(nt,O.left.expression,Zl(O.left),!1,!1);Lt(O,Zn)}else sl(na(O.left,yT))}function sl(O){x.assert(!Fe(O)),ja(O.expression,O),Jc(O.expression,O,!1,!1)}function _l(O,Ee,nt,Gt,Zn){return O?.flags&2097152||(nt&&!Gt&&(O=Pf(Ee,O,(no,La,ka)=>{if(La)return ne(La,no,67110400),La;{let wl=ka?ka.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=aa());return Ge(wl,ka,no,67110400,110735)}})),Zn&&O&&O.valueDeclaration&&ne(O,O.valueDeclaration,32)),O}function Gl(O,Ee,nt){if(!Ee||!lf(Ee))return;let Gt=nt?Ee.members||(Ee.members=aa()):Ee.exports||(Ee.exports=aa()),Zn=0,ii=0;ws(AI(O))?(Zn=8192,ii=103359):ia(O)&&gT(O)&&(gt(O.arguments[2].properties,Xr=>{let no=Po(Xr);return!!no&&Fe(no)&&gr(no)==="set"})&&(Zn|=65540,ii|=78783),gt(O.arguments[2].properties,Xr=>{let no=Po(Xr);return!!no&&Fe(no)&&gr(no)==="get"})&&(Zn|=32772,ii|=46015)),Zn===0&&(Zn=4,ii=0),Ge(Gt,Ee,O,Zn|67108864,ii&-67108865)}function Zl(O){return dr(O.parent)?Fu(O.parent).parent.kind===312:O.parent.parent.kind===312}function Jc(O,Ee,nt,Gt){let Zn=xu(O,l)||xu(O,o),ii=Zl(Ee);Zn=_l(Zn,Ee.expression,ii,nt,Gt),Gl(Ee,Zn,nt)}function lf(O){if(O.flags&1072)return!0;let Ee=O.valueDeclaration;if(Ee&&ia(Ee))return!!AI(Ee);let nt=Ee?wi(Ee)?Ee.initializer:dr(Ee)?Ee.right:kr(Ee)&&dr(Ee.parent)?Ee.parent.right:void 0:void 0;if(nt=nt&&N2(nt),nt){let Gt=Fv(wi(Ee)?Ee.name:dr(Ee)?Ee.left:Ee);return!!sE(dr(nt)&&(nt.operatorToken.kind===57||nt.operatorToken.kind===61)?nt.right:nt,Gt)}return!1}function Fu(O){for(;dr(O.parent);)O=O.parent;return O.parent}function xu(O,Ee=o){if(Fe(O))return I3(Ee,O.escapedText);{let nt=xu(O.expression);return nt&&nt.exports&&nt.exports.get(Lg(O))}}function Pf(O,Ee,nt){if(Z0(e,O))return e.symbol;if(Fe(O))return nt(O,xu(O),Ee);{let Gt=Pf(O.expression,Ee,nt),Zn=M2(O);return Ki(Zn)&&x.fail("unexpected PrivateIdentifier"),nt(Zn,Gt&&Gt.exports&&Gt.exports.get(Lg(O)),Gt)}}function z_(O){!e.commonJsModuleIndicator&&bu(O,!1)&&ys(O)}function Ah(O){if(O.kind===263)ml(O,32,899503);else{let Zn=O.name?O.name.escapedText:"__class";Ws(O,32,Zn),O.name&&me.add(O.name.escapedText)}let{symbol:Ee}=O,nt=fe(4194308,"prototype"),Gt=Ee.exports.get(nt.escapedName);Gt&&(O.name&&ja(O.name,O),e.bindDiagnostics.push(re(Gt.declarations[0],f.Duplicate_identifier_0,vl(nt)))),Ee.exports.set(nt.escapedName,nt),nt.parent=Ee}function Hg(O){return A0(O)?ml(O,128,899967):ml(O,256,899327)}function Fd(O){if(B&&ac(O,O.name),!Qo(O.name)){let Ee=O.kind===260?O:O.parent.parent;ir(O)&&R0(Ee)&&!tE(O)&&!(Zb(O)&32)?Fr(O,2097152,2097152):KV(O)?ml(O,2,111551):P0(O)?Fr(O,1,111551):Fr(O,1,111550)}}function Kg(O){if(!(O.kind===348&&o.kind!==330)&&(B&&!(O.flags&33554432)&&ac(O,O.name),Qo(O.name)?Ws(O,1,"__"+O.parent.parameters.indexOf(O)):Fr(O,1,111551),dp(O,O.parent))){let Ee=O.parent.parent;Ge(Ee.symbol.members,Ee.symbol,O,4|(O.questionToken?16777216:0),0)}}function Sp(O){!e.isDeclarationFile&&!(O.flags&33554432)&&SN(O)&&(Y|=4096),al(O),B?(tn(O),ml(O,16,110991)):Fr(O,16,110991)}function lg(O){!e.isDeclarationFile&&!(O.flags&33554432)&&SN(O)&&(Y|=4096),m&&(O.flowNode=m),al(O);let Ee=O.name?O.name.escapedText:"__function";return Ws(O,16,Ee)}function zu(O,Ee,nt){return!e.isDeclarationFile&&!(O.flags&33554432)&&SN(O)&&(Y|=4096),m&&kF(O)&&(O.flowNode=m),Ov(O)?Ws(O,Ee,"__computed"):Fr(O,Ee,nt)}function Q(O){let Ee=Fn(O,nt=>nt.parent&&ZI(nt.parent)&&nt.parent.extendsType===nt);return Ee&&Ee.parent}function rt(O){if(nm(O.parent)){let Ee=QF(O.parent);Ee?(x.assertNode(Ee,lh),Ee.locals??(Ee.locals=aa()),Ge(Ee.locals,void 0,O,262144,526824)):Fr(O,262144,526824)}else if(O.parent.kind===195){let Ee=Q(O.parent);Ee?(x.assertNode(Ee,lh),Ee.locals??(Ee.locals=aa()),Ge(Ee.locals,void 0,O,262144,526824)):Ws(O,262144,he(O))}else Fr(O,262144,526824)}function wt(O){let Ee=Vg(O);return Ee===1||Ee===2&&B0(t)}function zt(O){if(!(m.flags&1))return!1;if(m===ge&&(l2(O)&&O.kind!==242||O.kind===263||O.kind===267&&wt(O))&&(m=q,!t.allowUnreachableCode)){let nt=coe(t)&&!(O.flags&33554432)&&(!Ml(O)||!!(Ry(O.declarationList)&7)||O.declarationList.declarations.some(Gt=>!!Gt.initializer));bGe(O,(Gt,Zn)=>de(nt,Gt,Zn,f.Unreachable_code_detected))}return!0}}function bGe(e,t){if(Hi(e)&&iIe(e)&&Ko(e.parent)){let{statements:r}=e.parent,i=dU(r,e);LG(i,iIe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function iIe(e){return!Ec(e)&&!EGe(e)&&!hE(e)&&!(Ml(e)&&!(Ry(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function EGe(e){switch(e.kind){case 264:case 265:return!0;case 267:return Vg(e)!==1;case 266:return $r(e,4096);default:return!1}}function Z0(e,t){let r=0,i=AL();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),hT(t)||Yh(t))return!0;if(Fe(t)){let o=I3(e,t.escapedText);if(o&&o.valueDeclaration&&wi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),Mc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function mK(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(kF(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 $o(e.parent)||Al(e.parent)?0:34}return 0}function I3(e,t){var r,i,o,s;let l=(i=(r=ri(e,lh))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Yi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(b_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var _K,hK,oIe,SGe=bt({"src/compiler/binder.ts"(){"use strict";ea(),nT(),_K=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(_K||{}),hK=(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))(hK||{}),oIe=vGe()}});function Mse(e,t,r,i,o,s,l,d,p,h){return m;function m(y=()=>!0){let E=[],S=[];return{walkType:me=>{try{return A(me),{visitedTypes:cI(E),visitedSymbols:cI(S)}}finally{Gh(E),Gh(S)}},walkSymbol:me=>{try{return Z(me),{visitedTypes:cI(E),visitedSymbols:cI(S)}}finally{Gh(E),Gh(S)}}};function A(me){if(!(!me||E[me.id]||(E[me.id]=me,Z(me.symbol)))){if(me.flags&524288){let q=me,J=q.objectFlags;J&4&&N(me),J&32&&Y(me),J&3&&ce(me),J&24&&z(q)}me.flags&262144&&D(me),me.flags&3145728&&w(me),me.flags&4194304&&j(me),me.flags&8388608&&K(me)}}function N(me){A(me.target),gn(h(me),A)}function D(me){A(d(me))}function w(me){gn(me.types,A)}function j(me){A(me.type)}function K(me){A(me.objectType),A(me.indexType),A(me.constraint)}function Y(me){A(me.typeParameter),A(me.constraintType),A(me.templateType),A(me.modifiersType)}function B(me){let ge=t(me);ge&&A(ge.type),gn(me.typeParameters,A);for(let q of me.parameters)Z(q);A(e(me)),A(r(me))}function ce(me){z(me),gn(me.typeParameters,A),gn(i(me),A),A(me.thisType)}function z(me){let ge=o(me);for(let q of ge.indexInfos)A(q.keyType),A(q.type);for(let q of ge.callSignatures)B(q);for(let q of ge.constructSignatures)B(q);for(let q of ge.properties)Z(q)}function Z(me){if(!me)return!1;let ge=ba(me);if(S[ge])return!1;if(S[ge]=me,!y(me))return!0;let q=s(me);return A(q),me.exports&&me.exports.forEach(Z),gn(me.declarations,J=>{if(J.type&&J.type.kind===186){let re=J.type,pe=l(p(re.exprName));Z(pe)}}),!1}}}var TGe=bt({"src/compiler/symbolWalker.ts"(){"use strict";ea()}});function gw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Yc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return XR(r,i.fileName)?[3,2]:[2];if(du(r)===1)return p===2?[2,1]:[1,2];let h=XR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(O0(o))return 2;if(El(o,"/index"))return 1}return yoe(t,d??i.impliedNodeFormat,r,i)}}function AGe(e,t,r,i,o,s,l={}){let d=aIe(e,t,r,i,o,gw({},e,t,s),{},l);if(d!==s)return d}function x3(e,t,r,i,o,s={}){return aIe(e,t,r,i,o,gw({},e,t),{},s)}function IGe(e,t,r,i,o,s={}){let l=gK(t.fileName,i),d=fIe(l,r,i,o,s);return Wl(d,p=>kse(p,l,t,i,e,o,!0,s.overrideImportMode))}function aIe(e,t,r,i,o,s,l,d={}){let p=gK(r,o),h=fIe(p,i,o,l,d);return Wl(h,m=>kse(m,p,t,o,e,l,void 0,d.overrideImportMode))||dIe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function xGe(e,t,r,i,o={}){return sIe(e,t,r,i,o)[0]}function sIe(e,t,r,i,o={}){var s;let l=SF(e);if(!l)return Xe;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function lIe(e,t,r,i,o,s,l={}){return cIe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function cIe(e,t,r,i,o,s,l={},d){let p=!1,h=CGe(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,y,E,S]=sIe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!y)return{moduleSpecifiers:Xe,computedWithoutCache:p};p=!0,E||(E=mIe(gK(i.fileName,o),y.originalFileName,o));let A=RGe(E,r,i,o,s,l,d);return S?.set(i.path,y.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function RGe(e,t,r,i,o,s={},l){let d=gK(r.fileName,i),p=gw(o,t,r),h=gn(e,N=>gn(i.getFileIncludeReasons().get(tl(N.path,i.getCurrentDirectory(),d.getCanonicalFileName)),D=>{if(D.kind!==3||D.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Ule(r,D.index,t))return;let w=kw(r,D.index).text;return p.relativePreference!==1||!Lp(w)?w:void 0}));if(h)return[h];let m=gt(e,N=>N.isInNodeModules),y,E,S,A;for(let N of e){let D=N.isInNodeModules?kse(N,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(y=Tn(y,D),D&&N.isRedirect)return y;if(!D){let w=dIe(N.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,N.isRedirect);if(!w)continue;N.isRedirect?S=Tn(S,w):sV(w)?TE(w)?A=Tn(A,w):E=Tn(E,w):(l||!m||N.isInNodeModules)&&(A=Tn(A,w))}}return E?.length?E:S?.length?S:y?.length?y:x.checkDefined(A)}function gK(e,t){e=ho(e,t.getCurrentDirectory());let r=Nd(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=oi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function dIe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:y,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),N=m&&MGe(m,e,y,S,A,r)||yw(h0(_m(y,e,S)),A,r);if(!p&&!h&&!Y6(r)||l===0)return d?void 0:N;let D=ho(s6(r,i)||p,i.getCurrentDirectory()),w=yIe(e,D,S);if(!w)return d?void 0:N;let j=d?void 0:PGe(e,y,r,i,o),K=d||j===void 0?h&&_Ie(w,h,A,i,r):void 0;if(d)return K;let Y=j??(K===void 0&&p!==void 0?yw(w,A,r):K);if(!Y)return N;if(l===1&&!Lp(Y))return Y;if(l===3&&!Lp(Y)){let B=r.configFilePath?tl(oi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ce=tl(e,B,S),z=ao(E,B),Z=ao(ce,B);if(z&&!Z||!z&&Z)return Y;let me=Lse(i,oi(ce)),ge=Lse(i,y),q=!pR(i);return DGe(me,ge,q)?N:Y}return vIe(Y)||R3(N)e.fileExists(Yr(r,"package.json"))?r:void 0)}function pIe(e,t,r,i,o){var s;let l=My(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=tl(t,d,l),m=r.redirectTargetsMap.get(h)||Xe,E=[...p?[p]:Xe,t,...m].map(w=>ho(w,d)),S=!oo(E,JN);if(!i){let w=gn(E,j=>!(S&&JN(j))&&o(j,p===j));if(w)return w}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),N=ho(t,d);return A&&hm(oi(N),w=>{let j=A.get(Bc(tl(w,d,l)));if(j)return cV(e,w,l)?!1:gn(E,K=>{if(!cV(K,w,l))return;let Y=_m(w,K,l);for(let B of j){let ce=Av(B,Y),z=o(ce,K===p);if(S=!0,z)return z}})})||(i?gn(E,w=>S&&JN(w)?void 0:o(w,w===p)):void 0)}function fIe(e,t,r,i,o={}){var s;let l=tl(e.importingSourceFileName,r.getCurrentDirectory(),My(r)),d=tl(t,r.getCurrentDirectory(),My(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=mIe(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function mIe(e,t,r){let i=new Map,o=!1;pIe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=TE(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=Bc(l),p;i.forEach(({path:m,isRedirect:y,isInNodeModules:E},S)=>{ao(m,d)&&((p||(p=[])).push({path:S,isRedirect:y,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(uIe),s.push(...p));let h=oi(l);if(h===l)break;l=h}if(i.size){let l=Wo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(uIe),s.push(...l)}return s}function CGe(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>qV(l)&&(!T0(l)||!Yc(Xf(l.name))));if(i)return i.name.text;let s=to(e.declarations,l=>{var d,p,h,m;if(!ql(l))return;let y=N(l);if(!((d=y?.parent)!=null&&d.parent&&N_(y.parent)&&Md(y.parent.parent)&&Yi(y.parent.parent.parent)))return;let E=(m=(h=(p=y.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return y.parent.parent;function N(D){for(;D.flags&8;)D=D.parent;return D}})[0];if(s)return s.name.text}function _Ie(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=ma(d),h=p.indexOf("*"),m=r.map(y=>({ending:y,value:yw(e,[y],o)}));if(Wg(p)&&m.push({ending:void 0,value:e}),h!==-1){let y=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=y.length+E.length&&ao(A,y)&&El(A,E)&&s({ending:S,value:A})){let N=A.substring(y.length,A.length-E.length);if(!Lp(N))return zI(l,N)}}else if(gt(m,y=>y.ending!==0&&p===y.value)||gt(m,y=>y.ending===0&&p===y.value&&s(y)))return l}function s({ending:l,value:d}){return l!==0||d===yw(e,[l],o,i)}}function D3(e,t,r,i,o,s,l,d,p){if(typeof s=="string"){let h=!pR(t),m=()=>t.getCommonSourceDirectory(),y=p&&JK(r,e,h,m),E=p&&KK(r,e,h,m),S=ho(Yr(i,s),void 0),A=WI(r)?Eu(r)+Ose(r,e):void 0;switch(d){case 0:if(A&&Rg(A,S,h)===0||Rg(r,S,h)===0||y&&Rg(y,S,h)===0||E&&Rg(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&mm(S,A,h)){let j=_m(S,A,!1);return{moduleFileToTry:ho(Yr(Yr(o,s),j),void 0)}}if(mm(S,r,h)){let j=_m(S,r,!1);return{moduleFileToTry:ho(Yr(Yr(o,s),j),void 0)}}if(y&&mm(S,y,h)){let j=_m(S,y,!1);return{moduleFileToTry:Yr(o,j)}}if(E&&mm(S,E,h)){let j=_m(S,E,!1);return{moduleFileToTry:Yr(o,j)}}break;case 2:let N=S.indexOf("*"),D=S.slice(0,N),w=S.slice(N+1);if(A&&ao(A,D,h)&&El(A,w,h)){let j=A.slice(D.length,A.length-w.length);return{moduleFileToTry:zI(o,j)}}if(ao(r,D,h)&&El(r,w,h)){let j=r.slice(D.length,r.length-w.length);return{moduleFileToTry:zI(o,j)}}if(y&&ao(y,D,h)&&El(y,w,h)){let j=y.slice(D.length,y.length-w.length);return{moduleFileToTry:zI(o,j)}}if(E&&ao(E,D,h)&&El(E,w,h)){let j=E.slice(D.length,E.length-w.length);return{moduleFileToTry:zI(o,j)}}break}}else{if(Array.isArray(s))return gn(s,h=>D3(e,t,r,i,o,h,l,d,p));if(typeof s=="object"&&s!==null){for(let h of Vh(s))if(h==="default"||l.indexOf(h)>=0||_w(l,h)){let m=s[h],y=D3(e,t,r,i,o,m,l,d,p);if(y)return y}}}}function NGe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&T3(s)?gn(Vh(s),d=>{let p=ho(Yr(o,d),void 0),h=El(d,"/")?1:d.includes("*")?2:0;return D3(e,t,r,i,p,s[d],l,h,!1)}):D3(e,t,r,i,o,s,l,0,!1)}function PGe(e,t,r,i,o){var s,l,d;if(!i.readFile||!Y6(r))return;let p=Lse(i,t);if(!p)return;let h=Yr(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(yse(m)||!i.fileExists(h))return;let y=m?.contents.packageJsonContent||h6(i.readFile(h)),E=y?.imports;if(!E)return;let S=$v(r,o);return(d=gn(Vh(E),A=>{if(!ao(A,"#")||A==="#"||ao(A,"#/"))return;let N=El(A,"/")?1:A.includes("*")?2:0;return D3(r,i,e,p,A,E[A],S,N,!0)}))==null?void 0:d.moduleFileToTry}function MGe(e,t,r,i,o,s){let l=hIe(t,e,i);if(l===void 0)return;let d=hIe(r,e,i),p=va(d,m=>mn(l,y=>h0(_m(m,y,i)))),h=jG(p,sk);if(h)return yw(h,o,s)}function kse({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=G6(e);if(!m)return;let E=gw(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let Y=m.packageRootIndex,B;for(;;){let{moduleFileToTry:ce,packageRootPath:z,blockedByExports:Z,verbatimFromExports:me}=K(Y);if(du(l)!==1){if(Z)return;if(me)return ce}if(z){S=z,A=!0;break}if(B||(B=ce),Y=e.indexOf(nl,Y+1),Y===-1){S=yw(B,E,l,s);break}}}if(t&&!A)return;let N=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),D=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(ao(i,D)||N&&ao(r(N),D)))return;let w=S.substring(m.topLevelPackageNameIndex+1),j=DP(w);return du(l)===1&&j===w?void 0:j;function K(Y){var B,ce;let z=e.substring(0,Y),Z=Yr(z,"package.json"),me=e,ge=!1,q=(ce=(B=s.getPackageJsonInfoCache)==null?void 0:B.call(s))==null?void 0:ce.getPackageJsonInfo(Z);if(v3(q)||q===void 0&&s.fileExists(Z)){let J=q?.contents.packageJsonContent||h6(s.readFile(Z)),re=h||o.impliedNodeFormat;if(X6(l)){let fe=z.substring(m.topLevelPackageNameIndex+1),ne=DP(fe),he=$v(l,re),Ce=J?.exports?NGe(l,s,e,z,ne,J.exports,he):void 0;if(Ce)return{...Ce,verbatimFromExports:!0};if(J?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let pe=J?.typesVersions?g3(J.typesVersions):void 0;if(pe){let fe=e.slice(z.length+1),ne=_Ie(fe,pe.paths,E,s,l);ne===void 0?ge=!0:me=Yr(z,ne)}let xe=J?.typings||J?.types||J?.main||"index.js";if(No(xe)&&!(ge&&cU(w6(pe.paths),xe))){let fe=tl(xe,z,r),ne=r(me);if(Eu(fe)===Eu(ne))return{packageRootPath:z,moduleFileToTry:me};if(J?.type!=="module"&&!bc(ne,vk)&&ao(ne,fe)&&oi(ne)===Xb(fe)&&Eu(nc(ne))==="index")return{packageRootPath:z,moduleFileToTry:me}}}else{let J=r(me.substring(m.packageRootIndex+1));if(J==="index.d.ts"||J==="index.js"||J==="index.ts"||J==="index.tsx")return{moduleFileToTry:me,packageRootPath:z}}return{moduleFileToTry:me}}}function LGe(e,t){if(!e.fileExists)return;let r=pm(BN({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function hIe(e,t,r){return to(t,i=>{let o=yIe(e,i,r);return o!==void 0&&vIe(o)?void 0:o})}function yw(e,t,r,i){if(bc(e,[".json",".mjs",".cjs"]))return e;let o=Eu(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if(bc(e,[".mts",".cts"])&&l!==-1&&lh===0||h===1);return p!==-1&&p(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Wse||{})}}),eS={};xa(eS,{RelativePreference:()=>Wse,countPathComponents:()=>R3,forEachFileNameOfModule:()=>pIe,getModuleSpecifier:()=>x3,getModuleSpecifierPreferences:()=>gw,getModuleSpecifiers:()=>lIe,getModuleSpecifiersWithCacheInfo:()=>cIe,getNodeModulesPackageName:()=>IGe,tryGetJSExtensionForFile:()=>Ose,tryGetModuleSpecifiersFromCache:()=>xGe,tryGetRealFileNameForNonJsDeclarationFileName:()=>gIe,updateModuleSpecifier:()=>AGe});var zse=bt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";Fse()}});function kGe(){this.flags=0}function rs(e){return e.id||(e.id=Vse,Vse++),e.id}function ba(e){return e.id||(e.id=Gse,Gse++),e.id}function yK(e,t){let r=Vg(e);return r===1||t&&r===2}function Bse(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=sd.getSymbolConstructor(),p=sd.getTypeConstructor(),h=sd.getSignatureConstructor(),m=0,y=0,E=0,S=0,A=0,N=0,D,w,j=!1,K=aa(),Y=[1],B=e.getCompilerOptions(),ce=ns(B),z=Ld(B),Z=!!B.experimentalDecorators,me=tP(B),ge=uoe(B),q=RT(B),J=cu(B,"strictNullChecks"),re=cu(B,"strictFunctionTypes"),pe=cu(B,"strictBindCallApply"),xe=cu(B,"strictPropertyInitialization"),fe=cu(B,"noImplicitAny"),ne=cu(B,"noImplicitThis"),he=cu(B,"useUnknownInCatchVariables"),Ce=!!B.keyofStringsOnly,Ge=Ce?1:0,ve=B.suppressExcessPropertyErrors?0:8192,Ae=B.exactOptionalPropertyTypes,De=pft(),Le=Hht(),Et=U_(),be=aa(),ze=Ka(4,"undefined");ze.declarations=[];var tt=Ka(1536,"globalThis",8);tt.exports=be,tt.declarations=[],be.set(tt.escapedName,tt);var Wt=Ka(4,"arguments"),_t=Ka(4,"require"),Je=B.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",pt=!B.verbatimModuleSyntax||!!B.importsNotUsedAsValues,Zt,en,Dn=0,Kn,pn=0;let Xt={getNodeCount:()=>tu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>tu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>tu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:Gu.size,identity:np.size,subtype:Ih.size,strictSubtype:Mf.size}),isUndefinedSymbol:n=>n===ze,isArgumentsSymbol:n=>n===Wt,isUnknownSymbol:n=>n===lt,getMergedSymbol:es,getDiagnostics:G6e,getGlobalDiagnostics:sht,getRecursionIdentity:UZ,getUnmatchedProperties:hye,getTypeOfSymbolAtLocation:(n,a)=>{let c=Do(a);return c?edt(n,c):ut},getTypeOfSymbol:sr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=Do(n,Ao);return c===void 0?x.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(x.assert(dp(c,c.parent)),SM(c,pl(a)))},getDeclaredTypeOfSymbol:Xs,getPropertiesOfType:ms,getPropertyOfType:(n,a)=>ha(n,pl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=Do(c);if(!u)return;let _=pl(a),g=Eee(_,u);return g?tve(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Ue(n,pl(a)),getIndexInfoOfType:(n,a)=>vg(n,a===0?Ne:It),getIndexInfosOfType:_u,getIndexInfosOfIndexSymbol:dge,getSignaturesOfType:Jo,getIndexTypeOfType:(n,a)=>t0(n,a===0?Ne:It),getIndexType:n=>J_(n),getBaseTypes:Dp,getBaseTypeOfLiteralType:my,getWidenedType:Hp,getTypeFromTypeNode:n=>{let a=Do(n,ji);return a?Ti(a):ut},getParameterType:p_,getParameterIdentifierInfoAtPosition:Npt,getPromisedTypeOfPromise:U8,getAwaitedType:n=>eI(n),getReturnTypeOfSignature:ds,isNullableType:F5,getNullableType:S5,getNonNullableType:_y,getNonOptionalType:qZ,getTypeArguments:Vs,typeToTypeNode:Et.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Et.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Et.signatureToSignatureDeclaration,symbolToEntityName:Et.symbolToEntityName,symbolToExpression:Et.symbolToExpression,symbolToNode:Et.symbolToNode,symbolToTypeParameterDeclarations:Et.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Et.symbolToParameterDeclaration,typeParameterToDeclaration:Et.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=Do(n);return c?lht(c,a):[]},getSymbolAtLocation:n=>{let a=Do(n);return a?zm(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=Do(n);return a?hht(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=Do(n);return a?ght(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=Do(n,Kd);return a?yht(a):void 0},getExportSymbolOfSymbol(n){return es(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=Do(n);return a?fx(a):ut},getTypeOfAssignmentPattern:n=>{let a=Do(n,sN);return a&&$ee(a)||ut},getPropertySymbolOfDestructuringAssignment:n=>{let a=Do(n,Fe);return a?vht(a):void 0},signatureToString:(n,a,c,u)=>Nh(n,Do(a),c,u),typeToString:(n,a,c)=>Vn(n,Do(a),c),symbolToString:(n,a,c,u)=>Si(n,Do(a),c,u),typePredicateToString:(n,a,c)=>Ph(n,Do(a),c),writeSignature:(n,a,c,u,_)=>Nh(n,Do(a),c,u,_),writeType:(n,a,c,u)=>Vn(n,Do(a),c,u),writeSymbol:(n,a,c,u,_)=>Si(n,Do(a),c,u,_),writeTypePredicate:(n,a,c,u)=>Ph(n,Do(a),c,u),getAugmentedPropertiesOfType:nbe,getRootSymbols:X6e,getSymbolOfExpando:Nee,getContextualType:(n,a)=>{let c=Do(n,ht);if(c)return a&4?uo(c,()=>Hu(c,a)):Hu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=Do(n,Pg);return a?Gye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=Do(n,E0);return c&&Bye(c,a)},getContextualTypeForJsxAttribute:n=>{let a=Do(n,fF);return a&&cWe(a,void 0)},isContextSensitive:zf,getTypeOfPropertyOfContextualType:d0,getFullyQualifiedName:Vp,getResolvedSignature:(n,a,c)=>Li(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Kt,getResolvedSignatureForSignatureHelp:(n,a,c)=>hi(n,()=>Li(n,a,c,16)),getExpandedParameters:dwe,hasEffectiveRestParameter:zh,containsArgumentsReference:sge,getConstantValue:n=>{let a=Do(n,e4e);return a?rbe(a):void 0},isValidPropertyAccess:(n,a)=>{let c=Do(n,fre);return!!c&&zut(c,pl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=Do(n,kr);return!!u&&zWe(u,a,c)},getSignatureFromDeclaration:n=>{let a=Do(n,$o);return a?lm(a):void 0},isImplementationOfOverload:n=>{let a=Do(n,$o);return a?Q6e(a):void 0},getImmediateAliasedSymbol:Kye,getAliasedSymbol:Wc,getEmitResolver:Zy,getExportsOfModule:AA,getExportsAndPropertiesOfModule:JD,forEachExportAndPropertyOfModule:qD,getSymbolWalker:Mse(Sat,Ff,ds,Dp,l_,sr,Wm,Cu,Fp,Vs),getAmbientModules:kgt,getJsxIntrinsicTagNamesAt:yut,isOptionalParameter:n=>{let a=Do(n,Ao);return a?_8(a):!1},tryGetMemberInModuleExports:(n,a)=>IA(pl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>XD(pl(n),a),tryFindAmbientModule:n=>hZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>hZ(n,!1),getApparentType:Nu,getUnionType:ei,isTypeAssignableTo:ya,createAnonymousType:Ds,createSignature:yg,createSymbol:Ka,createIndexInfo:Oh,getAnyType:()=>G,getStringType:()=>Ne,getStringLiteralType:Uu,getNumberType:()=>It,getNumberLiteralType:d_,getBigIntType:()=>Dt,createPromiseType:X5,createArrayType:Bd,getElementTypeOfArrayType:E5,getBooleanType:()=>gi,getFalseType:n=>n?Ut:En,getTrueType:n=>n?wn:Bn,getVoidType:()=>er,getUndefinedType:()=>Me,getNullType:()=>ue,getESSymbolType:()=>xi,getNeverType:()=>Fr,getOptionalType:()=>H,getPromiseType:()=>o5(!1),getPromiseLikeType:()=>$we(!1),getAsyncIterableType:()=>{let n=xZ(!1);if(n!==Lo)return n},isSymbolAccessible:ki,isArrayType:Gf,isTupleType:wa,isArrayLikeType:uv,isEmptyAnonymousObjectType:Fh,isTypeInvalidDueToUnionDiscriminant:rat,getExactOptionalProperties:Nlt,getAllPossiblePropertiesOfTypes:iat,getSuggestedSymbolForNonexistentProperty:ive,getSuggestionForNonexistentProperty:ove,getSuggestedSymbolForNonexistentJSXAttribute:WWe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>ave(n,pl(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>wut(n,pl(a),c),getSuggestedSymbolForNonexistentModule:Tee,getSuggestionForNonexistentExport:Out,getSuggestedSymbolForNonexistentClassMember:OWe,getBaseConstraintOfType:zd,getDefaultFromTypeParameter:n=>n&&n.flags&262144?OA(n):void 0,resolveName(n,a,c,u){return hl(a,pl(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Vi(WE(n)),getJsxFragmentFactory:n=>{let a=obe(n);return a&&Vi(Fp(a).escapedText)},getAccessibleSymbolChain:yb,getTypePredicateOfSignature:Ff,resolveExternalModuleName:n=>{let a=Do(n,ht);return a&&mu(a,a,!0)},resolveExternalModuleSymbol:Ip,tryGetThisTypeAt:(n,a,c)=>{let u=Do(n);return u&&Oye(u,a,c)},getTypeArgumentConstraint:n=>{let a=Do(n,ji);return a&&Uft(a)},getSuggestionDiagnostics:(n,a)=>{let c=Do(n,Yi)||x.fail("Could not determine parsed source file.");if(jN(c,B,e))return Xe;let u;try{return i=a,ebe(c),x.assert(!!(Qr(c).flags&1)),u=Hr(u,sA.getDiagnostics(c.fileName)),r6e(B6e(c),(_,g,T)=>{!Vx(_)&&!z6e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||Xe}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Xt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Nr,isDeclarationVisible:i_,isPropertyAccessible:lve,getTypeOnlyAliasDeclaration:Lf,getMemberOverrideModifierStatus:S_t,isTypeParameterPossiblyReferenced:p5,typeHasCallOrConstructSignatures:Qee};function Kt(n,a){let c=new Set,u=[];uo(a,()=>Li(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,hi(a,()=>Li(n,u,void 0,0));for(let _ of u)c.add(_);return Wo(c)}function hi(n,a){if(n=Fn(n,LV),n){let c=[],u=[];for(;n;){let g=Qr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,F0(n)){let T=qi(Sr(n)),P=T.type;u.push([T,P]),T.type=void 0}n=Fn(n.parent,LV)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function uo(n,a){let c=Fn(n,E0);if(c){let _=n;do Qr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}j=!0;let u=hi(n,a);if(j=!1,c){let _=n;do Qr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function Li(n,a,c,u){let _=Do(n,E0);Zt=c;let g=_?vC(_,a,u):void 0;return Zt=void 0,g}var So=new Map,Qn=new Map,Ur=new Map,Er=new Map,on=new Map,Ye=new Map,Ot=new Map,In=new Map,si=new Map,yi=new Map,$i=new Map,Io=new Map,ua=new Map,Ba=new Map,vn=new Map,kn=[],Be=new Map,ct=new Set,lt=Ka(4,"unknown"),Rt=Ka(0,"__resolving__"),ae=new Map,ke=new Map,st=new Set,G=sc(1,"any"),et=sc(1,"any",262144,"auto"),Tt=sc(1,"any",void 0,"wildcard"),He=sc(1,"any",void 0,"blocked string"),ut=sc(1,"error"),Ft=sc(1,"unresolved"),hn=sc(1,"any",65536,"non-inferrable"),dn=sc(1,"intrinsic"),un=sc(2,"unknown"),U=sc(2,"unknown",void 0,"non-null"),Me=sc(32768,"undefined"),Nt=J?Me:sc(32768,"undefined",65536,"widening"),k=sc(32768,"undefined",void 0,"missing"),ie=Ae?k:Me,H=sc(32768,"undefined",void 0,"optional"),ue=sc(65536,"null"),We=J?ue:sc(65536,"null",65536,"widening"),Ne=sc(4,"string"),It=sc(8,"number"),Dt=sc(64,"bigint"),Ut=sc(512,"false",void 0,"fresh"),En=sc(512,"false"),wn=sc(512,"true",void 0,"fresh"),Bn=sc(512,"true");wn.regularType=Bn,wn.freshType=wn,Bn.regularType=Bn,Bn.freshType=wn,Ut.regularType=En,Ut.freshType=Ut,En.regularType=En,En.freshType=Ut;var gi=ei([En,Bn]),xi=sc(4096,"symbol"),er=sc(16384,"void"),Fr=sc(131072,"never"),go=sc(131072,"never",262144,"silent"),Pi=sc(131072,"never",void 0,"implicit"),Ri=sc(131072,"never",void 0,"unreachable"),Kr=sc(67108864,"object"),xo=ei([Ne,It]),xn=ei([Ne,It,xi]),Ls=Ce?Ne:xn,$l=ei([It,Dt]),Mo=ei([Ne,It,gi,Dt,ue,Me]),ss=FA(["",""],[It]),Ws=u5(n=>n.flags&262144?rlt(n):n,()=>"(restrictive mapper)"),ml=u5(n=>n.flags&262144?Tt:n,()=>"(permissive mapper)"),cd=sc(131072,"never",void 0,"unique literal"),mo=u5(n=>n.flags&262144?cd:n,()=>"(unique literal mapper)"),la,dd=u5(n=>(la&&(n===Ep||n===Rs||n===Ac)&&la(!0),n),()=>"(unmeasurable reporter)"),bs=u5(n=>(la&&(n===Ep||n===Rs||n===Ac)&&la(!1),n),()=>"(unreliable reporter)"),Ca=Ds(void 0,K,Xe,Xe,Xe),ul=Ds(void 0,K,Xe,Xe,Xe);ul.objectFlags|=2048;var Nf=Ka(2048,"__type");Nf.members=aa();var ac=Ds(Nf,K,Xe,Xe,Xe),xl=Ds(void 0,K,Xe,Xe,Xe),al=J?ei([Me,ue,xl]):un,Lo=Ds(void 0,K,Xe,Xe,Xe);Lo.instantiations=new Map;var tn=Ds(void 0,K,Xe,Xe,Xe);tn.objectFlags|=262144;var Fs=Ds(void 0,K,Xe,Xe,Xe),nd=Ds(void 0,K,Xe,Xe,Xe),ud=Ds(void 0,K,Xe,Xe,Xe),Ep=mf(),Rs=mf();Rs.constraint=Ep;var Ac=mf(),de=mf(),$=mf();$.constraint=de;var Pe=r5(1,"<>",0,G),yt=yg(void 0,void 0,void 0,Xe,G,void 0,0,0),cn=yg(void 0,void 0,void 0,Xe,ut,void 0,0,0),yr=yg(void 0,void 0,void 0,Xe,G,void 0,0,0),pr=yg(void 0,void 0,void 0,Xe,go,void 0,0,0),zr=Oh(It,Ne,!0),Di=new Map,Cr={get yieldType(){return x.fail("Not supported")},get returnType(){return x.fail("Not supported")},get nextType(){return x.fail("Not supported")}},qo=mv(G,G,G),bl=mv(G,G,un),Hc=mv(Fr,G,Me),zs={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Wat,getGlobalIterableType:xZ,getGlobalIterableIteratorType:Fat,getGlobalGeneratorType:zat,resolveIterationType:(n,a)=>eI(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},hc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Bat,getGlobalIterableType:Sge,getGlobalIterableIteratorType:Gat,getGlobalGeneratorType:Vat,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},ys,Kc=new Map,tp=[],Oc,im,fu,Re,Lt,Un,yo,Xo,Zo,Ql,gc,sl,_l,Gl,Zl,Jc,lf,Fu,xu,Pf,z_,Ah,Hg,Fd,Kg,Sp,lg,zu,Q,rt,wt,zt,O,Ee,nt,Gt,Zn,ii,Xr,no,La,ka,wl,pd,Ic,Tp,Bu,ob,ls,Dm,Cm,Ui,Jg,$y,Nm,pS,fS,cf=new Map,B_=0,df=0,qg=0,we=!1,qe=0,Pt,Bt,_n,Jn=[],fn=[],qn=[],fi=0,or=[],ni=[],cr=0,Yo=Uu(""),Ha=d_(0),$d=PZ({negative:!1,base10Value:"0"}),fd=[],Xg=[],LE=[],w1=0,kE=!1,kD=0,wD=10,OD=[],oA=[],mS=[],O1=[],WD=[],W1=[],F1=[],z1=[],B1=[],aA=[],G1=[],_S=[],hS=[],ab=[],sb=[],cg=[],wE=[],Qa=cR(),sA=cR(),FD=Ch(),OE,Yg,Ih=new Map,Mf=new Map,Gu=new Map,Ap=new Map,np=new Map,Qy=new Map,lA=aa();lA.set(ze.escapedName,ze);var zD=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",B.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Kht(),Xt;function V1(n){return n?vn.get(n):void 0}function lb(n,a){return n&&vn.set(n,a),a}function WE(n){if(n){let a=Gn(n);if(a)if(i1(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let _=To(c)?c[0]:c;if(a.localJsxFragmentFactory=l1(_.arguments.factory,ce),$e(a.localJsxFragmentFactory,yc,Xu),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Fp(a.localJsxFragmentFactory).escapedText}let u=obe(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Fp(u).escapedText}else{let c=j1(a);if(c)return a.localJsxNamespace=c}}return OE||(OE="React",B.jsxFactory?(Yg=l1(B.jsxFactory,ce),$e(Yg,yc),Yg&&(OE=Fp(Yg).escapedText)):B.reactNamespace&&(OE=pl(B.reactNamespace))),Yg||(Yg=L.createQualifiedName(L.createIdentifier(Vi(OE)),"createElement")),OE}function j1(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=To(a)?a[0]:a;if(n.localJsxFactory=l1(c.arguments.factory,ce),$e(n.localJsxFactory,yc,Xu),n.localJsxFactory)return n.localJsxNamespace=Fp(n.localJsxFactory).escapedText}}function yc(n){return fh(n,-1,-1),Sn(n,yc,void 0)}function Zy(n,a){return G6e(n,a),Le}function U1(n,a,...c){let u=n?Pr(n,a,...c):jl(a,...c),_=Qa.lookup(u);return _||(Qa.add(u),u)}function Zm(n,a,c,...u){let _=Ve(a,c,...u);return _.skippedOn=n,_}function cA(n,a,...c){return n?Pr(n,a,...c):jl(a,...c)}function Ve(n,a,...c){let u=cA(n,a,...c);return Qa.add(u),u}function e_(n,a){n?Qa.add(a):sA.add({...a,category:2})}function md(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Gn(a);e_(n,"message"in c?Qc(_,0,0,c,...u):rj(_,c));return}e_(n,"message"in c?Pr(a,c,...u):Mg(Gn(a),a,c))}function FE(n,a,c,...u){let _=Ve(n,c,...u);if(a){let g=Pr(n,f.Did_you_forget_to_use_await);Pa(_,g)}return _}function H1(n,a){let c=Array.isArray(n)?gn(n,vV):vV(n);return c&&Pa(a,Pr(c,f.The_declaration_was_marked_as_deprecated_here)),sA.add(a),a}function cb(n){let a=Ru(n);return a&&Nn(n.declarations)>1?a.flags&64?gt(n.declarations,ev):oo(n.declarations,ev):!!n.valueDeclaration&&ev(n.valueDeclaration)||Nn(n.declarations)&&oo(n.declarations,ev)}function ev(n){return!!(KS(n)&536870912)}function tv(n,a,c){let u=Pr(n,f._0_is_deprecated,c);return H1(a,u)}function EM(n,a,c,u){let _=c?Pr(n,f.The_signature_0_of_1_is_deprecated,u,c):Pr(n,f._0_is_deprecated,u);return H1(a,_)}function Ka(n,a,c){y++;let u=new d(n|33554432,a);return u.links=new Hse,u.links.checkFlags=c||0,u}function t_(n,a){let c=Ka(1,n);return c.links.type=a,c}function dA(n,a){let c=Ka(4,n);return c.links.type=a,c}function uA(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function zE(n,a){a.mergeId||(a.mergeId=jse,jse++),OD[a.mergeId]=n}function pA(n){let a=Ka(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),zE(a,n),a}function om(n,a,c=!1){if(!(n.flags&uA(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=Vl(n);if(_===lt)return a;n=pA(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&w2(n,a.valueDeclaration),Hr(n.declarations,a.declarations),a.members&&(n.members||(n.members=aa()),n_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=aa()),n_(n.exports,a.exports,c)),c||zE(n,a)}else if(n.flags&1024)n!==tt&&Ve(a.declarations&&Po(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Si(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,P=a.declarations&&Gn(a.declarations[0]),W=n.declarations&&Gn(n.declarations[0]),V=p2(P,B.checkJs),te=p2(W,B.checkJs),ye=Si(a);if(P&&W&&ys&&!_&&P!==W){let _e=Rg(P.path,W.path)===-1?P:W,je=_e===P?W:P,mt=WC(ys,`${_e.path}|${je.path}`,()=>({firstFile:_e,secondFile:je,conflictingSymbols:new Map})),At=WC(mt.conflictingSymbols,ye,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));V||u(At.firstFileLocations,a),te||u(At.secondFileLocations,n)}else V||am(a,T,ye,n),te||am(n,T,ye,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)yf(_,T)}}function am(n,a,c,u){gn(n.declarations,_=>{$g(_,a,c,u.declarations)})}function $g(n,a,c,u){let _=(sE(n,!1)?fj(n):Po(n))||n,g=U1(_,a,c);for(let T of u||Xe){let P=(sE(T,!1)?fj(T):Po(T))||T;if(P===_)continue;g.relatedInformation=g.relatedInformation||[];let W=Pr(P,f._0_was_also_declared_here,c),V=Pr(P,f.and_here);Nn(g.relatedInformation)>=5||gt(g.relatedInformation,te=>FN(te,V)===0||FN(te,W)===0)||Pa(g,Nn(g.relatedInformation)?V:W)}}function K1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=aa();return n_(c,n),n_(c,a),c}function n_(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?om(g,u,c):es(u))})}function BD(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(E_(_))n_(be,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=ty(n,n,g,!0);if(!T)return;if(T=Ip(T),T.flags&1920)if(gt(im,P=>T===P.symbol)){let P=om(_.symbol,T,!0);fu||(fu=new Map),fu.set(n.text,P)}else{if((c=T.exports)!=null&&c.get("__export")&&((u=_.symbol.exports)!=null&&u.size)){let P=Uhe(T,"resolvedExports");for(let[W,V]of Wo(_.symbol.exports.entries()))P.has(W)&&!T.exports.has(W)&&om(P.get(W),V)}om(T,_.symbol)}else Ve(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function gS(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?gn(T.declarations,u(Vi(g),c)):n.set(g,_)});function u(_,g){return T=>Qa.add(Pr(T,g,_))}}function qi(n){if(n.flags&33554432)return n.links;let a=ba(n);return oA[a]??(oA[a]=new Hse)}function Qr(n){let a=rs(n);return mS[a]||(mS[a]=new kGe)}function xh(n){return n.kind===312&&!wp(n)}function Vu(n,a,c){if(c){let u=es(n.get(a));if(u&&(x.assert((Tl(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&c||u.flags&2097152&&Td(u)&c))return u}}function SM(n,a){let c=n.parent,u=n.parent.parent,_=Vu(c.locals,a,111551),g=Vu(Cb(u.symbol),a,111551);return _&&g?[_,g]:x.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Qg(n,a){let c=Gn(n),u=Gn(a),_=uh(n);if(c!==u){if(z&&(c.externalModuleIndicator||u.externalModuleIndicator)||!xs(B)||TT(a)||n.flags&33554432||T(a,n))return!0;let W=e.getSourceFiles();return W.indexOf(c)<=W.indexOf(u)}if(a.flags&16777216||TT(a)||Tye(a))return!0;if(n.pos<=a.pos&&!(Uo(n)&&T2(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let W=dE(a,208);return W?Fn(W,Xa)!==Fn(n,Xa)||n.posYa(W)&&W.parent.parent===n);if(Uo(n))return!P(n,a,!1);if(dp(n,n.parent))return!(ge&&ad(n)===ad(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return ge&&ad(n)&&(Uo(n)||dp(n,n.parent))?!P(n,a,!0):!0;return!1;function g(W,V){switch(W.parent.parent.kind){case 243:case 248:case 250:if(vS(V,W,_))return!0;break}let te=W.parent.parent;return Fx(te)&&vS(V,te.expression,_)}function T(W,V){return!!Fn(W,te=>{if(te===_)return"quit";if($o(te))return!0;if(Al(te))return V.posW.end?!1:Fn(V,_e=>{if(_e===W)return"quit";switch(_e.kind){case 219:return!0;case 172:return te&&(Uo(W)&&_e.parent===W.parent||dp(W,W.parent)&&_e.parent===W.parent.parent)?"quit":!0;case 241:switch(_e.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function TM(n,a,c){let u=ns(B),_=a;if(Ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let P=Qr(_);return P.declarationRequiresScopeChange===void 0&&(P.declarationRequiresScopeChange=gn(_.parameters,g)||!1),!P.declarationRequiresScopeChange}return!1;function g(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 pc(P)?!ge:T(P.name);default:return TV(P)||Ud(P)?u<7:Xa(P)&&P.dotDotDotToken&&tm(P.parent)?u<4:ji(P)?!1:Go(P,T)||!1}}}function db(n){return cT(n)&&Ng(n.type)||hP(n)&&Ng(n.typeExpression)}function hl(n,a,c,u,_,g,T=!1,P=!0){return Bp(n,a,c,u,_,g,T,P,Vu)}function Bp(n,a,c,u,_,g,T,P,W){var V,te,ye;let _e=n,je,mt,At,rn,sn,nr=!1,Mn=n,an,On=!1;e:for(;n;){if(a==="const"&&db(n))return;if(s2(n)&&mt&&n.name===mt&&(mt=n,n=n.parent),lh(n)&&n.locals&&!xh(n)&&(je=W(n.locals,a,c))){let Yn=!0;if($o(n)&&mt&&mt!==n.body?(c&je.flags&788968&&mt.kind!==327&&(Yn=je.flags&262144?mt===n.type||mt.kind===169||mt.kind===348||mt.kind===349||mt.kind===168:!1),c&je.flags&3&&(TM(je,n,mt)?Yn=!1:je.flags&1&&(Yn=mt.kind===169||mt===n.type&&!!Fn(je.valueDeclaration,Ao)))):n.kind===194&&(Yn=mt===n.trueType),Yn)break e;je=void 0}switch(nr=nr||sm(n,mt),n.kind){case 312:if(!wp(n))break;On=!0;case 267:let Yn=((V=Sr(n))==null?void 0:V.exports)||K;if(n.kind===312||ql(n)&&n.flags&33554432&&!E_(n)){if(je=Yn.get("default")){let Ro=mR(je);if(Ro&&je.flags&c&&Ro.escapedName===a)break e;je=void 0}let $n=Yn.get(a);if($n&&$n.flags===2097152&&(cl($n,281)||cl($n,280)))break}if(a!=="default"&&(je=W(Yn,a,c&2623475)))if(Yi(n)&&n.commonJsModuleIndicator&&!((te=je.declarations)!=null&&te.some(qf)))je=void 0;else break e;break;case 266:if(je=W(((ye=Sr(n))==null?void 0:ye.exports)||K,a,c&8)){u&&em(B)&&!(n.flags&33554432)&&Gn(n)!==Gn(je.valueDeclaration)&&Ve(Mn,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Vi(a),Je,`${Vi(pf(n).escapedName)}.${Vi(a)}`);break e}break;case 172:if(!ra(n)){let $n=ny(n.parent);$n&&$n.locals&&W($n.locals,a,c&111551)&&(x.assertNode(n,Uo),rn=n)}break;case 263:case 231:case 264:if(je=W(Sr(n).members||K,a,c&788968)){if(!Zg(je,n)){je=void 0;break}if(mt&&ra(mt)){u&&Ve(Mn,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Zc(n)&&c&32){let $n=n.name;if($n&&a===$n.escapedText){je=n.symbol;break e}}break;case 233:if(mt===n.expression&&n.parent.token===96){let $n=n.parent.parent;if(ci($n)&&(je=W(Sr($n).members,a,c&788968))){u&&Ve(Mn,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(an=n.parent.parent,(ci(an)||an.kind===264)&&(je=W(Sr(an).members,a,c&788968))){u&&Ve(Mn,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(ns(B)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){je=Wt;break e}break;case 218:if(c&3&&a==="arguments"){je=Wt;break e}if(c&16){let $n=n.name;if($n&&a===$n.escapedText){je=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&($c(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let jn=iR(n);jn&&(n=jn.parent);break;case 169:mt&&(mt===n.initializer||mt===n.name&&Qo(mt))&&(sn||(sn=n));break;case 208:mt&&(mt===n.initializer||mt===n.name&&Qo(mt))&&P0(n)&&!sn&&(sn=n);break;case 195:if(c&262144){let $n=n.typeParameter.name;if($n&&a===$n.escapedText){je=n.typeParameter.symbol;break e}}break;case 281:mt&&mt===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}ub(n)&&(At=n),mt=n,n=nm(n)?QF(n)||n.parent:(Ym(n)||H4(n))&&lE(n)||n.parent}if(g&&je&&(!At||je!==At.symbol)&&(je.isReferenced|=c),!je){if(mt&&(x.assertNode(mt,Yi),mt.commonJsModuleIndicator&&a==="exports"&&c&mt.symbol.flags))return mt.symbol;T||(je=W(be,a,c))}if(!je&&_e&&ir(_e)&&_e.parent&&bu(_e.parent,!1))return _t;function Ln(){return rn&&!ge?(Ve(Mn,Mn&&rn.type&&KL(rn.type,Mn.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ts(rn.name),Pm(_)),!0):!1}if(je){if(u&&Ln())return}else{u&&r(()=>{if(!Mn||Mn.parent.kind!==331&&!yS(Mn,a,_)&&!Ln()&&!fA(Mn)&&!J1(Mn,a,c)&&!nv(Mn,a)&&!mA(Mn,a,c)&&!GD(Mn,a,c)&&!pg(Mn,a,c)){let Yn,jn;if(_&&(jn=Lut(_),jn&&Ve(Mn,u,Pm(_),jn)),!jn&&P&&kD{var Yn;if(Mn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let jn=ff(je);(jn.flags&2||jn.flags&32||jn.flags&384)&&qs(jn,Mn)}if(je&&On&&(c&111551)===111551&&!(_e.flags&16777216)){let jn=es(je);Nn(jn.declarations)&&oo(jn.declarations,$n=>Fk($n)||Yi($n)&&!!$n.symbol.globalExports)&&md(!B.allowUmdGlobalAccess,Mn,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Vi(a))}if(je&&sn&&!nr&&(c&111551)===111551){let jn=es(fZ(je)),$n=A_(sn);jn===Sr(sn)?Ve(Mn,f.Parameter_0_cannot_reference_itself,Ts(sn.name)):jn.valueDeclaration&&jn.valueDeclaration.pos>sn.pos&&$n.parent.locals&&W($n.parent.locals,jn.escapedName,c)===jn&&Ve(Mn,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ts(sn.name),Ts(Mn))}if(je&&Mn&&c&111551&&je.flags&2097152&&!(je.flags&111551)&&!fE(Mn)){let jn=Lf(je,111551);if(jn){let $n=jn.kind===281||jn.kind===278||jn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Ro=Vi(a);dg(Ve(Mn,$n,Ro),jn,Ro)}}if(B.isolatedModules&&je&&On&&(c&111551)===111551){let $n=W(be,a,c)===je&&Yi(mt)&&mt.locals&&W(mt.locals,a,-111552);if($n){let Ro=(Yn=$n.declarations)==null?void 0:Yn.find(bo=>bo.kind===276||bo.kind===273||bo.kind===274||bo.kind===271);Ro&&!e2(Ro)&&Ve(Ro,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Vi(a))}}}),je}function dg(n,a,c){return a?Pa(n,Pr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function sm(n,a){return n.kind!==219&&n.kind!==218?YI(n)||(ws(n)||n.kind===172&&!ra(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||$r(n,1024)?!0:!_T(n)}function ub(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Pm(n){return No(n)?Vi(n):Ts(n)}function Zg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(nm(c.parent)?vT(c.parent):c.parent)===a)return!(nm(c.parent)&&Vr(c.parent.parent.tags,qf))}return!1}function yS(n,a,c){if(!Fe(n)||n.escapedText!==a||V6e(n)||TT(n))return!1;let u=Lu(n,!1,!1),_=u;for(;_;){if(ci(_.parent)){let g=Sr(_.parent);if(!g)break;let T=sr(g);if(ha(T,a))return Ve(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Pm(c),Si(g)),!0;if(_===u&&!ra(_)){let P=Xs(g).thisType;if(ha(P,a))return Ve(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Pm(c)),!0}}_=_.parent}return!1}function fA(n){let a=ug(n);return a&&Bs(a,64,!0)?(Ve(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,uc(a)),!0):!1}function ug(n){switch(n.kind){case 80:case 211:return n.parent?ug(n.parent):void 0;case 233:if(Bl(n.expression))return n.expression;default:return}}function J1(n,a,c){let u=1920|(ir(n)?111551:0);if(c===u){let _=Vl(hl(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if(Su(g)){x.assert(g.left===n,"Should only be resolving left side of qualified name as a namespace");let T=g.right.escapedText;if(ha(Xs(_),T))return Ve(g,f.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,Vi(a),Vi(T)),!0}return Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Vi(a)),!0}}return!1}function pg(n,a,c){if(c&788584){let u=Vl(hl(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return Ve(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Vi(a)),!0}return!1}function G_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function nv(n,a){return G_(a)&&n.parent.kind===281?(Ve(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function GD(n,a,c){if(c&111551){if(G_(a)){let g=n.parent.parent;if(g&&g.parent&&Zp(g)){let T=g.token,P=g.parent.kind;P===264&&T===96?Ve(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Vi(a)):P===263&&T===96?Ve(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):P===263&&T===119&&Ve(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Vi(a))}else Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Vi(a));return!0}let u=Vl(hl(n,a,788544,void 0,void 0,!1)),_=u&&Td(u);if(u&&_!==void 0&&!(_&111551)){let g=Vi(a);return jD(a)?Ve(n,f._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,g):VD(n,u)?Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g==="K"?"P":"K"):Ve(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function VD(n,a){let c=Fn(n.parent,u=>Ya(u)||_p(u)?!1:gp(u)||"quit");if(c&&c.members.length===1){let u=Xs(a);return!!(u.flags&1048576)&&Q5(u,384,!0)}return!1}function jD(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function mA(n,a,c){if(c&111127){if(Vl(hl(n,a,1024,void 0,void 0,!1)))return Ve(n,f.Cannot_use_namespace_0_as_a_value,Vi(a)),!0}else if(c&788544&&Vl(hl(n,a,1536,void 0,void 0,!1)))return Ve(n,f.Cannot_use_namespace_0_as_a_type,Vi(a)),!0;return!1}function qs(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>KV(_)||ci(_)||_.kind===266);if(u===void 0)return x.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&33554432)&&!Qg(u,a)){let _,g=Ts(Po(u));n.flags&2?_=Ve(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=Ve(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=Ve(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),em(B)&&(_=Ve(a,f.Enum_0_used_before_its_declaration,g))),_&&Pa(_,Pr(u,f._0_is_declared_here,g))}}function vS(n,a,c){return!!a&&!!Fn(n,u=>u===a||(u===c||$o(u)&&(!_T(u)||Vc(u)&3)?"quit":!1))}function _A(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 Mm(n){return n.declarations&&sI(n.declarations,pb)}function pb(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&&oR(n)||dr(n)&&zl(n)===2&&oR(n)||Ns(n)&&dr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&UD(n.parent.right)||n.kind===304||n.kind===303&&UD(n.initializer)||n.kind===260&&R0(n)||n.kind===208&&R0(n.parent.parent)}function UD(n){return U2(n)||Ps(n)&&$_(n)}function hA(n,a){let c=mb(n);if(c){let _=hR(c.expression).arguments[0];return Fe(c.name)?Vl(ha(Nwe(_),c.name.escapedText)):void 0}if(wi(n)||n.moduleReference.kind===283){let _=mu(n,dj(n)||hN(n)),g=Ip(_);return rp(n,_,g,!1),g}let u=X1(n.moduleReference,a);return AM(n,u),u}function AM(n,a){if(rp(n,void 0,a,!1)&&!n.isTypeOnly){let c=Lf(Sr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?"*":Vi(c.name.escapedText);Pa(Ve(n.moduleReference,_),Pr(c,g,T))}}function fr(n,a,c,u){let _=n.exports.get("export="),g=_?ha(sr(_),a,!0):n.exports.get(a),T=Vl(g,u);return rp(c,g,T,!1),T}function rd(n){return Ll(n)&&!n.isExportEquals||$r(n,2048)||Kd(n)||yh(n)}function Qi(n){return as(n)?e.getModeForUsageLocation(Gn(n),n):void 0}function uf(n,a){return n===99&&a===1}function rv(n){return Qi(n)===99&&El(n.text,".json")}function V_(n,a,c,u){let _=n&&Qi(u);if(n&&_!==void 0&&100<=z&&z<=199){let g=uf(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=fr(a,"default",void 0,!0);return!(g&>(g.declarations,rd)||fr(a,pl("__esModule"),void 0,c))}return su(n)?typeof n.externalModuleIndicator!="object"&&!fr(a,pl("__esModule"),void 0,c):iv(a)}function ar(n,a){let c=mu(n,n.parent.moduleSpecifier);if(c)return gA(c,n,a)}function gA(n,a,c){var u;let _;uN(n)?_=n:_=fr(n,"default",a,c);let g=(u=n.declarations)==null?void 0:u.find(Yi),T=BE(a);if(!T)return _;let P=rv(T),W=V_(g,n,c,T);if(!_&&!W&&!P)if(iv(n)&&!q){let V=z>=5?"allowSyntheticDefaultImports":"esModuleInterop",ye=n.exports.get("export=").valueDeclaration,_e=Ve(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,Si(n),V);ye&&Pa(_e,Pr(ye,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,V))}else gh(a)?qc(n,a):yA(n,n,a,yI(a)&&a.propertyName||a.name);else if(W||P){let V=Ip(n,c)||Vl(n,c);return rp(a,n,V,!1),V}return rp(a,_,void 0,!1),_}function BE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return vh(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 x.assertNever(n)}}function qc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))Ve(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Si(n),Si(a.symbol));else{let g=Ve(a.name,f.Module_0_has_no_default_export,Si(n)),T=(u=n.exports)==null?void 0:u.get("__export");if(T){let P=(_=T.declarations)==null?void 0:_.find(W=>{var V,te;return!!(Xl(W)&&W.moduleSpecifier&&((te=(V=mu(W,W.moduleSpecifier))==null?void 0:V.exports)!=null&&te.has("default")))});P&&Pa(g,Pr(P,f.export_Asterisk_does_not_re_export_a_default))}}}function Rh(n,a){let c=n.parent.parent.moduleSpecifier,u=mu(n,c),_=ip(u,c,a,!1);return rp(n,u,_,!1),_}function Lm(n,a){let c=n.parent.moduleSpecifier,u=c&&mu(n,c),_=c&&ip(u,c,a,!1);return rp(n,u,_,!1),_}function bS(n,a){if(n===lt&&a===lt)return lt;if(n.flags&790504)return n;let c=Ka(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=m0(Eo(n.declarations,a.declarations),Ty),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function ES(n,a,c,u){var _;if(n.flags&1536){let g=xp(n).get(a.escapedText),T=Vl(g,u),P=(_=qi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return rp(c,g,T,!1,P,a.escapedText),T}}function fb(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return Vl(ha(Ti(c),a))}}function ey(n,a,c=!1){var u;let _=dj(n)||n.moduleSpecifier,g=mu(n,_),T=!kr(a)&&a.propertyName||a.name;if(!Fe(T))return;let P=T.escapedText==="default"&&q,W=ip(g,_,!1,P);if(W&&T.escapedText){if(uN(g))return g;let V;g&&g.exports&&g.exports.get("export=")?V=ha(sr(W),T.escapedText,!0):V=fb(W,T.escapedText),V=Vl(V,c);let te=ES(W,T,a,c);if(te===void 0&&T.escapedText==="default"){let _e=(u=g.declarations)==null?void 0:u.find(Yi);(rv(_)||V_(_e,g,c,_))&&(te=Ip(g,c)||Vl(g,c))}let ye=te&&V&&te!==V?bS(V,te):te||V;return ye||yA(g,W,n,T),ye}}function yA(n,a,c,u){var _;let g=Vp(n,c),T=Ts(u),P=Tee(u,a);if(P!==void 0){let W=Si(P),V=Ve(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,W);P.valueDeclaration&&Pa(V,Pr(P.valueDeclaration,f._0_is_declared_here,W))}else(_=n.exports)!=null&&_.has("default")?Ve(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):km(c,u,T,n,g)}function km(n,a,c,u,_){var g,T;let P=(T=(g=ri(u.valueDeclaration,lh))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),W=u.exports;if(P){let V=W?.get("export=");if(V)r_(V,P)?GE(n,a,c,_):Ve(a,f.Module_0_has_no_exported_member_1,_,c);else{let te=W?Vr(age(W),_e=>!!r_(_e,P)):void 0,ye=te?Ve(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,Si(te)):Ve(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);P.declarations&&Pa(ye,...mn(P.declarations,(_e,je)=>Pr(_e,je===0?f._0_is_declared_here:f.and_here,c)))}}else Ve(a,f.Module_0_has_no_exported_member_1,_,c)}function GE(n,a,c,u){if(z>=5){let _=mh(B)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ve(a,_,c)}else if(ir(n)){let _=mh(B)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ve(a,_,c)}else{let _=mh(B)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ve(a,_,c,c,u)}}function fg(n,a){if(Qu(n)&&gr(n.propertyName||n.name)==="default"){let T=BE(n),P=T&&mu(n,T);if(P)return gA(P,n,a)}let c=Xa(n)?A_(n):n.parent.parent.parent,u=mb(c),_=ey(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Fe(g)?Vl(ha(sr(_),g.escapedText),a):(rp(n,void 0,_,!1),_)}function mb(n){if(wi(n)&&n.initializer&&kr(n.initializer))return n.initializer}function q1(n,a){if(b_(n.parent)){let c=Ip(n.parent.symbol,a);return rp(n,void 0,c,!1),c}}function VE(n,a,c){if(gr(n.propertyName||n.name)==="default"){let _=BE(n),g=_&&mu(n,_);if(g)return gA(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?ey(n.parent.parent,n,c):Bs(n.propertyName||n.name,a,!1,c);return rp(n,void 0,u,!1),u}function HD(n,a){let c=Ll(n)?n.expression:n.right,u=SS(c,a);return rp(n,void 0,u,!1),u}function SS(n,a){if(Zc(n))return tc(n).symbol;if(!Xu(n)&&!Bl(n))return;let c=Bs(n,901119,!0,a);return c||(tc(n),Qr(n).resolvedSymbol)}function vA(n,a){if(dr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return SS(n.parent.right,a)}function Gp(n,a=!1){switch(n.kind){case 271:case 260:return hA(n,a);case 273:return ar(n,a);case 274:return Rh(n,a);case 280:return Lm(n,a);case 276:case 208:return fg(n,a);case 281:return VE(n,901119,a);case 277:case 226:return HD(n,a);case 270:return q1(n,a);case 304:return Bs(n.name,901119,!0,a);case 303:return SS(n.initializer,a);case 212:case 211:return vA(n,a);default:return x.fail()}}function bA(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Vl(n,a){return!a&&bA(n)?Wc(n):n}function Wc(n){x.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=qi(n);if(a.aliasTarget)a.aliasTarget===Rt&&(a.aliasTarget=lt);else{a.aliasTarget=Rt;let c=Mm(n);if(!c)return x.fail();let u=Gp(c);a.aliasTarget===Rt?a.aliasTarget=u||lt:Ve(c,f.Circular_definition_of_import_alias_0,Si(n))}return a.aliasTarget}function EA(n){if(qi(n).aliasTarget!==Rt)return Wc(n)}function Td(n,a,c){let u=a&&Lf(n),_=u&&Xl(u),g=u&&(_?mu(u.moduleSpecifier,u.moduleSpecifier,!0):Wc(u.symbol)),T=_&&g?Dh(g):void 0,P=c?0:n.flags,W;for(;n.flags&2097152;){let V=ff(Wc(n));if(!_&&V===g||T?.get(V.escapedName)===V)break;if(V===lt)return-1;if(V===n||W?.has(V))break;V.flags&2097152&&(W?W.add(V):W=new Set([n,V])),P|=V.flags,n=V}return P}function rp(n,a,c,u,_,g){if(!n||kr(n))return!1;let T=Sr(n);if(iE(n)){let W=qi(T);return W.typeOnlyDeclaration=n,!0}if(_){let W=qi(T);return W.typeOnlyDeclaration=_,T.escapedName!==g&&(W.typeOnlyExportStarName=g),!0}let P=qi(T);return jE(P,a,u)||jE(P,c,u)}function jE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get("export="))??a,g=_.declarations&&Vr(_.declarations,iE);n.typeOnlyDeclaration=g??qi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Lf(n,a){if(!(n.flags&2097152))return;let c=qi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?Vl(Dh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Wc(c.typeOnlyDeclaration.symbol);return Td(u)&a?c.typeOnlyDeclaration:void 0}}function _b(n){if(!pt)return;let a=Sr(n),c=Wc(a);c&&(c===lt||Td(a,!0)&111551&&!Y8(c))&&hb(a)}function hb(n){x.assert(pt);let a=qi(n);if(!a.referenced){a.referenced=!0;let c=Mm(n);if(!c)return x.fail();Qx(c)&&Td(Vl(n))&111551&&tc(c.moduleReference)}}function id(n){let a=qi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function X1(n,a){return n.kind===80&&MN(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Bs(n,1920,!1,a):(x.assert(n.parent.kind===271),Bs(n,901119,!1,a))}function Vp(n,a){return n.parent?Vp(n.parent,a)+"."+Si(n):Si(n,a,void 0,36)}function SA(n){for(;Su(n.parent);)n=n.parent;return n}function TA(n){let a=Fp(n),c=hl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Su(a.parent);){let u=sr(c);if(c=ha(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Bs(n,a,c,u,_){if(Fl(n))return;let g=1920|(ir(n)?a&111551:0),T;if(n.kind===80){let P=a===g||Ks(n)?f.Cannot_find_namespace_0:T8e(Fp(n)),W=ir(n)&&!Ks(n)?KD(n,a):void 0;if(T=es(hl(_||n,n.escapedText,a,c||W?void 0:P,n,!0,!1)),!T)return es(W)}else if(n.kind===166||n.kind===211){let P=n.kind===166?n.left:n.expression,W=n.kind===166?n.right:n.name,V=Bs(P,g,c,!1,_);if(!V||Fl(W))return;if(V===lt)return V;if(V.valueDeclaration&&ir(V.valueDeclaration)&&du(B)!==100&&wi(V.valueDeclaration)&&V.valueDeclaration.initializer&&sFe(V.valueDeclaration.initializer)){let te=V.valueDeclaration.initializer.arguments[0],ye=mu(te,te);if(ye){let _e=Ip(ye);_e&&(V=_e)}}if(T=es(Vu(xp(V),W.escapedText,a)),!T&&V.flags&2097152&&(T=es(Vu(xp(Wc(V)),W.escapedText,a))),!T){if(!c){let te=Vp(V),ye=Ts(W),_e=Tee(W,V);if(_e){Ve(W,f._0_has_no_exported_member_named_1_Did_you_mean_2,te,ye,Si(_e));return}let je=Su(n)&&SA(n);if(Re&&a&788968&&je&&!NR(je.parent)&&TA(je)){Ve(je,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,up(je));return}if(a&1920&&Su(n.parent)){let At=es(Vu(xp(V),W.escapedText,788968));if(At){Ve(n.parent.right,f.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,Si(At),Vi(n.parent.right.escapedText));return}}Ve(W,f.Namespace_0_has_no_exported_member_1,te,ye)}return}}else x.assertNever(n,"Unknown entity name kind.");return x.assert((Tl(T)&1)===0,"Should never get an instantiated symbol here."),!Ks(n)&&Xu(n)&&(T.flags&2097152||n.parent.kind===277)&&rp(Sj(n),T,void 0,!0),T.flags&a||u?T:Wc(T)}function KD(n,a){if(AZ(n.parent)){let c=UE(n.parent);if(c)return hl(c,n.escapedText,a,void 0,n,!0)}}function UE(n){if(Fn(n,_=>zx(_)||_.flags&16777216?qf(_):"quit"))return;let c=vT(n);if(c&&ed(c)&&k2(c.expression)){let _=Sr(c.expression.left);if(_)return TS(_)}if(c&&Ps(c)&&k2(c.parent)&&ed(c.parent.parent)){let _=Sr(c.parent.left);if(_)return TS(_)}if(c&&(bm(c)||mc(c))&&dr(c.parent.parent)&&zl(c.parent.parent)===6){let _=Sr(c.parent.parent.left);if(_)return TS(_)}let u=cE(n);if(u&&$o(u)){let _=Sr(u);return _&&_.valueDeclaration}}function TS(n){let a=n.parent.valueDeclaration;return a?(gN(a)?AI(a):dT(a)?C2(a):void 0)||a:void 0}function IM(n){let a=n.valueDeclaration;if(!a||!ir(a)||n.flags&524288||sE(a,!1))return;let c=wi(a)?C2(a):AI(a);if(c){let u=pf(c);if(u)return _ve(u,n)}}function mu(n,a,c){let _=du(B)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return ty(n,a,c?void 0:_)}function ty(n,a,c,u=!1){return as(a)?j_(n,a.text,c,a,u):void 0}function j_(n,a,c,u,_=!1){var g,T,P,W,V,te,ye,_e,je,mt,At;if(ao(a,"@types/")){let $n=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ro=VC(a,"@types/");Ve(u,$n,Ro,a)}let rn=hZ(a,!0);if(rn)return rn;let sn=Gn(n),nr=as(n)?n:((g=ql(n)?n:n.parent&&ql(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=wv(n)?n:void 0)==null?void 0:T.argument.literal)||(wi(n)&&n.initializer&&bu(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((P=Fn(n,Op))==null?void 0:P.arguments[0])||((W=Fn(n,Lc))==null?void 0:W.moduleSpecifier)||((V=Fn(n,aE))==null?void 0:V.moduleReference.expression)||((te=Fn(n,Xl))==null?void 0:te.moduleSpecifier),Mn=nr&&as(nr)?e.getModeForUsageLocation(sn,nr):sn.impliedNodeFormat,an=du(B),On=(ye=e.getResolvedModule(sn,a,Mn))==null?void 0:ye.resolvedModule,Ln=On&&yJ(B,On,sn),Yn=On&&(!Ln||Ln===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(On.resolvedFileName);if(Yn){if(Ln&&Ve(u,Ln,a,On.resolvedFileName),On.resolvedUsingTsExtension&&Ed(a)){let $n=((_e=Fn(n,Lc))==null?void 0:_e.importClause)||Fn(n,jm(td,Xl));($n&&!$n.isTypeOnly||Fn(n,Op))&&Ve(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,jn(x.checkDefined(_6(a))))}else if(On.resolvedUsingTsExtension&&!XR(B,sn.fileName)){let $n=((je=Fn(n,Lc))==null?void 0:je.importClause)||Fn(n,jm(td,Xl));if(!($n?.isTypeOnly||Fn(n,rg))){let Ro=x.checkDefined(_6(a));Ve(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ro)}}if(Yn.symbol){if(On.isExternalLibraryImport&&!GN(On.extension)&&Y1(!1,u,sn,Mn,On,a),an===3||an===99){let $n=sn.impliedNodeFormat===1&&!Fn(n,Op)||!!Fn(n,td),Ro=Fn(n,bo=>rg(bo)||Xl(bo)||Lc(bo));if($n&&Yn.impliedNodeFormat===99&&!Moe(Ro))if(Fn(n,td))Ve(u,f.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,a);else{let bo,Fo=Wg(sn.fileName);if(Fo===".ts"||Fo===".js"||Fo===".tsx"||Fo===".jsx"){let fo=sn.packageJsonScope,Rc=Fo===".ts"?".mts":Fo===".js"?".mjs":void 0;fo&&!fo.contents.packageJsonContent.type?Rc?bo=zo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Rc,Yr(fo.packageDirectory,"package.json")):bo=zo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Yr(fo.packageDirectory,"package.json")):Rc?bo=zo(void 0,f.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,Rc):bo=zo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Qa.add(Mg(Gn(u),u,zo(bo,f.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,a)))}}return es(Yn.symbol)}c&&Ve(u,f.File_0_is_not_a_module,Yn.fileName);return}if(im){let $n=KG(im,Ro=>Ro.pattern,a);if($n){let Ro=fu&&fu.get(a);return es(Ro||$n.symbol)}}if(On&&!GN(On.extension)&&Ln===void 0||Ln===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let $n=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Ve(u,$n,a,On.resolvedFileName)}else Y1(fe&&!!c,u,sn,Mn,On,a);return}if(c){if(On){let $n=e.getProjectReferenceRedirect(On.resolvedFileName);if($n){Ve(u,f.Output_file_0_has_not_been_built_from_source_file_1,$n,On.resolvedFileName);return}}if(Ln)Ve(u,Ln,a,On.resolvedFileName);else{let $n=Lp(a)&&!mI(a),Ro=an===3||an===99;if(!mE(B)&&Sl(a,".json")&&an!==1&&I6(B))Ve(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Mn===99&&Ro&&$n){let bo=ho(a,oi(sn.path)),Fo=(mt=zD.find(([fo,Rc])=>e.fileExists(bo+fo)))==null?void 0:mt[1];Fo?Ve(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Fo):Ve(u,f.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 if((At=e.getResolvedModule(sn,a,Mn))!=null&&At.alternateResult){let bo=bF(sn,e,a,Mn,a);md(!0,u,zo(bo,c,a))}else Ve(u,c,a)}}return;function jn($n){let Ro=lk(a,$n);if(A6(z)||Mn===99){let bo=Ed(a)&&XR(B);return Ro+($n===".mts"||$n===".d.mts"?bo?".mts":".mjs":$n===".cts"||$n===".d.mts"?bo?".cts":".cjs":bo?".ts":".js")}return Ro}}function Y1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let P;!Yc(T)&&_&&(P=bF(c,e,T,u,_.name)),md(n,a,zo(P,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function Ip(n,a){if(n?.exports){let c=Vl(n.exports.get("export="),a),u=$1(es(c),es(n));return es(u)||n}}function $1(n,a){if(!n||n===lt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=qi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:pA(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=aa()),a.exports.forEach((_,g)=>{g!=="export="&&u.exports.set(g,u.exports.has(g)?om(u.exports.get(g),_):_)}),u===n&&(qi(u).resolvedExports=void 0,qi(u).resolvedMembers=void 0),qi(u).cjsExportMerged=u,c.cjsExportMerged=u}function ip(n,a,c,u){var _;let g=Ip(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!cl(g,312)){let P=z>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Ve(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,P),g}let T=a.parent;if(Lc(T)&&nR(T)||Op(T)){let P=Op(T)?T.arguments[0]:T.moduleSpecifier,W=sr(g),V=oFe(W,g,n,P);if(V)return Q1(g,V,T);let te=(_=n?.declarations)==null?void 0:_.find(Yi),ye=te&&uf(Qi(P),te.impliedNodeFormat);if(mh(B)||ye){let _e=n5(W,0);if((!_e||!_e.length)&&(_e=n5(W,1)),_e&&_e.length||ha(W,"default",!0)||ye){let je=W.flags&3670016?aFe(W,g,n,P):hve(g,g.parent);return Q1(g,je,T)}}}}return g}function Q1(n,a,c){let u=Ka(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=l_(a);return u.links.type=Ds(u,_.members,Xe,Xe,_.indexInfos),u}function iv(n){return n.exports.get("export=")!==void 0}function AA(n){return age(Dh(n))}function JD(n){let a=AA(n),c=Ip(n);if(c!==n){let u=sr(c);gb(u)&&Hr(a,ms(u))}return a}function qD(n,a){Dh(n).forEach((_,g)=>{xS(g)||a(_,g)});let u=Ip(n);if(u!==n){let _=sr(u);gb(_)&&nat(_,(g,T)=>{a(g,T)})}}function IA(n,a){let c=Dh(a);if(c)return c.get(n)}function XD(n,a){let c=IA(n,a);if(c)return c;let u=Ip(a);if(u===a)return;let _=sr(u);return gb(_)?ha(_,n):void 0}function gb(n){return!(n.flags&402784252||Lr(n)&1||Gf(n)||wa(n))}function xp(n){return n.flags&6256?Uhe(n,"resolvedExports"):n.flags&1536?Dh(n):n.exports||K}function Dh(n){let a=qi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=xA(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function YD(n,a,c,u){a&&a.forEach((_,g)=>{if(g==="default")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:uc(u.moduleSpecifier)});else if(c&&u&&T&&Vl(T)!==Vl(_)){let P=c.get(g);P.exportsWithDuplicate?P.exportsWithDuplicate.push(u):P.exportsWithDuplicate=[u]}})}function xA(n){let a=[],c,u=new Set;n=Ip(n);let _=g(n)||K;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,P,W){if(!W&&T?.exports&&T.exports.forEach((ye,_e)=>u.add(_e)),!(T&&T.exports&&yf(a,T)))return;let V=new Map(T.exports),te=T.exports.get("__export");if(te){let ye=aa(),_e=new Map;if(te.declarations)for(let je of te.declarations){let mt=mu(je,je.moduleSpecifier),At=g(mt,je,W||je.isTypeOnly);YD(ye,At,_e,je)}_e.forEach(({exportsWithDuplicate:je},mt)=>{if(!(mt==="export="||!(je&&je.length)||V.has(mt)))for(let At of je)Qa.add(Pr(At,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,_e.get(mt).specifierText,Vi(mt)))}),YD(V,ye)}return P?.isTypeOnly&&(c??(c=new Map),V.forEach((ye,_e)=>c.set(_e,P))),V}}function es(n){let a;return n&&n.mergeId&&(a=OD[n.mergeId])?a:n}function Sr(n){return es(n.symbol&&fZ(n.symbol))}function pf(n){return b_(n)?Sr(n):void 0}function Ru(n){return es(n.parent&&fZ(n.parent))}function AS(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&pf(n.valueDeclaration.parent)||n}function $D(n,a){let c=Gn(a),u=rs(c),_=qi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let P of c.imports){if(Ks(P))continue;let W=mu(a,P,!0);!W||!mg(W,n)||(g=Tn(g,W))}if(Nn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let P of T){if(!oc(P))continue;let W=Sr(P);mg(W,n)&&(g=Tn(g,W))}return _.extendedContainers=g||Xe}function HE(n,a,c){let u=Ru(n);if(u&&!(n.flags&262144))return W(u);let _=to(n.declarations,te=>{if(!Md(te)&&te.parent){if(Qd(te.parent))return Sr(te.parent);if(N_(te.parent)&&te.parent.parent&&Ip(Sr(te.parent.parent))===n)return Sr(te.parent.parent)}if(Zc(te)&&dr(te.parent)&&te.parent.operatorToken.kind===64&&Ns(te.parent.left)&&Bl(te.parent.left.expression))return Yh(te.parent.left)||hT(te.parent.left.expression)?Sr(Gn(te)):(tc(te.parent.left.expression),Qr(te.parent.left.expression).resolvedSymbol)});if(!Nn(_))return;let g=to(_,te=>mg(te,n)?te:void 0),T=[],P=[];for(let te of g){let[ye,..._e]=W(te);T=Tn(T,ye),P=Hr(P,_e)}return Eo(T,P);function W(te){let ye=to(te.declarations,V),_e=a&&$D(n,a),je=IS(te,c);if(a&&te.flags&ry(c)&&yb(te,a,1920,!1))return Tn(Eo(Eo([te],ye),_e),je);let mt=!(te.flags&ry(c))&&te.flags&788968&&Xs(te).flags&524288&&c===111551?DS(a,rn=>Gc(rn,sn=>{if(sn.flags&ry(c)&&sr(sn)===Xs(te))return sn})):void 0,At=mt?[mt,...ye,te]:[...ye,te];return At=Tn(At,je),At=Hr(At,_e),At}function V(te){return u&&RA(te,u)}}function IS(n,a){let c=!!Nn(n.declarations)&&Va(n.declarations);if(a&111551&&c&&c.parent&&wi(c.parent)&&(Ma(c)&&c===c.parent.initializer||gp(c)&&c===c.parent.type))return Sr(c.parent)}function RA(n,a){let c=Zi(n),u=c&&c.exports&&c.exports.get("export=");return u&&r_(u,a)?c:void 0}function mg(n,a){if(n===Ru(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&r_(c,a))return n;let u=xp(n),_=u.get(a.escapedName);return _&&r_(_,a)?_:Gc(u,g=>{if(r_(g,a))return g})}function r_(n,a){if(es(Vl(es(n)))===es(Vl(es(a))))return n}function ff(n){return es(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function wm(n,a){return!!(n.flags&111551||n.flags&2097152&&Td(n,!a)&111551)}function ny(n){let a=n.members;for(let c of a)if(c.kind===176&&Hf(c.body))return c}function _g(n){var a;let c=new p(Xt,n);return m++,c.id=m,(a=rr)==null||a.recordType(c),c}function hg(n,a){let c=_g(n);return c.symbol=a,c}function Z1(n){return new p(Xt,n)}function sc(n,a,c=0,u){QD(a,u);let _=_g(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function QD(n,a){let c=`${n},${a??""}`;st.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),st.add(c)}function kf(n,a){let c=hg(524288,a);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 Ch(){return ei(Wo(EK.keys(),Uu))}function mf(n){return hg(262144,n)}function xS(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function KE(n){let a;return n.forEach((c,u)=>{ex(c,u)&&(a||(a=[])).push(c)}),a||Xe}function ex(n,a){return!xS(a)&&wm(n)}function DA(n){let a=KE(n),c=vZ(n);return c?Eo(a,[c]):a}function _f(n,a,c,u,_){let g=n;return g.members=a,g.properties=Xe,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==K&&(g.properties=KE(a)),g}function Ds(n,a,c,u,_){return _f(kf(16,n),a,c,u,_)}function RS(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=jr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=Ds(n.symbol,n.members,n.callSignatures,gt(a)?a:Xe,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function DS(n,a){let c;for(let u=n;u;u=u.parent){if(lh(u)&&u.locals&&!xh(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!wp(u))break;case 267:let _=Sr(u);if(c=a(_?.exports||K,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((Sr(u).members||K).forEach((T,P)=>{T.flags&788968&&(g||(g=aa())).set(P,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(be,void 0,!0)}function ry(n){return n===111551?111551:1920}function yb(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=qi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),P=DS(a,(sn,nr,Mn,an)=>an),W=`${u?0:1}|${P&&rs(P)}|${c}`;if(T.has(W))return T.get(W);let V=ba(n),te=_.get(V);te||_.set(V,te=[]);let ye=DS(a,_e);return T.set(W,ye),ye;function _e(sn,nr,Mn){if(!yf(te,sn))return;let an=At(sn,nr,Mn);return te.pop(),an}function je(sn,nr){return!JE(sn,a,nr)||!!yb(sn.parent,a,ry(nr),u,_)}function mt(sn,nr,Mn){return(n===(nr||sn)||es(n)===es(nr||sn))&&!gt(sn.declarations,Qd)&&(Mn||je(es(sn),c))}function At(sn,nr,Mn){return mt(sn.get(n.escapedName),void 0,nr)?[n]:Gc(sn,On=>{if(On.flags&2097152&&On.escapedName!=="export="&&On.escapedName!=="default"&&!(b6(On)&&a&&oc(Gn(a)))&&(!u||gt(On.declarations,aE))&&(!Mn||!gt(On.declarations,cie))&&(nr||!cl(On,281))){let Ln=Wc(On),Yn=rn(On,Ln,nr);if(Yn)return Yn}if(On.escapedName===n.escapedName&&On.exportSymbol&&mt(es(On.exportSymbol),void 0,nr))return[n]})||(sn===be?rn(tt,tt,nr):void 0)}function rn(sn,nr,Mn){if(mt(sn,nr,Mn))return[sn];let an=xp(nr),On=an&&_e(an,!0);if(On&&je(sn,ry(c)))return[sn].concat(On)}}function JE(n,a,c){let u=!1;return DS(a,_=>{let g=es(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!cl(g,281);return g=T?Wc(g):g,(T?Td(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function oe(n,a){return vi(n,a,788968,!1,!0).accessibility===0}function dt(n,a){return vi(n,a,111551,!1,!0).accessibility===0}function nn(n,a,c){return vi(n,a,c,!1,!1).accessibility===0}function Mr(n,a,c,u,_,g){if(!Nn(n))return;let T,P=!1;for(let W of n){let V=yb(W,a,u,!1);if(V){T=W;let _e=Du(V[0],_);if(_e)return _e}if(g&>(W.declarations,Qd)){if(_){P=!0;continue}return{accessibility:0}}let te=HE(W,a,u),ye=Mr(te,a,c,c===W?ry(u):u,_,g);if(ye)return ye}if(P)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:Si(c,a,u),errorModuleName:T!==c?Si(T,a,1920):void 0}}function ki(n,a,c,u){return vi(n,a,c,u,!0)}function vi(n,a,c,u,_){if(n&&a){let g=Mr([n],a,n,c,u,_);if(g)return g;let T=gn(n.declarations,Zi);if(T){let P=Zi(a);if(T!==P)return{accessibility:2,errorSymbolName:Si(n,a,c),errorModuleName:Si(T),errorNode:ir(a)?a:void 0}}return{accessibility:1,errorSymbolName:Si(n,a,c)}}return{accessibility:0}}function Zi(n){let a=Fn(n,_a);return a&&Sr(a)}function _a(n){return Md(n)||n.kind===312&&wp(n)}function Qd(n){return xF(n)||n.kind===312&&wp(n)}function Du(n,a){let c;if(!oo(jr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,P;if(!i_(g)){let W=_A(g);if(W&&!$r(W,32)&&i_(W.parent))return _(g,W);if(wi(g)&&Ml(g.parent.parent)&&!$r(g.parent.parent,32)&&i_(g.parent.parent.parent))return _(g,g.parent.parent);if(RF(g)&&!$r(g,32)&&i_(g.parent))return _(g,g);if(Xa(g)){if(n.flags&2097152&&ir(g)&&((T=g.parent)!=null&&T.parent)&&wi(g.parent.parent)&&((P=g.parent.parent.parent)!=null&&P.parent)&&Ml(g.parent.parent.parent.parent)&&!$r(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&i_(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let V=Fn(g,Ml);return $r(V,32)?!0:i_(V.parent)?_(g,V):!1}}return!1}return!0}function _(g,T){return a&&(Qr(g).isVisible=!0,c=xg(c,T)),!0}}function wf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!qh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function vb(n,a){let c=wf(n),u=Fp(n),_=hl(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&k0(u)&&ki(Sr(Lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&Du(_,!0)||{accessibility:1,errorSymbolName:uc(u),errorNode:u}}function Si(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?Et.symbolToNode:Et.symbolToEntityName;return _?P(_).getText():cN(P);function P(W){let V=T(n,c,a,g),te=a?.kind===312?YK():rS(),ye=a&&Gn(a);return te.writeNode(4,V,ye,W),W}}function Nh(n,a,c=0,u,_){return _?g(_).getText():cN(g);function g(T){let P;c&262144?P=u===1?185:184:P=u===1?180:179;let W=Et.signatureToSignatureDeclaration(n,P,a,CA(c)|70221824|512),V=xw(),te=a&&Gn(a);return V.writeNode(4,W,te,Oj(T)),T}}function Vn(n,a,c=1064960,u=$2("")){let _=B.noErrorTruncation||c&1,g=Et.typeToTypeNode(n,a,CA(c)|70221824|(_?1:0));if(g===void 0)return x.fail("should always get typenode");let T=n!==Ft?rS():XK(),P=a&&Gn(a);T.writeNode(4,g,P,u);let W=u.getText(),V=_?K6*2:mk*2;return V&&W&&W.length>=V?W.substr(0,V-3)+"...":W}function tx(n,a){let c=Eb(n.symbol)?Vn(n,n.symbol.valueDeclaration):Vn(n),u=Eb(a.symbol)?Vn(a,a.symbol.valueDeclaration):Vn(a);return c===u&&(c=bb(n),u=bb(a)),[c,u]}function bb(n){return Vn(n,void 0,64)}function Eb(n){return n&&!!n.valueDeclaration&&ht(n.valueDeclaration)&&!zf(n.valueDeclaration)}function CA(n=0){return n&848330095}function CS(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Wf(n.symbol)||!!(n.flags&524288)&&!!(Lr(n)&16777216))}function U_(){return{typeToTypeNode:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>u(ot,di)),indexInfoToIndexSignatureDeclaration:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>te(ot,di,void 0)),signatureToSignatureDeclaration:(ot,Se,Cn,Rr,di)=>a(Cn,Rr,di,Ai=>ye(ot,Se,Ai)),symbolToEntityName:(ot,Se,Cn,Rr,di)=>a(Cn,Rr,di,Ai=>fo(ot,Ai,Se,!1)),symbolToExpression:(ot,Se,Cn,Rr,di)=>a(Cn,Rr,di,Ai=>Rc(ot,Ai,Se)),symbolToTypeParameterDeclarations:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>On(ot,di)),symbolToParameterDeclaration:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>rn(ot,di)),typeParameterToDeclaration:(ot,Se,Cn,Rr)=>a(Se,Cn,Rr,di=>mt(ot,di)),symbolTableToDeclarationStatements:(ot,Se,Cn,Rr,di)=>a(Se,Cn,Rr,Ai=>gl(ot,Ai,di)),symbolToNode:(ot,Se,Cn,Rr,di)=>a(Cn,Rr,di,Ai=>n(ot,Ai,Se))};function n(ot,Se,Cn){if(Se.flags&1073741824){if(ot.valueDeclaration){let di=Po(ot.valueDeclaration);if(di&&Ya(di))return di}let Rr=qi(ot).nameType;if(Rr&&Rr.flags&9216)return Se.enclosingDeclaration=Rr.symbol.valueDeclaration,L.createComputedPropertyName(Rc(Rr.symbol,Se,Cn))}return Rc(ot,Se,Cn)}function a(ot,Se,Cn,Rr){x.assert(ot===void 0||(ot.flags&16)===0);let di=Cn?.trackSymbol?Cn.moduleResolverHost:Se&134217728?OGe(e):void 0,Ai={enclosingDeclaration:ot,flags:Se||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Ai.tracker=new SK(Ai,Cn,di);let Ii=Rr(Ai);return Ai.truncating&&Ai.flags&1&&Ai.tracker.reportTruncationError(),Ai.encounteredError?void 0:Ii}function c(ot){return ot.truncating?ot.truncating:ot.truncating=ot.approximateLength>(ot.flags&1?K6:mk)}function u(ot,Se){let Cn=Se.flags,Rr=_(ot,Se);return Se.flags=Cn,Rr}function _(ot,Se){var Cn,Rr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let di=Se.flags&8388608;if(Se.flags&=-8388609,!ot){if(!(Se.flags&262144)){Se.encounteredError=!0;return}return Se.approximateLength+=3,L.createKeywordTypeNode(133)}if(Se.flags&536870912||(ot=c_(ot)),ot.flags&1)return ot.aliasSymbol?L.createTypeReferenceNode($n(ot.aliasSymbol),W(ot.aliasTypeArguments,Se)):ot===Ft?rP(L.createKeywordTypeNode(133),3,"unresolved"):(Se.approximateLength+=3,L.createKeywordTypeNode(ot===dn?141:133));if(ot.flags&2)return L.createKeywordTypeNode(159);if(ot.flags&4)return Se.approximateLength+=6,L.createKeywordTypeNode(154);if(ot.flags&8)return Se.approximateLength+=6,L.createKeywordTypeNode(150);if(ot.flags&64)return Se.approximateLength+=6,L.createKeywordTypeNode(163);if(ot.flags&16&&!ot.aliasSymbol)return Se.approximateLength+=7,L.createKeywordTypeNode(136);if(ot.flags&1056){if(ot.symbol.flags&8){let An=Ru(ot.symbol),Zr=Ro(An,Se,788968);if(Xs(An)===ot)return Zr;let Gi=vl(ot.symbol);return Yp(Gi,0)?bi(Zr,L.createTypeReferenceNode(Gi,void 0)):rg(Zr)?(Zr.isTypeOf=!0,L.createIndexedAccessTypeNode(Zr,L.createLiteralTypeNode(L.createStringLiteral(Gi)))):If(Zr)?L.createIndexedAccessTypeNode(L.createTypeQueryNode(Zr.typeName),L.createLiteralTypeNode(L.createStringLiteral(Gi))):x.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Ro(ot.symbol,Se,788968)}if(ot.flags&128)return Se.approximateLength+=ot.value.length+2,L.createLiteralTypeNode(lr(L.createStringLiteral(ot.value,!!(Se.flags&268435456)),16777216));if(ot.flags&256){let An=ot.value;return Se.approximateLength+=(""+An).length,L.createLiteralTypeNode(An<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-An)):L.createNumericLiteral(An))}if(ot.flags&2048)return Se.approximateLength+=W0(ot.value).length+1,L.createLiteralTypeNode(L.createBigIntLiteral(ot.value));if(ot.flags&512)return Se.approximateLength+=ot.intrinsicName.length,L.createLiteralTypeNode(ot.intrinsicName==="true"?L.createTrue():L.createFalse());if(ot.flags&8192){if(!(Se.flags&1048576)){if(dt(ot.symbol,Se.enclosingDeclaration))return Se.approximateLength+=6,Ro(ot.symbol,Se,111551);Se.tracker.reportInaccessibleUniqueSymbolError&&Se.tracker.reportInaccessibleUniqueSymbolError()}return Se.approximateLength+=13,L.createTypeOperatorNode(158,L.createKeywordTypeNode(155))}if(ot.flags&16384)return Se.approximateLength+=4,L.createKeywordTypeNode(116);if(ot.flags&32768)return Se.approximateLength+=9,L.createKeywordTypeNode(157);if(ot.flags&65536)return Se.approximateLength+=4,L.createLiteralTypeNode(L.createNull());if(ot.flags&131072)return Se.approximateLength+=5,L.createKeywordTypeNode(146);if(ot.flags&4096)return Se.approximateLength+=6,L.createKeywordTypeNode(155);if(ot.flags&67108864)return Se.approximateLength+=6,L.createKeywordTypeNode(151);if(XN(ot))return Se.flags&4194304&&(!Se.encounteredError&&!(Se.flags&32768)&&(Se.encounteredError=!0),(Rr=(Cn=Se.tracker).reportInaccessibleThisError)==null||Rr.call(Cn)),Se.approximateLength+=4,L.createThisTypeNode();if(!di&&ot.aliasSymbol&&(Se.flags&16384||oe(ot.aliasSymbol,Se.enclosingDeclaration))){let An=W(ot.aliasTypeArguments,Se);return xS(ot.aliasSymbol.escapedName)&&!(ot.aliasSymbol.flags&32)?L.createTypeReferenceNode(L.createIdentifier(""),An):Nn(An)===1&&ot.aliasSymbol===Xo.symbol?L.createArrayTypeNode(An[0]):Ro(ot.aliasSymbol,Se,788968,An)}let Ai=Lr(ot);if(Ai&4)return x.assert(!!(ot.flags&524288)),ot.node?Jt(ot,Wn):Wn(ot);if(ot.flags&262144||Ai&3){if(ot.flags&262144&&Bo(Se.inferTypeParameters,ot)){Se.approximateLength+=vl(ot.symbol).length+6;let Zr,Gi=Cu(ot);if(Gi){let co=kwe(ot,!0);co&&py(Gi,co)||(Se.approximateLength+=9,Zr=Gi&&u(Gi,Se))}return L.createInferTypeNode(je(ot,Se,Zr))}if(Se.flags&4&&ot.flags&262144){let Zr=Fo(ot,Se);return Se.approximateLength+=gr(Zr).length,L.createTypeReferenceNode(L.createIdentifier(gr(Zr)),void 0)}if(ot.symbol)return Ro(ot.symbol,Se,788968);let An=(ot===de||ot===$)&&w&&w.symbol?(ot===$?"sub-":"super-")+vl(w.symbol):"?";return L.createTypeReferenceNode(L.createIdentifier(An),void 0)}if(ot.flags&1048576&&ot.origin&&(ot=ot.origin),ot.flags&3145728){let An=ot.flags&1048576?ZD(ot.types):ot.types;if(Nn(An)===1)return u(An[0],Se);let Zr=W(An,Se,!0);if(Zr&&Zr.length>0)return ot.flags&1048576?L.createUnionTypeNode(Zr):L.createIntersectionTypeNode(Zr);!Se.encounteredError&&!(Se.flags&262144)&&(Se.encounteredError=!0);return}if(Ai&48)return x.assert(!!(ot.flags&524288)),Qt(ot);if(ot.flags&4194304){let An=ot.type;Se.approximateLength+=6;let Zr=u(An,Se);return L.createTypeOperatorNode(143,Zr)}if(ot.flags&134217728){let An=ot.texts,Zr=ot.types,Gi=L.createTemplateHead(An[0]),co=L.createNodeArray(mn(Zr,(ca,vc)=>L.createTemplateLiteralTypeSpan(u(ca,Se),(vcIi(An));if(ot.flags&33554432){let An=u(ot.baseType,Se),Zr=wM(ot)&&vge("NoInfer",!1);return Zr?Ro(Zr,Se,788968,[An]):An}return x.fail("Should be unreachable.");function Ii(An){let Zr=u(An.checkType,Se);if(Se.approximateLength+=15,Se.flags&4&&An.root.isDistributive&&!(An.checkType.flags&262144)){let Dl=mf(Ka(262144,"T")),os=Fo(Dl,Se),Dc=L.createTypeReferenceNode(os);Se.approximateLength+=37;let js=VA(An.root.checkType,Dl,An.mapper),m_=Se.inferTypeParameters;Se.inferTypeParameters=An.root.inferTypeParameters;let Qe=u(io(An.root.extendsType,js),Se);Se.inferTypeParameters=m_;let vt=Br(io(Ti(An.root.node.trueType),js)),$t=Br(io(Ti(An.root.node.falseType),js));return L.createConditionalTypeNode(Zr,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Dc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(os)),u(An.checkType,Se),L.createConditionalTypeNode(Dc,Qe,vt,$t),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}let Gi=Se.inferTypeParameters;Se.inferTypeParameters=An.root.inferTypeParameters;let co=u(An.extendsType,Se);Se.inferTypeParameters=Gi;let ca=Br(r0(An)),vc=Br(i0(An));return L.createConditionalTypeNode(Zr,co,ca,vc)}function Br(An){var Zr,Gi,co;return An.flags&1048576?(Zr=Se.visitedTypes)!=null&&Zr.has(hu(An))?(Se.flags&131072||(Se.encounteredError=!0,(co=(Gi=Se.tracker)==null?void 0:Gi.reportCyclicStructureError)==null||co.call(Gi)),g(Se)):Jt(An,ca=>u(ca,Se)):u(An,Se)}function Tr(An){return!!T8(An)}function it(An){return!!An.target&&Tr(An.target)&&!Tr(An)}function kt(An){var Zr;x.assert(!!(An.flags&524288));let Gi=An.declaration.readonlyToken?L.createToken(An.declaration.readonlyToken.kind):void 0,co=An.declaration.questionToken?L.createToken(An.declaration.questionToken.kind):void 0,ca,vc,Dl=!aC(An)&&!(LA(An).flags&2)&&Se.flags&4&&!(hf(An).flags&262144&&((Zr=Cu(hf(An)))==null?void 0:Zr.flags)&4194304);if(aC(An)){if(it(An)&&Se.flags&4){let vt=mf(Ka(262144,"T")),$t=Fo(vt,Se);vc=L.createTypeReferenceNode($t)}ca=L.createTypeOperatorNode(143,vc||u(LA(An),Se))}else if(Dl){let vt=mf(Ka(262144,"T")),$t=Fo(vt,Se);vc=L.createTypeReferenceNode($t),ca=vc}else ca=u(hf(An),Se);let os=je(s_(An),Se,ca),Dc=An.declaration.nameType?u(av(An),Se):void 0,js=u(Bb(ly(An),!!(kh(An)&4)),Se),m_=L.createMappedTypeNode(Gi,os,Dc,co,js,void 0);Se.approximateLength+=10;let Qe=lr(m_,1);if(it(An)&&Se.flags&4){let vt=io(Cu(Ti(An.declaration.typeParameter.constraint.type))||un,An.mapper);return L.createConditionalTypeNode(u(LA(An),Se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(vc.typeName),vt.flags&2?void 0:u(vt,Se))),Qe,L.createKeywordTypeNode(146))}else if(Dl)return L.createConditionalTypeNode(u(hf(An),Se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(vc.typeName),L.createTypeOperatorNode(143,u(LA(An),Se)))),Qe,L.createKeywordTypeNode(146));return Qe}function Qt(An){var Zr,Gi;let co=An.id,ca=An.symbol;if(ca){if(!!(Lr(An)&8388608)){let js=An.node;if(YI(js)&&Ti(js)===An){let m_=Ol(Se,js);if(m_)return m_}return(Zr=Se.visitedTypes)!=null&&Zr.has(co)?g(Se):Jt(An,ln)}let os=CS(An)?788968:111551;if($_(ca.valueDeclaration))return Ro(ca,Se,os);if(ca.flags&32&&!lZ(ca)&&!(ca.valueDeclaration&&ci(ca.valueDeclaration)&&Se.flags&2048&&(!Sc(ca.valueDeclaration)||ki(ca,Se.enclosingDeclaration,os,!1).accessibility!==0))||ca.flags&896||vc())return Ro(ca,Se,os);if((Gi=Se.visitedTypes)!=null&&Gi.has(co)){let Dc=UB(An);return Dc?Ro(Dc,Se,788968):g(Se)}else return Jt(An,ln)}else return ln(An);function vc(){var Dl;let os=!!(ca.flags&8192)&>(ca.declarations,js=>ra(js)),Dc=!!(ca.flags&16)&&(ca.parent||gn(ca.declarations,js=>js.parent.kind===312||js.parent.kind===268));if(os||Dc)return(!!(Se.flags&4096)||((Dl=Se.visitedTypes)==null?void 0:Dl.has(co)))&&(!(Se.flags&8)||dt(ca,Se.enclosingDeclaration))}}function Jt(An,Zr){var Gi,co,ca;let vc=An.id,Dl=Lr(An)&16&&An.symbol&&An.symbol.flags&32,os=Lr(An)&4&&An.node?"N"+rs(An.node):An.flags&16777216?"N"+rs(An.root.node):An.symbol?(Dl?"+":"")+ba(An.symbol):void 0;Se.visitedTypes||(Se.visitedTypes=new Set),os&&!Se.symbolDepth&&(Se.symbolDepth=new Map);let Dc=Se.enclosingDeclaration&&Qr(Se.enclosingDeclaration),js=`${hu(An)}|${Se.flags}`;Dc&&(Dc.serializedTypes||(Dc.serializedTypes=new Map));let m_=(Gi=Dc?.serializedTypes)==null?void 0:Gi.get(js);if(m_)return(co=m_.trackedSymbols)==null||co.forEach(([Gr,Fi,Oo])=>Se.tracker.trackSymbol(Gr,Fi,Oo)),m_.truncating&&(Se.truncating=!0),Se.approximateLength+=m_.addedLength,bn(m_.node);let Qe;if(os){if(Qe=Se.symbolDepth.get(os)||0,Qe>10)return g(Se);Se.symbolDepth.set(os,Qe+1)}Se.visitedTypes.add(vc);let vt=Se.trackedSymbols;Se.trackedSymbols=void 0;let $t=Se.approximateLength,Hn=Zr(An),Ar=Se.approximateLength-$t;return!Se.reportedDiagnostic&&!Se.encounteredError&&((ca=Dc?.serializedTypes)==null||ca.set(js,{node:Hn,truncating:Se.truncating,addedLength:Ar,trackedSymbols:Se.trackedSymbols})),Se.visitedTypes.delete(vc),os&&Se.symbolDepth.set(os,Qe),Se.trackedSymbols=vt,Hn;function bn(Gr){return!Ks(Gr)&&Do(Gr)===Gr?Gr:at(L.cloneNode(Sn(Gr,bn,void 0,mr)),Gr)}function mr(Gr,Fi,Oo,pa,fa){return Gr&&Gr.length===0?at(L.createNodeArray(void 0,Gr.hasTrailingComma),Gr):zn(Gr,Fi,Oo,pa,fa)}}function ln(An){if(ju(An)||An.containsError)return kt(An);let Zr=l_(An);if(!Zr.properties.length&&!Zr.indexInfos.length){if(!Zr.callSignatures.length&&!Zr.constructSignatures.length)return Se.approximateLength+=2,lr(L.createTypeLiteralNode(void 0),1);if(Zr.callSignatures.length===1&&!Zr.constructSignatures.length){let Dl=Zr.callSignatures[0];return ye(Dl,184,Se)}if(Zr.constructSignatures.length===1&&!Zr.callSignatures.length){let Dl=Zr.constructSignatures[0];return ye(Dl,185,Se)}}let Gi=jr(Zr.constructSignatures,Dl=>!!(Dl.flags&4));if(gt(Gi)){let Dl=mn(Gi,WA);return Zr.callSignatures.length+(Zr.constructSignatures.length-Gi.length)+Zr.indexInfos.length+(Se.flags&2048?yv(Zr.properties,Dc=>!(Dc.flags&4194304)):Nn(Zr.properties))&&Dl.push(RS(Zr)),u(ga(Dl),Se)}let co=Se.flags;Se.flags|=4194304;let ca=lo(Zr);Se.flags=co;let vc=L.createTypeLiteralNode(ca);return Se.approximateLength+=2,lr(vc,Se.flags&1024?0:1),vc}function Wn(An){let Zr=Vs(An);if(An.target===Xo||An.target===Zo){if(Se.flags&2){let ca=u(Zr[0],Se);return L.createTypeReferenceNode(An.target===Xo?"Array":"ReadonlyArray",[ca])}let Gi=u(Zr[0],Se),co=L.createArrayTypeNode(Gi);return An.target===Xo?co:L.createTypeOperatorNode(148,co)}else if(An.target.objectFlags&8){if(Zr=Pc(Zr,(Gi,co)=>Bb(Gi,!!(An.target.elementFlags[co]&2))),Zr.length>0){let Gi=lv(An),co=W(Zr.slice(0,Gi),Se);if(co){let{labeledElementDeclarations:ca}=An.target;for(let Dl=0;Dl0){let Dc=(An.target.typeParameters||Xe).length;vc=W(Zr.slice(co,Dc),Se)}let Dl=Se.flags;Se.flags|=16;let os=Ro(An.symbol,Se,788968,vc);return Se.flags=Dl,ca?bi(ca,os):os}}}function bi(An,Zr){if(rg(An)){let Gi=An.typeArguments,co=An.qualifier;co&&(Fe(co)?Gi!==DT(co)&&(co=Fy(L.cloneNode(co),Gi)):Gi!==DT(co.right)&&(co=L.updateQualifiedName(co,co.left,Fy(L.cloneNode(co.right),Gi)))),Gi=Zr.typeArguments;let ca=ui(Zr);for(let vc of ca)co=co?L.createQualifiedName(co,vc):vc;return L.updateImportTypeNode(An,An.argument,An.attributes,co,Gi,An.isTypeOf)}else{let Gi=An.typeArguments,co=An.typeName;Fe(co)?Gi!==DT(co)&&(co=Fy(L.cloneNode(co),Gi)):Gi!==DT(co.right)&&(co=L.updateQualifiedName(co,co.left,Fy(L.cloneNode(co.right),Gi))),Gi=Zr.typeArguments;let ca=ui(Zr);for(let vc of ca)co=L.createQualifiedName(co,vc);return L.updateTypeReferenceNode(An,co,Gi)}}function ui(An){let Zr=An.typeName,Gi=[];for(;!Fe(Zr);)Gi.unshift(Zr.right),Zr=Zr.left;return Gi.unshift(Zr),Gi}function lo(An){if(c(Se))return[L.createPropertySignature(void 0,"...",void 0,void 0)];let Zr=[];for(let ca of An.callSignatures)Zr.push(ye(ca,179,Se));for(let ca of An.constructSignatures)ca.flags&4||Zr.push(ye(ca,180,Se));for(let ca of An.indexInfos)Zr.push(te(ca,Se,An.objectFlags&1024?g(Se):void 0));let Gi=An.properties;if(!Gi)return Zr;let co=0;for(let ca of Gi){if(co++,Se.flags&2048){if(ca.flags&4194304)continue;Tf(ca)&6&&Se.tracker.reportPrivateInBaseOfClassExpression&&Se.tracker.reportPrivateInBaseOfClassExpression(Vi(ca.escapedName))}if(c(Se)&&co+2!(Wn.flags&32768)),0);for(let Wn of ln){let bi=ye(Wn,173,Se,{name:Br,questionToken:Tr});Cn.push(Jt(bi))}if(ln.length||!Tr)return}let it;T(ot,Se)?it=g(Se):(di&&(Se.reverseMappedStack||(Se.reverseMappedStack=[]),Se.reverseMappedStack.push(ot)),it=Ai?vs(Se,Ai,ot,Ii):L.createKeywordTypeNode(133),di&&Se.reverseMappedStack.pop());let kt=f_(ot)?[L.createToken(148)]:void 0;kt&&(Se.approximateLength+=9);let Qt=L.createPropertySignature(kt,Br,Tr,it);Cn.push(Jt(Qt));function Jt(ln){var Wn;let bi=(Wn=ot.declarations)==null?void 0:Wn.find(ui=>ui.kind===355);if(bi){let ui=QL(bi.comment);ui&&_E(ln,[{kind:3,text:`* * `+ui.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ot.valueDeclaration&&ic(ln,ot.valueDeclaration);return ln}}function W(ot,Se,Cn){if(gt(ot)){if(c(Se))if(Cn){if(ot.length>2)return[u(ot[0],Se),L.createTypeReferenceNode(`... ${ot.length-2} more ...`,void 0),u(ot[ot.length-1],Se)]}else return[L.createTypeReferenceNode("...",void 0)];let di=!(Se.flags&64)?qp():void 0,Ai=[],Ii=0;for(let Br of ot){if(Ii++,c(Se)&&Ii+2{if(!Aoe(Tr,([it],[kt])=>V(it,kt)))for(let[it,kt]of Tr)Ai[kt]=u(it,Se)}),Se.flags=Br}return Ai}}function V(ot,Se){return ot===Se||!!ot.symbol&&ot.symbol===Se.symbol||!!ot.aliasSymbol&&ot.aliasSymbol===Se.aliasSymbol}function te(ot,Se,Cn){let Rr=Hre(ot)||"x",di=u(ot.keyType,Se),Ai=L.createParameterDeclaration(void 0,void 0,Rr,void 0,di,void 0);return Cn||(Cn=u(ot.type||G,Se)),!ot.type&&!(Se.flags&2097152)&&(Se.encounteredError=!0),Se.approximateLength+=Rr.length+4,L.createIndexSignature(ot.isReadonly?[L.createToken(148)]:void 0,[Ai],Cn)}function ye(ot,Se,Cn,Rr){var di;let Ai=Cn.flags&256;Ai&&(Cn.flags&=-257),Cn.approximateLength+=3;let Ii,Br;Cn.flags&32&&ot.target&&ot.mapper&&ot.target.typeParameters?Br=ot.target.typeParameters.map(lo=>u(io(lo,ot.mapper),Cn)):Ii=ot.typeParameters&&ot.typeParameters.map(lo=>mt(lo,Cn));let Tr=dwe(ot,!0)[0],it;if(Cn.enclosingDeclaration&&ot.declaration&&ot.declaration!==Cn.enclosingDeclaration&&!ir(ot.declaration)&&(gt(Tr)||gt(ot.typeParameters))){let lo=function(An,Zr){x.assert(Cn.enclosingDeclaration);let Gi;Qr(Cn.enclosingDeclaration).fakeScopeForSignatureDeclaration===An?Gi=Cn.enclosingDeclaration:Cn.enclosingDeclaration.parent&&Qr(Cn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===An&&(Gi=Cn.enclosingDeclaration.parent),x.assertOptionalNode(Gi,Ko);let co=Gi?.locals??aa(),ca;if(Zr((os,Dc)=>{co.has(os)||(ca=Tn(ca,os),co.set(os,Dc))}),!ca)return;let vc=it;function Dl(){gn(ca,os=>co.delete(os)),vc?.()}if(Gi)it=Dl;else{let os=bh.createBlock(Xe);Qr(os).fakeScopeForSignatureDeclaration=An,os.locals=co;let Dc=Cn.enclosingDeclaration;ja(os,Dc),Cn.enclosingDeclaration=os,it=()=>{Cn.enclosingDeclaration=Dc,Dl()}}};var kt=lo;lo("params",An=>{for(let Zr of Tr)An(Zr.escapedName,Zr)}),Cn.flags&4&&lo("typeParams",An=>{for(let Zr of ot.typeParameters??Xe){let Gi=Fo(Zr,Cn).escapedText;An(Gi,Zr.symbol)}})}let Qt=(gt(Tr,lo=>lo!==Tr[Tr.length-1]&&!!(Tl(lo)&32768))?ot.parameters:Tr).map(lo=>rn(lo,Cn,Se===176,Rr?.privateSymbolVisitor,Rr?.bundledImports)),Jt=Cn.flags&33554432?void 0:_e(ot,Cn);Jt&&Qt.unshift(Jt);let ln,Wn=Ff(ot);if(Wn){let lo=Wn.kind===2||Wn.kind===3?L.createToken(131):void 0,An=Wn.kind===1||Wn.kind===3?lr(L.createIdentifier(Wn.parameterName),16777216):L.createThisTypeNode(),Zr=Wn.type&&u(Wn.type,Cn);ln=L.createTypePredicateNode(lo,An,Zr)}else{let lo=ds(ot);lo&&!(Ai&&xt(lo))?ln=Oa(Cn,lo,ot,Rr?.privateSymbolVisitor,Rr?.bundledImports):Ai||(ln=L.createKeywordTypeNode(133))}let bi=Rr?.modifiers;if(Se===185&&ot.flags&4){let lo=x_(bi);bi=L.createModifiersFromModifierFlags(lo|64)}let ui=Se===179?L.createCallSignature(Ii,Qt,ln):Se===180?L.createConstructSignature(Ii,Qt,ln):Se===173?L.createMethodSignature(bi,Rr?.name??L.createIdentifier(""),Rr?.questionToken,Ii,Qt,ln):Se===174?L.createMethodDeclaration(bi,void 0,Rr?.name??L.createIdentifier(""),void 0,Ii,Qt,ln,void 0):Se===176?L.createConstructorDeclaration(bi,Qt,void 0):Se===177?L.createGetAccessorDeclaration(bi,Rr?.name??L.createIdentifier(""),Qt,ln,void 0):Se===178?L.createSetAccessorDeclaration(bi,Rr?.name??L.createIdentifier(""),Qt,void 0):Se===181?L.createIndexSignature(bi,Qt,ln):Se===324?L.createJSDocFunctionType(Qt,ln):Se===184?L.createFunctionTypeNode(Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Se===185?L.createConstructorTypeNode(bi,Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Se===262?L.createFunctionDeclaration(bi,void 0,Rr?.name?na(Rr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,void 0):Se===218?L.createFunctionExpression(bi,void 0,Rr?.name?na(Rr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,L.createBlock([])):Se===219?L.createArrowFunction(bi,Ii,Qt,ln,void 0,L.createBlock([])):x.assertNever(Se);if(Br&&(ui.typeArguments=L.createNodeArray(Br)),((di=ot.declaration)==null?void 0:di.kind)===330&&ot.declaration.parent.kind===346){let lo=uc(ot.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(An=>An.replace(/^\s+/," ")).join(` `);rP(ui,3,lo,!0)}return it?.(),ui}function _e(ot,Se){if(ot.thisParameter)return rn(ot.thisParameter,Se);if(ot.declaration&&ir(ot.declaration)){let Cn=nF(ot.declaration);if(Cn&&Cn.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,u(Ti(Cn.typeExpression),Se))}}function je(ot,Se,Cn){let Rr=Se.flags;Se.flags&=-513;let di=L.createModifiersFromModifierFlags(tye(ot)),Ai=Fo(ot,Se),Ii=OA(ot),Br=Ii&&u(Ii,Se);return Se.flags=Rr,L.createTypeParameterDeclaration(di,Ai,Cn,Br)}function mt(ot,Se,Cn=Cu(ot)){let Rr=Cn&&u(Cn,Se);return je(ot,Se,Rr)}function At(ot){let Se=cl(ot,169);if(Se)return Se;if(!ch(ot))return cl(ot,348)}function rn(ot,Se,Cn,Rr,di){let Ai=At(ot),Ii=sr(ot);Ai&&Z6e(Ai)&&(Ii=zb(Ii));let Br=vs(Se,Ii,ot,Se.enclosingDeclaration,Rr,di),Tr=!(Se.flags&8192)&&Cn&&Ai&&Am(Ai)?mn(y0(Ai),L.cloneNode):void 0,kt=Ai&&Kh(Ai)||Tl(ot)&32768?L.createToken(26):void 0,Qt=sn(ot,Ai,Se),ln=Ai&&_8(Ai)||Tl(ot)&16384?L.createToken(58):void 0,Wn=L.createParameterDeclaration(Tr,kt,Qt,ln,Br,void 0);return Se.approximateLength+=vl(ot).length+3,Wn}function sn(ot,Se,Cn){return Se&&Se.name?Se.name.kind===80?lr(L.cloneNode(Se.name),16777216):Se.name.kind===166?lr(L.cloneNode(Se.name.right),16777216):Rr(Se.name):vl(ot);function Rr(di){return Ai(di);function Ai(Ii){Cn.tracker.canTrackSymbol&&Ya(Ii)&&jhe(Ii)&&nr(Ii.expression,Cn.enclosingDeclaration,Cn);let Br=Sn(Ii,Ai,void 0,void 0,Ai);return Xa(Br)&&(Br=L.updateBindingElement(Br,Br.dotDotDotToken,Br.propertyName,Br.name,void 0)),Ks(Br)||(Br=L.cloneNode(Br)),lr(Br,16777217)}}}function nr(ot,Se,Cn){if(!Cn.tracker.canTrackSymbol)return;let Rr=Fp(ot),di=hl(Rr,Rr.escapedText,1160127,void 0,void 0,!0);di&&Cn.tracker.trackSymbol(di,Se,111551)}function Mn(ot,Se,Cn,Rr){return Se.tracker.trackSymbol(ot,Se.enclosingDeclaration,Cn),an(ot,Se,Cn,Rr)}function an(ot,Se,Cn,Rr){let di;return!(ot.flags&262144)&&(Se.enclosingDeclaration||Se.flags&64)&&!(Se.flags&134217728)?(di=x.checkDefined(Ii(ot,Cn,!0)),x.assert(di&&di.length>0)):di=[ot],di;function Ii(Br,Tr,it){let kt=yb(Br,Se.enclosingDeclaration,Tr,!!(Se.flags&128)),Qt;if(!kt||JE(kt[0],Se.enclosingDeclaration,kt.length===1?Tr:ry(Tr))){let ln=HE(kt?kt[0]:Br,Se.enclosingDeclaration,Tr);if(Nn(ln)){Qt=ln.map(ui=>gt(ui.declarations,Qd)?jn(ui,Se):void 0);let Wn=ln.map((ui,lo)=>lo);Wn.sort(Jt);let bi=Wn.map(ui=>ln[ui]);for(let ui of bi){let lo=Ii(ui,ry(Tr),!1);if(lo){if(ui.exports&&ui.exports.get("export=")&&r_(ui.exports.get("export="),Br)){kt=lo;break}kt=lo.concat(kt||[mg(ui,Br)||Br]);break}}}}if(kt)return kt;if(it||!(Br.flags&6144))return!it&&!Rr&&gn(Br.declarations,Qd)?void 0:[Br];function Jt(ln,Wn){let bi=Qt[ln],ui=Qt[Wn];if(bi&&ui){let lo=Lp(ui);return Lp(bi)===lo?R3(bi)-R3(ui):lo?-1:1}return 0}}}function On(ot,Se){let Cn;return TC(ot).flags&524384&&(Cn=L.createNodeArray(mn(Nr(ot),di=>mt(di,Se)))),Cn}function Ln(ot,Se,Cn){var Rr;x.assert(ot&&0<=Se&&Sewb(kt,Tr.links.mapper)),Cn)}else Ii=On(di,Cn)}return Ii}function Yn(ot){return MT(ot.objectType)?Yn(ot.objectType):ot}function jn(ot,Se,Cn){let Rr=cl(ot,312);if(!Rr){let it=Wl(ot.declarations,kt=>RA(kt,ot));it&&(Rr=cl(it,312))}if(Rr&&Rr.moduleName!==void 0)return Rr.moduleName;if(!Rr){if(Se.tracker.trackReferencedAmbientModule){let it=jr(ot.declarations,Md);if(Nn(it))for(let kt of it)Se.tracker.trackReferencedAmbientModule(kt,ot)}if(bK.test(ot.escapedName))return ot.escapedName.substring(1,ot.escapedName.length-1)}if(!Se.enclosingDeclaration||!Se.tracker.moduleResolverHost)return bK.test(ot.escapedName)?ot.escapedName.substring(1,ot.escapedName.length-1):Gn(YV(ot)).fileName;let di=Gn(Nl(Se.enclosingDeclaration)),Ai=Cn||di?.impliedNodeFormat,Ii=RP(di.path,Ai),Br=qi(ot),Tr=Br.specifierCache&&Br.specifierCache.get(Ii);if(!Tr){let it=!!xs(B),{moduleResolverHost:kt}=Se.tracker,Qt=it?{...B,baseUrl:kt.getCommonSourceDirectory()}:B;Tr=Va(lIe(ot,Xt,Qt,di,kt,{importModuleSpecifierPreference:it?"non-relative":"project-relative",importModuleSpecifierEnding:it?"minimal":Ai===99?"js":void 0},{overrideImportMode:Cn})),Br.specifierCache??(Br.specifierCache=new Map),Br.specifierCache.set(Ii,Tr)}return Tr}function $n(ot){let Se=L.createIdentifier(Vi(ot.escapedName));return ot.parent?L.createQualifiedName($n(ot.parent),Se):Se}function Ro(ot,Se,Cn,Rr){let di=Mn(ot,Se,Cn,!(Se.flags&16384)),Ai=Cn===111551;if(gt(di[0].declarations,Qd)){let Tr=di.length>1?Br(di,di.length-1,1):void 0,it=Rr||Ln(di,0,Se),kt=Gn(Nl(Se.enclosingDeclaration)),Qt=SF(di[0]),Jt,ln;if((du(B)===3||du(B)===99)&&Qt?.impliedNodeFormat===99&&Qt.impliedNodeFormat!==kt?.impliedNodeFormat&&(Jt=jn(di[0],Se,99),ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),Jt||(Jt=jn(di[0],Se)),!(Se.flags&67108864)&&du(B)!==1&&Jt.includes("/node_modules/")){let bi=Jt;if(du(B)===3||du(B)===99){let ui=kt?.impliedNodeFormat===99?1:99;Jt=jn(di[0],Se,ui),Jt.includes("/node_modules/")?Jt=bi:ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(ui===99?"import":"require"))]))}ln||(Se.encounteredError=!0,Se.tracker.reportLikelyUnsafeImportRequiredError&&Se.tracker.reportLikelyUnsafeImportRequiredError(bi))}let Wn=L.createLiteralTypeNode(L.createStringLiteral(Jt));if(Se.tracker.trackExternalModuleSymbolOfImportTypeNode&&Se.tracker.trackExternalModuleSymbolOfImportTypeNode(di[0]),Se.approximateLength+=Jt.length+10,!Tr||Xu(Tr)){if(Tr){let bi=Fe(Tr)?Tr:Tr.right;Fy(bi,void 0)}return L.createImportTypeNode(Wn,ln,Tr,it,Ai)}else{let bi=Yn(Tr),ui=bi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(Wn,ln,ui,it,Ai),bi.indexType)}}let Ii=Br(di,di.length-1,0);if(MT(Ii))return Ii;if(Ai)return L.createTypeQueryNode(Ii);{let Tr=Fe(Ii)?Ii:Ii.right,it=DT(Tr);return Fy(Tr,void 0),L.createTypeReferenceNode(Ii,it)}function Br(Tr,it,kt){let Qt=it===Tr.length-1?Rr:Ln(Tr,it,Se),Jt=Tr[it],ln=Tr[it-1],Wn;if(it===0)Se.flags|=16777216,Wn=qE(Jt,Se),Se.approximateLength+=(Wn?Wn.length:0)+1,Se.flags^=16777216;else if(ln&&xp(ln)){let ui=xp(ln);Gc(ui,(lo,An)=>{if(r_(lo,Jt)&&!p8(An)&&An!=="export=")return Wn=Vi(An),!0})}if(Wn===void 0){let ui=Wl(Jt.declarations,Po);if(ui&&Ya(ui)&&Xu(ui.expression)){let lo=Br(Tr,it-1,kt);return Xu(lo)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(lo)),L.createTypeQueryNode(ui.expression)):lo}Wn=qE(Jt,Se)}if(Se.approximateLength+=Wn.length+1,!(Se.flags&16)&&ln&&Cb(ln)&&Cb(ln).get(Jt.escapedName)&&r_(Cb(ln).get(Jt.escapedName),Jt)){let ui=Br(Tr,it-1,kt);return MT(ui)?L.createIndexedAccessTypeNode(ui,L.createLiteralTypeNode(L.createStringLiteral(Wn))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(ui,Qt),L.createLiteralTypeNode(L.createStringLiteral(Wn)))}let bi=lr(L.createIdentifier(Wn),16777216);if(Qt&&Fy(bi,L.createNodeArray(Qt)),bi.symbol=Jt,it>kt){let ui=Br(Tr,it-1,kt);return Xu(ui)?L.createQualifiedName(ui,bi):x.fail("Impossible construct - an export of an indexed access cannot be reachable")}return bi}}function bo(ot,Se,Cn){let Rr=hl(Se.enclosingDeclaration,ot,788968,void 0,ot,!1);return Rr&&Rr.flags&262144?Rr!==Cn.symbol:!1}function Fo(ot,Se){var Cn,Rr;if(Se.flags&4&&Se.typeParameterNames){let Ai=Se.typeParameterNames.get(hu(ot));if(Ai)return Ai}let di=fo(ot.symbol,Se,788968,!0);if(!(di.kind&80))return L.createIdentifier("(Missing type parameter)");if(Se.flags&4){let Ai=di.escapedText,Ii=((Cn=Se.typeParameterNamesByTextNextNameCount)==null?void 0:Cn.get(Ai))||0,Br=Ai;for(;(Rr=Se.typeParameterNamesByText)!=null&&Rr.has(Br)||bo(Br,Se,ot);)Ii++,Br=`${Ai}_${Ii}`;if(Br!==Ai){let Tr=DT(di);di=L.createIdentifier(Br),Fy(di,Tr)}(Se.typeParameterNamesByTextNextNameCount||(Se.typeParameterNamesByTextNextNameCount=new Map)).set(Ai,Ii),(Se.typeParameterNames||(Se.typeParameterNames=new Map)).set(hu(ot),di),(Se.typeParameterNamesByText||(Se.typeParameterNamesByText=new Set)).add(Br)}return di}function fo(ot,Se,Cn,Rr){let di=Mn(ot,Se,Cn);return Rr&&di.length!==1&&!Se.encounteredError&&!(Se.flags&65536)&&(Se.encounteredError=!0),Ai(di,di.length-1);function Ai(Ii,Br){let Tr=Ln(Ii,Br,Se),it=Ii[Br];Br===0&&(Se.flags|=16777216);let kt=qE(it,Se);Br===0&&(Se.flags^=16777216);let Qt=lr(L.createIdentifier(kt),16777216);return Tr&&Fy(Qt,L.createNodeArray(Tr)),Qt.symbol=it,Br>0?L.createQualifiedName(Ai(Ii,Br-1),Qt):Qt}}function Rc(ot,Se,Cn){let Rr=Mn(ot,Se,Cn);return di(Rr,Rr.length-1);function di(Ai,Ii){let Br=Ln(Ai,Ii,Se),Tr=Ai[Ii];Ii===0&&(Se.flags|=16777216);let it=qE(Tr,Se);Ii===0&&(Se.flags^=16777216);let kt=it.charCodeAt(0);if(R2(kt)&>(Tr.declarations,Qd))return L.createStringLiteral(jn(Tr,Se));if(Ii===0||_U(it,ce)){let Qt=lr(L.createIdentifier(it),16777216);return Br&&Fy(Qt,L.createNodeArray(Br)),Qt.symbol=Tr,Ii>0?L.createPropertyAccessExpression(di(Ai,Ii-1),Qt):Qt}else{kt===91&&(it=it.substring(1,it.length-1),kt=it.charCodeAt(0));let Qt;if(R2(kt)&&!(Tr.flags&8)?Qt=L.createStringLiteral(Yf(it).replace(/\\./g,Jt=>Jt.substring(1)),kt===39):""+ +it===it&&(Qt=L.createNumericLiteral(+it)),!Qt){let Jt=lr(L.createIdentifier(it),16777216);Br&&Fy(Jt,L.createNodeArray(Br)),Jt.symbol=Tr,Qt=Jt}return L.createElementAccessExpression(di(Ai,Ii-1),Qt)}}}function Vf(ot){let Se=Po(ot);return Se?Ya(Se)?!!(po(Se.expression).flags&402653316):Js(Se)?!!(po(Se.argumentExpression).flags&402653316):Da(Se):!1}function sp(ot){let Se=Po(ot);return!!(Se&&Da(Se)&&(Se.singleQuote||!Ks(Se)&&ao(uc(Se,!1),"'")))}function Pn(ot,Se){let Cn=!!Nn(ot.declarations)&&oo(ot.declarations,Vf),Rr=!!Nn(ot.declarations)&&oo(ot.declarations,sp),di=!!(ot.flags&8192),Ai=Xn(ot,Se,Rr,Cn,di);if(Ai)return Ai;let Ii=Vi(ot.escapedName);return B6(Ii,ns(B),Rr,Cn,di)}function Xn(ot,Se,Cn,Rr,di){let Ai=qi(ot).nameType;if(Ai){if(Ai.flags&384){let Ii=""+Ai.value;return!Yp(Ii,ns(B))&&(Rr||!ng(Ii))?L.createStringLiteral(Ii,!!Cn):ng(Ii)&&ao(Ii,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-Ii))):B6(Ii,ns(B),Cn,Rr,di)}if(Ai.flags&8192)return L.createComputedPropertyName(Rc(Ai.symbol,Se,111551))}}function ro(ot){let Se={...ot};return Se.typeParameterNames&&(Se.typeParameterNames=new Map(Se.typeParameterNames)),Se.typeParameterNamesByText&&(Se.typeParameterNamesByText=new Set(Se.typeParameterNamesByText)),Se.typeParameterSymbolList&&(Se.typeParameterSymbolList=new Set(Se.typeParameterSymbolList)),Se.tracker=new SK(Se,Se.tracker.inner,Se.tracker.moduleResolverHost),Se}function hr(ot,Se){return ot.declarations&&Vr(ot.declarations,Cn=>!!yd(Cn)&&(!Se||!!Fn(Cn,Rr=>Rr===Se)))}function Co(ot,Se){return!(Lr(Se)&4)||!If(ot)||Nn(ot.typeArguments)>=wh(Se.target.typeParameters)}function is(ot){for(;Qr(ot).fakeScopeForSignatureDeclaration;)ot=ot.parent;return ot}function vs(ot,Se,Cn,Rr,di,Ai){if(!Vt(Se)&&Rr){let Tr=hr(Cn,is(Rr));if(Tr&&!ws(Tr)&&!Qp(Tr)){let it=yd(Tr);if(Gd(it,Tr,Se)&&Co(it,Se)){let kt=Ol(ot,it,di,Ai);if(kt)return kt}}}let Ii=ot.flags;Se.flags&8192&&Se.symbol===Cn&&(!ot.enclosingDeclaration||gt(Cn.declarations,Tr=>Gn(Tr)===Gn(ot.enclosingDeclaration)))&&(ot.flags|=1048576);let Br=u(Se,ot);return ot.flags=Ii,Br}function Gd(ot,Se,Cn){let Rr=Ti(ot);return Rr===Cn?!0:Ao(Se)&&Se.questionToken?um(Cn,524288)===Rr:!1}function Oa(ot,Se,Cn,Rr,di){if(!Vt(Se)&&ot.enclosingDeclaration){let Ai=Cn.declaration&&$f(Cn.declaration),Ii=is(ot.enclosingDeclaration);if(Fn(Ai,Br=>Br===Ii)&&Ai){let Br=Ti(Ai);if((Br.flags&262144&&Br.isThisType?io(Br,Cn.mapper):Br)===Se&&Co(Ai,Se)){let it=Ol(ot,Ai,Rr,di);if(it)return it}}}return u(Se,ot)}function Pu(ot,Se,Cn){let Rr=!1,di=Fp(ot);if(ir(ot)&&(hT(di)||Yh(di.parent)||Su(di.parent)&&mj(di.parent.left)&&hT(di.parent.right)))return Rr=!0,{introducesError:Rr,node:ot};let Ai=wf(ot),Ii=Bs(di,Ai,!0,!0);if(Ii&&(ki(Ii,Se.enclosingDeclaration,Ai,!1).accessibility!==0?Rr=!0:(Se.tracker.trackSymbol(Ii,Se.enclosingDeclaration,Ai),Cn?.(Ii)),Fe(ot))){let Br=Xs(Ii),Tr=Ii.flags&262144?Fo(Br,Se):L.cloneNode(ot);return Tr.symbol=Ii,{introducesError:Rr,node:lr(xr(Tr,ot),16777216)}}return{introducesError:Rr,node:ot}}function Ol(ot,Se,Cn,Rr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let di=!1,Ai=Gn(Se),Ii=$e(Se,Br,ji);if(di)return;return Ii===Se?at(L.cloneNode(Se),Se):Ii;function Br(Tr){if(Eae(Tr)||Tr.kind===326)return L.createKeywordTypeNode(133);if(Sae(Tr))return L.createKeywordTypeNode(159);if(LR(Tr))return L.createUnionTypeNode([$e(Tr.type,Br,ji),L.createLiteralTypeNode(L.createNull())]);if(sH(Tr))return L.createUnionTypeNode([$e(Tr.type,Br,ji),L.createKeywordTypeNode(157)]);if(V4(Tr))return $e(Tr.type,Br);if(j4(Tr))return L.createArrayTypeNode($e(Tr.type,Br,ji));if(FT(Tr))return L.createTypeLiteralNode(mn(Tr.jsDocPropertyTags,Jt=>{let ln=Fe(Jt.name)?Jt.name:Jt.name.right,Wn=Ue(Ti(Tr),ln.escapedText),bi=Wn&&Jt.typeExpression&&Ti(Jt.typeExpression.type)!==Wn?u(Wn,ot):void 0;return L.createPropertySignature(void 0,ln,Jt.isBracketed||Jt.typeExpression&&sH(Jt.typeExpression.type)?L.createToken(58):void 0,bi||Jt.typeExpression&&$e(Jt.typeExpression.type,Br,ji)||L.createKeywordTypeNode(133))}));if(If(Tr)&&Fe(Tr.typeName)&&Tr.typeName.escapedText==="")return xr(L.createKeywordTypeNode(133),Tr);if((zy(Tr)||If(Tr))&&HF(Tr))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,$e(Tr.typeArguments[0],Br,ji))],$e(Tr.typeArguments[1],Br,ji))]);if(kR(Tr))if(rR(Tr)){let Jt;return L.createConstructorTypeNode(void 0,zn(Tr.typeParameters,Br,fl),to(Tr.parameters,(ln,Wn)=>ln.name&&Fe(ln.name)&&ln.name.escapedText==="new"?(Jt=ln.type,void 0):L.createParameterDeclaration(void 0,it(ln),kt(ln,Wn),ln.questionToken,$e(ln.type,Br,ji),void 0)),$e(Jt||Tr.type,Br,ji)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(zn(Tr.typeParameters,Br,fl),mn(Tr.parameters,(Jt,ln)=>L.createParameterDeclaration(void 0,it(Jt),kt(Jt,ln),Jt.questionToken,$e(Jt.type,Br,ji),void 0)),$e(Tr.type,Br,ji)||L.createKeywordTypeNode(133));if(If(Tr)&&x2(Tr)&&(!Co(Tr,Ti(Tr))||jwe(Tr)||lt===dC(Tr,788968,!0)))return xr(u(Ti(Tr),ot),Tr);if(wv(Tr)){let Jt=Qr(Tr).resolvedSymbol;return x2(Tr)&&Jt&&(!Tr.isTypeOf&&!(Jt.flags&788968)||!(Nn(Tr.typeArguments)>=wh(Nr(Jt))))?xr(u(Ti(Tr),ot),Tr):L.updateImportTypeNode(Tr,L.updateLiteralTypeNode(Tr.argument,Qt(Tr,Tr.argument.literal)),Tr.attributes,Tr.qualifier,zn(Tr.typeArguments,Br,ji),Tr.isTypeOf)}if(Xu(Tr)||Bl(Tr)){let{introducesError:Jt,node:ln}=Pu(Tr,ot,Cn);if(di=di||Jt,ln!==Tr)return ln}return Ai&&$I(Tr)&&hs(Ai,Tr.pos).line===hs(Ai,Tr.end).line&&lr(Tr,1),Sn(Tr,Br,void 0);function it(Jt){return Jt.dotDotDotToken||(Jt.type&&j4(Jt.type)?L.createToken(26):void 0)}function kt(Jt,ln){return Jt.name&&Fe(Jt.name)&&Jt.name.escapedText==="this"?"this":it(Jt)?"args":`arg${ln}`}function Qt(Jt,ln){if(Rr){if(ot.tracker&&ot.tracker.moduleResolverHost){let Wn=abe(Jt);if(Wn){let ui={getCanonicalFileName:Nd(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ot.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ot.tracker.moduleResolverHost.getCommonSourceDirectory()},lo=i6(ui,Wn);return L.createStringLiteral(lo)}}}else if(ot.tracker&&ot.tracker.trackExternalModuleSymbolOfImportTypeNode){let Wn=ty(ln,ln,void 0);Wn&&ot.tracker.trackExternalModuleSymbolOfImportTypeNode(Wn)}return ln}}}function gl(ot,Se,Cn){var Rr;let di=us(L.createPropertyDeclaration,174,!0),Ai=us((Ct,Ir,pi,Jr)=>L.createPropertySignature(Ct,Ir,pi,Jr),173,!1),Ii=Se.enclosingDeclaration,Br=[],Tr=new Set,it=[],kt=Se;Se={...kt,usedSymbolNames:new Set(kt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Rr=kt.remappedSymbolReferences)==null?void 0:Rr.entries()),tracker:void 0};let Qt={...kt.tracker.inner,trackSymbol:(Ct,Ir,pi)=>{var Jr,li;if((Jr=Se.remappedSymbolNames)!=null&&Jr.has(ba(Ct)))return!1;if(ki(Ct,Ir,pi,!1).accessibility===0){let sa=an(Ct,Se,pi);if(!(Ct.flags&4)){let Vo=sa[0],ks=Gn(kt.enclosingDeclaration);gt(Vo.declarations,ps=>Gn(ps)===ks)&&os(Vo)}}else if((li=kt.tracker.inner)!=null&&li.trackSymbol)return kt.tracker.inner.trackSymbol(Ct,Ir,pi);return!1}};Se.tracker=new SK(Se,Qt,kt.tracker.moduleResolverHost),Gc(ot,(Ct,Ir)=>{let pi=Vi(Ir);Bm(Ct,pi)});let Jt=!Cn,ln=ot.get("export=");return ln&&ot.size>1&&ln.flags&2098688&&(ot=aa(),ot.set("export=",ln)),ca(ot),Zr(Br);function Wn(Ct){return!!Ct&&Ct.kind===80}function bi(Ct){return Ml(Ct)?jr(mn(Ct.declarationList.declarations,Po),Wn):jr([Po(Ct)],Wn)}function ui(Ct){let Ir=Vr(Ct,Ll),pi=Kl(Ct,ql),Jr=pi!==-1?Ct[pi]:void 0;if(Jr&&Ir&&Ir.isExportEquals&&Fe(Ir.expression)&&Fe(Jr.name)&&gr(Jr.name)===gr(Ir.expression)&&Jr.body&&N_(Jr.body)){let li=jr(Ct,Vo=>!!(lu(Vo)&32)),Za=Jr.name,sa=Jr.body;if(Nn(li)&&(Jr=L.updateModuleDeclaration(Jr,Jr.modifiers,Jr.name,sa=L.updateModuleBlock(sa,L.createNodeArray([...Jr.body.statements,L.createExportDeclaration(void 0,!1,L.createNamedExports(mn(va(li,Vo=>bi(Vo)),Vo=>L.createExportSpecifier(!1,void 0,Vo))),void 0)]))),Ct=[...Ct.slice(0,pi),Jr,...Ct.slice(pi+1)]),!Vr(Ct,Vo=>Vo!==Jr&&XL(Vo,Za))){Br=[];let Vo=!gt(sa.statements,ks=>$r(ks,32)||Ll(ks)||Xl(ks));gn(sa.statements,ks=>{js(ks,Vo?32:0)}),Ct=[...jr(Ct,ks=>ks!==Jr&&ks!==Ir),...Br]}}return Ct}function lo(Ct){let Ir=jr(Ct,Jr=>Xl(Jr)&&!Jr.moduleSpecifier&&!!Jr.exportClause&&xf(Jr.exportClause));Nn(Ir)>1&&(Ct=[...jr(Ct,li=>!Xl(li)||!!li.moduleSpecifier||!li.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(Ir,li=>na(li.exportClause,xf).elements)),void 0)]);let pi=jr(Ct,Jr=>Xl(Jr)&&!!Jr.moduleSpecifier&&!!Jr.exportClause&&xf(Jr.exportClause));if(Nn(pi)>1){let Jr=BC(pi,li=>Da(li.moduleSpecifier)?">"+li.moduleSpecifier.text:">");if(Jr.length!==pi.length)for(let li of Jr)li.length>1&&(Ct=[...jr(Ct,Za=>!li.includes(Za)),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(li,Za=>na(Za.exportClause,xf).elements)),li[0].moduleSpecifier)])}return Ct}function An(Ct){let Ir=Kl(Ct,pi=>Xl(pi)&&!pi.moduleSpecifier&&!pi.attributes&&!!pi.exportClause&&xf(pi.exportClause));if(Ir>=0){let pi=Ct[Ir],Jr=to(pi.exportClause.elements,li=>{if(!li.propertyName){let Za=EL(Ct),sa=jr(Za,Vo=>XL(Ct[Vo],li.name));if(Nn(sa)&&oo(sa,Vo=>dk(Ct[Vo]))){for(let Vo of sa)Ct[Vo]=Gi(Ct[Vo]);return}}return li});Nn(Jr)?Ct[Ir]=L.updateExportDeclaration(pi,pi.modifiers,pi.isTypeOnly,L.updateNamedExports(pi.exportClause,Jr),pi.moduleSpecifier,pi.attributes):Ev(Ct,Ir)}return Ct}function Zr(Ct){return Ct=ui(Ct),Ct=lo(Ct),Ct=An(Ct),Ii&&(Yi(Ii)&&wp(Ii)||ql(Ii))&&(!gt(Ct,a2)||!yre(Ct)&>(Ct,uF))&&Ct.push(Bk(L)),Ct}function Gi(Ct){let Ir=(lu(Ct)|32)&-129;return L.replaceModifiers(Ct,Ir)}function co(Ct){let Ir=lu(Ct)&-33;return L.replaceModifiers(Ct,Ir)}function ca(Ct,Ir,pi){Ir||it.push(new Map),Ct.forEach(Jr=>{vc(Jr,!1,!!pi)}),Ir||(it[it.length-1].forEach(Jr=>{vc(Jr,!0,!!pi)}),it.pop())}function vc(Ct,Ir,pi){let Jr=es(Ct);if(Tr.has(ba(Jr)))return;if(Tr.add(ba(Jr)),!Ir||Nn(Ct.declarations)&>(Ct.declarations,Za=>!!Fn(Za,sa=>sa===Ii))){let Za=Se;Se=ro(Se),Dl(Ct,Ir,pi),Se.reportedDiagnostic&&(kt.reportedDiagnostic=Se.reportedDiagnostic),Se.trackedSymbols&&(Za.trackedSymbols?x.assert(Se.trackedSymbols===Za.trackedSymbols):Za.trackedSymbols=Se.trackedSymbols),Se=Za}}function Dl(Ct,Ir,pi,Jr=Ct.escapedName){var li,Za,sa,Vo,ks,ps;let Wa=Vi(Jr),Rd=Jr==="default";if(Ir&&!(Se.flags&131072)&&CI(Wa)&&!Rd){Se.encounteredError=!0;return}let Dd=Rd&&!!(Ct.flags&-113||Ct.flags&16&&Nn(ms(sr(Ct))))&&!(Ct.flags&2097152),yu=!Dd&&!Ir&&CI(Wa)&&!Rd;(Dd||yu)&&(Ir=!0);let Hl=(Ir?0:32)|(Rd&&!Dd?2048:0),Cd=Ct.flags&1536&&Ct.flags&7&&Jr!=="export=",Ku=Cd&&Is(sr(Ct),Ct);if((Ct.flags&8208||Ku)&&bn(sr(Ct),Ct,Bm(Ct,Wa),Hl),Ct.flags&524288&&m_(Ct,Wa,Hl),Ct.flags&98311&&Jr!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!Ku)if(pi)Aa(Ct)&&(yu=!1,Dd=!1);else{let od=sr(Ct),Pp=Bm(Ct,Wa);if(od.symbol&&od.symbol!==Ct&&od.symbol.flags&16&>(od.symbol.declarations,F0)&&((li=od.symbol.members)!=null&&li.size||(Za=od.symbol.exports)!=null&&Za.size))Se.remappedSymbolReferences||(Se.remappedSymbolReferences=new Map),Se.remappedSymbolReferences.set(ba(od.symbol),Ct),Dl(od.symbol,Ir,pi,Jr),Se.remappedSymbolReferences.delete(ba(od.symbol));else if(!(Ct.flags&16)&&Is(od,Ct))bn(od,Ct,Pp,Hl);else{let hx=Ct.flags&2?JM(Ct)?2:1:(sa=Ct.parent)!=null&&sa.valueDeclaration&&Yi((Vo=Ct.parent)==null?void 0:Vo.valueDeclaration)?2:void 0,Z_=Dd||!(Ct.flags&4)?Pp:__(Pp,Ct),jb=Ct.declarations&&Vr(Ct.declarations,Q8=>wi(Q8));jb&&Uc(jb.parent)&&jb.parent.declarations.length===1&&(jb=jb.parent.parent);let Ub=(ks=Ct.declarations)==null?void 0:ks.find(kr);if(Ub&&dr(Ub.parent)&&Fe(Ub.parent.right)&&((ps=od.symbol)!=null&&ps.valueDeclaration)&&Yi(od.symbol.valueDeclaration)){let Q8=Pp===Ub.parent.right.escapedText?void 0:Ub.parent.right;js(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Q8,Pp)])),0),Se.tracker.trackSymbol(od.symbol,Se.enclosingDeclaration,111551)}else{let Q8=at(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z_,void 0,vs(Se,od,Ct,Ii,os,Cn))],hx)),jb);js(Q8,Z_!==Pp?Hl&-33:Hl),Z_!==Pp&&!Ir&&(js(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Z_,Pp)])),0),yu=!1,Dd=!1)}}}if(Ct.flags&384&&Ar(Ct,Wa,Hl),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&dr(Ct.valueDeclaration.parent)&&Zc(Ct.valueDeclaration.parent.right)?Ei(Ct,Bm(Ct,Wa),Hl):pa(Ct,Bm(Ct,Wa),Hl)),(Ct.flags&1536&&(!Cd||$t(Ct))||Ku)&&Hn(Ct,Wa,Hl),Ct.flags&64&&!(Ct.flags&32)&&Qe(Ct,Wa,Hl),Ct.flags&2097152&&Ei(Ct,Bm(Ct,Wa),Hl),Ct.flags&4&&Ct.escapedName==="export="&&Aa(Ct),Ct.flags&8388608&&Ct.declarations)for(let od of Ct.declarations){let Pp=mu(od,od.moduleSpecifier);Pp&&js(L.createExportDeclaration(void 0,od.isTypeOnly,void 0,L.createStringLiteral(jn(Pp,Se))),0)}Dd?js(L.createExportAssignment(void 0,!1,L.createIdentifier(Bm(Ct,Wa))),0):yu&&js(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Bm(Ct,Wa),Wa)])),0)}function os(Ct){if(gt(Ct.declarations,P0))return;x.assertIsDefined(it[it.length-1]),__(Vi(Ct.escapedName),Ct);let Ir=!!(Ct.flags&2097152)&&!gt(Ct.declarations,pi=>!!Fn(pi,Xl)||yh(pi)||td(pi)&&!vh(pi.moduleReference));it[Ir?0:it.length-1].set(ba(Ct),Ct)}function Dc(Ct){return Yi(Ct)&&(wp(Ct)||Jf(Ct))||Md(Ct)&&!E_(Ct)}function js(Ct,Ir){if(Am(Ct)){let pi=0,Jr=Se.enclosingDeclaration&&(qf(Se.enclosingDeclaration)?Gn(Se.enclosingDeclaration):Se.enclosingDeclaration);Ir&32&&Jr&&(Dc(Jr)||ql(Jr))&&dk(Ct)&&(pi|=32),Jt&&!(pi&32)&&(!Jr||!(Jr.flags&33554432))&&(hE(Ct)||Ml(Ct)||Ec(Ct)||Sc(Ct)||ql(Ct))&&(pi|=128),Ir&2048&&(Sc(Ct)||pu(Ct)||Ec(Ct))&&(pi|=2048),pi&&(Ct=L.replaceModifiers(Ct,pi|lu(Ct)))}Br.push(Ct)}function m_(Ct,Ir,pi){var Jr;let li=Qke(Ct),Za=qi(Ct).typeParameters,sa=mn(Za,Dd=>mt(Dd,Se)),Vo=(Jr=Ct.declarations)==null?void 0:Jr.find(qf),ks=QL(Vo?Vo.comment||Vo.parent.comment:void 0),ps=Se.flags;Se.flags|=8388608;let Wa=Se.enclosingDeclaration;Se.enclosingDeclaration=Vo;let Rd=Vo&&Vo.typeExpression&&$0(Vo.typeExpression)&&Ol(Se,Vo.typeExpression.type,os,Cn)||u(li,Se);js(_E(L.createTypeAliasDeclaration(void 0,Bm(Ct,Ir),sa,Rd),ks?[{kind:3,text:`* * `+ks.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),pi),Se.flags=ps,Se.enclosingDeclaration=Wa}function Qe(Ct,Ir,pi){let Jr=Wf(Ct),li=Nr(Ct),Za=mn(li,yu=>mt(yu,Se)),sa=Dp(Jr),Vo=Nn(sa)?ga(sa):void 0,ks=va(ms(Jr),yu=>Cc(yu,Vo)),ps=Bh(0,Jr,Vo,179),Wa=Bh(1,Jr,Vo,180),Rd=yy(Jr,Vo),Dd=Nn(sa)?[L.createHeritageClause(96,to(sa,yu=>nI(yu,111551)))]:void 0;js(L.createInterfaceDeclaration(void 0,Bm(Ct,Ir),Za,Dd,[...Rd,...Wa,...ps,...ks]),pi)}function vt(Ct){let Ir=Wo(xp(Ct).values()),pi=es(Ct);if(pi!==Ct){let Jr=new Set(Ir);for(let li of xp(pi).values())Td(Vl(li))&111551||Jr.add(li);Ir=Wo(Jr)}return jr(Ir,Jr=>Fi(Jr)&&Yp(Jr.escapedName,99))}function $t(Ct){return oo(vt(Ct),Ir=>!(Td(Vl(Ir))&111551))}function Hn(Ct,Ir,pi){let Jr=vt(Ct),li=TL(Jr,Vo=>Vo.parent&&Vo.parent===Ct?"real":"merged"),Za=li.get("real")||Xe,sa=li.get("merged")||Xe;if(Nn(Za)){let Vo=Bm(Ct,Ir);Gr(Za,Vo,pi,!!(Ct.flags&67108880))}if(Nn(sa)){let Vo=Gn(Se.enclosingDeclaration),ks=Bm(Ct,Ir),ps=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(to(jr(sa,Wa=>Wa.escapedName!=="export="),Wa=>{var Rd,Dd;let yu=Vi(Wa.escapedName),Hl=Bm(Wa,yu),Cd=Wa.declarations&&Mm(Wa);if(Vo&&(Cd?Vo!==Gn(Cd):!gt(Wa.declarations,Pp=>Gn(Pp)===Vo))){(Dd=(Rd=Se.tracker)==null?void 0:Rd.reportNonlocalAugmentation)==null||Dd.call(Rd,Vo,Ct,Wa);return}let Ku=Cd&&Gp(Cd,!0);os(Ku||Wa);let od=Ku?Bm(Ku,Vi(Ku.escapedName)):Hl;return L.createExportSpecifier(!1,yu===od?void 0:od,yu)})))]);js(L.createModuleDeclaration(void 0,L.createIdentifier(ks),ps,32),0)}}function Ar(Ct,Ir,pi){js(L.createEnumDeclaration(L.createModifiersFromModifierFlags(Rve(Ct)?4096:0),Bm(Ct,Ir),mn(jr(ms(sr(Ct)),Jr=>!!(Jr.flags&8)),Jr=>{let li=Jr.declarations&&Jr.declarations[0]&&Y0(Jr.declarations[0])?rbe(Jr.declarations[0]):void 0;return L.createEnumMember(Vi(Jr.escapedName),li===void 0?void 0:typeof li=="string"?L.createStringLiteral(li):L.createNumericLiteral(li))})),pi)}function bn(Ct,Ir,pi,Jr){let li=Jo(Ct,0);for(let Za of li){let sa=ye(Za,262,Se,{name:L.createIdentifier(pi),privateSymbolVisitor:os,bundledImports:Cn});js(at(sa,mr(Za)),Jr)}if(!(Ir.flags&1536&&Ir.exports&&Ir.exports.size)){let Za=jr(ms(Ct),Fi);Gr(Za,pi,Jr,!0)}}function mr(Ct){if(Ct.declaration&&Ct.declaration.parent){if(dr(Ct.declaration.parent)&&zl(Ct.declaration.parent)===5)return Ct.declaration.parent;if(wi(Ct.declaration.parent)&&Ct.declaration.parent.parent)return Ct.declaration.parent.parent}return Ct.declaration}function Gr(Ct,Ir,pi,Jr){if(Nn(Ct)){let Za=TL(Ct,Hl=>!Nn(Hl.declarations)||gt(Hl.declarations,Cd=>Gn(Cd)===Gn(Se.enclosingDeclaration))?"local":"remote").get("local")||Xe,sa=bh.createModuleDeclaration(void 0,L.createIdentifier(Ir),L.createModuleBlock([]),32);ja(sa,Ii),sa.locals=aa(Ct),sa.symbol=Ct[0].parent;let Vo=Br;Br=[];let ks=Jt;Jt=!1;let ps={...Se,enclosingDeclaration:sa},Wa=Se;Se=ps,ca(aa(Za),Jr,!0),Se=Wa,Jt=ks;let Rd=Br;Br=Vo;let Dd=mn(Rd,Hl=>Ll(Hl)&&!Hl.isExportEquals&&Fe(Hl.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Hl.expression,L.createIdentifier("default"))])):Hl),yu=oo(Dd,Hl=>$r(Hl,32))?mn(Dd,co):Dd;sa=L.updateModuleDeclaration(sa,sa.modifiers,sa.name,L.createModuleBlock(yu)),js(sa,pi)}}function Fi(Ct){return!!(Ct.flags&2887656)||!(Ct.flags&4194304||Ct.escapedName==="prototype"||Ct.valueDeclaration&&ra(Ct.valueDeclaration)&&ci(Ct.valueDeclaration.parent))}function Oo(Ct){let Ir=to(Ct,pi=>{let Jr=Se.enclosingDeclaration;Se.enclosingDeclaration=pi;let li=pi.expression;if(Bl(li)){if(Fe(li)&&gr(li)==="")return Za(void 0);let sa;if({introducesError:sa,node:li}=Pu(li,Se,os),sa)return Za(void 0)}return Za(L.createExpressionWithTypeArguments(li,mn(pi.typeArguments,sa=>Ol(Se,sa,os,Cn)||u(Ti(sa),Se))));function Za(sa){return Se.enclosingDeclaration=Jr,sa}});if(Ir.length===Ct.length)return Ir}function pa(Ct,Ir,pi){var Jr,li;let Za=(Jr=Ct.declarations)==null?void 0:Jr.find(ci),sa=Se.enclosingDeclaration;Se.enclosingDeclaration=Za||sa;let Vo=Nr(Ct),ks=mn(Vo,eh=>mt(eh,Se)),ps=Up(Wf(Ct)),Wa=Dp(ps),Rd=Za&&aR(Za),Dd=Rd&&Oo(Rd)||to(a_(ps),aL),yu=sr(Ct),Hl=!!((li=yu.symbol)!=null&&li.valueDeclaration)&&ci(yu.symbol.valueDeclaration),Cd=Hl?Rp(yu):G,Ku=[...Nn(Wa)?[L.createHeritageClause(96,mn(Wa,eh=>tI(eh,Cd,Ir)))]:[],...Nn(Dd)?[L.createHeritageClause(119,Dd)]:[]],od=I_t(ps,Wa,ms(ps)),Pp=jr(od,eh=>{let sL=eh.valueDeclaration;return!!sL&&!(iu(sL)&&Ki(sL.name))}),Z_=gt(od,eh=>{let sL=eh.valueDeclaration;return!!sL&&iu(sL)&&Ki(sL.name)})?[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Xe,jb=va(Pp,eh=>di(eh,!1,Wa[0])),Ub=va(jr(ms(yu),eh=>!(eh.flags&4194304)&&eh.escapedName!=="prototype"&&!Fi(eh)),eh=>di(eh,!0,Cd)),Vgt=!Hl&&!!Ct.valueDeclaration&&ir(Ct.valueDeclaration)&&!gt(Jo(yu,1))?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Bh(1,yu,Cd,176),jgt=yy(ps,Wa[0]);Se.enclosingDeclaration=sa,js(at(L.createClassDeclaration(void 0,Ir,ks,Ku,[...jgt,...Ub,...Vgt,...jb,...Z_]),Ct.declarations&&jr(Ct.declarations,eh=>Sc(eh)||Zc(eh))[0]),pi)}function fa(Ct){return Wl(Ct,Ir=>{if(Qu(Ir)||Kd(Ir))return gr(Ir.propertyName||Ir.name);if(dr(Ir)||Ll(Ir)){let pi=Ll(Ir)?Ir.expression:Ir.right;if(kr(pi))return gr(pi.name)}if(pb(Ir)){let pi=Po(Ir);if(pi&&Fe(pi))return gr(pi)}})}function Ei(Ct,Ir,pi){var Jr,li,Za,sa,Vo,ks;let ps=Mm(Ct);if(!ps)return x.fail();let Wa=es(Gp(ps,!0));if(!Wa)return;let Rd=uN(Wa)&&fa(Ct.declarations)||Vi(Wa.escapedName);Rd==="export="&&q&&(Rd="default");let Dd=Bm(Wa,Rd);switch(os(Wa),ps.kind){case 208:if(((li=(Jr=ps.parent)==null?void 0:Jr.parent)==null?void 0:li.kind)===260){let Cd=jn(Wa.parent||Wa,Se),{propertyName:Ku}=ps;js(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,Ku&&Fe(Ku)?L.createIdentifier(gr(Ku)):void 0,L.createIdentifier(Ir))])),L.createStringLiteral(Cd),void 0),0);break}x.failBadSyntaxKind(((Za=ps.parent)==null?void 0:Za.parent)||ps,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Vo=(sa=ps.parent)==null?void 0:sa.parent)==null?void 0:Vo.kind)===226&&ko(Vi(Ct.escapedName),Dd);break;case 260:if(kr(ps.initializer)){let Cd=ps.initializer,Ku=L.createUniqueName(Ir),od=jn(Wa.parent||Wa,Se);js(L.createImportEqualsDeclaration(void 0,!1,Ku,L.createExternalModuleReference(L.createStringLiteral(od))),0),js(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Ir),L.createQualifiedName(Ku,Cd.name)),pi);break}case 271:if(Wa.escapedName==="export="&>(Wa.declarations,Cd=>Yi(Cd)&&Jf(Cd))){Aa(Ct);break}let yu=!(Wa.flags&512)&&!wi(ps);js(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Ir),yu?fo(Wa,Se,-1,!1):L.createExternalModuleReference(L.createStringLiteral(jn(Wa,Se)))),yu?pi:0);break;case 270:js(L.createNamespaceExportDeclaration(gr(ps.name)),0);break;case 273:{let Cd=jn(Wa.parent||Wa,Se),Ku=Cn?L.createStringLiteral(Cd):ps.parent.moduleSpecifier;js(L.createImportDeclaration(void 0,L.createImportClause(!1,L.createIdentifier(Ir),void 0),Ku,ps.parent.attributes),0);break}case 274:{let Cd=jn(Wa.parent||Wa,Se),Ku=Cn?L.createStringLiteral(Cd):ps.parent.parent.moduleSpecifier;js(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(L.createIdentifier(Ir))),Ku,ps.parent.attributes),0);break}case 280:js(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(Ir)),L.createStringLiteral(jn(Wa,Se))),0);break;case 276:{let Cd=jn(Wa.parent||Wa,Se),Ku=Cn?L.createStringLiteral(Cd):ps.parent.parent.parent.moduleSpecifier;js(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,Ir!==Rd?L.createIdentifier(Rd):void 0,L.createIdentifier(Ir))])),Ku,ps.parent.parent.parent.attributes),0);break}case 281:let Hl=ps.parent.parent.moduleSpecifier;Hl&&((ks=ps.propertyName)==null?void 0:ks.escapedText)==="default"&&(Rd="default"),ko(Vi(Ct.escapedName),Hl?Rd:Dd,Hl&&as(Hl)?L.createStringLiteral(Hl.text):void 0);break;case 277:Aa(Ct);break;case 226:case 211:case 212:Ct.escapedName==="default"||Ct.escapedName==="export="?Aa(Ct):ko(Ir,Dd);break;default:return x.failBadSyntaxKind(ps,"Unhandled alias declaration kind in symbol serializer!")}}function ko(Ct,Ir,pi){js(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ct!==Ir?Ir:void 0,Ct)]),pi),0)}function Aa(Ct){var Ir;if(Ct.flags&4194304)return!1;let pi=Vi(Ct.escapedName),Jr=pi==="export=",Za=Jr||pi==="default",sa=Ct.declarations&&Mm(Ct),Vo=sa&&Gp(sa,!0);if(Vo&&Nn(Vo.declarations)&>(Vo.declarations,ks=>Gn(ks)===Gn(Ii))){let ks=sa&&(Ll(sa)||dr(sa)?Tj(sa):bie(sa)),ps=ks&&Bl(ks)?z_t(ks):void 0,Wa=ps&&Bs(ps,-1,!0,!0,Ii);(Wa||Vo)&&os(Wa||Vo);let Rd=Se.tracker.disableTrackSymbol;if(Se.tracker.disableTrackSymbol=!0,Za)Br.push(L.createExportAssignment(void 0,Jr,Rc(Vo,Se,-1)));else if(ps===ks&&ps)ko(pi,gr(ps));else if(ks&&Zc(ks))ko(pi,Bm(Vo,vl(Vo)));else{let Dd=__(pi,Ct);js(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Dd),fo(Vo,Se,-1,!1)),0),ko(pi,Dd)}return Se.tracker.disableTrackSymbol=Rd,!0}else{let ks=__(pi,Ct),ps=Hp(sr(es(Ct)));if(Is(ps,Ct))bn(ps,Ct,ks,Za?0:32);else{let Wa=((Ir=Se.enclosingDeclaration)==null?void 0:Ir.kind)===267&&(!(Ct.flags&98304)||Ct.flags&65536)?1:2,Rd=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ks,void 0,vs(Se,ps,Ct,Ii,os,Cn))],Wa));js(Rd,Vo&&Vo.flags&4&&Vo.escapedName==="export="?128:pi===ks?32:0)}return Za?(Br.push(L.createExportAssignment(void 0,Jr,L.createIdentifier(ks))),!0):pi!==ks?(ko(pi,ks),!0):!1}}function Is(Ct,Ir){let pi=Gn(Se.enclosingDeclaration);return Lr(Ct)&48&&!Nn(_u(Ct))&&!CS(Ct)&&!!(Nn(jr(ms(Ct),Fi))||Nn(Jo(Ct,0)))&&!Nn(Jo(Ct,1))&&!hr(Ir,Ii)&&!(Ct.symbol&>(Ct.symbol.declarations,Jr=>Gn(Jr)!==pi))&&!gt(ms(Ct),Jr=>p8(Jr.escapedName))&&!gt(ms(Ct),Jr=>gt(Jr.declarations,li=>Gn(li)!==pi))&&oo(ms(Ct),Jr=>Yp(vl(Jr),ce)?Jr.flags&98304?Rb(Jr)===NS(Jr):!0:!1)}function us(Ct,Ir,pi){return function(li,Za,sa){var Vo,ks,ps,Wa,Rd;let Dd=Tf(li),yu=!!(Dd&2);if(Za&&li.flags&2887656)return[];if(li.flags&4194304||li.escapedName==="constructor"||sa&&ha(sa,li.escapedName)&&f_(ha(sa,li.escapedName))===f_(li)&&(li.flags&16777216)===(ha(sa,li.escapedName).flags&16777216)&&py(sr(li),Ue(sa,li.escapedName)))return[];let Hl=Dd&-1025|(Za?256:0),Cd=Pn(li,Se),Ku=(Vo=li.declarations)==null?void 0:Vo.find(jm(Uo,Cv,wi,_p,dr,kr));if(li.flags&98304&&pi){let od=[];if(li.flags&65536){let Pp=li.declarations&&gn(li.declarations,Z_=>{if(Z_.kind===178)return Z_;if(ia(Z_)&&gT(Z_))return gn(Z_.arguments[2].properties,jb=>{let Ub=Po(jb);if(Ub&&Fe(Ub)&&gr(Ub)==="set")return jb})});x.assert(!!Pp);let hx=ws(Pp)?lm(Pp).parameters[0]:void 0;od.push(at(L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(Hl),Cd,[L.createParameterDeclaration(void 0,void 0,hx?sn(hx,At(hx),Se):"value",void 0,yu?void 0:vs(Se,sr(li),li,Ii,os,Cn))],void 0),((ks=li.declarations)==null?void 0:ks.find(Cy))||Ku))}if(li.flags&32768){let Pp=Dd&2;od.push(at(L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(Hl),Cd,[],Pp?void 0:vs(Se,sr(li),li,Ii,os,Cn),void 0),((ps=li.declarations)==null?void 0:ps.find(Pv))||Ku))}return od}else if(li.flags&98311)return at(Ct(L.createModifiersFromModifierFlags((f_(li)?8:0)|Hl),Cd,li.flags&16777216?L.createToken(58):void 0,yu?void 0:vs(Se,NS(li),li,Ii,os,Cn),void 0),((Wa=li.declarations)==null?void 0:Wa.find(jm(Uo,wi)))||Ku);if(li.flags&8208){let od=sr(li),Pp=Jo(od,0);if(Hl&2)return at(Ct(L.createModifiersFromModifierFlags((f_(li)?8:0)|Hl),Cd,li.flags&16777216?L.createToken(58):void 0,void 0,void 0),((Rd=li.declarations)==null?void 0:Rd.find(ws))||Pp[0]&&Pp[0].declaration||li.declarations&&li.declarations[0]);let hx=[];for(let Z_ of Pp){let jb=ye(Z_,Ir,Se,{name:Cd,questionToken:li.flags&16777216?L.createToken(58):void 0,modifiers:Hl?L.createModifiersFromModifierFlags(Hl):void 0}),Ub=Z_.declaration&&k2(Z_.declaration.parent)?Z_.declaration.parent:Z_.declaration;hx.push(at(jb,Ub))}return hx}return x.fail(`Unhandled class member kind! ${li.__debugFlags||li.flags}`)}}function Cc(Ct,Ir){return Ai(Ct,!1,Ir)}function Bh(Ct,Ir,pi,Jr){let li=Jo(Ir,Ct);if(Ct===1){if(!pi&&oo(li,Vo=>Nn(Vo.parameters)===0))return[];if(pi){let Vo=Jo(pi,1);if(!Nn(Vo)&&oo(li,ks=>Nn(ks.parameters)===0))return[];if(Vo.length===li.length){let ks=!1;for(let ps=0;psu(li,Se)),Jr=Rc(Ct.target.symbol,Se,788968)):Ct.symbol&&nn(Ct.symbol,Ii,Ir)&&(Jr=Rc(Ct.symbol,Se,788968)),Jr)return L.createExpressionWithTypeArguments(Jr,pi)}function aL(Ct){let Ir=nI(Ct,788968);if(Ir)return Ir;if(Ct.symbol)return L.createExpressionWithTypeArguments(Rc(Ct.symbol,Se,788968),void 0)}function __(Ct,Ir){var pi,Jr;let li=Ir?ba(Ir):void 0;if(li&&Se.remappedSymbolNames.has(li))return Se.remappedSymbolNames.get(li);Ir&&(Ct=_x(Ir,Ct));let Za=0,sa=Ct;for(;(pi=Se.usedSymbolNames)!=null&&pi.has(Ct);)Za++,Ct=`${sa}_${Za}`;return(Jr=Se.usedSymbolNames)==null||Jr.add(Ct),li&&Se.remappedSymbolNames.set(li,Ct),Ct}function _x(Ct,Ir){if(Ir==="default"||Ir==="__class"||Ir==="__function"){let pi=Se.flags;Se.flags|=16777216;let Jr=qE(Ct,Se);Se.flags=pi,Ir=Jr.length>0&&R2(Jr.charCodeAt(0))?Yf(Jr):Jr}return Ir==="default"?Ir="_default":Ir==="export="&&(Ir="_exports"),Ir=Yp(Ir,ce)&&!CI(Ir)?Ir:"_"+Ir.replace(/[^a-zA-Z0-9]/g,"_"),Ir}function Bm(Ct,Ir){let pi=ba(Ct);return Se.remappedSymbolNames.has(pi)?Se.remappedSymbolNames.get(pi):(Ir=_x(Ct,Ir),Se.remappedSymbolNames.set(pi,Ir),Ir)}}}function Ph(n,a,c=16384,u){return u?_(u).getText():cN(_);function _(g){let T=L.createTypePredicateNode(n.kind===2||n.kind===3?L.createToken(131):void 0,n.kind===1||n.kind===3?L.createIdentifier(n.parameterName):L.createThisTypeNode(),n.type&&Et.typeToTypeNode(n.type,a,CA(c)|70221824|512)),P=rS(),W=a&&Gn(a);return P.writeNode(4,T,W,g),g}}function ZD(n){let a=[],c=0;for(let u=0;uPo(T)?T:void 0),g=_&&Po(_);if(_&&g){if(ia(_)&&gT(_))return vl(n);if(Ya(g)&&!(Tl(n)&4096)){let T=qi(n).nameType;if(T&&T.flags&384){let P=c8(n,a);if(P!==void 0)return P}}return Ts(g)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return Ts(_.parent.name);switch(_.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}let u=c8(n,a);return u!==void 0?u:vl(n)}function i_(n){if(n){let c=Qr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Yi(n.parent.parent.parent));case 208:return i_(n.parent.parent);case 260:if(Qo(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(T0(n))return!0;let c=X(n);return!(ite(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?xh(c):i_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(fp(n,6))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 i_(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 xM(n,a){let c;n.parent&&n.parent.kind===277?c=hl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=VE(n.parent,2998271));let u,_;return c&&(_=new Set,_.add(ba(c)),g(c.declarations)),u;function g(T){gn(T,P=>{let W=_A(P)||P;if(a?Qr(P).isVisible=!0:(u=u||[],yf(u,W)),Qx(P)){let V=P.moduleReference,te=Fp(V),ye=hl(P,te.escapedText,901119,void 0,void 0,!1);ye&&_&&Kb(_,ba(ye))&&g(ye.declarations)}})}}function Mh(n,a){let c=nx(n,a);if(c>=0){let{length:u}=fd;for(let _=c;_=w1;c--){if(d8(fd[c],LE[c]))return-1;if(fd[c]===n&&LE[c]===a)return c}return-1}function d8(n,a){switch(a){case 0:return!!qi(n).type;case 5:return!!Qr(n).resolvedEnumType;case 2:return!!qi(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!!qi(n).writeType;case 9:return Qr(n).parameterInitializerContainsUndefined!==void 0}return x.assertNever(a)}function H_(){return fd.pop(),LE.pop(),Xg.pop()}function X(n){return Fn(A_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Te(n){let a=Xs(Ru(n));return a.typeParameters?sv(a,mn(a.typeParameters,c=>G)):a}function Ue(n,a){let c=ha(n,a);return c?sr(c):void 0}function St(n,a){var c;let u;return Ue(n,a)||(u=(c=ox(n,a))==null?void 0:c.type)&&op(u,!0,!0)}function xt(n){return n&&(n.flags&1)!==0}function Vt(n){return n===ut||!!(n.flags&1&&n.aliasSymbol)}function wr(n,a){if(a!==0)return PA(n,!1,a);let c=Sr(n);return c&&qi(c).type||PA(n,!1,a)}function Oi(n,a,c){if(n=cc(n,W=>!(W.flags&98304)),n.flags&131072)return Ca;if(n.flags&1048576)return ll(n,W=>Oi(W,a,c));let u=ei(mn(a,cv)),_=[],g=[];for(let W of ms(n)){let V=uC(W,8576);!ya(V,u)&&!(Tf(W)&6)&&NZ(W)?_.push(W):g.push(V)}if(BA(n)||GA(u)){if(g.length&&(u=ei([u,...g])),u.flags&131072)return n;let W=Jat();return W?cC(W,[n,u]):ut}let T=aa();for(let W of _)T.set(W.escapedName,Bge(W,!1));let P=Ds(c,T,Xe,Xe,_u(n));return P.objectFlags|=4194304,P}function Ci(n){return!!(n.flags&465829888)&&Rl(zd(n)||un,32768)}function mi(n){let a=Fm(n,Ci)?ll(n,c=>c.flags&465829888?cy(c):c):n;return um(a,524288)}function Xi(n,a){let c=cs(n);return c?Gb(c,a):a}function cs(n){let a=As(n);if(a&&F2(a)&&a.flowNode){let c=$a(n);if(c){let u=at(bh.createStringLiteral(c),n),_=Yu(a)?a:bh.createParenthesizedExpression(a),g=at(bh.createElementAccessExpression(_,u),n);return ja(u,g),ja(g,n),_!==a&&ja(_,g),g.flowNode=a.flowNode,g}}}function As(n){let a=n.parent.parent;switch(a.kind){case 208:case 303:return cs(a);case 209:return cs(n.parent);case 260:return a.initializer;case 226:return a.right}}function $a(n){let a=n.parent;return n.kind===208&&a.kind===206?Of(n.propertyName||n.name):n.kind===303||n.kind===304?Of(n.name):""+a.elements.indexOf(n)}function Of(n){let a=cv(n);return a.flags&384?""+a.value:void 0}function K_(n){let a=n.dotDotDotToken?32:0,c=wr(n.parent.parent,a);return c&&gg(n,c,!1)}function gg(n,a,c){if(xt(a))return a;let u=n.parent;J&&n.flags&33554432&&P0(n)?a=_y(a):J&&u.parent.initializer&&!dm(k8e(u.parent.initializer),65536)&&(a=um(a,524288));let _;if(u.kind===206)if(n.dotDotDotToken){if(a=c_(a),a.flags&2||!k5(a))return Ve(n,f.Rest_types_may_only_be_created_from_object_types),ut;let g=[];for(let T of u.elements)T.dotDotDotToken||g.push(T.propertyName||T.name);_=Oi(a,g,n.symbol)}else{let g=n.propertyName||n.name,T=cv(g),P=Cp(a,T,32,g);_=Xi(n,P)}else{let g=fv(65|(n.dotDotDotToken?0:128),a,Me,u),T=u.elements.indexOf(n);if(n.dotDotDotToken){let P=ll(a,W=>W.flags&58982400?cy(W):W);_=ap(P,wa)?ll(P,W=>WM(W,T)):Bd(g)}else if(uv(a)){let P=d_(T),W=32|(c||qM(n)?16:0),V=Lb(a,P,W,n.name)||ut;_=Xi(n,V)}else _=g}return n.initializer?yd(Lx(n))?J&&!dm(YM(n,0),16777216)?mi(_):_:wee(n,ei([mi(_),YM(n,0)],2)):_}function iy(n){let a=nE(n);if(a)return Ti(a)}function oy(n){let a=fs(n,!0);return a.kind===106||a.kind===80&&Wm(a)===ze}function Tb(n){let a=fs(n,!0);return a.kind===209&&a.elements.length===0}function op(n,a=!1,c=!0){return J&&c?zb(n,a):n}function PA(n,a,c){if(wi(n)&&n.parent.parent.kind===249){let T=J_(eve(po(n.parent.parent.expression,c)));return T.flags&4456448?gOe(T):Ne}if(wi(n)&&n.parent.parent.kind===250){let T=n.parent.parent;return aG(T)||G}if(Qo(n.parent))return K_(n);let u=Uo(n)&&!I_(n)||_p(n)||Aae(n),_=a&&YN(n),g=eo(n);if(JV(n))return g?xt(g)||g===un?g:ut:he?un:G;if(g)return op(g,u,_);if((fe||ir(n))&&wi(n)&&!Qo(n.name)&&!(ite(n)&32)&&!(n.flags&33554432)){if(!(KS(n)&6)&&(!n.initializer||oy(n.initializer)))return et;if(n.initializer&&Tb(n.initializer))return Jc}if(Ao(n)){let T=n.parent;if(T.kind===178&&oC(T)){let V=cl(Sr(n.parent),177);if(V){let te=lm(V),ye=cbe(T);return ye&&n===ye?(x.assert(!ye.type),sr(te.thisParameter)):ds(te)}}let P=vat(T,n);if(P)return P;let W=n.symbol.escapedName==="this"?rWe(T):iWe(n);if(W)return op(W,!1,_)}if(dT(n)&&n.initializer){if(ir(n)&&!Ao(n)){let P=Ga(n,Sr(n),C2(n));if(P)return P}let T=wee(n,YM(n,c));return op(T,u,_)}if(Uo(n)&&(fe||ir(n)))if(pc(n)){let T=jr(n.parent.members,Al),P=T.length?ay(n.symbol,T):lu(n)&128?jZ(n.symbol):void 0;return P&&op(P,!0,_)}else{let T=ny(n.parent),P=T?Ab(n.symbol,T):lu(n)&128?jZ(n.symbol):void 0;return P&&op(P,!0,_)}if(M_(n))return wn;if(Qo(n.name))return C(n.name,!1,!0)}function eC(n){if(n.valueDeclaration&&dr(n.valueDeclaration)){let a=qi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!DM(n)&&oo(n.declarations,c=>dr(c)&&mee(c)&&(c.left.kind!==212||$p(c.left.argumentExpression))&&!lc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function RM(n){let a=n.valueDeclaration;return a&&Uo(a)&&!yd(a)&&!a.initializer&&(fe||ir(a))}function DM(n){if(n.declarations)for(let a of n.declarations){let c=Lu(a,!1,!1);if(c&&(c.kind===176||$_(c)))return c}}function XE(n){let a=Gn(n.declarations[0]),c=Vi(n.escapedName),u=n.declarations.every(g=>ir(g)&&Ns(g)&&Yh(g.expression)),_=u?L.createPropertyAccessExpression(L.createPropertyAccessExpression(L.createIdentifier("module"),L.createIdentifier("exports")),c):L.createPropertyAccessExpression(L.createIdentifier("exports"),c);return u&&ja(_.expression.expression,_.expression),ja(_.expression,_),ja(_,a),_.flowNode=a.endFlowNode,Gb(_,et,Me)}function ay(n,a){let c=ao(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName);for(let u of a){let _=L.createPropertyAccessExpression(L.createThis(),c);ja(_.expression,_),ja(_,u),_.flowNode=u.returnFlowNode;let g=tC(_,n);if(fe&&(g===et||g===Jc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(g)),!ap(g,F5))return X8(g)}}function Ab(n,a){let c=ao(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName),u=L.createPropertyAccessExpression(L.createThis(),c);ja(u.expression,u),ja(u,a),u.flowNode=a.returnFlowNode;let _=tC(u,n);return fe&&(_===et||_===Jc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(_)),ap(_,F5)?void 0:X8(_)}function tC(n,a){let c=a?.valueDeclaration&&(!RM(a)||lu(a.valueDeclaration)&128)&&jZ(a)||Me;return Gb(n,et,c)}function jp(n,a){let c=AI(n.valueDeclaration);if(c){let P=ir(c)?tE(c):void 0;return P&&P.typeExpression?Ti(P.typeExpression):n.valueDeclaration&&Ga(n.valueDeclaration,n,c)||FS(tc(c))}let u,_=!1,g=!1;if(eC(n)&&(u=Ab(n,DM(n))),!u){let P;if(n.declarations){let W;for(let V of n.declarations){let te=dr(V)||ia(V)?V:Ns(V)?dr(V.parent)?V.parent:V:void 0;if(!te)continue;let ye=Ns(te)?L2(te):zl(te);(ye===4||dr(te)&&mee(te,ye))&&(CM(te)?_=!0:g=!0),ia(te)||(W=lc(W,te,n,V)),W||(P||(P=[])).push(dr(te)||ia(te)?YE(n,a,te,ye):Fr)}u=W}if(!u){if(!Nn(P))return ut;let W=_&&n.declarations?Ib(P,n.declarations):void 0;if(g){let te=jZ(n);te&&((W||(W=[])).push(te),_=!0)}let V=gt(W,te=>!!(te.flags&-98305))?W:P;u=ei(V)}}let T=Hp(op(u,!1,g&&!_));return n.valueDeclaration&&ir(n.valueDeclaration)&&cc(T,P=>!!(P.flags&-98305))===Fr?(s0(n.valueDeclaration,G),G):T}function Ga(n,a,c){var u,_;if(!ir(n)||!c||!Ma(c)||c.properties.length)return;let g=aa();for(;dr(n)||kr(n);){let W=pf(n);(u=W?.exports)!=null&&u.size&&n_(g,W.exports),n=dr(n)?n.parent:n.parent.parent}let T=pf(n);(_=T?.exports)!=null&&_.size&&n_(g,T.exports);let P=Ds(a,g,Xe,Xe,Xe);return P.objectFlags|=4096,P}function lc(n,a,c,u){var _;let g=yd(a.parent);if(g){let T=Hp(Ti(g));if(n)!Vt(n)&&!Vt(T)&&!py(n,T)&&l6e(void 0,n,u,T);else return T}if((_=c.parent)!=null&&_.valueDeclaration){let T=AS(c.parent);if(T.valueDeclaration){let P=yd(T.valueDeclaration);if(P){let W=ha(Ti(P),c.escapedName);if(W)return Rb(W)}}}return n}function YE(n,a,c,u){if(ia(c)){if(a)return sr(a);let T=tc(c.arguments[2]),P=Ue(T,"value");if(P)return P;let W=Ue(T,"get");if(W){let te=QA(W);if(te)return ds(te)}let V=Ue(T,"set");if(V){let te=QA(V);if(te)return Eve(te)}return G}if(rx(c.left,c.right))return G;let _=u===1&&(kr(c.left)||Js(c.left))&&(Yh(c.left.expression)||Fe(c.left.expression)&&hT(c.left.expression)),g=a?sr(a):_?gu(tc(c.right)):FS(tc(c.right));if(g.flags&524288&&u===2&&n.escapedName==="export="){let T=l_(g),P=aa();vF(T.members,P);let W=P.size;a&&!a.exports&&(a.exports=aa()),(a||n).exports.forEach((te,ye)=>{var _e;let je=P.get(ye);if(je&&je!==te&&!(te.flags&2097152))if(te.flags&111551&&je.flags&111551){if(te.valueDeclaration&&je.valueDeclaration&&Gn(te.valueDeclaration)!==Gn(je.valueDeclaration)){let At=Vi(te.escapedName),rn=((_e=ri(je.valueDeclaration,iu))==null?void 0:_e.name)||je.valueDeclaration;Pa(Ve(te.valueDeclaration,f.Duplicate_identifier_0,At),Pr(rn,f._0_was_also_declared_here,At)),Pa(Ve(rn,f.Duplicate_identifier_0,At),Pr(te.valueDeclaration,f._0_was_also_declared_here,At))}let mt=Ka(te.flags|je.flags,ye);mt.links.type=ei([sr(te),sr(je)]),mt.valueDeclaration=je.valueDeclaration,mt.declarations=Eo(je.declarations,te.declarations),P.set(ye,mt)}else P.set(ye,om(te,je));else P.set(ye,te)});let V=Ds(W!==P.size?void 0:T.symbol,P,T.callSignatures,T.constructSignatures,T.indexInfos);if(W===P.size&&(g.aliasSymbol&&(V.aliasSymbol=g.aliasSymbol,V.aliasTypeArguments=g.aliasTypeArguments),Lr(g)&4)){V.aliasSymbol=g.symbol;let te=Vs(g);V.aliasTypeArguments=Nn(te)?te:void 0}return V.objectFlags|=Lr(g)&4096,V.symbol&&V.symbol.flags&32&&g===Wf(V.symbol)&&(V.objectFlags|=16777216),V}return HZ(g)?(s0(c,Zl),Zl):g}function rx(n,a){return kr(n)&&n.expression.kind===110&&bP(a,c=>Ad(n,c))}function CM(n){let a=Lu(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!k2(a.parent)}function Ib(n,a){return x.assert(n.length===a.length),n.filter((c,u)=>{let _=a[u],g=dr(_)?_:dr(_.parent)?_.parent:void 0;return g&&CM(g)})}function NM(n,a,c){if(n.initializer){let u=Qo(n.name)?C(n.name,!0,!1):un;return op(wee(n,YM(n,c?0:1,u)))}return Qo(n.name)?C(n.name,a,c):(c&&!_r(n)&&s0(n,G),a?hn:G)}function tr(n,a,c){let u=aa(),_,g=131200;gn(n.elements,P=>{let W=P.propertyName||P.name;if(P.dotDotDotToken){_=Oh(Ne,G,!1);return}let V=cv(W);if(!Qf(V)){g|=512;return}let te=Zf(V),ye=4|(P.initializer?16777216:0),_e=Ka(ye,te);_e.links.type=NM(P,a,c),_e.links.bindingElement=P,u.set(_e.escapedName,_e)});let T=Ds(void 0,u,Xe,Xe,_?[_]:Xe);return T.objectFlags|=g,a&&(T.pattern=n,T.objectFlags|=131072),T}function v(n,a,c){let u=n.elements,_=$s(u),g=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(u.length===0||u.length===1&&g)return ce>=2?tOe(G):Zl;let T=mn(u,te=>jc(te)?G:NM(te,a,c)),P=pW(u,te=>!(te===g||jc(te)||qM(te)),u.length-1)+1,W=mn(u,(te,ye)=>te===g?4:ye>=P?2:1),V=Wh(T,W);return a&&(V=Owe(V),V.pattern=n,V.objectFlags|=131072),V}function C(n,a=!1,c=!1){return n.kind===206?tr(n,a,c):v(n,a,c)}function F(n,a){return jt(PA(n,!0,0),n,a)}function se(n){let a=Qr(n);if(!a.resolvedType){let c=Ka(4096,"__importAttributes"),u=aa();gn(n.elements,g=>{let T=Ka(4,U6(g));T.parent=c,T.links.type=B_t(g),T.links.target=T,u.set(T.escapedName,T)});let _=Ds(c,u,Xe,Xe,Xe);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Ke(n){let a=pf(n),c=wat(!1);return c&&a&&a===c}function jt(n,a,c){return n?(n.flags&4096&&Ke(a.parent)&&(n=Gge(a)),c&&ZZ(a,n),n.flags&8192&&(Xa(a)||!a.type)&&n.symbol!==Sr(a)&&(n=xi),Hp(n)):(n=Ao(a)&&a.dotDotDotToken?Zl:G,c&&(_r(a)||s0(a,n)),n)}function _r(n){let a=A_(n),c=a.kind===169?a.parent:a;return tG(c)}function eo(n){let a=yd(n);if(a)return Ti(a)}function Gs(n){let a=n.valueDeclaration;return a?(Xa(a)&&(a=Lx(a)),Ao(a)?OZ(a.parent):!1):!1}function o_(n,a){let c=qi(n);if(!c.type){let u=xb(n,a);return!c.type&&!Gs(n)&&!a&&(c.type=u),u}return c.type}function xb(n,a){if(n.flags&4194304)return Te(n);if(n===_t)return G;if(n.flags&134217728&&n.valueDeclaration){let _=Sr(Gn(n.valueDeclaration)),g=Ka(_.flags,"exports");g.declarations=_.declarations?_.declarations.slice():[],g.parent=n,g.links.target=_,_.valueDeclaration&&(g.valueDeclaration=_.valueDeclaration),_.members&&(g.members=new Map(_.members)),_.exports&&(g.exports=new Map(_.exports));let T=aa();return T.set("exports",g),Ds(n,T,Xe,Xe,Xe)}x.assertIsDefined(n.valueDeclaration);let c=n.valueDeclaration;if(Yi(c)&&Jf(c))return c.statements.length?Hp(FS(po(c.statements[0].expression))):Ca;if(Cv(c))return QE(n);if(!Mh(n,0))return n.flags&512&&!(n.flags&67108864)?PM(n):Xa(c)&&a===1?ut:nC(n);let u;if(c.kind===277)u=jt(eo(c)||tc(c.expression),c);else if(dr(c)||ir(c)&&(ia(c)||(kr(c)||XF(c))&&dr(c.parent)))u=jp(n);else if(kr(c)||Js(c)||Fe(c)||as(c)||mp(c)||Sc(c)||Ec(c)||Ul(c)&&!bm(c)||_h(c)||Yi(c)){if(n.flags&9136)return PM(n);u=dr(c.parent)?jp(n):eo(c)||G}else if(mc(c))u=eo(c)||kFe(c);else if(M_(c))u=eo(c)||hWe(c);else if(Zu(c))u=eo(c)||QM(c.name,0);else if(bm(c))u=eo(c)||wFe(c,0);else if(Ao(c)||Uo(c)||_p(c)||wi(c)||Xa(c)||rN(c))u=F(c,!0);else if(hE(c))u=PM(n);else if(Y0(c))u=cZ(n);else return x.fail("Unhandled declaration kind! "+x.formatSyntaxKind(c.kind)+" for "+x.formatSymbol(n));return H_()?u:n.flags&512&&!(n.flags&67108864)?PM(n):Xa(c)&&a===1?u:nC(n)}function Om(n){if(n)switch(n.kind){case 177:return $f(n);case 178:return Nie(n);case 172:return x.assert(I_(n)),yd(n)}}function $E(n){let a=Om(n);return a&&Ti(a)}function sZ(n){let a=cbe(n);return a&&a.symbol}function zhe(n){return n0(lm(n))}function QE(n){let a=qi(n);if(!a.type){if(!Mh(n,0))return ut;let c=cl(n,177),u=cl(n,178),_=ri(cl(n,172),Mu),g=c&&ir(c)&&iy(c)||$E(c)||$E(u)||$E(_)||c&&c.body&&Mee(c)||_&&_.initializer&&F(_,!0);g||(u&&!tG(u)?md(fe,u,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Si(n)):c&&!tG(c)?md(fe,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Si(n)):_&&!tG(_)&&md(fe,_,f.Member_0_implicitly_has_an_1_type,Si(n),"any"),g=G),H_()||(Om(c)?Ve(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):Om(u)||Om(_)?Ve(u,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):c&&fe&&Ve(c,f._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,Si(n)),g=G),a.type=g}return a.type}function HB(n){let a=qi(n);if(!a.writeType){if(!Mh(n,8))return ut;let c=cl(n,178)??ri(cl(n,172),Mu),u=$E(c);H_()||(Om(c)&&Ve(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),u=G),a.writeType=u||QE(n)}return a.writeType}function lZ(n){let a=Rp(Wf(n));return a.flags&8650752?a:a.flags&2097152?Vr(a.types,c=>!!(c.flags&8650752)):void 0}function PM(n){let a=qi(n),c=a;if(!a.type){let u=n.valueDeclaration&&Nee(n.valueDeclaration,!1);if(u){let _=_ve(n,u);_&&(n=_,a=_.links)}c.type=a.type=KB(n)}return a.type}function KB(n){let a=n.valueDeclaration;if(n.flags&1536&&uN(n))return G;if(a&&(a.kind===226||Ns(a)&&a.parent.kind===226))return jp(n);if(n.flags&512&&a&&Yi(a)&&a.commonJsModuleIndicator){let u=Ip(n);if(u!==n){if(!Mh(n,0))return ut;let _=es(n.exports.get("export=")),g=jp(_,_===u?void 0:u);return H_()?g:nC(n)}}let c=kf(16,n);if(n.flags&32){let u=lZ(n);return u?ga([c,u]):c}else return J&&n.flags&16777216?zb(c,!0):c}function cZ(n){let a=qi(n);return a.type||(a.type=twe(n))}function dZ(n){let a=qi(n);if(!a.type){if(!Mh(n,0))return ut;let c=Wc(n),u=n.declarations&&Gp(Mm(n),!0),_=Wl(u?.declarations,g=>Ll(g)?eo(g):void 0);if(a.type=u?.declarations&&Xee(u.declarations)&&n.declarations.length?XE(u):Xee(n.declarations)?et:_||(Td(c)&111551?sr(c):ut),!H_())return nC(u??n),a.type=ut}return a.type}function Bhe(n){let a=qi(n);return a.type||(a.type=io(sr(a.target),a.mapper))}function Ghe(n){let a=qi(n);return a.writeType||(a.writeType=io(NS(a.target),a.mapper))}function nC(n){let a=n.valueDeclaration;if(a){if(yd(a))return Ve(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),ut;fe&&(a.kind!==169||a.initializer)&&Ve(n.valueDeclaration,f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Si(n))}else if(n.flags&2097152){let c=Mm(n);c&&Ve(c,f.Circular_definition_of_import_alias_0,Si(n))}return G}function uZ(n){let a=qi(n);return a.type||(x.assertIsDefined(a.deferralParent),x.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ei(a.deferralConstituents):ga(a.deferralConstituents)),a.type}function JB(n){let a=qi(n);return!a.writeType&&a.deferralWriteConstituents&&(x.assertIsDefined(a.deferralParent),x.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ei(a.deferralWriteConstituents):ga(a.deferralWriteConstituents)),a.writeType}function NS(n){let a=Tl(n);return n.flags&4?a&2?a&65536?JB(n)||uZ(n):n.links.writeType||n.links.type:Bb(sr(n),!!(n.flags&16777216)):n.flags&98304?a&1?Ghe(n):HB(n):sr(n)}function sr(n,a){let c=Tl(n);return c&65536?uZ(n):c&1?Bhe(n):c&262144?eat(n):c&8192?mct(n):n.flags&7?o_(n,a):n.flags&9136?PM(n):n.flags&8?cZ(n):n.flags&98304?QE(n):n.flags&2097152?dZ(n):ut}function Rb(n){return Bb(sr(n),!!(n.flags&16777216))}function Db(n,a){return n!==void 0&&a!==void 0&&(Lr(n)&4)!==0&&n.target===a}function ov(n){return Lr(n)&4?n.target:n}function rC(n,a){return c(n);function c(u){if(Lr(u)&7){let _=ov(u);return _===a||gt(Dp(_),c)}else if(u.flags&2097152)return gt(u.types,c);return!1}}function ZE(n,a){for(let c of a)n=xg(n,MA(Sr(c)));return n}function Rn(n,a){for(;;){if(n=n.parent,n&&dr(n)){let c=zl(n);if(c===6||c===3){let u=Sr(n.left);u&&u.parent&&!Fn(u.parent.valueDeclaration,_=>n===_)&&(n=u.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:{let u=Rn(n,a);if(n.kind===200)return Tn(u,MA(Sr(n.typeParameter)));if(n.kind===194)return Eo(u,DOe(n));let _=ZE(u,Rv(n)),g=a&&(n.kind===263||n.kind===231||n.kind===264||$_(n))&&Wf(Sr(n)).thisType;return g?Tn(_,g):_}case 348:let c=B2(n);c&&(n=c.valueDeclaration);break;case 327:{let u=Rn(n,a);return n.tags?ZE(u,va(n.tags,_=>nm(_)?_.typeParameters:void 0)):u}}}}function Or(n){var a;let c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(u=>{if(u.kind===264)return!0;if(u.kind!==260)return!1;let _=u.initializer;return!!_&&(_.kind===218||_.kind===219)});return x.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Rn(c)}function Nr(n){if(!n.declarations)return;let a;for(let c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||$_(c)||W2(c))&&(a=ZE(a,Rv(c)));return a}function Wi(n){return Eo(Or(n),Nr(n))}function Mi(n){let a=Jo(n,1);if(a.length===1){let c=a[0];if(!c.typeParameters&&c.parameters.length===1&&qd(c)){let u=K5(c.parameters[0]);return xt(u)||E5(u)===G}}return!1}function ts(n){if(Jo(n,1).length>0)return!0;if(n.flags&8650752){let a=zd(n);return!!a&&Mi(a)}return!1}function Es(n){let a=Og(n.symbol);return a&&S_(a)}function Zd(n,a,c){let u=Nn(a),_=ir(c);return jr(Jo(n,1),g=>(_||u>=wh(g.typeParameters))&&u<=Nn(g.typeParameters))}function Lh(n,a,c){let u=Zd(n,a,c),_=mn(a,Ti);return Pc(u,g=>gt(g.typeParameters)?h8(g,_,ir(c)):g)}function Rp(n){if(!n.resolvedBaseConstructorType){let a=Og(n.symbol),c=a&&S_(a),u=Es(n);if(!u)return n.resolvedBaseConstructorType=Me;if(!Mh(n,1))return ut;let _=po(u.expression);if(c&&u!==c&&(x.assert(!c.typeArguments),po(c.expression)),_.flags&2621440&&l_(_),!H_())return Ve(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Si(n.symbol)),n.resolvedBaseConstructorType=ut;if(!(_.flags&1)&&_!==We&&!ts(_)){let g=Ve(u.expression,f.Type_0_is_not_a_constructor_function_type,Vn(_));if(_.flags&262144){let T=kM(_),P=un;if(T){let W=Jo(T,1);W[0]&&(P=ds(W[0]))}_.symbol.declarations&&Pa(g,Pr(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Si(_.symbol),Vn(P)))}return n.resolvedBaseConstructorType=ut}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function a_(n){let a=Xe;if(n.symbol.declarations)for(let c of n.symbol.declarations){let u=aR(c);if(u)for(let _ of u){let g=Ti(_);Vt(g)||(a===Xe?a=[g]:a.push(g))}}return a}function sy(n,a){Ve(n,f.Type_0_recursively_references_itself_as_a_base_type,Vn(a,void 0,2))}function Dp(n){if(!n.baseTypesResolved){if(Mh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[iC(n)]:n.symbol.flags&96?(n.symbol.flags&32&&u8(n),n.symbol.flags&64&&Cot(n)):x.fail("type must be class or interface"),!H_()&&n.symbol.declarations))for(let a of n.symbol.declarations)(a.kind===263||a.kind===264)&&sy(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function iC(n){let a=Pc(n.typeParameters,(c,u)=>n.elementFlags[u]&8?Cp(c,It):c);return Bd(ei(a||Xe),n.readonly)}function u8(n){n.resolvedBaseTypes=H6;let a=Nu(Rp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=Xe;let c=Es(n),u,_=a.symbol?Xs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Dot(_))u=Wwe(c,a.symbol);else if(a.flags&1)u=a;else{let T=Lh(a,c.typeArguments,c);if(!T.length)return Ve(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=Xe;u=ds(T[0])}if(Vt(u))return n.resolvedBaseTypes=Xe;let g=c_(u);if(!qB(g)){let T=tge(void 0,u),P=zo(T,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Vn(g));return Qa.add(Mg(Gn(c.expression),c.expression,P)),n.resolvedBaseTypes=Xe}return n===g||rC(g,n)?(Ve(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,Vn(n,void 0,2)),n.resolvedBaseTypes=Xe):(n.resolvedBaseTypes===H6&&(n.members=void 0),n.resolvedBaseTypes=[g])}function Dot(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,u=Vs(n);return a[c].symbol!==u[c].symbol}return!0}function qB(n){if(n.flags&262144){let a=zd(n);if(a)return qB(a)}return!!(n.flags&67633153&&!ju(n)||n.flags&2097152&&oo(n.types,qB))}function Cot(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Xe,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===264&&EN(a))for(let c of EN(a)){let u=c_(Ti(c));Vt(u)||(qB(u)?n!==u&&!rC(u,n)?n.resolvedBaseTypes===Xe?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):sy(a,n):Ve(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Not(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;let c=EN(a);if(c){for(let u of c)if(Bl(u.expression)){let _=Bs(u.expression,788968,!0);if(!_||!(_.flags&64)||Wf(_).thisType)return!1}}}return!0}function Wf(n){let a=qi(n),c=a;if(!a.declaredType){let u=n.flags&32?1:2,_=_ve(n,n.valueDeclaration&&ypt(n.valueDeclaration));_&&(n=_,a=_.links);let g=c.declaredType=a.declaredType=kf(u,n),T=Or(n),P=Nr(n);(T||P||u===1||!Not(n))&&(g.objectFlags|=4,g.typeParameters=Eo(T,P),g.outerTypeParameters=T,g.localTypeParameters=P,g.instantiations=new Map,g.instantiations.set(cm(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=mf(n),g.thisType.isThisType=!0,g.thisType.constraint=g)}return a.declaredType}function Qke(n){var a;let c=qi(n);if(!c.declaredType){if(!Mh(n,2))return ut;let u=x.checkDefined((a=n.declarations)==null?void 0:a.find(W2),"Type alias symbol with no valid declaration found"),_=qf(u)?u.typeExpression:u.type,g=_?Ti(_):ut;if(H_()){let T=Nr(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(cm(T),g))}else g=ut,u.kind===347?Ve(u.typeExpression.type,f.Type_alias_0_circularly_references_itself,Si(n)):Ve(iu(u)&&u.name||u,f.Type_alias_0_circularly_references_itself,Si(n));c.declaredType=g}return c.declaredType}function pZ(n){return n.flags&1056&&n.symbol.flags&8?Xs(Ru(n.symbol)):n}function Zke(n){let a=qi(n);if(!a.declaredType){let c=[];if(n.declarations){for(let _ of n.declarations)if(_.kind===266){for(let g of _.members)if(oC(g)){let T=Sr(g),P=IC(g),W=cx(P!==void 0?Xst(P,ba(n),T):ewe(T));qi(T).declaredType=W,c.push(gu(W))}}}let u=c.length?ei(c,1,n,void 0):ewe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function ewe(n){let a=hg(32,n),c=hg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function twe(n){let a=qi(n);if(!a.declaredType){let c=Zke(Ru(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function MA(n){let a=qi(n);return a.declaredType||(a.declaredType=mf(n))}function Pot(n){let a=qi(n);return a.declaredType||(a.declaredType=Xs(Wc(n)))}function Xs(n){return nwe(n)||ut}function nwe(n){if(n.flags&96)return Wf(n);if(n.flags&524288)return Qke(n);if(n.flags&262144)return MA(n);if(n.flags&384)return Zke(n);if(n.flags&8)return twe(n);if(n.flags&2097152)return Pot(n)}function XB(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 XB(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(XB)}return!1}function Mot(n){let a=wx(n);return!a||XB(a)}function rwe(n){let a=yd(n);return a?XB(a):!Mv(n)}function Lot(n){let a=$f(n),c=Rv(n);return(n.kind===176||!!a&&XB(a))&&n.parameters.every(rwe)&&c.every(Mot)}function kot(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return rwe(a);case 174:case 173:case 176:case 177:case 178:return Lot(a)}}return!1}function iwe(n,a,c){let u=aa();for(let _ of n)u.set(_.escapedName,c&&kot(_)?_:Uge(_,a));return u}function owe(n,a){for(let c of a){if(awe(c))continue;let u=n.get(c.escapedName);(!u||u.valueDeclaration&&dr(u.valueDeclaration)&&!eC(u)&&!oie(u.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function awe(n){return!!n.valueDeclaration&&ou(n.valueDeclaration)&&ra(n.valueDeclaration)}function Vhe(n){if(!n.declaredProperties){let a=n.symbol,c=Cb(a);n.declaredProperties=KE(c),n.declaredCallSignatures=Xe,n.declaredConstructSignatures=Xe,n.declaredIndexInfos=Xe,n.declaredCallSignatures=PS(c.get("__call")),n.declaredConstructSignatures=PS(c.get("__new")),n.declaredIndexInfos=Lwe(a)}return n}function jhe(n){if(!Ya(n)&&!Js(n))return!1;let a=Ya(n)?n.expression:n.argumentExpression;return Bl(a)&&Qf(Ya(n)?bg(n):tc(a))}function p8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function YB(n){let a=Po(n);return!!a&&jhe(a)}function oC(n){return!Ov(n)||YB(n)}function wot(n){return n6(n)&&!jhe(n)}function Oot(n,a,c){x.assert(!!(Tl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,qi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function swe(n,a,c,u){x.assert(!!u.symbol,"The member is expected to have a symbol.");let _=Qr(u);if(!_.resolvedSymbol){_.resolvedSymbol=u.symbol;let g=dr(u)?u.left:u.name,T=Js(g)?tc(g.argumentExpression):bg(g);if(Qf(T)){let P=Zf(T),W=u.symbol.flags,V=c.get(P);V||c.set(P,V=Ka(0,P,4096));let te=a&&a.get(P);if(!(n.flags&32)&&(V.flags&uA(W)||te)){let ye=te?Eo(te.declarations,V.declarations):V.declarations,_e=!(T.flags&8192)&&Vi(P)||Ts(g);gn(ye,je=>Ve(Po(je)||je,f.Property_0_was_also_declared_here,_e)),Ve(g||u,f.Duplicate_property_0,_e),V=Ka(0,P,4096)}return V.links.nameType=T,Oot(V,u,W),V.parent?x.assert(V.parent===n,"Existing symbol parent should match new one"):V.parent=n,_.resolvedSymbol=V}}return _.resolvedSymbol}function Uhe(n,a){let c=qi(n);if(!c[a]){let u=a==="resolvedExports",_=u?n.flags&1536?xA(n).exports:n.exports:n.members;c[a]=_||K;let g=aa();for(let W of n.declarations||Xe){let V=$re(W);if(V)for(let te of V)u===pc(te)&&YB(te)&&swe(n,_,g,te)}let T=AS(n).assignmentDeclarationMembers;if(T){let W=Wo(T.values());for(let V of W){let te=zl(V),ye=te===3||dr(V)&&mee(V,te)||te===9||te===6;u===!ye&&YB(V)&&swe(n,_,g,V)}}let P=K1(_,g);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(let W of n.declarations){let V=qi(W.symbol)[a];if(!P){P=V;continue}V&&V.forEach((te,ye)=>{let _e=P.get(ye);if(!_e)P.set(ye,te);else{if(_e===te)return;P.set(ye,om(_e,te))}})}c[a]=P||K}return c[a]}function Cb(n){return n.flags&6256?Uhe(n,"resolvedMembers"):n.members||K}function fZ(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=qi(n);if(!a.lateSymbol&>(n.declarations,YB)){let c=es(n.parent);gt(n.declarations,pc)?xp(c):Cb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Up(n,a,c){if(Lr(n)&4){let u=n.target,_=Vs(n);return Nn(u.typeParameters)===Nn(_)?sv(u,Eo(_,[a||u.thisType])):n}else if(n.flags&2097152){let u=Pc(n.types,_=>Up(_,a,c));return u!==n.types?ga(u):n}return c?Nu(n):n}function lwe(n,a,c,u){let _,g,T,P,W;OG(c,u,0,c.length)?(g=a.symbol?Cb(a.symbol):aa(a.declaredProperties),T=a.declaredCallSignatures,P=a.declaredConstructSignatures,W=a.declaredIndexInfos):(_=Np(c,u),g=iwe(a.declaredProperties,_,c.length===1),T=kZ(a.declaredCallSignatures,_),P=kZ(a.declaredConstructSignatures,_),W=kOe(a.declaredIndexInfos,_));let V=Dp(a);if(V.length){if(a.symbol&&g===Cb(a.symbol)){let ye=aa(a.declaredProperties),_e=cge(a.symbol);_e&&ye.set("__index",_e),g=ye}_f(n,g,T,P,W);let te=$s(u);for(let ye of V){let _e=te?Up(io(ye,_),te):ye;owe(g,ms(_e)),T=Eo(T,Jo(_e,0)),P=Eo(P,Jo(_e,1));let je=_e!==G?_u(_e):[Oh(Ne,G,!1)];W=Eo(W,jr(je,mt=>!nge(W,mt.keyType)))}}_f(n,g,T,P,W)}function Wot(n){lwe(n,Vhe(n),Xe,Xe)}function Fot(n){let a=Vhe(n.target),c=Eo(a.typeParameters,[a.thisType]),u=Vs(n),_=u.length===c.length?u:Eo(u,[n]);lwe(n,a,c,_)}function yg(n,a,c,u,_,g,T,P){let W=new h(Xt,P);return W.declaration=n,W.typeParameters=a,W.parameters=u,W.thisParameter=c,W.resolvedReturnType=_,W.resolvedTypePredicate=g,W.minArgumentCount=T,W.resolvedMinArgumentCount=void 0,W.target=void 0,W.mapper=void 0,W.compositeSignatures=void 0,W.compositeKind=void 0,W}function f8(n){let a=yg(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function cwe(n,a){let c=f8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function zot(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});let c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=Bot(n,a))}function Bot(n,a){x.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let c=f8(n);return c.flags|=a,c}function dwe(n,a){if(qd(n)){let _=n.parameters.length-1,g=n.parameters[_].escapedName,T=sr(n.parameters[_]);if(wa(T))return[c(T,_,g)];if(!a&&T.flags&1048576&&oo(T.types,wa))return mn(T.types,P=>c(P,_,g))}return[n.parameters];function c(_,g,T){let P=Vs(_),W=u(_,T),V=mn(P,(te,ye)=>{let _e=W&&W[ye]?W[ye]:XM(n,g+ye,_),je=_.target.elementFlags[ye],mt=je&12?32768:je&2?16384:0,At=Ka(1,_e,mt);return At.links.type=je&4?Bd(te):te,At});return Eo(n.parameters.slice(0,g),V)}function u(_,g){let T=new Map;return mn(_.target.labeledElementDeclarations,(P,W)=>{let V=bve(P,W,g),te=T.get(V);return te===void 0?(T.set(V,1),V):(T.set(V,te+1),`${V}_${te}`)})}}function Got(n){let a=Rp(n),c=Jo(a,1),u=Og(n.symbol),_=!!u&&$r(u,64);if(c.length===0)return[yg(void 0,n.localTypeParameters,void 0,Xe,n,void 0,0,_?4:0)];let g=Es(n),T=ir(g),P=i5(g),W=Nn(P),V=[];for(let te of c){let ye=wh(te.typeParameters),_e=Nn(te.typeParameters);if(T||W>=ye&&W<=_e){let je=_e?yZ(te,Pb(P,te.typeParameters,ye,T)):f8(te);je.typeParameters=n.localTypeParameters,je.resolvedReturnType=n,je.flags=_?je.flags|4:je.flags&-5,V.push(je)}}return V}function mZ(n,a,c,u,_){for(let g of n)if(v5(g,a,c,u,_,c?mlt:I8))return g}function Vot(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_1&&(c=c===void 0?u:-1);for(let _ of n[u])if(!a||!mZ(a,_,!1,!1,!0)){let g=Vot(n,_,u);if(g){let T=_;if(g.length>1){let P=_.thisParameter,W=gn(g,V=>V.thisParameter);if(W){let V=ga(to(g,te=>te.thisParameter&&sr(te.thisParameter)));P=UA(W,V)}T=cwe(_,g),T.thisParameter=P}(a||(a=[])).push(T)}}}if(!Nn(a)&&c!==-1){let u=n[c!==void 0?c:0],_=u.slice();for(let g of n)if(g!==u){let T=g[0];if(x.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=T.typeParameters&>(_,P=>!!P.typeParameters&&!uwe(T.typeParameters,P.typeParameters))?void 0:mn(_,P=>Hot(P,T)),!_)break}a=_}return a||Xe}function uwe(n,a){if(Nn(n)!==Nn(a))return!1;if(!n||!a)return!0;let c=Np(a,n);for(let u=0;u=_?n:a,T=g===n?a:n,P=g===n?u:_,W=zh(n)||zh(a),V=W&&!zh(g),te=new Array(P+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:XM(n,ye),nr=ye>=_?void 0:XM(a,ye),Mn=sn===nr?sn:sn?nr?void 0:sn:nr,an=Ka(1|(rn&&!At?16777216:0),Mn||`arg${ye}`,At?32768:rn?16384:0);an.links.type=At?Bd(mt):mt,te[ye]=an}if(V){let ye=Ka(1,"args",32768);ye.links.type=Bd(p_(T,P)),T===a&&(ye.links.type=io(ye.links.type,c)),te[P]=ye}return te}function Hot(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=Uot(n,a,u),T=jot(n.thisParameter,a.thisParameter,u),P=Math.max(n.minArgumentCount,a.minArgumentCount),W=yg(_,c,T,g,void 0,void 0,P,(n.flags|a.flags)&167);return W.compositeKind=1048576,W.compositeSignatures=Eo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u?W.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?WS(n.mapper,u):u:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(W.mapper=n.mapper),W}function pwe(n){let a=_u(n[0]);if(a){let c=[];for(let u of a){let _=u.keyType;oo(n,g=>!!vg(g,_))&&c.push(Oh(_,ei(mn(n,g=>t0(g,_))),gt(n,g=>vg(g,_).isReadonly)))}return c}return Xe}function Kot(n){let a=Hhe(mn(n.types,_=>_===Lt?[cn]:Jo(_,0))),c=Hhe(mn(n.types,_=>Jo(_,1))),u=pwe(n.types);_f(n,K,a,c,u)}function $B(n,a){return n?a?ga([n,a]):n:a}function fwe(n){let a=yv(n,u=>Jo(u,1).length>0),c=mn(n,Mi);if(a>0&&a===yv(c,u=>u)){let u=c.indexOf(!0);c[u]=!1}return c}function Jot(n,a,c,u){let _=[];for(let g=0;gP);for(let P=0;P<_.length;P++){let W=n.types[P];if(!g[P]){let V=Jo(W,1);V.length&&T>0&&(V=mn(V,te=>{let ye=f8(te);return ye.resolvedReturnType=Jot(ds(te),_,g,P),ye})),c=mwe(c,V)}a=mwe(a,Jo(W,0)),u=tu(_u(W),(V,te)=>_we(V,te,!1),u)}_f(n,K,a||Xe,c||Xe,u||Xe)}function mwe(n,a){for(let c of a)(!n||oo(n,u=>!v5(u,c,!1,!1,!1,I8)))&&(n=Tn(n,c));return n}function _we(n,a,c){if(n)for(let u=0;u{var W;!(P.flags&418)&&!(P.flags&512&&((W=P.declarations)!=null&&W.length)&&oo(P.declarations,Md))&&T.set(P.escapedName,P)}),c=T}let _;if(_f(n,c,Xe,Xe,Xe),a.flags&32){let T=Wf(a),P=Rp(T);P.flags&11272192?(c=aa(DA(c)),owe(c,ms(P))):P===G&&(_=Oh(Ne,G,!1))}let g=vZ(c);if(g?u=dge(g):(_&&(u=Tn(u,_)),a.flags&384&&(Xs(a).flags&32||gt(n.properties,T=>!!(sr(T).flags&296)))&&(u=Tn(u,zr))),_f(n,c,Xe,Xe,u||Xe),a.flags&8208&&(n.callSignatures=PS(a)),a.flags&32){let T=Wf(a),P=a.members?PS(a.members.get("__constructor")):Xe;a.flags&16&&(P=Hr(P.slice(),to(n.callSignatures,W=>$_(W.declaration)?yg(W.declaration,W.typeParameters,W.thisParameter,W.parameters,T,void 0,W.minArgumentCount,W.flags&167):void 0))),P.length||(P=Got(T)),n.constructSignatures=P}}function Yot(n,a,c){return io(n,Np([a.indexType,a.objectType],[d_(0),Wh([c])]))}function $ot(n){let a=hf(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;let c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;let u=ga(c.types.filter(_=>_!==n.constraintType));return u!==Fr?u:void 0}function Qot(n){let a=vg(n.source,Ne),c=kh(n.mappedType),u=!(c&1),_=c&4?0:16777216,g=a?[Oh(Ne,tee(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:Xe,T=aa(),P=$ot(n);for(let W of ms(n.source)){if(P){let ye=uC(W,8576);if(!ya(ye,P))continue}let V=8192|(u&&f_(W)?8:0),te=Ka(4|W.flags&_,W.escapedName,V);if(te.declarations=W.declarations,te.links.nameType=qi(W).nameType,te.links.propertyType=sr(W),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){let ye=n.constraintType.type.objectType,_e=Yot(n.mappedType,n.constraintType.type,ye);te.links.mappedType=_e,te.links.constraintType=J_(ye)}else te.links.mappedType=n.mappedType,te.links.constraintType=n.constraintType;T.set(W.escapedName,te)}_f(n,T,Xe,Xe,g)}function QB(n){if(n.flags&4194304){let a=Nu(n.type);return Fb(a)?oOe(a):J_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=QB(a);if(c!==a)return Kge(n,VA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return ll(n,QB,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===ac?n:ga(Pc(n.types,QB))}return n}function Khe(n){return Tl(n)&4096}function Jhe(n,a,c,u){for(let _ of ms(n))u(uC(_,a));if(n.flags&1)u(Ne);else for(let _ of _u(n))(!c||_.keyType.flags&134217732)&&u(_.keyType)}function Zot(n){let a=aa(),c;_f(n,K,Xe,Xe,Xe);let u=s_(n),_=hf(n),g=n.target||n,T=av(g),P=_Z(g)!==2,W=ly(g),V=Nu(LA(n)),te=kh(n),ye=Ce?128:8576;aC(n)?Jhe(V,ye,Ce,_e):qA(QB(_),_e),_f(n,a,Xe,Xe,c||Xe);function _e(mt){let At=T?io(T,S8(n.mapper,u,mt)):mt;qA(At,rn=>je(mt,rn))}function je(mt,At){if(Qf(At)){let rn=Zf(At),sn=a.get(rn);if(sn)sn.links.nameType=ei([sn.links.nameType,At]),sn.links.keyType=ei([sn.links.keyType,mt]);else{let nr=Qf(mt)?ha(V,Zf(mt)):void 0,Mn=!!(te&4||!(te&8)&&nr&&nr.flags&16777216),an=!!(te&1||!(te&2)&&nr&&f_(nr)),On=J&&!Mn&&nr&&nr.flags&16777216,Ln=nr?Khe(nr):0,Yn=Ka(4|(Mn?16777216:0),rn,Ln|262144|(an?8:0)|(On?524288:0));Yn.links.mappedType=n,Yn.links.nameType=At,Yn.links.keyType=mt,nr&&(Yn.links.syntheticOrigin=nr,Yn.declarations=P?nr.declarations:void 0),a.set(rn,Yn)}}else if(bZ(At)||At.flags&33){let rn=At.flags&5?Ne:At.flags&40?It:At,sn=io(W,S8(n.mapper,u,mt)),nr=m8(V,At),Mn=!!(te&1||!(te&2)&&nr?.isReadonly),an=Oh(rn,sn,Mn);c=_we(c,an,!0)}}}function eat(n){if(!n.links.type){let a=n.links.mappedType;if(!Mh(n,0))return a.containsError=!0,ut;let c=ly(a.target||a),u=S8(a.mapper,s_(a),n.links.keyType),_=io(c,u),g=J&&n.flags&16777216&&!Rl(_,49152)?zb(_,!0):n.links.checkFlags&524288?YZ(_):_;H_()||(Ve(D,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Si(n),Vn(a)),g=ut),n.links.type=g}return n.links.type}function s_(n){return n.typeParameter||(n.typeParameter=MA(Sr(n.declaration.typeParameter)))}function hf(n){return n.constraintType||(n.constraintType=Cu(s_(n))||ut)}function av(n){return n.declaration.nameType?n.nameType||(n.nameType=io(Ti(n.declaration.nameType),n.mapper)):void 0}function ly(n){return n.templateType||(n.templateType=n.declaration.type?io(op(Ti(n.declaration.type),!0,!!(kh(n)&4)),n.mapper):ut)}function hwe(n){return wx(n.declaration.typeParameter)}function aC(n){let a=hwe(n);return a.kind===198&&a.operator===143}function LA(n){if(!n.modifiersType)if(aC(n))n.modifiersType=io(Ti(hwe(n).type),n.mapper);else{let a=Oge(n.declaration),c=hf(a),u=c&&c.flags&262144?Cu(c):c;n.modifiersType=u&&u.flags&4194304?io(u.type,n.mapper):un}return n.modifiersType}function kh(n){let a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function gwe(n){let a=kh(n);return a&8?-1:a&4?1:0}function qhe(n){let a=gwe(n),c=LA(n);return a||(ju(c)?gwe(c):0)}function tat(n){return!!(Lr(n)&32&&kh(n)&4)}function ju(n){if(Lr(n)&32){let a=hf(n);if(GA(a))return!0;let c=av(n);if(c&&GA(io(c,OS(s_(n),a))))return!0}return!1}function _Z(n){let a=av(n);return a?ya(a,s_(n))?1:2:0}function l_(n){return n.members||(n.flags&524288?n.objectFlags&4?Fot(n):n.objectFlags&3?Wot(n):n.objectFlags&1024?Qot(n):n.objectFlags&16?Xot(n):n.objectFlags&32?Zot(n):x.fail("Unhandled object type "+x.formatObjectFlags(n.objectFlags)):n.flags&1048576?Kot(n):n.flags&2097152?qot(n):x.fail("Unhandled type "+x.formatTypeFlags(n.flags))),n}function Nb(n){return n.flags&524288?l_(n).properties:Xe}function e0(n,a){if(n.flags&524288){let u=l_(n).members.get(a);if(u&&wm(u))return u}}function ZB(n){if(!n.resolvedProperties){let a=aa();for(let c of n.types){for(let u of ms(c))if(!a.has(u.escapedName)){let _=t5(n,u.escapedName,!!(n.flags&2097152));_&&a.set(u.escapedName,_)}if(n.flags&1048576&&_u(c).length===0)break}n.resolvedProperties=KE(a)}return n.resolvedProperties}function ms(n){return n=MM(n),n.flags&3145728?ZB(n):Nb(n)}function nat(n,a){n=MM(n),n.flags&3670016&&l_(n).members.forEach((c,u)=>{ex(c,u)&&a(c,u)})}function rat(n,a){return a.properties.some(u=>{let _=u.name&&(qm(u.name)?Uu(fk(u.name)):cv(u.name)),g=_&&Qf(_)?Zf(_):void 0,T=g===void 0?void 0:Ue(n,g);return!!T&&D8(T)&&!ya(fx(u),T)})}function iat(n){let a=ei(n);if(!(a.flags&1048576))return nbe(a);let c=aa();for(let u of n)for(let{escapedName:_}of nbe(u))if(!c.has(_)){let g=Awe(a,_);g&&c.set(_,g)}return Wo(c.values())}function kA(n){return n.flags&262144?Cu(n):n.flags&8388608?aat(n):n.flags&16777216?bwe(n):zd(n)}function Cu(n){return e5(n)?kM(n):void 0}function oat(n,a){let c=T8(n);return!!c&&wA(c,a)}function wA(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&>((c=n.symbol)==null?void 0:c.declarations,u=>$r(u,4096))||n.flags&3145728&>(n.types,u=>wA(u,a))||n.flags&8388608&&wA(n.objectType,a+1)||n.flags&16777216&&wA(bwe(n),a+1)||n.flags&33554432&&wA(n.baseType,a)||Lr(n)&32&&oat(n,a)||Fb(n)&&Kl(LS(n),(u,_)=>!!(n.target.elementFlags[_]&8)&&wA(u,a))>=0))}function aat(n){return e5(n)?sat(n):void 0}function Xhe(n){let a=uy(n,!1);return a!==n?a:kA(n)}function sat(n){if(Zhe(n))return DZ(n.objectType,n.indexType);let a=Xhe(n.indexType);if(a&&a!==n.indexType){let u=Lb(n.objectType,a,n.accessFlags);if(u)return u}let c=Xhe(n.objectType);if(c&&c!==n.objectType)return Lb(c,n.indexType,n.accessFlags)}function Yhe(n){if(!n.resolvedDefaultConstraint){let a=jst(n),c=i0(n);n.resolvedDefaultConstraint=xt(a)?c:xt(c)?a:ei([a,c])}return n.resolvedDefaultConstraint}function ywe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let a=uy(n.checkType,!1),c=a===n.checkType?kA(a):a;if(c&&c!==n.checkType){let u=Kge(n,VA(n.root.checkType,c,n.mapper),!0);if(!(u.flags&131072))return n.resolvedConstraintOfDistributive=u,u}}n.resolvedConstraintOfDistributive=!1}function vwe(n){return ywe(n)||Yhe(n)}function bwe(n){return e5(n)?vwe(n):void 0}function lat(n,a){let c,u=!1;for(let _ of n)if(_.flags&465829888){let g=kA(_);for(;g&&g.flags&21233664;)g=kA(g);g&&(c=Tn(c,g),a&&(c=Tn(c,_)))}else(_.flags&469892092||Fh(_))&&(u=!0);if(c&&(a||u)){if(u)for(let _ of n)(_.flags&469892092||Fh(_))&&(c=Tn(c,_));return h5(ga(c),!1)}}function zd(n){if(n.flags&464781312||Fb(n)){let a=$he(n);return a!==Fs&&a!==nd?a:void 0}return n.flags&4194304?Ls:void 0}function cy(n){return zd(n)||n}function e5(n){return $he(n)!==nd}function $he(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(g){if(!g.immediateBaseConstraint){if(!Mh(g,4))return nd;let T,P=UZ(g);if((a.length<10||a.length<50&&!Bo(a,P))&&(a.push(P),T=_(uy(g,!1)),a.pop()),!H_()){if(g.flags&262144){let W=uge(g);if(W){let V=Ve(W,f.Type_parameter_0_has_a_circular_constraint,Vn(g));D&&!C0(W,D)&&!C0(D,W)&&Pa(V,Pr(D,f.Circularity_originates_in_type_at_this_location))}}T=nd}g.immediateBaseConstraint=T||Fs}return g.immediateBaseConstraint}function u(g){let T=c(g);return T!==Fs&&T!==nd?T:void 0}function _(g){if(g.flags&262144){let T=kM(g);return g.isThisType||!T?T:u(T)}if(g.flags&3145728){let T=g.types,P=[],W=!1;for(let V of T){let te=u(V);te?(te!==V&&(W=!0),P.push(te)):W=!0}return W?g.flags&1048576&&P.length===T.length?ei(P):g.flags&2097152&&P.length?ga(P):void 0:g}if(g.flags&4194304)return Ls;if(g.flags&134217728){let T=g.types,P=to(T,u);return P.length===T.length?FA(g.texts,P):Ne}if(g.flags&268435456){let T=u(g.type);return T&&T!==g.type?sx(g.symbol,T):Ne}if(g.flags&8388608){if(Zhe(g))return u(DZ(g.objectType,g.indexType));let T=u(g.objectType),P=u(g.indexType),W=T&&P&&Lb(T,P,g.accessFlags);return W&&u(W)}if(g.flags&16777216){let T=vwe(g);return T&&u(T)}if(g.flags&33554432)return u(hge(g));if(Fb(g)){let T=mn(LS(g),(P,W)=>{let V=P.flags&262144&&g.target.elementFlags[W]&8&&u(P)||P;return V!==P&&ap(V,te=>a0(te)&&!Fb(te))?V:P});return Wh(T,g.target.elementFlags,g.target.readonly,g.target.labeledElementDeclarations)}return g}}function cat(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Up(n,a,!0))}function Qhe(n){if(n.default)n.default===ud&&(n.default=nd);else if(n.target){let a=Qhe(n.target);n.default=a?io(a,n.mapper):Fs}else{n.default=ud;let a=n.symbol&&gn(n.symbol.declarations,u=>fl(u)&&u.default),c=a?Ti(a):Fs;n.default===ud&&(n.default=c)}return n.default}function OA(n){let a=Qhe(n);return a!==Fs&&a!==nd?a:void 0}function dat(n){return Qhe(n)!==nd}function Ewe(n){return!!(n.symbol&&gn(n.symbol.declarations,a=>fl(a)&&a.default))}function Swe(n){return n.resolvedApparentType||(n.resolvedApparentType=uat(n))}function uat(n){let a=n.target??n,c=T8(a);if(c&&!a.declaration.nameType){let u=LA(n),_=ju(u)?Swe(u):zd(u);if(_&&ap(_,g=>a0(g)||Twe(g)))return io(a,VA(c,_,n.mapper))}return n}function Twe(n){return!!(n.flags&2097152)&&oo(n.types,a0)}function Zhe(n){let a;return!!(n.flags&8388608&&Lr(a=n.objectType)&32&&!ju(a)&&GA(n.indexType)&&!(kh(a)&8)&&!a.declaration.nameType)}function Nu(n){let a=n.flags&465829888?zd(n)||un:n,c=Lr(a);return c&32?Swe(a):c&4&&a!==n?Up(a,n):a.flags&2097152?cat(a,n):a.flags&402653316?Ql:a.flags&296?gc:a.flags&2112?qat():a.flags&528?sl:a.flags&12288?Ywe():a.flags&67108864?Ca:a.flags&4194304?Ls:a.flags&2&&!J?Ca:a}function MM(n){return c_(Nu(c_(n)))}function Awe(n,a,c){var u,_,g;let T,P,W,V=n.flags&1048576,te,ye=4,_e=V?0:8,je=!1;for(let Yn of n.types){let jn=Nu(Yn);if(!(Vt(jn)||jn.flags&131072)){let $n=ha(jn,a,c),Ro=$n?Tf($n):0;if($n){if($n.flags&106500&&(te??(te=V?0:16777216),V?te|=$n.flags&16777216:te&=$n.flags),!T)T=$n;else if($n!==T)if((TC($n)||$n)===(TC(T)||T)&&nye(T,$n,(Fo,fo)=>Fo===fo?-1:0)===-1)je=!!T.parent&&!!Nn(Nr(T.parent));else{P||(P=new Map,P.set(ba(T),T));let Fo=ba($n);P.has(Fo)||P.set(Fo,$n)}V&&f_($n)?_e|=8:!V&&!f_($n)&&(_e&=-9),_e|=(Ro&6?0:256)|(Ro&4?512:0)|(Ro&2?1024:0)|(Ro&256?2048:0),Qye($n)||(ye=2)}else if(V){let bo=!p8(a)&&ox(jn,a);bo?(_e|=32|(bo.isReadonly?8:0),W=Tn(W,wa(jn)?JZ(jn)||Me:bo.type)):c0(jn)&&!(Lr(jn)&2097152)?(_e|=32,W=Tn(W,Me)):_e|=16}}}if(!T||V&&(P||_e&48)&&_e&1536&&!(P&&pat(P.values())))return;if(!P&&!(_e&16)&&!W)if(je){let Yn=(u=ri(T,ch))==null?void 0:u.links,jn=UA(T,Yn?.type);return jn.parent=(g=(_=T.valueDeclaration)==null?void 0:_.symbol)==null?void 0:g.parent,jn.links.containingType=n,jn.links.mapper=Yn?.mapper,jn.links.writeType=NS(T),jn}else return T;let mt=P?Wo(P.values()):[T],At,rn,sn,nr=[],Mn,an,On=!1;for(let Yn of mt){an?Yn.valueDeclaration&&Yn.valueDeclaration!==an&&(On=!0):an=Yn.valueDeclaration,At=Hr(At,Yn.declarations);let jn=sr(Yn);rn||(rn=jn,sn=qi(Yn).nameType);let $n=NS(Yn);(Mn||$n!==jn)&&(Mn=Tn(Mn||nr.slice(),$n)),jn!==rn&&(_e|=64),(D8(jn)||zA(jn))&&(_e|=128),jn.flags&131072&&jn!==cd&&(_e|=131072),nr.push(jn)}Hr(nr,W);let Ln=Ka(4|(te??0),a,ye|_e);return Ln.links.containingType=n,!On&&an&&(Ln.valueDeclaration=an,an.symbol.parent&&(Ln.parent=an.symbol.parent)),Ln.declarations=At,Ln.links.nameType=sn,nr.length>2?(Ln.links.checkFlags|=65536,Ln.links.deferralParent=n,Ln.links.deferralConstituents=nr,Ln.links.deferralWriteConstituents=Mn):(Ln.links.type=V?ei(nr):ga(nr),Mn&&(Ln.links.writeType=V?ei(Mn):ga(Mn))),Ln}function Iwe(n,a,c){var u,_,g;let T=c?(u=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:u.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return T||(T=Awe(n,a,c),T&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=aa()):n.propertyCache||(n.propertyCache=aa())).set(a,T),c&&!(Tl(T)&48)&&!((g=n.propertyCache)!=null&&g.get(a))&&(n.propertyCache||(n.propertyCache=aa())).set(a,T))),T}function pat(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(u=>{Bo(c.declarations,u)||a.delete(u)}),a.size===0)return}return a}function t5(n,a,c){let u=Iwe(n,a,c);return u&&!(Tl(u)&16)?u:void 0}function c_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=fat(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(gt(ZB(n),mat)?33554432:0)),n.objectFlags&33554432?Fr:n):n}function fat(n){let a=Pc(n.types,c_);if(a===n.types)return n;let c=ei(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function mat(n){return xwe(n)||Rwe(n)}function xwe(n){return!(n.flags&16777216)&&(Tl(n)&131264)===192&&!!(sr(n).flags&131072)}function Rwe(n){return!n.valueDeclaration&&!!(Tl(n)&1024)}function ege(n){return!!(n.flags&1048576&&n.objectFlags&16777216&>(n.types,ege)||n.flags&2097152&&_at(n))}function _at(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=io(n,mo));return c_(a)!==a}function tge(n,a){if(a.flags&2097152&&Lr(a)&33554432){let c=Vr(ZB(a),xwe);if(c)return zo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Vn(a,void 0,536870912),Si(c));let u=Vr(ZB(a),Rwe);if(u)return zo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Vn(a,void 0,536870912),Si(u))}return n}function ha(n,a,c,u){var _,g;if(n=MM(n),n.flags&524288){let T=l_(n),P=T.members.get(a);if(P&&!u&&((_=n.symbol)==null?void 0:_.flags)&512&&((g=qi(n.symbol).typeOnlyExportStarMap)!=null&&g.has(a)))return;if(P&&wm(P,u))return P;if(c)return;let W=T===tn?Lt:T.callSignatures.length?Un:T.constructSignatures.length?yo:void 0;if(W){let V=e0(W,a);if(V)return V}return e0(Re,a)}if(n.flags&2097152){let T=t5(n,a,!0);return T||(c?void 0:t5(n,a,c))}if(n.flags&1048576)return t5(n,a,c)}function n5(n,a){if(n.flags&3670016){let c=l_(n);return a===0?c.callSignatures:c.constructSignatures}return Xe}function Jo(n,a){let c=n5(MM(n),a);if(a===0&&!Nn(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let u;if(ap(n,_=>{var g;return!!((g=_.symbol)!=null&&g.parent)&&hat(_.symbol.parent)&&(u?u===_.symbol.escapedName:(u=_.symbol.escapedName,!0))})){let _=ll(n,T=>wb((Dwe(T.symbol.parent)?Zo:Xo).typeParameters[0],T.mapper)),g=Bd(_,Fm(n,T=>Dwe(T.symbol.parent)));return n.arrayFallbackSignatures=Jo(Ue(g,u),a)}n.arrayFallbackSignatures=c}return c}function hat(n){return!n||!Xo.symbol||!Zo.symbol?!1:!!r_(n,Xo.symbol)||!!r_(n,Zo.symbol)}function Dwe(n){return!n||!Zo.symbol?!1:!!r_(n,Zo.symbol)}function nge(n,a){return Vr(n,c=>c.keyType===a)}function rge(n,a){let c,u,_;for(let g of n)g.keyType===Ne?c=g:ix(a,g.keyType)&&(u?(_||(_=[u])).push(g):u=g);return _?Oh(un,ga(mn(_,g=>g.type)),tu(_,(g,T)=>g&&T.isReadonly,!0)):u||(c&&ix(a,Ne)?c:void 0)}function ix(n,a){return ya(n,a)||a===Ne&&ya(n,It)||a===It&&(n===ss||!!(n.flags&128)&&ng(n.value))}function ige(n){return n.flags&3670016?l_(n).indexInfos:Xe}function _u(n){return ige(MM(n))}function vg(n,a){return nge(_u(n),a)}function t0(n,a){var c;return(c=vg(n,a))==null?void 0:c.type}function oge(n,a){return _u(n).filter(c=>ix(a,c.keyType))}function m8(n,a){return rge(_u(n),a)}function ox(n,a){return m8(n,p8(a)?xi:Uu(Vi(a)))}function Cwe(n){var a;let c;for(let u of Rv(n))c=xg(c,MA(u.symbol));return c?.length?c:Ec(n)?(a=LM(n))==null?void 0:a.typeParameters:void 0}function age(n){let a=[];return n.forEach((c,u)=>{xS(u)||a.push(c)}),a}function hZ(n,a){if(Yc(n))return;let c=Vu(be,'"'+n+'"',512);return c&&a?es(c):c}function _8(n){if(xI(n)||uk(n)||pk(n))return!0;if(n.initializer){let c=lm(n.parent),u=n.parent.parameters.indexOf(n);return x.assert(u>=0),u>=Q_(c,3)}let a=_T(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=Dee(a).length:!1}function gat(n){return Uo(n)&&!I_(n)&&n.questionToken}function r5(n,a,c,u){return{kind:n,parameterName:a,parameterIndex:c,type:u}}function wh(n){let a=0;if(n)for(let c=0;c=c&&g<=_){let T=n?n.slice():[];for(let W=g;W<_;W++)T[W]=ut;let P=Eye(u);for(let W=g;W<_;W++){let V=OA(a[W]);u&&V&&(py(V,un)||py(V,Ca))&&(V=G),T[W]=V?io(V,Np(a,T)):P}return T.length=a.length,T}return n&&n.slice()}function lm(n){let a=Qr(n);if(!a.resolvedSignature){let c=[],u=0,_=0,g,T=ir(n)?nF(n):void 0,P=!1,W=_T(n),V=rR(n);!W&&ir(n)&&gie(n)&&!Yne(n)&&!nE(n)&&(u|=32);for(let mt=V?1:0;mtW.arguments.length&&!sn||pk(At)||(_=c.length)}if((n.kind===177||n.kind===178)&&oC(n)&&(!P||!g)){let mt=n.kind===177?178:177,At=cl(Sr(n),mt);At&&(g=sZ(At))}T&&T.typeExpression&&(g=UA(Ka(1,"this"),Ti(T.typeExpression)));let ye=yE(n)?cE(n):n,_e=ye&&Pl(ye)?Wf(es(ye.parent.symbol)):void 0,je=_e?_e.localTypeParameters:Cwe(n);(FV(n)||ir(n)&&yat(n,c))&&(u|=1),(RR(n)&&$r(n,64)||Pl(n)&&$r(n.parent,64))&&(u|=4),a.resolvedSignature=yg(n,je,g,c,void 0,void 0,_,u)}return a.resolvedSignature}function yat(n,a){if(yE(n)||!sge(n))return!1;let c=$s(n.parameters),u=c?kx(c):rE(n).filter(Ym),_=Wl(u,T=>T.typeExpression&&j4(T.typeExpression.type)?T.typeExpression.type:void 0),g=Ka(3,"args",32768);return _?g.links.type=Bd(Ti(_.type)):(g.links.checkFlags|=65536,g.links.deferralParent=Fr,g.links.deferralConstituents=[Zl],g.links.deferralWriteConstituents=[Zl]),_&&a.pop(),a.push(g),!0}function LM(n){if(!(ir(n)&&ws(n)))return;let a=tE(n);return a?.typeExpression&&QA(Ti(a.typeExpression))}function vat(n,a){let c=LM(n);if(!c)return;let u=n.parameters.indexOf(a);return a.dotDotDotToken?J5(c,u):p_(c,u)}function bat(n){let a=LM(n);return a&&ds(a)}function sge(n){let a=Qr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(u){if(!u)return!1;switch(u.kind){case 80:return u.escapedText===Wt.escapedName&&$8(u)===Wt;case 172:case 174:case 177:case 178:return u.name.kind===167&&c(u.name);case 211:case 212:return c(u.expression);case 303:return c(u.initializer);default:return!Cj(u)&&!qh(u)&&!!Go(u,c)}}}function PS(n){if(!n||!n.declarations)return Xe;let a=[];for(let c=0;c0&&u.body){let _=n.declarations[c-1];if(u.parent===_.parent&&u.kind===_.kind&&u.pos===_.end)continue}if(ir(u)&&u.jsDoc){let _=vj(u);if(Nn(_)){for(let g of _){let T=g.typeExpression;T.type===void 0&&!Pl(u)&&s0(T,G),a.push(lm(T))}continue}}a.push(!F0(u)&&!bm(u)&&LM(u)||lm(u))}}return a}function Nwe(n){let a=mu(n,n);if(a){let c=Ip(a);if(c)return sr(c)}return G}function n0(n){if(n.thisParameter)return sr(n.thisParameter)}function Ff(n){if(!n.resolvedTypePredicate){if(n.target){let a=Ff(n.target);n.resolvedTypePredicate=a?ilt(a,n.mapper):Pe}else if(n.compositeSignatures)n.resolvedTypePredicate=vst(n.compositeSignatures,n.compositeKind)||Pe;else{let a=n.declaration&&$f(n.declaration),c;if(!a){let u=LM(n.declaration);u&&n!==u&&(c=Ff(u))}n.resolvedTypePredicate=a&&Lk(a)?Eat(a,n):c||Pe}x.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Pe?void 0:n.resolvedTypePredicate}function Eat(n,a){let c=n.parameterName,u=n.type&&Ti(n.type);return c.kind===197?r5(n.assertsModifier?2:0,void 0,void 0,u):r5(n.assertsModifier?3:1,c.escapedText,Kl(a.parameters,_=>_.escapedName===c.escapedText),u)}function Pwe(n,a,c){return a!==2097152?ei(n,c):ga(n)}function ds(n){if(!n.resolvedReturnType){if(!Mh(n,3))return ut;let a=n.target?io(ds(n.target),n.mapper):n.compositeSignatures?io(Pwe(mn(n.compositeSignatures,ds),n.compositeKind,2),n.mapper):sC(n.declaration)||(Fl(n.declaration.body)?G:Mee(n.declaration));if(n.flags&8?a=u8e(a):n.flags&16&&(a=zb(a)),!H_()){if(n.declaration){let c=$f(n.declaration);if(c)Ve(c,f.Return_type_annotation_circularly_references_itself);else if(fe){let u=n.declaration,_=Po(u);_?Ve(_,f._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,Ts(_)):Ve(u,f.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=G}n.resolvedReturnType=a}return n.resolvedReturnType}function sC(n){if(n.kind===176)return Wf(es(n.parent.symbol));let a=$f(n);if(yE(n)){let c=iR(n);if(c&&Pl(c.parent)&&!a)return Wf(es(c.parent.parent.symbol))}if(rR(n))return Ti(n.parameters[0].type);if(a)return Ti(a);if(n.kind===177&&oC(n)){let c=ir(n)&&iy(n);if(c)return c;let u=cl(Sr(n),178),_=$E(u);if(_)return _}return bat(n)}function gZ(n){return n.compositeSignatures&>(n.compositeSignatures,gZ)||!n.resolvedReturnType&&nx(n,3)>=0}function Sat(n){return Mwe(n)||G}function Mwe(n){if(qd(n)){let a=sr(n.parameters[n.parameters.length-1]),c=wa(a)?JZ(a):a;return c&&t0(c,It)}}function h8(n,a,c,u){let _=lge(n,Pb(a,n.typeParameters,wh(n.typeParameters),c));if(u){let g=UWe(ds(_));if(g){let T=f8(g);T.typeParameters=u;let P=f8(_);return P.resolvedReturnType=WA(T),P}}return _}function lge(n,a){let c=n.instantiations||(n.instantiations=new Map),u=cm(a),_=c.get(u);return _||c.set(u,_=yZ(n,a)),_}function yZ(n,a){return mC(n,Tat(n,a),!0)}function Tat(n,a){return Np(n.typeParameters,a)}function g8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Aat(n)):n}function Aat(n){return mC(n,wOe(n.typeParameters),!0)}function Iat(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=xat(n)):n}function xat(n){return h8(n,mn(n.typeParameters,a=>a.target&&!Cu(a.target)?a.target:a),ir(n.declaration))}function Rat(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=wOe(a),u=Np(a,mn(a,g=>Cu(g)||un)),_=mn(a,g=>io(g,u)||un);for(let g=0;g{bZ(_)&&!nge(a,_)&&a.push(Oh(_,c.type?Ti(c.type):G,fp(c,8),c))})}return a}return Xe}function bZ(n){return!!(n.flags&4108)||zA(n)||!!(n.flags&2097152)&&!pC(n)&>(n.types,bZ)}function uge(n){return to(jr(n.symbol&&n.symbol.declarations,fl),wx)[0]}function kwe(n,a){var c;let u;if((c=n.symbol)!=null&&c.declarations){for(let _ of n.symbol.declarations)if(_.parent.kind===195){let[g=_.parent,T]=yie(_.parent.parent);if(T.kind===183&&!a){let P=T,W=wve(P);if(W){let V=P.typeArguments.indexOf(g);if(V()=>Vft(P,W,mt))),_e=io(te,ye);_e!==n&&(u=Tn(u,_e))}}}}else if(T.kind===169&&T.dotDotDotToken||T.kind===191||T.kind===202&&T.dotDotDotToken)u=Tn(u,Bd(un));else if(T.kind===204)u=Tn(u,Ne);else if(T.kind===168&&T.parent.kind===200)u=Tn(u,Ls);else if(T.kind===200&&T.type&&fs(T.type)===_.parent&&T.parent.kind===194&&T.parent.extendsType===T&&T.parent.checkType.kind===200&&T.parent.checkType.type){let P=T.parent.checkType,W=Ti(P.type);u=Tn(u,io(W,OS(MA(Sr(P.typeParameter)),P.typeParameter.constraint?Ti(P.typeParameter.constraint):Ls)))}}}return u&&ga(u)}function kM(n){if(!n.constraint)if(n.target){let a=Cu(n.target);n.constraint=a?io(a,n.mapper):Fs}else{let a=uge(n);if(!a)n.constraint=kwe(n)||Fs;else{let c=Ti(a);c.flags&1&&!Vt(c)&&(c=a.parent.parent.kind===200?Ls:un),n.constraint=c}}return n.constraint===Fs?void 0:n.constraint}function wwe(n){let a=cl(n.symbol,168),c=nm(a.parent)?QF(a.parent):a.parent;return c&&pf(c)}function cm(n){let a="";if(n){let c=n.length,u=0;for(;u1&&(a+=":"+g),u+=g}}return a}function ax(n,a){return n?`@${ba(n)}`+(a?`:${cm(a)}`:""):""}function EZ(n,a){let c=0;for(let u of n)(a===void 0||!(u.flags&a))&&(c|=Lr(u));return c&458752}function lC(n,a){return gt(a)&&n===Lo?un:sv(n,a)}function sv(n,a){let c=cm(a),u=n.instantiations.get(c);return u||(u=kf(4,n.symbol),n.instantiations.set(c,u),u.objectFlags|=a?EZ(a):0,u.target=n,u.resolvedTypeArguments=a),u}function Owe(n){let a=hg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function pge(n,a,c,u,_){if(!u){u=lx(a);let T=fC(u);_=c?dv(T,c):T}let g=kf(4,n.symbol);return g.target=n,g.node=a,g.mapper=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function Vs(n){var a,c;if(!n.resolvedTypeArguments){if(!Mh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>ut))||Xe;let u=n.node,_=u?u.kind===183?Eo(n.target.outerTypeParameters,Wee(u,n.target.localTypeParameters)):u.kind===188?[Ti(u.elementType)]:mn(u.elements,Ti):Xe;H_()?n.resolvedTypeArguments=n.mapper?dv(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>ut))||Xe,Ve(n.node||D,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Si(n.target.symbol)))}return n.resolvedTypeArguments}function lv(n){return Nn(n.target.typeParameters)}function Wwe(n,a){let c=Xs(es(a)),u=c.localTypeParameters;if(u){let _=Nn(n.typeArguments),g=wh(u),T=ir(n);if(!(!fe&&T)&&(_u.length)){let V=T&&zy(n)&&!a1(n.parent),te=g===u.length?V?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:V?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,ye=Vn(c,void 0,2);if(Ve(n,te,ye,g,u.length),!T)return ut}if(n.kind===183&&rOe(n,Nn(n.typeArguments)!==u.length))return pge(c,n,void 0);let W=Eo(c.outerTypeParameters,Pb(i5(n),u,g,T));return sv(c,W)}return MS(n,a)?c:ut}function cC(n,a,c,u){let _=Xs(n);if(_===dn){let V=L3.get(n.escapedName);if(V!==void 0&&a&&a.length===1)return V===4?fge(a[0]):sx(n,a[0])}let g=qi(n),T=g.typeParameters,P=cm(a)+ax(c,u),W=g.instantiations.get(P);return W||g.instantiations.set(P,W=FOe(_,Np(T,Pb(a,T,wh(T),ir(n.valueDeclaration))),c,u)),W}function Dat(n,a){if(Tl(a)&1048576){let _=i5(n),g=ax(a,_),T=ke.get(g);return T||(T=sc(1,"error",void 0,`alias ${g}`),T.aliasSymbol=a,T.aliasTypeArguments=_,ke.set(g,T)),T}let c=Xs(a),u=qi(a).typeParameters;if(u){let _=Nn(n.typeArguments),g=wh(u);if(_u.length)return Ve(n,g===u.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,Si(a),g,u.length),ut;let T=lx(n),P=T&&(Fwe(a)||!Fwe(T))?T:void 0,W;if(P)W=fC(P);else if(gF(n)){let V=dC(n,2097152,!0);if(V&&V!==lt){let te=Wc(V);te&&te.flags&524288&&(P=te,W=i5(n)||(u?[]:void 0))}}return cC(a,i5(n),P,W)}return MS(n,a)?c:ut}function Fwe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(W2);return!!(c&&Wp(c))}function Cat(n){switch(n.kind){case 183:return n.typeName;case 233:let a=n.expression;if(Bl(a))return a}}function zwe(n){return n.parent?`${zwe(n.parent)}.${n.escapedName}`:n.escapedName}function SZ(n){let c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){let u=n.kind===166?SZ(n.left):n.kind===211?SZ(n.expression):void 0,_=u?`${zwe(u)}.${c}`:c,g=ae.get(_);return g||(ae.set(_,g=Ka(524288,c,1048576)),g.parent=u,g.links.declaredType=Ft),g}return lt}function dC(n,a,c){let u=Cat(n);if(!u)return lt;let _=Bs(u,a,c);return _&&_!==lt?_:c?lt:SZ(u)}function TZ(n,a){if(a===lt)return ut;if(a=IM(a)||a,a.flags&96)return Wwe(n,a);if(a.flags&524288)return Dat(n,a);let c=nwe(a);if(c)return MS(n,a)?gu(c):ut;if(a.flags&111551&&AZ(n)){let u=Nat(n,a);return u||(dC(n,788968),sr(a))}return ut}function Nat(n,a){let c=Qr(n);if(!c.resolvedJSDocType){let u=sr(a),_=u;if(a.valueDeclaration){let g=n.kind===205&&n.qualifier;u.symbol&&u.symbol!==a&&g&&(_=TZ(n,u.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function fge(n){return mge(n)?Bwe(n,un):n}function mge(n){return!!(n.flags&3145728&>(n.types,mge)||n.flags&33554432&&!wM(n)&&mge(n.baseType)||n.flags&524288&&!Fh(n)||n.flags&432275456&&!zA(n))}function wM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function _ge(n,a){return a.flags&3||a===n||n.flags&1?n:Bwe(n,a)}function Bwe(n,a){let c=`${hu(n)}>${hu(a)}`,u=Io.get(c);if(u)return u;let _=_g(33554432);return _.baseType=n,_.constraint=a,Io.set(c,_),_}function hge(n){return wM(n)?n.baseType:ga([n.constraint,n.baseType])}function Gwe(n){return n.kind===189&&n.elements.length===1}function Vwe(n,a,c){return Gwe(a)&&Gwe(c)?Vwe(n,a.elements[0],c.elements[0]):kb(Ti(a))===kb(n)?Ti(c):void 0}function Pat(n,a){let c,u=!0;for(;a&&!Hi(a)&&a.kind!==327;){let _=a.parent;if(_.kind===169&&(u=!u),(u||n.flags&8650752)&&_.kind===194&&a===_.trueType){let g=Vwe(n,_.checkType,_.extendsType);g&&(c=Tn(c,g))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){let g=Ti(_);if(s_(g)===kb(n)){let T=T8(g);if(T){let P=Cu(T);P&&ap(P,a0)&&(c=Tn(c,ei([It,ss])))}}}a=_}return c?_ge(n,ga(c)):n}function AZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function MS(n,a){return n.typeArguments?(Ve(n,f.Type_0_is_not_generic,a?Si(a):n.typeName?Ts(n.typeName):C3),!1):!0}function jwe(n){if(Fe(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return MS(n),Ne;case"Number":return MS(n),It;case"Boolean":return MS(n),gi;case"Void":return MS(n),er;case"Undefined":return MS(n),Me;case"Null":return MS(n),ue;case"Function":case"function":return MS(n),Lt;case"array":return(!a||!a.length)&&!fe?Zl:void 0;case"promise":return(!a||!a.length)&&!fe?X5(G):void 0;case"Object":if(a&&a.length===2){if(HF(n)){let c=Ti(a[0]),u=Ti(a[1]),_=c===Ne||c===It?[Oh(c,u,!1)]:Xe;return Ds(void 0,K,Xe,Xe,_)}return G}return MS(n),fe?void 0:G}}}function Mat(n){let a=Ti(n.type);return J?S5(a,65536):a}function gge(n){let a=Qr(n);if(!a.resolvedType){if(Ng(n)&&cT(n.parent))return a.resolvedSymbol=lt,a.resolvedType=tc(n.parent.expression);let c,u,_=788968;AZ(n)&&(u=jwe(n),u||(c=dC(n,_,!0),c===lt?c=dC(n,_|111551):dC(n,_),u=TZ(n,c))),u||(c=dC(n,_),u=TZ(n,c)),a.resolvedSymbol=c,a.resolvedType=u}return a.resolvedType}function i5(n){return mn(n.typeArguments,Ti)}function Uwe(n){let a=Qr(n);if(!a.resolvedType){let c=dFe(n);a.resolvedType=gu(Hp(c))}return a.resolvedType}function Hwe(n,a){function c(_){let g=_.declarations;if(g)for(let T of g)switch(T.kind){case 263:case 264:case 266:return T}}if(!n)return a?Lo:Ca;let u=Xs(n);return u.flags&524288?Nn(u.typeParameters)!==a?(Ve(c(n),f.Global_type_0_must_have_1_type_parameter_s,vl(n),a),a?Lo:Ca):u:(Ve(c(n),f.Global_type_0_must_be_a_class_or_interface_type,vl(n)),a?Lo:Ca)}function yge(n,a){return OM(n,111551,a?f.Cannot_find_global_value_0:void 0)}function vge(n,a){return OM(n,788968,a?f.Cannot_find_global_type_0:void 0)}function IZ(n,a,c){let u=OM(n,788968,c?f.Cannot_find_global_type_0:void 0);if(u&&(Xs(u),Nn(qi(u).typeParameters)!==a)){let _=u.declarations&&Vr(u.declarations,Tm);Ve(_,f.Global_type_0_must_have_1_type_parameter_s,vl(u),a);return}return u}function OM(n,a,c){return hl(void 0,n,a,c,n,!1,!1,!1)}function ec(n,a,c){let u=vge(n,c);return u||c?Hwe(u,a):void 0}function Lat(){return Ah||(Ah=ec("TypedPropertyDescriptor",1,!0)||Lo)}function kat(){return Zn||(Zn=ec("TemplateStringsArray",0,!0)||Ca)}function Kwe(){return ii||(ii=ec("ImportMeta",0,!0)||Ca)}function Jwe(){if(!Xr){let n=Ka(0,"ImportMetaExpression"),a=Kwe(),c=Ka(4,"meta",8);c.parent=n,c.links.type=a;let u=aa([c]);n.members=u,Xr=Ds(n,u,Xe,Xe,Xe)}return Xr}function qwe(n){return no||(no=ec("ImportCallOptions",0,n))||Ca}function bge(n){return La||(La=ec("ImportAttributes",0,n))||Ca}function Xwe(n){return xu||(xu=yge("Symbol",n))}function wat(n){return Pf||(Pf=vge("SymbolConstructor",n))}function Ywe(){return z_||(z_=ec("Symbol",0,!1))||Ca}function o5(n){return Hg||(Hg=ec("Promise",1,n))||Lo}function $we(n){return Fd||(Fd=ec("PromiseLike",1,n))||Lo}function Ege(n){return Kg||(Kg=yge("Promise",n))}function Oat(n){return Sp||(Sp=ec("PromiseConstructorLike",0,n))||Ca}function xZ(n){return O||(O=ec("AsyncIterable",1,n))||Lo}function Wat(n){return Ee||(Ee=ec("AsyncIterator",3,n))||Lo}function Fat(n){return nt||(nt=ec("AsyncIterableIterator",1,n))||Lo}function zat(n){return Gt||(Gt=ec("AsyncGenerator",3,n))||Lo}function Sge(n){return lg||(lg=ec("Iterable",1,n))||Lo}function Bat(n){return zu||(zu=ec("Iterator",3,n))||Lo}function Gat(n){return Q||(Q=ec("IterableIterator",1,n))||Lo}function Vat(n){return rt||(rt=ec("Generator",3,n))||Lo}function jat(n){return wt||(wt=ec("IteratorYieldResult",1,n))||Lo}function Uat(n){return zt||(zt=ec("IteratorReturnResult",1,n))||Lo}function Qwe(n){return ka||(ka=ec("Disposable",0,n))||Ca}function Hat(n){return wl||(wl=ec("AsyncDisposable",0,n))||Ca}function Zwe(n,a=0){let c=OM(n,788968,void 0);return c&&Hwe(c,a)}function Kat(){return pd||(pd=IZ("Extract",2,!0)||lt),pd===lt?void 0:pd}function Jat(){return Ic||(Ic=IZ("Omit",2,!0)||lt),Ic===lt?void 0:Ic}function Tge(n){return Tp||(Tp=IZ("Awaited",1,n)||(n?lt:void 0)),Tp===lt?void 0:Tp}function qat(){return Bu||(Bu=ec("BigInt",0,!1))||Ca}function Xat(n){return Dm??(Dm=ec("ClassDecoratorContext",1,n))??Lo}function Yat(n){return Cm??(Cm=ec("ClassMethodDecoratorContext",2,n))??Lo}function $at(n){return Ui??(Ui=ec("ClassGetterDecoratorContext",2,n))??Lo}function Qat(n){return Jg??(Jg=ec("ClassSetterDecoratorContext",2,n))??Lo}function Zat(n){return $y??($y=ec("ClassAccessorDecoratorContext",2,n))??Lo}function est(n){return Nm??(Nm=ec("ClassAccessorDecoratorTarget",2,n))??Lo}function tst(n){return pS??(pS=ec("ClassAccessorDecoratorResult",2,n))??Lo}function nst(n){return fS??(fS=ec("ClassFieldDecoratorContext",2,n))??Lo}function rst(){return ob||(ob=yge("NaN",!1))}function ist(){return ls||(ls=IZ("Record",2,!0)||lt),ls===lt?void 0:ls}function y8(n,a){return n!==Lo?sv(n,a):Ca}function eOe(n){return y8(Lat(),[n])}function tOe(n){return y8(Sge(!0),[n])}function Bd(n,a){return y8(a?Zo:Xo,[n])}function Age(n){switch(n.kind){case 190:return 2;case 191:return nOe(n);case 202:return n.questionToken?2:n.dotDotDotToken?nOe(n):1;default:return 1}}function nOe(n){return d5(n.type)?4:8}function ost(n){let a=lst(n.parent);if(d5(n))return a?Zo:Xo;let u=mn(n.elements,Age);return Ige(u,a,mn(n.elements,ast))}function ast(n){return DR(n)||Ao(n)?n:void 0}function rOe(n,a){return!!lx(n)||iOe(n)&&(n.kind===188?Mb(n.elementType):n.kind===189?gt(n.elements,Mb):a||gt(n.typeArguments,Mb))}function iOe(n){let a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return iOe(a);case 265:return!0}return!1}function Mb(n){switch(n.kind){case 183:return AZ(n)||!!(dC(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Mb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Mb(n.type);case 191:return n.type.kind!==188||Mb(n.type.elementType);case 192:case 193:return gt(n.types,Mb);case 199:return Mb(n.objectType)||Mb(n.indexType);case 194:return Mb(n.checkType)||Mb(n.extendsType)||Mb(n.trueType)||Mb(n.falseType)}return!1}function sst(n){let a=Qr(n);if(!a.resolvedType){let c=ost(n);if(c===Lo)a.resolvedType=Ca;else if(!(n.kind===189&>(n.elements,u=>!!(Age(u)&8)))&&rOe(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:pge(c,n,void 0);else{let u=n.kind===188?[Ti(n.elementType)]:mn(n.elements,Ti);a.resolvedType=xge(c,u)}}return a.resolvedType}function lst(n){return PT(n)&&n.operator===148}function Wh(n,a,c=!1,u=[]){let _=Ige(a||mn(n,g=>1),c,u);return _===Lo?Ca:n.length?xge(_,n):_}function Ige(n,a,c){if(n.length===1&&n[0]&4)return a?Zo:Xo;let u=mn(n,g=>g&1?"#":g&2?"?":g&4?".":"*").join()+(a?"R":"")+(gt(c,g=>!!g)?","+mn(c,g=>g?rs(g):"_").join(","):""),_=So.get(u);return _||So.set(u,_=cst(n,a,c)),_}function cst(n,a,c){let u=n.length,_=yv(n,ye=>!!(ye&9)),g,T=[],P=0;if(u){g=new Array(u);for(let ye=0;ye!!(n.elementFlags[rn]&8&&At.flags&1179648));if(mt>=0)return s5(mn(a,(At,rn)=>n.elementFlags[rn]&8?At:un))?ll(a[mt],At=>Rge(n,zG(a,mt,At))):ut}let T=[],P=[],W=[],V=-1,te=-1,ye=-1;for(let mt=0;mt=1e4)return Ve(D,qh(D)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),ut;gn(sn,(nr,Mn)=>{var an;return je(nr,At.target.elementFlags[Mn],(an=At.target.labeledElementDeclarations)==null?void 0:an[Mn])})}else je(uv(At)&&t0(At,It)||ut,4,(_=n.labeledElementDeclarations)==null?void 0:_[mt]);else je(At,rn,(g=n.labeledElementDeclarations)==null?void 0:g[mt])}for(let mt=0;mt=0&&teP[te+At]&8?Cp(mt,It):mt)),T.splice(te+1,ye-te),P.splice(te+1,ye-te),W.splice(te+1,ye-te));let _e=Ige(P,n.readonly,W);return _e===Lo?Ca:P.length?sv(_e,T):_e;function je(mt,At,rn){At&1&&(V=P.length),At&4&&te<0&&(te=P.length),At&6&&(ye=P.length),T.push(At&2?op(mt,!0):mt),P.push(At),W.push(rn)}}function WM(n,a,c=0){let u=n.target,_=lv(n)-c;return a>u.fixedLength?Xlt(n)||Wh(Xe):Wh(Vs(n).slice(a,_),u.elementFlags.slice(a,_),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,_))}function oOe(n){return ei(Tn($te(n.target.fixedLength,a=>Uu(""+a)),J_(n.target.readonly?Zo:Xo)))}function dst(n,a){let c=Kl(n.elementFlags,u=>!(u&a));return c>=0?c:n.elementFlags.length}function v8(n,a){return n.elementFlags.length-pW(n.elementFlags,c=>!(c&a))-1}function Dge(n){return n.fixedLength+v8(n,3)}function LS(n){let a=Vs(n),c=lv(n);return a.length===c?a:a.slice(0,c)}function ust(n){return op(Ti(n.type),!0)}function hu(n){return n.id}function dy(n,a){return by(n,a,hu,Zs)>=0}function a5(n,a){let c=by(n,a,hu,Zs);return c<0?(n.splice(~c,0,a),!0):!1}function pst(n,a,c){let u=c.flags;if(!(u&131072))if(a|=u&473694207,u&465829888&&(a|=33554432),u&2097152&&Lr(c)&67108864&&(a|=536870912),c===Tt&&(a|=8388608),!J&&u&98304)Lr(c)&65536||(a|=4194304);else{let _=n.length,g=_&&c.id>n[_-1].id?~_:by(n,c,hu,Zs);g<0&&n.splice(~g,0,c)}return a}function aOe(n,a,c){let u;for(let _ of c)_!==u&&(a=_.flags&1048576?aOe(n,a|(yst(_)?1048576:0),_.types):pst(n,a,_),u=_);return a}function fst(n,a){var c;if(n.length<2)return n;let u=cm(n),_=ua.get(u);if(_)return _;let g=a&>(n,V=>!!(V.flags&524288)&&!ju(V)&&Yge(l_(V))),T=n.length,P=T,W=0;for(;P>0;){P--;let V=n[P];if(g||V.flags&469499904){if(V.flags&262144&&cy(V).flags&1048576){q_(V,ei(mn(n,_e=>_e===V?Fr:_e)),Mf)&&Ev(n,P);continue}let te=V.flags&61603840?Vr(ms(V),_e=>u_(sr(_e))):void 0,ye=te&&gu(sr(te));for(let _e of n)if(V!==_e){if(W===1e5&&W/(T-P)*T>1e6){(c=rr)==null||c.instant(rr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(mt=>mt.id)}),Ve(D,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(W++,te&&_e.flags&61603840){let je=Ue(_e,te.escapedName);if(je&&u_(je)&&gu(je)!==ye)continue}if(q_(V,_e,Mf)&&(!(Lr(ov(V))&1)||!(Lr(ov(_e))&1)||o0(V,_e))){Ev(n,P);break}}}}return ua.set(u,n),n}function mst(n,a,c){let u=n.length;for(;u>0;){u--;let _=n[u],g=_.flags;(g&402653312&&a&4||g&256&&a&8||g&2048&&a&64||g&8192&&a&4096||c&&g&32768&&a&16384||wS(_)&&dy(n,_.regularType))&&Ev(n,u)}}function _st(n){let a=jr(n,zA);if(a.length){let c=n.length;for(;c>0;){c--;let u=n[c];u.flags&128&>(a,_=>hst(u,_))&&Ev(n,c)}}}function hst(n,a){return a.flags&134217728?ree(n,a):nee(n,a)}function gst(n){let a=[];for(let c of n)if(c.flags&2097152&&Lr(c)&67108864){let u=c.types[0].flags&8650752?0:1;yf(a,c.types[u])}for(let c of a){let u=[];for(let g of n)if(g.flags&2097152&&Lr(g)&67108864){let T=g.types[0].flags&8650752?0:1;g.types[T]===c&&a5(u,g.types[1-T])}let _=zd(c);if(ap(_,g=>dy(u,g))){let g=n.length;for(;g>0;){g--;let T=n[g];if(T.flags&2097152&&Lr(T)&67108864){let P=T.types[0].flags&8650752?0:1;T.types[P]===c&&dy(u,T.types[1-P])&&Ev(n,g)}}a5(n,c)}}}function yst(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function sOe(n,a){for(let c of a)if(c.flags&1048576){let u=c.origin;c.aliasSymbol||u&&!(u.flags&1048576)?yf(n,c):u&&u.flags&1048576&&sOe(n,u.types)}}function Cge(n,a){let c=Z1(n);return c.types=a,c}function ei(n,a=1,c,u,_){if(n.length===0)return Fr;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){let g=a===0?"N":a===2?"S":"L",T=n[0].id=2&&g[0]===Me&&g[1]===k&&Ev(g,1),(T&402664352||T&16384&&T&32768)&&mst(g,T,!!(a&2)),T&128&&T&402653184&&_st(g),T&536870912&&gst(g),a===2&&(g=fst(g,!!(T&524288)),!g))return ut;if(g.length===0)return T&65536?T&4194304?ue:We:T&32768?T&4194304?Me:Nt:Fr}if(!_&&T&1048576){let W=[];sOe(W,n);let V=[];for(let ye of g)gt(W,_e=>dy(_e.types,ye))||V.push(ye);if(!c&&W.length===1&&V.length===0)return W[0];if(tu(W,(ye,_e)=>ye+_e.types.length,0)+V.length===g.length){for(let ye of W)a5(V,ye);_=Cge(1048576,V)}}let P=(T&36323331?0:32768)|(T&2097152?16777216:0);return Pge(g,P,c,u,_)}function vst(n,a){let c,u=[];for(let g of n){let T=Ff(g);if(T){if(T.kind!==0&&T.kind!==1||c&&!Nge(c,T))return;c=T,u.push(T.type)}else{let P=a!==2097152?ds(g):void 0;if(P!==Ut&&P!==En)return}}if(!c)return;let _=Pwe(u,a);return r5(c.kind,c.parameterName,c.parameterIndex,_)}function Nge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Pge(n,a,c,u,_){if(n.length===0)return Fr;if(n.length===1)return n[0];let T=(_?_.flags&1048576?`|${cm(_.types)}`:_.flags&2097152?`&${cm(_.types)}`:`#${_.type.id}|${cm(n)}`:cm(n))+ax(c,u),P=Qn.get(T);return P||(P=_g(1048576),P.objectFlags=a|EZ(n,98304),P.types=n,P.origin=_,P.aliasSymbol=c,P.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(P.flags|=16,P.intrinsicName="boolean"),Qn.set(T,P)),P}function bst(n){let a=Qr(n);if(!a.resolvedType){let c=lx(n);a.resolvedType=ei(mn(n.types,Ti),1,c,fC(c))}return a.resolvedType}function Est(n,a,c){let u=c.flags;return u&2097152?cOe(n,a,c.types):(Fh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(u&3?c===Tt&&(a|=8388608):(J||!(u&98304))&&(c===k&&(a|=262144,c=Me),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=u&473694207),a)}function cOe(n,a,c){for(let u of c)a=Est(n,a,gu(u));return a}function Sst(n,a){let c=n.length;for(;c>0;){c--;let u=n[c];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||Fh(u)&&a&470302716)&&Ev(n,c)}}function Tst(n,a){for(let c of n)if(!dy(c.types,a)){let u=a.flags&128?Ne:a.flags&288?It:a.flags&2048?Dt:a.flags&8192?xi:void 0;if(!u||!dy(c.types,u))return!1}return!0}function Ast(n){let a=n.length,c=jr(n,u=>!!(u.flags&128));for(;a>0;){a--;let u=n[a];if(u.flags&402653184){for(let _ of c)if(Ob(_,u)){Ev(n,a);break}else if(zA(u))return!0}}return!1}function dOe(n,a){for(let c=0;c!(u.flags&a))}function Ist(n){let a,c=Kl(n,T=>!!(Lr(T)&32768));if(c<0)return!1;let u=c+1;for(;u!!(mt.flags&469893116)||Fh(mt))){if(f5(je,_e))return ye;if(!(je.flags&1048576&&Fm(je,mt=>f5(mt,_e)))&&!f5(_e,je))return Fr;P=67108864}}}let W=cm(T)+ax(a,c),V=Er.get(W);if(!V){if(g&1048576)if(Ist(T))V=ga(T,a,c);else if(oo(T,te=>!!(te.flags&1048576&&te.types[0].flags&32768))){let te=gt(T,N8)?k:Me;dOe(T,32768),V=ei([ga(T),te],1,a,c)}else if(oo(T,te=>!!(te.flags&1048576&&(te.types[0].flags&65536||te.types[1].flags&65536))))dOe(T,65536),V=ei([ga(T),ue],1,a,c);else if(T.length>=4){let te=Math.floor(T.length/2);V=ga([ga(T.slice(0,te)),ga(T.slice(te))],a,c)}else{if(!s5(T))return ut;let te=Rst(T),ye=gt(te,_e=>!!(_e.flags&2097152))&&Mge(te)>Mge(T)?Cge(2097152,T):void 0;V=ei(te,1,a,c,ye)}else V=xst(T,P,a,c);Er.set(W,V)}return V}function uOe(n){return tu(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function s5(n){var a;let c=uOe(n);return c>=1e5?((a=rr)==null||a.instant(rr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(u=>u.id),size:c}),Ve(D,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Rst(n){let a=uOe(n),c=[];for(let u=0;u=0;P--)if(n[P].flags&1048576){let W=n[P].types,V=W.length;_[P]=W[g%V],g=Math.floor(g/V)}let T=ga(_);T.flags&131072||c.push(T)}return c}function pOe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?pOe(n.origin):Mge(n.types)}function Mge(n){return tu(n,(a,c)=>a+pOe(c),0)}function Dst(n){let a=Qr(n);if(!a.resolvedType){let c=lx(n),u=mn(n.types,Ti),_=u.length===2?u.indexOf(ac):-1,g=_>=0?u[1-_]:un,T=!!(g.flags&76||g.flags&134217728&&zA(g));a.resolvedType=ga(u,c,fC(c),T)}return a.resolvedType}function fOe(n,a){let c=_g(4194304);return c.type=n,c.indexFlags=a,c}function Cst(n){let a=Z1(4194304);return a.type=n,a}function mOe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=fOe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=fOe(n,0))}function _Oe(n,a){let c=s_(n),u=hf(n),_=av(n.target||n);if(!_&&!(a&2))return u;let g=[];if(GA(u)){if(aC(n))return mOe(n,a);qA(u,P)}else if(aC(n)){let W=Nu(LA(n));Jhe(W,8576,!!(a&1),P)}else qA(QB(u),P);let T=a&2?cc(ei(g),W=>!(W.flags&5)):ei(g);if(T.flags&1048576&&u.flags&1048576&&cm(T.types)===cm(u.types))return u;return T;function P(W){let V=_?io(_,S8(n.mapper,c,W)):W;g.push(V===Ne?xo:V)}}function Nst(n){let a=s_(n);return c(av(n)||a);function c(u){return u.flags&470810623?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?oo(u.types,c):u.flags&8388608?c(u.objectType)&&c(u.indexType):u.flags&33554432?c(u.baseType)&&c(u.constraint):u.flags&268435456?c(u.type):!1}}function cv(n){if(Ki(n))return Fr;if(mp(n))return gu(po(n));if(Ya(n))return gu(bg(n));let a=bT(n);return a!==void 0?Uu(Vi(a)):ht(n)?gu(po(n)):Fr}function uC(n,a,c){if(c||!(Tf(n)&6)){let u=qi(fZ(n)).nameType;if(!u){let _=Po(n.valueDeclaration);u=n.escapedName==="default"?Uu("default"):_&&cv(_)||(J2(n)?void 0:Uu(vl(n)))}if(u&&u.flags&a)return u}return Fr}function hOe(n,a){return!!(n.flags&a||n.flags&2097152&>(n.types,c=>hOe(c,a)))}function Pst(n,a,c){let u=c&&(Lr(n)&7||n.aliasSymbol)?Cst(n):void 0,_=mn(ms(n),T=>uC(T,a)),g=mn(_u(n),T=>T!==zr&&hOe(T.keyType,a)?T.keyType===Ne&&a&8?xo:T.keyType:Fr);return ei(Eo(_,g),1,void 0,void 0,u)}function Lge(n,a=0){return!!(n.flags&58982400||Fb(n)||ju(n)&&(!Nst(n)||_Z(n)===2)||n.flags&1048576&&!(a&4)&&ege(n)||n.flags&2097152&&Rl(n,465829888)&>(n.types,Fh))}function J_(n,a=Ge){return n=c_(n),wM(n)?fge(J_(n.baseType,a)):Lge(n,a)?mOe(n,a):n.flags&1048576?ga(mn(n.types,c=>J_(c,a))):n.flags&2097152?ei(mn(n.types,c=>J_(c,a))):Lr(n)&32?_Oe(n,a):n===Tt?Tt:n.flags&2?Fr:n.flags&131073?Ls:Pst(n,(a&2?128:402653316)|(a&1?0:12584),a===Ge)}function gOe(n){if(Ce)return n;let a=Kat();return a?cC(a,[n,Ne]):Ne}function Mst(n){let a=gOe(J_(n));return a.flags&131072?Ne:a}function Lst(n){let a=Qr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=J_(Ti(n.type));break;case 158:a.resolvedType=n.type.kind===155?Gge(G2(n.parent)):ut;break;case 148:a.resolvedType=Ti(n.type);break;default:x.assertNever(n.operator)}return a.resolvedType}function kst(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=FA([n.head.text,...mn(n.templateSpans,c=>c.literal.text)],mn(n.templateSpans,c=>Ti(c.type)))),a.resolvedType}function FA(n,a){let c=Kl(a,V=>!!(V.flags&1179648));if(c>=0)return s5(a)?ll(a[c],V=>FA(n,zG(a,c,V))):ut;if(Bo(a,Tt))return Tt;let u=[],_=[],g=n[0];if(!W(n,a))return Ne;if(u.length===0)return Uu(g);if(_.push(g),oo(_,V=>V==="")){if(oo(u,V=>!!(V.flags&4)))return Ne;if(u.length===1&&zA(u[0]))return u[0]}let T=`${cm(u)}|${mn(_,V=>V.length).join(",")}|${_.join("")}`,P=yi.get(T);return P||yi.set(T,P=Ost(_,u)),P;function W(V,te){for(let ye=0;yesx(n,c)):a.flags&128?Uu(yOe(n,a.value)):a.flags&134217728?FA(...Wst(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||GA(a)?vOe(n,a):l5(a)?vOe(n,FA(["",""],[a])):a}function yOe(n,a){switch(L3.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Wst(n,a,c){switch(L3.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),c.map(u=>sx(n,u))];case 1:return[a.map(u=>u.toLowerCase()),c.map(u=>sx(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[sx(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[sx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function vOe(n,a){let c=`${ba(n)},${hu(a)}`,u=$i.get(c);return u||$i.set(c,u=Fst(n,a)),u}function Fst(n,a){let c=hg(268435456,n);return c.type=a,c}function zst(n,a,c,u,_){let g=_g(8388608);return g.objectType=n,g.indexType=a,g.accessFlags=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function b8(n){if(fe)return!1;if(Lr(n)&4096)return!0;if(n.flags&1048576)return oo(n.types,b8);if(n.flags&2097152)return gt(n.types,b8);if(n.flags&465829888){let a=$he(n);return a!==n&&b8(a)}return!1}function RZ(n,a){return Qf(n)?Zf(n):a&&rc(a)?bT(a):void 0}function kge(n,a){if(a.flags&8208){let c=Fn(n.parent,u=>!Ns(u))||n.parent;return E0(c)?v_(c)&&Fe(n)&&D8e(c,n):oo(a.declarations,u=>!$o(u)||ev(u))}return!0}function bOe(n,a,c,u,_,g){let T=_&&_.kind===212?_:void 0,P=_&&Ki(_)?void 0:RZ(c,_);if(P!==void 0){if(g&256)return d0(a,P)||G;let V=ha(a,P);if(V){if(g&64&&_&&V.declarations&&cb(V)&&kge(_,V)){let ye=T?.argumentExpression??(MT(_)?_.indexType:_);tv(ye,V.declarations,P)}if(T){if(B5(V,T,FWe(T.expression,a.symbol)),RFe(T,V,DI(T))){Ve(T.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(V));return}if(g&8&&(Qr(_).resolvedSymbol=V),PWe(T,V))return et}let te=g&4?NS(V):sr(V);return T&&DI(T)!==1?Gb(T,te):_&&MT(_)&&N8(te)?ei([te,Me]):te}if(ap(a,wa)&&ng(P)){let te=+P;if(_&&ap(a,ye=>!ye.target.hasRestElement)&&!(g&16)){let ye=wge(_);if(wa(a)){if(te<0)return Ve(ye,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),Me;Ve(ye,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,Vn(a),lv(a),Vi(P))}else Ve(ye,f.Property_0_does_not_exist_on_type_1,Vi(P),Vn(a))}if(te>=0)return W(vg(a,It)),l8e(a,te,g&1?k:void 0)}}if(!(c.flags&98304)&&Id(c,402665900)){if(a.flags&131073)return a;let V=m8(a,c)||vg(a,Ne);if(V){if(g&2&&V.keyType!==It){T&&(g&4?Ve(T,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,Vn(n)):Ve(T,f.Type_0_cannot_be_used_to_index_type_1,Vn(c),Vn(n)));return}if(_&&V.keyType===Ne&&!Id(c,12)){let te=wge(_);return Ve(te,f.Type_0_cannot_be_used_as_an_index_type,Vn(c)),g&1?ei([V.type,k]):V.type}return W(V),g&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Ru(c.symbol)===a.symbol)?ei([V.type,k]):V.type}if(c.flags&131072)return Fr;if(b8(a))return G;if(T&&!kee(a)){if(c0(a)){if(fe&&c.flags&384)return Qa.add(Pr(T,f.Property_0_does_not_exist_on_type_1,c.value,Vn(a))),Me;if(c.flags&12){let te=mn(a.properties,ye=>sr(ye));return ei(Tn(te,Me))}}if(a.symbol===tt&&P!==void 0&&tt.exports.has(P)&&tt.exports.get(P).flags&418)Ve(T,f.Property_0_does_not_exist_on_type_1,Vi(P),Vn(a));else if(fe&&!B.suppressImplicitAnyIndexErrors&&!(g&128))if(P!==void 0&&wWe(P,a)){let te=Vn(a);Ve(T,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,P,te,te+"["+uc(T.argumentExpression)+"]")}else if(t0(a,It))Ve(T.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let te;if(P!==void 0&&(te=ove(P,a)))te!==void 0&&Ve(T.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,P,Vn(a),te);else{let ye=Wut(a,T,c);if(ye!==void 0)Ve(T,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Vn(a),ye);else{let _e;if(c.flags&1024)_e=zo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Vn(c)+"]",Vn(a));else if(c.flags&8192){let je=Vp(c.symbol,T);_e=zo(void 0,f.Property_0_does_not_exist_on_type_1,"["+je+"]",Vn(a))}else c.flags&128||c.flags&256?_e=zo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Vn(a)):c.flags&12&&(_e=zo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Vn(c),Vn(a)));_e=zo(_e,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Vn(u),Vn(a)),Qa.add(Mg(Gn(T),T,_e))}}}return}}if(b8(a))return G;if(_){let V=wge(_);c.flags&384?Ve(V,f.Property_0_does_not_exist_on_type_1,""+c.value,Vn(a)):c.flags&12?Ve(V,f.Type_0_has_no_matching_index_signature_for_type_1,Vn(a),Vn(c)):Ve(V,f.Type_0_cannot_be_used_as_an_index_type,Vn(c))}if(xt(c))return c;return;function W(V){V&&V.isReadonly&&T&&($h(T)||Ej(T))&&Ve(T,f.Index_signature_in_type_0_only_permits_reading,Vn(a))}}function wge(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function l5(n){if(n.flags&2097152){let a=!1;for(let c of n.types)if(c.flags&101248||l5(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||zA(n)}function zA(n){return!!(n.flags&134217728)&&oo(n.types,l5)||!!(n.flags&268435456)&&l5(n.type)}function EOe(n){return!!(n.flags&402653184)&&!zA(n)}function pC(n){return!!E8(n)}function BA(n){return!!(E8(n)&4194304)}function GA(n){return!!(E8(n)&8388608)}function E8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|tu(n.types,(a,c)=>a|E8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|E8(n.baseType)|E8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||ju(n)||Fb(n)?4194304:0)|(n.flags&63176704||EOe(n)?8388608:0)}function uy(n,a){return n.flags&8388608?Gst(n,a):n.flags&16777216?Vst(n,a):n}function SOe(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Lge(n)){let u=mn(n.types,_=>uy(Cp(_,a),c));return n.flags&2097152||c?ga(u):ei(u)}}function Bst(n,a,c){if(a.flags&1048576){let u=mn(a.types,_=>uy(Cp(n,_),c));return c?ga(u):ei(u)}}function Gst(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===nd?n:n[c];n[c]=nd;let u=uy(n.objectType,a),_=uy(n.indexType,a),g=Bst(u,_,a);if(g)return n[c]=g;if(!(_.flags&465829888)){let T=SOe(u,_,a);if(T)return n[c]=T}if(Fb(u)&&_.flags&296){let T=VM(u,_.flags&8?0:u.target.fixedLength,0,a);if(T)return n[c]=T}return ju(u)&&_Z(u)!==2?n[c]=ll(DZ(u,n.indexType),T=>uy(T,a)):n[c]=n}function Vst(n,a){let c=n.checkType,u=n.extendsType,_=r0(n),g=i0(n);if(g.flags&131072&&kb(_)===kb(c)){if(c.flags&1||ya(jA(c),jA(u)))return uy(_,a);if(TOe(c,u))return Fr}else if(_.flags&131072&&kb(g)===kb(c)){if(!(c.flags&1)&&ya(jA(c),jA(u)))return Fr;if(c.flags&1||TOe(c,u))return uy(g,a)}return n}function TOe(n,a){return!!(ei([$B(n,a),Fr]).flags&131072)}function DZ(n,a){let c=Np([s_(n)],[a]),u=WS(n.mapper,c);return io(ly(n.target||n),u)}function Cp(n,a,c=0,u,_,g){return Lb(n,a,c,u,_,g)||(u?ut:un)}function AOe(n,a){return ap(n,c=>{if(c.flags&384){let u=Zf(c);if(ng(u)){let _=+u;return _>=0&&_0&&!gt(n.elements,a=>O4(a)||W4(a)||DR(a)&&!!(a.questionToken||a.dotDotDotToken))}function ROe(n,a){return pC(n)||a&&wa(n)&>(LS(n),pC)}function Wge(n,a,c,u,_){let g,T,P=0;for(;;){if(P===1e3)return Ve(D,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),ut;let V=io(kb(n.checkType),a),te=io(n.extendsType,a);if(V===ut||te===ut)return ut;if(V===Tt||te===Tt)return Tt;let ye=V2(n.node.checkType),_e=V2(n.node.extendsType),je=xOe(ye)&&xOe(_e)&&Nn(ye.elements)===Nn(_e.elements),mt=ROe(V,je),At;if(n.inferTypeParameters){let sn=M8(n.inferTypeParameters,void 0,0);a&&(sn.nonFixingMapper=WS(sn.nonFixingMapper,a)),mt||hy(sn.inferences,V,te,1536),At=a?WS(sn.mapper,a):sn.mapper}let rn=At?io(n.extendsType,At):te;if(!mt&&!ROe(rn,je)){if(!(rn.flags&3)&&(V.flags&1||!ya(A8(V),A8(rn)))){(V.flags&1||c&&!(rn.flags&131072)&&Fm(A8(rn),nr=>ya(nr,A8(V))))&&(T||(T=[])).push(io(Ti(n.node.trueType),At||a));let sn=Ti(n.node.falseType);if(sn.flags&16777216){let nr=sn.root;if(nr.node.parent===n.node&&(!nr.isDistributive||nr.checkType===n.checkType)){n=nr;continue}if(W(sn,a))continue}g=io(sn,a);break}if(rn.flags&3||ya(jA(V),jA(rn))){let sn=Ti(n.node.trueType),nr=At||a;if(W(sn,nr))continue;g=io(sn,nr);break}}g=_g(16777216),g.root=n,g.checkType=io(n.checkType,a),g.extendsType=io(n.extendsType,a),g.mapper=a,g.combinedMapper=At,g.aliasSymbol=u||n.aliasSymbol,g.aliasTypeArguments=u?_:dv(n.aliasTypeArguments,a);break}return T?ei(Tn(T,g)):g;function W(V,te){if(V.flags&16777216&&te){let ye=V.root;if(ye.outerTypeParameters){let _e=WS(V.mapper,te),je=mn(ye.outerTypeParameters,rn=>wb(rn,_e)),mt=Np(ye.outerTypeParameters,je),At=ye.isDistributive?wb(ye.checkType,mt):void 0;if(!At||At===ye.checkType||!(At.flags&1179648))return n=ye,a=mt,u=void 0,_=void 0,ye.aliasSymbol&&P++,!0}}return!1}}function r0(n){return n.resolvedTrueType||(n.resolvedTrueType=io(Ti(n.root.node.trueType),n.mapper))}function i0(n){return n.resolvedFalseType||(n.resolvedFalseType=io(Ti(n.root.node.falseType),n.mapper))}function jst(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?io(Ti(n.root.node.trueType),n.combinedMapper):r0(n))}function DOe(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Tn(a,Xs(c)))}),a}function Ust(n){return n.isDistributive&&(p5(n.checkType,n.node.trueType)||p5(n.checkType,n.node.falseType))}function Hst(n){let a=Qr(n);if(!a.resolvedType){let c=Ti(n.checkType),u=lx(n),_=fC(u),g=Rn(n,!0),T=_?g:jr(g,W=>p5(W,n)),P={node:n,checkType:c,extendsType:Ti(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:DOe(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:_};a.resolvedType=Wge(P,void 0,!1),T&&(P.instantiations=new Map,P.instantiations.set(cm(T),a.resolvedType))}return a.resolvedType}function Kst(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=MA(Sr(n.typeParameter))),a.resolvedType}function COe(n){return Fe(n)?[n]:Tn(COe(n.left),n.right)}function Jst(n){var a;let c=Qr(n);if(!c.resolvedType){if(!wv(n))return Ve(n.argument,f.String_literal_expected),c.resolvedSymbol=lt,c.resolvedType=ut;let u=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=mu(n,n.argument.literal);if(!_)return c.resolvedSymbol=lt,c.resolvedType=ut;let g=!!((a=_.exports)!=null&&a.get("export=")),T=Ip(_,!1);if(Fl(n.qualifier))if(T.flags&u)c.resolvedType=NOe(n,c,T,u);else{let P=u===111551?f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Ve(n,P,n.argument.literal.text),c.resolvedSymbol=lt,c.resolvedType=ut}else{let P=COe(n.qualifier),W=T,V;for(;V=P.shift();){let te=P.length?1920:u,ye=es(Vl(W)),_e=n.isTypeOf||ir(n)&&g?ha(sr(ye),V.escapedText,!1,!0):void 0,mt=(n.isTypeOf?void 0:Vu(xp(ye),V.escapedText,te))??_e;if(!mt)return Ve(V,f.Namespace_0_has_no_exported_member_1,Vp(W),Ts(V)),c.resolvedType=ut;Qr(V).resolvedSymbol=mt,Qr(V.parent).resolvedSymbol=mt,W=mt}c.resolvedType=NOe(n,c,W,u)}}return c.resolvedType}function NOe(n,a,c,u){let _=Vl(c);return a.resolvedSymbol=_,u===111551?uFe(sr(c),n):TZ(n,_)}function POe(n){let a=Qr(n);if(!a.resolvedType){let c=lx(n);if(Cb(n.symbol).size===0&&!c)a.resolvedType=ac;else{let u=kf(16,n.symbol);u.aliasSymbol=c,u.aliasTypeArguments=fC(c),FT(n)&&n.isArrayType&&(u=Bd(u)),a.resolvedType=u}}return a.resolvedType}function lx(n){let a=n.parent;for(;NT(a)||$0(a)||PT(a)&&a.operator===148;)a=a.parent;return W2(a)?Sr(a):void 0}function fC(n){return n?Nr(n):void 0}function CZ(n){return!!(n.flags&524288)&&!ju(n)}function Fge(n){return fy(n)||!!(n.flags&474058748)}function zge(n,a){if(!(n.flags&1048576))return n;if(oo(n.types,Fge))return Vr(n.types,fy)||Ca;let c=Vr(n.types,g=>!Fge(g));if(!c||Vr(n.types,g=>g!==c&&!Fge(g)))return n;return _(c);function _(g){let T=aa();for(let W of ms(g))if(!(Tf(W)&6)){if(NZ(W)){let V=W.flags&65536&&!(W.flags&32768),ye=Ka(16777220,W.escapedName,Khe(W)|(a?8:0));ye.links.type=V?Me:op(sr(W),!0),ye.declarations=W.declarations,ye.links.nameType=qi(W).nameType,ye.links.syntheticOrigin=W,T.set(W.escapedName,ye)}}let P=Ds(g.symbol,T,Xe,Xe,_u(g));return P.objectFlags|=131200,P}}function kS(n,a,c,u,_){if(n.flags&1||a.flags&1)return G;if(n.flags&2||a.flags&2)return un;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=zge(n,_),n.flags&1048576)return s5([n,a])?ll(n,V=>kS(V,a,c,u,_)):ut;if(a=zge(a,_),a.flags&1048576)return s5([n,a])?ll(a,V=>kS(n,V,c,u,_)):ut;if(a.flags&473960444)return n;if(BA(n)||BA(a)){if(fy(n))return a;if(n.flags&2097152){let V=n.types,te=V[V.length-1];if(CZ(te)&&CZ(a))return ga(Eo(V.slice(0,V.length-1),[kS(te,a,c,u,_)]))}return ga([n,a])}let g=aa(),T=new Set,P=n===Ca?_u(a):pwe([n,a]);for(let V of ms(a))Tf(V)&6?T.add(V.escapedName):NZ(V)&&g.set(V.escapedName,Bge(V,_));for(let V of ms(n))if(!(T.has(V.escapedName)||!NZ(V)))if(g.has(V.escapedName)){let te=g.get(V.escapedName),ye=sr(te);if(te.flags&16777216){let _e=Eo(V.declarations,te.declarations),je=4|V.flags&16777216,mt=Ka(je,V.escapedName),At=sr(V),rn=YZ(At),sn=YZ(ye);mt.links.type=rn===sn?At:ei([At,sn],2),mt.links.leftSpread=V,mt.links.rightSpread=te,mt.declarations=_e,mt.links.nameType=qi(V).nameType,g.set(V.escapedName,mt)}}else g.set(V.escapedName,Bge(V,_));let W=Ds(c,g,Xe,Xe,Pc(P,V=>qst(V,_)));return W.objectFlags|=2228352|u,W}function NZ(n){var a;return!gt(n.declarations,ou)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>ci(c.parent))))}function Bge(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===f_(n))return n;let u=4|n.flags&16777216,_=Ka(u,n.escapedName,Khe(n)|(a?8:0));return _.links.type=c?Me:sr(n),_.declarations=n.declarations,_.links.nameType=qi(n).nameType,_.links.syntheticOrigin=n,_}function qst(n,a){return n.isReadonly!==a?Oh(n.keyType,n.type,a,n.declaration):n}function c5(n,a,c,u){let _=hg(n,c);return _.value=a,_.regularType=u||_,_}function cx(n){if(n.flags&2976){if(!n.freshType){let a=c5(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function gu(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=ll(n,gu)):n}function wS(n){return!!(n.flags&2976)&&n.freshType===n}function Uu(n){let a;return on.get(n)||(on.set(n,a=c5(128,n)),a)}function d_(n){let a;return Ye.get(n)||(Ye.set(n,a=c5(256,n)),a)}function PZ(n){let a,c=W0(n);return Ot.get(c)||(Ot.set(c,a=c5(2048,n)),a)}function Xst(n,a,c){let u,_=`${a}${typeof n=="string"?"@":"#"}${n}`,g=1024|(typeof n=="string"?128:256);return In.get(_)||(In.set(_,u=c5(g,n,c)),u)}function Yst(n){if(n.literal.kind===106)return ue;let a=Qr(n);return a.resolvedType||(a.resolvedType=gu(po(n.literal))),a.resolvedType}function $st(n){let a=hg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${ba(a.symbol)}`,a}function Gge(n){if(ir(n)&&$0(n)){let a=vT(n);a&&(n=RI(a)||a)}if(eie(n)){let a=LF(n)?pf(n.left):pf(n);if(a){let c=qi(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=$st(a))}}return xi}function Qst(n){let a=Lu(n,!1,!1),c=a&&a.parent;if(c&&(ci(c)||c.kind===264)&&!ra(a)&&(!Pl(a)||C0(n,a.body)))return Wf(Sr(c)).thisType;if(c&&Ma(c)&&dr(c.parent)&&zl(c.parent)===6)return Wf(pf(c.parent.left).parent).thisType;let u=n.flags&16777216?lE(n):void 0;return u&&Ps(u)&&dr(u.parent)&&zl(u.parent)===3?Wf(pf(u.parent.left).parent).thisType:$_(a)&&C0(n,a.body)?Wf(Sr(a)).thisType:(Ve(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ut)}function MZ(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=Qst(n)),a.resolvedType}function MOe(n){return Ti(d5(n.type)||n.type)}function d5(n){switch(n.kind){case 196:return d5(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return d5(n.type);break;case 188:return n.elementType}}function Zst(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?MOe(n):op(Ti(n.type),!0,!!n.questionToken))}function Ti(n){return Pat(LOe(n),n)}function LOe(n){switch(n.kind){case 133:case 319:case 320:return G;case 159:return un;case 154:return Ne;case 150:return It;case 163:return Dt;case 136:return gi;case 155:return xi;case 116:return er;case 157:return Me;case 106:return ue;case 146:return Fr;case 151:return n.flags&524288&&!fe?G:Kr;case 141:return dn;case 197:case 110:return MZ(n);case 201:return Yst(n);case 183:return gge(n);case 182:return n.assertsModifier?er:gi;case 233:return gge(n);case 186:return Uwe(n);case 188:case 189:return sst(n);case 190:return ust(n);case 192:return bst(n);case 193:return Dst(n);case 321:return Mat(n);case 323:return op(Ti(n.type));case 202:return Zst(n);case 196:case 322:case 316:return Ti(n.type);case 191:return MOe(n);case 325:return tht(n);case 184:case 185:case 187:case 329:case 324:case 330:return POe(n);case 198:return Lst(n);case 199:return IOe(n);case 200:return Oge(n);case 194:return Hst(n);case 195:return Kst(n);case 203:return kst(n);case 205:return Jst(n);case 80:case 166:case 211:let a=zm(n);return a?Xs(a):ut;default:return ut}}function LZ(n,a,c){if(n&&n.length)for(let u=0;uu.typeParameter),mn(c,()=>un))}function WS(n,a){return n?wZ(4,n,a):a}function nlt(n,a){return n?wZ(5,n,a):a}function VA(n,a,c){return c?wZ(5,OS(n,a),c):OS(n,a)}function S8(n,a,c){return n?wZ(5,n,OS(a,c)):OS(a,c)}function rlt(n){return!n.constraint&&!uge(n)||n.constraint===Fs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=mf(n.symbol),n.restrictiveInstantiation.constraint=Fs,n.restrictiveInstantiation)}function jge(n){let a=mf(n.symbol);return a.target=n,a}function ilt(n,a){return r5(n.kind,n.parameterName,n.parameterIndex,io(n.type,a))}function mC(n,a,c){let u;if(n.typeParameters&&!c){u=mn(n.typeParameters,jge),a=WS(Np(n.typeParameters,u),a);for(let g of u)g.mapper=a}let _=yg(n.declaration,u,n.thisParameter&&Uge(n.thisParameter,a),LZ(n.parameters,a,Uge),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function Uge(n,a){let c=qi(n);if(c.type&&!l0(c.type)&&(!(n.flags&65536)||c.writeType&&!l0(c.writeType)))return n;Tl(n)&1&&(n=c.target,a=WS(c.mapper,a));let u=Ka(n.flags,n.escapedName,1|Tl(n)&53256);return u.declarations=n.declarations,u.parent=n.parent,u.links.target=n,u.links.mapper=a,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),c.nameType&&(u.links.nameType=c.nameType),u}function olt(n,a,c,u){let _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],g=Qr(_),T=n.objectFlags&4?g.resolvedType:n.objectFlags&64?n.target:n,P=g.outerTypeParameters;if(!P){let W=Rn(_,!0);if($_(_)){let te=Cwe(_);W=Hr(W,te)}P=W||Xe;let V=n.objectFlags&8388612?[_]:n.symbol.declarations;P=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?jr(P,te=>gt(V,ye=>p5(te,ye))):P,g.outerTypeParameters=P}if(P.length){let W=WS(n.mapper,a),V=mn(P,mt=>wb(mt,W)),te=c||n.aliasSymbol,ye=c?u:dv(n.aliasTypeArguments,a),_e=cm(V)+ax(te,ye);T.instantiations||(T.instantiations=new Map,T.instantiations.set(cm(P)+ax(T.aliasSymbol,T.aliasTypeArguments),T));let je=T.instantiations.get(_e);if(!je){let mt=Np(P,V);je=T.objectFlags&4?pge(n.target,n.node,mt,te,ye):T.objectFlags&32?slt(T,mt,te,ye):Hge(T,mt,te,ye),T.instantiations.set(_e,je);let At=Lr(je);if(je.flags&3899393&&!(At&524288)){let rn=gt(V,l0);Lr(je)&524288||(At&52?je.objectFlags|=524288|(rn?1048576:0):je.objectFlags|=rn?0:524288)}}return je}return n}function alt(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 p5(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){let u=n.symbol.declarations[0].parent;for(let _=a;_!==u;_=_.parent)if(!_||_.kind===241||_.kind===194&&Go(_.extendsType,c))return!0;return c(a)}return!0;function c(u){switch(u.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&qh(u)&&alt(u)&&LOe(u)===n;case 186:let _=u.exprName,g=Fp(_);if(!k0(g)){let T=Wm(g),P=n.symbol.declarations[0],W=P.kind===168?P.parent:n.isThisType?P:void 0;if(T.declarations&&W)return gt(T.declarations,V=>C0(V,W))||gt(u.typeArguments,c)}return!0;case 174:case 173:return!u.type&&!!u.body||gt(u.typeParameters,c)||gt(u.parameters,c)||!!u.type&&c(u.type)}return!!Go(u,c)}}function T8(n){let a=hf(n);if(a.flags&4194304){let c=kb(a.type);if(c.flags&262144)return c}}function slt(n,a,c,u){let _=T8(n);if(_){let T=io(_,a);if(_!==T)return F8e(c_(T),g,c,u)}return io(hf(n),a)===Tt?Tt:Hge(n,a,c,u);function g(T){if(T.flags&61603843&&T!==Tt&&!Vt(T)){if(!n.declaration.nameType){let P;if(Gf(T)||T.flags&1&&nx(_,4)<0&&(P=Cu(_))&&ap(P,a0))return clt(T,n,VA(_,T,a));if(wa(T))return llt(T,n,_,a);if(Twe(T))return ga(mn(T.types,g))}return Hge(n,VA(_,T,a))}return T}}function OOe(n,a){return a&1?!0:a&2?!1:n}function llt(n,a,c,u){let _=n.target.elementFlags,g=n.target.fixedLength,T=g?VA(c,n,u):u,P=mn(LS(n),(ye,_e)=>{let je=_[_e];return _eye&1?2:ye):W&8?mn(_,ye=>ye&2?1:ye):_,te=OOe(n.target.readonly,kh(a));return Bo(P,ut)?ut:Wh(P,V,te,n.target.labeledElementDeclarations)}function clt(n,a,c){let u=WOe(a,It,!0,c);return Vt(u)?ut:Bd(u,OOe(BM(n),kh(a)))}function WOe(n,a,c,u){let _=S8(u,s_(n),a),g=io(ly(n.target||n),_),T=kh(n);return J&&T&4&&!Rl(g,49152)?zb(g,!0):J&&T&8&&c?um(g,524288):g}function Hge(n,a,c,u){x.assert(n.symbol,"anonymous type must have symbol to be instantiated");let _=kf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;let g=s_(n),T=jge(g);_.typeParameter=T,a=WS(OS(g,T),a),T.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?u:dv(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?EZ(_.aliasTypeArguments):0,_}function Kge(n,a,c,u,_){let g=n.root;if(g.outerTypeParameters){let T=mn(g.outerTypeParameters,V=>wb(V,a)),P=(c?"C":"")+cm(T)+ax(u,_),W=g.instantiations.get(P);if(!W){let V=Np(g.outerTypeParameters,T),te=g.checkType,ye=g.isDistributive?c_(wb(te,V)):void 0;W=ye&&te!==ye&&ye.flags&1179648?F8e(ye,_e=>Wge(g,VA(te,_e,V),c),u,_):Wge(g,V,c,u,_),g.instantiations.set(P,W)}return W}return n}function io(n,a){return n&&a?FOe(n,a,void 0,void 0):n}function FOe(n,a,c,u){var _;if(!l0(n))return n;if(A===100||S>=5e6)return(_=rr)==null||_.instant(rr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:A,instantiationCount:S}),Ve(D,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),ut;E++,S++,A++;let g=dlt(n,a,c,u);return A--,g}function dlt(n,a,c,u){let _=n.flags;if(_&262144)return wb(n,a);if(_&524288){let g=n.objectFlags;if(g&52){if(g&4&&!n.node){let T=n.resolvedTypeArguments,P=dv(T,a);return P!==T?xge(n.target,P):n}return g&1024?ult(n,a):olt(n,a,c,u)}return n}if(_&3145728){let g=n.flags&1048576?n.origin:void 0,T=g&&g.flags&3145728?g.types:n.types,P=dv(T,a);if(P===T&&c===n.aliasSymbol)return n;let W=c||n.aliasSymbol,V=c?u:dv(n.aliasTypeArguments,a);return _&2097152||g&&g.flags&2097152?ga(P,W,V):ei(P,1,W,V)}if(_&4194304)return J_(io(n.type,a));if(_&134217728)return FA(n.texts,dv(n.types,a));if(_&268435456)return sx(n.symbol,io(n.type,a));if(_&8388608){let g=c||n.aliasSymbol,T=c?u:dv(n.aliasTypeArguments,a);return Cp(io(n.objectType,a),io(n.indexType,a),n.accessFlags,void 0,g,T)}if(_&16777216)return Kge(n,WS(n.mapper,a),!1,c,u);if(_&33554432){let g=io(n.baseType,a);if(wM(n))return fge(g);let T=io(n.constraint,a);return g.flags&8650752&&pC(T)?_ge(g,T):T.flags&3||ya(jA(g),jA(T))?g:g.flags&8650752?_ge(g,T):ga([T,g])}return n}function ult(n,a){let c=io(n.mappedType,a);if(!(Lr(c)&32))return n;let u=io(n.constraintType,a);if(!(u.flags&4194304))return n;let _=h8e(io(n.source,a),c,u);return _||n}function A8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=io(n,ml))}function jA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=io(n,Ws),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function plt(n,a){return Oh(n.keyType,io(n.type,a),n.isReadonly,n.declaration)}function zf(n){switch(x.assert(n.kind!==174||bm(n)),n.kind){case 218:case 219:case 174:case 262:return zOe(n);case 210:return gt(n.properties,zf);case 209:return gt(n.elements,zf);case 227:return zf(n.whenTrue)||zf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(zf(n.left)||zf(n.right));case 303:return zf(n.initializer);case 217:return zf(n.expression);case 292:return gt(n.properties,zf)||P_(n.parent)&>(n.parent.parent.children,zf);case 291:{let{initializer:a}=n;return!!a&&zf(a)}case 294:{let{expression:a}=n;return!!a&&zf(a)}}return!1}function zOe(n){return z6(n)||flt(n)}function flt(n){return n.typeParameters||$f(n)||!n.body?!1:n.body.kind!==241?zf(n.body):!!I0(n.body,a=>!!a.expression&&zf(a.expression))}function OZ(n){return(F0(n)||bm(n))&&zOe(n)}function BOe(n){if(n.flags&524288){let a=l_(n);if(a.constructSignatures.length||a.callSignatures.length){let c=kf(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=Xe,c.constructSignatures=Xe,c.indexInfos=Xe,c}}else if(n.flags&2097152)return ga(mn(n.types,BOe));return n}function py(n,a){return q_(n,a,np)}function I8(n,a){return q_(n,a,np)?-1:0}function Jge(n,a){return q_(n,a,Gu)?-1:0}function mlt(n,a){return q_(n,a,Ih)?-1:0}function Ob(n,a){return q_(n,a,Ih)}function f5(n,a){return q_(n,a,Mf)}function ya(n,a){return q_(n,a,Gu)}function o0(n,a){return n.flags&1048576?oo(n.types,c=>o0(c,a)):a.flags&1048576?gt(a.types,c=>o0(n,c)):n.flags&2097152?gt(n.types,c=>o0(c,a)):n.flags&58982400?o0(zd(n)||un,a):Fh(a)?!!(n.flags&67633152):a===Re?!!(n.flags&67633152)&&!Fh(n):a===Lt?!!(n.flags&524288)&&xye(n):rC(n,ov(a))||Gf(a)&&!BM(a)&&o0(n,Zo)}function WZ(n,a){return q_(n,a,Ap)}function m5(n,a){return WZ(n,a)||WZ(a,n)}function eu(n,a,c,u,_,g){return Bf(n,a,Gu,c,u,_,g)}function Wb(n,a,c,u,_,g){return qge(n,a,Gu,c,u,_,g,void 0)}function qge(n,a,c,u,_,g,T,P){return q_(n,a,c)?!0:!u||!x8(_,n,a,c,g,T,P)?Bf(n,a,c,u,g,T,P):!1}function GOe(n){return!!(n.flags&16777216||n.flags&2097152&>(n.types,GOe))}function x8(n,a,c,u,_,g,T){if(!n||GOe(c))return!1;if(!Bf(a,c,u,void 0)&&_lt(n,a,c,u,_,g,T))return!0;switch(n.kind){case 234:if(!db(n))break;case 294:case 217:return x8(n.expression,a,c,u,_,g,T);case 226:switch(n.operatorToken.kind){case 64:case 28:return x8(n.right,a,c,u,_,g,T)}break;case 210:return Tlt(n,a,c,u,g,T);case 209:return Elt(n,a,c,u,g,T);case 292:return blt(n,a,c,u,g,T);case 219:return hlt(n,a,c,u,g,T)}return!1}function _lt(n,a,c,u,_,g,T){let P=Jo(a,0),W=Jo(a,1);for(let V of[W,P])if(gt(V,te=>{let ye=ds(te);return!(ye.flags&131073)&&Bf(ye,c,u,void 0)})){let te=T||{};eu(a,c,n,_,g,te);let ye=te.errors[te.errors.length-1];return Pa(ye,Pr(n,V===W?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function hlt(n,a,c,u,_,g){if(Ko(n.body)||gt(n.parameters,hF))return!1;let T=QA(a);if(!T)return!1;let P=Jo(c,0);if(!Nn(P))return!1;let W=n.body,V=ds(T),te=ei(mn(P,ds));if(!Bf(V,te,u,void 0)){let ye=W&&x8(W,V,te,u,void 0,_,g);if(ye)return ye;let _e=g||{};if(Bf(V,te,u,W,void 0,_,_e),_e.errors)return c.symbol&&Nn(c.symbol.declarations)&&Pa(_e.errors[_e.errors.length-1],Pr(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Vc(n)&2)&&!Ue(V,"then")&&Bf(X5(V),te,u,void 0)&&Pa(_e.errors[_e.errors.length-1],Pr(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function VOe(n,a,c){let u=Lb(a,c);if(u)return u;if(a.flags&1048576){let _=YOe(n,a);if(_)return Lb(_,c)}}function jOe(n,a){L5(n,a,!1);let c=QM(n,1);return O8(),c}function _5(n,a,c,u,_,g){let T=!1;for(let P of n){let{errorNode:W,innerExpression:V,nameType:te,errorMessage:ye}=P,_e=VOe(a,c,te);if(!_e||_e.flags&8388608)continue;let je=Lb(a,te);if(!je)continue;let mt=RZ(te,void 0);if(!Bf(je,_e,u,void 0)){let At=V&&x8(V,je,_e,u,void 0,_,g);if(T=!0,!At){let rn=g||{},sn=V?jOe(V,je):je;if(Ae&&zZ(sn,_e)){let nr=Pr(W,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Vn(sn),Vn(_e));Qa.add(nr),rn.errors=[nr]}else{let nr=!!(mt&&(ha(c,mt)||lt).flags&16777216),Mn=!!(mt&&(ha(a,mt)||lt).flags&16777216);_e=Bb(_e,nr),je=Bb(je,nr&&Mn),Bf(sn,_e,u,W,ye,_,rn)&&sn!==je&&Bf(je,_e,u,W,ye,_,rn)}if(rn.errors){let nr=rn.errors[rn.errors.length-1],Mn=Qf(te)?Zf(te):void 0,an=Mn!==void 0?ha(c,Mn):void 0,On=!1;if(!an){let Ln=m8(c,te);Ln&&Ln.declaration&&!Gn(Ln.declaration).hasNoDefaultLib&&(On=!0,Pa(nr,Pr(Ln.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!On&&(an&&Nn(an.declarations)||c.symbol&&Nn(c.symbol.declarations))){let Ln=an&&Nn(an.declarations)?an.declarations[0]:c.symbol.declarations[0];Gn(Ln).hasNoDefaultLib||Pa(nr,Pr(Ln,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Mn&&!(te.flags&8192)?Vi(Mn):Vn(te),Vn(c)))}}}}}return T}function glt(n,a,c,u,_,g){let T=cc(c,KZ),P=cc(c,te=>!KZ(te)),W=P!==Fr?Uve(13,0,P,void 0):void 0,V=!1;for(let te=n.next();!te.done;te=n.next()){let{errorNode:ye,innerExpression:_e,nameType:je,errorMessage:mt}=te.value,At=W,rn=T!==Fr?VOe(a,T,je):void 0;if(rn&&!(rn.flags&8388608)&&(At=W?ei([W,rn]):rn),!At)continue;let sn=Lb(a,je);if(!sn)continue;let nr=RZ(je,void 0);if(!Bf(sn,At,u,void 0)){let Mn=_e&&x8(_e,sn,At,u,void 0,_,g);if(V=!0,!Mn){let an=g||{},On=_e?jOe(_e,sn):sn;if(Ae&&zZ(On,At)){let Ln=Pr(ye,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Vn(On),Vn(At));Qa.add(Ln),an.errors=[Ln]}else{let Ln=!!(nr&&(ha(T,nr)||lt).flags&16777216),Yn=!!(nr&&(ha(a,nr)||lt).flags&16777216);At=Bb(At,Ln),sn=Bb(sn,Ln&&Yn),Bf(On,At,u,ye,mt,_,an)&&On!==sn&&Bf(sn,At,u,ye,mt,_,an)}}}}return V}function*ylt(n){if(Nn(n.properties))for(let a of n.properties)o1(a)||Jye(fk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Uu(fk(a.name))})}function*vlt(n,a){if(!Nn(n.children))return;let c=0;for(let u=0;u1,rn,sn;if(Sge(!1)!==Lo){let Mn=tOe(G);rn=cc(je,an=>ya(an,Mn)),sn=cc(je,an=>!ya(an,Mn))}else rn=cc(je,KZ),sn=cc(je,Mn=>!KZ(Mn));if(At){if(rn!==Fr){let Mn=Wh(yee(V,0)),an=vlt(V,W);T=glt(an,Mn,rn,u,_,g)||T}else if(!q_(Cp(a,_e),je,u)){T=!0;let Mn=Ve(V.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ye,Vn(je));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(Mn)}}else if(sn!==Fr){let Mn=mt[0],an=UOe(Mn,_e,W);an&&(T=_5(function*(){yield an}(),a,c,u,_,g)||T)}else if(!q_(Cp(a,_e),je,u)){T=!0;let Mn=Ve(V.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ye,Vn(je));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(Mn)}}return T;function W(){if(!P){let V=uc(n.parent.tagName),te=w5(YA(n)),ye=te===void 0?"children":Vi(te),_e=Cp(c,Uu(ye)),je=f._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={...je,key:"!!ALREADY FORMATTED!!",message:nU(je,V,ye,Vn(_e))}}return P}}function*HOe(n,a){let c=Nn(n.elements);if(c)for(let u=0;uW:Q_(n)>W))return u&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Q_(n),W),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Iat(a),n=HWe(n,a,void 0,T));let te=Kp(n),ye=B8(n),_e=B8(a);(ye||_e)&&io(ye||_e,P);let je=a.declaration?a.declaration.kind:0,mt=!(c&3)&&re&&je!==174&&je!==173&&je!==176,At=-1,rn=n0(n);if(rn&&rn!==er){let Mn=n0(a);if(Mn){let an=!mt&&T(rn,Mn,!1)||T(Mn,rn,u);if(!an)return u&&_(f.The_this_types_of_each_signature_are_incompatible),0;At&=an}}let sn=ye||_e?Math.min(te,W):Math.max(te,W),nr=ye||_e?sn-1:-1;for(let Mn=0;Mn=Q_(n)&&Mn=3&&a[0].flags&32768&&a[1].flags&65536&>(a,Fh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function FM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function JOe(n){return n.flags&524288&&!ju(n)&&ms(n).length===0&&_u(n).length===1&&!!vg(n,Ne)||n.flags&3145728&&oo(n.types,JOe)||!1}function $ge(n,a,c){let u=n.flags&8?Ru(n):n,_=a.flags&8?Ru(a):a;if(u===_)return!0;if(u.escapedName!==_.escapedName||!(u.flags&256)||!(_.flags&256))return!1;let g=ba(u)+","+ba(_),T=Qy.get(g);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);let P=sr(_);for(let W of ms(sr(u)))if(W.flags&8){let V=ha(P,W.escapedName);if(!V||!(V.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,vl(W),Vn(Xs(_),void 0,64)),Qy.set(g,6)):Qy.set(g,2),!1;let te=IC(cl(W,306)),ye=IC(cl(V,306));if(te!==ye){let _e=typeof te=="string",je=typeof ye=="string";if(te!==void 0&&ye!==void 0){if(!c)Qy.set(g,2);else{let mt=_e?`"${Qh(te)}"`:te,At=je?`"${Qh(ye)}"`:ye;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,vl(_),vl(V),At,mt),Qy.set(g,6)}return!1}if(_e||je){if(!c)Qy.set(g,2);else{let mt=te??ye;x.assert(typeof mt=="string");let At=`"${Qh(mt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,vl(_),vl(V),At),Qy.set(g,6)}return!1}}}return Qy.set(g,1),!0}function R8(n,a,c,u){let _=n.flags,g=a.flags;return g&1||_&131072||n===Tt||g&2&&!(c===Mf&&_&1)?!0:g&131072?!1:!!(_&402653316&&g&4||_&128&&_&1024&&g&128&&!(g&1024)&&n.value===a.value||_&296&&g&8||_&256&&_&1024&&g&256&&!(g&1024)&&n.value===a.value||_&2112&&g&64||_&528&&g&16||_&12288&&g&4096||_&32&&g&32&&n.symbol.escapedName===a.symbol.escapedName&&$ge(n.symbol,a.symbol,u)||_&1024&&g&1024&&(_&1048576&&g&1048576&&$ge(n.symbol,a.symbol,u)||_&2944&&g&2944&&n.value===a.value&&$ge(n.symbol,a.symbol,u))||_&32768&&(!J&&!(g&3145728)||g&49152)||_&65536&&(!J&&!(g&3145728)||g&65536)||_&524288&&g&67108864&&!(c===Mf&&Fh(n)&&!(Lr(n)&8192))||(c===Gu||c===Ap)&&(_&1||_&8&&(g&32||g&256&&g&1024)||_&256&&!(_&1024)&&(g&32||g&256&&g&1024&&n.value===a.value)||Rlt(a)))}function q_(n,a,c){if(wS(n)&&(n=n.regularType),wS(a)&&(a=a.regularType),n===a)return!0;if(c!==np){if(c===Ap&&!(a.flags&131072)&&R8(a,n,c)||R8(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){let u=c.get(VZ(n,a,0,c,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?Bf(n,a,c,void 0):!1}function qOe(n,a){return Lr(n)&2048&&Jye(a.escapedName)}function h5(n,a){for(;;){let c=wS(n)?n.regularType:Fb(n)?Clt(n,a):Lr(n)&4?n.node?sv(n.target,Vs(n)):iye(n)||n:n.flags&3145728?Dlt(n,a):n.flags&33554432?a?n.baseType:hge(n):n.flags&25165824?uy(n,a):n;if(c===n)return c;n=c}}function Dlt(n,a){let c=c_(n);if(c!==n)return c;if(n.flags&2097152&>(n.types,Fh)){let u=Pc(n.types,_=>h5(_,a));if(u!==n.types)return ga(u)}return n}function Clt(n,a){let c=LS(n),u=Pc(c,_=>_.flags&25165824?uy(_,a):_);return c!==u?Rge(n.target,u):n}function Bf(n,a,c,u,_,g,T){var P;let W,V,te,ye,_e,je,mt=0,At=0,rn=0,sn=0,nr=!1,Mn=0,an=0,On,Ln,Yn=16e6-c.size>>3;x.assert(c!==np||!u,"no error reporting in identity checking");let jn=hr(n,a,3,!!u,_);if(Ln&&Fo(),nr){let Qe=VZ(n,a,0,c,!1);c.set(Qe,6),(P=rr)==null||P.instant(rr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:At,targetDepth:rn});let vt=Yn<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,$t=Ve(u||D,vt,Vn(n),Vn(a));T&&(T.errors||(T.errors=[])).push($t)}else if(W){if(g){let $t=g();$t&&(loe($t,W),W=$t)}let Qe;if(_&&u&&!jn&&n.symbol){let $t=qi(n.symbol);if($t.originatingImport&&!Op($t.originatingImport)&&Bf(sr($t.target),a,c,void 0)){let Ar=Pr($t.originatingImport,f.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);Qe=Tn(Qe,Ar)}}let vt=Mg(Gn(u),u,W,Qe);V&&Pa(vt,...V),T&&(T.errors||(T.errors=[])).push(vt),(!T||!T.skipLogging)&&Qa.add(vt)}return u&&T&&T.skipLogging&&jn===0&&x.assert(!!T.errors,"missed opportunity to interact with error."),jn!==0;function $n(Qe){W=Qe.errorInfo,On=Qe.lastSkippedInfo,Ln=Qe.incompatibleStack,Mn=Qe.overrideNextErrorInfo,an=Qe.skipParentCounter,V=Qe.relatedInfo}function Ro(){return{errorInfo:W,lastSkippedInfo:On,incompatibleStack:Ln?.slice(),overrideNextErrorInfo:Mn,skipParentCounter:an,relatedInfo:V?.slice()}}function bo(Qe,...vt){Mn++,On=void 0,(Ln||(Ln=[])).push([Qe,...vt])}function Fo(){let Qe=Ln||[];Ln=void 0;let vt=On;if(On=void 0,Qe.length===1){fo(...Qe[0]),vt&&sp(void 0,...vt);return}let $t="",Hn=[];for(;Qe.length;){let[Ar,...bn]=Qe.pop();switch(Ar.code){case f.Types_of_property_0_are_incompatible.code:{$t.indexOf("new ")===0&&($t=`(${$t})`);let mr=""+bn[0];$t.length===0?$t=`${mr}`:Yp(mr,ns(B))?$t=`${$t}.${mr}`:mr[0]==="["&&mr[mr.length-1]==="]"?$t=`${$t}${mr}`:$t=`${$t}[${mr}]`;break}case f.Call_signature_return_types_0_and_1_are_incompatible.code:case f.Construct_signature_return_types_0_and_1_are_incompatible.code:case f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if($t.length===0){let mr=Ar;Ar.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?mr=f.Call_signature_return_types_0_and_1_are_incompatible:Ar.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(mr=f.Construct_signature_return_types_0_and_1_are_incompatible),Hn.unshift([mr,bn[0],bn[1]])}else{let mr=Ar.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Ar.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Gr=Ar.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Ar.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";$t=`${mr}${$t}(${Gr})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Hn.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,bn[0],bn[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Hn.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,bn[0],bn[1],bn[2]]);break}default:return x.fail(`Unhandled Diagnostic: ${Ar.code}`)}}$t?fo($t[$t.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,$t):Hn.shift();for(let[Ar,...bn]of Hn){let mr=Ar.elidedInCompatabilityPyramid;Ar.elidedInCompatabilityPyramid=!1,fo(Ar,...bn),Ar.elidedInCompatabilityPyramid=mr}vt&&sp(void 0,...vt)}function fo(Qe,...vt){x.assert(!!u),Ln&&Fo(),!Qe.elidedInCompatabilityPyramid&&(an===0?W=zo(W,Qe,...vt):an--)}function Rc(Qe,...vt){fo(Qe,...vt),an++}function Vf(Qe){x.assert(!!W),V?V.push(Qe):V=[Qe]}function sp(Qe,vt,$t){Ln&&Fo();let[Hn,Ar]=tx(vt,$t),bn=vt,mr=Hn;if(D8(vt)&&!Qge($t)&&(bn=my(vt),x.assert(!ya(bn,$t),"generalized source shouldn't be assignable"),mr=bb(bn)),($t.flags&8388608&&!(vt.flags&8388608)?$t.objectType.flags:$t.flags)&262144&&$t!==de&&$t!==$){let Fi=zd($t),Oo;Fi&&(ya(bn,Fi)||(Oo=ya(vt,Fi)))?fo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Oo?Hn:mr,Ar,Vn(Fi)):(W=void 0,fo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Ar,mr))}if(Qe)Qe===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ae&&XOe(vt,$t).length&&(Qe=f.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===Ap)Qe=f.Type_0_is_not_comparable_to_type_1;else if(Hn===Ar)Qe=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ae&&XOe(vt,$t).length)Qe=f.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(vt.flags&128&&$t.flags&1048576){let Fi=Fut(vt,$t);if(Fi){fo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,mr,Ar,Vn(Fi));return}}Qe=f.Type_0_is_not_assignable_to_type_1}fo(Qe,mr,Ar)}function Pn(Qe,vt){let $t=Eb(Qe.symbol)?Vn(Qe,Qe.symbol.valueDeclaration):Vn(Qe),Hn=Eb(vt.symbol)?Vn(vt,vt.symbol.valueDeclaration):Vn(vt);(Ql===Qe&&Ne===vt||gc===Qe&&It===vt||sl===Qe&&gi===vt||Ywe()===Qe&&xi===vt)&&fo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Hn,$t)}function Xn(Qe,vt,$t){return wa(Qe)?Qe.target.readonly&&b5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Qe),Vn(vt)),!1):a0(vt):BM(Qe)&&b5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Qe),Vn(vt)),!1):wa(vt)?Gf(Qe):!0}function ro(Qe,vt,$t){return hr(Qe,vt,3,$t)}function hr(Qe,vt,$t=3,Hn=!1,Ar,bn=0){if(Qe===vt)return-1;if(Qe.flags&524288&&vt.flags&402784252)return c===Ap&&!(vt.flags&131072)&&R8(vt,Qe,c)||R8(Qe,vt,c,Hn?fo:void 0)?-1:(Hn&&Co(Qe,vt,Qe,vt,Ar),0);let mr=h5(Qe,!1),Gr=h5(vt,!0);if(mr===Gr)return-1;if(c===np)return mr.flags!==Gr.flags?0:mr.flags&67358815?-1:(is(mr,Gr),Ai(mr,Gr,!1,0,$t));if(mr.flags&262144&&kA(mr)===Gr)return-1;if(mr.flags&470302716&&Gr.flags&1048576){let Fi=Gr.types,Oo=Fi.length===2&&Fi[0].flags&98304?Fi[1]:Fi.length===3&&Fi[0].flags&98304&&Fi[1].flags&98304?Fi[2]:void 0;if(Oo&&!(Oo.flags&98304)&&(Gr=h5(Oo,!0),mr===Gr))return-1}if(c===Ap&&!(Gr.flags&131072)&&R8(Gr,mr,c)||R8(mr,Gr,c,Hn?fo:void 0))return-1;if(mr.flags&469499904||Gr.flags&469499904){if(!(bn&2)&&c0(mr)&&Lr(mr)&8192&&Gd(mr,Gr,Hn))return Hn&&sp(Ar,mr,vt.aliasSymbol?vt:Gr),0;let Oo=(c!==Ap||u_(mr))&&!(bn&2)&&mr.flags&405405692&&mr!==Re&&Gr.flags&2621440&&$Oe(Gr)&&(ms(mr).length>0||Qee(mr)),pa=!!(Lr(mr)&2048);if(Oo&&!Plt(mr,Gr,pa)){if(Hn){let ko=Vn(Qe.aliasSymbol?Qe:mr),Aa=Vn(vt.aliasSymbol?vt:Gr),Is=Jo(mr,0),us=Jo(mr,1);Is.length>0&&hr(ds(Is[0]),Gr,1,!1)||us.length>0&&hr(ds(us[0]),Gr,1,!1)?fo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ko,Aa):fo(f.Type_0_has_no_properties_in_common_with_type_1,ko,Aa)}return 0}is(mr,Gr);let Ei=mr.flags&1048576&&mr.types.length<4&&!(Gr.flags&1048576)||Gr.flags&1048576&&Gr.types.length<4&&!(mr.flags&469499904)?Pu(mr,Gr,Hn,bn):Ai(mr,Gr,Hn,bn,$t);if(Ei)return Ei}return Hn&&Co(Qe,vt,mr,Gr,Ar),0}function Co(Qe,vt,$t,Hn,Ar){var bn,mr;let Gr=!!iye(Qe),Fi=!!iye(vt);$t=Qe.aliasSymbol||Gr?Qe:$t,Hn=vt.aliasSymbol||Fi?vt:Hn;let Oo=Mn>0;if(Oo&&Mn--,$t.flags&524288&&Hn.flags&524288){let pa=W;Xn($t,Hn,!0),W!==pa&&(Oo=!!W)}if($t.flags&524288&&Hn.flags&402784252)Pn($t,Hn);else if($t.symbol&&$t.flags&524288&&Re===$t)fo(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Lr($t)&2048&&Hn.flags&2097152){let pa=Hn.types,fa=GS(tf.IntrinsicAttributes,u),Ei=GS(tf.IntrinsicClassAttributes,u);if(!Vt(fa)&&!Vt(Ei)&&(Bo(pa,fa)||Bo(pa,Ei)))return}else W=tge(W,vt);if(!Ar&&Oo){On=[$t,Hn];return}if(sp(Ar,$t,Hn),$t.flags&262144&&((mr=(bn=$t.symbol)==null?void 0:bn.declarations)!=null&&mr[0])&&!kA($t)){let pa=jge($t);if(pa.constraint=io(Hn,OS($t,pa)),e5(pa)){let fa=Vn(Hn,$t.symbol.declarations[0]);Vf(Pr($t.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,fa))}}}function is(Qe,vt){if(rr&&Qe.flags&3145728&&vt.flags&3145728){let $t=Qe,Hn=vt;if($t.objectFlags&Hn.objectFlags&32768)return;let Ar=$t.types.length,bn=Hn.types.length;Ar*bn>1e6&&rr.instant(rr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Qe.id,sourceSize:Ar,targetId:vt.id,targetSize:bn,pos:u?.pos,end:u?.end})}}function vs(Qe,vt){return ei(tu(Qe,(Hn,Ar)=>{var bn;Ar=Nu(Ar);let mr=Ar.flags&3145728?t5(Ar,vt):e0(Ar,vt),Gr=mr&&sr(mr)||((bn=ox(Ar,vt))==null?void 0:bn.type)||Me;return Tn(Hn,Gr)},void 0)||Xe)}function Gd(Qe,vt,$t){var Hn;if(!W5(vt)||!fe&&Lr(vt)&4096)return!1;let Ar=!!(Lr(Qe)&2048);if((c===Gu||c===Ap)&&(HM(Re,vt)||!Ar&&fy(vt)))return!1;let bn=vt,mr;vt.flags&1048576&&(bn=m4e(Qe,vt,hr)||Ggt(vt),mr=bn.flags&1048576?bn.types:[bn]);for(let Gr of ms(Qe))if(Oa(Gr,Qe.symbol)&&!qOe(Qe,Gr)){if(!Yye(bn,Gr.escapedName,Ar)){if($t){let Fi=cc(bn,W5);if(!u)return x.fail();if(q0(u)||au(u)||au(u.parent)){Gr.valueDeclaration&&M_(Gr.valueDeclaration)&&Gn(u)===Gn(Gr.valueDeclaration.name)&&(u=Gr.valueDeclaration.name);let Oo=Si(Gr),pa=WWe(Oo,Fi),fa=pa?Si(pa):void 0;fa?fo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Oo,Vn(Fi),fa):fo(f.Property_0_does_not_exist_on_type_1,Oo,Vn(Fi))}else{let Oo=((Hn=Qe.symbol)==null?void 0:Hn.declarations)&&Xc(Qe.symbol.declarations),pa;if(Gr.valueDeclaration&&Fn(Gr.valueDeclaration,fa=>fa===Oo)&&Gn(Oo)===Gn(u)){let fa=Gr.valueDeclaration;x.assertNode(fa,Pg);let Ei=fa.name;u=Ei,Fe(Ei)&&(pa=ove(Ei,Fi))}pa!==void 0?Rc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Si(Gr),Vn(Fi),pa):Rc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(Gr),Vn(Fi))}}return!0}if(mr&&!hr(sr(Gr),vs(mr,Gr.escapedName),3,$t))return $t&&bo(f.Types_of_property_0_are_incompatible,Si(Gr)),!0}return!1}function Oa(Qe,vt){return Qe.valueDeclaration&&vt.valueDeclaration&&Qe.valueDeclaration.parent===vt.valueDeclaration}function Pu(Qe,vt,$t,Hn){if(Qe.flags&1048576){if(vt.flags&1048576){let Ar=Qe.origin;if(Ar&&Ar.flags&2097152&&vt.aliasSymbol&&Bo(Ar.types,vt))return-1;let bn=vt.origin;if(bn&&bn.flags&1048576&&Qe.aliasSymbol&&Bo(bn.types,Qe))return-1}return c===Ap?Se(Qe,vt,$t&&!(Qe.flags&402784252),Hn):Rr(Qe,vt,$t&&!(Qe.flags&402784252),Hn)}if(vt.flags&1048576)return gl(P8(Qe),vt,$t&&!(Qe.flags&402784252)&&!(vt.flags&402784252),Hn);if(vt.flags&2097152)return ot(Qe,vt,$t,2);if(c===Ap&&vt.flags&402784252){let Ar=Pc(Qe.types,bn=>bn.flags&465829888?zd(bn)||un:bn);if(Ar!==Qe.types){if(Qe=ga(Ar),Qe.flags&131072)return 0;if(!(Qe.flags&2097152))return hr(Qe,vt,1,!1)||hr(vt,Qe,1,!1)}}return Se(Qe,vt,!1,1)}function Ol(Qe,vt){let $t=-1,Hn=Qe.types;for(let Ar of Hn){let bn=gl(Ar,vt,!1,0);if(!bn)return 0;$t&=bn}return $t}function gl(Qe,vt,$t,Hn){let Ar=vt.types;if(vt.flags&1048576){if(dy(Ar,Qe))return-1;if(c!==Ap&&Lr(vt)&32768&&!(Qe.flags&1024)&&(Qe.flags&2688||(c===Ih||c===Mf)&&Qe.flags&256)){let mr=Qe===Qe.regularType?Qe.freshType:Qe.regularType,Gr=Qe.flags&128?Ne:Qe.flags&256?It:Qe.flags&2048?Dt:void 0;return Gr&&dy(Ar,Gr)||mr&&dy(Ar,mr)?-1:0}let bn=x8e(vt,Qe);if(bn){let mr=hr(Qe,bn,2,!1,void 0,Hn);if(mr)return mr}}for(let bn of Ar){let mr=hr(Qe,bn,2,!1,void 0,Hn);if(mr)return mr}if($t){let bn=YOe(Qe,vt,hr);bn&&hr(Qe,bn,2,!0,void 0,Hn)}return 0}function ot(Qe,vt,$t,Hn){let Ar=-1,bn=vt.types;for(let mr of bn){let Gr=hr(Qe,mr,2,$t,void 0,Hn);if(!Gr)return 0;Ar&=Gr}return Ar}function Se(Qe,vt,$t,Hn){let Ar=Qe.types;if(Qe.flags&1048576&&dy(Ar,vt))return-1;let bn=Ar.length;for(let mr=0;mr=mr.types.length&&bn.length%mr.types.length===0){let pa=hr(Fi,mr.types[Gr%mr.types.length],3,!1,void 0,Hn);if(pa){Ar&=pa;continue}}let Oo=hr(Fi,vt,1,$t,void 0,Hn);if(!Oo)return 0;Ar&=Oo}return Ar}function di(Qe=Xe,vt=Xe,$t=Xe,Hn,Ar){if(Qe.length!==vt.length&&c===np)return 0;let bn=Qe.length<=vt.length?Qe.length:vt.length,mr=-1;for(let Gr=0;Gr(ko|=us?16:8,Ei(us)));let Aa;return sn===3?((bn=rr)==null||bn.instant(rr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Qe.id,sourceIdStack:_e.map(us=>us.id),targetId:vt.id,targetIdStack:je.map(us=>us.id),depth:At,targetDepth:rn}),Aa=3):((mr=rr)==null||mr.push(rr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Qe.id,targetId:vt.id}),Aa=Ii(Qe,vt,$t,Hn),(Gr=rr)==null||Gr.pop()),la&&(la=Ei),Ar&1&&At--,Ar&2&&rn--,sn=fa,Aa?(Aa===-1||At===0&&rn===0)&&Is(Aa===-1||Aa===3):(c.set(Fi,($t?4:0)|2|ko),Yn--,Is(!1)),Aa;function Is(us){for(let Cc=pa;CcGr!==Qe)&&(bn=hr(mr,vt,1,!1,void 0,Hn))}bn&&!(Hn&2)&&vt.flags&2097152&&!BA(vt)&&Qe.flags&2621440?(bn&=bi(Qe,vt,$t,void 0,!1,0),bn&&c0(Qe)&&Lr(Qe)&8192&&(bn&=os(Qe,vt,!1,$t,0))):bn&&CZ(vt)&&!a0(vt)&&Qe.flags&2097152&&Nu(Qe).flags&3670016&&!gt(Qe.types,mr=>mr===vt||!!(Lr(mr)&262144))&&(bn&=bi(Qe,vt,$t,void 0,!0,Hn))}return bn&&$n(Ar),bn}function Br(Qe,vt){let $t=Nu(LA(vt)),Hn=[];return Jhe($t,8576,!1,Ar=>void Hn.push(io(Qe,S8(vt.mapper,s_(vt),Ar)))),ei(Hn)}function Tr(Qe,vt,$t,Hn,Ar){let bn,mr,Gr=!1,Fi=Qe.flags,Oo=vt.flags;if(c===np){if(Fi&3145728){let Ei=Ol(Qe,vt);return Ei&&(Ei&=Ol(vt,Qe)),Ei}if(Fi&4194304)return hr(Qe.type,vt.type,3,!1);if(Fi&8388608&&(bn=hr(Qe.objectType,vt.objectType,3,!1))&&(bn&=hr(Qe.indexType,vt.indexType,3,!1))||Fi&16777216&&Qe.root.isDistributive===vt.root.isDistributive&&(bn=hr(Qe.checkType,vt.checkType,3,!1))&&(bn&=hr(Qe.extendsType,vt.extendsType,3,!1))&&(bn&=hr(r0(Qe),r0(vt),3,!1))&&(bn&=hr(i0(Qe),i0(vt),3,!1))||Fi&33554432&&(bn=hr(Qe.baseType,vt.baseType,3,!1))&&(bn&=hr(Qe.constraint,vt.constraint,3,!1)))return bn;if(!(Fi&524288))return 0}else if(Fi&3145728||Oo&3145728){if(bn=Pu(Qe,vt,$t,Hn))return bn;if(!(Fi&465829888||Fi&524288&&Oo&1048576||Fi&2097152&&Oo&467402752))return 0}if(Fi&17301504&&Qe.aliasSymbol&&Qe.aliasTypeArguments&&Qe.aliasSymbol===vt.aliasSymbol&&!(BZ(Qe)||BZ(vt))){let Ei=QOe(Qe.aliasSymbol);if(Ei===Xe)return 1;let ko=qi(Qe.aliasSymbol).typeParameters,Aa=wh(ko),Is=Pb(Qe.aliasTypeArguments,ko,Aa,ir(Qe.aliasSymbol.valueDeclaration)),us=Pb(vt.aliasTypeArguments,ko,Aa,ir(Qe.aliasSymbol.valueDeclaration)),Cc=fa(Is,us,Ei,Hn);if(Cc!==void 0)return Cc}if(s8e(Qe)&&!Qe.target.readonly&&(bn=hr(Vs(Qe)[0],vt,1))||s8e(vt)&&(vt.target.readonly||b5(zd(Qe)||Qe))&&(bn=hr(Qe,Vs(vt)[0],2)))return bn;if(Oo&262144){if(Lr(Qe)&32&&!Qe.declaration.nameType&&hr(J_(vt),hf(Qe),3)&&!(kh(Qe)&4)){let Ei=ly(Qe),ko=Cp(vt,s_(Qe));if(bn=hr(Ei,ko,3,$t))return bn}if(c===Ap&&Fi&262144){let Ei=Cu(Qe);if(Ei)for(;Ei&&Fm(Ei,ko=>!!(ko.flags&262144));){if(bn=hr(Ei,vt,1,!1))return bn;Ei=Cu(Ei)}return 0}}else if(Oo&4194304){let Ei=vt.type;if(Fi&4194304&&(bn=hr(Ei,Qe.type,3,!1)))return bn;if(wa(Ei)){if(bn=hr(Qe,oOe(Ei),2,$t))return bn}else{let ko=Xhe(Ei);if(ko){if(hr(Qe,J_(ko,vt.indexFlags|4),2,$t)===-1)return-1}else if(ju(Ei)){let Aa=av(Ei),Is=hf(Ei),us;if(Aa&&aC(Ei)){let Cc=Br(Aa,Ei);us=ei([Cc,Aa])}else us=Aa||Is;if(hr(Qe,us,2,$t)===-1)return-1}}}else if(Oo&8388608){if(Fi&8388608){if((bn=hr(Qe.objectType,vt.objectType,3,$t))&&(bn&=hr(Qe.indexType,vt.indexType,3,$t)),bn)return bn;$t&&(mr=W)}if(c===Gu||c===Ap){let Ei=vt.objectType,ko=vt.indexType,Aa=zd(Ei)||Ei,Is=zd(ko)||ko;if(!BA(Aa)&&!GA(Is)){let us=4|(Aa!==Ei?2:0),Cc=Lb(Aa,Is,us);if(Cc){if($t&&mr&&$n(Ar),bn=hr(Qe,Cc,2,$t,void 0,Hn))return bn;$t&&mr&&W&&(W=pa([mr])<=pa([W])?mr:W)}}}$t&&(mr=void 0)}else if(ju(vt)&&c!==np){let Ei=!!vt.declaration.nameType,ko=ly(vt),Aa=kh(vt);if(!(Aa&8)){if(!Ei&&ko.flags&8388608&&ko.objectType===Qe&&ko.indexType===s_(vt))return-1;if(!ju(Qe)){let Is=Ei?av(vt):hf(vt),us=J_(Qe,2),Cc=Aa&4,Bh=Cc?$B(Is,us):void 0;if(Cc?!(Bh.flags&131072):hr(Is,us,3)){let yy=ly(vt),tI=s_(vt),nI=KM(yy,-98305);if(!Ei&&nI.flags&8388608&&nI.indexType===tI){if(bn=hr(Qe,nI.objectType,2,$t))return bn}else{let aL=Ei?Bh||Is:Bh?ga([Bh,tI]):tI,__=Cp(Qe,aL);if(bn=hr(__,yy,3,$t))return bn}}mr=W,$n(Ar)}}}else if(Oo&16777216){if(zM(vt,je,rn,10))return 3;let Ei=vt;if(!Ei.root.inferTypeParameters&&!Ust(Ei.root)&&!(Qe.flags&16777216&&Qe.root===Ei.root)){let ko=!ya(A8(Ei.checkType),A8(Ei.extendsType)),Aa=!ko&&ya(jA(Ei.checkType),jA(Ei.extendsType));if((bn=ko?-1:hr(Qe,r0(Ei),2,!1,void 0,Hn))&&(bn&=Aa?-1:hr(Qe,i0(Ei),2,!1,void 0,Hn),bn))return bn}}else if(Oo&134217728){if(Fi&134217728){if(c===Ap)return gct(Qe,vt)?0:-1;io(Qe,dd)}if(ree(Qe,vt))return-1}else if(vt.flags&268435456&&!(Qe.flags&268435456)&&nee(Qe,vt))return-1;if(Fi&8650752){if(!(Fi&8388608&&Oo&8388608)){let Ei=kA(Qe)||un;if(bn=hr(Ei,vt,1,!1,void 0,Hn))return bn;if(bn=hr(Up(Ei,Qe),vt,1,$t&&Ei!==un&&!(Oo&Fi&262144),void 0,Hn))return bn;if(Zhe(Qe)){let ko=kA(Qe.indexType);if(ko&&(bn=hr(Cp(Qe.objectType,ko),vt,1,$t)))return bn}}}else if(Fi&4194304){let Ei=Lge(Qe.type,Qe.indexFlags)&&Lr(Qe.type)&32;if(bn=hr(Ls,vt,1,$t&&!Ei))return bn;if(Ei){let ko=Qe.type,Aa=av(ko),Is=Aa&&aC(ko)?Br(Aa,ko):Aa||hf(ko);if(bn=hr(Is,vt,1,$t))return bn}}else if(Fi&134217728&&!(Oo&524288)){if(!(Oo&134217728)){let Ei=zd(Qe);if(Ei&&Ei!==Qe&&(bn=hr(Ei,vt,1,$t)))return bn}}else if(Fi&268435456)if(Oo&268435456){if(Qe.symbol!==vt.symbol)return 0;if(bn=hr(Qe.type,vt.type,3,$t))return bn}else{let Ei=zd(Qe);if(Ei&&(bn=hr(Ei,vt,1,$t)))return bn}else if(Fi&16777216){if(zM(Qe,_e,At,10))return 3;if(Oo&16777216){let Aa=Qe.root.inferTypeParameters,Is=Qe.extendsType,us;if(Aa){let Cc=M8(Aa,void 0,0,ro);hy(Cc.inferences,vt.extendsType,Is,1536),Is=io(Is,Cc.mapper),us=Cc.mapper}if(py(Is,vt.extendsType)&&(hr(Qe.checkType,vt.checkType,3)||hr(vt.checkType,Qe.checkType,3))&&((bn=hr(io(r0(Qe),us),r0(vt),3,$t))&&(bn&=hr(i0(Qe),i0(vt),3,$t)),bn))return bn}let Ei=Yhe(Qe);if(Ei&&(bn=hr(Ei,vt,1,$t)))return bn;let ko=!(Oo&16777216)&&e5(Qe)?ywe(Qe):void 0;if(ko&&($n(Ar),bn=hr(ko,vt,1,$t)))return bn}else{if(c!==Ih&&c!==Mf&&tat(vt)&&fy(Qe))return-1;if(ju(vt))return ju(Qe)&&(bn=it(Qe,vt,$t))?bn:0;let Ei=!!(Fi&402784252);if(c!==np)Qe=Nu(Qe),Fi=Qe.flags;else if(ju(Qe))return 0;if(Lr(Qe)&4&&Lr(vt)&4&&Qe.target===vt.target&&!wa(Qe)&&!(BZ(Qe)||BZ(vt))){if(HZ(Qe))return-1;let ko=eye(Qe.target);if(ko===Xe)return 1;let Aa=fa(Vs(Qe),Vs(vt),ko,Hn);if(Aa!==void 0)return Aa}else{if(BM(vt)?ap(Qe,a0):Gf(vt)&&ap(Qe,ko=>wa(ko)&&!ko.target.readonly))return c!==np?hr(t0(Qe,It)||G,t0(vt,It)||G,3,$t):0;if(Fb(Qe)&&wa(vt)&&!Fb(vt)){let ko=cy(Qe);if(ko!==Qe)return hr(ko,vt,1,$t)}else if((c===Ih||c===Mf)&&fy(vt)&&Lr(vt)&8192&&!fy(Qe))return 0}if(Fi&2621440&&Oo&524288){let ko=$t&&W===Ar.errorInfo&&!Ei;if(bn=bi(Qe,vt,ko,void 0,!1,Hn),bn&&(bn&=lo(Qe,vt,0,ko,Hn),bn&&(bn&=lo(Qe,vt,1,ko,Hn),bn&&(bn&=os(Qe,vt,Ei,ko,Hn)))),Gr&&bn)W=mr||W||Ar.errorInfo;else if(bn)return bn}if(Fi&2621440&&Oo&1048576){let ko=KM(vt,36175872);if(ko.flags&1048576){let Aa=kt(Qe,ko);if(Aa)return Aa}}}return 0;function pa(Ei){return Ei?tu(Ei,(ko,Aa)=>ko+1+pa(Aa.next),0):0}function fa(Ei,ko,Aa,Is){if(bn=di(Ei,ko,Aa,$t,Is))return bn;if(gt(Aa,Cc=>!!(Cc&24))){mr=void 0,$n(Ar);return}let us=ko&&Mlt(ko,Aa);if(Gr=!us,Aa!==Xe&&!us){if(Gr&&!($t&>(Aa,Cc=>(Cc&7)===0)))return 0;mr=W,$n(Ar)}}}function it(Qe,vt,$t){if(c===Ap||(c===np?kh(Qe)===kh(vt):qhe(Qe)<=qhe(vt))){let Ar,bn=hf(vt),mr=io(hf(Qe),qhe(Qe)<0?bs:dd);if(Ar=hr(bn,mr,3,$t)){let Gr=Np([s_(Qe)],[s_(vt)]);if(io(av(Qe),Gr)===io(av(vt),Gr))return Ar&hr(io(ly(Qe),Gr),ly(vt),3,$t)}}return 0}function kt(Qe,vt){var $t;let Hn=ms(Qe),Ar=I8e(Hn,vt);if(!Ar)return 0;let bn=1;for(let fa of Ar)if(bn*=Hct(Rb(fa)),bn>25)return($t=rr)==null||$t.instant(rr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Qe.id,targetId:vt.id,numCombinations:bn}),0;let mr=new Array(Ar.length),Gr=new Set;for(let fa=0;fafa[Aa],!1,0,J||c===Ap))continue e}yf(Oo,ko,Ty),Ei=!0}if(!Ei)return 0}let pa=-1;for(let fa of Oo)if(pa&=bi(Qe,fa,!1,Gr,!1,0),pa&&(pa&=lo(Qe,fa,0,!1,0),pa&&(pa&=lo(Qe,fa,1,!1,0),pa&&!(wa(Qe)&&wa(fa))&&(pa&=os(Qe,fa,!1,!1,0)))),!pa)return pa;return pa}function Qt(Qe,vt){if(!vt||Qe.length===0)return Qe;let $t;for(let Hn=0;Hn5?fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Vn(Qe),Vn(vt),mn(bn.slice(0,4),mr=>Si(mr)).join(", "),bn.length-4):fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Vn(Qe),Vn(vt),mn(bn,mr=>Si(mr)).join(", ")),Ar&&W&&Mn++)}function bi(Qe,vt,$t,Hn,Ar,bn){if(c===np)return ui(Qe,vt,Hn);let mr=-1;if(wa(vt)){if(a0(Qe)){if(!vt.target.readonly&&(BM(Qe)||wa(Qe)&&Qe.target.readonly))return 0;let fa=lv(Qe),Ei=lv(vt),ko=wa(Qe)?Qe.target.combinedFlags&4:4,Aa=vt.target.combinedFlags&4,Is=wa(Qe)?Qe.target.minLength:0,us=vt.target.minLength;if(!ko&&fa=yy?Ei-1-Math.min(Bm,tI):__,Ir=vt.target.elementFlags[Ct];if(Ir&8&&!(_x&8))return $t&&fo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Ct),0;if(_x&8&&!(Ir&12))return $t&&fo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,__,Ct),0;if(Ir&1&&!(_x&1))return $t&&fo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Ct),0;if(aL&&((_x&12||Ir&12)&&(aL=!1),aL&&Hn?.has(""+__)))continue;let pi=Bb(Cc[__],!!(_x&Ir&2)),Jr=Bh[Ct],li=_x&8&&Ir&4?Bd(Jr):Bb(Jr,!!(Ir&2)),Za=hr(pi,li,3,$t,void 0,bn);if(!Za)return $t&&(Ei>1||fa>1)&&(nI&&__>=yy&&Bm>=tI&&yy!==fa-tI-1?bo(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,yy,fa-tI-1,Ct):bo(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,__,Ct)),0;mr&=Za}return mr}if(vt.target.combinedFlags&12)return 0}let Gr=(c===Ih||c===Mf)&&!c0(Qe)&&!HZ(Qe)&&!wa(Qe),Fi=gye(Qe,vt,Gr,!1);if(Fi)return $t&&An(Qe,vt)&&Wn(Qe,vt,Fi,Gr),0;if(c0(vt)){for(let fa of Qt(ms(Qe),Hn))if(!e0(vt,fa.escapedName)&&!(sr(fa).flags&32768))return $t&&fo(f.Property_0_does_not_exist_on_type_1,Si(fa),Vn(vt)),0}let Oo=ms(vt),pa=wa(Qe)&&wa(vt);for(let fa of Qt(Oo,Hn)){let Ei=fa.escapedName;if(!(fa.flags&4194304)&&(!pa||ng(Ei)||Ei==="length")&&(!Ar||fa.flags&16777216)){let ko=ha(Qe,Ei);if(ko&&ko!==fa){let Aa=ln(Qe,vt,ko,fa,Rb,$t,bn,c===Ap);if(!Aa)return 0;mr&=Aa}}}return mr}function ui(Qe,vt,$t){if(!(Qe.flags&524288&&vt.flags&524288))return 0;let Hn=Qt(Nb(Qe),$t),Ar=Qt(Nb(vt),$t);if(Hn.length!==Ar.length)return 0;let bn=-1;for(let mr of Hn){let Gr=e0(vt,mr.escapedName);if(!Gr)return 0;let Fi=nye(mr,Gr,hr);if(!Fi)return 0;bn&=Fi}return bn}function lo(Qe,vt,$t,Hn,Ar){var bn,mr;if(c===np)return ca(Qe,vt,$t);if(vt===tn||Qe===tn)return-1;let Gr=Qe.symbol&&$_(Qe.symbol.valueDeclaration),Fi=vt.symbol&&$_(vt.symbol.valueDeclaration),Oo=Jo(Qe,Gr&&$t===1?0:$t),pa=Jo(vt,Fi&&$t===1?0:$t);if($t===1&&Oo.length&&pa.length){let Is=!!(Oo[0].flags&4),us=!!(pa[0].flags&4);if(Is&&!us)return Hn&&fo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!m_(Oo[0],pa[0],Hn))return 0}let fa=-1,Ei=$t===1?Gi:Zr,ko=Lr(Qe),Aa=Lr(vt);if(ko&64&&Aa&64&&Qe.symbol===vt.symbol||ko&4&&Aa&4&&Qe.target===vt.target){x.assertEqual(Oo.length,pa.length);for(let Is=0;IsNh(yy,void 0,262144,$t);return fo(f.Type_0_is_not_assignable_to_type_1,Bh(us),Bh(Cc)),fo(f.Types_of_construct_signatures_are_incompatible),fa}}else e:for(let Is of pa){let us=Ro(),Cc=Hn;for(let Bh of Oo){let yy=co(Bh,Is,!0,Cc,Ar,Ei(Bh,Is));if(yy){fa&=yy,$n(us);continue e}Cc=!1}return Cc&&fo(f.Type_0_provides_no_match_for_the_signature_1,Vn(Qe),Nh(Is,void 0,void 0,$t)),0}return fa}function An(Qe,vt){let $t=n5(Qe,0),Hn=n5(Qe,1),Ar=Nb(Qe);return($t.length||Hn.length)&&!Ar.length?!!(Jo(vt,0).length&&$t.length||Jo(vt,1).length&&Hn.length):!0}function Zr(Qe,vt){return Qe.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>bo(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>bo(f.Call_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function Gi(Qe,vt){return Qe.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>bo(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>bo(f.Construct_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function co(Qe,vt,$t,Hn,Ar,bn){let mr=c===Ih?16:c===Mf?24:0;return Xge($t?g8(Qe):Qe,$t?g8(vt):vt,mr,Hn,fo,bn,Gr,dd);function Gr(Fi,Oo,pa){return hr(Fi,Oo,3,pa,void 0,Ar)}}function ca(Qe,vt,$t){let Hn=Jo(Qe,$t),Ar=Jo(vt,$t);if(Hn.length!==Ar.length)return 0;let bn=-1;for(let mr=0;mrFi.keyType===Ne),Gr=-1;for(let Fi of bn){let Oo=c!==Mf&&!$t&&mr&&Fi.type.flags&1?-1:ju(Qe)&&mr?hr(ly(Qe),Fi.type,3,Hn):Dc(Qe,Fi,Hn,Ar);if(!Oo)return 0;Gr&=Oo}return Gr}function Dc(Qe,vt,$t,Hn){let Ar=m8(Qe,vt.keyType);return Ar?Dl(Ar,vt,$t,Hn):!(Hn&1)&&(c!==Mf||Lr(Qe)&8192)&&$Z(Qe)?vc(Qe,vt,$t,Hn):($t&&fo(f.Index_signature_for_type_0_is_missing_in_type_1,Vn(vt.keyType),Vn(Qe)),0)}function js(Qe,vt){let $t=_u(Qe),Hn=_u(vt);if($t.length!==Hn.length)return 0;for(let Ar of Hn){let bn=vg(Qe,Ar.keyType);if(!(bn&&hr(bn.type,Ar.type,3)&&bn.isReadonly===Ar.isReadonly))return 0}return-1}function m_(Qe,vt,$t){if(!Qe.declaration||!vt.declaration)return!0;let Hn=PI(Qe.declaration,6),Ar=PI(vt.declaration,6);return Ar===2||Ar===4&&Hn!==2||Ar!==4&&!Hn?!0:($t&&fo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,NA(Hn),NA(Ar)),!1)}}function Qge(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!gn(n.types,Qge);if(n.flags&465829888){let a=kA(n);if(a&&a!==n)return Qge(a)}return u_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function XOe(n,a){return wa(n)&&wa(a)?Xe:ms(a).filter(c=>zZ(Ue(n,c.escapedName),sr(c)))}function zZ(n,a){return!!n&&!!a&&Rl(n,32768)&&!!N8(a)}function Nlt(n){return ms(n).filter(a=>N8(sr(a)))}function YOe(n,a,c=Jge){return m4e(n,a,c)||Wgt(n,a)||Fgt(n,a)||zgt(n,a)||Bgt(n,a)}function Zge(n,a,c){let u=n.types,_=u.map(T=>T.flags&402784252?0:-1);for(let[T,P]of a){let W=!1;for(let V=0;V_[P]),0):n;return g.flags&131072?n:g}function $Oe(n){if(n.flags&524288){let a=l_(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&oo(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?oo(n.types,$Oe):!1}function Plt(n,a,c){for(let u of ms(n))if(Yye(a,u.escapedName,c))return!0;return!1}function eye(n){return n===Xo||n===Zo||n.objectFlags&8?Y:ZOe(n.symbol,n.typeParameters)}function QOe(n){return ZOe(n,qi(n).typeParameters)}function ZOe(n,a=Xe){var c,u;let _=qi(n);if(!_.variances){(c=rr)==null||c.push(rr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:hu(Xs(n))});let g=kE;kE||(kE=!0,w1=fd.length),_.variances=Xe;let T=[];for(let P of a){let W=tye(P),V=W&16384?W&8192?0:1:W&8192?2:void 0;if(V===void 0){let te=!1,ye=!1,_e=la;la=At=>At?ye=!0:te=!0;let je=g5(n,P,Ep),mt=g5(n,P,Rs);V=(ya(mt,je)?1:0)|(ya(je,mt)?2:0),V===3&&ya(g5(n,P,Ac),je)&&(V=4),la=_e,(te||ye)&&(te&&(V|=8),ye&&(V|=16))}T.push(V)}g||(kE=!1,w1=0),_.variances=T,(u=rr)==null||u.pop({variances:T.map(x.formatVariance)})}return _.variances}function g5(n,a,c){let u=OS(a,c),_=Xs(n);if(Vt(_))return _;let g=n.flags&524288?cC(n,dv(qi(n).typeParameters,u)):sv(_,dv(_.typeParameters,u));return ct.add(hu(g)),g}function BZ(n){return ct.has(hu(n))}function tye(n){var a;return tu((a=n.symbol)==null?void 0:a.declarations,(c,u)=>c|lu(u),0)&28672}function Mlt(n,a){for(let c=0;c!!(a.flags&262144)||GZ(a))}function wlt(n,a,c,u){let _=[],g="",T=W(n,0),P=W(a,0);return`${g}${T},${P}${c}`;function W(V,te=0){let ye=""+V.target.id;for(let _e of Vs(V)){if(_e.flags&262144){if(u||Llt(_e)){let je=_.indexOf(_e);je<0&&(je=_.length,_.push(_e)),ye+="="+je;continue}g="*"}else if(te<4&&GZ(_e)){ye+="<"+W(_e,te+1)+">";continue}ye+="-"+_e.id}return ye}}function VZ(n,a,c,u,_){if(u===np&&n.id>a.id){let T=n;n=a,a=T}let g=c?":"+c:"";return GZ(n)&&GZ(a)?wlt(n,a,g,_):`${n.id},${a.id}${g}`}function y5(n,a){if(Tl(n)&6){for(let c of n.links.containingType.types){let u=ha(c,n.escapedName),_=u&&y5(u,a);if(_)return _}return}return a(n)}function dx(n){return n.parent&&n.parent.flags&32?Xs(Ru(n)):void 0}function jZ(n){let a=dx(n),c=a&&Dp(a)[0];return c&&Ue(c,n.escapedName)}function Olt(n,a){return y5(n,c=>{let u=dx(c);return u?rC(u,a):!1})}function Wlt(n,a){return!y5(a,c=>Tf(c)&4?!Olt(n,dx(c)):!1)}function e8e(n,a,c){return y5(a,u=>Tf(u,c)&4?!rC(n,dx(u)):!1)?void 0:n}function zM(n,a,c,u=3){if(c>=u){if((Lr(n)&96)===96&&(n=t8e(n)),n.flags&2097152)return gt(n.types,P=>zM(P,a,c,u));let _=UZ(n),g=0,T=0;for(let P=0;P=T&&(g++,g>=u))return!0;T=W.id}}}return!1}function t8e(n){let a;for(;(Lr(n)&96)===96&&(a=LA(n))&&(a.symbol||a.flags&2097152&>(a.types,c=>!!c.symbol));)n=a;return n}function n8e(n,a){return(Lr(n)&96)===96&&(n=t8e(n)),n.flags&2097152?gt(n.types,c=>n8e(c,a)):UZ(n)===a}function UZ(n){if(n.flags&524288&&!vye(n)){if(Lr(n)&4&&n.node)return n.node;if(n.symbol&&!(Lr(n)&16&&n.symbol.flags&32))return n.symbol;if(wa(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 Flt(n,a){return nye(n,a,I8)!==0}function nye(n,a,c){if(n===a)return-1;let u=Tf(n)&6,_=Tf(a)&6;if(u!==_)return 0;if(u){if(TC(n)!==TC(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return f_(n)!==f_(a)?0:c(sr(n),sr(a))}function zlt(n,a,c){let u=Kp(n),_=Kp(a),g=Q_(n),T=Q_(a),P=zh(n),W=zh(a);return!!(u===_&&g===T&&P===W||c&&g<=T)}function v5(n,a,c,u,_,g){if(n===a)return-1;if(!zlt(n,a,c)||Nn(n.typeParameters)!==Nn(a.typeParameters))return 0;if(a.typeParameters){let W=Np(n.typeParameters,a.typeParameters);for(let V=0;Va|(c.flags&1048576?r8e(c.types):c.flags),0)}function Vlt(n){if(n.length===1)return n[0];let a=J?Pc(n,u=>cc(u,_=>!(_.flags&98304))):n,c=Glt(a)?ei(a):tu(a,(u,_)=>Ob(u,_)?_:u);return a===n?c:S5(c,r8e(n)&98304)}function jlt(n){return tu(n,(a,c)=>Ob(c,a)?c:a)}function Gf(n){return!!(Lr(n)&4)&&(n.target===Xo||n.target===Zo)}function BM(n){return!!(Lr(n)&4)&&n.target===Zo}function a0(n){return Gf(n)||wa(n)}function b5(n){return Gf(n)&&!BM(n)||wa(n)&&!n.target.readonly}function E5(n){return Gf(n)?Vs(n)[0]:void 0}function uv(n){return Gf(n)||!(n.flags&98304)&&ya(n,lf)}function rye(n){return b5(n)||!(n.flags&98305)&&ya(n,Zl)}function iye(n){if(!(Lr(n)&4)||!(Lr(n.target)&3))return;if(Lr(n)&33554432)return Lr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let a=n.target;if(Lr(a)&1){let _=Es(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}let c=Dp(a);if(c.length!==1||Cb(n.symbol).size)return;let u=Nn(a.typeParameters)?io(c[0],Np(a.typeParameters,Vs(n).slice(0,a.typeParameters.length))):c[0];return Nn(Vs(n))>Nn(a.typeParameters)&&(u=Up(u,Ja(Vs(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function i8e(n){return J?n===Pi:n===Nt}function HZ(n){let a=E5(n);return!!a&&i8e(a)}function GM(n){let a;return wa(n)||!!ha(n,"0")||uv(n)&&!!(a=Ue(n,"length"))&&ap(a,c=>!!(c.flags&256))}function KZ(n){return uv(n)||GM(n)}function Ult(n,a){let c=Ue(n,""+a);if(c)return c;if(ap(n,wa))return l8e(n,a,B.noUncheckedIndexedAccess?Me:void 0)}function Hlt(n){return!(n.flags&240544)}function u_(n){return!!(n.flags&109472)}function o8e(n){let a=cy(n);return a.flags&2097152?gt(a.types,u_):u_(a)}function Klt(n){return n.flags&2097152&&Vr(n.types,u_)||n}function D8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:oo(n.types,u_):u_(n)}function my(n){return n.flags&1056?pZ(n):n.flags&402653312?Ne:n.flags&256?It:n.flags&2048?Dt:n.flags&512?gi:n.flags&1048576?Jlt(n):n}function Jlt(n){let a=`B${hu(n)}`;return V1(a)??lb(a,ll(n,my))}function oye(n){return n.flags&402653312?Ne:n.flags&288?It:n.flags&2048?Dt:n.flags&512?gi:n.flags&1048576?ll(n,oye):n}function FS(n){return n.flags&1056&&wS(n)?pZ(n):n.flags&128&&wS(n)?Ne:n.flags&256&&wS(n)?It:n.flags&2048&&wS(n)?Dt:n.flags&512&&wS(n)?gi:n.flags&1048576?ll(n,FS):n}function a8e(n){return n.flags&8192?xi:n.flags&1048576?ll(n,a8e):n}function aye(n,a){return Oee(n,a)||(n=a8e(FS(n))),gu(n)}function qlt(n,a,c){if(n&&u_(n)){let u=a?c?U8(a):a:void 0;n=aye(n,u)}return n}function sye(n,a,c,u){if(n&&u_(n)){let _=a?jS(c,a,u):void 0;n=aye(n,_)}return n}function wa(n){return!!(Lr(n)&4&&n.target.objectFlags&8)}function Fb(n){return wa(n)&&!!(n.target.combinedFlags&8)}function s8e(n){return Fb(n)&&n.target.elementFlags.length===1}function JZ(n){return VM(n,n.target.fixedLength)}function l8e(n,a,c){return ll(n,u=>{let _=u,g=JZ(_);return g?c&&a>=Dge(_.target)?ei([g,c]):g:Me})}function Xlt(n){let a=JZ(n);return a&&Bd(a)}function VM(n,a,c=0,u=!1,_=!1){let g=lv(n)-c;if(a(c&12)===(a.target.elementFlags[u]&12))}function c8e({value:n}){return n.base10Value==="0"}function d8e(n){return cc(n,a=>dm(a,4194304))}function $lt(n){return ll(n,Qlt)}function Qlt(n){return n.flags&4?Yo:n.flags&8?Ha:n.flags&64?$d:n===En||n===Ut||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&c8e(n)?n:Fr}function S5(n,a){let c=a&~n.flags&98304;return c===0?n:ei(c===32768?[n,Me]:c===65536?[n,ue]:[n,Me,ue])}function zb(n,a=!1){x.assert(J);let c=a?ie:Me;return n===c||n.flags&1048576&&n.types[0]===c?n:ei([n,c])}function Zlt(n){return Fu||(Fu=OM("NonNullable",524288,void 0)||lt),Fu!==lt?cC(Fu,[n]):ga([n,Ca])}function _y(n){return J?JA(n,2097152):n}function u8e(n){return J?ei([n,H]):n}function qZ(n){return J?aee(n,H):n}function XZ(n,a,c){return c?tN(a)?zb(n):u8e(n):n}function C8(n,a){return aF(a)?_y(n):Ud(a)?qZ(n):n}function Bb(n,a){return Ae&&a?aee(n,k):n}function N8(n){return n===k||!!(n.flags&1048576)&&n.types[0]===k}function YZ(n){return Ae?aee(n,k):um(n,524288)}function ect(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function $Z(n){let a=Lr(n);return n.flags&2097152?oo(n.types,$Z):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!Qee(n))||!!(a&4194304)||!!(a&1024&&$Z(n.source))}function UA(n,a){let c=Ka(n.flags,n.escapedName,Tl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);let u=qi(n).nameType;return u&&(c.links.nameType=u),c}function tct(n,a){let c=aa();for(let u of Nb(n)){let _=sr(u),g=a(_);c.set(u.escapedName,g===_?u:UA(u,g))}return c}function P8(n){if(!(c0(n)&&Lr(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,u=tct(n,P8),_=Ds(c.symbol,u,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function p8e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function f8e(n){if(!n.siblings){let a=[];for(let c of f8e(n.parent))if(c0(c)){let u=e0(c,n.propertyName);u&&qA(sr(u),_=>{a.push(_)})}n.siblings=a}return n.siblings}function nct(n){if(!n.resolvedProperties){let a=new Map;for(let c of f8e(n))if(c0(c)&&!(Lr(c)&2097152))for(let u of ms(c))a.set(u.escapedName,u);n.resolvedProperties=Wo(a.values())}return n.resolvedProperties}function rct(n,a){if(!(n.flags&4))return n;let c=sr(n),u=a&&p8e(a,n.escapedName,void 0),_=lye(c,u);return _===c?n:UA(n,_)}function ict(n){let a=Be.get(n.escapedName);if(a)return a;let c=UA(n,ie);return c.flags|=16777216,Be.set(n.escapedName,c),c}function oct(n,a){let c=aa();for(let _ of Nb(n))c.set(_.escapedName,rct(_,a));if(a)for(let _ of nct(a))c.has(_.escapedName)||c.set(_.escapedName,ict(_));let u=Ds(n.symbol,c,Xe,Xe,Pc(_u(n),_=>Oh(_.keyType,Hp(_.type),_.isReadonly)));return u.objectFlags|=Lr(n)&266240,u}function Hp(n){return lye(n,void 0)}function lye(n,a){if(Lr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=G;else if(c0(n))c=oct(n,a);else if(n.flags&1048576){let u=a||p8e(void 0,void 0,n.types),_=Pc(n.types,g=>g.flags&98304?g:lye(g,u));c=ei(_,gt(_,fy)?2:1)}else n.flags&2097152?c=ga(Pc(n.types,Hp)):a0(n)&&(c=sv(n.target,Pc(Vs(n),Hp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function QZ(n){let a=!1;if(Lr(n)&65536){if(n.flags&1048576)if(gt(n.types,fy))a=!0;else for(let c of n.types)QZ(c)&&(a=!0);if(a0(n))for(let c of Vs(n))QZ(c)&&(a=!0);if(c0(n))for(let c of Nb(n)){let u=sr(c);Lr(u)&65536&&(QZ(u)||Ve(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,Si(c),Vn(Hp(u))),a=!0)}}return a}function s0(n,a,c){let u=Vn(Hp(a));if(ir(n)&&!ck(Gn(n),B))return;let _;switch(n.kind){case 226:case 172:case 171:_=fe?f.Member_0_implicitly_has_an_1_type:f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let g=n;if(Fe(g.name)){let T=eE(g.name);if((XI(g.parent)||_h(g.parent)||hh(g.parent))&&g.parent.parameters.includes(g)&&(hl(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||T&&eU(T))){let P="arg"+g.parent.parameters.indexOf(g),W=Ts(g.name)+(g.dotDotDotToken?"[]":"");md(fe,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,P,W);return}}_=n.dotDotDotToken?fe?f.Rest_parameter_0_implicitly_has_an_any_type:f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:fe?f.Parameter_0_implicitly_has_an_1_type:f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(_=f.Binding_element_0_implicitly_has_an_1_type,!fe)return;break;case 324:Ve(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 330:fe&&wR(n.parent)&&Ve(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(fe&&!n.name){c===3?Ve(n,f.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):Ve(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}_=fe?c===3?f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:fe&&Ve(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=fe?f.Variable_0_implicitly_has_an_1_type:f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}md(fe,n,_,Ts(Po(n)),u)}function ZZ(n,a,c){r(()=>{fe&&Lr(a)&65536&&(!c||!Uye(n))&&(QZ(a)||s0(n,a,c))})}function cye(n,a,c){let u=Kp(n),_=Kp(a),g=z8(n),T=z8(a),P=T?_-1:_,W=g?P:Math.min(u,P),V=n0(n);if(V){let te=n0(a);te&&c(V,te)}for(let te=0;tea.typeParameter),mn(n.inferences,(a,c)=>()=>(a.isFixed||(cct(n),eee(n.inferences),a.isFixed=!0),bye(n,c))))}function lct(n){return Vge(mn(n.inferences,a=>a.typeParameter),mn(n.inferences,(a,c)=>()=>bye(n,c)))}function eee(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function pye(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function cct(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let u=a.kind===174?lWe(a,2):Hu(a,2);u&&hy(n.inferences,c,u)}n.intraExpressionInferenceSites=void 0}}function fye(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function m8e(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 dct(n){let a=jr(n.inferences,EC);return a.length?uye(mn(a,m8e),n.signature,n.flags,n.compareTypes):void 0}function mye(n){return n&&n.mapper}function l0(n){let a=Lr(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!_8e(n)&&(a&4&&(n.node||gt(Vs(n),l0))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!_8e(n)&>(n.types,l0));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function _8e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=cl(n.aliasSymbol,265);return!!(a&&Fn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function L8(n,a,c=0){return!!(n===a||n.flags&3145728&>(n.types,u=>L8(u,a,c))||c<3&&n.flags&16777216&&(L8(r0(n),a,c+1)||L8(i0(n),a,c+1)))}function uct(n,a){let c=Ff(n);return c?!!c.type&&L8(c.type,a):L8(ds(n),a)}function pct(n){let a=aa();qA(n,u=>{if(!(u.flags&128))return;let _=pl(u.value),g=Ka(4,_);g.links.type=G,u.symbol&&(g.declarations=u.symbol.declarations,g.valueDeclaration=u.symbol.valueDeclaration),a.set(_,g)});let c=n.flags&4?[Oh(Ne,Ca,!1)]:Xe;return Ds(void 0,a,Xe,Xe,c)}function h8e(n,a,c){let u=n.id+","+a.id+","+c.id;if(Kc.has(u))return Kc.get(u);let _=n.id+","+(a.target||a).id;if(Bo(tp,_))return;tp.push(_);let g=fct(n,a,c);return tp.pop(),Kc.set(u,g),g}function _ye(n){return!(Lr(n)&262144)||c0(n)&>(ms(n),a=>_ye(sr(a)))||wa(n)&>(LS(n),_ye)}function fct(n,a,c){if(!(vg(n,Ne)||ms(n).length!==0&&_ye(n)))return;if(Gf(n))return Bd(tee(Vs(n)[0],a,c),BM(n));if(wa(n)){let _=mn(LS(n),T=>tee(T,a,c)),g=kh(a)&4?Pc(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return Wh(_,g,n.target.readonly,n.target.labeledElementDeclarations)}let u=kf(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=c,u}function mct(n){let a=qi(n);return a.type||(a.type=tee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function tee(n,a,c){let u=Cp(c.type,s_(a)),_=ly(a),g=fye(u);return hy([g],n,_),g8e(g)||un}function*hye(n,a,c,u){let _=ms(a);for(let g of _)if(!awe(g)&&(c||!(g.flags&16777216||Tl(g)&48))){let T=ha(n,g.escapedName);if(!T)yield g;else if(u){let P=sr(g);if(P.flags&109472){let W=sr(T);W.flags&1||gu(W)===gu(P)||(yield g)}}}}function gye(n,a,c,u){return mW(hye(n,a,c,u))}function _ct(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthsx(g,_),n)===n&&nee(n,a)}return!1}function b8e(n,a){if(a.flags&2097152)return oo(a.types,c=>c===ac||b8e(n,c));if(a.flags&4||ya(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&v8e(c,!1)||a.flags&64&&F6(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&nee(Uu(c),a)||a.flags&134217728&&ree(n,a))}if(n.flags&134217728){let c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&ya(n.types[0],a)}return!1}function E8e(n,a){return n.flags&128?S8e([n.value],Xe,a):n.flags&134217728?bL(n.texts,a.texts)?mn(n.types,vct):S8e(n.texts,n.types,a):void 0}function ree(n,a){let c=E8e(n,a);return!!c&&oo(c,(u,_)=>b8e(u,a.types[_]))}function vct(n){return n.flags&402653317?n:FA(["",""],[n])}function S8e(n,a,c){let u=n.length-1,_=n[0],g=n[u],T=c.texts,P=T.length-1,W=T[0],V=T[P];if(u===0&&_.length0){let nr=_e,Mn=je;for(;Mn=mt(nr).indexOf(sn,Mn),!(Mn>=0);){if(nr++,nr===n.length)return;Mn=0}At(nr,Mn),je+=sn.length}else if(je!Bo(hr,is)):Pn,Co?jr(Xn,is=>!Bo(Co,is)):Xn]}function nr(Pn,Xn,ro){let hr=Pn.length!!On(Co));if(!hr||Xn&&hr!==Xn)return;Xn=hr}return Xn}function Yn(Pn,Xn,ro){let hr=0;if(ro&1048576){let Co,is=Pn.flags&1048576?Pn.types:[Pn],vs=new Array(is.length),Gd=!1;for(let Oa of Xn)if(On(Oa))Co=Oa,hr++;else for(let Pu=0;Puvs[Ol]?void 0:Pu);if(Oa.length){_e(ei(Oa),Co);return}}}else for(let Co of Xn)On(Co)?hr++:_e(Pn,Co);if(ro&2097152?hr===1:hr>0)for(let Co of Xn)On(Co)&&je(Pn,Co,1)}function jn(Pn,Xn,ro){if(ro.flags&1048576||ro.flags&2097152){let hr=!1;for(let Co of ro.types)hr=jn(Pn,Xn,Co)||hr;return hr}if(ro.flags&4194304){let hr=On(ro.type);if(hr&&!hr.isFixed&&!y8e(Pn)){let Co=h8e(Pn,Xn,ro);Co&&je(Co,hr.typeParameter,Lr(Pn)&262144?16:8)}return!0}if(ro.flags&262144){je(J_(Pn,Pn.pattern?2:0),ro,32);let hr=kA(ro);if(hr&&jn(Pn,Xn,hr))return!0;let Co=mn(ms(Pn),sr),is=mn(_u(Pn),vs=>vs!==zr?vs.type:Fr);return _e(ei(Eo(Co,is)),ly(Xn)),!0}return!1}function $n(Pn,Xn){if(Pn.flags&16777216)_e(Pn.checkType,Xn.checkType),_e(Pn.extendsType,Xn.extendsType),_e(r0(Pn),r0(Xn)),_e(i0(Pn),i0(Xn));else{let ro=[r0(Xn),i0(Xn)];At(Pn,ro,Xn.flags,_?64:0)}}function Ro(Pn,Xn){let ro=E8e(Pn,Xn),hr=Xn.types;if(ro||oo(Xn.texts,Co=>Co.length===0))for(let Co=0;Cogl|ot.flags,0);if(!(Ol&4)){let gl=is.value;Ol&296&&!v8e(gl,!0)&&(Ol&=-297),Ol&2112&&!F6(gl,!0)&&(Ol&=-2113);let ot=tu(Pu,(Se,Cn)=>Cn.flags&Ol?Se.flags&4?Se:Cn.flags&4?is:Se.flags&134217728?Se:Cn.flags&134217728&&ree(is,Cn)?is:Se.flags&268435456?Se:Cn.flags&268435456&&gl===yOe(Cn.symbol,gl)?is:Se.flags&128?Se:Cn.flags&128&&Cn.value===gl?Cn:Se.flags&8?Se:Cn.flags&8?d_(+gl):Se.flags&32?Se:Cn.flags&32?d_(+gl):Se.flags&256?Se:Cn.flags&256&&Cn.value===+gl?Cn:Se.flags&64?Se:Cn.flags&64?yct(gl):Se.flags&2048?Se:Cn.flags&2048&&W0(Cn.value)===gl?Cn:Se.flags&16?Se:Cn.flags&16?gl==="true"?wn:gl==="false"?Ut:gi:Se.flags&512?Se:Cn.flags&512&&Cn.intrinsicName===gl?Cn:Se.flags&32768?Se:Cn.flags&32768&&Cn.intrinsicName===gl?Cn:Se.flags&65536?Se:Cn.flags&65536&&Cn.intrinsicName===gl?Cn:Se:Se,Fr);if(!(ot.flags&131072)){_e(ot,vs);continue}}}}_e(is,vs)}}function bo(Pn,Xn){_e(hf(Pn),hf(Xn)),_e(ly(Pn),ly(Xn));let ro=av(Pn),hr=av(Xn);ro&&hr&&_e(ro,hr)}function Fo(Pn,Xn){var ro,hr;if(Lr(Pn)&4&&Lr(Xn)&4&&(Pn.target===Xn.target||Gf(Pn)&&Gf(Xn))){nr(Vs(Pn),Vs(Xn),eye(Pn.target));return}if(ju(Pn)&&ju(Xn)&&bo(Pn,Xn),Lr(Xn)&32&&!Xn.declaration.nameType){let Co=hf(Xn);if(jn(Pn,Xn,Co))return}if(!hct(Pn,Xn)){if(a0(Pn)){if(wa(Xn)){let Co=lv(Pn),is=lv(Xn),vs=Vs(Xn),Gd=Xn.target.elementFlags;if(wa(Pn)&&Ylt(Pn,Xn)){for(let Ol=0;Ol0){let is=Jo(Xn,ro),vs=is.length;for(let Gd=0;Gd1){let a=jr(n,vye);if(a.length){let c=ei(a,2);return Eo(jr(n,u=>!vye(u)),[c])}}return n}function Act(n){return n.priority&416?ga(n.contraCandidates):jlt(n.contraCandidates)}function Ict(n,a){let c=Tct(n.candidates),u=Sct(n.typeParameter)||wA(n.typeParameter),_=!u&&n.topLevel&&(n.isFixed||!uct(a,n.typeParameter)),g=u?Pc(c,gu):_?Pc(c,FS):c,T=n.priority&416?ei(g,2):Vlt(g);return Hp(T)}function bye(n,a){let c=n.inferences[a];if(!c.inferredType){let u,_;if(n.signature){let T=c.candidates?Ict(c,n.signature):void 0,P=c.contraCandidates?Act(c):void 0;if(T||P){let W=T&&(!P||!(T.flags&131072)&>(c.contraCandidates,V=>Ob(T,V))&&oo(n.inferences,V=>V!==c&&Cu(V.typeParameter)!==c.typeParameter||oo(V.candidates,te=>Ob(te,T))));u=W?T:P,_=W?P:T}else if(n.flags&1)u=go;else{let W=OA(c.typeParameter);W&&(u=io(W,nlt(tlt(n,a),n.nonFixingMapper)))}}else u=g8e(c);c.inferredType=u||Eye(!!(n.flags&2));let g=Cu(c.typeParameter);if(g){let T=io(g,n.nonFixingMapper);(!u||!n.compareTypes(u,Up(T,u)))&&(c.inferredType=_&&n.compareTypes(_,Up(T,_))?_:T)}}return c.inferredType}function Eye(n){return n?G:un}function Sye(n){let a=[];for(let c=0;cpu(a)||Tm(a)||gp(a)))}function iee(n,a,c,u){switch(n.kind){case 80:if(!NI(n)){let T=Wm(n);return T!==lt?`${u?rs(u):"-1"}|${hu(a)}|${hu(c)}|${ba(T)}`:void 0}case 110:return`0|${u?rs(u):"-1"}|${hu(a)}|${hu(c)}`;case 235:case 217:return iee(n.expression,a,c,u);case 166:let _=iee(n.left,a,c,u);return _&&_+"."+n.right.escapedText;case 211:case 212:let g=HA(n);if(g!==void 0){let T=iee(n.expression,a,c,u);return T&&T+"."+g}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${rs(n)}#${hu(a)}`}}function Ad(n,a){switch(a.kind){case 217:case 235:return Ad(n,a.expression);case 226:return Mc(a)&&Ad(n,a.left)||dr(a)&&a.operatorToken.kind===28&&Ad(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return NI(n)?a.kind===110:a.kind===80&&Wm(n)===Wm(a)||(wi(a)||Xa(a))&&ff(Wm(n))===Sr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Ad(n.expression,a);case 211:case 212:let c=HA(n),u=Ns(a)?HA(a):void 0;return c!==void 0&&u!==void 0&&u===c&&Ad(n.expression,a.expression);case 166:return Ns(a)&&n.right.escapedText===HA(a)&&Ad(n.left,a.expression);case 226:return dr(n)&&n.operatorToken.kind===28&&Ad(n.right,a)}return!1}function HA(n){if(kr(n))return n.name.escapedText;if(Js(n))return xct(n);if(Xa(n)){let a=$a(n);return a?pl(a):void 0}if(Ao(n))return""+n.parent.parameters.indexOf(n)}function Aye(n){return n.flags&8192?n.escapedName:n.flags&384?pl(""+n.value):void 0}function xct(n){return $p(n.argumentExpression)?pl(n.argumentExpression.text):Bl(n.argumentExpression)?Rct(n.argumentExpression):void 0}function Rct(n){let a=Bs(n,111551,!0);if(!a||!(JM(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let u=eo(c);if(u){let _=Aye(u);if(_!==void 0)return _}if(dT(c)&&Qg(c,n)){let _=D2(c);if(_){let g=Qo(c.parent)?K_(c):xd(_);return g&&Aye(g)}if(Y0(c))return Ux(c.name)}}function A8e(n,a){for(;Ns(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function KA(n,a){for(;Ud(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function jM(n,a){if(n&&n.flags&1048576){let c=Iwe(n,a);if(c&&Tl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!pC(sr(c))),!!c.links.isDiscriminantProperty}return!1}function I8e(n,a){let c;for(let u of n)if(jM(a,u.escapedName)){if(c){c.push(u);continue}c=[u]}return c}function Dct(n,a){let c=new Map,u=0;for(let _ of n)if(_.flags&61603840){let g=Ue(_,a);if(g){if(!D8(g))return;let T=!1;qA(g,P=>{let W=hu(gu(P)),V=c.get(W);V?V!==un&&(c.set(W,un),T=!0):c.set(W,_)}),T||u++}}return u>=10&&u*2>=n.length?c:void 0}function T5(n){let a=n.types;if(!(a.length<10||Lr(n)&32768||yv(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=gn(a,_=>_.flags&59506688?gn(ms(_),g=>u_(sr(g))?g.escapedName:void 0):void 0),u=c&&Dct(a,c);n.keyPropertyName=u?c:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function A5(n,a){var c;let u=(c=n.constituentMap)==null?void 0:c.get(hu(gu(a)));return u!==un?u:void 0}function x8e(n,a){let c=T5(n),u=c&&Ue(a,c);return u&&A5(n,u)}function Cct(n,a){let c=T5(n),u=c&&Vr(a.properties,g=>g.symbol&&g.kind===303&&g.symbol.escapedName===c&&M5(g.initializer)),_=u&&eG(u.initializer);return _&&A5(n,_)}function R8e(n,a){return Ad(n,a)||A8e(n,a)}function D8e(n,a){if(n.arguments){for(let c of n.arguments)if(R8e(a,c)||KA(c,a))return!0}return!!(n.expression.kind===211&&R8e(a,n.expression.expression))}function Iye(n){return(!n.id||n.id<0)&&(n.id=Use,Use++),n.id}function Nct(n,a){if(!(n.flags&1048576))return ya(n,a);for(let c of n.types)if(ya(c,a))return!0;return!1}function Pct(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${hu(n)},${hu(a)}`;return V1(c)??lb(c,Mct(n,a))}function Mct(n,a){let c=cc(n,_=>Nct(a,_)),u=a.flags&512&&wS(a)?ll(c,cx):c;return ya(a,u)?u:n}function xye(n){let a=l_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Ob(n,Lt))}function UM(n,a){return Rye(n,a)&a}function dm(n,a){return UM(n,a)!==0}function Rye(n,a){n.flags&467927040&&(n=zd(n)||un);let c=n.flags;if(c&268435460)return J?16317953:16776705;if(c&134217856){let u=c&128&&n.value==="";return J?u?12123649:7929345:u?12582401:16776705}if(c&40)return J?16317698:16776450;if(c&256){let u=n.value===0;return J?u?12123394:7929090:u?12582146:16776450}if(c&64)return J?16317188:16775940;if(c&2048){let u=c8e(n);return J?u?12122884:7928580:u?12581636:16775940}return c&16?J?16316168:16774920:c&528?J?n===Ut||n===En?12121864:7927560:n===Ut||n===En?12580616:16774920:c&524288?a&(J?83427327:83886079)?Lr(n)&16&&fy(n)?J?83427327:83886079:xye(n)?J?7880640:16728e3:J?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?J?7925520:16772880:c&67108864?J?7888800:16736160:c&131072?0:c&1048576?tu(n.types,(u,_)=>u|Rye(_,a),0):c&2097152?Lct(n,a):83886079}function Lct(n,a){let c=Rl(n,402784252),u=0,_=134217727;for(let g of n.types)if(!(c&&g.flags&524288)){let T=Rye(g,a);u|=T,_&=T}return u&8256|_&134209471}function um(n,a){return cc(n,c=>dm(c,a))}function JA(n,a){let c=C8e(um(J&&n.flags&2?al:n,a));if(J)switch(a){case 524288:return ll(c,u=>dm(u,65536)?ga([u,dm(u,131072)&&!Rl(c,65536)?ei([Ca,ue]):Ca]):u);case 1048576:return ll(c,u=>dm(u,131072)?ga([u,dm(u,65536)&&!Rl(c,32768)?ei([Ca,Me]):Ca]):u);case 2097152:case 4194304:return ll(c,u=>dm(u,262144)?Zlt(u):u)}return c}function C8e(n){return n===al?un:n}function Dye(n,a){return a?ei([mi(n),xd(a)]):n}function N8e(n,a){var c;let u=cv(a);if(!Qf(u))return ut;let _=Zf(u);return Ue(n,_)||k8((c=ox(n,_))==null?void 0:c.type)||ut}function P8e(n,a){return ap(n,GM)&&Ult(n,a)||k8(fv(65,n,Me,void 0))||ut}function k8(n){return n&&(B.noUncheckedIndexedAccess?ei([n,k]):n)}function M8e(n){return Bd(fv(65,n,Me,void 0)||ut)}function kct(n){return n.parent.kind===209&&Cye(n.parent)||n.parent.kind===303&&Cye(n.parent.parent)?Dye(I5(n),n.right):xd(n.right)}function Cye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function wct(n,a){return P8e(I5(n),n.elements.indexOf(a))}function Oct(n){return M8e(I5(n.parent))}function L8e(n){return N8e(I5(n.parent),n.name)}function Wct(n){return Dye(L8e(n),n.objectAssignmentInitializer)}function I5(n){let{parent:a}=n;switch(a.kind){case 249:return Ne;case 250:return aG(a)||ut;case 226:return kct(a);case 220:return Me;case 209:return wct(a,n);case 230:return Oct(a);case 303:return L8e(a);case 304:return Wct(a)}return ut}function Fct(n){let a=n.parent,c=w8e(a.parent),u=a.kind===206?N8e(c,n.propertyName||n.name):n.dotDotDotToken?M8e(c):P8e(c,a.elements.indexOf(n));return Dye(u,n.initializer)}function k8e(n){return Qr(n).resolvedType||xd(n)}function zct(n){return n.initializer?k8e(n.initializer):n.parent.parent.kind===249?Ne:n.parent.parent.kind===250&&aG(n.parent.parent)||ut}function w8e(n){return n.kind===260?zct(n):Fct(n)}function Bct(n){return n.kind===260&&n.initializer&&Tb(n.initializer)||n.kind!==208&&n.parent.kind===226&&Tb(n.parent.right)}function zS(n){switch(n.kind){case 217:return zS(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return zS(n.left);case 28:return zS(n.right)}}return n}function O8e(n){let{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?O8e(a):n}function Gct(n){return n.kind===296?gu(xd(n.expression)):Fr}function oee(n){let a=Qr(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(Gct(c))}return a.switchTypes}function W8e(n){if(gt(n.caseBlock.clauses,c=>c.kind===296&&!as(c.expression)))return;let a=[];for(let c of n.caseBlock.clauses){let u=c.kind===296?c.expression.text:void 0;a.push(u&&!Bo(a,u)?u:void 0)}return a}function Vct(n,a){return n.flags&1048576?!gn(n.types,c=>!Bo(a,c)):Bo(a,n)}function HM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&jct(n,a))}function jct(n,a){if(n.flags&1048576){for(let c of n.types)if(!dy(a.types,c))return!1;return!0}return n.flags&1056&&pZ(n)===a?!0:dy(a.types,n)}function qA(n,a){return n.flags&1048576?gn(n.types,a):a(n)}function Fm(n,a){return n.flags&1048576?gt(n.types,a):a(n)}function ap(n,a){return n.flags&1048576?oo(n.types,a):a(n)}function Uct(n,a){return n.flags&3145728?oo(n.types,a):a(n)}function cc(n,a){if(n.flags&1048576){let c=n.types,u=jr(c,a);if(u===c)return n;let _=n.origin,g;if(_&&_.flags&1048576){let T=_.types,P=jr(T,W=>!!(W.flags&1048576)||a(W));if(T.length-P.length===c.length-u.length){if(P.length===1)return P[0];g=Cge(1048576,P)}}return Pge(u,n.objectFlags&16809984,void 0,void 0,g)}return n.flags&131072||a(n)?n:Fr}function aee(n,a){return cc(n,c=>c!==a)}function Hct(n){return n.flags&1048576?n.types.length:1}function ll(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);let u=n.origin,_=u&&u.flags&1048576?u.types:n.types,g,T=!1;for(let P of _){let W=P.flags&1048576?ll(P,a,c):a(P);T||(T=P!==W),W&&(g?g.push(W):g=[W])}return T?g&&ei(g,c?0:1):n}function F8e(n,a,c,u){return n.flags&1048576&&c?ei(mn(n.types,a),1,c,u):ll(n,a)}function KM(n,a){return cc(n,c=>(c.flags&a)!==0)}function z8e(n,a){return Rl(n,134217804)&&Rl(a,402655616)?ll(n,c=>c.flags&4?KM(a,402653316):zA(c)&&!Rl(a,402653188)?KM(a,128):c.flags&8?KM(a,264):c.flags&64?KM(a,2112):c):n}function _C(n){return n.flags===0}function XA(n){return n.flags===0?n.type:n}function hC(n,a){return a?{flags:0,type:n.flags&131072?go:n}:n}function Kct(n){let a=kf(256);return a.elementType=n,a}function Nye(n){return kn[n.id]||(kn[n.id]=Kct(n))}function B8e(n,a){let c=P8(my(eG(a)));return HM(c,n.elementType)?n:Nye(ei([n.elementType,c]))}function Jct(n){return n.flags&131072?Jc:Bd(n.flags&1048576?ei(n.types,2):n)}function qct(n){return n.finalArrayType||(n.finalArrayType=Jct(n.elementType))}function x5(n){return Lr(n)&256?qct(n):n}function Xct(n){return Lr(n)&256?n.elementType:Fr}function Yct(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(Lr(c)&256))return!1;a=!0}return a}function G8e(n){let a=O8e(n),c=a.parent,u=kr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Fe(c.name)&&Dj(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!$h(c.parent)&&Id(xd(c.argumentExpression),296);return u||_}function $ct(n){return(wi(n)||Uo(n)||_p(n)||Ao(n))&&!!(yd(n)||ir(n)&&Mv(n)&&n.initializer&&F0(n.initializer)&&$f(n.initializer))}function see(n,a){if(n=Vl(n),n.flags&8752)return sr(n);if(n.flags&7){if(Tl(n)&262144){let u=n.links.syntheticOrigin;if(u&&see(u))return sr(n)}let c=n.valueDeclaration;if(c){if($ct(c))return sr(n);if(wi(c)&&c.parent.parent.kind===250){let u=c.parent.parent,_=R5(u.expression,void 0);if(_){let g=u.awaitModifier?15:13;return fv(g,_,Me,void 0)}}a&&Pa(a,Pr(c,f._0_needs_an_explicit_type_annotation,Si(n)))}}}function R5(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:let c=ff(Wm(n));return see(c,a);case 110:return ydt(n);case 108:return Wye(n);case 211:{let u=R5(n.expression,a);if(u){let _=n.name,g;if(Ki(_)){if(!u.symbol)return;g=ha(u,K2(u.symbol,_.escapedText))}else g=ha(u,_.escapedText);return g&&see(g,a)}return}case 217:return R5(n.expression,a)}}function D5(n){let a=Qr(n),c=a.effectsSignature;if(c===void 0){let u;if(dr(n)){let T=gC(n.right);u=Dve(T)}else n.parent.kind===244?u=R5(n.expression,void 0):n.expression.kind!==108&&(Ud(n)?u=X_(C8(po(n.expression),n.expression),n.expression):u=gC(n.expression));let _=Jo(u&&Nu(u)||un,0),g=_.length===1&&!_[0].typeParameters?_[0]:gt(_,V8e)?vC(n):void 0;c=a.effectsSignature=g&&V8e(g)?g:cn}return c===cn?void 0:c}function V8e(n){return!!(Ff(n)||n.declaration&&(sC(n.declaration)||un).flags&131072)}function Qct(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=fs(a.expression);return Ns(c)?fs(c.expression):void 0}function Zct(n){let a=Fn(n,NV),c=Gn(n),u=ph(c,a.statements.pos);Qa.add(Qc(c,u.start,u.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function C5(n){let a=lee(n,!1);return Pt=n,Bt=a,a}function N5(n){let a=fs(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(N5(a.left)||N5(a.right))||a.operatorToken.kind===57&&N5(a.left)&&N5(a.right))}function lee(n,a){for(;;){if(n===Pt)return Bt;let c=n.flags;if(c&4096){if(!a){let u=Iye(n),_=aA[u];return _!==void 0?_:aA[u]=lee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let u=D5(n.node);if(u){let _=Ff(u);if(_&&_.kind===3&&!_.type){let g=n.node.arguments[_.parameterIndex];if(g&&N5(g))return!1}if(ds(u).flags&131072)return!1}n=n.antecedent}else{if(c&4)return gt(n.antecedents,u=>lee(u,!1));if(c&8){let u=n.antecedents;if(u===void 0||u.length===0)return!1;n=u[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&TFe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Pt=void 0;let u=n.target,_=u.antecedents;u.antecedents=n.antecedents;let g=lee(n.antecedent,!1);return u.antecedents=_,g}else return!(c&1)}}}function cee(n,a){for(;;){let c=n.flags;if(c&4096){if(!a){let u=Iye(n),_=G1[u];return _!==void 0?_:G1[u]=cee(n,!0)}a=!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 oo(n.antecedents,u=>cee(u,!1));if(c&8)n=n.antecedents[0];else if(c&1024){let u=n.target,_=u.antecedents;u.antecedents=n.antecedents;let g=cee(n.antecedent,!1);return u.antecedents=_,g}else return!!(c&1)}}}function j8e(n){switch(n.kind){case 110:return!0;case 80:if(!NI(n)){let c=Wm(n);return JM(c)||uee(c)&&!U8e(c)}break;case 211:case 212:return j8e(n.expression)&&f_(Qr(n).resolvedSymbol||lt);case 206:case 207:let a=A_(n.parent);return Ao(a)||Doe(a)?!Pye(a):wi(a)&&pG(a)}return!1}function Gb(n,a,c=a,u,_=(g=>(g=ri(n,F2))==null?void 0:g.flowNode)()){let g,T=!1,P=0;if(we)return ut;if(!_)return a;qe++;let W=qg,V=XA(_e(_));qg=W;let te=Lr(V)&256&&G8e(n)?Jc:x5(V);if(te===Ri||n.parent&&n.parent.kind===235&&!(te.flags&131072)&&um(te,2097152).flags&131072)return a;return te===U?un:te;function ye(){return T?g:(T=!0,g=iee(n,a,c,u))}function _e(it){var kt;if(P===2e3)return(kt=rr)==null||kt.instant(rr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:it.id}),we=!0,Zct(n),ut;P++;let Qt;for(;;){let Jt=it.flags;if(Jt&4096){for(let Wn=W;Wn=0&&Qt.parameterIndex!(Wn.flags&163840)):kt.kind===221&&KA(kt.expression,n)&&(Jt=is(Jt,it.switchStatement,it.clauseStart,it.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));let ln=jn(kt,Jt);ln&&(Jt=bo(Jt,ln,it.switchStatement,it.clauseStart,it.clauseEnd))}return hC(Jt,_C(Qt))}function an(it){let kt=[],Qt=!1,Jt=!1,ln;for(let Wn of it.antecedents){if(!ln&&Wn.flags&128&&Wn.clauseStart===Wn.clauseEnd){ln=Wn;continue}let bi=_e(Wn),ui=XA(bi);if(ui===a&&a===c)return ui;yf(kt,ui),HM(ui,c)||(Qt=!0),_C(bi)&&(Jt=!0)}if(ln){let Wn=_e(ln),bi=XA(Wn);if(!(bi.flags&131072)&&!Bo(kt,bi)&&!TFe(ln.switchStatement)){if(bi===a&&a===c)return bi;kt.push(bi),HM(bi,c)||(Qt=!0),_C(Wn)&&(Jt=!0)}}return hC(Ln(kt,Qt?2:1),Jt)}function On(it){let kt=Iye(it),Qt=O1[kt]||(O1[kt]=new Map),Jt=ye();if(!Jt)return a;let ln=Qt.get(Jt);if(ln)return ln;for(let An=B_;An{let An=St(lo,Jt)||un;return!(An.flags&131072)&&!(ui.flags&131072)&&m5(ui,An)})}function Ro(it,kt,Qt,Jt,ln){if((Qt===37||Qt===38)&&it.flags&1048576){let Wn=T5(it);if(Wn&&Wn===HA(kt)){let bi=A5(it,xd(Jt));if(bi)return Qt===(ln?37:38)?bi:u_(Ue(bi,Wn)||un)?aee(it,bi):it}}return $n(it,kt,Wn=>ro(Wn,Qt,Jt,ln))}function bo(it,kt,Qt,Jt,ln){if(JtA5(it,ui)||un));if(bi!==un)return bi}return $n(it,kt,Wn=>vs(Wn,Qt,Jt,ln))}function Fo(it,kt,Qt){if(Ad(n,kt))return JA(it,Qt?4194304:8388608);J&&Qt&&KA(kt,n)&&(it=JA(it,2097152));let Jt=jn(kt,it);return Jt?$n(it,Jt,ln=>um(ln,Qt?4194304:8388608)):it}function fo(it,kt,Qt){let Jt=ha(it,kt);return Jt?!!(Jt.flags&16777216||Tl(Jt)&48)||Qt:!!ox(it,kt)||!Qt}function Rc(it,kt,Qt){let Jt=Zf(kt);if(Fm(it,Wn=>fo(Wn,Jt,!0)))return cc(it,Wn=>fo(Wn,Jt,Qt));if(Qt){let Wn=ist();if(Wn)return ga([it,cC(Wn,[kt,un])])}return it}function Vf(it,kt,Qt,Jt,ln){return ln=ln!==(Qt.kind===112)!=(Jt!==38&&Jt!==36),Br(it,kt,ln)}function sp(it,kt,Qt){switch(kt.operatorToken.kind){case 64:case 76:case 77:case 78:return Fo(Br(it,kt.right,Qt),kt.left,Qt);case 35:case 36:case 37:case 38:let Jt=kt.operatorToken.kind,ln=zS(kt.left),Wn=zS(kt.right);if(ln.kind===221&&as(Wn))return hr(it,ln,Jt,Wn,Qt);if(Wn.kind===221&&as(ln))return hr(it,Wn,Jt,ln,Qt);if(Ad(n,ln))return ro(it,Jt,Wn,Qt);if(Ad(n,Wn))return ro(it,Jt,ln,Qt);J&&(KA(ln,n)?it=Xn(it,Jt,Wn,Qt):KA(Wn,n)&&(it=Xn(it,Jt,ln,Qt)));let bi=jn(ln,it);if(bi)return Ro(it,bi,Jt,Wn,Qt);let ui=jn(Wn,it);if(ui)return Ro(it,ui,Jt,ln,Qt);if(gl(ln))return ot(it,Jt,Wn,Qt);if(gl(Wn))return ot(it,Jt,ln,Qt);if(aN(Wn)&&!Ns(ln))return Vf(it,ln,Wn,Jt,Qt);if(aN(ln)&&!Ns(Wn))return Vf(it,Wn,ln,Jt,Qt);break;case 104:return Se(it,kt,Qt);case 103:if(Ki(kt.left))return Pn(it,kt,Qt);let lo=zS(kt.right);if(N8(it)&&Ns(n)&&Ad(n.expression,lo)){let An=xd(kt.left);if(Qf(An)&&HA(n)===Zf(An))return um(it,Qt?524288:65536)}if(Ad(n,lo)){let An=xd(kt.left);if(Qf(An))return Rc(it,An,Qt)}break;case 28:return Br(it,kt.right,Qt);case 56:return Qt?Br(Br(it,kt.left,!0),kt.right,!0):ei([Br(it,kt.left,!1),Br(it,kt.right,!1)]);case 57:return Qt?ei([Br(it,kt.left,!0),Br(it,kt.right,!0)]):Br(Br(it,kt.left,!1),kt.right,!1)}return it}function Pn(it,kt,Qt){let Jt=zS(kt.right);if(!Ad(n,Jt))return it;x.assertNode(kt.left,Ki);let ln=See(kt.left);if(ln===void 0)return it;let Wn=ln.parent,bi=pc(x.checkDefined(ln.valueDeclaration,"should always have a declaration"))?sr(Wn):Xs(Wn);return Rr(it,bi,Qt,!0)}function Xn(it,kt,Qt,Jt){let ln=kt===35||kt===37,Wn=kt===35||kt===36?98304:32768,bi=xd(Qt);return ln!==Jt&&ap(bi,lo=>!!(lo.flags&Wn))||ln===Jt&&ap(bi,lo=>!(lo.flags&(3|Wn)))?JA(it,2097152):it}function ro(it,kt,Qt,Jt){if(it.flags&1)return it;(kt===36||kt===38)&&(Jt=!Jt);let ln=xd(Qt),Wn=kt===35||kt===36;if(ln.flags&98304){if(!J)return it;let bi=Wn?Jt?262144:2097152:ln.flags&65536?Jt?131072:1048576:Jt?65536:524288;return JA(it,bi)}if(Jt){if(!Wn&&(it.flags&2||Fm(it,Fh))){if(ln.flags&469893116||Fh(ln))return ln;if(ln.flags&524288)return Kr}let bi=cc(it,ui=>m5(ui,ln)||Wn&&ect(ui,ln));return z8e(bi,ln)}return u_(ln)?cc(it,bi=>!(o8e(bi)&&m5(bi,ln))):it}function hr(it,kt,Qt,Jt,ln){(Qt===36||Qt===38)&&(ln=!ln);let Wn=zS(kt.expression);if(!Ad(n,Wn)){J&&KA(Wn,n)&&ln===(Jt.text!=="undefined")&&(it=JA(it,2097152));let bi=jn(Wn,it);return bi?$n(it,bi,ui=>Co(ui,Jt,ln)):it}return Co(it,Jt,ln)}function Co(it,kt,Qt){return Qt?Gd(it,kt.text):JA(it,EK.get(kt.text)||32768)}function is(it,kt,Qt,Jt,ln){return Qt!==Jt&&oo(oee(kt).slice(Qt,Jt),ln)?um(it,2097152):it}function vs(it,kt,Qt,Jt){let ln=oee(kt);if(!ln.length)return it;let Wn=ln.slice(Qt,Jt),bi=Qt===Jt||Bo(Wn,Fr);if(it.flags&2&&!bi){let Zr;for(let Gi=0;Gim5(ui,Zr)),ui);if(!bi)return lo;let An=cc(it,Zr=>!(o8e(Zr)&&Bo(ln,gu(Klt(Zr)))));return lo.flags&131072?An:ei([lo,An])}function Gd(it,kt){switch(kt){case"string":return Oa(it,Ne,1);case"number":return Oa(it,It,2);case"bigint":return Oa(it,Dt,4);case"boolean":return Oa(it,gi,8);case"symbol":return Oa(it,xi,16);case"object":return it.flags&1?it:ei([Oa(it,Kr,32),Oa(it,ue,131072)]);case"function":return it.flags&1?it:Oa(it,Lt,64);case"undefined":return Oa(it,Me,65536)}return Oa(it,Kr,128)}function Oa(it,kt,Qt){return ll(it,Jt=>q_(Jt,kt,Mf)?dm(Jt,Qt)?Jt:Fr:Ob(kt,Jt)?kt:dm(Jt,Qt)?ga([Jt,kt]):Fr)}function Pu(it,kt,Qt,Jt){let ln=W8e(kt);if(!ln)return it;let Wn=Kl(kt.caseBlock.clauses,lo=>lo.kind===297);if(Qt===Jt||Wn>=Qt&&WnUM(An,lo)===lo)}let ui=ln.slice(Qt,Jt);return ei(mn(ui,lo=>lo?Gd(it,lo):Fr))}function Ol(it,kt,Qt,Jt){let ln=Kl(kt.caseBlock.clauses,ui=>ui.kind===297),Wn=Qt===Jt||ln>=Qt&&lnui.kind===296?Br(it,ui.expression,!0):Fr))}function gl(it){return(kr(it)&&gr(it.name)==="constructor"||Js(it)&&as(it.argumentExpression)&&it.argumentExpression.text==="constructor")&&Ad(n,it.expression)}function ot(it,kt,Qt,Jt){if(Jt?kt!==35&&kt!==37:kt!==36&&kt!==38)return it;let ln=xd(Qt);if(!ibe(ln)&&!ts(ln))return it;let Wn=ha(ln,"prototype");if(!Wn)return it;let bi=sr(Wn),ui=xt(bi)?void 0:bi;if(!ui||ui===Re||ui===Lt)return it;if(xt(it))return ui;return cc(it,An=>lo(An,ui));function lo(An,Zr){return An.flags&524288&&Lr(An)&1||Zr.flags&524288&&Lr(Zr)&1?An.symbol===Zr.symbol:Ob(An,Zr)}}function Se(it,kt,Qt){let Jt=zS(kt.left);if(!Ad(n,Jt))return Qt&&J&&KA(Jt,n)?JA(it,2097152):it;let ln=kt.right,Wn=xd(ln);if(!o0(Wn,Re))return it;let bi=D5(kt),ui=bi&&Ff(bi);if(ui&&ui.kind===1&&ui.parameterIndex===0)return Rr(it,ui.type,Qt,!0);if(!o0(Wn,Lt))return it;let lo=ll(Wn,Cn);return xt(it)&&(lo===Re||lo===Lt)||!Qt&&!(lo.flags&524288&&!Fh(lo))?it:Rr(it,lo,Qt,!0)}function Cn(it){let kt=Ue(it,"prototype");if(kt&&!xt(kt))return kt;let Qt=Jo(it,1);return Qt.length?ei(mn(Qt,Jt=>ds(g8(Jt)))):Ca}function Rr(it,kt,Qt,Jt){let ln=it.flags&1048576?`N${hu(it)},${hu(kt)},${(Qt?1:0)|(Jt?2:0)}`:void 0;return V1(ln)??lb(ln,di(it,kt,Qt,Jt))}function di(it,kt,Qt,Jt){if(!Qt){if(it===kt)return Fr;if(Jt)return cc(it,lo=>!o0(lo,kt));let ui=Rr(it,kt,!0,!1);return cc(it,lo=>!HM(lo,ui))}if(it.flags&3||it===kt)return kt;let ln=Jt?o0:Ob,Wn=it.flags&1048576?T5(it):void 0,bi=ll(kt,ui=>{let lo=Wn&&Ue(ui,Wn),An=lo&&A5(it,lo),Zr=ll(An||it,Jt?Gi=>o0(Gi,ui)?Gi:o0(ui,Gi)?ui:Fr:Gi=>f5(Gi,ui)?Gi:f5(ui,Gi)?ui:Ob(Gi,ui)?Gi:Ob(ui,Gi)?ui:Fr);return Zr.flags&131072?ll(it,Gi=>Rl(Gi,465829888)&&ln(ui,zd(Gi)||un)?ga([Gi,ui]):Fr):Zr});return bi.flags&131072?Ob(kt,it)?kt:ya(it,kt)?it:ya(kt,it)?kt:ga([it,kt]):bi}function Ai(it,kt,Qt){if(D8e(kt,n)){let Jt=Qt||!oT(kt)?D5(kt):void 0,ln=Jt&&Ff(Jt);if(ln&&(ln.kind===0||ln.kind===1))return Ii(it,ln,kt,Qt)}if(N8(it)&&Ns(n)&&kr(kt.expression)){let Jt=kt.expression;if(Ad(n.expression,zS(Jt.expression))&&Fe(Jt.name)&&Jt.name.escapedText==="hasOwnProperty"&&kt.arguments.length===1){let ln=kt.arguments[0];if(as(ln)&&HA(n)===pl(ln.text))return um(it,Qt?524288:65536)}}return it}function Ii(it,kt,Qt,Jt){if(kt.type&&!(xt(it)&&(kt.type===Re||kt.type===Lt))){let ln=Qct(kt,Qt);if(ln){if(Ad(n,ln))return Rr(it,kt.type,Jt,!1);J&&KA(ln,n)&&(Jt&&!dm(kt.type,65536)||!Jt&&ap(kt.type,F5))&&(it=JA(it,2097152));let Wn=jn(ln,it);if(Wn)return $n(it,Wn,bi=>Rr(bi,kt.type,Jt,!1))}}return it}function Br(it,kt,Qt){if(aF(kt)||dr(kt.parent)&&(kt.parent.operatorToken.kind===61||kt.parent.operatorToken.kind===78)&&kt.parent.left===kt)return Tr(it,kt,Qt);switch(kt.kind){case 80:if(!Ad(n,kt)&&N<5){let Jt=Wm(kt);if(JM(Jt)){let ln=Jt.valueDeclaration;if(ln&&wi(ln)&&!ln.type&&ln.initializer&&j8e(n)){N++;let Wn=Br(it,ln.initializer,Qt);return N--,Wn}}}case 110:case 108:case 211:case 212:return Fo(it,kt,Qt);case 213:return Ai(it,kt,Qt);case 217:case 235:return Br(it,kt.expression,Qt);case 226:return sp(it,kt,Qt);case 224:if(kt.operator===54)return Br(it,kt.operand,!Qt);break}return it}function Tr(it,kt,Qt){if(Ad(n,kt))return JA(it,Qt?2097152:262144);let Jt=jn(kt,it);return Jt?$n(it,Jt,ln=>um(ln,Qt?2097152:262144)):it}}function edt(n,a){if(n=ff(n),(a.kind===80||a.kind===81)&&(MN(a)&&(a=a.parent),Xh(a)&&(!$h(a)||LI(a)))){let c=qZ(LI(a)&&a.kind===211?bee(a,void 0,!0):xd(a));if(ff(Qr(a).resolvedSymbol)===n)return c}return kg(a)&&Cy(a.parent)&&Om(a.parent)?HB(a.parent.symbol):Kj(a)&&LI(a.parent)?NS(n):Rb(n)}function w8(n){return Fn(n.parent,a=>$o(a)&&!_T(a)||a.kind===268||a.kind===312||a.kind===172)}function U8e(n){return!H8e(n,void 0)}function H8e(n,a){let c=Fn(n.valueDeclaration,dee);if(!c)return!1;let u=Qr(c);return u.flags&131072||(u.flags|=131072,tdt(c)||J8e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&K8e(a.name))}function tdt(n){return!!Fn(n.parent,a=>dee(a)&&!!(Qr(a).flags&131072))}function dee(n){return ws(n)||Yi(n)}function J8e(n){switch(n.kind){case 80:if($h(n)){let c=Wm(n);if(uee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){let u=Fn(n,dee),_=Fn(c.valueDeclaration,dee);c.lastAssignmentPos=u===_?ndt(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:let a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){let c=Bs(n.propertyName||n.name,111551,!0,!0);c&&uee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}ji(n)||Go(n,J8e)}function ndt(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function JM(n){return n.flags&3&&($ye(n)&6)!==0}function uee(n){let a=n.valueDeclaration&&A_(n.valueDeclaration);return!!a&&(Ao(a)||wi(a)&&(X0(a.parent)||rdt(a)))}function rdt(n){return!!(n.parent.flags&1)&&!(Zb(n)&32||n.parent.parent.kind===243&&xh(n.parent.parent.parent))}function idt(n){let a=Qr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Mh(n,9))return nC(n.symbol),!0;let c=!!dm(YM(n,0),16777216);if(!H_())return nC(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function odt(n,a){return J&&a.kind===169&&a.initializer&&dm(n,16777216)&&!idt(a)?um(n,524288):n}function adt(n,a){let c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(Fm(n,X8e)&&GA(xd(c.argumentExpression)))}function q8e(n){return n.flags&2097152?gt(n.types,q8e):!!(n.flags&465829888&&cy(n).flags&1146880)}function X8e(n){return n.flags&2097152?gt(n.types,X8e):!!(n.flags&465829888&&!Rl(cy(n),98304))}function sdt(n,a){let c=(Fe(n)||kr(n)||Js(n))&&!((P_(n.parent)||OT(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Hu(n,8):Hu(n,void 0));return c&&!pC(c)}function Mye(n,a,c){return!(c&&c&2)&&Fm(n,q8e)&&(adt(n,a)||sdt(a,c))?ll(n,cy):n}function Y8e(n){return!!Fn(n,a=>{let c=a.parent;return c===void 0?"quit":Ll(c)?c.expression===a&&Bl(a):Kd(c)?c.name===a||c.propertyName===a:!1})}function pee(n,a){if(pt&&bA(n,111551)&&!TT(a)){let c=Wc(n);Td(n,!0)&1160127&&(em(B)||B0(B)&&Y8e(a)||!Y8(ff(c))?hb(n):id(n))}}function ldt(n,a,c){var u;let _=sr(n,c),g=n.valueDeclaration;if(g){if(Xa(g)&&!g.initializer&&!g.dotDotDotToken&&g.parent.elements.length>=2){let T=g.parent.parent,P=A_(T);if(P.kind===260&&KS(P)&6||P.kind===169){let W=Qr(T);if(!(W.flags&4194304)){W.flags|=4194304;let V=wr(T,0),te=V&&ll(V,cy);if(W.flags&=-4194305,te&&te.flags&1048576&&!(P.kind===169&&Pye(P))){let ye=g.parent,_e=Gb(ye,te,te,void 0,a.flowNode);return _e.flags&131072?Fr:gg(g,_e,!0)}}}}if(Ao(g)&&!g.type&&!g.initializer&&!g.dotDotDotToken){let T=g.parent;if(T.parameters.length>=2&&OZ(T)){let P=W8(T);if(P&&P.parameters.length===1&&qd(P)){let W=MM(io(sr(P.parameters[0]),(u=BS(T))==null?void 0:u.nonFixingMapper));if(W.flags&1048576&&ap(W,wa)&&!gt(T.parameters,Pye)){let V=Gb(T,W,W,void 0,a.flowNode),te=T.parameters.indexOf(g)-(M0(T)?1:0);return Cp(V,d_(te))}}}}}return _}function cdt(n,a){if(NI(n))return P5(n);let c=Wm(n);if(c===lt)return ut;if(c===Wt){if(LWe(n))return Ve(n,f.arguments_cannot_be_referenced_in_property_initializers),ut;let an=Wp(n);if(an)for(ce<2&&(an.kind===219?Ve(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):$r(an,1024)&&Ve(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Qr(an).flags|=512;an&&Os(an);)an=Wp(an),an&&(Qr(an).flags|=512);return sr(c)}udt(n)&&pee(c,n);let u=ff(c),_=Qve(u,n);cb(_)&&kge(n,_)&&_.declarations&&tv(n,_.declarations,n.escapedText);let g=u.valueDeclaration;if(g&&u.flags&32&&ci(g)&&g.name!==n){let an=Lu(n,!1,!1);for(;an.kind!==312&&an.parent!==g;)an=Lu(an,!1,!1);an.kind!==312&&(Qr(g).flags|=262144,Qr(an).flags|=262144,Qr(n).flags|=536870912)}mdt(n,c);let T=ldt(u,n,a),P=DI(n);if(P){if(!(u.flags&3)&&!(ir(n)&&u.flags&512)){let an=u.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:u.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return Ve(n,an,Si(c)),ut}if(f_(u))return u.flags&3?Ve(n,f.Cannot_assign_to_0_because_it_is_a_constant,Si(c)):Ve(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(c)),ut}let W=u.flags&2097152;if(u.flags&3){if(P===1)return bj(n)?my(T):T}else if(W)g=Mm(c);else return T;if(!g)return T;T=Mye(T,n,a);let V=A_(g).kind===169,te=w8(g),ye=w8(n),_e=ye!==te,je=n.parent&&n.parent.parent&&By(n.parent)&&Cye(n.parent.parent),mt=c.flags&134217728,At=T===et||T===Jc,rn=At&&n.parent.kind===235;for(;ye!==te&&(ye.kind===218||ye.kind===219||kF(ye))&&(JM(u)&&T!==Jc||uee(u)&&H8e(u,n));)ye=w8(ye);let sn=V||W||_e||je||mt||ddt(n,g)||T!==et&&T!==Jc&&(!J||(T.flags&16387)!==0||TT(n)||Tye(n)||n.parent.kind===281)||n.parent.kind===235||g.kind===260&&g.exclamationToken||g.flags&33554432,nr=rn?Me:sn?V?odt(T,g):T:At?Me:zb(T),Mn=rn?_y(Gb(n,T,nr,ye)):Gb(n,T,nr,ye);if(!G8e(n)&&(T===et||T===Jc)){if(Mn===et||Mn===Jc)return fe&&(Ve(Po(g),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Si(c),Vn(Mn)),Ve(n,f.Variable_0_implicitly_has_an_1_type,Si(c),Vn(Mn))),X8(Mn)}else if(!sn&&!FM(T)&&FM(Mn))return Ve(n,f.Variable_0_is_used_before_being_assigned,Si(c)),T;return P?my(Mn):Mn}function ddt(n,a){if(Xa(a)){let c=Fn(n,Xa);return c&&A_(c)===A_(a)}}function udt(n){var a;let c=n.parent;if(c){if(kr(c)&&c.expression===n||Kd(c)&&c.isTypeOnly)return!1;let u=(a=c.parent)==null?void 0:a.parent;if(u&&Xl(u)&&u.isTypeOnly)return!1}return!0}function pdt(n,a){return!!Fn(n,c=>c===a?"quit":$o(c)||c.parent&&Uo(c.parent)&&!pc(c.parent)&&c.parent.initializer===c)}function fdt(n,a){return Fn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Lye(n){return Fn(n,a=>!a||Cj(a)?"quit":Nv(a,!1))}function mdt(n,a){if(ce>=2||!(a.flags&34)||!a.valueDeclaration||Yi(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let c=uh(a.valueDeclaration),u=pdt(n,c),_=Lye(c);if(_){if(u){let g=!0;if(kT(c)){let T=dE(a.valueDeclaration,261);if(T&&T.parent===c){let P=fdt(n.parent,c);if(P){let W=Qr(P);W.flags|=8192;let V=W.capturedBlockScopeBindings||(W.capturedBlockScopeBindings=[]);yf(V,a),P===c.initializer&&(g=!1)}}}g&&(Qr(_).flags|=4096)}if(kT(c)){let g=dE(a.valueDeclaration,261);g&&g.parent===c&&hdt(n,c)&&(Qr(a.valueDeclaration).flags|=65536)}Qr(a.valueDeclaration).flags|=32768}u&&(Qr(a.valueDeclaration).flags|=16384)}function _dt(n,a){let c=Qr(n);return!!c&&Bo(c.capturedBlockScopeBindings,Sr(a))}function hdt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let u=!1;if($h(c))u=!0;else if(c.parent.kind===224||c.parent.kind===225){let _=c.parent;u=_.operator===46||_.operator===47}return u?!!Fn(c,_=>_===a?"quit":_===a.statement):!1}function kye(n,a){if(Qr(n).flags|=2,a.kind===172||a.kind===176){let c=a.parent;Qr(c).flags|=4}else Qr(a).flags|=4}function $8e(n){return mT(n)?n:$o(n)?void 0:Go(n,$8e)}function wye(n){let a=Sr(n),c=Xs(a);return Rp(c)===We}function Q8e(n,a,c){let u=a.parent;N0(u)&&!wye(u)&&F2(n)&&n.flowNode&&!cee(n.flowNode,!1)&&Ve(n,c)}function gdt(n,a){Uo(a)&&pc(a)&&Z&&a.initializer&&KL(a.initializer,n.pos)&&bf(a.parent)&&Ve(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function P5(n){let a=TT(n),c=Lu(n,!0,!0),u=!1,_=!1;for(c.kind===176&&Q8e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=Lu(c,!1,!_),u=!0),c.kind===167){c=Lu(c,!u,!1),_=!0;continue}break}if(gdt(n,c),_)Ve(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:Ve(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Ve(n,f.this_cannot_be_referenced_in_current_location);break;case 176:Z8e(n,c)&&Ve(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&ce<2&&kye(n,c);let g=Oye(n,!0,c);if(ne){let T=sr(tt);if(g===T&&u)Ve(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!g){let P=Ve(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Yi(c)){let W=Oye(c);W&&W!==T&&Pa(P,Pr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return g||G}function Oye(n,a=!0,c=Lu(n,!1,!1)){let u=ir(n);if($o(c)&&(!zye(n)||M0(c))){let _=zhe(c)||u&&bdt(c);if(!_){let g=vdt(c);if(u&&g){let T=po(g).symbol;T&&T.members&&T.flags&16&&(_=Xs(T).thisType)}else $_(c)&&(_=Xs(es(c.symbol)).thisType);_||(_=rWe(c))}if(_)return Gb(n,_)}if(ci(c.parent)){let _=Sr(c.parent),g=ra(c)?sr(_):Xs(_).thisType;return Gb(n,g)}if(Yi(c))if(c.commonJsModuleIndicator){let _=Sr(c);return _&&sr(_)}else{if(c.externalModuleIndicator)return Me;if(a)return sr(tt)}}function ydt(n){let a=Lu(n,!1,!1);if($o(a)){let c=lm(a);if(c.thisParameter)return see(c.thisParameter)}if(ci(a.parent)){let c=Sr(a.parent);return ra(a)?sr(c):Xs(c).thisType}}function vdt(n){if(n.kind===218&&dr(n.parent)&&zl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&dr(n.parent.parent)&&zl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&dr(n.parent.parent.parent)&&zl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&mc(n.parent)&&Fe(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Ma(n.parent.parent)&&ia(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&zl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Ul(n)&&Fe(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Ma(n.parent)&&ia(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&zl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function bdt(n){let a=nF(n);if(a&&a.typeExpression)return Ti(a.typeExpression);let c=LM(n);if(c)return n0(c)}function Z8e(n,a){return!!Fn(n,c=>ws(c)?"quit":c.kind===169&&c.parent===a)}function Wye(n){let a=n.parent.kind===213&&n.parent.expression===n,c=S2(n,!0),u=c,_=!1,g=!1;if(!a){for(;u&&u.kind===219;)$r(u,1024)&&(g=!0),u=S2(u,!0),_=ce<2;u&&$r(u,1024)&&(g=!0)}let T=0;if(!u||!te(u)){let ye=Fn(n,_e=>_e===u?"quit":_e.kind===167);return ye&&ye.kind===167?Ve(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?Ve(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!u||!u.parent||!(ci(u.parent)||u.parent.kind===210)?Ve(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Ve(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ut}if(!a&&c.kind===176&&Q8e(n,u,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),ra(u)||a?(T=32,!a&&ce>=2&&ce<=8&&(Uo(u)||Al(u))&&Ure(n.parent,ye=>{(!Yi(ye)||wp(ye))&&(Qr(ye).flags|=2097152)})):T=16,Qr(n).flags|=T,u.kind===174&&g&&(ku(n.parent)&&$h(n.parent)?Qr(u).flags|=256:Qr(u).flags|=128),_&&kye(n.parent,u),u.parent.kind===210)return ce<2?(Ve(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ut):G;let P=u.parent;if(!N0(P))return Ve(n,f.super_can_only_be_referenced_in_a_derived_class),ut;if(wye(P))return a?ut:We;let W=Xs(Sr(P)),V=W&&Dp(W)[0];if(!V)return ut;if(u.kind===176&&Z8e(n,u))return Ve(n,f.super_cannot_be_referenced_in_constructor_arguments),ut;return T===32?Rp(W):Up(V,W.thisType);function te(ye){return a?ye.kind===176:ci(ye.parent)||ye.parent.kind===210?ra(ye)?ye.kind===174||ye.kind===173||ye.kind===177||ye.kind===178||ye.kind===172||ye.kind===175:ye.kind===174||ye.kind===173||ye.kind===177||ye.kind===178||ye.kind===172||ye.kind===171||ye.kind===176:!1}}function eWe(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 tWe(n){return Lr(n)&4&&n.target===Gl?Vs(n)[0]:void 0}function Edt(n){return ll(n,a=>a.flags&2097152?gn(a.types,tWe):tWe(a))}function nWe(n,a){let c=n,u=a;for(;u;){let _=Edt(u);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,u=u0(c,void 0)}}function rWe(n){if(n.kind===219)return;if(OZ(n)){let c=W8(n);if(c){let u=c.thisParameter;if(u)return sr(u)}}let a=ir(n);if(ne||a){let c=eWe(n);if(c){let _=u0(c,void 0),g=nWe(c,_);return g?io(g,mye(BS(c))):Hp(_?_y(_):tc(c))}let u=Py(n.parent);if(Mc(u)){let _=u.left;if(Ns(_)){let{expression:g}=_;if(a&&Fe(g)){let T=Gn(u);if(T.commonJsModuleIndicator&&Wm(g)===T.symbol)return}return Hp(tc(g))}}}}function iWe(n){let a=n.parent;if(!OZ(a))return;let c=_T(a);if(c&&c.arguments){let _=Dee(c),g=a.parameters.indexOf(n);if(n.dotDotDotToken)return uve(_,g,_.length,G,void 0,0);let T=Qr(c),P=T.resolvedSignature;T.resolvedSignature=yt;let W=g<_.length?FS(po(_[g])):n.initializer?void 0:Nt;return T.resolvedSignature=P,W}let u=W8(a);if(u){let _=a.parameters.indexOf(n)-(M0(a)?1:0);return n.dotDotDotToken&&$s(a.parameters)===n?J5(u,_):VS(u,_)}}function Fye(n,a){let c=yd(n)||(ir(n)?V6(n):void 0);if(c)return Ti(c);switch(n.kind){case 169:return iWe(n);case 208:return Sdt(n,a);case 172:if(ra(n))return Tdt(n,a)}}function Sdt(n,a){let c=n.parent.parent,u=n.propertyName||n.name,_=Fye(c,a)||c.kind!==208&&c.initializer&&YM(c,n.dotDotDotToken?32:0);if(!_||Qo(u)||h2(u))return;if(c.name.kind===207){let T=jx(n.parent.elements,n);return T<0?void 0:Vye(_,T)}let g=cv(u);if(Qf(g)){let T=Zf(g);return Ue(_,T)}}function Tdt(n,a){let c=ht(n.parent)&&Hu(n.parent,a);if(c)return d0(c,Sr(n).escapedName)}function Adt(n,a){let c=n.parent;if(Mv(c)&&n===c.initializer){let u=Fye(c,a);if(u)return u;if(!(a&8)&&Qo(c.name)&&c.name.elements.length>0)return C(c.name,!0,!1)}}function Idt(n,a){let c=Wp(n);if(c){let u=fee(c,a);if(u){let _=Vc(c);if(_&1){let g=(_&2)!==0;u.flags&1048576&&(u=cc(u,P=>!!jS(1,P,g)));let T=jS(1,u,(_&2)!==0);if(!T)return;u=T}if(_&2){let g=ll(u,pv);return g&&ei([g,vFe(g)])}return u}}}function xdt(n,a){let c=Hu(n,a);if(c){let u=pv(c);return u&&ei([u,vFe(u)])}}function Rdt(n,a){let c=Wp(n);if(c){let u=Vc(c),_=fee(c,a);if(_){let g=(u&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=cc(_,T=>!!jS(1,T,g))),n.asteriskToken?_:jS(0,_,g)}}}function zye(n){let a=!1;for(;n.parent&&!$o(n.parent);){if(Ao(n.parent)&&(a||n.parent.initializer===n))return!0;Xa(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function oWe(n,a){let c=!!(Vc(a)&2),u=fee(a,void 0);if(u)return jS(n,u,c)||void 0}function fee(n,a){let c=sC(n);if(c)return c;let u=Uye(n);if(u&&!gZ(u)){let g=ds(u),T=Vc(n);return T&1?cc(g,P=>!!(P.flags&58998787)||Mve(P,T,void 0)):T&2?cc(g,P=>!!(P.flags&58998787)||!!ZM(P)):g}let _=_T(n);if(_)return Hu(_,a)}function aWe(n,a){let u=Dee(n).indexOf(a);return u===-1?void 0:Bye(n,u)}function Bye(n,a){if(Op(n))return a===0?Ne:a===1?qwe(!1):G;let c=Qr(n).resolvedSignature===yr?yr:vC(n);if(au(n)&&a===0)return gee(c,n);let u=c.parameters.length-1;return qd(c)&&a>=u?Cp(sr(c.parameters[u]),d_(a-u),256):p_(c,a)}function Ddt(n){let a=Ave(n);return a?WA(a):void 0}function Cdt(n,a){if(n.parent.kind===215)return aWe(n.parent,a)}function Ndt(n,a){let c=n.parent,{left:u,operatorToken:_,right:g}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===g?Mdt(c):void 0;case 57:case 61:let T=Hu(c,a);return n===g&&(T&&T.pattern||!T&&!uie(c))?xd(u):T;case 56:case 28:return n===g?Hu(c,a):void 0;default:return}}function Pdt(n){if(b_(n)&&n.symbol)return n.symbol;if(Fe(n))return Wm(n);if(kr(n)){let c=xd(n.expression);return Ki(n.name)?a(c,n.name):ha(c,n.name.escapedText)}if(Js(n)){let c=tc(n.argumentExpression);if(!Qf(c))return;let u=xd(n.expression);return ha(u,Zf(c))}return;function a(c,u){let _=Eee(u.escapedText,u);return _&&tve(c,_)}}function Mdt(n){var a,c;let u=zl(n);switch(u){case 0:case 4:let _=Pdt(n.left),g=_&&_.valueDeclaration;if(g&&(Uo(g)||_p(g))){let W=yd(g);return W&&io(Ti(W),qi(_).mapper)||(Uo(g)?g.initializer&&xd(n.left):void 0)}return u===0?xd(n.left):sWe(n);case 5:if(mee(n,u))return sWe(n);if(!b_(n.left)||!n.left.symbol)return xd(n.left);{let W=n.left.symbol.valueDeclaration;if(!W)return;let V=na(n.left,Ns),te=yd(W);if(te)return Ti(te);if(Fe(V.expression)){let ye=V.expression,_e=hl(ye,ye.escapedText,111551,void 0,ye.escapedText,!0);if(_e){let je=_e.valueDeclaration&&yd(_e.valueDeclaration);if(je){let mt=Lg(V);if(mt!==void 0)return d0(Ti(je),mt)}return}}return ir(W)||W===n.left?void 0:xd(n.left)}case 1:case 6:case 3:case 2:let T;u!==2&&(T=b_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),T||(T=(c=n.symbol)==null?void 0:c.valueDeclaration);let P=T&&yd(T);return P?Ti(P):void 0;case 7:case 8:case 9:return x.fail("Does not apply");default:return x.assertNever(u)}}function mee(n,a=zl(n)){if(a===4)return!0;if(!ir(n)||a!==5||!Fe(n.left.expression))return!1;let c=n.left.expression.escapedText,u=hl(n.left,c,111551,void 0,void 0,!0,!0);return zF(u?.valueDeclaration)}function sWe(n){if(!n.symbol)return xd(n.left);if(n.symbol.valueDeclaration){let _=yd(n.symbol.valueDeclaration);if(_){let g=Ti(_);if(g)return g}}let a=na(n.left,Ns);if(!bm(Lu(a.expression,!1,!1)))return;let c=P5(a.expression),u=Lg(a);return u!==void 0&&d0(c,u)||void 0}function Ldt(n){return!!(Tl(n)&262144&&!n.links.type&&nx(n,0)>=0)}function d0(n,a,c){return ll(n,u=>{var _;if(ju(u)&&!u.declaration.nameType){let g=hf(u),T=zd(g)||g,P=c||Uu(Vi(a));if(ya(P,T))return DZ(u,P)}else if(u.flags&3670016){let g=ha(u,a);if(g)return Ldt(g)?void 0:Bb(sr(g),!!(g&&g.flags&16777216));if(wa(u)&&ng(a)&&+a>=0){let T=VM(u,u.target.fixedLength,0,!1,!0);if(T)return T}return(_=rge(ige(u),c||Uu(Vi(a))))==null?void 0:_.type}},!0)}function lWe(n,a){if(x.assert(bm(n)),!(n.flags&67108864))return Gye(n,a)}function Gye(n,a){let c=n.parent,u=mc(n)&&Fye(n,a);if(u)return u;let _=u0(c,a);if(_){if(oC(n)){let g=Sr(n);return d0(_,g.escapedName,qi(g).nameType)}if(Ov(n)){let g=Po(n);if(g&&Ya(g)){let T=po(g.expression),P=Qf(T)&&d0(_,Zf(T));if(P)return P}}if(n.name){let g=cv(n.name);return ll(_,T=>{var P;return(P=rge(ige(T),g))==null?void 0:P.type},!0)}}}function kdt(n){let a,c;for(let u=0;u{if(wa(g)){if((u===void 0||a_)?c-a:0,P=T>0&&g.target.hasRestElement?v8(g.target,3):0;return T>0&&T<=P?Vs(g)[lv(g)-T]:VM(g,u===void 0?g.target.fixedLength:Math.min(g.target.fixedLength,u),c===void 0||_===void 0?P:Math.min(P,c-_),!1,!0)}return(!u||auv(W)?Cp(W,d_(T)):W,!0))}function Wdt(n,a){let c=n.parent;return fF(c)?Hu(n,a):ig(c)?Odt(c,n,a):void 0}function cWe(n,a){if(M_(n)){let c=u0(n.parent,a);return!c||xt(c)?void 0:d0(c,$N(n.name))}else return Hu(n.parent,a)}function M5(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 M5(n.expression);case 294:return!n.expression||M5(n.expression)}return!1}function Fdt(n,a){return Cct(a,n)||Zge(a,Eo(mn(jr(n.properties,c=>c.symbol?c.kind===303?M5(c.initializer)&&jM(a,c.symbol.escapedName):c.kind===304?jM(a,c.symbol.escapedName):!1:!1),c=>[()=>eG(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),mn(jr(ms(a),c=>{var u;return!!(c.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(c.escapedName)&&jM(a,c.escapedName)}),c=>[()=>Me,c.escapedName])),ya)}function zdt(n,a){let c=w5(YA(n));return Zge(a,Eo(mn(jr(n.properties,u=>!!u.symbol&&u.kind===291&&jM(a,u.symbol.escapedName)&&(!u.initializer||M5(u.initializer))),u=>[u.initializer?()=>eG(u.initializer):()=>wn,u.symbol.escapedName]),mn(jr(ms(a),u=>{var _;if(!(u.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;let g=n.parent.parent;return u.escapedName===c&&ig(g)&&lR(g.children).length?!1:!n.symbol.members.has(u.escapedName)&&jM(a,u.escapedName)}),u=>[()=>Me,u.escapedName])),ya)}function u0(n,a){let c=bm(n)?lWe(n,a):Hu(n,a),u=_ee(c,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){let _=ll(u,g=>Lr(g)&32?g:Nu(g),!0);return _.flags&1048576&&Ma(n)?Fdt(n,_):_.flags&1048576&&q0(n)?zdt(n,_):_}}function _ee(n,a,c){if(n&&Rl(n,465829888)){let u=BS(a);if(u&&c&1&>(u.inferences,Sft))return hee(n,u.nonFixingMapper);if(u?.returnMapper){let _=hee(n,u.returnMapper);return _.flags&1048576&&dy(_.types,En)&&dy(_.types,Bn)?cc(_,g=>g!==En&&g!==Bn):_}}return n}function hee(n,a){return n.flags&465829888?io(n,a):n.flags&1048576?ei(mn(n.types,c=>hee(c,a)),0):n.flags&2097152?ga(mn(n.types,c=>hee(c,a))):n}function Hu(n,a){var c;if(n.flags&67108864)return;let u=uWe(n,!a);if(u>=0)return fn[u];let{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Adt(n,a);case 219:case 253:return Idt(n,a);case 229:return Rdt(_,a);case 223:return xdt(_,a);case 213:case 214:return aWe(_,n);case 170:return Ddt(_);case 216:case 234:return Ng(_.type)?Hu(_,a):Ti(_.type);case 226:return Ndt(n,a);case 303:case 304:return Gye(_,a);case 305:return Hu(_.parent,a);case 209:{let g=_,T=u0(g,a),P=jx(g.elements,n),W=(c=Qr(g)).spreadIndices??(c.spreadIndices=kdt(g.elements));return Vye(T,P,g.elements.length,W.first,W.last)}case 227:return wdt(n,a);case 239:return x.assert(_.parent.kind===228),Cdt(_.parent,n);case 217:{if(ir(_)){if(hU(_))return Ti(gU(_));let g=tE(_);if(g&&!Ng(g.typeExpression.type))return Ti(g.typeExpression.type)}return Hu(_,a)}case 235:return Hu(_,a);case 238:return Ti(_.type);case 277:return eo(_);case 294:return Wdt(_,a);case 291:case 293:return cWe(_,a);case 286:case 285:return jdt(_,a);case 301:return Vdt(_)}}function dWe(n){L5(n,Hu(n,void 0),!0)}function L5(n,a,c){Jn[fi]=n,fn[fi]=a,qn[fi]=c,fi++}function O8(){fi--}function uWe(n,a){for(let c=fi-1;c>=0;c--)if(n===Jn[c]&&(a||!qn[c]))return c;return-1}function Bdt(n,a){or[cr]=n,ni[cr]=a,cr++}function Gdt(){cr--}function BS(n){for(let a=cr-1;a>=0;a--)if(C0(n,or[a]))return ni[a]}function Vdt(n){return d0(bge(!1),U6(n))}function jdt(n,a){if(P_(n)&&a!==4){let c=uWe(n.parent,!a);if(c>=0)return fn[c]}return Bye(n,0)}function gee(n,a){return qWe(a)!==0?Udt(n,a):Jdt(n,a)}function Udt(n,a){let c=Sve(n,un);c=pWe(a,YA(a),c);let u=GS(tf.IntrinsicAttributes,a);return Vt(u)||(c=$B(u,c)),c}function Hdt(n,a){if(n.compositeSignatures){let u=[];for(let _ of n.compositeSignatures){let g=ds(_);if(xt(g))return g;let T=Ue(g,a);if(!T)return;u.push(T)}return ga(u)}let c=ds(n);return xt(c)?c:Ue(c,a)}function Kdt(n){if(ux(n.tagName)){let c=EWe(n),u=Cee(n,c);return WA(u)}let a=tc(n.tagName);if(a.flags&128){let c=bWe(a,n);if(!c)return ut;let u=Cee(n,c);return WA(u)}return a}function pWe(n,a,c){let u=fut(a);if(u){let _=Kdt(n),g=AWe(u,ir(n),_,c);if(g)return g}return c}function Jdt(n,a){let c=YA(a),u=_ut(c),_=u===void 0?Sve(n,un):u===""?ds(n):Hdt(n,u);if(!_)return u&&Nn(a.attributes.properties)&&Ve(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Vi(u)),un;if(_=pWe(a,c,_),xt(_))return _;{let g=_,T=GS(tf.IntrinsicClassAttributes,a);if(!Vt(T)){let W=Nr(T.symbol),V=ds(n),te;if(W){let ye=Pb([V],W,wh(W),ir(a));te=io(T,Np(W,ye))}else te=T;g=$B(te,g)}let P=GS(tf.IntrinsicAttributes,a);return Vt(P)||(g=$B(P,g)),g}}function qdt(n){return cu(B,"noImplicitAny")?tu(n,(a,c)=>a===c||!a?a:uwe(a.typeParameters,c.typeParameters)?$dt(a,c):void 0):void 0}function Xdt(n,a,c){if(!n||!a)return n||a;let u=ei([sr(n),io(sr(a),c)]);return UA(n,u)}function Ydt(n,a,c){let u=Kp(n),_=Kp(a),g=u>=_?n:a,T=g===n?a:n,P=g===n?u:_,W=zh(n)||zh(a),V=W&&!zh(g),te=new Array(P+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:XM(n,ye),nr=ye>=_?void 0:XM(a,ye),Mn=sn===nr?sn:sn?nr?void 0:sn:nr,an=Ka(1|(rn&&!At?16777216:0),Mn||`arg${ye}`);an.links.type=At?Bd(mt):mt,te[ye]=an}if(V){let ye=Ka(1,"args");ye.links.type=Bd(p_(T,P)),T===a&&(ye.links.type=io(ye.links.type,c)),te[P]=ye}return te}function $dt(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=Ydt(n,a,u),T=Xdt(n.thisParameter,a.thisParameter,u),P=Math.max(n.minArgumentCount,a.minArgumentCount),W=yg(_,c,T,g,void 0,void 0,P,(n.flags|a.flags)&167);return W.compositeKind=2097152,W.compositeSignatures=Eo(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(W.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?WS(n.mapper,u):u),W}function jye(n,a){let c=Jo(n,0),u=jr(c,_=>!Qdt(_,a));return u.length===1?u[0]:qdt(u)}function Qdt(n,a){let c=0;for(;cGM(_e)||ju(_e)&&!_e.nameType&&!!T8(_e.target||_e)),ye=!1;for(let _e=0;_e<_;_e++){let je=u[_e];if(je.kind===230){ce<2&&xc(je,B.downlevelIteration?1536:1024);let mt=po(je.expression,a,c);if(uv(mt))g.push(mt),T.push(8);else if(P){let At=t0(mt,It)||jve(65,mt,Me,void 0,!1)||un;g.push(At),T.push(4)}else g.push(fv(33,mt,Me,je.expression)),T.push(4)}else if(Ae&&je.kind===232)ye=!0,g.push(ie),T.push(2);else{let mt=QM(je,a,c);if(g.push(op(mt,!0,ye)),T.push(ye?2:1),te&&a&&a&2&&!(a&4)&&zf(je)){let At=BS(n);x.assert(At),pye(At,je,mt)}}}return O8(),P?Wh(g,T):mWe(c||W||te?Wh(g,T,W&&!(V&&Fm(V,rye))):Bd(g.length?ei(Pc(g,(_e,je)=>T[je]&8?Lb(_e,It)||G:_e),2):J?Pi:Nt,W))}function mWe(n){if(!(Lr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=Owe(n),a.objectFlags|=147456),a}function nut(n){switch(n.kind){case 167:return rut(n);case 80:return ng(n.escapedText);case 9:case 11:return ng(n.text);default:return!1}}function rut(n){return Id(bg(n),296)}function bg(n){let a=Qr(n.expression);if(!a.resolvedType){if((gp(n.parent.parent)||ci(n.parent.parent)||pu(n.parent.parent))&&dr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=ut;if(a.resolvedType=po(n.expression),Uo(n.parent)&&!pc(n.parent)&&Zc(n.parent.parent)){let c=uh(n.parent.parent),u=Lye(c);u&&(Qr(u).flags|=4096,Qr(n).flags|=32768,Qr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Id(a.resolvedType,402665900)&&!ya(a.resolvedType,xn))&&Ve(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function iut(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return ng(n.escapedName)||c&&iu(c)&&nut(c.name)}function _We(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return J2(n)||c&&iu(c)&&Ya(c.name)&&Id(bg(c.name),4096)}function Hye(n,a,c,u){let _=[];for(let T=a;T0&&(P=kS(P,On(),n.symbol,At,te),T=[],g=aa(),sn=!1,nr=!1,Mn=!1);let $n=c_(po(Ln.expression,a&2));if(k5($n)){let Ro=zge($n,te);if(_&&gWe(Ro,_,Ln),an=T.length,Vt(P))continue;P=kS(P,Ro,n.symbol,At,te)}else Ve(Ln,f.Spread_types_may_only_be_created_from_object_types),P=ut;continue}else x.assert(Ln.kind===177||Ln.kind===178),px(Ln);jn&&!(jn.flags&8576)?ya(jn,xn)&&(ya(jn,It)?nr=!0:ya(jn,xi)?Mn=!0:sn=!0,u&&(rn=!0)):g.set(Yn.escapedName,Yn),T.push(Yn)}if(O8(),V){let Ln=Fn(W.pattern.parent,jn=>jn.kind===260||jn.kind===226||jn.kind===169);if(Fn(n,jn=>jn===Ln||jn.kind===305).kind!==305)for(let jn of ms(W))!g.get(jn.escapedName)&&!ha(P,jn.escapedName)&&(jn.flags&16777216||Ve(jn.valueDeclaration||((c=ri(jn,ch))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),g.set(jn.escapedName,jn),T.push(jn))}if(Vt(P))return ut;if(P!==Ca)return T.length>0&&(P=kS(P,On(),n.symbol,At,te),T=[],g=aa(),sn=!1,nr=!1),ll(P,Ln=>Ln===Ca?On():Ln);return On();function On(){let Ln=[];sn&&Ln.push(Hye(n,an,T,Ne)),nr&&Ln.push(Hye(n,an,T,It)),Mn&&Ln.push(Hye(n,an,T,xi));let Yn=Ds(n.symbol,g,Xe,Xe,Ln);return Yn.objectFlags|=At|128|131072,mt&&(Yn.objectFlags|=4096),rn&&(Yn.objectFlags|=512),u&&(Yn.pattern=n),Yn}}function k5(n){let a=d8e(ll(n,cy));return!!(a.flags&126615553||a.flags&3145728&&oo(a.types,k5))}function aut(n){Xye(n)}function sut(n,a){return px(n),O5(n)||G}function lut(n){Xye(n.openingElement),ux(n.closingElement.tagName)?vee(n.closingElement):po(n.closingElement.tagName),yee(n)}function cut(n,a){return px(n),O5(n)||G}function dut(n){Xye(n.openingFragment);let a=Gn(n);return R6(B)&&(B.jsxFactory||a.pragmas.has("jsx"))&&!B.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Ve(n,B.jsxFactory?f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),yee(n),O5(n)||G}function Jye(n){return n.includes("-")}function ux(n){return Fe(n)&&dR(n.escapedText)||qm(n)}function hWe(n,a){return n.initializer?QM(n.initializer,a):wn}function uut(n,a=0){let c=n.attributes,u=Hu(c,0),_=J?aa():void 0,g=aa(),T=ul,P=!1,W,V=!1,te=2048,ye=w5(YA(n));for(let mt of c.properties){let At=mt.symbol;if(M_(mt)){let rn=hWe(mt,a);te|=Lr(rn)&458752;let sn=Ka(4|At.flags,At.escapedName);if(sn.declarations=At.declarations,sn.parent=At.parent,At.valueDeclaration&&(sn.valueDeclaration=At.valueDeclaration),sn.links.type=rn,sn.links.target=At,g.set(sn.escapedName,sn),_?.set(sn.escapedName,sn),$N(mt.name)===ye&&(V=!0),u){let nr=ha(u,At.escapedName);nr&&nr.declarations&&cb(nr)&&Fe(mt.name)&&tv(mt.name,nr.declarations,mt.name.escapedText)}if(u&&a&2&&!(a&4)&&zf(mt)){let nr=BS(c);x.assert(nr);let Mn=mt.initializer.expression;pye(nr,Mn,rn)}}else{x.assert(mt.kind===293),g.size>0&&(T=kS(T,je(),c.symbol,te,!1),g=aa());let rn=c_(po(mt.expression,a&2));xt(rn)&&(P=!0),k5(rn)?(T=kS(T,rn,c.symbol,te,!1),_&&gWe(rn,_,mt)):(Ve(mt.expression,f.Spread_types_may_only_be_created_from_object_types),W=W?ga([W,rn]):rn)}}P||g.size>0&&(T=kS(T,je(),c.symbol,te,!1));let _e=n.parent.kind===284?n.parent:void 0;if(_e&&_e.openingElement===n&&lR(_e.children).length>0){let mt=yee(_e,a);if(!P&&ye&&ye!==""){V&&Ve(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(ye));let At=u0(n.attributes,void 0),rn=At&&d0(At,ye),sn=Ka(4,ye);sn.links.type=mt.length===1?mt[0]:rn&&Fm(rn,GM)?Wh(mt):Bd(ei(mt)),sn.valueDeclaration=L.createPropertySignature(void 0,Vi(ye),void 0,void 0),ja(sn.valueDeclaration,c),sn.valueDeclaration.symbol=sn;let nr=aa();nr.set(ye,sn),T=kS(T,Ds(c.symbol,nr,Xe,Xe,Xe),c.symbol,te,!1)}}if(P)return G;if(W&&T!==ul)return ga([W,T]);return W||(T===ul?je():T);function je(){te|=ve;let mt=Ds(c.symbol,g,Xe,Xe,Xe);return mt.objectFlags|=te|128|131072,mt}}function yee(n,a){let c=[];for(let u of n.children)if(u.kind===12)u.containsOnlyTriviaWhiteSpaces||c.push(Ne);else{if(u.kind===294&&!u.expression)continue;c.push(QM(u,a))}return c}function gWe(n,a,c){for(let u of ms(n))if(!(u.flags&16777216)){let _=a.get(u.escapedName);if(_){let g=Ve(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Vi(_.escapedName));Pa(g,Pr(c,f.This_spread_always_overwrites_this_property))}}}function put(n,a){return uut(n.parent,a)}function GS(n,a){let c=YA(a),u=c&&xp(c),_=u&&Vu(u,n,788968);return _?Xs(_):ut}function vee(n){let a=Qr(n);if(!a.resolvedSymbol){let c=GS(tf.IntrinsicElements,n);if(Vt(c))return fe&&Ve(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Vi(tf.IntrinsicElements)),a.resolvedSymbol=lt;{if(!Fe(n.tagName)&&!qm(n.tagName))return x.fail();let u=qm(n.tagName)?FI(n.tagName):n.tagName.escapedText,_=ha(c,u);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;let g=H6e(c,Uu(Vi(u)));return g?(a.jsxFlags|=2,a.resolvedSymbol=g):St(c,u)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Ve(n,f.Property_0_does_not_exist_on_type_1,yU(n.tagName),"JSX."+tf.IntrinsicElements),a.resolvedSymbol=lt)}}return a.resolvedSymbol}function qye(n){let a=n&&Gn(n),c=a&&Qr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;let u=C6(D6(B,a),B);if(!u)return;let g=du(B)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations,T=B.importHelpers?1:0,P=a?.imports[T];P&&x.assert(Ks(P)&&P.text===u,`Expected sourceFile.imports[${T}] to be the synthesized JSX runtime import`);let W=j_(P||n,u,g,n),V=W&&W!==lt?es(Vl(W)):void 0;return c&&(c.jsxImplicitImportContainer=V||!1),V}function YA(n){let a=n&&Qr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=qye(n);if(!u||u===lt){let _=WE(n);u=hl(n,_,1920,void 0,_,!1)}if(u){let _=Vl(Vu(xp(Vl(u)),tf.JSX,1920));if(_&&_!==lt)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}let c=Vl(OM(tf.JSX,1920,void 0));if(c!==lt)return c}function yWe(n,a){let c=a&&Vu(a.exports,n,788968),u=c&&Xs(c),_=u&&ms(u);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&Ve(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Vi(n))}}function fut(n){return n&&Vu(n.exports,tf.LibraryManagedAttributes,788968)}function mut(n){return n&&Vu(n.exports,tf.ElementType,788968)}function _ut(n){return yWe(tf.ElementAttributesPropertyNameContainer,n)}function w5(n){return yWe(tf.ElementChildrenAttributeNameContainer,n)}function vWe(n,a){if(n.flags&4)return[yt];if(n.flags&128){let _=bWe(n,a);return _?[Cee(a,_)]:(Ve(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+tf.IntrinsicElements),Xe)}let c=Nu(n),u=Jo(c,1);return u.length===0&&(u=Jo(c,0)),u.length===0&&c.flags&1048576&&(u=Hhe(mn(c.types,_=>vWe(_,a)))),u}function bWe(n,a){let c=GS(tf.IntrinsicElements,a);if(!Vt(c)){let u=n.value,_=ha(c,pl(u));if(_)return sr(_);let g=t0(c,Ne);return g||void 0}return G}function hut(n,a,c){if(n===1){let _=TWe(c);_&&Bf(a,_,Gu,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){let _=SWe(c);_&&Bf(a,_,Gu,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{let _=TWe(c),g=SWe(c);if(!_||!g)return;let T=ei([_,g]);Bf(a,T,Gu,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){let _=uc(c.tagName);return zo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function EWe(n){var a;x.assert(ux(n.tagName));let c=Qr(n);if(!c.resolvedJsxElementAttributesType){let u=vee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=sr(u)||ut;if(c.jsxFlags&2){let _=qm(n.tagName)?FI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=ox(GS(tf.IntrinsicElements,n),_))==null?void 0:a.type)||ut}else return c.resolvedJsxElementAttributesType=ut}return c.resolvedJsxElementAttributesType}function SWe(n){let a=GS(tf.ElementClass,n);if(!Vt(a))return a}function O5(n){return GS(tf.Element,n)}function TWe(n){let a=O5(n);if(a)return ei([a,ue])}function gut(n){let a=YA(n);if(!a)return;let c=mut(a);if(!c)return;let u=AWe(c,ir(n));if(!(!u||Vt(u)))return u}function AWe(n,a,...c){let u=Xs(n);if(n.flags&524288){let _=qi(n).typeParameters;if(Nn(_)>=c.length){let g=Pb(c,_,c.length,a);return Nn(g)===0?u:cC(n,g)}}if(Nn(u.typeParameters)>=c.length){let _=Pb(c,u.typeParameters,c.length,a);return sv(u,_)}}function yut(n){let a=GS(tf.IntrinsicElements,n);return a?ms(a):Xe}function vut(n){(B.jsx||0)===0&&Ve(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),O5(n)===void 0&&fe&&Ve(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Xye(n){let a=au(n);if(a&&pgt(n),vut(n),!qye(n)){let c=Qa&&B.jsx===2?f.Cannot_find_name_0:void 0,u=WE(n),_=a?n.tagName:n,g;if(i1(n)&&u==="null"||(g=hl(_,u,111551,c,u,!0)),g&&(g.isReferenced=-1,pt&&g.flags&2097152&&!Lf(g)&&hb(g)),i1(n)){let T=Gn(n),P=j1(T);P&&hl(_,P,111551,c,P,!0)}}if(a){let c=n,u=vC(c);Pee(u,n);let _=gut(c);if(_!==void 0){let g=c.tagName,T=ux(g)?Uu(yU(g)):po(g);Bf(T,_,Gu,g,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let P=uc(g);return zo(void 0,f._0_cannot_be_used_as_a_JSX_component,P)})}else hut(qWe(c),ds(u),c)}}function Yye(n,a,c){if(n.flags&524288){if(e0(n,a)||ox(n,a)||p8(a)&&vg(n,Ne)||c&&Jye(a))return!0}else if(n.flags&3145728&&W5(n)){for(let u of n.types)if(Yye(u,a,c))return!0}return!1}function W5(n){return!!(n.flags&524288&&!(Lr(n)&512)||n.flags&67108864||n.flags&1048576&>(n.types,W5)||n.flags&2097152&&oo(n.types,W5))}function but(n,a){if(mgt(n),n.expression){let c=po(n.expression,a);return n.dotDotDotToken&&c!==G&&!Gf(c)&&Ve(n,f.JSX_spread_child_must_be_an_array_type),c}else return ut}function $ye(n){return n.valueDeclaration?KS(n.valueDeclaration):0}function Qye(n){if(n.flags&8192||Tl(n)&4)return!0;if(ir(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&dr(a)&&zl(a)===3}}function Zye(n,a,c,u,_,g=!0){let T=g?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return IWe(n,a,c,u,_,T)}function IWe(n,a,c,u,_,g){var T;let P=Tf(_,c);if(a){if(ce<2&&xWe(_))return g&&Ve(g,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(P&64)return g&&Ve(g,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Si(_),Vn(dx(_))),!1;if(!(P&256)&&((T=_.declarations)!=null&&T.some(dre)))return g&&Ve(g,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Si(_)),!1}if(P&64&&xWe(_)&&(T2(n)||lie(n)||tm(n.parent)&&zF(n.parent.parent))){let V=Og(Ru(_));if(V&&uht(n))return g&&Ve(g,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Si(_),Xf(V.name)),!1}if(!(P&6))return!0;if(P&2){let V=Og(Ru(_));return tbe(n,V)?!0:(g&&Ve(g,f.Property_0_is_private_and_only_accessible_within_class_1,Si(_),Vn(dx(_))),!1)}if(a)return!0;let W=j6e(n,V=>{let te=Xs(Sr(V));return e8e(te,_,c)});return!W&&(W=Eut(n),W=W&&e8e(W,_,c),P&256||!W)?(g&&Ve(g,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Si(_),Vn(dx(_)||u)),!1):P&256?!0:(u.flags&262144&&(u=u.isThisType?Cu(u):zd(u)),!u||!rC(u,W)?(g&&Ve(g,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Si(_),Vn(W),Vn(u)),!1):!0)}function Eut(n){let a=Sut(n),c=a?.type&&Ti(a.type);if(c&&c.flags&262144&&(c=Cu(c)),c&&Lr(c)&7)return ov(c)}function Sut(n){let a=Lu(n,!1,!1);return a&&$o(a)?M0(a):void 0}function xWe(n){return!!y5(n,a=>!(a.flags&8192))}function gC(n){return X_(po(n),n)}function F5(n){return dm(n,50331648)}function eve(n){return F5(n)?_y(n):n}function Tut(n,a){let c=Bl(n)?up(n):void 0;if(n.kind===106){Ve(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Fe(n)&&c==="undefined"){Ve(n,f.The_value_0_cannot_be_used_here,"undefined");return}Ve(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else Ve(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function Aut(n,a){Ve(n,a&16777216?a&33554432?f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:f.Cannot_invoke_an_object_which_is_possibly_undefined:f.Cannot_invoke_an_object_which_is_possibly_null)}function RWe(n,a,c){if(J&&n.flags&2){if(Bl(a)){let _=up(a);if(_.length<100)return Ve(a,f._0_is_of_type_unknown,_),ut}return Ve(a,f.Object_is_of_type_unknown),ut}let u=UM(n,50331648);if(u&50331648){c(a,u);let _=_y(n);return _.flags&229376?ut:_}return n}function X_(n,a){return RWe(n,a,Tut)}function DWe(n,a){let c=X_(n,a);if(c.flags&16384){if(Bl(a)){let u=up(a);if(Fe(a)&&u==="undefined")return Ve(a,f.The_value_0_cannot_be_used_here,u),c;if(u.length<100)return Ve(a,f._0_is_possibly_undefined,u),c}Ve(a,f.Object_is_possibly_undefined)}return c}function bee(n,a,c){return n.flags&64?Iut(n,a):nve(n,n.expression,gC(n.expression),n.name,a,c)}function Iut(n,a){let c=po(n.expression),u=C8(c,n.expression);return XZ(nve(n,n.expression,X_(u,n.expression),n.name,a),n,u!==c)}function CWe(n,a){let c=jF(n)&&k0(n.left)?X_(P5(n.left),n.left):gC(n.left);return nve(n,n.left,c,n.right,a)}function NWe(n){for(;n.parent.kind===217;)n=n.parent;return v_(n.parent)&&n.parent.expression===n}function Eee(n,a){for(let c=WF(a);c;c=ad(c)){let{symbol:u}=c,_=K2(u,n),g=u.members&&u.members.get(_)||u.exports&&u.exports.get(_);if(g)return g}}function xut(n){if(!ad(n))return yn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!G4(n.parent)){if(!Xh(n))return yn(n,f.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);let a=dr(n.parent)&&n.parent.operatorToken.kind===103;if(!See(n)&&!a)return yn(n,f.Cannot_find_name_0,gr(n))}return!1}function Rut(n){xut(n);let a=See(n);return a&&B5(a,void 0,!1),G}function See(n){if(!Xh(n))return;let a=Qr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Eee(n.escapedText,n)),a.resolvedSymbol}function tve(n,a){return ha(n,a.escapedName)}function Dut(n,a,c){let u,_=ms(n);_&&gn(_,T=>{let P=T.valueDeclaration;if(P&&iu(P)&&Ki(P.name)&&P.name.escapedText===a.escapedText)return u=T,!0});let g=Pm(a);if(u){let T=x.checkDefined(u.valueDeclaration),P=x.checkDefined(ad(T));if(c?.valueDeclaration){let W=c.valueDeclaration,V=ad(W);if(x.assert(!!V),Fn(V,te=>P===te)){let te=Ve(a,f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,g,Vn(n));return Pa(te,Pr(W,f.The_shadowing_declaration_of_0_is_defined_here,g),Pr(T,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,g)),!0}}return Ve(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,g,Pm(P.name||C3)),!0}return!1}function PWe(n,a){return(eC(a)||T2(n)&&RM(a))&&Lu(n,!0,!1)===DM(a)}function nve(n,a,c,u,_,g){let T=Qr(a).resolvedSymbol,P=DI(n),W=Nu(P!==0||NWe(n)?Hp(c):c),V=xt(W)||W===go,te;if(Ki(u)){ce<99&&(P!==0&&xc(n,1048576),P!==1&&xc(n,524288));let _e=Eee(u.escapedText,u);if(P&&_e&&_e.valueDeclaration&&Ul(_e.valueDeclaration)&&yn(u,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,gr(u)),V){if(_e)return Vt(W)?ut:W;if(WF(u)===void 0)return yn(u,f.Private_identifiers_are_not_allowed_outside_class_bodies),G}if(te=_e&&tve(c,_e),te===void 0){if(Dut(c,u,_e))return ut;let je=WF(u);je&&p2(Gn(je),B.checkJs)&&yn(u,f.Private_field_0_must_be_declared_in_an_enclosing_class,gr(u))}else te.flags&65536&&!(te.flags&32768)&&P!==1&&Ve(n,f.Private_accessor_was_defined_without_a_getter)}else{if(V)return Fe(a)&&T&&pee(T,n),Vt(W)?ut:W;te=ha(W,u.escapedText,kee(W),n.kind===166)}Fe(a)&&T&&(em(B)||!(te&&(Y8(te)||te.flags&8&&n.parent.kind===306))||B0(B)&&Y8e(n))&&pee(T,n);let ye;if(te){let _e=Qve(te,u);if(cb(_e)&&kge(n,_e)&&_e.declarations&&tv(u,_e.declarations,u.escapedText),Cut(te,n,u),B5(te,n,FWe(a,T)),Qr(n).resolvedSymbol=te,Zye(n,a.kind===108,LI(n),W,te),RFe(n,te,P))return Ve(u,f.Cannot_assign_to_0_because_it_is_a_read_only_property,gr(u)),ut;ye=PWe(n,te)?et:g||v6(n)?NS(te):sr(te)}else{let _e=!Ki(u)&&(P===0||!BA(c)||XN(c))?ox(W,u.escapedText):void 0;if(!(_e&&_e.type)){let je=rve(n,c.symbol,!0);return!je&&b8(c)?G:c.symbol===tt?(tt.exports.has(u.escapedText)&&tt.exports.get(u.escapedText).flags&418?Ve(u,f.Property_0_does_not_exist_on_type_1,Vi(u.escapedText),Vn(c)):fe&&Ve(u,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Vn(c)),G):(u.escapedText&&!fA(n)&&kWe(u,XN(c)?W:c,je),ut)}_e.isReadonly&&($h(n)||Ej(n))&&Ve(n,f.Index_signature_in_type_0_only_permits_reading,Vn(W)),ye=B.noUncheckedIndexedAccess&&!$h(n)?ei([_e.type,k]):_e.type,B.noPropertyAccessFromIndexSignature&&kr(n)&&Ve(u,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Vi(u.escapedText)),_e.declaration&&ev(_e.declaration)&&tv(u,[_e.declaration],u.escapedText)}return MWe(n,te,ye,u,_)}function rve(n,a,c){var u;let _=Gn(n);if(_&&B.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){let g=gn(a?.declarations,Gn),T=!a?.valueDeclaration||!ci(a.valueDeclaration)||((u=a.valueDeclaration.heritageClauses)==null?void 0:u.length)||Ny(!1,a.valueDeclaration);return!(_!==g&&g&&xh(g))&&!(c&&a&&a.flags&32&&T)&&!(n&&c&&kr(n)&&n.expression.kind===110&&T)}return!1}function MWe(n,a,c,u,_){let g=DI(n);if(g===1)return Bb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!Xee(a.declarations))return c;if(c===et)return tC(n,a);c=Mye(c,n,_);let T=!1;if(J&&xe&&Ns(n)&&n.expression.kind===110){let W=a&&a.valueDeclaration;if(W&&N6e(W)&&!ra(W)){let V=w8(n);V.kind===176&&V.parent===W.parent&&!(W.flags&33554432)&&(T=!0)}}else J&&a&&a.valueDeclaration&&kr(a.valueDeclaration)&&L2(a.valueDeclaration)&&w8(n)===w8(a.valueDeclaration)&&(T=!0);let P=Gb(n,c,T?zb(c):c);return T&&!FM(c)&&FM(P)?(Ve(u,f.Property_0_is_used_before_being_assigned,Si(a)),c):g?my(P):P}function Cut(n,a,c){let{valueDeclaration:u}=n;if(!u||Gn(a).isDeclarationFile)return;let _,g=gr(c);LWe(a)&&!gat(u)&&!(Ns(a)&&Ns(a.expression))&&!Qg(u,c)&&!(Ul(u)&&ite(u)&256)&&(me||!Nut(n))?_=Ve(c,f.Property_0_is_used_before_its_initialization,g):u.kind===263&&a.parent.kind!==183&&!(u.flags&33554432)&&!Qg(u,c)&&(_=Ve(c,f.Class_0_used_before_its_declaration,g)),_&&Pa(_,Pr(u,f._0_is_declared_here,g))}function LWe(n){return!!Fn(n,a=>{switch(a.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 Ko(a.parent)&&Al(a.parent.parent)?!0:"quit";default:return Xh(a)?!1:"quit"}})}function Nut(n){if(!(n.parent.flags&32))return!1;let a=sr(n.parent);for(;;){if(a=a.symbol&&Put(a),!a)return!1;let c=ha(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Put(n){let a=Dp(n);if(a.length!==0)return ga(a)}function kWe(n,a,c){let u,_;if(!Ki(n)&&a.flags&1048576&&!(a.flags&402784252)){for(let T of a.types)if(!ha(T,n.escapedText)&&!ox(T,n.escapedText)){u=zo(u,f.Property_0_does_not_exist_on_type_1,Ts(n),Vn(T));break}}if(wWe(n.escapedText,a)){let T=Ts(n),P=Vn(a);u=zo(u,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,P,P+"."+T)}else{let T=U8(a);if(T&&ha(T,n.escapedText))u=zo(u,f.Property_0_does_not_exist_on_type_1,Ts(n),Vn(a)),_=Pr(n,f.Did_you_forget_to_use_await);else{let P=Ts(n),W=Vn(a),V=kut(P,a);if(V!==void 0)u=zo(u,f.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,W,V);else{let te=ive(n,a);if(te!==void 0){let ye=vl(te),_e=c?f.Property_0_may_not_exist_on_type_1_Did_you_mean_2:f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;u=zo(u,_e,P,W,ye),_=te.valueDeclaration&&Pr(te.valueDeclaration,f._0_is_declared_here,ye)}else{let ye=Mut(a)?f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:f.Property_0_does_not_exist_on_type_1;u=zo(tge(u,a),ye,P,W)}}}}let g=Mg(Gn(n),n,u);_&&Pa(g,_),e_(!c||u.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,g)}function Mut(n){return B.lib&&!B.lib.includes("dom")&&Uct(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Vi(a.symbol.escapedName)))&&fy(n)}function wWe(n,a){let c=a.symbol&&ha(sr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&ra(c.valueDeclaration)}function Lut(n){let a=Pm(n),u=J6().get(a);return u&&WG(u.keys())}function kut(n,a){let c=Nu(a).symbol;if(!c)return;let u=vl(c),g=J6().get(u);if(g){for(let[T,P]of g)if(Bo(P,n))return T}}function OWe(n,a){return z5(n,ms(a),106500)}function ive(n,a){let c=ms(a);if(typeof n!="string"){let u=n.parent;kr(u)&&(c=jr(c,_=>zWe(u,a,_))),n=gr(n)}return z5(n,c,111551)}function WWe(n,a){let c=No(n)?n:gr(n),u=ms(a);return(c==="for"?Vr(u,g=>vl(g)==="htmlFor"):c==="class"?Vr(u,g=>vl(g)==="className"):void 0)??z5(c,u,111551)}function ove(n,a){let c=ive(n,a);return c&&vl(c)}function ave(n,a,c){return x.assert(a!==void 0,"outername should always be defined"),Bp(n,a,c,void 0,a,!1,!1,!0,(_,g,T)=>{x.assertEqual(a,g,"name should equal outerName");let P=Vu(_,g,T);if(P)return P;let W;return _===be?W=to(["string","number","boolean","object","bigint","symbol"],te=>_.has(te.charAt(0).toUpperCase()+te.slice(1))?Ka(524288,te):void 0).concat(Wo(_.values())):W=Wo(_.values()),z5(Vi(g),W,T)})}function wut(n,a,c){let u=ave(n,a,c);return u&&vl(u)}function Tee(n,a){return a.exports&&z5(gr(n),AA(a),2623475)}function Out(n,a){let c=Tee(n,a);return c&&vl(c)}function Wut(n,a,c){function u(T){let P=e0(n,T);if(P){let W=QA(sr(P));return!!W&&Q_(W)>=1&&ya(c,p_(W,0))}return!1}let _=$h(a)?"set":"get";if(!u(_))return;let g=tk(a.expression);return g===void 0?g=_:g+="."+_,g}function Fut(n,a){let c=a.types.filter(u=>!!(u.flags&128));return GC(n.value,c,u=>u.value)}function z5(n,a,c){return GC(n,a,u);function u(_){let g=vl(_);if(!ao(g,'"')){if(_.flags&c)return g;if(_.flags&2097152){let T=EA(_);if(T&&T.flags&c)return g}}}}function B5(n,a,c){let u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;let _=fp(u,2),g=n.valueDeclaration&&iu(n.valueDeclaration)&&Ki(n.valueDeclaration.name);if(!(!_&&!g)&&!(a&&v6(a)&&!(n.flags&65536))){if(c){let T=Fn(a,ws);if(T&&T.symbol===n)return}(Tl(n)&1?qi(n).target:n).isReferenced=-1}}function FWe(n,a){return n.kind===110||!!a&&Bl(n)&&a===Wm(Fp(n))}function zut(n,a){switch(n.kind){case 211:return sve(n,n.expression.kind===108,a,Hp(po(n.expression)));case 166:return sve(n,!1,a,Hp(po(n.left)));case 205:return sve(n,!1,a,Ti(n))}}function zWe(n,a,c){return lve(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function sve(n,a,c,u){if(xt(u))return!0;let _=ha(u,c);return!!_&&lve(n,a,!1,u,_)}function lve(n,a,c,u,_){if(xt(u))return!0;if(_.valueDeclaration&&ou(_.valueDeclaration)){let g=ad(_.valueDeclaration);return!Ud(n)&&!!Fn(n,T=>T===g)}return IWe(n,a,c,u,_)}function But(n){let a=n.initializer;if(a.kind===261){let c=a.declarations[0];if(c&&!Qo(c.name))return Sr(c)}else if(a.kind===80)return Wm(a)}function Gut(n){return _u(n).length===1&&!!vg(n,It)}function Vut(n){let a=fs(n);if(a.kind===80){let c=Wm(a);if(c.flags&3){let u=n,_=n.parent;for(;_;){if(_.kind===249&&u===_.statement&&But(_)===c&&Gut(xd(_.expression)))return!0;u=_,_=_.parent}}}return!1}function jut(n,a){return n.flags&64?Uut(n,a):BWe(n,gC(n.expression),a)}function Uut(n,a){let c=po(n.expression),u=C8(c,n.expression);return XZ(BWe(n,X_(u,n.expression),a),n,u!==c)}function BWe(n,a,c){let u=DI(n)!==0||NWe(n)?Hp(a):a,_=n.argumentExpression,g=po(_);if(Vt(u)||u===go)return u;if(kee(u)&&!as(_))return Ve(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ut;let T=Vut(_)?It:g,P=$h(n)?4|(BA(u)&&!XN(u)?2:0):32,W=Lb(u,T,P,n)||ut;return qFe(MWe(n,Qr(n).resolvedSymbol,W,_,c),n)}function GWe(n){return v_(n)||U0(n)||au(n)}function $A(n){return GWe(n)&&gn(n.typeArguments,Ia),n.kind===215?po(n.template):au(n)?po(n.attributes):dr(n)?po(n.left):v_(n)&&gn(n.arguments,a=>{po(a)}),yt}function Y_(n){return $A(n),cn}function Hut(n,a,c){let u,_,g=0,T,P=-1,W;x.assert(!a.length);for(let V of n){let te=V.declaration&&Sr(V.declaration),ye=V.declaration&&V.declaration.parent;!_||te===_?u&&ye===u?T=T+1:(u=ye,T=g):(T=g=a.length,u=ye),_=te,vK(V)?(P++,W=P,g++):W=T,a.splice(W,0,c?zot(V,c):V)}}function Aee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Iee(n){return Kl(n,Aee)}function VWe(n){return!!(n.flags&16384)}function Kut(n){return!!(n.flags&49155)}function xee(n,a,c,u=!1){let _,g=!1,T=Kp(c),P=Q_(c);if(n.kind===215)if(_=a.length,n.template.kind===228){let W=Ja(n.template.templateSpans);g=Fl(W.literal)||!!W.literal.isUnterminated}else{let W=n.template;x.assert(W.kind===15),g=!!W.isUnterminated}else if(n.kind===170)_=YWe(n,c);else if(n.kind===226)_=1;else if(au(n)){if(g=n.attributes.end===n.end,g)return!0;_=P===0?a.length:1,T=a.length===0?T:1,P=Math.min(P,1)}else if(n.arguments){_=u?a.length+1:a.length,g=n.arguments.end===n.end;let W=Iee(a);if(W>=0)return W>=Q_(c)&&(zh(c)||WT)return!1;if(g||_>=P)return!0;for(let W=_;W=u&&a.length<=c}function jWe(n,a){let c;return!!(n.target&&(c=VS(n.target,a))&&pC(c))}function QA(n){return F8(n,0,!1)}function UWe(n){return F8(n,0,!1)||F8(n,1,!1)}function F8(n,a,c){if(n.flags&524288){let u=l_(n);if(c||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function HWe(n,a,c,u){let _=M8(n.typeParameters,n,0,u),g=z8(a),T=c&&(g&&g.flags&262144?c.nonFixingMapper:c.mapper),P=T?mC(a,T):a;return cye(P,n,(W,V)=>{hy(_.inferences,W,V)}),c||dye(a,n,(W,V)=>{hy(_.inferences,W,V,128)}),h8(n,Sye(_),ir(a.declaration))}function Jut(n,a,c,u){let _=gee(a,n),g=bC(n.attributes,_,u,c);return hy(u.inferences,g,_),Sye(u)}function KWe(n){if(!n)return er;let a=po(n);return jie(n)?a:eN(n.parent)?_y(a):Ud(n.parent)?qZ(a):a}function dve(n,a,c,u,_){if(au(n))return Jut(n,a,u,_);if(n.kind!==170&&n.kind!==226){let W=oo(a.typeParameters,te=>!!OA(te)),V=Hu(n,W?8:0);if(V){let te=ds(a);if(l0(te)){let ye=BS(n);if(!(!W&&Hu(n,8)!==V)){let At=mye(act(ye,1)),rn=io(V,At),sn=QA(rn),nr=sn&&sn.typeParameters?WA(lge(sn,sn.typeParameters)):rn;hy(_.inferences,nr,te,128)}let je=M8(a.typeParameters,a,_.flags),mt=io(V,ye&&ye.returnMapper);hy(je.inferences,mt,te),_.returnMapper=gt(je.inferences,EC)?mye(dct(je)):void 0}}}let g=B8(a),T=g?Math.min(Kp(a)-1,c.length):c.length;if(g&&g.flags&262144){let W=Vr(_.inferences,V=>V.typeParameter===g);W&&(W.impliedArity=Kl(c,Aee,T)<0?c.length-T:void 0)}let P=n0(a);if(P&&l0(P)){let W=XWe(n);hy(_.inferences,KWe(W),P)}for(let W=0;W=c-1){let te=n[c-1];if(Aee(te)){let ye=te.kind===237?te.type:bC(te.expression,u,_,g);return uv(ye)?JWe(ye):Bd(fv(33,ye,Me,te.kind===230?te.expression:te),T)}}let P=[],W=[],V=[];for(let te=a;tezo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,ye=u||f.Type_0_does_not_satisfy_the_constraint_1;P||(P=Np(g,T));let _e=T[W];if(!eu(_e,Up(io(V,P),_e),c?a[W]:void 0,ye,te))return}}return T}function qWe(n){if(ux(n.tagName))return 2;let a=Nu(po(n.tagName));return Nn(Jo(a,1))?0:Nn(Jo(a,0))?1:2}function qut(n,a,c,u,_,g,T){let P=gee(a,n),W=bC(n.attributes,P,void 0,u),V=u&4?P8(W):W;return te()&&qge(V,P,c,_?n.tagName:void 0,n.attributes,void 0,g,T);function te(){var ye;if(qye(n))return!0;let _e=(P_(n)||OT(n))&&!(ux(n.tagName)||qm(n.tagName))?po(n.tagName):void 0;if(!_e)return!0;let je=Jo(_e,0);if(!Nn(je))return!0;let mt=t4e(n);if(!mt)return!0;let At=Bs(mt,111551,!0,!1,n);if(!At)return!0;let rn=sr(At),sn=Jo(rn,0);if(!Nn(sn))return!0;let nr=!1,Mn=0;for(let On of sn){let Ln=p_(On,0),Yn=Jo(Ln,0);if(Nn(Yn))for(let jn of Yn){if(nr=!0,zh(jn))return!0;let $n=Kp(jn);$n>Mn&&(Mn=$n)}}if(!nr)return!0;let an=1/0;for(let On of je){let Ln=Q_(On);Ln{_.push(g.expression)}),_}if(n.kind===170)return Xut(n);if(n.kind===226)return[n.left];if(au(n))return n.attributes.properties.length>0||P_(n)&&n.parent.children.length>0?[n.attributes]:Xe;let a=n.arguments||Xe,c=Iee(a);if(c>=0){let u=a.slice(0,c);for(let _=c;_{var V;let te=T.target.elementFlags[W],ye=V5(g,te&4?Bd(P):P,!!(te&12),(V=T.target.labeledElementDeclarations)==null?void 0:V[W]);u.push(ye)}):u.push(g)}return u}return a}function Xut(n){let a=n.expression,c=Ave(n);if(c){let u=[];for(let _ of c.parameters){let g=sr(_);u.push(V5(a,g))}return u}return x.fail()}function YWe(n,a){return B.experimentalDecorators?Yut(n,a):2}function Yut(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return I_(n.parent)?3:2;case 174:case 177:case 178:return ce===0||a.parameters.length<=2?2:3;case 169:return 3;default:return x.fail()}}function $We(n){let a=Gn(n),{start:c,length:u}=fT(a,kr(n.expression)?n.expression.name:n.expression);return{start:c,length:u,sourceFile:a}}function j5(n,a,...c){if(ia(n)){let{sourceFile:u,start:_,length:g}=$We(n);return"message"in a?Qc(u,_,g,a,...c):rj(u,a)}else return"message"in a?Pr(n,a,...c):Mg(Gn(n),n,a)}function $ut(n){return v_(n)?kr(n.expression)?n.expression.name:n.expression:U0(n)?kr(n.tag)?n.tag.name:n.tag:au(n)?n.tagName:n}function Qut(n){if(!ia(n)||!Fe(n.expression))return!1;let a=hl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!Ao(c)||!F0(c.parent)||!j0(c.parent.parent)||!Fe(c.parent.parent.expression))return!1;let u=Ege(!1);return u?zm(c.parent.parent.expression,!0)===u:!1}function QWe(n,a,c,u){var _;let g=Iee(c);if(g>-1)return Pr(c[g],f.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,W=Number.NEGATIVE_INFINITY,V=Number.POSITIVE_INFINITY,te;for(let At of a){let rn=Q_(At),sn=Kp(At);rnW&&(W=rn),c.length_?T=Math.min(T,W):V<_&&(g=Math.max(g,V))}if(g!==-1/0&&T!==1/0){if(u){let P=zo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T);return P=zo(P,u),g2(Gn(n),c,P)}return Hx(Gn(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T)}if(u){let P=zo(void 0,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_);return P=zo(P,u),g2(Gn(n),c,P)}return Hx(Gn(n),c,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_)}function yC(n,a,c,u,_,g){let T=n.kind===215,P=n.kind===170,W=au(n),V=n.kind===226,te=!j&&!c,ye;!P&&!V&&!mT(n)&&(ye=n.typeArguments,(T||W||n.expression.kind!==108)&&gn(ye,Ia));let _e=c||[];Hut(a,_e,_),x.assert(_e.length,"Revert #54442 and add a testcase with whatever triggered this");let je=Dee(n),mt=_e.length===1&&!_e[0].typeParameters,At=!P&&!mt&>(je,zf)?4:0,rn,sn,nr,Mn,an=!!(u&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(_e.length>1&&(Mn=Ln(_e,Ih,mt,an)),Mn||(Mn=Ln(_e,Gu,mt,an)),Mn)return Mn;if(Mn=ept(n,_e,je,!!c,u),Qr(n).resolvedSignature=Mn,te)if(!g&&V&&(g=f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),rn)if(rn.length===1||rn.length>3){let Yn=rn[rn.length-1],jn;rn.length>3&&(jn=zo(jn,f.The_last_overload_gave_the_following_error),jn=zo(jn,f.No_overload_matches_this_call)),g&&(jn=zo(jn,g));let $n=G5(n,je,Yn,Gu,0,!0,()=>jn);if($n)for(let Ro of $n)Yn.declaration&&rn.length>3&&Pa(Ro,Pr(Yn.declaration,f.The_last_overload_is_declared_here)),On(Yn,Ro),Qa.add(Ro);else x.fail("No error for last overload signature")}else{let Yn=[],jn=0,$n=Number.MAX_VALUE,Ro=0,bo=0;for(let sp of rn){let Xn=G5(n,je,sp,Gu,0,!0,()=>zo(void 0,f.Overload_0_of_1_2_gave_the_following_error,bo+1,_e.length,Nh(sp)));Xn?(Xn.length<=$n&&($n=Xn.length,Ro=bo),jn=Math.max(jn,Xn.length),Yn.push(Xn)):x.fail("No error for 3 or fewer overload signatures"),bo++}let Fo=jn>1?Yn[Ro]:pm(Yn);x.assert(Fo.length>0,"No errors reported for 3 or fewer overload signatures");let fo=zo(mn(Fo,Jre),f.No_overload_matches_this_call);g&&(fo=zo(fo,g));let Rc=[...va(Fo,sp=>sp.relatedInformation)],Vf;if(oo(Fo,sp=>sp.start===Fo[0].start&&sp.length===Fo[0].length&&sp.file===Fo[0].file)){let{file:sp,start:Pn,length:Xn}=Fo[0];Vf={file:sp,start:Pn,length:Xn,code:fo.code,category:fo.category,messageText:fo,relatedInformation:Rc}}else Vf=Mg(Gn(n),$ut(n),fo,Rc);On(rn[0],Vf),Qa.add(Vf)}else if(sn)Qa.add(QWe(n,[sn],je,g));else if(nr)pve(nr,n.typeArguments,!0,g);else{let Yn=jr(a,jn=>cve(jn,ye));Yn.length===0?Qa.add(Zut(n,a,ye,g)):Qa.add(QWe(n,Yn,je,g))}return Mn;function On(Yn,jn){var $n,Ro;let bo=rn,Fo=sn,fo=nr,Rc=((Ro=($n=Yn.declaration)==null?void 0:$n.symbol)==null?void 0:Ro.declarations)||Xe,sp=Rc.length>1?Vr(Rc,Pn=>ws(Pn)&&Hf(Pn.body)):void 0;if(sp){let Pn=lm(sp),Xn=!Pn.typeParameters;Ln([Pn],Gu,Xn)&&Pa(jn,Pr(sp,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}rn=bo,sn=Fo,nr=fo}function Ln(Yn,jn,$n,Ro=!1){if(rn=void 0,sn=void 0,nr=void 0,$n){let bo=Yn[0];if(gt(ye)||!xee(n,je,bo,Ro))return;if(G5(n,je,bo,jn,0,!1,void 0)){rn=[bo];return}return bo}for(let bo=0;bo0),px(n),u||a.length===1||a.some(g=>!!g.typeParameters)?rpt(n,a,c,_):tpt(a)}function tpt(n){let a=to(n,W=>W.thisParameter),c;a.length&&(c=ZWe(a,a.map(K5)));let{min:u,max:_}=Eoe(n,npt),g=[];for(let W=0;W<_;W++){let V=to(n,te=>qd(te)?WVS(te,W))))}let T=to(n,W=>qd(W)?Ja(W.parameters):void 0),P=128;if(T.length!==0){let W=Bd(ei(to(n,Mwe),2));g.push(eFe(T,W)),P|=1}return n.some(vK)&&(P|=2),yg(n[0].declaration,void 0,c,g,ga(n.map(ds)),void 0,u,P)}function npt(n){let a=n.parameters.length;return qd(n)?a-1:a}function ZWe(n,a){return eFe(n,ei(a,2))}function eFe(n,a){return UA(Va(n),a)}function rpt(n,a,c,u){let _=apt(a,Zt===void 0?c.length:Zt),g=a[_],{typeParameters:T}=g;if(!T)return g;let P=GWe(n)?n.typeArguments:void 0,W=P?yZ(g,ipt(P,T,ir(n))):opt(n,T,g,c,u);return a[_]=W,W}function ipt(n,a,c){let u=n.map(fx);for(;u.length>a.length;)u.pop();for(;u.length=a)return _;T>u&&(u=T,c=_)}return c}function spt(n,a,c){if(n.expression.kind===108){let W=Wye(n.expression);if(xt(W)){for(let V of n.arguments)po(V);return yt}if(!Vt(W)){let V=S_(ad(n));if(V){let te=Lh(W,V.typeArguments,V);return yC(n,te,a,c,0)}}return $A(n)}let u,_=po(n.expression);if(oT(n)){let W=C8(_,n.expression);u=W===_?0:tN(n)?16:8,_=W}else u=0;if(_=RWe(_,n.expression,Aut),_===go)return pr;let g=Nu(_);if(Vt(g))return Y_(n);let T=Jo(g,0),P=Jo(g,1).length;if(U5(_,g,T.length,P))return!Vt(_)&&n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),$A(n);if(!T.length){if(P)Ve(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Vn(_));else{let W;if(n.arguments.length===1){let V=Gn(n).text;jd(V.charCodeAt(Na(V,n.expression.end,!0)-1))&&(W=Pr(n.expression,f.Are_you_missing_a_semicolon))}mve(n.expression,g,0,W)}return Y_(n)}return c&8&&!n.typeArguments&&T.some(lpt)?(WFe(n,c),yr):T.some(W=>ir(W.declaration)&&!!yV(W.declaration))?(Ve(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Vn(_)),Y_(n)):yC(n,T,a,c,u)}function lpt(n){return!!(n.typeParameters&&ibe(ds(n)))}function U5(n,a,c,u){return xt(n)||xt(a)&&!!(n.flags&262144)||!c&&!u&&!(a.flags&1048576)&&!(c_(a).flags&131072)&&ya(n,Lt)}function cpt(n,a,c){if(n.arguments&&ce<1){let T=Iee(n.arguments);T>=0&&Ve(n.arguments[T],f.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=gC(n.expression);if(u===go)return pr;if(u=Nu(u),Vt(u))return Y_(n);if(xt(u))return n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),$A(n);let _=Jo(u,1);if(_.length){if(!dpt(n,_[0]))return Y_(n);if(tFe(_,P=>!!(P.flags&4)))return Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Y_(n);let T=u.symbol&&Og(u.symbol);return T&&$r(T,64)?(Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Y_(n)):yC(n,_,a,c,0)}let g=Jo(u,0);if(g.length){let T=yC(n,g,a,c,0);return fe||(T.declaration&&!$_(T.declaration)&&ds(T)!==er&&Ve(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),n0(T)===er&&Ve(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return mve(n.expression,u,1),Y_(n)}function tFe(n,a){return To(n)?gt(n,c=>tFe(c,a)):n.compositeKind===1048576?gt(n.compositeSignatures,a):a(n)}function fve(n,a){let c=Dp(a);if(!Nn(c))return!1;let u=c[0];if(u.flags&2097152){let _=u.types,g=fwe(_),T=0;for(let P of u.types){if(!g[T]&&Lr(P)&3&&(P.symbol===n||fve(n,P)))return!0;T++}return!1}return u.symbol===n?!0:fve(n,u)}function dpt(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,u=PI(c,6);if(!u||c.kind!==176)return!0;let _=Og(c.parent.symbol),g=Xs(c.parent.symbol);if(!tbe(n,_)){let T=ad(n);if(T&&u&4){let P=fx(T);if(fve(c.parent.symbol,P))return!0}return u&2&&Ve(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Vn(g)),u&4&&Ve(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Vn(g)),!1}return!0}function nFe(n,a,c){let u,_=c===0,g=eI(a),T=g&&Jo(g,c).length>0;if(a.flags&1048576){let W=a.types,V=!1;for(let te of W)if(Jo(te,c).length!==0){if(V=!0,u)break}else if(u||(u=zo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(te)),u=zo(u,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,Vn(a))),V)break;V||(u=zo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Vn(a))),u||(u=zo(u,_?f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Vn(a)))}else u=zo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(a));let P=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(ia(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:W}=Qr(n);W&&W.flags&32768&&(P=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:zo(u,P),relatedMessage:T?f.Did_you_forget_to_use_await:void 0}}function mve(n,a,c,u){let{messageChain:_,relatedMessage:g}=nFe(n,a,c),T=Mg(Gn(n),n,_);if(g&&Pa(T,Pr(n,g)),ia(n.parent)){let{start:P,length:W}=$We(n.parent);T.start=P,T.length=W}Qa.add(T),rFe(a,c,u?Pa(T,u):T)}function rFe(n,a,c){if(!n.symbol)return;let u=qi(n.symbol).originatingImport;if(u&&!Op(u)){let _=Jo(sr(qi(n.symbol).target),a);if(!_||!_.length)return;Pa(c,Pr(u,f.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 upt(n,a,c){let u=po(n.tag),_=Nu(u);if(Vt(_))return Y_(n);let g=Jo(_,0),T=Jo(_,1).length;if(U5(u,_,g.length,T))return $A(n);if(!g.length){if(uu(n.parent)){let P=Pr(n.tag,f.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 Qa.add(P),Y_(n)}return mve(n.tag,_,0),Y_(n)}return yC(n,g,a,c,0)}function ppt(n){switch(n.parent.kind){case 263:case 231:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return x.fail()}}function fpt(n,a,c){let u=po(n.expression),_=Nu(u);if(Vt(_))return Y_(n);let g=Jo(_,0),T=Jo(_,1).length;if(U5(u,_,g.length,T))return $A(n);if(hpt(n,g)&&!Ou(n.expression)){let W=uc(n.expression,!1);return Ve(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,W),Y_(n)}let P=ppt(n);if(!g.length){let W=nFe(n.expression,_,0),V=zo(W.messageChain,P),te=Mg(Gn(n.expression),n.expression,V);return W.relatedMessage&&Pa(te,Pr(n.expression,W.relatedMessage)),Qa.add(te),rFe(_,0,te),Y_(n)}return yC(n,g,a,c,0,P)}function Cee(n,a){let c=YA(n),u=c&&xp(c),_=u&&Vu(u,tf.Element,788968),g=_&&Et.symbolToEntityName(_,788968,n),T=L.createFunctionTypeNode(void 0,[L.createParameterDeclaration(void 0,void 0,"props",void 0,Et.typeToTypeNode(a,n))],g?L.createTypeReferenceNode(g,void 0):L.createKeywordTypeNode(133)),P=Ka(1,"props");return P.links.type=a,yg(T,void 0,void 0,[P],_?Xs(_):ut,void 0,1,0)}function mpt(n,a,c){if(ux(n.tagName)){let T=EWe(n),P=Cee(n,T);return Wb(bC(n.attributes,gee(P,n),void 0,0),T,n.tagName,n.attributes),Nn(n.typeArguments)&&(gn(n.typeArguments,Ia),Qa.add(Hx(Gn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Nn(n.typeArguments)))),P}let u=po(n.tagName),_=Nu(u);if(Vt(_))return Y_(n);let g=vWe(u,n);return U5(u,_,g.length,0)?$A(n):g.length===0?(Ve(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,uc(n.tagName)),Y_(n)):yC(n,g,a,c,0)}function _pt(n,a,c){let u=po(n.right);if(!xt(u)){let _=Dve(u);if(_){let g=Nu(_);if(Vt(g))return Y_(n);let T=Jo(g,0),P=Jo(g,1);if(U5(_,g,T.length,P.length))return $A(n);if(T.length)return yC(n,T,a,c,0)}else if(!(Qee(u)||Ob(u,Lt)))return Ve(n.right,f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),Y_(n)}return yt}function hpt(n,a){return a.length&&oo(a,c=>c.minArgumentCount===0&&!qd(c)&&c.parameters.length1?tc(n.arguments[1]):void 0;for(let g=2;g{let T=Hp(_);WZ(g,T)||KOe(_,g,c,f.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 Ipt(n){let a=po(n.expression),c=C8(a,n.expression);return XZ(_y(c),n,c!==a)}function xpt(n){return n.flags&64?Ipt(n):_y(po(n.expression))}function dFe(n){if(i4e(n),gn(n.typeArguments,Ia),n.kind===233){let c=Py(n.parent);c.kind===226&&c.operatorToken.kind===104&&C0(n,c.right)&&Ve(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=n.kind===233?po(n.expression):k0(n.exprName)?P5(n.exprName):po(n.exprName);return uFe(a,n)}function uFe(n,a){let c=a.typeArguments;if(n===go||Vt(n)||!gt(c))return n;let u=!1,_,g=P(n),T=u?_:n;return T&&Qa.add(Hx(Gn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Vn(T))),g;function P(V){let te=!1,ye=!1,_e=je(V);return u||(u=ye),te&&!ye&&(_??(_=V)),_e;function je(mt){if(mt.flags&524288){let At=l_(mt),rn=W(At.callSignatures),sn=W(At.constructSignatures);if(te||(te=At.callSignatures.length!==0||At.constructSignatures.length!==0),ye||(ye=rn.length!==0||sn.length!==0),rn!==At.callSignatures||sn!==At.constructSignatures){let nr=Ds(Ka(0,"__instantiationExpression"),At.members,rn,sn,At.indexInfos);return nr.objectFlags|=8388608,nr.node=a,nr}}else if(mt.flags&58982400){let At=zd(mt);if(At){let rn=je(At);if(rn!==At)return rn}}else{if(mt.flags&1048576)return ll(mt,P);if(mt.flags&2097152)return ga(Pc(mt.types,je))}return mt}}function W(V){let te=jr(V,ye=>!!ye.typeParameters&&cve(ye,c));return Pc(te,ye=>{let _e=pve(ye,c,!0);return _e?h8(ye,_e,ir(ye.declaration)):ye})}}function Rpt(n){return Ia(n.type),yve(n.expression,n.type)}function yve(n,a,c){let u=po(n,c),_=Ti(a);if(Vt(_))return _;let g=Fn(a.parent,T=>T.kind===238||T.kind===357);return Wb(u,_,g,n,f.Type_0_does_not_satisfy_the_expected_type_1),u}function Dpt(n){return Agt(n),n.keywordToken===105?vve(n):n.keywordToken===102?Cpt(n):x.assertNever(n.keywordToken)}function pFe(n){switch(n.keywordToken){case 102:return Jwe();case 105:let a=vve(n);return Vt(a)?ut:Kpt(a);default:x.assertNever(n.keywordToken)}}function vve(n){let a=sie(n);if(a)if(a.kind===176){let c=Sr(a.parent);return sr(c)}else{let c=Sr(a);return sr(c)}else return Ve(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ut}function Cpt(n){z===100||z===199?Gn(n).impliedNodeFormat!==99&&Ve(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):z<6&&z!==4&&Ve(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let a=Gn(n);return x.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?Kwe():ut}function K5(n){let a=n.valueDeclaration;return op(sr(n),!1,!!a&&(Mv(a)||YN(a)))}function bve(n,a,c="arg"){return n?(x.assert(Fe(n.name)),n.name.escapedText):`${c}_${a}`}function XM(n,a,c){let u=n.parameters.length-(qd(n)?1:0);if(a=u-1)return a===u-1?g:Bd(Cp(g,It));let T=[],P=[],W=[];for(let V=a;V!(W&1)),P=T<0?g.target.fixedLength:T;P>0&&(_=n.parameters.length-1+P)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(u)return _;for(let g=_-1;g>=0;g--){let T=p_(n,g);if(cc(T,VWe).flags&131072)break;_=g}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function zh(n){if(qd(n)){let a=sr(n.parameters[n.parameters.length-1]);return!wa(a)||a.target.hasRestElement}return!1}function z8(n){if(qd(n)){let a=sr(n.parameters[n.parameters.length-1]);if(!wa(a))return xt(a)?Zl:a;if(a.target.hasRestElement)return WM(a,a.target.fixedLength)}}function B8(n){let a=z8(n);return a&&!Gf(a)&&!xt(a)?a:void 0}function Eve(n){return Sve(n,Fr)}function Sve(n,a){return n.parameters.length>0?p_(n,0):a}function hFe(n,a,c){let u=n.parameters.length-(qd(n)?1:0);for(let _=0;_=0);let g=Pl(u.parent)?sr(Sr(u.parent.parent)):J6e(u.parent),T=Pl(u.parent)?Me:q6e(u.parent),P=d_(_),W=t_("target",g),V=t_("propertyKey",T),te=t_("parameterIndex",P);c.decoratorSignature=K8(void 0,void 0,[W,V,te],er);break}case 174:case 177:case 178:case 172:{let u=a;if(!ci(u.parent))break;let _=J6e(u),g=t_("target",_),T=q6e(u),P=t_("propertyKey",T),W=Uo(u)?er:eOe(fx(u));if(ce!==0&&(!Uo(a)||I_(a))){let te=eOe(fx(u)),ye=t_("descriptor",te);c.decoratorSignature=K8(void 0,void 0,[g,P,ye],ei([W,er]))}else c.decoratorSignature=K8(void 0,void 0,[g,P],ei([W,er]));break}}return c.decoratorSignature===yt?void 0:c.decoratorSignature}function Ave(n){return Z?Hpt(n):Upt(n)}function X5(n){let a=o5(!0);return a!==Lo?(n=pv(eL(n))||un,sv(a,[n])):un}function vFe(n){let a=$we(!0);return a!==Lo?(n=pv(eL(n))||un,sv(a,[n])):un}function Y5(n,a){let c=X5(a);return c===un?(Ve(n,Op(n)?f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ut):(Ege(!0)||Ve(n,Op(n)?f.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:f.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 Kpt(n){let a=Ka(0,"NewTargetExpression"),c=Ka(4,"target",8);c.parent=a,c.links.type=n;let u=aa([c]);return a.members=u,Ds(a,u,Xe,Xe,Xe)}function Mee(n,a){if(!n.body)return ut;let c=Vc(n),u=(c&2)!==0,_=(c&1)!==0,g,T,P,W=er;if(n.body.kind!==241)g=tc(n.body,a&&a&-9),u&&(g=eL(H8(g,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(_){let V=IFe(n,a);V?V.length>0&&(g=ei(V,2)):W=Fr;let{yieldTypes:te,nextTypes:ye}=Jpt(n,a);T=gt(te)?ei(te,2):void 0,P=gt(ye)?ga(ye):void 0}else{let V=IFe(n,a);if(!V)return c&2?Y5(n,Fr):Fr;if(V.length===0){let te=fee(n,void 0),ye=te&&(sG(te,c)||er).flags&32768?Me:er;return c&2?Y5(n,ye):ye}g=ei(V,2)}if(g||T||P){if(T&&ZZ(n,T,3),g&&ZZ(n,g,1),P&&ZZ(n,P,2),g&&u_(g)||T&&u_(T)||P&&u_(P)){let V=Uye(n),te=V?V===lm(n)?_?void 0:g:_ee(ds(V),n,void 0):void 0;_?(T=sye(T,te,0,u),g=sye(g,te,1,u),P=sye(P,te,2,u)):g=qlt(g,te,u)}T&&(T=Hp(T)),g&&(g=Hp(g)),P&&(P=Hp(P))}return _?bFe(T||Fr,g||W,P||oWe(2,n)||un,u):u?X5(g||W):g||W}function bFe(n,a,c,u){let _=u?zs:hc,g=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||un,a=_.resolveIterationType(a,void 0)||un,c=_.resolveIterationType(c,void 0)||un,g===Lo){let T=_.getGlobalIterableIteratorType(!1),P=T!==Lo?p6e(T,_):void 0,W=P?P.returnType:G,V=P?P.nextType:Me;return ya(a,W)&&ya(V,c)?T!==Lo?y8(T,[n]):(_.getGlobalIterableIteratorType(!0),Ca):(_.getGlobalGeneratorType(!0),Ca)}return y8(g,[n,a,c])}function Jpt(n,a){let c=[],u=[],_=(Vc(n)&2)!==0;return Yre(n.body,g=>{let T=g.expression?po(g.expression,a):Nt;yf(c,EFe(g,T,G,_));let P;if(g.asteriskToken){let W=Hee(T,_?19:17,g.expression);P=W&&W.nextType}else P=Hu(g,void 0);P&&yf(u,P)}),{yieldTypes:c,nextTypes:u}}function EFe(n,a,c,u){let _=n.expression||n,g=n.asteriskToken?fv(u?19:17,a,c,_):a;return u?eI(g,_,n.asteriskToken?f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g}function SFe(n,a,c){let u=0;for(let _=0;_=a?c[_]:void 0;u|=g!==void 0?EK.get(g)||32768:0}return u}function TFe(n){let a=Qr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=qpt(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function qpt(n){if(n.expression.kind===221){let u=W8e(n);if(!u)return!1;let _=cy(tc(n.expression.expression)),g=SFe(0,0,u);return _.flags&3?(556800&g)===556800:!Fm(_,T=>UM(T,g)===g)}let a=tc(n.expression);if(!D8(a))return!1;let c=oee(n);return!c.length||gt(c,Hlt)?!1:Vct(ll(a,gu),c)}function AFe(n){return n.endFlowNode&&C5(n.endFlowNode)}function IFe(n,a){let c=Vc(n),u=[],_=AFe(n),g=!1;if(I0(n.body,T=>{let P=T.expression;if(P){if(P=fs(P,!0),c&2&&P.kind===223&&(P=fs(P.expression,!0)),P.kind===213&&P.expression.kind===80&&tc(P.expression).symbol===n.symbol){g=!0;return}let W=tc(P,a&&a&-9);c&2&&(W=eL(H8(W,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),W.flags&131072&&(g=!0),yf(u,W)}else _=!0}),!(u.length===0&&!_&&(g||Xpt(n))))return J&&u.length&&_&&!($_(n)&&u.some(T=>T.symbol===n.symbol))&&yf(u,Me),u}function Xpt(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Ive(n,a){r(c);return;function c(){let u=Vc(n),_=a&&sG(a,u);if(_&&(Rl(_,16384)||_.flags&32769)||n.kind===173||Fl(n.body)||n.body.kind!==241||!AFe(n))return;let g=n.flags&1024,T=$f(n)||n;if(_&&_.flags&131072)Ve(T,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!g)Ve(T,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&J&&!ya(Me,_))Ve(T,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(B.noImplicitReturns){if(!_){if(!g)return;let P=ds(lm(n));if(b6e(n,P))return}Ve(T,f.Not_all_code_paths_return_a_value)}}}function xFe(n,a){if(x.assert(n.kind!==174||bm(n)),px(n),Ps(n)&&tL(n,n.name),a&&a&4&&zf(n)){if(!$f(n)&&!z6(n)){let u=W8(n);if(u&&l0(ds(u))){let _=Qr(n);if(_.contextFreeType)return _.contextFreeType;let g=Mee(n,a),T=yg(void 0,void 0,void 0,Xe,g,void 0,0,64),P=Ds(n.symbol,K,[T],Xe,Xe);return P.objectFlags|=262144,_.contextFreeType=P}}return tn}return!nte(n)&&n.kind===218&&sbe(n),Ypt(n,a),sr(Sr(n))}function Ypt(n,a){let c=Qr(n);if(!(c.flags&64)){let u=W8(n);if(!(c.flags&64)){c.flags|=64;let _=Xc(Jo(sr(Sr(n)),0));if(!_)return;if(zf(n))if(u){let g=BS(n),T;if(a&&a&2){hFe(_,u,g);let P=z8(u);P&&P.flags&262144&&(T=mC(u,g.nonFixingMapper))}T||(T=g?mC(u,g.mapper):u),Mpt(_,T)}else Lpt(_);else if(u&&!n.typeParameters&&u.parameters.length>n.parameters.length){let g=BS(n);a&&a&2&&hFe(_,u,g)}if(u&&!sC(n)&&!_.resolvedReturnType){let g=Mee(n,a);_.resolvedReturnType||(_.resolvedReturnType=g)}V8(n)}}}function $pt(n){x.assert(n.kind!==174||bm(n));let a=Vc(n),c=sC(n);if(Ive(n,c),n.body)if($f(n)||ds(lm(n)),n.body.kind===241)Ia(n.body);else{let u=po(n.body),_=c&&sG(c,a);if(_){let g=Ree(n.body);if((a&3)===2){let T=H8(u,!1,g,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Wb(T,_,g,g)}else Wb(u,_,g,g)}}}function Lee(n,a,c,u=!1){if(!ya(a,$l)){let _=u&&ZM(a);return FE(n,!!_&&ya(_,$l),c),!1}return!0}function Qpt(n){if(!ia(n)||!gT(n))return!1;let a=tc(n.arguments[2]);if(Ue(a,"value")){let _=ha(a,"writable"),g=_&&sr(_);if(!g||g===Ut||g===En)return!0;if(_&&_.valueDeclaration&&mc(_.valueDeclaration)){let T=_.valueDeclaration.initializer,P=po(T);if(P===Ut||P===En)return!0}return!1}return!ha(a,"set")}function f_(n){return!!(Tl(n)&8||n.flags&4&&Tf(n)&8||n.flags&3&&$ye(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||gt(n.declarations,Qpt))}function RFe(n,a,c){var u,_;if(c===0)return!1;if(f_(a)){if(a.flags&4&&Ns(n)&&n.expression.kind===110){let g=Wp(n);if(!(g&&(g.kind===176||$_(g))))return!0;if(a.valueDeclaration){let T=dr(a.valueDeclaration),P=g.parent===a.valueDeclaration.parent,W=g===a.valueDeclaration.parent,V=T&&((u=a.parent)==null?void 0:u.valueDeclaration)===g.parent,te=T&&((_=a.parent)==null?void 0:_.valueDeclaration)===g;return!(P||W||V||te)}}return!0}if(Ns(n)){let g=fs(n.expression);if(g.kind===80){let T=Qr(g).resolvedSymbol;if(T.flags&2097152){let P=Mm(T);return!!P&&P.kind===274}}}return!1}function G8(n,a,c){let u=Yl(n,7);return u.kind!==80&&!Ns(u)?(Ve(n,a),!1):u.flags&64?(Ve(n,c),!1):!0}function Zpt(n){po(n.expression);let a=fs(n.expression);if(!Ns(a))return Ve(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),gi;kr(a)&&Ki(a.name)&&Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let c=Qr(a),u=ff(c.resolvedSymbol);return u&&(f_(u)?Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):eft(a,u)),gi}function eft(n,a){let c=sr(a);J&&!(c.flags&131075)&&!(Ae?a.flags&16777216:dm(c,16777216))&&Ve(n,f.The_operand_of_a_delete_operator_must_be_optional)}function tft(n){return po(n.expression),FD}function nft(n){return px(n),Nt}function DFe(n){let a=!1,c=OF(n);if(c&&Al(c)){let u=Jv(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;Ve(n,u),a=!0}else if(!(n.flags&65536))if(FF(n)){let u=Gn(n);if(!US(u)){let _;if(!TI(u,B)){_??(_=ph(u,n.pos));let g=Jv(n)?f.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:f.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=Qc(u,_.start,_.length,g);Qa.add(T),a=!0}switch(z){case 100:case 199:if(u.impliedNodeFormat===1){_??(_=ph(u,n.pos)),Qa.add(Qc(u,_.start,_.length,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(ce>=4)break;default:_??(_=ph(u,n.pos));let g=Jv(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;Qa.add(Qc(u,_.start,_.length,g)),a=!0;break}}}else{let u=Gn(n);if(!US(u)){let _=ph(u,n.pos),g=Jv(n)?f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,T=Qc(u,_.start,_.length,g);if(c&&c.kind!==176&&!(Vc(c)&2)){let P=Pr(c,f.Did_you_mean_to_mark_this_function_as_async);Pa(T,P)}Qa.add(T),a=!0}}return Jv(n)&&zye(n)&&(Ve(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function rft(n){r(()=>DFe(n));let a=po(n.expression),c=H8(a,!0,n,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!Vt(c)&&!(a.flags&3)&&e_(!1,Pr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function ift(n){let a=po(n.operand);if(a===go)return go;switch(n.operand.kind){case 9:switch(n.operator){case 41:return cx(d_(-n.operand.text));case 40:return cx(d_(+n.operand.text))}break;case 10:if(n.operator===41)return cx(PZ({negative:!0,base10Value:UN(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return X_(a,n.operand),$5(a,12288)&&Ve(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,da(n.operator)),n.operator===40?($5(a,2112)&&Ve(n.operand,f.Operator_0_cannot_be_applied_to_type_1,da(n.operator),Vn(my(a))),It):xve(a);case 54:Vve(a,n.operand);let c=UM(a,12582912);return c===4194304?Ut:c===8388608?wn:gi;case 46:case 47:return Lee(n.operand,X_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&G8(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),xve(a)}return ut}function oft(n){let a=po(n.operand);return a===go?go:(Lee(n.operand,X_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&G8(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),xve(a))}function xve(n){return Rl(n,2112)?Id(n,3)||Rl(n,296)?$l:Dt:It}function $5(n,a){if(Rl(n,a))return!0;let c=cy(n);return!!c&&Rl(c,a)}function Rl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){let c=n.types;for(let u of c)if(Rl(u,a))return!0}return!1}function Id(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&ya(n,It)||!!(a&2112)&&ya(n,Dt)||!!(a&402653316)&&ya(n,Ne)||!!(a&528)&&ya(n,gi)||!!(a&16384)&&ya(n,er)||!!(a&131072)&&ya(n,Fr)||!!(a&65536)&&ya(n,ue)||!!(a&32768)&&ya(n,Me)||!!(a&4096)&&ya(n,xi)||!!(a&67108864)&&ya(n,Kr)}function Q5(n,a,c){return n.flags&1048576?oo(n.types,u=>Q5(u,a,c)):Id(n,a,c)}function kee(n){return!!(Lr(n)&16)&&!!n.symbol&&Rve(n.symbol)}function Rve(n){return(n.flags&128)!==0}function Dve(n){let a=m6e("hasInstance"),c=e0(n,a);if(c){let u=sr(c);if(u&&Jo(u,0).length!==0)return u}}function aft(n,a,c,u,_){if(c===go||u===go)return go;!xt(c)&&Q5(c,402784252)&&Ve(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),x.assert(m6(n.parent));let g=vC(n.parent,void 0,_);if(g===yr)return go;let T=ds(g);return eu(T,gi,a,f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),gi}function sft(n){return Fm(n,a=>a===xl||!!(a.flags&2097152)&&Fh(cy(a)))}function lft(n,a,c,u){if(c===go||u===go)return go;if(Ki(n)){if(ce<99&&xc(n,2097152),!Qr(n).resolvedSymbol&&ad(n)){let _=rve(n,u.symbol,!0);kWe(n,u,_)}}else eu(X_(c,n),xn,n);return eu(X_(u,a),Kr,a)&&sft(u)&&Ve(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Vn(u)),gi}function cft(n,a,c){let u=n.properties;if(J&&u.length===0)return X_(a,n);for(let _=0;_WM(V,c)):Bd(u);return ZA(P,W,_)}}}}function ZA(n,a,c,u){let _;if(n.kind===304){let g=n;g.objectAssignmentInitializer&&(J&&!dm(po(g.objectAssignmentInitializer),16777216)&&(a=um(a,524288)),mft(g.name,g.equalsToken,g.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(De(_,c),_=_.left,J&&(a=um(a,524288))),_.kind===210?cft(_,a,u):_.kind===209?dft(_,a,c):uft(_,a,c)}function uft(n,a,c){let u=po(n,c),_=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,g=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return G8(n,_,g)&&Wb(a,u,n,n),Ox(n)&&xc(n.parent,1048576),a}function Z5(n){switch(n=fs(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 Z5(n.whenTrue)&&Z5(n.whenFalse);case 226:return Ly(n.operatorToken.kind)?!1:Z5(n.left)&&Z5(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 Cve(n,a){return(a.flags&98304)!==0||WZ(n,a)}function pft(){let n=e3(a,c,u,_,g,T);return(_e,je)=>{let mt=n(_e,je);return x.assertIsDefined(mt),mt};function a(_e,je,mt){return je?(je.stackIndex++,je.skip=!1,V(je,void 0),ye(je,void 0)):je={checkMode:mt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},ir(_e)&&AI(_e)?(je.skip=!0,ye(je,po(_e.right,mt)),je):(fft(_e),_e.operatorToken.kind===64&&(_e.left.kind===210||_e.left.kind===209)&&(je.skip=!0,ye(je,ZA(_e.left,po(_e.right,mt),mt,_e.right.kind===110))),je)}function c(_e,je,mt){if(!je.skip)return P(je,_e)}function u(_e,je,mt){if(!je.skip){let At=te(je);x.assertIsDefined(At),V(je,At),ye(je,void 0);let rn=_e.kind;if(Q2(rn)){let sn=mt.parent;for(;sn.kind===217||Z2(sn);)sn=sn.parent;(rn===56||LT(sn))&&Gve(mt.left,At,LT(sn)?sn.thenStatement:void 0),Vve(At,mt.left)}}}function _(_e,je,mt){if(!je.skip)return P(je,_e)}function g(_e,je){let mt;if(je.skip)mt=te(je);else{let At=W(je);x.assertIsDefined(At);let rn=te(je);x.assertIsDefined(rn),mt=PFe(_e.left,_e.operatorToken,_e.right,At,rn,je.checkMode,_e)}return je.skip=!1,V(je,void 0),ye(je,void 0),je.stackIndex--,mt}function T(_e,je,mt){return ye(_e,je),_e}function P(_e,je){if(dr(je))return je;ye(_e,po(je,_e.checkMode))}function W(_e){return _e.typeStack[_e.stackIndex]}function V(_e,je){_e.typeStack[_e.stackIndex]=je}function te(_e){return _e.typeStack[_e.stackIndex+1]}function ye(_e,je){_e.typeStack[_e.stackIndex+1]=je}}function fft(n){let{left:a,operatorToken:c,right:u}=n;c.kind===61&&(dr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&yn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,da(a.operatorToken.kind),da(c.kind)),dr(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===56)&&yn(u,f._0_and_1_operations_cannot_be_mixed_without_parentheses,da(u.operatorToken.kind),da(c.kind)))}function mft(n,a,c,u,_){let g=a.kind;if(g===64&&(n.kind===210||n.kind===209))return ZA(n,po(c,u),u,c.kind===110);let T;Q2(g)?T=nL(n,u):T=po(n,u);let P=po(c,u);return PFe(n,a,c,T,P,u,_)}function PFe(n,a,c,u,_,g,T){let P=a.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(u===go||_===go)return go;u=X_(u,n),_=X_(_,c);let an;if(u.flags&528&&_.flags&528&&(an=_e(a.kind))!==void 0)return Ve(T||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,da(a.kind),da(an)),It;{let Yn=Lee(n,u,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),jn=Lee(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),$n;if(Id(u,3)&&Id(_,3)||!(Rl(u,2112)||Rl(_,2112)))$n=It;else if(W(u,_)){switch(P){case 50:case 73:rn();break;case 43:case 68:ce<3&&Ve(T,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}$n=Dt}else rn(W),$n=ut;return Yn&&jn&&je($n),$n}case 40:case 65:if(u===go||_===go)return go;!Id(u,402653316)&&!Id(_,402653316)&&(u=X_(u,n),_=X_(_,c));let On;return Id(u,296,!0)&&Id(_,296,!0)?On=It:Id(u,2112,!0)&&Id(_,2112,!0)?On=Dt:Id(u,402653316,!0)||Id(_,402653316,!0)?On=Ne:(xt(u)||xt(_))&&(On=Vt(u)||Vt(_)?ut:G),On&&!ye(P)?On:On?(P===65&&je(On),On):(rn((jn,$n)=>Id(jn,402655727)&&Id($n,402655727)),G);case 30:case 32:case 33:case 34:return ye(P)&&(u=oye(X_(u,n)),_=oye(X_(_,c)),At((Yn,jn)=>{if(xt(Yn)||xt(jn))return!0;let $n=ya(Yn,$l),Ro=ya(jn,$l);return $n&&Ro||!$n&&!Ro&&m5(Yn,jn)})),gi;case 35:case 36:case 37:case 38:if(!(g&&g&64)){if((RV(n)||RV(c))&&(!ir(n)||P===37||P===38)){let Yn=P===35||P===37;Ve(T,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Yn?"false":"true")}nr(T,P,n,c),At((Yn,jn)=>Cve(Yn,jn)||Cve(jn,Yn))}return gi;case 104:return aft(n,c,u,_,g);case 103:return lft(n,c,u,_);case 56:case 77:{let Yn=dm(u,4194304)?ei([$lt(J?u:my(_)),_]):u;return P===77&&je(_),Yn}case 57:case 76:{let Yn=dm(u,8388608)?ei([_y(d8e(u)),_],2):u;return P===76&&je(_),Yn}case 61:case 78:{let Yn=dm(u,262144)?ei([_y(u),_],2):u;return P===78&&je(_),Yn}case 64:let Ln=dr(n.parent)?zl(n.parent):0;return V(Ln,_),mt(Ln)?((!(_.flags&524288)||Ln!==2&&Ln!==6&&!fy(_)&&!xye(_)&&!(Lr(_)&1))&&je(_),u):(je(_),_);case 28:if(!B.allowUnreachableCode&&Z5(n)&&!te(n.parent)){let Yn=Gn(n),jn=Yn.text,$n=Na(jn,n.pos);Yn.parseDiagnostics.some(bo=>bo.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:_V(bo,$n))||Ve(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return x.fail()}function W(an,On){return Id(an,2112)&&Id(On,2112)}function V(an,On){if(an===2)for(let Ln of Nb(On)){let Yn=sr(Ln);if(Yn.symbol&&Yn.symbol.flags&32){let jn=Ln.escapedName,$n=hl(Ln.valueDeclaration,jn,788968,void 0,jn,!1);$n?.declarations&&$n.declarations.some(zT)&&(am($n,f.Duplicate_identifier_0,Vi(jn),Ln),am(Ln,f.Duplicate_identifier_0,Vi(jn),$n))}}}function te(an){return an.parent.kind===217&&mp(an.left)&&an.left.text==="0"&&(ia(an.parent.parent)&&an.parent.parent.expression===an.parent||an.parent.parent.kind===215)&&(Ns(an.right)||Fe(an.right)&&an.right.escapedText==="eval")}function ye(an){let On=$5(u,12288)?n:$5(_,12288)?c:void 0;return On?(Ve(On,f.The_0_operator_cannot_be_applied_to_type_symbol,da(an)),!1):!0}function _e(an){switch(an){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function je(an){Ly(P)&&r(On);function On(){let Ln=u;if(NP(a.kind)&&n.kind===211&&(Ln=bee(n,void 0,!0)),G8(n,f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Yn;if(Ae&&kr(n)&&Rl(an,32768)){let jn=Ue(xd(n.expression),n.name.escapedText);zZ(an,jn)&&(Yn=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Wb(an,Ln,n,c,Yn)}}}function mt(an){var On;switch(an){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let Ln=pf(n),Yn=AI(c);return!!Yn&&Ma(Yn)&&!!((On=Ln?.exports)!=null&&On.size);default:return!1}}function At(an){return an(u,_)?!1:(rn(an),!0)}function rn(an){let On=!1,Ln=T||a;if(an){let bo=pv(u),Fo=pv(_);On=!(bo===u&&Fo===_)&&!!(bo&&Fo)&&an(bo,Fo)}let Yn=u,jn=_;!On&&an&&([Yn,jn]=_ft(u,_,an));let[$n,Ro]=tx(Yn,jn);sn(Ln,On,$n,Ro)||FE(Ln,On,f.Operator_0_cannot_be_applied_to_types_1_and_2,da(a.kind),$n,Ro)}function sn(an,On,Ln,Yn){switch(a.kind){case 37:case 35:case 38:case 36:return FE(an,On,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Ln,Yn);default:return}}function nr(an,On,Ln,Yn){let jn=Mn(fs(Ln)),$n=Mn(fs(Yn));if(jn||$n){let Ro=Ve(an,f.This_condition_will_always_return_0,da(On===37||On===35?97:112));if(jn&&$n)return;let bo=On===38||On===36?da(54):"",Fo=jn?Yn:Ln,fo=fs(Fo);Pa(Ro,Pr(Fo,f.Did_you_mean_0,`${bo}Number.isNaN(${Bl(fo)?up(fo):"..."})`))}}function Mn(an){if(Fe(an)&&an.escapedText==="NaN"){let On=rst();return!!On&&On===Wm(an)}return!1}}function _ft(n,a,c){let u=n,_=a,g=my(n),T=my(a);return c(g,T)||(u=g,_=T),[u,_]}function hft(n){r(_e);let a=Wp(n);if(!a)return G;let c=Vc(a);if(!(c&1))return G;let u=(c&2)!==0;n.asteriskToken&&(u&&ce<99&&xc(n,26624),!u&&ce<2&&B.downlevelIteration&&xc(n,256));let _=sC(a);_&&_.flags&1048576&&(_=cc(_,je=>Mve(je,c,void 0)));let g=_&&v6e(_,u),T=g&&g.yieldType||G,P=g&&g.nextType||G,W=u?eI(P)||G:P,V=n.expression?po(n.expression):Nt,te=EFe(n,V,W,u);if(_&&te&&Wb(te,T,n.expression||n,n.expression),n.asteriskToken)return Uve(u?19:17,1,V,n.expression)||G;if(_)return jS(2,_,u)||G;let ye=oWe(2,a);return ye||(ye=G,r(()=>{if(fe&&!xoe(n)){let je=Hu(n,void 0);(!je||xt(je))&&Ve(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ye;function _e(){n.flags&16384||_d(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),zye(n)&&Ve(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function gft(n,a){let c=nL(n.condition,a);Gve(n.condition,c,n.whenTrue);let u=po(n.whenTrue,a),_=po(n.whenFalse,a);return ei([u,_],2)}function MFe(n){let a=n.parent;return Ou(a)&&MFe(a)||Js(a)&&a.argumentExpression===n}function yft(n){let a=[n.head.text],c=[];for(let _ of n.templateSpans){let g=po(_.expression);$5(g,12288)&&Ve(_.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(_.literal.text),c.push(ya(g,Mo)?g:Ne)}if($M(n)||MFe(n)||Fm(Hu(n,void 0)||un,vft))return FA(a,c);let u=n.parent.kind!==215&&k6e(n);return u?cx(Uu(u)):Ne}function vft(n){return!!(n.flags&134217856||n.flags&58982400&&Rl(zd(n)||un,402653316))}function bft(n){return q0(n)&&!OT(n.parent)?n.parent.parent:n}function bC(n,a,c,u){let _=bft(n);L5(_,a,!1),Bdt(_,c);let g=po(n,u|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let T=Rl(g,2944)&&Oee(g,_ee(a,n,void 0))?gu(g):g;return Gdt(),O8(),T}function tc(n,a){if(a)return po(n,a);let c=Qr(n);if(!c.resolvedType){let u=B_,_=_n;B_=df,_n=void 0,c.resolvedType=po(n,a),_n=_,B_=u}return c.resolvedType}function LFe(n){return n=fs(n,!0),n.kind===216||n.kind===234||WR(n)}function YM(n,a,c){let u=D2(n);if(ir(n)){let g=V6(n);if(g)return yve(u,g,a)}let _=Pve(u)||(c?bC(u,c,void 0,a||0):tc(u,a));return Ao(n)&&n.name.kind===207&&wa(_)&&!_.target.hasRestElement&&lv(_)Oee(n,u))}if(a.flags&58982400){let c=zd(a)||un;return Rl(c,4)&&Rl(n,128)||Rl(c,8)&&Rl(n,256)||Rl(c,64)&&Rl(n,2048)||Rl(c,4096)&&Rl(n,8192)||Oee(n,c)}return!!(a.flags&406847616&&Rl(n,128)||a.flags&256&&Rl(n,256)||a.flags&2048&&Rl(n,2048)||a.flags&512&&Rl(n,512)||a.flags&8192&&Rl(n,8192))}return!1}function $M(n){let a=n.parent;return cT(a)&&Ng(a.type)||WR(a)&&Ng(Y4(a))||gve(n)&&wA(Hu(n,0))||(Ou(a)||uu(a)||Jm(a))&&$M(a)||(mc(a)||Zu(a)||dP(a))&&$M(a.parent)}function QM(n,a,c){let u=po(n,a,c);return $M(n)||Zre(n)?gu(u):LFe(n)?u:aye(u,_ee(Hu(n,void 0),n,void 0))}function kFe(n,a){return n.name.kind===167&&bg(n.name),QM(n.initializer,a)}function wFe(n,a){s4e(n),n.name.kind===167&&bg(n.name);let c=xFe(n,a);return OFe(n,c,a)}function OFe(n,a,c){if(c&&c&10){let u=F8(a,0,!0),_=F8(a,1,!0),g=u||_;if(g&&g.typeParameters){let T=u0(n,2);if(T){let P=F8(_y(T),u?0:1,!1);if(P&&!P.typeParameters){if(c&8)return WFe(n,c),tn;let W=BS(n),V=W.signature&&ds(W.signature),te=V&&UWe(V);if(te&&!te.typeParameters&&!oo(W.inferences,EC)){let ye=Ift(W,g.typeParameters),_e=lge(g,ye),je=mn(W.inferences,mt=>fye(mt.typeParameter));if(cye(_e,P,(mt,At)=>{hy(je,mt,At,0,!0)}),gt(je,EC)&&(dye(_e,P,(mt,At)=>{hy(je,mt,At)}),!Tft(W.inferences,je)))return Aft(W.inferences,je),W.inferredTypeParameters=Eo(W.inferredTypeParameters,ye),WA(_e)}return WA(HWe(g,P,W))}}}}return a}function WFe(n,a){if(a&2){let c=BS(n);c.flags|=4}}function EC(n){return!!(n.candidates||n.contraCandidates)}function Sft(n){return!!(n.candidates||n.contraCandidates||Ewe(n.typeParameter))}function Tft(n,a){for(let c=0;cc.symbol.escapedName===a)}function xft(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;let u=a.slice(0,c);for(let _=1;;_++){let g=u+_;if(!Nve(n,g))return g}}function FFe(n){let a=QA(n);if(a&&!a.typeParameters)return ds(a)}function Rft(n){let a=po(n.expression),c=C8(a,n.expression),u=FFe(a);return u&&XZ(u,n,c!==a)}function xd(n){let a=Pve(n);if(a)return a;if(n.flags&268435456&&_n){let _=_n[rs(n)];if(_)return _}let c=qe,u=po(n,64);if(qe!==c){let _=_n||(_n=[]);_[rs(n)]=u,Ioe(n,n.flags|268435456)}return u}function Pve(n){let a=fs(n,!0);if(WR(a)){let c=Y4(a);if(!Ng(c))return Ti(c)}if(a=fs(n),Jv(a)){let c=Pve(a.expression);return c?eI(c):void 0}if(ia(a)&&a.expression.kind!==108&&!bu(a,!0)&&!iFe(a))return oT(a)?Rft(a):FFe(gC(a.expression));if(cT(a)&&!Ng(a.type))return Ti(a.type);if(b0(n)||aN(n))return po(n)}function eG(n){let a=Qr(n);if(a.contextFreeType)return a.contextFreeType;L5(n,G,!1);let c=a.contextFreeType=po(n,4);return O8(),c}function po(n,a,c){var u,_;(u=rr)==null||u.push(rr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let g=D;D=n,S=0;let T=Nft(n,a,c),P=OFe(n,T,a);return kee(P)&&Dft(n,P),D=g,(_=rr)==null||_.pop(),P}function Dft(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&Yee(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||Ve(n,f.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),em(B)&&(x.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!fE(n)&&Ve(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function Cft(n,a){if(kp(n)){if(hU(n))return yve(n.expression,gU(n),a);if(WR(n))return lFe(n,a)}return po(n.expression,a)}function Nft(n,a,c){let u=n.kind;if(i)switch(u){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(u){case 80:return cdt(n,a);case 81:return Rut(n);case 110:return P5(n);case 108:return Wye(n);case 106:return We;case 15:case 11:return yye(n)?He:cx(Uu(n.text));case 9:return ube(n),cx(d_(+n.text));case 10:return Mgt(n),cx(PZ({negative:!1,base10Value:UN(n.text)}));case 112:return wn;case 97:return Ut;case 228:return yft(n);case 14:return _l;case 209:return fWe(n,a,c);case 210:return out(n,a);case 211:return bee(n,a);case 166:return CWe(n,a);case 212:return jut(n,a);case 213:if(n.expression.kind===102)return Ept(n);case 214:return bpt(n,a);case 215:return Spt(n);case 217:return Cft(n,a);case 231:return g_t(n);case 218:case 219:return xFe(n,a);case 221:return tft(n);case 216:case 234:return Tpt(n,a);case 235:return xpt(n);case 233:return dFe(n);case 238:return Rpt(n);case 236:return Dpt(n);case 220:return Zpt(n);case 222:return nft(n);case 223:return rft(n);case 224:return ift(n);case 225:return oft(n);case 226:return De(n,a);case 227:return gft(n,a);case 230:return Zdt(n,a);case 232:return Nt;case 229:return hft(n);case 237:return eut(n);case 294:return but(n,a);case 284:return cut(n,a);case 285:return sut(n,a);case 288:return dut(n);case 292:return put(n,a);case 286:x.fail("Shouldn't ever directly check a JsxOpeningElement")}return ut}function zFe(n){Sg(n),n.expression&&_d(n.expression,f.Type_expected),Ia(n.constraint),Ia(n.default);let a=MA(Sr(n));zd(a),dat(a)||Ve(n.default,f.Type_parameter_0_has_a_circular_default,Vn(a));let c=Cu(a),u=OA(a);c&&u&&eu(u,Up(io(c,OS(a,u)),u),n.default,f.Type_0_does_not_satisfy_the_constraint_1),px(n),r(()=>rL(n.name,f.Type_parameter_name_cannot_be_0))}function Pft(n){var a,c;if(pu(n.parent)||ci(n.parent)||Tm(n.parent)){let u=MA(Sr(n)),_=tye(u)&24576;if(_){let g=Sr(n.parent);if(Tm(n.parent)&&!(Lr(Xs(g))&52))Ve(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=rr)==null||a.push(rr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:hu(Xs(g)),id:hu(u)});let T=g5(g,u,_===16384?$:de),P=g5(g,u,_===16384?de:$),W=u;w=u,eu(T,P,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),w=W,(c=rr)==null||c.pop()}}}}function BFe(n){Sg(n),oG(n);let a=Wp(n);$r(n,31)&&(a.kind===176&&Hf(a.body)||Ve(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Fe(n.name)&&n.name.escapedText==="constructor"&&Ve(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&YN(n)&&Qo(n.name)&&a.body&&Ve(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Fe(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Ve(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&Ve(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===219&&Ve(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&Ve(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Qo(n.name)&&!ya(c_(sr(n.symbol)),lf)&&Ve(n,f.A_rest_parameter_must_be_of_an_array_type)}function Mft(n){let a=Lft(n);if(!a){Ve(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let c=lm(a),u=Ff(c);if(!u)return;Ia(n.type);let{parameterName:_}=n;if(u.kind===0||u.kind===2)MZ(_);else if(u.parameterIndex>=0){if(qd(c)&&u.parameterIndex===c.parameters.length-1)Ve(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){let g=()=>zo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);eu(u.type,sr(c.parameters[u.parameterIndex]),n.type,void 0,g)}}else if(_){let g=!1;for(let{name:T}of a.parameters)if(Qo(T)&&GFe(T,_,u.parameterName)){g=!0;break}g||Ve(n.parameterName,f.Cannot_find_parameter_0,u.parameterName)}}function Lft(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let a=n.parent;if(n===a.type)return a}}function GFe(n,a,c){for(let u of n.elements){if(jc(u))continue;let _=u.name;if(_.kind===80&&_.escapedText===c)return Ve(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&GFe(_,a,c))return!0}}function V8(n){n.kind===181?agt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&nte(n);let a=Vc(n);a&4||((a&3)===3&&ce<99&&xc(n,6144),(a&3)===2&&ce<4&&xc(n,64),a&3&&ce<2&&xc(n,128)),lG(Rv(n)),m_t(n),gn(n.parameters,BFe),n.type&&Ia(n.type),r(c);function c(){Pmt(n);let u=$f(n),_=u;if(ir(n)){let g=tE(n);if(g&&g.typeExpression&&If(g.typeExpression.type)){let T=QA(Ti(g.typeExpression));T&&T.declaration&&(u=$f(T.declaration),_=g.typeExpression.type)}}if(fe&&!u)switch(n.kind){case 180:Ve(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Ve(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u&&_){let g=Vc(n);if((g&5)===1){let T=Ti(u);T===er?Ve(_,f.A_generator_cannot_have_a_void_type_annotation):Mve(T,g,_)}else(g&3)===2&&dmt(n,u,_)}n.kind!==181&&n.kind!==324&&Vb(n)}}function Mve(n,a,c){let u=jS(0,n,(a&2)!==0)||G,_=jS(1,n,(a&2)!==0)||u,g=jS(2,n,(a&2)!==0)||un,T=bFe(u,_,g,!!(a&2));return eu(T,n,c)}function kft(n){let a=new Map,c=new Map,u=new Map;for(let g of n.members)if(g.kind===176)for(let T of g.parameters)dp(T,g)&&!Qo(T.name)&&_(a,T.name,T.name.escapedText,3);else{let T=ra(g),P=g.name;if(!P)continue;let W=Ki(P),V=W&&T?16:0,te=W?u:T?c:a,ye=P&&pbe(P);if(ye)switch(g.kind){case 177:_(te,P,ye,1|V);break;case 178:_(te,P,ye,2|V);break;case 172:_(te,P,ye,3|V);break;case 174:_(te,P,ye,8|V);break}}function _(g,T,P,W){let V=g.get(P);if(V)if((V&16)!==(W&16))Ve(T,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,uc(T));else{let te=!!(V&8),ye=!!(W&8);te||ye?te!==ye&&Ve(T,f.Duplicate_identifier_0,uc(T)):V&W&-17?Ve(T,f.Duplicate_identifier_0,uc(T)):g.set(P,V|W)}else g.set(P,W)}}function wft(n){for(let a of n.members){let c=a.name;if(ra(a)&&c){let _=pbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(me)break;case"prototype":let g=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,T=qE(Sr(n));Ve(c,g,_,T);break}}}}function VFe(n){let a=new Map;for(let c of n.members)if(c.kind===171){let u,_=c.name;switch(_.kind){case 11:case 9:u=_.text;break;case 80:u=gr(_);break;default:continue}a.get(u)?(Ve(Po(c.symbol.valueDeclaration),f.Duplicate_identifier_0,u),Ve(c.name,f.Duplicate_identifier_0,u)):a.set(u,!0)}}function Lve(n){if(n.kind===264){let c=Sr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=cge(Sr(n));if(a?.declarations){let c=new Map;for(let u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&qA(Ti(u.parameters[0].type),_=>{let g=c.get(hu(_));g?g.declarations.push(u):c.set(hu(_),{type:_,declarations:[u]})});c.forEach(u=>{if(u.declarations.length>1)for(let _ of u.declarations)Ve(_,f.Duplicate_index_signature_for_type_0,Vn(u.type))})}}function jFe(n){!Sg(n)&&!Dgt(n)&&rte(n.name),oG(n),kve(n),$r(n,64)&&n.kind===172&&n.initializer&&Ve(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ts(n.name))}function Oft(n){return Ki(n.name)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),jFe(n)}function Wft(n){s4e(n)||rte(n.name),Ul(n)&&n.asteriskToken&&Fe(n.name)&&gr(n.name)==="constructor"&&Ve(n.name,f.Class_constructor_may_not_be_a_generator),n6e(n),$r(n,64)&&n.kind===174&&n.body&&Ve(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ts(n.name)),Ki(n.name)&&!ad(n)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),kve(n)}function kve(n){if(Ki(n.name)&&ce<99){for(let a=uh(n);a;a=uh(a))Qr(a).flags|=1048576;if(Zc(n.parent)){let a=Lye(n.parent);a&&(Qr(n.name).flags|=32768,Qr(a).flags|=4096)}}}function Fft(n){Sg(n),Go(n,Ia)}function zft(n){V8(n),xgt(n)||Rgt(n),Ia(n.body);let a=Sr(n),c=cl(a,n.kind);if(n===c&&zee(a),Fl(n.body))return;r(_);return;function u(g){return ou(g)?!0:g.kind===172&&!ra(g)&&!!g.initializer}function _(){let g=n.parent;if(N0(g)){kye(n.parent,g);let T=wye(g),P=$8e(n.body);if(P){if(T&&Ve(P,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ge&&(gt(n.parent.members,u)||gt(n.parameters,V=>$r(V,31))))if(!Bft(P,n.body))Ve(P,f.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 V;for(let te of n.body.statements){if(ed(te)&&mT(Yl(te.expression))){V=te;break}if(UFe(te))break}V===void 0&&Ve(n,f.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||Ve(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Bft(n,a){let c=Py(n.parent);return ed(c)&&c.parent===a}function UFe(n){return n.kind===108||n.kind===110?!0:aie(n)?!1:!!Go(n,UFe)}function HFe(n){Fe(n.name)&&gr(n.name)==="constructor"&&ci(n.parent)&&Ve(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Ia(n.body),kve(n);function a(){if(!nte(n)&&!_gt(n)&&rte(n.name),nG(n),V8(n),n.kind===177&&!(n.flags&33554432)&&Hf(n.body)&&n.flags&512&&(n.flags&1024||Ve(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&bg(n.name),oC(n)){let u=Sr(n),_=cl(u,177),g=cl(u,178);if(_&&g&&!(AC(_)&1)){Qr(_).flags|=1;let T=lu(_),P=lu(g);(T&64)!==(P&64)&&(Ve(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),Ve(g.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(T&4&&!(P&6)||T&2&&!(P&2))&&(Ve(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Ve(g.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let c=QE(Sr(n));n.kind===177&&Ive(n,c)}}function Gft(n){nG(n)}function Vft(n,a,c){return n.typeArguments&&c{let u=wve(n);u&&KFe(n,u)});let c=Qr(n).resolvedSymbol;c&>(c.declarations,u=>SR(u)&&!!(u.flags&536870912))&&tv(H5(n),c.declarations,c.escapedName)}}function Uft(n){let a=ri(n.parent,gF);if(!a)return;let c=wve(a);if(!c)return;let u=Cu(c[a.typeArguments.indexOf(n)]);return u&&io(u,Np(c,Wee(a,c)))}function Hft(n){Uwe(n)}function Kft(n){gn(n.members,Ia),r(a);function a(){let c=POe(n);Kee(c,c.symbol),Lve(n),VFe(n)}}function Jft(n){Ia(n.elementType)}function qft(n){let a=!1,c=!1;for(let u of n.elements){let _=Age(u);if(_&8){let g=Ti(u.type);if(!uv(g)){Ve(u,f.A_rest_element_type_must_be_an_array_type);break}(Gf(g)||wa(g)&&g.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){yn(u,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){yn(u,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){yn(u,f.A_required_element_cannot_follow_an_optional_element);break}}gn(n.elements,Ia),Ti(n)}function Xft(n){gn(n.types,Ia),Ti(n)}function qFe(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,u=n.indexType,_=ju(c)&&_Z(c)===2?_Oe(c,0):J_(c,0),g=!!vg(c,It);if(ap(u,T=>ya(T,_)||g&&ix(T,It)))return a.kind===212&&$h(a)&&Lr(c)&32&&kh(c)&1&&Ve(a,f.Index_signature_in_type_0_only_permits_reading,Vn(c)),n;if(BA(c)){let T=RZ(u,a);if(T){let P=qA(Nu(c),W=>ha(W,T));if(P&&Tf(P)&6)return Ve(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(T)),ut}}return Ve(a,f.Type_0_cannot_be_used_to_index_type_1,Vn(u),Vn(c)),ut}function Yft(n){Ia(n.objectType),Ia(n.indexType),qFe(IOe(n),n)}function $ft(n){Qft(n),Ia(n.typeParameter),Ia(n.nameType),Ia(n.type),n.type||s0(n,G);let a=Oge(n),c=av(a);if(c)eu(c,Ls,n.nameType);else{let u=hf(a);eu(u,Ls,wx(n.typeParameter))}}function Qft(n){var a;if((a=n.members)!=null&&a.length)return yn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function Zft(n){MZ(n)}function emt(n){ggt(n),Ia(n.type)}function tmt(n){Go(n,Ia)}function nmt(n){Fn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||yn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ia(n.typeParameter);let a=Sr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=qi(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let u=MA(a),_=Dre(a,168);if(!T6e(_,[u],g=>[g])){let g=Si(a);for(let T of _)Ve(T.name,f.All_declarations_of_0_must_have_identical_constraints,g)}}}Vb(n)}function rmt(n){for(let a of n.templateSpans){Ia(a.type);let c=Ti(a.type);eu(c,Mo,a.type)}Ti(n)}function imt(n){Ia(n.argument),n.attributes&&QR(n.attributes,yn),JFe(n)}function omt(n){n.dotDotDotToken&&n.questionToken&&yn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&yn(n.type,f.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&&yn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Ia(n.type),Ti(n)}function tG(n){return(fp(n,2)||ou(n))&&!!(n.flags&33554432)}function Fee(n,a){let c=ite(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){let u=nj(n);u&&u.flags&128&&!(c&128)&&!(N_(n.parent)&&ql(n.parent.parent)&&E_(n.parent.parent))&&(c|=32),c|=128}return c&a}function zee(n){r(()=>amt(n))}function amt(n){function a(an,On){return On!==void 0&&On.parent===an[0].parent?On:an[0]}function c(an,On,Ln,Yn,jn){if((Yn^jn)!==0){let Ro=Fee(a(an,On),Ln);gn(an,bo=>{let Fo=Fee(bo,Ln)^Ro;Fo&32?Ve(Po(bo),f.Overload_signatures_must_all_be_exported_or_non_exported):Fo&128?Ve(Po(bo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):Fo&6?Ve(Po(bo)||bo,f.Overload_signatures_must_all_be_public_private_or_protected):Fo&64&&Ve(Po(bo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(an,On,Ln,Yn){if(Ln!==Yn){let jn=xI(a(an,On));gn(an,$n=>{xI($n)!==jn&&Ve(Po($n),f.Overload_signatures_must_all_be_optional_or_required)})}}let _=230,g=0,T=_,P=!1,W=!0,V=!1,te,ye,_e,je=n.declarations,mt=(n.flags&16384)!==0;function At(an){if(an.name&&Fl(an.name))return;let On=!1,Ln=Go(an.parent,jn=>{if(On)return jn;On=jn===an});if(Ln&&Ln.pos===an.end&&Ln.kind===an.kind){let jn=Ln.name||Ln,$n=Ln.name;if(an.name&&$n&&(Ki(an.name)&&Ki($n)&&an.name.escapedText===$n.escapedText||Ya(an.name)&&Ya($n)&&py(bg(an.name),bg($n))||T_(an.name)&&T_($n)&&TN(an.name)===TN($n))){if((an.kind===174||an.kind===173)&&ra(an)!==ra(Ln)){let bo=ra(an)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;Ve(jn,bo)}return}if(Hf(Ln.body)){Ve(jn,f.Function_implementation_name_must_be_0,Ts(an.name));return}}let Yn=an.name||an;mt?Ve(Yn,f.Constructor_implementation_is_missing):$r(an,64)?Ve(Yn,f.All_declarations_of_an_abstract_method_must_be_consecutive):Ve(Yn,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let rn=!1,sn=!1,nr=!1,Mn=[];if(je)for(let an of je){let On=an,Ln=On.flags&33554432,Yn=On.parent&&(On.parent.kind===264||On.parent.kind===187)||Ln;if(Yn&&(_e=void 0),(On.kind===263||On.kind===231)&&!Ln&&(nr=!0),On.kind===262||On.kind===174||On.kind===173||On.kind===176){Mn.push(On);let jn=Fee(On,_);g|=jn,T&=jn,P=P||xI(On),W=W&&xI(On);let $n=Hf(On.body);$n&&te?mt?sn=!0:rn=!0:_e?.parent===On.parent&&_e.end!==On.pos&&At(_e),$n?te||(te=On):V=!0,_e=On,Yn||(ye=On)}ir(an)&&$o(an)&&an.jsDoc&&(V=Nn(vj(an))>0)}if(sn&&gn(Mn,an=>{Ve(an,f.Multiple_constructor_implementations_are_not_allowed)}),rn&&gn(Mn,an=>{Ve(Po(an)||an,f.Duplicate_function_implementation)}),nr&&!mt&&n.flags&16&&je){let an=jr(je,On=>On.kind===263).map(On=>Pr(On,f.Consider_adding_a_declare_modifier_to_this_class));gn(je,On=>{let Ln=On.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:On.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ln&&Pa(Ve(Po(On)||On,Ln,vl(n)),...an)})}if(ye&&!ye.body&&!$r(ye,64)&&!ye.questionToken&&At(ye),V&&(je&&(c(je,te,_,g,T),u(je,te,P,W)),te)){let an=PS(n),On=lm(te);for(let Ln of an)if(!xlt(On,Ln)){let Yn=Ln.declaration&&yE(Ln.declaration)?Ln.declaration.parent.tagName:Ln.declaration;Pa(Ve(Yn,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Pr(te,f.The_implementation_signature_is_declared_here));break}}}function j8(n){r(()=>smt(n))}function smt(n){let a=n.localSymbol;if(!a&&(a=Sr(n),!a.exportSymbol)||cl(a,n.kind)!==n)return;let c=0,u=0,_=0;for(let V of a.declarations){let te=W(V),ye=Fee(V,2080);ye&32?ye&2048?_|=te:c|=te:u|=te}let g=c|u,T=c&u,P=_&g;if(T||P)for(let V of a.declarations){let te=W(V),ye=Po(V);te&P?Ve(ye,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ts(ye)):te&T&&Ve(ye,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ts(ye))}function W(V){let te=V;switch(te.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Md(te)||Vg(te)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:let ye=te,_e=Ll(ye)?ye.expression:ye.right;if(!Bl(_e))return 1;te=_e;case 271:case 274:case 273:let je=0,mt=Wc(Sr(te));return gn(mt.declarations,At=>{je|=W(At)}),je;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return x.failBadSyntaxKind(te)}}}function ZM(n,a,c,...u){let _=U8(n,a);return _&&eI(_,a,c,...u)}function U8(n,a,c){if(xt(n))return;let u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(Db(n,o5(!1)))return u.promisedTypeOfPromise=Vs(n)[0];if(Q5(cy(n),402915324))return;let _=Ue(n,"then");if(xt(_))return;let g=_?Jo(_,0):Xe;if(g.length===0){a&&Ve(a,f.A_promise_must_have_a_then_method);return}let T,P;for(let te of g){let ye=n0(te);ye&&ye!==er&&!q_(n,ye,Ih)?T=ye:P=Tn(P,te)}if(!P){x.assertIsDefined(T),c&&(c.value=T),a&&Ve(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Vn(n),Vn(T));return}let W=um(ei(mn(P,Eve)),2097152);if(xt(W))return;let V=Jo(W,0);if(V.length===0){a&&Ve(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=ei(mn(V,Eve),2)}function H8(n,a,c,u,..._){return(a?eI(n,c,u,..._):pv(n,c,u,..._))||ut}function XFe(n){if(Q5(cy(n),402915324))return!1;let a=Ue(n,"then");return!!a&&Jo(um(a,2097152),0).length>0}function Bee(n){var a;if(n.flags&16777216){let c=Tge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function eL(n){return n.flags&1048576?ll(n,eL):Bee(n)?n.aliasTypeArguments[0]:n}function YFe(n){if(xt(n)||Bee(n))return!1;if(BA(n)){let a=zd(n);if(a?a.flags&3||fy(a)||Fm(a,XFe):Rl(n,8650752))return!0}return!1}function lmt(n){let a=Tge(!0);if(a)return cC(a,[eL(n)])}function cmt(n){if(YFe(n)){let a=lmt(n);if(a)return a}return x.assert(Bee(n)||U8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function eI(n,a,c,...u){let _=pv(n,a,c,...u);return _&&cmt(_)}function pv(n,a,c,...u){if(xt(n)||Bee(n))return n;let _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(wE.lastIndexOf(n.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let P=a?V=>pv(V,a,c,...u):pv;wE.push(n.id);let W=ll(n,P);return wE.pop(),_.awaitedTypeOfType=W}if(YFe(n))return _.awaitedTypeOfType=n;let g={value:void 0},T=U8(n,void 0,g);if(T){if(n.id===T.id||wE.lastIndexOf(T.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}wE.push(n.id);let P=pv(T,a,c,...u);return wE.pop(),P?_.awaitedTypeOfType=P:void 0}if(XFe(n)){if(a){x.assertIsDefined(c);let P;g.value&&(P=zo(P,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Vn(n),Vn(g.value))),P=zo(P,c,...u),Qa.add(Mg(Gn(a),a,P))}return}return _.awaitedTypeOfType=n}function dmt(n,a,c){let u=Ti(a);if(ce>=2){if(Vt(u))return;let g=o5(!0);if(g!==Lo&&!Db(u,g)){_(f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,Vn(pv(u)||er));return}}else{if(pmt(a),Vt(u))return;let g=A2(a);if(g===void 0){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Vn(u));return}let T=Bs(g,111551,!0),P=T?sr(T):ut;if(Vt(P)){g.kind===80&&g.escapedText==="Promise"&&ov(u)===o5(!1)?Ve(c,f.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):_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,up(g));return}let W=Oat(!0);if(W===Ca){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,up(g));return}let V=f.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(!eu(P,W,c,V,()=>a===c?void 0:zo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let ye=g&&Fp(g),_e=Vu(n.locals,ye.escapedText,111551);if(_e){Ve(_e.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,gr(ye),up(g));return}}H8(u,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function _(g,T,P,W){if(T===P)Ve(P,g,W);else{let V=Ve(P,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Pa(V,Pr(T,g,W))}}}function umt(n){let a=vC(n);Pee(a,n);let c=ds(a);if(c.flags&1)return;let u=Ave(n);if(!u?.resolvedReturnType)return;let _,g=u.resolvedReturnType;switch(n.parent.kind){case 263:case 231:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!Z){_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:_=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return x.failBadSyntaxKind(n.parent)}eu(c,g,n.expression,_)}function K8(n,a,c,u,_,g=c.length,T=0){let P=L.createFunctionTypeNode(void 0,Xe,L.createKeywordTypeNode(133));return yg(P,n,a,c,u,_,g,T)}function Wve(n,a,c,u,_,g,T){let P=K8(n,a,c,u,_,g,T);return WA(P)}function $Fe(n){return Wve(void 0,void 0,Xe,n)}function QFe(n){let a=t_("value",n);return Wve(void 0,void 0,[a],er)}function pmt(n){ZFe(n&&A2(n),!1)}function ZFe(n,a){if(!n)return;let c=Fp(n),u=(n.kind===80?788968:1920)|2097152,_=hl(c,c.escapedText,u,void 0,void 0,!0);if(_&&_.flags&2097152){if(pt&&wm(_)&&!Y8(Wc(_))&&!Lf(_))hb(_);else if(a&&em(B)&&Ld(B)>=5&&!wm(_)&&!gt(_.declarations,iE)){let g=Ve(n,f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),T=Vr(_.declarations||Xe,pb);T&&Pa(g,Pr(T,f._0_was_imported_here,gr(c)))}}}function SC(n){let a=Fve(n);a&&Xu(a)&&ZFe(a,!0)}function Fve(n){if(n)switch(n.kind){case 193:case 192:return e6e(n.types);case 194:return e6e([n.trueType,n.falseType]);case 196:case 202:return Fve(n.type);case 183:return n.typeName}}function e6e(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!J&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;let u=Fve(c);if(!u)return;if(a){if(!Fe(a)||!Fe(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function Gee(n){let a=yd(n);return Kh(n)?aj(a):a}function nG(n){if(!GT(n)||!bf(n)||!n.modifiers||!GF(Z,n,n.parent,n.parent.parent))return;let a=Vr(n.modifiers,bd);if(a){if(Z?(xc(a,8),n.kind===169&&xc(a,32)):ce<99&&(xc(a,8),Sc(n)?n.name?A6e(n)&&xc(a,8388608):xc(a,8388608):Zc(n)||(Ki(n.name)&&(Ul(n)||Cv(n)||Mu(n))&&xc(a,8388608),Ya(n.name)&&xc(a,16777216))),B.emitDecoratorMetadata)switch(xc(a,16),n.kind){case 263:let c=Zh(n);if(c)for(let T of c.parameters)SC(Gee(T));break;case 177:case 178:let u=n.kind===177?178:177,_=cl(Sr(n),u);SC(Om(n)||_&&Om(_));break;case 174:for(let T of n.parameters)SC(Gee(T));SC($f(n));break;case 172:SC(yd(n));break;case 169:SC(Gee(n));let g=n.parent;for(let T of g.parameters)SC(Gee(T));SC($f(g));break}for(let c of n.modifiers)bd(c)&&umt(c)}}function fmt(n){r(a);function a(){n6e(n),sbe(n),tL(n,n.name)}}function mmt(n){n.typeExpression||Ve(n.name,f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&rL(n.name,f.Type_alias_name_cannot_be_0),Ia(n.typeExpression),lG(Rv(n))}function _mt(n){Ia(n.constraint);for(let a of n.typeParameters)Ia(a)}function hmt(n){Ia(n.typeExpression)}function gmt(n){Ia(n.typeExpression);let a=cE(n);if(a){let c=rF(a,J4);if(Nn(c)>1)for(let u=1;u0),c.length>1&&Ve(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let u=t6e(n.class.expression),_=N0(a);if(_){let g=t6e(_.expression);g&&u.escapedText!==g.escapedText&&Ve(u,f.JSDoc_0_1_does_not_match_the_extends_2_clause,gr(n.tagName),gr(u),gr(g))}}function Imt(n){let a=vT(n);a&&ou(a)&&Ve(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function t6e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function n6e(n){var a;nG(n),V8(n);let c=Vc(n);if(n.name&&n.name.kind===167&&bg(n.name),oC(n)){let g=Sr(n),T=n.localSymbol||g,P=(a=T.declarations)==null?void 0:a.find(W=>W.kind===n.kind&&!(W.flags&524288));n===P&&zee(T),g.parent&&zee(g)}let u=n.kind===173?void 0:n.body;if(Ia(u),Ive(n,sC(n)),r(_),ir(n)){let g=tE(n);g&&g.typeExpression&&!jye(Ti(g.typeExpression),n)&&Ve(g.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){$f(n)||(Fl(u)&&!tG(n)&&s0(n,G),c&1&&Hf(u)&&ds(lm(n)))}}function Vb(n){r(a);function a(){let c=Gn(n),u=cf.get(c.path);u||(u=[],cf.set(c.path,u)),u.push(n)}}function r6e(n,a){for(let c of n)switch(c.kind){case 263:case 231:xmt(c,a),zve(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:a6e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&a6e(c,a),zve(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:zve(c,a);break;case 195:Rmt(c,a);break;default:x.assertNever(c,"Node should not have been registered for unused identifiers check")}}function i6e(n,a,c){let u=Po(n)||n,_=SR(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,Pr(u,_,a))}function J8(n){return Fe(n)&&gr(n).charCodeAt(0)===95}function xmt(n,a){for(let c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;let u=Sr(c);!u.isReferenced&&(fp(c,2)||iu(c)&&Ki(c.name))&&!(c.flags&33554432)&&a(c,0,Pr(c.name,f._0_is_declared_but_its_value_is_never_read,Si(u)));break;case 176:for(let _ of c.parameters)!_.symbol.isReferenced&&$r(_,2)&&a(_,0,Pr(_.name,f.Property_0_is_declared_but_its_value_is_never_read,vl(_.symbol)));break;case 181:case 240:case 175:break;default:x.fail("Unexpected class member")}}function Rmt(n,a){let{typeParameter:c}=n;Bve(c)&&a(n,1,Pr(n,f._0_is_declared_but_its_value_is_never_read,gr(c.name)))}function zve(n,a){let c=Sr(n).declarations;if(!c||Ja(c)!==n)return;let u=Rv(n),_=new Set;for(let g of u){if(!Bve(g))continue;let T=gr(g.name),{parent:P}=g;if(P.kind!==195&&P.typeParameters.every(Bve)){if(Kb(_,P)){let W=Gn(P),V=nm(P)?uU(P):pU(W,P.typeParameters),ye=P.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,T]:[f.All_type_parameters_are_unused];a(g,1,Qc(W,V.pos,V.end-V.pos,...ye))}}else a(g,1,Pr(g,f._0_is_declared_but_its_value_is_never_read,T))}}function Bve(n){return!(es(n.symbol).isReferenced&262144)&&!J8(n.name)}function rG(n,a,c,u){let _=String(u(a)),g=n.get(_);g?g[1].push(c):n.set(_,[a,[c]])}function o6e(n){return ri(A_(n),Ao)}function Dmt(n){return Xa(n)?tm(n.parent)?!!(n.propertyName&&J8(n.name)):J8(n.name):Md(n)||(wi(n)&&Fx(n.parent.parent)||s6e(n))&&J8(n.name)}function a6e(n,a){let c=new Map,u=new Map,_=new Map;n.locals.forEach(g=>{if(!(g.flags&262144?!(g.flags&3&&!(g.isReferenced&3)):g.isReferenced||g.exportSymbol)&&g.declarations){for(let T of g.declarations)if(!Dmt(T))if(s6e(T))rG(c,Nmt(T),T,rs);else if(Xa(T)&&tm(T.parent)){let P=Ja(T.parent.elements);(T===P||!Ja(T.parent.elements).dotDotDotToken)&&rG(u,T.parent,T,rs)}else if(wi(T)){let P=KS(T)&7,W=Po(T);(P!==4&&P!==6||!W||!J8(W))&&rG(_,T.parent,T,rs)}else{let P=g.valueDeclaration&&o6e(g.valueDeclaration),W=g.valueDeclaration&&Po(g.valueDeclaration);P&&W?!dp(P,P.parent)&&!L0(P)&&!J8(W)&&(Xa(T)&&V0(T.parent)?rG(u,T.parent,T,rs):a(P,1,Pr(W,f._0_is_declared_but_its_value_is_never_read,vl(g)))):i6e(T,vl(g),a)}}}),c.forEach(([g,T])=>{let P=g.parent;if((g.name?1:0)+(g.namedBindings?g.namedBindings.kind===274?1:g.namedBindings.elements.length:0)===T.length)a(P,0,T.length===1?Pr(P,f._0_is_declared_but_its_value_is_never_read,gr(Va(T).name)):Pr(P,f.All_imports_in_import_declaration_are_unused));else for(let V of T)i6e(V,gr(V.name),a)}),u.forEach(([g,T])=>{let P=o6e(g.parent)?1:0;if(g.elements.length===T.length)T.length===1&&g.parent.kind===260&&g.parent.parent.kind===261?rG(_,g.parent.parent,g.parent,rs):a(g,P,T.length===1?Pr(g,f._0_is_declared_but_its_value_is_never_read,iG(Va(T).name)):Pr(g,f.All_destructured_elements_are_unused));else for(let W of T)a(W,P,Pr(W,f._0_is_declared_but_its_value_is_never_read,iG(W.name)))}),_.forEach(([g,T])=>{if(g.declarations.length===T.length)a(g,0,T.length===1?Pr(Va(T).name,f._0_is_declared_but_its_value_is_never_read,iG(Va(T).name)):Pr(g.parent.kind===243?g.parent:g,f.All_variables_are_unused));else for(let P of T)a(P,0,Pr(P,f._0_is_declared_but_its_value_is_never_read,iG(P.name)))})}function Cmt(){var n;for(let a of cg)if(!((n=Sr(a))!=null&&n.isReferenced)){let c=Lx(a);x.assert(P0(c),"Only parameter declaration should be checked here");let u=Pr(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ts(a.name),Ts(a.propertyName));c.type||Pa(u,Qc(Gn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ts(a.propertyName))),Qa.add(u)}}function iG(n){switch(n.kind){case 80:return gr(n);case 207:case 206:return iG(na(Va(n.elements),Xa).name);default:return x.assertNever(n)}}function s6e(n){return n.kind===273||n.kind===276||n.kind===274}function Nmt(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Vee(n){if(n.kind===241&&gy(n),NV(n)){let a=we;gn(n.statements,Ia),we=a}else gn(n.statements,Ia);n.locals&&Vb(n)}function Pmt(n){ce>=2||!FV(n)||n.flags&33554432||Fl(n.body)||gn(n.parameters,a=>{a.name&&!Qo(a.name)&&a.name.escapedText===Wt.escapedName&&Zm("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function q8(n,a,c){if(a?.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||(gh(n)||td(n)||Qu(n))&&iE(n))return!1;let u=A_(n);return!(Ao(u)&&Fl(u.parent.body))}function Mmt(n){Fn(n,a=>AC(a)&4?(n.kind!==80?Ve(Po(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ve(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Lmt(n){Fn(n,a=>AC(a)&8?(n.kind!==80?Ve(Po(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ve(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function kmt(n,a){if(z>=5&&!(z>=100&&Gn(n).impliedNodeFormat===1)||!a||!q8(n,a,"require")&&!q8(n,a,"exports")||ql(n)&&Vg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&Zm("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ts(a),Ts(a))}function wmt(n,a){if(!a||ce>=4||!q8(n,a,"Promise")||ql(n)&&Vg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&c.flags&4096&&Zm("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ts(a),Ts(a))}function Omt(n,a){ce<=8&&(q8(n,a,"WeakMap")||q8(n,a,"WeakSet"))&&ab.push(n)}function Wmt(n){let a=uh(n);AC(a)&1048576&&(x.assert(iu(n)&&Fe(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Zm("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Fmt(n,a){a&&ce>=2&&ce<=8&&q8(n,a,"Reflect")&&sb.push(n)}function zmt(n){let a=!1;if(Zc(n)){for(let c of n.members)if(AC(c)&2097152){a=!0;break}}else if(Ps(n))AC(n)&2097152&&(a=!0);else{let c=uh(n);c&&AC(c)&2097152&&(a=!0)}a&&(x.assert(iu(n)&&Fe(n.name),"The target of a Reflect collision check should be an identifier"),Zm("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ts(n.name),"Reflect"))}function tL(n,a){a&&(kmt(n,a),wmt(n,a),Omt(n,a),Fmt(n,a),ci(n)?(rL(a,f.Class_name_cannot_be_0),n.flags&33554432||f_t(a)):hE(n)&&rL(a,f.Enum_name_cannot_be_0))}function Bmt(n){if(KS(n)&7||P0(n))return;let a=Sr(n);if(a.flags&1){if(!Fe(n.name))return x.fail();let c=hl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&$ye(c)&7){let u=dE(c.valueDeclaration,261),_=u.parent.kind===243&&u.parent.parent?u.parent.parent:void 0;if(!(_&&(_.kind===241&&$o(_.parent)||_.kind===268||_.kind===267||_.kind===312))){let T=Si(c);Ve(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}function X8(n){return n===et?G:n===Jc?Zl:n}function oG(n){var a;if(nG(n),Xa(n)||Ia(n.type),!n.name)return;if(n.name.kind===167&&(bg(n.name),dT(n)&&n.initializer&&tc(n.initializer)),Xa(n)){if(n.propertyName&&Fe(n.name)&&P0(n)&&Fl(Wp(n).body)){cg.push(n);return}tm(n.parent)&&n.dotDotDotToken&&ce<5&&xc(n,4),n.propertyName&&n.propertyName.kind===167&&bg(n.propertyName);let _=n.parent.parent,g=n.dotDotDotToken?32:0,T=wr(_,g),P=n.propertyName||n.name;if(T&&!Qo(P)){let W=cv(P);if(Qf(W)){let V=Zf(W),te=ha(T,V);te&&(B5(te,void 0,!1),Zye(n,!!_.initializer&&_.initializer.kind===108,!1,T,te))}}}if(Qo(n.name)&&(n.name.kind===207&&ce<2&&B.downlevelIteration&&xc(n,512),gn(n.name.elements,Ia)),n.initializer&&P0(n)&&Fl(Wp(n).body)){Ve(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Qo(n.name)){if(Tye(n))return;let _=dT(n)&&n.initializer&&n.parent.parent.kind!==249,g=!gt(n.name.elements,SW(jc));if(_||g){let T=F(n);if(_){let P=tc(n.initializer);J&&g?DWe(P,n):Wb(P,F(n),n,n.initializer)}g&&(V0(n.name)?fv(65,T,Me,n):J&&DWe(T,n))}return}let c=Sr(n);if(c.flags&2097152&&(R0(n)||die(n))){Jee(n);return}let u=X8(sr(c));if(n===c.valueDeclaration){let _=dT(n)&&D2(n);if(_&&!(ir(n)&&Ma(_)&&(_.properties.length===0||Fv(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){let T=tc(_);Wb(T,u,n,_,void 0);let P=KS(n)&7;if(P===6){let W=Hat(!0),V=Qwe(!0);if(W!==Ca&&V!==Ca){let te=ei([W,V,ue,Me]);eu(T,te,_,f.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){let W=Qwe(!0);if(W!==Ca){let V=ei([W,ue,Me]);eu(T,V,_,f.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&>(c.declarations,g=>g!==n&&qx(g)&&!c6e(g,n))&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ts(n.name))}else{let _=X8(F(n));!Vt(u)&&!Vt(_)&&!py(u,_)&&!(c.flags&67108864)&&l6e(c.valueDeclaration,u,n,_),dT(n)&&n.initializer&&Wb(tc(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!c6e(n,c.valueDeclaration)&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ts(n.name))}n.kind!==172&&n.kind!==171&&(j8(n),(n.kind===260||n.kind===208)&&Bmt(n),tL(n,n.name))}function l6e(n,a,c,u){let _=Po(c),g=c.kind===172||c.kind===171?f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,T=Ts(_),P=Ve(_,g,T,Vn(a),Vn(u));n&&Pa(P,Pr(n,f._0_was_also_declared_here,T))}function c6e(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(xI(n)!==xI(a))return!1;let c=1358;return PI(n,c)===PI(a,c)}function Gmt(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Sgt(n),oG(n),(c=rr)==null||c.pop()}function Vmt(n){return vgt(n),oG(n)}function jee(n){let a=Ry(n)&7;(a===4||a===6)&&xc(n,33554432),gn(n.declarations,Ia)}function jmt(n){!Sg(n)&&!dbe(n.declarationList)&&Tgt(n),jee(n.declarationList)}function Umt(n){gy(n),po(n.expression)}function Hmt(n){gy(n);let a=nL(n.expression);Gve(n.expression,a,n.thenStatement),Ia(n.thenStatement),n.thenStatement.kind===242&&Ve(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ia(n.elseStatement)}function Gve(n,a,c){if(!J)return;u(n,c);function u(g,T){for(g=fs(g),_(g,T);dr(g)&&(g.operatorToken.kind===57||g.operatorToken.kind===61);)g=fs(g.left),_(g,T)}function _(g,T){let P=Z2(g)?fs(g.right):g;if(Yh(P))return;if(Z2(P)){u(P,T);return}let W=P===g?a:nL(P),V=kr(P)&&LFe(P.expression);if(!dm(W,4194304)||V)return;let te=Jo(W,0),ye=!!ZM(W);if(te.length===0&&!ye)return;let _e=Fe(P)?P:kr(P)?P.name:void 0,je=_e&&zm(_e);if(!je&&!ye)return;je&&dr(g.parent)&&Jmt(g.parent,je)||je&&T&&Kmt(g,T,_e,je)||(ye?FE(P,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,bb(W)):Ve(P,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Kmt(n,a,c,u){return!!Go(a,function _(g){if(Fe(g)){let T=zm(g);if(T&&T===u){if(Fe(n)||Fe(c)&&dr(c.parent))return!0;let P=c.parent,W=g.parent;for(;P&&W;){if(Fe(P)&&Fe(W)||P.kind===110&&W.kind===110)return zm(P)===zm(W);if(kr(P)&&kr(W)){if(zm(P.name)!==zm(W.name))return!1;W=W.expression,P=P.expression}else if(ia(P)&&ia(W))W=W.expression,P=P.expression;else return!1}}}return Go(g,_)})}function Jmt(n,a){for(;dr(n)&&n.operatorToken.kind===56;){if(Go(n.right,function u(_){if(Fe(_)){let g=zm(_);if(g&&g===a)return!0}return Go(_,u)}))return!0;n=n.parent}return!1}function qmt(n){gy(n),Ia(n.statement),nL(n.expression)}function Xmt(n){gy(n),nL(n.expression),Ia(n.statement)}function Vve(n,a){return n.flags&16384&&Ve(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function nL(n,a){return Vve(po(n,a),n)}function Ymt(n){gy(n)||n.initializer&&n.initializer.kind===261&&dbe(n.initializer),n.initializer&&(n.initializer.kind===261?jee(n.initializer):po(n.initializer)),n.condition&&nL(n.condition),n.incrementor&&po(n.incrementor),Ia(n.statement),n.locals&&Vb(n)}function $mt(n){a4e(n);let a=OF(n);if(n.awaitModifier?a&&Al(a)?yn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Vc(a)&6)===2&&ce<99&&xc(n,16384):B.downlevelIteration&&ce<2&&xc(n,256),n.initializer.kind===261)jee(n.initializer);else{let c=n.initializer,u=aG(n);if(c.kind===209||c.kind===210)ZA(c,u||ut);else{let _=po(c);G8(c,f.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),u&&Wb(u,_,c,n.expression)}}Ia(n.statement),n.locals&&Vb(n)}function Qmt(n){a4e(n);let a=eve(po(n.expression));if(n.initializer.kind===261){let c=n.initializer.declarations[0];c&&Qo(c.name)&&Ve(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),jee(n.initializer)}else{let c=n.initializer,u=po(c);c.kind===209||c.kind===210?Ve(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ya(Mst(a),u)?G8(c,f.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Ve(c,f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Fr||!Id(a,126091264))&&Ve(n.expression,f.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,Vn(a)),Ia(n.statement),n.locals&&Vb(n)}function aG(n){let a=n.awaitModifier?15:13;return fv(a,gC(n.expression),Me,n.expression)}function fv(n,a,c,u){return xt(a)?a:jve(n,a,c,u,!0)||G}function jve(n,a,c,u,_){let g=(n&2)!==0;if(a===Fr){qve(u,a,g);return}let T=ce>=2,P=!T&&B.downlevelIteration,W=B.noUncheckedIndexedAccess&&!!(n&128);if(T||P||g){let mt=Hee(a,n,T?u:void 0);if(_&&mt){let At=n&8?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?f.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;At&&eu(c,mt.nextType,u,At)}if(mt||T)return W?k8(mt&&mt.yieldType):mt&&mt.yieldType}let V=a,te=!1,ye=!1;if(n&4){if(V.flags&1048576){let mt=a.types,At=jr(mt,rn=>!(rn.flags&402653316));At!==mt&&(V=ei(At,2))}else V.flags&402653316&&(V=Fr);if(ye=V!==a,ye&&(ce<1&&u&&(Ve(u,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),te=!0),V.flags&131072))return W?k8(Ne):Ne}if(!uv(V)){if(u&&!te){let mt=!!(n&4)&&!ye,[At,rn]=je(mt,P);FE(u,rn&&!!ZM(V),At,Vn(V))}return ye?W?k8(Ne):Ne:void 0}let _e=t0(V,It);if(ye&&_e)return _e.flags&402653316&&!B.noUncheckedIndexedAccess?Ne:ei(W?[_e,Ne,Me]:[_e,Ne],2);return n&128?k8(_e):_e;function je(mt,At){var rn;return At?mt?[f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Uve(n,0,a,void 0)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Zmt((rn=a.symbol)==null?void 0:rn.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:mt?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function Zmt(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 Uve(n,a,c,u){if(xt(c))return;let _=Hee(c,n,u);return _&&_[SIe(a)]}function mv(n=Fr,a=Fr,c=un){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){let u=cm([n,a,c]),_=Di.get(u);return _||(_={yieldType:n,returnType:a,nextType:c},Di.set(u,_)),_}return{yieldType:n,returnType:a,nextType:c}}function d6e(n){let a,c,u;for(let _ of n)if(!(_===void 0||_===Cr)){if(_===qo)return qo;a=Tn(a,_.yieldType),c=Tn(c,_.returnType),u=Tn(u,_.nextType)}return a||c||u?mv(a&&ei(a),c&&ei(c),u&&ga(u)):Cr}function Uee(n,a){return n[a]}function Eg(n,a,c){return n[a]=c}function Hee(n,a,c){var u,_;if(xt(n))return qo;if(!(n.flags&1048576)){let V=c?{errors:void 0}:void 0,te=u6e(n,a,c,V);if(te===Cr){if(c){let ye=qve(c,n,!!(a&2));V?.errors&&Pa(ye,...V.errors)}return}else if((u=V?.errors)!=null&&u.length)for(let ye of V.errors)Qa.add(ye);return te}let g=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=Uee(n,g);if(T)return T===Cr?void 0:T;let P;for(let V of n.types){let te=c?{errors:void 0}:void 0,ye=u6e(V,a,c,te);if(ye===Cr){if(c){let _e=qve(c,n,!!(a&2));te?.errors&&Pa(_e,...te.errors)}Eg(n,g,Cr);return}else if((_=te?.errors)!=null&&_.length)for(let _e of te.errors)Qa.add(_e);P=Tn(P,ye)}let W=P?d6e(P):Cr;return Eg(n,g,W),W===Cr?void 0:W}function Hve(n,a){if(n===Cr)return Cr;if(n===qo)return qo;let{yieldType:c,returnType:u,nextType:_}=n;return a&&Tge(!0),mv(eI(c,a)||G,eI(u,a)||G,_)}function u6e(n,a,c,u){if(xt(n))return qo;let _=!1;if(a&2){let g=Kve(n,zs)||f6e(n,zs);if(g)if(g===Cr&&c)_=!0;else return a&8?Hve(g,c):g}if(a&1){let g=Kve(n,hc)||f6e(n,hc);if(g)if(g===Cr&&c)_=!0;else if(a&2){if(g!==Cr)return g=Hve(g,c),_?g:Eg(n,"iterationTypesOfAsyncIterable",g)}else return g}if(a&2){let g=Jve(n,zs,c,u,_);if(g!==Cr)return g}if(a&1){let g=Jve(n,hc,c,u,_);if(g!==Cr)return a&2?(g=Hve(g,c),_?g:Eg(n,"iterationTypesOfAsyncIterable",g)):g}return Cr}function Kve(n,a){return Uee(n,a.iterableCacheKey)}function p6e(n,a){let c=Kve(n,a)||Jve(n,a,void 0,void 0,!1);return c===Cr?Hc:c}function f6e(n,a){let c;if(Db(n,c=a.getGlobalIterableType(!1))||Db(n,c=a.getGlobalIterableIteratorType(!1))){let[u]=Vs(n),{returnType:_,nextType:g}=p6e(c,a);return Eg(n,a.iterableCacheKey,mv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}if(Db(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Vs(n);return Eg(n,a.iterableCacheKey,mv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}}function m6e(n){let a=Xwe(!1),c=a&&Ue(sr(a),pl(n));return c&&Qf(c)?Zf(c):`__@${n}`}function Jve(n,a,c,u,_){let g=ha(n,m6e(a.iteratorSymbolName)),T=g&&!(g.flags&16777216)?sr(g):void 0;if(xt(T))return _?qo:Eg(n,a.iterableCacheKey,qo);let P=T?Jo(T,0):void 0;if(!gt(P))return _?Cr:Eg(n,a.iterableCacheKey,Cr);let W=ga(mn(P,ds)),V=_6e(W,a,c,u,_)??Cr;return _?V:Eg(n,a.iterableCacheKey,V)}function qve(n,a,c){let u=c?f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_=!!ZM(a)||!c&&Wk(n.parent)&&n.parent.expression===n&&xZ(!1)!==Lo&&ya(a,xZ(!1));return FE(n,_,u,Vn(a))}function e_t(n,a,c,u){return _6e(n,a,c,u,!1)}function _6e(n,a,c,u,_){if(xt(n))return qo;let g=h6e(n,a)||t_t(n,a);return g===Cr&&c&&(g=void 0,_=!0),g??(g=y6e(n,a,c,u,_)),g===Cr?void 0:g}function h6e(n,a){return Uee(n,a.iteratorCacheKey)}function t_t(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Db(n,c)){let[u]=Vs(n),_=h6e(c,a)||y6e(c,a,void 0,void 0,!1),{returnType:g,nextType:T}=_===Cr?Hc:_;return Eg(n,a.iteratorCacheKey,mv(u,g,T))}if(Db(n,a.getGlobalIteratorType(!1))||Db(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Vs(n);return Eg(n,a.iteratorCacheKey,mv(u,_,g))}}function g6e(n,a){let c=Ue(n,"done")||Ut;return ya(a===0?Ut:wn,c)}function n_t(n){return g6e(n,0)}function r_t(n){return g6e(n,1)}function i_t(n){if(xt(n))return qo;let a=Uee(n,"iterationTypesOfIteratorResult");if(a)return a;if(Db(n,jat(!1))){let T=Vs(n)[0];return Eg(n,"iterationTypesOfIteratorResult",mv(T,void 0,void 0))}if(Db(n,Uat(!1))){let T=Vs(n)[0];return Eg(n,"iterationTypesOfIteratorResult",mv(void 0,T,void 0))}let c=cc(n,n_t),u=c!==Fr?Ue(c,"value"):void 0,_=cc(n,r_t),g=_!==Fr?Ue(_,"value"):void 0;return!u&&!g?Eg(n,"iterationTypesOfIteratorResult",Cr):Eg(n,"iterationTypesOfIteratorResult",mv(u,g||er,void 0))}function Xve(n,a,c,u,_){var g,T,P,W;let V=ha(n,c);if(!V&&c!=="next")return;let te=V&&!(c==="next"&&V.flags&16777216)?c==="next"?sr(V):um(sr(V),2097152):void 0;if(xt(te))return c==="next"?qo:bl;let ye=te?Jo(te,0):Xe;if(ye.length===0){if(u){let an=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(Pr(u,an,c))):Ve(u,an,c)}return c==="next"?Cr:void 0}if(te?.symbol&&ye.length===1){let an=a.getGlobalGeneratorType(!1),On=a.getGlobalIteratorType(!1),Ln=((T=(g=an.symbol)==null?void 0:g.members)==null?void 0:T.get(c))===te.symbol,Yn=!Ln&&((W=(P=On.symbol)==null?void 0:P.members)==null?void 0:W.get(c))===te.symbol;if(Ln||Yn){let jn=Ln?an:On,{mapper:$n}=te;return mv(wb(jn.typeParameters[0],$n),wb(jn.typeParameters[1],$n),c==="next"?wb(jn.typeParameters[2],$n):void 0)}}let _e,je;for(let an of ye)c!=="throw"&>(an.parameters)&&(_e=Tn(_e,p_(an,0))),je=Tn(je,ds(an));let mt,At;if(c!=="throw"){let an=_e?ei(_e):un;if(c==="next")At=an;else if(c==="return"){let On=a.resolveIterationType(an,u)||G;mt=Tn(mt,On)}}let rn,sn=je?ga(je):Fr,nr=a.resolveIterationType(sn,u)||G,Mn=i_t(nr);return Mn===Cr?(u&&(_?(_.errors??(_.errors=[]),_.errors.push(Pr(u,a.mustHaveAValueDiagnostic,c))):Ve(u,a.mustHaveAValueDiagnostic,c)),rn=G,mt=Tn(mt,G)):(rn=Mn.yieldType,mt=Tn(mt,Mn.returnType)),mv(rn,ei(mt),At)}function y6e(n,a,c,u,_){let g=d6e([Xve(n,a,"next",c,u),Xve(n,a,"return",c,u),Xve(n,a,"throw",c,u)]);return _?g:Eg(n,a.iteratorCacheKey,g)}function jS(n,a,c){if(xt(a))return;let u=v6e(a,c);return u&&u[SIe(n)]}function v6e(n,a){if(xt(n))return qo;let c=a?2:1,u=a?zs:hc;return Hee(n,c,void 0)||e_t(n,u,void 0,void 0)}function o_t(n){gy(n)||ygt(n)}function sG(n,a){let c=!!(a&1),u=!!(a&2);if(c){let _=jS(1,n,u);return _?u?pv(eL(_)):_:ut}return u?pv(n)||ut:n}function b6e(n,a){let c=sG(a,Vc(n));return!!(c&&(Rl(c,16384)||c.flags&32769))}function a_t(n){if(gy(n))return;let a=OF(n);if(a&&Al(a)){_d(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){_d(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}let c=lm(a),u=ds(c),_=Vc(a);if(J||n.expression||u.flags&131072){let g=n.expression?tc(n.expression):Me;if(a.kind===178)n.expression&&Ve(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Wb(g,u,n,n.expression)&&Ve(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(sC(a)){let T=sG(u,_)??u,P=_&2?H8(g,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g;T&&Wb(P,T,n,n.expression)}}else a.kind!==176&&B.noImplicitReturns&&!b6e(a,u)&&Ve(n,f.Not_all_code_paths_return_a_value)}function s_t(n){gy(n)||n.flags&65536&&_d(n,f.with_statements_are_not_allowed_in_an_async_function_block),po(n.expression);let a=Gn(n);if(!US(a)){let c=ph(a,n.pos).start,u=n.statement.pos;HS(a,c,u-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function l_t(n){gy(n);let a,c=!1,u=po(n.expression);gn(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(yn(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(g(_)),gn(_.statements,Ia),B.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&C5(_.fallthroughFlowNode)&&Ve(_,f.Fallthrough_case_in_switch);function g(T){return()=>{let P=po(T.expression);Cve(u,P)||KOe(P,u,T.expression,void 0)}}}),n.caseBlock.locals&&Vb(n.caseBlock)}function c_t(n){gy(n)||Fn(n.parent,a=>$o(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(yn(n.label,f.Duplicate_label_0,uc(n.label)),!0):!1),Ia(n.statement)}function d_t(n){gy(n)||Fe(n.expression)&&!n.expression.escapedText&&Lgt(n,f.Line_break_not_permitted_here),n.expression&&po(n.expression)}function u_t(n){gy(n),Vee(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;oG(c);let u=yd(c);if(u){let _=Ti(u);_&&!(_.flags&3)&&_d(u,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)_d(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{let _=a.block.locals;_&&dh(a.locals,g=>{let T=_.get(g);T?.valueDeclaration&&T.flags&2&&yn(T.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Vi(g))})}}Vee(a.block)}n.finallyBlock&&Vee(n.finallyBlock)}function Kee(n,a,c){let u=_u(n);if(u.length===0)return;for(let g of Nb(n))c&&g.flags&4194304||E6e(n,g,uC(g,8576,!0),Rb(g));let _=a.valueDeclaration;if(_&&ci(_)){for(let g of _.members)if(!ra(g)&&!oC(g)){let T=Sr(g);E6e(n,T,xd(g.name.expression),Rb(T))}}if(u.length>1)for(let g of u)p_t(n,g)}function E6e(n,a,c,u){let _=a.valueDeclaration,g=Po(_);if(g&&Ki(g))return;let T=oge(n,c),P=Lr(n)&2?cl(n.symbol,264):void 0,W=_&&_.kind===226||g&&g.kind===167?_:void 0,V=Ru(a)===n.symbol?_:void 0;for(let te of T){let ye=te.declaration&&Ru(Sr(te.declaration))===n.symbol?te.declaration:void 0,_e=V||ye||(P&&!gt(Dp(n),je=>!!e0(je,a.escapedName)&&!!t0(je,te.keyType))?P:void 0);if(_e&&!ya(u,te.type)){let je=cA(_e,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Si(a),Vn(u),Vn(te.keyType),Vn(te.type));W&&_e!==W&&Pa(je,Pr(W,f._0_is_declared_here,Si(a))),Qa.add(je)}}}function p_t(n,a){let c=a.declaration,u=oge(n,a.keyType),_=Lr(n)&2?cl(n.symbol,264):void 0,g=c&&Ru(Sr(c))===n.symbol?c:void 0;for(let T of u){if(T===a)continue;let P=T.declaration&&Ru(Sr(T.declaration))===n.symbol?T.declaration:void 0,W=g||P||(_&&!gt(Dp(n),V=>!!vg(V,a.keyType)&&!!t0(V,T.keyType))?_:void 0);W&&!ya(a.type,T.type)&&Ve(W,f._0_index_type_1_is_not_assignable_to_2_index_type_3,Vn(a.keyType),Vn(a.type),Vn(T.keyType),Vn(T.type))}}function rL(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Ve(n,a,n.escapedText)}}function f_t(n){ce>=1&&n.escapedText==="Object"&&(z<5||Gn(n).impliedNodeFormat===1)&&Ve(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,UC[z])}function m_t(n){let a=jr(rE(n),Ym);if(!Nn(a))return;let c=ir(n),u=new Set,_=new Set;if(gn(n.parameters,({name:T},P)=>{Fe(T)&&u.add(T.escapedText),Qo(T)&&_.add(P)}),sge(n)){let T=a.length-1,P=a[T];c&&P&&Fe(P.name)&&P.typeExpression&&P.typeExpression.type&&!u.has(P.name.escapedText)&&!_.has(T)&&!Gf(Ti(P.typeExpression.type))&&Ve(P.name,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,gr(P.name))}else gn(a,({name:T,isNameFirst:P},W)=>{_.has(W)||Fe(T)&&u.has(T.escapedText)||(Su(T)?c&&Ve(T,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,up(T),up(T.left)):P||md(c,T,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,gr(T)))})}function lG(n){let a=!1;if(n)for(let u=0;u{u.default?(a=!0,__t(u.default,n,_)):a&&Ve(u,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let g=0;g<_;g++)n[g].symbol===u.symbol&&Ve(u.name,f.Duplicate_identifier_0,Ts(u.name))}}}function __t(n,a,c){u(n);function u(_){if(_.kind===183){let g=gge(_);if(g.flags&262144)for(let T=c;Tu)return!1;for(let W=0;Wpc(c)&&ou(c))&&yn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!$r(n,2048)&&_d(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),I6e(n),gn(n.members,Ia),Vb(n)}function I6e(n){rgt(n),nG(n),tL(n,n.name),lG(Rv(n)),j8(n);let a=Sr(n),c=Xs(a),u=Up(c),_=sr(a);S6e(a),zee(a),kft(n),!!(n.flags&33554432)||wft(n);let T=S_(n);if(T){gn(T.typeArguments,Ia),ce<2&&xc(T.parent,1);let V=N0(n);V&&V!==T&&po(V.expression);let te=Dp(c);te.length&&r(()=>{let ye=te[0],_e=Rp(c),je=Nu(_e);if(E_t(je,T),Ia(T.expression),gt(T.typeArguments)){gn(T.typeArguments,Ia);for(let At of Zd(je,T.typeArguments,T))if(!KFe(T,At.typeParameters))break}let mt=Up(ye,c.thisType);if(eu(u,mt,void 0)?eu(_,BOe(je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):D6e(n,u,mt,f.Class_0_incorrectly_extends_base_class_1),_e.flags&8650752&&(Mi(_)?Jo(_e,1).some(rn=>rn.flags&4)&&!$r(n,64)&&Ve(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Ve(n.name||n,f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(je.symbol&&je.symbol.flags&32)&&!(_e.flags&8650752)){let At=Lh(je,T.typeArguments,T);gn(At,rn=>!$_(rn.declaration)&&!py(ds(rn),ye))&&Ve(T.expression,f.Base_constructors_must_all_have_the_same_return_type)}A_t(c,ye)})}b_t(n,c,u,_);let P=aR(n);if(P)for(let V of P)(!Bl(V.expression)||Ud(V.expression))&&Ve(V.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Ove(V),r(W(V));r(()=>{Kee(c,a),Kee(_,a,!0),Lve(n),R_t(n)});function W(V){return()=>{let te=c_(Ti(V));if(!Vt(te))if(qB(te)){let ye=te.symbol&&te.symbol.flags&32?f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:f.Class_0_incorrectly_implements_interface_1,_e=Up(te,c.thisType);eu(u,_e,void 0)||D6e(n,u,_e,ye)}else Ve(V,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function b_t(n,a,c,u){let g=S_(n)&&Dp(a),T=g?.length?Up(Va(g),a.thisType):void 0,P=Rp(a);for(let W of n.members)Gj(W)||(Pl(W)&&gn(W.parameters,V=>{dp(V,W)&&x6e(n,u,P,T,a,c,V,!0)}),x6e(n,u,P,T,a,c,W,!1))}function x6e(n,a,c,u,_,g,T,P,W=!0){let V=T.name&&zm(T.name)||zm(T);return V?R6e(n,a,c,u,_,g,p6(T),w0(T),ra(T),P,vl(V),W?T:void 0):0}function R6e(n,a,c,u,_,g,T,P,W,V,te,ye){let _e=ir(n),je=!!(n.flags&33554432);if(u&&(T||B.noImplicitOverride)){let mt=pl(te),At=W?a:g,rn=W?c:u,sn=ha(At,mt),nr=ha(rn,mt),Mn=Vn(u);if(sn&&!nr&&T){if(ye){let an=OWe(te,rn);an?Ve(ye,_e?f.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:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Mn,Si(an)):Ve(ye,_e?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Mn)}return 2}else if(sn&&nr?.declarations&&B.noImplicitOverride&&!je){let an=gt(nr.declarations,w0);if(T)return 0;if(an){if(P&&an)return ye&&Ve(ye,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Mn),1}else{if(ye){let On=V?_e?f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_e?f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Ve(ye,On,Mn)}return 1}}}else if(T){if(ye){let mt=Vn(_);Ve(ye,_e?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,mt)}return 2}return 0}function D6e(n,a,c,u){let _=!1;for(let g of n.members){if(ra(g))continue;let T=g.name&&zm(g.name)||zm(g);if(T){let P=ha(a,T.escapedName),W=ha(c,T.escapedName);if(P&&W){let V=()=>zo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Si(T),Vn(a),Vn(c));eu(sr(P),sr(W),g.name||g,void 0,V)||(_=!0)}}}_||eu(a,c,n.name||n,u)}function E_t(n,a){let c=Jo(n,1);if(c.length){let u=c[0].declaration;if(u&&fp(u,2)){let _=Og(n.symbol);tbe(a,_)||Ve(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Vp(n.symbol))}}}function S_t(n,a,c){if(!a.name)return 0;let u=Sr(n),_=Xs(u),g=Up(_),T=sr(u),W=S_(n)&&Dp(_),V=W?.length?Up(Va(W),_.thisType):void 0,te=Rp(_),ye=a.parent?p6(a):$r(a,16);return R6e(n,T,te,V,_,g,ye,w0(a),ra(a),!1,vl(c))}function TC(n){return Tl(n)&1?n.links.target:n}function T_t(n){return jr(n.declarations,a=>a.kind===263||a.kind===264)}function A_t(n,a){var c,u,_,g;let T=ms(a),P;e:for(let W of T){let V=TC(W);if(V.flags&4194304)continue;let te=e0(n,V.escapedName);if(!te)continue;let ye=TC(te),_e=Tf(V);if(x.assert(!!ye,"derived should point to something, even if it is the base class' declaration."),ye===V){let je=Og(n.symbol);if(_e&64&&(!je||!$r(je,64))){for(let mt of Dp(n)){if(mt===a)continue;let At=e0(mt,V.escapedName),rn=At&&TC(At);if(rn&&rn!==V)continue e}P||(P=Ve(je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Vn(n),Vn(a))),je.kind===231?Pa(P,Pr(W.valueDeclaration??(W.declarations&&Va(W.declarations))??je,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Si(W),Vn(a))):Pa(P,Pr(W.valueDeclaration??(W.declarations&&Va(W.declarations))??je,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Vn(n),Si(W),Vn(a)))}}else{let je=Tf(ye);if(_e&2||je&2)continue;let mt,At=V.flags&98308,rn=ye.flags&98308;if(At&&rn){if((Tl(V)&6?(c=V.declarations)!=null&&c.some(Mn=>C6e(Mn,_e)):(u=V.declarations)!=null&&u.every(Mn=>C6e(Mn,_e)))||Tl(V)&262144||ye.valueDeclaration&&dr(ye.valueDeclaration))continue;let sn=At!==4&&rn===4;if(sn||At===4&&rn!==4){let Mn=sn?f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Ve(Po(ye.valueDeclaration)||ye.valueDeclaration,Mn,Si(V),Vn(a),Vn(n))}else if(me){let Mn=(_=ye.declarations)==null?void 0:_.find(an=>an.kind===172&&!an.initializer);if(Mn&&!(ye.flags&33554432)&&!(_e&64)&&!(je&64)&&!((g=ye.declarations)!=null&&g.some(an=>!!(an.flags&33554432)))){let an=ny(Og(n.symbol)),On=Mn.name;if(Mn.exclamationToken||!an||!Fe(On)||!J||!P6e(On,n,an)){let Ln=f.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;Ve(Po(ye.valueDeclaration)||ye.valueDeclaration,Ln,Si(V),Vn(a))}}}continue}else if(Qye(V)){if(Qye(ye)||ye.flags&4)continue;x.assert(!!(ye.flags&98304)),mt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else V.flags&98304?mt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:mt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Ve(Po(ye.valueDeclaration)||ye.valueDeclaration,mt,Vn(a),Si(V),Vn(n))}}}function C6e(n,a){return a&64&&(!Uo(n)||!n.initializer)||pu(n.parent)}function I_t(n,a,c){if(!Nn(a))return c;let u=new Map;gn(c,_=>{u.set(_.escapedName,_)});for(let _ of a){let g=ms(Up(_,n.thisType));for(let T of g){let P=u.get(T.escapedName);P&&T.parent===P.parent&&u.delete(T.escapedName)}}return Wo(u.values())}function x_t(n,a){let c=Dp(n);if(c.length<2)return!0;let u=new Map;gn(Vhe(n).declaredProperties,g=>{u.set(g.escapedName,{prop:g,containingType:n})});let _=!0;for(let g of c){let T=ms(Up(g,n.thisType));for(let P of T){let W=u.get(P.escapedName);if(!W)u.set(P.escapedName,{prop:P,containingType:g});else if(W.containingType!==n&&!Flt(W.prop,P)){_=!1;let te=Vn(W.containingType),ye=Vn(g),_e=zo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,Si(P),te,ye);_e=zo(_e,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Vn(n),te,ye),Qa.add(Mg(Gn(a),a,_e))}}}return _}function R_t(n){if(!J||!xe||n.flags&33554432)return;let a=ny(n);for(let c of n.members)if(!(lu(c)&128)&&!ra(c)&&N6e(c)){let u=c.name;if(Fe(u)||Ki(u)||Ya(u)){let _=sr(Sr(c));_.flags&3||FM(_)||(!a||!P6e(u,_,a))&&Ve(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ts(u))}}}function N6e(n){return n.kind===172&&!w0(n)&&!n.exclamationToken&&!n.initializer}function D_t(n,a,c,u,_){for(let g of c)if(g.pos>=u&&g.pos<=_){let T=L.createPropertyAccessExpression(L.createThis(),n);ja(T.expression,T),ja(T,g),T.flowNode=g.returnFlowNode;let P=Gb(T,a,zb(a));if(!FM(P))return!0}return!1}function P6e(n,a,c){let u=Ya(n)?L.createElementAccessExpression(L.createThis(),n.expression):L.createPropertyAccessExpression(L.createThis(),n);ja(u.expression,u),ja(u,c),u.flowNode=c.returnFlowNode;let _=Gb(u,a,zb(a));return!FM(_)}function C_t(n){Sg(n)||dgt(n),lG(n.typeParameters),r(()=>{rL(n.name,f.Interface_name_cannot_be_0),j8(n);let a=Sr(n);S6e(a);let c=cl(a,264);if(n===c){let u=Xs(a),_=Up(u);if(x_t(u,n.name)){for(let g of Dp(u))eu(_,Up(g,u.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);Kee(u,a)}}VFe(n)}),gn(EN(n),a=>{(!Bl(a.expression)||Ud(a.expression))&&Ve(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Ove(a)}),gn(n.members,Ia),r(()=>{Lve(n),Vb(n)})}function N_t(n){Sg(n),rL(n.name,f.Type_alias_name_cannot_be_0),j8(n),lG(n.typeParameters),n.type.kind===141?(!L3.has(n.name.escapedText)||Nn(n.typeParameters)!==1)&&Ve(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Ia(n.type),Vb(n))}function M6e(n){let a=Qr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let u of n.members){let _=P_t(u,c);Qr(u).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function P_t(n,a){if(h2(n.name))Ve(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{let c=Ux(n.name);ng(c)&&!qN(c)&&Ve(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return M_t(n);if(!(n.parent.flags&33554432&&!A0(n.parent))){if(a!==void 0)return a;Ve(n.name,f.Enum_member_must_have_initializer)}}function M_t(n){let a=A0(n.parent),c=n.initializer,u=iL(c,n);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&Ve(c,isNaN(u)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Ve(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Ve(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):eu(po(c),It,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function iL(n,a){switch(n.kind){case 224:let c=iL(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:let u=iL(n.left,a),_=iL(n.right,a);if(typeof u=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return u|_;case 51:return u&_;case 49:return u>>_;case 50:return u>>>_;case 48:return u<<_;case 53:return u^_;case 42:return u*_;case 44:return u/_;case 40:return u+_;case 41:return u-_;case 45:return u%_;case 43:return u**_}else if((typeof u=="string"||typeof u=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+u+_;break;case 11:case 15:return n.text;case 228:return k6e(n,a);case 9:return ube(n),+n.text;case 217:return iL(n.expression,a);case 80:{let T=n;if(qN(T.escapedText)&&Bs(T,111551,!0)===OM(T.escapedText,111551,void 0))return+T.escapedText}case 211:if(Bl(n)){let T=Bs(n,111551,!0);if(T){if(T.flags&8)return a?L6e(n,T,a):IC(T.valueDeclaration);if(JM(T)){let P=T.valueDeclaration;if(P&&wi(P)&&!P.type&&P.initializer&&(!a||P!==a&&Qg(P,a)))return iL(P.initializer,P)}}}break;case 212:let g=n.expression;if(Bl(g)&&as(n.argumentExpression)){let T=Bs(g,111551,!0);if(T&&T.flags&384){let P=pl(n.argumentExpression.text),W=T.exports.get(P);if(W)return a?L6e(n,W,a):IC(W.valueDeclaration)}}break}}function L6e(n,a,c){let u=a.valueDeclaration;if(!u||u===c){Ve(n,f.Property_0_is_used_before_being_assigned,Si(a));return}return Qg(u,c)?IC(u):(Ve(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function k6e(n,a){let c=n.head.text;for(let u of n.templateSpans){let _=iL(u.expression,a);if(_===void 0)return;c+=_,c+=u.literal.text}return c}function L_t(n){r(()=>k_t(n))}function k_t(n){Sg(n),tL(n,n.name),j8(n),n.members.forEach(w_t),M6e(n);let a=Sr(n),c=cl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let _=A0(n);gn(a.declarations,g=>{hE(g)&&A0(g)!==_&&Ve(Po(g),f.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;gn(a.declarations,_=>{if(_.kind!==266)return!1;let g=_;if(!g.members.length)return!1;let T=g.members[0];T.initializer||(u?Ve(T.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function w_t(n){Ki(n.name)&&Ve(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&po(n.initializer)}function O_t(n){let a=n.declarations;if(a){for(let c of a)if((c.kind===263||c.kind===262&&Hf(c.body))&&!(c.flags&33554432))return c}}function W_t(n,a){let c=uh(n),u=uh(a);return xh(c)?xh(u):xh(u)?!1:c===u}function F_t(n){n.body&&(Ia(n.body),E_(n)||Vb(n)),r(a);function a(){var c,u;let _=E_(n),g=n.flags&33554432;_&&!g&&Ve(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let T=Md(n),P=T?f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(cG(n,P))return;Sg(n)||!g&&n.name.kind===11&&yn(n.name,f.Only_ambient_modules_can_use_quoted_names),Fe(n.name)&&tL(n,n.name),j8(n);let W=Sr(n);if(W.flags&512&&!g&&yK(n,B0(B))){if(em(B)&&!Gn(n).externalModuleIndicator&&Ve(n.name,f.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=W.declarations)==null?void 0:c.length)>1){let V=O_t(W);V&&(Gn(n)!==Gn(V)?Ve(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.poste.kind===95);V&&Ve(V,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(T)if(T0(n)){if((_||Sr(n).flags&33554432)&&n.body)for(let te of n.body.statements)Yve(te,_)}else xh(n.parent)?_?Ve(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Yc(Xf(n.name))&&Ve(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):_?Ve(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ve(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Yve(n,a){switch(n.kind){case 243:for(let u of n.declarationList.declarations)Yve(u,a);break;case 277:case 278:_d(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:_d(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let c=n.name;if(Qo(c)){for(let u of c.elements)Yve(u,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function z_t(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(Yh(n.expression)&&!Ki(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function $ve(n){let a=tR(n);if(!a||Fl(a))return!1;if(!Da(a))return Ve(a,f.String_literal_expected),!1;let c=n.parent.kind===268&&Md(n.parent.parent);if(n.parent.kind!==312&&!c)return Ve(a,n.kind===278?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Yc(a.text)&&!Sb(n))return Ve(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!td(n)&&n.attributes){let u=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions,_=!1;for(let g of n.attributes.elements)Da(g.value)||(_=!0,Ve(g.value,u));return!_}return!0}function Jee(n){var a,c,u,_;let g=Sr(n),T=Wc(g);if(T!==lt){if(g=es(g.exportSymbol||g),ir(n)&&!(T.flags&111551)&&!iE(n)){let V=yI(n)?n.propertyName||n.name:iu(n)?n.name:n;if(x.assert(n.kind!==280),n.kind===281){let te=Ve(V,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),ye=(c=(a=Gn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(ye===T){let _e=(u=ye.declarations)==null?void 0:u.find(zx);_e&&Pa(te,Pr(_e,f._0_is_automatically_exported_here,Vi(ye.escapedName)))}}else{x.assert(n.kind!==260);let te=Fn(n,jm(Lc,td)),ye=(te&&((_=eR(te))==null?void 0:_.text))??"...",_e=Vi(Fe(V)?V.escapedText:g.escapedName);Ve(V,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,_e,`import("${ye}").${_e}`)}return}let P=Td(T),W=(g.flags&1160127?111551:0)|(g.flags&788968?788968:0)|(g.flags&1920?1920:0);if(P&W){let V=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;Ve(n,V,Si(g))}else n.kind!==281&&B.isolatedModules&&!Fn(n,iE)&&g.flags&1160127&&Ve(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Si(g),Je);if(em(B)&&!iE(n)&&!(n.flags&33554432)){let V=Lf(g),te=!(P&111551);if(te||V)switch(n.kind){case 273:case 276:case 271:{if(B.preserveValueImports||B.verbatimModuleSyntax){x.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let ye=B.verbatimModuleSyntax&&Qx(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:te?B.verbatimModuleSyntax?f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:B.verbatimModuleSyntax?f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,_e=gr(n.kind===276&&n.propertyName||n.name);dg(Ve(n,ye,_e),te?void 0:V,_e)}te&&n.kind===271&&fp(n,32)&&Ve(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Je);break}case 281:if(B.verbatimModuleSyntax||Gn(V)!==Gn(n)){let ye=gr(n.propertyName||n.name),_e=te?Ve(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Je):Ve(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,ye,Je);dg(_e,te?void 0:V,ye);break}}B.verbatimModuleSyntax&&n.kind!==271&&!ir(n)&&(z===1||Gn(n).impliedNodeFormat===1)&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Qu(n)){let V=Qve(g,n);cb(V)&&V.declarations&&tv(n,V.declarations,V.escapedName)}}}function Qve(n,a){if(!(n.flags&2097152)||cb(n)||!Mm(n))return n;let c=Wc(n);if(c===lt)return c;for(;n.flags&2097152;){let u=Kye(n);if(u){if(u===c)break;if(u.declarations&&Nn(u.declarations))if(cb(u)){tv(a,u.declarations,u.escapedName);break}else{if(n===c)break;n=u}}else break}return c}function qee(n){tL(n,n.name),Jee(n),n.kind===276&&gr(n.propertyName||n.name)==="default"&&mh(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&xc(n,131072)}function w6e(n){var a;let c=n.attributes;if(c){let u=bge(!0);u!==Ca&&eu(se(c),S5(u,32768),c);let _=sJ(n),g=QR(c,_?yn:void 0),T=n.attributes.token===118;if(_&&g)return;if((z===199&&n.moduleSpecifier&&Qi(n.moduleSpecifier))!==99&&z!==99&&z!==200){let W=T?z===199?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:z===199?f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return yn(c,W)}if(Lc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return yn(c,T?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(g)return yn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function B_t(n){return gu(tc(n.value))}function G_t(n){if(!cG(n,ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Sg(n)&&u6(n)&&_d(n,f.An_import_declaration_cannot_have_modifiers),$ve(n)){let a=n.importClause;a&&!wgt(a)&&(a.name&&qee(a),a.namedBindings&&(a.namedBindings.kind===274?(qee(a.namedBindings),z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&mh(B)&&xc(n,65536)):mu(n,n.moduleSpecifier)&&gn(a.namedBindings.elements,qee)))}w6e(n)}}function V_t(n){if(!cG(n,ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Sg(n),Qx(n)||$ve(n)))if(qee(n),$r(n,32)&&_b(n),n.moduleReference.kind!==283){let a=Wc(Sr(n));if(a!==lt){let c=Td(a);if(c&111551){let u=Fp(n.moduleReference);Bs(u,112575).flags&1920||Ve(u,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ts(u))}c&788968&&rL(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&yn(n,f.An_import_alias_cannot_use_import_type)}else z>=5&&z!==200&&Gn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&yn(n,f.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 j_t(n){if(!cG(n,ir(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Sg(n)&&Oie(n)&&_d(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&xf(n.exportClause)&&Nn(n.exportClause.elements)&&ce===0&&xc(n,4194304),U_t(n),!n.moduleSpecifier||$ve(n))if(n.exportClause&&!yh(n.exportClause)){gn(n.exportClause.elements,Y_t);let a=n.parent.kind===268&&Md(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&Ve(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=mu(n,n.moduleSpecifier);a&&iv(a)?Ve(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Si(a)):n.exportClause&&Jee(n.exportClause),z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&(n.exportClause?mh(B)&&xc(n,65536):xc(n,32768))}w6e(n)}}function U_t(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?f4e(n.exportClause):!1}function cG(n,a){let c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||_d(n,a),!c}function H_t(n){return $F(n,a=>!!Sr(a).isReferenced)}function K_t(n){return $F(n,a=>!!qi(Sr(a)).constEnumReferenced)}function J_t(n){return Lc(n)&&n.importClause&&!n.importClause.isTypeOnly&&H_t(n.importClause)&&!ete(n.importClause,!0)&&!K_t(n.importClause)}function q_t(n){return td(n)&&vh(n.moduleReference)&&!n.isTypeOnly&&Sr(n).isReferenced&&!ete(n,!1)&&!qi(Sr(n)).constEnumReferenced}function X_t(n){if(pt)for(let a of n.statements)(J_t(a)||q_t(a))&&Ve(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Y_t(n){if(Jee(n),Af(B)&&xM(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)mh(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&gr(n.propertyName||n.name)==="default"&&xc(n,131072);else{let a=n.propertyName||n.name,c=hl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===ze||c===tt||c.declarations&&xh(X(c.declarations[0]))))Ve(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,gr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&_b(n);let u=c&&(c.flags&2097152?Wc(c):c);(!u||Td(u)&111551)&&tc(n.propertyName||n.name)}}}function $_t(n){let a=n.isExportEquals?f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(cG(n,a))return;let c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!Md(c)){n.isExportEquals?Ve(n,f.An_export_assignment_cannot_be_used_in_a_namespace):Ve(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Sg(n)&&u6(n)&&_d(n,f.An_export_assignment_cannot_have_modifiers);let u=yd(n);u&&eu(tc(n.expression),Ti(u),n.expression);let _=!n.isExportEquals&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&(z===1||Gn(n).impliedNodeFormat===1);if(n.expression.kind===80){let g=n.expression,T=ff(Bs(g,-1,!0,!0,n));if(T){let P=Lf(T,111551);if(pee(T,g),Td(T)&111551?(tc(g),!_&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&P&&Ve(g,n.isExportEquals?f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,gr(g))):!_&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&Ve(g,n.isExportEquals?f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,gr(g)),!_&&!(n.flags&33554432)&&em(B)&&!(T.flags&111551)){let W=Td(T,!1,!0);T.flags&2097152&&W&788968&&!(W&111551)&&(!P||Gn(P)!==Gn(n))?Ve(g,n.isExportEquals?f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,gr(g),Je):P&&Gn(P)!==Gn(n)&&dg(Ve(g,n.isExportEquals?f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,gr(g),Je),P,gr(g))}}else tc(g);Af(B)&&xM(g,!0)}else tc(n.expression);_&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),O6e(c),n.flags&33554432&&!Bl(n.expression)&&yn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(z>=5&&z!==200&&(n.flags&33554432&&Gn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Gn(n).impliedNodeFormat!==1)?yn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):z===4&&!(n.flags&33554432)&&yn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function Q_t(n){return Gc(n.exports,(a,c)=>c!=="export=")}function O6e(n){let a=Sr(n),c=qi(a);if(!c.exportsChecked){let u=a.exports.get("export=");if(u&&Q_t(a)){let g=Mm(u)||u.valueDeclaration;g&&!Sb(g)&&!ir(g)&&Ve(g,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let _=Dh(a);_&&_.forEach(({declarations:g,flags:T},P)=>{if(P==="__export"||T&1920)return;let W=yv(g,EW(TIe,SW(pu)));if(!(T&524288&&W<=2)&&W>1&&!Xee(g))for(let V of g)bIe(V)&&Qa.add(Pr(V,f.Cannot_redeclare_exported_variable_0,Vi(P)))}),c.exportsChecked=!0}}function Xee(n){return n&&n.length>1&&n.every(a=>ir(a)&&Ns(a)&&(hT(a.expression)||Yh(a.expression)))}function Ia(n){if(n){let a=D;D=n,S=0,Z_t(n),D=a}}function Z_t(n){z2(n)&&gn(n.jsDoc,({comment:c,tags:u})=>{W6e(c),gn(u,_=>{W6e(_.comment),ir(n)&&Ia(_)})});let a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&F2(n)&&n.flowNode&&!C5(n.flowNode)&&md(B.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return zFe(n);case 169:return BFe(n);case 172:return jFe(n);case 171:return Oft(n);case 185:case 184:case 179:case 180:case 181:return V8(n);case 174:case 173:return Wft(n);case 175:return Fft(n);case 176:return zft(n);case 177:case 178:return HFe(n);case 183:return Ove(n);case 182:return Mft(n);case 186:return Hft(n);case 187:return Kft(n);case 188:return Jft(n);case 189:return qft(n);case 192:case 193:return Xft(n);case 196:case 190:case 191:return Ia(n.type);case 197:return Zft(n);case 198:return emt(n);case 194:return tmt(n);case 195:return nmt(n);case 203:return rmt(n);case 205:return imt(n);case 202:return omt(n);case 335:return Amt(n);case 336:return Tmt(n);case 353:case 345:case 347:return mmt(n);case 352:return _mt(n);case 351:return hmt(n);case 331:case 332:case 333:return ymt(n);case 348:return vmt(n);case 355:return bmt(n);case 324:Emt(n);case 322:case 321:case 319:case 320:case 329:F6e(n),Go(n,Ia);return;case 325:eht(n);return;case 316:return Ia(n.type);case 340:case 342:case 341:return Imt(n);case 357:return gmt(n);case 350:return Smt(n);case 199:return Yft(n);case 200:return $ft(n);case 262:return fmt(n);case 241:case 268:return Vee(n);case 243:return jmt(n);case 244:return Umt(n);case 245:return Hmt(n);case 246:return qmt(n);case 247:return Xmt(n);case 248:return Ymt(n);case 249:return Qmt(n);case 250:return $mt(n);case 251:case 252:return o_t(n);case 253:return a_t(n);case 254:return s_t(n);case 255:return l_t(n);case 256:return c_t(n);case 257:return d_t(n);case 258:return u_t(n);case 260:return Gmt(n);case 208:return Vmt(n);case 263:return v_t(n);case 264:return C_t(n);case 265:return N_t(n);case 266:return L_t(n);case 267:return F_t(n);case 272:return G_t(n);case 271:return V_t(n);case 278:return j_t(n);case 277:return $_t(n);case 242:case 259:gy(n);return;case 282:return Gft(n)}}function W6e(n){To(n)&&gn(n,a=>{SI(a)&&Ia(a)})}function F6e(n){if(!ir(n))if(V4(n)||LR(n)){let a=da(V4(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,u=n.type,_=Ti(u);yn(n,c,a,Vn(LR(n)&&!(_===Fr||_===er)?ei(Tn([_,Me],n.postfix?void 0:ue)):_))}else yn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function eht(n){F6e(n),Ia(n.type);let{parent:a}=n;if(Ao(a)&&kR(a.parent)){Ja(a.parent.parameters)!==a&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}$0(a)||Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!Ym(c)){Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let u=B2(c);if(!u)return;let _=lE(c);(!_||Ja(_.parameters).symbol!==u)&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function tht(n){let a=Ti(n.type),{parent:c}=n,u=n.parent.parent;if($0(n.parent)&&Ym(u)){let _=lE(u),g=lH(u.parent.parent);if(_||g){let T=$s(g?u.parent.parent.typeExpression.parameters:_.parameters),P=B2(u);if(!T||P&&T.symbol===P&&Kh(T))return Bd(a)}}return Ao(c)&&kR(c.parent)?Bd(a):op(a)}function px(n){let a=Gn(n),c=Qr(a);c.flags&1?x.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function nht(n){let a=Qr(n);a.deferredNodes&&a.deferredNodes.forEach(rht),a.deferredNodes=void 0}function rht(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let u=D;switch(D=n,S=0,n.kind){case 213:case 214:case 215:case 170:case 286:$A(n);break;case 218:case 219:case 174:case 173:$pt(n);break;case 177:case 178:HFe(n);break;case 231:y_t(n);break;case 168:Pft(n);break;case 285:aut(n);break;case 284:lut(n);break;case 216:case 234:case 217:Apt(n);break;case 222:po(n.expression);break;case 226:m6(n)&&$A(n);break}D=u,(c=rr)==null||c.pop()}function iht(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkSourceFile",{path:n.path},!0),el("beforeCheck"),oht(n),el("afterCheck"),Xp("Check","beforeCheck","afterCheck"),(c=rr)==null||c.pop()}function z6e(n,a){if(a)return!1;switch(n){case 0:return!!B.noUnusedLocals;case 1:return!!B.noUnusedParameters;default:return x.assertNever(n)}}function B6e(n){return cf.get(n.path)||Xe}function oht(n){let a=Qr(n);if(!(a.flags&1)){if(jN(n,B,e))return;Pgt(n),Gh(_S),Gh(hS),Gh(ab),Gh(sb),Gh(cg),gn(n.statements,Ia),Ia(n.endOfFileToken),nht(n),wp(n)&&Vb(n),r(()=>{!n.isDeclarationFile&&(B.noUnusedLocals||B.noUnusedParameters)&&r6e(B6e(n),(c,u,_)=>{!Vx(c)&&z6e(u,!!(c.flags&33554432))&&Qa.add(_)}),n.isDeclarationFile||Cmt()}),B.importsNotUsedAsValues===2&&!n.isDeclarationFile&&oc(n)&&X_t(n),wp(n)&&O6e(n),_S.length&&(gn(_S,Mmt),Gh(_S)),hS.length&&(gn(hS,Lmt),Gh(hS)),ab.length&&(gn(ab,Wmt),Gh(ab)),sb.length&&(gn(sb,zmt),Gh(sb)),a.flags|=1}}function G6e(n,a){try{return i=a,aht(n)}finally{i=void 0}}function Zve(){for(let n of t)n();t=[]}function ebe(n){Zve();let a=r;r=c=>c(),iht(n),r=a}function aht(n){if(n){Zve();let a=Qa.getGlobalDiagnostics(),c=a.length;ebe(n);let u=Qa.getDiagnostics(n.fileName),_=Qa.getGlobalDiagnostics();if(_!==a){let g=Xte(a,_,FN);return Eo(g,u)}else if(c===0&&_.length>0)return Eo(_,u);return u}return gn(e.getSourceFiles(),ebe),Qa.getDiagnostics()}function sht(){return Zve(),Qa.getGlobalDiagnostics()}function lht(n,a){if(n.flags&67108864)return[];let c=aa(),u=!1;return _(),c.delete("this"),age(c);function _(){for(;n;){switch(lh(n)&&n.locals&&!xh(n)&&T(n.locals,a),n.kind){case 312:if(!oc(n))break;case 267:P(Sr(n).exports,a&2623475);break;case 266:T(Sr(n).exports,a&8);break;case 231:n.name&&g(n.symbol,a);case 263:case 264:u||T(Cb(Sr(n)),a&788968);break;case 218:n.name&&g(n.symbol,a);break}tie(n)&&g(Wt,a),u=ra(n),n=n.parent}T(be,a)}function g(W,V){if(_R(W)&V){let te=W.escapedName;c.has(te)||c.set(te,W)}}function T(W,V){V&&W.forEach(te=>{g(te,V)})}function P(W,V){V&&W.forEach(te=>{!cl(te,281)&&!cl(te,280)&&te.escapedName!=="default"&&g(te,V)})}}function cht(n){return n.kind===80&&SR(n.parent)&&Po(n.parent)===n}function V6e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function dht(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function j6e(n,a){let c,u=ad(n);for(;u&&!(c=a(u));)u=ad(u);return c}function uht(n){return!!Fn(n,a=>Pl(a)&&Hf(a.body)||Uo(a)?!0:ci(a)||ws(a)?"quit":!1)}function tbe(n,a){return!!j6e(n,c=>c===a)}function pht(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 Yee(n){return pht(n)!==void 0}function fht(n){switch(zl(n.parent.parent)){case 1:case 3:return pf(n.parent);case 5:if(kr(n.parent)&&hR(n.parent)===n)return;case 4:case 2:return Sr(n.parent.parent)}}function mht(n){let a=n.parent;for(;Su(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function _ht(n){if(n.expression.kind===110){let a=Lu(n,!1,!1);if($o(a)){let c=eWe(a);if(c){let u=u0(c,void 0),_=nWe(c,u);return _&&!xt(_)}}}}function U6e(n){if(kg(n))return pf(n.parent);if(ir(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ki(n)&&!gE(n)&&!_ht(n.parent)){let a=fht(n);if(a)return a}if(n.parent.kind===277&&Bl(n)){let a=Bs(n,2998271,!0);if(a&&a!==lt)return a}else if(Xu(n)&&Yee(n)){let a=dE(n,271);return x.assert(a!==void 0),X1(n,!0)}if(Xu(n)){let a=mht(n);if(a){Ti(a);let c=Qr(n).resolvedSymbol;return c===lt?void 0:c}}for(;Vie(n);)n=n.parent;if(dht(n)){let a=0;n.parent.kind===233?(a=qh(n)?788968:111551,f6(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=Bl(n)?Bs(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return B2(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){x.assert(!ir(n));let a=mie(n.parent);return a&&a.symbol}if(Xh(n)){if(Fl(n))return;let a=Fn(n,jm(SI,_P,gE)),c=a?901119:111551;if(n.kind===80){if($x(n)&&ux(n)){let _=vee(n.parent);return _===lt?void 0:_}let u=Bs(n,c,!0,!0,lE(n));if(!u&&a){let _=Fn(n,jm(ci,pu));if(_)return dG(n,!0,Sr(_))}if(u&&a){let _=vT(n);if(_&&Y0(_)&&_===u.valueDeclaration)return Bs(n,c,!0,!0,Gn(_))||u}return u}else{if(Ki(n))return See(n);if(n.kind===211||n.kind===166){let u=Qr(n);return u.resolvedSymbol?u.resolvedSymbol:(n.kind===211?(bee(n,0),u.resolvedSymbol||(u.resolvedSymbol=H6e(tc(n.expression),cv(n.name)))):CWe(n,0),!u.resolvedSymbol&&a&&Su(n)?dG(n):u.resolvedSymbol)}else if(gE(n))return dG(n)}}else if(V6e(n)){let a=n.parent.kind===183?788968:1920,c=Bs(n,a,!1,!0);return c&&c!==lt?c:SZ(n)}if(n.parent.kind===182)return Bs(n,1)}function H6e(n,a){let c=oge(n,a);if(c.length&&n.members){let u=vZ(l_(n).members);if(c===_u(n))return u;if(u){let _=qi(u),g=to(c,P=>P.declaration),T=mn(g,rs).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(T))return _.filteredIndexSymbolCache.get(T);{let P=Ka(131072,"__index");return P.declarations=to(c,W=>W.declaration),P.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:zm(P.declarations[0].parent),_.filteredIndexSymbolCache.set(T,P),P}}}}function dG(n,a,c){if(Xu(n)){let T=Bs(n,901119,a,!0,lE(n));if(!T&&Fe(n)&&c&&(T=es(Vu(xp(c),n.escapedText,901119))),T)return T}let u=Fe(n)?c:dG(n.left,a,c),_=Fe(n)?n.escapedText:n.right.escapedText;if(u){let g=u.flags&111551&&ha(sr(u),"prototype"),T=g?sr(g):Xs(u);return ha(T,_)}}function zm(n,a){if(Yi(n))return oc(n)?es(n.symbol):void 0;let{parent:c}=n,u=c.parent;if(!(n.flags&67108864)){if(EIe(n)){let _=Sr(c);return yI(n.parent)&&n.parent.propertyName===n?Kye(_):_}else if(j2(n))return Sr(c.parent);if(n.kind===80){if(Yee(n))return U6e(n);if(c.kind===208&&u.kind===206&&n===c.propertyName){let _=fx(u),g=ha(_,n.escapedText);if(g)return g}else if(lP(c)&&c.name===n)return c.keywordToken===105&&gr(n)==="target"?vve(c).symbol:c.keywordToken===102&&gr(n)==="meta"?Jwe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!NI(n))return U6e(n);case 110:let _=Lu(n,!1,!1);if($o(_)){let P=lm(_);if(P.thisParameter)return P.thisParameter}if(VF(n))return po(n).symbol;case 197:return MZ(n).symbol;case 108:return po(n).symbol;case 137:let g=n.parent;return g&&g.kind===176?g.parent.symbol:void 0;case 11:case 15:if(aE(n.parent.parent)&&hN(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||ir(n)&&bu(n.parent,!1)||Op(n.parent)||Kv(n.parent)&&wv(n.parent.parent)&&n.parent.parent.argument===n.parent)return mu(n,n,a);if(ia(c)&&gT(c)&&c.arguments[1]===n)return Sr(c);case 9:let T=Js(c)?c.argumentExpression===n?xd(c.expression):void 0:Kv(c)&&MT(u)?Ti(u.objectType):void 0;return T&&ha(T,pl(n.text));case 90:case 100:case 39:case 86:return pf(n.parent);case 205:return wv(n)?zm(n.argument.literal,a):void 0;case 95:return Ll(n.parent)?x.checkDefined(n.parent.symbol):void 0;case 102:case 105:return lP(n.parent)?pFe(n.parent).symbol:void 0;case 104:if(dr(n.parent)){let P=xd(n.parent.right),W=Dve(P);return W?.symbol??P.symbol}return;case 236:return po(n).symbol;case 295:if($x(n)&&ux(n)){let P=vee(n.parent);return P===lt?void 0:P}default:return}}}function hht(n){if(Fe(n)&&kr(n.parent)&&n.parent.name===n){let a=cv(n),c=xd(n.parent.expression),u=c.flags&1048576?c.types:[c];return va(u,_=>jr(_u(_),g=>ix(a,g.keyType)))}}function ght(n){if(n&&n.kind===304)return Bs(n.name,2208703)}function yht(n){return Kd(n)?n.parent.parent.moduleSpecifier?ey(n.parent.parent,n):Bs(n.propertyName||n.name,2998271):Bs(n,2998271)}function fx(n){if(Yi(n)&&!oc(n)||n.flags&67108864)return ut;let a=Hj(n),c=a&&Wf(Sr(a.class));if(qh(n)){let u=Ti(n);return c?Up(u,c.thisType):u}if(Xh(n))return K6e(n);if(c&&!a.isImplements){let u=Xc(Dp(c));return u?Up(u,c.thisType):ut}if(SR(n)){let u=Sr(n);return Xs(u)}if(cht(n)){let u=zm(n);return u?Xs(u):ut}if(Xa(n))return PA(n,!0,0)||ut;if(Hd(n)){let u=Sr(n);return u?sr(u):ut}if(EIe(n)){let u=zm(n);return u?sr(u):ut}if(Qo(n))return PA(n.parent,!0,0)||ut;if(Yee(n)){let u=zm(n);if(u){let _=Xs(u);return Vt(_)?sr(u):_}}return lP(n.parent)&&n.parent.keywordToken===n.kind?pFe(n.parent):n1(n)?bge(!1):ut}function $ee(n){if(x.assert(n.kind===210||n.kind===209),n.parent.kind===250){let _=aG(n.parent);return ZA(n,_||ut)}if(n.parent.kind===226){let _=xd(n.parent.right);return ZA(n,_||ut)}if(n.parent.kind===303){let _=na(n.parent.parent,Ma),g=$ee(_)||ut,T=jx(_.properties,n.parent);return CFe(_,g,T)}let a=na(n.parent,uu),c=$ee(a)||ut,u=fv(65,c,Me,n.parent)||ut;return NFe(a,c,a.elements.indexOf(n),u)}function vht(n){let a=$ee(na(n.parent.parent,sN));return a&&ha(a,n.escapedText)}function K6e(n){return MN(n)&&(n=n.parent),gu(xd(n))}function J6e(n){let a=pf(n.parent);return ra(n)?sr(a):Xs(a)}function q6e(n){let a=n.name;switch(a.kind){case 80:return Uu(gr(a));case 9:case 11:return Uu(a.text);case 167:let c=bg(a);return Id(c,12288)?c:Ne;default:return x.fail("Unsupported property name.")}}function nbe(n){n=Nu(n);let a=aa(ms(n)),c=Jo(n,0).length?Un:Jo(n,1).length?yo:void 0;return c&&gn(ms(c),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),KE(a)}function Qee(n){return Jo(n,0).length!==0||Jo(n,1).length!==0}function X6e(n){let a=bht(n);return a?va(a,X6e):[n]}function bht(n){if(Tl(n)&6)return to(qi(n).containingType.types,a=>ha(a,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:a,rightSpread:c,syntheticOrigin:u}}=n;return a?[a,c]:u?[u]:pI(Eht(n))}}function Eht(n){let a,c=n;for(;c=qi(c).target;)a=c;return a}function Sht(n){if(rl(n))return!1;let a=Do(n,Fe);if(!a)return!1;let c=a.parent;return c?!((kr(c)||mc(c))&&c.name===a)&&$8(a)===Wt:!1}function Tht(n){let a=mu(n.parent,n);if(!a||uN(a))return!0;let c=iv(a);a=Ip(a);let u=qi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=c?!!(a.flags&111551):Gc(Dh(a),_)),u.exportsSomeValue;function _(g){return g=Vl(g),g&&!!(Td(g)&111551)}}function Aht(n){return s2(n.parent)&&n===n.parent.name}function Iht(n,a){var c;let u=Do(n,Fe);if(u){let _=$8(u,Aht(u));if(_){if(_.flags&1048576){let T=es(_.exportSymbol);if(!a&&T.flags&944&&!(T.flags&3))return;_=T}let g=Ru(_);if(g){if(g.flags&512&&((c=g.valueDeclaration)==null?void 0:c.kind)===312){let T=g.valueDeclaration,P=Gn(u);return T!==P?void 0:T}return Fn(u.parent,T=>s2(T)&&Sr(T)===g)}}}}function xht(n){let a=Qoe(n);if(a)return a;let c=Do(n,Fe);if(c){let u=zht(c);if(bA(u,111551)&&!Lf(u,111551))return Mm(u)}}function Rht(n){return n.valueDeclaration&&Xa(n.valueDeclaration)&&Lx(n.valueDeclaration).parent.kind===299}function Y6e(n){if(n.flags&418&&n.valueDeclaration&&!Yi(n.valueDeclaration)){let a=qi(n);if(a.isDeclarationWithCollidingName===void 0){let c=uh(n.valueDeclaration);if(kre(c)||Rht(n)){let u=Qr(n.valueDeclaration);if(hl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){let _=u.flags&32768,g=Nv(c,!1),T=c.kind===241&&Nv(c.parent,!1);a.isDeclarationWithCollidingName=!Gre(c)&&(!_||!g&&!T)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Dht(n){if(!rl(n)){let a=Do(n,Fe);if(a){let c=$8(a);if(c&&Y6e(c))return c.valueDeclaration}}}function Cht(n){let a=Do(n,Hd);if(a){let c=Sr(a);if(c)return Y6e(c)}return!1}function $6e(n){switch(x.assert(pt),n.kind){case 271:return Zee(Sr(n));case 273:case 274:case 276:case 281:let a=Sr(n);return!!a&&Zee(a,!0);case 278:let c=n.exportClause;return!!c&&(yh(c)||gt(c.elements,$6e));case 277:return n.expression&&n.expression.kind===80?Zee(Sr(n),!0):!0}return!1}function Nht(n){let a=Do(n,td);return a===void 0||a.parent.kind!==312||!Qx(a)?!1:Zee(Sr(a))&&a.moduleReference&&!Fl(a.moduleReference)}function Zee(n,a){if(!n)return!1;let c=ff(Wc(n));return c===lt?!a||!Lf(n):!!(Td(n,a,!0)&111551)&&(B0(B)||!Y8(c))}function Y8(n){return Rve(n)||!!n.constEnumOnlyModule}function ete(n,a){if(x.assert(pt),pb(n)){let c=Sr(n),u=c&&qi(c);if(u?.referenced)return!0;let _=qi(c).aliasTarget;if(_&&lu(n)&32&&Td(_)&111551&&(B0(B)||!Y8(_)))return!0}return a?!!Go(n,c=>ete(c,a)):!1}function Q6e(n){if(Hf(n.body)){if(Pv(n)||Cy(n))return!1;let a=Sr(n),c=PS(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function Z6e(n){return!!J&&!_8(n)&&!Ym(n)&&!!n.initializer&&!$r(n,31)}function Pht(n){return J&&_8(n)&&!n.initializer&&$r(n,31)}function Mht(n){let a=Do(n,Ec);if(!a)return!1;let c=Sr(a);return!c||!(c.flags&16)?!1:!!Gc(xp(c),u=>u.flags&111551&&j6(u.valueDeclaration))}function Lht(n){let a=Do(n,Ec);if(!a)return Xe;let c=Sr(a);return c&&ms(sr(c))||Xe}function AC(n){var a;let c=n.id||0;return c<0||c>=mS.length?0:((a=mS[c])==null?void 0:a.flags)||0}function IC(n){return M6e(n.parent),Qr(n).enumMemberValue}function e4e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function rbe(n){if(n.kind===306)return IC(n);let a=Qr(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(A0(c.parent))return IC(c)}}function ibe(n){return!!(n.flags&524288)&&Jo(n,0).length>0}function kht(n,a){var c;let u=Do(n,Xu);if(!u||a&&(a=Do(a),!a))return 0;let _=!1;if(Su(u)){let te=Bs(Fp(u),111551,!0,!0,a);_=!!((c=te?.declarations)!=null&&c.every(iE))}let g=Bs(u,111551,!0,!0,a),T=g&&g.flags&2097152?Wc(g):g;_||(_=!!(g&&Lf(g,111551)));let P=Bs(u,788968,!0,!0,a),W=P&&P.flags&2097152?Wc(P):P;if(g||_||(_=!!(P&&Lf(P,788968))),T&&T===W){let te=Ege(!1);if(te&&T===te)return 9;let ye=sr(T);if(ye&&ts(ye))return _?10:1}if(!W)return _?11:0;let V=Xs(W);return Vt(V)?_?11:0:V.flags&3?11:Id(V,245760)?2:Id(V,528)?6:Id(V,296)?3:Id(V,2112)?4:Id(V,402653316)?5:wa(V)?7:Id(V,12288)?8:ibe(V)?10:Gf(V)?7:11}function wht(n,a,c,u,_){let g=Do(n,Qre);if(!g)return L.createToken(133);let T=Sr(g),P=T&&!(T.flags&133120)?FS(sr(T)):ut;return P.flags&8192&&P.symbol===T&&(c|=1048576),_&&(P=zb(P)),Et.typeToTypeNode(P,a,c|1024,u)}function Oht(n,a,c,u){let _=Do(n,$o);if(!_)return L.createToken(133);let g=lm(_);return Et.typeToTypeNode(ds(g),a,c|1024,u)}function Wht(n,a,c,u){let _=Do(n,ht);if(!_)return L.createToken(133);let g=Hp(K6e(_));return Et.typeToTypeNode(g,a,c|1024,u)}function Fht(n){return be.has(pl(n))}function $8(n,a){let c=Qr(n).resolvedSymbol;if(c)return c;let u=n;if(a){let _=n.parent;Hd(_)&&n===_.name&&(u=X(_))}return hl(u,n.escapedText,3257279,void 0,void 0,!0)}function zht(n){let a=Qr(n).resolvedSymbol;return a&&a!==lt?a:hl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Bht(n){if(!rl(n)){let a=Do(n,Fe);if(a){let c=$8(a);if(c)return ff(c).valueDeclaration}}}function Ght(n){if(!rl(n)){let a=Do(n,Fe);if(a){let c=$8(a);if(c)return jr(ff(c).declarations,u=>{switch(u.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 Vht(n){return CF(n)||wi(n)&&pG(n)?wS(sr(Sr(n))):!1}function jht(n,a,c){let u=n.flags&1056?Et.symbolToExpression(n.symbol,111551,a,void 0,c):n===wn?L.createTrue():n===Ut&&L.createFalse();if(u)return u;let _=n.value;return typeof _=="object"?L.createBigIntLiteral(_):typeof _=="string"?L.createStringLiteral(_):_<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-_)):L.createNumericLiteral(_)}function Uht(n,a){let c=sr(Sr(n));return jht(c,n,a)}function t4e(n){return n?(WE(n),Gn(n).localJsxFactory||Yg):Yg}function obe(n){if(n){let a=Gn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),u=To(c)?c[0]:c;if(u)return a.localJsxFragmentFactory=l1(u.arguments.factory,ce),a.localJsxFragmentFactory}}if(B.jsxFragmentFactory)return l1(B.jsxFragmentFactory,ce)}function Hht(){let n=e.getResolvedTypeReferenceDirectives(),a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:W},V,te)=>{if(!W?.resolvedFileName)return;let ye=e.getSourceFile(W.resolvedFileName);ye&&P(ye,V,te)})),{getReferencedExportContainer:Iht,getReferencedImportDeclaration:xht,getReferencedDeclarationWithCollidingName:Dht,isDeclarationWithCollidingName:Cht,isValueAliasDeclaration:W=>{let V=Do(W);return V&&pt?$6e(V):!0},hasGlobalName:Fht,isReferencedAliasDeclaration:(W,V)=>{let te=Do(W);return te&&pt?ete(te,V):!0},getNodeCheckFlags:W=>{let V=Do(W);return V?AC(V):0},isTopLevelValueImportEqualsWithEntityName:Nht,isDeclarationVisible:i_,isImplementationOfOverload:Q6e,isRequiredInitializedParameter:Z6e,isOptionalUninitializedParameterProperty:Pht,isExpandoFunctionDeclaration:Mht,getPropertiesOfContainerFunction:Lht,createTypeOfDeclaration:wht,createReturnTypeOfSignatureDeclaration:Oht,createTypeOfExpression:Wht,createLiteralConstValue:Uht,isSymbolAccessible:ki,isEntityNameVisible:vb,getConstantValue:W=>{let V=Do(W,e4e);return V?rbe(V):void 0},collectLinkedAliases:xM,getReferencedValueDeclaration:Bht,getReferencedValueDeclarations:Ght,getTypeReferenceSerializationKind:kht,isOptionalParameter:_8,moduleExportsSomeValue:Tht,isArgumentsLocalBinding:Sht,getExternalModuleFileFromDeclaration:W=>{let V=Do(W,jre);return V&&abe(V)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:Vht,isLateBound:W=>{let V=Do(W,Hd),te=V&&Sr(V);return!!(te&&Tl(te)&4096)},getJsxFactoryEntity:t4e,getJsxFragmentFactoryEntity:obe,getAllAccessorDeclarations(W){W=Do(W,iF);let V=W.kind===178?177:178,te=cl(Sr(W),V),ye=te&&te.posty(W,W,void 0),isBindingCapturedByNode:(W,V)=>{let te=Do(W),ye=Do(V);return!!te&&!!ye&&(wi(ye)||Xa(ye))&&_dt(te,ye)},getDeclarationStatementsForSourceFile:(W,V,te,ye)=>{let _e=Do(W);x.assert(_e&&_e.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");let je=Sr(W);return je?je.exports?Et.symbolTableToDeclarationStatements(je.exports,W,V,te,ye):[]:W.locals?Et.symbolTableToDeclarationStatements(W.locals,W,V,te,ye):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:W=>{let V=Do(W),te=V&&as(V)?V.text:void 0;return te!==void 0?hZ(te,!0):void 0}};function c(W){let V=Gn(W);if(!V.symbol)return!1;let te=abe(W);if(!te||te===V)return!1;let ye=Dh(V.symbol);for(let _e of Wo(ye.values()))if(_e.mergeId){let je=es(_e);if(je.declarations){for(let mt of je.declarations)if(Gn(mt)===te)return!0}}return!1}function u(W){return W.parent&&W.parent.kind===233&&W.parent.parent&&W.parent.parent.kind===298}function _(W){if(!a)return;let V;W.parent.kind===167?V=1160127:(V=790504,(W.kind===80&&TT(W)||W.kind===211&&!u(W))&&(V=1160127));let te=Bs(W,V,!0);return te&&te!==lt?g(te,V):void 0}function g(W,V){if(!a||!T(W))return;let te;for(let ye of W.declarations)if(ye.symbol&&ye.symbol.flags&V){let _e=Gn(ye),je=a.get(_e.path);if(je)(te||(te=[])).push(je);else return}return te}function T(W){if(!W.declarations)return!1;let V=W;for(;;){let te=Ru(V);if(te)V=te;else break}if(V.valueDeclaration&&V.valueDeclaration.kind===312&&V.flags&512)return!1;for(let te of W.declarations){let ye=Gn(te);if(a.has(ye.path))return!0}return!1}function P(W,V,te){if(!a.has(W.path)){a.set(W.path,[V,te]);for(let{fileName:ye}of W.referencedFiles){let _e=ez(ye,W.fileName),je=e.getSourceFile(_e);je&&P(je,V,te||W.impliedNodeFormat)}}}}function abe(n){let a=n.kind===267?ri(n.name,Da):tR(n),c=ty(a,a,void 0);if(c)return cl(c,312)}function Kht(){for(let a of e.getSourceFiles())Pse(a,B);ys=new Map;let n;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!wp(a)){let c=a.locals.get("globalThis");if(c?.declarations)for(let u of c.declarations)Qa.add(Pr(u,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));n_(be,a.locals)}a.jsGlobalAugmentations&&n_(be,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(im=Eo(im,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,_)=>{be.has(_)||be.set(_,u)})}if(n)for(let a of n)for(let c of a)E_(c.parent)&&BD(c);if(gS(be,lA,f.Declaration_name_conflicts_with_built_in_global_identifier_0),qi(ze).type=Nt,qi(Wt).type=ec("IArguments",0,!0),qi(lt).type=ut,qi(tt).type=kf(16,tt),Xo=ec("Array",1,!0),Re=ec("Object",0,!0),Lt=ec("Function",0,!0),Un=pe&&ec("CallableFunction",0,!0)||Lt,yo=pe&&ec("NewableFunction",0,!0)||Lt,Ql=ec("String",0,!0),gc=ec("Number",0,!0),sl=ec("Boolean",0,!0),_l=ec("RegExp",0,!0),Zl=Bd(G),Jc=Bd(et),Jc===Ca&&(Jc=Ds(void 0,K,Xe,Xe,Xe)),Zo=Zwe("ReadonlyArray",1)||Xo,lf=Zo?y8(Zo,[G]):Zl,Gl=Zwe("ThisType",1),n)for(let a of n)for(let c of a)E_(c.parent)||BD(c);ys.forEach(({firstFile:a,secondFile:c,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:_,firstFileLocations:g,secondFileLocations:T},P)=>{let W=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(let V of g)$g(V,W,P,T);for(let V of T)$g(V,W,P,g)});else{let _=Wo(u.keys()).join(", ");Qa.add(Pa(Pr(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Pr(c,f.Conflicts_are_in_this_file))),Qa.add(Pa(Pr(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Pr(a,f.Conflicts_are_in_this_file)))}}),ys=void 0}function xc(n,a){if((s&a)!==a&&B.importHelpers){let c=Gn(n);if(TI(c,B)&&!(n.flags&33554432)){let u=qht(c,n);if(u!==lt){let _=a&~s;for(let g=1;g<=33554432;g<<=1)if(_&g)for(let T of Jht(g)){if(o.has(T))continue;o.add(T);let P=Vl(Vu(Dh(u),pl(T),111551));P?g&524288?gt(PS(P),W=>Kp(W)>3)||Ve(n,f.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,Gv,T,4):g&1048576?gt(PS(P),W=>Kp(W)>4)||Ve(n,f.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,Gv,T,5):g&1024&&(gt(PS(P),W=>Kp(W)>2)||Ve(n,f.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,Gv,T,3)):Ve(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Gv,T)}}s|=a}}}function Jht(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 x.fail("Unrecognized helper")}}function qht(n,a){return l||(l=j_(n,Gv,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||lt),l}function Sg(n){var a;let c=$ht(n)||Xht(n);if(c!==void 0)return c;if(Ao(n)&&L0(n))return _d(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let u=Ml(n)?n.declarationList.flags&7:0,_,g,T,P,W,V=0,te=!1,ye=!1;for(let _e of n.modifiers)if(bd(_e)){if(GF(Z,n,n.parent,n.parent.parent)){if(Z&&(n.kind===177||n.kind===178)){let je=AT(n.parent.members,n);if(bf(je.firstAccessor)&&n===je.secondAccessor)return _d(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Hf(n.body)?_d(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):_d(n,f.Decorators_are_not_valid_here);if(V&-34849)return yn(_e,f.Decorators_are_not_valid_here);if(ye&&V&98303){x.assertIsDefined(W);let je=Gn(_e);return US(je)?!1:(Pa(Ve(_e,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Pr(W,f.Decorator_used_before_export_here)),!0)}V|=32768,V&98303?V&32&&(te=!0):ye=!0,W??(W=_e)}else{if(_e.kind!==148){if(n.kind===171||n.kind===173)return yn(_e,f._0_modifier_cannot_appear_on_a_type_member,da(_e.kind));if(n.kind===181&&(_e.kind!==126||!ci(n.parent)))return yn(_e,f._0_modifier_cannot_appear_on_an_index_signature,da(_e.kind))}if(_e.kind!==103&&_e.kind!==147&&_e.kind!==87&&n.kind===168)return yn(_e,f._0_modifier_cannot_appear_on_a_type_parameter,da(_e.kind));switch(_e.kind){case 87:{if(n.kind!==266&&n.kind!==168)return yn(n,f.A_class_member_cannot_have_the_0_keyword,da(87));let At=nm(n.parent)&&cE(n.parent)||n.parent;if(n.kind===168&&!(ws(At)||ci(At)||hh(At)||RR(At)||XI(At)||Mk(At)||_h(At)))return yn(_e,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,da(_e.kind));break}case 164:if(V&16)return yn(_e,f._0_modifier_already_seen,"override");if(V&128)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(V&8)return yn(_e,f._0_modifier_must_precede_1_modifier,"override","readonly");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,"override","accessor");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,"override","async");V|=16,P=_e;break;case 125:case 124:case 123:let je=NA(MI(_e.kind));if(V&7)return yn(_e,f.Accessibility_modifier_already_seen);if(V&16)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"override");if(V&256)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"static");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"accessor");if(V&8)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"readonly");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,je,"async");if(n.parent.kind===268||n.parent.kind===312)return yn(_e,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,je);if(V&64)return _e.kind===123?yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,je,"abstract"):yn(_e,f._0_modifier_must_precede_1_modifier,je,"abstract");if(ou(n))return yn(_e,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);V|=MI(_e.kind);break;case 126:if(V&256)return yn(_e,f._0_modifier_already_seen,"static");if(V&8)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","readonly");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","async");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return yn(_e,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"static");if(V&64)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(V&16)return yn(_e,f._0_modifier_must_precede_1_modifier,"static","override");V|=256,_=_e;break;case 129:if(V&512)return yn(_e,f._0_modifier_already_seen,"accessor");if(V&8)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(V&128)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return yn(_e,f.accessor_modifier_can_only_appear_on_a_property_declaration);V|=512;break;case 148:if(V&8)return yn(_e,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return yn(_e,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(V&512)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");V|=8;break;case 95:if(B.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(z===1||Gn(n).impliedNodeFormat===1))return yn(_e,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(V&32)return yn(_e,f._0_modifier_already_seen,"export");if(V&128)return yn(_e,f._0_modifier_must_precede_1_modifier,"export","declare");if(V&64)return yn(_e,f._0_modifier_must_precede_1_modifier,"export","abstract");if(V&1024)return yn(_e,f._0_modifier_must_precede_1_modifier,"export","async");if(ci(n.parent))return yn(_e,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"export");if(u===4)return yn(_e,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(u===6)return yn(_e,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");V|=32;break;case 90:let mt=n.parent.kind===312?n.parent:n.parent.parent;if(mt.kind===267&&!Md(mt))return yn(_e,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(u===4)return yn(_e,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(u===6)return yn(_e,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(V&32){if(te)return yn(W,f.Decorators_are_not_valid_here)}else return yn(_e,f._0_modifier_must_precede_1_modifier,"export","default");V|=2048;break;case 138:if(V&128)return yn(_e,f._0_modifier_already_seen,"declare");if(V&1024)return yn(_e,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(V&16)return yn(_e,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ci(n.parent)&&!Uo(n))return yn(_e,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(u===4)return yn(_e,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(u===6)return yn(_e,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return yn(_e,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ou(n))return yn(_e,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(V&512)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");V|=128,g=_e;break;case 128:if(V&64)return yn(_e,f._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 yn(_e,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&$r(n.parent,64))){let At=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return yn(_e,At)}if(V&256)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(V&2)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(V&1024&&T)return yn(T,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(V&16)return yn(_e,f._0_modifier_must_precede_1_modifier,"abstract","override");if(V&512)return yn(_e,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(iu(n)&&n.name.kind===81)return yn(_e,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");V|=64;break;case 134:if(V&1024)return yn(_e,f._0_modifier_already_seen,"async");if(V&128||n.parent.flags&33554432)return yn(_e,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return yn(_e,f._0_modifier_cannot_appear_on_a_parameter,"async");if(V&64)return yn(_e,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");V|=1024,T=_e;break;case 103:case 147:{let At=_e.kind===103?8192:16384,rn=_e.kind===103?"in":"out",sn=nm(n.parent)&&(cE(n.parent)||Vr((a=iR(n.parent))==null?void 0:a.tags,zT))||n.parent;if(n.kind!==168||sn&&!(pu(sn)||ci(sn)||Tm(sn)||zT(sn)))return yn(_e,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,rn);if(V&At)return yn(_e,f._0_modifier_already_seen,rn);if(At&8192&&V&16384)return yn(_e,f._0_modifier_must_precede_1_modifier,"in","out");V|=At;break}}}return n.kind===176?V&256?yn(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):V&16?yn(P,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):V&1024?yn(T,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&V&128?yn(g,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&V&31&&Qo(n.name)?yn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&V&31&&n.dotDotDotToken?yn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):V&1024?Zht(n,T):!1}function Xht(n){if(!n.modifiers)return!1;let a=Yht(n);return a&&_d(a,f.Modifiers_cannot_appear_here)}function tte(n,a){let c=Vr(n.modifiers,Sa);return c&&c.kind!==a?c:void 0}function Yht(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 Vr(n.modifiers,Sa);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return tte(n,134);case 263:case 185:return tte(n,128);case 231:case 264:case 265:return Vr(n.modifiers,Sa);case 243:return n.declarationList.flags&4?tte(n,135):Vr(n.modifiers,Sa);case 266:return tte(n,87);default:x.assertNever(n)}}}function $ht(n){let a=Qht(n);return a&&_d(a,f.Decorators_are_not_valid_here)}function Qht(n){return TH(n)?Vr(n.modifiers,bd):void 0}function Zht(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return yn(a,f._0_modifier_cannot_be_used_here,"async")}function mx(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?HS(n[0],n.end-1,1,a):!1}function n4e(n,a){if(n&&n.length===0){let c=n.pos-1,u=Na(a.text,n.end)+1;return HS(a,c,u-c,f.Type_parameter_list_cannot_be_empty)}return!1}function egt(n){let a=!1,c=n.length;for(let u=0;u!!a.initializer||Qo(a.name)||Kh(a))}function ngt(n){if(ce>=3){let a=n.body&&Ko(n.body)&&vH(n.body.statements);if(a){let c=tgt(n.parameters);if(Nn(c)){gn(c,_=>{Pa(Ve(_,f.This_parameter_is_not_allowed_with_use_strict_directive),Pr(a,f.use_strict_directive_used_here))});let u=c.map((_,g)=>g===0?Pr(_,f.Non_simple_parameter_declared_here):Pr(_,f.and_here));return Pa(Ve(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function nte(n){let a=Gn(n);return Sg(n)||n4e(n.typeParameters,a)||egt(n.parameters)||igt(n,a)||ws(n)&&ngt(n)}function rgt(n){let a=Gn(n);return cgt(n)||n4e(n.typeParameters,a)}function igt(n,a){if(!Os(n))return!1;n.typeParameters&&!(Nn(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&bc(a.fileName,[".mts",".cts"])&&yn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:c}=n,u=hs(a,c.pos).line,_=hs(a,c.end).line;return u!==_&&yn(c,f.Line_terminator_not_permitted_before_arrow)}function ogt(n){let a=n.parameters[0];if(n.parameters.length!==1)return yn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(mx(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return yn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(u6(a))return yn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return yn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return yn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return yn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);let c=Ti(a.type);return Fm(c,u=>!!(u.flags&8576))||pC(c)?yn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):ap(c,bZ)?n.type?!1:yn(n,f.An_index_signature_must_have_a_type_annotation):yn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function agt(n){return Sg(n)||ogt(n)}function sgt(n,a){if(a&&a.length===0){let c=Gn(n),u=a.pos-1,_=Na(c.text,a.end)+1;return HS(c,u,_-u,f.Type_argument_list_cannot_be_empty)}return!1}function uG(n,a){return mx(a)||sgt(n,a)}function lgt(n){return n.questionDotToken||n.flags&64?yn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function r4e(n){let a=n.types;if(mx(a))return!0;if(a&&a.length===0){let c=da(n.token);return HS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return gt(a,i4e)}function i4e(n){return zy(n)&&sP(n.expression)&&n.typeArguments?yn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):uG(n,n.typeArguments)}function cgt(n){let a=!1,c=!1;if(!Sg(n)&&n.heritageClauses)for(let u of n.heritageClauses){if(u.token===96){if(a)return _d(u,f.extends_clause_already_seen);if(c)return _d(u,f.extends_clause_must_precede_implements_clause);if(u.types.length>1)return _d(u.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(x.assert(u.token===119),c)return _d(u,f.implements_clause_already_seen);c=!0}r4e(u)}}function dgt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===96){if(a)return _d(c,f.extends_clause_already_seen);a=!0}else return x.assert(c.token===119),_d(c,f.Interface_declaration_cannot_have_implements_clause);r4e(c)}return!1}function rte(n){if(n.kind!==167)return!1;let a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?yn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function sbe(n){if(n.asteriskToken){if(x.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return yn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return yn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function lbe(n,a){return!!n&&yn(n,a)}function o4e(n,a){return!!n&&yn(n,a)}function ugt(n,a){let c=new Map;for(let u of n.properties){if(u.kind===305){if(a){let T=fs(u.expression);if(uu(T)||Ma(T))return yn(u.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}let _=u.name;if(_.kind===167&&rte(_),u.kind===304&&!a&&u.objectAssignmentInitializer&&yn(u.equalsToken,f.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),_.kind===81&&yn(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Am(u)&&u.modifiers)for(let T of u.modifiers)Sa(T)&&(T.kind!==134||u.kind!==174)&&yn(T,f._0_modifier_cannot_be_used_here,uc(T));else if(wae(u)&&u.modifiers)for(let T of u.modifiers)Sa(T)&&yn(T,f._0_modifier_cannot_be_used_here,uc(T));let g;switch(u.kind){case 304:case 303:o4e(u.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),lbe(u.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&ube(_),g=4;break;case 174:g=8;break;case 177:g=1;break;case 178:g=2;break;default:x.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){let T=pbe(_);if(T===void 0)continue;let P=c.get(T);if(!P)c.set(T,g);else if(g&8&&P&8)yn(_,f.Duplicate_identifier_0,uc(_));else if(g&4&&P&4)yn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,uc(_));else if(g&3&&P&3)if(P!==3&&g!==P)c.set(T,g|P);else return yn(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return yn(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function pgt(n){fgt(n.tagName),uG(n,n.typeArguments);let a=new Map;for(let c of n.attributes.properties){if(c.kind===293)continue;let{name:u,initializer:_}=c,g=$N(u);if(!a.get(g))a.set(g,!0);else return yn(u,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return yn(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function fgt(n){if(kr(n)&&qm(n.expression))return yn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(qm(n)&&R6(B)&&!dR(n.namespace.escapedText))return yn(n,f.React_components_cannot_include_JSX_namespace_names)}function mgt(n){if(n.expression&&gP(n.expression))return yn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function a4e(n){if(gy(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let a=Gn(n);if(FF(n)){if(!US(a))switch(TI(a,B)||Qa.add(Pr(n.awaitModifier,f.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)),z){case 100:case 199:if(a.impliedNodeFormat===1){Qa.add(Pr(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ce>=4)break;default:Qa.add(Pr(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!US(a)){let c=Pr(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=Wp(n);if(u&&u.kind!==176){x.assert((Vc(u)&2)===0,"Enclosing function should never be an async function.");let _=Pr(u,f.Did_you_mean_to_mark_this_function_as_async);Pa(c,_)}return Qa.add(c),!0}return!1}if(Wk(n)&&!(n.flags&65536)&&Fe(n.initializer)&&n.initializer.escapedText==="async")return yn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){let a=n.initializer;if(!dbe(a)){let c=a.declarations;if(!c.length)return!1;if(c.length>1){let _=n.kind===249?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return _d(a.declarations[1],_)}let u=c[0];if(u.initializer){let _=n.kind===249?f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return yn(u.name,_)}if(u.type){let _=n.kind===249?f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return yn(u,_)}}}return!1}function _gt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(ce<1)return yn(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ce<2&&Ki(n.name))return yn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!$r(n,64))return HS(n,n.end-1,1,f._0_expected,"{")}if(n.body){if($r(n,64))return yn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return yn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return yn(n.name,f.An_accessor_cannot_have_type_parameters);if(!hgt(n))return yn(n.name,n.kind===177?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return yn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);let a=x.checkDefined(DN(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return yn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return yn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return yn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function hgt(n){return cbe(n)||n.parameters.length===(n.kind===177?0:1)}function cbe(n){if(n.parameters.length===(n.kind===177?1:2))return M0(n)}function ggt(n){if(n.operator===158){if(n.type.kind!==155)return yn(n.type,f._0_expected,da(155));let a=G2(n.parent);if(ir(a)&&$0(a)){let c=vT(a);c&&(a=RI(c)||c)}switch(a.kind){case 260:let c=a;if(c.name.kind!==80)return yn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!fN(c))return yn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return yn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!ra(a)||!CN(a))return yn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!$r(a,8))return yn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return yn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return _d(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,da(155))}function oL(n,a){if(wot(n))return yn(n,a)}function s4e(n){if(nte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Va(n.modifiers).kind===134))return _d(n,f.Modifiers_cannot_appear_here);if(lbe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(o4e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return HS(n,n.end-1,1,f._0_expected,"{")}if(sbe(n))return!0}if(ci(n.parent)){if(ce<2&&Ki(n.name))return yn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return oL(n.name,f.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 oL(n.name,f.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 oL(n.name,f.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 oL(n.name,f.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 ygt(n){let a=n;for(;a;){if(Wx(a))return yn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!Nv(a.statement,!0)?yn(n,f.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(Nv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){let c=n.kind===252?f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return yn(n,c)}else{let c=n.kind===252?f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return yn(n,c)}}function vgt(n){if(n.dotDotDotToken){let a=n.parent.elements;if(n!==Ja(a))return yn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(mx(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return yn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return HS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function l4e(n){return $p(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function bgt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Egt(n){if((kr(n)||Js(n)&&l4e(n.argumentExpression))&&Bl(n.expression))return!!(tc(n).flags&1056)}function c4e(n){let a=n.initializer;if(a){let c=!(l4e(a)||Egt(a)||a.kind===112||a.kind===97||bgt(a));if((CF(n)||wi(n)&&pG(n))&&!n.type){if(c)return yn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return yn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function Sgt(n){let a=KS(n),c=a&7;if(Qo(n.name))switch(c){case 6:return yn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return yn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)c4e(n);else if(!n.initializer){if(Qo(n.name)&&!Qo(n.parent))return yn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return yn(n,f._0_declarations_must_be_initialized,"await using");case 4:return yn(n,f._0_declarations_must_be_initialized,"using");case 2:return yn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){let u=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return yn(n.exclamationToken,u)}return(z<5||Gn(n).impliedNodeFormat===1)&&z!==4&&!(n.parent.parent.flags&33554432)&&$r(n.parent.parent,32)&&d4e(n.name),!!c&&u4e(n.name)}function d4e(n){if(n.kind===80){if(gr(n)==="__esModule")return Igt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=n.elements;for(let c of a)if(!jc(c))return d4e(c.name)}return!1}function u4e(n){if(n.kind===80){if(n.escapedText==="let")return yn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=n.elements;for(let c of a)jc(c)||u4e(c.name)}return!1}function dbe(n){let a=n.declarations;if(mx(n.declarations))return!0;if(!n.declarations.length)return HS(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);let c=n.flags&7;return(c===4||c===6)&&G4(n.parent)?yn(n,c===4?f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?DFe(n):!1}function p4e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return p4e(n.parent)}return!0}function Tgt(n){if(!p4e(n.parent)){let a=KS(n.declarationList)&7;if(a){let c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":x.fail("Unknown BlockScope flag");return yn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Agt(n){let a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return yn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),da(n.keywordToken),"target");break;case 102:if(a!=="meta")return yn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),da(n.keywordToken),"meta");break}}function US(n){return n.parseDiagnostics.length>0}function _d(n,a,...c){let u=Gn(n);if(!US(u)){let _=ph(u,n.pos);return Qa.add(Qc(u,_.start,_.length,a,...c)),!0}return!1}function HS(n,a,c,u,..._){let g=Gn(n);return US(g)?!1:(Qa.add(Qc(g,a,c,u,..._)),!0)}function Igt(n,a,c,...u){let _=Gn(a);return US(_)?!1:(Zm(n,a,c,...u),!0)}function yn(n,a,...c){let u=Gn(n);return US(u)?!1:(Qa.add(Pr(n,a,...c)),!0)}function xgt(n){let a=ir(n)?d6(n):void 0,c=n.typeParameters||a&&Xc(a);if(c){let u=c.pos===c.end?c.pos:Na(Gn(n).text,c.pos);return HS(n,u,c.end-u,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Rgt(n){let a=n.type||$f(n);if(a)return yn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Dgt(n){if(Ya(n.name)&&dr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return yn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(ci(n.parent)){if(Da(n.name)&&n.name.text==="constructor")return yn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(oL(n.name,f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ce<2&&Ki(n.name))return yn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ce<2&&Mu(n))return yn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Mu(n)&&lbe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(oL(n.name,f.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(x.assertNode(n,_p),n.initializer)return yn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(gp(n.parent)){if(oL(n.name,f.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(x.assertNode(n,_p),n.initializer)return yn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&c4e(n),Uo(n)&&n.exclamationToken&&(!ci(n.parent)||!n.type||n.initializer||n.flags&33554432||ra(n)||w0(n))){let a=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return yn(n.exclamationToken,a)}}function Cgt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||$r(n,2208)?!1:_d(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Ngt(n){for(let a of n.statements)if((Hd(a)||a.kind===243)&&Cgt(a))return!0;return!1}function Pgt(n){return!!(n.flags&33554432)&&Ngt(n)}function gy(n){if(n.flags&33554432){if(!Qr(n).hasReportedStatementInAmbientContext&&($o(n.parent)||Cv(n.parent)))return Qr(n).hasReportedStatementInAmbientContext=_d(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){let c=Qr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=_d(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ube(n){let a=uc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||e_(!1,Pr(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Mgt(n){return!!(!(Kv(n.parent)||qv(n.parent)&&Kv(n.parent.parent))&&ce<7&&yn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Lgt(n,a,...c){let u=Gn(n);if(!US(u)){let _=ph(u,n.pos);return Qa.add(Qc(u,Jl(_),0,a,...c)),!0}return!1}function kgt(){return Oc||(Oc=[],be.forEach((n,a)=>{bK.test(a)&&Oc.push(n)})),Oc}function wgt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?yn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?f4e(n.namedBindings):!1}function f4e(n){return!!gn(n.elements,a=>{if(a.isTypeOnly)return _d(a,a.kind===276?f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Ogt(n){if(B.verbatimModuleSyntax&&z===1)return yn(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(z===5)return yn(n,f.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 yn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=n.arguments;if(z!==99&&z!==199&&z!==100&&(mx(a),a.length>1)){let u=a[1];return yn(u,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return yn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let c=Vr(a,Jm);return c?yn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Wgt(n,a){let c=Lr(n);if(c&20&&a.flags&1048576)return Vr(a.types,u=>{if(u.flags&524288){let _=c&Lr(u);if(_&4)return n.target===u.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function Fgt(n,a){if(Lr(n)&128&&Fm(a,uv))return Vr(a.types,c=>!uv(c))}function zgt(n,a){let c=0;if(Jo(n,c).length>0||(c=1,Jo(n,c).length>0))return Vr(a.types,_=>Jo(_,c).length>0)}function Bgt(n,a){let c;if(!(n.flags&406978556)){let u=0;for(let _ of a.types)if(!(_.flags&406978556)){let g=ga([J_(n),J_(_)]);if(g.flags&4194304)return _;if(u_(g)||g.flags&1048576){let T=g.flags&1048576?yv(g.types,u_):1;T>=u&&(c=_,u=T)}}}return c}function Ggt(n){if(Rl(n,67108864)){let a=cc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function m4e(n,a,c){if(a.flags&1048576&&n.flags&2621440){let u=x8e(a,n);if(u)return u;let _=ms(n);if(_){let g=I8e(_,a);if(g){let T=Zge(a,mn(g,P=>[()=>sr(P),P.escapedName]),c);if(T!==a)return T}}}}function pbe(n){let a=bT(n);return a||(Ya(n)?Aye(xd(n.expression)):void 0)}function ite(n){return Kn===n||(Kn=n,pn=Zb(n)),pn}function KS(n){return en===n||(en=n,Dn=Ry(n)),Dn}function pG(n){let a=KS(n)&7;return a===2||a===4||a===6}}function wGe(e){return!Cv(e)}function bIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function EIe(e){switch(e.parent.kind){case 276:case 281:return Fe(e);default:return kg(e)}}function SIe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function qd(e){return!!(e.flags&1)}function vK(e){return!!(e.flags&2)}function OGe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ta(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ta(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 bK,C3,Gse,Vse,jse,Use,N3,EK,P3,M3,TIe,L3,Hse,tf,SK,WGe=bt({"src/compiler/checker.ts"(){"use strict";ea(),zse(),nT(),bK=/^".+"$/,C3="(anonymous)",Gse=1,Vse=1,jse=1,Use=1,N3=(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))(N3||{}),EK=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),P3=(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.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(P3||{}),M3=(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))(M3||{}),TIe=EW(bIe,wGe),L3=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Hse=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"})(tf||(tf={})),SK=class F4e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof F4e;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((s=this.context).trackedSymbols??(s.trackedSymbols=[])).push([t,r,i])}return!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 o;(o=this.inner)!=null&&o.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))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function $e(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return To(o)?s=(i||VGe)(o):s=o,x.assertNode(s,r),s}function zn(e,t,r,i,o){if(e===void 0)return e;let s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,d=-1,p=-1;i>0||os-i)&&(o=s-i),AIe(e,t,r,i,o)}function AIe(e,t,r,i,o){let s,l=e.length;(i>0||o=2&&(o=FGe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function FGe(e,t){let r;for(let i=0;i{let l=id,addSource:xe,setSourceContent:fe,addName:ne,addMapping:Ge,appendSourceMap:ve,toJSON:be,toString:()=>JSON.stringify(be())};function xe(tt){s();let Wt=_I(i,tt,e.getCurrentDirectory(),e.getCanonicalFileName,!0),_t=h.get(Wt);return _t===void 0&&(_t=p.length,p.push(Wt),d.push(tt),h.set(Wt,_t)),l(),_t}function fe(tt,Wt){if(s(),Wt!==null){for(m||(m=[]);m.lengthWt||me===Wt&&ge>_t)}function Ge(tt,Wt,_t,Je,pt,Zt){x.assert(tt>=ce,"generatedLine cannot backtrack"),x.assert(Wt>=0,"generatedCharacter cannot be negative"),x.assert(_t===void 0||_t>=0,"sourceIndex cannot be negative"),x.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),x.assert(pt===void 0||pt>=0,"sourceCharacter cannot be negative"),s(),(he(tt,Wt)||Ce(_t,Je,pt))&&(Le(),ce=tt,z=Wt,re=!1,pe=!1,J=!0),_t!==void 0&&Je!==void 0&&pt!==void 0&&(Z=_t,me=Je,ge=pt,re=!0,Zt!==void 0&&(q=Zt,pe=!0)),l()}function ve(tt,Wt,_t,Je,pt,Zt){x.assert(tt>=ce,"generatedLine cannot backtrack"),x.assert(Wt>=0,"generatedCharacter cannot be negative"),s();let en=[],Dn,Kn=xK(_t.mappings);for(let pn of Kn){if(Zt&&(pn.generatedLine>Zt.line||pn.generatedLine===Zt.line&&pn.generatedCharacter>Zt.character))break;if(pt&&(pn.generatedLine=1024&&Et()}function Le(){if(!(!J||!Ae())){if(s(),N0&&(A+=String.fromCharCode.apply(void 0,S),S.length=0)}function be(){return Le(),Et(),{version:3,file:t,sourceRoot:r,sources:p,names:y,mappings:A,sourcesContent:m}}function ze(tt){tt<0?tt=(-tt<<1)+1:tt=tt<<1;do{let Wt=tt&31;tt=tt>>5,tt>0&&(Wt=Wt|32),De(HGe(Wt))}while(tt>0)}}function AK(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Jse(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),i=k3.exec(r);if(i)return i[1].trimEnd();if(!r.match(w3))break}}function UGe(e){return typeof e=="string"||e===null}function qse(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&To(e.sources)&&oo(e.sources,No)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||To(e.sourcesContent)&&oo(e.sourcesContent,UGe))&&(e.names===void 0||e.names===null||To(e.names)&&oo(e.names,No))}function IK(e){try{let t=JSON.parse(e);if(qse(t))return t}catch{}}function xK(e){let t=!1,r=0,i=0,o=0,s=0,l=0,d=0,p=0,h;return{get pos(){return r},get error(){return h},get state(){return m(!0,!0)},next(){for(;!t&&r=e.length)return E("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let Y=KGe(e.charCodeAt(r));if(Y===-1)return E("Invalid character in VLQ"),-1;w=(Y&32)!==0,K=K|(Y&31)<>1,K=-K):K=K>>1,K}}function xIe(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 Xse(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function HGe(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:x.fail(`${e}: not a base64 value`)}function KGe(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 RIe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function DIe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function JGe(e,t){return x.assert(e.sourceIndex===t.sourceIndex),Zs(e.sourcePosition,t.sourcePosition)}function qGe(e,t){return Zs(e.generatedPosition,t.generatedPosition)}function XGe(e){return e.sourcePosition}function YGe(e){return e.generatedPosition}function Yse(e,t,r){let i=oi(r),o=t.sourceRoot?ho(t.sourceRoot,i):i,s=ho(t.file,i),l=e.getSourceFileLike(s),d=t.sources.map(j=>ho(j,o)),p=new Map(d.map((j,K)=>[e.getCanonicalFileName(j),K])),h,m,y;return{getSourcePosition:w,getGeneratedPosition:D};function E(j){let K=l!==void 0?BL(l,j.generatedLine,j.generatedCharacter,!0):-1,Y,B;if(Xse(j)){let ce=e.getSourceFileLike(d[j.sourceIndex]);Y=t.sources[j.sourceIndex],B=ce!==void 0?BL(ce,j.sourceLine,j.sourceCharacter,!0):-1}return{generatedPosition:K,source:Y,sourceIndex:j.sourceIndex,sourcePosition:B,nameIndex:j.nameIndex}}function S(){if(h===void 0){let j=xK(t.mappings),K=Wo(j,E);j.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${j.error}`),h=Xe):h=K}return h}function A(j){if(y===void 0){let K=[];for(let Y of S()){if(!RIe(Y))continue;let B=K[Y.sourceIndex];B||(K[Y.sourceIndex]=B=[]),B.push(Y)}y=K.map(Y=>FC(Y,JGe,DIe))}return y[j]}function N(){if(m===void 0){let j=[];for(let K of S())j.push(K);m=FC(j,qGe,DIe)}return m}function D(j){let K=p.get(e.getCanonicalFileName(j.fileName));if(K===void 0)return j;let Y=A(K);if(!gt(Y))return j;let B=lI(Y,j.pos,XGe,Zs);B<0&&(B=~B);let ce=Y[B];return ce===void 0||ce.sourceIndex!==K?j:{fileName:s,pos:ce.generatedPosition}}function w(j){let K=N();if(!gt(K))return j;let Y=lI(K,j.pos,YGe,Zs);Y<0&&(Y=~Y);let B=K[Y];return B===void 0||!RIe(B)?j:{fileName:d[B.sourceIndex],pos:B.sourcePosition}}}var RK,k3,w3,O3,$Ge=bt({"src/compiler/sourcemap.ts"(){"use strict";ea(),nT(),RK=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,k3=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,w3=/^\s*(\/\/[@#] .*)?$/,O3={getSourcePosition:Qs,getGeneratedPosition:Qs}}});function wd(e){return e=Nl(e),e?rs(e):0}function QGe(e){return!e||!zg(e)?!1:gt(e.elements,CIe)}function CIe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Im(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(mn(o.sourceFiles,t),o.prepends)}}function $se(e){return!!nR(e)}function W3(e){if(nR(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!zg(t))return!1;let r=0;for(let i of t.elements)CIe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&II(e)}function DK(e){return!W3(e)&&(II(e)||!!e.importClause&&zg(e.importClause.namedBindings)&&QGe(e.importClause.namedBindings))}function CK(e,t){let r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new LK,l=[],d=new Map,p,h=!1,m,y=!1,E=!1,S=!1;for(let D of t.statements)switch(D.kind){case 272:o.push(D),!E&&W3(D)&&(E=!0),!S&&DK(D)&&(S=!0);break;case 271:D.moduleReference.kind===283&&o.push(D);break;case 278:if(D.moduleSpecifier)if(!D.exportClause)o.push(D),y=!0;else if(o.push(D),xf(D.exportClause))N(D);else{let w=D.exportClause.name;d.get(gr(w))||(CP(l,wd(D),w),d.set(gr(w),!0),p=Tn(p,w)),E=!0}else N(D);break;case 277:D.isExportEquals&&!m&&(m=D);break;case 243:if($r(D,32))for(let w of D.declarationList.declarations)p=NIe(w,d,p,l);break;case 262:if($r(D,32))if($r(D,2048))h||(CP(l,wd(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;d.get(gr(w))||(CP(l,wd(D),w),d.set(gr(w),!0),p=Tn(p,w))}break;case 263:if($r(D,32))if($r(D,2048))h||(CP(l,wd(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;w&&!d.get(gr(w))&&(CP(l,wd(D),w),d.set(gr(w),!0),p=Tn(p,w))}break}let A=bH(e.factory,e.getEmitHelperFactory(),t,i,y,E,S);return A&&o.unshift(A),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:y,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:A};function N(D){for(let w of na(D.exportClause,xf).elements)if(!d.get(gr(w.name))){let j=w.propertyName||w.name;D.moduleSpecifier||s.add(j,w);let K=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);K&&CP(l,wd(K),w.name),d.set(gr(w.name),!0),p=Tn(p,w.name)}}}function NIe(e,t,r,i){if(Qo(e.name))for(let o of e.name.elements)jc(o)||(r=NIe(o,t,r,i));else if(!rl(e.name)){let o=gr(e.name);t.get(o)||(t.set(o,!0),r=Tn(r,e.name),Bg(e.name)&&CP(i,wd(e),e.name))}return r}function CP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function tS(e){return as(e)||e.kind===9||wu(e.kind)||Fe(e)}function L_(e){return!Fe(e)&&tS(e)}function NP(e){return e>=65&&e<=79}function PP(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 F3(e){if(!ed(e))return;let t=fs(e.expression);return mT(t)?t:void 0}function PIe(e,t,r){for(let i=t;ie9e(i,t,r))}function ZGe(e){return t9e(e)||Al(e)}function B3(e){return jr(e.members,ZGe)}function e9e(e,t,r){return Uo(e)&&(!!e.initializer||!t)&&pc(e)===r}function t9e(e){return Uo(e)&&pc(e)}function Ew(e){return e.kind===172&&e.initializer!==void 0}function Qse(e){return!ra(e)&&(bI(e)||Mu(e))&&Ki(e.name)}function Zse(e){let t;if(e){let r=e.parameters,i=r.length>0&&L0(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lMK(r.privateEnv,t))}function rle(e){return!e.initializer&&Fe(e.name)}function Sw(e){return oo(e,rle)}var f1,LK,i9e=bt({"src/compiler/transformers/utilities.ts"(){"use strict";ea(),f1=class DC{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(DC.toKey(t))}get(t){return this._map.get(DC.toKey(t))}set(t,r){return this._map.set(DC.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(DC.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(aT(t)||rl(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=Jk(t),o=Hh(i)&&i!==t?DC.toKey(i):`(generated@${rs(i)})`;return vE(!1,r.prefix,o,r.suffix,DC.toKey)}else{let i=`(auto@${r.id})`;return vE(!1,r.prefix,i,r.suffix,DC.toKey)}}return Ki(t)?gr(t).slice(1):gr(t)}},LK=class extends f1{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){let r=this.get(e);r&&(uI(r,t),r.length||this.delete(e))}}}});function UT(e,t,r,i,o,s){let l=e,d;if(ky(e))for(d=e.right;Uie(e.left)||Jj(e.left);)if(ky(d))l=e=d,d=e.right;else return x.checkDefined($e(d,t,ht));let p,h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:E=>p9e(r.factory,E),createObjectBindingOrAssignmentPattern:E=>m9e(r.factory,E),createArrayBindingOrAssignmentElement:h9e,visitor:t};if(d&&(d=$e(d,t,ht),x.assert(d),Fe(d)&&ile(e,d.escapedText)||ole(e)?d=m1(h,d,!1,l):o?d=m1(h,d,!0,l):Ks(e)&&(l=d)),MP(h,e,d,l,ky(e)),d&&o){if(!gt(p))return d;p.push(d)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(E){p=Tn(p,E)}function y(E,S,A,N){x.assertNode(E,s?Fe:ht);let D=s?s(E,S,A):at(r.factory.createAssignment(x.checkDefined($e(E,t,ht)),S),A);D.original=N,m(D)}}function ile(e,t){let r=Yv(e);return r2(r)?o9e(r,t):Fe(r)?r.escapedText===t:!1}function o9e(e,t){let r=zR(e);for(let i of r)if(ile(i,t))return!0;return!1}function ole(e){let t=Z4(e);if(t&&Ya(t)&&!b0(t.expression))return!0;let r=Yv(e);return!!r&&r2(r)&&a9e(r)}function a9e(e){return!!gn(zR(e),ole)}function nS(e,t,r,i,o,s=!1,l){let d,p=[],h=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:y,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:S=>u9e(r.factory,S),createObjectBindingOrAssignmentPattern:S=>f9e(r.factory,S),createArrayBindingOrAssignmentElement:S=>_9e(r.factory,S),visitor:t};if(wi(e)){let S=Hk(e);S&&(Fe(S)&&ile(e,S.escapedText)||ole(e))&&(S=m1(m,x.checkDefined($e(S,m.visitor,ht)),!1,S),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,S))}if(MP(m,e,o,e,l),d){let S=r.factory.createTempVariable(void 0);if(s){let A=r.factory.inlineExpressions(d);d=void 0,E(S,A,void 0,void 0)}else{r.hoistVariableDeclaration(S);let A=Ja(p);A.pendingExpressions=Tn(A.pendingExpressions,r.factory.createAssignment(S,A.value)),Hr(A.pendingExpressions,d),A.value=S}}for(let{pendingExpressions:S,name:A,value:N,location:D,original:w}of p){let j=r.factory.createVariableDeclaration(A,void 0,void 0,S?r.factory.inlineExpressions(Tn(S,N)):N);j.original=w,at(j,D),h.push(j)}return h;function y(S){d=Tn(d,S)}function E(S,A,N,D){x.assertNode(S,sT),d&&(A=r.factory.inlineExpressions(Tn(d,A)),d=void 0),p.push({pendingExpressions:d,name:S,value:A,location:N,original:D})}}function MP(e,t,r,i,o){let s=Yv(t);if(!o){let l=$e(Hk(t),e.visitor,ht);l?r?(r=c9e(e,r,l,i),!L_(l)&&r2(s)&&(r=m1(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}PV(s)?s9e(e,t,s,r,i):MV(s)?l9e(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function s9e(e,t,r,i,o){let s=zR(r),l=s.length;if(l!==1){let h=!n2(t)||l!==0;i=m1(e,i,h,o)}let d,p;for(let h=0;h=1&&!(m.transformFlags&98304)&&!(Yv(m).transformFlags&98304)&&!Ya(y))d=Tn(d,$e(m,e.visitor,pre));else{d&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r),d=void 0);let E=d9e(e,i,y);Ya(y)&&(p=Tn(p,E.argumentExpression)),MP(e,m,E,m)}}}d&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r)}function l9e(e,t,r,i,o){let s=zR(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=m1(e,at(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&Q4(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||oo(s,jc)){let h=!n2(t)||l!==0;i=m1(e,i,h,o)}let d,p;for(let h=0;h=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!LIe(m)){e.hasTransformedPriorElement=!0;let y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),p=Tn(p,[y,m]),d=Tn(d,e.createArrayBindingOrAssignmentElement(y))}else d=Tn(d,m);else{if(jc(m))continue;if(Q4(m)){if(h===l-1){let y=e.context.factory.createArraySliceCall(i,h);MP(e,m,y,m)}}else{let y=e.context.factory.createElementAccessExpression(i,h);MP(e,m,y,m)}}}if(d&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(d),i,o,r),p)for(let[h,m]of p)MP(e,m,h,m)}function LIe(e){let t=Yv(e);if(!t||jc(t))return!0;let r=Z4(e);if(r&&!T_(r))return!1;let i=Hk(e);return i&&!L_(i)?!1:r2(t)?oo(zR(t),LIe):Fe(t)}function c9e(e,t,r,i){return t=m1(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function d9e(e,t,r){let{factory:i}=e.context;if(Ya(r)){let o=m1(e,x.checkDefined($e(r.expression,e.visitor,ht)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if($p(r)){let o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{let o=e.context.factory.createIdentifier(gr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function m1(e,t,r,i){if(Fe(t)&&r)return t;{let o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(at(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function u9e(e,t){return x.assertEachNode(t,dF),e.createArrayBindingPattern(t)}function p9e(e,t){return x.assertEachNode(t,o2),e.createArrayLiteralExpression(mn(t,e.converters.convertToArrayAssignmentElement))}function f9e(e,t){return x.assertEachNode(t,Xa),e.createObjectBindingPattern(t)}function m9e(e,t){return x.assertEachNode(t,i2),e.createObjectLiteralExpression(mn(t,e.converters.convertToObjectAssignmentElement))}function _9e(e,t){return e.createBindingElement(void 0,void 0,t)}function h9e(e){return e}var kK,g9e=bt({"src/compiler/transformers/destructuring.ts"(){"use strict";ea(),kK=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(kK||{})}});function ale(e,t,r=e.createThis()){let i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return kd(l).classThis=t,l}function LP(e){var t;if(!Al(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return ed(r)&&Mc(r.expression,!0)&&Fe(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function wK(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&>(e.members,LP)}function sle(e,t,r,i){if(wK(t))return t;let o=ale(e,r,i);t.name&&Ra(o.body.statements[0],t.name);let s=e.createNodeArray([o,...t.members]);at(s,t.members);let l=Sc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return kd(l).classThis=r,l}var y9e=bt({"src/compiler/transformers/classThis.ts"(){"use strict";ea()}});function kP(e,t,r){let i=Nl(Yl(r));return(Sc(i)||Ec(i))&&!i.name&&$r(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function kIe(e,t,r){let{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(T_(t)||Ki(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(T_(t.expression)&&!Fe(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);let s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),d=i.updateComputedPropertyName(t,l);return{assignedName:o,name:d}}function lle(e,t,r=e.factory.createThis()){let{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),d=i.createClassStaticBlockDeclaration(l);return kd(d).assignedName=t,d}function _1(e){var t;if(!Al(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return ed(r)&&iP(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function V3(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&>(e.members,_1)}function OK(e){return!!e.name||V3(e)}function j3(e,t,r,i){if(V3(t))return t;let{factory:o}=e,s=lle(e,r,i);t.name&&Ra(s.body.statements[0],t.name);let l=Kl(t.members,LP)+1,d=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...d,s,...p]);return at(h,t.members),t=Sc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h),kd(t).assignedName=r,t}function YR(e,t,r,i){if(i&&Da(r)&&cj(r))return t;let{factory:o}=e,s=Yl(t),l=Zc(s)?na(j3(e,s,r),Zc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function v9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=kIe(e,t.name,i),d=YR(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,d)}function b9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.name,t.objectAssignmentInitializer),l=YR(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function E9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.name,t.initializer),l=YR(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function S9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.name,t.initializer),l=YR(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function T9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.name,t.initializer),l=YR(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function A9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=kIe(e,t.name,i),d=YR(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,d)}function I9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):kP(o,t.left,t.right),l=YR(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function x9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=YR(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function yp(e,t,r,i){switch(t.kind){case 303:return v9e(e,t,r,i);case 304:return b9e(e,t,r,i);case 260:return E9e(e,t,r,i);case 169:return S9e(e,t,r,i);case 208:return T9e(e,t,r,i);case 172:return A9e(e,t,r,i);case 226:return I9e(e,t,r,i);case 277:return x9e(e,t,r,i)}}var R9e=bt({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";ea()}});function WK(e,t,r,i,o,s){let l=$e(t.tag,r,ht);x.assert(l);let d=[void 0],p=[],h=[],m=t.template;if(s===0&&!kj(m))return Sn(t,r,e);let{factory:y}=e;if(HI(m))p.push(cle(y,m)),h.push(dle(y,m,i));else{p.push(cle(y,m.head)),h.push(dle(y,m.head,i));for(let S of m.templateSpans)p.push(cle(y,S.literal)),h.push(dle(y,S.literal,i)),d.push(x.checkDefined($e(S.expression,r,ht)))}let E=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(p),y.createArrayLiteralExpression(h));if(oc(i)){let S=y.createUniqueName("templateObject");o(S),d[0]=y.createLogicalOr(S,y.createAssignment(S,E))}else d[0]=E;return y.createCallExpression(l,void 0,d)}function cle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function dle(e,t,r){let i=t.rawText;if(i===void 0){x.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=S0(r,t);let o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,` `),at(e.createStringLiteral(i),t)}var FK,D9e=bt({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";ea(),FK=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(FK||{})}});function ule(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getEmitResolver(),p=e.getCompilerOptions(),h=ns(p),m=Ld(p),y=!!p.experimentalDecorators,E=p.emitDecoratorMetadata?fle(e):void 0,S=e.onEmitNode,A=e.onSubstituteNode;e.onEmitNode=ac,e.onSubstituteNode=xl,e.enableSubstitution(211),e.enableSubstitution(212);let N,D,w,j,K,Y,B,ce;return z;function z($){return $.kind===313?Z($):me($)}function Z($){return t.createBundle($.sourceFiles.map(me),to($.prepends,Pe=>Pe.kind===315?FU(Pe,"js"):Pe))}function me($){if($.isDeclarationFile)return $;N=$;let Pe=ge($,tt);return Fg(Pe,e.readEmitHelpers()),N=void 0,Pe}function ge($,Pe){let yt=j,cn=K,yr=Y;q($);let pr=Pe($);return j!==yt&&(K=cn),j=yt,Y=yr,pr}function q($){switch($.kind){case 312:case 269:case 268:case 241:j=$,K=void 0;break;case 263:case 262:if($r($,128))break;$.name?H($):x.assert($.kind===263||$r($,2048));break}}function J($){return ge($,re)}function re($){return $.transformFlags&1?ze($):$}function pe($){return ge($,xe)}function xe($){switch($.kind){case 272:case 271:case 277:case 278:return ne($);default:return re($)}}function fe($){let Pe=Do($);if(Pe===$||Ll($))return!1;if(!Pe||Pe.kind!==$.kind)return!0;switch($.kind){case 272:if(x.assertNode(Pe,Lc),$.importClause!==Pe.importClause||$.attributes!==Pe.attributes)return!0;break;case 271:if(x.assertNode(Pe,td),$.name!==Pe.name||$.isTypeOnly!==Pe.isTypeOnly||$.moduleReference!==Pe.moduleReference&&(Xu($.moduleReference)||Xu(Pe.moduleReference)))return!0;break;case 278:if(x.assertNode(Pe,Xl),$.exportClause!==Pe.exportClause||$.attributes!==Pe.attributes)return!0;break}return!1}function ne($){if(fe($))return $.transformFlags&1?Sn($,J,e):$;switch($.kind){case 272:return En($);case 271:return xo($);case 277:return xi($);case 278:return er($);default:x.fail("Unhandled ellided statement")}}function he($){return ge($,Ce)}function Ce($){if(!($.kind===278||$.kind===272||$.kind===273||$.kind===271&&$.moduleReference.kind===283))return $.transformFlags&1||$r($,32)?ze($):$}function Ge($){return Pe=>ge(Pe,yt=>ve(yt,$))}function ve($,Pe){switch($.kind){case 176:return In($);case 172:return Ot($,Pe);case 177:return Ba($,Pe);case 178:return vn($,Pe);case 174:return Io($,Pe);case 175:return Sn($,J,e);case 240:return $;case 181:return;default:return x.failBadSyntaxKind($)}}function Ae($){return Pe=>ge(Pe,yt=>De(yt,$))}function De($,Pe){switch($.kind){case 303:case 304:case 305:return J($);case 177:return Ba($,Pe);case 178:return vn($,Pe);case 174:return Io($,Pe);default:return x.failBadSyntaxKind($)}}function Le($){return bd($)?void 0:J($)}function Et($){return Sa($)?void 0:J($)}function be($){if(!bd($)&&!(MI($.kind)&28895)&&!(D&&$.kind===95))return $}function ze($){if(Hi($)&&$r($,128))return t.createNotEmittedStatement($);switch($.kind){case 95:case 90:return D?void 0:$;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($);case 270:return;case 264:return t.createNotEmittedStatement($);case 263:return Zt($);case 231:return en($);case 298:return Er($);case 233:return on($);case 210:return Wt($);case 176:case 172:case 174:case 177:case 178:case 175:return x.fail("Class and object literal elements must be visited with their respective visitors");case 262:return kn($);case 218:return Be($);case 219:return ct($);case 169:return lt($);case 217:return st($);case 216:case 234:return G($);case 238:return Tt($);case 213:return He($);case 214:return ut($);case 215:return Ft($);case 235:return et($);case 266:return U($);case 243:return Rt($);case 260:return ke($);case 267:return It($);case 271:return xo($);case 285:return hn($);case 286:return dn($);default:return Sn($,J,e)}}function tt($){let Pe=cu(p,"alwaysStrict")&&!(oc($)&&m>=5)&&!Jf($);return t.updateSourceFile($,TK($.statements,pe,e,0,Pe))}function Wt($){return t.updateObjectLiteralExpression($,zn($.properties,Ae($),Pg))}function _t($){let Pe=0;gt(NK($,!0,!0))&&(Pe|=1);let yt=S_($);return yt&&Yl(yt.expression).kind!==106&&(Pe|=64),Ny(y,$)&&(Pe|=2),_N(y,$)&&(Pe|=4),xn($)?Pe|=8:Mo($)?Pe|=32:$l($)&&(Pe|=16),Pe}function Je($){return!!($.transformFlags&8192)}function pt($){return bf($)||gt($.typeParameters)||gt($.heritageClauses,Je)||gt($.members,Je)}function Zt($){let Pe=_t($),yt=h<=1&&!!(Pe&7);if(!pt($)&&!Ny(y,$)&&!xn($))return t.updateClassDeclaration($,zn($.modifiers,be,Sa),$.name,void 0,zn($.heritageClauses,J,Zp),zn($.members,Ge($),$c));yt&&e.startLexicalEnvironment();let cn=yt||Pe&8,yr=cn?zn($.modifiers,Et,il):zn($.modifiers,J,il);Pe&2&&(yr=Kn(yr,$));let zr=cn&&!$.name||Pe&4||Pe&1?$.name??t.getGeneratedNameForNode($):$.name,Di=t.updateClassDeclaration($,yr,zr,void 0,zn($.heritageClauses,J,Zp),Dn($)),Cr=za($);Pe&1&&(Cr|=64),lr(Di,Cr);let qo;if(yt){let bl=[Di],Hc=Xj(Na(N.text,$.members.end),20),zs=t.getInternalName($),hc=t.createPartiallyEmittedExpression(zs);bR(hc,Hc.end),lr(hc,3072);let ys=t.createReturnStatement(hc);HN(ys,Hc.pos),lr(ys,3840),bl.push(ys),Jh(bl,e.endLexicalEnvironment());let Kc=t.createImmediatelyInvokedArrowFunction(bl);Ak(Kc,1);let tp=t.createVariableDeclaration(t.getLocalName($,!1,!1),void 0,void 0,Kc);xr(tp,$);let Oc=t.createVariableStatement(void 0,t.createVariableDeclarationList([tp],1));xr(Oc,$),ic(Oc,$),Ra(Oc,wg($)),Jd(Oc),qo=Oc}else qo=Di;if(cn){if(Pe&8)return[qo,ss($)];if(Pe&32)return[qo,t.createExportDefault(t.getLocalName($,!1,!0))];if(Pe&16)return[qo,t.createExternalModuleExport(t.getDeclarationName($,!1,!0))]}return qo}function en($){let Pe=zn($.modifiers,Et,il);return Ny(y,$)&&(Pe=Kn(Pe,$)),t.updateClassExpression($,Pe,$.name,void 0,zn($.heritageClauses,J,Zp),Dn($))}function Dn($){let Pe=zn($.members,Ge($),$c),yt,cn=Zh($),yr=cn&&jr(cn.parameters,pr=>dp(pr,cn));if(yr)for(let pr of yr){let zr=t.createPropertyDeclaration(void 0,pr.name,void 0,void 0,void 0);xr(zr,pr),yt=Tn(yt,zr)}return yt?(yt=Hr(yt,Pe),at(t.createNodeArray(yt),$.members)):Pe}function Kn($,Pe){let yt=Xt(Pe,Pe);if(gt(yt)){let cn=[];Hr(cn,AW($,Kk)),Hr(cn,jr($,bd)),Hr(cn,yt),Hr(cn,jr(dne($,Kk),Sa)),$=at(t.createNodeArray(cn),$)}return $}function pn($,Pe,yt){if(ci(yt)&&lj(y,Pe,yt)){let cn=Xt(Pe,yt);if(gt(cn)){let yr=[];Hr(yr,jr($,bd)),Hr(yr,cn),Hr(yr,jr($,Sa)),$=at(t.createNodeArray(yr),$)}}return $}function Xt($,Pe){if(y)return wIe?hi($,Pe):Kt($,Pe)}function Kt($,Pe){if(E){let yt;if(uo($)){let cn=r().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$));yt=Tn(yt,t.createDecorator(cn))}if(So($)){let cn=r().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:Pe},$,Pe));yt=Tn(yt,t.createDecorator(cn))}if(Li($)){let cn=r().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$));yt=Tn(yt,t.createDecorator(cn))}return yt}}function hi($,Pe){if(E){let yt;if(uo($)){let cn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$)));yt=Tn(yt,cn)}if(So($)){let cn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:Pe},$,Pe)));yt=Tn(yt,cn)}if(Li($)){let cn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:Pe},$)));yt=Tn(yt,cn)}if(yt){let cn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(yt,!0));return[t.createDecorator(cn)]}}}function uo($){let Pe=$.kind;return Pe===174||Pe===177||Pe===178||Pe===172}function Li($){return $.kind===174}function So($){switch($.kind){case 263:case 231:return Zh($)!==void 0;case 174:case 177:case 178:return!0}return!1}function Qn($,Pe){let yt=$.name;return Ki(yt)?t.createIdentifier(""):Ya(yt)?Pe&&!L_(yt.expression)?t.getGeneratedNameForNode(yt):yt.expression:Fe(yt)?t.createStringLiteral(gr(yt)):t.cloneNode(yt)}function Ur($){let Pe=$.name;if(Ya(Pe)&&(!pc($)&&Y||bf($)&&y)){let yt=$e(Pe.expression,J,ht);x.assert(yt);let cn=gm(yt);if(!L_(cn)){let yr=t.getGeneratedNameForNode(Pe);return l(yr),t.updateComputedPropertyName(Pe,t.createAssignment(yr,yt))}}return x.checkDefined($e(Pe,J,rc))}function Er($){if($.token!==119)return Sn($,J,e)}function on($){return t.updateExpressionWithTypeArguments($,x.checkDefined($e($.expression,J,Yu)),void 0)}function Ye($){return!Fl($.body)}function Ot($,Pe){let yt=$.flags&33554432||$r($,64);if(yt&&!(y&&bf($)))return;let cn=ci(Pe)?yt?zn($.modifiers,Et,il):zn($.modifiers,J,il):zn($.modifiers,Le,il);return cn=pn(cn,$,Pe),yt?t.updatePropertyDeclaration($,Eo(cn,t.createModifiersFromModifierFlags(128)),x.checkDefined($e($.name,J,rc)),void 0,void 0,void 0):t.updatePropertyDeclaration($,cn,Ur($),void 0,void 0,$e($.initializer,J,ht))}function In($){if(Ye($))return t.updateConstructorDeclaration($,void 0,Il($.parameters,J,e),yi($.body,$))}function si($,Pe,yt,cn,yr,pr){let zr=cn[yr],Di=Pe[zr];if(Hr($,zn(Pe,J,Hi,yt,zr-yt)),wT(Di)){let Cr=[];si(Cr,Di.tryBlock.statements,0,cn,yr+1,pr);let qo=t.createNodeArray(Cr);at(qo,Di.tryBlock.statements),$.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),$e(Di.catchClause,J,X0),$e(Di.finallyBlock,J,Ko)))}else Hr($,zn(Pe,J,Hi,zr,1)),Hr($,pr);Hr($,zn(Pe,J,Hi,zr+1))}function yi($,Pe){let yt=Pe&&jr(Pe.parameters,Cr=>dp(Cr,Pe));if(!gt(yt))return nf($,J,e);let cn=[];o();let yr=t.copyPrologue($.statements,cn,!1,J),pr=z3($.statements,yr),zr=to(yt,$i);pr.length?si(cn,$.statements,yr,pr,0,zr):(Hr(cn,zr),Hr(cn,zn($.statements,J,Hi,yr))),cn=t.mergeLexicalEnvironment(cn,s());let Di=t.createBlock(at(t.createNodeArray(cn),$.statements),!0);return at(Di,$),xr(Di,$),Di}function $i($){let Pe=$.name;if(!Fe(Pe))return;let yt=ja(at(t.cloneNode(Pe),Pe),Pe.parent);lr(yt,3168);let cn=ja(at(t.cloneNode(Pe),Pe),Pe.parent);return lr(cn,3072),Jd(Tk(at(xr(t.createExpressionStatement(t.createAssignment(at(t.createPropertyAccessExpression(t.createThis(),yt),$.name),cn)),$),uE($,-1))))}function Io($,Pe){if(!($.transformFlags&1))return $;if(!Ye($))return;let yt=ci(Pe)?zn($.modifiers,J,il):zn($.modifiers,Le,il);return yt=pn(yt,$,Pe),t.updateMethodDeclaration($,yt,$.asteriskToken,Ur($),void 0,void 0,Il($.parameters,J,e),void 0,nf($.body,J,e))}function ua($){return!(Fl($.body)&&$r($,64))}function Ba($,Pe){if(!($.transformFlags&1))return $;if(!ua($))return;let yt=ci(Pe)?zn($.modifiers,J,il):zn($.modifiers,Le,il);return yt=pn(yt,$,Pe),t.updateGetAccessorDeclaration($,yt,Ur($),Il($.parameters,J,e),void 0,nf($.body,J,e)||t.createBlock([]))}function vn($,Pe){if(!($.transformFlags&1))return $;if(!ua($))return;let yt=ci(Pe)?zn($.modifiers,J,il):zn($.modifiers,Le,il);return yt=pn(yt,$,Pe),t.updateSetAccessorDeclaration($,yt,Ur($),Il($.parameters,J,e),nf($.body,J,e)||t.createBlock([]))}function kn($){if(!Ye($))return t.createNotEmittedStatement($);let Pe=t.updateFunctionDeclaration($,zn($.modifiers,be,Sa),$.asteriskToken,$.name,void 0,Il($.parameters,J,e),void 0,nf($.body,J,e)||t.createBlock([]));if(xn($)){let yt=[Pe];return Ws(yt,$),yt}return Pe}function Be($){return Ye($)?t.updateFunctionExpression($,zn($.modifiers,be,Sa),$.asteriskToken,$.name,void 0,Il($.parameters,J,e),void 0,nf($.body,J,e)||t.createBlock([])):t.createOmittedExpression()}function ct($){return t.updateArrowFunction($,zn($.modifiers,be,Sa),void 0,Il($.parameters,J,e),void 0,$.equalsGreaterThanToken,nf($.body,J,e))}function lt($){if(L0($))return;let Pe=t.updateParameterDeclaration($,zn($.modifiers,yt=>bd(yt)?J(yt):void 0,il),$.dotDotDotToken,x.checkDefined($e($.name,J,sT)),void 0,void 0,$e($.initializer,J,ht));return Pe!==$&&(ic(Pe,$),at(Pe,R_($)),Ra(Pe,R_($)),lr(Pe.name,64)),Pe}function Rt($){if(xn($)){let Pe=wN($.declarationList);return Pe.length===0?void 0:at(t.createExpressionStatement(t.inlineExpressions(mn(Pe,ae))),$)}else return Sn($,J,e)}function ae($){let Pe=$.name;return Qo(Pe)?UT($,J,e,0,!1,cd):at(t.createAssignment(mo(Pe),x.checkDefined($e($.initializer,J,ht))),$)}function ke($){let Pe=t.updateVariableDeclaration($,x.checkDefined($e($.name,J,sT)),void 0,void 0,$e($.initializer,J,ht));return $.type&&Xoe(Pe.name,$.type),Pe}function st($){let Pe=Yl($.expression,-7);if(cT(Pe)){let yt=$e($.expression,J,ht);return x.assert(yt),t.createPartiallyEmittedExpression(yt,$)}return Sn($,J,e)}function G($){let Pe=$e($.expression,J,ht);return x.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function et($){let Pe=$e($.expression,J,Yu);return x.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function Tt($){let Pe=$e($.expression,J,ht);return x.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function He($){return t.updateCallExpression($,x.checkDefined($e($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function ut($){return t.updateNewExpression($,x.checkDefined($e($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function Ft($){return t.updateTaggedTemplateExpression($,x.checkDefined($e($.tag,J,ht)),void 0,x.checkDefined($e($.template,J,EI)))}function hn($){return t.updateJsxSelfClosingElement($,x.checkDefined($e($.tagName,J,lN)),void 0,x.checkDefined($e($.attributes,J,q0)))}function dn($){return t.updateJsxOpeningElement($,x.checkDefined($e($.tagName,J,lN)),void 0,x.checkDefined($e($.attributes,J,q0)))}function un($){return!A0($)||B0(p)}function U($){if(!un($))return t.createNotEmittedStatement($);let Pe=[],yt=4,cn=Ne(Pe,$);cn&&(m!==4||j!==N)&&(yt|=1024);let yr=la($),pr=dd($),zr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(zr,t.createAssignment(zr,t.createObjectLiteralExpression()));if(xn($)){let qo=t.getLocalName($,!1,!0);Di=t.createAssignment(qo,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,yr)],void 0,Me($,pr)),void 0,[Di]));return xr(Cr,$),cn&&(_E(Cr,void 0),GI(Cr,void 0)),at(Cr,$),D_(Cr,yt),Pe.push(Cr),Pe}function Me($,Pe){let yt=w;w=Pe;let cn=[];i();let yr=mn($.members,Nt);return Jh(cn,s()),Hr(cn,yr),w=yt,t.createBlock(at(t.createNodeArray(cn),$.members),!0)}function Nt($){let Pe=Qn($,!1),yt=k($),cn=t.createAssignment(t.createElementAccessExpression(w,Pe),yt),yr=yt.kind===11?cn:t.createAssignment(t.createElementAccessExpression(w,cn),Pe);return at(t.createExpressionStatement(at(yr,$)),$)}function k($){let Pe=d.getConstantValue($);return Pe!==void 0?typeof Pe=="string"?t.createStringLiteral(Pe):Pe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Pe)):t.createNumericLiteral(Pe):(bs(),$.initializer?x.checkDefined($e($.initializer,J,ht)):t.createVoidZero())}function ie($){let Pe=Do($,ql);return Pe?yK(Pe,B0(p)):!0}function H($){K||(K=new Map);let Pe=We($);K.has(Pe)||K.set(Pe,$)}function ue($){if(K){let Pe=We($);return K.get(Pe)===$}return!0}function We($){return x.assertNode($.name,Fe),$.name.escapedText}function Ne($,Pe){let yt=t.createVariableDeclaration(t.getLocalName(Pe,!1,!0)),cn=j.kind===312?0:1,yr=t.createVariableStatement(zn(Pe.modifiers,be,Sa),t.createVariableDeclarationList([yt],cn));return xr(yt,Pe),_E(yt,void 0),GI(yt,void 0),xr(yr,Pe),H(Pe),ue(Pe)?(Pe.kind===266?Ra(yr.declarationList,Pe):Ra(yr,Pe),ic(yr,Pe),D_(yr,2048),$.push(yr),!0):!1}function It($){if(!ie($))return t.createNotEmittedStatement($);x.assertNode($.name,Fe,"A TypeScript namespace should have an Identifier name."),Ca();let Pe=[],yt=4,cn=Ne(Pe,$);cn&&(m!==4||j!==N)&&(yt|=1024);let yr=la($),pr=dd($),zr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(zr,t.createAssignment(zr,t.createObjectLiteralExpression()));if(xn($)){let qo=t.getLocalName($,!1,!0);Di=t.createAssignment(qo,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,yr)],void 0,Dt($,pr)),void 0,[Di]));return xr(Cr,$),cn&&(_E(Cr,void 0),GI(Cr,void 0)),at(Cr,$),D_(Cr,yt),Pe.push(Cr),Pe}function Dt($,Pe){let yt=w,cn=D,yr=K;w=Pe,D=$,K=void 0;let pr=[];i();let zr,Di;if($.body)if($.body.kind===268)ge($.body,qo=>Hr(pr,zn(qo.statements,he,Hi))),zr=$.body.statements,Di=$.body;else{let qo=It($.body);qo&&(To(qo)?Hr(pr,qo):pr.push(qo));let bl=Ut($).body;zr=uE(bl.statements,-1)}Jh(pr,s()),w=yt,D=cn,K=yr;let Cr=t.createBlock(at(t.createNodeArray(pr),zr),!0);return at(Cr,Di),(!$.body||$.body.kind!==268)&&lr(Cr,za(Cr)|3072),Cr}function Ut($){if($.body.kind===267)return Ut($.body)||$.body}function En($){if(!$.importClause)return $;if($.importClause.isTypeOnly)return;let Pe=$e($.importClause,wn,gh);return Pe||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration($,void 0,Pe,$.moduleSpecifier,$.attributes):void 0}function wn($){x.assert(!$.isTypeOnly);let Pe=de($)?$.name:void 0,yt=$e($.namedBindings,Bn,OV);return Pe||yt?t.updateImportClause($,!1,Pe,yt):void 0}function Bn($){if($.kind===274)return de($)?$:void 0;{let Pe=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=zn($.elements,gi,Qu);return Pe||gt(yt)?t.updateNamedImports($,yt):void 0}}function gi($){return!$.isTypeOnly&&de($)?$:void 0}function xi($){return p.verbatimModuleSyntax||d.isValueAliasDeclaration($)?Sn($,J,e):void 0}function er($){if($.isTypeOnly)return;if(!$.exportClause||yh($.exportClause))return $;let Pe=p.verbatimModuleSyntax||!!$.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=$e($.exportClause,cn=>Pi(cn,Pe),AV);return yt?t.updateExportDeclaration($,void 0,$.isTypeOnly,yt,$.moduleSpecifier,$.attributes):void 0}function Fr($,Pe){let yt=zn($.elements,Ri,Kd);return Pe||gt(yt)?t.updateNamedExports($,yt):void 0}function go($){return t.updateNamespaceExport($,x.checkDefined($e($.name,J,Fe)))}function Pi($,Pe){return yh($)?go($):Fr($,Pe)}function Ri($){return!$.isTypeOnly&&(p.verbatimModuleSyntax||d.isValueAliasDeclaration($))?$:void 0}function Kr($){return de($)||!oc(N)&&d.isTopLevelValueImportEqualsWithEntityName($)}function xo($){if($.isTypeOnly)return;if(aE($)){let yt=de($);return!yt&&p.importsNotUsedAsValues===1?xr(at(t.createImportDeclaration(void 0,void 0,$.moduleReference.expression,void 0),$),$):yt?Sn($,J,e):void 0}if(!Kr($))return;let Pe=Gk(t,$.moduleReference);return lr(Pe,7168),$l($)||!xn($)?xr(at(t.createVariableStatement(zn($.modifiers,be,Sa),t.createVariableDeclarationList([xr(t.createVariableDeclaration($.name,void 0,void 0,Pe),$)])),$),$):xr(ml($.name,Pe,$),$)}function xn($){return D!==void 0&&$r($,32)}function Ls($){return D===void 0&&$r($,32)}function $l($){return Ls($)&&!$r($,2048)}function Mo($){return Ls($)&&$r($,2048)}function ss($){let Pe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(w,$,!1,!0),t.getLocalName($));Ra(Pe,Ef($.name?$.name.pos:$.pos,$.end));let yt=t.createExpressionStatement(Pe);return Ra(yt,Ef(-1,$.end)),yt}function Ws($,Pe){$.push(ss(Pe))}function ml($,Pe,yt){return at(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(w,$,!1,!0),Pe)),yt)}function cd($,Pe,yt){return at(t.createAssignment(mo($),Pe),yt)}function mo($){return t.getNamespaceMemberName(w,$,!1,!0)}function la($){let Pe=t.getGeneratedNameForNode($);return Ra(Pe,$.name),Pe}function dd($){return t.getGeneratedNameForNode($)}function bs(){B&8||(B|=8,e.enableSubstitution(80))}function Ca(){B&2||(B|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function ul($){return Nl($).kind===267}function Nf($){return Nl($).kind===266}function ac($,Pe,yt){let cn=ce,yr=N;Yi(Pe)&&(N=Pe),B&2&&ul(Pe)&&(ce|=2),B&8&&Nf(Pe)&&(ce|=8),S($,Pe,yt),ce=cn,N=yr}function xl($,Pe){return Pe=A($,Pe),$===1?Lo(Pe):Zu(Pe)?al(Pe):Pe}function al($){if(B&2){let Pe=$.name,yt=Fs(Pe);if(yt){if($.objectAssignmentInitializer){let cn=t.createAssignment(yt,$.objectAssignmentInitializer);return at(t.createPropertyAssignment(Pe,cn),$)}return at(t.createPropertyAssignment(Pe,yt),$)}}return $}function Lo($){switch($.kind){case 80:return tn($);case 211:return nd($);case 212:return ud($)}return $}function tn($){return Fs($)||$}function Fs($){if(B&ce&&!rl($)&&!Bg($)){let Pe=d.getReferencedExportContainer($,!1);if(Pe&&Pe.kind!==312&&(ce&2&&Pe.kind===267||ce&8&&Pe.kind===266))return at(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Pe),$),$)}}function nd($){return Rs($)}function ud($){return Rs($)}function Ep($){return $.replace(/\*\//g,"*_/")}function Rs($){let Pe=Ac($);if(Pe!==void 0){Joe($,Pe);let yt=typeof Pe=="string"?t.createStringLiteral(Pe):Pe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Pe)):t.createNumericLiteral(Pe);if(!p.removeComments){let cn=Nl($,Ns);n4(yt,3,` ${Ep(uc(cn))} `)}return yt}return $}function Ac($){if(!em(p))return kr($)||Js($)?d.getConstantValue($):void 0}function de($){return p.verbatimModuleSyntax||ir($)||(p.preserveValueImports?d.isValueAliasDeclaration($):d.isReferencedAliasDeclaration($))}}var wIe,C9e=bt({"src/compiler/transformers/ts.ts"(){"use strict";ea(),wIe=!1}});function ple(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:d}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),m=ns(h),y=tP(h),E=!!h.experimentalDecorators,S=!y,A=y&&m<9,N=S||A,D=m<9,w=m<99?-1:y?0:3,j=m<9,K=j&&m>=2,Y=N||D||w===-1,B=e.onSubstituteNode;e.onSubstituteNode=nd;let ce=e.onEmitNode;e.onEmitNode=Fs;let z=!1,Z,me,ge,q,J,re=new Map,pe=new Set,xe,fe,ne=!1,he=!1;return Im(e,Ce);function Ce(de){if(de.isDeclarationFile||(J=void 0,z=!!(ym(de)&32),!Y&&!z))return de;let $=Sn(de,ve,e);return Fg($,e.readEmitHelpers()),$}function Ge(de){switch(de.kind){case 129:return Ot()?void 0:de;default:return ri(de,Sa)}}function ve(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return x.fail("Use `modifierVisitor` instead.");case 263:return dn(de);case 231:return U(de);case 175:case 172:return x.fail("Use `classElementVisitor` instead.");case 303:return Je(de);case 243:return pt(de);case 260:return Zt(de);case 169:return en(de);case 208:return Dn(de);case 277:return Kn(de);case 81:return Wt(de);case 211:return ua(de);case 212:return Ba(de);case 224:case 225:return vn(de,!1);case 226:return st(de,!1);case 217:return et(de,!1);case 213:return lt(de);case 244:return Be(de);case 215:return Rt(de);case 248:return kn(de);case 110:return k(de);case 262:case 218:return Li(void 0,Ae,de);case 176:case 174:case 177:case 178:return Li(de,Ae,de);default:return Ae(de)}}function Ae(de){return Sn(de,ve,e)}function De(de){switch(de.kind){case 224:case 225:return vn(de,!0);case 226:return st(de,!0);case 361:return G(de,!0);case 217:return et(de,!0);default:return ve(de)}}function Le(de){switch(de.kind){case 298:return Sn(de,Le,e);case 233:return Ft(de);default:return ve(de)}}function Et(de){switch(de.kind){case 210:case 209:return tn(de);default:return ve(de)}}function be(de){switch(de.kind){case 176:return Li(de,Kt,de);case 177:case 178:case 174:return Li(de,uo,de);case 172:return Li(de,In,de);case 175:return Li(de,Nt,de);case 167:return Xt(de);case 240:return de;default:return il(de)?Ge(de):ve(de)}}function ze(de){switch(de.kind){case 167:return Xt(de);default:return ve(de)}}function tt(de){switch(de.kind){case 172:return Ye(de);case 177:case 178:return be(de);default:x.assertMissingNode(de,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Wt(de){return!D||Hi(de.parent)?de:xr(t.createIdentifier(""),de)}function _t(de){let $=la(de.left);if($){let Pe=$e(de.right,ve,ht);return xr(r().createClassPrivateFieldInHelper($.brandCheckIdentifier,Pe),de)}return Sn(de,ve,e)}function Je(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function pt(de){let $=q;q=[];let Pe=Sn(de,ve,e),yt=gt(q)?[Pe,...q]:Pe;return q=$,yt}function Zt(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function en(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function Dn(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function Kn(de){return pp(de,ke)&&(de=yp(e,de,!0,de.isExportEquals?"":"default")),Sn(de,ve,e)}function pn(de){return gt(ge)&&(Ou(de)?(ge.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(ge))):(ge.push(de),de=t.inlineExpressions(ge)),ge=void 0),de}function Xt(de){let $=$e(de.expression,ve,ht);return t.updateComputedPropertyName(de,pn($))}function Kt(de){return xe?ue(de,xe):Ae(de)}function hi(de){return!!(D||pc(de)&&ym(de)&32)}function uo(de){if(x.assert(!bf(de)),!ou(de)||!hi(de))return Sn(de,be,e);let $=la(de.name);if(x.assert($,"Undeclared private name for property declaration."),!$.isValid)return de;let Pe=So(de);Pe&&xo().push(t.createAssignment(Pe,t.createFunctionExpression(jr(de.modifiers,yt=>Sa(yt)&&!qI(yt)&&!lae(yt)),de.asteriskToken,Pe,void 0,Il(de.parameters,ve,e),void 0,nf(de.body,ve,e))))}function Li(de,$,Pe){if(de!==fe){let yt=fe;fe=de;let cn=$(Pe);return fe=yt,cn}return $(Pe)}function So(de){x.assert(Ki(de.name));let $=la(de.name);if(x.assert($,"Undeclared private name for property declaration."),$.kind==="m")return $.methodName;if($.kind==="a"){if(Pv(de))return $.getterName;if(Cy(de))return $.setterName}}function Qn(){let de=Ri(),$=de.classThis??de.classConstructor??xe?.name;return x.checkDefined($)}function Ur(de){let $=C_(de),Pe=Wy(de),yt=de.name,cn=yt,yr=yt;if(Ya(yt)&&!L_(yt.expression)){let Hc=t3(yt);if(Hc)cn=t.updateComputedPropertyName(yt,$e(yt.expression,ve,ht)),yr=t.updateComputedPropertyName(yt,Hc.left);else{let zs=t.createTempVariable(i);Ra(zs,yt.expression);let hc=$e(yt.expression,ve,ht),ys=t.createAssignment(zs,hc);Ra(ys,yt.expression),cn=t.updateComputedPropertyName(yt,ys),yr=t.updateComputedPropertyName(yt,zs)}}let pr=zn(de.modifiers,Ge,Sa),zr=IH(t,de,pr,de.initializer);xr(zr,de),lr(zr,3072),Ra(zr,Pe);let Di=ra(de)?Qn():t.createThis(),Cr=jae(t,de,pr,cn,Di);xr(Cr,de),ic(Cr,$),Ra(Cr,Pe);let qo=t.createModifiersFromModifierFlags(x_(pr)),bl=Uae(t,de,qo,yr,Di);return xr(bl,de),lr(bl,3072),Ra(bl,Pe),vw([zr,Cr,bl],tt,$c)}function Er(de){if(hi(de)){let $=la(de.name);if(x.assert($,"Undeclared private name for property declaration."),!$.isValid)return de;if($.isStatic&&!D){let Pe=Dt(de,t.createThis());if(Pe)return t.createClassStaticBlockDeclaration(t.createBlock([Pe],!0))}return}return S&&!ra(de)&&J?.data&&J.data.facts&16?t.updatePropertyDeclaration(de,zn(de.modifiers,ve,il),de.name,void 0,void 0,void 0):(pp(de,ke)&&(de=yp(e,de)),t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Sa),$e(de.name,ze,rc),void 0,void 0,$e(de.initializer,ve,ht)))}function on(de){if(N&&!Mu(de)){let $=Fr(de.name,!!de.initializer||y);if($&&xo().push(...Hae($)),ra(de)&&!D){let Pe=Dt(de,t.createThis());if(Pe){let yt=t.createClassStaticBlockDeclaration(t.createBlock([Pe]));return xr(yt,de),ic(yt,de),ic(Pe,{pos:-1,end:-1}),_E(Pe,void 0),GI(Pe,void 0),yt}}return}return t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Sa),$e(de.name,ze,rc),void 0,void 0,$e(de.initializer,ve,ht))}function Ye(de){return x.assert(!bf(de),"Decorators should already have been transformed and elided."),ou(de)?Er(de):on(de)}function Ot(){return w===-1||w===3&&!!J?.data&&!!(J.data.facts&16)}function In(de){return Mu(de)&&(Ot()||pc(de)&&ym(de)&32)?Ur(de):Ye(de)}function si(){return!!fe&&pc(fe)&&Cv(fe)&&Mu(Nl(fe))}function yi(de){if(si()){let $=Yl(de);$.kind===110&&pe.add($)}}function $i(de,$){return $=$e($,ve,ht),yi($),Io(de,$)}function Io(de,$){switch(ic($,uE($,-1)),de.kind){case"a":return r().createClassPrivateFieldGetHelper($,de.brandCheckIdentifier,de.kind,de.getterName);case"m":return r().createClassPrivateFieldGetHelper($,de.brandCheckIdentifier,de.kind,de.methodName);case"f":return r().createClassPrivateFieldGetHelper($,de.brandCheckIdentifier,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return x.fail("Access helpers should not be created for untransformed private elements");default:x.assertNever(de,"Unknown private element type")}}function ua(de){if(Ki(de.name)){let $=la(de.name);if($)return at(xr($i($,de.expression),de),de)}if(K&&fe&&ku(de)&&Fe(de.name)&&wP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=t.createReflectGetCall(Pe,t.createStringLiteralFromNode(de.name),$);return xr(cn,de.expression),at(cn,de.expression),cn}}return Sn(de,ve,e)}function Ba(de){if(K&&fe&&ku(de)&&wP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=t.createReflectGetCall(Pe,$e(de.argumentExpression,ve,ht),$);return xr(cn,de.expression),at(cn,de.expression),cn}}return Sn(de,ve,e)}function vn(de,$){if(de.operator===46||de.operator===47){let Pe=fs(de.operand);if(Ox(Pe)){let yt;if(yt=la(Pe.name)){let cn=$e(Pe.expression,ve,ht);yi(cn);let{readExpression:yr,initializeExpression:pr}=ct(cn),zr=$i(yt,yr),Di=qv(de)||$?void 0:t.createTempVariable(i);return zr=q4(t,de,zr,i,Di),zr=Tt(yt,pr||yr,zr,64),xr(zr,de),at(zr,de),Di&&(zr=t.createComma(zr,Di),at(zr,de)),zr}}else if(K&&fe&&ku(Pe)&&wP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:yr}=J.data;if(yr&1){let pr=er(Pe);return qv(de)?t.updatePrefixUnaryExpression(de,pr):t.updatePostfixUnaryExpression(de,pr)}if(yt&&cn){let pr,zr;if(kr(Pe)?Fe(Pe.name)&&(zr=pr=t.createStringLiteralFromNode(Pe.name)):L_(Pe.argumentExpression)?zr=pr=Pe.argumentExpression:(zr=t.createTempVariable(i),pr=t.createAssignment(zr,$e(Pe.argumentExpression,ve,ht))),pr&&zr){let Di=t.createReflectGetCall(cn,zr,yt);at(Di,Pe);let Cr=$?void 0:t.createTempVariable(i);return Di=q4(t,de,Di,i,Cr),Di=t.createReflectSetCall(cn,pr,Di,yt),xr(Di,de),at(Di,de),Cr&&(Di=t.createComma(Di,Cr),at(Di,de)),Di}}}}return Sn(de,ve,e)}function kn(de){return t.updateForStatement(de,$e(de.initializer,De,vf),$e(de.condition,ve,ht),$e(de.incrementor,De,ht),Tu(de.statement,ve,e))}function Be(de){return t.updateExpressionStatement(de,$e(de.expression,De,ht))}function ct(de){let $=Ks(de)?de:t.cloneNode(de);if(de.kind===110&&pe.has(de)&&pe.add($),L_(de))return{readExpression:$,initializeExpression:void 0};let Pe=t.createTempVariable(i),yt=t.createAssignment(Pe,$);return{readExpression:Pe,initializeExpression:yt}}function lt(de){var $;if(Ox(de.expression)&&la(de.expression.name)){let{thisArg:Pe,target:yt}=t.createCallBinding(de.expression,i,m);return oT(de)?t.updateCallChain(de,t.createPropertyAccessChain($e(yt,ve,ht),de.questionDotToken,"call"),void 0,void 0,[$e(Pe,ve,ht),...zn(de.arguments,ve,ht)]):t.updateCallExpression(de,t.createPropertyAccessExpression($e(yt,ve,ht),"call"),void 0,[$e(Pe,ve,ht),...zn(de.arguments,ve,ht)])}if(K&&fe&&ku(de.expression)&&wP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionCallCall($e(de.expression,ve,ht),J.data.classConstructor,zn(de.arguments,ve,ht));return xr(Pe,de),at(Pe,de),Pe}return Sn(de,ve,e)}function Rt(de){var $;if(Ox(de.tag)&&la(de.tag.name)){let{thisArg:Pe,target:yt}=t.createCallBinding(de.tag,i,m);return t.updateTaggedTemplateExpression(de,t.createCallExpression(t.createPropertyAccessExpression($e(yt,ve,ht),"bind"),void 0,[$e(Pe,ve,ht)]),void 0,$e(de.template,ve,EI))}if(K&&fe&&ku(de.tag)&&wP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionBindCall($e(de.tag,ve,ht),J.data.classConstructor,[]);return xr(Pe,de),at(Pe,de),t.updateTaggedTemplateExpression(de,Pe,void 0,$e(de.template,ve,EI))}return Sn(de,ve,e)}function ae(de){if(J&&re.set(Nl(de),J),D){if(LP(de)){let yt=$e(de.body.statements[0].expression,ve,ht);return Mc(yt,!0)&&yt.left===yt.right?void 0:yt}if(_1(de))return $e(de.body.statements[0].expression,ve,ht);s();let $=Li(de,yt=>zn(yt,ve,Hi),de.body.statements);$=t.mergeLexicalEnvironment($,o());let Pe=t.createImmediatelyInvokedArrowFunction($);return xr(fs(Pe.expression),de),D_(fs(Pe.expression),4),xr(Pe,de),at(Pe,de),Pe}}function ke(de){if(Zc(de)&&!de.name){let $=B3(de);return gt($,_1)?!1:(D||!!ym(de))&>($,yt=>Al(yt)||ou(yt)||N&&Ew(yt))}return!1}function st(de,$){if(ky(de)){let Pe=ge;ge=void 0,de=t.updateBinaryExpression(de,$e(de.left,Et,ht),de.operatorToken,$e(de.right,ve,ht));let yt=gt(ge)?t.inlineExpressions(SL([...ge,de])):de;return ge=Pe,yt}if(Mc(de)){pp(de,ke)&&(de=yp(e,de),x.assertNode(de,Mc));let Pe=Yl(de.left,9);if(Ox(Pe)){let yt=la(Pe.name);if(yt)return at(xr(Tt(yt,Pe.expression,de.right,de.operatorToken.kind),de),de)}else if(K&&fe&&ku(de.left)&&wP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:yr}=J.data;if(yr&1)return t.updateBinaryExpression(de,er(de.left),de.operatorToken,$e(de.right,ve,ht));if(yt&&cn){let pr=Js(de.left)?$e(de.left.argumentExpression,ve,ht):Fe(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(pr){let zr=$e(de.right,ve,ht);if(NP(de.operatorToken.kind)){let Cr=pr;L_(pr)||(Cr=t.createTempVariable(i),pr=t.createAssignment(Cr,pr));let qo=t.createReflectGetCall(cn,Cr,yt);xr(qo,de.left),at(qo,de.left),zr=t.createBinaryExpression(qo,PP(de.operatorToken.kind),zr),at(zr,de)}let Di=$?void 0:t.createTempVariable(i);return Di&&(zr=t.createAssignment(Di,zr),at(Di,de)),zr=t.createReflectSetCall(cn,pr,zr,yt),xr(zr,de),at(zr,de),Di&&(zr=t.createComma(zr,Di),at(zr,de)),zr}}}}return k9e(de)?_t(de):Sn(de,ve,e)}function G(de,$){let Pe=$?bw(de.elements,De):bw(de.elements,ve,De);return t.updateCommaListExpression(de,Pe)}function et(de,$){let Pe=$?De:ve,yt=$e(de.expression,Pe,ht);return t.updateParenthesizedExpression(de,yt)}function Tt(de,$,Pe,yt){if($=$e($,ve,ht),Pe=$e(Pe,ve,ht),yi($),NP(yt)){let{readExpression:cn,initializeExpression:yr}=ct($);$=yr||cn,Pe=t.createBinaryExpression(Io(de,cn),PP(yt),Pe)}switch(ic($,uE($,-1)),de.kind){case"a":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Pe,de.kind,de.setterName);case"m":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Pe,de.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Pe,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return x.fail("Access helpers should not be created for untransformed private elements");default:x.assertNever(de,"Unknown private element type")}}function He(de){return jr(de.members,Qse)}function ut(de){var $;let Pe=0,yt=Nl(de);Sc(yt)&&Ny(E,yt)&&(Pe|=1),D&&(wK(de)||V3(de))&&(Pe|=2);let cn=!1,yr=!1,pr=!1,zr=!1;for(let Cr of de.members)ra(Cr)?((Cr.name&&(Ki(Cr.name)||Mu(Cr))&&D||Mu(Cr)&&w===-1&&!de.name&&!(($=de.emitNode)!=null&&$.classThis))&&(Pe|=2),(Uo(Cr)||Al(Cr))&&(j&&Cr.transformFlags&16384&&(Pe|=8,Pe&1||(Pe|=2)),K&&Cr.transformFlags&134217728&&(Pe&1||(Pe|=6)))):w0(Nl(Cr))||(Mu(Cr)?(zr=!0,pr||(pr=ou(Cr))):ou(Cr)?(pr=!0,p.getNodeCheckFlags(Cr)&262144&&(Pe|=2)):Uo(Cr)&&(cn=!0,yr||(yr=!!Cr.initializer)));return(A&&cn||S&&yr||D&&pr||D&&zr&&w===-1)&&(Pe|=16),Pe}function Ft(de){var $;if(((($=J?.data)==null?void 0:$.facts)||0)&4){let yt=t.createTempVariable(i,!0);return Ri().superClassReference=yt,t.updateExpressionWithTypeArguments(de,t.createAssignment(yt,$e(de.expression,ve,ht)),void 0)}return Sn(de,ve,e)}function hn(de,$){var Pe;let yt=xe,cn=ge,yr=J;xe=de,ge=void 0,go();let pr=ym(de)&32;if(D||pr){let Cr=Po(de);if(Cr&&Fe(Cr))Kr().data.className=Cr;else if((Pe=de.emitNode)!=null&&Pe.assignedName&&Da(de.emitNode.assignedName)){if(de.emitNode.assignedName.textSourceNode&&Fe(de.emitNode.assignedName.textSourceNode))Kr().data.className=de.emitNode.assignedName.textSourceNode;else if(Yp(de.emitNode.assignedName.text,m)){let qo=t.createIdentifier(de.emitNode.assignedName.text);Kr().data.className=qo}}}if(D){let Cr=He(de);gt(Cr)&&(Kr().data.weakSetName=cd("instances",Cr[0].name))}let zr=ut(de);zr&&(Ri().facts=zr),zr&8&&gi();let Di=$(de,zr);return Pi(),x.assert(J===yr),xe=yt,ge=cn,Di}function dn(de){return hn(de,un)}function un(de,$){var Pe,yt;let cn;if($&2)if(D&&((Pe=de.emitNode)!=null&&Pe.classThis))Ri().classConstructor=de.emitNode.classThis,cn=t.createAssignment(de.emitNode.classThis,t.getInternalName(de));else{let ys=t.createTempVariable(i,!0);Ri().classConstructor=t.cloneNode(ys),cn=t.createAssignment(ys,t.getInternalName(de))}(yt=de.emitNode)!=null&&yt.classThis&&(Ri().classThis=de.emitNode.classThis);let yr=p.getNodeCheckFlags(de)&262144,pr=$r(de,32),zr=$r(de,2048),Di=zn(de.modifiers,Ge,Sa),Cr=zn(de.heritageClauses,Le,Zp),{members:qo,prologue:bl}=ie(de),Hc=[];if(cn&&xo().unshift(cn),gt(ge)&&Hc.push(t.createExpressionStatement(t.inlineExpressions(ge))),S||D||ym(de)&32){let ys=B3(de);gt(ys)&&It(Hc,ys,t.getInternalName(de))}Hc.length>0&&pr&&zr&&(Di=zn(Di,ys=>Kk(ys)?void 0:ys,Sa),Hc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));let zs=Ri().classConstructor;yr&&zs&&(Bn(),me[wd(de)]=zs);let hc=t.updateClassDeclaration(de,Di,de.name,void 0,Cr,qo);return Hc.unshift(hc),bl&&Hc.unshift(t.createExpressionStatement(bl)),Hc}function U(de){return hn(de,Me)}function Me(de,$){var Pe,yt,cn;let yr=!!($&1),pr=B3(de),zr=p.getNodeCheckFlags(de),Di=zr&262144,Cr;function qo(){var Oc;if(D&&((Oc=de.emitNode)!=null&&Oc.classThis))return Ri().classConstructor=de.emitNode.classThis;let im=zr&32768,fu=t.createTempVariable(im?d:i,!0);return Ri().classConstructor=t.cloneNode(fu),fu}(Pe=de.emitNode)!=null&&Pe.classThis&&(Ri().classThis=de.emitNode.classThis),$&2&&(Cr??(Cr=qo()));let bl=zn(de.modifiers,Ge,Sa),Hc=zn(de.heritageClauses,Le,Zp),{members:zs,prologue:hc}=ie(de),ys=t.updateClassExpression(de,bl,de.name,void 0,Hc,zs),Kc=[];if(hc&&Kc.push(hc),(D||ym(de)&32)&>(pr,Oc=>Al(Oc)||ou(Oc)||N&&Ew(Oc))||gt(ge))if(yr)x.assertIsDefined(q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),gt(ge)&&Hr(q,mn(ge,t.createExpressionStatement)),gt(pr)&&It(q,pr,((yt=de.emitNode)==null?void 0:yt.classThis)??t.getInternalName(de)),Cr?Kc.push(t.createAssignment(Cr,ys)):D&&((cn=de.emitNode)!=null&&cn.classThis)?Kc.push(t.createAssignment(de.emitNode.classThis,ys)):Kc.push(ys);else{if(Cr??(Cr=qo()),Di){Bn();let Oc=t.cloneNode(Cr);Oc.emitNode.autoGenerate.flags&=-9,me[wd(de)]=Oc}Kc.push(t.createAssignment(Cr,ys)),Hr(Kc,ge),Hr(Kc,Ut(pr,Cr)),Kc.push(t.cloneNode(Cr))}else Kc.push(ys);return Kc.length>1&&(D_(ys,131072),Kc.forEach(Jd)),t.inlineExpressions(Kc)}function Nt(de){if(!D)return Sn(de,ve,e)}function k(de){if(j&&fe&&Al(fe)&&J?.data){let{classThis:$,classConstructor:Pe}=J.data;return $??Pe??de}return de}function ie(de){let $=!!(ym(de)&32);if(D||z){for(let pr of de.members)if(ou(pr))if(hi(pr))ml(pr,pr.name,xn);else{let zr=Kr();jT(zr,pr.name,{kind:"untransformed"})}if(D&>(He(de))&&H(),Ot()){for(let pr of de.members)if(Mu(pr)){let zr=t.getGeneratedPrivateNameForNode(pr.name,void 0,"_accessor_storage");if(D||$&&pc(pr))ml(pr,zr,Ls);else{let Di=Kr();jT(Di,zr,{kind:"untransformed"})}}}}let Pe=zn(de.members,be,$c),yt;gt(Pe,Pl)||(yt=ue(void 0,de));let cn,yr;if(!D&>(ge)){let pr=t.createExpressionStatement(t.inlineExpressions(ge));if(pr.transformFlags&134234112){let Di=t.createTempVariable(i),Cr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([pr]));cn=t.createAssignment(Di,Cr),pr=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}let zr=t.createBlock([pr]);yr=t.createClassStaticBlockDeclaration(zr),ge=void 0}if(yt||yr){let pr,zr=Vr(Pe,LP),Di=Vr(Pe,_1);pr=Tn(pr,zr),pr=Tn(pr,Di),pr=Tn(pr,yt),pr=Tn(pr,yr);let Cr=zr||Di?jr(Pe,qo=>qo!==zr&&qo!==Di):Pe;pr=Hr(pr,Cr),Pe=at(t.createNodeArray(pr),de.members)}return{members:Pe,prologue:cn}}function H(){let{weakSetName:de}=Kr().data;x.assert(de,"weakSetName should be set in private identifier environment"),xo().push(t.createAssignment(de,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function ue(de,$){if(de=$e(de,ve,Pl),!J?.data||!(J.data.facts&16))return de;let Pe=S_($),yt=!!(Pe&&Yl(Pe.expression).kind!==106),cn=Il(de?de.parameters:void 0,ve,e),yr=Ne($,de,yt);return yr?de?(x.assert(cn),t.updateConstructorDeclaration(de,void 0,cn,yr)):Jd(xr(at(t.createConstructorDeclaration(void 0,cn??[],yr),de||$),de)):de}function We(de,$,Pe,yt,cn,yr,pr){let zr=yt[cn],Di=$[zr];if(Hr(de,zn($,ve,Hi,Pe,zr-Pe)),Pe=zr+1,wT(Di)){let Cr=[];We(Cr,Di.tryBlock.statements,0,yt,cn+1,yr,pr);let qo=t.createNodeArray(Cr);at(qo,Di.tryBlock.statements),de.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),$e(Di.catchClause,ve,X0),$e(Di.finallyBlock,ve,Ko)))}else{for(Hr(de,zn($,ve,Hi,zr,1));Pe<$.length;){let Cr=$[Pe];if(dp(Nl(Cr),pr))Pe++;else break}Hr(de,yr)}Hr(de,zn($,ve,Hi,Pe))}function Ne(de,$,Pe){let yt=NK(de,!1,!1),cn=yt;y||(cn=jr(cn,zs=>!!zs.initializer||Ki(zs.name)||I_(zs)));let yr=He(de),pr=gt(cn)||gt(yr);if(!$&&!pr)return nf(void 0,ve,e);l();let zr=!$&&Pe,Di=0,Cr=[],qo=[],bl=t.createThis();if(xi(qo,yr,bl),$){let zs=jr(yt,ys=>dp(Nl(ys),$)),hc=jr(cn,ys=>!dp(Nl(ys),$));It(qo,zs,bl),It(qo,hc,bl)}else It(qo,cn,bl);if($?.body){Di=t.copyPrologue($.body.statements,Cr,!1,ve);let zs=z3($.body.statements,Di);if(zs.length)We(Cr,$.body.statements,Di,zs,0,qo,$);else{for(;Di<$.body.statements.length;){let hc=$.body.statements[Di];if(dp(Nl(hc),$))Di++;else break}Hr(Cr,qo),Hr(Cr,zn($.body.statements,ve,Hi,Di))}}else zr&&Cr.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),Hr(Cr,qo);if(Cr=t.mergeLexicalEnvironment(Cr,o()),Cr.length===0&&!$)return;let Hc=$?.body&&$.body.statements.length>=Cr.length?$.body.multiLine??Cr.length>0:Cr.length>0;return at(t.createBlock(at(t.createNodeArray(Cr),$?$.body.statements:de.members),Hc),$?$.body:void 0)}function It(de,$,Pe){for(let yt of $){if(ra(yt)&&!D)continue;let cn=Dt(yt,Pe);cn&&de.push(cn)}}function Dt(de,$){let Pe=Al(de)?Li(de,ae,de):En(de,$);if(!Pe)return;let yt=t.createExpressionStatement(Pe);xr(yt,de),D_(yt,za(de)&3072),ic(yt,de);let cn=Nl(de);return Ao(cn)?(Ra(yt,cn),Tk(yt)):Ra(yt,R_(de)),_E(Pe,void 0),GI(Pe,void 0),I_(cn)&&D_(yt,3072),yt}function Ut(de,$){let Pe=[];for(let yt of de){let cn=Al(yt)?Li(yt,ae,yt):Li(yt,()=>En(yt,$),void 0);cn&&(Jd(cn),xr(cn,yt),D_(cn,za(yt)&3072),Ra(cn,R_(yt)),ic(cn,yt),Pe.push(cn))}return Pe}function En(de,$){var Pe;let yt=fe,cn=wn(de,$);return cn&&pc(de)&&((Pe=J?.data)!=null&&Pe.facts)&&(xr(cn,de),D_(cn,4),Ra(cn,Wy(de.name)),re.set(Nl(de),J)),fe=yt,cn}function wn(de,$){let Pe=!y;pp(de,ke)&&(de=yp(e,de));let yt=I_(de)?t.getGeneratedPrivateNameForNode(de.name):Ya(de.name)&&!L_(de.name.expression)?t.updateComputedPropertyName(de.name,t.getGeneratedNameForNode(de.name)):de.name;if(pc(de)&&(fe=de),Ki(yt)&&hi(de)){let pr=la(yt);if(pr)return pr.kind==="f"?pr.isStatic?N9e(t,pr.variableName,$e(de.initializer,ve,ht)):P9e(t,$,$e(de.initializer,ve,ht),pr.brandCheckIdentifier):void 0;x.fail("Undeclared private name for property declaration.")}if((Ki(yt)||pc(de))&&!de.initializer)return;let cn=Nl(de);if($r(cn,64))return;let yr=$e(de.initializer,ve,ht);if(dp(cn,cn.parent)&&Fe(yt)){let pr=t.cloneNode(yt);yr?(Ou(yr)&&Vk(yr.expression)&&iP(yr.expression.left,"___runInitializers")&&e1(yr.expression.right)&&mp(yr.expression.right.expression)&&(yr=yr.expression.left),yr=t.inlineExpressions([yr,pr])):yr=pr,lr(yt,3168),Ra(pr,cn.name),lr(pr,3072)}else yr??(yr=t.createVoidZero());if(Pe||Ki(yt)){let pr=BT(t,$,yt,yt);return D_(pr,1024),t.createAssignment(pr,yr)}else{let pr=Ya(yt)?yt.expression:Fe(yt)?t.createStringLiteral(Vi(yt.escapedText)):yt,zr=t.createPropertyDescriptor({value:yr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall($,pr,zr)}}function Bn(){Z&1||(Z|=1,e.enableSubstitution(80),me=[])}function gi(){Z&2||(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 xi(de,$,Pe){if(!D||!gt($))return;let{weakSetName:yt}=Kr().data;x.assert(yt,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(M9e(t,Pe,yt)))}function er(de){return kr(de)?t.updatePropertyAccessExpression(de,t.createVoidZero(),de.name):t.updateElementAccessExpression(de,t.createVoidZero(),$e(de.argumentExpression,ve,ht))}function Fr(de,$){if(Ya(de)){let Pe=t3(de),yt=$e(de.expression,ve,ht),cn=gm(yt),yr=L_(cn);if(!(!!Pe||Mc(cn)&&rl(cn.left))&&!yr&&$){let zr=t.getGeneratedNameForNode(de);return p.getNodeCheckFlags(de)&32768?d(zr):i(zr),t.createAssignment(zr,yt)}return yr||Fe(cn)?void 0:yt}}function go(){J={previous:J,data:void 0}}function Pi(){J=J?.previous}function Ri(){return x.assert(J),J.data??(J.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Kr(){return x.assert(J),J.privateEnv??(J.privateEnv=tle({className:void 0,weakSetName:void 0}))}function xo(){return ge??(ge=[])}function xn(de,$,Pe,yt,cn,yr,pr){Mu(de)?Ws(de,$,Pe,yt,cn,yr,pr):Uo(de)?Ls(de,$,Pe,yt,cn,yr,pr):Ul(de)?$l(de,$,Pe,yt,cn,yr,pr):Qp(de)?Mo(de,$,Pe,yt,cn,yr,pr):hp(de)&&ss(de,$,Pe,yt,cn,yr,pr)}function Ls(de,$,Pe,yt,cn,yr,pr){if(cn){let zr=x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"),Di=mo($);jT(yt,$,{kind:"f",isStatic:!0,brandCheckIdentifier:zr,variableName:Di,isValid:yr})}else{let zr=mo($);jT(yt,$,{kind:"f",isStatic:!1,brandCheckIdentifier:zr,isValid:yr}),xo().push(t.createAssignment(zr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function $l(de,$,Pe,yt,cn,yr,pr){let zr=mo($),Di=cn?x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");jT(yt,$,{kind:"m",methodName:zr,brandCheckIdentifier:Di,isStatic:cn,isValid:yr})}function Mo(de,$,Pe,yt,cn,yr,pr){let zr=mo($,"_get"),Di=cn?x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");pr?.kind==="a"&&pr.isStatic===cn&&!pr.getterName?pr.getterName=zr:jT(yt,$,{kind:"a",getterName:zr,setterName:void 0,brandCheckIdentifier:Di,isStatic:cn,isValid:yr})}function ss(de,$,Pe,yt,cn,yr,pr){let zr=mo($,"_set"),Di=cn?x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");pr?.kind==="a"&&pr.isStatic===cn&&!pr.setterName?pr.setterName=zr:jT(yt,$,{kind:"a",getterName:void 0,setterName:zr,brandCheckIdentifier:Di,isStatic:cn,isValid:yr})}function Ws(de,$,Pe,yt,cn,yr,pr){let zr=mo($,"_get"),Di=mo($,"_set"),Cr=cn?x.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");jT(yt,$,{kind:"a",getterName:zr,setterName:Di,brandCheckIdentifier:Cr,isStatic:cn,isValid:yr})}function ml(de,$,Pe){let yt=Ri(),cn=Kr(),yr=MK(cn,$),pr=pc(de),zr=!L9e($)&&yr===void 0;Pe(de,$,yt,cn,pr,zr,yr)}function cd(de,$,Pe){let{className:yt}=Kr().data,cn=yt?{prefix:"_",node:yt,suffix:"_"}:"_",yr=typeof de=="object"?t.getGeneratedNameForNode(de,24,cn,Pe):typeof de=="string"?t.createUniqueName(de,16,cn,Pe):t.createTempVariable(void 0,!0,cn,Pe);return p.getNodeCheckFlags($)&32768?d(yr):i(yr),yr}function mo(de,$){let Pe=pN(de);return cd(Pe?.substring(1)??de,de,$)}function la(de){let $=nle(J,de);return $?.kind==="untransformed"?void 0:$}function dd(de){let $=t.getGeneratedNameForNode(de),Pe=la(de.name);if(!Pe)return Sn(de,ve,e);let yt=de.expression;return(T2(de)||ku(de)||!tS(de.expression))&&(yt=t.createTempVariable(i,!0),xo().push(t.createBinaryExpression(yt,64,$e(de.expression,ve,ht)))),t.createAssignmentTargetWrapper($,Tt(Pe,yt,$,64))}function bs(de){if(Ma(de)||uu(de))return tn(de);if(Ox(de))return dd(de);if(K&&fe&&ku(de)&&wP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=Js(de)?$e(de.argumentExpression,ve,ht):Fe(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(cn){let yr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(yr,t.createReflectSetCall(Pe,cn,yr,$))}}}return Sn(de,ve,e)}function Ca(de){if(pp(de,ke)&&(de=yp(e,de)),Mc(de,!0)){let $=bs(de.left),Pe=$e(de.right,ve,ht);return t.updateBinaryExpression(de,$,de.operatorToken,Pe)}return bs(de)}function ul(de){if(Yu(de.expression)){let $=bs(de.expression);return t.updateSpreadElement(de,$)}return Sn(de,ve,e)}function Nf(de){if(o2(de)){if(Jm(de))return ul(de);if(!jc(de))return Ca(de)}return Sn(de,ve,e)}function ac(de){let $=$e(de.name,ve,rc);if(Mc(de.initializer,!0)){let Pe=Ca(de.initializer);return t.updatePropertyAssignment(de,$,Pe)}if(Yu(de.initializer)){let Pe=bs(de.initializer);return t.updatePropertyAssignment(de,$,Pe)}return Sn(de,ve,e)}function xl(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function al(de){if(Yu(de.expression)){let $=bs(de.expression);return t.updateSpreadAssignment(de,$)}return Sn(de,ve,e)}function Lo(de){return x.assertNode(de,i2),By(de)?al(de):Zu(de)?xl(de):mc(de)?ac(de):Sn(de,ve,e)}function tn(de){return uu(de)?t.updateArrayLiteralExpression(de,zn(de.elements,Nf,ht)):t.updateObjectLiteralExpression(de,zn(de.properties,Lo,Pg))}function Fs(de,$,Pe){let yt=Nl($),cn=re.get(yt);if(cn){let yr=J,pr=he;J=cn,he=ne,ne=!Al(yt)||!(ym(yt)&32),ce(de,$,Pe),ne=he,he=pr,J=yr;return}switch($.kind){case 218:if(Os(yt)||za($)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let yr=J,pr=he;J=void 0,he=ne,ne=!1,ce(de,$,Pe),ne=he,he=pr,J=yr;return}case 167:{let yr=J,pr=ne;J=J?.previous,ne=he,ce(de,$,Pe),ne=pr,J=yr;return}}ce(de,$,Pe)}function nd(de,$){return $=B(de,$),de===1?ud($):$}function ud(de){switch(de.kind){case 80:return Rs(de);case 110:return Ep(de)}return de}function Ep(de){if(Z&2&&J?.data&&!pe.has(de)){let{facts:$,classConstructor:Pe,classThis:yt}=J.data,cn=ne?yt??Pe:Pe;if(cn)return at(xr(t.cloneNode(cn),de),de);if($&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return de}function Rs(de){return Ac(de)||de}function Ac(de){if(Z&1&&p.getNodeCheckFlags(de)&536870912){let $=p.getReferencedValueDeclaration(de);if($){let Pe=me[$.id];if(Pe){let yt=t.cloneNode(Pe);return Ra(yt,de),ic(yt,de),yt}}}}}function N9e(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function P9e(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function M9e(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function L9e(e){return!aT(e)&&e.escapedText==="#constructor"}function k9e(e){return Ki(e.left)&&e.operatorToken.kind===103}function w9e(e){return Uo(e)&&pc(e)}function wP(e){return Al(e)||w9e(e)}var O9e=bt({"src/compiler/transformers/classFields.ts"(){"use strict";ea()}});function fle(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=ns(o),l=cu(o,"strictNullChecks"),d,p;return{serializeTypeNode:(ge,q)=>h(ge,N,q),serializeTypeOfNode:(ge,q)=>h(ge,y,q),serializeParameterTypesOfNode:(ge,q,J)=>h(ge,E,q,J),serializeReturnTypeOfNode:(ge,q)=>h(ge,A,q)};function h(ge,q,J,re){let pe=d,xe=p;d=ge.currentLexicalScope,p=ge.currentNameScope;let fe=re===void 0?q(J):q(J,re);return d=pe,p=xe,fe}function m(ge){let q=i.getAllAccessorDeclarations(ge);return q.setAccessor&&Die(q.setAccessor)||q.getAccessor&&$f(q.getAccessor)}function y(ge){switch(ge.kind){case 172:case 169:return N(ge.type);case 178:case 177:return N(m(ge));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function E(ge,q){let J=ci(ge)?Zh(ge):$o(ge)&&Hf(ge.body)?ge:void 0,re=[];if(J){let pe=S(J,q),xe=pe.length;for(let fe=0;fepe.parent&&ZI(pe.parent)&&(pe.parent.trueType===pe||pe.parent.falseType===pe)))return t.createIdentifier("Object");let J=B(ge.typeName),re=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(re,J),"function"),void 0,re,void 0,t.createIdentifier("Object"));case 1:return ce(ge.typeName);case 2:return t.createVoidZero();case 4:return me("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 me("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return x.assertNever(q)}}function Y(ge,q){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ge),t.createStringLiteral("undefined")),q)}function B(ge){if(ge.kind===80){let re=ce(ge);return Y(re,re)}if(ge.left.kind===80)return Y(ce(ge.left),ce(ge));let q=B(ge.left),J=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(q.left,t.createStrictInequality(t.createAssignment(J,q.right),t.createVoidZero())),t.createPropertyAccessExpression(J,ge.right))}function ce(ge){switch(ge.kind){case 80:let q=ja(at(bh.cloneNode(ge),ge),ge.parent);return q.original=void 0,ja(q,Do(d)),q;case 166:return z(ge)}}function z(ge){return t.createPropertyAccessExpression(ce(ge.left),ge.right)}function Z(ge){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ge),"function"),void 0,t.createIdentifier(ge),void 0,t.createIdentifier("Object"))}function me(ge,q){return sKk(Ot)||bd(Ot)?void 0:Ot,il),Kn=R_(Je),pn=Le(Je),Xt=l<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),Kt=zn(Je.heritageClauses,y,Zp),hi=zn(Je.members,y,$c),uo=[];({members:hi,decorationStatements:uo}=D(Je,hi));let Li=l>=9&&!!pn&>(hi,Ot=>Uo(Ot)&&$r(Ot,256)||Al(Ot));Li&&(hi=at(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(pn,t.createThis()))])),...hi]),hi));let So=t.createClassExpression(Dn,pt&&rl(pt)?void 0:pt,void 0,Kt,hi);xr(So,Je),at(So,Kn);let Qn=pn&&!Li?t.createAssignment(pn,So):So,Ur=t.createVariableDeclaration(Xt,void 0,void 0,Qn);xr(Ur,Je);let Er=t.createVariableDeclarationList([Ur],1),on=t.createVariableStatement(void 0,Er);xr(on,Je),at(on,Kn),ic(on,Je);let Ye=[on];if(Hr(Ye,uo),he(Ye,Je),Zt)if(en){let Ot=t.createExportDefault(Xt);Ye.push(Ot)}else{let Ot=t.createExternalModuleExport(t.getDeclarationName(Je));Ye.push(Ot)}return Ye}function K(Je){return t.updateClassExpression(Je,zn(Je.modifiers,m,Sa),Je.name,void 0,zn(Je.heritageClauses,y,Zp),zn(Je.members,y,$c))}function Y(Je){return t.updateConstructorDeclaration(Je,zn(Je.modifiers,m,Sa),zn(Je.parameters,y,Ao),$e(Je.body,y,Ko))}function B(Je,pt){return Je!==pt&&(ic(Je,pt),Ra(Je,R_(pt))),Je}function ce(Je){return B(t.updateMethodDeclaration(Je,zn(Je.modifiers,m,Sa),Je.asteriskToken,x.checkDefined($e(Je.name,y,rc)),void 0,void 0,zn(Je.parameters,y,Ao),void 0,$e(Je.body,y,Ko)),Je)}function z(Je){return B(t.updateGetAccessorDeclaration(Je,zn(Je.modifiers,m,Sa),x.checkDefined($e(Je.name,y,rc)),zn(Je.parameters,y,Ao),void 0,$e(Je.body,y,Ko)),Je)}function Z(Je){return B(t.updateSetAccessorDeclaration(Je,zn(Je.modifiers,m,Sa),x.checkDefined($e(Je.name,y,rc)),zn(Je.parameters,y,Ao),$e(Je.body,y,Ko)),Je)}function me(Je){if(!(Je.flags&33554432||$r(Je,128)))return B(t.updatePropertyDeclaration(Je,zn(Je.modifiers,m,Sa),x.checkDefined($e(Je.name,y,rc)),void 0,void 0,$e(Je.initializer,y,ht)),Je)}function ge(Je){let pt=t.updateParameterDeclaration(Je,Vae(t,Je.modifiers),Je.dotDotDotToken,x.checkDefined($e(Je.name,y,sT)),void 0,void 0,$e(Je.initializer,y,ht));return pt!==Je&&(ic(pt,Je),at(pt,R_(Je)),Ra(pt,R_(Je)),lr(pt.name,64)),pt}function q(Je){return iP(Je.expression,"___metadata")}function J(Je){if(!Je)return;let{false:pt,true:Zt}=hW(Je.decorators,q),en=[];return Hr(en,mn(pt,Ge)),Hr(en,va(Je.parameters,ve)),Hr(en,mn(Zt,Ge)),en}function re(Je,pt,Zt){Hr(Je,mn(fe(pt,Zt),en=>t.createExpressionStatement(en)))}function pe(Je,pt,Zt){return I2(!0,Je,Zt)&&pt===ra(Je)}function xe(Je,pt){return jr(Je.members,Zt=>pe(Zt,pt,Je))}function fe(Je,pt){let Zt=xe(Je,pt),en;for(let Dn of Zt)en=Tn(en,ne(Je,Dn));return en}function ne(Je,pt){let Zt=G3(pt,Je,!0),en=J(Zt);if(!en)return;let Dn=be(Je,pt),Kn=Ae(pt,!$r(pt,128)),pn=l>0?Uo(pt)&&!I_(pt)?t.createVoidZero():t.createNull():void 0,Xt=r().createDecorateHelper(en,Dn,Kn,pn);return lr(Xt,3072),Ra(Xt,R_(pt)),Xt}function he(Je,pt){let Zt=Ce(pt);Zt&&Je.push(xr(t.createExpressionStatement(Zt),pt))}function Ce(Je){let pt=PK(Je),Zt=J(pt);if(!Zt)return;let en=p&&p[wd(Je)],Dn=l<2?t.getInternalName(Je,!1,!0):t.getDeclarationName(Je,!1,!0),Kn=r().createDecorateHelper(Zt,Dn),pn=t.createAssignment(Dn,en?t.createAssignment(en,Kn):Kn);return lr(pn,3072),Ra(pn,R_(Je)),pn}function Ge(Je){return x.checkDefined($e(Je.expression,y,ht))}function ve(Je,pt){let Zt;if(Je){Zt=[];for(let en of Je){let Dn=r().createParamHelper(Ge(en),pt);at(Dn,en.expression),lr(Dn,3072),Zt.push(Dn)}}return Zt}function Ae(Je,pt){let Zt=Je.name;return Ki(Zt)?t.createIdentifier(""):Ya(Zt)?pt&&!L_(Zt.expression)?t.getGeneratedNameForNode(Zt):Zt.expression:Fe(Zt)?t.createStringLiteral(gr(Zt)):t.cloneNode(Zt)}function De(){p||(e.enableSubstitution(80),p=[])}function Le(Je){if(o.getNodeCheckFlags(Je)&262144){De();let pt=t.createUniqueName(Je.name&&!rl(Je.name)?gr(Je.name):"default");return p[wd(Je)]=pt,i(pt),pt}}function Et(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function be(Je,pt){return ra(pt)?t.getDeclarationName(Je):Et(Je)}function ze(Je,pt){return pt=d(Je,pt),Je===1?tt(pt):pt}function tt(Je){switch(Je.kind){case 80:return Wt(Je)}return Je}function Wt(Je){return _t(Je)??Je}function _t(Je){if(p&&o.getNodeCheckFlags(Je)&536870912){let pt=o.getReferencedValueDeclaration(Je);if(pt){let Zt=p[pt.id];if(Zt){let en=t.cloneNode(Zt);return Ra(en,Je),ic(en,Je),en}}}}}var F9e=bt({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";ea()}});function _le(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=ns(e.getCompilerOptions()),d,p,h,m,y,E;return Im(e,S);function S(k){d=void 0,E=!1;let ie=Sn(k,Z,e);return Fg(ie,e.readEmitHelpers()),E&&(BI(ie,32),E=!1),ie}function A(){switch(p=void 0,h=void 0,m=void 0,d?.kind){case"class":p=d.classInfo;break;case"class-element":p=d.next.classInfo,h=d.classThis,m=d.classSuper;break;case"name":let k=d.next.next.next;k?.kind==="class-element"&&(p=k.next.classInfo,h=k.classThis,m=k.classSuper);break}}function N(k){d={kind:"class",next:d,classInfo:k,savedPendingExpressions:y},y=void 0,A()}function D(){x.assert(d?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${d?.kind}' instead.`),y=d.savedPendingExpressions,d=d.next,A()}function w(k){var ie,H;x.assert(d?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${d?.kind}' instead.`),d={kind:"class-element",next:d},(Al(k)||Uo(k)&&pc(k))&&(d.classThis=(ie=d.next.classInfo)==null?void 0:ie.classThis,d.classSuper=(H=d.next.classInfo)==null?void 0:H.classSuper),A()}function j(){var k;x.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),x.assert(((k=d.next)==null?void 0:k.kind)==="class","Incorrect value for top.next.kind.",()=>{var ie;return`Expected top.next.kind to be 'class' but got '${(ie=d.next)==null?void 0:ie.kind}' instead.`}),d=d.next,A()}function K(){x.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),d={kind:"name",next:d},A()}function Y(){x.assert(d?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${d?.kind}' instead.`),d=d.next,A()}function B(){d?.kind==="other"?(x.assert(!y),d.depth++):(d={kind:"other",next:d,depth:0,savedPendingExpressions:y},y=void 0,A())}function ce(){x.assert(d?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${d?.kind}' instead.`),d.depth>0?(x.assert(!y),d.depth--):(y=d.savedPendingExpressions,d=d.next,A())}function z(k){return!!(k.transformFlags&33554432)||!!h&&!!(k.transformFlags&16384)||!!h&&!!m&&!!(k.transformFlags&134217728)}function Z(k){if(!z(k))return k;switch(k.kind){case 170:return x.fail("Use `modifierVisitor` instead.");case 263:return Ce(k);case 231:return Ge(k);case 176:case 172:case 175:return x.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Kn(k);case 226:return uo(k,!1);case 303:return on(k);case 260:return Ye(k);case 208:return Ot(k);case 277:return Be(k);case 110:return Je(k);case 248:return Kt(k);case 244:return hi(k);case 361:return So(k,!1);case 217:return ct(k,!1);case 360:return lt(k,!1);case 213:return pt(k);case 215:return Zt(k);case 224:case 225:return Li(k,!1);case 211:return en(k);case 212:return Dn(k);case 167:return Er(k);case 174:case 178:case 177:case 218:case 262:{B();let ie=Sn(k,me,e);return ce(),ie}default:return Sn(k,me,e)}}function me(k){switch(k.kind){case 170:return;default:return Z(k)}}function ge(k){switch(k.kind){case 170:return;default:return k}}function q(k){switch(k.kind){case 176:return De(k);case 174:return be(k);case 177:return ze(k);case 178:return tt(k);case 172:return _t(k);case 175:return Wt(k);default:return Z(k)}}function J(k){switch(k.kind){case 224:case 225:return Li(k,!0);case 226:return uo(k,!0);case 361:return So(k,!0);case 217:return ct(k,!0);default:return Z(k)}}function re(k){let ie=k.name&&Fe(k.name)&&!rl(k.name)?gr(k.name):k.name&&Ki(k.name)&&!rl(k.name)?gr(k.name).slice(1):k.name&&Da(k.name)&&Yp(k.name.text,99)?k.name.text:ci(k)?"class":"member";return Pv(k)&&(ie=`get_${ie}`),Cy(k)&&(ie=`set_${ie}`),k.name&&Ki(k.name)&&(ie=`private_${ie}`),ra(k)&&(ie=`static_${ie}`),"_"+ie}function pe(k,ie){return t.createUniqueName(`${re(k)}_${ie}`,24)}function xe(k,ie){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(k,void 0,void 0,ie)],1))}function fe(k){let ie=t.createUniqueName("_metadata",48),H,ue,We=!1,Ne=!1,It=!1,Dt,Ut,En;if(Yx(!1,k)){let wn=gt(k.members,Bn=>(ou(Bn)||Mu(Bn))&&pc(Bn));Dt=t.createUniqueName("_classThis",wn?24:48)}for(let wn of k.members){if(bI(wn)&&I2(!1,wn,k))if(pc(wn)){if(!ue){ue=t.createUniqueName("_staticExtraInitializers",48);let Bn=r().createRunInitializersHelper(Dt??t.createThis(),ue);Ra(Bn,k.name??wg(k)),Ut??(Ut=[]),Ut.push(Bn)}}else{if(!H){H=t.createUniqueName("_instanceExtraInitializers",48);let Bn=r().createRunInitializersHelper(t.createThis(),H);Ra(Bn,k.name??wg(k)),En??(En=[]),En.push(Bn)}H??(H=t.createUniqueName("_instanceExtraInitializers",48))}if(Al(wn)?_1(wn)||(We=!0):Uo(wn)&&(pc(wn)?We||(We=!!wn.initializer||bf(wn)):Ne||(Ne=!QV(wn))),(ou(wn)||Mu(wn))&&pc(wn)&&(It=!0),ue&&H&&We&&Ne&&It)break}return{class:k,classThis:Dt,metadataReference:ie,instanceMethodExtraInitializersName:H,staticMethodExtraInitializersName:ue,hasStaticInitializers:We,hasNonAmbientInstanceFields:Ne,hasStaticPrivateClassElements:It,pendingStaticInitializers:Ut,pendingInstanceInitializers:En}}function ne(k){i(),!OK(k)&&Ny(!1,k)&&(k=j3(e,k,t.createStringLiteral("")));let ie=t.getLocalName(k,!1,!1,!0),H=fe(k),ue=[],We,Ne,It,Dt,Ut=!1,En=st(PK(k));En&&(H.classDecoratorsName=t.createUniqueName("_classDecorators",48),H.classDescriptorName=t.createUniqueName("_classDescriptor",48),H.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),x.assertIsDefined(H.classThis),ue.push(xe(H.classDecoratorsName,t.createArrayLiteralExpression(En)),xe(H.classDescriptorName),xe(H.classExtraInitializersName,t.createArrayLiteralExpression()),xe(H.classThis)),H.hasStaticPrivateClassElements&&(Ut=!0,E=!0));let wn=H2(k.heritageClauses,96),Bn=wn&&Xc(wn.types),gi=Bn&&$e(Bn.expression,Z,ht);if(gi){H.classSuper=t.createUniqueName("_classSuper",48);let Kr=Yl(gi),xo=Zc(Kr)&&!Kr.name||Ps(Kr)&&!Kr.name||Os(Kr)?t.createComma(t.createNumericLiteral(0),gi):gi;ue.push(xe(H.classSuper,xo));let xn=t.updateExpressionWithTypeArguments(Bn,H.classSuper,void 0),Ls=t.updateHeritageClause(wn,[xn]);Dt=t.createNodeArray([Ls])}let xi=H.classThis??t.createThis();N(H),We=Tn(We,U(H.metadataReference,H.classSuper));let er=k.members;if(er=zn(er,Kr=>Pl(Kr)?Kr:q(Kr),$c),er=zn(er,Kr=>Pl(Kr)?q(Kr):Kr,$c),y){let Kr;for(let xo of y){xo=$e(xo,function Ls($l){if(!($l.transformFlags&16384))return $l;switch($l.kind){case 110:return Kr||(Kr=t.createUniqueName("_outerThis",16),ue.unshift(xe(Kr,t.createThis()))),Kr;default:return Sn($l,Ls,e)}},ht);let xn=t.createExpressionStatement(xo);We=Tn(We,xn)}y=void 0}if(D(),gt(H.pendingInstanceInitializers)&&!Zh(k)){let Kr=ve(k,H);if(Kr){let xo=S_(k),xn=!!(xo&&Yl(xo.expression).kind!==106),Ls=[];if(xn){let Mo=t.createSpreadElement(t.createIdentifier("arguments")),ss=t.createCallExpression(t.createSuper(),void 0,[Mo]);Ls.push(t.createExpressionStatement(ss))}Hr(Ls,Kr);let $l=t.createBlock(Ls,!0);It=t.createConstructorDeclaration(void 0,[],$l)}}if(H.staticMethodExtraInitializersName&&ue.push(xe(H.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),H.instanceMethodExtraInitializersName&&ue.push(xe(H.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),H.memberInfos&&Gc(H.memberInfos,(Kr,xo)=>{ra(xo)&&(ue.push(xe(Kr.memberDecoratorsName)),Kr.memberInitializersName&&ue.push(xe(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&ue.push(xe(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&ue.push(xe(Kr.memberDescriptorName)))}),H.memberInfos&&Gc(H.memberInfos,(Kr,xo)=>{ra(xo)||(ue.push(xe(Kr.memberDecoratorsName)),Kr.memberInitializersName&&ue.push(xe(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&ue.push(xe(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&ue.push(xe(Kr.memberDescriptorName)))}),We=Hr(We,H.staticNonFieldDecorationStatements),We=Hr(We,H.nonStaticNonFieldDecorationStatements),We=Hr(We,H.staticFieldDecorationStatements),We=Hr(We,H.nonStaticFieldDecorationStatements),H.classDescriptorName&&H.classDecoratorsName&&H.classExtraInitializersName&&H.classThis){We??(We=[]);let Kr=t.createPropertyAssignment("value",xi),xo=t.createObjectLiteralExpression([Kr]),xn=t.createAssignment(H.classDescriptorName,xo),Ls=t.createPropertyAccessExpression(xi,"name"),$l=r().createESDecorateHelper(t.createNull(),xn,H.classDecoratorsName,{kind:"class",name:Ls,metadata:H.metadataReference},t.createNull(),H.classExtraInitializersName),Mo=t.createExpressionStatement($l);Ra(Mo,wg(k)),We.push(Mo);let ss=t.createPropertyAccessExpression(H.classDescriptorName,"value"),Ws=t.createAssignment(H.classThis,ss),ml=t.createAssignment(ie,Ws);We.push(t.createExpressionStatement(ml))}if(We.push(Me(xi,H.metadataReference)),gt(H.pendingStaticInitializers)){for(let Kr of H.pendingStaticInitializers){let xo=t.createExpressionStatement(Kr);Ra(xo,Wy(Kr)),Ne=Tn(Ne,xo)}H.pendingStaticInitializers=void 0}if(H.classExtraInitializersName){let Kr=r().createRunInitializersHelper(xi,H.classExtraInitializersName),xo=t.createExpressionStatement(Kr);Ra(xo,k.name??wg(k)),Ne=Tn(Ne,xo)}We&&Ne&&!H.hasStaticInitializers&&(Hr(We,Ne),Ne=void 0);let Fr=We&&t.createClassStaticBlockDeclaration(t.createBlock(We,!0));Fr&&Ut&&Ak(Fr,32);let go=Ne&&t.createClassStaticBlockDeclaration(t.createBlock(Ne,!0));if(Fr||It||go){let Kr=[],xo=er.findIndex(_1);Fr?(Hr(Kr,er,0,xo+1),Kr.push(Fr),Hr(Kr,er,xo+1)):Hr(Kr,er),It&&Kr.push(It),go&&Kr.push(go),er=at(t.createNodeArray(Kr),er)}let Pi=o(),Ri;if(En){Ri=t.createClassExpression(void 0,void 0,void 0,Dt,er),H.classThis&&(Ri=sle(t,Ri,H.classThis));let Kr=t.createVariableDeclaration(ie,void 0,void 0,Ri),xo=t.createVariableDeclarationList([Kr]),xn=H.classThis?t.createAssignment(ie,H.classThis):ie;ue.push(t.createVariableStatement(void 0,xo),t.createReturnStatement(xn))}else Ri=t.createClassExpression(void 0,k.name,void 0,Dt,er),ue.push(t.createReturnStatement(Ri));if(Ut){BI(Ri,32);for(let Kr of Ri.members)(ou(Kr)||Mu(Kr))&&pc(Kr)&&BI(Kr,32)}return xr(Ri,k),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ue,Pi))}function he(k){return Ny(!1,k)||_N(!1,k)}function Ce(k){if(he(k)){let ie=[],H=Nl(k,ci)??k,ue=H.name?t.createStringLiteralFromNode(H.name):t.createStringLiteral("default"),We=$r(k,32),Ne=$r(k,2048);if(k.name||(k=j3(e,k,ue)),We&&Ne){let It=ne(k);if(k.name){let Dt=t.createVariableDeclaration(t.getLocalName(k),void 0,void 0,It);xr(Dt,k);let Ut=t.createVariableDeclarationList([Dt],1),En=t.createVariableStatement(void 0,Ut);ie.push(En);let wn=t.createExportDefault(t.getDeclarationName(k));xr(wn,k),ic(wn,C_(k)),Ra(wn,wg(k)),ie.push(wn)}else{let Dt=t.createExportDefault(It);xr(Dt,k),ic(Dt,C_(k)),Ra(Dt,wg(k)),ie.push(Dt)}}else{x.assertIsDefined(k.name,"A class declaration that is not a default export must have a name.");let It=ne(k),Dt=We?xi=>JI(xi)?void 0:ge(xi):ge,Ut=zn(k.modifiers,Dt,Sa),En=t.getLocalName(k,!1,!0),wn=t.createVariableDeclaration(En,void 0,void 0,It);xr(wn,k);let Bn=t.createVariableDeclarationList([wn],1),gi=t.createVariableStatement(Ut,Bn);if(xr(gi,k),ic(gi,C_(k)),ie.push(gi),We){let xi=t.createExternalModuleExport(En);xr(xi,k),ie.push(xi)}}return rh(ie)}else{let ie=zn(k.modifiers,ge,Sa),H=zn(k.heritageClauses,Z,Zp);N(void 0);let ue=zn(k.members,q,$c);return D(),t.updateClassDeclaration(k,ie,k.name,void 0,H,ue)}}function Ge(k){if(he(k)){let ie=ne(k);return xr(ie,k),ie}else{let ie=zn(k.modifiers,ge,Sa),H=zn(k.heritageClauses,Z,Zp);N(void 0);let ue=zn(k.members,q,$c);return D(),t.updateClassExpression(k,ie,k.name,void 0,H,ue)}}function ve(k,ie){if(gt(ie.pendingInstanceInitializers)){let H=[];return H.push(t.createExpressionStatement(t.inlineExpressions(ie.pendingInstanceInitializers))),ie.pendingInstanceInitializers=void 0,H}}function Ae(k,ie,H,ue,We,Ne){let It=ue[We],Dt=ie[It];if(Hr(k,zn(ie,Z,Hi,H,It-H)),wT(Dt)){let Ut=[];Ae(Ut,Dt.tryBlock.statements,0,ue,We+1,Ne);let En=t.createNodeArray(Ut);at(En,Dt.tryBlock.statements),k.push(t.updateTryStatement(Dt,t.updateBlock(Dt.tryBlock,Ut),$e(Dt.catchClause,Z,X0),$e(Dt.finallyBlock,Z,Ko)))}else Hr(k,zn(ie,Z,Hi,It,1)),Hr(k,Ne);Hr(k,zn(ie,Z,Hi,It+1))}function De(k){w(k);let ie=zn(k.modifiers,ge,Sa),H=zn(k.parameters,Z,Ao),ue;if(k.body&&p){let We=ve(p.class,p);if(We){let Ne=[],It=t.copyPrologue(k.body.statements,Ne,!1,Z),Dt=z3(k.body.statements,It);Dt.length>0?Ae(Ne,k.body.statements,It,Dt,0,We):(Hr(Ne,We),Hr(Ne,zn(k.body.statements,Z,Hi))),ue=t.createBlock(Ne,!0),xr(ue,k.body),at(ue,k.body)}}return ue??(ue=$e(k.body,Z,Ko)),j(),t.updateConstructorDeclaration(k,ie,H,ue)}function Le(k,ie){return k!==ie&&(ic(k,ie),Ra(k,wg(ie))),k}function Et(k,ie,H){let ue,We,Ne,It,Dt,Ut;if(!ie){let Bn=zn(k.modifiers,ge,Sa);return K(),We=Ur(k.name),Y(),{modifiers:Bn,referencedName:ue,name:We,initializersName:Ne,descriptorName:Ut,thisArg:Dt}}let En=st(G3(k,ie.class,!1)),wn=zn(k.modifiers,ge,Sa);if(En){let Bn=pe(k,"decorators"),gi=t.createArrayLiteralExpression(En),xi=t.createAssignment(Bn,gi),er={memberDecoratorsName:Bn};ie.memberInfos??(ie.memberInfos=new Map),ie.memberInfos.set(k,er),y??(y=[]),y.push(xi);let Fr=bI(k)||Mu(k)?ra(k)?ie.staticNonFieldDecorationStatements??(ie.staticNonFieldDecorationStatements=[]):ie.nonStaticNonFieldDecorationStatements??(ie.nonStaticNonFieldDecorationStatements=[]):Uo(k)&&!Mu(k)?ra(k)?ie.staticFieldDecorationStatements??(ie.staticFieldDecorationStatements=[]):ie.nonStaticFieldDecorationStatements??(ie.nonStaticFieldDecorationStatements=[]):x.fail(),go=Qp(k)?"getter":hp(k)?"setter":Ul(k)?"method":Mu(k)?"accessor":Uo(k)?"field":x.fail(),Pi;if(Fe(k.name)||Ki(k.name))Pi={computed:!1,name:k.name};else if(T_(k.name))Pi={computed:!0,name:t.createStringLiteralFromNode(k.name)};else{let Kr=k.name.expression;T_(Kr)&&!Fe(Kr)?Pi={computed:!0,name:t.createStringLiteralFromNode(Kr)}:(K(),{referencedName:ue,name:We}=Qn(k.name),Pi={computed:!0,name:ue},Y())}let Ri={kind:go,name:Pi,static:ra(k),private:Ki(k.name),access:{get:Uo(k)||Qp(k)||Ul(k),set:Uo(k)||hp(k)},metadata:ie.metadataReference};if(bI(k)){let Kr=ra(k)?ie.staticMethodExtraInitializersName:ie.instanceMethodExtraInitializersName;x.assertIsDefined(Kr);let xo;ou(k)&&H&&(xo=H(k,zn(wn,$l=>ri($l,oP),Sa)),er.memberDescriptorName=Ut=pe(k,"descriptor"),xo=t.createAssignment(Ut,xo));let xn=r().createESDecorateHelper(t.createThis(),xo??t.createNull(),Bn,Ri,t.createNull(),Kr),Ls=t.createExpressionStatement(xn);Ra(Ls,wg(k)),Fr.push(Ls)}else if(Uo(k)){Ne=er.memberInitializersName??(er.memberInitializersName=pe(k,"initializers")),It=er.memberExtraInitializersName??(er.memberExtraInitializersName=pe(k,"extraInitializers")),ra(k)&&(Dt=ie.classThis);let Kr;ou(k)&&I_(k)&&H&&(Kr=H(k,void 0),er.memberDescriptorName=Ut=pe(k,"descriptor"),Kr=t.createAssignment(Ut,Kr));let xo=r().createESDecorateHelper(Mu(k)?t.createThis():t.createNull(),Kr??t.createNull(),Bn,Ri,Ne,It),xn=t.createExpressionStatement(xo);Ra(xn,wg(k)),Fr.push(xn)}}return We===void 0&&(K(),We=Ur(k.name),Y()),!gt(wn)&&(Ul(k)||Uo(k))&&lr(We,1024),{modifiers:wn,referencedName:ue,name:We,initializersName:Ne,extraInitializersName:It,descriptorName:Ut,thisArg:Dt}}function be(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,Tt);if(ue)return j(),Le(hn(ie,H,ue),k);{let We=zn(k.parameters,Z,Ao),Ne=$e(k.body,Z,Ko);return j(),Le(t.updateMethodDeclaration(k,ie,k.asteriskToken,H,void 0,void 0,We,void 0,Ne),k)}}function ze(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,He);if(ue)return j(),Le(dn(ie,H,ue),k);{let We=zn(k.parameters,Z,Ao),Ne=$e(k.body,Z,Ko);return j(),Le(t.updateGetAccessorDeclaration(k,ie,H,We,void 0,Ne),k)}}function tt(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,ut);if(ue)return j(),Le(un(ie,H,ue),k);{let We=zn(k.parameters,Z,Ao),Ne=$e(k.body,Z,Ko);return j(),Le(t.updateSetAccessorDeclaration(k,ie,H,We,Ne),k)}}function Wt(k){w(k);let ie;if(_1(k))ie=Sn(k,Z,e);else if(LP(k)){let H=h;h=void 0,ie=Sn(k,Z,e),h=H}else if(k=Sn(k,Z,e),ie=k,p&&(p.hasStaticInitializers=!0,gt(p.pendingStaticInitializers))){let H=[];for(let Ne of p.pendingStaticInitializers){let It=t.createExpressionStatement(Ne);Ra(It,Wy(Ne)),H.push(It)}let ue=t.createBlock(H,!0);ie=[t.createClassStaticBlockDeclaration(ue),ie],p.pendingStaticInitializers=void 0}return j(),ie}function _t(k){pp(k,pn)&&(k=yp(e,k,Xt(k.initializer))),w(k),x.assert(!QV(k),"Not yet implemented.");let{modifiers:ie,name:H,initializersName:ue,extraInitializersName:We,descriptorName:Ne,thisArg:It}=Et(k,p,I_(k)?Ft:void 0);i();let Dt=$e(k.initializer,Z,ht);ue&&(Dt=r().createRunInitializersHelper(It??t.createThis(),ue,Dt??t.createVoidZero())),ra(k)&&p&&Dt&&(p.hasStaticInitializers=!0);let Ut=o();if(gt(Ut)&&(Dt=t.createImmediatelyInvokedArrowFunction([...Ut,t.createReturnStatement(Dt)])),p&&(ra(k)?(Dt=ke(p,!0,Dt),We&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),We)))):(Dt=ke(p,!1,Dt),We&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),We))))),j(),I_(k)&&Ne){let En=C_(k),wn=Wy(k),Bn=k.name,gi=Bn,xi=Bn;if(Ya(Bn)&&!L_(Bn.expression)){let Ri=t3(Bn);if(Ri)gi=t.updateComputedPropertyName(Bn,$e(Bn.expression,Z,ht)),xi=t.updateComputedPropertyName(Bn,Ri.left);else{let Kr=t.createTempVariable(s);Ra(Kr,Bn.expression);let xo=$e(Bn.expression,Z,ht),xn=t.createAssignment(Kr,xo);Ra(xn,Bn.expression),gi=t.updateComputedPropertyName(Bn,xn),xi=t.updateComputedPropertyName(Bn,Kr)}}let er=zn(ie,Ri=>Ri.kind!==129?Ri:void 0,Sa),Fr=IH(t,k,er,Dt);xr(Fr,k),lr(Fr,3072),Ra(Fr,wn),Ra(Fr.name,k.name);let go=dn(er,gi,Ne);xr(go,k),ic(go,En),Ra(go,wn);let Pi=un(er,xi,Ne);return xr(Pi,k),lr(Pi,3072),Ra(Pi,wn),[Fr,go,Pi]}return Le(t.updatePropertyDeclaration(k,ie,H,void 0,void 0,Dt),k)}function Je(k){return h??k}function pt(k){if(ku(k.expression)&&h){let ie=$e(k.expression,Z,ht),H=zn(k.arguments,Z,ht),ue=t.createFunctionCallCall(ie,h,H);return xr(ue,k),at(ue,k),ue}return Sn(k,Z,e)}function Zt(k){if(ku(k.tag)&&h){let ie=$e(k.tag,Z,ht),H=t.createFunctionBindCall(ie,h,[]);xr(H,k),at(H,k);let ue=$e(k.template,Z,EI);return t.updateTaggedTemplateExpression(k,H,void 0,ue)}return Sn(k,Z,e)}function en(k){if(ku(k)&&Fe(k.name)&&h&&m){let ie=t.createStringLiteralFromNode(k.name),H=t.createReflectGetCall(m,ie,h);return xr(H,k.expression),at(H,k.expression),H}return Sn(k,Z,e)}function Dn(k){if(ku(k)&&h&&m){let ie=$e(k.argumentExpression,Z,ht),H=t.createReflectGetCall(m,ie,h);return xr(H,k.expression),at(H,k.expression),H}return Sn(k,Z,e)}function Kn(k){pp(k,pn)&&(k=yp(e,k,Xt(k.initializer)));let ie=t.updateParameterDeclaration(k,void 0,k.dotDotDotToken,$e(k.name,Z,sT),void 0,void 0,$e(k.initializer,Z,ht));return ie!==k&&(ic(ie,k),at(ie,R_(k)),Ra(ie,R_(k)),lr(ie.name,64)),ie}function pn(k){return Zc(k)&&!k.name&&he(k)}function Xt(k){let ie=Yl(k);return Zc(ie)&&!ie.name&&!Ny(!1,ie)}function Kt(k){return t.updateForStatement(k,$e(k.initializer,J,vf),$e(k.condition,Z,ht),$e(k.incrementor,J,ht),Tu(k.statement,Z,e))}function hi(k){return Sn(k,J,e)}function uo(k,ie){if(ky(k)){let H=kn(k.left),ue=$e(k.right,Z,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}if(Mc(k)){if(pp(k,pn))return k=yp(e,k,Xt(k.right)),Sn(k,Z,e);if(ku(k.left)&&h&&m){let H=Js(k.left)?$e(k.left.argumentExpression,Z,ht):Fe(k.left.name)?t.createStringLiteralFromNode(k.left.name):void 0;if(H){let ue=$e(k.right,Z,ht);if(NP(k.operatorToken.kind)){let Ne=H;L_(H)||(Ne=t.createTempVariable(s),H=t.createAssignment(Ne,H));let It=t.createReflectGetCall(m,Ne,h);xr(It,k.left),at(It,k.left),ue=t.createBinaryExpression(It,PP(k.operatorToken.kind),ue),at(ue,k)}let We=ie?void 0:t.createTempVariable(s);return We&&(ue=t.createAssignment(We,ue),at(We,k)),ue=t.createReflectSetCall(m,H,ue,h),xr(ue,k),at(ue,k),We&&(ue=t.createComma(ue,We),at(ue,k)),ue}}}if(k.operatorToken.kind===28){let H=$e(k.left,J,ht),ue=$e(k.right,ie?J:Z,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}return Sn(k,Z,e)}function Li(k,ie){if(k.operator===46||k.operator===47){let H=fs(k.operand);if(ku(H)&&h&&m){let ue=Js(H)?$e(H.argumentExpression,Z,ht):Fe(H.name)?t.createStringLiteralFromNode(H.name):void 0;if(ue){let We=ue;L_(ue)||(We=t.createTempVariable(s),ue=t.createAssignment(We,ue));let Ne=t.createReflectGetCall(m,We,h);xr(Ne,k),at(Ne,k);let It=ie?void 0:t.createTempVariable(s);return Ne=q4(t,k,Ne,s,It),Ne=t.createReflectSetCall(m,ue,Ne,h),xr(Ne,k),at(Ne,k),It&&(Ne=t.createComma(Ne,It),at(Ne,k)),Ne}}}return Sn(k,Z,e)}function So(k,ie){let H=ie?bw(k.elements,J):bw(k.elements,Z,J);return t.updateCommaListExpression(k,H)}function Qn(k){if(T_(k)||Ki(k)){let Ne=t.createStringLiteralFromNode(k),It=$e(k,Z,rc);return{referencedName:Ne,name:It}}if(T_(k.expression)&&!Fe(k.expression)){let Ne=t.createStringLiteralFromNode(k.expression),It=$e(k,Z,rc);return{referencedName:Ne,name:It}}let ie=t.getGeneratedNameForNode(k);s(ie);let H=r().createPropKeyHelper($e(k.expression,Z,ht)),ue=t.createAssignment(ie,H),We=t.updateComputedPropertyName(k,ae(ue));return{referencedName:ie,name:We}}function Ur(k){return Ya(k)?Er(k):$e(k,Z,rc)}function Er(k){let ie=$e(k.expression,Z,ht);return L_(ie)||(ie=ae(ie)),t.updateComputedPropertyName(k,ie)}function on(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.initializer))),Sn(k,Z,e)}function Ye(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.initializer))),Sn(k,Z,e)}function Ot(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.initializer))),Sn(k,Z,e)}function In(k){if(Ma(k)||uu(k))return kn(k);if(ku(k)&&h&&m){let ie=Js(k)?$e(k.argumentExpression,Z,ht):Fe(k.name)?t.createStringLiteralFromNode(k.name):void 0;if(ie){let H=t.createTempVariable(void 0),ue=t.createAssignmentTargetWrapper(H,t.createReflectSetCall(m,ie,H,h));return xr(ue,k),at(ue,k),ue}}return Sn(k,Z,e)}function si(k){if(Mc(k,!0)){pp(k,pn)&&(k=yp(e,k,Xt(k.right)));let ie=In(k.left),H=$e(k.right,Z,ht);return t.updateBinaryExpression(k,ie,k.operatorToken,H)}else return In(k)}function yi(k){if(Yu(k.expression)){let ie=In(k.expression);return t.updateSpreadElement(k,ie)}return Sn(k,Z,e)}function $i(k){return x.assertNode(k,o2),Jm(k)?yi(k):jc(k)?Sn(k,Z,e):si(k)}function Io(k){let ie=$e(k.name,Z,rc);if(Mc(k.initializer,!0)){let H=si(k.initializer);return t.updatePropertyAssignment(k,ie,H)}if(Yu(k.initializer)){let H=In(k.initializer);return t.updatePropertyAssignment(k,ie,H)}return Sn(k,Z,e)}function ua(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.objectAssignmentInitializer))),Sn(k,Z,e)}function Ba(k){if(Yu(k.expression)){let ie=In(k.expression);return t.updateSpreadAssignment(k,ie)}return Sn(k,Z,e)}function vn(k){return x.assertNode(k,i2),By(k)?Ba(k):Zu(k)?ua(k):mc(k)?Io(k):Sn(k,Z,e)}function kn(k){if(uu(k)){let ie=zn(k.elements,$i,ht);return t.updateArrayLiteralExpression(k,ie)}else{let ie=zn(k.properties,vn,Pg);return t.updateObjectLiteralExpression(k,ie)}}function Be(k){return pp(k,pn)&&(k=yp(e,k,Xt(k.expression))),Sn(k,Z,e)}function ct(k,ie){let H=ie?J:Z,ue=$e(k.expression,H,ht);return t.updateParenthesizedExpression(k,ue)}function lt(k,ie){let H=ie?J:Z,ue=$e(k.expression,H,ht);return t.updatePartiallyEmittedExpression(k,ue)}function Rt(k,ie){return gt(k)&&(ie?Ou(ie)?(k.push(ie.expression),ie=t.updateParenthesizedExpression(ie,t.inlineExpressions(k))):(k.push(ie),ie=t.inlineExpressions(k)):ie=t.inlineExpressions(k)),ie}function ae(k){let ie=Rt(y,k);return x.assertIsDefined(ie),ie!==k&&(y=void 0),ie}function ke(k,ie,H){let ue=Rt(ie?k.pendingStaticInitializers:k.pendingInstanceInitializers,H);return ue!==H&&(ie?k.pendingStaticInitializers=void 0:k.pendingInstanceInitializers=void 0),ue}function st(k){if(!k)return;let ie=[];return Hr(ie,mn(k.decorators,G)),ie}function G(k){let ie=$e(k.expression,Z,ht);lr(ie,3072);let H=Yl(ie);if(Ns(H)){let{target:ue,thisArg:We}=t.createCallBinding(ie,s,l,!0);return t.restoreOuterExpressions(ie,t.createFunctionBindCall(ue,We,[]))}return ie}function et(k,ie,H,ue,We,Ne,It){let Dt=t.createFunctionExpression(H,ue,void 0,void 0,Ne,void 0,It??t.createBlock([]));xr(Dt,k),Ra(Dt,wg(k)),lr(Dt,3072);let Ut=We==="get"||We==="set"?We:void 0,En=t.createStringLiteralFromNode(ie,void 0),wn=r().createSetFunctionNameHelper(Dt,En,Ut),Bn=t.createPropertyAssignment(t.createIdentifier(We),wn);return xr(Bn,k),Ra(Bn,wg(k)),lr(Bn,3072),Bn}function Tt(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,k.asteriskToken,"value",zn(k.parameters,Z,Ao),$e(k.body,Z,Ko))])}function He(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"get",[],$e(k.body,Z,Ko))])}function ut(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"set",zn(k.parameters,Z,Ao),$e(k.body,Z,Ko))])}function Ft(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(k.name)))])),et(k,k.name,ie,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(k.name)),t.createIdentifier("value")))]))])}function hn(k,ie,H){return k=zn(k,ue=>qI(ue)?ue:void 0,Sa),t.createGetAccessorDeclaration(k,ie,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(H,t.createIdentifier("value")))]))}function dn(k,ie,H){return k=zn(k,ue=>qI(ue)?ue:void 0,Sa),t.createGetAccessorDeclaration(k,ie,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(H,t.createIdentifier("get")),t.createThis(),[]))]))}function un(k,ie,H){return k=zn(k,ue=>qI(ue)?ue:void 0,Sa),t.createSetAccessorDeclaration(k,ie,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(H,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function U(k,ie){let H=t.createVariableDeclaration(k,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,[ie?Nt(ie):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([H],2))}function Me(k,ie){let H=t.createObjectDefinePropertyCall(k,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:ie},!0));return lr(t.createIfStatement(ie,t.createExpressionStatement(H)),1)}function Nt(k){return t.createBinaryExpression(t.createElementAccessExpression(k,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var z9e=bt({"src/compiler/transformers/esDecorators.ts"(){"use strict";ea()}});function hle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=ns(d),h,m=0,y,E,S,A,N=[],D=0,w=e.onEmitNode,j=e.onSubstituteNode;return e.onEmitNode=hi,e.onSubstituteNode=uo,Im(e,K);function K(Ye){if(Ye.isDeclarationFile)return Ye;Y(1,!1),Y(2,!$V(Ye,d));let Ot=Sn(Ye,q,e);return Fg(Ot,e.readEmitHelpers()),Ot}function Y(Ye,Ot){D=Ot?D|Ye:D&~Ye}function B(Ye){return(D&Ye)!==0}function ce(){return!B(1)}function z(){return B(2)}function Z(Ye,Ot,In){let si=Ye&~D;if(si){Y(si,!0);let yi=Ot(In);return Y(si,!1),yi}return Ot(In)}function me(Ye){return Sn(Ye,q,e)}function ge(Ye){switch(Ye.kind){case 218:case 262:case 174:case 177:case 178:case 176:return Ye;case 169:case 208:case 260:break;case 80:if(A&&l.isArgumentsLocalBinding(Ye))return A;break}return Sn(Ye,ge,e)}function q(Ye){if(!(Ye.transformFlags&256))return A?ge(Ye):Ye;switch(Ye.kind){case 134:return;case 223:return he(Ye);case 174:return Z(3,Ge,Ye);case 262:return Z(3,De,Ye);case 218:return Z(3,Le,Ye);case 219:return Z(1,Et,Ye);case 211:return E&&kr(Ye)&&Ye.expression.kind===108&&E.add(Ye.name.escapedText),Sn(Ye,q,e);case 212:return E&&Ye.expression.kind===108&&(S=!0),Sn(Ye,q,e);case 177:return Z(3,ve,Ye);case 178:return Z(3,Ae,Ye);case 176:return Z(3,Ce,Ye);case 263:case 231:return Z(3,me,Ye);default:return Sn(Ye,q,e)}}function J(Ye){if(hie(Ye))switch(Ye.kind){case 243:return pe(Ye);case 248:return ne(Ye);case 249:return xe(Ye);case 250:return fe(Ye);case 299:return re(Ye);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Sn(Ye,J,e);default:return x.assertNever(Ye,"Unhandled node.")}return q(Ye)}function re(Ye){let Ot=new Set;be(Ye.variableDeclaration,Ot);let In;if(Ot.forEach((si,yi)=>{y.has(yi)&&(In||(In=new Set(y)),In.delete(yi))}),In){let si=y;y=In;let yi=Sn(Ye,J,e);return y=si,yi}else return Sn(Ye,J,e)}function pe(Ye){if(ze(Ye.declarationList)){let Ot=tt(Ye.declarationList,!1);return Ot?t.createExpressionStatement(Ot):void 0}return Sn(Ye,q,e)}function xe(Ye){return t.updateForInStatement(Ye,ze(Ye.initializer)?tt(Ye.initializer,!0):x.checkDefined($e(Ye.initializer,q,vf)),x.checkDefined($e(Ye.expression,q,ht)),Tu(Ye.statement,J,e))}function fe(Ye){return t.updateForOfStatement(Ye,$e(Ye.awaitModifier,q,ZU),ze(Ye.initializer)?tt(Ye.initializer,!0):x.checkDefined($e(Ye.initializer,q,vf)),x.checkDefined($e(Ye.expression,q,ht)),Tu(Ye.statement,J,e))}function ne(Ye){let Ot=Ye.initializer;return t.updateForStatement(Ye,ze(Ot)?tt(Ot,!1):$e(Ye.initializer,q,vf),$e(Ye.condition,q,ht),$e(Ye.incrementor,q,ht),Tu(Ye.statement,J,e))}function he(Ye){return ce()?Sn(Ye,q,e):xr(at(t.createYieldExpression(void 0,$e(Ye.expression,q,ht)),Ye),Ye)}function Ce(Ye){let Ot=A;A=void 0;let In=t.updateConstructorDeclaration(Ye,zn(Ye.modifiers,q,Sa),Il(Ye.parameters,q,e),Zt(Ye));return A=Ot,In}function Ge(Ye){let Ot,In=Vc(Ye),si=A;A=void 0;let yi=t.updateMethodDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.asteriskToken,Ye.name,void 0,void 0,Ot=In&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,In&2?Kn(Ye,Ot):Zt(Ye));return A=si,yi}function ve(Ye){let Ot=A;A=void 0;let In=t.updateGetAccessorDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.name,Il(Ye.parameters,q,e),void 0,Zt(Ye));return A=Ot,In}function Ae(Ye){let Ot=A;A=void 0;let In=t.updateSetAccessorDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.name,Il(Ye.parameters,q,e),Zt(Ye));return A=Ot,In}function De(Ye){let Ot,In=A;A=void 0;let si=Vc(Ye),yi=t.updateFunctionDeclaration(Ye,zn(Ye.modifiers,q,il),Ye.asteriskToken,Ye.name,void 0,Ot=si&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,si&2?Kn(Ye,Ot):nf(Ye.body,q,e));return A=In,yi}function Le(Ye){let Ot,In=A;A=void 0;let si=Vc(Ye),yi=t.updateFunctionExpression(Ye,zn(Ye.modifiers,q,Sa),Ye.asteriskToken,Ye.name,void 0,Ot=si&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,si&2?Kn(Ye,Ot):nf(Ye.body,q,e));return A=In,yi}function Et(Ye){let Ot,In=Vc(Ye);return t.updateArrowFunction(Ye,zn(Ye.modifiers,q,Sa),void 0,Ot=In&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,Ye.equalsGreaterThanToken,In&2?Kn(Ye,Ot):nf(Ye.body,q,e))}function be({name:Ye},Ot){if(Fe(Ye))Ot.add(Ye.escapedText);else for(let In of Ye.elements)jc(In)||be(In,Ot)}function ze(Ye){return!!Ye&&Uc(Ye)&&!(Ye.flags&7)&&Ye.declarations.some(pt)}function tt(Ye,Ot){Wt(Ye);let In=wN(Ye);return In.length===0?Ot?$e(t.converters.convertToAssignmentElementTarget(Ye.declarations[0].name),q,ht):void 0:t.inlineExpressions(mn(In,Je))}function Wt(Ye){gn(Ye.declarations,_t)}function _t({name:Ye}){if(Fe(Ye))s(Ye);else for(let Ot of Ye.elements)jc(Ot)||_t(Ot)}function Je(Ye){let Ot=Ra(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ye.name),Ye.initializer),Ye);return x.checkDefined($e(Ot,q,ht))}function pt({name:Ye}){if(Fe(Ye))return y.has(Ye.escapedText);for(let Ot of Ye.elements)if(!jc(Ot)&&pt(Ot))return!0;return!1}function Zt(Ye){x.assertIsDefined(Ye.body);let Ot=E,In=S;E=new Set,S=!1;let si=nf(Ye.body,q,e),yi=Nl(Ye,ws);if(p>=2&&l.getNodeCheckFlags(Ye)&384&&(Vc(yi)&3)!==3){if(Kt(),E.size){let Io=U3(t,l,Ye,E);N[rs(Io)]=!0;let ua=si.statements.slice();Jh(ua,[Io]),si=t.updateBlock(si,ua)}S&&(l.getNodeCheckFlags(Ye)&256?VI(si,Ck):l.getNodeCheckFlags(Ye)&128&&VI(si,Dk))}return E=Ot,S=In,si}function en(){x.assert(A);let Ye=t.createVariableDeclaration(A,void 0,void 0,t.createIdentifier("arguments")),Ot=t.createVariableStatement(void 0,[Ye]);return Jd(Ot),D_(Ot,2097152),Ot}function Dn(Ye){if(Sw(Ye.parameters))return Il(Ye.parameters,q,e);let Ot=[];for(let si of Ye.parameters){if(si.initializer||si.dotDotDotToken){if(Ye.kind===219){let $i=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Ot.push($i)}break}let yi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(si.name,8));Ot.push(yi)}let In=t.createNodeArray(Ot);return at(In,Ye.parameters),In}function Kn(Ye,Ot){let In=Sw(Ye.parameters)?void 0:Il(Ye.parameters,q,e);i();let yi=Nl(Ye,$o).type,$i=p<2?Xt(yi):void 0,Io=Ye.kind===219,ua=A,vn=(l.getNodeCheckFlags(Ye)&512)!==0&&!A;vn&&(A=t.createUniqueName("arguments"));let kn;if(In)if(Io){let st=[];x.assert(Ot.length<=Ye.parameters.length);for(let G=0;G=2&&l.getNodeCheckFlags(Ye)&384;if(G&&(Kt(),E.size)){let Tt=U3(t,l,Ye,E);N[rs(Tt)]=!0,Jh(st,[Tt])}vn&&Jh(st,[en()]);let et=t.createBlock(st,!0);at(et,Ye.body),G&&S&&(l.getNodeCheckFlags(Ye)&256?VI(et,Ck):l.getNodeCheckFlags(Ye)&128&&VI(et,Dk)),ke=et}return y=Be,Io||(E=ct,S=lt,A=ua),ke}function pn(Ye,Ot){return Ko(Ye)?t.updateBlock(Ye,zn(Ye.statements,J,Hi,Ot)):t.converters.convertToFunctionBlock(x.checkDefined($e(Ye,J,pF)))}function Xt(Ye){let Ot=Ye&&A2(Ye);if(Ot&&Xu(Ot)){let In=l.getTypeReferenceSerializationKind(Ot);if(In===1||In===0)return Ot}}function Kt(){h&1||(h|=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 hi(Ye,Ot,In){if(h&1&&Er(Ot)){let si=l.getNodeCheckFlags(Ot)&384;if(si!==m){let yi=m;m=si,w(Ye,Ot,In),m=yi;return}}else if(h&&N[rs(Ot)]){let si=m;m=0,w(Ye,Ot,In),m=si;return}w(Ye,Ot,In)}function uo(Ye,Ot){return Ot=j(Ye,Ot),Ye===1&&m?Li(Ot):Ot}function Li(Ye){switch(Ye.kind){case 211:return So(Ye);case 212:return Qn(Ye);case 213:return Ur(Ye)}return Ye}function So(Ye){return Ye.expression.kind===108?at(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ye.name),Ye):Ye}function Qn(Ye){return Ye.expression.kind===108?on(Ye.argumentExpression,Ye):Ye}function Ur(Ye){let Ot=Ye.expression;if(ku(Ot)){let In=kr(Ot)?So(Ot):Qn(Ot);return t.createCallExpression(t.createPropertyAccessExpression(In,"call"),void 0,[t.createThis(),...Ye.arguments])}return Ye}function Er(Ye){let Ot=Ye.kind;return Ot===263||Ot===176||Ot===174||Ot===177||Ot===178}function on(Ye,Ot){return m&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),"value"),Ot):at(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),Ot)}}function U3(e,t,r,i){let o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,d)=>{let p=Vi(d),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,lr(e.createPropertyAccessExpression(lr(e.createSuper(),8),p),8)))),o&&h.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(lr(e.createPropertyAccessExpression(lr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(h)))}),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(s,!0)]))],2))}var B9e=bt({"src/compiler/transformers/es2017.ts"(){"use strict";ea()}});function gle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=ns(d),h=e.onEmitNode;e.onEmitNode=ua;let m=e.onSubstituteNode;e.onSubstituteNode=Ba;let y=!1,E,S,A,N=0,D=0,w,j,K,Y,B=[];return Im(e,ge);function ce(ae,ke){return D!==(D&~ae|ke)}function z(ae,ke){let st=D;return D=(D&~ae|ke)&3,st}function Z(ae){D=ae}function me(ae){j=Tn(j,t.createVariableDeclaration(ae))}function ge(ae){if(ae.isDeclarationFile)return ae;w=ae;let ke=Et(ae);return Fg(ke,e.readEmitHelpers()),w=void 0,j=void 0,ke}function q(ae){return fe(ae,!1)}function J(ae){return fe(ae,!0)}function re(ae){if(ae.kind!==134)return ae}function pe(ae,ke,st,G){if(ce(st,G)){let et=z(st,G),Tt=ae(ke);return Z(et),Tt}return ae(ke)}function xe(ae){return Sn(ae,q,e)}function fe(ae,ke){if(!(ae.transformFlags&128))return ae;switch(ae.kind){case 223:return ne(ae);case 229:return he(ae);case 253:return Ce(ae);case 256:return Ge(ae);case 210:return Ae(ae);case 226:return ze(ae,ke);case 361:return tt(ae,ke);case 299:return Wt(ae);case 243:return _t(ae);case 260:return Je(ae);case 246:case 247:case 249:return pe(xe,ae,0,2);case 250:return Dn(ae,void 0);case 248:return pe(Zt,ae,0,2);case 222:return en(ae);case 176:return pe(So,ae,2,1);case 174:return pe(Er,ae,2,1);case 177:return pe(Qn,ae,2,1);case 178:return pe(Ur,ae,2,1);case 262:return pe(on,ae,2,1);case 218:return pe(Ot,ae,2,1);case 219:return pe(Ye,ae,2,0);case 169:return uo(ae);case 244:return De(ae);case 217:return Le(ae,ke);case 215:return be(ae);case 211:return K&&kr(ae)&&ae.expression.kind===108&&K.add(ae.name.escapedText),Sn(ae,q,e);case 212:return K&&ae.expression.kind===108&&(Y=!0),Sn(ae,q,e);case 263:case 231:return pe(xe,ae,2,1);default:return Sn(ae,q,e)}}function ne(ae){return S&2&&S&1?xr(at(t.createYieldExpression(void 0,r().createAwaitHelper($e(ae.expression,q,ht))),ae),ae):Sn(ae,q,e)}function he(ae){if(S&2&&S&1){if(ae.asteriskToken){let ke=$e(x.checkDefined(ae.expression),q,ht);return xr(at(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(ae,ae.asteriskToken,at(r().createAsyncDelegatorHelper(at(r().createAsyncValuesHelper(ke),ke)),ke)))),ae),ae)}return xr(at(t.createYieldExpression(void 0,Xt(ae.expression?$e(ae.expression,q,ht):t.createVoidZero())),ae),ae)}return Sn(ae,q,e)}function Ce(ae){return S&2&&S&1?t.updateReturnStatement(ae,Xt(ae.expression?$e(ae.expression,q,ht):t.createVoidZero())):Sn(ae,q,e)}function Ge(ae){if(S&2){let ke=sj(ae);return ke.kind===250&&ke.awaitModifier?Dn(ke,ae):t.restoreEnclosingLabel($e(ke,q,Hi,t.liftToBlock),ae)}return Sn(ae,q,e)}function ve(ae){let ke,st=[];for(let G of ae)if(G.kind===305){ke&&(st.push(t.createObjectLiteralExpression(ke)),ke=void 0);let et=G.expression;st.push($e(et,q,ht))}else ke=Tn(ke,G.kind===303?t.createPropertyAssignment(G.name,$e(G.initializer,q,ht)):$e(G,q,Pg));return ke&&st.push(t.createObjectLiteralExpression(ke)),st}function Ae(ae){if(ae.transformFlags&65536){let ke=ve(ae.properties);ke.length&&ke[0].kind!==210&&ke.unshift(t.createObjectLiteralExpression());let st=ke[0];if(ke.length>1){for(let G=1;G=2&&l.getNodeCheckFlags(ae)&384;if(ut){Io();let hn=U3(t,l,ae,K);B[rs(hn)]=!0,Jh(et,[hn])}et.push(He);let Ft=t.updateBlock(ae.body,et);return ut&&Y&&(l.getNodeCheckFlags(ae)&256?VI(Ft,Ck):l.getNodeCheckFlags(ae)&128&&VI(Ft,Dk)),K=st,Y=G,Ft}function yi(ae){i();let ke=0,st=[],G=$e(ae.body,q,pF)??t.createBlock([]);Ko(G)&&(ke=t.copyPrologue(G.statements,st,!1,q)),Hr(st,$i(void 0,ae));let et=o();if(ke>0||gt(st)||gt(et)){let Tt=t.converters.convertToFunctionBlock(G,!0);return Jh(st,et),Hr(st,Tt.statements.slice(ke)),t.updateBlock(Tt,at(t.createNodeArray(st),Tt.statements))}return G}function $i(ae,ke){let st=!1;for(let G of ke.parameters)if(st){if(Qo(G.name)){if(G.name.elements.length>0){let et=nS(G,q,e,0,t.getGeneratedNameForNode(G));if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);lr(He,2097152),ae=Tn(ae,He)}}else if(G.initializer){let et=t.getGeneratedNameForNode(G),Tt=$e(G.initializer,q,ht),He=t.createAssignment(et,Tt),ut=t.createExpressionStatement(He);lr(ut,2097152),ae=Tn(ae,ut)}}else if(G.initializer){let et=t.cloneNode(G.name);at(et,G.name),lr(et,96);let Tt=$e(G.initializer,q,ht);D_(Tt,3168);let He=t.createAssignment(et,Tt);at(He,G),lr(He,3072);let ut=t.createBlock([t.createExpressionStatement(He)]);at(ut,G),lr(ut,3905);let Ft=t.createTypeCheck(t.cloneNode(G.name),"undefined"),hn=t.createIfStatement(Ft,ut);Jd(hn),at(hn,G),lr(hn,2101056),ae=Tn(ae,hn)}}else if(G.transformFlags&65536){st=!0;let et=nS(G,q,e,1,t.getGeneratedNameForNode(G),!1,!0);if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);lr(He,2097152),ae=Tn(ae,He)}}return ae}function Io(){E&1||(E|=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 ua(ae,ke,st){if(E&1&<(ke)){let G=l.getNodeCheckFlags(ke)&384;if(G!==N){let et=N;N=G,h(ae,ke,st),N=et;return}}else if(E&&B[rs(ke)]){let G=N;N=0,h(ae,ke,st),N=G;return}h(ae,ke,st)}function Ba(ae,ke){return ke=m(ae,ke),ae===1&&N?vn(ke):ke}function vn(ae){switch(ae.kind){case 211:return kn(ae);case 212:return Be(ae);case 213:return ct(ae)}return ae}function kn(ae){return ae.expression.kind===108?at(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ae.name),ae):ae}function Be(ae){return ae.expression.kind===108?Rt(ae.argumentExpression,ae):ae}function ct(ae){let ke=ae.expression;if(ku(ke)){let st=kr(ke)?kn(ke):Be(ke);return t.createCallExpression(t.createPropertyAccessExpression(st,"call"),void 0,[t.createThis(),...ae.arguments])}return ae}function lt(ae){let ke=ae.kind;return ke===263||ke===176||ke===174||ke===177||ke===178}function Rt(ae,ke){return N&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ae]),"value"),ke):at(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ae]),ke)}}var G9e=bt({"src/compiler/transformers/es2018.ts"(){"use strict";ea()}});function yle(e){let t=e.factory;return Im(e,r);function r(s){return s.isDeclarationFile?s:Sn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 299:return o(s);default:return Sn(s,i,e)}}function o(s){return s.variableDeclaration?Sn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),$e(s.block,i,Ko))}}var V9e=bt({"src/compiler/transformers/es2019.ts"(){"use strict";ea()}});function vle(e){let{factory:t,hoistVariableDeclaration:r}=e;return Im(e,i);function i(A){return A.isDeclarationFile?A:Sn(A,o,e)}function o(A){if(!(A.transformFlags&32))return A;switch(A.kind){case 213:{let N=p(A,!1);return x.assertNotNode(N,r1),N}case 211:case 212:if(Ud(A)){let N=m(A,!1,!1);return x.assertNotNode(N,r1),N}return Sn(A,o,e);case 226:return A.operatorToken.kind===61?E(A):Sn(A,o,e);case 220:return S(A);default:return Sn(A,o,e)}}function s(A){x.assertNotNode(A,sF);let N=[A];for(;!A.questionDotToken&&!U0(A);)A=na(gm(A.expression),Ud),x.assertNotNode(A,sF),N.unshift(A);return{expression:A.expression,chain:N}}function l(A,N,D){let w=h(A.expression,N,D);return r1(w)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(A,w.expression),w.thisArg):t.updateParenthesizedExpression(A,w)}function d(A,N,D){if(Ud(A))return m(A,N,D);let w=$e(A.expression,o,ht);x.assertNotNode(w,r1);let j;return N&&(tS(w)?j=w:(j=t.createTempVariable(r),w=t.createAssignment(j,w))),w=A.kind===211?t.updatePropertyAccessExpression(A,w,$e(A.name,o,Fe)):t.updateElementAccessExpression(A,w,$e(A.argumentExpression,o,ht)),j?t.createSyntheticReferenceExpression(w,j):w}function p(A,N){if(Ud(A))return m(A,N,!1);if(Ou(A.expression)&&Ud(fs(A.expression))){let D=l(A.expression,!0,!1),w=zn(A.arguments,o,ht);return r1(D)?at(t.createFunctionCallCall(D.expression,D.thisArg,w),A):t.updateCallExpression(A,D,void 0,w)}return Sn(A,o,e)}function h(A,N,D){switch(A.kind){case 217:return l(A,N,D);case 211:case 212:return d(A,N,D);case 213:return p(A,N);default:return $e(A,o,ht)}}function m(A,N,D){let{expression:w,chain:j}=s(A),K=h(gm(w),oT(j[0]),!1),Y=r1(K)?K.thisArg:void 0,B=r1(K)?K.expression:K,ce=t.restoreOuterExpressions(w,B,8);tS(B)||(B=t.createTempVariable(r),ce=t.createAssignment(B,ce));let z=B,Z;for(let ge=0;gefe&&Hr(ne,zn(pe.statements,y,Hi,fe,he-fe));break}he++}x.assert(heD(ne,fe))))],fe,xe===2)}return Sn(pe,y,e)}function j(pe,xe,fe,ne,he){let Ce=[];for(let Ae=xe;Aet&&(t=i)}return t}function K9e(e){let t=0;for(let r of e){let i=zK(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var J9e=bt({"src/compiler/transformers/esnext.ts"(){"use strict";ea()}});function Ile(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions(),o,s;return Im(e,y);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;let be=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=be,s.filenameDeclaration.name}function d(be){return i.jsx===5?"jsxDEV":be?"jsxs":"jsx"}function p(be){let ze=d(be);return m(ze)}function h(){return m("Fragment")}function m(be){var ze,tt;let Wt=be==="createElement"?s.importSpecifier:C6(s.importSpecifier,i),_t=(tt=(ze=s.utilizedImplicitRuntimeImports)==null?void 0:ze.get(Wt))==null?void 0:tt.get(be);if(_t)return _t.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let Je=s.utilizedImplicitRuntimeImports.get(Wt);Je||(Je=new Map,s.utilizedImplicitRuntimeImports.set(Wt,Je));let pt=t.createUniqueName(`_${be}`,112),Zt=t.createImportSpecifier(!1,t.createIdentifier(be),pt);return $oe(pt,Zt),Je.set(be,Zt),pt}function y(be){if(be.isDeclarationFile)return be;o=be,s={},s.importSpecifier=D6(i,be);let ze=Sn(be,E,e);Fg(ze,e.readEmitHelpers());let tt=ze.statements;if(s.filenameDeclaration&&(tt=uT(tt.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[Wt,_t]of Wo(s.utilizedImplicitRuntimeImports.entries()))if(oc(be)){let Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Wo(_t.values()))),t.createStringLiteral(Wt),void 0);Bv(Je,!1),tt=uT(tt.slice(),Je)}else if(wp(be)){let Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Wo(_t.values(),pt=>t.createBindingElement(void 0,pt.propertyName,pt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Wt)]))],2));Bv(Je,!1),tt=uT(tt.slice(),Je)}}return tt!==ze.statements&&(ze=t.updateSourceFile(ze,tt)),s=void 0,ze}function E(be){return be.transformFlags&2?S(be):be}function S(be){switch(be.kind){case 284:return j(be,!1);case 285:return K(be,!1);case 288:return Y(be,!1);case 294:return Et(be);default:return Sn(be,E,e)}}function A(be){switch(be.kind){case 12:return he(be);case 294:return Et(be);case 284:return j(be,!0);case 285:return K(be,!0);case 288:return Y(be,!0);default:return x.failBadSyntaxKind(be)}}function N(be){return be.properties.some(ze=>mc(ze)&&(Fe(ze.name)&&gr(ze.name)==="__proto__"||Da(ze.name)&&ze.name.text==="__proto__"))}function D(be){let ze=!1;for(let tt of be.attributes.properties)if(o1(tt)&&(!Ma(tt.expression)||tt.expression.properties.some(By)))ze=!0;else if(ze&&M_(tt)&&Fe(tt.name)&&tt.name.escapedText==="key")return!0;return!1}function w(be){return s.importSpecifier===void 0||D(be)}function j(be,ze){return(w(be.openingElement)?me:z)(be.openingElement,be.children,ze,be)}function K(be,ze){return(w(be)?me:z)(be,void 0,ze,be)}function Y(be,ze){return(s.importSpecifier===void 0?q:ge)(be.openingFragment,be.children,ze,be)}function B(be){let ze=ce(be);return ze&&t.createObjectLiteralExpression([ze])}function ce(be){let ze=lR(be);if(Nn(ze)===1&&!ze[0].dotDotDotToken){let Wt=A(ze[0]);return Wt&&t.createPropertyAssignment("children",Wt)}let tt=to(be,A);return Nn(tt)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(tt)):void 0}function z(be,ze,tt,Wt){let _t=De(be),Je=ze&&ze.length?ce(ze):void 0,pt=Vr(be.attributes.properties,Dn=>!!Dn.name&&Fe(Dn.name)&&Dn.name.escapedText==="key"),Zt=pt?jr(be.attributes.properties,Dn=>Dn!==pt):be.attributes.properties,en=Nn(Zt)?re(Zt,Je):t.createObjectLiteralExpression(Je?[Je]:Xe);return Z(_t,en,pt,ze||Xe,tt,Wt)}function Z(be,ze,tt,Wt,_t,Je){var pt;let Zt=lR(Wt),en=Nn(Zt)>1||!!((pt=Zt[0])!=null&&pt.dotDotDotToken),Dn=[be,ze];if(tt&&Dn.push(ne(tt.initializer)),i.jsx===5){let pn=Nl(o);if(pn&&Yi(pn)){tt===void 0&&Dn.push(t.createVoidZero()),Dn.push(en?t.createTrue():t.createFalse());let Xt=hs(pn,Je.pos);Dn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Xt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Xt.character+1))])),Dn.push(t.createThis())}}let Kn=at(t.createCallExpression(p(en),void 0,Dn),Je);return _t&&Jd(Kn),Kn}function me(be,ze,tt,Wt){let _t=De(be),Je=be.attributes.properties,pt=Nn(Je)?re(Je):t.createNull(),Zt=s.importSpecifier===void 0?_H(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,be):m("createElement"),en=Rae(t,Zt,_t,pt,to(ze,A),Wt);return tt&&Jd(en),en}function ge(be,ze,tt,Wt){let _t;if(ze&&ze.length){let Je=B(ze);Je&&(_t=Je)}return Z(h(),_t||t.createObjectLiteralExpression([]),void 0,ze,tt,Wt)}function q(be,ze,tt,Wt){let _t=Dae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,to(ze,A),be,Wt);return tt&&Jd(_t),_t}function J(be){return Ma(be.expression)&&!N(be.expression)?Pc(be.expression.properties,ze=>x.checkDefined($e(ze,E,Pg))):t.createSpreadAssignment(x.checkDefined($e(be.expression,E,ht)))}function re(be,ze){let tt=ns(i);return tt&&tt>=5?t.createObjectLiteralExpression(pe(be,ze)):xe(be,ze)}function pe(be,ze){let tt=pm(MG(be,o1,(Wt,_t)=>pm(mn(Wt,Je=>_t?J(Je):fe(Je)))));return ze&&tt.push(ze),tt}function xe(be,ze){let tt=[],Wt=[];for(let Je of be){if(o1(Je)){if(Ma(Je.expression)&&!N(Je.expression)){for(let pt of Je.expression.properties){if(By(pt)){_t(),tt.push(x.checkDefined($e(pt.expression,E,ht)));continue}Wt.push(x.checkDefined($e(pt,E)))}continue}_t(),tt.push(x.checkDefined($e(Je.expression,E,ht)));continue}Wt.push(fe(Je))}return ze&&Wt.push(ze),_t(),tt.length&&!Ma(tt[0])&&tt.unshift(t.createObjectLiteralExpression()),nh(tt)||r().createAssignHelper(tt);function _t(){Wt.length&&(tt.push(t.createObjectLiteralExpression(Wt)),Wt=[])}}function fe(be){let ze=Le(be),tt=ne(be.initializer);return t.createPropertyAssignment(ze,tt)}function ne(be){if(be===void 0)return t.createTrue();if(be.kind===11){let ze=be.singleQuote!==void 0?be.singleQuote:!JF(be,o),tt=t.createStringLiteral(Ae(be.text)||be.text,ze);return at(tt,be)}return be.kind===294?be.expression===void 0?t.createTrue():x.checkDefined($e(be.expression,E,ht)):ig(be)?j(be,!1):OT(be)?K(be,!1):J0(be)?Y(be,!1):x.failBadSyntaxKind(be)}function he(be){let ze=Ce(be.text);return ze===void 0?void 0:t.createStringLiteral(ze)}function Ce(be){let ze,tt=0,Wt=-1;for(let _t=0;_t{if(Je)return Px(parseInt(Je,10));if(pt)return Px(parseInt(pt,16));{let en=WIe.get(Zt);return en?Px(en):ze}})}function Ae(be){let ze=ve(be);return ze===be?void 0:ze}function De(be){if(be.kind===284)return De(be.openingElement);{let ze=be.tagName;return Fe(ze)&&dR(ze.escapedText)?t.createStringLiteral(gr(ze)):qm(ze)?t.createStringLiteral(gr(ze.namespace)+":"+gr(ze.name)):Gk(t,ze)}}function Le(be){let ze=be.name;if(Fe(ze)){let tt=gr(ze);return/^[A-Za-z_]\w*$/.test(tt)?ze:t.createStringLiteral(tt)}return t.createStringLiteral(gr(ze.namespace)+":"+gr(ze.name))}function Et(be){let ze=$e(be.expression,E,ht);return be.dotDotDotToken?t.createSpreadElement(ze):ze}}var WIe,q9e=bt({"src/compiler/transformers/jsx.ts"(){"use strict";ea(),WIe=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 xle(e){let{factory:t,hoistVariableDeclaration:r}=e;return Im(e,i);function i(p){return p.isDeclarationFile?p:Sn(p,o,e)}function o(p){if(!(p.transformFlags&512))return p;switch(p.kind){case 226:return s(p);default:return Sn(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return d(p);default:return Sn(p,o,e)}}function l(p){let h,m,y=$e(p.left,o,ht),E=$e(p.right,o,ht);if(Js(y)){let S=t.createTempVariable(r),A=t.createTempVariable(r);h=at(t.createElementAccessExpression(at(t.createAssignment(S,y.expression),y.expression),at(t.createAssignment(A,y.argumentExpression),y.argumentExpression)),y),m=at(t.createElementAccessExpression(S,A),y)}else if(kr(y)){let S=t.createTempVariable(r);h=at(t.createPropertyAccessExpression(at(t.createAssignment(S,y.expression),y.expression),y.name),y),m=at(t.createPropertyAccessExpression(S,y.name),y)}else h=y,m=y;return at(t.createAssignment(h,at(t.createGlobalMethodCall("Math","pow",[m,E]),p)),p)}function d(p){let h=$e(p.left,o,ht),m=$e(p.right,o,ht);return at(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var X9e=bt({"src/compiler/transformers/es2016.ts"(){"use strict";ea()}});function FIe(e,t){return{kind:e,expression:t}}function Rle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=lf,e.onSubstituteNode=Pf;let y,E,S,A;function N(Q){A=Tn(A,t.createVariableDeclaration(Q))}let D,w;return Im(e,j);function j(Q){if(Q.isDeclarationFile)return Q;y=Q,E=Q.text;let rt=re(Q);return Fg(rt,e.readEmitHelpers()),y=void 0,E=void 0,A=void 0,S=0,rt}function K(Q,rt){let wt=S;return S=(S&~Q|rt)&32767,wt}function Y(Q,rt,wt){S=(S&~rt|wt)&-32768|Q}function B(Q){return(S&8192)!==0&&Q.kind===253&&!Q.expression}function ce(Q){return Q.transformFlags&4194304&&(Sm(Q)||LT(Q)||mae(Q)||uP(Q)||pP(Q)||MR(Q)||mP(Q)||wT(Q)||X0(Q)||H0(Q)||Nv(Q,!1)||Ko(Q))}function z(Q){return(Q.transformFlags&1024)!==0||D!==void 0||S&8192&&ce(Q)||Nv(Q,!1)&&mo(Q)||(ym(Q)&1)!==0}function Z(Q){return z(Q)?J(Q,!1):Q}function me(Q){return z(Q)?J(Q,!0):Q}function ge(Q){if(z(Q)){let rt=Nl(Q);if(Uo(rt)&&pc(rt)){let wt=K(32670,16449),zt=J(Q,!1);return Y(wt,229376,0),zt}return J(Q,!1)}return Q}function q(Q){return Q.kind===108?Zl(Q,!0):Z(Q)}function J(Q,rt){switch(Q.kind){case 126:return;case 263:return De(Q);case 231:return Le(Q);case 169:return Ba(Q);case 262:return dn(Q);case 219:return Ft(Q);case 218:return hn(Q);case 260:return En(Q);case 80:return ve(Q);case 261:return Ne(Q);case 255:return pe(Q);case 269:return xe(Q);case 241:return Me(Q,!1);case 252:case 251:return Ae(Q);case 256:return gi(Q);case 246:case 247:return Fr(Q,void 0);case 248:return go(Q,void 0);case 249:return Ri(Q,void 0);case 250:return Kr(Q,void 0);case 244:return Nt(Q);case 210:return Mo(Q);case 299:return Di(Q);case 304:return Hc(Q);case 167:return zs(Q);case 209:return ys(Q);case 213:return Kc(Q);case 214:return im(Q);case 217:return k(Q,rt);case 226:return ie(Q,rt);case 361:return H(Q,rt);case 15:case 16:case 17:case 18:return Zo(Q);case 11:return Ql(Q);case 9:return gc(Q);case 215:return sl(Q);case 228:return _l(Q);case 229:return hc(Q);case 230:return Xo(Q);case 108:return Zl(Q,!1);case 110:return Ce(Q);case 236:return Jc(Q);case 174:return qo(Q);case 177:case 178:return bl(Q);case 243:return We(Q);case 253:return he(Q);case 222:return Ge(Q);default:return Sn(Q,Z,e)}}function re(Q){let rt=K(8064,64),wt=[],zt=[];i();let O=t.copyPrologue(Q.statements,wt,!1,Z);return Hr(zt,zn(Q.statements,Z,Hi,O)),A&&zt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(A))),t.mergeLexicalEnvironment(wt,s()),ae(wt,Q),Y(rt,0,0),t.updateSourceFile(Q,at(t.createNodeArray(Eo(wt,zt)),Q.statements))}function pe(Q){if(D!==void 0){let rt=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;let wt=Sn(Q,Z,e);return D.allowedNonLabeledJumps=rt,wt}return Sn(Q,Z,e)}function xe(Q){let rt=K(7104,0),wt=Sn(Q,Z,e);return Y(rt,0,0),wt}function fe(Q){return xr(t.createReturnStatement(ne()),Q)}function ne(){return t.createUniqueName("_this",48)}function he(Q){return D?(D.nonLocalJumps|=8,B(Q)&&(Q=fe(Q)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),Q.expression?x.checkDefined($e(Q.expression,Z,ht)):t.createVoidZero())]))):B(Q)?fe(Q):Sn(Q,Z,e)}function Ce(Q){return S|=65536,S&2&&!(S&16384)&&(S|=131072),D?S&2?(D.containsLexicalThis=!0,Q):D.thisName||(D.thisName=t.createUniqueName("this")):Q}function Ge(Q){return Sn(Q,me,e)}function ve(Q){return D&&p.isArgumentsLocalBinding(Q)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):Q.flags&256?xr(at(t.createIdentifier(Vi(Q.escapedText)),Q),Q):Q}function Ae(Q){if(D){let rt=Q.kind===252?2:4;if(!(Q.label&&D.labels&&D.labels.get(gr(Q.label))||!Q.label&&D.allowedNonLabeledJumps&rt)){let zt,O=Q.label;O?Q.kind===252?(zt=`break-${O.escapedText}`,$(D,!0,gr(O),zt)):(zt=`continue-${O.escapedText}`,$(D,!1,gr(O),zt)):Q.kind===252?(D.nonLocalJumps|=2,zt="break"):(D.nonLocalJumps|=4,zt="continue");let Ee=t.createStringLiteral(zt);if(D.loopOutParameters.length){let nt=D.loopOutParameters,Gt;for(let Zn=0;ZnFe(rt.name)&&!rt.initializer)}function pt(Q){if(mT(Q))return!0;if(!(Q.transformFlags&134217728))return!1;switch(Q.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let rt=Q;return Ya(rt.name)?!!Go(rt.name,pt):!1}}return!!Go(Q,pt)}function Zt(Q,rt,wt,zt){let O=!!wt&&Yl(wt.expression).kind!==106;if(!Q)return _t(rt,O);let Ee=[],nt=[];o();let Gt=t.copyStandardPrologue(Q.body.statements,Ee,0);(zt||pt(Q.body))&&(S|=8192),Hr(nt,zn(Q.body.statements,Z,Hi,Gt));let Zn=O||S&8192;kn(Ee,Q),Rt(Ee,Q,zt),st(Ee,Q),Zn?ke(Ee,Q,Io()):ae(Ee,Q),t.mergeLexicalEnvironment(Ee,s()),Zn&&!$i(Q.body)&&nt.push(t.createReturnStatement(ne()));let ii=t.createBlock(at(t.createNodeArray([...Ee,...nt]),Q.body.statements),!0);return at(ii,Q.body),yi(ii,Q.body,zt)}function en(Q){return rl(Q)&&gr(Q)==="_this"}function Dn(Q){return rl(Q)&&gr(Q)==="_super"}function Kn(Q){return Ml(Q)&&Q.declarationList.declarations.length===1&&pn(Q.declarationList.declarations[0])}function pn(Q){return wi(Q)&&en(Q.name)&&!!Q.initializer}function Xt(Q){return Mc(Q,!0)&&en(Q.left)}function Kt(Q){return ia(Q)&&kr(Q.expression)&&Dn(Q.expression.expression)&&Fe(Q.expression.name)&&(gr(Q.expression.name)==="call"||gr(Q.expression.name)==="apply")&&Q.arguments.length>=1&&Q.arguments[0].kind===110}function hi(Q){return dr(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&Kt(Q.left)}function uo(Q){return dr(Q)&&Q.operatorToken.kind===56&&dr(Q.left)&&Q.left.operatorToken.kind===38&&Dn(Q.left.left)&&Q.left.right.kind===106&&Kt(Q.right)&&gr(Q.right.expression.name)==="apply"}function Li(Q){return dr(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&uo(Q.left)}function So(Q){return Xt(Q)&&hi(Q.right)}function Qn(Q){return Xt(Q)&&Li(Q.right)}function Ur(Q){return Kt(Q)||hi(Q)||So(Q)||uo(Q)||Li(Q)||Qn(Q)}function Er(Q){for(let rt=0;rt0;zt--){let O=Q.statements[zt];if(Sm(O)&&O.expression&&en(O.expression)){let Ee=Q.statements[zt-1],nt;if(ed(Ee)&&So(Yl(Ee.expression)))nt=Ee.expression;else if(wt&&Kn(Ee)){let ii=Ee.declarationList.declarations[0];Ur(Yl(ii.initializer))&&(nt=t.createAssignment(ne(),ii.initializer))}if(!nt)break;let Gt=t.createReturnStatement(nt);xr(Gt,Ee),at(Gt,Ee);let Zn=t.createNodeArray([...Q.statements.slice(0,zt-1),Gt,...Q.statements.slice(zt+1)]);return at(Zn,Q.statements),t.updateBlock(Q,Zn)}}return Q}function Ye(Q){if(Kn(Q)){if(Q.declarationList.declarations[0].initializer.kind===110)return}else if(Xt(Q))return t.createPartiallyEmittedExpression(Q.right,Q);switch(Q.kind){case 219:case 218:case 262:case 176:case 175:return Q;case 177:case 178:case 174:case 172:{let rt=Q;return Ya(rt.name)?t.replacePropertyName(rt,Sn(rt.name,Ye,void 0)):Q}}return Sn(Q,Ye,void 0)}function Ot(Q,rt){if(rt.transformFlags&16384||S&65536||S&131072)return Q;for(let wt of rt.statements)if(wt.transformFlags&134217728&&!F3(wt))return Q;return t.updateBlock(Q,zn(Q.statements,Ye,Hi))}function In(Q){if(Kt(Q)&&Q.arguments.length===2&&Fe(Q.arguments[1])&&gr(Q.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),Q);switch(Q.kind){case 219:case 218:case 262:case 176:case 175:return Q;case 177:case 178:case 174:case 172:{let rt=Q;return Ya(rt.name)?t.replacePropertyName(rt,Sn(rt.name,In,void 0)):Q}}return Sn(Q,In,void 0)}function si(Q){return t.updateBlock(Q,zn(Q.statements,In,Hi))}function yi(Q,rt,wt){let zt=Q;return Q=Er(Q),Q=on(Q,rt),Q!==zt&&(Q=Ot(Q,rt)),wt&&(Q=si(Q)),Q}function $i(Q){if(Q.kind===253)return!0;if(Q.kind===245){let rt=Q;if(rt.elseStatement)return $i(rt.thenStatement)&&$i(rt.elseStatement)}else if(Q.kind===241){let rt=$s(Q.statements);if(rt&&$i(rt))return!0}return!1}function Io(){return lr(t.createThis(),8)}function ua(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),t.createFunctionApplyCall(Gl(),Io(),t.createIdentifier("arguments"))),Io())}function Ba(Q){if(!Q.dotDotDotToken)return Qo(Q.name)?xr(at(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Q),void 0,void 0,void 0),Q),Q):Q.initializer?xr(at(t.createParameterDeclaration(void 0,void 0,Q.name,void 0,void 0,void 0),Q),Q):Q}function vn(Q){return Q.initializer!==void 0||Qo(Q.name)}function kn(Q,rt){if(!gt(rt.parameters,vn))return!1;let wt=!1;for(let zt of rt.parameters){let{name:O,initializer:Ee,dotDotDotToken:nt}=zt;nt||(Qo(O)?wt=Be(Q,zt,O,Ee)||wt:Ee&&(ct(Q,zt,O,Ee),wt=!0))}return wt}function Be(Q,rt,wt,zt){return wt.elements.length>0?(uT(Q,lr(t.createVariableStatement(void 0,t.createVariableDeclarationList(nS(rt,Z,e,0,t.getGeneratedNameForNode(rt)))),2097152)),!0):zt?(uT(Q,lr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(rt),x.checkDefined($e(zt,Z,ht)))),2097152)),!0):!1}function ct(Q,rt,wt,zt){zt=x.checkDefined($e(zt,Z,ht));let O=t.createIfStatement(t.createTypeCheck(t.cloneNode(wt),"undefined"),lr(at(t.createBlock([t.createExpressionStatement(lr(at(t.createAssignment(lr(ja(at(t.cloneNode(wt),wt),wt.parent),96),lr(zt,96|za(zt)|3072)),rt),3072))]),rt),3905));Jd(O),at(O,rt),lr(O,2101056),uT(Q,O)}function lt(Q,rt){return!!(Q&&Q.dotDotDotToken&&!rt)}function Rt(Q,rt,wt){let zt=[],O=$s(rt.parameters);if(!lt(O,wt))return!1;let Ee=O.name.kind===80?ja(at(t.cloneNode(O.name),O.name),O.name.parent):t.createTempVariable(void 0);lr(Ee,96);let nt=O.name.kind===80?t.cloneNode(O.name):Ee,Gt=rt.parameters.length-1,Zn=t.createLoopVariable();zt.push(lr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ee,void 0,void 0,t.createArrayLiteralExpression([]))])),O),2097152));let ii=t.createForStatement(at(t.createVariableDeclarationList([t.createVariableDeclaration(Zn,void 0,void 0,t.createNumericLiteral(Gt))]),O),at(t.createLessThan(Zn,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),O),at(t.createPostfixIncrement(Zn),O),t.createBlock([Jd(at(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(nt,Gt===0?Zn:t.createSubtract(Zn,t.createNumericLiteral(Gt))),t.createElementAccessExpression(t.createIdentifier("arguments"),Zn))),O))]));return lr(ii,2097152),Jd(ii),zt.push(ii),O.name.kind!==80&&zt.push(lr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList(nS(O,Z,e,0,nt))),O),2097152)),jV(Q,zt),!0}function ae(Q,rt){return S&131072&&rt.kind!==219?(ke(Q,rt,t.createThis()),!0):!1}function ke(Q,rt,wt){xu();let zt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ne(),void 0,void 0,wt)]));lr(zt,2100224),Ra(zt,rt),uT(Q,zt)}function st(Q,rt){if(S&32768){let wt;switch(rt.kind){case 219:return Q;case 174:case 177:case 178:wt=t.createVoidZero();break;case 176:wt=t.createPropertyAccessExpression(lr(t.createThis(),8),"constructor");break;case 262:case 218:wt=t.createConditionalExpression(t.createLogicalAnd(lr(t.createThis(),8),t.createBinaryExpression(lr(t.createThis(),8),104,t.getLocalName(rt))),void 0,t.createPropertyAccessExpression(lr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return x.failBadSyntaxKind(rt)}let zt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,wt)]));lr(zt,2100224),uT(Q,zt)}return Q}function G(Q,rt){for(let wt of rt.members)switch(wt.kind){case 240:Q.push(et(wt));break;case 174:Q.push(Tt(lg(rt,wt),wt,rt));break;case 177:case 178:let zt=AT(rt.members,wt);wt===zt.firstAccessor&&Q.push(He(lg(rt,wt),zt,rt));break;case 176:case 175:break;default:x.failBadSyntaxKind(wt,y&&y.fileName);break}}function et(Q){return at(t.createEmptyStatement(),Q)}function Tt(Q,rt,wt){let zt=C_(rt),O=Wy(rt),Ee=un(rt,rt,void 0,wt),nt=$e(rt.name,Z,rc);x.assert(nt);let Gt;if(!Ki(nt)&&tP(e.getCompilerOptions())){let ii=Ya(nt)?nt.expression:Fe(nt)?t.createStringLiteral(Vi(nt.escapedText)):nt;Gt=t.createObjectDefinePropertyCall(Q,ii,t.createPropertyDescriptor({value:Ee,enumerable:!1,writable:!0,configurable:!0}))}else{let ii=BT(t,Q,nt,rt.name);Gt=t.createAssignment(ii,Ee)}lr(Ee,3072),Ra(Ee,O);let Zn=at(t.createExpressionStatement(Gt),rt);return xr(Zn,rt),ic(Zn,zt),lr(Zn,96),Zn}function He(Q,rt,wt){let zt=t.createExpressionStatement(ut(Q,rt,wt,!1));return lr(zt,3072),Ra(zt,Wy(rt.firstAccessor)),zt}function ut(Q,{firstAccessor:rt,getAccessor:wt,setAccessor:zt},O,Ee){let nt=ja(at(t.cloneNode(Q),Q),Q.parent);lr(nt,3136),Ra(nt,rt.name);let Gt=$e(rt.name,Z,rc);if(x.assert(Gt),Ki(Gt))return x.failBadSyntaxKind(Gt,"Encountered unhandled private identifier while transforming ES2015.");let Zn=gH(t,Gt);lr(Zn,3104),Ra(Zn,rt.name);let ii=[];if(wt){let no=un(wt,void 0,void 0,O);Ra(no,Wy(wt)),lr(no,1024);let La=t.createPropertyAssignment("get",no);ic(La,C_(wt)),ii.push(La)}if(zt){let no=un(zt,void 0,void 0,O);Ra(no,Wy(zt)),lr(no,1024);let La=t.createPropertyAssignment("set",no);ic(La,C_(zt)),ii.push(La)}ii.push(t.createPropertyAssignment("enumerable",wt||zt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Xr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[nt,Zn,t.createObjectLiteralExpression(ii,!0)]);return Ee&&Jd(Xr),Xr}function Ft(Q){Q.transformFlags&16384&&!(S&16384)&&(S|=131072);let rt=D;D=void 0;let wt=K(15232,66),zt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Il(Q.parameters,Z,e),void 0,U(Q));return at(zt,Q),xr(zt,Q),lr(zt,16),Y(wt,0,0),D=rt,zt}function hn(Q){let rt=za(Q)&524288?K(32662,69):K(32670,65),wt=D;D=void 0;let zt=Il(Q.parameters,Z,e),O=U(Q),Ee=S&32768?t.getLocalName(Q):Q.name;return Y(rt,229376,0),D=wt,t.updateFunctionExpression(Q,void 0,Q.asteriskToken,Ee,void 0,zt,void 0,O)}function dn(Q){let rt=D;D=void 0;let wt=K(32670,65),zt=Il(Q.parameters,Z,e),O=U(Q),Ee=S&32768?t.getLocalName(Q):Q.name;return Y(wt,229376,0),D=rt,t.updateFunctionDeclaration(Q,zn(Q.modifiers,Z,Sa),Q.asteriskToken,Ee,void 0,zt,void 0,O)}function un(Q,rt,wt,zt){let O=D;D=void 0;let Ee=zt&&ci(zt)&&!ra(Q)?K(32670,73):K(32670,65),nt=Il(Q.parameters,Z,e),Gt=U(Q);return S&32768&&!wt&&(Q.kind===262||Q.kind===218)&&(wt=t.getGeneratedNameForNode(Q)),Y(Ee,229376,0),D=O,xr(at(t.createFunctionExpression(void 0,Q.asteriskToken,wt,void 0,nt,void 0,Gt),rt),Q)}function U(Q){let rt=!1,wt=!1,zt,O,Ee=[],nt=[],Gt=Q.body,Zn;if(o(),Ko(Gt)&&(Zn=t.copyStandardPrologue(Gt.statements,Ee,0,!1),Zn=t.copyCustomPrologue(Gt.statements,nt,Zn,Z,PF),Zn=t.copyCustomPrologue(Gt.statements,nt,Zn,Z,MF)),rt=kn(nt,Q)||rt,rt=Rt(nt,Q,!1)||rt,Ko(Gt))Zn=t.copyCustomPrologue(Gt.statements,nt,Zn,Z),zt=Gt.statements,Hr(nt,zn(Gt.statements,Z,Hi,Zn)),!rt&&Gt.multiLine&&(rt=!0);else{x.assert(Q.kind===219),zt=g6(Gt,-1);let Xr=Q.equalsGreaterThanToken;!Ks(Xr)&&!Ks(Gt)&&(nk(Xr,Gt,y)?wt=!0:rt=!0);let no=$e(Gt,Z,ht),La=t.createReturnStatement(no);at(La,Gt),Hoe(La,Gt),lr(La,2880),nt.push(La),O=Gt}if(t.mergeLexicalEnvironment(Ee,s()),st(Ee,Q),ae(Ee,Q),gt(Ee)&&(rt=!0),nt.unshift(...Ee),Ko(Gt)&&Gm(nt,Gt.statements))return Gt;let ii=t.createBlock(at(t.createNodeArray(nt),zt),rt);return at(ii,Q.body),!rt&&wt&&lr(ii,1),O&&Uoe(ii,20,O),xr(ii,Q.body),ii}function Me(Q,rt){if(rt)return Sn(Q,Z,e);let wt=S&256?K(7104,512):K(6976,128),zt=Sn(Q,Z,e);return Y(wt,0,0),zt}function Nt(Q){return Sn(Q,me,e)}function k(Q,rt){return Sn(Q,rt?me:Z,e)}function ie(Q,rt){return ky(Q)?UT(Q,Z,e,0,!rt):Q.operatorToken.kind===28?t.updateBinaryExpression(Q,x.checkDefined($e(Q.left,me,ht)),Q.operatorToken,x.checkDefined($e(Q.right,rt?me:Z,ht))):Sn(Q,Z,e)}function H(Q,rt){if(rt)return Sn(Q,me,e);let wt;for(let O=0;OZn.name)),Gt=zt?t.createYieldExpression(t.createToken(42),lr(nt,8388608)):nt;if(Ee)O.push(t.createExpressionStatement(Gt)),Rs(rt.loopOutParameters,1,0,O);else{let Zn=t.createUniqueName("state"),ii=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Zn,void 0,void 0,Gt)]));if(O.push(ii),Rs(rt.loopOutParameters,1,0,O),rt.nonLocalJumps&8){let Xr;wt?(wt.nonLocalJumps|=8,Xr=t.createReturnStatement(Zn)):Xr=t.createReturnStatement(t.createPropertyAccessExpression(Zn,"value")),O.push(t.createIfStatement(t.createTypeCheck(Zn,"object"),Xr))}if(rt.nonLocalJumps&2&&O.push(t.createIfStatement(t.createStrictEquality(Zn,t.createStringLiteral("break")),t.createBreakStatement())),rt.labeledNonLocalBreaks||rt.labeledNonLocalContinues){let Xr=[];Pe(rt.labeledNonLocalBreaks,!0,Zn,wt,Xr),Pe(rt.labeledNonLocalContinues,!1,Zn,wt,Xr),O.push(t.createSwitchStatement(Zn,t.createCaseBlock(Xr)))}}return O}function $(Q,rt,wt,zt){rt?(Q.labeledNonLocalBreaks||(Q.labeledNonLocalBreaks=new Map),Q.labeledNonLocalBreaks.set(wt,zt)):(Q.labeledNonLocalContinues||(Q.labeledNonLocalContinues=new Map),Q.labeledNonLocalContinues.set(wt,zt))}function Pe(Q,rt,wt,zt,O){Q&&Q.forEach((Ee,nt)=>{let Gt=[];if(!zt||zt.labels&&zt.labels.get(nt)){let Zn=t.createIdentifier(nt);Gt.push(rt?t.createBreakStatement(Zn):t.createContinueStatement(Zn))}else $(zt,rt,nt,Ee),Gt.push(t.createReturnStatement(wt));O.push(t.createCaseClause(t.createStringLiteral(Ee),Gt))})}function yt(Q,rt,wt,zt,O){let Ee=rt.name;if(Qo(Ee))for(let nt of Ee.elements)jc(nt)||yt(Q,nt,wt,zt,O);else{wt.push(t.createParameterDeclaration(void 0,void 0,Ee));let nt=p.getNodeCheckFlags(rt);if(nt&65536||O){let Gt=t.createUniqueName("out_"+gr(Ee)),Zn=0;nt&65536&&(Zn|=1),kT(Q)&&(Q.initializer&&p.isBindingCapturedByNode(Q.initializer,rt)&&(Zn|=2),(Q.condition&&p.isBindingCapturedByNode(Q.condition,rt)||Q.incrementor&&p.isBindingCapturedByNode(Q.incrementor,rt))&&(Zn|=1)),zt.push({flags:Zn,originalName:Ee,outParamName:Gt})}}}function cn(Q,rt,wt,zt){let O=rt.properties,Ee=O.length;for(let nt=zt;ntMl(Bu)&&!!Va(Bu.declarationList.declarations).initializer,zt=D;D=void 0;let O=zn(rt.statements,ge,Hi);D=zt;let Ee=jr(O,wt),nt=jr(O,Bu=>!wt(Bu)),Zn=na(Va(Ee),Ml).declarationList.declarations[0],ii=Yl(Zn.initializer),Xr=ri(ii,Mc);!Xr&&dr(ii)&&ii.operatorToken.kind===28&&(Xr=ri(ii.left,Mc));let no=na(Xr?Yl(Xr.right):ii,ia),La=na(Yl(no.expression),Ps),ka=La.body.statements,wl=0,pd=-1,Ic=[];if(Xr){let Bu=ri(ka[wl],ed);Bu&&(Ic.push(Bu),wl++),Ic.push(ka[wl]),wl++,Ic.push(t.createExpressionStatement(t.createAssignment(Xr.left,na(Zn.name,Fe))))}for(;!Sm(Ay(ka,pd));)pd--;Hr(Ic,ka,wl,pd),pd<-1&&Hr(Ic,ka,pd+1);let Tp=ri(Ay(ka,pd),Sm);for(let Bu of nt)Sm(Bu)&&Tp?.expression&&!Fe(Tp.expression)?Ic.push(Tp):Ic.push(Bu);return Hr(Ic,Ee,1),t.restoreOuterExpressions(Q.expression,t.restoreOuterExpressions(Zn.initializer,t.restoreOuterExpressions(Xr&&Xr.right,t.updateCallExpression(no,t.restoreOuterExpressions(no.expression,t.updateFunctionExpression(La,void 0,void 0,void 0,void 0,La.parameters,void 0,t.updateBlock(La.body,Ic))),void 0,no.arguments))))}function Oc(Q,rt){if(Q.transformFlags&32768||Q.expression.kind===108||ku(Yl(Q.expression))){let{target:wt,thisArg:zt}=t.createCallBinding(Q.expression,l);Q.expression.kind===108&&lr(zt,8);let O;if(Q.transformFlags&32768?O=t.createFunctionApplyCall(x.checkDefined($e(wt,q,ht)),Q.expression.kind===108?zt:x.checkDefined($e(zt,Z,ht)),fu(Q.arguments,!0,!1,!1)):O=at(t.createFunctionCallCall(x.checkDefined($e(wt,q,ht)),Q.expression.kind===108?zt:x.checkDefined($e(zt,Z,ht)),zn(Q.arguments,Z,ht)),Q),Q.expression.kind===108){let Ee=t.createLogicalOr(O,Io());O=rt?t.createAssignment(ne(),Ee):Ee}return xr(O,Q)}return mT(Q)&&(S|=131072),Sn(Q,Z,e)}function im(Q){if(gt(Q.arguments,Jm)){let{target:rt,thisArg:wt}=t.createCallBinding(t.createPropertyAccessExpression(Q.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(x.checkDefined($e(rt,Z,ht)),wt,fu(t.createNodeArray([t.createVoidZero(),...Q.arguments]),!0,!1,!1)),void 0,[])}return Sn(Q,Z,e)}function fu(Q,rt,wt,zt){let O=Q.length,Ee=pm(MG(Q,Re,(ii,Xr,no,La)=>Xr(ii,wt,zt&&La===O)));if(Ee.length===1){let ii=Ee[0];if(rt&&!d.downlevelIteration||mU(ii.expression)||iP(ii.expression,"___spreadArray"))return ii.expression}let nt=r(),Gt=Ee[0].kind!==0,Zn=Gt?t.createArrayLiteralExpression():Ee[0].expression;for(let ii=Gt?0:1;ii0&&zt.push(t.createStringLiteral(wt.literal.text)),rt=t.createCallExpression(t.createPropertyAccessExpression(rt,"concat"),void 0,zt)}return at(rt,Q)}function Gl(){return t.createUniqueName("_super",48)}function Zl(Q,rt){let wt=S&8&&!rt?t.createPropertyAccessExpression(xr(Gl(),Q),"prototype"):Gl();return xr(wt,Q),ic(wt,Q),Ra(wt,Q),wt}function Jc(Q){return Q.keywordToken===105&&Q.name.escapedText==="target"?(S|=32768,t.createUniqueName("_newTarget",48)):Q}function lf(Q,rt,wt){if(w&1&&$o(rt)){let zt=K(32670,za(rt)&16?81:65);m(Q,rt,wt),Y(zt,0,0);return}m(Q,rt,wt)}function Fu(){w&2||(w|=2,e.enableSubstitution(80))}function xu(){w&1||(w|=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 Pf(Q,rt){return rt=h(Q,rt),Q===1?Hg(rt):Fe(rt)?z_(rt):rt}function z_(Q){if(w&2&&!yH(Q)){let rt=Do(Q,Fe);if(rt&&Ah(rt))return at(t.getGeneratedNameForNode(rt),Q)}return Q}function Ah(Q){switch(Q.parent.kind){case 208:case 263:case 266:case 260:return Q.parent.name===Q&&p.isDeclarationWithCollidingName(Q.parent)}return!1}function Hg(Q){switch(Q.kind){case 80:return Fd(Q);case 110:return Sp(Q)}return Q}function Fd(Q){if(w&2&&!yH(Q)){let rt=p.getReferencedDeclarationWithCollidingName(Q);if(rt&&!(ci(rt)&&Kg(rt,Q)))return at(t.getGeneratedNameForNode(Po(rt)),Q)}return Q}function Kg(Q,rt){let wt=Do(rt);if(!wt||wt===Q||wt.end<=Q.pos||wt.pos>=Q.end)return!1;let zt=uh(Q);for(;wt;){if(wt===zt||wt===Q)return!1;if($c(wt)&&wt.parent===Q)return!0;wt=wt.parent}return!1}function Sp(Q){return w&1&&S&16?at(ne(),Q):Q}function lg(Q,rt){return ra(rt)?t.getInternalName(Q):t.createPropertyAccessExpression(t.getInternalName(Q),"prototype")}function zu(Q,rt){if(!Q||!rt||gt(Q.parameters))return!1;let wt=Xc(Q.body.statements);if(!wt||!Ks(wt)||wt.kind!==244)return!1;let zt=wt.expression;if(!Ks(zt)||zt.kind!==213)return!1;let O=zt.expression;if(!Ks(O)||O.kind!==108)return!1;let Ee=nh(zt.arguments);if(!Ee||!Ks(Ee)||Ee.kind!==230)return!1;let nt=Ee.expression;return Fe(nt)&&nt.escapedText==="arguments"}}var Y9e=bt({"src/compiler/transformers/es2015.ts"(){"use strict";ea()}});function Dle(e){let{factory:t}=e,r=e.getCompilerOptions(),i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=d,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);let s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),Im(e,l);function l(E){return E}function d(E,S,A){switch(S.kind){case 286:case 287:case 285:let N=S.tagName;o[wd(N)]=!0;break}i(E,S,A)}function p(E,S){return S.id&&o&&o[S.id]?s(E,S):(S=s(E,S),kr(S)?h(S):mc(S)?m(S):S)}function h(E){if(Ki(E.name))return E;let S=y(E.name);return S?at(t.createElementAccessExpression(E.expression,S),E):E}function m(E){let S=Fe(E.name)&&y(E.name);return S?t.updatePropertyAssignment(E,S,E.initializer):E}function y(E){let S=eE(E);if(S!==void 0&&S>=83&&S<=118)return at(t.createStringLiteralFromNode(E),E)}}var $9e=bt({"src/compiler/transformers/es5.ts"(){"use strict";ea()}});function Q9e(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 Cle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=ns(d),h=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=Nt;let y,E,S,A,N,D,w,j,K,Y,B=1,ce,z,Z,me,ge=0,q=0,J,re,pe,xe,fe,ne,he,Ce;return Im(e,Ge);function Ge(Re){if(Re.isDeclarationFile||!(Re.transformFlags&2048))return Re;let Lt=Sn(Re,ve,e);return Fg(Lt,e.readEmitHelpers()),Lt}function ve(Re){let Lt=Re.transformFlags;return A?Ae(Re):S?De(Re):ws(Re)&&Re.asteriskToken?Et(Re):Lt&2048?Sn(Re,ve,e):Re}function Ae(Re){switch(Re.kind){case 246:return ua(Re);case 247:return vn(Re);case 255:return ut(Re);case 256:return hn(Re);default:return De(Re)}}function De(Re){switch(Re.kind){case 262:return be(Re);case 218:return ze(Re);case 177:case 178:return tt(Re);case 243:return _t(Re);case 248:return Be(Re);case 249:return lt(Re);case 252:return st(Re);case 251:return ae(Re);case 253:return et(Re);default:return Re.transformFlags&1048576?Le(Re):Re.transformFlags&4196352?Sn(Re,ve,e):Re}}function Le(Re){switch(Re.kind){case 226:return Je(Re);case 361:return Dn(Re);case 227:return pn(Re);case 229:return Xt(Re);case 209:return Kt(Re);case 210:return uo(Re);case 212:return Li(Re);case 213:return So(Re);case 214:return Qn(Re);default:return Sn(Re,ve,e)}}function Et(Re){switch(Re.kind){case 262:return be(Re);case 218:return ze(Re);default:return x.failBadSyntaxKind(Re)}}function be(Re){if(Re.asteriskToken)Re=xr(at(t.createFunctionDeclaration(Re.modifiers,void 0,Re.name,void 0,Il(Re.parameters,ve,e),void 0,Wt(Re.body)),Re),Re);else{let Lt=S,Un=A;S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Un}if(S){s(Re);return}else return Re}function ze(Re){if(Re.asteriskToken)Re=xr(at(t.createFunctionExpression(void 0,void 0,Re.name,void 0,Il(Re.parameters,ve,e),void 0,Wt(Re.body)),Re),Re);else{let Lt=S,Un=A;S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Un}return Re}function tt(Re){let Lt=S,Un=A;return S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Un,Re}function Wt(Re){let Lt=[],Un=S,yo=A,Xo=N,Zo=D,Ql=w,gc=j,sl=K,_l=Y,Gl=B,Zl=ce,Jc=z,lf=Z,Fu=me;S=!0,A=!1,N=void 0,D=void 0,w=void 0,j=void 0,K=void 0,Y=void 0,B=1,ce=void 0,z=void 0,Z=void 0,me=t.createTempVariable(void 0),i();let xu=t.copyPrologue(Re.statements,Lt,!1,ve);Ur(Re.statements,xu);let Pf=$();return Jh(Lt,o()),Lt.push(t.createReturnStatement(Pf)),S=Un,A=yo,N=Xo,D=Zo,w=Ql,j=gc,K=sl,Y=_l,B=Gl,ce=Zl,z=Jc,Z=lf,me=Fu,at(t.createBlock(Lt,Re.multiLine),Re)}function _t(Re){if(Re.transformFlags&1048576){si(Re.declarationList);return}else{if(za(Re)&2097152)return Re;for(let Un of Re.declarationList.declarations)l(Un.name);let Lt=wN(Re.declarationList);return Lt.length===0?void 0:Ra(t.createExpressionStatement(t.inlineExpressions(mn(Lt,yi))),Re)}}function Je(Re){let Lt=Nj(Re);switch(Lt){case 0:return Zt(Re);case 1:return pt(Re);default:return x.assertNever(Lt)}}function pt(Re){let{left:Lt,right:Un}=Re;if(U(Un)){let yo;switch(Lt.kind){case 211:yo=t.updatePropertyAccessExpression(Lt,H(x.checkDefined($e(Lt.expression,ve,Yu))),Lt.name);break;case 212:yo=t.updateElementAccessExpression(Lt,H(x.checkDefined($e(Lt.expression,ve,Yu))),H(x.checkDefined($e(Lt.argumentExpression,ve,ht))));break;default:yo=x.checkDefined($e(Lt,ve,ht));break}let Xo=Re.operatorToken.kind;return NP(Xo)?at(t.createAssignment(yo,at(t.createBinaryExpression(H(yo),PP(Xo),x.checkDefined($e(Un,ve,ht))),Re)),Re):t.updateBinaryExpression(Re,yo,Re.operatorToken,x.checkDefined($e(Un,ve,ht)))}return Sn(Re,ve,e)}function Zt(Re){return U(Re.right)?Gie(Re.operatorToken.kind)?Kn(Re):Re.operatorToken.kind===28?en(Re):t.updateBinaryExpression(Re,H(x.checkDefined($e(Re.left,ve,ht))),Re.operatorToken,x.checkDefined($e(Re.right,ve,ht))):Sn(Re,ve,e)}function en(Re){let Lt=[];return Un(Re.left),Un(Re.right),t.inlineExpressions(Lt);function Un(yo){dr(yo)&&yo.operatorToken.kind===28?(Un(yo.left),Un(yo.right)):(U(yo)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(x.checkDefined($e(yo,ve,ht))))}}function Dn(Re){let Lt=[];for(let Un of Re.elements)dr(Un)&&Un.operatorToken.kind===28?Lt.push(en(Un)):(U(Un)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(x.checkDefined($e(Un,ve,ht))));return t.inlineExpressions(Lt)}function Kn(Re){let Lt=We(),Un=ue();return al(Un,x.checkDefined($e(Re.left,ve,ht)),Re.left),Re.operatorToken.kind===56?Fs(Lt,Un,Re.left):tn(Lt,Un,Re.left),al(Un,x.checkDefined($e(Re.right,ve,ht)),Re.right),Ne(Lt),Un}function pn(Re){if(U(Re.whenTrue)||U(Re.whenFalse)){let Lt=We(),Un=We(),yo=ue();return Fs(Lt,x.checkDefined($e(Re.condition,ve,ht)),Re.condition),al(yo,x.checkDefined($e(Re.whenTrue,ve,ht)),Re.whenTrue),Lo(Un),Ne(Lt),al(yo,x.checkDefined($e(Re.whenFalse,ve,ht)),Re.whenFalse),Ne(Un),yo}return Sn(Re,ve,e)}function Xt(Re){let Lt=We(),Un=$e(Re.expression,ve,ht);if(Re.asteriskToken){let yo=za(Re.expression)&8388608?Un:at(r().createValuesHelper(Un),Re);nd(yo,Re)}else ud(Un,Re);return Ne(Lt),Nf(Re)}function Kt(Re){return hi(Re.elements,void 0,void 0,Re.multiLine)}function hi(Re,Lt,Un,yo){let Xo=Me(Re),Zo;if(Xo>0){Zo=ue();let sl=zn(Re,ve,ht,0,Xo);al(Zo,t.createArrayLiteralExpression(Lt?[Lt,...sl]:sl)),Lt=void 0}let Ql=tu(Re,gc,[],Xo);return Zo?t.createArrayConcatCall(Zo,[t.createArrayLiteralExpression(Ql,yo)]):at(t.createArrayLiteralExpression(Lt?[Lt,...Ql]:Ql,yo),Un);function gc(sl,_l){if(U(_l)&&sl.length>0){let Gl=Zo!==void 0;Zo||(Zo=ue()),al(Zo,Gl?t.createArrayConcatCall(Zo,[t.createArrayLiteralExpression(sl,yo)]):t.createArrayLiteralExpression(Lt?[Lt,...sl]:sl,yo)),Lt=void 0,sl=[]}return sl.push(x.checkDefined($e(_l,ve,ht))),sl}}function uo(Re){let Lt=Re.properties,Un=Re.multiLine,yo=Me(Lt),Xo=ue();al(Xo,t.createObjectLiteralExpression(zn(Lt,ve,Pg,0,yo),Un));let Zo=tu(Lt,Ql,[],yo);return Zo.push(Un?Jd(ja(at(t.cloneNode(Xo),Xo),Xo.parent)):Xo),t.inlineExpressions(Zo);function Ql(gc,sl){U(sl)&&gc.length>0&&(xl(t.createExpressionStatement(t.inlineExpressions(gc))),gc=[]);let _l=Cae(t,Re,sl,Xo),Gl=$e(_l,ve,ht);return Gl&&(Un&&Jd(Gl),gc.push(Gl)),gc}}function Li(Re){return U(Re.argumentExpression)?t.updateElementAccessExpression(Re,H(x.checkDefined($e(Re.expression,ve,Yu))),x.checkDefined($e(Re.argumentExpression,ve,ht))):Sn(Re,ve,e)}function So(Re){if(!Op(Re)&&gn(Re.arguments,U)){let{target:Lt,thisArg:Un}=t.createCallBinding(Re.expression,l,p,!0);return xr(at(t.createFunctionApplyCall(H(x.checkDefined($e(Lt,ve,Yu))),Un,hi(Re.arguments)),Re),Re)}return Sn(Re,ve,e)}function Qn(Re){if(gn(Re.arguments,U)){let{target:Lt,thisArg:Un}=t.createCallBinding(t.createPropertyAccessExpression(Re.expression,"bind"),l);return xr(at(t.createNewExpression(t.createFunctionApplyCall(H(x.checkDefined($e(Lt,ve,ht))),Un,hi(Re.arguments,t.createVoidZero())),void 0,[]),Re),Re)}return Sn(Re,ve,e)}function Ur(Re,Lt=0){let Un=Re.length;for(let yo=Lt;yo0)break;Xo.push(yi(Ql))}Xo.length&&(xl(t.createExpressionStatement(t.inlineExpressions(Xo))),yo+=Xo.length,Xo=[])}}function yi(Re){return Ra(t.createAssignment(Ra(t.cloneNode(Re.name),Re.name),x.checkDefined($e(Re.initializer,ve,ht))),Re)}function $i(Re){if(U(Re))if(U(Re.thenStatement)||U(Re.elseStatement)){let Lt=We(),Un=Re.elseStatement?We():void 0;Fs(Re.elseStatement?Un:Lt,x.checkDefined($e(Re.expression,ve,ht)),Re.expression),Er(Re.thenStatement),Re.elseStatement&&(Lo(Lt),Ne(Un),Er(Re.elseStatement)),Ne(Lt)}else xl($e(Re,ve,Hi));else xl($e(Re,ve,Hi))}function Io(Re){if(U(Re)){let Lt=We(),Un=We();Pi(Lt),Ne(Un),Er(Re.statement),Ne(Lt),tn(Un,x.checkDefined($e(Re.expression,ve,ht))),Ri()}else xl($e(Re,ve,Hi))}function ua(Re){return A?(go(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function Ba(Re){if(U(Re)){let Lt=We(),Un=Pi(Lt);Ne(Lt),Fs(Un,x.checkDefined($e(Re.expression,ve,ht))),Er(Re.statement),Lo(Lt),Ri()}else xl($e(Re,ve,Hi))}function vn(Re){return A?(go(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function kn(Re){if(U(Re)){let Lt=We(),Un=We(),yo=Pi(Un);if(Re.initializer){let Xo=Re.initializer;Uc(Xo)?si(Xo):xl(at(t.createExpressionStatement(x.checkDefined($e(Xo,ve,ht))),Xo))}Ne(Lt),Re.condition&&Fs(yo,x.checkDefined($e(Re.condition,ve,ht))),Er(Re.statement),Ne(Un),Re.incrementor&&xl(at(t.createExpressionStatement(x.checkDefined($e(Re.incrementor,ve,ht))),Re.incrementor)),Lo(Lt),Ri()}else xl($e(Re,ve,Hi))}function Be(Re){A&&go();let Lt=Re.initializer;if(Lt&&Uc(Lt)){for(let yo of Lt.declarations)l(yo.name);let Un=wN(Lt);Re=t.updateForStatement(Re,Un.length>0?t.inlineExpressions(mn(Un,yi)):void 0,$e(Re.condition,ve,ht),$e(Re.incrementor,ve,ht),Tu(Re.statement,ve,e))}else Re=Sn(Re,ve,e);return A&&Ri(),Re}function ct(Re){if(U(Re)){let Lt=ue(),Un=ue(),yo=ue(),Xo=t.createLoopVariable(),Zo=Re.initializer;l(Xo),al(Lt,x.checkDefined($e(Re.expression,ve,ht))),al(Un,t.createArrayLiteralExpression()),xl(t.createForInStatement(yo,Lt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Un,"push"),void 0,[yo])))),al(Xo,t.createNumericLiteral(0));let Ql=We(),gc=We(),sl=Pi(gc);Ne(Ql),Fs(sl,t.createLessThan(Xo,t.createPropertyAccessExpression(Un,"length"))),al(yo,t.createElementAccessExpression(Un,Xo)),Fs(gc,t.createBinaryExpression(yo,103,Lt));let _l;if(Uc(Zo)){for(let Gl of Zo.declarations)l(Gl.name);_l=t.cloneNode(Zo.declarations[0].name)}else _l=x.checkDefined($e(Zo,ve,ht)),x.assert(Yu(_l));al(_l,yo),Er(Re.statement),Ne(gc),xl(t.createExpressionStatement(t.createPostfixIncrement(Xo))),Lo(Ql),Ri()}else xl($e(Re,ve,Hi))}function lt(Re){A&&go();let Lt=Re.initializer;if(Uc(Lt)){for(let Un of Lt.declarations)l(Un.name);Re=t.updateForInStatement(Re,Lt.declarations[0].name,x.checkDefined($e(Re.expression,ve,ht)),x.checkDefined($e(Re.statement,ve,Hi,t.liftToBlock)))}else Re=Sn(Re,ve,e);return A&&Ri(),Re}function Rt(Re){let Lt=la(Re.label?gr(Re.label):void 0);Lt>0?Lo(Lt,Re):xl(Re)}function ae(Re){if(A){let Lt=la(Re.label&&gr(Re.label));if(Lt>0)return Ca(Lt,Re)}return Sn(Re,ve,e)}function ke(Re){let Lt=mo(Re.label?gr(Re.label):void 0);Lt>0?Lo(Lt,Re):xl(Re)}function st(Re){if(A){let Lt=mo(Re.label&&gr(Re.label));if(Lt>0)return Ca(Lt,Re)}return Sn(Re,ve,e)}function G(Re){Ep($e(Re.expression,ve,ht),Re)}function et(Re){return ul($e(Re.expression,ve,ht),Re)}function Tt(Re){U(Re)?(wn(H(x.checkDefined($e(Re.expression,ve,ht)))),Er(Re.statement),Bn()):xl($e(Re,ve,Hi))}function He(Re){if(U(Re.caseBlock)){let Lt=Re.caseBlock,Un=Lt.clauses.length,yo=xo(),Xo=H(x.checkDefined($e(Re.expression,ve,ht))),Zo=[],Ql=-1;for(let _l=0;_l0)break;sl.push(t.createCaseClause(x.checkDefined($e(Zl.expression,ve,ht)),[Ca(Zo[Gl],Zl.expression)]))}else _l++}sl.length&&(xl(t.createSwitchStatement(Xo,t.createCaseBlock(sl))),gc+=sl.length,sl=[]),_l>0&&(gc+=_l,_l=0)}Ql>=0?Lo(Zo[Ql]):Lo(yo);for(let _l=0;_l=0;Un--){let yo=j[Un];if(Ws(yo)){if(yo.labelText===Re)return!0}else break}return!1}function mo(Re){if(j)if(Re)for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(Ws(Un)&&Un.labelText===Re)return Un.breakLabel;if(ss(Un)&&cd(Re,Lt-1))return Un.breakLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ss(Un))return Un.breakLabel}return 0}function la(Re){if(j)if(Re)for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ml(Un)&&cd(Re,Lt-1))return Un.continueLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ml(Un))return Un.continueLabel}return 0}function dd(Re){if(Re!==void 0&&Re>0){Y===void 0&&(Y=[]);let Lt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Y[Re]===void 0?Y[Re]=[Lt]:Y[Re].push(Lt),Lt}return t.createOmittedExpression()}function bs(Re){let Lt=t.createNumericLiteral(Re);return n4(Lt,3,Q9e(Re)),Lt}function Ca(Re,Lt){return x.assertLessThan(0,Re,"Invalid label"),at(t.createReturnStatement(t.createArrayLiteralExpression([bs(3),dd(Re)])),Lt)}function ul(Re,Lt){return at(t.createReturnStatement(t.createArrayLiteralExpression(Re?[bs(2),Re]:[bs(2)])),Lt)}function Nf(Re){return at(t.createCallExpression(t.createPropertyAccessExpression(me,"sent"),void 0,[]),Re)}function ac(){de(0)}function xl(Re){Re?de(1,[Re]):ac()}function al(Re,Lt,Un){de(2,[Re,Lt],Un)}function Lo(Re,Lt){de(3,[Re],Lt)}function tn(Re,Lt,Un){de(4,[Re,Lt],Un)}function Fs(Re,Lt,Un){de(5,[Re,Lt],Un)}function nd(Re,Lt){de(7,[Re],Lt)}function ud(Re,Lt){de(6,[Re],Lt)}function Ep(Re,Lt){de(8,[Re],Lt)}function Rs(Re,Lt){de(9,[Re],Lt)}function Ac(){de(10)}function de(Re,Lt,Un){ce===void 0&&(ce=[],z=[],Z=[]),K===void 0&&Ne(We());let yo=ce.length;ce[yo]=Re,z[yo]=Lt,Z[yo]=Un}function $(){ge=0,q=0,J=void 0,re=!1,pe=!1,xe=void 0,fe=void 0,ne=void 0,he=void 0,Ce=void 0;let Re=Pe();return r().createGeneratorHelper(lr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,me)],void 0,t.createBlock(Re,Re.length>0)),1048576))}function Pe(){if(ce){for(let Re=0;Re=0;Lt--){let Un=Ce[Lt];fe=[t.createWithStatement(Un.expression,t.createBlock(fe))]}if(he){let{startLabel:Lt,catchLabel:Un,finallyLabel:yo,endLabel:Xo}=he;fe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(me,"trys"),"push"),void 0,[t.createArrayLiteralExpression([dd(Lt),dd(Un),dd(yo),dd(Xo)])]))),he=void 0}Re&&fe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(me,"label"),t.createNumericLiteral(q+1))))}xe.push(t.createCaseClause(t.createNumericLiteral(q),fe||[])),fe=void 0}function zr(Re){if(K)for(let Lt=0;Ltr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(gr(Ne))),We),r.createVoidZero())));Tn(Me,$e(D.externalHelpersImportDeclaration,J,Hi)),Hr(Me,zn(U.statements,J,Hi,k)),q(Me,!1),Jh(Me,s());let ie=r.updateSourceFile(U,at(r.createNodeArray(Me),U.statements));return Fg(ie,e.readEmitHelpers()),ie}function ce(U){let Me=r.createIdentifier("define"),Nt=Uk(r,U,h,d),k=Jf(U)&&U,{aliasedModuleNames:ie,unaliasedModuleNames:H,importAliasNames:ue}=Z(U,!0),We=r.updateSourceFile(U,at(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Me,void 0,[...Nt?[Nt]:[],r.createArrayLiteralExpression(k?Xe:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...ie,...H]),k?k.statements.length?k.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"),...ue],void 0,ge(U))]))]),U.statements));return Fg(We,e.readEmitHelpers()),We}function z(U){let{aliasedModuleNames:Me,unaliasedModuleNames:Nt,importAliasNames:k}=Z(U,!1),ie=Uk(r,U,h,d),H=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,at(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")]))]),lr(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,[...ie?[ie]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Me,...Nt]),r.createIdentifier("factory")]))])))],!0),void 0)),ue=r.updateSourceFile(U,at(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(H,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"),...k],void 0,ge(U))]))]),U.statements));return Fg(ue,e.readEmitHelpers()),ue}function Z(U,Me){let Nt=[],k=[],ie=[];for(let H of U.amdDependencies)H.name?(Nt.push(r.createStringLiteral(H.path)),ie.push(r.createParameterDeclaration(void 0,void 0,H.name))):k.push(r.createStringLiteral(H.path));for(let H of D.externalImports){let ue=s1(r,H,N,h,p,d),We=FR(r,H,N);ue&&(Me&&We?(lr(We,8),Nt.push(ue),ie.push(r.createParameterDeclaration(void 0,void 0,We))):k.push(ue))}return{aliasedModuleNames:Nt,unaliasedModuleNames:k,importAliasNames:ie}}function me(U){if(td(U)||Xl(U)||!s1(r,U,N,h,p,d))return;let Me=FR(r,U,N),Nt=So(U,Me);if(Nt!==Me)return r.createExpressionStatement(r.createAssignment(Me,Nt))}function ge(U){o();let Me=[],Nt=r.copyPrologue(U.statements,Me,!d.noImplicitUseStrict,J);Y()&&Tn(Me,Rt()),Nn(D.exportedNames)&&Tn(Me,r.createExpressionStatement(tu(D.exportedNames,(ie,H)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(gr(H))),ie),r.createVoidZero()))),Tn(Me,$e(D.externalHelpersImportDeclaration,J,Hi)),y===2&&Hr(Me,to(D.externalImports,me)),Hr(Me,zn(U.statements,J,Hi,Nt)),q(Me,!0),Jh(Me,s());let k=r.createBlock(Me,!0);return j&&VI(k,zIe),k}function q(U,Me){if(D.exportEquals){let Nt=$e(D.exportEquals.expression,xe,ht);if(Nt)if(Me){let k=r.createReturnStatement(Nt);at(k,D.exportEquals),lr(k,3840),U.push(k)}else{let k=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Nt));at(k,D.exportEquals),lr(k,3072),U.push(k)}}}function J(U){switch(U.kind){case 272:return Qn(U);case 271:return Er(U);case 278:return on(U);case 277:return Ye(U);default:return re(U)}}function re(U){switch(U.kind){case 243:return si(U);case 262:return Ot(U);case 263:return In(U);case 248:return Ce(U,!0);case 249:return Ge(U);case 250:return ve(U);case 246:return Ae(U);case 247:return De(U);case 256:return Le(U);case 254:return Et(U);case 245:return be(U);case 255:return ze(U);case 269:return tt(U);case 296:return Wt(U);case 297:return _t(U);case 258:return Je(U);case 299:return pt(U);case 241:return Zt(U);default:return xe(U)}}function pe(U,Me){if(!(U.transformFlags&276828160))return U;switch(U.kind){case 248:return Ce(U,!1);case 244:return en(U);case 217:return Dn(U,Me);case 360:return Kn(U,Me);case 213:if(Op(U)&&N.impliedNodeFormat===void 0)return Xt(U);break;case 226:if(ky(U))return he(U,Me);break;case 224:case 225:return pn(U,Me)}return Sn(U,xe,e)}function xe(U){return pe(U,!1)}function fe(U){return pe(U,!0)}function ne(U){if(Ma(U))for(let Me of U.properties)switch(Me.kind){case 303:if(ne(Me.initializer))return!0;break;case 304:if(ne(Me.name))return!0;break;case 305:if(ne(Me.expression))return!0;break;case 174:case 177:case 178:return!1;default:x.assertNever(Me,"Unhandled object member kind")}else if(uu(U)){for(let Me of U.elements)if(Jm(Me)){if(ne(Me.expression))return!0}else if(ne(Me))return!0}else if(Fe(U))return Nn(un(U))>(X4(U)?1:0);return!1}function he(U,Me){return ne(U.left)?UT(U,xe,e,0,!Me,yi):Sn(U,xe,e)}function Ce(U,Me){if(Me&&U.initializer&&Uc(U.initializer)&&!(U.initializer.flags&7)){let Nt=vn(void 0,U.initializer,!1);if(Nt){let k=[],ie=$e(U.initializer,fe,Uc),H=r.createVariableStatement(void 0,ie);k.push(H),Hr(k,Nt);let ue=$e(U.condition,xe,ht),We=$e(U.incrementor,fe,ht),Ne=Tu(U.statement,Me?re:xe,e);return k.push(r.updateForStatement(U,void 0,ue,We,Ne)),k}}return r.updateForStatement(U,$e(U.initializer,fe,vf),$e(U.condition,xe,ht),$e(U.incrementor,fe,ht),Tu(U.statement,Me?re:xe,e))}function Ge(U){if(Uc(U.initializer)&&!(U.initializer.flags&7)){let Me=vn(void 0,U.initializer,!0);if(gt(Me)){let Nt=$e(U.initializer,fe,vf),k=$e(U.expression,xe,ht),ie=Tu(U.statement,re,e),H=Ko(ie)?r.updateBlock(ie,[...Me,...ie.statements]):r.createBlock([...Me,ie],!0);return r.updateForInStatement(U,Nt,k,H)}}return r.updateForInStatement(U,$e(U.initializer,fe,vf),$e(U.expression,xe,ht),Tu(U.statement,re,e))}function ve(U){if(Uc(U.initializer)&&!(U.initializer.flags&7)){let Me=vn(void 0,U.initializer,!0),Nt=$e(U.initializer,fe,vf),k=$e(U.expression,xe,ht),ie=Tu(U.statement,re,e);return gt(Me)&&(ie=Ko(ie)?r.updateBlock(ie,[...Me,...ie.statements]):r.createBlock([...Me,ie],!0)),r.updateForOfStatement(U,U.awaitModifier,Nt,k,ie)}return r.updateForOfStatement(U,U.awaitModifier,$e(U.initializer,fe,vf),$e(U.expression,xe,ht),Tu(U.statement,re,e))}function Ae(U){return r.updateDoStatement(U,Tu(U.statement,re,e),$e(U.expression,xe,ht))}function De(U){return r.updateWhileStatement(U,$e(U.expression,xe,ht),Tu(U.statement,re,e))}function Le(U){return r.updateLabeledStatement(U,U.label,x.checkDefined($e(U.statement,re,Hi,r.liftToBlock)))}function Et(U){return r.updateWithStatement(U,$e(U.expression,xe,ht),x.checkDefined($e(U.statement,re,Hi,r.liftToBlock)))}function be(U){return r.updateIfStatement(U,$e(U.expression,xe,ht),x.checkDefined($e(U.thenStatement,re,Hi,r.liftToBlock)),$e(U.elseStatement,re,Hi,r.liftToBlock))}function ze(U){return r.updateSwitchStatement(U,$e(U.expression,xe,ht),x.checkDefined($e(U.caseBlock,re,pP)))}function tt(U){return r.updateCaseBlock(U,zn(U.clauses,re,mF))}function Wt(U){return r.updateCaseClause(U,$e(U.expression,xe,ht),zn(U.statements,re,Hi))}function _t(U){return Sn(U,re,e)}function Je(U){return Sn(U,re,e)}function pt(U){return r.updateCatchClause(U,U.variableDeclaration,x.checkDefined($e(U.block,re,Ko)))}function Zt(U){return U=Sn(U,re,e),U}function en(U){return r.updateExpressionStatement(U,$e(U.expression,fe,ht))}function Dn(U,Me){return r.updateParenthesizedExpression(U,$e(U.expression,Me?fe:xe,ht))}function Kn(U,Me){return r.updatePartiallyEmittedExpression(U,$e(U.expression,Me?fe:xe,ht))}function pn(U,Me){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!rl(U.operand)&&!Bg(U.operand)&&!$j(U.operand)){let Nt=un(U.operand);if(Nt){let k,ie=$e(U.operand,xe,ht);qv(U)?ie=r.updatePrefixUnaryExpression(U,ie):(ie=r.updatePostfixUnaryExpression(U,ie),Me||(k=r.createTempVariable(l),ie=r.createAssignment(k,ie),at(ie,U)),ie=r.createComma(ie,r.cloneNode(U.operand)),at(ie,U));for(let H of Nt)w[rs(ie)]=!0,ie=ke(H,ie),at(ie,U);return k&&(w[rs(ie)]=!0,ie=r.createComma(ie,k),at(ie,U)),ie}}return Sn(U,xe,e)}function Xt(U){if(y===0&&m>=7)return Sn(U,xe,e);let Me=s1(r,U,N,h,p,d),Nt=$e(Xc(U.arguments),xe,ht),k=Me&&(!Nt||!Da(Nt)||Nt.text!==Me.text)?Me:Nt,ie=!!(U.transformFlags&16384);switch(d.module){case 2:return hi(k,ie);case 3:return Kt(k??r.createVoidZero(),ie);case 1:default:return uo(k)}}function Kt(U,Me){if(j=!0,tS(U)){let Nt=rl(U)?U:Da(U)?r.createStringLiteralFromNode(U):lr(at(r.cloneNode(U),U),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,uo(U),void 0,hi(Nt,Me))}else{let Nt=r.createTempVariable(l);return r.createComma(r.createAssignment(Nt,U),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,uo(Nt,!0),void 0,hi(Nt,Me)))}}function hi(U,Me){let Nt=r.createUniqueName("resolve"),k=r.createUniqueName("reject"),ie=[r.createParameterDeclaration(void 0,void 0,Nt),r.createParameterDeclaration(void 0,void 0,k)],H=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([U||r.createOmittedExpression()]),Nt,k]))]),ue;m>=2?ue=r.createArrowFunction(void 0,void 0,ie,void 0,void 0,H):(ue=r.createFunctionExpression(void 0,void 0,void 0,void 0,ie,void 0,H),Me&&lr(ue,16));let We=r.createNewExpression(r.createIdentifier("Promise"),void 0,[ue]);return mh(d)?r.createCallExpression(r.createPropertyAccessExpression(We,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):We}function uo(U,Me){let Nt=U&&!L_(U)&&!Me,k=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Nt?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(U,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[U])]:[]),ie=r.createCallExpression(r.createIdentifier("require"),void 0,Nt?[r.createIdentifier("s")]:U?[U]:[]);mh(d)&&(ie=i().createImportStarHelper(ie));let H=Nt?[r.createParameterDeclaration(void 0,void 0,"s")]:[],ue;return m>=2?ue=r.createArrowFunction(void 0,void 0,H,void 0,void 0,ie):ue=r.createFunctionExpression(void 0,void 0,void 0,void 0,H,void 0,r.createBlock([r.createReturnStatement(ie)])),r.createCallExpression(r.createPropertyAccessExpression(k,"then"),void 0,[ue])}function Li(U,Me){return!mh(d)||ym(U)&2?Me:$se(U)?i().createImportStarHelper(Me):Me}function So(U,Me){return!mh(d)||ym(U)&2?Me:W3(U)?i().createImportStarHelper(Me):DK(U)?i().createImportDefaultHelper(Me):Me}function Qn(U){let Me,Nt=nR(U);if(y!==2)if(U.importClause){let k=[];Nt&&!II(U)?k.push(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,So(U,Ur(U)))):(k.push(r.createVariableDeclaration(r.getGeneratedNameForNode(U),void 0,void 0,So(U,Ur(U)))),Nt&&II(U)&&k.push(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,r.getGeneratedNameForNode(U)))),Me=Tn(Me,xr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList(k,m>=2?2:0)),U),U))}else return xr(at(r.createExpressionStatement(Ur(U)),U),U);else Nt&&II(U)&&(Me=Tn(Me,r.createVariableStatement(void 0,r.createVariableDeclarationList([xr(at(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,r.getGeneratedNameForNode(U)),U),U)],m>=2?2:0))));return Me=Io(Me,U),rh(Me)}function Ur(U){let Me=s1(r,U,N,h,p,d),Nt=[];return Me&&Nt.push(Me),r.createCallExpression(r.createIdentifier("require"),void 0,Nt)}function Er(U){x.assert(aE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return y!==2?$r(U,32)?Me=Tn(Me,xr(at(r.createExpressionStatement(ke(U.name,Ur(U))),U),U)):Me=Tn(Me,xr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(U.name),void 0,void 0,Ur(U))],m>=2?2:0)),U),U)):$r(U,32)&&(Me=Tn(Me,xr(at(r.createExpressionStatement(ke(r.getExportName(U),r.getLocalName(U))),U),U))),Me=ua(Me,U),rh(Me)}function on(U){if(!U.moduleSpecifier)return;let Me=r.getGeneratedNameForNode(U);if(U.exportClause&&xf(U.exportClause)){let Nt=[];y!==2&&Nt.push(xr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Me,void 0,void 0,Ur(U))])),U),U));for(let k of U.exportClause.elements)if(m===0)Nt.push(xr(at(r.createExpressionStatement(i().createCreateBindingHelper(Me,r.createStringLiteralFromNode(k.propertyName||k.name),k.propertyName?r.createStringLiteralFromNode(k.name):void 0)),k),k));else{let ie=!!mh(d)&&!(ym(U)&2)&&gr(k.propertyName||k.name)==="default",H=r.createPropertyAccessExpression(ie?i().createImportDefaultHelper(Me):Me,k.propertyName||k.name);Nt.push(xr(at(r.createExpressionStatement(ke(r.getExportName(k),H,void 0,!0)),k),k))}return rh(Nt)}else if(U.exportClause){let Nt=[];return Nt.push(xr(at(r.createExpressionStatement(ke(r.cloneNode(U.exportClause.name),Li(U,y!==2?Ur(U):IF(U)?Me:r.createIdentifier(gr(U.exportClause.name))))),U),U)),rh(Nt)}else return xr(at(r.createExpressionStatement(i().createExportStarHelper(y!==2?Ur(U):Me)),U),U)}function Ye(U){if(!U.isExportEquals)return ae(r.createIdentifier("default"),$e(U.expression,xe,ht),U,!0)}function Ot(U){let Me;return $r(U,32)?Me=Tn(Me,xr(at(r.createFunctionDeclaration(zn(U.modifiers,st,Sa),U.asteriskToken,r.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,xe,Ao),void 0,Sn(U.body,xe,e)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),rh(Me)}function In(U){let Me;return $r(U,32)?Me=Tn(Me,xr(at(r.createClassDeclaration(zn(U.modifiers,st,il),r.getDeclarationName(U,!0,!0),void 0,zn(U.heritageClauses,xe,Zp),zn(U.members,xe,$c)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),rh(Me)}function si(U){let Me,Nt,k;if($r(U,32)){let ie,H=!1;for(let ue of U.declarationList.declarations)if(Fe(ue.name)&&Bg(ue.name))if(ie||(ie=zn(U.modifiers,st,Sa)),ue.initializer){let We=r.updateVariableDeclaration(ue,ue.name,void 0,void 0,ke(ue.name,$e(ue.initializer,xe,ht)));Nt=Tn(Nt,We)}else Nt=Tn(Nt,ue);else if(ue.initializer)if(!Qo(ue.name)&&(Os(ue.initializer)||Ps(ue.initializer)||Zc(ue.initializer))){let We=r.createAssignment(at(r.createPropertyAccessExpression(r.createIdentifier("exports"),ue.name),ue.name),r.createIdentifier(Xf(ue.name))),Ne=r.createVariableDeclaration(ue.name,ue.exclamationToken,ue.type,$e(ue.initializer,xe,ht));Nt=Tn(Nt,Ne),k=Tn(k,We),H=!0}else k=Tn(k,$i(ue));if(Nt&&(Me=Tn(Me,r.updateVariableStatement(U,ie,r.updateVariableDeclarationList(U.declarationList,Nt)))),k){let ue=xr(at(r.createExpressionStatement(r.inlineExpressions(k)),U),U);H&&Tk(ue),Me=Tn(Me,ue)}}else Me=Tn(Me,Sn(U,xe,e));return Me=Ba(Me,U),rh(Me)}function yi(U,Me,Nt){let k=un(U);if(k){let ie=X4(U)?Me:r.createAssignment(U,Me);for(let H of k)lr(ie,8),ie=ke(H,ie,Nt);return ie}return r.createAssignment(U,Me)}function $i(U){return Qo(U.name)?UT($e(U,xe,rk),xe,e,0,!1,yi):r.createAssignment(at(r.createPropertyAccessExpression(r.createIdentifier("exports"),U.name),U.name),U.initializer?$e(U.initializer,xe,ht):r.createVoidZero())}function Io(U,Me){if(D.exportEquals)return U;let Nt=Me.importClause;if(!Nt)return U;let k=new f1;Nt.name&&(U=ct(U,k,Nt));let ie=Nt.namedBindings;if(ie)switch(ie.kind){case 274:U=ct(U,k,ie);break;case 275:for(let H of ie.elements)U=ct(U,k,H,!0);break}return U}function ua(U,Me){return D.exportEquals?U:ct(U,new f1,Me)}function Ba(U,Me){return vn(U,Me.declarationList,!1)}function vn(U,Me,Nt){if(D.exportEquals)return U;for(let k of Me.declarations)U=kn(U,k,Nt);return U}function kn(U,Me,Nt){if(D.exportEquals)return U;if(Qo(Me.name))for(let k of Me.name.elements)jc(k)||(U=kn(U,k,Nt));else!rl(Me.name)&&(!wi(Me)||Me.initializer||Nt)&&(U=ct(U,new f1,Me));return U}function Be(U,Me){if(D.exportEquals)return U;let Nt=new f1;if($r(Me,32)){let k=$r(Me,2048)?r.createIdentifier("default"):r.getDeclarationName(Me);U=lt(U,Nt,k,r.getLocalName(Me),Me)}return Me.name&&(U=ct(U,Nt,Me)),U}function ct(U,Me,Nt,k){let ie=r.getDeclarationName(Nt),H=D.exportSpecifiers.get(ie);if(H)for(let ue of H)U=lt(U,Me,ue.name,ie,ue.name,void 0,k);return U}function lt(U,Me,Nt,k,ie,H,ue){return Me.has(Nt)||(Me.set(Nt,!0),U=Tn(U,ae(Nt,k,ie,H,ue))),U}function Rt(){let U;return m===0?U=r.createExpressionStatement(ke(r.createIdentifier("__esModule"),r.createTrue())):U=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())])])),lr(U,2097152),U}function ae(U,Me,Nt,k,ie){let H=at(r.createExpressionStatement(ke(U,Me,void 0,ie)),Nt);return Jd(H),k||lr(H,3072),H}function ke(U,Me,Nt,k){return at(k&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(U),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(Me)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(U)),Me),Nt)}function st(U){switch(U.kind){case 95:case 90:return}return U}function G(U,Me,Nt){Me.kind===312?(N=Me,D=A[wd(N)],S(U,Me,Nt),N=void 0,D=void 0):S(U,Me,Nt)}function et(U,Me){return Me=E(U,Me),Me.id&&w[Me.id]?Me:U===1?He(Me):Zu(Me)?Tt(Me):Me}function Tt(U){let Me=U.name,Nt=hn(Me);if(Nt!==Me){if(U.objectAssignmentInitializer){let k=r.createAssignment(Nt,U.objectAssignmentInitializer);return at(r.createPropertyAssignment(Me,k),U)}return at(r.createPropertyAssignment(Me,Nt),U)}return U}function He(U){switch(U.kind){case 80:return hn(U);case 213:return ut(U);case 215:return Ft(U);case 226:return dn(U)}return U}function ut(U){if(Fe(U.expression)){let Me=hn(U.expression);if(w[rs(Me)]=!0,!Fe(Me)&&!(za(U.expression)&8192))return BI(r.updateCallExpression(U,Me,void 0,U.arguments),16)}return U}function Ft(U){if(Fe(U.tag)){let Me=hn(U.tag);if(w[rs(Me)]=!0,!Fe(Me)&&!(za(U.tag)&8192))return BI(r.updateTaggedTemplateExpression(U,Me,void 0,U.template),16)}return U}function hn(U){var Me,Nt;if(za(U)&8192){let k=jk(N);return k?r.createPropertyAccessExpression(k,U):U}else if(!(rl(U)&&!(U.emitNode.autoGenerate.flags&64))&&!Bg(U)){let k=p.getReferencedExportContainer(U,X4(U));if(k&&k.kind===312)return at(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(U)),U);let ie=p.getReferencedImportDeclaration(U);if(ie){if(gh(ie))return at(r.createPropertyAccessExpression(r.getGeneratedNameForNode(ie.parent),r.createIdentifier("default")),U);if(Qu(ie)){let H=ie.propertyName||ie.name;return at(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Nt=(Me=ie.parent)==null?void 0:Me.parent)==null?void 0:Nt.parent)||ie),r.cloneNode(H)),U)}}}return U}function dn(U){if(Ly(U.operatorToken.kind)&&Fe(U.left)&&(!rl(U.left)||t2(U.left))&&!Bg(U.left)){let Me=un(U.left);if(Me){let Nt=U;for(let k of Me)w[rs(Nt)]=!0,Nt=ke(k,Nt,U);return Nt}}return U}function un(U){if(rl(U)){if(t2(U)){let Me=D?.exportSpecifiers.get(U);if(Me){let Nt=[];for(let k of Me)Nt.push(k.name);return Nt}}}else{let Me=p.getReferencedImportDeclaration(U);if(Me)return D?.exportedBindings[wd(Me)];let Nt=new Set,k=p.getReferencedValueDeclarations(U);if(k){for(let ie of k){let H=D?.exportedBindings[wd(ie)];if(H)for(let ue of H)Nt.add(ue)}if(Nt.size)return Wo(Nt)}}}}var zIe,eVe=bt({"src/compiler/transformers/module/module.ts"(){"use strict";ea(),zIe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Nle(e){let{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),d=e.getEmitHost(),p=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=ke,e.onEmitNode=ae,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);let m=[],y=[],E=[],S=[],A,N,D,w,j,K,Y;return Im(e,B);function B(U){if(U.isDeclarationFile||!(TI(U,s)||U.transformFlags&8388608))return U;let Me=wd(U);A=U,K=U,N=m[Me]=CK(e,U),D=t.createUniqueName("exports"),y[Me]=D,w=S[Me]=t.createUniqueName("context");let Nt=ce(N.externalImports),k=z(U,Nt),ie=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,D),t.createParameterDeclaration(void 0,void 0,w)],void 0,k),H=Uk(t,U,d,s),ue=t.createArrayLiteralExpression(mn(Nt,Ne=>Ne.name)),We=lr(t.updateSourceFile(U,at(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,H?[H,ue,ie]:[ue,ie]))]),U.statements)),2048);return xs(s)||qoe(We,k,Ne=>!Ne.scoped),Y&&(E[Me]=Y,Y=void 0),A=void 0,N=void 0,D=void 0,w=void 0,j=void 0,K=void 0,We}function ce(U){let Me=new Map,Nt=[];for(let k of U){let ie=s1(t,k,A,d,l,s);if(ie){let H=ie.text,ue=Me.get(H);ue!==void 0?Nt[ue].externalImports.push(k):(Me.set(H,Nt.length),Nt.push({name:ie,externalImports:[k]}))}}return Nt}function z(U,Me){let Nt=[];r();let k=cu(s,"alwaysStrict")||!s.noImplicitUseStrict&&oc(A),ie=t.copyPrologue(U.statements,Nt,k,q);Nt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(w,t.createPropertyAccessExpression(w,"id")))]))),$e(N.externalHelpersImportDeclaration,q,Hi);let H=zn(U.statements,q,Hi,ie);Hr(Nt,j),Jh(Nt,i());let ue=Z(Nt),We=U.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Ne=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ge(ue,Me)),t.createPropertyAssignment("execute",t.createFunctionExpression(We,void 0,void 0,void 0,[],void 0,t.createBlock(H,!0)))],!0);return Nt.push(t.createReturnStatement(Ne)),t.createBlock(Nt,!0)}function Z(U){if(!N.hasExportStarsToExportValues)return;if(!N.exportedNames&&N.exportSpecifiers.size===0){let ie=!1;for(let H of N.externalImports)if(H.kind===278&&H.exportClause){ie=!0;break}if(!ie){let H=me(void 0);return U.push(H),H.name}}let Me=[];if(N.exportedNames)for(let ie of N.exportedNames)ie.escapedText!=="default"&&Me.push(t.createPropertyAssignment(t.createStringLiteralFromNode(ie),t.createTrue()));let Nt=t.createUniqueName("exportedNames");U.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Nt,void 0,void 0,t.createObjectLiteralExpression(Me,!0))])));let k=me(Nt);return U.push(k),k.name}function me(U){let Me=t.createUniqueName("exportStar"),Nt=t.createIdentifier("m"),k=t.createIdentifier("n"),ie=t.createIdentifier("exports"),H=t.createStrictInequality(k,t.createStringLiteral("default"));return U&&(H=t.createLogicalAnd(H,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(U,"hasOwnProperty"),void 0,[k])))),t.createFunctionDeclaration(void 0,void 0,Me,void 0,[t.createParameterDeclaration(void 0,void 0,Nt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(k)]),Nt,t.createBlock([lr(t.createIfStatement(H,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ie,k),t.createElementAccessExpression(Nt,k)))),1)])),t.createExpressionStatement(t.createCallExpression(D,void 0,[ie]))],!0))}function ge(U,Me){let Nt=[];for(let k of Me){let ie=gn(k.externalImports,We=>FR(t,We,A)),H=ie?t.getGeneratedNameForNode(ie):t.createUniqueName(""),ue=[];for(let We of k.externalImports){let Ne=FR(t,We,A);switch(We.kind){case 272:if(!We.importClause)break;case 271:x.assert(Ne!==void 0),ue.push(t.createExpressionStatement(t.createAssignment(Ne,H))),$r(We,32)&&ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(gr(Ne)),H])));break;case 278:if(x.assert(Ne!==void 0),We.exportClause)if(xf(We.exportClause)){let It=[];for(let Dt of We.exportClause.elements)It.push(t.createPropertyAssignment(t.createStringLiteral(gr(Dt.name)),t.createElementAccessExpression(H,t.createStringLiteral(gr(Dt.propertyName||Dt.name)))));ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createObjectLiteralExpression(It,!0)])))}else ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(gr(We.exportClause.name)),H])));else ue.push(t.createExpressionStatement(t.createCallExpression(U,void 0,[H])));break}}Nt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,H)],void 0,t.createBlock(ue,!0)))}return t.createArrayLiteralExpression(Nt,!0)}function q(U){switch(U.kind){case 272:return J(U);case 271:return pe(U);case 278:return re(U);case 277:return xe(U);default:return en(U)}}function J(U){let Me;return U.importClause&&o(FR(t,U,A)),rh(Et(Me,U))}function re(U){x.assertIsDefined(U)}function pe(U){x.assert(aE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return o(FR(t,U,A)),rh(be(Me,U))}function xe(U){if(U.isExportEquals)return;let Me=$e(U.expression,$i,ht);return pt(t.createIdentifier("default"),Me,!0)}function fe(U){$r(U,32)?j=Tn(j,t.updateFunctionDeclaration(U,zn(U.modifiers,Rt,il),U.asteriskToken,t.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,$i,Ao),void 0,$e(U.body,$i,Ko))):j=Tn(j,Sn(U,$i,e)),j=Wt(j,U)}function ne(U){let Me,Nt=t.getLocalName(U);return o(Nt),Me=Tn(Me,at(t.createExpressionStatement(t.createAssignment(Nt,at(t.createClassExpression(zn(U.modifiers,Rt,il),U.name,void 0,zn(U.heritageClauses,$i,Zp),zn(U.members,$i,$c)),U))),U)),Me=Wt(Me,U),rh(Me)}function he(U){if(!Ge(U.declarationList))return $e(U,$i,Hi);let Me;if(v2(U.declarationList)||y2(U.declarationList)){let Nt=zn(U.modifiers,Rt,il),k=[];for(let H of U.declarationList.declarations)k.push(t.updateVariableDeclaration(H,t.getGeneratedNameForNode(H.name),void 0,void 0,ve(H,!1)));let ie=t.updateVariableDeclarationList(U.declarationList,k);Me=Tn(Me,t.updateVariableStatement(U,Nt,ie))}else{let Nt,k=$r(U,32);for(let ie of U.declarationList.declarations)ie.initializer?Nt=Tn(Nt,ve(ie,k)):Ce(ie);Nt&&(Me=Tn(Me,at(t.createExpressionStatement(t.inlineExpressions(Nt)),U)))}return Me=ze(Me,U,!1),rh(Me)}function Ce(U){if(Qo(U.name))for(let Me of U.name.elements)jc(Me)||Ce(Me);else o(t.cloneNode(U.name))}function Ge(U){return(za(U)&4194304)===0&&(K.kind===312||(Nl(U).flags&7)===0)}function ve(U,Me){let Nt=Me?Ae:De;return Qo(U.name)?UT(U,$i,e,0,!1,Nt):U.initializer?Nt(U.name,$e(U.initializer,$i,ht)):U.name}function Ae(U,Me,Nt){return Le(U,Me,Nt,!0)}function De(U,Me,Nt){return Le(U,Me,Nt,!1)}function Le(U,Me,Nt,k){return o(t.cloneNode(U)),k?Zt(U,dn(at(t.createAssignment(U,Me),Nt))):dn(at(t.createAssignment(U,Me),Nt))}function Et(U,Me){if(N.exportEquals)return U;let Nt=Me.importClause;if(!Nt)return U;Nt.name&&(U=_t(U,Nt));let k=Nt.namedBindings;if(k)switch(k.kind){case 274:U=_t(U,k);break;case 275:for(let ie of k.elements)U=_t(U,ie);break}return U}function be(U,Me){return N.exportEquals?U:_t(U,Me)}function ze(U,Me,Nt){if(N.exportEquals)return U;for(let k of Me.declarationList.declarations)(k.initializer||Nt)&&(U=tt(U,k,Nt));return U}function tt(U,Me,Nt){if(N.exportEquals)return U;if(Qo(Me.name))for(let k of Me.name.elements)jc(k)||(U=tt(U,k,Nt));else if(!rl(Me.name)){let k;Nt&&(U=Je(U,Me.name,t.getLocalName(Me)),k=gr(Me.name)),U=_t(U,Me,k)}return U}function Wt(U,Me){if(N.exportEquals)return U;let Nt;if($r(Me,32)){let k=$r(Me,2048)?t.createStringLiteral("default"):Me.name;U=Je(U,k,t.getLocalName(Me)),Nt=Xf(k)}return Me.name&&(U=_t(U,Me,Nt)),U}function _t(U,Me,Nt){if(N.exportEquals)return U;let k=t.getDeclarationName(Me),ie=N.exportSpecifiers.get(k);if(ie)for(let H of ie)H.name.escapedText!==Nt&&(U=Je(U,H.name,k));return U}function Je(U,Me,Nt,k){return U=Tn(U,pt(Me,Nt,k)),U}function pt(U,Me,Nt){let k=t.createExpressionStatement(Zt(U,Me));return Jd(k),Nt||lr(k,3072),k}function Zt(U,Me){let Nt=Fe(U)?t.createStringLiteralFromNode(U):U;return lr(Me,za(Me)|3072),ic(t.createCallExpression(D,void 0,[Nt,Me]),Me)}function en(U){switch(U.kind){case 243:return he(U);case 262:return fe(U);case 263:return ne(U);case 248:return Dn(U,!0);case 249:return Kn(U);case 250:return pn(U);case 246:return hi(U);case 247:return uo(U);case 256:return Li(U);case 254:return So(U);case 245:return Qn(U);case 255:return Ur(U);case 269:return Er(U);case 296:return on(U);case 297:return Ye(U);case 258:return Ot(U);case 299:return In(U);case 241:return si(U);default:return $i(U)}}function Dn(U,Me){let Nt=K;return K=U,U=t.updateForStatement(U,$e(U.initializer,Me?Kt:Io,vf),$e(U.condition,$i,ht),$e(U.incrementor,Io,ht),Tu(U.statement,Me?en:$i,e)),K=Nt,U}function Kn(U){let Me=K;return K=U,U=t.updateForInStatement(U,Kt(U.initializer),$e(U.expression,$i,ht),Tu(U.statement,en,e)),K=Me,U}function pn(U){let Me=K;return K=U,U=t.updateForOfStatement(U,U.awaitModifier,Kt(U.initializer),$e(U.expression,$i,ht),Tu(U.statement,en,e)),K=Me,U}function Xt(U){return Uc(U)&&Ge(U)}function Kt(U){if(Xt(U)){let Me;for(let Nt of U.declarations)Me=Tn(Me,ve(Nt,!1)),Nt.initializer||Ce(Nt);return Me?t.inlineExpressions(Me):t.createOmittedExpression()}else return $e(U,Io,vf)}function hi(U){return t.updateDoStatement(U,Tu(U.statement,en,e),$e(U.expression,$i,ht))}function uo(U){return t.updateWhileStatement(U,$e(U.expression,$i,ht),Tu(U.statement,en,e))}function Li(U){return t.updateLabeledStatement(U,U.label,x.checkDefined($e(U.statement,en,Hi,t.liftToBlock)))}function So(U){return t.updateWithStatement(U,$e(U.expression,$i,ht),x.checkDefined($e(U.statement,en,Hi,t.liftToBlock)))}function Qn(U){return t.updateIfStatement(U,$e(U.expression,$i,ht),x.checkDefined($e(U.thenStatement,en,Hi,t.liftToBlock)),$e(U.elseStatement,en,Hi,t.liftToBlock))}function Ur(U){return t.updateSwitchStatement(U,$e(U.expression,$i,ht),x.checkDefined($e(U.caseBlock,en,pP)))}function Er(U){let Me=K;return K=U,U=t.updateCaseBlock(U,zn(U.clauses,en,mF)),K=Me,U}function on(U){return t.updateCaseClause(U,$e(U.expression,$i,ht),zn(U.statements,en,Hi))}function Ye(U){return Sn(U,en,e)}function Ot(U){return Sn(U,en,e)}function In(U){let Me=K;return K=U,U=t.updateCatchClause(U,U.variableDeclaration,x.checkDefined($e(U.block,en,Ko))),K=Me,U}function si(U){let Me=K;return K=U,U=Sn(U,en,e),K=Me,U}function yi(U,Me){if(!(U.transformFlags&276828160))return U;switch(U.kind){case 248:return Dn(U,!1);case 244:return ua(U);case 217:return Ba(U,Me);case 360:return vn(U,Me);case 226:if(ky(U))return Be(U,Me);break;case 213:if(Op(U))return kn(U);break;case 224:case 225:return lt(U,Me)}return Sn(U,$i,e)}function $i(U){return yi(U,!1)}function Io(U){return yi(U,!0)}function ua(U){return t.updateExpressionStatement(U,$e(U.expression,Io,ht))}function Ba(U,Me){return t.updateParenthesizedExpression(U,$e(U.expression,Me?Io:$i,ht))}function vn(U,Me){return t.updatePartiallyEmittedExpression(U,$e(U.expression,Me?Io:$i,ht))}function kn(U){let Me=s1(t,U,A,d,l,s),Nt=$e(Xc(U.arguments),$i,ht),k=Me&&(!Nt||!Da(Nt)||Nt.text!==Me.text)?Me:Nt;return t.createCallExpression(t.createPropertyAccessExpression(w,t.createIdentifier("import")),void 0,k?[k]:[])}function Be(U,Me){return ct(U.left)?UT(U,$i,e,0,!Me):Sn(U,$i,e)}function ct(U){if(Mc(U,!0))return ct(U.left);if(Jm(U))return ct(U.expression);if(Ma(U))return gt(U.properties,ct);if(uu(U))return gt(U.elements,ct);if(Zu(U))return ct(U.name);if(mc(U))return ct(U.initializer);if(Fe(U)){let Me=l.getReferencedExportContainer(U);return Me!==void 0&&Me.kind===312}else return!1}function lt(U,Me){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!rl(U.operand)&&!Bg(U.operand)&&!$j(U.operand)){let Nt=Ft(U.operand);if(Nt){let k,ie=$e(U.operand,$i,ht);qv(U)?ie=t.updatePrefixUnaryExpression(U,ie):(ie=t.updatePostfixUnaryExpression(U,ie),Me||(k=t.createTempVariable(o),ie=t.createAssignment(k,ie),at(ie,U)),ie=t.createComma(ie,t.cloneNode(U.operand)),at(ie,U));for(let H of Nt)ie=Zt(H,dn(ie));return k&&(ie=t.createComma(ie,k),at(ie,U)),ie}}return Sn(U,$i,e)}function Rt(U){switch(U.kind){case 95:case 90:return}return U}function ae(U,Me,Nt){if(Me.kind===312){let k=wd(Me);A=Me,N=m[k],D=y[k],Y=E[k],w=S[k],Y&&delete E[k],h(U,Me,Nt),A=void 0,N=void 0,D=void 0,w=void 0,Y=void 0}else h(U,Me,Nt)}function ke(U,Me){return Me=p(U,Me),un(Me)?Me:U===1?et(Me):U===4?st(Me):Me}function st(U){switch(U.kind){case 304:return G(U)}return U}function G(U){var Me,Nt;let k=U.name;if(!rl(k)&&!Bg(k)){let ie=l.getReferencedImportDeclaration(k);if(ie){if(gh(ie))return at(t.createPropertyAssignment(t.cloneNode(k),t.createPropertyAccessExpression(t.getGeneratedNameForNode(ie.parent),t.createIdentifier("default"))),U);if(Qu(ie))return at(t.createPropertyAssignment(t.cloneNode(k),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Nt=(Me=ie.parent)==null?void 0:Me.parent)==null?void 0:Nt.parent)||ie),t.cloneNode(ie.propertyName||ie.name))),U)}}return U}function et(U){switch(U.kind){case 80:return Tt(U);case 226:return He(U);case 236:return ut(U)}return U}function Tt(U){var Me,Nt;if(za(U)&8192){let k=jk(A);return k?t.createPropertyAccessExpression(k,U):U}if(!rl(U)&&!Bg(U)){let k=l.getReferencedImportDeclaration(U);if(k){if(gh(k))return at(t.createPropertyAccessExpression(t.getGeneratedNameForNode(k.parent),t.createIdentifier("default")),U);if(Qu(k))return at(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Nt=(Me=k.parent)==null?void 0:Me.parent)==null?void 0:Nt.parent)||k),t.cloneNode(k.propertyName||k.name)),U)}}return U}function He(U){if(Ly(U.operatorToken.kind)&&Fe(U.left)&&(!rl(U.left)||t2(U.left))&&!Bg(U.left)){let Me=Ft(U.left);if(Me){let Nt=U;for(let k of Me)Nt=Zt(k,dn(Nt));return Nt}}return U}function ut(U){return Jx(U)?t.createPropertyAccessExpression(w,t.createIdentifier("meta")):U}function Ft(U){let Me,Nt=hn(U);if(Nt){let k=l.getReferencedExportContainer(U,!1);k&&k.kind===312&&(Me=Tn(Me,t.getDeclarationName(Nt))),Me=Hr(Me,N?.exportedBindings[wd(Nt)])}else if(rl(U)&&t2(U)){let k=N?.exportSpecifiers.get(U);if(k){let ie=[];for(let H of k)ie.push(H.name);return ie}}return Me}function hn(U){if(!rl(U)){let Me=l.getReferencedImportDeclaration(U);if(Me)return Me;let Nt=l.getReferencedValueDeclaration(U);if(Nt&&N?.exportedBindings[wd(Nt)])return Nt;let k=l.getReferencedValueDeclarations(U);if(k){for(let ie of k)if(ie!==Nt&&N?.exportedBindings[wd(ie)])return ie}return Nt}}function dn(U){return Y===void 0&&(Y=[]),Y[rs(U)]=!0,U}function un(U){return Y&&U.id&&Y[U.id]}}var tVe=bt({"src/compiler/transformers/module/system.ts"(){"use strict";ea()}});function GK(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=ns(s),d=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=Y,e.onSubstituteNode=B,e.enableEmitNotification(312),e.enableSubstitution(80);let h,m,y;return Im(e,E);function E(z){if(z.isDeclarationFile)return z;if(oc(z)||em(s)){m=z,y=void 0;let Z=S(z);return m=void 0,y&&(Z=t.updateSourceFile(Z,at(t.createNodeArray(jV(Z.statements.slice(),y)),Z.statements))),!oc(z)||Ld(s)===200||gt(Z.statements,a2)?Z:t.updateSourceFile(Z,at(t.createNodeArray([...Z.statements,Bk(t)]),Z.statements))}return z}function S(z){let Z=bH(t,r(),z,s);if(Z){let me=[],ge=t.copyPrologue(z.statements,me);return Tn(me,Z),Hr(me,zn(z.statements,A,Hi,ge)),t.updateSourceFile(z,at(t.createNodeArray(me),z.statements))}else return Sn(z,A,e)}function A(z){switch(z.kind){case 271:return Ld(s)>=100?D(z):void 0;case 277:return j(z);case 278:return K(z)}return z}function N(z){let Z=s1(t,z,x.checkDefined(m),i,o,s),me=[];if(Z&&me.push(Z),Ld(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,me);if(!y){let q=t.createUniqueName("_createRequire",48),J=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),q)])),t.createStringLiteral("module"),void 0),re=t.createUniqueName("__require",48),pe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(re,void 0,void 0,t.createCallExpression(t.cloneNode(q),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));y=[J,pe]}let ge=y[1].declarationList.declarations[0].name;return x.assertNode(ge,Fe),t.createCallExpression(t.cloneNode(ge),void 0,me)}function D(z){x.assert(aE(z),"import= for internal module references should be handled in an earlier transformer.");let Z;return Z=Tn(Z,xr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(z.name),void 0,void 0,N(z))],l>=2?2:0)),z),z)),Z=w(Z,z),rh(Z)}function w(z,Z){return $r(Z,32)&&(z=Tn(z,t.createExportDeclaration(void 0,Z.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,gr(Z.name))])))),z}function j(z){return z.isExportEquals?Ld(s)===200?xr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),z.expression)),z):void 0:z}function K(z){if(s.module!==void 0&&s.module>5||!z.exportClause||!yh(z.exportClause)||!z.moduleSpecifier)return z;let Z=z.exportClause.name,me=t.getGeneratedNameForNode(Z),ge=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(me)),z.moduleSpecifier,z.attributes);xr(ge,z.exportClause);let q=IF(z)?t.createExportDefault(me):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,me,Z)]));return xr(q,z),[ge,q]}function Y(z,Z,me){Yi(Z)?((oc(Z)||em(s))&&s.importHelpers&&(h=new Map),d(z,Z,me),h=void 0):d(z,Z,me)}function B(z,Z){return Z=p(z,Z),h&&Fe(Z)&&za(Z)&8192?ce(Z):Z}function ce(z){let Z=gr(z),me=h.get(Z);return me||h.set(Z,me=t.createUniqueName(Z,48)),me}}var nVe=bt({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";ea()}});function Ple(e){let t=e.onSubstituteNode,r=e.onEmitNode,i=GK(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let l=BK(e),d=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let h;return A;function m(D,w){return Yi(w)?(h=w,t(D,w)):h?h.impliedNodeFormat===99?o(D,w):d(D,w):t(D,w)}function y(D,w,j){return Yi(w)&&(h=w),h?h.impliedNodeFormat===99?s(D,w,j):p(D,w,j):r(D,w,j)}function E(D){return D.impliedNodeFormat===99?i:l}function S(D){if(D.isDeclarationFile)return D;h=D;let w=E(D)(D);return h=void 0,x.assert(Yi(w)),w}function A(D){return D.kind===312?S(D):N(D)}function N(D){return e.factory.createBundle(mn(D.sourceFiles,S),D.prepends)}}var rVe=bt({"src/compiler/transformers/module/node.ts"(){"use strict";ea()}});function H3(e){return wi(e)||Uo(e)||_p(e)||Xa(e)||Cy(e)||Pv(e)||Mk(e)||XI(e)||Ul(e)||_h(e)||Ec(e)||Ao(e)||fl(e)||zy(e)||td(e)||Tm(e)||Pl(e)||G0(e)||kr(e)||Js(e)||dr(e)||qf(e)}function Mle(e){if(Cy(e)||Pv(e))return t;return _h(e)||Ul(e)?i:Gy(e);function t(s){let l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return ra(e)?s.errorModuleName?s.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){let l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return ra(e)?s.errorModuleName?s.accessibility===2?f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Gy(e){if(wi(e)||Uo(e)||_p(e)||kr(e)||Js(e)||dr(e)||Xa(e)||Pl(e))return r;return Cy(e)||Pv(e)?i:Mk(e)||XI(e)||Ul(e)||_h(e)||Ec(e)||G0(e)?o:Ao(e)?dp(e,e.parent)&&$r(e.parent,2)?r:s:fl(e)?d:zy(e)?p:td(e)?h:Tm(e)||qf(e)?m:x.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${x.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.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&&$r(e.parent,2))return ra(e)?y.errorModuleName?y.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.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?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(y){let E=t(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function i(y){let E;return e.kind===178?ra(e)?E=y.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ra(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:e.name,typeName:e.name}}function o(y){let E;switch(e.kind){case 180:E=y.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:E=y.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:E=y.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:ra(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=y.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return x.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:E,errorNode:e.name||e}}function s(y){let E=l(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return ra(e.parent)?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.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?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return x.fail(`Unknown parent for parameter: ${x.formatSyntaxKind(e.parent.kind)}`)}}function d(){let y;switch(e.parent.kind){case 263:y=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:ra(e.parent)?y=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return x.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function p(){let y;return Sc(e.parent.parent)?y=Zp(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:Po(e.parent.parent)}}function h(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(y){return{diagnosticMessage:y.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:qf(e)?x.checkDefined(e.typeExpression):e.type,typeName:qf(e)?Po(e):e.name}}}var iVe=bt({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";ea()}});function Lle(e,t,r){let i=e.getCompilerOptions();return Aw(t,e,L,i,r?[r]:jr(e.getSourceFiles(),uj),[VK],!1).diagnostics}function VK(e){let t=()=>x.fail("Diagnostic emitted without context"),r=t,i=!0,o=!1,s=!1,l=!1,d=!1,p,h,m,y,E,S,{factory:A}=e,N=e.getEmitHost(),D={trackSymbol:fe,reportInaccessibleThisError:ve,reportInaccessibleUniqueSymbolError:Ce,reportCyclicStructureError:Ge,reportPrivateInBaseOfClassExpression:ne,reportLikelyUnsafeImportRequiredError:Ae,reportTruncationError:De,moduleResolverHost:N,trackReferencedAmbientModule:J,trackExternalModuleSymbolOfImportTypeNode:xe,reportNonlocalAugmentation:Le,reportNonSerializableProperty:Et},w,j,K,Y,B,ce,z=e.getEmitResolver(),Z=e.getCompilerOptions(),{noResolve:me,stripInternal:ge}=Z;return ze;function q(G){if(G){h=h||new Set;for(let et of G)h.add(et)}}function J(G,et){let Tt=z.getTypeReferenceDirectivesForSymbol(et,-1);if(Nn(Tt))return q(Tt);let He=Gn(G);Y.set(wd(He),He)}function re(G){let et=eR(G),Tt=et&&z.tryFindAmbientModule(et);if(Tt?.declarations)for(let He of Tt.declarations)Md(He)&&Gn(He)!==K&&J(He,Tt)}function pe(G){if(G.accessibility===0){if(G.aliasesToMakeVisible)if(!m)m=G.aliasesToMakeVisible;else for(let et of G.aliasesToMakeVisible)yf(m,et)}else{let et=r(G);if(et)return et.typeName?e.addDiagnostic(Pr(G.errorNode||et.errorNode,et.diagnosticMessage,uc(et.typeName),G.errorSymbolName,G.errorModuleName)):e.addDiagnostic(Pr(G.errorNode||et.errorNode,et.diagnosticMessage,G.errorSymbolName,G.errorModuleName)),!0}return!1}function xe(G){o||(S||(S=[])).push(G)}function fe(G,et,Tt){if(G.flags&262144)return!1;let He=pe(z.isSymbolAccessible(G,et,Tt,!0));return q(z.getTypeReferenceDirectivesForSymbol(G,Tt)),He}function ne(G){(w||j)&&e.addDiagnostic(Pr(w||j,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,G))}function he(){return w?Ts(w):j&&Po(j)?Ts(Po(j)):j&&Ll(j)?j.isExportEquals?"export=":"default":"(Missing)"}function Ce(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,he(),"unique symbol"))}function Ge(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,he()))}function ve(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,he(),"this"))}function Ae(G){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,he(),G))}function De(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Le(G,et,Tt){var He;let ut=(He=et.declarations)==null?void 0:He.find(hn=>Gn(hn)===G),Ft=jr(Tt.declarations,hn=>Gn(hn)!==G);if(ut&&Ft)for(let hn of Ft)e.addDiagnostic(Pa(Pr(hn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Pr(ut,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Et(G){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,G))}function be(G,et){let Tt=r;r=ut=>ut.errorNode&&H3(ut.errorNode)?Gy(ut.errorNode)(ut):{diagnosticMessage:ut.errorModuleName?f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:ut.errorNode||G};let He=z.getDeclarationStatementsForSourceFile(G,HT,D,et);return r=Tt,He}function ze(G){if(G.kind===312&&G.isDeclarationFile)return G;if(G.kind===313){o=!0,Y=new Map,B=new Map;let Me=!1,Nt=A.createBundle(mn(G.sourceFiles,H=>{if(H.isDeclarationFile)return;if(Me=Me||H.hasNoDefaultLib,K=H,p=H,m=void 0,E=!1,y=new Map,r=t,l=!1,d=!1,tt(H,Y),Wt(H,B),wp(H)||Jf(H)){s=!1,i=!1;let We=su(H)?A.createNodeArray(be(H,!0)):zn(H.statements,si,Hi);return A.updateSourceFile(H,[A.createModuleDeclaration([A.createModifier(138)],A.createStringLiteral(i6(e.getEmitHost(),H)),A.createModuleBlock(at(A.createNodeArray(Ye(We)),H.statements)))],!0,[],[],!1,[])}i=!0;let ue=su(H)?A.createNodeArray(be(H)):zn(H.statements,si,Hi);return A.updateSourceFile(H,Ye(ue),!0,[],[],!1,[])}),to(G.prepends,H=>{if(H.kind===315){let ue=FU(H,"dts",ge);return Me=Me||!!ue.hasNoDefaultLib,tt(ue,Y),q(mn(ue.typeReferenceDirectives,We=>[We.fileName,We.resolutionMode])),Wt(ue,B),ue}return H}));Nt.syntheticFileReferences=[],Nt.syntheticTypeReferences=dn(),Nt.syntheticLibReferences=hn(),Nt.hasNoDefaultLib=Me;let k=oi(Pd(zP(G,N,!0).declarationFilePath)),ie=U(Nt.syntheticFileReferences,k);return Y.forEach(ie),Nt}i=!0,l=!1,d=!1,p=G,K=G,r=t,o=!1,s=!1,E=!1,m=void 0,y=new Map,h=void 0,Y=tt(K,new Map),B=Wt(K,new Map);let et=[],Tt=oi(Pd(zP(G,N,!0).declarationFilePath)),He=U(et,Tt),ut;if(su(K))ut=A.createNodeArray(be(G)),Y.forEach(He),ce=jr(ut,pT);else{let Me=zn(G.statements,si,Hi);ut=at(A.createNodeArray(Ye(Me)),G.statements),Y.forEach(He),ce=jr(ut,pT),oc(G)&&(!s||l&&!d)&&(ut=at(A.createNodeArray([...ut,Bk(A)]),ut))}let Ft=A.updateSourceFile(G,ut,!0,et,dn(),G.hasNoDefaultLib,hn());return Ft.exportedModulesFromDeclarationEmit=S,Ft;function hn(){return Wo(B.keys(),Me=>({fileName:Me,pos:-1,end:-1}))}function dn(){return h?to(Wo(h.keys()),un):[]}function un([Me,Nt]){if(ce){for(let k of ce)if(td(k)&&vh(k.moduleReference)){let ie=k.moduleReference.expression;if(as(ie)&&ie.text===Me)return}else if(Lc(k)&&Da(k.moduleSpecifier)&&k.moduleSpecifier.text===Me)return}return{fileName:Me,pos:-1,end:-1,...Nt?{resolutionMode:Nt}:void 0}}function U(Me,Nt){return k=>{if(S?.includes(k.symbol))return;let ie;if(k.isDeclarationFile)ie=k.fileName;else{if(o&&Bo(G.sourceFiles,k))return;let H=zP(k,N,!0);ie=H.declarationFilePath||H.jsFilePath||k.fileName}if(ie){let H=x3(Z,K,ho(Nt,N.getCurrentDirectory()),ho(ie,N.getCurrentDirectory()),N);if(!Lp(H)){q([[H,void 0]]);return}let ue=_I(Nt,ie,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(ao(ue,"./")&&mI(ue)&&(ue=ue.substring(2)),ao(ue,"node_modules/")||TE(ue))return;Me.push({pos:-1,end:-1,fileName:ue})}}}}function tt(G,et){return me||!WT(G)&&su(G)||gn(G.referencedFiles,Tt=>{let He=N.getSourceFileFromReference(G,Tt);He&&et.set(wd(He),He)}),et}function Wt(G,et){return gn(G.libReferenceDirectives,Tt=>{N.getLibFileFromReference(Tt)&&et.set(ih(Tt.fileName),!0)}),et}function _t(G){if(G.kind===80)return G;return G.kind===207?A.updateArrayBindingPattern(G,zn(G.elements,et,dF)):A.updateObjectBindingPattern(G,zn(G.elements,et,Xa));function et(Tt){return Tt.kind===232?Tt:(Tt.propertyName&&Ya(Tt.propertyName)&&Bl(Tt.propertyName.expression)&&Li(Tt.propertyName.expression,p),A.updateBindingElement(Tt,Tt.dotDotDotToken,Tt.propertyName,_t(Tt.name),pt(Tt)?Tt.initializer:void 0))}}function Je(G,et,Tt){let He;E||(He=r,r=Gy(G));let ut=A.updateParameterDeclaration(G,aVe(A,G,et),G.dotDotDotToken,_t(G.name),z.isOptionalParameter(G)?G.questionToken||A.createToken(58):void 0,en(G,Tt||G.type,!0),Zt(G));return E||(r=He),ut}function pt(G){return sVe(G)&&z.isLiteralConstDeclaration(Do(G))}function Zt(G){if(pt(G))return z.createLiteralConstValue(Do(G),D)}function en(G,et,Tt){if(!Tt&&fp(G,2)||pt(G))return;let He=G.kind===169&&(z.isRequiredInitializedParameter(G)||z.isOptionalUninitializedParameterProperty(G));if(et&&!He)return $e(et,Ot,ji);if(!Do(G))return et?$e(et,Ot,ji):A.createKeywordTypeNode(133);if(G.kind===178)return A.createKeywordTypeNode(133);w=G.name;let ut;if(E||(ut=r,r=Gy(G)),G.kind===260||G.kind===208)return Ft(z.createTypeOfDeclaration(G,p,HT,D));if(G.kind===169||G.kind===172||G.kind===171)return _p(G)||!G.initializer?Ft(z.createTypeOfDeclaration(G,p,HT,D,He)):Ft(z.createTypeOfDeclaration(G,p,HT,D,He)||z.createTypeOfExpression(G.initializer,p,HT,D));return Ft(z.createReturnTypeOfSignatureDeclaration(G,p,HT,D));function Ft(hn){return w=void 0,E||(r=ut),hn||A.createKeywordTypeNode(133)}}function Dn(G){switch(G=Do(G),G.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!z.isDeclarationVisible(G);case 260:return!pn(G);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Kn(G){var et;if(G.body)return!0;let Tt=(et=G.symbol.declarations)==null?void 0:et.filter(He=>Ec(He)&&!He.body);return!Tt||Tt.indexOf(G)===Tt.length-1}function pn(G){return jc(G)?!1:Qo(G.name)?gt(G.name.elements,pn):z.isDeclarationVisible(G)}function Xt(G,et,Tt){if(fp(G,2))return A.createNodeArray();let He=mn(et,ut=>Je(ut,Tt));return He?A.createNodeArray(He,et.hasTrailingComma):A.createNodeArray()}function Kt(G,et){let Tt;if(!et){let He=M0(G);He&&(Tt=[Je(He)])}if(hp(G)){let He;if(!et){let ut=DN(G);if(ut){let Ft=ke(G,z.getAllAccessorDeclarations(G));He=Je(ut,void 0,Ft)}}He||(He=A.createParameterDeclaration(void 0,void 0,"value")),Tt=Tn(Tt,He)}return A.createNodeArray(Tt||Xe)}function hi(G,et){return fp(G,2)?void 0:zn(et,Ot,fl)}function uo(G){return Yi(G)||Tm(G)||ql(G)||Sc(G)||pu(G)||$o(G)||G0(G)||CR(G)}function Li(G,et){let Tt=z.isEntityNameVisible(G,et);pe(Tt),q(z.getTypeReferenceDirectivesForEntityName(G))}function So(G,et){return kp(G)&&kp(et)&&(G.jsDoc=et.jsDoc),ic(G,C_(et))}function Qn(G,et){if(et){if(s=s||G.kind!==267&&G.kind!==205,as(et))if(o){let Tt=Aie(e.getEmitHost(),z,G);if(Tt)return A.createStringLiteral(Tt)}else{let Tt=z.getSymbolOfExternalModuleSpecifier(et);Tt&&(S||(S=[])).push(Tt)}return et}}function Ur(G){if(z.isDeclarationVisible(G))if(G.moduleReference.kind===283){let et=hN(G);return A.updateImportEqualsDeclaration(G,G.modifiers,G.isTypeOnly,G.name,A.updateExternalModuleReference(G.moduleReference,Qn(G,et)))}else{let et=r;return r=Gy(G),Li(G.moduleReference,p),r=et,G}}function Er(G){if(!G.importClause)return A.updateImportDeclaration(G,G.modifiers,G.importClause,Qn(G,G.moduleSpecifier),on(G.attributes));let et=G.importClause&&G.importClause.name&&z.isDeclarationVisible(G.importClause)?G.importClause.name:void 0;if(!G.importClause.namedBindings)return et&&A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,et,void 0),Qn(G,G.moduleSpecifier),on(G.attributes));if(G.importClause.namedBindings.kind===274){let He=z.isDeclarationVisible(G.importClause.namedBindings)?G.importClause.namedBindings:void 0;return et||He?A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,et,He),Qn(G,G.moduleSpecifier),on(G.attributes)):void 0}let Tt=to(G.importClause.namedBindings.elements,He=>z.isDeclarationVisible(He)?He:void 0);if(Tt&&Tt.length||et)return A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,et,Tt&&Tt.length?A.updateNamedImports(G.importClause.namedBindings,Tt):void 0),Qn(G,G.moduleSpecifier),on(G.attributes));if(z.isImportRequiredByAugmentation(G))return A.updateImportDeclaration(G,G.modifiers,void 0,Qn(G,G.moduleSpecifier),on(G.attributes))}function on(G){let et=QR(G);return G&&et!==void 0?G:void 0}function Ye(G){for(;Nn(m);){let Tt=m.shift();if(!RF(Tt))return x.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${x.formatSyntaxKind(Tt.kind)}`);let He=i;i=Tt.parent&&Yi(Tt.parent)&&!(oc(Tt.parent)&&o);let ut=Io(Tt);i=He,y.set(wd(Tt),ut)}return zn(G,et,Hi);function et(Tt){if(RF(Tt)){let He=wd(Tt);if(y.has(He)){let ut=y.get(He);return y.delete(He),ut&&((To(ut)?gt(ut,uF):uF(ut))&&(l=!0),Yi(Tt.parent)&&(To(ut)?gt(ut,a2):a2(ut))&&(s=!0)),ut}}return Tt}}function Ot(G){if(Be(G)||Hd(G)&&(Dn(G)||Ov(G)&&!z.isLateBound(Do(G)))||$o(G)&&z.isImplementationOfOverload(G)||fae(G))return;let et;uo(G)&&(et=p,p=G);let Tt=r,He=H3(G),ut=E,Ft=(G.kind===187||G.kind===200)&&G.parent.kind!==265;if((Ul(G)||_h(G))&&fp(G,2))return G.symbol&&G.symbol.declarations&&G.symbol.declarations[0]!==G?void 0:hn(A.createPropertyDeclaration(Rt(G),G.name,void 0,void 0,void 0));if(He&&!E&&(r=Gy(G)),YI(G)&&Li(G.exprName,p),Ft&&(E=!0),cVe(G))switch(G.kind){case 233:{(Xu(G.expression)||Bl(G.expression))&&Li(G.expression,p);let dn=Sn(G,Ot,e);return hn(A.updateExpressionWithTypeArguments(dn,dn.expression,dn.typeArguments))}case 183:{Li(G.typeName,p);let dn=Sn(G,Ot,e);return hn(A.updateTypeReferenceNode(dn,dn.typeName,dn.typeArguments))}case 180:return hn(A.updateConstructSignature(G,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type)));case 176:{let dn=A.createConstructorDeclaration(Rt(G),Xt(G,G.parameters,0),void 0);return hn(dn)}case 174:{if(Ki(G.name))return hn(void 0);let dn=A.createMethodDeclaration(Rt(G),void 0,G.name,G.questionToken,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type),void 0);return hn(dn)}case 177:{if(Ki(G.name))return hn(void 0);let dn=ke(G,z.getAllAccessorDeclarations(G));return hn(A.updateGetAccessorDeclaration(G,Rt(G),G.name,Kt(G,fp(G,2)),en(G,dn),void 0))}case 178:return Ki(G.name)?hn(void 0):hn(A.updateSetAccessorDeclaration(G,Rt(G),G.name,Kt(G,fp(G,2)),void 0));case 172:return Ki(G.name)?hn(void 0):hn(A.updatePropertyDeclaration(G,Rt(G),G.name,G.questionToken,en(G,G.type),Zt(G)));case 171:return Ki(G.name)?hn(void 0):hn(A.updatePropertySignature(G,Rt(G),G.name,G.questionToken,en(G,G.type)));case 173:return Ki(G.name)?hn(void 0):hn(A.updateMethodSignature(G,Rt(G),G.name,G.questionToken,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type)));case 179:return hn(A.updateCallSignature(G,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type)));case 181:return hn(A.updateIndexSignature(G,Rt(G),Xt(G,G.parameters),$e(G.type,Ot,ji)||A.createKeywordTypeNode(133)));case 260:return Qo(G.name)?Ba(G.name):(Ft=!0,E=!0,hn(A.updateVariableDeclaration(G,G.name,void 0,en(G,G.type),Zt(G))));case 168:return In(G)&&(G.default||G.constraint)?hn(A.updateTypeParameterDeclaration(G,G.modifiers,G.name,void 0,void 0)):hn(Sn(G,Ot,e));case 194:{let dn=$e(G.checkType,Ot,ji),un=$e(G.extendsType,Ot,ji),U=p;p=G.trueType;let Me=$e(G.trueType,Ot,ji);p=U;let Nt=$e(G.falseType,Ot,ji);return x.assert(dn),x.assert(un),x.assert(Me),x.assert(Nt),hn(A.updateConditionalTypeNode(G,dn,un,Me,Nt))}case 184:return hn(A.updateFunctionTypeNode(G,zn(G.typeParameters,Ot,fl),Xt(G,G.parameters),x.checkDefined($e(G.type,Ot,ji))));case 185:return hn(A.updateConstructorTypeNode(G,Rt(G),zn(G.typeParameters,Ot,fl),Xt(G,G.parameters),x.checkDefined($e(G.type,Ot,ji))));case 205:return wv(G)?(re(G),hn(A.updateImportTypeNode(G,A.updateLiteralTypeNode(G.argument,Qn(G,G.argument.literal)),G.attributes,G.qualifier,zn(G.typeArguments,Ot,ji),G.isTypeOf))):hn(G);default:x.assertNever(G,`Attempted to process unhandled node kind: ${x.formatSyntaxKind(G.kind)}`)}return $I(G)&&hs(K,G.pos).line===hs(K,G.end).line&&lr(G,1),hn(Sn(G,Ot,e));function hn(dn){return dn&&He&&Ov(G)&&kn(G),uo(G)&&(p=et),He&&!E&&(r=Tt),Ft&&(E=ut),dn===G?dn:dn&&xr(So(dn,G),G)}}function In(G){return G.parent.kind===174&&fp(G.parent,2)}function si(G){if(!lVe(G)||Be(G))return;switch(G.kind){case 278:return Yi(G.parent)&&(s=!0),d=!0,re(G),A.updateExportDeclaration(G,G.modifiers,G.isTypeOnly,G.exportClause,Qn(G,G.moduleSpecifier),on(G.attributes));case 277:{if(Yi(G.parent)&&(s=!0),d=!0,G.expression.kind===80)return G;{let Tt=A.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:G}),j=G;let He=A.createVariableDeclaration(Tt,void 0,z.createTypeOfExpression(G.expression,G,HT,D),void 0);j=void 0;let ut=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([He],2));return So(ut,G),Tk(G),[ut,A.updateExportAssignment(G,G.modifiers,Tt)]}}}let et=Io(G);return y.set(wd(G),et),G}function yi(G){if(td(G)||fp(G,2048)||!Am(G))return G;let et=A.createModifiersFromModifierFlags(lu(G)&131039);return A.replaceModifiers(G,et)}function $i(G,et,Tt,He){let ut=A.updateModuleDeclaration(G,et,Tt,He);if(Md(ut)||ut.flags&32)return ut;let Ft=A.createModuleDeclaration(ut.modifiers,ut.name,ut.body,ut.flags|32);return xr(Ft,ut),at(Ft,ut),Ft}function Io(G){if(m)for(;Tx(m,G););if(Be(G))return;switch(G.kind){case 271:{let hn=Ur(G);return hn&&re(G),hn}case 272:{let hn=Er(G);return hn&&re(G),hn}}if(Hd(G)&&Dn(G)||$o(G)&&z.isImplementationOfOverload(G))return;let et;uo(G)&&(et=p,p=G);let Tt=H3(G),He=r;Tt&&(r=Gy(G));let ut=i;switch(G.kind){case 265:{i=!1;let hn=Ft(A.updateTypeAliasDeclaration(G,Rt(G),G.name,zn(G.typeParameters,Ot,fl),x.checkDefined($e(G.type,Ot,ji))));return i=ut,hn}case 264:return Ft(A.updateInterfaceDeclaration(G,Rt(G),G.name,hi(G,G.typeParameters),st(G.heritageClauses),zn(G.members,Ot,lT)));case 262:{let hn=Ft(A.updateFunctionDeclaration(G,Rt(G),void 0,G.name,hi(G,G.typeParameters),Xt(G,G.parameters),en(G,G.type),void 0));if(hn&&z.isExpandoFunctionDeclaration(G)&&Kn(G)){let dn=z.getPropertiesOfContainerFunction(G),un=bh.createModuleDeclaration(void 0,hn.name||A.createIdentifier("_default"),A.createModuleBlock([]),32);ja(un,p),un.locals=aa(dn),un.symbol=dn[0].parent;let U=[],Me=to(dn,We=>{if(!j6(We.valueDeclaration))return;let Ne=Vi(We.escapedName);if(!Yp(Ne,99))return;r=Gy(We.valueDeclaration);let It=z.createTypeOfDeclaration(We.valueDeclaration,un,HT,D);r=He;let Dt=CI(Ne),Ut=Dt?A.getGeneratedNameForNode(We.valueDeclaration):A.createIdentifier(Ne);Dt&&U.push([Ut,Ne]);let En=A.createVariableDeclaration(Ut,void 0,It,void 0);return A.createVariableStatement(Dt?void 0:[A.createToken(95)],A.createVariableDeclarationList([En]))});U.length?Me.push(A.createExportDeclaration(void 0,!1,A.createNamedExports(mn(U,([We,Ne])=>A.createExportSpecifier(!1,We,Ne))))):Me=to(Me,We=>A.replaceModifiers(We,0));let Nt=A.createModuleDeclaration(Rt(G),G.name,A.createModuleBlock(Me),32);if(!fp(hn,2048))return[hn,Nt];let k=A.createModifiersFromModifierFlags(lu(hn)&-2081|128),ie=A.updateFunctionDeclaration(hn,k,void 0,hn.name,hn.typeParameters,hn.parameters,hn.type,void 0),H=A.updateModuleDeclaration(Nt,k,Nt.name,Nt.body),ue=A.createExportAssignment(void 0,!1,Nt.name);return Yi(G.parent)&&(s=!0),d=!0,[ie,H,ue]}else return hn}case 267:{i=!1;let hn=G.body;if(hn&&hn.kind===268){let dn=l,un=d;d=!1,l=!1;let U=zn(hn.statements,si,Hi),Me=Ye(U);G.flags&33554432&&(l=!1),!E_(G)&&!lt(Me)&&!d&&(l?Me=A.createNodeArray([...Me,Bk(A)]):Me=zn(Me,yi,Hi));let Nt=A.updateModuleBlock(hn,Me);i=ut,l=dn,d=un;let k=Rt(G);return Ft($i(G,k,T0(G)?Qn(G,G.name):G.name,Nt))}else{i=ut;let dn=Rt(G);i=!1,$e(hn,si);let un=wd(hn),U=y.get(un);return y.delete(un),Ft($i(G,dn,G.name,U))}}case 263:{w=G.name,j=G;let hn=A.createNodeArray(Rt(G)),dn=hi(G,G.typeParameters),un=Zh(G),U;if(un){let ue=r;U=SL(va(un.parameters,We=>{if(!$r(We,31)||Be(We))return;if(r=Gy(We),We.name.kind===80)return So(A.createPropertyDeclaration(Rt(We),We.name,We.questionToken,en(We,We.type),Zt(We)),We);return Ne(We.name);function Ne(It){let Dt;for(let Ut of It.elements)jc(Ut)||(Qo(Ut.name)&&(Dt=Eo(Dt,Ne(Ut.name))),Dt=Dt||[],Dt.push(A.createPropertyDeclaration(Rt(We),Ut.name,void 0,en(Ut,void 0),void 0)));return Dt}})),r=ue}let Nt=gt(G.members,ue=>!!ue.name&&Ki(ue.name))?[A.createPropertyDeclaration(void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,k=Eo(Eo(Nt,U),zn(G.members,Ot,$c)),ie=A.createNodeArray(k),H=S_(G);if(H&&!Bl(H.expression)&&H.expression.kind!==106){let ue=G.name?Vi(G.name.escapedText):"default",We=A.createUniqueName(`${ue}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:H,typeName:G.name});let Ne=A.createVariableDeclaration(We,void 0,z.createTypeOfExpression(H.expression,G,HT,D),void 0),It=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([Ne],2)),Dt=A.createNodeArray(mn(G.heritageClauses,Ut=>{if(Ut.token===96){let En=r;r=Gy(Ut.types[0]);let wn=A.updateHeritageClause(Ut,mn(Ut.types,Bn=>A.updateExpressionWithTypeArguments(Bn,We,zn(Bn.typeArguments,Ot,ji))));return r=En,wn}return A.updateHeritageClause(Ut,zn(A.createNodeArray(jr(Ut.types,En=>Bl(En.expression)||En.expression.kind===106)),Ot,zy))}));return[It,Ft(A.updateClassDeclaration(G,hn,G.name,dn,Dt,ie))]}else{let ue=st(G.heritageClauses);return Ft(A.updateClassDeclaration(G,hn,G.name,dn,ue,ie))}}case 243:return Ft(ua(G));case 266:return Ft(A.updateEnumDeclaration(G,A.createNodeArray(Rt(G)),G.name,A.createNodeArray(to(G.members,hn=>{if(Be(hn))return;let dn=z.getConstantValue(hn),un=dn===void 0?void 0:typeof dn=="string"?A.createStringLiteral(dn):dn<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-dn)):A.createNumericLiteral(dn);return So(A.updateEnumMember(hn,hn.name,un),hn)}))))}return x.assertNever(G,`Unhandled top-level node in declaration emit: ${x.formatSyntaxKind(G.kind)}`);function Ft(hn){return uo(G)&&(p=et),Tt&&(r=He),G.kind===267&&(i=ut),hn===G?hn:(j=void 0,w=void 0,hn&&xr(So(hn,G),G))}}function ua(G){if(!gn(G.declarationList.declarations,pn))return;let et=zn(G.declarationList.declarations,Ot,wi);if(!Nn(et))return;let Tt=A.createNodeArray(Rt(G)),He;return v2(G.declarationList)||y2(G.declarationList)?(He=A.createVariableDeclarationList(et,2),xr(He,G.declarationList),at(He,G.declarationList),ic(He,G.declarationList)):He=A.updateVariableDeclarationList(G.declarationList,et),A.updateVariableStatement(G,Tt,He)}function Ba(G){return pm(to(G.elements,et=>vn(et)))}function vn(G){if(G.kind!==232&&G.name)return pn(G)?Qo(G.name)?Ba(G.name):A.createVariableDeclaration(G.name,void 0,en(G,void 0),void 0):void 0}function kn(G){let et;E||(et=r,r=Mle(G)),w=G.name,x.assert(z.isLateBound(Do(G)));let He=G.name.expression;Li(He,p),E||(r=et),w=void 0}function Be(G){return!!ge&&!!G&&zV(G,K)}function ct(G){return Ll(G)||Xl(G)}function lt(G){return gt(G,ct)}function Rt(G){let et=lu(G),Tt=ae(G);return et===Tt?vw(G.modifiers,He=>ri(He,Sa),Sa):A.createModifiersFromModifierFlags(Tt)}function ae(G){let et=130030,Tt=i&&!oVe(G)?128:0,He=G.parent.kind===312;return(!He||o&&He&&oc(G.parent))&&(et^=128,Tt=0),BIe(G,et,Tt)}function ke(G,et){let Tt=kle(G);return!Tt&&G!==et.firstAccessor&&(Tt=kle(et.firstAccessor),r=Gy(et.firstAccessor)),!Tt&&et.secondAccessor&&G!==et.secondAccessor&&(Tt=kle(et.secondAccessor),r=Gy(et.secondAccessor)),Tt}function st(G){return A.createNodeArray(jr(mn(G,et=>A.updateHeritageClause(et,zn(A.createNodeArray(jr(et.types,Tt=>Bl(Tt.expression)||et.token===96&&Tt.expression.kind===106)),Ot,zy))),et=>et.types&&!!et.types.length))}}function oVe(e){return e.kind===264}function aVe(e,t,r,i){return e.createModifiersFromModifierFlags(BIe(t,r,i))}function BIe(e,t=131070,r=0){let i=lu(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function kle(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function sVe(e){switch(e.kind){case 172:case 171:return!fp(e,2);case 169:case 260:return!0}return!1}function lVe(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 cVe(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 HT,dVe=bt({"src/compiler/transformers/declarations.ts"(){"use strict";ea(),zse(),HT=531469}});function uVe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return GK;case 4:return Nle;case 100:case 199:return Ple;default:return BK}}function jK(e,t,r){return{scriptTransformers:pVe(e,t,r),declarationTransformers:fVe(t)}}function pVe(e,t,r){if(r)return Xe;let i=ns(e),o=Ld(e),s=tP(e),l=[];return Hr(l,t&&mn(t.before,VIe)),l.push(ule),e.experimentalDecorators&&l.push(mle),R6(e)&&l.push(Ile),i<99&&l.push(Ele),!e.experimentalDecorators&&(i<99||!s)&&l.push(_le),l.push(ple),i<8&&l.push(ble),i<7&&l.push(vle),i<6&&l.push(yle),i<5&&l.push(gle),i<4&&l.push(hle),i<3&&l.push(xle),i<2&&(l.push(Rle),l.push(Cle)),l.push(uVe(o)),i<1&&l.push(Dle),Hr(l,t&&mn(t.after,VIe)),l}function fVe(e){let t=[];return t.push(VK),Hr(t,e&&mn(e.afterDeclarations,_Ve)),t}function mVe(e){return t=>aH(t)?e.transformBundle(t):e.transformSourceFile(t)}function GIe(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):mVe(i)}}function VIe(e){return GIe(e,Im)}function _Ve(e){return GIe(e,(t,r)=>r)}function OP(e,t){return t}function Tw(e,t,r){r(e,t)}function Aw(e,t,r,i,o,s,l){var d,p;let h=new Array(363),m,y,E,S=0,A=[],N=[],D=[],w=[],j=0,K=!1,Y=[],B=0,ce,z,Z=OP,me=Tw,ge=0,q=[],J={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:vu(()=>Zoe(J)),startLexicalEnvironment:be,suspendLexicalEnvironment:ze,resumeLexicalEnvironment:tt,endLexicalEnvironment:Wt,setLexicalEnvironmentFlags:_t,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:De,hoistFunctionDeclaration:Le,addInitializationStatement:Et,startBlockScope:pt,endBlockScope:Zt,addBlockScopedVariable:en,requestEmitHelper:Dn,readEmitHelpers:Kn,enableSubstitution:ne,enableEmitNotification:Ge,isSubstitutionEnabled:he,isEmitNotificationEnabled:ve,get onSubstituteNode(){return Z},set onSubstituteNode(Xt){x.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),x.assert(Xt!==void 0,"Value must not be 'undefined'"),Z=Xt},get onEmitNode(){return me},set onEmitNode(Xt){x.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),x.assert(Xt!==void 0,"Value must not be 'undefined'"),me=Xt},addDiagnostic(Xt){q.push(Xt)}};for(let Xt of o)VU(Gn(Do(Xt)));el("beforeTransform");let re=s.map(Xt=>Xt(J)),pe=Xt=>{for(let Kt of re)Xt=Kt(Xt);return Xt};ge=1;let xe=[];for(let Xt of o)(d=rr)==null||d.push(rr.Phase.Emit,"transformNodes",Xt.kind===312?{path:Xt.path}:{kind:Xt.kind,pos:Xt.pos,end:Xt.end}),xe.push((l?pe:fe)(Xt)),(p=rr)==null||p.pop();return ge=2,el("afterTransform"),Xp("transformTime","beforeTransform","afterTransform"),{transformed:xe,substituteNode:Ce,emitNodeWithNotification:Ae,isEmitNotificationEnabled:ve,dispose:pn,diagnostics:q};function fe(Xt){return Xt&&(!Yi(Xt)||!Xt.isDeclarationFile)?pe(Xt):Xt}function ne(Xt){x.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Xt]|=1}function he(Xt){return(h[Xt.kind]&1)!==0&&(za(Xt)&8)===0}function Ce(Xt,Kt){return x.assert(ge<3,"Cannot substitute a node after the result is disposed."),Kt&&he(Kt)&&Z(Xt,Kt)||Kt}function Ge(Xt){x.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Xt]|=2}function ve(Xt){return(h[Xt.kind]&2)!==0||(za(Xt)&4)!==0}function Ae(Xt,Kt,hi){x.assert(ge<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Kt&&(ve(Kt)?me(Xt,Kt,hi):hi(Xt,Kt))}function De(Xt){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed.");let Kt=lr(r.createVariableDeclaration(Xt),128);m?m.push(Kt):m=[Kt],S&1&&(S|=2)}function Le(Xt){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),lr(Xt,2097152),y?y.push(Xt):y=[Xt]}function Et(Xt){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),lr(Xt,2097152),E?E.push(Xt):E=[Xt]}function be(){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(!K,"Lexical environment is suspended."),A[j]=m,N[j]=y,D[j]=E,w[j]=S,j++,m=void 0,y=void 0,E=void 0,S=0}function ze(){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(!K,"Lexical environment is already suspended."),K=!0}function tt(){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(K,"Lexical environment is not suspended."),K=!1}function Wt(){x.assert(ge>0,"Cannot modify the lexical environment during initialization."),x.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(!K,"Lexical environment is suspended.");let Xt;if(m||y||E){if(y&&(Xt=[...y]),m){let Kt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));lr(Kt,2097152),Xt?Xt.push(Kt):Xt=[Kt]}E&&(Xt?Xt=[...Xt,...E]:Xt=[...E])}return j--,m=A[j],y=N[j],E=D[j],S=w[j],j===0&&(A=[],N=[],D=[],w=[]),Xt}function _t(Xt,Kt){S=Kt?S|Xt:S&~Xt}function Je(){return S}function pt(){x.assert(ge>0,"Cannot start a block scope during initialization."),x.assert(ge<2,"Cannot start a block scope after transformation has completed."),Y[B]=ce,B++,ce=void 0}function Zt(){x.assert(ge>0,"Cannot end a block scope during initialization."),x.assert(ge<2,"Cannot end a block scope after transformation has completed.");let Xt=gt(ce)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ce.map(Kt=>r.createVariableDeclaration(Kt)),1))]:void 0;return B--,ce=Y[B],B===0&&(Y=[]),Xt}function en(Xt){x.assert(B>0,"Cannot add a block scoped variable outside of an iteration body."),(ce||(ce=[])).push(Xt)}function Dn(Xt){if(x.assert(ge>0,"Cannot modify the transformation context during initialization."),x.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),x.assert(!Xt.scoped,"Cannot request a scoped emit helper."),Xt.dependencies)for(let Kt of Xt.dependencies)Dn(Kt);z=Tn(z,Xt)}function Kn(){x.assert(ge>0,"Cannot modify the transformation context during initialization."),x.assert(ge<2,"Cannot modify the transformation context after transformation has completed.");let Xt=z;return z=void 0,Xt}function pn(){if(ge<3){for(let Xt of o)VU(Gn(Do(Xt)));m=void 0,A=void 0,y=void 0,N=void 0,Z=void 0,me=void 0,z=void 0,ge=3}}}var UK,WP,hVe=bt({"src/compiler/transformer.ts"(){"use strict";ea(),nT(),UK={scriptTransformers:Xe,declarationTransformers:Xe},WP={factory:L,getCompilerOptions:()=>({}),getEmitResolver:Ho,getEmitHost:Ho,getEmitHelperFactory:Ho,startLexicalEnvironment:qa,resumeLexicalEnvironment:qa,suspendLexicalEnvironment:qa,endLexicalEnvironment:Jb,setLexicalEnvironmentFlags:qa,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:qa,hoistFunctionDeclaration:qa,addInitializationStatement:qa,startBlockScope:qa,endBlockScope:Jb,addBlockScopedVariable:qa,requestEmitHelper:qa,readEmitHelpers:Ho,enableSubstitution:qa,enableEmitNotification:qa,isSubstitutionEnabled:Ho,isEmitNotificationEnabled:Ho,onSubstituteNode:OP,onEmitNode:Tw,addDiagnostic:qa}}});function wle(e){return Sl(e,".tsbuildinfo")}function HK(e,t,r,i=!1,o,s){let l=To(r)?r:Fj(e,r,i),d=e.getCompilerOptions();if(xs(d)){let p=e.getPrependNodes();if(l.length||p.length){let h=L.createBundle(l,p),m=t(zP(h,e,i),h);if(m)return m}}else{if(!o)for(let p of l){let h=t(zP(p,e,i),p);if(h)return h}if(s){let p=Vy(d);if(p)return t({buildInfoPath:p},void 0)}}}function Vy(e){let t=e.configFilePath;if(!eP(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=xs(e),i;if(r)i=Eu(r);else{if(!t)return;let o=Eu(t);i=e.outDir?e.rootDir?Av(e.outDir,_m(e.rootDir,o,!0)):Yr(e.outDir,nc(o)):o}return i+".tsbuildinfo"}function FP(e,t){let r=xs(e),i=e.emitDeclarationOnly?void 0:r,o=i&&jIe(i,e),s=t||Af(e)?Eu(r)+".d.ts":void 0,l=s&&hk(e)?s+".map":void 0,d=Vy(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:d}}function zP(e,t,r){let i=t.getCompilerOptions();if(e.kind===313)return FP(i,r);{let o=Iie(e.fileName,t,K3(e.fileName,i)),s=Jf(e),l=s&&Rg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,d=i.emitDeclarationOnly||l?void 0:o,p=!d||Jf(e)?void 0:jIe(d,i),h=r||Af(i)&&!s?xie(e.fileName,t):void 0,m=h&&hk(i)?h+".map":void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function jIe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function K3(e,t){return Sl(e,".json")?".json":t.jsx===1&&bc(e,[".jsx",".tsx"])?".jsx":bc(e,[".mts",".mjs"])?".mjs":bc(e,[".cts",".cjs"])?".cjs":".js"}function UIe(e,t,r,i){return r?Av(r,_m(i(),e,t)):e}function BP(e,t,r,i=()=>$R(t,r)){return KK(e,t.options,r,i)}function KK(e,t,r,i){return pE(UIe(e,r,t.declarationDir||t.outDir,i),a6(e))}function HIe(e,t,r,i=()=>$R(t,r)){if(t.options.emitDeclarationOnly)return;let o=Sl(e,".json"),s=JK(e,t.options,r,i);return!o||Rg(e,s,x.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function JK(e,t,r,i){return pE(UIe(e,r,t.outDir,i),K3(e,t))}function KIe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Xe}}function JIe(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=FP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function qIe(e,t,r,i,o){if(Ed(t))return;let s=HIe(t,e,r,o);if(i(s),!Sl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Af(e.options))){let l=BP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function GP(e,t,r,i,o){let s;return e.rootDir?(s=ho(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=oi(Pd(e.configFilePath)),o?.(s)):s=Gle(t(),r,i),s&&s[s.length-1]!==nl&&(s+=nl),s}function $R({options:e,fileNames:t},r){return GP(e,()=>jr(t,i=>!(e.noEmitForJsFiles&&bc(i,AR))&&!Ed(i)),oi(Pd(x.checkDefined(e.configFilePath))),Nd(!r))}function J3(e,t){let{addOutput:r,getOutputs:i}=KIe();if(xs(e.options))JIe(e,r);else{let o=vu(()=>$R(e,t));for(let s of e.fileNames)qIe(e,s,t,r,o);r(Vy(e.options))}return i()}function XIe(e,t,r){t=ma(t),x.assert(Bo(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=KIe();return xs(e.options)?JIe(e,i):qIe(e,t,r,i),o()}function qK(e,t){if(xs(e.options)){let{jsFilePath:o,declarationFilePath:s}=FP(e.options,!1);return x.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=vu(()=>$R(e,t));for(let o of e.fileNames){if(Ed(o))continue;let s=HIe(o,e,t,r);if(s)return s;if(!Sl(o,".json")&&Af(e.options))return BP(o,e,t,r)}let i=Vy(e.options);return i||x.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function q3(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,d){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||hk(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,y=cR(),E=wy(p),S=$2(E),{enter:A,exit:N}=t9("printTime","beforePrint","afterPrint"),D,w=!1;return A(),HK(t,j,Fj(t,r,d),d,l,!r),N(),{emitSkipped:w,diagnostics:y.getDiagnostics(),emittedFiles:m,sourceMaps:h};function j({jsFilePath:J,sourceMapFilePath:re,declarationFilePath:pe,declarationMapPath:xe,buildInfoPath:fe},ne){var he,Ce,Ge,ve,Ae,De;let Le;fe&&ne&&aH(ne)&&(Le=oi(ho(fe,t.getCurrentDirectory())),D={commonSourceDirectory:Et(t.getCommonSourceDirectory()),sourceFiles:ne.sourceFiles.map(be=>Et(ho(be.fileName,t.getCurrentDirectory())))}),(he=rr)==null||he.push(rr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:J}),Y(ne,J,re,Et),(Ce=rr)==null||Ce.pop(),(Ge=rr)==null||Ge.push(rr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:pe}),B(ne,pe,xe,Et),(ve=rr)==null||ve.pop(),(Ae=rr)==null||Ae.push(rr.Phase.Emit,"emitBuildInfo",{buildInfoPath:fe}),K(D,fe),(De=rr)==null||De.pop();function Et(be){return h0(_m(Le,be,t.getCanonicalFileName))}}function K(J,re){if(!re||r||w)return;if(t.isEmitBlocked(re)){w=!0;return}let pe=t.getBuildInfo(J)||Iw(void 0,J);xN(t,y,re,Ole(pe),!1,void 0,{buildInfo:pe}),m?.push(re)}function Y(J,re,pe,xe){if(!J||s||!re)return;if(t.isEmitBlocked(re)||p.noEmit){w=!0;return}let fe=Aw(e,t,L,p,[J],i,!1),ne={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!D,relativeToBuildInfo:xe},he=AE(ne,{hasGlobalName:e.hasGlobalName,onEmitNode:fe.emitNodeWithNotification,isEmitNotificationEnabled:fe.isEmitNotificationEnabled,substituteNode:fe.substituteNode});x.assert(fe.transformed.length===1,"Should only see one output from the transform"),z(re,pe,fe,he,p),fe.dispose(),D&&(D.js=he.bundleFileInfo),m&&(m.push(re),pe&&m.push(pe))}function B(J,re,pe,xe){if(!J||s===0)return;if(!re){(s||p.emitDeclarationOnly)&&(w=!0);return}let fe=Yi(J)?[J]:J.sourceFiles,ne=d?fe:jr(fe,uj),he=xs(p)?[L.createBundle(ne,Yi(J)?void 0:J.prepends)]:ne;s&&!Af(p)&&ne.forEach(ce);let Ce=Aw(e,t,L,p,he,o,!1);if(Nn(Ce.diagnostics))for(let ve of Ce.diagnostics)y.add(ve);let Ge=!!Ce.diagnostics&&!!Ce.diagnostics.length||!!t.isEmitBlocked(re)||!!p.noEmit;if(w=w||Ge,!Ge||d){x.assert(Ce.transformed.length===1,"Should only see one output from the decl transform");let ve={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!d&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!D,recordInternalSection:!!D,relativeToBuildInfo:xe},Ae=AE(ve,{hasGlobalName:e.hasGlobalName,onEmitNode:Ce.emitNodeWithNotification,isEmitNotificationEnabled:Ce.isEmitNotificationEnabled,substituteNode:Ce.substituteNode});z(re,pe,Ce,Ae,{sourceMap:ve.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(re),pe&&m.push(pe)),D&&(D.dts=Ae.bundleFileInfo)}Ce.dispose()}function ce(J){if(Ll(J)){J.expression.kind===80&&e.collectLinkedAliases(J.expression,!0);return}else if(Kd(J)){e.collectLinkedAliases(J.propertyName||J.name,!0);return}Go(J,ce)}function z(J,re,pe,xe,fe){let ne=pe.transformed[0],he=ne.kind===313?ne:void 0,Ce=ne.kind===312?ne:void 0,Ge=he?he.sourceFiles:[Ce],ve;Z(fe,ne)&&(ve=Kse(t,nc(Pd(J)),me(fe),ge(fe,J,Ce),fe)),he?xe.writeBundle(he,S,ve):xe.writeFile(Ce,S,ve);let Ae;if(ve){h&&h.push({inputSourceFileNames:ve.getSources(),sourceMap:ve.toJSON()});let Le=q(fe,ve,J,re,Ce);if(Le&&(S.isAtStartOfLine()||S.rawWrite(E),Ae=S.getTextPos(),S.writeComment(`//# sourceMappingURL=${Le}`)),re){let Et=ve.toString();xN(t,y,re,Et,!1,Ge),xe.bundleFileInfo&&(xe.bundleFileInfo.mapHash=JT(Et,t))}}else S.writeLine();let De=S.getText();xN(t,y,J,De,!!p.emitBOM,Ge,{sourceMapUrlPos:Ae,diagnostics:pe.diagnostics}),xe.bundleFileInfo&&(xe.bundleFileInfo.hash=JT(De,t)),S.clear()}function Z(J,re){return(J.sourceMap||J.inlineSourceMap)&&(re.kind!==312||!Sl(re.fileName,".json"))}function me(J){let re=Pd(J.sourceRoot||"");return re&&Bc(re)}function ge(J,re,pe){if(J.sourceRoot)return t.getCommonSourceDirectory();if(J.mapRoot){let xe=Pd(J.mapRoot);return pe&&(xe=oi(l6(pe.fileName,t,xe))),sh(xe)===0&&(xe=Yr(t.getCommonSourceDirectory(),xe)),xe}return oi(ma(re))}function q(J,re,pe,xe,fe){if(J.inlineSourceMap){let he=re.toString();return`data:application/json;base64,${Kie(hd,he)}`}let ne=nc(Pd(x.checkDefined(xe)));if(J.mapRoot){let he=Pd(J.mapRoot);return fe&&(he=oi(l6(fe.fileName,t,he))),sh(he)===0?(he=Yr(t.getCommonSourceDirectory(),he),encodeURI(_I(oi(ma(pe)),Yr(he,ne),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Yr(he,ne))}return encodeURI(ne)}}function Iw(e,t){return{bundle:t,program:e,version:Jp}}function Ole(e){return JSON.stringify(e)}function X3(e,t){return qj(e,t)}function gVe(e,t,r){var i;let o=x.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&_0(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,d)=>{let p=s?.get(d),h=p?.directives.map(E=>{let S=at(L.createStringLiteral(E.expression.text),E.expression),A=at(L.createExpressionStatement(S),E);return ja(S,A),A}),m=L.createToken(1),y=L.createSourceFile(h??[],m,0);return y.fileName=_m(r.getCurrentDirectory(),ho(l,t),!r.useCaseSensitiveFileNames()),y.text=p?.text??"",KN(y,0,p?.text.length??0),ER(y.statements,y),KN(m,y.end,0),ja(m,y),y})}function Wle(e,t,r,i){var o,s;(o=rr)==null||o.push(rr.Phase.Emit,"emitUsingBuildInfo",{},!0),el("beforeEmit");let l=yVe(e,t,r,i);return el("afterEmit"),Xp("Emit","beforeEmit","afterEmit"),(s=rr)==null||s.pop(),l}function yVe(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:p}=FP(e.options,!1),h=t.getBuildInfo(o,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||d&&!h.bundle.dts)return o;let m=t.readFile(x.checkDefined(s));if(!m||JT(m,t)!==h.bundle.js.hash)return s;let y=l&&t.readFile(l);if(l&&!y||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&JT(y,t)!==h.bundle.js.mapHash)return l;let E=d&&t.readFile(d);if(d&&!E||d&&JT(E,t)!==h.bundle.dts.hash)return d;let S=p&&t.readFile(p);if(p&&!S||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&JT(S,t)!==h.bundle.dts.mapHash)return p;let A=oi(ho(o,t.getCurrentDirectory())),N=BU(s,m,l,y,d,E,p,S,o,h,!0),D=[],w=gJ(e.projectReferences,r,ce=>t.readFile(ce),t),j=gVe(h.bundle,A,t),K,Y,B={getPrependNodes:vu(()=>[...w,N]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>ho(h.bundle.commonSourceDirectory,A),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Jb,getSourceFileByPath:Jb,getSourceFiles:()=>j,getLibFileFromReference:Ho,isSourceFileFromExternalLibrary:Vm,getResolvedProjectReferenceToRedirect:Jb,getProjectReferenceRedirect:Jb,isSourceOfProjectReferenceRedirect:Vm,writeFile:(ce,z,Z,me,ge,q)=>{switch(ce){case s:if(m===z)return;break;case l:if(y===z)return;break;case o:break;case d:if(E===z)return;K=z,Y=q;break;case p:if(S===z)return;break;default:x.fail(`Unexpected path: ${ce}`)}D.push({name:ce,text:z,writeByteOrderMark:Z,data:q})},isEmitBlocked:Vm,readFile:ce=>t.readFile(ce),fileExists:ce=>t.fileExists(ce),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ce=>{let z=h.program;z&&K!==void 0&&e.options.composite&&(z.outSignature=JT(K,t,Y));let{js:Z,dts:me,sourceFiles:ge}=h.bundle;return ce.js.sources=Z.sources,me&&(ce.dts.sources=me.sources),ce.sourceFiles=ge,Iw(z,ce)},getSourceFileFromReference:Jb,redirectTargetsMap:qp(),getFileIncludeReasons:Ho,createHash:ta(t,t.createHash)};return q3(Y3,B,void 0,jK(e.options,i)),D}function AE(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Tw,isEmitNotificationEnabled:o,substituteNode:s=OP,onBeforeEmitNode:l,onAfterEmitNode:d,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:y}=t,E=!!e.extendedDiagnostics,S=!!e.omitBraceSourceMapPositions,A=wy(e),N=Ld(e),D=new Map,w,j,K,Y,B,ce,z,Z,me,ge,q,J,re,pe,xe,fe=e.preserveSourceNewlines,ne,he,Ce,Ge=hA,ve,Ae=e.writeBundleFileInfo?{sections:[]}:void 0,De=Ae?x.checkDefined(e.relativeToBuildInfo):void 0,Le=e.recordInternalSection,Et=0,be="text",ze=!0,tt,Wt,_t=-1,Je,pt=-1,Zt=-1,en=-1,Dn=-1,Kn,pn,Xt=!1,Kt=!!e.removeComments,hi,uo,{enter:Li,exit:So}=DEe(E,"commentTime","beforeComment","afterComment"),Qn=L.parenthesizer,Ur={select:I=>I===0?Qn.parenthesizeLeadingTypeArgument:void 0},Er=Kg();return et(),{printNode:on,printList:Ye,printFile:In,printBundle:Ot,writeNode:yi,writeList:$i,writeFile:lt,writeBundle:Be,bundleFileInfo:Ae};function on(I,oe,dt){switch(I){case 0:x.assert(Yi(oe),"Expected a SourceFile node.");break;case 2:x.assert(Fe(oe),"Expected an Identifier node.");break;case 1:x.assert(ht(oe),"Expected an Expression node.");break}switch(oe.kind){case 312:return In(oe);case 313:return Ot(oe);case 314:return si(oe)}return yi(I,oe,dt,Rt()),ae()}function Ye(I,oe,dt){return $i(I,oe,dt,Rt()),ae()}function Ot(I){return Be(I,Rt(),void 0),ae()}function In(I){return lt(I,Rt(),void 0),ae()}function si(I){return ct(I,Rt()),ae()}function yi(I,oe,dt,nn){let Mr=he;G(nn,void 0),ke(I,oe,dt),et(),he=Mr}function $i(I,oe,dt,nn){let Mr=he;G(nn,void 0),dt&&st(dt),qs(void 0,oe,I),et(),he=Mr}function Io(){return he.getTextPosWithWriteLine?he.getTextPosWithWriteLine():he.getTextPos()}function ua(I,oe,dt){let nn=$s(Ae.sections);nn&&nn.kind===dt?nn.end=oe:Ae.sections.push({pos:I,end:oe,kind:dt})}function Ba(I){if(Le&&Ae&&w&&(Hd(I)||Ml(I))&&zV(I,w)&&be!=="internal"){let oe=be;return kn(he.getTextPos()),Et=Io(),be="internal",oe}}function vn(I){I&&(kn(he.getTextPos()),Et=Io(),be=I)}function kn(I){return Etx.assert(toe(_a))),Ae.sections.push({pos:ki,end:he.getTextPos(),kind:"prepend",data:De(Mr.fileName),texts:Zi}))}}Et=Io();for(let Mr of I.sourceFiles)ke(0,Mr,Mr);if(Ae&&I.sourceFiles.length){let Mr=he.getTextPos();if(kn(Mr)){let ki=TM(I);ki&&(Ae.sources||(Ae.sources={}),Ae.sources.prologues=ki);let vi=Dt(I);vi&&(Ae.sources||(Ae.sources={}),Ae.sources.helpers=vi)}}et(),he=nn}function ct(I,oe){let dt=he;G(oe,void 0),ke(4,I,void 0),et(),he=dt}function lt(I,oe,dt){ve=!0;let nn=he;G(oe,dt),db(I),Qg(I),ke(0,I,I),et(),he=nn}function Rt(){return Ce||(Ce=$2(A))}function ae(){let I=Ce.getText();return Ce.clear(),I}function ke(I,oe,dt){dt&&st(dt),U(I,oe,void 0)}function st(I){w=I,Kn=void 0,pn=void 0,I&&ry(I)}function G(I,oe){I&&e.omitTrailingSemicolon&&(I=Oj(I)),he=I,tt=oe,ze=!he||!tt}function et(){j=[],K=[],Y=[],B=new Set,ce=[],z=new Map,Z=[],me=0,ge=[],q=0,J=[],re=void 0,pe=[],xe=void 0,w=void 0,Kn=void 0,pn=void 0,G(void 0,void 0)}function Tt(){return Kn||(Kn=Dg(x.checkDefined(w)))}function He(I,oe){if(I===void 0)return;let dt=Ba(I);U(4,I,oe),vn(dt)}function ut(I){I!==void 0&&U(2,I,void 0)}function Ft(I,oe){I!==void 0&&U(1,I,oe)}function hn(I){U(Da(I)?6:4,I)}function dn(I){fe&&ym(I)&4&&(fe=!1)}function un(I){fe=I}function U(I,oe,dt){uo=dt,k(0,I,oe)(I,oe),uo=void 0}function Me(I){return!Kt&&!Yi(I)}function Nt(I){return!ze&&!Yi(I)&&!UF(I)&&!WT(I)&&!yae(I)}function k(I,oe,dt){switch(I){case 0:if(i!==Tw&&(!o||o(dt)))return H;case 1:if(s!==OP&&(hi=s(oe,dt)||dt)!==dt)return uo&&(hi=uo(hi)),It;case 2:if(Me(dt))return qD;case 3:if(Nt(dt))return KE;case 4:return ue;default:return x.assertNever(I)}}function ie(I,oe,dt){return k(I+1,oe,dt)}function H(I,oe){let dt=ie(0,I,oe);i(I,oe,dt)}function ue(I,oe){if(l?.(oe),fe){let dt=fe;dn(oe),We(I,oe),un(dt)}else We(I,oe);d?.(oe),uo=void 0}function We(I,oe,dt=!0){if(dt){let nn=jU(oe);if(nn)return go(I,oe,nn)}if(I===0)return K1(na(oe,Yi));if(I===2)return Kr(na(oe,Fe));if(I===6)return Bn(na(oe,Da),!0);if(I===3)return Ne(na(oe,fl));if(I===7)return z1(na(oe,n1));if(I===5)return x.assertNode(oe,rH),no(!0);if(I===4){switch(oe.kind){case 16:case 17:case 18:return Bn(oe,!1);case 80:return Kr(oe);case 81:return xo(oe);case 166:return xn(oe);case 167:return $l(oe);case 168:return Mo(oe);case 169:return ss(oe);case 170:return Ws(oe);case 171:return ml(oe);case 172:return cd(oe);case 173:return mo(oe);case 174:return la(oe);case 175:return dd(oe);case 176:return bs(oe);case 177:case 178:return Ca(oe);case 179:return ul(oe);case 180:return Nf(oe);case 181:return ac(oe);case 182:return Lo(oe);case 183:return tn(oe);case 184:return Fs(oe);case 185:return Ac(oe);case 186:return de(oe);case 187:return $(oe);case 188:return Pe(oe);case 189:return cn(oe);case 190:return pr(oe);case 192:return zr(oe);case 193:return Di(oe);case 194:return Cr(oe);case 195:return qo(oe);case 196:return bl(oe);case 233:return wt(oe);case 197:return Hc();case 198:return zs(oe);case 199:return hc(oe);case 200:return ys(oe);case 201:return Kc(oe);case 202:return yr(oe);case 203:return tp(oe);case 204:return xl(oe);case 205:return Oc(oe);case 206:return im(oe);case 207:return fu(oe);case 208:return Re(oe);case 239:return Gt(oe);case 240:return al();case 241:return Zn(oe);case 243:return Xr(oe);case 242:return no(!1);case 244:return La(oe);case 245:return ka(oe);case 246:return pd(oe);case 247:return Ic(oe);case 248:return Tp(oe);case 249:return Bu(oe);case 250:return ob(oe);case 251:return Dm(oe);case 252:return Cm(oe);case 253:return fS(oe);case 254:return cf(oe);case 255:return B_(oe);case 256:return df(oe);case 257:return qg(oe);case 258:return we(oe);case 259:return qe(oe);case 260:return Pt(oe);case 261:return Bt(oe);case 262:return _n(oe);case 263:return Yo(oe);case 264:return $d(oe);case 265:return fd(oe);case 266:return Xg(oe);case 267:return LE(oe);case 268:return w1(oe);case 269:return kE(oe);case 270:return G1(oe);case 271:return kD(oe);case 272:return OD(oe);case 273:return oA(oe);case 274:return mS(oe);case 280:return _S(oe);case 275:return O1(oe);case 276:return WD(oe);case 277:return W1(oe);case 278:return F1(oe);case 279:return hS(oe);case 281:return ab(oe);case 300:return B1(oe);case 301:return aA(oe);case 282:return;case 283:return wE(oe);case 12:return Yg(oe);case 286:case 289:return OE(oe);case 287:case 290:return Ih(oe);case 291:return Gu(oe);case 292:return Mf(oe);case 293:return Ap(oe);case 294:return zD(oe);case 295:return V1(oe);case 296:return WE(oe);case 297:return j1(oe);case 298:return Zy(oe);case 299:return U1(oe);case 303:return Zm(oe);case 304:return cA(oe);case 305:return Ve(oe);case 306:return e_(oe);case 307:return xi(oe);case 314:case 308:return gi(oe);case 309:case 310:return er(oe);case 311:return Fr(oe);case 312:return K1(oe);case 313:return x.fail("Bundles should be printed using printBundle");case 315:return x.fail("InputFiles should not be printed");case 316:return $g(oe);case 317:return cb(oe);case 319:return fr("*");case 320:return fr("?");case 321:return ud(oe);case 322:return Ep(oe);case 323:return Rs(oe);case 324:return nd(oe);case 191:case 325:return yt(oe);case 326:return;case 327:return md(oe);case 329:return uA(oe);case 330:return zE(oe);case 334:case 339:case 344:return dA(oe);case 335:case 336:return ev(oe);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ka(oe);case 346:return t_(oe);case 348:case 355:return pA(oe);case 347:case 349:case 350:case 351:case 356:case 357:return FE(oe);case 352:return tv(oe);case 353:return EM(oe);case 354:return H1(oe);case 359:return}if(ht(oe)&&(I=1,s!==OP)){let nn=s(I,oe)||oe;nn!==oe&&(oe=nn,uo&&(oe=uo(oe)))}}if(I===1)switch(oe.kind){case 9:case 10:return wn(oe);case 11:case 14:case 15:return Bn(oe,!1);case 80:return Kr(oe);case 81:return xo(oe);case 209:return Lt(oe);case 210:return Un(oe);case 211:return yo(oe);case 212:return Zo(oe);case 213:return Ql(oe);case 214:return gc(oe);case 215:return sl(oe);case 216:return _l(oe);case 217:return Gl(oe);case 218:return Zl(oe);case 219:return Jc(oe);case 220:return Fu(oe);case 221:return xu(oe);case 222:return Pf(oe);case 223:return z_(oe);case 224:return Ah(oe);case 225:return Fd(oe);case 226:return Er(oe);case 227:return Sp(oe);case 228:return lg(oe);case 229:return zu(oe);case 230:return Q(oe);case 231:return rt(oe);case 232:return;case 234:return zt(oe);case 235:return O(oe);case 233:return wt(oe);case 238:return Ee(oe);case 236:return nt(oe);case 237:return x.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Qa(oe);case 285:return sA(oe);case 288:return FD(oe);case 358:return x.fail("SyntaxList should not be printed");case 359:return;case 360:return Qr(oe);case 361:return xh(oe);case 362:return x.fail("SyntheticReferenceExpression should not be printed")}if(wu(oe.kind))return ES(oe,Qi);if(xV(oe.kind))return ES(oe,fr);x.fail(`Unhandled SyntaxKind: ${x.formatSyntaxKind(oe.kind)}.`)}function Ne(I){He(I.name),ar(),Qi("in"),ar(),He(I.constraint)}function It(I,oe){let dt=ie(1,I,oe);x.assertIsDefined(hi),oe=hi,hi=void 0,dt(I,oe)}function Dt(I){let oe;if(N===0||e.noEmitHelpers)return;let dt=new Map;for(let nn of I.sourceFiles){let Mr=jk(nn)!==void 0,ki=En(nn);if(ki)for(let vi of ki)!vi.scoped&&!Mr&&!dt.get(vi.name)&&(dt.set(vi.name,!0),(oe||(oe=[])).push(vi.name))}return oe}function Ut(I){let oe=!1,dt=I.kind===313?I:void 0;if(dt&&N===0)return;let nn=dt?dt.prepends.length:0,Mr=dt?dt.sourceFiles.length+nn:1;for(let ki=0;ki"),ar(),He(I.type),rp(I)}function nd(I){Qi("function"),nv(I,I.parameters),fr(":"),He(I.type)}function ud(I){fr("?"),He(I.type)}function Ep(I){fr("!"),He(I.type)}function Rs(I){He(I.type),fr("=")}function Ac(I){Td(I),dg(I,I.modifiers),Qi("new"),ar(),G_(I,I.typeParameters),nv(I,I.parameters),ar(),fr("=>"),ar(),He(I.type),rp(I)}function de(I){Qi("typeof"),ar(),He(I.exprName),pg(I,I.typeArguments)}function $(I){Lf(0,void 0),fr("{");let oe=za(I)&1?768:32897;qs(I,I.members,oe|524288),fr("}"),_b()}function Pe(I){He(I.elementType,Qn.parenthesizeNonArrayTypeOfPostfixType),fr("["),fr("]")}function yt(I){fr("..."),He(I.type)}function cn(I){Ui(23,I.pos,fr,I);let oe=za(I)&1?528:657;qs(I,I.elements,oe|524288,Qn.parenthesizeElementTypeOfTupleType),Ui(24,I.elements.end,fr,I)}function yr(I){He(I.dotDotDotToken),He(I.name),He(I.questionToken),Ui(59,I.name.end,fr,I),ar(),He(I.type)}function pr(I){He(I.type,Qn.parenthesizeTypeOfOptionalType),fr("?")}function zr(I){qs(I,I.types,516,Qn.parenthesizeConstituentTypeOfUnionType)}function Di(I){qs(I,I.types,520,Qn.parenthesizeConstituentTypeOfIntersectionType)}function Cr(I){He(I.checkType,Qn.parenthesizeCheckTypeOfConditionalType),ar(),Qi("extends"),ar(),He(I.extendsType,Qn.parenthesizeExtendsTypeOfConditionalType),ar(),fr("?"),ar(),He(I.trueType),ar(),fr(":"),ar(),He(I.falseType)}function qo(I){Qi("infer"),ar(),He(I.typeParameter)}function bl(I){fr("("),He(I.type),fr(")")}function Hc(){Qi("this")}function zs(I){fb(I.operator,Qi),ar();let oe=I.operator===148?Qn.parenthesizeOperandOfReadonlyTypeOperator:Qn.parenthesizeOperandOfTypeOperator;He(I.type,oe)}function hc(I){He(I.objectType,Qn.parenthesizeNonArrayTypeOfPostfixType),fr("["),He(I.indexType),fr("]")}function ys(I){let oe=za(I);fr("{"),oe&1?ar():(qc(),Rh()),I.readonlyToken&&(He(I.readonlyToken),I.readonlyToken.kind!==148&&Qi("readonly"),ar()),fr("["),U(3,I.typeParameter),I.nameType&&(ar(),Qi("as"),ar(),He(I.nameType)),fr("]"),I.questionToken&&(He(I.questionToken),I.questionToken.kind!==58&&fr("?")),fr(":"),ar(),He(I.type),rd(),oe&1?ar():(qc(),Lm()),qs(I,I.members,2),fr("}")}function Kc(I){Ft(I.literal)}function tp(I){He(I.head),qs(I,I.templateSpans,262144)}function Oc(I){I.isTypeOf&&(Qi("typeof"),ar()),Qi("import"),fr("("),He(I.argument),I.attributes&&(fr(","),ar(),U(7,I.attributes)),fr(")"),I.qualifier&&(fr("."),He(I.qualifier)),pg(I,I.typeArguments)}function im(I){fr("{"),qs(I,I.elements,525136),fr("}")}function fu(I){fr("["),qs(I,I.elements,524880),fr("]")}function Re(I){He(I.dotDotDotToken),I.propertyName&&(He(I.propertyName),fr(":"),ar()),He(I.name),ub(I.initializer,I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function Lt(I){let oe=I.elements,dt=I.multiLine?65536:0;vS(I,oe,8914|dt,Qn.parenthesizeExpressionForDisallowedComma)}function Un(I){Lf(0,void 0),gn(I.properties,X1);let oe=za(I)&131072;oe&&Rh();let dt=I.multiLine?65536:0,nn=w&&w.languageVersion>=1&&!Jf(w)?64:0;qs(I,I.properties,526226|nn|dt),oe&&Lm(),_b()}function yo(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess);let oe=I.questionDotToken||fh(L.createToken(25),I.expression.end,I.name.pos),dt=Gp(I,I.expression,oe),nn=Gp(I,oe,I.name);km(dt,!1),oe.kind!==29&&Xo(I.expression)&&!he.hasTrailingComment()&&!he.hasTrailingWhitespace()&&fr("."),I.questionDotToken?He(oe):Ui(oe.kind,I.expression.end,fr,I),km(nn,!1),He(I.name),GE(dt,nn)}function Xo(I){if(I=gm(I),mp(I)){let oe=EA(I,!0,!1);return!(I.numericLiteralFlags&448)&&!oe.includes(da(25))&&!oe.includes("E")&&!oe.includes("e")}else if(Ns(I)){let oe=Koe(I);return typeof oe=="number"&&isFinite(oe)&&oe>=0&&Math.floor(oe)===oe}}function Zo(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),He(I.questionDotToken),Ui(23,I.expression.end,fr,I),Ft(I.argumentExpression),Ui(24,I.argumentExpression.end,fr,I)}function Ql(I){let oe=ym(I)&16;oe&&(fr("("),pb("0"),fr(","),ar()),Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),oe&&fr(")"),He(I.questionDotToken),pg(I,I.typeArguments),vS(I,I.arguments,2576,Qn.parenthesizeExpressionForDisallowedComma)}function gc(I){Ui(105,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeExpressionOfNew),pg(I,I.typeArguments),vS(I,I.arguments,18960,Qn.parenthesizeExpressionForDisallowedComma)}function sl(I){let oe=ym(I)&16;oe&&(fr("("),pb("0"),fr(","),ar()),Ft(I.tag,Qn.parenthesizeLeftSideOfAccess),oe&&fr(")"),pg(I,I.typeArguments),ar(),Ft(I.template)}function _l(I){fr("<"),He(I.type),fr(">"),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Gl(I){let oe=Ui(21,I.pos,fr,I),dt=HD(I.expression,I);Ft(I.expression,void 0),SS(I.expression,I),GE(dt),Ui(22,I.expression?I.expression.end:oe,fr,I)}function Zl(I){Vp(I.name),Jn(I)}function Jc(I){dg(I,I.modifiers),fn(I,lf)}function lf(I){G_(I,I.typeParameters),VD(I,I.parameters),sm(I.type),ar(),He(I.equalsGreaterThanToken)}function Fu(I){Ui(91,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function xu(I){Ui(114,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Pf(I){Ui(116,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function z_(I){Ui(135,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Ah(I){fb(I.operator,uf),Hg(I)&&ar(),Ft(I.operand,Qn.parenthesizeOperandOfPrefixUnary)}function Hg(I){let oe=I.operand;return oe.kind===224&&(I.operator===40&&(oe.operator===40||oe.operator===46)||I.operator===41&&(oe.operator===41||oe.operator===47))}function Fd(I){Ft(I.operand,Qn.parenthesizeOperandOfPostfixUnary),fb(I.operator,uf)}function Kg(){return e3(I,oe,dt,nn,Mr,void 0);function I(vi,Zi){if(Zi){Zi.stackIndex++,Zi.preserveSourceNewlinesStack[Zi.stackIndex]=fe,Zi.containerPosStack[Zi.stackIndex]=Zt,Zi.containerEndStack[Zi.stackIndex]=en,Zi.declarationListContainerEndStack[Zi.stackIndex]=Dn;let _a=Zi.shouldEmitCommentsStack[Zi.stackIndex]=Me(vi),Qd=Zi.shouldEmitSourceMapsStack[Zi.stackIndex]=Nt(vi);l?.(vi),_a&&IA(vi),Qd&&ex(vi),dn(vi)}else Zi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Zi}function oe(vi,Zi,_a){return ki(vi,_a,"left")}function dt(vi,Zi,_a){let Qd=vi.kind!==28,Du=Gp(_a,_a.left,vi),wf=Gp(_a,vi,_a.right);km(Du,Qd),mg(vi.pos),ES(vi,vi.kind===103?Qi:uf),wm(vi.end,!0),km(wf,!0)}function nn(vi,Zi,_a){return ki(vi,_a,"right")}function Mr(vi,Zi){let _a=Gp(vi,vi.left,vi.operatorToken),Qd=Gp(vi,vi.operatorToken,vi.right);if(GE(_a,Qd),Zi.stackIndex>0){let Du=Zi.preserveSourceNewlinesStack[Zi.stackIndex],wf=Zi.containerPosStack[Zi.stackIndex],vb=Zi.containerEndStack[Zi.stackIndex],Si=Zi.declarationListContainerEndStack[Zi.stackIndex],Nh=Zi.shouldEmitCommentsStack[Zi.stackIndex],Vn=Zi.shouldEmitSourceMapsStack[Zi.stackIndex];un(Du),Vn&&DA(vi),Nh&&XD(vi,wf,vb,Si),d?.(vi),Zi.stackIndex--}}function ki(vi,Zi,_a){let Qd=_a==="left"?Qn.getParenthesizeLeftSideOfBinaryForOperator(Zi.operatorToken.kind):Qn.getParenthesizeRightSideOfBinaryForOperator(Zi.operatorToken.kind),Du=k(0,1,vi);if(Du===It&&(x.assertIsDefined(hi),vi=Qd(na(hi,ht)),Du=ie(1,1,vi),hi=void 0),(Du===qD||Du===KE||Du===ue)&&dr(vi))return vi;uo=Qd,Du(1,vi)}}function Sp(I){let oe=Gp(I,I.condition,I.questionToken),dt=Gp(I,I.questionToken,I.whenTrue),nn=Gp(I,I.whenTrue,I.colonToken),Mr=Gp(I,I.colonToken,I.whenFalse);Ft(I.condition,Qn.parenthesizeConditionOfConditionalExpression),km(oe,!0),He(I.questionToken),km(dt,!0),Ft(I.whenTrue,Qn.parenthesizeBranchOfConditionalExpression),GE(oe,dt),km(nn,!0),He(I.colonToken),km(Mr,!0),Ft(I.whenFalse,Qn.parenthesizeBranchOfConditionalExpression),GE(nn,Mr)}function lg(I){He(I.head),qs(I,I.templateSpans,262144)}function zu(I){Ui(127,I.pos,Qi,I),He(I.asteriskToken),yS(I.expression&&Nm(I.expression),pS)}function Q(I){Ui(26,I.pos,fr,I),Ft(I.expression,Qn.parenthesizeExpressionForDisallowedComma)}function rt(I){Vp(I.name),Ha(I)}function wt(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),pg(I,I.typeArguments)}function zt(I){Ft(I.expression,void 0),I.type&&(ar(),Qi("as"),ar(),He(I.type))}function O(I){Ft(I.expression,Qn.parenthesizeLeftSideOfAccess),uf("!")}function Ee(I){Ft(I.expression,void 0),I.type&&(ar(),Qi("satisfies"),ar(),He(I.type))}function nt(I){bS(I.keywordToken,I.pos,fr),fr("."),He(I.name)}function Gt(I){Ft(I.expression),He(I.literal)}function Zn(I){ii(I,!I.multiLine&&bA(I))}function ii(I,oe){Ui(19,I.pos,fr,I);let dt=oe||za(I)&1?768:129;qs(I,I.statements,dt),Ui(20,I.statements.end,fr,I,!!(dt&1))}function Xr(I){Bp(I,I.modifiers,!1),He(I.declarationList),rd()}function no(I){I?fr(";"):rd()}function La(I){Ft(I.expression,Qn.parenthesizeExpressionOfExpressionStatement),(!w||!Jf(w)||Ks(I.expression))&&rd()}function ka(I){let oe=Ui(101,I.pos,Qi,I);ar(),Ui(21,oe,fr,I),Ft(I.expression),Ui(22,I.expression.end,fr,I),ug(I,I.thenStatement),I.elseStatement&&(ey(I,I.thenStatement,I.elseStatement),Ui(93,I.thenStatement.end,Qi,I),I.elseStatement.kind===245?(ar(),He(I.elseStatement)):ug(I,I.elseStatement))}function wl(I,oe){let dt=Ui(117,oe,Qi,I);ar(),Ui(21,dt,fr,I),Ft(I.expression),Ui(22,I.expression.end,fr,I)}function pd(I){Ui(92,I.pos,Qi,I),ug(I,I.statement),Ko(I.statement)&&!fe?ar():ey(I,I.statement,I.expression),wl(I,I.statement.end),rd()}function Ic(I){wl(I,I.pos),ug(I,I.statement)}function Tp(I){let oe=Ui(99,I.pos,Qi,I);ar();let dt=Ui(21,oe,fr,I);ls(I.initializer),dt=Ui(27,I.initializer?I.initializer.end:dt,fr,I),yS(I.condition),dt=Ui(27,I.condition?I.condition.end:dt,fr,I),yS(I.incrementor),Ui(22,I.incrementor?I.incrementor.end:dt,fr,I),ug(I,I.statement)}function Bu(I){let oe=Ui(99,I.pos,Qi,I);ar(),Ui(21,oe,fr,I),ls(I.initializer),ar(),Ui(103,I.initializer.end,Qi,I),ar(),Ft(I.expression),Ui(22,I.expression.end,fr,I),ug(I,I.statement)}function ob(I){let oe=Ui(99,I.pos,Qi,I);ar(),fA(I.awaitModifier),Ui(21,oe,fr,I),ls(I.initializer),ar(),Ui(165,I.initializer.end,Qi,I),ar(),Ft(I.expression),Ui(22,I.expression.end,fr,I),ug(I,I.statement)}function ls(I){I!==void 0&&(I.kind===261?He(I):Ft(I))}function Dm(I){Ui(88,I.pos,Qi,I),Zg(I.label),rd()}function Cm(I){Ui(83,I.pos,Qi,I),Zg(I.label),rd()}function Ui(I,oe,dt,nn,Mr){let ki=Do(nn),vi=ki&&ki.kind===nn.kind,Zi=oe;if(vi&&w&&(oe=Na(w.text,oe)),vi&&nn.pos!==Zi){let _a=Mr&&w&&!Sf(Zi,oe,w);_a&&Rh(),mg(Zi),_a&&Lm()}if(!S&&(I===19||I===20)?oe=bS(I,oe,dt,nn):oe=fb(I,dt,oe),vi&&nn.end!==oe){let _a=nn.kind===294;wm(oe,!_a,_a)}return oe}function Jg(I){return I.kind===2||!!I.hasTrailingNewLine}function $y(I){if(!w)return!1;let oe=jh(w.text,I.pos);if(oe){let dt=Do(I);if(dt&&Ou(dt.parent))return!0}return gt(oe,Jg)||gt(IR(I),Jg)?!0:B4(I)?I.pos!==I.expression.pos&>(Yb(w.text,I.expression.pos),Jg)?!0:$y(I.expression):!1}function Nm(I){if(!Kt&&B4(I)&&$y(I)){let oe=Do(I);if(oe&&Ou(oe)){let dt=L.createParenthesizedExpression(I.expression);return xr(dt,I),at(dt,oe),dt}return L.createParenthesizedExpression(I)}return I}function pS(I){return Nm(Qn.parenthesizeExpressionForDisallowedComma(I))}function fS(I){Ui(107,I.pos,Qi,I),yS(I.expression&&Nm(I.expression),Nm),rd()}function cf(I){let oe=Ui(118,I.pos,Qi,I);ar(),Ui(21,oe,fr,I),Ft(I.expression),Ui(22,I.expression.end,fr,I),ug(I,I.statement)}function B_(I){let oe=Ui(109,I.pos,Qi,I);ar(),Ui(21,oe,fr,I),Ft(I.expression),Ui(22,I.expression.end,fr,I),ar(),He(I.caseBlock)}function df(I){He(I.label),Ui(59,I.label.end,fr,I),ar(),He(I.statement)}function qg(I){Ui(111,I.pos,Qi,I),yS(Nm(I.expression),Nm),rd()}function we(I){Ui(113,I.pos,Qi,I),ar(),He(I.tryBlock),I.catchClause&&(ey(I,I.tryBlock,I.catchClause),He(I.catchClause)),I.finallyBlock&&(ey(I,I.catchClause||I.tryBlock,I.finallyBlock),Ui(98,(I.catchClause||I.tryBlock).end,Qi,I),ar(),He(I.finallyBlock))}function qe(I){bS(89,I.pos,Qi),rd()}function Pt(I){var oe,dt,nn;He(I.name),He(I.exclamationToken),sm(I.type),ub(I.initializer,((oe=I.type)==null?void 0:oe.end)??((nn=(dt=I.name.emitNode)==null?void 0:dt.typeNode)==null?void 0:nn.end)??I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function Bt(I){if(y2(I))Qi("await"),ar(),Qi("using");else{let oe=NF(I)?"let":Kx(I)?"const":v2(I)?"using":"var";Qi(oe)}ar(),qs(I,I.declarations,528)}function _n(I){Jn(I)}function Jn(I){Bp(I,I.modifiers,!1),Qi("function"),He(I.asteriskToken),ar(),ut(I.name),fn(I,qn)}function fn(I,oe){let dt=I.body;if(dt)if(Ko(dt)){let nn=za(I)&131072;nn&&Rh(),Td(I),gn(I.parameters,id),id(I.body),oe(I),or(dt),rp(I),nn&&Lm()}else oe(I),ar(),Ft(dt,Qn.parenthesizeConciseBodyOfArrowFunction);else oe(I),rd()}function qn(I){G_(I,I.typeParameters),nv(I,I.parameters),sm(I.type)}function fi(I){if(za(I)&1)return!0;if(I.multiLine||!Ks(I)&&w&&!IT(I,w)||fg(I,Xc(I.statements),2)||q1(I,$s(I.statements),2,I.statements))return!1;let oe;for(let dt of I.statements){if(mb(oe,dt,2)>0)return!1;oe=dt}return!0}function or(I){l?.(I),ar(),fr("{"),Rh();let oe=fi(I)?ni:cr;Sr(I,I.statements,oe),Lm(),bS(20,I.statements.end,fr,I),d?.(I)}function ni(I){cr(I,!0)}function cr(I,oe){let dt=Vu(I.statements),nn=he.getTextPos();Ut(I),dt===0&&nn===he.getTextPos()&&oe?(Lm(),qs(I,I.statements,768),Rh()):qs(I,I.statements,1,void 0,dt)}function Yo(I){Ha(I)}function Ha(I){Lf(0,void 0),gn(I.members,X1),Bp(I,I.modifiers,!0),Ui(86,R_(I).pos,Qi,I),I.name&&(ar(),ut(I.name));let oe=za(I)&131072;oe&&Rh(),G_(I,I.typeParameters),qs(I,I.heritageClauses,0),ar(),fr("{"),qs(I,I.members,129),fr("}"),oe&&Lm(),_b()}function $d(I){Lf(0,void 0),Bp(I,I.modifiers,!1),Qi("interface"),ar(),He(I.name),G_(I,I.typeParameters),qs(I,I.heritageClauses,512),ar(),fr("{"),qs(I,I.members,129),fr("}"),_b()}function fd(I){Bp(I,I.modifiers,!1),Qi("type"),ar(),He(I.name),G_(I,I.typeParameters),ar(),fr("="),ar(),He(I.type),rd()}function Xg(I){Bp(I,I.modifiers,!1),Qi("enum"),ar(),He(I.name),ar(),fr("{"),qs(I,I.members,145),fr("}")}function LE(I){Bp(I,I.modifiers,!1),~I.flags&2048&&(Qi(I.flags&32?"namespace":"module"),ar()),He(I.name);let oe=I.body;if(!oe)return rd();for(;oe&&ql(oe);)fr("."),He(oe.name),oe=oe.body;ar(),He(oe)}function w1(I){Td(I),gn(I.statements,id),ii(I,bA(I)),rp(I)}function kE(I){Ui(19,I.pos,fr,I),qs(I,I.clauses,129),Ui(20,I.clauses.end,fr,I,!0)}function kD(I){Bp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),ar(),I.isTypeOnly&&(Ui(156,I.pos,Qi,I),ar()),He(I.name),ar(),Ui(64,I.name.end,fr,I),ar(),wD(I.moduleReference),rd()}function wD(I){I.kind===80?Ft(I):He(I)}function OD(I){Bp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),ar(),I.importClause&&(He(I.importClause),ar(),Ui(161,I.importClause.end,Qi,I),ar()),Ft(I.moduleSpecifier),I.attributes&&Zg(I.attributes),rd()}function oA(I){I.isTypeOnly&&(Ui(156,I.pos,Qi,I),ar()),He(I.name),I.name&&I.namedBindings&&(Ui(28,I.name.end,fr,I),ar()),He(I.namedBindings)}function mS(I){let oe=Ui(42,I.pos,fr,I);ar(),Ui(130,oe,Qi,I),ar(),He(I.name)}function O1(I){sb(I)}function WD(I){cg(I)}function W1(I){let oe=Ui(95,I.pos,Qi,I);ar(),I.isExportEquals?Ui(64,oe,uf,I):Ui(90,oe,Qi,I),ar(),Ft(I.expression,I.isExportEquals?Qn.getParenthesizeRightSideOfBinaryForOperator(64):Qn.parenthesizeExpressionOfExportDefault),rd()}function F1(I){Bp(I,I.modifiers,!1);let oe=Ui(95,I.pos,Qi,I);if(ar(),I.isTypeOnly&&(oe=Ui(156,oe,Qi,I),ar()),I.exportClause?He(I.exportClause):oe=Ui(42,oe,fr,I),I.moduleSpecifier){ar();let dt=I.exportClause?I.exportClause.end:oe;Ui(161,dt,Qi,I),ar(),Ft(I.moduleSpecifier)}I.attributes&&Zg(I.attributes),rd()}function z1(I){fr("{"),ar(),Qi(I.token===132?"assert":"with"),fr(":"),ar();let oe=I.elements;qs(I,oe,526226),ar(),fr("}")}function B1(I){Ui(I.token,I.pos,Qi,I),ar();let oe=I.elements;qs(I,oe,526226)}function aA(I){He(I.name),fr(":"),ar();let oe=I.value;if(!(za(oe)&1024)){let dt=C_(oe);wm(dt.pos)}He(oe)}function G1(I){let oe=Ui(95,I.pos,Qi,I);ar(),oe=Ui(130,oe,Qi,I),ar(),oe=Ui(145,oe,Qi,I),ar(),He(I.name),rd()}function _S(I){let oe=Ui(42,I.pos,fr,I);ar(),Ui(130,oe,Qi,I),ar(),He(I.name)}function hS(I){sb(I)}function ab(I){cg(I)}function sb(I){fr("{"),qs(I,I.elements,525136),fr("}")}function cg(I){I.isTypeOnly&&(Qi("type"),ar()),I.propertyName&&(He(I.propertyName),ar(),Ui(130,I.propertyName.end,Qi,I),ar()),He(I.name)}function wE(I){Qi("require"),fr("("),Ft(I.expression),fr(")")}function Qa(I){He(I.openingElement),qs(I,I.children,262144),He(I.closingElement)}function sA(I){fr("<"),lb(I.tagName),pg(I,I.typeArguments),ar(),He(I.attributes),fr("/>")}function FD(I){He(I.openingFragment),qs(I,I.children,262144),He(I.closingFragment)}function OE(I){if(fr("<"),P_(I)){let oe=HD(I.tagName,I);lb(I.tagName),pg(I,I.typeArguments),I.attributes.properties&&I.attributes.properties.length>0&&ar(),He(I.attributes),SS(I.attributes,I),GE(oe)}fr(">")}function Yg(I){he.writeLiteral(I.text)}function Ih(I){fr("")}function Mf(I){qs(I,I.properties,262656)}function Gu(I){He(I.name),Pm("=",fr,I.initializer,hn)}function Ap(I){fr("{..."),Ft(I.expression),fr("}")}function np(I){let oe=!1;return jL(w?.text||"",I+1,()=>oe=!0),oe}function Qy(I){let oe=!1;return VL(w?.text||"",I+1,()=>oe=!0),oe}function lA(I){return np(I)||Qy(I)}function zD(I){var oe;if(I.expression||!Kt&&!Ks(I)&&lA(I.pos)){let dt=w&&!Ks(I)&&hs(w,I.pos).line!==hs(w,I.end).line;dt&&he.increaseIndent();let nn=Ui(19,I.pos,fr,I);He(I.dotDotDotToken),Ft(I.expression),Ui(20,((oe=I.expression)==null?void 0:oe.end)||nn,fr,I),dt&&he.decreaseIndent()}}function V1(I){ut(I.namespace),fr(":"),ut(I.name)}function lb(I){I.kind===80?Ft(I):He(I)}function WE(I){Ui(84,I.pos,Qi,I),ar(),Ft(I.expression,Qn.parenthesizeExpressionForDisallowedComma),yc(I,I.statements,I.expression.end)}function j1(I){let oe=Ui(90,I.pos,Qi,I);yc(I,I.statements,oe)}function yc(I,oe,dt){let nn=oe.length===1&&(!w||Ks(I)||Ks(oe[0])||y6(I,oe[0],w)),Mr=163969;nn?(bS(59,dt,fr,I),ar(),Mr&=-130):Ui(59,dt,fr,I),qs(I,oe,Mr)}function Zy(I){ar(),fb(I.token,Qi),ar(),qs(I,I.types,528)}function U1(I){let oe=Ui(85,I.pos,Qi,I);ar(),I.variableDeclaration&&(Ui(21,oe,fr,I),He(I.variableDeclaration),Ui(22,I.variableDeclaration.end,fr,I),ar()),He(I.block)}function Zm(I){He(I.name),fr(":"),ar();let oe=I.initializer;if(!(za(oe)&1024)){let dt=C_(oe);wm(dt.pos)}Ft(oe,Qn.parenthesizeExpressionForDisallowedComma)}function cA(I){He(I.name),I.objectAssignmentInitializer&&(ar(),fr("="),ar(),Ft(I.objectAssignmentInitializer,Qn.parenthesizeExpressionForDisallowedComma))}function Ve(I){I.expression&&(Ui(26,I.pos,fr,I),Ft(I.expression,Qn.parenthesizeExpressionForDisallowedComma))}function e_(I){He(I.name),ub(I.initializer,I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function md(I){if(Ge("/**"),I.comment){let oe=QL(I.comment);if(oe){let dt=oe.split(/\r\n?|\n/g);for(let nn of dt)qc(),ar(),fr("*"),ar(),Ge(nn)}}I.tags&&(I.tags.length===1&&I.tags[0].kind===351&&!I.comment?(ar(),He(I.tags[0])):qs(I,I.tags,33)),ar(),Ge("*/")}function FE(I){om(I.tagName),$g(I.typeExpression),am(I.comment)}function H1(I){om(I.tagName),He(I.name),am(I.comment)}function cb(I){ar(),fr("{"),He(I.name),fr("}")}function ev(I){om(I.tagName),ar(),fr("{"),He(I.class),fr("}"),am(I.comment)}function tv(I){om(I.tagName),$g(I.constraint),ar(),qs(I,I.typeParameters,528),am(I.comment)}function EM(I){om(I.tagName),I.typeExpression&&(I.typeExpression.kind===316?$g(I.typeExpression):(ar(),fr("{"),Ge("Object"),I.typeExpression.isArrayType&&(fr("["),fr("]")),fr("}"))),I.fullName&&(ar(),He(I.fullName)),am(I.comment),I.typeExpression&&I.typeExpression.kind===329&&uA(I.typeExpression)}function Ka(I){om(I.tagName),I.name&&(ar(),He(I.name)),am(I.comment),zE(I.typeExpression)}function t_(I){am(I.comment),zE(I.typeExpression)}function dA(I){om(I.tagName),am(I.comment)}function uA(I){qs(I,L.createNodeArray(I.jsDocPropertyTags),33)}function zE(I){I.typeParameters&&qs(I,L.createNodeArray(I.typeParameters),33),I.parameters&&qs(I,L.createNodeArray(I.parameters),33),I.type&&(qc(),ar(),fr("*"),ar(),He(I.type))}function pA(I){om(I.tagName),$g(I.typeExpression),ar(),I.isBracketed&&fr("["),He(I.name),I.isBracketed&&fr("]"),am(I.comment)}function om(I){fr("@"),He(I)}function am(I){let oe=QL(I);oe&&(ar(),Ge(oe))}function $g(I){I&&(ar(),fr("{"),He(I.type),fr("}"))}function K1(I){qc();let oe=I.statements;if(oe.length===0||!vm(oe[0])||Ks(oe[0])){Sr(I,oe,qi);return}qi(I)}function n_(I){gS(!!I.hasNoDefaultLib,I.syntheticFileReferences||[],I.syntheticTypeReferences||[],I.syntheticLibReferences||[]);for(let oe of I.prepends)if(WT(oe)&&oe.syntheticReferences)for(let dt of oe.syntheticReferences)He(dt),qc()}function BD(I){I.isDeclarationFile&&gS(I.hasNoDefaultLib,I.referencedFiles,I.typeReferenceDirectives,I.libReferenceDirectives)}function gS(I,oe,dt,nn){if(I){let Mr=he.getTextPos();V_('/// '),Ae&&Ae.sections.push({pos:Mr,end:he.getTextPos(),kind:"no-default-lib"}),qc()}if(w&&w.moduleName&&(V_(`/// `),qc()),w&&w.amdDependencies)for(let Mr of w.amdDependencies)Mr.name?V_(`/// `):V_(`/// `),qc();for(let Mr of oe){let ki=he.getTextPos();V_(`/// `),Ae&&Ae.sections.push({pos:ki,end:he.getTextPos(),kind:"reference",data:Mr.fileName}),qc()}for(let Mr of dt){let ki=he.getTextPos(),vi=Mr.resolutionMode&&Mr.resolutionMode!==w?.impliedNodeFormat?`resolution-mode="${Mr.resolutionMode===99?"import":"require"}"`:"";V_(`/// `),Ae&&Ae.sections.push({pos:ki,end:he.getTextPos(),kind:Mr.resolutionMode?Mr.resolutionMode===99?"type-import":"type-require":"type",data:Mr.fileName}),qc()}for(let Mr of nn){let ki=he.getTextPos();V_(`/// `),Ae&&Ae.sections.push({pos:ki,end:he.getTextPos(),kind:"lib",data:Mr.fileName}),qc()}}function qi(I){let oe=I.statements;Td(I),gn(I.statements,id),Ut(I);let dt=Kl(oe,nn=>!vm(nn));BD(I),qs(I,oe,1,void 0,dt===-1?oe.length:dt),rp(I)}function Qr(I){let oe=za(I);!(oe&1024)&&I.pos!==I.expression.pos&&wm(I.expression.pos),Ft(I.expression),!(oe&2048)&&I.end!==I.expression.end&&mg(I.expression.end)}function xh(I){vS(I,I.elements,528,void 0)}function Vu(I,oe,dt,nn){let Mr=!!oe;for(let ki=0;ki=dt.length||vi===0;if(_a&&nn&32768){p?.(dt),h?.(dt);return}nn&15360&&(fr(bVe(nn)),_a&&dt&&wm(dt.pos,!0)),p?.(dt),_a?nn&1&&!(fe&&(!oe||w&&IT(oe,w)))?qc():nn&256&&!(nn&524288)&&ar():Mm(I,oe,dt,nn,Mr,ki,vi,dt.hasTrailingComma,dt),h?.(dt),nn&15360&&(_a&&dt&&mg(dt.end),fr(EVe(nn)))}function Mm(I,oe,dt,nn,Mr,ki,vi,Zi,_a){let Qd=(nn&262144)===0,Du=Qd,wf=fg(oe,dt[ki],nn);wf?(qc(wf),Du=!1):nn&256&&ar(),nn&128&&Rh();let vb=IVe(I,Mr),Si,Nh,Vn=!1;for(let CS=0;CS0){if(nn&131||(Rh(),Vn=!0),Du&&nn&60&&!Km(U_.pos)){let ZD=C_(U_);wm(ZD.pos,!!(nn&512),!0)}qc(Ph),Du=!1}else Si&&nn&512&&ar()}if(Nh=Ba(U_),Du){let Ph=C_(U_);wm(Ph.pos)}else Du=Qd;ne=U_.pos,vb(U_,I,Mr,CS),Vn&&(Lm(),Vn=!1),Si=U_}let tx=Si?za(Si):0,bb=Kt||!!(tx&2048),Eb=Zi&&nn&64&&nn&16;Eb&&(Si&&!bb?Ui(28,Si.end,fr,Si):fr(",")),Si&&(oe?oe.end:-1)!==Si.end&&nn&60&&!bb&&mg(Eb&&_a?.end?_a.end:Si.end),nn&128&&Lm(),vn(Nh);let CA=q1(oe,dt[ki+vi-1],nn,_a);CA?qc(CA):nn&2097408&&ar()}function pb(I){he.writeLiteral(I)}function UD(I){he.writeStringLiteral(I)}function hA(I){he.write(I)}function AM(I,oe){he.writeSymbol(I,oe)}function fr(I){he.writePunctuation(I)}function rd(){he.writeTrailingSemicolon(";")}function Qi(I){he.writeKeyword(I)}function uf(I){he.writeOperator(I)}function rv(I){he.writeParameter(I)}function V_(I){he.writeComment(I)}function ar(){he.writeSpace(" ")}function gA(I){he.writeProperty(I)}function BE(I){he.nonEscapingWrite?he.nonEscapingWrite(I):he.write(I)}function qc(I=1){for(let oe=0;oe0)}function Rh(){he.increaseIndent()}function Lm(){he.decreaseIndent()}function bS(I,oe,dt,nn){return ze?fb(I,dt,oe):DS(nn,I,dt,oe,fb)}function ES(I,oe){m&&m(I),oe(da(I.kind)),y&&y(I)}function fb(I,oe,dt){let nn=da(I);return oe(nn),dt<0?dt:dt+nn.length}function ey(I,oe,dt){if(za(I)&1)ar();else if(fe){let nn=Gp(I,oe,dt);nn?qc(nn):ar()}else qc()}function yA(I){let oe=I.split(/\r\n?|\n/g),dt=xre(oe);for(let nn of oe){let Mr=dt?nn.slice(dt):nn;Mr.length&&(qc(),Ge(Mr))}}function km(I,oe){I?(Rh(),qc(I)):oe&&ar()}function GE(I,oe){I&&Lm(),oe&&Lm()}function fg(I,oe,dt){if(dt&2||fe){if(dt&65536)return 1;if(oe===void 0)return!I||w&&IT(I,w)?0:1;if(oe.pos===ne||oe.kind===12)return 0;if(w&&I&&!Km(I.pos)&&!Ks(oe)&&(!oe.parent||Nl(oe.parent)===Nl(I)))return fe?VE(nn=>$ie(oe.pos,I.pos,w,nn)):y6(I,oe,w)?0:1;if(vA(oe,dt))return 1}return dt&1?1:0}function mb(I,oe,dt){if(dt&2||fe){if(I===void 0||oe===void 0||oe.kind===12)return 0;if(w&&!Ks(I)&&!Ks(oe))return fe&&Ru(I,oe)?VE(nn=>Yj(I,oe,w,nn)):!fe&&pf(I,oe)?nk(I,oe,w)?0:1:dt&65536?1:0;if(vA(I,dt)||vA(oe,dt))return 1}else if(nP(oe))return 1;return dt&1?1:0}function q1(I,oe,dt,nn){if(dt&2||fe){if(dt&65536)return 1;if(oe===void 0)return!I||w&&IT(I,w)?0:1;if(w&&I&&!Km(I.pos)&&!Ks(oe)&&(!oe.parent||oe.parent===I)){if(fe){let Mr=nn&&!Km(nn.end)?nn.end:oe.end;return VE(ki=>Qie(Mr,I.end,w,ki))}return qie(I,oe,w)?0:1}if(vA(oe,dt))return 1}return dt&1&&!(dt&131072)?1:0}function VE(I){x.assert(!!fe);let oe=I(!0);return oe===0?I(!1):oe}function HD(I,oe){let dt=fe&&fg(oe,I,0);return dt&&km(dt,!1),!!dt}function SS(I,oe){let dt=fe&&q1(oe,I,0,void 0);dt&&qc(dt)}function vA(I,oe){if(Ks(I)){let dt=nP(I);return dt===void 0?(oe&65536)!==0:dt}return(oe&65536)!==0}function Gp(I,oe,dt){return za(I)&262144?0:(I=Vl(I),oe=Vl(oe),dt=Vl(dt),nP(dt)?1:w&&!Ks(I)&&!Ks(oe)&&!Ks(dt)?fe?VE(nn=>Yj(oe,dt,w,nn)):nk(oe,dt,w)?0:1:0)}function bA(I){return I.statements.length===0&&(!w||nk(I,I,w))}function Vl(I){for(;I.kind===217&&Ks(I);)I=I.expression;return I}function Wc(I,oe){if(rl(I)||aT(I))return SA(I);if(Da(I)&&I.textSourceNode)return Wc(I.textSourceNode,oe);let dt=w,nn=!!dt&&!!I.parent&&!Ks(I);if(Hh(I)){if(!nn||Gn(I)!==Nl(dt))return gr(I)}else if(qm(I)){if(!nn||Gn(I)!==Nl(dt))return QN(I)}else if(x.assertNode(I,b0),!nn)return I.text;return S0(dt,I,oe)}function EA(I,oe,dt){if(I.kind===11&&I.textSourceNode){let Mr=I.textSourceNode;if(Fe(Mr)||Ki(Mr)||mp(Mr)||qm(Mr)){let ki=mp(Mr)?Mr.text:Wc(Mr);return dt?`"${wj(ki)}"`:oe||za(I)&16777216?`"${Qh(ki)}"`:`"${Y2(ki)}"`}else return EA(Mr,oe,dt)}let nn=(oe?1:0)|(dt?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Wre(I,w,nn)}function Td(I){I&&za(I)&1048576||(ge.push(q),q=0,ce.push(z),z=void 0,J.push(re))}function rp(I){I&&za(I)&1048576||(q=ge.pop(),z=ce.pop(),re=J.pop())}function jE(I){(!re||re===$s(J))&&(re=new Set),re.add(I)}function Lf(I,oe){Z.push(me),me=I,pe.push(re),xe=oe}function _b(){me=Z.pop(),xe=pe.pop()}function hb(I){(!xe||xe===$s(pe))&&(xe=new Set),xe.add(I)}function id(I){if(I)switch(I.kind){case 241:gn(I.statements,id);break;case 256:case 254:case 246:case 247:id(I.statement);break;case 245:id(I.thenStatement),id(I.elseStatement);break;case 248:case 250:case 249:id(I.initializer),id(I.statement);break;case 255:id(I.caseBlock);break;case 269:gn(I.clauses,id);break;case 296:case 297:gn(I.statements,id);break;case 258:id(I.tryBlock),id(I.catchClause),id(I.finallyBlock);break;case 299:id(I.variableDeclaration),id(I.block);break;case 243:id(I.declarationList);break;case 261:gn(I.declarations,id);break;case 260:case 169:case 208:case 263:Vp(I.name);break;case 262:Vp(I.name),za(I)&1048576&&(gn(I.parameters,id),id(I.body));break;case 206:case 207:gn(I.elements,id);break;case 272:id(I.importClause);break;case 273:Vp(I.name),id(I.namedBindings);break;case 274:Vp(I.name);break;case 280:Vp(I.name);break;case 275:gn(I.elements,id);break;case 276:Vp(I.propertyName||I.name);break}}function X1(I){if(I)switch(I.kind){case 303:case 304:case 172:case 174:case 177:case 178:Vp(I.name);break}}function Vp(I){I&&(rl(I)||aT(I)?SA(I):Qo(I)&&id(I))}function SA(I){let oe=I.emitNode.autoGenerate;if((oe.flags&7)===4)return TA(Jk(I),Ki(I),oe.flags,oe.prefix,oe.suffix);{let dt=oe.id;return Y[dt]||(Y[dt]=JD(I))}}function TA(I,oe,dt,nn,Mr){let ki=rs(I),vi=oe?K:j;return vi[ki]||(vi[ki]=AA(I,oe,dt??0,BR(nn,SA),BR(Mr)))}function Bs(I,oe){return UE(I,oe)&&!KD(I,oe)&&!B.has(I)}function KD(I,oe){return oe?!!xe?.has(I):!!re?.has(I)}function UE(I,oe){return w?TF(w,I,r):!0}function TS(I,oe){for(let dt=oe;dt&&C0(dt,oe);dt=dt.nextContainer)if(lh(dt)&&dt.locals){let nn=dt.locals.get(pl(I));if(nn&&nn.flags&3257279)return!1}return!0}function IM(I){switch(I){case"":return q;case"#":return me;default:return z?.get(I)??0}}function mu(I,oe){switch(I){case"":q=oe;break;case"#":me=oe;break;default:z??(z=new Map),z.set(I,oe);break}}function ty(I,oe,dt,nn,Mr){nn.length>0&&nn.charCodeAt(0)===35&&(nn=nn.slice(1));let ki=vE(dt,nn,"",Mr),vi=IM(ki);if(I&&!(vi&I)){let _a=vE(dt,nn,I===268435456?"_i":"_n",Mr);if(Bs(_a,dt))return vi|=I,dt?hb(_a):oe&&jE(_a),mu(ki,vi),_a}for(;;){let Zi=vi&268435455;if(vi++,Zi!==8&&Zi!==13){let _a=Zi<26?"_"+String.fromCharCode(97+Zi):"_"+(Zi-26),Qd=vE(dt,nn,_a,Mr);if(Bs(Qd,dt))return dt?hb(Qd):oe&&jE(Qd),mu(ki,vi),Qd}}}function j_(I,oe=Bs,dt,nn,Mr,ki,vi){if(I.length>0&&I.charCodeAt(0)===35&&(I=I.slice(1)),ki.length>0&&ki.charCodeAt(0)===35&&(ki=ki.slice(1)),dt){let _a=vE(Mr,ki,I,vi);if(oe(_a,Mr))return Mr?hb(_a):nn?jE(_a):B.add(_a),_a}I.charCodeAt(I.length-1)!==95&&(I+="_");let Zi=1;for(;;){let _a=vE(Mr,ki,I+Zi,vi);if(oe(_a,Mr))return Mr?hb(_a):nn?jE(_a):B.add(_a),_a;Zi++}}function Y1(I){return j_(I,UE,!0,!1,!1,"","")}function Ip(I){let oe=Wc(I.name);return TS(oe,ri(I,lh))?oe:j_(oe,Bs,!1,!1,!1,"","")}function $1(I){let oe=tR(I),dt=Da(oe)?zre(oe.text):"module";return j_(dt,Bs,!1,!1,!1,"","")}function ip(){return j_("default",Bs,!1,!1,!1,"","")}function Q1(){return j_("class",Bs,!1,!1,!1,"","")}function iv(I,oe,dt,nn){return Fe(I.name)?TA(I.name,oe):ty(0,!1,oe,dt,nn)}function AA(I,oe,dt,nn,Mr){switch(I.kind){case 80:case 81:return j_(Wc(I),Bs,!!(dt&16),!!(dt&8),oe,nn,Mr);case 267:case 266:return x.assert(!nn&&!Mr&&!oe),Ip(I);case 272:case 278:return x.assert(!nn&&!Mr&&!oe),$1(I);case 262:case 263:{x.assert(!nn&&!Mr&&!oe);let ki=I.name;return ki&&!rl(ki)?AA(ki,!1,dt,nn,Mr):ip()}case 277:return x.assert(!nn&&!Mr&&!oe),ip();case 231:return x.assert(!nn&&!Mr&&!oe),Q1();case 174:case 177:case 178:return iv(I,oe,nn,Mr);case 167:return ty(0,!0,oe,nn,Mr);default:return ty(0,!1,oe,nn,Mr)}}function JD(I){let oe=I.emitNode.autoGenerate,dt=BR(oe.prefix,SA),nn=BR(oe.suffix);switch(oe.flags&7){case 1:return ty(0,!!(oe.flags&8),Ki(I),dt,nn);case 2:return x.assertNode(I,Fe),ty(268435456,!!(oe.flags&8),!1,dt,nn);case 3:return j_(gr(I),oe.flags&32?UE:Bs,!!(oe.flags&16),!!(oe.flags&8),Ki(I),dt,nn)}return x.fail(`Unsupported GeneratedIdentifierKind: ${x.formatEnum(oe.flags&7,PW,!0)}.`)}function qD(I,oe){let dt=ie(2,I,oe),nn=Zt,Mr=en,ki=Dn;IA(oe),dt(I,oe),XD(oe,nn,Mr,ki)}function IA(I){let oe=za(I),dt=C_(I);gb(I,oe,dt.pos,dt.end),oe&4096&&(Kt=!0)}function XD(I,oe,dt,nn){let Mr=za(I),ki=C_(I);Mr&4096&&(Kt=!1),xp(I,Mr,ki.pos,ki.end,oe,dt,nn);let vi=Yoe(I);vi&&xp(I,Mr,vi.pos,vi.end,oe,dt,nn)}function gb(I,oe,dt,nn){Li(),Xt=!1;let Mr=dt<0||(oe&1024)!==0||I.kind===12,ki=nn<0||(oe&2048)!==0||I.kind===12;(dt>0||nn>0)&&dt!==nn&&(Mr||AS(dt,I.kind!==359),(!Mr||dt>=0&&oe&1024)&&(Zt=dt),(!ki||nn>=0&&oe&2048)&&(en=nn,I.kind===261&&(Dn=nn))),gn(IR(I),Dh),So()}function xp(I,oe,dt,nn,Mr,ki,vi){Li();let Zi=nn<0||(oe&2048)!==0||I.kind===12;gn(Ik(I),YD),(dt>0||nn>0)&&dt!==nn&&(Zt=Mr,en=ki,Dn=vi,!Zi&&I.kind!==359&&r_(nn)),So()}function Dh(I){(I.hasLeadingNewline||I.kind===2)&&he.writeLine(),xA(I),I.hasTrailingNewLine||I.kind===2?he.writeLine():he.writeSpace(" ")}function YD(I){he.isAtStartOfLine()||he.writeSpace(" "),xA(I),I.hasTrailingNewLine&&he.writeLine()}function xA(I){let oe=es(I),dt=I.kind===3?hI(oe):void 0;fR(oe,dt,he,0,oe.length,A)}function es(I){return I.kind===3?`/*${I.text}*/`:`//${I.text}`}function Sr(I,oe,dt){Li();let{pos:nn,end:Mr}=oe,ki=za(I),vi=nn<0||(ki&1024)!==0,Zi=Kt||Mr<0||(ki&2048)!==0;vi||kf(oe),So(),ki&4096&&!Kt?(Kt=!0,dt(I),Kt=!1):dt(I),Li(),Zi||(AS(oe.end,!0),Xt&&!he.isAtStartOfLine()&&he.writeLine()),So()}function pf(I,oe){return I=Nl(I),I.parent&&I.parent===Nl(oe).parent}function Ru(I,oe){if(oe.pos-1&&nn.indexOf(oe)===Mr+1}function AS(I,oe){Xt=!1,oe?I===0&&w?.isDeclarationFile?hg(I,HE):hg(I,RA):I===0&&hg(I,$D)}function $D(I,oe,dt,nn,Mr){mf(I,oe)&&RA(I,oe,dt,nn,Mr)}function HE(I,oe,dt,nn,Mr){mf(I,oe)||RA(I,oe,dt,nn,Mr)}function IS(I,oe){return e.onlyPrintJsDocStyle?RH(I,oe)||AF(I,oe):!0}function RA(I,oe,dt,nn,Mr){!w||!IS(w.text,I)||(Xt||(Lie(Tt(),he,Mr,I),Xt=!0),Ds(I),fR(w.text,Tt(),he,I,oe,A),Ds(oe),nn?he.writeLine():dt===3&&he.writeSpace(" "))}function mg(I){Kt||I===-1||AS(I,!0)}function r_(I){Z1(I,ff)}function ff(I,oe,dt,nn){!w||!IS(w.text,I)||(he.isAtStartOfLine()||he.writeSpace(" "),Ds(I),fR(w.text,Tt(),he,I,oe,A),Ds(oe),nn&&he.writeLine())}function wm(I,oe,dt){Kt||(Li(),Z1(I,oe?ff:dt?ny:_g),So())}function ny(I,oe,dt){w&&(Ds(I),fR(w.text,Tt(),he,I,oe,A),Ds(oe),dt===2&&he.writeLine())}function _g(I,oe,dt,nn){w&&(Ds(I),fR(w.text,Tt(),he,I,oe,A),Ds(oe),nn?he.writeLine():he.writeSpace(" "))}function hg(I,oe){w&&(Zt===-1||I!==Zt)&&(sc(I)?QD(oe):VL(w.text,I,oe,I))}function Z1(I,oe){w&&(en===-1||I!==en&&I!==Dn)&&jL(w.text,I,oe)}function sc(I){return pn!==void 0&&Ja(pn).nodePos===I}function QD(I){if(!w)return;let oe=Ja(pn).detachedCommentEndPos;pn.length-1?pn.pop():pn=void 0,VL(w.text,oe,I,oe)}function kf(I){let oe=w&&wie(w.text,Tt(),he,Ch,I,A,Kt);oe&&(pn?pn.push(oe):pn=[oe])}function Ch(I,oe,dt,nn,Mr,ki){!w||!IS(w.text,nn)||(Ds(nn),fR(I,oe,dt,nn,Mr,ki),Ds(Mr))}function mf(I,oe){return!!w&&UV(w.text,I,oe)}function xS(I){return I.parsedSourceMap===void 0&&I.sourceMapText!==void 0&&(I.parsedSourceMap=IK(I.sourceMapText)||!1),I.parsedSourceMap||void 0}function KE(I,oe){let dt=ie(3,I,oe);ex(oe),dt(I,oe),DA(oe)}function ex(I){let oe=za(I),dt=Wy(I);if(IV(I)){x.assertIsDefined(I.parent,"UnparsedNodes must have parent pointers");let nn=xS(I.parent);nn&&tt&&tt.appendSourceMap(he.getLine(),he.getColumn(),nn,I.parent.sourceMapPath,I.parent.getLineAndCharacterOfPosition(I.pos),I.parent.getLineAndCharacterOfPosition(I.end))}else{let nn=dt.source||Wt;I.kind!==359&&!(oe&32)&&dt.pos>=0&&RS(dt.source||Wt,_f(nn,dt.pos)),oe&128&&(ze=!0)}}function DA(I){let oe=za(I),dt=Wy(I);IV(I)||(oe&128&&(ze=!1),I.kind!==359&&!(oe&64)&&dt.end>=0&&RS(dt.source||Wt,dt.end))}function _f(I,oe){return I.skipTrivia?I.skipTrivia(oe):Na(I.text,oe)}function Ds(I){if(ze||Km(I)||JE(Wt))return;let{line:oe,character:dt}=hs(Wt,I);tt.addMapping(he.getLine(),he.getColumn(),_t,oe,dt,void 0)}function RS(I,oe){if(I!==Wt){let dt=Wt,nn=_t;ry(I),Ds(oe),yb(dt,nn)}else Ds(oe)}function DS(I,oe,dt,nn,Mr){if(ze||I&&UF(I))return Mr(oe,dt,nn);let ki=I&&I.emitNode,vi=ki&&ki.flags||0,Zi=ki&&ki.tokenSourceMapRanges&&ki.tokenSourceMapRanges[oe],_a=Zi&&Zi.source||Wt;return nn=_f(_a,Zi?Zi.pos:nn),!(vi&256)&&nn>=0&&RS(_a,nn),nn=Mr(oe,dt,nn),Zi&&(nn=Zi.end),!(vi&512)&&nn>=0&&RS(_a,nn),nn}function ry(I){if(!ze){if(Wt=I,I===Je){_t=pt;return}JE(I)||(_t=tt.addSource(I.fileName),e.inlineSources&&tt.setSourceContent(_t,I.text),Je=I,pt=_t)}}function yb(I,oe){Wt=I,_t=oe}function JE(I){return Sl(I.fileName,".json")}}function vVe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function bVe(e){return Fle[e&15360][0]}function EVe(e){return Fle[e&15360][1]}function SVe(e,t,r,i){t(e)}function TVe(e,t,r,i){t(e,r.select(i))}function AVe(e,t,r,i){t(e,r)}function IVe(e,t){return e.length===1?SVe:typeof t=="object"?TVe:AVe}var Fle,Y3,XK,rS,YK,xw,xVe=bt({"src/compiler/emitter.ts"(){"use strict";ea(),ea(),nT(),Fle=vVe(),Y3={hasGlobalName:Ho,getReferencedExportContainer:Ho,getReferencedImportDeclaration:Ho,getReferencedDeclarationWithCollidingName:Ho,isDeclarationWithCollidingName:Ho,isValueAliasDeclaration:Ho,isReferencedAliasDeclaration:Ho,isTopLevelValueImportEqualsWithEntityName:Ho,getNodeCheckFlags:Ho,isDeclarationVisible:Ho,isLateBound:e=>!1,collectLinkedAliases:Ho,isImplementationOfOverload:Ho,isRequiredInitializedParameter:Ho,isOptionalUninitializedParameterProperty:Ho,isExpandoFunctionDeclaration:Ho,getPropertiesOfContainerFunction:Ho,createTypeOfDeclaration:Ho,createReturnTypeOfSignatureDeclaration:Ho,createTypeOfExpression:Ho,createLiteralConstValue:Ho,isSymbolAccessible:Ho,isEntityNameVisible:Ho,getConstantValue:Ho,getReferencedValueDeclaration:Ho,getReferencedValueDeclarations:Ho,getTypeReferenceSerializationKind:Ho,isOptionalParameter:Ho,moduleExportsSomeValue:Ho,isArgumentsLocalBinding:Ho,getExternalModuleFileFromDeclaration:Ho,getTypeReferenceDirectivesForEntityName:Ho,getTypeReferenceDirectivesForSymbol:Ho,isLiteralConstDeclaration:Ho,getJsxFactoryEntity:Ho,getJsxFragmentFactoryEntity:Ho,getAllAccessorDeclarations:Ho,getSymbolOfExternalModuleSpecifier:Ho,isBindingCapturedByNode:Ho,getDeclarationStatementsForSourceFile:Ho,isImportRequiredByAugmentation:Ho,tryFindAmbientModule:Ho},XK=vu(()=>AE({})),rS=vu(()=>AE({removeComments:!0})),YK=vu(()=>AE({removeComments:!0,neverAsciiEscape:!0})),xw=vu(()=>AE({removeComments:!0,omitTrailingSemicolon:!0}))}});function $3(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=Nd(r);return{useCaseSensitiveFileNames:r,fileExists:S,readFile:(z,Z)=>e.readFile(z,Z),directoryExists:e.directoryExists&&A,getDirectories:D,readDirectory:w,createDirectory:e.createDirectory&&N,writeFile:e.writeFile&&E,addOrDeleteFileOrDirectory:K,addOrDeleteFile:Y,clearCache:ce,realpath:e.realpath&&j};function s(z){return tl(z,t,o)}function l(z){return i.get(Bc(z))}function d(z){let Z=l(oi(z));return Z&&(Z.sortedAndCanonicalizedFiles||(Z.sortedAndCanonicalizedFiles=Z.files.map(o).sort(),Z.sortedAndCanonicalizedDirectories=Z.directories.map(o).sort()),Z)}function p(z){return nc(ma(z))}function h(z,Z){var me;if(!e.realpath||Bc(s(e.realpath(z)))===Z){let ge={files:mn(e.readDirectory(z,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(z)||[]};return i.set(Bc(Z),ge),ge}if((me=e.directoryExists)!=null&&me.call(e,z))return i.set(Z,!1),!1}function m(z,Z){Z=Bc(Z);let me=l(Z);if(me)return me;try{return h(z,Z)}catch{x.assert(!i.has(Bc(Z)));return}}function y(z,Z){return by(z,Z,Qs,Vd)>=0}function E(z,Z,me){let ge=s(z),q=d(ge);return q&&B(q,p(z),!0),e.writeFile(z,Z,me)}function S(z){let Z=s(z),me=d(Z);return me&&y(me.sortedAndCanonicalizedFiles,o(p(z)))||e.fileExists(z)}function A(z){let Z=s(z);return i.has(Bc(Z))||e.directoryExists(z)}function N(z){let Z=s(z),me=d(Z);if(me){let ge=p(z),q=o(ge),J=me.sortedAndCanonicalizedDirectories;vv(J,q,Vd)&&me.directories.push(ge)}e.createDirectory(z)}function D(z){let Z=s(z),me=m(z,Z);return me?me.directories.slice():e.getDirectories(z)}function w(z,Z,me,ge,q){let J=s(z),re=m(z,J),pe;if(re!==void 0)return lU(z,Z,me,ge,r,t,q,xe,j);return e.readDirectory(z,Z,me,ge,q);function xe(ne){let he=s(ne);if(he===J)return re||fe(ne,he);let Ce=m(ne,he);return Ce!==void 0?Ce||fe(ne,he):Q6}function fe(ne,he){if(pe&&he===J)return pe;let Ce={files:mn(e.readDirectory(ne,void 0,void 0,["*.*"]),p)||Xe,directories:e.getDirectories(ne)||Xe};return he===J&&(pe=Ce),Ce}}function j(z){return e.realpath?e.realpath(z):z}function K(z,Z){if(l(Z)!==void 0){ce();return}let ge=d(Z);if(!ge)return;if(!e.directoryExists){ce();return}let q=p(z),J={fileExists:e.fileExists(z),directoryExists:e.directoryExists(z)};return J.directoryExists||y(ge.sortedAndCanonicalizedDirectories,o(q))?ce():B(ge,q,J.fileExists),J}function Y(z,Z,me){if(me===1)return;let ge=d(Z);ge&&B(ge,p(z),me===0)}function B(z,Z,me){let ge=z.sortedAndCanonicalizedFiles,q=o(Z);if(me)vv(ge,q,Vd)&&z.files.push(Z);else{let J=by(ge,q,Qs,Vd);if(J>=0){ge.splice(J,1);let re=z.files.findIndex(pe=>o(pe)===q);z.files.splice(re,1)}}}function ce(){i.clear()}}function Q3(e,t,r,i,o){var s;let l=_0(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||Xe,o);r.forEach((d,p)=>{l.has(p)||(d.projects.delete(e),d.close())}),l.forEach((d,p)=>{let h=r.get(p);h?h.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(d,p),close:()=>{let m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function $K(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function Z3(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&Z3(e,o,r)})}function QK(e,t,r){WN(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Hm})}function Rw(e,t,r){t?WN(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Rf,onExistingValue:o}):$u(e,Rf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,d){s.flags!==l&&(s.watcher.close(),e.set(d,i(d,l)))}}function Dw({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:d,useCaseSensitiveFileNames:p,writeLog:h,toPath:m,getScriptKind:y}){let E=uz(r);if(!E)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(mI(r)&&!(voe(t,o,l)||w()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(tse(t,o.configFile.configFileSpecs,ho(oi(i),d),p,d))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||xs(o)||o.outDir)return!1;if(Ed(r)){if(o.declarationDir)return!1}else if(!bc(r,AR))return!1;let S=Eu(r),A=To(s)?void 0:RVe(s)?s.getProgramOrUndefined():s,N=!A&&!To(s)?s:void 0;if(D(S+".ts")||D(S+".tsx"))return h(`Project: ${i} Detected output file: ${t}`),!0;return!1;function D(j){return A?!!A.getSourceFileByPath(j):N?N.getState().fileInfos.has(j):!!Vr(s,K=>m(K)===j)}function w(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Vv(o);case 6:return mE(o);case 0:return!1}}}function RVe(e){return!!e.getState}function zle(e,t){return e?e.isEmittedFile(t):!1}function ZK(e,t,r,i){Tne(t===2?r:qa);let o={watchFile:(N,D,w,j)=>e.watchFile(N,D,w,j),watchDirectory:(N,D,w,j)=>e.watchDirectory(N,D,(w&1)!==0,j)},s=t!==0?{watchFile:S("watchFile"),watchDirectory:S("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:E}:s||o,d=t===2?m:oD;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(N){return(D,w,j,K,Y,B)=>{var ce;return l3(D,N==="watchFile"?K?.excludeFiles:K?.excludeDirectories,h(),((ce=e.getCurrentDirectory)==null?void 0:ce.call(e))||"")?d(D,j,K,Y,B):l[N].call(void 0,D,w,j,K,Y,B)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(N,D,w,j,K){return r(`ExcludeWatcher:: Added:: ${A(N,D,w,j,K,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${A(N,D,w,j,K,i)}`)}}function y(N,D,w,j,K,Y){r(`FileWatcher:: Added:: ${A(N,w,j,K,Y,i)}`);let B=s.watchFile(N,D,w,j,K,Y);return{close:()=>{r(`FileWatcher:: Close:: ${A(N,w,j,K,Y,i)}`),B.close()}}}function E(N,D,w,j,K,Y){let B=`DirectoryWatcher:: Added:: ${A(N,w,j,K,Y,i)}`;r(B);let ce=Hs(),z=s.watchDirectory(N,D,w,j,K,Y),Z=Hs()-ce;return r(`Elapsed:: ${Z}ms ${B}`),{close:()=>{let me=`DirectoryWatcher:: Close:: ${A(N,w,j,K,Y,i)}`;r(me);let ge=Hs();z.close();let q=Hs()-ge;r(`Elapsed:: ${q}ms ${me}`)}}}function S(N){return(D,w,j,K,Y,B)=>o[N].call(void 0,D,(...ce)=>{let z=`${N==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ce[0]} ${ce[1]!==void 0?ce[1]:""}:: ${A(D,j,K,Y,B,i)}`;r(z);let Z=Hs();w.call(void 0,...ce);let me=Hs()-Z;r(`Elapsed:: ${me}ms ${z}`)},j,K,Y,B)}function A(N,D,w,j,K,Y){return`WatchInfo: ${N} ${D} ${JSON.stringify(w)} ${Y?Y(j,K):K===void 0?j:`${j} ${K}`}`}}function Cw(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Rf(e){e.watcher.close()}var eJ,tJ,DVe=bt({"src/compiler/watchUtilities.ts"(){"use strict";ea(),eJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(eJ||{}),tJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(tJ||{})}});function Ble(e,t,r="tsconfig.json"){return hm(e,i=>{let o=Yr(i,r);return t(o)?o:void 0})}function ez(e,t){let r=oi(t),i=cp(e)?e:Yr(r,e);return ma(i)}function Gle(e,t,r){let i;return gn(e,s=>{let l=wL(s,t);if(l.pop(),!i){i=l;return}let d=Math.min(i.length,l.length);for(let p=0;p{let l;try{el("beforeIORead"),l=e(i,t().charset),el("afterIORead"),Xp("I/O Read","beforeIORead","afterIORead")}catch(d){s&&s(d.message),l=""}return l!==void 0?Yk(i,l,o,r):void 0}}function rJ(e,t,r){return(i,o,s,l)=>{try{el("beforeIOWrite"),zj(i,o,s,e,t,r),el("afterIOWrite"),Xp("I/O Write","beforeIOWrite","afterIOWrite")}catch(d){l&&l(d.message)}}}function iJ(e,t,r=hd){let i=new Map,o=Nd(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(h.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return oi(ma(r.getExecutingFilePath()))}let d=wy(e),p=r.realpath&&(m=>r.realpath(m)),h={getSourceFile:nJ(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>Yr(l(),HL(m)),writeFile:rJ((m,y,E)=>r.writeFile(m,y,E),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:vu(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>d,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+d),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:p,readDirectory:(m,y,E,S,A)=>r.readDirectory(m,y,E,S,A),createDirectory:m=>r.createDirectory(m),createHash:ta(r,r.createHash)};return h}function Nw(e,t,r){let i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,d=e.writeFile,p=new Map,h=new Map,m=new Map,y=new Map,E=N=>{let D=t(N),w=p.get(D);return w!==void 0?w!==!1?w:void 0:S(D,N)},S=(N,D)=>{let w=i.call(e,D);return p.set(N,w!==void 0?w:!1),w};e.readFile=N=>{let D=t(N),w=p.get(D);return w!==void 0?w!==!1?w:void 0:!Sl(N,".json")&&!wle(N)?i.call(e,N):S(D,N)};let A=r?(N,D,w,j)=>{let K=t(N),Y=typeof D=="object"?D.impliedNodeFormat:void 0,B=y.get(Y),ce=B?.get(K);if(ce)return ce;let z=r(N,D,w,j);return z&&(Ed(N)||Sl(N,".json"))&&y.set(Y,(B||new Map).set(K,z)),z}:void 0;return e.fileExists=N=>{let D=t(N),w=h.get(D);if(w!==void 0)return w;let j=o.call(e,N);return h.set(D,!!j),j},d&&(e.writeFile=(N,D,...w)=>{let j=t(N);h.delete(j);let K=p.get(j);K!==void 0&&K!==D?(p.delete(j),y.forEach(Y=>Y.delete(j))):A&&y.forEach(Y=>{let B=Y.get(j);B&&B.text!==D&&Y.delete(j)}),d.call(e,N,D,...w)}),s&&(e.directoryExists=N=>{let D=t(N),w=m.get(D);if(w!==void 0)return w;let j=s.call(e,N);return m.set(D,!!j),j},l&&(e.createDirectory=N=>{let D=t(N);m.delete(D),l.call(e,N)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:d,getSourceFileWithCache:A,readFileWithCache:E}}function YIe(e,t,r){let i;return i=Hr(i,e.getConfigFileParsingDiagnostics()),i=Hr(i,e.getOptionsDiagnostics(r)),i=Hr(i,e.getSyntacticDiagnostics(t,r)),i=Hr(i,e.getGlobalDiagnostics(r)),i=Hr(i,e.getSemanticDiagnostics(t,r)),Af(e.getCompilerOptions())&&(i=Hr(i,e.getDeclarationDiagnostics(t,r))),Mx(i||Xe)}function $Ie(e,t){let r="";for(let i of e)r+=oJ(i,t);return r}function oJ(e,t){let r=`${rT(e)} TS${e.code}: ${k_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=hs(e.file,e.start),s=e.file.fileName;return`${JC(s,t.getCurrentDirectory(),d=>t.getCanonicalFileName(d))}(${i+1},${o+1}): `+r}return r}function QIe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return x.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function iS(e,t){return t+e+Kle}function ZIe(e,t,r,i,o,s){let{line:l,character:d}=hs(e,t),{line:p,character:h}=hs(e,t+r),m=hs(e,e.text.length).line,y=p-l>=4,E=(p+1+"").length;y&&(E=Math.max(Jle.length,E));let S="";for(let A=l;A<=p;A++){S+=s.getNewLine(),y&&l+1r.getCanonicalFileName(p)):e.fileName,d="";return d+=i(l,"\x1B[96m"),d+=":",d+=i(`${o+1}`,"\x1B[93m"),d+=":",d+=i(`${s+1}`,"\x1B[93m"),d}function jle(e,t){let r="";for(let i of e){if(i.file){let{file:o,start:s}=i;r+=aJ(o,s,t),r+=" - "}if(r+=iS(rT(i),QIe(i.category)),r+=iS(` TS${i.code}: `,"\x1B[90m"),r+=k_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=ZIe(i.file,i.start,i.length,"",QIe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(let{file:o,start:s,length:l,messageText:d}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=n1e+aJ(o,s,t),r+=ZIe(o,s,l,qle,"\x1B[96m",t)),r+=t.getNewLine(),r+=qle+k_(d,t.getNewLine())}r+=t.getNewLine()}return r}function k_(e,t,r=0){if(No(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;oKR(s,e,r,i,o,t,l)}}function uJ(e){return No(e)?e:ih(e.fileName)}function tz(e,t,r,i,o){return{nameAndMode:r1e,resolve:(s,l)=>hse(s,e,r,i,t,o,l)}}function Mw(e,t,r,i,o,s,l,d){if(e.length===0)return Xe;let p=[],h=new Map,m=d(t,r,i,s,l);for(let y of e){let E=m.nameAndMode.getName(y),S=m.nameAndMode.getMode(y,o,r?.commandLine.options||i),A=RP(E,S),N=h.get(A);N||h.set(A,N=m.resolve(E,S)),p.push(N)}return p}function pJ(e,t){return nz(void 0,e,(r,i)=>r&&t(r,i))}function nz(e,t,r,i){let o;return s(e,t,void 0);function s(l,d,p){if(i){let h=i(l,p);if(h)return h}return gn(d,(h,m)=>{if(h&&o?.has(h.sourceFile.path))return;let y=r(h,p,m);return y||!h?y:((o||(o=new Set)).add(h.sourceFile.path),s(h.commandLine.projectReferences,h.references,h))})}}function rz(e,t,r){let i=e.configFilePath?oi(e.configFilePath):t;return Yr(i,`__lib_node_modules_lookup_${r}__.ts`)}function fJ(e){let t=e.split("."),r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function e1e(e){let t=ih(e.fileName),r=c3.get(t);return{libName:t,libFileName:r}}function IE(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function ZR(e){return e.pos!==void 0}function VP(e,t){var r,i,o,s;let l=x.checkDefined(e.getSourceFileByPath(t.file)),{kind:d,index:p}=t,h,m,y,E;switch(d){case 3:let S=kw(l,p);if(y=(i=(r=e.getResolvedModule(l,S.text,e.getModeForUsageLocation(l,S)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,S.pos===-1)return{file:l,packageId:y,text:S.text};h=Na(l.text,S.pos),m=S.end;break;case 4:({pos:h,end:m}=l.referencedFiles[p]);break;case 5:({pos:h,end:m,resolutionMode:E}=l.typeReferenceDirectives[p]),y=(s=(o=e.getResolvedTypeReferenceDirective(l,ih(l.typeReferenceDirectives[p].fileName),E||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:h,end:m}=l.libReferenceDirectives[p]);break;default:return x.assertNever(d)}return{file:l,pos:h,end:m,packageId:y}}function mJ(e,t,r,i,o,s,l,d,p,h){if(!e||d?.()||!Gm(e.getRootFileNames(),t))return!1;let m;if(!Gm(e.getProjectReferences(),h,N)||e.getSourceFiles().some(S))return!1;let y=e.getMissingFilePaths();if(y&&Gc(y,o))return!1;let E=e.getCompilerOptions();if(!Qj(E,r)||e.resolvedLibReferences&&Gc(e.resolvedLibReferences,(w,j)=>l(j)))return!1;if(E.configFile&&r.configFile)return E.configFile.text===r.configFile.text;return!0;function S(w){return!A(w)||s(w.path)}function A(w){return w.version===i(w.resolvedPath,w.fileName)}function N(w,j,K){return GV(w,j)&&D(e.getResolvedProjectReferences()[K],w)}function D(w,j){if(w){if(Bo(m,w))return!0;let Y=eD(j),B=p(Y);return!B||w.commandLine.options.configFile!==B.options.configFile||!Gm(w.commandLine.fileNames,B.fileNames)?!1:((m||(m=[])).push(w),!gn(w.references,(ce,z)=>!D(ce,w.commandLine.projectReferences[z])))}let K=eD(j);return!p(K)}}function KT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Lw(e,t,r,i){let o=_J(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function _J(e,t,r,i){switch(du(i)){case 3:case 99:return bc(e,[".d.mts",".mts",".mjs"])?99:bc(e,[".d.cts",".cts",".cjs"])?1:bc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){let s=pw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let d=fw(e,s);return{impliedNodeFormat:d?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:d}}}function CVe(e,t){return e?Gx(e.getCompilerOptions(),t,u3):!1}function NVe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function iz(e,t,r,i,o){var s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y;let B=To(e)?NVe(e,t,r,i,o):e,{rootNames:ce,options:z,configFileParsingDiagnostics:Z,projectReferences:me,typeScriptVersion:ge}=B,{oldProgram:q}=B,J=vu(()=>Dm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),re,pe,xe,fe,ne,he,Ce,Ge=new Map,ve=qp(),Ae={},De={},Le=u1(),Et,be,ze,tt,Wt,_t,Je,pt,Zt,en,Dn=typeof z.maxNodeModuleJsDepth=="number"?z.maxNodeModuleJsDepth:0,Kn=0,pn=new Map,Xt=new Map;(s=rr)==null||s.push(rr.Phase.Program,"createProgram",{configFilePath:z.configFilePath,rootDir:z.rootDir},!0),el("beforeProgram");let Kt=B.host||Vle(z),hi=az(Kt),uo=z.noLib,Li=vu(()=>Kt.getDefaultLibFileName(z)),So=Kt.getDefaultLibLocation?Kt.getDefaultLibLocation():oi(Li()),Qn=cR(),Ur=Kt.getCurrentDirectory(),Er=BN(z),on=ak(z,Er),Ye=new Map,Ot,In,si,yi=Kt.hasInvalidatedResolutions||Vm;Kt.resolveModuleNameLiterals?(si=Kt.resolveModuleNameLiterals.bind(Kt),In=(l=Kt.getModuleResolutionCache)==null?void 0:l.call(Kt)):Kt.resolveModuleNames?(si=(we,qe,Pt,Bt,_n,Jn)=>Kt.resolveModuleNames(we.map(Hle),qe,Jn?.map(Hle),Pt,Bt,_n).map(fn=>fn?fn.extension!==void 0?{resolvedModule:fn}:{resolvedModule:{...fn,extension:VN(fn.resolvedFileName)}}:Xle),In=(d=Kt.getModuleResolutionCache)==null?void 0:d.call(Kt)):(In=HR(Ur,Q,z),si=(we,qe,Pt,Bt,_n)=>Mw(we,qe,Pt,Bt,_n,Kt,In,dJ));let $i;if(Kt.resolveTypeReferenceDirectiveReferences)$i=Kt.resolveTypeReferenceDirectiveReferences.bind(Kt);else if(Kt.resolveTypeReferenceDirectives)$i=(we,qe,Pt,Bt,_n)=>Kt.resolveTypeReferenceDirectives(we.map(uJ),qe,Pt,Bt,_n?.impliedNodeFormat).map(Jn=>({resolvedTypeReferenceDirective:Jn}));else{let we=b3(Ur,Q,void 0,In?.getPackageJsonInfoCache(),In?.optionsToRedirectsKey);$i=(qe,Pt,Bt,_n,Jn)=>Mw(qe,Pt,Bt,_n,Jn,Kt,we,tz)}let Io=Kt.hasInvalidatedLibResolutions||Vm,ua;if(Kt.resolveLibrary)ua=Kt.resolveLibrary.bind(Kt);else{let we=HR(Ur,Q,z,In?.getPackageJsonInfoCache());ua=(qe,Pt,Bt)=>E3(qe,Pt,Bt,Kt,we)}let Ba=new Map,vn=new Map,kn=qp(),Be=!1,ct=new Map,lt=new Map,Rt=Kt.useCaseSensitiveFileNames()?new Map:void 0,ae,ke,st,G,et=!!((p=Kt.useSourceOfProjectReferenceRedirect)!=null&&p.call(Kt))&&!z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Tt,fileExists:He,directoryExists:ut}=PVe({compilerHost:Kt,getSymlinkCache:B_,useSourceOfProjectReferenceRedirect:et,toPath:er,getResolvedProjectReferences:Mo,getSourceOfProjectReferenceRedirect:xu,forEachResolvedProjectReference:Fu}),Ft=Kt.readFile.bind(Kt);(h=rr)==null||h.push(rr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!q});let hn=CVe(q,z);(m=rr)==null||m.pop();let dn;if((y=rr)==null||y.push(rr.Phase.Program,"tryReuseStructureFromOldProgram",{}),dn=xo(),(E=rr)==null||E.pop(),dn!==2){if(re=[],pe=[],me&&(ae||(ae=me.map(zt)),ce.length&&ae?.forEach((we,qe)=>{if(!we)return;let Pt=xs(we.commandLine.options);if(et){if(Pt||Ld(we.commandLine.options)===0)for(let Bt of we.commandLine.fileNames)Lt(Bt,{kind:1,index:qe})}else if(Pt)Lt(pE(Pt,".d.ts"),{kind:2,index:qe});else if(Ld(we.commandLine.options)===0){let Bt=vu(()=>$R(we.commandLine,!Kt.useCaseSensitiveFileNames()));for(let _n of we.commandLine.fileNames)!Ed(_n)&&!Sl(_n,".json")&&Lt(BP(_n,we.commandLine,!Kt.useCaseSensitiveFileNames(),Bt),{kind:2,index:qe})}})),(S=rr)==null||S.push(rr.Phase.Program,"processRootFiles",{count:ce.length}),gn(ce,(we,qe)=>zs(we,!1,!1,{kind:0,index:qe})),(A=rr)==null||A.pop(),be??(be=ce.length?y3(z,Kt):Xe),ze=u1(),be.length){(N=rr)==null||N.push(rr.Phase.Program,"processTypeReferences",{count:be.length});let we=z.configFilePath?oi(z.configFilePath):Ur,qe=Yr(we,tD),Pt=Ri(be,qe);for(let Bt=0;Bt{zs(Sp(qe),!0,!1,{kind:6,index:Pt})})}xe=vy(re,gi).concat(pe),re=void 0,pe=void 0}if(q&&Kt.onReleaseOldSourceFile){let we=q.getSourceFiles();for(let qe of we){let Pt=ul(qe.resolvedPath);(hn||!Pt||Pt.impliedNodeFormat!==qe.impliedNodeFormat||qe.resolvedPath===qe.path&&Pt.resolvedPath!==qe.path)&&Kt.onReleaseOldSourceFile(qe,q.getCompilerOptions(),!!ul(qe.path))}Kt.getParsedCommandLine||q.forEachResolvedProjectReference(qe=>{z_(qe.sourceFile.path)||Kt.onReleaseOldSourceFile(qe.sourceFile,q.getCompilerOptions(),!1)})}q&&Kt.onReleaseParsedCommandLine&&nz(q.getProjectReferences(),q.getResolvedProjectReferences(),(we,qe,Pt)=>{let Bt=qe?.commandLine.projectReferences[Pt]||q.getProjectReferences()[Pt],_n=eD(Bt);ke?.has(er(_n))||Kt.onReleaseParsedCommandLine(_n,we,q.getCompilerOptions())}),q=void 0,Wt=void 0,Je=void 0,Zt=void 0;let un={getRootFileNames:()=>ce,getSourceFile:Ca,getSourceFileByPath:ul,getSourceFiles:()=>xe,getMissingFilePaths:()=>lt,getModuleResolutionCache:()=>In,getFilesByNameMap:()=>ct,getCompilerOptions:()=>z,getSyntacticDiagnostics:ac,getOptionsDiagnostics:Cr,getGlobalDiagnostics:bl,getSemanticDiagnostics:xl,getCachedSemanticDiagnostics:al,getSuggestionDiagnostics:Pe,getDeclarationDiagnostics:Fs,getBindAndCheckDiagnostics:Lo,getProgramDiagnostics:tn,getTypeChecker:mo,getClassifiableNames:go,getCommonSourceDirectory:Fr,emit:la,getCurrentDirectory:()=>Ur,getNodeCount:()=>mo().getNodeCount(),getIdentifierCount:()=>mo().getIdentifierCount(),getSymbolCount:()=>mo().getSymbolCount(),getTypeCount:()=>mo().getTypeCount(),getInstantiationCount:()=>mo().getInstantiationCount(),getRelationCacheSizes:()=>mo().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Et,getResolvedTypeReferenceDirectives:()=>Le,getAutomaticTypeDirectiveNames:()=>be,getAutomaticTypeDirectiveResolutions:()=>ze,isSourceFileFromExternalLibrary:ml,isSourceFileDefaultLibrary:cd,getModeForUsageLocation:df,getModeForResolutionAtIndex:qg,getSourceFileFromReference:im,getLibFileFromReference:Oc,sourceFileToPackageName:vn,redirectTargetsMap:kn,usesUriStyleNodeCoreModules:Be,resolvedModules:_t,resolvedTypeReferenceDirectiveNames:pt,resolvedLibReferences:tt,getResolvedModule:U,getResolvedModuleFromModuleSpecifier:Me,getResolvedTypeReferenceDirective:Nt,forEachResolvedModule:k,forEachResolvedTypeReferenceDirective:ie,getCurrentPackagesMap:()=>en,typesPackageExists:We,packageBundlesTypes:Ne,isEmittedFile:fS,getConfigFileParsingDiagnostics:Hc,getProjectReferences:ss,getResolvedProjectReferences:Mo,getProjectReferenceRedirect:Gl,getResolvedProjectReferenceToRedirect:lf,getResolvedProjectReferenceByPath:z_,forEachResolvedProjectReference:Fu,isSourceOfProjectReferenceRedirect:Pf,emitBuildInfo:$l,fileExists:He,readFile:Ft,directoryExists:ut,getSymlinkCache:B_,realpath:(K=Kt.realpath)==null?void 0:K.bind(Kt),useCaseSensitiveFileNames:()=>Kt.useCaseSensitiveFileNames(),getCanonicalFileName:Q,getFileIncludeReasons:()=>ve,structureIsReused:dn,writeFile:Ls};return Tt(),Et?.forEach(we=>{switch(we.kind){case 1:return Qn.add(ii(we.file&&ul(we.file),we.fileProcessingReason,we.diagnostic,we.args||Xe));case 0:let{file:qe,pos:Pt,end:Bt}=VP(un,we.reason);return Qn.add(Qc(qe,x.checkDefined(Pt),x.checkDefined(Bt)-Pt,we.diagnostic,...we.args||Xe));case 2:return we.diagnostics.forEach(_n=>Qn.add(_n));default:x.assertNever(we)}}),O(),el("afterProgram"),Xp("Program","beforeProgram","afterProgram"),(Y=rr)==null||Y.pop(),un;function U(we,qe,Pt){var Bt;return(Bt=_t?.get(we.path))==null?void 0:Bt.get(qe,Pt)}function Me(we){let qe=Gn(we);return x.assertIsDefined(qe,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),U(qe,we.text,df(qe,we))}function Nt(we,qe,Pt){var Bt;return(Bt=pt?.get(we.path))==null?void 0:Bt.get(qe,Pt)}function k(we,qe){H(_t,we,qe)}function ie(we,qe){H(pt,we,qe)}function H(we,qe,Pt){var Bt;Pt?(Bt=we?.get(Pt.path))==null||Bt.forEach((_n,Jn,fn)=>qe(_n,Jn,fn,Pt.path)):we?.forEach((_n,Jn)=>_n.forEach((fn,qn,fi)=>qe(fn,qn,fi,Jn)))}function ue(){return en||(en=new Map,k(({resolvedModule:we})=>{we?.packageId&&en.set(we.packageId.name,we.extension===".d.ts"||!!en.get(we.packageId.name))}),en)}function We(we){return ue().has(A3(we))}function Ne(we){return!!ue().get(we)}function It(we){var qe;(qe=we.resolutionDiagnostics)!=null&&qe.length&&(Et??(Et=[])).push({kind:2,diagnostics:we.resolutionDiagnostics})}function Dt(we,qe,Pt,Bt){if(Kt.resolveModuleNameLiterals||!Kt.resolveModuleNames)return It(Pt);if(!In||Yc(qe))return;let _n=ho(we.originalFileName,Ur),Jn=oi(_n),fn=wn(we),qn=In.getFromNonRelativeNameCache(qe,Bt,Jn,fn);qn&&It(qn)}function Ut(we,qe,Pt){var Bt,_n;if(!we.length)return Xe;let Jn=ho(qe.originalFileName,Ur),fn=wn(qe);(Bt=rr)==null||Bt.push(rr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Jn}),el("beforeResolveModule");let qn=si(we,Jn,fn,z,qe,Pt);return el("afterResolveModule"),Xp("ResolveModule","beforeResolveModule","afterResolveModule"),(_n=rr)==null||_n.pop(),qn}function En(we,qe,Pt){var Bt,_n;if(!we.length)return[];let Jn=No(qe)?void 0:qe,fn=No(qe)?qe:ho(qe.originalFileName,Ur),qn=Jn&&wn(Jn);(Bt=rr)==null||Bt.push(rr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:fn}),el("beforeResolveTypeReference");let fi=$i(we,fn,qn,z,Jn,Pt);return el("afterResolveTypeReference"),Xp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(_n=rr)==null||_n.pop(),fi}function wn(we){let qe=lf(we.originalFileName);if(qe||!Ed(we.originalFileName))return qe;let Pt=Bn(we.path);if(Pt)return Pt;if(!Kt.realpath||!z.preserveSymlinks||!we.originalFileName.includes(Eh))return;let Bt=er(Kt.realpath(we.originalFileName));return Bt===we.path?void 0:Bn(Bt)}function Bn(we){let qe=xu(we);if(No(qe))return lf(qe);if(qe)return Fu(Pt=>{let Bt=xs(Pt.commandLine.options);if(Bt)return er(Bt)===we?Pt:void 0})}function gi(we,qe){return Zs(xi(we),xi(qe))}function xi(we){if(mm(So,we.fileName,!1)){let qe=nc(we.fileName);if(qe==="lib.d.ts"||qe==="lib.es6.d.ts")return 0;let Pt=Sx(VC(qe,"lib."),".d.ts"),Bt=iw.indexOf(Pt);if(Bt!==-1)return Bt+1}return iw.length+2}function er(we){return tl(we,Ur,Q)}function Fr(){if(ne===void 0){let we=jr(xe,qe=>ET(qe,un));ne=GP(z,()=>to(we,qe=>qe.isDeclarationFile?void 0:qe.fileName),Ur,Q,qe=>wt(we,qe))}return ne}function go(){var we;if(!Ce){mo(),Ce=new Set;for(let qe of xe)(we=qe.classifiableNames)==null||we.forEach(Pt=>Ce.add(Pt))}return Ce}function Pi(we,qe){if(dn===0&&!qe.ambientModuleNames.length)return Ut(we,qe,void 0);let Pt,Bt,_n,Jn=Xle,fn=q&&q.getSourceFile(qe.fileName);for(let ni=0;ni{let Bt=(qe?qe.commandLine.projectReferences:me)[Pt],_n=zt(Bt);return we?!_n||_n.sourceFile!==we.sourceFile||!Gm(we.commandLine.fileNames,_n.commandLine.fileNames):_n!==void 0},(we,qe)=>{let Pt=qe?z_(qe.sourceFile.path).commandLine.projectReferences:me;return!Gm(we,Pt,GV)})}function xo(){var we;if(!q)return 0;let qe=q.getCompilerOptions();if(yF(qe,z))return 0;let Pt=q.getRootFileNames();if(!Gm(Pt,ce)||!Kr())return 0;me&&(ae=me.map(zt));let Bt=[],_n=[];if(dn=2,Gc(q.getMissingFilePaths(),or=>Kt.fileExists(or)))return 0;let Jn=q.getSourceFiles(),fn;(or=>{or[or.Exists=0]="Exists",or[or.Modified=1]="Modified"})(fn||(fn={}));let qn=new Map;for(let or of Jn){let ni=Zo(or.fileName,In,Kt,z),cr=Kt.getSourceFileByPath?Kt.getSourceFileByPath(or.fileName,or.resolvedPath,ni,void 0,hn):Kt.getSourceFile(or.fileName,ni,void 0,hn);if(!cr)return 0;cr.packageJsonLocations=(we=ni.packageJsonLocations)!=null&&we.length?ni.packageJsonLocations:void 0,cr.packageJsonScope=ni.packageJsonScope,x.assert(!cr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Yo;if(or.redirectInfo){if(cr!==or.redirectInfo.unredirected)return 0;Yo=!1,cr=or}else if(q.redirectTargetsMap.has(or.path)){if(cr!==or)return 0;Yo=!1}else Yo=cr!==or;cr.path=or.path,cr.originalFileName=or.originalFileName,cr.resolvedPath=or.resolvedPath,cr.fileName=or.fileName;let Ha=q.sourceFileToPackageName.get(or.path);if(Ha!==void 0){let $d=qn.get(Ha),fd=Yo?1:0;if($d!==void 0&&fd===1||$d===1)return 0;qn.set(Ha,fd)}if(Yo)or.impliedNodeFormat!==cr.impliedNodeFormat?dn=1:Gm(or.libReferenceDirectives,cr.libReferenceDirectives,hc)?or.hasNoDefaultLib!==cr.hasNoDefaultLib?dn=1:Gm(or.referencedFiles,cr.referencedFiles,hc)?(tp(cr),Gm(or.imports,cr.imports,ys)&&Gm(or.moduleAugmentations,cr.moduleAugmentations,ys)?(or.flags&12582912)!==(cr.flags&12582912)?dn=1:Gm(or.typeReferenceDirectives,cr.typeReferenceDirectives,hc)||(dn=1):dn=1):dn=1:dn=1,_n.push(cr);else if(yi(or.path))dn=1,_n.push(cr);else for(let $d of or.ambientModuleNames)Ge.set($d,or.fileName);Bt.push(cr)}if(dn!==2)return dn;for(let or of _n){let ni=t1e(or),cr=Pi(ni,or);(Je??(Je=new Map)).set(or.path,cr),VV(ni,cr,Xg=>q.getResolvedModule(or,Xg.text,df(or,Xg)),Mre)&&(dn=1);let Ha=or.typeReferenceDirectives,$d=Ri(Ha,or);(Zt??(Zt=new Map)).set(or.path,$d),VV(Ha,$d,Xg=>q.getResolvedTypeReferenceDirective(or,uJ(Xg),Pw(Xg,or.impliedNodeFormat)),Lre)&&(dn=1)}if(dn!==2)return dn;if(Nre(qe,z)||q.resolvedLibReferences&&Gc(q.resolvedLibReferences,(or,ni)=>lg(ni).actual!==or.actual))return 1;if(Kt.hasChangedAutomaticTypeDirectiveNames){if(Kt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(be=y3(z,Kt),!Gm(q.getAutomaticTypeDirectiveNames(),be))return 1;lt=q.getMissingFilePaths(),x.assert(Bt.length===q.getSourceFiles().length);for(let or of Bt)ct.set(or.path,or);return q.getFilesByNameMap().forEach((or,ni)=>{if(!or){ct.set(ni,or);return}if(or.path===ni){q.isSourceFileFromExternalLibrary(or)&&Xt.set(or.path,!0);return}ct.set(ni,ct.get(or.path))}),xe=Bt,ve=q.getFileIncludeReasons(),Et=q.getFileProcessingDiagnostics(),Le=q.getResolvedTypeReferenceDirectives(),be=q.getAutomaticTypeDirectiveNames(),ze=q.getAutomaticTypeDirectiveResolutions(),vn=q.sourceFileToPackageName,kn=q.redirectTargetsMap,Be=q.usesUriStyleNodeCoreModules,_t=q.resolvedModules,pt=q.resolvedTypeReferenceDirectiveNames,tt=q.resolvedLibReferences,en=q.getCurrentPackagesMap(),2}function xn(we){return{getPrependNodes:Ws,getCanonicalFileName:Q,getCommonSourceDirectory:un.getCommonSourceDirectory,getCompilerOptions:un.getCompilerOptions,getCurrentDirectory:()=>Ur,getSourceFile:un.getSourceFile,getSourceFileByPath:un.getSourceFileByPath,getSourceFiles:un.getSourceFiles,getLibFileFromReference:un.getLibFileFromReference,isSourceFileFromExternalLibrary:ml,getResolvedProjectReferenceToRedirect:lf,getProjectReferenceRedirect:Gl,isSourceOfProjectReferenceRedirect:Pf,getSymlinkCache:B_,writeFile:we||Ls,isEmitBlocked:dd,readFile:qe=>Kt.readFile(qe),fileExists:qe=>{let Pt=er(qe);return ul(Pt)?!0:lt.has(Pt)?!1:Kt.fileExists(qe)},useCaseSensitiveFileNames:()=>Kt.useCaseSensitiveFileNames(),getBuildInfo:qe=>{var Pt;return(Pt=un.getBuildInfo)==null?void 0:Pt.call(un,qe)},getSourceFileFromReference:(qe,Pt)=>un.getSourceFileFromReference(qe,Pt),redirectTargetsMap:kn,getFileIncludeReasons:un.getFileIncludeReasons,createHash:ta(Kt,Kt.createHash)}}function Ls(we,qe,Pt,Bt,_n,Jn){Kt.writeFile(we,qe,Pt,Bt,_n,Jn)}function $l(we){var qe,Pt;x.assert(!xs(z)),(qe=rr)==null||qe.push(rr.Phase.Emit,"emitBuildInfo",{},!0),el("beforeEmit");let Bt=q3(Y3,xn(we),void 0,UK,!1,!0);return el("afterEmit"),Xp("Emit","beforeEmit","afterEmit"),(Pt=rr)==null||Pt.pop(),Bt}function Mo(){return ae}function ss(){return me}function Ws(){return gJ(me,(we,qe)=>{var Pt;return(Pt=ae[qe])==null?void 0:Pt.commandLine},we=>{let qe=er(we),Pt=ul(qe);return Pt?Pt.text:ct.has(qe)?void 0:Kt.readFile(qe)},Kt)}function ml(we){return!!Xt.get(we.path)}function cd(we){if(!we.isDeclarationFile)return!1;if(we.hasNoDefaultLib)return!0;if(!z.noLib)return!1;let qe=Kt.useCaseSensitiveFileNames()?eT:qb;return z.lib?gt(z.lib,Pt=>qe(we.fileName,tt.get(Pt).actual)):qe(we.fileName,Li())}function mo(){return he||(he=Bse(un))}function la(we,qe,Pt,Bt,_n,Jn){var fn,qn;(fn=rr)==null||fn.push(rr.Phase.Emit,"emit",{path:we?.path},!0);let fi=ud(()=>bs(un,we,qe,Pt,Bt,_n,Jn));return(qn=rr)==null||qn.pop(),fi}function dd(we){return Ye.has(er(we))}function bs(we,qe,Pt,Bt,_n,Jn,fn){if(!fn){let or=hJ(we,qe,Pt,Bt);if(or)return or}let qn=mo().getEmitResolver(xs(z)?void 0:qe,Bt);el("beforeEmit");let fi=q3(qn,xn(Pt),qe,jK(z,Jn,_n),_n,!1,fn);return el("afterEmit"),Xp("Emit","beforeEmit","afterEmit"),fi}function Ca(we){return ul(er(we))}function ul(we){return ct.get(we)||void 0}function Nf(we,qe,Pt){return Mx(we?qe(we,Pt):va(un.getSourceFiles(),Bt=>(Pt&&Pt.throwIfCancellationRequested(),qe(Bt,Pt))))}function ac(we,qe){return Nf(we,nd,qe)}function xl(we,qe){return Nf(we,Ep,qe)}function al(we){var qe;return we?(qe=Ae.perFile)==null?void 0:qe.get(we.path):Ae.allDiagnostics}function Lo(we,qe){return Rs(we,qe)}function tn(we){var qe;if(jN(we,z,un))return Xe;let Pt=Qn.getDiagnostics(we.fileName);return(qe=we.commentDirectives)!=null&&qe.length?$(we,we.commentDirectives,Pt).diagnostics:Pt}function Fs(we,qe){let Pt=un.getCompilerOptions();return!we||xs(Pt)?yr(we,qe):Nf(we,Di,qe)}function nd(we){return su(we)?(we.additionalSyntacticDiagnostics||(we.additionalSyntacticDiagnostics=cn(we)),Eo(we.additionalSyntacticDiagnostics,we.parseDiagnostics)):we.parseDiagnostics}function ud(we){try{return we()}catch(qe){throw qe instanceof Rx&&(he=void 0),qe}}function Ep(we,qe){return Eo(oz(Rs(we,qe),z),tn(we))}function Rs(we,qe){return zr(we,qe,Ae,Ac)}function Ac(we,qe){return ud(()=>{if(jN(we,z,un))return Xe;let Pt=mo();x.assert(!!we.bindDiagnostics);let _n=(we.scriptKind===1||we.scriptKind===2)&&ck(we,z),Jn=p2(we,z.checkJs),qn=!(!!we.checkJsDirective&&we.checkJsDirective.enabled===!1)&&(we.scriptKind===3||we.scriptKind===4||we.scriptKind===5||Jn||_n||we.scriptKind===7),fi=qn?we.bindDiagnostics:Xe,or=qn?Pt.getDiagnostics(we,qe):Xe;return Jn&&(fi=jr(fi,ni=>lz.has(ni.code)),or=jr(or,ni=>lz.has(ni.code))),de(we,qn&&!Jn,fi,or,_n?we.jsDocDiagnostics:void 0)})}function de(we,qe,...Pt){var Bt;let _n=pm(Pt);if(!qe||!((Bt=we.commentDirectives)!=null&&Bt.length))return _n;let{diagnostics:Jn,directives:fn}=$(we,we.commentDirectives,_n);for(let qn of fn.getUnusedExpectations())Jn.push(qre(we,qn.range,f.Unused_ts_expect_error_directive));return Jn}function $(we,qe,Pt){let Bt=Ore(we,qe);return{diagnostics:Pt.filter(Jn=>yt(Jn,Bt)===-1),directives:Bt}}function Pe(we,qe){return ud(()=>mo().getSuggestionDiagnostics(we,qe))}function yt(we,qe){let{file:Pt,start:Bt}=we;if(!Pt)return-1;let _n=Dg(Pt),Jn=Nx(_n,Bt).line-1;for(;Jn>=0;){if(qe.markUsed(Jn))return Jn;let fn=Pt.text.slice(_n[Jn],_n[Jn+1]).trim();if(fn!==""&&!/^(\s*)\/\/(.*)$/.test(fn))return-1;Jn--}return-1}function cn(we){return ud(()=>{let qe=[];return Pt(we,we),bP(we,Pt,Bt),qe;function Pt(qn,fi){switch(fi.kind){case 169:case 172:case 174:if(fi.questionToken===qn)return qe.push(fn(qn,f.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(fi.type===qn)return qe.push(fn(qn,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(qn.kind){case 273:if(qn.isTypeOnly)return qe.push(fn(fi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(qn.isTypeOnly)return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(qn.isTypeOnly)return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,Qu(qn)?"import...type":"export...type")),"skip";break;case 271:return qe.push(fn(qn,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(qn.isExportEquals)return qe.push(fn(qn,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(qn.token===119)return qe.push(fn(qn,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let ni=da(120);return x.assertIsDefined(ni),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,ni)),"skip";case 267:let cr=qn.flags&32?da(145):da(144);return x.assertIsDefined(cr),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,cr)),"skip";case 265:return qe.push(fn(qn,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return qn.body?void 0:(qe.push(fn(qn,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Yo=x.checkDefined(da(94));return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,Yo)),"skip";case 235:return qe.push(fn(qn,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return qe.push(fn(qn.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return qe.push(fn(qn.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:x.fail()}}function Bt(qn,fi){if(TH(fi)){let or=Vr(fi.modifiers,bd);or&&qe.push(fn(or,f.Decorators_are_not_valid_here))}else if(GT(fi)&&fi.modifiers){let or=Kl(fi.modifiers,bd);if(or>=0){if(Ao(fi)&&!z.experimentalDecorators)qe.push(fn(fi.modifiers[or],f.Decorators_are_not_valid_here));else if(Sc(fi)){let ni=Kl(fi.modifiers,JI);if(ni>=0){let cr=Kl(fi.modifiers,w4);if(or>ni&&cr>=0&&or=0&&or=0&&qe.push(Pa(fn(fi.modifiers[Yo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),fn(fi.modifiers[or],f.Decorator_used_before_export_here)))}}}}}switch(fi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(qn===fi.typeParameters)return qe.push(Jn(qn,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(qn===fi.modifiers)return _n(fi.modifiers,fi.kind===243),"skip";break;case 172:if(qn===fi.modifiers){for(let or of qn)Sa(or)&&or.kind!==126&&or.kind!==129&&qe.push(fn(or,f.The_0_modifier_can_only_be_used_in_TypeScript_files,da(or.kind)));return"skip"}break;case 169:if(qn===fi.modifiers&>(qn,Sa))return qe.push(Jn(qn,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(qn===fi.typeArguments)return qe.push(Jn(qn,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function _n(qn,fi){for(let or of qn)switch(or.kind){case 87:if(fi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:qe.push(fn(or,f.The_0_modifier_can_only_be_used_in_TypeScript_files,da(or.kind)));break;case 126:case 95:case 90:case 129:}}function Jn(qn,fi,...or){let ni=qn.pos;return Qc(we,ni,qn.end-ni,fi,...or)}function fn(qn,fi,...or){return Kf(we,qn,fi,...or)}})}function yr(we,qe){return zr(we,qe,De,pr)}function pr(we,qe){return ud(()=>{let Pt=mo().getEmitResolver(we,qe);return Lle(xn(qa),Pt,we)||Xe})}function zr(we,qe,Pt,Bt){var _n;let Jn=we?(_n=Pt.perFile)==null?void 0:_n.get(we.path):Pt.allDiagnostics;if(Jn)return Jn;let fn=Bt(we,qe);return we?(Pt.perFile||(Pt.perFile=new Map)).set(we.path,fn):Pt.allDiagnostics=fn,fn}function Di(we,qe){return we.isDeclarationFile?[]:yr(we,qe)}function Cr(){return Mx(Eo(Qn.getGlobalDiagnostics(),qo()))}function qo(){if(!z.configFile)return Xe;let we=Qn.getDiagnostics(z.configFile.fileName);return Fu(qe=>{we=Eo(we,Qn.getDiagnostics(qe.sourceFile.fileName))}),we}function bl(){return ce.length?Mx(mo().getGlobalDiagnostics().slice()):Xe}function Hc(){return Z||Xe}function zs(we,qe,Pt,Bt){Re(ma(we),qe,Pt,void 0,Bt)}function hc(we,qe){return we.fileName===qe.fileName}function ys(we,qe){return we.kind===80?qe.kind===80&&we.escapedText===qe.escapedText:qe.kind===11&&we.text===qe.text}function Kc(we,qe){let Pt=L.createStringLiteral(we),Bt=L.createImportDeclaration(void 0,void 0,Pt,void 0);return BI(Bt,2),ja(Pt,Bt),ja(Bt,qe),Pt.flags&=-17,Bt.flags&=-17,Pt}function tp(we){if(we.imports)return;let qe=su(we),Pt=oc(we),Bt,_n,Jn;if((em(z)||Pt)&&!we.isDeclarationFile){z.importHelpers&&(Bt=[Kc(Gv,we)]);let or=C6(D6(z,we),z);or&&(Bt||(Bt=[])).push(Kc(or,we))}for(let or of we.statements)fn(or,!1);(we.flags&4194304||qe)&&qn(we),we.imports=Bt||Xe,we.moduleAugmentations=_n||Xe,we.ambientModuleNames=Jn||Xe;return;function fn(or,ni){if(_2(or)){let cr=tR(or);cr&&Da(cr)&&cr.text&&(!ni||!Yc(cr.text))&&(Bv(or,!1),Bt=Tn(Bt,cr),!Be&&Kn===0&&!we.isDeclarationFile&&(Be=ao(cr.text,"node:")))}else if(ql(or)&&Md(or)&&(ni||$r(or,128)||we.isDeclarationFile)){or.name.parent=or;let cr=Xf(or.name);if(Pt||ni&&!Yc(cr))(_n||(_n=[])).push(or.name);else if(!ni){we.isDeclarationFile&&(Jn||(Jn=[])).push(cr);let Yo=or.body;if(Yo)for(let Ha of Yo.statements)fn(Ha,!0)}}}function qn(or){let ni=/import|require/g;for(;ni.exec(or.text)!==null;){let cr=fi(or,ni.lastIndex);qe&&bu(cr,!0)||Op(cr)&&cr.arguments.length>=1&&as(cr.arguments[0])?(Bv(cr,!1),Bt=Tn(Bt,cr.arguments[0])):wv(cr)&&(Bv(cr,!1),Bt=Tn(Bt,cr.argument.literal))}}function fi(or,ni){let cr=or,Yo=Ha=>{if(Ha.pos<=ni&&(niSl(_n,fn))){Pt&&(O0(_n)?Pt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,we):Pt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,we,"'"+pm(Er).join("', '")+"'"));return}let Jn=qe(we);if(Pt)if(Jn)IE(Bt)&&_n===Kt.getCanonicalFileName(ul(Bt.file).fileName)&&Pt(f.A_file_cannot_have_a_reference_to_itself);else{let fn=Gl(we);fn?Pt(f.Output_file_0_has_not_been_built_from_source_file_1,fn,we):Pt(f.File_0_not_found,we)}return Jn}else{let _n=z.allowNonTsExtensions&&qe(we);if(_n)return _n;if(Pt&&z.allowNonTsExtensions){Pt(f.File_0_not_found,we);return}let Jn=gn(Er[0],fn=>qe(we+fn));return Pt&&!Jn&&Pt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,we,"'"+pm(Er).join("', '")+"'"),Jn}}function Re(we,qe,Pt,Bt,_n){fu(we,Jn=>Xo(Jn,qe,Pt,_n,Bt),(Jn,...fn)=>Xr(void 0,_n,Jn,fn),_n)}function Lt(we,qe){return Re(we,!1,!1,void 0,qe)}function Un(we,qe,Pt){!IE(Pt)&>(ve.get(qe.path),IE)?Xr(qe,Pt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[qe.fileName,we]):Xr(qe,Pt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[we,qe.fileName])}function yo(we,qe,Pt,Bt,_n,Jn,fn){var qn;let fi=bh.createRedirectedSourceFile({redirectTarget:we,unredirected:qe});return fi.fileName=Pt,fi.path=Bt,fi.resolvedPath=_n,fi.originalFileName=Jn,fi.packageJsonLocations=(qn=fn.packageJsonLocations)!=null&&qn.length?fn.packageJsonLocations:void 0,fi.packageJsonScope=fn.packageJsonScope,Xt.set(Bt,Kn>0),fi}function Xo(we,qe,Pt,Bt,_n){var Jn,fn;(Jn=rr)==null||Jn.push(rr.Phase.Program,"findSourceFile",{fileName:we,isDefaultLib:qe||void 0,fileIncludeKind:MW[Bt.kind]});let qn=Ql(we,qe,Pt,Bt,_n);return(fn=rr)==null||fn.pop(),qn}function Zo(we,qe,Pt,Bt){let _n=_J(ho(we,Ur),qe?.getPackageJsonInfoCache(),Pt,Bt),Jn=ns(Bt),fn=ok(Bt);return typeof _n=="object"?{..._n,languageVersion:Jn,setExternalModuleIndicator:fn,jsDocParsingMode:Pt.jsDocParsingMode}:{languageVersion:Jn,impliedNodeFormat:_n,setExternalModuleIndicator:fn,jsDocParsingMode:Pt.jsDocParsingMode}}function Ql(we,qe,Pt,Bt,_n){var Jn;let fn=er(we);if(et){let cr=xu(fn);if(!cr&&Kt.realpath&&z.preserveSymlinks&&Ed(we)&&we.includes(Eh)){let Yo=er(Kt.realpath(we));Yo!==fn&&(cr=xu(Yo))}if(cr){let Yo=No(cr)?Xo(cr,qe,Pt,Bt,_n):void 0;return Yo&&sl(Yo,fn,we,void 0),Yo}}let qn=we;if(ct.has(fn)){let cr=ct.get(fn);if(gc(cr||void 0,Bt),cr&&z.forceConsistentCasingInFileNames!==!1){let Yo=cr.fileName;er(Yo)!==er(we)&&(we=Gl(we)||we);let $d=lV(Yo,Ur),fd=lV(we,Ur);$d!==fd&&Un(we,cr,Bt)}return cr&&Xt.get(cr.path)&&Kn===0?(Xt.set(cr.path,!1),z.noResolve||(Ah(cr,qe),Hg(cr)),z.noLib||zu(cr),pn.set(cr.path,!1),rt(cr)):cr&&pn.get(cr.path)&&KnXr(void 0,Bt,f.Cannot_read_file_0_Colon_1,[we,cr]),hn);if(_n){let cr=Lv(_n),Yo=Ba.get(cr);if(Yo){let Ha=yo(Yo,ni,we,fn,er(we),qn,or);return kn.add(Yo.path,we),sl(Ha,fn,we,fi),gc(Ha,Bt),vn.set(fn,EF(_n)),pe.push(Ha),Ha}else ni&&(Ba.set(cr,ni),vn.set(fn,EF(_n)))}if(sl(ni,fn,we,fi),ni){if(Xt.set(fn,Kn>0),ni.fileName=we,ni.path=fn,ni.resolvedPath=er(we),ni.originalFileName=qn,ni.packageJsonLocations=(Jn=or.packageJsonLocations)!=null&&Jn.length?or.packageJsonLocations:void 0,ni.packageJsonScope=or.packageJsonScope,gc(ni,Bt),Kt.useCaseSensitiveFileNames()){let cr=ih(fn),Yo=Rt.get(cr);Yo?Un(we,Yo,Bt):Rt.set(cr,ni)}uo=uo||ni.hasNoDefaultLib&&!Pt,z.noResolve||(Ah(ni,qe),Hg(ni)),z.noLib||zu(ni),rt(ni),qe?re.push(ni):pe.push(ni)}return ni}function gc(we,qe){we&&ve.add(we.path,qe)}function sl(we,qe,Pt,Bt){Bt?(_l(Pt,Bt,we),_l(Pt,qe,we||!1)):_l(Pt,qe,we)}function _l(we,qe,Pt){ct.set(qe,Pt),Pt!==void 0?lt.delete(qe):lt.set(qe,we)}function Gl(we){let qe=Zl(we);return qe&&Jc(qe,we)}function Zl(we){if(!(!ae||!ae.length||Ed(we)||Sl(we,".json")))return lf(we)}function Jc(we,qe){let Pt=xs(we.commandLine.options);return Pt?pE(Pt,".d.ts"):BP(qe,we.commandLine,!Kt.useCaseSensitiveFileNames())}function lf(we){st===void 0&&(st=new Map,Fu(Pt=>{er(z.configFilePath)!==Pt.sourceFile.path&&Pt.commandLine.fileNames.forEach(Bt=>st.set(er(Bt),Pt.sourceFile.path))}));let qe=st.get(er(we));return qe&&z_(qe)}function Fu(we){return pJ(ae,we)}function xu(we){if(Ed(we))return G===void 0&&(G=new Map,Fu(qe=>{let Pt=xs(qe.commandLine.options);if(Pt){let Bt=pE(Pt,".d.ts");G.set(er(Bt),!0)}else{let Bt=vu(()=>$R(qe.commandLine,!Kt.useCaseSensitiveFileNames()));gn(qe.commandLine.fileNames,_n=>{if(!Ed(_n)&&!Sl(_n,".json")){let Jn=BP(_n,qe.commandLine,!Kt.useCaseSensitiveFileNames(),Bt);G.set(er(Jn),_n)}})}})),G.get(we)}function Pf(we){return et&&!!lf(we)}function z_(we){if(ke)return ke.get(we)||void 0}function Ah(we,qe){gn(we.referencedFiles,(Pt,Bt)=>{Re(ez(Pt.fileName,we.fileName),qe,!1,void 0,{kind:4,file:we.path,index:Bt})})}function Hg(we){let qe=we.typeReferenceDirectives;if(!qe.length)return;let Pt=Zt?.get(we.path)||Ri(qe,we),Bt=u1();(pt??(pt=new Map)).set(we.path,Bt);for(let _n=0;_n{let{libName:Bt,libFileName:_n}=e1e(qe);if(_n)zs(Sp(_n),!0,!0,{kind:7,file:we.path,index:Pt});else{let Jn=Sx(VC(Bt,"lib."),".d.ts"),fn=GC(Jn,iw,Qs),qn=fn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,fi=fn?[Bt,fn]:[Bt];(Et||(Et=[])).push({kind:0,reason:{kind:7,file:we.path,index:Pt},diagnostic:qn,args:fi})}})}function Q(we){return Kt.getCanonicalFileName(we)}function rt(we){var qe;if(tp(we),we.imports.length||we.moduleAugmentations.length){let Pt=t1e(we),Bt=Je?.get(we.path)||Pi(Pt,we);x.assert(Bt.length===Pt.length);let _n=((qe=wn(we))==null?void 0:qe.commandLine.options)||z,Jn=u1();(_t??(_t=new Map)).set(we.path,Jn);for(let fn=0;fnDn,fd=Ha&&!yJ(_n,qn,we)&&!_n.noResolve&&fnoc(fn)&&!fn.isDeclarationFile);if(z.isolatedModules||z.verbatimModuleSyntax)z.module===0&&qe<2&&z.isolatedModules&&ls(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),z.preserveConstEnums===!1&&ls(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Pt&&qe<2&&z.module===0){let fn=fT(Pt,typeof Pt.externalModuleIndicator=="boolean"?Pt:Pt.externalModuleIndicator);Qn.add(Qc(Pt,fn.start,fn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(we&&!z.emitDeclarationOnly){if(z.module&&!(z.module===2||z.module===4))ls(f.Only_amd_and_system_modules_are_supported_alongside_0,z.out?"out":"outFile","module");else if(z.module===void 0&&Pt){let fn=fT(Pt,typeof Pt.externalModuleIndicator=="boolean"?Pt:Pt.externalModuleIndicator);Qn.add(Qc(Pt,fn.start,fn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,z.out?"out":"outFile"))}}if(mE(z)&&(du(z)===1?ls(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):I6(z)||ls(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),z.outDir||z.rootDir||z.sourceRoot||z.mapRoot){let fn=Fr();z.outDir&&fn===""&&xe.some(qn=>sh(qn.fileName)>1)&&ls(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}z.useDefineForClassFields&&qe===0&&ls(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),z.checkJs&&!Vv(z)&&Qn.add(jl(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),z.emitDeclarationOnly&&(Af(z)||ls(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),z.noEmit&&ls(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),z.emitDecoratorMetadata&&!z.experimentalDecorators&&ls(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),z.jsxFactory?(z.reactNamespace&&ls(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(z.jsx===4||z.jsx===5)&&ls(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",AP.get(""+z.jsx)),l1(z.jsxFactory,qe)||Dm("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFactory)):z.reactNamespace&&!Yp(z.reactNamespace,qe)&&Dm("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,z.reactNamespace),z.jsxFragmentFactory&&(z.jsxFactory||ls(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(z.jsx===4||z.jsx===5)&&ls(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",AP.get(""+z.jsx)),l1(z.jsxFragmentFactory,qe)||Dm("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFragmentFactory)),z.reactNamespace&&(z.jsx===4||z.jsx===5)&&ls(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",AP.get(""+z.jsx)),z.jsxImportSource&&z.jsx===2&&ls(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",AP.get(""+z.jsx)),z.preserveValueImports&&Ld(z)<5&&ls(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");let Bt=Ld(z);z.verbatimModuleSyntax&&((Bt===2||Bt===3||Bt===4)&&ls(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),z.preserveValueImports&&Nm("preserveValueImports","verbatimModuleSyntax"),z.importsNotUsedAsValues&&Nm("importsNotUsedAsValues","verbatimModuleSyntax")),z.allowImportingTsExtensions&&!(z.noEmit||z.emitDeclarationOnly)&&Dm("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let _n=du(z);if(z.resolvePackageJsonExports&&!OI(_n)&&ls(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),z.resolvePackageJsonImports&&!OI(_n)&&ls(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),z.customConditions&&!OI(_n)&&ls(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),_n===100&&!A6(Bt)&&Bt!==200&&Dm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),UC[Bt]&&100<=Bt&&Bt<=199&&!(3<=_n&&_n<=99)){let fn=UC[Bt];Dm("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,fn,fn)}else if(Dx[_n]&&3<=_n&&_n<=99&&!(100<=Bt&&Bt<=199)){let fn=Dx[_n];Dm("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,fn,fn)}if(!z.noEmit&&!z.suppressOutputPathCheck){let fn=xn(),qn=new Set;HK(fn,fi=>{z.emitDeclarationOnly||Jn(fi.jsFilePath,qn),Jn(fi.declarationFilePath,qn)})}function Jn(fn,qn){if(fn){let fi=er(fn);if(ct.has(fi)){let ni;z.configFilePath||(ni=zo(void 0,f.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)),ni=zo(ni,f.Cannot_write_file_0_because_it_would_overwrite_input_file,fn),pS(fn,S6(ni))}let or=Kt.useCaseSensitiveFileNames()?fi:ih(fi);qn.has(or)?pS(fn,jl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,fn)):qn.add(or)}}}function Ee(){let we=z.ignoreDeprecations;if(we){if(we==="5.0")return new fm(we);J()}return fm.zero}function nt(we,qe,Pt,Bt){let _n=new fm(we),Jn=new fm(qe),fn=new fm(ge||g_),qn=Ee(),fi=Jn.compareTo(fn)!==1,or=!fi&&qn.compareTo(_n)===-1;(fi||or)&&Bt((ni,cr,Yo)=>{fi?cr===void 0?Pt(ni,cr,Yo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ni):Pt(ni,cr,Yo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ni,cr):cr===void 0?Pt(ni,cr,Yo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ni,qe,we):Pt(ni,cr,Yo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ni,cr,qe,we)})}function Gt(){function we(qe,Pt,Bt,_n,...Jn){if(Bt){let fn=zo(void 0,f.Use_0_instead,Bt),qn=zo(fn,_n,...Jn);Ui(!Pt,qe,void 0,qn)}else Ui(!Pt,qe,void 0,_n,...Jn)}nt("5.0","5.5",we,qe=>{z.target===0&&qe("target","ES3"),z.noImplicitUseStrict&&qe("noImplicitUseStrict"),z.keyofStringsOnly&&qe("keyofStringsOnly"),z.suppressExcessPropertyErrors&&qe("suppressExcessPropertyErrors"),z.suppressImplicitAnyIndexErrors&&qe("suppressImplicitAnyIndexErrors"),z.noStrictGenericChecks&&qe("noStrictGenericChecks"),z.charset&&qe("charset"),z.out&&qe("out",void 0,"outFile"),z.importsNotUsedAsValues&&qe("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),z.preserveValueImports&&qe("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Zn(we,qe,Pt){function Bt(_n,Jn,fn,qn,...fi){Cm(qe,Pt,qn,...fi)}nt("5.0","5.5",Bt,_n=>{we.prepend&&_n("prepend")})}function ii(we,qe,Pt,Bt){var _n;let Jn,fn,qn=IE(qe)?qe:void 0;we&&((_n=ve.get(we.path))==null||_n.forEach(Yo)),qe&&Yo(qe),qn&&Jn?.length===1&&(Jn=void 0);let fi=qn&&VP(un,qn),or=Jn&&zo(Jn,f.The_file_is_in_the_program_because_Colon),ni=we&&wJ(we),cr=zo(ni?or?[or,...ni]:ni:or,Pt,...Bt||Xe);return fi&&ZR(fi)?DF(fi.file,fi.pos,fi.end-fi.pos,cr,fn):S6(cr,fn);function Yo(Ha){(Jn||(Jn=[])).push(FJ(un,Ha)),!qn&&IE(Ha)?qn=Ha:qn!==Ha&&(fn=Tn(fn,La(Ha))),Ha===qe&&(qe=void 0)}}function Xr(we,qe,Pt,Bt){(Et||(Et=[])).push({kind:1,file:we&&we.path,fileProcessingReason:qe,diagnostic:Pt,args:Bt})}function no(we,qe,Pt){Qn.add(ii(we,void 0,qe,Pt))}function La(we){if(IE(we)){let Bt=VP(un,we),_n;switch(we.kind){case 3:_n=f.File_is_included_via_import_here;break;case 4:_n=f.File_is_included_via_reference_here;break;case 5:_n=f.File_is_included_via_type_library_reference_here;break;case 7:_n=f.File_is_included_via_library_reference_here;break;default:x.assertNever(we)}return ZR(Bt)?Qc(Bt.file,Bt.pos,Bt.end-Bt.pos,_n):void 0}if(!z.configFile)return;let qe,Pt;switch(we.kind){case 0:if(!z.configFile.configFileSpecs)return;let Bt=ho(ce[we.index],Ur),_n=OJ(un,Bt);if(_n){qe=wF(z.configFile,"files",_n),Pt=f.File_is_matched_by_files_list_specified_here;break}let Jn=WJ(un,Bt);if(!Jn||!No(Jn))return;qe=wF(z.configFile,"include",Jn),Pt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let fn=x.checkDefined(ae?.[we.index]),qn=nz(me,ae,(Yo,Ha,$d)=>Yo===fn?{sourceFile:Ha?.sourceFile||z.configFile,index:$d}:void 0);if(!qn)return;let{sourceFile:fi,index:or}=qn,ni=E2(fi,"references",Yo=>uu(Yo.initializer)?Yo.initializer:void 0);return ni&&ni.elements.length>or?Kf(fi,ni.elements[or],we.kind===2?f.File_is_output_from_referenced_project_specified_here:f.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!z.types)return;qe=ob("types",we.typeReference),Pt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(we.index!==void 0){qe=ob("lib",z.lib[we.index]),Pt=f.File_is_library_specified_here;break}let cr=Gc(aw.type,(Yo,Ha)=>Yo===ns(z)?Ha:void 0);qe=cr?Bu("target",cr):void 0,Pt=f.File_is_default_library_for_target_specified_here;break;default:x.assertNever(we)}return qe&&Kf(z.configFile,qe,Pt)}function ka(){let we=z.suppressOutputPathCheck?void 0:Vy(z);nz(me,ae,(qe,Pt,Bt)=>{let _n=(Pt?Pt.commandLine.projectReferences:me)[Bt],Jn=Pt&&Pt.sourceFile;if(Zn(_n,Jn,Bt),!qe){Cm(Jn,Bt,f.File_0_not_found,_n.path);return}let fn=qe.commandLine.options;if((!fn.composite||fn.noEmit)&&(Pt?Pt.commandLine.fileNames:ce).length&&(fn.composite||Cm(Jn,Bt,f.Referenced_project_0_must_have_setting_composite_Colon_true,_n.path),fn.noEmit&&Cm(Jn,Bt,f.Referenced_project_0_may_not_disable_emit,_n.path)),_n.prepend){let qn=xs(fn);qn?Kt.fileExists(qn)||Cm(Jn,Bt,f.Output_file_0_from_project_1_does_not_exist,qn,_n.path):Cm(Jn,Bt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,_n.path)}!Pt&&we&&we===Vy(fn)&&(Cm(Jn,Bt,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,we,_n.path),Ye.set(er(we),!0))})}function wl(we,qe,Pt,...Bt){let _n=!0;Tp(Jn=>{Ma(Jn.initializer)&&Xx(Jn.initializer,we,fn=>{let qn=fn.initializer;uu(qn)&&qn.elements.length>qe&&(Qn.add(Kf(z.configFile,qn.elements[qe],Pt,...Bt)),_n=!1)})}),_n&&Qn.add(jl(Pt,...Bt))}function pd(we,qe,Pt,...Bt){let _n=!0;Tp(Jn=>{Ma(Jn.initializer)&&$y(Jn.initializer,we,qe,void 0,Pt,...Bt)&&(_n=!1)}),_n&&Qn.add(jl(Pt,...Bt))}function Ic(we,qe){return Xx(Jg(),we,qe)}function Tp(we){return Ic("paths",we)}function Bu(we,qe){return Ic(we,Pt=>Da(Pt.initializer)&&Pt.initializer.text===qe?Pt.initializer:void 0)}function ob(we,qe){let Pt=Jg();return Pt&&rie(Pt,we,qe)}function ls(we,qe,Pt,Bt){Ui(!0,qe,Pt,we,qe,Pt,Bt)}function Dm(we,qe,...Pt){Ui(!1,we,void 0,qe,...Pt)}function Cm(we,qe,Pt,...Bt){let _n=E2(we||z.configFile,"references",Jn=>uu(Jn.initializer)?Jn.initializer:void 0);_n&&_n.elements.length>qe?Qn.add(Kf(we||z.configFile,_n.elements[qe],Pt,...Bt)):Qn.add(jl(Pt,...Bt))}function Ui(we,qe,Pt,Bt,..._n){let Jn=Jg();(!Jn||!$y(Jn,we,qe,Pt,Bt,..._n))&&("messageText"in Bt?Qn.add(S6(Bt)):Qn.add(jl(Bt,..._n)))}function Jg(){return Ot===void 0&&(Ot=Xx(mN(z.configFile),"compilerOptions",we=>Ma(we.initializer)?we.initializer:void 0)||!1),Ot||void 0}function $y(we,qe,Pt,Bt,_n,...Jn){let fn=!1;return Xx(we,Pt,qn=>{"messageText"in _n?Qn.add(Mg(z.configFile,qe?qn.name:qn.initializer,_n)):Qn.add(Kf(z.configFile,qe?qn.name:qn.initializer,_n,...Jn)),fn=!0},Bt),fn}function Nm(we,qe){let Pt=Jg();Pt?$y(Pt,!0,we,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,qe):ls(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,qe)}function pS(we,qe){Ye.set(er(we),!0),Qn.add(qe)}function fS(we){if(z.noEmit)return!1;let qe=er(we);if(ul(qe))return!1;let Pt=xs(z);if(Pt)return cf(qe,Pt)||cf(qe,Eu(Pt)+".d.ts");if(z.declarationDir&&mm(z.declarationDir,qe,Ur,!Kt.useCaseSensitiveFileNames()))return!0;if(z.outDir)return mm(z.outDir,qe,Ur,!Kt.useCaseSensitiveFileNames());if(bc(qe,AR)||Ed(qe)){let Bt=Eu(qe);return!!ul(Bt+".ts")||!!ul(Bt+".tsx")}return!1}function cf(we,qe){return Rg(we,qe,Ur,!Kt.useCaseSensitiveFileNames())===0}function B_(){return Kt.getSymlinkCache?Kt.getSymlinkCache():(fe||(fe=oU(Ur,Q)),xe&&!fe.hasProcessedResolutions()&&fe.setSymlinksFromResolutions(k,ie,ze),fe)}function df(we,qe){var Pt;let Bt=((Pt=wn(we))==null?void 0:Pt.commandLine.options)||z;return cJ(we,qe,Bt)}function qg(we,qe){return df(we,kw(we,qe))}}function PVe(e){let t,r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:qa,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=S=>i.call(e.compilerHost,S)?(y(S),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(A=>{let N=xs(A.commandLine.options);if(N)t.add(oi(e.toPath(N)));else{let D=A.commandLine.options.declarationDir||A.commandLine.options.outDir;D&&t.add(e.toPath(D))}})),E(S,!1)):!1),o&&(e.compilerHost.getDirectories=S=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,S)?o.call(e.compilerHost,S):[]),s&&(e.compilerHost.realpath=S=>{var A;return((A=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:A.get(e.toPath(S)))||s.call(e.compilerHost,S)}),{onProgramCreateComplete:d,fileExists:p,directoryExists:l};function d(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(S){return r.call(e.compilerHost,S)?!0:!e.getResolvedProjectReferences()||!Ed(S)?!1:E(S,!0)}function h(S){let A=e.getSourceOfProjectReferenceRedirect(e.toPath(S));return A!==void 0?No(A)?r.call(e.compilerHost,A):!0:void 0}function m(S){let A=e.toPath(S),N=`${A}${nl}`;return dh(t,D=>A===D||ao(D,N)||ao(A,`${D}/`))}function y(S){var A;if(!e.getResolvedProjectReferences()||JN(S)||!s||!S.includes(Eh))return;let N=e.getSymlinkCache(),D=Bc(e.toPath(S));if((A=N.getSymlinkedDirectories())!=null&&A.has(D))return;let w=ma(s.call(e.compilerHost,S)),j;if(w===S||(j=Bc(e.toPath(w)))===D){N.setSymlinkedDirectory(D,!1);return}N.setSymlinkedDirectory(S,{real:Bc(w),realPath:j})}function E(S,A){var N;let D=A?B=>h(B):B=>m(B),w=D(S);if(w!==void 0)return w;let j=e.getSymlinkCache(),K=j.getSymlinkedDirectories();if(!K)return!1;let Y=e.toPath(S);return Y.includes(Eh)?A&&((N=j.getSymlinkedFiles())!=null&&N.has(Y))?!0:vL(K.entries(),([B,ce])=>{if(!ce||!ao(Y,B))return;let z=D(Y.replace(B,ce.realPath));if(A&&z){let Z=ho(S,e.compilerHost.getCurrentDirectory());j.setSymlinkedFile(Y,`${ce.real}${Z.replace(new RegExp(B,"i"),"")}`)}return z})||!1:!1}}function hJ(e,t,r,i){let o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||xs(o)?cz:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&Af(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!xs(o)){let d=e.emitBuildInfo(r,i);d.diagnostics&&(s=[...s,...d.diagnostics]),l=d.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function oz(e,t){return jr(e,r=>!r.skippedOn||!t[r.skippedOn])}function az(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return x.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:ta(t,t.directoryExists),getDirectories:ta(t,t.getDirectories),realpath:ta(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Jb,trace:e.trace?r=>e.trace(r):void 0}}function gJ(e,t,r,i){if(!e)return Xe;let o;for(let s=0;si);for(let i of t)i.kind===11&&r.push(i);return r}function kw({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))(vJ||{}),bJ="\x1B[7m",EJ=" ",Kle="\x1B[0m",Jle="...",n1e=" ",qle=" ",Xle={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},sz={getName:Hle,getMode:(e,t,r)=>lJ(t,e,r)},r1e={getName:uJ,getMode:(e,t)=>Pw(e,t?.impliedNodeFormat)},tD="__inferred type names__.ts",lz=new Set([f.Cannot_redeclare_block_scoped_variable_0.code,f.A_module_cannot_have_multiple_default_exports.code,f.Another_export_default_is_here.code,f.The_first_export_default_is_here.code,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,f.constructor_is_a_reserved_word.code,f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,f.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,f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,f.Invalid_use_of_0_in_strict_mode.code,f.A_label_is_not_allowed_here.code,f.with_statements_are_not_allowed_in_strict_mode.code,f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,f.A_class_member_cannot_have_the_0_keyword.code,f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,f.A_destructuring_declaration_must_have_an_initializer.code,f.A_get_accessor_cannot_have_parameters.code,f.A_rest_element_cannot_contain_a_binding_pattern.code,f.A_rest_element_cannot_have_a_property_name.code,f.A_rest_element_cannot_have_an_initializer.code,f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,f.A_rest_parameter_cannot_have_an_initializer.code,f.A_rest_parameter_must_be_last_in_a_parameter_list.code,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,f.A_set_accessor_cannot_have_rest_parameter.code,f.A_set_accessor_must_have_exactly_one_parameter.code,f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_export_declaration_cannot_have_modifiers.code,f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_import_declaration_cannot_have_modifiers.code,f.An_object_member_cannot_be_declared_optional.code,f.Argument_of_dynamic_import_cannot_be_spread_element.code,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,f.Cannot_redeclare_identifier_0_in_catch_clause.code,f.Catch_clause_variable_cannot_have_an_initializer.code,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,f.Classes_can_only_extend_a_single_class.code,f.Classes_may_not_have_a_field_named_constructor.code,f.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,f.Duplicate_label_0.code,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,f.Jump_target_cannot_cross_function_boundary.code,f.Line_terminator_not_permitted_before_arrow.code,f.Modifiers_cannot_appear_here.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,f.Private_identifiers_are_not_allowed_outside_class_bodies.code,f.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,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,f.Trailing_comma_not_allowed.code,f.Variable_declaration_list_cannot_be_empty.code,f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,f._0_expected.code,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,f._0_list_cannot_be_empty.code,f._0_modifier_already_seen.code,f._0_modifier_cannot_appear_on_a_constructor_declaration.code,f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,f._0_modifier_cannot_appear_on_a_parameter.code,f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,f._0_modifier_cannot_be_used_here.code,f._0_modifier_must_precede_1_modifier.code,f._0_declarations_can_only_be_declared_inside_a_block.code,f._0_declarations_must_be_initialized.code,f.extends_clause_already_seen.code,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,f.Class_constructor_may_not_be_a_generator.code,f.Class_constructor_may_not_be_an_accessor.code,f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Private_field_0_must_be_declared_in_an_enclosing_class.code,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),cz={diagnostics:Xe,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),LVe=bt({"src/compiler/builderStatePublic.ts"(){"use strict"}});function Yle(e,t,r,i,o,s){let l=[],{emitSkipped:d,diagnostics:p}=e.emit(t,h,i,r,o,s);return{outputFiles:l,emitSkipped:d,diagnostics:p};function h(m,y,E){l.push({name:m,writeByteOrderMark:E,text:y})}}var xm,kVe=bt({"src/compiler/builderState.ts"(){"use strict";ea(),(e=>{function t(){function q(J,re,pe){let xe={getKeys:fe=>re.get(fe),getValues:fe=>J.get(fe),keys:()=>J.keys(),deleteKey:fe=>{(pe||(pe=new Set)).add(fe);let ne=J.get(fe);return ne?(ne.forEach(he=>i(re,he,fe)),J.delete(fe),!0):!1},set:(fe,ne)=>{pe?.delete(fe);let he=J.get(fe);return J.set(fe,ne),he?.forEach(Ce=>{ne.has(Ce)||i(re,Ce,fe)}),ne.forEach(Ce=>{he?.has(Ce)||r(re,Ce,fe)}),xe}};return xe}return q(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(q,J,re){let pe=q.get(J);pe||(pe=new Set,q.set(J,pe)),pe.add(re)}function i(q,J,re){let pe=q.get(J);return pe?.delete(re)?(pe.size||q.delete(J),!0):!1}function o(q){return to(q.declarations,J=>{var re;return(re=Gn(J))==null?void 0:re.resolvedPath})}function s(q,J){let re=q.getSymbolAtLocation(J);return re&&o(re)}function l(q,J,re,pe){return tl(q.getProjectReferenceRedirect(J)||J,re,pe)}function d(q,J,re){let pe;if(J.imports&&J.imports.length>0){let he=q.getTypeChecker();for(let Ce of J.imports){let Ge=s(he,Ce);Ge?.forEach(ne)}}let xe=oi(J.resolvedPath);if(J.referencedFiles&&J.referencedFiles.length>0)for(let he of J.referencedFiles){let Ce=l(q,he.fileName,xe,re);ne(Ce)}if(q.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:he})=>{if(!he)return;let Ce=he.resolvedFileName,Ge=l(q,Ce,xe,re);ne(Ge)},J),J.moduleAugmentations.length){let he=q.getTypeChecker();for(let Ce of J.moduleAugmentations){if(!Da(Ce))continue;let Ge=he.getSymbolAtLocation(Ce);Ge&&fe(Ge)}}for(let he of q.getTypeChecker().getAmbientModules())he.declarations&&he.declarations.length>1&&fe(he);return pe;function fe(he){if(he.declarations)for(let Ce of he.declarations){let Ge=Gn(Ce);Ge&&Ge!==J&&ne(Ge.resolvedPath)}}function ne(he){(pe||(pe=new Set)).add(he)}}function p(q,J){return J&&!J.referencedMap==!q}e.canReuseOldState=p;function h(q,J,re){var pe,xe,fe;let ne=new Map,he=q.getCompilerOptions(),Ce=xs(he),Ge=he.module!==0&&!Ce?t():void 0,ve=Ge?t():void 0,Ae=p(Ge,J);q.getTypeChecker();for(let De of q.getSourceFiles()){let Le=x.checkDefined(De.version,"Program intended to be used with Builder should have source files with versions set"),Et=Ae?(pe=J.oldSignatures)==null?void 0:pe.get(De.resolvedPath):void 0,be=Et===void 0?Ae?(xe=J.fileInfos.get(De.resolvedPath))==null?void 0:xe.signature:void 0:Et||void 0;if(Ge){let ze=d(q,De,q.getCanonicalFileName);if(ze&&Ge.set(De.resolvedPath,ze),Ae){let tt=(fe=J.oldExportedModulesMap)==null?void 0:fe.get(De.resolvedPath),Wt=tt===void 0?J.exportedModulesMap.getValues(De.resolvedPath):tt||void 0;Wt&&ve.set(De.resolvedPath,Wt)}}ne.set(De.resolvedPath,{version:Le,signature:be,affectsGlobalScope:Ce?void 0:z(De)||void 0,impliedFormat:De.impliedNodeFormat})}return{fileInfos:ne,referencedMap:Ge,exportedModulesMap:ve,useFileVersionAsSignature:!re&&!Ae}}e.create=h;function m(q){q.allFilesExcludingDefaultLibraryFile=void 0,q.allFileNames=void 0}e.releaseCache=m;function y(q,J,re,pe,xe){var fe,ne;let he=E(q,J,re,pe,xe);return(fe=q.oldSignatures)==null||fe.clear(),(ne=q.oldExportedModulesMap)==null||ne.clear(),he}e.getFilesAffectedBy=y;function E(q,J,re,pe,xe){let fe=J.getSourceFileByPath(re);return fe?N(q,J,fe,pe,xe)?(q.referencedMap?ge:me)(q,J,fe,pe,xe):[fe]:Xe}e.getFilesAffectedByWithOldState=E;function S(q,J,re){q.fileInfos.get(re).signature=J,(q.hasCalledUpdateShapeSignature||(q.hasCalledUpdateShapeSignature=new Set)).add(re)}e.updateSignatureOfFile=S;function A(q,J,re,pe,xe){q.emit(J,(fe,ne,he,Ce,Ge,ve)=>{x.assert(Ed(fe),`File extension for signature expected to be dts: Got:: ${fe}`),xe(TJ(q,J,ne,pe,ve),Ge)},re,!0,void 0,!0)}e.computeDtsSignature=A;function N(q,J,re,pe,xe,fe=q.useFileVersionAsSignature){var ne;if((ne=q.hasCalledUpdateShapeSignature)!=null&&ne.has(re.resolvedPath))return!1;let he=q.fileInfos.get(re.resolvedPath),Ce=he.signature,Ge;if(!re.isDeclarationFile&&!fe&&A(J,re,pe,xe,(ve,Ae)=>{Ge=ve,Ge!==Ce&&D(q,re,Ae[0].exportedModulesFromDeclarationEmit)}),Ge===void 0&&(Ge=re.version,q.exportedModulesMap&&Ge!==Ce)){(q.oldExportedModulesMap||(q.oldExportedModulesMap=new Map)).set(re.resolvedPath,q.exportedModulesMap.getValues(re.resolvedPath)||!1);let ve=q.referencedMap?q.referencedMap.getValues(re.resolvedPath):void 0;ve?q.exportedModulesMap.set(re.resolvedPath,ve):q.exportedModulesMap.deleteKey(re.resolvedPath)}return(q.oldSignatures||(q.oldSignatures=new Map)).set(re.resolvedPath,Ce||!1),(q.hasCalledUpdateShapeSignature||(q.hasCalledUpdateShapeSignature=new Set)).add(re.resolvedPath),he.signature=Ge,Ge!==Ce}e.updateShapeSignature=N;function D(q,J,re){if(!q.exportedModulesMap)return;(q.oldExportedModulesMap||(q.oldExportedModulesMap=new Map)).set(J.resolvedPath,q.exportedModulesMap.getValues(J.resolvedPath)||!1);let pe=w(re);pe?q.exportedModulesMap.set(J.resolvedPath,pe):q.exportedModulesMap.deleteKey(J.resolvedPath)}e.updateExportedModules=D;function w(q){let J;return q?.forEach(re=>o(re).forEach(pe=>(J??(J=new Set)).add(pe))),J}e.getExportedModules=w;function j(q,J,re){let pe=J.getCompilerOptions();if(xs(pe)||!q.referencedMap||z(re))return K(q,J);let xe=new Set,fe=[re.resolvedPath];for(;fe.length;){let ne=fe.pop();if(!xe.has(ne)){xe.add(ne);let he=q.referencedMap.getValues(ne);if(he)for(let Ce of he.keys())fe.push(Ce)}}return Wo(OC(xe.keys(),ne=>{var he;return((he=J.getSourceFileByPath(ne))==null?void 0:he.fileName)??ne}))}e.getAllDependencies=j;function K(q,J){if(!q.allFileNames){let re=J.getSourceFiles();q.allFileNames=re===Xe?Xe:re.map(pe=>pe.fileName)}return q.allFileNames}function Y(q,J){let re=q.referencedMap.getKeys(J);return re?Wo(re.keys()):[]}e.getReferencedByPaths=Y;function B(q){for(let J of q.statements)if(!xF(J))return!1;return!0}function ce(q){return gt(q.moduleAugmentations,J=>E_(J.parent))}function z(q){return ce(q)||!wp(q)&&!Jf(q)&&!B(q)}function Z(q,J,re){if(q.allFilesExcludingDefaultLibraryFile)return q.allFilesExcludingDefaultLibraryFile;let pe;re&&xe(re);for(let fe of J.getSourceFiles())fe!==re&&xe(fe);return q.allFilesExcludingDefaultLibraryFile=pe||Xe,q.allFilesExcludingDefaultLibraryFile;function xe(fe){J.isSourceFileDefaultLibrary(fe)||(pe||(pe=[])).push(fe)}}e.getAllFilesExcludingDefaultLibraryFile=Z;function me(q,J,re){let pe=J.getCompilerOptions();return pe&&xs(pe)?[re]:Z(q,J,re)}function ge(q,J,re,pe,xe){if(z(re))return Z(q,J,re);let fe=J.getCompilerOptions();if(fe&&(em(fe)||xs(fe)))return[re];let ne=new Map;ne.set(re.resolvedPath,re);let he=Y(q,re.resolvedPath);for(;he.length>0;){let Ce=he.pop();if(!ne.has(Ce)){let Ge=J.getSourceFileByPath(Ce);ne.set(Ce,Ge),Ge&&N(q,J,Ge,pe,xe)&&he.push(...Y(q,Ge.resolvedPath))}}return Wo(OC(ne.values(),Ce=>Ce))}})(xm||(xm={}))}});function Zv(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Af(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function nD(e,t){let r=t&&(Ey(t)?t:Zv(t)),i=Ey(e)?e:Zv(e);if(r===i)return 0;if(!r||!i)return i;let o=r^i,s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function wVe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!dh(e,r=>!t.has(r))}function OVe(e,t){var r,i;let o=xm.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=xs(s);l?s.composite&&t?.outSignature&&l===xs(t?.compilerOptions)&&(o.outSignature=t.outSignature&&o1e(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;let d=xm.canReuseOldState(o.referencedMap,t),p=d?t.compilerOptions:void 0,h=d&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!poe(s,p),m=s.composite&&t?.emitSignatures&&!l&&!moe(s,t.compilerOptions);d?((r=t.changedFilesSet)==null||r.forEach(N=>o.changedFilesSet.add(N)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;let y=o.referencedMap,E=d?t.referencedMap:void 0,S=h&&!s.skipLibCheck==!p.skipLibCheck,A=S&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((N,D)=>{var w;let j,K;if(!d||!(j=t.fileInfos.get(D))||j.version!==N.version||j.impliedFormat!==N.impliedFormat||!wVe(K=y&&y.getValues(D),E&&E.getValues(D))||K&&dh(K,Y=>!o.fileInfos.has(Y)&&t.fileInfos.has(Y)))i1e(o,D);else{let Y=e.getSourceFileByPath(D),B=(w=t.emitDiagnosticsPerFile)==null?void 0:w.get(D);if(B&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(D,t.hasReusableDiagnostic?l1e(B,e):a1e(B,e)),h){if(Y.isDeclarationFile&&!S||Y.hasNoDefaultLib&&!A)return;let ce=t.semanticDiagnosticsPerFile.get(D);ce&&(o.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?l1e(ce,e):a1e(ce,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(D))}}if(m){let Y=t.emitSignatures.get(D);Y&&(o.emitSignatures??(o.emitSignatures=new Map)).set(D,o1e(s,t.compilerOptions,Y))}}),d&&Gc(t.fileInfos,(N,D)=>o.fileInfos.has(D)?!1:l||N.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))xm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(N=>i1e(o,N.resolvedPath));else if(p){let N=foe(s,p)?Zv(s):nD(s,p);N!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|N:N:(e.getSourceFiles().forEach(D=>{o.changedFilesSet.has(D.resolvedPath)||nce(o,D.resolvedPath,N)}),x.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(d&&(o.bundle=t.bundle),gt(e.getProjectReferences(),N=>!!N.prepend)&&(o.programEmitPending=Zv(s))),o}function i1e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function o1e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:No(r)?[r]:r[0]}function a1e(e,t){return e.length?Pc(e,r=>{if(No(r.messageText))return r;let i=$le(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function $le(e,t,r,i){let o=i(e);if(o)return{...bF(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:s1e(e.next,t,r,i)};let s=s1e(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function s1e(e,t,r,i){return Pc(e,o=>$le(o,t,r,i))}function l1e(e,t){if(!e.length)return Xe;let r;return e.map(o=>{let s=c1e(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;let{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(d=>c1e(d,t,i)):[]:void 0,s});function i(o){return r??(r=oi(ho(Vy(t.getCompilerOptions()),t.getCurrentDirectory()))),tl(o,r,t.getCanonicalFileName)}}function c1e(e,t,r){let{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:No(e.messageText)?e.messageText:$le(e.messageText,o,t,s=>s.info)}}function WVe(e){xm.releaseCache(e),e.program=void 0}function FVe(e){let t=xs(e.compilerOptions);return x.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,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function zVe(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,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function d1e(e,t){x.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function u1e(e,t,r){for(var i,o;;){let{affectedFiles:s}=e;if(s){let h=e.seenAffectedFiles,m=e.affectedFilesIndex;for(;m{let s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function GVe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return Gc(e.affectedFilesPendingEmit,(i,o)=>{var s;let l=e.program.getSourceFileByPath(o);if(!l||!ET(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}let d=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath),p=nD(i,d);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function VVe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return Gc(e.emitDiagnosticsPerFile,(r,i)=>{var o;let s=e.program.getSourceFileByPath(i);if(!s||!ET(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}let l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function p1e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=x.checkDefined(e.program),r=t.getCompilerOptions();gn(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!jN(i,r,t)&&Qle(e,i.resolvedPath))}}function jVe(e,t,r,i){if(Qle(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){p1e(e),xm.updateShapeSignature(e,x.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||UVe(e,t,r,i)}function SJ(e,t,r,i){if(Qle(e,t),!e.changedFilesSet.has(t)){let o=x.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(xm.updateShapeSignature(e,o,s,r,i,!0),Af(e.compilerOptions)&&nce(e,t,e.compilerOptions.declarationMap?24:8))}}function Qle(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function f1e(e,t){let r=x.checkDefined(e.oldSignatures).get(t)||void 0;return x.checkDefined(e.fileInfos.get(t)).signature!==r}function Zle(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(xm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>SJ(e,s.resolvedPath,r,i)),p1e(e),!0):!1}function UVe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!f1e(e,t.resolvedPath))return;if(em(e.compilerOptions)){let l=new Map;l.set(t.resolvedPath,!0);let d=xm.getReferencedByPaths(e,t.resolvedPath);for(;d.length>0;){let p=d.pop();if(!l.has(p)){if(l.set(p,!0),Zle(e,p,r,i))return;if(SJ(e,p,r,i),f1e(e,p)){let h=x.checkDefined(e.program).getSourceFileByPath(p);d.push(...xm.getReferencedByPaths(e,h.resolvedPath))}}}}let s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(Zle(e,l,r,i))return!0;let d=e.referencedMap.getKeys(l);return d&&dh(d,p=>m1e(e,p,s,r,i))})}function m1e(e,t,r,i,o){var s,l;if(Kb(r,t)){if(Zle(e,t,i,o))return!0;SJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(d=>m1e(e,d,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(d=>!r.has(d)&&SJ(e,d,i,o))}}function ece(e,t,r){return Eo(HVe(e,t,r),x.checkDefined(e.program).getProgramDiagnostics(t))}function HVe(e,t,r){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let s=e.semanticDiagnosticsPerFile.get(i);if(s)return oz(s,e.compilerOptions)}let o=x.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),oz(o,e.compilerOptions)}function tce(e){return!!xs(e.options||{})}function KVe(e,t){var r,i,o;let s=x.checkDefined(e.program).getCurrentDirectory(),l=oi(ho(Vy(e.compilerOptions),s)),d=e.latestChangedDtsFile?ce(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(xs(e.compilerOptions)){let he=Wo(e.fileInfos.entries(),([Le,Et])=>{let be=Z(Le);return ge(Le,be),Et.impliedFormat?{version:Et.version,impliedFormat:Et.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Et.version}),Ce={fileNames:p,fileInfos:he,root:m,options:q(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:d,pendingEmit:e.programEmitPending?e.programEmitPending===Zv(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Ge,dts:ve,commonSourceDirectory:Ae,sourceFiles:De}=t;return e.bundle=t={commonSourceDirectory:Ae,sourceFiles:De,js:Ge||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:ve||(Af(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},Iw(Ce,t)}let y,E,S,A=Wo(e.fileInfos.entries(),([he,Ce])=>{var Ge,ve;let Ae=Z(he);ge(he,Ae),x.assert(p[Ae-1]===z(he));let De=(Ge=e.oldSignatures)==null?void 0:Ge.get(he),Le=De!==void 0?De||void 0:Ce.signature;if(e.compilerOptions.composite){let Et=e.program.getSourceFileByPath(he);if(!Jf(Et)&&ET(Et,e.program)){let be=(ve=e.emitSignatures)==null?void 0:ve.get(he);be!==Le&&(S||(S=[])).push(be===void 0?Ae:[Ae,!No(be)&&be[0]===Le?Xe:be])}}return Ce.version===Le?Ce.affectsGlobalScope||Ce.impliedFormat?{version:Ce.version,signature:void 0,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:Ce.version:Le!==void 0?De===void 0?Ce:{version:Ce.version,signature:Le,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:{version:Ce.version,signature:!1,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}}),N;e.referencedMap&&(N=Wo(e.referencedMap.keys()).sort(Vd).map(he=>[Z(he),me(e.referencedMap.getValues(he))]));let D;e.exportedModulesMap&&(D=to(Wo(e.exportedModulesMap.keys()).sort(Vd),he=>{var Ce;let Ge=(Ce=e.oldExportedModulesMap)==null?void 0:Ce.get(he);if(Ge===void 0)return[Z(he),me(e.exportedModulesMap.getValues(he))];if(Ge)return[Z(he),me(Ge)]}));let w=re(e.semanticDiagnosticsPerFile),j;if((o=e.affectedFilesPendingEmit)!=null&&o.size){let he=Zv(e.compilerOptions),Ce=new Set;for(let Ge of Wo(e.affectedFilesPendingEmit.keys()).sort(Vd))if(Kb(Ce,Ge)){let ve=e.program.getSourceFileByPath(Ge);if(!ve||!ET(ve,e.program))continue;let Ae=Z(Ge),De=e.affectedFilesPendingEmit.get(Ge);(j||(j=[])).push(De===he?Ae:De===8?[Ae]:[Ae,De])}}let K;if(e.changedFilesSet.size)for(let he of Wo(e.changedFilesSet.keys()).sort(Vd))(K||(K=[])).push(Z(he));let Y=re(e.emitDiagnosticsPerFile),B={fileNames:p,fileInfos:A,root:m,options:q(e.compilerOptions),fileIdsList:y,referencedMap:N,exportedModulesMap:D,semanticDiagnosticsPerFile:w,emitDiagnosticsPerFile:Y,affectedFilesPendingEmit:j,changeFileSet:K,emitSignatures:S,latestChangedDtsFile:d};return Iw(B,t);function ce(he){return z(ho(he,s))}function z(he){return h0(_m(l,he,e.program.getCanonicalFileName))}function Z(he){let Ce=h.get(he);return Ce===void 0&&(p.push(z(he)),h.set(he,Ce=p.length)),Ce}function me(he){let Ce=Wo(he.keys(),Z).sort(Zs),Ge=Ce.join(),ve=E?.get(Ge);return ve===void 0&&((y||(y=[])).push(Ce),(E||(E=new Map)).set(Ge,ve=y.length)),ve}function ge(he,Ce){let Ge=e.program.getSourceFile(he);if(!e.program.getFileIncludeReasons().get(Ge.path).some(Le=>Le.kind===0))return;if(!m.length)return m.push(Ce);let ve=m[m.length-1],Ae=To(ve);if(Ae&&ve[1]===Ce-1)return ve[1]=Ce;if(Ae||m.length===1||ve!==Ce-1)return m.push(Ce);let De=m[m.length-2];return!Ey(De)||De!==ve-1?m.push(Ce):(m[m.length-2]=[De,Ce],m.length=m.length-1)}function q(he){let Ce,{optionsNameMap:Ge}=VR();for(let ve of Vh(he).sort(Vd)){let Ae=Ge.get(ve.toLowerCase());Ae?.affectsBuildInfo&&((Ce||(Ce={}))[ve]=J(Ae,he[ve]))}return Ce}function J(he,Ce){if(he){if(x.assert(he.type!=="listOrElement"),he.type==="list"){let Ge=Ce;if(he.element.isFilePath&&Ge.length)return Ge.map(ce)}else if(he.isFilePath)return ce(Ce)}return Ce}function re(he){let Ce;if(he)for(let Ge of Wo(he.keys()).sort(Vd)){let ve=he.get(Ge);(Ce||(Ce=[])).push(ve.length?[Z(Ge),pe(ve)]:Z(Ge))}return Ce}function pe(he){return x.assert(!!he.length),he.map(Ce=>{let Ge=xe(Ce);Ge.reportsUnnecessary=Ce.reportsUnnecessary,Ge.reportDeprecated=Ce.reportsDeprecated,Ge.source=Ce.source,Ge.skippedOn=Ce.skippedOn;let{relatedInformation:ve}=Ce;return Ge.relatedInformation=ve?ve.length?ve.map(Ae=>xe(Ae)):[]:void 0,Ge})}function xe(he){let{file:Ce}=he;return{...he,file:Ce?z(Ce.resolvedPath):void 0,messageText:No(he.messageText)?he.messageText:fe(he.messageText)}}function fe(he){if(he.repopulateInfo)return{info:he.repopulateInfo(),next:ne(he.next)};let Ce=ne(he.next);return Ce===he.next?he:{...he,next:Ce}}function ne(he){return he&&(gn(he,(Ce,Ge)=>{let ve=fe(Ce);if(Ce===ve)return;let Ae=Ge>0?he.slice(0,Ge-1):[];Ae.push(ve);for(let De=Ge+1;De`${p(h)}${NL[h.category]}${h.code}: ${d(h.messageText)}`).join(` `)),(i.createHash??HC)(r);function d(h){return No(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(d).join(` `):h.messageText}function p(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(l===void 0&&(l=oi(t.resolvedPath)),`${h0(_m(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function JT(e,t,r){return(t.createHash??HC)(_1e(e,r))}function AJ(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;let l=OVe(t,s);t.getBuildInfo=N=>KVe(l,N),t=void 0,i=void 0,s=void 0;let d=()=>l,p=xJ(d,o);return p.getState=d,p.saveEmitState=()=>FVe(l),p.restoreEmitState=N=>zVe(l,N),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=N=>xm.getAllDependencies(l,x.checkDefined(l.program),N),p.getSemanticDiagnostics=A,p.emit=E,p.releaseProgram=()=>WVe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=S:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=S,p.emitNextAffectedFile=m,p.emitBuildInfo=h):Ho(),p;function h(N,D){if(l.buildInfoEmitPending){let w=x.checkDefined(l.program).emitBuildInfo(N||ta(r,r.writeFile),D);return l.buildInfoEmitPending=!1,w}return cz}function m(N,D,w,j){var K,Y,B;let ce=u1e(l,D,r),z=Zv(l.compilerOptions),Z=w?z&24:z;if(!ce)if(xs(l.compilerOptions)){if(!l.programEmitPending||(Z=l.programEmitPending,w&&(Z=Z&24),!Z))return;ce=l.program}else{let q=GVe(l,w);if(!q){let J=VVe(l);if(J)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(J.affectedFile.resolvedPath,J.seenKind|24),{result:{emitSkipped:!0,diagnostics:J.diagnostics},affected:J.affectedFile};if(!l.buildInfoEmitPending)return;let re=l.program,pe=re.emitBuildInfo(N||ta(r,r.writeFile),D);return l.buildInfoEmitPending=!1,{result:pe,affected:re}}({affectedFile:ce,emitKind:Z}=q)}let me;Z&7&&(me=0),Z&24&&(me=me===void 0?1:void 0),ce===l.program&&(l.programEmitPending=l.changedFilesSet.size?nD(z,Z):l.programEmitPending?nD(l.programEmitPending,Z):void 0);let ge=l.program.emit(ce===l.program?void 0:ce,y(N,j),D,me,j);if(ce!==l.program){let q=ce;l.seenAffectedFiles.add(q.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;let J=((K=l.seenEmittedFiles)==null?void 0:K.get(q.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(q.resolvedPath,Z|J);let re=((Y=l.affectedFilesPendingEmit)==null?void 0:Y.get(q.resolvedPath))||z,pe=nD(re,Z|J);pe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(q.resolvedPath,pe):(B=l.affectedFilesPendingEmit)==null||B.delete(q.resolvedPath),ge.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(q.resolvedPath,ge.diagnostics)}else l.changedFilesSet.clear();return{result:ge,affected:ce}}function y(N,D){return Af(l.compilerOptions)?(w,j,K,Y,B,ce)=>{var z,Z,me,ge;if(Ed(w))if(xs(l.compilerOptions)){if(l.compilerOptions.composite){let J=q(l.outSignature,void 0);if(!J)return;l.outSignature=J}}else{x.assert(B?.length===1);let J;if(!D){let re=B[0],pe=l.fileInfos.get(re.resolvedPath);if(pe.signature===re.version){let xe=TJ(l.program,re,j,r,ce);(z=ce?.diagnostics)!=null&&z.length||(J=xe),xe!==re.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(re.resolvedPath),l.exportedModulesMap&&xm.updateExportedModules(l,re,re.exportedModulesFromDeclarationEmit),l.affectedFiles?(((Z=l.oldSignatures)==null?void 0:Z.get(re.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(re.resolvedPath,pe.signature||!1),pe.signature=xe):(pe.signature=xe,(me=l.oldExportedModulesMap)==null||me.clear()))}}if(l.compilerOptions.composite){let re=B[0].resolvedPath;if(J=q((ge=l.emitSignatures)==null?void 0:ge.get(re),J),!J)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(re,J)}}N?N(w,j,K,Y,B,ce):r.writeFile?r.writeFile(w,j,K,Y,B,ce):l.program.writeFile(w,j,K,Y,B,ce);function q(J,re){let pe=!J||No(J)?J:J[0];if(re??(re=JT(j,r,ce)),re===pe){if(J===pe)return;ce?ce.differsOnlyInMap=!0:ce={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=w;return re}}:N||ta(r,r.writeFile)}function E(N,D,w,j,K){e===1&&d1e(l,N);let Y=hJ(p,N,D,w);if(Y)return Y;if(!N)if(e===1){let B=[],ce=!1,z,Z=[],me;for(;me=m(D,w,j,K);)ce=ce||me.result.emitSkipped,z=Hr(z,me.result.diagnostics),Z=Hr(Z,me.result.emittedFiles),B=Hr(B,me.result.sourceMaps);return{emitSkipped:ce,diagnostics:z||Xe,emittedFiles:Z,sourceMaps:B}}else BVe(l,j);return x.checkDefined(l.program).emit(N,y(D,K),w,j,K)}function S(N,D){for(;;){let w=u1e(l,N,r),j;if(w)if(w!==l.program){let K=w;if((!D||!D(K))&&(j=ece(l,K,N)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!j)continue}else j=l.program.getSemanticDiagnostics(void 0,N),l.changedFilesSet.clear(),l.programEmitPending=Zv(l.compilerOptions);else return;return{result:j,affected:w}}}function A(N,D){d1e(l,N);let w=x.checkDefined(l.program).getCompilerOptions();if(xs(w))return x.assert(!l.semanticDiagnosticsPerFile),x.checkDefined(l.program).getSemanticDiagnostics(N,D);if(N)return ece(l,N,D);for(;S(D););let j;for(let K of x.checkDefined(l.program).getSourceFiles())j=Hr(j,ece(l,K,D));return j||Xe}}function nce(e,t,r){var i,o;let s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function rce(e){return No(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:No(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function ice(e,t){return Ey(e)?t:e[1]||8}function oce(e,t){return e||Zv(t||{})}function ace(e,t,r){var i,o,s,l;let d=e.program,p=oi(ho(t,r.getCurrentDirectory())),h=Nd(r.useCaseSensitiveFileNames()),m,y=(i=d.fileNames)==null?void 0:i.map(A),E,S=d.latestChangedDtsFile?N(d.latestChangedDtsFile):void 0;if(tce(d)){let Y=new Map;d.fileInfos.forEach((B,ce)=>{let z=D(ce+1);Y.set(z,No(B)?{version:B,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:B)}),m={fileInfos:Y,compilerOptions:d.options?GH(d.options,N):{},latestChangedDtsFile:S,outSignature:d.outSignature,programEmitPending:d.pendingEmit===void 0?void 0:oce(d.pendingEmit,d.options),bundle:e.bundle}}else{E=(o=d.fileIdsList)==null?void 0:o.map(z=>new Set(z.map(D)));let Y=new Map,B=(s=d.options)!=null&&s.composite&&!xs(d.options)?new Map:void 0;d.fileInfos.forEach((z,Z)=>{let me=D(Z+1),ge=rce(z);Y.set(me,ge),B&&ge.signature&&B.set(me,ge.signature)}),(l=d.emitSignatures)==null||l.forEach(z=>{if(Ey(z))B.delete(D(z));else{let Z=D(z[0]);B.set(Z,!No(z[1])&&!z[1].length?[B.get(Z)]:z[1])}});let ce=d.affectedFilesPendingEmit?Zv(d.options||{}):void 0;m={fileInfos:Y,compilerOptions:d.options?GH(d.options,N):{},referencedMap:j(d.referencedMap),exportedModulesMap:j(d.exportedModulesMap),semanticDiagnosticsPerFile:K(d.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(d.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:d.affectedFilesPendingEmit&&_0(d.affectedFilesPendingEmit,z=>D(Ey(z)?z:z[0]),z=>ice(z,ce)),changedFilesSet:new Set(mn(d.changeFileSet,D)),latestChangedDtsFile:S,emitSignatures:B?.size?B:void 0}}return{getState:()=>m,saveEmitState:qa,restoreEmitState:qa,getProgram:Ho,getProgramOrUndefined:Jb,releaseProgram:qa,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Ho,getSourceFiles:Ho,getOptionsDiagnostics:Ho,getGlobalDiagnostics:Ho,getConfigFileParsingDiagnostics:Ho,getSyntacticDiagnostics:Ho,getDeclarationDiagnostics:Ho,getSemanticDiagnostics:Ho,emit:Ho,getAllDependencies:Ho,getCurrentDirectory:Ho,emitNextAffectedFile:Ho,getSemanticDiagnosticsOfNextAffectedFile:Ho,emitBuildInfo:Ho,close:qa,hasChangedEmitSignature:Vm};function A(Y){return tl(Y,p,h)}function N(Y){return ho(Y,p)}function D(Y){return y[Y-1]}function w(Y){return E[Y-1]}function j(Y){if(!Y)return;let B=xm.createManyToManyPathMap();return Y.forEach(([ce,z])=>B.set(D(ce),w(z))),B}function K(Y){return Y&&_0(Y,B=>D(Ey(B)?B:B[0]),B=>Ey(B)?Xe:B[1])}}function IJ(e,t,r){let i=oi(ho(t,r.getCurrentDirectory())),o=Nd(r.useCaseSensitiveFileNames()),s=new Map,l=0,d=[];return e.fileInfos.forEach((p,h)=>{let m=tl(e.fileNames[h],i,o),y=No(p)?p:p.version;if(s.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,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,d)=>r().emit(i,o,s,l,d),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Ho,getCurrentDirectory:()=>r().getCurrentDirectory(),close:qa};function r(){return x.checkDefined(e().program)}}var RJ,DJ,JVe=bt({"src/compiler/builder.ts"(){"use strict";ea(),RJ=(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))(RJ||{}),DJ=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(DJ||{})}});function h1e(e,t,r,i,o,s){return AJ(0,dz(e,t,r,i,o,s))}function CJ(e,t,r,i,o,s){return AJ(1,dz(e,t,r,i,o,s))}function g1e(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:d}=dz(e,t,r,i,o,s);return xJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),d)}var qVe=bt({"src/compiler/builderPublic.ts"(){"use strict";ea()}});function uz(e){return El(e,"/node_modules/.staging")?Sx(e,"/.staging"):gt(kL,t=>e.includes(t))?void 0:e}function sce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==nl&&!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:e[r].match(/^workspaces$/i)?r+1:r+2}function pz(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let r=sce(e,t);return t>r+1}function lce(e){return v1e(oi(e))}function y1e(e,t){if(t.lengtho.length+1?dce(d,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:b1e(d,l,l.length-1,p,h,o)}function b1e(e,t,r,i,o,s){if(o!==-1)return dce(e,t,o+1);let l=!0,d=r;for(let p=0;pXVe(i,o,s,e,r,t,l)}}function XVe(e,t,r,i,o,s,l){let d=fz(e),p=KR(r,i,o,d,t,s,l);if(!e.getGlobalCache)return p;let h=e.getGlobalCache();if(h!==void 0&&!Yc(r)&&!(p.resolvedModule&&O6(p.resolvedModule.extension))){let{resolvedModule:m,failedLookupLocations:y,affectingLocations:E,resolutionDiagnostics:S}=Dse(x.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,d,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=UR(p.failedLookupLocations,y),p.affectingLocations=UR(p.affectingLocations,E),p.resolutionDiagnostics=UR(p.resolutionDiagnostics,S),p}return p}function PJ(e,t,r){let i,o,s,l=qp(),d=new Set,p=new Set,h=new Map,m=new Map,y=!1,E,S,A,N,D,w=!1,j=vu(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Y=new Map,B=HR(j(),e.getCanonicalFileName,e.getCompilationSettings()),ce=new Map,z=b3(j(),e.getCanonicalFileName,e.getCompilationSettings(),B.getPackageJsonInfoCache(),B.optionsToRedirectsKey),Z=new Map,me=HR(j(),e.getCanonicalFileName,rK(e.getCompilationSettings()),B.getPackageJsonInfoCache()),ge=new Map,q=new Map,J=pce(t,j),re=e.toPath(J),pe=zc(re),xe=new Map;return{rootDirForResolution:t,resolvedModuleNames:Y,resolvedTypeReferenceDirectives:ce,resolvedLibraries:Z,resolvedFileToResolution:h,resolutionsWithFailedLookups:d,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ge,fileWatchesOfAffectingLocations:q,watchFailedLookupLocationsOfExternalModuleResolutions:Dn,getModuleResolutionCache:()=>B,startRecordingFilesWithChangedResolutions:Ge,finishRecordingFilesWithChangedResolutions:ve,startCachingPerDirectoryResolution:Le,finishCachingPerDirectoryResolution:be,resolveModuleNameLiterals:Je,resolveTypeReferenceDirectiveReferences:_t,resolveLibrary:pt,resolveSingleModuleNameWithoutWatching:Zt,removeResolutionsFromProjectReferenceRedirects:Ye,removeResolutionsOfFile:Ot,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:si,invalidateResolutionsOfFailedLookupLocations:ua,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:De,isFileWithInvalidatedNonRelativeUnresolvedImports:Ae,updateTypeRootsWatch:lt,closeTypeRootsWatch:Be,clear:he,onChangesAffectModuleResolution:Ce};function fe(ae){return ae.resolvedModule}function ne(ae){return ae.resolvedTypeReferenceDirective}function he(){$u(ge,Rf),$u(q,Rf),l.clear(),Be(),Y.clear(),ce.clear(),h.clear(),d.clear(),p.clear(),A=void 0,N=void 0,D=void 0,S=void 0,E=void 0,w=!1,B.clear(),z.clear(),B.update(e.getCompilationSettings()),z.update(e.getCompilationSettings()),me.clear(),m.clear(),Z.clear(),y=!1}function Ce(){w=!0,B.clearAllExceptPackageJsonInfoCache(),z.clearAllExceptPackageJsonInfoCache(),B.update(e.getCompilationSettings()),z.update(e.getCompilationSettings())}function Ge(){i=[]}function ve(){let ae=i;return i=void 0,ae}function Ae(ae){if(!s)return!1;let ke=s.get(ae);return!!ke&&!!ke.length}function De(ae,ke){ua();let st=o;return o=void 0,{hasInvalidatedResolutions:G=>ae(G)||w||!!st?.has(G)||Ae(G),hasInvalidatedLibResolutions:G=>{var et;return ke(G)||!!((et=Z?.get(G))!=null&&et.isInvalidated)}}}function Le(){B.isReadonly=void 0,z.isReadonly=void 0,me.isReadonly=void 0,B.getPackageJsonInfoCache().isReadonly=void 0,B.clearAllExceptPackageJsonInfoCache(),z.clearAllExceptPackageJsonInfoCache(),me.clearAllExceptPackageJsonInfoCache(),l.forEach(uo),l.clear()}function Et(ae){Z.forEach((ke,st)=>{var G;(G=ae?.resolvedLibReferences)!=null&&G.has(st)||(Qn(ke,e.toPath(rz(e.getCompilationSettings(),j(),st)),fe),Z.delete(st))})}function be(ae,ke){s=void 0,w=!1,l.forEach(uo),l.clear(),ae!==ke&&(Et(ae),ae?.getSourceFiles().forEach(st=>{var G;let et=wp(st)?((G=st.packageJsonLocations)==null?void 0:G.length)??0:0,Tt=m.get(st.path)??Xe;for(let He=Tt.length;Heet)for(let He=et;He{ae?.getSourceFileByPath(G)||(st.forEach(et=>q.get(et).files--),m.delete(G))})),ge.forEach(ze),q.forEach(tt),y=!1,B.isReadonly=!0,z.isReadonly=!0,me.isReadonly=!0,B.getPackageJsonInfoCache().isReadonly=!0}function ze(ae,ke){ae.refCount===0&&(ge.delete(ke),ae.watcher.close())}function tt(ae,ke){var st;ae.files===0&&ae.resolutions===0&&!((st=ae.symlinks)!=null&&st.size)&&(q.delete(ke),ae.watcher.close())}function Wt({entries:ae,containingFile:ke,containingSourceFile:st,redirectedReference:G,options:et,perFileCache:Tt,reusedNames:He,loader:ut,getResolutionWithResolvedFileName:Ft,deferWatchingNonRelativeResolution:hn,shouldRetryResolution:dn,logChanges:un}){let U=e.toPath(ke),Me=Tt.get(U)||Tt.set(U,u1()).get(U),Nt=[],k=un&&Ae(U),ie=e.getCurrentProgram(),H=ie&&ie.getResolvedProjectReferenceToRedirect(ke),ue=H?!G||G.sourceFile.path!==H.sourceFile.path:!!G,We=u1();for(let It of ae){let Dt=ut.nameAndMode.getName(It),Ut=ut.nameAndMode.getMode(It,st,G?.commandLine.options||et),En=Me.get(Dt,Ut);if(!We.has(Dt,Ut)&&(w||ue||!En||En.isInvalidated||k&&!Yc(Dt)&&dn(En))){let wn=En;En=ut.resolve(Dt,Ut),e.onDiscoveredSymlink&&YVe(En)&&e.onDiscoveredSymlink(),Me.set(Dt,Ut,En),En!==wn&&(Dn(Dt,En,U,Ft,hn),wn&&Qn(wn,U,Ft)),un&&i&&!Ne(wn,En)&&(i.push(U),un=!1)}else{let wn=fz(e);if(Gg(et,wn)&&!We.has(Dt,Ut)){let Bn=Ft(En);vo(wn,Tt===Y?Bn?.resolvedFileName?Bn.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Bn?.resolvedFileName?Bn.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Dt,ke,Bn?.resolvedFileName,Bn?.packageId&&Lv(Bn.packageId))}}x.assert(En!==void 0&&!En.isInvalidated),We.set(Dt,Ut,!0),Nt.push(En)}return He?.forEach(It=>We.set(ut.nameAndMode.getName(It),ut.nameAndMode.getMode(It,st,G?.commandLine.options||et),!0)),Me.size()!==We.size()&&Me.forEach((It,Dt,Ut)=>{We.has(Dt,Ut)||(Qn(It,U,Ft),Me.delete(Dt,Ut))}),Nt;function Ne(It,Dt){if(It===Dt)return!0;if(!It||!Dt)return!1;let Ut=Ft(It),En=Ft(Dt);return Ut===En?!0:!Ut||!En?!1:Ut.resolvedFileName===En.resolvedFileName}}function _t(ae,ke,st,G,et,Tt){return Wt({entries:ae,containingFile:ke,containingSourceFile:et,redirectedReference:st,options:G,reusedNames:Tt,perFileCache:ce,loader:tz(ke,st,G,fz(e),z),getResolutionWithResolvedFileName:ne,shouldRetryResolution:He=>He.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(ae,ke,st,G,et,Tt){return Wt({entries:ae,containingFile:ke,containingSourceFile:et,redirectedReference:st,options:G,reusedNames:Tt,perFileCache:Y,loader:fce(ke,st,G,e,B),getResolutionWithResolvedFileName:fe,shouldRetryResolution:He=>!He.resolvedModule||!GN(He.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function pt(ae,ke,st,G){let et=fz(e),Tt=Z?.get(G);if(!Tt||Tt.isInvalidated){let He=Tt;Tt=E3(ae,ke,st,et,me);let ut=e.toPath(ke);Dn(ae,Tt,ut,fe,!1),Z.set(G,Tt),He&&Qn(He,ut,fe)}else if(Gg(st,et)){let He=fe(Tt);vo(et,He?.resolvedFileName?He.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,ae,ke,He?.resolvedFileName,He?.packageId&&Lv(He.packageId))}return Tt}function Zt(ae,ke){var st,G;let et=e.toPath(ke),Tt=Y.get(et),He=Tt?.get(ae,void 0);if(He&&!He.isInvalidated)return He;let ut=(st=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:st.call(e,B),Ft=fz(e),hn=KR(ae,ke,e.getCompilationSettings(),Ft,B);return(G=e.afterResolveSingleModuleNameWithoutWatching)==null||G.call(e,B,ae,ke,hn,ut),hn}function en(ae){return El(ae,"/node_modules/@types")}function Dn(ae,ke,st,G,et){var Tt;if(ke.refCount)ke.refCount++,x.assertIsDefined(ke.files);else{ke.refCount=1,x.assert(!((Tt=ke.files)!=null&&Tt.size)),!et||Yc(ae)?pn(ke):l.add(ae,ke);let He=G(ke);if(He&&He.resolvedFileName){let ut=e.toPath(He.resolvedFileName),Ft=h.get(ut);Ft||h.set(ut,Ft=new Set),Ft.add(ke)}}(ke.files??(ke.files=new Set)).add(st)}function Kn(ae,ke){let st=e.toPath(ae),G=NJ(ae,st,J,re,pe,j);if(G){let{dir:et,dirPath:Tt,nonRecursive:He}=G;Tt===re?(x.assert(He),ke=!0):Li(et,Tt,He)}return ke}function pn(ae){x.assert(!!ae.refCount);let{failedLookupLocations:ke,affectingLocations:st,alternateResult:G}=ae;if(!ke?.length&&!st?.length&&!G)return;(ke?.length||G)&&d.add(ae);let et=!1;if(ke)for(let Tt of ke)et=Kn(Tt,et);G&&(et=Kn(G,et)),et&&Li(J,re,!0),Xt(ae,!ke?.length&&!G)}function Xt(ae,ke){x.assert(!!ae.refCount);let{affectingLocations:st}=ae;if(st?.length){ke&&p.add(ae);for(let G of st)Kt(G,!0)}}function Kt(ae,ke){let st=q.get(ae);if(st){ke?st.resolutions++:st.files++;return}let G=ae,et=!1,Tt;e.realpath&&(G=e.realpath(ae),ae!==G&&(et=!0,Tt=q.get(G)));let He=ke?1:0,ut=ke?0:1;if(!et||!Tt){let Ft={watcher:cce(e.toPath(G))?e.watchAffectingFileLocation(G,(hn,dn)=>{K?.addOrDeleteFile(hn,e.toPath(G),dn),hi(G,B.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):iD,resolutions:et?0:He,files:et?0:ut,symlinks:void 0};q.set(G,Ft),et&&(Tt=Ft)}if(et){x.assert(!!Tt);let Ft={watcher:{close:()=>{var hn;let dn=q.get(G);(hn=dn?.symlinks)!=null&&hn.delete(ae)&&!dn.symlinks.size&&!dn.resolutions&&!dn.files&&(q.delete(G),dn.watcher.close())}},resolutions:He,files:ut,symlinks:void 0};q.set(ae,Ft),(Tt.symlinks??(Tt.symlinks=new Set)).add(ae)}}function hi(ae,ke){var st;let G=q.get(ae);G?.resolutions&&(S??(S=new Set)).add(ae),G?.files&&(E??(E=new Set)).add(ae),(st=G?.symlinks)==null||st.forEach(et=>hi(et,ke)),ke?.delete(e.toPath(ae))}function uo(ae,ke){let st=e.getCurrentProgram();!st||!st.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(ke)?ae.forEach(pn):ae.forEach(G=>Xt(G,!0))}function Li(ae,ke,st){let G=ge.get(ke);G?(x.assert(!!st==!!G.nonRecursive),G.refCount++):ge.set(ke,{watcher:Er(ae,ke,st),refCount:1,nonRecursive:st})}function So(ae,ke,st){let G=e.toPath(ae),et=NJ(ae,G,J,re,pe,j);if(et){let{dirPath:Tt}=et;Tt===re?ke=!0:Ur(Tt,st)}return ke}function Qn(ae,ke,st,G){if(x.checkDefined(ae.files).delete(ke),ae.refCount--,ae.refCount)return;let et=st(ae);if(et&&et.resolvedFileName){let Ft=e.toPath(et.resolvedFileName),hn=h.get(Ft);hn?.delete(ae)&&!hn.size&&h.delete(Ft)}let{failedLookupLocations:Tt,affectingLocations:He,alternateResult:ut}=ae;if(d.delete(ae)){let Ft=!1;if(Tt)for(let hn of Tt)Ft=So(hn,Ft,G);ut&&(Ft=So(ut,Ft,G)),Ft&&Ur(re,G)}else He?.length&&p.delete(ae);if(He)for(let Ft of He){let hn=q.get(Ft);hn.resolutions--,G&&tt(hn,Ft)}}function Ur(ae,ke){let st=ge.get(ae);st.refCount--,ke&&ze(st,ae)}function Er(ae,ke,st){return e.watchDirectoryOfFailedLookupLocation(ae,G=>{let et=e.toPath(G);K&&K.addOrDeleteFileOrDirectory(G,et),$i(et,ke===et)},st?0:1)}function on(ae,ke,st,G){let et=ae.get(ke);et&&(et.forEach(Tt=>Qn(Tt,ke,st,G)),ae.delete(ke))}function Ye(ae){if(!Sl(ae,".json"))return;let ke=e.getCurrentProgram();if(!ke)return;let st=ke.getResolvedProjectReferenceByPath(ae);st&&st.commandLine.fileNames.forEach(G=>Ot(e.toPath(G)))}function Ot(ae,ke){on(Y,ae,fe,ke),on(ce,ae,ne,ke)}function In(ae,ke){if(!ae)return!1;let st=!1;return ae.forEach(G=>{if(!(G.isInvalidated||!ke(G))){G.isInvalidated=st=!0;for(let et of x.checkDefined(G.files))(o??(o=new Set)).add(et),y=y||El(et,tD)}}),st}function si(ae){Ot(ae);let ke=y;In(h.get(ae),Sy)&&y&&!ke&&e.onChangedAutomaticTypeDirectiveNames()}function yi(ae){x.assert(s===ae||s===void 0),s=ae}function $i(ae,ke){if(ke)(D||(D=new Set)).add(ae);else{let st=uz(ae);if(!st||(ae=st,e.fileIsOpen(ae)))return!1;let G=oi(ae);if(en(ae)||KW(ae)||en(G)||KW(G))(A||(A=new Set)).add(ae),(N||(N=new Set)).add(ae);else{if(zle(e.getCurrentProgram(),ae)||Sl(ae,".map"))return!1;(A||(A=new Set)).add(ae);let et=uw(ae,!0);et&&(N||(N=new Set)).add(et)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Io(){let ae=B.getPackageJsonInfoCache().getInternalMap();ae&&(A||N||D)&&ae.forEach((ke,st)=>vn(st)?ae.delete(st):void 0)}function ua(){var ae;if(w)return E=void 0,Io(),(A||N||D||S)&&In(Z,Ba),A=void 0,N=void 0,D=void 0,S=void 0,!0;let ke=!1;return E&&((ae=e.getCurrentProgram())==null||ae.getSourceFiles().forEach(st=>{gt(st.packageJsonLocations,G=>E.has(G))&&((o??(o=new Set)).add(st.path),ke=!0)}),E=void 0),!A&&!N&&!D&&!S||(ke=In(d,Ba)||ke,Io(),A=void 0,N=void 0,D=void 0,ke=In(p,kn)||ke,S=void 0),ke}function Ba(ae){var ke;return kn(ae)?!0:!A&&!N&&!D?!1:((ke=ae.failedLookupLocations)==null?void 0:ke.some(st=>vn(e.toPath(st))))||!!ae.alternateResult&&vn(e.toPath(ae.alternateResult))}function vn(ae){return A?.has(ae)||vL(N?.keys()||[],ke=>ao(ae,ke)?!0:void 0)||vL(D?.keys()||[],ke=>ae.length>ke.length&&ao(ae,ke)&&(aV(ke)||ae[ke.length]===nl)?!0:void 0)}function kn(ae){var ke;return!!S&&((ke=ae.affectingLocations)==null?void 0:ke.some(st=>S.has(st)))}function Be(){$u(xe,Hm)}function ct(ae){return Rt(ae)?e.watchTypeRootsDirectory(ae,ke=>{let st=e.toPath(ke);K&&K.addOrDeleteFileOrDirectory(ke,st),y=!0,e.onChangedAutomaticTypeDirectiveNames();let G=uce(ae,e.toPath(ae),re,pe,j,et=>ge.has(et));G&&$i(st,G===st)},1):iD}function lt(){let ae=e.getCompilationSettings();if(ae.types){Be();return}let ke=xP(ae,{getCurrentDirectory:j});ke?WN(xe,new Set(ke),{createNewValue:ct,onDeleteValue:Hm}):Be()}function Rt(ae){return e.getCompilationSettings().typeRoots?!0:lce(e.toPath(ae))}}function YVe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var $Ve=bt({"src/compiler/resolutionCache.ts"(){"use strict";ea()}});function ww(e,t){let r=e===hd&&bce?bce:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Nd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(oJ(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(jle(i,r)+r.getNewLine()),i[0]=void 0}}function S1e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Bo(vz,t.code)?(e.clearScreen(),!0):!1}function QVe(e,t){return Bo(vz,e.code)?t+t:t}function Ow(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function mce(e,t){return t?(r,i,o)=>{S1e(e,r,o);let s=`[${iS(Ow(e),"\x1B[90m")}] `;s+=`${k_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";S1e(e,r,o)||(s+=i),s+=`${Ow(e)} - `,s+=`${k_(r.messageText,e.newLine)}${QVe(r,i)}`,e.write(s)}}function T1e(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=p=>x1e(o,s,p);let d=Qk(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,d}function mz(e){return yv(e,t=>t.category===1)}function _z(e){return jr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let i=Vr(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){let{line:o}=hs(i.file,i.start);return{fileName:r,line:o+1}}})}function MJ(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function A1e(e,t){let r=iS(":"+e.line,"\x1B[90m");return KC(e.fileName)&&KC(t)?_m(t,e.fileName,!1)+r:e.fileName+r}function _ce(e,t,r,i){if(e===0)return"";let o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,y,E)=>E.indexOf(m)===y),l=o[0]&&A1e(o[0],i.getCurrentDirectory()),d;e===1?d=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:d=s.length===0?[f.Found_0_errors,e]:s.length===1?[f.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[f.Found_0_errors_in_1_files,e,s.length];let p=jl(...d),h=s.length>1?ZVe(o,i):"";return`${r}${k_(p.messageText,r)}${r}${r}${h}`}function ZVe(e,t){let r=e.filter((y,E,S)=>E===S.findIndex(A=>A?.fileName===y?.fileName));if(r.length===0)return"";let i=y=>Math.log(y)*Math.LOG10E+1,o=r.map(y=>[y,yv(e,E=>E.fileName===y.fileName)]),s=o.reduce((y,E)=>Math.max(y,E[1]||0),0),l=f.Errors_Files.message,d=l.split(" ")[0].length,p=Math.max(d,i(s)),h=Math.max(i(s)-d,0),m="";return m+=" ".repeat(h)+l+` `,o.forEach(y=>{let[E,S]=y,A=Math.log(S)*Math.LOG10E+1|0,N=A{t(i.fileName)})}function kJ(e,t){var r,i;let o=e.getFileIncludeReasons(),s=l=>JC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${rD(l,s)}`),(r=o.get(l.path))==null||r.forEach(d=>t(` ${FJ(e,d,s).messageText}`)),(i=wJ(l,s))==null||i.forEach(d=>t(` ${d.messageText}`))}function wJ(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(zo(void 0,f.File_is_output_of_project_reference_source_0,rD(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(zo(void 0,f.File_redirects_to_file_0,rD(e.redirectInfo.redirectTarget,t))),wp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(zo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,rD(Ja(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(zo(void 0,e.packageJsonScope.contents.packageJsonContent.type?f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:f.File_is_CommonJS_module_because_0_does_not_have_field_type,rD(Ja(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(zo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function OJ(e,t){var r;let i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;let o=e.getCanonicalFileName(t),s=oi(ho(i.fileName,e.getCurrentDirectory()));return Vr(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(ho(l,s))===o)}function WJ(e,t){var r,i;let o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;let s=Sl(t,".json"),l=oi(ho(o.fileName,e.getCurrentDirectory())),d=e.useCaseSensitiveFileNames();return Vr((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!El(p,".json"))return!1;let h=_oe(p,l,"files");return!!h&&zv(`(${h})$`,d).test(t)})}function FJ(e,t,r){var i,o;let s=e.getCompilerOptions();if(IE(t)){let l=VP(e,t),d=ZR(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,p;switch(x.assert(ZR(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:ZR(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===Gv?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:x.assert(!l.packageId),p=f.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?f.Type_library_referenced_via_0_from_file_1_with_packageId_2:f.Type_library_referenced_via_0_from_file_1;break;case 7:x.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:x.assertNever(t)}return zo(void 0,p,d,rD(l.file,r),l.packageId&&Lv(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return zo(void 0,f.Root_file_specified_for_compilation);let l=ho(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(OJ(e,l))return zo(void 0,f.Part_of_files_list_in_tsconfig_json);let p=WJ(e,l);return No(p)?zo(void 0,f.Matched_by_include_pattern_0_in_1,p,rD(s.configFile,r)):zo(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:let h=t.kind===2,m=x.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return zo(void 0,xs(s)?h?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:h?f.Output_from_referenced_project_0_included_because_module_is_specified_as_none:f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,rD(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{let y=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Lv(t.packageId)]:[f.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[f.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Lv(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return zo(void 0,...y)}case 6:{if(t.index!==void 0)return zo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);let y=Gc(aw.type,(S,A)=>S===ns(s)?A:void 0),E=y?[f.Default_library_for_target_0,y]:[f.Default_library];return zo(void 0,...E)}default:x.assertNever(t)}}function rD(e,t){let r=No(e)?e:e.fileName;return t?t(r):r}function hz(e,t,r,i,o,s,l,d){let p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;Hr(h,e.getSyntacticDiagnostics(void 0,s)),h.length===m&&(Hr(h,e.getOptionsDiagnostics(s)),p||(Hr(h,e.getGlobalDiagnostics(s)),h.length===m&&Hr(h,e.getSemanticDiagnostics(void 0,s))));let y=p?{emitSkipped:!0,diagnostics:Xe}:e.emit(void 0,o,s,l,d),{emittedFiles:E,diagnostics:S}=y;Hr(h,S);let A=Mx(h);if(A.forEach(t),r){let N=e.getCurrentDirectory();gn(E,D=>{let w=ho(D,N);r(`TSFILE: ${w}`)}),LJ(e,r)}return i&&i(mz(A),_z(A)),{emitResult:y,diagnostics:A}}function gce(e,t,r,i,o,s,l,d){let{emitResult:p,diagnostics:h}=hz(e,t,r,i,o,s,l,d);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function zJ(e=hd,t){return{onWatchStatusChange:t||mce(e),watchFile:ta(e,e.watchFile)||oD,watchDirectory:ta(e,e.watchDirectory)||oD,setTimeout:ta(e,e.setTimeout)||qa,clearTimeout:ta(e,e.clearTimeout)||qa}}function BJ(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):qa,o=ZK(e,r,i);return o.writeLog=i,o}function GJ(e,t,r=e){let i=e.useCaseSensitiveFileNames(),o={getSourceFile:nJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:ta(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:rJ((s,l,d)=>e.writeFile(s,l,d),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:vu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Nd(i),getNewLine:()=>wy(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ta(e,e.trace),directoryExists:ta(r,r.directoryExists),getDirectories:ta(r,r.getDirectories),realpath:ta(e,e.realpath),getEnvironmentVariable:ta(e,e.getEnvironmentVariable)||(()=>""),createHash:ta(e,e.createHash),readDirectory:ta(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function gz(e,t){if(t.match(RK)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){let s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!jd(s)){i=o;continue}break}let l=t.substring(i,r);if(l.match(k3)){t=t.substring(0,i);break}else if(!l.match(w3))break;r=i}}return(e.createHash||HC)(t)}function yz(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let i=t.call(e,...r);return i&&(i.version=gz(e,i.text)),i}}function VJ(e,t){let r=vu(()=>oi(ma(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:vu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Yr(r(),HL(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,d)=>e.readDirectory(i,o,s,l,d),realpath:ta(e,e.realpath),getEnvironmentVariable:ta(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:ta(e,e.createHash),createProgram:t||CJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ta(e,e.now)}}function I1e(e=hd,t,r,i){let o=l=>e.write(l+e.newLine),s=VJ(e,t);return GG(s,zJ(e,i)),s.afterProgramCreate=l=>{let d=l.getCompilerOptions(),p=wy(d);hz(l,r,o,h=>s.onWatchStatusChange(jl(MJ(h),h),p,d,h))},s}function x1e(e,t,r){t(r),e.exit(1)}function yce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=l||ww(o),h=I1e(o,s,p,d);return h.onUnRecoverableConfigFileDiagnostic=m=>x1e(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function vce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=I1e(o,s,l||ww(o),d);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function R1e(e){let t=e.system||hd,r=e.host||(e.host=jJ(e.options,t)),i=Ece(e),o=gce(i,e.reportDiagnostic||ww(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(_ce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var bce,vz,iD,oD,kc,eje=bt({"src/compiler/watch.ts"(){"use strict";ea(),bce=hd?{getCurrentDirectory:()=>hd.getCurrentDirectory(),getNewLine:()=>hd.newLine,getCanonicalFileName:Nd(hd.useCaseSensitiveFileNames)}:void 0,vz=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],iD={close:qa},oD=()=>iD,kc={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 bz(e,t){let r=Vy(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{let o=t.readFile(r);if(!o)return;i=X3(r,o)}if(!(!i||i.version!==Jp||!i.program))return ace(i,r,t)}function jJ(e,t=hd){let r=iJ(e,void 0,t);return r.createHash=ta(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,yz(r),Nw(r,i=>tl(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Ece({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||jJ(t),s=s||CJ;let l=bz(t,o);return s(e,t,o,l,r,i)}function D1e(e,t,r,i,o,s,l,d){return To(e)?vce({rootFiles:e,options:t,watchOptions:d,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):yce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:d,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function C1e(e){let t,r,i,o,s,l,d,p,h=e.extendedConfigCache,m=!1,y=new Map,E,S=!1,A=e.useCaseSensitiveFileNames(),N=e.getCurrentDirectory(),{configFileName:D,optionsToExtend:w={},watchOptionsToExtend:j,extraFileExtensions:K,createProgram:Y}=e,{rootFiles:B,options:ce,watchOptions:z,projectReferences:Z}=e,me,ge,q=!1,J=!1,re=D===void 0?void 0:$3(e,N,A),pe=re||e,xe=az(e,pe),fe=Dn();D&&e.configFileParsingResult&&(Ba(e.configFileParsingResult),fe=Dn()),Qn(f.Starting_compilation_in_watch_mode),D&&!e.configFileParsingResult&&(fe=wy(w),x.assert(!B),ua(),fe=Dn()),x.assert(ce),x.assert(B);let{watchFile:ne,watchDirectory:he,writeLog:Ce}=BJ(e,ce),Ge=Nd(A);Ce(`Current directory: ${N} CaseSensitiveFileNames: ${A}`);let ve;D&&(ve=ne(D,In,2e3,z,kc.ConfigFile));let Ae=GJ(e,()=>ce,pe);yz(Ae);let De=Ae.getSourceFile;Ae.getSourceFile=(He,...ut)=>hi(He,Kn(He),...ut),Ae.getSourceFileByPath=hi,Ae.getNewLine=()=>fe,Ae.fileExists=Kt,Ae.onReleaseOldSourceFile=So,Ae.onReleaseParsedCommandLine=Be,Ae.toPath=Kn,Ae.getCompilationSettings=()=>ce,Ae.useSourceOfProjectReferenceRedirect=ta(e,e.useSourceOfProjectReferenceRedirect),Ae.watchDirectoryOfFailedLookupLocation=(He,ut,Ft)=>he(He,ut,Ft,z,kc.FailedLookupLocations),Ae.watchAffectingFileLocation=(He,ut)=>ne(He,ut,2e3,z,kc.AffectingFileLocation),Ae.watchTypeRootsDirectory=(He,ut,Ft)=>he(He,ut,Ft,z,kc.TypeRoots),Ae.getCachedDirectoryStructureHost=()=>re,Ae.scheduleInvalidateResolutionsOfFailedLookupLocations=on,Ae.onInvalidatedResolution=Ot,Ae.onChangedAutomaticTypeDirectiveNames=Ot,Ae.fileIsOpen=Vm,Ae.getCurrentProgram=Je,Ae.writeLog=Ce,Ae.getParsedCommandLine=vn;let Le=PJ(Ae,D?oi(ho(D,N)):N,!1);Ae.resolveModuleNameLiterals=ta(e,e.resolveModuleNameLiterals),Ae.resolveModuleNames=ta(e,e.resolveModuleNames),!Ae.resolveModuleNameLiterals&&!Ae.resolveModuleNames&&(Ae.resolveModuleNameLiterals=Le.resolveModuleNameLiterals.bind(Le)),Ae.resolveTypeReferenceDirectiveReferences=ta(e,e.resolveTypeReferenceDirectiveReferences),Ae.resolveTypeReferenceDirectives=ta(e,e.resolveTypeReferenceDirectives),!Ae.resolveTypeReferenceDirectiveReferences&&!Ae.resolveTypeReferenceDirectives&&(Ae.resolveTypeReferenceDirectiveReferences=Le.resolveTypeReferenceDirectiveReferences.bind(Le)),Ae.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Le.resolveLibrary.bind(Le),Ae.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ta(e,e.getModuleResolutionCache):()=>Le.getModuleResolutionCache();let be=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ta(e,e.hasInvalidatedResolutions)||Sy:Vm,ze=e.resolveLibrary?ta(e,e.hasInvalidatedLibResolutions)||Sy:Vm;return t=bz(ce,Ae),pt(),st(),D&&et(Kn(D),ce,z,kc.ExtendedConfigFile),D?{getCurrentProgram:_t,getProgram:yi,close:tt,getResolutionCache:Wt}:{getCurrentProgram:_t,getProgram:yi,updateRootFileNames:en,close:tt,getResolutionCache:Wt};function tt(){Er(),Le.clear(),$u(y,He=>{He&&He.fileWatcher&&(He.fileWatcher.close(),He.fileWatcher=void 0)}),ve&&(ve.close(),ve=void 0),h?.clear(),h=void 0,p&&($u(p,Rf),p=void 0),o&&($u(o,Rf),o=void 0),i&&($u(i,Hm),i=void 0),d&&($u(d,He=>{var ut;(ut=He.watcher)==null||ut.close(),He.watcher=void 0,He.watchedDirectories&&$u(He.watchedDirectories,Rf),He.watchedDirectories=void 0}),d=void 0)}function Wt(){return Le}function _t(){return t}function Je(){return t&&t.getProgramOrUndefined()}function pt(){Ce("Synchronizing program"),x.assert(ce),x.assert(B),Er();let He=_t();S&&(fe=Dn(),He&&yF(He.getCompilerOptions(),ce)&&Le.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:ut,hasInvalidatedLibResolutions:Ft}=Le.createHasInvalidatedResolutions(be,ze),{originalReadFile:hn,originalFileExists:dn,originalDirectoryExists:un,originalCreateDirectory:U,originalWriteFile:Me,readFileWithCache:Nt}=Nw(Ae,Kn);return mJ(Je(),B,ce,k=>Li(k,Nt),k=>Ae.fileExists(k),ut,Ft,Ur,vn,Z)?J&&(m&&Qn(f.File_change_detected_Starting_incremental_compilation),t=Y(void 0,void 0,Ae,t,ge,Z),J=!1):(m&&Qn(f.File_change_detected_Starting_incremental_compilation),Zt(ut,Ft)),m=!1,e.afterProgramCreate&&He!==t&&e.afterProgramCreate(t),Ae.readFile=hn,Ae.fileExists=dn,Ae.directoryExists=un,Ae.createDirectory=U,Ae.writeFile=Me,t}function Zt(He,ut){Ce("CreatingProgramWith::"),Ce(` roots: ${JSON.stringify(B)}`),Ce(` options: ${JSON.stringify(ce)}`),Z&&Ce(` projectReferences: ${JSON.stringify(Z)}`);let Ft=S||!Je();S=!1,J=!1,Le.startCachingPerDirectoryResolution(),Ae.hasInvalidatedResolutions=He,Ae.hasInvalidatedLibResolutions=ut,Ae.hasChangedAutomaticTypeDirectiveNames=Ur;let hn=Je();if(t=Y(B,ce,Ae,t,ge,Z),Le.finishCachingPerDirectoryResolution(t.getProgram(),hn),QK(t.getProgram(),i||(i=new Map),ae),Ft&&Le.updateTypeRootsWatch(),E){for(let dn of E)i.has(dn)||y.delete(dn);E=void 0}}function en(He){x.assert(!D,"Cannot update root file names with config file watch mode"),B=He,Ot()}function Dn(){return wy(ce||w)}function Kn(He){return tl(He,N,Ge)}function pn(He){return typeof He=="boolean"}function Xt(He){return typeof He.version=="boolean"}function Kt(He){let ut=Kn(He);return pn(y.get(ut))?!1:pe.fileExists(He)}function hi(He,ut,Ft,hn,dn){let un=y.get(ut);if(pn(un))return;let U=typeof Ft=="object"?Ft.impliedNodeFormat:void 0;if(un===void 0||dn||Xt(un)||un.sourceFile.impliedNodeFormat!==U){let Me=De(He,Ft,hn);if(un)Me?(un.sourceFile=Me,un.version=Me.version,un.fileWatcher||(un.fileWatcher=ct(ut,He,lt,250,z,kc.SourceFile))):(un.fileWatcher&&un.fileWatcher.close(),y.set(ut,!1));else if(Me){let Nt=ct(ut,He,lt,250,z,kc.SourceFile);y.set(ut,{sourceFile:Me,version:Me.version,fileWatcher:Nt})}else y.set(ut,!1);return Me}return un.sourceFile}function uo(He){let ut=y.get(He);ut!==void 0&&(pn(ut)?y.set(He,{version:!1}):ut.version=!1)}function Li(He,ut){let Ft=y.get(He);if(!Ft)return;if(Ft.version)return Ft.version;let hn=ut(He);return hn!==void 0?gz(Ae,hn):void 0}function So(He,ut,Ft){let hn=y.get(He.resolvedPath);hn!==void 0&&(pn(hn)?(E||(E=[])).push(He.path):hn.sourceFile===He&&(hn.fileWatcher&&hn.fileWatcher.close(),y.delete(He.resolvedPath),Ft||Le.removeResolutionsOfFile(He.path)))}function Qn(He){e.onWatchStatusChange&&e.onWatchStatusChange(jl(He),fe,ce||w)}function Ur(){return Le.hasChangedAutomaticTypeDirectiveNames()}function Er(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function on(){if(!e.setTimeout||!e.clearTimeout)return Le.invalidateResolutionsOfFailedLookupLocations();let He=Er();Ce(`Scheduling invalidateFailedLookup${He?", Cancelled earlier one":""}`),l=e.setTimeout(Ye,250,"timerToInvalidateFailedLookupResolutions")}function Ye(){l=void 0,Le.invalidateResolutionsOfFailedLookupLocations()&&Ot()}function Ot(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Ce("Scheduling update"),s=e.setTimeout(si,250,"timerToUpdateProgram"))}function In(){x.assert(!!D),r=2,Ot()}function si(){s=void 0,m=!0,yi()}function yi(){var He,ut,Ft,hn;switch(r){case 1:(He=nu)==null||He.logStartUpdateProgram("PartialConfigReload"),$i();break;case 2:(ut=nu)==null||ut.logStartUpdateProgram("FullConfigReload"),Io();break;default:(Ft=nu)==null||Ft.logStartUpdateProgram("SynchronizeProgram"),pt();break}return(hn=nu)==null||hn.logStopUpdateProgram("Done"),_t()}function $i(){Ce("Reloading new file names and options"),x.assert(ce),x.assert(D),r=0,B=TP(ce.configFile.configFileSpecs,ho(oi(D),N),ce,xe,K),s3(B,ho(D,N),ce.configFile.configFileSpecs,ge,q)&&(J=!0),pt()}function Io(){x.assert(D),Ce(`Reloading config file: ${D}`),r=0,re&&re.clearCache(),ua(),S=!0,pt(),st(),et(Kn(D),ce,z,kc.ExtendedConfigFile)}function ua(){x.assert(D),Ba(Qk(D,w,xe,h||(h=new Map),j,K))}function Ba(He){B=He.fileNames,ce=He.options,z=He.watchOptions,Z=He.projectReferences,me=He.wildcardDirectories,ge=KT(He).slice(),q=SP(He.raw),J=!0}function vn(He){let ut=Kn(He),Ft=d?.get(ut);if(Ft){if(!Ft.updateLevel)return Ft.parsedCommandLine;if(Ft.parsedCommandLine&&Ft.updateLevel===1&&!e.getParsedCommandLine){Ce("Reloading new file names and options"),x.assert(ce);let dn=TP(Ft.parsedCommandLine.options.configFile.configFileSpecs,ho(oi(He),N),ce,xe);return Ft.parsedCommandLine={...Ft.parsedCommandLine,fileNames:dn},Ft.updateLevel=void 0,Ft.parsedCommandLine}}Ce(`Loading config file: ${He}`);let hn=e.getParsedCommandLine?e.getParsedCommandLine(He):kn(He);return Ft?(Ft.parsedCommandLine=hn,Ft.updateLevel=void 0):(d||(d=new Map)).set(ut,Ft={parsedCommandLine:hn}),Tt(He,ut,Ft),hn}function kn(He){let ut=xe.onUnRecoverableConfigFileDiagnostic;xe.onUnRecoverableConfigFileDiagnostic=qa;let Ft=Qk(He,void 0,xe,h||(h=new Map),j);return xe.onUnRecoverableConfigFileDiagnostic=ut,Ft}function Be(He){var ut;let Ft=Kn(He),hn=d?.get(Ft);hn&&(d.delete(Ft),hn.watchedDirectories&&$u(hn.watchedDirectories,Rf),(ut=hn.watcher)==null||ut.close(),$K(Ft,p))}function ct(He,ut,Ft,hn,dn,un){return ne(ut,(U,Me)=>Ft(U,Me,He),hn,dn,un)}function lt(He,ut,Ft){Rt(He,Ft,ut),ut===2&&y.has(Ft)&&Le.invalidateResolutionOfFile(Ft),uo(Ft),Ot()}function Rt(He,ut,Ft){re&&re.addOrDeleteFile(He,ut,Ft)}function ae(He,ut){return d?.has(He)?iD:ct(He,ut,ke,500,z,kc.MissingFile)}function ke(He,ut,Ft){Rt(He,Ft,ut),ut===0&&i.has(Ft)&&(i.get(Ft).close(),i.delete(Ft),uo(Ft),Ot())}function st(){Rw(o||(o=new Map),me,G)}function G(He,ut){return he(He,Ft=>{x.assert(D),x.assert(ce);let hn=Kn(Ft);re&&re.addOrDeleteFileOrDirectory(Ft,hn),uo(hn),!Dw({watchedDirPath:Kn(He),fileOrDirectory:Ft,fileOrDirectoryPath:hn,configFileName:D,extraFileExtensions:K,options:ce,program:_t()||B,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Kn})&&r!==2&&(r=1,Ot())},ut,z,kc.WildcardDirectory)}function et(He,ut,Ft,hn){Q3(He,ut,p||(p=new Map),(dn,un)=>ne(dn,(U,Me)=>{var Nt;Rt(dn,un,Me),h&&Z3(h,un,Kn);let k=(Nt=p.get(un))==null?void 0:Nt.projects;k?.size&&k.forEach(ie=>{if(D&&Kn(D)===ie)r=2;else{let H=d?.get(ie);H&&(H.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(ie)}Ot()})},2e3,Ft,hn),Kn)}function Tt(He,ut,Ft){var hn,dn,un,U;Ft.watcher||(Ft.watcher=ne(He,(Me,Nt)=>{Rt(He,ut,Nt);let k=d?.get(ut);k&&(k.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(ut),Ot()},2e3,((hn=Ft.parsedCommandLine)==null?void 0:hn.watchOptions)||z,kc.ConfigFileOfReferencedProject)),Rw(Ft.watchedDirectories||(Ft.watchedDirectories=new Map),(dn=Ft.parsedCommandLine)==null?void 0:dn.wildcardDirectories,(Me,Nt)=>{var k;return he(Me,ie=>{let H=Kn(ie);re&&re.addOrDeleteFileOrDirectory(ie,H),uo(H);let ue=d?.get(ut);ue?.parsedCommandLine&&(Dw({watchedDirPath:Kn(Me),fileOrDirectory:ie,fileOrDirectoryPath:H,configFileName:He,options:ue.parsedCommandLine.options,program:ue.parsedCommandLine.fileNames,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Kn})||ue.updateLevel!==2&&(ue.updateLevel=1,Ot()))},Nt,((k=Ft.parsedCommandLine)==null?void 0:k.watchOptions)||z,kc.WildcardDirectoryOfReferencedProject)}),et(ut,(un=Ft.parsedCommandLine)==null?void 0:un.options,((U=Ft.parsedCommandLine)==null?void 0:U.watchOptions)||z,kc.ExtendedConfigOfReferencedProject)}}var tje=bt({"src/compiler/watchPublic.ts"(){"use strict";ea()}});function UJ(e){return Sl(e,".json")?e:Yr(e,"tsconfig.json")}var HJ,nje=bt({"src/compiler/tsbuild.ts"(){"use strict";ea(),HJ=(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))(HJ||{})}});function rje(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function Sce(e,t){return rje(e,t,()=>new Map)}function Ww(e){return e.now?e.now():new Date}function h1(e){return!!e&&!!e.buildOrder}function Ez(e){return h1(e)?e.buildOrder:e}function Tce(e,t){return r=>{let i=t?`[${iS(Ow(e),"\x1B[90m")}] `:`${Ow(e)} - `;i+=`${k_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function N1e(e,t,r,i){let o=VJ(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):Jb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):qa,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):qa,o.reportDiagnostic=r||ww(e),o.reportSolutionBuilderStatus=i||Tce(e),o.now=ta(e,e.now),o}function P1e(e=hd,t,r,i,o){let s=N1e(e,t,r,i);return s.reportErrorSummary=o,s}function M1e(e=hd,t,r,i,o){let s=N1e(e,t,r,i),l=zJ(e,o);return GG(s,l),s}function ije(e){let t={};return ow.forEach(r=>{Ss(e,r.name)&&(t[r.name]=e[r.name])}),t}function L1e(e,t,r){return rxe(!1,e,t,r)}function k1e(e,t,r,i){return rxe(!0,e,t,r,i)}function oje(e,t,r,i,o){let s=t,l=t,d=ije(i),p=GJ(s,()=>N.projectCompilerOptions);yz(p),p.getParsedCommandLine=D=>g1(N,D,w_(N,D)),p.resolveModuleNameLiterals=ta(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=ta(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=ta(s,s.resolveLibrary),p.resolveModuleNames=ta(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=ta(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=ta(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=HR(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(D,w,j,K,Y)=>Mw(D,w,j,K,Y,s,h,dJ),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=b3(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache(),h?.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(D,w,j,K,Y)=>Mw(D,w,j,K,Y,s,m,tz));let y;p.resolveLibrary||(y=HR(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache()),p.resolveLibrary=(D,w,j)=>E3(D,w,j,s,y)),p.getBuildInfo=(D,w)=>q1e(N,D,w_(N,w),void 0);let{watchFile:E,watchDirectory:S,writeLog:A}=BJ(l,i),N={host:s,hostWithWatch:l,parseConfigFileHost:az(s),write:ta(s,s.trace),options:i,baseCompilerOptions:d,rootNames:r,baseWatchOptions:o,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:p,moduleResolutionCache:h,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:D=>s.readFile(D),projectCompilerOptions:d,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:E,watchDirectory:S,writeLog:A};return N}function Df(e,t){return tl(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function w_(e,t){let{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;let o=Df(e,t);return r.set(t,o),o}function w1e(e){return!!e.options}function aje(e,t){let r=e.configFileCache.get(t);return r&&w1e(r)?r:void 0}function g1(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return w1e(o)?o:void 0;el("SolutionBuilder::beforeConfigFileParsing");let s,{parseConfigFileHost:l,baseCompilerOptions:d,baseWatchOptions:p,extendedConfigCache:h,host:m}=e,y;return m.getParsedCommandLine?(y=m.getParsedCommandLine(t),y||(s=jl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,y=Qk(t,d,l,h,p),l.onUnRecoverableConfigFileDiagnostic=qa),i.set(r,y||s),el("SolutionBuilder::afterConfigFileParsing"),Xp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function jP(e,t){return UJ(Av(e.compilerHost.getCurrentDirectory(),t))}function O1e(e,t){let r=new Map,i=new Map,o=[],s,l;for(let p of t)d(p);return l?{buildOrder:s||Xe,circularDiagnostics:l}:s||Xe;function d(p,h){let m=w_(e,p);if(i.has(m))return;if(r.has(m)){h||(l||(l=[])).push(jl(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r `)));return}r.set(m,!0),o.push(p);let y=g1(e,p,m);if(y&&y.projectReferences)for(let E of y.projectReferences){let S=jP(e,E.path);d(S,h||E.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function Sz(e){return e.buildOrder||sje(e)}function sje(e){let t=O1e(e,e.rootNames.map(o=>jP(e,o)));e.resolvedConfigFilePaths.clear();let r=new Set(Ez(t).map(o=>w_(e,o))),i={onDeleteValue:qa};return eg(e.configFileCache,r,i),eg(e.projectStatus,r,i),eg(e.builderPrograms,r,i),eg(e.diagnostics,r,i),eg(e.projectPendingBuild,r,i),eg(e.projectErrorsReported,r,i),eg(e.buildInfoCache,r,i),eg(e.outputTimeStamps,r,i),eg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(eg(e.allWatchedConfigFiles,r,{onDeleteValue:Hm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),eg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Rf)}),eg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Hm)}),eg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Hm)})),e.buildOrder=t}function W1e(e,t,r){let i=t&&jP(e,t),o=Sz(e);if(h1(o))return o;if(i){let l=w_(e,i);if(Kl(o,p=>w_(e,p)===l)===-1)return}let s=i?O1e(e,[i]):o;return x.assert(!h1(s)),x.assert(!r||i!==void 0),x.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function F1e(e){e.cache&&Ace(e);let{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:d,originalCreateDirectory:p,originalWriteFile:h,getSourceFileWithCache:m,readFileWithCache:y}=Nw(r,E=>Df(e,E),(...E)=>o.call(t,...E));e.readFileWithCache=y,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:d,originalCreateDirectory:p,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:o}}function Ace(e){if(!e.cache)return;let{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:d}=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,o.clear(),s?.clear(),l?.clear(),d?.clear(),e.cache=void 0}function z1e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function B1e({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(w_(e,i),0)),t&&t.throwIfCancellationRequested()}function V1e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function lje(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{Y1e(e,i,r),s=!1},done:()=>(s&&Y1e(e,i,r),el("SolutionBuilder::Timestamps only updates"),V1e(e,r))}}function j1e(e,t,r,i,o,s,l){let d=e===0?0:4,p,h,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>E(Qs),getProgram:()=>E(z=>z.getProgramOrUndefined()),getSourceFile:z=>E(Z=>Z.getSourceFile(z)),getSourceFiles:()=>S(z=>z.getSourceFiles()),getOptionsDiagnostics:z=>S(Z=>Z.getOptionsDiagnostics(z)),getGlobalDiagnostics:z=>S(Z=>Z.getGlobalDiagnostics(z)),getConfigFileParsingDiagnostics:()=>S(z=>z.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(z,Z)=>S(me=>me.getSyntacticDiagnostics(z,Z)),getAllDependencies:z=>S(Z=>Z.getAllDependencies(z)),getSemanticDiagnostics:(z,Z)=>S(me=>me.getSemanticDiagnostics(z,Z)),getSemanticDiagnosticsOfNextAffectedFile:(z,Z)=>E(me=>me.getSemanticDiagnosticsOfNextAffectedFile&&me.getSemanticDiagnosticsOfNextAffectedFile(z,Z)),emit:(z,Z,me,ge,q)=>{if(z||ge)return E(J=>{var re,pe;return J.emit(z,Z,me,ge,q||((pe=(re=t.host).getCustomTransformers)==null?void 0:pe.call(re,r)))});if(ce(2,me),d===5)return K(Z,me);if(d===3)return j(Z,me,q)},done:y}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(z,Z)=>d!==4?m:B(z,Z),done:y};function y(z,Z,me){return ce(8,z,Z,me),el(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),V1e(t,i)}function E(z){return ce(0),p&&z(p)}function S(z){return E(z)||Xe}function A(){var z,Z,me;if(x.assert(p===void 0),t.options.dry){Au(t,f.A_non_dry_build_would_build_project_0,r),h=1,d=7;return}if(t.options.verbose&&Au(t,f.Building_project_0,r),s.fileNames.length===0){UP(t,i,KT(s)),h=0,d=7;return}let{host:ge,compilerHost:q}=t;if(t.projectCompilerOptions=s.options,(z=t.moduleResolutionCache)==null||z.update(s.options),(Z=t.typeReferenceDirectiveResolutionCache)==null||Z.update(s.options),p=ge.createProgram(s.fileNames,s.options,q,dje(t,i,s),KT(s),s.projectReferences),t.watch){let J=(me=t.moduleResolutionCache)==null?void 0:me.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,J&&new Set(Wo(J.values(),re=>t.host.realpath&&(v3(re)||re.directoryExists)?t.host.realpath(Yr(re.packageDirectory,"package.json")):Yr(re.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}d++}function N(z,Z,me){z.length?{buildResult:h,step:d}=Rce(t,i,p,s,z,Z,me):d++}function D(z){x.assertIsDefined(p),N([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(z),...p.getGlobalDiagnostics(z),...p.getSyntacticDiagnostics(void 0,z)],8,"Syntactic")}function w(z){N(x.checkDefined(p).getSemanticDiagnostics(void 0,z),16,"Semantic")}function j(z,Z,me){var ge,q,J;x.assertIsDefined(p),x.assert(d===3);let re=p.saveEmitState(),pe,xe=ze=>(pe||(pe=[])).push(ze),fe=[],{emitResult:ne}=hz(p,xe,void 0,void 0,(ze,tt,Wt,_t,Je,pt)=>fe.push({name:ze,text:tt,writeByteOrderMark:Wt,data:pt}),Z,!1,me||((q=(ge=t.host).getCustomTransformers)==null?void 0:q.call(ge,r)));if(pe)return p.restoreEmitState(re),{buildResult:h,step:d}=Rce(t,i,p,s,pe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ne.diagnostics};let{host:he,compilerHost:Ce}=t,Ge=(J=p.hasChangedEmitSignature)!=null&&J.call(p)?0:2,ve=cR(),Ae=new Map,De=p.getCompilerOptions(),Le=eP(De),Et,be;return fe.forEach(({name:ze,text:tt,writeByteOrderMark:Wt,data:_t})=>{let Je=Df(t,ze);Ae.set(Df(t,ze),ze),_t?.buildInfo&&Cce(t,_t.buildInfo,i,De,Ge);let pt=_t?.differsOnlyInMap?fI(t.host,ze):void 0;xN(z?{writeFile:z}:Ce,ve,ze,tt,Wt),_t?.differsOnlyInMap?t.host.setModifiedTime(ze,pt):!Le&&t.watch&&(Et||(Et=Dce(t,i))).set(Je,be||(be=Ww(t.host)))}),Y(ve,Ae,fe.length?fe[0].name:qK(s,!he.useCaseSensitiveFileNames()),Ge),ne}function K(z,Z){x.assertIsDefined(p),x.assert(d===5);let me=p.emitBuildInfo((ge,q,J,re,pe,xe)=>{xe?.buildInfo&&Cce(t,xe.buildInfo,i,p.getCompilerOptions(),2),z?z(ge,q,J,re,pe,xe):t.compilerHost.writeFile(ge,q,J,re,pe,xe)},Z);return me.diagnostics.length&&(Az(t,me.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...me.diagnostics]),h=64&h),me.emittedFiles&&t.write&&me.emittedFiles.forEach(ge=>K1e(t,s,ge)),xce(t,p,s),d=7,me}function Y(z,Z,me,ge){let q=z.getDiagnostics();return q.length?({buildResult:h,step:d}=Rce(t,i,p,s,q,64,"Emit"),q):(t.write&&Z.forEach(J=>K1e(t,s,J)),X1e(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,Z),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:me}),xce(t,p,s),d=7,h=ge,q)}function B(z,Z){var me,ge,q,J;if(x.assert(e===1),t.options.dry){Au(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,d=7;return}t.options.verbose&&Au(t,f.Updating_output_of_project_0,r);let{compilerHost:re}=t;t.projectCompilerOptions=s.options,(ge=(me=t.host).beforeEmitBundle)==null||ge.call(me,s);let pe=Wle(s,re,Ge=>{let ve=jP(t,Ge.path);return g1(t,ve,w_(t,ve))},Z||((J=(q=t.host).getCustomTransformers)==null?void 0:J.call(q,r)));if(No(pe))return Au(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,ld(t,pe)),d=6,m=j1e(0,t,r,i,o,s,l);x.assert(!!pe.length);let xe=cR(),fe=new Map,ne=2,he=t.buildInfoCache.get(i).buildInfo||void 0;return pe.forEach(({name:Ge,text:ve,writeByteOrderMark:Ae,data:De})=>{var Le,Et;fe.set(Df(t,Ge),Ge),De?.buildInfo&&(((Le=De.buildInfo.program)==null?void 0:Le.outSignature)!==((Et=he?.program)==null?void 0:Et.outSignature)&&(ne&=-3),Cce(t,De.buildInfo,i,s.options,ne)),xN(z?{writeFile:z}:re,xe,Ge,ve,Ae)}),{emitSkipped:!1,diagnostics:Y(xe,fe,pe[0].name,ne)}}function ce(z,Z,me,ge){for(;d<=z&&d<8;){let q=d;switch(d){case 0:A();break;case 1:D(Z);break;case 2:w(Z);break;case 3:j(me,Z,ge);break;case 5:K(me,Z);break;case 4:B(me,ge);break;case 6:x.checkDefined(m).done(Z,me,ge),d=8;break;case 7:mje(t,r,i,o,s,l,x.checkDefined(h)),d++;break;case 8:default:}x.assert(d>q)}}}function cje({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!KT(r).length||!eP(r.options)}function U1e(e,t,r){if(!e.projectPendingBuild.size||h1(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s{let S=x.checkDefined(e.filesWatched.get(d));x.assert(KJ(S)),S.modifiedTime=E,S.callbacks.forEach(A=>A(m,y,E))},i,o,s,l);e.filesWatched.set(d,{callbacks:[r],watcher:h,modifiedTime:p})}return{close:()=>{let h=x.checkDefined(e.filesWatched.get(d));x.assert(KJ(h)),h.callbacks.length===1?(e.filesWatched.delete(d),Rf(h)):uI(h.callbacks,r)}}}function Dce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function Cce(e,t,r,i,o){let s=Vy(i),l=Nce(e,s,r),d=Ww(e.host);l?(l.buildInfo=t,l.modifiedTime=d,o&2||(l.latestChangedDtsTime=d)):e.buildInfoCache.set(r,{path:Df(e,s),buildInfo:t,modifiedTime:d,latestChangedDtsTime:o&2?void 0:d})}function Nce(e,t,r){let i=Df(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function q1e(e,t,r,i){let o=Df(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;let l=e.readFileWithCache(t),d=l?X3(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:d||!1,modifiedTime:i||Mp}),d}function Pce(e,t,r,i){let o=J1e(e,t);if(rD&&(N=q,D=J),S&&j.add(Df(e,q))}if(S){A||(A=IJ(S,h,p));for(let q of A.roots)if(!j.has(q))return{type:10,buildInfoFile:h,inputFile:q}}if(!h){let q=J3(t,!p.useCaseSensitiveFileNames()),J=Dce(e,r);for(let re of q){let pe=Df(e,re),xe=J?.get(pe);if(xe||(xe=fI(e.host,re),J?.set(pe,xe)),xe===Mp)return{type:4,missingOutputFileName:re};if(xePce(e,q,y,m));if(Z)return Z;let me=e.lastCachedPackageJsonLookups.get(r),ge=me&&dh(me,q=>Pce(e,q,y,m));return ge||(B&&Y?{type:3,outOfDateOutputFileName:m,newerProjectName:ce}:{type:Y?2:w?15:1,newestInputFileTime:D,newestInputFileName:N,oldestOutputFileName:m})}function pje(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Mce(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};let i=e.projectStatus.get(r);if(i!==void 0)return i;el("SolutionBuilder::beforeUpToDateCheck");let o=uje(e,t,r);return el("SolutionBuilder::afterUpToDateCheck"),Xp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function X1e(e,t,r,i,o){if(t.options.noEmit)return;let s,l=Vy(t.options);if(l){o?.has(Df(e,l))||(e.options.verbose&&Au(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Ww(e.host)),Nce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:d}=e,p=J3(t,!d.useCaseSensitiveFileNames()),h=Dce(e,r),m=h?new Set:void 0;if(!o||p.length!==o.size){let y=!!e.options.verbose;for(let E of p){let S=Df(e,E);o?.has(S)||(y&&(y=!1,Au(e,i,t.options.configFilePath)),d.setModifiedTime(E,s||(s=Ww(e.host))),h&&(h.set(S,s),m.add(S)))}}h?.forEach((y,E)=>{!o?.has(E)&&!m.has(E)&&h.delete(E)})}function fje(e,t,r){if(!t.composite)return;let i=x.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(ho(i.buildInfo.program.latestChangedDtsFile,oi(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function Y1e(e,t,r){if(e.options.dry)return Au(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);X1e(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:qK(t,!e.host.useCaseSensitiveFileNames())})}function mje(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let d=i+1;de.diagnostics.has(w_(e,h)))?p?2:1:0}function Q1e(e,t,r){el("SolutionBuilder::beforeClean");let i=hje(e,t,r);return el("SolutionBuilder::afterClean"),Xp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function hje(e,t,r){let i=W1e(e,t,r);if(!i)return 3;if(h1(i))return Az(e,i.circularDiagnostics),4;let{options:o,host:s}=e,l=o.dry?[]:void 0;for(let d of i){let p=w_(e,d),h=g1(e,d,p);if(h===void 0){ixe(e,p);continue}let m=J3(h,!s.useCaseSensitiveFileNames());if(!m.length)continue;let y=new Set(h.fileNames.map(E=>Df(e,E)));for(let E of m)y.has(Df(e,E))||s.fileExists(E)&&(l?l.push(E):(s.deleteFile(E),Lce(e,p,0)))}return l&&Au(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(d=>`\r * ${d}`).join("")),0}function Lce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,z1e(e,t),B1e(e,t,r),F1e(e)}function Tz(e,t,r){e.reportFileChangeDetected=!0,Lce(e,t,r),Z1e(e,250,!0)}function Z1e(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(gje,t,"timerToBuildInvalidatedProject",e,r))}function gje(e,t,r){el("SolutionBuilder::beforeBuild");let i=yje(t,r);el("SolutionBuilder::afterBuild"),Xp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&oxe(t,i)}function yje(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Oce(e,f.File_change_detected_Starting_incremental_compilation));let r=0,i=Sz(e),o=Ice(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=U1e(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){Z1e(e,100,!1);return}H1e(e,s,i).done(),s.kind!==2&&r++}return Ace(e),i}function exe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,JJ(e,t,()=>Tz(e,r,2),2e3,i?.watchOptions,kc.ConfigFile,t))}function txe(e,t,r){Q3(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>JJ(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>Tz(e,l,2))},2e3,r?.watchOptions,kc.ExtendedConfigFile),i=>Df(e,i))}function nxe(e,t,r,i){e.watch&&Rw(Sce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var d;Dw({watchedDirPath:Df(e,o),fileOrDirectory:l,fileOrDirectoryPath:Df(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((d=aje(e,r))==null?void 0:d.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Df(e,p)})||Tz(e,r,1)},s,i?.watchOptions,kc.WildcardDirectory,t))}function kce(e,t,r,i){e.watch&&WN(Sce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>JJ(e,o,()=>Tz(e,r,0),250,i?.watchOptions,kc.SourceFile,t),onDeleteValue:Hm})}function wce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||WN(Sce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>JJ(e,o,()=>Tz(e,r,0),2e3,i?.watchOptions,kc.PackageJson,t),onDeleteValue:Hm})}function vje(e,t){if(e.watchAllProjectsPending){el("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of Ez(t)){let i=w_(e,r),o=g1(e,r,i);exe(e,r,i,o),txe(e,i,o),o&&(nxe(e,r,i,o),kce(e,r,i,o),wce(e,r,i,o))}el("SolutionBuilder::afterWatcherCreation"),Xp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function bje(e){$u(e.allWatchedConfigFiles,Hm),$u(e.allWatchedExtendedConfigFiles,Rf),$u(e.allWatchedWildcardDirectories,t=>$u(t,Rf)),$u(e.allWatchedInputFiles,t=>$u(t,Hm)),$u(e.allWatchedPackageJsonFiles,t=>$u(t,Hm))}function rxe(e,t,r,i,o){let s=oje(e,t,r,i,o);return{build:(l,d,p,h)=>$1e(s,l,d,p,h),clean:l=>Q1e(s,l),buildReferences:(l,d,p,h)=>$1e(s,l,d,p,h,!0),cleanReferences:l=>Q1e(s,l,!0),getNextInvalidatedProject:l=>(G1e(s,l),Ice(s,Sz(s),!1)),getBuildOrder:()=>Sz(s),getUpToDateStatusOfProject:l=>{let d=jP(s,l),p=w_(s,d);return Mce(s,g1(s,d,p),p)},invalidateProject:(l,d)=>Lce(s,l,d||0),close:()=>bje(s)}}function ld(e,t){return JC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Au(e,t,...r){e.host.reportSolutionBuilderStatus(jl(t,...r))}function Oce(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,jl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function Az({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function UP(e,t,r){Az(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ixe(e,t){UP(e,t,[e.configFileCache.get(t)])}function oxe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];h1(t)?(axe(e,t.buildOrder),Az(e,t.circularDiagnostics),r&&(o+=mz(t.circularDiagnostics)),r&&(s=[...s,..._z(t.circularDiagnostics)])):(t.forEach(l=>{let d=w_(e,l);e.projectErrorsReported.has(d)||Az(e,i.get(d)||Xe)}),r&&i.forEach(l=>o+=mz(l)),r&&i.forEach(l=>[...s,..._z(l)])),e.watch?Oce(e,MJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function axe(e,t){e.options.verbose&&Au(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r * `+ld(e,r)).join(""))}function Eje(e,t,r){switch(r.type){case 6:return Au(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ld(e,t),ld(e,r.outOfDateOutputFileName),ld(e,r.newerInputFileName));case 7:return Au(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ld(e,t),ld(e,r.outOfDateOutputFileName),ld(e,r.newerProjectName));case 4:return Au(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,ld(e,t),ld(e,r.missingOutputFileName));case 5:return Au(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,ld(e,t),ld(e,r.fileName));case 8:return Au(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,ld(e,t),ld(e,r.buildInfoFile));case 9:return Au(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,ld(e,t),ld(e,r.buildInfoFile));case 10:return Au(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,ld(e,t),ld(e,r.buildInfoFile),ld(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Au(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,ld(e,t),ld(e,r.newestInputFileName||""),ld(e,r.oldestOutputFileName||""));break;case 3:return Au(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,ld(e,t),ld(e,r.newerProjectName));case 2:return Au(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,ld(e,t));case 15:return Au(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,ld(e,t));case 11:return Au(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,ld(e,t),ld(e,r.upstreamProjectName));case 12:return Au(e,r.upstreamProjectBlocked?f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,ld(e,t),ld(e,r.upstreamProjectName));case 0:return Au(e,f.Failed_to_parse_file_0_Colon_1,ld(e,t),r.reason);case 14:return Au(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,ld(e,t),r.version,Jp);case 17:return Au(e,f.Project_0_is_being_forcibly_rebuilt,ld(e,t));case 16:case 13:break;default:}}function qJ(e,t,r){e.options.verbose&&Eje(e,t,r)}var sxe,lxe,XJ,Sje=bt({"src/compiler/tsbuildPublic.ts"(){"use strict";ea(),nT(),sxe=new Date(-864e13),lxe=new Date(864e13),XJ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(XJ||{})}}),ea=bt({"src/compiler/_namespaces/ts.ts"(){"use strict";Aze(),Lze(),kze(),Uze(),Jze(),qze(),o7e(),CEe(),m7e(),v7e(),b7e(),I7e(),P7e(),CBe(),NBe(),PBe(),MBe(),zBe(),BBe(),GBe(),VBe(),_5e(),h5e(),x5e(),U5e(),hGe(),SGe(),TGe(),WGe(),jGe(),$Ge(),i9e(),g9e(),y9e(),R9e(),D9e(),C9e(),O9e(),W9e(),F9e(),z9e(),B9e(),G9e(),V9e(),j9e(),U9e(),J9e(),q9e(),X9e(),Y9e(),$9e(),Z9e(),eVe(),tVe(),nVe(),rVe(),iVe(),dVe(),hVe(),xVe(),DVe(),MVe(),LVe(),kVe(),JVe(),qVe(),$Ve(),eje(),tje(),nje(),Sje(),zse(),nT()}});function cxe(e){return hd.args.includes(e)}function dxe(e){let t=hd.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"})($J||($J={})),Wce=` `}}),Aje=bt({"src/jsTyping/types.ts"(){"use strict"}}),Dz=bt({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";Tje(),Aje()}});function pxe(e,t){return new fm(_W(t,`ts${g_}`)||_W(t,"latest")).compareTo(e.version)<=0}function fxe(e){return Vce.has(e)?"node":e}function Ije(e,t){let r=Zk(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function xje(e,t){var r;let i=Zk(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function Rje(e,t,r,i,o,s,l,d,p,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let m=new Map;r=to(r,Y=>{let B=ma(Y);if(O0(B))return B});let y=[];l.include&&w(l.include,"Explicitly included types");let E=l.exclude||[];if(!h.types){let Y=new Set(r.map(oi));Y.add(i),Y.forEach(B=>{j(B,"bower.json","bower_components",y),j(B,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||K(r),d){let Y=m0(d.map(fxe),eT,Vd);w(Y,"Inferred typings from unresolved imports")}for(let Y of E)m.delete(Y)&&t&&t(`Typing for ${Y} is in exclude list, will be ignored.`);s.forEach((Y,B)=>{let ce=p.get(B);m.get(B)===!1&&ce!==void 0&&pxe(Y,ce)&&m.set(B,Y.typingLocation)});let S=[],A=[];m.forEach((Y,B)=>{Y?A.push(Y):S.push(B)});let N={cachedTypingPaths:A,newTypingNames:S,filesToWatch:y};return t&&t(`Finished typings discovery:${xE(N)}`),N;function D(Y){m.has(Y)||m.set(Y,!1)}function w(Y,B){t&&t(`${B}: ${JSON.stringify(Y)}`),gn(Y,D)}function j(Y,B,ce,z){let Z=Yr(Y,B),me,ge;e.fileExists(Z)&&(z.push(Z),me=Zk(Z,pe=>e.readFile(pe)).config,ge=va([me.dependencies,me.devDependencies,me.optionalDependencies,me.peerDependencies],Vh),w(ge,`Typing names in '${Z}' dependencies`));let q=Yr(Y,ce);if(z.push(q),!e.directoryExists(q))return;let J=[],re=ge?ge.map(pe=>Yr(q,pe,B)):e.readDirectory(q,[".json"],void 0,void 0,3).filter(pe=>{if(nc(pe)!==B)return!1;let xe=zc(ma(pe)),fe=xe[xe.length-3][0]==="@";return fe&&ih(xe[xe.length-4])===ce||!fe&&ih(xe[xe.length-3])===ce});t&&t(`Searching for typing names in ${q}; all files: ${JSON.stringify(re)}`);for(let pe of re){let xe=ma(pe),ne=Zk(xe,Ce=>e.readFile(Ce)).config;if(!ne.name)continue;let he=ne.types||ne.typings;if(he){let Ce=ho(he,oi(xe));e.fileExists(Ce)?(t&&t(` Package '${ne.name}' provides its own types.`),m.set(ne.name,Ce)):t&&t(` Package '${ne.name}' provides its own types but they are missing.`)}else J.push(ne.name)}w(J," Found package names")}function K(Y){let B=to(Y,z=>{if(!O0(z))return;let Z=Eu(ih(nc(z))),me=UG(Z);return o.get(me)});B.length&&w(B,"Inferred typings from file names"),gt(Y,z=>Sl(z,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}}function Dje(e){return Fce(e,!0)}function Fce(e,t){if(!e)return 1;if(e.length>Uce)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let i=Fce(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=Fce(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function Cje(e,t){return typeof e=="object"?mxe(t,e.result,e.name,e.isScopeName):mxe(t,e,t,!1)}function mxe(e,t,r,i){let o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${Uce} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return x.fail();default:x.assertNever(t)}}var zce,Bce,Gce,Vce,jce,Uce,Nje=bt({"src/jsTyping/jsTyping.ts"(){"use strict";Gw(),Dz(),zce=["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"],Bce=zce.map(e=>`node:${e}`),Gce=[...zce,...Bce],Vce=new Set(Gce),jce=(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))(jce||{}),Uce=214}}),O_={};xa(O_,{NameValidationResult:()=>jce,discoverTypings:()=>Rje,isTypingUpToDate:()=>pxe,loadSafeList:()=>Ije,loadTypesMap:()=>xje,nodeCoreModuleList:()=>Gce,nodeCoreModules:()=>Vce,nonRelativeModuleNameForTypingCache:()=>fxe,prefixedNodeCoreModuleList:()=>Bce,renderPackageNameValidationFailure:()=>Cje,validatePackageName:()=>Dje});var Pje=bt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";Nje()}}),Gw=bt({"src/jsTyping/_namespaces/ts.ts"(){"use strict";ea(),Pje(),Dz()}});function Cz(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 Nz,QJ,ZJ,eq,Cf,tq,nq,rq,iq,oq,aq,sq,Hce,Vw,lq,cq,dq,uq,pq,fq,mq,_q,hq,Mje=bt({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(Nz||(Nz={})),QJ=(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))(QJ||{}),ZJ=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(ZJ||{}),eq=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(eq||{}),Cf={},tq=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(tq||{}),nq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(nq||{}),rq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(rq||{}),iq=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(iq||{}),oq=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(oq||{}),aq=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(aq||{}),sq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(sq||{}),Hce=Cz(` `),Vw=(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))(Vw||{}),lq=(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))(lq||{}),cq=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(cq||{}),dq=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(dq||{}),uq=(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))(uq||{}),pq=(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))(pq||{}),fq=(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))(fq||{}),mq=(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))(mq||{}),_q=(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))(_q||{}),hq=(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))(hq||{})}});function jw(e){switch(e.kind){case 260:return ir(e)&&bV(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 Md(e)||Vg(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 qT(e){e=Cq(e);let t=e.parent;return e.kind===312?1:Ll(t)||Kd(t)||vh(t)||Qu(t)||gh(t)||td(t)&&e===t.name?7:Pz(e)?Lje(e):kg(e)?jw(t):Xu(e)&&Fn(e,jm(_P,SI,gE))?7:Wje(e)?2:kje(e)?4:fl(t)?(x.assert(nm(t.parent)),2):Kv(t)?3:1}function Lje(e){let t=e.kind===166?e:Su(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function Pz(e){for(;e.parent.kind===166;)e=e.parent;return Qx(e.parent)&&e.parent.moduleReference===e}function kje(e){return wje(e)||Oje(e)}function wje(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 Oje(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){let 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 Wje(e){switch(MN(e)&&(e=e.parent),e.kind){case 110:return!Xh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return qh(e.parent)}return!1}function gq(e,t=!1,r=!1){return Uw(e,ia,vq,t,r)}function JP(e,t=!1,r=!1){return Uw(e,j0,vq,t,r)}function yq(e,t=!1,r=!1){return Uw(e,v_,vq,t,r)}function Kce(e,t=!1,r=!1){return Uw(e,U0,Fje,t,r)}function Jce(e,t=!1,r=!1){return Uw(e,bd,vq,t,r)}function qce(e,t=!1,r=!1){return Uw(e,au,zje,t,r)}function vq(e){return e.expression}function Fje(e){return e.tag}function zje(e){return e.tagName}function Uw(e,t,r,i,o){let s=i?Xce(e):Mz(e);return o&&(s=Yl(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function Mz(e){return aD(e)?e.parent:e}function Xce(e){return aD(e)||Tq(e)?e.parent:e}function Lz(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Hw(e,t){return kr(e.expression)?e.expression.name.text===t:!1}function Kw(e){var t;return Fe(e)&&((t=ri(e.parent,nN))==null?void 0:t.label)===e}function bq(e){var t;return Fe(e)&&((t=ri(e.parent,H0))==null?void 0:t.label)===e}function Eq(e){return bq(e)||Kw(e)}function Sq(e){var t;return((t=ri(e.parent,Bx))==null?void 0:t.tagName)===e}function Yce(e){var t;return((t=ri(e.parent,Su))==null?void 0:t.right)===e}function aD(e){var t;return((t=ri(e.parent,kr))==null?void 0:t.name)===e}function Tq(e){var t;return((t=ri(e.parent,Js))==null?void 0:t.argumentExpression)===e}function Aq(e){var t;return((t=ri(e.parent,ql))==null?void 0:t.name)===e}function Iq(e){var t;return Fe(e)&&((t=ri(e.parent,$o))==null?void 0:t.name)===e}function kz(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Po(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 $ce(e){return aE(e.parent.parent)&&hN(e.parent.parent)===e}function XT(e){for(qf(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 oS(e){switch(e.kind){case 312:return oc(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(A_(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:let{initializer:r}=e;return $o(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 $r(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=zl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=oS(o);return l===""?"const":l;case 3:return Ps(o)?"method":"property";case 4:return"property";case 5:return Ps(o)?"method":"property";case 6:return"local class";default:return""}case 80:return gh(e.parent)?"alias":"";case 277:let s=oS(e.expression);return s===""?"const":s;default:return""}function t(r){return Kx(r)?"const":NF(r)?"let":"var"}}function sD(e){switch(e.kind){case 110:return!0;case 80:return Bj(e)&&e.parent.kind===169;default:return!1}}function rm(e,t){let r=Dg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function rf(e,t){return xq(e.pos,e.end,t)}function Qce(e,t){return qw(e,t.pos)&&qw(e,t.end)}function Jw(e,t){return e.pos<=t&&t<=e.end}function qw(e,t){return e.pos=r.end}function Xw(e,t,r){return e.pos<=t&&e.end>=r}function qP(e,t,r){return Oz(e.pos,e.end,t,r)}function wz(e,t,r,i){return Oz(e.getStart(t),e.end,r,i)}function Oz(e,t,r,i){let o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function Wz(e){let t=Vr(e.parent.getChildren(),r=>OR(r)&&rf(r,e));return x.assert(!t||Bo(t.getChildren(),e)),t}function _xe(e){return e.kind===90}function Bje(e){return e.kind===86}function Gje(e){return e.kind===100}function Vje(e){if(iu(e))return e.name;if(Sc(e)){let t=e.modifiers&&Vr(e.modifiers,_xe);if(t)return t}if(Zc(e)){let t=Vr(e.getChildren(),Bje);if(t)return t}}function jje(e){if(iu(e))return e.name;if(Ec(e)){let t=Vr(e.modifiers,_xe);if(t)return t}if(Ps(e)){let t=Vr(e.getChildren(),Gje);if(t)return t}}function Uje(e){let t;return Fn(e,r=>(ji(r)&&(t=r),!Su(r.parent)&&!ji(r.parent)&&!lT(r.parent))),t}function Fz(e,t){if(e.flags&16777216)return;let r=r7(e,t);if(r)return r;let i=Uje(e);return i&&t.getTypeAtLocation(i)}function Hje(e,t){if(!t)switch(e.kind){case 263:case 231:return Vje(e);case 262:case 218:return jje(e);case 176:return e}if(iu(e))return e.name}function hxe(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(zg(e.importClause.namedBindings)){let r=nh(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Xv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function gxe(e,t){if(e.exportClause){if(xf(e.exportClause))return nh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(yh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Kje(e){if(e.types.length===1)return e.types[0].expression}function yxe(e,t){let{parent:r}=e;if(Sa(e)&&(t||e.kind!==90)?Am(r)&&Bo(r.modifiers,e):e.kind===86?Sc(r)||Zc(e):e.kind===100?Ec(r)||Ps(e):e.kind===120?pu(r):e.kind===94?hE(r):e.kind===156?Tm(r):e.kind===145||e.kind===144?ql(r):e.kind===102?td(r):e.kind===139?Qp(r):e.kind===153&&hp(r)){let i=Hje(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Uc(r)&&r.declarations.length===1){let i=r.declarations[0];if(Fe(i.name))return i.name}if(e.kind===156){if(gh(r)&&r.isTypeOnly){let i=hxe(r.parent,t);if(i)return i}if(Xl(r)&&r.isTypeOnly){let i=gxe(r,t);if(i)return i}}if(e.kind===130){if(Qu(r)&&r.propertyName||Kd(r)&&r.propertyName||Xv(r)||yh(r))return r.name;if(Xl(r)&&r.exportClause&&yh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Lc(r)){let i=hxe(r,t);if(i)return i}if(e.kind===95){if(Xl(r)){let i=gxe(r,t);if(i)return i}if(Ll(r))return Yl(r.expression)}if(e.kind===149&&vh(r))return r.expression;if(e.kind===161&&(Lc(r)||Xl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&Zp(r)&&r.token===e.kind){let i=Kje(r);if(i)return i}if(e.kind===96){if(fl(r)&&r.constraint&&If(r.constraint))return r.constraint.typeName;if(ZI(r)&&If(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&CT(r))return r.typeParameter.name;if(e.kind===103&&fl(r)&&CR(r.parent))return r.name;if(e.kind===143&&PT(r)&&r.operator===143&&If(r.type))return r.type.typeName;if(e.kind===148&&PT(r)&&r.operator===148&&kk(r.type)&&If(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&j0(r)||e.kind===116&&e1(r)||e.kind===114&&NR(r)||e.kind===135&&Jv(r)||e.kind===127&&z4(r)||e.kind===91&&pae(r))&&r.expression)return Yl(r.expression);if((e.kind===103||e.kind===104)&&dr(r)&&r.operatorToken===e)return Yl(r.right);if(e.kind===130&&Ok(r)&&If(r.type))return r.type.typeName;if(e.kind===103&&G4(r)||e.kind===165&&Wk(r))return Yl(r.expression)}return e}function Cq(e){return yxe(e,!1)}function zz(e){return yxe(e,!0)}function Wu(e,t){return lD(e,t,r=>T_(r)||wu(r.kind)||Ki(r))}function lD(e,t,r){return vxe(e,t,!1,r,!1)}function so(e,t){return vxe(e,t,!0,void 0,!1)}function vxe(e,t,r,i,o){let s=e,l;e:for(;;){let p=s.getChildren(e),h=lI(p,t,(m,y)=>y,(m,y)=>{let E=p[m].getEnd();if(Et?1:d(p[m],S,E)?p[m-1]&&d(p[m-1])?1:0:i&&S===t&&p[m-1]&&p[m-1].getEnd()===t&&d(p[m-1])?1:-1});if(l)return l;if(h>=0&&p[h]){s=p[h];continue e}return s}function d(p,h,m){if(m??(m=p.getEnd()),mt))return!1;if(tr.getStart(e)&&t(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&sde(s,r)?i(s):void 0)}}function Tc(e,t,r,i){let o=s(r||t);return x.assert(!(o&&Gz(o))),o;function s(l){if(bxe(l)&&l.kind!==1)return l;let d=l.getChildren(t),p=lI(d,e,(m,y)=>y,(m,y)=>e=d[m-1].end?0:1:-1);if(p>=0&&d[p]){let m=d[p];if(e=e||!sde(m,t)||Gz(m)){let S=nde(d,p,t,l.kind);return S?!i&&_F(S)&&S.getChildren(t).length?s(S):tde(S,t):void 0}else return s(m)}x.assert(r!==void 0||l.kind===312||l.kind===1||_F(l));let h=nde(d,d.length,t,l.kind);return h&&tde(h,t)}}function bxe(e){return gI(e)&&!Gz(e)}function tde(e,t){if(bxe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=nde(r,r.length,t,e.kind);return i&&tde(i,t)}function nde(e,t,r,i){for(let o=t-1;o>=0;o--){let s=e[o];if(Gz(s))o===0&&(i===12||i===285)&&x.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(sde(e[o],r))return e[o]}}function y1(e,t,r=Tc(t,e)){if(r&&DV(r)){let i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function ide(e,t){let r=so(e,t);return!!(UI(r)||r.kind===19&&fP(r.parent)&&ig(r.parent.parent)||r.kind===30&&au(r.parent)&&ig(r.parent.parent))}function Vz(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(so(e,t))}function jz(e,t,r){let i=da(e.kind),o=da(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)!!s.typeParameters&&s.typeParameters.length>=t)}function Mq(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=Tc(r.getFullStart(),t),r&&r.kind===29&&(r=Tc(r.getFullStart(),t)),!r||!Fe(r))return;if(!i)return kg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=jz(r,19,t),!r)return;break;case 22:if(r=jz(r,21,t),!r)return;break;case 24:if(r=jz(r,23,t),!r)return;break;case 28:o++;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(ji(r))break;return}r=Tc(r.getFullStart(),t)}}function jy(e,t,r){return wc.getRangeOfEnclosingComment(e,t,void 0,r)}function ade(e,t){let r=so(e,t);return!!Fn(r,Xm)}function sde(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function XP(e,t=0){let r=[],i=Hd(e)?hV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Al(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function lde(e){if(e.kind===183||e.kind===213)return e.typeArguments;if($o(e)||e.kind===263||e.kind===264)return e.typeParameters}function Uz(e){return e===2||e===3}function Lq(e){return!!(e===11||e===14||Dv(e))}function Exe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function cde(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(Exe(r,t[0],t[1])||Exe(r,t[1],t[0]))}function Qw(e,t,r){return Dv(e.kind)&&e.getStart(r){let r=rs(t);return!e[r]&&(e[r]=!0)}}function cD(e){return e.getText(0,e.getLength())}function tO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function fde(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function Gq(e){return!!e.module||ns(e)>=2||!!e.noEmit}function YT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ta(t,t.readFile),useCaseSensitiveFileNames:ta(t,t.useCaseSensitiveFileNames),getSymlinkCache:ta(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ta(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ta(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ta(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function Vq(e,t){return{...YT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function qz(e){return e===2||e>=3&&e<=99||e===100}function mde(e,t,r,i){return e||t&&t.length?Hy(e,t,r,i):void 0}function Hy(e,t,r,i,o){return L.createImportDeclaration(void 0,e||t?L.createImportClause(!!o,e,t&&t.length?L.createNamedImports(t):void 0):void 0,typeof r=="string"?b1(r,i):r,void 0)}function b1(e,t){return L.createStringLiteral(e,t===0)}function jq(e,t){return JF(e,t)?1:0}function of(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&Vr(e.imports,i=>Da(i)&&!Ks(i.parent));return r?jq(r,e):1}}function Uq(e){switch(e){case 0:return"'";case 1:return'"';default:return x.assertNever(e)}}function Xz(e){let t=Yz(e);return t===void 0?void 0:Vi(t)}function Yz(e){return e.escapedName!=="default"?e.escapedName:Wl(e.declarations,t=>{let r=Po(t);return r&&r.kind===80?r.escapedText:void 0})}function $z(e){return as(e)&&(vh(e.parent)||Lc(e.parent)||bu(e.parent,!1)&&e.parent.arguments[0]===e||Op(e.parent)&&e.parent.arguments[0]===e)}function rO(e){return Xa(e)&&tm(e.parent)&&Fe(e.name)&&!e.propertyName}function Qz(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function iO(e,t,r){if(e)for(;e.parent;){if(Yi(e.parent)||!Jje(r,e.parent,t))return e;e=e.parent}}function Jje(e,t,r){return _V(e,t.getStart(r))&&t.getEnd()<=Jl(e)}function dD(e,t){return Am(e)?Vr(e.modifiers,r=>r.kind===t):void 0}function $P(e,t,r,i,o){let l=(To(r)?r[0]:r).kind===243?pj:pT,d=jr(t.statements,l),p=To(r)?Rm.detectImportDeclarationSorting(r,o):3,h=Rm.getOrganizeImportsComparer(o,p===2),m=To(r)?vy(r,(y,E)=>Rm.compareImportsOrRequireStatements(y,E,h)):[r];if(!d.length)e.insertNodesAtTopOfFile(t,m,i);else if(d&&(p=Rm.detectImportDeclarationSorting(d,o))){let y=Rm.getOrganizeImportsComparer(o,p===2);for(let E of m){let S=Rm.getImportDeclarationInsertionIndex(d,E,y);if(S===0){let A=d[0]===t.statements[0]?{leadingTriviaOption:ur.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],E,!1,A)}else{let A=d[S-1];e.insertNodeAfter(t,A,E)}}}else{let y=$s(d);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function Hq(e,t){return x.assert(e.isTypeOnly),na(e.getChildAt(0,t),zq)}function uD(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Kq(e,t,r){return(r?eT:qb)(e.fileName,t.fileName)&&uD(e.textSpan,t.textSpan)}function Jq(e){return(t,r)=>Kq(t,r,e)}function qq(e,t){if(e){for(let r=0;rAo(r)?!0:Xa(r)||tm(r)||V0(r)?!1:"quit")}function qje(){let e=mk*10,t,r,i,o;m();let s=y=>d(y,17);return{displayParts:()=>{let y=t.length&&t[t.length-1].text;return o>e&&y&&y!=="..."&&(Cg(y.charCodeAt(y.length-1))||t.push(ep(" ",16)),t.push(ep("...",15))),t},writeKeyword:y=>d(y,5),writeOperator:y=>d(y,12),writePunctuation:y=>d(y,15),writeTrailingSemicolon:y=>d(y,15),writeSpace:y=>d(y,16),writeStringLiteral:y=>d(y,8),writeParameter:y=>d(y,13),writeProperty:y=>d(y,14),writeLiteral:y=>d(y,8),writeSymbol:p,writeLine:h,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ho,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){let y=r6(i);y&&(o+=y.length,t.push(ep(y,16))),r=!1}}function d(y,E){o>e||(l(),o+=y.length,t.push(ep(y,E)))}function p(y,E){o>e||(l(),o+=y.length,t.push(hde(y,E)))}function h(){o>e||(o+=1,t.push(pD()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function hde(e,t){return ep(e,r(t));function r(i){let o=i.flags;return o&3?Yq(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function ep(e,t){return{text:e,kind:Vw[t]}}function kl(){return ep(" ",16)}function vp(e){return ep(da(e),5)}function Xd(e){return ep(da(e),15)}function ZP(e){return ep(da(e),12)}function gde(e){return ep(e,13)}function yde(e){return ep(e,14)}function $q(e){let t=g0(e);return t===void 0?af(e):vp(t)}function af(e){return ep(e,17)}function vde(e){return ep(e,0)}function bde(e){return ep(e,18)}function e7(e){return ep(e,24)}function Ede(e,t){return{text:e,kind:Vw[23],target:{fileName:Gn(t).fileName,textSpan:Iu(t)}}}function Qq(e){return ep(e,22)}function Sde(e,t){var r;let i=vae(e)?"link":bae(e)?"linkcode":"linkplain",o=[Qq(`{@${i} `)];if(!e.name)e.text&&o.push(e7(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=s&&t?tX(s,t):void 0,d=Yje(e.text),p=uc(e.name)+e.text.slice(0,d),h=Xje(e.text.slice(d)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(Ede(p,m)),h&&o.push(e7(h));else{let y=d===0||e.text.charCodeAt(d)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(e7(p+y+h))}}return o.push(Qq("}")),o}function Xje(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function Ky(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||Pxe}function pD(){return ep(` `,6)}function tb(e){try{return e(yX),yX.displayParts()}finally{yX.clear()}}function oO(e,t,r,i=0){return tb(o=>{e.writeType(t,r,i|1024|16384,o)})}function eM(e,t,r,i,o=0){return tb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function Zq(e,t,r,i=0){return i|=25632,tb(o=>{e.writeSignature(t,r,i,void 0,o)})}function Txe(e,t){let r=t.getSourceFile();return tb(i=>{xw().writeNode(4,e,r,i)})}function Tde(e){return!!e.parent&&yI(e.parent)&&e.parent.propertyName===e}function eX(e,t){return L6(e,t.getScriptKind&&t.getScriptKind(e))}function tX(e,t){let r=e;for(;$je(r)||ch(r)&&r.links.target;)ch(r)&&r.links.target?r=r.links.target:r=vd(r,t);return r}function $je(e){return(e.flags&2097152)!==0}function Ade(e,t){return ba(vd(e,t))}function Ide(e,t){for(;Cg(e.charCodeAt(t));)t+=1;return t}function t7(e,t){for(;t>-1&&y_(e.charCodeAt(t));)t-=1;return t+1}function ol(e,t=!0){let r=e&&Axe(e);return r&&!t&&bp(r),r}function aO(e,t,r){let i=r(e);return i?xr(i,e):i=Axe(e,r),i&&!t&&bp(i),i}function Axe(e,t){let r=t?s=>aO(s,!0,t):ol,o=Sn(e,r,void 0,t?s=>s&&nX(s,!0,t):s=>s&&sS(s),r);if(o===e){let s=Da(e)?xr(L.createStringLiteralFromNode(e),e):mp(e)?xr(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return at(s,e)}return o.parent=void 0,o}function sS(e,t=!0){if(e){let r=L.createNodeArray(e.map(i=>ol(i,t)),e.hasTrailingComma);return at(r,e),r}return e}function nX(e,t,r){return L.createNodeArray(e.map(i=>aO(i,t,r)),e.hasTrailingComma)}function bp(e){rX(e),xde(e)}function rX(e){Rde(e,1024,Zje)}function xde(e){Rde(e,2048,Zj)}function $T(e,t){let r=e.getSourceFile(),i=r.text;Qje(e,i)?fD(e,t,r):lO(e,t,r),tM(e,t,r)}function Qje(e,t){let r=e.getFullStart(),i=e.getStart();for(let o=r;ot)}function QT(e,t){let r=e;for(let i=1;!TF(t,r);i++)r=`${e}_${i}`;return r}function sO(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:d}of e){x.assert(l===t);for(let p of d){let{span:h,newText:m}=p,y=eUe(m,Qh(r));if(y!==-1&&(s=h.start+o+y,!i))return s;o+=m.length-h.length}}return x.assert(i),x.assert(s>=0),s}function fD(e,t,r,i,o){VL(r.text,e.pos,Dde(t,r,i,o,rP))}function tM(e,t,r,i,o){jL(r.text,e.end,Dde(t,r,i,o,n4))}function lO(e,t,r,i,o){jL(r.text,e.pos,Dde(t,r,i,o,rP))}function Dde(e,t,r,i,o){return(s,l,d,p)=>{d===3?(s+=2,l-=2):s+=2,o(e,r||d,t.text.slice(s,l),i!==void 0?i:p)}}function eUe(e,t){if(ao(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 n7(e){return dr(e)&&e.operatorToken.kind===28||Ma(e)||(Ok(e)||nH(e))&&Ma(e.expression)}function r7(e,t,r){let i=Py(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{let{left:o,operatorToken:s,right:l}=i;return i7(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return oX(i,t);default:return t.getContextualType(e,r)}}function nM(e,t,r){let i=of(e,t),o=JSON.stringify(r);return i===0?`'${Yf(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function i7(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Cde(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function iX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function oX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function rM(e,t,r,i){let o=r.getTypeChecker(),s=!0,l=()=>s=!1,d=o.typeToTypeNode(e,t,1,{trackSymbol:(p,h,m)=>(s=s&&o.isSymbolAccessible(p,h,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:Vq(r,i)});return s?d:void 0}function Nde(e){return e===179||e===180||e===181||e===171||e===173}function Ixe(e){return e===262||e===176||e===174||e===177||e===178}function xxe(e){return e===267}function o7(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 tUe(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Nde(e.kind)){if(r&&r.kind===28)return!1}else if(xxe(e.kind)){let d=Ja(e.getChildren(t));if(d&&N_(d))return!1}else if(Ixe(e.kind)){let d=Ja(e.getChildren(t));if(d&&x0(d))return!1}else if(!o7(e.kind))return!1;if(e.kind===246)return!0;let i=Fn(e,d=>!d.parent),o=aS(e,i,t);if(!o||o.kind===20)return!0;let s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function a7(e,t,r){let i=Fn(t,o=>o.end!==e?"quit":vX(o.kind));return!!i&&tUe(i,r)}function cO(e){let t=0,r=0,i=5;return Go(e,function o(s){if(o7(s.kind)){let l=s.getLastToken(e);l?.kind===27?t++:r++}else if(Nde(s.kind)){let l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){let d=hs(e,l.getStart(e)).line,p=hs(e,ph(e,l.end).start).line;d!==p&&r++}}return t+r>=i?!0:Go(s,o)}),t===0&&r<=1?!0:t/r>1/i}function s7(e,t){return d7(e,e.getDirectories,t)||[]}function aX(e,t,r,i,o){return d7(e,e.readDirectory,t,r,i,o)||Xe}function dO(e,t){return d7(e,e.fileExists,t)}function l7(e,t){return c7(()=>Um(t,e))||!1}function c7(e){try{return e()}catch{return}}function d7(e,t,...r){return c7(()=>t&&t.apply(e,r))}function sX(e,t,r){let i=[];return hm(e,o=>{if(o===r)return!0;let s=Yr(o,"package.json");dO(t,s)&&i.push(s)}),i}function Pde(e,t){let r;return hm(e,i=>{if(i==="node_modules"||(r=Ble(i,o=>dO(t,o),"package.json"),r))return!0}),r}function Mde(e,t){if(!t.fileExists)return[];let r=[];return hm(oi(e),i=>{let o=Yr(i,"package.json");if(t.fileExists(o)){let s=lX(o,t);s&&r.push(s)}}),r}function lX(e,t){if(!t.readFile)return;let r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=h6(i),s={};if(o)for(let p of r){let h=o[p];if(!h)continue;let m=new Map;for(let y in h)m.set(y,h[y]);s[p]=m}let l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:d,has(p,h){return!!d(p,h)}};function d(p,h=15){for(let[m,y]of l)if(y&&h&m){let E=y.get(p);if(E!==void 0)return E}}}function iM(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Mde(e.fileName,r)).filter(A=>A.parseable),o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:h,allowsImportingSpecifier:m};function d(A){let N=S(A);for(let D of i)if(D.has(N)||D.has(A3(N)))return!0;return!1}function p(A,N){if(!i.length||!A.valueDeclaration)return!0;if(!s)s=new Map;else{let Y=s.get(A);if(Y!==void 0)return Y}let D=Yf(A.getName());if(y(D))return s.set(A,!0),!0;let w=A.valueDeclaration.getSourceFile(),j=E(w.fileName,N);if(typeof j>"u")return s.set(A,!0),!0;let K=d(j)||d(D);return s.set(A,K),K}function h(A,N){if(!i.length)return!0;if(!l)l=new Map;else{let j=l.get(A);if(j!==void 0)return j}let D=E(A.fileName,N);if(!D)return l.set(A,!0),!0;let w=d(D);return l.set(A,w),w}function m(A){return!i.length||y(A)||Lp(A)||cp(A)?!0:d(A)}function y(A){return!!(su(e)&&O_.nodeCoreModules.has(A)&&(o===void 0&&(o=u7(e)),o))}function E(A,N){if(!A.includes("node_modules"))return;let D=eS.getNodeModulesPackageName(r.getCompilationSettings(),e,A,N,t);if(D&&!Lp(D)&&!cp(D))return S(D)}function S(A){let N=zc(DP(A)).slice(1);return ao(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function u7(e){return gt(e.imports,({text:t})=>O_.nodeCoreModules.has(t))}function uO(e){return Bo(zc(e),"node_modules")}function cX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Lde(e,t){let r=Iu(e),i=lI(t,r,Qs,yW);if(i>=0){let o=t[i];return x.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),na(o,cX)}}function kde(e,t){var r;let i=lI(t,e.start,l=>l.start,Zs);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=Jl(e);for(;;){let l=ri(t[i],cX);if(!l||l.start>s)break;Wne(e,l)&&o.push(l),i++}return o}function E1({startPosition:e,endPosition:t}){return dc(e,t===void 0?e:t)}function dX(e,t){let r=so(e,t.start);return Fn(r,o=>o.getStart(e)Jl(t)?"quit":ht(o)&&uD(t,Iu(o,e)))}function uX(e,t,r=Qs){return e?To(e)?r(mn(e,t)):t(e,0):void 0}function pX(e){return To(e)?Va(e):e}function wde(e,t){if(Rxe(e)){let r=Dxe(e);if(r)return r;let i=Od.moduleSymbolToValidIdentifier(Ode(e),t,!1),o=Od.moduleSymbolToValidIdentifier(Ode(e),t,!0);return i===o?i:[i,o]}return e.name}function p7(e,t,r){return Rxe(e)?Dxe(e)||Od.moduleSymbolToValidIdentifier(Ode(e),t,!!r):e.name}function Rxe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function Dxe(e){return Wl(e.declarations,t=>{var r,i,o;return Ll(t)?(r=ri(Yl(t.expression),Fe))==null?void 0:r.text:Kd(t)&&t.symbol.flags===2097152?(i=ri(t.propertyName,Fe))==null?void 0:i.text:(o=ri(Po(t),Fe))==null?void 0:o.text})}function Ode(e){var t;return x.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${x.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=x.formatSyntaxKind(r.kind),o=ir(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${x.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Wde(e,t,r){let i=t.length;if(i+r>e.length)return!1;for(let o=0;oql(r)&&E_(r))}function f7(e){return!!(hV(e)&65536)}function m7(e,t){return Wl(e.imports,i=>{if(O_.nodeCoreModules.has(i.text))return ao(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function pO(e){return e===` `?1:0}function ZT(e){return To(e)?tg(wo(e[0]),e.slice(1)):wo(e)}function _7({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!cO(t);return{...e,semicolons:i?"remove":"ignore"}}function mX(e){return e===2||e===3}function mD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function h7(e,t){let r=new Set,i=new Set,o=new Set;for(let d of t)if(!mP(d)){let p=fs(d.expression);if(b0(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:let h=Soe(El(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(W0(h));break}else{let h=e.getSymbolAtLocation(d.expression);if(h&&h.valueDeclaration&&Y0(h.valueDeclaration)){let m=e.getConstantValue(h.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(d){switch(typeof d){case"string":r.add(d);break;case"number":i.add(d)}}function l(d){switch(typeof d){case"string":return r.has(d);case"number":return i.has(d);case"object":return o.has(W0(d))}}}function _X(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!O0(s))return!1;let l=t.getCompilerOptions(),d=Ld(l),p=typeof e=="string"?Lw(tl(e,r.getCurrentDirectory(),My(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&d===1)return!0;if(l.verbatimModuleSyntax&&A6(d))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var Yd,hX,Nxe,g7,gX,yX,Pxe,y7,vX,nUe=bt({"src/services/utilities.ts"(){"use strict";ai(),Yd=xy(99,!0),hX=(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))(hX||{}),Nxe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(gX||{}),yX=qje(),Pxe=` `,y7="anonymous function",vX=jm(Nde,Ixe,xxe,o7)}});function bX(e){let t=1,r=qp(),i=new Map,o=new Map,s,l={isUsableByFile:S=>S===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(S,A,N,D,w,j,K,Y)=>{S!==s&&(l.clear(),s=S);let B;if(w){let fe=G6(w.fileName);if(fe){let{topLevelNodeModulesIndex:ne,topLevelPackageNameIndex:he,packageRootIndex:Ce}=fe;if(B=hw(DP(w.fileName.substring(he+1,Ce))),ao(S,w.path.substring(0,ne))){let Ge=o.get(B),ve=w.fileName.substring(0,he+1);if(Ge){let Ae=Ge.indexOf(Eh);ne>Ae&&o.set(B,ve)}else o.set(B,ve)}}}let z=j===1&&mR(A)||A,Z=j===0||eO(z)?Vi(N):wde(z,void 0),me=typeof Z=="string"?Z:Z[0],ge=typeof Z=="string"?void 0:Z[1],q=Yf(D.name),J=t++,re=vd(A,Y),pe=A.flags&33554432?void 0:A,xe=D.flags&33554432?void 0:D;(!pe||!xe)&&i.set(J,[A,D]),r.add(p(me,A,Yc(q)?void 0:q,Y),{id:J,symbolTableKey:N,symbolName:me,capitalizedSymbolName:ge,moduleName:q,moduleFile:w,moduleFileName:w?.fileName,packageName:B,exportKind:j,targetFlags:re.flags,isFromPackageJson:K,symbol:pe,moduleSymbol:xe})},get:(S,A)=>{if(S!==s)return;let N=r.get(A);return N?.map(d)},search:(S,A,N,D)=>{if(S===s)return Gc(r,(w,j)=>{let{symbolName:K,ambientModuleName:Y}=h(j),B=A&&w[0].capitalizedSymbolName||K;if(N(B,w[0].targetFlags)){let z=w.map(d).filter((Z,me)=>E(Z,w[me].packageName));if(z.length){let Z=D(z,B,!!Y,j);if(Z!==void 0)return Z}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(S,A,N)=>m(S)&&m(A)?!1:s&&s!==A.path||N&&u7(S)!==u7(A)||!Gm(S.moduleAugmentations,A.moduleAugmentations)||!y(S,A)?(l.clear(),!0):(s=A.path,!1)};return x.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function d(S){if(S.symbol&&S.moduleSymbol)return S;let{id:A,exportKind:N,targetFlags:D,isFromPackageJson:w,moduleFileName:j}=S,[K,Y]=i.get(A)||Xe;if(K&&Y)return{symbol:K,moduleSymbol:Y,moduleFileName:j,exportKind:N,targetFlags:D,isFromPackageJson:w};let B=(w?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ce=S.moduleSymbol||Y||x.checkDefined(S.moduleFile?B.getMergedSymbol(S.moduleFile.symbol):B.tryFindAmbientModule(S.moduleName)),z=S.symbol||K||x.checkDefined(N===2?B.resolveExternalModuleSymbol(ce):B.tryGetMemberInModuleExportsAndProperties(Vi(S.symbolTableKey),ce),`Could not find symbol '${S.symbolName}' by key '${S.symbolTableKey}' in module ${ce.name}`);return i.set(A,[z,ce]),{symbol:z,moduleSymbol:ce,moduleFileName:j,exportKind:N,targetFlags:D,isFromPackageJson:w}}function p(S,A,N,D){let w=N||"";return`${S.length} ${ba(vd(A,D))} ${S} ${w}`}function h(S){let A=S.indexOf(" "),N=S.indexOf(" ",A+1),D=parseInt(S.substring(0,A),10),w=S.substring(N+1),j=w.substring(0,D),K=w.substring(D+1);return{symbolName:j,ambientModuleName:K===""?void 0:K}}function m(S){return!S.commonJsModuleIndicator&&!S.externalModuleIndicator&&!S.moduleAugmentations&&!S.ambientModuleNames}function y(S,A){if(!Gm(S.ambientModuleNames,A.ambientModuleNames))return!1;let N=-1,D=-1;for(let w of A.ambientModuleNames){let j=K=>qV(K)&&K.name.text===w;if(N=Kl(S.statements,j,N+1),D=Kl(A.statements,j,D+1),S.statements[N]!==A.statements[D])return!1}return!0}function E(S,A){if(!A||!S.moduleFileName)return!0;let N=e.getGlobalTypingsCacheLocation();if(N&&ao(S.moduleFileName,N))return!0;let D=o.get(A);return!D||ao(S.moduleFileName,D)}}function EX(e,t,r,i,o,s,l){var d;if(t===r)return!1;let p=l?.get(t.path,r.path,i,{});if(p?.isBlockedByPackageJsonDependencies!==void 0)return!p.isBlockedByPackageJsonDependencies;let h=My(s),m=(d=s.getGlobalTypingsCacheLocation)==null?void 0:d.call(s),y=!!eS.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,E=>{let S=e.getSourceFile(E);return(S===r||!S)&&rUe(t.fileName,E,h,m)});if(o){let E=y&&o.allowsImportingSourceFile(r,s);return l?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!E),E}return y}function rUe(e,t,r,i){let o=hm(t,l=>nc(l)==="node_modules"?l:void 0),s=o&&oi(r(o));return s===void 0||ao(r(e),s)||!!i&&ao(r(i),s)}function SX(e,t,r,i,o){var s,l;let d=pR(t),p=r.autoImportFileExcludePatterns&&to(r.autoImportFileExcludePatterns,m=>{let y=P6(m,"","exclude");return y?zv(y,d):void 0});Mxe(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,y)=>o(m,y,e,!1));let h=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(h){let m=Hs(),y=e.getTypeChecker();Mxe(h.getTypeChecker(),h.getSourceFiles(),p,t,(E,S)=>{(S&&!e.getSourceFile(S.fileName)||!S&&!y.resolveName(E.name,void 0,1536,!1))&&o(E,S,h,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Hs()-m}`)}}function Mxe(e,t,r,i,o){var s,l;let d=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:h,path:m})=>{if(r.some(y=>y.test(h)))return!0;if(d?.size&&TE(h)){let y=oi(h);return hm(oi(m),E=>{let S=d.get(Bc(E));if(S)return S.some(A=>r.some(N=>N.test(h.replace(y,A))));y=oi(y)})??!1}return!1});for(let h of e.getAmbientModules())!h.name.includes("*")&&!(r&&((l=h.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(h,void 0);for(let h of t)wp(h)&&!p?.(h)&&o(e.getMergedSymbol(h.symbol),h)}function fO(e,t,r,i,o){var s,l,d,p,h;let m=Hs();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);let y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||bX({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var A;return(A=t.getPackageJsonAutoImportProvider)==null?void 0:A.call(t)},getGlobalTypingsCacheLocation:()=>{var A;return(A=t.getGlobalTypingsCacheLocation)==null?void 0:A.call(t)}});if(y.isUsableByFile(e.path))return(d=t.log)==null||d.call(t,"getExportInfoMap: cache hit"),y;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let E=r.getCompilerOptions(),S=0;try{SX(r,t,i,!0,(A,N,D,w)=>{++S%100===0&&o?.throwIfCancellationRequested();let j=new Map,K=D.getTypeChecker(),Y=v7(A,K,E);Y&&Lxe(Y.symbol,K)&&y.add(e.path,Y.symbol,Y.exportKind===1?"default":"export=",A,N,Y.exportKind,w,K),K.forEachExportAndPropertyOfModule(A,(B,ce)=>{B!==Y?.symbol&&Lxe(B,K)&&Em(j,ce)&&y.add(e.path,B,ce,A,N,0,w,K)})})}catch(A){throw y.clear(),A}return(h=t.log)==null||h.call(t,`getExportInfoMap: done in ${Hs()-m} ms`),y}function v7(e,t,r){let i=iUe(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=b7(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function Lxe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!J2(e)&&!Eie(e)}function iUe(e,t){let r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function b7(e,t,r){let i=mR(e);if(i)return{resolvedSymbol:i,name:i.name};let o=oUe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){let s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return b7(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:p7(e,r.target)}}function oUe(e){return e.declarations&&Wl(e.declarations,t=>{var r;if(Ll(t))return(r=ri(Yl(t.expression),Fe))==null?void 0:r.text;if(Kd(t))return x.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var TX,AX,aUe=bt({"src/services/exportInfoMap.ts"(){"use strict";ai(),TX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(TX||{}),AX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(AX||{})}});function kxe(){let e=xy(99,!1);function t(i,o,s){return cUe(r(i,o,s),i)}function r(i,o,s){let l=0,d=0,p=[],{prefix:h,pushTemplate:m}=pUe(o);i=h+i;let y=h.length;m&&p.push(16),e.setText(i);let E=0,S=[],A=0;do{l=e.scan(),sR(l)||(N(),d=l);let D=e.getTokenEnd();if(lUe(e.getTokenStart(),D,y,_Ue(l),S),D>=i.length){let w=sUe(e,l,$s(p));w!==void 0&&(E=w)}}while(l!==1);function N(){switch(l){case 44:case 69:!Fxe[d]&&e.reScanSlashToken()===14&&(l=14);break;case 30:d===80&&A++;break;case 32:A>0&&A--;break;case 133:case 154:case 150:case 136:case 155:A>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){let D=$s(p);D===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():x.assertEqual(l,17,"Should have been a template middle.")):(x.assertEqual(D,19,"Should have been an open brace"),p.pop())}break;default:if(!wu(l))break;(d===25||wu(d)&&wu(l)&&!uUe(d,l))&&(l=80)}}return{endOfLineState:E,spans:S}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function sUe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),o=i.length-1,s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(Dv(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return x.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function lUe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);let s=t-e;s>0&&o.push(e-r,s,i)}function cUe(e,t){let r=[],i=e.spans,o=0;for(let l=0;l=0){let m=d-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:dUe(h)}),o=d+p}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function dUe(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 uUe(e,t){if(!kq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function pUe(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 x.assertNever(e)}}function fUe(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 mUe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function _Ue(e){if(wu(e))return 3;if(fUe(e)||mUe(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 Dv(e)?6:2}}function zde(e,t,r,i,o){return Wxe(IX(e,t,r,i,o))}function wxe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function IX(e,t,r,i,o){let s=[];return r.forEachChild(function d(p){if(!(!p||!ZW(o,p.pos,p.getFullWidth()))){if(wxe(t,p.kind),Fe(p)&&!Fl(p)&&i.has(p.escapedText)){let h=e.getSymbolAtLocation(p),m=h&&Oxe(h,qT(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(d)}}),{spans:s,endOfLineState:0};function l(d,p,h){let m=p-d;x.assert(m>0,`Classification had non-positive length of ${m}`),s.push(d),s.push(m),s.push(h)}}function Oxe(e,t,r){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&hUe(e)?14:void 0:i&2097152?Oxe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function hUe(e){return gt(e.declarations,t=>ql(t)&&Vg(t)===1)}function gUe(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 Wxe(e){x.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,Z=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,me=t.text.substr(B,ce),ge=z.exec(me);if(!ge||!ge[3]||!(ge[3]in PL))return!1;let q=B;y(q,ge[1].length),q+=ge[1].length,p(q,ge[2].length,10),q+=ge[2].length,p(q,ge[3].length,21),q+=ge[3].length;let J=ge[4],re=q;for(;;){let xe=Z.exec(J);if(!xe)break;let fe=q+xe.index+xe[1].length;fe>re&&(y(re,fe-re),re=fe),p(re,xe[2].length,22),re+=xe[2].length,xe[3].length&&(y(re,xe[3].length),re+=xe[3].length),p(re,xe[4].length,5),re+=xe[4].length,xe[5].length&&(y(re,xe[5].length),re+=xe[5].length),p(re,xe[6].length,24),re+=xe[6].length}q+=ge[4].length,q>re&&y(re,q-re),ge[5]&&(p(q,ge[5].length,10),q+=ge[5].length);let pe=B+ce;return q=0),Z>0){let me=ce||K(B.kind,B);me&&p(z,Z,me)}return!0}function j(B){switch(B.parent&&B.parent.kind){case 286:if(B.parent.tagName===B)return 19;break;case 287:if(B.parent.tagName===B)return 20;break;case 285:if(B.parent.tagName===B)return 21;break;case 291:if(B.parent.name===B)return 22;break}}function K(B,ce){if(wu(B))return 3;if((B===30||B===32)&&ce&&lde(ce.parent))return 10;if(Aj(B)){if(ce){let z=ce.parent;if(B===64&&(z.kind===260||z.kind===172||z.kind===169||z.kind===291)||z.kind===226||z.kind===224||z.kind===225||z.kind===227)return 5}return 10}else{if(B===9)return 4;if(B===10)return 25;if(B===11)return ce&&ce.parent.kind===291?24:6;if(B===14)return 6;if(Dv(B))return 6;if(B===12)return 23;if(B===80){if(ce){switch(ce.parent.kind){case 263:return ce.parent.name===ce?11:void 0;case 168:return ce.parent.name===ce?15:void 0;case 264:return ce.parent.name===ce?13:void 0;case 266:return ce.parent.name===ce?12:void 0;case 267:return ce.parent.name===ce?14:void 0;case 169:return ce.parent.name===ce?k0(ce)?3:17:void 0}if(Ng(ce.parent))return 3}return 2}}}function Y(B){if(B&&JL(i,o,B.pos,B.getFullWidth())){wxe(e,B.kind);for(let ce of B.getChildren(t))w(ce)||Y(ce)}}}var Fxe,zxe=bt({"src/services/classifier.ts"(){"use strict";ai(),Fxe=Zte([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),E7,yUe=bt({"src/services/documentHighlights.ts"(){"use strict";ai(),(e=>{function t(q,J,re,pe,xe){let fe=Wu(re,pe);if(fe.parent&&(P_(fe.parent)&&fe.parent.tagName===fe||K0(fe.parent))){let{openingElement:ne,closingElement:he}=fe.parent.parent,Ce=[ne,he].map(({tagName:Ge})=>r(Ge,re));return[{fileName:re.fileName,highlightSpans:Ce}]}return i(pe,fe,q,J,xe)||o(fe,re)}e.getDocumentHighlights=t;function r(q,J){return{fileName:J.fileName,textSpan:Iu(q,J),kind:"none"}}function i(q,J,re,pe,xe){let fe=new Set(xe.map(Ge=>Ge.fileName)),ne=Ms.getReferenceEntriesForNode(q,J,re,xe,pe,void 0,fe);if(!ne)return;let he=TL(ne.map(Ms.toHighlightSpan),Ge=>Ge.fileName,Ge=>Ge.span),Ce=Nd(re.useCaseSensitiveFileNames());return Wo(OC(he.entries(),([Ge,ve])=>{if(!fe.has(Ge)){if(!re.redirectTargetsMap.has(tl(Ge,re.getCurrentDirectory(),Ce)))return;let Ae=re.getSourceFile(Ge);Ge=Vr(xe,Le=>!!Le.redirectInfo&&Le.redirectInfo.redirectTarget===Ae).fileName,x.assert(fe.has(Ge))}return{fileName:Ge,highlightSpans:ve}}))}function o(q,J){let re=s(q,J);return re&&[{fileName:J.fileName,highlightSpans:re}]}function s(q,J){switch(q.kind){case 101:case 93:return LT(q.parent)?Z(q.parent,J):void 0;case 107:return pe(q.parent,Sm,Y);case 111:return pe(q.parent,iH,K);case 113:case 85:case 98:let fe=q.kind===85?q.parent.parent:q.parent;return pe(fe,wT,j);case 109:return pe(q.parent,uP,w);case 84:case 90:return mP(q.parent)||MR(q.parent)?pe(q.parent.parent.parent,uP,w):void 0;case 83:case 88:return pe(q.parent,nN,D);case 99:case 117:case 92:return pe(q.parent,ne=>Nv(ne,!0),N);case 137:return re(Pl,[137]);case 139:case 153:return re(Cv,[139,153]);case 135:return pe(q.parent,Jv,B);case 134:return xe(B(q));case 127:return xe(ce(q));case 103:case 147:return;default:return Dy(q.kind)&&(Hd(q.parent)||Ml(q.parent))?xe(E(q.kind,q.parent)):void 0}function re(fe,ne){return pe(q.parent,fe,he=>{var Ce;return to((Ce=ri(he,b_))==null?void 0:Ce.symbol.declarations,Ge=>fe(Ge)?Vr(Ge.getChildren(J),ve=>Bo(ne,ve.kind)):void 0)})}function pe(fe,ne,he){return ne(fe)?xe(he(fe,J)):void 0}function xe(fe){return fe&&fe.map(ne=>r(ne,J))}}function l(q){return iH(q)?[q]:wT(q)?Eo(q.catchClause?l(q.catchClause):q.tryBlock&&l(q.tryBlock),q.finallyBlock&&l(q.finallyBlock)):$o(q)?void 0:h(q,l)}function d(q){let J=q;for(;J.parent;){let re=J.parent;if(x0(re)||re.kind===312)return re;if(wT(re)&&re.tryBlock===J&&re.catchClause)return J;J=re}}function p(q){return nN(q)?[q]:$o(q)?void 0:h(q,p)}function h(q,J){let re=[];return q.forEachChild(pe=>{let xe=J(pe);xe!==void 0&&re.push(...dI(xe))}),re}function m(q,J){let re=y(J);return!!re&&re===q}function y(q){return Fn(q,J=>{switch(J.kind){case 255:if(q.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!q.label||ge(J,q.label.escapedText);default:return $o(J)&&"quit"}})}function E(q,J){return to(S(J,MI(q)),re=>dD(re,q))}function S(q,J){let re=q.parent;switch(re.kind){case 268:case 312:case 241:case 296:case 297:return J&64&&Sc(q)?[...q.members,q]:re.statements;case 176:case 174:case 262:return[...re.parameters,...ci(re.parent)?re.parent.members:[]];case 263:case 231:case 264:case 187:let pe=re.members;if(J&15){let xe=Vr(re.members,Pl);if(xe)return[...pe,...xe.parameters]}else if(J&64)return[...pe,re];return pe;case 210:return;default:x.assertNever(re,"Invalid container kind.")}}function A(q,J,...re){return J&&Bo(re,J.kind)?(q.push(J),!0):!1}function N(q){let J=[];if(A(J,q.getFirstToken(),99,117,92)&&q.kind===246){let re=q.getChildren();for(let pe=re.length-1;pe>=0&&!A(J,re[pe],117);pe--);}return gn(p(q.statement),re=>{m(q,re)&&A(J,re.getFirstToken(),83,88)}),J}function D(q){let J=y(q);if(J)switch(J.kind){case 248:case 249:case 250:case 246:case 247:return N(J);case 255:return w(J)}}function w(q){let J=[];return A(J,q.getFirstToken(),109),gn(q.caseBlock.clauses,re=>{A(J,re.getFirstToken(),84,90),gn(p(re),pe=>{m(q,pe)&&A(J,pe.getFirstToken(),83)})}),J}function j(q,J){let re=[];if(A(re,q.getFirstToken(),113),q.catchClause&&A(re,q.catchClause.getFirstToken(),85),q.finallyBlock){let pe=_s(q,98,J);A(re,pe,98)}return re}function K(q,J){let re=d(q);if(!re)return;let pe=[];return gn(l(re),xe=>{pe.push(_s(xe,111,J))}),x0(re)&&I0(re,xe=>{pe.push(_s(xe,107,J))}),pe}function Y(q,J){let re=Wp(q);if(!re)return;let pe=[];return I0(na(re.body,Ko),xe=>{pe.push(_s(xe,107,J))}),gn(l(re.body),xe=>{pe.push(_s(xe,111,J))}),pe}function B(q){let J=Wp(q);if(!J)return;let re=[];return J.modifiers&&J.modifiers.forEach(pe=>{A(re,pe,134)}),Go(J,pe=>{z(pe,xe=>{Jv(xe)&&A(re,xe.getFirstToken(),135)})}),re}function ce(q){let J=Wp(q);if(!J)return;let re=[];return Go(J,pe=>{z(pe,xe=>{z4(xe)&&A(re,xe.getFirstToken(),127)})}),re}function z(q,J){J(q),!$o(q)&&!ci(q)&&!pu(q)&&!ql(q)&&!Tm(q)&&!ji(q)&&Go(q,re=>z(re,J))}function Z(q,J){let re=me(q,J),pe=[];for(let xe=0;xe=fe.end;Ce--)if(!y_(J.text.charCodeAt(Ce))){he=!1;break}if(he){pe.push({fileName:J.fileName,textSpan:dc(fe.getStart(),ne.end),kind:"reference"}),xe++;continue}}pe.push(r(re[xe],J))}return pe}function me(q,J){let re=[];for(;LT(q.parent)&&q.parent.elseStatement===q;)q=q.parent;for(;;){let pe=q.getChildren(J);A(re,pe[0],101);for(let xe=pe.length-1;xe>=0&&!A(re,pe[xe],93);xe--);if(!q.elseStatement||!LT(q.elseStatement))break;q=q.elseStatement}return re}function ge(q,J){return!!Fn(q.parent,re=>H0(re)?re.label.escapedText===J:"quit")}})(E7||(E7={}))}});function mO(e){return!!e.sourceFile}function Gde(e,t,r){return RX(e,t,r)}function RX(e,t="",r,i){let o=new Map,s=Nd(!!e);function l(){let D=Wo(o.keys()).filter(w=>w&&w.charAt(0)==="_").map(w=>{let j=o.get(w),K=[];return j.forEach((Y,B)=>{mO(Y)?K.push({name:B,scriptKind:Y.sourceFile.scriptKind,refCount:Y.languageServiceRefCount}):Y.forEach((ce,z)=>K.push({name:B,scriptKind:z,refCount:ce.languageServiceRefCount}))}),K.sort((Y,B)=>B.refCount-Y.refCount),{bucket:w,sourceFiles:K}});return JSON.stringify(D,void 0,2)}function d(D){return typeof D.getCompilationSettings=="function"?D.getCompilationSettings():D}function p(D,w,j,K,Y,B){let ce=tl(D,t,s),z=DX(d(w));return h(D,ce,w,z,j,K,Y,B)}function h(D,w,j,K,Y,B,ce,z){return S(D,w,j,K,Y,B,!0,ce,z)}function m(D,w,j,K,Y,B){let ce=tl(D,t,s),z=DX(d(w));return y(D,ce,w,z,j,K,Y,B)}function y(D,w,j,K,Y,B,ce,z){return S(D,w,d(j),K,Y,B,!1,ce,z)}function E(D,w){let j=mO(D)?D:D.get(x.checkDefined(w,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return x.assert(w===void 0||!j||j.sourceFile.scriptKind===w,`Script kind should match provided ScriptKind:${w} and sourceFile.scriptKind: ${j?.sourceFile.scriptKind}, !entry: ${!j}`),j}function S(D,w,j,K,Y,B,ce,z,Z){var me,ge,q,J;z=L6(D,z);let re=d(j),pe=j===re?void 0:j,xe=z===6?100:ns(re),fe=typeof Z=="object"?Z:{languageVersion:xe,impliedNodeFormat:pe&&Lw(w,(J=(q=(ge=(me=pe.getCompilerHost)==null?void 0:me.call(pe))==null?void 0:ge.getModuleResolutionCache)==null?void 0:q.call(ge))==null?void 0:J.getPackageJsonInfoCache(),pe,re),setExternalModuleIndicator:ok(re),jsDocParsingMode:r};fe.languageVersion=xe,x.assertEqual(r,fe.jsDocParsingMode);let ne=o.size,he=Vde(K,fe.impliedNodeFormat),Ce=WC(o,he,()=>new Map);if(rr){o.size>ne&&rr.instant(rr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:re.configFilePath,key:he});let De=!Ed(w)&&Gc(o,(Le,Et)=>Et!==he&&Le.has(w)&&Et);De&&rr.instant(rr.Phase.Session,"documentRegistryBucketOverlap",{path:w,key1:De,key2:he})}let Ge=Ce.get(w),ve=Ge&&E(Ge,z);if(!ve&&i){let De=i.getDocument(he,w);De&&(x.assert(ce),ve={sourceFile:De,languageServiceRefCount:0},Ae())}if(ve)ve.sourceFile.version!==B&&(ve.sourceFile=hY(ve.sourceFile,Y,B,Y.getChangeRange(ve.sourceFile.scriptSnapshot)),i&&i.setDocument(he,w,ve.sourceFile)),ce&&ve.languageServiceRefCount++;else{let De=K7(D,Y,fe,B,!1,z);i&&i.setDocument(he,w,De),ve={sourceFile:De,languageServiceRefCount:1},Ae()}return x.assert(ve.languageServiceRefCount!==0),ve.sourceFile;function Ae(){if(!Ge)Ce.set(w,ve);else if(mO(Ge)){let De=new Map;De.set(Ge.sourceFile.scriptKind,Ge),De.set(z,ve),Ce.set(w,De)}else Ge.set(z,ve)}}function A(D,w,j,K){let Y=tl(D,t,s),B=DX(w);return N(Y,B,j,K)}function N(D,w,j,K){let Y=x.checkDefined(o.get(Vde(w,K))),B=Y.get(D),ce=E(B,j);ce.languageServiceRefCount--,x.assert(ce.languageServiceRefCount>=0),ce.languageServiceRefCount===0&&(mO(B)?Y.delete(D):(B.delete(j),B.size===1&&Y.set(D,vL(B.values(),Qs))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:y,releaseDocument:A,releaseDocumentWithKey:N,getKeyForCompilationSettings:DX,getDocumentRegistryBucketKeyWithMode:Vde,reportStats:l,getBuckets:()=>o}}function DX(e){return tK(e,u3)}function Vde(e,t){return t?`${e}|${t}`:e}var vUe=bt({"src/services/documentRegistry.ts"(){"use strict";ai()}});function jde(e,t,r,i,o,s,l){let d=pR(i),p=Nd(d),h=CX(t,r,p,l),m=CX(r,t,p,l);return ur.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{EUe(e,y,h,t,r,i.getCurrentDirectory(),d),SUe(e,y,h,m,i,p)})}function CX(e,t,r,i){let o=r(e);return l=>{let d=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(d?d.fileName:l);return d?p===void 0?void 0:bUe(d.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;let d=aU(l,o,r);return d===void 0?void 0:t+"/"+d}}function bUe(e,t,r,i){let o=WL(e,t,i);return Ude(oi(r),o)}function EUe(e,t,r,i,o,s,l){let{configFile:d}=e.getCompilerOptions();if(!d)return;let p=oi(d.fileName),h=mN(d);if(!h)return;Hde(h,(S,A)=>{switch(A){case"files":case"include":case"exclude":{if(m(S)||A!=="include"||!uu(S.initializer))return;let D=to(S.initializer.elements,j=>Da(j)?j.text:void 0);if(D.length===0)return;let w=M6(p,[],D,l,s);zv(x.checkDefined(w.includeFilePattern),l).test(i)&&!zv(x.checkDefined(w.includeFilePattern),l).test(o)&&t.insertNodeAfter(d,Ja(S.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":Hde(S.initializer,(N,D)=>{let w=OH(D);x.assert(w?.type!=="listOrElement"),w&&(w.isFilePath||w.type==="list"&&w.element.isFilePath)?m(N):D==="paths"&&Hde(N.initializer,j=>{if(uu(j.initializer))for(let K of j.initializer.elements)y(K)})});return}});function m(S){let A=uu(S.initializer)?S.initializer.elements:[S.initializer],N=!1;for(let D of A)N=y(D)||N;return N}function y(S){if(!Da(S))return!1;let A=Ude(p,S.text),N=r(A);return N!==void 0?(t.replaceRangeWithText(d,Gxe(S,d),E(N)),!0):!1}function E(S){return _m(p,S,!l)}}function SUe(e,t,r,i,o,s){let l=e.getSourceFiles();for(let d of l){let p=r(d.fileName),h=p??d.fileName,m=oi(h),y=i(d.fileName),E=y||d.fileName,S=oi(E),A=p!==void 0||y!==void 0;IUe(d,t,N=>{if(!Lp(N))return;let D=Ude(S,N),w=r(D);return w===void 0?void 0:h0(_m(m,w,s))},N=>{let D=e.getTypeChecker().getSymbolAtLocation(N);if(D?.declarations&&D.declarations.some(j=>Md(j)))return;let w=y!==void 0?Bxe(N,KR(N.text,E,e.getCompilerOptions(),o),r,l):AUe(D,N,d,e,o,r);return w!==void 0&&(w.updated||A&&Lp(N.text))?eS.updateModuleSpecifier(e.getCompilerOptions(),d,h,w.newFileName,YT(e,o),N.text):void 0})}}function TUe(e,t){return ma(Yr(e,t))}function Ude(e,t){return h0(TUe(e,t))}function AUe(e,t,r,i,o,s){if(e){let l=Vr(e.declarations,Yi).fileName,d=s(l);return d===void 0?{newFileName:l,updated:!1}:{newFileName:d,updated:!0}}else{let l=i.getModeForUsageLocation(r,t),d=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return Bxe(t,d,s,i.getSourceFiles())}}function Bxe(e,t,r,i){if(!t)return;if(t.resolvedModule){let p=d(t.resolvedModule.resolvedFileName);if(p)return p}let o=gn(t.failedLookupLocations,s)||Lp(e.text)&&gn(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){let h=r(p);return h&&Vr(i,m=>m.fileName===h)?l(p):void 0}function l(p){return El(p,"/package.json")?void 0:d(p)}function d(p){let h=r(p);return h&&{newFileName:h,updated:!0}}}function IUe(e,t,r,i){for(let o of e.referencedFiles||Xe){let s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(let o of e.imports){let s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,Gxe(o,e),s)}}function Gxe(e,t){return Ef(e.getStart(t)+1,e.end-1)}function Hde(e,t){if(Ma(e))for(let r of e.properties)mc(r)&&Da(r.name)&&t(r,r.name.text)}var xUe=bt({"src/services/getEditsForFileRename.ts"(){"use strict";ai()}});function oM(e,t){return{kind:e,isCaseSensitive:t}}function Kde(e){let t=new Map,r=e.trim().split(".").map(i=>NUe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>oM(2,!0),getFullMatch:()=>oM(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>RUe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Jde(i,Ja(r),t),patternContainsDots:r.length>1}}function RUe(e,t,r,i){if(!Jde(t,Ja(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,d=e.length-1;l>=0;l-=1,d-=1)s=Uxe(s,Jde(e[d],r[l],i));return s}function Vxe(e,t){let r=t.get(e);return r||t.set(e,r=Zde(e)),r}function jxe(e,t,r){let i=PUe(e,t.textLowerCase);if(i===0)return oM(t.text.length===e.length?0:1,ao(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=Vxe(e,r);for(let s of o)if(qde(e,s,t.text,!0))return oM(2,qde(e,s,t.text,!1));if(t.text.length0)return oM(2,!0);if(t.characterSpans.length>0){let o=Vxe(e,r),s=Hxe(e,o,t,!1)?!0:Hxe(e,o,t,!0)?!1:void 0;if(s!==void 0)return oM(3,s)}}}function Jde(e,t,r){if(NX(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=jxe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=Uxe(o,jxe(e,s,r));return o}function Uxe(e,t){return jG([e,t],DUe)}function DUe(e,t){return e===void 0?1:t===void 0?-1:Zs(e.kind,t.kind)||bv(!e.isCaseSensitive,!t.isCaseSensitive)}function qde(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&Xxe(0,o.length,s=>CUe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function CUe(e,t,r){return r?Xde(e)===Xde(t):e===t}function Hxe(e,t,r,i){let o=r.characterSpans,s=0,l=0,d,p;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let h=t[s],m=!1;for(;l=65&&e<=90)return!0;if(e<127||!qW(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function Kxe(e){if(e>=97&&e<=122)return!0;if(e<127||!qW(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function PUe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(NX(t,(o,s)=>Xde(e.charCodeAt(s+i))===o))return i;return-1}function Xde(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Yde(e){return e>=48&&e<=57}function MUe(e){return _D(e)||Kxe(e)||Yde(e)||e===95||e===36}function LUe(e){let t=[],r=0,i=0;for(let o=0;o0&&(t.push($de(e.substr(r,i))),i=0)}return i>0&&t.push($de(e.substr(r,i))),t}function $de(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Qde(e)}}function Qde(e){return Jxe(e,!1)}function Zde(e){return Jxe(e,!0)}function Jxe(e,t){let r=[],i=0;for(let o=1;oeue(i)&&i!==95,t,r)}function kUe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var S7,OUe=bt({"src/services/patternMatcher.ts"(){"use strict";ai(),S7=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(S7||{})}});function Yxe(e,t=!0,r=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s,l,d,p=0,h=!1;function m(){return l=d,d=Yd.scan(),d===19?p++:d===20&&p--,d}function y(){let B=Yd.getTokenValue(),ce=Yd.getTokenStart();return{fileName:B,pos:ce,end:ce+B.length}}function E(){s||(s=[]),s.push({ref:y(),depth:p})}function S(){o.push(y()),A()}function A(){p===0&&(h=!0)}function N(){let B=Yd.getToken();return B===138?(B=m(),B===144&&(B=m(),B===11&&E()),!0):!1}function D(){if(l===25)return!1;let B=Yd.getToken();if(B===102){if(B=m(),B===21){if(B=m(),B===11||B===15)return S(),!0}else{if(B===11)return S(),!0;if(B===156&&Yd.lookAhead(()=>{let z=Yd.scan();return z!==161&&(z===42||z===19||z===80||wu(z))})&&(B=m()),B===80||wu(B))if(B=m(),B===161){if(B=m(),B===11)return S(),!0}else if(B===64){if(j(!0))return!0}else if(B===28)B=m();else return!0;if(B===19){for(B=m();B!==20&&B!==1;)B=m();B===20&&(B=m(),B===161&&(B=m(),B===11&&S()))}else B===42&&(B=m(),B===130&&(B=m(),(B===80||wu(B))&&(B=m(),B===161&&(B=m(),B===11&&S()))))}return!0}return!1}function w(){let B=Yd.getToken();if(B===95){if(A(),B=m(),B===156&&Yd.lookAhead(()=>{let z=Yd.scan();return z===42||z===19})&&(B=m()),B===19){for(B=m();B!==20&&B!==1;)B=m();B===20&&(B=m(),B===161&&(B=m(),B===11&&S()))}else if(B===42)B=m(),B===161&&(B=m(),B===11&&S());else if(B===102&&(B=m(),B===156&&Yd.lookAhead(()=>{let z=Yd.scan();return z===80||wu(z)})&&(B=m()),(B===80||wu(B))&&(B=m(),B===64&&j(!0))))return!0;return!0}return!1}function j(B,ce=!1){let z=B?m():Yd.getToken();return z===149?(z=m(),z===21&&(z=m(),(z===11||ce&&z===15)&&S()),!0):!1}function K(){let B=Yd.getToken();if(B===80&&Yd.getTokenValue()==="define"){if(B=m(),B!==21)return!0;if(B=m(),B===11||B===15)if(B=m(),B===28)B=m();else return!0;if(B!==23)return!0;for(B=m();B!==24&&B!==1;)(B===11||B===15)&&S(),B=m();return!0}return!1}function Y(){for(Yd.setText(e),m();Yd.getToken()!==1;){if(Yd.getToken()===16){let B=[Yd.getToken()];e:for(;Nn(B);){let ce=Yd.scan();switch(ce){case 1:break e;case 102:D();break;case 16:B.push(ce);break;case 19:Nn(B)&&B.push(ce);break;case 20:Nn(B)&&($s(B)===16?Yd.reScanTemplateToken(!1)===18&&B.pop():B.pop());break}}m()}N()||D()||w()||r&&(j(!1,!0)||K())||m()}Yd.setText(void 0)}if(t&&Y(),NH(i,e),PH(i,qa),h){if(s)for(let B of s)o.push(B.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let B;if(s)for(let ce of s)ce.depth===0?(B||(B=[]),B.push(ce.ref.fileName)):o.push(ce.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:B}}}var WUe=bt({"src/services/preProcess.ts"(){"use strict";ai()}});function tue(e){let t=Nd(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:d,tryGetGeneratedPosition:p,toLineColumnOffset:E,clearCache:S};function s(A){return tl(A,r,t)}function l(A,N){let D=s(A),w=o.get(D);if(w)return w;let j;if(e.getDocumentPositionMapper)j=e.getDocumentPositionMapper(A,N);else if(e.readFile){let K=y(A);j=K&&PX({getSourceFileLike:y,getCanonicalFileName:t,log:Y=>e.log(Y)},A,AK(K.text,Dg(K)),Y=>!e.fileExists||e.fileExists(Y)?e.readFile(Y):void 0)}return o.set(D,j||O3),j||O3}function d(A){if(!Ed(A.fileName)||!h(A.fileName))return;let D=l(A.fileName).getSourcePosition(A);return!D||D===A?void 0:d(D)||D}function p(A){if(Ed(A.fileName))return;let N=h(A.fileName);if(!N)return;let D=e.getProgram();if(D.isSourceOfProjectReferenceRedirect(N.fileName))return;let w=D.getCompilerOptions(),j=xs(w),K=j?Eu(j)+".d.ts":o6(A.fileName,D.getCompilerOptions(),r,D.getCommonSourceDirectory(),t);if(K===void 0)return;let Y=l(K,A.fileName).getGeneratedPosition(A);return Y===A?void 0:Y}function h(A){let N=e.getProgram();if(!N)return;let D=s(A),w=N.getSourceFileByPath(D);return w&&w.resolvedPath===D?w:void 0}function m(A){let N=s(A),D=i.get(N);if(D!==void 0)return D||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(A)){i.set(N,!1);return}let w=e.readFile(A),j=w?FUe(w):!1;return i.set(N,j),j||void 0}function y(A){return e.getSourceFileLike?e.getSourceFileLike(A):h(A)||m(A)}function E(A,N){return y(A).getLineAndCharacterOfPosition(N)}function S(){i.clear(),o.clear()}}function PX(e,t,r,i){let o=Jse(r);if(o){let d=Qxe.exec(o);if(d){if(d[1]){let p=d[1];return $xe(e,Jie(hd,p),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&ho(o,oi(t));for(let d of s){let p=ho(d,oi(t)),h=i(p,l);if(No(h))return $xe(e,h,p);if(h!==void 0)return h||void 0}}function $xe(e,t,r){let i=IK(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(No)))return Yse(e,i,r)}function FUe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Nx(Dg(this),r)}}}var Qxe,zUe=bt({"src/services/sourcemaps.ts"(){"use strict";ai(),Qxe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function MX(e,t,r){var i;t.getSemanticDiagnostics(e,r);let o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||bc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(fde(t)||Gq(t.getCompilerOptions()))&&BUe(e)&&o.push(Pr(UUe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let d=su(e);if(OX.clear(),p(e),RT(t.getCompilerOptions()))for(let h of e.imports){let m=yN(h),y=GUe(m);if(!y)continue;let E=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,S=E&&t.getSourceFile(E.resolvedFileName);S&&S.externalModuleIndicator&&S.externalModuleIndicator!==!0&&Ll(S.externalModuleIndicator)&&S.externalModuleIndicator.isExportEquals&&o.push(Pr(y,f.Import_may_be_converted_to_a_default_import))}return Hr(o,e.bindSuggestionDiagnostics),Hr(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(d)KUe(h,s)&&o.push(Pr(wi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Ml(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){let y=h.declarationList.declarations[0].initializer;y&&bu(y,!0)&&o.push(Pr(y,f.require_call_may_be_converted_to_an_import))}let m=Od.getJSDocTypedefNodes(h);for(let y of m)o.push(Pr(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));Od.parameterShouldGetTypeFromJSDoc(h)&&o.push(Pr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}wX(h)&&VUe(h,s,o),h.forEachChild(p)}}function BUe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&bu(Zxe(r.initializer),!0));case 244:{let{expression:r}=t;if(!dr(r))return bu(r,!0);let i=zl(r);return i===1||i===2}default:return!1}})}function Zxe(e){return kr(e)?Zxe(e.expression):e}function GUe(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Da(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function VUe(e,t,r){jUe(e,t)&&!OX.has(rRe(e))&&r.push(Pr(!e.name&&wi(e.parent)&&Fe(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function jUe(e,t){return!SN(e)&&e.body&&Ko(e.body)&&HUe(e.body,t)&&LX(e,t)}function LX(e,t){let r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function UUe(e){return dr(e)?e.left:e}function HUe(e,t){return!!I0(e,r=>T7(r,t))}function T7(e,t){return Sm(e)&&!!e.expression&&kX(e.expression,t)}function kX(e,t){if(!eRe(e)||!tRe(e)||!e.arguments.every(i=>nRe(i,t)))return!1;let r=e.expression.expression;for(;eRe(r)||kr(r);)if(ia(r)){if(!tRe(r)||!r.arguments.every(i=>nRe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function eRe(e){return ia(e)&&(Hw(e,"then")||Hw(e,"catch")||Hw(e,"finally"))}function tRe(e){let 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||Fe(i)&&i.text==="undefined")}function nRe(e,t){switch(e.kind){case 262:case 218:if(Vc(e)&1)return!1;case 219:OX.set(rRe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||gt(vd(i,t).declarations,o=>$o(o)||Mv(o)&&!!o.initializer&&$o(o.initializer)):!1}default:return!1}}function rRe(e){return`${e.pos.toString()}:${e.end.toString()}`}function KUe(e,t){var r,i,o,s;if(Ps(e)){if(wi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;let l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Ec(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function wX(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var OX,JUe=bt({"src/services/suggestionDiagnostics.ts"(){"use strict";ai(),OX=new Map}});function nue(e,t){let r=[],i=t.compilerOptions?WX(t.compilerOptions,r):{},o=H7();for(let E in o)Ss(o,E)&&i[E]===void 0&&(i[E]=o[E]);for(let E of YH)i.verbatimModuleSyntax&&oRe.has(E.name)||(i[E.name]=E.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;let s=wy(i),l={getSourceFile:E=>E===ma(d)?p:void 0,writeFile:(E,S)=>{Sl(E,".map")?(x.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",E),m=S):(x.assertEqual(h,void 0,"Unexpected multiple outputs, file:",E),h=S)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:E=>E,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:E=>E===d,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=Yk(d,e,{languageVersion:ns(i),impliedNodeFormat:Lw(tl(d,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:ok(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,m,y=iz([d],i,l);return t.reportDiagnostics&&(Hr(r,y.getSyntacticDiagnostics(p)),Hr(r,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?x.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function iRe(e,t,r,i,o){let s=nue(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Hr(i,s.diagnostics),s.outputText}function WX(e,t){rue=rue||jr(og,r=>typeof r.type=="object"&&!Gc(r.type,i=>typeof i!="number")),e=wq(e);for(let r of rue){if(!Ss(e,r.name))continue;let i=e[r.name];No(i)?e[r.name]=i3(r,i,t):Gc(r.type,o=>o===i)||t.push(qae(r))}return e}var oRe,rue,qUe=bt({"src/services/transpile.ts"(){"use strict";ai(),oRe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function aRe(e,t,r,i,o,s,l){let d=Kde(i);if(!d)return Xe;let p=[],h=e.length===1?e[0]:void 0;for(let m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(sRe(m,!!l,h)||m.getNamedDeclarations().forEach((y,E)=>{XUe(d,E,y,t,m.fileName,!!l,h,p)}));return p.sort(ZUe),(o===void 0?p:p.slice(0,o)).map(eHe)}function sRe(e,t,r){return e!==r&&t&&(uO(e.path)||e.hasNoDefaultLib)}function XUe(e,t,r,i,o,s,l,d){let p=e.getMatchForLastSegmentOfPattern(t);if(p){for(let h of r)if(YUe(h,i,s,l))if(e.patternContainsDots){let m=e.getFullMatch(QUe(h),t);m&&d.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:h})}else d.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:h})}}function YUe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:let s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(d=>sRe(d.getSourceFile(),r,i)));default:return!0}}function $Ue(e,t){let r=Po(e);return!!r&&(lRe(r,t)||r.kind===167&&iue(r.expression,t))}function iue(e,t){return lRe(e,t)||kr(e)&&(t.push(e.name.text),!0)&&iue(e.expression,t)}function lRe(e,t){return T_(e)&&(t.push(Xf(e)),!0)}function QUe(e){let t=[],r=Po(e);if(r&&r.kind===167&&!iue(r.expression,t))return Xe;t.shift();let i=XT(e);for(;i;){if(!$Ue(i,t))return Xe;i=XT(i)}return t.reverse()}function ZUe(e,t){return Zs(e.matchKind,t.matchKind)||IL(e.name,t.name)}function eHe(e){let t=e.declaration,r=XT(t),i=r&&Po(r);return{name:e.name,kind:oS(t),kindModifiers:XP(t),matchKind:S7[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Iu(t),containerName:i?i.text:"",containerKind:i?oS(r):""}}var tHe=bt({"src/services/navigateTo.ts"(){"use strict";ai()}}),oue={};xa(oue,{getNavigateToItems:()=>aRe});var cRe=bt({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";tHe()}});function dRe(e,t){GX=t,_O=e;try{return mn(aHe(mRe(e)),sHe)}finally{pRe()}}function uRe(e,t){GX=t,_O=e;try{return TRe(mRe(e))}finally{pRe()}}function pRe(){_O=void 0,GX=void 0,hO=[],Jy=void 0,VX=[]}function A7(e){return aM(e.getText(_O))}function FX(e){return e.node.kind}function fRe(e,t){e.children?e.children.push(t):e.children=[t]}function mRe(e){x.assert(!hO.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Jy=t;for(let r of e.statements)S1(r);return RE(),x.assert(!Jy&&!hO.length),t}function lS(e,t){fRe(Jy,aue(e,t))}function aue(e,t){return{node:e,name:t||(Hd(e)||ht(e)?Po(e):void 0),additionalNodes:void 0,parent:Jy,children:void 0,indent:Jy.indent+1}}function _Re(e){hD||(hD=new Map),hD.set(e,!0)}function hRe(e){for(let t=0;t0;i--){let o=r[i];cS(e,o)}return[r.length-1,r[0]]}function cS(e,t){let r=aue(e,t);fRe(Jy,r),hO.push(Jy),mue.push(hD),hD=void 0,Jy=r}function RE(){Jy.children&&(zX(Jy.children,Jy),cue(Jy.children)),Jy=hO.pop(),hD=mue.pop()}function DE(e,t,r){cS(e,r),S1(t),RE()}function yRe(e){e.initializer&&cHe(e.initializer)?(cS(e),Go(e.initializer,S1),RE()):DE(e,e.initializer)}function sue(e){let t=Po(e);if(t===void 0)return!1;if(Ya(t)){let r=t.expression;return Bl(r)||mp(r)||$p(r)}return!!t}function S1(e){if(GX.throwIfCancellationRequested(),!(!e||gI(e)))switch(e.kind){case 176:let t=e;DE(t,t.body);for(let l of t.parameters)dp(l,t)&&lS(l);break;case 174:case 177:case 178:case 173:sue(e)&&DE(e,e.body);break;case 172:sue(e)&&yRe(e);break;case 171:sue(e)&&lS(e);break;case 273:let r=e;r.name&&lS(r.name);let{namedBindings:i}=r;if(i)if(i.kind===274)lS(i);else for(let l of i.elements)lS(l);break;case 304:DE(e,e.name);break;case 305:let{expression:o}=e;Fe(o)?lS(e,o):lS(e);break;case 208:case 303:case 260:{let l=e;Qo(l.name)?S1(l.name):yRe(l);break}case 262:let s=e.name;s&&Fe(s)&&_Re(s.text),DE(e,e.body);break;case 219:case 218:DE(e,e.body);break;case 266:cS(e);for(let l of e.members)lHe(l)||lS(l);RE();break;case 263:case 231:case 264:cS(e);for(let l of e.members)S1(l);RE();break;case 267:DE(e,IRe(e).body);break;case 277:{let l=e.expression,d=Ma(l)||ia(l)?l:Os(l)||Ps(l)?l.body:void 0;d?(cS(e),S1(d),RE()):lS(e);break}case 281:case 271:case 181:case 179:case 180:case 265:lS(e);break;case 213:case 226:{let l=zl(e);switch(l){case 1:case 2:DE(e,e.right);return;case 6:case 3:{let d=e,p=d.left,h=l===3?p.expression:p,m=0,y;Fe(h.expression)?(_Re(h.expression.text),y=h.expression):[m,y]=gRe(d,h.expression),l===6?Ma(d.right)&&d.right.properties.length>0&&(cS(d,y),Go(d.right,S1),RE()):Ps(d.right)||Os(d.right)?DE(e,d.right,y):(cS(d,y),DE(e,d.right,p.name),RE()),hRe(m);return}case 7:case 9:{let d=e,p=l===7?d.arguments[0]:d.arguments[0].expression,h=d.arguments[1],[m,y]=gRe(e,p);cS(e,y),cS(e,at(L.createIdentifier(h.text),h)),S1(e.arguments[2]),RE(),RE(),hRe(m);return}case 5:{let d=e,p=d.left,h=p.expression;if(Fe(h)&&Lg(p)!=="prototype"&&hD&&hD.has(h.text)){Ps(d.right)||Os(d.right)?DE(e,d.right,h):D0(p)&&(cS(d,h),DE(d.left,d.right,M2(p)),RE());return}break}case 4:case 0:case 8:break;default:x.assertNever(l)}}default:kp(e)&&gn(e.jsDoc,l=>{gn(l.tags,d=>{qf(d)&&lS(d)})}),Go(e,S1)}}function zX(e,t){let r=new Map;CG(e,(i,o)=>{let s=i.name||Po(i.node),l=s&&A7(s);if(!l)return!0;let d=r.get(l);if(!d)return r.set(l,i),!0;if(d instanceof Array){for(let p of d)if(vRe(p,i,o,t))return!1;return d.push(i),!0}else{let p=d;return vRe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function nHe(e,t,r,i){function o(d){return Ps(d)||Ec(d)||wi(d)}let s=dr(t.node)||ia(t.node)?zl(t.node):0,l=dr(e.node)||ia(e.node)?zl(e.node):0;if(sM[s]&&sM[l]||o(e.node)&&sM[s]||o(t.node)&&sM[l]||Sc(e.node)&&lue(e.node)&&sM[s]||Sc(t.node)&&sM[l]||Sc(e.node)&&lue(e.node)&&o(t.node)||Sc(t.node)&&o(e.node)&&lue(e.node)){let d=e.additionalNodes&&$s(e.additionalNodes)||e.node;if(!Sc(e.node)&&!Sc(t.node)||o(e.node)||o(t.node)){let h=o(e.node)?e.node:o(t.node)?t.node:void 0;if(h!==void 0){let m=at(L.createConstructorDeclaration(void 0,[],void 0),h),y=aue(m);y.indent=e.indent+1,y.children=e.node===h?e.children:t.children,e.children=e.node===h?Eo([y],t.children||[t]):Eo(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=Eo(e.children||[{...e}],t.children||[t]),e.children&&(zX(e.children,e),cue(e.children)));d=e.node=at(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Eo(e.children,t.children),e.children&&zX(e.children,e);let p=t.node;return i.children[r-1].node.end===d.end?at(d,{pos:d.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(at(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function vRe(e,t,r,i){return nHe(e,t,r,i)?!0:rHe(e.node,t.node,i)?(iHe(e,t),!0):!1}function rHe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(bRe(e,r)&&bRe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return ra(e)===ra(t);case 267:return ERe(e,t)&&pue(e)===pue(t);default:return!0}}function lue(e){return!!(e.flags&16)}function bRe(e,t){let r=N_(e.parent)?e.parent.parent:e.parent;return r===t.node||Bo(t.additionalNodes,r)}function ERe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||ERe(e.body,t.body))}function iHe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Eo(e.children,t.children),e.children&&(zX(e.children,e),cue(e.children))}function cue(e){e.sort(oHe)}function oHe(e,t){return IL(SRe(e.node),SRe(t.node))||Zs(FX(e),FX(t))}function SRe(e){if(e.kind===267)return ARe(e);let t=Po(e);if(t&&rc(t)){let r=bT(t);return r&&Vi(r)}switch(e.kind){case 218:case 219:case 231:return RRe(e);default:return}}function due(e,t){if(e.kind===267)return aM(ARe(e));if(t){let r=Fe(t)?t.text:Js(t)?`[${A7(t.argumentExpression)}]`:A7(t);if(r.length>0)return aM(r)}switch(e.kind){case 312:let r=e;return oc(r)?`"${Qh(nc(Eu(ma(r.fileName))))}"`:"";case 277:return Ll(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Wv(e)&2048?"default":RRe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function aHe(e){let t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(let s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(FX(o)){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 s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(FX(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function TRe(e){return{text:due(e.node,e.name),kind:oS(e.node),kindModifiers:xRe(e.node),spans:uue(e),nameSpan:e.name&&fue(e.name),childItems:mn(e.children,TRe)}}function sHe(e){return{text:due(e.node,e.name),kind:oS(e.node),kindModifiers:xRe(e.node),spans:uue(e),childItems:mn(e.children,t)||VX,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:due(r.node,r.name),kind:oS(r.node),kindModifiers:XP(r.node),spans:uue(r),childItems:VX,indent:0,bolded:!1,grayed:!1}}}function uue(e){let t=[fue(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(fue(r));return t}function ARe(e){return Md(e)?uc(e.name):pue(e)}function pue(e){let t=[Xf(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Xf(e.name));return t.join(".")}function IRe(e){return e.body&&ql(e.body)?IRe(e.body):e}function lHe(e){return!e.name||e.name.kind===167}function fue(e){return e.kind===312?eb(e):Iu(e,_O)}function xRe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),XP(e)}function RRe(e){let{parent:t}=e;if(e.name&&u2(e.name)>0)return aM(Ts(e.name));if(wi(t))return aM(Ts(t.name));if(dr(t)&&t.operatorToken.kind===64)return A7(t.left).replace(CRe,"");if(mc(t))return A7(t.name);if(Wv(e)&2048)return"default";if(ci(e))return"";if(ia(t)){let r=DRe(t.expression);if(r!==void 0){if(r=aM(r),r.length>BX)return`${r} callback`;let i=aM(to(t.arguments,o=>as(o)||EI(o)?o.getText(_O):void 0).join(", "));return`${r}(${i}) callback`}}return""}function DRe(e){if(Fe(e))return e.text;if(kr(e)){let t=DRe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function cHe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function aM(e){return e=e.length>BX?e.substring(0,BX)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var CRe,BX,GX,_O,hO,Jy,mue,hD,VX,sM,dHe=bt({"src/services/navigationBar.ts"(){"use strict";ai(),CRe=/\s+/g,BX=150,hO=[],mue=[],VX=[],sM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),_ue={};xa(_ue,{getNavigationBarItems:()=>dRe,getNavigationTree:()=>uRe});var NRe=bt({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";dHe()}});function ag(e,t){jX.set(e,t)}function uHe(e,t){return Wo(NG(jX.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>CE(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function pHe(e,t,r,i){let o=jX.get(t);return o&&o.getEditsForAction(e,r,i)}var jX,PRe=bt({"src/services/refactorProvider.ts"(){"use strict";ai(),Sh(),jX=new Map}});function MRe(e,t=!0){let{file:r,program:i}=e,o=E1(e),s=so(r,o.start),l=s.parent&&Wv(s.parent)&32&&t?s.parent:iO(s,r,o);if(!l||!Yi(l.parent)&&!(N_(l.parent)&&Md(l.parent.parent)))return{error:wo(f.Could_not_find_export_statement)};let d=i.getTypeChecker(),p=yHe(l.parent,d),h=Wv(l)||(Ll(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:wo(f.This_file_already_has_a_default_export)};let y=E=>Fe(E)&&d.getSymbolAtLocation(E)?void 0:{error:wo(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let E=l;return E.name?y(E.name)||{exportNode:E,exportName:E.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{let E=l;if(!(E.declarationList.flags&2)||E.declarationList.declarations.length!==1)return;let S=Va(E.declarationList.declarations);return S.initializer?(x.assert(!m,"Can't have a default flag here"),y(S.name)||{exportNode:E,exportName:S.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{let E=l;return E.isExportEquals?void 0:y(E.expression)||{exportNode:E,exportName:E.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function fHe(e,t,r,i,o){mHe(e,r,i,t.getTypeChecker()),_He(t,r,i,o)}function mHe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Ll(r)&&!r.isExportEquals){let l=r.expression,d=LRe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([d])))}else o.delete(e,x.checkDefined(dD(r,90),"Should find a default keyword in modifier list"));else{let l=x.checkDefined(dD(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,L.createToken(90));break;case 243:let d=Va(r.declarationList.declarations);if(!Ms.Core.isSymbolReferencedInFile(i,s,e)&&!d.type){o.replaceNode(e,r,L.createExportDefault(x.checkDefined(d.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,L.createExportDefault(L.createIdentifier(i.text)));break;default:x.fail(`Unexpected exportNode kind ${r.kind}`)}}}function _He(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),d=x.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Ms.Core.eachExportReference(e.getSourceFiles(),l,s,d,i,r.text,t,p=>{if(r===p)return;let h=p.getSourceFile();t?hHe(h,p,o,r.text):gHe(h,p,o)})}function hHe(e,t,r,i){let{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,L.createIdentifier(i));break;case 276:case 281:{let l=o;r.replaceNode(e,l,hue(i,l.name.text));break}case 273:{let l=o;x.assert(l.name===t,"Import clause name should match provided ref");let d=hue(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,L.createNamedImports([d]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});let h=Da(l.parent.moduleSpecifier)?jq(l.parent.moduleSpecifier,e):1,m=Hy(void 0,[hue(i,t.text)],l.parent.moduleSpecifier,h);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,d);break}case 205:let s=o;r.replaceNode(e,o,L.createImportTypeNode(s.argument,s.attributes,L.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:x.failBadSyntaxKind(o)}}function gHe(e,t,r){let i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,L.createIdentifier("default"));break;case 276:{let o=L.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,LRe("default",i.name.text));break}default:x.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function hue(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function LRe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function yHe(e,t){if(Yi(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&T0(r.valueDeclaration)?t.getMergedSymbol(r):r}var UX,I7,x7,vHe=bt({"src/services/refactors/convertExport.ts"(){"use strict";ai(),Sh(),UX="Convert export",I7={name:"Convert default export to named export",description:wo(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},x7={name:"Convert named export to default export",description:wo(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},ag(UX,{kinds:[I7.kind,x7.kind],getAvailableActions:function(t){let r=MRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!jg(r)){let i=r.wasDefault?I7:x7;return[{name:UX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:UX,description:wo(f.Convert_default_export_to_named_export),actions:[{...I7,notApplicableReason:r.error},{...x7,notApplicableReason:r.error}]}]:Xe},getEditsForAction:function(t,r){x.assert(r===I7.name||r===x7.name,"Unexpected action name");let i=MRe(t);return x.assert(i&&!jg(i),"Expected applicable refactor info"),{edits:ur.ChangeTracker.with(t,s=>fHe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function kRe(e,t=!0){let{file:r}=e,i=E1(e),o=so(r,i.start),s=t?Fn(o,Lc):iO(o,r,i);if(!s||!Lc(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,d=aS(s,s.parent,r);if(d&&l>d.getStart())return;let{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:wRe(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:wo(f.Could_not_find_namespace_import_or_named_imports)}:{error:wo(f.Could_not_find_import_clause)}}function wRe(e,t){return RT(e.getCompilerOptions())&&THe(t.parent.moduleSpecifier,e.getTypeChecker())}function bHe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?EHe(e,o,r,i.import,RT(t.getCompilerOptions())):WRe(e,t,r,i.import,i.convertTo===1)}function EHe(e,t,r,i,o){let s=!1,l=[],d=new Map;Ms.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!mre(y.parent))s=!0;else{let E=ORe(y.parent).text;t.resolveName(E,y,-1,!0)&&d.set(E,!0),x.assert(SHe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});let p=new Map;for(let y of l){let E=ORe(y).text,S=p.get(E);S===void 0&&p.set(E,S=d.has(E)?QT(E,e):E),r.replaceNode(e,y,L.createIdentifier(S))}let h=[];p.forEach((y,E)=>{h.push(L.createImportSpecifier(!1,y===E?void 0:L.createIdentifier(E),L.createIdentifier(y)))});let m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,gue(m,void 0,h)):r.replaceNode(e,m,gue(m,s?L.createIdentifier(i.name.text):void 0,h))}function ORe(e){return kr(e)?e.name:e.right}function SHe(e){return kr(e)?e.expression:e.left}function WRe(e,t,r,i,o=wRe(t,i.parent)){let s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:d}=l,p=new Set;i.elements.forEach(A=>{let N=s.getSymbolAtLocation(A.name);N&&p.add(N)});let h=d&&Da(d)?Od.moduleSpecifierToValidIdentifier(d.text,99):"module";function m(A){return!!Ms.Core.eachSymbolReferenceInFile(A.name,s,e,N=>{let D=s.resolveName(h,N,-1,!0);return D?p.has(D)?Kd(N.parent):!0:!1})}let E=i.elements.some(m)?QT(h,e):h,S=new Set;for(let A of i.elements){let N=(A.propertyName||A.name).text;Ms.Core.eachSymbolReferenceInFile(A.name,s,e,D=>{let w=L.createPropertyAccessExpression(L.createIdentifier(E),N);Zu(D.parent)?r.replaceNode(e,D.parent,L.createPropertyAssignment(D.text,w)):Kd(D.parent)?S.add(A):r.replaceNode(e,D,w)})}if(r.replaceNode(e,i,o?L.createIdentifier(E):L.createNamespaceImport(L.createIdentifier(E))),S.size){let A=Wo(S.values(),N=>L.createImportSpecifier(N.isTypeOnly,N.propertyName&&L.createIdentifier(N.propertyName.text),L.createIdentifier(N.name.text)));r.insertNodeAfter(e,i.parent.parent,gue(l,void 0,A))}}function THe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function gue(e,t,r){return L.createImportDeclaration(void 0,L.createImportClause(!1,t,r&&r.length?L.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var HX,R7,AHe=bt({"src/services/refactors/convertImport.ts"(){"use strict";ai(),Sh(),HX="Convert import",R7={0:{name:"Convert namespace import to named imports",description:wo(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:wo(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:wo(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},ag(HX,{kinds:cI(R7).map(e=>e.kind),getAvailableActions:function(t){let r=kRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!jg(r)){let i=R7[r.convertTo];return[{name:HX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?cI(R7).map(i=>({name:HX,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):Xe},getEditsForAction:function(t,r){x.assert(gt(cI(R7),s=>s.name===r),"Unexpected action name");let i=kRe(t);return x.assert(i&&!jg(i),"Expected applicable refactor info"),{edits:ur.ChangeTracker.with(t,s=>bHe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function FRe(e,t=!0){let{file:r,startPosition:i}=e,o=su(r),s=Hz(E1(e)),l=s.pos===s.end&&t,d=IHe(r,i,s,l);if(!d||!ji(d))return{error:wo(f.Selection_is_not_a_valid_type_node)};let p=e.program.getTypeChecker(),h=NHe(d,o);if(h===void 0)return{error:wo(f.No_type_could_be_extracted_from_this_type_node)};let m=PHe(d,h);if(!ji(m))return{error:wo(f.Selection_is_not_a_valid_type_node)};let y=[];(Hv(m.parent)||QI(m.parent))&&s.end>d.end&&Hr(y,m.parent.types.filter(N=>wz(N,r,s.pos,s.end)));let E=y.length>1?y:m,S=xHe(p,E,h,r);if(!S)return{error:wo(f.No_type_could_be_extracted_from_this_type_node)};let A=KX(p,E);return{isJS:o,selection:E,enclosingNode:h,typeParameters:S,typeElements:A}}function IHe(e,t,r,i){let o=[()=>so(e,t),()=>lD(e,t,()=>!0)];for(let s of o){let l=s(),d=wz(l,e,r.pos,r.end),p=Fn(l,h=>h.parent&&ji(h)&&!dS(r,h.parent,e)&&(i||d));if(p)return p}}function KX(e,t){if(t){if(To(t)){let r=[];for(let i of t){let o=KX(e,i);if(!o)return;Hr(r,o)}return r}if(QI(t)){let r=[],i=new Map;for(let o of t.types){let s=KX(e,o);if(!s||!s.every(l=>l.name&&Em(i,nO(l.name))))return;Hr(r,s)}return r}else{if(NT(t))return KX(e,t.type);if(gp(t))return t.members}}}function dS(e,t,r){return Xw(e,Na(r.text,t.pos),t.end)}function xHe(e,t,r,i){let o=[],s=dI(t),l={pos:s[0].pos,end:s[s.length-1].end};for(let p of s)if(d(p))return;return o;function d(p){if(If(p)){if(Fe(p.typeName)){let h=p.typeName,m=e.resolveName(h.text,h,262144,!0);for(let y of m?.declarations||Xe)if(fl(y)&&y.getSourceFile()===i){if(y.name.escapedText===h.escapedText&&dS(y,l,i))return!0;if(dS(r,y,i)&&!dS(l,y,i)){yf(o,y);break}}}}else if(CT(p)){let h=Fn(p,m=>ZI(m)&&dS(m.extendsType,p,i));if(!h||!dS(l,h,i))return!0}else if(Lk(p)||wk(p)){let h=Fn(p.parent,$o);if(h&&h.type&&dS(h.type,p,i)&&!dS(l,h,i))return!0}else if(YI(p)){if(Fe(p.exprName)){let h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h?.valueDeclaration&&dS(r,h.valueDeclaration,i)&&!dS(l,h.valueDeclaration,i))return!0}else if(k0(p.exprName.left)&&!dS(l,p.parent,i))return!0}return i&&$I(p)&&hs(i,p.pos).line===hs(i,p.end).line&&lr(p,1),Go(p,d)}}function RHe(e,t,r,i){let{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:d,newTypeNode:p}=yue(i),h=L.createTypeAliasDeclaration(void 0,r,s.map(m=>L.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,HU(h),!0),e.replaceNodeRange(t,l,d,L.createTypeReferenceNode(r,s.map(m=>L.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.ExcludeWhitespace})}function DHe(e,t,r,i){var o;let{enclosingNode:s,typeParameters:l,typeElements:d}=i,p=L.createInterfaceDeclaration(void 0,r,l,void 0,d);at(p,(o=d[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,HU(p),!0);let{firstTypeNode:h,lastTypeNode:m}=yue(i);e.replaceNodeRange(t,h,m,L.createTypeReferenceNode(r,l.map(y=>L.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.ExcludeWhitespace})}function CHe(e,t,r,i,o){var s;dI(o.selection).forEach(A=>{lr(A,7168)});let{enclosingNode:l,typeParameters:d}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=yue(o),y=L.createJSDocTypedefTag(L.createIdentifier("typedef"),L.createJSDocTypeExpression(m),L.createIdentifier(i)),E=[];gn(d,A=>{let N=wx(A),D=L.createTypeParameterDeclaration(void 0,A.name),w=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&na(N,$0),[D]);E.push(w)});let S=L.createJSDocComment(void 0,L.createNodeArray(Eo(E,[y])));if(Xm(l)){let A=l.getStart(r),N=Ky(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),S,{suffix:N+N+r.text.slice(t7(r.text,A-1),A)})}else e.insertNodeBefore(r,l,S,!0);e.replaceNodeRange(r,p,h,L.createTypeReferenceNode(i,d.map(A=>L.createTypeReferenceNode(A.name,void 0))))}function yue(e){return To(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Hv(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function NHe(e,t){return Fn(e,Hi)||(t?Fn(e,Xm):void 0)}function PHe(e,t){return Fn(e,r=>r===t?"quit":!!(Hv(r.parent)||QI(r.parent)))??e}var JX,D7,C7,N7,MHe=bt({"src/services/refactors/extractType.ts"(){"use strict";ai(),Sh(),JX="Extract type",D7={name:"Extract to type alias",description:wo(f.Extract_to_type_alias),kind:"refactor.extract.type"},C7={name:"Extract to interface",description:wo(f.Extract_to_interface),kind:"refactor.extract.interface"},N7={name:"Extract to typedef",description:wo(f.Extract_to_typedef),kind:"refactor.extract.typedef"},ag(JX,{kinds:[D7.kind,C7.kind,N7.kind],getAvailableActions:function(t){let r=FRe(t,t.triggerReason==="invoked");return r?jg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:JX,description:wo(f.Extract_type),actions:[{...N7,notApplicableReason:r.error},{...D7,notApplicableReason:r.error},{...C7,notApplicableReason:r.error}]}]:Xe:[{name:JX,description:wo(f.Extract_type),actions:r.isJS?[N7]:Tn([D7],r.typeElements&&C7)}]:Xe},getEditsForAction:function(t,r){let{file:i}=t,o=FRe(t);x.assert(o&&!jg(o),"Expected to find a range to extract");let s=QT("NewType",i),l=ur.ChangeTracker.with(t,h=>{switch(r){case D7.name:return x.assert(!o.isJS,"Invalid actionName/JS combo"),RHe(h,i,s,o);case N7.name:return x.assert(o.isJS,"Invalid actionName/JS combo"),CHe(h,t,i,s,o);case C7.name:return x.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),DHe(h,i,s,o);default:x.fail("Unexpected action name")}}),d=i.fileName,p=sO(l,d,s,!1);return{edits:l,renameFilename:d,renameLocation:p}}})}});function jg(e){return e.error!==void 0}function CE(e,t){return t?e.substr(0,t.length)===t:!0}var LHe=bt({"src/services/refactors/helpers.ts"(){"use strict"}});function zRe(e,t,r,i){var o,s;let l=i.getTypeChecker(),d=Wu(e,t),p=d.parent;if(Fe(d)){if(rk(p)&&fN(p)&&Fe(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(BRe(p))return;let h=GRe(p,l,e);return h&&{references:h,declaration:p,replacement:p.initializer}}if(r){let h=l.resolveName(d.text,d,111551,!1);if(h=h&&l.getMergedSymbol(h),((s=h?.declarations)==null?void 0:s.length)!==1)return{error:wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};let m=h.declarations[0];if(!rk(m)||!fN(m)||!Fe(m.name)||BRe(m))return;let y=GRe(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:wo(f.Could_not_find_variable_to_inline)}}}function BRe(e){let t=na(e.parent.parent,Ml);return gt(t.modifiers,JI)}function GRe(e,t,r){let i=[],o=Ms.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Ms.isWriteAccessForReference(s)&&!Zu(s.parent)||Kd(s.parent)||Ll(s.parent)||YI(s.parent)||KL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function kHe(e,t){t=ol(t);let{parent:r}=e;return ht(r)&&(IN(t){for(let y of l)m.replaceNode(r,y,kHe(y,p));m.delete(r,d)})}}})}});function OHe(e,t,r,i,o,s){let l=t.getTypeChecker(),d=L7(e,r.all,l),p=Cue(e,t,o,r);i.createNewFile(e,p,WHe(e,d,i,r,t,o,p,s)),vue(t,i,e.fileName,p,My(o))}function WHe(e,t,r,i,o,s,l,d){let p=o.getTypeChecker(),h=AW(e.statements,vm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return P7(e,i.ranges,r),[...h,...i.all];let m=!_X(l,o,s,!!e.commonJsModuleIndicator),y=of(e,d),E=Tue(e,t.oldFileImportsFromTargetFile,l,o,s,m,y);E&&$P(r,e,E,!0,d),bue(e,i.all,r,t.unusedImportsFromOldFile,p),P7(e,i.ranges,r),Eue(r,o,s,e,t.movedSymbols,l,y);let S=FHe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,y),A=Aue(e,i.all,t.oldFileImportsFromTargetFile,m);return S.length&&A.length?[...h,...S,4,...A]:[...h,...S,...A]}function FHe(e,t,r,i,o,s,l,d,p){let h=[];for(let S of e.statements)bO(S,A=>{Tn(h,EO(A,vO(A),N=>t.has(o.getSymbolAtLocation(N))))});let m,y=[],E=v1();return r.forEach(S=>{if(S.declarations)for(let A of S.declarations){if(!k7(A))continue;let N=Rue(A);if(!N)continue;let D=QX(A);E(D)&&Due(e,D,N,i,d),$r(A,2048)?m=N:y.push(N.text)}}),Tn(h,M7(e,m,y,nc(e.fileName),s,l,d,p)),h}var yO,YX,$X,zHe=bt({"src/services/refactors/moveToNewFile.ts"(){"use strict";ai(),Sh(),yO="Move to a new file",YX=wo(f.Move_to_a_new_file),$X={name:yO,description:YX,kind:"refactor.move.newFile"},ag(yO,{kinds:[$X.kind],getAvailableActions:function(t){let r=SO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:yO,description:YX,actions:[$X]}]:t.preferences.provideRefactorNotApplicableReason?[{name:yO,description:YX,actions:[{...$X,notApplicableReason:wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe},getEditsForAction:function(t,r){x.assert(r===yO,"Wrong refactor invoked");let i=x.checkDefined(SO(t));return{edits:ur.ChangeTracker.with(t,s=>OHe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function VRe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function BHe(e,t,r,i,o,s,l,d){let p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,jRe(t,r,L7(t,o.all,p),s,o,i,l,d)),vue(i,s,t.fileName,r,My(l));else{let h=x.checkDefined(i.getSourceFile(r)),m=Od.createImportAdder(h,e.program,e.preferences,e.host);jRe(t,h,L7(t,o.all,p,oKe(h,o.all,p)),s,o,i,l,d,m)}}function jRe(e,t,r,i,o,s,l,d,p){let h=s.getTypeChecker(),m=AW(e.statements,vm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return P7(e,o.ranges,i),[...m,...o.all];let y=typeof t=="string"?t:t.fileName,E=!_X(y,s,l,!!e.commonJsModuleIndicator),S=of(e,d),A=Tue(e,r.oldFileImportsFromTargetFile,y,s,l,E,S);A&&$P(i,e,A,!0,d),bue(e,o.all,i,r.unusedImportsFromOldFile,h),P7(e,o.ranges,i),Eue(i,s,l,e,r.movedSymbols,y,S);let N=GHe(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,E,S,p),D=Aue(e,o.all,r.oldFileImportsFromTargetFile,E);return typeof t!="string"&&(t.statements.length>0?iKe(i,s,D,t,o):i.insertNodesAtEndOfFile(t,D,!1),N.length>0&&$P(i,t,N,!0,d)),p&&p.writeFixes(i,S),N.length&&D.length?[...m,...N,4,...D]:[...m,...N,...D]}function GHe(e,t,r,i,o,s,l,d,p,h,m){let y=[];if(m)r.forEach((D,w)=>{try{m.addImportFromExportedSymbol(vd(w,s),D)}catch{for(let j of e.statements)bO(j,K=>{Tn(y,EO(K,L.createStringLiteral(vO(K).text),Y=>r.has(s.getSymbolAtLocation(Y))))})}});else{let D=l.getSourceFile(t);for(let w of e.statements)bO(w,j=>{var K;let Y=vO(j),B=l.getCompilerOptions(),ce=l.getResolvedModuleFromModuleSpecifier(Y),z=(K=ce?.resolvedModule)==null?void 0:K.resolvedFileName;if(z&&D){let Z=x3(B,D,D.fileName,z,YT(l,d));Tn(y,EO(j,b1(Z,h),me=>r.has(s.getSymbolAtLocation(me))))}else Tn(y,EO(j,L.createStringLiteral(vO(j).text),Z=>r.has(s.getSymbolAtLocation(Z))))})}let E=l.getSourceFile(t),S,A=[],N=v1();return i.forEach(D=>{if(D.declarations)for(let w of D.declarations){if(!k7(w))continue;let j=Rue(w);if(!j)continue;let K=QX(w);N(K)&&Due(e,K,j,o,p),m&&s.isUnknownSymbol(D)?m.addImportFromExportedSymbol(vd(D,s)):$r(w,2048)?S=j:A.push(j.text)}}),E?Tn(y,M7(E,S,A,e.fileName,l,d,p,h)):Tn(y,M7(e,S,A,e.fileName,l,d,p,h))}function vue(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=ma(Yr(r,"..",i)),d=WL(s.fileName,l,o),p=s.statements[0]&&ri(s.statements[0].expression,Ma),h=p&&Vr(p.properties,m=>mc(m)&&Da(m.name)&&m.name.text==="files");h&&uu(h.initializer)&&t.insertNodeInListAfter(s,Ja(h.initializer.elements),L.createStringLiteral(d),h.initializer.elements)}function P7(e,t,r){for(let{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function bue(e,t,r,i,o){for(let s of e.statements)Bo(t,s)||bO(s,l=>Iue(e,l,r,d=>i.has(o.getSymbolAtLocation(d))))}function Eue(e,t,r,i,o,s,l){let d=t.getTypeChecker();for(let p of t.getSourceFiles())if(p!==i)for(let h of p.statements)bO(h,m=>{if(d.getSymbolAtLocation(vO(m))!==i.symbol)return;let y=D=>{let w=Xa(D.parent)?Qz(d,D.parent):vd(d.getSymbolAtLocation(D),d);return!!w&&o.has(w)};Iue(p,m,e,y);let E=Av(oi(i.path),s),S=x3(t.getCompilerOptions(),p,p.fileName,E,YT(t,r)),A=EO(m,b1(S,l),y);A&&e.insertNodeAfter(p,h,A);let N=VHe(m);N&&jHe(e,p,d,o,S,N,m,l)})}function VHe(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 ri(e.name,Fe);default:return x.assertNever(e,`Unexpected node kind ${e.kind}`)}}function jHe(e,t,r,i,o,s,l,d){let p=Od.moduleSpecifierToValidIdentifier(o,99),h=!1,m=[];if(Ms.Core.eachSymbolReferenceInFile(s,r,t,y=>{kr(y.parent)&&(h=h||!!r.resolveName(p,y,-1,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&m.push(y))}),m.length){let y=h?QT(p,t):p;for(let E of m)e.replaceNode(t,E,L.createIdentifier(y));e.insertNodeAfter(t,l,UHe(l,p,o,d))}}function UHe(e,t,r,i){let o=L.createIdentifier(t),s=b1(r,i);switch(e.kind){case 272:return L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(o)),s,void 0);case 271:return L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(s));case 260:return L.createVariableDeclaration(o,void 0,void 0,Sue(s));default:return x.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Sue(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function vO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function bO(e,t){if(Lc(e))Da(e.moduleSpecifier)&&t(e);else if(td(e))vh(e.moduleReference)&&as(e.moduleReference.expression)&&t(e);else if(Ml(e))for(let r of e.declarationList.declarations)r.initializer&&bu(r.initializer,!0)&&t(r)}function Tue(e,t,r,i,o,s,l){let d,p=[];return t.forEach(h=>{h.escapedName==="default"?d=L.createIdentifier(Xz(h)):p.push(h.name)}),M7(e,d,p,r,i,o,s,l)}function M7(e,t,r,i,o,s,l,d){let p=Av(oi(e.path),i),h=x3(o.getCompilerOptions(),e,e.fileName,p,YT(o,s));if(l){let m=r.map(y=>L.createImportSpecifier(!1,void 0,L.createIdentifier(y)));return mde(t,m,h,d)}else{x.assert(!t,"No default import should exist");let m=r.map(y=>L.createBindingElement(void 0,void 0,y));return m.length?URe(L.createObjectBindingPattern(m),void 0,Sue(b1(h,d))):void 0}}function URe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function Aue(e,t,r,i){return va(t,o=>{if(KRe(o)&&!HRe(e,o,i)&&Mue(o,s=>{var l;return r.has(x.checkDefined((l=ri(s,b_))==null?void 0:l.symbol))})){let s=JHe(ol(o),i);if(s)return s}return ol(o)})}function HRe(e,t,r,i){var o;return r?!ed(t)&&$r(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&xue(t).some(s=>e.symbol.exports.has(pl(s)))}function Iue(e,t,r,i){switch(t.kind){case 272:HHe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:KHe(e,t,r,i);break;default:x.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function HHe(e,t,r,i){if(!t.importClause)return;let{name:o,namedBindings:s}=t.importClause,l=!o||i(o),d=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&d)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(d)r.replaceNode(e,t.importClause,L.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(let p of s.elements)i(p.name)&&r.delete(e,p)}}function KHe(e,t,r,i){let{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&bu(t.initializer,!0)?r.delete(e,Uc(t.parent)&&Nn(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Fe(s.name)&&i(s.name)))r.delete(e,Uc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(let s of o.elements)Fe(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function KRe(e){return x.assert(Yi(e.parent),"Node parent should be a SourceFile"),$Re(e)||Ml(e)}function JHe(e,t){return t?[qHe(e)]:XHe(e)}function qHe(e){let t=Am(e)?Eo([L.createModifier(95)],y0(e)):void 0;switch(e.kind){case 262:return L.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let r=GT(e)?xv(e):void 0;return L.updateClassDeclaration(e,Eo(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return L.updateVariableStatement(e,t,e.declarationList);case 267:return L.updateModuleDeclaration(e,t,e.name,e.body);case 266:return L.updateEnumDeclaration(e,t,e.name,e.members);case 265:return L.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return L.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return L.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return x.fail();default:return x.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function XHe(e){return[e,...xue(e).map(JRe)]}function JRe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function xue(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return to(e.declarationList.declarations,t=>Fe(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Xe;case 244:return x.fail("Can't export an ExpressionStatement");default:return x.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function EO(e,t,r){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&YHe(i.namedBindings,r);return o||s?L.createImportDeclaration(void 0,L.createImportClause(i.isTypeOnly,o,s),ol(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let i=$He(e.name,r);return i?URe(i,e.type,Sue(t),e.parent.flags):void 0}default:return x.assertNever(e,`Unexpected import kind ${e.kind}`)}}function YHe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let r=e.elements.filter(i=>t(i.name));return r.length?L.createNamedImports(r):void 0}}function $He(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let r=e.elements.filter(i=>i.propertyName||!Fe(i.name)||t(i.name));return r.length?L.createObjectBindingPattern(r):void 0}}}function Rue(e){return ed(e)?ri(e.expression.left.name,Fe):ri(e.name,Fe)}function QX(e){switch(e.kind){case 260:return e.parent.parent;case 208:return QX(na(e.parent.parent,t=>wi(t)||Xa(t)));default:return e}}function Due(e,t,r,i,o){if(!HRe(e,t,o,r))if(o)ed(t)||i.insertExportModifier(e,t);else{let s=xue(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(JRe))}}function Cue(e,t,r,i){let o=t.getTypeChecker();if(i){let s=L7(e,i.all,o),l=oi(e.fileName),d=VN(e.fileName);return Yr(l,tKe(nKe(s.oldFileImportsFromTargetFile,s.movedSymbols),d,l,r))+d}return""}function QHe(e){let{file:t}=e,r=Hz(E1(e)),{statements:i}=t,o=Kl(i,h=>h.end>r.pos);if(o===-1)return;let s=i[o],l=QRe(t,s);l&&(o=l.start);let d=Kl(i,h=>h.end>=r.end,o);d!==-1&&r.end<=i[d].getStart()&&d--;let p=QRe(t,i[d]);return p&&(d=p.end),{toMove:i.slice(o,d===-1?i.length:d+1),afterLast:d===-1?void 0:i[d+1]}}function SO(e){let t=QHe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return LG(o,ZHe,(l,d)=>{for(let p=l;p!!(t.transformFlags&2))}function ZHe(e){return!eKe(e)&&!vm(e)}function eKe(e){switch(e.kind){case 272:return!0;case 271:return!$r(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&bu(t.initializer,!0));default:return!1}}function L7(e,t,r,i=new Set){let o=new Set,s=new Map,l=new Set,d=m(Nue(t));d&&s.set(d,!1);for(let y of t)Mue(y,E=>{o.add(x.checkDefined(ed(E)?r.getSymbolAtLocation(E.expression.left):E.symbol,"Need a symbol here"))});let p=new Set;for(let y of t)Pue(y,r,(E,S)=>{if(E.declarations){if(i.has(vd(E,r))){p.add(E);return}for(let A of E.declarations)if(qRe(A)){let N=s.get(E);s.set(E,(N===void 0||N)&&S)}else k7(A)&&rKe(A)===e&&!o.has(E)&&l.add(E)}});for(let y of s.keys())p.add(y);let h=new Set;for(let y of e.statements)Bo(t,y)||(d&&y.transformFlags&2&&p.delete(d),Pue(y,r,E=>{o.has(E)&&h.add(E),p.delete(E)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(y){if(y===void 0)return;let E=r.getJsxNamespace(y),S=r.resolveName(E,y,1920,!0);return S&>(S.declarations,qRe)?S:void 0}}function tKe(e,t,r,i){let o=e;for(let s=1;;s++){let l=Yr(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function nKe(e,t){return dh(e,Xz)||dh(t,Xz)||"newFile"}function Pue(e,t,r){e.forEachChild(function i(o){if(Fe(o)&&!kg(o)){let s=t.getSymbolAtLocation(o);s&&r(s,fE(o))}else o.forEachChild(i)})}function Mue(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 Wl(e.declarationList.declarations,r=>YRe(r.name,t));case 244:{let{expression:r}=e;return dr(r)&&zl(r)===1?t(e):void 0}}}function qRe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return XRe(e);case 208:return wi(e.parent.parent)&&XRe(e.parent.parent);default:return!1}}function XRe(e){return Yi(e.parent.parent.parent)&&!!e.initializer&&bu(e.initializer,!0)}function k7(e){return $Re(e)&&Yi(e.parent)||wi(e)&&Yi(e.parent.parent.parent)}function rKe(e){return wi(e)?e.parent.parent.parent:e.parent}function YRe(e,t){switch(e.kind){case 80:return t(na(e.parent,r=>wi(r)||Xa(r)));case 207:case 206:return Wl(e.elements,r=>jc(r)?void 0:YRe(r.name,t));default:return x.assertNever(e,`Unexpected name kind ${e.kind}`)}}function $Re(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function iKe(e,t,r,i,o){var s;let l=new Set,d=(s=i.symbol)==null?void 0:s.exports;if(d){let h=t.getTypeChecker(),m=new Map;for(let y of o.all)KRe(y)&&$r(y,32)&&Mue(y,E=>{var S;let A=b_(E)?(S=d.get(E.symbol.escapedName))==null?void 0:S.declarations:void 0,N=Wl(A,D=>Xl(D)?D:Kd(D)?ri(D.parent.parent,Xl):void 0);N&&N.moduleSpecifier&&m.set(N,(m.get(N)||new Set).add(E))});for(let[y,E]of Wo(m))if(y.exportClause&&xf(y.exportClause)&&Nn(y.exportClause.elements)){let S=y.exportClause.elements,A=jr(S,N=>Vr(vd(N.symbol,h).declarations,D=>k7(D)&&E.has(D))===void 0);if(Nn(A)===0){e.deleteNode(i,y),l.add(y);continue}Nn(A)Xl(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function QRe(e,t){if(ws(t)){let r=t.symbol.declarations;if(r===void 0||Nn(r)<=1||!Bo(r,t))return;let i=r[0],o=r[Nn(r)-1],s=to(r,p=>Gn(p)===e&&Hi(p)?p:void 0),l=Kl(e.statements,p=>p.end>=o.end),d=Kl(e.statements,p=>p.end>=i.end);return{toMove:s,start:d,end:l}}}function oKe(e,t,r){let i=new Set;for(let o of e.imports){let s=yN(o);if(Lc(s)&&s.importClause&&s.importClause.namedBindings&&zg(s.importClause.namedBindings))for(let l of s.importClause.namedBindings.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(vd(d,r))}if(KF(s.parent)&&tm(s.parent.name))for(let l of s.parent.name.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(vd(d,r))}}for(let o of t)Pue(o,r,s=>{let l=vd(s,r);l.valueDeclaration&&Gn(l.valueDeclaration)===e&&i.add(l)});return i}var w7,ZX,eY,aKe=bt({"src/services/refactors/moveToFile.ts"(){"use strict";Fse(),ai(),PRe(),w7="Move to file",ZX=wo(f.Move_to_file),eY={name:"Move to file",description:ZX,kind:"refactor.move.file"},ag(w7,{kinds:[eY.kind],getAvailableActions:function(t,r){let i=SO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:w7,description:ZX,actions:[eY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:w7,description:ZX,actions:[{...eY,notApplicableReason:wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe:Xe},getEditsForAction:function(t,r,i){x.assert(r===w7,"Wrong refactor invoked");let o=x.checkDefined(SO(t)),{host:s,program:l}=t;x.assert(i,"No interactive refactor arguments available");let d=i.targetFile;return O0(d)||WI(d)?s.fileExists(d)&&l.getSourceFile(d)===void 0?VRe(wo(f.Cannot_move_statements_to_the_selected_file)):{edits:ur.ChangeTracker.with(t,h=>BHe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:VRe(wo(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function sKe(e){let{file:t,startPosition:r,program:i}=e;return eDe(t,r,i)?[{name:tY,description:Lue,actions:[kue]}]:Xe}function lKe(e){let{file:t,startPosition:r,program:i}=e,o=eDe(t,r,i);if(!o)return;let s=i.getTypeChecker(),l=o[o.length-1],d=l;switch(l.kind){case 173:{d=L.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(o),l.type);break}case 174:{d=L.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(o),l.type,l.body);break}case 179:{d=L.updateCallSignature(l,l.typeParameters,h(o),l.type);break}case 176:{d=L.updateConstructorDeclaration(l,l.modifiers,h(o),l.body);break}case 180:{d=L.updateConstructSignature(l,l.typeParameters,h(o),l.type);break}case 262:{d=L.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(o),l.type,l.body);break}default:return x.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(d===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:ur.ChangeTracker.with(e,E=>{E.replaceNodeRange(t,o[0],o[o.length-1],d)})};function h(E){let S=E[E.length-1];return ws(S)&&S.body&&(E=E.slice(0,E.length-1)),L.createNodeArray([L.createParameterDeclaration(void 0,L.createToken(26),"args",void 0,L.createUnionTypeNode(mn(E,m)))])}function m(E){let S=mn(E.parameters,y);return lr(L.createTupleTypeNode(S),gt(S,A=>!!Nn(IR(A)))?0:1)}function y(E){x.assert(Fe(E.name));let S=at(L.createNamedTupleMember(E.dotDotDotToken,E.name,E.questionToken,E.type||L.createKeywordTypeNode(133)),E),A=E.symbol&&E.symbol.getDocumentationComment(s);if(A){let N=CO(A);N.length&&_E(S,[{text:`* ${N.split(` `).map(D=>` * ${D}`).join(` `)} `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return S}}function ZRe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function eDe(e,t,r){let i=so(e,t),o=Fn(i,ZRe);if(!o||ws(o)&&o.body&&Jw(o.body,t))return;let s=r.getTypeChecker(),l=o.symbol;if(!l)return;let d=l.declarations;if(Nn(d)<=1||!oo(d,E=>Gn(E)===e)||!ZRe(d[0]))return;let p=d[0].kind;if(!oo(d,E=>E.kind===p))return;let h=d;if(gt(h,E=>!!E.typeParameters||gt(E.parameters,S=>!!S.modifiers||!Fe(S.name))))return;let m=to(h,E=>s.getSignatureFromDeclaration(E));if(Nn(m)!==Nn(d))return;let y=s.getReturnTypeOfSignature(m[0]);if(oo(m,E=>s.getReturnTypeOfSignature(E)===y))return h}var tY,Lue,kue,cKe=bt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";ai(),Sh(),tY="Convert overload list to single signature",Lue=wo(f.Convert_overload_list_to_single_signature),kue={name:tY,description:Lue,kind:"refactor.rewrite.function.overloadList"},ag(tY,{kinds:[kue.kind],getEditsForAction:lKe,getAvailableActions:sKe})}});function dKe(e){let{file:t,startPosition:r,triggerReason:i}=e,o=tDe(t,r,i==="invoked");return o?jg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:nY,description:wue,actions:[{...O7,notApplicableReason:o.error},{...TO,notApplicableReason:o.error}]}]:Xe:[{name:nY,description:wue,actions:[o.addBraces?O7:TO]}]:Xe}function uKe(e,t){let{file:r,startPosition:i}=e,o=tDe(r,i);x.assert(o&&!jg(o),"Expected applicable refactor info");let{expression:s,returnStatement:l,func:d}=o,p;if(t===O7.name){let m=L.createReturnStatement(s);p=L.createBlock([m],!0),fD(s,m,r,3,!0)}else if(t===TO.name&&l){let m=s||L.createVoidZero();p=n7(m)?L.createParenthesizedExpression(m):m,lO(l,p,r,3,!1),fD(l,p,r,3,!1),tM(l,p,r,3,!1)}else x.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:ur.ChangeTracker.with(e,m=>{m.replaceNode(r,d.body,p)})}}function tDe(e,t,r=!0,i){let o=so(e,t),s=Wp(o);if(!s)return{error:wo(f.Could_not_find_a_containing_arrow_function)};if(!Os(s))return{error:wo(f.Containing_function_is_not_an_arrow_function)};if(!(!rf(s,o)||rf(s.body,o)&&!r)){if(CE(O7.kind,i)&&ht(s.body))return{func:s,addBraces:!0,expression:s.body};if(CE(TO.kind,i)&&Ko(s.body)&&s.body.statements.length===1){let l=Va(s.body.statements);if(Sm(l)){let d=l.expression&&Ma(gR(l.expression,!1))?L.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:d,returnStatement:l}}}}}var nY,wue,O7,TO,pKe=bt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";ai(),Sh(),nY="Add or remove braces in an arrow function",wue=wo(f.Add_or_remove_braces_in_an_arrow_function),O7={name:"Add braces to arrow function",description:wo(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},TO={name:"Remove braces from arrow function",description:wo(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},ag(nY,{kinds:[TO.kind],getEditsForAction:uKe,getAvailableActions:dKe})}}),fKe={},mKe=bt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";cKe(),pKe()}});function _Ke(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=rDe(t,r,i);if(!s)return Xe;let{selectedVariableDeclaration:l,func:d}=s,p=[],h=[];if(CE(IO.kind,o)){let m=l||Os(d)&&wi(d.parent)?void 0:wo(f.Could_not_convert_to_named_function);m?h.push({...IO,notApplicableReason:m}):p.push(IO)}if(CE(AO.kind,o)){let m=!l&&Os(d)?void 0:wo(f.Could_not_convert_to_anonymous_function);m?h.push({...AO,notApplicableReason:m}):p.push(AO)}if(CE(xO.kind,o)){let m=Ps(d)?void 0:wo(f.Could_not_convert_to_arrow_function);m?h.push({...xO,notApplicableReason:m}):p.push(xO)}return[{name:Oue,description:aDe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function hKe(e,t){let{file:r,startPosition:i,program:o}=e,s=rDe(r,i,o);if(!s)return;let{func:l}=s,d=[];switch(t){case AO.name:d.push(...bKe(e,l));break;case IO.name:let p=vKe(l);if(!p)return;d.push(...EKe(e,l,p));break;case xO.name:if(!Ps(l))return;d.push(...SKe(e,l));break;default:return x.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:d}}function nDe(e){let t=!1;return e.forEachChild(function r(i){if(sD(i)){t=!0;return}!ci(i)&&!Ec(i)&&!Ps(i)&&Go(i,r)}),t}function rDe(e,t,r){let i=so(e,t),o=r.getTypeChecker(),s=yKe(e,o,i.parent);if(s&&!nDe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=Wp(i);if(l&&(Ps(l)||Os(l))&&!rf(l.body,i)&&!nDe(l.body)&&!o.containsArgumentsReference(l))return Ps(l)&&oDe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function gKe(e){return wi(e)||Uc(e)&&e.declarations.length===1}function yKe(e,t,r){if(!gKe(r))return;let o=(wi(r)?r:Va(r.declarations)).initializer;if(o&&(Os(o)||Ps(o)&&!oDe(e,t,o)))return o}function iDe(e){if(ht(e)){let t=L.createReturnStatement(e),r=e.getSourceFile();return at(t,e),bp(t),lO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function vKe(e){let t=e.parent;if(!wi(t)||!fN(t))return;let r=t.parent,i=r.parent;if(!(!Uc(r)||!Ml(i)||!Fe(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function bKe(e,t){let{file:r}=e,i=iDe(t.body),o=L.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return ur.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function EKe(e,t,r){let{file:i}=e,o=iDe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:d,name:p}=r;rX(d);let h=Zb(s)&32|lu(t),m=L.createModifiersFromModifierFlags(h),y=L.createFunctionDeclaration(Nn(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?ur.ChangeTracker.with(e,E=>E.replaceNode(i,d,y)):ur.ChangeTracker.with(e,E=>{E.delete(i,s),E.insertNodeAfter(i,d,y)})}function SKe(e,t){let{file:r}=e,o=t.body.statements[0],s;TKe(t.body,o)?(s=o.expression,bp(s),$T(o,s)):s=t.body;let l=L.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,L.createToken(39),s);return ur.ChangeTracker.with(e,d=>d.replaceNode(r,t,l))}function TKe(e,t){return e.statements.length===1&&Sm(t)&&!!t.expression}function oDe(e,t,r){return!!r.name&&Ms.Core.isSymbolReferencedInFile(r.name,t,e)}var Oue,aDe,AO,IO,xO,AKe=bt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";ai(),Sh(),Oue="Convert arrow function or function expression",aDe=wo(f.Convert_arrow_function_or_function_expression),AO={name:"Convert to anonymous function",description:wo(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},IO={name:"Convert to named function",description:wo(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},xO={name:"Convert to arrow function",description:wo(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},ag(Oue,{kinds:[AO.kind,IO.kind,xO.kind],getEditsForAction:hKe,getAvailableActions:_Ke})}}),IKe={},xKe=bt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";AKe()}});function RKe(e){let{file:t,startPosition:r}=e;return su(t)||!cDe(t,r,e.program.getTypeChecker())?Xe:[{name:F7,description:Bue,actions:[Gue]}]}function DKe(e,t){x.assert(t===F7,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,d=cDe(r,i,o.getTypeChecker());if(!d||!s)return;let p=NKe(d,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:ur.ChangeTracker.with(e,m=>CKe(r,o,l,m,d,p))}:{edits:[]}}function CKe(e,t,r,i,o,s){let l=s.signature,d=mn(fDe(o,t,r),m=>ol(m));if(l){let m=mn(fDe(l,t,r),y=>ol(y));h(l,m)}h(o,d);let p=FC(s.functionCalls,(m,y)=>Zs(m.pos,y.pos));for(let m of p)if(m.arguments&&m.arguments.length){let y=ol(BKe(o,m.arguments),!0);i.replaceNodeRange(Gn(m),Va(m.arguments),Ja(m.arguments),y,{leadingTriviaOption:ur.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ur.TrailingTriviaOption.Include})}function h(m,y){i.replaceNodeRangeWithNodes(e,Va(m.parameters),Ja(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:ur.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ur.TrailingTriviaOption.Include})}}function NKe(e,t,r){let i=VKe(e),o=Pl(e)?GKe(e):[],s=m0([...i,...o],Ty),l=t.getTypeChecker(),d=va(s,y=>Ms.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),p=h(d);return oo(p.declarations,y=>Bo(s,y))||(p.valid=!1),p;function h(y){let E={accessExpressions:[],typeUsages:[]},S={functionCalls:[],declarations:[],classReferences:E,valid:!0},A=mn(i,m),N=mn(o,m),D=Pl(e),w=mn(i,j=>Wue(j,l));for(let j of y){if(j.kind===Ms.EntryKind.Span){S.valid=!1;continue}if(Bo(w,m(j.node))){if(kKe(j.node.parent)){S.signature=j.node.parent;continue}let Y=lDe(j);if(Y){S.functionCalls.push(Y);continue}}let K=Wue(j.node,l);if(K&&Bo(w,K)){let Y=Fue(j);if(Y){S.declarations.push(Y);continue}}if(Bo(A,m(j.node))||JP(j.node)){if(sDe(j))continue;let B=Fue(j);if(B){S.declarations.push(B);continue}let ce=lDe(j);if(ce){S.functionCalls.push(ce);continue}}if(D&&Bo(N,m(j.node))){if(sDe(j))continue;let B=Fue(j);if(B){S.declarations.push(B);continue}let ce=PKe(j);if(ce){E.accessExpressions.push(ce);continue}if(Sc(e.parent)){let z=MKe(j);if(z){E.typeUsages.push(z);continue}}}S.valid=!1}return S}function m(y){let E=l.getSymbolAtLocation(y);return E&&tX(E,l)}}function Wue(e,t){let r=NO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Tl(o)&6))return o}}function sDe(e){let t=e.node;if(Qu(t.parent)||gh(t.parent)||td(t.parent)||Xv(t.parent)||Kd(t.parent)||Ll(t.parent))return t}function Fue(e){if(Hd(e.node.parent))return e.node}function lDe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 213:case 214:let i=ri(r,v_);if(i&&i.expression===t)return i;break;case 211:let o=ri(r,kr);if(o&&o.parent&&o.name===t){let l=ri(o.parent,v_);if(l&&l.expression===o)return l}break;case 212:let s=ri(r,Js);if(s&&s.parent&&s.argumentExpression===t){let l=ri(s.parent,v_);if(l&&l.expression===s)return l}break}}}function PKe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 211:let i=ri(r,kr);if(i&&i.expression===t)return i;break;case 212:let o=ri(r,Js);if(o&&o.expression===t)return o;break}}}function MKe(e){let t=e.node;if(qT(t)===2||f6(t.parent))return t}function cDe(e,t,r){let i=lD(e,t),o=iie(i);if(!LKe(i)&&o&&wKe(o,r)&&rf(o,i)&&!(o.body&&rf(o.body,i)))return o}function LKe(e){let t=Fn(e,zx);if(t){let r=Fn(t,i=>!zx(i));return!!r&&ws(r)}return!1}function kKe(e){return _h(e)&&(pu(e.parent)||gp(e.parent))}function wKe(e,t){var r;if(!OKe(e.parameters,t))return!1;switch(e.kind){case 262:return dDe(e)&&W7(e,t);case 174:if(Ma(e.parent)){let i=Wue(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&W7(e,t)}return W7(e,t);case 176:return Sc(e.parent)?dDe(e.parent)&&W7(e,t):uDe(e.parent.parent)&&W7(e,t);case 218:case 219:return uDe(e.parent)}return!1}function W7(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function dDe(e){return e.name?!0:!!dD(e,90)}function OKe(e,t){return FKe(e)>=mDe&&oo(e,r=>WKe(r,t))}function WKe(e,t){if(Kh(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Fe(e.name)}function uDe(e){return wi(e)&&Kx(e)&&Fe(e.name)&&!e.type}function zue(e){return e.length>0&&sD(e[0].name)}function FKe(e){return zue(e)?e.length-1:e.length}function pDe(e){return zue(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function zKe(e,t){return Fe(t)&&Xf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function BKe(e,t){let r=pDe(e.parameters),i=Kh(Ja(r)),o=i?t.slice(0,r.length-1):t,s=mn(o,(d,p)=>{let h=rY(r[p]),m=zKe(h,d);return bp(m.name),mc(m)&&bp(m.initializer),$T(d,m),m});if(i&&t.length>=r.length){let d=t.slice(r.length-1),p=L.createPropertyAssignment(rY(Ja(r)),L.createArrayLiteralExpression(d));s.push(p)}return L.createObjectLiteralExpression(s,!1)}function fDe(e,t,r){let i=t.getTypeChecker(),o=pDe(e.parameters),s=mn(o,m),l=L.createObjectBindingPattern(s),d=y(o),p;oo(o,A)&&(p=L.createObjectLiteralExpression());let h=L.createParameterDeclaration(void 0,void 0,l,void 0,d,p);if(zue(e.parameters)){let N=e.parameters[0],D=L.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return bp(D.name),$T(N.name,D.name),N.type&&(bp(D.type),$T(N.type,D.type)),L.createNodeArray([D,h])}return L.createNodeArray([h]);function m(N){let D=L.createBindingElement(void 0,void 0,rY(N),Kh(N)&&A(N)?L.createArrayLiteralExpression():N.initializer);return bp(D),N.initializer&&D.initializer&&$T(N.initializer,D.initializer),D}function y(N){let D=mn(N,E);return D_(L.createTypeLiteralNode(D),1)}function E(N){let D=N.type;!D&&(N.initializer||Kh(N))&&(D=S(N));let w=L.createPropertySignature(void 0,rY(N),A(N)?L.createToken(58):N.questionToken,D);return bp(w),$T(N.name,w.name),N.type&&w.type&&$T(N.type,w.type),w}function S(N){let D=i.getTypeAtLocation(N);return rM(D,N,t,r)}function A(N){if(Kh(N)){let D=i.getTypeAtLocation(N);return!i.isTupleType(D)}return i.isOptionalParameter(N)}}function rY(e){return Xf(e.name)}function GKe(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[x.checkDefined(dD(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function VKe(e){switch(e.kind){case 262:return e.name?[e.name]:[x.checkDefined(dD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let r=x.checkDefined(_s(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 x.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var F7,mDe,Bue,Gue,jKe=bt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";ai(),Sh(),F7="Convert parameters to destructured object",mDe=1,Bue=wo(f.Convert_parameters_to_destructured_object),Gue={name:F7,description:Bue,kind:"refactor.rewrite.parameters.toDestructured"},ag(F7,{kinds:[Gue.kind],getEditsForAction:DKe,getAvailableActions:RKe})}}),UKe={},HKe=bt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";jKe()}});function KKe(e){let{file:t,startPosition:r}=e,i=_De(t,r),o=Vue(i),s=Da(o),l={name:iY,description:oY,actions:[]};return s&&e.triggerReason!=="invoked"?Xe:Xh(o)&&(s||dr(o)&&jue(o).isValidConcatenation)?(l.actions.push(aY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...aY,notApplicableReason:wo(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):Xe}function _De(e,t){let r=so(e,t),i=Vue(r);return!jue(i).isValidConcatenation&&Ou(i.parent)&&dr(i.parent.parent)?i.parent.parent:r}function JKe(e,t){let{file:r,startPosition:i}=e,o=_De(r,i);switch(t){case oY:return{edits:qKe(e,o)};default:return x.fail("invalid action")}}function qKe(e,t){let r=Vue(t),i=e.file,o=$Ke(jue(r),i),s=Yb(i.text,r.end);if(s){let l=s[s.length-1],d={pos:s[0].pos,end:l.end};return ur.ChangeTracker.with(e,p=>{p.deleteRange(i,d),p.replaceNode(i,r,o)})}else return ur.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function XKe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Vue(e){return Fn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(dr(r.parent)&&XKe(r.parent));default:return"quit"}})||e}function jue(e){let t=l=>{if(!dr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Da(l)||HI(l)};let{nodes:d,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||Da(l.right)||F4(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};let y=l.operatorToken.kind===40,E=m&&y;return d.push(l.right),p.push(l.operatorToken),{nodes:d,operators:p,hasString:!0,validOperators:E}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function YKe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function hDe(e){let t=KI(e)||YU(e)?-2:-1;return uc(e).slice(1,t)}function gDe(e,t){let r=[],i="",o="";for(;e{yDe(K);let B=Y===E.templateSpans.length-1,ce=K.literal.text+(B?A:""),z=hDe(K.literal)+(B?N:"");return L.createTemplateSpan(K.expression,w&&B?L.createTemplateTail(ce,z):L.createTemplateMiddle(ce,z))});h.push(...j)}else{let j=w?L.createTemplateTail(A,N):L.createTemplateMiddle(A,N);o(D,j),h.push(L.createTemplateSpan(E,j))}}return L.createTemplateExpression(m,h)}function yDe(e){let t=e.getSourceFile();tM(e,e.expression,t,3,!1),lO(e.expression,e.expression,t,3,!1)}function QKe(e){return Ou(e)&&(yDe(e),e=e.expression),e}var iY,oY,aY,vDe,bDe,ZKe=bt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";ai(),Sh(),iY="Convert to template string",oY=wo(f.Convert_to_template_string),aY={name:iY,description:oY,kind:"refactor.rewrite.string"},ag(iY,{kinds:[aY.kind],getEditsForAction:JKe,getAvailableActions:KKe}),vDe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){let s=i.shift();tM(e[s],o,t,3,!1),r(s,o)}}}}),eJe={},tJe=bt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";ZKe()}});function nJe(e){let t=EDe(e,e.triggerReason==="invoked");return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:z7,description:cY,actions:[{...dY,notApplicableReason:t.error}]}]:Xe:[{name:z7,description:cY,actions:[dY]}]:Xe}function rJe(e,t){let r=EDe(e);return x.assert(r&&!jg(r),"Expected applicable refactor info"),{edits:ur.ChangeTracker.with(e,o=>uJe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function sY(e){return dr(e)||PR(e)}function iJe(e){return ed(e)||Sm(e)||Ml(e)}function lY(e){return sY(e)||iJe(e)}function EDe(e,t=!0){let{file:r,program:i}=e,o=E1(e),s=o.length===0;if(s&&!t)return;let l=so(r,o.start),d=Bz(r,o.start+o.length),p=dc(l.pos,d&&d.end>=l.pos?d.getEnd():l.getEnd()),h=s?cJe(l):lJe(l,p),m=h&&lY(h)?dJe(h):void 0;if(!m)return{error:wo(f.Could_not_find_convertible_access_expression)};let y=i.getTypeChecker();return PR(m)?oJe(m,y):aJe(m)}function oJe(e,t){let r=e.condition,i=Hue(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:wo(f.Could_not_find_convertible_access_expression)};if((kr(r)||Fe(r))&&Uue(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(dr(r)){let o=SDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:wo(f.Could_not_find_matching_access_expressions)}}}function aJe(e){if(e.operatorToken.kind!==56)return{error:wo(f.Can_only_convert_logical_AND_access_chains)};let t=Hue(e.right);if(!t)return{error:wo(f.Could_not_find_convertible_access_expression)};let r=SDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:wo(f.Could_not_find_matching_access_expressions)}}function SDe(e,t){let r=[];for(;dr(t)&&t.operatorToken.kind===56;){let o=Uue(fs(e),fs(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=Uue(e,t);return i&&r.push(i),r.length>0?r:void 0}function Uue(e,t){if(!(!Fe(t)&&!kr(t)&&!Js(t)))return sJe(e,t)?t:void 0}function sJe(e,t){for(;(ia(e)||kr(e)||Js(e))&&RO(e)!==RO(t);)e=e.expression;for(;kr(e)&&kr(t)||Js(e)&&Js(t);){if(RO(e)!==RO(t))return!1;e=e.expression,t=t.expression}return Fe(e)&&Fe(t)&&e.getText()===t.getText()}function RO(e){if(Fe(e)||$p(e))return e.getText();if(kr(e))return RO(e.name);if(Js(e))return RO(e.argumentExpression)}function lJe(e,t){for(;e.parent;){if(lY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function cJe(e){for(;e.parent;){if(lY(e)&&!lY(e.parent))return e;e=e.parent}}function dJe(e){if(sY(e))return e;if(Ml(e)){let t=RI(e),r=t?.initializer;return r&&sY(r)?r:void 0}return e.expression&&sY(e.expression)?e.expression:void 0}function Hue(e){if(e=fs(e),dr(e))return Hue(e.left);if((kr(e)||Js(e)||ia(e))&&!Ud(e))return e}function TDe(e,t,r){if(kr(t)||Js(t)||ia(t)){let i=TDe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),ia(t))return s?L.createCallChain(i,L.createToken(29),t.typeArguments,t.arguments):L.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(kr(t))return s?L.createPropertyAccessChain(i,L.createToken(29),t.name):L.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Js(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function uJe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:d}=i,p=l[l.length-1],h=TDe(t,s,l);h&&(kr(h)||Js(h)||ia(h))&&(dr(d)?r.replaceNodeRange(e,p,s,h):PR(d)&&r.replaceNode(e,d,L.createBinaryExpression(h,L.createToken(61),d.whenFalse)))}var z7,cY,dY,pJe=bt({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";ai(),Sh(),z7="Convert to optional chain expression",cY=wo(f.Convert_to_optional_chain_expression),dY={name:z7,description:cY,kind:"refactor.rewrite.expression.optionalChain"},ag(z7,{kinds:[dY.kind],getEditsForAction:rJe,getAvailableActions:nJe})}}),fJe={},mJe=bt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";pJe()}});function ADe(e){let t=e.kind,r=Kue(e.file,E1(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Xe;let A=[];return CE(vD.kind,t)&&A.push({name:gD,description:vD.description,actions:[{...vD,notApplicableReason:S(r.errors)}]}),CE(yD.kind,t)&&A.push({name:gD,description:yD.description,actions:[{...yD,notApplicableReason:S(r.errors)}]}),A}let o=bJe(i,e);if(o===void 0)return Xe;let s=[],l=new Map,d,p=[],h=new Map,m,y=0;for(let{functionExtraction:A,constantExtraction:N}of o){if(CE(vD.kind,t)){let D=A.description;A.errors.length===0?l.has(D)||(l.set(D,!0),s.push({description:D,name:`function_scope_${y}`,kind:vD.kind})):d||(d={description:D,name:`function_scope_${y}`,notApplicableReason:S(A.errors),kind:vD.kind})}if(CE(yD.kind,t)){let D=N.description;N.errors.length===0?h.has(D)||(h.set(D,!0),p.push({description:D,name:`constant_scope_${y}`,kind:yD.kind})):m||(m={description:D,name:`constant_scope_${y}`,notApplicableReason:S(N.errors),kind:yD.kind})}y++}let E=[];return s.length?E.push({name:gD,description:wo(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&d&&E.push({name:gD,description:wo(f.Extract_function),actions:[d]}),p.length?E.push({name:gD,description:wo(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&E.push({name:gD,description:wo(f.Extract_constant),actions:[m]}),E.length?E:Xe;function S(A){let N=A[0].messageText;return typeof N!="string"&&(N=N.messageText),N}}function IDe(e,t){let i=Kue(e.file,E1(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return x.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),yJe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return x.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),vJe(i,e,l)}x.fail("Unrecognized action name")}function Kue(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[Qc(e,t.start,i,Sd.cannotExtractEmpty)]};let o=i===0&&r,s=ede(e,t.start),l=Bz(e,Jl(t)),d=s&&l&&r?_Je(s,l,e):t,p=o?BJe(s):iO(s,e,d),h=o?p:iO(l,e,d),m=0,y;if(!p||!h)return{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]};if(p.flags&16777216)return{errors:[Qc(e,t.start,i,Sd.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]};if(p!==h){if(!RDe(p.parent))return{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]};let j=[];for(let K of p.parent.statements){if(K===p||j.length){let Y=w(K);if(Y)return{errors:Y};j.push(K)}if(K===h)break}return j.length?{targetRange:{range:j,facts:m,thisNode:y}}:{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]}}if(Sm(p)&&!p.expression)return{errors:[Qc(e,t.start,i,Sd.cannotExtractRange)]};let E=A(p),S=N(E)||w(E);if(S)return{errors:S};return{targetRange:{range:hJe(E),facts:m,thisNode:y}};function A(j){if(Sm(j)){if(j.expression)return j.expression}else if(Ml(j)||Uc(j)){let K=Ml(j)?j.declarationList.declarations:j.declarations,Y=0,B;for(let ce of K)ce.initializer&&(Y++,B=ce.initializer);if(Y===1)return B}else if(wi(j)&&j.initializer)return j.initializer;return j}function N(j){if(Fe(ed(j)?j.expression:j))return[Pr(j,Sd.cannotExtractIdentifier)]}function D(j,K){let Y=j;for(;Y!==K;){if(Y.kind===172){ra(Y)&&(m|=32);break}else if(Y.kind===169){Wp(Y).kind===176&&(m|=32);break}else Y.kind===174&&ra(Y)&&(m|=32);Y=Y.parent}}function w(j){let K;if((me=>{me[me.None=0]="None",me[me.Break=1]="Break",me[me.Continue=2]="Continue",me[me.Return=4]="Return"})(K||(K={})),x.assert(j.pos<=j.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),x.assert(!Km(j.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Hi(j)&&!(Xh(j)&&xDe(j))&&!$ue(j))return[Pr(j,Sd.statementOrExpressionExpected)];if(j.flags&33554432)return[Pr(j,Sd.cannotExtractAmbientBlock)];let Y=ad(j);Y&&D(j,Y);let B,ce=4,z;if(Z(j),m&8){let me=Lu(j,!1,!1);(me.kind===262||me.kind===174&&me.parent.kind===210||me.kind===218)&&(m|=16)}return B;function Z(me){if(B)return!0;if(Hd(me)){let q=me.kind===260?me.parent.parent:me;if($r(q,32))return(B||(B=[])).push(Pr(me,Sd.cannotExtractExportedEntity)),!0}switch(me.kind){case 272:return(B||(B=[])).push(Pr(me,Sd.cannotExtractImport)),!0;case 277:return(B||(B=[])).push(Pr(me,Sd.cannotExtractExportedEntity)),!0;case 108:if(me.parent.kind===213){let q=ad(me);if(q===void 0||q.pos=t.start+t.length)return(B||(B=[])).push(Pr(me,Sd.cannotExtractSuper)),!0}else m|=8,y=me;break;case 219:Go(me,function q(J){if(sD(J))m|=8,y=me;else{if(ci(J)||$o(J)&&!Os(J))return!1;Go(J,q)}});case 263:case 262:Yi(me.parent)&&me.parent.externalModuleIndicator===void 0&&(B||(B=[])).push(Pr(me,Sd.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let ge=ce;switch(me.kind){case 245:ce&=-5;break;case 258:ce=0;break;case 241:me.parent&&me.parent.kind===258&&me.parent.finallyBlock===me&&(ce=4);break;case 297:case 296:ce|=1;break;default:Nv(me,!1)&&(ce|=3);break}switch(me.kind){case 197:case 110:m|=8,y=me;break;case 256:{let q=me.label;(z||(z=[])).push(q.escapedText),Go(me,Z),z.pop();break}case 252:case 251:{let q=me.label;q?Bo(z,q.escapedText)||(B||(B=[])).push(Pr(me,Sd.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ce&(me.kind===252?1:2)||(B||(B=[])).push(Pr(me,Sd.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:ce&4?m|=1:(B||(B=[])).push(Pr(me,Sd.cannotExtractRangeContainingConditionalReturnStatement));break;default:Go(me,Z);break}ce=ge}}}function _Je(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function hJe(e){if(Hi(e))return[e];if(Xh(e))return ed(e.parent)?[e.parent]:e;if($ue(e))return e}function Jue(e){return Os(e)?wV(e.body):ws(e)||Yi(e)||N_(e)||ci(e)}function gJe(e){let t=qy(e.range)?Va(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=ad(t);if(i){let o=Fn(t,ws);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Fn(t,i=>ws(i)).parent),Jue(t)&&(r.push(t),t.kind===312))return r}function yJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:d}}=que(e,t);return x.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),xJe(o,i[r],s[r],d,e,t)}function vJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:d}}=que(e,t);x.assert(!l[r].length,"The extraction went missing? How?"),x.assert(d.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let p=ht(o)?o:o.statements[0].expression;return RJe(p,i[r],s[r],e.facts,t)}function bJe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=que(e,t);return r.map((l,d)=>{let p=EJe(l),h=SJe(l),m=ws(l)?TJe(l):ci(l)?AJe(l):IJe(l),y,E;return m===1?(y=tg(wo(f.Extract_to_0_in_1_scope),[p,"global"]),E=tg(wo(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(y=tg(wo(f.Extract_to_0_in_1_scope),[p,"module"]),E=tg(wo(f.Extract_to_0_in_1_scope),[h,"module"])):(y=tg(wo(f.Extract_to_0_in_1),[p,m]),E=tg(wo(f.Extract_to_0_in_1),[h,m])),d===0&&!ci(l)&&(E=tg(wo(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:y,errors:i[d]},constantExtraction:{description:E,errors:o[d]}}})}function que(e,t){let{file:r}=t,i=gJe(e),o=FJe(e,r),s=zJe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function EJe(e){return ws(e)?"inner function":ci(e)?"method":"function"}function SJe(e){return ci(e)?"readonly field":"constant"}function TJe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:y7;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:x.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function AJe(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 IJe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function xJe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,d){let p=d.program.getTypeChecker(),h=ns(d.program.getCompilerOptions()),m=Od.createImportAdder(d.file,d.program,d.preferences,d.host),y=t.getSourceFile(),E=QT(ci(t)?"newMethod":"newFunction",y),S=ir(t),A=L.createIdentifier(E),N,D=[],w=[],j;r.forEach((Ae,De)=>{let Le;if(!S){let be=p.getTypeOfSymbolAtLocation(Ae.symbol,Ae.node);be=p.getBaseTypeOfLiteralType(be),Le=Od.typeToAutoImportableTypeNode(p,m,be,t,h,1)}let Et=L.createParameterDeclaration(void 0,void 0,De,void 0,Le);D.push(Et),Ae.usage===2&&(j||(j=[])).push(Ae),w.push(L.createIdentifier(De))});let Y=Wo(i.values(),Ae=>({type:Ae,declaration:CJe(Ae,d.startPosition)})).sort(NJe),B=Y.length===0?void 0:to(Y,({declaration:Ae})=>Ae),ce=B!==void 0?B.map(Ae=>L.createTypeReferenceNode(Ae.name,void 0)):void 0;if(ht(e)&&!S){let Ae=p.getContextualType(e);N=p.typeToTypeNode(Ae,t,1)}let{body:z,returnValueProperty:Z}=MJe(e,s,j,o,!!(l.facts&1));bp(z);let me,ge=!!(l.facts&16);if(ci(t)){let Ae=S?[]:[L.createModifier(123)];l.facts&32&&Ae.push(L.createModifier(126)),l.facts&4&&Ae.push(L.createModifier(134)),me=L.createMethodDeclaration(Ae.length?Ae:void 0,l.facts&2?L.createToken(42):void 0,A,void 0,B,D,N,z)}else ge&&D.unshift(L.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),me=L.createFunctionDeclaration(l.facts&4?[L.createToken(134)]:void 0,l.facts&2?L.createToken(42):void 0,A,B,D,N,z);let q=ur.ChangeTracker.fromContext(d),J=(qy(l.range)?Ja(l.range):l.range).end,re=wJe(J,t);re?q.insertNodeBefore(d.file,re,me,!0):q.insertNodeAtEndOfScope(d.file,t,me),m.writeFixes(q);let pe=[],xe=PJe(t,l,E);ge&&w.unshift(L.createIdentifier("this"));let fe=L.createCallExpression(ge?L.createPropertyAccessExpression(xe,"call"):xe,ce,w);if(l.facts&2&&(fe=L.createYieldExpression(L.createToken(42),fe)),l.facts&4&&(fe=L.createAwaitExpression(fe)),Yue(e)&&(fe=L.createJsxExpression(void 0,fe)),s.length&&!j)if(x.assert(!Z,"Expected no returnValueProperty"),x.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let Ae=s[0];pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ol(Ae.name),void 0,ol(Ae.type),fe)],Ae.parent.flags)))}else{let Ae=[],De=[],Le=s[0].parent.flags,Et=!1;for(let ze of s){Ae.push(L.createBindingElement(void 0,void 0,ol(ze.name)));let tt=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(ze)),t,1);De.push(L.createPropertySignature(void 0,ze.symbol.name,void 0,tt)),Et=Et||ze.type!==void 0,Le=Le&ze.parent.flags}let be=Et?L.createTypeLiteralNode(De):void 0;be&&lr(be,1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(Ae),void 0,be,fe)],Le)))}else if(s.length||j){if(s.length)for(let De of s){let Le=De.parent.flags;Le&2&&(Le=Le&-3|1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(De.symbol.name,void 0,ve(De.type))],Le)))}Z&&pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z,void 0,ve(N))],1)));let Ae=Xue(s,j);Z&&Ae.unshift(L.createShorthandPropertyAssignment(Z)),Ae.length===1?(x.assert(!Z,"Shouldn't have returnValueProperty here"),pe.push(L.createExpressionStatement(L.createAssignment(Ae[0].name,fe))),l.facts&1&&pe.push(L.createReturnStatement())):(pe.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(Ae),fe))),Z&&pe.push(L.createReturnStatement(L.createIdentifier(Z))))}else l.facts&1?pe.push(L.createReturnStatement(fe)):qy(l.range)?pe.push(L.createExpressionStatement(fe)):pe.push(fe);qy(l.range)?q.replaceNodeRangeWithNodes(d.file,Va(l.range),Ja(l.range),pe):q.replaceNodeWithNodes(d.file,l.range,pe);let ne=q.getChanges(),Ce=(qy(l.range)?Va(l.range):l.range).getSourceFile().fileName,Ge=sO(ne,Ce,E,!1);return{renameFilename:Ce,renameLocation:Ge,edits:ne};function ve(Ae){if(Ae===void 0)return;let De=ol(Ae),Le=De;for(;NT(Le);)Le=Le.type;return Hv(Le)&&Vr(Le.types,Et=>Et.kind===157)?De:L.createUnionTypeNode([De,L.createKeywordTypeNode(157)])}}function RJe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),d=kr(e)&&!ci(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ki(e.name)&&!eE(e.name)?e.name.text:QT(ci(t)?"newProperty":"newLocal",l),p=ir(t),h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=LJe(fs(e),r);({variableType:h,initializer:m}=N(h,m)),bp(m);let y=ur.ChangeTracker.fromContext(o);if(ci(t)){x.assert(!p,"Cannot extract to a JS class");let D=[];D.push(L.createModifier(123)),i&32&&D.push(L.createModifier(126)),D.push(L.createModifier(148));let w=L.createPropertyDeclaration(D,d,void 0,h,m),j=L.createPropertyAccessExpression(i&32?L.createIdentifier(t.name.getText()):L.createThis(),L.createIdentifier(d));Yue(e)&&(j=L.createJsxExpression(void 0,j));let K=e.pos,Y=OJe(K,t);y.insertNodeBefore(o.file,Y,w,!0),y.replaceNode(o.file,e,j)}else{let D=L.createVariableDeclaration(d,void 0,h,m),w=DJe(e,t);if(w){y.insertNodeBefore(o.file,w,D);let j=L.createIdentifier(d);y.replaceNode(o.file,e,j)}else if(e.parent.kind===244&&t===Fn(e,Jue)){let j=L.createVariableStatement(void 0,L.createVariableDeclarationList([D],2));y.replaceNode(o.file,e.parent,j)}else{let j=L.createVariableStatement(void 0,L.createVariableDeclarationList([D],2)),K=WJe(e,t);if(K.pos===0?y.insertNodeAtTopOfFile(o.file,j,!1):y.insertNodeBefore(o.file,K,j,!1),e.parent.kind===244)y.delete(o.file,e.parent);else{let Y=L.createIdentifier(d);Yue(e)&&(Y=L.createJsxExpression(void 0,Y)),y.replaceNode(o.file,e,Y)}}}let E=y.getChanges(),S=e.getSourceFile().fileName,A=sO(E,S,d,!0);return{renameFilename:S,renameLocation:A,edits:E};function N(D,w){if(D===void 0)return{variableType:D,initializer:w};if(!Ps(w)&&!Os(w)||w.typeParameters)return{variableType:D,initializer:w};let j=s.getTypeAtLocation(e),K=nh(s.getSignaturesOfType(j,0));if(!K)return{variableType:D,initializer:w};if(K.getTypeParameters())return{variableType:D,initializer:w};let Y=[],B=!1;for(let ce of w.parameters)if(ce.type)Y.push(ce);else{let z=s.getTypeAtLocation(ce);z===s.getAnyType()&&(B=!0),Y.push(L.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,ce.questionToken,ce.type||s.typeToTypeNode(z,t,1),ce.initializer))}if(B)return{variableType:D,initializer:w};if(D=void 0,Os(w))w=L.updateArrowFunction(w,Am(e)?y0(e):void 0,w.typeParameters,Y,w.type||s.typeToTypeNode(K.getReturnType(),t,1),w.equalsGreaterThanToken,w.body);else{if(K&&K.thisParameter){let ce=Xc(Y);if(!ce||Fe(ce.name)&&ce.name.escapedText!=="this"){let z=s.getTypeOfSymbolAtLocation(K.thisParameter,e);Y.splice(0,0,L.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(z,t,1)))}}w=L.updateFunctionExpression(w,Am(e)?y0(e):void 0,w.asteriskToken,w.name,w.typeParameters,Y,w.type||s.typeToTypeNode(K.getReturnType(),t,1),w.body)}return{variableType:D,initializer:w}}}function DJe(e,t){let r;for(;e!==void 0&&e!==t;){if(wi(e)&&e.initializer===r&&Uc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function CJe(e,t){let r,i=e.symbol;if(i&&i.declarations)for(let o of i.declarations)(r===void 0||o.pos0;if(Ko(e)&&!s&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let l,d=!1,p=L.createNodeArray(Ko(e)?e.statements.slice(0):[Hi(e)?e:L.createReturnStatement(fs(e))]);if(s||i.size){let m=zn(p,h,Hi).slice();if(s&&!o&&Hi(e)){let y=Xue(t,r);y.length===1?m.push(L.createReturnStatement(y[0].name)):m.push(L.createReturnStatement(L.createObjectLiteralExpression(y)))}return{body:L.createBlock(m,!0),returnValueProperty:l}}else return{body:L.createBlock(p,!0),returnValueProperty:void 0};function h(m){if(!d&&Sm(m)&&s){let y=Xue(t,r);return m.expression&&(l||(l="__return"),y.unshift(L.createPropertyAssignment(l,$e(m.expression,h,ht)))),y.length===1?L.createReturnStatement(y[0].name):L.createReturnStatement(L.createObjectLiteralExpression(y))}else{let y=d;d=d||ws(m)||ci(m);let E=i.get(rs(m).toString()),S=E?ol(E):Sn(m,h,void 0);return d=y,S}}}function LJe(e,t){return t.size?r(e):e;function r(i){let o=t.get(rs(i).toString());return o?ol(o):Sn(i,r,void 0)}}function kJe(e){if(ws(e)){let t=e.body;if(Ko(t))return t.statements}else{if(N_(e)||Yi(e))return e.statements;if(ci(e))return e.members;}return Xe}function wJe(e,t){return Vr(kJe(t),r=>r.pos>=e&&ws(r)&&!Pl(r))}function OJe(e,t){let r=t.members;x.assert(r.length>0,"Found no members");let i,o=!0;for(let s of r){if(s.pos>e)return i||r[0];if(o&&!Uo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?x.fail():i}function WJe(e,t){x.assert(!ci(t));let r;for(let i=e;i!==t;i=i.parent)Jue(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(RDe(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&MR(i)?(x.assert(uP(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):x.checkDefined(o,"prevStatement failed to get set")}x.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Xue(e,t){let r=mn(e,o=>L.createShorthandPropertyAssignment(o.symbol.name)),i=mn(t,o=>L.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function qy(e){return To(e)}function FJe(e,t){return qy(e.range)?{pos:Va(e.range).getStart(t),end:Ja(e.range).getEnd()}:e.range}function zJe(e,t,r,i,o,s){let l=new Map,d=[],p=[],h=[],m=[],y=[],E=new Map,S=[],A,N=qy(e.range)?e.range.length===1&&ed(e.range[0])?e.range[0].expression:void 0:e.range,D;if(N===void 0){let re=e.range,pe=Va(re).getStart(),xe=Ja(re).end;D=Qc(i,pe,xe-pe,Sd.expressionExpected)}else o.getTypeAtLocation(N).flags&147456&&(D=Pr(N,Sd.uselessConstantType));for(let re of t){d.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),h.push([]);let pe=[];D&&pe.push(D),ci(re)&&ir(re)&&pe.push(Pr(re,Sd.cannotExtractToJSClass)),Os(re)&&!Ko(re.body)&&pe.push(Pr(re,Sd.cannotExtractToExpressionArrowFunction)),m.push(pe)}let w=new Map,j=qy(e.range)?L.createBlock(e.range):e.range,K=qy(e.range)?Va(e.range):e.range,Y=B(K);if(z(j),Y&&!qy(e.range)&&!M_(e.range)){let re=o.getContextualType(e.range);ce(re)}if(l.size>0){let re=new Map,pe=0;for(let xe=K;xe!==void 0&&pe{d[pe].typeParameterUsages.set(ne,fe)}),pe++),ej(xe))for(let fe of Rv(xe)){let ne=o.getTypeAtLocation(fe);l.has(ne.id.toString())&&re.set(ne.id.toString(),ne)}x.assert(pe===t.length,"Should have iterated all scopes")}if(y.length){let re=ZV(t[0],t[0].parent)?t[0]:uh(t[0]);Go(re,ge)}for(let re=0;re0&&(pe.usages.size>0||pe.typeParameterUsages.size>0)){let ne=qy(e.range)?e.range[0]:e.range;m[re].push(Pr(ne,Sd.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ci(t[re])&&h[re].push(Pr(e.thisNode,Sd.cannotExtractFunctionsContainingThisToMethod));let xe=!1,fe;if(d[re].usages.forEach(ne=>{ne.usage===2&&(xe=!0,ne.symbol.flags&106500&&ne.symbol.valueDeclaration&&fp(ne.symbol.valueDeclaration,8)&&(fe=ne.symbol.valueDeclaration))}),x.assert(qy(e.range)||S.length===0,"No variable declarations expected if something was extracted"),xe&&!qy(e.range)){let ne=Pr(e.range,Sd.cannotWriteInExpression);h[re].push(ne),m[re].push(ne)}else if(fe&&re>0){let ne=Pr(fe,Sd.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[re].push(ne),m[re].push(ne)}else if(A){let ne=Pr(A,Sd.cannotExtractExportedEntity);h[re].push(ne),m[re].push(ne)}}return{target:j,usagesPerScope:d,functionErrorsPerScope:h,constantErrorsPerScope:m,exposedVariableDeclarations:S};function B(re){return!!Fn(re,pe=>ej(pe)&&Rv(pe).length!==0)}function ce(re){let pe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:xe}=pe.walkType(re);for(let fe of xe)fe.isTypeParameter()&&l.set(fe.id.toString(),fe)}function z(re,pe=1){if(Y){let xe=o.getTypeAtLocation(re);ce(xe)}if(Hd(re)&&re.symbol&&y.push(re),Mc(re))z(re.left,2),z(re.right);else if(_re(re))z(re.operand,2);else if(kr(re)||Js(re))Go(re,z);else if(Fe(re)){if(!re.parent||Su(re.parent)&&re!==re.parent.left||kr(re.parent)&&re!==re.parent.expression)return;Z(re,pe,qh(re))}else Go(re,z)}function Z(re,pe,xe){let fe=me(re,pe,xe);if(fe)for(let ne=0;ne=pe)return ne;if(w.set(ne,pe),he){for(let ve of d)ve.usages.get(re.text)&&ve.usages.set(re.text,{usage:pe,symbol:fe,node:re});return ne}let Ce=fe.getDeclarations(),Ge=Ce&&Vr(Ce,ve=>ve.getSourceFile()===i);if(Ge&&!Xw(r,Ge.getStart(),Ge.end)){if(e.facts&2&&pe===2){let ve=Pr(re,Sd.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Ae of h)Ae.push(ve);for(let Ae of m)Ae.push(ve)}for(let ve=0;vefe.symbol===pe);if(xe)if(wi(xe)){let fe=xe.symbol.id.toString();E.has(fe)||(S.push(xe),E.set(fe,!0))}else A=A||xe}Go(re,ge)}function q(re){return re.parent&&Zu(re.parent)&&re.parent.name===re?o.getShorthandAssignmentValueSymbol(re.parent):o.getSymbolAtLocation(re)}function J(re,pe,xe){if(!re)return;let fe=re.getDeclarations();if(fe&&fe.some(he=>he.parent===pe))return L.createIdentifier(re.name);let ne=J(re.parent,pe,xe);if(ne!==void 0)return xe?L.createQualifiedName(ne,L.createIdentifier(re.name)):L.createPropertyAccessExpression(ne,re.name)}}function BJe(e){return Fn(e,t=>t.parent&&xDe(t)&&!dr(t.parent))}function xDe(e){let{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 RDe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Yue(e){return $ue(e)||(ig(e)||OT(e)||J0(e))&&(ig(e.parent)||J0(e.parent))}function $ue(e){return Da(e)&&e.parent&&M_(e.parent)}var gD,yD,vD,Sd,Que,GJe=bt({"src/services/refactors/extractSymbol.ts"(){"use strict";ai(),Sh(),gD="Extract Symbol",yD={name:"Extract Constant",description:wo(f.Extract_constant),kind:"refactor.extract.constant"},vD={name:"Extract Function",description:wo(f.Extract_function),kind:"refactor.extract.function"},ag(gD,{kinds:[yD.kind,vD.kind],getEditsForAction:IDe,getAvailableActions:ADe}),(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")})(Sd||(Sd={})),Que=(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))(Que||{})}}),DDe={};xa(DDe,{Messages:()=>Sd,RangeFacts:()=>Que,getRangeToExtract:()=>Kue,getRefactorActionsToExtractSymbol:()=>ADe,getRefactorEditsToExtractSymbol:()=>IDe});var VJe=bt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";GJe()}}),B7,uY,pY,jJe=bt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";ai(),Sh(),B7="Generate 'get' and 'set' accessors",uY=wo(f.Generate_get_and_set_accessors),pY={name:B7,description:uY,kind:"refactor.rewrite.property.generateAccessors"},ag(B7,{kinds:[pY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=Od.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);x.assert(i&&!jg(i),"Expected applicable refactor info");let o=Od.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;let s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Fe(l)?0:-1)+sO(o,s,l.text,Ao(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return Xe;let t=Od.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:B7,description:uY,actions:[{...pY,notApplicableReason:t.error}]}]:Xe:[{name:B7,description:uY,actions:[pY]}]:Xe}})}}),UJe={},HJe=bt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";jJe()}});function KJe(e){let t=CDe(e);if(t&&!jg(t))return{renameFilename:void 0,renameLocation:void 0,edits:ur.ChangeTracker.with(e,i=>qJe(e.file,i,t.declaration,t.returnTypeNode))}}function JJe(e){let t=CDe(e);return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:G7,description:fY,actions:[{...V7,notApplicableReason:t.error}]}]:Xe:[{name:G7,description:fY,actions:[V7]}]:Xe}function qJe(e,t,r,i){let o=_s(r,22,e),s=Os(r)&&o===void 0,l=s?Va(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,L.createToken(21)),t.insertNodeAfter(e,l,L.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function CDe(e){if(ir(e.file)||!CE(V7.kind,e.kind))return;let t=Wu(e.file,e.startPosition),r=Fn(t,l=>Ko(l)||l.parent&&Os(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":XJe(l));if(!r||!r.body||r.type)return{error:wo(f.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o=YJe(i,r);if(!o)return{error:wo(f.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function XJe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function YJe(e,t){if(e.isImplementationOfOverload(t)){let i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(to(i,o=>o.getReturnType()))}let r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var G7,fY,V7,$Je=bt({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";ai(),Sh(),G7="Infer function return type",fY=wo(f.Infer_function_return_type),V7={name:G7,description:fY,kind:"refactor.rewrite.function.returnType"},ag(G7,{kinds:[V7.kind],getEditsForAction:KJe,getAvailableActions:JJe})}}),QJe={},ZJe=bt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";$Je()}}),T1={};xa(T1,{addExportToChanges:()=>Due,addExports:()=>Aue,addNewFileToTsconfig:()=>vue,addOrRemoveBracesToArrowFunction:()=>fKe,containsJsx:()=>Nue,convertArrowFunctionOrFunctionExpression:()=>IKe,convertParamsToDestructuredObject:()=>UKe,convertStringOrTemplateLiteral:()=>eJe,convertToOptionalChainExpression:()=>fJe,createNewFileName:()=>Cue,createOldFileImportsFromTargetFile:()=>Tue,deleteMovedStatements:()=>P7,deleteUnusedImports:()=>Iue,deleteUnusedOldImports:()=>bue,doChangeNamedToNamespaceOrDefault:()=>WRe,extractSymbol:()=>DDe,filterImport:()=>EO,forEachImportInStatement:()=>bO,generateGetAccessorAndSetAccessor:()=>UJe,getApplicableRefactors:()=>uHe,getEditsForRefactor:()=>pHe,getStatementsToMove:()=>SO,getTopLevelDeclarationStatement:()=>QX,getUsageInfo:()=>L7,inferFunctionReturnType:()=>QJe,isRefactorErrorInfo:()=>jg,isTopLevelDeclaration:()=>k7,makeImportOrRequire:()=>M7,moduleSpecifierFromImport:()=>vO,nameOfTopLevelDeclaration:()=>Rue,refactorKindBeginsWith:()=>CE,registerRefactor:()=>ag,updateImportsInOtherFiles:()=>Eue});var Sh=bt({"src/services/_namespaces/ts.refactor.ts"(){"use strict";PRe(),vHe(),AHe(),MHe(),LHe(),wHe(),zHe(),aKe(),mKe(),xKe(),HKe(),tJe(),mJe(),VJe(),HJe(),ZJe()}});function NDe(e,t,r,i){let o=Zue(e,t,r,i);x.assert(o.spans.length%3===0);let s=o.spans,l=[];for(let d=0;d{o.push(l.getStart(t),l.getWidth(t),(d+1<<8)+p)},i),o}function tqe(e,t,r,i,o){let s=e.getTypeChecker(),l=!1;function d(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!ZW(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;let h=l;if((ig(p)||OT(p))&&(l=!0),fP(p)&&(l=!1),Fe(p)&&!l&&!oqe(p)&&!qN(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let y=nqe(m,qT(p));if(y!==void 0){let E=0;p.parent&&(Xa(p.parent)||rpe.get(p.parent.kind)===y)&&p.parent.name===p&&(E=1),y===6&&MDe(p)&&(y=9),y=rqe(s,p,y);let S=m.valueDeclaration;if(S){let A=Zb(S),N=Ry(S);A&256&&(E|=2),A&1024&&(E|=4),y!==0&&y!==2&&(A&8||N&2||m.getFlags()&8)&&(E|=8),(y===7||y===10)&&iqe(S,t)&&(E|=32),e.isSourceFileDefaultLibrary(S.getSourceFile())&&(E|=16)}else m.declarations&&m.declarations.some(A=>e.isSourceFileDefaultLibrary(A.getSourceFile()))&&(E|=16);i(p,y,E)}}}Go(p,d),l=h}d(t)}function nqe(e,t){let 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&&Xa(i)&&(i=PDe(i)),i&&rpe.get(i.kind)}function rqe(e,t,r){if(r===7||r===9||r===6){let i=e.getTypeAtLocation(t);if(i){let o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||aqe(t))return r===9?11:10}}return r}function iqe(e,t){return Xa(e)&&(e=PDe(e)),wi(e)?(!Yi(e.parent.parent.parent)||X0(e.parent))&&e.getSourceFile()===t:Ec(e)?!Yi(e.parent)&&e.getSourceFile()===t:!1}function PDe(e){for(;;)if(Xa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function oqe(e){let t=e.parent;return t&&(gh(t)||Qu(t)||Xv(t))}function aqe(e){for(;MDe(e);)e=e.parent;return ia(e.parent)&&e.parent.expression===e}function MDe(e){return Su(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e}var epe,tpe,npe,rpe,LDe=bt({"src/services/classifier2020.ts"(){"use strict";ai(),epe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(epe||{}),tpe=(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))(tpe||{}),npe=(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))(npe||{}),rpe=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 kDe(e,t,r,i){let o=ZL(e)?new yY(e,t,r):e===80?new bY(80,t,r):e===81?new EY(81,t,r):new spe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function sqe(e,t){if(!ZL(e.kind))return Xe;let r=[];if(_F(e))return e.forEachChild(l=>{r.push(l)}),r;Yd.setText((t||e.getSourceFile()).text);let i=e.pos,o=l=>{j7(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{j7(r,i,l.pos,e),r.push(lqe(l,e)),i=l.end};return gn(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),j7(r,i,e.end,e),Yd.setText(void 0),r}function j7(e,t,r,i){for(Yd.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function mY(e,t){if(!e)return Xe;let r=PE.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(wDe))){let i=new Set;for(let o of e){let s=ODe(t,o,l=>{var d;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((d=l.declarations)==null?void 0:d.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function U7(e,t){if(!e)return Xe;let r=PE.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(wDe))){let i=new Set;for(let o of e){let s=ODe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(pD(),r))}}return r}function ODe(e,t,r){var i;let o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;let s=pc(t);return Wl(bN(o),l=>{let d=e.getTypeAtLocation(l),p=s&&d.symbol?e.getTypeOfSymbol(d.symbol):d,h=e.getPropertyOfType(p,t.symbol.name);return h?r(h):void 0})}function cqe(){return{getNodeConstructor:()=>yY,getTokenConstructor:()=>spe,getIdentifierConstructor:()=>bY,getPrivateIdentifierConstructor:()=>EY,getSourceFileConstructor:()=>VDe,getSymbolConstructor:()=>zDe,getTypeConstructor:()=>BDe,getSignatureConstructor:()=>GDe,getSourceMapSourceConstructor:()=>jDe}}function DO(e){let t=!0;for(let i in e)if(Ss(e,i)&&!WDe(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(Ss(e,i)){let o=WDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function WDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function CO(e){return e?mn(e,t=>t.text).join(""):""}function H7(){return{target:1,jsx:1}}function _Y(){return Od.getSupportedErrorCodes()}function FDe(e,t,r){e.version=r,e.scriptSnapshot=t}function K7(e,t,r,i,o,s){let l=Yk(e,cD(t),r,o,s);return FDe(l,t,i),l}function hY(e,t,r,i,o){if(i&&r!==e.version){let l,d=i.span.start!==0?e.text.substr(0,i.span.start):"",p=Jl(i.span)!==e.text.length?e.text.substr(Jl(i.span)):"";if(i.newLength===0)l=d&&p?d+p:d||p;else{let m=t.getText(i.span.start,i.span.start+i.newLength);l=d&&p?d+m+p:d?d+m:m+p}let h=DH(e,l,i,o);return FDe(h,t,r),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}let s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return K7(e.fileName,t,s,r,!0,e.scriptKind)}function ipe(e,t=Gde(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;let s=new UDe(e),l,d,p=0,h=e.getCancellationToken?new KDe(e.getCancellationToken()):HDe,m=e.getCurrentDirectory();soe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(k){e.log&&e.log(k)}let E=pR(e),S=Nd(E),A=tue({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>m,getProgram:j,fileExists:ta(e,e.fileExists),readFile:ta(e,e.readFile),getDocumentPositionMapper:ta(e,e.getDocumentPositionMapper),getSourceFileLike:ta(e,e.getSourceFileLike),log:y});function N(k){let ie=l.getSourceFile(k);if(!ie){let H=new Error(`Could not find source file: '${k}'.`);throw H.ProgramFiles=l.getSourceFiles().map(ue=>ue.fileName),H}return ie}function D(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():w()}function w(){var k,ie,H;if(x.assert(o!==2),e.getProjectVersion){let Mo=e.getProjectVersion();if(Mo){if(d===Mo&&!((k=e.hasChangedAutomaticTypeDirectiveNames)!=null&&k.call(e)))return;d=Mo}}let ue=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==ue&&(y("TypeRoots version has changed; provide new program"),l=void 0,p=ue);let We=e.getScriptFileNames().slice(),Ne=e.getCompilationSettings()||H7(),It=e.hasInvalidatedResolutions||Vm,Dt=ta(e,e.hasInvalidatedLibResolutions)||Vm,Ut=ta(e,e.hasChangedAutomaticTypeDirectiveNames),En=(ie=e.getProjectReferences)==null?void 0:ie.call(e),wn,Bn={getSourceFile:Ls,getSourceFileByPath:$l,getCancellationToken:()=>h,getCanonicalFileName:S,useCaseSensitiveFileNames:()=>E,getNewLine:()=>wy(Ne),getDefaultLibFileName:Mo=>e.getDefaultLibFileName(Mo),writeFile:qa,getCurrentDirectory:()=>m,fileExists:Mo=>e.fileExists(Mo),readFile:Mo=>e.readFile&&e.readFile(Mo),getSymlinkCache:ta(e,e.getSymlinkCache),realpath:ta(e,e.realpath),directoryExists:Mo=>Um(Mo,e),getDirectories:Mo=>e.getDirectories?e.getDirectories(Mo):[],readDirectory:(Mo,ss,Ws,ml,cd)=>(x.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Mo,ss,Ws,ml,cd)),onReleaseOldSourceFile:xn,onReleaseParsedCommandLine:xo,hasInvalidatedResolutions:It,hasInvalidatedLibResolutions:Dt,hasChangedAutomaticTypeDirectiveNames:Ut,trace:ta(e,e.trace),resolveModuleNames:ta(e,e.resolveModuleNames),getModuleResolutionCache:ta(e,e.getModuleResolutionCache),createHash:ta(e,e.createHash),resolveTypeReferenceDirectives:ta(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ta(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ta(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ta(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ta(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ri,jsDocParsingMode:e.jsDocParsingMode},gi=Bn.getSourceFile,{getSourceFileWithCache:xi}=Nw(Bn,Mo=>tl(Mo,m,S),(...Mo)=>gi.call(Bn,...Mo));Bn.getSourceFile=xi,(H=e.setCompilerHost)==null||H.call(e,Bn);let er={useCaseSensitiveFileNames:E,fileExists:Mo=>Bn.fileExists(Mo),readFile:Mo=>Bn.readFile(Mo),directoryExists:Mo=>Bn.directoryExists(Mo),getDirectories:Mo=>Bn.getDirectories(Mo),realpath:Bn.realpath,readDirectory:(...Mo)=>Bn.readDirectory(...Mo),trace:Bn.trace,getCurrentDirectory:Bn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:qa},Fr=t.getKeyForCompilationSettings(Ne),go=new Set;if(mJ(l,We,Ne,(Mo,ss)=>e.getScriptVersion(ss),Mo=>Bn.fileExists(Mo),It,Dt,Ut,Ri,En)){Bn=void 0,wn=void 0,go=void 0;return}l=iz({rootNames:We,options:Ne,host:Bn,oldProgram:l,projectReferences:En}),Bn=void 0,wn=void 0,go=void 0,A.clearCache(),l.getTypeChecker();return;function Ri(Mo){let ss=tl(Mo,m,S),Ws=wn?.get(ss);if(Ws!==void 0)return Ws||void 0;let ml=e.getParsedCommandLine?e.getParsedCommandLine(Mo):Kr(Mo);return(wn||(wn=new Map)).set(ss,ml||!1),ml}function Kr(Mo){let ss=Ls(Mo,100);if(ss)return ss.path=tl(Mo,m,S),ss.resolvedPath=ss.path,ss.originalFileName=ss.fileName,tw(ss,er,ho(oi(Mo),m),void 0,ho(Mo,m))}function xo(Mo,ss,Ws){var ml;e.getParsedCommandLine?(ml=e.onReleaseParsedCommandLine)==null||ml.call(e,Mo,ss,Ws):ss&&xn(ss.sourceFile,Ws)}function xn(Mo,ss){let Ws=t.getKeyForCompilationSettings(ss);t.releaseDocumentWithKey(Mo.resolvedPath,Ws,Mo.scriptKind,Mo.impliedNodeFormat)}function Ls(Mo,ss,Ws,ml){return $l(Mo,tl(Mo,m,S),ss,Ws,ml)}function $l(Mo,ss,Ws,ml,cd){x.assert(Bn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let mo=e.getScriptSnapshot(Mo);if(!mo)return;let la=eX(Mo,e),dd=e.getScriptVersion(Mo);if(!cd){let bs=l&&l.getSourceFileByPath(ss);if(bs){if(la===bs.scriptKind||go.has(bs.resolvedPath))return t.updateDocumentWithKey(Mo,ss,e,Fr,mo,dd,la,Ws);t.releaseDocumentWithKey(bs.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),bs.scriptKind,bs.impliedNodeFormat),go.add(bs.resolvedPath)}}return t.acquireDocumentWithKey(Mo,ss,e,Fr,mo,dd,la,Ws)}}function j(){if(o===2){x.assert(l===void 0);return}return D(),l}function K(){var k;return(k=e.getPackageJsonAutoImportProvider)==null?void 0:k.call(e)}function Y(k,ie){let H=l.getTypeChecker(),ue=We();if(!ue)return!1;for(let It of k)for(let Dt of It.references){let Ut=Ne(Dt);if(x.assertIsDefined(Ut),ie.has(Dt)||Ms.isDeclarationOfSymbol(Ut,ue)){ie.add(Dt),Dt.isDefinition=!0;let En=Zz(Dt,A,ta(e,e.fileExists));En&&ie.add(En)}else Dt.isDefinition=!1}return!0;function We(){for(let It of k)for(let Dt of It.references){if(ie.has(Dt)){let En=Ne(Dt);return x.assertIsDefined(En),H.getSymbolAtLocation(En)}let Ut=Zz(Dt,A,ta(e,e.fileExists));if(Ut&&ie.has(Ut)){let En=Ne(Ut);if(En)return H.getSymbolAtLocation(En)}}}function Ne(It){let Dt=l.getSourceFile(It.fileName);if(!Dt)return;let Ut=Wu(Dt,It.textSpan.start);return Ms.Core.getAdjustedNode(Ut,{use:Ms.FindReferencesUse.References})}}function B(){if(l){let k=t.getKeyForCompilationSettings(l.getCompilerOptions());gn(l.getSourceFiles(),ie=>t.releaseDocumentWithKey(ie.resolvedPath,k,ie.scriptKind,ie.impliedNodeFormat)),l=void 0}}function ce(){B(),e=void 0}function z(k){return D(),l.getSyntacticDiagnostics(N(k),h).slice()}function Z(k){D();let ie=N(k),H=l.getSemanticDiagnostics(ie,h);if(!Af(l.getCompilerOptions()))return H.slice();let ue=l.getDeclarationDiagnostics(ie,h);return[...H,...ue]}function me(k){return D(),MX(N(k),l,h)}function ge(){return D(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function q(k,ie,H=Cf,ue){let We={...H,includeCompletionsForModuleExports:H.includeCompletionsForModuleExports||H.includeExternalModuleExports,includeCompletionsWithInsertText:H.includeCompletionsWithInsertText||H.includeInsertTextCompletions};return D(),C1.getCompletionsAtPosition(e,l,y,N(k),ie,We,H.triggerCharacter,H.triggerKind,h,ue&&wc.getFormatContext(ue,e),H.includeSymbol)}function J(k,ie,H,ue,We,Ne=Cf,It){return D(),C1.getCompletionEntryDetails(l,y,N(k),ie,{name:H,source:We,data:It},e,ue&&wc.getFormatContext(ue,e),Ne,h)}function re(k,ie,H,ue,We=Cf){return D(),C1.getCompletionEntrySymbol(l,y,N(k),ie,{name:H,source:ue},e,We)}function pe(k,ie){D();let H=N(k),ue=Wu(H,ie);if(ue===H)return;let We=l.getTypeChecker(),Ne=xe(ue),It=fqe(Ne,We);if(!It||We.isUnknownSymbol(It)){let Bn=fe(H,Ne,ie)?We.getTypeAtLocation(Ne):void 0;return Bn&&{kind:"",kindModifiers:"",textSpan:Iu(Ne,H),displayParts:We.runWithCancellationToken(h,gi=>oO(gi,Bn,XT(Ne))),documentation:Bn.symbol?Bn.symbol.getDocumentationComment(We):void 0,tags:Bn.symbol?Bn.symbol.getJsDocTags(We):void 0}}let{symbolKind:Dt,displayParts:Ut,documentation:En,tags:wn}=We.runWithCancellationToken(h,Bn=>Xy.getSymbolDisplayPartsDocumentationAndSymbolKind(Bn,It,H,XT(Ne),Ne));return{kind:Dt,kindModifiers:Xy.getSymbolModifiers(We,It),textSpan:Iu(Ne,H),displayParts:Ut,documentation:En,tags:wn}}function xe(k){return j0(k.parent)&&k.pos===k.parent.pos?k.parent.expression:DR(k.parent)&&k.pos===k.parent.pos||Jx(k.parent)&&k.parent.name===k||qm(k.parent)?k.parent:k}function fe(k,ie,H){switch(ie.kind){case 80:return!Eq(ie)&&!Sq(ie)&&!Ng(ie.parent);case 211:case 166:return!jy(k,H);case 110:case 197:case 108:case 202:return!0;case 236:return Jx(ie);default:return!1}}function ne(k,ie,H,ue){return D(),xD.getDefinitionAtPosition(l,N(k),ie,H,ue)}function he(k,ie){return D(),xD.getDefinitionAndBoundSpan(l,N(k),ie)}function Ce(k,ie){return D(),xD.getTypeDefinitionAtPosition(l.getTypeChecker(),N(k),ie)}function Ge(k,ie){return D(),Ms.getImplementationsAtPosition(l,h,l.getSourceFiles(),N(k),ie)}function ve(k,ie,H){let ue=ma(k);x.assert(H.some(It=>ma(It)===ue)),D();let We=to(H,It=>l.getSourceFile(It)),Ne=N(k);return E7.getDocumentHighlights(l,h,Ne,ie,We)}function Ae(k,ie,H,ue,We){D();let Ne=N(k),It=zz(Wu(Ne,ie));if(vB.nodeIsEligibleForRename(It))if(Fe(It)&&(P_(It.parent)||K0(It.parent))&&dR(It.escapedText)){let{openingElement:Dt,closingElement:Ut}=It.parent.parent;return[Dt,Ut].map(En=>{let wn=Iu(En.tagName,Ne);return{fileName:Ne.fileName,textSpan:wn,...Ms.toContextSpan(wn,Ne,En.parent)}})}else{let Dt=of(Ne,We??Cf),Ut=typeof We=="boolean"?We:We?.providePrefixAndSuffixTextForRename;return Le(It,ie,{findInStrings:H,findInComments:ue,providePrefixAndSuffixTextForRename:Ut,use:Ms.FindReferencesUse.Rename},(En,wn,Bn)=>Ms.toRenameLocation(En,wn,Bn,Ut||!1,Dt))}}function De(k,ie){return D(),Le(Wu(N(k),ie),ie,{use:Ms.FindReferencesUse.References},Ms.toReferenceEntry)}function Le(k,ie,H,ue){D();let We=H&&H.use===Ms.FindReferencesUse.Rename?l.getSourceFiles().filter(Ne=>!l.isSourceFileDefaultLibrary(Ne)):l.getSourceFiles();return Ms.findReferenceOrRenameEntries(l,h,We,k,ie,H,ue)}function Et(k,ie){return D(),Ms.findReferencedSymbols(l,h,l.getSourceFiles(),N(k),ie)}function be(k){return D(),Ms.Core.getReferencesForFileName(k,l,l.getSourceFiles()).map(Ms.toReferenceEntry)}function ze(k,ie,H,ue=!1,We=!1){D();let Ne=H?[N(H)]:l.getSourceFiles();return aRe(Ne,l.getTypeChecker(),h,k,ie,ue,We)}function tt(k,ie,H){D();let ue=N(k),We=e.getCustomTransformers&&e.getCustomTransformers();return Yle(l,ue,!!ie,h,We,H)}function Wt(k,ie,{triggerReason:H}=Cf){D();let ue=N(k);return HO.getSignatureHelpItems(l,ue,ie,H,h)}function _t(k){return s.getCurrentSourceFile(k)}function Je(k,ie,H){let ue=s.getCurrentSourceFile(k),We=Wu(ue,ie);if(We===ue)return;switch(We.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 Ne=We;for(;;)if(aD(Ne)||Yce(Ne))Ne=Ne.parent;else if(Aq(Ne))if(Ne.parent.parent.kind===267&&Ne.parent.parent.body===Ne.parent)Ne=Ne.parent.parent.name;else break;else break;return dc(Ne.getStart(),We.getEnd())}function pt(k,ie){let H=s.getCurrentSourceFile(k);return TY.spanInSourceFileAtLocation(H,ie)}function Zt(k){return dRe(s.getCurrentSourceFile(k),h)}function en(k){return uRe(s.getCurrentSourceFile(k),h)}function Dn(k,ie,H){return D(),(H||"original")==="2020"?NDe(l,h,N(k),ie):zde(l.getTypeChecker(),h,N(k),l.getClassifiableNames(),ie)}function Kn(k,ie,H){return D(),(H||"original")==="original"?IX(l.getTypeChecker(),h,N(k),l.getClassifiableNames(),ie):Zue(l,h,N(k),ie)}function pn(k,ie){return Bde(h,s.getCurrentSourceFile(k),ie)}function Xt(k,ie){return xX(h,s.getCurrentSourceFile(k),ie)}function Kt(k){let ie=s.getCurrentSourceFile(k);return vQ.collectElements(ie,h)}let hi=new Map(Object.entries({19:20,21:22,23:24,32:30}));hi.forEach((k,ie)=>hi.set(k.toString(),Number(ie)));function uo(k,ie){let H=s.getCurrentSourceFile(k),ue=lD(H,ie),We=ue.getStart(H)===ie?hi.get(ue.kind.toString()):void 0,Ne=We&&_s(ue.parent,We,H);return Ne?[Iu(ue,H),Iu(Ne,H)].sort((It,Dt)=>It.start-Dt.start):Xe}function Li(k,ie,H){let ue=Hs(),We=DO(H),Ne=s.getCurrentSourceFile(k);y("getIndentationAtPosition: getCurrentSourceFile: "+(Hs()-ue)),ue=Hs();let It=wc.SmartIndenter.getIndentation(ie,Ne,We);return y("getIndentationAtPosition: computeIndentation : "+(Hs()-ue)),It}function So(k,ie,H,ue){let We=s.getCurrentSourceFile(k);return wc.formatSelection(ie,H,We,wc.getFormatContext(DO(ue),e))}function Qn(k,ie){return wc.formatDocument(s.getCurrentSourceFile(k),wc.getFormatContext(DO(ie),e))}function Ur(k,ie,H,ue){let We=s.getCurrentSourceFile(k),Ne=wc.getFormatContext(DO(ue),e);if(!jy(We,ie))switch(H){case"{":return wc.formatOnOpeningCurly(ie,We,Ne);case"}":return wc.formatOnClosingCurly(ie,We,Ne);case";":return wc.formatOnSemicolon(ie,We,Ne);case` `:return wc.formatOnEnter(ie,We,Ne)}return[]}function Er(k,ie,H,ue,We,Ne=Cf){D();let It=N(k),Dt=dc(ie,H),Ut=wc.getFormatContext(We,e);return va(m0(ue,Ty,Zs),En=>(h.throwIfCancellationRequested(),Od.getFixes({errorCode:En,sourceFile:It,span:Dt,program:l,host:e,cancellationToken:h,formatContext:Ut,preferences:Ne})))}function on(k,ie,H,ue=Cf){D(),x.assert(k.type==="file");let We=N(k.fileName),Ne=wc.getFormatContext(H,e);return Od.getAllFixes({fixId:ie,sourceFile:We,program:l,host:e,cancellationToken:h,formatContext:Ne,preferences:ue})}function Ye(k,ie,H=Cf){D(),x.assert(k.type==="file");let ue=N(k.fileName),We=wc.getFormatContext(ie,e),Ne=k.mode??(k.skipDestructiveCodeActions?"SortAndCombine":"All");return Rm.organizeImports(ue,We,e,l,H,Ne)}function Ot(k,ie,H,ue=Cf){return jde(j(),k,ie,e,wc.getFormatContext(H,e),ue,A)}function In(k,ie){let H=typeof k=="string"?ie:k;return To(H)?Promise.all(H.map(ue=>si(ue))):si(H)}function si(k){let ie=H=>tl(H,m,S);return x.assertEqual(k.type,"install package"),e.installPackage?e.installPackage({fileName:ie(k.file),packageName:k.packageName}):Promise.reject("Host does not implement `installPackage`")}function yi(k,ie,H,ue){let We=ue?wc.getFormatContext(ue,e).options:void 0;return PE.getDocCommentTemplateAtPosition(Ky(e,We),s.getCurrentSourceFile(k),ie,H)}function $i(k,ie,H){if(H===60)return!1;let ue=s.getCurrentSourceFile(k);if(y1(ue,ie))return!1;if(rde(ue,ie))return H===123;if(Nq(ue,ie))return!1;switch(H){case 39:case 34:case 96:return!jy(ue,ie)}return!0}function Io(k,ie){let H=s.getCurrentSourceFile(k),ue=Tc(ie,H);if(!ue)return;let We=ue.kind===32&&P_(ue.parent)?ue.parent.parent:UI(ue)&&ig(ue.parent)?ue.parent:void 0;if(We&<(We))return{newText:``};let Ne=ue.kind===32&&i1(ue.parent)?ue.parent.parent:UI(ue)&&J0(ue.parent)?ue.parent:void 0;if(Ne&&Rt(Ne))return{newText:""}}function ua(k,ie){let H=s.getCurrentSourceFile(k),ue=Tc(ie,H);if(!ue||ue.parent.kind===312)return;let We="[a-zA-Z0-9:\\-\\._$]*";if(J0(ue.parent.parent)){let Ne=ue.parent.parent.openingFragment,It=ue.parent.parent.closingFragment;if(Vx(Ne)||Vx(It))return;let Dt=Ne.getStart(H)+1,Ut=It.getStart(H)+2;return ie!==Dt&&ie!==Ut?void 0:{ranges:[{start:Dt,length:0},{start:Ut,length:0}],wordPattern:We}}else{let Ne=Fn(ue.parent,xi=>!!(P_(xi)||K0(xi)));if(!Ne)return;x.assert(P_(Ne)||K0(Ne),"tag should be opening or closing element");let It=Ne.parent.openingElement,Dt=Ne.parent.closingElement,Ut=It.tagName.getStart(H),En=It.tagName.end,wn=Dt.tagName.getStart(H),Bn=Dt.tagName.end;return Ut===It.getStart(H)||wn===Dt.getStart(H)||En===It.getEnd()||Bn===Dt.getEnd()||!(Ut<=ie&&ie<=En||wn<=ie&&ie<=Bn)||It.tagName.getText(H)!==Dt.tagName.getText(H)?void 0:{ranges:[{start:Ut,length:En-Ut},{start:wn,length:Bn-wn}],wordPattern:We}}}function Ba(k,ie){return{lineStarts:k.getLineStarts(),firstLine:k.getLineAndCharacterOfPosition(ie.pos).line,lastLine:k.getLineAndCharacterOfPosition(ie.end).line}}function vn(k,ie,H){let ue=s.getCurrentSourceFile(k),We=[],{lineStarts:Ne,firstLine:It,lastLine:Dt}=Ba(ue,ie),Ut=H||!1,En=Number.MAX_VALUE,wn=new Map,Bn=new RegExp(/\S/),gi=Vz(ue,Ne[It]),xi=gi?"{/*":"//";for(let er=It;er<=Dt;er++){let Fr=ue.text.substring(Ne[er],ue.getLineEndOfPosition(Ne[er])),go=Bn.exec(Fr);go&&(En=Math.min(En,go.index),wn.set(er.toString(),go.index),Fr.substr(go.index,xi.length)!==xi&&(Ut=H===void 0||H))}for(let er=It;er<=Dt;er++){if(It!==Dt&&Ne[er]===ie.end)continue;let Fr=wn.get(er.toString());Fr!==void 0&&(gi?We.push(...kn(k,{pos:Ne[er]+En,end:ue.getLineEndOfPosition(Ne[er])},Ut,gi)):Ut?We.push({newText:xi,span:{length:0,start:Ne[er]+En}}):ue.text.substr(Ne[er]+Fr,xi.length)===xi&&We.push({newText:"",span:{length:xi.length,start:Ne[er]+Fr}}))}return We}function kn(k,ie,H,ue){var We;let Ne=s.getCurrentSourceFile(k),It=[],{text:Dt}=Ne,Ut=!1,En=H||!1,wn=[],{pos:Bn}=ie,gi=ue!==void 0?ue:Vz(Ne,Bn),xi=gi?"{/*":"/*",er=gi?"*/}":"*/",Fr=gi?"\\{\\/\\*":"\\/\\*",go=gi?"\\*\\/\\}":"\\*\\/";for(;Bn<=ie.end;){let Pi=Dt.substr(Bn,xi.length)===xi?xi.length:0,Ri=jy(Ne,Bn+Pi);if(Ri)gi&&(Ri.pos--,Ri.end++),wn.push(Ri.pos),Ri.kind===3&&wn.push(Ri.end),Ut=!0,Bn=Ri.end+1;else{let Kr=Dt.substring(Bn,ie.end).search(`(${Fr})|(${go})`);En=H!==void 0?H:En||!_de(Dt,Bn,Kr===-1?ie.end:Bn+Kr),Bn=Kr===-1?ie.end+1:Bn+Kr+er.length}}if(En||!Ut){((We=jy(Ne,ie.pos))==null?void 0:We.kind)!==2&&vv(wn,ie.pos,Zs),vv(wn,ie.end,Zs);let Pi=wn[0];Dt.substr(Pi,xi.length)!==xi&&It.push({newText:xi,span:{length:0,start:Pi}});for(let Ri=1;Ri0?Pi-er.length:0,Kr=Dt.substr(Ri,er.length)===er?er.length:0;It.push({newText:"",span:{length:xi.length,start:Pi-Kr}})}return It}function Be(k,ie){let H=s.getCurrentSourceFile(k),{firstLine:ue,lastLine:We}=Ba(H,ie);return ue===We&&ie.pos!==ie.end?kn(k,ie,!0):vn(k,ie,!0)}function ct(k,ie){let H=s.getCurrentSourceFile(k),ue=[],{pos:We}=ie,{end:Ne}=ie;We===Ne&&(Ne+=Vz(H,We)?2:1);for(let It=We;It<=Ne;It++){let Dt=jy(H,It);if(Dt){switch(Dt.kind){case 2:ue.push(...vn(k,{end:Dt.end,pos:Dt.pos+1},!1));break;case 3:ue.push(...kn(k,{end:Dt.end,pos:Dt.pos+1},!1))}It=Dt.end+1}}return ue}function lt({openingElement:k,closingElement:ie,parent:H}){return!bE(k.tagName,ie.tagName)||ig(H)&&bE(k.tagName,H.openingElement.tagName)&<(H)}function Rt({closingFragment:k,parent:ie}){return!!(k.flags&262144)||J0(ie)&&Rt(ie)}function ae(k,ie,H){let ue=s.getCurrentSourceFile(k),We=wc.getRangeOfEnclosingComment(ue,ie);return We&&(!H||We.kind===3)?eb(We):void 0}function ke(k,ie){D();let H=N(k);h.throwIfCancellationRequested();let ue=H.text,We=[];if(ie.length>0&&!Ut(H.fileName)){let En=It(),wn;for(;wn=En.exec(ue);){h.throwIfCancellationRequested();let Bn=3;x.assert(wn.length===ie.length+Bn);let gi=wn[1],xi=wn.index+gi.length;if(!jy(H,xi))continue;let er;for(let go=0;go"("+Ne(Ri.text)+")").join("|")+")",er=/(?:$|\*\/)/.source,Fr=/(?:.*?)/.source,go="("+xi+Fr+")",Pi=gi+go+er;return new RegExp(Pi,"gim")}function Dt(En){return En>=97&&En<=122||En>=65&&En<=90||En>=48&&En<=57}function Ut(En){return En.includes("/node_modules/")}}function st(k,ie,H){return D(),vB.getRenameInfo(l,N(k),ie,H||{})}function G(k,ie,H,ue,We,Ne){let[It,Dt]=typeof ie=="number"?[ie,void 0]:[ie.pos,ie.end];return{file:k,startPosition:It,endPosition:Dt,program:j(),host:e,formatContext:wc.getFormatContext(ue,e),cancellationToken:h,preferences:H,triggerReason:We,kind:Ne}}function et(k,ie,H){return{file:k,program:j(),host:e,span:ie,preferences:H,cancellationToken:h}}function Tt(k,ie){return SQ.getSmartSelectionRange(ie,s.getCurrentSourceFile(k))}function He(k,ie,H=Cf,ue,We,Ne){D();let It=N(k);return T1.getApplicableRefactors(G(It,ie,H,Cf,ue,We),Ne)}function ut(k,ie,H=Cf){D();let ue=N(k),We=x.checkDefined(l.getSourceFiles()),Ne=VN(k),It=SO(G(ue,ie,H,Cf)),Dt=Nue(It?.all),Ut=to(We,En=>{let wn=VN(En.fileName);return!l?.isSourceFileFromExternalLibrary(ue)&&!(ue===N(En.fileName)||Ne===".ts"&&wn===".d.ts"||Ne===".d.ts"&&ao(nc(En.fileName),"lib.")&&wn===".d.ts")&&(Ne===wn||(Ne===".tsx"&&wn===".ts"||Ne===".jsx"&&wn===".js")&&!Dt)?En.fileName:void 0});return{newFileName:Cue(ue,l,e,It),files:Ut}}function Ft(k,ie,H,ue,We,Ne=Cf,It){D();let Dt=N(k);return T1.getEditsForRefactor(G(Dt,H,Ne,ie),ue,We,It)}function hn(k,ie){return ie===0?{line:0,character:0}:A.toLineColumnOffset(k,ie)}function dn(k,ie){D();let H=A1.resolveCallHierarchyDeclaration(l,Wu(N(k),ie));return H&&uX(H,ue=>A1.createCallHierarchyItem(l,ue))}function un(k,ie){D();let H=N(k),ue=pX(A1.resolveCallHierarchyDeclaration(l,ie===0?H:Wu(H,ie)));return ue?A1.getIncomingCalls(l,ue,h):[]}function U(k,ie){D();let H=N(k),ue=pX(A1.resolveCallHierarchyDeclaration(l,ie===0?H:Wu(H,ie)));return ue?A1.getOutgoingCalls(l,ue):[]}function Me(k,ie,H=Cf){D();let ue=N(k);return _Q.provideInlayHints(et(ue,ie,H))}let Nt={dispose:ce,cleanupSemanticCache:B,getSyntacticDiagnostics:z,getSemanticDiagnostics:Z,getSuggestionDiagnostics:me,getCompilerOptionsDiagnostics:ge,getSyntacticClassifications:pn,getSemanticClassifications:Dn,getEncodedSyntacticClassifications:Xt,getEncodedSemanticClassifications:Kn,getCompletionsAtPosition:q,getCompletionEntryDetails:J,getCompletionEntrySymbol:re,getSignatureHelpItems:Wt,getQuickInfoAtPosition:pe,getDefinitionAtPosition:ne,getDefinitionAndBoundSpan:he,getImplementationAtPosition:Ge,getTypeDefinitionAtPosition:Ce,getReferencesAtPosition:De,findReferences:Et,getFileReferences:be,getDocumentHighlights:ve,getNameOrDottedNameSpan:Je,getBreakpointStatementAtPosition:pt,getNavigateToItems:ze,getRenameInfo:st,getSmartSelectionRange:Tt,findRenameLocations:Ae,getNavigationBarItems:Zt,getNavigationTree:en,getOutliningSpans:Kt,getTodoComments:ke,getBraceMatchingAtPosition:uo,getIndentationAtPosition:Li,getFormattingEditsForRange:So,getFormattingEditsForDocument:Qn,getFormattingEditsAfterKeystroke:Ur,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:$i,getJsxClosingTagAtPosition:Io,getLinkedEditingRangeAtPosition:ua,getSpanOfEnclosingComment:ae,getCodeFixesAtPosition:Er,getCombinedCodeFix:on,applyCodeActionCommand:In,organizeImports:Ye,getEditsForFileRename:Ot,getEmitOutput:tt,getNonBoundSourceFile:_t,getProgram:j,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Y,getApplicableRefactors:He,getEditsForRefactor:Ft,getMoveToRefactoringFileSuggestions:ut,toLineColumnOffset:hn,getSourceMapper:()=>A,clearSourceMapperCache:()=>A.clearCache(),prepareCallHierarchy:dn,provideCallHierarchyIncomingCalls:un,provideCallHierarchyOutgoingCalls:U,toggleLineComment:vn,toggleMultilineComment:kn,commentSelection:Be,uncommentSelection:ct,provideInlayHints:Me,getSupportedCodeFixes:_Y};switch(o){case 0:break;case 1:lpe.forEach(k=>Nt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:JDe.forEach(k=>Nt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.Syntactic`)});break;default:x.assertNever(o)}return Nt}function gY(e){return e.nameTable||dqe(e),e.nameTable}function dqe(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Fe(i)&&!Sq(i)&&i.escapedText||$p(i)&&uqe(i)){let o=TN(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Ki(i)){let o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Go(i,r),kp(i))for(let o of i.jsDoc)Go(o,r)})}function uqe(e){return kg(e)||e.parent.kind===283||mqe(e)||j2(e)}function NO(e){let t=pqe(e);return t&&(Ma(t.parent)||q0(t.parent))?t:void 0}function pqe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return WV(e.parent.parent)?e.parent.parent:void 0;case 80:return WV(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function fqe(e,t){let r=NO(e);if(r){let i=t.getContextualType(r.parent),o=i&&J7(r,t,i,!1);if(o&&o.length===1)return Va(o)}return t.getSymbolAtLocation(e)}function J7(e,t,r,i){let o=nO(e.name);if(!o)return Xe;if(!r.isUnion()){let d=r.getProperty(o);return d?[d]:Xe}let s=Ma(e.parent)||q0(e.parent)?jr(r.types,d=>!t.isTypeInvalidDueToUnionDiscriminant(d,e.parent)):r.types,l=to(s,d=>d.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){let d=r.getProperty(o);if(d)return[d]}return!s.length&&!l.length?to(r.types,d=>d.getProperty(o)):m0(l,Ty)}function mqe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function ope(e){if(hd)return Yr(oi(ma(hd.getExecutingFilePath())),HL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var ape,yY,vY,zDe,spe,bY,EY,BDe,GDe,VDe,jDe,UDe,HDe,KDe,SY,lpe,JDe,_qe=bt({"src/services/services.ts"(){"use strict";ai(),cRe(),NRe(),Sh(),zxe(),LDe(),ape="0.8",yY=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){x.assert(!Km(this.pos)&&!Km(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Gn(this)}getStart(e,t){return this.assertHasRealPosition(),oE(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=sqe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=Vr(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=$s(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Go(this,e,t)}},vY=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 Gn(this)}getStart(e,t){return oE(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||Xe}getFirstToken(){}getLastToken(){}forEachChild(){}},zDe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return vl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Xe,!this.declarations&&ch(this)&&this.links.target&&ch(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=U7([t],e)}else this.documentationComment=U7(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Pv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=U7(jr(this.declarations,Pv),t)),Nn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Cy(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=U7(jr(this.declarations,Cy),t)),Nn(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=mY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Pv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=mY(jr(this.declarations,Pv),t)),Nn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Cy(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=mY(jr(this.declarations,Cy),t)),Nn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},spe=class extends vY{constructor(e,t,r){super(t,r),this.kind=e}},bY=class extends vY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return gr(this)}},bY.prototype.kind=80,EY=class extends vY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return gr(this)}},EY.prototype.kind=81,BDe=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!!(Lr(this)&3)}isClass(){return!!(Lr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Lr(this)&4)return this.checker.getTypeArguments(this)}},GDe=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){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&XN(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=U7(pI(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=mY(pI(this.declaration),this.checker))}},VDe=class extends yY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return DH(this,e,t)}getLineAndCharacterOfPosition(e){return hs(this,e)}getLineStarts(){return Dg(this)}getPositionOfLineAndCharacter(e,t,r){return XW(Dg(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);let o=this.getFullText();return o[i]===` `&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=qp();return this.forEachChild(o),e;function t(s){let l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){let l=eF(s);return l&&(Ya(l)&&kr(l.expression)?l.expression.name.text:rc(l)?nO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:let l=s,d=i(l);if(d){let m=r(d),y=$s(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}Go(s,o);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(s),Go(s,o);break;case 169:if(!$r(s,31))break;case 260:case 208:{let m=s;if(Qo(m.name)){Go(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:let p=s;p.exportClause&&(xf(p.exportClause)?gn(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:let h=s.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===274?t(h.namedBindings):gn(h.namedBindings.elements,o)));break;case 226:zl(s)!==0&&t(s);default:Go(s,o)}}}},jDe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return hs(this,e)}},UDe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,d,p;let h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");let m=eX(e,this.host),y=this.host.getScriptVersion(e),E;if(this.currentFileName!==e){let S={languageVersion:99,impliedNodeFormat:Lw(tl(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||My(this.host)),(p=(d=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:d.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:ok(this.host.getCompilationSettings()),jsDocParsingMode:0};E=K7(e,h,S,y,!0,m)}else if(this.currentFileVersion!==y){let S=h.getChangeRange(this.currentFileScriptSnapshot);E=hY(this.currentSourceFile,h,y,S)}return E&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=E),this.currentSourceFile}},HDe={isCancellationRequested:Vm,throwIfCancellationRequested:qa},KDe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=rr)==null||e.instant(rr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Rx}},SY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Hs();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=rr)==null||e.instant(rr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Rx}},lpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],JDe=[...lpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],ooe(cqe())}});function qDe(e,t,r){let i=[];r=WX(r,i);let o=To(e)?e:[e],s=Aw(void 0,void 0,L,r,o,t,!0);return s.diagnostics=Eo(s.diagnostics,i),s}var hqe=bt({"src/services/transform.ts"(){"use strict";ai()}});function gqe(e,t){if(e.isDeclarationFile)return;let r=so(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){let y=Tc(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return m(r);function o(y,E){let S=GT(y)?sI(y.modifiers,bd):void 0,A=S?Na(e.text,S.end):y.getStart(e);return dc(A,(E||y).getEnd())}function s(y,E){return o(y,aS(E,E.parent,e))}function l(y,E){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?m(y):m(E)}function d(y,E,S){if(y){let A=y.indexOf(E);if(A>=0){let N=A,D=A+1;for(;N>0&&S(y[N-1]);)N--;for(;D0)return m(he.declarations[0])}else return m(ne.initializer)}function B(ne){if(ne.initializer)return Y(ne);if(ne.condition)return o(ne.condition);if(ne.incrementor)return o(ne.incrementor)}function ce(ne){let he=gn(ne.elements,Ce=>Ce.kind!==232?Ce:void 0);return he?m(he):ne.parent.kind===208?o(ne.parent):E(ne.parent)}function z(ne){x.assert(ne.kind!==207&&ne.kind!==206);let he=ne.kind===209?ne.elements:ne.properties,Ce=gn(he,Ge=>Ge.kind!==232?Ge:void 0);return Ce?m(Ce):o(ne.parent.kind===226?ne.parent:ne)}function Z(ne){switch(ne.parent.kind){case 266:let he=ne.parent;return l(Tc(ne.pos,e,ne.parent),he.members.length?he.members[0]:he.getLastToken(e));case 263:let Ce=ne.parent;return l(Tc(ne.pos,e,ne.parent),Ce.members.length?Ce.members[0]:Ce.getLastToken(e));case 269:return l(ne.parent.parent,ne.parent.clauses[0])}return m(ne.parent)}function me(ne){switch(ne.parent.kind){case 268:if(Vg(ne.parent.parent)!==1)return;case 266:case 263:return o(ne);case 241:if(x0(ne.parent))return o(ne);case 299:return m($s(ne.parent.statements));case 269:let he=ne.parent,Ce=$s(he.clauses);return Ce?m($s(Ce.statements)):void 0;case 206:let Ge=ne.parent;return m($s(Ge.elements)||Ge);default:if(Uy(ne.parent)){let ve=ne.parent;return o($s(ve.properties)||ve)}return m(ne.parent)}}function ge(ne){switch(ne.parent.kind){case 207:let he=ne.parent;return o($s(he.elements)||he);default:if(Uy(ne.parent)){let Ce=ne.parent;return o($s(Ce.elements)||Ce)}return m(ne.parent)}}function q(ne){return ne.parent.kind===246||ne.parent.kind===213||ne.parent.kind===214?p(ne):ne.parent.kind===217?h(ne):m(ne.parent)}function J(ne){switch(ne.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 p(ne);default:return m(ne.parent)}}function re(ne){return $o(ne.parent)||ne.parent.kind===303||ne.parent.kind===169?p(ne):m(ne.parent)}function pe(ne){return ne.parent.kind===216?h(ne):m(ne.parent)}function xe(ne){return ne.parent.kind===246?s(ne,ne.parent.expression):m(ne.parent)}function fe(ne){return ne.parent.kind===250?h(ne):m(ne.parent)}}}var yqe=bt({"src/services/breakpoints.ts"(){"use strict";ai()}}),TY={};xa(TY,{spanInSourceFileAtLocation:()=>gqe});var vqe=bt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";yqe()}});function bqe(e){return(Ps(e)||Zc(e))&&iu(e)}function XDe(e){return Uo(e)||wi(e)}function PO(e){return(Ps(e)||Os(e)||Zc(e))&&XDe(e.parent)&&e===e.parent.initializer&&Fe(e.parent.name)&&(!!(Ry(e.parent)&2)||Uo(e.parent))}function YDe(e){return Yi(e)||ql(e)||Ec(e)||Ps(e)||Sc(e)||Zc(e)||Al(e)||Ul(e)||_h(e)||Qp(e)||hp(e)}function bD(e){return Yi(e)||ql(e)&&Fe(e.name)||Ec(e)||Sc(e)||Al(e)||Ul(e)||_h(e)||Qp(e)||hp(e)||bqe(e)||PO(e)}function $De(e){return Yi(e)?e:iu(e)?e.name:PO(e)?e.parent.name:x.checkDefined(e.modifiers&&Vr(e.modifiers,QDe))}function QDe(e){return e.kind===90}function ZDe(e,t){let r=$De(t);return r&&e.getSymbolAtLocation(r)}function Eqe(e,t){if(Yi(t))return{text:t.fileName,pos:0,end:0};if((Ec(t)||Sc(t))&&!iu(t)){let o=t.modifiers&&Vr(t.modifiers,QDe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Al(t)){let o=t.getSourceFile(),s=Na(o.text,R_(t).pos),l=s+6,d=e.getTypeChecker(),p=d.getSymbolAtLocation(t.parent);return{text:`${p?`${d.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}let r=PO(t)?t.parent.name:x.checkDefined(Po(t),"Expected call hierarchy item to have a name"),i=Fe(r)?gr(r):$p(r)?r.text:Ya(r)&&$p(r.expression)?r.expression.text:void 0;if(i===void 0){let o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){let o=xw();i=cN(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function Sqe(e){var t,r,i,o;if(PO(e))return Uo(e.parent)&&ci(e.parent.parent)?Zc(e.parent.parent)?(t=tF(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():N_(e.parent.parent.parent.parent)&&Fe(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?(i=tF(e.parent))==null?void 0:i.getText():(o=Po(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(N_(e.parent)&&Fe(e.parent.parent.name))return e.parent.parent.name.getText()}}function eCe(e,t){if(t.body)return t;if(Pl(t))return Zh(t.parent);if(Ec(t)||Ul(t)){let r=ZDe(e,t);return r&&r.valueDeclaration&&ws(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function tCe(e,t){let r=ZDe(e,t),i;if(r&&r.declarations){let o=EL(r.declarations),s=mn(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>Vd(s[p].file,s[h].file)||s[p].pos-s[h].pos);let l=mn(o,p=>r.declarations[p]),d;for(let p of l)bD(p)&&((!d||d.parent!==p.parent||d.end!==p.pos)&&(i=Tn(i,p)),d=p)}return i}function AY(e,t){return Al(t)?t:ws(t)?eCe(e,t)??tCe(e,t)??t:tCe(e,t)??t}function nCe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(bD(t))return AY(r,t);if(YDe(t)){let o=Fn(t,bD);return o&&AY(r,o)}if(kg(t)){if(bD(t.parent))return AY(r,t.parent);if(YDe(t.parent)){let o=Fn(t.parent,bD);return o&&AY(r,o)}return XDe(t.parent)&&t.parent.initializer&&PO(t.parent.initializer)?t.parent.initializer:void 0}if(Pl(t))return bD(t.parent)?t.parent:void 0;if(t.kind===126&&Al(t.parent)){t=t.parent;continue}if(wi(t)&&t.initializer&&PO(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function cpe(e,t){let r=t.getSourceFile(),i=Eqe(e,t),o=Sqe(t),s=oS(t),l=XP(t),d=dc(Na(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=dc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:d,selectionSpan:p}}function Tqe(e){return e!==void 0}function Aqe(e){if(e.kind===Ms.EntryKind.Node){let{node:t}=e;if(yq(t,!0,!0)||Kce(t,!0,!0)||Jce(t,!0,!0)||qce(t,!0,!0)||aD(t)||Tq(t)){let r=t.getSourceFile();return{declaration:Fn(t,bD)||r,range:Fq(t,r)}}}}function rCe(e){return rs(e.declaration)}function Iqe(e,t){return{from:e,fromSpans:t}}function xqe(e,t){return Iqe(cpe(e,t[0].declaration),mn(t,r=>eb(r.range)))}function Rqe(e,t,r){if(Yi(t)||ql(t)||Al(t))return[];let i=$De(t),o=jr(Ms.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Ms.FindReferencesUse.References},Aqe),Tqe);return o?BC(o,rCe,s=>xqe(e,s)):[]}function Dqe(e,t){function r(o){let s=U0(o)?o.tag:au(o)?o.tagName:Ns(o)||Al(o)?o:o.expression,l=nCe(e,s);if(l){let d=Fq(s,o.getSourceFile());if(To(l))for(let p of l)t.push({declaration:p,range:d});else t.push({declaration:l,range:d})}}function i(o){if(o&&!(o.flags&33554432)){if(bD(o)){if(ci(o))for(let s of o.members)s.name&&Ya(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),gn(o.arguments,i);return;case 214:r(o),i(o.expression),gn(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Go(o,i);break;case 238:i(o.expression);return}qh(o)||Go(o,i)}}return i}function Cqe(e,t){gn(e.statements,t)}function Nqe(e,t){!$r(e,128)&&e.body&&N_(e.body)&&gn(e.body.statements,t)}function Pqe(e,t,r){let i=eCe(e,t);i&&(gn(i.parameters,r),r(i.body))}function Mqe(e,t){t(e.body)}function Lqe(e,t){gn(e.modifiers,t);let r=N0(e);r&&t(r.expression);for(let i of e.members)Am(i)&&gn(i.modifiers,t),Uo(i)?t(i.initializer):Pl(i)&&i.body?(gn(i.parameters,t),t(i.body)):Al(i)&&t(i)}function kqe(e,t){let r=[],i=Dqe(e,r);switch(t.kind){case 312:Cqe(t,i);break;case 267:Nqe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:Pqe(e.getTypeChecker(),t,i);break;case 263:case 231:Lqe(t,i);break;case 175:Mqe(t,i);break;default:x.assertNever(t)}return r}function wqe(e,t){return{to:e,fromSpans:t}}function Oqe(e,t){return wqe(cpe(e,t[0].declaration),mn(t,r=>eb(r.range)))}function Wqe(e,t){return t.flags&33554432||_h(t)?[]:BC(kqe(e,t),rCe,r=>Oqe(e,r))}var Fqe=bt({"src/services/callHierarchy.ts"(){"use strict";ai()}}),A1={};xa(A1,{createCallHierarchyItem:()=>cpe,getIncomingCalls:()=>Rqe,getOutgoingCalls:()=>Wqe,resolveCallHierarchyDeclaration:()=>nCe});var zqe=bt({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";Fqe()}}),iCe={};xa(iCe,{TokenEncodingConsts:()=>epe,TokenModifier:()=>npe,TokenType:()=>tpe,getEncodedSemanticClassifications:()=>Zue,getSemanticClassifications:()=>NDe});var Bqe=bt({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";LDe()}}),dpe={};xa(dpe,{v2020:()=>iCe});var Gqe=bt({"src/services/_namespaces/ts.classifier.ts"(){"use strict";Bqe()}});function Qm(e,t,r){return ppe(e,ZT(r),t,void 0,void 0)}function oa(e,t,r,i,o,s){return ppe(e,ZT(r),t,i,ZT(o),s)}function upe(e,t,r,i,o,s){return ppe(e,ZT(r),t,i,o&&ZT(o),s)}function ppe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Ea(e){for(let t of e.errorCodes)fpe=void 0,IY.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)x.assert(!xY.has(t)),xY.set(t,e)}function Vqe(){return fpe??(fpe=Wo(IY.keys()))}function jqe(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(Bo(r,s.code)&&i++,i>1)break;let o=i<2;return({fixId:s,fixAllDescription:l,...d})=>o?d:{...d,fixId:s,fixAllDescription:l}}function Uqe(e){let t=aCe(e),r=IY.get(String(e.errorCode));return va(r,i=>mn(i.getCodeActions(e),jqe(i,t)))}function Hqe(e){return xY.get(na(e.fixId,No)).getAllCodeActions(e)}function ED(e,t){return{changes:e,commands:t}}function oCe(e,t){return{fileName:e,textChanges:t}}function gs(e,t,r){let i=[],o=ur.ChangeTracker.with(e,s=>SD(e,t,l=>r(s,l,i)));return ED(o,i.length===0?void 0:i)}function SD(e,t,r){for(let i of aCe(e))Bo(t,i.code)&&r(i)}function aCe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...MX(t,e,r)]}var IY,xY,fpe,Kqe=bt({"src/services/codeFixProvider.ts"(){"use strict";ai(),IY=qp(),xY=new Map}});function sCe(e,t,r){let i=Ok(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function lCe(e,t){if(!ir(e))return Fn(so(e,t),r=>Ok(r)||uae(r))}var RY,mpe,Jqe=bt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";ai(),Ta(),RY="addConvertToUnknownForNonOverlappingTypes",mpe=[f.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],Ea({errorCodes:mpe,getCodeActions:function(t){let r=lCe(t.sourceFile,t.span.start);if(r===void 0)return;let i=ur.ChangeTracker.with(t,o=>sCe(o,t.sourceFile,r));return[oa(RY,i,f.Add_unknown_conversion_for_non_overlapping_types,RY,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[RY],getAllCodeActions:e=>gs(e,mpe,(t,r)=>{let i=lCe(r.file,r.start);i&&sCe(t,r.file,i)})})}}),qqe=bt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";ai(),Ta(),Ea({errorCodes:[f.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,f.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,f.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){let{sourceFile:r}=t,i=ur.ChangeTracker.with(t,o=>{let s=L.createExportDeclaration(void 0,!1,L.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Qm("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function cCe(e,t,r,i){let o=r(s=>Xqe(s,e.sourceFile,t,i));return oa(DY,o,f.Add_async_modifier_to_containing_function,DY,f.Add_all_missing_async_modifiers)}function Xqe(e,t,r,i){if(i&&i.has(rs(r)))return;i?.add(rs(r));let o=L.replaceModifiers(ol(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(Wv(r)|1024)));e.replaceNode(t,r,o)}function dCe(e,t){if(!t)return;let r=so(e,t.start);return Fn(r,o=>o.getStart(e)Jl(t)?"quit":(Os(o)||Ul(o)||Ps(o)||Ec(o))&&uD(t,Iu(o,e)))}function Yqe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Ey(r)&&Ey(i)&&uD({start:r,length:i},e)&&s===t&&!!o&>(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var DY,_pe,$qe=bt({"src/services/codefixes/addMissingAsync.ts"(){"use strict";ai(),Ta(),DY="addMissingAsync",_pe=[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_comparable_to_type_1.code],Ea({fixIds:[DY],errorCodes:_pe,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,d=Vr(s.getTypeChecker().getDiagnostics(r,o),Yqe(l,i)),p=d&&d.relatedInformation&&Vr(d.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=dCe(r,p);return h?[cCe(t,h,y=>ur.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return gs(e,_pe,(i,o)=>{let s=o.relatedInformation&&Vr(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=dCe(t,s);return l?cCe(e,l,p=>(p(i),[]),r):void 0})}})}});function uCe(e,t,r,i,o){let s=dX(e,r);return s&&Qqe(e,t,r,i,o)&&mCe(s)?s:void 0}function pCe(e,t,r,i,o,s){let{sourceFile:l,program:d,cancellationToken:p}=e,h=Zqe(t,l,p,d,i);if(h){let m=o(y=>{gn(h.initializers,({expression:E})=>hpe(y,r,l,i,E,s)),s&&h.needsSecondPassForFixAll&&hpe(y,r,l,i,t,s)});return Qm("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function fCe(e,t,r,i,o,s){let l=o(d=>hpe(d,r,e.sourceFile,i,t,s));return oa(CY,l,f.Add_await,CY,f.Fix_all_expressions_possibly_missing_await)}function Qqe(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return gt(l,({start:d,length:p,relatedInformation:h,code:m})=>Ey(d)&&Ey(p)&&uD({start:d,length:p},r)&&m===t&&!!h&>(h,y=>y.code===f.Did_you_forget_to_use_await.code))}function Zqe(e,t,r,i,o){let s=eXe(e,o);if(!s)return;let l=s.isCompleteFix,d;for(let p of s.identifiers){let h=o.getSymbolAtLocation(p);if(!h)continue;let m=ri(h.valueDeclaration,wi),y=m&&ri(m.name,Fe),E=dE(m,243);if(!m||!E||m.type||!m.initializer||E.getSourceFile()!==t||$r(E,32)||!y||!mCe(m.initializer)){l=!1;continue}let S=i.getSemanticDiagnostics(t,r);if(Ms.Core.eachSymbolReferenceInFile(y,o,t,N=>p!==N&&!tXe(N,S,t,o))){l=!1;continue}(d||(d=[])).push({expression:m.initializer,declarationSymbol:h})}return d&&{initializers:d,needsSecondPassForFixAll:!l}}function eXe(e,t){if(kr(e.parent)&&Fe(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Fe(e))return{identifiers:[e],isCompleteFix:!0};if(dr(e)){let r,i=!0;for(let o of[e.left,e.right]){let s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Fe(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function tXe(e,t,r,i){let o=kr(e.parent)?e.parent.name:dr(e.parent)?e.parent:e,s=Vr(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&Bo(NY,s.code)||i.getTypeAtLocation(o).flags&1}function mCe(e){return e.flags&65536||!!Fn(e,t=>t.parent&&Os(t.parent)&&t.parent.body===t||Ko(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function hpe(e,t,r,i,o,s){if(Wk(o.parent)&&!o.parent.awaitModifier){let l=i.getTypeAtLocation(o),d=i.getAsyncIterableType();if(d&&i.isTypeAssignableTo(l,d)){let p=o.parent;e.replaceNode(r,p,L.updateForOfStatement(p,L.createToken(135),p.initializer,p.expression,p.statement));return}}if(dr(o))for(let l of[o.left,o.right]){if(s&&Fe(l)){let h=i.getSymbolAtLocation(l);if(h&&s.has(ba(h)))continue}let d=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(d)?L.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===gpe&&kr(o.parent)){if(s&&Fe(o.parent.expression)){let l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(ba(l)))return}e.replaceNode(r,o.parent.expression,L.createParenthesizedExpression(L.createAwaitExpression(o.parent.expression))),_Ce(e,o.parent.expression,r)}else if(Bo(ype,t)&&v_(o.parent)){if(s&&Fe(o)){let l=i.getSymbolAtLocation(o);if(l&&s.has(ba(l)))return}e.replaceNode(r,o,L.createParenthesizedExpression(L.createAwaitExpression(o))),_Ce(e,o,r)}else{if(s&&wi(o.parent)&&Fe(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!Kb(s,ba(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function _Ce(e,t,r){let i=Tc(t.pos,r);i&&a7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var CY,gpe,ype,NY,nXe=bt({"src/services/codefixes/addMissingAwait.ts"(){"use strict";ai(),Ta(),CY="addMissingAwait",gpe=f.Property_0_does_not_exist_on_type_1.code,ype=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],NY=[f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.Operator_0_cannot_be_applied_to_type_1.code,f.Operator_0_cannot_be_applied_to_types_1_and_2.code,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,f.This_condition_will_always_return_true_since_this_0_is_always_defined.code,f.Type_0_is_not_an_array_type.code,f.Type_0_is_not_an_array_type_or_a_string_type.code,f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,gpe,...ype],Ea({fixIds:[CY],errorCodes:NY,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,d=uCe(r,i,o,s,l);if(!d)return;let p=t.program.getTypeChecker(),h=m=>ur.ChangeTracker.with(t,m);return SL([pCe(t,d,i,p,h),fCe(t,d,i,p,h)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return gs(e,NY,(l,d)=>{let p=uCe(t,d.code,d,i,r);if(!p)return;let h=m=>(m(l),[]);return pCe(e,p,d.code,o,h,s)||fCe(e,p,d.code,o,h,s)})}})}});function hCe(e,t,r,i,o){let s=so(t,r),l=Fn(s,h=>Fx(h.parent)?h.parent.initializer===h:rXe(h)?!1:"quit");if(l)return PY(e,l,t,o);let d=s.parent;if(dr(d)&&d.operatorToken.kind===64&&ed(d.parent))return PY(e,s,t,o);if(uu(d)){let h=i.getTypeChecker();return oo(d.elements,m=>iXe(m,h))?PY(e,d,t,o):void 0}let p=Fn(s,h=>ed(h.parent)?!0:oXe(h)?!1:"quit");if(p){let h=i.getTypeChecker();return gCe(p,h)?PY(e,p,t,o):void 0}}function PY(e,t,r,i){(!i||Kb(i,t))&&e.insertModifierBefore(r,87,t)}function rXe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function iXe(e,t){let r=Fe(e)?e:Mc(e,!0)&&Fe(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function oXe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function gCe(e,t){return dr(e)?e.operatorToken.kind===28?oo([e.left,e.right],r=>gCe(r,t)):e.operatorToken.kind===64&&Fe(e.left)&&!t.getSymbolAtLocation(e.left):!1}var MY,vpe,aXe=bt({"src/services/codefixes/addMissingConst.ts"(){"use strict";ai(),Ta(),MY="addMissingConst",vpe=[f.Cannot_find_name_0.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Ea({errorCodes:vpe,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>hCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[oa(MY,r,f.Add_const_to_unresolved_variable,MY,f.Add_const_to_all_unresolved_variables)]},fixIds:[MY],getAllCodeActions:e=>{let t=new Set;return gs(e,vpe,(r,i)=>hCe(r,i.file,i.start,e.program,t))}})}});function yCe(e,t,r,i){let o=so(t,r);if(!Fe(o))return;let s=o.parent;s.kind===172&&(!i||Kb(i,s))&&e.insertModifierBefore(t,138,s)}var LY,bpe,sXe=bt({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";ai(),Ta(),LY="addMissingDeclareProperty",bpe=[f.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],Ea({errorCodes:bpe,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>yCe(i,t.sourceFile,t.span.start));if(r.length>0)return[oa(LY,r,f.Prefix_with_declare,LY,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[LY],getAllCodeActions:e=>{let t=new Set;return gs(e,bpe,(r,i)=>yCe(r,i.file,i.start,t))}})}});function vCe(e,t,r){let i=so(t,r),o=Fn(i,bd);x.assert(!!o,"Expected position to be owned by a decorator.");let s=L.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var kY,Epe,lXe=bt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";ai(),Ta(),kY="addMissingInvocationForDecorator",Epe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Ea({errorCodes:Epe,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>vCe(i,t.sourceFile,t.span.start));return[oa(kY,r,f.Call_decorator_expression,kY,f.Add_to_all_uncalled_decorators)]},fixIds:[kY],getAllCodeActions:e=>gs(e,Epe,(t,r)=>vCe(t,r.file,r.start))})}});function bCe(e,t,r){let i=so(t,r),o=i.parent;if(!Ao(o))return x.fail("Tried to add a parameter name to a non-parameter: "+x.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);x.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),x.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),d=L.createTypeReferenceNode(o.name,void 0),p=ECe(t,o);for(;p;)d=L.createArrayTypeNode(d),l=p.getEnd(),p=ECe(t,p);let h=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!kk(d)?L.createArrayTypeNode(d):d,o.initializer);e.replaceRange(t,Ef(o.getStart(t),l),h)}function ECe(e,t){let r=aS(t.name,t.parent,e);if(r&&r.kind===23&&V0(r.parent)&&Ao(r.parent.parent))return r.parent.parent}var wY,Spe,cXe=bt({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";ai(),Ta(),wY="addNameToNamelessParameter",Spe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Ea({errorCodes:Spe,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>bCe(i,t.sourceFile,t.span.start));return[oa(wY,r,f.Add_parameter_name,wY,f.Add_names_to_all_parameters_without_names)]},fixIds:[wY],getAllCodeActions:e=>gs(e,Spe,(t,r)=>bCe(t,r.file,r.start))})}});function dXe(e,t,r){var i,o;let s=SCe(dX(e,t),r);if(!s)return Xe;let{source:l,target:d}=s,p=uXe(l,d,r)?r.getTypeAtLocation(d.expression):r.getTypeAtLocation(d);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>Gn(h).fileName.match(/\.d\.ts$/))?Xe:r.getExactOptionalProperties(p)}function uXe(e,t,r){return kr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function SCe(e,t){var r;if(e){if(dr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(wi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(ia(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!vI(i.valueDeclaration.kind)||!ht(e))return;let o=e.parent.arguments.indexOf(e);if(o===-1)return;let s=i.valueDeclaration.parameters[o].name;if(Fe(s))return{source:e,target:s}}else if(mc(e.parent)&&Fe(e.parent.name)||Zu(e.parent)){let i=SCe(e.parent.parent,t);if(!i)return;let o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:mc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function pXe(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(_p(i)||Uo(i))&&i.type){let o=L.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],L.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var Tpe,TCe,fXe=bt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";ai(),Ta(),Tpe="addOptionalPropertyUndefined",TCe=[f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.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],Ea({errorCodes:TCe,getCodeActions(e){let t=e.program.getTypeChecker(),r=dXe(e.sourceFile,e.span,t);if(!r.length)return;let i=ur.ChangeTracker.with(e,o=>pXe(o,r));return[Qm(Tpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Tpe]})}});function ACe(e,t){let r=so(e,t);return ri(Ao(r.parent)?r.parent.parent:r.parent,ICe)}function ICe(e){return mXe(e)&&xCe(e)}function xCe(e){return ws(e)?e.parameters.some(xCe)||!e.type&&!!YL(e):!e.type&&!!nE(e)}function RCe(e,t,r){if(ws(r)&&(YL(r)||r.parameters.some(i=>!!nE(i)))){if(!r.typeParameters){let o=d6(r);o.length&&e.insertTypeParameters(t,r,o)}let i=Os(r)&&!_s(r,21,t);i&&e.insertNodeBefore(t,Va(r.parameters),L.createToken(21));for(let o of r.parameters)if(!o.type){let s=nE(o);s&&e.tryInsertTypeAnnotation(t,o,$e(s,uS,ji))}if(i&&e.insertNodeAfter(t,Ja(r.parameters),L.createToken(22)),!r.type){let o=YL(r);o&&e.tryInsertTypeAnnotation(t,r,$e(o,uS,ji))}}else{let i=x.checkDefined(nE(r),"A JSDocType for this declaration should exist");x.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,$e(i,uS,ji))}}function mXe(e){return ws(e)||e.kind===260||e.kind===171||e.kind===172}function uS(e){switch(e.kind){case 319:case 320:return L.createTypeReferenceNode("any",Xe);case 323:return hXe(e);case 322:return uS(e.type);case 321:return gXe(e);case 325:return yXe(e);case 324:return vXe(e);case 183:return EXe(e);case 329:return _Xe(e);default:let t=Sn(e,uS,void 0);return lr(t,1),t}}function _Xe(e){let t=L.createTypeLiteralNode(mn(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,Fe(r.name)?r.name:r.name.right,uk(r)?L.createToken(58):void 0,r.typeExpression&&$e(r.typeExpression.type,uS,ji)||L.createKeywordTypeNode(133))));return lr(t,1),t}function hXe(e){return L.createUnionTypeNode([$e(e.type,uS,ji),L.createTypeReferenceNode("undefined",Xe)])}function gXe(e){return L.createUnionTypeNode([$e(e.type,uS,ji),L.createTypeReferenceNode("null",Xe)])}function yXe(e){return L.createArrayTypeNode($e(e.type,uS,ji))}function vXe(e){return L.createFunctionTypeNode(Xe,e.parameters.map(bXe),e.type??L.createKeywordTypeNode(133))}function bXe(e){let t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?L.createToken(26):e.dotDotDotToken;return L.createParameterDeclaration(e.modifiers,o,i,e.questionToken,$e(e.type,uS,ji),e.initializer)}function EXe(e){let t=e.typeName,r=e.typeArguments;if(Fe(e.typeName)){if(HF(e))return SXe(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=L.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=L.createNodeArray([L.createTypeReferenceNode("any",Xe)]):r=zn(e.typeArguments,uS,ji)}return L.createTypeReferenceNode(t,r)}function SXe(e){let t=L.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,L.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=L.createTypeLiteralNode([L.createIndexSignature(void 0,[t],e.typeArguments[1])]);return lr(r,1),r}var OY,Ape,TXe=bt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";ai(),Ta(),OY="annotateWithTypeFromJSDoc",Ape=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Ea({errorCodes:Ape,getCodeActions(e){let t=ACe(e.sourceFile,e.span.start);if(!t)return;let r=ur.ChangeTracker.with(e,i=>RCe(i,e.sourceFile,t));return[oa(OY,r,f.Annotate_with_type_from_JSDoc,OY,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[OY],getAllCodeActions:e=>gs(e,Ape,(t,r)=>{let i=ACe(r.file,r.start);i&&RCe(t,r.file,i)})})}});function DCe(e,t,r,i,o,s){let l=i.getSymbolAtLocation(so(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;let d=l.valueDeclaration;if(Ec(d)||Ps(d))e.replaceNode(t,d,m(d));else if(wi(d)){let y=h(d);if(!y)return;let E=d.parent.parent;Uc(d.parent)&&d.parent.declarations.length>1?(e.delete(t,d),e.insertNodeAfter(t,E,y)):e.replaceNode(t,E,y)}function p(y){let E=[];return y.exports&&y.exports.forEach(N=>{if(N.name==="prototype"&&N.declarations){let D=N.declarations[0];if(N.declarations.length===1&&kr(D)&&dr(D.parent)&&D.parent.operatorToken.kind===64&&Ma(D.parent.right)){let w=D.parent.right;A(w.symbol,void 0,E)}}else A(N,[L.createToken(126)],E)}),y.members&&y.members.forEach((N,D)=>{var w,j,K,Y;if(D==="constructor"&&N.valueDeclaration){let B=(Y=(K=(j=(w=y.exports)==null?void 0:w.get("prototype"))==null?void 0:j.declarations)==null?void 0:K[0])==null?void 0:Y.parent;B&&dr(B)&&Ma(B.right)&>(B.right.properties,FY)||e.delete(t,N.valueDeclaration.parent);return}A(N,void 0,E)}),E;function S(N,D){return Ns(N)?kr(N)&&FY(N)?!0:$o(D):oo(N.properties,w=>!!(Ul(w)||iF(w)||mc(w)&&Ps(w.initializer)&&w.name||FY(w)))}function A(N,D,w){if(!(N.flags&8192)&&!(N.flags&4096))return;let j=N.valueDeclaration,K=j.parent,Y=K.right;if(!S(j,Y)||gt(w,me=>{let ge=Po(me);return!!(ge&&Fe(ge)&&gr(ge)===vl(N))}))return;let B=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,B),!Y){w.push(L.createPropertyDeclaration(D,N.name,void 0,void 0,void 0));return}if(Ns(j)&&(Ps(Y)||Os(Y))){let me=of(t,o),ge=AXe(j,s,me);ge&&ce(w,Y,ge);return}else if(Ma(Y)){gn(Y.properties,me=>{(Ul(me)||iF(me))&&w.push(me),mc(me)&&Ps(me.initializer)&&ce(w,me.initializer,me.name),FY(me)});return}else{if(su(t)||!kr(j))return;let me=L.createPropertyDeclaration(D,j.name,void 0,void 0,Y);fD(K.parent,me,t),w.push(me);return}function ce(me,ge,q){return Ps(ge)?z(me,ge,q):Z(me,ge,q)}function z(me,ge,q){let J=Eo(D,WY(ge,134)),re=L.createMethodDeclaration(J,void 0,q,void 0,void 0,ge.parameters,void 0,ge.body);fD(K,re,t),me.push(re)}function Z(me,ge,q){let J=ge.body,re;J.kind===241?re=J:re=L.createBlock([L.createReturnStatement(J)]);let pe=Eo(D,WY(ge,134)),xe=L.createMethodDeclaration(pe,void 0,q,void 0,void 0,ge.parameters,void 0,re);fD(K,xe,t),me.push(xe)}}}function h(y){let E=y.initializer;if(!E||!Ps(E)||!Fe(y.name))return;let S=p(y.symbol);E.body&&S.unshift(L.createConstructorDeclaration(void 0,E.parameters,E.body));let A=WY(y.parent.parent,95);return L.createClassDeclaration(A,y.name,void 0,void 0,S)}function m(y){let E=p(l);y.body&&E.unshift(L.createConstructorDeclaration(void 0,y.parameters,y.body));let S=WY(y,95);return L.createClassDeclaration(S,y.name,void 0,void 0,E)}}function WY(e,t){return Am(e)?jr(e.modifiers,r=>r.kind===t):void 0}function FY(e){return e.name?!!(Fe(e.name)&&e.name.text==="constructor"):!1}function AXe(e,t,r){if(kr(e))return e.name;let i=e.argumentExpression;if(mp(i))return i;if(as(i))return Yp(i.text,ns(t))?L.createIdentifier(i.text):HI(i)?L.createStringLiteral(i.text,r===0):i}var zY,Ipe,IXe=bt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";ai(),Ta(),zY="convertFunctionToEs6Class",Ipe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Ea({errorCodes:Ipe,getCodeActions(e){let t=ur.ChangeTracker.with(e,r=>DCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[oa(zY,t,f.Convert_function_to_an_ES2015_class,zY,f.Convert_all_constructor_functions_to_classes)]},fixIds:[zY],getAllCodeActions:e=>gs(e,Ipe,(t,r)=>DCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function CCe(e,t,r,i){let o=so(t,r),s;if(Fe(o)&&wi(o.parent)&&o.parent.initializer&&ws(o.parent.initializer)?s=o.parent.initializer:s=ri(Wp(so(t,r)),wX),!s)return;let l=new Map,d=ir(s),p=RXe(s,i),h=DXe(s,i,l);if(!LX(h,i))return;let m=h.body&&Ko(h.body)?xXe(h.body,i):Xe,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:d};if(!m.length)return;let E=Na(t.text,R_(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(let S of m)if(Go(S,function A(N){if(ia(N)){let D=TD(N,N,y,!1);if(I1())return!0;e.replaceNodeWithNodes(t,S,D)}else if(!$o(N)&&(Go(N,A),I1()))return!0}),I1())return}function xXe(e,t){let r=[];return I0(e,i=>{T7(i,t)&&r.push(i)}),r}function RXe(e,t){if(!e.body)return new Set;let r=new Set;return Go(e.body,function i(o){MO(o,t,"then")?(r.add(rs(o)),gn(o.arguments,i)):MO(o,t,"catch")||MO(o,t,"finally")?(r.add(rs(o)),Go(o,i)):PCe(o,t)?r.add(rs(o)):Go(o,i)}),r}function MO(e,t,r){if(!ia(e))return!1;let o=Hw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function NCe(e,t){return(Lr(e)&4)!==0&&e.target===t}function BY(e,t,r){if(e.expression.name.escapedText==="finally")return;let i=r.getTypeAtLocation(e.expression.expression);if(NCe(i,r.getPromiseType())||NCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Ay(e.arguments,0))return Ay(e.typeArguments,0);if(t===Ay(e.arguments,1))return Ay(e.typeArguments,1)}else return Ay(e.typeArguments,0)}function PCe(e,t){return ht(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function DXe(e,t,r){let i=new Map,o=qp();return Go(e,function s(l){if(!Fe(l)){Go(l,s);return}let d=t.getSymbolAtLocation(l);if(d){let p=t.getTypeAtLocation(l),h=WCe(p,t),m=ba(d).toString();if(h&&!Ao(l.parent)&&!ws(l.parent)&&!r.has(m)){let y=Xc(h.parameters),E=y?.valueDeclaration&&Ao(y.valueDeclaration)&&ri(y.valueDeclaration.name,Fe)||L.createUniqueName("result",16),S=MCe(E,o);r.set(m,S),o.add(E.text,d)}else if(l.parent&&(Ao(l.parent)||wi(l.parent)||Xa(l.parent))){let y=l.text,E=o.get(y);if(E&&E.some(S=>S!==d)){let S=MCe(l,o);i.set(m,S.identifier),r.set(m,S),o.add(y,d)}else{let S=ol(l);r.set(m,lM(S)),o.add(y,d)}}}}),aO(e,!0,s=>{if(Xa(s)&&Fe(s.name)&&tm(s.parent)){let l=t.getSymbolAtLocation(s.name),d=l&&i.get(String(ba(l)));if(d&&d.text!==(s.name||s.propertyName).getText())return L.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,d,s.initializer)}else if(Fe(s)){let l=t.getSymbolAtLocation(s),d=l&&i.get(String(ba(l)));if(d)return L.createIdentifier(d.text)}})}function MCe(e,t){let r=(t.get(e.text)||Xe).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return lM(i)}function I1(){return!X7}function NE(){return X7=!1,Xe}function TD(e,t,r,i,o){if(MO(t,r.checker,"then"))return PXe(t,Ay(t.arguments,0),Ay(t.arguments,1),r,i,o);if(MO(t,r.checker,"catch"))return wCe(t,Ay(t.arguments,0),r,i,o);if(MO(t,r.checker,"finally"))return NXe(t,Ay(t.arguments,0),r,i,o);if(kr(t))return TD(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(x.assertNode(Nl(t).parent,kr),MXe(e,t,r,i,o)):NE()}function GY({checker:e},t){if(t.kind===106)return!0;if(Fe(t)&&!rl(t)&&gr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function CXe(e){let t=L.createUniqueName(e.identifier.text,16);return lM(t)}function LCe(e,t,r){let i;return r&&!kO(e,t)&&(LO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=CXe(r);t.synthNamesMap.set(s,l)}})):i=lM(L.createUniqueName("result",16),r.types),Cpe(i)),i}function kCe(e,t,r,i,o){let s=[],l;if(i&&!kO(e,t)){l=ol(Cpe(i));let d=i.types,p=t.checker.getUnionType(d,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[L.createVariableDeclaration(l,void 0,h)],y=L.createVariableStatement(void 0,L.createVariableDeclarationList(m,1));s.push(y)}return s.push(r),o&&l&&wXe(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ol(GCe(o)),void 0,void 0,l)],2))),s}function NXe(e,t,r,i,o){if(!t||GY(r,t))return TD(e,e.expression.expression,r,i,o);let s=LCe(e,r,o),l=TD(e,e.expression.expression,r,!0,s);if(I1())return NE();let d=Rpe(t,i,void 0,void 0,e,r);if(I1())return NE();let p=L.createBlock(l),h=L.createBlock(d),m=L.createTryStatement(p,void 0,h);return kCe(e,r,m,s,o)}function wCe(e,t,r,i,o){if(!t||GY(r,t))return TD(e,e.expression.expression,r,i,o);let s=zCe(t,r),l=LCe(e,r,o),d=TD(e,e.expression.expression,r,!0,l);if(I1())return NE();let p=Rpe(t,i,l,s,e,r);if(I1())return NE();let h=L.createBlock(d),m=L.createCatchClause(s&&ol(q7(s)),L.createBlock(p)),y=L.createTryStatement(h,m,void 0);return kCe(e,r,y,l,o)}function PXe(e,t,r,i,o,s){if(!t||GY(i,t))return wCe(e,r,i,o,s);if(r&&!GY(i,r))return NE();let l=zCe(t,i),d=TD(e.expression.expression,e.expression.expression,i,!0,l);if(I1())return NE();let p=Rpe(t,o,s,l,e,i);return I1()?NE():Eo(d,p)}function MXe(e,t,r,i,o){if(kO(e,r)){let s=ol(t);return i&&(s=L.createAwaitExpression(s)),[L.createReturnStatement(s)]}return VY(o,L.createAwaitExpression(t),void 0)}function VY(e,t,r){return!e||BCe(e)?[L.createExpressionStatement(t)]:LO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(ol(Dpe(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ol(q7(e)),void 0,r,t)],2))]}function xpe(e,t){if(t&&e){let r=L.createUniqueName("result",16);return[...VY(lM(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function Rpe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let d=L.createCallExpression(ol(e),void 0,LO(i)?[Dpe(i)]:[]);if(kO(o,s))return xpe(d,BY(o,e,s.checker));let p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return NE();let m=h[0].getReturnType(),y=VY(r,L.createAwaitExpression(d),BY(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),y;case 218:case 219:{let E=e.body,S=(l=WCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Ko(E)){let A=[],N=!1;for(let D of E.statements)if(Sm(D))if(N=!0,T7(D,s.checker))A=A.concat(FCe(s,D,t,r));else{let w=S&&D.expression?OCe(s.checker,S,D.expression):D.expression;A.push(...xpe(w,BY(o,e,s.checker)))}else{if(t&&I0(D,Sy))return NE();A.push(D)}return kO(o,s)?A.map(D=>ol(D)):LXe(A,r,s,N)}else{let A=kX(E,s.checker)?FCe(s,L.createReturnStatement(E),t,r):Xe;if(A.length>0)return A;if(S){let N=OCe(s.checker,S,E);if(kO(o,s))return xpe(N,BY(o,e,s.checker));{let D=VY(r,N,void 0);return r&&r.types.push(s.checker.getAwaitedType(S)||S),D}}else return NE()}}default:return NE()}return Xe}function OCe(e,t,r){let i=ol(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function WCe(e,t){let r=t.getSignaturesOfType(e,0);return $s(r)}function LXe(e,t,r,i){let o=[];for(let s of e)if(Sm(s)){if(s.expression){let l=PCe(s.expression,r.checker)?L.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(L.createExpressionStatement(l)):LO(t)&&t.hasBeenDeclared?o.push(L.createExpressionStatement(L.createAssignment(Dpe(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(q7(t),void 0,void 0,l)],2)))}}else o.push(ol(s));return!i&&t!==void 0&&o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(q7(t),void 0,void 0,L.createIdentifier("undefined"))],2))),o}function FCe(e,t,r,i){let o=[];return Go(t,function s(l){if(ia(l)){let d=TD(l,l,e,r,i);if(o=o.concat(d),o.length>0)return}else $o(l)||Go(l,s)}),o}function zCe(e,t){let r=[],i;if(ws(e)){if(e.parameters.length>0){let p=e.parameters[0].name;i=o(p)}}else Fe(e)?i=s(e):kr(e)&&Fe(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Fe(p))return s(p);let h=va(p.elements,m=>jc(m)?[]:[o(m.name)]);return kXe(p,h)}function s(p){let h=d(p),m=l(h);return m&&t.synthNamesMap.get(ba(m).toString())||lM(p,r)}function l(p){var h;return((h=ri(p,b_))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function d(p){return p.original?p.original:p}}function BCe(e){return e?LO(e)?!e.identifier.text:oo(e.elements,BCe):!0}function lM(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function kXe(e,t=Xe,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Dpe(e){return e.hasBeenReferenced=!0,e.identifier}function q7(e){return LO(e)?Cpe(e):GCe(e)}function GCe(e){for(let t of e.elements)q7(t);return e.bindingPattern}function Cpe(e){return e.hasBeenDeclared=!0,e.identifier}function LO(e){return e.kind===0}function wXe(e){return e.kind===1}function kO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(rs(e.original))}var jY,Npe,X7,OXe=bt({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";ai(),Ta(),jY="convertToAsyncFunction",Npe=[f.This_may_be_converted_to_an_async_function.code],X7=!0,Ea({errorCodes:Npe,getCodeActions(e){X7=!0;let t=ur.ChangeTracker.with(e,r=>CCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return X7?[oa(jY,t,f.Convert_to_async_function,jY,f.Convert_all_to_async_functions)]:[]},fixIds:[jY],getAllCodeActions:e=>gs(e,Npe,(t,r)=>CCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function WXe(e,t,r,i,o){var s;for(let l of e.imports){let d=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!d||d.resolvedFileName!==t.fileName)continue;let p=yN(l);switch(p.kind){case 271:i.replaceNode(e,p,Hy(p.name,void 0,l,o));break;case 213:bu(p,!1)&&i.replaceNode(e,p,L.createPropertyAccessExpression(ol(p),"default"));break}}}function FXe(e,t,r,i,o){let s={original:$Xe(e),additional:new Set},l=zXe(e,t,s);BXe(e,l,r);let d=!1,p;for(let h of jr(e.statements,Ml)){let m=jCe(e,h,r,t,s,i,o);m&&vF(m,p??(p=new Map))}for(let h of jr(e.statements,m=>!Ml(m))){let m=GXe(e,h,t,r,s,i,l,p,o);d=d||m}return p?.forEach((h,m)=>{r.replaceNode(e,m,h)}),d}function zXe(e,t,r){let i=new Map;return VCe(e,o=>{let{text:s}=o.name;!i.has(s)&&(xj(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,UY(`_${s}`,r))}),i}function BXe(e,t,r){VCe(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function VCe(e,t){e.forEachChild(function r(i){if(kr(i)&&Z0(e,i.expression)&&Fe(i.name)){let{parent:o}=i;t(i,dr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function GXe(e,t,r,i,o,s,l,d,p){switch(t.kind){case 243:return jCe(e,t,i,r,o,s,p),!1;case 244:{let{expression:h}=t;switch(h.kind){case 213:return bu(h,!0)&&i.replaceNode(e,t,Hy(void 0,void 0,h.arguments[0],p)),!1;case 226:{let{operatorToken:m}=h;return m.kind===64&&jXe(e,r,h,i,l,d)}}}default:return!1}}function jCe(e,t,r,i,o,s,l){let{declarationList:d}=t,p=!1,h=mn(d.declarations,m=>{let{name:y,initializer:E}=m;if(E){if(Z0(e,E))return p=!0,cM([]);if(bu(E,!0))return p=!0,XXe(y,E.arguments[0],i,o,s,l);if(kr(E)&&bu(E.expression,!0))return p=!0,VXe(y,E.name.text,E.expression.arguments[0],o,l)}return cM([L.createVariableStatement(void 0,L.createVariableDeclarationList([m],d.flags))])});if(p){r.replaceNodeWithNodes(e,t,va(h,y=>y.newImports));let m;return gn(h,y=>{y.useSitesToUnqualify&&vF(y.useSitesToUnqualify,m??(m=new Map))}),m}}function VXe(e,t,r,i,o){switch(e.kind){case 206:case 207:{let s=UY(t,i);return cM([JCe(s,t,r,o),HY(void 0,e,L.createIdentifier(s))])}case 80:return cM([JCe(e.text,t,r,o)]);default:return x.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function jXe(e,t,r,i,o,s){let{left:l,right:d}=r;if(!kr(l))return!1;if(Z0(e,l))if(Z0(e,d))i.delete(e,r.parent);else{let p=Ma(d)?UXe(d,s):bu(d,!0)?KXe(d.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,Ef(l.getStart(e),d.pos),"export default"),!0)}else Z0(e,l.expression)&&HXe(e,r,i,o);return!1}function UXe(e,t){let r=PG(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Fe(i.name)?qXe(i.name.text,i.initializer,t):void 0;case 174:return Fe(i.name)?KCe(i.name.text,[L.createToken(95)],i,t):void 0;default:x.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function HXe(e,t,r,i){let{text:o}=t.left.name,s=i.get(o);if(s!==void 0){let l=[HY(void 0,s,t.right),Lpe([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else JXe(t,e,r)}function KXe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:IW;return o.has("export=")?[[Ppe(r)],!0]:o.has("default")?o.size>1?[[UCe(r),Ppe(r)],!0]:[[Ppe(r)],!0]:[[UCe(r)],!1]}function UCe(e){return Lpe(void 0,e)}function Ppe(e){return Lpe([L.createExportSpecifier(!1,void 0,"default")],e)}function JXe({left:e,right:t,parent:r},i,o){let s=e.name.text;if((Ps(t)||Os(t)||Zc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},L.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);let l=_s(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,_s(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function qXe(e,t,r){let i=[L.createToken(95)];switch(t.kind){case 218:{let{name:s}=t;if(s&&s.text!==e)return o()}case 219:return KCe(e,i,t,r);case 231:return ZXe(e,i,t,r);default:return o()}function o(){return HY(i,L.createIdentifier(e),Mpe(t,r))}}function Mpe(e,t){if(!t||!gt(Wo(t.keys()),i=>rf(e,i)))return e;return To(e)?nX(e,!0,r):aO(e,!0,r);function r(i){if(i.kind===211){let o=t.get(i);return t.delete(i),o}}}function XXe(e,t,r,i,o,s){switch(e.kind){case 206:{let l=PG(e.elements,d=>d.dotDotDotToken||d.initializer||d.propertyName&&!Fe(d.propertyName)||!Fe(d.name)?void 0:qCe(d.propertyName&&d.propertyName.text,d.name.text));if(l)return cM([Hy(void 0,l,t,s)])}case 207:{let l=UY(Kpe(t.text,o),i);return cM([Hy(L.createIdentifier(l),void 0,t,s),HY(void 0,ol(e),L.createIdentifier(l))])}case 80:return YXe(e,t,r,i,s);default:return x.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function YXe(e,t,r,i,o){let s=r.getSymbolAtLocation(e),l=new Map,d=!1,p;for(let m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;let{parent:y}=m;if(kr(y)){let{name:{text:E}}=y;if(E==="default"){d=!0;let S=m.getText();(p??(p=new Map)).set(y,L.createIdentifier(S))}else{x.assert(y.expression===m,"Didn't expect expression === use");let S=l.get(E);S===void 0&&(S=UY(E,i),l.set(E,S)),(p??(p=new Map)).set(y,L.createIdentifier(S))}}else d=!0}let h=l.size===0?void 0:Wo(kC(l.entries(),([m,y])=>L.createImportSpecifier(!1,m===y?void 0:L.createIdentifier(m),L.createIdentifier(y))));return h||(d=!0),cM([Hy(d?ol(e):void 0,h,t,o)],p)}function UY(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function $Xe(e){let t=qp();return HCe(e,r=>t.add(r.text,r)),t}function HCe(e,t){Fe(e)&&QXe(e)&&t(e),e.forEachChild(r=>HCe(r,t))}function QXe(e){let{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 KCe(e,t,r,i){return L.createFunctionDeclaration(Eo(t,sS(r.modifiers)),ol(r.asteriskToken),e,sS(r.typeParameters),sS(r.parameters),ol(r.type),L.converters.convertToFunctionBlock(Mpe(r.body,i)))}function ZXe(e,t,r,i){return L.createClassDeclaration(Eo(t,sS(r.modifiers)),e,sS(r.typeParameters),sS(r.heritageClauses),Mpe(r.members,i))}function JCe(e,t,r,i){return t==="default"?Hy(L.createIdentifier(e),void 0,r,i):Hy(void 0,[qCe(t,e)],r,i)}function qCe(e,t){return L.createImportSpecifier(!1,e!==void 0&&e!==t?L.createIdentifier(e):void 0,L.createIdentifier(t))}function HY(e,t,r){return L.createVariableStatement(e,L.createVariableDeclarationList([L.createVariableDeclaration(t,void 0,void 0,r)],2))}function Lpe(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function cM(e,t){return{newImports:e,useSitesToUnqualify:t}}var eYe=bt({"src/services/codefixes/convertToEsModule.ts"(){"use strict";ai(),Ta(),Ea({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:r,preferences:i}=e,o=ur.ChangeTracker.with(e,s=>{if(FXe(t,r.getTypeChecker(),s,ns(r.getCompilerOptions()),of(t,i)))for(let d of r.getSourceFiles())WXe(d,t,r,s,of(d,i))});return[Qm("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function XCe(e,t){let r=Fn(so(e,t),Su);return x.assert(!!r,"Expected position to be owned by a qualified name."),Fe(r.left)?r:void 0}function YCe(e,t,r){let i=r.right.text,o=L.createIndexedAccessTypeNode(L.createTypeReferenceNode(r.left,void 0),L.createLiteralTypeNode(L.createStringLiteral(i)));e.replaceNode(t,r,o)}var KY,kpe,tYe=bt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";ai(),Ta(),KY="correctQualifiedNameToIndexedAccessType",kpe=[f.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],Ea({errorCodes:kpe,getCodeActions(e){let t=XCe(e.sourceFile,e.span.start);if(!t)return;let r=ur.ChangeTracker.with(e,o=>YCe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[oa(KY,r,[f.Rewrite_as_the_indexed_access_type_0,i],KY,f.Rewrite_all_as_indexed_access_types)]},fixIds:[KY],getAllCodeActions:e=>gs(e,kpe,(t,r)=>{let i=XCe(r.file,r.start);i&&YCe(t,r.file,i)})})}});function $Ce(e,t){return ri(so(t,e.start).parent,Kd)}function QCe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=nYe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{let l=L.updateExportDeclaration(o,o.modifiers,!1,L.updateNamedExports(i,jr(i.elements,p=>!Bo(s,p))),o.moduleSpecifier,void 0),d=L.createExportDeclaration(void 0,!0,L.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:ur.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ur.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,d)}}function nYe(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=kde(Iu(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return jr(r.elements,o=>{var s;return o===e||((s=Lde(o,i))==null?void 0:s.code)===JY[0]})}var JY,qY,rYe=bt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";ai(),Ta(),JY=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],qY="convertToTypeOnlyExport",Ea({errorCodes:JY,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>QCe(i,$Ce(t.span,t.sourceFile),t));if(r.length)return[oa(qY,r,f.Convert_to_type_only_export,qY,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[qY],getAllCodeActions:function(t){let r=new Map;return gs(t,JY,(i,o)=>{let s=$Ce(o,t.sourceFile);s&&Em(r,rs(s.parent.parent))&&QCe(i,s,t)})}})}});function ZCe(e,t){let{parent:r}=so(e,t);return Qu(r)||Lc(r)&&r.importClause?r:void 0}function eNe(e,t,r){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;let o=r.getTypeChecker();for(let s of i)if(Ms.Core.eachSymbolReferenceInFile(s.name,o,t,d=>!fE(d)))return!1;return!0}function Y7(e,t,r){var i;if(Qu(r))e.replaceNode(t,r,L.updateImportSpecifier(r,!0,r.propertyName,r.name));else{let o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[L.createImportDeclaration(sS(r.modifiers,!0),L.createImportClause(!0,ol(o.name,!0),void 0),ol(r.moduleSpecifier,!0),ol(r.attributes,!0)),L.createImportDeclaration(sS(r.modifiers,!0),L.createImportClause(!0,void 0,ol(o.namedBindings,!0)),ol(r.moduleSpecifier,!0),ol(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===275?L.updateNamedImports(o.namedBindings,Pc(o.namedBindings.elements,d=>L.updateImportSpecifier(d,!1,d.propertyName,d.name))):o.namedBindings,l=L.updateImportDeclaration(r,r.modifiers,L.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var wpe,$7,iYe=bt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";ai(),Ta(),wpe=[f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],$7="convertToTypeOnlyImport",Ea({errorCodes:wpe,getCodeActions:function(t){var r;let i=ZCe(t.sourceFile,t.span.start);if(i){let o=ur.ChangeTracker.with(t,d=>Y7(d,t.sourceFile,i)),s=i.kind===276&&eNe(i,t.sourceFile,t.program)?ur.ChangeTracker.with(t,d=>Y7(d,t.sourceFile,i.parent.parent.parent)):void 0,l=oa($7,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,$7,f.Fix_all_with_type_only_imports);return gt(s)?[Qm($7,s,f.Use_import_type),l]:[l]}},fixIds:[$7],getAllCodeActions:function(t){let r=new Set;return gs(t,wpe,(i,o)=>{let s=ZCe(o.file,o.start);s?.kind===272&&!r.has(s)?(Y7(i,o.file,s),r.add(s)):s?.kind===276&&!r.has(s.parent.parent.parent)&&eNe(s,o.file,t.program)?(Y7(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===276&&Y7(i,o.file,s)})}})}});function tNe(e,t,r,i,o=!1){if(!zT(t))return;let s=aYe(t);if(!s)return;let l=t.parent,{leftSibling:d,rightSibling:p}=oYe(t),h=l.getStart(),m="";!d&&l.comment&&(h=nNe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),d&&(o&&zT(d)?(h=t.getStart(),m=""):(h=nNe(l,d.getStart(),t.getStart()),m=`${i} */${i}`));let y=l.getEnd(),E="";p&&(o&&zT(p)?(y=p.getStart(),E=`${i}${i}`):(y=p.getStart(),E=`${i}/**${i} * `)),e.replaceRange(r,{pos:h,end:y},s,{prefix:m,suffix:E})}function oYe(e){let t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function aYe(e){var t;let{typeExpression:r}=e;if(!r)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return sYe(i,r);if(r.kind===316)return lYe(i,r)}}function sYe(e,t){let r=rNe(t);if(gt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function lYe(e,t){let r=ol(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function rNe(e){let t=e.jsDocPropertyTags;return gt(t)?to(t,i=>{var o;let s=cYe(i),l=(o=i.typeExpression)==null?void 0:o.type,d=i.isBracketed,p;if(l&&FT(l)){let h=rNe(l);p=L.createTypeLiteralNode(h)}else l&&(p=ol(l));if(p&&s){let h=d?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,h,p)}}):void 0}function cYe(e){return e.name.kind===80?e.name.text:e.name.right.text}function dYe(e){return kp(e)?va(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>zT(i))}):[]}var XY,Ope,uYe=bt({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";ai(),Ta(),XY="convertTypedefToType",Ope=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Ea({fixIds:[XY],errorCodes:Ope,getCodeActions(e){let t=Ky(e.host,e.formatContext.options),r=so(e.sourceFile,e.span.start);if(!r)return;let i=ur.ChangeTracker.with(e,o=>tNe(o,r,e.sourceFile,t));if(i.length>0)return[oa(XY,i,f.Convert_typedef_to_TypeScript_type,XY,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>gs(e,Ope,(t,r)=>{let i=Ky(e.host,e.formatContext.options),o=so(r.file,r.start);o&&tNe(t,o,r.file,i,!0)})})}});function iNe(e,t){let r=so(e,t);if(Fe(r)){let i=na(r.parent.parent,_p),o=r.getText(e);return{container:na(i.parent,gp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function oNe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,L.createMappedTypeNode(void 0,L.createTypeParameterDeclaration(void 0,s,L.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var YY,Wpe,pYe=bt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";ai(),Ta(),YY="convertLiteralTypeToMappedType",Wpe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Ea({errorCodes:Wpe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=iNe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,d=ur.ChangeTracker.with(t,p=>oNe(p,r,o));return[oa(YY,d,[f.Convert_0_to_1_in_0,l,s],YY,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[YY],getAllCodeActions:e=>gs(e,Wpe,(t,r)=>{let i=iNe(r.file,r.start);i&&oNe(t,r.file,i)})})}});function aNe(e,t){return x.checkDefined(ad(so(e,t)),"There should be a containing class")}function sNe(e){return!e.valueDeclaration||!(lu(e.valueDeclaration)&2)}function lNe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),d=fYe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(EW(sNe,D=>!d.has(D.escapedName))),y=l.getTypeAtLocation(i),E=Vr(i.members,D=>Pl(D));y.getNumberIndexType()||A(p,1),y.getStringIndexType()||A(p,0);let S=x1(r,e.program,s,e.host);Hfe(i,m,r,e,s,S,D=>N(r,i,D)),S.writeFixes(o);function A(D,w){let j=l.getIndexInfoOfType(D,w);j&&N(r,i,l.indexInfoToIndexSignatureDeclaration(j,i,void 0,AD(e)))}function N(D,w,j){E?o.insertNodeAfter(D,E,j):o.insertMemberAtStart(D,w,j)}}function fYe(e,t){let r=S_(e);if(!r)return aa();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return aa(o.filter(sNe))}var Fpe,$Y,mYe=bt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";ai(),Ta(),Fpe=[f.Class_0_incorrectly_implements_interface_1.code,f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],$Y="fixClassIncorrectlyImplementsInterface",Ea({errorCodes:Fpe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=aNe(t,r.start);return to(aR(i),o=>{let s=ur.ChangeTracker.with(e,l=>lNe(e,o,t,i,l,e.preferences));return s.length===0?void 0:oa($Y,s,[f.Implement_interface_0,o.getText(t)],$Y,f.Implement_all_unimplemented_interfaces)})},fixIds:[$Y],getAllCodeActions(e){let t=new Map;return gs(e,Fpe,(r,i)=>{let o=aNe(i.file,i.start);if(Em(t,rs(o)))for(let s of aR(o))lNe(e,s,i.file,o,r,e.preferences)})}})}});function x1(e,t,r,i,o){return cNe(e,t,!1,r,i,o)}function cNe(e,t,r,i,o,s){let l=t.getCompilerOptions(),d=[],p=[],h=new Map,m=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:E,writeFixes:A,hasFixes:N};function y(D,w){let j=_Ne(w,D.code,D.start,r);!j||!j.length||S(Va(j))}function E(D,w){let j=x.checkDefined(D.parent),K=p7(D,ns(l)),Y=t.getTypeChecker(),B=Y.getMergedSymbol(vd(D,Y)),ce=pNe(e,B,K,j,!1,t,o,i,s),z=ZY(e,t),Z=dNe(e,x.checkDefined(ce),t,void 0,!!w,z,o,i);Z&&S({fix:Z,symbolName:K,errorIdentifierText:void 0})}function S(D){var w,j;let{fix:K,symbolName:Y}=D;switch(K.kind){case 0:d.push(K);break;case 1:p.push(K);break;case 2:{let{importClauseOrBindingPattern:Z,importKind:me,addAsTypeOnly:ge}=K,q=String(rs(Z)),J=h.get(q);if(J||h.set(q,J={importClauseOrBindingPattern:Z,defaultImport:void 0,namedImports:new Map}),me===0){let re=J?.namedImports.get(Y);J.namedImports.set(Y,B(re,ge))}else x.assert(J.defaultImport===void 0||J.defaultImport.name===Y,"(Add to Existing) Default import should be missing or match symbolName"),J.defaultImport={name:Y,addAsTypeOnly:B((w=J.defaultImport)==null?void 0:w.addAsTypeOnly,ge)};break}case 3:{let{moduleSpecifier:Z,importKind:me,useRequire:ge,addAsTypeOnly:q}=K,J=ce(Z,me,ge,q);switch(x.assert(J.useRequire===ge,"(Add new) Tried to add an `import` and a `require` for the same module"),me){case 1:x.assert(J.defaultImport===void 0||J.defaultImport.name===Y,"(Add new) Default import should be missing or match symbolName"),J.defaultImport={name:Y,addAsTypeOnly:B((j=J.defaultImport)==null?void 0:j.addAsTypeOnly,q)};break;case 0:let re=(J.namedImports||(J.namedImports=new Map)).get(Y);J.namedImports.set(Y,B(re,q));break;case 3:case 2:x.assert(J.namespaceLikeImport===void 0||J.namespaceLikeImport.name===Y,"Namespacelike import shoudl be missing or match symbolName"),J.namespaceLikeImport={importKind:me,name:Y,addAsTypeOnly:q};break}break}case 4:break;default:x.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function B(Z,me){return Math.max(Z??0,me)}function ce(Z,me,ge,q){let J=z(Z,!0),re=z(Z,!1),pe=m.get(J),xe=m.get(re),fe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ge};return me===1&&q===2?pe||(m.set(J,fe),fe):q===1&&(pe||xe)?pe||xe:xe||(m.set(re,fe),fe)}function z(Z,me){return`${me?1:0}|${Z}`}}function A(D,w){let j;e.imports.length===0&&w!==void 0?j=w:j=of(e,i);for(let Y of d)jpe(D,e,Y);for(let Y of p)SNe(D,e,Y,j);h.forEach(({importClauseOrBindingPattern:Y,defaultImport:B,namedImports:ce})=>{ENe(D,e,Y,B,Wo(ce.entries(),([z,Z])=>({addAsTypeOnly:Z,name:z})),i)});let K;m.forEach(({useRequire:Y,defaultImport:B,namedImports:ce,namespaceLikeImport:z},Z)=>{let me=Z.slice(2),q=(Y?INe:ANe)(me,j,B,ce&&Wo(ce.entries(),([J,re])=>({addAsTypeOnly:re,name:J})),z,l,i);K=vx(K,q)}),K&&$P(D,e,K,!0,i)}function N(){return d.length>0||p.length>0||h.size>0||m.size>0}}function _Ye(e,t,r,i){let o=iM(e,i,r),s=fNe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(d,p,h,m){let{fixes:y,computedWithoutCacheCount:E}=QY(d,p,h,!1,t,e,r,i,s,m),S=hNe(y,e,t,o,r);return S&&{...S,computedWithoutCacheCount:E}}}function hYe(e,t,r,i,o,s,l,d,p,h,m,y){let E;r?(E=fO(i,l,d,m,y).get(i.path,r),x.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=sV(Yf(t.name))?[yYe(e,o,t,d,l)]:pNe(i,e,o,t,s,d,l,m,y),x.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));let S=ZY(i,d),A=fE(so(i,h)),N=x.checkDefined(dNe(i,E,d,h,A,S,l,m));return{moduleSpecifier:N.moduleSpecifier,codeAction:uNe(Vpe({host:l,formatContext:p,preferences:m},i,o,N,!1,d,m))}}function gYe(e,t,r,i,o,s){let l=r.getCompilerOptions(),d=FG(Gpe(e,r.getTypeChecker(),t,l)),p=vNe(e,t,d,r),h=d!==t.text;return p&&uNe(Vpe({host:i,formatContext:o,preferences:s},e,d,p,h,r,s))}function dNe(e,t,r,i,o,s,l,d){let p=iM(e,d,l);return hNe(QY(t,i,o,s,r,e,l,d).fixes,e,r,p,l)}function uNe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function pNe(e,t,r,i,o,s,l,d,p){let h=mNe(s,l);return fO(e,l,s,d,p).search(e.path,o,m=>m===r,m=>{if(vd(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function yYe(e,t,r,i,o){var s,l;let d=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;let h=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return x.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(y,E){let S=v7(r,y,d);if(S&&vd(S.symbol,y)===e)return{symbol:S.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:S.exportKind,targetFlags:vd(e,y).flags,isFromPackageJson:E};let A=y.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&vd(A,y)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:vd(e,y).flags,isFromPackageJson:E}}}function QY(e,t,r,i,o,s,l,d,p=fNe(o.getTypeChecker(),s,o.getCompilerOptions()),h){let m=o.getTypeChecker(),y=va(e,p.getImportsForExportInfo),E=t!==void 0&&vYe(y,t),S=EYe(y,r,m,o.getCompilerOptions());if(S)return{computedWithoutCacheCount:0,fixes:[...E?[E]:Xe,S]};let{fixes:A,computedWithoutCacheCount:N=0}=TYe(e,y,o,s,t,r,i,l,d,h);return{computedWithoutCacheCount:N,fixes:[...E?[E]:Xe,...A]}}function vYe(e,t){return Wl(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=bYe(r),l=s&&((o=eR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function bYe(e){var t,r,i;switch(e.kind){case 260:return(t=ri(e.name,Fe))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ri((r=e.importClause)==null?void 0:r.namedBindings,Xv))==null?void 0:i.name.text;default:return x.assertNever(e)}}function zpe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||rU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function EYe(e,t,r,i){let o;for(let l of e){let d=s(l);if(!d)continue;let p=e2(d.importClauseOrBindingPattern);if(d.addAsTypeOnly!==4&&p||d.addAsTypeOnly===4&&!p)return d;o??(o=d)}return o;function s({declaration:l,importKind:d,symbol:p,targetFlags:h}){if(d===3||d===2||l.kind===271)return;if(l.kind===260)return(d===0||d===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:d,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:m}=l;if(!m||!as(l.moduleSpecifier))return;let{name:y,namedBindings:E}=m;if(m.isTypeOnly&&!(d===0&&E))return;let S=zpe(t,!1,p,h,r,i);if(!(d===1&&(y||S===2&&E))&&!(d===0&&E?.kind===274))return{kind:2,importClauseOrBindingPattern:m,importKind:d,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:S}}}function fNe(e,t,r){let i;for(let o of t.imports){let s=yN(o);if(KF(s.parent)){let l=e.resolveExternalModuleName(o);l&&(i||(i=qp())).add(ba(l),s.parent)}else if(s.kind===272||s.kind===271){let l=e.getSymbolAtLocation(o);l&&(i||(i=qp())).add(ba(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:d})=>{if(!(l&111551)&&su(t))return Xe;let p=i?.get(ba(o));if(!p)return Xe;let h=Bpe(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:d,targetFlags:l}))}}}function ZY(e,t){if(!su(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let r=t.getCompilerOptions();if(r.configFile)return Ld(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!su(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function mNe(e,t){return oh(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function SYe(e,t,r,i,o,s,l,d,p){let h=su(t),m=e.getCompilerOptions(),y=YT(e,l),E=mNe(e,l),S=du(m),A=qz(S),N=p?j=>({moduleSpecifiers:eS.tryGetModuleSpecifiersFromCache(j,t,y,d),computedWithoutCache:!1}):(j,K)=>eS.getModuleSpecifiersWithCacheInfo(j,K,m,t,y,d,void 0,!0),D=0,w=va(s,(j,K)=>{let Y=E(j.isFromPackageJson),{computedWithoutCache:B,moduleSpecifiers:ce}=N(j.moduleSymbol,Y),z=!!(j.targetFlags&111551),Z=zpe(i,!0,j.symbol,j.targetFlags,Y,m);return D+=B?1:0,to(ce,me=>{var ge;if(A&&TE(me))return;if(!z&&h&&r!==void 0)return{kind:1,moduleSpecifier:me,usagePosition:r,exportInfo:j,isReExport:K>0};let q=Bpe(t,j.exportKind,m),J;if(r!==void 0&&q===3&&j.exportKind===0){let re=Y.resolveExternalModuleSymbol(j.moduleSymbol),pe;re!==j.moduleSymbol&&(pe=(ge=b7(re,Y,m))==null?void 0:ge.name),pe||(pe=Hpe(j.moduleSymbol,ns(m),!1)),J={namespacePrefix:pe,usagePosition:r}}return{kind:3,moduleSpecifier:me,importKind:q,useRequire:o,addAsTypeOnly:Z,exportInfo:j,isReExport:K>0,qualification:J}})});return{computedWithoutCacheCount:D,fixes:w}}function TYe(e,t,r,i,o,s,l,d,p,h){let m=Wl(t,y=>AYe(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:SYe(r,i,o,s,l,e,d,p,h)}function AYe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,d){var p;let h=(p=eR(e))==null?void 0:p.text;if(h){let m=s?4:zpe(o,!0,r,i,l,d);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function _Ne(e,t,r,i){let o=so(e.sourceFile,r),s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=DYe(e,o);else if(Fe(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let d=FG(Gpe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=vNe(e.sourceFile,o,d,e.program);return p&&[{fix:p,symbolName:d,errorIdentifierText:o.text}]}else s=PYe(e,o,i);else return;let l=iM(e.sourceFile,e.preferences,e.host);return s&&IYe(s,e.sourceFile,e.program,l,e.host)}function IYe(e,t,r,i,o){let s=l=>tl(l,o.getCurrentDirectory(),My(o));return ZS(e,(l,d)=>bv(!!l.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||Zs(l.fix.kind,d.fix.kind)||gNe(l.fix,d.fix,t,r,i.allowsImportingSpecifier,s))}function hNe(e,t,r,i,o){if(gt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>gNe(l,s,t,r,i.allowsImportingSpecifier,d=>tl(d,o.getCurrentDirectory(),My(o)))===-1?l:s)}function gNe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?bv(o(t.moduleSpecifier),o(e.moduleSpecifier))||RYe(e.moduleSpecifier,t.moduleSpecifier,r,i)||bv(yNe(e,r,i.getCompilerOptions(),s),yNe(t,r,i.getCompilerOptions(),s))||sk(e.moduleSpecifier,t.moduleSpecifier):0}function yNe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&xYe(e.exportInfo.moduleFileName)){let s=i(oi(e.exportInfo.moduleFileName));return ao(t.path,s)}return!1}function xYe(e){return nc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function RYe(e,t,r,i){return ao(e,"node:")&&!ao(t,"node:")?m7(r,i)?-1:1:ao(t,"node:")&&!ao(e,"node:")?m7(r,i)?1:-1:0}function DYe({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=CYe(o,s);if(!l)return;let d=s.getAliasedSymbol(l),p=l.name,h=[{symbol:l,moduleSymbol:d,moduleFileName:void 0,exportKind:3,targetFlags:d.flags,isFromPackageJson:!1}],m=ZY(e,t);return QY(h,void 0,!1,m,t,e,r,i).fixes.map(E=>{var S;return{fix:E,symbolName:p,errorIdentifierText:(S=ri(o,Fe))==null?void 0:S.text}})}function CYe(e,t){let r=Fe(e)?t.getSymbolAtLocation(e):void 0;if(b6(r))return r;let{parent:i}=e;if(au(i)&&i.tagName===e||i1(i)){let o=t.resolveName(t.getJsxNamespace(i),au(i)?e:i,111551,!1);if(b6(o))return o}}function Bpe(e,t,r,i){if(r.verbatimModuleSyntax&&(Ld(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return kYe(e,r,!!i);case 3:return NYe(e,r,!!i);default:return x.assertNever(t)}}function NYe(e,t,r){if(RT(t))return 1;let i=Ld(t);switch(i){case 2:case 1:case 3:return ir(e)&&(oc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return x.assertNever(i,`Unexpected moduleKind ${i}`)}}function PYe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let d=t.getTypeChecker(),p=t.getCompilerOptions();return va(Gpe(e,d,s,p),h=>{if(h==="default")return;let m=fE(s),y=ZY(e,t),E=LYe(h,$x(s),qT(s),r,e,t,l,i,o);return Wo(NG(E.values(),S=>QY(S,s.getStart(e),m,y,t,e,i,o).fixes),S=>({fix:S,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function vNe(e,t,r,i){let o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;let l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Gn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Gpe(e,t,r,i){let o=r.parent;if((au(o)||K0(o))&&o.tagName===r&&mX(i.jsx)){let s=t.getJsxNamespace(e);if(MYe(s,r,t))return!dR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function MYe(e,t,r){if(dR(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||gt(i.declarations,iE)&&!(i.flags&111551)}function LYe(e,t,r,i,o,s,l,d,p){var h;let m=qp(),y=iM(o,p,d),E=(h=d.getModuleSpecifierCache)==null?void 0:h.call(d),S=oh(N=>YT(N?d.getPackageJsonAutoImportProvider():s,d));function A(N,D,w,j,K,Y){let B=S(Y);if(D&&EX(K,o,D,p,y,B,E)||!D&&y.allowsImportingAmbientModule(N,B)){let ce=K.getTypeChecker();m.add(Ade(w,ce).toString(),{symbol:w,moduleSymbol:N,moduleFileName:D?.fileName,exportKind:j,targetFlags:vd(w,ce).flags,isFromPackageJson:Y})}}return SX(s,d,p,l,(N,D,w,j)=>{let K=w.getTypeChecker();i.throwIfCancellationRequested();let Y=w.getCompilerOptions(),B=v7(N,K,Y);B&&(B.name===e||Hpe(N,ns(Y),t)===e)&&RNe(B.resolvedSymbol,r)&&A(N,D,B.symbol,B.exportKind,w,j);let ce=K.tryGetMemberInModuleExportsAndProperties(e,N);ce&&RNe(ce,r)&&A(N,D,ce,0,w,j)}),m}function kYe(e,t,r){let i=RT(t),o=ir(e);if(!o&&Ld(t)>=5)return i?1:2;if(o)return oc(e)||r?i?1:2:3;for(let s of e.statements)if(td(s)&&!Fl(s.moduleReference))return 3;return i?1:3}function Vpe(e,t,r,i,o,s,l){let d,p=ur.ChangeTracker.with(e,h=>{d=wYe(h,t,r,i,o,s,l)});return oa(Jpe,p,d,qpe,f.Add_all_missing_imports)}function wYe(e,t,r,i,o,s,l){let d=of(t,l);switch(i.kind){case 0:return jpe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return SNe(e,t,i,d),[f.Change_0_to_1,r,TNe(i.moduleSpecifier,d)+r];case 2:{let{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:y}=i;ENe(e,t,p,h===1?{name:r,addAsTypeOnly:m}:void 0,h===0?[{name:r,addAsTypeOnly:m}]:Xe,l);let E=Yf(y);return o?[f.Import_0_from_1,r,E]:[f.Update_import_from_0,E]}case 3:{let{importKind:p,moduleSpecifier:h,addAsTypeOnly:m,useRequire:y,qualification:E}=i,S=y?INe:ANe,A=p===1?{name:r,addAsTypeOnly:m}:void 0,N=p===0?[{name:r,addAsTypeOnly:m}]:void 0,D=p===2||p===3?{importKind:p,name:E?.namespacePrefix||r,addAsTypeOnly:m}:void 0;return $P(e,t,S(h,d,A,N,D,s.getCompilerOptions(),l),!0,l),E&&jpe(e,t,E),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{let{typeOnlyAliasDeclaration:p}=i,h=OYe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,bNe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,bNe(h)]}default:return x.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function bNe(e){var t,r;return e.kind===271?((r=ri((t=ri(e.moduleReference,vh))==null?void 0:t.expression,as))==null?void 0:r.text)||e.moduleReference.getText():na(e.parent.moduleSpecifier,Da).text}function OYe(e,t,r,i,o){let s=r.getCompilerOptions(),l=rU(s);switch(t.kind){case 276:if(t.isTypeOnly){let p=Rm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){let h=L.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Rm.getOrganizeImportsComparer(o,p===2),y=Rm.getImportSpecifierInsertionIndex(t.parent.elements,h,m,o);if(y!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,h,t.parent,y),t}return e.deleteRange(i,{pos:oE(t.getFirstToken()),end:oE(t.propertyName??t.name)}),t}else return x.assert(t.parent.parent.isTypeOnly),d(t.parent.parent),t.parent.parent;case 273:return d(t),t;case 274:return d(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:x.failBadSyntaxKind(t)}function d(p){var h;if(e.delete(i,Hq(p,i)),!s.allowImportingTsExtensions){let m=eR(p.parent),y=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(y?.resolvedUsingTsExtension){let E=OL(m.text,K3(m.text,s));e.replaceNode(i,m,L.createStringLiteral(E))}}if(l){let m=ri(p.namedBindings,zg);if(m&&m.elements.length>1){Rm.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(let y of m.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,156,y)}}}}function ENe(e,t,r,i,o,s){var l;if(r.kind===206){i&&h(r,i.name,"default");for(let m of o)h(r,m.name,void 0);return}let d=r.isTypeOnly&>([i,...o],m=>m?.addAsTypeOnly===4),p=r.namedBindings&&((l=ri(r.namedBindings,zg))==null?void 0:l.elements);if(i&&(x.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),L.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){let A=Rm.detectImportSpecifierSorting(p,s);A!==3&&(m=A===2)}m===void 0&&(m=Rm.detectSorting(t,s)===2);let y=Rm.getOrganizeImportsComparer(s,m),E=vy(o.map(A=>L.createImportSpecifier((!r.isTypeOnly||d)&&e$(A,s),void 0,L.createIdentifier(A.name))),(A,N)=>Rm.compareImportOrExportSpecifiers(A,N,y)),S=p?.length&&Rm.detectImportSpecifierSorting(p,s);if(S&&!(m&&S===1))for(let A of E){let N=d&&!A.isTypeOnly?0:Rm.getImportSpecifierInsertionIndex(p,A,y,s);e.insertImportSpecifierAtIndex(t,A,r.namedBindings,N)}else if(p?.length)for(let A of E)e.insertNodeInListAfter(t,Ja(p),A,p);else if(E.length){let A=L.createNamedImports(E);r.namedBindings?e.replaceNode(t,r.namedBindings,A):e.insertNodeAfter(t,x.checkDefined(r.name,"Import clause must have either named imports or a default import"),A)}}if(d&&(e.delete(t,Hq(r,t)),p))for(let m of p)e.insertModifierBefore(t,156,m);function h(m,y,E){let S=L.createBindingElement(void 0,E,y);m.elements.length?e.insertNodeInListAfter(t,Ja(m.elements),S):e.replaceNode(t,m,L.createObjectBindingPattern([S]))}}function jpe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function SNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,TNe(r,o))}function TNe(e,t){let r=Uq(t);return`import(${r}${e}${r}).`}function Upe({addAsTypeOnly:e}){return e===2}function e$(e,t){return Upe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function ANe(e,t,r,i,o,s,l){let d=b1(e,t),p;if(r!==void 0||i?.length){let h=(!r||Upe(r))&&oo(i,Upe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!gt(i,m=>m.addAsTypeOnly===4);p=vx(p,Hy(r&&L.createIdentifier(r.name),i?.map(m=>L.createImportSpecifier(!h&&e$(m,l),void 0,L.createIdentifier(m.name))),e,t,h))}if(o){let h=o.importKind===3?L.createImportEqualsDeclaration(void 0,e$(o,l),L.createIdentifier(o.name),L.createExternalModuleReference(d)):L.createImportDeclaration(void 0,L.createImportClause(e$(o,l),void 0,L.createNamespaceImport(L.createIdentifier(o.name))),d,void 0);p=vx(p,h)}return x.checkDefined(p)}function INe(e,t,r,i,o){let s=b1(e,t),l;if(r||i?.length){let d=i?.map(({name:h})=>L.createBindingElement(void 0,void 0,h))||[];r&&d.unshift(L.createBindingElement(void 0,"default",r.name));let p=xNe(L.createObjectBindingPattern(d),s);l=vx(l,p)}if(o){let d=xNe(o.name,s);l=vx(l,d)}return x.checkDefined(l)}function xNe(e,t){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(typeof e=="string"?L.createIdentifier(e):e,void 0,void 0,L.createCallExpression(L.createIdentifier("require"),void 0,[t]))],2))}function RNe({declarations:e},t){return gt(e,r=>!!(jw(r)&t))}function Hpe(e,t,r){return Kpe(Eu(Yf(e.name)),t,r)}function Kpe(e,t,r){let i=nc(Sx(e,"/index")),o="",s=!0,l=i.charCodeAt(0);Uh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let d=1;dVpe(e,i,p,d,p!==h,s,r))},fixIds:[qpe],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=cNe(t,r,!0,i,o,s);return SD(e,Xpe,d=>l.addImportFromDiagnostic(d,e)),ED(ur.ChangeTracker.with(e,l.writeFixes))}})}});function DNe(e,t,r){let i=Vr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Vr(i.relatedInformation,l=>l.code===f.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=Qfe(o.file,gd(o.start,o.length));if(s!==void 0&&(Fe(s)&&fl(s.parent)&&(s=s.parent),fl(s))){if(CR(s.parent))return;let l=so(t,r.start),d=e.getTypeChecker();return{constraint:zYe(d,l)||FYe(o.messageText),declaration:s,token:l}}}function CNe(e,t,r,i,o,s){let{declaration:l,constraint:d}=s,p=t.getTypeChecker();if(No(d))e.insertText(o,l.name.end,` extends ${d}`);else{let h=ns(t.getCompilerOptions()),m=AD({program:t,host:i}),y=x1(o,t,r,i),E=F$(p,y,d,void 0,h,void 0,m);E&&(e.replaceNode(o,l,L.updateTypeParameterDeclaration(l,void 0,l.name,E,l.default)),y.writeFixes(e))}}function FYe(e){let[,t]=k_(e,` `,0).match(/`extends (.*)`/)||[];return t}function zYe(e,t){return ji(t.parent)?e.getTypeArgumentConstraint(t.parent):(ht(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var t$,Ype,BYe=bt({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";ai(),Ta(),t$="addMissingConstraint",Ype=[f.Type_0_is_not_comparable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Type_0_is_not_assignable_to_type_1.code,f.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,f.Property_0_is_incompatible_with_index_signature.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Type_0_does_not_satisfy_the_constraint_1.code],Ea({errorCodes:Ype,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=DNe(i,t,r);if(l===void 0)return;let d=ur.ChangeTracker.with(e,p=>CNe(p,i,o,s,t,l));return[oa(t$,d,f.Add_extends_constraint,t$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[t$],getAllCodeActions:e=>{let{program:t,preferences:r,host:i}=e,o=new Map;return ED(ur.ChangeTracker.with(e,s=>{SD(e,Ype,l=>{let d=DNe(t,l.file,gd(l.start,l.length));if(d&&Em(o,rs(d.declaration)))return CNe(s,t,r,i,l.file,d)})}))}})}});function NNe(e,t,r,i){switch(r){case f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return GYe(e,t.sourceFile,i);case f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return VYe(e,t.sourceFile,i);default:x.fail("Unexpected error code: "+r)}}function GYe(e,t,r){let i=MNe(t,r);if(su(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}let o=i.modifiers||Xe,s=Vr(o,qI),l=Vr(o,aae),d=Vr(o,y=>kq(y.kind)),p=sI(o,bd),h=l?l.end:s?s.end:d?d.end:p?Na(t.text,p.end):i.getStart(t),m=d||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,m)}function VYe(e,t,r){let i=MNe(t,r);if(su(t)){e.filterJSDocTags(t,i,SW(U4));return}let o=Vr(i.modifiers,sae);x.assertIsDefined(o),e.deleteModifier(t,o)}function PNe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return dp(e,e.parent);default:return!1}}function MNe(e,t){let r=so(e,t),i=Fn(r,o=>ci(o)?"quit":PNe(o));return x.assert(i&&PNe(i)),i}var $pe,dM,wO,Qpe,Zpe,jYe=bt({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";ai(),Ta(),$pe="fixOverrideModifier",dM="fixAddOverrideModifier",wO="fixRemoveOverrideModifier",Qpe=[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Zpe={[f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:wO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:wO,fixAllDescriptions:f.Remove_override_modifier},[f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:dM,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:wO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:wO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Ea({errorCodes:Qpe,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=Zpe[r];if(!o)return Xe;let{descriptions:s,fixId:l,fixAllDescriptions:d}=o,p=ur.ChangeTracker.with(t,h=>NNe(h,t,r,i.start));return[upe($pe,p,s,l,d)]},fixIds:[$pe,dM,wO],getAllCodeActions:e=>gs(e,Qpe,(t,r)=>{let{code:i,start:o}=r,s=Zpe[i];!s||s.fixId!==e.fixId||NNe(t,e,i,o)})})}});function LNe(e,t,r,i){let o=of(t,i),s=L.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,oF(r)?L.createElementAccessChain(r.expression,r.questionDotToken,s):L.createElementAccessExpression(r.expression,s))}function kNe(e,t){return na(so(e,t).parent,kr)}var n$,efe,UYe=bt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";ai(),Ta(),n$="fixNoPropertyAccessFromIndexSignature",efe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Ea({errorCodes:efe,fixIds:[n$],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=kNe(t,r.start),s=ur.ChangeTracker.with(e,l=>LNe(l,e.sourceFile,o,i));return[oa(n$,s,[f.Use_element_access_for_0,o.name.text],n$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>gs(e,efe,(t,r)=>LNe(t,r.file,kNe(r.file,r.start),e.preferences))})}});function wNe(e,t,r,i){let o=so(t,r);if(!sD(o))return;let s=Lu(o,!1,!1);if(!(!Ec(s)&&!Ps(s))&&!Yi(Lu(s,!1,!1))){let l=x.checkDefined(_s(s,100,t)),{name:d}=s,p=x.checkDefined(s.body);return Ps(s)?d&&Ms.Core.isSymbolReferencedInFile(d,i,t,p)?void 0:(e.delete(t,l),d&&e.delete(t,d),e.insertText(t,p.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,d?d.text:y7]):(e.replaceNode(t,l,L.createToken(87)),e.insertText(t,d.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,d.text])}}var r$,tfe,HYe=bt({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";ai(),Ta(),r$="fixImplicitThis",tfe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ea({errorCodes:tfe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=ur.ChangeTracker.with(t,d=>{s=wNe(d,r,o.start,i.getTypeChecker())});return s?[oa(r$,l,s,r$,f.Fix_all_implicit_this_errors)]:Xe},fixIds:[r$],getAllCodeActions:e=>gs(e,tfe,(t,r)=>{wNe(t,r.file,r.start,e.program.getTypeChecker())})})}});function ONe(e,t,r){var i,o;let s=so(e,t);if(Fe(s)){let l=Fn(s,Lc);if(l===void 0)return;let d=Da(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(d===void 0)return;let p=(i=r.getResolvedModuleFromModuleSpecifier(d))==null?void 0:i.resolvedModule;if(p===void 0)return;let h=r.getSourceFile(p.resolvedFileName);if(h===void 0||mD(r,h))return;let m=h.symbol,y=(o=ri(m.valueDeclaration,lh))==null?void 0:o.locals;if(y===void 0)return;let E=y.get(s.escapedText);if(E===void 0)return;let S=JYe(E);return S===void 0?void 0:{exportName:{node:s,isTypeOnly:SR(S)},node:S,moduleSourceFile:h,moduleSpecifier:d.text}}}function KYe(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=i$(o,r.isTypeOnly);s?WNe(e,t,o,s,[r]):dk(i)?e.insertExportModifier(o,i):FNe(e,t,o,[r])}function nfe(e,t,r,i,o){Nn(i)&&(o?WNe(e,t,r,o,i):FNe(e,t,r,i))}function i$(e,t){let r=i=>Xl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return sI(e.statements,r)}function WNe(e,t,r,i,o){let s=i.exportClause&&xf(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),l=!i.isTypeOnly&&!!(em(t.getCompilerOptions())||Vr(s,d=>d.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...s,...zNe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function FNe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(zNe(i,em(t.getCompilerOptions()))),void 0,void 0))}function zNe(e,t){return L.createNodeArray(mn(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function JYe(e){if(e.valueDeclaration===void 0)return Xc(e.declarations);let t=e.valueDeclaration,r=wi(t)?ri(t.parent.parent,Ml):void 0;return r&&Nn(r.declarationList.declarations)===1?r:t}var o$,rfe,qYe=bt({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";ai(),Ta(),o$="fixImportNonExportedMember",rfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Ea({errorCodes:rfe,fixIds:[o$],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=ONe(t,r.start,i);if(o===void 0)return;let s=ur.ChangeTracker.with(e,l=>KYe(l,i,o));return[oa(o$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],o$,f.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return ED(ur.ChangeTracker.with(e,r=>{let i=new Map;SD(e,rfe,o=>{let s=ONe(o.file,o.start,t);if(s===void 0)return;let{exportName:l,node:d,moduleSourceFile:p}=s;if(i$(p,l.isTypeOnly)===void 0&&dk(d))r.insertExportModifier(p,d);else{let h=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(p,h)}}),i.forEach((o,s)=>{let l=i$(s,!0);l&&l.isTypeOnly?(nfe(r,t,s,o.typeOnlyExports,l),nfe(r,t,s,o.exports,i$(s,!1))):nfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function XYe(e,t){let r=so(e,t);return Fn(r,i=>i.kind===202)}function YYe(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;let l=L.updateNamedTupleMember(r,r.dotDotDotToken||(s?L.createToken(26):void 0),r.name,r.questionToken||(o?L.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var a$,BNe,$Ye=bt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";ai(),Ta(),a$="fixIncorrectNamedTupleSyntax",BNe=[f.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,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Ea({errorCodes:BNe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=XYe(r,i.start),s=ur.ChangeTracker.with(t,l=>YYe(l,r,o));return[oa(a$,s,f.Move_labeled_tuple_element_modifiers_to_labels,a$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[a$]})}});function GNe(e,t,r,i){let o=so(e,t),s=o.parent;if((i===f.No_overload_matches_this_call.code||i===f.Type_0_is_not_assignable_to_type_1.code)&&!M_(s))return;let l=r.program.getTypeChecker(),d;if(kr(s)&&s.name===o){x.assert(Hh(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(dr(s)&&s.operatorToken.kind===103&&s.left===o&&Ki(o)){let p=l.getTypeAtLocation(s.right);d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Su(s)&&s.right===o){let p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(d=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(Qu(s)&&s.name===o){x.assertNode(o,Fe,"Expected an identifier for spelling (import)");let p=Fn(o,Lc),h=ZYe(r,p);h&&h.symbol&&(d=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(M_(s)&&s.name===o){x.assertNode(o,Fe,"Expected an identifier for JSX attribute");let p=Fn(o,au),h=l.getContextualTypeForArgumentAtIndex(p,0);d=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(p6(s)&&$c(s)&&s.name===o){let p=Fn(o,ci),h=p?S_(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(d=l.getSuggestedSymbolForNonexistentClassMember(uc(o),m))}else{let p=qT(o),h=uc(o);x.assert(h!==void 0,"name should be defined"),d=l.getSuggestedSymbolForNonexistentSymbol(o,h,QYe(p))}return d===void 0?void 0:{node:o,suggestedSymbol:d}}function VNe(e,t,r,i,o){let s=vl(i);if(!Yp(s,o)&&kr(r.parent)){let l=i.valueDeclaration;l&&iu(l)&&Ki(l.name)?e.replaceNode(t,r,L.createIdentifier(s)):e.replaceNode(t,r.parent,L.createElementAccessExpression(r.parent.expression,L.createStringLiteral(s)))}else e.replaceNode(t,r,L.createIdentifier(s))}function QYe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function ZYe(e,t){var r;if(!t||!as(t.moduleSpecifier))return;let i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var ife,ofe,e$e=bt({"src/services/codefixes/fixSpelling.ts"(){"use strict";ai(),Ta(),ife="fixSpelling",ofe=[f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Could_not_find_name_0_Did_you_mean_1.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f._0_has_no_exported_member_named_1_Did_you_mean_2.code,f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.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,f.No_overload_matches_this_call.code,f.Type_0_is_not_assignable_to_type_1.code],Ea({errorCodes:ofe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=GNe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=ns(e.host.getCompilationSettings()),d=ur.ChangeTracker.with(e,p=>VNe(p,t,o,s,l));return[oa("spelling",d,[f.Change_spelling_to_0,vl(s)],ife,f.Fix_all_detected_spelling_errors)]},fixIds:[ife],getAllCodeActions:e=>gs(e,ofe,(t,r)=>{let i=GNe(r.file,r.start,e,r.code),o=ns(e.host.getCompilationSettings());i&&VNe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function jNe(e,t,r){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);let o=aa([i]);return e.createAnonymousType(void 0,o,[],[],[])}function afe(e,t,r,i){if(!t.body||!Ko(t.body)||Nn(t.body.statements)!==1)return;let o=Va(t.body.statements);if(ed(o)&&sfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(H0(o)&&ed(o.statement)){let s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=jNe(e,o.label,o.statement.expression);if(sfe(e,t,l,r,i))return Os(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(Ko(o)&&Nn(o.statements)===1){let s=Va(o.statements);if(H0(s)&&ed(s.statement)){let l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),d=jNe(e,s.label,s.statement.expression);if(sfe(e,t,d,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function sfe(e,t,r,i,o){if(o){let s=e.getSignatureFromDeclaration(t);if(s){$r(t,1024)&&(r=e.createPromiseType(r));let l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,aa(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function UNe(e,t,r,i){let o=so(t,r);if(!o.parent)return;let s=Fn(o.parent,ws);switch(i){case f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!rf(s.type,o)?void 0:afe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!ia(s.parent)||!s.body)return;let l=s.parent.arguments.indexOf(s);if(l===-1)return;let d=e.getContextualTypeForArgumentAtIndex(s.parent,l);return d?afe(e,s,d,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!kg(o)||!qx(o.parent)&&!M_(o.parent))return;let p=t$e(o.parent);return!p||!ws(p)||!p.body?void 0:afe(e,p,e.getTypeAtLocation(o.parent),!0)}}function t$e(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(fP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function HNe(e,t,r,i){bp(r);let o=cO(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function KNe(e,t,r,i,o,s){let l=s||n7(i)?L.createParenthesizedExpression(i):i;bp(o),$T(o,l),e.replaceNode(t,r.body,l)}function JNe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function n$e(e,t,r){let i=ur.ChangeTracker.with(e,o=>HNe(o,e.sourceFile,t,r));return oa(s$,i,f.Add_a_return_statement,l$,f.Add_all_missing_return_statement)}function r$e(e,t,r,i){let o=ur.ChangeTracker.with(e,s=>KNe(s,e.sourceFile,t,r,i,!1));return oa(s$,o,f.Remove_braces_from_arrow_function_body,c$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function i$e(e,t,r){let i=ur.ChangeTracker.with(e,o=>JNe(o,e.sourceFile,t,r));return oa(s$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,d$,f.Wrap_all_object_literal_with_parentheses)}var s$,l$,c$,d$,lfe,o$e=bt({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";ai(),Ta(),s$="returnValueCorrect",l$="fixAddReturnStatement",c$="fixRemoveBracesFromArrowFunctionBody",d$="fixWrapTheBlockWithParen",lfe=[f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Ea({errorCodes:lfe,fixIds:[l$,c$,d$],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=UNe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Tn([n$e(t,l.expression,l.statement)],Os(l.declaration)?r$e(t,l.declaration,l.expression,l.commentSource):void 0):[i$e(t,l.declaration,l.expression)]},getAllCodeActions:e=>gs(e,lfe,(t,r)=>{let i=UNe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case l$:HNe(t,r.file,i.expression,i.statement);break;case c$:if(!Os(i.declaration))return;KNe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case d$:if(!Os(i.declaration))return;JNe(t,r.file,i.declaration,i.expression);break;default:x.fail(JSON.stringify(e.fixId))}})})}});function qNe(e,t,r,i,o){var s;let l=so(e,t),d=l.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&Ma(d)&&ia(d.parent)))return;let S=Kl(d.parent.arguments,w=>w===d);if(S<0)return;let A=i.getResolvedSignature(d.parent);if(!(A&&A.declaration&&A.parameters[S]))return;let N=A.parameters[S].valueDeclaration;if(!(N&&Ao(N)&&Fe(N.name)))return;let D=Wo(i.getUnmatchedProperties(i.getTypeAtLocation(d),i.getParameterType(A,S),!1,!1));return Nn(D)?{kind:3,token:N.name,identifier:N.name.text,properties:D,parentDeclaration:d}:void 0}if(l.kind===19&&Ma(d)){let S=i.getContextualType(d)||i.getTypeAtLocation(d),A=Wo(i.getUnmatchedProperties(i.getTypeAtLocation(d),S,!1,!1));return Nn(A)?{kind:3,token:d,identifier:"",properties:A,parentDeclaration:d}:void 0}if(!Hh(l))return;if(Fe(l)&&Mv(d)&&d.initializer&&Ma(d.initializer)){let S=i.getContextualType(l)||i.getTypeAtLocation(l),A=Wo(i.getUnmatchedProperties(i.getTypeAtLocation(d.initializer),S,!1,!1));return Nn(A)?{kind:3,token:l,identifier:l.text,properties:A,parentDeclaration:d.initializer}:void 0}if(Fe(l)&&au(l.parent)){let S=ns(o.getCompilerOptions()),A=p$e(i,S,l.parent);return Nn(A)?{kind:4,token:l,attributes:A,parentDeclaration:l.parent}:void 0}if(Fe(l)){let S=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(S&&Lr(S)&16){let A=Xc(i.getSignaturesOfType(S,0));return A===void 0?void 0:{kind:5,token:l,signature:A,sourceFile:e,parentDeclaration:oPe(l)}}if(ia(d)&&d.expression===l)return{kind:2,token:l,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:oPe(l)}}if(!kr(d))return;let p=Bq(i.getTypeAtLocation(d.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Fe(l)&&ia(d.parent)){let S=Vr(h.declarations,ql),A=S?.getSourceFile();if(S&&A&&!mD(o,A))return{kind:2,token:l,call:d.parent,sourceFile:e,modifierFlags:32,parentDeclaration:S};let N=Vr(h.declarations,Yi);if(e.commonJsModuleIndicator)return;if(N&&!mD(o,N))return{kind:2,token:l,call:d.parent,sourceFile:N,modifierFlags:32,parentDeclaration:N}}let m=Vr(h.declarations,ci);if(!m&&Ki(l))return;let y=m||Vr(h.declarations,S=>pu(S)||gp(S));if(y&&!mD(o,y.getSourceFile())){let S=!gp(y)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(S&&(Ki(l)||pu(y)))return;let A=y.getSourceFile(),N=gp(y)?0:(S?256:0)|(fX(l.text)?2:0),D=su(A),w=ri(d.parent,ia);return{kind:0,token:l,call:w,modifierFlags:N,parentDeclaration:y,declSourceFile:A,isJSFile:D}}let E=Vr(h.declarations,hE);if(E&&!(p.flags&1056)&&!Ki(l)&&!mD(o,E.getSourceFile()))return{kind:1,token:l,parentDeclaration:E}}function a$e(e,t){return t.isJSFile?pI(s$e(e,t)):l$e(e,t)}function s$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(pu(t)||gp(t))return;let s=ur.ChangeTracker.with(e,d=>XNe(d,r,t,o,!!(i&256)));if(s.length===0)return;let l=i&256?f.Initialize_static_property_0:Ki(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return oa(nb,s,[l,o.text],nb,f.Add_all_missing_members)}function XNe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===231)return;let l=r.name.getText(),d=YNe(L.createIdentifier(l),s);e.insertNodeAfter(t,r,d)}else if(Ki(i)){let l=L.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),d=ZNe(r);d?e.insertNodeAfter(t,d,l):e.insertMemberAtStart(t,r,l)}else{let l=Zh(r);if(!l)return;let d=YNe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,d)}}function YNe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),R1()))}function l$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,d=$Ne(e.program.getTypeChecker(),t,o),p=m=>ur.ChangeTracker.with(e,y=>QNe(y,r,t,s,d,m)),h=[oa(nb,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],nb,f.Add_all_missing_members)];return l||Ki(o)||(i&2&&h.unshift(Qm(nb,p(2),[f.Declare_private_property_0,s])),h.push(c$e(e,r,t,o.text,d))),h}function $Ne(e,t,r){let i;if(r.parent.parent.kind===226){let o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{let o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||L.createKeywordTypeNode(133)}function QNe(e,t,r,i,o,s){let l=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,d=ci(r)?L.createPropertyDeclaration(l,i,void 0,o,void 0):L.createPropertySignature(void 0,i,void 0,o),p=ZNe(r);p?e.insertNodeAfter(t,p,d):e.insertMemberAtStart(t,r,d)}function ZNe(e){let t;for(let r of e.members){if(!Uo(r))break;t=r}return t}function c$e(e,t,r,i,o){let s=L.createKeywordTypeNode(154),l=L.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),d=L.createIndexSignature(void 0,[l],o),p=ur.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,d));return Qm(nb,p,[f.Add_index_signature_for_property_0,i])}function d$e(e,t){let{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;let d=s.text,p=m=>ur.ChangeTracker.with(e,y=>ePe(e,y,l,s,m,r,i)),h=[oa(nb,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,d],nb,f.Add_all_missing_members)];return o&2&&h.unshift(Qm(nb,p(2),[f.Declare_private_method_0,d])),h}function ePe(e,t,r,i,o,s,l){let d=x1(l,e.program,e.preferences,e.host),p=ci(s)?174:173,h=Kfe(p,e,d,r,i,o,s),m=f$e(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),d.writeFixes(t)}function tPe(e,t,{token:r,parentDeclaration:i}){let o=gt(i.members,p=>{let h=t.getTypeAtLocation(p);return!!(h&&h.flags&402653316)}),s=i.getSourceFile(),l=L.createEnumMember(r,o?L.createStringLiteral(r.text):void 0),d=$s(i.members);d?e.insertNodeInListAfter(s,d,l,i.members):e.insertMemberAtStart(s,i,l)}function nPe(e,t,r){let i=of(t.sourceFile,t.preferences),o=x1(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Kfe(262,t,o,r.call,gr(r.token),r.modifierFlags,r.parentDeclaration):W$(262,t,i,r.signature,aB(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&x.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Sm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function rPe(e,t,r){let i=x1(t.sourceFile,t.program,t.preferences,t.host),o=of(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,d=gt(l.properties,o1),p=mn(r.attributes,y=>{let E=u$(t,s,i,o,s.getTypeOfSymbol(y),r.parentDeclaration),S=L.createIdentifier(y.name),A=L.createJsxAttribute(S,L.createJsxExpression(void 0,E));return ja(S,A),A}),h=L.createJsxAttributes(d?[...p,...l.properties]:[...l.properties,...p]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,h,m),i.writeFixes(e)}function iPe(e,t,r){let i=x1(t.sourceFile,t.program,t.preferences,t.host),o=of(t.sourceFile,t.preferences),s=ns(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),d=mn(r.properties,h=>{let m=u$(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return L.createPropertyAssignment(m$e(h,s,o,l),m)}),p={leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,L.createObjectLiteralExpression([...r.parentDeclaration.properties,...d],!0),p),i.writeFixes(e)}function u$(e,t,r,i,o,s){if(o.flags&3)return R1();if(o.flags&134217732)return L.createStringLiteral("",i===0);if(o.flags&8)return L.createNumericLiteral(0);if(o.flags&64)return L.createBigIntLiteral("0n");if(o.flags&16)return L.createFalse();if(o.flags&1056){let l=o.symbol.exports?mW(o.symbol.exports.values()):o.symbol,d=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||d===void 0?L.createNumericLiteral(0):L.createPropertyAccessExpression(d,t.symbolToString(l))}if(o.flags&256)return L.createNumericLiteral(o.value);if(o.flags&2048)return L.createBigIntLiteral(o.value);if(o.flags&128)return L.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?L.createFalse():L.createTrue();if(o.flags&65536)return L.createNull();if(o.flags&1048576)return Wl(o.types,d=>u$(e,t,r,i,d,s))??R1();if(t.isArrayLikeType(o))return L.createArrayLiteralExpression();if(u$e(o)){let l=mn(t.getPropertiesOfType(o),d=>{let p=u$(e,t,r,i,t.getTypeOfSymbol(d),s);return L.createPropertyAssignment(d.name,p)});return L.createObjectLiteralExpression(l,!0)}if(Lr(o)&16){if(Vr(o.symbol.declarations||Xe,jm(hh,_h,Ul))===void 0)return R1();let d=t.getSignaturesOfType(o,0);return d===void 0?R1():W$(218,e,i,d[0],aB(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??R1()}if(Lr(o)&1){let l=Og(o.symbol);if(l===void 0||w0(l))return R1();let d=Zh(l);return d&&Nn(d.parameters)?R1():L.createNewExpression(L.createIdentifier(o.symbol.name),void 0,void 0)}return R1()}function R1(){return L.createIdentifier("undefined")}function u$e(e){return e.flags&524288&&(Lr(e)&128||e.symbol&&ri(nh(e.symbol.declarations),gp))}function p$e(e,t,r){let i=e.getContextualType(r.attributes);if(i===void 0)return Xe;let o=i.getProperties();if(!Nn(o))return Xe;let s=new Set;for(let l of r.attributes.properties)if(M_(l)&&s.add($N(l.name)),o1(l)){let d=e.getTypeAtLocation(l.expression);for(let p of d.getProperties())s.add(p.escapedName)}return jr(o,l=>Yp(l.name,t,1)&&!(l.flags&16777216||Tl(l)&48||s.has(l.escapedName)))}function f$e(e,t){if(gp(e))return;let r=Fn(t,i=>Ul(i)||Pl(i));return r&&r.parent===e?r:void 0}function m$e(e,t,r,i){if(ch(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Ya(o))return o}return B6(e.name,t,r===0,!1,!1)}function oPe(e){if(Fn(e,fP)){let t=Fn(e.parent,Sm);if(t)return t}return Gn(e)}var nb,Q7,Z7,eB,cfe,_$e=bt({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";ai(),Ta(),nb="fixMissingMember",Q7="fixMissingProperties",Z7="fixMissingAttributes",eB="fixMissingFunctionDeclaration",cfe=[f.Property_0_does_not_exist_on_type_1.code,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Cannot_find_name_0.code],Ea({errorCodes:cfe,getCodeActions(e){let t=e.program.getTypeChecker(),r=qNe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=ur.ChangeTracker.with(e,o=>iPe(o,e,r));return[oa(Q7,i,f.Add_missing_properties,Q7,f.Add_all_missing_properties)]}if(r.kind===4){let i=ur.ChangeTracker.with(e,o=>rPe(o,e,r));return[oa(Z7,i,f.Add_missing_attributes,Z7,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=ur.ChangeTracker.with(e,o=>nPe(o,e,r));return[oa(eB,i,[f.Add_missing_function_declaration_0,r.token.text],eB,f.Add_all_missing_function_declarations)]}if(r.kind===1){let i=ur.ChangeTracker.with(e,o=>tPe(o,e.program.getTypeChecker(),r));return[oa(nb,i,[f.Add_missing_enum_member_0,r.token.text],nb,f.Add_all_missing_members)]}return Eo(d$e(e,r),a$e(e,r))}},fixIds:[nb,eB,Q7,Z7],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return ED(ur.ChangeTracker.with(e,l=>{SD(e,cfe,d=>{let p=qNe(d.file,d.start,d.code,i,e.program);if(!(!p||!Em(o,rs(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===eB&&(p.kind===2||p.kind===5))nPe(l,e,p);else if(r===Q7&&p.kind===3)iPe(l,e,p);else if(r===Z7&&p.kind===4)rPe(l,e,p);else if(p.kind===1&&tPe(l,i,p),p.kind===0){let{parentDeclaration:h,token:m}=p,y=WC(s,h,()=>[]);y.some(E=>E.token.text===m.text)||y.push(p)}}}),s.forEach((d,p)=>{let h=gp(p)?void 0:eme(p,i);for(let m of d){if(h?.some(w=>{let j=s.get(w);return!!j&&j.some(({token:K})=>K.text===m.token.text)}))continue;let{parentDeclaration:y,declSourceFile:E,modifierFlags:S,token:A,call:N,isJSFile:D}=m;if(N&&!Ki(A))ePe(e,l,N,A,S&256,y,E);else if(D&&!pu(y)&&!gp(y))XNe(l,E,y,A,!!(S&256));else{let w=$Ne(i,y,A);QNe(l,E,y,A.text,w,S&256)}}})}))}})}});function aPe(e,t,r){let i=na(h$e(t,r),ia),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function h$e(e,t){let r=so(e,t.start),i=Jl(t);for(;r.endaPe(o,t,r));return[oa(p$,i,f.Add_missing_new_operator_to_call,p$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[p$],getAllCodeActions:e=>gs(e,dfe,(t,r)=>aPe(t,e.sourceFile,r))})}});function sPe(e,t,r){let i=so(e,r),o=Fn(i,ia);if(o===void 0||Nn(o.arguments)===0)return;let s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),d=jr(l.symbol.declarations,lPe);if(d===void 0)return;let p=$s(d);if(p===void 0||p.body===void 0||mD(t,p.getSourceFile()))return;let h=y$e(p);if(h===void 0)return;let m=[],y=[],E=Nn(p.parameters),S=Nn(o.arguments);if(E>S)return;let A=[p,...b$e(p,d)];for(let N=0,D=0,w=0;N{Nn(o.parameters)?e.replaceNodeRangeWithNodes(t,Va(o.parameters),Ja(o.parameters),cPe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:ur.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ur.TrailingTriviaOption.Include}):gn(cPe(o,i),(s,l)=>{Nn(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function lPe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function cPe(e,t){let r=mn(e.parameters,i=>L.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(let{pos:i,declaration:o}of t){let s=i>0?r[i-1]:void 0;r.splice(i,0,L.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?L.createToken(58):o.questionToken,o.type,o.initializer))}return r}function b$e(e,t){let r=[];for(let i of t)if(E$e(i)){if(Nn(i.parameters)===Nn(e.parameters)){r.push(i);continue}if(Nn(i.parameters)>Nn(e.parameters))return[]}return r}function E$e(e){return lPe(e)&&e.body===void 0}function dPe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function S$e(e,t){return Nn(e)&>(e,r=>tf$(d,e.sourceFile,i,o)),[Nn(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],tB,f.Add_all_missing_parameters)),Nn(s)&&Tn(l,oa(nB,ur.ChangeTracker.with(e,d=>f$(d,e.sourceFile,i,s)),[Nn(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],nB,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>gs(e,ufe,(t,r)=>{let i=sPe(e.sourceFile,e.program,r.start);if(i){let{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===tB&&f$(t,e.sourceFile,o,s),e.fixId===nB&&f$(t,e.sourceFile,o,l)}})})}});function uPe(e,t){return{type:"install package",file:e,packageName:t}}function pPe(e,t){let r=ri(so(e,t),Da);if(!r)return;let i=r.text,{packageName:o}=mw(i);return Yc(o)?void 0:o}function fPe(e,t,r){var i;return r===pfe?O_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?A3(e):void 0}var mPe,m$,pfe,ffe,A$e=bt({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";ai(),Ta(),mPe="fixCannotFindModule",m$="installTypesPackage",pfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,ffe=[pfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Ea({errorCodes:ffe,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=pPe(i,o);if(s===void 0)return;let l=fPe(s,r,t.errorCode);return l===void 0?[]:[oa(mPe,[],[f.Install_0,l],m$,f.Install_all_missing_types_packages,uPe(i.fileName,l))]},fixIds:[m$],getAllCodeActions:e=>gs(e,ffe,(t,r,i)=>{let o=pPe(r.file,r.start);if(o!==void 0)switch(e.fixId){case m$:{let s=fPe(o,e.host,r.code);s&&i.push(uPe(r.file.fileName,s));break}default:x.fail(`Bad fixId: ${e.fixId}`)}})})}});function _Pe(e,t){let r=so(e,t);return na(r.parent,ci)}function hPe(e,t,r,i,o){let s=S_(e),l=r.program.getTypeChecker(),d=l.getTypeAtLocation(s),p=l.getPropertiesOfType(d).filter(I$e),h=x1(t,r.program,o,r.host);Hfe(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function I$e(e){let t=Wv(Va(e.getDeclarations()));return!(t&2)&&!!(t&64)}var mfe,_$,x$e=bt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";ai(),Ta(),mfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],_$="fixClassDoesntImplementInheritedAbstractMember",Ea({errorCodes:mfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=ur.ChangeTracker.with(t,s=>hPe(_Pe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[oa(_$,o,f.Implement_inherited_abstract_class,_$,f.Implement_all_inherited_abstract_classes)]},fixIds:[_$],getAllCodeActions:function(t){let r=new Map;return gs(t,mfe,(i,o)=>{let s=_Pe(o.file,o.start);Em(r,rs(s))&&hPe(s,t.sourceFile,t,i,t.preferences)})}})}});function gPe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function yPe(e,t){let r=so(e,t);if(r.kind!==110)return;let i=Wp(r),o=vPe(i.body);return o&&!o.expression.arguments.some(s=>kr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function vPe(e){return ed(e)&&mT(e.expression)?e:$o(e)?void 0:Go(e,vPe)}var h$,_fe,R$e=bt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";ai(),Ta(),h$="classSuperMustPrecedeThisAccess",_fe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Ea({errorCodes:_fe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=yPe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=ur.ChangeTracker.with(e,d=>gPe(d,t,o,s));return[oa(h$,l,f.Make_super_call_the_first_statement_in_the_constructor,h$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[h$],getAllCodeActions(e){let{sourceFile:t}=e,r=new Map;return gs(e,_fe,(i,o)=>{let s=yPe(o.file,o.start);if(!s)return;let{constructor:l,superCall:d}=s;Em(r,rs(l.parent))&&gPe(i,t,l,d)})}})}});function bPe(e,t){let r=so(e,t);return x.assert(Pl(r.parent),"token should be at the constructor declaration"),r.parent}function EPe(e,t,r){let i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,Xe));e.insertNodeAtConstructorStart(t,r,i)}var g$,hfe,D$e=bt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";ai(),Ta(),g$="constructorForDerivedNeedSuperCall",hfe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Ea({errorCodes:hfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=bPe(t,r.start),o=ur.ChangeTracker.with(e,s=>EPe(s,t,i));return[oa(g$,o,f.Add_missing_super_call,g$,f.Add_all_missing_super_calls)]},fixIds:[g$],getAllCodeActions:e=>gs(e,hfe,(t,r)=>EPe(t,e.sourceFile,bPe(r.file,r.start)))})}});function SPe(e,t){Yfe(e,t,"jsx",L.createStringLiteral("react"))}var gfe,yfe,C$e=bt({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";ai(),Ta(),gfe="fixEnableJsxFlag",yfe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Ea({errorCodes:yfe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=ur.ChangeTracker.with(t,o=>SPe(o,r));return[Qm(gfe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[gfe],getAllCodeActions:e=>gs(e,yfe,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&SPe(t,r)})})}});function TPe(e,t,r){let i=Vr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Vr(i.relatedInformation,l=>l.code===f.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=Qfe(o.file,gd(o.start,o.length));if(s!==void 0&&ht(s)&&dr(s.parent))return{suggestion:N$e(o.messageText),expression:s.parent,arg:s}}function APe(e,t,r,i){let o=L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("Number"),L.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?L.createPrefixUnaryExpression(54,o):o)}function N$e(e){let[,t]=k_(e,` `,0).match(/'(.*)'/)||[];return t}var y$,vfe,P$e=bt({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";ai(),Ta(),y$="fixNaNEquality",vfe=[f.This_condition_will_always_return_0.code],Ea({errorCodes:vfe,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=TPe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:d}=o,p=ur.ChangeTracker.with(e,h=>APe(h,t,d,l));return[oa(y$,p,[f.Use_0,s],y$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[y$],getAllCodeActions:e=>gs(e,vfe,(t,r)=>{let i=TPe(e.program,r.file,gd(r.start,r.length));i&&APe(t,r.file,i.arg,i.expression)})})}}),M$e=bt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";ai(),Ta(),Ea({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;let o=[],s=Ld(r);if(s>=5&&s<99){let h=ur.ChangeTracker.with(t,m=>{Yfe(m,i,"module",L.createStringLiteral("esnext"))});o.push(Qm("fixModuleOption",h,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let d=ns(r);if(d<4||d>99){let h=ur.ChangeTracker.with(t,m=>{if(!mN(i))return;let E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),Xfe(m,i,E)});o.push(Qm("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function IPe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function xPe(e,t){return na(so(e,t).parent,Zu)}var v$,bfe,L$e=bt({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";ai(),Ta(),v$="fixPropertyAssignment",bfe=[f.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],Ea({errorCodes:bfe,fixIds:[v$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=xPe(t,r.start),o=ur.ChangeTracker.with(e,s=>IPe(s,e.sourceFile,i));return[oa(v$,o,[f.Change_0_to_1,"=",":"],v$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>gs(e,bfe,(t,r)=>IPe(t,r.file,xPe(r.file,r.start)))})}});function RPe(e,t){let r=so(e,t),i=ad(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function DPe(e,t,r,i){if(e.replaceNode(t,r,L.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},L.createToken(28));let l=t.text,d=o.end;for(;dDPe(l,t,i,o));return[oa(b$,s,f.Change_extends_to_implements,b$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[b$],getAllCodeActions:e=>gs(e,Efe,(t,r)=>{let i=RPe(r.file,r.start);i&&DPe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function CPe(e,t,r){let i=so(e,t);if(Fe(i)||Ki(i))return{node:i,className:r===Sfe?ad(i).name.text:void 0}}function NPe(e,t,{node:r,className:i}){bp(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var E$,Sfe,Tfe,w$e=bt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";ai(),Ta(),E$="forgottenThisPropertyAccess",Sfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Tfe=[f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.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,Sfe],Ea({errorCodes:Tfe,getCodeActions(e){let{sourceFile:t}=e,r=CPe(t,e.span.start,e.errorCode);if(!r)return;let i=ur.ChangeTracker.with(e,o=>NPe(o,t,r));return[oa(E$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],E$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[E$],getAllCodeActions:e=>gs(e,Tfe,(t,r)=>{let i=CPe(r.file,r.start,r.code);i&&NPe(t,e.sourceFile,i)})})}});function O$e(e){return Ss(xfe,e)}function Afe(e,t,r,i,o){let s=r.getText()[i];if(!O$e(s))return;let l=o?xfe[s]:`{${nM(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var S$,rB,Ife,xfe,W$e=bt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";ai(),Ta(),S$="fixInvalidJsxCharacters_expression",rB="fixInvalidJsxCharacters_htmlEntity",Ife=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Ea({errorCodes:Ife,fixIds:[S$,rB],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=ur.ChangeTracker.with(e,l=>Afe(l,r,t,i.start,!1)),s=ur.ChangeTracker.with(e,l=>Afe(l,r,t,i.start,!0));return[oa(S$,o,f.Wrap_invalid_character_in_an_expression_container,S$,f.Wrap_all_invalid_characters_in_an_expression_container),oa(rB,s,f.Convert_invalid_character_to_its_html_entity_code,rB,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return gs(e,Ife,(t,r)=>Afe(t,e.preferences,r.file,r.start,e.fixId===rB))}}),xfe={">":">","}":"}"}}});function F$e(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=ur.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return oa(iB,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],iB,f.Delete_all_unused_param_tags)}function z$e(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Nn(i.parameters))return;let s=e.sourceFile,l=rE(i),d=new Set;for(let y of l)Ym(y)&&Fe(y.name)&&d.add(y.name.escapedText);let p=Wl(i.parameters,y=>Fe(y.name)&&!d.has(y.name.escapedText)?y.name.getText(s):void 0);if(p===void 0)return;let h=L.updateJSDocParameterTag(o,o.tagName,L.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=ur.ChangeTracker.with(e,y=>y.replaceJSDocComment(s,r,mn(l,E=>E===o?h:E)));return Qm(Rfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function PPe(e,t){let r=so(e,t);if(r.parent&&Ym(r.parent)&&Fe(r.parent.name)){let i=r.parent,o=vT(i),s=lE(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var iB,Rfe,Dfe,B$e=bt({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";ai(),Ta(),iB="deleteUnmatchedParameter",Rfe="renameUnmatchedParameter",Dfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Ea({fixIds:[iB,Rfe],errorCodes:Dfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=PPe(r,i.start);if(s)return Tn(o,F$e(t,s)),Tn(o,z$e(t,s)),o},getAllCodeActions:function(t){let r=new Map;return ED(ur.ChangeTracker.with(t,i=>{SD(t,Dfe,({file:o,start:s})=>{let l=PPe(o,s);l&&r.set(l.signature,Tn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===iB){let l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,d=>!l.has(d))}})}))}})}});function G$e(e,t,r){let i=ri(so(e,r),Fe);if(!i||i.parent.kind!==183)return;let s=t.getTypeChecker().getSymbolAtLocation(i);return Vr(s?.declarations||Xe,jm(gh,Qu,td))}function V$e(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}let o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;let s=i.getTypeChecker();$F(o,d=>{if(vd(d.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function j$e(e,t,r,i){T1.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var T$,MPe,U$e=bt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";ai(),Ta(),T$="fixUnreferenceableDecoratorMetadata",MPe=[f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Ea({errorCodes:MPe,getCodeActions:e=>{let t=G$e(e.sourceFile,e.program,e.span.start);if(!t)return;let r=ur.ChangeTracker.with(e,s=>t.kind===276&&j$e(s,e.sourceFile,t,e.program)),i=ur.ChangeTracker.with(e,s=>V$e(s,e.sourceFile,t,e.program)),o;return r.length&&(o=Tn(o,Qm(T$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Tn(o,Qm(T$,i,f.Use_import_type))),o},fixIds:[T$]})}});function LPe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function OO(e,t){return oa(WO,e,t,x$,f.Delete_all_unused_declarations)}function kPe(e,t,r){e.delete(t,x.checkDefined(na(r.parent,tj).typeParameters,"The type parameter to delete should exist"))}function Cfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function wPe(e){return e.kind===102?ri(e.parent,Lc):void 0}function OPe(e,t){return Uc(t.parent)&&Va(t.parent.getChildren(e))===t}function WPe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function H$e(e,t,r){gn(r.elements,i=>e.delete(t,i))}function K$e(e,t,r,{parent:i}){if(wi(i)&&i.initializer&&E0(i.initializer))if(Uc(i.parent)&&Nn(i.parent.declarations)>1){let o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:Ky(e.host,e.formatContext.options)+r.text.slice(t7(r.text,s-1),s),suffix:cO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function FPe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=na(i.parent,CT).typeParameter.name),Fe(i)&&J$e(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),Ao(i.parent)&&kx(i.parent).forEach(o=>{Fe(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function J$e(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 A$(e,t,r,i,o,s,l,d){q$e(t,r,e,i,o,s,l,d),Fe(t)&&Ms.Core.eachSymbolReferenceInFile(t,i,e,p=>{kr(p.parent)&&p.parent.name===p&&(p=p.parent),!d&&Q$e(p)&&r.delete(e,p.parent.parent)})}function q$e(e,t,r,i,o,s,l,d){let{parent:p}=e;if(Ao(p))X$e(t,r,p,i,o,s,l,d);else if(!(d&&Fe(e)&&Ms.Core.isSymbolReferencedInFile(e,i,r))){let h=gh(p)?e:Ya(p)?p.parent:p;x.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function X$e(e,t,r,i,o,s,l,d=!1){if(Y$e(i,t,r,o,s,l,d))if(r.modifiers&&r.modifiers.length>0&&(!Fe(r.name)||Ms.Core.isSymbolReferencedInFile(r.name,i,t)))for(let p of r.modifiers)Sa(p)&&e.deleteModifier(t,p);else!r.initializer&&zPe(r,i,o)&&e.delete(t,r)}function zPe(e,t,r){let i=e.parent.parameters.indexOf(e);return!Ms.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function Y$e(e,t,r,i,o,s,l){let{parent:d}=r;switch(d.kind){case 174:case 176:let p=d.parameters.indexOf(r),h=Ul(d)?d.name:d,m=Ms.Core.getReferencedSymbolsForNode(d.pos,h,o,i,s);if(m){for(let y of m)for(let E of y.references)if(E.kind===Ms.EntryKind.Node){let S=aP(E.node)&&ia(E.node.parent)&&E.node.parent.arguments.length>p,A=kr(E.node.parent)&&aP(E.node.parent.expression)&&ia(E.node.parent.parent)&&E.node.parent.parent.arguments.length>p,N=(Ul(E.node.parent)||_h(E.node.parent))&&E.node.parent!==r.parent&&E.node.parent.parameters.length>p;if(S||A||N)return!1}}return!0;case 262:return d.name&&$$e(e,t,d.name)?BPe(d,r,l):!0;case 218:case 219:return BPe(d,r,l);case 178:return!1;case 177:return!0;default:return x.failBadSyntaxKind(d)}}function $$e(e,t,r){return!!Ms.Core.eachSymbolReferenceInFile(r,e,t,i=>Fe(i)&&ia(i.parent)&&i.parent.arguments.includes(i))}function BPe(e,t,r){let i=e.parameters,o=i.indexOf(t);return x.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Fe(s.name)&&!s.symbol.isReferenced):o===i.length-1}function Q$e(e){return(dr(e.parent)&&e.parent.left===e||(tH(e.parent)||qv(e.parent))&&e.parent.operand===e)&&ed(e.parent.parent)}var WO,I$,x$,oB,R$,Nfe,Z$e=bt({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";ai(),Ta(),WO="unusedIdentifier",I$="unusedIdentifier_prefix",x$="unusedIdentifier_delete",oB="unusedIdentifier_deleteImports",R$="unusedIdentifier_infer",Nfe=[f._0_is_declared_but_its_value_is_never_read.code,f._0_is_declared_but_never_used.code,f.Property_0_is_declared_but_its_value_is_never_read.code,f.All_imports_in_import_declaration_are_unused.code,f.All_destructured_elements_are_unused.code,f.All_variables_are_unused.code,f.All_type_parameters_are_unused.code],Ea({errorCodes:Nfe,getCodeActions(e){let{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),d=so(r,e.span.start);if(nm(d))return[OO(ur.ChangeTracker.with(e,y=>y.delete(r,d)),f.Remove_template_tag)];if(d.kind===30){let y=ur.ChangeTracker.with(e,E=>kPe(E,r,d));return[OO(y,f.Remove_type_parameters)]}let p=wPe(d);if(p){let y=ur.ChangeTracker.with(e,E=>E.delete(r,p));return[oa(WO,y,[f.Remove_import_from_0,eoe(p)],oB,f.Delete_all_unused_imports)]}else if(Cfe(d)){let y=ur.ChangeTracker.with(e,E=>A$(r,d,E,s,l,i,o,!1));if(y.length)return[oa(WO,y,[f.Remove_unused_declaration_for_Colon_0,d.getText(r)],oB,f.Delete_all_unused_imports)]}if(tm(d.parent)||V0(d.parent)){if(Ao(d.parent.parent)){let y=d.parent.elements,E=[y.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,mn(y,S=>S.getText(r)).join(", ")];return[OO(ur.ChangeTracker.with(e,S=>H$e(S,r,d.parent)),E)]}return[OO(ur.ChangeTracker.with(e,y=>K$e(e,y,r,d.parent)),f.Remove_unused_destructuring_declaration)]}if(OPe(r,d))return[OO(ur.ChangeTracker.with(e,y=>WPe(y,r,d.parent)),f.Remove_variable_statement)];let h=[];if(d.kind===140){let y=ur.ChangeTracker.with(e,S=>LPe(S,r,d)),E=na(d.parent,CT).typeParameter.name.text;h.push(oa(WO,y,[f.Replace_infer_0_with_unknown,E],R$,f.Replace_all_unused_infer_with_unknown))}else{let y=ur.ChangeTracker.with(e,E=>A$(r,d,E,s,l,i,o,!1));if(y.length){let E=Ya(d.parent)?d.parent:d;h.push(OO(y,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}let m=ur.ChangeTracker.with(e,y=>FPe(y,t,r,d));return m.length&&h.push(oa(WO,m,[f.Prefix_0_with_an_underscore,d.getText(r)],I$,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[I$,x$,oB,R$],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return gs(e,Nfe,(l,d)=>{let p=so(t,d.start);switch(e.fixId){case I$:FPe(l,d.code,t,p);break;case oB:{let h=wPe(p);h?l.delete(t,h):Cfe(p)&&A$(t,p,l,o,s,r,i,!0);break}case x$:{if(p.kind===140||Cfe(p))break;if(nm(p))l.delete(t,p);else if(p.kind===30)kPe(l,t,p);else if(tm(p.parent)){if(p.parent.parent.initializer)break;(!Ao(p.parent.parent)||zPe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(V0(p.parent.parent)&&p.parent.parent.parent.initializer)break;OPe(t,p)?WPe(l,t,p.parent):A$(t,p,l,o,s,r,i,!0)}break}case R$:p.kind===140&&LPe(l,t,p);break;default:x.fail(JSON.stringify(e.fixId))}})}})}});function GPe(e,t,r,i,o){let s=so(t,r),l=Fn(s,Hi);if(l.getStart(t)!==s.getStart(t)){let p=JSON.stringify({statementKind:x.formatSyntaxKind(l.kind),tokenKind:x.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});x.fail("Token and statement should start at the same point. "+p)}let d=(Ko(l.parent)?l.parent:l).parent;if(!Ko(l.parent)||l===Va(l.parent.statements))switch(d.kind){case 245:if(d.elseStatement){if(Ko(l.parent))break;e.replaceNode(t,l,L.createBlock(Xe));return}case 247:case 248:e.delete(t,d);return}if(Ko(l.parent)){let p=r+i,h=x.checkDefined(eQe(dU(l.parent.statements,l),m=>m.posGPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[oa(D$,r,f.Remove_unreachable_code,D$,f.Remove_all_unreachable_code)]},fixIds:[D$],getAllCodeActions:e=>gs(e,Pfe,(t,r)=>GPe(t,r.file,r.start,r.length,r.code))})}});function VPe(e,t,r){let i=so(t,r),o=na(i.parent,H0),s=i.getStart(t),l=o.statement.getStart(t),d=Sf(s,l,t)?l:Na(t.text,_s(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:d})}var C$,Mfe,nQe=bt({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";ai(),Ta(),C$="fixUnusedLabel",Mfe=[f.Unused_label.code],Ea({errorCodes:Mfe,getCodeActions(e){let t=ur.ChangeTracker.with(e,r=>VPe(r,e.sourceFile,e.span.start));return[oa(C$,t,f.Remove_unused_label,C$,f.Remove_all_unused_labels)]},fixIds:[C$],getAllCodeActions:e=>gs(e,Mfe,(t,r)=>VPe(t,r.file,r.start))})}});function jPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function UPe(e,t,r){let i=Fn(so(e,t),rQe),o=i&&i.type;return o&&{typeNode:o,type:iQe(r,o)}}function rQe(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 iQe(e,t){if(LR(t)){let r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Tn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Lfe,N$,kfe,oQe=bt({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";ai(),Ta(),Lfe="fixJSDocTypes_plain",N$="fixJSDocTypes_nullable",kfe=[f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Ea({errorCodes:kfe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=UPe(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),d=[p(s,Lfe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&d.push(p(s,N$,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),d;function p(h,m,y){let E=ur.ChangeTracker.with(e,S=>jPe(S,t,o,h,r));return oa("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(h)],m,y)}},fixIds:[Lfe,N$],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return gs(e,kfe,(s,l)=>{let d=UPe(l.file,l.start,o);if(!d)return;let{typeNode:p,type:h}=d,m=p.kind===321&&t===N$?o.getNullableType(h,32768):h;jPe(s,i,p,m,o)})}})}});function HPe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function KPe(e,t){let r=so(e,t);if(kr(r.parent)){let i=r.parent;for(;kr(i.parent);)i=i.parent;return i.name}if(Fe(r))return r}var P$,wfe,aQe=bt({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";ai(),Ta(),P$="fixMissingCallParentheses",wfe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Ea({errorCodes:wfe,fixIds:[P$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=KPe(t,r.start);if(!i)return;let o=ur.ChangeTracker.with(e,s=>HPe(s,e.sourceFile,i));return[oa(P$,o,f.Add_missing_call_parentheses,P$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>gs(e,wfe,(t,r)=>{let i=KPe(r.file,r.start);i&&HPe(t,r.file,i)})})}});function sQe(e){if(e.type)return e.type;if(wi(e.parent)&&e.parent.type&&hh(e.parent.type))return e.parent.type.type}function JPe(e,t){let r=so(e,t),i=Wp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=_s(i,100,e);break;case 219:let s=i.typeParameters?30:21;o=_s(i,s,e)||Va(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:sQe(i)}}function qPe(e,t,{insertBefore:r,returnType:i}){if(i){let o=A2(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,L.createTypeReferenceNode("Promise",L.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var M$,Ofe,lQe=bt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";ai(),Ta(),M$="fixAwaitInSyncFunction",Ofe=[f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Ea({errorCodes:Ofe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=JPe(t,r.start);if(!i)return;let o=ur.ChangeTracker.with(e,s=>qPe(s,t,i));return[oa(M$,o,f.Add_async_modifier_to_containing_function,M$,f.Add_all_missing_async_modifiers)]},fixIds:[M$],getAllCodeActions:function(t){let r=new Map;return gs(t,Ofe,(i,o)=>{let s=JPe(o.file,o.start);!s||!Em(r,rs(s.insertBefore))||qPe(i,t.sourceFile,s)})}})}});function XPe(e,t,r,i,o){let s,l;if(i===f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let d=o.program.getTypeChecker(),p=so(e,t).parent;x.assert(Cv(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");let h=p.parent;x.assert(ci(h),"erroneous accessors should only be inside classes");let m=nh(eme(h,d));if(!m)return[];let y=Vi(Ux(p.name)),E=d.getPropertyOfType(d.getTypeAtLocation(m),y);if(!E||!E.valueDeclaration)return[];s=E.valueDeclaration.pos,l=E.valueDeclaration.end,e=Gn(E.valueDeclaration)}else x.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return dMe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Wfe,L$,cQe=bt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";ai(),Ta(),Wfe=[f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],L$="fixPropertyOverrideAccessor",Ea({errorCodes:Wfe,getCodeActions(e){let t=XPe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[oa(L$,t,f.Generate_get_and_set_accessors,L$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[L$],getAllCodeActions:e=>gs(e,Wfe,(t,r)=>{let i=XPe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function dQe(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return hp(Wp(t))?f.Infer_type_of_0_from_usage:f.Infer_parameter_types_from_usage;case f.Rest_parameter_0_implicitly_has_an_any_type.code:case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Infer_parameter_types_from_usage;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return f.Infer_this_type_of_0_from_usage;default:return f.Infer_type_of_0_from_usage}}function uQe(e){switch(e){case f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_an_1_type.code;case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Parameter_0_implicitly_has_an_1_type.code;case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Rest_parameter_0_implicitly_has_an_any_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Member_0_implicitly_has_an_1_type.code}return e}function YPe(e,t,r,i,o,s,l,d,p){if(!oN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:h}=r,m=x1(t,o,p,d);switch(i=uQe(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(wi(h)&&l(h)||Uo(h)||_p(h))return $Pe(e,m,t,h,o,d,s),m.writeFixes(e),h;if(kr(h)){let S=FO(h.name,o,s),A=rM(S,h,o,d);if(A){let N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(A),void 0);e.addJSDocTags(t,na(h.parent.parent,ed),[N])}return m.writeFixes(e),h}return;case f.Variable_0_implicitly_has_an_1_type.code:{let S=o.getTypeChecker().getSymbolAtLocation(r);return S&&S.valueDeclaration&&wi(S.valueDeclaration)&&l(S.valueDeclaration)?($Pe(e,m,Gn(S.valueDeclaration),S.valueDeclaration,o,d,s),m.writeFixes(e),S.valueDeclaration):void 0}}let y=Wp(r);if(y===void 0)return;let E;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(hp(y)){QPe(e,m,t,y,o,d,s),E=y;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){let S=na(h,Ao);pQe(e,m,t,S,y,o,d,s),E=S}break;case f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Qp(y)&&Fe(y.name)&&(k$(e,m,t,y,FO(y.name,o,s),o,d),E=y);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:hp(y)&&(QPe(e,m,t,y,o,d,s),E=y);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:ur.isThisTypeAnnotatable(y)&&l(y)&&(fQe(e,t,y,o,d,s),E=y);break;default:return x.fail(String(i))}return m.writeFixes(e),E}function $Pe(e,t,r,i,o,s,l){Fe(i.name)&&k$(e,t,r,i,FO(i.name,o,l),o,s)}function pQe(e,t,r,i,o,s,l,d){if(!Fe(i.name))return;let p=hQe(o,r,s,d);if(x.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),ir(o))ZPe(e,r,p,s,l);else{let h=Os(o)&&!_s(o,21,r);h&&e.insertNodeBefore(r,Va(o.parameters),L.createToken(21));for(let{declaration:m,type:y}of p)m&&!m.type&&!m.initializer&&k$(e,t,r,m,y,s,l);h&&e.insertNodeAfter(r,Ja(o.parameters),L.createToken(22))}}function fQe(e,t,r,i,o,s){let l=eMe(r,t,i,s);if(!l||!l.length)return;let d=zfe(i,l,s).thisParameter(),p=rM(d,r,i,o);p&&(ir(r)?mQe(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function mQe(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function QPe(e,t,r,i,o,s,l){let d=Xc(i.parameters);if(d&&Fe(i.name)&&Fe(d.name)){let p=FO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=FO(d.name,o,l)),ir(i)?ZPe(e,r,[{declaration:d,type:p}],o,s):k$(e,t,r,d,p,o,s)}}function k$(e,t,r,i,o,s,l){let d=rM(o,i,s,l);if(d)if(ir(r)&&i.kind!==171){let p=wi(i)?ri(i.parent.parent,Ml):i;if(!p)return;let h=L.createJSDocTypeExpression(d),m=Qp(i)?L.createJSDocReturnTag(void 0,h,void 0):L.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[m])}else _Qe(d,i,r,e,t,ns(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,d)}function _Qe(e,t,r,i,o,s){let l=D1(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(gn(l.symbols,d=>o.addImportFromExportedSymbol(d,!0)),!0):!1}function ZPe(e,t,r,i,o){let s=r.length&&r[0].declaration.parent;if(!s)return;let l=to(r,d=>{let p=d.declaration;if(p.initializer||nE(p)||!Fe(p.name))return;let h=d.type&&rM(d.type,p,i,o);if(h){let m=L.cloneNode(p.name);return lr(m,7168),{name:L.cloneNode(p.name),param:p,isOptional:!!d.isOptional,typeNode:h}}});if(l.length)if(Os(s)||Ps(s)){let d=Os(s)&&!_s(s,21,t);d&&e.insertNodeBefore(t,Va(s.parameters),L.createToken(21)),gn(l,({typeNode:p,param:h})=>{let m=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(p)),y=L.createJSDocComment(void 0,[m]);e.insertNodeAt(t,h.getStart(t),y,{suffix:" "})}),d&&e.insertNodeAfter(t,Ja(s.parameters),L.createToken(22))}else{let d=mn(l,({name:p,typeNode:h,isOptional:m})=>L.createJSDocParameterTag(void 0,p,!!m,L.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,s,d)}}function Ffe(e,t,r){return to(Ms.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Ms.EntryKind.Span?ri(i.node,Fe):void 0)}function FO(e,t,r){let i=Ffe(e,t,r);return zfe(t,i,r).single()}function hQe(e,t,r,i){let o=eMe(e,t,r,i);return o&&zfe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Fe(s.name)?FO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function eMe(e,t,r,i){let o;switch(e.kind){case 176:o=_s(e,137,t);break;case 219:case 218:let s=e.parent;o=(wi(s)||Uo(s))&&Fe(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return Ffe(o,r,i)}function zfe(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ae=>i.createArrayType(Ae),Promise:Ae=>i.createPromiseType(Ae)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:h,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 d(Ae){let De=new Map;for(let Et of Ae)Et.properties&&Et.properties.forEach((be,ze)=>{De.has(ze)||De.set(ze,[]),De.get(ze).push(be)});let Le=new Map;return De.forEach((Et,be)=>{Le.set(be,d(Et))}),{isNumber:Ae.some(Et=>Et.isNumber),isString:Ae.some(Et=>Et.isString),isNumberOrString:Ae.some(Et=>Et.isNumberOrString),candidateTypes:va(Ae,Et=>Et.candidateTypes),properties:Le,calls:va(Ae,Et=>Et.calls),constructs:va(Ae,Et=>Et.constructs),numberIndex:gn(Ae,Et=>Et.numberIndex),stringIndex:gn(Ae,Et=>Et.stringIndex),candidateThisTypes:va(Ae,Et=>Et.candidateThisTypes),inferredTypes:void 0}}function p(){return me(y(t))}function h(Ae){if(t.length===0||!Ae.parameters)return;let De=l();for(let Et of t)r.throwIfCancellationRequested(),E(Et,De);let Le=[...De.constructs||[],...De.calls||[]];return Ae.parameters.map((Et,be)=>{let ze=[],tt=Kh(Et),Wt=!1;for(let Je of Le)if(Je.argumentTypes.length<=be)Wt=ir(Ae),ze.push(i.getUndefinedType());else if(tt)for(let pt=be;ptLe.every(be=>!be(Et)))}function Z(Ae){return me(q(Ae))}function me(Ae){if(!Ae.length)return i.getAnyType();let De=i.getUnionType([i.getStringType(),i.getNumberType()]),Et=z(Ae,[{high:ze=>ze===i.getStringType()||ze===i.getNumberType(),low:ze=>ze===De},{high:ze=>!(ze.flags&16385),low:ze=>!!(ze.flags&16385)},{high:ze=>!(ze.flags&114689)&&!(Lr(ze)&16),low:ze=>!!(Lr(ze)&16)}]),be=Et.filter(ze=>Lr(ze)&16);return be.length&&(Et=Et.filter(ze=>!(Lr(ze)&16)),Et.push(ge(be))),i.getWidenedType(i.getUnionType(Et.map(i.getBaseTypeOfLiteralType),2))}function ge(Ae){if(Ae.length===1)return Ae[0];let De=[],Le=[],Et=[],be=[],ze=!1,tt=!1,Wt=qp();for(let pt of Ae){for(let Dn of i.getPropertiesOfType(pt))Wt.add(Dn.escapedName,Dn.valueDeclaration?i.getTypeOfSymbolAtLocation(Dn,Dn.valueDeclaration):i.getAnyType());De.push(...i.getSignaturesOfType(pt,0)),Le.push(...i.getSignaturesOfType(pt,1));let Zt=i.getIndexInfoOfType(pt,0);Zt&&(Et.push(Zt.type),ze=ze||Zt.isReadonly);let en=i.getIndexInfoOfType(pt,1);en&&(be.push(en.type),tt=tt||en.isReadonly)}let _t=qte(Wt,(pt,Zt)=>{let en=Zt.lengthi.getBaseTypeOfLiteralType(Wt)),tt=(Et=Ae.calls)!=null&&Et.length?J(Ae):void 0;return tt&&ze?be.push(i.getUnionType([tt,...ze],2)):(tt&&be.push(tt),Nn(ze)&&be.push(...ze)),be.push(...re(Ae)),be}function J(Ae){let De=new Map;Ae.properties&&Ae.properties.forEach((ze,tt)=>{let Wt=i.createSymbol(4,tt);Wt.links.type=Z(ze),De.set(tt,Wt)});let Le=Ae.calls?[Ce(Ae.calls)]:[],Et=Ae.constructs?[Ce(Ae.constructs)]:[],be=Ae.stringIndex?[i.createIndexInfo(i.getStringType(),Z(Ae.stringIndex),!1)]:[];return i.createAnonymousType(void 0,De,Le,Et,be)}function re(Ae){if(!Ae.properties||!Ae.properties.size)return[];let De=s.filter(Le=>pe(Le,Ae));return 0xe(Le,Ae)):[]}function pe(Ae,De){return De.properties?!Gc(De.properties,(Le,Et)=>{let be=i.getTypeOfPropertyOfType(Ae,Et);return be?Le.calls?!i.getSignaturesOfType(be,0).length||!i.isTypeAssignableTo(be,he(Le.calls)):!i.isTypeAssignableTo(be,Z(Le)):!0}):!1}function xe(Ae,De){if(!(Lr(Ae)&4)||!De.properties)return Ae;let Le=Ae.target,Et=nh(Le.typeParameters);if(!Et)return Ae;let be=[];return De.properties.forEach((ze,tt)=>{let Wt=i.getTypeOfPropertyOfType(Le,tt);x.assert(!!Wt,"generic should have all the properties of its reference."),be.push(...fe(Wt,Z(ze),Et))}),o[Ae.symbol.escapedName](me(be))}function fe(Ae,De,Le){if(Ae===Le)return[De];if(Ae.flags&3145728)return va(Ae.types,ze=>fe(ze,De,Le));if(Lr(Ae)&4&&Lr(De)&4){let ze=i.getTypeArguments(Ae),tt=i.getTypeArguments(De),Wt=[];if(ze&&tt)for(let _t=0;_tbe.argumentTypes.length));for(let be=0;bett.argumentTypes[be]||i.getUndefinedType())),Ae.some(tt=>tt.argumentTypes[be]===void 0)&&(ze.flags|=16777216),De.push(ze)}let Et=Z(d(Ae.map(be=>be.return_)));return i.createSignature(void 0,void 0,void 0,De,Et,void 0,Le,0)}function Ge(Ae,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ae.candidateTypes||(Ae.candidateTypes=[])).push(De)}function ve(Ae,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ae.candidateThisTypes||(Ae.candidateThisTypes=[])).push(De)}}var w$,Bfe,gQe=bt({"src/services/codefixes/inferFromUsage.ts"(){"use strict";ai(),Ta(),w$="inferFromUsage",Bfe=[f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,f.Variable_0_implicitly_has_an_1_type.code,f.Parameter_0_implicitly_has_an_1_type.code,f.Rest_parameter_0_implicitly_has_an_any_type.code,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,f.Member_0_implicitly_has_an_1_type.code,f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ea({errorCodes:Bfe,getCodeActions(e){let{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:d}=e,p=so(t,i),h,m=ur.ChangeTracker.with(e,E=>{h=YPe(E,t,p,o,r,s,Sy,l,d)}),y=h&&Po(h);return!y||m.length===0?void 0:[oa(w$,m,[dQe(o,p),uc(y)],w$,f.Infer_all_types_from_usage)]},fixIds:[w$],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=v1();return gs(e,Bfe,(d,p)=>{YPe(d,t,so(p.file,p.start),p.code,r,i,l,o,s)})}})}});function tMe(e,t,r){if(ir(e))return;let i=so(e,r),o=Fn(i,ws),s=o?.type;if(!s)return;let l=t.getTypeFromTypeNode(s),d=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(d,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:d}}function nMe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var O$,Gfe,yQe=bt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";ai(),Ta(),O$="fixReturnTypeInAsyncFunction",Gfe=[f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Ea({errorCodes:Gfe,fixIds:[O$],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=tMe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:d,returnType:p,promisedTypeNode:h,promisedType:m}=l,y=ur.ChangeTracker.with(t,E=>nMe(E,r,d,h));return[oa(O$,y,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],O$,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>gs(e,Gfe,(t,r)=>{let i=tMe(r.file,e.program.getTypeChecker(),r.start);i&&nMe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function rMe(e,t,r,i){let{line:o}=hs(t,r);(!i||Kb(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Vfe,jfe,Ufe,vQe=bt({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";ai(),Ta(),Vfe="disableJsDiagnostics",jfe="disableJsDiagnostics",Ufe=to(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0}),Ea({errorCodes:Ufe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!ir(r)||!ck(r,i.getCompilerOptions()))return;let d=r.checkJsDirective?"":Ky(s,l.options),p=[Qm(Vfe,[oCe(r.fileName,[Zw(r.checkJsDirective?dc(r.checkJsDirective.pos,r.checkJsDirective.end):gd(0,0),`// @ts-nocheck${d}`)])],f.Disable_checking_for_this_file)];return ur.isValidLocationToAddComment(r,o.start)&&p.unshift(oa(Vfe,ur.ChangeTracker.with(t,h=>rMe(h,r,o.start)),f.Ignore_this_error_message,jfe,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[jfe],getAllCodeActions:e=>{let t=new Set;return gs(e,Ufe,(r,i)=>{ur.isValidLocationToAddComment(i.file,i.start)&&rMe(r,i.file,i.start,t)})}})}});function Hfe(e,t,r,i,o,s,l){let d=e.symbol.members;for(let p of t)d.has(p.escapedName)||iMe(p,e,r,i,o,s,l,void 0)}function AD(e){return{trackSymbol:()=>!1,moduleResolverHost:Vq(e.program,e.host)}}function iMe(e,t,r,i,o,s,l,d,p=3,h=!1){let m=e.getDeclarations(),y=Xc(m),E=i.program.getTypeChecker(),S=ns(i.program.getCompilerOptions()),A=y?.kind??171,N=re(e,y),D=y?lu(y):0,w=D&256;w|=D&1?1:D&4?4:0,y&&Mu(y)&&(w|=512);let j=Z(),K=E.getWidenedType(E.getTypeOfSymbolAtLocation(e,t)),Y=!!(e.flags&16777216),B=!!(t.flags&33554432)||h,ce=of(r,o);switch(A){case 171:case 172:let pe=ce===0?268435456:void 0,xe=E.typeToTypeNode(K,t,pe,AD(i));if(s){let ne=D1(xe,S);ne&&(xe=ne.typeNode,ID(s,ne.symbols))}l(L.createPropertyDeclaration(j,y?ge(N):e.getName(),Y&&p&2?L.createToken(58):void 0,xe,void 0));break;case 177:case 178:{x.assertIsDefined(m);let ne=E.typeToTypeNode(K,t,void 0,AD(i)),he=AT(m,y),Ce=he.secondAccessor?[he.firstAccessor,he.secondAccessor]:[he.firstAccessor];if(s){let Ge=D1(ne,S);Ge&&(ne=Ge.typeNode,ID(s,Ge.symbols))}for(let Ge of Ce)if(Qp(Ge))l(L.createGetAccessorDeclaration(j,ge(N),Xe,J(ne),q(d,ce,B)));else{x.assertNode(Ge,hp,"The counterpart to a getter should be a setter");let ve=DN(Ge),Ae=ve&&Fe(ve.name)?gr(ve.name):void 0;l(L.createSetAccessorDeclaration(j,ge(N),Jfe(1,[Ae],[J(ne)],1,!1),q(d,ce,B)))}break}case 173:case 174:x.assertIsDefined(m);let fe=K.isUnion()?va(K.types,ne=>ne.getCallSignatures()):K.getCallSignatures();if(!gt(fe))break;if(m.length===1){x.assert(fe.length===1,"One declaration implies one signature");let ne=fe[0];z(ce,ne,j,ge(N),q(d,ce,B));break}for(let ne of fe)z(ce,ne,j,ge(N));if(!B)if(m.length>fe.length){let ne=E.getSignatureFromDeclaration(m[m.length-1]);z(ce,ne,j,ge(N),q(d,ce))}else x.assert(m.length===fe.length,"Declarations and signatures should match count"),l(SQe(E,i,t,fe,ge(N),Y&&!!(p&1),j,ce,d));break}function z(pe,xe,fe,ne,he){let Ce=W$(174,i,pe,xe,he,ne,fe,Y&&!!(p&1),t,s);Ce&&l(Ce)}function Z(){let pe;return w&&(pe=vx(pe,L.createModifiersFromModifierFlags(w))),me()&&(pe=Tn(pe,L.createToken(164))),pe&&L.createNodeArray(pe)}function me(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&w0(y))}function ge(pe){return Fe(pe)&&pe.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(gr(pe),ce===0)):ol(pe,!1)}function q(pe,xe,fe){return fe?void 0:ol(pe,!1)||qfe(xe)}function J(pe){return ol(pe,!1)}function re(pe,xe){if(Tl(pe)&262144){let fe=pe.links.nameType;if(fe&&Qf(fe))return L.createIdentifier(Vi(Zf(fe)))}return ol(Po(xe),!1)}}function W$(e,t,r,i,o,s,l,d,p,h){let m=t.program,y=m.getTypeChecker(),E=ns(m.getCompilerOptions()),S=ir(p),A=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,p,A,AD(t));if(!N)return;let D=S?void 0:N.typeParameters,w=N.parameters,j=S?void 0:N.type;if(h){if(D){let ce=Pc(D,z=>{let Z=z.constraint,me=z.default;if(Z){let ge=D1(Z,E);ge&&(Z=ge.typeNode,ID(h,ge.symbols))}if(me){let ge=D1(me,E);ge&&(me=ge.typeNode,ID(h,ge.symbols))}return L.updateTypeParameterDeclaration(z,z.modifiers,z.name,Z,me)});D!==ce&&(D=at(L.createNodeArray(ce,D.hasTrailingComma),D))}let B=Pc(w,ce=>{let z=S?void 0:ce.type;if(z){let Z=D1(z,E);Z&&(z=Z.typeNode,ID(h,Z.symbols))}return L.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,S?void 0:ce.questionToken,z,ce.initializer)});if(w!==B&&(w=at(L.createNodeArray(B,w.hasTrailingComma),w)),j){let ce=D1(j,E);ce&&(j=ce.typeNode,ID(h,ce.symbols))}}let K=d?L.createToken(58):void 0,Y=N.asteriskToken;if(Ps(N))return L.updateFunctionExpression(N,l,N.asteriskToken,ri(s,Fe),D,w,j,o??N.body);if(Os(N))return L.updateArrowFunction(N,l,D,w,j,N.equalsGreaterThanToken,o??N.body);if(Ul(N))return L.updateMethodDeclaration(N,l,Y,s??L.createIdentifier(""),K,D,w,j,o);if(Ec(N))return L.updateFunctionDeclaration(N,l,N.asteriskToken,ri(s,Fe),D,w,j,o??N.body)}function Kfe(e,t,r,i,o,s,l){let d=of(t.sourceFile,t.preferences),p=ns(t.program.getCompilerOptions()),h=AD(t),m=t.program.getTypeChecker(),y=ir(l),{typeArguments:E,arguments:S,parent:A}=i,N=y?void 0:m.getContextualType(i),D=mn(S,me=>Fe(me)?me.text:kr(me)&&Fe(me.name)?me.name.text:void 0),w=y?[]:mn(S,me=>m.getTypeAtLocation(me)),{argumentTypeNodes:j,argumentTypeParameters:K}=sMe(m,r,w,l,p,1,h),Y=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,B=z4(A)?L.createToken(42):void 0,ce=y?void 0:bQe(m,K,E),z=Jfe(S.length,D,j,void 0,y),Z=y||N===void 0?void 0:m.typeToTypeNode(N,l,void 0,h);switch(e){case 174:return L.createMethodDeclaration(Y,B,o,void 0,ce,z,Z,qfe(d));case 173:return L.createMethodSignature(Y,o,void 0,ce,z,Z===void 0?L.createKeywordTypeNode(159):Z);case 262:return x.assert(typeof o=="string"||Fe(o),"Unexpected name"),L.createFunctionDeclaration(Y,B,o,ce,z,Z,aB(f.Function_not_implemented.message,d));default:x.fail("Unexpected kind")}}function bQe(e,t,r){let i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){let s=r.filter(d=>!t.some(p=>{var h;return e.getTypeAtLocation(d)===((h=p[1])==null?void 0:h.argumentType)})),l=i.size+s.length;for(let d=0;i.size{var l;return L.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function oMe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function F$(e,t,r,i,o,s,l){let d=e.typeToTypeNode(r,i,s,l);if(d&&rg(d)){let p=D1(d,o);p&&(ID(t,p.symbols),d=p.typeNode)}return ol(d)}function aMe(e){return e.isUnionOrIntersection()?e.types.some(aMe):e.flags&262144}function sMe(e,t,r,i,o,s,l){let d=[],p=new Map;for(let h=0;h=i?L.createToken(58):void 0,o?void 0:r?.[d]||L.createKeywordTypeNode(159),void 0);s.push(m)}return s}function SQe(e,t,r,i,o,s,l,d,p){let h=i[0],m=i[0].minArgumentCount,y=!1;for(let N of i)m=Math.min(N.minArgumentCount,m),qd(N)&&(y=!0),N.parameters.length>=h.parameters.length&&(!qd(N)||qd(h))&&(h=N);let E=h.parameters.length-(qd(h)?1:0),S=h.parameters.map(N=>N.name),A=Jfe(E,S,void 0,m,!1);if(y){let N=L.createParameterDeclaration(void 0,L.createToken(26),S[E]||"rest",E>=m?L.createToken(58):void 0,L.createArrayTypeNode(L.createKeywordTypeNode(159)),void 0);A.push(N)}return AQe(l,o,s,void 0,A,TQe(i,e,t,r),d,p)}function TQe(e,t,r,i){if(Nn(e)){let o=t.getUnionType(mn(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,AD(r))}}function AQe(e,t,r,i,o,s,l,d){return L.createMethodDeclaration(e,void 0,t,r?L.createToken(58):void 0,i,o,s,d||qfe(l))}function qfe(e){return aB(f.Method_not_implemented.message,e)}function aB(e,t){return L.createBlock([L.createThrowStatement(L.createNewExpression(L.createIdentifier("Error"),void 0,[L.createStringLiteral(e,t===0)]))],!0)}function Xfe(e,t,r){let i=mN(t);if(!i)return;let o=$fe(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,z$("compilerOptions",L.createObjectLiteralExpression(r.map(([l,d])=>z$(l,d)),!0)));return}let s=o.initializer;if(Ma(s))for(let[l,d]of r){let p=$fe(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,z$(l,d)):e.replaceNode(t,p.initializer,d)}}function Yfe(e,t,r,i){Xfe(e,t,[[r,i]])}function z$(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function $fe(e,t){return Vr(e.properties,r=>mc(r)&&!!r.name&&Da(r.name)&&r.name.text===t)}function D1(e,t){let r,i=$e(e,o,ji);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(wv(s)&&s.qualifier){let l=Fp(s.qualifier),d=p7(l.symbol,t),p=d!==l.text?cMe(s.qualifier,L.createIdentifier(d)):s.qualifier;r=Tn(r,l.symbol);let h=zn(s.typeArguments,o,ji);return L.createTypeReferenceNode(p,h)}return Sn(s,o,void 0)}}function cMe(e,t){return e.kind===80?t:L.createQualifiedName(cMe(e.left,t),e.right)}function ID(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Qfe(e,t){let r=Jl(t),i=so(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Zfe||{})}});function dMe(e,t,r,i,o,s){let l=fMe(e,t,r,i);if(!l||T1.isRefactorErrorInfo(l))return;let d=ur.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:h,fieldName:m,accessorName:y,originalName:E,type:S,container:A,declaration:N}=l;bp(m),bp(y),bp(N),bp(A);let D,w;if(ci(A)){let K=lu(N);if(su(e)){let Y=L.createModifiersFromModifierFlags(K);D=Y,w=Y}else D=L.createModifiersFromModifierFlags(DQe(K)),w=L.createModifiersFromModifierFlags(CQe(K));GT(N)&&(w=Eo(xv(N),w))}kQe(d,e,N,S,m,w);let j=NQe(m,y,S,D,p,A);if(bp(j),mMe(d,e,j,N,A),h){let K=Zh(A);K&&wQe(d,e,K,m.text,E)}else{let K=PQe(m,y,S,D,p,A);bp(K),mMe(d,e,K,N,A)}return d.getChanges()}function xQe(e){return Fe(e)||Da(e)}function RQe(e){return dp(e,e.parent)||Uo(e)||mc(e)}function uMe(e,t){return Fe(t)?L.createIdentifier(e):L.createStringLiteral(e)}function pMe(e,t,r){let i=t?r.name:L.createThis();return Fe(e)?L.createPropertyAccessExpression(i,e):L.createElementAccessExpression(i,L.createStringLiteralFromNode(e))}function DQe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function CQe(e){return e&=-2,e&=-5,e|=2,e}function fMe(e,t,r,i,o=!0){let s=so(e,r),l=r===i&&o,d=Fn(s.parent,RQe),p=271;if(!d||!(wz(d.name,e,r,i)||l))return{error:wo(f.Could_not_find_property_for_which_to_generate_accessor)};if(!xQe(d.name))return{error:wo(f.Name_is_not_valid)};if((lu(d)&98303|p)!==p)return{error:wo(f.Can_only_convert_property_with_modifier)};let h=d.name.text,m=fX(h),y=uMe(m?h:QT(`_${h}`,e),d.name),E=uMe(m?QT(h.substring(1),e):h,d.name);return{isStatic:pc(d),isReadonly:CN(d),type:OQe(d,t),container:d.kind===169?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:y,accessorName:E,renameAccessor:m}}function NQe(e,t,r,i,o,s){return L.createGetAccessorDeclaration(i,t,[],r,L.createBlock([L.createReturnStatement(pMe(e,o,s))],!0))}function PQe(e,t,r,i,o,s){return L.createSetAccessorDeclaration(i,t,[L.createParameterDeclaration(void 0,void 0,L.createIdentifier("value"),void 0,r)],L.createBlock([L.createExpressionStatement(L.createAssignment(pMe(e,o,s),L.createIdentifier("value")))],!0))}function MQe(e,t,r,i,o,s){let l=L.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function LQe(e,t,r,i){let o=L.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=L.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function kQe(e,t,r,i,o,s){Uo(r)?MQe(e,t,r,i,o,s):mc(r)?LQe(e,t,r,o):e.replaceNode(t,r,L.updateParameterDeclaration(r,s,r.dotDotDotToken,na(o,Fe),r.questionToken,r.type,r.initializer))}function mMe(e,t,r,i,o){dp(i,i.parent)?e.insertMemberAtStart(t,o,r):mc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function wQe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Js(l)&&l.expression.kind===110&&Da(l.argumentExpression)&&l.argumentExpression.text===o&&LI(l)&&e.replaceNode(t,l.argumentExpression,L.createStringLiteral(i)),kr(l)&&l.expression.kind===110&&l.name.text===o&&LI(l)&&e.replaceNode(t,l.name,L.createIdentifier(i)),!$o(l)&&!ci(l)&&l.forEachChild(s)})}function OQe(e,t){let r=Cie(e);if(Uo(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=Hv(r)?r.types:[r];return L.createUnionTypeNode([...s,L.createKeywordTypeNode(157)])}}return r}function eme(e,t){let r=[];for(;e;){let i=N0(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;let s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&Vr(s.declarations,ci);if(!l)break;r.push(l),e=l}return r}var WQe=bt({"src/services/codefixes/generateAccessors.ts"(){"use strict";ai()}});function FQe(e,t){let r=Gn(t),i=nR(t),o=e.program.getCompilerOptions(),s=[];return s.push(_Me(e,r,t,Hy(i.name,void 0,t.moduleSpecifier,of(r,e.preferences)))),Ld(o)===1&&s.push(_Me(e,r,t,L.createImportEqualsDeclaration(void 0,!1,i.name,L.createExternalModuleReference(t.moduleSpecifier)))),s}function _Me(e,t,r,i){let o=ur.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return Qm(tme,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function zQe(e){let t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=Fn(so(t,e.span.start),s=>s.kind===r);if(!i)return[];let o=i.expression;return hMe(e,o)}function BQe(e){let t=e.sourceFile,r=Fn(so(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?hMe(e,r):[]}function hMe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&ch(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Op(o)||Hr(i,FQe(e,o)),ht(t)&&!(iu(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=ur.ChangeTracker.with(e,d=>d.replaceNode(s,t,L.createPropertyAccessExpression(t,"default"),{}));i.push(Qm(tme,l,f.Use_synthetic_default_member))}return i}var tme,GQe=bt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";ai(),Ta(),tme="invalidImportSyntax",Ea({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:zQe}),Ea({errorCodes:[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_does_not_satisfy_the_constraint_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_predicate_0_is_not_assignable_to_1.code,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:BQe})}});function gMe(e,t){let r=so(e,t);if(Fe(r)&&Uo(r.parent)){let i=yd(r.parent);if(i)return{type:i,prop:r.parent,isJs:ir(r.parent)}}}function VQe(e,t){if(t.isJs)return;let r=ur.ChangeTracker.with(e,i=>yMe(i,e.sourceFile,t.prop));return oa(B$,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],G$,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function yMe(e,t,r){bp(r);let i=L.updatePropertyDeclaration(r,r.modifiers,r.name,L.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function jQe(e,t){let r=ur.ChangeTracker.with(e,i=>vMe(i,e.sourceFile,t));return oa(B$,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],V$,f.Add_undefined_type_to_all_uninitialized_properties)}function vMe(e,t,r){let i=L.createKeywordTypeNode(157),o=Hv(r.type)?r.type.types.concat(i):[r.type,i],s=L.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function UQe(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=EMe(r,t.prop);if(!i)return;let o=ur.ChangeTracker.with(e,s=>bMe(s,e.sourceFile,t.prop,i));return oa(B$,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],j$,f.Add_initializers_to_all_uninitialized_properties)}function bMe(e,t,r,i){bp(r);let o=L.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function EMe(e,t){return SMe(e,e.getTypeFromTypeNode(t.type))}function SMe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?L.createFalse():L.createTrue();if(t.isStringLiteral())return L.createStringLiteral(t.value);if(t.isNumberLiteral())return L.createNumericLiteral(t.value);if(t.flags&2048)return L.createBigIntLiteral(t.value);if(t.isUnion())return Wl(t.types,r=>SMe(e,r));if(t.isClass()){let r=Og(t.symbol);if(!r||$r(r,64))return;let i=Zh(r);return i&&i.parameters.length?void 0:L.createNewExpression(L.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return L.createArrayLiteralExpression()}var B$,G$,V$,j$,nme,HQe=bt({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";ai(),Ta(),B$="strictClassInitialization",G$="addMissingPropertyDefiniteAssignmentAssertions",V$="addMissingPropertyUndefinedType",j$="addMissingPropertyInitializer",nme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Ea({errorCodes:nme,getCodeActions:function(t){let r=gMe(t.sourceFile,t.span.start);if(!r)return;let i=[];return Tn(i,jQe(t,r)),Tn(i,VQe(t,r)),Tn(i,UQe(t,r)),i},fixIds:[G$,V$,j$],getAllCodeActions:e=>gs(e,nme,(t,r)=>{let i=gMe(r.file,r.start);if(i)switch(e.fixId){case G$:yMe(t,r.file,i.prop);break;case V$:vMe(t,r.file,i);break;case j$:let o=e.program.getTypeChecker(),s=EMe(o,i.prop);if(!s)return;bMe(t,r.file,i.prop,s);break;default:x.fail(JSON.stringify(e.fixId))}})})}});function TMe(e,t,r){let{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:d}=r;e.replaceNode(t,l,o&&!i?L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(d)):L.createImportDeclaration(void 0,L.createImportClause(!1,o,s),d,void 0))}function AMe(e,t,r){let{parent:i}=so(e,r);bu(i,!0)||x.failBadSyntaxKind(i);let o=na(i.parent,wi),s=ri(o.name,Fe),l=tm(o.name)?KQe(o.name):void 0;if(s||l)return{allowSyntheticDefaults:RT(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:na(o.parent.parent,Ml),required:Va(i.arguments)}}function KQe(e){let t=[];for(let r of e.elements){if(!Fe(r.name)||r.initializer)return;t.push(L.createImportSpecifier(!1,ri(r.propertyName,Fe),r.name))}if(t.length)return L.createNamedImports(t)}var U$,rme,JQe=bt({"src/services/codefixes/requireInTs.ts"(){"use strict";ai(),Ta(),U$="requireInTs",rme=[f.require_call_may_be_converted_to_an_import.code],Ea({errorCodes:rme,getCodeActions(e){let t=AMe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=ur.ChangeTracker.with(e,i=>TMe(i,e.sourceFile,t));return[oa(U$,r,f.Convert_require_to_import,U$,f.Convert_all_require_to_import)]},fixIds:[U$],getAllCodeActions:e=>gs(e,rme,(t,r)=>{let i=AMe(r.file,e.program,r.start);i&&TMe(t,e.sourceFile,i)})})}});function IMe(e,t){let r=so(e,t);if(!Fe(r))return;let{parent:i}=r;if(td(i)&&vh(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Xv(i)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function xMe(e,t,r,i){e.replaceNode(t,r.importNode,Hy(r.name,void 0,r.moduleSpecifier,of(t,i)))}var H$,ime,qQe=bt({"src/services/codefixes/useDefaultImport.ts"(){"use strict";ai(),Ta(),H$="useDefaultImport",ime=[f.Import_may_be_converted_to_a_default_import.code],Ea({errorCodes:ime,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=IMe(t,r);if(!i)return;let o=ur.ChangeTracker.with(e,s=>xMe(s,t,i,e.preferences));return[oa(H$,o,f.Convert_to_default_import,H$,f.Convert_all_to_default_imports)]},fixIds:[H$],getAllCodeActions:e=>gs(e,ime,(t,r)=>{let i=IMe(r.file,r.start);i&&xMe(t,r.file,i,e.preferences)})})}});function RMe(e,t,r){let i=ri(so(t,r.start),mp);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(o))}var K$,ome,XQe=bt({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";ai(),Ta(),K$="useBigintLiteral",ome=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Ea({errorCodes:ome,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>RMe(i,t.sourceFile,t.span));if(r.length>0)return[oa(K$,r,f.Convert_to_a_bigint_numeric_literal,K$,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[K$],getAllCodeActions:e=>gs(e,ome,(t,r)=>RMe(t,r.file,r))})}});function DMe(e,t){let r=so(e,t);return x.assert(r.kind===102,"This token should be an ImportKeyword"),x.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function CMe(e,t,r){let i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var NMe,J$,ame,YQe=bt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";ai(),Ta(),NMe="fixAddModuleReferTypeMissingTypeof",J$=NMe,ame=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Ea({errorCodes:ame,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=DMe(r,i.start),s=ur.ChangeTracker.with(t,l=>CMe(l,r,o));return[oa(J$,s,f.Add_missing_typeof,J$,f.Add_missing_typeof)]},fixIds:[J$],getAllCodeActions:e=>gs(e,ame,(t,r)=>CMe(t,e.sourceFile,DMe(r.file,r.start)))})}});function PMe(e,t){let o=so(e,t).parent.parent;if(!(!dr(o)&&(o=o.parent,!dr(o)))&&Fl(o.operatorToken))return o}function MMe(e,t,r){let i=$Qe(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function $Qe(e){let t=[],r=e;for(;;)if(dr(r)&&Fl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),c2(r.right))return t.push(r.right),t;if(dr(r.right)){r=r.right;continue}else return}else return}var q$,sme,QQe=bt({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";ai(),Ta(),q$="wrapJsxInFragment",sme=[f.JSX_expressions_must_have_one_parent_element.code],Ea({errorCodes:sme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=PMe(r,i.start);if(!o)return;let s=ur.ChangeTracker.with(t,l=>MMe(l,r,o));return[oa(q$,s,f.Wrap_in_JSX_fragment,q$,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[q$],getAllCodeActions:e=>gs(e,sme,(t,r)=>{let i=PMe(e.sourceFile,r.start);i&&MMe(t,e.sourceFile,i)})})}});function LMe(e,t){let r=so(e,t),i=ri(r.parent.parent,G0);if(!i)return;let o=pu(i.parent)?i.parent:ri(i.parent.parent,Tm);if(o)return{indexSignature:i,container:o}}function ZQe(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function kMe(e,t,{indexSignature:r,container:i}){let s=(pu(i)?i.members:i.type.members).filter(m=>!G0(m)),l=Va(r.parameters),d=L.createTypeParameterDeclaration(void 0,na(l.name,Fe),l.type),p=L.createMappedTypeNode(CN(r)?L.createModifier(148):void 0,d,void 0,r.questionToken,r.type,void 0),h=L.createIntersectionTypeNode([...bN(i),p,...s.length?[L.createTypeLiteralNode(s)]:Xe]);e.replaceNode(t,i,ZQe(i,h))}var X$,lme,eZe=bt({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";ai(),Ta(),X$="fixConvertToMappedObjectType",lme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Ea({errorCodes:lme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=LMe(r,i.start);if(!o)return;let s=ur.ChangeTracker.with(t,d=>kMe(d,r,o)),l=gr(o.container.name);return[oa(X$,s,[f.Convert_0_to_mapped_object_type,l],X$,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[X$],getAllCodeActions:e=>gs(e,lme,(t,r)=>{let i=LMe(r.file,r.start);i&&kMe(t,r.file,i)})})}}),cme,wMe,tZe=bt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";ai(),Ta(),cme="removeAccidentalCallParentheses",wMe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Ea({errorCodes:wMe,getCodeActions(e){let t=Fn(so(e.sourceFile,e.span.start),ia);if(!t)return;let r=ur.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Qm(cme,r,f.Remove_parentheses)]},fixIds:[cme]})}});function OMe(e,t,r){let i=ri(so(t,r.start),d=>d.kind===135),o=i&&ri(i.parent,Jv);if(!o)return;let s=o;if(Ou(o.parent)){let d=gR(o.expression,!1);if(Fe(d)){let p=Tc(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var Y$,dme,nZe=bt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";ai(),Ta(),Y$="removeUnnecessaryAwait",dme=[f.await_has_no_effect_on_the_type_of_this_expression.code],Ea({errorCodes:dme,getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>OMe(i,t.sourceFile,t.span));if(r.length>0)return[oa(Y$,r,f.Remove_unnecessary_await,Y$,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[Y$],getAllCodeActions:e=>gs(e,dme,(t,r)=>OMe(t,r.file,r))})}});function WMe(e,t){return Fn(so(e,t.start),Lc)}function FMe(e,t,r){if(!t)return;let i=x.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,L.updateImportDeclaration(t,t.modifiers,L.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,L.createImportDeclaration(void 0,L.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var ume,$$,rZe=bt({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";ai(),Ta(),ume=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],$$="splitTypeOnlyImport",Ea({errorCodes:ume,fixIds:[$$],getCodeActions:function(t){let r=ur.ChangeTracker.with(t,i=>FMe(i,WMe(t.sourceFile,t.span),t));if(r.length)return[oa($$,r,f.Split_into_two_separate_import_declarations,$$,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>gs(e,ume,(t,r)=>{FMe(t,WMe(e.sourceFile,r),e)})})}});function zMe(e,t,r){var i;let s=r.getTypeChecker().getSymbolAtLocation(so(e,t));if(s===void 0)return;let l=ri((i=s?.valueDeclaration)==null?void 0:i.parent,Uc);if(l===void 0)return;let d=_s(l,87,e);if(d!==void 0)return{symbol:s,token:d}}function BMe(e,t,r){e.replaceNode(t,r,L.createToken(121))}var Q$,pme,iZe=bt({"src/services/codefixes/convertConstToLet.ts"(){"use strict";ai(),Ta(),Q$="fixConvertConstToLet",pme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Ea({errorCodes:pme,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=zMe(r,i.start,o);if(s===void 0)return;let l=ur.ChangeTracker.with(t,d=>BMe(d,r,s.token));return[upe(Q$,l,f.Convert_const_to_let,Q$,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return ED(ur.ChangeTracker.with(e,i=>{SD(e,pme,o=>{let s=zMe(o.file,o.start,t);if(s&&Em(r,ba(s.symbol)))return BMe(i,o.file,s.token)})}))},fixIds:[Q$]})}});function GMe(e,t,r){let i=so(e,t);return i.kind===27&&i.parent&&(Ma(i.parent)||uu(i.parent))?{node:i}:void 0}function VMe(e,t,{node:r}){let i=L.createToken(28);e.replaceNode(t,r,i)}var Z$,jMe,fme,oZe=bt({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";ai(),Ta(),Z$="fixExpectedComma",jMe=f._0_expected.code,fme=[jMe],Ea({errorCodes:fme,getCodeActions(e){let{sourceFile:t}=e,r=GMe(t,e.span.start,e.errorCode);if(!r)return;let i=ur.ChangeTracker.with(e,o=>VMe(o,t,r));return[oa(Z$,i,[f.Change_0_to_1,";",","],Z$,[f.Change_0_to_1,";",","])]},fixIds:[Z$],getAllCodeActions:e=>gs(e,fme,(t,r)=>{let i=GMe(r.file,r.start,r.code);i&&VMe(t,e.sourceFile,i)})})}});function UMe(e,t,r,i,o){let s=so(t,r.start);if(!Fe(s)||!ia(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;let l=i.getTypeChecker(),d=l.getSymbolAtLocation(s),p=d?.valueDeclaration;if(!p||!Ao(p)||!j0(p.parent.parent)||o?.has(p))return;o?.add(p);let h=aZe(p.parent.parent);if(gt(h)){let m=h[0],y=!Hv(m)&&!NT(m)&&NT(L.createUnionTypeNode([m,L.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,y?") | void":" | void")}else{let m=l.getResolvedSignature(s.parent),y=m?.parameters[0],E=y&&l.getTypeOfSymbolAtLocation(y,p.parent.parent);ir(p)?(!E||E.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,Na(t.text,p.parent.parent.pos),"/** @type {Promise} */(")):(!E||E.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"")}}function aZe(e){var t;if(ir(e)){if(Ou(e.parent)){let r=(t=tE(e.parent))==null?void 0:t.typeExpression.type;if(r&&If(r)&&Fe(r.typeName)&&gr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var HMe,mme,_me,sZe=bt({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";ai(),Ta(),HMe="addVoidToPromise",mme="addVoidToPromise",_me=[f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Ea({errorCodes:_me,fixIds:[mme],getCodeActions(e){let t=ur.ChangeTracker.with(e,r=>UMe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[oa(HMe,t,f.Add_void_to_Promise_resolved_without_a_value,mme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return gs(e,_me,(t,r)=>UMe(t,r.file,r,e.program,new Set))}})}}),Od={};xa(Od,{PreserveOptionalFlags:()=>Zfe,addNewNodeForMemberSymbol:()=>iMe,codeFixAll:()=>gs,createCodeFixAction:()=>oa,createCodeFixActionMaybeFixAll:()=>upe,createCodeFixActionWithoutFixAll:()=>Qm,createCombinedCodeActions:()=>ED,createFileTextChanges:()=>oCe,createImportAdder:()=>x1,createImportSpecifierResolver:()=>_Ye,createJsonPropertyAssignment:()=>z$,createMissingMemberNodes:()=>Hfe,createSignatureDeclarationFromCallExpression:()=>Kfe,createSignatureDeclarationFromSignature:()=>W$,createStubbedBody:()=>aB,eachDiagnostic:()=>SD,findAncestorMatchingSpan:()=>Qfe,findJsonProperty:()=>$fe,generateAccessorFromProperty:()=>dMe,getAccessorConvertiblePropertyAtPosition:()=>fMe,getAllFixes:()=>Hqe,getAllSupers:()=>eme,getArgumentTypesAndTypeParameters:()=>sMe,getFixes:()=>Uqe,getImportCompletionAction:()=>hYe,getImportKind:()=>Bpe,getJSDocTypedefNodes:()=>dYe,getNoopSymbolTrackerWithResolver:()=>AD,getPromoteTypeOnlyCompletionAction:()=>gYe,getSupportedErrorCodes:()=>Vqe,importFixName:()=>Jpe,importSymbols:()=>ID,moduleSpecifierToValidIdentifier:()=>Kpe,moduleSymbolToValidIdentifier:()=>Hpe,parameterShouldGetTypeFromJSDoc:()=>ICe,registerCodeFix:()=>Ea,setJsonCompilerOptionValue:()=>Yfe,setJsonCompilerOptionValues:()=>Xfe,tryGetAutoImportableReferenceFromTypeNode:()=>D1,typeToAutoImportableTypeNode:()=>F$});var Ta=bt({"src/services/_namespaces/ts.codefix.ts"(){"use strict";Kqe(),Jqe(),qqe(),$qe(),nXe(),aXe(),sXe(),lXe(),cXe(),fXe(),TXe(),IXe(),OXe(),eYe(),tYe(),rYe(),iYe(),uYe(),pYe(),mYe(),WYe(),BYe(),jYe(),UYe(),HYe(),qYe(),$Ye(),e$e(),o$e(),_$e(),g$e(),T$e(),A$e(),x$e(),R$e(),D$e(),C$e(),P$e(),M$e(),L$e(),k$e(),w$e(),W$e(),B$e(),U$e(),Z$e(),tQe(),nQe(),oQe(),aQe(),lQe(),cQe(),gQe(),yQe(),vQe(),IQe(),WQe(),GQe(),HQe(),JQe(),qQe(),XQe(),YQe(),QQe(),eZe(),tZe(),nZe(),rZe(),iZe(),oZe(),sZe()}});function lZe(e){return!!(e.kind&1)}function cZe(e){return!!(e.kind&2)}function sB(e){return!!(e&&e.kind&4)}function uM(e){return!!(e&&e.kind===32)}function dZe(e){return sB(e)||uM(e)||hme(e)}function uZe(e){return(sB(e)||uM(e))&&!!e.isFromPackageJson}function pZe(e){return!!(e.kind&8)}function fZe(e){return!!(e.kind&16)}function KMe(e){return!!(e&&e.kind&64)}function JMe(e){return!!(e&&e.kind&128)}function mZe(e){return!!(e&&e.kind&256)}function hme(e){return!!(e&&e.kind&512)}function qMe(e,t,r,i,o,s,l,d,p){var h,m,y;let E=Hs(),S=l||OI(du(i.getCompilerOptions())),A=!1,N=0,D=0,w=0,j=0,K=p({tryResolve:B,skippedAny:()=>A,resolvedAny:()=>D>0,resolvedBeyondLimit:()=>D>cQ}),Y=j?` (${(w/j*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${D} module specifiers, plus ${N} ambient and ${w} from cache${Y}`),(m=t.log)==null||m.call(t,`${e}: response is ${A?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${Hs()-E}`),K;function B(ce,z){if(z){let q=r.getModuleSpecifierForBestExportInfo(ce,o,d);return q&&N++,q||"failed"}let Z=S||s.allowIncompleteCompletions&&D{let A=to(p.entries,N=>{var D;if(!N.hasAction||!N.source||!N.data||XMe(N.data))return N;if(!bLe(N.name,m))return;let{origin:w}=x.checkDefined(sLe(N.name,N.data,i,o)),j=y.get(t.path,N.data.exportMapKey),K=j&&S.tryResolve(j,!Yc(Yf(w.moduleSymbol.name)));if(K==="skipped")return N;if(!K||K==="failed"){(D=o.log)==null||D.call(o,`Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`);return}let Y={...w,kind:32,moduleSpecifier:K.moduleSpecifier};return N.data=rLe(Y),N.source=vme(Y),N.sourceDisplay=[af(Y.moduleSpecifier)],N});return S.skippedAny()||(p.isIncomplete=void 0),A});return p.entries=E,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=ZMe(h),p}function gme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function YMe(e,t,r,i,o,s){let l=so(e,t);if(!Bx(l)&&!Xm(l))return[];let d=Xm(l)?l:l.parent;if(!Xm(d))return[];let p=d.parent;if(!$o(p))return[];let h=su(e),m=o.includeCompletionsWithSnippetText||void 0,y=yv(d.tags,E=>Ym(E)&&E.getEnd()<=t);return to(p.parameters,E=>{if(!kx(E).length){if(Fe(E.name)){let S={tabstop:1},A=E.name.text,N=zO(A,E.initializer,E.dotDotDotToken,h,!1,!1,r,i,o),D=m?zO(A,E.initializer,E.dotDotDotToken,h,!1,!0,r,i,o,S):void 0;return s&&(N=N.slice(1),D&&(D=D.slice(1))),{name:N,kind:"parameter",sortText:Wd.LocationPriority,insertText:m?D:void 0,isSnippet:m}}else if(E.parent.parameters.indexOf(E)===y){let S=`param${y}`,A=$Me(S,E.name,E.initializer,E.dotDotDotToken,h,!1,r,i,o),N=m?$Me(S,E.name,E.initializer,E.dotDotDotToken,h,!0,r,i,o):void 0,D=A.join(wy(i)+"* "),w=N?.join(wy(i)+"* ");return s&&(D=D.slice(1),w&&(w=w.slice(1))),{name:D,kind:"parameter",sortText:Wd.LocationPriority,insertText:m?w:void 0,isSnippet:m}}}})}function $Me(e,t,r,i,o,s,l,d,p){if(!o)return[zO(e,r,i,o,!1,s,l,d,p,{tabstop:1})];return h(e,t,r,i,{tabstop:1});function h(y,E,S,A,N){if(tm(E)&&!A){let w={tabstop:N.tabstop},j=zO(y,S,A,o,!0,s,l,d,p,w),K=[];for(let Y of E.elements){let B=m(y,Y,w);if(B)K.push(...B);else{K=void 0;break}}if(K)return N.tabstop=w.tabstop,[j,...K]}return[zO(y,S,A,o,!1,s,l,d,p,N)]}function m(y,E,S){if(!E.propertyName&&Fe(E.name)||Fe(E.name)){let A=E.propertyName?pN(E.propertyName):E.name.text;if(!A)return;let N=`${y}.${A}`;return[zO(N,E.initializer,E.dotDotDotToken,o,!1,s,l,d,p,S)]}else if(E.propertyName){let A=pN(E.propertyName);return A&&h(`${y}.${A}`,E.name,E.initializer,E.dotDotDotToken,S)}}}function zO(e,t,r,i,o,s,l,d,p,h){if(s&&x.assertIsDefined(h),t&&(e=gZe(e,t)),s&&(e=z0(e)),i){let m="*";if(o)x.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){let S=l.getTypeAtLocation(t.parent);if(!(S.flags&16385)){let A=t.getSourceFile(),D=of(A,p)===0?268435456:0,w=l.typeToTypeNode(S,Fn(t,$o),D);if(w){let j=s?nQ({removeComments:!0,module:d.module,target:d.target}):AE({removeComments:!0,module:d.module,target:d.target});lr(w,1),m=j.printNode(4,w,A)}}}s&&m==="*"&&(m=`\${${h.tabstop++}:${m}}`)}let y=!o&&r?"...":"",E=s?`\${${h.tabstop++}}`:"";return`@param {${y}${m}} ${e} ${E}`}else{let m=s?`\${${h.tabstop++}}`:"";return`@param ${e} ${m}`}}function gZe(e,t){let r=t.getText().trim();return r.includes(` `)||r.length>80?`[${e}]`:`[${e}=${r}]`}function yZe(e){return{name:da(e),kind:"keyword",kindModifiers:"",sortText:Wd.GlobalsOrKeywords}}function vZe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function QMe(e,t,r){return{kind:4,keywordCompletions:lLe(e,t),isNewIdentifierLocation:r}}function bZe(e){switch(e){case 156:return 8;default:x.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function ZMe(e){return e?.kind===80?Iu(e):void 0}function EZe(e,t,r,i,o,s,l,d,p,h){let{symbols:m,contextToken:y,completionKind:E,isInSnippetScope:S,isNewIdentifierLocation:A,location:N,propertyAccessToConvert:D,keywordFilters:w,symbolToOriginInfoMap:j,recommendedCompletion:K,isJsxInitializer:Y,isTypeOnlyLocation:B,isJsxIdentifierExpected:ce,isRightOfOpenTag:z,isRightOfDotOrQuestionDot:Z,importStatementCompletion:me,insideJsDocTagTypeExpression:ge,symbolToSortTextMap:q,hasUnresolvedAutoImports:J}=s,re=s.literals,pe=r.getTypeChecker();if(ik(e.scriptKind)===1){let Ge=TZe(N,e);if(Ge)return Ge}let xe=Fn(y,MR);if(xe&&(cae(y)||C0(y,xe.expression))){let Ge=h7(pe,xe.parent.clauses);re=re.filter(ve=>!Ge.hasValue(ve)),m.forEach((ve,Ae)=>{if(ve.valueDeclaration&&Y0(ve.valueDeclaration)){let De=pe.getConstantValue(ve.valueDeclaration);De!==void 0&&Ge.hasValue(De)&&(j[Ae]={kind:256})}})}let fe=kG(),ne=eLe(e,i);if(ne&&!A&&(!m||m.length===0)&&w===0)return;let he=bme(m,fe,void 0,y,N,p,e,t,r,ns(i),o,E,l,i,d,B,D,ce,Y,me,K,j,q,ce,z,h);if(w!==0)for(let Ge of lLe(w,!ge&&su(e)))(B&&YP(g0(Ge.name))||!B&&iet(Ge.name)||!he.has(Ge.name))&&(he.add(Ge.name),vv(fe,Ge,lB,!0));for(let Ge of HZe(y,p))he.has(Ge.name)||(he.add(Ge.name),vv(fe,Ge,lB,!0));for(let Ge of re){let ve=IZe(e,l,Ge);he.add(ve.name),vv(fe,ve,lB,!0)}ne||AZe(e,N.pos,he,ns(i),fe);let Ce;if(l.includeCompletionsWithInsertText&&y&&!z&&!Z&&(Ce=Fn(y,pP))){let Ge=tLe(Ce,e,l,i,t,r,d);Ge&&fe.push(Ge.entry)}return{flags:s.flags,isGlobalCompletion:S,isIncomplete:l.allowIncompleteCompletions&&J?!0:void 0,isMemberCompletion:SZe(E),isNewIdentifierLocation:A,optionalReplacementSpan:ZMe(N),entries:fe}}function eLe(e,t){return!su(e)||!!ck(e,t)}function tLe(e,t,r,i,o,s,l){let d=e.clauses,p=s.getTypeChecker(),h=p.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&oo(h.types,m=>m.isLiteral())){let m=h7(p,d),y=ns(i),E=of(t,r),S=Od.createImportAdder(t,s,r,o),A=[];for(let B of h.types)if(B.flags&1024){x.assert(B.symbol,"An enum member type should have a symbol"),x.assert(B.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let ce=B.symbol.valueDeclaration&&p.getConstantValue(B.symbol.valueDeclaration);if(ce!==void 0){if(m.hasValue(ce))continue;m.addValue(ce)}let z=Od.typeToAutoImportableTypeNode(p,S,B,e,y);if(!z)return;let Z=eQ(z,y,E);if(!Z)return;A.push(Z)}else if(!m.hasValue(B.value))switch(typeof B.value){case"object":A.push(B.value.negative?L.createPrefixUnaryExpression(41,L.createBigIntLiteral({negative:!1,base10Value:B.value.base10Value})):L.createBigIntLiteral(B.value));break;case"number":A.push(B.value<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-B.value)):L.createNumericLiteral(B.value));break;case"string":A.push(L.createStringLiteral(B.value,E===0));break}if(A.length===0)return;let N=mn(A,B=>L.createCaseClause(B,[])),D=Ky(o,l?.options),w=nQ({removeComments:!0,module:i.module,target:i.target,newLine:pO(D)}),j=l?B=>w.printAndFormatNode(4,B,t,l):B=>w.printNode(4,B,t),K=mn(N,(B,ce)=>r.includeCompletionsWithSnippetText?`${j(B)}$${ce+1}`:`${j(B)}`).join(D);return{entry:{name:`${w.printNode(4,N[0],t)} ...`,kind:"",sortText:Wd.GlobalsOrKeywords,insertText:K,hasAction:S.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:S}}}function eQ(e,t,r){switch(e.kind){case 183:let i=e.typeName;return tQ(i,t,r);case 199:let o=eQ(e.objectType,t,r),s=eQ(e.indexType,t,r);return o&&s&&L.createElementAccessExpression(o,s);case 201:let l=e.literal;switch(l.kind){case 11:return L.createStringLiteral(l.text,r===0);case 9:return L.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:let d=eQ(e.type,t,r);return d&&(Fe(d)?d:L.createParenthesizedExpression(d));case 186:return tQ(e.exprName,t,r);case 205:x.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function tQ(e,t,r){if(Fe(e))return e;let i=Vi(e.right.escapedText);return _U(i,t)?L.createPropertyAccessExpression(tQ(e.left,t,r),i):L.createElementAccessExpression(tQ(e.left,t,r),L.createStringLiteral(i,r===0))}function SZe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function TZe(e,t){let r=Fn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){let i=!!_s(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),d=Iu(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:Wd.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:d,entries:[p]}}}function AZe(e,t,r,i,o){gY(e).forEach((s,l)=>{if(s===t)return;let d=Vi(l);!r.has(d)&&Yp(d,i)&&(r.add(d),vv(o,{name:d,kind:"warning",kindModifiers:"",sortText:Wd.JavascriptIdentifiers,isFromUncheckedFile:!0},lB))})}function yme(e,t,r){return typeof r=="object"?W0(r)+"n":No(r)?nM(e,t,r):JSON.stringify(r)}function IZe(e,t,r){return{name:yme(e,t,r),kind:"string",kindModifiers:"",sortText:Wd.LocationPriority}}function xZe(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce,z){var Z,me;let ge,q,J=Oq(r),re,pe,xe=vme(y),fe,ne,he,Ce=p.getTypeChecker(),Ge=y&&fZe(y),ve=y&&cZe(y)||m;if(y&&lZe(y))ge=m?`this${Ge?"?.":""}[${iLe(l,j,h)}]`:`this${Ge?"?.":"."}${h}`;else if((ve||Ge)&&S){ge=ve?m?`[${iLe(l,j,h)}]`:`[${h}]`:h,(Ge||S.questionDotToken)&&(ge=`?.${ge}`);let De=_s(S,25,l)||_s(S,29,l);if(!De)return;let Le=ao(h,S.name.text)?S.name.end:De.end;J=dc(De.getStart(l),Le)}if(A&&(ge===void 0&&(ge=h),ge=`{${ge}}`,typeof A!="boolean"&&(J=Iu(A,l))),y&&pZe(y)&&S){ge===void 0&&(ge=h);let De=Tc(S.pos,l),Le="";De&&a7(De.end,De.parent,l)&&(Le=";"),Le+=`(await ${S.expression.getText()})`,ge=m?`${Le}${ge}`:`${Le}${Ge?"?.":"."}${ge}`;let be=ri(S.parent,Jv)?S.parent:S.expression;J=dc(be.getStart(l),S.end)}if(uM(y)&&(fe=[af(y.moduleSpecifier)],N&&({insertText:ge,replacementSpan:J}=LZe(h,N,y,D,l,w,j),pe=j.includeCompletionsWithSnippetText?!0:void 0)),y?.kind===64&&(ne=!0),K===0&&i&&((Z=Tc(i.pos,l,i))==null?void 0:Z.kind)!==28&&(Ul(i.parent.parent)||Qp(i.parent.parent)||hp(i.parent.parent)||By(i.parent)||((me=Fn(i.parent,mc))==null?void 0:me.getLastToken(l))===i||Zu(i.parent)&&hs(l,i.getEnd()).line!==hs(l,s).line)&&(xe="ObjectLiteralMemberWithComma/",ne=!0),j.includeCompletionsWithClassMemberSnippets&&j.includeCompletionsWithInsertText&&K===3&&RZe(e,o,l)){let De,Le=nLe(d,p,w,j,h,e,o,s,i,Y);if(Le)({insertText:ge,filterText:q,isSnippet:pe,importAdder:De}=Le),De?.hasFixes()&&(ne=!0,xe="ClassMemberSnippet/");else return}if(y&&JMe(y)&&({insertText:ge,isSnippet:pe,labelDetails:he}=y,j.useLabelDetailsInCompletionEntries||(h=h+he.detail,he=void 0),xe="ObjectLiteralMethodSnippet/",t=Wd.SortBelow(t)),B&&!ce&&j.includeCompletionsWithSnippetText&&j.jsxAttributeCompletionStyle&&j.jsxAttributeCompletionStyle!=="none"&&!(M_(o.parent)&&o.parent.initializer)){let De=j.jsxAttributeCompletionStyle==="braces",Le=Ce.getTypeOfSymbolAtLocation(e,o);j.jsxAttributeCompletionStyle==="auto"&&!(Le.flags&528)&&!(Le.flags&1048576&&Vr(Le.types,Et=>!!(Et.flags&528)))&&(Le.flags&402653316||Le.flags&1048576&&oo(Le.types,Et=>!!(Et.flags&402686084||cde(Et)))?(ge=`${z0(h)}=${nM(l,j,"$1")}`,pe=!0):De=!0),De&&(ge=`${z0(h)}={$1}`,pe=!0)}if(ge!==void 0&&!j.includeCompletionsWithInsertText)return;(sB(y)||uM(y))&&(re=rLe(y),ne=!N);let Ae=Fn(o,E6);if(Ae?.kind===275){let De=g0(h);Ae&&De&&(De===135||Ij(De))&&(ge=`${h} as ${h}_`)}return{name:h,kind:Xy.getSymbolKind(Ce,e,o),kindModifiers:Xy.getSymbolModifiers(Ce,e),sortText:t,source:xe,hasAction:ne?!0:void 0,isRecommended:kZe(e,E,Ce)||void 0,insertText:ge,filterText:q,replacementSpan:J,sourceDisplay:fe,labelDetails:he,isSnippet:pe,isPackageJsonImport:uZe(y)||void 0,isImportStatementCompletion:!!N||void 0,data:re,...z?{symbol:e}:void 0}}function RZe(e,t,r){return ir(t)?!1:!!(e.flags&106500)&&(ci(t)||t.parent&&t.parent.parent&&$c(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ci(t.parent.parent)||t.parent&&OR(t)&&ci(t.parent))}function nLe(e,t,r,i,o,s,l,d,p,h){let m=Fn(l,ci);if(!m)return;let y,E=o,S=o,A=t.getTypeChecker(),N=l.getSourceFile(),D=nQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:pO(Ky(e,h?.options))}),w=Od.createImportAdder(N,t,i,e),j;if(i.includeCompletionsWithSnippetText){y=!0;let me=L.createEmptyStatement();j=L.createBlock([me],!0),UU(me,{kind:0,order:0})}else j=L.createBlock([],!0);let K=0,{modifiers:Y,range:B,decorators:ce}=DZe(p,N,d),z=Y&64&&m.modifierFlagsCache&64,Z=[];if(Od.addNewNodeForMemberSymbol(s,m,N,{program:t,host:e},i,w,me=>{let ge=0;z&&(ge|=64),$c(me)&&A.getMemberOverrideModifierStatus(m,me,s)===1&&(ge|=16),Z.length||(K=me.modifierFlagsCache|ge),me=L.replaceModifiers(me,K),Z.push(me)},j,Od.PreserveOptionalFlags.Property,!!z),Z.length){let me=s.flags&8192,ge=K|16|1;me?ge|=1024:ge|=136;let q=Y≥if(Y&~ge)return;if(K&4&&q&1&&(K&=-5),q!==0&&!(q&1)&&(K&=-2),K|=q,Z=Z.map(re=>L.replaceModifiers(re,K)),ce?.length){let re=Z[Z.length-1];GT(re)&&(Z[Z.length-1]=L.replaceDecoratorsAndModifiers(re,ce.concat(y0(re)||[])))}let J=131073;h?E=D.printAndFormatSnippetList(J,L.createNodeArray(Z),N,h):E=D.printSnippetList(J,L.createNodeArray(Z),N)}return{insertText:E,filterText:S,isSnippet:y,importAdder:w,eraseRange:B}}function DZe(e,t,r){if(!e||hs(t,r).line>hs(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s,l={pos:r,end:r};if(Uo(e.parent)&&e.parent.modifiers&&(i|=x_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(bd)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=CZe(e)){let d=MI(s);i&d||(i|=d,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function CZe(e){if(Sa(e))return e.kind;if(Fe(e)){let t=eE(e);if(t&&Dy(t))return t}}function NZe(e,t,r,i,o,s,l,d){let p=l.includeCompletionsWithSnippetText||void 0,h=t,m=r.getSourceFile(),y=PZe(e,r,m,i,o,l);if(!y)return;let E=nQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:pO(Ky(o,d?.options))});d?h=E.printAndFormatSnippetList(80,L.createNodeArray([y],!0),m,d):h=E.printSnippetList(80,L.createNodeArray([y],!0),m);let S=AE({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),A=L.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),N={detail:S.printNode(4,A,m)};return{isSnippet:p,insertText:h,labelDetails:N}}function PZe(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let d=i.getTypeChecker(),p=l[0],h=ol(Po(p),!1),m=d.getWidenedType(d.getTypeOfSymbolAtLocation(e,t)),E=33554432|(of(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let S=m.flags&1048576&&m.types.length<10?d.getUnionType(m.types,2):m;if(S.flags&1048576){let j=jr(S.types,K=>d.getSignaturesOfType(K,0).length>0);if(j.length===1)S=j[0];else return}if(d.getSignaturesOfType(S,0).length!==1)return;let N=d.typeToTypeNode(S,t,E,Od.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!N||!hh(N))return;let D;if(s.includeCompletionsWithSnippetText){let j=L.createEmptyStatement();D=L.createBlock([j],!0),UU(j,{kind:0,order:0})}else D=L.createBlock([],!0);let w=N.parameters.map(j=>L.createParameterDeclaration(void 0,j.dotDotDotToken,j.name,void 0,void 0,j.initializer));return L.createMethodDeclaration(void 0,void 0,h,void 0,void 0,w,void 0,D)}default:return}}function nQ(e){let t,r=ur.createWriter(wy(e)),i=AE(e,r),o={...r,write:E=>s(E,()=>r.write(E)),nonEscapingWrite:r.write,writeLiteral:E=>s(E,()=>r.writeLiteral(E)),writeStringLiteral:E=>s(E,()=>r.writeStringLiteral(E)),writeSymbol:(E,S)=>s(E,()=>r.writeSymbol(E,S)),writeParameter:E=>s(E,()=>r.writeParameter(E)),writeComment:E=>s(E,()=>r.writeComment(E)),writeProperty:E=>s(E,()=>r.writeProperty(E))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:h,printAndFormatNode:y};function s(E,S){let A=z0(E);if(A!==E){let N=r.getTextPos();S();let D=r.getTextPos();t=Tn(t||(t=[]),{newText:A,span:{start:N,length:D-N}})}else S()}function l(E,S,A){let N=d(E,S,A);return t?ur.applyChanges(N,t):N}function d(E,S,A){return t=void 0,o.clear(),i.writeList(E,S,A,o),o.getText()}function p(E,S,A,N){let D={text:d(E,S,A),getLineAndCharacterOfPosition(Y){return hs(this,Y)}},w=_7(N,A),j=va(S,Y=>{let B=ur.assignPositionsToNode(Y);return wc.formatNodeGivenIndentation(B,D,A.languageVariant,0,0,{...N,options:w})}),K=t?vy(Eo(j,t),(Y,B)=>yW(Y.span,B.span)):j;return ur.applyChanges(D.text,K)}function h(E,S,A){let N=m(E,S,A);return t?ur.applyChanges(N,t):N}function m(E,S,A){return t=void 0,o.clear(),i.writeNode(E,S,A,o),o.getText()}function y(E,S,A,N){let D={text:m(E,S,A),getLineAndCharacterOfPosition(B){return hs(this,B)}},w=_7(N,A),j=ur.assignPositionsToNode(S),K=wc.formatNodeGivenIndentation(j,D,A.languageVariant,0,0,{...N,options:w}),Y=t?vy(Eo(K,t),(B,ce)=>yW(B.span,ce.span)):K;return ur.applyChanges(D.text,Y)}}function rLe(e){let t=e.fileName?void 0:Yf(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return uM(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:Yf(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function MZe(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return XMe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function LZe(e,t,r,i,o,s,l){let d=t.replacementSpan,p=z0(nM(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=Od.getImportKind(o,h,s,!0),E=t.couldBeTypeOnlyImportSpecifier,S=t.isTopLevelTypeOnly?` ${da(156)} `:" ",A=E?`${da(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:d,insertText:`import${S}${z0(e)}${m} = require(${p})${N}`};case 1:return{replacementSpan:d,insertText:`import${S}${z0(e)}${m} from ${p}${N}`};case 2:return{replacementSpan:d,insertText:`import${S}* as ${z0(e)} from ${p}${N}`};case 0:return{replacementSpan:d,insertText:`import${S}{ ${A}${z0(e)}${m} } from ${p}${N}`}}}function iLe(e,t,r){return/^\d+$/.test(r)?r:nM(e,t,r)}function kZe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function vme(e){if(sB(e))return Yf(e.moduleSymbol.name);if(uM(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function bme(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce,z,Z,me=!1){let ge=Hs(),q=tet(i,o),J=cO(l),re=p.getTypeChecker(),pe=new Map;for(let ne=0;neze.getSourceFile()===o.getSourceFile()));pe.set(ve,be),vv(t,Et,lB,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Hs()-ge)),{has:ne=>pe.has(ne),add:ne=>pe.set(ne,!0)};function xe(ne,he){var Ce;let Ge=ne.flags;if(!Yi(o)){if(Ll(o.parent))return!0;if(ri(q,wi)&&ne.valueDeclaration===q)return!1;let ve=ne.valueDeclaration??((Ce=ne.declarations)==null?void 0:Ce[0]);if(q&&ve&&(fl(q)&&fl(ve)||Ao(q)&&Ao(ve))){let De=ve.pos,Le=Ao(q)?q.parent.parameters:CT(q.parent)?void 0:q.parent.typeParameters;if(De>=q.pos&&Le&&Deyme(r,l,K)===o.name);return j!==void 0?{type:"literal",literal:j}:Wl(h,(K,Y)=>{let B=S[Y],ce=iQ(K,ns(d),B,E,p.isJsxIdentifierExpected);return ce&&ce.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||vme(B)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:y,origin:B,contextToken:A,previousToken:N,isJsxInitializer:D,isTypeOnlyLocation:w}:void 0})||{type:"none"}}function WZe(e,t,r,i,o,s,l,d,p){let h=e.getTypeChecker(),m=e.getCompilerOptions(),{name:y,source:E,data:S}=o,{previousToken:A,contextToken:N}=rQ(i,r);if(y1(r,i,A))return uQ.getStringLiteralCompletionDetails(y,r,i,A,e,s,p,d);let D=oLe(e,t,r,i,o,s,d);switch(D.type){case"request":{let{request:w}=D;switch(w.kind){case 1:return PE.getJSDocTagNameCompletionDetails(y);case 2:return PE.getJSDocTagCompletionDetails(y);case 3:return PE.getJSDocParameterNameCompletionDetails(y);case 4:return gt(w.keywordCompletions,j=>j.name===y)?Eme(y,"keyword",5):void 0;default:return x.assertNever(w)}}case"symbol":{let{symbol:w,location:j,contextToken:K,origin:Y,previousToken:B}=D,{codeActions:ce,sourceDisplay:z}=FZe(y,j,K,Y,w,e,s,m,r,i,B,l,d,S,E,p),Z=hme(Y)?Y.symbolName:w.name;return Sme(w,Z,h,r,j,p,ce,z)}case"literal":{let{literal:w}=D;return Eme(yme(r,d,w),"string",typeof w=="string"?8:7)}case"cases":{let w=tLe(N.parent,r,d,e.getCompilerOptions(),s,e,void 0);if(w?.importAdder.hasFixes()){let{entry:j,importAdder:K}=w,Y=ur.ChangeTracker.with({host:s,formatContext:l,preferences:d},K.writeFixes);return{name:j.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Y,description:ZT([f.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Nme().some(w=>w.name===y)?Eme(y,"keyword",5):void 0;default:x.assertNever(D)}}function Eme(e,t,r){return cB(e,"",t,[ep(e,r)])}function Sme(e,t,r,i,o,s,l,d){let{displayParts:p,documentation:h,symbolKind:m,tags:y}=r.runWithCancellationToken(s,E=>Xy.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return cB(t,Xy.getSymbolModifiers(r,e),m,p,h,y,l,d)}function cB(e,t,r,i,o,s,l,d){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:d,sourceDisplay:d}}function FZe(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N){if(S?.moduleSpecifier&&m&&_Le(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[af(S.moduleSpecifier)]};if(A==="ClassMemberSnippet/"){let{importAdder:ce,eraseRange:z}=nLe(l,s,d,E,e,o,t,h,r,y);if(ce||z)return{sourceDisplay:void 0,codeActions:[{changes:ur.ChangeTracker.with({host:l,formatContext:y,preferences:E},me=>{ce&&ce.writeFixes(me),z&&me.deleteRange(p,z)}),description:ZT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(KMe(i)){let ce=Od.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,y,E);return x.assertIsDefined(ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[ce],sourceDisplay:void 0}}if(A==="ObjectLiteralMemberWithComma/"&&r){let ce=ur.ChangeTracker.with({host:l,formatContext:y,preferences:E},z=>z.insertText(p,r.end,","));if(ce)return{sourceDisplay:void 0,codeActions:[{changes:ce,description:ZT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(sB(i)||uM(i)))return{codeActions:void 0,sourceDisplay:void 0};let D=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:w}=i,j=D.getMergedSymbol(vd(o.exportSymbol||o,D)),K=r?.kind===30&&au(r.parent),{moduleSpecifier:Y,codeAction:B}=Od.getImportCompletionAction(j,w,S?.exportMapKey,p,e,K,l,s,y,m&&Fe(m)?m.getStart(p):h,E,N);return x.assert(!S?.moduleSpecifier||Y===S.moduleSpecifier),{sourceDisplay:[af(Y)],codeActions:[B]}}function zZe(e,t,r,i,o,s,l){let d=oLe(e,t,r,i,o,s,l);return d.type==="symbol"?d.symbol:void 0}function BZe(e,t,r){return Wl(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!Zie(o)?Tme(o,e,r):void 0})}function GZe(e,t,r,i){let{parent:o}=e;switch(e.kind){case 80:return r7(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:let s=ri(o,MR);return s?oX(s,i):void 0;case 19:return fP(o)&&!ig(o.parent)&&!J0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=HO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):i7(e.kind)&&dr(o)&&i7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Tme(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Va(i):e.parent&&(VZe(e.parent)?e:Tme(e.parent,t,r))}function VZe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function aLe(e,t,r,i,o,s,l,d,p,h){let m=e.getTypeChecker(),y=eLe(r,i),E=Hs(),S=so(r,o);t("getCompletionData: Get current token: "+(Hs()-E)),E=Hs();let A=jy(r,o,S);t("getCompletionData: Is inside comment: "+(Hs()-E));let N=!1,D=!1;if(A){if(ade(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{let We=rm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(We,o)))return{kind:2}}}let ue=KZe(S,o);if(ue){if(ue.tagName.pos<=o&&o<=ue.tagName.end)return{kind:1};let We=Zt(ue);if(We&&(S=so(r,o),(!S||!kg(S)&&(S.parent.kind!==355||S.parent.name!==S))&&(N=H(We))),!N&&Ym(ue)&&(Fl(ue.name)||ue.name.pos<=o&&o<=ue.name.end))return{kind:3,tag:ue}}if(!N){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}E=Hs();let w=!N&&su(r),j=rQ(o,r),K=j.previousToken,Y=j.contextToken;t("getCompletionData: Get previous token: "+(Hs()-E));let B=S,ce,z=!1,Z=!1,me=!1,ge=!1,q=!1,J=!1,re,pe=Wu(r,o),xe=0,fe=!1,ne=0;if(Y){let ue=_Le(Y,r);if(ue.keywordCompletion){if(ue.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[yZe(ue.keywordCompletion)],isNewIdentifierLocation:ue.isNewIdentifierLocation};xe=bZe(ue.keywordCompletion)}if(ue.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ne|=2,re=ue,fe=ue.isNewIdentifierLocation),!ue.replacementSpan&&$i(Y))return t("Returning an empty list because completion was requested in an invalid position."),xe?QMe(xe,w,ua()):void 0;let We=Y.parent;if(Y.kind===25||Y.kind===29)switch(z=Y.kind===25,Z=Y.kind===29,We.kind){case 211:ce=We,B=ce.expression;let Ne=hR(ce);if(Fl(Ne)||(ia(B)||$o(B))&&B.end===Y.pos&&B.getChildCount(r)&&Ja(B.getChildren(r)).kind!==22)return;break;case 166:B=We.left;break;case 267:B=We.name;break;case 205:B=We;break;case 236:B=We.getFirstToken(r),x.assert(B.kind===102||B.kind===105);break;default:return}else if(!re){if(We&&We.kind===211&&(Y=We,We=We.parent),S.parent===pe)switch(S.kind){case 32:(S.parent.kind===284||S.parent.kind===286)&&(pe=S);break;case 44:S.parent.kind===285&&(pe=S);break}switch(We.kind){case 287:Y.kind===44&&(ge=!0,pe=Y);break;case 226:if(!mLe(We))break;case 285:case 284:case 286:J=!0,Y.kind===30&&(me=!0,pe=Y);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(J=!0);break;case 291:if(We.initializer===K&&K.endYT(ue?d.getPackageJsonAutoImportProvider():e,d));if(z||Z)en();else if(me)ve=m.getJsxIntrinsicTagNamesAt(pe),x.assertEachIsDefined(ve,"getJsxIntrinsicTagNames() should all be defined"),Xt(),Ce=1,xe=0;else if(ge){let ue=Y.parent.parent.openingElement.tagName,We=m.getSymbolAtLocation(ue);We&&(ve=[We]),Ce=1,xe=0}else if(!Xt())return xe?QMe(xe,w,fe):void 0;t("getCompletionData: Semantic work: "+(Hs()-he));let tt=K&&GZe(K,o,r,m),_t=!ri(K,as)&&!J?to(tt&&(tt.isUnion()?tt.types:[tt]),ue=>ue.isLiteral()&&!(ue.flags&1024)?ue.value:void 0):[],Je=K&&tt&&BZe(K,tt,m);return{kind:0,symbols:ve,completionKind:Ce,isInSnippetScope:D,propertyAccessToConvert:ce,isNewIdentifierLocation:fe,location:pe,keywordFilters:xe,literals:_t,symbolToOriginInfoMap:De,recommendedCompletion:Je,previousToken:K,contextToken:Y,isJsxInitializer:q,insideJsDocTagTypeExpression:N,symbolToSortTextMap:Le,isTypeOnlyLocation:be,isJsxIdentifierExpected:J,isRightOfOpenTag:me,isRightOfDotOrQuestionDot:z||Z,importStatementCompletion:re,hasUnresolvedAutoImports:Ge,flags:ne};function pt(ue){switch(ue.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!ue.constraint;default:return!1}}function Zt(ue){if(pt(ue)){let We=nm(ue)?ue.constraint:ue.typeExpression;return We&&We.kind===316?We:void 0}if(a1(ue)||K4(ue))return ue.class}function en(){Ce=2;let ue=wv(B),We=ue&&!B.isTypeOf||qh(B.parent)||$w(Y,r,m),Ne=Pz(B);if(Xu(B)||ue||kr(B)){let It=ql(B.parent);It&&(fe=!0);let Dt=m.getSymbolAtLocation(B);if(Dt&&(Dt=vd(Dt,m),Dt.flags&1920)){let Ut=m.getExportsOfModule(Dt);x.assertEachIsDefined(Ut,"getExportsOfModule() should all be defined");let En=gi=>m.isValidPropertyAccess(ue?B:B.parent,gi.name),wn=gi=>Ime(gi,m),Bn=It?gi=>{var xi;return!!(gi.flags&1920)&&!((xi=gi.declarations)!=null&&xi.every(er=>er.parent===B.parent))}:Ne?gi=>wn(gi)||En(gi):We||N?wn:En;for(let gi of Ut)Bn(gi)&&ve.push(gi);if(!We&&!N&&Dt.declarations&&Dt.declarations.some(gi=>gi.kind!==312&&gi.kind!==267&&gi.kind!==266)){let gi=m.getTypeOfSymbolAtLocation(Dt,B).getNonOptionalType(),xi=!1;if(gi.isNullableType()){let er=z&&!Z&&s.includeAutomaticOptionalChainCompletions!==!1;(er||Z)&&(gi=gi.getNonNullableType(),er&&(xi=!0))}Dn(gi,!!(B.flags&65536),xi)}return}}if(!We||TT(B)){m.tryGetThisTypeAt(B,!1);let It=m.getTypeAtLocation(B).getNonOptionalType();if(We)Dn(It.getNonNullableType(),!1,!1);else{let Dt=!1;if(It.isNullableType()){let Ut=z&&!Z&&s.includeAutomaticOptionalChainCompletions!==!1;(Ut||Z)&&(It=It.getNonNullableType(),Ut&&(Dt=!0))}Dn(It,!!(B.flags&65536),Dt)}}}function Dn(ue,We,Ne){fe=!!ue.getStringIndexType(),Z&>(ue.getCallSignatures())&&(fe=!0);let It=B.kind===205?B:B.parent;if(y)for(let Dt of ue.getApparentProperties())m.isValidPropertyAccessForCompletions(It,ue,Dt)&&Kn(Dt,!1,Ne);else ve.push(...jr(sQ(ue,m),Dt=>m.isValidPropertyAccessForCompletions(It,ue,Dt)));if(We&&s.includeCompletionsWithInsertText){let Dt=m.getPromisedTypeOfPromise(ue);if(Dt)for(let Ut of Dt.getApparentProperties())m.isValidPropertyAccessForCompletions(It,Dt,Ut)&&Kn(Ut,!0,Ne)}}function Kn(ue,We,Ne){var It;let Dt=Wl(ue.declarations,Bn=>ri(Po(Bn),Ya));if(Dt){let Bn=pn(Dt.expression),gi=Bn&&m.getSymbolAtLocation(Bn),xi=gi&&Tme(gi,Y,m),er=xi&&ba(xi);if(er&&Em(Et,er)){let Fr=ve.length;ve.push(xi);let go=xi.parent;if(!go||!eO(go)||m.tryGetMemberInModuleExportsAndProperties(xi.name,go)!==xi)De[Fr]={kind:wn(2)};else{let Pi=Yc(Yf(go.name))?(It=SF(go))==null?void 0:It.fileName:void 0,{moduleSpecifier:Ri}=(Ae||(Ae=Od.createImportSpecifierResolver(r,e,d,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Pi,isFromPackageJson:!1,moduleSymbol:go,symbol:xi,targetFlags:vd(xi,m).flags}],o,fE(pe))||{};if(Ri){let Kr={kind:wn(6),moduleSymbol:go,isDefaultExport:!1,symbolName:xi.name,exportName:xi.name,fileName:Pi,moduleSpecifier:Ri};De[Fr]=Kr}}}else if(s.includeCompletionsWithInsertText){if(er&&Et.has(er))return;En(ue),Ut(ue),ve.push(ue)}}else En(ue),Ut(ue),ve.push(ue);function Ut(Bn){QZe(Bn)&&(Le[ba(Bn)]=Wd.LocalDeclarationPriority)}function En(Bn){s.includeCompletionsWithInsertText&&(We&&Em(Et,ba(Bn))?De[ve.length]={kind:wn(8)}:Ne&&(De[ve.length]={kind:16}))}function wn(Bn){return Ne?Bn|16:Bn}}function pn(ue){return Fe(ue)?ue:kr(ue)?pn(ue.expression):void 0}function Xt(){return(vn()||kn()||uo()||Be()||ct()||lt()||Kt()||Rt()||hi()||(Li(),1))===1}function Kt(){return ke(Y)?(Ce=5,fe=!0,xe=4,1):0}function hi(){let ue=G(Y),We=ue&&m.getContextualType(ue.attributes);if(!We)return 0;let Ne=ue&&m.getContextualType(ue.attributes,4);return ve=Eo(ve,ie(aQ(We,Ne,ue.attributes,m),ue.attributes.properties)),U(),Ce=3,fe=!1,1}function uo(){return re?(fe=!0,Ye(),1):0}function Li(){xe=st(Y)?5:1,Ce=1,fe=ua(),K!==Y&&x.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");let ue=K!==Y?K.getStart():o,We=yi(Y,ue,r)||r;D=Qn(We);let Ne=(be?0:111551)|788968|1920|2097152,It=K&&!fE(K);ve=Eo(ve,m.getSymbolsInScope(We,Ne)),x.assertEachIsDefined(ve,"getSymbolsInScope() should all be defined");for(let Dt=0;DtEn.getSourceFile()===r)&&(Le[ba(Ut)]=Wd.GlobalsOrKeywords),It&&!(Ut.flags&111551)){let En=Ut.declarations&&Vr(Ut.declarations,e2);if(En){let wn={kind:64,declaration:En};De[Dt]=wn}}}if(s.includeCompletionsWithInsertText&&We.kind!==312){let Dt=m.tryGetThisTypeAt(We,!1,ci(We.parent)?We:void 0);if(Dt&&!$Ze(Dt,r,m))for(let Ut of sQ(Dt,m))De[ve.length]={kind:1},ve.push(Ut),Le[ba(Ut)]=Wd.SuggestedClassMembers}Ye(),be&&(xe=Y&&cT(Y.parent)?6:7)}function So(){return re?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||Gq(e.getCompilerOptions())?!0:pde(e):!1}function Qn(ue){switch(ue.kind){case 312:case 228:case 294:case 241:return!0;default:return Hi(ue)}}function Ur(){return N||!!re&&iE(pe.parent)||!Er(Y)&&($w(Y,r,m)||qh(pe)||on(Y))}function Er(ue){return ue&&(ue.kind===114&&(ue.parent.kind===186||NR(ue.parent))||ue.kind===131&&ue.parent.kind===182)}function on(ue){if(ue){let We=ue.parent.kind;switch(ue.kind){case 59:return We===172||We===171||We===169||We===260||vI(We);case 64:return We===265||We===168;case 130:return We===234;case 30:return We===183||We===216;case 96:return We===168;case 152:return We===238}}return!1}function Ye(){var ue,We;if(!So()||(x.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ne|=1;let It=K===Y&&re?"":K&&Fe(K)?K.text.toLowerCase():"",Dt=(ue=d.getModuleSpecifierCache)==null?void 0:ue.call(d),Ut=fO(r,d,e,s,h),En=(We=d.getPackageJsonAutoImportProvider)==null?void 0:We.call(d),wn=l?void 0:iM(r,s,d);qMe("collectAutoImports",d,Ae||(Ae=Od.createImportSpecifierResolver(r,e,d,s)),e,o,s,!!re,fE(pe),gi=>{Ut.search(r.path,me,(xi,er)=>{if(!Yp(xi,ns(d.getCompilationSettings()))||!l&&CI(xi)||!be&&!re&&!(er&111551)||be&&!(er&790504))return!1;let Fr=xi.charCodeAt(0);return me&&(Fr<65||Fr>90)?!1:l?!0:bLe(xi,It)},(xi,er,Fr,go)=>{if(l&&!gt(xi,Ls=>l.source===Yf(Ls.moduleSymbol.name))||(xi=jr(xi,Bn),!xi.length))return;let Pi=gi.tryResolve(xi,Fr)||{};if(Pi==="failed")return;let Ri=xi[0],Kr;Pi!=="skipped"&&({exportInfo:Ri=xi[0],moduleSpecifier:Kr}=Pi);let xo=Ri.exportKind===1,xn=xo&&mR(Ri.symbol)||Ri.symbol;Ot(xn,{kind:Kr?32:4,moduleSpecifier:Kr,symbolName:er,exportMapKey:go,exportName:Ri.exportKind===2?"export=":Ri.symbol.name,fileName:Ri.moduleFileName,isDefaultExport:xo,moduleSymbol:Ri.moduleSymbol,isFromPackageJson:Ri.isFromPackageJson})}),Ge=gi.skippedAny(),ne|=gi.resolvedAny()?8:0,ne|=gi.resolvedBeyondLimit()?16:0});function Bn(gi){let xi=ri(gi.moduleSymbol.valueDeclaration,Yi);if(!xi){let er=Yf(gi.moduleSymbol.name);return O_.nodeCoreModules.has(er)&&ao(er,"node:")!==m7(r,e)?!1:wn?wn.allowsImportingAmbientModule(gi.moduleSymbol,ze(gi.isFromPackageJson)):!0}return EX(gi.isFromPackageJson?En:e,r,xi,s,wn,ze(gi.isFromPackageJson),Dt)}}function Ot(ue,We){let Ne=ba(ue);Le[Ne]!==Wd.GlobalsOrKeywords&&(De[ve.length]=We,Le[Ne]=re?Wd.LocationPriority:Wd.AutoImportSuggestions,ve.push(ue))}function In(ue,We){ir(pe)||ue.forEach(Ne=>{if(!si(Ne))return;let It=iQ(Ne,ns(i),void 0,0,!1);if(!It)return;let{name:Dt}=It,Ut=NZe(Ne,Dt,We,e,d,i,s,p);if(!Ut)return;let En={kind:128,...Ut};ne|=32,De[ve.length]=En,ve.push(Ne)})}function si(ue){return!!(ue.flags&8196)}function yi(ue,We,Ne){let It=ue;for(;It&&!Rq(It,We,Ne);)It=It.parent;return It}function $i(ue){let We=Hs(),Ne=Ba(ue)||Tt(ue)||Ft(ue)||Io(ue)||P4(ue);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Hs()-We)),Ne}function Io(ue){if(ue.kind===12)return!0;if(ue.kind===32&&ue.parent){if(pe===ue.parent&&(pe.kind===286||pe.kind===285))return!1;if(ue.parent.kind===286)return pe.parent.kind!==286;if(ue.parent.kind===287||ue.parent.kind===285)return!!ue.parent.parent&&ue.parent.parent.kind===284}return!1}function ua(){if(Y){let ue=Y.parent.kind,We=oQ(Y);switch(We){case 28:return ue===213||ue===176||ue===214||ue===209||ue===226||ue===184||ue===210;case 21:return ue===213||ue===176||ue===214||ue===217||ue===196;case 23:return ue===209||ue===181||ue===167;case 144:case 145:case 102:return!0;case 25:return ue===267;case 19:return ue===263||ue===210;case 64:return ue===260||ue===226;case 16:return ue===228;case 17:return ue===239;case 134:return ue===174||ue===304;case 42:return ue===174}if(dB(We))return!0}return!1}function Ba(ue){return(XU(ue)||DV(ue))&&(qw(ue,o)||o===ue.end&&(!!ue.isUnterminated||XU(ue)))}function vn(){let ue=XZe(Y);if(!ue)return 0;let Ne=(QI(ue.parent)?ue.parent:void 0)||ue,It=fLe(Ne,m);if(!It)return 0;let Dt=m.getTypeFromTypeNode(Ne),Ut=sQ(It,m),En=sQ(Dt,m),wn=new Set;return En.forEach(Bn=>wn.add(Bn.escapedName)),ve=Eo(ve,jr(Ut,Bn=>!wn.has(Bn.escapedName))),Ce=0,fe=!0,1}function kn(){let ue=ve.length,We=jZe(Y,o,r);if(!We)return 0;Ce=0;let Ne,It;if(We.kind===210){let Dt=ZZe(We,m);if(Dt===void 0)return We.flags&67108864?2:0;let Ut=m.getContextualType(We,4),En=(Ut||Dt).getStringIndexType(),wn=(Ut||Dt).getNumberIndexType();if(fe=!!En||!!wn,Ne=aQ(Dt,Ut,We,m),It=We.properties,Ne.length===0&&!wn)return 0}else{x.assert(We.kind===206),fe=!1;let Dt=A_(We.parent);if(!qx(Dt))return x.fail("Root declaration is not variable-like.");let Ut=Mv(Dt)||!!yd(Dt)||Dt.parent.parent.kind===250;if(!Ut&&Dt.kind===169&&(ht(Dt.parent)?Ut=!!m.getContextualType(Dt.parent):(Dt.parent.kind===174||Dt.parent.kind===178)&&(Ut=ht(Dt.parent.parent)&&!!m.getContextualType(Dt.parent.parent))),Ut){let En=m.getTypeAtLocation(We);if(!En)return 2;Ne=m.getPropertiesOfType(En).filter(wn=>m.isPropertyAccessible(We,!1,!1,En,wn)),It=We.elements}}if(Ne&&Ne.length>0){let Dt=dn(Ne,x.checkDefined(It));ve=Eo(ve,Dt),U(),We.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Nt(ue),In(Dt,We))}return 1}function Be(){if(!Y)return 0;let ue=Y.kind===19||Y.kind===28?ri(Y.parent,E6):Jz(Y)?ri(Y.parent.parent,E6):void 0;if(!ue)return 0;Jz(Y)||(xe=8);let{moduleSpecifier:We}=ue.kind===275?ue.parent.parent:ue.parent;if(!We)return fe=!0,ue.kind===275?2:0;let Ne=m.getSymbolAtLocation(We);if(!Ne)return fe=!0,2;Ce=3,fe=!1;let It=m.getExportsAndPropertiesOfModule(Ne),Dt=new Set(ue.elements.filter(En=>!H(En)).map(En=>(En.propertyName||En.name).escapedText)),Ut=It.filter(En=>En.escapedName!=="default"&&!Dt.has(En.escapedName));return ve=Eo(ve,Ut),Ut.length||(xe=0),1}function ct(){if(Y===void 0)return 0;let ue=Y.kind===19||Y.kind===28?ri(Y.parent,n1):Y.kind===59?ri(Y.parent.parent,n1):void 0;if(ue===void 0)return 0;let We=new Set(ue.elements.map(U6));return ve=jr(m.getTypeAtLocation(ue).getApparentProperties(),Ne=>!We.has(Ne.escapedName)),1}function lt(){var ue;let We=Y&&(Y.kind===19||Y.kind===28)?ri(Y.parent,xf):void 0;if(!We)return 0;let Ne=Fn(We,jm(Yi,ql));return Ce=5,fe=!1,(ue=Ne.locals)==null||ue.forEach((It,Dt)=>{var Ut,En;ve.push(It),(En=(Ut=Ne.symbol)==null?void 0:Ut.exports)!=null&&En.has(Dt)&&(Le[ba(It)]=Wd.OptionalMember)}),1}function Rt(){let ue=qZe(r,Y,pe,o);if(!ue)return 0;if(Ce=3,fe=!0,xe=Y.kind===42?0:ci(ue)?2:3,!ci(ue))return 1;let We=Y.kind===27?Y.parent.parent:Y.parent,Ne=$c(We)?lu(We):0;if(Y.kind===80&&!H(Y))switch(Y.getText()){case"private":Ne=Ne|2;break;case"static":Ne=Ne|256;break;case"override":Ne=Ne|16;break}if(Al(We)&&(Ne|=256),!(Ne&2)){let It=ci(ue)&&Ne&16?pI(S_(ue)):bN(ue),Dt=va(It,Ut=>{let En=m.getTypeAtLocation(Ut);return Ne&256?En?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(En.symbol,ue)):En&&m.getPropertiesOfType(En)});ve=Eo(ve,k(Dt,ue.members,Ne)),gn(ve,(Ut,En)=>{let wn=Ut?.valueDeclaration;if(wn&&$c(wn)&&wn.name&&Ya(wn.name)){let Bn={kind:512,symbolName:m.symbolToString(Ut)};De[En]=Bn}})}return 1}function ae(ue){return!!ue.parent&&Ao(ue.parent)&&Pl(ue.parent.parent)&&(oN(ue.kind)||kg(ue))}function ke(ue){if(ue){let We=ue.parent;switch(ue.kind){case 21:case 28:return Pl(ue.parent)?ue.parent:void 0;default:if(ae(ue))return We.parent}}}function st(ue){if(ue){let We,Ne=Fn(ue.parent,It=>ci(It)?"quit":ws(It)&&We===It.body?!0:(We=It,!1));return Ne&&Ne}}function G(ue){if(ue){let We=ue.parent;switch(ue.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(We&&(We.kind===285||We.kind===286)){if(ue.kind===32){let Ne=Tc(ue.pos,r,void 0);if(!We.typeArguments||Ne&&Ne.kind===44)break}return We}else if(We.kind===291)return We.parent.parent;break;case 11:if(We&&(We.kind===291||We.kind===293))return We.parent.parent;break;case 20:if(We&&We.kind===294&&We.parent&&We.parent.kind===291)return We.parent.parent.parent;if(We&&We.kind===293)return We.parent.parent;break}}}function et(ue,We){return r.getLineEndOfPosition(ue.getEnd())=ue.pos;case 25:return Ne===207;case 59:return Ne===208;case 23:return Ne===207;case 21:return Ne===299||ut(Ne);case 19:return Ne===266;case 30:return Ne===263||Ne===231||Ne===264||Ne===265||vI(Ne);case 126:return Ne===172&&!ci(We.parent);case 26:return Ne===169||!!We.parent&&We.parent.kind===207;case 125:case 123:case 124:return Ne===169&&!Pl(We.parent);case 130:return Ne===276||Ne===281||Ne===274;case 139:case 153:return!lQ(ue);case 80:{if(Ne===276&&ue===We.name&&ue.text==="type"||Fn(ue.parent,wi)&&et(ue,o))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 Ne!==276;case 42:return $o(ue.parent)&&!Ul(ue.parent)}if(dB(oQ(ue))&&lQ(ue)||ae(ue)&&(!Fe(ue)||oN(oQ(ue))||H(ue)))return!1;switch(oQ(ue)){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 Uo(ue.parent)}if(Fn(ue.parent,ci)&&ue===K&&He(ue,o))return!1;let Dt=dE(ue.parent,172);if(Dt&&ue!==K&&ci(K.parent.parent)&&o<=K.end){if(He(ue,K.end))return!1;if(ue.kind!==64&&(Ew(Dt)||hF(Dt)))return!0}return kg(ue)&&!Zu(ue.parent)&&!M_(ue.parent)&&!((ci(ue.parent)||pu(ue.parent)||fl(ue.parent))&&(ue!==K||o>K.end))}function He(ue,We){return ue.kind!==64&&(ue.kind===27||!Sf(ue.end,We,r))}function ut(ue){return vI(ue)&&ue!==176}function Ft(ue){if(ue.kind===9){let We=ue.getFullText();return We.charAt(We.length-1)==="."}return!1}function hn(ue){return ue.parent.kind===261&&!$w(ue,r,m)}function dn(ue,We){if(We.length===0)return ue;let Ne=new Set,It=new Set;for(let Ut of We){if(Ut.kind!==303&&Ut.kind!==304&&Ut.kind!==208&&Ut.kind!==174&&Ut.kind!==177&&Ut.kind!==178&&Ut.kind!==305||H(Ut))continue;let En;if(By(Ut))un(Ut,Ne);else if(Xa(Ut)&&Ut.propertyName)Ut.propertyName.kind===80&&(En=Ut.propertyName.escapedText);else{let wn=Po(Ut);En=wn&&T_(wn)?TN(wn):void 0}En!==void 0&&It.add(En)}let Dt=ue.filter(Ut=>!It.has(Ut.escapedName));return Me(Ne,Dt),Dt}function un(ue,We){let Ne=ue.expression,It=m.getSymbolAtLocation(Ne),Dt=It&&m.getTypeOfSymbolAtLocation(It,Ne),Ut=Dt&&Dt.properties;Ut&&Ut.forEach(En=>{We.add(En.name)})}function U(){ve.forEach(ue=>{if(ue.flags&16777216){let We=ba(ue);Le[We]=Le[We]??Wd.OptionalMember}})}function Me(ue,We){if(ue.size!==0)for(let Ne of We)ue.has(Ne.name)&&(Le[ba(Ne)]=Wd.MemberDeclaredBySpreadAssignment)}function Nt(ue){for(let We=ue;We!It.has(Dt.escapedName)&&!!Dt.declarations&&!(Tf(Dt)&2)&&!(Dt.valueDeclaration&&ou(Dt.valueDeclaration)))}function ie(ue,We){let Ne=new Set,It=new Set;for(let Ut of We)H(Ut)||(Ut.kind===291?Ne.add($N(Ut.name)):o1(Ut)&&un(Ut,It));let Dt=ue.filter(Ut=>!Ne.has(Ut.escapedName));return Me(It,Dt),Dt}function H(ue){return ue.getStart(r)<=o&&o<=ue.getEnd()}}function jZe(e,t,r){var i;if(e){let{parent:o}=e;switch(e.kind){case 19:case 28:if(Ma(o)||tm(o))return o;break;case 42:return Ul(o)?ri(o.parent,Ma):void 0;case 134:return ri(o.parent,Ma);case 80:if(e.text==="async"&&Zu(e.parent))return e.parent.parent;{if(Ma(e.parent.parent)&&(By(e.parent)||Zu(e.parent)&&hs(r,e.getEnd()).line!==hs(r,t).line))return e.parent.parent;let l=Fn(o,mc);if(l?.getLastToken(r)===e&&Ma(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Ul(o.parent)||Qp(o.parent)||hp(o.parent))&&Ma(o.parent.parent))return o.parent.parent;if(By(o)&&Ma(o.parent))return o.parent;let s=Fn(o,mc);if(e.kind!==59&&s?.getLastToken(r)===e&&Ma(s.parent))return s.parent}}}function rQ(e,t){let r=Tc(e,t);return r&&e<=r.end&&(Hh(r)||wu(r.kind))?{contextToken:Tc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function sLe(e,t,r,i){let o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(x.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let d=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return d?(d=t.exportName==="default"&&mR(d)||d,{symbol:d,origin:MZe(t,e,l)}):void 0}function iQ(e,t,r,i,o){if(mZe(r))return;let s=dZe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&R2(s.charCodeAt(0))||J2(e))return;let l={name:s,needsConvertPropertyAccess:!1};if(Yp(s,t,o?1:0)||e.valueDeclaration&&ou(e.valueDeclaration))return l;switch(i){case 3:return hme(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:x.assertNever(i)}}function lLe(e,t){if(!t)return cLe(e);let r=e+8+1;return uB[r]||(uB[r]=cLe(e).filter(i=>!UZe(g0(i.name))))}function cLe(e){return uB[e]||(uB[e]=Nme().filter(t=>{let r=g0(t.name);switch(e){case 0:return!1;case 1:return uLe(r)||r===138||r===144||r===156||r===145||r===128||YP(r)&&r!==157;case 5:return uLe(r);case 2:return dB(r);case 3:return dLe(r);case 4:return oN(r);case 6:return YP(r)||r===87;case 7:return YP(r);case 8:return r===156;default:return x.assertNever(e)}}))}function UZe(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 dLe(e){return e===148}function dB(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return CV(e)}}function uLe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!e6(e)&&!dB(e)}function oQ(e){return Fe(e)?eE(e)??0:e.kind}function HZe(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Lc(o)||Xl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:da(132),kind:"keyword",kindModifiers:"",sortText:Wd.GlobalsOrKeywords})}return r}function KZe(e,t){return Fn(e,r=>Bx(r)&&Jw(r,t)?!0:Xm(r)?"quit":!1)}function aQ(e,t,r,i){let o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=JZe(s,r,i);return s.isClass()&&pLe(l)?[]:o?jr(l,d):l;function d(p){return Nn(p.declarations)?gt(p.declarations,h=>h.parent!==r):!0}}function JZe(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(jr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&pLe(i.getApparentProperties())))):e.getApparentProperties()}function pLe(e){return gt(e,t=>!!(Tf(t)&6))}function sQ(e,t){return e.isUnion()?x.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):x.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function qZe(e,t,r,i){switch(r.kind){case 358:return ri(r.parent,kI);case 1:let o=ri($s(na(r.parent,Yi).statements),kI);if(o&&!_s(o,20,e))return o;break;case 81:if(ri(r.parent,Uo))return Fn(r,ci);break;case 80:{if(eE(r)||Uo(r.parent)&&r.parent.initializer===r)return;if(lQ(r))return Fn(r,kI)}}if(t){if(r.kind===137||Fe(t)&&Uo(t.parent)&&ci(r))return Fn(t,ci);switch(t.kind){case 64:return;case 27:case 20:return lQ(r)&&r.parent.name===r?r.parent.parent:ri(r,kI);case 19:case 28:return ri(t.parent,kI);default:if(kI(r)){if(hs(e,t.getEnd()).line!==hs(e,i).line)return r;let o=ci(t.parent.parent)?dB:dLe;return o(t.kind)||t.kind===42||Fe(t)&&o(eE(t)??0)?t.parent.parent:void 0}return}}}function XZe(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(gp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&gp(t.parent))return t.parent;break}}function fLe(e,t){if(!e)return;if(ji(e)&&gF(e.parent))return t.getTypeArgumentConstraint(e);let r=fLe(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 lQ(e){return e.parent&&cF(e.parent)&&kI(e.parent.parent)}function YZe(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Cde(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ki(r)&&!!ad(r);case"<":return!!r&&r.kind===30&&(!dr(r.parent)||mLe(r.parent));case"/":return!!r&&(as(r)?!!O2(r):r.kind===44&&K0(r.parent));case" ":return!!r&&sP(r)&&r.parent.kind===312;default:return x.assertNever(t)}}function mLe({left:e}){return Fl(e)}function $Ze(e,t,r){let i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;let o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;let s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function QZe(e){return!!(e.valueDeclaration&&lu(e.valueDeclaration)&256&&ci(e.valueDeclaration.parent))}function ZZe(e,t){let r=t.getContextualType(e);if(r)return r;let i=Py(e.parent);if(dr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ht(i))return t.getContextualType(i)}function _Le(e,t){var r,i,o;let s,l=!1,d=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(d||s===156),isTopLevelTypeOnly:!!((i=(r=ri(d,Lc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ri(d,td))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!d&&gLe(d,e),replacementSpan:eet(d)};function p(){let h=e.parent;if(td(h)){let m=h.getLastToken(t);if(Fe(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,Ame(h.moduleReference)?h:void 0}if(gLe(h,e)&&yLe(h.parent))return h;if(zg(h)||Xv(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),yLe(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(Xl(h)&&e.kind===42||xf(h)&&e.kind===20){l=!0,s=161;return}if(sP(e)&&Yi(h))return s=156,e;if(sP(e)&&Lc(h))return s=156,Ame(h.moduleSpecifier)?h:void 0}}function eet(e){var t;if(!e)return;let r=Fn(e,jm(Lc,td))??e,i=r.getSourceFile();if(IT(r,i))return Iu(r,i);x.assert(r.kind!==102&&r.kind!==276);let o=r.kind===272?hLe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(IT(s,i))return eb(s)}function hLe(e){var t;return Vr((t=ri(e,zg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&CI(r.name.text)&&((i=Tc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function gLe(e,t){return Qu(e)&&(e.isTypeOnly||t===e.name&&Jz(t))}function yLe(e){if(!Ame(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(zg(e)){let t=hLe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Ame(e){var t;return Fl(e)?!0:!((t=ri(vh(e)?e.expression:e,as))!=null&&t.text)}function tet(e,t){if(!e)return;let r=Fn(e,o=>x0(o)||vLe(o)||Qo(o)?"quit":(Ao(o)||fl(o))&&!G0(o.parent)),i=Fn(t,o=>x0(o)||vLe(o)||Qo(o)?"quit":wi(o));return r||i}function vLe(e){return e.parent&&Os(e.parent)&&(e.parent.body===e||e.kind===39)}function Ime(e,t,r=new Map){return i(e)||i(vd(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Em(r,ba(o))&&t.getExportsOfModule(o).some(s=>Ime(s,t,r))}}function net(e,t){let r=vd(e,t).declarations;return!!Nn(r)&&oo(r,f7)}function bLe(e,t){if(t.length===0)return!0;let r=!1,i,o=0,s=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))(Rme||{}),Dme=(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))(Dme||{}),Cme=(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))(Cme||{}),uB=[],Nme=vu(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:da(t),kind:"keyword",kindModifiers:"",sortText:Wd.GlobalsOrKeywords});return e})}});function Pme(){let e=new Map;function t(r){let i=e.get(r.name);(!i||Ome[i.kind]({name:Qh(S.value,y),kindModifiers:"",kind:"string",sortText:Wd.LocationPriority,replacementSpan:Oq(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:E}}default:return x.assertNever(e)}}function cet(e,t,r,i,o,s,l,d){if(!i||!as(i))return;let p=TLe(t,i,r,o,s,d);return p&&det(e,i,p,t,o.getTypeChecker(),l)}function det(e,t,r,i,o,s){switch(r.kind){case 0:{let l=Vr(r.paths,d=>d.name===e);return l&&cB(e,SLe(l.extension),l.kind,[af(e)])}case 1:{let l=Vr(r.symbols,d=>d.name===e);return l&&Sme(l,l.name,o,i,t,s)}case 2:return Vr(r.types,l=>l.value===e)?cB(e,"","string",[af(e)]):void 0;default:return x.assertNever(r)}}function ELe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:d})=>({name:o,kind:s,kindModifiers:SLe(d),sortText:Wd.LocationPriority,replacementSpan:l}))}}function SLe(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 x.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return x.assertNever(e)}}function TLe(e,t,r,i,o,s){let l=i.getTypeChecker(),d=Mme(t.parent);switch(d.kind){case 201:{let S=Mme(d.parent);return S.kind===205?{kind:0,paths:xLe(e,t,i,o,s)}:p(S)}case 303:return Ma(d.parent)&&d.name===t?fet(l,d.parent):h()||h(0);case 212:{let{expression:S,argumentExpression:A}=d;return t===fs(A)?ALe(l.getTypeAtLocation(S)):void 0}case 213:case 214:case 291:if(!Det(t)&&!Op(d)){let S=HO.getArgumentInfoForCompletions(d.kind===291?d.parent:t,r,e,l);return S&&pet(S.invocation,t,S,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:xLe(e,t,i,o,s)};case 296:let m=h7(l,d.parent.clauses),y=h();return y?{kind:2,types:y.types.filter(S=>!m.hasValue(S.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function p(m){switch(m.kind){case 233:case 183:{let S=Fn(d,A=>A.parent===m);return S?{kind:2,types:dQ(l.getTypeArgumentConstraint(S)),isNewIdentifier:!1}:void 0}case 199:let{indexType:y,objectType:E}=m;return Jw(y,r)?ALe(l.getTypeFromTypeNode(E)):void 0;case 192:{let S=p(Mme(m.parent));if(!S)return;let A=uet(m,d);return S.kind===1?{kind:1,symbols:S.symbols.filter(N=>!Bo(A,N.name)),hasIndexSignature:S.hasIndexSignature}:{kind:2,types:S.types.filter(N=>!Bo(A,N.value)),isNewIdentifier:!1}}default:return}}function h(m=4){let y=dQ(r7(t,l,m));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Mme(e){switch(e.kind){case 196:return G2(e);case 217:return Py(e);default:return e}}function uet(e,t){return to(e.types,r=>r!==t&&Kv(r)&&Da(r.literal)?r.literal.text:void 0)}function pet(e,t,r,i){let o=!1,s=new Map,l=au(e)?x.checkDefined(Fn(t.parent,M_)):t,d=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=va(d,h=>{if(!qd(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(au(e)){let y=i.getTypeOfPropertyOfType(m,fk(l.name));y&&(m=y)}return o=o||!!(m.flags&4),dQ(m,s)});return Nn(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function ALe(e){return e&&{kind:1,symbols:jr(e.getApparentProperties(),t=>!(t.valueDeclaration&&ou(t.valueDeclaration))),hasIndexSignature:iX(e)}}function fet(e,t){let r=e.getContextualType(t);if(!r)return;let i=e.getContextualType(t,4);return{kind:1,symbols:aQ(r,i,t,e),hasIndexSignature:iX(r)}}function dQ(e,t=new Map){return e?(e=Bq(e),e.isUnion()?va(e.types,r=>dQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Em(t,e.value)?[e]:Xe):Xe}function pM(e,t,r){return{name:e,kind:t,extension:r}}function Lme(e){return pM(e,"directory",void 0)}function ILe(e,t,r){let i=xet(e,t),o=e.length===0?void 0:gd(t,e.length);return r.map(({name:s,kind:l,extension:d})=>s.includes(nl)||s.includes(FL)?{name:s,kind:l,extension:d,span:o}:{name:s,kind:l,extension:d,span:i})}function xLe(e,t,r,i,o){return ILe(t.text,t.getStart(e)+1,met(e,t,r,i,o))}function met(e,t,r,i,o){let s=Pd(t.text),l=as(t)?r.getModeForUsageLocation(e,t):void 0,d=e.path,p=oi(d),h=r.getCompilerOptions(),m=r.getTypeChecker(),y=kme(h,1,e,m,o,l);return Ret(s)||!h.baseUrl&&!h.paths&&(cp(s)||Rne(s))?_et(s,p,h,i,d,y):vet(s,p,l,h,i,y,m)}function kme(e,t,r,i,o,s){return{extensionsToSearch:pm(het(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function _et(e,t,r,i,o,s){return r.rootDirs?yet(r.rootDirs,e,t,s,r,i,o):Wo(BO(e,t,s,i,!0,o).values())}function het(e,t){let r=t?to(t.getAmbientModules(),s=>{let l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...BN(e),r],o=du(e);return qz(o)?ak(e,i):i}function get(e,t,r,i){e=e.map(s=>Bc(ma(cp(s)?s:Yr(t,s))));let o=Wl(e,s=>mm(s,r,t,i)?r.substr(s.length):void 0);return m0([...e.map(s=>Yr(s,o)),r].map(s=>Xb(s)),eT,Vd)}function yet(e,t,r,i,o,s,l){let d=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=get(e,d,r,p);return m0(va(h,m=>Wo(BO(t,m,i,s,!0,l).values())),(m,y)=>m.name===y.name&&m.kind===y.kind&&m.extension===y.extension)}function BO(e,t,r,i,o,s,l=Pme()){var d;e===void 0&&(e=""),e=Pd(e),Iy(e)||(e=oi(e)),e===""&&(e="."+nl),e=Bc(e);let p=Av(t,e),h=Iy(p)?p:oi(p);if(!o){let S=Pde(h,i);if(S){let N=LN(S,i).typesVersions;if(typeof N=="object"){let D=(d=g3(N))==null?void 0:d.paths;if(D){let w=oi(S),j=p.slice(Bc(w).length);if(DLe(l,j,w,r,i,D))return l}}}}let m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!l7(i,h))return l;let y=aX(i,h,r.extensionsToSearch,void 0,["./*"]);if(y)for(let S of y){if(S=ma(S),s&&Rg(S,s,t,m)===0)continue;let{name:A,extension:N}=RLe(nc(S),i.getCompilationSettings(),r,!1);l.add(pM(A,"script",N))}let E=s7(i,h);if(E)for(let S of E){let A=nc(ma(S));A!=="@types"&&l.add(Lme(A))}return l}function RLe(e,t,r,i){let o=eS.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Wg(o)};if(r.referenceKind===0)return{name:e,extension:Wg(e)};let s=gw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(d=>d!==0&&d!==1)),s[0]===3){if(bc(e,yk))return{name:e,extension:Wg(e)};let d=eS.tryGetJSExtensionForFile(e,t);return d?{name:pE(e,d),extension:d}:{name:e,extension:Wg(e)}}if(!i&&(s[0]===0||s[0]===1)&&bc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Eu(e),extension:Wg(e)};let l=eS.tryGetJSExtensionForFile(e,t);return l?{name:pE(e,l),extension:l}:{name:e,extension:Wg(e)}}function DLe(e,t,r,i,o,s){let l=p=>s[p],d=(p,h)=>{let m=vR(p),y=vR(h),E=typeof m=="object"?m.prefix.length:p.length,S=typeof y=="object"?y.prefix.length:h.length;return Zs(S,E)};return CLe(e,!1,t,r,i,o,Vh(s),l,d)}function CLe(e,t,r,i,o,s,l,d,p){let h=[],m;for(let y of l){if(y===".")continue;let E=y.replace(/^\.\//,""),S=d(y);if(S){let A=vR(E);if(!A)continue;let N=typeof A=="object"&&bW(A,r);N&&(m===void 0||p(y,m)===-1)&&(m=y,h=h.filter(w=>!w.matchedPattern)),(typeof A=="string"||m===void 0||p(y,m)!==1)&&h.push({matchedPattern:N,results:bet(E,S,r,i,o,t&&N,s).map(({name:w,kind:j,extension:K})=>pM(w,j,K))})}}return h.forEach(y=>y.results.forEach(E=>e.add(E))),m!==void 0}function vet(e,t,r,i,o,s,l){let{baseUrl:d,paths:p}=i,h=Pme(),m=du(i);if(d){let E=ma(Yr(o.getCurrentDirectory(),d));BO(e,E,s,o,!1,void 0,h)}if(p){let E=s6(i,o);DLe(h,e,E,s,o,p)}let y=PLe(e);for(let E of Tet(e,y,l))h.add(pM(E,"external module name",void 0));if(kLe(o,i,t,y,s,h),qz(m)){let E=!1;if(y===void 0)for(let S of Iet(o,t)){let A=pM(S,"external module name",void 0);h.has(A.name)||(E=!0,h.add(A))}if(!E){let S=A=>{let N=Yr(A,"node_modules");l7(o,N)&&BO(e,N,s,o,!1,void 0,h)};if(y&&X6(i)){let A=S;S=N=>{let D=zc(e);D.shift();let w=D.shift();if(!w)return A(N);if(ao(w,"@")){let Y=D.shift();if(!Y)return A(N);w=Yr(w,Y)}let j=Yr(N,"node_modules",w),K=Yr(j,"package.json");if(dO(o,K)){let B=LN(K,o).exports;if(B){if(typeof B!="object"||B===null)return;let ce=Vh(B),z=D.join("/")+(D.length&&Iy(e)?"/":""),Z=$v(i,r);CLe(h,!0,z,j,s,o,ce,me=>pI(NLe(B[me],Z)),dK);return}}return A(N)}}hm(t,S)}}return Wo(h.values())}function NLe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!To(e)){for(let r in e)if(r==="default"||t.includes(r)||_w(t,r)){let i=e[r];return NLe(i,t)}}}function PLe(e){return wme(e)?Iy(e)?e:oi(e):void 0}function bet(e,t,r,i,o,s,l){if(!El(e,"*"))return e.includes("*")?Xe:h(e,"script");let d=e.slice(0,e.length-1),p=JG(r,d);if(p===void 0)return e[e.length-2]==="/"?h(d,"directory"):va(t,y=>{var E;return(E=MLe("",i,y,o,s,l))==null?void 0:E.map(({name:S,...A})=>({name:d+S,...A}))});return va(t,m=>MLe(p,i,m,o,s,l));function h(m,y){return ao(m,r)?[{name:Xb(m),kind:y,extension:void 0}]:Xe}}function MLe(e,t,r,i,o,s){if(!s.readDirectory)return;let l=vR(r);if(l===void 0||No(l))return;let d=Av(l.prefix),p=Iy(l.prefix)?d:oi(d),h=Iy(l.prefix)?"":nc(d),m=wme(e),y=m?Iy(e)?e:oi(e):void 0,E=m?Yr(p,h+y):p,S=ma(l.suffix),A=S&&a6("_"+S),N=A?[pE(S,A),S]:[S],D=ma(Yr(t,E)),w=m?D:Bc(D)+h,j=S?N.map(ce=>"**/*"+ce):["./*"],K=to(aX(s,D,i.extensionsToSearch,void 0,j),ce=>{let z=B(ce);if(z){if(wme(z))return Lme(zc(LLe(z))[1]);let{name:Z,extension:me}=RLe(z,s.getCompilationSettings(),i,o);return pM(Z,"script",me)}}),Y=S?Xe:to(s7(s,D),ce=>ce==="node_modules"?void 0:Lme(ce));return[...K,...Y];function B(ce){return Wl(N,z=>{let Z=Eet(ma(ce),w,z);return Z===void 0?void 0:LLe(Z)})}}function Eet(e,t,r){return ao(e,t)&&El(e,r)?e.slice(t.length,e.length-r.length):void 0}function LLe(e){return e[0]===nl?e.slice(1):e}function Tet(e,t,r){let o=r.getAmbientModules().map(s=>Yf(s.name)).filter(s=>ao(s,e)&&!s.includes("*"));if(t!==void 0){let s=Bc(t);return o.map(l=>VC(l,s))}return o}function Aet(e,t,r,i){let o=so(e,t),s=jh(e.text,o.pos),l=s&&Vr(s,A=>t>=A.pos&&t<=A.end);if(!l)return;let d=e.text.slice(l.pos,t),p=wLe.exec(d);if(!p)return;let[,h,m,y]=p,E=oi(e.path),S=m==="path"?BO(y,E,kme(r,0,e),i,!0,e.path):m==="types"?kLe(i,r,E,PLe(y),kme(r,1,e)):x.fail();return ILe(y,l.pos+h.length,Wo(S.values()))}function kLe(e,t,r,i,o,s=Pme()){let l=new Map,d=c7(()=>xP(t,e))||Xe;for(let h of d)p(h);for(let h of sX(r,e)){let m=Yr(oi(h),"node_modules/@types");p(m)}return s;function p(h){if(l7(e,h))for(let m of s7(e,h)){let y=hw(m);if(!(t.types&&!Bo(t.types,y)))if(i===void 0)l.has(y)||(s.add(pM(y,"external module name",void 0)),l.set(y,!0));else{let E=Yr(h,m),S=aU(i,y,My(e));S!==void 0&&BO(S,E,o,e,!1,void 0,s)}}}}function Iet(e,t){if(!e.readFile||!e.fileExists)return Xe;let r=[];for(let i of sX(t,e)){let o=LN(i,e);for(let s of OLe){let l=o[s];if(l)for(let d in l)Ss(l,d)&&!ao(d,"@types/")&&r.push(d)}}return r}function xet(e,t){let r=Math.max(e.lastIndexOf(nl),e.lastIndexOf(FL)),i=r!==-1?r+1:0,o=e.length-i;return o===0||Yp(e.substr(i,o),99)?void 0:gd(t+i,o)}function Ret(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function wme(e){return e.includes(nl)}function Det(e){return ia(e.parent)&&Xc(e.parent.arguments)===e&&Fe(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Ome,wLe,OLe,Cet=bt({"src/services/stringCompletions.ts"(){"use strict";Fse(),ai(),Wme(),Ome={directory:0,script:1,"external module name":2},wLe=/^(\/\/\/\s*cet,getStringLiteralCompletions:()=>aet});var Net=bt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";Cet()}}),C1={};xa(C1,{CompletionKind:()=>Cme,CompletionSource:()=>Rme,SortText:()=>Wd,StringCompletions:()=>uQ,SymbolOriginInfoKind:()=>Dme,createCompletionDetails:()=>cB,createCompletionDetailsForSymbol:()=>Sme,getCompletionEntriesFromSymbols:()=>bme,getCompletionEntryDetails:()=>WZe,getCompletionEntrySymbol:()=>zZe,getCompletionsAtPosition:()=>_Ze,getPropertiesForObjectExpression:()=>aQ,moduleSpecifierResolutionCacheAttemptLimit:()=>xme,moduleSpecifierResolutionLimit:()=>cQ});var Wme=bt({"src/services/_namespaces/ts.Completions.ts"(){"use strict";oet(),Net()}});function Fme(e,t,r,i){let o=ket(e,r,i);return(s,l,d)=>{let{directImports:p,indirectUsers:h}=Pet(e,t,o,l,r,i);return{indirectUsers:h,...Met(p,s,l.exportKind,r,d)}}}function Pet(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let d=v1(),p=v1(),h=[],m=!!i.globalExports,y=m?void 0:[];return S(i),{directImports:h,indirectUsers:E()};function E(){if(m)return e;if(i.declarations)for(let K of i.declarations)T0(K)&&t.has(K.getSourceFile().fileName)&&w(K);return y.map(Gn)}function S(K){let Y=j(K);if(Y){for(let B of Y)if(d(B))switch(l&&l.throwIfCancellationRequested(),B.kind){case 213:if(Op(B)){A(B);break}if(!m){let z=B.parent;if(o===2&&z.kind===260){let{name:Z}=z;if(Z.kind===80){h.push(Z);break}}}break;case 80:break;case 271:D(B,B.name,$r(B,32),!1);break;case 272:h.push(B);let ce=B.importClause&&B.importClause.namedBindings;ce&&ce.kind===274?D(B,ce.name,!1,!0):!m&&II(B)&&w(pB(B));break;case 278:B.exportClause?B.exportClause.kind===280?w(pB(B),!0):h.push(B):S(zet(B,s));break;case 205:!m&&B.isTypeOf&&!B.qualifier&&N(B)&&w(B.getSourceFile(),!0),h.push(B);break;default:x.failBadSyntaxKind(B,"Unexpected import kind.")}}}function A(K){let Y=Fn(K,pQ)||K.getSourceFile();w(Y,!!N(K,!0))}function N(K,Y=!1){return Fn(K,B=>Y&&pQ(B)?"quit":Am(B)&>(B.modifiers,JI))}function D(K,Y,B,ce){if(o===2)ce||h.push(K);else if(!m){let z=pB(K);x.assert(z.kind===312||z.kind===267),B||Let(z,Y,s)?w(z,!0):w(z)}}function w(K,Y=!1){if(x.assert(!m),!p(K)||(y.push(K),!Y))return;let ce=s.getMergedSymbol(K.symbol);if(!ce)return;x.assert(!!(ce.flags&1536));let z=j(ce);if(z)for(let Z of z)rg(Z)||w(pB(Z),!0)}function j(K){return r.get(ba(K).toString())}}function Met(e,t,r,i,o){let s=[],l=[];function d(E,S){s.push([E,S])}if(e)for(let E of e)p(E);return{importSearches:s,singleReferences:l};function p(E){if(E.kind===271){Bme(E)&&h(E.name);return}if(E.kind===80){h(E);return}if(E.kind===205){if(E.qualifier){let N=Fp(E.qualifier);N.escapedText===vl(t)&&l.push(N)}else r===2&&l.push(E.argument.literal);return}if(E.moduleSpecifier.kind!==11)return;if(E.kind===278){E.exportClause&&xf(E.exportClause)&&m(E.exportClause);return}let{name:S,namedBindings:A}=E.importClause||{name:void 0,namedBindings:void 0};if(A)switch(A.kind){case 274:h(A.name);break;case 275:(r===0||r===1)&&m(A);break;default:x.assertNever(A)}if(S&&(r===1||r===2)&&(!o||S.escapedText===Yz(t))){let N=i.getSymbolAtLocation(S);d(S,N)}}function h(E){r===2&&(!o||y(E.escapedText))&&d(E,i.getSymbolAtLocation(E))}function m(E){if(E)for(let S of E.elements){let{name:A,propertyName:N}=S;if(y((N||A).escapedText))if(N)l.push(N),(!o||A.escapedText===t.escapedName)&&d(A,i.getSymbolAtLocation(A));else{let D=S.kind===281&&S.propertyName?i.getExportSpecifierLocalTargetSymbol(S):i.getSymbolAtLocation(A);d(A,D)}}}function y(E){return E===t.escapedName||r!==0&&E==="default"}}function Let(e,t,r){let i=r.getSymbolAtLocation(t);return!!FLe(e,o=>{if(!Xl(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&xf(s)&&s.elements.some(d=>r.getExportSpecifierLocalTargetSymbol(d)===i)})}function WLe(e,t,r){var i;let o=[],s=e.getTypeChecker();for(let l of t){let d=r.valueDeclaration;if(d?.kind===312){for(let p of l.referencedFiles)e.getSourceFileFromReference(l,p)===d&&o.push({kind:"reference",referencingFile:l,ref:p});for(let p of l.typeReferenceDirectives){let h=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===d.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}zLe(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(Ks(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function ket(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),zLe(o,(s,l)=>{let d=t.getSymbolAtLocation(l);if(d){let p=ba(d).toString(),h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function FLe(e,t){return gn(e.kind===312?e.statements:e.body.statements,r=>t(r)||pQ(r)&&gn(r.body&&r.body.statements,t))}function zLe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(yN(r),r);else FLe(e,r=>{switch(r.kind){case 278:case 272:{let i=r;i.moduleSpecifier&&Da(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=r;Bme(i)&&t(i,i.moduleReference.expression);break}}})}function BLe(e,t,r,i){return i?o():o()||s();function o(){var p;let{parent:h}=e,m=h.parent;if(t.exportSymbol)return h.kind===211?(p=t.declarations)!=null&&p.some(S=>S===h)&&dr(m)?E(m,!1):void 0:l(t.exportSymbol,d(h));{let S=Oet(h,e);if(S&&$r(S,32))return td(S)&&S.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(S.name)}:l(t,d(S));if(yh(h))return l(t,0);if(Ll(h))return y(h);if(Ll(m))return y(m);if(dr(h))return E(h,!0);if(dr(m))return E(m,!0);if(zT(h)||lH(h))return l(t,0)}function y(S){if(!S.symbol.parent)return;let A=S.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:S.symbol.parent,exportKind:A}}}function E(S,A){let N;switch(zl(S)){case 1:N=0;break;case 2:N=2;break;default:return}let D=A?r.getSymbolAtLocation(tU(na(S.left,Ns))):t;return D&&l(D,N)}}function s(){if(!Wet(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=Fet(h,r),h.escapedName==="export="&&(h=wet(h,r),h===void 0)))return;let m=Yz(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(p,h){let m=zme(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function d(p){return $r(p,2048)?1:0}}function wet(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=x.checkDefined(e.valueDeclaration);if(Ll(o))return(r=ri(o.expression,b_))==null?void 0:r.symbol;if(dr(o))return(i=ri(o.right,b_))==null?void 0:i.symbol;if(Yi(o))return o.symbol}function Oet(e,t){let r=wi(e)?e:Xa(e)?Lx(e):void 0;return r?e.name!==t||X0(r.parent)?void 0:Ml(r.parent.parent)?r.parent.parent:void 0:e}function Wet(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Bme(t);case 276:return!t.propertyName;case 273:case 274:return x.assert(t.name===e),!0;case 208:return ir(e)&&R0(t.parent.parent);default:return!1}}function zme(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return eO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Fet(e,t){if(e.declarations)for(let r of e.declarations){if(Kd(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(kr(r)&&Yh(r.expression)&&!Ki(r.name))return t.getSymbolAtLocation(r);if(Zu(r)&&dr(r.parent.parent)&&zl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function zet(e,t){return t.getMergedSymbol(pB(e).symbol)}function pB(e){if(e.kind===213)return e.getSourceFile();let{parent:t}=e;return t.kind===312?t:(x.assert(t.kind===268),na(t.parent,pQ))}function pQ(e){return e.kind===267&&e.name.kind===11}function Bme(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Gme,Vme,Bet=bt({"src/services/importTracker.ts"(){"use strict";ai(),Gme=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Gme||{}),Vme=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Vme||{})}});function sg(e,t=1){return{kind:t,node:e.name||e,context:Get(e)}}function jme(e){return e&&e.kind===void 0}function Get(e){if(Hd(e))return eA(e);if(e.parent){if(!Hd(e.parent)&&!Ll(e.parent)){if(ir(e)){let r=dr(e.parent)?e.parent:Ns(e.parent)&&dr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&zl(r)!==0)return eA(r)}if(P_(e.parent)||K0(e.parent))return e.parent.parent;if(OT(e.parent)||H0(e.parent)||nN(e.parent))return e.parent;if(as(e)){let r=O2(e);if(r){let i=Fn(r,o=>Hd(o)||Hi(o)||Bx(o));return Hd(i)?eA(i):i}}let t=Fn(e,Ya);return t?eA(t.parent):void 0}if(e.parent.name===e||Pl(e.parent)||Ll(e.parent)||(yI(e.parent)||Xa(e.parent))&&e.parent.propertyName===e||e.kind===90&&$r(e.parent,2080))return eA(e.parent)}}function eA(e){if(e)switch(e.kind){case 260:return!Uc(e.parent)||e.parent.declarations.length!==1?e:Ml(e.parent.parent)?e.parent.parent:Fx(e.parent.parent)?eA(e.parent.parent):e.parent;case 208:return eA(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 ed(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Uy(e.parent)?eA(Fn(e.parent,t=>dr(t)||Fx(t))):e;case 255:return{start:Vr(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Ume(e,t,r){if(!r)return;let i=jme(r)?mB(r.start,t,r.end):mB(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Vet(e,t,r,i,o){let s=Wu(i,o),l={use:1},d=N1.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=N1.getAdjustedNode(s,l),m=jet(h)?p.getSymbolAtLocation(h):void 0;return!d||!d.length?void 0:to(d,({definition:y,references:E})=>y&&{definition:p.runWithCancellationToken(t,S=>Ket(y,S,s)),references:E.map(S=>qet(S,m))})}function jet(e){return e.kind===90||!!vN(e)||j2(e)||e.kind===137&&Pl(e.parent)}function Uet(e,t,r,i,o){let s=Wu(i,o),l,d=GLe(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=d&&[...d];else if(d){let h=AL(d),m=new Map;for(;!h.isEmpty();){let y=h.dequeue();if(!Em(m,rs(y.node)))continue;l=Tn(l,y);let E=GLe(e,t,r,y.node,y.node.pos);E&&h.enqueue(...E)}}let p=e.getTypeChecker();return mn(l,h=>Yet(h,p))}function GLe(e,t,r,i,o){if(i.kind===312)return;let s=e.getTypeChecker();if(i.parent.kind===304){let l=[];return N1.getReferenceEntriesForShorthandPropertyAssignment(i,s,d=>l.push(sg(d))),l}else if(i.kind===108||ku(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[sg(l.valueDeclaration)]}else return VLe(o,i,e,r,t,{implementations:!0,use:1})}function Het(e,t,r,i,o,s,l){return mn(jLe(N1.getReferencedSymbolsForNode(o,i,e,r,t,s)),d=>l(d,i,e.getTypeChecker()))}function VLe(e,t,r,i,o,s={},l=new Set(i.map(d=>d.fileName))){return jLe(N1.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function jLe(e){return e&&va(e,t=>t.references)}function Ket(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:y,kind:E}=ULe(m,t,r),S=y.map(D=>D.text).join(""),A=m.declarations&&Xc(m.declarations),N=A?Po(A)||A:r;return{...fB(N),name:S,kind:E,displayParts:y,context:eA(A)}}case 1:{let{node:m}=e;return{...fB(m),name:m.text,kind:"label",displayParts:[ep(m.text,17)]}}case 2:{let{node:m}=e,y=da(m.kind);return{...fB(m),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{let{node:m}=e,y=t.getSymbolAtLocation(m),E=y&&Xy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),XT(m),m).displayParts||[af("this")];return{...fB(m),name:"this",kind:"var",displayParts:E}}case 4:{let{node:m}=e;return{...fB(m),name:m.text,kind:"var",displayParts:[ep(uc(m),8)]}}case 5:return{textSpan:eb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[ep(`"${e.reference.fileName}"`,8)]};default:return x.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:d,displayParts:p,context:h}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:d,name:l,textSpan:s,displayParts:p,...Ume(s,o,h)}}function fB(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:mB(Ya(e)?e.expression:e,t)}}function ULe(e,t,r){let i=N1.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Xc(e.declarations)||r,{displayParts:s,symbolKind:l}=Xy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Jet(e,t,r,i,o){return{...fQ(e),...i&&Xet(e,t,r,o)}}function qet(e,t){let r=HLe(e);return t?{...r,isDefinition:e.kind!==0&&KLe(e.node,t)}:r}function HLe(e){let t=fQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:Kme(i),isInString:r===2?!0:void 0}}function fQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),r=mB(e.node,t);return{textSpan:r,fileName:t.fileName,...Ume(r,t,e.context)}}}function Xet(e,t,r,i){if(e.kind!==0&&Fe(t)){let{node:o,kind:s}=e,l=o.parent,d=t.text,p=Zu(l);if(p||rO(l)&&l.name===o&&l.dotDotDotToken===void 0){let h={prefixText:d+": "},m={suffixText:": "+d};if(s===3)return h;if(s===4)return m;if(p){let y=l.parent;return Ma(y)&&dr(y.parent)&&Yh(y.parent.left)?h:m}else return h}else if(Qu(l)&&!l.propertyName){let h=Kd(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Bo(h.declarations,l)?{prefixText:d+" as "}:Cf}else if(Kd(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:d+" as "}:{suffixText:" as "+d}}if(e.kind!==0&&mp(e.node)&&Ns(e.node.parent)){let o=Uq(i);return{prefixText:o,suffixText:o}}return Cf}function Yet(e,t){let r=fQ(e);if(e.kind!==0){let{node:i}=e;return{...r,...$et(i,t)}}else return{...r,kind:"",displayParts:[]}}function $et(e,t){let r=t.getSymbolAtLocation(Hd(e)&&e.name?e.name:e);return r?ULe(r,t,e):e.kind===210?{kind:"interface",displayParts:[Xd(21),af("object literal"),Xd(22)]}:e.kind===231?{kind:"local class",displayParts:[Xd(21),af("anonymous local class"),Xd(22)]}:{kind:oS(e),displayParts:[]}}function Qet(e){let t=fQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=Kme(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 mB(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return as(e)&&o-i>2&&(x.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),dc(i,o)}function Hme(e){return e.kind===0?e.textSpan:mB(e.node,e.node.getSourceFile())}function Kme(e){let t=vN(e);return!!t&&Zet(t)||e.kind===90||LI(e)}function KLe(e,t){var r;if(!t)return!1;let i=vN(e)||(e.kind===90?e.parent:j2(e)||e.kind===137&&Pl(e.parent)?e.parent.parent:void 0),o=i&&dr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function Zet(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!Uy(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||X0(e.parent);case 173:case 171:case 355:case 348:return!1;default:return x.failBadSyntaxKind(e)}}var Jme,qme,Xme,N1,ett=bt({"src/services/findAllReferences.ts"(){"use strict";ai(),Yme(),Jme=(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))(Jme||{}),qme=(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))(qme||{}),Xme=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Xme||{}),(e=>{function t(Be,ct,lt,Rt,ae,ke={},st=new Set(Rt.map(G=>G.fileName))){var G,et;if(ct=r(ct,ke),Yi(ct)){let un=xD.getReferenceAtPosition(ct,Be,lt);if(!un?.file)return;let U=lt.getTypeChecker().getMergedSymbol(un.file.symbol);if(U)return h(lt,U,!1,Rt,st);let Me=lt.getFileIncludeReasons();return Me?[{definition:{type:5,reference:un.reference,file:ct},references:o(un.file,Me,lt)||Xe}]:void 0}if(!ke.implementations){let un=y(ct,Rt,ae);if(un)return un}let Tt=lt.getTypeChecker(),He=Tt.getSymbolAtLocation(Pl(ct)&&ct.parent.name||ct);if(!He){if(!ke.implementations&&as(ct)){if($z(ct)){let un=lt.getFileIncludeReasons(),U=(et=(G=lt.getResolvedModuleFromModuleSpecifier(ct))==null?void 0:G.resolvedModule)==null?void 0:et.resolvedFileName,Me=U?lt.getSourceFile(U):void 0;if(Me)return[{definition:{type:4,node:ct},references:o(Me,un,lt)||Xe}]}return Ur(ct,Rt,Tt,ae)}return}if(He.escapedName==="export=")return h(lt,He.parent,!1,Rt,st);let ut=l(He,lt,Rt,ae,ke,st);if(ut&&!(He.flags&33554432))return ut;let Ft=s(ct,He,Tt),hn=Ft&&l(Ft,lt,Rt,ae,ke,st),dn=E(He,ct,Rt,st,Tt,ae,ke);return d(lt,ut,dn,hn)}e.getReferencedSymbolsForNode=t;function r(Be,ct){return ct.use===1?Be=Cq(Be):ct.use===2&&(Be=zz(Be)),Be}e.getAdjustedNode=r;function i(Be,ct,lt,Rt=new Set(lt.map(ae=>ae.fileName))){var ae,ke;let st=(ae=ct.getSourceFile(Be))==null?void 0:ae.symbol;if(st)return((ke=h(ct,st,!1,lt,Rt)[0])==null?void 0:ke.references)||Xe;let G=ct.getFileIncludeReasons(),et=ct.getSourceFile(Be);return et&&G&&o(et,G,ct)||Xe}e.getReferencesForFileName=i;function o(Be,ct,lt){let Rt,ae=ct.get(Be.path)||Xe;for(let ke of ae)if(IE(ke)){let st=lt.getSourceFileByPath(ke.file),G=VP(lt,ke);ZR(G)&&(Rt=Tn(Rt,{kind:0,fileName:st.fileName,textSpan:eb(G)}))}return Rt}function s(Be,ct,lt){if(Be.parent&&Fk(Be.parent)){let Rt=lt.getAliasedSymbol(ct),ae=lt.getMergedSymbol(Rt);if(Rt!==ae)return ae}}function l(Be,ct,lt,Rt,ae,ke){let st=Be.flags&1536&&Be.declarations&&Vr(Be.declarations,Yi);if(!st)return;let G=Be.exports.get("export="),et=h(ct,Be,!!G,lt,ke);if(!G||!ke.has(st.fileName))return et;let Tt=ct.getTypeChecker();return Be=vd(G,Tt),d(ct,et,E(Be,void 0,lt,ke,Tt,Rt,ae))}function d(Be,...ct){let lt;for(let Rt of ct)if(!(!Rt||!Rt.length)){if(!lt){lt=Rt;continue}for(let ae of Rt){if(!ae.definition||ae.definition.type!==0){lt.push(ae);continue}let ke=ae.definition.symbol,st=Kl(lt,et=>!!et.definition&&et.definition.type===0&&et.definition.symbol===ke);if(st===-1){lt.push(ae);continue}let G=lt[st];lt[st]={definition:G.definition,references:G.references.concat(ae.references).sort((et,Tt)=>{let He=p(Be,et),ut=p(Be,Tt);if(He!==ut)return Zs(He,ut);let Ft=Hme(et),hn=Hme(Tt);return Ft.start!==hn.start?Zs(Ft.start,hn.start):Zs(Ft.length,hn.length)})}}}return lt}function p(Be,ct){let lt=ct.kind===0?Be.getSourceFile(ct.fileName):ct.node.getSourceFile();return Be.getSourceFiles().indexOf(lt)}function h(Be,ct,lt,Rt,ae){x.assert(!!ct.valueDeclaration);let ke=to(WLe(Be,Rt,ct),G=>{if(G.kind==="import"){let et=G.literal.parent;if(Kv(et)){let Tt=na(et.parent,rg);if(lt&&!Tt.qualifier)return}return sg(G.literal)}else if(G.kind==="implicit"){let et=G.literal.text!==Gv&&bP(G.referencingFile,Tt=>Tt.transformFlags&2?ig(Tt)||OT(Tt)||J0(Tt)?Tt:void 0:"skip")||G.referencingFile.statements[0]||G.referencingFile;return sg(et)}else return{kind:0,fileName:G.referencingFile.fileName,textSpan:eb(G.ref)}});if(ct.declarations)for(let G of ct.declarations)switch(G.kind){case 312:break;case 267:ae.has(G.getSourceFile().fileName)&&ke.push(sg(G.name));break;default:x.assert(!!(ct.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let st=ct.exports.get("export=");if(st?.declarations)for(let G of st.declarations){let et=G.getSourceFile();if(ae.has(et.fileName)){let Tt=dr(G)&&kr(G.left)?G.left.expression:Ll(G)?x.checkDefined(_s(G,95,et)):Po(G)||G;ke.push(sg(Tt))}}return ke.length?[{definition:{type:0,symbol:ct},references:ke}]:Xe}function m(Be){return Be.kind===148&&PT(Be.parent)&&Be.parent.operator===148}function y(Be,ct,lt){if(YP(Be.kind))return Be.kind===116&&e1(Be.parent)||Be.kind===148&&!m(Be)?void 0:Ce(ct,Be.kind,lt,Be.kind===148?m:void 0);if(Jx(Be.parent)&&Be.parent.name===Be)return he(ct,lt);if(qI(Be)&&Al(Be.parent))return[{definition:{type:2,node:Be},references:[sg(Be)]}];if(Kw(Be)){let Rt=Lz(Be.parent,Be.text);return Rt&&fe(Rt.parent,Rt)}else if(bq(Be))return fe(Be.parent,Be);if(sD(Be))return Qn(Be,ct,lt);if(Be.kind===108)return Li(Be)}function E(Be,ct,lt,Rt,ae,ke,st){let G=ct&&N(Be,ct,ae,!kn(st))||Be,et=ct?yi(ct,G):7,Tt=[],He=new j(lt,Rt,ct?A(ct):0,ae,ke,et,st,Tt),ut=!kn(st)||!G.declarations?void 0:Vr(G.declarations,Kd);if(ut)Et(ut.name,G,ut,He.createSearch(ct,Be,void 0),He,!0,!0);else if(ct&&ct.kind===90&&G.escapedName==="default"&&G.parent)_t(ct,G,He),K(ct,G,{exportingModuleSymbol:G.parent,exportKind:1},He);else{let Ft=He.createSearch(ct,G,void 0,{allSearchSymbols:ct?on(G,ct,ae,st.use===2,!!st.providePrefixAndSuffixTextForRename,!!st.implementations):[G]});S(G,He,Ft)}return Tt}function S(Be,ct,lt){let Rt=me(Be);if(Rt)ve(Rt,Rt.getSourceFile(),lt,ct,!(Yi(Rt)&&!Bo(ct.sourceFiles,Rt)));else for(let ae of ct.sourceFiles)ct.cancellationToken.throwIfCancellationRequested(),z(ae,lt,ct)}function A(Be){switch(Be.kind){case 176:case 137:return 1;case 80:if(ci(Be.parent))return x.assert(Be.parent.name===Be),2;default:return 0}}function N(Be,ct,lt,Rt){let{parent:ae}=ct;return Kd(ae)&&Rt?be(ct,Be,ae,lt):Wl(Be.declarations,ke=>{if(!ke.parent){if(Be.flags&33554432)return;x.fail(`Unexpected symbol at ${x.formatSyntaxKind(ct.kind)}: ${x.formatSymbol(Be)}`)}return gp(ke.parent)&&Hv(ke.parent.parent)?lt.getPropertyOfType(lt.getTypeFromTypeNode(ke.parent.parent),Be.name):void 0})}let D;(Be=>{Be[Be.None=0]="None",Be[Be.Constructor=1]="Constructor",Be[Be.Class=2]="Class"})(D||(D={}));function w(Be){if(!(Be.flags&33555968))return;let ct=Be.declarations&&Vr(Be.declarations,lt=>!Yi(lt)&&!ql(lt));return ct&&ct.symbol}class j{constructor(ct,lt,Rt,ae,ke,st,G,et){this.sourceFiles=ct,this.sourceFilesSet=lt,this.specialSearchKind=Rt,this.checker=ae,this.cancellationToken=ke,this.searchMeaning=st,this.options=G,this.result=et,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=v1(),this.markSeenReExportRHS=v1(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(ct){return this.sourceFilesSet.has(ct.fileName)}getImportSearches(ct,lt){return this.importTracker||(this.importTracker=Fme(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ct,lt,this.options.use===2)}createSearch(ct,lt,Rt,ae={}){let{text:ke=Yf(vl(mR(lt)||w(lt)||lt)),allSearchSymbols:st=[lt]}=ae,G=pl(ke),et=this.options.implementations&&ct?vn(ct,lt,this.checker):void 0;return{symbol:lt,comingFrom:Rt,text:ke,escapedText:G,parents:et,allSearchSymbols:st,includes:Tt=>Bo(st,Tt)}}referenceAdder(ct){let lt=ba(ct),Rt=this.symbolIdToReferences[lt];return Rt||(Rt=this.symbolIdToReferences[lt]=[],this.result.push({definition:{type:0,symbol:ct},references:Rt})),(ae,ke)=>Rt.push(sg(ae,ke))}addStringOrCommentReference(ct,lt){this.result.push({definition:void 0,references:[{kind:0,fileName:ct,textSpan:lt}]})}markSearchedSymbols(ct,lt){let Rt=rs(ct),ae=this.sourceFileToSeenSymbols[Rt]||(this.sourceFileToSeenSymbols[Rt]=new Set),ke=!1;for(let st of lt)ke=Kb(ae,ba(st))||ke;return ke}}function K(Be,ct,lt,Rt){let{importSearches:ae,singleReferences:ke,indirectUsers:st}=Rt.getImportSearches(ct,lt);if(ke.length){let G=Rt.referenceAdder(ct);for(let et of ke)B(et,Rt)&&G(et)}for(let[G,et]of ae)Ge(G.getSourceFile(),Rt.createSearch(G,et,1),Rt);if(st.length){let G;switch(lt.exportKind){case 0:G=Rt.createSearch(Be,ct,1);break;case 1:G=Rt.options.use===2?void 0:Rt.createSearch(Be,ct,1,{text:"default"});break;case 2:break}if(G)for(let et of st)z(et,G,Rt)}}function Y(Be,ct,lt,Rt,ae,ke,st,G){let et=Fme(Be,new Set(Be.map(Ft=>Ft.fileName)),ct,lt),{importSearches:Tt,indirectUsers:He,singleReferences:ut}=et(Rt,{exportKind:st?1:0,exportingModuleSymbol:ae},!1);for(let[Ft]of Tt)G(Ft);for(let Ft of ut)Fe(Ft)&&rg(Ft.parent)&&G(Ft);for(let Ft of He)for(let hn of pe(Ft,st?"default":ke)){let dn=ct.getSymbolAtLocation(hn),un=gt(dn?.declarations,U=>!!ri(U,Ll));Fe(hn)&&!yI(hn.parent)&&(dn===Rt||un)&&G(hn)}}e.eachExportReference=Y;function B(Be,ct){return Ae(Be,ct)?ct.options.use!==2?!0:Fe(Be)?!(yI(Be.parent)&&Be.escapedText==="default"):!1:!1}function ce(Be,ct){if(Be.declarations)for(let lt of Be.declarations){let Rt=lt.getSourceFile();Ge(Rt,ct.createSearch(lt,Be,0),ct,ct.includesSourceFile(Rt))}}function z(Be,ct,lt){gY(Be).get(ct.escapedText)!==void 0&&Ge(Be,ct,lt)}function Z(Be,ct){return Uy(Be.parent.parent)?ct.getPropertySymbolOfDestructuringAssignment(Be):void 0}function me(Be){let{declarations:ct,flags:lt,parent:Rt,valueDeclaration:ae}=Be;if(ae&&(ae.kind===218||ae.kind===231))return ae;if(!ct)return;if(lt&8196){let G=Vr(ct,et=>fp(et,2)||ou(et));return G?dE(G,263):void 0}if(ct.some(rO))return;let ke=Rt&&!(Be.flags&262144);if(ke&&!(eO(Rt)&&!Rt.globalExports))return;let st;for(let G of ct){let et=XT(G);if(st&&st!==et||!et||et.kind===312&&!wp(et))return;if(st=et,Ps(st)){let Tt;for(;Tt=yj(st);)st=Tt}}return ke?st.getSourceFile():st}function ge(Be,ct,lt,Rt=lt){return q(Be,ct,lt,()=>!0,Rt)||!1}e.isSymbolReferencedInFile=ge;function q(Be,ct,lt,Rt,ae=lt){let ke=dp(Be.parent,Be.parent.parent)?Va(ct.getSymbolsOfParameterPropertyDeclaration(Be.parent,Be.text)):ct.getSymbolAtLocation(Be);if(ke)for(let st of pe(lt,ke.name,ae)){if(!Fe(st)||st===Be||st.escapedText!==Be.escapedText)continue;let G=ct.getSymbolAtLocation(st);if(G===ke||ct.getShorthandAssignmentValueSymbol(st.parent)===ke||Kd(st.parent)&&be(st,G,st.parent,ct)===ke){let et=Rt(st);if(et)return et}}}e.eachSymbolReferenceInFile=q;function J(Be,ct){return jr(pe(ct,Be),ae=>!!vN(ae)).reduce((ae,ke)=>{let st=Rt(ke);return!gt(ae.declarationNames)||st===ae.depth?(ae.declarationNames.push(ke),ae.depth=st):stHe===ae)&&Rt(st,et))return!0}return!1}e.someSignatureUsage=re;function pe(Be,ct,lt=Be){return to(xe(Be,ct,lt),Rt=>{let ae=Wu(Be,Rt);return ae===Be?void 0:ae})}function xe(Be,ct,lt=Be){let Rt=[];if(!ct||!ct.length)return Rt;let ae=Be.text,ke=ae.length,st=ct.length,G=ae.indexOf(ct,lt.pos);for(;G>=0&&!(G>lt.end);){let et=G+st;(G===0||!$b(ae.charCodeAt(G-1),99))&&(et===ke||!$b(ae.charCodeAt(et),99))&&Rt.push(G),G=ae.indexOf(ct,G+st+1)}return Rt}function fe(Be,ct){let lt=Be.getSourceFile(),Rt=ct.text,ae=to(pe(lt,Rt,Be),ke=>ke===ct||Kw(ke)&&Lz(ke,Rt)===ct?sg(ke):void 0);return[{definition:{type:1,node:ct},references:ae}]}function ne(Be,ct){switch(Be.kind){case 81:if(gE(Be.parent))return!0;case 80:return Be.text.length===ct.length;case 15:case 11:{let lt=Be;return(kz(lt)||Aq(Be)||$ce(Be)||ia(Be.parent)&&gT(Be.parent)&&Be.parent.arguments[1]===Be)&<.text.length===ct.length}case 9:return kz(Be)&&Be.text.length===ct.length;case 90:return ct.length===7;default:return!1}}function he(Be,ct){let lt=va(Be,Rt=>(ct.throwIfCancellationRequested(),to(pe(Rt,"meta",Rt),ae=>{let ke=ae.parent;if(Jx(ke))return sg(ke)})));return lt.length?[{definition:{type:2,node:lt[0].node},references:lt}]:void 0}function Ce(Be,ct,lt,Rt){let ae=va(Be,ke=>(lt.throwIfCancellationRequested(),to(pe(ke,da(ct),ke),st=>{if(st.kind===ct&&(!Rt||Rt(st)))return sg(st)})));return ae.length?[{definition:{type:2,node:ae[0].node},references:ae}]:void 0}function Ge(Be,ct,lt,Rt=!0){return lt.cancellationToken.throwIfCancellationRequested(),ve(Be,Be,ct,lt,Rt)}function ve(Be,ct,lt,Rt,ae){if(Rt.markSearchedSymbols(ct,lt.allSearchSymbols))for(let ke of xe(ct,lt.text,Be))De(ct,ke,lt,Rt,ae)}function Ae(Be,ct){return!!(qT(Be)&ct.searchMeaning)}function De(Be,ct,lt,Rt,ae){let ke=Wu(Be,ct);if(!ne(ke,lt.text)){!Rt.options.implementations&&(Rt.options.findInStrings&&y1(Be,ct)||Rt.options.findInComments&&ude(Be,ct))&&Rt.addStringOrCommentReference(Be.fileName,gd(ct,lt.text.length));return}if(!Ae(ke,Rt))return;let st=Rt.checker.getSymbolAtLocation(ke);if(!st)return;let G=ke.parent;if(Qu(G)&&G.propertyName===ke)return;if(Kd(G)){x.assert(ke.kind===80),Et(ke,st,G,lt,Rt,ae);return}if(rN(G)&&G.isNameFirst&&G.typeExpression&&FT(G.typeExpression.type)&&G.typeExpression.type.jsDocPropertyTags&&Nn(G.typeExpression.type.jsDocPropertyTags)){Le(G.typeExpression.type.jsDocPropertyTags,ke,lt,Rt);return}let et=si(lt,st,ke,Rt);if(!et){Wt(st,lt,Rt);return}switch(Rt.specialSearchKind){case 0:ae&&_t(ke,et,Rt);break;case 1:Je(ke,Be,lt,Rt);break;case 2:pt(ke,lt,Rt);break;default:x.assertNever(Rt.specialSearchKind)}ir(ke)&&Xa(ke.parent)&&R0(ke.parent.parent.parent)&&(st=ke.parent.symbol,!st)||tt(ke,st,lt,Rt)}function Le(Be,ct,lt,Rt){let ae=Rt.referenceAdder(lt.symbol);_t(ct,lt.symbol,Rt),gn(Be,ke=>{Su(ke.name)&&ae(ke.name.left)})}function Et(Be,ct,lt,Rt,ae,ke,st){x.assert(!st||!!ae.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:G,propertyName:et,name:Tt}=lt,He=G.parent,ut=be(Be,ct,lt,ae.checker);if(!st&&!Rt.includes(ut))return;if(et?Be===et?(He.moduleSpecifier||Ft(),ke&&ae.options.use!==2&&ae.markSeenReExportRHS(Tt)&&_t(Tt,x.checkDefined(lt.symbol),ae)):ae.markSeenReExportRHS(Be)&&Ft():ae.options.use===2&&Tt.escapedText==="default"||Ft(),!kn(ae.options)||st){let dn=Be.escapedText==="default"||lt.name.escapedText==="default"?1:0,un=x.checkDefined(lt.symbol),U=zme(un,dn,ae.checker);U&&K(Be,un,U,ae)}if(Rt.comingFrom!==1&&He.moduleSpecifier&&!et&&!kn(ae.options)){let hn=ae.checker.getExportSpecifierLocalTargetSymbol(lt);hn&&ce(hn,ae)}function Ft(){ke&&_t(Be,ut,ae)}}function be(Be,ct,lt,Rt){return ze(Be,lt)&&Rt.getExportSpecifierLocalTargetSymbol(lt)||ct}function ze(Be,ct){let{parent:lt,propertyName:Rt,name:ae}=ct;return x.assert(Rt===Be||ae===Be),Rt?Rt===Be:!lt.parent.moduleSpecifier}function tt(Be,ct,lt,Rt){let ae=BLe(Be,ct,Rt.checker,lt.comingFrom===1);if(!ae)return;let{symbol:ke}=ae;ae.kind===0?kn(Rt.options)||ce(ke,Rt):K(Be,ke,ae.exportInfo,Rt)}function Wt({flags:Be,valueDeclaration:ct},lt,Rt){let ae=Rt.checker.getShorthandAssignmentValueSymbol(ct),ke=ct&&Po(ct);!(Be&33554432)&&ke&<.includes(ae)&&_t(ke,ae,Rt)}function _t(Be,ct,lt){let{kind:Rt,symbol:ae}="kind"in ct?ct:{kind:void 0,symbol:ct};if(lt.options.use===2&&Be.kind===90)return;let ke=lt.referenceAdder(ae);lt.options.implementations?Xt(Be,ke,lt):ke(Be,Rt)}function Je(Be,ct,lt,Rt){JP(Be)&&_t(Be,lt.symbol,Rt);let ae=()=>Rt.referenceAdder(lt.symbol);if(ci(Be.parent))x.assert(Be.kind===90||Be.parent.name===Be),Zt(lt.symbol,ct,ae());else{let ke=Ba(Be);ke&&(Dn(ke,ae()),pn(ke,Rt))}}function pt(Be,ct,lt){_t(Be,ct.symbol,lt);let Rt=Be.parent;if(lt.options.use===2||!ci(Rt))return;x.assert(Rt.name===Be);let ae=lt.referenceAdder(ct.symbol);for(let ke of Rt.members)bI(ke)&&ra(ke)&&ke.body&&ke.body.forEachChild(function st(G){G.kind===110?ae(G):!$o(G)&&!ci(G)&&G.forEachChild(st)})}function Zt(Be,ct,lt){let Rt=en(Be);if(Rt&&Rt.declarations)for(let ae of Rt.declarations){let ke=_s(ae,137,ct);x.assert(ae.kind===176&&!!ke),lt(ke)}Be.exports&&Be.exports.forEach(ae=>{let ke=ae.valueDeclaration;if(ke&&ke.kind===174){let st=ke.body;st&&ua(st,110,G=>{JP(G)&<(G)})}})}function en(Be){return Be.members&&Be.members.get("__constructor")}function Dn(Be,ct){let lt=en(Be.symbol);if(lt&<.declarations)for(let Rt of lt.declarations){x.assert(Rt.kind===176);let ae=Rt.body;ae&&ua(ae,108,ke=>{gq(ke)&&ct(ke)})}}function Kn(Be){return!!en(Be.symbol)}function pn(Be,ct){if(Kn(Be))return;let lt=Be.symbol,Rt=ct.createSearch(void 0,lt,void 0);S(lt,ct,Rt)}function Xt(Be,ct,lt){if(kg(Be)&&$i(Be.parent)){ct(Be);return}if(Be.kind!==80)return;Be.parent.kind===304&&Io(Be,lt.checker,ct);let Rt=Kt(Be);if(Rt){ct(Rt);return}let ae=Fn(Be,G=>!Su(G.parent)&&!ji(G.parent)&&!lT(G.parent)),ke=ae.parent;if(hF(ke)&&ke.type===ae&<.markSeenContainingTypeReference(ke))if(Mv(ke))st(ke.initializer);else if($o(ke)&&ke.body){let G=ke.body;G.kind===241?I0(G,et=>{et.expression&&st(et.expression)}):st(G)}else cT(ke)&&st(ke.expression);function st(G){hi(G)&&ct(G)}}function Kt(Be){return Fe(Be)||kr(Be)?Kt(Be.parent):zy(Be)?ri(Be.parent.parent,jm(ci,pu)):void 0}function hi(Be){switch(Be.kind){case 217:return hi(Be.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function uo(Be,ct,lt,Rt){if(Be===ct)return!0;let ae=ba(Be)+","+ba(ct),ke=lt.get(ae);if(ke!==void 0)return ke;lt.set(ae,!1);let st=!!Be.declarations&&Be.declarations.some(G=>bN(G).some(et=>{let Tt=Rt.getTypeAtLocation(et);return!!Tt&&!!Tt.symbol&&uo(Tt.symbol,ct,lt,Rt)}));return lt.set(ae,st),st}function Li(Be){let ct=S2(Be,!1);if(!ct)return;let lt=256;switch(ct.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:lt&=Wv(ct),ct=ct.parent;break;default:return}let Rt=ct.getSourceFile(),ae=to(pe(Rt,"super",ct),ke=>{if(ke.kind!==108)return;let st=S2(ke,!1);return st&&ra(st)===!!lt&&st.parent.symbol===ct.symbol?sg(ke):void 0});return[{definition:{type:0,symbol:ct.symbol},references:ae}]}function So(Be){return Be.kind===80&&Be.parent.kind===169&&Be.parent.name===Be}function Qn(Be,ct,lt){let Rt=Lu(Be,!1,!1),ae=256;switch(Rt.kind){case 174:case 173:if(bm(Rt)){ae&=Wv(Rt),Rt=Rt.parent;break}case 172:case 171:case 176:case 177:case 178:ae&=Wv(Rt),Rt=Rt.parent;break;case 312:if(oc(Rt)||So(Be))return;case 262:case 218:break;default:return}let ke=va(Rt.kind===312?ct:[Rt.getSourceFile()],G=>(lt.throwIfCancellationRequested(),pe(G,"this",Yi(Rt)?G:Rt).filter(et=>{if(!sD(et))return!1;let Tt=Lu(et,!1,!1);if(!b_(Tt))return!1;switch(Rt.kind){case 218:case 262:return Rt.symbol===Tt.symbol;case 174:case 173:return bm(Rt)&&Rt.symbol===Tt.symbol;case 231:case 263:case 210:return Tt.parent&&b_(Tt.parent)&&Rt.symbol===Tt.parent.symbol&&ra(Tt)===!!ae;case 312:return Tt.kind===312&&!oc(Tt)&&!So(et)}}))).map(G=>sg(G));return[{definition:{type:3,node:Wl(ke,G=>Ao(G.node.parent)?G.node:void 0)||Be},references:ke}]}function Ur(Be,ct,lt,Rt){let ae=Fz(Be,lt),ke=va(ct,st=>(Rt.throwIfCancellationRequested(),to(pe(st,Be.text),G=>{if(as(G)&&G.text===Be.text)if(ae){let et=Fz(G,lt);if(ae!==lt.getStringType()&&(ae===et||Er(G,lt)))return sg(G,2)}else return HI(G)&&!IT(G,st)?void 0:sg(G,2)})));return[{definition:{type:4,node:Be},references:ke}]}function Er(Be,ct){if(_p(Be.parent))return ct.getPropertyOfType(ct.getTypeAtLocation(Be.parent.parent),Be.text)}function on(Be,ct,lt,Rt,ae,ke){let st=[];return Ye(Be,ct,lt,Rt,!(Rt&&ae),(G,et,Tt)=>{Tt&&In(Be)!==In(Tt)&&(Tt=void 0),st.push(Tt||et||G)},()=>!ke),st}function Ye(Be,ct,lt,Rt,ae,ke,st){let G=NO(ct);if(G){let dn=lt.getShorthandAssignmentValueSymbol(ct.parent);if(dn&&Rt)return ke(dn,void 0,void 0,3);let un=lt.getContextualType(G.parent),U=un&&Wl(J7(G,lt,un,!0),ie=>Ft(ie,4));if(U)return U;let Me=Z(ct,lt),Nt=Me&&ke(Me,void 0,void 0,4);if(Nt)return Nt;let k=dn&&ke(dn,void 0,void 0,3);if(k)return k}let et=s(ct,Be,lt);if(et){let dn=ke(et,void 0,void 0,1);if(dn)return dn}let Tt=Ft(Be);if(Tt)return Tt;if(Be.valueDeclaration&&dp(Be.valueDeclaration,Be.valueDeclaration.parent)){let dn=lt.getSymbolsOfParameterPropertyDeclaration(na(Be.valueDeclaration,Ao),Be.name);return x.assert(dn.length===2&&!!(dn[0].flags&1)&&!!(dn[1].flags&4)),Ft(Be.flags&1?dn[1]:dn[0])}let He=cl(Be,281);if(!Rt||He&&!He.propertyName){let dn=He&<.getExportSpecifierLocalTargetSymbol(He);if(dn){let un=ke(dn,void 0,void 0,1);if(un)return un}}if(!Rt){let dn;return ae?dn=rO(ct.parent)?Qz(lt,ct.parent):void 0:dn=hn(Be,lt),dn&&Ft(dn,4)}if(x.assert(Rt),ae){let dn=hn(Be,lt);return dn&&Ft(dn,4)}function Ft(dn,un){return Wl(lt.getRootSymbols(dn),U=>ke(dn,U,void 0,un)||(U.parent&&U.parent.flags&96&&st(U)?Ot(U.parent,U.name,lt,Me=>ke(dn,U,Me,un)):void 0))}function hn(dn,un){let U=cl(dn,208);if(U&&rO(U))return Qz(un,U)}}function Ot(Be,ct,lt,Rt){let ae=new Map;return ke(Be);function ke(st){if(!(!(st.flags&96)||!Em(ae,ba(st))))return Wl(st.declarations,G=>Wl(bN(G),et=>{let Tt=lt.getTypeAtLocation(et),He=Tt&&Tt.symbol&<.getPropertyOfType(Tt,ct);return Tt&&He&&(Wl(lt.getRootSymbols(He),Rt)||ke(Tt.symbol))}))}}function In(Be){return Be.valueDeclaration?!!(lu(Be.valueDeclaration)&256):!1}function si(Be,ct,lt,Rt){let{checker:ae}=Rt;return Ye(ct,lt,ae,!1,Rt.options.use!==2||!!Rt.options.providePrefixAndSuffixTextForRename,(ke,st,G,et)=>(G&&In(ct)!==In(G)&&(G=void 0),Be.includes(G||st||ke)?{symbol:st&&!(Tl(ke)&6)?st:ke,kind:et}:void 0),ke=>!(Be.parents&&!Be.parents.some(st=>uo(ke.parent,st,Rt.inheritsFromCache,ae))))}function yi(Be,ct){let lt=qT(Be),{declarations:Rt}=ct;if(Rt){let ae;do{ae=lt;for(let ke of Rt){let st=jw(ke);st<&&(lt|=st)}}while(lt!==ae)}return lt}e.getIntersectingMeaningFromDeclarations=yi;function $i(Be){return Be.flags&33554432?!(pu(Be)||Tm(Be)):qx(Be)?Mv(Be):ws(Be)?!!Be.body:ci(Be)||s2(Be)}function Io(Be,ct,lt){let Rt=ct.getSymbolAtLocation(Be),ae=ct.getShorthandAssignmentValueSymbol(Rt.valueDeclaration);if(ae)for(let ke of ae.getDeclarations())jw(ke)&1&<(ke)}e.getReferenceEntriesForShorthandPropertyAssignment=Io;function ua(Be,ct,lt){Go(Be,Rt=>{Rt.kind===ct&<(Rt),ua(Rt,ct,lt)})}function Ba(Be){return Uj(Mz(Be).parent)}function vn(Be,ct,lt){let Rt=aD(Be)?Be.parent:void 0,ae=Rt&<.getTypeAtLocation(Rt.expression),ke=to(ae&&(ae.isUnionOrIntersection()?ae.types:ae.symbol===ct.parent?void 0:[ae]),st=>st.symbol&&st.symbol.flags&96?st.symbol:void 0);return ke.length===0?void 0:ke}function kn(Be){return Be.use===2&&Be.providePrefixAndSuffixTextForRename}})(N1||(N1={}))}}),Ms={};xa(Ms,{Core:()=>N1,DefinitionKind:()=>Jme,EntryKind:()=>qme,ExportKind:()=>Gme,FindReferencesUse:()=>Xme,ImportExport:()=>Vme,createImportTracker:()=>Fme,findModuleReferences:()=>WLe,findReferenceOrRenameEntries:()=>Het,findReferencedSymbols:()=>Vet,getContextNode:()=>eA,getExportInfo:()=>zme,getImplementationsAtPosition:()=>Uet,getImportOrExportSymbol:()=>BLe,getReferenceEntriesForNode:()=>VLe,getTextSpanOfEntry:()=>Hme,isContextWithStartAndEndNode:()=>jme,isDeclarationOfSymbol:()=>KLe,isWriteAccessForReference:()=>Kme,nodeEntry:()=>sg,toContextSpan:()=>Ume,toHighlightSpan:()=>Qet,toReferenceEntry:()=>HLe,toRenameLocation:()=>Jet});var Yme=bt({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";Bet(),ett()}});function JLe(e,t,r,i,o){var s;let l=XLe(t,r,e),d=l&&[ptt(l.reference.fileName,l.fileName,l.unverified)]||Xe;if(l?.file)return d;let p=Wu(t,r);if(p===t)return;let{parent:h}=p,m=e.getTypeChecker();if(p.kind===164||Fe(p)&&U4(h)&&h.tagName===p)return ntt(m,p)||Xe;if(Kw(p)){let D=Lz(p.parent,p.text);return D?[$me(m,D,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:let D=Fn(p.parent,j=>Al(j)?"quit":ws(j));return D?[_B(m,D)]:void 0;case 90:if(!mP(p.parent))break;case 84:let w=Fn(p.parent,uP);if(w)return[utt(w,t)];break}if(p.kind===135){let D=Fn(p,j=>ws(j));return D&>(D.modifiers,j=>j.kind===134)?[_B(m,D)]:void 0}if(p.kind===127){let D=Fn(p,j=>ws(j));return D&&D.asteriskToken?[_B(m,D)]:void 0}if(qI(p)&&Al(p.parent)){let D=p.parent.parent,{symbol:w,failedAliasResolution:j}=mQ(D,m,o),K=jr(D.members,Al),Y=w?m.symbolToString(w,D):"",B=p.getSourceFile();return mn(K,ce=>{let{pos:z}=R_(ce);return z=Na(B.text,z),$me(m,ce,"constructor","static {}",Y,!1,j,{start:z,length:6})})}let{symbol:y,failedAliasResolution:E}=mQ(p,m,o),S=p;if(i&&E){let D=gn([p,...y?.declarations||Xe],j=>Fn(j,Vre)),w=D&&eR(D);w&&({symbol:y,failedAliasResolution:E}=mQ(w,m,o),S=w)}if(!y&&$z(S)){let D=(s=e.getResolvedModuleFromModuleSpecifier(S))==null?void 0:s.resolvedModule;if(D)return[{name:S.text,fileName:D.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:gd(0,0),failedAliasResolution:E,isAmbient:Ed(D.resolvedFileName),unverified:S!==p}]}if(!y)return Eo(d,ltt(p,m));if(i&&oo(y.declarations,D=>D.getSourceFile().fileName===t.fileName))return;let A=mtt(m,p);if(A&&!(au(p.parent)&&_tt(A))){let D=_B(m,A,E);if(m.getRootSymbols(y).some(w=>ttt(w,A)))return[D];{let w=fM(m,y,p,E,A)||Xe;return p.kind===108?[D,...w]:[...w,D]}}if(p.parent.kind===304){let D=m.getShorthandAssignmentValueSymbol(y.valueDeclaration),w=D?.declarations?D.declarations.map(j=>VO(j,m,D,p,!1,E)):Xe;return Eo(w,qLe(m,p))}if(rc(p)&&Xa(h)&&tm(h.parent)&&p===(h.propertyName||h.name)){let D=nO(p),w=m.getTypeAtLocation(h.parent);return D===void 0?Xe:va(w.isUnion()?w.types:[w],j=>{let K=j.getProperty(D);return K&&fM(m,K,p)})}let N=qLe(m,p);return Eo(d,N.length?N:fM(m,y,p,E))}function ttt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Mc(t.parent)||!E0(t.parent)&&e===((r=ri(t.parent,b_))==null?void 0:r.symbol)}function qLe(e,t){let r=NO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return va(J7(r,e,i,!1),o=>fM(e,o,t))}return Xe}function ntt(e,t){let r=Fn(t,$c);if(!(r&&r.name))return;let i=Fn(r,ci);if(!i)return;let o=S_(i);if(!o)return;let s=fs(o.expression),l=Zc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let d=Vi(Ux(r.name)),p=pc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),d):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),d);if(p)return fM(e,p,t)}function XLe(e,t,r){var i,o;let s=mM(e.referencedFiles,t);if(s){let p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}let l=mM(e.typeReferenceDirectives,t);if(l){let p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,h=p&&r.getSourceFile(p.resolvedFileName);return h&&{reference:l,fileName:h.fileName,file:h,unverified:!1}}let d=mM(e.libReferenceDirectives,t);if(d){let p=r.getLibFileFromReference(d);return p&&{reference:d,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let p=lD(e,t),h;if($z(p)&&Yc(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){let m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,y=m||Av(oi(e.fileName),p.text);return{file:r.getSourceFile(y),fileName:y,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function rtt(e,t){let r=t.symbol.name;if(!Zme.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function YLe(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!Zme.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function itt(e,t,r,i){var o,s;if(Lr(t)&4&&rtt(e,t))return GO(e.getTypeArguments(t)[0],e,r,i);if(YLe(e,t)&&t.aliasTypeArguments)return GO(t.aliasTypeArguments[0],e,r,i);if(Lr(t)&32&&t.target&&YLe(e,t.target)){let l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Tm(l)&&If(l.type)&&l.type.typeArguments)return GO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function ott(e,t,r){let i=Wu(t,r);if(i===t)return;if(Jx(i.parent)&&i.parent.name===i)return GO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=mQ(i,e,!1);if(!o)return;let l=e.getTypeOfSymbolAtLocation(o,i),d=att(o,l,e),p=d&&GO(d,e,i,s),[h,m]=p&&p.length!==0?[d,p]:[l,GO(l,e,i,s)];return m.length?[...itt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?fM(e,vd(o,e),i,s):void 0}function GO(e,t,r,i){return va(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&fM(t,o.symbol,r,i))}function att(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&wi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Va(i))}}function stt(e,t,r){let i=JLe(e,t,r);if(!i||i.length===0)return;let o=mM(t.referencedFiles,r)||mM(t.typeReferenceDirectives,r)||mM(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:eb(o)};let s=Wu(t,r),l=gd(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function ltt(e,t){return to(t.getIndexInfosAtLocation(e),r=>r.declaration&&_B(t,r.declaration))}function mQ(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&ctt(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function ctt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function dtt(e){if(!gN(e))return!1;let t=Fn(e,r=>Mc(r)?!0:gN(r)?!1:"quit");return!!t&&zl(t)===5}function fM(e,t,r,i,o){let s=jr(t.declarations,y=>y!==o),l=jr(s,y=>!dtt(y)),d=gt(l)?l:s;return p()||h()||mn(d,y=>VO(y,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(JP(r)||r.kind===137)){let y=Vr(s,ci)||x.fail("Expected declaration to have at least one class-like declaration");return m(y.members,!0)}}function h(){return yq(r)||Iq(r)?m(s,!1):void 0}function m(y,E){if(!y)return;let S=y.filter(E?Pl:$o),A=S.filter(N=>!!N.body);return S.length?A.length!==0?A.map(N=>VO(N,e,t,r)):[VO(Ja(S),e,t,r,!1,i)]:void 0}}function VO(e,t,r,i,o,s){let l=t.symbolToString(r),d=Xy.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return $me(t,e,d,l,p,o,s)}function $me(e,t,r,i,o,s,l,d){let p=t.getSourceFile();if(!d){let h=Po(t)||t;d=Iu(h,p)}return{fileName:p.fileName,textSpan:d,kind:r,name:i,containerKind:void 0,containerName:o,...Ms.toContextSpan(d,p,Ms.getContextNode(t)),isLocal:!Qme(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function utt(e,t){let r=Ms.getContextNode(e),i=Iu(jme(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Ms.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Qme(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Mv(t.parent)&&t.parent.initializer===t)return Qme(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(fp(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Qme(e,t.parent);default:return!1}}function _B(e,t,r){return VO(t,e,t.symbol,t,!1,r)}function mM(e,t){return Vr(e,r=>KL(r,t))}function ptt(e,t,r){return{fileName:t,textSpan:dc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function ftt(e){let t=Fn(e,i=>!aD(i)),r=t?.parent;return r&&E0(r)&&BF(r)===t?r:void 0}function mtt(e,t){let r=ftt(t),i=r&&e.getResolvedSignature(r);return ri(i&&i.declaration,o=>$o(o)&&!hh(o))}function _tt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var Zme,htt=bt({"src/services/goToDefinition.ts"(){"use strict";ai(),Yme(),Zme=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),xD={};xa(xD,{createDefinitionInfo:()=>VO,findReferenceInPosition:()=>mM,getDefinitionAndBoundSpan:()=>stt,getDefinitionAtPosition:()=>JLe,getReferenceAtPosition:()=>XLe,getTypeDefinitionAtPosition:()=>ott});var gtt=bt({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";htt()}});function ytt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function vtt(e){return e.includeInlayParameterNameHints==="literals"}function $Le(e){return e.interactiveInlayHints===!0}function btt(e){let{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,d=r.getCompilerOptions(),p=of(t,s),h=r.getTypeChecker(),m=[];return y(t),m;function y(fe){if(!(!fe||fe.getFullWidth()===0)){switch(fe.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(ZW(i,fe.pos,fe.getFullWidth())&&!(ji(fe)&&!zy(fe)))return s.includeInlayVariableTypeHints&&wi(fe)||s.includeInlayPropertyDeclarationTypeHints&&Uo(fe)?j(fe):s.includeInlayEnumMemberValueHints&&Y0(fe)?D(fe):ytt(s)&&(ia(fe)||j0(fe))?K(fe):(s.includeInlayFunctionParameterTypeHints&&ws(fe)&&z6(fe)&&me(fe),s.includeInlayFunctionLikeReturnTypeHints&&E(fe)&&z(fe)),Go(fe,y)}}function E(fe){return Os(fe)||Ps(fe)||Ec(fe)||Ul(fe)||Qp(fe)}function S(fe,ne,he,Ce){let Ge=`${Ce?"...":""}${fe}`,ve;$Le(s)?(ve=[xe(Ge,ne),{text:":"}],Ge=""):Ge+=":",m.push({text:Ge,position:he,kind:"Parameter",whitespaceAfter:!0,displayParts:ve})}function A(fe,ne){m.push({text:typeof fe=="string"?`: ${fe}`:"",displayParts:typeof fe=="string"?void 0:[{text:": "},...fe],position:ne,kind:"Type",whitespaceBefore:!0})}function N(fe,ne){m.push({text:`= ${fe}`,position:ne,kind:"Enum",whitespaceBefore:!0})}function D(fe){if(fe.initializer)return;let ne=h.getConstantValue(fe);ne!==void 0&&N(ne.toString(),fe.end)}function w(fe){return fe.symbol&&fe.symbol.flags&1536}function j(fe){if(!fe.initializer||Qo(fe.name)||wi(fe)&&!pe(fe)||yd(fe))return;let he=h.getTypeAtLocation(fe);if(w(he))return;let Ce=J(he);if(Ce){let Ge=typeof Ce=="string"?Ce:Ce.map(Ae=>Ae.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&qb(fe.name.getText(),Ge))return;A(Ce,fe.name.end)}}function K(fe){let ne=fe.arguments;if(!ne||!ne.length)return;let he=[],Ce=h.getResolvedSignatureForSignatureHelp(fe,he);if(!Ce||!he.length)return;let Ge=0;for(let ve of ne){let Ae=fs(ve);if(vtt(s)&&!ce(Ae)){Ge++;continue}let De=0;if(Jm(Ae)){let Et=h.getTypeAtLocation(Ae.expression);if(h.isTupleType(Et)){let{elementFlags:be,fixedLength:ze}=Et.target;if(ze===0)continue;let tt=Kl(be,_t=>!(_t&1));(tt<0?ze:tt)>0&&(De=tt<0?ze:tt)}}let Le=h.getParameterIdentifierInfoAtPosition(Ce,Ge);if(Ge=Ge+(De||1),Le){let{parameter:Et,parameterName:be,isRestParameter:ze}=Le;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!Y(Ae,be))&&!ze)continue;let Wt=Vi(be);if(B(Ae,Wt))continue;S(Wt,Et,ve.getStart(),ze)}}}function Y(fe,ne){return Fe(fe)?fe.text===ne:kr(fe)?fe.name.text===ne:!1}function B(fe,ne){if(!Yp(ne,d.target,ik(t.scriptKind)))return!1;let he=jh(l,fe.pos);if(!he?.length)return!1;let Ce=QLe(ne);return gt(he,Ge=>Ce.test(l.substring(Ge.pos,Ge.end)))}function ce(fe){switch(fe.kind){case 224:{let ne=fe.operand;return b0(ne)||Fe(ne)&&qN(ne.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let ne=fe.escapedText;return re(ne)||qN(ne)}}return b0(fe)}function z(fe){if(Os(fe)&&!_s(fe,21,t)||$f(fe)||!fe.body)return;let he=h.getSignatureFromDeclaration(fe);if(!he)return;let Ce=h.getReturnTypeOfSignature(he);if(w(Ce))return;let Ge=J(Ce);Ge&&A(Ge,Z(fe))}function Z(fe){let ne=_s(fe,22,t);return ne?ne.end:fe.parameters.end}function me(fe){let ne=h.getSignatureFromDeclaration(fe);if(ne)for(let he=0;he{let Ge=h.typeToTypeNode(fe,void 0,71286784);x.assertIsDefined(Ge,"should always get typenode"),he.writeNode(4,Ge,t,Ce)})}function J(fe){if(!$Le(s))return q(fe);let he=h.typeToTypeNode(fe,void 0,71286784);x.assertIsDefined(he,"should always get typenode");let Ce=[];return Ge(he),Ce;function Ge(Le){var Et,be;if(!Le)return;let ze=da(Le.kind);if(ze){Ce.push({text:ze});return}if(b0(Le)){Ce.push({text:De(Le)});return}switch(Le.kind){case 80:x.assertNode(Le,Fe);let tt=gr(Le),Wt=Le.symbol&&Le.symbol.declarations&&Le.symbol.declarations.length&&Po(Le.symbol.declarations[0]);Wt?Ce.push(xe(tt,Wt)):Ce.push({text:tt});break;case 166:x.assertNode(Le,Su),Ge(Le.left),Ce.push({text:"."}),Ge(Le.right);break;case 182:x.assertNode(Le,Lk),Le.assertsModifier&&Ce.push({text:"asserts "}),Ge(Le.parameterName),Le.type&&(Ce.push({text:" is "}),Ge(Le.type));break;case 183:x.assertNode(Le,If),Ge(Le.typeName),Le.typeArguments&&(Ce.push({text:"<"}),Ae(Le.typeArguments,", "),Ce.push({text:">"}));break;case 168:x.assertNode(Le,fl),Le.modifiers&&Ae(Le.modifiers," "),Ge(Le.name),Le.constraint&&(Ce.push({text:" extends "}),Ge(Le.constraint)),Le.default&&(Ce.push({text:" = "}),Ge(Le.default));break;case 169:x.assertNode(Le,Ao),Le.modifiers&&Ae(Le.modifiers," "),Le.dotDotDotToken&&Ce.push({text:"..."}),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 185:x.assertNode(Le,RR),Ce.push({text:"new "}),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 186:x.assertNode(Le,YI),Ce.push({text:"typeof "}),Ge(Le.exprName),Le.typeArguments&&(Ce.push({text:"<"}),Ae(Le.typeArguments,", "),Ce.push({text:">"}));break;case 187:x.assertNode(Le,gp),Ce.push({text:"{"}),Le.members.length&&(Ce.push({text:" "}),Ae(Le.members,"; "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 188:x.assertNode(Le,kk),Ge(Le.elementType),Ce.push({text:"[]"});break;case 189:x.assertNode(Le,$I),Ce.push({text:"["}),Ae(Le.elements,", "),Ce.push({text:"]"});break;case 202:x.assertNode(Le,DR),Le.dotDotDotToken&&Ce.push({text:"..."}),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Ce.push({text:": "}),Ge(Le.type);break;case 190:x.assertNode(Le,O4),Ge(Le.type),Ce.push({text:"?"});break;case 191:x.assertNode(Le,W4),Ce.push({text:"..."}),Ge(Le.type);break;case 192:x.assertNode(Le,Hv),Ae(Le.types," | ");break;case 193:x.assertNode(Le,QI),Ae(Le.types," & ");break;case 194:x.assertNode(Le,ZI),Ge(Le.checkType),Ce.push({text:" extends "}),Ge(Le.extendsType),Ce.push({text:" ? "}),Ge(Le.trueType),Ce.push({text:" : "}),Ge(Le.falseType);break;case 195:x.assertNode(Le,CT),Ce.push({text:"infer "}),Ge(Le.typeParameter);break;case 196:x.assertNode(Le,NT),Ce.push({text:"("}),Ge(Le.type),Ce.push({text:")"});break;case 198:x.assertNode(Le,PT),Ce.push({text:`${da(Le.operator)} `}),Ge(Le.type);break;case 199:x.assertNode(Le,MT),Ge(Le.objectType),Ce.push({text:"["}),Ge(Le.indexType),Ce.push({text:"]"});break;case 200:x.assertNode(Le,CR),Ce.push({text:"{ "}),Le.readonlyToken&&(Le.readonlyToken.kind===40?Ce.push({text:"+"}):Le.readonlyToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"readonly "})),Ce.push({text:"["}),Ge(Le.typeParameter),Le.nameType&&(Ce.push({text:" as "}),Ge(Le.nameType)),Ce.push({text:"]"}),Le.questionToken&&(Le.questionToken.kind===40?Ce.push({text:"+"}):Le.questionToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"?"})),Ce.push({text:": "}),Le.type&&Ge(Le.type),Ce.push({text:"; }"});break;case 201:x.assertNode(Le,Kv),Ge(Le.literal);break;case 184:x.assertNode(Le,hh),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 205:x.assertNode(Le,rg),Le.isTypeOf&&Ce.push({text:"typeof "}),Ce.push({text:"import("}),Ge(Le.argument),Le.assertions&&(Ce.push({text:", { assert: "}),Ae(Le.assertions.assertClause.elements,", "),Ce.push({text:" }"})),Ce.push({text:")"}),Le.qualifier&&(Ce.push({text:"."}),Ge(Le.qualifier)),Le.typeArguments&&(Ce.push({text:"<"}),Ae(Le.typeArguments,", "),Ce.push({text:">"}));break;case 171:x.assertNode(Le,_p),(Et=Le.modifiers)!=null&&Et.length&&(Ae(Le.modifiers," "),Ce.push({text:" "})),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 181:x.assertNode(Le,G0),Ce.push({text:"["}),Ae(Le.parameters,", "),Ce.push({text:"]"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 173:x.assertNode(Le,_h),(be=Le.modifiers)!=null&&be.length&&(Ae(Le.modifiers," "),Ce.push({text:" "})),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),ve(Le),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 179:x.assertNode(Le,XI),ve(Le),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 207:x.assertNode(Le,V0),Ce.push({text:"["}),Ae(Le.elements,", "),Ce.push({text:"]"});break;case 206:x.assertNode(Le,tm),Ce.push({text:"{"}),Le.elements.length&&(Ce.push({text:" "}),Ae(Le.elements,", "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 208:x.assertNode(Le,Xa),Ge(Le.name);break;case 224:x.assertNode(Le,qv),Ce.push({text:da(Le.operator)}),Ge(Le.operand);break;case 203:x.assertNode(Le,dae),Ge(Le.head),Le.templateSpans.forEach(Ge);break;case 16:x.assertNode(Le,KI),Ce.push({text:De(Le)});break;case 204:x.assertNode(Le,eH),Ge(Le.type),Ge(Le.literal);break;case 17:x.assertNode(Le,YU),Ce.push({text:De(Le)});break;case 18:x.assertNode(Le,M4),Ce.push({text:De(Le)});break;case 197:x.assertNode(Le,wk),Ce.push({text:"this"});break;default:x.failBadSyntaxKind(Le)}}function ve(Le){Le.typeParameters&&(Ce.push({text:"<"}),Ae(Le.typeParameters,", "),Ce.push({text:">"})),Ce.push({text:"("}),Ae(Le.parameters,", "),Ce.push({text:")"})}function Ae(Le,Et){Le.forEach((be,ze)=>{ze>0&&Ce.push({text:Et}),Ge(be)})}function De(Le){switch(Le.kind){case 11:return p===0?`'${Qh(Le.text,39)}'`:`"${Qh(Le.text,34)}"`;case 16:case 17:case 18:{let Et=Le.rawText??Lj(Qh(Le.text,96));switch(Le.kind){case 16:return"`"+Et+"${";case 17:return"}"+Et+"${";case 18:return"}"+Et+"`"}}}return Le.text}}function re(fe){return fe==="undefined"}function pe(fe){if((P0(fe)||wi(fe)&&Kx(fe))&&fe.initializer){let ne=fs(fe.initializer);return!(ce(ne)||j0(ne)||Ma(ne)||cT(ne))}return!0}function xe(fe,ne){let he=ne.getSourceFile();return{text:fe,span:Iu(ne,he),file:he.fileName}}}var QLe,Ett=bt({"src/services/inlayHints.ts"(){"use strict";ai(),QLe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),_Q={};xa(_Q,{provideInlayHints:()=>btt});var Stt=bt({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";Ett()}});function Ttt(e,t){let r=[];return qq(e,i=>{for(let o of Itt(i)){let s=Xm(o)&&o.tags&&Vr(o.tags,d=>d.kind===334&&(d.tagName.escapedText==="inheritDoc"||d.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||Xm(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(d=>d.kind===353||d.kind===345)&&!o.tags.some(d=>d.kind===348||d.kind===349))continue;let l=o.comment?RD(o.comment,t):[];s&&s.comment&&(l=l.concat(RD(s.comment,t))),Bo(r,l,Att)||r.push(l)}}),pm(DG(r,[pD()]))}function Att(e,t){return bL(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Itt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(wR(e.parent))return[e.parent.parent];default:return gj(e)}}function xtt(e,t){let r=[];return qq(e,i=>{let o=rE(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(let s of o)r.push({name:s.tagName.text,text:t2e(s,t)}),r.push(...ZLe(e2e(s),t))}),r}function ZLe(e,t){return va(e,r=>Eo([{name:r.tagName.text,text:t2e(r,t)}],ZLe(e2e(r),t)))}function e2e(e){return rN(e)&&e.isNameFirst&&e.typeExpression&&FT(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function RD(e,t){return typeof e=="string"?[af(e)]:va(e,r=>r.kind===328?[af(r.text)]:Sde(r,t))}function t2e(e,t){let{comment:r,kind:i}=e,o=Rtt(i);switch(i){case 356:let d=e.typeExpression;return d?s(d):r===void 0?void 0:RD(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:let p=e,h=[];if(p.constraint&&h.push(af(p.constraint.getText())),Nn(p.typeParameters)){Nn(h)&&h.push(kl());let y=p.typeParameters[p.typeParameters.length-1];gn(p.typeParameters,E=>{h.push(o(E.getText())),y!==E&&h.push(Xd(28),kl())})}return r&&h.push(kl(),...RD(r,t)),h;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:let{name:m}=e;return m?s(m):r===void 0?void 0:RD(r,t);default:return r===void 0?void 0:RD(r,t)}function s(d){return l(d.getText())}function l(d){return r?d.match(/^https?$/)?[af(d),...RD(r,t)]:[o(d),kl(),...RD(r,t)]:[af(d)]}}function Rtt(e){switch(e){case 348:return gde;case 355:return yde;case 352:return bde;case 353:case 345:return vde;default:return af}}function Dtt(){return r2e||(r2e=mn(t_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:C1.SortText.LocationPriority})))}function Ctt(){return i2e||(i2e=mn(t_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:C1.SortText.LocationPriority})))}function n2e(e){return{name:e,kind:"",kindModifiers:"",displayParts:[af(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function Ntt(e){if(!Fe(e.name))return Xe;let t=e.name.text,r=e.parent,i=r.parent;return $o(i)?to(i.parameters,o=>{if(!Fe(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&Ym(l)&&Fe(l.name)&&l.name.escapedText===s)||t!==void 0&&!ao(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:C1.SortText.LocationPriority}}):[]}function Ptt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[af(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function Mtt(e,t,r,i){let o=so(t,r),s=Fn(o,Xm);if(s&&(s.comment!==void 0||Nn(s.tags)))return;let l=o.getStart(t);if(!s&&l0;if(N&&!j){let K=D+e+S+" * ",Y=l===r?e+S:"";return{newText:K+e+N+S+w+Y,caretOffset:K.length}}return{newText:D+w,caretOffset:3}}function Ltt(e,t){let{text:r}=e,i=rm(t,e),o=i;for(;o<=t&&y_(r.charCodeAt(o));o++);return r.slice(i,o)}function ktt(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{let d=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${d}${i}`}).join("")}function wtt(e,t){return`${e} * @returns${t}`}function Ott(e,t){return Pre(e,r=>e_e(r,t))}function e_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:hB(r,t)};case 303:return e_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let o=e;return o.type&&hh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:hB(o.type,t)}:{commentOwner:e}}case 243:{let s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?Wtt(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:hB(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return e_e(e.expression,t);case 226:{let o=e;return zl(o)===0?"quit":$o(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:hB(o.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(Ps(i)||Os(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:hB(i,t)}}}function hB(e,t){return!!t?.generateReturnInDocTemplate&&(hh(e)||Os(e)&&ht(e.body)||ws(e)&&e.body&&Ko(e.body)&&!!I0(e.body,r=>r))}function Wtt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Vr(e.members,Pl)}}var t_e,r2e,i2e,o2e,Ftt=bt({"src/services/jsDoc.ts"(){"use strict";ai(),t_e=["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"],o2e=n2e}}),PE={};xa(PE,{getDocCommentTemplateAtPosition:()=>Mtt,getJSDocParameterNameCompletionDetails:()=>Ptt,getJSDocParameterNameCompletions:()=>Ntt,getJSDocTagCompletionDetails:()=>n2e,getJSDocTagCompletions:()=>Ctt,getJSDocTagNameCompletionDetails:()=>o2e,getJSDocTagNameCompletions:()=>Dtt,getJsDocCommentsFromDeclarations:()=>Ttt,getJsDocTagsFromDeclarations:()=>xtt});var ztt=bt({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";Ftt()}});function Btt(e,t,r,i,o,s){let l=ur.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),d=s==="SortAndCombine"||s==="All",p=d,h=s==="RemoveUnused"||s==="All",m=hQ(e,e.statements.filter(Lc)),y=rnt(o,d?()=>l2e(m,o)===2:void 0),E=A=>(h&&(A=Vtt(A,e,i)),p&&(A=a2e(A,y,e,o)),d&&(A=vy(A,(N,D)=>a_e(N,D,y))),A);m.forEach(A=>S(A,E)),s!=="RemoveUnused"&&int(e).forEach(A=>S(A,N=>n_e(N,y,o)));for(let A of e.statements.filter(Md)){if(!A.body)continue;if(hQ(e,A.body.statements.filter(Lc)).forEach(D=>S(D,E)),s!=="RemoveUnused"){let D=A.body.statements.filter(Xl);S(D,w=>n_e(w,y,o))}}return l.getChanges();function S(A,N){if(Nn(A)===0)return;lr(A[0],1024);let D=p?BC(A,K=>gB(K.moduleSpecifier)):[A],w=d?vy(D,(K,Y)=>i_e(K[0].moduleSpecifier,Y[0].moduleSpecifier,y)):D,j=va(w,K=>gB(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?N(K):K);if(j.length===0)l.deleteNodes(e,A,{leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.Include},!0);else{let K={leadingTriviaOption:ur.LeadingTriviaOption.Exclude,trailingTriviaOption:ur.TrailingTriviaOption.Include,suffix:Ky(r,t.options)};l.replaceNodeWithNodes(e,A[0],j,K);let Y=l.nodeHasTrailingComment(e,A[0],K);l.deleteNodes(e,A.slice(1),{trailingTriviaOption:ur.TrailingTriviaOption.Include},Y)}}}function hQ(e,t){let r=xy(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&Gtt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function Gtt(e,t,r){let i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()=2))return!0;return!1}function Vtt(e,t,r){let i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),d=!!(t.transformFlags&2),p=[];for(let m of e){let{importClause:y,moduleSpecifier:E}=m;if(!y){p.push(m);continue}let{name:S,namedBindings:A}=y;if(S&&!h(S)&&(S=void 0),A)if(Xv(A))h(A.name)||(A=void 0);else{let N=A.elements.filter(D=>h(D.name));N.lengthDa(i)&&i.text===r)}function gB(e){return e!==void 0&&as(e)?e.text:void 0}function Utt(e,t,r,i){let o=gQ(t);return a2e(e,o,r,i)}function a2e(e,t,r,i){if(e.length===0)return e;let o=hW(e,l=>{if(l.attributes){let d=l.attributes.token+" ";for(let p of ZS(l.attributes.elements,(h,m)=>Vd(h.name.text,m.name.text)))d+=p.name.text+":",d+=as(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return d}return""}),s=[];for(let l in o){let d=o[l],{importWithoutClause:p,typeOnlyImports:h,regularImports:m}=Htt(d);p&&s.push(p);for(let y of[m,h]){let E=y===h,{defaultImports:S,namespaceImports:A,namedImports:N}=y;if(!E&&S.length===1&&A.length===1&&N.length===0){let Z=S[0];s.push(jO(Z,Z.importClause.name,A[0].importClause.namedBindings));continue}let D=vy(A,(Z,me)=>t(Z.importClause.namedBindings.name.text,me.importClause.namedBindings.name.text));for(let Z of D)s.push(jO(Z,void 0,Z.importClause.namedBindings));let w=Xc(S),j=Xc(N),K=w??j;if(!K)continue;let Y,B=[];if(S.length===1)Y=S[0].importClause.name;else for(let Z of S)B.push(L.createImportSpecifier(!1,L.createIdentifier("default"),Z.importClause.name));B.push(...Ztt(N));let ce=L.createNodeArray(s2e(B,t,i),j?.importClause.namedBindings.elements.hasTrailingComma),z=ce.length===0?Y?void 0:L.createNamedImports(Xe):j?L.updateNamedImports(j.importClause.namedBindings,ce):L.createNamedImports(ce);r&&z&&j?.importClause.namedBindings&&!IT(j.importClause.namedBindings,r)&&lr(z,2),E&&Y&&z?(s.push(jO(K,Y,void 0)),s.push(jO(j??K,void 0,z))):s.push(jO(K,Y,z))}}return s}function Htt(e){let t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let o of e){if(o.importClause===void 0){t=t||o;continue}let s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:d}=o.importClause;l&&s.defaultImports.push(o),d&&(Xv(d)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Ktt(e,t,r){let i=gQ(t);return n_e(e,i,r)}function n_e(e,t,r){if(e.length===0)return e;let{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=d(e),l=[];i&&l.push(i);for(let p of[o,s]){if(p.length===0)continue;let h=[];h.push(...va(p,E=>E.exportClause&&xf(E.exportClause)?E.exportClause.elements:Xe));let m=s2e(h,t,r),y=p[0];l.push(L.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,y.exportClause&&(xf(y.exportClause)?L.updateNamedExports(y.exportClause,m):L.updateNamespaceExport(y.exportClause,y.exportClause.name)),y.moduleSpecifier,y.attributes))}return l;function d(p){let h,m=[],y=[];for(let E of p)E.exportClause===void 0?h=h||E:E.isTypeOnly?y.push(E):m.push(E);return{exportWithoutClause:h,namedExports:m,typeOnlyExports:y}}}function jO(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function s2e(e,t,r){return vy(e,(i,o)=>r_e(i,o,t,r))}function r_e(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return bv(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return bv(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Jtt(e,t,r){let i=gQ(!!r);return i_e(e,t,i)}function i_e(e,t,r){let i=e===void 0?void 0:gB(e),o=t===void 0?void 0:gB(t);return bv(i===void 0,o===void 0)||bv(Yc(i),Yc(o))||r(i,o)}function o_e(e){var t;switch(e.kind){case 271:return(t=ri(e.moduleReference,vh))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function qtt(e,t){return l2e(hQ(e,e.statements.filter(Lc)),t)}function l2e(e,t){let r=DD(t,!1),i=DD(t,!0),o=3,s=!1;for(let l of e){if(l.length>1){let p=zC(l,h=>{var m;return((m=ri(h.moduleSpecifier,Da))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}let d=Vr(l,p=>{var h,m;return((m=ri((h=p.importClause)==null?void 0:h.namedBindings,zg))==null?void 0:m.elements.length)>1});if(d){let p=s_e(d.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function Xtt(e,t){let r=DD(t,!1),i=DD(t,!0);return zC(e,o=>gB(o_e(o))||"",r,i)}function Ytt(e,t,r){let i=by(e,t,Qs,(o,s)=>a_e(o,s,r));return i<0?~i:i}function $tt(e,t,r,i){let o=by(e,t,Qs,(s,l)=>r_e(s,l,r,i));return o<0?~o:o}function a_e(e,t,r){return i_e(o_e(e),o_e(t),r)||Qtt(e,t)}function Qtt(e,t){return Zs(c2e(e),c2e(t))}function c2e(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 Ztt(e){return va(e,t=>mn(ent(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function ent(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&zg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function gQ(e){return e?nne:Vd}function tnt(e,t){let r=nnt(t),i=t.organizeImportsCaseFirst??!1,o=t.organizeImportsNumericCollation??!1,s=t.organizeImportsAccentCollation??!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function nnt(e){let t=e.organizeImportsLocale;t==="auto"&&(t=rne()),t===void 0&&(t="en");let r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function DD(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?tnt(t,e):gQ(t)}function rnt(e,t){let r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return DD(e,r)}function int(e){let t=[],r=e.statements,i=Nn(r),o=0,s=0;for(;ohQ(e,l))}var d2e,s_e,ont=bt({"src/services/organizeImports.ts"(){"use strict";ai(),d2e=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){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,r)}},s_e=tne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!fW(e,(o,s)=>bv(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!fW(e,(o,s)=>Ex(!0)(o.name.text,s.name.text)))return 0;break;default:if(!fW(e,(o,s)=>bv(o.isTypeOnly,s.isTypeOnly)))return 0;break}let r=DD(t,!1),i=DD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){let{type:o,regular:s}=hW(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?zC(o,p=>p.name.text,r,i):void 0,d=s?.length?zC(s,p=>p.name.text??"",r,i):void 0;return l===void 0?d??0:d===void 0?l:l===0||d===0?0:d&l}return zC(e,o=>o.name.text,r,i)},new d2e)}}),Rm={};xa(Rm,{coalesceExports:()=>Ktt,coalesceImports:()=>Utt,compareImportOrExportSpecifiers:()=>r_e,compareImportsOrRequireStatements:()=>a_e,compareModuleSpecifiers:()=>Jtt,detectImportDeclarationSorting:()=>Xtt,detectImportSpecifierSorting:()=>s_e,detectSorting:()=>qtt,getImportDeclarationInsertionIndex:()=>Ytt,getImportSpecifierInsertionIndex:()=>$tt,getOrganizeImportsComparer:()=>DD,organizeImports:()=>Btt});var ant=bt({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";ont()}});function snt(e,t){let r=[];return lnt(e,t,r),cnt(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function lnt(e,t,r){let i=40,o=0,s=[...e.statements,e.endOfFileToken],l=s.length;for(;o1&&i.push(yB(s,l,"comment"))}}function p2e(e,t,r,i){UI(e)||l_e(e.pos,t,r,i)}function yB(e,t,r){return P1(dc(e,t),r)}function dnt(e,t){switch(e.kind){case 241:if($o(e.parent))return unt(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:let S=e.parent;if(S.tryBlock===e)return m(e.parent);if(S.finallyBlock===e){let A=_s(S,98,t);if(A)return m(A)}default:return P1(Iu(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,!$I(e.parent),23);case 296:case 297:return y(e.statements);case 210:return h(e);case 209:return h(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return d(e.attributes);case 228:case 15:return p(e);case 207:return m(e,!1,!Xa(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return E(e);case 275:case 279:case 300:return r(e)}function r(S){if(!S.elements.length)return;let A=_s(S,19,t),N=_s(S,20,t);if(!(!A||!N||Sf(A.pos,N.pos,t)))return yQ(A,N,S,t,!1,!1)}function i(S){if(!S.arguments.length)return;let A=_s(S,21,t),N=_s(S,22,t);if(!(!A||!N||Sf(A.pos,N.pos,t)))return yQ(A,N,S,t,!1,!0)}function o(S){if(Ko(S.body)||Ou(S.body)||Sf(S.body.getFullStart(),S.body.getEnd(),t))return;let A=dc(S.body.getFullStart(),S.body.getEnd());return P1(A,"code",Iu(S))}function s(S){let A=dc(S.openingElement.getStart(t),S.closingElement.getEnd()),N=S.openingElement.tagName.getText(t),D="<"+N+">...";return P1(A,"code",A,!1,D)}function l(S){let A=dc(S.openingFragment.getStart(t),S.closingFragment.getEnd());return P1(A,"code",A,!1,"<>...")}function d(S){if(S.properties.length!==0)return yB(S.getStart(t),S.getEnd(),"code")}function p(S){if(!(S.kind===15&&S.text.length===0))return yB(S.getStart(t),S.getEnd(),"code")}function h(S,A=19){return m(S,!1,!uu(S.parent)&&!ia(S.parent),A)}function m(S,A=!1,N=!0,D=19,w=D===19?20:24){let j=_s(e,D,t),K=_s(e,w,t);return j&&K&&yQ(j,K,S,t,A,N)}function y(S){return S.length?P1(eb(S),"code"):void 0}function E(S){if(Sf(S.getStart(),S.getEnd(),t))return;let A=dc(S.getStart(),S.getEnd());return P1(A,"code",Iu(S))}}function unt(e,t,r){let i=pnt(e,t,r),o=_s(t,20,r);return i&&o&&yQ(i,o,e,r,e.kind!==219)}function yQ(e,t,r,i,o=!1,s=!0){let l=dc(s?e.getFullStart():e.getStart(i),t.getEnd());return P1(l,"code",Iu(r,i),o)}function P1(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function pnt(e,t,r){if(Yie(e.parameters,r)){let i=_s(e,21,r);if(i)return i}return _s(t,19,r)}var f2e,fnt=bt({"src/services/outliningElementsCollector.ts"(){"use strict";ai(),f2e=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),vQ={};xa(vQ,{collectElements:()=>snt});var mnt=bt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";fnt()}});function _nt(e,t,r,i){let o=zz(Wu(t,r));if(_2e(o)){let s=hnt(o,e.getTypeChecker(),t,e,i);if(s)return s}return bQ(f.You_cannot_rename_this_element)}function hnt(e,t,r,i,o){let s=t.getSymbolAtLocation(e);if(!s){if(as(e)){let E=Fz(e,t);if(E&&(E.flags&128||E.flags&1048576&&oo(E.types,S=>!!(S.flags&128))))return c_e(e.text,e.text,"string","",e,r)}else if(Eq(e)){let E=uc(e);return c_e(E,E,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>gnt(i,E)))return bQ(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Fe(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(as(e)&&O2(e))return o.allowRenameOfImportPath?vnt(e,r,s):void 0;let d=ynt(r,s,t,o);if(d)return bQ(d);let p=Xy.getSymbolKind(t,s,e),h=Tde(e)||$p(e)&&e.parent.kind===167?Yf(Xf(e)):void 0,m=h||t.symbolToString(s),y=h||t.getFullyQualifiedName(s);return c_e(m,y,p,Xy.getSymbolModifiers(t,s),e,r)}function gnt(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Sl(r.fileName,".d.ts")}function ynt(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&Vr(t.declarations,d=>Qu(d));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=m2e(e.path);if(s===void 0)return gt(o,l=>uO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let l of o){let d=m2e(l.getSourceFile().path);if(d){let p=Math.min(s.length,d.length);for(let h=0;h<=p;h++)if(Vd(s[h],d[h])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function m2e(e){let t=zc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function vnt(e,t,r){if(!Yc(e.text))return bQ(f.You_cannot_rename_a_module_via_a_global_import);let i=r.declarations&&Vr(r.declarations,Yi);if(!i)return;let o=El(e.text,"/index")||El(e.text,"/index.js")?void 0:ane(Eu(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",d=e.text.lastIndexOf("/")+1,p=gd(e.getStart(t)+1+d,e.text.length-d);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function c_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:bnt(o,s)}}function bQ(e){return{canRename:!1,localizedErrorMessage:wo(e)}}function bnt(e,t){let r=e.getStart(t),i=e.getWidth(t);return as(e)&&(r+=1,i-=2),gd(r,i)}function _2e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return kz(e);default:return!1}}var Ent=bt({"src/services/rename.ts"(){"use strict";ai()}}),vB={};xa(vB,{getRenameInfo:()=>_nt,nodeIsEligibleForRename:()=>_2e});var Snt=bt({"src/services/_namespaces/ts.Rename.ts"(){"use strict";Ent()}});function Tnt(e,t,r,i,o){let s=e.getTypeChecker(),l=Bz(t,r);if(!l)return;let d=!!i&&i.kind==="characterTyped";if(d&&(y1(t,r,l)||jy(t,r)))return;let p=!!i&&i.kind==="invoked",h=Bnt(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();let m=Ant(h,s,t,l,d);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,y=>m.kind===0?T2e(m.candidates,m.resolvedSignature,h,t,y):Vnt(m.symbol,h,t,y)):su(t)?xnt(h,e,o):void 0}function Ant({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Int(o,e.node,i))return;let l=[],d=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:d}}case 1:{let{called:l}=e;if(s&&!h2e(o,i,Fe(l)?l.parent:l))return;let d=Pq(l,t,r);if(d.length!==0)return{kind:0,candidates:d,resolvedSignature:Va(d)};let p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return x.assertNever(e)}}function Int(e,t,r){if(!v_(t))return!1;let i=t.getChildren(r);switch(e.kind){case 21:return Bo(i,e);case 28:{let o=Wz(e);return!!o&&Bo(i,o)}case 30:return h2e(e,r,t.expression);default:return!1}}function xnt(e,t,r){if(e.invocation.kind===2)return;let i=E2e(e.invocation),o=kr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Wl(t.getSourceFiles(),l=>Wl(l.getNamedDeclarations().get(o),d=>{let p=d.symbol&&s.getTypeOfSymbolAtLocation(d.symbol,d),h=p&&p.getCallSignatures();if(h&&h.length)return s.runWithCancellationToken(r,m=>T2e(h,h[0],e,l,m,!0))}))}function h2e(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=Tc(i,t,o,!0);if(s)return rf(r,s);o=o.parent}return x.fail("Could not find preceding token")}function Rnt(e,t,r,i){let o=y2e(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function g2e(e,t,r,i){let o=Dnt(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,d=Ont(i,s);l!==0&&x.assertLessThan(l,d);let p=Fnt(s,r);return{list:s,argumentIndex:l,argumentCount:d,argumentsSpan:p}}function Dnt(e,t,r){if(e.kind===30||e.kind===21)return{list:Gnt(e.parent,e,t),argumentIndex:0};{let i=Wz(e);return i&&{list:i,argumentIndex:wnt(r,i,e)}}}function y2e(e,t,r,i){let{parent:o}=e;if(v_(o)){let s=o,l=g2e(e,t,r,i);if(!l)return;let{list:d,argumentIndex:p,argumentCount:h,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===d.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:h}}else{if(HI(e)&&U0(o))return Qw(e,t,r)?u_e(o,0,r):void 0;if(KI(e)&&o.parent.kind===215){let s=o,l=s.parent;x.assert(s.kind===228);let d=Qw(e,t,r)?0:1;return u_e(l,d,r)}else if(dP(o)&&U0(o.parent.parent)){let s=o,l=o.parent.parent;if(M4(e)&&!Qw(e,t,r))return;let d=s.parent.templateSpans.indexOf(s),p=Wnt(d,e,t,r);return u_e(l,p,r)}else if(au(o)){let s=o.attributes.pos,l=Na(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:gd(s,l-s),argumentIndex:0,argumentCount:1}}else{let s=Mq(e,r);if(s){let{called:l,nTypeArguments:d}=s,p={kind:1,called:l},h=dc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:d,argumentCount:d+1}}return}}}function Cnt(e,t,r,i){return Nnt(e,t,r,i)||y2e(e,t,r,i)}function v2e(e){return dr(e.parent)?v2e(e.parent):e}function d_e(e){return dr(e.left)?d_e(e.left)+1:2}function Nnt(e,t,r,i){let o=Pnt(e);if(o===void 0)return;let s=Mnt(o,r,t,i);if(s===void 0)return;let{contextualType:l,argumentIndex:d,argumentCount:p,argumentsSpan:h}=s,m=l.getNonNullableType(),y=m.symbol;if(y===void 0)return;let E=$s(m.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:Lnt(y)},argumentsSpan:h,argumentIndex:d,argumentCount:p}}function Pnt(e){switch(e.kind){case 21:case 28:return e;default:return Fn(e.parent,t=>Ao(t)?!0:Xa(t)||tm(t)||V0(t)?!1:"quit")}}function Mnt(e,t,r,i){let{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:let s=g2e(e,r,t,i);if(!s)return;let{argumentIndex:l,argumentCount:d,argumentsSpan:p}=s,h=Ul(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:d,argumentsSpan:p};case 226:{let m=v2e(o),y=i.getContextualType(m),E=e.kind===21?0:d_e(o)-1,S=d_e(m);return y&&{contextualType:y,argumentIndex:E,argumentCount:S,argumentsSpan:Iu(o)}}default:return}}function Lnt(e){return e.name==="__type"&&Wl(e.declarations,t=>{var r;return hh(t)?(r=ri(t.parent,b_))==null?void 0:r.symbol:void 0})||e}function knt(e,t){let r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){let{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;let s=Kl(i,l=>!(l&1));return s<0?o:s}return 0}function wnt(e,t,r){return b2e(e,t,r)}function Ont(e,t){return b2e(e,t,void 0)}function b2e(e,t,r){let i=t.getChildren(),o=0,s=!1;for(let l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(Jm(l)){o+=knt(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ja(i).kind===28?o+1:o}function Wnt(e,t,r,i){return x.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),sre(t)?Qw(t,r,i)?0:e+2:e+1}function u_e(e,t,r){let i=HI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&x.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:znt(e,r),argumentIndex:t,argumentCount:i}}function Fnt(e,t){let r=e.getFullStart(),i=Na(t.text,e.getEnd(),!1);return gd(r,i-r)}function znt(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===228&&Ja(r.templateSpans).literal.getFullWidth()===0&&(o=Na(t.text,o,!1)),gd(i,o-i)}function Bnt(e,t,r,i,o){for(let s=e;!Yi(s)&&(o||!Ko(s));s=s.parent){x.assert(rf(s.parent,s),"Not a subspan",()=>`Child: ${x.formatSyntaxKind(s.kind)}, parent: ${x.formatSyntaxKind(s.parent.kind)}`);let l=Cnt(s,t,r,i);if(l)return l}}function Gnt(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return x.assert(o>=0&&i.length>o+1),i[o+1]}function E2e(e){return e.kind===0?BF(e.node):e.called}function S2e(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function T2e(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},d,p,h){var m;let y=S2e(s),E=s.kind===2?s.symbol:p.getSymbolAtLocation(E2e(s))||h&&((m=t.declaration)==null?void 0:m.symbol),S=E?eM(p,E,h?d:void 0,void 0):Xe,A=mn(e,K=>Unt(K,S,r,p,y,d));l!==0&&x.assertLessThan(l,i);let N=0,D=0;for(let K=0;K1)){let B=0;for(let ce of Y){if(ce.isVariadic||ce.parameters.length>=i){N=D+B;break}B++}}D+=Y.length}x.assert(N!==-1);let w={items:wC(A,Qs),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},j=w.items[N];if(j.isVariadic){let K=Kl(j.parameters,Y=>!!Y.isRest);-1A2e(y,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Xd(30)],suffixDisplayParts:[Xd(32)],separatorDisplayParts:p_e,parameters:d,documentation:p,tags:h}}function Unt(e,t,r,i,o,s){let l=(r?Knt:Jnt)(e,i,o,s);return mn(l,({isVariadic:d,parameters:p,prefix:h,suffix:m})=>{let y=[...t,...h],E=[...m,...Hnt(e,o,i)],S=e.getDocumentationComment(i),A=e.getJsDocTags();return{isVariadic:d,prefixDisplayParts:y,suffixDisplayParts:E,separatorDisplayParts:p_e,parameters:p,documentation:S,tags:A}})}function Hnt(e,t,r){return tb(i=>{i.writePunctuation(":"),i.writeSpace(" ");let o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Knt(e,t,r,i){let o=(e.target||e).typeParameters,s=rS(),l=(o||Xe).map(p=>A2e(p,t,r,i,s)),d=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,UO)]:[];return t.getExpandedParameters(e).map(p=>{let h=L.createNodeArray([...d,...mn(p,y=>t.symbolToParameterDeclaration(y,r,UO))]),m=tb(y=>{s.writeList(2576,h,i,y)});return{isVariadic:!1,parameters:l,prefix:[Xd(30)],suffix:[Xd(32),...m]}})}function Jnt(e,t,r,i){let o=rS(),s=tb(p=>{if(e.typeParameters&&e.typeParameters.length){let h=L.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,UO)));o.writeList(53776,h,i,p)}}),l=t.getExpandedParameters(e),d=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var h;return!!(p.length&&((h=ri(p[p.length-1],ch))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:d(p),parameters:p.map(h=>qnt(h,t,r,i,o)),prefix:[...s,Xd(21)],suffix:[Xd(22)]}))}function qnt(e,t,r,i,o){let s=tb(p=>{let h=t.symbolToParameterDeclaration(e,r,UO);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),d=ch(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:d}}function A2e(e,t,r,i,o){let s=tb(l=>{let d=t.typeParameterToDeclaration(e,r,UO);o.writeNode(4,d,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var UO,p_e,Xnt=bt({"src/services/signatureHelp.ts"(){"use strict";ai(),UO=70246400,p_e=[Xd(28),kl()]}}),HO={};xa(HO,{getArgumentInfoForCompletions:()=>Rnt,getSignatureHelpItems:()=>Tnt});var Ynt=bt({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";Xnt()}});function $nt(e,t){var r,i;let o={textSpan:dc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let p=Znt(s);if(!p.length)break;for(let h=0;he)break e;let S=nh(Yb(t.text,y.end));if(S&&S.kind===2&&d(S.pos,S.end),Qnt(t,e,y)){if(wV(y)&&ws(s)&&!Sf(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),Ko(y)||dP(y)||KI(y)||M4(y)||m&&KI(m)||Uc(y)&&Ml(s)||OR(y)&&Uc(s)||wi(y)&&OR(s)&&p.length===1||$0(y)||yE(y)||FT(y)){s=y;break}if(dP(s)&&E&&lF(E)){let w=y.getFullStart()-2,j=E.getStart()+1;l(w,j)}let A=OR(y)&&ert(m)&&trt(E)&&!Sf(m.getStart(),E.getStart(),t),N=A?m.getEnd():y.getStart(),D=A?E.getStart():nrt(t,y);if(kp(y)&&((r=y.jsDoc)!=null&&r.length)&&l(Va(y.jsDoc).getStart(),D),OR(y)){let w=y.getChildren()[0];w&&kp(w)&&((i=w.jsDoc)!=null&&i.length)&&w.getStart()!==y.pos&&(N=Math.min(N,Va(w.jsDoc).getStart()))}l(N,D),(Da(y)||EI(y))&&l(N+1,D-1),s=y;break}if(h===p.length-1)break e}}return o;function l(p,h){if(p!==h){let m=dc(p,h);(!o||!uD(m,o.textSpan)&&zne(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function d(p,h){l(p,h);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,h)}}function Qnt(e,t,r){return x.assert(r.pos<=t),td===e.readonlyToken||d.kind===148||d===e.questionToken||d.kind===58),l=KO(s,({kind:d})=>d===23||d===168||d===24);return[r,JO(EQ(l,({kind:d})=>d===59)),o]}if(_p(e)){let r=KO(e.getChildren(),l=>l===e.name||Bo(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=EQ(o,({kind:l})=>l===59);return i?[i,JO(s)]:s}if(Ao(e)){let r=KO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=KO(r,o=>o===r[0]||o===e.questionToken);return EQ(i,({kind:o})=>o===64)}return Xa(e)?EQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function KO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(JO(i)),i=void 0),r.push(o));return i&&r.push(JO(i)),r}function EQ(e,t,r=!0){if(e.length<2)return e;let i=Kl(e,t);if(i===-1)return e;let o=e.slice(0,i),s=e[i],l=Ja(e),d=r&&l.kind===27,p=e.slice(i+1,d?e.length-1:void 0),h=SL([o.length?JO(o):void 0,s,p.length?JO(p):void 0]);return d?h.concat(l):h}function JO(e){return x.assertGreaterThanOrEqual(e.length,1),fh(bh.createSyntaxList(e),e[0].pos,Ja(e).end)}function ert(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function trt(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function nrt(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 I2e,rrt=bt({"src/services/smartSelection.ts"(){"use strict";ai(),I2e=jm(Lc,td)}}),SQ={};xa(SQ,{getSmartSelectionRange:()=>$nt});var irt=bt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";rrt()}});function x2e(e,t,r){let i=R2e(e,t,r);if(i!=="")return i;let o=_R(t);return o&32?cl(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function R2e(e,t,r){let i=e.getRootSymbols(t);if(i.length===1&&Va(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&&ht(r)||NI(r))return"parameter";let o=_R(t);if(o&3)return Yq(t)?"parameter":t.valueDeclaration&&Kx(t.valueDeclaration)?"const":t.valueDeclaration&&v2(t.valueDeclaration)?"using":t.valueDeclaration&&y2(t.valueDeclaration)?"await using":gn(t.declarations,NF)?"let":N2e(t)?"local var":"var";if(o&16)return N2e(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){let s=gn(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function D2e(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=Nn(r)&&f7(t)&>(r,s=>!f7(s))?65536:0,o=XP(t,i);if(o)return o.split(",")}return[]}function ort(e,t){if(!t)return"";let r=new Set(D2e(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&gn(D2e(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Wo(r.values()).join(","):""}function C2e(e,t,r,i,o,s,l,d){var p;let h=[],m=[],y=[],E=_R(t),S=l&1?R2e(e,t,o):"",A=!1,N=o.kind===110&&VF(o)||NI(o),D,w,j=!1;if(o.kind===110&&!N)return{displayParts:[vp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(S!==""||E&32||E&2097152){if(S==="getter"||S==="setter"){let pe=Vr(t.declarations,xe=>xe.name===o);if(pe)switch(pe.kind){case 177:S="getter";break;case 178:S="setter";break;case 172:S="accessor";break;default:x.assertNever(pe)}else S="property"}let J;if(s??(s=N?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){let pe=o.parent.name;(pe===o||pe&&pe.getFullWidth()===0)&&(o=o.parent)}let re;if(v_(o)?re=o:(gq(o)||JP(o)||o.parent&&(au(o.parent)||U0(o.parent))&&$o(t.valueDeclaration))&&(re=o.parent),re){J=e.getResolvedSignature(re);let pe=re.kind===214||ia(re)&&re.expression.kind===108,xe=pe?s.getConstructSignatures():s.getCallSignatures();if(J&&!Bo(xe,J.target)&&!Bo(xe,J)&&(J=xe.length?xe[0]:void 0),J){switch(pe&&E&32?(S="constructor",Z(s.symbol,S)):E&2097152?(S="alias",me(S),h.push(kl()),pe&&(J.flags&4&&(h.push(vp(128)),h.push(kl())),h.push(vp(105)),h.push(kl())),z(t)):Z(t,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(Xd(59)),h.push(kl()),!(Lr(s)&16)&&s.symbol&&(Hr(h,eM(e,s.symbol,i,void 0,5)),h.push(pD())),pe&&(J.flags&4&&(h.push(vp(128)),h.push(kl())),h.push(vp(105)),h.push(kl())),ge(J,xe,262144);break;default:ge(J,xe)}A=!0,j=xe.length>1}}else if(Iq(o)&&!(E&98304)||o.kind===137&&o.parent.kind===176){let pe=o.parent;if(t.declarations&&Vr(t.declarations,fe=>fe===(o.kind===137?pe.parent:pe))){let fe=pe.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(pe)?J=fe[0]:J=e.getSignatureFromDeclaration(pe),pe.kind===176?(S="constructor",Z(s.symbol,S)):Z(pe.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,S),J&&ge(J,fe),A=!0,j=fe.length>1}}}if(E&32&&!A&&!N&&(B(),cl(t,231)?me("local class"):h.push(vp(86)),h.push(kl()),z(t),q(t,r)),E&64&&l&2&&(Y(),h.push(vp(120)),h.push(kl()),z(t),q(t,r)),E&524288&&l&2&&(Y(),h.push(vp(156)),h.push(kl()),z(t),q(t,r),h.push(kl()),h.push(ZP(64)),h.push(kl()),Hr(h,oO(e,o.parent&&Ng(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),E&384&&(Y(),gt(t.declarations,J=>hE(J)&&A0(J))&&(h.push(vp(87)),h.push(kl())),h.push(vp(94)),h.push(kl()),z(t)),E&1536&&!N){Y();let J=cl(t,267),re=J&&J.name&&J.name.kind===80;h.push(vp(re?145:144)),h.push(kl()),z(t)}if(E&262144&&l&2)if(Y(),h.push(Xd(21)),h.push(af("type parameter")),h.push(Xd(22)),h.push(kl()),z(t),t.parent)ce(),z(t.parent,i),q(t.parent,i);else{let J=cl(t,168);if(J===void 0)return x.fail();let re=J.parent;if(re)if($o(re)){ce();let pe=e.getSignatureFromDeclaration(re);re.kind===180?(h.push(vp(105)),h.push(kl())):re.kind!==179&&re.name&&z(re.symbol),Hr(h,Zq(e,pe,r,32))}else Tm(re)&&(ce(),h.push(vp(156)),h.push(kl()),z(re.symbol),q(re.symbol,r))}if(E&8){S="enum member",Z(t,"enum member");let J=(p=t.declarations)==null?void 0:p[0];if(J?.kind===306){let re=e.getConstantValue(J);re!==void 0&&(h.push(kl()),h.push(ZP(64)),h.push(kl()),h.push(ep(Fre(re),typeof re=="number"?7:8)))}}if(t.flags&2097152){if(Y(),!A||m.length===0&&y.length===0){let J=e.getAliasedSymbol(t);if(J!==t&&J.declarations&&J.declarations.length>0){let re=J.declarations[0],pe=Po(re);if(pe&&!A){let xe=xF(re)&&$r(re,128),fe=t.name!=="default"&&!xe,ne=C2e(e,J,Gn(re),re,pe,s,l,fe?t:J);h.push(...ne.displayParts),h.push(pD()),D=ne.documentation,w=ne.tags}else D=J.getContextualDocumentationComment(re,e),w=J.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:h.push(vp(95)),h.push(kl()),h.push(vp(145));break;case 277:h.push(vp(95)),h.push(kl()),h.push(vp(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(vp(95));break;default:h.push(vp(102))}h.push(kl()),z(t),gn(t.declarations,J=>{if(J.kind===271){let re=J;if(aE(re))h.push(kl()),h.push(ZP(64)),h.push(kl()),h.push(vp(149)),h.push(Xd(21)),h.push(ep(uc(hN(re)),8)),h.push(Xd(22));else{let pe=e.getSymbolAtLocation(re.moduleReference);pe&&(h.push(kl()),h.push(ZP(64)),h.push(kl()),z(pe,i))}return!0}})}if(!A)if(S!==""){if(s){if(N?(Y(),h.push(vp(110))):Z(t,S),S==="property"||S==="accessor"||S==="getter"||S==="setter"||S==="JSX attribute"||E&3||S==="local var"||S==="index"||S==="using"||S==="await using"||N){if(h.push(Xd(59)),h.push(kl()),s.symbol&&s.symbol.flags&262144&&S!=="index"){let J=tb(re=>{let pe=e.typeParameterToDeclaration(s,i,f_e);K().writeNode(4,pe,Gn(Do(i)),re)});Hr(h,J)}else Hr(h,oO(e,s,i));if(ch(t)&&t.links.target&&ch(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let J=t.links.target.links.tupleLabelDeclaration;x.assertNode(J.name,Fe),h.push(kl()),h.push(Xd(21)),h.push(af(gr(J.name))),h.push(Xd(22))}}else if(E&16||E&8192||E&16384||E&131072||E&98304||S==="method"){let J=s.getNonNullableType().getCallSignatures();J.length&&(ge(J[0],J),j=J.length>1)}}}else S=x2e(e,t,o);if(m.length===0&&!j&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&E&4&&t.parent&&t.declarations&&gn(t.parent.declarations,J=>J.kind===312))for(let J of t.declarations){if(!J.parent||J.parent.kind!==226)continue;let re=e.getSymbolAtLocation(J.parent.right);if(re&&(m=re.getDocumentationComment(e),y=re.getJsDocTags(e),m.length>0))break}if(m.length===0&&Fe(o)&&t.valueDeclaration&&Xa(t.valueDeclaration)){let J=t.valueDeclaration,re=J.parent,pe=J.propertyName||J.name;if(Fe(pe)&&tm(re)){let xe=Xf(pe),fe=e.getTypeAtLocation(re);m=Wl(fe.isUnion()?fe.types:[fe],ne=>{let he=ne.getProperty(xe);return he?he.getDocumentationComment(e):void 0})||Xe}}return y.length===0&&!j&&(y=t.getContextualJsDocTags(i,e)),m.length===0&&D&&(m=D),y.length===0&&w&&(y=w),{displayParts:h,documentation:m,symbolKind:S,tags:y.length===0?void 0:y};function K(){return rS()}function Y(){h.length&&h.push(pD()),B()}function B(){d&&(me("alias"),h.push(kl()))}function ce(){h.push(kl()),h.push(vp(103)),h.push(kl())}function z(J,re){let pe;d&&J===t&&(J=d),S==="index"&&(pe=e.getIndexInfosOfIndexSymbol(J));let xe=[];J.flags&131072&&pe?(J.parent&&(xe=eM(e,J.parent)),xe.push(Xd(23)),pe.forEach((fe,ne)=>{xe.push(...oO(e,fe.keyType)),ne!==pe.length-1&&(xe.push(kl()),xe.push(Xd(52)),xe.push(kl()))}),xe.push(Xd(24))):xe=eM(e,J,re||r,void 0,7),Hr(h,xe),t.flags&16777216&&h.push(Xd(58))}function Z(J,re){Y(),re&&(me(re),J&&!gt(J.declarations,pe=>Os(pe)||(Ps(pe)||Zc(pe))&&!pe.name)&&(h.push(kl()),z(J)))}function me(J){switch(J){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push($q(J));return;default:h.push(Xd(21)),h.push($q(J)),h.push(Xd(22));return}}function ge(J,re,pe=0){Hr(h,Zq(e,J,i,pe|32)),re.length>1&&(h.push(kl()),h.push(Xd(21)),h.push(ZP(40)),h.push(ep((re.length-1).toString(),7)),h.push(kl()),h.push(af(re.length===2?"overload":"overloads")),h.push(Xd(22))),m=J.getDocumentationComment(e),y=J.getJsDocTags(),re.length>1&&m.length===0&&y.length===0&&(m=re[0].getDocumentationComment(e),y=re[0].getJsDocTags().filter(xe=>xe.name!=="deprecated"))}function q(J,re){let pe=tb(xe=>{let fe=e.symbolToTypeParameterDeclarations(J,re,f_e);K().writeList(53776,fe,Gn(Do(re)),xe)});Hr(h,pe)}}function art(e,t,r,i,o,s=qT(o),l){return C2e(e,t,r,i,o,void 0,s,l)}function N2e(e){return e.parent?!1:gn(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!x0(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var f_e,srt=bt({"src/services/symbolDisplay.ts"(){"use strict";ai(),f_e=70246400}}),Xy={};xa(Xy,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>art,getSymbolKind:()=>x2e,getSymbolModifiers:()=>ort});var lrt=bt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";srt()}});function P2e(e){let t=e.__pos;return x.assert(typeof t=="number"),t}function m_e(e,t){x.assert(typeof t=="number"),e.__pos=t}function M2e(e){let t=e.__end;return x.assert(typeof t=="number"),t}function __e(e,t){x.assert(typeof t=="number"),e.__end=t}function L2e(e,t){return Na(e,t,!1,!0)}function crt(e,t){let r=t;for(;r0?1:0,E=kv(RN(e,h)+y,e);return E=L2e(e.text,E),kv(RN(e,E),e)}function h_e(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=Yb(e.text,i);if(s){let l=RN(e,t.end);for(let d of s){if(d.kind===2||RN(e,d.pos)>l)break;if(RN(e,d.end)>l)return Na(e.text,d.end,!0,!0)}}}}function CD(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let p=Eo(Yb(e.text,o),jh(e.text,o)),h=(i=p?.[p.length-1])==null?void 0:i.end;return h||o}let l=h_e(e,t,r);if(l)return l;let d=Na(e.text,o,!0);return d!==o&&(s===2||jd(e.text.charCodeAt(d-1)))?d:o}function TQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function drt(e){return Ps(e)||Ec(e)}function urt(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function prt(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{let r=e,i=t;return Fe(r.name)&&Fe(i.name)&&r.name.escapedText===i.name.escapedText?L.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return L.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return L.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function g_e(e,t){return Na(e.text,tA(e,t,{leadingTriviaOption:1}),!1,!0)}function frt(e,t,r,i){let o=g_e(e,i);if(r===void 0||Sf(CD(e,t,{}),o,e))return o;let s=Tc(i.getStart(e),e);if(TQ(t,s)){let l=Tc(t.getStart(e),e);if(TQ(r,l)){let d=Na(e.text,s.getEnd(),!0,!0);if(Sf(l.getStart(e),s.getStart(e),e))return jd(e.text.charCodeAt(d-1))?d-1:d;if(jd(e.text.charCodeAt(d)))return d}}return o}function mrt(e,t){let r=_s(e,19,t),i=_s(e,20,t);return[r?.end,i?.end]}function AQ(e){return Ma(e)?e.properties:e.members}function y_e(e,t){for(let r=t.length-1;r>=0;r--){let{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(Jl(i))}`}return e}function _rt(e){return Na(e,0)===e.length}function IQ(e){let t=Sn(e,IQ,W2e,hrt,IQ),r=Ks(t)?t:Object.create(t);return fh(r,P2e(e),M2e(e)),r}function hrt(e,t,r,i,o){let s=zn(e,t,r,i,o);if(!s)return s;x.assert(e);let l=s===e?L.createNodeArray(s.slice(0)):s;return fh(l,P2e(e),M2e(e)),l}function k2e(e){let t=0,r=$2(e),i=ne=>{ne&&m_e(ne,t)},o=ne=>{ne&&__e(ne,t)},s=ne=>{ne&&m_e(ne,t)},l=ne=>{ne&&__e(ne,t)},d=ne=>{ne&&m_e(ne,t)},p=ne=>{ne&&__e(ne,t)};function h(ne,he){if(he||!_rt(ne)){t=r.getTextPos();let Ce=0;for(;Cg(ne.charCodeAt(ne.length-Ce-1));)Ce++;t-=Ce}}function m(ne){r.write(ne),h(ne,!1)}function y(ne){r.writeComment(ne)}function E(ne){r.writeKeyword(ne),h(ne,!1)}function S(ne){r.writeOperator(ne),h(ne,!1)}function A(ne){r.writePunctuation(ne),h(ne,!1)}function N(ne){r.writeTrailingSemicolon(ne),h(ne,!1)}function D(ne){r.writeParameter(ne),h(ne,!1)}function w(ne){r.writeProperty(ne),h(ne,!1)}function j(ne){r.writeSpace(ne),h(ne,!1)}function K(ne){r.writeStringLiteral(ne),h(ne,!1)}function Y(ne,he){r.writeSymbol(ne,he),h(ne,!1)}function B(ne){r.writeLine(ne)}function ce(){r.increaseIndent()}function z(){r.decreaseIndent()}function Z(){return r.getText()}function me(ne){r.rawWrite(ne),h(ne,!1)}function ge(ne){r.writeLiteral(ne),h(ne,!0)}function q(){return r.getTextPos()}function J(){return r.getLine()}function re(){return r.getColumn()}function pe(){return r.getIndent()}function xe(){return r.isAtStartOfLine()}function fe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:d,onAfterEmitToken:p,write:m,writeComment:y,writeKeyword:E,writeOperator:S,writePunctuation:A,writeTrailingSemicolon:N,writeParameter:D,writeProperty:w,writeSpace:j,writeStringLiteral:K,writeSymbol:Y,writeLine:B,increaseIndent:ce,decreaseIndent:z,getText:Z,rawWrite:me,writeLiteral:ge,getTextPos:q,getLine:J,getColumn:re,getIndent:pe,isAtStartOfLine:xe,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:fe}}function grt(e){let t;for(let h of e.statements)if(vm(h))t=h;else break;let r=0,i=e.text;if(t)return r=t.end,p(),r;let o=$W(i);o!==void 0&&(r=o.length,p());let s=jh(i,r);if(!s)return r;let l,d;for(let h of s){if(h.kind===3){if(AF(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(UV(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;let m=e.getLineAndCharacterOfPosition(h.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=y+2)break}if(e.statements.length){d===void 0&&(d=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let m=e.getLineAndCharacterOfPosition(h.end).line;if(d(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(v_e||{}),b_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(b_e||{}),_M={leadingTriviaOption:0,trailingTriviaOption:0},O2e=class Ebe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Ebe(Ky(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=Ebe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){x.assertEqual(t.fileName,r.fileName);for(let i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:Hz(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,qO(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(let s of r){let l=tA(t,s,i,o),d=CD(t,s,i);this.deleteRange(t,{pos:l,end:d}),o=!!h_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:Na(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){let s=tA(t,r,o),l=CD(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){let s=tA(t,r,o),l=i===void 0?t.text.length:tA(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=_M){this.replaceRange(t,qO(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=_M){this.replaceRange(t,qO(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=_M){this.replaceRangeWithNodes(t,qO(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,qO(t,r,r,_M),i)}replaceNodeRangeWithNodes(t,r,i,o,s=_M){this.replaceRangeWithNodes(t,qO(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=_M){return!!h_e(t,r,i)}nextCommaToken(t,r){let i=aS(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){let o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,Ef(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Ef(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){let o=grt(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(jd(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};To(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){let o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=qp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){let o=Xc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,tA(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,tA(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Va(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,L.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){let s=kv(r,t),l=Ide(t.text,s),d=w2e(t,l),p=lD(t,d?l:i),h=t.text.slice(s,l),m=`${d?"":this.newLineCharacter}//${o}${this.newLineCharacter}${h}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){let o=r.getStart(t);if(r.jsDoc)for(let d of r.jsDoc)this.deleteRange(t,{pos:rm(d.getStart(t),t),end:CD(t,d,{})});let s=t7(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){let i=va(r.jsDoc,s=>No(s.comment)?L.createJSDocText(s.comment):s.comment),o=nh(r.jsDoc);return o&&Sf(o.pos,o.end,t)&&Nn(i)===0?void 0:L.createNodeArray(DG(i,L.createJSDocText(` `)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,urt(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){let o=wC(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((d,p)=>{let h=prt(d,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,jr(wC(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,Ef(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if($o(r)){if(o=_s(r,22,t),!o){if(!Os(r))return!1;o=Va(r.parameters)}}else o=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){let o=_s(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){let o=(_s(r,21,t)||Va(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Hi(t)||$c(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:wi(t)?{suffix:", "}:Ao(t)?Ao(r)?{suffix:", "}:{}:Da(t)&&Lc(t.parent)||zg(t)?{suffix:", "}:Qu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:x.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){let o=Xc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){let o=Vr(r.body.statements,s=>ed(s)&&mT(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){let o=$s(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,L.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){let o=tA(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:jd(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){let o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,AQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(let s of AQ(r)){if(y6(o,s,t))return;let l=s.getStart(t),d=wc.SmartIndenter.findFirstNonWhitespaceColumn(rm(l,t),l,t,this.formatContext.options);if(i===void 0)i=d;else if(d!==i)return;o=s}return i}computeIndentationForNewMember(t,r){let i=r.getStart(t);return wc.SmartIndenter.findFirstNonWhitespaceColumn(rm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){let s=AQ(r).length===0,l=Em(this.classesWithNodesInsertedAtStart,rs(r),{node:r,sourceFile:t}),d=Ma(r)&&(!Jf(t)||!s),p=Ma(r)&&Jf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:d?",":pu(r)&&s?";":""}}insertNodeAfterComma(t,r,i){let o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,Va(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return yrt(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Ef(r.end),L.createToken(27)),CD(t,r,{})}getInsertNodeAfterOptions(t,r){let i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Hi(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 x.assert(Hi(t)||cF(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(x.assert(!r.name),r.kind===219){let o=_s(r,39,t),s=_s(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[L.createToken(100),L.createIdentifier(i)],{joiner:" "}),Ug(this,t,o)):(this.insertText(t,Va(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,L.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[L.createToken(19),L.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[L.createToken(27),L.createToken(20)],{joiner:" "}))}else{let o=_s(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,L.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){let s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Sf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=wc.SmartIndenter.getContainingList(r,t)){if(!o){x.fail("node is not a list element");return}let s=jx(o,r);if(s<0)return;let l=r.getEnd();if(s!==o.length-1){let d=so(t,r.end);if(d&&TQ(r,d)){let p=o[s+1],h=L2e(t.text,p.getFullStart()),m=`${da(d.kind)}${t.text.substring(d.end,h)}`;this.insertNodesAt(t,h,[i],{suffix:m})}}else{let d=r.getStart(t),p=rm(d,t),h,m=!1;if(o.length===1)h=28;else{let y=Tc(r.pos,t);h=TQ(r,y)?y.kind:28,m=rm(o[s-1].getStart(t),t)!==p}if((crt(t.text,r.end)||!Sf(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Ef(l),L.createToken(h));let y=wc.SmartIndenter.findFirstNonWhitespaceColumn(p,d,t,this.formatContext.options),E=Na(t.text,l,!0,!1);for(;E!==l&&jd(t.text.charCodeAt(E-1));)E--;this.replaceRange(t,Ef(E),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Ef(l),i,{prefix:`${da(h)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,uU(r),L.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{let[i,o]=mrt(t,r);if(i!==void 0&&o!==void 0){let s=AQ(t).length===0,l=Sf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Ef(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&Qce(o.node,i))||(To(i)?this.deleteRange(r,pU(r,i)):E_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=wc.SmartIndenter.getContainingList(r,i);if(r!==Ja(o))return;let s=pW(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:g_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let r=xQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(xQ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(d,p,h,m){return to(BC(d,y=>y.sourceFile.path),y=>{let E=y[0].sourceFile,S=vy(y,(N,D)=>N.range.pos-D.range.pos||N.range.end-D.range.end);for(let N=0;N`${JSON.stringify(S[N].range)} and ${JSON.stringify(S[N+1].range)}`);let A=to(S,N=>{let D=eb(N.range),w=N.kind===1?Gn(Nl(N.node))??N.sourceFile:N.kind===2?Gn(Nl(N.nodes[0]))??N.sourceFile:N.sourceFile,j=o(N,w,E,p,h,m);if(!(D.length===j.length&&Wde(w.text,j,D.start)))return Zw(D,j)});return A.length>0?{fileName:E.fileName,textChanges:A}:void 0})}e.getTextChangesFromChanges=t;function r(d,p,h,m){let y=i(k6(d),p,h,m);return{fileName:d,textChanges:[Zw(gd(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(d,p,h,m){let y=va(p,A=>A.statements.map(N=>N===4?"":l(N,A.oldFile,h).text)).join(h),E=Yk("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,d),S=wc.formatDocument(E,m);return y_e(y,S)+h}e.newFileChangesWorker=i;function o(d,p,h,m,y,E){var S;if(d.kind===0)return"";if(d.kind===3)return d.text;let{options:A={},range:{pos:N}}=d,D=K=>s(K,p,h,N,A,m,y,E),w=d.kind===2?d.nodes.map(K=>Sx(D(K),m)).join(((S=d.options)==null?void 0:S.joiner)||m):D(d.node),j=A.indentation!==void 0||rm(N,p)===N?w:w.replace(/^\s+/,"");return(A.prefix||"")+j+(!A.suffix||El(j,A.suffix)?"":A.suffix)}function s(d,p,h,m,{indentation:y,prefix:E,delta:S},A,N,D){let{node:w,text:j}=l(d,p,A);D&&D(w,j);let K=_7(N,p),Y=y!==void 0?y:wc.SmartIndenter.getIndentation(m,h,K,E===A||rm(m,p)===m);S===void 0&&(S=wc.SmartIndenter.shouldIndentChildNode(K,d)&&K.indentSize||0);let B={text:j,getLineAndCharacterOfPosition(z){return hs(this,z)}},ce=wc.formatNodeGivenIndentation(w,B,p.languageVariant,Y,S,{...N,options:K});return y_e(j,ce)}function l(d,p,h){let m=k2e(h),y=pO(h);return AE({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,d,p,m),{text:m.getText(),node:IQ(d)}}e.getNonformattedText=l})(xQ||(xQ={})),W2e={...WP,factory:bk(WP.factory.flags|1,WP.factory.baseFactory)},(e=>{function t(s,l,d,p){switch(p.kind){case 169:{let S=p.parent;Os(S)&&S.parameters.length===1&&!_s(S,21,d)?s.replaceNodeWithText(d,p,"()"):XO(s,l,d,p);break}case 272:case 271:let h=d.imports.length&&p===Va(d.imports).parent||p===Vr(d.statements,pT);Ug(s,d,p,{leadingTriviaOption:h?0:kp(p)?2:3});break;case 208:let m=p.parent;m.kind===207&&p!==Ja(m.elements)?Ug(s,d,p):XO(s,l,d,p);break;case 260:o(s,l,d,p);break;case 168:XO(s,l,d,p);break;case 276:let E=p.parent;E.elements.length===1?i(s,d,E):XO(s,l,d,p);break;case 274:i(s,d,p);break;case 27:Ug(s,d,p,{trailingTriviaOption:0});break;case 100:Ug(s,d,p,{leadingTriviaOption:0});break;case 263:case 262:Ug(s,d,p,{leadingTriviaOption:kp(p)?2:3});break;default:p.parent?gh(p.parent)&&p.parent.name===p?r(s,d,p.parent):ia(p.parent)&&Bo(p.parent.arguments,p)?XO(s,l,d,p):Ug(s,d,p):Ug(s,d,p)}}e.deleteDeclaration=t;function r(s,l,d){if(!d.namedBindings)Ug(s,l,d.parent);else{let p=d.name.getStart(l),h=so(l,d.name.end);if(h&&h.kind===28){let m=Na(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else Ug(s,l,d.name)}}function i(s,l,d){if(d.parent.name){let p=x.checkDefined(so(l,d.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:d.end})}else{let p=dE(d,272);Ug(s,l,p)}}function o(s,l,d,p){let{parent:h}=p;if(h.kind===299){s.deleteNodeRange(d,_s(h,21,d),_s(h,22,d));return}if(h.declarations.length!==1){XO(s,l,d,p);return}let m=h.parent;switch(m.kind){case 250:case 249:s.replaceNode(d,p,L.createObjectLiteralExpression());break;case 248:Ug(s,d,h);break;case 243:Ug(s,d,m,{leadingTriviaOption:kp(m)?2:3});break;default:x.assertNever(m)}}})(E_e||(E_e={}))}}),ur={};xa(ur,{ChangeTracker:()=>O2e,LeadingTriviaOption:()=>v_e,TrailingTriviaOption:()=>b_e,applyChanges:()=>y_e,assignPositionsToNode:()=>IQ,createWriter:()=>k2e,deleteNode:()=>Ug,isThisTypeAnnotatable:()=>drt,isValidLocationToAddComment:()=>w2e});var brt=bt({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";vrt()}}),S_e,T_e,Ert=bt({"src/services/formatting/formattingContext.ts"(){"use strict";ai(),S_e=(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))(S_e||{}),T_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=x.checkDefined(e),this.currentTokenParent=x.checkDefined(t),this.nextTokenSpan=x.checkDefined(r),this.nextTokenParent=x.checkDefined(i),this.contextNode=x.checkDefined(o),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){let 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){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){let t=_s(e,19,this.sourceFile),r=_s(e,20,this.sourceFile);if(t&&r){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function A_e(e,t,r,i,o){let s=t===1?z2e:F2e;s.setText(e),s.resetTokenState(r);let l=!0,d,p,h,m,y,E=o({advance:S,readTokenInfo:B,readEOFTokenRange:z,isOnToken:Z,isOnEOF:me,getCurrentLeadingTrivia:()=>d,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:q,skipToStartOf:J,getTokenFullStart:()=>y?.token.pos??s.getTokenStart(),getStartPos:()=>y?.token.pos??s.getTokenStart()});return y=void 0,s.setText(void 0),E;function S(){y=void 0,s.getTokenFullStart()!==r?l=!!p&&Ja(p).kind===4:s.scan(),d=void 0,p=void 0;let pe=s.getTokenFullStart();for(;pe(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))(I_e||{}),x_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(x_e||{})}});function B2e(){let e=[];for(let ce=0;ce<=165;ce++)ce!==1&&e.push(ce);function t(...ce){return{tokens:e.filter(z=>!ce.some(Z=>Z===z)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=hM([...e,3]),o=hM([...e,1]),s=V2e(83,165),l=V2e(30,79),d=[103,104,165,130,142,152],p=[46,47,55,54],h=[9,10,80,21,23,19,110,105],m=[80,21,110,105],y=[80,22,24,105],E=[80,21,110,105],S=[80,22,24,105],A=[2,3],N=[80,...g7],D=i,w=hM([80,32,3,86,95,102]),j=hM([22,3,92,113,98,93,85]),K=[qr("IgnoreBeforeComment",r,A,bB,1),qr("IgnoreAfterLineComment",2,r,bB,1),qr("NotSpaceBeforeColon",r,59,[Ji,EB,H2e],16),qr("SpaceAfterColon",59,r,[Ji,EB,Brt],4),qr("NoSpaceBeforeQuestionMark",r,58,[Ji,EB,H2e],16),qr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ji,Rrt],4),qr("NoSpaceAfterQuestionMark",58,r,[Ji,xrt],16),qr("NoSpaceBeforeDot",r,[25,29],[Ji,Zrt],16),qr("NoSpaceAfterDot",[25,29],r,[Ji],16),qr("NoSpaceBetweenImportParenInImportType",102,21,[Ji,Frt],16),qr("NoSpaceAfterUnaryPrefixOperator",p,h,[Ji,EB],16),qr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Ji],16),qr("NoSpaceAfterUnaryPredecrementOperator",47,E,[Ji],16),qr("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Ji,ske],16),qr("NoSpaceBeforeUnaryPostdecrementOperator",S,47,[Ji,ske],16),qr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ji,rb],4),qr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ji,rb],4),qr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ji,rb],4),qr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ji,rb],4),qr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ji,rb],4),qr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ji,rb],4),qr("NoSpaceAfterCloseBrace",20,[28,27],[Ji],16),qr("NewLineBeforeCloseBraceInBlockContext",i,20,[J2e],8),qr("SpaceAfterCloseBrace",20,t(22),[Ji,Nrt],4),qr("SpaceBetweenCloseBraceAndElse",20,93,[Ji],4),qr("SpaceBetweenCloseBraceAndWhile",20,117,[Ji],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,Z2e],16),qr("SpaceAfterConditionalClosingParen",22,23,[SB],4),qr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Y2e],16),qr("SpaceAfterStarInGeneratorDeclaration",42,80,[Y2e],4),qr("SpaceAfterFunctionInFuncDecl",100,r,[nA],4),qr("NewLineAfterOpenBraceInBlockContext",19,r,[J2e],8),qr("SpaceAfterGetSetInMember",[139,153],80,[nA],4),qr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ji,ake],16),qr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ji,ake],4),qr("NoSpaceBetweenReturnAndSemicolon",107,27,[Ji],16),qr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Ji],4),qr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Ji,jrt],4),qr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ji,Lrt,krt],16),qr("SpaceBeforeBinaryKeywordOperator",r,d,[Ji,rb],4),qr("SpaceAfterBinaryKeywordOperator",d,r,[Ji,rb],4),qr("SpaceAfterVoidOperator",116,r,[Ji,qrt],4),qr("SpaceBetweenAsyncAndOpenParen",134,21,[Wrt,Ji],4),qr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ji],4),qr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ji],16),qr("SpaceBeforeJsxAttribute",r,80,[zrt,Ji],4),qr("SpaceBeforeSlashInJsxOpeningElement",r,44,[rke,Ji],4),qr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[rke,Ji],16),qr("NoSpaceBeforeEqualInJsxAttribute",r,64,[tke,Ji],16),qr("NoSpaceAfterEqualInJsxAttribute",64,r,[tke,Ji],16),qr("NoSpaceBeforeJsxNamespaceColon",80,59,[nke],16),qr("NoSpaceAfterJsxNamespaceColon",59,80,[nke],16),qr("NoSpaceAfterModuleImport",[144,149],21,[Ji],16),qr("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,[Ji],4),qr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Ji],4),qr("SpaceAfterModuleName",11,19,[Urt],4),qr("SpaceBeforeArrow",r,39,[Ji],4),qr("SpaceAfterArrow",39,r,[Ji],4),qr("NoSpaceAfterEllipsis",26,80,[Ji],16),qr("NoSpaceAfterOptionalParameters",58,[22,28],[Ji,EB],16),qr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ji,Hrt],16),qr("NoSpaceBeforeOpenAngularBracket",N,30,[Ji,TB],16),qr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ji,TB],16),qr("NoSpaceAfterOpenAngularBracket",30,r,[Ji,TB],16),qr("NoSpaceBeforeCloseAngularBracket",r,32,[Ji,TB],16),qr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ji,TB,Crt,Jrt],16),qr("SpaceBeforeAt",[22,80],60,[Ji],4),qr("NoSpaceAfterAt",60,r,[Ji],16),qr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Vrt],4),qr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ji,Xrt],16),qr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ji,Krt],16),qr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ji],4)],Y=[qr("SpaceAfterConstructor",137,21,[sf("insertSpaceAfterConstructor"),Ji],4),qr("NoSpaceAfterConstructor",137,21,[W_("insertSpaceAfterConstructor"),Ji],16),qr("SpaceAfterComma",28,r,[sf("insertSpaceAfterCommaDelimiter"),Ji,L_e,wrt,Ort],4),qr("NoSpaceAfterComma",28,r,[W_("insertSpaceAfterCommaDelimiter"),Ji,L_e],16),qr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[sf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),nA],4),qr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[W_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),nA],16),qr("SpaceAfterKeywordInControl",s,21,[sf("insertSpaceAfterKeywordsInControlFlowStatements"),SB],4),qr("NoSpaceAfterKeywordInControl",s,21,[W_("insertSpaceAfterKeywordsInControlFlowStatements"),SB],16),qr("SpaceAfterOpenParen",21,r,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),qr("SpaceBeforeCloseParen",r,22,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),qr("SpaceBetweenOpenParens",21,21,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),qr("NoSpaceBetweenParens",21,22,[Ji],16),qr("NoSpaceAfterOpenParen",21,r,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),qr("NoSpaceBeforeCloseParen",r,22,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),qr("SpaceAfterOpenBracket",23,r,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),qr("SpaceBeforeCloseBracket",r,24,[sf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),qr("NoSpaceBetweenBrackets",23,24,[Ji],16),qr("NoSpaceAfterOpenBracket",23,r,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),qr("NoSpaceBeforeCloseBracket",r,24,[W_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),qr("SpaceAfterOpenBrace",19,r,[U2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),K2e],4),qr("SpaceBeforeCloseBrace",r,20,[U2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),K2e],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,Z2e],16),qr("NoSpaceAfterOpenBrace",19,r,[R_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),qr("NoSpaceBeforeCloseBrace",r,20,[R_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),qr("SpaceBetweenEmptyBraceBrackets",19,20,[sf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[R_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ji],16),qr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[sf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),eke],4,1),qr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[sf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],4),qr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[W_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),eke],16,1),qr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[W_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],16),qr("SpaceAfterOpenBraceInJsxExpression",19,r,[sf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],4),qr("SpaceBeforeCloseBraceInJsxExpression",r,20,[sf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],4),qr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[W_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],16),qr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[W_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],16),qr("SpaceAfterSemicolonInFor",27,r,[sf("insertSpaceAfterSemicolonInForStatements"),Ji,C_e],4),qr("NoSpaceAfterSemicolonInFor",27,r,[W_("insertSpaceAfterSemicolonInForStatements"),Ji,C_e],16),qr("SpaceBeforeBinaryOperator",r,l,[sf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,rb],4),qr("SpaceAfterBinaryOperator",l,r,[sf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,rb],4),qr("NoSpaceBeforeBinaryOperator",r,l,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,rb],16),qr("NoSpaceAfterBinaryOperator",l,r,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,rb],16),qr("SpaceBeforeOpenParenInFuncDecl",r,21,[sf("insertSpaceBeforeFunctionParenthesis"),Ji,nA],4),qr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[W_("insertSpaceBeforeFunctionParenthesis"),Ji,nA],16),qr("NewLineBeforeOpenBraceInControl",j,19,[sf("placeOpenBraceOnNewLineForControlBlocks"),SB,M_e],8,1),qr("NewLineBeforeOpenBraceInFunction",D,19,[sf("placeOpenBraceOnNewLineForFunctions"),nA,M_e],8,1),qr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[sf("placeOpenBraceOnNewLineForFunctions"),$2e,M_e],8,1),qr("SpaceAfterTypeAssertion",32,r,[sf("insertSpaceAfterTypeAssertion"),Ji,w_e],4),qr("NoSpaceAfterTypeAssertion",32,r,[W_("insertSpaceAfterTypeAssertion"),Ji,w_e],16),qr("SpaceBeforeTypeAnnotation",r,[58,59],[sf("insertSpaceBeforeTypeAnnotation"),Ji,N_e],4),qr("NoSpaceBeforeTypeAnnotation",r,[58,59],[W_("insertSpaceBeforeTypeAnnotation"),Ji,N_e],16),qr("NoOptionalSemicolon",27,o,[j2e("semicolons","remove"),$rt],32),qr("OptionalSemicolon",r,o,[j2e("semicolons","insert"),Qrt],64)],B=[qr("NoSpaceBeforeSemicolon",r,27,[Ji],16),qr("SpaceBeforeOpenBraceInControl",j,19,[D_e("placeOpenBraceOnNewLineForControlBlocks"),SB,k_e,P_e],4,1),qr("SpaceBeforeOpenBraceInFunction",D,19,[D_e("placeOpenBraceOnNewLineForFunctions"),nA,RQ,k_e,P_e],4,1),qr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[D_e("placeOpenBraceOnNewLineForFunctions"),$2e,k_e,P_e],4,1),qr("NoSpaceBeforeComma",r,28,[Ji],16),qr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ji],16),qr("NoSpaceAfterCloseBracket",24,r,[Ji,Grt],16),qr("SpaceAfterSemicolon",27,r,[Ji],4),qr("SpaceBetweenForAndAwaitKeyword",99,135,[Ji],4),qr("SpaceBetweenStatements",[22,92,93,84],r,[Ji,L_e,Art],4),qr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ji],4)];return[...K,...Y,...B]}function qr(e,t,r,i,o,s=0){return{leftTokenRange:G2e(t),rightTokenRange:G2e(r),rule:{debugName:e,context:i,action:o,flags:s}}}function hM(e){return{tokens:e,isSpecific:!0}}function G2e(e){return typeof e=="number"?hM([e]):To(e)?hM(e):e}function V2e(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)Bo(r,o)||i.push(o);return hM(i)}function j2e(e,t){return r=>r.options&&r.options[e]===t}function sf(e){return t=>t.options&&Ss(t.options,e)&&!!t.options[e]}function R_e(e){return t=>t.options&&Ss(t.options,e)&&!t.options[e]}function W_(e){return t=>!t.options||!Ss(t.options,e)||!t.options[e]}function D_e(e){return t=>!t.options||!Ss(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function U2e(e){return t=>!t.options||!Ss(t.options,e)||!!t.options[e]}function C_e(e){return e.contextNode.kind===248}function Art(e){return!C_e(e)}function rb(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 EB(e){return!rb(e)}function H2e(e){return!N_e(e)}function N_e(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||vI(t)}function Irt(e){return Uo(e.contextNode)&&e.contextNode.questionToken}function xrt(e){return!Irt(e)}function Rrt(e){return e.contextNode.kind===227||e.contextNode.kind===194}function P_e(e){return e.TokensAreOnSameLine()||RQ(e)}function K2e(e){return e.contextNode.kind===206||e.contextNode.kind===200||Drt(e)}function M_e(e){return RQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function J2e(e){return q2e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Drt(e){return q2e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function q2e(e){return X2e(e.contextNode)}function RQ(e){return X2e(e.nextTokenParent)}function X2e(e){if(Q2e(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function nA(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 Crt(e){return!nA(e)}function Y2e(e){return e.contextNode.kind===262||e.contextNode.kind===218}function $2e(e){return Q2e(e.contextNode)}function Q2e(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 Nrt(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function SB(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 Z2e(e){return e.contextNode.kind===210}function Prt(e){return e.contextNode.kind===213}function Mrt(e){return e.contextNode.kind===214}function Lrt(e){return Prt(e)||Mrt(e)}function krt(e){return e.currentTokenSpan.kind!==28}function wrt(e){return e.nextTokenSpan.kind!==24}function Ort(e){return e.nextTokenSpan.kind!==22}function Wrt(e){return e.contextNode.kind===219}function Frt(e){return e.contextNode.kind===205}function Ji(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function eke(e){return e.contextNode.kind!==12}function L_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function DQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function zrt(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function tke(e){return e.contextNode.kind===291}function Brt(e){return e.nextTokenParent.kind!==295}function nke(e){return e.nextTokenParent.kind===295}function rke(e){return e.contextNode.kind===285}function Grt(e){return!nA(e)&&!RQ(e)}function Vrt(e){return e.TokensAreOnSameLine()&&bf(e.contextNode)&&ike(e.currentTokenParent)&&!ike(e.nextTokenParent)}function ike(e){for(;e&&ht(e);)e=e.parent;return e&&e.kind===170}function jrt(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function k_e(e){return e.formattingRequestKind!==2}function Urt(e){return e.contextNode.kind===267}function Hrt(e){return e.contextNode.kind===187}function Krt(e){return e.contextNode.kind===180}function oke(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 TB(e){return oke(e.currentTokenSpan,e.currentTokenParent)||oke(e.nextTokenSpan,e.nextTokenParent)}function w_e(e){return e.contextNode.kind===216}function Jrt(e){return!w_e(e)}function qrt(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function ake(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Xrt(e){return e.contextNode.kind===235}function ske(e){return!Yrt(e)}function Yrt(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function $rt(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(sR(t)){let s=e.nextTokenParent===e.currentTokenParent?aS(e.currentTokenParent,Fn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!_p(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Uo(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 Qrt(e){return a7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Zrt(e){return!kr(e.contextNode)||!mp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var eit=bt({"src/services/formatting/rules.ts"(){"use strict";ai(),QO()}});function tit(e,t){return{options:e,getRules:nit(),host:t}}function nit(){return O_e===void 0&&(O_e=iit(B2e())),O_e}function rit(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function iit(e){let t=oit(e);return r=>{let i=t[lke(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let d=~rit(s);l.action&d&&oo(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function oit(e){let t=new Array(CQ*CQ),r=new Array(t.length);for(let i of e){let o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let s of i.leftTokenRange.tokens)for(let l of i.rightTokenRange.tokens){let d=lke(s,l),p=t[d];p===void 0&&(p=t[d]=[]),ait(p,i.rule,o,r,d)}}return t}function lke(e,t){return x.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*CQ+t}function ait(e,t,r,i,o){let s=t.action&3?r?0:gM.StopRulesAny:t.context!==bB?r?gM.ContextRulesSpecific:gM.ContextRulesAny:r?gM.NoContextRulesSpecific:gM.NoContextRulesAny,l=i[o]||0;e.splice(sit(l,s),0,t),i[o]=lit(l,s)}function sit(e,t){let r=0;for(let i=0;i<=t;i+=ND)r+=e&AB,e>>=ND;return r}function lit(e,t){let r=(e>>t&AB)+1;return x.assert((r&AB)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(AB<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=ND*1]="StopRulesAny",e[e.ContextRulesSpecific=ND*2]="ContextRulesSpecific",e[e.ContextRulesAny=ND*3]="ContextRulesAny",e[e.NoContextRulesSpecific=ND*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=ND*5]="NoContextRulesAny",e))(gM||{})}});function NQ(e,t,r){let i={pos:e,end:t,kind:r};return x.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>x.formatSyntaxKind(r)}),i}function dit(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=f2(i,t);for(;y_(t.text.charCodeAt(o));)o--;jd(t.text.charCodeAt(o))&&o--;let s={pos:kv(i-1,t),end:o+1};return IB(s,t,r,2)}function uit(e,t,r){let i=W_e(e,27,t);return cke(F_e(i),t,r,3)}function pit(e,t,r){let i=W_e(e,19,t);if(!i)return[];let o=i.parent,s=F_e(o),l={pos:rm(s.getStart(t),t),end:e};return IB(l,t,r,4)}function fit(e,t,r){let i=W_e(e,20,t);return cke(F_e(i),t,r,5)}function mit(e,t){let r={pos:0,end:e.text.length};return IB(r,e,t,0)}function _it(e,t,r,i){let o={pos:rm(e,r),end:t};return IB(o,r,i,1)}function W_e(e,t,r){let i=Tc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function F_e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!hit(t.parent,t);)t=t.parent;return t}function hit(e,t){switch(e.kind){case 263:case 264:return rf(e.members,t);case 267:let r=e.body;return!!r&&r.kind===268&&rf(r.statements,t);case 312:case 241:case 268:return rf(e.statements,t);case 299:return rf(e.block.statements,t)}return!1}function git(e,t){return r(t);function r(i){let o=Go(i,s=>xq(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function yit(e,t){if(!e.length)return o;let r=e.filter(s=>qP(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;let l=r[i];if(s.end<=l.start)return!1;if(Oz(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function vit(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=Tc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function bit(e,t,r){let i=-1,o;for(;e;){let s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(F_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Eit(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return A_e(t.text,r,l.pos,l.end,d=>dke(l,e,i,o,d,s,1,p=>!1,t))}function cke(e,t,r,i){if(!e)return[];let o={pos:rm(e.getStart(t),t),end:e.end};return IB(o,t,r,i)}function IB(e,t,r,i){let o=git(e,t);return A_e(t.text,t.languageVariant,vit(o,e,t),e.end,s=>dke(e,o,F_.getIndentationForNode(o,e,t,r.options),bit(o,r.options,t),s,r,i,yit(t.parseDiagnostics,e),t))}function dke(e,t,r,i,o,{options:s,getRules:l,host:d},p,h,m){var y;let E=new T_e(m,p,s),S,A,N,D,w,j=-1,K=[];if(o.advance(),o.isOnToken()){let be=m.getLineAndCharacterOfPosition(t.getStart(m)).line,ze=be;bf(t)&&(ze=m.getLineAndCharacterOfPosition(HV(t,m)).line),me(t,t,be,ze,r,i)}let Y=o.getCurrentLeadingTrivia();if(Y){let be=F_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;ge(Y,be,!0,ze=>{J(ze,m.getLineAndCharacterOfPosition(ze.pos),t,t,void 0),pe(ze.pos,be,!1)}),s.trimTrailingWhitespace!==!1&&Ge(Y)}if(A&&o.getTokenFullStart()>=e.end){let be=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(be&&be.pos===S){let ze=((y=Tc(be.end,m,t))==null?void 0:y.parent)||N;re(be,m.getLineAndCharacterOfPosition(be.pos).line,ze,A,D,N,ze,void 0)}}return K;function B(be,ze,tt,Wt,_t){if(qP(Wt,be,ze)||Xw(Wt,be,ze)){if(_t!==-1)return _t}else{let Je=m.getLineAndCharacterOfPosition(be).line,pt=rm(be,m),Zt=F_.findFirstNonWhitespaceColumn(pt,be,m,s);if(Je!==tt||be===Zt){let en=F_.getBaseIndentation(s);return en>Zt?en:Zt}}return-1}function ce(be,ze,tt,Wt,_t,Je){let pt=F_.shouldIndentChildNode(s,be)?s.indentSize:0;return Je===ze?{indentation:ze===w?j:_t.getIndentation(),delta:Math.min(s.indentSize,_t.getDelta(be)+pt)}:tt===-1?be.kind===21&&ze===w?{indentation:j,delta:_t.getDelta(be)}:F_.childStartsOnTheSameLineWithElseInIfStatement(Wt,be,ze,m)||F_.childIsUnindentedBranchOfConditionalExpression(Wt,be,ze,m)||F_.argumentStartsOnSameLineAsPreviousArgument(Wt,be,ze,m)?{indentation:_t.getIndentation(),delta:pt}:{indentation:_t.getIndentation()+_t.getDelta(be),delta:pt}:{indentation:tt,delta:pt}}function z(be){if(Am(be)){let ze=Vr(be.modifiers,Sa,Kl(be.modifiers,bd));if(ze)return ze.kind}switch(be.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(be.asteriskToken)return 42;case 172:case 169:let ze=Po(be);if(ze)return ze.kind}}function Z(be,ze,tt,Wt){return{getIndentationForComment:(pt,Zt,en)=>{switch(pt){case 20:case 24:case 22:return tt+Je(en)}return Zt!==-1?Zt:tt},getIndentationForToken:(pt,Zt,en,Dn)=>!Dn&&_t(pt,Zt,en)?tt+Je(en):tt,getIndentation:()=>tt,getDelta:Je,recomputeIndentation:(pt,Zt)=>{F_.shouldIndentChildNode(s,Zt,be,m)&&(tt+=pt?s.indentSize:-s.indentSize,Wt=F_.shouldIndentChildNode(s,be)?s.indentSize:0)}};function _t(pt,Zt,en){switch(Zt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(en.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(en.kind!==200)return!1;break}return ze!==pt&&!(bf(be)&&Zt===z(be))}function Je(pt){return F_.nodeWillIndentChild(s,be,pt,m,!0)?Wt:0}}function me(be,ze,tt,Wt,_t,Je){if(!qP(e,be.getStart(m),be.getEnd()))return;let pt=Z(be,tt,_t,Je),Zt=ze;for(Go(be,pn=>{en(pn,-1,be,pt,tt,Wt,!1)},pn=>{Dn(pn,be,tt,pt)});o.isOnToken()&&o.getTokenFullStart()Math.min(be.end,e.end))break;Kn(pn,be,pt,be)}function en(pn,Xt,Kt,hi,uo,Li,So,Qn){if(x.assert(!Ks(pn)),Fl(pn)||wre(Kt,pn))return Xt;let Ur=pn.getStart(m),Er=m.getLineAndCharacterOfPosition(Ur).line,on=Er;bf(pn)&&(on=m.getLineAndCharacterOfPosition(HV(pn,m)).line);let Ye=-1;if(So&&rf(e,Kt)&&(Ye=B(Ur,pn.end,uo,e,Xt),Ye!==-1&&(Xt=Ye)),!qP(e,pn.pos,pn.end))return pn.ende.end)return Xt;if(si.token.end>Ur){si.token.pos>Ur&&o.skipToStartOf(pn);break}Kn(si,be,hi,be)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Xt;if(gI(pn)){let si=o.readTokenInfo(pn);if(pn.kind!==12)return x.assert(si.token.end===pn.end,"Token end is child end"),Kn(si,be,hi,pn),Xt}let Ot=pn.kind===170?Er:Li,In=ce(pn,Er,Ye,be,hi,Ot);return me(pn,Zt,Er,on,In.indentation,In.delta),Zt=be,Qn&&Kt.kind===209&&Xt===-1&&(Xt=In.indentation),Xt}function Dn(pn,Xt,Kt,hi){x.assert(v0(pn)),x.assert(!Ks(pn));let uo=Sit(Xt,pn),Li=hi,So=Kt;if(!qP(e,pn.pos,pn.end)){pn.endpn.pos)break;if(Er.token.kind===uo){So=m.getLineAndCharacterOfPosition(Er.token.pos).line,Kn(Er,Xt,hi,Xt);let on;if(j!==-1)on=j;else{let Ye=rm(Er.token.pos,m);on=F_.findFirstNonWhitespaceColumn(Ye,Er.token.pos,m,s)}Li=Z(Xt,Kt,on,s.indentSize)}else Kn(Er,Xt,hi,Xt)}let Qn=-1;for(let Er=0;Erpe(In.pos,Ot,!1))}on!==-1&&Ye&&(pe(pn.token.pos,on,Qn===1),w=Er.line,j=on)}o.advance(),Zt=Xt}}function ge(be,ze,tt,Wt){for(let _t of be){let Je=rf(e,_t);switch(_t.kind){case 3:Je&&ne(_t,ze,!tt),tt=!1;break;case 2:tt&&Je&&Wt(_t),tt=!1;break;case 4:tt=!0;break}}return tt}function q(be,ze,tt,Wt){for(let _t of be)if(Uz(_t.kind)&&rf(e,_t)){let Je=m.getLineAndCharacterOfPosition(_t.pos);J(_t,Je,ze,tt,Wt)}}function J(be,ze,tt,Wt,_t){let Je=h(be),pt=0;if(!Je)if(A)pt=re(be,ze.line,tt,A,D,N,Wt,_t);else{let Zt=m.getLineAndCharacterOfPosition(e.pos);he(Zt.line,ze.line)}return A=be,S=be.end,N=tt,D=ze.line,pt}function re(be,ze,tt,Wt,_t,Je,pt,Zt){E.updateContext(Wt,Je,be,tt,pt);let en=l(E),Dn=E.options.trimTrailingWhitespace!==!1,Kn=0;return en?jte(en,pn=>{if(Kn=Et(pn,Wt,_t,be,ze),Zt)switch(Kn){case 2:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!1,pt);break;case 1:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!0,pt);break;default:x.assert(Kn===0)}Dn=Dn&&!(pn.action&16)&&pn.flags!==1}):Dn=Dn&&be.kind!==1,ze!==_t&&Dn&&he(_t,ze,Wt),Kn}function pe(be,ze,tt){let Wt=z_e(ze,s);if(tt)De(be,0,Wt);else{let _t=m.getLineAndCharacterOfPosition(be),Je=kv(_t.line,m);(ze!==xe(Je,_t.character)||fe(Wt,Je))&&De(Je,_t.character,Wt)}}function xe(be,ze){let tt=0;for(let Wt=0;Wt0){let Li=z_e(uo,s);De(Kt,hi.character,Li)}else Ae(Kt,hi.character)}}function he(be,ze,tt){for(let Wt=be;WtJe)continue;let pt=Ce(_t,Je);pt!==-1&&(x.assert(pt===_t||!y_(m.text.charCodeAt(pt-1))),Ae(pt,Je+1-pt))}}function Ce(be,ze){let tt=ze;for(;tt>=be&&y_(m.text.charCodeAt(tt));)tt--;return tt!==ze?tt+1:-1}function Ge(be){let ze=A?A.end:e.pos;for(let tt of be)Uz(tt.kind)&&(zeqw(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function Sit(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 Tit(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function z_e(e,t){if((!PQ||PQ.tabSize!==t.tabSize||PQ.indentSize!==t.indentSize)&&(PQ={tabSize:t.tabSize,indentSize:t.indentSize},YO=$O=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return $O||($O=[]),$O[o]===void 0?(i=tO(" ",t.indentSize*o),$O[o]=i):i=$O[o],s?i+tO(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return YO||(YO=[]),YO[i]===void 0?YO[i]=s=tO(" ",i):s=YO[i],o?s+tO(" ",o):s}}var PQ,YO,$O,Ait=bt({"src/services/formatting/formatting.ts"(){"use strict";ai(),QO()}}),F_,Iit=bt({"src/services/formatting/smartIndenter.ts"(){"use strict";ai(),QO(),(e=>{let t;(ne=>{ne[ne.Unknown=-1]="Unknown"})(t||(t={}));function r(ne,he,Ce,Ge=!1){if(ne>he.text.length)return d(Ce);if(Ce.indentStyle===0)return 0;let ve=Tc(ne,he,void 0,!0),Ae=uke(he,ne,ve||null);if(Ae&&Ae.kind===3)return i(he,ne,Ce,Ae);if(!ve)return d(Ce);if(Lq(ve.kind)&&ve.getStart(he)<=ne&&ne=0),ve<=Ae)return J(kv(Ae,ne),he,ne,Ce);let De=kv(ve,ne),{column:Le,character:Et}=q(De,he,ne,Ce);return Le===0?Le:ne.text.charCodeAt(De+Et)===42?Le-1:Le}function o(ne,he,Ce){let Ge=he;for(;Ge>0;){let Ae=ne.text.charCodeAt(Ge);if(!Cg(Ae))break;Ge--}let ve=rm(Ge,ne);return J(ve,Ge,ne,Ce)}function s(ne,he,Ce,Ge,ve,Ae){let De,Le=Ce;for(;Le;){if(Rq(Le,he,ne)&&xe(Ae,Le,De,ne,!0)){let be=A(Le,ne),ze=S(Ce,Le,Ge,ne),tt=ze!==0?ve&&ze===2?Ae.indentSize:0:Ge!==be.line?Ae.indentSize:0;return p(Le,be,void 0,tt,ne,!0,Ae)}let Et=Z(Le,ne,Ae,!0);if(Et!==-1)return Et;De=Le,Le=Le.parent}return d(Ae)}function l(ne,he,Ce,Ge){let ve=Ce.getLineAndCharacterOfPosition(ne.getStart(Ce));return p(ne,ve,he,0,Ce,!1,Ge)}e.getIndentationForNode=l;function d(ne){return ne.baseIndentSize||0}e.getBaseIndentation=d;function p(ne,he,Ce,Ge,ve,Ae,De){var Le;let Et=ne.parent;for(;Et;){let be=!0;if(Ce){let _t=ne.getStart(ve);be=_tCe.end}let ze=h(Et,ne,ve),tt=ze.line===he.line||D(Et,ne,he.line,ve);if(be){let _t=(Le=K(ne,ve))==null?void 0:Le[0],Je=!!_t&&A(_t,ve).line>ze.line,pt=Z(ne,ve,De,Je);if(pt!==-1||(pt=y(ne,Et,he,tt,ve,De),pt!==-1))return pt+Ge}xe(De,Et,ne,ve,Ae)&&!tt&&(Ge+=De.indentSize);let Wt=N(Et,ne,he.line,ve);ne=Et,Et=ne.parent,he=Wt?ve.getLineAndCharacterOfPosition(ne.getStart(ve)):ze}return Ge+d(De)}function h(ne,he,Ce){let Ge=K(he,Ce),ve=Ge?Ge.pos:ne.getStart(Ce);return Ce.getLineAndCharacterOfPosition(ve)}function m(ne,he,Ce){let Ge=Zce(ne);return Ge&&Ge.listItemIndex>0?me(Ge.list.getChildren(),Ge.listItemIndex-1,he,Ce):-1}function y(ne,he,Ce,Ge,ve,Ae){return(Hd(ne)||l2(ne))&&(he.kind===312||!Ge)?ge(Ce,ve,Ae):-1}let E;(ne=>{ne[ne.Unknown=0]="Unknown",ne[ne.OpenBrace=1]="OpenBrace",ne[ne.CloseBrace=2]="CloseBrace"})(E||(E={}));function S(ne,he,Ce,Ge){let ve=aS(ne,he,Ge);if(!ve)return 0;if(ve.kind===19)return 1;if(ve.kind===20){let Ae=A(ve,Ge).line;return Ce===Ae?2:0}return 0}function A(ne,he){return he.getLineAndCharacterOfPosition(ne.getStart(he))}function N(ne,he,Ce,Ge){if(!(ia(ne)&&Bo(ne.arguments,he)))return!1;let ve=ne.expression.getEnd();return hs(Ge,ve).line===Ce}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function D(ne,he,Ce,Ge){if(ne.kind===245&&ne.elseStatement===he){let ve=_s(ne,93,Ge);return x.assert(ve!==void 0),A(ve,Ge).line===Ce}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=D;function w(ne,he,Ce,Ge){if(PR(ne)&&(he===ne.whenTrue||he===ne.whenFalse)){let ve=hs(Ge,ne.condition.end).line;if(he===ne.whenTrue)return Ce===ve;{let Ae=A(ne.whenTrue,Ge).line,De=hs(Ge,ne.whenTrue.end).line;return ve===Ae&&De===Ce}}return!1}e.childIsUnindentedBranchOfConditionalExpression=w;function j(ne,he,Ce,Ge){if(v_(ne)){if(!ne.arguments)return!1;let ve=Vr(ne.arguments,Et=>Et.pos===he.pos);if(!ve)return!1;let Ae=ne.arguments.indexOf(ve);if(Ae===0)return!1;let De=ne.arguments[Ae-1],Le=hs(Ge,De.getEnd()).line;if(Ce===Le)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=j;function K(ne,he){return ne.parent&&B(ne.getStart(he),ne.getEnd(),ne.parent,he)}e.getContainingList=K;function Y(ne,he,Ce){return he&&B(ne,ne,he,Ce)}function B(ne,he,Ce,Ge){switch(Ce.kind){case 183:return ve(Ce.typeArguments);case 210:return ve(Ce.properties);case 209:return ve(Ce.elements);case 187:return ve(Ce.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return ve(Ce.typeParameters)||ve(Ce.parameters);case 177:return ve(Ce.parameters);case 263:case 231:case 264:case 265:case 352:return ve(Ce.typeParameters);case 214:case 213:return ve(Ce.typeArguments)||ve(Ce.arguments);case 261:return ve(Ce.declarations);case 275:case 279:return ve(Ce.elements);case 206:case 207:return ve(Ce.elements)}function ve(Ae){return Ae&&Xw(ce(Ce,Ae,Ge),ne,he)?Ae:void 0}}function ce(ne,he,Ce){let Ge=ne.getChildren(Ce);for(let ve=1;ve=0&&he=0;De--){if(ne[De].kind===28)continue;if(Ce.getLineAndCharacterOfPosition(ne[De].end).line!==Ae.line)return ge(Ae,Ce,Ge);Ae=A(ne[De],Ce)}return-1}function ge(ne,he,Ce){let Ge=he.getPositionOfLineAndCharacter(ne.line,0);return J(Ge,Ge+ne.character,he,Ce)}function q(ne,he,Ce,Ge){let ve=0,Ae=0;for(let De=ne;DeT_e,FormattingRequestKind:()=>S_e,RuleAction:()=>I_e,RuleFlags:()=>x_e,SmartIndenter:()=>F_,anyContext:()=>bB,createTextRangeWithKind:()=>NQ,formatDocument:()=>mit,formatNodeGivenIndentation:()=>Eit,formatOnClosingCurly:()=>fit,formatOnEnter:()=>dit,formatOnOpeningCurly:()=>pit,formatOnSemicolon:()=>uit,formatSelection:()=>_it,getAllRules:()=>B2e,getFormatContext:()=>tit,getFormattingScanner:()=>A_e,getIndentationString:()=>z_e,getRangeOfEnclosingComment:()=>uke});var QO=bt({"src/services/_namespaces/ts.formatting.ts"(){"use strict";Ert(),Srt(),Trt(),eit(),cit(),Ait(),Iit()}}),ai=bt({"src/services/_namespaces/ts.ts"(){"use strict";ea(),Gw(),Mje(),nUe(),aUe(),zxe(),yUe(),vUe(),xUe(),OUe(),WUe(),zUe(),JUe(),qUe(),_qe(),hqe(),vqe(),zqe(),Gqe(),Ta(),Wme(),Yme(),gtt(),Stt(),ztt(),cRe(),NRe(),ant(),mnt(),Sh(),Snt(),Ynt(),irt(),lrt(),brt(),QO()}});function xit(){return mke??(mke=new fm(Jp))}function pke(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${tg(o,[e])}`:"",s}function Rit(e,t,r,i){let o=pke(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Dit(e,t,r,i){let o=!1;return()=>{fke&&!o&&(x.log.warn(pke(e,!1,t,r,i)),o=!0)}}function Cit(e,t={}){let r=typeof t.typeScriptVersion=="string"?new fm(t.typeScriptVersion):t.typeScriptVersion??xit(),i=typeof t.errorAfter=="string"?new fm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new fm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new fm(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,d=!o||r.compareTo(o)>=0;return l?Rit(e,i,s,t.message):d?Dit(e,i,s,t.message):qa}function Nit(e,t){return function(){return e(),t.apply(this,arguments)}}function B_e(e,t){let r=Cit(t?.name??x.getFunctionName(e),t);return Nit(r,e)}var fke,mke,_ke=bt({"src/deprecatedCompat/deprecate.ts"(){"use strict";LQ(),fke=!0}});function MQ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(let l of Object.keys(i)){let d=+l;!isNaN(d)&&Ss(t,`${d}`)&&(t[d]=B_e(t[d],{...i[d],name:e}))}let o=Pit(t,r);return s;function s(...l){let d=o(l),p=d!==void 0?t[d]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function Pit(e,t){return r=>{for(let i=0;Ss(e,`${i}`)&&Ss(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function hke(e){return{overload:t=>({bind:r=>({finish:()=>MQ(e,t,r),deprecate:i=>({finish:()=>MQ(e,t,r,i)})})})}}var Mit=bt({"src/deprecatedCompat/deprecations.ts"(){"use strict";LQ(),_ke()}}),Lit=bt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";LQ(),_ke(),ioe(e=>{let t=e.getIdentifierConstructor();Ss(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:B_e(function(){return eE(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Ss(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:B_e(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."})})})}}),LQ=bt({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";ea(),Mit(),Lit()}}),kit=bt({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";ea(),Gw(),V_e()}});function gke(e,t,r,i){try{let o=KR(t,Yr(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function wit(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=yke(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function yke(e,t,r,i){let o=r.length-i,s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function vke(e){return`@types/${e}@ts${g_}`}var bke,Eke,Oit=bt({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";kit(),V_e(),bke={isEnabled:()=>!1,writeLine:qa},Eke=class{constructor(e,t,r,i,o,s=bke){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});let r={kind:Iz,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:x.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:KP,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${xE(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=O_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=hm(oi(t),d=>{if(this.installTypingHost.fileExists(Yr(d,"package.json")))return d})||o;if(l)this.installWorker(-1,[r],l,d=>{let p=d?`Package ${r} installed.`:`There was an error installing ${r}.`,h={kind:Bw,projectName:i,id:s,success:d,message:p};this.sendResponse(h)});else{let d={kind:Bw,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(d)}}initializeSafeList(){if(this.typesMapLocation){let e=O_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=O_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=Yr(e,"package.json"),r=Yr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){let i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${xE(i)}`),this.log.writeLine(`Loaded content of '${r}':${xE(o)}`)),i.devDependencies&&o.dependencies)for(let s in i.devDependencies){if(!Ss(o.dependencies,s))continue;let l=nc(s);if(!l)continue;let d=gke(e,l,this.installTypingHost,this.log);if(!d){this.missingTypingsSet.add(l);continue}let p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===d)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${d}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${d}'`);let h=_W(o.dependencies,s),m=h&&h.version;if(!m)continue;let y={typingLocation:d,version:new fm(m)};this.packageNameToTypingLocation.set(l,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return to(e,t=>{let r=qR(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}let i=O_.validatePackageName(t);if(i!==O_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(O_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&O_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){let t=Yr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);let s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:xz,eventId:s,typingsInstallerVersion:Jp,projectName:e.projectName});let l=o.map(vke);this.installTypingsAsync(s,l,t,d=>{try{if(!d){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(let h of o)this.missingTypingsSet.add(h);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);let p=[];for(let h of o){let m=gke(t,h,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(h);continue}let y=this.typesRegistry.get(h),E=new fm(y[`ts${g_}`]||y[this.latestDistTag]),S={typingLocation:m,version:E};this.packageNameToTypingLocation.set(h,S),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{let p={kind:Rz,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:d,typingsInstallerVersion:Jp};this.sendResponse(p)}})}ensureDirectoryExists(e,t){let r=oi(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let r=this.projectWatchers.get(e),i=new Set(t);!r||dh(i,o=>!r.has(o))||dh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:KP,projectName:e,files:t})):this.sendResponse({kind:KP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Fw}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),G_e={};xa(G_e,{TypingsInstaller:()=>Eke,getNpmCommandForInstallation:()=>yke,installNpmPackages:()=>wit,typingsName:()=>vke});var Wit=bt({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";Oit()}}),V_e=bt({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";Dz(),Wit()}}),Fit=bt({"src/server/types.ts"(){"use strict"}});function j_e(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function dl(e){return ma(e)}function ZO(e,t,r){let i=cp(e)?e:ho(e,t);return r(i)}function Ske(e){return e}function Tke(){let e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function U_e(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function H_e(e){return`/dev/null/inferredProject${e}*`}function K_e(e){return`/dev/null/autoImportProviderProject${e}*`}function J_e(e){return`/dev/null/auxiliaryProject${e}*`}function q_e(){return[]}var kQ,_c,wQ,Yy,zit=bt({"src/server/utilitiesPublic.ts"(){"use strict";ib(),kQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(kQ||{}),_c=q_e(),wQ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(wQ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})(Yy||(Yy={}))}});function OQ(e){let t=nc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function Ake(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=by(e,t,Qs,r);i>=0&&e.splice(i,1)}var WQ,FQ,Bit=bt({"src/server/utilities.ts"(){"use strict";ib(),iA(),WQ=class z4e{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){let o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(z4e.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){let r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=nu)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=nu)==null||s.logStopScheduledOperation()}},FQ=class B4e{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(B4e.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=nu)==null||r.logStartScheduledOperation("GC collect");let o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){let l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=nu)==null||i.logStopScheduledOperation()}}}}),zQ,X_e,Y_e,$_e,Q_e,Z_e,ehe,the,nhe,rhe,ihe,ohe,ahe,she,lhe=bt({"src/server/protocol.ts"(){"use strict";zQ=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(zQ||{}),X_e=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(X_e||{}),Y_e=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Y_e||{}),$_e=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))($_e||{}),Q_e=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Q_e||{}),Z_e=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Z_e||{}),ehe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(ehe||{}),the=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(the||{}),nhe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(nhe||{}),rhe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(rhe||{}),ihe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(ihe||{}),ohe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(ohe||{}),ahe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(ahe||{}),she=(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))(she||{})}}),che={};xa(che,{ClassificationType:()=>she,CommandTypes:()=>zQ,CompletionTriggerKind:()=>Z_e,IndentStyle:()=>ehe,JsxEmit:()=>nhe,ModuleKind:()=>rhe,ModuleResolutionKind:()=>ihe,NewLineKind:()=>ohe,OrganizeImportsMode:()=>X_e,PollingWatchKind:()=>Q_e,ScriptTarget:()=>ahe,SemicolonPreference:()=>the,WatchDirectoryKind:()=>$_e,WatchFileKind:()=>Y_e});var Git=bt({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";lhe()}});function e8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&nc(e)[0]==="^"||e.includes(":^")&&!e.includes(nl)}function Ike(e){return!e||n8(e)?Yy.ThrowNoProject():e}function Vit(e){x.assert(typeof e=="number",`Expected position ${e} to be a number.`),x.assert(e>=0,"Expected position to be non-negative.")}function jit(e){x.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),x.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),x.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),x.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var BQ,GQ,Uit=bt({"src/server/scriptInfo.ts"(){"use strict";ib(),iA(),BQ=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return x.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=cD(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=Nz.fromString(x.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let r=this.getLineMap(),i=r[e],o=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!WI(this.info.fileName)){let o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>NB)return x.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=jB.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=jB.fromString(x.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(x.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return x.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=hI(x.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};let t=this.getLineMap();return AK(this.text,t)}},GQ=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=e8(t),this.textStorage=new BQ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||k6(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){x.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return Bo(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Tx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){ME(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!PD(e)&&e.addMissingFileRoot(t.fileName)}Gh(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Yy.ThrowNoProject();case 1:return Ike(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return gt(this.containingProjects,n8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Vit(e);let t=this.textStorage.positionToLineOffset(e);return jit(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!No(this.sourceMapFilePath)&&(Rf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function xke(e,t){if(e===t||(e||_c).length===0&&(t||_c).length===0)return!0;let r=new Map,i=0;for(let o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(let o of t){let s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function Hit(e,t){return e.enable!==t.enable||!xke(e.include,t.include)||!xke(e.exclude,t.exclude)}function Kit(e,t){return Vv(e)!==Vv(t)}function Jit(e,t){return e===t?!1:!Gm(e,t)}var xB,VQ,qit=bt({"src/server/typingsCache.ts"(){"use strict";ib(),iA(),xB={isKnownTypesPackageName:Vm,installPackage:Ho,enqueueInstallTypingsRequest:qa,attach:qa,onProjectClosed:qa,globalTypingsCacheLocation:void 0},VQ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){let i=e.getTypeAcquisition();if(!i||!i.enable)return;let o=this.perProjectCache.get(e.getProjectName());(r||!o||Hit(i,o.typeAcquisition)||Kit(e.getCompilationSettings(),o.compilerOptions)||Jit(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:_c,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){let s=ZS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?_c:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function t8(e,t=!1){let r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:Ed(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function Xit(e){let t=t8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function dhe(e){let t=t8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function uhe(e){let t=t8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function phe(e){return!e.some(t=>Sl(t,".ts")&&!Ed(t)||Sl(t,".tsx"))}function fhe(e){return e.generatedFilePath!==void 0}function Yit(e,t){var r,i;let o=e.getSourceFiles();(r=rr)==null||r.push(rr.Phase.Session,"getUnresolvedImports",{count:o.length});let s=e.getTypeChecker().getAmbientModules().map(d=>Yf(d.getName())),l=FC(va(o,d=>$it(e,d,s,t)));return(i=rr)==null||i.pop(),l}function $it(e,t,r,i){return WC(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!GN(s.extension))&&!Yc(l)&&!r.some(d=>d===l)&&(o=Tn(o,mw(l).packageName))},t),o||_c})}function PD(e){return e.projectKind===0}function ME(e){return e.projectKind===1}function jQ(e){return e.projectKind===2}function n8(e){return e.projectKind===3||e.projectKind===4}var yM,rA,UQ,HQ,KQ,JQ,qQ,RB,Qit=bt({"src/server/project.ts"(){"use strict";ib(),ib(),iA(),yM=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(yM||{}),rA=class G4e{constructor(t,r,i,o,s,l,d,p,h,m,y){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=d,this.compileOnSaveEnabled=p,this.watchOptions=h,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=Vm,this.dirty=!1,this.typingFiles=_c,this.moduleSpecifierCache=Ihe(this),this.createHash=ta(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=O_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(y),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new SY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||Vv(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=H7(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:x.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let E=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=S=>this.writeLog(S):E.trace&&(this.trace=S=>E.trace(S)),this.realpath=ta(E,E.realpath),this.resolutionCache=PJ(this,this.currentDirectory,!0),this.languageService=ipe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),n8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return zp(this),uhe(this)}isJsOnlyProject(){return zp(this),Xit(this)}static resolveModule(t,r,i,o){return G4e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){x.assertIsDefined(i.require);let s,l;for(let d of r){let p=Pd(i.resolvePath(Yr(d,"node_modules")));o(`Loading ${t.name} from ${d} (resolved to ${p})`);let h=i.require(p,t.name);if(!h.error){l=h.module;break}let m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){x.assertIsDefined(i.importPlugin);let s,l;for(let d of r){let p=Yr(d,"node_modules");o(`Dynamically importing ${t.name} from ${d} (resolved to ${p})`);let h;try{h=await i.importPlugin(p,t.name)}catch(y){h={module:void 0,error:y}}if(!h.error){l=h.module;break}let m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=oU(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return Xe;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Hr(t,this.typingFiles)||Xe}getOrCreateScriptInfoAndAttachToProject(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){let i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){let r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=oi(ma(this.projectService.getExecutingFilePath()));return Yr(t,HL(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){let r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return tl(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),kc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return jr(this.projectErrors,t=>!t.file)||_c}getAllProjectErrors(){return this.projectErrors||_c}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&zp(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(zp(this),this.builderState=xm.create(this.program,this.builderState,!0),to(xm.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:_c};let{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let l of s){let d=ho(l.name,this.currentDirectory);r(d,l.text,l.writeByteOrderMark)}if(this.builderState&&Af(this.compilerOptions)){let l=s.filter(d=>Ed(d.name));if(l.length===1){let d=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):HC(l[0].text);xm.updateSignatureOfFile(this.builderState,p,d.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(x.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return ZS(va(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),gn(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(let r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&($u(this.missingFilesMap,Hm),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?mn(this.program.getSourceFiles(),t=>{let r=this.projectService.getScriptInfoForPath(t.resolvedPath);return x.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return _c}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){let s=ope(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}let i=[];for(let o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){let o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(let s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(let i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){x.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){zp(this)}updateGraph(){var t,r,i,o,s;(t=rr)==null||t.push(rr.Phase.Session,"updateGraph",{name:this.projectName,kind:yM[this.projectKind]}),(r=nu)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let l=this.updateGraphWorker(),d=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||_c;for(let m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=Yit(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,d)):this.lastCachedUnresolvedImportsList=void 0;let h=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,d&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),h&&this.getPackageJsonAutoImportProvider(),(o=nu)==null||o.logStopUpdateGraph(),(s=rr)==null||s.pop(),!l}updateTypingFiles(t){TW(t,this.typingFiles,Ex(!this.useCaseSensitiveFileNames()),qa,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&$u(this.typingWatchers,Hm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:zw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(o,s)=>{let l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),kc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,d=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Sl(d,".json"))return this.writeLog("Ignoring files that are not *.json");if(Rg(d,Yr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),kc.TypingInstallerLocationDirectory,this))};for(let o of t){let s=nc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(mm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){let l=o.indexOf(nl,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(mm(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){let r=y3(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;let i=this.languageService.getCurrentProgram();x.assert(i===this.program),x.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let o=Hs(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Vm,Vm);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=rr)==null||t.push(rr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=rr)==null||r.pop(),x.assert(i===void 0||this.program!==void 0);let d=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(d=!0,i){for(let m of i.getSourceFiles()){let y=this.program.getSourceFileByPath(m.resolvedPath);(!y||m.resolvedPath===m.path&&y.resolvedPath!==m.path)&&this.detachScriptInfoFromProject(m.fileName,!!this.program.getSourceFileByPath(m.path),!0)}i.forEachResolvedProjectReference(m=>{this.program.getResolvedProjectReferenceByPath(m.sourceFile.path)||this.detachScriptInfoFromProject(m.sourceFile.fileName,void 0,!0)})}if(QK(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,y)=>this.addMissingFileWatcher(m,y)),this.generatedFilesMap){let m=xs(this.compilerOptions);fhe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Eu(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,E)=>{let S=this.program.getSourceFileByPath(E);(!S||S.resolvedPath!==E||!this.isValidGeneratedFileWatcher(o6(S.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(Rf(y),this.generatedFilesMap.delete(E))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&dh(this.changedFilesForExportMapCache,m=>{let y=i.getSourceFileByPath(m),E=this.program.getSourceFileByPath(m);return!y||!E?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,E,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let p=this.externalFiles||_c;this.externalFiles=this.getExternalFiles(),TW(this.externalFiles,p,Ex(!this.useCaseSensitiveFileNames()),m=>{let y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);y?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));let h=Hs()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${d}${this.program?` structureIsReused:: ${LW[this.program.structureIsReused]}`:""} Elapsed: ${h}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),d}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){let o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(ME(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return iD}let o=this.projectService.watchFactory.watchFile(ho(r,this.currentDirectory),(s,l)=>{ME(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),kc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(xs(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(r);if(this.generatedFilesMap){if(fhe(this.generatedFilesMap)){x.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),kc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(fhe(this.generatedFilesMap)?Rf(this.generatedFilesMap):$u(this.generatedFilesMap,Rf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?Yy.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending `;if(!this.program)return` Files (0) NoProgram `;let o=this.program.getSourceFiles(),s=` Files (${o.length}) `;if(t){for(let l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""} `;r&&(s+=` `,kJ(this.program,l=>s+=` ${l} `))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${yM[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),yF(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;let s=r?p=>Wo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>Wo(p.keys());this.isInitialLoadPending()||zp(this);let l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:PD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},d=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!d)return{info:l,projectErrors:this.getGlobalProjectErrors()};let p=this.lastReportedFileNames,h=((i=this.externalFiles)==null?void 0:i.map(N=>({fileName:dl(N),isSourceOfProjectReferenceRedirect:!1})))||_c,m=_0(this.getFileNamesWithRedirectInfo(!!r).concat(h),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),y=new Map,E=new Map,S=d?Wo(d.keys()):[],A=[];return Gc(m,(N,D)=>{p.has(D)?r&&N!==p.get(D)&&A.push({fileName:D,isSourceOfProjectReferenceRedirect:N}):y.set(D,N)}),Gc(p,(N,D)=>{m.has(D)||E.set(D,N)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(y),removed:s(E),updated:r?S.map(N=>({fileName:N,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(N)})):S,updatedRedirects:r?A:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let p=this.getFileNamesWithRedirectInfo(!!r),h=((o=this.externalFiles)==null?void 0:o.map(y=>({fileName:dl(y),isSourceOfProjectReferenceRedirect:!1})))||_c,m=p.concat(h);return this.lastReportedFileNames=_0(m,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Tx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Yr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}let i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:qke}),s=o.create(i);for(let l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?_c:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Yr(this.currentDirectory,tD),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=bX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||uO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(zp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let o=this.includePackageJsonAutoImports();if(o){(t=rr)==null||t.push(rr.Phase.Session,"getPackageJsonAutoImportProvider");let s=Hs();if(this.autoImportProviderHost=JQ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return zp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Hs()-s),(r=rr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=rr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Gc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(dl(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return x.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new HQ(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Xe,lib:Xe,noLib:!0}}},UQ=class extends rA{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=wq(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){x.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&oo(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){gn(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:dhe(this),include:Xe,exclude:Xe}}},HQ=class extends rA{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},KQ=class Sbe extends rA{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=ta(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ta(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return Xe;let d=r.getCurrentProgram();if(!d)return Xe;let p=Hs(),h,m,y=Yr(r.currentDirectory,tD),E=r.getPackageJsonsForAutoImport(Yr(r.currentDirectory,y));for(let D of E)(s=D.dependencies)==null||s.forEach((w,j)=>A(j)),(l=D.peerDependencies)==null||l.forEach((w,j)=>A(j));let S=0;if(h){let D=r.getSymlinkCache();for(let w of Wo(h.keys())){if(t===2&&S>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Xe;let j=eK(w,r.currentDirectory,o,i,d.getModuleResolutionCache());if(j){let Y=N(j,d,D);if(Y){m=Eo(m,Y),S+=Y.length?1:0;continue}}if(!gn([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Y=>{if(Y){let B=eK(`@types/${w}`,Y,o,i,d.getModuleResolutionCache());if(B){let ce=N(B,d,D);return m=Eo(m,ce),S+=ce?.length?1:0,!0}}})&&j&&o.allowJs&&o.maxNodeModuleJsDepth){let Y=N(j,d,D,!0);m=Eo(m,Y),S+=Y?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${S} dependencies in ${Hs()-p} ms`),m||Xe;function A(D){ao(D,"@types/")||(h||(h=new Set)).add(D)}function N(D,w,j,K){var Y;let B=sK(D,o,i,w.getModuleResolutionCache(),K);if(B){let ce=(Y=i.realpath)==null?void 0:Y.call(i,D.packageDirectory),z=ce?r.toPath(ce):void 0,Z=z&&z!==r.toPath(D.packageDirectory);return Z&&j.setSymlinkedDirectory(D.packageDirectory,{real:Bc(ce),realPath:Bc(z)}),to(B,me=>{let ge=Z?me.replace(D.packageDirectory,ce):me;if(!w.getSourceFile(ge)&&!(Z&&w.getSourceFile(me)))return ge})}}}static create(t,r,i,o){if(t===0)return;let s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new Sbe(r,l,o,s)}isEmpty(){return!gt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Sbe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||Xe}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},KQ.maxDependencies=10,KQ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Xe,lib:Xe,noLib:!0},JQ=KQ,qQ=class extends rA{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,oi(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Sy,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=ma(e),r=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(ma(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){let e=this.isInitialLoadPending();this.isInitialLoadPending=Vm;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=x.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){x.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let o=oi(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(let o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return jr(this.projectErrors,e=>!e.file)||_c}getAllProjectErrors(){return this.projectErrors||_c}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return LD(this,e.path,t=>M1(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;let t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&Gc(t.openFilesImpactedByConfigFile,(r,i)=>{let o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!LD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return xP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){s3(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},RB=class extends rA{constructor(e,t,r,i,o,s,l,d){super(e,2,t,r,!0,o,i,s,d,t.host,oi(l||Pd(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function Rke(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let i=r.type;i.forEach(o=>{x.assert(typeof o=="number")}),t.set(r.name,i)}return t}function MD(e){return No(e.indentStyle)&&(e.indentStyle=wke.get(e.indentStyle.toLowerCase()),x.assert(e.indentStyle!==void 0)),e}function DB(e){return Lke.forEach((t,r)=>{let i=e[r];No(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function r8(e,t){let r,i;return jR.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=kke.get(o.name);(r||(r={}))[o.name]=l?No(s)?l.get(s.toLowerCase()):s:VT(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function mhe(e){let t;return sw.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function XQ(e){return No(e)?YQ(e):e}function YQ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function _he(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function Dke(e,t){for(let r of t)if(r.getProjectName()===e)return r}function $Q(e){return!!e.containingProjects}function Cke(e){return!!e.configFileInfo}function LD(e,t,r,i,o){var s;let l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let d,p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){let m=dl(p.sourceFile.fileName),y=e.projectService.findConfiguredProjectByProjectName(m);if(y){let E=r(y);if(E)return E}else if(i!==0){d=new Map;let E=hhe(l,e.getCompilerOptions(),(S,A)=>p===S?h(S,A):void 0,i,e.projectService,d);if(E)return E;d.clear()}}return hhe(l,e.getCompilerOptions(),(m,y)=>p!==m?h(m,y):void 0,i,e.projectService,d);function h(m,y){let E=dl(m.sourceFile.fileName),S=e.projectService.findConfiguredProjectByProjectName(E)||(y===0?void 0:y===1?e.projectService.createConfiguredProject(E):y===2?e.projectService.createAndLoadConfiguredProject(E,o):x.assertNever(y));return S&&r(S)}}function hhe(e,t,r,i,o,s){let l=t.disableReferencedProjectLoad?0:i;return gn(e,d=>{if(!d)return;let p=dl(d.sourceFile.fileName),h=o.toCanonicalFileName(p),m=s?.get(h);if(m!==void 0&&m>=l)return;let y=r(d,l);return y||((s||(s=new Map)).set(h,l),d.references&&hhe(d.references,d.commandLine.options,r,l,o,s))})}function Nke(e,t){return e.potentialProjectReferences&&dh(e.potentialProjectReferences,t)}function Zit(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?Nke(e,i):gn(e.getProjectReferences(),r)}function ghe(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function Pke(e,t){return Zit(e,r=>ghe(e,t,r.sourceFile.path),r=>ghe(e,t,e.toPath(eD(r))),r=>ghe(e,t,r))}function eot(e,t){return`${No(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Mke(e){return!e.isScriptOpen()&&e.mTime!==void 0}function M1(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function zp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function yhe(e){ME(e)&&(e.projectOptions=!0)}function vhe(e){let t=1;return()=>e(t++)}function bhe(){return{idToCallbacks:new Map,pathToId:new Map}}function tot(e,t){if(!t||!e.eventHandler||!e.session)return;let r=bhe(),i=bhe(),o=bhe(),s=1;return e.session.addProtocolHandler("watchChange",S=>(h(S.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:d,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(S,A){return p(r,S,A,N=>({eventName:WB,data:{id:N,path:S}}))}function d(S,A,N){return p(N?o:i,S,A,D=>({eventName:FB,data:{id:D,path:S,recursive:!!N,ignoreUpdate:S.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:S,idToCallbacks:A},N,D,w){let j=e.toPath(N),K=S.get(j);K||S.set(j,K=s++);let Y=A.get(K);return Y||(A.set(K,Y=new Set),e.eventHandler(w(K))),Y.add(D),{close(){let B=A.get(K);B?.delete(D)&&(B.size||(A.delete(K),S.delete(j),e.eventHandler({eventName:zB,data:{id:K}})))}}}function h(S){To(S)?S.forEach(m):m(S)}function m({id:S,created:A,deleted:N,updated:D}){y(S,A,0),y(S,N,2),y(S,D,1)}function y(S,A,N){A?.length&&(E(r,S,A,(D,w)=>D(w,N)),E(i,S,A,(D,w)=>D(w)),E(o,S,A,(D,w)=>D(w)))}function E(S,A,N,D){var w;(w=S.idToCallbacks.get(A))==null||w.forEach(j=>{N.forEach(K=>D(j,Pd(K)))})}}function not(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Ehe(e){return e.kind!==void 0}function She(e){e.print(!1,!1,!1)}var CB,NB,i8,PB,MB,LB,kB,wB,OB,QQ,WB,FB,zB,The,Lke,kke,wke,ZQ,BB,GB,eZ,tZ,Ahe,nZ,rot=bt({"src/server/editorServices.ts"(){"use strict";ib(),iA(),lhe(),CB=20*1024*1024,NB=4*1024*1024,i8="projectsUpdatedInBackground",PB="projectLoadingStart",MB="projectLoadingFinish",LB="largeFileReferenced",kB="configFileDiag",wB="projectLanguageServiceState",OB="projectInfo",QQ="openFileInfo",WB="createFileWatcher",FB="createDirectoryWatcher",zB="closeFileWatcher",The="*ensureProjectForOpenFiles*",Lke=Rke(og),kke=Rke(jR),wke=new Map(Object.entries({none:0,block:1,smart:2})),ZQ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},BB={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){let i=Cx(e);i&>(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>gt(t,r=>r.isMixedContent&&Sl(e,r.extension))},GB={getFileName:e=>e.fileName,getScriptKind:e=>XQ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},eZ={close:qa},tZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(tZ||{}),Ahe=class Tbe{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=vhe(H_e),this.newAutoImportProviderProjectName=vhe(K_e),this.newAuxiliaryProjectName=vhe(J_e),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=ZQ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=qa,this.verifyDocumentRegistry=qa,this.verifyProgram=qa,this.onProjectCreation=qa;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||xB,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||_c,this.pluginProbeLocations=t.pluginProbeLocations||_c,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Yr(oi(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=qp()),this.currentDirectory=dl(this.host.getCurrentDirectory()),this.toCanonicalFileName=Nd(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Bc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new WQ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new VQ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:Cz(this.host.newLine),preferences:Cf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=RX(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):qa;this.packageJsonCache=xhe(this),this.watchFactory=this.serverMode!==0?{watchFile:oD,watchDirectory:oD}:ZK(tot(this,t.canUseWatchEvents)||this.host,i,o,eot),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return tl(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return ho(t,this.host.getCurrentDirectory())}setDocument(t,r,i){let o=x.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){let i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;let i={eventName:wB,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let r=JSON.parse(t);for(let i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(let i in r.simpleMap)Ss(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=ZQ,this.legacySafelist.clear()}}updateTypingsForProject(t){let r=this.findProject(t.projectName);if(r)switch(t.kind){case Fw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case zw:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(The,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),n8(t))return;let r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&zp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:i8,data:{openFiles:Wo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;let i={eventName:LB,data:{file:t,fileSize:r,maxFileSize:NB}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:PB,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let r={eventName:MB,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(let i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){x.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=DB(t),o=r8(t,r),s=mhe(t);i.allowNonTsExtensions=!0;let l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(let d of this.inferredProjects)(l?d.projectRootPath===l:!d.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(d.projectRootPath))&&(d.setCompilerOptions(i),d.setTypeAcquisition(s),d.setWatchOptions(o?.watchOptions),d.setProjectErrors(o?.errors),d.compileOnSaveEnabled=i.compileOnSave,d.markAsDirty(),this.delayUpdateProjectGraph(d));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return U_e(t)?Dke(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(dl(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let r=No(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let r=No(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(No(t)?t:t.fileName),Yy.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let r=i=>{t=zp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(No(t.sourceMapFilePath)){let r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);let r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){let i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,d=>{let p=this.toPath(d),h=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(d,p);if(nc(p)==="package.json"&&!uO(p)&&(h&&h.fileExists||!h&&this.host.fileExists(d))){let y=this.getNormalizedAbsolutePath(d);this.logger.info(`Config: ${i} Detected new package.json: ${y}`),this.packageJsonCache.addOrUpdate(y,p),this.watchPackageJsonFile(y,p,l)}let m=this.findConfiguredProjectByProjectName(i);Dw({watchedDirPath:this.toPath(t),fileOrDirectory:d,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:m?.getCurrentProgram()||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:y=>this.logger.info(y),toPath:y=>this.toPath(y),getScriptKind:m?y=>m.getScriptKind(y):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((y,E)=>{if(!y)return;let S=this.getConfiguredProjectByCanonicalConfigFilePath(E);if(!S)return;let A=m===S?1:0;if(!(S.pendingUpdateLevel!==void 0&&S.pendingUpdateLevel>A))if(this.openFiles.has(p))if(x.checkDefined(this.getScriptInfoForPath(p)).isAttached(S)){let D=Math.max(A,S.openFileWatchTriggered.get(p)||0);S.openFileWatchTriggered.set(p,D)}else S.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S);else S.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),kc.WildcardDirectory,i),l={packageJsonWatches:void 0,close(){var d;s&&(s.close(),s=void 0,(d=l.packageJsonWatches)==null||d.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{let d=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(d)if(o=!0,l===t){if(d.isInitialLoadPending())return;d.pendingUpdateLevel=2,d.pendingUpdateReason=r,this.delayUpdateProjectGraph(d)}else d.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(d)}),o}onConfigFileChanged(t,r){var i;let o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;let s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?Qs:Sy,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),x.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>x.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Wo(OC(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:uI(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:uI(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){x.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:oi(cp(t.fileName)?t.fileName:ho(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Tx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let o of this.inferredProjects){if(o===i||o.isOrphan())continue;let s=o.getRootScriptInfos();x.assert(s.length===1||!!o.projectRootPath),s.length===1&&gn(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){let i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);let o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(let l of t.containingProjects){if(ME(l)){t.hasMixedContent&&t.registerFileUpdate();let d=l.openFileWatchTriggered.get(t.path);d!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevelthis.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),kc.ConfigFile,i));let d=l.config.projects;d.set(i.canonicalConfigFilePath,d.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&Gc(t.openFilesImpactedByConfigFile,Qs)}releaseParsedConfig(t,r){var i,o,s;let l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,$K(t,this.sharedExtendedConfigFileWatchers),x.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?pz(zc(oi(t)))||(l.watcher.close(),l.watcher=eZ):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){x.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;let l=this.configFileExistenceInfoCache.get(r);if(l){let d=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),d&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(x.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){x.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=pz(zc(oi(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,kc.ConfigFileForInferredRoot):eZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;let o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(x.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;x.assert(!$Q(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(x.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=oi(t.fileName),l=()=>mm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),d=!i||!l(),p=!Cke(t);do{if(p){let m=ZO(s,this.currentDirectory,this.toCanonicalFileName),y=Yr(s,"tsconfig.json"),E=r(Yr(m,"tsconfig.json"),y);if(E)return y;let S=Yr(s,"jsconfig.json");if(E=r(Yr(m,"jsconfig.json"),S),E)return S;if(KW(m))break}let h=oi(s);if(h===s)break;s=h,p=!0}while(d||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;let r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&M1(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!Cke(t)){let i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${oi(t.fileName)}`);let r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),$Q(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(She),this.configuredProjects.forEach(She),this.inferredProjects.forEach(She),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){let r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return Dke(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=CB;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(d=>s-=d||0);let l=0;for(let d of i){let p=o.getFileName(d);if(!WI(p)&&(l+=this.host.getFileSize(p),l>CB||l>s)){let h=i.map(m=>o.getFileName(m)).filter(m=>!WI(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,y)=>y.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${h.map(m=>`${m.name}:${m.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){let l=DB(i),d=r8(i,oi(Pd(t))),p=new RB(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,GB),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,d?.watchOptions);return p.setProjectErrors(d?.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,GB,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){yhe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){yhe(t);return}let r=ME(t)?t.projectOptions:void 0;yhe(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:t8(t.getScriptInfos(),!0),compilerOptions:ise(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof RB?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Jp};this.eventHandler({eventName:OB,data:i});function o(){return ME(t)&&OQ(t.getConfigFilePath())||"other"}function s({enable:l,include:d,exclude:p}){return{enable:l,include:d!==void 0&&d.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=rr)==null||r.instant(rr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);let i=this.toCanonicalFileName(t),o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:$3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let s=new qQ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){let i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){let i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){let i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);let s=ma(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),d=l.config.parsedCommandLine;x.assert(!!d.fileNames);let p=d.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:d.raw.extends!==void 0,configHasFilesProperty:d.raw.files!==void 0,configHasIncludeProperty:d.raw.include!==void 0,configHasExcludeProperty:d.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=SP(d.raw),t.setProjectErrors(d.options.configFile.parseDiagnostics),t.updateReferences(d.projectReferences);let h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,d.fileNames,BB);h?(t.disableLanguageService(h),this.configFileExistenceInfoCache.forEach((y,E)=>this.stopWatchingWildCards(E,t))):(t.setCompilerOptions(p),t.setWatchOptions(d.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);let m=d.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,BB,p,d.typeAcquisition,d.compileOnSave,d.watchOptions),(o=rr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,d;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}let p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||$3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=EP(t,A=>this.host.readFile(A)),m=$k(t,No(h)?h:""),y=m.parseDiagnostics;No(h)||y.push(h);let E=tw(m,p,oi(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);E.errors.length&&y.push(...E.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:E.fileNames,options:E.options,watchOptions:E.watchOptions,projectReferences:E.projectReferences},void 0," ")}`);let S=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=E,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:E,cachedDirectoryStructureHost:p,projects:new Map},!S&&!W6(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(E.watchOptions))&&((d=i.watcher)==null||d.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),Q3(r,E.options,this.sharedExtendedConfigFileWatchers,(A,N)=>this.watchFactory.watchFile(A,()=>{var D;Z3(this.extendedConfigCache,N,j=>this.toPath(j));let w=!1;(D=this.sharedExtendedConfigFileWatchers.get(N))==null||D.projects.forEach(j=>{w=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(j,`Change in extended config file ${A} detected`)||w}),w&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,kc.ExtendedConfigFile,t),A=>this.toPath(A)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,Rw(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;$u(i.watchedDirectories,Rf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!Gc(i.config.projects,Qs)&&(i.config.watchedDirectories&&($u(i.config.watchedDirectories,Rf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){let o=t.getRootFilesMap(),s=new Map;for(let l of r){let d=i.getFileName(l),p=dl(d),h=e8(p),m;if(!h&&!t.fileExists(d)){m=ZO(p,this.currentDirectory,this.toCanonicalFileName);let y=o.get(m);y?(y.info&&(t.removeFile(y.info,!1,!0),y.info=void 0),y.fileName=p):o.set(m,{fileName:p})}else{let y=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),E=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),S=x.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,y,E,t.directoryStructureHost));m=S.path;let A=o.get(m);!A||A.info!==S?(t.addRoot(S,p),S.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(S)):A.fileName=p}s.set(m,!0)}o.size>s.size&&o.forEach((l,d)=>{s.has(d)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(d))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,d){t.setCompilerOptions(o),t.setWatchOptions(d),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){let r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),BB),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;x.assert(r.updateLevel===1);let i=r.parsedCommandLine.options.configFile.configFileSpecs,o=TP(i,oi(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,BB)}reloadConfiguredProject(t,r,i,o){let s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();let l=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${l}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;let i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:kB,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){let o=this.toCanonicalFileName(r);for(let s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(let o of this.inferredProjects)o.projectRootPath&&mm(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){x.assert(!this.useSingleInferredProject);let r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){let o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;let d=new UQ(this,this.documentRegistry,o,s?.watchOptions,i,t,l);return d.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(d):this.inferredProjects.push(d),d}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(dl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(dl(t))}getScriptInfoOrConfig(t){let r=dl(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;let o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let r=Wo(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){let o=t.getRealpathIfDifferent();o&&gn(this.realpathToScriptInfos.get(o),i),gn(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(let s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?Gc(r,(l,d)=>d===o.path?!1:Bo(l,s))||r.add(o.path,s):(r=qp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(x.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!ao(t.path,this.globalCacheLocationDirectoryPath))){let r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,kc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;let d=uz(this.toPath(s));if(!d)return;let p=nc(d);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(h=>{var m;(m=h.getModuleSpecifierCache())==null||m.clear()}),o.refreshScriptInfoRefCount)if(r===d)this.refreshScriptInfosInDirectory(r);else{let h=this.getScriptInfoForPath(d);h?Mke(h)&&this.refreshScriptInfo(h):mI(d)||this.refreshScriptInfosInDirectory(d)}},1,this.hostConfiguration.watchOptions,kc.NodeModules),o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;let o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return x.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){let r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||Mp).getTime()}refreshScriptInfo(t){let r=this.getModifiedTime(t);if(r!==t.mTime){let i=nV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+nl,this.filenameToScriptInfo.forEach(r=>{Mke(r)&&ao(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(cp(t)||e8(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);let l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,d){x.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let p=ZO(t,r,this.toCanonicalFileName),h=this.getScriptInfoForPath(p);if(!h){let m=e8(t);if(x.assert(cp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Wo(this.openFilesWithNonRootedDiskPath.keys())})} Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),x.assert(!cp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Wo(this.openFilesWithNonRootedDiskPath.keys())})} Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),x.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Wo(this.openFilesWithNonRootedDiskPath.keys())})} Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!m&&!(d||this.host).fileExists(t))return;h=new GQ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!cp(t)&&(!m||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!cp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(ZO(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){let o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),No(o.sourceMapFilePath)){let m=this.getScriptInfoForPath(o.sourceMapFilePath);if(m&&(m.getSnapshot(),m.documentPositionMapper!==void 0))return m.sourceInfos=this.addSourceInfoToSourceMap(i,t,m.sourceInfos),m.documentPositionMapper?m.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,d=(m,y)=>{let E=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!E){l=y;return}s=E;let S=E.getSnapshot();return E.documentPositionMapper!==void 0?E.documentPositionMapper:cD(S)},p=t.projectName,h=PX({getCanonicalFileName:this.toCanonicalFileName,log:m=>this.logger.info(m),getSourceFileLike:m=>this.getSourceFileLike(m,p,o)},o.fileName,o.textStorage.getLineInfo(),d);return d=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=h||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:ho(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,h}addSourceInfoToSourceMap(t,r,i){if(t){let o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{let o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!No(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,kc.MissingSourceMapFile)}getSourceFileLike(t,r,i){let o=r.projectName?r:this.findProject(r);if(o){let l=o.toPath(t),d=o.getSourceFile(l);if(d&&d.resolvedPath===l)return d}let s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&No(i.sourceMapFilePath)&&s!==i){let l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return x.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{let d=s.positionToLineOffset(l);return{line:d.line-1,character:d.offset-1}},getPositionOfLineAndCharacter:(l,d,p)=>s.lineOffsetToPosition(l+1,d+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){let i=this.getScriptInfoForNormalizedPath(dl(t.file));i&&(i.setOptions(MD(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...MD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=r8(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(The),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Sy,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){let l=new Map,d=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t?.forEach((p,h)=>{if(this.configFileForOpenFiles.delete(h),!o(p))return;let m=this.getScriptInfoForPath(h);x.assert(m.isScriptOpen());let y=this.getConfigFileNameForFile(m);if(y){let E=this.findConfiguredProjectByProjectName(y)||this.createConfiguredProject(y);l.has(E.canonicalConfigFilePath)||(l.set(E.canonicalConfigFilePath,!0),i?(E.pendingUpdateLevel=2,E.pendingUpdateReason=s,r&&this.clearSemanticCache(E),this.delayUpdateProjectGraph(E)):(this.reloadConfiguredProject(E,s,!1,r),M1(E,m)||LD(E,m.path,A=>(d(A),M1(A,m)),1)&&LD(E,void 0,d,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){x.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&PD(r)&&r.isRoot(t)&&gn(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(zp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(dl(t),r,i,!1,o?dl(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){let i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;let{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;let d={fileName:dl(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(d);if(!p)return;let h=this.findConfiguredProjectByProjectName(p);if(!h){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;h=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${d.fileName}${r!==o?" for location: "+r.fileName:""}`)}zp(h);let m=S=>{let A=this.getScriptInfo(s);return A&&M1(S,A)};if(h.isSolution()||!m(h)){if(h=LD(h,s,S=>(zp(S),m(S)?S:void 0),2,`Creating project referenced in solution ${h.projectName} to find possible configured project for original file: ${d.fileName}${r!==o?" for location: "+r.fileName:""}`),!h)return;if(h===t)return o}E(h);let y=this.getScriptInfo(s);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(S=>{ME(S)&&E(S)}),o;function E(S){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(S.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return Vr(this.externalProjects,r=>(zp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){let l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,d=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?zp(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),d=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,M1(o,t)||LD(o,t.path,p=>{if(zp(p),To(s)?s.push(p):s=[o,p],M1(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${t.fileName} to open`),l?(r=l.getConfigFilePath(),(l!==o||d)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(zp),t.isOrphan()&&(To(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),x.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),x.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;let i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;let o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||Kte(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);let r=new Set;for(let i of Wo(this.configuredProjects.values()))Nke(i,o=>t.has(o))&&zp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Kb(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(let l of s){if(!l)continue;let d=pJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!d)continue;let p=dl(l.sourceFile.fileName),h=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${d.sourceFile.fileName}`);zp(h),this.ensureProjectChildren(h,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(let r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){let l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:d,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(d),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){let r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((d,p)=>{let h=this.getConfiguredProjectByCanonicalConfigFilePath(p);return h&&s(h)})};t&&(To(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&Pke(l,d=>o(d)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),Pke(l,s))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(No(r.sourceMapFilePath)){let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!dh(i,o=>{let s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(No(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Em(this.allJsFilesForOpenFileTelemetry,t.path))return;let r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;let i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:QQ,data:{info:{checkJs:o}}})}closeClientFile(t,r){let i=this.getScriptInfoForNormalizedPath(dl(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(let s of r){let l=Vr(t,d=>d.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){let i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(let d of t){let p=this.getOrCreateOpenScriptInfo(dl(d.fileName),d.content,XQ(d.scriptKind),d.hasMixedContent,d.projectRootPath?dl(d.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(let d of r){let p=this.getScriptInfo(d.fileName);x.assert(!!p),this.applyChangesToFile(p,d.changes)}if(i)for(let d of i)s=this.closeClientFile(d,!0)||s;let l;o&&(l=va(o,d=>this.assignProjectToOpenedScriptInfo(d).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(d=>this.telemetryOnOpenFile(d)),this.printProjects()):Nn(i)&&this.printProjects()}applyChangesToFile(t,r){for(let i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t?.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){let i=dl(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{let s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){let r=_0(this.externalProjects,i=>i.getProjectName(),i=>!0);dh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);dh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=ZQ}applySafeList(t){let r=t.typeAcquisition;x.assert(!!r,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let o=i.include||(i.include=[]),s=[],l=r.map(y=>Pd(y.fileName));for(let y of Object.keys(this.safelist)){let E=this.safelist[y];for(let S of l)if(E.match.test(S)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${S}'`),E.types)for(let A of E.types)o.includes(A)||o.push(A);if(E.exclude)for(let A of E.exclude){let N=S.replace(E.match,(...D)=>A.map(w=>typeof w=="number"?No(D[w])?Tbe.escapeFilenameForRegex(D[w]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):w).join(""));s.includes(N)||s.push(N)}else{let A=Tbe.escapeFilenameForRegex(S);s.includes(A)||s.push(A)}}}let d=s.map(y=>new RegExp(y,"i")),p,h;for(let y=0;yE.test(l[y])))m(y);else{if(i.enable){let E=nc(ih(l[y]));if(Sl(E,"js")){let S=Eu(E),A=UG(S),N=this.legacySafelist.get(A);if(N!==void 0){this.logger.info(`Excluded '${l[y]}' because it matched ${A} from the legacy safelist`),m(y),o.includes(N)||o.push(N);continue}}}/^.+[.-]min\.js$/.test(l[y])?m(y):p?.push(r[y])}return h?{rootFiles:p,excludedFiles:h}:void 0;function m(y){h||(x.assert(!p),p=r.slice(0,y),h=[]),h.push(l[y])}}openExternalProject(t,r){let i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName),s,l=[];for(let d of t.rootFiles){let p=dl(d.fileName);if(OQ(p)){if(this.serverMode===0&&this.host.fileExists(p)){let h=this.findConfiguredProjectByProjectName(p);h||(h=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(p,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(p,`Creating configured project in external project: ${t.projectFileName}`)),o?.has(h)||h.addExternalProjectReference(),(s??(s=new Set)).add(h),o?.delete(h)}}else l.push(d)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let d=t.typeAcquisition||{};d.include=d.include||[],d.exclude=d.exclude||[],d.enable===void 0&&(d.enable=phe(l.map(m=>m.fileName)));let p=this.applySafeListWorker(t,l,d),h=p?.excludedFiles??[];if(l=p?.rootFiles??l,i){i.excludedFiles=h;let m=DB(t.options),y=r8(t.options,i.getCurrentDirectory()),E=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,GB);E?i.disableLanguageService(E):i.enableLanguageService(),i.setProjectErrors(y?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,GB,m,d,t.options.compileOnSave,y?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,d,h).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||mw(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let o=rA.importServicePluginAsync(r,i,this.host,l=>this.logger.info(l));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let s=this.pendingPluginEnablements.get(t);s||this.pendingPluginEnablements.set(t,s=[]),s.push(o);return}this.endEnablePlugin(t,rA.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){let l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){let d=r.name;r=l,r.name=d}t.enableProxy(i,r)}else gn(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=Wo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){x.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(mn(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){let i=await Promise.all(r);if(!t.isClosed()){for(let o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){let o=this.packageJsonCache,s=i&&this.toPath(i),l=[],d=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),d(p);case-1:let h=Yr(p,"package.json");this.watchPackageJsonFile(h,this.toPath(h),r);let m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return hm(oi(t),d),l}getNearestAncestorDirectoryWithPackageJson(t){return hm(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(Yr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){x.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,d)=>{switch(d){case 0:return x.fail();case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,kc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=not())}},Ahe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,nZ=Ahe}});function Ihe(e){let t,r,i,o={get(p,h,m,y){if(!(!r||i!==l(p,m,y)))return r.get(h)},set(p,h,m,y,E,S){if(s(p,m,y).set(h,d(E,S,!1)),S){for(let A of E)if(A.isInNodeModules){let N=A.path.substring(0,A.path.indexOf(Eh)+Eh.length-1),D=e.toPath(N);t?.has(D)||(t||(t=new Map)).set(D,e.watchNodeModulesForPackageJsonChanges(N))}}},setModulePaths(p,h,m,y,E){let S=s(p,m,y),A=S.get(h);A?A.modulePaths=E:S.set(h,d(E,void 0,void 0))},setBlockedByPackageJsonDependencies(p,h,m,y,E){let S=s(p,m,y),A=S.get(h);A?A.isBlockedByPackageJsonDependencies=E:S.set(h,d(void 0,void 0,E))},clear(){t?.forEach(Hm),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return x.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,h,m){let y=l(p,h,m);return r&&i!==y&&o.clear(),i=y,r||(r=new Map)}function l(p,h,m){return`${p},${h.importModuleSpecifierEnding},${h.importModuleSpecifierPreference},${m.overrideImportMode}`}function d(p,h,m){return{modulePaths:p,moduleSpecifiers:h,isBlockedByPackageJsonDependencies:m}}}var iot=bt({"src/server/moduleSpecifierCache.ts"(){"use strict";ib()}});function xhe(e){let t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(oi(l),!0)},getInDirectory:l=>t.get(e.toPath(Yr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{hm(l,d=>{let p=e.toPath(d);if(s(p)!==3)return!0;let h=Yr(d,"package.json");dO(e,h)?i(h,Yr(p,"package.json")):r.set(p,!0)})}};function i(l,d){let p=x.checkDefined(lX(l,e.host));t.set(d,p),r.delete(oi(d))}function o(l){t.delete(l),r.delete(oi(l))}function s(l){return t.has(Yr(l,"package.json"))?-1:r.has(l)?0:3}}var oot=bt({"src/server/packageJsonCache.ts"(){"use strict";ib()}});function aot(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function Oke(e,t){if((PD(e)||jQ(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function sot(e){return Af(e)||!!e.emitDecoratorMetadata}function Wke(e,t,r){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:k_(r.messageText,` `),code:r.code,category:rT(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:mn(r.relatedInformation,rZ)}}function rZ(e){return e.file?{span:{start:o8(hs(e.file,e.start)),end:o8(hs(e.file,e.start+e.length)),file:e.file.fileName},message:k_(e.messageText,` `),category:rT(e),code:e.code}:{message:k_(e.messageText,` `),category:rT(e),code:e.code}}function o8(e){return{line:e.line+1,offset:e.character+1}}function a8(e,t){let r=e.file&&o8(hs(e.file,e.start)),i=e.file&&o8(hs(e.file,e.start+e.length)),o=k_(e.messageText,` `),{code:s,source:l}=e,d=rT(e),p={start:r,end:i,text:o,code:s,category:d,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:mn(e.relatedInformation,rZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function lot(e,t){return e.every(r=>Jl(r.span)i(s,e));return!To(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let d=t(l);o.push(...va(s,p=>i(p,d)))}),m0(o,Ty)}function iZ(e){return VG(({textSpan:t})=>t.start+100003*t.length,Jq(e))}function dot(e,t,r,i,o,s,l){let d=Fke(e,t,r,!0,(m,y)=>m.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(m,y)=>y(vM(m)));if(To(d))return d;let p=[],h=iZ(l);return d.forEach((m,y)=>{for(let E of m)!h.has(E)&&!oZ(vM(E),y)&&(p.push(E),h.add(E))}),p}function uot(e,t,r){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Xc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function pot(e,t,r,i,o){var s,l;let d=Fke(e,t,r,!1,(y,E)=>(o.info(`Finding references to ${E.fileName} position ${E.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(E.fileName,E.pos)),(y,E)=>{E(vM(y.definition));for(let S of y.references)E(vM(S))});if(To(d))return d;let p=d.get(t);if(((l=(s=p?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)d.forEach(y=>{for(let E of y)for(let S of E.references)delete S.isDefinition});else{let y=iZ(i);for(let S of p)for(let A of S.references)if(A.isDefinition){y.add(A);break}let E=new Set;for(;;){let S=!1;if(d.forEach((A,N)=>{if(E.has(N))return;N.getLanguageService().updateIsDefinitionOfReferencedSymbols(A,y)&&(E.add(N),S=!0)}),!S)break}d.forEach((S,A)=>{if(!E.has(A))for(let N of S)for(let D of N.references)D.isDefinition=!1})}let h=[],m=iZ(i);return d.forEach((y,E)=>{for(let S of y){let A=oZ(vM(S.definition),E),N=A===void 0?S.definition:{...S.definition,textSpan:gd(A.pos,S.definition.textSpan.length),fileName:A.fileName,contextSpan:_ot(S.definition,E)},D=Vr(h,w=>Kq(w.definition,N,i));D||(D={definition:N,references:[]},h.push(D));for(let w of S.references)!m.has(w)&&!oZ(vM(w),E)&&(m.add(w),D.references.push(w))}}),h.filter(y=>y.references.length!==0)}function Che(e,t,r){for(let i of To(e)?e:e.projects)r(i,t);!To(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(let s of i)r(s,o)})}function Fke(e,t,r,i,o,s){let l=new Map,d=AL();d.enqueue({project:t,location:r}),Che(e,r.fileName,(N,D)=>{let w={fileName:D,pos:r.pos};d.enqueue({project:N,location:w})});let p=t.projectService,h=t.getCancellationToken(),m=uot(t,r,i),y=vu(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),E=vu(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),S=new Set;e:for(;!d.isEmpty();){for(;!d.isEmpty();){if(h.isCancellationRequested())break e;let{project:N,location:D}=d.dequeue();if(l.has(N)||zke(N,D)||(zp(N),!N.containsFile(dl(D.fileName))))continue;let w=A(N,D);l.set(N,w??_c),S.add(mot(N))}m&&(p.loadAncestorProjectTree(S),p.forEachEnabledProject(N=>{if(h.isCancellationRequested()||l.has(N))return;let D=fot(m,N,y,E);D&&d.enqueue({project:N,location:D})}))}if(l.size===1)return WG(l.values());return l;function A(N,D){let w=o(N,D);if(w){for(let j of w)s(j,K=>{let Y=p.getOriginalLocationEnsuringConfiguredProject(N,K);if(!Y)return;let B=p.getScriptInfo(Y.fileName);for(let z of B.containingProjects)!z.isOrphan()&&!l.has(z)&&d.enqueue({project:z,location:Y});let ce=p.getSymlinkedProjects(B);ce&&ce.forEach((z,Z)=>{for(let me of z)!me.isOrphan()&&!l.has(me)&&d.enqueue({project:me,location:{fileName:Z,pos:Y.pos}})})});return w}}}function fot(e,t,r,i){if(t.containsFile(dl(e.fileName))&&!zke(t,e))return e;let o=r();if(o&&t.containsFile(dl(o.fileName)))return o;let s=i();return s&&t.containsFile(dl(s.fileName))?s:void 0}function zke(e,t){if(!t)return!1;let r=e.getLanguageService().getProgram();if(!r)return!1;let i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function mot(e){return ME(e)?e.canonicalConfigFilePath:e.getProjectName()}function vM({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function oZ(e,t){return QP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Bke(e,t){return Zz(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function _ot(e,t){return Xq(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Th(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Jl(e))}}function Nhe(e,t,r){let i=Th(e,r),o=t&&Th(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function hot(e,t){return{start:Gke(t,e.span.start),end:Gke(t,Jl(e.span)),newText:e.newText}}function Gke(e,t){return Ehe(e)?yot(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function got(e,t){let r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function yot(e){return{line:e.line+1,offset:e.character+1}}function vot(e){x.assert(e.textChanges.length===1);let t=Va(e.textChanges);return x.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Phe(e,t,r,i){let o=bot(e,t,i),{line:s,character:l}=Nx(hI(o),r);return{line:s+1,offset:l+1}}function bot(e,t,r){for(let{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){let{newText:l,span:{start:d,length:p}}=o[s];e=e.slice(0,d)+l+e.slice(d+p)}return e}function Vke(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){let d=x.checkDefined(e.getScriptInfo(t)),p=Nhe(r,i,d),h=l?void 0:Eot(d,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function Eot(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Jl(r)).replace(/\r|\n/g,"")}function Sot(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var Mhe,Lhe,jke,khe,Uke,whe,Tot=bt({"src/server/session.ts"(){"use strict";ib(),iA(),lhe(),Mhe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Lhe=zQ,jke=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){let r=this.requestId;x.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){let i=this.requestId;x.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let d=!1;try{this.operationHost.isCancellationRequested()?(d=!0,(t=rr)==null||t.instant(rr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=rr)==null||r.push(rr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=rr)==null||i.pop())}catch(p){(o=rr)==null||o.popAll(),d=!0,p instanceof Rx?(s=rr)==null||s.instant(rr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=rr)==null||l.instant(rr.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(d||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},khe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],Uke=[...khe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],whe=class mte{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{let s={version:Jp};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{let l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);let d=mn(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(d)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&kC(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&kC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:OC(wG(l.textChanges),d=>{let p=x.checkDefined(this.projectService.getScriptInfo(l.fileName)),h=p.lineOffsetToPosition(d.start.line,d.start.offset),m=p.lineOffsetToPosition(d.end.line,d.end.offset);return h>=0?{span:{start:h,length:m-h},newText:d.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&kC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:wG(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(dl(s.arguments.file),s.arguments.fileContent,YQ(s.arguments.scriptKindName),s.arguments.projectRootPath?dl(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{let l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{let l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||xB,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;let i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new jke(i);let o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new nZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new FQ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:khe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Uke.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:x.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case i8:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case PB:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case MB:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case LB:case WB:case FB:case zB:this.event(t.data,t.eventName);break;case kB:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:mn(t.data.diagnostics,r=>a8(r,!0))},t.eventName);break;case wB:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case OB:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},i8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: `+HP(t.message),t.stack&&(o+=` `+HP(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:s,project:l}=this.getFileAndProject(i),d=l.getScriptInfoForNormalizedPath(s);if(d){let p=cD(d.getSnapshot());o+=` File text of ${i.file}:${HP(p)} `}}catch{}if(t.ProgramFiles){o+=` Program files: ${JSON.stringify(t.ProgramFiles)} `,o+=` Projects:: `;let s=0,l=d=>{o+=` Project '${d.projectName}' (${yM[d.projectKind]}) ${s} `,o+=d.filesToString(!0),o+=` ----------------------------------------------- `,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${xE(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;let i=Rhe(t,this.logger,this.byteLength,this.host.newLine);(r=nu)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Dhe(r,t))}doOutput(t,r,i,o,s){let l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let d;if(To(t))l.body=t,d=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:p,...h}=t;l.body=h,d=p}else l.body=t;else l.body=t;d&&(l.metadata=d)}else x.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let s=Oke(r,t)?_c:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=rr)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=rr)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=rr)==null||i.push(rr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=rr)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>Wke(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){x.assert(!this.suppressDiagnosticEvents);let s=this.changeSeq,l=Math.min(i,200),d=0,p=()=>{d++,r.length>d&&t.delay("checkOne",l,h)},h=()=>{if(this.changeSeq!==s)return;let m=r[d];if(No(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}let{fileName:y,project:E}=m;if(zp(E),!!E.containsFile(y,o)&&(this.syntacticCheck(y,E),this.changeSeq===s)){if(E.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(y,E),this.changeSeq===s){if(this.getPreferences(y).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,E),p()})}})}};r.length>d&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(let i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Wo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){let{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let r=this.getProject(t.projectFileName),i=dl(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){let o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=jr(Eo(o,s),d=>!!d.file&&d.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):mn(l,d=>a8(d,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:k_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:rT(r),code:r.code,source:r.source,startLocation:r.file&&o8(hs(r.file,r.start)),endLocation:r.file&&o8(hs(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:mn(r.relatedInformation,rZ)}))}getCompilerOptionsDiagnostics(t){let r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(jr(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:k_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:rT(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:mn(i.relatedInformation,rZ)}))}getDiagnosticsWorker(t,r,i,o){let{project:s,file:l}=this.getFileAndProject(t);if(r&&Oke(s,l))return _c;let d=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,d):p.map(h=>Wke(l,s,h))}getDefinition(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||_c,o);return r?this.mapDefinitionInfo(l,o):l.map(mte.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{let o=Bke(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=x.checkDefined(o.getScriptInfo(i)),d=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!d||!d.definitions)return{definitions:_c,textSpan:void 0};let p=this.mapDefinitionInfoLocations(d.definitions,o),{textSpan:h}=d;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Th(h,l)}:{definitions:p.map(mte.mapToOriginalLocation),textSpan:h}}findSourceDefinition(t){var r;let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s),d=this.mapDefinitionInfoLocations(l||_c,o).slice();if(this.projectService.serverMode===0&&(!gt(d,S=>dl(S.fileName)!==i&&!S.isAmbient)||gt(d,S=>!!S.failedAliasResolution))){let S=VG(w=>w.textSpan.start,Jq(this.host.useCaseSensitiveFileNames));d?.forEach(w=>S.add(w));let A=o.getNoDtsResolutionProject(i),N=A.getLanguageService(),D=(r=N.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(w=>dl(w.fileName)!==i);if(gt(D))for(let w of D){if(w.unverified){let j=y(w,o.getLanguageService().getProgram(),N.getProgram());if(gt(j)){for(let K of j)S.add(K);continue}}S.add(w)}else{let w=d.filter(j=>dl(j.fileName)!==i&&j.isAmbient);for(let j of gt(w)?w:m()){let K=h(j.fileName,i,A);if(!K)continue;let Y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,A.currentDirectory,A.directoryStructureHost);if(!Y)continue;A.containsScriptInfo(Y)||(A.addRoot(Y),A.updateGraph());let B=N.getProgram(),ce=x.checkDefined(B.getSourceFile(K));for(let z of E(j.name,ce,B))S.add(z)}}d=Wo(S.values())}return d=d.filter(S=>!S.isAmbient&&!S.failedAliasResolution),this.mapDefinitionInfo(d,o);function h(S,A,N){var D,w,j;let K=G6(S);if(K&&S.lastIndexOf(Eh)===K.topLevelNodeModulesIndex){let Y=S.substring(0,K.packageRootIndex),B=(D=o.getModuleResolutionCache())==null?void 0:D.getPackageJsonInfoCache(),ce=o.getCompilationSettings(),z=fw(ho(Y+"/package.json",o.getCurrentDirectory()),pw(B,o,ce));if(!z)return;let Z=sK(z,{moduleResolution:2},o,o.getModuleResolutionCache()),me=S.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ge=DP(hw(me)),q=o.toPath(S);if(Z&>(Z,J=>o.toPath(J)===q))return(w=N.resolutionCache.resolveSingleModuleNameWithoutWatching(ge,A).resolvedModule)==null?void 0:w.resolvedFileName;{let J=S.substring(K.packageRootIndex+1),re=`${ge}/${Eu(J)}`;return(j=N.resolutionCache.resolveSingleModuleNameWithoutWatching(re,A).resolvedModule)==null?void 0:j.resolvedFileName}}}function m(){let S=o.getLanguageService(),A=S.getProgram(),N=Wu(A.getSourceFile(i),s);return(as(N)||Fe(N))&&Ns(N.parent)&&noe(N,D=>{var w;if(D===N)return;let j=(w=S.getDefinitionAtPosition(i,D.getStart(),!0,!1))==null?void 0:w.filter(K=>dl(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:Xf(N)}));if(gt(j))return j})||_c}function y(S,A,N){var D;let w=N.getSourceFile(S.fileName);if(!w)return;let j=Wu(A.getSourceFile(i),s),K=A.getTypeChecker().getSymbolAtLocation(j),Y=K&&cl(K,276);if(!Y)return;let B=((D=Y.propertyName)==null?void 0:D.text)||Y.name.text;return E(B,w,N)}function E(S,A,N){let D=Ms.Core.getTopMostDeclarationNamesInFile(S,A);return to(D,w=>{let j=N.getTypeChecker().getSymbolAtLocation(w),K=vN(w);if(j&&K)return xD.createDefinitionInfo(K,N.getTypeChecker(),j,K,!0)})}}getEmitOutput(t){let{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>a8(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(x.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){let o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Jl(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){let s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||_c,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{let o=Bke(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||_c,o);return r?l.map(({fileName:d,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(d,p,h,o)):l.map(mte.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?_c:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?_c:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return got(s,l)}getDocumentHighlights(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:d,highlightSpans:p})=>{let h=o.getScriptInfo(d);return{file:d,highlightSpans:p.map(({textSpan:m,kind:y,contextSpan:E})=>({...Nhe(m,E,h),kind:y}))}}):l:_c}provideInlayHints(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{let{position:d,displayParts:p}=l;return{...l,position:o.positionToLineOffset(d),displayParts:p?.map(({text:h,span:m,file:y})=>{if(m){x.assertIsDefined(y,"Target file should be defined together with its span.");let E=this.projectService.getScriptInfo(y);return{text:h,span:{start:E.positionToLineOffset(m.start),end:E.positionToLineOffset(m.start+m.length),file:y}}}else return{text:h}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){let{project:s}=this.getFileAndProjectWorker(t,r);return zp(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){let o,s;if(t.projectFileName){let l=this.getProject(t.projectFileName);l&&(o=[l])}else{let l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?_c:(this.projectService.logErrorForScriptInfoNotFound(t.file),Yy.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=jr(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),Yy.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return Yy.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let i=dl(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),d=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,d),x.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];let h=dot(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,d,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(h)}:h}mapRenameInfo(t,r){if(t.canRename){let{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:d,kindModifiers:p,triggerSpan:h}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:d,kindModifiers:p,triggerSpan:Th(h,r)}}else return t}toSpanGroups(t){let r=new Map;for(let{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:d,originalFileName:p,...h}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});let y=x.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...Nhe(o,s,y),...h})}return Wo(r.values())}getReferences(t,r){let i=dl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=pot(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;let d=this.getPreferences(i),p=this.getDefaultProject(t),h=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),y=m?CO(m.displayParts):"",E=m&&m.textSpan,S=E?h.positionToLineOffset(E.start).offset:0,A=E?h.getSnapshot().getText(E.start,Jl(E)):"";return{refs:va(l,D=>D.references.map(w=>Vke(this.projectService,w,d))),symbolName:A,symbolStartOffset:S,symbolDisplayString:y}}getFileReferences(t,r){let i=this.getProjects(t),o=t.file,s=this.getPreferences(dl(o)),l=[],d=iZ(this.host.useCaseSensitiveFileNames);return Che(i,void 0,h=>{if(h.getCancellationToken().isCancellationRequested())return;let m=h.getLanguageService().getFileReferences(o);if(m)for(let y of m)d.has(y)||(l.push(y),d.add(y))}),r?{refs:l.map(h=>Vke(this.projectService,h,s)),symbolName:`"${t.file}"`}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){let i=dl(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){let l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(d=>({textSpan:Th(d.textSpan,l),hintSpan:Th(d.hintSpan,l),bannerText:d.bannerText,autoCollapse:d.autoCollapse,kind:d.kind}))}else return s}getTodoComments(t){let{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?MD(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;let d=!!this.getPreferences(i).displayPartsForJSDoc;if(r){let p=CO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(Jl(l.textSpan)),displayString:p,documentation:d?this.mapDisplayParts(l.documentation,o):CO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,d)}}else return d?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),d=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(d)return d.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?MD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?MD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?MD(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),d=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===` `&&(!d||d.length===0||lot(d,s))){let{lineText:p,absolutePosition:h}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){let m=i.getIndentationAtPosition(r,s,l),y=0,E,S;for(E=0,S=p.length;E({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(Jl(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getLanguageService().getCompletionsAtPosition(i,l,{..._he(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(d===void 0)return;if(r==="completions-full")return d;let p=t.prefix||"",h=to(d.entries,y=>{if(d.isMemberCompletion||ao(y.name.toLowerCase(),p.toLowerCase())){let{name:E,kind:S,kindModifiers:A,sortText:N,insertText:D,filterText:w,replacementSpan:j,hasAction:K,source:Y,sourceDisplay:B,labelDetails:ce,isSnippet:z,isRecommended:Z,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}=y,J=j?Th(j,s):void 0;return{name:E,kind:S,kindModifiers:A,sortText:N,insertText:D,filterText:w,replacementSpan:J,isSnippet:z,hasAction:K||void 0,source:Y,sourceDisplay:B,labelDetails:ce,isRecommended:Z,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}}});return r==="completions"?(d.metadata&&(h.metadata=d.metadata),h):{...d,optionalReplacementSpan:d.optionalReplacementSpan&&Th(d.optionalReplacementSpan,s),entries:h}}getCompletionEntryDetails(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,h=to(t.entryNames,m=>{let{name:y,source:E,data:S}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,y,d,E,this.getPreferences(i),S?na(S,Sot):void 0)});return r?p?h:h.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):h.map(m=>({...m,codeActions:mn(m.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){let r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?cot(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;let l=o.getCompilationSettings();if(!(l.noEmit||Ed(s.fileName)&&!sot(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!xs(l)}}):_c}emitFile(t){let{file:r,project:i}=this.getFileAndProject(t);if(i||Yy.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(d,p,h)=>this.host.writeFile(d,p,h));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(d=>a8(d,!0))}:!s}getSignatureHelpItems(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(d&&r){let h=d.applicableSpan;return{...d,applicableSpan:{start:s.positionToLineOffset(h.start),end:s.positionToLineOffset(h.start+h.length)},items:this.mapSignatureHelpItems(d.items,o,p)}}else return p||!d?d:{...d,items:d.items.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)}))}}toPendingErrorCheck(t){let r=dl(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){let r=this.projectService.getScriptInfo(t.file);x.assert(!!r),r.textStorage.switchToScriptVersionCache();let i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,Jte({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){let i=dl(t.file),o=t.tmpfile===void 0?void 0:dl(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;let r=ma(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return mn(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Th(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Th(i,r)),nameSpan:t.nameSpan&&Th(t.nameSpan,r),childItems:mn(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){let i=this.getFullNavigateToItems(t);return r?va(i,({project:o,navigateToItems:s})=>s.map(l=>{let d=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:d.positionToLineOffset(l.textSpan.start),end:d.positionToLineOffset(Jl(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):va(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){let{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){x.assertIsDefined(t.file);let{file:E,project:S}=this.getFileAndProject(t);return[{project:S,navigateToItems:S.getLanguageService().getNavigateToItems(i,o,E)}]}let l=this.getHostPreferences(),d=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(E=>h(E));else{let E=this.getProjects(t);Che(E,void 0,S=>h(S))}return d;function h(E){let S=E.getLanguageService().getNavigateToItems(i,o,void 0,E.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),A=jr(S,N=>m(N)&&!oZ(vM(N),E));A.length&&d.push({project:E,navigateToItems:A})}function m(E){let S=E.name;if(!p.has(S))return p.set(S,[E]),!0;let A=p.get(S);for(let N of A)if(y(N,E))return!1;return A.push(E),!0}function y(E,S){return E===S?!0:!E||!S?!1:E.containerKind===S.containerKind&&E.containerName===S.containerName&&E.fileName===S.fileName&&E.isCaseSensitive===S.isCaseSensitive&&E.kind===S.kind&&E.kindModifiers===S.kindModifiers&&E.matchKind===S.matchKind&&E.name===S.name&&E.textSpan.start===S.textSpan.start&&E.textSpan.length===S.textSpan.length}}getSupportedCodeFixes(t){if(!t)return _Y();if(t.file){let{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}let r=this.getProject(t.projectFileName);return r||Yy.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),x.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){let{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){let{renameFilename:d,renameLocation:p,edits:h}=l,m;if(d!==void 0&&p!==void 0){let y=o.getScriptInfoForNormalizedPath(dl(d));m=Phe(cD(y.getSnapshot()),d,p,h)}return{renameLocation:m,renameFilename:d,edits:this.mapTextChangesToCodeEdits(h),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){x.assert(t.scope.type==="file");let{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){let i=dl(t.oldFilePath),o=dl(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),d=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(h=>{let m=h.getLanguageService().getEditsForFileRename(i,o,s,l),y=[];for(let E of m)d.has(E.fileName)||(p.push(E),y.push(E.fileName));for(let E of y)d.add(E)}),r?p.map(h=>this.mapTextChangeToCodeEdit(h)):p}getCodeFixes(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:d}=this.getStartAndEndPosition(t,s),p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,d,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(h){let m=o.getLanguageService(),y=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(S=>JL(l,d-l,S.start,S.length)&&S.code),E=t.errorCodes.find(S=>!y.includes(S));throw E!==void 0&&(h.message=`BADCLIENT: Bad error code, ${E} not found in range ${l}..${d} (found: ${y.join(", ")}); could have caused this error: ${h.message}`),h}return r?p.map(h=>this.mapCodeFixAction(h)):p}getCombinedCodeFix({scope:t,fixId:r},i){x.assert(t.type==="file");let{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){let r=t.command;for(let i of dI(r)){let{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){let r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),x.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>hot(i,r))}:vot(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getBraceMatchingAtPosition(i,l);return d?r?d.map(p=>Th(p,s)):d:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;let{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;let l=o.filter(N=>!N.includes("lib.d.ts"));if(l.length===0)return;let d=[],p=[],h=[],m=[],y=dl(i),E=this.projectService.ensureDefaultProjectForFile(y);for(let N of l)this.getCanonicalFileName(N)===this.getCanonicalFileName(i)?d.push(N):this.projectService.getScriptInfo(N).isScriptOpen()?p.push(N):Ed(N)?m.push(N):h.push(N);let A=[...d,...p,...h,...m].map(N=>({fileName:N,project:E}));this.updateErrorCheck(t,A,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){let{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=x.checkDefined(this.projectService.getScriptInfo(o));return mn(i,d=>{let p=this.getPosition(d,l),h=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(h,l):h})}toggleLineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),d=o.toggleLineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}toggleMultilineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.toggleMultilineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}commentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.commentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}uncommentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.uncommentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}mapSelectionRange(t,r){let i={textSpan:Th(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=dl(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),Yy.ThrowNoProject())}toProtocolCallHierarchyItem(t){let r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Th(t.span,r),selectionSpan:Th(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Th(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Th(i,r))}}prepareCallHierarchy(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){let s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&uX(l,d=>this.toProtocolCallHierarchyItem(d))}}provideCallHierarchyIncomingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){let r=this.host.useCaseSensitiveFileNames?t:ih(t);return ma(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){x.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){x.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){let r=this.handlers.get(t.command);if(r){let i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${xE(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,d,p,h,m,y,E;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let S;this.logger.hasLevel(2)&&(S=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${HP(this.toStringMessage(t))}`));let A,N;try{A=this.parseMessage(t),N=A.arguments&&A.arguments.file?A.arguments:void 0,(r=rr)==null||r.instant(rr.Phase.Session,"request",{seq:A.seq,command:A.command}),(i=nu)==null||i.logStartCommand(""+A.command,this.toStringMessage(t).substring(0,100)),(o=rr)==null||o.push(rr.Phase.Session,"executeCommand",{seq:A.seq,command:A.command},!0);let{response:D,responseRequired:w}=this.executeCommand(A);if((s=rr)==null||s.pop(),this.logger.hasLevel(2)){let j=aot(this.hrtime(S)).toFixed(4);w?this.logger.perftrc(`${A.seq}::${A.command}: elapsed time (in milliseconds) ${j}`):this.logger.perftrc(`${A.seq}::${A.command}: async elapsed time (in milliseconds) ${j}`)}(l=nu)==null||l.logStopCommand(""+A.command,"Success"),(d=rr)==null||d.instant(rr.Phase.Session,"response",{seq:A.seq,command:A.command,success:!!D}),D?this.doOutput(D,A.command,A.seq,!0):w&&this.doOutput(void 0,A.command,A.seq,!1,"No content available.")}catch(D){if((p=rr)==null||p.popAll(),D instanceof Rx){(h=nu)==null||h.logStopCommand(""+(A&&A.command),"Canceled: "+D),(m=rr)==null||m.instant(rr.Phase.Session,"commandCanceled",{seq:A?.seq,command:A?.command}),this.doOutput({canceled:!0},A.command,A.seq,!0);return}this.logErrorWorker(D,this.toStringMessage(t),N),(y=nu)==null||y.logStopCommand(""+(A&&A.command),"Error: "+D),(E=rr)==null||E.instant(rr.Phase.Session,"commandError",{seq:A?.seq,command:A?.command,message:D.message}),this.doOutput(void 0,A?A.command:"unknown",A?A.seq:0,!1,"Error processing request. "+D.message+` `+D.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),L1,aZ,Hke,Kke,VB,jB,Ohe,bM,k1,s8,Aot=bt({"src/server/scriptVersionCache.ts"(){"use strict";ib(),iA(),L1=4,aZ=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(aZ||{}),Hke=class{constructor(){this.goSubtree=!0,this.lineIndex=new bM,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new k1,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=bM.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let d=this.endBranch.length-1;d>=0;d--)this.endBranch[d].updateCounts(),this.endBranch[d].charCount()===0&&(s=this.endBranch[d],d>0?o=this.endBranch[d-1]:o=this.branchNode);s&&o.remove(s);let l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let d=new Array(i.length-1),p=l;for(let y=1;y=0;){let y=this.startPath[h];d=y.insertAt(p,d),h--,p=y}let m=d.length;for(;m>0;){let y=new k1;y.add(this.lineIndex.root),d=y.insertAt(this.lineIndex.root,d),m=d.length,this.lineIndex.root=y}this.lineIndex.root.updateCounts()}else for(let d=this.startPath.length-2;d>=0;d--)this.startPath[d].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){let s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function d(p){return p.isLeaf()?new s8(""):new k1}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=d(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=d(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=d(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=d(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},Kke=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return qL(gd(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},VB=class oI{constructor(){this.changes=[],this.versions=new Array(oI.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%oI.maxVersions}currentVersionToIndex(){return this.currentVersion%oI.maxVersions}edit(t,r,i){this.changes.push(new Kke(t,r,i)),(this.changes.length>oI.changeNumberThreshold||r>oI.changeLengthThreshold||i&&i.length>oI.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(let i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new Ohe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=oI.maxVersions&&(this.minVersion=this.currentVersion-oI.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return gd(o,s)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){let i=[];for(let o=t+1;o<=r;o++){let s=this.versions[this.versionToIndex(o)];for(let l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return Vne(i)}else return;else return d2}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new oI,i=new Ohe(0,r,new bM);r.versions[r.currentVersion]=i;let o=bM.linesFromText(t);return i.index.load(o.lines),r}},VB.changeNumberThreshold=8,VB.changeLengthThreshold=256,VB.maxVersions=8,jB=VB,Ohe=class V4e{constructor(t,r,i,o=_c){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof V4e&&this.cache===t.cache)return this.version<=t.version?d2:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},bM=class Abe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let r=this.getLineCount();if(t<=r){let{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let r=[];for(let i=0;i0&&t{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());let o={goSubtree:!0,done:!1,leaf(s,l,d){t(d,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return x.assert(r===0),i!==void 0?(this.load(Abe.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){let d=this.getText(0,this.root.charCount());o=d.slice(0,t)+i+d.slice(t+r)}let s=new Hke,l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let d=this.getText(t,1);i?i=d+i:i=d,r=0,l=!0}else if(r>0){let d=t+r,{zeroBasedColumn:p,lineText:h}=this.positionToColumnAndLineText(d);p===0&&(r+=h.length,i=i?i+h:h)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){let d=s.lineIndex.getText(0,s.lineIndex.getLength());x.assert(o===d,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},k1=class Ibe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let d=r-(s-l);for(o++,s=this.children[o].charCount();d>s;){if(this.execWalk(0,s,i,o,3))return;d-=s,o++,s=this.children[o].charCount()}if(d>0&&this.execWalk(0,d,i,o,4))return}if(i.pre){let d=this.children.length;if(or)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let o=x.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(let i of this.children){let o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r,i=this.children.length;t++;let o=t;if(t=0;E--)p[E].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let m=0;m{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){let o=j_e(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${xE(o)}`),this.activeRequestCount0?this.activeRequestCount--:x.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case KP:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${xE(t)}`),this.installer.send(t)},j4e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Whe.requestDelayMillis=100,Fhe=Whe}}),Jke={};xa(Jke,{ActionInvalidate:()=>zw,ActionPackageInstalled:()=>Bw,ActionSet:()=>Fw,ActionWatchTypingLocations:()=>KP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>zB,CommandNames:()=>Lhe,ConfigFileDiagEvent:()=>kB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>FB,CreateFileWatcherEvent:()=>WB,Errors:()=>Yy,EventBeginInstallTypes:()=>xz,EventEndInstallTypes:()=>Rz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Iz,ExternalProject:()=>RB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>LB,LineIndex:()=>bM,LineLeaf:()=>s8,LineNode:()=>k1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>rA,ProjectInfoTelemetryEvent:()=>OB,ProjectKind:()=>yM,ProjectLanguageServiceStateEvent:()=>wB,ProjectLoadingFinishEvent:()=>MB,ProjectLoadingStartEvent:()=>PB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>i8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>jB,Session:()=>whe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>Fhe,allFilesAreJsOrDts:()=>uhe,allRootFilesAreJsOrDts:()=>dhe,asNormalizedPath:()=>Ske,convertCompilerOptions:()=>DB,convertFormatOptions:()=>MD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>mhe,convertUserPreferences:()=>_he,convertWatchOptions:()=>r8,countEachFileTypes:()=>t8,createInstallTypingsRequest:()=>j_e,createModuleSpecifierCache:()=>Ihe,createNormalizedPathMap:()=>Tke,createPackageJsonCache:()=>xhe,createSortedArray:()=>q_e,emptyArray:()=>_c,findArgument:()=>dxe,forEachResolvedProjectReferenceProject:()=>LD,formatDiagnosticToProtocol:()=>a8,formatMessage:()=>Rhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>Phe,hasArgument:()=>cxe,hasNoTypeScriptSource:()=>phe,indent:()=>HP,isBackgroundProject:()=>n8,isConfigFile:()=>Ehe,isConfiguredProject:()=>ME,isDynamicFileName:()=>e8,isExternalProject:()=>jQ,isInferredProject:()=>PD,isInferredProjectName:()=>U_e,makeAutoImportProviderProjectName:()=>K_e,makeAuxiliaryProjectName:()=>J_e,makeInferredProjectName:()=>H_e,maxFileSize:()=>NB,maxProgramSizeForNonTsFiles:()=>CB,normalizedPathToPath:()=>ZO,nowString:()=>uxe,nullCancellationToken:()=>Mhe,nullTypingsInstaller:()=>xB,projectContainsInfoDirectly:()=>M1,protocol:()=>che,removeSorted:()=>Ake,stringifyIndented:()=>xE,toEvent:()=>Dhe,toNormalizedPath:()=>dl,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>G_e,updateProjectIfDirty:()=>zp});var iA=bt({"src/server/_namespaces/ts.server.ts"(){"use strict";Dz(),V_e(),Fit(),zit(),Bit(),Git(),Uit(),qit(),Qit(),rot(),iot(),oot(),Tot(),Aot(),Iot()}}),qke={};xa(qke,{ANONYMOUS:()=>y7,AccessFlags:()=>I9,AssertionLevel:()=>YG,AssignmentDeclarationKind:()=>k9,AssignmentKind:()=>SU,Associativity:()=>AU,BreakpointResolver:()=>TY,BuilderFileEmit:()=>RJ,BuilderProgramKind:()=>DJ,BuilderState:()=>xm,BundleFileSectionKind:()=>Q9,CallHierarchy:()=>A1,CharacterCodes:()=>H9,CheckFlags:()=>b9,CheckMode:()=>P3,ClassificationType:()=>hq,ClassificationTypeNames:()=>_q,CommentDirectiveType:()=>o9,Comparison:()=>xG,CompletionInfoFlags:()=>lq,CompletionTriggerKind:()=>rq,Completions:()=>C1,ContainerFlags:()=>hK,ContextFlags:()=>u9,Debug:()=>x,DiagnosticCategory:()=>NL,Diagnostics:()=>f,DocumentHighlights:()=>E7,ElementFlags:()=>A9,EmitFlags:()=>GW,EmitHint:()=>X9,EmitOnly:()=>s9,EndOfLineState:()=>uq,EnumKind:()=>v9,ExitStatus:()=>l9,ExportKind:()=>AX,Extension:()=>K9,ExternalEmitHelpers:()=>q9,FileIncludeKind:()=>MW,FilePreprocessingDiagnosticsKind:()=>a9,FileSystemEntryKind:()=>iV,FileWatcherEventKind:()=>rV,FindAllReferences:()=>Ms,FlattenLevel:()=>kK,FlowFlags:()=>CL,ForegroundColorEscapeSequences:()=>vJ,FunctionFlags:()=>TU,GeneratedIdentifierFlags:()=>PW,GetLiteralTextFlags:()=>vU,GoToDefinition:()=>xD,HighlightSpanKind:()=>oq,IdentifierNameMap:()=>f1,IdentifierNameMultiMap:()=>LK,ImportKind:()=>TX,ImportsNotUsedAsValues:()=>B9,IndentStyle:()=>aq,IndexFlags:()=>x9,IndexKind:()=>C9,InferenceFlags:()=>M9,InferencePriority:()=>P9,InlayHintKind:()=>iq,InlayHints:()=>_Q,InternalEmitFlags:()=>J9,InternalSymbolName:()=>E9,InvalidatedProjectKind:()=>XJ,JSDocParsingMode:()=>tV,JsDoc:()=>PE,JsTyping:()=>O_,JsxEmit:()=>z9,JsxFlags:()=>r9,JsxReferenceKind:()=>R9,LanguageServiceMode:()=>eq,LanguageVariant:()=>j9,LexicalEnvironmentFlags:()=>$9,ListFormat:()=>Z9,LogLevel:()=>QG,MemberOverrideStatus:()=>c9,ModifierFlags:()=>CW,ModuleDetectionKind:()=>w9,ModuleInstanceState:()=>_K,ModuleKind:()=>UC,ModuleResolutionKind:()=>Dx,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>oue,NavigationBar:()=>_ue,NewLineKind:()=>G9,NodeBuilderFlags:()=>p9,NodeCheckFlags:()=>S9,NodeFactoryFlags:()=>GU,NodeFlags:()=>DW,NodeResolutionFeatures:()=>pK,ObjectFlags:()=>OW,OperationCanceledException:()=>Rx,OperatorPrecedence:()=>IU,OrganizeImports:()=>Rm,OrganizeImportsMode:()=>nq,OuterExpressionKinds:()=>Y9,OutliningElementsCollector:()=>vQ,OutliningSpanKind:()=>cq,OutputFileType:()=>dq,PackageJsonAutoImportPreference:()=>ZJ,PackageJsonDependencyGroup:()=>QJ,PatternMatchKind:()=>S7,PollingInterval:()=>VW,PollingWatchKind:()=>F9,PragmaKindFlags:()=>eV,PrivateIdentifierKind:()=>qU,ProcessLevel:()=>FK,ProgramUpdateLevel:()=>eJ,QuotePreference:()=>gX,RelationComparisonResult:()=>NW,Rename:()=>vB,ScriptElementKind:()=>fq,ScriptElementKindModifier:()=>mq,ScriptKind:()=>FW,ScriptSnapshot:()=>Nz,ScriptTarget:()=>V9,SemanticClassificationFormat:()=>tq,SemanticMeaning:()=>hX,SemicolonPreference:()=>sq,SignatureCheckMode:()=>M3,SignatureFlags:()=>WW,SignatureHelp:()=>HO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>BW,SortKind:()=>XG,StructureIsReused:()=>LW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>Xy,SymbolDisplayPartKind:()=>Vw,SymbolFlags:()=>kW,SymbolFormatFlags:()=>m9,SyntaxKind:()=>RW,SyntheticSymbolKind:()=>h9,Ternary:()=>L9,ThrottledCancellationToken:()=>SY,TokenClass:()=>pq,TokenFlags:()=>i9,TransformFlags:()=>zW,TypeFacts:()=>N3,TypeFlags:()=>wW,TypeFormatFlags:()=>f9,TypeMapKind:()=>N9,TypePredicateKind:()=>g9,TypeReferenceSerializationKind:()=>y9,UnionReduction:()=>d9,UpToDateStatusType:()=>HJ,VarianceFlags:()=>T9,Version:()=>fm,VersionRange:()=>xL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>kc,accessPrivateIdentifier:()=>nle,addDisposableResourceHelper:()=>C4,addEmitFlags:()=>D_,addEmitHelper:()=>VI,addEmitHelpers:()=>Fg,addInternalEmitFlags:()=>BI,addNodeFactoryPatcher:()=>MSe,addObjectAllocatorPatcher:()=>ioe,addRange:()=>Hr,addRelatedInfo:()=>Pa,addSyntheticLeadingComment:()=>rP,addSyntheticTrailingComment:()=>n4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Ck,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>T3,altDirectorySeparator:()=>FL,and:()=>EW,append:()=>Tn,appendIfUnique:()=>xg,arrayFrom:()=>Wo,arrayIsEqualTo:()=>Gm,arrayIsHomogeneous:()=>Aoe,arrayIsSorted:()=>fW,arrayOf:()=>$te,arrayReverseIterator:()=>wG,arrayToMap:()=>_0,arrayToMultiMap:()=>TL,arrayToNumericMap:()=>Zte,arraysEqual:()=>bL,assertType:()=>pEe,assign:()=>bx,assignHelper:()=>c4,asyncDelegator:()=>u4,asyncGeneratorHelper:()=>d4,asyncSuperHelper:()=>Dk,asyncValues:()=>p4,attachFileToDiagnostics:()=>wI,awaitHelper:()=>jI,awaiterHelper:()=>m4,base64decode:()=>Jie,base64encode:()=>Kie,binarySearch:()=>by,binarySearchKey:()=>lI,bindSourceFile:()=>Pse,breakIntoCharacterSpans:()=>Qde,breakIntoWordSpans:()=>Zde,buildLinkParts:()=>Sde,buildOpts:()=>p3,buildOverload:()=>hke,bundlerModuleNameResolver:()=>Ese,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>GT,canHaveExportModifier:()=>dk,canHaveFlowNode:()=>F2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>wae,canHaveIllegalType:()=>sTe,canHaveIllegalTypeParameters:()=>kae,canHaveJSDoc:()=>z2,canHaveLocals:()=>lh,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>SP,canProduceDiagnostics:()=>H3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>cce,canWatchAtTypes:()=>lce,canWatchDirectoryOrFile:()=>pz,cartesianProduct:()=>cne,cast:()=>na,chainBundle:()=>Im,chainDiagnosticMessages:()=>zo,changeAnyExtension:()=>OL,changeCompilerHostLikeToUseCache:()=>Nw,changeExtension:()=>pE,changeFullExtension:()=>Dne,changesAffectModuleResolution:()=>yF,changesAffectingProgramStructure:()=>Nre,childIsDecorated:()=>_N,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>V3,classOrConstructorParameterIsDecorated:()=>Ny,classPrivateFieldGetHelper:()=>x4,classPrivateFieldInHelper:()=>D4,classPrivateFieldSetHelper:()=>R4,classicNameResolver:()=>Rse,classifier:()=>dpe,cleanExtendedConfigCache:()=>Z3,clear:()=>Gh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>Mz,climbPastPropertyOrElementAccess:()=>Xce,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Hm,closeFileWatcherOf:()=>Rf,codefix:()=>Od,collapseTextChangeRangesAcrossMultipleVersions:()=>Vne,collectExternalModuleInfo:()=>CK,combine:()=>vx,combinePaths:()=>Yr,commentPragmas:()=>PL,commonOptionsWithBuild:()=>ow,commonPackageFolders:()=>DU,compact:()=>SL,compareBooleans:()=>bv,compareDataObjects:()=>Qj,compareDiagnostics:()=>FN,compareDiagnosticsSkipRelatedInformation:()=>T6,compareEmitHelpers:()=>eae,compareNumberOfDirectorySeparators:()=>sk,comparePaths:()=>Rg,comparePathsCaseInsensitive:()=>zEe,comparePathsCaseSensitive:()=>FEe,comparePatternKeys:()=>dK,compareProperties:()=>one,compareStringsCaseInsensitive:()=>vW,compareStringsCaseInsensitiveEslintCompatible:()=>nne,compareStringsCaseSensitive:()=>Vd,compareStringsCaseSensitiveUI:()=>IL,compareTextSpans:()=>yW,compareValues:()=>Zs,compileOnSaveCommandLineOption:()=>rw,compilerOptionsAffectDeclarationPath:()=>moe,compilerOptionsAffectEmit:()=>foe,compilerOptionsAffectSemanticDiagnostics:()=>poe,compilerOptionsDidYouMeanDiagnostics:()=>lw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>dEe,computeCommonSourceDirectoryOfFilenames:()=>Gle,computeLineAndCharacterOfPosition:()=>Nx,computeLineOfPosition:()=>qC,computeLineStarts:()=>hI,computePositionOfLineAndCharacter:()=>XW,computeSignature:()=>JT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>fc,concatenate:()=>Eo,concatenateDiagnosticMessageChains:()=>loe,consumesNodeCoreModules:()=>u7,contains:()=>Bo,containsIgnoredPath:()=>JN,containsObjectRestOrSpread:()=>qk,containsParseError:()=>Vx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>ise,convertCompilerOptionsFromJson:()=>dAe,convertJsonOption:()=>VT,convertToBase64:()=>Hie,convertToJson:()=>ew,convertToObject:()=>Zae,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>JC,convertToTSConfig:()=>YTe,convertTypeAcquisitionFromJson:()=>uAe,copyComments:()=>$T,copyEntries:()=>vF,copyLeadingComments:()=>fD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>lO,copyTrailingComments:()=>tM,couldStartTrivia:()=>Mne,countWhere:()=>yv,createAbstractBuilder:()=>g1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>jae,createAccessorPropertySetRedirector:()=>Uae,createBaseNodeFactory:()=>Foe,createBinaryExpressionTrampoline:()=>e3,createBindingHelper:()=>xR,createBuildInfo:()=>Iw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>ace,createBuilderStatusReporter:()=>Tce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>$3,createClassNamedEvaluationHelperBlock:()=>lle,createClassThisAssignmentBlock:()=>ale,createClassifier:()=>kxe,createCommentDirectivesMap:()=>Ore,createCompilerDiagnostic:()=>jl,createCompilerDiagnosticForInvalidCustomType:()=>qae,createCompilerDiagnosticFromMessageChain:()=>S6,createCompilerHost:()=>Vle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>yR,createDiagnosticCollection:()=>cR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Hx,createDiagnosticForNodeArrayFromMessageChain:()=>g2,createDiagnosticForNodeFromMessageChain:()=>Mg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>qre,createDiagnosticMessageChainFromDiagnostic:()=>Jre,createDiagnosticReporter:()=>ww,createDocumentPositionMapper:()=>Yse,createDocumentRegistry:()=>Gde,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>Zoe,createEmptyExports:()=>Bk,createExpressionForJsxElement:()=>Rae,createExpressionForJsxFragment:()=>Dae,createExpressionForObjectLiteralElementLike:()=>Cae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Gk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>DF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Nd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Gy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Mle,createGetSymbolWalker:()=>Mse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>Ece,createInputFiles:()=>kSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>ipe,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>BT,createModeAwareCache:()=>u1,createModeAwareCacheKey:()=>RP,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>HR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>fce,createModuleSpecifierResolutionHost:()=>YT,createMultiMap:()=>qp,createNodeConverters:()=>Boe,createNodeFactory:()=>bk,createOptionNameMap:()=>r3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>iM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>zoe,createPatternMatcher:()=>Kde,createPrependNodes:()=>gJ,createPrinter:()=>AE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>rS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xw,createProgram:()=>iz,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>B6,createQueue:()=>AL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>fle,createScanner:()=>xy,createSemanticDiagnosticsBuilderProgram:()=>h1e,createSet:()=>VG,createSolutionBuilder:()=>L1e,createSolutionBuilderHost:()=>P1e,createSolutionBuilderWithWatch:()=>k1e,createSolutionBuilderWithWatchHost:()=>M1e,createSortedArray:()=>kG,createSourceFile:()=>Yk,createSourceMapGenerator:()=>Kse,createSourceMapSource:()=>wSe,createSuperAccessVariableStatement:()=>U3,createSymbolTable:()=>aa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Ane,createTextChange:()=>Zw,createTextChangeFromStartLength:()=>Kz,createTextChangeRange:()=>qL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Hz,createTextSpan:()=>gd,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Iu,createTextSpanFromRange:()=>eb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>$2,createTokenRange:()=>Xj,createTypeChecker:()=>Bse,createTypeReferenceDirectiveResolutionCache:()=>b3,createTypeReferenceResolutionLoader:()=>tz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>D1e,createWatchCompilerHostOfConfigFile:()=>yce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>vce,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>C1e,createWatchStatusReporter:()=>mce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>Ts,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>JL,decorateHelper:()=>i4,deduplicate:()=>m0,defaultIncludeSpec:()=>_3,defaultInitCompilerOptions:()=>f3,defaultMaximumTruncationLength:()=>mk,detectSortCaseSensitivity:()=>zC,diagnosticCategoryName:()=>rT,diagnosticToString:()=>ZT,directoryProbablyExists:()=>Um,directorySeparator:()=>nl,displayPart:()=>ep,displayPartsToString:()=>CO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>N4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>Ene,elementAt:()=>Ay,elideNodes:()=>Vae,emitComments:()=>kie,emitDetachedComments:()=>wie,emitFiles:()=>q3,emitFilesAndReportErrors:()=>hz,emitFilesAndReportErrorsAndGetExitStatus:()=>gce,emitModuleKindIsNonNodeESM:()=>A6,emitNewLineBeforeLeadingCommentOfPosition:()=>Lie,emitNewLineBeforeLeadingComments:()=>Pie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mie,emitSkippedWithNoDiagnostics:()=>cz,emitUsingBuildInfo:()=>Wle,emptyArray:()=>Xe,emptyFileSystemEntries:()=>Q6,emptyMap:()=>IW,emptyOptions:()=>Cf,emptySet:()=>une,endsWith:()=>El,ensurePathIsNonModuleName:()=>h0,ensureScriptKind:()=>L6,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>TW,equalOwnProperties:()=>Qte,equateStringsCaseInsensitive:()=>qb,equateStringsCaseSensitive:()=>eT,equateValues:()=>Ty,esDecorateHelper:()=>s4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>pl,escapeNonAsciiString:()=>Y2,escapeSnippetText:()=>z0,escapeString:()=>Qh,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>q4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>oR,exportStarHelper:()=>I4,expressionResultIsUnused:()=>xoe,extend:()=>gW,extendsHelper:()=>_4,extensionFromPath:()=>VN,extensionIsTS:()=>O6,extensionsNotSupportingExtensionlessResolution:()=>vk,externalHelpersModuleNameText:()=>Gv,factory:()=>L,fileExtensionIs:()=>Sl,fileExtensionIsOneOf:()=>bc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>jr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>oz,find:()=>Vr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>_s,findComputedPropertyNameCacheAssignment:()=>t3,findConfigFile:()=>Ble,findContainingList:()=>Wz,findDiagnosticForNode:()=>Lde,findFirstNonJsxWhitespaceToken:()=>ede,findIndex:()=>Kl,findLast:()=>sI,findLastIndex:()=>pW,findListItemInfo:()=>Zce,findMap:()=>aEe,findModifier:()=>dD,findNextToken:()=>aS,findPackageJson:()=>Pde,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>jz,findPrecedingToken:()=>Tc,findSuperStatementIndexPath:()=>z3,findTokenOnLeftOfPosition:()=>Bz,findUseStrictPrologue:()=>vH,first:()=>Va,firstDefined:()=>Wl,firstDefinedIterator:()=>vL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>mW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>wC,flatten:()=>pm,flattenCommaList:()=>Hae,flattenDestructuringAssignment:()=>UT,flattenDestructuringBinding:()=>nS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>Pre,forEachAncestorDirectory:()=>hm,forEachChild:()=>Go,forEachChildRecursively:()=>bP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Ure,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>$F,forEachKey:()=>dh,forEachLeadingCommentRange:()=>VL,forEachNameInAccessChainWalkingLeft:()=>noe,forEachPropertyAssignment:()=>Xx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>I0,forEachRight:()=>jte,forEachTrailingCommentRange:()=>jL,forEachTsConfigPropArray:()=>E2,forEachUnique:()=>qq,forEachYieldExpression:()=>Yre,forSomeAncestorDirectory:()=>rSe,formatColorAndReset:()=>iS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>$Ie,formatDiagnosticsWithColorAndContext:()=>jle,formatGeneratedName:()=>vE,formatGeneratedNamePart:()=>BR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>tg,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>HC,generateTSConfig:()=>tAe,generatorHelper:()=>S4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>zz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>AT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>G3,getAllJSDocTags:()=>rF,getAllJSDocTagsOfKind:()=>m0e,getAllKeys:()=>lEe,getAllProjectOutputs:()=>J3,getAllSuperTypeNodes:()=>bN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>Vv,getAllowSyntheticDefaultImports:()=>RT,getAncestor:()=>dE,getAnyExtensionFromPath:()=>Cx,getAreDeclarationMapsEnabled:()=>hk,getAssignedExpandoInitializer:()=>AI,getAssignedName:()=>tF,getAssignedNameOfIdentifier:()=>kP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>L2,getAssignmentTargetKind:()=>DI,getAutomaticTypeDirectiveNames:()=>y3,getBaseFileName:()=>nc,getBinaryOperatorPrecedence:()=>X2,getBuildInfo:()=>X3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>Ole,getBuildOrderFromAnyBuildOrder:()=>Ez,getBuilderCreationParameters:()=>dz,getBuilderFileEmit:()=>Zv,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>N0,getClassLikeDeclarationOfSymbol:()=>Og,getCombinedLocalAndExportSymbolFlags:()=>_R,getCombinedModifierFlags:()=>Zb,getCombinedNodeFlags:()=>Ry,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>GP,getCommonSourceDirectoryOfConfig:()=>$R,getCompilerOptionValue:()=>x6,getCompilerOptionsDiffValue:()=>ZTe,getConditions:()=>$v,getConfigFileParsingDiagnostics:()=>KT,getConstantValue:()=>Koe,getContainerFlags:()=>mK,getContainerNode:()=>XT,getContainingClass:()=>ad,getContainingClassExcludingClassDecorators:()=>WF,getContainingClassStaticBlock:()=>oie,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>iie,getContainingFunctionOrClassStaticBlock:()=>OF,getContainingNodeArray:()=>Roe,getContainingObjectLiteralElement:()=>NO,getContextualTypeFromParent:()=>r7,getContextualTypeFromParentOrAncestorTypeNode:()=>Fz,getCurrentTime:()=>Ww,getDeclarationDiagnostics:()=>Lle,getDeclarationEmitExtensionForPath:()=>a6,getDeclarationEmitOutputFilePath:()=>xie,getDeclarationEmitOutputFilePathWorker:()=>o6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>vN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>cl,getDeclarationsOfKind:()=>Dre,getDeclaredExpandoInitializer:()=>C2,getDecorators:()=>xv,getDefaultCompilerOptions:()=>H7,getDefaultExportInfoWorker:()=>b7,getDefaultFormatCodeSettings:()=>Cz,getDefaultLibFileName:()=>HL,getDefaultLibFilePath:()=>ope,getDefaultLikeExportInfo:()=>v7,getDiagnosticText:()=>jTe,getDiagnosticsWithinSpan:()=>kde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>uce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>mh,getEditsForFileRename:()=>jde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>wx,getEffectiveContainerForJSDocTemplateTag:()=>QF,getEffectiveImplementsTypeNodes:()=>aR,getEffectiveInitializer:()=>D2,getEffectiveJSDocHost:()=>cE,getEffectiveModifierFlags:()=>lu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zie,getEffectiveModifierFlagsNoCache:()=>Bie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>Nie,getEffectiveTypeAnnotationNode:()=>yd,getEffectiveTypeParameterDeclarations:()=>Rv,getEffectiveTypeRoots:()=>xP,getElementOrPropertyAccessArgumentExpressionOrName:()=>YF,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>zR,getEmitDeclarations:()=>Af,getEmitFlags:()=>za,getEmitHelpers:()=>r4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>Ld,getEmitModuleResolutionKind:()=>du,getEmitScriptTarget:()=>ns,getEmitStandardClassFields:()=>uoe,getEnclosingBlockScopeContainer:()=>uh,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>f2,getEntityNameFromTypeNode:()=>A2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>mz,getErrorSpanForNode:()=>fT,getErrorSummaryText:()=>_ce,getEscapedTextOfIdentifierOrLiteral:()=>TN,getEscapedTextOfJsxAttributeName:()=>$N,getEscapedTextOfJsxNamespacedName:()=>FI,getExpandoInitializer:()=>sE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>fO,getExportNeedsImportStarHelper:()=>$se,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>IN,getExternalHelpersModuleName:()=>jk,getExternalModuleImportEqualsDeclarationExpression:()=>hN,getExternalModuleName:()=>tR,getExternalModuleNameFromDeclaration:()=>Aie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>s1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Cw,getFileEmitOutput:()=>Yle,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>TP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>_z,getFirstConstructorWithBody:()=>Zh,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Ide,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>_7,getFullWidth:()=>u2,getFunctionFlags:()=>Vc,getHeritageClause:()=>H2,getHostSignatureFromJSDoc:()=>lE,getIdentifierAutoGenerate:()=>BSe,getIdentifierGeneratedImportReference:()=>Qoe,getIdentifierTypeArguments:()=>DT,getImmediatelyInvokedFunctionExpression:()=>_T,getImpliedNodeFormatForFile:()=>Lw,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>W3,getIndentSize:()=>uR,getIndentString:()=>r6,getInferredLibraryNameResolveFrom:()=>rz,getInitializedVariables:()=>wN,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Hk,getInterfaceBaseTypeNodes:()=>EN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>BF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>$ne,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>ire,getJSDocEnumTag:()=>bV,getJSDocHost:()=>vT,getJSDocImplementsTags:()=>Qne,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>rre,getJSDocParameterTags:()=>kx,getJSDocParameterTagsNoCache:()=>Jne,getJSDocPrivateTag:()=>c0e,getJSDocPrivateTagNoCache:()=>ere,getJSDocProtectedTag:()=>d0e,getJSDocProtectedTagNoCache:()=>tre,getJSDocPublicTag:()=>l0e,getJSDocPublicTagNoCache:()=>Zne,getJSDocReadonlyTag:()=>u0e,getJSDocReadonlyTagNoCache:()=>nre,getJSDocReturnTag:()=>ore,getJSDocReturnType:()=>YL,getJSDocRoot:()=>iR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>rE,getJSDocTagsNoCache:()=>f0e,getJSDocTemplateTag:()=>p0e,getJSDocThisTag:()=>nF,getJSDocType:()=>nE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Y4,getJSDocTypeParameterDeclarations:()=>d6,getJSDocTypeParameterTags:()=>qne,getJSDocTypeParameterTagsNoCache:()=>Xne,getJSDocTypeTag:()=>tE,getJSXImplicitImportBase:()=>D6,getJSXRuntimeImport:()=>C6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>ik,getLastChild:()=>Zj,getLeadingCommentRanges:()=>jh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>hR,getLeftmostExpression:()=>gR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>hs,getLineInfo:()=>AK,getLineOfLocalPosition:()=>RN,getLineOfLocalPositionFromLineMap:()=>ST,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Dg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qie,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ie,getLinesBetweenPositions:()=>XC,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>tSe,getLiteralText:()=>Wre,getLocalNameForExternalImport:()=>FR,getLocalSymbolForExportDefault:()=>mR,getLocaleSpecificMessage:()=>wo,getLocaleTimeString:()=>Ow,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>Zz,getMappedLocation:()=>QP,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>jw,getMeaningFromLocation:()=>qT,getMembersOfDeclaration:()=>$re,getModeForFileReference:()=>Pw,getModeForResolutionAtIndex:()=>Ule,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>fI,getModifiers:()=>y0,getModuleInstanceState:()=>Vg,getModuleNameStringLiteralAt:()=>kw,getModuleSpecifierEndingPreference:()=>yoe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>p7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Hre,getNameFromPropertyName:()=>nO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>Po,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>Kne,getNameOrArgument:()=>M2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>wde,getNamespaceDeclarationNode:()=>nR,getNewLineCharacter:()=>wy,getNewLineKind:()=>pO,getNewLineOrDefaultFromHost:()=>Ky,getNewTargetContainer:()=>sie,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>Jk,getNodeId:()=>rs,getNodeKind:()=>oS,getNodeModifiers:()=>XP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>eF,getNonAssignmentOperatorForCompoundAssignment:()=>PP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>ho,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>wL,getObjectFlags:()=>Lr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>q2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>VR,getOrCreateEmitNode:()=>kd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Lae,getOrUpdate:()=>WC,getOriginalNode:()=>Nl,getOriginalNodeId:()=>wd,getOriginalSourceFile:()=>H0e,getOutputDeclarationFileName:()=>BP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>K3,getOutputFileNames:()=>XIe,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>zP,getOutputPathsForBundle:()=>FP,getOwnEmitOutputFilePath:()=>Iie,getOwnKeys:()=>Vh,getOwnValues:()=>cI,getPackageJsonInfo:()=>Q0,getPackageJsonTypesVersionsPaths:()=>g3,getPackageJsonsVisibleToFile:()=>Mde,getPackageNameFromTypesPackageName:()=>DP,getPackageScopeForPath:()=>fw,getParameterSymbolFromJSDoc:()=>B2,getParameterTypeNode:()=>pSe,getParentNodeInSpan:()=>iO,getParseTreeNode:()=>Do,getParsedCommandLineOfConfigFile:()=>Qk,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Tv,getPathUpdater:()=>CX,getPathsBasePath:()=>s6,getPatternFromSpec:()=>_oe,getPendingEmitKind:()=>nD,getPositionOfLineAndCharacter:()=>BL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Rie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>YIe,getPrecedingNonSpaceCharacterPosition:()=>t7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>_W,getPropertyArrayElementValue:()=>rie,getPropertyAssignmentAliasLikeExpression:()=>bie,getPropertyNameForPropertyNameNode:()=>bT,getPropertyNameForUniqueESSymbol:()=>j0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>Qz,getPropertySymbolsFromContextualType:()=>J7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>of,getRangesWhere:()=>LG,getRefactorContextSpan:()=>E1,getReferencedFileLocation:()=>VP,getRegexFromPattern:()=>zv,getRegularExpressionForWildcard:()=>zN,getRegularExpressionsForWildcards:()=>N6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>WL,getRelativePathToDirectoryOrUrl:()=>_I,getRenameLocation:()=>sO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>QR,getResolveJsonModule:()=>mE,getResolvePackageJsonExports:()=>X6,getResolvePackageJsonImports:()=>Y6,getResolvedExternalModuleName:()=>i6,getRestIndicatorOfBindingOrAssignmentElement:()=>Q4,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>N2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>pce,getRootLength:()=>sh,getRootPathSplitLength:()=>E1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>k6,getScriptTargetFeatures:()=>J6,getSelectedEffectiveModifierFlags:()=>PI,getSelectedSyntacticModifierFlags:()=>Wie,getSemanticClassifications:()=>zde,getSemanticJsxChildren:()=>lR,getSetAccessorTypeAnnotationNode:()=>Die,getSetAccessorValueParameter:()=>DN,getSetExternalModuleIndicator:()=>ok,getShebang:()=>$W,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>RI,getSnapshotText:()=>cD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>SF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>l6,getSourceFilePathInNewDirWorker:()=>c6,getSourceFileVersionAsHashFromText:()=>gz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>Wy,getSourceMapper:()=>tue,getSourceTextOfNodeFromSourceFile:()=>S0,getSpanOfTokenAtPosition:()=>ph,getSpellingSuggestion:()=>GC,getStartPositionOfLine:()=>kv,getStartPositionOfRange:()=>kN,getStartsOnNewLine:()=>nP,getStaticPropertiesAndClassStaticBlock:()=>B3,getStrictOptionValue:()=>cu,getStringComparer:()=>Ex,getSubPatternFromSpec:()=>P6,getSuperCallFromStatement:()=>F3,getSuperContainer:()=>S2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>BN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>ak,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>K2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>Bde,getSyntacticModifierFlags:()=>Wv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>ol,getSynthesizedDeepCloneWithReplacements:()=>aO,getSynthesizedDeepClones:()=>sS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>IR,getSyntheticTrailingComments:()=>Ik,getTargetLabel:()=>Lz,getTargetOfBindingOrAssignmentElement:()=>Yv,getTemporaryModuleResolutionState:()=>pw,getTextOfConstantValue:()=>Fre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>QL,getTextOfJsxAttributeName:()=>fk,getTextOfJsxNamespacedName:()=>QN,getTextOfNode:()=>uc,getTextOfNodeFromSourceText:()=>dN,getTextOfPropertyName:()=>Ux,getThisContainer:()=>Lu,getThisParameter:()=>M0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>oE,getTokenSourceMapRange:()=>FSe,getTouchingPropertyName:()=>Wu,getTouchingToken:()=>lD,getTrailingCommentRanges:()=>Yb,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Goe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>Vy,getTsConfigObjectLiteralExpression:()=>mN,getTsConfigPropArrayElementValue:()=>wF,getTypeAnnotationNode:()=>Cie,getTypeArgumentOrTypeParameterList:()=>lde,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>Yoe,getTypeNodeIfAccessible:()=>rM,getTypeParameterFromJsDoc:()=>mie,getTypeParameterOwner:()=>r0e,getTypesPackageName:()=>A3,getUILocale:()=>rne,getUniqueName:()=>QT,getUniqueSymbolId:()=>Ade,getUseDefineForClassFields:()=>tP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>BC,groupBy:()=>hW,guessIndentation:()=>xre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>w0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>Yw,hasContextSensitiveParameters:()=>z6,hasDecorators:()=>bf,hasDocComment:()=>ade,hasDynamicName:()=>Ov,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>u6,hasEffectiveReadonlyModifier:()=>CN,hasExtension:()=>mI,hasIndexSignature:()=>iX,hasInitializer:()=>Mv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>Yne,hasJSFileExtension:()=>O0,hasJsonModuleEmitEnabled:()=>I6,hasOnlyExpressionInitializer:()=>dT,hasOverrideModifier:()=>p6,hasPossibleExternalModuleReference:()=>jre,hasProperty:()=>Ss,hasPropertyAccessExpressionWithName:()=>Hw,hasQuestionToken:()=>xI,hasRecordedExternalHelpers:()=>Mae,hasResolutionModeOverride:()=>Moe,hasRestParameter:()=>FV,hasScopeMarker:()=>yre,hasStaticModifier:()=>pc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>Oie,hasTSFileExtension:()=>WI,hasTabstop:()=>Coe,hasTrailingDirectorySeparator:()=>Iy,hasType:()=>hF,hasTypeArguments:()=>F0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>pR,idText:()=>gr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>eE,identity:()=>Qs,identitySourceMapConsumer:()=>O3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>kL,importDefaultHelper:()=>A4,importFromModuleSpecifier:()=>yN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Rk,indexOfAnyCharCode:()=>Ute,indexOfNode:()=>jx,indicesOf:()=>EL,inferredTypesContainingFile:()=>tD,injectClassNamedEvaluationHelperBlockIfMissing:()=>j3,injectClassThisAssignmentIfMissing:()=>sle,insertImports:()=>$P,insertLeadingStatement:()=>rTe,insertSorted:()=>vv,insertStatementAfterCustomPrologue:()=>uT,insertStatementAfterStandardPrologue:()=>D0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>Jh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>tie,inverseJsxOptionMap:()=>AP,isAbstractConstructorSymbol:()=>Zie,isAbstractModifier:()=>aae,isAccessExpression:()=>Ns,isAccessibilityModifier:()=>kq,isAccessor:()=>Cv,isAccessorModifier:()=>lae,isAliasSymbolDeclaration:()=>B0e,isAliasableExpression:()=>U2,isAmbientModule:()=>Md,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>AN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Vre,isAnyImportOrReExport:()=>_2,isAnyImportSyntax:()=>pT,isAnySupportedFileExtension:()=>uSe,isApplicableVersionedTypesKey:()=>_w,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>To,isArrayBindingElement:()=>dF,isArrayBindingOrAssignmentElement:()=>o2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>V0,isArrayLiteralExpression:()=>uu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Uy,isArrayTypeNode:()=>kk,isArrowFunction:()=>Os,isAsExpression:()=>Ok,isAssertClause:()=>_ae,isAssertEntry:()=>XSe,isAssertionExpression:()=>cT,isAssertsKeyword:()=>iae,isAssignmentDeclaration:()=>gN,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>Ly,isAssignmentPattern:()=>sN,isAssignmentTarget:()=>$h,isAsteriskToken:()=>Nk,isAsyncFunction:()=>SN,isAsyncModifier:()=>oP,isAutoAccessorPropertyDeclaration:()=>Mu,isAwaitExpression:()=>Jv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>P4,isBinaryExpression:()=>dr,isBinaryOperatorToken:()=>Gae,isBindableObjectDefinePropertyCall:()=>gT,isBindableStaticAccessExpression:()=>D0,isBindableStaticElementAccessExpression:()=>XF,isBindableStaticNameExpression:()=>yT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>die,isBindingName:()=>sT,isBindingOrAssignmentElement:()=>pre,isBindingOrAssignmentPattern:()=>r2,isBindingPattern:()=>Qo,isBlock:()=>Ko,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Gre,isBooleanLiteral:()=>aN,isBreakOrContinueStatement:()=>nN,isBreakStatement:()=>KSe,isBuildInfoFile:()=>wle,isBuilderProgram:()=>hce,isBundle:()=>aH,isBundleFileTextLike:()=>toe,isCallChain:()=>oT,isCallExpression:()=>ia,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>E0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>iP,isCaseBlock:()=>pP,isCaseClause:()=>MR,isCaseKeyword:()=>cae,isCaseOrDefaultClause:()=>mF,isCatchClause:()=>X0,isCatchClauseVariableDeclaration:()=>Doe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>ck,isChildOfNodeWithKind:()=>N0e,isCircularBuildOrder:()=>h1,isClassDeclaration:()=>Sc,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>dre,isClassLike:()=>ci,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>_1,isClassOrTypeElement:()=>cF,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>LP,isCollapsedRange:()=>eSe,isColonToken:()=>nae,isCommaExpression:()=>Vk,isCommaListExpression:()=>cP,isCommaSequence:()=>gP,isCommaToken:()=>tae,isComment:()=>Uz,isCommonJsExportPropertyAssignment:()=>LF,isCommonJsExportedExpression:()=>Zre,isCompoundAssignment:()=>NP,isComputedNonLiteralName:()=>h2,isComputedPropertyName:()=>Ya,isConciseBody:()=>pF,isConditionalExpression:()=>PR,isConditionalTypeNode:()=>ZI,isConstTypeReference:()=>Ng,isConstructSignatureDeclaration:()=>Mk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>RR,isContextualKeyword:()=>e6,isContinueStatement:()=>HSe,isCustomPrologue:()=>b2,isDebuggerStatement:()=>JSe,isDeclaration:()=>Hd,isDeclarationBindingElement:()=>n2,isDeclarationFileName:()=>Ed,isDeclarationName:()=>kg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>CF,isDeclarationStatement:()=>Sre,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>bd,isDecoratorTarget:()=>Jce,isDefaultClause:()=>mP,isDefaultImport:()=>II,isDefaultModifier:()=>w4,isDefaultedExpandoInitializer:()=>uie,isDeleteExpression:()=>pae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>f7,isDestructuringAssignment:()=>ky,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>jSe,isDocumentRegistryEntry:()=>mO,isDotDotDotToken:()=>L4,isDottedName:()=>PN,isDynamicName:()=>n6,isESSymbolIdentifier:()=>U0e,isEffectiveExternalModule:()=>TI,isEffectiveModuleDeclaration:()=>Bre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>Js,isEmittedFileOfProgram:()=>zle,isEmptyArrayLiteral:()=>Uie,isEmptyBindingElement:()=>Une,isEmptyBindingPattern:()=>jne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Bl,isEnumConst:()=>A0,isEnumDeclaration:()=>hE,isEnumMember:()=>Y0,isEqualityOperatorKind:()=>i7,isEqualsGreaterThanToken:()=>rae,isExclamationToken:()=>Pk,isExcludedFile:()=>tse,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>j6,isExportAssignment:()=>Ll,isExportDeclaration:()=>Xl,isExportModifier:()=>JI,isExportName:()=>X4,isExportNamespaceAsDefaultDeclaration:()=>IF,isExportOrDefaultModifier:()=>Kk,isExportSpecifier:()=>Kd,isExportsIdentifier:()=>hT,isExportsOrModuleExportsOrAlias:()=>Z0,isExpression:()=>ht,isExpressionNode:()=>Xh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>$ce,isExpressionOfOptionalChainRoot:()=>aF,isExpressionStatement:()=>ed,isExpressionWithTypeArguments:()=>zy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>f6,isExternalModule:()=>oc,isExternalModuleAugmentation:()=>T0,isExternalModuleImportEqualsDeclaration:()=>aE,isExternalModuleIndicator:()=>a2,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>vh,isExternalModuleSymbol:()=>eO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>t2,isFileLevelUniqueName:()=>TF,isFileProbablyExternalModule:()=>Xk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Fx,isForInStatement:()=>G4,isForInitializer:()=>vf,isForOfStatement:()=>Wk,isForStatement:()=>kT,isFunctionBlock:()=>x0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Ec,isFunctionExpression:()=>Ps,isFunctionExpressionOrArrowFunction:()=>F0,isFunctionLike:()=>$o,isFunctionLikeDeclaration:()=>ws,isFunctionLikeKind:()=>vI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Wx,isFunctionOrConstructorTypeNode:()=>ure,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>fie,isFunctionTypeNode:()=>hh,isFutureReservedKeyword:()=>G0e,isGeneratedIdentifier:()=>rl,isGeneratedPrivateIdentifier:()=>aT,isGetAccessor:()=>Pv,isGetAccessorDeclaration:()=>Qp,isGetOrSetAccessorDeclaration:()=>iF,isGlobalDeclaration:()=>Cxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>wre,isHeritageClause:()=>Zp,isHoistedFunction:()=>PF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>vie,isIdentifierOrThisTypeNode:()=>Wae,isIdentifierPart:()=>$b,isIdentifierStart:()=>Uh,isIdentifierText:()=>Yp,isIdentifierTypePredicate:()=>nie,isIdentifierTypeReference:()=>Toe,isIfStatement:()=>LT,isIgnoredFileFromWildCardWatching:()=>Dw,isImplicitGlob:()=>sU,isImportAttribute:()=>hae,isImportAttributeName:()=>cre,isImportAttributes:()=>n1,isImportCall:()=>Op,isImportClause:()=>gh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>td,isImportKeyword:()=>sP,isImportMeta:()=>Jx,isImportOrExportSpecifier:()=>yI,isImportOrExportSpecifierName:()=>Tde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>qSe,isImportTypeNode:()=>rg,isImportableFile:()=>EX,isInComment:()=>jy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>VF,isInJSDoc:()=>x2,isInJSFile:()=>ir,isInJSXText:()=>ide,isInJsonFile:()=>UF,isInNonReferenceComment:()=>ude,isInReferenceComment:()=>dde,isInRightSideOfInternalImportEqualsDeclaration:()=>Pz,isInString:()=>y1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>FF,isInTypeQuery:()=>TT,isIncrementalCompilation:()=>eP,isIndexSignatureDeclaration:()=>G0,isIndexedAccessTypeNode:()=>MT,isInferTypeNode:()=>CT,isInfinityOrNaNString:()=>qN,isInitializedProperty:()=>Ew,isInitializedVariable:()=>rk,isInsideJsxElement:()=>Vz,isInsideJsxElementOrAttribute:()=>rde,isInsideNodeModules:()=>uO,isInsideTemplateLiteral:()=>Qw,isInstanceOfExpression:()=>m6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>pu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>Qx,isInternalName:()=>yH,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>dR,isIterationStatement:()=>Nv,isJSDoc:()=>Xm,isJSDocAllType:()=>Eae,isJSDocAugmentsTag:()=>a1,isJSDocAuthorTag:()=>ZSe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>Tae,isJSDocCommentContainingNode:()=>_F,isJSDocConstructSignature:()=>rR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>zk,isJSDocFunctionType:()=>kR,isJSDocImplementsTag:()=>K4,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>RH,isJSDocLink:()=>vae,isJSDocLinkCode:()=>bae,isJSDocLinkLike:()=>SI,isJSDocLinkPlain:()=>$Se,isJSDocMemberName:()=>gE,isJSDocNameReference:()=>_P,isJSDocNamepathType:()=>QSe,isJSDocNamespaceBody:()=>S0e,isJSDocNode:()=>zx,isJSDocNonNullableType:()=>V4,isJSDocNullableType:()=>LR,isJSDocOptionalParameter:()=>pk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>wR,isJSDocOverrideTag:()=>U4,isJSDocParameterTag:()=>Ym,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>rN,isJSDocPropertyTag:()=>Aae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>H4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>J4,isJSDocSeeTag:()=>eTe,isJSDocSignature:()=>yE,isJSDocTag:()=>Bx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>nTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>WR,isJSDocTypeExpression:()=>$0,isJSDocTypeLiteral:()=>FT,isJSDocTypeTag:()=>hP,isJSDocTypedefTag:()=>zT,isJSDocUnknownTag:()=>tTe,isJSDocUnknownType:()=>Sae,isJSDocVariadicType:()=>j4,isJSXTagName:()=>$x,isJsonEqual:()=>W6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>fF,isJsxAttributeName:()=>Poe,isJsxAttributes:()=>q0,isJsxChild:()=>c2,isJsxClosingElement:()=>K0,isJsxClosingFragment:()=>gae,isJsxElement:()=>ig,isJsxExpression:()=>fP,isJsxFragment:()=>J0,isJsxNamespacedName:()=>qm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>i1,isJsxOpeningLikeElement:()=>au,isJsxOpeningLikeElementTagName:()=>qce,isJsxSelfClosingElement:()=>OT,isJsxSpreadAttribute:()=>o1,isJsxTagNameExpression:()=>lN,isJsxText:()=>UI,isJumpStatementTarget:()=>Kw,isKeyword:()=>wu,isKeywordOrPunctuation:()=>ZF,isKnownSymbol:()=>J2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>H0,isLateVisibilityPaintedStatement:()=>RF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>Z0e,isLet:()=>NF,isLineBreak:()=>jd,isLiteralComputedPropertyDeclarationName:()=>j2,isLiteralExpression:()=>b0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>wv,isLiteralKind:()=>iN,isLiteralLikeAccess:()=>qF,isLiteralLikeElementAccess:()=>P2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>kz,isLiteralTypeLikeExpression:()=>lTe,isLiteralTypeLiteral:()=>hre,isLiteralTypeNode:()=>Kv,isLocalName:()=>Bg,isLogicalOperator:()=>Gie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>NN,isLogicalOrCoalescingBinaryExpression:()=>Z2,isLogicalOrCoalescingBinaryOperator:()=>Q2,isMappedTypeNode:()=>CR,isMemberName:()=>Hh,isMetaProperty:()=>lP,isMethodDeclaration:()=>Ul,isMethodOrAccessor:()=>bI,isMethodSignature:()=>_h,isMinusToken:()=>QU,isMissingDeclaration:()=>YSe,isMissingPackageJsonInfo:()=>yse,isModifier:()=>Sa,isModifierKind:()=>Dy,isModifierLike:()=>il,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>vre,isModuleDeclaration:()=>ql,isModuleExportsAccessExpression:()=>Yh,isModuleIdentifier:()=>mj,isModuleName:()=>Bae,isModuleOrEnumDeclaration:()=>s2,isModuleReference:()=>Are,isModuleSpecifierLike:()=>$z,isModuleWithStringLiteralName:()=>xF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>g0e,isNamedDeclaration:()=>iu,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>zg,isNamedImportsOrExports:()=>E6,isNamedTupleMember:()=>DR,isNamespaceBody:()=>E0e,isNamespaceExport:()=>yh,isNamespaceExportDeclaration:()=>Fk,isNamespaceImport:()=>Xv,isNamespaceReexportDeclaration:()=>cie,isNewExpression:()=>j0,isNewExpressionTarget:()=>JP,isNoSubstitutionTemplateLiteral:()=>HI,isNode:()=>_0e,isNodeArray:()=>v0,isNodeArrayMultiLine:()=>Yie,isNodeDescendantOf:()=>C0,isNodeKind:()=>ZL,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>KW,isNodeWithPossibleHoistedDeclaration:()=>hie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>dTe,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>Fde,isNonNullAccess:()=>Noe,isNonNullChain:()=>sF,isNonNullExpression:()=>t1,isNonStaticMethodOrAccessorWithPrivateName:()=>Qse,isNotEmittedOrPartiallyEmittedNode:()=>b0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Ey,isNumericLiteral:()=>mp,isNumericLiteralName:()=>ng,isObjectBindingElementWithoutPropertyName:()=>rO,isObjectBindingOrAssignmentElement:()=>i2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Pg,isObjectLiteralExpression:()=>Ma,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>kF,isObjectTypeDeclaration:()=>kI,isOctalDigit:()=>YW,isOmittedExpression:()=>jc,isOptionalChain:()=>Ud,isOptionalChainRoot:()=>eN,isOptionalDeclaration:()=>YN,isOptionalJSDocPropertyLikeTag:()=>uk,isOptionalTypeNode:()=>O4,isOuterExpression:()=>$4,isOutermostOptionalChain:()=>tN,isOverrideModifier:()=>sae,isPackageJsonInfo:()=>v3,isPackedArrayLiteral:()=>mU,isParameter:()=>Ao,isParameterDeclaration:()=>P0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>oN,isParenthesizedExpression:()=>Ou,isParenthesizedTypeNode:()=>NT,isParseTreeNode:()=>ZC,isPartOfTypeNode:()=>qh,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>B4,isPatternMatch:()=>bW,isPinnedComment:()=>AF,isPlainJsFile:()=>p2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>$w,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>qv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>ou,isPrivateIdentifierPropertyAccessExpression:()=>Ox,isPrivateIdentifierSymbol:()=>Eie,isProgramBundleEmitBuildInfo:()=>tce,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>oF,isPropertyAccessEntityNameExpression:()=>ek,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>mre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>fre,isPropertyAssignment:()=>mc,isPropertyDeclaration:()=>Uo,isPropertyName:()=>rc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Sie,isPrototypeAccess:()=>Fv,isPrototypePropertyAssignment:()=>k2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Su,isQuestionDotToken:()=>k4,isQuestionOrExclamationToken:()=>Oae,isQuestionOrPlusOrMinusToken:()=>zae,isQuestionToken:()=>Uv,isRawSourceMap:()=>qse,isReadonlyKeyword:()=>oae,isReadonlyKeywordOrPlusOrMinusToken:()=>Fae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>ZR,isReferencedFile:()=>IE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>bu,isRequireVariableStatement:()=>pj,isRestParameter:()=>Kh,isRestTypeNode:()=>W4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>T7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>jie,isRightSideOfPropertyAccess:()=>aD,isRightSideOfQualifiedName:()=>Yce,isRightSideOfQualifiedNameOrPropertyAccess:()=>MN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vie,isRootedDiskPath:()=>cp,isSameEntityName:()=>Zx,isSatisfiesExpression:()=>nH,isScopeMarker:()=>gre,isSemicolonClassElement:()=>fae,isSetAccessor:()=>Cy,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>uN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>t6,isSimpleCopiableExpression:()=>tS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>rle,isSimpleParameterList:()=>Sw,isSingleOrDoubleQuote:()=>R2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>mD,isSourceFileJS:()=>su,isSourceFileNotJS:()=>L0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>Xse,isSpecialPropertyDeclaration:()=>pie,isSpreadAssignment:()=>By,isSpreadElement:()=>Jm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>l2,isStatementOrBlock:()=>Tre,isStatementWithLocals:()=>kre,isStatic:()=>ra,isStaticModifier:()=>qI,isString:()=>No,isStringAKeyword:()=>V0e,isStringANonContextualKeyword:()=>CI,isStringAndEmptyAnonymousObjectIntersection:()=>cde,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>Da,isStringLiteralLike:()=>as,isStringLiteralOrJsxExpression:()=>Ire,isStringLiteralOrTemplate:()=>Cde,isStringOrNumericLiteralLike:()=>$p,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>mT,isSuperKeyword:()=>aP,isSuperOrSuperProperty:()=>M0e,isSuperProperty:()=>ku,isSupportedSourceFileName:()=>voe,isSwitchStatement:()=>uP,isSyntaxList:()=>OR,isSyntheticExpression:()=>VSe,isSyntheticReference:()=>r1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>U0,isTaggedTemplateTag:()=>Kce,isTemplateExpression:()=>F4,isTemplateHead:()=>KI,isTemplateLiteral:()=>EI,isTemplateLiteralKind:()=>Dv,isTemplateLiteralToken:()=>sre,isTemplateLiteralTypeNode:()=>dae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>lF,isTemplateSpan:()=>dP,isTemplateTail:()=>M4,isTextWhiteSpaceLike:()=>_de,isThis:()=>sD,isThisContainerOrFunctionBlock:()=>aie,isThisIdentifier:()=>k0,isThisInTypeQuery:()=>NI,isThisInitializedDeclaration:()=>zF,isThisInitializedObjectBindingExpression:()=>lie,isThisProperty:()=>T2,isThisTypeNode:()=>wk,isThisTypeParameter:()=>XN,isThisTypePredicate:()=>P0e,isThrowStatement:()=>iH,isToken:()=>gI,isTokenKind:()=>xV,isTraceEnabled:()=>Gg,isTransientSymbol:()=>ch,isTrivia:()=>sR,isTryStatement:()=>wT,isTupleTypeNode:()=>$I,isTypeAlias:()=>W2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>uae,isTypeDeclaration:()=>SR,isTypeElement:()=>lT,isTypeKeyword:()=>YP,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Jz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>NR,isTypeOnlyExportDeclaration:()=>lre,isTypeOnlyImportDeclaration:()=>e2,isTypeOnlyImportOrExportDeclaration:()=>iE,isTypeOperatorNode:()=>PT,isTypeParameterDeclaration:()=>fl,isTypePredicateNode:()=>Lk,isTypeQueryNode:()=>YI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>gF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>b6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>_re,isUnicodeIdentifierStart:()=>qW,isUnionTypeNode:()=>Hv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>yae,isUnparsedSource:()=>WT,isUnparsedTextLike:()=>are,isUrl:()=>Rne,isValidBigIntString:()=>F6,isValidESSymbolDeclaration:()=>eie,isValidTypeOnlyAliasUseSite:()=>fE,isValueSignatureDeclaration:()=>gie,isVarAwaitUsing:()=>y2,isVarConst:()=>Kx,isVarUsing:()=>v2,isVariableDeclaration:()=>wi,isVariableDeclarationInVariableStatement:()=>fN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>R0,isVariableDeclarationInitializedToRequire:()=>KF,isVariableDeclarationList:()=>Uc,isVariableLike:()=>qx,isVariableLikeOrAccessor:()=>Qre,isVariableStatement:()=>Ml,isVoidExpression:()=>e1,isWatchSet:()=>nSe,isWhileStatement:()=>USe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>mae,isWriteAccess:()=>LI,isWriteOnlyAccess:()=>v6,isYieldExpression:()=>z4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ja,lastOrUndefined:()=>$s,length:()=>Nn,libMap:()=>c3,libs:()=>iw,lineBreakPart:()=>pD,linkNamePart:()=>Ede,linkPart:()=>Qq,linkTextPart:()=>e7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Dse,loadWithModeAwareCache:()=>Mw,makeIdentifierFromModuleName:()=>zre,makeImport:()=>Hy,makeImportIfNecessary:()=>mde,makeStringLiteral:()=>b1,mangleScopedPackageName:()=>qR,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>Kte,mapDefinedIterator:()=>OC,mapEntries:()=>qte,mapIterator:()=>kC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>tb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>lne,matchesExclude:()=>l3,maybeBind:()=>ta,maybeSetLocalizedDiagnosticMessages:()=>soe,memoize:()=>vu,memoizeCached:()=>tne,memoizeOne:()=>oh,memoizeWeak:()=>cEe,metadataHelper:()=>o4,min:()=>jG,minAndMax:()=>Eoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>MI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>Mre,moduleResolutionNameAndModeGetter:()=>sz,moduleResolutionOptionDeclarations:()=>d3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>OI,moduleResolutionUsesNodeModules:()=>qz,moduleSpecifiers:()=>eS,moveEmitHelpers:()=>qoe,moveRangeEnd:()=>g6,moveRangePastDecorators:()=>wg,moveRangePastModifiers:()=>R_,moveRangePos:()=>uE,moveSyntheticComments:()=>Hoe,mutateMap:()=>WN,mutateMapSkippingNewValues:()=>eg,needsParentheses:()=>n7,needsScopeMarker:()=>uF,newCaseClauseTracker:()=>h7,newPrivateEnvironment:()=>tle,noEmitNotification:()=>Tw,noEmitSubstitution:()=>OP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>K6,nodeCanBeDecorated:()=>GF,nodeHasName:()=>XL,nodeIsDecorated:()=>Yx,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>Ks,nodeModuleNameResolver:()=>Sse,nodeModulesPathPart:()=>Eh,nodeNextJsonConfigResolver:()=>Tse,nodeOrChildIsDecorated:()=>I2,nodeOverlapsWithStartEnd:()=>wz,nodePosToString:()=>A0e,nodeSeenTracker:()=>v1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Txe,noop:()=>qa,noopFileWatcher:()=>iD,normalizePath:()=>ma,normalizeSlashes:()=>Pd,not:()=>SW,notImplemented:()=>Ho,notImplementedResolver:()=>Y3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>WP,objectAllocator:()=>sd,operatorPart:()=>ZP,optionDeclarations:()=>og,optionMapToObject:()=>o3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>jR,optionsHaveChanges:()=>Gx,optionsHaveModuleResolutionChanges:()=>Cre,or:()=>jm,orderedRemoveItem:()=>Tx,orderedRemoveItemAt:()=>Ev,outFile:()=>xs,packageIdToPackageName:()=>EF,packageIdToString:()=>Lv,paramHelper:()=>a4,parameterIsThisKeyword:()=>L0,parameterNamePart:()=>gde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Soe,parseBuildCommand:()=>VTe,parseCommandLine:()=>BTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>T1e,parseConfigHostFromCompilerHostLike:()=>az,parseCustomTypeOption:()=>i3,parseIsolatedEntityName:()=>l1,parseIsolatedJSDocComment:()=>Jae,parseJSDocTypeExpressionForTests:()=>RTe,parseJsonConfigFileContent:()=>nAe,parseJsonSourceFileConfigFileContent:()=>tw,parseJsonText:()=>$k,parseListTypeOption:()=>Xae,parseNodeFactory:()=>bh,parseNodeModuleFromPath:()=>uw,parsePackageName:()=>mw,parsePseudoBigInt:()=>UN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Ine,pathContainsNodeModules:()=>TE,pathIsAbsolute:()=>KC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>sne,perfLogger:()=>nu,performIncrementalCompilation:()=>R1e,performance:()=>vne,plainJSErrors:()=>lz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>a7,positionIsSynthesized:()=>Km,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>Yxe,probablyUsesSemicolons:()=>cO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>fde,programContainsModules:()=>pde,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>v4,propertyNamePart:()=>yde,pseudoBigIntToString:()=>W0,punctuationPart:()=>Xd,pushIfUnique:()=>yf,quote:()=>nM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>Jw,rangeContainsPositionExclusive:()=>qw,rangeContainsRange:()=>rf,rangeContainsRangeExclusive:()=>Qce,rangeContainsStartEnd:()=>Xw,rangeEndIsOnSameLineAsRangeStart:()=>nk,rangeEndPositionsAreOnSameLine:()=>qie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>IT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>qP,rangeStartIsOnSameLineAsRangeEnd:()=>Xie,rangeStartPositionsAreOnSameLine:()=>y6,readBuilderProgram:()=>bz,readConfigFile:()=>Zk,readHelper:()=>g4,readJson:()=>LN,readJsonConfigFile:()=>Qae,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>Lne,reduceEachTrailingCommentRange:()=>kne,reduceLeft:()=>tu,reduceLeftIterator:()=>oEe,reducePathComponents:()=>iT,refactor:()=>T1,regExpEscape:()=>cSe,relativeComplement:()=>Xte,removeAllComments:()=>Tk,removeEmitHelper:()=>zSe,removeExtension:()=>lk,removeFileExtension:()=>Eu,removeIgnoredPath:()=>uz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>ode,removePrefix:()=>VC,removeSuffix:()=>Sx,removeTrailingDirectorySeparator:()=>Xb,repeatString:()=>tO,replaceElement:()=>zG,replaceFirstStar:()=>zI,resolutionExtensionIsTSOrJson:()=>GN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>bse,resolveLibrary:()=>E3,resolveModuleName:()=>KR,resolveModuleNameFromCache:()=>zAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>Av,resolveProjectReferencePath:()=>eD,resolveTripleslashReference:()=>ez,resolveTypeReferenceDirective:()=>hse,resolvingEmptyArray:()=>H6,restHelper:()=>f4,returnFalse:()=>Vm,returnNoopFileWatcher:()=>oD,returnTrue:()=>Sy,returnUndefined:()=>Jb,returnsPromise:()=>LX,runInitializersHelper:()=>l4,sameFlatMap:()=>Hte,sameMap:()=>Pc,sameMapping:()=>xIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>Xre,scanner:()=>Yd,screenStartingMessageCodes:()=>vz,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>a3,server:()=>Jke,servicesVersion:()=>ape,setCommentRange:()=>ic,setConfigFileInOptions:()=>VH,setConstantValue:()=>Joe,setEachParent:()=>ER,setEmitFlags:()=>lr,setFunctionNameHelper:()=>b4,setGetSourceFileAsHashVersioned:()=>yz,setIdentifierAutoGenerate:()=>xk,setIdentifierGeneratedImportReference:()=>$oe,setIdentifierTypeArguments:()=>Fy,setInternalEmitFlags:()=>Ak,setLocalizedDiagnosticMessages:()=>aoe,setModuleDefaultHelper:()=>T4,setNodeFlags:()=>Ioe,setObjectAllocator:()=>ooe,setOriginalNode:()=>xr,setParent:()=>ja,setParentRecursive:()=>Bv,setPrivateIdentifier:()=>jT,setSnippetElement:()=>UU,setSourceMapRange:()=>Ra,setStackTraceLimit:()=>NEe,setStartsOnNewLine:()=>t4,setSyntheticLeadingComments:()=>_E,setSyntheticTrailingComments:()=>GI,setSys:()=>wEe,setSysLog:()=>Tne,setTextRange:()=>at,setTextRangeEnd:()=>bR,setTextRangePos:()=>HN,setTextRangePosEnd:()=>fh,setTextRangePosWidth:()=>KN,setTokenSourceMapRange:()=>Uoe,setTypeNode:()=>Xoe,setUILocale:()=>ine,setValueDeclaration:()=>w2,shouldAllowImportingTsExtension:()=>XR,shouldPreserveConstEnums:()=>B0,shouldUseUriStyleNodeCoreModules:()=>m7,showModuleSpecifier:()=>eoe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>qd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>pI,singleIterator:()=>Jte,singleOrMany:()=>rh,singleOrUndefined:()=>nh,skipAlias:()=>vd,skipAssertions:()=>oTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Yl,skipParentheses:()=>fs,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Na,skipTypeChecking:()=>jN,skipTypeParentheses:()=>V2,skipWhile:()=>dne,sliceAfter:()=>dU,some:()=>gt,sort:()=>ZS,sortAndDeduplicate:()=>FC,sortAndDeduplicateDiagnostics:()=>Mx,sourceFileAffectingCompilerOptions:()=>u3,sourceFileMayBeEmitted:()=>ET,sourceMapCommentRegExp:()=>k3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>kl,spanMap:()=>MG,spreadArrayHelper:()=>y4,stableSort:()=>vy,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Oz,startOnNewLine:()=>Jd,startTracing:()=>bne,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>Nae,stringContainsAt:()=>Wde,stringToToken:()=>g0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>gk,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>AR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>TR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>yk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>xde,symbolEscapedNameNoDefault:()=>Yz,symbolName:()=>vl,symbolNameNoDefault:()=>Xz,symbolPart:()=>hde,symbolToDisplayParts:()=>eM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>o7,sys:()=>hd,sysLog:()=>ML,tagNamesAreEquivalent:()=>bE,takeWhile:()=>AW,targetOptionDeclaration:()=>aw,templateObjectHelper:()=>h4,testFormatSettings:()=>Hce,textChangeRangeIsUnchanged:()=>Gne,textChangeRangeNewSpan:()=>QC,textChanges:()=>ur,textOrKeywordPart:()=>$q,textPart:()=>af,textRangeContainsPositionInclusive:()=>KL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Wne,textSpanEnd:()=>Jl,textSpanIntersection:()=>Bne,textSpanIntersectsWith:()=>ZW,textSpanIntersectsWithPosition:()=>zne,textSpanIntersectsWithTextSpan:()=>n0e,textSpanIsEmpty:()=>One,textSpanOverlap:()=>Fne,textSpanOverlapsWith:()=>t0e,textSpansEqual:()=>uD,textToKeywordObj:()=>UL,timestamp:()=>Hs,toArray:()=>dI,toBuilderFileEmit:()=>ice,toBuilderStateFileInfoForMultiEmit:()=>rce,toEditorSettings:()=>DO,toFileNameLowerCase:()=>ih,toLowerCase:()=>ene,toPath:()=>tl,toProgramEmitPending:()=>oce,tokenIsIdentifierOrKeyword:()=>ru,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Pne,tokenToString:()=>da,trace:()=>vo,tracing:()=>rr,tracingEnabled:()=>DL,transform:()=>qDe,transformClassFields:()=>ple,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Rle,transformES2016:()=>xle,transformES2017:()=>hle,transformES2018:()=>gle,transformES2019:()=>yle,transformES2020:()=>vle,transformES2021:()=>ble,transformES5:()=>Dle,transformESDecorators:()=>_le,transformESNext:()=>Ele,transformGenerators:()=>Cle,transformJsx:()=>Ile,transformLegacyDecorators:()=>mle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>Ple,transformNodes:()=>Aw,transformSystemModule:()=>Nle,transformTypeScript:()=>ule,transpile:()=>iRe,transpileModule:()=>nue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Kb,tryAndIgnoreErrors:()=>c7,tryCast:()=>ri,tryDirectoryExists:()=>l7,tryExtractTSExtension:()=>_6,tryFileExists:()=>dO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>s7,tryGetExtensionFromPath:()=>Wg,tryGetImportFromModuleSpecifier:()=>O2,tryGetJSDocSatisfiesTypeNode:()=>V6,tryGetModuleNameFromFile:()=>Uk,tryGetModuleSpecifierFromDeclaration:()=>eR,tryGetNativePerformanceHooks:()=>hne,tryGetPropertyAccessOrIdentifierToString:()=>tk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z4,tryGetSourceMappingURL:()=>Jse,tryGetTextOfPropertyName:()=>pN,tryIOAndConsumeErrors:()=>d7,tryParseJson:()=>h6,tryParsePattern:()=>vR,tryParsePatterns:()=>w6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>EP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>boe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>ane,typeAcquisitionDeclarations:()=>sw,typeAliasNamePart:()=>vde,typeDirectiveIsEqualTo:()=>Lre,typeKeywords:()=>g7,typeParameterNamePart:()=>bde,typeToDisplayParts:()=>oO,unchangedPollThresholds:()=>LL,unchangedTextChangeRange:()=>d2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>hw,unorderedRemoveItem:()=>uI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>coe,unusedLabelIsError:()=>doe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>s3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>UR,updateSharedExtendedConfigFileWatcher:()=>Q3,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Rw,usesExtensionsOnImports:()=>goe,usingSingleLineStringWriter:()=>cN,utf16EncodeAsString:()=>Px,validateLocaleAndSetLanguage:()=>i0e,valuesHelper:()=>E4,version:()=>Jp,versionMajorMinor:()=>g_,visitArray:()=>vw,visitCommaListElements:()=>bw,visitEachChild:()=>Sn,visitFunctionBody:()=>nf,visitIterationBody:()=>Tu,visitLexicalEnvironment:()=>TK,visitNode:()=>$e,visitNodes:()=>zn,visitParameterList:()=>Il,walkUpBindingElementsAndPatterns:()=>Lx,walkUpLexicalEnvironments:()=>ele,walkUpOuterExpressions:()=>Pae,walkUpParenthesizedExpressions:()=>Py,walkUpParenthesizedTypes:()=>G2,walkUpParenthesizedTypesAndGetParentAndChild:()=>yie,whitespaceOrMapCommentRegExp:()=>w3,writeCommentRange:()=>fR,writeFile:()=>xN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var ib=bt({"src/server/_namespaces/ts.ts"(){"use strict";ea(),Gw(),ai(),LQ(),iA()}}),Xke={};xa(Xke,{ActionInvalidate:()=>zw,ActionPackageInstalled:()=>Bw,ActionSet:()=>Fw,ActionWatchTypingLocations:()=>KP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>zB,CommandNames:()=>Lhe,ConfigFileDiagEvent:()=>kB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>FB,CreateFileWatcherEvent:()=>WB,Errors:()=>Yy,EventBeginInstallTypes:()=>xz,EventEndInstallTypes:()=>Rz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Iz,ExternalProject:()=>RB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>LB,LineIndex:()=>bM,LineLeaf:()=>s8,LineNode:()=>k1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>rA,ProjectInfoTelemetryEvent:()=>OB,ProjectKind:()=>yM,ProjectLanguageServiceStateEvent:()=>wB,ProjectLoadingFinishEvent:()=>MB,ProjectLoadingStartEvent:()=>PB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>i8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>jB,Session:()=>whe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>Fhe,allFilesAreJsOrDts:()=>uhe,allRootFilesAreJsOrDts:()=>dhe,asNormalizedPath:()=>Ske,convertCompilerOptions:()=>DB,convertFormatOptions:()=>MD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>mhe,convertUserPreferences:()=>_he,convertWatchOptions:()=>r8,countEachFileTypes:()=>t8,createInstallTypingsRequest:()=>j_e,createModuleSpecifierCache:()=>Ihe,createNormalizedPathMap:()=>Tke,createPackageJsonCache:()=>xhe,createSortedArray:()=>q_e,emptyArray:()=>_c,findArgument:()=>dxe,forEachResolvedProjectReferenceProject:()=>LD,formatDiagnosticToProtocol:()=>a8,formatMessage:()=>Rhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>Phe,hasArgument:()=>cxe,hasNoTypeScriptSource:()=>phe,indent:()=>HP,isBackgroundProject:()=>n8,isConfigFile:()=>Ehe,isConfiguredProject:()=>ME,isDynamicFileName:()=>e8,isExternalProject:()=>jQ,isInferredProject:()=>PD,isInferredProjectName:()=>U_e,makeAutoImportProviderProjectName:()=>K_e,makeAuxiliaryProjectName:()=>J_e,makeInferredProjectName:()=>H_e,maxFileSize:()=>NB,maxProgramSizeForNonTsFiles:()=>CB,normalizedPathToPath:()=>ZO,nowString:()=>uxe,nullCancellationToken:()=>Mhe,nullTypingsInstaller:()=>xB,projectContainsInfoDirectly:()=>M1,protocol:()=>che,removeSorted:()=>Ake,stringifyIndented:()=>xE,toEvent:()=>Dhe,toNormalizedPath:()=>dl,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>G_e,updateProjectIfDirty:()=>zp});var xot=bt({"src/typescript/_namespaces/ts.server.ts"(){"use strict";Dz(),iA()}}),Yke={};xa(Yke,{ANONYMOUS:()=>y7,AccessFlags:()=>I9,AssertionLevel:()=>YG,AssignmentDeclarationKind:()=>k9,AssignmentKind:()=>SU,Associativity:()=>AU,BreakpointResolver:()=>TY,BuilderFileEmit:()=>RJ,BuilderProgramKind:()=>DJ,BuilderState:()=>xm,BundleFileSectionKind:()=>Q9,CallHierarchy:()=>A1,CharacterCodes:()=>H9,CheckFlags:()=>b9,CheckMode:()=>P3,ClassificationType:()=>hq,ClassificationTypeNames:()=>_q,CommentDirectiveType:()=>o9,Comparison:()=>xG,CompletionInfoFlags:()=>lq,CompletionTriggerKind:()=>rq,Completions:()=>C1,ContainerFlags:()=>hK,ContextFlags:()=>u9,Debug:()=>x,DiagnosticCategory:()=>NL,Diagnostics:()=>f,DocumentHighlights:()=>E7,ElementFlags:()=>A9,EmitFlags:()=>GW,EmitHint:()=>X9,EmitOnly:()=>s9,EndOfLineState:()=>uq,EnumKind:()=>v9,ExitStatus:()=>l9,ExportKind:()=>AX,Extension:()=>K9,ExternalEmitHelpers:()=>q9,FileIncludeKind:()=>MW,FilePreprocessingDiagnosticsKind:()=>a9,FileSystemEntryKind:()=>iV,FileWatcherEventKind:()=>rV,FindAllReferences:()=>Ms,FlattenLevel:()=>kK,FlowFlags:()=>CL,ForegroundColorEscapeSequences:()=>vJ,FunctionFlags:()=>TU,GeneratedIdentifierFlags:()=>PW,GetLiteralTextFlags:()=>vU,GoToDefinition:()=>xD,HighlightSpanKind:()=>oq,IdentifierNameMap:()=>f1,IdentifierNameMultiMap:()=>LK,ImportKind:()=>TX,ImportsNotUsedAsValues:()=>B9,IndentStyle:()=>aq,IndexFlags:()=>x9,IndexKind:()=>C9,InferenceFlags:()=>M9,InferencePriority:()=>P9,InlayHintKind:()=>iq,InlayHints:()=>_Q,InternalEmitFlags:()=>J9,InternalSymbolName:()=>E9,InvalidatedProjectKind:()=>XJ,JSDocParsingMode:()=>tV,JsDoc:()=>PE,JsTyping:()=>O_,JsxEmit:()=>z9,JsxFlags:()=>r9,JsxReferenceKind:()=>R9,LanguageServiceMode:()=>eq,LanguageVariant:()=>j9,LexicalEnvironmentFlags:()=>$9,ListFormat:()=>Z9,LogLevel:()=>QG,MemberOverrideStatus:()=>c9,ModifierFlags:()=>CW,ModuleDetectionKind:()=>w9,ModuleInstanceState:()=>_K,ModuleKind:()=>UC,ModuleResolutionKind:()=>Dx,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>oue,NavigationBar:()=>_ue,NewLineKind:()=>G9,NodeBuilderFlags:()=>p9,NodeCheckFlags:()=>S9,NodeFactoryFlags:()=>GU,NodeFlags:()=>DW,NodeResolutionFeatures:()=>pK,ObjectFlags:()=>OW,OperationCanceledException:()=>Rx,OperatorPrecedence:()=>IU,OrganizeImports:()=>Rm,OrganizeImportsMode:()=>nq,OuterExpressionKinds:()=>Y9,OutliningElementsCollector:()=>vQ,OutliningSpanKind:()=>cq,OutputFileType:()=>dq,PackageJsonAutoImportPreference:()=>ZJ,PackageJsonDependencyGroup:()=>QJ,PatternMatchKind:()=>S7,PollingInterval:()=>VW,PollingWatchKind:()=>F9,PragmaKindFlags:()=>eV,PrivateIdentifierKind:()=>qU,ProcessLevel:()=>FK,ProgramUpdateLevel:()=>eJ,QuotePreference:()=>gX,RelationComparisonResult:()=>NW,Rename:()=>vB,ScriptElementKind:()=>fq,ScriptElementKindModifier:()=>mq,ScriptKind:()=>FW,ScriptSnapshot:()=>Nz,ScriptTarget:()=>V9,SemanticClassificationFormat:()=>tq,SemanticMeaning:()=>hX,SemicolonPreference:()=>sq,SignatureCheckMode:()=>M3,SignatureFlags:()=>WW,SignatureHelp:()=>HO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>BW,SortKind:()=>XG,StructureIsReused:()=>LW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>Xy,SymbolDisplayPartKind:()=>Vw,SymbolFlags:()=>kW,SymbolFormatFlags:()=>m9,SyntaxKind:()=>RW,SyntheticSymbolKind:()=>h9,Ternary:()=>L9,ThrottledCancellationToken:()=>SY,TokenClass:()=>pq,TokenFlags:()=>i9,TransformFlags:()=>zW,TypeFacts:()=>N3,TypeFlags:()=>wW,TypeFormatFlags:()=>f9,TypeMapKind:()=>N9,TypePredicateKind:()=>g9,TypeReferenceSerializationKind:()=>y9,UnionReduction:()=>d9,UpToDateStatusType:()=>HJ,VarianceFlags:()=>T9,Version:()=>fm,VersionRange:()=>xL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>kc,accessPrivateIdentifier:()=>nle,addDisposableResourceHelper:()=>C4,addEmitFlags:()=>D_,addEmitHelper:()=>VI,addEmitHelpers:()=>Fg,addInternalEmitFlags:()=>BI,addNodeFactoryPatcher:()=>MSe,addObjectAllocatorPatcher:()=>ioe,addRange:()=>Hr,addRelatedInfo:()=>Pa,addSyntheticLeadingComment:()=>rP,addSyntheticTrailingComment:()=>n4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Ck,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>T3,altDirectorySeparator:()=>FL,and:()=>EW,append:()=>Tn,appendIfUnique:()=>xg,arrayFrom:()=>Wo,arrayIsEqualTo:()=>Gm,arrayIsHomogeneous:()=>Aoe,arrayIsSorted:()=>fW,arrayOf:()=>$te,arrayReverseIterator:()=>wG,arrayToMap:()=>_0,arrayToMultiMap:()=>TL,arrayToNumericMap:()=>Zte,arraysEqual:()=>bL,assertType:()=>pEe,assign:()=>bx,assignHelper:()=>c4,asyncDelegator:()=>u4,asyncGeneratorHelper:()=>d4,asyncSuperHelper:()=>Dk,asyncValues:()=>p4,attachFileToDiagnostics:()=>wI,awaitHelper:()=>jI,awaiterHelper:()=>m4,base64decode:()=>Jie,base64encode:()=>Kie,binarySearch:()=>by,binarySearchKey:()=>lI,bindSourceFile:()=>Pse,breakIntoCharacterSpans:()=>Qde,breakIntoWordSpans:()=>Zde,buildLinkParts:()=>Sde,buildOpts:()=>p3,buildOverload:()=>hke,bundlerModuleNameResolver:()=>Ese,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>GT,canHaveExportModifier:()=>dk,canHaveFlowNode:()=>F2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>wae,canHaveIllegalType:()=>sTe,canHaveIllegalTypeParameters:()=>kae,canHaveJSDoc:()=>z2,canHaveLocals:()=>lh,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>SP,canProduceDiagnostics:()=>H3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>cce,canWatchAtTypes:()=>lce,canWatchDirectoryOrFile:()=>pz,cartesianProduct:()=>cne,cast:()=>na,chainBundle:()=>Im,chainDiagnosticMessages:()=>zo,changeAnyExtension:()=>OL,changeCompilerHostLikeToUseCache:()=>Nw,changeExtension:()=>pE,changeFullExtension:()=>Dne,changesAffectModuleResolution:()=>yF,changesAffectingProgramStructure:()=>Nre,childIsDecorated:()=>_N,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>V3,classOrConstructorParameterIsDecorated:()=>Ny,classPrivateFieldGetHelper:()=>x4,classPrivateFieldInHelper:()=>D4,classPrivateFieldSetHelper:()=>R4,classicNameResolver:()=>Rse,classifier:()=>dpe,cleanExtendedConfigCache:()=>Z3,clear:()=>Gh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>Mz,climbPastPropertyOrElementAccess:()=>Xce,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Hm,closeFileWatcherOf:()=>Rf,codefix:()=>Od,collapseTextChangeRangesAcrossMultipleVersions:()=>Vne,collectExternalModuleInfo:()=>CK,combine:()=>vx,combinePaths:()=>Yr,commentPragmas:()=>PL,commonOptionsWithBuild:()=>ow,commonPackageFolders:()=>DU,compact:()=>SL,compareBooleans:()=>bv,compareDataObjects:()=>Qj,compareDiagnostics:()=>FN,compareDiagnosticsSkipRelatedInformation:()=>T6,compareEmitHelpers:()=>eae,compareNumberOfDirectorySeparators:()=>sk,comparePaths:()=>Rg,comparePathsCaseInsensitive:()=>zEe,comparePathsCaseSensitive:()=>FEe,comparePatternKeys:()=>dK,compareProperties:()=>one,compareStringsCaseInsensitive:()=>vW,compareStringsCaseInsensitiveEslintCompatible:()=>nne,compareStringsCaseSensitive:()=>Vd,compareStringsCaseSensitiveUI:()=>IL,compareTextSpans:()=>yW,compareValues:()=>Zs,compileOnSaveCommandLineOption:()=>rw,compilerOptionsAffectDeclarationPath:()=>moe,compilerOptionsAffectEmit:()=>foe,compilerOptionsAffectSemanticDiagnostics:()=>poe,compilerOptionsDidYouMeanDiagnostics:()=>lw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>dEe,computeCommonSourceDirectoryOfFilenames:()=>Gle,computeLineAndCharacterOfPosition:()=>Nx,computeLineOfPosition:()=>qC,computeLineStarts:()=>hI,computePositionOfLineAndCharacter:()=>XW,computeSignature:()=>JT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>fc,concatenate:()=>Eo,concatenateDiagnosticMessageChains:()=>loe,consumesNodeCoreModules:()=>u7,contains:()=>Bo,containsIgnoredPath:()=>JN,containsObjectRestOrSpread:()=>qk,containsParseError:()=>Vx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>ise,convertCompilerOptionsFromJson:()=>dAe,convertJsonOption:()=>VT,convertToBase64:()=>Hie,convertToJson:()=>ew,convertToObject:()=>Zae,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>JC,convertToTSConfig:()=>YTe,convertTypeAcquisitionFromJson:()=>uAe,copyComments:()=>$T,copyEntries:()=>vF,copyLeadingComments:()=>fD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>lO,copyTrailingComments:()=>tM,couldStartTrivia:()=>Mne,countWhere:()=>yv,createAbstractBuilder:()=>g1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>jae,createAccessorPropertySetRedirector:()=>Uae,createBaseNodeFactory:()=>Foe,createBinaryExpressionTrampoline:()=>e3,createBindingHelper:()=>xR,createBuildInfo:()=>Iw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>ace,createBuilderStatusReporter:()=>Tce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>$3,createClassNamedEvaluationHelperBlock:()=>lle,createClassThisAssignmentBlock:()=>ale,createClassifier:()=>kxe,createCommentDirectivesMap:()=>Ore,createCompilerDiagnostic:()=>jl,createCompilerDiagnosticForInvalidCustomType:()=>qae,createCompilerDiagnosticFromMessageChain:()=>S6,createCompilerHost:()=>Vle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>yR,createDiagnosticCollection:()=>cR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Hx,createDiagnosticForNodeArrayFromMessageChain:()=>g2,createDiagnosticForNodeFromMessageChain:()=>Mg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>qre,createDiagnosticMessageChainFromDiagnostic:()=>Jre,createDiagnosticReporter:()=>ww,createDocumentPositionMapper:()=>Yse,createDocumentRegistry:()=>Gde,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>Zoe,createEmptyExports:()=>Bk,createExpressionForJsxElement:()=>Rae,createExpressionForJsxFragment:()=>Dae,createExpressionForObjectLiteralElementLike:()=>Cae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Gk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>DF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Nd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Gy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Mle,createGetSymbolWalker:()=>Mse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>Ece,createInputFiles:()=>kSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>ipe,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>BT,createModeAwareCache:()=>u1,createModeAwareCacheKey:()=>RP,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>HR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>fce,createModuleSpecifierResolutionHost:()=>YT,createMultiMap:()=>qp,createNodeConverters:()=>Boe,createNodeFactory:()=>bk,createOptionNameMap:()=>r3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>iM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>zoe,createPatternMatcher:()=>Kde,createPrependNodes:()=>gJ,createPrinter:()=>AE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>rS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xw,createProgram:()=>iz,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>B6,createQueue:()=>AL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>fle,createScanner:()=>xy,createSemanticDiagnosticsBuilderProgram:()=>h1e,createSet:()=>VG,createSolutionBuilder:()=>L1e,createSolutionBuilderHost:()=>P1e,createSolutionBuilderWithWatch:()=>k1e,createSolutionBuilderWithWatchHost:()=>M1e,createSortedArray:()=>kG,createSourceFile:()=>Yk,createSourceMapGenerator:()=>Kse,createSourceMapSource:()=>wSe,createSuperAccessVariableStatement:()=>U3,createSymbolTable:()=>aa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Ane,createTextChange:()=>Zw,createTextChangeFromStartLength:()=>Kz,createTextChangeRange:()=>qL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Hz,createTextSpan:()=>gd,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Iu,createTextSpanFromRange:()=>eb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>$2,createTokenRange:()=>Xj,createTypeChecker:()=>Bse,createTypeReferenceDirectiveResolutionCache:()=>b3,createTypeReferenceResolutionLoader:()=>tz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>D1e,createWatchCompilerHostOfConfigFile:()=>yce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>vce,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>C1e,createWatchStatusReporter:()=>mce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>Ts,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>JL,decorateHelper:()=>i4,deduplicate:()=>m0,defaultIncludeSpec:()=>_3,defaultInitCompilerOptions:()=>f3,defaultMaximumTruncationLength:()=>mk,detectSortCaseSensitivity:()=>zC,diagnosticCategoryName:()=>rT,diagnosticToString:()=>ZT,directoryProbablyExists:()=>Um,directorySeparator:()=>nl,displayPart:()=>ep,displayPartsToString:()=>CO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>N4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>Ene,elementAt:()=>Ay,elideNodes:()=>Vae,emitComments:()=>kie,emitDetachedComments:()=>wie,emitFiles:()=>q3,emitFilesAndReportErrors:()=>hz,emitFilesAndReportErrorsAndGetExitStatus:()=>gce,emitModuleKindIsNonNodeESM:()=>A6,emitNewLineBeforeLeadingCommentOfPosition:()=>Lie,emitNewLineBeforeLeadingComments:()=>Pie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mie,emitSkippedWithNoDiagnostics:()=>cz,emitUsingBuildInfo:()=>Wle,emptyArray:()=>Xe,emptyFileSystemEntries:()=>Q6,emptyMap:()=>IW,emptyOptions:()=>Cf,emptySet:()=>une,endsWith:()=>El,ensurePathIsNonModuleName:()=>h0,ensureScriptKind:()=>L6,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>TW,equalOwnProperties:()=>Qte,equateStringsCaseInsensitive:()=>qb,equateStringsCaseSensitive:()=>eT,equateValues:()=>Ty,esDecorateHelper:()=>s4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>pl,escapeNonAsciiString:()=>Y2,escapeSnippetText:()=>z0,escapeString:()=>Qh,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>q4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>oR,exportStarHelper:()=>I4,expressionResultIsUnused:()=>xoe,extend:()=>gW,extendsHelper:()=>_4,extensionFromPath:()=>VN,extensionIsTS:()=>O6,extensionsNotSupportingExtensionlessResolution:()=>vk,externalHelpersModuleNameText:()=>Gv,factory:()=>L,fileExtensionIs:()=>Sl,fileExtensionIsOneOf:()=>bc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>jr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>oz,find:()=>Vr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>_s,findComputedPropertyNameCacheAssignment:()=>t3,findConfigFile:()=>Ble,findContainingList:()=>Wz,findDiagnosticForNode:()=>Lde,findFirstNonJsxWhitespaceToken:()=>ede,findIndex:()=>Kl,findLast:()=>sI,findLastIndex:()=>pW,findListItemInfo:()=>Zce,findMap:()=>aEe,findModifier:()=>dD,findNextToken:()=>aS,findPackageJson:()=>Pde,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>jz,findPrecedingToken:()=>Tc,findSuperStatementIndexPath:()=>z3,findTokenOnLeftOfPosition:()=>Bz,findUseStrictPrologue:()=>vH,first:()=>Va,firstDefined:()=>Wl,firstDefinedIterator:()=>vL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>mW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>wC,flatten:()=>pm,flattenCommaList:()=>Hae,flattenDestructuringAssignment:()=>UT,flattenDestructuringBinding:()=>nS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>Pre,forEachAncestorDirectory:()=>hm,forEachChild:()=>Go,forEachChildRecursively:()=>bP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Ure,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>$F,forEachKey:()=>dh,forEachLeadingCommentRange:()=>VL,forEachNameInAccessChainWalkingLeft:()=>noe,forEachPropertyAssignment:()=>Xx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>I0,forEachRight:()=>jte,forEachTrailingCommentRange:()=>jL,forEachTsConfigPropArray:()=>E2,forEachUnique:()=>qq,forEachYieldExpression:()=>Yre,forSomeAncestorDirectory:()=>rSe,formatColorAndReset:()=>iS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>$Ie,formatDiagnosticsWithColorAndContext:()=>jle,formatGeneratedName:()=>vE,formatGeneratedNamePart:()=>BR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>tg,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>HC,generateTSConfig:()=>tAe,generatorHelper:()=>S4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>zz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>AT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>G3,getAllJSDocTags:()=>rF,getAllJSDocTagsOfKind:()=>m0e,getAllKeys:()=>lEe,getAllProjectOutputs:()=>J3,getAllSuperTypeNodes:()=>bN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>Vv,getAllowSyntheticDefaultImports:()=>RT,getAncestor:()=>dE,getAnyExtensionFromPath:()=>Cx,getAreDeclarationMapsEnabled:()=>hk,getAssignedExpandoInitializer:()=>AI,getAssignedName:()=>tF,getAssignedNameOfIdentifier:()=>kP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>L2,getAssignmentTargetKind:()=>DI,getAutomaticTypeDirectiveNames:()=>y3,getBaseFileName:()=>nc,getBinaryOperatorPrecedence:()=>X2,getBuildInfo:()=>X3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>Ole,getBuildOrderFromAnyBuildOrder:()=>Ez,getBuilderCreationParameters:()=>dz,getBuilderFileEmit:()=>Zv,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>N0,getClassLikeDeclarationOfSymbol:()=>Og,getCombinedLocalAndExportSymbolFlags:()=>_R,getCombinedModifierFlags:()=>Zb,getCombinedNodeFlags:()=>Ry,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>GP,getCommonSourceDirectoryOfConfig:()=>$R,getCompilerOptionValue:()=>x6,getCompilerOptionsDiffValue:()=>ZTe,getConditions:()=>$v,getConfigFileParsingDiagnostics:()=>KT,getConstantValue:()=>Koe,getContainerFlags:()=>mK,getContainerNode:()=>XT,getContainingClass:()=>ad,getContainingClassExcludingClassDecorators:()=>WF,getContainingClassStaticBlock:()=>oie,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>iie,getContainingFunctionOrClassStaticBlock:()=>OF,getContainingNodeArray:()=>Roe,getContainingObjectLiteralElement:()=>NO,getContextualTypeFromParent:()=>r7,getContextualTypeFromParentOrAncestorTypeNode:()=>Fz,getCurrentTime:()=>Ww,getDeclarationDiagnostics:()=>Lle,getDeclarationEmitExtensionForPath:()=>a6,getDeclarationEmitOutputFilePath:()=>xie,getDeclarationEmitOutputFilePathWorker:()=>o6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>vN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>cl,getDeclarationsOfKind:()=>Dre,getDeclaredExpandoInitializer:()=>C2,getDecorators:()=>xv,getDefaultCompilerOptions:()=>H7,getDefaultExportInfoWorker:()=>b7,getDefaultFormatCodeSettings:()=>Cz,getDefaultLibFileName:()=>HL,getDefaultLibFilePath:()=>ope,getDefaultLikeExportInfo:()=>v7,getDiagnosticText:()=>jTe,getDiagnosticsWithinSpan:()=>kde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>uce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>mh,getEditsForFileRename:()=>jde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>wx,getEffectiveContainerForJSDocTemplateTag:()=>QF,getEffectiveImplementsTypeNodes:()=>aR,getEffectiveInitializer:()=>D2,getEffectiveJSDocHost:()=>cE,getEffectiveModifierFlags:()=>lu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zie,getEffectiveModifierFlagsNoCache:()=>Bie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>Nie,getEffectiveTypeAnnotationNode:()=>yd,getEffectiveTypeParameterDeclarations:()=>Rv,getEffectiveTypeRoots:()=>xP,getElementOrPropertyAccessArgumentExpressionOrName:()=>YF,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>zR,getEmitDeclarations:()=>Af,getEmitFlags:()=>za,getEmitHelpers:()=>r4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>Ld,getEmitModuleResolutionKind:()=>du,getEmitScriptTarget:()=>ns,getEmitStandardClassFields:()=>uoe,getEnclosingBlockScopeContainer:()=>uh,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>f2,getEntityNameFromTypeNode:()=>A2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>mz,getErrorSpanForNode:()=>fT,getErrorSummaryText:()=>_ce,getEscapedTextOfIdentifierOrLiteral:()=>TN,getEscapedTextOfJsxAttributeName:()=>$N,getEscapedTextOfJsxNamespacedName:()=>FI,getExpandoInitializer:()=>sE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>fO,getExportNeedsImportStarHelper:()=>$se,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>IN,getExternalHelpersModuleName:()=>jk,getExternalModuleImportEqualsDeclarationExpression:()=>hN,getExternalModuleName:()=>tR,getExternalModuleNameFromDeclaration:()=>Aie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>s1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Cw,getFileEmitOutput:()=>Yle,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>TP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>_z,getFirstConstructorWithBody:()=>Zh,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Ide,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>_7,getFullWidth:()=>u2,getFunctionFlags:()=>Vc,getHeritageClause:()=>H2,getHostSignatureFromJSDoc:()=>lE,getIdentifierAutoGenerate:()=>BSe,getIdentifierGeneratedImportReference:()=>Qoe,getIdentifierTypeArguments:()=>DT,getImmediatelyInvokedFunctionExpression:()=>_T,getImpliedNodeFormatForFile:()=>Lw,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>W3,getIndentSize:()=>uR,getIndentString:()=>r6,getInferredLibraryNameResolveFrom:()=>rz,getInitializedVariables:()=>wN,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Hk,getInterfaceBaseTypeNodes:()=>EN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>BF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>$ne,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>ire,getJSDocEnumTag:()=>bV,getJSDocHost:()=>vT,getJSDocImplementsTags:()=>Qne,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>rre,getJSDocParameterTags:()=>kx,getJSDocParameterTagsNoCache:()=>Jne,getJSDocPrivateTag:()=>c0e,getJSDocPrivateTagNoCache:()=>ere,getJSDocProtectedTag:()=>d0e,getJSDocProtectedTagNoCache:()=>tre,getJSDocPublicTag:()=>l0e,getJSDocPublicTagNoCache:()=>Zne,getJSDocReadonlyTag:()=>u0e,getJSDocReadonlyTagNoCache:()=>nre,getJSDocReturnTag:()=>ore,getJSDocReturnType:()=>YL,getJSDocRoot:()=>iR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>rE,getJSDocTagsNoCache:()=>f0e,getJSDocTemplateTag:()=>p0e,getJSDocThisTag:()=>nF,getJSDocType:()=>nE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Y4,getJSDocTypeParameterDeclarations:()=>d6,getJSDocTypeParameterTags:()=>qne,getJSDocTypeParameterTagsNoCache:()=>Xne,getJSDocTypeTag:()=>tE,getJSXImplicitImportBase:()=>D6,getJSXRuntimeImport:()=>C6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>ik,getLastChild:()=>Zj,getLeadingCommentRanges:()=>jh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>hR,getLeftmostExpression:()=>gR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>hs,getLineInfo:()=>AK,getLineOfLocalPosition:()=>RN,getLineOfLocalPositionFromLineMap:()=>ST,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Dg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qie,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ie,getLinesBetweenPositions:()=>XC,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>tSe,getLiteralText:()=>Wre,getLocalNameForExternalImport:()=>FR,getLocalSymbolForExportDefault:()=>mR,getLocaleSpecificMessage:()=>wo,getLocaleTimeString:()=>Ow,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>Zz,getMappedLocation:()=>QP,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>jw,getMeaningFromLocation:()=>qT,getMembersOfDeclaration:()=>$re,getModeForFileReference:()=>Pw,getModeForResolutionAtIndex:()=>Ule,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>fI,getModifiers:()=>y0,getModuleInstanceState:()=>Vg,getModuleNameStringLiteralAt:()=>kw,getModuleSpecifierEndingPreference:()=>yoe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>p7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Hre,getNameFromPropertyName:()=>nO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>Po,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>Kne,getNameOrArgument:()=>M2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>wde,getNamespaceDeclarationNode:()=>nR,getNewLineCharacter:()=>wy,getNewLineKind:()=>pO,getNewLineOrDefaultFromHost:()=>Ky,getNewTargetContainer:()=>sie,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>Jk,getNodeId:()=>rs,getNodeKind:()=>oS,getNodeModifiers:()=>XP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>eF,getNonAssignmentOperatorForCompoundAssignment:()=>PP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>ho,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>wL,getObjectFlags:()=>Lr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>q2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>VR,getOrCreateEmitNode:()=>kd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Lae,getOrUpdate:()=>WC,getOriginalNode:()=>Nl,getOriginalNodeId:()=>wd,getOriginalSourceFile:()=>H0e,getOutputDeclarationFileName:()=>BP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>K3,getOutputFileNames:()=>XIe,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>zP,getOutputPathsForBundle:()=>FP,getOwnEmitOutputFilePath:()=>Iie,getOwnKeys:()=>Vh,getOwnValues:()=>cI,getPackageJsonInfo:()=>Q0,getPackageJsonTypesVersionsPaths:()=>g3,getPackageJsonsVisibleToFile:()=>Mde,getPackageNameFromTypesPackageName:()=>DP,getPackageScopeForPath:()=>fw,getParameterSymbolFromJSDoc:()=>B2,getParameterTypeNode:()=>pSe,getParentNodeInSpan:()=>iO,getParseTreeNode:()=>Do,getParsedCommandLineOfConfigFile:()=>Qk,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Tv,getPathUpdater:()=>CX,getPathsBasePath:()=>s6,getPatternFromSpec:()=>_oe,getPendingEmitKind:()=>nD,getPositionOfLineAndCharacter:()=>BL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Rie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>YIe,getPrecedingNonSpaceCharacterPosition:()=>t7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>_W,getPropertyArrayElementValue:()=>rie,getPropertyAssignmentAliasLikeExpression:()=>bie,getPropertyNameForPropertyNameNode:()=>bT,getPropertyNameForUniqueESSymbol:()=>j0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>Qz,getPropertySymbolsFromContextualType:()=>J7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>of,getRangesWhere:()=>LG,getRefactorContextSpan:()=>E1,getReferencedFileLocation:()=>VP,getRegexFromPattern:()=>zv,getRegularExpressionForWildcard:()=>zN,getRegularExpressionsForWildcards:()=>N6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>WL,getRelativePathToDirectoryOrUrl:()=>_I,getRenameLocation:()=>sO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>QR,getResolveJsonModule:()=>mE,getResolvePackageJsonExports:()=>X6,getResolvePackageJsonImports:()=>Y6,getResolvedExternalModuleName:()=>i6,getRestIndicatorOfBindingOrAssignmentElement:()=>Q4,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>N2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>pce,getRootLength:()=>sh,getRootPathSplitLength:()=>E1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>k6,getScriptTargetFeatures:()=>J6,getSelectedEffectiveModifierFlags:()=>PI,getSelectedSyntacticModifierFlags:()=>Wie,getSemanticClassifications:()=>zde,getSemanticJsxChildren:()=>lR,getSetAccessorTypeAnnotationNode:()=>Die,getSetAccessorValueParameter:()=>DN,getSetExternalModuleIndicator:()=>ok,getShebang:()=>$W,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>RI,getSnapshotText:()=>cD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>SF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>l6,getSourceFilePathInNewDirWorker:()=>c6,getSourceFileVersionAsHashFromText:()=>gz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>Wy,getSourceMapper:()=>tue,getSourceTextOfNodeFromSourceFile:()=>S0,getSpanOfTokenAtPosition:()=>ph,getSpellingSuggestion:()=>GC,getStartPositionOfLine:()=>kv,getStartPositionOfRange:()=>kN,getStartsOnNewLine:()=>nP,getStaticPropertiesAndClassStaticBlock:()=>B3,getStrictOptionValue:()=>cu,getStringComparer:()=>Ex,getSubPatternFromSpec:()=>P6,getSuperCallFromStatement:()=>F3,getSuperContainer:()=>S2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>BN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>ak,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>K2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>Bde,getSyntacticModifierFlags:()=>Wv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>ol,getSynthesizedDeepCloneWithReplacements:()=>aO,getSynthesizedDeepClones:()=>sS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>IR,getSyntheticTrailingComments:()=>Ik,getTargetLabel:()=>Lz,getTargetOfBindingOrAssignmentElement:()=>Yv,getTemporaryModuleResolutionState:()=>pw,getTextOfConstantValue:()=>Fre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>QL,getTextOfJsxAttributeName:()=>fk,getTextOfJsxNamespacedName:()=>QN,getTextOfNode:()=>uc,getTextOfNodeFromSourceText:()=>dN,getTextOfPropertyName:()=>Ux,getThisContainer:()=>Lu,getThisParameter:()=>M0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>oE,getTokenSourceMapRange:()=>FSe,getTouchingPropertyName:()=>Wu,getTouchingToken:()=>lD,getTrailingCommentRanges:()=>Yb,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Goe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>Vy,getTsConfigObjectLiteralExpression:()=>mN,getTsConfigPropArrayElementValue:()=>wF,getTypeAnnotationNode:()=>Cie,getTypeArgumentOrTypeParameterList:()=>lde,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>Yoe,getTypeNodeIfAccessible:()=>rM,getTypeParameterFromJsDoc:()=>mie,getTypeParameterOwner:()=>r0e,getTypesPackageName:()=>A3,getUILocale:()=>rne,getUniqueName:()=>QT,getUniqueSymbolId:()=>Ade,getUseDefineForClassFields:()=>tP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>BC,groupBy:()=>hW,guessIndentation:()=>xre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>w0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>Yw,hasContextSensitiveParameters:()=>z6,hasDecorators:()=>bf,hasDocComment:()=>ade,hasDynamicName:()=>Ov,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>u6,hasEffectiveReadonlyModifier:()=>CN,hasExtension:()=>mI,hasIndexSignature:()=>iX,hasInitializer:()=>Mv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>Yne,hasJSFileExtension:()=>O0,hasJsonModuleEmitEnabled:()=>I6,hasOnlyExpressionInitializer:()=>dT,hasOverrideModifier:()=>p6,hasPossibleExternalModuleReference:()=>jre,hasProperty:()=>Ss,hasPropertyAccessExpressionWithName:()=>Hw,hasQuestionToken:()=>xI,hasRecordedExternalHelpers:()=>Mae,hasResolutionModeOverride:()=>Moe,hasRestParameter:()=>FV,hasScopeMarker:()=>yre,hasStaticModifier:()=>pc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>Oie,hasTSFileExtension:()=>WI,hasTabstop:()=>Coe,hasTrailingDirectorySeparator:()=>Iy,hasType:()=>hF,hasTypeArguments:()=>F0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>pR,idText:()=>gr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>eE,identity:()=>Qs,identitySourceMapConsumer:()=>O3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>kL,importDefaultHelper:()=>A4,importFromModuleSpecifier:()=>yN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Rk,indexOfAnyCharCode:()=>Ute,indexOfNode:()=>jx,indicesOf:()=>EL,inferredTypesContainingFile:()=>tD,injectClassNamedEvaluationHelperBlockIfMissing:()=>j3,injectClassThisAssignmentIfMissing:()=>sle,insertImports:()=>$P,insertLeadingStatement:()=>rTe,insertSorted:()=>vv,insertStatementAfterCustomPrologue:()=>uT,insertStatementAfterStandardPrologue:()=>D0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>Jh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>tie,inverseJsxOptionMap:()=>AP,isAbstractConstructorSymbol:()=>Zie,isAbstractModifier:()=>aae,isAccessExpression:()=>Ns,isAccessibilityModifier:()=>kq,isAccessor:()=>Cv,isAccessorModifier:()=>lae,isAliasSymbolDeclaration:()=>B0e,isAliasableExpression:()=>U2,isAmbientModule:()=>Md,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>AN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Vre,isAnyImportOrReExport:()=>_2,isAnyImportSyntax:()=>pT,isAnySupportedFileExtension:()=>uSe,isApplicableVersionedTypesKey:()=>_w,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>To,isArrayBindingElement:()=>dF,isArrayBindingOrAssignmentElement:()=>o2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>V0,isArrayLiteralExpression:()=>uu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Uy,isArrayTypeNode:()=>kk,isArrowFunction:()=>Os,isAsExpression:()=>Ok,isAssertClause:()=>_ae,isAssertEntry:()=>XSe,isAssertionExpression:()=>cT,isAssertsKeyword:()=>iae,isAssignmentDeclaration:()=>gN,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>Ly,isAssignmentPattern:()=>sN,isAssignmentTarget:()=>$h,isAsteriskToken:()=>Nk,isAsyncFunction:()=>SN,isAsyncModifier:()=>oP,isAutoAccessorPropertyDeclaration:()=>Mu,isAwaitExpression:()=>Jv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>P4,isBinaryExpression:()=>dr,isBinaryOperatorToken:()=>Gae,isBindableObjectDefinePropertyCall:()=>gT,isBindableStaticAccessExpression:()=>D0,isBindableStaticElementAccessExpression:()=>XF,isBindableStaticNameExpression:()=>yT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>die,isBindingName:()=>sT,isBindingOrAssignmentElement:()=>pre,isBindingOrAssignmentPattern:()=>r2,isBindingPattern:()=>Qo,isBlock:()=>Ko,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Gre,isBooleanLiteral:()=>aN,isBreakOrContinueStatement:()=>nN,isBreakStatement:()=>KSe,isBuildInfoFile:()=>wle,isBuilderProgram:()=>hce,isBundle:()=>aH,isBundleFileTextLike:()=>toe,isCallChain:()=>oT,isCallExpression:()=>ia,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>E0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>iP,isCaseBlock:()=>pP,isCaseClause:()=>MR,isCaseKeyword:()=>cae,isCaseOrDefaultClause:()=>mF,isCatchClause:()=>X0,isCatchClauseVariableDeclaration:()=>Doe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>ck,isChildOfNodeWithKind:()=>N0e,isCircularBuildOrder:()=>h1,isClassDeclaration:()=>Sc,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>dre,isClassLike:()=>ci,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>_1,isClassOrTypeElement:()=>cF,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>LP,isCollapsedRange:()=>eSe,isColonToken:()=>nae,isCommaExpression:()=>Vk,isCommaListExpression:()=>cP,isCommaSequence:()=>gP,isCommaToken:()=>tae,isComment:()=>Uz,isCommonJsExportPropertyAssignment:()=>LF,isCommonJsExportedExpression:()=>Zre,isCompoundAssignment:()=>NP,isComputedNonLiteralName:()=>h2,isComputedPropertyName:()=>Ya,isConciseBody:()=>pF,isConditionalExpression:()=>PR,isConditionalTypeNode:()=>ZI,isConstTypeReference:()=>Ng,isConstructSignatureDeclaration:()=>Mk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>RR,isContextualKeyword:()=>e6,isContinueStatement:()=>HSe,isCustomPrologue:()=>b2,isDebuggerStatement:()=>JSe,isDeclaration:()=>Hd,isDeclarationBindingElement:()=>n2,isDeclarationFileName:()=>Ed,isDeclarationName:()=>kg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>CF,isDeclarationStatement:()=>Sre,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>bd,isDecoratorTarget:()=>Jce,isDefaultClause:()=>mP,isDefaultImport:()=>II,isDefaultModifier:()=>w4,isDefaultedExpandoInitializer:()=>uie,isDeleteExpression:()=>pae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>f7,isDestructuringAssignment:()=>ky,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>jSe,isDocumentRegistryEntry:()=>mO,isDotDotDotToken:()=>L4,isDottedName:()=>PN,isDynamicName:()=>n6,isESSymbolIdentifier:()=>U0e,isEffectiveExternalModule:()=>TI,isEffectiveModuleDeclaration:()=>Bre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>Js,isEmittedFileOfProgram:()=>zle,isEmptyArrayLiteral:()=>Uie,isEmptyBindingElement:()=>Une,isEmptyBindingPattern:()=>jne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Bl,isEnumConst:()=>A0,isEnumDeclaration:()=>hE,isEnumMember:()=>Y0,isEqualityOperatorKind:()=>i7,isEqualsGreaterThanToken:()=>rae,isExclamationToken:()=>Pk,isExcludedFile:()=>tse,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>j6,isExportAssignment:()=>Ll,isExportDeclaration:()=>Xl,isExportModifier:()=>JI,isExportName:()=>X4,isExportNamespaceAsDefaultDeclaration:()=>IF,isExportOrDefaultModifier:()=>Kk,isExportSpecifier:()=>Kd,isExportsIdentifier:()=>hT,isExportsOrModuleExportsOrAlias:()=>Z0,isExpression:()=>ht,isExpressionNode:()=>Xh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>$ce,isExpressionOfOptionalChainRoot:()=>aF,isExpressionStatement:()=>ed,isExpressionWithTypeArguments:()=>zy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>f6,isExternalModule:()=>oc,isExternalModuleAugmentation:()=>T0,isExternalModuleImportEqualsDeclaration:()=>aE,isExternalModuleIndicator:()=>a2,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>vh,isExternalModuleSymbol:()=>eO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>t2,isFileLevelUniqueName:()=>TF,isFileProbablyExternalModule:()=>Xk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Fx,isForInStatement:()=>G4,isForInitializer:()=>vf,isForOfStatement:()=>Wk,isForStatement:()=>kT,isFunctionBlock:()=>x0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Ec,isFunctionExpression:()=>Ps,isFunctionExpressionOrArrowFunction:()=>F0,isFunctionLike:()=>$o,isFunctionLikeDeclaration:()=>ws,isFunctionLikeKind:()=>vI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Wx,isFunctionOrConstructorTypeNode:()=>ure,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>fie,isFunctionTypeNode:()=>hh,isFutureReservedKeyword:()=>G0e,isGeneratedIdentifier:()=>rl,isGeneratedPrivateIdentifier:()=>aT,isGetAccessor:()=>Pv,isGetAccessorDeclaration:()=>Qp,isGetOrSetAccessorDeclaration:()=>iF,isGlobalDeclaration:()=>Cxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>wre,isHeritageClause:()=>Zp,isHoistedFunction:()=>PF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>vie,isIdentifierOrThisTypeNode:()=>Wae,isIdentifierPart:()=>$b,isIdentifierStart:()=>Uh,isIdentifierText:()=>Yp,isIdentifierTypePredicate:()=>nie,isIdentifierTypeReference:()=>Toe,isIfStatement:()=>LT,isIgnoredFileFromWildCardWatching:()=>Dw,isImplicitGlob:()=>sU,isImportAttribute:()=>hae,isImportAttributeName:()=>cre,isImportAttributes:()=>n1,isImportCall:()=>Op,isImportClause:()=>gh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>td,isImportKeyword:()=>sP,isImportMeta:()=>Jx,isImportOrExportSpecifier:()=>yI,isImportOrExportSpecifierName:()=>Tde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>qSe,isImportTypeNode:()=>rg,isImportableFile:()=>EX,isInComment:()=>jy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>VF,isInJSDoc:()=>x2,isInJSFile:()=>ir,isInJSXText:()=>ide,isInJsonFile:()=>UF,isInNonReferenceComment:()=>ude,isInReferenceComment:()=>dde,isInRightSideOfInternalImportEqualsDeclaration:()=>Pz,isInString:()=>y1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>FF,isInTypeQuery:()=>TT,isIncrementalCompilation:()=>eP,isIndexSignatureDeclaration:()=>G0,isIndexedAccessTypeNode:()=>MT,isInferTypeNode:()=>CT,isInfinityOrNaNString:()=>qN,isInitializedProperty:()=>Ew,isInitializedVariable:()=>rk,isInsideJsxElement:()=>Vz,isInsideJsxElementOrAttribute:()=>rde,isInsideNodeModules:()=>uO,isInsideTemplateLiteral:()=>Qw,isInstanceOfExpression:()=>m6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>pu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>Qx,isInternalName:()=>yH,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>dR,isIterationStatement:()=>Nv,isJSDoc:()=>Xm,isJSDocAllType:()=>Eae,isJSDocAugmentsTag:()=>a1,isJSDocAuthorTag:()=>ZSe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>Tae,isJSDocCommentContainingNode:()=>_F,isJSDocConstructSignature:()=>rR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>zk,isJSDocFunctionType:()=>kR,isJSDocImplementsTag:()=>K4,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>RH,isJSDocLink:()=>vae,isJSDocLinkCode:()=>bae,isJSDocLinkLike:()=>SI,isJSDocLinkPlain:()=>$Se,isJSDocMemberName:()=>gE,isJSDocNameReference:()=>_P,isJSDocNamepathType:()=>QSe,isJSDocNamespaceBody:()=>S0e,isJSDocNode:()=>zx,isJSDocNonNullableType:()=>V4,isJSDocNullableType:()=>LR,isJSDocOptionalParameter:()=>pk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>wR,isJSDocOverrideTag:()=>U4,isJSDocParameterTag:()=>Ym,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>rN,isJSDocPropertyTag:()=>Aae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>H4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>J4,isJSDocSeeTag:()=>eTe,isJSDocSignature:()=>yE,isJSDocTag:()=>Bx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>nTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>WR,isJSDocTypeExpression:()=>$0,isJSDocTypeLiteral:()=>FT,isJSDocTypeTag:()=>hP,isJSDocTypedefTag:()=>zT,isJSDocUnknownTag:()=>tTe,isJSDocUnknownType:()=>Sae,isJSDocVariadicType:()=>j4,isJSXTagName:()=>$x,isJsonEqual:()=>W6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>fF,isJsxAttributeName:()=>Poe,isJsxAttributes:()=>q0,isJsxChild:()=>c2,isJsxClosingElement:()=>K0,isJsxClosingFragment:()=>gae,isJsxElement:()=>ig,isJsxExpression:()=>fP,isJsxFragment:()=>J0,isJsxNamespacedName:()=>qm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>i1,isJsxOpeningLikeElement:()=>au,isJsxOpeningLikeElementTagName:()=>qce,isJsxSelfClosingElement:()=>OT,isJsxSpreadAttribute:()=>o1,isJsxTagNameExpression:()=>lN,isJsxText:()=>UI,isJumpStatementTarget:()=>Kw,isKeyword:()=>wu,isKeywordOrPunctuation:()=>ZF,isKnownSymbol:()=>J2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>H0,isLateVisibilityPaintedStatement:()=>RF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>Z0e,isLet:()=>NF,isLineBreak:()=>jd,isLiteralComputedPropertyDeclarationName:()=>j2,isLiteralExpression:()=>b0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>wv,isLiteralKind:()=>iN,isLiteralLikeAccess:()=>qF,isLiteralLikeElementAccess:()=>P2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>kz,isLiteralTypeLikeExpression:()=>lTe,isLiteralTypeLiteral:()=>hre,isLiteralTypeNode:()=>Kv,isLocalName:()=>Bg,isLogicalOperator:()=>Gie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>NN,isLogicalOrCoalescingBinaryExpression:()=>Z2,isLogicalOrCoalescingBinaryOperator:()=>Q2,isMappedTypeNode:()=>CR,isMemberName:()=>Hh,isMetaProperty:()=>lP,isMethodDeclaration:()=>Ul,isMethodOrAccessor:()=>bI,isMethodSignature:()=>_h,isMinusToken:()=>QU,isMissingDeclaration:()=>YSe,isMissingPackageJsonInfo:()=>yse,isModifier:()=>Sa,isModifierKind:()=>Dy,isModifierLike:()=>il,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>vre,isModuleDeclaration:()=>ql,isModuleExportsAccessExpression:()=>Yh,isModuleIdentifier:()=>mj,isModuleName:()=>Bae,isModuleOrEnumDeclaration:()=>s2,isModuleReference:()=>Are,isModuleSpecifierLike:()=>$z,isModuleWithStringLiteralName:()=>xF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>g0e,isNamedDeclaration:()=>iu,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>zg,isNamedImportsOrExports:()=>E6,isNamedTupleMember:()=>DR,isNamespaceBody:()=>E0e,isNamespaceExport:()=>yh,isNamespaceExportDeclaration:()=>Fk,isNamespaceImport:()=>Xv,isNamespaceReexportDeclaration:()=>cie,isNewExpression:()=>j0,isNewExpressionTarget:()=>JP,isNoSubstitutionTemplateLiteral:()=>HI,isNode:()=>_0e,isNodeArray:()=>v0,isNodeArrayMultiLine:()=>Yie,isNodeDescendantOf:()=>C0,isNodeKind:()=>ZL,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>KW,isNodeWithPossibleHoistedDeclaration:()=>hie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>dTe,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>Fde,isNonNullAccess:()=>Noe,isNonNullChain:()=>sF,isNonNullExpression:()=>t1,isNonStaticMethodOrAccessorWithPrivateName:()=>Qse,isNotEmittedOrPartiallyEmittedNode:()=>b0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Ey,isNumericLiteral:()=>mp,isNumericLiteralName:()=>ng,isObjectBindingElementWithoutPropertyName:()=>rO,isObjectBindingOrAssignmentElement:()=>i2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Pg,isObjectLiteralExpression:()=>Ma,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>kF,isObjectTypeDeclaration:()=>kI,isOctalDigit:()=>YW,isOmittedExpression:()=>jc,isOptionalChain:()=>Ud,isOptionalChainRoot:()=>eN,isOptionalDeclaration:()=>YN,isOptionalJSDocPropertyLikeTag:()=>uk,isOptionalTypeNode:()=>O4,isOuterExpression:()=>$4,isOutermostOptionalChain:()=>tN,isOverrideModifier:()=>sae,isPackageJsonInfo:()=>v3,isPackedArrayLiteral:()=>mU,isParameter:()=>Ao,isParameterDeclaration:()=>P0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>oN,isParenthesizedExpression:()=>Ou,isParenthesizedTypeNode:()=>NT,isParseTreeNode:()=>ZC,isPartOfTypeNode:()=>qh,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>B4,isPatternMatch:()=>bW,isPinnedComment:()=>AF,isPlainJsFile:()=>p2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>$w,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>qv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>ou,isPrivateIdentifierPropertyAccessExpression:()=>Ox,isPrivateIdentifierSymbol:()=>Eie,isProgramBundleEmitBuildInfo:()=>tce,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>oF,isPropertyAccessEntityNameExpression:()=>ek,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>mre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>fre,isPropertyAssignment:()=>mc,isPropertyDeclaration:()=>Uo,isPropertyName:()=>rc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Sie,isPrototypeAccess:()=>Fv,isPrototypePropertyAssignment:()=>k2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Su,isQuestionDotToken:()=>k4,isQuestionOrExclamationToken:()=>Oae,isQuestionOrPlusOrMinusToken:()=>zae,isQuestionToken:()=>Uv,isRawSourceMap:()=>qse,isReadonlyKeyword:()=>oae,isReadonlyKeywordOrPlusOrMinusToken:()=>Fae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>ZR,isReferencedFile:()=>IE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>bu,isRequireVariableStatement:()=>pj,isRestParameter:()=>Kh,isRestTypeNode:()=>W4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>T7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>jie,isRightSideOfPropertyAccess:()=>aD,isRightSideOfQualifiedName:()=>Yce,isRightSideOfQualifiedNameOrPropertyAccess:()=>MN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vie,isRootedDiskPath:()=>cp,isSameEntityName:()=>Zx,isSatisfiesExpression:()=>nH,isScopeMarker:()=>gre,isSemicolonClassElement:()=>fae,isSetAccessor:()=>Cy,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>uN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>t6,isSimpleCopiableExpression:()=>tS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>rle,isSimpleParameterList:()=>Sw,isSingleOrDoubleQuote:()=>R2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>mD,isSourceFileJS:()=>su,isSourceFileNotJS:()=>L0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>Xse,isSpecialPropertyDeclaration:()=>pie,isSpreadAssignment:()=>By,isSpreadElement:()=>Jm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>l2,isStatementOrBlock:()=>Tre,isStatementWithLocals:()=>kre,isStatic:()=>ra,isStaticModifier:()=>qI,isString:()=>No,isStringAKeyword:()=>V0e,isStringANonContextualKeyword:()=>CI,isStringAndEmptyAnonymousObjectIntersection:()=>cde,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>Da,isStringLiteralLike:()=>as,isStringLiteralOrJsxExpression:()=>Ire,isStringLiteralOrTemplate:()=>Cde,isStringOrNumericLiteralLike:()=>$p,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>mT,isSuperKeyword:()=>aP,isSuperOrSuperProperty:()=>M0e,isSuperProperty:()=>ku,isSupportedSourceFileName:()=>voe,isSwitchStatement:()=>uP,isSyntaxList:()=>OR,isSyntheticExpression:()=>VSe,isSyntheticReference:()=>r1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>U0,isTaggedTemplateTag:()=>Kce,isTemplateExpression:()=>F4,isTemplateHead:()=>KI,isTemplateLiteral:()=>EI,isTemplateLiteralKind:()=>Dv,isTemplateLiteralToken:()=>sre,isTemplateLiteralTypeNode:()=>dae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>lF,isTemplateSpan:()=>dP,isTemplateTail:()=>M4,isTextWhiteSpaceLike:()=>_de,isThis:()=>sD,isThisContainerOrFunctionBlock:()=>aie,isThisIdentifier:()=>k0,isThisInTypeQuery:()=>NI,isThisInitializedDeclaration:()=>zF,isThisInitializedObjectBindingExpression:()=>lie,isThisProperty:()=>T2,isThisTypeNode:()=>wk,isThisTypeParameter:()=>XN,isThisTypePredicate:()=>P0e,isThrowStatement:()=>iH,isToken:()=>gI,isTokenKind:()=>xV,isTraceEnabled:()=>Gg,isTransientSymbol:()=>ch,isTrivia:()=>sR,isTryStatement:()=>wT,isTupleTypeNode:()=>$I,isTypeAlias:()=>W2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>uae,isTypeDeclaration:()=>SR,isTypeElement:()=>lT,isTypeKeyword:()=>YP,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Jz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>NR,isTypeOnlyExportDeclaration:()=>lre,isTypeOnlyImportDeclaration:()=>e2,isTypeOnlyImportOrExportDeclaration:()=>iE,isTypeOperatorNode:()=>PT,isTypeParameterDeclaration:()=>fl,isTypePredicateNode:()=>Lk,isTypeQueryNode:()=>YI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>gF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>b6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>_re,isUnicodeIdentifierStart:()=>qW,isUnionTypeNode:()=>Hv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>yae,isUnparsedSource:()=>WT,isUnparsedTextLike:()=>are,isUrl:()=>Rne,isValidBigIntString:()=>F6,isValidESSymbolDeclaration:()=>eie,isValidTypeOnlyAliasUseSite:()=>fE,isValueSignatureDeclaration:()=>gie,isVarAwaitUsing:()=>y2,isVarConst:()=>Kx,isVarUsing:()=>v2,isVariableDeclaration:()=>wi,isVariableDeclarationInVariableStatement:()=>fN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>R0,isVariableDeclarationInitializedToRequire:()=>KF,isVariableDeclarationList:()=>Uc,isVariableLike:()=>qx,isVariableLikeOrAccessor:()=>Qre,isVariableStatement:()=>Ml,isVoidExpression:()=>e1,isWatchSet:()=>nSe,isWhileStatement:()=>USe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>mae,isWriteAccess:()=>LI,isWriteOnlyAccess:()=>v6,isYieldExpression:()=>z4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ja,lastOrUndefined:()=>$s,length:()=>Nn,libMap:()=>c3,libs:()=>iw,lineBreakPart:()=>pD,linkNamePart:()=>Ede,linkPart:()=>Qq,linkTextPart:()=>e7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Dse,loadWithModeAwareCache:()=>Mw,makeIdentifierFromModuleName:()=>zre,makeImport:()=>Hy,makeImportIfNecessary:()=>mde,makeStringLiteral:()=>b1,mangleScopedPackageName:()=>qR,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>Kte,mapDefinedIterator:()=>OC,mapEntries:()=>qte,mapIterator:()=>kC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>tb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>lne,matchesExclude:()=>l3,maybeBind:()=>ta,maybeSetLocalizedDiagnosticMessages:()=>soe,memoize:()=>vu,memoizeCached:()=>tne,memoizeOne:()=>oh,memoizeWeak:()=>cEe,metadataHelper:()=>o4,min:()=>jG,minAndMax:()=>Eoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>MI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>Mre,moduleResolutionNameAndModeGetter:()=>sz,moduleResolutionOptionDeclarations:()=>d3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>OI,moduleResolutionUsesNodeModules:()=>qz,moduleSpecifiers:()=>eS,moveEmitHelpers:()=>qoe,moveRangeEnd:()=>g6,moveRangePastDecorators:()=>wg,moveRangePastModifiers:()=>R_,moveRangePos:()=>uE,moveSyntheticComments:()=>Hoe,mutateMap:()=>WN,mutateMapSkippingNewValues:()=>eg,needsParentheses:()=>n7,needsScopeMarker:()=>uF,newCaseClauseTracker:()=>h7,newPrivateEnvironment:()=>tle,noEmitNotification:()=>Tw,noEmitSubstitution:()=>OP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>K6,nodeCanBeDecorated:()=>GF,nodeHasName:()=>XL,nodeIsDecorated:()=>Yx,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>Ks,nodeModuleNameResolver:()=>Sse,nodeModulesPathPart:()=>Eh,nodeNextJsonConfigResolver:()=>Tse,nodeOrChildIsDecorated:()=>I2,nodeOverlapsWithStartEnd:()=>wz,nodePosToString:()=>A0e,nodeSeenTracker:()=>v1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Txe,noop:()=>qa,noopFileWatcher:()=>iD,normalizePath:()=>ma,normalizeSlashes:()=>Pd,not:()=>SW,notImplemented:()=>Ho,notImplementedResolver:()=>Y3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>WP,objectAllocator:()=>sd,operatorPart:()=>ZP,optionDeclarations:()=>og,optionMapToObject:()=>o3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>jR,optionsHaveChanges:()=>Gx,optionsHaveModuleResolutionChanges:()=>Cre,or:()=>jm,orderedRemoveItem:()=>Tx,orderedRemoveItemAt:()=>Ev,outFile:()=>xs,packageIdToPackageName:()=>EF,packageIdToString:()=>Lv,paramHelper:()=>a4,parameterIsThisKeyword:()=>L0,parameterNamePart:()=>gde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Soe,parseBuildCommand:()=>VTe,parseCommandLine:()=>BTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>T1e,parseConfigHostFromCompilerHostLike:()=>az,parseCustomTypeOption:()=>i3,parseIsolatedEntityName:()=>l1,parseIsolatedJSDocComment:()=>Jae,parseJSDocTypeExpressionForTests:()=>RTe,parseJsonConfigFileContent:()=>nAe,parseJsonSourceFileConfigFileContent:()=>tw,parseJsonText:()=>$k,parseListTypeOption:()=>Xae,parseNodeFactory:()=>bh,parseNodeModuleFromPath:()=>uw,parsePackageName:()=>mw,parsePseudoBigInt:()=>UN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Ine,pathContainsNodeModules:()=>TE,pathIsAbsolute:()=>KC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>sne,perfLogger:()=>nu,performIncrementalCompilation:()=>R1e,performance:()=>vne,plainJSErrors:()=>lz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>a7,positionIsSynthesized:()=>Km,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>Yxe,probablyUsesSemicolons:()=>cO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>fde,programContainsModules:()=>pde,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>v4,propertyNamePart:()=>yde,pseudoBigIntToString:()=>W0,punctuationPart:()=>Xd,pushIfUnique:()=>yf,quote:()=>nM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>Jw,rangeContainsPositionExclusive:()=>qw,rangeContainsRange:()=>rf,rangeContainsRangeExclusive:()=>Qce,rangeContainsStartEnd:()=>Xw,rangeEndIsOnSameLineAsRangeStart:()=>nk,rangeEndPositionsAreOnSameLine:()=>qie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>IT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>qP,rangeStartIsOnSameLineAsRangeEnd:()=>Xie,rangeStartPositionsAreOnSameLine:()=>y6,readBuilderProgram:()=>bz,readConfigFile:()=>Zk,readHelper:()=>g4,readJson:()=>LN,readJsonConfigFile:()=>Qae,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>Lne,reduceEachTrailingCommentRange:()=>kne,reduceLeft:()=>tu,reduceLeftIterator:()=>oEe,reducePathComponents:()=>iT,refactor:()=>T1,regExpEscape:()=>cSe,relativeComplement:()=>Xte,removeAllComments:()=>Tk,removeEmitHelper:()=>zSe,removeExtension:()=>lk,removeFileExtension:()=>Eu,removeIgnoredPath:()=>uz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>ode,removePrefix:()=>VC,removeSuffix:()=>Sx,removeTrailingDirectorySeparator:()=>Xb,repeatString:()=>tO,replaceElement:()=>zG,replaceFirstStar:()=>zI,resolutionExtensionIsTSOrJson:()=>GN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>bse,resolveLibrary:()=>E3,resolveModuleName:()=>KR,resolveModuleNameFromCache:()=>zAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>Av,resolveProjectReferencePath:()=>eD,resolveTripleslashReference:()=>ez,resolveTypeReferenceDirective:()=>hse,resolvingEmptyArray:()=>H6,restHelper:()=>f4,returnFalse:()=>Vm,returnNoopFileWatcher:()=>oD,returnTrue:()=>Sy,returnUndefined:()=>Jb,returnsPromise:()=>LX,runInitializersHelper:()=>l4,sameFlatMap:()=>Hte,sameMap:()=>Pc,sameMapping:()=>xIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>Xre,scanner:()=>Yd,screenStartingMessageCodes:()=>vz,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>a3,server:()=>Xke,servicesVersion:()=>ape,setCommentRange:()=>ic,setConfigFileInOptions:()=>VH,setConstantValue:()=>Joe,setEachParent:()=>ER,setEmitFlags:()=>lr,setFunctionNameHelper:()=>b4,setGetSourceFileAsHashVersioned:()=>yz,setIdentifierAutoGenerate:()=>xk,setIdentifierGeneratedImportReference:()=>$oe,setIdentifierTypeArguments:()=>Fy,setInternalEmitFlags:()=>Ak,setLocalizedDiagnosticMessages:()=>aoe,setModuleDefaultHelper:()=>T4,setNodeFlags:()=>Ioe,setObjectAllocator:()=>ooe,setOriginalNode:()=>xr,setParent:()=>ja,setParentRecursive:()=>Bv,setPrivateIdentifier:()=>jT,setSnippetElement:()=>UU,setSourceMapRange:()=>Ra,setStackTraceLimit:()=>NEe,setStartsOnNewLine:()=>t4,setSyntheticLeadingComments:()=>_E,setSyntheticTrailingComments:()=>GI,setSys:()=>wEe,setSysLog:()=>Tne,setTextRange:()=>at,setTextRangeEnd:()=>bR,setTextRangePos:()=>HN,setTextRangePosEnd:()=>fh,setTextRangePosWidth:()=>KN,setTokenSourceMapRange:()=>Uoe,setTypeNode:()=>Xoe,setUILocale:()=>ine,setValueDeclaration:()=>w2,shouldAllowImportingTsExtension:()=>XR,shouldPreserveConstEnums:()=>B0,shouldUseUriStyleNodeCoreModules:()=>m7,showModuleSpecifier:()=>eoe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>qd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>pI,singleIterator:()=>Jte,singleOrMany:()=>rh,singleOrUndefined:()=>nh,skipAlias:()=>vd,skipAssertions:()=>oTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Yl,skipParentheses:()=>fs,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Na,skipTypeChecking:()=>jN,skipTypeParentheses:()=>V2,skipWhile:()=>dne,sliceAfter:()=>dU,some:()=>gt,sort:()=>ZS,sortAndDeduplicate:()=>FC,sortAndDeduplicateDiagnostics:()=>Mx,sourceFileAffectingCompilerOptions:()=>u3,sourceFileMayBeEmitted:()=>ET,sourceMapCommentRegExp:()=>k3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>kl,spanMap:()=>MG,spreadArrayHelper:()=>y4,stableSort:()=>vy,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Oz,startOnNewLine:()=>Jd,startTracing:()=>bne,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>Nae,stringContainsAt:()=>Wde,stringToToken:()=>g0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>gk,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>AR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>TR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>yk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>xde,symbolEscapedNameNoDefault:()=>Yz,symbolName:()=>vl,symbolNameNoDefault:()=>Xz,symbolPart:()=>hde,symbolToDisplayParts:()=>eM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>o7,sys:()=>hd,sysLog:()=>ML,tagNamesAreEquivalent:()=>bE,takeWhile:()=>AW,targetOptionDeclaration:()=>aw,templateObjectHelper:()=>h4,testFormatSettings:()=>Hce,textChangeRangeIsUnchanged:()=>Gne,textChangeRangeNewSpan:()=>QC,textChanges:()=>ur,textOrKeywordPart:()=>$q,textPart:()=>af,textRangeContainsPositionInclusive:()=>KL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Wne,textSpanEnd:()=>Jl,textSpanIntersection:()=>Bne,textSpanIntersectsWith:()=>ZW,textSpanIntersectsWithPosition:()=>zne,textSpanIntersectsWithTextSpan:()=>n0e,textSpanIsEmpty:()=>One,textSpanOverlap:()=>Fne,textSpanOverlapsWith:()=>t0e,textSpansEqual:()=>uD,textToKeywordObj:()=>UL,timestamp:()=>Hs,toArray:()=>dI,toBuilderFileEmit:()=>ice,toBuilderStateFileInfoForMultiEmit:()=>rce,toEditorSettings:()=>DO,toFileNameLowerCase:()=>ih,toLowerCase:()=>ene,toPath:()=>tl,toProgramEmitPending:()=>oce,tokenIsIdentifierOrKeyword:()=>ru,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Pne,tokenToString:()=>da,trace:()=>vo,tracing:()=>rr,tracingEnabled:()=>DL,transform:()=>qDe,transformClassFields:()=>ple,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Rle,transformES2016:()=>xle,transformES2017:()=>hle,transformES2018:()=>gle,transformES2019:()=>yle,transformES2020:()=>vle,transformES2021:()=>ble,transformES5:()=>Dle,transformESDecorators:()=>_le,transformESNext:()=>Ele,transformGenerators:()=>Cle,transformJsx:()=>Ile,transformLegacyDecorators:()=>mle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>Ple,transformNodes:()=>Aw,transformSystemModule:()=>Nle,transformTypeScript:()=>ule,transpile:()=>iRe,transpileModule:()=>nue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Kb,tryAndIgnoreErrors:()=>c7,tryCast:()=>ri,tryDirectoryExists:()=>l7,tryExtractTSExtension:()=>_6,tryFileExists:()=>dO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>s7,tryGetExtensionFromPath:()=>Wg,tryGetImportFromModuleSpecifier:()=>O2,tryGetJSDocSatisfiesTypeNode:()=>V6,tryGetModuleNameFromFile:()=>Uk,tryGetModuleSpecifierFromDeclaration:()=>eR,tryGetNativePerformanceHooks:()=>hne,tryGetPropertyAccessOrIdentifierToString:()=>tk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z4,tryGetSourceMappingURL:()=>Jse,tryGetTextOfPropertyName:()=>pN,tryIOAndConsumeErrors:()=>d7,tryParseJson:()=>h6,tryParsePattern:()=>vR,tryParsePatterns:()=>w6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>EP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>boe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>ane,typeAcquisitionDeclarations:()=>sw,typeAliasNamePart:()=>vde,typeDirectiveIsEqualTo:()=>Lre,typeKeywords:()=>g7,typeParameterNamePart:()=>bde,typeToDisplayParts:()=>oO,unchangedPollThresholds:()=>LL,unchangedTextChangeRange:()=>d2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>hw,unorderedRemoveItem:()=>uI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>coe,unusedLabelIsError:()=>doe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>s3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>UR,updateSharedExtendedConfigFileWatcher:()=>Q3,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Rw,usesExtensionsOnImports:()=>goe,usingSingleLineStringWriter:()=>cN,utf16EncodeAsString:()=>Px,validateLocaleAndSetLanguage:()=>i0e,valuesHelper:()=>E4,version:()=>Jp,versionMajorMinor:()=>g_,visitArray:()=>vw,visitCommaListElements:()=>bw,visitEachChild:()=>Sn,visitFunctionBody:()=>nf,visitIterationBody:()=>Tu,visitLexicalEnvironment:()=>TK,visitNode:()=>$e,visitNodes:()=>zn,visitParameterList:()=>Il,walkUpBindingElementsAndPatterns:()=>Lx,walkUpLexicalEnvironments:()=>ele,walkUpOuterExpressions:()=>Pae,walkUpParenthesizedExpressions:()=>Py,walkUpParenthesizedTypes:()=>G2,walkUpParenthesizedTypesAndGetParentAndChild:()=>yie,whitespaceOrMapCommentRegExp:()=>w3,writeCommentRange:()=>fR,writeFile:()=>xN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var $ke=bt({"src/typescript/_namespaces/ts.ts"(){"use strict";ea(),Gw(),ai(),ib(),xot()}}),Rot=Cs({"src/typescript/typescript.ts"(e,t){$ke(),$ke(),typeof console<"u"&&(x.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=Yke}});return Rot()})();typeof ti<"u"&&ti.exports&&(ti.exports=Dr);var jo=Dr.createClassifier,_o=Dr.createLanguageService,Fa=Dr.displayPartsToString,Us=Dr.EndOfLineState,yl=Dr.flattenDiagnosticMessageText,Fc=Dr.IndentStyle,Nc=Dr.ScriptKind,$S=Dr.ScriptTarget,yx=Dr.TokenClass,Cl=Dr,Bi={};Bi["lib.d.ts"]=`/*! ***************************************************************************** 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 License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// /// /// /// /// `,Bi["lib.decorators.d.ts"]=`/*! ***************************************************************************** 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 License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// /** * The decorator context types provided to class element decorators. */ type ClassMemberDecoratorContext = | ClassMethodDecoratorContext | ClassGetterDecoratorContext | ClassSetterDecoratorContext | ClassFieldDecoratorContext | ClassAccessorDecoratorContext; /** * The decorator context types provided to any decorator. */ type DecoratorContext = | ClassDecoratorContext | ClassMemberDecoratorContext; type DecoratorMetadataObject = Record & object; type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; /** * Context provided to a class decorator. * @template Class The type of the decorated class associated with this context. */ interface ClassDecoratorContext< Class extends abstract new (...args: any) => any = abstract new (...args: any) => any, > { /** The kind of element that was decorated. */ readonly kind: "class"; /** The name of the decorated class. */ readonly name: string | undefined; /** * Adds a callback to be invoked after the class definition has been finalized. * * @example * \`\`\`ts * function customElement(name: string): ClassDecoratorFunction { * return (target, context) => { * context.addInitializer(function () { * customElements.define(name, this); * }); * } * } * * @customElement("my-element") * class MyElement {} * \`\`\` */ addInitializer(initializer: (this: Class) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class method decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class method. */ interface ClassMethodDecoratorContext< This = unknown, Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any, > { /** The kind of class element that was decorated. */ readonly kind: "method"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the current value of the method from the provided object. * * @example * let fn = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). * * @example * \`\`\`ts * const bound: ClassMethodDecoratorFunction = (value, context) { * if (context.private) throw new TypeError("Not supported on private methods."); * context.addInitializer(function () { * this[context.name] = this[context.name].bind(this); * }); * } * * class C { * message = "Hello"; * * @bound * m() { * console.log(this.message); * } * } * \`\`\` */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class getter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The property type of the decorated class getter. */ interface ClassGetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "getter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class setter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class setter. */ interface ClassSetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "setter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class \`accessor\` field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of decorated class field. */ interface ClassAccessorDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "accessor"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Describes the target provided to class \`accessor\` field decorators. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorTarget { /** * Invokes the getter that was defined prior to decorator application. * * @example * let value = target.get.call(instance); */ get(this: This): Value; /** * Invokes the setter that was defined prior to decorator application. * * @example * target.set.call(instance, value); */ set(this: This, value: Value): void; } /** * Describes the allowed return value from a class \`accessor\` field decorator. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorResult { /** * An optional replacement getter function. If not provided, the existing getter function is used instead. */ get?(this: This): Value; /** * An optional replacement setter function. If not provided, the existing setter function is used instead. */ set?(this: This, value: Value): void; /** * An optional initializer mutator that is invoked when the underlying field initializer is evaluated. * @param value The incoming initializer value. * @returns The replacement initializer value. */ init?(this: This, value: Value): Value; } /** * Context provided to a class field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class field. */ interface ClassFieldDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "field"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the value of the field on the provided object. */ get(object: This): Value; /** * Sets the value of the field on the provided object. */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } `,Bi["lib.decorators.legacy.d.ts"]=`/*! ***************************************************************************** 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 License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// declare type ClassDecorator = (target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; `,Bi["lib.dom.asynciterable.d.ts"]=`/*! ***************************************************************************** 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 License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// ///////////////////////////// /// Window Async Iterable APIs ///////////////////////////// interface FileSystemDirectoryHandle { [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; entries(): AsyncIterableIterator<[string, FileSystemHandle]>; keys(): AsyncIterableIterator; values(): AsyncIterableIterator; } `,Bi["lib.dom.d.ts"]=`/*! ***************************************************************************** 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 License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// ///////////////////////////// /// Window APIs ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; signal?: AbortSignal; } interface AesCbcParams extends Algorithm { iv: BufferSource; } interface AesCtrParams extends Algorithm { counter: BufferSource; length: number; } interface AesDerivedKeyParams extends Algorithm { length: number; } interface AesGcmParams extends Algorithm { additionalData?: BufferSource; iv: BufferSource; tagLength?: number; } interface AesKeyAlgorithm extends KeyAlgorithm { length: number; } interface AesKeyGenParams extends Algorithm { length: number; } interface Algorithm { name: string; } interface AnalyserOptions extends AudioNodeOptions { fftSize?: number; maxDecibels?: number; minDecibels?: number; smoothingTimeConstant?: number; } interface AnimationEventInit extends EventInit { animationName?: string; elapsedTime?: number; pseudoElement?: string; } interface AnimationPlaybackEventInit extends EventInit { currentTime?: CSSNumberish | null; timelineTime?: CSSNumberish | null; } interface AssignedNodesOptions { flatten?: boolean; } interface AudioBufferOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface AudioBufferSourceOptions { buffer?: AudioBuffer | null; detune?: number; loop?: boolean; loopEnd?: number; loopStart?: number; playbackRate?: number; } interface AudioConfiguration { bitrate?: number; channels?: string; contentType: string; samplerate?: number; spatialRendering?: boolean; } interface AudioContextOptions { latencyHint?: AudioContextLatencyCategory | number; sampleRate?: number; } interface AudioNodeOptions { channelCount?: number; channelCountMode?: ChannelCountMode; channelInterpretation?: ChannelInterpretation; } interface AudioProcessingEventInit extends EventInit { inputBuffer: AudioBuffer; outputBuffer: AudioBuffer; playbackTime: number; } interface AudioTimestamp { contextTime?: number; performanceTime?: DOMHighResTimeStamp; } interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfInputs?: number; numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record; processorOptions?: any; } interface AuthenticationExtensionsClientInputs { appid?: string; credProps?: boolean; hmacCreateSecret?: boolean; minPinLength?: boolean; } interface AuthenticationExtensionsClientOutputs { appid?: boolean; credProps?: CredentialPropertiesOutput; hmacCreateSecret?: boolean; } interface AuthenticatorSelectionCriteria { authenticatorAttachment?: AuthenticatorAttachment; requireResidentKey?: boolean; residentKey?: ResidentKeyRequirement; userVerification?: UserVerificationRequirement; } interface AvcEncoderConfig { format?: AvcBitstreamFormat; } interface BiquadFilterOptions extends AudioNodeOptions { Q?: number; detune?: number; frequency?: number; gain?: number; type?: BiquadFilterType; } interface BlobEventInit { data: Blob; timecode?: DOMHighResTimeStamp; } interface BlobPropertyBag { endings?: EndingType; type?: string; } interface CSSMatrixComponentOptions { is2D?: boolean; } interface CSSNumericType { angle?: number; flex?: number; frequency?: number; length?: number; percent?: number; percentHint?: CSSNumericBaseType; resolution?: number; time?: number; } interface CSSStyleSheetInit { baseURL?: string; disabled?: boolean; media?: MediaList | string; } interface CacheQueryOptions { ignoreMethod?: boolean; ignoreSearch?: boolean; ignoreVary?: boolean; } interface CanvasRenderingContext2DSettings { alpha?: boolean; colorSpace?: PredefinedColorSpace; desynchronized?: boolean; willReadFrequently?: boolean; } interface ChannelMergerOptions extends AudioNodeOptions { numberOfInputs?: number; } interface ChannelSplitterOptions extends AudioNodeOptions { numberOfOutputs?: number; } interface CheckVisibilityOptions { checkOpacity?: boolean; checkVisibilityCSS?: boolean; } interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; } interface ClipboardEventInit extends EventInit { clipboardData?: DataTransfer | null; } interface ClipboardItemOptions { presentationStyle?: PresentationStyle; } interface CloseEventInit extends EventInit { code?: number; reason?: string; wasClean?: boolean; } interface CompositionEventInit extends UIEventInit { data?: string; } interface ComputedEffectTiming extends EffectTiming { activeDuration?: CSSNumberish; currentIteration?: number | null; endTime?: CSSNumberish; localTime?: CSSNumberish | null; progress?: number | null; startTime?: CSSNumberish; } interface ComputedKeyframe { composite: CompositeOperationOrAuto; computedOffset: number; easing: string; offset: number | null; [property: string]: string | number | null | undefined; } interface ConstantSourceOptions { offset?: number; } interface ConstrainBooleanParameters { exact?: boolean; ideal?: boolean; } interface ConstrainDOMStringParameters { exact?: string | string[]; ideal?: string | string[]; } interface ConstrainDoubleRange extends DoubleRange { exact?: number; ideal?: number; } interface ConstrainULongRange extends ULongRange { exact?: number; ideal?: number; } interface ConvolverOptions extends AudioNodeOptions { buffer?: AudioBuffer | null; disableNormalization?: boolean; } interface CredentialCreationOptions { publicKey?: PublicKeyCredentialCreationOptions; signal?: AbortSignal; } interface CredentialPropertiesOutput { rk?: boolean; } interface CredentialRequestOptions { mediation?: CredentialMediationRequirement; publicKey?: PublicKeyCredentialRequestOptions; signal?: AbortSignal; } interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; } interface CustomEventInit extends EventInit { detail?: T; } interface DOMMatrix2DInit { a?: number; b?: number; c?: number; d?: number; e?: number; f?: number; m11?: number; m12?: number; m21?: number; m22?: number; m41?: number; m42?: number; } interface DOMMatrixInit extends DOMMatrix2DInit { is2D?: boolean; m13?: number; m14?: number; m23?: number; m24?: number; m31?: number; m32?: number; m33?: number; m34?: number; m43?: number; m44?: number; } interface DOMPointInit { w?: number; x?: number; y?: number; z?: number; } interface DOMQuadInit { p1?: DOMPointInit; p2?: DOMPointInit; p3?: DOMPointInit; p4?: DOMPointInit; } interface DOMRectInit { height?: number; width?: number; x?: number; y?: number; } interface DelayOptions extends AudioNodeOptions { delayTime?: number; maxDelayTime?: number; } interface DeviceMotionEventAccelerationInit { x?: number | null; y?: number | null; z?: number | null; } interface DeviceMotionEventInit extends EventInit { acceleration?: DeviceMotionEventAccelerationInit; accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; interval?: number; rotationRate?: DeviceMotionEventRotationRateInit; } interface DeviceMotionEventRotationRateInit { alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DeviceOrientationEventInit extends EventInit { absolute?: boolean; alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DisplayMediaStreamOptions { audio?: boolean | MediaTrackConstraints; video?: boolean | MediaTrackConstraints; } interface DocumentTimelineOptions { originTime?: DOMHighResTimeStamp; } interface DoubleRange { max?: number; min?: number; } interface DragEventInit extends MouseEventInit { dataTransfer?: DataTransfer | null; } interface DynamicsCompressorOptions extends AudioNodeOptions { attack?: number; knee?: number; ratio?: number; release?: number; threshold?: number; } interface EcKeyAlgorithm extends KeyAlgorithm { namedCurve: NamedCurve; } interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } interface EcKeyImportParams extends Algorithm { namedCurve: NamedCurve; } interface EcdhKeyDeriveParams extends Algorithm { public: CryptoKey; } interface EcdsaParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface EffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | CSSNumericValue | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface ElementCreationOptions { is?: string; } interface ElementDefinitionOptions { extends?: string; } interface EncodedVideoChunkInit { data: AllowSharedBufferSource; duration?: number; timestamp: number; type: EncodedVideoChunkType; } interface EncodedVideoChunkMetadata { decoderConfig?: VideoDecoderConfig; } interface ErrorEventInit extends EventInit { colno?: number; error?: any; filename?: string; lineno?: number; message?: string; } interface EventInit { bubbles?: boolean; cancelable?: boolean; composed?: boolean; } interface EventListenerOptions { capture?: boolean; } interface EventModifierInit extends UIEventInit { altKey?: boolean; ctrlKey?: boolean; metaKey?: boolean; modifierAltGraph?: boolean; modifierCapsLock?: boolean; modifierFn?: boolean; modifierFnLock?: boolean; modifierHyper?: boolean; modifierNumLock?: boolean; modifierScrollLock?: boolean; modifierSuper?: boolean; modifierSymbol?: boolean; modifierSymbolLock?: boolean; shiftKey?: boolean; } interface EventSourceInit { withCredentials?: boolean; } interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } interface FileSystemCreateWritableOptions { keepExistingData?: boolean; } interface FileSystemFlags { create?: boolean; exclusive?: boolean; } interface FileSystemGetDirectoryOptions { create?: boolean; } interface FileSystemGetFileOptions { create?: boolean; } interface FileSystemRemoveOptions { recursive?: boolean; } interface FocusEventInit extends UIEventInit { relatedTarget?: EventTarget | null; } interface FocusOptions { preventScroll?: boolean; } interface FontFaceDescriptors { ascentOverride?: string; descentOverride?: string; display?: FontDisplay; featureSettings?: string; lineGapOverride?: string; stretch?: string; style?: string; unicodeRange?: string; weight?: string; } interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } interface FormDataEventInit extends EventInit { formData: FormData; } interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } interface GainOptions extends AudioNodeOptions { gain?: number; } interface GamepadEffectParameters { duration?: number; startDelay?: number; strongMagnitude?: number; weakMagnitude?: number; } interface GamepadEventInit extends EventInit { gamepad: Gamepad; } interface GetAnimationsOptions { subtree?: boolean; } interface GetNotificationOptions { tag?: string; } interface GetRootNodeOptions { composed?: boolean; } interface HashChangeEventInit extends EventInit { newURL?: string; oldURL?: string; } interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; salt: BufferSource; } interface HmacImportParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface HmacKeyAlgorithm extends KeyAlgorithm { hash: KeyAlgorithm; length: number; } interface HmacKeyGenParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface IDBDatabaseInfo { name?: string; version?: number; } interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; } interface IDBObjectStoreParameters { autoIncrement?: boolean; keyPath?: string | string[] | null; } interface IDBTransactionOptions { durability?: IDBTransactionDurability; } interface IDBVersionChangeEventInit extends EventInit { newVersion?: number | null; oldVersion?: number; } interface IIRFilterOptions extends AudioNodeOptions { feedback: number[]; feedforward: number[]; } interface IdleRequestOptions { timeout?: number; } interface ImageBitmapOptions { colorSpaceConversion?: ColorSpaceConversion; imageOrientation?: ImageOrientation; premultiplyAlpha?: PremultiplyAlpha; resizeHeight?: number; resizeQuality?: ResizeQuality; resizeWidth?: number; } interface ImageBitmapRenderingContextSettings { alpha?: boolean; } interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportMeta { url: string; } interface InputEventInit extends UIEventInit { data?: string | null; dataTransfer?: DataTransfer | null; inputType?: string; isComposing?: boolean; targetRanges?: StaticRange[]; } interface IntersectionObserverEntryInit { boundingClientRect: DOMRectInit; intersectionRatio: number; intersectionRect: DOMRectInit; isIntersecting: boolean; rootBounds: DOMRectInit | null; target: Element; time: DOMHighResTimeStamp; } interface IntersectionObserverInit { root?: Element | Document | null; rootMargin?: string; threshold?: number | number[]; } interface JsonWebKey { alg?: string; crv?: string; d?: string; dp?: string; dq?: string; e?: string; ext?: boolean; k?: string; key_ops?: string[]; kty?: string; n?: string; oth?: RsaOtherPrimesInfo[]; p?: string; q?: string; qi?: string; use?: string; x?: string; y?: string; } interface KeyAlgorithm { name: string; } interface KeyboardEventInit extends EventModifierInit { /** @deprecated */ charCode?: number; code?: string; isComposing?: boolean; key?: string; /** @deprecated */ keyCode?: number; location?: number; repeat?: boolean; } interface Keyframe { composite?: CompositeOperationOrAuto; easing?: string; offset?: number | null; [property: string]: string | number | null | undefined; } interface KeyframeAnimationOptions extends KeyframeEffectOptions { id?: string; timeline?: AnimationTimeline | null; } interface KeyframeEffectOptions extends EffectTiming { composite?: CompositeOperation; iterationComposite?: IterationCompositeOperation; pseudoElement?: string | null; } interface LockInfo { clientId?: string; mode?: LockMode; name?: string; } interface LockManagerSnapshot { held?: LockInfo[]; pending?: LockInfo[]; } interface LockOptions { ifAvailable?: boolean; mode?: LockMode; signal?: AbortSignal; steal?: boolean; } interface MIDIConnectionEventInit extends EventInit { port?: MIDIPort; } interface MIDIMessageEventInit extends EventInit { data?: Uint8Array; } interface MIDIOptions { software?: boolean; sysex?: boolean; } interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { configuration?: MediaDecodingConfiguration; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { configuration?: MediaEncodingConfiguration; } interface MediaCapabilitiesInfo { powerEfficient: boolean; smooth: boolean; supported: boolean; } interface MediaConfiguration { audio?: AudioConfiguration; video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { type: MediaDecodingType; } interface MediaElementAudioSourceOptions { mediaElement: HTMLMediaElement; } interface MediaEncodingConfiguration extends MediaConfiguration { type: MediaEncodingType; } interface MediaEncryptedEventInit extends EventInit { initData?: ArrayBuffer | null; initDataType?: string; } interface MediaImage { sizes?: string; src: string; type?: string; } interface MediaKeyMessageEventInit extends EventInit { message: ArrayBuffer; messageType: MediaKeyMessageType; } interface MediaKeySystemConfiguration { audioCapabilities?: MediaKeySystemMediaCapability[]; distinctiveIdentifier?: MediaKeysRequirement; initDataTypes?: string[]; label?: string; persistentState?: MediaKeysRequirement; sessionTypes?: string[]; videoCapabilities?: MediaKeySystemMediaCapability[]; } interface MediaKeySystemMediaCapability { contentType?: string; encryptionScheme?: string | null; robustness?: string; } interface MediaMetadataInit { album?: string; artist?: string; artwork?: MediaImage[]; title?: string; } interface MediaPositionState { duration?: number; playbackRate?: number; position?: number; } interface MediaQueryListEventInit extends EventInit { matches?: boolean; media?: string; } interface MediaRecorderOptions { audioBitsPerSecond?: number; bitsPerSecond?: number; mimeType?: string; videoBitsPerSecond?: number; } interface MediaSessionActionDetails { action: MediaSessionAction; fastSeek?: boolean; seekOffset?: number; seekTime?: number; } interface MediaStreamAudioSourceOptions { mediaStream: MediaStream; } interface MediaStreamConstraints { audio?: boolean | MediaTrackConstraints; peerIdentity?: string; preferCurrentTab?: boolean; video?: boolean | MediaTrackConstraints; } interface MediaStreamTrackEventInit extends EventInit { track: MediaStreamTrack; } interface MediaTrackCapabilities { aspectRatio?: DoubleRange; autoGainControl?: boolean[]; channelCount?: ULongRange; deviceId?: string; displaySurface?: string; echoCancellation?: boolean[]; facingMode?: string[]; frameRate?: DoubleRange; groupId?: string; height?: ULongRange; noiseSuppression?: boolean[]; sampleRate?: ULongRange; sampleSize?: ULongRange; width?: ULongRange; } interface MediaTrackConstraintSet { aspectRatio?: ConstrainDouble; autoGainControl?: ConstrainBoolean; channelCount?: ConstrainULong; deviceId?: ConstrainDOMString; displaySurface?: ConstrainDOMString; echoCancellation?: ConstrainBoolean; facingMode?: ConstrainDOMString; frameRate?: ConstrainDouble; groupId?: ConstrainDOMString; height?: ConstrainULong; noiseSuppression?: ConstrainBoolean; sampleRate?: ConstrainULong; sampleSize?: ConstrainULong; width?: ConstrainULong; } interface MediaTrackConstraints extends MediaTrackConstraintSet { advanced?: MediaTrackConstraintSet[]; } interface MediaTrackSettings { aspectRatio?: number; autoGainControl?: boolean; channelCount?: number; deviceId?: string; displaySurface?: string; echoCancellation?: boolean; facingMode?: string; frameRate?: number; groupId?: string; height?: number; noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; width?: number; } interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; channelCount?: boolean; deviceId?: boolean; displaySurface?: boolean; echoCancellation?: boolean; facingMode?: boolean; frameRate?: boolean; groupId?: boolean; height?: boolean; noiseSuppression?: boolean; sampleRate?: boolean; sampleSize?: boolean; width?: boolean; } interface MessageEventInit extends EventInit { data?: T; lastEventId?: string; origin?: string; ports?: MessagePort[]; source?: MessageEventSource | null; } interface MouseEventInit extends EventModifierInit { button?: number; buttons?: number; clientX?: number; clientY?: number; movementX?: number; movementY?: number; relatedTarget?: EventTarget | null; screenX?: number; screenY?: number; } interface MultiCacheQueryOptions extends CacheQueryOptions { cacheName?: string; } interface MutationObserverInit { /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ attributeFilter?: string[]; /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ attributeOldValue?: boolean; /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ attributes?: boolean; /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ characterData?: boolean; /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ characterDataOldValue?: boolean; /** Set to true if mutations to target's children are to be observed. */ childList?: boolean; /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ subtree?: boolean; } interface NavigationPreloadState { enabled?: boolean; headerValue?: string; } interface NotificationOptions { badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; lang?: string; requireInteraction?: boolean; silent?: boolean | null; tag?: string; } interface OfflineAudioCompletionEventInit extends EventInit { renderedBuffer: AudioBuffer; } interface OfflineAudioContextOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface OptionalEffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface OscillatorOptions extends AudioNodeOptions { detune?: number; frequency?: number; periodicWave?: PeriodicWave; type?: OscillatorType; } interface PageTransitionEventInit extends EventInit { persisted?: boolean; } interface PannerOptions extends AudioNodeOptions { coneInnerAngle?: number; coneOuterAngle?: number; coneOuterGain?: number; distanceModel?: DistanceModelType; maxDistance?: number; orientationX?: number; orientationY?: number; orientationZ?: number; panningModel?: PanningModelType; positionX?: number; positionY?: number; positionZ?: number; refDistance?: number; rolloffFactor?: number; } interface PaymentCurrencyAmount { currency: string; value: string; } interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; } interface PaymentDetailsInit extends PaymentDetailsBase { id?: string; total: PaymentItem; } interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { paymentMethodErrors?: any; total?: PaymentItem; } interface PaymentItem { amount: PaymentCurrencyAmount; label: string; pending?: boolean; } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { methodDetails?: any; methodName?: string; } interface PaymentMethodData { data?: any; supportedMethods: string; } interface PaymentRequestUpdateEventInit extends EventInit { } interface PaymentValidationErrors { error?: string; paymentMethod?: any; } interface Pbkdf2Params extends Algorithm { hash: HashAlgorithmIdentifier; iterations: number; salt: BufferSource; } interface PerformanceMarkOptions { detail?: any; startTime?: DOMHighResTimeStamp; } interface PerformanceMeasureOptions { detail?: any; duration?: DOMHighResTimeStamp; end?: string | DOMHighResTimeStamp; start?: string | DOMHighResTimeStamp; } interface PerformanceObserverInit { buffered?: boolean; entryTypes?: string[]; type?: string; } interface PeriodicWaveConstraints { disableNormalization?: boolean; } interface PeriodicWaveOptions extends PeriodicWaveConstraints { imag?: number[] | Float32Array; real?: number[] | Float32Array; } interface PermissionDescriptor { name: PermissionName; } interface PictureInPictureEventInit extends EventInit { pictureInPictureWindow: PictureInPictureWindow; } interface PlaneLayout { offset: number; stride: number; } interface PointerEventInit extends MouseEventInit { coalescedEvents?: PointerEvent[]; height?: number; isPrimary?: boolean; pointerId?: number; pointerType?: string; predictedEvents?: PointerEvent[]; pressure?: number; tangentialPressure?: number; tiltX?: number; tiltY?: number; twist?: number; width?: number; } interface PopStateEventInit extends EventInit { state?: any; } interface PositionOptions { enableHighAccuracy?: boolean; maximumAge?: number; timeout?: number; } interface ProgressEventInit extends EventInit { lengthComputable?: boolean; loaded?: number; total?: number; } interface PromiseRejectionEventInit extends EventInit { promise: Promise; reason?: any; } interface PropertyDefinition { inherits: boolean; initialValue?: string; name: string; syntax?: string; } interface PropertyIndexedKeyframes { composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; easing?: string | string[]; offset?: number | (number | null)[]; [property: string]: string | string[] | number | null | (number | null)[] | undefined; } interface PublicKeyCredentialCreationOptions { attestation?: AttestationConveyancePreference; authenticatorSelection?: AuthenticatorSelectionCriteria; challenge: BufferSource; excludeCredentials?: PublicKeyCredentialDescriptor[]; extensions?: AuthenticationExtensionsClientInputs; pubKeyCredParams: PublicKeyCredentialParameters[]; rp: PublicKeyCredentialRpEntity; timeout?: number; user: PublicKeyCredentialUserEntity; } interface PublicKeyCredentialDescriptor { id: BufferSource; transports?: AuthenticatorTransport[]; type: PublicKeyCredentialType; } interface PublicKeyCredentialEntity { name: string; } interface PublicKeyCredentialParameters { alg: COSEAlgorithmIdentifier; type: PublicKeyCredentialType; } interface PublicKeyCredentialRequestOptions { allowCredentials?: PublicKeyCredentialDescriptor[]; challenge: BufferSource; extensions?: AuthenticationExtensionsClientInputs; rpId?: string; timeout?: number; userVerification?: UserVerificationRequirement; } interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { id?: string; } interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { displayName: string; id: BufferSource; } interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; keys?: Record; } interface PushSubscriptionOptionsInit { applicationServerKey?: BufferSource | string | null; userVisibleOnly?: boolean; } interface QueuingStrategy { highWaterMark?: number; size?: QueuingStrategySize; } interface QueuingStrategyInit { /** * Creates a new ByteLengthQueuingStrategy with the provided high water mark. * * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. */ highWaterMark: number; } interface RTCAnswerOptions extends RTCOfferAnswerOptions { } interface RTCCertificateExpiration { expires?: number; } interface RTCConfiguration { bundlePolicy?: RTCBundlePolicy; certificates?: RTCCertificate[]; iceCandidatePoolSize?: number; iceServers?: RTCIceServer[]; iceTransportPolicy?: RTCIceTransportPolicy; rtcpMuxPolicy?: RTCRtcpMuxPolicy; } interface RTCDTMFToneChangeEventInit extends EventInit { tone?: string; } interface RTCDataChannelEventInit extends EventInit { channel: RTCDataChannel; } interface RTCDataChannelInit { id?: number; maxPacketLifeTime?: number; maxRetransmits?: number; negotiated?: boolean; ordered?: boolean; protocol?: string; } interface RTCDtlsFingerprint { algorithm?: string; value?: string; } interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; payloadType?: number; sequenceNumber?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; payloadType?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; timestamp?: number; width?: number; } interface RTCErrorEventInit extends EventInit { error: RTCError; } interface RTCErrorInit { errorDetail: RTCErrorDetailType; httpRequestStatusCode?: number; receivedAlert?: number; sctpCauseCode?: number; sdpLineNumber?: number; sentAlert?: number; } interface RTCIceCandidateInit { candidate?: string; sdpMLineIndex?: number | null; sdpMid?: string | null; usernameFragment?: string | null; } interface RTCIceCandidatePair { local?: RTCIceCandidate; remote?: RTCIceCandidate; } interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; bytesReceived?: number; bytesSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; remoteCandidateId: string; requestsReceived?: number; requestsSent?: number; responsesReceived?: number; responsesSent?: number; state: RTCStatsIceCandidatePairState; totalRoundTripTime?: number; transportId: string; } interface RTCIceServer { credential?: string; urls: string | string[]; username?: string; } interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { audioLevel?: number; bytesReceived?: number; concealedSamples?: number; concealmentEvents?: number; decoderImplementation?: string; estimatedPlayoutTimestamp?: DOMHighResTimeStamp; fecPacketsDiscarded?: number; fecPacketsReceived?: number; firCount?: number; frameHeight?: number; frameWidth?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; silentConcealedSamples?: number; totalAudioEnergy?: number; totalDecodeTime?: number; totalInterFrameDelay?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; totalSquaredInterFrameDelay?: number; trackIdentifier: string; } interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; } interface RTCOfferAnswerOptions { } interface RTCOfferOptions extends RTCOfferAnswerOptions { iceRestart?: boolean; offerToReceiveAudio?: boolean; offerToReceiveVideo?: boolean; } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { firCount?: number; frameHeight?: number; frameWidth?: number; framesEncoded?: number; framesPerSecond?: number; framesSent?: number; headerBytesSent?: number; hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; nackCount?: number; pliCount?: number; qpSum?: number; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; totalPacketSendDelay?: number; } interface RTCPeerConnectionIceErrorEventInit extends EventInit { address?: string | null; errorCode: number; errorText?: string; port?: number | null; url?: string; } interface RTCPeerConnectionIceEventInit extends EventInit { candidate?: RTCIceCandidate | null; url?: string | null; } interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { jitter?: number; packetsLost?: number; packetsReceived?: number; } interface RTCRtcpParameters { cname?: string; reducedSize?: boolean; } interface RTCRtpCapabilities { codecs: RTCRtpCodecCapability[]; headerExtensions: RTCRtpHeaderExtensionCapability[]; } interface RTCRtpCodec { channels?: number; clockRate: number; mimeType: string; sdpFmtpLine?: string; } interface RTCRtpCodecCapability extends RTCRtpCodec { } interface RTCRtpCodecParameters extends RTCRtpCodec { payloadType: number; } interface RTCRtpCodingParameters { rid?: string; } interface RTCRtpContributingSource { audioLevel?: number; rtpTimestamp: number; source: number; timestamp: DOMHighResTimeStamp; } interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { active?: boolean; maxBitrate?: number; maxFramerate?: number; networkPriority?: RTCPriorityType; priority?: RTCPriorityType; scaleResolutionDownBy?: number; } interface RTCRtpHeaderExtensionCapability { uri: string; } interface RTCRtpHeaderExtensionParameters { encrypted?: boolean; id: number; uri: string; } interface RTCRtpParameters { codecs: RTCRtpCodecParameters[]; headerExtensions: RTCRtpHeaderExtensionParameters[]; rtcp: RTCRtcpParameters; } interface RTCRtpReceiveParameters extends RTCRtpParameters { } interface RTCRtpSendParameters extends RTCRtpParameters { degradationPreference?: RTCDegradationPreference; encodings: RTCRtpEncodingParameters[]; transactionId: string; } interface RTCRtpStreamStats extends RTCStats { codecId?: string; kind: string; ssrc: number; transportId?: string; } interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { } interface RTCRtpTransceiverInit { direction?: RTCRtpTransceiverDirection; sendEncodings?: RTCRtpEncodingParameters[]; streams?: MediaStream[]; } interface RTCSentRtpStreamStats extends RTCRtpStreamStats { bytesSent?: number; packetsSent?: number; } interface RTCSessionDescriptionInit { sdp?: string; type: RTCSdpType; } interface RTCSetParameterOptions { } interface RTCStats { id: string; timestamp: DOMHighResTimeStamp; type: RTCStatsType; } interface RTCTrackEventInit extends EventInit { receiver: RTCRtpReceiver; streams?: MediaStream[]; track: MediaStreamTrack; transceiver: RTCRtpTransceiver; } interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; dtlsState: RTCDtlsTransportState; localCertificateId?: string; remoteCertificateId?: string; selectedCandidatePairId?: string; srtpCipher?: string; tlsVersion?: string; } interface ReadableStreamGetReaderOptions { /** * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. * * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. */ mode?: ReadableStreamReaderMode; } interface ReadableStreamReadDoneResult { done: true; value?: T; } interface ReadableStreamReadValueResult { done: false; value: T; } interface ReadableWritablePair { readable: ReadableStream; /** * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. */ writable: WritableStream; } interface RegistrationOptions { scope?: string; type?: WorkerType; updateViaCache?: ServiceWorkerUpdateViaCache; } interface ReportingObserverOptions { buffered?: boolean; types?: string[]; } interface RequestInit { /** A BodyInit object or null to set request's body. */ body?: BodyInit | null; /** A string indicating how the request will interact with the browser's cache to set request's cache. */ cache?: RequestCache; /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ credentials?: RequestCredentials; /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ headers?: HeadersInit; /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ integrity?: string; /** A boolean to set request's keepalive. */ keepalive?: boolean; /** A string to set request's method. */ method?: string; /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ mode?: RequestMode; priority?: RequestPriority; /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ redirect?: RequestRedirect; /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ referrer?: string; /** A referrer policy to set request's referrerPolicy. */ referrerPolicy?: ReferrerPolicy; /** An AbortSignal to set request's signal. */ signal?: AbortSignal | null; /** Can only be null. Used to disassociate request from any Window. */ window?: null; } interface ResizeObserverOptions { box?: ResizeObserverBoxOptions; } interface ResponseInit { headers?: HeadersInit; status?: number; statusText?: string; } interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { hash: KeyAlgorithm; } interface RsaHashedKeyGenParams extends RsaKeyGenParams { hash: HashAlgorithmIdentifier; } interface RsaKeyAlgorithm extends KeyAlgorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaKeyGenParams extends Algorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaOaepParams extends Algorithm { label?: BufferSource; } interface RsaOtherPrimesInfo { d?: string; r?: string; t?: string; } interface RsaPssParams extends Algorithm { saltLength: number; } interface SVGBoundingBoxOptions { clipped?: boolean; fill?: boolean; markers?: boolean; stroke?: boolean; } interface ScrollIntoViewOptions extends ScrollOptions { block?: ScrollLogicalPosition; inline?: ScrollLogicalPosition; } interface ScrollOptions { behavior?: ScrollBehavior; } interface ScrollToOptions extends ScrollOptions { left?: number; top?: number; } interface SecurityPolicyViolationEventInit extends EventInit { blockedURI?: string; columnNumber?: number; disposition: SecurityPolicyViolationEventDisposition; documentURI: string; effectiveDirective: string; lineNumber?: number; originalPolicy: string; referrer?: string; sample?: string; sourceFile?: string; statusCode: number; violatedDirective: string; } interface ShadowRootInit { delegatesFocus?: boolean; mode: ShadowRootMode; slotAssignment?: SlotAssignmentMode; } interface ShareData { files?: File[]; text?: string; title?: string; url?: string; } interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { error: SpeechSynthesisErrorCode; } interface SpeechSynthesisEventInit extends EventInit { charIndex?: number; charLength?: number; elapsedTime?: number; name?: string; utterance: SpeechSynthesisUtterance; } interface StaticRangeInit { endContainer: Node; endOffset: number; startContainer: Node; startOffset: number; } interface StereoPannerOptions extends AudioNodeOptions { pan?: number; } interface StorageEstimate { quota?: number; usage?: number; } interface StorageEventInit extends EventInit { key?: string | null; newValue?: string | null; oldValue?: string | null; storageArea?: Storage | null; url?: string; } interface StreamPipeOptions { preventAbort?: boolean; preventCancel?: boolean; /** * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. * * Errors and closures of the source and destination streams propagate as follows: * * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. * * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. * * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. * * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. * * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. */ preventClose?: boolean; signal?: AbortSignal; } interface StructuredSerializeOptions { transfer?: Transferable[]; } interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } interface TextDecodeOptions { stream?: boolean; } interface TextDecoderOptions { fatal?: boolean; ignoreBOM?: boolean; } interface TextEncoderEncodeIntoResult { read: number; written: number; } interface ToggleEventInit extends EventInit { newState?: string; oldState?: string; } interface TouchEventInit extends EventModifierInit { changedTouches?: Touch[]; targetTouches?: Touch[]; touches?: Touch[]; } interface TouchInit { altitudeAngle?: number; azimuthAngle?: number; clientX?: number; clientY?: number; force?: number; identifier: number; pageX?: number; pageY?: number; radiusX?: number; radiusY?: number; rotationAngle?: number; screenX?: number; screenY?: number; target: EventTarget; touchType?: TouchType; } interface TrackEventInit extends EventInit { track?: TextTrack | null; } interface Transformer { flush?: TransformerFlushCallback; readableType?: undefined; start?: TransformerStartCallback; transform?: TransformerTransformCallback; writableType?: undefined; } interface TransitionEventInit extends EventInit { elapsedTime?: number; propertyName?: string; pseudoElement?: string; } interface UIEventInit extends EventInit { detail?: number; view?: Window | null; /** @deprecated */ which?: number; } interface ULongRange { max?: number; min?: number; } interface UnderlyingByteSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableByteStreamController) => void | PromiseLike; start?: (controller: ReadableByteStreamController) => any; type: "bytes"; } interface UnderlyingDefaultSource { cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableStreamDefaultController) => void | PromiseLike; start?: (controller: ReadableStreamDefaultController) => any; type?: undefined; } interface UnderlyingSink { abort?: UnderlyingSinkAbortCallback; close?: UnderlyingSinkCloseCallback; start?: UnderlyingSinkStartCallback; type?: undefined; write?: UnderlyingSinkWriteCallback; } interface UnderlyingSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: UnderlyingSourcePullCallback; start?: UnderlyingSourceStartCallback; type?: ReadableStreamType; } interface ValidityStateFlags { badInput?: boolean; customError?: boolean; patternMismatch?: boolean; rangeOverflow?: boolean; rangeUnderflow?: boolean; stepMismatch?: boolean; tooLong?: boolean; tooShort?: boolean; typeMismatch?: boolean; valueMissing?: boolean; } interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; primaries?: VideoColorPrimaries | null; transfer?: VideoTransferCharacteristics | null; } interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; contentType: string; framerate: number; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; transferFunction?: TransferFunction; width: number; } interface VideoDecoderConfig { codec: string; codedHeight?: number; codedWidth?: number; colorSpace?: VideoColorSpaceInit; description?: AllowSharedBufferSource; displayAspectHeight?: number; displayAspectWidth?: number; hardwareAcceleration?: HardwareAcceleration; optimizeForLatency?: boolean; } interface VideoDecoderInit { error: WebCodecsErrorCallback; output: VideoFrameOutputCallback; } interface VideoDecoderSupport { config?: VideoDecoderConfig; supported?: boolean; } interface VideoEncoderConfig { alpha?: AlphaOption; avc?: AvcEncoderConfig; bitrate?: number; bitrateMode?: VideoEncoderBitrateMode; codec: string; displayHeight?: number; displayWidth?: number; framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; } interface VideoEncoderEncodeOptions { keyFrame?: boolean; } interface VideoEncoderInit { error: WebCodecsErrorCallback; output: EncodedVideoChunkOutputCallback; } interface VideoEncoderSupport { config?: VideoEncoderConfig; supported?: boolean; } interface VideoFrameBufferInit { codedHeight: number; codedWidth: number; colorSpace?: VideoColorSpaceInit; displayHeight?: number; displayWidth?: number; duration?: number; format: VideoPixelFormat; layout?: PlaneLayout[]; timestamp: number; visibleRect?: DOMRectInit; } interface VideoFrameCallbackMetadata { captureTime?: DOMHighResTimeStamp; expectedDisplayTime: DOMHighResTimeStamp; height: number; mediaTime: number; presentationTime: DOMHighResTimeStamp; presentedFrames: number; processingDuration?: number; receiveTime?: DOMHighResTimeStamp; rtpTimestamp?: number; width: number; } interface VideoFrameCopyToOptions { layout?: PlaneLayout[]; rect?: DOMRectInit; } interface VideoFrameInit { alpha?: AlphaOption; displayHeight?: number; displayWidth?: number; duration?: number; timestamp?: number; visibleRect?: DOMRectInit; } interface WaveShaperOptions extends AudioNodeOptions { curve?: number[] | Float32Array; oversample?: OverSampleType; } interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; depth?: boolean; desynchronized?: boolean; failIfMajorPerformanceCaveat?: boolean; powerPreference?: WebGLPowerPreference; premultipliedAlpha?: boolean; preserveDrawingBuffer?: boolean; stencil?: boolean; } interface WebGLContextEventInit extends EventInit { statusMessage?: string; } interface WebTransportCloseInfo { closeCode?: number; reason?: string; } interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; } interface WebTransportHash { algorithm?: string; value?: BufferSource; } interface WebTransportOptions { allowPooling?: boolean; congestionControl?: WebTransportCongestionControl; requireUnreliable?: boolean; serverCertificateHashes?: WebTransportHash[]; } interface WebTransportSendStreamOptions { sendOrder?: number; } interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; deltaY?: number; deltaZ?: number; } interface WindowPostMessageOptions extends StructuredSerializeOptions { targetOrigin?: string; } interface WorkerOptions { credentials?: RequestCredentials; name?: string; type?: WorkerType; } interface WorkletOptions { credentials?: RequestCredentials; } interface WriteParams { data?: BufferSource | Blob | string | null; position?: number | null; size?: number | null; type: WriteCommandType; } type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; }; declare var NodeFilter: { readonly FILTER_ACCEPT: 1; readonly FILTER_REJECT: 2; readonly FILTER_SKIP: 3; readonly SHOW_ALL: 0xFFFFFFFF; readonly SHOW_ELEMENT: 0x1; readonly SHOW_ATTRIBUTE: 0x2; readonly SHOW_TEXT: 0x4; readonly SHOW_CDATA_SECTION: 0x8; readonly SHOW_ENTITY_REFERENCE: 0x10; readonly SHOW_ENTITY: 0x20; readonly SHOW_PROCESSING_INSTRUCTION: 0x40; readonly SHOW_COMMENT: 0x80; readonly SHOW_DOCUMENT: 0x100; readonly SHOW_DOCUMENT_TYPE: 0x200; readonly SHOW_DOCUMENT_FRAGMENT: 0x400; readonly SHOW_NOTATION: 0x800; }; type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; }; /** * The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays) */ interface ANGLE_instanced_arrays { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; } interface ARIAMixin { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ ariaAtomic: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ ariaAutoComplete: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ ariaBusy: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ ariaChecked: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ ariaColCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ ariaColIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ ariaColSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ ariaCurrent: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ ariaDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ ariaDisabled: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ ariaExpanded: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ ariaHasPopup: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ ariaHidden: string | null; ariaInvalid: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ ariaKeyShortcuts: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ ariaLabel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ ariaLevel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ ariaLive: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ ariaModal: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ ariaMultiLine: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ ariaMultiSelectable: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ ariaOrientation: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ ariaPlaceholder: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ ariaPosInSet: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ ariaPressed: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ ariaReadOnly: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ ariaRequired: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ ariaRoleDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ ariaRowCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ ariaRowIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ ariaRowSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ ariaSelected: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ ariaSetSize: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ ariaSort: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ ariaValueMax: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ ariaValueMin: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ ariaValueNow: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ ariaValueText: string | null; role: string | null; } /** * A controller object that allows you to abort one or more DOM requests as and when desired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) */ interface AbortController { /** * Returns the AbortSignal object associated with this object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) */ readonly signal: AbortSignal; /** * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) */ abort(reason?: any): void; } declare var AbortController: { prototype: AbortController; new(): AbortController; }; interface AbortSignalEventMap { "abort": Event; } /** * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) */ interface AbortSignal extends EventTarget { /** * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) */ readonly aborted: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ onabort: ((this: AbortSignal, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ readonly reason: any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ throwIfAborted(): void; addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AbortSignal: { prototype: AbortSignal; new(): AbortSignal; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ abort(reason?: any): AbortSignal; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ interface AbstractRange { /** * Returns true if range is collapsed, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) */ readonly collapsed: boolean; /** * Returns range's end node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) */ readonly endContainer: Node; /** * Returns range's end offset. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) */ readonly endOffset: number; /** * Returns range's start node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) */ readonly startContainer: Node; /** * Returns range's start offset. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) */ readonly startOffset: number; } declare var AbstractRange: { prototype: AbstractRange; new(): AbstractRange; }; interface AbstractWorkerEventMap { "error": ErrorEvent; } interface AbstractWorker { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** * A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) */ interface AnalyserNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ fftSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ readonly frequencyBinCount: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ maxDecibels: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ minDecibels: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ smoothingTimeConstant: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ getByteFrequencyData(array: Uint8Array): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ getByteTimeDomainData(array: Uint8Array): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ getFloatFrequencyData(array: Float32Array): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ getFloatTimeDomainData(array: Float32Array): void; } declare var AnalyserNode: { prototype: AnalyserNode; new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; }; interface Animatable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ getAnimations(options?: GetAnimationsOptions): Animation[]; } interface AnimationEventMap { "cancel": AnimationPlaybackEvent; "finish": AnimationPlaybackEvent; "remove": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ interface Animation extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ currentTime: CSSNumberish | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ effect: AnimationEffect | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ readonly finished: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ onremove: ((this: Animation, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ readonly pending: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ readonly playState: AnimationPlayState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ playbackRate: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ readonly replaceState: AnimationReplaceState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ startTime: CSSNumberish | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ timeline: AnimationTimeline | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ cancel(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ commitStyles(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ finish(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ pause(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ persist(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ play(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ reverse(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ updatePlaybackRate(playbackRate: number): void; addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Animation: { prototype: Animation; new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ interface AnimationEffect { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ getComputedTiming(): ComputedEffectTiming; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ getTiming(): EffectTiming; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ updateTiming(timing?: OptionalEffectTiming): void; } declare var AnimationEffect: { prototype: AnimationEffect; new(): AnimationEffect; }; /** * Events providing information related to animations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ readonly animationName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ readonly elapsedTime: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ readonly pseudoElement: string; } declare var AnimationEvent: { prototype: AnimationEvent; new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; }; interface AnimationFrameProvider { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ cancelAnimationFrame(handle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ requestAnimationFrame(callback: FrameRequestCallback): number; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ interface AnimationPlaybackEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ readonly currentTime: CSSNumberish | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ readonly timelineTime: CSSNumberish | null; } declare var AnimationPlaybackEvent: { prototype: AnimationPlaybackEvent; new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ interface AnimationTimeline { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ readonly currentTime: CSSNumberish | null; } declare var AnimationTimeline: { prototype: AnimationTimeline; new(): AnimationTimeline; }; /** * A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) */ interface Attr extends Node { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ readonly localName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ readonly namespaceURI: string | null; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ readonly ownerElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ readonly prefix: string | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) */ readonly specified: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ value: string; } declare var Attr: { prototype: Attr; new(): Attr; }; /** * A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) */ interface AudioBuffer { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ readonly duration: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ readonly numberOfChannels: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ readonly sampleRate: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ getChannelData(channel: number): Float32Array; } declare var AudioBuffer: { prototype: AudioBuffer; new(options: AudioBufferOptions): AudioBuffer; }; /** * An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ buffer: AudioBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ readonly detune: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ loop: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ loopEnd: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ loopStart: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ readonly playbackRate: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ start(when?: number, offset?: number, duration?: number): void; addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioBufferSourceNode: { prototype: AudioBufferSourceNode; new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; }; /** * An audio-processing graph built from audio modules linked together, each represented by an AudioNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext) */ interface AudioContext extends BaseAudioContext { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ readonly baseLatency: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ readonly outputLatency: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ close(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ createMediaStreamDestination(): MediaStreamAudioDestinationNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ getOutputTimestamp(): AudioTimestamp; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ resume(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ suspend(): Promise; addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioContext: { prototype: AudioContext; new(contextOptions?: AudioContextOptions): AudioContext; }; /** * AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) */ interface AudioDestinationNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ readonly maxChannelCount: number; } declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; }; /** * The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) */ interface AudioListener { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ readonly forwardX: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ readonly forwardY: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ readonly forwardZ: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ readonly positionX: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ readonly positionY: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ readonly positionZ: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ readonly upX: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ readonly upY: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ readonly upZ: AudioParam; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) */ setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) */ setPosition(x: number, y: number, z: number): void; } declare var AudioListener: { prototype: AudioListener; new(): AudioListener; }; /** * A generic interface for representing an audio processing module. Examples include: * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) */ interface AudioNode extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ channelCount: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ channelCountMode: ChannelCountMode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ channelInterpretation: ChannelInterpretation; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ readonly context: BaseAudioContext; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ readonly numberOfInputs: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ readonly numberOfOutputs: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; connect(destinationParam: AudioParam, output?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ disconnect(): void; disconnect(output: number): void; disconnect(destinationNode: AudioNode): void; disconnect(destinationNode: AudioNode, output: number): void; disconnect(destinationNode: AudioNode, output: number, input: number): void; disconnect(destinationParam: AudioParam): void; disconnect(destinationParam: AudioParam, output: number): void; } declare var AudioNode: { prototype: AudioNode; new(): AudioNode; }; /** * The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) */ interface AudioParam { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */ automationRate: AutomationRate; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ readonly defaultValue: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ readonly maxValue: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ readonly minValue: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ value: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ cancelAndHoldAtTime(cancelTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ cancelScheduledValues(cancelTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ linearRampToValueAtTime(value: number, endTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ setValueAtTime(value: number, startTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; } declare var AudioParam: { prototype: AudioParam; new(): AudioParam; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ interface AudioParamMap { forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; } declare var AudioParamMap: { prototype: AudioParamMap; new(): AudioParamMap; }; /** * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent) */ interface AudioProcessingEvent extends Event { /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) */ readonly inputBuffer: AudioBuffer; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) */ readonly outputBuffer: AudioBuffer; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) */ readonly playbackTime: number; } /** @deprecated */ declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; }; interface AudioScheduledSourceNodeEventMap { "ended": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */ interface AudioScheduledSourceNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ start(when?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ stop(when?: number): void; addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioScheduledSourceNode: { prototype: AudioScheduledSourceNode; new(): AudioScheduledSourceNode; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet) */ interface AudioWorklet extends Worklet { } declare var AudioWorklet: { prototype: AudioWorklet; new(): AudioWorklet; }; interface AudioWorkletNodeEventMap { "processorerror": Event; } /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) */ interface AudioWorkletNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ readonly parameters: AudioParamMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ readonly port: MessagePort; addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioWorkletNode: { prototype: AudioWorkletNode; new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) */ interface AuthenticatorAssertionResponse extends AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ readonly authenticatorData: ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ readonly signature: ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { prototype: AuthenticatorAssertionResponse; new(): AuthenticatorAssertionResponse; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) */ interface AuthenticatorAttestationResponse extends AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ readonly attestationObject: ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ getAuthenticatorData(): ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ getPublicKey(): ArrayBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ getTransports(): string[]; } declare var AuthenticatorAttestationResponse: { prototype: AuthenticatorAttestationResponse; new(): AuthenticatorAttestationResponse; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) */ interface AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ readonly clientDataJSON: ArrayBuffer; } declare var AuthenticatorResponse: { prototype: AuthenticatorResponse; new(): AuthenticatorResponse; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ interface BarProp { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ readonly visible: boolean; } declare var BarProp: { prototype: BarProp; new(): BarProp; }; interface BaseAudioContextEventMap { "statechange": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ interface BaseAudioContext extends EventTarget { /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) */ readonly audioWorklet: AudioWorklet; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ readonly currentTime: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ readonly destination: AudioDestinationNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ readonly listener: AudioListener; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ readonly sampleRate: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ readonly state: AudioContextState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ createAnalyser(): AnalyserNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ createBiquadFilter(): BiquadFilterNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ createBufferSource(): AudioBufferSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ createChannelMerger(numberOfInputs?: number): ChannelMergerNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ createConstantSource(): ConstantSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ createConvolver(): ConvolverNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ createDelay(maxDelayTime?: number): DelayNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ createDynamicsCompressor(): DynamicsCompressorNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ createGain(): GainNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ createOscillator(): OscillatorNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ createPanner(): PannerNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) */ createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ createStereoPanner(): StereoPannerNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ createWaveShaper(): WaveShaperNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BaseAudioContext: { prototype: BaseAudioContext; new(): BaseAudioContext; }; /** * The beforeunload event is fired when the window, the document and its resources are about to be unloaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ interface BeforeUnloadEvent extends Event { /** @deprecated */ returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; }; /** * A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) */ interface BiquadFilterNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ readonly Q: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ readonly detune: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ readonly frequency: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ readonly gain: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ type: BiquadFilterType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; }; /** * A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) */ interface Blob { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ readonly size: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ readonly type: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ slice(start?: number, end?: number, contentType?: string): Blob; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ stream(): ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ text(): Promise; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ interface BlobEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ readonly data: Blob; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ readonly timecode: DOMHighResTimeStamp; } declare var BlobEvent: { prototype: BlobEvent; new(type: string, eventInitDict: BlobEventInit): BlobEvent; }; interface Body { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ readonly body: ReadableStream | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ readonly bodyUsed: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ blob(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ formData(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ json(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ text(): Promise; } interface BroadcastChannelEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ interface BroadcastChannel extends EventTarget { /** * Returns the channel name (as passed to the constructor). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** * Closes the BroadcastChannel object, opening it up to garbage collection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) */ close(): void; /** * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) */ postMessage(message: any): void; addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BroadcastChannel: { prototype: BroadcastChannel; new(name: string): BroadcastChannel; }; /** * This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) */ interface ByteLengthQueuingStrategy extends QueuingStrategy { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var ByteLengthQueuingStrategy: { prototype: ByteLengthQueuingStrategy; new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** * A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) */ interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ interface CSSAnimation extends Animation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ readonly animationName: string; addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSAnimation: { prototype: CSSAnimation; new(): CSSAnimation; }; /** * A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) */ interface CSSConditionRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ readonly conditionText: string; } declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ readonly containerName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ readonly containerQuery: string; } declare var CSSContainerRule: { prototype: CSSContainerRule; new(): CSSContainerRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ interface CSSCounterStyleRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ additiveSymbols: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ fallback: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ negative: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ pad: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ prefix: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ range: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ speakAs: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ suffix: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ symbols: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ system: string; } declare var CSSCounterStyleRule: { prototype: CSSCounterStyleRule; new(): CSSCounterStyleRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ interface CSSFontFaceRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ readonly style: CSSStyleDeclaration; } declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ interface CSSFontFeatureValuesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ fontFamily: string; } declare var CSSFontFeatureValuesRule: { prototype: CSSFontFeatureValuesRule; new(): CSSFontFeatureValuesRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ interface CSSFontPaletteValuesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ readonly basePalette: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ readonly fontFamily: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ readonly overrideColors: string; } declare var CSSFontPaletteValuesRule: { prototype: CSSFontPaletteValuesRule; new(): CSSFontPaletteValuesRule; }; /** * Any CSS at-rule that contains other rules nested within it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule) */ interface CSSGroupingRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ readonly cssRules: CSSRuleList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ deleteRule(index: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ interface CSSImageValue extends CSSStyleValue { } declare var CSSImageValue: { prototype: CSSImageValue; new(): CSSImageValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ interface CSSImportRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ readonly href: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ readonly layerName: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ readonly media: MediaList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ readonly styleSheet: CSSStyleSheet | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ readonly supportsText: string | null; } declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; }; /** * An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) */ interface CSSKeyframeRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ keyText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ readonly style: CSSStyleDeclaration; } declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; }; /** * An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) */ interface CSSKeyframesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ readonly cssRules: CSSRuleList; readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ appendRule(rule: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ deleteRule(select: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ findRule(select: string): CSSKeyframeRule | null; [index: number]: CSSKeyframeRule; } declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ interface CSSKeywordValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ value: string; } declare var CSSKeywordValue: { prototype: CSSKeywordValue; new(value: string): CSSKeywordValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ interface CSSLayerBlockRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ readonly name: string; } declare var CSSLayerBlockRule: { prototype: CSSLayerBlockRule; new(): CSSLayerBlockRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ interface CSSLayerStatementRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ readonly nameList: ReadonlyArray; } declare var CSSLayerStatementRule: { prototype: CSSLayerStatementRule; new(): CSSLayerStatementRule; }; interface CSSMathClamp extends CSSMathValue { readonly lower: CSSNumericValue; readonly upper: CSSNumericValue; readonly value: CSSNumericValue; } declare var CSSMathClamp: { prototype: CSSMathClamp; new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ interface CSSMathInvert extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ readonly value: CSSNumericValue; } declare var CSSMathInvert: { prototype: CSSMathInvert; new(arg: CSSNumberish): CSSMathInvert; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ interface CSSMathMax extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ readonly values: CSSNumericArray; } declare var CSSMathMax: { prototype: CSSMathMax; new(...args: CSSNumberish[]): CSSMathMax; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ interface CSSMathMin extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ readonly values: CSSNumericArray; } declare var CSSMathMin: { prototype: CSSMathMin; new(...args: CSSNumberish[]): CSSMathMin; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ interface CSSMathNegate extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ readonly value: CSSNumericValue; } declare var CSSMathNegate: { prototype: CSSMathNegate; new(arg: CSSNumberish): CSSMathNegate; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ interface CSSMathProduct extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ readonly values: CSSNumericArray; } declare var CSSMathProduct: { prototype: CSSMathProduct; new(...args: CSSNumberish[]): CSSMathProduct; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ interface CSSMathSum extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ readonly values: CSSNumericArray; } declare var CSSMathSum: { prototype: CSSMathSum; new(...args: CSSNumberish[]): CSSMathSum; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ interface CSSMathValue extends CSSNumericValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ readonly operator: CSSMathOperator; } declare var CSSMathValue: { prototype: CSSMathValue; new(): CSSMathValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ interface CSSMatrixComponent extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ matrix: DOMMatrix; } declare var CSSMatrixComponent: { prototype: CSSMatrixComponent; new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; }; /** * A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) */ interface CSSMediaRule extends CSSConditionRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ readonly media: MediaList; } declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; }; /** * An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) */ interface CSSNamespaceRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ readonly namespaceURI: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ readonly prefix: string; } declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ interface CSSNumericArray { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ readonly length: number; forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; [index: number]: CSSNumericValue; } declare var CSSNumericArray: { prototype: CSSNumericArray; new(): CSSNumericArray; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ interface CSSNumericValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ add(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ div(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ equals(...value: CSSNumberish[]): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ max(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ min(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ mul(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ sub(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ to(unit: string): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ toSum(...units: string[]): CSSMathSum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ type(): CSSNumericType; } declare var CSSNumericValue: { prototype: CSSNumericValue; new(): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ parse(cssText: string): CSSNumericValue; }; /** * CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) */ interface CSSPageRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ readonly style: CSSStyleDeclaration; } declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ interface CSSPerspective extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ length: CSSPerspectiveValue; } declare var CSSPerspective: { prototype: CSSPerspective; new(length: CSSPerspectiveValue): CSSPerspective; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ interface CSSPropertyRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ readonly inherits: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ readonly initialValue: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ readonly syntax: string; } declare var CSSPropertyRule: { prototype: CSSPropertyRule; new(): CSSPropertyRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ interface CSSRotate extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ angle: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ x: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ y: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ z: CSSNumberish; } declare var CSSRotate: { prototype: CSSRotate; new(angle: CSSNumericValue): CSSRotate; new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate; }; /** * A single CSS rule. There are several types of rules, listed in the Type constants section below. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) */ interface CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ readonly parentRule: CSSRule | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ readonly parentStyleSheet: CSSStyleSheet | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) */ readonly type: number; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; } declare var CSSRule: { prototype: CSSRule; new(): CSSRule; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; }; /** * A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) */ interface CSSRuleList { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ item(index: number): CSSRule | null; [index: number]: CSSRule; } declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ interface CSSScale extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ x: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ y: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ z: CSSNumberish; } declare var CSSScale: { prototype: CSSScale; new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ interface CSSSkew extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ ax: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ ay: CSSNumericValue; } declare var CSSSkew: { prototype: CSSSkew; new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ interface CSSSkewX extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ ax: CSSNumericValue; } declare var CSSSkewX: { prototype: CSSSkewX; new(ax: CSSNumericValue): CSSSkewX; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ interface CSSSkewY extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ ay: CSSNumericValue; } declare var CSSSkewY: { prototype: CSSSkewY; new(ay: CSSNumericValue): CSSSkewY; }; /** * An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ interface CSSStyleDeclaration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ accentColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ alignContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ alignItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ alignSelf: string; alignmentBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ all: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ animation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ animationComposition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ animationDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ animationDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ animationDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ animationFillMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ animationIterationCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ animationName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ animationPlayState: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ animationTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ appearance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ aspectRatio: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ backdropFilter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ backfaceVisibility: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ background: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ backgroundAttachment: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ backgroundBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ backgroundClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ backgroundColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ backgroundImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ backgroundOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ backgroundPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ backgroundPositionX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ backgroundPositionY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ backgroundRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ backgroundSize: string; baselineShift: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */ baselineSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ blockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ border: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ borderBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ borderBlockColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ borderBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ borderBlockEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ borderBlockEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ borderBlockEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ borderBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ borderBlockStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ borderBlockStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ borderBlockStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ borderBlockStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ borderBlockWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ borderBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ borderBottomColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ borderBottomLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ borderBottomRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ borderBottomStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ borderBottomWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ borderCollapse: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ borderColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ borderEndEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ borderEndStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ borderImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ borderImageOutset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ borderImageRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ borderImageSlice: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ borderImageSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ borderImageWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ borderInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ borderInlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ borderInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ borderInlineEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ borderInlineEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ borderInlineEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ borderInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ borderInlineStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ borderInlineStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ borderInlineStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ borderInlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ borderInlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ borderLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ borderLeftColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ borderLeftStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ borderLeftWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ borderRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ borderRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ borderRightColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ borderRightStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ borderRightWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ borderSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ borderStartEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ borderStartStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ borderStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ borderTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ borderTopColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ borderTopLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ borderTopRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ borderTopStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ borderTopWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ borderWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ bottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ boxShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ boxSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ breakAfter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ breakBefore: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ breakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ captionSide: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ caretColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ clear: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) */ clip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ clipPath: string; clipRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ color: string; colorInterpolation: string; colorInterpolationFilters: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ colorScheme: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ columnCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ columnFill: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ columnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ columnRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ columnRuleColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ columnRuleStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ columnRuleWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ columnSpan: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ columnWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ columns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ contain: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */ containIntrinsicBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ containIntrinsicHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */ containIntrinsicInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ containIntrinsicSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ containIntrinsicWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ container: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ containerName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ containerType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ content: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ counterIncrement: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */ cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; cx: string; cy: string; d: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ direction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ display: string; dominantBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ emptyCells: string; fill: string; fillOpacity: string; fillRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ filter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ flex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ flexBasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ flexDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ flexFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ flexGrow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ flexShrink: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ flexWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ float: string; floodColor: string; floodOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ fontFamily: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ fontFeatureSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ fontKerning: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ fontOpticalSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ fontPalette: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ fontSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ fontSizeAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ fontStretch: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ fontStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ fontSynthesis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ fontSynthesisSmallCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ fontSynthesisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ fontSynthesisWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ fontVariant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ fontVariantAlternates: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ fontVariantCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ fontVariantEastAsian: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ fontVariantLigatures: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ fontVariantNumeric: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ fontVariantPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ fontVariationSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ fontWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ forcedColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ gap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ grid: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ gridArea: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ gridAutoColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ gridAutoFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ gridAutoRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ gridColumn: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ gridColumnEnd: string; /** @deprecated This is a legacy alias of \`columnGap\`. */ gridColumnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ gridColumnStart: string; /** @deprecated This is a legacy alias of \`gap\`. */ gridGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ gridRow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ gridRowEnd: string; /** @deprecated This is a legacy alias of \`rowGap\`. */ gridRowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ gridRowStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ gridTemplate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ gridTemplateAreas: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ gridTemplateColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ gridTemplateRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ height: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ hyphenateCharacter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ hyphens: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) */ imageOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ imageRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ inlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ inset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ insetBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ insetBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ insetBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ insetInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ insetInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ insetInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ isolation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ justifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ justifyItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ justifySelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ left: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ letterSpacing: string; lightingColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ lineBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ lineHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ listStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ listStyleImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ listStylePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ listStyleType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ margin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ marginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ marginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ marginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ marginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ marginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ marginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ marginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ marginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ marginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ marginTop: string; marker: string; markerEnd: string; markerMid: string; markerStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ mask: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ maskClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ maskComposite: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ maskImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ maskMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ maskOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ maskPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ maskRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ maskSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ maskType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ mathDepth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ mathStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ maxBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ maxHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ maxInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ maxWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ minBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ minHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ minInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ minWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ mixBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ objectFit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ objectPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ offset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ offsetAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ offsetDistance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ offsetPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ offsetPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ offsetRotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ opacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ order: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ orphans: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ outline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ outlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ outlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ outlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ outlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ overflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ overflowAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ overflowClipMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ overflowWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ overflowX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ overflowY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ overscrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ overscrollBehaviorBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ overscrollBehaviorInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ overscrollBehaviorX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ overscrollBehaviorY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ padding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ paddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ paddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ paddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ paddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ paddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ paddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ paddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ paddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ paddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ paddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ page: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ pageBreakAfter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ pageBreakBefore: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ pageBreakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ paintOrder: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ readonly parentRule: CSSRule | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ perspective: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ perspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ placeContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ placeItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ placeSelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ pointerEvents: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ position: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ printColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ quotes: string; r: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ resize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ right: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ rotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ rowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ rubyPosition: string; rx: string; ry: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ scale: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ scrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ scrollMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ scrollMarginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ scrollMarginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ scrollMarginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ scrollMarginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ scrollMarginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ scrollMarginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ scrollMarginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ scrollMarginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ scrollMarginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ scrollMarginTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ scrollPadding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ scrollPaddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ scrollPaddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ scrollPaddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ scrollPaddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ scrollPaddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ scrollPaddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ scrollPaddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ scrollPaddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ scrollPaddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ scrollPaddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ scrollSnapAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ scrollSnapStop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ scrollSnapType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ scrollbarColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ scrollbarGutter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ scrollbarWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ shapeImageThreshold: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ shapeMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ shapeOutside: string; shapeRendering: string; stopColor: string; stopOpacity: string; stroke: string; strokeDasharray: string; strokeDashoffset: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeOpacity: string; strokeWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ tabSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ tableLayout: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ textAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ textAlignLast: string; textAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ textCombineUpright: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ textDecoration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ textDecorationColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ textDecorationLine: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ textDecorationSkipInk: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ textDecorationStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ textDecorationThickness: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ textEmphasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ textEmphasisColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ textEmphasisPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ textEmphasisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ textIndent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ textOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ textOverflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ textRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ textShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ textTransform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ textUnderlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ textUnderlinePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ textWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ top: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ touchAction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ transform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ transformBox: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ transformOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ transformStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ transition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ transitionDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ transitionDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ transitionProperty: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ transitionTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ translate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ unicodeBidi: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ userSelect: string; vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ visibility: string; /** * @deprecated This is a legacy alias of \`alignContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ webkitAlignContent: string; /** * @deprecated This is a legacy alias of \`alignItems\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ webkitAlignItems: string; /** * @deprecated This is a legacy alias of \`alignSelf\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ webkitAlignSelf: string; /** * @deprecated This is a legacy alias of \`animation\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ webkitAnimation: string; /** * @deprecated This is a legacy alias of \`animationDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ webkitAnimationDelay: string; /** * @deprecated This is a legacy alias of \`animationDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ webkitAnimationDirection: string; /** * @deprecated This is a legacy alias of \`animationDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ webkitAnimationDuration: string; /** * @deprecated This is a legacy alias of \`animationFillMode\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ webkitAnimationFillMode: string; /** * @deprecated This is a legacy alias of \`animationIterationCount\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ webkitAnimationIterationCount: string; /** * @deprecated This is a legacy alias of \`animationName\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ webkitAnimationName: string; /** * @deprecated This is a legacy alias of \`animationPlayState\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ webkitAnimationPlayState: string; /** * @deprecated This is a legacy alias of \`animationTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ webkitAnimationTimingFunction: string; /** * @deprecated This is a legacy alias of \`appearance\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ webkitAppearance: string; /** * @deprecated This is a legacy alias of \`backfaceVisibility\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ webkitBackfaceVisibility: string; /** * @deprecated This is a legacy alias of \`backgroundClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ webkitBackgroundClip: string; /** * @deprecated This is a legacy alias of \`backgroundOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ webkitBackgroundOrigin: string; /** * @deprecated This is a legacy alias of \`backgroundSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ webkitBackgroundSize: string; /** * @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ webkitBorderBottomLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderBottomRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ webkitBorderBottomRightRadius: string; /** * @deprecated This is a legacy alias of \`borderRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ webkitBorderRadius: string; /** * @deprecated This is a legacy alias of \`borderTopLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ webkitBorderTopLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderTopRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ webkitBorderTopRightRadius: string; /** * @deprecated This is a legacy alias of \`boxAlign\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) */ webkitBoxAlign: string; /** * @deprecated This is a legacy alias of \`boxFlex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) */ webkitBoxFlex: string; /** * @deprecated This is a legacy alias of \`boxOrdinalGroup\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) */ webkitBoxOrdinalGroup: string; /** * @deprecated This is a legacy alias of \`boxOrient\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) */ webkitBoxOrient: string; /** * @deprecated This is a legacy alias of \`boxPack\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) */ webkitBoxPack: string; /** * @deprecated This is a legacy alias of \`boxShadow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ webkitBoxShadow: string; /** * @deprecated This is a legacy alias of \`boxSizing\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ webkitBoxSizing: string; /** * @deprecated This is a legacy alias of \`filter\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ webkitFilter: string; /** * @deprecated This is a legacy alias of \`flex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ webkitFlex: string; /** * @deprecated This is a legacy alias of \`flexBasis\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ webkitFlexBasis: string; /** * @deprecated This is a legacy alias of \`flexDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ webkitFlexDirection: string; /** * @deprecated This is a legacy alias of \`flexFlow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ webkitFlexFlow: string; /** * @deprecated This is a legacy alias of \`flexGrow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ webkitFlexGrow: string; /** * @deprecated This is a legacy alias of \`flexShrink\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ webkitFlexShrink: string; /** * @deprecated This is a legacy alias of \`flexWrap\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ webkitFlexWrap: string; /** * @deprecated This is a legacy alias of \`justifyContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ webkitJustifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */ webkitLineClamp: string; /** * @deprecated This is a legacy alias of \`mask\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ webkitMask: string; /** * @deprecated This is a legacy alias of \`maskBorder\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) */ webkitMaskBoxImage: string; /** * @deprecated This is a legacy alias of \`maskBorderOutset\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) */ webkitMaskBoxImageOutset: string; /** * @deprecated This is a legacy alias of \`maskBorderRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) */ webkitMaskBoxImageRepeat: string; /** * @deprecated This is a legacy alias of \`maskBorderSlice\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) */ webkitMaskBoxImageSlice: string; /** * @deprecated This is a legacy alias of \`maskBorderSource\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) */ webkitMaskBoxImageSource: string; /** * @deprecated This is a legacy alias of \`maskBorderWidth\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) */ webkitMaskBoxImageWidth: string; /** * @deprecated This is a legacy alias of \`maskClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ webkitMaskClip: string; /** * @deprecated This is a legacy alias of \`maskComposite\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ webkitMaskComposite: string; /** * @deprecated This is a legacy alias of \`maskImage\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ webkitMaskImage: string; /** * @deprecated This is a legacy alias of \`maskOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ webkitMaskOrigin: string; /** * @deprecated This is a legacy alias of \`maskPosition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ webkitMaskPosition: string; /** * @deprecated This is a legacy alias of \`maskRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ webkitMaskRepeat: string; /** * @deprecated This is a legacy alias of \`maskSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ webkitMaskSize: string; /** * @deprecated This is a legacy alias of \`order\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ webkitOrder: string; /** * @deprecated This is a legacy alias of \`perspective\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ webkitPerspective: string; /** * @deprecated This is a legacy alias of \`perspectiveOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ webkitPerspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ webkitTextFillColor: string; /** * @deprecated This is a legacy alias of \`textSizeAdjust\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) */ webkitTextSizeAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ webkitTextStroke: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ webkitTextStrokeColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ webkitTextStrokeWidth: string; /** * @deprecated This is a legacy alias of \`transform\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ webkitTransform: string; /** * @deprecated This is a legacy alias of \`transformOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ webkitTransformOrigin: string; /** * @deprecated This is a legacy alias of \`transformStyle\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ webkitTransformStyle: string; /** * @deprecated This is a legacy alias of \`transition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ webkitTransition: string; /** * @deprecated This is a legacy alias of \`transitionDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ webkitTransitionDelay: string; /** * @deprecated This is a legacy alias of \`transitionDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ webkitTransitionDuration: string; /** * @deprecated This is a legacy alias of \`transitionProperty\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ webkitTransitionProperty: string; /** * @deprecated This is a legacy alias of \`transitionTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ webkitTransitionTimingFunction: string; /** * @deprecated This is a legacy alias of \`userSelect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ webkitUserSelect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ whiteSpace: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ widows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ width: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ willChange: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ wordBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ wordSpacing: string; /** @deprecated */ wordWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ writingMode: string; x: string; y: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ zIndex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ getPropertyPriority(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ getPropertyValue(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ item(index: number): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ removeProperty(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ setProperty(property: string, value: string | null, priority?: string): void; [index: number]: string; } declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; }; /** * CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) */ interface CSSStyleRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ readonly style: CSSStyleDeclaration; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; } declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; }; /** * A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) */ interface CSSStyleSheet extends StyleSheet { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ readonly cssRules: CSSRuleList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ readonly ownerRule: CSSRule | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) */ readonly rules: CSSRuleList; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) */ addRule(selector?: string, style?: string, index?: number): number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ deleteRule(index: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ insertRule(rule: string, index?: number): number; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) */ removeRule(index?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ replace(text: string): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ replaceSync(text: string): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(options?: CSSStyleSheetInit): CSSStyleSheet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ interface CSSStyleValue { toString(): string; } declare var CSSStyleValue: { prototype: CSSStyleValue; new(): CSSStyleValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ parse(property: string, cssText: string): CSSStyleValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ parseAll(property: string, cssText: string): CSSStyleValue[]; }; /** * An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) */ interface CSSSupportsRule extends CSSConditionRule { } declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ interface CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ toMatrix(): DOMMatrix; toString(): string; } declare var CSSTransformComponent: { prototype: CSSTransformComponent; new(): CSSTransformComponent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ interface CSSTransformValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ readonly is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ toMatrix(): DOMMatrix; forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; [index: number]: CSSTransformComponent; } declare var CSSTransformValue: { prototype: CSSTransformValue; new(transforms: CSSTransformComponent[]): CSSTransformValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ interface CSSTransition extends Animation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ readonly transitionProperty: string; addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSTransition: { prototype: CSSTransition; new(): CSSTransition; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ interface CSSTranslate extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ x: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ y: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ z: CSSNumericValue; } declare var CSSTranslate: { prototype: CSSTranslate; new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ readonly unit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ value: number; } declare var CSSUnitValue: { prototype: CSSUnitValue; new(value: number, unit: string): CSSUnitValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ interface CSSUnparsedValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ readonly length: number; forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; [index: number]: CSSUnparsedSegment; } declare var CSSUnparsedValue: { prototype: CSSUnparsedValue; new(members: CSSUnparsedSegment[]): CSSUnparsedValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ interface CSSVariableReferenceValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ readonly fallback: CSSUnparsedValue | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ variable: string; } declare var CSSVariableReferenceValue: { prototype: CSSVariableReferenceValue; new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; }; /** * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) */ interface Cache { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ add(request: RequestInfo | URL): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ addAll(requests: RequestInfo[]): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ put(request: RequestInfo | URL, response: Response): Promise; } declare var Cache: { prototype: Cache; new(): Cache; }; /** * The storage for Cache objects. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) */ interface CacheStorage { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ delete(cacheName: string): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ has(cacheName: string): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ keys(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ open(cacheName: string): Promise; } declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ readonly canvas: HTMLCanvasElement; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ requestFrame(): void; addEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CanvasCaptureMediaStreamTrack: { prototype: CanvasCaptureMediaStreamTrack; new(): CanvasCaptureMediaStreamTrack; }; interface CanvasCompositing { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ globalAlpha: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ globalCompositeOperation: GlobalCompositeOperation; } interface CanvasDrawImage { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ drawImage(image: CanvasImageSource, dx: number, dy: number): void; drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; } interface CanvasDrawPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ beginPath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ clip(fillRule?: CanvasFillRule): void; clip(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ fill(fillRule?: CanvasFillRule): void; fill(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ isPointInStroke(x: number, y: number): boolean; isPointInStroke(path: Path2D, x: number, y: number): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ stroke(): void; stroke(path: Path2D): void; } interface CanvasFillStrokeStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ fillStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ strokeStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; } interface CanvasFilters { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ filter: string; } /** * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) */ interface CanvasGradient { /** * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. * * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) */ addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; }; interface CanvasImageData { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; createImageData(imagedata: ImageData): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ putImageData(imagedata: ImageData, dx: number, dy: number): void; putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; } interface CanvasImageSmoothing { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ imageSmoothingEnabled: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ imageSmoothingQuality: ImageSmoothingQuality; } interface CanvasPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ closePath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ lineTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ moveTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ rect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; } interface CanvasPathDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ lineCap: CanvasLineCap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ lineDashOffset: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ lineJoin: CanvasLineJoin; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ lineWidth: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ miterLimit: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ getLineDash(): number[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ setLineDash(segments: number[]): void; } /** * An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern) */ interface CanvasPattern { /** * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) */ setTransform(transform?: DOMMatrix2DInit): void; } declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; }; interface CanvasRect { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ clearRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ fillRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ strokeRect(x: number, y: number, w: number, h: number): void; } /** * The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: HTMLCanvasElement; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ getContextAttributes(): CanvasRenderingContext2DSettings; } declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; }; interface CanvasShadowStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ shadowBlur: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ shadowColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ shadowOffsetX: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ shadowOffsetY: number; } interface CanvasState { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ reset(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ restore(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ save(): void; } interface CanvasText { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ fillText(text: string, x: number, y: number, maxWidth?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ measureText(text: string): TextMetrics; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ strokeText(text: string, x: number, y: number, maxWidth?: number): void; } interface CanvasTextDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ direction: CanvasDirection; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ fontStretch: CanvasFontStretch; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ fontVariantCaps: CanvasFontVariantCaps; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ textAlign: CanvasTextAlign; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ textBaseline: CanvasTextBaseline; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ textRendering: CanvasTextRendering; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ wordSpacing: string; } interface CanvasTransform { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ getTransform(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ resetTransform(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ rotate(angle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ scale(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; setTransform(transform?: DOMMatrix2DInit): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ transform(a: number, b: number, c: number, d: number, e: number, f: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ translate(x: number, y: number): void; } interface CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ drawFocusIfNeeded(element: Element): void; drawFocusIfNeeded(path: Path2D, element: Element): void; } /** * The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode) */ interface ChannelMergerNode extends AudioNode { } declare var ChannelMergerNode: { prototype: ChannelMergerNode; new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode; }; /** * The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode) */ interface ChannelSplitterNode extends AudioNode { } declare var ChannelSplitterNode: { prototype: ChannelSplitterNode; new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode; }; /** * The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) */ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ data: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ readonly length: number; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ appendData(data: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ deleteData(offset: number, count: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ insertData(offset: number, data: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ replaceData(offset: number, count: number, data: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ substringData(offset: number, count: number): string; } declare var CharacterData: { prototype: CharacterData; new(): CharacterData; }; interface ChildNode extends Node { /** * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) */ after(...nodes: (Node | string)[]): void; /** * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) */ before(...nodes: (Node | string)[]): void; /** * Removes node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) */ remove(): void; /** * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) */ replaceWith(...nodes: (Node | string)[]): void; } /** @deprecated */ interface ClientRect extends DOMRect { } /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) */ interface Clipboard extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ read(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ readText(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ write(data: ClipboardItems): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ writeText(data: string): Promise; } declare var Clipboard: { prototype: Clipboard; new(): Clipboard; }; /** * Events providing information related to modification of the clipboard, that is cut, copy, and paste events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) */ interface ClipboardEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ readonly clipboardData: DataTransfer | null; } declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ interface ClipboardItem { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ readonly types: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ getType(type: string): Promise; } declare var ClipboardItem: { prototype: ClipboardItem; new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; }; /** * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) */ interface CloseEvent extends Event { /** * Returns the WebSocket connection close code provided by the server. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) */ readonly code: number; /** * Returns the WebSocket connection close reason provided by the server. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) */ readonly reason: string; /** * Returns true if the connection closed cleanly; false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) */ readonly wasClean: boolean; } declare var CloseEvent: { prototype: CloseEvent; new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; /** * Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment) */ interface Comment extends CharacterData { } declare var Comment: { prototype: Comment; new(data?: string): Comment; }; /** * The DOM CompositionEvent represents events that occur due to the user indirectly entering text. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) */ interface CompositionEvent extends UIEvent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ readonly data: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) */ initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; } declare var CompositionEvent: { prototype: CompositionEvent; new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ interface CompressionStream extends GenericTransformStream { } declare var CompressionStream: { prototype: CompressionStream; new(format: CompressionFormat): CompressionStream; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ interface ConstantSourceNode extends AudioScheduledSourceNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ readonly offset: AudioParam; addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ConstantSourceNode: { prototype: ConstantSourceNode; new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; }; /** * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) */ interface ConvolverNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ buffer: AudioBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ normalize: boolean; } declare var ConvolverNode: { prototype: ConvolverNode; new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; /** * This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) */ interface CountQueuingStrategy extends QueuingStrategy { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var CountQueuingStrategy: { prototype: CountQueuingStrategy; new(init: QueuingStrategyInit): CountQueuingStrategy; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) */ interface Credential { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ readonly id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ readonly type: string; } declare var Credential: { prototype: Credential; new(): Credential; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) */ interface CredentialsContainer { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ create(options?: CredentialCreationOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ get(options?: CredentialRequestOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ preventSilentAccess(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ store(credential: Credential): Promise; } declare var CredentialsContainer: { prototype: CredentialsContainer; new(): CredentialsContainer; }; /** * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) */ interface Crypto { /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) */ readonly subtle: SubtleCrypto; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ getRandomValues(array: T): T; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) */ randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; } declare var Crypto: { prototype: Crypto; new(): Crypto; }; /** * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) */ interface CryptoKey { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ readonly algorithm: KeyAlgorithm; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ readonly extractable: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ readonly type: KeyType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ interface CustomElementRegistry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ get(name: string): CustomElementConstructor | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ getName(constructor: CustomElementConstructor): string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ upgrade(root: Node): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ whenDefined(name: string): Promise; } declare var CustomElementRegistry: { prototype: CustomElementRegistry; new(): CustomElementRegistry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ interface CustomEvent extends Event { /** * Returns any custom data event was created with. Typically used for synthetic events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) */ readonly detail: T; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) */ initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; } declare var CustomEvent: { prototype: CustomEvent; new(type: string, eventInitDict?: CustomEventInit): CustomEvent; }; /** * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) */ interface DOMException extends Error { /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) */ readonly code: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ readonly message: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ readonly name: string; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; } declare var DOMException: { prototype: DOMException; new(message?: string, name?: string): DOMException; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; }; /** * An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) */ interface DOMImplementation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ createHTMLDocument(title?: string): Document; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) */ hasFeature(...args: any[]): true; } declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ interface DOMMatrix extends DOMMatrixReadOnly { a: number; b: number; c: number; d: number; e: number; f: number; m11: number; m12: number; m13: number; m14: number; m21: number; m22: number; m23: number; m24: number; m31: number; m32: number; m33: number; m34: number; m41: number; m42: number; m43: number; m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; setMatrixValue(transformList: string): DOMMatrix; skewXSelf(sx?: number): DOMMatrix; skewYSelf(sy?: number): DOMMatrix; translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } declare var DOMMatrix: { prototype: DOMMatrix; new(init?: string | number[]): DOMMatrix; fromFloat32Array(array32: Float32Array): DOMMatrix; fromFloat64Array(array64: Float64Array): DOMMatrix; fromMatrix(other?: DOMMatrixInit): DOMMatrix; }; type SVGMatrix = DOMMatrix; declare var SVGMatrix: typeof DOMMatrix; type WebKitCSSMatrix = DOMMatrix; declare var WebKitCSSMatrix: typeof DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ interface DOMMatrixReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */ readonly a: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */ readonly b: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */ readonly c: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */ readonly d: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */ readonly e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */ readonly f: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */ readonly m11: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */ readonly m12: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */ readonly m13: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */ readonly m14: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */ readonly m21: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */ readonly m22: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */ readonly m23: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */ readonly m24: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */ readonly m31: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */ readonly m32: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */ readonly m33: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */ readonly m34: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */ readonly m41: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */ readonly m42: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */ readonly m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */ readonly m44: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ flipY(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ inverse(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ rotateFromVector(x?: number, y?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform) */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ skewX(sx?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ skewY(sy?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; toJSON(): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ translate(tx?: number, ty?: number, tz?: number): DOMMatrix; toString(): string; } declare var DOMMatrixReadOnly: { prototype: DOMMatrixReadOnly; new(init?: string | number[]): DOMMatrixReadOnly; fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; }; /** * Provides the ability to parse XML or HTML source code from a string into a DOM Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser) */ interface DOMParser { /** * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). * * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. * * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. * * Values other than the above for type will cause a TypeError exception to be thrown. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ parseFromString(string: string, type: DOMParserSupportedType): Document; } declare var DOMParser: { prototype: DOMParser; new(): DOMParser; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ interface DOMPoint extends DOMPointReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ w: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ y: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ z: number; } declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPoint; }; type SVGPoint = DOMPoint; declare var SVGPoint: typeof DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ interface DOMPointReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ readonly w: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ readonly y: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ readonly z: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ matrixTransform(matrix?: DOMMatrixInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ toJSON(): any; } declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ interface DOMQuad { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ readonly p1: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ readonly p2: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ readonly p3: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ readonly p4: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; toJSON(): any; } declare var DOMQuad: { prototype: DOMQuad; new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; fromQuad(other?: DOMQuadInit): DOMQuad; fromRect(other?: DOMRectInit): DOMQuad; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { height: number; width: number; x: number; y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; interface DOMRectList { readonly length: number; item(index: number): DOMRect | null; [index: number]: DOMRect; } declare var DOMRectList: { prototype: DOMRectList; new(): DOMRectList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ interface DOMRectReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ readonly bottom: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ readonly height: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ readonly left: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ readonly right: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ readonly top: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ readonly width: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; toJSON(): any; } declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** * A type returned by some APIs which contains a list of DOMString (strings). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) */ interface DOMStringList { /** * Returns the number of strings in strings. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) */ readonly length: number; /** * Returns true if strings contains string, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) */ contains(string: string): boolean; /** * Returns the string with index index from strings. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) */ item(index: number): string | null; [index: number]: string; } declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; }; /** * Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap) */ interface DOMStringMap { [name: string]: string | undefined; } declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; }; /** * A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) */ interface DOMTokenList { /** * Returns the number of tokens. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) */ readonly length: number; /** * Returns the associated set as string. * * Can be set, to change the associated attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) */ value: string; toString(): string; /** * Adds all arguments passed, except those already present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) */ add(...tokens: string[]): void; /** * Returns true if token is present, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) */ contains(token: string): boolean; /** * Returns the token with index index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) */ item(index: number): string | null; /** * Removes arguments passed, if they are present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) */ remove(...tokens: string[]): void; /** * Replaces token with newToken. * * Returns true if token was replaced with newToken, and false otherwise. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) */ replace(token: string, newToken: string): boolean; /** * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. * * Throws a TypeError if the associated attribute has no supported tokens defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) */ supports(token: string): boolean; /** * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). * * Returns true if token is now present, and false otherwise. * * Throws a "SyntaxError" DOMException if token is empty. * * Throws an "InvalidCharacterError" DOMException if token contains any spaces. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) */ toggle(token: string, force?: boolean): boolean; forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; [index: number]: string; } declare var DOMTokenList: { prototype: DOMTokenList; new(): DOMTokenList; }; /** * Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) */ interface DataTransfer { /** * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. * * Can be set, to change the selected operation. * * The possible values are "none", "copy", "link", and "move". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) */ dropEffect: "none" | "copy" | "link" | "move"; /** * Returns the kinds of operations that are to be allowed. * * Can be set (during the dragstart event), to change the allowed operations. * * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) */ effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; /** * Returns a FileList of the files being dragged, if any. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) */ readonly files: FileList; /** * Returns a DataTransferItemList object, with the drag data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) */ readonly items: DataTransferItemList; /** * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) */ readonly types: ReadonlyArray; /** * Removes the data of the specified formats. Removes all data if the argument is omitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) */ clearData(format?: string): void; /** * Returns the specified data. If there is no such data, returns the empty string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) */ getData(format: string): string; /** * Adds the specified data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) */ setData(format: string, data: string): void; /** * Uses the given element to update the drag feedback, replacing any previously specified feedback. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) */ setDragImage(image: Element, x: number, y: number): void; } declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; }; /** * One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) */ interface DataTransferItem { /** * Returns the drag data item kind, one of: "string", "file". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) */ readonly kind: string; /** * Returns the drag data item type string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) */ readonly type: string; /** * Returns a File object, if the drag data item kind is File. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) */ getAsFile(): File | null; /** * Invokes the callback with the string data as the argument, if the drag data item kind is text. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) */ getAsString(callback: FunctionStringCallback | null): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ webkitGetAsEntry(): FileSystemEntry | null; } declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; }; /** * A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) */ interface DataTransferItemList { /** * Returns the number of items in the drag data store. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) */ readonly length: number; /** * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) */ add(data: string, type: string): DataTransferItem | null; add(data: File): DataTransferItem | null; /** * Removes all the entries in the drag data store. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) */ clear(): void; /** * Removes the indexth entry in the drag data store. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) */ remove(index: number): void; [index: number]: DataTransferItem; } declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ interface DecompressionStream extends GenericTransformStream { } declare var DecompressionStream: { prototype: DecompressionStream; new(format: CompressionFormat): DecompressionStream; }; /** * A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode) */ interface DelayNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ readonly delayTime: AudioParam; } declare var DelayNode: { prototype: DelayNode; new(context: BaseAudioContext, options?: DelayOptions): DelayNode; }; /** * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) */ interface DeviceMotionEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ readonly acceleration: DeviceMotionEventAcceleration | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ readonly interval: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ readonly rotationRate: DeviceMotionEventRotationRate | null; } declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) */ interface DeviceMotionEventAcceleration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ readonly x: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ readonly y: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ readonly z: number | null; } /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) */ interface DeviceMotionEventRotationRate { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ readonly alpha: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ readonly beta: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ readonly gamma: number | null; } /** * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) */ interface DeviceOrientationEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ readonly absolute: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ readonly alpha: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ readonly beta: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ readonly gamma: number | null; } declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; }; interface DocumentEventMap extends GlobalEventHandlersEventMap { "DOMContentLoaded": Event; "fullscreenchange": Event; "fullscreenerror": Event; "pointerlockchange": Event; "pointerlockerror": Event; "readystatechange": Event; "visibilitychange": Event; } /** * Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** * Sets or gets the URL for the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) */ readonly URL: string; /** * Sets or gets the color of all active links in the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) */ alinkColor: string; /** * Returns a reference to the collection of elements contained by the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) */ readonly all: HTMLAllCollection; /** * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) */ readonly anchors: HTMLCollectionOf; /** * Retrieves a collection of all applet objects in the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) */ readonly applets: HTMLCollection; /** * Deprecated. Sets or retrieves a value that indicates the background color behind the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) */ bgColor: string; /** * Specifies the beginning and end of the document body. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) */ body: HTMLElement; /** * Returns document's encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly characterSet: string; /** * Gets or sets the character set used to encode the object. * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly charset: string; /** * Gets a value that indicates whether standards-compliant mode is switched on for the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) */ readonly compatMode: string; /** * Returns document's content type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) */ readonly contentType: string; /** * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. * * Can be set, to add a new cookie to the element's set of HTTP cookies. * * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) */ cookie: string; /** * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. * * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) */ readonly currentScript: HTMLOrSVGScriptElement | null; /** * Returns the Window object of the active document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) */ readonly defaultView: (WindowProxy & typeof globalThis) | null; /** * Sets or gets a value that indicates whether the document can be edited. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) */ designMode: string; /** * Sets or retrieves a value that indicates the reading order of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) */ dir: string; /** * Gets an object representing the document type declaration associated with the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) */ readonly doctype: DocumentType | null; /** * Gets a reference to the root node of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) */ readonly documentElement: HTMLElement; /** * Returns document's URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) */ readonly documentURI: string; /** * Sets or gets the security domain of the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) */ domain: string; /** * Retrieves a collection of all embed objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) */ readonly embeds: HTMLCollectionOf; /** * Sets or gets the foreground (text) color of the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) */ fgColor: string; /** * Retrieves a collection, in source order, of all form objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) */ readonly forms: HTMLCollectionOf; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) */ readonly fullscreen: boolean; /** * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) */ readonly fullscreenEnabled: boolean; /** * Returns the head element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) */ readonly head: HTMLHeadElement; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ readonly hidden: boolean; /** * Retrieves a collection, in source order, of img objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) */ readonly images: HTMLCollectionOf; /** * Gets the implementation object of the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) */ readonly implementation: DOMImplementation; /** * Returns the character encoding used to create the webpage that is loaded into the document object. * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly inputEncoding: string; /** * Gets the date that the page was last modified, if the page supplies one. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) */ readonly lastModified: string; /** * Sets or gets the color of the document links. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) */ linkColor: string; /** * Retrieves a collection of all a objects that specify the href property and all area objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) */ readonly links: HTMLCollectionOf; /** * Contains information about the current URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) */ get location(): Location; set location(href: string | Location); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ onfullscreenchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ onfullscreenerror: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ onpointerlockchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ onpointerlockerror: ((this: Document, ev: Event) => any) | null; /** * Fires when the state of the object has changed. * @param ev The event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) */ onreadystatechange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ onvisibilitychange: ((this: Document, ev: Event) => any) | null; readonly ownerDocument: null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ readonly pictureInPictureEnabled: boolean; /** * Return an HTMLCollection of the embed elements in the Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) */ readonly plugins: HTMLCollectionOf; /** * Retrieves a value that indicates the current state of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) */ readonly readyState: DocumentReadyState; /** * Gets the URL of the location that referred the user to the current page. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) */ readonly referrer: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) */ readonly rootElement: SVGSVGElement | null; /** * Retrieves a collection of all script objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) */ readonly scripts: HTMLCollectionOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ readonly scrollingElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ readonly timeline: DocumentTimeline; /** * Contains the title of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) */ title: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ readonly visibilityState: DocumentVisibilityState; /** * Sets or gets the color of the links that the user has visited. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) */ vlinkColor: string; /** * Moves node from another document and returns it. * * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) */ adoptNode(node: T): T; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents) */ captureEvents(): void; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) */ clear(): void; /** * Closes an output stream and forces the sent data to display. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) */ close(): void; /** * Creates an attribute object with a specified name. * @param name String that sets the attribute object's name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ createAttributeNS(namespace: string | null, qualifiedName: string): Attr; /** * Returns a CDATASection node whose data is data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) */ createCDATASection(data: string): CDATASection; /** * Creates a comment object with the specified data. * @param data Sets the comment object's data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) */ createComment(data: string): Comment; /** * Creates a new document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) */ createDocumentFragment(): DocumentFragment; /** * Creates an instance of the element for the specified tag. * @param tagName The name of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; /** @deprecated */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. * * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. * * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: * * localName does not match the QName production. * Namespace prefix is not null and namespace is the empty string. * Namespace prefix is "xml" and namespace is not the XML namespace. * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". * * When supplied, options's is can be used to create a customized built-in element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ createEvent(eventInterface: "AnimationEvent"): AnimationEvent; createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; createEvent(eventInterface: "BlobEvent"): BlobEvent; createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "CustomEvent"): CustomEvent; createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; createEvent(eventInterface: "DragEvent"): DragEvent; createEvent(eventInterface: "ErrorEvent"): ErrorEvent; createEvent(eventInterface: "Event"): Event; createEvent(eventInterface: "Events"): Event; createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; createEvent(eventInterface: "FormDataEvent"): FormDataEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; createEvent(eventInterface: "InputEvent"): InputEvent; createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; createEvent(eventInterface: "MessageEvent"): MessageEvent; createEvent(eventInterface: "MouseEvent"): MouseEvent; createEvent(eventInterface: "MouseEvents"): MouseEvent; createEvent(eventInterface: "MutationEvent"): MutationEvent; createEvent(eventInterface: "MutationEvents"): MutationEvent; createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; createEvent(eventInterface: "PointerEvent"): PointerEvent; createEvent(eventInterface: "PopStateEvent"): PopStateEvent; createEvent(eventInterface: "ProgressEvent"): ProgressEvent; createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; createEvent(eventInterface: "SubmitEvent"): SubmitEvent; createEvent(eventInterface: "ToggleEvent"): ToggleEvent; createEvent(eventInterface: "TouchEvent"): TouchEvent; createEvent(eventInterface: "TrackEvent"): TrackEvent; createEvent(eventInterface: "TransitionEvent"): TransitionEvent; createEvent(eventInterface: "UIEvent"): UIEvent; createEvent(eventInterface: "UIEvents"): UIEvent; createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; createEvent(eventInterface: "WheelEvent"): WheelEvent; createEvent(eventInterface: string): Event; /** * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) */ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; /** * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) */ createProcessingInstruction(target: string, data: string): ProcessingInstruction; /** * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) */ createRange(): Range; /** * Creates a text string from the specified value. * @param data String that specifies the nodeValue property of the text node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) */ createTextNode(data: string): Text; /** * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. * @param filter A custom NodeFilter function to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; /** * Executes a command on the current document, current selection, or the given range. * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. * @param showUI Display the user interface, defaults to false. * @param value Value to assign. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) */ execCommand(commandId: string, showUI?: boolean, value?: string): boolean; /** * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) */ exitFullscreen(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ exitPictureInPicture(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ exitPointerLock(): void; /** * Returns a reference to the first object with the specified value of the ID attribute. * @param elementId String that specifies the ID value. */ getElementById(elementId: string): HTMLElement | null; /** * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * Gets a collection of objects based on the value of the NAME or ID attribute. * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) */ getElementsByName(elementName: string): NodeListOf; /** * Retrieves a collection of objects based on the specified element name. * @param name Specifies the name of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. * * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. * * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. * * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) */ getSelection(): Selection | null; /** * Gets a value indicating whether the object currently has focus. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) */ hasFocus(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ hasStorageAccess(): Promise; /** * Returns a copy of node. If deep is true, the copy also includes the node's descendants. * * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) */ importNode(node: T, deep?: boolean): T; /** * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. * @param url Specifies a MIME type for the document. * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. * @param replace Specifies whether the existing entry for the document is replaced in the history list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) */ open(unused1?: string, unused2?: string): Document; open(url: string | URL, name: string, features: string): WindowProxy | null; /** * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. * @param commandId Specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) */ queryCommandEnabled(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. * @param commandId String that specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm) */ queryCommandIndeterm(commandId: string): boolean; /** * Returns a Boolean value that indicates the current state of the command. * @param commandId String that specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) */ queryCommandState(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the current command is supported on the current range. * @param commandId Specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) */ queryCommandSupported(commandId: string): boolean; /** * Returns the current value of the document, range, or current selection for the given command. * @param commandId String that specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue) */ queryCommandValue(commandId: string): string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents) */ releaseEvents(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ requestStorageAccess(): Promise; /** * Writes one or more HTML expressions to a document in the specified window. * @param content Specifies the text and HTML tags to write. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) */ write(...text: string[]): void; /** * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. * @param content The text and HTML tags to write. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) */ writeln(...text: string[]): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Document: { prototype: Document; new(): Document; }; /** * A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { readonly ownerDocument: Document; getElementById(elementId: string): HTMLElement | null; } declare var DocumentFragment: { prototype: DocumentFragment; new(): DocumentFragment; }; interface DocumentOrShadowRoot { /** * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. * * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. * * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) */ readonly activeElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ adoptedStyleSheets: CSSStyleSheet[]; /** * Returns document's fullscreen element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) */ readonly fullscreenElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ readonly pictureInPictureElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ readonly pointerLockElement: Element | null; /** * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) */ readonly styleSheets: StyleSheetList; /** * Returns the element for the specified x coordinate and the specified y coordinate. * @param x The x-offset * @param y The y-offset */ elementFromPoint(x: number, y: number): Element | null; elementsFromPoint(x: number, y: number): Element[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ getAnimations(): Animation[]; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ interface DocumentTimeline extends AnimationTimeline { } declare var DocumentTimeline: { prototype: DocumentTimeline; new(options?: DocumentTimelineOptions): DocumentTimeline; }; /** * A Node containing a doctype. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) */ interface DocumentType extends Node, ChildNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ readonly name: string; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ readonly publicId: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ readonly systemId: string; } declare var DocumentType: { prototype: DocumentType; new(): DocumentType; }; /** * A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) */ interface DragEvent extends MouseEvent { /** * Returns the DataTransfer object for the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) */ readonly dataTransfer: DataTransfer | null; } declare var DragEvent: { prototype: DragEvent; new(type: string, eventInitDict?: DragEventInit): DragEvent; }; /** * Inherits properties from its parent, AudioNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) */ interface DynamicsCompressorNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ readonly attack: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ readonly knee: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ readonly ratio: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ readonly reduction: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ readonly release: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ readonly threshold: AudioParam; } declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ interface EXT_blend_minmax { readonly MIN_EXT: 0x8007; readonly MAX_EXT: 0x8008; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ interface EXT_color_buffer_float { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */ interface EXT_color_buffer_half_float { readonly RGBA16F_EXT: 0x881A; readonly RGB16F_EXT: 0x881B; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */ interface EXT_float_blend { } /** * The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth) */ interface EXT_frag_depth { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */ interface EXT_sRGB { readonly SRGB_EXT: 0x8C40; readonly SRGB_ALPHA_EXT: 0x8C42; readonly SRGB8_ALPHA8_EXT: 0x8C43; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ interface EXT_shader_texture_lod { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */ interface EXT_texture_compression_bptc { readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */ interface EXT_texture_compression_rgtc { readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; } /** * The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic) */ interface EXT_texture_filter_anisotropic { readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */ interface EXT_texture_norm16 { readonly R16_EXT: 0x822A; readonly RG16_EXT: 0x822C; readonly RGB16_EXT: 0x8054; readonly RGBA16_EXT: 0x805B; readonly R16_SNORM_EXT: 0x8F98; readonly RG16_SNORM_EXT: 0x8F99; readonly RGB16_SNORM_EXT: 0x8F9A; readonly RGBA16_SNORM_EXT: 0x8F9B; } interface ElementEventMap { "fullscreenchange": Event; "fullscreenerror": Event; } /** * Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ readonly attributes: NamedNodeMap; /** * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) */ readonly classList: DOMTokenList; /** * Returns the value of element's class content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) */ className: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ readonly clientHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ readonly clientLeft: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ readonly clientTop: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ readonly clientWidth: number; /** * Returns the value of element's id content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) */ id: string; /** * Returns the local name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) */ readonly localName: string; /** * Returns the namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) */ readonly namespaceURI: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ onfullscreenchange: ((this: Element, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ onfullscreenerror: ((this: Element, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ outerHTML: string; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ readonly part: DOMTokenList; /** * Returns the namespace prefix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) */ readonly prefix: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ readonly scrollHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ scrollLeft: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ scrollTop: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ readonly scrollWidth: number; /** * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * Returns the value of element's slot content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) */ slot: string; /** * Returns the HTML-uppercased qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) */ readonly tagName: string; /** * Creates a shadow root for element and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) */ attachShadow(init: ShadowRootInit): ShadowRoot; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ checkVisibility(options?: CheckVisibilityOptions): boolean; /** * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) */ closest(selector: K): HTMLElementTagNameMap[K] | null; closest(selector: K): SVGElementTagNameMap[K] | null; closest(selector: K): MathMLElementTagNameMap[K] | null; closest(selectors: string): E | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ computedStyleMap(): StylePropertyMapReadOnly; /** * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) */ getAttribute(qualifiedName: string): string | null; /** * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) */ getAttributeNS(namespace: string | null, localName: string): string | null; /** * Returns the qualified names of all element's attributes. Can contain duplicates. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) */ getAttributeNames(): string[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ getAttributeNode(qualifiedName: string): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ getBoundingClientRect(): DOMRect; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ getClientRects(): DOMRectList; /** * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) */ hasAttribute(qualifiedName: string): boolean; /** * Returns true if element has an attribute whose namespace is namespace and local name is localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) */ hasAttributeNS(namespace: string | null, localName: string): boolean; /** * Returns true if element has attributes, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) */ hasAttributes(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ hasPointerCapture(pointerId: number): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ insertAdjacentElement(where: InsertPosition, element: Element): Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ insertAdjacentHTML(position: InsertPosition, text: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ insertAdjacentText(where: InsertPosition, data: string): void; /** * Returns true if matching selectors against element's root yields element, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ matches(selectors: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ releasePointerCapture(pointerId: number): void; /** * Removes element's first attribute whose qualified name is qualifiedName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) */ removeAttribute(qualifiedName: string): void; /** * Removes element's attribute whose namespace is namespace and local name is localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) */ removeAttributeNS(namespace: string | null, localName: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ removeAttributeNode(attr: Attr): Attr; /** * Displays element fullscreen and resolves promise when done. * * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) */ requestFullscreen(options?: FullscreenOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ requestPointerLock(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; /** * Sets the value of element's first attribute whose qualified name is qualifiedName to value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) */ setAttribute(qualifiedName: string, value: string): void; /** * Sets the value of element's attribute whose namespace is namespace and local name is localName to value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) */ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ setAttributeNode(attr: Attr): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ setAttributeNodeNS(attr: Attr): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ setPointerCapture(pointerId: number): void; /** * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. * * Returns true if qualifiedName is now present, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ toggleAttribute(qualifiedName: string, force?: boolean): boolean; /** * @deprecated This is a legacy alias of \`matches\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ webkitMatchesSelector(selectors: string): boolean; addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Element: { prototype: Element; new(): Element; }; interface ElementCSSInlineStyle { readonly attributeStyleMap: StylePropertyMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ readonly style: CSSStyleDeclaration; } interface ElementContentEditable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ contentEditable: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ enterKeyHint: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ inputMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ readonly isContentEditable: boolean; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ interface ElementInternals extends ARIAMixin { /** * Returns the form owner of internals's target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) */ readonly form: HTMLFormElement | null; /** * Returns a NodeList of all the label elements that internals's target element is associated with. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) */ readonly labels: NodeList; /** * Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * Returns the error message that would be shown to the user if internals's target element was to be checked for validity. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) */ readonly validationMessage: string; /** * Returns the ValidityState object for internals's target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) */ readonly validity: ValidityState; /** * Returns true if internals's target element will be validated when the form is submitted; false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) */ readonly willValidate: boolean; /** * Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) */ checkValidity(): boolean; /** * Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) */ reportValidity(): boolean; /** * Sets both the state and submission value of internals's target element to value. * * If value is null, the element won't participate in form submission. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) */ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; /** * Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) */ setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; } declare var ElementInternals: { prototype: ElementInternals; new(): ElementInternals; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ interface EncodedVideoChunk { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ readonly byteLength: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ readonly duration: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ readonly timestamp: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ readonly type: EncodedVideoChunkType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedVideoChunk: { prototype: EncodedVideoChunk; new(init: EncodedVideoChunkInit): EncodedVideoChunk; }; /** * Events providing information related to errors in scripts or in files. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) */ interface ErrorEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ readonly colno: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ readonly error: any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ readonly filename: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ readonly lineno: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ readonly message: string; } declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; }; /** * An event which takes place in the DOM. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) */ interface Event { /** * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) */ readonly bubbles: boolean; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) */ cancelBubble: boolean; /** * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) */ readonly cancelable: boolean; /** * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) */ readonly composed: boolean; /** * Returns the object whose event listener's callback is currently being invoked. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) */ readonly currentTarget: EventTarget | null; /** * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) */ readonly defaultPrevented: boolean; /** * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) */ readonly eventPhase: number; /** * Returns true if event was dispatched by the user agent, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ readonly isTrusted: boolean; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) */ returnValue: boolean; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) */ readonly srcElement: EventTarget | null; /** * Returns the object to which event is dispatched (its target). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) */ readonly target: EventTarget | null; /** * Returns the event's timestamp as the number of milliseconds measured relative to the time origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) */ readonly timeStamp: DOMHighResTimeStamp; /** * Returns the type of event, e.g. "click", "hashchange", or "submit". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) */ readonly type: string; /** * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) */ composedPath(): EventTarget[]; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) */ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; /** * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) */ preventDefault(): void; /** * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) */ stopImmediatePropagation(): void; /** * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) */ stopPropagation(): void; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; } declare var Event: { prototype: Event; new(type: string, eventInitDict?: EventInit): Event; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ interface EventCounts { forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; } declare var EventCounts: { prototype: EventCounts; new(): EventCounts; }; interface EventListener { (evt: Event): void; } interface EventListenerObject { handleEvent(object: Event): void; } interface EventSourceEventMap { "error": Event; "message": MessageEvent; "open": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */ interface EventSource extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ onerror: ((this: EventSource, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ onopen: ((this: EventSource, ev: Event) => any) | null; /** * Returns the state of this EventSource object's connection. It can have the values described below. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) */ readonly readyState: number; /** * Returns the URL providing the event stream. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) */ readonly url: string; /** * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) */ readonly withCredentials: boolean; /** * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) */ close(): void; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var EventSource: { prototype: EventSource; new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; }; /** * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) */ interface EventTarget { /** * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. * * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. * * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. * * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners. * * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. * * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. * * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) */ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; /** * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) */ dispatchEvent(event: Event): boolean; /** * Removes the event listener in target's event listener list with the same type, callback, and options. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) */ removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; } declare var EventTarget: { prototype: EventTarget; new(): EventTarget; }; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External) */ interface External { /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider) */ AddSearchProvider(): void; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled) */ IsSearchProviderInstalled(): void; } /** @deprecated */ declare var External: { prototype: External; new(): External; }; /** * Provides information about files and allows JavaScript in a web page to access their content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) */ interface File extends Blob { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ readonly lastModified: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ readonly webkitRelativePath: string; } declare var File: { prototype: File; new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** * An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) */ interface FileList { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ item(index: number): File | null; [index: number]: File; } declare var FileList: { prototype: FileList; new(): FileList; }; interface FileReaderEventMap { "abort": ProgressEvent; "error": ProgressEvent; "load": ProgressEvent; "loadend": ProgressEvent; "loadstart": ProgressEvent; "progress": ProgressEvent; } /** * Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader) */ interface FileReader extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ readonly error: DOMException | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ onload: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ readonly result: string | ArrayBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ abort(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ readAsArrayBuffer(blob: Blob): void; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) */ readAsBinaryString(blob: Blob): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ readAsDataURL(blob: Blob): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ readAsText(blob: Blob, encoding?: string): void; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ interface FileSystem { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ readonly root: FileSystemDirectoryEntry; } declare var FileSystem: { prototype: FileSystem; new(): FileSystem; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ interface FileSystemDirectoryEntry extends FileSystemEntry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ createReader(): FileSystemDirectoryReader; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryEntry: { prototype: FileSystemDirectoryEntry; new(): FileSystemDirectoryEntry; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) */ interface FileSystemDirectoryHandle extends FileSystemHandle { readonly kind: "directory"; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ resolve(possibleDescendant: FileSystemHandle): Promise; } declare var FileSystemDirectoryHandle: { prototype: FileSystemDirectoryHandle; new(): FileSystemDirectoryHandle; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ interface FileSystemDirectoryReader { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryReader: { prototype: FileSystemDirectoryReader; new(): FileSystemDirectoryReader; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ interface FileSystemEntry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ readonly filesystem: FileSystem; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ readonly fullPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ readonly isDirectory: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ readonly isFile: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemEntry: { prototype: FileSystemEntry; new(): FileSystemEntry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ interface FileSystemFileEntry extends FileSystemEntry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemFileEntry: { prototype: FileSystemFileEntry; new(): FileSystemFileEntry; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) */ interface FileSystemFileHandle extends FileSystemHandle { readonly kind: "file"; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ createWritable(options?: FileSystemCreateWritableOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ getFile(): Promise; } declare var FileSystemFileHandle: { prototype: FileSystemFileHandle; new(): FileSystemFileHandle; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) */ interface FileSystemHandle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ readonly kind: FileSystemHandleKind; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ isSameEntry(other: FileSystemHandle): Promise; } declare var FileSystemHandle: { prototype: FileSystemHandle; new(): FileSystemHandle; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) */ interface FileSystemWritableFileStream extends WritableStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ seek(position: number): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ truncate(size: number): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ write(data: FileSystemWriteChunkType): Promise; } declare var FileSystemWritableFileStream: { prototype: FileSystemWritableFileStream; new(): FileSystemWritableFileStream; }; /** * Focus-related events like focus, blur, focusin, or focusout. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) */ interface FocusEvent extends UIEvent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ readonly relatedTarget: EventTarget | null; } declare var FocusEvent: { prototype: FocusEvent; new(type: string, eventInitDict?: FocusEventInit): FocusEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ interface FontFace { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ ascentOverride: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ descentOverride: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ display: FontDisplay; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ family: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ featureSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ lineGapOverride: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ readonly loaded: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ readonly status: FontFaceLoadStatus; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ stretch: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ style: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ load(): Promise; } declare var FontFace: { prototype: FontFace; new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { "loading": Event; "loadingdone": Event; "loadingerror": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ interface FontFaceSet extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ onloading: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ readonly status: FontFaceSetLoadStatus; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ check(font: string, text?: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ load(font: string, text?: string): Promise; forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FontFaceSet: { prototype: FontFaceSet; new(initialFaces: FontFace[]): FontFaceSet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ interface FontFaceSetLoadEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ readonly fontfaces: ReadonlyArray; } declare var FontFaceSetLoadEvent: { prototype: FontFaceSetLoadEvent; new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; }; interface FontFaceSource { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ readonly fonts: FontFaceSet; } /** * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) */ interface FormData { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ append(name: string, value: string | Blob): void; append(name: string, value: string): void; append(name: string, blobValue: Blob, filename?: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ delete(name: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ get(name: string): FormDataEntryValue | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ getAll(name: string): FormDataEntryValue[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ has(name: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ set(name: string, value: string | Blob): void; set(name: string, value: string): void; set(name: string, blobValue: Blob, filename?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; } declare var FormData: { prototype: FormData; new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ interface FormDataEvent extends Event { /** * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) */ readonly formData: FormData; } declare var FormDataEvent: { prototype: FormDataEvent; new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; }; /** * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) */ interface GainNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ readonly gain: AudioParam; } declare var GainNode: { prototype: GainNode; new(context: BaseAudioContext, options?: GainOptions): GainNode; }; /** * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) */ interface Gamepad { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ readonly axes: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ readonly buttons: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ readonly connected: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ readonly id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ readonly index: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ readonly mapping: GamepadMappingType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ readonly timestamp: DOMHighResTimeStamp; readonly vibrationActuator: GamepadHapticActuator | null; } declare var Gamepad: { prototype: Gamepad; new(): Gamepad; }; /** * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) */ interface GamepadButton { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ readonly pressed: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ readonly touched: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ readonly value: number; } declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; }; /** * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) */ interface GamepadEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ readonly gamepad: Gamepad; } declare var GamepadEvent: { prototype: GamepadEvent; new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; }; /** * This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) */ interface GamepadHapticActuator { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */ readonly type: GamepadHapticActuatorType; playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; reset(): Promise; } declare var GamepadHapticActuator: { prototype: GamepadHapticActuator; new(): GamepadHapticActuator; }; interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ readonly writable: WritableStream; } /** * An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) */ interface Geolocation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ clearWatch(watchId: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; } declare var Geolocation: { prototype: Geolocation; new(): Geolocation; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) */ interface GeolocationCoordinates { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ readonly accuracy: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ readonly altitude: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ readonly altitudeAccuracy: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ readonly heading: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ readonly latitude: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ readonly longitude: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ readonly speed: number | null; } declare var GeolocationCoordinates: { prototype: GeolocationCoordinates; new(): GeolocationCoordinates; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) */ interface GeolocationPosition { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ readonly coords: GeolocationCoordinates; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ readonly timestamp: EpochTimeStamp; } declare var GeolocationPosition: { prototype: GeolocationPosition; new(): GeolocationPosition; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ interface GeolocationPositionError { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ readonly code: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ readonly message: string; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; } declare var GeolocationPositionError: { prototype: GeolocationPositionError; new(): GeolocationPositionError; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; }; interface GlobalEventHandlersEventMap { "abort": UIEvent; "animationcancel": AnimationEvent; "animationend": AnimationEvent; "animationiteration": AnimationEvent; "animationstart": AnimationEvent; "auxclick": MouseEvent; "beforeinput": InputEvent; "beforetoggle": Event; "blur": FocusEvent; "cancel": Event; "canplay": Event; "canplaythrough": Event; "change": Event; "click": MouseEvent; "close": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; "contextmenu": MouseEvent; "copy": ClipboardEvent; "cuechange": Event; "cut": ClipboardEvent; "dblclick": MouseEvent; "drag": DragEvent; "dragend": DragEvent; "dragenter": DragEvent; "dragleave": DragEvent; "dragover": DragEvent; "dragstart": DragEvent; "drop": DragEvent; "durationchange": Event; "emptied": Event; "ended": Event; "error": ErrorEvent; "focus": FocusEvent; "focusin": FocusEvent; "focusout": FocusEvent; "formdata": FormDataEvent; "gotpointercapture": PointerEvent; "input": Event; "invalid": Event; "keydown": KeyboardEvent; "keypress": KeyboardEvent; "keyup": KeyboardEvent; "load": Event; "loadeddata": Event; "loadedmetadata": Event; "loadstart": Event; "lostpointercapture": PointerEvent; "mousedown": MouseEvent; "mouseenter": MouseEvent; "mouseleave": MouseEvent; "mousemove": MouseEvent; "mouseout": MouseEvent; "mouseover": MouseEvent; "mouseup": MouseEvent; "paste": ClipboardEvent; "pause": Event; "play": Event; "playing": Event; "pointercancel": PointerEvent; "pointerdown": PointerEvent; "pointerenter": PointerEvent; "pointerleave": PointerEvent; "pointermove": PointerEvent; "pointerout": PointerEvent; "pointerover": PointerEvent; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; "reset": Event; "resize": UIEvent; "scroll": Event; "scrollend": Event; "securitypolicyviolation": SecurityPolicyViolationEvent; "seeked": Event; "seeking": Event; "select": Event; "selectionchange": Event; "selectstart": Event; "slotchange": Event; "stalled": Event; "submit": SubmitEvent; "suspend": Event; "timeupdate": Event; "toggle": Event; "touchcancel": TouchEvent; "touchend": TouchEvent; "touchmove": TouchEvent; "touchstart": TouchEvent; "transitioncancel": TransitionEvent; "transitionend": TransitionEvent; "transitionrun": TransitionEvent; "transitionstart": TransitionEvent; "volumechange": Event; "waiting": Event; "webkitanimationend": Event; "webkitanimationiteration": Event; "webkitanimationstart": Event; "webkittransitionend": Event; "wheel": WheelEvent; } interface GlobalEventHandlers { /** * Fires when the user aborts the download. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the object loses the input focus. * @param ev The focus event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback is possible, but would require further buffering. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the contents of the object or selection have changed. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the left mouse button on the object * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Fires when the user double-clicks the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires on the source object continuously during a drag operation. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user releases the mouse at the close of a drag operation. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element when the user drags the object to a valid drop target. * @param ev The drag event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. * @param ev The drag event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element continuously while the user drags the object over a valid drop target. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user starts to drag a text selection or selected object. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Occurs when the duration attribute is updated. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the media element is reset to its initial state. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the end of playback is reached. * @param ev The event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when an error occurs during object loading. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** * Fires when the object receives focus. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user presses a key. * @param ev The keyboard event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user presses an alphanumeric key. * @param ev The event. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) */ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user releases a key. * @param ev The keyboard event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires immediately after the browser loads the object. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event) */ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when media data is loaded at the current playback position. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the duration and dimensions of the media have been determined. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when Internet Explorer begins looking for media data. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse over the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer outside the boundaries of the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer into the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user releases a mouse button while the mouse is over the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Occurs when playback is paused. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the play method is requested. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the audio or video has started playing. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Occurs to indicate progress while downloading media data. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; /** * Occurs when the playback rate is increased or decreased. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user resets a form. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** * Fires when the user repositions the scroll box in the scroll bar on the object. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; /** * Occurs when the seek operation ends. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the current playback position is moved. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the current selection changes. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the download has stopped. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; /** * Occurs if the load operation has been intentionally halted. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs to indicate the current playback position. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback stops because the next frame of a video resource is not available. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationiteration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationstart\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`ontransitionend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * Returns the number of elements in the collection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * Returns the item with index index from the collection (determined by tree order). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * Returns the item with ID or name name from the collection. * * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. * * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ namedItem(name: string): HTMLCollection | Element | null; [index: number]: Element; } declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; }; /** * Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) */ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves the character set used to encode the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset) */ charset: string; /** * Sets or retrieves the coordinates of the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords) */ coords: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ download: string; /** * Sets or retrieves the language code of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) */ hreflang: string; /** * Sets or retrieves the shape of the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name) */ name: string; ping: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ referrerPolicy: string; /** * Sets or retrieves the relationship between the object and the destination of the link. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ readonly relList: DOMTokenList; /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev) */ rev: string; /** * Sets or retrieves the shape of the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape) */ shape: string; /** * Sets or retrieves the window or frame at which to target content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) */ target: string; /** * Retrieves or sets the text of the object as a string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) */ text: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ type: string; addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAnchorElement: { prototype: HTMLAnchorElement; new(): HTMLAnchorElement; }; /** * Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves a text alternative to the graphic. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) */ alt: string; /** * Sets or retrieves the coordinates of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) */ coords: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ download: string; /** * Sets or gets whether clicks in this region cause action. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref) */ noHref: boolean; ping: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ referrerPolicy: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ readonly relList: DOMTokenList; /** * Sets or retrieves the shape of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) */ shape: string; /** * Sets or retrieves the window or frame at which to target content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) */ target: string; addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAreaElement: { prototype: HTMLAreaElement; new(): HTMLAreaElement; }; /** * Provides access to the properties of